(function () {
  function _wrapNativeSuper(Class) { var _cache = typeof Map === "function" ? new Map() : undefined; _wrapNativeSuper = function _wrapNativeSuper(Class) { if (Class === null || !_isNativeFunction(Class)) return Class; if (typeof Class !== "function") { throw new TypeError("Super expression must either be null or a function"); } if (typeof _cache !== "undefined") { if (_cache.has(Class)) return _cache.get(Class); _cache.set(Class, Wrapper); } function Wrapper() { return _construct2(Class, arguments, _getPrototypeOf2(this).constructor); } Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } }); return _setPrototypeOf2(Wrapper, Class); }; return _wrapNativeSuper(Class); }

  function _isNativeFunction(fn) { return Function.toString.call(fn).indexOf("[native code]") !== -1; }

  function _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; }

  function _toArray(arr) { return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest(); }

  function _construct2(Parent, args, Class) { if (_isNativeReflectConstruct2()) { _construct2 = Reflect.construct; } else { _construct2 = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf2(instance, Class.prototype); return instance; }; } return _construct2.apply(null, arguments); }

  function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }

  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }

  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

  function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }

  function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }

  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }

  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }

  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }

  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }

  function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }

  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }

  function _get2(target, property, receiver) { if (typeof Reflect !== "undefined" && Reflect.get) { _get2 = Reflect.get; } else { _get2 = function _get(target, property, receiver) { var base = _superPropBase2(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(receiver); } return desc.value; }; } return _get2(target, property, receiver || target); }

  function _superPropBase2(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf2(object); if (object === null) break; } return object; }

  function _inherits2(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf2(subClass, superClass); }

  function _setPrototypeOf2(o, p) { _setPrototypeOf2 = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf2(o, p); }

  function _createSuper2(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct2(); return function _createSuperInternal() { var Super = _getPrototypeOf2(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf2(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn2(this, result); }; }

  function _possibleConstructorReturn2(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized2(self); }

  function _assertThisInitialized2(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

  function _isNativeReflectConstruct2() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }

  function _getPrototypeOf2(o) { _getPrototypeOf2 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf2(o); }

  function _classCallCheck2(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a 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); } }

  function _createClass2(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

  (window["webpackJsonp"] = window["webpackJsonp"] || []).push([["vendor"], {
    /***/
    "+1d7": function d7(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return lastDayOfISOWeekYear;
      });
      /* harmony import */


      var _getISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../getISOWeekYear/index.js */
      "BKKT");
      /* harmony import */


      var _startOfISOWeek_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../startOfISOWeek/index.js */
      "1dmy");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name lastDayOfISOWeekYear
       * @category ISO Week-Numbering Year Helpers
       * @summary Return the last day of an ISO week-numbering year for the given date.
       *
       * @description
       * Return the last day of an ISO week-numbering year,
       * which always starts 3 days before the year's first Thursday.
       * The result will be in the local timezone.
       *
       * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
       *
       * ### 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).
       *
       * - The function was renamed from `lastDayOfISOYear` to `lastDayOfISOWeekYear`.
       *   "ISO week year" is short for [ISO week-numbering year](https://en.wikipedia.org/wiki/ISO_week_date).
       *   This change makes the name consistent with
       *   locale-dependent week-numbering year helpers, e.g., `getWeekYear`.
       *
       * @param {Date|Number} date - the original date
       * @returns {Date} the end of an ISO week-numbering year
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // The last day of an ISO week-numbering year for 2 July 2005:
       * var result = lastDayOfISOWeekYear(new Date(2005, 6, 2))
       * //=> Sun Jan 01 2006 00:00:00
       */


      function lastDayOfISOWeekYear(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(1, arguments);
        var year = Object(_getISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);
        var fourthOfJanuary = new Date(0);
        fourthOfJanuary.setFullYear(year + 1, 0, 4);
        fourthOfJanuary.setHours(0, 0, 0, 0);
        var date = Object(_startOfISOWeek_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(fourthOfJanuary);
        date.setDate(date.getDate() - 1);
        return date;
      }
      /***/

    },

    /***/
    "+7QN": function QN(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return addLeadingZeros;
      });

      function addLeadingZeros(number, targetLength) {
        var sign = number < 0 ? '-' : '';
        var output = Math.abs(number).toString();

        while (output.length < targetLength) {
          output = '0' + output;
        }

        return sign + output;
      }
      /***/

    },

    /***/
    "+LmI": function LmI(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return assign;
      });

      function assign(target, dirtyObject) {
        if (target == null) {
          throw new TypeError('assign requires that input parameter not be null or undefined');
        }

        dirtyObject = dirtyObject || {};

        for (var property in dirtyObject) {
          if (dirtyObject.hasOwnProperty(property)) {
            target[property] = dirtyObject[property];
          }
        }

        return target;
      }
      /***/

    },

    /***/
    "+lkT": function lkT(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return setUTCDay;
      });
      /* harmony import */


      var _toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toInteger/index.js */
      "/h9T");
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../requiredArgs/index.js */
      "jIYg"); // This function will be a part of public API when UTC function will be implemented.
      // See issue: https://github.com/date-fns/date-fns/issues/376


      function setUTCDay(dirtyDate, dirtyDay, dirtyOptions) {
        Object(_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(2, arguments);
        var options = dirtyOptions || {};
        var locale = options.locale;
        var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn;
        var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : Object(_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(localeWeekStartsOn);
        var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : Object(_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN

        if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
          throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
        }

        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate);
        var day = Object(_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDay);
        var currentDay = date.getUTCDay();
        var remainder = day % 7;
        var dayIndex = (remainder + 7) % 7;
        var diff = (dayIndex < weekStartsOn ? 7 : 0) + day - currentDay;
        date.setUTCDate(date.getUTCDate() + diff);
        return date;
      }
      /***/

    },

    /***/
    "+s0g": function s0g(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Dutch [nl]
      //! author : Joris Röling : https://github.com/jorisroling
      //! author : Jacob Middag : https://github.com/middagj
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'),
            monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'),
            monthsParse = [/^jan/i, /^feb/i, /^maart|mrt.?$/i, /^apr/i, /^mei$/i, /^jun[i.]?$/i, /^jul[i.]?$/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i],
            monthsRegex = /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;
        var nl = moment.defineLocale('nl', {
          months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),
          monthsShort: function monthsShort(m, format) {
            if (!m) {
              return monthsShortWithDots;
            } else if (/-MMM-/.test(format)) {
              return monthsShortWithoutDots[m.month()];
            } else {
              return monthsShortWithDots[m.month()];
            }
          },
          monthsRegex: monthsRegex,
          monthsShortRegex: monthsRegex,
          monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,
          monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
          monthsParse: monthsParse,
          longMonthsParse: monthsParse,
          shortMonthsParse: monthsParse,
          weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
          weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),
          weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),
          weekdaysParseExact: true,
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD-MM-YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd D MMMM YYYY HH:mm'
          },
          calendar: {
            sameDay: '[vandaag om] LT',
            nextDay: '[morgen om] LT',
            nextWeek: 'dddd [om] LT',
            lastDay: '[gisteren om] LT',
            lastWeek: '[afgelopen] dddd [om] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'over %s',
            past: '%s geleden',
            s: 'een paar seconden',
            ss: '%d seconden',
            m: 'één minuut',
            mm: '%d minuten',
            h: 'één uur',
            hh: '%d uur',
            d: 'één dag',
            dd: '%d dagen',
            w: 'één week',
            ww: '%d weken',
            M: 'één maand',
            MM: '%d maanden',
            y: 'één jaar',
            yy: '%d jaar'
          },
          dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
          ordinal: function ordinal(number) {
            return number + (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de');
          },
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return nl;
      });
      /***/

    },

    /***/
    "//9w": function w(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Northern Sami [se]
      //! authors : Bård Rolstad Henriksen : https://github.com/karamell
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var se = moment.defineLocale('se', {
          months: 'ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu'.split('_'),
          monthsShort: 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split('_'),
          weekdays: 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split('_'),
          weekdaysShort: 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'),
          weekdaysMin: 's_v_m_g_d_b_L'.split('_'),
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'MMMM D. [b.] YYYY',
            LLL: 'MMMM D. [b.] YYYY [ti.] HH:mm',
            LLLL: 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm'
          },
          calendar: {
            sameDay: '[otne ti] LT',
            nextDay: '[ihttin ti] LT',
            nextWeek: 'dddd [ti] LT',
            lastDay: '[ikte ti] LT',
            lastWeek: '[ovddit] dddd [ti] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: '%s geažes',
            past: 'maŋit %s',
            s: 'moadde sekunddat',
            ss: '%d sekunddat',
            m: 'okta minuhta',
            mm: '%d minuhtat',
            h: 'okta diimmu',
            hh: '%d diimmut',
            d: 'okta beaivi',
            dd: '%d beaivvit',
            M: 'okta mánnu',
            MM: '%d mánut',
            y: 'okta jahki',
            yy: '%d jagit'
          },
          dayOfMonthOrdinalParse: /\d{1,2}\./,
          ordinal: '%d.',
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return se;
      });
      /***/

    },

    /***/
    "/Eym": function Eym(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return subWeeks;
      });
      /* harmony import */


      var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../_lib/toInteger/index.js */
      "/h9T");
      /* harmony import */


      var _addWeeks_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../addWeeks/index.js */
      "r4sE");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name subWeeks
       * @category Week Helpers
       * @summary Subtract the specified number of weeks from the given date.
       *
       * @description
       * Subtract the specified number of weeks from the given date.
       *
       * ### 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 {Date|Number} date - the date to be changed
       * @param {Number} amount - the amount of weeks to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
       * @returns {Date} the new date with the weeks subtracted
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // Subtract 4 weeks from 1 September 2014:
       * var result = subWeeks(new Date(2014, 8, 1), 4)
       * //=> Mon Aug 04 2014 00:00:00
       */


      function subWeeks(dirtyDate, dirtyAmount) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(2, arguments);
        var amount = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyAmount);
        return Object(_addWeeks_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate, -amount);
      }
      /***/

    },

    /***/
    "/Lp+": function Lp(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return differenceInCalendarWeeks;
      });
      /* harmony import */


      var _startOfWeek_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../startOfWeek/index.js */
      "aetl");
      /* harmony import */


      var _lib_getTimezoneOffsetInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/getTimezoneOffsetInMilliseconds/index.js */
      "JCDJ");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");

      var MILLISECONDS_IN_WEEK = 604800000;
      /**
       * @name differenceInCalendarWeeks
       * @category Week Helpers
       * @summary Get the number of calendar weeks between the given dates.
       *
       * @description
       * Get the number of calendar weeks between the given dates.
       *
       * ### 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 {Date|Number} dateLeft - the later date
       * @param {Date|Number} dateRight - the earlier date
       * @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 {Number} the number of calendar weeks
       * @throws {TypeError} 2 arguments required
       * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6
       *
       * @example
       * // How many calendar weeks are between 5 July 2014 and 20 July 2014?
       * var result = differenceInCalendarWeeks(
       *   new Date(2014, 6, 20),
       *   new Date(2014, 6, 5)
       * )
       * //=> 3
       *
       * @example
       * // If the week starts on Monday,
       * // how many calendar weeks are between 5 July 2014 and 20 July 2014?
       * var result = differenceInCalendarWeeks(
       *   new Date(2014, 6, 20),
       *   new Date(2014, 6, 5),
       *   { weekStartsOn: 1 }
       * )
       * //=> 2
       */

      function differenceInCalendarWeeks(dirtyDateLeft, dirtyDateRight, dirtyOptions) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(2, arguments);
        var startOfWeekLeft = Object(_startOfWeek_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateLeft, dirtyOptions);
        var startOfWeekRight = Object(_startOfWeek_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateRight, dirtyOptions);
        var timestampLeft = startOfWeekLeft.getTime() - Object(_lib_getTimezoneOffsetInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(startOfWeekLeft);
        var timestampRight = startOfWeekRight.getTime() - Object(_lib_getTimezoneOffsetInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(startOfWeekRight); // Round the number of days to the nearest integer
        // because the number of milliseconds in a week is not constant
        // (e.g. it's different in the week of the daylight saving time clock shift)

        return Math.round((timestampLeft - timestampRight) / MILLISECONDS_IN_WEEK);
      }
      /***/

    },

    /***/
    "/Tr7": function Tr7(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return toDate;
      });
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name toDate
       * @category Common Helpers
       * @summary Convert the given argument to an instance of Date.
       *
       * @description
       * Convert the given argument to an instance of Date.
       *
       * If the argument is an instance of Date, the function returns its clone.
       *
       * If the argument is a number, it is treated as a timestamp.
       *
       * If the argument is none of the above, the function returns Invalid Date.
       *
       * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.
       *
       * @param {Date|Number} argument - the value to convert
       * @returns {Date} the parsed date in the local time zone
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // Clone the date:
       * const result = toDate(new Date(2014, 1, 11, 11, 30, 30))
       * //=> Tue Feb 11 2014 11:30:30
       *
       * @example
       * // Convert the timestamp to date:
       * const result = toDate(1392098430000)
       * //=> Tue Feb 11 2014 11:30:30
       */


      function toDate(argument) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(1, arguments);
        var argStr = Object.prototype.toString.call(argument); // Clone the date

        if (argument instanceof Date || typeof argument === 'object' && argStr === '[object Date]') {
          // Prevent the date to lose the milliseconds when passed to new Date() in IE10
          return new Date(argument.getTime());
        } else if (typeof argument === 'number' || argStr === '[object Number]') {
          return new Date(argument);
        } else {
          if ((typeof argument === 'string' || argStr === '[object String]') && typeof console !== 'undefined') {
            // eslint-disable-next-line no-console
            console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"); // eslint-disable-next-line no-console

            console.warn(new Error().stack);
          }

          return new Date(NaN);
        }
      }
      /***/

    },

    /***/
    "/X5v": function X5v(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Pseudo [x-pseudo]
      //! author : Andrew Hood : https://github.com/andrewhood125
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var xPseudo = moment.defineLocale('x-pseudo', {
          months: 'J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér'.split('_'),
          monthsShort: 'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split('_'),
          monthsParseExact: true,
          weekdays: 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split('_'),
          weekdaysShort: 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'),
          weekdaysMin: 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'),
          weekdaysParseExact: true,
          longDateFormat: {
            LT: 'HH:mm',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd, D MMMM YYYY HH:mm'
          },
          calendar: {
            sameDay: '[T~ódá~ý át] LT',
            nextDay: '[T~ómó~rró~w át] LT',
            nextWeek: 'dddd [át] LT',
            lastDay: '[Ý~ést~érdá~ý át] LT',
            lastWeek: '[L~ást] dddd [át] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'í~ñ %s',
            past: '%s á~gó',
            s: 'á ~féw ~sécó~ñds',
            ss: '%d s~écóñ~ds',
            m: 'á ~míñ~úté',
            mm: '%d m~íñú~tés',
            h: 'á~ñ hó~úr',
            hh: '%d h~óúrs',
            d: 'á ~dáý',
            dd: '%d d~áýs',
            M: 'á ~móñ~th',
            MM: '%d m~óñt~hs',
            y: 'á ~ýéár',
            yy: '%d ý~éárs'
          },
          dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
          ordinal: function ordinal(number) {
            var b = number % 10,
                output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';
            return number + output;
          },
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return xPseudo;
      });
      /***/

    },

    /***/
    "/d8p": function d8p(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "repeat", function () {
        return repeat;
      });
      /* harmony import */


      var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Subscriber */
      "7o/Q");
      /* harmony import */


      var _observable_empty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../observable/empty */
      "EY2u");

      function repeat() {
        var count = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1;
        return function (source) {
          if (count === 0) {
            return Object(_observable_empty__WEBPACK_IMPORTED_MODULE_1__["empty"])();
          } else if (count < 0) {
            return source.lift(new RepeatOperator(-1, source));
          } else {
            return source.lift(new RepeatOperator(count - 1, source));
          }
        };
      }

      var RepeatOperator = /*#__PURE__*/function () {
        function RepeatOperator(count, source) {
          _classCallCheck2(this, RepeatOperator);

          this.count = count;
          this.source = source;
        }

        _createClass2(RepeatOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            return source.subscribe(new RepeatSubscriber(subscriber, this.count, this.source));
          }
        }]);

        return RepeatOperator;
      }();

      var RepeatSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_) {
        _inherits2(RepeatSubscriber, _Subscriber__WEBPACK_);

        var _super2 = _createSuper2(RepeatSubscriber);

        function RepeatSubscriber(destination, count, source) {
          var _this2;

          _classCallCheck2(this, RepeatSubscriber);

          _this2 = _super2.call(this, destination);
          _this2.count = count;
          _this2.source = source;
          return _this2;
        }

        _createClass2(RepeatSubscriber, [{
          key: "complete",
          value: function complete() {
            if (!this.isStopped) {
              var source = this.source,
                  count = this.count;

              if (count === 0) {
                return _get2(_getPrototypeOf2(RepeatSubscriber.prototype), "complete", this).call(this);
              } else if (count > -1) {
                this.count = count - 1;
              }

              source.subscribe(this._unsubscribeAndRecycle());
            }
          }
        }]);

        return RepeatSubscriber;
      }(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]); //# sourceMappingURL=repeat.js.map

      /***/

    },

    /***/
    "/h9T": function h9T(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return toInteger;
      });

      function toInteger(dirtyNumber) {
        if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) {
          return NaN;
        }

        var number = Number(dirtyNumber);

        if (isNaN(number)) {
          return number;
        }

        return number < 0 ? Math.ceil(number) : Math.floor(number);
      }
      /***/

    },

    /***/
    "/pik": function pik(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return formatRFC3339;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _isValid_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../isValid/index.js */
      "Se/U");
      /* harmony import */


      var _lib_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../_lib/addLeadingZeros/index.js */
      "+7QN");
      /* harmony import */


      var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../_lib/toInteger/index.js */
      "/h9T");
      /**
       * @name formatRFC3339
       * @category Common Helpers
       * @summary Format the date according to the ISO 3339 standard (https://tools.ietf.org/html/rfc3339#section-5.6).
       *
       * @description
       * Return the formatted date string in ISO 3339 format. Options may be passed to control the parts and notations of the date.
       *
       * @param {Date|Number} date - the original date
       * @param {Object} [options] - an object with options.
       * @param {0|1|2|3} [options.fractionDigits=0] - number of digits after the decimal point after seconds
       * @returns {String} the formatted date string
       * @throws {TypeError} 1 argument required
       * @throws {RangeError} `date` must not be Invalid Date
       * @throws {RangeError} `options.fractionDigits` must be between 0 and 3
       *
       * @example
       * // Represent 18 September 2019 in ISO 3339 format:
       * const result = formatRFC3339(new Date(2019, 8, 18, 19, 0, 52))
       * //=> '2019-09-18T19:00:52Z'
       *
       * @example
       * // Represent 18 September 2019 in ISO 3339 format, 2 digits of second fraction:
       * const result = formatRFC3339(new Date(2019, 8, 18, 19, 0, 52, 234), { fractionDigits: 2 })
       * //=> '2019-09-18T19:00:52.23Z'
       *
       * @example
       * // Represent 18 September 2019 in ISO 3339 format, 3 digits of second fraction
       * const result = formatRFC3339(new Date(2019, 8, 18, 19, 0, 52, 234), { fractionDigits: 3 })
       * //=> '2019-09-18T19:00:52.234Z'
       */


      function formatRFC3339(dirtyDate, dirtyOptions) {
        if (arguments.length < 1) {
          throw new TypeError("1 arguments required, but only ".concat(arguments.length, " present"));
        }

        var originalDate = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);

        if (!Object(_isValid_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(originalDate)) {
          throw new RangeError('Invalid time value');
        }

        var options = dirtyOptions || {};
        var fractionDigits = options.fractionDigits == null ? 0 : Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(options.fractionDigits); // Test if fractionDigits is between 0 and 3 _and_ is not NaN

        if (!(fractionDigits >= 0 && fractionDigits <= 3)) {
          throw new RangeError('fractionDigits must be between 0 and 3 inclusively');
        }

        var day = Object(_lib_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(originalDate.getDate(), 2);
        var month = Object(_lib_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(originalDate.getMonth() + 1, 2);
        var year = originalDate.getFullYear();
        var hour = Object(_lib_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(originalDate.getHours(), 2);
        var minute = Object(_lib_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(originalDate.getMinutes(), 2);
        var second = Object(_lib_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(originalDate.getSeconds(), 2);
        var fractionalSecond = '';

        if (fractionDigits > 0) {
          var milliseconds = originalDate.getMilliseconds();
          var fractionalSeconds = Math.floor(milliseconds * Math.pow(10, fractionDigits - 3));
          fractionalSecond = '.' + Object(_lib_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(fractionalSeconds, fractionDigits);
        }

        var offset = '';
        var tzOffset = originalDate.getTimezoneOffset();

        if (tzOffset !== 0) {
          var absoluteOffset = Math.abs(tzOffset);
          var hourOffset = Object(_lib_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(absoluteOffset / 60), 2);
          var minuteOffset = Object(_lib_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(absoluteOffset % 60, 2); // If less than 0, the sign is +, because it is ahead of time.

          var sign = tzOffset < 0 ? '+' : '-';
          offset = "".concat(sign).concat(hourOffset, ":").concat(minuteOffset);
        } else {
          offset = 'Z';
        }

        return "".concat(year, "-").concat(month, "-").concat(day, "T").concat(hour, ":").concat(minute, ":").concat(second).concat(fractionalSecond).concat(offset);
      }
      /***/

    },

    /***/
    "/pzQ": function pzQ(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return isExists;
      });
      /**
       * @name isExists
       * @category Common Helpers
       * @summary Is the given date exists?
       *
       * @description
       * Checks if the given arguments convert to an existing date.
       *
       * @param {Number} year of the date to check
       * @param {Number} month of the date to check
       * @param {Number} day of the date to check
       * @returns {Boolean} the date exists
       * @throws {TypeError} 3 arguments required
       *
       * @example
       * // For the valid date:
       * var result = isExists(2018, 0, 31)
       * //=> true
       *
       * @example
       * // For the invalid date:
       * var result = isExists(2018, 1, 31)
       * //=> false
       */


      function isExists(year, month, day) {
        if (arguments.length < 3) {
          throw new TypeError('3 argument required, but only ' + arguments.length + ' present');
        }

        var date = new Date(year, month, day);
        return date.getFullYear() === year && date.getMonth() === month && date.getDate() === day;
      }
      /***/

    },

    /***/
    "/q54": function q54(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵMatchMedia", function () {
        return MatchMedia;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵMockMatchMedia", function () {
        return MockMatchMedia;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵMockMatchMediaProvider", function () {
        return MockMatchMediaProvider;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CoreModule", function () {
        return CoreModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "removeStyles", function () {
        return removeStyles;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "BROWSER_PROVIDER", function () {
        return BROWSER_PROVIDER;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CLASS_NAME", function () {
        return CLASS_NAME;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MediaChange", function () {
        return MediaChange;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "StylesheetMap", function () {
        return StylesheetMap;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "DEFAULT_CONFIG", function () {
        return DEFAULT_CONFIG;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "LAYOUT_CONFIG", function () {
        return LAYOUT_CONFIG;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "SERVER_TOKEN", function () {
        return SERVER_TOKEN;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "BREAKPOINT", function () {
        return BREAKPOINT;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "mergeAlias", function () {
        return mergeAlias;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "BaseDirective2", function () {
        return BaseDirective2;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "DEFAULT_BREAKPOINTS", function () {
        return DEFAULT_BREAKPOINTS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ScreenTypes", function () {
        return ScreenTypes;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ORIENTATION_BREAKPOINTS", function () {
        return ORIENTATION_BREAKPOINTS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "BreakPointRegistry", function () {
        return BreakPointRegistry;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "BREAKPOINTS", function () {
        return BREAKPOINTS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MediaObserver", function () {
        return MediaObserver;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MediaTrigger", function () {
        return MediaTrigger;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "sortDescendingPriority", function () {
        return sortDescendingPriority;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "sortAscendingPriority", function () {
        return sortAscendingPriority;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "coerceArray", function () {
        return coerceArray;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "StyleUtils", function () {
        return StyleUtils;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "StyleBuilder", function () {
        return StyleBuilder;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "validateBasis", function () {
        return validateBasis;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MediaMarshaller", function () {
        return MediaMarshaller;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "BREAKPOINT_PRINT", function () {
        return BREAKPOINT_PRINT;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "PrintHook", function () {
        return PrintHook;
      });
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /* harmony import */


      var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/common */
      "SVse");
      /* harmony import */


      var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! rxjs */
      "qCKp");
      /* harmony import */


      var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! rxjs/operators */
      "kU1M");
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @fileoverview added by tsickle
       * Generated from: core/browser-provider.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * Find all of the server-generated stylings, if any, and remove them
       * This will be in the form of inline classes and the style block in the
       * head of the DOM
       * @param {?} _document
       * @param {?} platformId
       * @return {?}
       */


      function removeStyles(_document, platformId) {
        return (
          /**
          * @return {?}
          */
          function () {
            if (Object(_angular_common__WEBPACK_IMPORTED_MODULE_1__["isPlatformBrowser"])(platformId)) {
              /** @type {?} */
              var elements = Array.from(_document.querySelectorAll("[class*=".concat(CLASS_NAME, "]"))); // RegExp constructor should only be used if passing a variable to the constructor.
              // When using static regular expression it is more performant to use reg exp literal.
              // This is also needed to provide Safari 9 compatibility, please see
              // https://stackoverflow.com/questions/37919802 for more discussion.

              /** @type {?} */

              var classRegex = /\bflex-layout-.+?\b/g;
              elements.forEach(
              /**
              * @param {?} el
              * @return {?}
              */
              function (el) {
                el.classList.contains("".concat(CLASS_NAME, "ssr")) && el.parentNode ? el.parentNode.removeChild(el) : el.className.replace(classRegex, '');
              });
            }
          }
        );
      }
      /**
       *  Provider to remove SSR styles on the browser
       * @type {?}
       */


      var BROWSER_PROVIDER = {
        provide: _angular_core__WEBPACK_IMPORTED_MODULE_0__["APP_BOOTSTRAP_LISTENER"],
        useFactory: removeStyles,
        deps: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["PLATFORM_ID"]],
        multi: true
      };
      /** @type {?} */

      var CLASS_NAME = 'flex-layout-';
      /**
       * @fileoverview added by tsickle
       * Generated from: core/module.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * *****************************************************************
       * Define module for common Angular Layout utilities
       * *****************************************************************
       */

      var CoreModule =
      /** @class */
      function () {
        /**
         * *****************************************************************
         * Define module for common Angular Layout utilities
         * *****************************************************************
         */
        var CoreModule = function CoreModule() {
          _classCallCheck2(this, CoreModule);
        };

        CoreModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
          type: CoreModule
        });
        CoreModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
          factory: function CoreModule_Factory(t) {
            return new (t || CoreModule)();
          },
          providers: [BROWSER_PROVIDER]
        });
        /*@__PURE__*/

        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](CoreModule, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
            args: [{
              providers: [BROWSER_PROVIDER]
            }]
          }], null, null);
        })();

        return CoreModule;
      }();
      /**
       * @fileoverview added by tsickle
       * Generated from: core/media-change.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * Class instances emitted [to observers] for each mql notification
       */


      var MediaChange = /*#__PURE__*/function () {
        /**
         * @param {?=} matches whether the mediaQuery is currently activated
         * @param {?=} mediaQuery e.g. (min-width: 600px) and (max-width: 959px)
         * @param {?=} mqAlias e.g. gt-sm, md, gt-lg
         * @param {?=} suffix e.g. GtSM, Md, GtLg
         * @param {?=} priority the priority of activation for the given breakpoint
         */
        function MediaChange() {
          var matches = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
          var mediaQuery = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'all';
          var mqAlias = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
          var suffix = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '';
          var priority = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;

          _classCallCheck2(this, MediaChange);

          this.matches = matches;
          this.mediaQuery = mediaQuery;
          this.mqAlias = mqAlias;
          this.suffix = suffix;
          this.priority = priority;
          this.property = '';
        }
        /**
         * Create an exact copy of the MediaChange
         * @return {?}
         */


        _createClass2(MediaChange, [{
          key: "clone",
          value: function clone() {
            return new MediaChange(this.matches, this.mediaQuery, this.mqAlias, this.suffix);
          }
        }]);

        return MediaChange;
      }();
      /**
       * @fileoverview added by tsickle
       * Generated from: core/stylesheet-map/stylesheet-map.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * Utility to emulate a CSS stylesheet
       *
       * This utility class stores all of the styles for a given HTML element
       * as a readonly `stylesheet` map.
       */


      var StylesheetMap =
      /** @class */
      function () {
        /**
         * Utility to emulate a CSS stylesheet
         *
         * This utility class stores all of the styles for a given HTML element
         * as a readonly `stylesheet` map.
         */
        var StylesheetMap = /*#__PURE__*/function () {
          function StylesheetMap() {
            _classCallCheck2(this, StylesheetMap);

            this.stylesheet = new Map();
          }
          /**
           * Add an individual style to an HTML element
           * @param {?} element
           * @param {?} style
           * @param {?} value
           * @return {?}
           */


          _createClass2(StylesheetMap, [{
            key: "addStyleToElement",
            value: function addStyleToElement(element, style, value) {
              /** @type {?} */
              var stylesheet = this.stylesheet.get(element);

              if (stylesheet) {
                stylesheet.set(style, value);
              } else {
                this.stylesheet.set(element, new Map([[style, value]]));
              }
            }
            /**
             * Clear the virtual stylesheet
             * @return {?}
             */

          }, {
            key: "clearStyles",
            value: function clearStyles() {
              this.stylesheet.clear();
            }
            /**
             * Retrieve a given style for an HTML element
             * @param {?} el
             * @param {?} styleName
             * @return {?}
             */

          }, {
            key: "getStyleForElement",
            value: function getStyleForElement(el, styleName) {
              /** @type {?} */
              var styles = this.stylesheet.get(el);
              /** @type {?} */

              var value = '';

              if (styles) {
                /** @type {?} */
                var style = styles.get(styleName);

                if (typeof style === 'number' || typeof style === 'string') {
                  value = style + '';
                }
              }

              return value;
            }
          }]);

          return StylesheetMap;
        }();

        StylesheetMap.ɵfac = function StylesheetMap_Factory(t) {
          return new (t || StylesheetMap)();
        };
        /** @nocollapse */


        StylesheetMap.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({
          factory: function StylesheetMap_Factory() {
            return new StylesheetMap();
          },
          token: StylesheetMap,
          providedIn: "root"
        });
        /*@__PURE__*/

        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](StylesheetMap, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
            args: [{
              providedIn: 'root'
            }]
          }], function () {
            return [];
          }, null);
        })();

        return StylesheetMap;
      }();
      /**
       * @fileoverview added by tsickle
       * Generated from: core/stylesheet-map/index.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * @fileoverview added by tsickle
       * Generated from: core/tokens/library-config.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /** @type {?} */


      var DEFAULT_CONFIG = {
        addFlexToParent: true,
        addOrientationBps: false,
        disableDefaultBps: false,
        disableVendorPrefixes: false,
        serverLoaded: false,
        useColumnBasisZero: true,
        printWithBreakpoints: [],
        mediaTriggerAutoRestore: true,
        ssrObserveBreakpoints: []
      };
      /** @type {?} */

      var LAYOUT_CONFIG = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('Flex Layout token, config options for the library', {
        providedIn: 'root',
        factory:
        /**
        * @return {?}
        */
        function factory() {
          return DEFAULT_CONFIG;
        }
      });
      /**
       * @fileoverview added by tsickle
       * Generated from: core/tokens/server-token.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * Token that is provided to tell whether the FlexLayoutServerModule
       * has been included in the bundle
       *
       * NOTE: This can be manually provided to disable styles when using SSR
       * @type {?}
       */

      var SERVER_TOKEN = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('FlexLayoutServerLoaded', {
        providedIn: 'root',
        factory:
        /**
        * @return {?}
        */
        function factory() {
          return false;
        }
      });
      /**
       * @fileoverview added by tsickle
       * Generated from: core/tokens/breakpoint-token.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /** @type {?} */

      var BREAKPOINT = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('Flex Layout token, collect all breakpoints into one provider', {
        providedIn: 'root',
        factory:
        /**
        * @return {?}
        */
        function factory() {
          return null;
        }
      });
      /**
       * @fileoverview added by tsickle
       * Generated from: core/tokens/index.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * @fileoverview added by tsickle
       * Generated from: core/add-alias.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * For the specified MediaChange, make sure it contains the breakpoint alias
       * and suffix (if available).
       * @param {?} dest
       * @param {?} source
       * @return {?}
       */

      function mergeAlias(dest, source) {
        dest = dest ? dest.clone() : new MediaChange();

        if (source) {
          dest.mqAlias = source.alias;
          dest.mediaQuery = source.mediaQuery;
          dest.suffix = source.suffix;
          dest.priority = source.priority;
        }

        return dest;
      }
      /**
       * @fileoverview added by tsickle
       * Generated from: utils/layout-validator.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       * @type {?}
       */


      var INLINE = 'inline';
      /** @type {?} */

      var LAYOUT_VALUES = ['row', 'column', 'row-reverse', 'column-reverse'];
      /**
       * Validate the direction|'direction wrap' value and then update the host's inline flexbox styles
       * @param {?} value
       * @return {?}
       */

      function buildLayoutCSS(value) {
        var _validateValue = validateValue(value),
            _validateValue2 = _slicedToArray(_validateValue, 3),
            direction = _validateValue2[0],
            wrap = _validateValue2[1],
            isInline = _validateValue2[2];

        return buildCSS(direction, wrap, isInline);
      }
      /**
       * Validate the value to be one of the acceptable value options
       * Use default fallback of 'row'
       * @param {?} value
       * @return {?}
       */


      function validateValue(value) {
        value = value ? value.toLowerCase() : '';

        var _value$split = value.split(' '),
            _value$split2 = _slicedToArray(_value$split, 3),
            direction = _value$split2[0],
            wrap = _value$split2[1],
            inline = _value$split2[2]; // First value must be the `flex-direction`


        if (!LAYOUT_VALUES.find(
        /**
        * @param {?} x
        * @return {?}
        */
        function (x) {
          return x === direction;
        })) {
          direction = LAYOUT_VALUES[0];
        }

        if (wrap === INLINE) {
          wrap = inline !== INLINE ? inline : '';
          inline = INLINE;
        }

        return [direction, validateWrapValue(wrap), !!inline];
      }
      /**
       * Convert layout-wrap='<value>' to expected flex-wrap style
       * @param {?} value
       * @return {?}
       */


      function validateWrapValue(value) {
        if (!!value) {
          switch (value.toLowerCase()) {
            case 'reverse':
            case 'wrap-reverse':
            case 'reverse-wrap':
              value = 'wrap-reverse';
              break;

            case 'no':
            case 'none':
            case 'nowrap':
              value = 'nowrap';
              break;
            // All other values fallback to 'wrap'

            default:
              value = 'wrap';
              break;
          }
        }

        return value;
      }
      /**
       * Build the CSS that should be assigned to the element instance
       * BUG:
       *   1) min-height on a column flex container won’t apply to its flex item children in IE 10-11.
       *      Use height instead if possible; height : <xxx>vh;
       *
       *  This way any padding or border specified on the child elements are
       *  laid out and drawn inside that element's specified width and height.
       * @param {?} direction
       * @param {?=} wrap
       * @param {?=} inline
       * @return {?}
       */


      function buildCSS(direction) {
        var wrap = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
        var inline = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
        return {
          'display': inline ? 'inline-flex' : 'flex',
          'box-sizing': 'border-box',
          'flex-direction': direction,
          'flex-wrap': !!wrap ? wrap : null
        };
      }
      /**
       * @fileoverview added by tsickle
       * Generated from: core/base/base2.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * @abstract
       */


      var BaseDirective2 = /*#__PURE__*/function () {
        /**
         * @protected
         * @param {?} elementRef
         * @param {?} styleBuilder
         * @param {?} styler
         * @param {?} marshal
         */
        function BaseDirective2(elementRef, styleBuilder, styler, marshal) {
          _classCallCheck2(this, BaseDirective2);

          this.elementRef = elementRef;
          this.styleBuilder = styleBuilder;
          this.styler = styler;
          this.marshal = marshal;
          this.DIRECTIVE_KEY = '';
          this.inputs = [];
          /**
           * The most recently used styles for the builder
           */

          this.mru = {};
          this.destroySubject = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
          /**
           * Cache map for style computation
           */

          this.styleCache = new Map();
        }
        /**
         * Access to host element's parent DOM node
         * @protected
         * @return {?}
         */


        _createClass2(BaseDirective2, [{
          key: "parentElement",
          get: function get() {
            return this.elementRef.nativeElement.parentElement;
          }
          /**
           * Access to the HTMLElement for the directive
           * @protected
           * @return {?}
           */

        }, {
          key: "nativeElement",
          get: function get() {
            return this.elementRef.nativeElement;
          }
          /**
           * Access to the activated value for the directive
           * @return {?}
           */

        }, {
          key: "activatedValue",
          get: function get() {
            return this.marshal.getValue(this.nativeElement, this.DIRECTIVE_KEY);
          }
          /**
           * @param {?} value
           * @return {?}
           */
          ,
          set: function set(value) {
            this.marshal.setValue(this.nativeElement, this.DIRECTIVE_KEY, value, this.marshal.activatedAlias);
          }
          /**
           * For \@Input changes
           * @param {?} changes
           * @return {?}
           */

        }, {
          key: "ngOnChanges",
          value: function ngOnChanges(changes) {
            var _this3 = this;

            Object.keys(changes).forEach(
            /**
            * @param {?} key
            * @return {?}
            */
            function (key) {
              if (_this3.inputs.indexOf(key) !== -1) {
                /** @type {?} */
                var bp = key.split('.').slice(1).join('.');
                /** @type {?} */

                var val = changes[key].currentValue;

                _this3.setValue(val, bp);
              }
            });
          }
          /**
           * @return {?}
           */

        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            this.destroySubject.next();
            this.destroySubject.complete();
            this.marshal.releaseElement(this.nativeElement);
          }
          /**
           * Register with central marshaller service
           * @protected
           * @param {?=} extraTriggers
           * @return {?}
           */

        }, {
          key: "init",
          value: function init() {
            var extraTriggers = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
            this.marshal.init(this.elementRef.nativeElement, this.DIRECTIVE_KEY, this.updateWithValue.bind(this), this.clearStyles.bind(this), extraTriggers);
          }
          /**
           * Add styles to the element using predefined style builder
           * @protected
           * @param {?} input
           * @param {?=} parent
           * @return {?}
           */

        }, {
          key: "addStyles",
          value: function addStyles(input, parent) {
            /** @type {?} */
            var builder = this.styleBuilder;
            /** @type {?} */

            var useCache = builder.shouldCache;
            /** @type {?} */

            var genStyles = this.styleCache.get(input);

            if (!genStyles || !useCache) {
              genStyles = builder.buildStyles(input, parent);

              if (useCache) {
                this.styleCache.set(input, genStyles);
              }
            }

            this.mru = Object.assign({}, genStyles);
            this.applyStyleToElement(genStyles);
            builder.sideEffect(input, genStyles, parent);
          }
          /**
           * Remove generated styles from an element using predefined style builder
           * @protected
           * @return {?}
           */

        }, {
          key: "clearStyles",
          value: function clearStyles() {
            var _this4 = this;

            Object.keys(this.mru).forEach(
            /**
            * @param {?} k
            * @return {?}
            */
            function (k) {
              _this4.mru[k] = '';
            });
            this.applyStyleToElement(this.mru);
            this.mru = {};
          }
          /**
           * Force trigger style updates on DOM element
           * @protected
           * @return {?}
           */

        }, {
          key: "triggerUpdate",
          value: function triggerUpdate() {
            this.marshal.triggerUpdate(this.nativeElement, this.DIRECTIVE_KEY);
          }
          /**
           * Determine the DOM element's Flexbox flow (flex-direction).
           *
           * Check inline style first then check computed (stylesheet) style.
           * And optionally add the flow value to element's inline style.
           * @protected
           * @param {?} target
           * @param {?=} addIfMissing
           * @return {?}
           */

        }, {
          key: "getFlexFlowDirection",
          value: function getFlexFlowDirection(target) {
            var addIfMissing = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;

            if (target) {
              var _this$styler$getFlowD = this.styler.getFlowDirection(target),
                  _this$styler$getFlowD2 = _slicedToArray(_this$styler$getFlowD, 2),
                  value = _this$styler$getFlowD2[0],
                  hasInlineValue = _this$styler$getFlowD2[1];

              if (!hasInlineValue && addIfMissing) {
                /** @type {?} */
                var style = buildLayoutCSS(value);
                /** @type {?} */

                var elements = [target];
                this.styler.applyStyleToElements(style, elements);
              }

              return value.trim();
            }

            return 'row';
          }
          /**
           * @protected
           * @param {?} target
           * @return {?}
           */

        }, {
          key: "hasWrap",
          value: function hasWrap(target) {
            return this.styler.hasWrap(target);
          }
          /**
           * Applies styles given via string pair or object map to the directive element
           * @protected
           * @param {?} style
           * @param {?=} value
           * @param {?=} element
           * @return {?}
           */

        }, {
          key: "applyStyleToElement",
          value: function applyStyleToElement(style, value) {
            var element = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.nativeElement;
            this.styler.applyStyleToElement(element, style, value);
          }
          /**
           * @protected
           * @param {?} val
           * @param {?} bp
           * @return {?}
           */

        }, {
          key: "setValue",
          value: function setValue(val, bp) {
            this.marshal.setValue(this.nativeElement, this.DIRECTIVE_KEY, val, bp);
          }
          /**
           * @protected
           * @param {?} input
           * @return {?}
           */

        }, {
          key: "updateWithValue",
          value: function updateWithValue(input) {
            if (this.currentValue !== input) {
              this.addStyles(input);
              this.currentValue = input;
            }
          }
        }]);

        return BaseDirective2;
      }();

      BaseDirective2.ɵfac = function BaseDirective2_Factory(t) {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinvalidFactory"]();
      };

      BaseDirective2.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: BaseDirective2,
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]]
      });
      /**
       * @fileoverview added by tsickle
       * Generated from: core/base/index.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * @fileoverview added by tsickle
       * Generated from: core/breakpoints/data/break-points.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * NOTE: Smaller ranges have HIGHER priority since the match is more specific
       * @type {?}
       */

      var DEFAULT_BREAKPOINTS = [{
        alias: 'xs',
        mediaQuery: 'screen and (min-width: 0px) and (max-width: 599.9px)',
        priority: 1000
      }, {
        alias: 'sm',
        mediaQuery: 'screen and (min-width: 600px) and (max-width: 959.9px)',
        priority: 900
      }, {
        alias: 'md',
        mediaQuery: 'screen and (min-width: 960px) and (max-width: 1279.9px)',
        priority: 800
      }, {
        alias: 'lg',
        mediaQuery: 'screen and (min-width: 1280px) and (max-width: 1919.9px)',
        priority: 700
      }, {
        alias: 'xl',
        mediaQuery: 'screen and (min-width: 1920px) and (max-width: 4999.9px)',
        priority: 600
      }, {
        alias: 'lt-sm',
        overlapping: true,
        mediaQuery: 'screen and (max-width: 599.9px)',
        priority: 950
      }, {
        alias: 'lt-md',
        overlapping: true,
        mediaQuery: 'screen and (max-width: 959.9px)',
        priority: 850
      }, {
        alias: 'lt-lg',
        overlapping: true,
        mediaQuery: 'screen and (max-width: 1279.9px)',
        priority: 750
      }, {
        alias: 'lt-xl',
        overlapping: true,
        priority: 650,
        mediaQuery: 'screen and (max-width: 1919.9px)'
      }, {
        alias: 'gt-xs',
        overlapping: true,
        mediaQuery: 'screen and (min-width: 600px)',
        priority: -950
      }, {
        alias: 'gt-sm',
        overlapping: true,
        mediaQuery: 'screen and (min-width: 960px)',
        priority: -850
      }, {
        alias: 'gt-md',
        overlapping: true,
        mediaQuery: 'screen and (min-width: 1280px)',
        priority: -750
      }, {
        alias: 'gt-lg',
        overlapping: true,
        mediaQuery: 'screen and (min-width: 1920px)',
        priority: -650
      }];
      /**
       * @fileoverview added by tsickle
       * Generated from: core/breakpoints/data/orientation-break-points.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /* tslint:disable */

      /** @type {?} */

      var HANDSET_PORTRAIT = '(orientation: portrait) and (max-width: 599.9px)';
      /** @type {?} */

      var HANDSET_LANDSCAPE = '(orientation: landscape) and (max-width: 959.9px)';
      /** @type {?} */

      var TABLET_PORTRAIT = '(orientation: portrait) and (min-width: 600px) and (max-width: 839.9px)';
      /** @type {?} */

      var TABLET_LANDSCAPE = '(orientation: landscape) and (min-width: 960px) and (max-width: 1279.9px)';
      /** @type {?} */

      var WEB_PORTRAIT = '(orientation: portrait) and (min-width: 840px)';
      /** @type {?} */

      var WEB_LANDSCAPE = '(orientation: landscape) and (min-width: 1280px)';
      /** @type {?} */

      var ScreenTypes = {
        'HANDSET': "".concat(HANDSET_PORTRAIT, ", ").concat(HANDSET_LANDSCAPE),
        'TABLET': "".concat(TABLET_PORTRAIT, " , ").concat(TABLET_LANDSCAPE),
        'WEB': "".concat(WEB_PORTRAIT, ", ").concat(WEB_LANDSCAPE, " "),
        'HANDSET_PORTRAIT': "".concat(HANDSET_PORTRAIT),
        'TABLET_PORTRAIT': "".concat(TABLET_PORTRAIT, " "),
        'WEB_PORTRAIT': "".concat(WEB_PORTRAIT),
        'HANDSET_LANDSCAPE': "".concat(HANDSET_LANDSCAPE),
        'TABLET_LANDSCAPE': "".concat(TABLET_LANDSCAPE),
        'WEB_LANDSCAPE': "".concat(WEB_LANDSCAPE)
      };
      /**
       * Extended Breakpoints for handset/tablets with landscape or portrait orientations
       * @type {?}
       */

      var ORIENTATION_BREAKPOINTS = [{
        'alias': 'handset',
        priority: 2000,
        'mediaQuery': ScreenTypes.HANDSET
      }, {
        'alias': 'handset.landscape',
        priority: 2000,
        'mediaQuery': ScreenTypes.HANDSET_LANDSCAPE
      }, {
        'alias': 'handset.portrait',
        priority: 2000,
        'mediaQuery': ScreenTypes.HANDSET_PORTRAIT
      }, {
        'alias': 'tablet',
        priority: 2100,
        'mediaQuery': ScreenTypes.TABLET
      }, {
        'alias': 'tablet.landscape',
        priority: 2100,
        'mediaQuery': ScreenTypes.TABLET_LANDSCAPE
      }, {
        'alias': 'tablet.portrait',
        priority: 2100,
        'mediaQuery': ScreenTypes.TABLET_PORTRAIT
      }, {
        'alias': 'web',
        priority: 2200,
        'mediaQuery': ScreenTypes.WEB,
        overlapping: true
      }, {
        'alias': 'web.landscape',
        priority: 2200,
        'mediaQuery': ScreenTypes.WEB_LANDSCAPE,
        overlapping: true
      }, {
        'alias': 'web.portrait',
        priority: 2200,
        'mediaQuery': ScreenTypes.WEB_PORTRAIT,
        overlapping: true
      }];
      /**
       * @fileoverview added by tsickle
       * Generated from: core/breakpoints/break-point.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * @fileoverview added by tsickle
       * Generated from: utils/object-extend.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * Extends an object with the *enumerable* and *own* properties of one or more source objects,
       * similar to Object.assign.
       *
       * @param {?} dest The object which will have properties copied to it.
       * @param {...?} sources The source objects from which properties will be copied.
       * @return {?}
       */

      function extendObject(dest) {
        if (dest == null) {
          throw TypeError('Cannot convert undefined or null to object');
        }

        for (var _len2 = arguments.length, sources = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
          sources[_key2 - 1] = arguments[_key2];
        }

        for (var _i2 = 0, _sources = sources; _i2 < _sources.length; _i2++) {
          var source = _sources[_i2];

          if (source != null) {
            for (var key in source) {
              if (source.hasOwnProperty(key)) {
                dest[key] = source[key];
              }
            }
          }
        }

        return dest;
      }
      /**
       * @fileoverview added by tsickle
       * Generated from: core/breakpoints/breakpoint-tools.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /** @type {?} */


      var ALIAS_DELIMITERS = /(\.|-|_)/g;
      /**
       * @param {?} part
       * @return {?}
       */

      function firstUpperCase(part) {
        /** @type {?} */
        var first = part.length > 0 ? part.charAt(0) : '';
        /** @type {?} */

        var remainder = part.length > 1 ? part.slice(1) : '';
        return first.toUpperCase() + remainder;
      }
      /**
       * Converts snake-case to SnakeCase.
       * @param {?} name Text to UpperCamelCase
       * @return {?}
       */


      function camelCase(name) {
        return name.replace(ALIAS_DELIMITERS, '|').split('|').map(firstUpperCase).join('');
      }
      /**
       * For each breakpoint, ensure that a Suffix is defined;
       * fallback to UpperCamelCase the unique Alias value
       * @param {?} list
       * @return {?}
       */


      function validateSuffixes(list) {
        list.forEach(
        /**
        * @param {?} bp
        * @return {?}
        */
        function (bp) {
          if (!bp.suffix) {
            bp.suffix = camelCase(bp.alias); // create Suffix value based on alias

            bp.overlapping = !!bp.overlapping; // ensure default value
          }
        });
        return list;
      }
      /**
       * Merge a custom breakpoint list with the default list based on unique alias values
       *  - Items are added if the alias is not in the default list
       *  - Items are merged with the custom override if the alias exists in the default list
       * @param {?} defaults
       * @param {?=} custom
       * @return {?}
       */


      function mergeByAlias(defaults) {
        var custom = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];

        /** @type {?} */
        var dict = {};
        defaults.forEach(
        /**
        * @param {?} bp
        * @return {?}
        */
        function (bp) {
          dict[bp.alias] = bp;
        }); // Merge custom breakpoints

        custom.forEach(
        /**
        * @param {?} bp
        * @return {?}
        */
        function (bp) {
          if (dict[bp.alias]) {
            extendObject(dict[bp.alias], bp);
          } else {
            dict[bp.alias] = bp;
          }
        });
        return validateSuffixes(Object.keys(dict).map(
        /**
        * @param {?} k
        * @return {?}
        */
        function (k) {
          return dict[k];
        }));
      }
      /**
       * @fileoverview added by tsickle
       * Generated from: core/breakpoints/break-points-token.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       *  Injection token unique to the flex-layout library.
       *  Use this token when build a custom provider (see below).
       * @type {?}
       */


      var BREAKPOINTS = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('Token (@angular/flex-layout) Breakpoints', {
        providedIn: 'root',
        factory:
        /**
        * @return {?}
        */
        function factory() {
          /** @type {?} */
          var breakpoints = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["inject"])(BREAKPOINT);
          /** @type {?} */

          var layoutConfig = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["inject"])(LAYOUT_CONFIG);
          /** @type {?} */

          var bpFlattenArray = [].concat.apply([], (breakpoints || []).map(
          /**
          * @param {?} v
          * @return {?}
          */
          function (v) {
            return Array.isArray(v) ? v : [v];
          }));
          /** @type {?} */

          var builtIns = (layoutConfig.disableDefaultBps ? [] : DEFAULT_BREAKPOINTS).concat(layoutConfig.addOrientationBps ? ORIENTATION_BREAKPOINTS : []);
          return mergeByAlias(builtIns, bpFlattenArray);
        }
      });
      /**
       * @fileoverview added by tsickle
       * Generated from: core/utils/sort.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * HOF to sort the breakpoints by descending priority
       * @template T
       * @param {?} a
       * @param {?} b
       * @return {?}
       */

      function sortDescendingPriority(a, b) {
        /** @type {?} */
        var priorityA = a ? a.priority || 0 : 0;
        /** @type {?} */

        var priorityB = b ? b.priority || 0 : 0;
        return priorityB - priorityA;
      }
      /**
       * HOF to sort the breakpoints by ascending priority
       * @template T
       * @param {?} a
       * @param {?} b
       * @return {?}
       */


      function sortAscendingPriority(a, b) {
        /** @type {?} */
        var pA = a.priority || 0;
        /** @type {?} */

        var pB = b.priority || 0;
        return pA - pB;
      }
      /**
       * @fileoverview added by tsickle
       * Generated from: core/breakpoints/break-point-registry.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * Registry of 1..n MediaQuery breakpoint ranges
       * This is published as a provider and may be overridden from custom, application-specific ranges
       *
       */


      var BreakPointRegistry =
      /** @class */
      function () {
        /**
         * Registry of 1..n MediaQuery breakpoint ranges
         * This is published as a provider and may be overridden from custom, application-specific ranges
         *
         */
        var BreakPointRegistry = /*#__PURE__*/function () {
          /**
           * @param {?} list
           */
          function BreakPointRegistry(list) {
            _classCallCheck2(this, BreakPointRegistry);

            /**
             * Memoized BreakPoint Lookups
             */
            this.findByMap = new Map();
            this.items = _toConsumableArray(list).sort(sortAscendingPriority);
          }
          /**
           * Search breakpoints by alias (e.g. gt-xs)
           * @param {?} alias
           * @return {?}
           */


          _createClass2(BreakPointRegistry, [{
            key: "findByAlias",
            value: function findByAlias(alias) {
              return !alias ? null : this.findWithPredicate(alias,
              /**
              * @param {?} bp
              * @return {?}
              */
              function (bp) {
                return bp.alias == alias;
              });
            }
            /**
             * @param {?} query
             * @return {?}
             */

          }, {
            key: "findByQuery",
            value: function findByQuery(query) {
              return this.findWithPredicate(query,
              /**
              * @param {?} bp
              * @return {?}
              */
              function (bp) {
                return bp.mediaQuery == query;
              });
            }
            /**
             * Get all the breakpoints whose ranges could overlapping `normal` ranges;
             * e.g. gt-sm overlaps md, lg, and xl
             * @return {?}
             */

          }, {
            key: "overlappings",
            get: function get() {
              return this.items.filter(
              /**
              * @param {?} it
              * @return {?}
              */
              function (it) {
                return it.overlapping == true;
              });
            }
            /**
             * Get list of all registered (non-empty) breakpoint aliases
             * @return {?}
             */

          }, {
            key: "aliases",
            get: function get() {
              return this.items.map(
              /**
              * @param {?} it
              * @return {?}
              */
              function (it) {
                return it.alias;
              });
            }
            /**
             * Aliases are mapped to properties using suffixes
             * e.g.  'gt-sm' for property 'layout'  uses suffix 'GtSm'
             * for property layoutGtSM.
             * @return {?}
             */

          }, {
            key: "suffixes",
            get: function get() {
              return this.items.map(
              /**
              * @param {?} it
              * @return {?}
              */
              function (it) {
                return !!it.suffix ? it.suffix : '';
              });
            }
            /**
             * Memoized lookup using custom predicate function
             * @private
             * @param {?} key
             * @param {?} searchFn
             * @return {?}
             */

          }, {
            key: "findWithPredicate",
            value: function findWithPredicate(key, searchFn) {
              /** @type {?} */
              var response = this.findByMap.get(key);

              if (!response) {
                response = this.items.find(searchFn) || null;
                this.findByMap.set(key, response);
              }

              return response || null;
            }
          }]);

          return BreakPointRegistry;
        }();

        BreakPointRegistry.ɵfac = function BreakPointRegistry_Factory(t) {
          return new (t || BreakPointRegistry)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](BREAKPOINTS));
        };
        /** @nocollapse */


        BreakPointRegistry.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({
          factory: function BreakPointRegistry_Factory() {
            return new BreakPointRegistry(Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(BREAKPOINTS));
          },
          token: BreakPointRegistry,
          providedIn: "root"
        });
        /** @nocollapse */

        BreakPointRegistry.ctorParameters = function () {
          return [{
            type: Array,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [BREAKPOINTS]
            }]
          }];
        };
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](BreakPointRegistry, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
            args: [{
              providedIn: 'root'
            }]
          }], function () {
            return [{
              type: Array,
              decorators: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
                args: [BREAKPOINTS]
              }]
            }];
          }, null);
        })();

        return BreakPointRegistry;
      }();
      /**
       * @fileoverview added by tsickle
       * Generated from: core/breakpoints/index.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * @fileoverview added by tsickle
       * Generated from: core/match-media/match-media.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * MediaMonitor configures listeners to mediaQuery changes and publishes an Observable facade to
       * convert mediaQuery change callbacks to subscriber notifications. These notifications will be
       * performed within the ng Zone to trigger change detections and component updates.
       *
       * NOTE: both mediaQuery activations and de-activations are announced in notifications
       */


      var MatchMedia =
      /** @class */
      function () {
        /**
         * MediaMonitor configures listeners to mediaQuery changes and publishes an Observable facade to
         * convert mediaQuery change callbacks to subscriber notifications. These notifications will be
         * performed within the ng Zone to trigger change detections and component updates.
         *
         * NOTE: both mediaQuery activations and de-activations are announced in notifications
         */
        var MatchMedia = /*#__PURE__*/function () {
          /**
           * @param {?} _zone
           * @param {?} _platformId
           * @param {?} _document
           */
          function MatchMedia(_zone, _platformId, _document) {
            _classCallCheck2(this, MatchMedia);

            this._zone = _zone;
            this._platformId = _platformId;
            this._document = _document;
            /**
             * Initialize source with 'all' so all non-responsive APIs trigger style updates
             */

            this.source = new rxjs__WEBPACK_IMPORTED_MODULE_2__["BehaviorSubject"](new MediaChange(true));
            this.registry = new Map();
            this.pendingRemoveListenerFns = [];
            this._observable$ = this.source.asObservable();
          }
          /**
           * Publish list of all current activations
           * @return {?}
           */


          _createClass2(MatchMedia, [{
            key: "activations",
            get: function get() {
              /** @type {?} */
              var results = [];
              this.registry.forEach(
              /**
              * @param {?} mql
              * @param {?} key
              * @return {?}
              */
              function (mql, key) {
                if (mql.matches) {
                  results.push(key);
                }
              });
              return results;
            }
            /**
             * For the specified mediaQuery?
             * @param {?} mediaQuery
             * @return {?}
             */

          }, {
            key: "isActive",
            value: function isActive(mediaQuery) {
              /** @type {?} */
              var mql = this.registry.get(mediaQuery);
              return !!mql ? mql.matches : this.registerQuery(mediaQuery).some(
              /**
              * @param {?} m
              * @return {?}
              */
              function (m) {
                return m.matches;
              });
            }
            /**
             * External observers can watch for all (or a specific) mql changes.
             * Typically used by the MediaQueryAdaptor; optionally available to components
             * who wish to use the MediaMonitor as mediaMonitor$ observable service.
             *
             * Use deferred registration process to register breakpoints only on subscription
             * This logic also enforces logic to register all mediaQueries BEFORE notify
             * subscribers of notifications.
             * @param {?=} mqList
             * @param {?=} filterOthers
             * @return {?}
             */

          }, {
            key: "observe",
            value: function observe(mqList) {
              var _this5 = this;

              var filterOthers = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;

              if (mqList && mqList.length) {
                /** @type {?} */
                var matchMedia$ = this._observable$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["filter"])(
                /**
                * @param {?} change
                * @return {?}
                */
                function (change) {
                  return !filterOthers ? true : mqList.indexOf(change.mediaQuery) > -1;
                }));
                /** @type {?} */


                var registration$ = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Observable"](
                /**
                * @param {?} observer
                * @return {?}
                */
                function (observer) {
                  // tslint:disable-line:max-line-length

                  /** @type {?} */
                  var matches = _this5.registerQuery(mqList);

                  if (matches.length) {
                    /** @type {?} */
                    var lastChange = matches.pop();
                    matches.forEach(
                    /**
                    * @param {?} e
                    * @return {?}
                    */
                    function (e) {
                      observer.next(e);
                    });

                    _this5.source.next(lastChange); // last match is cached

                  }

                  observer.complete();
                });
                return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["merge"])(registration$, matchMedia$);
              }

              return this._observable$;
            }
            /**
             * Based on the BreakPointRegistry provider, register internal listeners for each unique
             * mediaQuery. Each listener emits specific MediaChange data to observers
             * @param {?} mediaQuery
             * @return {?}
             */

          }, {
            key: "registerQuery",
            value: function registerQuery(mediaQuery) {
              var _this6 = this;

              /** @type {?} */
              var list = Array.isArray(mediaQuery) ? mediaQuery : [mediaQuery];
              /** @type {?} */

              var matches = [];
              buildQueryCss(list, this._document);
              list.forEach(
              /**
              * @param {?} query
              * @return {?}
              */
              function (query) {
                /** @type {?} */
                var onMQLEvent =
                /**
                * @param {?} e
                * @return {?}
                */
                function onMQLEvent(e) {
                  _this6._zone.run(
                  /**
                  * @return {?}
                  */
                  function () {
                    return _this6.source.next(new MediaChange(e.matches, query));
                  });
                };
                /** @type {?} */


                var mql = _this6.registry.get(query);

                if (!mql) {
                  mql = _this6.buildMQL(query);
                  mql.addListener(onMQLEvent);

                  _this6.pendingRemoveListenerFns.push(
                  /**
                  * @return {?}
                  */
                  function () {
                    return mql.removeListener(onMQLEvent);
                  });

                  _this6.registry.set(query, mql);
                }

                if (mql.matches) {
                  matches.push(new MediaChange(true, query));
                }
              });
              return matches;
            }
            /**
             * @return {?}
             */

          }, {
            key: "ngOnDestroy",
            value: function ngOnDestroy() {
              /** @type {?} */
              var fn;

              while (fn = this.pendingRemoveListenerFns.pop()) {
                fn();
              }
            }
            /**
             * Call window.matchMedia() to build a MediaQueryList; which
             * supports 0..n listeners for activation/deactivation
             * @protected
             * @param {?} query
             * @return {?}
             */

          }, {
            key: "buildMQL",
            value: function buildMQL(query) {
              return constructMql(query, Object(_angular_common__WEBPACK_IMPORTED_MODULE_1__["isPlatformBrowser"])(this._platformId));
            }
          }]);

          return MatchMedia;
        }();

        MatchMedia.ɵfac = function MatchMedia_Factory(t) {
          return new (t || MatchMedia)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["PLATFORM_ID"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"]));
        };
        /** @nocollapse */


        MatchMedia.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({
          factory: function MatchMedia_Factory() {
            return new MatchMedia(Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"]), Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(_angular_core__WEBPACK_IMPORTED_MODULE_0__["PLATFORM_ID"]), Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"]));
          },
          token: MatchMedia,
          providedIn: "root"
        });
        /** @nocollapse */

        MatchMedia.ctorParameters = function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"]
          }, {
            type: Object,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["PLATFORM_ID"]]
            }]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"]]
            }]
          }];
        };
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatchMedia, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
            args: [{
              providedIn: 'root'
            }]
          }], function () {
            return [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"]
            }, {
              type: Object,
              decorators: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
                args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["PLATFORM_ID"]]
              }]
            }, {
              type: undefined,
              decorators: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
                args: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"]]
              }]
            }];
          }, null);
        })();

        return MatchMedia;
      }();
      /**
       * Private global registry for all dynamically-created, injected style tags
       * @see prepare(query)
       * @type {?}
       */


      var ALL_STYLES = {};
      /**
       * For Webkit engines that only trigger the MediaQueryList Listener
       * when there is at least one CSS selector for the respective media query.
       *
       * @param {?} mediaQueries
       * @param {?} _document
       * @return {?}
       */

      function buildQueryCss(mediaQueries, _document) {
        /** @type {?} */
        var list = mediaQueries.filter(
        /**
        * @param {?} it
        * @return {?}
        */
        function (it) {
          return !ALL_STYLES[it];
        });

        if (list.length > 0) {
          /** @type {?} */
          var query = list.join(', ');

          try {
            /** @type {?} */
            var styleEl = _document.createElement('style');

            styleEl.setAttribute('type', 'text/css');

            if (!styleEl.styleSheet) {
              /** @type {?} */
              var cssText = "\n/*\n  @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n  see http://bit.ly/2sd4HMP\n*/\n@media ".concat(query, " {.fx-query-test{ }}\n");
              styleEl.appendChild(_document.createTextNode(cssText));
            }

            _document.head.appendChild(styleEl); // Store in private global registry


            list.forEach(
            /**
            * @param {?} mq
            * @return {?}
            */
            function (mq) {
              return ALL_STYLES[mq] = styleEl;
            });
          } catch (e) {
            console.error(e);
          }
        }
      }
      /**
       * @param {?} query
       * @param {?} isBrowser
       * @return {?}
       */


      function constructMql(query, isBrowser) {
        /** @type {?} */
        var canListen = isBrowser && !!window.matchMedia('all').addListener;
        return canListen ? window.matchMedia(query) : {
          matches: query === 'all' || query === '',
          media: query,
          addListener:
          /**
          * @return {?}
          */
          function addListener() {},
          removeListener:
          /**
          * @return {?}
          */
          function removeListener() {},
          onchange: null,

          /**
           * @return {?}
           */
          addEventListener: function addEventListener() {},

          /**
           * @return {?}
           */
          removeEventListener: function removeEventListener() {},

          /**
           * @return {?}
           */
          dispatchEvent: function dispatchEvent() {
            return false;
          }
        };
      }
      /**
       * @fileoverview added by tsickle
       * Generated from: core/match-media/mock/mock-match-media.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * MockMatchMedia mocks calls to the Window API matchMedia with a build of a simulated
       * MockMediaQueryListener. Methods are available to simulate an activation of a mediaQuery
       * range and to clearAll mediaQuery listeners.
       */


      var MockMatchMedia =
      /** @class */
      function () {
        /**
         * MockMatchMedia mocks calls to the Window API matchMedia with a build of a simulated
         * MockMediaQueryListener. Methods are available to simulate an activation of a mediaQuery
         * range and to clearAll mediaQuery listeners.
         */
        var MockMatchMedia = /*#__PURE__*/function (_MatchMedia) {
          _inherits2(MockMatchMedia, _MatchMedia);

          var _super3 = _createSuper2(MockMatchMedia);

          // Allow fallback to overlapping mediaQueries

          /**
           * @param {?} _zone
           * @param {?} _platformId
           * @param {?} _document
           * @param {?} _breakpoints
           */
          function MockMatchMedia(_zone, _platformId, _document, _breakpoints) {
            var _this7;

            _classCallCheck2(this, MockMatchMedia);

            _this7 = _super3.call(this, _zone, _platformId, _document);
            _this7._breakpoints = _breakpoints;
            _this7.autoRegisterQueries = true; // Used for testing BreakPoint registrations
            // Used for testing BreakPoint registrations

            _this7.useOverlaps = false; // Allow fallback to overlapping mediaQueries

            return _this7;
          }
          /**
           * Easy method to clear all listeners for all mediaQueries
           * @return {?}
           */


          _createClass2(MockMatchMedia, [{
            key: "clearAll",
            value: function clearAll() {
              this.registry.forEach(
              /**
              * @param {?} mql
              * @return {?}
              */
              function (mql) {
                mql.destroy();
              });
              this.registry.clear();
              this.useOverlaps = false;
            }
            /**
             * Feature to support manual, simulated activation of a mediaQuery.
             * @param {?} mediaQuery
             * @param {?=} useOverlaps
             * @return {?}
             */

          }, {
            key: "activate",
            value: function activate(mediaQuery) {
              var useOverlaps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
              useOverlaps = useOverlaps || this.useOverlaps;
              mediaQuery = this._validateQuery(mediaQuery);

              if (useOverlaps || !this.isActive(mediaQuery)) {
                this._deactivateAll();

                this._registerMediaQuery(mediaQuery);

                this._activateWithOverlaps(mediaQuery, useOverlaps);
              }

              return this.hasActivated;
            }
            /**
             * Converts an optional mediaQuery alias to a specific, valid mediaQuery
             * @param {?} queryOrAlias
             * @return {?}
             */

          }, {
            key: "_validateQuery",
            value: function _validateQuery(queryOrAlias) {
              /** @type {?} */
              var bp = this._breakpoints.findByAlias(queryOrAlias);

              return bp && bp.mediaQuery || queryOrAlias;
            }
            /**
             * Manually onMediaChange any overlapping mediaQueries to simulate
             * similar functionality in the window.matchMedia()
             * @private
             * @param {?} mediaQuery
             * @param {?} useOverlaps
             * @return {?}
             */

          }, {
            key: "_activateWithOverlaps",
            value: function _activateWithOverlaps(mediaQuery, useOverlaps) {
              if (useOverlaps) {
                /** @type {?} */
                var bp = this._breakpoints.findByQuery(mediaQuery);
                /** @type {?} */


                var alias = bp ? bp.alias : 'unknown'; // Simulate activation of overlapping lt-<XXX> ranges

                switch (alias) {
                  case 'lg':
                    this._activateByAlias(['lt-xl']);

                    break;

                  case 'md':
                    this._activateByAlias(['lt-xl', 'lt-lg']);

                    break;

                  case 'sm':
                    this._activateByAlias(['lt-xl', 'lt-lg', 'lt-md']);

                    break;

                  case 'xs':
                    this._activateByAlias(['lt-xl', 'lt-lg', 'lt-md', 'lt-sm']);

                    break;
                } // Simulate activation of overlapping gt-<xxxx> mediaQuery ranges


                switch (alias) {
                  case 'xl':
                    this._activateByAlias(['gt-lg', 'gt-md', 'gt-sm', 'gt-xs']);

                    break;

                  case 'lg':
                    this._activateByAlias(['gt-md', 'gt-sm', 'gt-xs']);

                    break;

                  case 'md':
                    this._activateByAlias(['gt-sm', 'gt-xs']);

                    break;

                  case 'sm':
                    this._activateByAlias(['gt-xs']);

                    break;
                }
              } // Activate last since the responsiveActivation is watching *this* mediaQuery


              return this._activateByQuery(mediaQuery);
            }
            /**
             *
             * @private
             * @param {?} aliases
             * @return {?}
             */

          }, {
            key: "_activateByAlias",
            value: function _activateByAlias(aliases) {
              var _this8 = this;

              /** @type {?} */
              var activate =
              /**
              * @param {?} alias
              * @return {?}
              */
              function activate(alias) {
                /** @type {?} */
                var bp = _this8._breakpoints.findByAlias(alias);

                _this8._activateByQuery(bp ? bp.mediaQuery : alias);
              };

              aliases.forEach(activate);
            }
            /**
             *
             * @private
             * @param {?} mediaQuery
             * @return {?}
             */

          }, {
            key: "_activateByQuery",
            value: function _activateByQuery(mediaQuery) {
              if (!this.registry.has(mediaQuery) && this.autoRegisterQueries) {
                this._registerMediaQuery(mediaQuery);
              }
              /** @type {?} */


              var mql = this.registry.get(mediaQuery);

              if (mql && !this.isActive(mediaQuery)) {
                this.registry.set(mediaQuery, mql.activate());
              }

              return this.hasActivated;
            }
            /**
             * Deactivate all current MQLs and reset the buffer
             * @private
             * @template THIS
             * @this {THIS}
             * @return {THIS}
             */

          }, {
            key: "_deactivateAll",
            value: function _deactivateAll() {
              this.registry.forEach(
              /**
              * @param {?} it
              * @return {?}
              */
              function (it) {
                it.deactivate();
              });
              return this;
            }
            /**
             * Insure the mediaQuery is registered with MatchMedia
             * @private
             * @param {?} mediaQuery
             * @return {?}
             */

          }, {
            key: "_registerMediaQuery",
            value: function _registerMediaQuery(mediaQuery) {
              if (!this.registry.has(mediaQuery) && this.autoRegisterQueries) {
                this.registerQuery(mediaQuery);
              }
            }
            /**
             * Call window.matchMedia() to build a MediaQueryList; which
             * supports 0..n listeners for activation/deactivation
             * @protected
             * @param {?} query
             * @return {?}
             */

          }, {
            key: "buildMQL",
            value: function buildMQL(query) {
              return new MockMediaQueryList(query);
            }
            /**
             * @protected
             * @return {?}
             */

          }, {
            key: "hasActivated",
            get: function get() {
              return this.activations.length > 0;
            }
          }]);

          return MockMatchMedia;
        }(MatchMedia);

        MockMatchMedia.ɵfac = function MockMatchMedia_Factory(t) {
          return new (t || MockMatchMedia)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["PLATFORM_ID"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](BreakPointRegistry));
        };

        MockMatchMedia.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
          token: MockMatchMedia,
          factory: function factory(t) {
            return MockMatchMedia.ɵfac(t);
          }
        });
        /** @nocollapse */

        MockMatchMedia.ctorParameters = function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"]
          }, {
            type: Object,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["PLATFORM_ID"]]
            }]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"]]
            }]
          }, {
            type: BreakPointRegistry
          }];
        };
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MockMatchMedia, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
          }], function () {
            return [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"]
            }, {
              type: Object,
              decorators: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
                args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["PLATFORM_ID"]]
              }]
            }, {
              type: undefined,
              decorators: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
                args: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"]]
              }]
            }, {
              type: BreakPointRegistry
            }];
          }, null);
        })();

        return MockMatchMedia;
      }();
      /**
       * Special internal class to simulate a MediaQueryList and
       * - supports manual activation to simulate mediaQuery matching
       * - manages listeners
       */


      var MockMediaQueryList = /*#__PURE__*/function () {
        /**
         * @param {?} _mediaQuery
         */
        function MockMediaQueryList(_mediaQuery) {
          _classCallCheck2(this, MockMediaQueryList);

          this._mediaQuery = _mediaQuery;
          this._isActive = false;
          this._listeners = [];
          this.onchange = null;
        }
        /**
         * @return {?}
         */


        _createClass2(MockMediaQueryList, [{
          key: "matches",
          get: function get() {
            return this._isActive;
          }
          /**
           * @return {?}
           */

        }, {
          key: "media",
          get: function get() {
            return this._mediaQuery;
          }
          /**
           * Destroy the current list by deactivating the
           * listeners and clearing the internal list
           * @return {?}
           */

        }, {
          key: "destroy",
          value: function destroy() {
            this.deactivate();
            this._listeners = [];
          }
          /**
           * Notify all listeners that 'matches === TRUE'
           * @return {?}
           */

        }, {
          key: "activate",
          value: function activate() {
            var _this9 = this;

            if (!this._isActive) {
              this._isActive = true;

              this._listeners.forEach(
              /**
              * @param {?} callback
              * @return {?}
              */
              function (callback) {
                /** @type {?} */
                var cb = callback;
                cb.call(_this9, {
                  matches: _this9.matches,
                  media: _this9.media
                });
              });
            }

            return this;
          }
          /**
           * Notify all listeners that 'matches === false'
           * @return {?}
           */

        }, {
          key: "deactivate",
          value: function deactivate() {
            var _this10 = this;

            if (this._isActive) {
              this._isActive = false;

              this._listeners.forEach(
              /**
              * @param {?} callback
              * @return {?}
              */
              function (callback) {
                /** @type {?} */
                var cb = callback;
                cb.call(_this10, {
                  matches: _this10.matches,
                  media: _this10.media
                });
              });
            }

            return this;
          }
          /**
           * Add a listener to our internal list to activate later
           * @param {?} listener
           * @return {?}
           */

        }, {
          key: "addListener",
          value: function addListener(listener) {
            if (this._listeners.indexOf(listener) === -1) {
              this._listeners.push(listener);
            }

            if (this._isActive) {
              /** @type {?} */
              var cb = listener;
              cb.call(this, {
                matches: this.matches,
                media: this.media
              });
            }
          }
          /**
           * Don't need to remove listeners in the testing environment
           * @param {?} _
           * @return {?}
           */

        }, {
          key: "removeListener",
          value: function removeListener(_) {}
          /**
           * @param {?} _
           * @param {?} __
           * @param {?=} ___
           * @return {?}
           */

        }, {
          key: "addEventListener",
          value: function addEventListener(_, __, ___) {}
          /**
           * @param {?} _
           * @param {?} __
           * @param {?=} ___
           * @return {?}
           */

        }, {
          key: "removeEventListener",
          value: function removeEventListener(_, __, ___) {}
          /**
           * @param {?} _
           * @return {?}
           */

        }, {
          key: "dispatchEvent",
          value: function dispatchEvent(_) {
            return false;
          }
        }]);

        return MockMediaQueryList;
      }();
      /**
       * Pre-configured provider for MockMatchMedia
       * @type {?}
       */


      var MockMatchMediaProvider = {
        // tslint:disable-line:variable-name
        provide: MatchMedia,
        useClass: MockMatchMedia
      };
      /**
       * @fileoverview added by tsickle
       * Generated from: core/match-media/index.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * @fileoverview added by tsickle
       * Generated from: core/media-marshaller/print-hook.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /** @type {?} */

      var PRINT = 'print';
      /** @type {?} */

      var BREAKPOINT_PRINT = {
        alias: PRINT,
        mediaQuery: PRINT,
        priority: 1000
      };
      /**
       * PrintHook - Use to intercept print MediaQuery activations and force
       *             layouts to render with the specified print alias/breakpoint
       *
       * Used in MediaMarshaller and MediaObserver
       */

      var PrintHook =
      /** @class */
      function () {
        /**
         * PrintHook - Use to intercept print MediaQuery activations and force
         *             layouts to render with the specified print alias/breakpoint
         *
         * Used in MediaMarshaller and MediaObserver
         */
        var PrintHook = /*#__PURE__*/function () {
          /**
           * @param {?} breakpoints
           * @param {?} layoutConfig
           * @param {?} _document
           */
          function PrintHook(breakpoints, layoutConfig, _document) {
            _classCallCheck2(this, PrintHook);

            this.breakpoints = breakpoints;
            this.layoutConfig = layoutConfig;
            this._document = _document; // registeredBeforeAfterPrintHooks tracks if we registered the `beforeprint`
            //  and `afterprint` event listeners.

            this.registeredBeforeAfterPrintHooks = false; // isPrintingBeforeAfterEvent is used to track if we are printing from within
            // a `beforeprint` event handler. This prevents the typicall `stopPrinting`
            // form `interceptEvents` so that printing is not stopped while the dialog
            // is still open. This is an extension of the `isPrinting` property on
            // browsers which support `beforeprint` and `afterprint` events.

            this.isPrintingBeforeAfterEvent = false;
            this.beforePrintEventListeners = [];
            this.afterPrintEventListeners = [];
            /**
             * Is this service currently in Print-mode ?
             */

            this.isPrinting = false;
            this.queue = new PrintQueue();
            this.deactivations = [];
          }
          /**
           * Add 'print' mediaQuery: to listen for matchMedia activations
           * @param {?} queries
           * @return {?}
           */


          _createClass2(PrintHook, [{
            key: "withPrintQuery",
            value: function withPrintQuery(queries) {
              return [].concat(_toConsumableArray(queries), [PRINT]);
            }
            /**
             * Is the MediaChange event for any 'print' \@media
             * @param {?} e
             * @return {?}
             */

          }, {
            key: "isPrintEvent",
            value: function isPrintEvent(e) {
              return e.mediaQuery.startsWith(PRINT);
            }
            /**
             * What is the desired mqAlias to use while printing?
             * @return {?}
             */

          }, {
            key: "printAlias",
            get: function get() {
              return this.layoutConfig.printWithBreakpoints || [];
            }
            /**
             * Lookup breakpoints associated with print aliases.
             * @return {?}
             */

          }, {
            key: "printBreakPoints",
            get: function get() {
              var _this11 = this;

              return this.printAlias.map(
              /**
              * @param {?} alias
              * @return {?}
              */
              function (alias) {
                return _this11.breakpoints.findByAlias(alias);
              }).filter(
              /**
              * @param {?} bp
              * @return {?}
              */
              function (bp) {
                return bp !== null;
              });
            }
            /**
             * Lookup breakpoint associated with mediaQuery
             * @param {?} __0
             * @return {?}
             */

          }, {
            key: "getEventBreakpoints",
            value: function getEventBreakpoints(_ref2) {
              var mediaQuery = _ref2.mediaQuery;

              /** @type {?} */
              var bp = this.breakpoints.findByQuery(mediaQuery);
              /** @type {?} */

              var list = bp ? [].concat(_toConsumableArray(this.printBreakPoints), [bp]) : this.printBreakPoints;
              return list.sort(sortDescendingPriority);
            }
            /**
             * Update event with printAlias mediaQuery information
             * @param {?} event
             * @return {?}
             */

          }, {
            key: "updateEvent",
            value: function updateEvent(event) {
              /** @type {?} */
              var bp = this.breakpoints.findByQuery(event.mediaQuery);

              if (this.isPrintEvent(event)) {
                // Reset from 'print' to first (highest priority) print breakpoint
                bp = this.getEventBreakpoints(event)[0];
                event.mediaQuery = bp ? bp.mediaQuery : '';
              }

              return mergeAlias(event, bp);
            } // registerBeforeAfterPrintHooks registers a `beforeprint` event hook so we can
            // trigger print styles synchronously and apply proper layout styles.
            // It is a noop if the hooks have already been registered or if the document's
            // `defaultView` is not available.

            /**
             * @private
             * @param {?} target
             * @return {?}
             */

          }, {
            key: "registerBeforeAfterPrintHooks",
            value: function registerBeforeAfterPrintHooks(target) {
              var _this12 = this;

              // `defaultView` may be null when rendering on the server or in other contexts.
              if (!this._document.defaultView || this.registeredBeforeAfterPrintHooks) {
                return;
              }

              this.registeredBeforeAfterPrintHooks = true;
              /** @type {?} */

              var beforePrintListener =
              /**
              * @return {?}
              */
              function beforePrintListener() {
                // If we aren't already printing, start printing and update the styles as
                // if there was a regular print `MediaChange`(from matchMedia).
                if (!_this12.isPrinting) {
                  _this12.isPrintingBeforeAfterEvent = true;

                  _this12.startPrinting(target, _this12.getEventBreakpoints(new MediaChange(true, PRINT)));

                  target.updateStyles();
                }
              };
              /** @type {?} */


              var afterPrintListener =
              /**
              * @return {?}
              */
              function afterPrintListener() {
                // If we aren't already printing, start printing and update the styles as
                // if there was a regular print `MediaChange`(from matchMedia).
                _this12.isPrintingBeforeAfterEvent = false;

                if (_this12.isPrinting) {
                  _this12.stopPrinting(target);

                  target.updateStyles();
                }
              }; // Could we have teardown logic to remove if there are no print listeners being used?


              this._document.defaultView.addEventListener('beforeprint', beforePrintListener);

              this._document.defaultView.addEventListener('afterprint', afterPrintListener);

              this.beforePrintEventListeners.push(beforePrintListener);
              this.afterPrintEventListeners.push(afterPrintListener);
            }
            /**
             * Prepare RxJS filter operator with partial application
             * @param {?} target
             * @return {?} pipeable filter predicate
             */

          }, {
            key: "interceptEvents",
            value: function interceptEvents(target) {
              var _this13 = this;

              this.registerBeforeAfterPrintHooks(target);
              return (
                /**
                * @param {?} event
                * @return {?}
                */
                function (event) {
                  if (_this13.isPrintEvent(event)) {
                    if (event.matches && !_this13.isPrinting) {
                      _this13.startPrinting(target, _this13.getEventBreakpoints(event));

                      target.updateStyles();
                    } else if (!event.matches && _this13.isPrinting && !_this13.isPrintingBeforeAfterEvent) {
                      _this13.stopPrinting(target);

                      target.updateStyles();
                    }
                  } else {
                    _this13.collectActivations(event);
                  }
                }
              );
            }
            /**
             * Stop mediaChange event propagation in event streams
             * @return {?}
             */

          }, {
            key: "blockPropagation",
            value: function blockPropagation() {
              var _this14 = this;

              return (
                /**
                * @param {?} event
                * @return {?}
                */
                function (event) {
                  return !(_this14.isPrinting || _this14.isPrintEvent(event));
                }
              );
            }
            /**
             * Save current activateBreakpoints (for later restore)
             * and substitute only the printAlias breakpoint
             * @protected
             * @param {?} target
             * @param {?} bpList
             * @return {?}
             */

          }, {
            key: "startPrinting",
            value: function startPrinting(target, bpList) {
              this.isPrinting = true;
              target.activatedBreakpoints = this.queue.addPrintBreakpoints(bpList);
            }
            /**
             * For any print de-activations, reset the entire print queue
             * @protected
             * @param {?} target
             * @return {?}
             */

          }, {
            key: "stopPrinting",
            value: function stopPrinting(target) {
              target.activatedBreakpoints = this.deactivations;
              this.deactivations = [];
              this.queue.clear();
              this.isPrinting = false;
            }
            /**
             * To restore pre-Print Activations, we must capture the proper
             * list of breakpoint activations BEFORE print starts. OnBeforePrint()
             * is supported; so 'print' mediaQuery activations are used as a fallback
             * in browsers without `beforeprint` support.
             *
             * >  But activated breakpoints are deactivated BEFORE 'print' activation.
             *
             * Let's capture all de-activations using the following logic:
             *
             *  When not printing:
             *    - clear cache when activating non-print breakpoint
             *    - update cache (and sort) when deactivating
             *
             *  When printing:
             *    - sort and save when starting print
             *    - restore as activatedTargets and clear when stop printing
             * @param {?} event
             * @return {?}
             */

          }, {
            key: "collectActivations",
            value: function collectActivations(event) {
              if (!this.isPrinting || this.isPrintingBeforeAfterEvent) {
                if (!event.matches) {
                  /** @type {?} */
                  var bp = this.breakpoints.findByQuery(event.mediaQuery);

                  if (bp) {
                    // Deactivating a breakpoint
                    this.deactivations.push(bp);
                    this.deactivations.sort(sortDescendingPriority);
                  }
                } else if (!this.isPrintingBeforeAfterEvent) {
                  // Only clear deactivations if we aren't printing from a `beforeprint` event.
                  // Otherwise this will clear before `stopPrinting()` is called to restore
                  // the pre-Print Activations.
                  this.deactivations = [];
                }
              }
            }
            /**
             * Teardown logic for the service.
             * @return {?}
             */

          }, {
            key: "ngOnDestroy",
            value: function ngOnDestroy() {
              var _this15 = this;

              this.beforePrintEventListeners.forEach(
              /**
              * @param {?} l
              * @return {?}
              */
              function (l) {
                return _this15._document.defaultView.removeEventListener('beforeprint', l);
              });
              this.afterPrintEventListeners.forEach(
              /**
              * @param {?} l
              * @return {?}
              */
              function (l) {
                return _this15._document.defaultView.removeEventListener('afterprint', l);
              });
            }
          }]);

          return PrintHook;
        }();

        PrintHook.ɵfac = function PrintHook_Factory(t) {
          return new (t || PrintHook)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](BreakPointRegistry), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](LAYOUT_CONFIG), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"]));
        };
        /** @nocollapse */


        PrintHook.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({
          factory: function PrintHook_Factory() {
            return new PrintHook(Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(BreakPointRegistry), Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(LAYOUT_CONFIG), Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"]));
          },
          token: PrintHook,
          providedIn: "root"
        });
        /** @nocollapse */

        PrintHook.ctorParameters = function () {
          return [{
            type: BreakPointRegistry
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [LAYOUT_CONFIG]
            }]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"]]
            }]
          }];
        };
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](PrintHook, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
            args: [{
              providedIn: 'root'
            }]
          }], function () {
            return [{
              type: BreakPointRegistry
            }, {
              type: undefined,
              decorators: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
                args: [LAYOUT_CONFIG]
              }]
            }, {
              type: undefined,
              decorators: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
                args: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"]]
              }]
            }];
          }, null);
        })();

        return PrintHook;
      }(); // ************************************************************************
      // Internal Utility class 'PrintQueue'
      // ************************************************************************

      /**
       * Utility class to manage print breakpoints + activatedBreakpoints
       * with correct sorting WHILE printing
       */


      var PrintQueue = /*#__PURE__*/function () {
        function PrintQueue() {
          _classCallCheck2(this, PrintQueue);

          /**
           * Sorted queue with prioritized print breakpoints
           */
          this.printBreakpoints = [];
        }
        /**
         * @param {?} bpList
         * @return {?}
         */


        _createClass2(PrintQueue, [{
          key: "addPrintBreakpoints",
          value: function addPrintBreakpoints(bpList) {
            var _this16 = this;

            bpList.push(BREAKPOINT_PRINT);
            bpList.sort(sortDescendingPriority);
            bpList.forEach(
            /**
            * @param {?} bp
            * @return {?}
            */
            function (bp) {
              return _this16.addBreakpoint(bp);
            });
            return this.printBreakpoints;
          }
          /**
           * Add Print breakpoint to queue
           * @param {?} bp
           * @return {?}
           */

        }, {
          key: "addBreakpoint",
          value: function addBreakpoint(bp) {
            if (!!bp) {
              /** @type {?} */
              var bpInList = this.printBreakpoints.find(
              /**
              * @param {?} it
              * @return {?}
              */
              function (it) {
                return it.mediaQuery === bp.mediaQuery;
              });

              if (bpInList === undefined) {
                // If this is a `printAlias` breakpoint, then append. If a true 'print' breakpoint,
                // register as highest priority in the queue
                this.printBreakpoints = isPrintBreakPoint(bp) ? [bp].concat(_toConsumableArray(this.printBreakpoints)) : [].concat(_toConsumableArray(this.printBreakpoints), [bp]);
              }
            }
          }
          /**
           * Restore original activated breakpoints and clear internal caches
           * @return {?}
           */

        }, {
          key: "clear",
          value: function clear() {
            this.printBreakpoints = [];
          }
        }]);

        return PrintQueue;
      }(); // ************************************************************************
      // Internal Utility methods
      // ************************************************************************

      /**
       * Only support intercept queueing if the Breakpoint is a print \@media query
       * @param {?} bp
       * @return {?}
       */


      function isPrintBreakPoint(bp) {
        return bp ? bp.mediaQuery.startsWith(PRINT) : false;
      }
      /**
       * @fileoverview added by tsickle
       * Generated from: core/utils/array.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * Wraps the provided value in an array, unless the provided value is an array.
       * @template T
       * @param {?} value
       * @return {?}
       */


      function coerceArray(value) {
        return Array.isArray(value) ? value : [value];
      }
      /**
       * @fileoverview added by tsickle
       * Generated from: core/media-observer/media-observer.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * MediaObserver enables applications to listen for 1..n mediaQuery activations and to determine
       * if a mediaQuery is currently activated.
       *
       * Since a breakpoint change will first deactivate 1...n mediaQueries and then possibly activate
       * 1..n mediaQueries, the MediaObserver will debounce notifications and report ALL *activations*
       * in 1 event notification. The reported activations will be sorted in descending priority order.
       *
       * This class uses the BreakPoint Registry to inject alias information into the raw MediaChange
       * notification. For custom mediaQuery notifications, alias information will not be injected and
       * those fields will be ''.
       *
       * Note: Developers should note that only mediaChange activations (not de-activations)
       *       are announced by the MediaObserver.
       *
       * \@usage
       *
       *  // RxJS
       *  import { filter } from 'rxjs/operators';
       *  import { MediaObserver } from '\@angular/flex-layout';
       *
       * \@Component({ ... })
       *  export class AppComponent {
       *    status: string = '';
       *
       *    constructor(mediaObserver: MediaObserver) {
       *      const media$ = mediaObserver.asObservable().pipe(
       *        filter((changes: MediaChange[]) => true)   // silly noop filter
       *      );
       *
       *      media$.subscribe((changes: MediaChange[]) => {
       *        let status = '';
       *        changes.forEach( change => {
       *          status += `'${change.mqAlias}' = (${change.mediaQuery}) <br/>` ;
       *        });
       *        this.status = status;
       *     });
       *
       *    }
       *  }
       */


      var MediaObserver =
      /** @class */
      function () {
        /**
         * MediaObserver enables applications to listen for 1..n mediaQuery activations and to determine
         * if a mediaQuery is currently activated.
         *
         * Since a breakpoint change will first deactivate 1...n mediaQueries and then possibly activate
         * 1..n mediaQueries, the MediaObserver will debounce notifications and report ALL *activations*
         * in 1 event notification. The reported activations will be sorted in descending priority order.
         *
         * This class uses the BreakPoint Registry to inject alias information into the raw MediaChange
         * notification. For custom mediaQuery notifications, alias information will not be injected and
         * those fields will be ''.
         *
         * Note: Developers should note that only mediaChange activations (not de-activations)
         *       are announced by the MediaObserver.
         *
         * \@usage
         *
         *  // RxJS
         *  import { filter } from 'rxjs/operators';
         *  import { MediaObserver } from '\@angular/flex-layout';
         *
         * \@Component({ ... })
         *  export class AppComponent {
         *    status: string = '';
         *
         *    constructor(mediaObserver: MediaObserver) {
         *      const media$ = mediaObserver.asObservable().pipe(
         *        filter((changes: MediaChange[]) => true)   // silly noop filter
         *      );
         *
         *      media$.subscribe((changes: MediaChange[]) => {
         *        let status = '';
         *        changes.forEach( change => {
         *          status += `'${change.mqAlias}' = (${change.mediaQuery}) <br/>` ;
         *        });
         *        this.status = status;
         *     });
         *
         *    }
         *  }
         */
        var MediaObserver = /*#__PURE__*/function () {
          /**
           * @param {?} breakpoints
           * @param {?} matchMedia
           * @param {?} hook
           */
          function MediaObserver(breakpoints, matchMedia, hook) {
            _classCallCheck2(this, MediaObserver);

            this.breakpoints = breakpoints;
            this.matchMedia = matchMedia;
            this.hook = hook;
            /**
             * Filter MediaChange notifications for overlapping breakpoints
             */

            this.filterOverlaps = false;
            this.destroyed$ = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
            this._media$ = this.watchActivations();
            this.media$ = this._media$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["filter"])(
            /**
            * @param {?} changes
            * @return {?}
            */
            function (changes) {
              return changes.length > 0;
            }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(
            /**
            * @param {?} changes
            * @return {?}
            */
            function (changes) {
              return changes[0];
            }));
          }
          /**
           * Completes the active subject, signalling to all complete for all
           * MediaObserver subscribers
           * @return {?}
           */


          _createClass2(MediaObserver, [{
            key: "ngOnDestroy",
            value: function ngOnDestroy() {
              this.destroyed$.next();
              this.destroyed$.complete();
            } // ************************************************
            // Public Methods
            // ************************************************

            /**
             * Observe changes to current activation 'list'
             * @return {?}
             */

          }, {
            key: "asObservable",
            value: function asObservable() {
              return this._media$;
            }
            /**
             * Allow programmatic query to determine if one or more media query/alias match
             * the current viewport size.
             * @param {?} value One or more media queries (or aliases) to check.
             * @return {?} Whether any of the media queries match.
             */

          }, {
            key: "isActive",
            value: function isActive(value) {
              var _this17 = this;

              /** @type {?} */
              var aliases = splitQueries(coerceArray(value));
              return aliases.some(
              /**
              * @param {?} alias
              * @return {?}
              */
              function (alias) {
                /** @type {?} */
                var query = toMediaQuery(alias, _this17.breakpoints);
                return query !== null && _this17.matchMedia.isActive(query);
              });
            } // ************************************************
            // Internal Methods
            // ************************************************

            /**
             * Register all the mediaQueries registered in the BreakPointRegistry
             * This is needed so subscribers can be auto-notified of all standard, registered
             * mediaQuery activations
             * @private
             * @return {?}
             */

          }, {
            key: "watchActivations",
            value: function watchActivations() {
              /** @type {?} */
              var queries = this.breakpoints.items.map(
              /**
              * @param {?} bp
              * @return {?}
              */
              function (bp) {
                return bp.mediaQuery;
              });
              return this.buildObservable(queries);
            }
            /**
             * Only pass/announce activations (not de-activations)
             *
             * Since multiple-mediaQueries can be activation in a cycle,
             * gather all current activations into a single list of changes to observers
             *
             * Inject associated (if any) alias information into the MediaChange event
             * - Exclude mediaQuery activations for overlapping mQs. List bounded mQ ranges only
             * - Exclude print activations that do not have an associated mediaQuery
             *
             * NOTE: the raw MediaChange events [from MatchMedia] do not
             *       contain important alias information; as such this info
             *       must be injected into the MediaChange
             * @private
             * @param {?} mqList
             * @return {?}
             */

          }, {
            key: "buildObservable",
            value: function buildObservable(mqList) {
              var _this18 = this;

              /** @type {?} */
              var hasChanges =
              /**
              * @param {?} changes
              * @return {?}
              */
              function hasChanges(changes) {
                /** @type {?} */
                var isValidQuery =
                /**
                * @param {?} change
                * @return {?}
                */
                function isValidQuery(change) {
                  return change.mediaQuery.length > 0;
                };

                return changes.filter(isValidQuery).length > 0;
              };
              /** @type {?} */


              var excludeOverlaps =
              /**
              * @param {?} changes
              * @return {?}
              */
              function excludeOverlaps(changes) {
                return !_this18.filterOverlaps ? changes : changes.filter(
                /**
                * @param {?} change
                * @return {?}
                */
                function (change) {
                  /** @type {?} */
                  var bp = _this18.breakpoints.findByQuery(change.mediaQuery);

                  return !bp ? true : !bp.overlapping;
                });
              };
              /**
               */


              return this.matchMedia.observe(this.hook.withPrintQuery(mqList)).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["filter"])(
              /**
              * @param {?} change
              * @return {?}
              */
              function (change) {
                return change.matches;
              }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["debounceTime"])(0, rxjs__WEBPACK_IMPORTED_MODULE_2__["asapScheduler"]), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["switchMap"])(
              /**
              * @param {?} _
              * @return {?}
              */
              function (_) {
                return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(_this18.findAllActivations());
              }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(excludeOverlaps), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["filter"])(hasChanges), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["takeUntil"])(this.destroyed$));
            }
            /**
             * Find all current activations and prepare single list of activations
             * sorted by descending priority.
             * @private
             * @return {?}
             */

          }, {
            key: "findAllActivations",
            value: function findAllActivations() {
              var _this19 = this;

              /** @type {?} */
              var mergeMQAlias =
              /**
              * @param {?} change
              * @return {?}
              */
              function mergeMQAlias(change) {
                /** @type {?} */
                var bp = _this19.breakpoints.findByQuery(change.mediaQuery);

                return mergeAlias(change, bp);
              };
              /** @type {?} */


              var replaceWithPrintAlias =
              /**
              * @param {?} change
              * @return {?}
              */
              function replaceWithPrintAlias(change) {
                return _this19.hook.isPrintEvent(change) ? _this19.hook.updateEvent(change) : change;
              };

              return this.matchMedia.activations.map(
              /**
              * @param {?} query
              * @return {?}
              */
              function (query) {
                return new MediaChange(true, query);
              }).map(replaceWithPrintAlias).map(mergeMQAlias).sort(sortDescendingPriority);
            }
          }]);

          return MediaObserver;
        }();

        MediaObserver.ɵfac = function MediaObserver_Factory(t) {
          return new (t || MediaObserver)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](BreakPointRegistry), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](MatchMedia), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](PrintHook));
        };
        /** @nocollapse */


        MediaObserver.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({
          factory: function MediaObserver_Factory() {
            return new MediaObserver(Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(BreakPointRegistry), Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(MatchMedia), Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(PrintHook));
          },
          token: MediaObserver,
          providedIn: "root"
        });
        /** @nocollapse */

        MediaObserver.ctorParameters = function () {
          return [{
            type: BreakPointRegistry
          }, {
            type: MatchMedia
          }, {
            type: PrintHook
          }];
        };
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MediaObserver, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
            args: [{
              providedIn: 'root'
            }]
          }], function () {
            return [{
              type: BreakPointRegistry
            }, {
              type: MatchMedia
            }, {
              type: PrintHook
            }];
          }, null);
        })();

        return MediaObserver;
      }();
      /**
       * Find associated breakpoint (if any)
       * @param {?} query
       * @param {?} locator
       * @return {?}
       */


      function toMediaQuery(query, locator) {
        /** @type {?} */
        var bp = locator.findByAlias(query) || locator.findByQuery(query);
        return bp ? bp.mediaQuery : null;
      }
      /**
       * Split each query string into separate query strings if two queries are provided as comma
       * separated.
       * @param {?} queries
       * @return {?}
       */


      function splitQueries(queries) {
        return queries.map(
        /**
        * @param {?} query
        * @return {?}
        */
        function (query) {
          return query.split(',');
        }).reduce(
        /**
        * @param {?} a1
        * @param {?} a2
        * @return {?}
        */
        function (a1, a2) {
          return a1.concat(a2);
        }).map(
        /**
        * @param {?} query
        * @return {?}
        */
        function (query) {
          return query.trim();
        });
      }
      /**
       * @fileoverview added by tsickle
       * Generated from: core/media-observer/index.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * @fileoverview added by tsickle
       * Generated from: core/media-trigger/media-trigger.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * Class
       */


      var MediaTrigger =
      /** @class */
      function () {
        /**
         * Class
         */
        var MediaTrigger = /*#__PURE__*/function () {
          /**
           * @param {?} breakpoints
           * @param {?} matchMedia
           * @param {?} layoutConfig
           * @param {?} _platformId
           * @param {?} _document
           */
          function MediaTrigger(breakpoints, matchMedia, layoutConfig, _platformId, _document) {
            _classCallCheck2(this, MediaTrigger);

            this.breakpoints = breakpoints;
            this.matchMedia = matchMedia;
            this.layoutConfig = layoutConfig;
            this._platformId = _platformId;
            this._document = _document;
            this.hasCachedRegistryMatches = false;
            this.originalActivations = [];
            this.originalRegistry = new Map();
          }
          /**
           * Manually activate range of breakpoints
           * @param {?} list array of mediaQuery or alias strings
           * @return {?}
           */


          _createClass2(MediaTrigger, [{
            key: "activate",
            value: function activate(list) {
              list = list.map(
              /**
              * @param {?} it
              * @return {?}
              */
              function (it) {
                return it.trim();
              }); // trim queries

              this.saveActivations();
              this.deactivateAll();
              this.setActivations(list);
              this.prepareAutoRestore();
            }
            /**
             * Restore original, 'real' breakpoints and emit events
             * to trigger stream notification
             * @return {?}
             */

          }, {
            key: "restore",
            value: function restore() {
              if (this.hasCachedRegistryMatches) {
                /** @type {?} */
                var extractQuery =
                /**
                * @param {?} change
                * @return {?}
                */
                function extractQuery(change) {
                  return change.mediaQuery;
                };
                /** @type {?} */


                var list = this.originalActivations.map(extractQuery);

                try {
                  this.deactivateAll();
                  this.restoreRegistryMatches();
                  this.setActivations(list);
                } finally {
                  this.originalActivations = [];

                  if (this.resizeSubscription) {
                    this.resizeSubscription.unsubscribe();
                  }
                }
              }
            } // ************************************************
            // Internal Methods
            // ************************************************

            /**
             * Whenever window resizes, immediately auto-restore original
             * activations (if we are simulating activations)
             * @private
             * @return {?}
             */

          }, {
            key: "prepareAutoRestore",
            value: function prepareAutoRestore() {
              /** @type {?} */
              var isBrowser = Object(_angular_common__WEBPACK_IMPORTED_MODULE_1__["isPlatformBrowser"])(this._platformId) && this._document;
              /** @type {?} */


              var enableAutoRestore = isBrowser && this.layoutConfig.mediaTriggerAutoRestore;

              if (enableAutoRestore) {
                /** @type {?} */
                var resize$ = Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["fromEvent"])(window, 'resize').pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["take"])(1));
                this.resizeSubscription = resize$.subscribe(this.restore.bind(this));
              }
            }
            /**
             * Notify all matchMedia subscribers of de-activations
             *
             * Note: we must force 'matches' updates for
             *       future matchMedia::activation lookups
             * @private
             * @return {?}
             */

          }, {
            key: "deactivateAll",
            value: function deactivateAll() {
              /** @type {?} */
              var list = this.currentActivations;
              this.forceRegistryMatches(list, false);
              this.simulateMediaChanges(list, false);
            }
            /**
             * Cache current activations as sorted, prioritized list of MediaChanges
             * @private
             * @return {?}
             */

          }, {
            key: "saveActivations",
            value: function saveActivations() {
              var _this20 = this;

              if (!this.hasCachedRegistryMatches) {
                /** @type {?} */
                var toMediaChange =
                /**
                * @param {?} query
                * @return {?}
                */
                function toMediaChange(query) {
                  return new MediaChange(true, query);
                };
                /** @type {?} */


                var mergeMQAlias =
                /**
                * @param {?} change
                * @return {?}
                */
                function mergeMQAlias(change) {
                  /** @type {?} */
                  var bp = _this20.breakpoints.findByQuery(change.mediaQuery);

                  return mergeAlias(change, bp);
                };

                this.originalActivations = this.currentActivations.map(toMediaChange).map(mergeMQAlias).sort(sortDescendingPriority);
                this.cacheRegistryMatches();
              }
            }
            /**
             * Force set manual activations for specified mediaQuery list
             * @private
             * @param {?} list
             * @return {?}
             */

          }, {
            key: "setActivations",
            value: function setActivations(list) {
              if (!!this.originalRegistry) {
                this.forceRegistryMatches(list, true);
              }

              this.simulateMediaChanges(list);
            }
            /**
             * For specified mediaQuery list manually simulate activations or deactivations
             * @private
             * @param {?} queries
             * @param {?=} matches
             * @return {?}
             */

          }, {
            key: "simulateMediaChanges",
            value: function simulateMediaChanges(queries) {
              var _this21 = this;

              var matches = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;

              /** @type {?} */
              var toMediaQuery =
              /**
              * @param {?} query
              * @return {?}
              */
              function toMediaQuery(query) {
                /** @type {?} */
                var locator = _this21.breakpoints;
                /** @type {?} */

                var bp = locator.findByAlias(query) || locator.findByQuery(query);
                return bp ? bp.mediaQuery : query;
              };
              /** @type {?} */


              var emitChangeEvent =
              /**
              * @param {?} query
              * @return {?}
              */
              function emitChangeEvent(query) {
                return _this21.emitChangeEvent(matches, query);
              };

              queries.map(toMediaQuery).forEach(emitChangeEvent);
            }
            /**
             * Replace current registry with simulated registry...
             * Note: this is required since MediaQueryList::matches is 'readOnly'
             * @private
             * @param {?} queries
             * @param {?} matches
             * @return {?}
             */

          }, {
            key: "forceRegistryMatches",
            value: function forceRegistryMatches(queries, matches) {
              /** @type {?} */
              var registry = new Map();
              queries.forEach(
              /**
              * @param {?} query
              * @return {?}
              */
              function (query) {
                registry.set(query, {
                  matches: matches
                });
              });
              this.matchMedia.registry = registry;
            }
            /**
             * Save current MatchMedia::registry items.
             * @private
             * @return {?}
             */

          }, {
            key: "cacheRegistryMatches",
            value: function cacheRegistryMatches() {
              /** @type {?} */
              var target = this.originalRegistry;
              target.clear();
              this.matchMedia.registry.forEach(
              /**
              * @param {?} value
              * @param {?} key
              * @return {?}
              */
              function (value, key) {
                target.set(key, value);
              });
              this.hasCachedRegistryMatches = true;
            }
            /**
             * Restore original, 'true' registry
             * @private
             * @return {?}
             */

          }, {
            key: "restoreRegistryMatches",
            value: function restoreRegistryMatches() {
              /** @type {?} */
              var target = this.matchMedia.registry;
              target.clear();
              this.originalRegistry.forEach(
              /**
              * @param {?} value
              * @param {?} key
              * @return {?}
              */
              function (value, key) {
                target.set(key, value);
              });
              this.originalRegistry.clear();
              this.hasCachedRegistryMatches = false;
            }
            /**
             * Manually emit a MediaChange event via the MatchMedia to MediaMarshaller and MediaObserver
             * @private
             * @param {?} matches
             * @param {?} query
             * @return {?}
             */

          }, {
            key: "emitChangeEvent",
            value: function emitChangeEvent(matches, query) {
              this.matchMedia.source.next(new MediaChange(matches, query));
            }
            /**
             * @private
             * @return {?}
             */

          }, {
            key: "currentActivations",
            get: function get() {
              return this.matchMedia.activations;
            }
          }]);

          return MediaTrigger;
        }();

        MediaTrigger.ɵfac = function MediaTrigger_Factory(t) {
          return new (t || MediaTrigger)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](BreakPointRegistry), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](MatchMedia), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](LAYOUT_CONFIG), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["PLATFORM_ID"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"]));
        };
        /** @nocollapse */


        MediaTrigger.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({
          factory: function MediaTrigger_Factory() {
            return new MediaTrigger(Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(BreakPointRegistry), Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(MatchMedia), Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(LAYOUT_CONFIG), Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(_angular_core__WEBPACK_IMPORTED_MODULE_0__["PLATFORM_ID"]), Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"]));
          },
          token: MediaTrigger,
          providedIn: "root"
        });
        /** @nocollapse */

        MediaTrigger.ctorParameters = function () {
          return [{
            type: BreakPointRegistry
          }, {
            type: MatchMedia
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [LAYOUT_CONFIG]
            }]
          }, {
            type: Object,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["PLATFORM_ID"]]
            }]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"]]
            }]
          }];
        };
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MediaTrigger, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
            args: [{
              providedIn: 'root'
            }]
          }], function () {
            return [{
              type: BreakPointRegistry
            }, {
              type: MatchMedia
            }, {
              type: undefined,
              decorators: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
                args: [LAYOUT_CONFIG]
              }]
            }, {
              type: Object,
              decorators: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
                args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["PLATFORM_ID"]]
              }]
            }, {
              type: undefined,
              decorators: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
                args: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"]]
              }]
            }];
          }, null);
        })();

        return MediaTrigger;
      }();
      /**
       * @fileoverview added by tsickle
       * Generated from: core/media-trigger/index.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * @fileoverview added by tsickle
       * Generated from: core/utils/index.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * @fileoverview added by tsickle
       * Generated from: utils/auto-prefixer.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * Applies CSS prefixes to appropriate style keys.
       *
       * Note: `-ms-`, `-moz` and `-webkit-box` are no longer supported. e.g.
       *    {
       *      display: -webkit-flex;     NEW - Safari 6.1+. iOS 7.1+, BB10
       *      display: flex;             NEW, Spec - Firefox, Chrome, Opera
       *      // display: -webkit-box;   OLD - iOS 6-, Safari 3.1-6, BB7
       *      // display: -ms-flexbox;   TWEENER - IE 10
       *      // display: -moz-flexbox;  OLD - Firefox
       *    }
       * @param {?} target
       * @return {?}
       */


      function applyCssPrefixes(target) {
        for (var key in target) {
          /** @type {?} */
          var value = target[key] || '';

          switch (key) {
            case 'display':
              if (value === 'flex') {
                target['display'] = ['-webkit-flex', 'flex'];
              } else if (value === 'inline-flex') {
                target['display'] = ['-webkit-inline-flex', 'inline-flex'];
              } else {
                target['display'] = value;
              }

              break;

            case 'align-items':
            case 'align-self':
            case 'align-content':
            case 'flex':
            case 'flex-basis':
            case 'flex-flow':
            case 'flex-grow':
            case 'flex-shrink':
            case 'flex-wrap':
            case 'justify-content':
              target['-webkit-' + key] = value;
              break;

            case 'flex-direction':
              value = value || 'row';
              target['-webkit-flex-direction'] = value;
              target['flex-direction'] = value;
              break;

            case 'order':
              target['order'] = target['-webkit-' + key] = isNaN(+value) ? '0' : value;
              break;
          }
        }

        return target;
      }
      /**
       * @fileoverview added by tsickle
       * Generated from: core/style-utils/style-utils.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */


      var StyleUtils =
      /** @class */
      function () {
        var StyleUtils = /*#__PURE__*/function () {
          /**
           * @param {?} _serverStylesheet
           * @param {?} _serverModuleLoaded
           * @param {?} _platformId
           * @param {?} layoutConfig
           */
          function StyleUtils(_serverStylesheet, _serverModuleLoaded, _platformId, layoutConfig) {
            _classCallCheck2(this, StyleUtils);

            this._serverStylesheet = _serverStylesheet;
            this._serverModuleLoaded = _serverModuleLoaded;
            this._platformId = _platformId;
            this.layoutConfig = layoutConfig;
          }
          /**
           * Applies styles given via string pair or object map to the directive element
           * @param {?} element
           * @param {?} style
           * @param {?=} value
           * @return {?}
           */


          _createClass2(StyleUtils, [{
            key: "applyStyleToElement",
            value: function applyStyleToElement(element, style) {
              var value = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;

              /** @type {?} */
              var styles = {};

              if (typeof style === 'string') {
                styles[style] = value;
                style = styles;
              }

              styles = this.layoutConfig.disableVendorPrefixes ? style : applyCssPrefixes(style);

              this._applyMultiValueStyleToElement(styles, element);
            }
            /**
             * Applies styles given via string pair or object map to the directive's element
             * @param {?} style
             * @param {?=} elements
             * @return {?}
             */

          }, {
            key: "applyStyleToElements",
            value: function applyStyleToElements(style) {
              var _this22 = this;

              var elements = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];

              /** @type {?} */
              var styles = this.layoutConfig.disableVendorPrefixes ? style : applyCssPrefixes(style);
              elements.forEach(
              /**
              * @param {?} el
              * @return {?}
              */
              function (el) {
                _this22._applyMultiValueStyleToElement(styles, el);
              });
            }
            /**
             * Determine the DOM element's Flexbox flow (flex-direction)
             *
             * Check inline style first then check computed (stylesheet) style
             * @param {?} target
             * @return {?}
             */

          }, {
            key: "getFlowDirection",
            value: function getFlowDirection(target) {
              /** @type {?} */
              var query = 'flex-direction';
              /** @type {?} */

              var value = this.lookupStyle(target, query);
              /** @type {?} */

              var hasInlineValue = this.lookupInlineStyle(target, query) || Object(_angular_common__WEBPACK_IMPORTED_MODULE_1__["isPlatformServer"])(this._platformId) && this._serverModuleLoaded ? value : '';
              return [value || 'row', hasInlineValue];
            }
            /**
             * @param {?} target
             * @return {?}
             */

          }, {
            key: "hasWrap",
            value: function hasWrap(target) {
              /** @type {?} */
              var query = 'flex-wrap';
              return this.lookupStyle(target, query) === 'wrap';
            }
            /**
             * Find the DOM element's raw attribute value (if any)
             * @param {?} element
             * @param {?} attribute
             * @return {?}
             */

          }, {
            key: "lookupAttributeValue",
            value: function lookupAttributeValue(element, attribute) {
              return element.getAttribute(attribute) || '';
            }
            /**
             * Find the DOM element's inline style value (if any)
             * @param {?} element
             * @param {?} styleName
             * @return {?}
             */

          }, {
            key: "lookupInlineStyle",
            value: function lookupInlineStyle(element, styleName) {
              return Object(_angular_common__WEBPACK_IMPORTED_MODULE_1__["isPlatformBrowser"])(this._platformId) ? element.style.getPropertyValue(styleName) : this._getServerStyle(element, styleName);
            }
            /**
             * Determine the inline or inherited CSS style
             * NOTE: platform-server has no implementation for getComputedStyle
             * @param {?} element
             * @param {?} styleName
             * @param {?=} inlineOnly
             * @return {?}
             */

          }, {
            key: "lookupStyle",
            value: function lookupStyle(element, styleName) {
              var inlineOnly = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;

              /** @type {?} */
              var value = '';

              if (element) {
                /** @type {?} */
                var immediateValue = value = this.lookupInlineStyle(element, styleName);

                if (!immediateValue) {
                  if (Object(_angular_common__WEBPACK_IMPORTED_MODULE_1__["isPlatformBrowser"])(this._platformId)) {
                    if (!inlineOnly) {
                      value = getComputedStyle(element).getPropertyValue(styleName);
                    }
                  } else {
                    if (this._serverModuleLoaded) {
                      value = this._serverStylesheet.getStyleForElement(element, styleName);
                    }
                  }
                }
              } // Note: 'inline' is the default of all elements, unless UA stylesheet overrides;
              //       in which case getComputedStyle() should determine a valid value.


              return value ? value.trim() : '';
            }
            /**
             * Applies the styles to the element. The styles object map may contain an array of values
             * Each value will be added as element style
             * Keys are sorted to add prefixed styles (like -webkit-x) first, before the standard ones
             * @private
             * @param {?} styles
             * @param {?} element
             * @return {?}
             */

          }, {
            key: "_applyMultiValueStyleToElement",
            value: function _applyMultiValueStyleToElement(styles, element) {
              var _this23 = this;

              Object.keys(styles).sort().forEach(
              /**
              * @param {?} key
              * @return {?}
              */
              function (key) {
                /** @type {?} */
                var el = styles[key];
                /** @type {?} */

                var values = Array.isArray(el) ? el : [el];
                values.sort();

                var _iterator = _createForOfIteratorHelper(values),
                    _step;

                try {
                  for (_iterator.s(); !(_step = _iterator.n()).done;) {
                    var value = _step.value;
                    value = value ? value + '' : '';

                    if (Object(_angular_common__WEBPACK_IMPORTED_MODULE_1__["isPlatformBrowser"])(_this23._platformId) || !_this23._serverModuleLoaded) {
                      Object(_angular_common__WEBPACK_IMPORTED_MODULE_1__["isPlatformBrowser"])(_this23._platformId) ? element.style.setProperty(key, value) : _this23._setServerStyle(element, key, value);
                    } else {
                      _this23._serverStylesheet.addStyleToElement(element, key, value);
                    }
                  }
                } catch (err) {
                  _iterator.e(err);
                } finally {
                  _iterator.f();
                }
              });
            }
            /**
             * @private
             * @param {?} element
             * @param {?} styleName
             * @param {?=} styleValue
             * @return {?}
             */

          }, {
            key: "_setServerStyle",
            value: function _setServerStyle(element, styleName, styleValue) {
              styleName = styleName.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();
              /** @type {?} */

              var styleMap = this._readStyleAttribute(element);

              styleMap[styleName] = styleValue || '';

              this._writeStyleAttribute(element, styleMap);
            }
            /**
             * @private
             * @param {?} element
             * @param {?} styleName
             * @return {?}
             */

          }, {
            key: "_getServerStyle",
            value: function _getServerStyle(element, styleName) {
              /** @type {?} */
              var styleMap = this._readStyleAttribute(element);

              return styleMap[styleName] || '';
            }
            /**
             * @private
             * @param {?} element
             * @return {?}
             */

          }, {
            key: "_readStyleAttribute",
            value: function _readStyleAttribute(element) {
              /** @type {?} */
              var styleMap = {};
              /** @type {?} */

              var styleAttribute = element.getAttribute('style');

              if (styleAttribute) {
                /** @type {?} */
                var styleList = styleAttribute.split(/;+/g);

                for (var i = 0; i < styleList.length; i++) {
                  /** @type {?} */
                  var style = styleList[i].trim();

                  if (style.length > 0) {
                    /** @type {?} */
                    var colonIndex = style.indexOf(':');

                    if (colonIndex === -1) {
                      throw new Error("Invalid CSS style: ".concat(style));
                    }
                    /** @type {?} */


                    var name = style.substr(0, colonIndex).trim();
                    styleMap[name] = style.substr(colonIndex + 1).trim();
                  }
                }
              }

              return styleMap;
            }
            /**
             * @private
             * @param {?} element
             * @param {?} styleMap
             * @return {?}
             */

          }, {
            key: "_writeStyleAttribute",
            value: function _writeStyleAttribute(element, styleMap) {
              /** @type {?} */
              var styleAttrValue = '';

              for (var key in styleMap) {
                /** @type {?} */
                var newValue = styleMap[key];

                if (newValue) {
                  styleAttrValue += key + ':' + styleMap[key] + ';';
                }
              }

              element.setAttribute('style', styleAttrValue);
            }
          }]);

          return StyleUtils;
        }();

        StyleUtils.ɵfac = function StyleUtils_Factory(t) {
          return new (t || StyleUtils)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](StylesheetMap), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](SERVER_TOKEN), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["PLATFORM_ID"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](LAYOUT_CONFIG));
        };
        /** @nocollapse */


        StyleUtils.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({
          factory: function StyleUtils_Factory() {
            return new StyleUtils(Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(StylesheetMap), Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(SERVER_TOKEN), Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(_angular_core__WEBPACK_IMPORTED_MODULE_0__["PLATFORM_ID"]), Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(LAYOUT_CONFIG));
          },
          token: StyleUtils,
          providedIn: "root"
        });
        /** @nocollapse */

        StyleUtils.ctorParameters = function () {
          return [{
            type: StylesheetMap
          }, {
            type: Boolean,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [SERVER_TOKEN]
            }]
          }, {
            type: Object,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["PLATFORM_ID"]]
            }]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [LAYOUT_CONFIG]
            }]
          }];
        };
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](StyleUtils, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
            args: [{
              providedIn: 'root'
            }]
          }], function () {
            return [{
              type: StylesheetMap
            }, {
              type: Boolean,
              decorators: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
                args: [SERVER_TOKEN]
              }]
            }, {
              type: Object,
              decorators: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
                args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["PLATFORM_ID"]]
              }]
            }, {
              type: undefined,
              decorators: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
                args: [LAYOUT_CONFIG]
              }]
            }];
          }, null);
        })();

        return StyleUtils;
      }();
      /**
       * @fileoverview added by tsickle
       * Generated from: core/style-builder/style-builder.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * A class that encapsulates CSS style generation for common directives
       * @abstract
       */


      var StyleBuilder = /*#__PURE__*/function () {
        function StyleBuilder() {
          _classCallCheck2(this, StyleBuilder);

          /**
           * Whether to cache the generated output styles
           */
          this.shouldCache = true;
        }
        /**
         * Run a side effect computation given the input string and the computed styles
         * from the build task and the host configuration object
         * NOTE: This should be a no-op unless an algorithm is provided in a subclass
         * @param {?} _input
         * @param {?} _styles
         * @param {?=} _parent
         * @return {?}
         */


        _createClass2(StyleBuilder, [{
          key: "sideEffect",
          value: function sideEffect(_input, _styles, _parent) {}
        }]);

        return StyleBuilder;
      }();
      /**
       * @fileoverview added by tsickle
       * Generated from: core/basis-validator/basis-validator.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * The flex API permits 3 or 1 parts of the value:
       *    - `flex-grow flex-shrink flex-basis`, or
       *    - `flex-basis`
       * @param {?} basis
       * @param {?=} grow
       * @param {?=} shrink
       * @return {?}
       */


      function validateBasis(basis) {
        var grow = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '1';
        var shrink = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '1';

        /** @type {?} */
        var parts = [grow, shrink, basis];
        /** @type {?} */

        var j = basis.indexOf('calc');

        if (j > 0) {
          parts[2] = _validateCalcValue(basis.substring(j).trim());
          /** @type {?} */

          var matches = basis.substr(0, j).trim().split(' ');

          if (matches.length == 2) {
            parts[0] = matches[0];
            parts[1] = matches[1];
          }
        } else if (j == 0) {
          parts[2] = _validateCalcValue(basis.trim());
        } else {
          /** @type {?} */
          var _matches2 = basis.split(' ');

          parts = _matches2.length === 3 ? _matches2 : [grow, shrink, basis];
        }

        return parts;
      }
      /**
       * Calc expressions require whitespace before & after any expression operators
       * This is a simple, crude whitespace padding solution.
       *   - '3 3 calc(15em + 20px)'
       *   - calc(100% / 7 * 2)
       *   - 'calc(15em + 20px)'
       *   - 'calc(15em+20px)'
       *   - '37px'
       *   = '43%'
       * @param {?} calc
       * @return {?}
       */


      function _validateCalcValue(calc) {
        return calc.replace(/[\s]/g, '').replace(/[\/\*\+\-]/g, ' $& ');
      }
      /**
       * @fileoverview added by tsickle
       * Generated from: core/media-marshaller/media-marshaller.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * MediaMarshaller - register responsive values from directives and
       *                   trigger them based on media query events
       */


      var MediaMarshaller =
      /** @class */
      function () {
        /**
         * MediaMarshaller - register responsive values from directives and
         *                   trigger them based on media query events
         */
        var MediaMarshaller = /*#__PURE__*/function () {
          /**
           * @param {?} matchMedia
           * @param {?} breakpoints
           * @param {?} hook
           */
          function MediaMarshaller(matchMedia, breakpoints, hook) {
            _classCallCheck2(this, MediaMarshaller);

            this.matchMedia = matchMedia;
            this.breakpoints = breakpoints;
            this.hook = hook;
            this.activatedBreakpoints = [];
            this.elementMap = new Map();
            this.elementKeyMap = new WeakMap();
            this.watcherMap = new WeakMap(); // special triggers to update elements
            // special triggers to update elements

            this.updateMap = new WeakMap(); // callback functions to update styles
            // callback functions to update styles

            this.clearMap = new WeakMap(); // callback functions to clear styles
            // callback functions to clear styles

            this.subject = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
            this.observeActivations();
          }
          /**
           * @return {?}
           */


          _createClass2(MediaMarshaller, [{
            key: "activatedAlias",
            get: function get() {
              return this.activatedBreakpoints[0] ? this.activatedBreakpoints[0].alias : '';
            }
            /**
             * Update styles on breakpoint activates or deactivates
             * @param {?} mc
             * @return {?}
             */

          }, {
            key: "onMediaChange",
            value: function onMediaChange(mc) {
              /** @type {?} */
              var bp = this.findByQuery(mc.mediaQuery);

              if (bp) {
                mc = mergeAlias(mc, bp);

                if (mc.matches && this.activatedBreakpoints.indexOf(bp) === -1) {
                  this.activatedBreakpoints.push(bp);
                  this.activatedBreakpoints.sort(sortDescendingPriority);
                  this.updateStyles();
                } else if (!mc.matches && this.activatedBreakpoints.indexOf(bp) !== -1) {
                  // Remove the breakpoint when it's deactivated
                  this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(bp), 1);
                  this.activatedBreakpoints.sort(sortDescendingPriority);
                  this.updateStyles();
                }
              }
            }
            /**
             * initialize the marshaller with necessary elements for delegation on an element
             * @param {?} element
             * @param {?} key
             * @param {?=} updateFn optional callback so that custom bp directives don't have to re-provide this
             * @param {?=} clearFn optional callback so that custom bp directives don't have to re-provide this
             * @param {?=} extraTriggers other triggers to force style updates (e.g. layout, directionality, etc)
             * @return {?}
             */

          }, {
            key: "init",
            value: function init(element, key, updateFn, clearFn) {
              var extraTriggers = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : [];
              initBuilderMap(this.updateMap, element, key, updateFn);
              initBuilderMap(this.clearMap, element, key, clearFn);
              this.buildElementKeyMap(element, key);
              this.watchExtraTriggers(element, key, extraTriggers);
            }
            /**
             * get the value for an element and key and optionally a given breakpoint
             * @param {?} element
             * @param {?} key
             * @param {?=} bp
             * @return {?}
             */

          }, {
            key: "getValue",
            value: function getValue(element, key, bp) {
              /** @type {?} */
              var bpMap = this.elementMap.get(element);

              if (bpMap) {
                /** @type {?} */
                var values = bp !== undefined ? bpMap.get(bp) : this.getActivatedValues(bpMap, key);

                if (values) {
                  return values.get(key);
                }
              }

              return undefined;
            }
            /**
             * whether the element has values for a given key
             * @param {?} element
             * @param {?} key
             * @return {?}
             */

          }, {
            key: "hasValue",
            value: function hasValue(element, key) {
              /** @type {?} */
              var bpMap = this.elementMap.get(element);

              if (bpMap) {
                /** @type {?} */
                var values = this.getActivatedValues(bpMap, key);

                if (values) {
                  return values.get(key) !== undefined || false;
                }
              }

              return false;
            }
            /**
             * Set the value for an input on a directive
             * @param {?} element the element in question
             * @param {?} key the type of the directive (e.g. flex, layout-gap, etc)
             * @param {?} val the value for the breakpoint
             * @param {?} bp the breakpoint suffix (empty string = default)
             * @return {?}
             */

          }, {
            key: "setValue",
            value: function setValue(element, key, val, bp) {
              /** @type {?} */
              var bpMap = this.elementMap.get(element);

              if (!bpMap) {
                bpMap = new Map().set(bp, new Map().set(key, val));
                this.elementMap.set(element, bpMap);
              } else {
                /** @type {?} */
                var values = (bpMap.get(bp) || new Map()).set(key, val);
                bpMap.set(bp, values);
                this.elementMap.set(element, bpMap);
              }
              /** @type {?} */


              var value = this.getValue(element, key);

              if (value !== undefined) {
                this.updateElement(element, key, value);
              }
            }
            /**
             * Track element value changes for a specific key
             * @param {?} element
             * @param {?} key
             * @return {?}
             */

          }, {
            key: "trackValue",
            value: function trackValue(element, key) {
              return this.subject.asObservable().pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["filter"])(
              /**
              * @param {?} v
              * @return {?}
              */
              function (v) {
                return v.element === element && v.key === key;
              }));
            }
            /**
             * update all styles for all elements on the current breakpoint
             * @return {?}
             */

          }, {
            key: "updateStyles",
            value: function updateStyles() {
              var _this24 = this;

              this.elementMap.forEach(
              /**
              * @param {?} bpMap
              * @param {?} el
              * @return {?}
              */
              function (bpMap, el) {
                /** @type {?} */
                var keyMap = new Set(_this24.elementKeyMap.get(el));
                /** @type {?} */

                var valueMap = _this24.getActivatedValues(bpMap);

                if (valueMap) {
                  valueMap.forEach(
                  /**
                  * @param {?} v
                  * @param {?} k
                  * @return {?}
                  */
                  function (v, k) {
                    _this24.updateElement(el, k, v);

                    keyMap["delete"](k);
                  });
                }

                keyMap.forEach(
                /**
                * @param {?} k
                * @return {?}
                */
                function (k) {
                  valueMap = _this24.getActivatedValues(bpMap, k);

                  if (valueMap) {
                    /** @type {?} */
                    var value = valueMap.get(k);

                    _this24.updateElement(el, k, value);
                  } else {
                    _this24.clearElement(el, k);
                  }
                });
              });
            }
            /**
             * clear the styles for a given element
             * @param {?} element
             * @param {?} key
             * @return {?}
             */

          }, {
            key: "clearElement",
            value: function clearElement(element, key) {
              /** @type {?} */
              var builders = this.clearMap.get(element);

              if (builders) {
                /** @type {?} */
                var clearFn = builders.get(key);

                if (!!clearFn) {
                  clearFn();
                  this.subject.next({
                    element: element,
                    key: key,
                    value: ''
                  });
                }
              }
            }
            /**
             * update a given element with the activated values for a given key
             * @param {?} element
             * @param {?} key
             * @param {?} value
             * @return {?}
             */

          }, {
            key: "updateElement",
            value: function updateElement(element, key, value) {
              /** @type {?} */
              var builders = this.updateMap.get(element);

              if (builders) {
                /** @type {?} */
                var updateFn = builders.get(key);

                if (!!updateFn) {
                  updateFn(value);
                  this.subject.next({
                    element: element,
                    key: key,
                    value: value
                  });
                }
              }
            }
            /**
             * release all references to a given element
             * @param {?} element
             * @return {?}
             */

          }, {
            key: "releaseElement",
            value: function releaseElement(element) {
              /** @type {?} */
              var watcherMap = this.watcherMap.get(element);

              if (watcherMap) {
                watcherMap.forEach(
                /**
                * @param {?} s
                * @return {?}
                */
                function (s) {
                  return s.unsubscribe();
                });
                this.watcherMap["delete"](element);
              }
              /** @type {?} */


              var elementMap = this.elementMap.get(element);

              if (elementMap) {
                elementMap.forEach(
                /**
                * @param {?} _
                * @param {?} s
                * @return {?}
                */
                function (_, s) {
                  return elementMap["delete"](s);
                });
                this.elementMap["delete"](element);
              }
            }
            /**
             * trigger an update for a given element and key (e.g. layout)
             * @param {?} element
             * @param {?=} key
             * @return {?}
             */

          }, {
            key: "triggerUpdate",
            value: function triggerUpdate(element, key) {
              var _this25 = this;

              /** @type {?} */
              var bpMap = this.elementMap.get(element);

              if (bpMap) {
                /** @type {?} */
                var valueMap = this.getActivatedValues(bpMap, key);

                if (valueMap) {
                  if (key) {
                    this.updateElement(element, key, valueMap.get(key));
                  } else {
                    valueMap.forEach(
                    /**
                    * @param {?} v
                    * @param {?} k
                    * @return {?}
                    */
                    function (v, k) {
                      return _this25.updateElement(element, k, v);
                    });
                  }
                }
              }
            }
            /**
             * Cross-reference for HTMLElement with directive key
             * @private
             * @param {?} element
             * @param {?} key
             * @return {?}
             */

          }, {
            key: "buildElementKeyMap",
            value: function buildElementKeyMap(element, key) {
              /** @type {?} */
              var keyMap = this.elementKeyMap.get(element);

              if (!keyMap) {
                keyMap = new Set();
                this.elementKeyMap.set(element, keyMap);
              }

              keyMap.add(key);
            }
            /**
             * Other triggers that should force style updates:
             * - directionality
             * - layout changes
             * - mutationobserver updates
             * @private
             * @param {?} element
             * @param {?} key
             * @param {?} triggers
             * @return {?}
             */

          }, {
            key: "watchExtraTriggers",
            value: function watchExtraTriggers(element, key, triggers) {
              var _this26 = this;

              if (triggers && triggers.length) {
                /** @type {?} */
                var watchers = this.watcherMap.get(element);

                if (!watchers) {
                  watchers = new Map();
                  this.watcherMap.set(element, watchers);
                }
                /** @type {?} */


                var subscription = watchers.get(key);

                if (!subscription) {
                  /** @type {?} */
                  var newSubscription = Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["merge"]).apply(void 0, _toConsumableArray(triggers)).subscribe(
                  /**
                  * @return {?}
                  */
                  function () {
                    /** @type {?} */
                    var currentValue = _this26.getValue(element, key);

                    _this26.updateElement(element, key, currentValue);
                  });
                  watchers.set(key, newSubscription);
                }
              }
            }
            /**
             * Breakpoint locator by mediaQuery
             * @private
             * @param {?} query
             * @return {?}
             */

          }, {
            key: "findByQuery",
            value: function findByQuery(query) {
              return this.breakpoints.findByQuery(query);
            }
            /**
             * get the fallback breakpoint for a given element, starting with the current breakpoint
             * @private
             * @param {?} bpMap
             * @param {?=} key
             * @return {?}
             */

          }, {
            key: "getActivatedValues",
            value: function getActivatedValues(bpMap, key) {
              for (var i = 0; i < this.activatedBreakpoints.length; i++) {
                /** @type {?} */
                var activatedBp = this.activatedBreakpoints[i];
                /** @type {?} */

                var valueMap = bpMap.get(activatedBp.alias);

                if (valueMap) {
                  if (key === undefined || valueMap.has(key) && valueMap.get(key) != null) {
                    return valueMap;
                  }
                }
              }
              /** @type {?} */


              var lastHope = bpMap.get('');
              return key === undefined || lastHope && lastHope.has(key) ? lastHope : undefined;
            }
            /**
             * Watch for mediaQuery breakpoint activations
             * @private
             * @return {?}
             */

          }, {
            key: "observeActivations",
            value: function observeActivations() {
              /** @type {?} */
              var target = this;
              /** @type {?} */

              var queries = this.breakpoints.items.map(
              /**
              * @param {?} bp
              * @return {?}
              */
              function (bp) {
                return bp.mediaQuery;
              });
              this.matchMedia.observe(this.hook.withPrintQuery(queries)).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["tap"])(this.hook.interceptEvents(target)), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["filter"])(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this));
            }
          }]);

          return MediaMarshaller;
        }();

        MediaMarshaller.ɵfac = function MediaMarshaller_Factory(t) {
          return new (t || MediaMarshaller)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](MatchMedia), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](BreakPointRegistry), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](PrintHook));
        };
        /** @nocollapse */


        MediaMarshaller.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({
          factory: function MediaMarshaller_Factory() {
            return new MediaMarshaller(Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(MatchMedia), Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(BreakPointRegistry), Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(PrintHook));
          },
          token: MediaMarshaller,
          providedIn: "root"
        });
        /** @nocollapse */

        MediaMarshaller.ctorParameters = function () {
          return [{
            type: MatchMedia
          }, {
            type: BreakPointRegistry
          }, {
            type: PrintHook
          }];
        };
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MediaMarshaller, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
            args: [{
              providedIn: 'root'
            }]
          }], function () {
            return [{
              type: MatchMedia
            }, {
              type: BreakPointRegistry
            }, {
              type: PrintHook
            }];
          }, null);
        })();

        return MediaMarshaller;
      }();
      /**
       * @param {?} map
       * @param {?} element
       * @param {?} key
       * @param {?=} input
       * @return {?}
       */


      function initBuilderMap(map$$1, element, key, input) {
        if (input !== undefined) {
          /** @type {?} */
          var oldMap = map$$1.get(element);

          if (!oldMap) {
            oldMap = new Map();
            map$$1.set(element, oldMap);
          }

          oldMap.set(key, input);
        }
      }
      /**
       * @fileoverview added by tsickle
       * Generated from: core/public-api.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * @fileoverview added by tsickle
       * Generated from: core/index.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */
      //# sourceMappingURL=core.js.map

      /***/

    },

    /***/
    "/rh5": function rh5(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return eachDayOfInterval;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name eachDayOfInterval
       * @category Interval Helpers
       * @summary Return the array of dates within the specified time interval.
       *
       * @description
       * Return the array of dates 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).
       *
       * - The function was renamed from `eachDay` to `eachDayOfInterval`.
       *   This change was made to mirror the use of the word "interval" in standard ISO 8601:2004 terminology:
       *
       *   ```
       *   2.1.3
       *   time interval
       *   part of the time axis limited by two instants
       *   ```
       *
       *   Also, this function now accepts an object with `start` and `end` properties
       *   instead of two arguments as an interval.
       *   This function now throws `RangeError` if the start of the interval is after its end
       *   or if any date in the interval is `Invalid Date`.
       *
       *   ```javascript
       *   // Before v2.0.0
       *
       *   eachDay(new Date(2014, 0, 10), new Date(2014, 0, 20))
       *
       *   // v2.0.0 onward
       *
       *   eachDayOfInterval(
       *     { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) }
       *   )
       *   ```
       *
       * @param {Interval} interval - the interval. See [Interval]{@link docs/types/Interval}
       * @param {Object} [options] - an object with options.
       * @param {Number} [options.step=1] - the step to increment by. The value should be more than 1.
       * @returns {Date[]} the array with starts of days from the day of the interval start to the day of the interval end
       * @throws {TypeError} 1 argument required
       * @throws {RangeError} `options.step` must be a number greater than 1
       * @throws {RangeError} The start of an interval cannot be after its end
       * @throws {RangeError} Date in interval cannot be `Invalid Date`
       *
       * @example
       * // Each day between 6 October 2014 and 10 October 2014:
       * var result = eachDayOfInterval({
       *   start: new Date(2014, 9, 6),
       *   end: new Date(2014, 9, 10)
       * })
       * //=> [
       * //   Mon Oct 06 2014 00:00:00,
       * //   Tue Oct 07 2014 00:00:00,
       * //   Wed Oct 08 2014 00:00:00,
       * //   Thu Oct 09 2014 00:00:00,
       * //   Fri Oct 10 2014 00:00:00
       * // ]
       */


      function eachDayOfInterval(dirtyInterval, options) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        var interval = dirtyInterval || {};
        var startDate = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(interval.start);
        var endDate = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["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 dates = [];
        var currentDate = startDate;
        currentDate.setHours(0, 0, 0, 0);
        var step = options && 'step' in options ? Number(options.step) : 1;
        if (step < 1 || isNaN(step)) throw new RangeError('`options.step` must be a number greater than 1');

        while (currentDate.getTime() <= endTime) {
          dates.push(Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(currentDate));
          currentDate.setDate(currentDate.getDate() + step);
          currentDate.setHours(0, 0, 0, 0);
        }

        return dates;
      }
      /***/

    },

    /***/
    "/uUt": function uUt(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "distinctUntilChanged", function () {
        return distinctUntilChanged;
      });
      /* harmony import */


      var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Subscriber */
      "7o/Q");

      function distinctUntilChanged(compare, keySelector) {
        return function (source) {
          return source.lift(new DistinctUntilChangedOperator(compare, keySelector));
        };
      }

      var DistinctUntilChangedOperator = /*#__PURE__*/function () {
        function DistinctUntilChangedOperator(compare, keySelector) {
          _classCallCheck2(this, DistinctUntilChangedOperator);

          this.compare = compare;
          this.keySelector = keySelector;
        }

        _createClass2(DistinctUntilChangedOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            return source.subscribe(new DistinctUntilChangedSubscriber(subscriber, this.compare, this.keySelector));
          }
        }]);

        return DistinctUntilChangedOperator;
      }();

      var DistinctUntilChangedSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_2) {
        _inherits2(DistinctUntilChangedSubscriber, _Subscriber__WEBPACK_2);

        var _super4 = _createSuper2(DistinctUntilChangedSubscriber);

        function DistinctUntilChangedSubscriber(destination, compare, keySelector) {
          var _this27;

          _classCallCheck2(this, DistinctUntilChangedSubscriber);

          _this27 = _super4.call(this, destination);
          _this27.keySelector = keySelector;
          _this27.hasKey = false;

          if (typeof compare === 'function') {
            _this27.compare = compare;
          }

          return _this27;
        }

        _createClass2(DistinctUntilChangedSubscriber, [{
          key: "compare",
          value: function compare(x, y) {
            return x === y;
          }
        }, {
          key: "_next",
          value: function _next(value) {
            var key;

            try {
              var keySelector = this.keySelector;
              key = keySelector ? keySelector(value) : value;
            } catch (err) {
              return this.destination.error(err);
            }

            var result = false;

            if (this.hasKey) {
              try {
                var compare = this.compare;
                result = compare(this.key, key);
              } catch (err) {
                return this.destination.error(err);
              }
            } else {
              this.hasKey = true;
            }

            if (!result) {
              this.key = key;
              this.destination.next(value);
            }
          }
        }]);

        return DistinctUntilChangedSubscriber;
      }(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]); //# sourceMappingURL=distinctUntilChanged.js.map

      /***/

    },

    /***/
    "0/gg": function gg(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return startOfToday;
      });
      /* harmony import */


      var _startOfDay_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../startOfDay/index.js */
      "M34a");
      /**
       * @name startOfToday
       * @category Day Helpers
       * @summary Return the start of today.
       * @pure false
       *
       * @description
       * Return the start of today.
       *
       * > ⚠️ Please note that this function is not present in the FP submodule as
       * > it uses `Date.now()` internally hence impure and can't be safely curried.
       *
       * ### 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).
       *
       * @returns {Date} the start of today
       *
       * @example
       * // If today is 6 October 2014:
       * var result = startOfToday()
       * //=> Mon Oct 6 2014 00:00:00
       */


      function startOfToday() {
        return Object(_startOfDay_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Date.now());
      }
      /***/

    },

    /***/
    "02Lk": function Lk(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "distinct", function () {
        return distinct;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "DistinctSubscriber", function () {
        return DistinctSubscriber;
      });
      /* harmony import */


      var _innerSubscribe__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../innerSubscribe */
      "zx2A");

      function distinct(keySelector, flushes) {
        return function (source) {
          return source.lift(new DistinctOperator(keySelector, flushes));
        };
      }

      var DistinctOperator = /*#__PURE__*/function () {
        function DistinctOperator(keySelector, flushes) {
          _classCallCheck2(this, DistinctOperator);

          this.keySelector = keySelector;
          this.flushes = flushes;
        }

        _createClass2(DistinctOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            return source.subscribe(new DistinctSubscriber(subscriber, this.keySelector, this.flushes));
          }
        }]);

        return DistinctOperator;
      }();

      var DistinctSubscriber = /*#__PURE__*/function (_innerSubscribe__WEBP) {
        _inherits2(DistinctSubscriber, _innerSubscribe__WEBP);

        var _super5 = _createSuper2(DistinctSubscriber);

        function DistinctSubscriber(destination, keySelector, flushes) {
          var _this28;

          _classCallCheck2(this, DistinctSubscriber);

          _this28 = _super5.call(this, destination);
          _this28.keySelector = keySelector;
          _this28.values = new Set();

          if (flushes) {
            _this28.add(Object(_innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["innerSubscribe"])(flushes, new _innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["SimpleInnerSubscriber"](_assertThisInitialized2(_this28))));
          }

          return _this28;
        }

        _createClass2(DistinctSubscriber, [{
          key: "notifyNext",
          value: function notifyNext() {
            this.values.clear();
          }
        }, {
          key: "notifyError",
          value: function notifyError(error) {
            this._error(error);
          }
        }, {
          key: "_next",
          value: function _next(value) {
            if (this.keySelector) {
              this._useKeySelector(value);
            } else {
              this._finalizeNext(value, value);
            }
          }
        }, {
          key: "_useKeySelector",
          value: function _useKeySelector(value) {
            var key;
            var destination = this.destination;

            try {
              key = this.keySelector(value);
            } catch (err) {
              destination.error(err);
              return;
            }

            this._finalizeNext(key, value);
          }
        }, {
          key: "_finalizeNext",
          value: function _finalizeNext(key, value) {
            var values = this.values;

            if (!values.has(key)) {
              values.add(key);
              this.destination.next(value);
            }
          }
        }]);

        return DistinctSubscriber;
      }(_innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["SimpleOuterSubscriber"]); //# sourceMappingURL=distinct.js.map

      /***/

    },

    /***/
    "04ZW": function ZW(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "fromEventPattern", function () {
        return fromEventPattern;
      });
      /* harmony import */


      var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Observable */
      "HDdC");
      /* harmony import */


      var _util_isArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../util/isArray */
      "DH7j");
      /* harmony import */


      var _util_isFunction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../util/isFunction */
      "n6bG");
      /* harmony import */


      var _operators_map__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../operators/map */
      "lJxs");

      function fromEventPattern(addHandler, removeHandler, resultSelector) {
        if (resultSelector) {
          return fromEventPattern(addHandler, removeHandler).pipe(Object(_operators_map__WEBPACK_IMPORTED_MODULE_3__["map"])(function (args) {
            return Object(_util_isArray__WEBPACK_IMPORTED_MODULE_1__["isArray"])(args) ? resultSelector.apply(void 0, _toConsumableArray(args)) : resultSelector(args);
          }));
        }

        return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](function (subscriber) {
          var handler = function handler() {
            for (var _len3 = arguments.length, e = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
              e[_key3] = arguments[_key3];
            }

            return subscriber.next(e.length === 1 ? e[0] : e);
          };

          var retValue;

          try {
            retValue = addHandler(handler);
          } catch (err) {
            subscriber.error(err);
            return undefined;
          }

          if (!Object(_util_isFunction__WEBPACK_IMPORTED_MODULE_2__["isFunction"])(removeHandler)) {
            return undefined;
          }

          return function () {
            return removeHandler(handler, retValue);
          };
        });
      } //# sourceMappingURL=fromEventPattern.js.map

      /***/

    },

    /***/
    "05l1": function l1(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "publishReplay", function () {
        return publishReplay;
      });
      /* harmony import */


      var _ReplaySubject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../ReplaySubject */
      "jtHE");
      /* harmony import */


      var _multicast__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ./multicast */
      "oB13");

      function publishReplay(bufferSize, windowTime, selectorOrScheduler, scheduler) {
        if (selectorOrScheduler && typeof selectorOrScheduler !== 'function') {
          scheduler = selectorOrScheduler;
        }

        var selector = typeof selectorOrScheduler === 'function' ? selectorOrScheduler : undefined;
        var subject = new _ReplaySubject__WEBPACK_IMPORTED_MODULE_0__["ReplaySubject"](bufferSize, windowTime, scheduler);
        return function (source) {
          return Object(_multicast__WEBPACK_IMPORTED_MODULE_1__["multicast"])(function () {
            return subject;
          }, selector)(source);
        };
      } //# sourceMappingURL=publishReplay.js.map

      /***/

    },

    /***/
    "08aW": function aW(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return getHours;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name getHours
       * @category Hour Helpers
       * @summary Get the hours of the given date.
       *
       * @description
       * Get the hours of the given date.
       *
       * ### 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 {Date|Number} date - the given date
       * @returns {Number} the hours
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // Get the hours of 29 February 2012 11:45:00:
       * var result = getHours(new Date(2012, 1, 29, 11, 45))
       * //=> 11
       */


      function getHours(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);
        var hours = date.getHours();
        return hours;
      }
      /***/

    },

    /***/
    "0EUg": function EUg(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "concatAll", function () {
        return concatAll;
      });
      /* harmony import */


      var _mergeAll__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ./mergeAll */
      "bHdf");

      function concatAll() {
        return Object(_mergeAll__WEBPACK_IMPORTED_MODULE_0__["mergeAll"])(1);
      } //# sourceMappingURL=concatAll.js.map

      /***/

    },

    /***/
    "0HXF": function HXF(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return formatRelative;
      });

      var formatRelativeLocale = {
        lastWeek: "'last' eeee 'at' p",
        yesterday: "'yesterday at' p",
        today: "'today at' p",
        tomorrow: "'tomorrow at' p",
        nextWeek: "eeee 'at' p",
        other: 'P'
      };

      function formatRelative(token, _date, _baseDate, _options) {
        return formatRelativeLocale[token];
      }
      /***/

    },

    /***/
    "0LOL": function LOL(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return startOfMinute;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name startOfMinute
       * @category Minute Helpers
       * @summary Return the start of a minute for the given date.
       *
       * @description
       * Return the start of a minute for the given date.
       * The result will be in the local timezone.
       *
       * ### 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 {Date|Number} date - the original date
       * @returns {Date} the start of a minute
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // The start of a minute for 1 December 2014 22:15:45.400:
       * var result = startOfMinute(new Date(2014, 11, 1, 22, 15, 45, 400))
       * //=> Mon Dec 01 2014 22:15:00
       */


      function startOfMinute(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);
        date.setSeconds(0, 0);
        return date;
      }
      /***/

    },

    /***/
    "0Pi8": function Pi8(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "endWith", function () {
        return endWith;
      });
      /* harmony import */


      var _observable_concat__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../observable/concat */
      "GyhO");
      /* harmony import */


      var _observable_of__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../observable/of */
      "LRne");

      function endWith() {
        for (var _len4 = arguments.length, array = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
          array[_key4] = arguments[_key4];
        }

        return function (source) {
          return Object(_observable_concat__WEBPACK_IMPORTED_MODULE_0__["concat"])(source, Object(_observable_of__WEBPACK_IMPORTED_MODULE_1__["of"]).apply(void 0, array));
        };
      } //# sourceMappingURL=endWith.js.map

      /***/

    },

    /***/
    "0UaF": function UaF(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return formatDistanceStrict;
      });
      /* harmony import */


      var _lib_getTimezoneOffsetInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../_lib/getTimezoneOffsetInMilliseconds/index.js */
      "JCDJ");
      /* harmony import */


      var _compareAsc_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../compareAsc/index.js */
      "JhOC");
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _differenceInSeconds_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../differenceInSeconds/index.js */
      "qVkf");
      /* harmony import */


      var _lib_cloneObject_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! ../_lib/cloneObject/index.js */
      "emD/");
      /* harmony import */


      var _locale_en_US_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! ../locale/en-US/index.js */
      "iSMj");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");

      var MINUTES_IN_DAY = 1440;
      var MINUTES_IN_MONTH = 43200;
      var MINUTES_IN_YEAR = 525600;
      /**
       * @name formatDistanceStrict
       * @category Common Helpers
       * @summary Return the distance between the given dates in words.
       *
       * @description
       * Return the distance between the given dates in words, using strict units.
       * This is like `formatDistance`, but does not use helpers like 'almost', 'over',
       * 'less than' and the like.
       *
       * | Distance between dates | Result              |
       * |------------------------|---------------------|
       * | 0 ... 59 secs          | [0..59] seconds     |
       * | 1 ... 59 mins          | [1..59] minutes     |
       * | 1 ... 23 hrs           | [1..23] hours       |
       * | 1 ... 29 days          | [1..29] days        |
       * | 1 ... 11 months        | [1..11] months      |
       * | 1 ... N years          | [1..N]  years       |
       *
       * ### 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).
       *
       * - The function was renamed from `distanceInWordsStrict` to `formatDistanceStrict`
       *   to make its name consistent with `format` and `formatRelative`.
       *
       * - The order of arguments is swapped to make the function
       *   consistent with `differenceIn...` functions.
       *
       *   ```javascript
       *   // Before v2.0.0
       *
       *   distanceInWordsStrict(
       *     new Date(2015, 0, 2),
       *     new Date(2014, 6, 2)
       *   ) //=> '6 months'
       *
       *   // v2.0.0 onward
       *
       *   formatDistanceStrict(
       *     new Date(2014, 6, 2),
       *     new Date(2015, 0, 2)
       *   ) //=> '6 months'
       *   ```
       *
       * - `partialMethod` option is renamed to `roundingMethod`.
       *
       *   ```javascript
       *   // Before v2.0.0
       *
       *   distanceInWordsStrict(
       *     new Date(1986, 3, 4, 10, 32, 0),
       *     new Date(1986, 3, 4, 10, 33, 1),
       *     { partialMethod: 'ceil' }
       *   ) //=> '2 minutes'
       *
       *   // v2.0.0 onward
       *
       *   formatDistanceStrict(
       *     new Date(1986, 3, 4, 10, 33, 1),
       *     new Date(1986, 3, 4, 10, 32, 0),
       *     { roundingMethod: 'ceil' }
       *   ) //=> '2 minutes'
       *   ```
       *
       * - If `roundingMethod` is not specified, it now defaults to `round` instead of `floor`.
       *
       * - `unit` option now accepts one of the strings:
       *   'second', 'minute', 'hour', 'day', 'month' or 'year' instead of 's', 'm', 'h', 'd', 'M' or 'Y'
       *
       *   ```javascript
       *   // Before v2.0.0
       *
       *   distanceInWordsStrict(
       *     new Date(1986, 3, 4, 10, 32, 0),
       *     new Date(1986, 3, 4, 10, 33, 1),
       *     { unit: 'm' }
       *   )
       *
       *   // v2.0.0 onward
       *
       *   formatDistanceStrict(
       *     new Date(1986, 3, 4, 10, 33, 1),
       *     new Date(1986, 3, 4, 10, 32, 0),
       *     { unit: 'minute' }
       *   )
       *   ```
       *
       * @param {Date|Number} date - the date
       * @param {Date|Number} baseDate - the date to compare with
       * @param {Object} [options] - an object with options.
       * @param {Boolean} [options.addSuffix=false] - result indicates if the second date is earlier or later than the first
       * @param {'second'|'minute'|'hour'|'day'|'month'|'year'} [options.unit] - if specified, will force a unit
       * @param {'floor'|'ceil'|'round'} [options.roundingMethod='round'] - which way to round partial units
       * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}
       * @returns {String} the distance in words
       * @throws {TypeError} 2 arguments required
       * @throws {RangeError} `date` must not be Invalid Date
       * @throws {RangeError} `baseDate` must not be Invalid Date
       * @throws {RangeError} `options.roundingMethod` must be 'floor', 'ceil' or 'round'
       * @throws {RangeError} `options.unit` must be 'second', 'minute', 'hour', 'day', 'month' or 'year'
       * @throws {RangeError} `options.locale` must contain `formatDistance` property
       *
       * @example
       * // What is the distance between 2 July 2014 and 1 January 2015?
       * var result = formatDistanceStrict(new Date(2014, 6, 2), new Date(2015, 0, 2))
       * //=> '6 months'
       *
       * @example
       * // What is the distance between 1 January 2015 00:00:15
       * // and 1 January 2015 00:00:00?
       * var result = formatDistanceStrict(
       *   new Date(2015, 0, 1, 0, 0, 15),
       *   new Date(2015, 0, 1, 0, 0, 0)
       * )
       * //=> '15 seconds'
       *
       * @example
       * // What is the distance from 1 January 2016
       * // to 1 January 2015, with a suffix?
       * var result = formatDistanceStrict(new Date(2015, 0, 1), new Date(2016, 0, 1), {
       *   addSuffix: true
       * })
       * //=> '1 year ago'
       *
       * @example
       * // What is the distance from 1 January 2016
       * // to 1 January 2015, in minutes?
       * var result = formatDistanceStrict(new Date(2016, 0, 1), new Date(2015, 0, 1), {
       *   unit: 'minute'
       * })
       * //=> '525600 minutes'
       *
       * @example
       * // What is the distance from 1 January 2015
       * // to 28 January 2015, in months, rounded up?
       * var result = formatDistanceStrict(new Date(2015, 0, 28), new Date(2015, 0, 1), {
       *   unit: 'month',
       *   roundingMethod: 'ceil'
       * })
       * //=> '1 month'
       *
       * @example
       * // What is the distance between 1 August 2016 and 1 January 2015 in Esperanto?
       * import { eoLocale } from 'date-fns/locale/eo'
       * var result = formatDistanceStrict(new Date(2016, 7, 1), new Date(2015, 0, 1), {
       *   locale: eoLocale
       * })
       * //=> '1 jaro'
       */

      function formatDistanceStrict(dirtyDate, dirtyBaseDate, dirtyOptions) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_6__["default"])(2, arguments);
        var options = dirtyOptions || {};
        var locale = options.locale || _locale_en_US_index_js__WEBPACK_IMPORTED_MODULE_5__["default"];

        if (!locale.formatDistance) {
          throw new RangeError('locale must contain localize.formatDistance property');
        }

        var comparison = Object(_compareAsc_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate, dirtyBaseDate);

        if (isNaN(comparison)) {
          throw new RangeError('Invalid time value');
        }

        var localizeOptions = Object(_lib_cloneObject_index_js__WEBPACK_IMPORTED_MODULE_4__["default"])(options);
        localizeOptions.addSuffix = Boolean(options.addSuffix);
        localizeOptions.comparison = comparison;
        var dateLeft;
        var dateRight;

        if (comparison > 0) {
          dateLeft = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(dirtyBaseDate);
          dateRight = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(dirtyDate);
        } else {
          dateLeft = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(dirtyDate);
          dateRight = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(dirtyBaseDate);
        }

        var roundingMethod = options.roundingMethod == null ? 'round' : String(options.roundingMethod);
        var roundingMethodFn;

        if (roundingMethod === 'floor') {
          roundingMethodFn = Math.floor;
        } else if (roundingMethod === 'ceil') {
          roundingMethodFn = Math.ceil;
        } else if (roundingMethod === 'round') {
          roundingMethodFn = Math.round;
        } else {
          throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");
        }

        var seconds = Object(_differenceInSeconds_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(dateRight, dateLeft);
        var offsetInSeconds = (Object(_lib_getTimezoneOffsetInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dateRight) - Object(_lib_getTimezoneOffsetInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dateLeft)) / 1000;
        var minutes = roundingMethodFn((seconds - offsetInSeconds) / 60);
        var unit;

        if (options.unit == null) {
          if (minutes < 1) {
            unit = 'second';
          } else if (minutes < 60) {
            unit = 'minute';
          } else if (minutes < MINUTES_IN_DAY) {
            unit = 'hour';
          } else if (minutes < MINUTES_IN_MONTH) {
            unit = 'day';
          } else if (minutes < MINUTES_IN_YEAR) {
            unit = 'month';
          } else {
            unit = 'year';
          }
        } else {
          unit = String(options.unit);
        } // 0 up to 60 seconds


        if (unit === 'second') {
          return locale.formatDistance('xSeconds', seconds, localizeOptions); // 1 up to 60 mins
        } else if (unit === 'minute') {
          return locale.formatDistance('xMinutes', minutes, localizeOptions); // 1 up to 24 hours
        } else if (unit === 'hour') {
          var hours = roundingMethodFn(minutes / 60);
          return locale.formatDistance('xHours', hours, localizeOptions); // 1 up to 30 days
        } else if (unit === 'day') {
          var days = roundingMethodFn(minutes / MINUTES_IN_DAY);
          return locale.formatDistance('xDays', days, localizeOptions); // 1 up to 12 months
        } else if (unit === 'month') {
          var months = roundingMethodFn(minutes / MINUTES_IN_MONTH);
          return locale.formatDistance('xMonths', months, localizeOptions); // 1 year up to max Date
        } else if (unit === 'year') {
          var years = roundingMethodFn(minutes / MINUTES_IN_YEAR);
          return locale.formatDistance('xYears', years, localizeOptions);
        }

        throw new RangeError("unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'");
      }
      /***/

    },

    /***/
    "0Ug1": function Ug1(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return differenceInWeeks;
      });
      /* harmony import */


      var _differenceInDays_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../differenceInDays/index.js */
      "NoME");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name differenceInWeeks
       * @category Week Helpers
       * @summary Get the number of full weeks between the given dates.
       *
       * @description
       * Get the number of full weeks between two dates. Fractional weeks are
       * truncated towards zero.
       *
       * One "full week" is the distance between a local time in one day to the same
       * local time 7 days earlier or later. A full week can sometimes be less than
       * or more than 7*24 hours if a daylight savings change happens between two dates.
       *
       * To ignore DST and only measure exact 7*24-hour periods, use this instead:
       * `Math.floor(differenceInHours(dateLeft, dateRight)/(7*24))|0`.
       *
       *
       * ### 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 {Date|Number} dateLeft - the later date
       * @param {Date|Number} dateRight - the earlier date
       * @returns {Number} the number of full weeks
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // How many full weeks are between 5 July 2014 and 20 July 2014?
       * var result = differenceInWeeks(new Date(2014, 6, 20), new Date(2014, 6, 5))
       * //=> 2
       *
       * // How many full weeks are between
       * // 1 March 2020 0:00 and 6 June 2020 0:00 ?
       * // Note: because local time is used, the
       * // result will always be 8 weeks (54 days),
       * // even if DST starts and the period has
       * // only 54*24-1 hours.
       * var result = differenceInWeeks(
       *   new Date(2020, 5, 1),
       *   new Date(2020, 2, 6)
       * )
       * //=> 8
       */


      function differenceInWeeks(dirtyDateLeft, dirtyDateRight) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(2, arguments);
        var diff = Object(_differenceInDays_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateLeft, dirtyDateRight) / 7;
        return diff > 0 ? Math.floor(diff) : Math.ceil(diff);
      }
      /***/

    },

    /***/
    "0f5V": function f5V(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return startOfISOWeekYear;
      });
      /* harmony import */


      var _getISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../getISOWeekYear/index.js */
      "BKKT");
      /* harmony import */


      var _startOfISOWeek_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../startOfISOWeek/index.js */
      "1dmy");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name startOfISOWeekYear
       * @category ISO Week-Numbering Year Helpers
       * @summary Return the start of an ISO week-numbering year for the given date.
       *
       * @description
       * Return the start of an ISO week-numbering year,
       * which always starts 3 days before the year's first Thursday.
       * The result will be in the local timezone.
       *
       * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
       *
       * ### 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 {Date|Number} date - the original date
       * @returns {Date} the start of an ISO week-numbering year
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // The start of an ISO week-numbering year for 2 July 2005:
       * var result = startOfISOWeekYear(new Date(2005, 6, 2))
       * //=> Mon Jan 03 2005 00:00:00
       */


      function startOfISOWeekYear(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(1, arguments);
        var year = Object(_getISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);
        var fourthOfJanuary = new Date(0);
        fourthOfJanuary.setFullYear(year, 0, 4);
        fourthOfJanuary.setHours(0, 0, 0, 0);
        var date = Object(_startOfISOWeek_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(fourthOfJanuary);
        return date;
      }
      /***/

    },

    /***/
    "0mo+": function mo(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Tibetan [bo]
      //! author : Thupten N. Chakrishar : https://github.com/vajradog
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var symbolMap = {
          1: '༡',
          2: '༢',
          3: '༣',
          4: '༤',
          5: '༥',
          6: '༦',
          7: '༧',
          8: '༨',
          9: '༩',
          0: '༠'
        },
            numberMap = {
          '༡': '1',
          '༢': '2',
          '༣': '3',
          '༤': '4',
          '༥': '5',
          '༦': '6',
          '༧': '7',
          '༨': '8',
          '༩': '9',
          '༠': '0'
        };
        var bo = moment.defineLocale('bo', {
          months: 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'),
          monthsShort: 'ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12'.split('_'),
          monthsShortRegex: /^(ཟླ་\d{1,2})/,
          monthsParseExact: true,
          weekdays: 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split('_'),
          weekdaysShort: 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'),
          weekdaysMin: 'ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན'.split('_'),
          longDateFormat: {
            LT: 'A h:mm',
            LTS: 'A h:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY, A h:mm',
            LLLL: 'dddd, D MMMM YYYY, A h:mm'
          },
          calendar: {
            sameDay: '[དི་རིང] LT',
            nextDay: '[སང་ཉིན] LT',
            nextWeek: '[བདུན་ཕྲག་རྗེས་མ], LT',
            lastDay: '[ཁ་སང] LT',
            lastWeek: '[བདུན་ཕྲག་མཐའ་མ] dddd, LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: '%s ལ་',
            past: '%s སྔན་ལ',
            s: 'ལམ་སང',
            ss: '%d སྐར་ཆ།',
            m: 'སྐར་མ་གཅིག',
            mm: '%d སྐར་མ',
            h: 'ཆུ་ཚོད་གཅིག',
            hh: '%d ཆུ་ཚོད',
            d: 'ཉིན་གཅིག',
            dd: '%d ཉིན་',
            M: 'ཟླ་བ་གཅིག',
            MM: '%d ཟླ་བ',
            y: 'ལོ་གཅིག',
            yy: '%d ལོ'
          },
          preparse: function preparse(string) {
            return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) {
              return numberMap[match];
            });
          },
          postformat: function postformat(string) {
            return string.replace(/\d/g, function (match) {
              return symbolMap[match];
            });
          },
          meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,
          meridiemHour: function meridiemHour(hour, meridiem) {
            if (hour === 12) {
              hour = 0;
            }

            if (meridiem === 'མཚན་མོ' && hour >= 4 || meridiem === 'ཉིན་གུང' && hour < 5 || meridiem === 'དགོང་དག') {
              return hour + 12;
            } else {
              return hour;
            }
          },
          meridiem: function meridiem(hour, minute, isLower) {
            if (hour < 4) {
              return 'མཚན་མོ';
            } else if (hour < 10) {
              return 'ཞོགས་ཀས';
            } else if (hour < 17) {
              return 'ཉིན་གུང';
            } else if (hour < 20) {
              return 'དགོང་དག';
            } else {
              return 'མཚན་མོ';
            }
          },
          week: {
            dow: 0,
            // Sunday is the first day of the week.
            doy: 6 // The week that contains Jan 6th is the first week of the year.

          }
        });
        return bo;
      });
      /***/

    },

    /***/
    "0tRk": function tRk(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Portuguese (Brazil) [pt-br]
      //! author : Caio Ribeiro Pereira : https://github.com/caio-ribeiro-pereira
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var ptBr = moment.defineLocale('pt-br', {
          months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split('_'),
          monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
          weekdays: 'domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado'.split('_'),
          weekdaysShort: 'dom_seg_ter_qua_qui_sex_sáb'.split('_'),
          weekdaysMin: 'do_2ª_3ª_4ª_5ª_6ª_sá'.split('_'),
          weekdaysParseExact: true,
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D [de] MMMM [de] YYYY',
            LLL: 'D [de] MMMM [de] YYYY [às] HH:mm',
            LLLL: 'dddd, D [de] MMMM [de] YYYY [às] HH:mm'
          },
          calendar: {
            sameDay: '[Hoje às] LT',
            nextDay: '[Amanhã às] LT',
            nextWeek: 'dddd [às] LT',
            lastDay: '[Ontem às] LT',
            lastWeek: function lastWeek() {
              return this.day() === 0 || this.day() === 6 ? '[Último] dddd [às] LT' // Saturday + Sunday
              : '[Última] dddd [às] LT'; // Monday - Friday
            },
            sameElse: 'L'
          },
          relativeTime: {
            future: 'em %s',
            past: 'há %s',
            s: 'poucos segundos',
            ss: '%d segundos',
            m: 'um minuto',
            mm: '%d minutos',
            h: 'uma hora',
            hh: '%d horas',
            d: 'um dia',
            dd: '%d dias',
            M: 'um mês',
            MM: '%d meses',
            y: 'um ano',
            yy: '%d anos'
          },
          dayOfMonthOrdinalParse: /\d{1,2}º/,
          ordinal: '%dº',
          invalidDate: 'Data inválida'
        });
        return ptBr;
      });
      /***/

    },

    /***/
    "128B": function B(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "reduce", function () {
        return reduce;
      });
      /* harmony import */


      var _scan__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ./scan */
      "Kqap");
      /* harmony import */


      var _takeLast__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ./takeLast */
      "BFxc");
      /* harmony import */


      var _defaultIfEmpty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ./defaultIfEmpty */
      "xbPD");
      /* harmony import */


      var _util_pipe__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../util/pipe */
      "mCNh");

      function reduce(accumulator, seed) {
        if (arguments.length >= 2) {
          return function reduceOperatorFunctionWithSeed(source) {
            return Object(_util_pipe__WEBPACK_IMPORTED_MODULE_3__["pipe"])(Object(_scan__WEBPACK_IMPORTED_MODULE_0__["scan"])(accumulator, seed), Object(_takeLast__WEBPACK_IMPORTED_MODULE_1__["takeLast"])(1), Object(_defaultIfEmpty__WEBPACK_IMPORTED_MODULE_2__["defaultIfEmpty"])(seed))(source);
          };
        }

        return function reduceOperatorFunction(source) {
          return Object(_util_pipe__WEBPACK_IMPORTED_MODULE_3__["pipe"])(Object(_scan__WEBPACK_IMPORTED_MODULE_0__["scan"])(function (acc, value, index) {
            return accumulator(acc, value, index + 1);
          }), Object(_takeLast__WEBPACK_IMPORTED_MODULE_1__["takeLast"])(1))(source);
        };
      } //# sourceMappingURL=reduce.js.map

      /***/

    },

    /***/
    "1G5W": function G5W(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "takeUntil", function () {
        return takeUntil;
      });
      /* harmony import */


      var _innerSubscribe__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../innerSubscribe */
      "zx2A");

      function takeUntil(notifier) {
        return function (source) {
          return source.lift(new TakeUntilOperator(notifier));
        };
      }

      var TakeUntilOperator = /*#__PURE__*/function () {
        function TakeUntilOperator(notifier) {
          _classCallCheck2(this, TakeUntilOperator);

          this.notifier = notifier;
        }

        _createClass2(TakeUntilOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            var takeUntilSubscriber = new TakeUntilSubscriber(subscriber);
            var notifierSubscription = Object(_innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["innerSubscribe"])(this.notifier, new _innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["SimpleInnerSubscriber"](takeUntilSubscriber));

            if (notifierSubscription && !takeUntilSubscriber.seenValue) {
              takeUntilSubscriber.add(notifierSubscription);
              return source.subscribe(takeUntilSubscriber);
            }

            return takeUntilSubscriber;
          }
        }]);

        return TakeUntilOperator;
      }();

      var TakeUntilSubscriber = /*#__PURE__*/function (_innerSubscribe__WEBP2) {
        _inherits2(TakeUntilSubscriber, _innerSubscribe__WEBP2);

        var _super6 = _createSuper2(TakeUntilSubscriber);

        function TakeUntilSubscriber(destination) {
          var _this29;

          _classCallCheck2(this, TakeUntilSubscriber);

          _this29 = _super6.call(this, destination);
          _this29.seenValue = false;
          return _this29;
        }

        _createClass2(TakeUntilSubscriber, [{
          key: "notifyNext",
          value: function notifyNext() {
            this.seenValue = true;
            this.complete();
          }
        }, {
          key: "notifyComplete",
          value: function notifyComplete() {}
        }]);

        return TakeUntilSubscriber;
      }(_innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["SimpleOuterSubscriber"]); //# sourceMappingURL=takeUntil.js.map

      /***/

    },

    /***/
    "1O3W": function O3W(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "BlockScrollStrategy", function () {
        return BlockScrollStrategy;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CdkConnectedOverlay", function () {
        return CdkConnectedOverlay;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CdkOverlayOrigin", function () {
        return CdkOverlayOrigin;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CloseScrollStrategy", function () {
        return CloseScrollStrategy;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ConnectedOverlayPositionChange", function () {
        return ConnectedOverlayPositionChange;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ConnectedPositionStrategy", function () {
        return ConnectedPositionStrategy;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ConnectionPositionPair", function () {
        return ConnectionPositionPair;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "FlexibleConnectedPositionStrategy", function () {
        return FlexibleConnectedPositionStrategy;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "FullscreenOverlayContainer", function () {
        return FullscreenOverlayContainer;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "GlobalPositionStrategy", function () {
        return GlobalPositionStrategy;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NoopScrollStrategy", function () {
        return NoopScrollStrategy;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Overlay", function () {
        return Overlay;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "OverlayConfig", function () {
        return OverlayConfig;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "OverlayContainer", function () {
        return OverlayContainer;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "OverlayKeyboardDispatcher", function () {
        return OverlayKeyboardDispatcher;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "OverlayModule", function () {
        return OverlayModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "OverlayOutsideClickDispatcher", function () {
        return OverlayOutsideClickDispatcher;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "OverlayPositionBuilder", function () {
        return OverlayPositionBuilder;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "OverlayRef", function () {
        return OverlayRef;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "RepositionScrollStrategy", function () {
        return RepositionScrollStrategy;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ScrollStrategyOptions", function () {
        return ScrollStrategyOptions;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ScrollingVisibility", function () {
        return ScrollingVisibility;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "validateHorizontalPosition", function () {
        return validateHorizontalPosition;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "validateVerticalPosition", function () {
        return validateVerticalPosition;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_material_src_cdk_overlay_overlay_a", function () {
        return CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_material_src_cdk_overlay_overlay_b", function () {
        return CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER_FACTORY;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_material_src_cdk_overlay_overlay_c", function () {
        return CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_material_src_cdk_overlay_overlay_d", function () {
        return BaseOverlayDispatcher;
      });
      /* harmony import */


      var _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/cdk/scrolling */
      "7KAL");
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /* harmony import */


      var _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! @angular/cdk/platform */
      "SCoL");
      /* harmony import */


      var _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! @angular/cdk/bidi */
      "9gLZ");
      /* harmony import */


      var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! @angular/common */
      "SVse");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "CdkScrollable", function () {
        return _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_0__["CdkScrollable"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "ScrollDispatcher", function () {
        return _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_0__["ScrollDispatcher"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "ViewportRuler", function () {
        return _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_0__["ViewportRuler"];
      });
      /* harmony import */


      var _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! @angular/cdk/coercion */
      "8LU1");
      /* harmony import */


      var _angular_cdk_portal__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
      /*! @angular/cdk/portal */
      "1z/I");
      /* harmony import */


      var rxjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
      /*! rxjs */
      "qCKp");
      /* harmony import */


      var rxjs_operators__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
      /*! rxjs/operators */
      "kU1M");
      /* harmony import */


      var _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
      /*! @angular/cdk/keycodes */
      "Ht+U");
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Strategy that will prevent the user from scrolling while the overlay is visible.
       */


      var BlockScrollStrategy = /*#__PURE__*/function () {
        function BlockScrollStrategy(_viewportRuler, document) {
          _classCallCheck2(this, BlockScrollStrategy);

          this._viewportRuler = _viewportRuler;
          this._previousHTMLStyles = {
            top: '',
            left: ''
          };
          this._isEnabled = false;
          this._document = document;
        }
        /** Attaches this scroll strategy to an overlay. */


        _createClass2(BlockScrollStrategy, [{
          key: "attach",
          value: function attach() {}
          /** Blocks page-level scroll while the attached overlay is open. */

        }, {
          key: "enable",
          value: function enable() {
            if (this._canBeEnabled()) {
              var root = this._document.documentElement;
              this._previousScrollPosition = this._viewportRuler.getViewportScrollPosition(); // Cache the previous inline styles in case the user had set them.

              this._previousHTMLStyles.left = root.style.left || '';
              this._previousHTMLStyles.top = root.style.top || ''; // Note: we're using the `html` node, instead of the `body`, because the `body` may
              // have the user agent margin, whereas the `html` is guaranteed not to have one.

              root.style.left = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_5__["coerceCssPixelValue"])(-this._previousScrollPosition.left);
              root.style.top = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_5__["coerceCssPixelValue"])(-this._previousScrollPosition.top);
              root.classList.add('cdk-global-scrollblock');
              this._isEnabled = true;
            }
          }
          /** Unblocks page-level scroll while the attached overlay is open. */

        }, {
          key: "disable",
          value: function disable() {
            if (this._isEnabled) {
              var html = this._document.documentElement;
              var body = this._document.body;
              var htmlStyle = html.style;
              var bodyStyle = body.style;
              var previousHtmlScrollBehavior = htmlStyle.scrollBehavior || '';
              var previousBodyScrollBehavior = bodyStyle.scrollBehavior || '';
              this._isEnabled = false;
              htmlStyle.left = this._previousHTMLStyles.left;
              htmlStyle.top = this._previousHTMLStyles.top;
              html.classList.remove('cdk-global-scrollblock'); // Disable user-defined smooth scrolling temporarily while we restore the scroll position.
              // See https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-behavior

              htmlStyle.scrollBehavior = bodyStyle.scrollBehavior = 'auto';
              window.scroll(this._previousScrollPosition.left, this._previousScrollPosition.top);
              htmlStyle.scrollBehavior = previousHtmlScrollBehavior;
              bodyStyle.scrollBehavior = previousBodyScrollBehavior;
            }
          }
        }, {
          key: "_canBeEnabled",
          value: function _canBeEnabled() {
            // Since the scroll strategies can't be singletons, we have to use a global CSS class
            // (`cdk-global-scrollblock`) to make sure that we don't try to disable global
            // scrolling multiple times.
            var html = this._document.documentElement;

            if (html.classList.contains('cdk-global-scrollblock') || this._isEnabled) {
              return false;
            }

            var body = this._document.body;

            var viewport = this._viewportRuler.getViewportSize();

            return body.scrollHeight > viewport.height || body.scrollWidth > viewport.width;
          }
        }]);

        return BlockScrollStrategy;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Returns an error to be thrown when attempting to attach an already-attached scroll strategy.
       */


      function getMatScrollStrategyAlreadyAttachedError() {
        return Error("Scroll strategy has already been attached.");
      }
      /**
       * Strategy that will close the overlay as soon as the user starts scrolling.
       */


      var CloseScrollStrategy = /*#__PURE__*/function () {
        function CloseScrollStrategy(_scrollDispatcher, _ngZone, _viewportRuler, _config) {
          var _this30 = this;

          _classCallCheck2(this, CloseScrollStrategy);

          this._scrollDispatcher = _scrollDispatcher;
          this._ngZone = _ngZone;
          this._viewportRuler = _viewportRuler;
          this._config = _config;
          this._scrollSubscription = null;
          /** Detaches the overlay ref and disables the scroll strategy. */

          this._detach = function () {
            _this30.disable();

            if (_this30._overlayRef.hasAttached()) {
              _this30._ngZone.run(function () {
                return _this30._overlayRef.detach();
              });
            }
          };
        }
        /** Attaches this scroll strategy to an overlay. */


        _createClass2(CloseScrollStrategy, [{
          key: "attach",
          value: function attach(overlayRef) {
            if (this._overlayRef && (typeof ngDevMode === 'undefined' || ngDevMode)) {
              throw getMatScrollStrategyAlreadyAttachedError();
            }

            this._overlayRef = overlayRef;
          }
          /** Enables the closing of the attached overlay on scroll. */

        }, {
          key: "enable",
          value: function enable() {
            var _this31 = this;

            if (this._scrollSubscription) {
              return;
            }

            var stream = this._scrollDispatcher.scrolled(0);

            if (this._config && this._config.threshold && this._config.threshold > 1) {
              this._initialScrollPosition = this._viewportRuler.getViewportScrollPosition().top;
              this._scrollSubscription = stream.subscribe(function () {
                var scrollPosition = _this31._viewportRuler.getViewportScrollPosition().top;

                if (Math.abs(scrollPosition - _this31._initialScrollPosition) > _this31._config.threshold) {
                  _this31._detach();
                } else {
                  _this31._overlayRef.updatePosition();
                }
              });
            } else {
              this._scrollSubscription = stream.subscribe(this._detach);
            }
          }
          /** Disables the closing the attached overlay on scroll. */

        }, {
          key: "disable",
          value: function disable() {
            if (this._scrollSubscription) {
              this._scrollSubscription.unsubscribe();

              this._scrollSubscription = null;
            }
          }
        }, {
          key: "detach",
          value: function detach() {
            this.disable();
            this._overlayRef = null;
          }
        }]);

        return CloseScrollStrategy;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** Scroll strategy that doesn't do anything. */


      var NoopScrollStrategy = /*#__PURE__*/function () {
        function NoopScrollStrategy() {
          _classCallCheck2(this, NoopScrollStrategy);
        }

        _createClass2(NoopScrollStrategy, [{
          key: "enable",
          value:
          /** Does nothing, as this scroll strategy is a no-op. */
          function enable() {}
          /** Does nothing, as this scroll strategy is a no-op. */

        }, {
          key: "disable",
          value: function disable() {}
          /** Does nothing, as this scroll strategy is a no-op. */

        }, {
          key: "attach",
          value: function attach() {}
        }]);

        return NoopScrollStrategy;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */
      // TODO(jelbourn): move this to live with the rest of the scrolling code
      // TODO(jelbourn): someday replace this with IntersectionObservers

      /**
       * Gets whether an element is scrolled outside of view by any of its parent scrolling containers.
       * @param element Dimensions of the element (from getBoundingClientRect)
       * @param scrollContainers Dimensions of element's scrolling containers (from getBoundingClientRect)
       * @returns Whether the element is scrolled out of view
       * @docs-private
       */


      function isElementScrolledOutsideView(element, scrollContainers) {
        return scrollContainers.some(function (containerBounds) {
          var outsideAbove = element.bottom < containerBounds.top;
          var outsideBelow = element.top > containerBounds.bottom;
          var outsideLeft = element.right < containerBounds.left;
          var outsideRight = element.left > containerBounds.right;
          return outsideAbove || outsideBelow || outsideLeft || outsideRight;
        });
      }
      /**
       * Gets whether an element is clipped by any of its scrolling containers.
       * @param element Dimensions of the element (from getBoundingClientRect)
       * @param scrollContainers Dimensions of element's scrolling containers (from getBoundingClientRect)
       * @returns Whether the element is clipped
       * @docs-private
       */


      function isElementClippedByScrolling(element, scrollContainers) {
        return scrollContainers.some(function (scrollContainerRect) {
          var clippedAbove = element.top < scrollContainerRect.top;
          var clippedBelow = element.bottom > scrollContainerRect.bottom;
          var clippedLeft = element.left < scrollContainerRect.left;
          var clippedRight = element.right > scrollContainerRect.right;
          return clippedAbove || clippedBelow || clippedLeft || clippedRight;
        });
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Strategy that will update the element position as the user is scrolling.
       */


      var RepositionScrollStrategy = /*#__PURE__*/function () {
        function RepositionScrollStrategy(_scrollDispatcher, _viewportRuler, _ngZone, _config) {
          _classCallCheck2(this, RepositionScrollStrategy);

          this._scrollDispatcher = _scrollDispatcher;
          this._viewportRuler = _viewportRuler;
          this._ngZone = _ngZone;
          this._config = _config;
          this._scrollSubscription = null;
        }
        /** Attaches this scroll strategy to an overlay. */


        _createClass2(RepositionScrollStrategy, [{
          key: "attach",
          value: function attach(overlayRef) {
            if (this._overlayRef && (typeof ngDevMode === 'undefined' || ngDevMode)) {
              throw getMatScrollStrategyAlreadyAttachedError();
            }

            this._overlayRef = overlayRef;
          }
          /** Enables repositioning of the attached overlay on scroll. */

        }, {
          key: "enable",
          value: function enable() {
            var _this32 = this;

            if (!this._scrollSubscription) {
              var throttle = this._config ? this._config.scrollThrottle : 0;
              this._scrollSubscription = this._scrollDispatcher.scrolled(throttle).subscribe(function () {
                _this32._overlayRef.updatePosition(); // TODO(crisbeto): make `close` on by default once all components can handle it.


                if (_this32._config && _this32._config.autoClose) {
                  var overlayRect = _this32._overlayRef.overlayElement.getBoundingClientRect();

                  var _this32$_viewportRule = _this32._viewportRuler.getViewportSize(),
                      width = _this32$_viewportRule.width,
                      height = _this32$_viewportRule.height; // TODO(crisbeto): include all ancestor scroll containers here once
                  // we have a way of exposing the trigger element to the scroll strategy.


                  var parentRects = [{
                    width: width,
                    height: height,
                    bottom: height,
                    right: width,
                    top: 0,
                    left: 0
                  }];

                  if (isElementScrolledOutsideView(overlayRect, parentRects)) {
                    _this32.disable();

                    _this32._ngZone.run(function () {
                      return _this32._overlayRef.detach();
                    });
                  }
                }
              });
            }
          }
          /** Disables repositioning of the attached overlay on scroll. */

        }, {
          key: "disable",
          value: function disable() {
            if (this._scrollSubscription) {
              this._scrollSubscription.unsubscribe();

              this._scrollSubscription = null;
            }
          }
        }, {
          key: "detach",
          value: function detach() {
            this.disable();
            this._overlayRef = null;
          }
        }]);

        return RepositionScrollStrategy;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Options for how an overlay will handle scrolling.
       *
       * Users can provide a custom value for `ScrollStrategyOptions` to replace the default
       * behaviors. This class primarily acts as a factory for ScrollStrategy instances.
       */


      var ScrollStrategyOptions = function ScrollStrategyOptions(_scrollDispatcher, _viewportRuler, _ngZone, document) {
        var _this33 = this;

        _classCallCheck2(this, ScrollStrategyOptions);

        this._scrollDispatcher = _scrollDispatcher;
        this._viewportRuler = _viewportRuler;
        this._ngZone = _ngZone;
        /** Do nothing on scroll. */

        this.noop = function () {
          return new NoopScrollStrategy();
        };
        /**
         * Close the overlay as soon as the user scrolls.
         * @param config Configuration to be used inside the scroll strategy.
         */


        this.close = function (config) {
          return new CloseScrollStrategy(_this33._scrollDispatcher, _this33._ngZone, _this33._viewportRuler, config);
        };
        /** Block scrolling. */


        this.block = function () {
          return new BlockScrollStrategy(_this33._viewportRuler, _this33._document);
        };
        /**
         * Update the overlay's position on scroll.
         * @param config Configuration to be used inside the scroll strategy.
         * Allows debouncing the reposition calls.
         */


        this.reposition = function (config) {
          return new RepositionScrollStrategy(_this33._scrollDispatcher, _this33._viewportRuler, _this33._ngZone, config);
        };

        this._document = document;
      };

      ScrollStrategyOptions.ɵfac = function ScrollStrategyOptions_Factory(t) {
        return new (t || ScrollStrategyOptions)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_0__["ScrollDispatcher"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_0__["ViewportRuler"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"]));
      };

      ScrollStrategyOptions.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"])({
        factory: function ScrollStrategyOptions_Factory() {
          return new ScrollStrategyOptions(Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(_angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_0__["ScrollDispatcher"]), Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(_angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_0__["ViewportRuler"]), Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]), Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(_angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"]));
        },
        token: ScrollStrategyOptions,
        providedIn: "root"
      });

      ScrollStrategyOptions.ctorParameters = function () {
        return [{
          type: _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_0__["ScrollDispatcher"]
        }, {
          type: _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_0__["ViewportRuler"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
            args: [_angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"]]
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](ScrollStrategyOptions, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"],
          args: [{
            providedIn: 'root'
          }]
        }], function () {
          return [{
            type: _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_0__["ScrollDispatcher"]
          }, {
            type: _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_0__["ViewportRuler"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
              args: [_angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"]]
            }]
          }];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** Initial configuration used when creating an overlay. */


      var OverlayConfig = function OverlayConfig(config) {
        _classCallCheck2(this, OverlayConfig);

        /** Strategy to be used when handling scroll events while the overlay is open. */
        this.scrollStrategy = new NoopScrollStrategy();
        /** Custom class to add to the overlay pane. */

        this.panelClass = '';
        /** Whether the overlay has a backdrop. */

        this.hasBackdrop = false;
        /** Custom class to add to the backdrop */

        this.backdropClass = 'cdk-overlay-dark-backdrop';
        /**
         * Whether the overlay should be disposed of when the user goes backwards/forwards in history.
         * Note that this usually doesn't include clicking on links (unless the user is using
         * the `HashLocationStrategy`).
         */

        this.disposeOnNavigation = false;

        if (config) {
          // Use `Iterable` instead of `Array` because TypeScript, as of 3.6.3,
          // loses the array generic type in the `for of`. But we *also* have to use `Array` because
          // typescript won't iterate over an `Iterable` unless you compile with `--downlevelIteration`
          var configKeys = Object.keys(config);

          for (var _i3 = 0, _configKeys = configKeys; _i3 < _configKeys.length; _i3++) {
            var key = _configKeys[_i3];

            if (config[key] !== undefined) {
              // TypeScript, as of version 3.5, sees the left-hand-side of this expression
              // as "I don't know *which* key this is, so the only valid value is the intersection
              // of all the posible values." In this case, that happens to be `undefined`. TypeScript
              // is not smart enough to see that the right-hand-side is actually an access of the same
              // exact type with the same exact key, meaning that the value type must be identical.
              // So we use `any` to work around this.
              this[key] = config[key];
            }
          }
        }
      };
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** The points of the origin element and the overlay element to connect. */


      var ConnectionPositionPair = function ConnectionPositionPair(origin, overlay,
      /** Offset along the X axis. */
      offsetX,
      /** Offset along the Y axis. */
      offsetY,
      /** Class(es) to be applied to the panel while this position is active. */
      panelClass) {
        _classCallCheck2(this, ConnectionPositionPair);

        this.offsetX = offsetX;
        this.offsetY = offsetY;
        this.panelClass = panelClass;
        this.originX = origin.originX;
        this.originY = origin.originY;
        this.overlayX = overlay.overlayX;
        this.overlayY = overlay.overlayY;
      };
      /**
       * Set of properties regarding the position of the origin and overlay relative to the viewport
       * with respect to the containing Scrollable elements.
       *
       * The overlay and origin are clipped if any part of their bounding client rectangle exceeds the
       * bounds of any one of the strategy's Scrollable's bounding client rectangle.
       *
       * The overlay and origin are outside view if there is no overlap between their bounding client
       * rectangle and any one of the strategy's Scrollable's bounding client rectangle.
       *
       *       -----------                    -----------
       *       | outside |                    | clipped |
       *       |  view   |              --------------------------
       *       |         |              |     |         |        |
       *       ----------               |     -----------        |
       *  --------------------------    |                        |
       *  |                        |    |      Scrollable        |
       *  |                        |    |                        |
       *  |                        |     --------------------------
       *  |      Scrollable        |
       *  |                        |
       *  --------------------------
       *
       *  @docs-private
       */


      var ScrollingVisibility = function ScrollingVisibility() {
        _classCallCheck2(this, ScrollingVisibility);
      };
      /** The change event emitted by the strategy when a fallback position is used. */


      var ConnectedOverlayPositionChange = function ConnectedOverlayPositionChange(
      /** The position used as a result of this change. */
      connectionPair,
      /** @docs-private */
      scrollableViewProperties) {
        _classCallCheck2(this, ConnectedOverlayPositionChange);

        this.connectionPair = connectionPair;
        this.scrollableViewProperties = scrollableViewProperties;
      };

      ConnectedOverlayPositionChange.ctorParameters = function () {
        return [{
          type: ConnectionPositionPair
        }, {
          type: ScrollingVisibility,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
          }]
        }];
      };
      /**
       * Validates whether a vertical position property matches the expected values.
       * @param property Name of the property being validated.
       * @param value Value of the property being validated.
       * @docs-private
       */


      function validateVerticalPosition(property, value) {
        if (value !== 'top' && value !== 'bottom' && value !== 'center') {
          throw Error("ConnectedPosition: Invalid ".concat(property, " \"").concat(value, "\". ") + "Expected \"top\", \"bottom\" or \"center\".");
        }
      }
      /**
       * Validates whether a horizontal position property matches the expected values.
       * @param property Name of the property being validated.
       * @param value Value of the property being validated.
       * @docs-private
       */


      function validateHorizontalPosition(property, value) {
        if (value !== 'start' && value !== 'end' && value !== 'center') {
          throw Error("ConnectedPosition: Invalid ".concat(property, " \"").concat(value, "\". ") + "Expected \"start\", \"end\" or \"center\".");
        }
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Service for dispatching events that land on the body to appropriate overlay ref,
       * if any. It maintains a list of attached overlays to determine best suited overlay based
       * on event target and order of overlay opens.
       */


      var BaseOverlayDispatcher = /*#__PURE__*/function () {
        function BaseOverlayDispatcher(document) {
          _classCallCheck2(this, BaseOverlayDispatcher);

          /** Currently attached overlays in the order they were attached. */
          this._attachedOverlays = [];
          this._document = document;
        }

        _createClass2(BaseOverlayDispatcher, [{
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            this.detach();
          }
          /** Add a new overlay to the list of attached overlay refs. */

        }, {
          key: "add",
          value: function add(overlayRef) {
            // Ensure that we don't get the same overlay multiple times.
            this.remove(overlayRef);

            this._attachedOverlays.push(overlayRef);
          }
          /** Remove an overlay from the list of attached overlay refs. */

        }, {
          key: "remove",
          value: function remove(overlayRef) {
            var index = this._attachedOverlays.indexOf(overlayRef);

            if (index > -1) {
              this._attachedOverlays.splice(index, 1);
            } // Remove the global listener once there are no more overlays.


            if (this._attachedOverlays.length === 0) {
              this.detach();
            }
          }
        }]);

        return BaseOverlayDispatcher;
      }();

      BaseOverlayDispatcher.ɵfac = function BaseOverlayDispatcher_Factory(t) {
        return new (t || BaseOverlayDispatcher)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"]));
      };

      BaseOverlayDispatcher.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"])({
        factory: function BaseOverlayDispatcher_Factory() {
          return new BaseOverlayDispatcher(Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(_angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"]));
        },
        token: BaseOverlayDispatcher,
        providedIn: "root"
      });

      BaseOverlayDispatcher.ctorParameters = function () {
        return [{
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
            args: [_angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"]]
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](BaseOverlayDispatcher, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"],
          args: [{
            providedIn: 'root'
          }]
        }], function () {
          return [{
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
              args: [_angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"]]
            }]
          }];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Service for dispatching keyboard events that land on the body to appropriate overlay ref,
       * if any. It maintains a list of attached overlays to determine best suited overlay based
       * on event target and order of overlay opens.
       */


      var OverlayKeyboardDispatcher = /*#__PURE__*/function (_BaseOverlayDispatche) {
        _inherits2(OverlayKeyboardDispatcher, _BaseOverlayDispatche);

        var _super7 = _createSuper2(OverlayKeyboardDispatcher);

        function OverlayKeyboardDispatcher(document) {
          var _this34;

          _classCallCheck2(this, OverlayKeyboardDispatcher);

          _this34 = _super7.call(this, document);
          /** Keyboard event listener that will be attached to the body. */

          _this34._keydownListener = function (event) {
            var overlays = _this34._attachedOverlays;

            for (var i = overlays.length - 1; i > -1; i--) {
              // Dispatch the keydown event to the top overlay which has subscribers to its keydown events.
              // We want to target the most recent overlay, rather than trying to match where the event came
              // from, because some components might open an overlay, but keep focus on a trigger element
              // (e.g. for select and autocomplete). We skip overlays without keydown event subscriptions,
              // because we don't want overlays that don't handle keyboard events to block the ones below
              // them that do.
              if (overlays[i]._keydownEvents.observers.length > 0) {
                overlays[i]._keydownEvents.next(event);

                break;
              }
            }
          };

          return _this34;
        }
        /** Add a new overlay to the list of attached overlay refs. */


        _createClass2(OverlayKeyboardDispatcher, [{
          key: "add",
          value: function add(overlayRef) {
            _get2(_getPrototypeOf2(OverlayKeyboardDispatcher.prototype), "add", this).call(this, overlayRef); // Lazily start dispatcher once first overlay is added


            if (!this._isAttached) {
              this._document.body.addEventListener('keydown', this._keydownListener);

              this._isAttached = true;
            }
          }
          /** Detaches the global keyboard event listener. */

        }, {
          key: "detach",
          value: function detach() {
            if (this._isAttached) {
              this._document.body.removeEventListener('keydown', this._keydownListener);

              this._isAttached = false;
            }
          }
        }]);

        return OverlayKeyboardDispatcher;
      }(BaseOverlayDispatcher);

      OverlayKeyboardDispatcher.ɵfac = function OverlayKeyboardDispatcher_Factory(t) {
        return new (t || OverlayKeyboardDispatcher)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"]));
      };

      OverlayKeyboardDispatcher.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"])({
        factory: function OverlayKeyboardDispatcher_Factory() {
          return new OverlayKeyboardDispatcher(Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(_angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"]));
        },
        token: OverlayKeyboardDispatcher,
        providedIn: "root"
      });

      OverlayKeyboardDispatcher.ctorParameters = function () {
        return [{
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
            args: [_angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"]]
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](OverlayKeyboardDispatcher, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"],
          args: [{
            providedIn: 'root'
          }]
        }], function () {
          return [{
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
              args: [_angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"]]
            }]
          }];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Service for dispatching mouse click events that land on the body to appropriate overlay ref,
       * if any. It maintains a list of attached overlays to determine best suited overlay based
       * on event target and order of overlay opens.
       */


      var OverlayOutsideClickDispatcher = /*#__PURE__*/function (_BaseOverlayDispatche2) {
        _inherits2(OverlayOutsideClickDispatcher, _BaseOverlayDispatche2);

        var _super8 = _createSuper2(OverlayOutsideClickDispatcher);

        function OverlayOutsideClickDispatcher(document, _platform) {
          var _this35;

          _classCallCheck2(this, OverlayOutsideClickDispatcher);

          _this35 = _super8.call(this, document);
          _this35._platform = _platform;
          _this35._cursorStyleIsSet = false;
          /** Click event listener that will be attached to the body propagate phase. */

          _this35._clickListener = function (event) {
            // Get the target through the `composedPath` if possible to account for shadow DOM.
            var target = event.composedPath ? event.composedPath()[0] : event.target; // We copy the array because the original may be modified asynchronously if the
            // outsidePointerEvents listener decides to detach overlays resulting in index errors inside
            // the for loop.

            var overlays = _this35._attachedOverlays.slice(); // Dispatch the mouse event to the top overlay which has subscribers to its mouse events.
            // We want to target all overlays for which the click could be considered as outside click.
            // As soon as we reach an overlay for which the click is not outside click we break off
            // the loop.


            for (var i = overlays.length - 1; i > -1; i--) {
              var overlayRef = overlays[i];

              if (overlayRef._outsidePointerEvents.observers.length < 1 || !overlayRef.hasAttached()) {
                continue;
              } // If it's a click inside the overlay, just break - we should do nothing
              // If it's an outside click dispatch the mouse event, and proceed with the next overlay


              if (overlayRef.overlayElement.contains(target)) {
                break;
              }

              overlayRef._outsidePointerEvents.next(event);
            }
          };

          return _this35;
        }
        /** Add a new overlay to the list of attached overlay refs. */


        _createClass2(OverlayOutsideClickDispatcher, [{
          key: "add",
          value: function add(overlayRef) {
            _get2(_getPrototypeOf2(OverlayOutsideClickDispatcher.prototype), "add", this).call(this, overlayRef); // tslint:disable: max-line-length
            // Safari on iOS does not generate click events for non-interactive
            // elements. However, we want to receive a click for any element outside
            // the overlay. We can force a "clickable" state by setting
            // `cursor: pointer` on the document body.
            // See https://developer.mozilla.org/en-US/docs/Web/API/Element/click_event#Safari_Mobile
            // and https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html
            // tslint:enable: max-line-length


            if (!this._isAttached) {
              this._document.body.addEventListener('click', this._clickListener, true);

              this._document.body.addEventListener('contextmenu', this._clickListener, true); // click event is not fired on iOS. To make element "clickable" we are
              // setting the cursor to pointer


              if (this._platform.IOS && !this._cursorStyleIsSet) {
                this._cursorOriginalValue = this._document.body.style.cursor;
                this._document.body.style.cursor = 'pointer';
                this._cursorStyleIsSet = true;
              }

              this._isAttached = true;
            }
          }
          /** Detaches the global keyboard event listener. */

        }, {
          key: "detach",
          value: function detach() {
            if (this._isAttached) {
              this._document.body.removeEventListener('click', this._clickListener, true);

              this._document.body.removeEventListener('contextmenu', this._clickListener, true);

              if (this._platform.IOS && this._cursorStyleIsSet) {
                this._document.body.style.cursor = this._cursorOriginalValue;
                this._cursorStyleIsSet = false;
              }

              this._isAttached = false;
            }
          }
        }]);

        return OverlayOutsideClickDispatcher;
      }(BaseOverlayDispatcher);

      OverlayOutsideClickDispatcher.ɵfac = function OverlayOutsideClickDispatcher_Factory(t) {
        return new (t || OverlayOutsideClickDispatcher)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__["Platform"]));
      };

      OverlayOutsideClickDispatcher.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"])({
        factory: function OverlayOutsideClickDispatcher_Factory() {
          return new OverlayOutsideClickDispatcher(Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(_angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"]), Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__["Platform"]));
        },
        token: OverlayOutsideClickDispatcher,
        providedIn: "root"
      });

      OverlayOutsideClickDispatcher.ctorParameters = function () {
        return [{
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
            args: [_angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"]]
          }]
        }, {
          type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__["Platform"]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](OverlayOutsideClickDispatcher, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"],
          args: [{
            providedIn: 'root'
          }]
        }], function () {
          return [{
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
              args: [_angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"]]
            }]
          }, {
            type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__["Platform"]
          }];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Whether we're in a testing environment.
       * TODO(crisbeto): remove this once we have an overlay testing module.
       */


      var isTestEnvironment = typeof window !== 'undefined' && !!window && !!(window.__karma__ || window.jasmine);
      /** Container inside which all overlays will render. */

      var OverlayContainer = /*#__PURE__*/function () {
        function OverlayContainer(document, _platform) {
          _classCallCheck2(this, OverlayContainer);

          this._platform = _platform;
          this._document = document;
        }

        _createClass2(OverlayContainer, [{
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            var container = this._containerElement;

            if (container && container.parentNode) {
              container.parentNode.removeChild(container);
            }
          }
          /**
           * This method returns the overlay container element. It will lazily
           * create the element the first time  it is called to facilitate using
           * the container in non-browser environments.
           * @returns the container element
           */

        }, {
          key: "getContainerElement",
          value: function getContainerElement() {
            if (!this._containerElement) {
              this._createContainer();
            }

            return this._containerElement;
          }
          /**
           * Create the overlay container element, which is simply a div
           * with the 'cdk-overlay-container' class on the document body.
           */

        }, {
          key: "_createContainer",
          value: function _createContainer() {
            var containerClass = 'cdk-overlay-container';

            if (this._platform.isBrowser || isTestEnvironment) {
              var oppositePlatformContainers = this._document.querySelectorAll(".".concat(containerClass, "[platform=\"server\"], ") + ".".concat(containerClass, "[platform=\"test\"]")); // Remove any old containers from the opposite platform.
              // This can happen when transitioning from the server to the client.


              for (var i = 0; i < oppositePlatformContainers.length; i++) {
                oppositePlatformContainers[i].parentNode.removeChild(oppositePlatformContainers[i]);
              }
            }

            var container = this._document.createElement('div');

            container.classList.add(containerClass); // A long time ago we kept adding new overlay containers whenever a new app was instantiated,
            // but at some point we added logic which clears the duplicate ones in order to avoid leaks.
            // The new logic was a little too aggressive since it was breaking some legitimate use cases.
            // To mitigate the problem we made it so that only containers from a different platform are
            // cleared, but the side-effect was that people started depending on the overly-aggressive
            // logic to clean up their tests for them. Until we can introduce an overlay-specific testing
            // module which does the cleanup, we try to detect that we're in a test environment and we
            // always clear the container. See #17006.
            // TODO(crisbeto): remove the test environment check once we have an overlay testing module.

            if (isTestEnvironment) {
              container.setAttribute('platform', 'test');
            } else if (!this._platform.isBrowser) {
              container.setAttribute('platform', 'server');
            }

            this._document.body.appendChild(container);

            this._containerElement = container;
          }
        }]);

        return OverlayContainer;
      }();

      OverlayContainer.ɵfac = function OverlayContainer_Factory(t) {
        return new (t || OverlayContainer)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__["Platform"]));
      };

      OverlayContainer.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"])({
        factory: function OverlayContainer_Factory() {
          return new OverlayContainer(Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(_angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"]), Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__["Platform"]));
        },
        token: OverlayContainer,
        providedIn: "root"
      });

      OverlayContainer.ctorParameters = function () {
        return [{
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
            args: [_angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"]]
          }]
        }, {
          type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__["Platform"]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](OverlayContainer, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"],
          args: [{
            providedIn: 'root'
          }]
        }], function () {
          return [{
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
              args: [_angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"]]
            }]
          }, {
            type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__["Platform"]
          }];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Reference to an overlay that has been created with the Overlay service.
       * Used to manipulate or dispose of said overlay.
       */


      var OverlayRef = /*#__PURE__*/function () {
        function OverlayRef(_portalOutlet, _host, _pane, _config, _ngZone, _keyboardDispatcher, _document, _location, _outsideClickDispatcher) {
          var _this36 = this;

          _classCallCheck2(this, OverlayRef);

          this._portalOutlet = _portalOutlet;
          this._host = _host;
          this._pane = _pane;
          this._config = _config;
          this._ngZone = _ngZone;
          this._keyboardDispatcher = _keyboardDispatcher;
          this._document = _document;
          this._location = _location;
          this._outsideClickDispatcher = _outsideClickDispatcher;
          this._backdropElement = null;
          this._backdropClick = new rxjs__WEBPACK_IMPORTED_MODULE_7__["Subject"]();
          this._attachments = new rxjs__WEBPACK_IMPORTED_MODULE_7__["Subject"]();
          this._detachments = new rxjs__WEBPACK_IMPORTED_MODULE_7__["Subject"]();
          this._locationChanges = rxjs__WEBPACK_IMPORTED_MODULE_7__["Subscription"].EMPTY;

          this._backdropClickHandler = function (event) {
            return _this36._backdropClick.next(event);
          };
          /** Stream of keydown events dispatched to this overlay. */


          this._keydownEvents = new rxjs__WEBPACK_IMPORTED_MODULE_7__["Subject"]();
          /** Stream of mouse outside events dispatched to this overlay. */

          this._outsidePointerEvents = new rxjs__WEBPACK_IMPORTED_MODULE_7__["Subject"]();

          if (_config.scrollStrategy) {
            this._scrollStrategy = _config.scrollStrategy;

            this._scrollStrategy.attach(this);
          }

          this._positionStrategy = _config.positionStrategy;
        }
        /** The overlay's HTML element */


        _createClass2(OverlayRef, [{
          key: "overlayElement",
          get: function get() {
            return this._pane;
          }
          /** The overlay's backdrop HTML element. */

        }, {
          key: "backdropElement",
          get: function get() {
            return this._backdropElement;
          }
          /**
           * Wrapper around the panel element. Can be used for advanced
           * positioning where a wrapper with specific styling is
           * required around the overlay pane.
           */

        }, {
          key: "hostElement",
          get: function get() {
            return this._host;
          }
          /**
           * Attaches content, given via a Portal, to the overlay.
           * If the overlay is configured to have a backdrop, it will be created.
           *
           * @param portal Portal instance to which to attach the overlay.
           * @returns The portal attachment result.
           */

        }, {
          key: "attach",
          value: function attach(portal) {
            var _this37 = this;

            var attachResult = this._portalOutlet.attach(portal); // Update the pane element with the given configuration.


            if (!this._host.parentElement && this._previousHostParent) {
              this._previousHostParent.appendChild(this._host);
            }

            if (this._positionStrategy) {
              this._positionStrategy.attach(this);
            }

            this._updateStackingOrder();

            this._updateElementSize();

            this._updateElementDirection();

            if (this._scrollStrategy) {
              this._scrollStrategy.enable();
            } // Update the position once the zone is stable so that the overlay will be fully rendered
            // before attempting to position it, as the position may depend on the size of the rendered
            // content.


            this._ngZone.onStable.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_8__["take"])(1)).subscribe(function () {
              // The overlay could've been detached before the zone has stabilized.
              if (_this37.hasAttached()) {
                _this37.updatePosition();
              }
            }); // Enable pointer events for the overlay pane element.


            this._togglePointerEvents(true);

            if (this._config.hasBackdrop) {
              this._attachBackdrop();
            }

            if (this._config.panelClass) {
              this._toggleClasses(this._pane, this._config.panelClass, true);
            } // Only emit the `attachments` event once all other setup is done.


            this._attachments.next(); // Track this overlay by the keyboard dispatcher


            this._keyboardDispatcher.add(this);

            if (this._config.disposeOnNavigation) {
              this._locationChanges = this._location.subscribe(function () {
                return _this37.dispose();
              });
            }

            this._outsideClickDispatcher.add(this);

            return attachResult;
          }
          /**
           * Detaches an overlay from a portal.
           * @returns The portal detachment result.
           */

        }, {
          key: "detach",
          value: function detach() {
            if (!this.hasAttached()) {
              return;
            }

            this.detachBackdrop(); // When the overlay is detached, the pane element should disable pointer events.
            // This is necessary because otherwise the pane element will cover the page and disable
            // pointer events therefore. Depends on the position strategy and the applied pane boundaries.

            this._togglePointerEvents(false);

            if (this._positionStrategy && this._positionStrategy.detach) {
              this._positionStrategy.detach();
            }

            if (this._scrollStrategy) {
              this._scrollStrategy.disable();
            }

            var detachmentResult = this._portalOutlet.detach(); // Only emit after everything is detached.


            this._detachments.next(); // Remove this overlay from keyboard dispatcher tracking.


            this._keyboardDispatcher.remove(this); // Keeping the host element in the DOM can cause scroll jank, because it still gets
            // rendered, even though it's transparent and unclickable which is why we remove it.


            this._detachContentWhenStable();

            this._locationChanges.unsubscribe();

            this._outsideClickDispatcher.remove(this);

            return detachmentResult;
          }
          /** Cleans up the overlay from the DOM. */

        }, {
          key: "dispose",
          value: function dispose() {
            var isAttached = this.hasAttached();

            if (this._positionStrategy) {
              this._positionStrategy.dispose();
            }

            this._disposeScrollStrategy();

            this.detachBackdrop();

            this._locationChanges.unsubscribe();

            this._keyboardDispatcher.remove(this);

            this._portalOutlet.dispose();

            this._attachments.complete();

            this._backdropClick.complete();

            this._keydownEvents.complete();

            this._outsidePointerEvents.complete();

            this._outsideClickDispatcher.remove(this);

            if (this._host && this._host.parentNode) {
              this._host.parentNode.removeChild(this._host);

              this._host = null;
            }

            this._previousHostParent = this._pane = null;

            if (isAttached) {
              this._detachments.next();
            }

            this._detachments.complete();
          }
          /** Whether the overlay has attached content. */

        }, {
          key: "hasAttached",
          value: function hasAttached() {
            return this._portalOutlet.hasAttached();
          }
          /** Gets an observable that emits when the backdrop has been clicked. */

        }, {
          key: "backdropClick",
          value: function backdropClick() {
            return this._backdropClick;
          }
          /** Gets an observable that emits when the overlay has been attached. */

        }, {
          key: "attachments",
          value: function attachments() {
            return this._attachments;
          }
          /** Gets an observable that emits when the overlay has been detached. */

        }, {
          key: "detachments",
          value: function detachments() {
            return this._detachments;
          }
          /** Gets an observable of keydown events targeted to this overlay. */

        }, {
          key: "keydownEvents",
          value: function keydownEvents() {
            return this._keydownEvents;
          }
          /** Gets an observable of pointer events targeted outside this overlay. */

        }, {
          key: "outsidePointerEvents",
          value: function outsidePointerEvents() {
            return this._outsidePointerEvents;
          }
          /** Gets the current overlay configuration, which is immutable. */

        }, {
          key: "getConfig",
          value: function getConfig() {
            return this._config;
          }
          /** Updates the position of the overlay based on the position strategy. */

        }, {
          key: "updatePosition",
          value: function updatePosition() {
            if (this._positionStrategy) {
              this._positionStrategy.apply();
            }
          }
          /** Switches to a new position strategy and updates the overlay position. */

        }, {
          key: "updatePositionStrategy",
          value: function updatePositionStrategy(strategy) {
            if (strategy === this._positionStrategy) {
              return;
            }

            if (this._positionStrategy) {
              this._positionStrategy.dispose();
            }

            this._positionStrategy = strategy;

            if (this.hasAttached()) {
              strategy.attach(this);
              this.updatePosition();
            }
          }
          /** Update the size properties of the overlay. */

        }, {
          key: "updateSize",
          value: function updateSize(sizeConfig) {
            this._config = Object.assign(Object.assign({}, this._config), sizeConfig);

            this._updateElementSize();
          }
          /** Sets the LTR/RTL direction for the overlay. */

        }, {
          key: "setDirection",
          value: function setDirection(dir) {
            this._config = Object.assign(Object.assign({}, this._config), {
              direction: dir
            });

            this._updateElementDirection();
          }
          /** Add a CSS class or an array of classes to the overlay pane. */

        }, {
          key: "addPanelClass",
          value: function addPanelClass(classes) {
            if (this._pane) {
              this._toggleClasses(this._pane, classes, true);
            }
          }
          /** Remove a CSS class or an array of classes from the overlay pane. */

        }, {
          key: "removePanelClass",
          value: function removePanelClass(classes) {
            if (this._pane) {
              this._toggleClasses(this._pane, classes, false);
            }
          }
          /**
           * Returns the layout direction of the overlay panel.
           */

        }, {
          key: "getDirection",
          value: function getDirection() {
            var direction = this._config.direction;

            if (!direction) {
              return 'ltr';
            }

            return typeof direction === 'string' ? direction : direction.value;
          }
          /** Switches to a new scroll strategy. */

        }, {
          key: "updateScrollStrategy",
          value: function updateScrollStrategy(strategy) {
            if (strategy === this._scrollStrategy) {
              return;
            }

            this._disposeScrollStrategy();

            this._scrollStrategy = strategy;

            if (this.hasAttached()) {
              strategy.attach(this);
              strategy.enable();
            }
          }
          /** Updates the text direction of the overlay panel. */

        }, {
          key: "_updateElementDirection",
          value: function _updateElementDirection() {
            this._host.setAttribute('dir', this.getDirection());
          }
          /** Updates the size of the overlay element based on the overlay config. */

        }, {
          key: "_updateElementSize",
          value: function _updateElementSize() {
            if (!this._pane) {
              return;
            }

            var style = this._pane.style;
            style.width = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_5__["coerceCssPixelValue"])(this._config.width);
            style.height = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_5__["coerceCssPixelValue"])(this._config.height);
            style.minWidth = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_5__["coerceCssPixelValue"])(this._config.minWidth);
            style.minHeight = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_5__["coerceCssPixelValue"])(this._config.minHeight);
            style.maxWidth = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_5__["coerceCssPixelValue"])(this._config.maxWidth);
            style.maxHeight = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_5__["coerceCssPixelValue"])(this._config.maxHeight);
          }
          /** Toggles the pointer events for the overlay pane element. */

        }, {
          key: "_togglePointerEvents",
          value: function _togglePointerEvents(enablePointer) {
            this._pane.style.pointerEvents = enablePointer ? 'auto' : 'none';
          }
          /** Attaches a backdrop for this overlay. */

        }, {
          key: "_attachBackdrop",
          value: function _attachBackdrop() {
            var _this38 = this;

            var showingClass = 'cdk-overlay-backdrop-showing';
            this._backdropElement = this._document.createElement('div');

            this._backdropElement.classList.add('cdk-overlay-backdrop');

            if (this._config.backdropClass) {
              this._toggleClasses(this._backdropElement, this._config.backdropClass, true);
            } // Insert the backdrop before the pane in the DOM order,
            // in order to handle stacked overlays properly.


            this._host.parentElement.insertBefore(this._backdropElement, this._host); // Forward backdrop clicks such that the consumer of the overlay can perform whatever
            // action desired when such a click occurs (usually closing the overlay).


            this._backdropElement.addEventListener('click', this._backdropClickHandler); // Add class to fade-in the backdrop after one frame.


            if (typeof requestAnimationFrame !== 'undefined') {
              this._ngZone.runOutsideAngular(function () {
                requestAnimationFrame(function () {
                  if (_this38._backdropElement) {
                    _this38._backdropElement.classList.add(showingClass);
                  }
                });
              });
            } else {
              this._backdropElement.classList.add(showingClass);
            }
          }
          /**
           * Updates the stacking order of the element, moving it to the top if necessary.
           * This is required in cases where one overlay was detached, while another one,
           * that should be behind it, was destroyed. The next time both of them are opened,
           * the stacking will be wrong, because the detached element's pane will still be
           * in its original DOM position.
           */

        }, {
          key: "_updateStackingOrder",
          value: function _updateStackingOrder() {
            if (this._host.nextSibling) {
              this._host.parentNode.appendChild(this._host);
            }
          }
          /** Detaches the backdrop (if any) associated with the overlay. */

        }, {
          key: "detachBackdrop",
          value: function detachBackdrop() {
            var _this39 = this;

            var backdropToDetach = this._backdropElement;

            if (!backdropToDetach) {
              return;
            }

            var timeoutId;

            var finishDetach = function finishDetach() {
              // It may not be attached to anything in certain cases (e.g. unit tests).
              if (backdropToDetach) {
                backdropToDetach.removeEventListener('click', _this39._backdropClickHandler);
                backdropToDetach.removeEventListener('transitionend', finishDetach);

                if (backdropToDetach.parentNode) {
                  backdropToDetach.parentNode.removeChild(backdropToDetach);
                }
              } // It is possible that a new portal has been attached to this overlay since we started
              // removing the backdrop. If that is the case, only clear the backdrop reference if it
              // is still the same instance that we started to remove.


              if (_this39._backdropElement == backdropToDetach) {
                _this39._backdropElement = null;
              }

              if (_this39._config.backdropClass) {
                _this39._toggleClasses(backdropToDetach, _this39._config.backdropClass, false);
              }

              clearTimeout(timeoutId);
            };

            backdropToDetach.classList.remove('cdk-overlay-backdrop-showing');

            this._ngZone.runOutsideAngular(function () {
              backdropToDetach.addEventListener('transitionend', finishDetach);
            }); // If the backdrop doesn't have a transition, the `transitionend` event won't fire.
            // In this case we make it unclickable and we try to remove it after a delay.


            backdropToDetach.style.pointerEvents = 'none'; // Run this outside the Angular zone because there's nothing that Angular cares about.
            // If it were to run inside the Angular zone, every test that used Overlay would have to be
            // either async or fakeAsync.

            timeoutId = this._ngZone.runOutsideAngular(function () {
              return setTimeout(finishDetach, 500);
            });
          }
          /** Toggles a single CSS class or an array of classes on an element. */

        }, {
          key: "_toggleClasses",
          value: function _toggleClasses(element, cssClasses, isAdd) {
            var classList = element.classList;
            Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_5__["coerceArray"])(cssClasses).forEach(function (cssClass) {
              // We can't do a spread here, because IE doesn't support setting multiple classes.
              // Also trying to add an empty string to a DOMTokenList will throw.
              if (cssClass) {
                isAdd ? classList.add(cssClass) : classList.remove(cssClass);
              }
            });
          }
          /** Detaches the overlay content next time the zone stabilizes. */

        }, {
          key: "_detachContentWhenStable",
          value: function _detachContentWhenStable() {
            var _this40 = this;

            // Normally we wouldn't have to explicitly run this outside the `NgZone`, however
            // if the consumer is using `zone-patch-rxjs`, the `Subscription.unsubscribe` call will
            // be patched to run inside the zone, which will throw us into an infinite loop.
            this._ngZone.runOutsideAngular(function () {
              // We can't remove the host here immediately, because the overlay pane's content
              // might still be animating. This stream helps us avoid interrupting the animation
              // by waiting for the pane to become empty.
              var subscription = _this40._ngZone.onStable.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_8__["takeUntil"])(Object(rxjs__WEBPACK_IMPORTED_MODULE_7__["merge"])(_this40._attachments, _this40._detachments))).subscribe(function () {
                // Needs a couple of checks for the pane and host, because
                // they may have been removed by the time the zone stabilizes.
                if (!_this40._pane || !_this40._host || _this40._pane.children.length === 0) {
                  if (_this40._pane && _this40._config.panelClass) {
                    _this40._toggleClasses(_this40._pane, _this40._config.panelClass, false);
                  }

                  if (_this40._host && _this40._host.parentElement) {
                    _this40._previousHostParent = _this40._host.parentElement;

                    _this40._previousHostParent.removeChild(_this40._host);
                  }

                  subscription.unsubscribe();
                }
              });
            });
          }
          /** Disposes of a scroll strategy. */

        }, {
          key: "_disposeScrollStrategy",
          value: function _disposeScrollStrategy() {
            var scrollStrategy = this._scrollStrategy;

            if (scrollStrategy) {
              scrollStrategy.disable();

              if (scrollStrategy.detach) {
                scrollStrategy.detach();
              }
            }
          }
        }]);

        return OverlayRef;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */
      // TODO: refactor clipping detection into a separate thing (part of scrolling module)
      // TODO: doesn't handle both flexible width and height when it has to scroll along both axis.

      /** Class to be added to the overlay bounding box. */


      var boundingBoxClass = 'cdk-overlay-connected-position-bounding-box';
      /** Regex used to split a string on its CSS units. */

      var cssUnitPattern = /([A-Za-z%]+)$/;
      /**
       * A strategy for positioning overlays. Using this strategy, an overlay is given an
       * implicit position relative some origin element. The relative position is defined in terms of
       * a point on the origin element that is connected to a point on the overlay element. For example,
       * a basic dropdown is connecting the bottom-left corner of the origin to the top-left corner
       * of the overlay.
       */

      var FlexibleConnectedPositionStrategy = /*#__PURE__*/function () {
        function FlexibleConnectedPositionStrategy(connectedTo, _viewportRuler, _document, _platform, _overlayContainer) {
          _classCallCheck2(this, FlexibleConnectedPositionStrategy);

          this._viewportRuler = _viewportRuler;
          this._document = _document;
          this._platform = _platform;
          this._overlayContainer = _overlayContainer;
          /** Last size used for the bounding box. Used to avoid resizing the overlay after open. */

          this._lastBoundingBoxSize = {
            width: 0,
            height: 0
          };
          /** Whether the overlay was pushed in a previous positioning. */

          this._isPushed = false;
          /** Whether the overlay can be pushed on-screen on the initial open. */

          this._canPush = true;
          /** Whether the overlay can grow via flexible width/height after the initial open. */

          this._growAfterOpen = false;
          /** Whether the overlay's width and height can be constrained to fit within the viewport. */

          this._hasFlexibleDimensions = true;
          /** Whether the overlay position is locked. */

          this._positionLocked = false;
          /** Amount of space that must be maintained between the overlay and the edge of the viewport. */

          this._viewportMargin = 0;
          /** The Scrollable containers used to check scrollable view properties on position change. */

          this._scrollables = [];
          /** Ordered list of preferred positions, from most to least desirable. */

          this._preferredPositions = [];
          /** Subject that emits whenever the position changes. */

          this._positionChanges = new rxjs__WEBPACK_IMPORTED_MODULE_7__["Subject"]();
          /** Subscription to viewport size changes. */

          this._resizeSubscription = rxjs__WEBPACK_IMPORTED_MODULE_7__["Subscription"].EMPTY;
          /** Default offset for the overlay along the x axis. */

          this._offsetX = 0;
          /** Default offset for the overlay along the y axis. */

          this._offsetY = 0;
          /** Keeps track of the CSS classes that the position strategy has applied on the overlay panel. */

          this._appliedPanelClasses = [];
          /** Observable sequence of position changes. */

          this.positionChanges = this._positionChanges;
          this.setOrigin(connectedTo);
        }
        /** Ordered list of preferred positions, from most to least desirable. */


        _createClass2(FlexibleConnectedPositionStrategy, [{
          key: "positions",
          get: function get() {
            return this._preferredPositions;
          }
          /** Attaches this position strategy to an overlay. */

        }, {
          key: "attach",
          value: function attach(overlayRef) {
            var _this41 = this;

            if (this._overlayRef && overlayRef !== this._overlayRef && (typeof ngDevMode === 'undefined' || ngDevMode)) {
              throw Error('This position strategy is already attached to an overlay');
            }

            this._validatePositions();

            overlayRef.hostElement.classList.add(boundingBoxClass);
            this._overlayRef = overlayRef;
            this._boundingBox = overlayRef.hostElement;
            this._pane = overlayRef.overlayElement;
            this._isDisposed = false;
            this._isInitialRender = true;
            this._lastPosition = null;

            this._resizeSubscription.unsubscribe();

            this._resizeSubscription = this._viewportRuler.change().subscribe(function () {
              // When the window is resized, we want to trigger the next reposition as if it
              // was an initial render, in order for the strategy to pick a new optimal position,
              // otherwise position locking will cause it to stay at the old one.
              _this41._isInitialRender = true;

              _this41.apply();
            });
          }
          /**
           * Updates the position of the overlay element, using whichever preferred position relative
           * to the origin best fits on-screen.
           *
           * The selection of a position goes as follows:
           *  - If any positions fit completely within the viewport as-is,
           *      choose the first position that does so.
           *  - If flexible dimensions are enabled and at least one satifies the given minimum width/height,
           *      choose the position with the greatest available size modified by the positions' weight.
           *  - If pushing is enabled, take the position that went off-screen the least and push it
           *      on-screen.
           *  - If none of the previous criteria were met, use the position that goes off-screen the least.
           * @docs-private
           */

        }, {
          key: "apply",
          value: function apply() {
            // We shouldn't do anything if the strategy was disposed or we're on the server.
            if (this._isDisposed || !this._platform.isBrowser) {
              return;
            } // If the position has been applied already (e.g. when the overlay was opened) and the
            // consumer opted into locking in the position, re-use the old position, in order to
            // prevent the overlay from jumping around.


            if (!this._isInitialRender && this._positionLocked && this._lastPosition) {
              this.reapplyLastPosition();
              return;
            }

            this._clearPanelClasses();

            this._resetOverlayElementStyles();

            this._resetBoundingBoxStyles(); // We need the bounding rects for the origin and the overlay to determine how to position
            // the overlay relative to the origin.
            // We use the viewport rect to determine whether a position would go off-screen.


            this._viewportRect = this._getNarrowedViewportRect();
            this._originRect = this._getOriginRect();
            this._overlayRect = this._pane.getBoundingClientRect();
            var originRect = this._originRect;
            var overlayRect = this._overlayRect;
            var viewportRect = this._viewportRect; // Positions where the overlay will fit with flexible dimensions.

            var flexibleFits = []; // Fallback if none of the preferred positions fit within the viewport.

            var fallback; // Go through each of the preferred positions looking for a good fit.
            // If a good fit is found, it will be applied immediately.

            var _iterator2 = _createForOfIteratorHelper(this._preferredPositions),
                _step2;

            try {
              for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
                var pos = _step2.value;

                // Get the exact (x, y) coordinate for the point-of-origin on the origin element.
                var originPoint = this._getOriginPoint(originRect, pos); // From that point-of-origin, get the exact (x, y) coordinate for the top-left corner of the
                // overlay in this position. We use the top-left corner for calculations and later translate
                // this into an appropriate (top, left, bottom, right) style.


                var overlayPoint = this._getOverlayPoint(originPoint, overlayRect, pos); // Calculate how well the overlay would fit into the viewport with this point.


                var overlayFit = this._getOverlayFit(overlayPoint, overlayRect, viewportRect, pos); // If the overlay, without any further work, fits into the viewport, use this position.


                if (overlayFit.isCompletelyWithinViewport) {
                  this._isPushed = false;

                  this._applyPosition(pos, originPoint);

                  return;
                } // If the overlay has flexible dimensions, we can use this position
                // so long as there's enough space for the minimum dimensions.


                if (this._canFitWithFlexibleDimensions(overlayFit, overlayPoint, viewportRect)) {
                  // Save positions where the overlay will fit with flexible dimensions. We will use these
                  // if none of the positions fit *without* flexible dimensions.
                  flexibleFits.push({
                    position: pos,
                    origin: originPoint,
                    overlayRect: overlayRect,
                    boundingBoxRect: this._calculateBoundingBoxRect(originPoint, pos)
                  });
                  continue;
                } // If the current preferred position does not fit on the screen, remember the position
                // if it has more visible area on-screen than we've seen and move onto the next preferred
                // position.


                if (!fallback || fallback.overlayFit.visibleArea < overlayFit.visibleArea) {
                  fallback = {
                    overlayFit: overlayFit,
                    overlayPoint: overlayPoint,
                    originPoint: originPoint,
                    position: pos,
                    overlayRect: overlayRect
                  };
                }
              } // If there are any positions where the overlay would fit with flexible dimensions, choose the
              // one that has the greatest area available modified by the position's weight

            } catch (err) {
              _iterator2.e(err);
            } finally {
              _iterator2.f();
            }

            if (flexibleFits.length) {
              var bestFit = null;
              var bestScore = -1;

              var _iterator3 = _createForOfIteratorHelper(flexibleFits),
                  _step3;

              try {
                for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
                  var fit = _step3.value;
                  var score = fit.boundingBoxRect.width * fit.boundingBoxRect.height * (fit.position.weight || 1);

                  if (score > bestScore) {
                    bestScore = score;
                    bestFit = fit;
                  }
                }
              } catch (err) {
                _iterator3.e(err);
              } finally {
                _iterator3.f();
              }

              this._isPushed = false;

              this._applyPosition(bestFit.position, bestFit.origin);

              return;
            } // When none of the preferred positions fit within the viewport, take the position
            // that went off-screen the least and attempt to push it on-screen.


            if (this._canPush) {
              // TODO(jelbourn): after pushing, the opening "direction" of the overlay might not make sense.
              this._isPushed = true;

              this._applyPosition(fallback.position, fallback.originPoint);

              return;
            } // All options for getting the overlay within the viewport have been exhausted, so go with the
            // position that went off-screen the least.


            this._applyPosition(fallback.position, fallback.originPoint);
          }
        }, {
          key: "detach",
          value: function detach() {
            this._clearPanelClasses();

            this._lastPosition = null;
            this._previousPushAmount = null;

            this._resizeSubscription.unsubscribe();
          }
          /** Cleanup after the element gets destroyed. */

        }, {
          key: "dispose",
          value: function dispose() {
            if (this._isDisposed) {
              return;
            } // We can't use `_resetBoundingBoxStyles` here, because it resets
            // some properties to zero, rather than removing them.


            if (this._boundingBox) {
              extendStyles(this._boundingBox.style, {
                top: '',
                left: '',
                right: '',
                bottom: '',
                height: '',
                width: '',
                alignItems: '',
                justifyContent: ''
              });
            }

            if (this._pane) {
              this._resetOverlayElementStyles();
            }

            if (this._overlayRef) {
              this._overlayRef.hostElement.classList.remove(boundingBoxClass);
            }

            this.detach();

            this._positionChanges.complete();

            this._overlayRef = this._boundingBox = null;
            this._isDisposed = true;
          }
          /**
           * This re-aligns the overlay element with the trigger in its last calculated position,
           * even if a position higher in the "preferred positions" list would now fit. This
           * allows one to re-align the panel without changing the orientation of the panel.
           */

        }, {
          key: "reapplyLastPosition",
          value: function reapplyLastPosition() {
            if (!this._isDisposed && (!this._platform || this._platform.isBrowser)) {
              this._originRect = this._getOriginRect();
              this._overlayRect = this._pane.getBoundingClientRect();
              this._viewportRect = this._getNarrowedViewportRect();
              var lastPosition = this._lastPosition || this._preferredPositions[0];

              var originPoint = this._getOriginPoint(this._originRect, lastPosition);

              this._applyPosition(lastPosition, originPoint);
            }
          }
          /**
           * Sets the list of Scrollable containers that host the origin element so that
           * on reposition we can evaluate if it or the overlay has been clipped or outside view. Every
           * Scrollable must be an ancestor element of the strategy's origin element.
           */

        }, {
          key: "withScrollableContainers",
          value: function withScrollableContainers(scrollables) {
            this._scrollables = scrollables;
            return this;
          }
          /**
           * Adds new preferred positions.
           * @param positions List of positions options for this overlay.
           */

        }, {
          key: "withPositions",
          value: function withPositions(positions) {
            this._preferredPositions = positions; // If the last calculated position object isn't part of the positions anymore, clear
            // it in order to avoid it being picked up if the consumer tries to re-apply.

            if (positions.indexOf(this._lastPosition) === -1) {
              this._lastPosition = null;
            }

            this._validatePositions();

            return this;
          }
          /**
           * Sets a minimum distance the overlay may be positioned to the edge of the viewport.
           * @param margin Required margin between the overlay and the viewport edge in pixels.
           */

        }, {
          key: "withViewportMargin",
          value: function withViewportMargin(margin) {
            this._viewportMargin = margin;
            return this;
          }
          /** Sets whether the overlay's width and height can be constrained to fit within the viewport. */

        }, {
          key: "withFlexibleDimensions",
          value: function withFlexibleDimensions() {
            var flexibleDimensions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
            this._hasFlexibleDimensions = flexibleDimensions;
            return this;
          }
          /** Sets whether the overlay can grow after the initial open via flexible width/height. */

        }, {
          key: "withGrowAfterOpen",
          value: function withGrowAfterOpen() {
            var growAfterOpen = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
            this._growAfterOpen = growAfterOpen;
            return this;
          }
          /** Sets whether the overlay can be pushed on-screen if none of the provided positions fit. */

        }, {
          key: "withPush",
          value: function withPush() {
            var canPush = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
            this._canPush = canPush;
            return this;
          }
          /**
           * Sets whether the overlay's position should be locked in after it is positioned
           * initially. When an overlay is locked in, it won't attempt to reposition itself
           * when the position is re-applied (e.g. when the user scrolls away).
           * @param isLocked Whether the overlay should locked in.
           */

        }, {
          key: "withLockedPosition",
          value: function withLockedPosition() {
            var isLocked = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
            this._positionLocked = isLocked;
            return this;
          }
          /**
           * Sets the origin, relative to which to position the overlay.
           * Using an element origin is useful for building components that need to be positioned
           * relatively to a trigger (e.g. dropdown menus or tooltips), whereas using a point can be
           * used for cases like contextual menus which open relative to the user's pointer.
           * @param origin Reference to the new origin.
           */

        }, {
          key: "setOrigin",
          value: function setOrigin(origin) {
            this._origin = origin;
            return this;
          }
          /**
           * Sets the default offset for the overlay's connection point on the x-axis.
           * @param offset New offset in the X axis.
           */

        }, {
          key: "withDefaultOffsetX",
          value: function withDefaultOffsetX(offset) {
            this._offsetX = offset;
            return this;
          }
          /**
           * Sets the default offset for the overlay's connection point on the y-axis.
           * @param offset New offset in the Y axis.
           */

        }, {
          key: "withDefaultOffsetY",
          value: function withDefaultOffsetY(offset) {
            this._offsetY = offset;
            return this;
          }
          /**
           * Configures that the position strategy should set a `transform-origin` on some elements
           * inside the overlay, depending on the current position that is being applied. This is
           * useful for the cases where the origin of an animation can change depending on the
           * alignment of the overlay.
           * @param selector CSS selector that will be used to find the target
           *    elements onto which to set the transform origin.
           */

        }, {
          key: "withTransformOriginOn",
          value: function withTransformOriginOn(selector) {
            this._transformOriginSelector = selector;
            return this;
          }
          /**
           * Gets the (x, y) coordinate of a connection point on the origin based on a relative position.
           */

        }, {
          key: "_getOriginPoint",
          value: function _getOriginPoint(originRect, pos) {
            var x;

            if (pos.originX == 'center') {
              // Note: when centering we should always use the `left`
              // offset, otherwise the position will be wrong in RTL.
              x = originRect.left + originRect.width / 2;
            } else {
              var startX = this._isRtl() ? originRect.right : originRect.left;
              var endX = this._isRtl() ? originRect.left : originRect.right;
              x = pos.originX == 'start' ? startX : endX;
            }

            var y;

            if (pos.originY == 'center') {
              y = originRect.top + originRect.height / 2;
            } else {
              y = pos.originY == 'top' ? originRect.top : originRect.bottom;
            }

            return {
              x: x,
              y: y
            };
          }
          /**
           * Gets the (x, y) coordinate of the top-left corner of the overlay given a given position and
           * origin point to which the overlay should be connected.
           */

        }, {
          key: "_getOverlayPoint",
          value: function _getOverlayPoint(originPoint, overlayRect, pos) {
            // Calculate the (overlayStartX, overlayStartY), the start of the
            // potential overlay position relative to the origin point.
            var overlayStartX;

            if (pos.overlayX == 'center') {
              overlayStartX = -overlayRect.width / 2;
            } else if (pos.overlayX === 'start') {
              overlayStartX = this._isRtl() ? -overlayRect.width : 0;
            } else {
              overlayStartX = this._isRtl() ? 0 : -overlayRect.width;
            }

            var overlayStartY;

            if (pos.overlayY == 'center') {
              overlayStartY = -overlayRect.height / 2;
            } else {
              overlayStartY = pos.overlayY == 'top' ? 0 : -overlayRect.height;
            } // The (x, y) coordinates of the overlay.


            return {
              x: originPoint.x + overlayStartX,
              y: originPoint.y + overlayStartY
            };
          }
          /** Gets how well an overlay at the given point will fit within the viewport. */

        }, {
          key: "_getOverlayFit",
          value: function _getOverlayFit(point, overlay, viewport, position) {
            var x = point.x,
                y = point.y;

            var offsetX = this._getOffset(position, 'x');

            var offsetY = this._getOffset(position, 'y'); // Account for the offsets since they could push the overlay out of the viewport.


            if (offsetX) {
              x += offsetX;
            }

            if (offsetY) {
              y += offsetY;
            } // How much the overlay would overflow at this position, on each side.


            var leftOverflow = 0 - x;
            var rightOverflow = x + overlay.width - viewport.width;
            var topOverflow = 0 - y;
            var bottomOverflow = y + overlay.height - viewport.height; // Visible parts of the element on each axis.

            var visibleWidth = this._subtractOverflows(overlay.width, leftOverflow, rightOverflow);

            var visibleHeight = this._subtractOverflows(overlay.height, topOverflow, bottomOverflow);

            var visibleArea = visibleWidth * visibleHeight;
            return {
              visibleArea: visibleArea,
              isCompletelyWithinViewport: overlay.width * overlay.height === visibleArea,
              fitsInViewportVertically: visibleHeight === overlay.height,
              fitsInViewportHorizontally: visibleWidth == overlay.width
            };
          }
          /**
           * Whether the overlay can fit within the viewport when it may resize either its width or height.
           * @param fit How well the overlay fits in the viewport at some position.
           * @param point The (x, y) coordinates of the overlat at some position.
           * @param viewport The geometry of the viewport.
           */

        }, {
          key: "_canFitWithFlexibleDimensions",
          value: function _canFitWithFlexibleDimensions(fit, point, viewport) {
            if (this._hasFlexibleDimensions) {
              var availableHeight = viewport.bottom - point.y;
              var availableWidth = viewport.right - point.x;
              var minHeight = getPixelValue(this._overlayRef.getConfig().minHeight);
              var minWidth = getPixelValue(this._overlayRef.getConfig().minWidth);
              var verticalFit = fit.fitsInViewportVertically || minHeight != null && minHeight <= availableHeight;
              var horizontalFit = fit.fitsInViewportHorizontally || minWidth != null && minWidth <= availableWidth;
              return verticalFit && horizontalFit;
            }

            return false;
          }
          /**
           * Gets the point at which the overlay can be "pushed" on-screen. If the overlay is larger than
           * the viewport, the top-left corner will be pushed on-screen (with overflow occuring on the
           * right and bottom).
           *
           * @param start Starting point from which the overlay is pushed.
           * @param overlay Dimensions of the overlay.
           * @param scrollPosition Current viewport scroll position.
           * @returns The point at which to position the overlay after pushing. This is effectively a new
           *     originPoint.
           */

        }, {
          key: "_pushOverlayOnScreen",
          value: function _pushOverlayOnScreen(start, overlay, scrollPosition) {
            // If the position is locked and we've pushed the overlay already, reuse the previous push
            // amount, rather than pushing it again. If we were to continue pushing, the element would
            // remain in the viewport, which goes against the expectations when position locking is enabled.
            if (this._previousPushAmount && this._positionLocked) {
              return {
                x: start.x + this._previousPushAmount.x,
                y: start.y + this._previousPushAmount.y
              };
            }

            var viewport = this._viewportRect; // Determine how much the overlay goes outside the viewport on each
            // side, which we'll use to decide which direction to push it.

            var overflowRight = Math.max(start.x + overlay.width - viewport.width, 0);
            var overflowBottom = Math.max(start.y + overlay.height - viewport.height, 0);
            var overflowTop = Math.max(viewport.top - scrollPosition.top - start.y, 0);
            var overflowLeft = Math.max(viewport.left - scrollPosition.left - start.x, 0); // Amount by which to push the overlay in each axis such that it remains on-screen.

            var pushX = 0;
            var pushY = 0; // If the overlay fits completely within the bounds of the viewport, push it from whichever
            // direction is goes off-screen. Otherwise, push the top-left corner such that its in the
            // viewport and allow for the trailing end of the overlay to go out of bounds.

            if (overlay.width <= viewport.width) {
              pushX = overflowLeft || -overflowRight;
            } else {
              pushX = start.x < this._viewportMargin ? viewport.left - scrollPosition.left - start.x : 0;
            }

            if (overlay.height <= viewport.height) {
              pushY = overflowTop || -overflowBottom;
            } else {
              pushY = start.y < this._viewportMargin ? viewport.top - scrollPosition.top - start.y : 0;
            }

            this._previousPushAmount = {
              x: pushX,
              y: pushY
            };
            return {
              x: start.x + pushX,
              y: start.y + pushY
            };
          }
          /**
           * Applies a computed position to the overlay and emits a position change.
           * @param position The position preference
           * @param originPoint The point on the origin element where the overlay is connected.
           */

        }, {
          key: "_applyPosition",
          value: function _applyPosition(position, originPoint) {
            this._setTransformOrigin(position);

            this._setOverlayElementStyles(originPoint, position);

            this._setBoundingBoxStyles(originPoint, position);

            if (position.panelClass) {
              this._addPanelClasses(position.panelClass);
            } // Save the last connected position in case the position needs to be re-calculated.


            this._lastPosition = position; // Notify that the position has been changed along with its change properties.
            // We only emit if we've got any subscriptions, because the scroll visibility
            // calculcations can be somewhat expensive.

            if (this._positionChanges.observers.length) {
              var scrollableViewProperties = this._getScrollVisibility();

              var changeEvent = new ConnectedOverlayPositionChange(position, scrollableViewProperties);

              this._positionChanges.next(changeEvent);
            }

            this._isInitialRender = false;
          }
          /** Sets the transform origin based on the configured selector and the passed-in position.  */

        }, {
          key: "_setTransformOrigin",
          value: function _setTransformOrigin(position) {
            if (!this._transformOriginSelector) {
              return;
            }

            var elements = this._boundingBox.querySelectorAll(this._transformOriginSelector);

            var xOrigin;
            var yOrigin = position.overlayY;

            if (position.overlayX === 'center') {
              xOrigin = 'center';
            } else if (this._isRtl()) {
              xOrigin = position.overlayX === 'start' ? 'right' : 'left';
            } else {
              xOrigin = position.overlayX === 'start' ? 'left' : 'right';
            }

            for (var i = 0; i < elements.length; i++) {
              elements[i].style.transformOrigin = "".concat(xOrigin, " ").concat(yOrigin);
            }
          }
          /**
           * Gets the position and size of the overlay's sizing container.
           *
           * This method does no measuring and applies no styles so that we can cheaply compute the
           * bounds for all positions and choose the best fit based on these results.
           */

        }, {
          key: "_calculateBoundingBoxRect",
          value: function _calculateBoundingBoxRect(origin, position) {
            var viewport = this._viewportRect;

            var isRtl = this._isRtl();

            var height, top, bottom;

            if (position.overlayY === 'top') {
              // Overlay is opening "downward" and thus is bound by the bottom viewport edge.
              top = origin.y;
              height = viewport.height - top + this._viewportMargin;
            } else if (position.overlayY === 'bottom') {
              // Overlay is opening "upward" and thus is bound by the top viewport edge. We need to add
              // the viewport margin back in, because the viewport rect is narrowed down to remove the
              // margin, whereas the `origin` position is calculated based on its `ClientRect`.
              bottom = viewport.height - origin.y + this._viewportMargin * 2;
              height = viewport.height - bottom + this._viewportMargin;
            } else {
              // If neither top nor bottom, it means that the overlay is vertically centered on the
              // origin point. Note that we want the position relative to the viewport, rather than
              // the page, which is why we don't use something like `viewport.bottom - origin.y` and
              // `origin.y - viewport.top`.
              var smallestDistanceToViewportEdge = Math.min(viewport.bottom - origin.y + viewport.top, origin.y);
              var previousHeight = this._lastBoundingBoxSize.height;
              height = smallestDistanceToViewportEdge * 2;
              top = origin.y - smallestDistanceToViewportEdge;

              if (height > previousHeight && !this._isInitialRender && !this._growAfterOpen) {
                top = origin.y - previousHeight / 2;
              }
            } // The overlay is opening 'right-ward' (the content flows to the right).


            var isBoundedByRightViewportEdge = position.overlayX === 'start' && !isRtl || position.overlayX === 'end' && isRtl; // The overlay is opening 'left-ward' (the content flows to the left).

            var isBoundedByLeftViewportEdge = position.overlayX === 'end' && !isRtl || position.overlayX === 'start' && isRtl;
            var width, left, right;

            if (isBoundedByLeftViewportEdge) {
              right = viewport.width - origin.x + this._viewportMargin;
              width = origin.x - this._viewportMargin;
            } else if (isBoundedByRightViewportEdge) {
              left = origin.x;
              width = viewport.right - origin.x;
            } else {
              // If neither start nor end, it means that the overlay is horizontally centered on the
              // origin point. Note that we want the position relative to the viewport, rather than
              // the page, which is why we don't use something like `viewport.right - origin.x` and
              // `origin.x - viewport.left`.
              var _smallestDistanceToViewportEdge = Math.min(viewport.right - origin.x + viewport.left, origin.x);

              var previousWidth = this._lastBoundingBoxSize.width;
              width = _smallestDistanceToViewportEdge * 2;
              left = origin.x - _smallestDistanceToViewportEdge;

              if (width > previousWidth && !this._isInitialRender && !this._growAfterOpen) {
                left = origin.x - previousWidth / 2;
              }
            }

            return {
              top: top,
              left: left,
              bottom: bottom,
              right: right,
              width: width,
              height: height
            };
          }
          /**
           * Sets the position and size of the overlay's sizing wrapper. The wrapper is positioned on the
           * origin's connection point and stetches to the bounds of the viewport.
           *
           * @param origin The point on the origin element where the overlay is connected.
           * @param position The position preference
           */

        }, {
          key: "_setBoundingBoxStyles",
          value: function _setBoundingBoxStyles(origin, position) {
            var boundingBoxRect = this._calculateBoundingBoxRect(origin, position); // It's weird if the overlay *grows* while scrolling, so we take the last size into account
            // when applying a new size.


            if (!this._isInitialRender && !this._growAfterOpen) {
              boundingBoxRect.height = Math.min(boundingBoxRect.height, this._lastBoundingBoxSize.height);
              boundingBoxRect.width = Math.min(boundingBoxRect.width, this._lastBoundingBoxSize.width);
            }

            var styles = {};

            if (this._hasExactPosition()) {
              styles.top = styles.left = '0';
              styles.bottom = styles.right = styles.maxHeight = styles.maxWidth = '';
              styles.width = styles.height = '100%';
            } else {
              var maxHeight = this._overlayRef.getConfig().maxHeight;

              var maxWidth = this._overlayRef.getConfig().maxWidth;

              styles.height = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_5__["coerceCssPixelValue"])(boundingBoxRect.height);
              styles.top = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_5__["coerceCssPixelValue"])(boundingBoxRect.top);
              styles.bottom = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_5__["coerceCssPixelValue"])(boundingBoxRect.bottom);
              styles.width = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_5__["coerceCssPixelValue"])(boundingBoxRect.width);
              styles.left = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_5__["coerceCssPixelValue"])(boundingBoxRect.left);
              styles.right = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_5__["coerceCssPixelValue"])(boundingBoxRect.right); // Push the pane content towards the proper direction.

              if (position.overlayX === 'center') {
                styles.alignItems = 'center';
              } else {
                styles.alignItems = position.overlayX === 'end' ? 'flex-end' : 'flex-start';
              }

              if (position.overlayY === 'center') {
                styles.justifyContent = 'center';
              } else {
                styles.justifyContent = position.overlayY === 'bottom' ? 'flex-end' : 'flex-start';
              }

              if (maxHeight) {
                styles.maxHeight = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_5__["coerceCssPixelValue"])(maxHeight);
              }

              if (maxWidth) {
                styles.maxWidth = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_5__["coerceCssPixelValue"])(maxWidth);
              }
            }

            this._lastBoundingBoxSize = boundingBoxRect;
            extendStyles(this._boundingBox.style, styles);
          }
          /** Resets the styles for the bounding box so that a new positioning can be computed. */

        }, {
          key: "_resetBoundingBoxStyles",
          value: function _resetBoundingBoxStyles() {
            extendStyles(this._boundingBox.style, {
              top: '0',
              left: '0',
              right: '0',
              bottom: '0',
              height: '',
              width: '',
              alignItems: '',
              justifyContent: ''
            });
          }
          /** Resets the styles for the overlay pane so that a new positioning can be computed. */

        }, {
          key: "_resetOverlayElementStyles",
          value: function _resetOverlayElementStyles() {
            extendStyles(this._pane.style, {
              top: '',
              left: '',
              bottom: '',
              right: '',
              position: '',
              transform: ''
            });
          }
          /** Sets positioning styles to the overlay element. */

        }, {
          key: "_setOverlayElementStyles",
          value: function _setOverlayElementStyles(originPoint, position) {
            var styles = {};

            var hasExactPosition = this._hasExactPosition();

            var hasFlexibleDimensions = this._hasFlexibleDimensions;

            var config = this._overlayRef.getConfig();

            if (hasExactPosition) {
              var scrollPosition = this._viewportRuler.getViewportScrollPosition();

              extendStyles(styles, this._getExactOverlayY(position, originPoint, scrollPosition));
              extendStyles(styles, this._getExactOverlayX(position, originPoint, scrollPosition));
            } else {
              styles.position = 'static';
            } // Use a transform to apply the offsets. We do this because the `center` positions rely on
            // being in the normal flex flow and setting a `top` / `left` at all will completely throw
            // off the position. We also can't use margins, because they won't have an effect in some
            // cases where the element doesn't have anything to "push off of". Finally, this works
            // better both with flexible and non-flexible positioning.


            var transformString = '';

            var offsetX = this._getOffset(position, 'x');

            var offsetY = this._getOffset(position, 'y');

            if (offsetX) {
              transformString += "translateX(".concat(offsetX, "px) ");
            }

            if (offsetY) {
              transformString += "translateY(".concat(offsetY, "px)");
            }

            styles.transform = transformString.trim(); // If a maxWidth or maxHeight is specified on the overlay, we remove them. We do this because
            // we need these values to both be set to "100%" for the automatic flexible sizing to work.
            // The maxHeight and maxWidth are set on the boundingBox in order to enforce the constraint.
            // Note that this doesn't apply when we have an exact position, in which case we do want to
            // apply them because they'll be cleared from the bounding box.

            if (config.maxHeight) {
              if (hasExactPosition) {
                styles.maxHeight = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_5__["coerceCssPixelValue"])(config.maxHeight);
              } else if (hasFlexibleDimensions) {
                styles.maxHeight = '';
              }
            }

            if (config.maxWidth) {
              if (hasExactPosition) {
                styles.maxWidth = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_5__["coerceCssPixelValue"])(config.maxWidth);
              } else if (hasFlexibleDimensions) {
                styles.maxWidth = '';
              }
            }

            extendStyles(this._pane.style, styles);
          }
          /** Gets the exact top/bottom for the overlay when not using flexible sizing or when pushing. */

        }, {
          key: "_getExactOverlayY",
          value: function _getExactOverlayY(position, originPoint, scrollPosition) {
            // Reset any existing styles. This is necessary in case the
            // preferred position has changed since the last `apply`.
            var styles = {
              top: '',
              bottom: ''
            };

            var overlayPoint = this._getOverlayPoint(originPoint, this._overlayRect, position);

            if (this._isPushed) {
              overlayPoint = this._pushOverlayOnScreen(overlayPoint, this._overlayRect, scrollPosition);
            }

            var virtualKeyboardOffset = this._overlayContainer.getContainerElement().getBoundingClientRect().top; // Normally this would be zero, however when the overlay is attached to an input (e.g. in an
            // autocomplete), mobile browsers will shift everything in order to put the input in the middle
            // of the screen and to make space for the virtual keyboard. We need to account for this offset,
            // otherwise our positioning will be thrown off.


            overlayPoint.y -= virtualKeyboardOffset; // We want to set either `top` or `bottom` based on whether the overlay wants to appear
            // above or below the origin and the direction in which the element will expand.

            if (position.overlayY === 'bottom') {
              // When using `bottom`, we adjust the y position such that it is the distance
              // from the bottom of the viewport rather than the top.
              var documentHeight = this._document.documentElement.clientHeight;
              styles.bottom = "".concat(documentHeight - (overlayPoint.y + this._overlayRect.height), "px");
            } else {
              styles.top = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_5__["coerceCssPixelValue"])(overlayPoint.y);
            }

            return styles;
          }
          /** Gets the exact left/right for the overlay when not using flexible sizing or when pushing. */

        }, {
          key: "_getExactOverlayX",
          value: function _getExactOverlayX(position, originPoint, scrollPosition) {
            // Reset any existing styles. This is necessary in case the preferred position has
            // changed since the last `apply`.
            var styles = {
              left: '',
              right: ''
            };

            var overlayPoint = this._getOverlayPoint(originPoint, this._overlayRect, position);

            if (this._isPushed) {
              overlayPoint = this._pushOverlayOnScreen(overlayPoint, this._overlayRect, scrollPosition);
            } // We want to set either `left` or `right` based on whether the overlay wants to appear "before"
            // or "after" the origin, which determines the direction in which the element will expand.
            // For the horizontal axis, the meaning of "before" and "after" change based on whether the
            // page is in RTL or LTR.


            var horizontalStyleProperty;

            if (this._isRtl()) {
              horizontalStyleProperty = position.overlayX === 'end' ? 'left' : 'right';
            } else {
              horizontalStyleProperty = position.overlayX === 'end' ? 'right' : 'left';
            } // When we're setting `right`, we adjust the x position such that it is the distance
            // from the right edge of the viewport rather than the left edge.


            if (horizontalStyleProperty === 'right') {
              var documentWidth = this._document.documentElement.clientWidth;
              styles.right = "".concat(documentWidth - (overlayPoint.x + this._overlayRect.width), "px");
            } else {
              styles.left = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_5__["coerceCssPixelValue"])(overlayPoint.x);
            }

            return styles;
          }
          /**
           * Gets the view properties of the trigger and overlay, including whether they are clipped
           * or completely outside the view of any of the strategy's scrollables.
           */

        }, {
          key: "_getScrollVisibility",
          value: function _getScrollVisibility() {
            // Note: needs fresh rects since the position could've changed.
            var originBounds = this._getOriginRect();

            var overlayBounds = this._pane.getBoundingClientRect(); // TODO(jelbourn): instead of needing all of the client rects for these scrolling containers
            // every time, we should be able to use the scrollTop of the containers if the size of those
            // containers hasn't changed.


            var scrollContainerBounds = this._scrollables.map(function (scrollable) {
              return scrollable.getElementRef().nativeElement.getBoundingClientRect();
            });

            return {
              isOriginClipped: isElementClippedByScrolling(originBounds, scrollContainerBounds),
              isOriginOutsideView: isElementScrolledOutsideView(originBounds, scrollContainerBounds),
              isOverlayClipped: isElementClippedByScrolling(overlayBounds, scrollContainerBounds),
              isOverlayOutsideView: isElementScrolledOutsideView(overlayBounds, scrollContainerBounds)
            };
          }
          /** Subtracts the amount that an element is overflowing on an axis from its length. */

        }, {
          key: "_subtractOverflows",
          value: function _subtractOverflows(length) {
            for (var _len5 = arguments.length, overflows = new Array(_len5 > 1 ? _len5 - 1 : 0), _key5 = 1; _key5 < _len5; _key5++) {
              overflows[_key5 - 1] = arguments[_key5];
            }

            return overflows.reduce(function (currentValue, currentOverflow) {
              return currentValue - Math.max(currentOverflow, 0);
            }, length);
          }
          /** Narrows the given viewport rect by the current _viewportMargin. */

        }, {
          key: "_getNarrowedViewportRect",
          value: function _getNarrowedViewportRect() {
            // We recalculate the viewport rect here ourselves, rather than using the ViewportRuler,
            // because we want to use the `clientWidth` and `clientHeight` as the base. The difference
            // being that the client properties don't include the scrollbar, as opposed to `innerWidth`
            // and `innerHeight` that do. This is necessary, because the overlay container uses
            // 100% `width` and `height` which don't include the scrollbar either.
            var width = this._document.documentElement.clientWidth;
            var height = this._document.documentElement.clientHeight;

            var scrollPosition = this._viewportRuler.getViewportScrollPosition();

            return {
              top: scrollPosition.top + this._viewportMargin,
              left: scrollPosition.left + this._viewportMargin,
              right: scrollPosition.left + width - this._viewportMargin,
              bottom: scrollPosition.top + height - this._viewportMargin,
              width: width - 2 * this._viewportMargin,
              height: height - 2 * this._viewportMargin
            };
          }
          /** Whether the we're dealing with an RTL context */

        }, {
          key: "_isRtl",
          value: function _isRtl() {
            return this._overlayRef.getDirection() === 'rtl';
          }
          /** Determines whether the overlay uses exact or flexible positioning. */

        }, {
          key: "_hasExactPosition",
          value: function _hasExactPosition() {
            return !this._hasFlexibleDimensions || this._isPushed;
          }
          /** Retrieves the offset of a position along the x or y axis. */

        }, {
          key: "_getOffset",
          value: function _getOffset(position, axis) {
            if (axis === 'x') {
              // We don't do something like `position['offset' + axis]` in
              // order to avoid breking minifiers that rename properties.
              return position.offsetX == null ? this._offsetX : position.offsetX;
            }

            return position.offsetY == null ? this._offsetY : position.offsetY;
          }
          /** Validates that the current position match the expected values. */

        }, {
          key: "_validatePositions",
          value: function _validatePositions() {
            if (typeof ngDevMode === 'undefined' || ngDevMode) {
              if (!this._preferredPositions.length) {
                throw Error('FlexibleConnectedPositionStrategy: At least one position is required.');
              } // TODO(crisbeto): remove these once Angular's template type
              // checking is advanced enough to catch these cases.


              this._preferredPositions.forEach(function (pair) {
                validateHorizontalPosition('originX', pair.originX);
                validateVerticalPosition('originY', pair.originY);
                validateHorizontalPosition('overlayX', pair.overlayX);
                validateVerticalPosition('overlayY', pair.overlayY);
              });
            }
          }
          /** Adds a single CSS class or an array of classes on the overlay panel. */

        }, {
          key: "_addPanelClasses",
          value: function _addPanelClasses(cssClasses) {
            var _this42 = this;

            if (this._pane) {
              Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_5__["coerceArray"])(cssClasses).forEach(function (cssClass) {
                if (cssClass !== '' && _this42._appliedPanelClasses.indexOf(cssClass) === -1) {
                  _this42._appliedPanelClasses.push(cssClass);

                  _this42._pane.classList.add(cssClass);
                }
              });
            }
          }
          /** Clears the classes that the position strategy has applied from the overlay panel. */

        }, {
          key: "_clearPanelClasses",
          value: function _clearPanelClasses() {
            var _this43 = this;

            if (this._pane) {
              this._appliedPanelClasses.forEach(function (cssClass) {
                _this43._pane.classList.remove(cssClass);
              });

              this._appliedPanelClasses = [];
            }
          }
          /** Returns the ClientRect of the current origin. */

        }, {
          key: "_getOriginRect",
          value: function _getOriginRect() {
            var origin = this._origin;

            if (origin instanceof _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]) {
              return origin.nativeElement.getBoundingClientRect();
            } // Check for Element so SVG elements are also supported.


            if (origin instanceof Element) {
              return origin.getBoundingClientRect();
            }

            var width = origin.width || 0;
            var height = origin.height || 0; // If the origin is a point, return a client rect as if it was a 0x0 element at the point.

            return {
              top: origin.y,
              bottom: origin.y + height,
              left: origin.x,
              right: origin.x + width,
              height: height,
              width: width
            };
          }
        }]);

        return FlexibleConnectedPositionStrategy;
      }();
      /** Shallow-extends a stylesheet object with another stylesheet object. */


      function extendStyles(destination, source) {
        for (var key in source) {
          if (source.hasOwnProperty(key)) {
            destination[key] = source[key];
          }
        }

        return destination;
      }
      /**
       * Extracts the pixel value as a number from a value, if it's a number
       * or a CSS pixel string (e.g. `1337px`). Otherwise returns null.
       */


      function getPixelValue(input) {
        if (typeof input !== 'number' && input != null) {
          var _input$split = input.split(cssUnitPattern),
              _input$split2 = _slicedToArray(_input$split, 2),
              value = _input$split2[0],
              units = _input$split2[1];

          return !units || units === 'px' ? parseFloat(value) : null;
        }

        return input || null;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * A strategy for positioning overlays. Using this strategy, an overlay is given an
       * implicit position relative to some origin element. The relative position is defined in terms of
       * a point on the origin element that is connected to a point on the overlay element. For example,
       * a basic dropdown is connecting the bottom-left corner of the origin to the top-left corner
       * of the overlay.
       * @deprecated Use `FlexibleConnectedPositionStrategy` instead.
       * @breaking-change 8.0.0
       */


      var ConnectedPositionStrategy = /*#__PURE__*/function () {
        function ConnectedPositionStrategy(originPos, overlayPos, connectedTo, viewportRuler, document, platform, overlayContainer) {
          _classCallCheck2(this, ConnectedPositionStrategy);

          /** Ordered list of preferred positions, from most to least desirable. */
          this._preferredPositions = []; // Since the `ConnectedPositionStrategy` is deprecated and we don't want to maintain
          // the extra logic, we create an instance of the positioning strategy that has some
          // defaults that make it behave as the old position strategy and to which we'll
          // proxy all of the API calls.

          this._positionStrategy = new FlexibleConnectedPositionStrategy(connectedTo, viewportRuler, document, platform, overlayContainer).withFlexibleDimensions(false).withPush(false).withViewportMargin(0);
          this.withFallbackPosition(originPos, overlayPos);
          this.onPositionChange = this._positionStrategy.positionChanges;
        }
        /** Ordered list of preferred positions, from most to least desirable. */


        _createClass2(ConnectedPositionStrategy, [{
          key: "positions",
          get: function get() {
            return this._preferredPositions;
          }
          /** Attach this position strategy to an overlay. */

        }, {
          key: "attach",
          value: function attach(overlayRef) {
            this._overlayRef = overlayRef;

            this._positionStrategy.attach(overlayRef);

            if (this._direction) {
              overlayRef.setDirection(this._direction);
              this._direction = null;
            }
          }
          /** Disposes all resources used by the position strategy. */

        }, {
          key: "dispose",
          value: function dispose() {
            this._positionStrategy.dispose();
          }
          /** @docs-private */

        }, {
          key: "detach",
          value: function detach() {
            this._positionStrategy.detach();
          }
          /**
           * Updates the position of the overlay element, using whichever preferred position relative
           * to the origin fits on-screen.
           * @docs-private
           */

        }, {
          key: "apply",
          value: function apply() {
            this._positionStrategy.apply();
          }
          /**
           * Re-positions the overlay element with the trigger in its last calculated position,
           * even if a position higher in the "preferred positions" list would now fit. This
           * allows one to re-align the panel without changing the orientation of the panel.
           */

        }, {
          key: "recalculateLastPosition",
          value: function recalculateLastPosition() {
            this._positionStrategy.reapplyLastPosition();
          }
          /**
           * Sets the list of Scrollable containers that host the origin element so that
           * on reposition we can evaluate if it or the overlay has been clipped or outside view. Every
           * Scrollable must be an ancestor element of the strategy's origin element.
           */

        }, {
          key: "withScrollableContainers",
          value: function withScrollableContainers(scrollables) {
            this._positionStrategy.withScrollableContainers(scrollables);
          }
          /**
           * Adds a new preferred fallback position.
           * @param originPos
           * @param overlayPos
           */

        }, {
          key: "withFallbackPosition",
          value: function withFallbackPosition(originPos, overlayPos, offsetX, offsetY) {
            var position = new ConnectionPositionPair(originPos, overlayPos, offsetX, offsetY);

            this._preferredPositions.push(position);

            this._positionStrategy.withPositions(this._preferredPositions);

            return this;
          }
          /**
           * Sets the layout direction so the overlay's position can be adjusted to match.
           * @param dir New layout direction.
           */

        }, {
          key: "withDirection",
          value: function withDirection(dir) {
            // Since the direction might be declared before the strategy is attached,
            // we save the value in a temporary property and we'll transfer it to the
            // overlay ref on attachment.
            if (this._overlayRef) {
              this._overlayRef.setDirection(dir);
            } else {
              this._direction = dir;
            }

            return this;
          }
          /**
           * Sets an offset for the overlay's connection point on the x-axis
           * @param offset New offset in the X axis.
           */

        }, {
          key: "withOffsetX",
          value: function withOffsetX(offset) {
            this._positionStrategy.withDefaultOffsetX(offset);

            return this;
          }
          /**
           * Sets an offset for the overlay's connection point on the y-axis
           * @param  offset New offset in the Y axis.
           */

        }, {
          key: "withOffsetY",
          value: function withOffsetY(offset) {
            this._positionStrategy.withDefaultOffsetY(offset);

            return this;
          }
          /**
           * Sets whether the overlay's position should be locked in after it is positioned
           * initially. When an overlay is locked in, it won't attempt to reposition itself
           * when the position is re-applied (e.g. when the user scrolls away).
           * @param isLocked Whether the overlay should locked in.
           */

        }, {
          key: "withLockedPosition",
          value: function withLockedPosition(isLocked) {
            this._positionStrategy.withLockedPosition(isLocked);

            return this;
          }
          /**
           * Overwrites the current set of positions with an array of new ones.
           * @param positions Position pairs to be set on the strategy.
           */

        }, {
          key: "withPositions",
          value: function withPositions(positions) {
            this._preferredPositions = positions.slice();

            this._positionStrategy.withPositions(this._preferredPositions);

            return this;
          }
          /**
           * Sets the origin element, relative to which to position the overlay.
           * @param origin Reference to the new origin element.
           */

        }, {
          key: "setOrigin",
          value: function setOrigin(origin) {
            this._positionStrategy.setOrigin(origin);

            return this;
          }
        }]);

        return ConnectedPositionStrategy;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** Class to be added to the overlay pane wrapper. */


      var wrapperClass = 'cdk-global-overlay-wrapper';
      /**
       * A strategy for positioning overlays. Using this strategy, an overlay is given an
       * explicit position relative to the browser's viewport. We use flexbox, instead of
       * transforms, in order to avoid issues with subpixel rendering which can cause the
       * element to become blurry.
       */

      var GlobalPositionStrategy = /*#__PURE__*/function () {
        function GlobalPositionStrategy() {
          _classCallCheck2(this, GlobalPositionStrategy);

          this._cssPosition = 'static';
          this._topOffset = '';
          this._bottomOffset = '';
          this._leftOffset = '';
          this._rightOffset = '';
          this._alignItems = '';
          this._justifyContent = '';
          this._width = '';
          this._height = '';
        }

        _createClass2(GlobalPositionStrategy, [{
          key: "attach",
          value: function attach(overlayRef) {
            var config = overlayRef.getConfig();
            this._overlayRef = overlayRef;

            if (this._width && !config.width) {
              overlayRef.updateSize({
                width: this._width
              });
            }

            if (this._height && !config.height) {
              overlayRef.updateSize({
                height: this._height
              });
            }

            overlayRef.hostElement.classList.add(wrapperClass);
            this._isDisposed = false;
          }
          /**
           * Sets the top position of the overlay. Clears any previously set vertical position.
           * @param value New top offset.
           */

        }, {
          key: "top",
          value: function top() {
            var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
            this._bottomOffset = '';
            this._topOffset = value;
            this._alignItems = 'flex-start';
            return this;
          }
          /**
           * Sets the left position of the overlay. Clears any previously set horizontal position.
           * @param value New left offset.
           */

        }, {
          key: "left",
          value: function left() {
            var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
            this._rightOffset = '';
            this._leftOffset = value;
            this._justifyContent = 'flex-start';
            return this;
          }
          /**
           * Sets the bottom position of the overlay. Clears any previously set vertical position.
           * @param value New bottom offset.
           */

        }, {
          key: "bottom",
          value: function bottom() {
            var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
            this._topOffset = '';
            this._bottomOffset = value;
            this._alignItems = 'flex-end';
            return this;
          }
          /**
           * Sets the right position of the overlay. Clears any previously set horizontal position.
           * @param value New right offset.
           */

        }, {
          key: "right",
          value: function right() {
            var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
            this._leftOffset = '';
            this._rightOffset = value;
            this._justifyContent = 'flex-end';
            return this;
          }
          /**
           * Sets the overlay width and clears any previously set width.
           * @param value New width for the overlay
           * @deprecated Pass the `width` through the `OverlayConfig`.
           * @breaking-change 8.0.0
           */

        }, {
          key: "width",
          value: function width() {
            var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';

            if (this._overlayRef) {
              this._overlayRef.updateSize({
                width: value
              });
            } else {
              this._width = value;
            }

            return this;
          }
          /**
           * Sets the overlay height and clears any previously set height.
           * @param value New height for the overlay
           * @deprecated Pass the `height` through the `OverlayConfig`.
           * @breaking-change 8.0.0
           */

        }, {
          key: "height",
          value: function height() {
            var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';

            if (this._overlayRef) {
              this._overlayRef.updateSize({
                height: value
              });
            } else {
              this._height = value;
            }

            return this;
          }
          /**
           * Centers the overlay horizontally with an optional offset.
           * Clears any previously set horizontal position.
           *
           * @param offset Overlay offset from the horizontal center.
           */

        }, {
          key: "centerHorizontally",
          value: function centerHorizontally() {
            var offset = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
            this.left(offset);
            this._justifyContent = 'center';
            return this;
          }
          /**
           * Centers the overlay vertically with an optional offset.
           * Clears any previously set vertical position.
           *
           * @param offset Overlay offset from the vertical center.
           */

        }, {
          key: "centerVertically",
          value: function centerVertically() {
            var offset = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
            this.top(offset);
            this._alignItems = 'center';
            return this;
          }
          /**
           * Apply the position to the element.
           * @docs-private
           */

        }, {
          key: "apply",
          value: function apply() {
            // Since the overlay ref applies the strategy asynchronously, it could
            // have been disposed before it ends up being applied. If that is the
            // case, we shouldn't do anything.
            if (!this._overlayRef || !this._overlayRef.hasAttached()) {
              return;
            }

            var styles = this._overlayRef.overlayElement.style;
            var parentStyles = this._overlayRef.hostElement.style;

            var config = this._overlayRef.getConfig();

            var width = config.width,
                height = config.height,
                maxWidth = config.maxWidth,
                maxHeight = config.maxHeight;
            var shouldBeFlushHorizontally = (width === '100%' || width === '100vw') && (!maxWidth || maxWidth === '100%' || maxWidth === '100vw');
            var shouldBeFlushVertically = (height === '100%' || height === '100vh') && (!maxHeight || maxHeight === '100%' || maxHeight === '100vh');
            styles.position = this._cssPosition;
            styles.marginLeft = shouldBeFlushHorizontally ? '0' : this._leftOffset;
            styles.marginTop = shouldBeFlushVertically ? '0' : this._topOffset;
            styles.marginBottom = this._bottomOffset;
            styles.marginRight = this._rightOffset;

            if (shouldBeFlushHorizontally) {
              parentStyles.justifyContent = 'flex-start';
            } else if (this._justifyContent === 'center') {
              parentStyles.justifyContent = 'center';
            } else if (this._overlayRef.getConfig().direction === 'rtl') {
              // In RTL the browser will invert `flex-start` and `flex-end` automatically, but we
              // don't want that because our positioning is explicitly `left` and `right`, hence
              // why we do another inversion to ensure that the overlay stays in the same position.
              // TODO: reconsider this if we add `start` and `end` methods.
              if (this._justifyContent === 'flex-start') {
                parentStyles.justifyContent = 'flex-end';
              } else if (this._justifyContent === 'flex-end') {
                parentStyles.justifyContent = 'flex-start';
              }
            } else {
              parentStyles.justifyContent = this._justifyContent;
            }

            parentStyles.alignItems = shouldBeFlushVertically ? 'flex-start' : this._alignItems;
          }
          /**
           * Cleans up the DOM changes from the position strategy.
           * @docs-private
           */

        }, {
          key: "dispose",
          value: function dispose() {
            if (this._isDisposed || !this._overlayRef) {
              return;
            }

            var styles = this._overlayRef.overlayElement.style;
            var parent = this._overlayRef.hostElement;
            var parentStyles = parent.style;
            parent.classList.remove(wrapperClass);
            parentStyles.justifyContent = parentStyles.alignItems = styles.marginTop = styles.marginBottom = styles.marginLeft = styles.marginRight = styles.position = '';
            this._overlayRef = null;
            this._isDisposed = true;
          }
        }]);

        return GlobalPositionStrategy;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** Builder for overlay position strategy. */


      var OverlayPositionBuilder = /*#__PURE__*/function () {
        function OverlayPositionBuilder(_viewportRuler, _document, _platform, _overlayContainer) {
          _classCallCheck2(this, OverlayPositionBuilder);

          this._viewportRuler = _viewportRuler;
          this._document = _document;
          this._platform = _platform;
          this._overlayContainer = _overlayContainer;
        }
        /**
         * Creates a global position strategy.
         */


        _createClass2(OverlayPositionBuilder, [{
          key: "global",
          value: function global() {
            return new GlobalPositionStrategy();
          }
          /**
           * Creates a relative position strategy.
           * @param elementRef
           * @param originPos
           * @param overlayPos
           * @deprecated Use `flexibleConnectedTo` instead.
           * @breaking-change 8.0.0
           */

        }, {
          key: "connectedTo",
          value: function connectedTo(elementRef, originPos, overlayPos) {
            return new ConnectedPositionStrategy(originPos, overlayPos, elementRef, this._viewportRuler, this._document, this._platform, this._overlayContainer);
          }
          /**
           * Creates a flexible position strategy.
           * @param origin Origin relative to which to position the overlay.
           */

        }, {
          key: "flexibleConnectedTo",
          value: function flexibleConnectedTo(origin) {
            return new FlexibleConnectedPositionStrategy(origin, this._viewportRuler, this._document, this._platform, this._overlayContainer);
          }
        }]);

        return OverlayPositionBuilder;
      }();

      OverlayPositionBuilder.ɵfac = function OverlayPositionBuilder_Factory(t) {
        return new (t || OverlayPositionBuilder)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_0__["ViewportRuler"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__["Platform"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](OverlayContainer));
      };

      OverlayPositionBuilder.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"])({
        factory: function OverlayPositionBuilder_Factory() {
          return new OverlayPositionBuilder(Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(_angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_0__["ViewportRuler"]), Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(_angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"]), Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__["Platform"]), Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(OverlayContainer));
        },
        token: OverlayPositionBuilder,
        providedIn: "root"
      });

      OverlayPositionBuilder.ctorParameters = function () {
        return [{
          type: _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_0__["ViewportRuler"]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
            args: [_angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"]]
          }]
        }, {
          type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__["Platform"]
        }, {
          type: OverlayContainer
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](OverlayPositionBuilder, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"],
          args: [{
            providedIn: 'root'
          }]
        }], function () {
          return [{
            type: _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_0__["ViewportRuler"]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
              args: [_angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"]]
            }]
          }, {
            type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__["Platform"]
          }, {
            type: OverlayContainer
          }];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** Next overlay unique ID. */


      var nextUniqueId = 0; // Note that Overlay is *not* scoped to the app root because of the ComponentFactoryResolver
      // which needs to be different depending on where OverlayModule is imported.

      /**
       * Service to create Overlays. Overlays are dynamically added pieces of floating UI, meant to be
       * used as a low-level building block for other components. Dialogs, tooltips, menus,
       * selects, etc. can all be built using overlays. The service should primarily be used by authors
       * of re-usable components rather than developers building end-user applications.
       *
       * An overlay *is* a PortalOutlet, so any kind of Portal can be loaded into one.
       */

      var Overlay = /*#__PURE__*/function () {
        function Overlay(
        /** Scrolling strategies that can be used when creating an overlay. */
        scrollStrategies, _overlayContainer, _componentFactoryResolver, _positionBuilder, _keyboardDispatcher, _injector, _ngZone, _document, _directionality, _location, _outsideClickDispatcher) {
          _classCallCheck2(this, Overlay);

          this.scrollStrategies = scrollStrategies;
          this._overlayContainer = _overlayContainer;
          this._componentFactoryResolver = _componentFactoryResolver;
          this._positionBuilder = _positionBuilder;
          this._keyboardDispatcher = _keyboardDispatcher;
          this._injector = _injector;
          this._ngZone = _ngZone;
          this._document = _document;
          this._directionality = _directionality;
          this._location = _location;
          this._outsideClickDispatcher = _outsideClickDispatcher;
        }
        /**
         * Creates an overlay.
         * @param config Configuration applied to the overlay.
         * @returns Reference to the created overlay.
         */


        _createClass2(Overlay, [{
          key: "create",
          value: function create(config) {
            var host = this._createHostElement();

            var pane = this._createPaneElement(host);

            var portalOutlet = this._createPortalOutlet(pane);

            var overlayConfig = new OverlayConfig(config);
            overlayConfig.direction = overlayConfig.direction || this._directionality.value;
            return new OverlayRef(portalOutlet, host, pane, overlayConfig, this._ngZone, this._keyboardDispatcher, this._document, this._location, this._outsideClickDispatcher);
          }
          /**
           * Gets a position builder that can be used, via fluent API,
           * to construct and configure a position strategy.
           * @returns An overlay position builder.
           */

        }, {
          key: "position",
          value: function position() {
            return this._positionBuilder;
          }
          /**
           * Creates the DOM element for an overlay and appends it to the overlay container.
           * @returns Newly-created pane element
           */

        }, {
          key: "_createPaneElement",
          value: function _createPaneElement(host) {
            var pane = this._document.createElement('div');

            pane.id = "cdk-overlay-".concat(nextUniqueId++);
            pane.classList.add('cdk-overlay-pane');
            host.appendChild(pane);
            return pane;
          }
          /**
           * Creates the host element that wraps around an overlay
           * and can be used for advanced positioning.
           * @returns Newly-create host element.
           */

        }, {
          key: "_createHostElement",
          value: function _createHostElement() {
            var host = this._document.createElement('div');

            this._overlayContainer.getContainerElement().appendChild(host);

            return host;
          }
          /**
           * Create a DomPortalOutlet into which the overlay content can be loaded.
           * @param pane The DOM element to turn into a portal outlet.
           * @returns A portal outlet for the given DOM element.
           */

        }, {
          key: "_createPortalOutlet",
          value: function _createPortalOutlet(pane) {
            // We have to resolve the ApplicationRef later in order to allow people
            // to use overlay-based providers during app initialization.
            if (!this._appRef) {
              this._appRef = this._injector.get(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ApplicationRef"]);
            }

            return new _angular_cdk_portal__WEBPACK_IMPORTED_MODULE_6__["DomPortalOutlet"](pane, this._componentFactoryResolver, this._appRef, this._injector, this._document);
          }
        }]);

        return Overlay;
      }();

      Overlay.ɵfac = function Overlay_Factory(t) {
        return new (t || Overlay)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](ScrollStrategyOptions), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](OverlayContainer), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ComponentFactoryResolver"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](OverlayPositionBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](OverlayKeyboardDispatcher), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injector"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_3__["Directionality"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_4__["Location"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](OverlayOutsideClickDispatcher));
      };

      Overlay.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
        token: Overlay,
        factory: Overlay.ɵfac
      });

      Overlay.ctorParameters = function () {
        return [{
          type: ScrollStrategyOptions
        }, {
          type: OverlayContainer
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ComponentFactoryResolver"]
        }, {
          type: OverlayPositionBuilder
        }, {
          type: OverlayKeyboardDispatcher
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injector"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
            args: [_angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"]]
          }]
        }, {
          type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_3__["Directionality"]
        }, {
          type: _angular_common__WEBPACK_IMPORTED_MODULE_4__["Location"]
        }, {
          type: OverlayOutsideClickDispatcher
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](Overlay, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"]
        }], function () {
          return [{
            type: ScrollStrategyOptions
          }, {
            type: OverlayContainer
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ComponentFactoryResolver"]
          }, {
            type: OverlayPositionBuilder
          }, {
            type: OverlayKeyboardDispatcher
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injector"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
              args: [_angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"]]
            }]
          }, {
            type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_3__["Directionality"]
          }, {
            type: _angular_common__WEBPACK_IMPORTED_MODULE_4__["Location"]
          }, {
            type: OverlayOutsideClickDispatcher
          }];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** Default set of positions for the overlay. Follows the behavior of a dropdown. */


      var defaultPositionList = [{
        originX: 'start',
        originY: 'bottom',
        overlayX: 'start',
        overlayY: 'top'
      }, {
        originX: 'start',
        originY: 'top',
        overlayX: 'start',
        overlayY: 'bottom'
      }, {
        originX: 'end',
        originY: 'top',
        overlayX: 'end',
        overlayY: 'bottom'
      }, {
        originX: 'end',
        originY: 'bottom',
        overlayX: 'end',
        overlayY: 'top'
      }];
      /** Injection token that determines the scroll handling while the connected overlay is open. */

      var CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["InjectionToken"]('cdk-connected-overlay-scroll-strategy');
      /**
       * Directive applied to an element to make it usable as an origin for an Overlay using a
       * ConnectedPositionStrategy.
       */

      var CdkOverlayOrigin = function CdkOverlayOrigin(
      /** Reference to the element on which the directive is applied. */
      elementRef) {
        _classCallCheck2(this, CdkOverlayOrigin);

        this.elementRef = elementRef;
      };

      CdkOverlayOrigin.ɵfac = function CdkOverlayOrigin_Factory(t) {
        return new (t || CdkOverlayOrigin)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]));
      };

      CdkOverlayOrigin.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineDirective"]({
        type: CdkOverlayOrigin,
        selectors: [["", "cdk-overlay-origin", ""], ["", "overlay-origin", ""], ["", "cdkOverlayOrigin", ""]],
        exportAs: ["cdkOverlayOrigin"]
      });

      CdkOverlayOrigin.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](CdkOverlayOrigin, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Directive"],
          args: [{
            selector: '[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]',
            exportAs: 'cdkOverlayOrigin'
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]
          }];
        }, null);
      })();
      /**
       * Directive to facilitate declarative creation of an
       * Overlay using a FlexibleConnectedPositionStrategy.
       */


      var CdkConnectedOverlay = /*#__PURE__*/function () {
        // TODO(jelbourn): inputs for size, scroll behavior, animation, etc.
        function CdkConnectedOverlay(_overlay, templateRef, viewContainerRef, scrollStrategyFactory, _dir) {
          _classCallCheck2(this, CdkConnectedOverlay);

          this._overlay = _overlay;
          this._dir = _dir;
          this._hasBackdrop = false;
          this._lockPosition = false;
          this._growAfterOpen = false;
          this._flexibleDimensions = false;
          this._push = false;
          this._backdropSubscription = rxjs__WEBPACK_IMPORTED_MODULE_7__["Subscription"].EMPTY;
          this._attachSubscription = rxjs__WEBPACK_IMPORTED_MODULE_7__["Subscription"].EMPTY;
          this._detachSubscription = rxjs__WEBPACK_IMPORTED_MODULE_7__["Subscription"].EMPTY;
          this._positionSubscription = rxjs__WEBPACK_IMPORTED_MODULE_7__["Subscription"].EMPTY;
          /** Margin between the overlay and the viewport edges. */

          this.viewportMargin = 0;
          /** Whether the overlay is open. */

          this.open = false;
          /** Whether the overlay can be closed by user interaction. */

          this.disableClose = false;
          /** Event emitted when the backdrop is clicked. */

          this.backdropClick = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
          /** Event emitted when the position has changed. */

          this.positionChange = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
          /** Event emitted when the overlay has been attached. */

          this.attach = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
          /** Event emitted when the overlay has been detached. */

          this.detach = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
          /** Emits when there are keyboard events that are targeted at the overlay. */

          this.overlayKeydown = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
          /** Emits when there are mouse outside click events that are targeted at the overlay. */

          this.overlayOutsideClick = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
          this._templatePortal = new _angular_cdk_portal__WEBPACK_IMPORTED_MODULE_6__["TemplatePortal"](templateRef, viewContainerRef);
          this._scrollStrategyFactory = scrollStrategyFactory;
          this.scrollStrategy = this._scrollStrategyFactory();
        }
        /** The offset in pixels for the overlay connection point on the x-axis */


        _createClass2(CdkConnectedOverlay, [{
          key: "offsetX",
          get: function get() {
            return this._offsetX;
          },
          set: function set(offsetX) {
            this._offsetX = offsetX;

            if (this._position) {
              this._updatePositionStrategy(this._position);
            }
          }
          /** The offset in pixels for the overlay connection point on the y-axis */

        }, {
          key: "offsetY",
          get: function get() {
            return this._offsetY;
          },
          set: function set(offsetY) {
            this._offsetY = offsetY;

            if (this._position) {
              this._updatePositionStrategy(this._position);
            }
          }
          /** Whether or not the overlay should attach a backdrop. */

        }, {
          key: "hasBackdrop",
          get: function get() {
            return this._hasBackdrop;
          },
          set: function set(value) {
            this._hasBackdrop = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_5__["coerceBooleanProperty"])(value);
          }
          /** Whether or not the overlay should be locked when scrolling. */

        }, {
          key: "lockPosition",
          get: function get() {
            return this._lockPosition;
          },
          set: function set(value) {
            this._lockPosition = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_5__["coerceBooleanProperty"])(value);
          }
          /** Whether the overlay's width and height can be constrained to fit within the viewport. */

        }, {
          key: "flexibleDimensions",
          get: function get() {
            return this._flexibleDimensions;
          },
          set: function set(value) {
            this._flexibleDimensions = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_5__["coerceBooleanProperty"])(value);
          }
          /** Whether the overlay can grow after the initial open when flexible positioning is turned on. */

        }, {
          key: "growAfterOpen",
          get: function get() {
            return this._growAfterOpen;
          },
          set: function set(value) {
            this._growAfterOpen = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_5__["coerceBooleanProperty"])(value);
          }
          /** Whether the overlay can be pushed on-screen if none of the provided positions fit. */

        }, {
          key: "push",
          get: function get() {
            return this._push;
          },
          set: function set(value) {
            this._push = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_5__["coerceBooleanProperty"])(value);
          }
          /** The associated overlay reference. */

        }, {
          key: "overlayRef",
          get: function get() {
            return this._overlayRef;
          }
          /** The element's layout direction. */

        }, {
          key: "dir",
          get: function get() {
            return this._dir ? this._dir.value : 'ltr';
          }
        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            this._attachSubscription.unsubscribe();

            this._detachSubscription.unsubscribe();

            this._backdropSubscription.unsubscribe();

            this._positionSubscription.unsubscribe();

            if (this._overlayRef) {
              this._overlayRef.dispose();
            }
          }
        }, {
          key: "ngOnChanges",
          value: function ngOnChanges(changes) {
            if (this._position) {
              this._updatePositionStrategy(this._position);

              this._overlayRef.updateSize({
                width: this.width,
                minWidth: this.minWidth,
                height: this.height,
                minHeight: this.minHeight
              });

              if (changes['origin'] && this.open) {
                this._position.apply();
              }
            }

            if (changes['open']) {
              this.open ? this._attachOverlay() : this._detachOverlay();
            }
          }
          /** Creates an overlay */

        }, {
          key: "_createOverlay",
          value: function _createOverlay() {
            var _this44 = this;

            if (!this.positions || !this.positions.length) {
              this.positions = defaultPositionList;
            }

            var overlayRef = this._overlayRef = this._overlay.create(this._buildConfig());

            this._attachSubscription = overlayRef.attachments().subscribe(function () {
              return _this44.attach.emit();
            });
            this._detachSubscription = overlayRef.detachments().subscribe(function () {
              return _this44.detach.emit();
            });
            overlayRef.keydownEvents().subscribe(function (event) {
              _this44.overlayKeydown.next(event);

              if (event.keyCode === _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_9__["ESCAPE"] && !_this44.disableClose && !Object(_angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_9__["hasModifierKey"])(event)) {
                event.preventDefault();

                _this44._detachOverlay();
              }
            });

            this._overlayRef.outsidePointerEvents().subscribe(function (event) {
              _this44.overlayOutsideClick.next(event);
            });
          }
          /** Builds the overlay config based on the directive's inputs */

        }, {
          key: "_buildConfig",
          value: function _buildConfig() {
            var positionStrategy = this._position = this.positionStrategy || this._createPositionStrategy();

            var overlayConfig = new OverlayConfig({
              direction: this._dir,
              positionStrategy: positionStrategy,
              scrollStrategy: this.scrollStrategy,
              hasBackdrop: this.hasBackdrop
            });

            if (this.width || this.width === 0) {
              overlayConfig.width = this.width;
            }

            if (this.height || this.height === 0) {
              overlayConfig.height = this.height;
            }

            if (this.minWidth || this.minWidth === 0) {
              overlayConfig.minWidth = this.minWidth;
            }

            if (this.minHeight || this.minHeight === 0) {
              overlayConfig.minHeight = this.minHeight;
            }

            if (this.backdropClass) {
              overlayConfig.backdropClass = this.backdropClass;
            }

            if (this.panelClass) {
              overlayConfig.panelClass = this.panelClass;
            }

            return overlayConfig;
          }
          /** Updates the state of a position strategy, based on the values of the directive inputs. */

        }, {
          key: "_updatePositionStrategy",
          value: function _updatePositionStrategy(positionStrategy) {
            var _this45 = this;

            var positions = this.positions.map(function (currentPosition) {
              return {
                originX: currentPosition.originX,
                originY: currentPosition.originY,
                overlayX: currentPosition.overlayX,
                overlayY: currentPosition.overlayY,
                offsetX: currentPosition.offsetX || _this45.offsetX,
                offsetY: currentPosition.offsetY || _this45.offsetY,
                panelClass: currentPosition.panelClass || undefined
              };
            });
            return positionStrategy.setOrigin(this.origin.elementRef).withPositions(positions).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector);
          }
          /** Returns the position strategy of the overlay to be set on the overlay config */

        }, {
          key: "_createPositionStrategy",
          value: function _createPositionStrategy() {
            var strategy = this._overlay.position().flexibleConnectedTo(this.origin.elementRef);

            this._updatePositionStrategy(strategy);

            return strategy;
          }
          /** Attaches the overlay and subscribes to backdrop clicks if backdrop exists */

        }, {
          key: "_attachOverlay",
          value: function _attachOverlay() {
            var _this46 = this;

            if (!this._overlayRef) {
              this._createOverlay();
            } else {
              // Update the overlay size, in case the directive's inputs have changed
              this._overlayRef.getConfig().hasBackdrop = this.hasBackdrop;
            }

            if (!this._overlayRef.hasAttached()) {
              this._overlayRef.attach(this._templatePortal);
            }

            if (this.hasBackdrop) {
              this._backdropSubscription = this._overlayRef.backdropClick().subscribe(function (event) {
                _this46.backdropClick.emit(event);
              });
            } else {
              this._backdropSubscription.unsubscribe();
            }

            this._positionSubscription.unsubscribe(); // Only subscribe to `positionChanges` if requested, because putting
            // together all the information for it can be expensive.


            if (this.positionChange.observers.length > 0) {
              this._positionSubscription = this._position.positionChanges.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_8__["takeWhile"])(function () {
                return _this46.positionChange.observers.length > 0;
              })).subscribe(function (position) {
                _this46.positionChange.emit(position);

                if (_this46.positionChange.observers.length === 0) {
                  _this46._positionSubscription.unsubscribe();
                }
              });
            }
          }
          /** Detaches the overlay and unsubscribes to backdrop clicks if backdrop exists */

        }, {
          key: "_detachOverlay",
          value: function _detachOverlay() {
            if (this._overlayRef) {
              this._overlayRef.detach();
            }

            this._backdropSubscription.unsubscribe();

            this._positionSubscription.unsubscribe();
          }
        }]);

        return CdkConnectedOverlay;
      }();

      CdkConnectedOverlay.ɵfac = function CdkConnectedOverlay_Factory(t) {
        return new (t || CdkConnectedOverlay)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](Overlay), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["TemplateRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewContainerRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_3__["Directionality"], 8));
      };

      CdkConnectedOverlay.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineDirective"]({
        type: CdkConnectedOverlay,
        selectors: [["", "cdk-connected-overlay", ""], ["", "connected-overlay", ""], ["", "cdkConnectedOverlay", ""]],
        inputs: {
          viewportMargin: ["cdkConnectedOverlayViewportMargin", "viewportMargin"],
          open: ["cdkConnectedOverlayOpen", "open"],
          disableClose: ["cdkConnectedOverlayDisableClose", "disableClose"],
          scrollStrategy: ["cdkConnectedOverlayScrollStrategy", "scrollStrategy"],
          offsetX: ["cdkConnectedOverlayOffsetX", "offsetX"],
          offsetY: ["cdkConnectedOverlayOffsetY", "offsetY"],
          hasBackdrop: ["cdkConnectedOverlayHasBackdrop", "hasBackdrop"],
          lockPosition: ["cdkConnectedOverlayLockPosition", "lockPosition"],
          flexibleDimensions: ["cdkConnectedOverlayFlexibleDimensions", "flexibleDimensions"],
          growAfterOpen: ["cdkConnectedOverlayGrowAfterOpen", "growAfterOpen"],
          push: ["cdkConnectedOverlayPush", "push"],
          positions: ["cdkConnectedOverlayPositions", "positions"],
          origin: ["cdkConnectedOverlayOrigin", "origin"],
          positionStrategy: ["cdkConnectedOverlayPositionStrategy", "positionStrategy"],
          width: ["cdkConnectedOverlayWidth", "width"],
          height: ["cdkConnectedOverlayHeight", "height"],
          minWidth: ["cdkConnectedOverlayMinWidth", "minWidth"],
          minHeight: ["cdkConnectedOverlayMinHeight", "minHeight"],
          backdropClass: ["cdkConnectedOverlayBackdropClass", "backdropClass"],
          panelClass: ["cdkConnectedOverlayPanelClass", "panelClass"],
          transformOriginSelector: ["cdkConnectedOverlayTransformOriginOn", "transformOriginSelector"]
        },
        outputs: {
          backdropClick: "backdropClick",
          positionChange: "positionChange",
          attach: "attach",
          detach: "detach",
          overlayKeydown: "overlayKeydown",
          overlayOutsideClick: "overlayOutsideClick"
        },
        exportAs: ["cdkConnectedOverlay"],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵNgOnChangesFeature"]]
      });

      CdkConnectedOverlay.ctorParameters = function () {
        return [{
          type: Overlay
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["TemplateRef"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewContainerRef"]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
            args: [CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY]
          }]
        }, {
          type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_3__["Directionality"],
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
          }]
        }];
      };

      CdkConnectedOverlay.propDecorators = {
        origin: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
          args: ['cdkConnectedOverlayOrigin']
        }],
        positions: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
          args: ['cdkConnectedOverlayPositions']
        }],
        positionStrategy: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
          args: ['cdkConnectedOverlayPositionStrategy']
        }],
        offsetX: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
          args: ['cdkConnectedOverlayOffsetX']
        }],
        offsetY: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
          args: ['cdkConnectedOverlayOffsetY']
        }],
        width: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
          args: ['cdkConnectedOverlayWidth']
        }],
        height: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
          args: ['cdkConnectedOverlayHeight']
        }],
        minWidth: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
          args: ['cdkConnectedOverlayMinWidth']
        }],
        minHeight: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
          args: ['cdkConnectedOverlayMinHeight']
        }],
        backdropClass: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
          args: ['cdkConnectedOverlayBackdropClass']
        }],
        panelClass: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
          args: ['cdkConnectedOverlayPanelClass']
        }],
        viewportMargin: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
          args: ['cdkConnectedOverlayViewportMargin']
        }],
        scrollStrategy: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
          args: ['cdkConnectedOverlayScrollStrategy']
        }],
        open: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
          args: ['cdkConnectedOverlayOpen']
        }],
        disableClose: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
          args: ['cdkConnectedOverlayDisableClose']
        }],
        transformOriginSelector: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
          args: ['cdkConnectedOverlayTransformOriginOn']
        }],
        hasBackdrop: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
          args: ['cdkConnectedOverlayHasBackdrop']
        }],
        lockPosition: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
          args: ['cdkConnectedOverlayLockPosition']
        }],
        flexibleDimensions: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
          args: ['cdkConnectedOverlayFlexibleDimensions']
        }],
        growAfterOpen: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
          args: ['cdkConnectedOverlayGrowAfterOpen']
        }],
        push: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
          args: ['cdkConnectedOverlayPush']
        }],
        backdropClick: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
        }],
        positionChange: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
        }],
        attach: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
        }],
        detach: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
        }],
        overlayKeydown: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
        }],
        overlayOutsideClick: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](CdkConnectedOverlay, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Directive"],
          args: [{
            selector: '[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]',
            exportAs: 'cdkConnectedOverlay'
          }]
        }], function () {
          return [{
            type: Overlay
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["TemplateRef"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewContainerRef"]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
              args: [CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY]
            }]
          }, {
            type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_3__["Directionality"],
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
            }]
          }];
        }, {
          viewportMargin: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
            args: ['cdkConnectedOverlayViewportMargin']
          }],
          open: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
            args: ['cdkConnectedOverlayOpen']
          }],
          disableClose: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
            args: ['cdkConnectedOverlayDisableClose']
          }],
          backdropClick: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
          }],
          positionChange: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
          }],
          attach: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
          }],
          detach: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
          }],
          overlayKeydown: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
          }],
          overlayOutsideClick: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
          }],
          scrollStrategy: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
            args: ['cdkConnectedOverlayScrollStrategy']
          }],
          offsetX: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
            args: ['cdkConnectedOverlayOffsetX']
          }],
          offsetY: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
            args: ['cdkConnectedOverlayOffsetY']
          }],
          hasBackdrop: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
            args: ['cdkConnectedOverlayHasBackdrop']
          }],
          lockPosition: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
            args: ['cdkConnectedOverlayLockPosition']
          }],
          flexibleDimensions: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
            args: ['cdkConnectedOverlayFlexibleDimensions']
          }],
          growAfterOpen: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
            args: ['cdkConnectedOverlayGrowAfterOpen']
          }],
          push: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
            args: ['cdkConnectedOverlayPush']
          }],
          positions: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
            args: ['cdkConnectedOverlayPositions']
          }],
          origin: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
            args: ['cdkConnectedOverlayOrigin']
          }],
          positionStrategy: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
            args: ['cdkConnectedOverlayPositionStrategy']
          }],
          width: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
            args: ['cdkConnectedOverlayWidth']
          }],
          height: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
            args: ['cdkConnectedOverlayHeight']
          }],
          minWidth: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
            args: ['cdkConnectedOverlayMinWidth']
          }],
          minHeight: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
            args: ['cdkConnectedOverlayMinHeight']
          }],
          backdropClass: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
            args: ['cdkConnectedOverlayBackdropClass']
          }],
          panelClass: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
            args: ['cdkConnectedOverlayPanelClass']
          }],
          transformOriginSelector: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
            args: ['cdkConnectedOverlayTransformOriginOn']
          }]
        });
      })();
      /** @docs-private */


      function CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER_FACTORY(overlay) {
        return function () {
          return overlay.scrollStrategies.reposition();
        };
      }
      /** @docs-private */


      var CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER = {
        provide: CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY,
        deps: [Overlay],
        useFactory: CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER_FACTORY
      };
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      var OverlayModule = function OverlayModule() {
        _classCallCheck2(this, OverlayModule);
      };

      OverlayModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineNgModule"]({
        type: OverlayModule
      });
      OverlayModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjector"]({
        factory: function OverlayModule_Factory(t) {
          return new (t || OverlayModule)();
        },
        providers: [Overlay, CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER],
        imports: [[_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_3__["BidiModule"], _angular_cdk_portal__WEBPACK_IMPORTED_MODULE_6__["PortalModule"], _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_0__["ScrollingModule"]], _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_0__["ScrollingModule"]]
      });

      (function () {
        (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsetNgModuleScope"](OverlayModule, {
          declarations: function declarations() {
            return [CdkConnectedOverlay, CdkOverlayOrigin];
          },
          imports: function imports() {
            return [_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_3__["BidiModule"], _angular_cdk_portal__WEBPACK_IMPORTED_MODULE_6__["PortalModule"], _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_0__["ScrollingModule"]];
          },
          exports: function exports() {
            return [CdkConnectedOverlay, CdkOverlayOrigin, _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_0__["ScrollingModule"]];
          }
        });
      })();
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](OverlayModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"],
          args: [{
            imports: [_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_3__["BidiModule"], _angular_cdk_portal__WEBPACK_IMPORTED_MODULE_6__["PortalModule"], _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_0__["ScrollingModule"]],
            exports: [CdkConnectedOverlay, CdkOverlayOrigin, _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_0__["ScrollingModule"]],
            declarations: [CdkConnectedOverlay, CdkOverlayOrigin],
            providers: [Overlay, CDK_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER]
          }]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Alternative to OverlayContainer that supports correct displaying of overlay elements in
       * Fullscreen mode
       * https://developer.mozilla.org/en-US/docs/Web/API/Element/requestFullScreen
       *
       * Should be provided in the root component.
       */


      var FullscreenOverlayContainer = /*#__PURE__*/function (_OverlayContainer) {
        _inherits2(FullscreenOverlayContainer, _OverlayContainer);

        var _super9 = _createSuper2(FullscreenOverlayContainer);

        function FullscreenOverlayContainer(_document, platform) {
          _classCallCheck2(this, FullscreenOverlayContainer);

          return _super9.call(this, _document, platform);
        }

        _createClass2(FullscreenOverlayContainer, [{
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            _get2(_getPrototypeOf2(FullscreenOverlayContainer.prototype), "ngOnDestroy", this).call(this);

            if (this._fullScreenEventName && this._fullScreenListener) {
              this._document.removeEventListener(this._fullScreenEventName, this._fullScreenListener);
            }
          }
        }, {
          key: "_createContainer",
          value: function _createContainer() {
            var _this47 = this;

            _get2(_getPrototypeOf2(FullscreenOverlayContainer.prototype), "_createContainer", this).call(this);

            this._adjustParentForFullscreenChange();

            this._addFullscreenChangeListener(function () {
              return _this47._adjustParentForFullscreenChange();
            });
          }
        }, {
          key: "_adjustParentForFullscreenChange",
          value: function _adjustParentForFullscreenChange() {
            if (!this._containerElement) {
              return;
            }

            var fullscreenElement = this.getFullscreenElement();
            var parent = fullscreenElement || this._document.body;
            parent.appendChild(this._containerElement);
          }
        }, {
          key: "_addFullscreenChangeListener",
          value: function _addFullscreenChangeListener(fn) {
            var eventName = this._getEventName();

            if (eventName) {
              if (this._fullScreenListener) {
                this._document.removeEventListener(eventName, this._fullScreenListener);
              }

              this._document.addEventListener(eventName, fn);

              this._fullScreenListener = fn;
            }
          }
        }, {
          key: "_getEventName",
          value: function _getEventName() {
            if (!this._fullScreenEventName) {
              var _document = this._document;

              if (_document.fullscreenEnabled) {
                this._fullScreenEventName = 'fullscreenchange';
              } else if (_document.webkitFullscreenEnabled) {
                this._fullScreenEventName = 'webkitfullscreenchange';
              } else if (_document.mozFullScreenEnabled) {
                this._fullScreenEventName = 'mozfullscreenchange';
              } else if (_document.msFullscreenEnabled) {
                this._fullScreenEventName = 'MSFullscreenChange';
              }
            }

            return this._fullScreenEventName;
          }
          /**
           * When the page is put into fullscreen mode, a specific element is specified.
           * Only that element and its children are visible when in fullscreen mode.
           */

        }, {
          key: "getFullscreenElement",
          value: function getFullscreenElement() {
            var _document = this._document;
            return _document.fullscreenElement || _document.webkitFullscreenElement || _document.mozFullScreenElement || _document.msFullscreenElement || null;
          }
        }]);

        return FullscreenOverlayContainer;
      }(OverlayContainer);

      FullscreenOverlayContainer.ɵfac = function FullscreenOverlayContainer_Factory(t) {
        return new (t || FullscreenOverlayContainer)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__["Platform"]));
      };

      FullscreenOverlayContainer.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"])({
        factory: function FullscreenOverlayContainer_Factory() {
          return new FullscreenOverlayContainer(Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(_angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"]), Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__["Platform"]));
        },
        token: FullscreenOverlayContainer,
        providedIn: "root"
      });

      FullscreenOverlayContainer.ctorParameters = function () {
        return [{
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
            args: [_angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"]]
          }]
        }, {
          type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__["Platform"]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](FullscreenOverlayContainer, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"],
          args: [{
            providedIn: 'root'
          }]
        }], function () {
          return [{
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
              args: [_angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"]]
            }]
          }, {
            type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__["Platform"]
          }];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Generated bundle index. Do not edit.
       */
      //# sourceMappingURL=overlay.js.map

      /***/

    },

    /***/
    "1PZI": function PZI(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return isYesterday;
      });
      /* harmony import */


      var _isSameDay_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../isSameDay/index.js */
      "G6Tw");
      /* harmony import */


      var _subDays_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../subDays/index.js */
      "Xep9");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name isYesterday
       * @category Day Helpers
       * @summary Is the given date yesterday?
       * @pure false
       *
       * @description
       * Is the given date yesterday?
       *
       * > ⚠️ Please note that this function is not present in the FP submodule as
       * > it uses `Date.now()` internally hence impure and can't be safely curried.
       *
       * ### 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 {Date|Number} date - the date to check
       * @returns {Boolean} the date is yesterday
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // If today is 6 October 2014, is 5 October 14:00:00 yesterday?
       * var result = isYesterday(new Date(2014, 9, 5, 14, 0))
       * //=> true
       */


      function isYesterday(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(1, arguments);
        return Object(_isSameDay_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate, Object(_subDays_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(Date.now(), 1));
      }
      /***/

    },

    /***/
    "1Xc+": function Xc(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatButtonModuleNgFactory", function () {
        return MatButtonModuleNgFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "RenderType_MatButton", function () {
        return RenderType_MatButton;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "View_MatButton_0", function () {
        return View_MatButton_0;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "View_MatButton_Host_0", function () {
        return View_MatButton_Host_0;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatButtonNgFactory", function () {
        return MatButtonNgFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "RenderType_MatAnchor", function () {
        return RenderType_MatAnchor;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "View_MatAnchor_0", function () {
        return View_MatAnchor_0;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "View_MatAnchor_Host_0", function () {
        return View_MatAnchor_Host_0;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatAnchorNgFactory", function () {
        return MatAnchorNgFactory;
      });
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /* harmony import */


      var _angular_material_button__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/material/button */
      "Dxy4");
      /* harmony import */


      var _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! @angular/cdk/bidi */
      "9gLZ");
      /* harmony import */


      var _angular_material_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! @angular/material/core */
      "UhP/");
      /* harmony import */


      var _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! @angular/cdk/a11y */
      "YEUz");
      /* harmony import */


      var _angular_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! @angular/common */
      "SVse");
      /* harmony import */


      var _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
      /*! @angular/cdk/platform */
      "SCoL");
      /* harmony import */


      var _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
      /*! @angular/platform-browser/animations */
      "omvX");
      /**
       * @fileoverview This file was generated by the Angular template compiler. Do not edit.
       *
       * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes,extraRequire}
       * tslint:disable
       */


      var MatButtonModuleNgFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵcmf"](_angular_material_button__WEBPACK_IMPORTED_MODULE_1__["MatButtonModule"], [], function (_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmod"]([_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](512, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵCodegenComponentFactoryResolver"], [[8, []], [3, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"]], _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModuleRef"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_2__["BidiModule"], _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_2__["BidiModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_material_core__WEBPACK_IMPORTED_MODULE_3__["MatCommonModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_3__["MatCommonModule"], [_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_4__["HighContrastModeDetector"], [2, _angular_material_core__WEBPACK_IMPORTED_MODULE_3__["MATERIAL_SANITY_CHECKS"]], _angular_common__WEBPACK_IMPORTED_MODULE_5__["DOCUMENT"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_6__["PlatformModule"], _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_6__["PlatformModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_material_core__WEBPACK_IMPORTED_MODULE_3__["MatRippleModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_3__["MatRippleModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_material_button__WEBPACK_IMPORTED_MODULE_1__["MatButtonModule"], _angular_material_button__WEBPACK_IMPORTED_MODULE_1__["MatButtonModule"], [])]);
      });

      var styles_MatButton = [".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"];

      var RenderType_MatButton = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵcrt"]({
        encapsulation: 2,
        styles: styles_MatButton,
        data: {}
      });

      function View_MatButton_0(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](2, [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵqud"](671088640, 1, {
          ripple: 0
        }), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](1, 0, null, null, 1, "span", [["class", "mat-button-wrapper"]], null, null, null, null, null)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵncd"](null, 0), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](3, 0, null, null, 1, "span", [["class", "mat-button-ripple mat-ripple"], ["matRipple", ""]], [[2, "mat-button-ripple-round", null], [2, "mat-ripple-unbounded", null]], null, null, null, null)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](4, 212992, [[1, 4]], 0, _angular_material_core__WEBPACK_IMPORTED_MODULE_3__["MatRipple"], [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"], _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_6__["Platform"], [2, _angular_material_core__WEBPACK_IMPORTED_MODULE_3__["MAT_RIPPLE_GLOBAL_OPTIONS"]], [2, _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_7__["ANIMATION_MODULE_TYPE"]]], {
          centered: [0, "centered"],
          disabled: [1, "disabled"],
          trigger: [2, "trigger"]
        }, null), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](5, 0, null, null, 0, "span", [["class", "mat-button-focus-overlay"]], null, null, null, null, null))], function (_ck, _v) {
          var _co = _v.component;
          var currVal_2 = _co.isIconButton;

          var currVal_3 = _co._isRippleDisabled();

          var currVal_4 = _co._getHostElement();

          _ck(_v, 4, 0, currVal_2, currVal_3, currVal_4);
        }, function (_ck, _v) {
          var _co = _v.component;
          var currVal_0 = _co.isRoundButton || _co.isIconButton;

          var currVal_1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 4).unbounded;

          _ck(_v, 3, 0, currVal_0, currVal_1);
        });
      }

      function View_MatButton_Host_0(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](0, 0, null, null, 1, "button", [["class", "mat-focus-indicator"], ["mat-button", ""]], [[1, "disabled", 0], [2, "_mat-animation-noopable", null], [2, "mat-button-disabled", null]], null, null, View_MatButton_0, RenderType_MatButton)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](1, 4374528, null, 0, _angular_material_button__WEBPACK_IMPORTED_MODULE_1__["MatButton"], [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"], _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_4__["FocusMonitor"], [2, _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_7__["ANIMATION_MODULE_TYPE"]]], null, null)], null, function (_ck, _v) {
          var currVal_0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1).disabled || null;
          var currVal_1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1)._animationMode === "NoopAnimations";

          var currVal_2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1).disabled;

          _ck(_v, 0, 0, currVal_0, currVal_1, currVal_2);
        });
      }

      var MatButtonNgFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵccf"]("button[mat-button], button[mat-raised-button], button[mat-icon-button],\n             button[mat-fab], button[mat-mini-fab], button[mat-stroked-button],\n             button[mat-flat-button]", _angular_material_button__WEBPACK_IMPORTED_MODULE_1__["MatButton"], View_MatButton_Host_0, {
        disabled: "disabled",
        disableRipple: "disableRipple",
        color: "color"
      }, {}, ["*"]);

      var styles_MatAnchor = [".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"];

      var RenderType_MatAnchor = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵcrt"]({
        encapsulation: 2,
        styles: styles_MatAnchor,
        data: {}
      });

      function View_MatAnchor_0(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](2, [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵqud"](671088640, 1, {
          ripple: 0
        }), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](1, 0, null, null, 1, "span", [["class", "mat-button-wrapper"]], null, null, null, null, null)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵncd"](null, 0), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](3, 0, null, null, 1, "span", [["class", "mat-button-ripple mat-ripple"], ["matRipple", ""]], [[2, "mat-button-ripple-round", null], [2, "mat-ripple-unbounded", null]], null, null, null, null)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](4, 212992, [[1, 4]], 0, _angular_material_core__WEBPACK_IMPORTED_MODULE_3__["MatRipple"], [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"], _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_6__["Platform"], [2, _angular_material_core__WEBPACK_IMPORTED_MODULE_3__["MAT_RIPPLE_GLOBAL_OPTIONS"]], [2, _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_7__["ANIMATION_MODULE_TYPE"]]], {
          centered: [0, "centered"],
          disabled: [1, "disabled"],
          trigger: [2, "trigger"]
        }, null), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](5, 0, null, null, 0, "span", [["class", "mat-button-focus-overlay"]], null, null, null, null, null))], function (_ck, _v) {
          var _co = _v.component;
          var currVal_2 = _co.isIconButton;

          var currVal_3 = _co._isRippleDisabled();

          var currVal_4 = _co._getHostElement();

          _ck(_v, 4, 0, currVal_2, currVal_3, currVal_4);
        }, function (_ck, _v) {
          var _co = _v.component;
          var currVal_0 = _co.isRoundButton || _co.isIconButton;

          var currVal_1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 4).unbounded;

          _ck(_v, 3, 0, currVal_0, currVal_1);
        });
      }

      function View_MatAnchor_Host_0(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](0, 0, null, null, 1, "a", [["class", "mat-focus-indicator"], ["mat-button", ""]], [[1, "tabindex", 0], [1, "disabled", 0], [1, "aria-disabled", 0], [2, "_mat-animation-noopable", null], [2, "mat-button-disabled", null]], [[null, "click"]], function (_v, en, $event) {
          var ad = true;

          if ("click" === en) {
            var pd_0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1)._haltDisabledEvents($event) !== false;
            ad = pd_0 && ad;
          }

          return ad;
        }, View_MatAnchor_0, RenderType_MatAnchor)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](1, 4374528, null, 0, _angular_material_button__WEBPACK_IMPORTED_MODULE_1__["MatAnchor"], [_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_4__["FocusMonitor"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"], [2, _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_7__["ANIMATION_MODULE_TYPE"]]], null, null)], null, function (_ck, _v) {
          var currVal_0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1).disabled ? -1 : _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1).tabIndex || 0;
          var currVal_1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1).disabled || null;

          var currVal_2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1).disabled.toString();

          var currVal_3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1)._animationMode === "NoopAnimations";

          var currVal_4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1).disabled;

          _ck(_v, 0, 0, currVal_0, currVal_1, currVal_2, currVal_3, currVal_4);
        });
      }

      var MatAnchorNgFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵccf"]("a[mat-button], a[mat-raised-button], a[mat-icon-button], a[mat-fab],\n             a[mat-mini-fab], a[mat-stroked-button], a[mat-flat-button]", _angular_material_button__WEBPACK_IMPORTED_MODULE_1__["MatAnchor"], View_MatAnchor_Host_0, {
        disabled: "disabled",
        disableRipple: "disableRipple",
        color: "color",
        tabIndex: "tabIndex"
      }, {}, ["*"]);
      /***/

    },

    /***/
    "1Ykd": function Ykd(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "sampleTime", function () {
        return sampleTime;
      });
      /* harmony import */


      var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Subscriber */
      "7o/Q");
      /* harmony import */


      var _scheduler_async__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../scheduler/async */
      "D0XW");

      function sampleTime(period) {
        var scheduler = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _scheduler_async__WEBPACK_IMPORTED_MODULE_1__["async"];
        return function (source) {
          return source.lift(new SampleTimeOperator(period, scheduler));
        };
      }

      var SampleTimeOperator = /*#__PURE__*/function () {
        function SampleTimeOperator(period, scheduler) {
          _classCallCheck2(this, SampleTimeOperator);

          this.period = period;
          this.scheduler = scheduler;
        }

        _createClass2(SampleTimeOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            return source.subscribe(new SampleTimeSubscriber(subscriber, this.period, this.scheduler));
          }
        }]);

        return SampleTimeOperator;
      }();

      var SampleTimeSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_3) {
        _inherits2(SampleTimeSubscriber, _Subscriber__WEBPACK_3);

        var _super10 = _createSuper2(SampleTimeSubscriber);

        function SampleTimeSubscriber(destination, period, scheduler) {
          var _this48;

          _classCallCheck2(this, SampleTimeSubscriber);

          _this48 = _super10.call(this, destination);
          _this48.period = period;
          _this48.scheduler = scheduler;
          _this48.hasValue = false;

          _this48.add(scheduler.schedule(dispatchNotification, period, {
            subscriber: _assertThisInitialized2(_this48),
            period: period
          }));

          return _this48;
        }

        _createClass2(SampleTimeSubscriber, [{
          key: "_next",
          value: function _next(value) {
            this.lastValue = value;
            this.hasValue = true;
          }
        }, {
          key: "notifyNext",
          value: function notifyNext() {
            if (this.hasValue) {
              this.hasValue = false;
              this.destination.next(this.lastValue);
            }
          }
        }]);

        return SampleTimeSubscriber;
      }(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]);

      function dispatchNotification(state) {
        var subscriber = state.subscriber,
            period = state.period;
        subscriber.notifyNext();
        this.schedule(state, period);
      } //# sourceMappingURL=sampleTime.js.map

      /***/

    },

    /***/
    "1dmy": function dmy(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return startOfISOWeek;
      });
      /* harmony import */


      var _startOfWeek_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../startOfWeek/index.js */
      "aetl");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name startOfISOWeek
       * @category ISO Week Helpers
       * @summary Return the start of an ISO week for the given date.
       *
       * @description
       * Return the start of an ISO week for the given date.
       * The result will be in the local timezone.
       *
       * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
       *
       * ### 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 {Date|Number} date - the original date
       * @returns {Date} the start of an ISO week
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // The start of an ISO week for 2 September 2014 11:55:00:
       * var result = startOfISOWeek(new Date(2014, 8, 2, 11, 55, 0))
       * //=> Mon Sep 01 2014 00:00:00
       */


      function startOfISOWeek(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        return Object(_startOfWeek_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate, {
          weekStartsOn: 1
        });
      }
      /***/

    },

    /***/
    "1izz": function izz(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return formatDistance;
      });

      var formatDistanceLocale = {
        lessThanXSeconds: {
          one: 'less than a second',
          other: 'less than {{count}} seconds'
        },
        xSeconds: {
          one: '1 second',
          other: '{{count}} seconds'
        },
        halfAMinute: 'half a minute',
        lessThanXMinutes: {
          one: 'less than a minute',
          other: 'less than {{count}} minutes'
        },
        xMinutes: {
          one: '1 minute',
          other: '{{count}} minutes'
        },
        aboutXHours: {
          one: 'about 1 hour',
          other: 'about {{count}} hours'
        },
        xHours: {
          one: '1 hour',
          other: '{{count}} hours'
        },
        xDays: {
          one: '1 day',
          other: '{{count}} days'
        },
        aboutXWeeks: {
          one: 'about 1 week',
          other: 'about {{count}} weeks'
        },
        xWeeks: {
          one: '1 week',
          other: '{{count}} weeks'
        },
        aboutXMonths: {
          one: 'about 1 month',
          other: 'about {{count}} months'
        },
        xMonths: {
          one: '1 month',
          other: '{{count}} months'
        },
        aboutXYears: {
          one: 'about 1 year',
          other: 'about {{count}} years'
        },
        xYears: {
          one: '1 year',
          other: '{{count}} years'
        },
        overXYears: {
          one: 'over 1 year',
          other: 'over {{count}} years'
        },
        almostXYears: {
          one: 'almost 1 year',
          other: 'almost {{count}} years'
        }
      };

      function formatDistance(token, count, options) {
        options = options || {};
        var result;

        if (typeof formatDistanceLocale[token] === 'string') {
          result = formatDistanceLocale[token];
        } else if (count === 1) {
          result = formatDistanceLocale[token].one;
        } else {
          result = formatDistanceLocale[token].other.replace('{{count}}', count);
        }

        if (options.addSuffix) {
          if (options.comparison > 0) {
            return 'in ' + result;
          } else {
            return result + ' ago';
          }
        }

        return result;
      }
      /***/

    },

    /***/
    "1ppg": function ppg(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Filipino [fil]
      //! author : Dan Hagman : https://github.com/hagmandan
      //! author : Matthew Co : https://github.com/matthewdeeco
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var fil = moment.defineLocale('fil', {
          months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split('_'),
          monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),
          weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split('_'),
          weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),
          weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'MM/D/YYYY',
            LL: 'MMMM D, YYYY',
            LLL: 'MMMM D, YYYY HH:mm',
            LLLL: 'dddd, MMMM DD, YYYY HH:mm'
          },
          calendar: {
            sameDay: 'LT [ngayong araw]',
            nextDay: '[Bukas ng] LT',
            nextWeek: 'LT [sa susunod na] dddd',
            lastDay: 'LT [kahapon]',
            lastWeek: 'LT [noong nakaraang] dddd',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'sa loob ng %s',
            past: '%s ang nakalipas',
            s: 'ilang segundo',
            ss: '%d segundo',
            m: 'isang minuto',
            mm: '%d minuto',
            h: 'isang oras',
            hh: '%d oras',
            d: 'isang araw',
            dd: '%d araw',
            M: 'isang buwan',
            MM: '%d buwan',
            y: 'isang taon',
            yy: '%d taon'
          },
          dayOfMonthOrdinalParse: /\d{1,2}/,
          ordinal: function ordinal(number) {
            return number;
          },
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return fil;
      });
      /***/

    },

    /***/
    "1rYy": function rYy(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Armenian [hy-am]
      //! author : Armendarabyan : https://github.com/armendarabyan
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var hyAm = moment.defineLocale('hy-am', {
          months: {
            format: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split('_'),
            standalone: 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split('_')
          },
          monthsShort: 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_'),
          weekdays: 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split('_'),
          weekdaysShort: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
          weekdaysMin: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'D MMMM YYYY թ.',
            LLL: 'D MMMM YYYY թ., HH:mm',
            LLLL: 'dddd, D MMMM YYYY թ., HH:mm'
          },
          calendar: {
            sameDay: '[այսօր] LT',
            nextDay: '[վաղը] LT',
            lastDay: '[երեկ] LT',
            nextWeek: function nextWeek() {
              return 'dddd [օրը ժամը] LT';
            },
            lastWeek: function lastWeek() {
              return '[անցած] dddd [օրը ժամը] LT';
            },
            sameElse: 'L'
          },
          relativeTime: {
            future: '%s հետո',
            past: '%s առաջ',
            s: 'մի քանի վայրկյան',
            ss: '%d վայրկյան',
            m: 'րոպե',
            mm: '%d րոպե',
            h: 'ժամ',
            hh: '%d ժամ',
            d: 'օր',
            dd: '%d օր',
            M: 'ամիս',
            MM: '%d ամիս',
            y: 'տարի',
            yy: '%d տարի'
          },
          meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,
          isPM: function isPM(input) {
            return /^(ցերեկվա|երեկոյան)$/.test(input);
          },
          meridiem: function meridiem(hour) {
            if (hour < 4) {
              return 'գիշերվա';
            } else if (hour < 12) {
              return 'առավոտվա';
            } else if (hour < 17) {
              return 'ցերեկվա';
            } else {
              return 'երեկոյան';
            }
          },
          dayOfMonthOrdinalParse: /\d{1,2}|\d{1,2}-(ին|րդ)/,
          ordinal: function ordinal(number, period) {
            switch (period) {
              case 'DDD':
              case 'w':
              case 'W':
              case 'DDDo':
                if (number === 1) {
                  return number + '-ին';
                }

                return number + '-րդ';

              default:
                return number;
            }
          },
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 7 // The week that contains Jan 7th is the first week of the year.

          }
        });
        return hyAm;
      });
      /***/

    },

    /***/
    "1uSB": function uSB(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      var _BoundPropertyMapping;

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "AST", function () {
        return AST;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ASTWithName", function () {
        return ASTWithName;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ASTWithSource", function () {
        return ASTWithSource;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "AbsoluteSourceSpan", function () {
        return AbsoluteSourceSpan;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "AotCompiler", function () {
        return AotCompiler;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "AotSummaryResolver", function () {
        return AotSummaryResolver;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ArrayType", function () {
        return ArrayType;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "AssertNotNull", function () {
        return AssertNotNull;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "AstMemoryEfficientTransformer", function () {
        return AstMemoryEfficientTransformer;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "AstPath", function () {
        return AstPath;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "AstTransformer", function () {
        return AstTransformer$1;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "AttrAst", function () {
        return AttrAst;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Attribute", function () {
        return Attribute;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Binary", function () {
        return Binary;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "BinaryOperator", function () {
        return BinaryOperator;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "BinaryOperatorExpr", function () {
        return BinaryOperatorExpr;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "BindingPipe", function () {
        return BindingPipe;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "BoundDirectivePropertyAst", function () {
        return BoundDirectivePropertyAst;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "BoundElementProperty", function () {
        return BoundElementProperty;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "BoundElementPropertyAst", function () {
        return BoundElementPropertyAst;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "BoundEventAst", function () {
        return BoundEventAst;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "BoundTextAst", function () {
        return BoundTextAst;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "BuiltinMethod", function () {
        return BuiltinMethod;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "BuiltinType", function () {
        return BuiltinType;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "BuiltinTypeName", function () {
        return BuiltinTypeName;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "BuiltinVar", function () {
        return BuiltinVar;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CONTENT_ATTR", function () {
        return CONTENT_ATTR;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CUSTOM_ELEMENTS_SCHEMA", function () {
        return CUSTOM_ELEMENTS_SCHEMA;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CastExpr", function () {
        return CastExpr;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Chain", function () {
        return Chain;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ClassField", function () {
        return ClassField;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ClassMethod", function () {
        return ClassMethod;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ClassStmt", function () {
        return ClassStmt;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CommaExpr", function () {
        return CommaExpr;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Comment", function () {
        return Comment;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CompileDirectiveMetadata", function () {
        return CompileDirectiveMetadata;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CompileMetadataResolver", function () {
        return CompileMetadataResolver;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CompileNgModuleMetadata", function () {
        return CompileNgModuleMetadata;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CompilePipeMetadata", function () {
        return CompilePipeMetadata;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CompileReflector", function () {
        return CompileReflector;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CompileShallowModuleMetadata", function () {
        return CompileShallowModuleMetadata;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CompileStylesheetMetadata", function () {
        return CompileStylesheetMetadata;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CompileSummaryKind", function () {
        return CompileSummaryKind;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CompileTemplateMetadata", function () {
        return CompileTemplateMetadata;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CompiledStylesheet", function () {
        return CompiledStylesheet;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CompilerConfig", function () {
        return CompilerConfig;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Conditional", function () {
        return Conditional;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ConditionalExpr", function () {
        return ConditionalExpr;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ConstantPool", function () {
        return ConstantPool;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CssSelector", function () {
        return CssSelector;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "DEFAULT_INTERPOLATION_CONFIG", function () {
        return DEFAULT_INTERPOLATION_CONFIG;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "DYNAMIC_TYPE", function () {
        return DYNAMIC_TYPE;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "DeclareFunctionStmt", function () {
        return DeclareFunctionStmt;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "DeclareVarStmt", function () {
        return DeclareVarStmt;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "DirectiveAst", function () {
        return DirectiveAst;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "DirectiveNormalizer", function () {
        return DirectiveNormalizer;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "DirectiveResolver", function () {
        return DirectiveResolver;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "DomElementSchemaRegistry", function () {
        return DomElementSchemaRegistry;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "EOF", function () {
        return EOF;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ERROR_COMPONENT_TYPE", function () {
        return ERROR_COMPONENT_TYPE;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Element", function () {
        return Element$1;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ElementAst", function () {
        return ElementAst;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ElementSchemaRegistry", function () {
        return ElementSchemaRegistry;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "EmbeddedTemplateAst", function () {
        return EmbeddedTemplateAst;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "EmitterVisitorContext", function () {
        return EmitterVisitorContext;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "EmptyExpr", function () {
        return EmptyExpr;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Expansion", function () {
        return Expansion;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ExpansionCase", function () {
        return ExpansionCase;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Expression", function () {
        return Expression;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ExpressionBinding", function () {
        return ExpressionBinding;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ExpressionStatement", function () {
        return ExpressionStatement;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ExpressionType", function () {
        return ExpressionType;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ExternalExpr", function () {
        return ExternalExpr;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ExternalReference", function () {
        return ExternalReference;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Extractor", function () {
        return Extractor;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "FunctionCall", function () {
        return FunctionCall;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "FunctionExpr", function () {
        return FunctionExpr;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "GeneratedFile", function () {
        return GeneratedFile;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "HOST_ATTR", function () {
        return HOST_ATTR;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "HtmlParser", function () {
        return HtmlParser;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "HtmlTagDefinition", function () {
        return HtmlTagDefinition;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "I18NHtmlParser", function () {
        return I18NHtmlParser;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Identifiers", function () {
        return Identifiers;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "IfStmt", function () {
        return IfStmt;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ImplicitReceiver", function () {
        return ImplicitReceiver;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "InstantiateExpr", function () {
        return InstantiateExpr;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Interpolation", function () {
        return Interpolation;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "InterpolationConfig", function () {
        return InterpolationConfig;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "InvokeFunctionExpr", function () {
        return InvokeFunctionExpr;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "InvokeMethodExpr", function () {
        return InvokeMethodExpr;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "IvyParser", function () {
        return IvyParser;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "JSDocComment", function () {
        return JSDocComment;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "JitCompiler", function () {
        return JitCompiler;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "JitEvaluator", function () {
        return JitEvaluator;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "JitSummaryResolver", function () {
        return JitSummaryResolver;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "KeyedRead", function () {
        return KeyedRead;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "KeyedWrite", function () {
        return KeyedWrite;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "LeadingComment", function () {
        return LeadingComment;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Lexer", function () {
        return Lexer;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "LiteralArray", function () {
        return LiteralArray;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "LiteralArrayExpr", function () {
        return LiteralArrayExpr;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "LiteralExpr", function () {
        return LiteralExpr;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "LiteralMap", function () {
        return LiteralMap;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "LiteralMapExpr", function () {
        return LiteralMapExpr;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "LiteralPrimitive", function () {
        return LiteralPrimitive;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "LocalizedString", function () {
        return LocalizedString;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MapType", function () {
        return MapType;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MessageBundle", function () {
        return MessageBundle;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MethodCall", function () {
        return MethodCall;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NAMED_ENTITIES", function () {
        return NAMED_ENTITIES;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NGSP_UNICODE", function () {
        return NGSP_UNICODE;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NONE_TYPE", function () {
        return NONE_TYPE;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NO_ERRORS_SCHEMA", function () {
        return NO_ERRORS_SCHEMA;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NgContentAst", function () {
        return NgContentAst;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NgModuleCompiler", function () {
        return NgModuleCompiler;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NgModuleResolver", function () {
        return NgModuleResolver;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NodeWithI18n", function () {
        return NodeWithI18n;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NonNullAssert", function () {
        return NonNullAssert;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NotExpr", function () {
        return NotExpr;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NullTemplateVisitor", function () {
        return NullTemplateVisitor;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ParseError", function () {
        return ParseError;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ParseErrorLevel", function () {
        return ParseErrorLevel;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ParseLocation", function () {
        return ParseLocation;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ParseSourceFile", function () {
        return ParseSourceFile;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ParseSourceSpan", function () {
        return ParseSourceSpan;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ParseSpan", function () {
        return ParseSpan;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ParseTreeResult", function () {
        return ParseTreeResult;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ParsedEvent", function () {
        return ParsedEvent;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ParsedProperty", function () {
        return ParsedProperty;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ParsedPropertyType", function () {
        return ParsedPropertyType;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ParsedVariable", function () {
        return ParsedVariable;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Parser", function () {
        return Parser$1;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ParserError", function () {
        return ParserError;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "PipeResolver", function () {
        return PipeResolver;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "PrefixNot", function () {
        return PrefixNot;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "PropertyRead", function () {
        return PropertyRead;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "PropertyWrite", function () {
        return PropertyWrite;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ProviderAst", function () {
        return ProviderAst;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ProviderAstType", function () {
        return ProviderAstType;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ProviderMeta", function () {
        return ProviderMeta;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Quote", function () {
        return Quote;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "R3BoundTarget", function () {
        return R3BoundTarget;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "R3FactoryTarget", function () {
        return R3FactoryTarget;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "R3Identifiers", function () {
        return Identifiers$1;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "R3ResolvedDependencyType", function () {
        return R3ResolvedDependencyType;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "R3TargetBinder", function () {
        return R3TargetBinder;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ReadKeyExpr", function () {
        return ReadKeyExpr;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ReadPropExpr", function () {
        return ReadPropExpr;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ReadVarExpr", function () {
        return ReadVarExpr;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "RecursiveAstVisitor", function () {
        return RecursiveAstVisitor$1;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "RecursiveTemplateAstVisitor", function () {
        return RecursiveTemplateAstVisitor;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "RecursiveVisitor", function () {
        return RecursiveVisitor$1;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ReferenceAst", function () {
        return ReferenceAst;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ResolvedStaticSymbol", function () {
        return ResolvedStaticSymbol;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ResourceLoader", function () {
        return ResourceLoader;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ReturnStatement", function () {
        return ReturnStatement;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "STRING_TYPE", function () {
        return STRING_TYPE;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "SafeMethodCall", function () {
        return SafeMethodCall;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "SafePropertyRead", function () {
        return SafePropertyRead;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "SelectorContext", function () {
        return SelectorContext;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "SelectorListContext", function () {
        return SelectorListContext;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "SelectorMatcher", function () {
        return SelectorMatcher;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Serializer", function () {
        return Serializer;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "SplitInterpolation", function () {
        return SplitInterpolation;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Statement", function () {
        return Statement;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "StaticReflector", function () {
        return StaticReflector;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "StaticSymbol", function () {
        return StaticSymbol;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "StaticSymbolCache", function () {
        return StaticSymbolCache;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "StaticSymbolResolver", function () {
        return StaticSymbolResolver;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "StmtModifier", function () {
        return StmtModifier;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "StyleCompiler", function () {
        return StyleCompiler;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "StylesCompileDependency", function () {
        return StylesCompileDependency;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "SummaryResolver", function () {
        return SummaryResolver;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TagContentType", function () {
        return TagContentType;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TemplateBindingParseResult", function () {
        return TemplateBindingParseResult;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TemplateParseError", function () {
        return TemplateParseError;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TemplateParseResult", function () {
        return TemplateParseResult;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TemplateParser", function () {
        return TemplateParser;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Text", function () {
        return Text$3;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TextAst", function () {
        return TextAst;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ThisReceiver", function () {
        return ThisReceiver;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ThrowStmt", function () {
        return ThrowStmt;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TmplAstBoundAttribute", function () {
        return BoundAttribute;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TmplAstBoundEvent", function () {
        return BoundEvent;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TmplAstBoundText", function () {
        return BoundText;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TmplAstContent", function () {
        return Content;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TmplAstElement", function () {
        return Element;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TmplAstIcu", function () {
        return Icu;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TmplAstRecursiveVisitor", function () {
        return RecursiveVisitor;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TmplAstReference", function () {
        return Reference;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TmplAstTemplate", function () {
        return Template;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TmplAstText", function () {
        return Text;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TmplAstTextAttribute", function () {
        return TextAttribute;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TmplAstVariable", function () {
        return Variable;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Token", function () {
        return Token$1;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TokenType", function () {
        return TokenType$1;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TransitiveCompileNgModuleMetadata", function () {
        return TransitiveCompileNgModuleMetadata;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TreeError", function () {
        return TreeError;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TryCatchStmt", function () {
        return TryCatchStmt;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Type", function () {
        return Type$1;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TypeScriptEmitter", function () {
        return TypeScriptEmitter;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TypeofExpr", function () {
        return TypeofExpr;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Unary", function () {
        return Unary;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "UnaryOperator", function () {
        return UnaryOperator;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "UnaryOperatorExpr", function () {
        return UnaryOperatorExpr;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "UrlResolver", function () {
        return UrlResolver;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "VERSION", function () {
        return VERSION$1;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "VariableAst", function () {
        return VariableAst;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "VariableBinding", function () {
        return VariableBinding;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Version", function () {
        return Version;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ViewCompiler", function () {
        return ViewCompiler;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "WrappedNodeExpr", function () {
        return WrappedNodeExpr;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "WriteKeyExpr", function () {
        return WriteKeyExpr;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "WritePropExpr", function () {
        return WritePropExpr;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "WriteVarExpr", function () {
        return WriteVarExpr;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Xliff", function () {
        return Xliff;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Xliff2", function () {
        return Xliff2;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Xmb", function () {
        return Xmb;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "XmlParser", function () {
        return XmlParser;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Xtb", function () {
        return Xtb;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "_ParseAST", function () {
        return _ParseAST;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "analyzeAndValidateNgModules", function () {
        return analyzeAndValidateNgModules;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "analyzeFile", function () {
        return analyzeFile;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "analyzeFileForInjectables", function () {
        return analyzeFileForInjectables;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "analyzeNgModules", function () {
        return analyzeNgModules;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "collectExternalReferences", function () {
        return collectExternalReferences;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "compileComponentFromMetadata", function () {
        return compileComponentFromMetadata;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "compileDirectiveFromMetadata", function () {
        return compileDirectiveFromMetadata;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "compileFactoryFunction", function () {
        return compileFactoryFunction;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "compileInjectable", function () {
        return _compileInjectable;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "compileInjector", function () {
        return _compileInjector;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "compileNgModule", function () {
        return _compileNgModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "compilePipeFromMetadata", function () {
        return compilePipeFromMetadata;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "componentFactoryName", function () {
        return componentFactoryName;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "computeMsgId", function () {
        return computeMsgId;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "core", function () {
        return core;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "createAotCompiler", function () {
        return createAotCompiler;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "createAotUrlResolver", function () {
        return createAotUrlResolver;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "createElementCssSelector", function () {
        return createElementCssSelector;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "createLoweredSymbol", function () {
        return createLoweredSymbol;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "createOfflineCompileUrlResolver", function () {
        return createOfflineCompileUrlResolver;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "createUrlResolverWithoutPackagePrefix", function () {
        return createUrlResolverWithoutPackagePrefix;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "debugOutputAstAsTypeScript", function () {
        return debugOutputAstAsTypeScript;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "findNode", function () {
        return findNode;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "flatten", function () {
        return flatten;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "formattedError", function () {
        return formattedError;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "getHtmlTagDefinition", function () {
        return getHtmlTagDefinition;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "getNsPrefix", function () {
        return getNsPrefix;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "getParseErrors", function () {
        return getParseErrors;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "getUrlScheme", function () {
        return getUrlScheme;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "hostViewClassName", function () {
        return hostViewClassName;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "identifierModuleUrl", function () {
        return identifierModuleUrl;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "identifierName", function () {
        return identifierName;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "isEmptyExpression", function () {
        return isEmptyExpression;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "isFormattedError", function () {
        return isFormattedError;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "isIdentifier", function () {
        return isIdentifier;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "isLoweredSymbol", function () {
        return isLoweredSymbol;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "isNgContainer", function () {
        return isNgContainer;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "isNgContent", function () {
        return isNgContent;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "isNgTemplate", function () {
        return isNgTemplate;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "isQuote", function () {
        return isQuote;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "isSyntaxError", function () {
        return isSyntaxError;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "jsDocComment", function () {
        return jsDocComment;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "leadingComment", function () {
        return leadingComment;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "literalMap", function () {
        return literalMap;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "makeBindingParser", function () {
        return makeBindingParser;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "mergeAnalyzedFiles", function () {
        return mergeAnalyzedFiles;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "mergeNsAndName", function () {
        return mergeNsAndName;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ngModuleJitUrl", function () {
        return ngModuleJitUrl;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "parseHostBindings", function () {
        return parseHostBindings;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "parseTemplate", function () {
        return parseTemplate;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "preserveWhitespacesDefault", function () {
        return preserveWhitespacesDefault;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "publishFacade", function () {
        return publishFacade;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "r3JitTypeSourceSpan", function () {
        return r3JitTypeSourceSpan;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "removeSummaryDuplicates", function () {
        return removeSummaryDuplicates;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "rendererTypeName", function () {
        return rendererTypeName;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "sanitizeIdentifier", function () {
        return sanitizeIdentifier;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "sharedStylesheetJitUrl", function () {
        return sharedStylesheetJitUrl;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "splitClasses", function () {
        return splitClasses;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "splitNsName", function () {
        return splitNsName;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "syntaxError", function () {
        return syntaxError;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "templateJitUrl", function () {
        return templateJitUrl;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "templateSourceUrl", function () {
        return templateSourceUrl;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "templateVisitAll", function () {
        return templateVisitAll;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "toTypeScript", function () {
        return toTypeScript;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "tokenName", function () {
        return tokenName;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "tokenReference", function () {
        return tokenReference;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "typeSourceSpan", function () {
        return typeSourceSpan;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "unescapeIdentifier", function () {
        return unescapeIdentifier;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "unwrapResolvedMetadata", function () {
        return unwrapResolvedMetadata;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "verifyHostBindings", function () {
        return verifyHostBindings;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "viewClassName", function () {
        return viewClassName;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "visitAll", function () {
        return visitAll$1;
      });
      /**
       * @license Angular v11.0.0
       * (c) 2010-2020 Google LLC. https://angular.io/
       * License: MIT
       */

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var TagContentType;

      (function (TagContentType) {
        TagContentType[TagContentType["RAW_TEXT"] = 0] = "RAW_TEXT";
        TagContentType[TagContentType["ESCAPABLE_RAW_TEXT"] = 1] = "ESCAPABLE_RAW_TEXT";
        TagContentType[TagContentType["PARSABLE_DATA"] = 2] = "PARSABLE_DATA";
      })(TagContentType || (TagContentType = {}));

      function splitNsName(elementName) {
        if (elementName[0] != ':') {
          return [null, elementName];
        }

        var colonIndex = elementName.indexOf(':', 1);

        if (colonIndex == -1) {
          throw new Error("Unsupported format \"".concat(elementName, "\" expecting \":namespace:name\""));
        }

        return [elementName.slice(1, colonIndex), elementName.slice(colonIndex + 1)];
      } // `<ng-container>` tags work the same regardless the namespace


      function isNgContainer(tagName) {
        return splitNsName(tagName)[1] === 'ng-container';
      } // `<ng-content>` tags work the same regardless the namespace


      function isNgContent(tagName) {
        return splitNsName(tagName)[1] === 'ng-content';
      } // `<ng-template>` tags work the same regardless the namespace


      function isNgTemplate(tagName) {
        return splitNsName(tagName)[1] === 'ng-template';
      }

      function getNsPrefix(fullName) {
        return fullName === null ? null : splitNsName(fullName)[0];
      }

      function mergeNsAndName(prefix, localName) {
        return prefix ? ":".concat(prefix, ":").concat(localName) : localName;
      } // see http://www.w3.org/TR/html51/syntax.html#named-character-references
      // see https://html.spec.whatwg.org/multipage/entities.json
      // This list is not exhaustive to keep the compiler footprint low.
      // The `&#123;` / `&#x1ab;` syntax should be used when the named character reference does not
      // exist.


      var NAMED_ENTITIES = {
        'Aacute': "\xC1",
        'aacute': "\xE1",
        'Acirc': "\xC2",
        'acirc': "\xE2",
        'acute': "\xB4",
        'AElig': "\xC6",
        'aelig': "\xE6",
        'Agrave': "\xC0",
        'agrave': "\xE0",
        'alefsym': "\u2135",
        'Alpha': "\u0391",
        'alpha': "\u03B1",
        'amp': '&',
        'and': "\u2227",
        'ang': "\u2220",
        'apos': "'",
        'Aring': "\xC5",
        'aring': "\xE5",
        'asymp': "\u2248",
        'Atilde': "\xC3",
        'atilde': "\xE3",
        'Auml': "\xC4",
        'auml': "\xE4",
        'bdquo': "\u201E",
        'Beta': "\u0392",
        'beta': "\u03B2",
        'brvbar': "\xA6",
        'bull': "\u2022",
        'cap': "\u2229",
        'Ccedil': "\xC7",
        'ccedil': "\xE7",
        'cedil': "\xB8",
        'cent': "\xA2",
        'Chi': "\u03A7",
        'chi': "\u03C7",
        'circ': "\u02C6",
        'clubs': "\u2663",
        'cong': "\u2245",
        'copy': "\xA9",
        'crarr': "\u21B5",
        'cup': "\u222A",
        'curren': "\xA4",
        'dagger': "\u2020",
        'Dagger': "\u2021",
        'darr': "\u2193",
        'dArr': "\u21D3",
        'deg': "\xB0",
        'Delta': "\u0394",
        'delta': "\u03B4",
        'diams': "\u2666",
        'divide': "\xF7",
        'Eacute': "\xC9",
        'eacute': "\xE9",
        'Ecirc': "\xCA",
        'ecirc': "\xEA",
        'Egrave': "\xC8",
        'egrave': "\xE8",
        'empty': "\u2205",
        'emsp': "\u2003",
        'ensp': "\u2002",
        'Epsilon': "\u0395",
        'epsilon': "\u03B5",
        'equiv': "\u2261",
        'Eta': "\u0397",
        'eta': "\u03B7",
        'ETH': "\xD0",
        'eth': "\xF0",
        'Euml': "\xCB",
        'euml': "\xEB",
        'euro': "\u20AC",
        'exist': "\u2203",
        'fnof': "\u0192",
        'forall': "\u2200",
        'frac12': "\xBD",
        'frac14': "\xBC",
        'frac34': "\xBE",
        'frasl': "\u2044",
        'Gamma': "\u0393",
        'gamma': "\u03B3",
        'ge': "\u2265",
        'gt': '>',
        'harr': "\u2194",
        'hArr': "\u21D4",
        'hearts': "\u2665",
        'hellip': "\u2026",
        'Iacute': "\xCD",
        'iacute': "\xED",
        'Icirc': "\xCE",
        'icirc': "\xEE",
        'iexcl': "\xA1",
        'Igrave': "\xCC",
        'igrave': "\xEC",
        'image': "\u2111",
        'infin': "\u221E",
        'int': "\u222B",
        'Iota': "\u0399",
        'iota': "\u03B9",
        'iquest': "\xBF",
        'isin': "\u2208",
        'Iuml': "\xCF",
        'iuml': "\xEF",
        'Kappa': "\u039A",
        'kappa': "\u03BA",
        'Lambda': "\u039B",
        'lambda': "\u03BB",
        'lang': "\u27E8",
        'laquo': "\xAB",
        'larr': "\u2190",
        'lArr': "\u21D0",
        'lceil': "\u2308",
        'ldquo': "\u201C",
        'le': "\u2264",
        'lfloor': "\u230A",
        'lowast': "\u2217",
        'loz': "\u25CA",
        'lrm': "\u200E",
        'lsaquo': "\u2039",
        'lsquo': "\u2018",
        'lt': '<',
        'macr': "\xAF",
        'mdash': "\u2014",
        'micro': "\xB5",
        'middot': "\xB7",
        'minus': "\u2212",
        'Mu': "\u039C",
        'mu': "\u03BC",
        'nabla': "\u2207",
        'nbsp': "\xA0",
        'ndash': "\u2013",
        'ne': "\u2260",
        'ni': "\u220B",
        'not': "\xAC",
        'notin': "\u2209",
        'nsub': "\u2284",
        'Ntilde': "\xD1",
        'ntilde': "\xF1",
        'Nu': "\u039D",
        'nu': "\u03BD",
        'Oacute': "\xD3",
        'oacute': "\xF3",
        'Ocirc': "\xD4",
        'ocirc': "\xF4",
        'OElig': "\u0152",
        'oelig': "\u0153",
        'Ograve': "\xD2",
        'ograve': "\xF2",
        'oline': "\u203E",
        'Omega': "\u03A9",
        'omega': "\u03C9",
        'Omicron': "\u039F",
        'omicron': "\u03BF",
        'oplus': "\u2295",
        'or': "\u2228",
        'ordf': "\xAA",
        'ordm': "\xBA",
        'Oslash': "\xD8",
        'oslash': "\xF8",
        'Otilde': "\xD5",
        'otilde': "\xF5",
        'otimes': "\u2297",
        'Ouml': "\xD6",
        'ouml': "\xF6",
        'para': "\xB6",
        'permil': "\u2030",
        'perp': "\u22A5",
        'Phi': "\u03A6",
        'phi': "\u03C6",
        'Pi': "\u03A0",
        'pi': "\u03C0",
        'piv': "\u03D6",
        'plusmn': "\xB1",
        'pound': "\xA3",
        'prime': "\u2032",
        'Prime': "\u2033",
        'prod': "\u220F",
        'prop': "\u221D",
        'Psi': "\u03A8",
        'psi': "\u03C8",
        'quot': "\"",
        'radic': "\u221A",
        'rang': "\u27E9",
        'raquo': "\xBB",
        'rarr': "\u2192",
        'rArr': "\u21D2",
        'rceil': "\u2309",
        'rdquo': "\u201D",
        'real': "\u211C",
        'reg': "\xAE",
        'rfloor': "\u230B",
        'Rho': "\u03A1",
        'rho': "\u03C1",
        'rlm': "\u200F",
        'rsaquo': "\u203A",
        'rsquo': "\u2019",
        'sbquo': "\u201A",
        'Scaron': "\u0160",
        'scaron': "\u0161",
        'sdot': "\u22C5",
        'sect': "\xA7",
        'shy': "\xAD",
        'Sigma': "\u03A3",
        'sigma': "\u03C3",
        'sigmaf': "\u03C2",
        'sim': "\u223C",
        'spades': "\u2660",
        'sub': "\u2282",
        'sube': "\u2286",
        'sum': "\u2211",
        'sup': "\u2283",
        'sup1': "\xB9",
        'sup2': "\xB2",
        'sup3': "\xB3",
        'supe': "\u2287",
        'szlig': "\xDF",
        'Tau': "\u03A4",
        'tau': "\u03C4",
        'there4': "\u2234",
        'Theta': "\u0398",
        'theta': "\u03B8",
        'thetasym': "\u03D1",
        'thinsp': "\u2009",
        'THORN': "\xDE",
        'thorn': "\xFE",
        'tilde': "\u02DC",
        'times': "\xD7",
        'trade': "\u2122",
        'Uacute': "\xDA",
        'uacute': "\xFA",
        'uarr': "\u2191",
        'uArr': "\u21D1",
        'Ucirc': "\xDB",
        'ucirc': "\xFB",
        'Ugrave': "\xD9",
        'ugrave': "\xF9",
        'uml': "\xA8",
        'upsih': "\u03D2",
        'Upsilon': "\u03A5",
        'upsilon': "\u03C5",
        'Uuml': "\xDC",
        'uuml': "\xFC",
        'weierp': "\u2118",
        'Xi': "\u039E",
        'xi': "\u03BE",
        'Yacute': "\xDD",
        'yacute': "\xFD",
        'yen': "\xA5",
        'yuml': "\xFF",
        'Yuml': "\u0178",
        'Zeta': "\u0396",
        'zeta': "\u03B6",
        'zwj': "\u200D",
        'zwnj': "\u200C"
      }; // The &ngsp; pseudo-entity is denoting a space. see:
      // https://github.com/dart-lang/angular/blob/0bb611387d29d65b5af7f9d2515ab571fd3fbee4/_tests/test/compiler/preserve_whitespace_test.dart

      var NGSP_UNICODE = "\uE500";
      NAMED_ENTITIES['ngsp'] = NGSP_UNICODE;
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      var HtmlTagDefinition = /*#__PURE__*/function () {
        function HtmlTagDefinition() {
          var _this49 = this;

          var _ref3 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
              closedByChildren = _ref3.closedByChildren,
              implicitNamespacePrefix = _ref3.implicitNamespacePrefix,
              _ref3$contentType = _ref3.contentType,
              contentType = _ref3$contentType === void 0 ? TagContentType.PARSABLE_DATA : _ref3$contentType,
              _ref3$closedByParent = _ref3.closedByParent,
              closedByParent = _ref3$closedByParent === void 0 ? false : _ref3$closedByParent,
              _ref3$isVoid = _ref3.isVoid,
              isVoid = _ref3$isVoid === void 0 ? false : _ref3$isVoid,
              _ref3$ignoreFirstLf = _ref3.ignoreFirstLf,
              ignoreFirstLf = _ref3$ignoreFirstLf === void 0 ? false : _ref3$ignoreFirstLf,
              _ref3$preventNamespac = _ref3.preventNamespaceInheritance,
              preventNamespaceInheritance = _ref3$preventNamespac === void 0 ? false : _ref3$preventNamespac;

          _classCallCheck2(this, HtmlTagDefinition);

          this.closedByChildren = {};
          this.closedByParent = false;
          this.canSelfClose = false;

          if (closedByChildren && closedByChildren.length > 0) {
            closedByChildren.forEach(function (tagName) {
              return _this49.closedByChildren[tagName] = true;
            });
          }

          this.isVoid = isVoid;
          this.closedByParent = closedByParent || isVoid;
          this.implicitNamespacePrefix = implicitNamespacePrefix || null;
          this.contentType = contentType;
          this.ignoreFirstLf = ignoreFirstLf;
          this.preventNamespaceInheritance = preventNamespaceInheritance;
        }

        _createClass2(HtmlTagDefinition, [{
          key: "isClosedByChild",
          value: function isClosedByChild(name) {
            return this.isVoid || name.toLowerCase() in this.closedByChildren;
          }
        }]);

        return HtmlTagDefinition;
      }();

      var _DEFAULT_TAG_DEFINITION; // see http://www.w3.org/TR/html51/syntax.html#optional-tags
      // This implementation does not fully conform to the HTML5 spec.


      var TAG_DEFINITIONS;

      function getHtmlTagDefinition(tagName) {
        var _a, _b;

        if (!TAG_DEFINITIONS) {
          _DEFAULT_TAG_DEFINITION = new HtmlTagDefinition();
          TAG_DEFINITIONS = {
            'base': new HtmlTagDefinition({
              isVoid: true
            }),
            'meta': new HtmlTagDefinition({
              isVoid: true
            }),
            'area': new HtmlTagDefinition({
              isVoid: true
            }),
            'embed': new HtmlTagDefinition({
              isVoid: true
            }),
            'link': new HtmlTagDefinition({
              isVoid: true
            }),
            'img': new HtmlTagDefinition({
              isVoid: true
            }),
            'input': new HtmlTagDefinition({
              isVoid: true
            }),
            'param': new HtmlTagDefinition({
              isVoid: true
            }),
            'hr': new HtmlTagDefinition({
              isVoid: true
            }),
            'br': new HtmlTagDefinition({
              isVoid: true
            }),
            'source': new HtmlTagDefinition({
              isVoid: true
            }),
            'track': new HtmlTagDefinition({
              isVoid: true
            }),
            'wbr': new HtmlTagDefinition({
              isVoid: true
            }),
            'p': new HtmlTagDefinition({
              closedByChildren: ['address', 'article', 'aside', 'blockquote', 'div', 'dl', 'fieldset', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'header', 'hgroup', 'hr', 'main', 'nav', 'ol', 'p', 'pre', 'section', 'table', 'ul'],
              closedByParent: true
            }),
            'thead': new HtmlTagDefinition({
              closedByChildren: ['tbody', 'tfoot']
            }),
            'tbody': new HtmlTagDefinition({
              closedByChildren: ['tbody', 'tfoot'],
              closedByParent: true
            }),
            'tfoot': new HtmlTagDefinition({
              closedByChildren: ['tbody'],
              closedByParent: true
            }),
            'tr': new HtmlTagDefinition({
              closedByChildren: ['tr'],
              closedByParent: true
            }),
            'td': new HtmlTagDefinition({
              closedByChildren: ['td', 'th'],
              closedByParent: true
            }),
            'th': new HtmlTagDefinition({
              closedByChildren: ['td', 'th'],
              closedByParent: true
            }),
            'col': new HtmlTagDefinition({
              isVoid: true
            }),
            'svg': new HtmlTagDefinition({
              implicitNamespacePrefix: 'svg'
            }),
            'foreignObject': new HtmlTagDefinition({
              // Usually the implicit namespace here would be redundant since it will be inherited from
              // the parent `svg`, but we have to do it for `foreignObject`, because the way the parser
              // works is that the parent node of an end tag is its own start tag which means that
              // the `preventNamespaceInheritance` on `foreignObject` would have it default to the
              // implicit namespace which is `html`, unless specified otherwise.
              implicitNamespacePrefix: 'svg',
              // We want to prevent children of foreignObject from inheriting its namespace, because
              // the point of the element is to allow nodes from other namespaces to be inserted.
              preventNamespaceInheritance: true
            }),
            'math': new HtmlTagDefinition({
              implicitNamespacePrefix: 'math'
            }),
            'li': new HtmlTagDefinition({
              closedByChildren: ['li'],
              closedByParent: true
            }),
            'dt': new HtmlTagDefinition({
              closedByChildren: ['dt', 'dd']
            }),
            'dd': new HtmlTagDefinition({
              closedByChildren: ['dt', 'dd'],
              closedByParent: true
            }),
            'rb': new HtmlTagDefinition({
              closedByChildren: ['rb', 'rt', 'rtc', 'rp'],
              closedByParent: true
            }),
            'rt': new HtmlTagDefinition({
              closedByChildren: ['rb', 'rt', 'rtc', 'rp'],
              closedByParent: true
            }),
            'rtc': new HtmlTagDefinition({
              closedByChildren: ['rb', 'rtc', 'rp'],
              closedByParent: true
            }),
            'rp': new HtmlTagDefinition({
              closedByChildren: ['rb', 'rt', 'rtc', 'rp'],
              closedByParent: true
            }),
            'optgroup': new HtmlTagDefinition({
              closedByChildren: ['optgroup'],
              closedByParent: true
            }),
            'option': new HtmlTagDefinition({
              closedByChildren: ['option', 'optgroup'],
              closedByParent: true
            }),
            'pre': new HtmlTagDefinition({
              ignoreFirstLf: true
            }),
            'listing': new HtmlTagDefinition({
              ignoreFirstLf: true
            }),
            'style': new HtmlTagDefinition({
              contentType: TagContentType.RAW_TEXT
            }),
            'script': new HtmlTagDefinition({
              contentType: TagContentType.RAW_TEXT
            }),
            'title': new HtmlTagDefinition({
              contentType: TagContentType.ESCAPABLE_RAW_TEXT
            }),
            'textarea': new HtmlTagDefinition({
              contentType: TagContentType.ESCAPABLE_RAW_TEXT,
              ignoreFirstLf: true
            })
          };
        } // We have to make both a case-sensitive and a case-insesitive lookup, because
        // HTML tag names are case insensitive, whereas some SVG tags are case sensitive.


        return (_b = (_a = TAG_DEFINITIONS[tagName]) !== null && _a !== void 0 ? _a : TAG_DEFINITIONS[tagName.toLowerCase()]) !== null && _b !== void 0 ? _b : _DEFAULT_TAG_DEFINITION;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var _SELECTOR_REGEXP = new RegExp('(\\:not\\()|' + // 1: ":not("
      '(([\\.\\#]?)[-\\w]+)|' + // 2: "tag"; 3: "."/"#";
      // "-" should appear first in the regexp below as FF31 parses "[.-\w]" as a range
      // 4: attribute; 5: attribute_string; 6: attribute_value
      '(?:\\[([-.\\w*]+)(?:=([\"\']?)([^\\]\"\']*)\\5)?\\])|' + // "[name]", "[name=value]",
      // "[name="value"]",
      // "[name='value']"
      '(\\))|' + // 7: ")"
      '(\\s*,\\s*)', // 8: ","
      'g');
      /**
       * A css selector contains an element name,
       * css classes and attribute/value pairs with the purpose
       * of selecting subsets out of them.
       */


      var CssSelector = /*#__PURE__*/function () {
        function CssSelector() {
          _classCallCheck2(this, CssSelector);

          this.element = null;
          this.classNames = [];
          /**
           * The selectors are encoded in pairs where:
           * - even locations are attribute names
           * - odd locations are attribute values.
           *
           * Example:
           * Selector: `[key1=value1][key2]` would parse to:
           * ```
           * ['key1', 'value1', 'key2', '']
           * ```
           */

          this.attrs = [];
          this.notSelectors = [];
        }

        _createClass2(CssSelector, [{
          key: "isElementSelector",
          value: function isElementSelector() {
            return this.hasElementSelector() && this.classNames.length == 0 && this.attrs.length == 0 && this.notSelectors.length === 0;
          }
        }, {
          key: "hasElementSelector",
          value: function hasElementSelector() {
            return !!this.element;
          }
        }, {
          key: "setElement",
          value: function setElement() {
            var element = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
            this.element = element;
          }
          /** Gets a template string for an element that matches the selector. */

        }, {
          key: "getMatchingElementTemplate",
          value: function getMatchingElementTemplate() {
            var tagName = this.element || 'div';
            var classAttr = this.classNames.length > 0 ? " class=\"".concat(this.classNames.join(' '), "\"") : '';
            var attrs = '';

            for (var i = 0; i < this.attrs.length; i += 2) {
              var attrName = this.attrs[i];
              var attrValue = this.attrs[i + 1] !== '' ? "=\"".concat(this.attrs[i + 1], "\"") : '';
              attrs += " ".concat(attrName).concat(attrValue);
            }

            return getHtmlTagDefinition(tagName).isVoid ? "<".concat(tagName).concat(classAttr).concat(attrs, "/>") : "<".concat(tagName).concat(classAttr).concat(attrs, "></").concat(tagName, ">");
          }
        }, {
          key: "getAttrs",
          value: function getAttrs() {
            var result = [];

            if (this.classNames.length > 0) {
              result.push('class', this.classNames.join(' '));
            }

            return result.concat(this.attrs);
          }
        }, {
          key: "addAttribute",
          value: function addAttribute(name) {
            var value = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
            this.attrs.push(name, value && value.toLowerCase() || '');
          }
        }, {
          key: "addClassName",
          value: function addClassName(name) {
            this.classNames.push(name.toLowerCase());
          }
        }, {
          key: "toString",
          value: function toString() {
            var res = this.element || '';

            if (this.classNames) {
              this.classNames.forEach(function (klass) {
                return res += ".".concat(klass);
              });
            }

            if (this.attrs) {
              for (var i = 0; i < this.attrs.length; i += 2) {
                var name = this.attrs[i];
                var value = this.attrs[i + 1];
                res += "[".concat(name).concat(value ? '=' + value : '', "]");
              }
            }

            this.notSelectors.forEach(function (notSelector) {
              return res += ":not(".concat(notSelector, ")");
            });
            return res;
          }
        }], [{
          key: "parse",
          value: function parse(selector) {
            var results = [];

            var _addResult = function _addResult(res, cssSel) {
              if (cssSel.notSelectors.length > 0 && !cssSel.element && cssSel.classNames.length == 0 && cssSel.attrs.length == 0) {
                cssSel.element = '*';
              }

              res.push(cssSel);
            };

            var cssSelector = new CssSelector();
            var match;
            var current = cssSelector;
            var inNot = false;
            _SELECTOR_REGEXP.lastIndex = 0;

            while (match = _SELECTOR_REGEXP.exec(selector)) {
              if (match[1
              /* NOT */
              ]) {
                if (inNot) {
                  throw new Error('Nesting :not in a selector is not allowed');
                }

                inNot = true;
                current = new CssSelector();
                cssSelector.notSelectors.push(current);
              }

              var tag = match[2
              /* TAG */
              ];

              if (tag) {
                var prefix = match[3
                /* PREFIX */
                ];

                if (prefix === '#') {
                  // #hash
                  current.addAttribute('id', tag.substr(1));
                } else if (prefix === '.') {
                  // Class
                  current.addClassName(tag.substr(1));
                } else {
                  // Element
                  current.setElement(tag);
                }
              }

              var attribute = match[4
              /* ATTRIBUTE */
              ];

              if (attribute) {
                current.addAttribute(attribute, match[6
                /* ATTRIBUTE_VALUE */
                ]);
              }

              if (match[7
              /* NOT_END */
              ]) {
                inNot = false;
                current = cssSelector;
              }

              if (match[8
              /* SEPARATOR */
              ]) {
                if (inNot) {
                  throw new Error('Multiple selectors in :not are not supported');
                }

                _addResult(results, cssSelector);

                cssSelector = current = new CssSelector();
              }
            }

            _addResult(results, cssSelector);

            return results;
          }
        }]);

        return CssSelector;
      }();
      /**
       * Reads a list of CssSelectors and allows to calculate which ones
       * are contained in a given CssSelector.
       */


      var SelectorMatcher = /*#__PURE__*/function () {
        function SelectorMatcher() {
          _classCallCheck2(this, SelectorMatcher);

          this._elementMap = new Map();
          this._elementPartialMap = new Map();
          this._classMap = new Map();
          this._classPartialMap = new Map();
          this._attrValueMap = new Map();
          this._attrValuePartialMap = new Map();
          this._listContexts = [];
        }

        _createClass2(SelectorMatcher, [{
          key: "addSelectables",
          value: function addSelectables(cssSelectors, callbackCtxt) {
            var listContext = null;

            if (cssSelectors.length > 1) {
              listContext = new SelectorListContext(cssSelectors);

              this._listContexts.push(listContext);
            }

            for (var i = 0; i < cssSelectors.length; i++) {
              this._addSelectable(cssSelectors[i], callbackCtxt, listContext);
            }
          }
          /**
           * Add an object that can be found later on by calling `match`.
           * @param cssSelector A css selector
           * @param callbackCtxt An opaque object that will be given to the callback of the `match` function
           */

        }, {
          key: "_addSelectable",
          value: function _addSelectable(cssSelector, callbackCtxt, listContext) {
            var matcher = this;
            var element = cssSelector.element;
            var classNames = cssSelector.classNames;
            var attrs = cssSelector.attrs;
            var selectable = new SelectorContext(cssSelector, callbackCtxt, listContext);

            if (element) {
              var isTerminal = attrs.length === 0 && classNames.length === 0;

              if (isTerminal) {
                this._addTerminal(matcher._elementMap, element, selectable);
              } else {
                matcher = this._addPartial(matcher._elementPartialMap, element);
              }
            }

            if (classNames) {
              for (var i = 0; i < classNames.length; i++) {
                var _isTerminal = attrs.length === 0 && i === classNames.length - 1;

                var className = classNames[i];

                if (_isTerminal) {
                  this._addTerminal(matcher._classMap, className, selectable);
                } else {
                  matcher = this._addPartial(matcher._classPartialMap, className);
                }
              }
            }

            if (attrs) {
              for (var _i4 = 0; _i4 < attrs.length; _i4 += 2) {
                var _isTerminal2 = _i4 === attrs.length - 2;

                var name = attrs[_i4];
                var value = attrs[_i4 + 1];

                if (_isTerminal2) {
                  var terminalMap = matcher._attrValueMap;
                  var terminalValuesMap = terminalMap.get(name);

                  if (!terminalValuesMap) {
                    terminalValuesMap = new Map();
                    terminalMap.set(name, terminalValuesMap);
                  }

                  this._addTerminal(terminalValuesMap, value, selectable);
                } else {
                  var partialMap = matcher._attrValuePartialMap;
                  var partialValuesMap = partialMap.get(name);

                  if (!partialValuesMap) {
                    partialValuesMap = new Map();
                    partialMap.set(name, partialValuesMap);
                  }

                  matcher = this._addPartial(partialValuesMap, value);
                }
              }
            }
          }
        }, {
          key: "_addTerminal",
          value: function _addTerminal(map, name, selectable) {
            var terminalList = map.get(name);

            if (!terminalList) {
              terminalList = [];
              map.set(name, terminalList);
            }

            terminalList.push(selectable);
          }
        }, {
          key: "_addPartial",
          value: function _addPartial(map, name) {
            var matcher = map.get(name);

            if (!matcher) {
              matcher = new SelectorMatcher();
              map.set(name, matcher);
            }

            return matcher;
          }
          /**
           * Find the objects that have been added via `addSelectable`
           * whose css selector is contained in the given css selector.
           * @param cssSelector A css selector
           * @param matchedCallback This callback will be called with the object handed into `addSelectable`
           * @return boolean true if a match was found
           */

        }, {
          key: "match",
          value: function match(cssSelector, matchedCallback) {
            var result = false;
            var element = cssSelector.element;
            var classNames = cssSelector.classNames;
            var attrs = cssSelector.attrs;

            for (var i = 0; i < this._listContexts.length; i++) {
              this._listContexts[i].alreadyMatched = false;
            }

            result = this._matchTerminal(this._elementMap, element, cssSelector, matchedCallback) || result;
            result = this._matchPartial(this._elementPartialMap, element, cssSelector, matchedCallback) || result;

            if (classNames) {
              for (var _i5 = 0; _i5 < classNames.length; _i5++) {
                var className = classNames[_i5];
                result = this._matchTerminal(this._classMap, className, cssSelector, matchedCallback) || result;
                result = this._matchPartial(this._classPartialMap, className, cssSelector, matchedCallback) || result;
              }
            }

            if (attrs) {
              for (var _i6 = 0; _i6 < attrs.length; _i6 += 2) {
                var name = attrs[_i6];
                var value = attrs[_i6 + 1];

                var terminalValuesMap = this._attrValueMap.get(name);

                if (value) {
                  result = this._matchTerminal(terminalValuesMap, '', cssSelector, matchedCallback) || result;
                }

                result = this._matchTerminal(terminalValuesMap, value, cssSelector, matchedCallback) || result;

                var partialValuesMap = this._attrValuePartialMap.get(name);

                if (value) {
                  result = this._matchPartial(partialValuesMap, '', cssSelector, matchedCallback) || result;
                }

                result = this._matchPartial(partialValuesMap, value, cssSelector, matchedCallback) || result;
              }
            }

            return result;
          }
          /** @internal */

        }, {
          key: "_matchTerminal",
          value: function _matchTerminal(map, name, cssSelector, matchedCallback) {
            if (!map || typeof name !== 'string') {
              return false;
            }

            var selectables = map.get(name) || [];
            var starSelectables = map.get('*');

            if (starSelectables) {
              selectables = selectables.concat(starSelectables);
            }

            if (selectables.length === 0) {
              return false;
            }

            var selectable;
            var result = false;

            for (var i = 0; i < selectables.length; i++) {
              selectable = selectables[i];
              result = selectable.finalize(cssSelector, matchedCallback) || result;
            }

            return result;
          }
          /** @internal */

        }, {
          key: "_matchPartial",
          value: function _matchPartial(map, name, cssSelector, matchedCallback) {
            if (!map || typeof name !== 'string') {
              return false;
            }

            var nestedSelector = map.get(name);

            if (!nestedSelector) {
              return false;
            } // TODO(perf): get rid of recursion and measure again
            // TODO(perf): don't pass the whole selector into the recursion,
            // but only the not processed parts


            return nestedSelector.match(cssSelector, matchedCallback);
          }
        }], [{
          key: "createNotMatcher",
          value: function createNotMatcher(notSelectors) {
            var notMatcher = new SelectorMatcher();
            notMatcher.addSelectables(notSelectors, null);
            return notMatcher;
          }
        }]);

        return SelectorMatcher;
      }();

      var SelectorListContext = function SelectorListContext(selectors) {
        _classCallCheck2(this, SelectorListContext);

        this.selectors = selectors;
        this.alreadyMatched = false;
      }; // Store context to pass back selector and context when a selector is matched


      var SelectorContext = /*#__PURE__*/function () {
        function SelectorContext(selector, cbContext, listContext) {
          _classCallCheck2(this, SelectorContext);

          this.selector = selector;
          this.cbContext = cbContext;
          this.listContext = listContext;
          this.notSelectors = selector.notSelectors;
        }

        _createClass2(SelectorContext, [{
          key: "finalize",
          value: function finalize(cssSelector, callback) {
            var result = true;

            if (this.notSelectors.length > 0 && (!this.listContext || !this.listContext.alreadyMatched)) {
              var notMatcher = SelectorMatcher.createNotMatcher(this.notSelectors);
              result = !notMatcher.match(cssSelector, null);
            }

            if (result && callback && (!this.listContext || !this.listContext.alreadyMatched)) {
              if (this.listContext) {
                this.listContext.alreadyMatched = true;
              }

              callback(this.selector, this.cbContext);
            }

            return result;
          }
        }]);

        return SelectorContext;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var createInject = makeMetadataFactory('Inject', function (token) {
        return {
          token: token
        };
      });
      var createInjectionToken = makeMetadataFactory('InjectionToken', function (desc) {
        return {
          _desc: desc,
          ɵprov: undefined
        };
      });
      var createAttribute = makeMetadataFactory('Attribute', function (attributeName) {
        return {
          attributeName: attributeName
        };
      });
      var createContentChildren = makeMetadataFactory('ContentChildren', function (selector) {
        var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
        return Object.assign({
          selector: selector,
          first: false,
          isViewQuery: false,
          descendants: false
        }, data);
      });
      var createContentChild = makeMetadataFactory('ContentChild', function (selector) {
        var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
        return Object.assign({
          selector: selector,
          first: true,
          isViewQuery: false,
          descendants: true
        }, data);
      });
      var createViewChildren = makeMetadataFactory('ViewChildren', function (selector) {
        var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
        return Object.assign({
          selector: selector,
          first: false,
          isViewQuery: true,
          descendants: true
        }, data);
      });
      var createViewChild = makeMetadataFactory('ViewChild', function (selector, data) {
        return Object.assign({
          selector: selector,
          first: true,
          isViewQuery: true,
          descendants: true
        }, data);
      });
      var createDirective = makeMetadataFactory('Directive', function () {
        var dir = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
        return dir;
      });
      var ViewEncapsulation;

      (function (ViewEncapsulation) {
        ViewEncapsulation[ViewEncapsulation["Emulated"] = 0] = "Emulated"; // Historically the 1 value was for `Native` encapsulation which has been removed as of v11.

        ViewEncapsulation[ViewEncapsulation["None"] = 2] = "None";
        ViewEncapsulation[ViewEncapsulation["ShadowDom"] = 3] = "ShadowDom";
      })(ViewEncapsulation || (ViewEncapsulation = {}));

      var ChangeDetectionStrategy;

      (function (ChangeDetectionStrategy) {
        ChangeDetectionStrategy[ChangeDetectionStrategy["OnPush"] = 0] = "OnPush";
        ChangeDetectionStrategy[ChangeDetectionStrategy["Default"] = 1] = "Default";
      })(ChangeDetectionStrategy || (ChangeDetectionStrategy = {}));

      var createComponent = makeMetadataFactory('Component', function () {
        var c = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
        return Object.assign({
          changeDetection: ChangeDetectionStrategy.Default
        }, c);
      });
      var createPipe = makeMetadataFactory('Pipe', function (p) {
        return Object.assign({
          pure: true
        }, p);
      });
      var createInput = makeMetadataFactory('Input', function (bindingPropertyName) {
        return {
          bindingPropertyName: bindingPropertyName
        };
      });
      var createOutput = makeMetadataFactory('Output', function (bindingPropertyName) {
        return {
          bindingPropertyName: bindingPropertyName
        };
      });
      var createHostBinding = makeMetadataFactory('HostBinding', function (hostPropertyName) {
        return {
          hostPropertyName: hostPropertyName
        };
      });
      var createHostListener = makeMetadataFactory('HostListener', function (eventName, args) {
        return {
          eventName: eventName,
          args: args
        };
      });
      var createNgModule = makeMetadataFactory('NgModule', function (ngModule) {
        return ngModule;
      });
      var createInjectable = makeMetadataFactory('Injectable', function () {
        var injectable = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
        return injectable;
      });
      var CUSTOM_ELEMENTS_SCHEMA = {
        name: 'custom-elements'
      };
      var NO_ERRORS_SCHEMA = {
        name: 'no-errors-schema'
      };
      var createOptional = makeMetadataFactory('Optional');
      var createSelf = makeMetadataFactory('Self');
      var createSkipSelf = makeMetadataFactory('SkipSelf');
      var createHost = makeMetadataFactory('Host');
      var Type = Function;
      var SecurityContext;

      (function (SecurityContext) {
        SecurityContext[SecurityContext["NONE"] = 0] = "NONE";
        SecurityContext[SecurityContext["HTML"] = 1] = "HTML";
        SecurityContext[SecurityContext["STYLE"] = 2] = "STYLE";
        SecurityContext[SecurityContext["SCRIPT"] = 3] = "SCRIPT";
        SecurityContext[SecurityContext["URL"] = 4] = "URL";
        SecurityContext[SecurityContext["RESOURCE_URL"] = 5] = "RESOURCE_URL";
      })(SecurityContext || (SecurityContext = {}));

      var MissingTranslationStrategy;

      (function (MissingTranslationStrategy) {
        MissingTranslationStrategy[MissingTranslationStrategy["Error"] = 0] = "Error";
        MissingTranslationStrategy[MissingTranslationStrategy["Warning"] = 1] = "Warning";
        MissingTranslationStrategy[MissingTranslationStrategy["Ignore"] = 2] = "Ignore";
      })(MissingTranslationStrategy || (MissingTranslationStrategy = {}));

      function makeMetadataFactory(name, props) {
        // This must be declared as a function, not a fat arrow, so that ES2015 devmode produces code
        // that works with the static_reflector.ts in the ViewEngine compiler.
        // In particular, `_registerDecoratorOrConstructor` assumes that the value returned here can be
        // new'ed.
        function factory() {
          var values = props ? props.apply(void 0, arguments) : {};
          return Object.assign({
            ngMetadataName: name
          }, values);
        }

        factory.isTypeOf = function (obj) {
          return obj && obj.ngMetadataName === name;
        };

        factory.ngMetadataName = name;
        return factory;
      }

      function parserSelectorToSimpleSelector(selector) {
        var classes = selector.classNames && selector.classNames.length ? [8
        /* CLASS */
        ].concat(_toConsumableArray(selector.classNames)) : [];
        var elementName = selector.element && selector.element !== '*' ? selector.element : '';
        return [elementName].concat(_toConsumableArray(selector.attrs), _toConsumableArray(classes));
      }

      function parserSelectorToNegativeSelector(selector) {
        var classes = selector.classNames && selector.classNames.length ? [8
        /* CLASS */
        ].concat(_toConsumableArray(selector.classNames)) : [];

        if (selector.element) {
          return [1
          /* NOT */
          | 4
          /* ELEMENT */
          , selector.element].concat(_toConsumableArray(selector.attrs), _toConsumableArray(classes));
        } else if (selector.attrs.length) {
          return [1
          /* NOT */
          | 2
          /* ATTRIBUTE */
          ].concat(_toConsumableArray(selector.attrs), _toConsumableArray(classes));
        } else {
          return selector.classNames && selector.classNames.length ? [1
          /* NOT */
          | 8
          /* CLASS */
          ].concat(_toConsumableArray(selector.classNames)) : [];
        }
      }

      function parserSelectorToR3Selector(selector) {
        var positive = parserSelectorToSimpleSelector(selector);
        var negative = selector.notSelectors && selector.notSelectors.length ? selector.notSelectors.map(function (notSelector) {
          return parserSelectorToNegativeSelector(notSelector);
        }) : [];
        return positive.concat.apply(positive, _toConsumableArray(negative));
      }

      function parseSelectorToR3Selector(selector) {
        return selector ? CssSelector.parse(selector).map(parserSelectorToR3Selector) : [];
      }

      var core = /*#__PURE__*/Object.freeze({
        __proto__: null,
        createInject: createInject,
        createInjectionToken: createInjectionToken,
        createAttribute: createAttribute,
        createContentChildren: createContentChildren,
        createContentChild: createContentChild,
        createViewChildren: createViewChildren,
        createViewChild: createViewChild,
        createDirective: createDirective,

        get ViewEncapsulation() {
          return ViewEncapsulation;
        },

        get ChangeDetectionStrategy() {
          return ChangeDetectionStrategy;
        },

        createComponent: createComponent,
        createPipe: createPipe,
        createInput: createInput,
        createOutput: createOutput,
        createHostBinding: createHostBinding,
        createHostListener: createHostListener,
        createNgModule: createNgModule,
        createInjectable: createInjectable,
        CUSTOM_ELEMENTS_SCHEMA: CUSTOM_ELEMENTS_SCHEMA,
        NO_ERRORS_SCHEMA: NO_ERRORS_SCHEMA,
        createOptional: createOptional,
        createSelf: createSelf,
        createSkipSelf: createSkipSelf,
        createHost: createHost,
        Type: Type,

        get SecurityContext() {
          return SecurityContext;
        },

        get MissingTranslationStrategy() {
          return MissingTranslationStrategy;
        },

        parseSelectorToR3Selector: parseSelectorToR3Selector
      });
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */
      //// Types

      var TypeModifier;

      (function (TypeModifier) {
        TypeModifier[TypeModifier["Const"] = 0] = "Const";
      })(TypeModifier || (TypeModifier = {}));

      var Type$1 = /*#__PURE__*/function () {
        function Type$1() {
          var modifiers = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];

          _classCallCheck2(this, Type$1);

          this.modifiers = modifiers;
        }

        _createClass2(Type$1, [{
          key: "hasModifier",
          value: function hasModifier(modifier) {
            return this.modifiers.indexOf(modifier) !== -1;
          }
        }]);

        return Type$1;
      }();

      var BuiltinTypeName;

      (function (BuiltinTypeName) {
        BuiltinTypeName[BuiltinTypeName["Dynamic"] = 0] = "Dynamic";
        BuiltinTypeName[BuiltinTypeName["Bool"] = 1] = "Bool";
        BuiltinTypeName[BuiltinTypeName["String"] = 2] = "String";
        BuiltinTypeName[BuiltinTypeName["Int"] = 3] = "Int";
        BuiltinTypeName[BuiltinTypeName["Number"] = 4] = "Number";
        BuiltinTypeName[BuiltinTypeName["Function"] = 5] = "Function";
        BuiltinTypeName[BuiltinTypeName["Inferred"] = 6] = "Inferred";
        BuiltinTypeName[BuiltinTypeName["None"] = 7] = "None";
      })(BuiltinTypeName || (BuiltinTypeName = {}));

      var BuiltinType = /*#__PURE__*/function (_Type$) {
        _inherits2(BuiltinType, _Type$);

        var _super11 = _createSuper2(BuiltinType);

        function BuiltinType(name, modifiers) {
          var _this50;

          _classCallCheck2(this, BuiltinType);

          _this50 = _super11.call(this, modifiers);
          _this50.name = name;
          return _this50;
        }

        _createClass2(BuiltinType, [{
          key: "visitType",
          value: function visitType(visitor, context) {
            return visitor.visitBuiltinType(this, context);
          }
        }]);

        return BuiltinType;
      }(Type$1);

      var ExpressionType = /*#__PURE__*/function (_Type$2) {
        _inherits2(ExpressionType, _Type$2);

        var _super12 = _createSuper2(ExpressionType);

        function ExpressionType(value, modifiers) {
          var _this51;

          var typeParams = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;

          _classCallCheck2(this, ExpressionType);

          _this51 = _super12.call(this, modifiers);
          _this51.value = value;
          _this51.typeParams = typeParams;
          return _this51;
        }

        _createClass2(ExpressionType, [{
          key: "visitType",
          value: function visitType(visitor, context) {
            return visitor.visitExpressionType(this, context);
          }
        }]);

        return ExpressionType;
      }(Type$1);

      var ArrayType = /*#__PURE__*/function (_Type$3) {
        _inherits2(ArrayType, _Type$3);

        var _super13 = _createSuper2(ArrayType);

        function ArrayType(of, modifiers) {
          var _this52;

          _classCallCheck2(this, ArrayType);

          _this52 = _super13.call(this, modifiers);
          _this52.of = of;
          return _this52;
        }

        _createClass2(ArrayType, [{
          key: "visitType",
          value: function visitType(visitor, context) {
            return visitor.visitArrayType(this, context);
          }
        }]);

        return ArrayType;
      }(Type$1);

      var MapType = /*#__PURE__*/function (_Type$4) {
        _inherits2(MapType, _Type$4);

        var _super14 = _createSuper2(MapType);

        function MapType(valueType, modifiers) {
          var _this53;

          _classCallCheck2(this, MapType);

          _this53 = _super14.call(this, modifiers);
          _this53.valueType = valueType || null;
          return _this53;
        }

        _createClass2(MapType, [{
          key: "visitType",
          value: function visitType(visitor, context) {
            return visitor.visitMapType(this, context);
          }
        }]);

        return MapType;
      }(Type$1);

      var DYNAMIC_TYPE = new BuiltinType(BuiltinTypeName.Dynamic);
      var INFERRED_TYPE = new BuiltinType(BuiltinTypeName.Inferred);
      var BOOL_TYPE = new BuiltinType(BuiltinTypeName.Bool);
      var INT_TYPE = new BuiltinType(BuiltinTypeName.Int);
      var NUMBER_TYPE = new BuiltinType(BuiltinTypeName.Number);
      var STRING_TYPE = new BuiltinType(BuiltinTypeName.String);
      var FUNCTION_TYPE = new BuiltinType(BuiltinTypeName.Function);
      var NONE_TYPE = new BuiltinType(BuiltinTypeName.None); ///// Expressions

      var UnaryOperator;

      (function (UnaryOperator) {
        UnaryOperator[UnaryOperator["Minus"] = 0] = "Minus";
        UnaryOperator[UnaryOperator["Plus"] = 1] = "Plus";
      })(UnaryOperator || (UnaryOperator = {}));

      var BinaryOperator;

      (function (BinaryOperator) {
        BinaryOperator[BinaryOperator["Equals"] = 0] = "Equals";
        BinaryOperator[BinaryOperator["NotEquals"] = 1] = "NotEquals";
        BinaryOperator[BinaryOperator["Identical"] = 2] = "Identical";
        BinaryOperator[BinaryOperator["NotIdentical"] = 3] = "NotIdentical";
        BinaryOperator[BinaryOperator["Minus"] = 4] = "Minus";
        BinaryOperator[BinaryOperator["Plus"] = 5] = "Plus";
        BinaryOperator[BinaryOperator["Divide"] = 6] = "Divide";
        BinaryOperator[BinaryOperator["Multiply"] = 7] = "Multiply";
        BinaryOperator[BinaryOperator["Modulo"] = 8] = "Modulo";
        BinaryOperator[BinaryOperator["And"] = 9] = "And";
        BinaryOperator[BinaryOperator["Or"] = 10] = "Or";
        BinaryOperator[BinaryOperator["BitwiseAnd"] = 11] = "BitwiseAnd";
        BinaryOperator[BinaryOperator["Lower"] = 12] = "Lower";
        BinaryOperator[BinaryOperator["LowerEquals"] = 13] = "LowerEquals";
        BinaryOperator[BinaryOperator["Bigger"] = 14] = "Bigger";
        BinaryOperator[BinaryOperator["BiggerEquals"] = 15] = "BiggerEquals";
      })(BinaryOperator || (BinaryOperator = {}));

      function nullSafeIsEquivalent(base, other) {
        if (base == null || other == null) {
          return base == other;
        }

        return base.isEquivalent(other);
      }

      function areAllEquivalent(base, other) {
        var len = base.length;

        if (len !== other.length) {
          return false;
        }

        for (var i = 0; i < len; i++) {
          if (!base[i].isEquivalent(other[i])) {
            return false;
          }
        }

        return true;
      }

      var Expression = /*#__PURE__*/function () {
        function Expression(type, sourceSpan) {
          _classCallCheck2(this, Expression);

          this.type = type || null;
          this.sourceSpan = sourceSpan || null;
        }

        _createClass2(Expression, [{
          key: "prop",
          value: function prop(name, sourceSpan) {
            return new ReadPropExpr(this, name, null, sourceSpan);
          }
        }, {
          key: "key",
          value: function key(index, type, sourceSpan) {
            return new ReadKeyExpr(this, index, type, sourceSpan);
          }
        }, {
          key: "callMethod",
          value: function callMethod(name, params, sourceSpan) {
            return new InvokeMethodExpr(this, name, params, null, sourceSpan);
          }
        }, {
          key: "callFn",
          value: function callFn(params, sourceSpan, pure) {
            return new InvokeFunctionExpr(this, params, null, sourceSpan, pure);
          }
        }, {
          key: "instantiate",
          value: function instantiate(params, type, sourceSpan) {
            return new InstantiateExpr(this, params, type, sourceSpan);
          }
        }, {
          key: "conditional",
          value: function conditional(trueCase) {
            var falseCase = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
            var sourceSpan = arguments.length > 2 ? arguments[2] : undefined;
            return new ConditionalExpr(this, trueCase, falseCase, null, sourceSpan);
          }
        }, {
          key: "equals",
          value: function equals(rhs, sourceSpan) {
            return new BinaryOperatorExpr(BinaryOperator.Equals, this, rhs, null, sourceSpan);
          }
        }, {
          key: "notEquals",
          value: function notEquals(rhs, sourceSpan) {
            return new BinaryOperatorExpr(BinaryOperator.NotEquals, this, rhs, null, sourceSpan);
          }
        }, {
          key: "identical",
          value: function identical(rhs, sourceSpan) {
            return new BinaryOperatorExpr(BinaryOperator.Identical, this, rhs, null, sourceSpan);
          }
        }, {
          key: "notIdentical",
          value: function notIdentical(rhs, sourceSpan) {
            return new BinaryOperatorExpr(BinaryOperator.NotIdentical, this, rhs, null, sourceSpan);
          }
        }, {
          key: "minus",
          value: function minus(rhs, sourceSpan) {
            return new BinaryOperatorExpr(BinaryOperator.Minus, this, rhs, null, sourceSpan);
          }
        }, {
          key: "plus",
          value: function plus(rhs, sourceSpan) {
            return new BinaryOperatorExpr(BinaryOperator.Plus, this, rhs, null, sourceSpan);
          }
        }, {
          key: "divide",
          value: function divide(rhs, sourceSpan) {
            return new BinaryOperatorExpr(BinaryOperator.Divide, this, rhs, null, sourceSpan);
          }
        }, {
          key: "multiply",
          value: function multiply(rhs, sourceSpan) {
            return new BinaryOperatorExpr(BinaryOperator.Multiply, this, rhs, null, sourceSpan);
          }
        }, {
          key: "modulo",
          value: function modulo(rhs, sourceSpan) {
            return new BinaryOperatorExpr(BinaryOperator.Modulo, this, rhs, null, sourceSpan);
          }
        }, {
          key: "and",
          value: function and(rhs, sourceSpan) {
            return new BinaryOperatorExpr(BinaryOperator.And, this, rhs, null, sourceSpan);
          }
        }, {
          key: "bitwiseAnd",
          value: function bitwiseAnd(rhs, sourceSpan) {
            var parens = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
            return new BinaryOperatorExpr(BinaryOperator.BitwiseAnd, this, rhs, null, sourceSpan, parens);
          }
        }, {
          key: "or",
          value: function or(rhs, sourceSpan) {
            return new BinaryOperatorExpr(BinaryOperator.Or, this, rhs, null, sourceSpan);
          }
        }, {
          key: "lower",
          value: function lower(rhs, sourceSpan) {
            return new BinaryOperatorExpr(BinaryOperator.Lower, this, rhs, null, sourceSpan);
          }
        }, {
          key: "lowerEquals",
          value: function lowerEquals(rhs, sourceSpan) {
            return new BinaryOperatorExpr(BinaryOperator.LowerEquals, this, rhs, null, sourceSpan);
          }
        }, {
          key: "bigger",
          value: function bigger(rhs, sourceSpan) {
            return new BinaryOperatorExpr(BinaryOperator.Bigger, this, rhs, null, sourceSpan);
          }
        }, {
          key: "biggerEquals",
          value: function biggerEquals(rhs, sourceSpan) {
            return new BinaryOperatorExpr(BinaryOperator.BiggerEquals, this, rhs, null, sourceSpan);
          }
        }, {
          key: "isBlank",
          value: function isBlank(sourceSpan) {
            // Note: We use equals by purpose here to compare to null and undefined in JS.
            // We use the typed null to allow strictNullChecks to narrow types.
            return this.equals(TYPED_NULL_EXPR, sourceSpan);
          }
        }, {
          key: "cast",
          value: function cast(type, sourceSpan) {
            return new CastExpr(this, type, sourceSpan);
          }
        }, {
          key: "toStmt",
          value: function toStmt() {
            return new ExpressionStatement(this, null);
          }
        }]);

        return Expression;
      }();

      var BuiltinVar;

      (function (BuiltinVar) {
        BuiltinVar[BuiltinVar["This"] = 0] = "This";
        BuiltinVar[BuiltinVar["Super"] = 1] = "Super";
        BuiltinVar[BuiltinVar["CatchError"] = 2] = "CatchError";
        BuiltinVar[BuiltinVar["CatchStack"] = 3] = "CatchStack";
      })(BuiltinVar || (BuiltinVar = {}));

      var ReadVarExpr = /*#__PURE__*/function (_Expression) {
        _inherits2(ReadVarExpr, _Expression);

        var _super15 = _createSuper2(ReadVarExpr);

        function ReadVarExpr(name, type, sourceSpan) {
          var _this54;

          _classCallCheck2(this, ReadVarExpr);

          _this54 = _super15.call(this, type, sourceSpan);

          if (typeof name === 'string') {
            _this54.name = name;
            _this54.builtin = null;
          } else {
            _this54.name = null;
            _this54.builtin = name;
          }

          return _this54;
        }

        _createClass2(ReadVarExpr, [{
          key: "isEquivalent",
          value: function isEquivalent(e) {
            return e instanceof ReadVarExpr && this.name === e.name && this.builtin === e.builtin;
          }
        }, {
          key: "isConstant",
          value: function isConstant() {
            return false;
          }
        }, {
          key: "visitExpression",
          value: function visitExpression(visitor, context) {
            return visitor.visitReadVarExpr(this, context);
          }
        }, {
          key: "set",
          value: function set(value) {
            if (!this.name) {
              throw new Error("Built in variable ".concat(this.builtin, " can not be assigned to."));
            }

            return new WriteVarExpr(this.name, value, null, this.sourceSpan);
          }
        }]);

        return ReadVarExpr;
      }(Expression);

      var TypeofExpr = /*#__PURE__*/function (_Expression2) {
        _inherits2(TypeofExpr, _Expression2);

        var _super16 = _createSuper2(TypeofExpr);

        function TypeofExpr(expr, type, sourceSpan) {
          var _this55;

          _classCallCheck2(this, TypeofExpr);

          _this55 = _super16.call(this, type, sourceSpan);
          _this55.expr = expr;
          return _this55;
        }

        _createClass2(TypeofExpr, [{
          key: "visitExpression",
          value: function visitExpression(visitor, context) {
            return visitor.visitTypeofExpr(this, context);
          }
        }, {
          key: "isEquivalent",
          value: function isEquivalent(e) {
            return e instanceof TypeofExpr && e.expr.isEquivalent(this.expr);
          }
        }, {
          key: "isConstant",
          value: function isConstant() {
            return this.expr.isConstant();
          }
        }]);

        return TypeofExpr;
      }(Expression);

      var WrappedNodeExpr = /*#__PURE__*/function (_Expression3) {
        _inherits2(WrappedNodeExpr, _Expression3);

        var _super17 = _createSuper2(WrappedNodeExpr);

        function WrappedNodeExpr(node, type, sourceSpan) {
          var _this56;

          _classCallCheck2(this, WrappedNodeExpr);

          _this56 = _super17.call(this, type, sourceSpan);
          _this56.node = node;
          return _this56;
        }

        _createClass2(WrappedNodeExpr, [{
          key: "isEquivalent",
          value: function isEquivalent(e) {
            return e instanceof WrappedNodeExpr && this.node === e.node;
          }
        }, {
          key: "isConstant",
          value: function isConstant() {
            return false;
          }
        }, {
          key: "visitExpression",
          value: function visitExpression(visitor, context) {
            return visitor.visitWrappedNodeExpr(this, context);
          }
        }]);

        return WrappedNodeExpr;
      }(Expression);

      var WriteVarExpr = /*#__PURE__*/function (_Expression4) {
        _inherits2(WriteVarExpr, _Expression4);

        var _super18 = _createSuper2(WriteVarExpr);

        function WriteVarExpr(name, value, type, sourceSpan) {
          var _this57;

          _classCallCheck2(this, WriteVarExpr);

          _this57 = _super18.call(this, type || value.type, sourceSpan);
          _this57.name = name;
          _this57.value = value;
          return _this57;
        }

        _createClass2(WriteVarExpr, [{
          key: "isEquivalent",
          value: function isEquivalent(e) {
            return e instanceof WriteVarExpr && this.name === e.name && this.value.isEquivalent(e.value);
          }
        }, {
          key: "isConstant",
          value: function isConstant() {
            return false;
          }
        }, {
          key: "visitExpression",
          value: function visitExpression(visitor, context) {
            return visitor.visitWriteVarExpr(this, context);
          }
        }, {
          key: "toDeclStmt",
          value: function toDeclStmt(type, modifiers) {
            return new DeclareVarStmt(this.name, this.value, type, modifiers, this.sourceSpan);
          }
        }, {
          key: "toConstDecl",
          value: function toConstDecl() {
            return this.toDeclStmt(INFERRED_TYPE, [StmtModifier.Final]);
          }
        }]);

        return WriteVarExpr;
      }(Expression);

      var WriteKeyExpr = /*#__PURE__*/function (_Expression5) {
        _inherits2(WriteKeyExpr, _Expression5);

        var _super19 = _createSuper2(WriteKeyExpr);

        function WriteKeyExpr(receiver, index, value, type, sourceSpan) {
          var _this58;

          _classCallCheck2(this, WriteKeyExpr);

          _this58 = _super19.call(this, type || value.type, sourceSpan);
          _this58.receiver = receiver;
          _this58.index = index;
          _this58.value = value;
          return _this58;
        }

        _createClass2(WriteKeyExpr, [{
          key: "isEquivalent",
          value: function isEquivalent(e) {
            return e instanceof WriteKeyExpr && this.receiver.isEquivalent(e.receiver) && this.index.isEquivalent(e.index) && this.value.isEquivalent(e.value);
          }
        }, {
          key: "isConstant",
          value: function isConstant() {
            return false;
          }
        }, {
          key: "visitExpression",
          value: function visitExpression(visitor, context) {
            return visitor.visitWriteKeyExpr(this, context);
          }
        }]);

        return WriteKeyExpr;
      }(Expression);

      var WritePropExpr = /*#__PURE__*/function (_Expression6) {
        _inherits2(WritePropExpr, _Expression6);

        var _super20 = _createSuper2(WritePropExpr);

        function WritePropExpr(receiver, name, value, type, sourceSpan) {
          var _this59;

          _classCallCheck2(this, WritePropExpr);

          _this59 = _super20.call(this, type || value.type, sourceSpan);
          _this59.receiver = receiver;
          _this59.name = name;
          _this59.value = value;
          return _this59;
        }

        _createClass2(WritePropExpr, [{
          key: "isEquivalent",
          value: function isEquivalent(e) {
            return e instanceof WritePropExpr && this.receiver.isEquivalent(e.receiver) && this.name === e.name && this.value.isEquivalent(e.value);
          }
        }, {
          key: "isConstant",
          value: function isConstant() {
            return false;
          }
        }, {
          key: "visitExpression",
          value: function visitExpression(visitor, context) {
            return visitor.visitWritePropExpr(this, context);
          }
        }]);

        return WritePropExpr;
      }(Expression);

      var BuiltinMethod;

      (function (BuiltinMethod) {
        BuiltinMethod[BuiltinMethod["ConcatArray"] = 0] = "ConcatArray";
        BuiltinMethod[BuiltinMethod["SubscribeObservable"] = 1] = "SubscribeObservable";
        BuiltinMethod[BuiltinMethod["Bind"] = 2] = "Bind";
      })(BuiltinMethod || (BuiltinMethod = {}));

      var InvokeMethodExpr = /*#__PURE__*/function (_Expression7) {
        _inherits2(InvokeMethodExpr, _Expression7);

        var _super21 = _createSuper2(InvokeMethodExpr);

        function InvokeMethodExpr(receiver, method, args, type, sourceSpan) {
          var _this60;

          _classCallCheck2(this, InvokeMethodExpr);

          _this60 = _super21.call(this, type, sourceSpan);
          _this60.receiver = receiver;
          _this60.args = args;

          if (typeof method === 'string') {
            _this60.name = method;
            _this60.builtin = null;
          } else {
            _this60.name = null;
            _this60.builtin = method;
          }

          return _this60;
        }

        _createClass2(InvokeMethodExpr, [{
          key: "isEquivalent",
          value: function isEquivalent(e) {
            return e instanceof InvokeMethodExpr && this.receiver.isEquivalent(e.receiver) && this.name === e.name && this.builtin === e.builtin && areAllEquivalent(this.args, e.args);
          }
        }, {
          key: "isConstant",
          value: function isConstant() {
            return false;
          }
        }, {
          key: "visitExpression",
          value: function visitExpression(visitor, context) {
            return visitor.visitInvokeMethodExpr(this, context);
          }
        }]);

        return InvokeMethodExpr;
      }(Expression);

      var InvokeFunctionExpr = /*#__PURE__*/function (_Expression8) {
        _inherits2(InvokeFunctionExpr, _Expression8);

        var _super22 = _createSuper2(InvokeFunctionExpr);

        function InvokeFunctionExpr(fn, args, type, sourceSpan) {
          var _this61;

          var pure = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;

          _classCallCheck2(this, InvokeFunctionExpr);

          _this61 = _super22.call(this, type, sourceSpan);
          _this61.fn = fn;
          _this61.args = args;
          _this61.pure = pure;
          return _this61;
        }

        _createClass2(InvokeFunctionExpr, [{
          key: "isEquivalent",
          value: function isEquivalent(e) {
            return e instanceof InvokeFunctionExpr && this.fn.isEquivalent(e.fn) && areAllEquivalent(this.args, e.args) && this.pure === e.pure;
          }
        }, {
          key: "isConstant",
          value: function isConstant() {
            return false;
          }
        }, {
          key: "visitExpression",
          value: function visitExpression(visitor, context) {
            return visitor.visitInvokeFunctionExpr(this, context);
          }
        }]);

        return InvokeFunctionExpr;
      }(Expression);

      var InstantiateExpr = /*#__PURE__*/function (_Expression9) {
        _inherits2(InstantiateExpr, _Expression9);

        var _super23 = _createSuper2(InstantiateExpr);

        function InstantiateExpr(classExpr, args, type, sourceSpan) {
          var _this62;

          _classCallCheck2(this, InstantiateExpr);

          _this62 = _super23.call(this, type, sourceSpan);
          _this62.classExpr = classExpr;
          _this62.args = args;
          return _this62;
        }

        _createClass2(InstantiateExpr, [{
          key: "isEquivalent",
          value: function isEquivalent(e) {
            return e instanceof InstantiateExpr && this.classExpr.isEquivalent(e.classExpr) && areAllEquivalent(this.args, e.args);
          }
        }, {
          key: "isConstant",
          value: function isConstant() {
            return false;
          }
        }, {
          key: "visitExpression",
          value: function visitExpression(visitor, context) {
            return visitor.visitInstantiateExpr(this, context);
          }
        }]);

        return InstantiateExpr;
      }(Expression);

      var LiteralExpr = /*#__PURE__*/function (_Expression10) {
        _inherits2(LiteralExpr, _Expression10);

        var _super24 = _createSuper2(LiteralExpr);

        function LiteralExpr(value, type, sourceSpan) {
          var _this63;

          _classCallCheck2(this, LiteralExpr);

          _this63 = _super24.call(this, type, sourceSpan);
          _this63.value = value;
          return _this63;
        }

        _createClass2(LiteralExpr, [{
          key: "isEquivalent",
          value: function isEquivalent(e) {
            return e instanceof LiteralExpr && this.value === e.value;
          }
        }, {
          key: "isConstant",
          value: function isConstant() {
            return true;
          }
        }, {
          key: "visitExpression",
          value: function visitExpression(visitor, context) {
            return visitor.visitLiteralExpr(this, context);
          }
        }]);

        return LiteralExpr;
      }(Expression);

      var MessagePiece = function MessagePiece(text, sourceSpan) {
        _classCallCheck2(this, MessagePiece);

        this.text = text;
        this.sourceSpan = sourceSpan;
      };

      var LiteralPiece = /*#__PURE__*/function (_MessagePiece) {
        _inherits2(LiteralPiece, _MessagePiece);

        var _super25 = _createSuper2(LiteralPiece);

        function LiteralPiece() {
          _classCallCheck2(this, LiteralPiece);

          return _super25.apply(this, arguments);
        }

        return LiteralPiece;
      }(MessagePiece);

      var PlaceholderPiece = /*#__PURE__*/function (_MessagePiece2) {
        _inherits2(PlaceholderPiece, _MessagePiece2);

        var _super26 = _createSuper2(PlaceholderPiece);

        function PlaceholderPiece() {
          _classCallCheck2(this, PlaceholderPiece);

          return _super26.apply(this, arguments);
        }

        return PlaceholderPiece;
      }(MessagePiece);

      var LocalizedString = /*#__PURE__*/function (_Expression11) {
        _inherits2(LocalizedString, _Expression11);

        var _super27 = _createSuper2(LocalizedString);

        function LocalizedString(metaBlock, messageParts, placeHolderNames, expressions, sourceSpan) {
          var _this64;

          _classCallCheck2(this, LocalizedString);

          _this64 = _super27.call(this, STRING_TYPE, sourceSpan);
          _this64.metaBlock = metaBlock;
          _this64.messageParts = messageParts;
          _this64.placeHolderNames = placeHolderNames;
          _this64.expressions = expressions;
          return _this64;
        }

        _createClass2(LocalizedString, [{
          key: "isEquivalent",
          value: function isEquivalent(e) {
            // return e instanceof LocalizedString && this.message === e.message;
            return false;
          }
        }, {
          key: "isConstant",
          value: function isConstant() {
            return false;
          }
        }, {
          key: "visitExpression",
          value: function visitExpression(visitor, context) {
            return visitor.visitLocalizedString(this, context);
          }
          /**
           * Serialize the given `meta` and `messagePart` into "cooked" and "raw" strings that can be used
           * in a `$localize` tagged string. The format of the metadata is the same as that parsed by
           * `parseI18nMeta()`.
           *
           * @param meta The metadata to serialize
           * @param messagePart The first part of the tagged string
           */

        }, {
          key: "serializeI18nHead",
          value: function serializeI18nHead() {
            var MEANING_SEPARATOR = '|';
            var ID_SEPARATOR = '@@';
            var LEGACY_ID_INDICATOR = '␟';
            var metaBlock = this.metaBlock.description || '';

            if (this.metaBlock.meaning) {
              metaBlock = "".concat(this.metaBlock.meaning).concat(MEANING_SEPARATOR).concat(metaBlock);
            }

            if (this.metaBlock.customId) {
              metaBlock = "".concat(metaBlock).concat(ID_SEPARATOR).concat(this.metaBlock.customId);
            }

            if (this.metaBlock.legacyIds) {
              this.metaBlock.legacyIds.forEach(function (legacyId) {
                metaBlock = "".concat(metaBlock).concat(LEGACY_ID_INDICATOR).concat(legacyId);
              });
            }

            return createCookedRawString(metaBlock, this.messageParts[0].text, this.getMessagePartSourceSpan(0));
          }
        }, {
          key: "getMessagePartSourceSpan",
          value: function getMessagePartSourceSpan(i) {
            var _a, _b;

            return (_b = (_a = this.messageParts[i]) === null || _a === void 0 ? void 0 : _a.sourceSpan) !== null && _b !== void 0 ? _b : this.sourceSpan;
          }
        }, {
          key: "getPlaceholderSourceSpan",
          value: function getPlaceholderSourceSpan(i) {
            var _a, _b, _c, _d;

            return (_d = (_b = (_a = this.placeHolderNames[i]) === null || _a === void 0 ? void 0 : _a.sourceSpan) !== null && _b !== void 0 ? _b : (_c = this.expressions[i]) === null || _c === void 0 ? void 0 : _c.sourceSpan) !== null && _d !== void 0 ? _d : this.sourceSpan;
          }
          /**
           * Serialize the given `placeholderName` and `messagePart` into "cooked" and "raw" strings that
           * can be used in a `$localize` tagged string.
           *
           * @param placeholderName The placeholder name to serialize
           * @param messagePart The following message string after this placeholder
           */

        }, {
          key: "serializeI18nTemplatePart",
          value: function serializeI18nTemplatePart(partIndex) {
            var placeholderName = this.placeHolderNames[partIndex - 1].text;
            var messagePart = this.messageParts[partIndex];
            return createCookedRawString(placeholderName, messagePart.text, this.getMessagePartSourceSpan(partIndex));
          }
        }]);

        return LocalizedString;
      }(Expression);

      var escapeSlashes = function escapeSlashes(str) {
        return str.replace(/\\/g, '\\\\');
      };

      var escapeStartingColon = function escapeStartingColon(str) {
        return str.replace(/^:/, '\\:');
      };

      var escapeColons = function escapeColons(str) {
        return str.replace(/:/g, '\\:');
      };

      var escapeForMessagePart = function escapeForMessagePart(str) {
        return str.replace(/`/g, '\\`').replace(/\${/g, '$\\{');
      };
      /**
       * Creates a `{cooked, raw}` object from the `metaBlock` and `messagePart`.
       *
       * The `raw` text must have various character sequences escaped:
       * * "\" would otherwise indicate that the next character is a control character.
       * * "`" and "${" are template string control sequences that would otherwise prematurely indicate
       *   the end of a message part.
       * * ":" inside a metablock would prematurely indicate the end of the metablock.
       * * ":" at the start of a messagePart with no metablock would erroneously indicate the start of a
       *   metablock.
       *
       * @param metaBlock Any metadata that should be prepended to the string
       * @param messagePart The message part of the string
       */


      function createCookedRawString(metaBlock, messagePart, range) {
        if (metaBlock === '') {
          return {
            cooked: messagePart,
            raw: escapeForMessagePart(escapeStartingColon(escapeSlashes(messagePart))),
            range: range
          };
        } else {
          return {
            cooked: ":".concat(metaBlock, ":").concat(messagePart),
            raw: escapeForMessagePart(":".concat(escapeColons(escapeSlashes(metaBlock)), ":").concat(escapeSlashes(messagePart))),
            range: range
          };
        }
      }

      var ExternalExpr = /*#__PURE__*/function (_Expression12) {
        _inherits2(ExternalExpr, _Expression12);

        var _super28 = _createSuper2(ExternalExpr);

        function ExternalExpr(value, type) {
          var _this65;

          var typeParams = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
          var sourceSpan = arguments.length > 3 ? arguments[3] : undefined;

          _classCallCheck2(this, ExternalExpr);

          _this65 = _super28.call(this, type, sourceSpan);
          _this65.value = value;
          _this65.typeParams = typeParams;
          return _this65;
        }

        _createClass2(ExternalExpr, [{
          key: "isEquivalent",
          value: function isEquivalent(e) {
            return e instanceof ExternalExpr && this.value.name === e.value.name && this.value.moduleName === e.value.moduleName && this.value.runtime === e.value.runtime;
          }
        }, {
          key: "isConstant",
          value: function isConstant() {
            return false;
          }
        }, {
          key: "visitExpression",
          value: function visitExpression(visitor, context) {
            return visitor.visitExternalExpr(this, context);
          }
        }]);

        return ExternalExpr;
      }(Expression);

      var ExternalReference = function ExternalReference(moduleName, name, runtime) {
        _classCallCheck2(this, ExternalReference);

        this.moduleName = moduleName;
        this.name = name;
        this.runtime = runtime;
      };

      var ConditionalExpr = /*#__PURE__*/function (_Expression13) {
        _inherits2(ConditionalExpr, _Expression13);

        var _super29 = _createSuper2(ConditionalExpr);

        function ConditionalExpr(condition, trueCase) {
          var _this66;

          var falseCase = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
          var type = arguments.length > 3 ? arguments[3] : undefined;
          var sourceSpan = arguments.length > 4 ? arguments[4] : undefined;

          _classCallCheck2(this, ConditionalExpr);

          _this66 = _super29.call(this, type || trueCase.type, sourceSpan);
          _this66.condition = condition;
          _this66.falseCase = falseCase;
          _this66.trueCase = trueCase;
          return _this66;
        }

        _createClass2(ConditionalExpr, [{
          key: "isEquivalent",
          value: function isEquivalent(e) {
            return e instanceof ConditionalExpr && this.condition.isEquivalent(e.condition) && this.trueCase.isEquivalent(e.trueCase) && nullSafeIsEquivalent(this.falseCase, e.falseCase);
          }
        }, {
          key: "isConstant",
          value: function isConstant() {
            return false;
          }
        }, {
          key: "visitExpression",
          value: function visitExpression(visitor, context) {
            return visitor.visitConditionalExpr(this, context);
          }
        }]);

        return ConditionalExpr;
      }(Expression);

      var NotExpr = /*#__PURE__*/function (_Expression14) {
        _inherits2(NotExpr, _Expression14);

        var _super30 = _createSuper2(NotExpr);

        function NotExpr(condition, sourceSpan) {
          var _this67;

          _classCallCheck2(this, NotExpr);

          _this67 = _super30.call(this, BOOL_TYPE, sourceSpan);
          _this67.condition = condition;
          return _this67;
        }

        _createClass2(NotExpr, [{
          key: "isEquivalent",
          value: function isEquivalent(e) {
            return e instanceof NotExpr && this.condition.isEquivalent(e.condition);
          }
        }, {
          key: "isConstant",
          value: function isConstant() {
            return false;
          }
        }, {
          key: "visitExpression",
          value: function visitExpression(visitor, context) {
            return visitor.visitNotExpr(this, context);
          }
        }]);

        return NotExpr;
      }(Expression);

      var AssertNotNull = /*#__PURE__*/function (_Expression15) {
        _inherits2(AssertNotNull, _Expression15);

        var _super31 = _createSuper2(AssertNotNull);

        function AssertNotNull(condition, sourceSpan) {
          var _this68;

          _classCallCheck2(this, AssertNotNull);

          _this68 = _super31.call(this, condition.type, sourceSpan);
          _this68.condition = condition;
          return _this68;
        }

        _createClass2(AssertNotNull, [{
          key: "isEquivalent",
          value: function isEquivalent(e) {
            return e instanceof AssertNotNull && this.condition.isEquivalent(e.condition);
          }
        }, {
          key: "isConstant",
          value: function isConstant() {
            return false;
          }
        }, {
          key: "visitExpression",
          value: function visitExpression(visitor, context) {
            return visitor.visitAssertNotNullExpr(this, context);
          }
        }]);

        return AssertNotNull;
      }(Expression);

      var CastExpr = /*#__PURE__*/function (_Expression16) {
        _inherits2(CastExpr, _Expression16);

        var _super32 = _createSuper2(CastExpr);

        function CastExpr(value, type, sourceSpan) {
          var _this69;

          _classCallCheck2(this, CastExpr);

          _this69 = _super32.call(this, type, sourceSpan);
          _this69.value = value;
          return _this69;
        }

        _createClass2(CastExpr, [{
          key: "isEquivalent",
          value: function isEquivalent(e) {
            return e instanceof CastExpr && this.value.isEquivalent(e.value);
          }
        }, {
          key: "isConstant",
          value: function isConstant() {
            return false;
          }
        }, {
          key: "visitExpression",
          value: function visitExpression(visitor, context) {
            return visitor.visitCastExpr(this, context);
          }
        }]);

        return CastExpr;
      }(Expression);

      var FnParam = /*#__PURE__*/function () {
        function FnParam(name) {
          var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;

          _classCallCheck2(this, FnParam);

          this.name = name;
          this.type = type;
        }

        _createClass2(FnParam, [{
          key: "isEquivalent",
          value: function isEquivalent(param) {
            return this.name === param.name;
          }
        }]);

        return FnParam;
      }();

      var FunctionExpr = /*#__PURE__*/function (_Expression17) {
        _inherits2(FunctionExpr, _Expression17);

        var _super33 = _createSuper2(FunctionExpr);

        function FunctionExpr(params, statements, type, sourceSpan, name) {
          var _this70;

          _classCallCheck2(this, FunctionExpr);

          _this70 = _super33.call(this, type, sourceSpan);
          _this70.params = params;
          _this70.statements = statements;
          _this70.name = name;
          return _this70;
        }

        _createClass2(FunctionExpr, [{
          key: "isEquivalent",
          value: function isEquivalent(e) {
            return e instanceof FunctionExpr && areAllEquivalent(this.params, e.params) && areAllEquivalent(this.statements, e.statements);
          }
        }, {
          key: "isConstant",
          value: function isConstant() {
            return false;
          }
        }, {
          key: "visitExpression",
          value: function visitExpression(visitor, context) {
            return visitor.visitFunctionExpr(this, context);
          }
        }, {
          key: "toDeclStmt",
          value: function toDeclStmt(name, modifiers) {
            return new DeclareFunctionStmt(name, this.params, this.statements, this.type, modifiers, this.sourceSpan);
          }
        }]);

        return FunctionExpr;
      }(Expression);

      var UnaryOperatorExpr = /*#__PURE__*/function (_Expression18) {
        _inherits2(UnaryOperatorExpr, _Expression18);

        var _super34 = _createSuper2(UnaryOperatorExpr);

        function UnaryOperatorExpr(operator, expr, type, sourceSpan) {
          var _this71;

          var parens = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;

          _classCallCheck2(this, UnaryOperatorExpr);

          _this71 = _super34.call(this, type || NUMBER_TYPE, sourceSpan);
          _this71.operator = operator;
          _this71.expr = expr;
          _this71.parens = parens;
          return _this71;
        }

        _createClass2(UnaryOperatorExpr, [{
          key: "isEquivalent",
          value: function isEquivalent(e) {
            return e instanceof UnaryOperatorExpr && this.operator === e.operator && this.expr.isEquivalent(e.expr);
          }
        }, {
          key: "isConstant",
          value: function isConstant() {
            return false;
          }
        }, {
          key: "visitExpression",
          value: function visitExpression(visitor, context) {
            return visitor.visitUnaryOperatorExpr(this, context);
          }
        }]);

        return UnaryOperatorExpr;
      }(Expression);

      var BinaryOperatorExpr = /*#__PURE__*/function (_Expression19) {
        _inherits2(BinaryOperatorExpr, _Expression19);

        var _super35 = _createSuper2(BinaryOperatorExpr);

        function BinaryOperatorExpr(operator, lhs, rhs, type, sourceSpan) {
          var _this72;

          var parens = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : true;

          _classCallCheck2(this, BinaryOperatorExpr);

          _this72 = _super35.call(this, type || lhs.type, sourceSpan);
          _this72.operator = operator;
          _this72.rhs = rhs;
          _this72.parens = parens;
          _this72.lhs = lhs;
          return _this72;
        }

        _createClass2(BinaryOperatorExpr, [{
          key: "isEquivalent",
          value: function isEquivalent(e) {
            return e instanceof BinaryOperatorExpr && this.operator === e.operator && this.lhs.isEquivalent(e.lhs) && this.rhs.isEquivalent(e.rhs);
          }
        }, {
          key: "isConstant",
          value: function isConstant() {
            return false;
          }
        }, {
          key: "visitExpression",
          value: function visitExpression(visitor, context) {
            return visitor.visitBinaryOperatorExpr(this, context);
          }
        }]);

        return BinaryOperatorExpr;
      }(Expression);

      var ReadPropExpr = /*#__PURE__*/function (_Expression20) {
        _inherits2(ReadPropExpr, _Expression20);

        var _super36 = _createSuper2(ReadPropExpr);

        function ReadPropExpr(receiver, name, type, sourceSpan) {
          var _this73;

          _classCallCheck2(this, ReadPropExpr);

          _this73 = _super36.call(this, type, sourceSpan);
          _this73.receiver = receiver;
          _this73.name = name;
          return _this73;
        }

        _createClass2(ReadPropExpr, [{
          key: "isEquivalent",
          value: function isEquivalent(e) {
            return e instanceof ReadPropExpr && this.receiver.isEquivalent(e.receiver) && this.name === e.name;
          }
        }, {
          key: "isConstant",
          value: function isConstant() {
            return false;
          }
        }, {
          key: "visitExpression",
          value: function visitExpression(visitor, context) {
            return visitor.visitReadPropExpr(this, context);
          }
        }, {
          key: "set",
          value: function set(value) {
            return new WritePropExpr(this.receiver, this.name, value, null, this.sourceSpan);
          }
        }]);

        return ReadPropExpr;
      }(Expression);

      var ReadKeyExpr = /*#__PURE__*/function (_Expression21) {
        _inherits2(ReadKeyExpr, _Expression21);

        var _super37 = _createSuper2(ReadKeyExpr);

        function ReadKeyExpr(receiver, index, type, sourceSpan) {
          var _this74;

          _classCallCheck2(this, ReadKeyExpr);

          _this74 = _super37.call(this, type, sourceSpan);
          _this74.receiver = receiver;
          _this74.index = index;
          return _this74;
        }

        _createClass2(ReadKeyExpr, [{
          key: "isEquivalent",
          value: function isEquivalent(e) {
            return e instanceof ReadKeyExpr && this.receiver.isEquivalent(e.receiver) && this.index.isEquivalent(e.index);
          }
        }, {
          key: "isConstant",
          value: function isConstant() {
            return false;
          }
        }, {
          key: "visitExpression",
          value: function visitExpression(visitor, context) {
            return visitor.visitReadKeyExpr(this, context);
          }
        }, {
          key: "set",
          value: function set(value) {
            return new WriteKeyExpr(this.receiver, this.index, value, null, this.sourceSpan);
          }
        }]);

        return ReadKeyExpr;
      }(Expression);

      var LiteralArrayExpr = /*#__PURE__*/function (_Expression22) {
        _inherits2(LiteralArrayExpr, _Expression22);

        var _super38 = _createSuper2(LiteralArrayExpr);

        function LiteralArrayExpr(entries, type, sourceSpan) {
          var _this75;

          _classCallCheck2(this, LiteralArrayExpr);

          _this75 = _super38.call(this, type, sourceSpan);
          _this75.entries = entries;
          return _this75;
        }

        _createClass2(LiteralArrayExpr, [{
          key: "isConstant",
          value: function isConstant() {
            return this.entries.every(function (e) {
              return e.isConstant();
            });
          }
        }, {
          key: "isEquivalent",
          value: function isEquivalent(e) {
            return e instanceof LiteralArrayExpr && areAllEquivalent(this.entries, e.entries);
          }
        }, {
          key: "visitExpression",
          value: function visitExpression(visitor, context) {
            return visitor.visitLiteralArrayExpr(this, context);
          }
        }]);

        return LiteralArrayExpr;
      }(Expression);

      var LiteralMapEntry = /*#__PURE__*/function () {
        function LiteralMapEntry(key, value, quoted) {
          _classCallCheck2(this, LiteralMapEntry);

          this.key = key;
          this.value = value;
          this.quoted = quoted;
        }

        _createClass2(LiteralMapEntry, [{
          key: "isEquivalent",
          value: function isEquivalent(e) {
            return this.key === e.key && this.value.isEquivalent(e.value);
          }
        }]);

        return LiteralMapEntry;
      }();

      var LiteralMapExpr = /*#__PURE__*/function (_Expression23) {
        _inherits2(LiteralMapExpr, _Expression23);

        var _super39 = _createSuper2(LiteralMapExpr);

        function LiteralMapExpr(entries, type, sourceSpan) {
          var _this76;

          _classCallCheck2(this, LiteralMapExpr);

          _this76 = _super39.call(this, type, sourceSpan);
          _this76.entries = entries;
          _this76.valueType = null;

          if (type) {
            _this76.valueType = type.valueType;
          }

          return _this76;
        }

        _createClass2(LiteralMapExpr, [{
          key: "isEquivalent",
          value: function isEquivalent(e) {
            return e instanceof LiteralMapExpr && areAllEquivalent(this.entries, e.entries);
          }
        }, {
          key: "isConstant",
          value: function isConstant() {
            return this.entries.every(function (e) {
              return e.value.isConstant();
            });
          }
        }, {
          key: "visitExpression",
          value: function visitExpression(visitor, context) {
            return visitor.visitLiteralMapExpr(this, context);
          }
        }]);

        return LiteralMapExpr;
      }(Expression);

      var CommaExpr = /*#__PURE__*/function (_Expression24) {
        _inherits2(CommaExpr, _Expression24);

        var _super40 = _createSuper2(CommaExpr);

        function CommaExpr(parts, sourceSpan) {
          var _this77;

          _classCallCheck2(this, CommaExpr);

          _this77 = _super40.call(this, parts[parts.length - 1].type, sourceSpan);
          _this77.parts = parts;
          return _this77;
        }

        _createClass2(CommaExpr, [{
          key: "isEquivalent",
          value: function isEquivalent(e) {
            return e instanceof CommaExpr && areAllEquivalent(this.parts, e.parts);
          }
        }, {
          key: "isConstant",
          value: function isConstant() {
            return false;
          }
        }, {
          key: "visitExpression",
          value: function visitExpression(visitor, context) {
            return visitor.visitCommaExpr(this, context);
          }
        }]);

        return CommaExpr;
      }(Expression);

      var THIS_EXPR = new ReadVarExpr(BuiltinVar.This, null, null);
      var SUPER_EXPR = new ReadVarExpr(BuiltinVar.Super, null, null);
      var CATCH_ERROR_VAR = new ReadVarExpr(BuiltinVar.CatchError, null, null);
      var CATCH_STACK_VAR = new ReadVarExpr(BuiltinVar.CatchStack, null, null);
      var NULL_EXPR = new LiteralExpr(null, null, null);
      var TYPED_NULL_EXPR = new LiteralExpr(null, INFERRED_TYPE, null); //// Statements

      var StmtModifier;

      (function (StmtModifier) {
        StmtModifier[StmtModifier["Final"] = 0] = "Final";
        StmtModifier[StmtModifier["Private"] = 1] = "Private";
        StmtModifier[StmtModifier["Exported"] = 2] = "Exported";
        StmtModifier[StmtModifier["Static"] = 3] = "Static";
      })(StmtModifier || (StmtModifier = {}));

      var LeadingComment = /*#__PURE__*/function () {
        function LeadingComment(text, multiline, trailingNewline) {
          _classCallCheck2(this, LeadingComment);

          this.text = text;
          this.multiline = multiline;
          this.trailingNewline = trailingNewline;
        }

        _createClass2(LeadingComment, [{
          key: "toString",
          value: function toString() {
            return this.multiline ? " ".concat(this.text, " ") : this.text;
          }
        }]);

        return LeadingComment;
      }();

      var JSDocComment = /*#__PURE__*/function (_LeadingComment) {
        _inherits2(JSDocComment, _LeadingComment);

        var _super41 = _createSuper2(JSDocComment);

        function JSDocComment(tags) {
          var _this78;

          _classCallCheck2(this, JSDocComment);

          _this78 = _super41.call(this, '',
          /* multiline */
          true,
          /* trailingNewline */
          true);
          _this78.tags = tags;
          return _this78;
        }

        _createClass2(JSDocComment, [{
          key: "toString",
          value: function toString() {
            return serializeTags(this.tags);
          }
        }]);

        return JSDocComment;
      }(LeadingComment);

      var Statement = /*#__PURE__*/function () {
        function Statement() {
          var modifiers = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
          var sourceSpan = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
          var leadingComments = arguments.length > 2 ? arguments[2] : undefined;

          _classCallCheck2(this, Statement);

          this.modifiers = modifiers;
          this.sourceSpan = sourceSpan;
          this.leadingComments = leadingComments;
        }

        _createClass2(Statement, [{
          key: "hasModifier",
          value: function hasModifier(modifier) {
            return this.modifiers.indexOf(modifier) !== -1;
          }
        }, {
          key: "addLeadingComment",
          value: function addLeadingComment(leadingComment) {
            var _a;

            this.leadingComments = (_a = this.leadingComments) !== null && _a !== void 0 ? _a : [];
            this.leadingComments.push(leadingComment);
          }
        }]);

        return Statement;
      }();

      var DeclareVarStmt = /*#__PURE__*/function (_Statement) {
        _inherits2(DeclareVarStmt, _Statement);

        var _super42 = _createSuper2(DeclareVarStmt);

        function DeclareVarStmt(name, value, type, modifiers, sourceSpan, leadingComments) {
          var _this79;

          _classCallCheck2(this, DeclareVarStmt);

          _this79 = _super42.call(this, modifiers, sourceSpan, leadingComments);
          _this79.name = name;
          _this79.value = value;
          _this79.type = type || value && value.type || null;
          return _this79;
        }

        _createClass2(DeclareVarStmt, [{
          key: "isEquivalent",
          value: function isEquivalent(stmt) {
            return stmt instanceof DeclareVarStmt && this.name === stmt.name && (this.value ? !!stmt.value && this.value.isEquivalent(stmt.value) : !stmt.value);
          }
        }, {
          key: "visitStatement",
          value: function visitStatement(visitor, context) {
            return visitor.visitDeclareVarStmt(this, context);
          }
        }]);

        return DeclareVarStmt;
      }(Statement);

      var DeclareFunctionStmt = /*#__PURE__*/function (_Statement2) {
        _inherits2(DeclareFunctionStmt, _Statement2);

        var _super43 = _createSuper2(DeclareFunctionStmt);

        function DeclareFunctionStmt(name, params, statements, type, modifiers, sourceSpan, leadingComments) {
          var _this80;

          _classCallCheck2(this, DeclareFunctionStmt);

          _this80 = _super43.call(this, modifiers, sourceSpan, leadingComments);
          _this80.name = name;
          _this80.params = params;
          _this80.statements = statements;
          _this80.type = type || null;
          return _this80;
        }

        _createClass2(DeclareFunctionStmt, [{
          key: "isEquivalent",
          value: function isEquivalent(stmt) {
            return stmt instanceof DeclareFunctionStmt && areAllEquivalent(this.params, stmt.params) && areAllEquivalent(this.statements, stmt.statements);
          }
        }, {
          key: "visitStatement",
          value: function visitStatement(visitor, context) {
            return visitor.visitDeclareFunctionStmt(this, context);
          }
        }]);

        return DeclareFunctionStmt;
      }(Statement);

      var ExpressionStatement = /*#__PURE__*/function (_Statement3) {
        _inherits2(ExpressionStatement, _Statement3);

        var _super44 = _createSuper2(ExpressionStatement);

        function ExpressionStatement(expr, sourceSpan, leadingComments) {
          var _this81;

          _classCallCheck2(this, ExpressionStatement);

          _this81 = _super44.call(this, [], sourceSpan, leadingComments);
          _this81.expr = expr;
          return _this81;
        }

        _createClass2(ExpressionStatement, [{
          key: "isEquivalent",
          value: function isEquivalent(stmt) {
            return stmt instanceof ExpressionStatement && this.expr.isEquivalent(stmt.expr);
          }
        }, {
          key: "visitStatement",
          value: function visitStatement(visitor, context) {
            return visitor.visitExpressionStmt(this, context);
          }
        }]);

        return ExpressionStatement;
      }(Statement);

      var ReturnStatement = /*#__PURE__*/function (_Statement4) {
        _inherits2(ReturnStatement, _Statement4);

        var _super45 = _createSuper2(ReturnStatement);

        function ReturnStatement(value) {
          var _this82;

          var sourceSpan = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
          var leadingComments = arguments.length > 2 ? arguments[2] : undefined;

          _classCallCheck2(this, ReturnStatement);

          _this82 = _super45.call(this, [], sourceSpan, leadingComments);
          _this82.value = value;
          return _this82;
        }

        _createClass2(ReturnStatement, [{
          key: "isEquivalent",
          value: function isEquivalent(stmt) {
            return stmt instanceof ReturnStatement && this.value.isEquivalent(stmt.value);
          }
        }, {
          key: "visitStatement",
          value: function visitStatement(visitor, context) {
            return visitor.visitReturnStmt(this, context);
          }
        }]);

        return ReturnStatement;
      }(Statement);

      var AbstractClassPart = /*#__PURE__*/function () {
        function AbstractClassPart() {
          var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
          var modifiers = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];

          _classCallCheck2(this, AbstractClassPart);

          this.type = type;
          this.modifiers = modifiers;
        }

        _createClass2(AbstractClassPart, [{
          key: "hasModifier",
          value: function hasModifier(modifier) {
            return this.modifiers.indexOf(modifier) !== -1;
          }
        }]);

        return AbstractClassPart;
      }();

      var ClassField = /*#__PURE__*/function (_AbstractClassPart) {
        _inherits2(ClassField, _AbstractClassPart);

        var _super46 = _createSuper2(ClassField);

        function ClassField(name, type, modifiers, initializer) {
          var _this83;

          _classCallCheck2(this, ClassField);

          _this83 = _super46.call(this, type, modifiers);
          _this83.name = name;
          _this83.initializer = initializer;
          return _this83;
        }

        _createClass2(ClassField, [{
          key: "isEquivalent",
          value: function isEquivalent(f) {
            return this.name === f.name;
          }
        }]);

        return ClassField;
      }(AbstractClassPart);

      var ClassMethod = /*#__PURE__*/function (_AbstractClassPart2) {
        _inherits2(ClassMethod, _AbstractClassPart2);

        var _super47 = _createSuper2(ClassMethod);

        function ClassMethod(name, params, body, type, modifiers) {
          var _this84;

          _classCallCheck2(this, ClassMethod);

          _this84 = _super47.call(this, type, modifiers);
          _this84.name = name;
          _this84.params = params;
          _this84.body = body;
          return _this84;
        }

        _createClass2(ClassMethod, [{
          key: "isEquivalent",
          value: function isEquivalent(m) {
            return this.name === m.name && areAllEquivalent(this.body, m.body);
          }
        }]);

        return ClassMethod;
      }(AbstractClassPart);

      var ClassGetter = /*#__PURE__*/function (_AbstractClassPart3) {
        _inherits2(ClassGetter, _AbstractClassPart3);

        var _super48 = _createSuper2(ClassGetter);

        function ClassGetter(name, body, type, modifiers) {
          var _this85;

          _classCallCheck2(this, ClassGetter);

          _this85 = _super48.call(this, type, modifiers);
          _this85.name = name;
          _this85.body = body;
          return _this85;
        }

        _createClass2(ClassGetter, [{
          key: "isEquivalent",
          value: function isEquivalent(m) {
            return this.name === m.name && areAllEquivalent(this.body, m.body);
          }
        }]);

        return ClassGetter;
      }(AbstractClassPart);

      var ClassStmt = /*#__PURE__*/function (_Statement5) {
        _inherits2(ClassStmt, _Statement5);

        var _super49 = _createSuper2(ClassStmt);

        function ClassStmt(name, parent, fields, getters, constructorMethod, methods, modifiers, sourceSpan, leadingComments) {
          var _this86;

          _classCallCheck2(this, ClassStmt);

          _this86 = _super49.call(this, modifiers, sourceSpan, leadingComments);
          _this86.name = name;
          _this86.parent = parent;
          _this86.fields = fields;
          _this86.getters = getters;
          _this86.constructorMethod = constructorMethod;
          _this86.methods = methods;
          return _this86;
        }

        _createClass2(ClassStmt, [{
          key: "isEquivalent",
          value: function isEquivalent(stmt) {
            return stmt instanceof ClassStmt && this.name === stmt.name && nullSafeIsEquivalent(this.parent, stmt.parent) && areAllEquivalent(this.fields, stmt.fields) && areAllEquivalent(this.getters, stmt.getters) && this.constructorMethod.isEquivalent(stmt.constructorMethod) && areAllEquivalent(this.methods, stmt.methods);
          }
        }, {
          key: "visitStatement",
          value: function visitStatement(visitor, context) {
            return visitor.visitDeclareClassStmt(this, context);
          }
        }]);

        return ClassStmt;
      }(Statement);

      var IfStmt = /*#__PURE__*/function (_Statement6) {
        _inherits2(IfStmt, _Statement6);

        var _super50 = _createSuper2(IfStmt);

        function IfStmt(condition, trueCase) {
          var _this87;

          var falseCase = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
          var sourceSpan = arguments.length > 3 ? arguments[3] : undefined;
          var leadingComments = arguments.length > 4 ? arguments[4] : undefined;

          _classCallCheck2(this, IfStmt);

          _this87 = _super50.call(this, [], sourceSpan, leadingComments);
          _this87.condition = condition;
          _this87.trueCase = trueCase;
          _this87.falseCase = falseCase;
          return _this87;
        }

        _createClass2(IfStmt, [{
          key: "isEquivalent",
          value: function isEquivalent(stmt) {
            return stmt instanceof IfStmt && this.condition.isEquivalent(stmt.condition) && areAllEquivalent(this.trueCase, stmt.trueCase) && areAllEquivalent(this.falseCase, stmt.falseCase);
          }
        }, {
          key: "visitStatement",
          value: function visitStatement(visitor, context) {
            return visitor.visitIfStmt(this, context);
          }
        }]);

        return IfStmt;
      }(Statement);

      var TryCatchStmt = /*#__PURE__*/function (_Statement7) {
        _inherits2(TryCatchStmt, _Statement7);

        var _super51 = _createSuper2(TryCatchStmt);

        function TryCatchStmt(bodyStmts, catchStmts) {
          var _this88;

          var sourceSpan = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
          var leadingComments = arguments.length > 3 ? arguments[3] : undefined;

          _classCallCheck2(this, TryCatchStmt);

          _this88 = _super51.call(this, [], sourceSpan, leadingComments);
          _this88.bodyStmts = bodyStmts;
          _this88.catchStmts = catchStmts;
          return _this88;
        }

        _createClass2(TryCatchStmt, [{
          key: "isEquivalent",
          value: function isEquivalent(stmt) {
            return stmt instanceof TryCatchStmt && areAllEquivalent(this.bodyStmts, stmt.bodyStmts) && areAllEquivalent(this.catchStmts, stmt.catchStmts);
          }
        }, {
          key: "visitStatement",
          value: function visitStatement(visitor, context) {
            return visitor.visitTryCatchStmt(this, context);
          }
        }]);

        return TryCatchStmt;
      }(Statement);

      var ThrowStmt = /*#__PURE__*/function (_Statement8) {
        _inherits2(ThrowStmt, _Statement8);

        var _super52 = _createSuper2(ThrowStmt);

        function ThrowStmt(error) {
          var _this89;

          var sourceSpan = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
          var leadingComments = arguments.length > 2 ? arguments[2] : undefined;

          _classCallCheck2(this, ThrowStmt);

          _this89 = _super52.call(this, [], sourceSpan, leadingComments);
          _this89.error = error;
          return _this89;
        }

        _createClass2(ThrowStmt, [{
          key: "isEquivalent",
          value: function isEquivalent(stmt) {
            return stmt instanceof TryCatchStmt && this.error.isEquivalent(stmt.error);
          }
        }, {
          key: "visitStatement",
          value: function visitStatement(visitor, context) {
            return visitor.visitThrowStmt(this, context);
          }
        }]);

        return ThrowStmt;
      }(Statement);

      var AstTransformer = /*#__PURE__*/function () {
        function AstTransformer() {
          _classCallCheck2(this, AstTransformer);
        }

        _createClass2(AstTransformer, [{
          key: "transformExpr",
          value: function transformExpr(expr, context) {
            return expr;
          }
        }, {
          key: "transformStmt",
          value: function transformStmt(stmt, context) {
            return stmt;
          }
        }, {
          key: "visitReadVarExpr",
          value: function visitReadVarExpr(ast, context) {
            return this.transformExpr(ast, context);
          }
        }, {
          key: "visitWrappedNodeExpr",
          value: function visitWrappedNodeExpr(ast, context) {
            return this.transformExpr(ast, context);
          }
        }, {
          key: "visitTypeofExpr",
          value: function visitTypeofExpr(expr, context) {
            return this.transformExpr(new TypeofExpr(expr.expr.visitExpression(this, context), expr.type, expr.sourceSpan), context);
          }
        }, {
          key: "visitWriteVarExpr",
          value: function visitWriteVarExpr(expr, context) {
            return this.transformExpr(new WriteVarExpr(expr.name, expr.value.visitExpression(this, context), expr.type, expr.sourceSpan), context);
          }
        }, {
          key: "visitWriteKeyExpr",
          value: function visitWriteKeyExpr(expr, context) {
            return this.transformExpr(new WriteKeyExpr(expr.receiver.visitExpression(this, context), expr.index.visitExpression(this, context), expr.value.visitExpression(this, context), expr.type, expr.sourceSpan), context);
          }
        }, {
          key: "visitWritePropExpr",
          value: function visitWritePropExpr(expr, context) {
            return this.transformExpr(new WritePropExpr(expr.receiver.visitExpression(this, context), expr.name, expr.value.visitExpression(this, context), expr.type, expr.sourceSpan), context);
          }
        }, {
          key: "visitInvokeMethodExpr",
          value: function visitInvokeMethodExpr(ast, context) {
            var method = ast.builtin || ast.name;
            return this.transformExpr(new InvokeMethodExpr(ast.receiver.visitExpression(this, context), method, this.visitAllExpressions(ast.args, context), ast.type, ast.sourceSpan), context);
          }
        }, {
          key: "visitInvokeFunctionExpr",
          value: function visitInvokeFunctionExpr(ast, context) {
            return this.transformExpr(new InvokeFunctionExpr(ast.fn.visitExpression(this, context), this.visitAllExpressions(ast.args, context), ast.type, ast.sourceSpan), context);
          }
        }, {
          key: "visitInstantiateExpr",
          value: function visitInstantiateExpr(ast, context) {
            return this.transformExpr(new InstantiateExpr(ast.classExpr.visitExpression(this, context), this.visitAllExpressions(ast.args, context), ast.type, ast.sourceSpan), context);
          }
        }, {
          key: "visitLiteralExpr",
          value: function visitLiteralExpr(ast, context) {
            return this.transformExpr(ast, context);
          }
        }, {
          key: "visitLocalizedString",
          value: function visitLocalizedString(ast, context) {
            return this.transformExpr(new LocalizedString(ast.metaBlock, ast.messageParts, ast.placeHolderNames, this.visitAllExpressions(ast.expressions, context), ast.sourceSpan), context);
          }
        }, {
          key: "visitExternalExpr",
          value: function visitExternalExpr(ast, context) {
            return this.transformExpr(ast, context);
          }
        }, {
          key: "visitConditionalExpr",
          value: function visitConditionalExpr(ast, context) {
            return this.transformExpr(new ConditionalExpr(ast.condition.visitExpression(this, context), ast.trueCase.visitExpression(this, context), ast.falseCase.visitExpression(this, context), ast.type, ast.sourceSpan), context);
          }
        }, {
          key: "visitNotExpr",
          value: function visitNotExpr(ast, context) {
            return this.transformExpr(new NotExpr(ast.condition.visitExpression(this, context), ast.sourceSpan), context);
          }
        }, {
          key: "visitAssertNotNullExpr",
          value: function visitAssertNotNullExpr(ast, context) {
            return this.transformExpr(new AssertNotNull(ast.condition.visitExpression(this, context), ast.sourceSpan), context);
          }
        }, {
          key: "visitCastExpr",
          value: function visitCastExpr(ast, context) {
            return this.transformExpr(new CastExpr(ast.value.visitExpression(this, context), ast.type, ast.sourceSpan), context);
          }
        }, {
          key: "visitFunctionExpr",
          value: function visitFunctionExpr(ast, context) {
            return this.transformExpr(new FunctionExpr(ast.params, this.visitAllStatements(ast.statements, context), ast.type, ast.sourceSpan), context);
          }
        }, {
          key: "visitUnaryOperatorExpr",
          value: function visitUnaryOperatorExpr(ast, context) {
            return this.transformExpr(new UnaryOperatorExpr(ast.operator, ast.expr.visitExpression(this, context), ast.type, ast.sourceSpan), context);
          }
        }, {
          key: "visitBinaryOperatorExpr",
          value: function visitBinaryOperatorExpr(ast, context) {
            return this.transformExpr(new BinaryOperatorExpr(ast.operator, ast.lhs.visitExpression(this, context), ast.rhs.visitExpression(this, context), ast.type, ast.sourceSpan), context);
          }
        }, {
          key: "visitReadPropExpr",
          value: function visitReadPropExpr(ast, context) {
            return this.transformExpr(new ReadPropExpr(ast.receiver.visitExpression(this, context), ast.name, ast.type, ast.sourceSpan), context);
          }
        }, {
          key: "visitReadKeyExpr",
          value: function visitReadKeyExpr(ast, context) {
            return this.transformExpr(new ReadKeyExpr(ast.receiver.visitExpression(this, context), ast.index.visitExpression(this, context), ast.type, ast.sourceSpan), context);
          }
        }, {
          key: "visitLiteralArrayExpr",
          value: function visitLiteralArrayExpr(ast, context) {
            return this.transformExpr(new LiteralArrayExpr(this.visitAllExpressions(ast.entries, context), ast.type, ast.sourceSpan), context);
          }
        }, {
          key: "visitLiteralMapExpr",
          value: function visitLiteralMapExpr(ast, context) {
            var _this90 = this;

            var entries = ast.entries.map(function (entry) {
              return new LiteralMapEntry(entry.key, entry.value.visitExpression(_this90, context), entry.quoted);
            });
            var mapType = new MapType(ast.valueType);
            return this.transformExpr(new LiteralMapExpr(entries, mapType, ast.sourceSpan), context);
          }
        }, {
          key: "visitCommaExpr",
          value: function visitCommaExpr(ast, context) {
            return this.transformExpr(new CommaExpr(this.visitAllExpressions(ast.parts, context), ast.sourceSpan), context);
          }
        }, {
          key: "visitAllExpressions",
          value: function visitAllExpressions(exprs, context) {
            var _this91 = this;

            return exprs.map(function (expr) {
              return expr.visitExpression(_this91, context);
            });
          }
        }, {
          key: "visitDeclareVarStmt",
          value: function visitDeclareVarStmt(stmt, context) {
            var value = stmt.value && stmt.value.visitExpression(this, context);
            return this.transformStmt(new DeclareVarStmt(stmt.name, value, stmt.type, stmt.modifiers, stmt.sourceSpan, stmt.leadingComments), context);
          }
        }, {
          key: "visitDeclareFunctionStmt",
          value: function visitDeclareFunctionStmt(stmt, context) {
            return this.transformStmt(new DeclareFunctionStmt(stmt.name, stmt.params, this.visitAllStatements(stmt.statements, context), stmt.type, stmt.modifiers, stmt.sourceSpan, stmt.leadingComments), context);
          }
        }, {
          key: "visitExpressionStmt",
          value: function visitExpressionStmt(stmt, context) {
            return this.transformStmt(new ExpressionStatement(stmt.expr.visitExpression(this, context), stmt.sourceSpan, stmt.leadingComments), context);
          }
        }, {
          key: "visitReturnStmt",
          value: function visitReturnStmt(stmt, context) {
            return this.transformStmt(new ReturnStatement(stmt.value.visitExpression(this, context), stmt.sourceSpan, stmt.leadingComments), context);
          }
        }, {
          key: "visitDeclareClassStmt",
          value: function visitDeclareClassStmt(stmt, context) {
            var _this92 = this;

            var parent = stmt.parent.visitExpression(this, context);
            var getters = stmt.getters.map(function (getter) {
              return new ClassGetter(getter.name, _this92.visitAllStatements(getter.body, context), getter.type, getter.modifiers);
            });
            var ctorMethod = stmt.constructorMethod && new ClassMethod(stmt.constructorMethod.name, stmt.constructorMethod.params, this.visitAllStatements(stmt.constructorMethod.body, context), stmt.constructorMethod.type, stmt.constructorMethod.modifiers);
            var methods = stmt.methods.map(function (method) {
              return new ClassMethod(method.name, method.params, _this92.visitAllStatements(method.body, context), method.type, method.modifiers);
            });
            return this.transformStmt(new ClassStmt(stmt.name, parent, stmt.fields, getters, ctorMethod, methods, stmt.modifiers, stmt.sourceSpan), context);
          }
        }, {
          key: "visitIfStmt",
          value: function visitIfStmt(stmt, context) {
            return this.transformStmt(new IfStmt(stmt.condition.visitExpression(this, context), this.visitAllStatements(stmt.trueCase, context), this.visitAllStatements(stmt.falseCase, context), stmt.sourceSpan, stmt.leadingComments), context);
          }
        }, {
          key: "visitTryCatchStmt",
          value: function visitTryCatchStmt(stmt, context) {
            return this.transformStmt(new TryCatchStmt(this.visitAllStatements(stmt.bodyStmts, context), this.visitAllStatements(stmt.catchStmts, context), stmt.sourceSpan, stmt.leadingComments), context);
          }
        }, {
          key: "visitThrowStmt",
          value: function visitThrowStmt(stmt, context) {
            return this.transformStmt(new ThrowStmt(stmt.error.visitExpression(this, context), stmt.sourceSpan, stmt.leadingComments), context);
          }
        }, {
          key: "visitAllStatements",
          value: function visitAllStatements(stmts, context) {
            var _this93 = this;

            return stmts.map(function (stmt) {
              return stmt.visitStatement(_this93, context);
            });
          }
        }]);

        return AstTransformer;
      }();

      var RecursiveAstVisitor = /*#__PURE__*/function () {
        function RecursiveAstVisitor() {
          _classCallCheck2(this, RecursiveAstVisitor);
        }

        _createClass2(RecursiveAstVisitor, [{
          key: "visitType",
          value: function visitType(ast, context) {
            return ast;
          }
        }, {
          key: "visitExpression",
          value: function visitExpression(ast, context) {
            if (ast.type) {
              ast.type.visitType(this, context);
            }

            return ast;
          }
        }, {
          key: "visitBuiltinType",
          value: function visitBuiltinType(type, context) {
            return this.visitType(type, context);
          }
        }, {
          key: "visitExpressionType",
          value: function visitExpressionType(type, context) {
            var _this94 = this;

            type.value.visitExpression(this, context);

            if (type.typeParams !== null) {
              type.typeParams.forEach(function (param) {
                return _this94.visitType(param, context);
              });
            }

            return this.visitType(type, context);
          }
        }, {
          key: "visitArrayType",
          value: function visitArrayType(type, context) {
            return this.visitType(type, context);
          }
        }, {
          key: "visitMapType",
          value: function visitMapType(type, context) {
            return this.visitType(type, context);
          }
        }, {
          key: "visitWrappedNodeExpr",
          value: function visitWrappedNodeExpr(ast, context) {
            return ast;
          }
        }, {
          key: "visitTypeofExpr",
          value: function visitTypeofExpr(ast, context) {
            return this.visitExpression(ast, context);
          }
        }, {
          key: "visitReadVarExpr",
          value: function visitReadVarExpr(ast, context) {
            return this.visitExpression(ast, context);
          }
        }, {
          key: "visitWriteVarExpr",
          value: function visitWriteVarExpr(ast, context) {
            ast.value.visitExpression(this, context);
            return this.visitExpression(ast, context);
          }
        }, {
          key: "visitWriteKeyExpr",
          value: function visitWriteKeyExpr(ast, context) {
            ast.receiver.visitExpression(this, context);
            ast.index.visitExpression(this, context);
            ast.value.visitExpression(this, context);
            return this.visitExpression(ast, context);
          }
        }, {
          key: "visitWritePropExpr",
          value: function visitWritePropExpr(ast, context) {
            ast.receiver.visitExpression(this, context);
            ast.value.visitExpression(this, context);
            return this.visitExpression(ast, context);
          }
        }, {
          key: "visitInvokeMethodExpr",
          value: function visitInvokeMethodExpr(ast, context) {
            ast.receiver.visitExpression(this, context);
            this.visitAllExpressions(ast.args, context);
            return this.visitExpression(ast, context);
          }
        }, {
          key: "visitInvokeFunctionExpr",
          value: function visitInvokeFunctionExpr(ast, context) {
            ast.fn.visitExpression(this, context);
            this.visitAllExpressions(ast.args, context);
            return this.visitExpression(ast, context);
          }
        }, {
          key: "visitInstantiateExpr",
          value: function visitInstantiateExpr(ast, context) {
            ast.classExpr.visitExpression(this, context);
            this.visitAllExpressions(ast.args, context);
            return this.visitExpression(ast, context);
          }
        }, {
          key: "visitLiteralExpr",
          value: function visitLiteralExpr(ast, context) {
            return this.visitExpression(ast, context);
          }
        }, {
          key: "visitLocalizedString",
          value: function visitLocalizedString(ast, context) {
            return this.visitExpression(ast, context);
          }
        }, {
          key: "visitExternalExpr",
          value: function visitExternalExpr(ast, context) {
            var _this95 = this;

            if (ast.typeParams) {
              ast.typeParams.forEach(function (type) {
                return type.visitType(_this95, context);
              });
            }

            return this.visitExpression(ast, context);
          }
        }, {
          key: "visitConditionalExpr",
          value: function visitConditionalExpr(ast, context) {
            ast.condition.visitExpression(this, context);
            ast.trueCase.visitExpression(this, context);
            ast.falseCase.visitExpression(this, context);
            return this.visitExpression(ast, context);
          }
        }, {
          key: "visitNotExpr",
          value: function visitNotExpr(ast, context) {
            ast.condition.visitExpression(this, context);
            return this.visitExpression(ast, context);
          }
        }, {
          key: "visitAssertNotNullExpr",
          value: function visitAssertNotNullExpr(ast, context) {
            ast.condition.visitExpression(this, context);
            return this.visitExpression(ast, context);
          }
        }, {
          key: "visitCastExpr",
          value: function visitCastExpr(ast, context) {
            ast.value.visitExpression(this, context);
            return this.visitExpression(ast, context);
          }
        }, {
          key: "visitFunctionExpr",
          value: function visitFunctionExpr(ast, context) {
            this.visitAllStatements(ast.statements, context);
            return this.visitExpression(ast, context);
          }
        }, {
          key: "visitUnaryOperatorExpr",
          value: function visitUnaryOperatorExpr(ast, context) {
            ast.expr.visitExpression(this, context);
            return this.visitExpression(ast, context);
          }
        }, {
          key: "visitBinaryOperatorExpr",
          value: function visitBinaryOperatorExpr(ast, context) {
            ast.lhs.visitExpression(this, context);
            ast.rhs.visitExpression(this, context);
            return this.visitExpression(ast, context);
          }
        }, {
          key: "visitReadPropExpr",
          value: function visitReadPropExpr(ast, context) {
            ast.receiver.visitExpression(this, context);
            return this.visitExpression(ast, context);
          }
        }, {
          key: "visitReadKeyExpr",
          value: function visitReadKeyExpr(ast, context) {
            ast.receiver.visitExpression(this, context);
            ast.index.visitExpression(this, context);
            return this.visitExpression(ast, context);
          }
        }, {
          key: "visitLiteralArrayExpr",
          value: function visitLiteralArrayExpr(ast, context) {
            this.visitAllExpressions(ast.entries, context);
            return this.visitExpression(ast, context);
          }
        }, {
          key: "visitLiteralMapExpr",
          value: function visitLiteralMapExpr(ast, context) {
            var _this96 = this;

            ast.entries.forEach(function (entry) {
              return entry.value.visitExpression(_this96, context);
            });
            return this.visitExpression(ast, context);
          }
        }, {
          key: "visitCommaExpr",
          value: function visitCommaExpr(ast, context) {
            this.visitAllExpressions(ast.parts, context);
            return this.visitExpression(ast, context);
          }
        }, {
          key: "visitAllExpressions",
          value: function visitAllExpressions(exprs, context) {
            var _this97 = this;

            exprs.forEach(function (expr) {
              return expr.visitExpression(_this97, context);
            });
          }
        }, {
          key: "visitDeclareVarStmt",
          value: function visitDeclareVarStmt(stmt, context) {
            if (stmt.value) {
              stmt.value.visitExpression(this, context);
            }

            if (stmt.type) {
              stmt.type.visitType(this, context);
            }

            return stmt;
          }
        }, {
          key: "visitDeclareFunctionStmt",
          value: function visitDeclareFunctionStmt(stmt, context) {
            this.visitAllStatements(stmt.statements, context);

            if (stmt.type) {
              stmt.type.visitType(this, context);
            }

            return stmt;
          }
        }, {
          key: "visitExpressionStmt",
          value: function visitExpressionStmt(stmt, context) {
            stmt.expr.visitExpression(this, context);
            return stmt;
          }
        }, {
          key: "visitReturnStmt",
          value: function visitReturnStmt(stmt, context) {
            stmt.value.visitExpression(this, context);
            return stmt;
          }
        }, {
          key: "visitDeclareClassStmt",
          value: function visitDeclareClassStmt(stmt, context) {
            var _this98 = this;

            stmt.parent.visitExpression(this, context);
            stmt.getters.forEach(function (getter) {
              return _this98.visitAllStatements(getter.body, context);
            });

            if (stmt.constructorMethod) {
              this.visitAllStatements(stmt.constructorMethod.body, context);
            }

            stmt.methods.forEach(function (method) {
              return _this98.visitAllStatements(method.body, context);
            });
            return stmt;
          }
        }, {
          key: "visitIfStmt",
          value: function visitIfStmt(stmt, context) {
            stmt.condition.visitExpression(this, context);
            this.visitAllStatements(stmt.trueCase, context);
            this.visitAllStatements(stmt.falseCase, context);
            return stmt;
          }
        }, {
          key: "visitTryCatchStmt",
          value: function visitTryCatchStmt(stmt, context) {
            this.visitAllStatements(stmt.bodyStmts, context);
            this.visitAllStatements(stmt.catchStmts, context);
            return stmt;
          }
        }, {
          key: "visitThrowStmt",
          value: function visitThrowStmt(stmt, context) {
            stmt.error.visitExpression(this, context);
            return stmt;
          }
        }, {
          key: "visitAllStatements",
          value: function visitAllStatements(stmts, context) {
            var _this99 = this;

            stmts.forEach(function (stmt) {
              return stmt.visitStatement(_this99, context);
            });
          }
        }]);

        return RecursiveAstVisitor;
      }();

      function findReadVarNames(stmts) {
        var visitor = new _ReadVarVisitor();
        visitor.visitAllStatements(stmts, null);
        return visitor.varNames;
      }

      var _ReadVarVisitor = /*#__PURE__*/function (_RecursiveAstVisitor) {
        _inherits2(_ReadVarVisitor, _RecursiveAstVisitor);

        var _super53 = _createSuper2(_ReadVarVisitor);

        function _ReadVarVisitor() {
          var _this100;

          _classCallCheck2(this, _ReadVarVisitor);

          _this100 = _super53.apply(this, arguments);
          _this100.varNames = new Set();
          return _this100;
        }

        _createClass2(_ReadVarVisitor, [{
          key: "visitDeclareFunctionStmt",
          value: function visitDeclareFunctionStmt(stmt, context) {
            // Don't descend into nested functions
            return stmt;
          }
        }, {
          key: "visitDeclareClassStmt",
          value: function visitDeclareClassStmt(stmt, context) {
            // Don't descend into nested classes
            return stmt;
          }
        }, {
          key: "visitReadVarExpr",
          value: function visitReadVarExpr(ast, context) {
            if (ast.name) {
              this.varNames.add(ast.name);
            }

            return null;
          }
        }]);

        return _ReadVarVisitor;
      }(RecursiveAstVisitor);

      function collectExternalReferences(stmts) {
        var visitor = new _FindExternalReferencesVisitor();
        visitor.visitAllStatements(stmts, null);
        return visitor.externalReferences;
      }

      var _FindExternalReferencesVisitor = /*#__PURE__*/function (_RecursiveAstVisitor2) {
        _inherits2(_FindExternalReferencesVisitor, _RecursiveAstVisitor2);

        var _super54 = _createSuper2(_FindExternalReferencesVisitor);

        function _FindExternalReferencesVisitor() {
          var _this101;

          _classCallCheck2(this, _FindExternalReferencesVisitor);

          _this101 = _super54.apply(this, arguments);
          _this101.externalReferences = [];
          return _this101;
        }

        _createClass2(_FindExternalReferencesVisitor, [{
          key: "visitExternalExpr",
          value: function visitExternalExpr(e, context) {
            this.externalReferences.push(e.value);
            return _get2(_getPrototypeOf2(_FindExternalReferencesVisitor.prototype), "visitExternalExpr", this).call(this, e, context);
          }
        }]);

        return _FindExternalReferencesVisitor;
      }(RecursiveAstVisitor);

      function applySourceSpanToStatementIfNeeded(stmt, sourceSpan) {
        if (!sourceSpan) {
          return stmt;
        }

        var transformer = new _ApplySourceSpanTransformer(sourceSpan);
        return stmt.visitStatement(transformer, null);
      }

      function applySourceSpanToExpressionIfNeeded(expr, sourceSpan) {
        if (!sourceSpan) {
          return expr;
        }

        var transformer = new _ApplySourceSpanTransformer(sourceSpan);
        return expr.visitExpression(transformer, null);
      }

      var _ApplySourceSpanTransformer = /*#__PURE__*/function (_AstTransformer) {
        _inherits2(_ApplySourceSpanTransformer, _AstTransformer);

        var _super55 = _createSuper2(_ApplySourceSpanTransformer);

        function _ApplySourceSpanTransformer(sourceSpan) {
          var _this102;

          _classCallCheck2(this, _ApplySourceSpanTransformer);

          _this102 = _super55.call(this);
          _this102.sourceSpan = sourceSpan;
          return _this102;
        }

        _createClass2(_ApplySourceSpanTransformer, [{
          key: "_clone",
          value: function _clone(obj) {
            var clone = Object.create(obj.constructor.prototype);

            for (var _i7 = 0, _Object$keys = Object.keys(obj); _i7 < _Object$keys.length; _i7++) {
              var prop = _Object$keys[_i7];
              clone[prop] = obj[prop];
            }

            return clone;
          }
        }, {
          key: "transformExpr",
          value: function transformExpr(expr, context) {
            if (!expr.sourceSpan) {
              expr = this._clone(expr);
              expr.sourceSpan = this.sourceSpan;
            }

            return expr;
          }
        }, {
          key: "transformStmt",
          value: function transformStmt(stmt, context) {
            if (!stmt.sourceSpan) {
              stmt = this._clone(stmt);
              stmt.sourceSpan = this.sourceSpan;
            }

            return stmt;
          }
        }]);

        return _ApplySourceSpanTransformer;
      }(AstTransformer);

      function leadingComment(text) {
        var multiline = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
        var trailingNewline = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
        return new LeadingComment(text, multiline, trailingNewline);
      }

      function jsDocComment() {
        var tags = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
        return new JSDocComment(tags);
      }

      function variable(name, type, sourceSpan) {
        return new ReadVarExpr(name, type, sourceSpan);
      }

      function importExpr(id) {
        var typeParams = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
        var sourceSpan = arguments.length > 2 ? arguments[2] : undefined;
        return new ExternalExpr(id, null, typeParams, sourceSpan);
      }

      function importType(id, typeParams, typeModifiers) {
        return id != null ? expressionType(importExpr(id, typeParams, null), typeModifiers) : null;
      }

      function expressionType(expr, typeModifiers, typeParams) {
        return new ExpressionType(expr, typeModifiers, typeParams);
      }

      function typeofExpr(expr) {
        return new TypeofExpr(expr);
      }

      function literalArr(values, type, sourceSpan) {
        return new LiteralArrayExpr(values, type, sourceSpan);
      }

      function literalMap(values) {
        var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
        return new LiteralMapExpr(values.map(function (e) {
          return new LiteralMapEntry(e.key, e.value, e.quoted);
        }), type, null);
      }

      function unary(operator, expr, type, sourceSpan) {
        return new UnaryOperatorExpr(operator, expr, type, sourceSpan);
      }

      function not(expr, sourceSpan) {
        return new NotExpr(expr, sourceSpan);
      }

      function assertNotNull(expr, sourceSpan) {
        return new AssertNotNull(expr, sourceSpan);
      }

      function fn(params, body, type, sourceSpan, name) {
        return new FunctionExpr(params, body, type, sourceSpan, name);
      }

      function ifStmt(condition, thenClause, elseClause, sourceSpan, leadingComments) {
        return new IfStmt(condition, thenClause, elseClause, sourceSpan, leadingComments);
      }

      function literal(value, type, sourceSpan) {
        return new LiteralExpr(value, type, sourceSpan);
      }

      function localizedString(metaBlock, messageParts, placeholderNames, expressions, sourceSpan) {
        return new LocalizedString(metaBlock, messageParts, placeholderNames, expressions, sourceSpan);
      }

      function isNull(exp) {
        return exp instanceof LiteralExpr && exp.value === null;
      }
      /*
       * Serializes a `Tag` into a string.
       * Returns a string like " @foo {bar} baz" (note the leading whitespace before `@foo`).
       */


      function tagToString(tag) {
        var out = '';

        if (tag.tagName) {
          out += " @".concat(tag.tagName);
        }

        if (tag.text) {
          if (tag.text.match(/\/\*|\*\//)) {
            throw new Error('JSDoc text cannot contain "/*" and "*/"');
          }

          out += ' ' + tag.text.replace(/@/g, '\\@');
        }

        return out;
      }

      function serializeTags(tags) {
        if (tags.length === 0) return '';

        if (tags.length === 1 && tags[0].tagName && !tags[0].text) {
          // The JSDOC comment is a single simple tag: e.g `/** @tagname */`.
          return "*".concat(tagToString(tags[0]), " ");
        }

        var out = '*\n';

        var _iterator4 = _createForOfIteratorHelper(tags),
            _step4;

        try {
          for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
            var tag = _step4.value;
            out += ' *'; // If the tagToString is multi-line, insert " * " prefixes on lines.

            out += tagToString(tag).replace(/\n/g, '\n * ');
            out += '\n';
          }
        } catch (err) {
          _iterator4.e(err);
        } finally {
          _iterator4.f();
        }

        out += ' ';
        return out;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var DASH_CASE_REGEXP = /-+([a-z0-9])/g;

      function dashCaseToCamelCase(input) {
        return input.replace(DASH_CASE_REGEXP, function () {
          for (var _len6 = arguments.length, m = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
            m[_key6] = arguments[_key6];
          }

          return m[1].toUpperCase();
        });
      }

      function splitAtColon(input, defaultValues) {
        return _splitAt(input, ':', defaultValues);
      }

      function splitAtPeriod(input, defaultValues) {
        return _splitAt(input, '.', defaultValues);
      }

      function _splitAt(input, character, defaultValues) {
        var characterIndex = input.indexOf(character);
        if (characterIndex == -1) return defaultValues;
        return [input.slice(0, characterIndex).trim(), input.slice(characterIndex + 1).trim()];
      }

      function visitValue(value, visitor, context) {
        if (Array.isArray(value)) {
          return visitor.visitArray(value, context);
        }

        if (isStrictStringMap(value)) {
          return visitor.visitStringMap(value, context);
        }

        if (value == null || typeof value == 'string' || typeof value == 'number' || typeof value == 'boolean') {
          return visitor.visitPrimitive(value, context);
        }

        return visitor.visitOther(value, context);
      }

      function isDefined(val) {
        return val !== null && val !== undefined;
      }

      function noUndefined(val) {
        return val === undefined ? null : val;
      }

      var ValueTransformer = /*#__PURE__*/function () {
        function ValueTransformer() {
          _classCallCheck2(this, ValueTransformer);
        }

        _createClass2(ValueTransformer, [{
          key: "visitArray",
          value: function visitArray(arr, context) {
            var _this103 = this;

            return arr.map(function (value) {
              return visitValue(value, _this103, context);
            });
          }
        }, {
          key: "visitStringMap",
          value: function visitStringMap(map, context) {
            var _this104 = this;

            var result = {};
            Object.keys(map).forEach(function (key) {
              result[key] = visitValue(map[key], _this104, context);
            });
            return result;
          }
        }, {
          key: "visitPrimitive",
          value: function visitPrimitive(value, context) {
            return value;
          }
        }, {
          key: "visitOther",
          value: function visitOther(value, context) {
            return value;
          }
        }]);

        return ValueTransformer;
      }();

      var SyncAsync = {
        assertSync: function assertSync(value) {
          if (isPromise(value)) {
            throw new Error("Illegal state: value cannot be a promise");
          }

          return value;
        },
        then: function then(value, cb) {
          return isPromise(value) ? value.then(cb) : cb(value);
        },
        all: function all(syncAsyncValues) {
          return syncAsyncValues.some(isPromise) ? Promise.all(syncAsyncValues) : syncAsyncValues;
        }
      };

      function error(msg) {
        throw new Error("Internal Error: ".concat(msg));
      }

      function syntaxError(msg, parseErrors) {
        var error = Error(msg);
        error[ERROR_SYNTAX_ERROR] = true;
        if (parseErrors) error[ERROR_PARSE_ERRORS] = parseErrors;
        return error;
      }

      var ERROR_SYNTAX_ERROR = 'ngSyntaxError';
      var ERROR_PARSE_ERRORS = 'ngParseErrors';

      function isSyntaxError(error) {
        return error[ERROR_SYNTAX_ERROR];
      }

      function getParseErrors(error) {
        return error[ERROR_PARSE_ERRORS] || [];
      } // Escape characters that have a special meaning in Regular Expressions


      function escapeRegExp(s) {
        return s.replace(/([.*+?^=!:${}()|[\]\/\\])/g, '\\$1');
      }

      var STRING_MAP_PROTO = Object.getPrototypeOf({});

      function isStrictStringMap(obj) {
        return typeof obj === 'object' && obj !== null && Object.getPrototypeOf(obj) === STRING_MAP_PROTO;
      }

      function utf8Encode(str) {
        var encoded = '';

        for (var index = 0; index < str.length; index++) {
          var codePoint = str.charCodeAt(index); // decode surrogate
          // see https://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae

          if (codePoint >= 0xd800 && codePoint <= 0xdbff && str.length > index + 1) {
            var low = str.charCodeAt(index + 1);

            if (low >= 0xdc00 && low <= 0xdfff) {
              index++;
              codePoint = (codePoint - 0xd800 << 10) + low - 0xdc00 + 0x10000;
            }
          }

          if (codePoint <= 0x7f) {
            encoded += String.fromCharCode(codePoint);
          } else if (codePoint <= 0x7ff) {
            encoded += String.fromCharCode(codePoint >> 6 & 0x1F | 0xc0, codePoint & 0x3f | 0x80);
          } else if (codePoint <= 0xffff) {
            encoded += String.fromCharCode(codePoint >> 12 | 0xe0, codePoint >> 6 & 0x3f | 0x80, codePoint & 0x3f | 0x80);
          } else if (codePoint <= 0x1fffff) {
            encoded += String.fromCharCode(codePoint >> 18 & 0x07 | 0xf0, codePoint >> 12 & 0x3f | 0x80, codePoint >> 6 & 0x3f | 0x80, codePoint & 0x3f | 0x80);
          }
        }

        return encoded;
      }

      function stringify(token) {
        if (typeof token === 'string') {
          return token;
        }

        if (Array.isArray(token)) {
          return '[' + token.map(stringify).join(', ') + ']';
        }

        if (token == null) {
          return '' + token;
        }

        if (token.overriddenName) {
          return "".concat(token.overriddenName);
        }

        if (token.name) {
          return "".concat(token.name);
        }

        if (!token.toString) {
          return 'object';
        } // WARNING: do not try to `JSON.stringify(token)` here
        // see https://github.com/angular/angular/issues/23440


        var res = token.toString();

        if (res == null) {
          return '' + res;
        }

        var newLineIndex = res.indexOf('\n');
        return newLineIndex === -1 ? res : res.substring(0, newLineIndex);
      }
      /**
       * Lazily retrieves the reference value from a forwardRef.
       */


      function resolveForwardRef(type) {
        if (typeof type === 'function' && type.hasOwnProperty('__forward_ref__')) {
          return type();
        } else {
          return type;
        }
      }
      /**
       * Determine if the argument is shaped like a Promise
       */


      function isPromise(obj) {
        // allow any Promise/A+ compliant thenable.
        // It's up to the caller to ensure that obj.then conforms to the spec
        return !!obj && typeof obj.then === 'function';
      }

      var Version = function Version(full) {
        _classCallCheck2(this, Version);

        this.full = full;
        var splits = full.split('.');
        this.major = splits[0];
        this.minor = splits[1];
        this.patch = splits.slice(2).join('.');
      };

      var __window = typeof window !== 'undefined' && window;

      var __self = typeof self !== 'undefined' && typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope && self;

      var __global = typeof global !== 'undefined' && global; // Check __global first, because in Node tests both __global and __window may be defined and _global
      // should be __global in that case.


      var _global = __global || __window || __self;

      function newArray(size, value) {
        var list = [];

        for (var i = 0; i < size; i++) {
          list.push(value);
        }

        return list;
      }
      /**
       * Partitions a given array into 2 arrays, based on a boolean value returned by the condition
       * function.
       *
       * @param arr Input array that should be partitioned
       * @param conditionFn Condition function that is called for each item in a given array and returns a
       * boolean value.
       */


      function partitionArray(arr, conditionFn) {
        var truthy = [];
        var falsy = [];

        var _iterator5 = _createForOfIteratorHelper(arr),
            _step5;

        try {
          for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
            var item = _step5.value;
            (conditionFn(item) ? truthy : falsy).push(item);
          }
        } catch (err) {
          _iterator5.e(err);
        } finally {
          _iterator5.f();
        }

        return [truthy, falsy];
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var CONSTANT_PREFIX = '_c';
      /**
       * `ConstantPool` tries to reuse literal factories when two or more literals are identical.
       * We determine whether literals are identical by creating a key out of their AST using the
       * `KeyVisitor`. This constant is used to replace dynamic expressions which can't be safely
       * converted into a key. E.g. given an expression `{foo: bar()}`, since we don't know what
       * the result of `bar` will be, we create a key that looks like `{foo: <unknown>}`. Note
       * that we use a variable, rather than something like `null` in order to avoid collisions.
       */

      var UNKNOWN_VALUE_KEY = variable('<unknown>');
      /**
       * Context to use when producing a key.
       *
       * This ensures we see the constant not the reference variable when producing
       * a key.
       */

      var KEY_CONTEXT = {};
      /**
       * Generally all primitive values are excluded from the `ConstantPool`, but there is an exclusion
       * for strings that reach a certain length threshold. This constant defines the length threshold for
       * strings.
       */

      var POOL_INCLUSION_LENGTH_THRESHOLD_FOR_STRINGS = 50;
      /**
       * A node that is a place-holder that allows the node to be replaced when the actual
       * node is known.
       *
       * This allows the constant pool to change an expression from a direct reference to
       * a constant to a shared constant. It returns a fix-up node that is later allowed to
       * change the referenced expression.
       */

      var FixupExpression = /*#__PURE__*/function (_Expression25) {
        _inherits2(FixupExpression, _Expression25);

        var _super56 = _createSuper2(FixupExpression);

        function FixupExpression(resolved) {
          var _this105;

          _classCallCheck2(this, FixupExpression);

          _this105 = _super56.call(this, resolved.type);
          _this105.resolved = resolved;
          _this105.original = resolved;
          return _this105;
        }

        _createClass2(FixupExpression, [{
          key: "visitExpression",
          value: function visitExpression(visitor, context) {
            if (context === KEY_CONTEXT) {
              // When producing a key we want to traverse the constant not the
              // variable used to refer to it.
              return this.original.visitExpression(visitor, context);
            } else {
              return this.resolved.visitExpression(visitor, context);
            }
          }
        }, {
          key: "isEquivalent",
          value: function isEquivalent(e) {
            return e instanceof FixupExpression && this.resolved.isEquivalent(e.resolved);
          }
        }, {
          key: "isConstant",
          value: function isConstant() {
            return true;
          }
        }, {
          key: "fixup",
          value: function fixup(expression) {
            this.resolved = expression;
            this.shared = true;
          }
        }]);

        return FixupExpression;
      }(Expression);
      /**
       * A constant pool allows a code emitter to share constant in an output context.
       *
       * The constant pool also supports sharing access to ivy definitions references.
       */


      var ConstantPool = /*#__PURE__*/function () {
        function ConstantPool() {
          var isClosureCompilerEnabled = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;

          _classCallCheck2(this, ConstantPool);

          this.isClosureCompilerEnabled = isClosureCompilerEnabled;
          this.statements = [];
          this.literals = new Map();
          this.literalFactories = new Map();
          this.injectorDefinitions = new Map();
          this.directiveDefinitions = new Map();
          this.componentDefinitions = new Map();
          this.pipeDefinitions = new Map();
          this.nextNameIndex = 0;
        }

        _createClass2(ConstantPool, [{
          key: "getConstLiteral",
          value: function getConstLiteral(literal, forceShared) {
            if (literal instanceof LiteralExpr && !isLongStringLiteral(literal) || literal instanceof FixupExpression) {
              // Do no put simple literals into the constant pool or try to produce a constant for a
              // reference to a constant.
              return literal;
            }

            var key = this.keyOf(literal);
            var fixup = this.literals.get(key);
            var newValue = false;

            if (!fixup) {
              fixup = new FixupExpression(literal);
              this.literals.set(key, fixup);
              newValue = true;
            }

            if (!newValue && !fixup.shared || newValue && forceShared) {
              // Replace the expression with a variable
              var name = this.freshName();
              var definition;
              var usage;

              if (this.isClosureCompilerEnabled && isLongStringLiteral(literal)) {
                // For string literals, Closure will **always** inline the string at
                // **all** usages, duplicating it each time. For large strings, this
                // unnecessarily bloats bundle size. To work around this restriction, we
                // wrap the string in a function, and call that function for each usage.
                // This tricks Closure into using inline logic for functions instead of
                // string literals. Function calls are only inlined if the body is small
                // enough to be worth it. By doing this, very large strings will be
                // shared across multiple usages, rather than duplicating the string at
                // each usage site.
                //
                // const myStr = function() { return "very very very long string"; };
                // const usage1 = myStr();
                // const usage2 = myStr();
                definition = variable(name).set(new FunctionExpr([], // Params.
                [// Statements.
                new ReturnStatement(literal)]));
                usage = variable(name).callFn([]);
              } else {
                // Just declare and use the variable directly, without a function call
                // indirection. This saves a few bytes and avoids an unncessary call.
                definition = variable(name).set(literal);
                usage = variable(name);
              }

              this.statements.push(definition.toDeclStmt(INFERRED_TYPE, [StmtModifier.Final]));
              fixup.fixup(usage);
            }

            return fixup;
          }
        }, {
          key: "getDefinition",
          value: function getDefinition(type, kind, ctx) {
            var forceShared = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
            var definitions = this.definitionsOf(kind);
            var fixup = definitions.get(type);
            var newValue = false;

            if (!fixup) {
              var property = this.propertyNameOf(kind);
              fixup = new FixupExpression(ctx.importExpr(type).prop(property));
              definitions.set(type, fixup);
              newValue = true;
            }

            if (!newValue && !fixup.shared || newValue && forceShared) {
              var name = this.freshName();
              this.statements.push(variable(name).set(fixup.resolved).toDeclStmt(INFERRED_TYPE, [StmtModifier.Final]));
              fixup.fixup(variable(name));
            }

            return fixup;
          }
        }, {
          key: "getLiteralFactory",
          value: function getLiteralFactory(literal) {
            // Create a pure function that builds an array of a mix of constant and variable expressions
            if (literal instanceof LiteralArrayExpr) {
              var argumentsForKey = literal.entries.map(function (e) {
                return e.isConstant() ? e : UNKNOWN_VALUE_KEY;
              });
              var key = this.keyOf(literalArr(argumentsForKey));
              return this._getLiteralFactory(key, literal.entries, function (entries) {
                return literalArr(entries);
              });
            } else {
              var expressionForKey = literalMap(literal.entries.map(function (e) {
                return {
                  key: e.key,
                  value: e.value.isConstant() ? e.value : UNKNOWN_VALUE_KEY,
                  quoted: e.quoted
                };
              }));

              var _key7 = this.keyOf(expressionForKey);

              return this._getLiteralFactory(_key7, literal.entries.map(function (e) {
                return e.value;
              }), function (entries) {
                return literalMap(entries.map(function (value, index) {
                  return {
                    key: literal.entries[index].key,
                    value: value,
                    quoted: literal.entries[index].quoted
                  };
                }));
              });
            }
          }
        }, {
          key: "_getLiteralFactory",
          value: function _getLiteralFactory(key, values, resultMap) {
            var _this106 = this;

            var literalFactory = this.literalFactories.get(key);
            var literalFactoryArguments = values.filter(function (e) {
              return !e.isConstant();
            });

            if (!literalFactory) {
              var resultExpressions = values.map(function (e, index) {
                return e.isConstant() ? _this106.getConstLiteral(e, true) : variable("a".concat(index));
              });
              var parameters = resultExpressions.filter(isVariable).map(function (e) {
                return new FnParam(e.name, DYNAMIC_TYPE);
              });
              var pureFunctionDeclaration = fn(parameters, [new ReturnStatement(resultMap(resultExpressions))], INFERRED_TYPE);
              var name = this.freshName();
              this.statements.push(variable(name).set(pureFunctionDeclaration).toDeclStmt(INFERRED_TYPE, [StmtModifier.Final]));
              literalFactory = variable(name);
              this.literalFactories.set(key, literalFactory);
            }

            return {
              literalFactory: literalFactory,
              literalFactoryArguments: literalFactoryArguments
            };
          }
          /**
           * Produce a unique name.
           *
           * The name might be unique among different prefixes if any of the prefixes end in
           * a digit so the prefix should be a constant string (not based on user input) and
           * must not end in a digit.
           */

        }, {
          key: "uniqueName",
          value: function uniqueName(prefix) {
            return "".concat(prefix).concat(this.nextNameIndex++);
          }
        }, {
          key: "definitionsOf",
          value: function definitionsOf(kind) {
            switch (kind) {
              case 2
              /* Component */
              :
                return this.componentDefinitions;

              case 1
              /* Directive */
              :
                return this.directiveDefinitions;

              case 0
              /* Injector */
              :
                return this.injectorDefinitions;

              case 3
              /* Pipe */
              :
                return this.pipeDefinitions;
            }

            error("Unknown definition kind ".concat(kind));
            return this.componentDefinitions;
          }
        }, {
          key: "propertyNameOf",
          value: function propertyNameOf(kind) {
            switch (kind) {
              case 2
              /* Component */
              :
                return 'ɵcmp';

              case 1
              /* Directive */
              :
                return 'ɵdir';

              case 0
              /* Injector */
              :
                return 'ɵinj';

              case 3
              /* Pipe */
              :
                return 'ɵpipe';
            }

            error("Unknown definition kind ".concat(kind));
            return '<unknown>';
          }
        }, {
          key: "freshName",
          value: function freshName() {
            return this.uniqueName(CONSTANT_PREFIX);
          }
        }, {
          key: "keyOf",
          value: function keyOf(expression) {
            return expression.visitExpression(new KeyVisitor(), KEY_CONTEXT);
          }
        }]);

        return ConstantPool;
      }();
      /**
       * Visitor used to determine if 2 expressions are equivalent and can be shared in the
       * `ConstantPool`.
       *
       * When the id (string) generated by the visitor is equal, expressions are considered equivalent.
       */


      var KeyVisitor = /*#__PURE__*/function () {
        function KeyVisitor() {
          _classCallCheck2(this, KeyVisitor);

          this.visitWrappedNodeExpr = invalid;
          this.visitWriteVarExpr = invalid;
          this.visitWriteKeyExpr = invalid;
          this.visitWritePropExpr = invalid;
          this.visitInvokeMethodExpr = invalid;
          this.visitInvokeFunctionExpr = invalid;
          this.visitInstantiateExpr = invalid;
          this.visitConditionalExpr = invalid;
          this.visitNotExpr = invalid;
          this.visitAssertNotNullExpr = invalid;
          this.visitCastExpr = invalid;
          this.visitFunctionExpr = invalid;
          this.visitUnaryOperatorExpr = invalid;
          this.visitBinaryOperatorExpr = invalid;
          this.visitReadPropExpr = invalid;
          this.visitReadKeyExpr = invalid;
          this.visitCommaExpr = invalid;
          this.visitLocalizedString = invalid;
        }

        _createClass2(KeyVisitor, [{
          key: "visitLiteralExpr",
          value: function visitLiteralExpr(ast) {
            return "".concat(typeof ast.value === 'string' ? '"' + ast.value + '"' : ast.value);
          }
        }, {
          key: "visitLiteralArrayExpr",
          value: function visitLiteralArrayExpr(ast, context) {
            var _this107 = this;

            return "[".concat(ast.entries.map(function (entry) {
              return entry.visitExpression(_this107, context);
            }).join(','), "]");
          }
        }, {
          key: "visitLiteralMapExpr",
          value: function visitLiteralMapExpr(ast, context) {
            var _this108 = this;

            var mapKey = function mapKey(entry) {
              var quote = entry.quoted ? '"' : '';
              return "".concat(quote).concat(entry.key).concat(quote);
            };

            var mapEntry = function mapEntry(entry) {
              return "".concat(mapKey(entry), ":").concat(entry.value.visitExpression(_this108, context));
            };

            return "{".concat(ast.entries.map(mapEntry).join(','));
          }
        }, {
          key: "visitExternalExpr",
          value: function visitExternalExpr(ast) {
            return ast.value.moduleName ? "EX:".concat(ast.value.moduleName, ":").concat(ast.value.name) : "EX:".concat(ast.value.runtime.name);
          }
        }, {
          key: "visitReadVarExpr",
          value: function visitReadVarExpr(node) {
            return "VAR:".concat(node.name);
          }
        }, {
          key: "visitTypeofExpr",
          value: function visitTypeofExpr(node, context) {
            return "TYPEOF:".concat(node.expr.visitExpression(this, context));
          }
        }]);

        return KeyVisitor;
      }();

      function invalid(arg) {
        throw new Error("Invalid state: Visitor ".concat(this.constructor.name, " doesn't handle ").concat(arg.constructor.name));
      }

      function isVariable(e) {
        return e instanceof ReadVarExpr;
      }

      function isLongStringLiteral(expr) {
        return expr instanceof LiteralExpr && typeof expr.value === 'string' && expr.value.length >= POOL_INCLUSION_LENGTH_THRESHOLD_FOR_STRINGS;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var CORE = '@angular/core';

      var Identifiers = function Identifiers() {
        _classCallCheck2(this, Identifiers);
      };

      Identifiers.ANALYZE_FOR_ENTRY_COMPONENTS = {
        name: 'ANALYZE_FOR_ENTRY_COMPONENTS',
        moduleName: CORE
      };
      Identifiers.ElementRef = {
        name: 'ElementRef',
        moduleName: CORE
      };
      Identifiers.NgModuleRef = {
        name: 'NgModuleRef',
        moduleName: CORE
      };
      Identifiers.ViewContainerRef = {
        name: 'ViewContainerRef',
        moduleName: CORE
      };
      Identifiers.ChangeDetectorRef = {
        name: 'ChangeDetectorRef',
        moduleName: CORE
      };
      Identifiers.QueryList = {
        name: 'QueryList',
        moduleName: CORE
      };
      Identifiers.TemplateRef = {
        name: 'TemplateRef',
        moduleName: CORE
      };
      Identifiers.Renderer2 = {
        name: 'Renderer2',
        moduleName: CORE
      };
      Identifiers.CodegenComponentFactoryResolver = {
        name: 'ɵCodegenComponentFactoryResolver',
        moduleName: CORE
      };
      Identifiers.ComponentFactoryResolver = {
        name: 'ComponentFactoryResolver',
        moduleName: CORE
      };
      Identifiers.ComponentFactory = {
        name: 'ComponentFactory',
        moduleName: CORE
      };
      Identifiers.ComponentRef = {
        name: 'ComponentRef',
        moduleName: CORE
      };
      Identifiers.NgModuleFactory = {
        name: 'NgModuleFactory',
        moduleName: CORE
      };
      Identifiers.createModuleFactory = {
        name: 'ɵcmf',
        moduleName: CORE
      };
      Identifiers.moduleDef = {
        name: 'ɵmod',
        moduleName: CORE
      };
      Identifiers.moduleProviderDef = {
        name: 'ɵmpd',
        moduleName: CORE
      };
      Identifiers.RegisterModuleFactoryFn = {
        name: 'ɵregisterModuleFactory',
        moduleName: CORE
      };
      Identifiers.inject = {
        name: 'ɵɵinject',
        moduleName: CORE
      };
      Identifiers.directiveInject = {
        name: 'ɵɵdirectiveInject',
        moduleName: CORE
      };
      Identifiers.INJECTOR = {
        name: 'INJECTOR',
        moduleName: CORE
      };
      Identifiers.Injector = {
        name: 'Injector',
        moduleName: CORE
      };
      Identifiers.ɵɵdefineInjectable = {
        name: 'ɵɵdefineInjectable',
        moduleName: CORE
      };
      Identifiers.InjectableDef = {
        name: 'ɵɵInjectableDef',
        moduleName: CORE
      };
      Identifiers.ViewEncapsulation = {
        name: 'ViewEncapsulation',
        moduleName: CORE
      };
      Identifiers.ChangeDetectionStrategy = {
        name: 'ChangeDetectionStrategy',
        moduleName: CORE
      };
      Identifiers.SecurityContext = {
        name: 'SecurityContext',
        moduleName: CORE
      };
      Identifiers.LOCALE_ID = {
        name: 'LOCALE_ID',
        moduleName: CORE
      };
      Identifiers.TRANSLATIONS_FORMAT = {
        name: 'TRANSLATIONS_FORMAT',
        moduleName: CORE
      };
      Identifiers.inlineInterpolate = {
        name: 'ɵinlineInterpolate',
        moduleName: CORE
      };
      Identifiers.interpolate = {
        name: 'ɵinterpolate',
        moduleName: CORE
      };
      Identifiers.EMPTY_ARRAY = {
        name: 'ɵEMPTY_ARRAY',
        moduleName: CORE
      };
      Identifiers.EMPTY_MAP = {
        name: 'ɵEMPTY_MAP',
        moduleName: CORE
      };
      Identifiers.Renderer = {
        name: 'Renderer',
        moduleName: CORE
      };
      Identifiers.viewDef = {
        name: 'ɵvid',
        moduleName: CORE
      };
      Identifiers.elementDef = {
        name: 'ɵeld',
        moduleName: CORE
      };
      Identifiers.anchorDef = {
        name: 'ɵand',
        moduleName: CORE
      };
      Identifiers.textDef = {
        name: 'ɵted',
        moduleName: CORE
      };
      Identifiers.directiveDef = {
        name: 'ɵdid',
        moduleName: CORE
      };
      Identifiers.providerDef = {
        name: 'ɵprd',
        moduleName: CORE
      };
      Identifiers.queryDef = {
        name: 'ɵqud',
        moduleName: CORE
      };
      Identifiers.pureArrayDef = {
        name: 'ɵpad',
        moduleName: CORE
      };
      Identifiers.pureObjectDef = {
        name: 'ɵpod',
        moduleName: CORE
      };
      Identifiers.purePipeDef = {
        name: 'ɵppd',
        moduleName: CORE
      };
      Identifiers.pipeDef = {
        name: 'ɵpid',
        moduleName: CORE
      };
      Identifiers.nodeValue = {
        name: 'ɵnov',
        moduleName: CORE
      };
      Identifiers.ngContentDef = {
        name: 'ɵncd',
        moduleName: CORE
      };
      Identifiers.unwrapValue = {
        name: 'ɵunv',
        moduleName: CORE
      };
      Identifiers.createRendererType2 = {
        name: 'ɵcrt',
        moduleName: CORE
      }; // type only

      Identifiers.RendererType2 = {
        name: 'RendererType2',
        moduleName: CORE
      }; // type only

      Identifiers.ViewDefinition = {
        name: 'ɵViewDefinition',
        moduleName: CORE
      };
      Identifiers.createComponentFactory = {
        name: 'ɵccf',
        moduleName: CORE
      };
      Identifiers.setClassMetadata = {
        name: 'ɵsetClassMetadata',
        moduleName: CORE
      };

      function createTokenForReference(reference) {
        return {
          identifier: {
            reference: reference
          }
        };
      }

      function createTokenForExternalReference(reflector, reference) {
        return createTokenForReference(reflector.resolveExternalReference(reference));
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * A token representing the a reference to a static type.
       *
       * This token is unique for a filePath and name and can be used as a hash table key.
       */


      var StaticSymbol = /*#__PURE__*/function () {
        function StaticSymbol(filePath, name, members) {
          _classCallCheck2(this, StaticSymbol);

          this.filePath = filePath;
          this.name = name;
          this.members = members;
        }

        _createClass2(StaticSymbol, [{
          key: "assertNoMembers",
          value: function assertNoMembers() {
            if (this.members.length) {
              throw new Error("Illegal state: symbol without members expected, but got ".concat(JSON.stringify(this), "."));
            }
          }
        }]);

        return StaticSymbol;
      }();
      /**
       * A cache of static symbol used by the StaticReflector to return the same symbol for the
       * same symbol values.
       */


      var StaticSymbolCache = /*#__PURE__*/function () {
        function StaticSymbolCache() {
          _classCallCheck2(this, StaticSymbolCache);

          this.cache = new Map();
        }

        _createClass2(StaticSymbolCache, [{
          key: "get",
          value: function get(declarationFile, name, members) {
            members = members || [];
            var memberSuffix = members.length ? ".".concat(members.join('.')) : '';
            var key = "\"".concat(declarationFile, "\".").concat(name).concat(memberSuffix);
            var result = this.cache.get(key);

            if (!result) {
              result = new StaticSymbol(declarationFile, name, members);
              this.cache.set(key, result);
            }

            return result;
          }
        }]);

        return StaticSymbolCache;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */
      // group 0: "[prop] or (event) or @trigger"
      // group 1: "prop" from "[prop]"
      // group 2: "event" from "(event)"
      // group 3: "@trigger" from "@trigger"


      var HOST_REG_EXP = /^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;

      function sanitizeIdentifier(name) {
        return name.replace(/\W/g, '_');
      }

      var _anonymousTypeIndex = 0;

      function identifierName(compileIdentifier) {
        if (!compileIdentifier || !compileIdentifier.reference) {
          return null;
        }

        var ref = compileIdentifier.reference;

        if (ref instanceof StaticSymbol) {
          return ref.name;
        }

        if (ref['__anonymousType']) {
          return ref['__anonymousType'];
        }

        var identifier = stringify(ref);

        if (identifier.indexOf('(') >= 0) {
          // case: anonymous functions!
          identifier = "anonymous_".concat(_anonymousTypeIndex++);
          ref['__anonymousType'] = identifier;
        } else {
          identifier = sanitizeIdentifier(identifier);
        }

        return identifier;
      }

      function identifierModuleUrl(compileIdentifier) {
        var ref = compileIdentifier.reference;

        if (ref instanceof StaticSymbol) {
          return ref.filePath;
        } // Runtime type


        return "./".concat(stringify(ref));
      }

      function viewClassName(compType, embeddedTemplateIndex) {
        return "View_".concat(identifierName({
          reference: compType
        }), "_").concat(embeddedTemplateIndex);
      }

      function rendererTypeName(compType) {
        return "RenderType_".concat(identifierName({
          reference: compType
        }));
      }

      function hostViewClassName(compType) {
        return "HostView_".concat(identifierName({
          reference: compType
        }));
      }

      function componentFactoryName(compType) {
        return "".concat(identifierName({
          reference: compType
        }), "NgFactory");
      }

      var CompileSummaryKind;

      (function (CompileSummaryKind) {
        CompileSummaryKind[CompileSummaryKind["Pipe"] = 0] = "Pipe";
        CompileSummaryKind[CompileSummaryKind["Directive"] = 1] = "Directive";
        CompileSummaryKind[CompileSummaryKind["NgModule"] = 2] = "NgModule";
        CompileSummaryKind[CompileSummaryKind["Injectable"] = 3] = "Injectable";
      })(CompileSummaryKind || (CompileSummaryKind = {}));

      function tokenName(token) {
        return token.value != null ? sanitizeIdentifier(token.value) : identifierName(token.identifier);
      }

      function tokenReference(token) {
        if (token.identifier != null) {
          return token.identifier.reference;
        } else {
          return token.value;
        }
      }
      /**
       * Metadata about a stylesheet
       */


      var CompileStylesheetMetadata = function CompileStylesheetMetadata() {
        var _ref4 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
            moduleUrl = _ref4.moduleUrl,
            styles = _ref4.styles,
            styleUrls = _ref4.styleUrls;

        _classCallCheck2(this, CompileStylesheetMetadata);

        this.moduleUrl = moduleUrl || null;
        this.styles = _normalizeArray(styles);
        this.styleUrls = _normalizeArray(styleUrls);
      };
      /**
       * Metadata regarding compilation of a template.
       */


      var CompileTemplateMetadata = /*#__PURE__*/function () {
        function CompileTemplateMetadata(_ref5) {
          var encapsulation = _ref5.encapsulation,
              template = _ref5.template,
              templateUrl = _ref5.templateUrl,
              htmlAst = _ref5.htmlAst,
              styles = _ref5.styles,
              styleUrls = _ref5.styleUrls,
              externalStylesheets = _ref5.externalStylesheets,
              animations = _ref5.animations,
              ngContentSelectors = _ref5.ngContentSelectors,
              interpolation = _ref5.interpolation,
              isInline = _ref5.isInline,
              preserveWhitespaces = _ref5.preserveWhitespaces;

          _classCallCheck2(this, CompileTemplateMetadata);

          this.encapsulation = encapsulation;
          this.template = template;
          this.templateUrl = templateUrl;
          this.htmlAst = htmlAst;
          this.styles = _normalizeArray(styles);
          this.styleUrls = _normalizeArray(styleUrls);
          this.externalStylesheets = _normalizeArray(externalStylesheets);
          this.animations = animations ? flatten(animations) : [];
          this.ngContentSelectors = ngContentSelectors || [];

          if (interpolation && interpolation.length != 2) {
            throw new Error("'interpolation' should have a start and an end symbol.");
          }

          this.interpolation = interpolation;
          this.isInline = isInline;
          this.preserveWhitespaces = preserveWhitespaces;
        }

        _createClass2(CompileTemplateMetadata, [{
          key: "toSummary",
          value: function toSummary() {
            return {
              ngContentSelectors: this.ngContentSelectors,
              encapsulation: this.encapsulation,
              styles: this.styles,
              animations: this.animations
            };
          }
        }]);

        return CompileTemplateMetadata;
      }();
      /**
       * Metadata regarding compilation of a directive.
       */


      var CompileDirectiveMetadata = /*#__PURE__*/function () {
        function CompileDirectiveMetadata(_ref6) {
          var isHost = _ref6.isHost,
              type = _ref6.type,
              isComponent = _ref6.isComponent,
              selector = _ref6.selector,
              exportAs = _ref6.exportAs,
              changeDetection = _ref6.changeDetection,
              inputs = _ref6.inputs,
              outputs = _ref6.outputs,
              hostListeners = _ref6.hostListeners,
              hostProperties = _ref6.hostProperties,
              hostAttributes = _ref6.hostAttributes,
              providers = _ref6.providers,
              viewProviders = _ref6.viewProviders,
              queries = _ref6.queries,
              guards = _ref6.guards,
              viewQueries = _ref6.viewQueries,
              entryComponents = _ref6.entryComponents,
              template = _ref6.template,
              componentViewType = _ref6.componentViewType,
              rendererType = _ref6.rendererType,
              componentFactory = _ref6.componentFactory;

          _classCallCheck2(this, CompileDirectiveMetadata);

          this.isHost = !!isHost;
          this.type = type;
          this.isComponent = isComponent;
          this.selector = selector;
          this.exportAs = exportAs;
          this.changeDetection = changeDetection;
          this.inputs = inputs;
          this.outputs = outputs;
          this.hostListeners = hostListeners;
          this.hostProperties = hostProperties;
          this.hostAttributes = hostAttributes;
          this.providers = _normalizeArray(providers);
          this.viewProviders = _normalizeArray(viewProviders);
          this.queries = _normalizeArray(queries);
          this.guards = guards;
          this.viewQueries = _normalizeArray(viewQueries);
          this.entryComponents = _normalizeArray(entryComponents);
          this.template = template;
          this.componentViewType = componentViewType;
          this.rendererType = rendererType;
          this.componentFactory = componentFactory;
        }

        _createClass2(CompileDirectiveMetadata, [{
          key: "toSummary",
          value: function toSummary() {
            return {
              summaryKind: CompileSummaryKind.Directive,
              type: this.type,
              isComponent: this.isComponent,
              selector: this.selector,
              exportAs: this.exportAs,
              inputs: this.inputs,
              outputs: this.outputs,
              hostListeners: this.hostListeners,
              hostProperties: this.hostProperties,
              hostAttributes: this.hostAttributes,
              providers: this.providers,
              viewProviders: this.viewProviders,
              queries: this.queries,
              guards: this.guards,
              viewQueries: this.viewQueries,
              entryComponents: this.entryComponents,
              changeDetection: this.changeDetection,
              template: this.template && this.template.toSummary(),
              componentViewType: this.componentViewType,
              rendererType: this.rendererType,
              componentFactory: this.componentFactory
            };
          }
        }], [{
          key: "create",
          value: function create(_ref7) {
            var isHost = _ref7.isHost,
                type = _ref7.type,
                isComponent = _ref7.isComponent,
                selector = _ref7.selector,
                exportAs = _ref7.exportAs,
                changeDetection = _ref7.changeDetection,
                inputs = _ref7.inputs,
                outputs = _ref7.outputs,
                host = _ref7.host,
                providers = _ref7.providers,
                viewProviders = _ref7.viewProviders,
                queries = _ref7.queries,
                guards = _ref7.guards,
                viewQueries = _ref7.viewQueries,
                entryComponents = _ref7.entryComponents,
                template = _ref7.template,
                componentViewType = _ref7.componentViewType,
                rendererType = _ref7.rendererType,
                componentFactory = _ref7.componentFactory;
            var hostListeners = {};
            var hostProperties = {};
            var hostAttributes = {};

            if (host != null) {
              Object.keys(host).forEach(function (key) {
                var value = host[key];
                var matches = key.match(HOST_REG_EXP);

                if (matches === null) {
                  hostAttributes[key] = value;
                } else if (matches[1] != null) {
                  hostProperties[matches[1]] = value;
                } else if (matches[2] != null) {
                  hostListeners[matches[2]] = value;
                }
              });
            }

            var inputsMap = {};

            if (inputs != null) {
              inputs.forEach(function (bindConfig) {
                // canonical syntax: `dirProp: elProp`
                // if there is no `:`, use dirProp = elProp
                var parts = splitAtColon(bindConfig, [bindConfig, bindConfig]);
                inputsMap[parts[0]] = parts[1];
              });
            }

            var outputsMap = {};

            if (outputs != null) {
              outputs.forEach(function (bindConfig) {
                // canonical syntax: `dirProp: elProp`
                // if there is no `:`, use dirProp = elProp
                var parts = splitAtColon(bindConfig, [bindConfig, bindConfig]);
                outputsMap[parts[0]] = parts[1];
              });
            }

            return new CompileDirectiveMetadata({
              isHost: isHost,
              type: type,
              isComponent: !!isComponent,
              selector: selector,
              exportAs: exportAs,
              changeDetection: changeDetection,
              inputs: inputsMap,
              outputs: outputsMap,
              hostListeners: hostListeners,
              hostProperties: hostProperties,
              hostAttributes: hostAttributes,
              providers: providers,
              viewProviders: viewProviders,
              queries: queries,
              guards: guards,
              viewQueries: viewQueries,
              entryComponents: entryComponents,
              template: template,
              componentViewType: componentViewType,
              rendererType: rendererType,
              componentFactory: componentFactory
            });
          }
        }]);

        return CompileDirectiveMetadata;
      }();

      var CompilePipeMetadata = /*#__PURE__*/function () {
        function CompilePipeMetadata(_ref8) {
          var type = _ref8.type,
              name = _ref8.name,
              pure = _ref8.pure;

          _classCallCheck2(this, CompilePipeMetadata);

          this.type = type;
          this.name = name;
          this.pure = !!pure;
        }

        _createClass2(CompilePipeMetadata, [{
          key: "toSummary",
          value: function toSummary() {
            return {
              summaryKind: CompileSummaryKind.Pipe,
              type: this.type,
              name: this.name,
              pure: this.pure
            };
          }
        }]);

        return CompilePipeMetadata;
      }();

      var CompileShallowModuleMetadata = function CompileShallowModuleMetadata() {
        _classCallCheck2(this, CompileShallowModuleMetadata);
      };
      /**
       * Metadata regarding compilation of a module.
       */


      var CompileNgModuleMetadata = /*#__PURE__*/function () {
        function CompileNgModuleMetadata(_ref9) {
          var type = _ref9.type,
              providers = _ref9.providers,
              declaredDirectives = _ref9.declaredDirectives,
              exportedDirectives = _ref9.exportedDirectives,
              declaredPipes = _ref9.declaredPipes,
              exportedPipes = _ref9.exportedPipes,
              entryComponents = _ref9.entryComponents,
              bootstrapComponents = _ref9.bootstrapComponents,
              importedModules = _ref9.importedModules,
              exportedModules = _ref9.exportedModules,
              schemas = _ref9.schemas,
              transitiveModule = _ref9.transitiveModule,
              id = _ref9.id;

          _classCallCheck2(this, CompileNgModuleMetadata);

          this.type = type || null;
          this.declaredDirectives = _normalizeArray(declaredDirectives);
          this.exportedDirectives = _normalizeArray(exportedDirectives);
          this.declaredPipes = _normalizeArray(declaredPipes);
          this.exportedPipes = _normalizeArray(exportedPipes);
          this.providers = _normalizeArray(providers);
          this.entryComponents = _normalizeArray(entryComponents);
          this.bootstrapComponents = _normalizeArray(bootstrapComponents);
          this.importedModules = _normalizeArray(importedModules);
          this.exportedModules = _normalizeArray(exportedModules);
          this.schemas = _normalizeArray(schemas);
          this.id = id || null;
          this.transitiveModule = transitiveModule || null;
        }

        _createClass2(CompileNgModuleMetadata, [{
          key: "toSummary",
          value: function toSummary() {
            var module = this.transitiveModule;
            return {
              summaryKind: CompileSummaryKind.NgModule,
              type: this.type,
              entryComponents: module.entryComponents,
              providers: module.providers,
              modules: module.modules,
              exportedDirectives: module.exportedDirectives,
              exportedPipes: module.exportedPipes
            };
          }
        }]);

        return CompileNgModuleMetadata;
      }();

      var TransitiveCompileNgModuleMetadata = /*#__PURE__*/function () {
        function TransitiveCompileNgModuleMetadata() {
          _classCallCheck2(this, TransitiveCompileNgModuleMetadata);

          this.directivesSet = new Set();
          this.directives = [];
          this.exportedDirectivesSet = new Set();
          this.exportedDirectives = [];
          this.pipesSet = new Set();
          this.pipes = [];
          this.exportedPipesSet = new Set();
          this.exportedPipes = [];
          this.modulesSet = new Set();
          this.modules = [];
          this.entryComponentsSet = new Set();
          this.entryComponents = [];
          this.providers = [];
        }

        _createClass2(TransitiveCompileNgModuleMetadata, [{
          key: "addProvider",
          value: function addProvider(provider, module) {
            this.providers.push({
              provider: provider,
              module: module
            });
          }
        }, {
          key: "addDirective",
          value: function addDirective(id) {
            if (!this.directivesSet.has(id.reference)) {
              this.directivesSet.add(id.reference);
              this.directives.push(id);
            }
          }
        }, {
          key: "addExportedDirective",
          value: function addExportedDirective(id) {
            if (!this.exportedDirectivesSet.has(id.reference)) {
              this.exportedDirectivesSet.add(id.reference);
              this.exportedDirectives.push(id);
            }
          }
        }, {
          key: "addPipe",
          value: function addPipe(id) {
            if (!this.pipesSet.has(id.reference)) {
              this.pipesSet.add(id.reference);
              this.pipes.push(id);
            }
          }
        }, {
          key: "addExportedPipe",
          value: function addExportedPipe(id) {
            if (!this.exportedPipesSet.has(id.reference)) {
              this.exportedPipesSet.add(id.reference);
              this.exportedPipes.push(id);
            }
          }
        }, {
          key: "addModule",
          value: function addModule(id) {
            if (!this.modulesSet.has(id.reference)) {
              this.modulesSet.add(id.reference);
              this.modules.push(id);
            }
          }
        }, {
          key: "addEntryComponent",
          value: function addEntryComponent(ec) {
            if (!this.entryComponentsSet.has(ec.componentType)) {
              this.entryComponentsSet.add(ec.componentType);
              this.entryComponents.push(ec);
            }
          }
        }]);

        return TransitiveCompileNgModuleMetadata;
      }();

      function _normalizeArray(obj) {
        return obj || [];
      }

      var ProviderMeta = function ProviderMeta(token, _ref10) {
        var useClass = _ref10.useClass,
            useValue = _ref10.useValue,
            useExisting = _ref10.useExisting,
            useFactory = _ref10.useFactory,
            deps = _ref10.deps,
            multi = _ref10.multi;

        _classCallCheck2(this, ProviderMeta);

        this.token = token;
        this.useClass = useClass || null;
        this.useValue = useValue;
        this.useExisting = useExisting;
        this.useFactory = useFactory || null;
        this.dependencies = deps || null;
        this.multi = !!multi;
      };

      function flatten(list) {
        return list.reduce(function (flat, item) {
          var flatItem = Array.isArray(item) ? flatten(item) : item;
          return flat.concat(flatItem);
        }, []);
      }

      function jitSourceUrl(url) {
        // Note: We need 3 "/" so that ng shows up as a separate domain
        // in the chrome dev tools.
        return url.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/, 'ng:///');
      }

      function templateSourceUrl(ngModuleType, compMeta, templateMeta) {
        var url;

        if (templateMeta.isInline) {
          if (compMeta.type.reference instanceof StaticSymbol) {
            // Note: a .ts file might contain multiple components with inline templates,
            // so we need to give them unique urls, as these will be used for sourcemaps.
            url = "".concat(compMeta.type.reference.filePath, ".").concat(compMeta.type.reference.name, ".html");
          } else {
            url = "".concat(identifierName(ngModuleType), "/").concat(identifierName(compMeta.type), ".html");
          }
        } else {
          url = templateMeta.templateUrl;
        }

        return compMeta.type.reference instanceof StaticSymbol ? url : jitSourceUrl(url);
      }

      function sharedStylesheetJitUrl(meta, id) {
        var pathParts = meta.moduleUrl.split(/\/\\/g);
        var baseName = pathParts[pathParts.length - 1];
        return jitSourceUrl("css/".concat(id).concat(baseName, ".ngstyle.js"));
      }

      function ngModuleJitUrl(moduleMeta) {
        return jitSourceUrl("".concat(identifierName(moduleMeta.type), "/module.ngfactory.js"));
      }

      function templateJitUrl(ngModuleType, compMeta) {
        return jitSourceUrl("".concat(identifierName(ngModuleType), "/").concat(identifierName(compMeta.type), ".ngfactory.js"));
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var CORE$1 = '@angular/core';

      var Identifiers$1 = function Identifiers$1() {
        _classCallCheck2(this, Identifiers$1);
      };
      /* Methods */


      Identifiers$1.NEW_METHOD = 'factory';
      Identifiers$1.TRANSFORM_METHOD = 'transform';
      Identifiers$1.PATCH_DEPS = 'patchedDeps';
      /* Instructions */

      Identifiers$1.namespaceHTML = {
        name: 'ɵɵnamespaceHTML',
        moduleName: CORE$1
      };
      Identifiers$1.namespaceMathML = {
        name: 'ɵɵnamespaceMathML',
        moduleName: CORE$1
      };
      Identifiers$1.namespaceSVG = {
        name: 'ɵɵnamespaceSVG',
        moduleName: CORE$1
      };
      Identifiers$1.element = {
        name: 'ɵɵelement',
        moduleName: CORE$1
      };
      Identifiers$1.elementStart = {
        name: 'ɵɵelementStart',
        moduleName: CORE$1
      };
      Identifiers$1.elementEnd = {
        name: 'ɵɵelementEnd',
        moduleName: CORE$1
      };
      Identifiers$1.advance = {
        name: 'ɵɵadvance',
        moduleName: CORE$1
      };
      Identifiers$1.syntheticHostProperty = {
        name: 'ɵɵsyntheticHostProperty',
        moduleName: CORE$1
      };
      Identifiers$1.syntheticHostListener = {
        name: 'ɵɵsyntheticHostListener',
        moduleName: CORE$1
      };
      Identifiers$1.attribute = {
        name: 'ɵɵattribute',
        moduleName: CORE$1
      };
      Identifiers$1.attributeInterpolate1 = {
        name: 'ɵɵattributeInterpolate1',
        moduleName: CORE$1
      };
      Identifiers$1.attributeInterpolate2 = {
        name: 'ɵɵattributeInterpolate2',
        moduleName: CORE$1
      };
      Identifiers$1.attributeInterpolate3 = {
        name: 'ɵɵattributeInterpolate3',
        moduleName: CORE$1
      };
      Identifiers$1.attributeInterpolate4 = {
        name: 'ɵɵattributeInterpolate4',
        moduleName: CORE$1
      };
      Identifiers$1.attributeInterpolate5 = {
        name: 'ɵɵattributeInterpolate5',
        moduleName: CORE$1
      };
      Identifiers$1.attributeInterpolate6 = {
        name: 'ɵɵattributeInterpolate6',
        moduleName: CORE$1
      };
      Identifiers$1.attributeInterpolate7 = {
        name: 'ɵɵattributeInterpolate7',
        moduleName: CORE$1
      };
      Identifiers$1.attributeInterpolate8 = {
        name: 'ɵɵattributeInterpolate8',
        moduleName: CORE$1
      };
      Identifiers$1.attributeInterpolateV = {
        name: 'ɵɵattributeInterpolateV',
        moduleName: CORE$1
      };
      Identifiers$1.classProp = {
        name: 'ɵɵclassProp',
        moduleName: CORE$1
      };
      Identifiers$1.elementContainerStart = {
        name: 'ɵɵelementContainerStart',
        moduleName: CORE$1
      };
      Identifiers$1.elementContainerEnd = {
        name: 'ɵɵelementContainerEnd',
        moduleName: CORE$1
      };
      Identifiers$1.elementContainer = {
        name: 'ɵɵelementContainer',
        moduleName: CORE$1
      };
      Identifiers$1.styleMap = {
        name: 'ɵɵstyleMap',
        moduleName: CORE$1
      };
      Identifiers$1.styleMapInterpolate1 = {
        name: 'ɵɵstyleMapInterpolate1',
        moduleName: CORE$1
      };
      Identifiers$1.styleMapInterpolate2 = {
        name: 'ɵɵstyleMapInterpolate2',
        moduleName: CORE$1
      };
      Identifiers$1.styleMapInterpolate3 = {
        name: 'ɵɵstyleMapInterpolate3',
        moduleName: CORE$1
      };
      Identifiers$1.styleMapInterpolate4 = {
        name: 'ɵɵstyleMapInterpolate4',
        moduleName: CORE$1
      };
      Identifiers$1.styleMapInterpolate5 = {
        name: 'ɵɵstyleMapInterpolate5',
        moduleName: CORE$1
      };
      Identifiers$1.styleMapInterpolate6 = {
        name: 'ɵɵstyleMapInterpolate6',
        moduleName: CORE$1
      };
      Identifiers$1.styleMapInterpolate7 = {
        name: 'ɵɵstyleMapInterpolate7',
        moduleName: CORE$1
      };
      Identifiers$1.styleMapInterpolate8 = {
        name: 'ɵɵstyleMapInterpolate8',
        moduleName: CORE$1
      };
      Identifiers$1.styleMapInterpolateV = {
        name: 'ɵɵstyleMapInterpolateV',
        moduleName: CORE$1
      };
      Identifiers$1.classMap = {
        name: 'ɵɵclassMap',
        moduleName: CORE$1
      };
      Identifiers$1.classMapInterpolate1 = {
        name: 'ɵɵclassMapInterpolate1',
        moduleName: CORE$1
      };
      Identifiers$1.classMapInterpolate2 = {
        name: 'ɵɵclassMapInterpolate2',
        moduleName: CORE$1
      };
      Identifiers$1.classMapInterpolate3 = {
        name: 'ɵɵclassMapInterpolate3',
        moduleName: CORE$1
      };
      Identifiers$1.classMapInterpolate4 = {
        name: 'ɵɵclassMapInterpolate4',
        moduleName: CORE$1
      };
      Identifiers$1.classMapInterpolate5 = {
        name: 'ɵɵclassMapInterpolate5',
        moduleName: CORE$1
      };
      Identifiers$1.classMapInterpolate6 = {
        name: 'ɵɵclassMapInterpolate6',
        moduleName: CORE$1
      };
      Identifiers$1.classMapInterpolate7 = {
        name: 'ɵɵclassMapInterpolate7',
        moduleName: CORE$1
      };
      Identifiers$1.classMapInterpolate8 = {
        name: 'ɵɵclassMapInterpolate8',
        moduleName: CORE$1
      };
      Identifiers$1.classMapInterpolateV = {
        name: 'ɵɵclassMapInterpolateV',
        moduleName: CORE$1
      };
      Identifiers$1.styleProp = {
        name: 'ɵɵstyleProp',
        moduleName: CORE$1
      };
      Identifiers$1.stylePropInterpolate1 = {
        name: 'ɵɵstylePropInterpolate1',
        moduleName: CORE$1
      };
      Identifiers$1.stylePropInterpolate2 = {
        name: 'ɵɵstylePropInterpolate2',
        moduleName: CORE$1
      };
      Identifiers$1.stylePropInterpolate3 = {
        name: 'ɵɵstylePropInterpolate3',
        moduleName: CORE$1
      };
      Identifiers$1.stylePropInterpolate4 = {
        name: 'ɵɵstylePropInterpolate4',
        moduleName: CORE$1
      };
      Identifiers$1.stylePropInterpolate5 = {
        name: 'ɵɵstylePropInterpolate5',
        moduleName: CORE$1
      };
      Identifiers$1.stylePropInterpolate6 = {
        name: 'ɵɵstylePropInterpolate6',
        moduleName: CORE$1
      };
      Identifiers$1.stylePropInterpolate7 = {
        name: 'ɵɵstylePropInterpolate7',
        moduleName: CORE$1
      };
      Identifiers$1.stylePropInterpolate8 = {
        name: 'ɵɵstylePropInterpolate8',
        moduleName: CORE$1
      };
      Identifiers$1.stylePropInterpolateV = {
        name: 'ɵɵstylePropInterpolateV',
        moduleName: CORE$1
      };
      Identifiers$1.nextContext = {
        name: 'ɵɵnextContext',
        moduleName: CORE$1
      };
      Identifiers$1.templateCreate = {
        name: 'ɵɵtemplate',
        moduleName: CORE$1
      };
      Identifiers$1.text = {
        name: 'ɵɵtext',
        moduleName: CORE$1
      };
      Identifiers$1.enableBindings = {
        name: 'ɵɵenableBindings',
        moduleName: CORE$1
      };
      Identifiers$1.disableBindings = {
        name: 'ɵɵdisableBindings',
        moduleName: CORE$1
      };
      Identifiers$1.getCurrentView = {
        name: 'ɵɵgetCurrentView',
        moduleName: CORE$1
      };
      Identifiers$1.textInterpolate = {
        name: 'ɵɵtextInterpolate',
        moduleName: CORE$1
      };
      Identifiers$1.textInterpolate1 = {
        name: 'ɵɵtextInterpolate1',
        moduleName: CORE$1
      };
      Identifiers$1.textInterpolate2 = {
        name: 'ɵɵtextInterpolate2',
        moduleName: CORE$1
      };
      Identifiers$1.textInterpolate3 = {
        name: 'ɵɵtextInterpolate3',
        moduleName: CORE$1
      };
      Identifiers$1.textInterpolate4 = {
        name: 'ɵɵtextInterpolate4',
        moduleName: CORE$1
      };
      Identifiers$1.textInterpolate5 = {
        name: 'ɵɵtextInterpolate5',
        moduleName: CORE$1
      };
      Identifiers$1.textInterpolate6 = {
        name: 'ɵɵtextInterpolate6',
        moduleName: CORE$1
      };
      Identifiers$1.textInterpolate7 = {
        name: 'ɵɵtextInterpolate7',
        moduleName: CORE$1
      };
      Identifiers$1.textInterpolate8 = {
        name: 'ɵɵtextInterpolate8',
        moduleName: CORE$1
      };
      Identifiers$1.textInterpolateV = {
        name: 'ɵɵtextInterpolateV',
        moduleName: CORE$1
      };
      Identifiers$1.restoreView = {
        name: 'ɵɵrestoreView',
        moduleName: CORE$1
      };
      Identifiers$1.pureFunction0 = {
        name: 'ɵɵpureFunction0',
        moduleName: CORE$1
      };
      Identifiers$1.pureFunction1 = {
        name: 'ɵɵpureFunction1',
        moduleName: CORE$1
      };
      Identifiers$1.pureFunction2 = {
        name: 'ɵɵpureFunction2',
        moduleName: CORE$1
      };
      Identifiers$1.pureFunction3 = {
        name: 'ɵɵpureFunction3',
        moduleName: CORE$1
      };
      Identifiers$1.pureFunction4 = {
        name: 'ɵɵpureFunction4',
        moduleName: CORE$1
      };
      Identifiers$1.pureFunction5 = {
        name: 'ɵɵpureFunction5',
        moduleName: CORE$1
      };
      Identifiers$1.pureFunction6 = {
        name: 'ɵɵpureFunction6',
        moduleName: CORE$1
      };
      Identifiers$1.pureFunction7 = {
        name: 'ɵɵpureFunction7',
        moduleName: CORE$1
      };
      Identifiers$1.pureFunction8 = {
        name: 'ɵɵpureFunction8',
        moduleName: CORE$1
      };
      Identifiers$1.pureFunctionV = {
        name: 'ɵɵpureFunctionV',
        moduleName: CORE$1
      };
      Identifiers$1.pipeBind1 = {
        name: 'ɵɵpipeBind1',
        moduleName: CORE$1
      };
      Identifiers$1.pipeBind2 = {
        name: 'ɵɵpipeBind2',
        moduleName: CORE$1
      };
      Identifiers$1.pipeBind3 = {
        name: 'ɵɵpipeBind3',
        moduleName: CORE$1
      };
      Identifiers$1.pipeBind4 = {
        name: 'ɵɵpipeBind4',
        moduleName: CORE$1
      };
      Identifiers$1.pipeBindV = {
        name: 'ɵɵpipeBindV',
        moduleName: CORE$1
      };
      Identifiers$1.hostProperty = {
        name: 'ɵɵhostProperty',
        moduleName: CORE$1
      };
      Identifiers$1.property = {
        name: 'ɵɵproperty',
        moduleName: CORE$1
      };
      Identifiers$1.propertyInterpolate = {
        name: 'ɵɵpropertyInterpolate',
        moduleName: CORE$1
      };
      Identifiers$1.propertyInterpolate1 = {
        name: 'ɵɵpropertyInterpolate1',
        moduleName: CORE$1
      };
      Identifiers$1.propertyInterpolate2 = {
        name: 'ɵɵpropertyInterpolate2',
        moduleName: CORE$1
      };
      Identifiers$1.propertyInterpolate3 = {
        name: 'ɵɵpropertyInterpolate3',
        moduleName: CORE$1
      };
      Identifiers$1.propertyInterpolate4 = {
        name: 'ɵɵpropertyInterpolate4',
        moduleName: CORE$1
      };
      Identifiers$1.propertyInterpolate5 = {
        name: 'ɵɵpropertyInterpolate5',
        moduleName: CORE$1
      };
      Identifiers$1.propertyInterpolate6 = {
        name: 'ɵɵpropertyInterpolate6',
        moduleName: CORE$1
      };
      Identifiers$1.propertyInterpolate7 = {
        name: 'ɵɵpropertyInterpolate7',
        moduleName: CORE$1
      };
      Identifiers$1.propertyInterpolate8 = {
        name: 'ɵɵpropertyInterpolate8',
        moduleName: CORE$1
      };
      Identifiers$1.propertyInterpolateV = {
        name: 'ɵɵpropertyInterpolateV',
        moduleName: CORE$1
      };
      Identifiers$1.i18n = {
        name: 'ɵɵi18n',
        moduleName: CORE$1
      };
      Identifiers$1.i18nAttributes = {
        name: 'ɵɵi18nAttributes',
        moduleName: CORE$1
      };
      Identifiers$1.i18nExp = {
        name: 'ɵɵi18nExp',
        moduleName: CORE$1
      };
      Identifiers$1.i18nStart = {
        name: 'ɵɵi18nStart',
        moduleName: CORE$1
      };
      Identifiers$1.i18nEnd = {
        name: 'ɵɵi18nEnd',
        moduleName: CORE$1
      };
      Identifiers$1.i18nApply = {
        name: 'ɵɵi18nApply',
        moduleName: CORE$1
      };
      Identifiers$1.i18nPostprocess = {
        name: 'ɵɵi18nPostprocess',
        moduleName: CORE$1
      };
      Identifiers$1.pipe = {
        name: 'ɵɵpipe',
        moduleName: CORE$1
      };
      Identifiers$1.projection = {
        name: 'ɵɵprojection',
        moduleName: CORE$1
      };
      Identifiers$1.projectionDef = {
        name: 'ɵɵprojectionDef',
        moduleName: CORE$1
      };
      Identifiers$1.reference = {
        name: 'ɵɵreference',
        moduleName: CORE$1
      };
      Identifiers$1.inject = {
        name: 'ɵɵinject',
        moduleName: CORE$1
      };
      Identifiers$1.injectAttribute = {
        name: 'ɵɵinjectAttribute',
        moduleName: CORE$1
      };
      Identifiers$1.injectPipeChangeDetectorRef = {
        name: 'ɵɵinjectPipeChangeDetectorRef',
        moduleName: CORE$1
      };
      Identifiers$1.directiveInject = {
        name: 'ɵɵdirectiveInject',
        moduleName: CORE$1
      };
      Identifiers$1.invalidFactory = {
        name: 'ɵɵinvalidFactory',
        moduleName: CORE$1
      };
      Identifiers$1.invalidFactoryDep = {
        name: 'ɵɵinvalidFactoryDep',
        moduleName: CORE$1
      };
      Identifiers$1.templateRefExtractor = {
        name: 'ɵɵtemplateRefExtractor',
        moduleName: CORE$1
      };
      Identifiers$1.resolveWindow = {
        name: 'ɵɵresolveWindow',
        moduleName: CORE$1
      };
      Identifiers$1.resolveDocument = {
        name: 'ɵɵresolveDocument',
        moduleName: CORE$1
      };
      Identifiers$1.resolveBody = {
        name: 'ɵɵresolveBody',
        moduleName: CORE$1
      };
      Identifiers$1.defineComponent = {
        name: 'ɵɵdefineComponent',
        moduleName: CORE$1
      };
      Identifiers$1.setComponentScope = {
        name: 'ɵɵsetComponentScope',
        moduleName: CORE$1
      };
      Identifiers$1.ComponentDefWithMeta = {
        name: 'ɵɵComponentDefWithMeta',
        moduleName: CORE$1
      };
      Identifiers$1.FactoryDef = {
        name: 'ɵɵFactoryDef',
        moduleName: CORE$1
      };
      Identifiers$1.defineDirective = {
        name: 'ɵɵdefineDirective',
        moduleName: CORE$1
      };
      Identifiers$1.DirectiveDefWithMeta = {
        name: 'ɵɵDirectiveDefWithMeta',
        moduleName: CORE$1
      };
      Identifiers$1.InjectorDef = {
        name: 'ɵɵInjectorDef',
        moduleName: CORE$1
      };
      Identifiers$1.defineInjector = {
        name: 'ɵɵdefineInjector',
        moduleName: CORE$1
      };
      Identifiers$1.NgModuleDefWithMeta = {
        name: 'ɵɵNgModuleDefWithMeta',
        moduleName: CORE$1
      };
      Identifiers$1.ModuleWithProviders = {
        name: 'ModuleWithProviders',
        moduleName: CORE$1
      };
      Identifiers$1.defineNgModule = {
        name: 'ɵɵdefineNgModule',
        moduleName: CORE$1
      };
      Identifiers$1.setNgModuleScope = {
        name: 'ɵɵsetNgModuleScope',
        moduleName: CORE$1
      };
      Identifiers$1.PipeDefWithMeta = {
        name: 'ɵɵPipeDefWithMeta',
        moduleName: CORE$1
      };
      Identifiers$1.definePipe = {
        name: 'ɵɵdefinePipe',
        moduleName: CORE$1
      };
      Identifiers$1.queryRefresh = {
        name: 'ɵɵqueryRefresh',
        moduleName: CORE$1
      };
      Identifiers$1.viewQuery = {
        name: 'ɵɵviewQuery',
        moduleName: CORE$1
      };
      Identifiers$1.staticViewQuery = {
        name: 'ɵɵstaticViewQuery',
        moduleName: CORE$1
      };
      Identifiers$1.staticContentQuery = {
        name: 'ɵɵstaticContentQuery',
        moduleName: CORE$1
      };
      Identifiers$1.loadQuery = {
        name: 'ɵɵloadQuery',
        moduleName: CORE$1
      };
      Identifiers$1.contentQuery = {
        name: 'ɵɵcontentQuery',
        moduleName: CORE$1
      };
      Identifiers$1.NgOnChangesFeature = {
        name: 'ɵɵNgOnChangesFeature',
        moduleName: CORE$1
      };
      Identifiers$1.InheritDefinitionFeature = {
        name: 'ɵɵInheritDefinitionFeature',
        moduleName: CORE$1
      };
      Identifiers$1.CopyDefinitionFeature = {
        name: 'ɵɵCopyDefinitionFeature',
        moduleName: CORE$1
      };
      Identifiers$1.ProvidersFeature = {
        name: 'ɵɵProvidersFeature',
        moduleName: CORE$1
      };
      Identifiers$1.listener = {
        name: 'ɵɵlistener',
        moduleName: CORE$1
      };
      Identifiers$1.getFactoryOf = {
        name: 'ɵɵgetFactoryOf',
        moduleName: CORE$1
      };
      Identifiers$1.getInheritedFactory = {
        name: 'ɵɵgetInheritedFactory',
        moduleName: CORE$1
      }; // sanitization-related functions

      Identifiers$1.sanitizeHtml = {
        name: 'ɵɵsanitizeHtml',
        moduleName: CORE$1
      };
      Identifiers$1.sanitizeStyle = {
        name: 'ɵɵsanitizeStyle',
        moduleName: CORE$1
      };
      Identifiers$1.sanitizeResourceUrl = {
        name: 'ɵɵsanitizeResourceUrl',
        moduleName: CORE$1
      };
      Identifiers$1.sanitizeScript = {
        name: 'ɵɵsanitizeScript',
        moduleName: CORE$1
      };
      Identifiers$1.sanitizeUrl = {
        name: 'ɵɵsanitizeUrl',
        moduleName: CORE$1
      };
      Identifiers$1.sanitizeUrlOrResourceUrl = {
        name: 'ɵɵsanitizeUrlOrResourceUrl',
        moduleName: CORE$1
      };
      Identifiers$1.trustConstantHtml = {
        name: 'ɵɵtrustConstantHtml',
        moduleName: CORE$1
      };
      Identifiers$1.trustConstantScript = {
        name: 'ɵɵtrustConstantScript',
        moduleName: CORE$1
      };
      Identifiers$1.trustConstantResourceUrl = {
        name: 'ɵɵtrustConstantResourceUrl',
        moduleName: CORE$1
      };
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Convert an object map with `Expression` values into a `LiteralMapExpr`.
       */

      function mapToMapExpression(map) {
        var result = Object.keys(map).map(function (key) {
          return {
            key: key,
            // The assertion here is because really TypeScript doesn't allow us to express that if the
            // key is present, it will have a value, but this is true in reality.
            value: map[key],
            quoted: false
          };
        });
        return literalMap(result);
      }
      /**
       * Convert metadata into an `Expression` in the given `OutputContext`.
       *
       * This operation will handle arrays, references to symbols, or literal `null` or `undefined`.
       */


      function convertMetaToOutput(meta, ctx) {
        if (Array.isArray(meta)) {
          return literalArr(meta.map(function (entry) {
            return convertMetaToOutput(entry, ctx);
          }));
        }

        if (meta instanceof StaticSymbol) {
          return ctx.importExpr(meta);
        }

        if (meta == null) {
          return literal(meta);
        }

        throw new Error("Internal error: Unsupported or unknown metadata: ".concat(meta));
      }

      function typeWithParameters(type, numParams) {
        if (numParams === 0) {
          return expressionType(type);
        }

        var params = [];

        for (var i = 0; i < numParams; i++) {
          params.push(DYNAMIC_TYPE);
        }

        return expressionType(type, undefined, params);
      }

      var ANIMATE_SYMBOL_PREFIX = '@';

      function prepareSyntheticPropertyName(name) {
        return "".concat(ANIMATE_SYMBOL_PREFIX).concat(name);
      }

      function prepareSyntheticListenerName(name, phase) {
        return "".concat(ANIMATE_SYMBOL_PREFIX).concat(name, ".").concat(phase);
      }

      function isSyntheticPropertyOrListener(name) {
        return name.charAt(0) == ANIMATE_SYMBOL_PREFIX;
      }

      function getSyntheticPropertyName(name) {
        // this will strip out listener phase values...
        // @foo.start => @foo
        var i = name.indexOf('.');
        name = i > 0 ? name.substring(0, i) : name;

        if (name.charAt(0) !== ANIMATE_SYMBOL_PREFIX) {
          name = ANIMATE_SYMBOL_PREFIX + name;
        }

        return name;
      }

      function prepareSyntheticListenerFunctionName(name, phase) {
        return "animation_".concat(name, "_").concat(phase);
      }

      function jitOnlyGuardedExpression(expr) {
        var ngJitMode = new ExternalExpr({
          name: 'ngJitMode',
          moduleName: null
        });
        var jitFlagNotDefined = new BinaryOperatorExpr(BinaryOperator.Identical, new TypeofExpr(ngJitMode), literal('undefined'));
        var jitFlagUndefinedOrTrue = new BinaryOperatorExpr(BinaryOperator.Or, jitFlagNotDefined, ngJitMode,
        /* type */
        undefined,
        /* sourceSpan */
        undefined, true);
        return new BinaryOperatorExpr(BinaryOperator.And, jitFlagUndefinedOrTrue, expr);
      }

      function wrapReference(value) {
        var wrapped = new WrappedNodeExpr(value);
        return {
          value: wrapped,
          type: wrapped
        };
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var Text = /*#__PURE__*/function () {
        function Text(value, sourceSpan) {
          _classCallCheck2(this, Text);

          this.value = value;
          this.sourceSpan = sourceSpan;
        }

        _createClass2(Text, [{
          key: "visit",
          value: function visit(visitor) {
            return visitor.visitText(this);
          }
        }]);

        return Text;
      }();

      var BoundText = /*#__PURE__*/function () {
        function BoundText(value, sourceSpan, i18n) {
          _classCallCheck2(this, BoundText);

          this.value = value;
          this.sourceSpan = sourceSpan;
          this.i18n = i18n;
        }

        _createClass2(BoundText, [{
          key: "visit",
          value: function visit(visitor) {
            return visitor.visitBoundText(this);
          }
        }]);

        return BoundText;
      }();

      var TextAttribute = /*#__PURE__*/function () {
        function TextAttribute(name, value, sourceSpan, valueSpan, i18n) {
          _classCallCheck2(this, TextAttribute);

          this.name = name;
          this.value = value;
          this.sourceSpan = sourceSpan;
          this.valueSpan = valueSpan;
          this.i18n = i18n;
        }

        _createClass2(TextAttribute, [{
          key: "visit",
          value: function visit(visitor) {
            return visitor.visitTextAttribute(this);
          }
        }]);

        return TextAttribute;
      }();

      var BoundAttribute = /*#__PURE__*/function () {
        function BoundAttribute(name, type, securityContext, value, unit, sourceSpan, keySpan, valueSpan, i18n) {
          _classCallCheck2(this, BoundAttribute);

          this.name = name;
          this.type = type;
          this.securityContext = securityContext;
          this.value = value;
          this.unit = unit;
          this.sourceSpan = sourceSpan;
          this.keySpan = keySpan;
          this.valueSpan = valueSpan;
          this.i18n = i18n;
        }

        _createClass2(BoundAttribute, [{
          key: "visit",
          value: function visit(visitor) {
            return visitor.visitBoundAttribute(this);
          }
        }], [{
          key: "fromBoundElementProperty",
          value: function fromBoundElementProperty(prop, i18n) {
            if (prop.keySpan === undefined) {
              throw new Error("Unexpected state: keySpan must be defined for bound attributes but was not for ".concat(prop.name, ": ").concat(prop.sourceSpan));
            }

            return new BoundAttribute(prop.name, prop.type, prop.securityContext, prop.value, prop.unit, prop.sourceSpan, prop.keySpan, prop.valueSpan, i18n);
          }
        }]);

        return BoundAttribute;
      }();

      var BoundEvent = /*#__PURE__*/function () {
        function BoundEvent(name, type, handler, target, phase, sourceSpan, handlerSpan) {
          _classCallCheck2(this, BoundEvent);

          this.name = name;
          this.type = type;
          this.handler = handler;
          this.target = target;
          this.phase = phase;
          this.sourceSpan = sourceSpan;
          this.handlerSpan = handlerSpan;
        }

        _createClass2(BoundEvent, [{
          key: "visit",
          value: function visit(visitor) {
            return visitor.visitBoundEvent(this);
          }
        }], [{
          key: "fromParsedEvent",
          value: function fromParsedEvent(event) {
            var target = event.type === 0
            /* Regular */
            ? event.targetOrPhase : null;
            var phase = event.type === 1
            /* Animation */
            ? event.targetOrPhase : null;
            return new BoundEvent(event.name, event.type, event.handler, target, phase, event.sourceSpan, event.handlerSpan);
          }
        }]);

        return BoundEvent;
      }();

      var Element = /*#__PURE__*/function () {
        function Element(name, attributes, inputs, outputs, children, references, sourceSpan, startSourceSpan, endSourceSpan, i18n) {
          _classCallCheck2(this, Element);

          this.name = name;
          this.attributes = attributes;
          this.inputs = inputs;
          this.outputs = outputs;
          this.children = children;
          this.references = references;
          this.sourceSpan = sourceSpan;
          this.startSourceSpan = startSourceSpan;
          this.endSourceSpan = endSourceSpan;
          this.i18n = i18n;
        }

        _createClass2(Element, [{
          key: "visit",
          value: function visit(visitor) {
            return visitor.visitElement(this);
          }
        }]);

        return Element;
      }();

      var Template = /*#__PURE__*/function () {
        function Template(tagName, attributes, inputs, outputs, templateAttrs, children, references, variables, sourceSpan, startSourceSpan, endSourceSpan, i18n) {
          _classCallCheck2(this, Template);

          this.tagName = tagName;
          this.attributes = attributes;
          this.inputs = inputs;
          this.outputs = outputs;
          this.templateAttrs = templateAttrs;
          this.children = children;
          this.references = references;
          this.variables = variables;
          this.sourceSpan = sourceSpan;
          this.startSourceSpan = startSourceSpan;
          this.endSourceSpan = endSourceSpan;
          this.i18n = i18n;
        }

        _createClass2(Template, [{
          key: "visit",
          value: function visit(visitor) {
            return visitor.visitTemplate(this);
          }
        }]);

        return Template;
      }();

      var Content = /*#__PURE__*/function () {
        function Content(selector, attributes, sourceSpan, i18n) {
          _classCallCheck2(this, Content);

          this.selector = selector;
          this.attributes = attributes;
          this.sourceSpan = sourceSpan;
          this.i18n = i18n;
          this.name = 'ng-content';
        }

        _createClass2(Content, [{
          key: "visit",
          value: function visit(visitor) {
            return visitor.visitContent(this);
          }
        }]);

        return Content;
      }();

      var Variable = /*#__PURE__*/function () {
        function Variable(name, value, sourceSpan, keySpan, valueSpan) {
          _classCallCheck2(this, Variable);

          this.name = name;
          this.value = value;
          this.sourceSpan = sourceSpan;
          this.keySpan = keySpan;
          this.valueSpan = valueSpan;
        }

        _createClass2(Variable, [{
          key: "visit",
          value: function visit(visitor) {
            return visitor.visitVariable(this);
          }
        }]);

        return Variable;
      }();

      var Reference = /*#__PURE__*/function () {
        function Reference(name, value, sourceSpan, valueSpan) {
          _classCallCheck2(this, Reference);

          this.name = name;
          this.value = value;
          this.sourceSpan = sourceSpan;
          this.valueSpan = valueSpan;
        }

        _createClass2(Reference, [{
          key: "visit",
          value: function visit(visitor) {
            return visitor.visitReference(this);
          }
        }]);

        return Reference;
      }();

      var Icu = /*#__PURE__*/function () {
        function Icu(vars, placeholders, sourceSpan, i18n) {
          _classCallCheck2(this, Icu);

          this.vars = vars;
          this.placeholders = placeholders;
          this.sourceSpan = sourceSpan;
          this.i18n = i18n;
        }

        _createClass2(Icu, [{
          key: "visit",
          value: function visit(visitor) {
            return visitor.visitIcu(this);
          }
        }]);

        return Icu;
      }();

      var NullVisitor = /*#__PURE__*/function () {
        function NullVisitor() {
          _classCallCheck2(this, NullVisitor);
        }

        _createClass2(NullVisitor, [{
          key: "visitElement",
          value: function visitElement(element) {}
        }, {
          key: "visitTemplate",
          value: function visitTemplate(template) {}
        }, {
          key: "visitContent",
          value: function visitContent(content) {}
        }, {
          key: "visitVariable",
          value: function visitVariable(variable) {}
        }, {
          key: "visitReference",
          value: function visitReference(reference) {}
        }, {
          key: "visitTextAttribute",
          value: function visitTextAttribute(attribute) {}
        }, {
          key: "visitBoundAttribute",
          value: function visitBoundAttribute(attribute) {}
        }, {
          key: "visitBoundEvent",
          value: function visitBoundEvent(attribute) {}
        }, {
          key: "visitText",
          value: function visitText(text) {}
        }, {
          key: "visitBoundText",
          value: function visitBoundText(text) {}
        }, {
          key: "visitIcu",
          value: function visitIcu(icu) {}
        }]);

        return NullVisitor;
      }();

      var RecursiveVisitor = /*#__PURE__*/function () {
        function RecursiveVisitor() {
          _classCallCheck2(this, RecursiveVisitor);
        }

        _createClass2(RecursiveVisitor, [{
          key: "visitElement",
          value: function visitElement(element) {
            visitAll(this, element.attributes);
            visitAll(this, element.children);
            visitAll(this, element.references);
          }
        }, {
          key: "visitTemplate",
          value: function visitTemplate(template) {
            visitAll(this, template.attributes);
            visitAll(this, template.children);
            visitAll(this, template.references);
            visitAll(this, template.variables);
          }
        }, {
          key: "visitContent",
          value: function visitContent(content) {}
        }, {
          key: "visitVariable",
          value: function visitVariable(variable) {}
        }, {
          key: "visitReference",
          value: function visitReference(reference) {}
        }, {
          key: "visitTextAttribute",
          value: function visitTextAttribute(attribute) {}
        }, {
          key: "visitBoundAttribute",
          value: function visitBoundAttribute(attribute) {}
        }, {
          key: "visitBoundEvent",
          value: function visitBoundEvent(attribute) {}
        }, {
          key: "visitText",
          value: function visitText(text) {}
        }, {
          key: "visitBoundText",
          value: function visitBoundText(text) {}
        }, {
          key: "visitIcu",
          value: function visitIcu(icu) {}
        }]);

        return RecursiveVisitor;
      }();

      var TransformVisitor = /*#__PURE__*/function () {
        function TransformVisitor() {
          _classCallCheck2(this, TransformVisitor);
        }

        _createClass2(TransformVisitor, [{
          key: "visitElement",
          value: function visitElement(element) {
            var newAttributes = transformAll(this, element.attributes);
            var newInputs = transformAll(this, element.inputs);
            var newOutputs = transformAll(this, element.outputs);
            var newChildren = transformAll(this, element.children);
            var newReferences = transformAll(this, element.references);

            if (newAttributes != element.attributes || newInputs != element.inputs || newOutputs != element.outputs || newChildren != element.children || newReferences != element.references) {
              return new Element(element.name, newAttributes, newInputs, newOutputs, newChildren, newReferences, element.sourceSpan, element.startSourceSpan, element.endSourceSpan);
            }

            return element;
          }
        }, {
          key: "visitTemplate",
          value: function visitTemplate(template) {
            var newAttributes = transformAll(this, template.attributes);
            var newInputs = transformAll(this, template.inputs);
            var newOutputs = transformAll(this, template.outputs);
            var newTemplateAttrs = transformAll(this, template.templateAttrs);
            var newChildren = transformAll(this, template.children);
            var newReferences = transformAll(this, template.references);
            var newVariables = transformAll(this, template.variables);

            if (newAttributes != template.attributes || newInputs != template.inputs || newOutputs != template.outputs || newTemplateAttrs != template.templateAttrs || newChildren != template.children || newReferences != template.references || newVariables != template.variables) {
              return new Template(template.tagName, newAttributes, newInputs, newOutputs, newTemplateAttrs, newChildren, newReferences, newVariables, template.sourceSpan, template.startSourceSpan, template.endSourceSpan);
            }

            return template;
          }
        }, {
          key: "visitContent",
          value: function visitContent(content) {
            return content;
          }
        }, {
          key: "visitVariable",
          value: function visitVariable(variable) {
            return variable;
          }
        }, {
          key: "visitReference",
          value: function visitReference(reference) {
            return reference;
          }
        }, {
          key: "visitTextAttribute",
          value: function visitTextAttribute(attribute) {
            return attribute;
          }
        }, {
          key: "visitBoundAttribute",
          value: function visitBoundAttribute(attribute) {
            return attribute;
          }
        }, {
          key: "visitBoundEvent",
          value: function visitBoundEvent(attribute) {
            return attribute;
          }
        }, {
          key: "visitText",
          value: function visitText(text) {
            return text;
          }
        }, {
          key: "visitBoundText",
          value: function visitBoundText(text) {
            return text;
          }
        }, {
          key: "visitIcu",
          value: function visitIcu(icu) {
            return icu;
          }
        }]);

        return TransformVisitor;
      }();

      function visitAll(visitor, nodes) {
        var result = [];

        if (visitor.visit) {
          var _iterator6 = _createForOfIteratorHelper(nodes),
              _step6;

          try {
            for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
              var node = _step6.value;
              var newNode = visitor.visit(node) || node.visit(visitor);
            }
          } catch (err) {
            _iterator6.e(err);
          } finally {
            _iterator6.f();
          }
        } else {
          var _iterator7 = _createForOfIteratorHelper(nodes),
              _step7;

          try {
            for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
              var _node = _step7.value;

              var _newNode = _node.visit(visitor);

              if (_newNode) {
                result.push(_newNode);
              }
            }
          } catch (err) {
            _iterator7.e(err);
          } finally {
            _iterator7.f();
          }
        }

        return result;
      }

      function transformAll(visitor, nodes) {
        var result = [];
        var changed = false;

        var _iterator8 = _createForOfIteratorHelper(nodes),
            _step8;

        try {
          for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
            var node = _step8.value;
            var newNode = node.visit(visitor);

            if (newNode) {
              result.push(newNode);
            }

            changed = changed || newNode != node;
          }
        } catch (err) {
          _iterator8.e(err);
        } finally {
          _iterator8.f();
        }

        return changed ? result : nodes;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var Message =
      /**
       * @param nodes message AST
       * @param placeholders maps placeholder names to static content and their source spans
       * @param placeholderToMessage maps placeholder names to messages (used for nested ICU messages)
       * @param meaning
       * @param description
       * @param customId
       */
      function Message(nodes, placeholders, placeholderToMessage, meaning, description, customId) {
        _classCallCheck2(this, Message);

        this.nodes = nodes;
        this.placeholders = placeholders;
        this.placeholderToMessage = placeholderToMessage;
        this.meaning = meaning;
        this.description = description;
        this.customId = customId;
        this.id = this.customId;
        /** The ids to use if there are no custom id and if `i18nLegacyMessageIdFormat` is not empty */

        this.legacyIds = [];

        if (nodes.length) {
          this.sources = [{
            filePath: nodes[0].sourceSpan.start.file.url,
            startLine: nodes[0].sourceSpan.start.line + 1,
            startCol: nodes[0].sourceSpan.start.col + 1,
            endLine: nodes[nodes.length - 1].sourceSpan.end.line + 1,
            endCol: nodes[0].sourceSpan.start.col + 1
          }];
        } else {
          this.sources = [];
        }
      };

      var Text$1 = /*#__PURE__*/function () {
        function Text$1(value, sourceSpan) {
          _classCallCheck2(this, Text$1);

          this.value = value;
          this.sourceSpan = sourceSpan;
        }

        _createClass2(Text$1, [{
          key: "visit",
          value: function visit(visitor, context) {
            return visitor.visitText(this, context);
          }
        }]);

        return Text$1;
      }(); // TODO(vicb): do we really need this node (vs an array) ?


      var Container = /*#__PURE__*/function () {
        function Container(children, sourceSpan) {
          _classCallCheck2(this, Container);

          this.children = children;
          this.sourceSpan = sourceSpan;
        }

        _createClass2(Container, [{
          key: "visit",
          value: function visit(visitor, context) {
            return visitor.visitContainer(this, context);
          }
        }]);

        return Container;
      }();

      var Icu$1 = /*#__PURE__*/function () {
        function Icu$1(expression, type, cases, sourceSpan) {
          _classCallCheck2(this, Icu$1);

          this.expression = expression;
          this.type = type;
          this.cases = cases;
          this.sourceSpan = sourceSpan;
        }

        _createClass2(Icu$1, [{
          key: "visit",
          value: function visit(visitor, context) {
            return visitor.visitIcu(this, context);
          }
        }]);

        return Icu$1;
      }();

      var TagPlaceholder = /*#__PURE__*/function () {
        function TagPlaceholder(tag, attrs, startName, closeName, children, isVoid, // TODO sourceSpan should cover all (we need a startSourceSpan and endSourceSpan)
        sourceSpan, startSourceSpan, endSourceSpan) {
          _classCallCheck2(this, TagPlaceholder);

          this.tag = tag;
          this.attrs = attrs;
          this.startName = startName;
          this.closeName = closeName;
          this.children = children;
          this.isVoid = isVoid;
          this.sourceSpan = sourceSpan;
          this.startSourceSpan = startSourceSpan;
          this.endSourceSpan = endSourceSpan;
        }

        _createClass2(TagPlaceholder, [{
          key: "visit",
          value: function visit(visitor, context) {
            return visitor.visitTagPlaceholder(this, context);
          }
        }]);

        return TagPlaceholder;
      }();

      var Placeholder = /*#__PURE__*/function () {
        function Placeholder(value, name, sourceSpan) {
          _classCallCheck2(this, Placeholder);

          this.value = value;
          this.name = name;
          this.sourceSpan = sourceSpan;
        }

        _createClass2(Placeholder, [{
          key: "visit",
          value: function visit(visitor, context) {
            return visitor.visitPlaceholder(this, context);
          }
        }]);

        return Placeholder;
      }();

      var IcuPlaceholder = /*#__PURE__*/function () {
        function IcuPlaceholder(value, name, sourceSpan) {
          _classCallCheck2(this, IcuPlaceholder);

          this.value = value;
          this.name = name;
          this.sourceSpan = sourceSpan;
        }

        _createClass2(IcuPlaceholder, [{
          key: "visit",
          value: function visit(visitor, context) {
            return visitor.visitIcuPlaceholder(this, context);
          }
        }]);

        return IcuPlaceholder;
      }(); // Clone the AST


      var CloneVisitor = /*#__PURE__*/function () {
        function CloneVisitor() {
          _classCallCheck2(this, CloneVisitor);
        }

        _createClass2(CloneVisitor, [{
          key: "visitText",
          value: function visitText(text, context) {
            return new Text$1(text.value, text.sourceSpan);
          }
        }, {
          key: "visitContainer",
          value: function visitContainer(container, context) {
            var _this109 = this;

            var children = container.children.map(function (n) {
              return n.visit(_this109, context);
            });
            return new Container(children, container.sourceSpan);
          }
        }, {
          key: "visitIcu",
          value: function visitIcu(icu, context) {
            var _this110 = this;

            var cases = {};
            Object.keys(icu.cases).forEach(function (key) {
              return cases[key] = icu.cases[key].visit(_this110, context);
            });
            var msg = new Icu$1(icu.expression, icu.type, cases, icu.sourceSpan);
            msg.expressionPlaceholder = icu.expressionPlaceholder;
            return msg;
          }
        }, {
          key: "visitTagPlaceholder",
          value: function visitTagPlaceholder(ph, context) {
            var _this111 = this;

            var children = ph.children.map(function (n) {
              return n.visit(_this111, context);
            });
            return new TagPlaceholder(ph.tag, ph.attrs, ph.startName, ph.closeName, children, ph.isVoid, ph.sourceSpan, ph.startSourceSpan, ph.endSourceSpan);
          }
        }, {
          key: "visitPlaceholder",
          value: function visitPlaceholder(ph, context) {
            return new Placeholder(ph.value, ph.name, ph.sourceSpan);
          }
        }, {
          key: "visitIcuPlaceholder",
          value: function visitIcuPlaceholder(ph, context) {
            return new IcuPlaceholder(ph.value, ph.name, ph.sourceSpan);
          }
        }]);

        return CloneVisitor;
      }(); // Visit all the nodes recursively


      var RecurseVisitor = /*#__PURE__*/function () {
        function RecurseVisitor() {
          _classCallCheck2(this, RecurseVisitor);
        }

        _createClass2(RecurseVisitor, [{
          key: "visitText",
          value: function visitText(text, context) {}
        }, {
          key: "visitContainer",
          value: function visitContainer(container, context) {
            var _this112 = this;

            container.children.forEach(function (child) {
              return child.visit(_this112);
            });
          }
        }, {
          key: "visitIcu",
          value: function visitIcu(icu, context) {
            var _this113 = this;

            Object.keys(icu.cases).forEach(function (k) {
              icu.cases[k].visit(_this113);
            });
          }
        }, {
          key: "visitTagPlaceholder",
          value: function visitTagPlaceholder(ph, context) {
            var _this114 = this;

            ph.children.forEach(function (child) {
              return child.visit(_this114);
            });
          }
        }, {
          key: "visitPlaceholder",
          value: function visitPlaceholder(ph, context) {}
        }, {
          key: "visitIcuPlaceholder",
          value: function visitIcuPlaceholder(ph, context) {}
        }]);

        return RecurseVisitor;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Return the message id or compute it using the XLIFF1 digest.
       */


      function _digest2(message) {
        return message.id || computeDigest(message);
      }
      /**
       * Compute the message id using the XLIFF1 digest.
       */


      function computeDigest(message) {
        return sha1(serializeNodes(message.nodes).join('') + "[".concat(message.meaning, "]"));
      }
      /**
       * Return the message id or compute it using the XLIFF2/XMB/$localize digest.
       */


      function decimalDigest(message) {
        return message.id || computeDecimalDigest(message);
      }
      /**
       * Compute the message id using the XLIFF2/XMB/$localize digest.
       */


      function computeDecimalDigest(message) {
        var visitor = new _SerializerIgnoreIcuExpVisitor();
        var parts = message.nodes.map(function (a) {
          return a.visit(visitor, null);
        });
        return computeMsgId(parts.join(''), message.meaning);
      }
      /**
       * Serialize the i18n ast to something xml-like in order to generate an UID.
       *
       * The visitor is also used in the i18n parser tests
       *
       * @internal
       */


      var _SerializerVisitor = /*#__PURE__*/function () {
        function _SerializerVisitor() {
          _classCallCheck2(this, _SerializerVisitor);
        }

        _createClass2(_SerializerVisitor, [{
          key: "visitText",
          value: function visitText(text, context) {
            return text.value;
          }
        }, {
          key: "visitContainer",
          value: function visitContainer(container, context) {
            var _this115 = this;

            return "[".concat(container.children.map(function (child) {
              return child.visit(_this115);
            }).join(', '), "]");
          }
        }, {
          key: "visitIcu",
          value: function visitIcu(icu, context) {
            var _this116 = this;

            var strCases = Object.keys(icu.cases).map(function (k) {
              return "".concat(k, " {").concat(icu.cases[k].visit(_this116), "}");
            });
            return "{".concat(icu.expression, ", ").concat(icu.type, ", ").concat(strCases.join(', '), "}");
          }
        }, {
          key: "visitTagPlaceholder",
          value: function visitTagPlaceholder(ph, context) {
            var _this117 = this;

            return ph.isVoid ? "<ph tag name=\"".concat(ph.startName, "\"/>") : "<ph tag name=\"".concat(ph.startName, "\">").concat(ph.children.map(function (child) {
              return child.visit(_this117);
            }).join(', '), "</ph name=\"").concat(ph.closeName, "\">");
          }
        }, {
          key: "visitPlaceholder",
          value: function visitPlaceholder(ph, context) {
            return ph.value ? "<ph name=\"".concat(ph.name, "\">").concat(ph.value, "</ph>") : "<ph name=\"".concat(ph.name, "\"/>");
          }
        }, {
          key: "visitIcuPlaceholder",
          value: function visitIcuPlaceholder(ph, context) {
            return "<ph icu name=\"".concat(ph.name, "\">").concat(ph.value.visit(this), "</ph>");
          }
        }]);

        return _SerializerVisitor;
      }();

      var serializerVisitor = new _SerializerVisitor();

      function serializeNodes(nodes) {
        return nodes.map(function (a) {
          return a.visit(serializerVisitor, null);
        });
      }
      /**
       * Serialize the i18n ast to something xml-like in order to generate an UID.
       *
       * Ignore the ICU expressions so that message IDs stays identical if only the expression changes.
       *
       * @internal
       */


      var _SerializerIgnoreIcuExpVisitor = /*#__PURE__*/function (_SerializerVisitor2) {
        _inherits2(_SerializerIgnoreIcuExpVisitor, _SerializerVisitor2);

        var _super57 = _createSuper2(_SerializerIgnoreIcuExpVisitor);

        function _SerializerIgnoreIcuExpVisitor() {
          _classCallCheck2(this, _SerializerIgnoreIcuExpVisitor);

          return _super57.apply(this, arguments);
        }

        _createClass2(_SerializerIgnoreIcuExpVisitor, [{
          key: "visitIcu",
          value: function visitIcu(icu, context) {
            var _this118 = this;

            var strCases = Object.keys(icu.cases).map(function (k) {
              return "".concat(k, " {").concat(icu.cases[k].visit(_this118), "}");
            }); // Do not take the expression into account

            return "{".concat(icu.type, ", ").concat(strCases.join(', '), "}");
          }
        }]);

        return _SerializerIgnoreIcuExpVisitor;
      }(_SerializerVisitor);
      /**
       * Compute the SHA1 of the given string
       *
       * see http://csrc.nist.gov/publications/fips/fips180-4/fips-180-4.pdf
       *
       * WARNING: this function has not been designed not tested with security in mind.
       *          DO NOT USE IT IN A SECURITY SENSITIVE CONTEXT.
       */


      function sha1(str) {
        var utf8 = utf8Encode(str);
        var words32 = stringToWords32(utf8, Endian.Big);
        var len = utf8.length * 8;
        var w = newArray(80);
        var a = 0x67452301,
            b = 0xefcdab89,
            c = 0x98badcfe,
            d = 0x10325476,
            e = 0xc3d2e1f0;
        words32[len >> 5] |= 0x80 << 24 - len % 32;
        words32[(len + 64 >> 9 << 4) + 15] = len;

        for (var i = 0; i < words32.length; i += 16) {
          var h0 = a,
              h1 = b,
              h2 = c,
              h3 = d,
              h4 = e;

          for (var j = 0; j < 80; j++) {
            if (j < 16) {
              w[j] = words32[i + j];
            } else {
              w[j] = rol32(w[j - 3] ^ w[j - 8] ^ w[j - 14] ^ w[j - 16], 1);
            }

            var fkVal = fk(j, b, c, d);
            var f = fkVal[0];
            var k = fkVal[1];
            var temp = [rol32(a, 5), f, e, k, w[j]].reduce(add32);
            e = d;
            d = c;
            c = rol32(b, 30);
            b = a;
            a = temp;
          }

          a = add32(a, h0);
          b = add32(b, h1);
          c = add32(c, h2);
          d = add32(d, h3);
          e = add32(e, h4);
        }

        return byteStringToHexString(words32ToByteString([a, b, c, d, e]));
      }

      function fk(index, b, c, d) {
        if (index < 20) {
          return [b & c | ~b & d, 0x5a827999];
        }

        if (index < 40) {
          return [b ^ c ^ d, 0x6ed9eba1];
        }

        if (index < 60) {
          return [b & c | b & d | c & d, 0x8f1bbcdc];
        }

        return [b ^ c ^ d, 0xca62c1d6];
      }
      /**
       * Compute the fingerprint of the given string
       *
       * The output is 64 bit number encoded as a decimal string
       *
       * based on:
       * https://github.com/google/closure-compiler/blob/master/src/com/google/javascript/jscomp/GoogleJsMessageIdGenerator.java
       */


      function fingerprint(str) {
        var utf8 = utf8Encode(str);
        var hi = hash32(utf8, 0);
        var lo = hash32(utf8, 102072);

        if (hi == 0 && (lo == 0 || lo == 1)) {
          hi = hi ^ 0x130f9bef;
          lo = lo ^ -0x6b5f56d8;
        }

        return [hi, lo];
      }

      function computeMsgId(msg) {
        var meaning = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
        var msgFingerprint = fingerprint(msg);

        if (meaning) {
          var meaningFingerprint = fingerprint(meaning);
          msgFingerprint = add64(rol64(msgFingerprint, 1), meaningFingerprint);
        }

        var hi = msgFingerprint[0];
        var lo = msgFingerprint[1];
        return byteStringToDecString(words32ToByteString([hi & 0x7fffffff, lo]));
      }

      function hash32(str, c) {
        var a = 0x9e3779b9,
            b = 0x9e3779b9;
        var i;
        var len = str.length;

        for (i = 0; i + 12 <= len; i += 12) {
          a = add32(a, wordAt(str, i, Endian.Little));
          b = add32(b, wordAt(str, i + 4, Endian.Little));
          c = add32(c, wordAt(str, i + 8, Endian.Little));
          var res = mix(a, b, c);
          a = res[0], b = res[1], c = res[2];
        }

        a = add32(a, wordAt(str, i, Endian.Little));
        b = add32(b, wordAt(str, i + 4, Endian.Little)); // the first byte of c is reserved for the length

        c = add32(c, len);
        c = add32(c, wordAt(str, i + 8, Endian.Little) << 8);
        return mix(a, b, c)[2];
      } // clang-format off


      function mix(a, b, c) {
        a = sub32(a, b);
        a = sub32(a, c);
        a ^= c >>> 13;
        b = sub32(b, c);
        b = sub32(b, a);
        b ^= a << 8;
        c = sub32(c, a);
        c = sub32(c, b);
        c ^= b >>> 13;
        a = sub32(a, b);
        a = sub32(a, c);
        a ^= c >>> 12;
        b = sub32(b, c);
        b = sub32(b, a);
        b ^= a << 16;
        c = sub32(c, a);
        c = sub32(c, b);
        c ^= b >>> 5;
        a = sub32(a, b);
        a = sub32(a, c);
        a ^= c >>> 3;
        b = sub32(b, c);
        b = sub32(b, a);
        b ^= a << 10;
        c = sub32(c, a);
        c = sub32(c, b);
        c ^= b >>> 15;
        return [a, b, c];
      } // clang-format on
      // Utils


      var Endian;

      (function (Endian) {
        Endian[Endian["Little"] = 0] = "Little";
        Endian[Endian["Big"] = 1] = "Big";
      })(Endian || (Endian = {}));

      function add32(a, b) {
        return add32to64(a, b)[1];
      }

      function add32to64(a, b) {
        var low = (a & 0xffff) + (b & 0xffff);
        var high = (a >>> 16) + (b >>> 16) + (low >>> 16);
        return [high >>> 16, high << 16 | low & 0xffff];
      }

      function add64(a, b) {
        var ah = a[0],
            al = a[1];
        var bh = b[0],
            bl = b[1];
        var result = add32to64(al, bl);
        var carry = result[0];
        var l = result[1];
        var h = add32(add32(ah, bh), carry);
        return [h, l];
      }

      function sub32(a, b) {
        var low = (a & 0xffff) - (b & 0xffff);
        var high = (a >> 16) - (b >> 16) + (low >> 16);
        return high << 16 | low & 0xffff;
      } // Rotate a 32b number left `count` position


      function rol32(a, count) {
        return a << count | a >>> 32 - count;
      } // Rotate a 64b number left `count` position


      function rol64(num, count) {
        var hi = num[0],
            lo = num[1];
        var h = hi << count | lo >>> 32 - count;
        var l = lo << count | hi >>> 32 - count;
        return [h, l];
      }

      function stringToWords32(str, endian) {
        var size = str.length + 3 >>> 2;
        var words32 = [];

        for (var i = 0; i < size; i++) {
          words32[i] = wordAt(str, i * 4, endian);
        }

        return words32;
      }

      function byteAt(str, index) {
        return index >= str.length ? 0 : str.charCodeAt(index) & 0xff;
      }

      function wordAt(str, index, endian) {
        var word = 0;

        if (endian === Endian.Big) {
          for (var i = 0; i < 4; i++) {
            word += byteAt(str, index + i) << 24 - 8 * i;
          }
        } else {
          for (var _i8 = 0; _i8 < 4; _i8++) {
            word += byteAt(str, index + _i8) << 8 * _i8;
          }
        }

        return word;
      }

      function words32ToByteString(words32) {
        return words32.reduce(function (str, word) {
          return str + word32ToByteString(word);
        }, '');
      }

      function word32ToByteString(word) {
        var str = '';

        for (var i = 0; i < 4; i++) {
          str += String.fromCharCode(word >>> 8 * (3 - i) & 0xff);
        }

        return str;
      }

      function byteStringToHexString(str) {
        var hex = '';

        for (var i = 0; i < str.length; i++) {
          var b = byteAt(str, i);
          hex += (b >>> 4).toString(16) + (b & 0x0f).toString(16);
        }

        return hex.toLowerCase();
      } // based on http://www.danvk.org/hex2dec.html (JS can not handle more than 56b)


      function byteStringToDecString(str) {
        var decimal = '';
        var toThePower = '1';

        for (var i = str.length - 1; i >= 0; i--) {
          decimal = addBigInt(decimal, numberTimesBigInt(byteAt(str, i), toThePower));
          toThePower = numberTimesBigInt(256, toThePower);
        }

        return decimal.split('').reverse().join('');
      } // x and y decimal, lowest significant digit first


      function addBigInt(x, y) {
        var sum = '';
        var len = Math.max(x.length, y.length);

        for (var i = 0, carry = 0; i < len || carry; i++) {
          var tmpSum = carry + +(x[i] || 0) + +(y[i] || 0);

          if (tmpSum >= 10) {
            carry = 1;
            sum += tmpSum - 10;
          } else {
            carry = 0;
            sum += tmpSum;
          }
        }

        return sum;
      }

      function numberTimesBigInt(num, b) {
        var product = '';
        var bToThePower = b;

        for (; num !== 0; num = num >>> 1) {
          if (num & 1) product = addBigInt(product, bToThePower);
          bToThePower = addBigInt(bToThePower, bToThePower);
        }

        return product;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var Serializer = /*#__PURE__*/function () {
        function Serializer() {
          _classCallCheck2(this, Serializer);
        }

        _createClass2(Serializer, [{
          key: "createNameMapper",
          value: // Creates a name mapper, see `PlaceholderMapper`
          // Returning `null` means that no name mapping is used.
          function createNameMapper(message) {
            return null;
          }
        }]);

        return Serializer;
      }();
      /**
       * A simple mapper that take a function to transform an internal name to a public name
       */


      var SimplePlaceholderMapper = /*#__PURE__*/function (_RecurseVisitor) {
        _inherits2(SimplePlaceholderMapper, _RecurseVisitor);

        var _super58 = _createSuper2(SimplePlaceholderMapper);

        // create a mapping from the message
        function SimplePlaceholderMapper(message, mapName) {
          var _this119;

          _classCallCheck2(this, SimplePlaceholderMapper);

          _this119 = _super58.call(this);
          _this119.mapName = mapName;
          _this119.internalToPublic = {};
          _this119.publicToNextId = {};
          _this119.publicToInternal = {};
          message.nodes.forEach(function (node) {
            return node.visit(_assertThisInitialized2(_this119));
          });
          return _this119;
        }

        _createClass2(SimplePlaceholderMapper, [{
          key: "toPublicName",
          value: function toPublicName(internalName) {
            return this.internalToPublic.hasOwnProperty(internalName) ? this.internalToPublic[internalName] : null;
          }
        }, {
          key: "toInternalName",
          value: function toInternalName(publicName) {
            return this.publicToInternal.hasOwnProperty(publicName) ? this.publicToInternal[publicName] : null;
          }
        }, {
          key: "visitText",
          value: function visitText(text, context) {
            return null;
          }
        }, {
          key: "visitTagPlaceholder",
          value: function visitTagPlaceholder(ph, context) {
            this.visitPlaceholderName(ph.startName);

            _get2(_getPrototypeOf2(SimplePlaceholderMapper.prototype), "visitTagPlaceholder", this).call(this, ph, context);

            this.visitPlaceholderName(ph.closeName);
          }
        }, {
          key: "visitPlaceholder",
          value: function visitPlaceholder(ph, context) {
            this.visitPlaceholderName(ph.name);
          }
        }, {
          key: "visitIcuPlaceholder",
          value: function visitIcuPlaceholder(ph, context) {
            this.visitPlaceholderName(ph.name);
          } // XMB placeholders could only contains A-Z, 0-9 and _

        }, {
          key: "visitPlaceholderName",
          value: function visitPlaceholderName(internalName) {
            if (!internalName || this.internalToPublic.hasOwnProperty(internalName)) {
              return;
            }

            var publicName = this.mapName(internalName);

            if (this.publicToInternal.hasOwnProperty(publicName)) {
              // Create a new XMB when it has already been used
              var nextId = this.publicToNextId[publicName];
              this.publicToNextId[publicName] = nextId + 1;
              publicName = "".concat(publicName, "_").concat(nextId);
            } else {
              this.publicToNextId[publicName] = 1;
            }

            this.internalToPublic[internalName] = publicName;
            this.publicToInternal[publicName] = internalName;
          }
        }]);

        return SimplePlaceholderMapper;
      }(RecurseVisitor);
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var _Visitor = /*#__PURE__*/function () {
        function _Visitor() {
          _classCallCheck2(this, _Visitor);
        }

        _createClass2(_Visitor, [{
          key: "visitTag",
          value: function visitTag(tag) {
            var _this120 = this;

            var strAttrs = this._serializeAttributes(tag.attrs);

            if (tag.children.length == 0) {
              return "<".concat(tag.name).concat(strAttrs, "/>");
            }

            var strChildren = tag.children.map(function (node) {
              return node.visit(_this120);
            });
            return "<".concat(tag.name).concat(strAttrs, ">").concat(strChildren.join(''), "</").concat(tag.name, ">");
          }
        }, {
          key: "visitText",
          value: function visitText(text) {
            return text.value;
          }
        }, {
          key: "visitDeclaration",
          value: function visitDeclaration(decl) {
            return "<?xml".concat(this._serializeAttributes(decl.attrs), " ?>");
          }
        }, {
          key: "_serializeAttributes",
          value: function _serializeAttributes(attrs) {
            var strAttrs = Object.keys(attrs).map(function (name) {
              return "".concat(name, "=\"").concat(attrs[name], "\"");
            }).join(' ');
            return strAttrs.length > 0 ? ' ' + strAttrs : '';
          }
        }, {
          key: "visitDoctype",
          value: function visitDoctype(doctype) {
            return "<!DOCTYPE ".concat(doctype.rootTag, " [\n").concat(doctype.dtd, "\n]>");
          }
        }]);

        return _Visitor;
      }();

      var _visitor = new _Visitor();

      function serialize(nodes) {
        return nodes.map(function (node) {
          return node.visit(_visitor);
        }).join('');
      }

      var Declaration = /*#__PURE__*/function () {
        function Declaration(unescapedAttrs) {
          var _this121 = this;

          _classCallCheck2(this, Declaration);

          this.attrs = {};
          Object.keys(unescapedAttrs).forEach(function (k) {
            _this121.attrs[k] = escapeXml(unescapedAttrs[k]);
          });
        }

        _createClass2(Declaration, [{
          key: "visit",
          value: function visit(visitor) {
            return visitor.visitDeclaration(this);
          }
        }]);

        return Declaration;
      }();

      var Doctype = /*#__PURE__*/function () {
        function Doctype(rootTag, dtd) {
          _classCallCheck2(this, Doctype);

          this.rootTag = rootTag;
          this.dtd = dtd;
        }

        _createClass2(Doctype, [{
          key: "visit",
          value: function visit(visitor) {
            return visitor.visitDoctype(this);
          }
        }]);

        return Doctype;
      }();

      var Tag = /*#__PURE__*/function () {
        function Tag(name) {
          var _this122 = this;

          var unescapedAttrs = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
          var children = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];

          _classCallCheck2(this, Tag);

          this.name = name;
          this.children = children;
          this.attrs = {};
          Object.keys(unescapedAttrs).forEach(function (k) {
            _this122.attrs[k] = escapeXml(unescapedAttrs[k]);
          });
        }

        _createClass2(Tag, [{
          key: "visit",
          value: function visit(visitor) {
            return visitor.visitTag(this);
          }
        }]);

        return Tag;
      }();

      var Text$2 = /*#__PURE__*/function () {
        function Text$2(unescapedValue) {
          _classCallCheck2(this, Text$2);

          this.value = escapeXml(unescapedValue);
        }

        _createClass2(Text$2, [{
          key: "visit",
          value: function visit(visitor) {
            return visitor.visitText(this);
          }
        }]);

        return Text$2;
      }();

      var CR = /*#__PURE__*/function (_Text$) {
        _inherits2(CR, _Text$);

        var _super59 = _createSuper2(CR);

        function CR() {
          var ws = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;

          _classCallCheck2(this, CR);

          return _super59.call(this, "\n".concat(new Array(ws + 1).join(' ')));
        }

        return CR;
      }(Text$2);

      var _ESCAPED_CHARS = [[/&/g, '&amp;'], [/"/g, '&quot;'], [/'/g, '&apos;'], [/</g, '&lt;'], [/>/g, '&gt;']]; // Escape `_ESCAPED_CHARS` characters in the given text with encoded entities

      function escapeXml(text) {
        return _ESCAPED_CHARS.reduce(function (text, entry) {
          return text.replace(entry[0], entry[1]);
        }, text);
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var _MESSAGES_TAG = 'messagebundle';
      var _MESSAGE_TAG = 'msg';
      var _PLACEHOLDER_TAG = 'ph';
      var _EXAMPLE_TAG = 'ex';
      var _SOURCE_TAG = 'source';
      var _DOCTYPE = "<!ELEMENT messagebundle (msg)*>\n<!ATTLIST messagebundle class CDATA #IMPLIED>\n\n<!ELEMENT msg (#PCDATA|ph|source)*>\n<!ATTLIST msg id CDATA #IMPLIED>\n<!ATTLIST msg seq CDATA #IMPLIED>\n<!ATTLIST msg name CDATA #IMPLIED>\n<!ATTLIST msg desc CDATA #IMPLIED>\n<!ATTLIST msg meaning CDATA #IMPLIED>\n<!ATTLIST msg obsolete (obsolete) #IMPLIED>\n<!ATTLIST msg xml:space (default|preserve) \"default\">\n<!ATTLIST msg is_hidden CDATA #IMPLIED>\n\n<!ELEMENT source (#PCDATA)>\n\n<!ELEMENT ph (#PCDATA|ex)*>\n<!ATTLIST ph name CDATA #REQUIRED>\n\n<!ELEMENT ex (#PCDATA)>";

      var Xmb = /*#__PURE__*/function (_Serializer) {
        _inherits2(Xmb, _Serializer);

        var _super60 = _createSuper2(Xmb);

        function Xmb() {
          _classCallCheck2(this, Xmb);

          return _super60.apply(this, arguments);
        }

        _createClass2(Xmb, [{
          key: "write",
          value: function write(messages, locale) {
            var exampleVisitor = new ExampleVisitor();
            var visitor = new _Visitor$1();
            var rootNode = new Tag(_MESSAGES_TAG);
            messages.forEach(function (message) {
              var attrs = {
                id: message.id
              };

              if (message.description) {
                attrs['desc'] = message.description;
              }

              if (message.meaning) {
                attrs['meaning'] = message.meaning;
              }

              var sourceTags = [];
              message.sources.forEach(function (source) {
                sourceTags.push(new Tag(_SOURCE_TAG, {}, [new Text$2("".concat(source.filePath, ":").concat(source.startLine).concat(source.endLine !== source.startLine ? ',' + source.endLine : ''))]));
              });
              rootNode.children.push(new CR(2), new Tag(_MESSAGE_TAG, attrs, [].concat(sourceTags, _toConsumableArray(visitor.serialize(message.nodes)))));
            });
            rootNode.children.push(new CR());
            return serialize([new Declaration({
              version: '1.0',
              encoding: 'UTF-8'
            }), new CR(), new Doctype(_MESSAGES_TAG, _DOCTYPE), new CR(), exampleVisitor.addDefaultExamples(rootNode), new CR()]);
          }
        }, {
          key: "load",
          value: function load(content, url) {
            throw new Error('Unsupported');
          }
        }, {
          key: "digest",
          value: function digest(message) {
            return digest$1(message);
          }
        }, {
          key: "createNameMapper",
          value: function createNameMapper(message) {
            return new SimplePlaceholderMapper(message, toPublicName);
          }
        }]);

        return Xmb;
      }(Serializer);

      var _Visitor$1 = /*#__PURE__*/function () {
        function _Visitor$1() {
          _classCallCheck2(this, _Visitor$1);
        }

        _createClass2(_Visitor$1, [{
          key: "visitText",
          value: function visitText(text, context) {
            return [new Text$2(text.value)];
          }
        }, {
          key: "visitContainer",
          value: function visitContainer(container, context) {
            var _this123 = this;

            var nodes = [];
            container.children.forEach(function (node) {
              return nodes.push.apply(nodes, _toConsumableArray(node.visit(_this123)));
            });
            return nodes;
          }
        }, {
          key: "visitIcu",
          value: function visitIcu(icu, context) {
            var _this124 = this;

            var nodes = [new Text$2("{".concat(icu.expressionPlaceholder, ", ").concat(icu.type, ", "))];
            Object.keys(icu.cases).forEach(function (c) {
              nodes.push.apply(nodes, [new Text$2("".concat(c, " {"))].concat(_toConsumableArray(icu.cases[c].visit(_this124)), [new Text$2("} ")]));
            });
            nodes.push(new Text$2("}"));
            return nodes;
          }
        }, {
          key: "visitTagPlaceholder",
          value: function visitTagPlaceholder(ph, context) {
            var startTagAsText = new Text$2("<".concat(ph.tag, ">"));
            var startEx = new Tag(_EXAMPLE_TAG, {}, [startTagAsText]); // TC requires PH to have a non empty EX, and uses the text node to show the "original" value.

            var startTagPh = new Tag(_PLACEHOLDER_TAG, {
              name: ph.startName
            }, [startEx, startTagAsText]);

            if (ph.isVoid) {
              // void tags have no children nor closing tags
              return [startTagPh];
            }

            var closeTagAsText = new Text$2("</".concat(ph.tag, ">"));
            var closeEx = new Tag(_EXAMPLE_TAG, {}, [closeTagAsText]); // TC requires PH to have a non empty EX, and uses the text node to show the "original" value.

            var closeTagPh = new Tag(_PLACEHOLDER_TAG, {
              name: ph.closeName
            }, [closeEx, closeTagAsText]);
            return [startTagPh].concat(_toConsumableArray(this.serialize(ph.children)), [closeTagPh]);
          }
        }, {
          key: "visitPlaceholder",
          value: function visitPlaceholder(ph, context) {
            var interpolationAsText = new Text$2("{{".concat(ph.value, "}}")); // Example tag needs to be not-empty for TC.

            var exTag = new Tag(_EXAMPLE_TAG, {}, [interpolationAsText]);
            return [// TC requires PH to have a non empty EX, and uses the text node to show the "original" value.
            new Tag(_PLACEHOLDER_TAG, {
              name: ph.name
            }, [exTag, interpolationAsText])];
          }
        }, {
          key: "visitIcuPlaceholder",
          value: function visitIcuPlaceholder(ph, context) {
            var icuExpression = ph.value.expression;
            var icuType = ph.value.type;
            var icuCases = Object.keys(ph.value.cases).map(function (value) {
              return value + ' {...}';
            }).join(' ');
            var icuAsText = new Text$2("{".concat(icuExpression, ", ").concat(icuType, ", ").concat(icuCases, "}"));
            var exTag = new Tag(_EXAMPLE_TAG, {}, [icuAsText]);
            return [// TC requires PH to have a non empty EX, and uses the text node to show the "original" value.
            new Tag(_PLACEHOLDER_TAG, {
              name: ph.name
            }, [exTag, icuAsText])];
          }
        }, {
          key: "serialize",
          value: function serialize(nodes) {
            var _ref11,
                _this125 = this;

            return (_ref11 = []).concat.apply(_ref11, _toConsumableArray(nodes.map(function (node) {
              return node.visit(_this125);
            })));
          }
        }]);

        return _Visitor$1;
      }();

      function digest$1(message) {
        return decimalDigest(message);
      } // TC requires at least one non-empty example on placeholders


      var ExampleVisitor = /*#__PURE__*/function () {
        function ExampleVisitor() {
          _classCallCheck2(this, ExampleVisitor);
        }

        _createClass2(ExampleVisitor, [{
          key: "addDefaultExamples",
          value: function addDefaultExamples(node) {
            node.visit(this);
            return node;
          }
        }, {
          key: "visitTag",
          value: function visitTag(tag) {
            var _this126 = this;

            if (tag.name === _PLACEHOLDER_TAG) {
              if (!tag.children || tag.children.length == 0) {
                var exText = new Text$2(tag.attrs['name'] || '...');
                tag.children = [new Tag(_EXAMPLE_TAG, {}, [exText])];
              }
            } else if (tag.children) {
              tag.children.forEach(function (node) {
                return node.visit(_this126);
              });
            }
          }
        }, {
          key: "visitText",
          value: function visitText(text) {}
        }, {
          key: "visitDeclaration",
          value: function visitDeclaration(decl) {}
        }, {
          key: "visitDoctype",
          value: function visitDoctype(doctype) {}
        }]);

        return ExampleVisitor;
      }(); // XMB/XTB placeholders can only contain A-Z, 0-9 and _


      function toPublicName(internalName) {
        return internalName.toUpperCase().replace(/[^A-Z0-9_]/g, '_');
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /* Closure variables holding messages must be named `MSG_[A-Z0-9]+` */


      var CLOSURE_TRANSLATION_VAR_PREFIX = 'MSG_';
      /**
       * Prefix for non-`goog.getMsg` i18n-related vars.
       * Note: the prefix uses lowercase characters intentionally due to a Closure behavior that
       * considers variables like `I18N_0` as constants and throws an error when their value changes.
       */

      var TRANSLATION_VAR_PREFIX = 'i18n_';
      /** Name of the i18n attributes **/

      var I18N_ATTR = 'i18n';
      var I18N_ATTR_PREFIX = 'i18n-';
      /** Prefix of var expressions used in ICUs */

      var I18N_ICU_VAR_PREFIX = 'VAR_';
      /** Prefix of ICU expressions for post processing */

      var I18N_ICU_MAPPING_PREFIX = 'I18N_EXP_';
      /** Placeholder wrapper for i18n expressions **/

      var I18N_PLACEHOLDER_SYMBOL = '�';

      function isI18nAttribute(name) {
        return name === I18N_ATTR || name.startsWith(I18N_ATTR_PREFIX);
      }

      function isI18nRootNode(meta) {
        return meta instanceof Message;
      }

      function isSingleI18nIcu(meta) {
        return isI18nRootNode(meta) && meta.nodes.length === 1 && meta.nodes[0] instanceof Icu$1;
      }

      function hasI18nMeta(node) {
        return !!node.i18n;
      }

      function hasI18nAttrs(element) {
        return element.attrs.some(function (attr) {
          return isI18nAttribute(attr.name);
        });
      }

      function icuFromI18nMessage(message) {
        return message.nodes[0];
      }

      function wrapI18nPlaceholder(content) {
        var contextId = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
        var blockId = contextId > 0 ? ":".concat(contextId) : '';
        return "".concat(I18N_PLACEHOLDER_SYMBOL).concat(content).concat(blockId).concat(I18N_PLACEHOLDER_SYMBOL);
      }

      function assembleI18nBoundString(strings) {
        var bindingStartIndex = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
        var contextId = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
        if (!strings.length) return '';
        var acc = '';
        var lastIdx = strings.length - 1;

        for (var i = 0; i < lastIdx; i++) {
          acc += "".concat(strings[i]).concat(wrapI18nPlaceholder(bindingStartIndex + i, contextId));
        }

        acc += strings[lastIdx];
        return acc;
      }

      function getSeqNumberGenerator() {
        var startsAt = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
        var current = startsAt;
        return function () {
          return current++;
        };
      }

      function placeholdersToParams(placeholders) {
        var params = {};
        placeholders.forEach(function (values, key) {
          params[key] = literal(values.length > 1 ? "[".concat(values.join('|'), "]") : values[0]);
        });
        return params;
      }

      function updatePlaceholderMap(map, name) {
        var current = map.get(name) || [];

        for (var _len7 = arguments.length, values = new Array(_len7 > 2 ? _len7 - 2 : 0), _key8 = 2; _key8 < _len7; _key8++) {
          values[_key8 - 2] = arguments[_key8];
        }

        current.push.apply(current, values);
        map.set(name, current);
      }

      function assembleBoundTextPlaceholders(meta) {
        var bindingStartIndex = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
        var contextId = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
        var startIdx = bindingStartIndex;
        var placeholders = new Map();
        var node = meta instanceof Message ? meta.nodes.find(function (node) {
          return node instanceof Container;
        }) : meta;

        if (node) {
          node.children.filter(function (child) {
            return child instanceof Placeholder;
          }).forEach(function (child, idx) {
            var content = wrapI18nPlaceholder(startIdx + idx, contextId);
            updatePlaceholderMap(placeholders, child.name, content);
          });
        }

        return placeholders;
      }
      /**
       * Format the placeholder names in a map of placeholders to expressions.
       *
       * The placeholder names are converted from "internal" format (e.g. `START_TAG_DIV_1`) to "external"
       * format (e.g. `startTagDiv_1`).
       *
       * @param params A map of placeholder names to expressions.
       * @param useCamelCase whether to camelCase the placeholder name when formatting.
       * @returns A new map of formatted placeholder names to expressions.
       */


      function i18nFormatPlaceholderNames() {
        var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
        var useCamelCase = arguments.length > 1 ? arguments[1] : undefined;
        var _params = {};

        if (params && Object.keys(params).length) {
          Object.keys(params).forEach(function (key) {
            return _params[formatI18nPlaceholderName(key, useCamelCase)] = params[key];
          });
        }

        return _params;
      }
      /**
       * Converts internal placeholder names to public-facing format
       * (for example to use in goog.getMsg call).
       * Example: `START_TAG_DIV_1` is converted to `startTagDiv_1`.
       *
       * @param name The placeholder name that should be formatted
       * @returns Formatted placeholder name
       */


      function formatI18nPlaceholderName(name) {
        var useCamelCase = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
        var publicName = toPublicName(name);

        if (!useCamelCase) {
          return publicName;
        }

        var chunks = publicName.split('_');

        if (chunks.length === 1) {
          // if no "_" found - just lowercase the value
          return name.toLowerCase();
        }

        var postfix; // eject last element if it's a number

        if (/^\d+$/.test(chunks[chunks.length - 1])) {
          postfix = chunks.pop();
        }

        var raw = chunks.shift().toLowerCase();

        if (chunks.length) {
          raw += chunks.map(function (c) {
            return c.charAt(0).toUpperCase() + c.slice(1).toLowerCase();
          }).join('');
        }

        return postfix ? "".concat(raw, "_").concat(postfix) : raw;
      }
      /**
       * Generates a prefix for translation const name.
       *
       * @param extra Additional local prefix that should be injected into translation var name
       * @returns Complete translation const prefix
       */


      function getTranslationConstPrefix(extra) {
        return "".concat(CLOSURE_TRANSLATION_VAR_PREFIX).concat(extra).toUpperCase();
      }
      /**
       * Generate AST to declare a variable. E.g. `var I18N_1;`.
       * @param variable the name of the variable to declare.
       */


      function declareI18nVariable(variable) {
        return new DeclareVarStmt(variable.name, undefined, INFERRED_TYPE, undefined, variable.sourceSpan);
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Checks whether an object key contains potentially unsafe chars, thus the key should be wrapped in
       * quotes. Note: we do not wrap all keys into quotes, as it may have impact on minification and may
       * bot work in some cases when object keys are mangled by minifier.
       *
       * TODO(FW-1136): this is a temporary solution, we need to come up with a better way of working with
       * inputs that contain potentially unsafe chars.
       */


      var UNSAFE_OBJECT_KEY_NAME_REGEXP = /[-.]/;
      /** Name of the temporary to use during data binding */

      var TEMPORARY_NAME = '_t';
      /** Name of the context parameter passed into a template function */

      var CONTEXT_NAME = 'ctx';
      /** Name of the RenderFlag passed into a template function */

      var RENDER_FLAGS = 'rf';
      /** The prefix reference variables */

      var REFERENCE_PREFIX = '_r';
      /** The name of the implicit context reference */

      var IMPLICIT_REFERENCE = '$implicit';
      /** Non bindable attribute name **/

      var NON_BINDABLE_ATTR = 'ngNonBindable';
      /**
       * Creates an allocator for a temporary variable.
       *
       * A variable declaration is added to the statements the first time the allocator is invoked.
       */

      function temporaryAllocator(statements, name) {
        var temp = null;
        return function () {
          if (!temp) {
            statements.push(new DeclareVarStmt(TEMPORARY_NAME, undefined, DYNAMIC_TYPE));
            temp = variable(name);
          }

          return temp;
        };
      }

      function unsupported(feature) {
        if (this) {
          throw new Error("Builder ".concat(this.constructor.name, " doesn't support ").concat(feature, " yet"));
        }

        throw new Error("Feature ".concat(feature, " is not supported yet"));
      }

      function invalid$1(arg) {
        throw new Error("Invalid state: Visitor ".concat(this.constructor.name, " doesn't handle ").concat(arg.constructor.name));
      }

      function asLiteral(value) {
        if (Array.isArray(value)) {
          return literalArr(value.map(asLiteral));
        }

        return literal(value, INFERRED_TYPE);
      }

      function conditionallyCreateMapObjectLiteral(keys, keepDeclared) {
        if (Object.getOwnPropertyNames(keys).length > 0) {
          return mapToExpression(keys, keepDeclared);
        }

        return null;
      }

      function mapToExpression(map, keepDeclared) {
        return literalMap(Object.getOwnPropertyNames(map).map(function (key) {
          // canonical syntax: `dirProp: publicProp`
          // if there is no `:`, use dirProp = elProp
          var value = map[key];
          var declaredName;
          var publicName;
          var minifiedName;

          if (Array.isArray(value)) {
            var _value2 = _slicedToArray(value, 2);

            publicName = _value2[0];
            declaredName = _value2[1];
          } else {
            var _splitAtColon = splitAtColon(key, [key, value]);

            var _splitAtColon2 = _slicedToArray(_splitAtColon, 2);

            declaredName = _splitAtColon2[0];
            publicName = _splitAtColon2[1];
          }

          minifiedName = declaredName;
          return {
            key: minifiedName,
            // put quotes around keys that contain potentially unsafe characters
            quoted: UNSAFE_OBJECT_KEY_NAME_REGEXP.test(minifiedName),
            value: keepDeclared && publicName !== declaredName ? literalArr([asLiteral(publicName), asLiteral(declaredName)]) : asLiteral(publicName)
          };
        }));
      }
      /**
       *  Remove trailing null nodes as they are implied.
       */


      function trimTrailingNulls(parameters) {
        while (isNull(parameters[parameters.length - 1])) {
          parameters.pop();
        }

        return parameters;
      }

      function getQueryPredicate(query, constantPool) {
        if (Array.isArray(query.predicate)) {
          var predicate = [];
          query.predicate.forEach(function (selector) {
            // Each item in predicates array may contain strings with comma-separated refs
            // (for ex. 'ref, ref1, ..., refN'), thus we extract individual refs and store them
            // as separate array entities
            var selectors = selector.split(',').map(function (token) {
              return literal(token.trim());
            });
            predicate.push.apply(predicate, _toConsumableArray(selectors));
          });
          return constantPool.getConstLiteral(literalArr(predicate), true);
        } else {
          return query.predicate;
        }
      }

      function noop() {}

      var DefinitionMap = /*#__PURE__*/function () {
        function DefinitionMap() {
          _classCallCheck2(this, DefinitionMap);

          this.values = [];
        }

        _createClass2(DefinitionMap, [{
          key: "set",
          value: function set(key, value) {
            if (value) {
              this.values.push({
                key: key,
                value: value,
                quoted: false
              });
            }
          }
        }, {
          key: "toLiteralMap",
          value: function toLiteralMap() {
            return literalMap(this.values);
          }
        }]);

        return DefinitionMap;
      }();
      /**
       * Extract a map of properties to values for a given element or template node, which can be used
       * by the directive matching machinery.
       *
       * @param elOrTpl the element or template in question
       * @return an object set up for directive matching. For attributes on the element/template, this
       * object maps a property name to its (static) value. For any bindings, this map simply maps the
       * property name to an empty string.
       */


      function getAttrsForDirectiveMatching(elOrTpl) {
        var attributesMap = {};

        if (elOrTpl instanceof Template && elOrTpl.tagName !== 'ng-template') {
          elOrTpl.templateAttrs.forEach(function (a) {
            return attributesMap[a.name] = '';
          });
        } else {
          elOrTpl.attributes.forEach(function (a) {
            if (!isI18nAttribute(a.name)) {
              attributesMap[a.name] = a.value;
            }
          });
          elOrTpl.inputs.forEach(function (i) {
            attributesMap[i.name] = '';
          });
          elOrTpl.outputs.forEach(function (o) {
            attributesMap[o.name] = '';
          });
        }

        return attributesMap;
      }
      /** Returns a call expression to a chained instruction, e.g. `property(params[0])(params[1])`. */


      function chainedInstruction(reference, calls, span) {
        var expression = importExpr(reference, null, span);

        if (calls.length > 0) {
          for (var i = 0; i < calls.length; i++) {
            expression = expression.callFn(calls[i], span);
          }
        } else {
          // Add a blank invocation, in case the `calls` array is empty.
          expression = expression.callFn([], span);
        }

        return expression;
      }
      /**
       * Gets the number of arguments expected to be passed to a generated instruction in the case of
       * interpolation instructions.
       * @param interpolation An interpolation ast
       */


      function getInterpolationArgsLength(interpolation) {
        var expressions = interpolation.expressions,
            strings = interpolation.strings;

        if (expressions.length === 1 && strings.length === 2 && strings[0] === '' && strings[1] === '') {
          // If the interpolation has one interpolated value, but the prefix and suffix are both empty
          // strings, we only pass one argument, to a special instruction like `propertyInterpolate` or
          // `textInterpolate`.
          return 1;
        } else {
          return expressions.length + strings.length;
        }
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var R3FactoryDelegateType;

      (function (R3FactoryDelegateType) {
        R3FactoryDelegateType[R3FactoryDelegateType["Class"] = 0] = "Class";
        R3FactoryDelegateType[R3FactoryDelegateType["Function"] = 1] = "Function";
        R3FactoryDelegateType[R3FactoryDelegateType["Factory"] = 2] = "Factory";
      })(R3FactoryDelegateType || (R3FactoryDelegateType = {}));

      var R3FactoryTarget;

      (function (R3FactoryTarget) {
        R3FactoryTarget[R3FactoryTarget["Directive"] = 0] = "Directive";
        R3FactoryTarget[R3FactoryTarget["Component"] = 1] = "Component";
        R3FactoryTarget[R3FactoryTarget["Injectable"] = 2] = "Injectable";
        R3FactoryTarget[R3FactoryTarget["Pipe"] = 3] = "Pipe";
        R3FactoryTarget[R3FactoryTarget["NgModule"] = 4] = "NgModule";
      })(R3FactoryTarget || (R3FactoryTarget = {}));
      /**
       * Resolved type of a dependency.
       *
       * Occasionally, dependencies will have special significance which is known statically. In that
       * case the `R3ResolvedDependencyType` informs the factory generator that a particular dependency
       * should be generated specially (usually by calling a special injection function instead of the
       * standard one).
       */


      var R3ResolvedDependencyType;

      (function (R3ResolvedDependencyType) {
        /**
         * A normal token dependency.
         */
        R3ResolvedDependencyType[R3ResolvedDependencyType["Token"] = 0] = "Token";
        /**
         * The dependency is for an attribute.
         *
         * The token expression is a string representing the attribute name.
         */

        R3ResolvedDependencyType[R3ResolvedDependencyType["Attribute"] = 1] = "Attribute";
        /**
         * Injecting the `ChangeDetectorRef` token. Needs special handling when injected into a pipe.
         */

        R3ResolvedDependencyType[R3ResolvedDependencyType["ChangeDetectorRef"] = 2] = "ChangeDetectorRef";
        /**
         * An invalid dependency (no token could be determined). An error should be thrown at runtime.
         */

        R3ResolvedDependencyType[R3ResolvedDependencyType["Invalid"] = 3] = "Invalid";
      })(R3ResolvedDependencyType || (R3ResolvedDependencyType = {}));
      /**
       * Construct a factory function expression for the given `R3FactoryMetadata`.
       */


      function compileFactoryFunction(meta) {
        var t = variable('t');
        var statements = [];
        var ctorDepsType = NONE_TYPE; // The type to instantiate via constructor invocation. If there is no delegated factory, meaning
        // this type is always created by constructor invocation, then this is the type-to-create
        // parameter provided by the user (t) if specified, or the current type if not. If there is a
        // delegated factory (which is used to create the current type) then this is only the type-to-
        // create parameter (t).

        var typeForCtor = !isDelegatedMetadata(meta) ? new BinaryOperatorExpr(BinaryOperator.Or, t, meta.internalType) : t;
        var ctorExpr = null;

        if (meta.deps !== null) {
          // There is a constructor (either explicitly or implicitly defined).
          if (meta.deps !== 'invalid') {
            ctorExpr = new InstantiateExpr(typeForCtor, injectDependencies(meta.deps, meta.injectFn, meta.target === R3FactoryTarget.Pipe));
            ctorDepsType = createCtorDepsType(meta.deps);
          }
        } else {
          var baseFactory = variable("\u0275".concat(meta.name, "_BaseFactory"));
          var getInheritedFactory = importExpr(Identifiers$1.getInheritedFactory);
          var baseFactoryStmt = baseFactory.set(getInheritedFactory.callFn([meta.internalType],
          /* sourceSpan */
          undefined,
          /* pure */
          true)).toDeclStmt(INFERRED_TYPE, [StmtModifier.Exported, StmtModifier.Final]);
          statements.push(baseFactoryStmt); // There is no constructor, use the base class' factory to construct typeForCtor.

          ctorExpr = baseFactory.callFn([typeForCtor]);
        }

        var ctorExprFinal = ctorExpr;
        var body = [];
        var retExpr = null;

        function makeConditionalFactory(nonCtorExpr) {
          var r = variable('r');
          body.push(r.set(NULL_EXPR).toDeclStmt());
          var ctorStmt = null;

          if (ctorExprFinal !== null) {
            ctorStmt = r.set(ctorExprFinal).toStmt();
          } else {
            ctorStmt = importExpr(Identifiers$1.invalidFactory).callFn([]).toStmt();
          }

          body.push(ifStmt(t, [ctorStmt], [r.set(nonCtorExpr).toStmt()]));
          return r;
        }

        if (isDelegatedMetadata(meta) && meta.delegateType === R3FactoryDelegateType.Factory) {
          var delegateFactory = variable("\u0275".concat(meta.name, "_BaseFactory"));
          var getFactoryOf = importExpr(Identifiers$1.getFactoryOf);

          if (meta.delegate.isEquivalent(meta.internalType)) {
            throw new Error("Illegal state: compiling factory that delegates to itself");
          }

          var delegateFactoryStmt = delegateFactory.set(getFactoryOf.callFn([meta.delegate])).toDeclStmt(INFERRED_TYPE, [StmtModifier.Exported, StmtModifier.Final]);
          statements.push(delegateFactoryStmt);
          retExpr = makeConditionalFactory(delegateFactory.callFn([]));
        } else if (isDelegatedMetadata(meta)) {
          // This type is created with a delegated factory. If a type parameter is not specified, call
          // the factory instead.
          var delegateArgs = injectDependencies(meta.delegateDeps, meta.injectFn, meta.target === R3FactoryTarget.Pipe); // Either call `new delegate(...)` or `delegate(...)` depending on meta.delegateType.

          var factoryExpr = new (meta.delegateType === R3FactoryDelegateType.Class ? InstantiateExpr : InvokeFunctionExpr)(meta.delegate, delegateArgs);
          retExpr = makeConditionalFactory(factoryExpr);
        } else if (isExpressionFactoryMetadata(meta)) {
          // TODO(alxhub): decide whether to lower the value here or in the caller
          retExpr = makeConditionalFactory(meta.expression);
        } else {
          retExpr = ctorExpr;
        }

        if (retExpr !== null) {
          body.push(new ReturnStatement(retExpr));
        } else {
          body.push(importExpr(Identifiers$1.invalidFactory).callFn([]).toStmt());
        }

        return {
          factory: fn([new FnParam('t', DYNAMIC_TYPE)], body, INFERRED_TYPE, undefined, "".concat(meta.name, "_Factory")),
          statements: statements,
          type: expressionType(importExpr(Identifiers$1.FactoryDef, [typeWithParameters(meta.type.type, meta.typeArgumentCount), ctorDepsType]))
        };
      }

      function injectDependencies(deps, injectFn, isPipe) {
        return deps.map(function (dep, index) {
          return compileInjectDependency(dep, injectFn, isPipe, index);
        });
      }

      function compileInjectDependency(dep, injectFn, isPipe, index) {
        // Interpret the dependency according to its resolved type.
        switch (dep.resolved) {
          case R3ResolvedDependencyType.Token:
          case R3ResolvedDependencyType.ChangeDetectorRef:
            // Build up the injection flags according to the metadata.
            var flags = 0
            /* Default */
            | (dep.self ? 2
            /* Self */
            : 0) | (dep.skipSelf ? 4
            /* SkipSelf */
            : 0) | (dep.host ? 1
            /* Host */
            : 0) | (dep.optional ? 8
            /* Optional */
            : 0); // If this dependency is optional or otherwise has non-default flags, then additional
            // parameters describing how to inject the dependency must be passed to the inject function
            // that's being used.

            var flagsParam = flags !== 0
            /* Default */
            || dep.optional ? literal(flags) : null; // We have a separate instruction for injecting ChangeDetectorRef into a pipe.

            if (isPipe && dep.resolved === R3ResolvedDependencyType.ChangeDetectorRef) {
              return importExpr(Identifiers$1.injectPipeChangeDetectorRef).callFn(flagsParam ? [flagsParam] : []);
            } // Build up the arguments to the injectFn call.


            var injectArgs = [dep.token];

            if (flagsParam) {
              injectArgs.push(flagsParam);
            }

            return importExpr(injectFn).callFn(injectArgs);

          case R3ResolvedDependencyType.Attribute:
            // In the case of attributes, the attribute name in question is given as the token.
            return importExpr(Identifiers$1.injectAttribute).callFn([dep.token]);

          case R3ResolvedDependencyType.Invalid:
            return importExpr(Identifiers$1.invalidFactoryDep).callFn([literal(index)]);

          default:
            return unsupported("Unknown R3ResolvedDependencyType: ".concat(R3ResolvedDependencyType[dep.resolved]));
        }
      }

      function createCtorDepsType(deps) {
        var hasTypes = false;
        var attributeTypes = deps.map(function (dep) {
          var type = createCtorDepType(dep);

          if (type !== null) {
            hasTypes = true;
            return type;
          } else {
            return literal(null);
          }
        });

        if (hasTypes) {
          return expressionType(literalArr(attributeTypes));
        } else {
          return NONE_TYPE;
        }
      }

      function createCtorDepType(dep) {
        var entries = [];

        if (dep.resolved === R3ResolvedDependencyType.Attribute) {
          if (dep.attribute !== null) {
            entries.push({
              key: 'attribute',
              value: dep.attribute,
              quoted: false
            });
          }
        }

        if (dep.optional) {
          entries.push({
            key: 'optional',
            value: literal(true),
            quoted: false
          });
        }

        if (dep.host) {
          entries.push({
            key: 'host',
            value: literal(true),
            quoted: false
          });
        }

        if (dep.self) {
          entries.push({
            key: 'self',
            value: literal(true),
            quoted: false
          });
        }

        if (dep.skipSelf) {
          entries.push({
            key: 'skipSelf',
            value: literal(true),
            quoted: false
          });
        }

        return entries.length > 0 ? literalMap(entries) : null;
      }
      /**
       * A helper function useful for extracting `R3DependencyMetadata` from a Render2
       * `CompileTypeMetadata` instance.
       */


      function dependenciesFromGlobalMetadata(type, outputCtx, reflector) {
        // Use the `CompileReflector` to look up references to some well-known Angular types. These will
        // be compared with the token to statically determine whether the token has significance to
        // Angular, and set the correct `R3ResolvedDependencyType` as a result.
        var injectorRef = reflector.resolveExternalReference(Identifiers.Injector); // Iterate through the type's DI dependencies and produce `R3DependencyMetadata` for each of them.

        var deps = [];

        var _iterator9 = _createForOfIteratorHelper(type.diDeps),
            _step9;

        try {
          for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {
            var dependency = _step9.value;

            if (dependency.token) {
              var tokenRef = tokenReference(dependency.token);
              var resolved = dependency.isAttribute ? R3ResolvedDependencyType.Attribute : R3ResolvedDependencyType.Token; // In the case of most dependencies, the token will be a reference to a type. Sometimes,
              // however, it can be a string, in the case of older Angular code or @Attribute injection.

              var token = tokenRef instanceof StaticSymbol ? outputCtx.importExpr(tokenRef) : literal(tokenRef); // Construct the dependency.

              deps.push({
                token: token,
                attribute: null,
                resolved: resolved,
                host: !!dependency.isHost,
                optional: !!dependency.isOptional,
                self: !!dependency.isSelf,
                skipSelf: !!dependency.isSkipSelf
              });
            } else {
              unsupported('dependency without a token');
            }
          }
        } catch (err) {
          _iterator9.e(err);
        } finally {
          _iterator9.f();
        }

        return deps;
      }

      function isDelegatedMetadata(meta) {
        return meta.delegateType !== undefined;
      }

      function isExpressionFactoryMetadata(meta) {
        return meta.expression !== undefined;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function _compileInjectable(meta) {
        var result = null;
        var factoryMeta = {
          name: meta.name,
          type: meta.type,
          internalType: meta.internalType,
          typeArgumentCount: meta.typeArgumentCount,
          deps: [],
          injectFn: Identifiers.inject,
          target: R3FactoryTarget.Injectable
        };

        if (meta.useClass !== undefined) {
          // meta.useClass has two modes of operation. Either deps are specified, in which case `new` is
          // used to instantiate the class with dependencies injected, or deps are not specified and
          // the factory of the class is used to instantiate it.
          //
          // A special case exists for useClass: Type where Type is the injectable type itself and no
          // deps are specified, in which case 'useClass' is effectively ignored.
          var useClassOnSelf = meta.useClass.isEquivalent(meta.internalType);
          var deps = undefined;

          if (meta.userDeps !== undefined) {
            deps = meta.userDeps;
          }

          if (deps !== undefined) {
            // factory: () => new meta.useClass(...deps)
            result = compileFactoryFunction(Object.assign(Object.assign({}, factoryMeta), {
              delegate: meta.useClass,
              delegateDeps: deps,
              delegateType: R3FactoryDelegateType.Class
            }));
          } else if (useClassOnSelf) {
            result = compileFactoryFunction(factoryMeta);
          } else {
            result = delegateToFactory(meta.type.value, meta.useClass);
          }
        } else if (meta.useFactory !== undefined) {
          if (meta.userDeps !== undefined) {
            result = compileFactoryFunction(Object.assign(Object.assign({}, factoryMeta), {
              delegate: meta.useFactory,
              delegateDeps: meta.userDeps || [],
              delegateType: R3FactoryDelegateType.Function
            }));
          } else {
            result = {
              statements: [],
              factory: fn([], [new ReturnStatement(meta.useFactory.callFn([]))])
            };
          }
        } else if (meta.useValue !== undefined) {
          // Note: it's safe to use `meta.useValue` instead of the `USE_VALUE in meta` check used for
          // client code because meta.useValue is an Expression which will be defined even if the actual
          // value is undefined.
          result = compileFactoryFunction(Object.assign(Object.assign({}, factoryMeta), {
            expression: meta.useValue
          }));
        } else if (meta.useExisting !== undefined) {
          // useExisting is an `inject` call on the existing token.
          result = compileFactoryFunction(Object.assign(Object.assign({}, factoryMeta), {
            expression: importExpr(Identifiers.inject).callFn([meta.useExisting])
          }));
        } else {
          result = delegateToFactory(meta.type.value, meta.internalType);
        }

        var token = meta.internalType;
        var injectableProps = {
          token: token,
          factory: result.factory
        }; // Only generate providedIn property if it has a non-null value

        if (meta.providedIn.value !== null) {
          injectableProps.providedIn = meta.providedIn;
        }

        var expression = importExpr(Identifiers.ɵɵdefineInjectable).callFn([mapToMapExpression(injectableProps)]);
        var type = new ExpressionType(importExpr(Identifiers.InjectableDef, [typeWithParameters(meta.type.type, meta.typeArgumentCount)]));
        return {
          expression: expression,
          type: type,
          statements: result.statements
        };
      }

      function delegateToFactory(type, internalType) {
        return {
          statements: [],
          // If types are the same, we can generate `factory: type.ɵfac`
          // If types are different, we have to generate a wrapper function to ensure
          // the internal type has been resolved (`factory: function(t) { return type.ɵfac(t); }`)
          factory: type.node === internalType.node ? internalType.prop('ɵfac') : fn([new FnParam('t', DYNAMIC_TYPE)], [new ReturnStatement(internalType.callMethod('ɵfac', [variable('t')]))])
        };
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function assertArrayOfStrings(identifier, value) {
        if (value == null) {
          return;
        }

        if (!Array.isArray(value)) {
          throw new Error("Expected '".concat(identifier, "' to be an array of strings."));
        }

        for (var i = 0; i < value.length; i += 1) {
          if (typeof value[i] !== 'string') {
            throw new Error("Expected '".concat(identifier, "' to be an array of strings."));
          }
        }
      }

      var UNUSABLE_INTERPOLATION_REGEXPS = [/^\s*$/, /[<>]/, /^[{}]$/, /&(#|[a-z])/i, /^\/\//];

      function assertInterpolationSymbols(identifier, value) {
        if (value != null && !(Array.isArray(value) && value.length == 2)) {
          throw new Error("Expected '".concat(identifier, "' to be an array, [start, end]."));
        } else if (value != null) {
          var start = value[0];
          var end = value[1]; // Check for unusable interpolation symbols

          UNUSABLE_INTERPOLATION_REGEXPS.forEach(function (regexp) {
            if (regexp.test(start) || regexp.test(end)) {
              throw new Error("['".concat(start, "', '").concat(end, "'] contains unusable interpolation symbol."));
            }
          });
        }
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var InterpolationConfig = /*#__PURE__*/function () {
        function InterpolationConfig(start, end) {
          _classCallCheck2(this, InterpolationConfig);

          this.start = start;
          this.end = end;
        }

        _createClass2(InterpolationConfig, null, [{
          key: "fromArray",
          value: function fromArray(markers) {
            if (!markers) {
              return DEFAULT_INTERPOLATION_CONFIG;
            }

            assertInterpolationSymbols('interpolation', markers);
            return new InterpolationConfig(markers[0], markers[1]);
          }
        }]);

        return InterpolationConfig;
      }();

      var DEFAULT_INTERPOLATION_CONFIG = new InterpolationConfig('{{', '}}');
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */
      // https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit

      var VERSION = 3;
      var JS_B64_PREFIX = '# sourceMappingURL=data:application/json;base64,';

      var SourceMapGenerator = /*#__PURE__*/function () {
        function SourceMapGenerator() {
          var file = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;

          _classCallCheck2(this, SourceMapGenerator);

          this.file = file;
          this.sourcesContent = new Map();
          this.lines = [];
          this.lastCol0 = 0;
          this.hasMappings = false;
        } // The content is `null` when the content is expected to be loaded using the URL


        _createClass2(SourceMapGenerator, [{
          key: "addSource",
          value: function addSource(url) {
            var content = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;

            if (!this.sourcesContent.has(url)) {
              this.sourcesContent.set(url, content);
            }

            return this;
          }
        }, {
          key: "addLine",
          value: function addLine() {
            this.lines.push([]);
            this.lastCol0 = 0;
            return this;
          }
        }, {
          key: "addMapping",
          value: function addMapping(col0, sourceUrl, sourceLine0, sourceCol0) {
            if (!this.currentLine) {
              throw new Error("A line must be added before mappings can be added");
            }

            if (sourceUrl != null && !this.sourcesContent.has(sourceUrl)) {
              throw new Error("Unknown source file \"".concat(sourceUrl, "\""));
            }

            if (col0 == null) {
              throw new Error("The column in the generated code must be provided");
            }

            if (col0 < this.lastCol0) {
              throw new Error("Mapping should be added in output order");
            }

            if (sourceUrl && (sourceLine0 == null || sourceCol0 == null)) {
              throw new Error("The source location must be provided when a source url is provided");
            }

            this.hasMappings = true;
            this.lastCol0 = col0;
            this.currentLine.push({
              col0: col0,
              sourceUrl: sourceUrl,
              sourceLine0: sourceLine0,
              sourceCol0: sourceCol0
            });
            return this;
          }
          /**
           * @internal strip this from published d.ts files due to
           * https://github.com/microsoft/TypeScript/issues/36216
           */

        }, {
          key: "currentLine",
          get: function get() {
            return this.lines.slice(-1)[0];
          }
        }, {
          key: "toJSON",
          value: function toJSON() {
            var _this127 = this;

            if (!this.hasMappings) {
              return null;
            }

            var sourcesIndex = new Map();
            var sources = [];
            var sourcesContent = [];
            Array.from(this.sourcesContent.keys()).forEach(function (url, i) {
              sourcesIndex.set(url, i);
              sources.push(url);
              sourcesContent.push(_this127.sourcesContent.get(url) || null);
            });
            var mappings = '';
            var lastCol0 = 0;
            var lastSourceIndex = 0;
            var lastSourceLine0 = 0;
            var lastSourceCol0 = 0;
            this.lines.forEach(function (segments) {
              lastCol0 = 0;
              mappings += segments.map(function (segment) {
                // zero-based starting column of the line in the generated code
                var segAsStr = toBase64VLQ(segment.col0 - lastCol0);
                lastCol0 = segment.col0;

                if (segment.sourceUrl != null) {
                  // zero-based index into the “sources” list
                  segAsStr += toBase64VLQ(sourcesIndex.get(segment.sourceUrl) - lastSourceIndex);
                  lastSourceIndex = sourcesIndex.get(segment.sourceUrl); // the zero-based starting line in the original source

                  segAsStr += toBase64VLQ(segment.sourceLine0 - lastSourceLine0);
                  lastSourceLine0 = segment.sourceLine0; // the zero-based starting column in the original source

                  segAsStr += toBase64VLQ(segment.sourceCol0 - lastSourceCol0);
                  lastSourceCol0 = segment.sourceCol0;
                }

                return segAsStr;
              }).join(',');
              mappings += ';';
            });
            mappings = mappings.slice(0, -1);
            return {
              'file': this.file || '',
              'version': VERSION,
              'sourceRoot': '',
              'sources': sources,
              'sourcesContent': sourcesContent,
              'mappings': mappings
            };
          }
        }, {
          key: "toJsComment",
          value: function toJsComment() {
            return this.hasMappings ? '//' + JS_B64_PREFIX + toBase64String(JSON.stringify(this, null, 0)) : '';
          }
        }]);

        return SourceMapGenerator;
      }();

      function toBase64String(value) {
        var b64 = '';
        value = utf8Encode(value);

        for (var i = 0; i < value.length;) {
          var i1 = value.charCodeAt(i++);
          var i2 = value.charCodeAt(i++);
          var i3 = value.charCodeAt(i++);
          b64 += toBase64Digit(i1 >> 2);
          b64 += toBase64Digit((i1 & 3) << 4 | (isNaN(i2) ? 0 : i2 >> 4));
          b64 += isNaN(i2) ? '=' : toBase64Digit((i2 & 15) << 2 | i3 >> 6);
          b64 += isNaN(i2) || isNaN(i3) ? '=' : toBase64Digit(i3 & 63);
        }

        return b64;
      }

      function toBase64VLQ(value) {
        value = value < 0 ? (-value << 1) + 1 : value << 1;
        var out = '';

        do {
          var digit = value & 31;
          value = value >> 5;

          if (value > 0) {
            digit = digit | 32;
          }

          out += toBase64Digit(digit);
        } while (value > 0);

        return out;
      }

      var B64_DIGITS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';

      function toBase64Digit(value) {
        if (value < 0 || value >= 64) {
          throw new Error("Can only encode value in the range [0, 63]");
        }

        return B64_DIGITS[value];
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var _SINGLE_QUOTE_ESCAPE_STRING_RE = /'|\\|\n|\r|\$/g;
      var _LEGAL_IDENTIFIER_RE = /^[$A-Z_][0-9A-Z_$]*$/i;
      var _INDENT_WITH = '  ';
      var CATCH_ERROR_VAR$1 = variable('error', null, null);
      var CATCH_STACK_VAR$1 = variable('stack', null, null);

      var _EmittedLine = function _EmittedLine(indent) {
        _classCallCheck2(this, _EmittedLine);

        this.indent = indent;
        this.partsLength = 0;
        this.parts = [];
        this.srcSpans = [];
      };

      var EmitterVisitorContext = /*#__PURE__*/function () {
        function EmitterVisitorContext(_indent) {
          _classCallCheck2(this, EmitterVisitorContext);

          this._indent = _indent;
          this._classes = [];
          this._preambleLineCount = 0;
          this._lines = [new _EmittedLine(_indent)];
        }

        _createClass2(EmitterVisitorContext, [{
          key: "_currentLine",
          get:
          /**
           * @internal strip this from published d.ts files due to
           * https://github.com/microsoft/TypeScript/issues/36216
           */
          function get() {
            return this._lines[this._lines.length - 1];
          }
        }, {
          key: "println",
          value: function println(from) {
            var lastPart = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
            this.print(from || null, lastPart, true);
          }
        }, {
          key: "lineIsEmpty",
          value: function lineIsEmpty() {
            return this._currentLine.parts.length === 0;
          }
        }, {
          key: "lineLength",
          value: function lineLength() {
            return this._currentLine.indent * _INDENT_WITH.length + this._currentLine.partsLength;
          }
        }, {
          key: "print",
          value: function print(from, part) {
            var newLine = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;

            if (part.length > 0) {
              this._currentLine.parts.push(part);

              this._currentLine.partsLength += part.length;

              this._currentLine.srcSpans.push(from && from.sourceSpan || null);
            }

            if (newLine) {
              this._lines.push(new _EmittedLine(this._indent));
            }
          }
        }, {
          key: "removeEmptyLastLine",
          value: function removeEmptyLastLine() {
            if (this.lineIsEmpty()) {
              this._lines.pop();
            }
          }
        }, {
          key: "incIndent",
          value: function incIndent() {
            this._indent++;

            if (this.lineIsEmpty()) {
              this._currentLine.indent = this._indent;
            }
          }
        }, {
          key: "decIndent",
          value: function decIndent() {
            this._indent--;

            if (this.lineIsEmpty()) {
              this._currentLine.indent = this._indent;
            }
          }
        }, {
          key: "pushClass",
          value: function pushClass(clazz) {
            this._classes.push(clazz);
          }
        }, {
          key: "popClass",
          value: function popClass() {
            return this._classes.pop();
          }
        }, {
          key: "currentClass",
          get: function get() {
            return this._classes.length > 0 ? this._classes[this._classes.length - 1] : null;
          }
        }, {
          key: "toSource",
          value: function toSource() {
            return this.sourceLines.map(function (l) {
              return l.parts.length > 0 ? _createIndent(l.indent) + l.parts.join('') : '';
            }).join('\n');
          }
        }, {
          key: "toSourceMapGenerator",
          value: function toSourceMapGenerator(genFilePath) {
            var startsAtLine = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
            var map = new SourceMapGenerator(genFilePath);
            var firstOffsetMapped = false;

            var mapFirstOffsetIfNeeded = function mapFirstOffsetIfNeeded() {
              if (!firstOffsetMapped) {
                // Add a single space so that tools won't try to load the file from disk.
                // Note: We are using virtual urls like `ng:///`, so we have to
                // provide a content here.
                map.addSource(genFilePath, ' ').addMapping(0, genFilePath, 0, 0);
                firstOffsetMapped = true;
              }
            };

            for (var i = 0; i < startsAtLine; i++) {
              map.addLine();
              mapFirstOffsetIfNeeded();
            }

            this.sourceLines.forEach(function (line, lineIdx) {
              map.addLine();
              var spans = line.srcSpans;
              var parts = line.parts;
              var col0 = line.indent * _INDENT_WITH.length;
              var spanIdx = 0; // skip leading parts without source spans

              while (spanIdx < spans.length && !spans[spanIdx]) {
                col0 += parts[spanIdx].length;
                spanIdx++;
              }

              if (spanIdx < spans.length && lineIdx === 0 && col0 === 0) {
                firstOffsetMapped = true;
              } else {
                mapFirstOffsetIfNeeded();
              }

              while (spanIdx < spans.length) {
                var span = spans[spanIdx];
                var source = span.start.file;
                var sourceLine = span.start.line;
                var sourceCol = span.start.col;
                map.addSource(source.url, source.content).addMapping(col0, source.url, sourceLine, sourceCol);
                col0 += parts[spanIdx].length;
                spanIdx++; // assign parts without span or the same span to the previous segment

                while (spanIdx < spans.length && (span === spans[spanIdx] || !spans[spanIdx])) {
                  col0 += parts[spanIdx].length;
                  spanIdx++;
                }
              }
            });
            return map;
          }
        }, {
          key: "setPreambleLineCount",
          value: function setPreambleLineCount(count) {
            return this._preambleLineCount = count;
          }
        }, {
          key: "spanOf",
          value: function spanOf(line, column) {
            var emittedLine = this._lines[line - this._preambleLineCount];

            if (emittedLine) {
              var columnsLeft = column - _createIndent(emittedLine.indent).length;

              for (var partIndex = 0; partIndex < emittedLine.parts.length; partIndex++) {
                var part = emittedLine.parts[partIndex];

                if (part.length > columnsLeft) {
                  return emittedLine.srcSpans[partIndex];
                }

                columnsLeft -= part.length;
              }
            }

            return null;
          }
          /**
           * @internal strip this from published d.ts files due to
           * https://github.com/microsoft/TypeScript/issues/36216
           */

        }, {
          key: "sourceLines",
          get: function get() {
            if (this._lines.length && this._lines[this._lines.length - 1].parts.length === 0) {
              return this._lines.slice(0, -1);
            }

            return this._lines;
          }
        }], [{
          key: "createRoot",
          value: function createRoot() {
            return new EmitterVisitorContext(0);
          }
        }]);

        return EmitterVisitorContext;
      }();

      var AbstractEmitterVisitor = /*#__PURE__*/function () {
        function AbstractEmitterVisitor(_escapeDollarInStrings) {
          _classCallCheck2(this, AbstractEmitterVisitor);

          this._escapeDollarInStrings = _escapeDollarInStrings;
        }

        _createClass2(AbstractEmitterVisitor, [{
          key: "printLeadingComments",
          value: function printLeadingComments(stmt, ctx) {
            if (stmt.leadingComments === undefined) {
              return;
            }

            var _iterator10 = _createForOfIteratorHelper(stmt.leadingComments),
                _step10;

            try {
              for (_iterator10.s(); !(_step10 = _iterator10.n()).done;) {
                var comment = _step10.value;

                if (comment instanceof JSDocComment) {
                  ctx.print(stmt, "/*".concat(comment.toString(), "*/"), comment.trailingNewline);
                } else {
                  if (comment.multiline) {
                    ctx.print(stmt, "/* ".concat(comment.text, " */"), comment.trailingNewline);
                  } else {
                    comment.text.split('\n').forEach(function (line) {
                      ctx.println(stmt, "// ".concat(line));
                    });
                  }
                }
              }
            } catch (err) {
              _iterator10.e(err);
            } finally {
              _iterator10.f();
            }
          }
        }, {
          key: "visitExpressionStmt",
          value: function visitExpressionStmt(stmt, ctx) {
            this.printLeadingComments(stmt, ctx);
            stmt.expr.visitExpression(this, ctx);
            ctx.println(stmt, ';');
            return null;
          }
        }, {
          key: "visitReturnStmt",
          value: function visitReturnStmt(stmt, ctx) {
            this.printLeadingComments(stmt, ctx);
            ctx.print(stmt, "return ");
            stmt.value.visitExpression(this, ctx);
            ctx.println(stmt, ';');
            return null;
          }
        }, {
          key: "visitIfStmt",
          value: function visitIfStmt(stmt, ctx) {
            this.printLeadingComments(stmt, ctx);
            ctx.print(stmt, "if (");
            stmt.condition.visitExpression(this, ctx);
            ctx.print(stmt, ") {");
            var hasElseCase = stmt.falseCase != null && stmt.falseCase.length > 0;

            if (stmt.trueCase.length <= 1 && !hasElseCase) {
              ctx.print(stmt, " ");
              this.visitAllStatements(stmt.trueCase, ctx);
              ctx.removeEmptyLastLine();
              ctx.print(stmt, " ");
            } else {
              ctx.println();
              ctx.incIndent();
              this.visitAllStatements(stmt.trueCase, ctx);
              ctx.decIndent();

              if (hasElseCase) {
                ctx.println(stmt, "} else {");
                ctx.incIndent();
                this.visitAllStatements(stmt.falseCase, ctx);
                ctx.decIndent();
              }
            }

            ctx.println(stmt, "}");
            return null;
          }
        }, {
          key: "visitThrowStmt",
          value: function visitThrowStmt(stmt, ctx) {
            this.printLeadingComments(stmt, ctx);
            ctx.print(stmt, "throw ");
            stmt.error.visitExpression(this, ctx);
            ctx.println(stmt, ";");
            return null;
          }
        }, {
          key: "visitWriteVarExpr",
          value: function visitWriteVarExpr(expr, ctx) {
            var lineWasEmpty = ctx.lineIsEmpty();

            if (!lineWasEmpty) {
              ctx.print(expr, '(');
            }

            ctx.print(expr, "".concat(expr.name, " = "));
            expr.value.visitExpression(this, ctx);

            if (!lineWasEmpty) {
              ctx.print(expr, ')');
            }

            return null;
          }
        }, {
          key: "visitWriteKeyExpr",
          value: function visitWriteKeyExpr(expr, ctx) {
            var lineWasEmpty = ctx.lineIsEmpty();

            if (!lineWasEmpty) {
              ctx.print(expr, '(');
            }

            expr.receiver.visitExpression(this, ctx);
            ctx.print(expr, "[");
            expr.index.visitExpression(this, ctx);
            ctx.print(expr, "] = ");
            expr.value.visitExpression(this, ctx);

            if (!lineWasEmpty) {
              ctx.print(expr, ')');
            }

            return null;
          }
        }, {
          key: "visitWritePropExpr",
          value: function visitWritePropExpr(expr, ctx) {
            var lineWasEmpty = ctx.lineIsEmpty();

            if (!lineWasEmpty) {
              ctx.print(expr, '(');
            }

            expr.receiver.visitExpression(this, ctx);
            ctx.print(expr, ".".concat(expr.name, " = "));
            expr.value.visitExpression(this, ctx);

            if (!lineWasEmpty) {
              ctx.print(expr, ')');
            }

            return null;
          }
        }, {
          key: "visitInvokeMethodExpr",
          value: function visitInvokeMethodExpr(expr, ctx) {
            expr.receiver.visitExpression(this, ctx);
            var name = expr.name;

            if (expr.builtin != null) {
              name = this.getBuiltinMethodName(expr.builtin);

              if (name == null) {
                // some builtins just mean to skip the call.
                return null;
              }
            }

            ctx.print(expr, ".".concat(name, "("));
            this.visitAllExpressions(expr.args, ctx, ",");
            ctx.print(expr, ")");
            return null;
          }
        }, {
          key: "visitInvokeFunctionExpr",
          value: function visitInvokeFunctionExpr(expr, ctx) {
            expr.fn.visitExpression(this, ctx);
            ctx.print(expr, "(");
            this.visitAllExpressions(expr.args, ctx, ',');
            ctx.print(expr, ")");
            return null;
          }
        }, {
          key: "visitWrappedNodeExpr",
          value: function visitWrappedNodeExpr(ast, ctx) {
            throw new Error('Abstract emitter cannot visit WrappedNodeExpr.');
          }
        }, {
          key: "visitTypeofExpr",
          value: function visitTypeofExpr(expr, ctx) {
            ctx.print(expr, 'typeof ');
            expr.expr.visitExpression(this, ctx);
          }
        }, {
          key: "visitReadVarExpr",
          value: function visitReadVarExpr(ast, ctx) {
            var varName = ast.name;

            if (ast.builtin != null) {
              switch (ast.builtin) {
                case BuiltinVar.Super:
                  varName = 'super';
                  break;

                case BuiltinVar.This:
                  varName = 'this';
                  break;

                case BuiltinVar.CatchError:
                  varName = CATCH_ERROR_VAR$1.name;
                  break;

                case BuiltinVar.CatchStack:
                  varName = CATCH_STACK_VAR$1.name;
                  break;

                default:
                  throw new Error("Unknown builtin variable ".concat(ast.builtin));
              }
            }

            ctx.print(ast, varName);
            return null;
          }
        }, {
          key: "visitInstantiateExpr",
          value: function visitInstantiateExpr(ast, ctx) {
            ctx.print(ast, "new ");
            ast.classExpr.visitExpression(this, ctx);
            ctx.print(ast, "(");
            this.visitAllExpressions(ast.args, ctx, ',');
            ctx.print(ast, ")");
            return null;
          }
        }, {
          key: "visitLiteralExpr",
          value: function visitLiteralExpr(ast, ctx) {
            var value = ast.value;

            if (typeof value === 'string') {
              ctx.print(ast, escapeIdentifier(value, this._escapeDollarInStrings));
            } else {
              ctx.print(ast, "".concat(value));
            }

            return null;
          }
        }, {
          key: "visitLocalizedString",
          value: function visitLocalizedString(ast, ctx) {
            var head = ast.serializeI18nHead();
            ctx.print(ast, '$localize `' + head.raw);

            for (var i = 1; i < ast.messageParts.length; i++) {
              ctx.print(ast, '${');
              ast.expressions[i - 1].visitExpression(this, ctx);
              ctx.print(ast, "}".concat(ast.serializeI18nTemplatePart(i).raw));
            }

            ctx.print(ast, '`');
            return null;
          }
        }, {
          key: "visitConditionalExpr",
          value: function visitConditionalExpr(ast, ctx) {
            ctx.print(ast, "(");
            ast.condition.visitExpression(this, ctx);
            ctx.print(ast, '? ');
            ast.trueCase.visitExpression(this, ctx);
            ctx.print(ast, ': ');
            ast.falseCase.visitExpression(this, ctx);
            ctx.print(ast, ")");
            return null;
          }
        }, {
          key: "visitNotExpr",
          value: function visitNotExpr(ast, ctx) {
            ctx.print(ast, '!');
            ast.condition.visitExpression(this, ctx);
            return null;
          }
        }, {
          key: "visitAssertNotNullExpr",
          value: function visitAssertNotNullExpr(ast, ctx) {
            ast.condition.visitExpression(this, ctx);
            return null;
          }
        }, {
          key: "visitUnaryOperatorExpr",
          value: function visitUnaryOperatorExpr(ast, ctx) {
            var opStr;

            switch (ast.operator) {
              case UnaryOperator.Plus:
                opStr = '+';
                break;

              case UnaryOperator.Minus:
                opStr = '-';
                break;

              default:
                throw new Error("Unknown operator ".concat(ast.operator));
            }

            if (ast.parens) ctx.print(ast, "(");
            ctx.print(ast, opStr);
            ast.expr.visitExpression(this, ctx);
            if (ast.parens) ctx.print(ast, ")");
            return null;
          }
        }, {
          key: "visitBinaryOperatorExpr",
          value: function visitBinaryOperatorExpr(ast, ctx) {
            var opStr;

            switch (ast.operator) {
              case BinaryOperator.Equals:
                opStr = '==';
                break;

              case BinaryOperator.Identical:
                opStr = '===';
                break;

              case BinaryOperator.NotEquals:
                opStr = '!=';
                break;

              case BinaryOperator.NotIdentical:
                opStr = '!==';
                break;

              case BinaryOperator.And:
                opStr = '&&';
                break;

              case BinaryOperator.BitwiseAnd:
                opStr = '&';
                break;

              case BinaryOperator.Or:
                opStr = '||';
                break;

              case BinaryOperator.Plus:
                opStr = '+';
                break;

              case BinaryOperator.Minus:
                opStr = '-';
                break;

              case BinaryOperator.Divide:
                opStr = '/';
                break;

              case BinaryOperator.Multiply:
                opStr = '*';
                break;

              case BinaryOperator.Modulo:
                opStr = '%';
                break;

              case BinaryOperator.Lower:
                opStr = '<';
                break;

              case BinaryOperator.LowerEquals:
                opStr = '<=';
                break;

              case BinaryOperator.Bigger:
                opStr = '>';
                break;

              case BinaryOperator.BiggerEquals:
                opStr = '>=';
                break;

              default:
                throw new Error("Unknown operator ".concat(ast.operator));
            }

            if (ast.parens) ctx.print(ast, "(");
            ast.lhs.visitExpression(this, ctx);
            ctx.print(ast, " ".concat(opStr, " "));
            ast.rhs.visitExpression(this, ctx);
            if (ast.parens) ctx.print(ast, ")");
            return null;
          }
        }, {
          key: "visitReadPropExpr",
          value: function visitReadPropExpr(ast, ctx) {
            ast.receiver.visitExpression(this, ctx);
            ctx.print(ast, ".");
            ctx.print(ast, ast.name);
            return null;
          }
        }, {
          key: "visitReadKeyExpr",
          value: function visitReadKeyExpr(ast, ctx) {
            ast.receiver.visitExpression(this, ctx);
            ctx.print(ast, "[");
            ast.index.visitExpression(this, ctx);
            ctx.print(ast, "]");
            return null;
          }
        }, {
          key: "visitLiteralArrayExpr",
          value: function visitLiteralArrayExpr(ast, ctx) {
            ctx.print(ast, "[");
            this.visitAllExpressions(ast.entries, ctx, ',');
            ctx.print(ast, "]");
            return null;
          }
        }, {
          key: "visitLiteralMapExpr",
          value: function visitLiteralMapExpr(ast, ctx) {
            var _this128 = this;

            ctx.print(ast, "{");
            this.visitAllObjects(function (entry) {
              ctx.print(ast, "".concat(escapeIdentifier(entry.key, _this128._escapeDollarInStrings, entry.quoted), ":"));
              entry.value.visitExpression(_this128, ctx);
            }, ast.entries, ctx, ',');
            ctx.print(ast, "}");
            return null;
          }
        }, {
          key: "visitCommaExpr",
          value: function visitCommaExpr(ast, ctx) {
            ctx.print(ast, '(');
            this.visitAllExpressions(ast.parts, ctx, ',');
            ctx.print(ast, ')');
            return null;
          }
        }, {
          key: "visitAllExpressions",
          value: function visitAllExpressions(expressions, ctx, separator) {
            var _this129 = this;

            this.visitAllObjects(function (expr) {
              return expr.visitExpression(_this129, ctx);
            }, expressions, ctx, separator);
          }
        }, {
          key: "visitAllObjects",
          value: function visitAllObjects(handler, expressions, ctx, separator) {
            var incrementedIndent = false;

            for (var i = 0; i < expressions.length; i++) {
              if (i > 0) {
                if (ctx.lineLength() > 80) {
                  ctx.print(null, separator, true);

                  if (!incrementedIndent) {
                    // continuation are marked with double indent.
                    ctx.incIndent();
                    ctx.incIndent();
                    incrementedIndent = true;
                  }
                } else {
                  ctx.print(null, separator, false);
                }
              }

              handler(expressions[i]);
            }

            if (incrementedIndent) {
              // continuation are marked with double indent.
              ctx.decIndent();
              ctx.decIndent();
            }
          }
        }, {
          key: "visitAllStatements",
          value: function visitAllStatements(statements, ctx) {
            var _this130 = this;

            statements.forEach(function (stmt) {
              return stmt.visitStatement(_this130, ctx);
            });
          }
        }]);

        return AbstractEmitterVisitor;
      }();

      function escapeIdentifier(input, escapeDollar) {
        var alwaysQuote = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;

        if (input == null) {
          return null;
        }

        var body = input.replace(_SINGLE_QUOTE_ESCAPE_STRING_RE, function () {
          if ((arguments.length <= 0 ? undefined : arguments[0]) == '$') {
            return escapeDollar ? '\\$' : '$';
          } else if ((arguments.length <= 0 ? undefined : arguments[0]) == '\n') {
            return '\\n';
          } else if ((arguments.length <= 0 ? undefined : arguments[0]) == '\r') {
            return '\\r';
          } else {
            return "\\".concat(arguments.length <= 0 ? undefined : arguments[0]);
          }
        });
        var requiresQuotes = alwaysQuote || !_LEGAL_IDENTIFIER_RE.test(body);
        return requiresQuotes ? "'".concat(body, "'") : body;
      }

      function _createIndent(count) {
        var res = '';

        for (var i = 0; i < count; i++) {
          res += _INDENT_WITH;
        }

        return res;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var AbstractJsEmitterVisitor = /*#__PURE__*/function (_AbstractEmitterVisit) {
        _inherits2(AbstractJsEmitterVisitor, _AbstractEmitterVisit);

        var _super61 = _createSuper2(AbstractJsEmitterVisitor);

        function AbstractJsEmitterVisitor() {
          _classCallCheck2(this, AbstractJsEmitterVisitor);

          return _super61.call(this, false);
        }

        _createClass2(AbstractJsEmitterVisitor, [{
          key: "visitDeclareClassStmt",
          value: function visitDeclareClassStmt(stmt, ctx) {
            var _this131 = this;

            ctx.pushClass(stmt);

            this._visitClassConstructor(stmt, ctx);

            if (stmt.parent != null) {
              ctx.print(stmt, "".concat(stmt.name, ".prototype = Object.create("));
              stmt.parent.visitExpression(this, ctx);
              ctx.println(stmt, ".prototype);");
            }

            stmt.getters.forEach(function (getter) {
              return _this131._visitClassGetter(stmt, getter, ctx);
            });
            stmt.methods.forEach(function (method) {
              return _this131._visitClassMethod(stmt, method, ctx);
            });
            ctx.popClass();
            return null;
          }
        }, {
          key: "_visitClassConstructor",
          value: function _visitClassConstructor(stmt, ctx) {
            ctx.print(stmt, "function ".concat(stmt.name, "("));

            if (stmt.constructorMethod != null) {
              this._visitParams(stmt.constructorMethod.params, ctx);
            }

            ctx.println(stmt, ") {");
            ctx.incIndent();

            if (stmt.constructorMethod != null) {
              if (stmt.constructorMethod.body.length > 0) {
                ctx.println(stmt, "var self = this;");
                this.visitAllStatements(stmt.constructorMethod.body, ctx);
              }
            }

            ctx.decIndent();
            ctx.println(stmt, "}");
          }
        }, {
          key: "_visitClassGetter",
          value: function _visitClassGetter(stmt, getter, ctx) {
            ctx.println(stmt, "Object.defineProperty(".concat(stmt.name, ".prototype, '").concat(getter.name, "', { get: function() {"));
            ctx.incIndent();

            if (getter.body.length > 0) {
              ctx.println(stmt, "var self = this;");
              this.visitAllStatements(getter.body, ctx);
            }

            ctx.decIndent();
            ctx.println(stmt, "}});");
          }
        }, {
          key: "_visitClassMethod",
          value: function _visitClassMethod(stmt, method, ctx) {
            ctx.print(stmt, "".concat(stmt.name, ".prototype.").concat(method.name, " = function("));

            this._visitParams(method.params, ctx);

            ctx.println(stmt, ") {");
            ctx.incIndent();

            if (method.body.length > 0) {
              ctx.println(stmt, "var self = this;");
              this.visitAllStatements(method.body, ctx);
            }

            ctx.decIndent();
            ctx.println(stmt, "};");
          }
        }, {
          key: "visitWrappedNodeExpr",
          value: function visitWrappedNodeExpr(ast, ctx) {
            throw new Error('Cannot emit a WrappedNodeExpr in Javascript.');
          }
        }, {
          key: "visitReadVarExpr",
          value: function visitReadVarExpr(ast, ctx) {
            if (ast.builtin === BuiltinVar.This) {
              ctx.print(ast, 'self');
            } else if (ast.builtin === BuiltinVar.Super) {
              throw new Error("'super' needs to be handled at a parent ast node, not at the variable level!");
            } else {
              _get2(_getPrototypeOf2(AbstractJsEmitterVisitor.prototype), "visitReadVarExpr", this).call(this, ast, ctx);
            }

            return null;
          }
        }, {
          key: "visitDeclareVarStmt",
          value: function visitDeclareVarStmt(stmt, ctx) {
            ctx.print(stmt, "var ".concat(stmt.name));

            if (stmt.value) {
              ctx.print(stmt, ' = ');
              stmt.value.visitExpression(this, ctx);
            }

            ctx.println(stmt, ";");
            return null;
          }
        }, {
          key: "visitCastExpr",
          value: function visitCastExpr(ast, ctx) {
            ast.value.visitExpression(this, ctx);
            return null;
          }
        }, {
          key: "visitInvokeFunctionExpr",
          value: function visitInvokeFunctionExpr(expr, ctx) {
            var fnExpr = expr.fn;

            if (fnExpr instanceof ReadVarExpr && fnExpr.builtin === BuiltinVar.Super) {
              ctx.currentClass.parent.visitExpression(this, ctx);
              ctx.print(expr, ".call(this");

              if (expr.args.length > 0) {
                ctx.print(expr, ", ");
                this.visitAllExpressions(expr.args, ctx, ',');
              }

              ctx.print(expr, ")");
            } else {
              _get2(_getPrototypeOf2(AbstractJsEmitterVisitor.prototype), "visitInvokeFunctionExpr", this).call(this, expr, ctx);
            }

            return null;
          }
        }, {
          key: "visitFunctionExpr",
          value: function visitFunctionExpr(ast, ctx) {
            ctx.print(ast, "function".concat(ast.name ? ' ' + ast.name : '', "("));

            this._visitParams(ast.params, ctx);

            ctx.println(ast, ") {");
            ctx.incIndent();
            this.visitAllStatements(ast.statements, ctx);
            ctx.decIndent();
            ctx.print(ast, "}");
            return null;
          }
        }, {
          key: "visitDeclareFunctionStmt",
          value: function visitDeclareFunctionStmt(stmt, ctx) {
            ctx.print(stmt, "function ".concat(stmt.name, "("));

            this._visitParams(stmt.params, ctx);

            ctx.println(stmt, ") {");
            ctx.incIndent();
            this.visitAllStatements(stmt.statements, ctx);
            ctx.decIndent();
            ctx.println(stmt, "}");
            return null;
          }
        }, {
          key: "visitTryCatchStmt",
          value: function visitTryCatchStmt(stmt, ctx) {
            ctx.println(stmt, "try {");
            ctx.incIndent();
            this.visitAllStatements(stmt.bodyStmts, ctx);
            ctx.decIndent();
            ctx.println(stmt, "} catch (".concat(CATCH_ERROR_VAR$1.name, ") {"));
            ctx.incIndent();
            var catchStmts = [CATCH_STACK_VAR$1.set(CATCH_ERROR_VAR$1.prop('stack')).toDeclStmt(null, [StmtModifier.Final])].concat(stmt.catchStmts);
            this.visitAllStatements(catchStmts, ctx);
            ctx.decIndent();
            ctx.println(stmt, "}");
            return null;
          }
        }, {
          key: "visitLocalizedString",
          value: function visitLocalizedString(ast, ctx) {
            var _this132 = this;

            // The following convoluted piece of code is effectively the downlevelled equivalent of
            // ```
            // $localize `...`
            // ```
            // which is effectively like:
            // ```
            // $localize(__makeTemplateObject(cooked, raw), expression1, expression2, ...);
            // ```
            //
            // The `$localize` function expects a "template object", which is an array of "cooked" strings
            // plus a `raw` property that contains an array of "raw" strings.
            //
            // In some environments a helper function called `__makeTemplateObject(cooked, raw)` might be
            // available, in which case we use that. Otherwise we must create our own helper function
            // inline.
            //
            // In the inline function, if `Object.defineProperty` is available we use that to attach the
            // `raw` array.
            ctx.print(ast, '$localize((this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})(');
            var parts = [ast.serializeI18nHead()];

            for (var i = 1; i < ast.messageParts.length; i++) {
              parts.push(ast.serializeI18nTemplatePart(i));
            }

            ctx.print(ast, "[".concat(parts.map(function (part) {
              return escapeIdentifier(part.cooked, false);
            }).join(', '), "], "));
            ctx.print(ast, "[".concat(parts.map(function (part) {
              return escapeIdentifier(part.raw, false);
            }).join(', '), "])"));
            ast.expressions.forEach(function (expression) {
              ctx.print(ast, ', ');
              expression.visitExpression(_this132, ctx);
            });
            ctx.print(ast, ')');
            return null;
          }
        }, {
          key: "_visitParams",
          value: function _visitParams(params, ctx) {
            this.visitAllObjects(function (param) {
              return ctx.print(null, param.name);
            }, params, ctx, ',');
          }
        }, {
          key: "getBuiltinMethodName",
          value: function getBuiltinMethodName(method) {
            var name;

            switch (method) {
              case BuiltinMethod.ConcatArray:
                name = 'concat';
                break;

              case BuiltinMethod.SubscribeObservable:
                name = 'subscribe';
                break;

              case BuiltinMethod.Bind:
                name = 'bind';
                break;

              default:
                throw new Error("Unknown builtin method: ".concat(method));
            }

            return name;
          }
        }]);

        return AbstractJsEmitterVisitor;
      }(AbstractEmitterVisitor);
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * A helper class to manage the evaluation of JIT generated code.
       */


      var JitEvaluator = /*#__PURE__*/function () {
        function JitEvaluator() {
          _classCallCheck2(this, JitEvaluator);
        }

        _createClass2(JitEvaluator, [{
          key: "evaluateStatements",
          value:
          /**
           *
           * @param sourceUrl The URL of the generated code.
           * @param statements An array of Angular statement AST nodes to be evaluated.
           * @param reflector A helper used when converting the statements to executable code.
           * @param createSourceMaps If true then create a source-map for the generated code and include it
           * inline as a source-map comment.
           * @returns A map of all the variables in the generated code.
           */
          function evaluateStatements(sourceUrl, statements, reflector, createSourceMaps) {
            var converter = new JitEmitterVisitor(reflector);
            var ctx = EmitterVisitorContext.createRoot(); // Ensure generated code is in strict mode

            if (statements.length > 0 && !isUseStrictStatement(statements[0])) {
              statements = [literal('use strict').toStmt()].concat(_toConsumableArray(statements));
            }

            converter.visitAllStatements(statements, ctx);
            converter.createReturnStmt(ctx);
            return this.evaluateCode(sourceUrl, ctx, converter.getArgs(), createSourceMaps);
          }
          /**
           * Evaluate a piece of JIT generated code.
           * @param sourceUrl The URL of this generated code.
           * @param ctx A context object that contains an AST of the code to be evaluated.
           * @param vars A map containing the names and values of variables that the evaluated code might
           * reference.
           * @param createSourceMap If true then create a source-map for the generated code and include it
           * inline as a source-map comment.
           * @returns The result of evaluating the code.
           */

        }, {
          key: "evaluateCode",
          value: function evaluateCode(sourceUrl, ctx, vars, createSourceMap) {
            var fnBody = "\"use strict\";".concat(ctx.toSource(), "\n//# sourceURL=").concat(sourceUrl);
            var fnArgNames = [];
            var fnArgValues = [];

            for (var argName in vars) {
              fnArgValues.push(vars[argName]);
              fnArgNames.push(argName);
            }

            if (createSourceMap) {
              // using `new Function(...)` generates a header, 1 line of no arguments, 2 lines otherwise
              // E.g. ```
              // function anonymous(a,b,c
              // /**/) { ... }```
              // We don't want to hard code this fact, so we auto detect it via an empty function first.
              var emptyFn = _construct2(Function, _toConsumableArray(fnArgNames.concat('return null;'))).toString();

              var headerLines = emptyFn.slice(0, emptyFn.indexOf('return null;')).split('\n').length - 1;
              fnBody += "\n".concat(ctx.toSourceMapGenerator(sourceUrl, headerLines).toJsComment());
            }

            var fn = _construct2(Function, _toConsumableArray(fnArgNames.concat(fnBody)));

            return this.executeFunction(fn, fnArgValues);
          }
          /**
           * Execute a JIT generated function by calling it.
           *
           * This method can be overridden in tests to capture the functions that are generated
           * by this `JitEvaluator` class.
           *
           * @param fn A function to execute.
           * @param args The arguments to pass to the function being executed.
           * @returns The return value of the executed function.
           */

        }, {
          key: "executeFunction",
          value: function executeFunction(fn, args) {
            return fn.apply(void 0, _toConsumableArray(args));
          }
        }]);

        return JitEvaluator;
      }();
      /**
       * An Angular AST visitor that converts AST nodes into executable JavaScript code.
       */


      var JitEmitterVisitor = /*#__PURE__*/function (_AbstractJsEmitterVis) {
        _inherits2(JitEmitterVisitor, _AbstractJsEmitterVis);

        var _super62 = _createSuper2(JitEmitterVisitor);

        function JitEmitterVisitor(reflector) {
          var _this133;

          _classCallCheck2(this, JitEmitterVisitor);

          _this133 = _super62.call(this);
          _this133.reflector = reflector;
          _this133._evalArgNames = [];
          _this133._evalArgValues = [];
          _this133._evalExportedVars = [];
          return _this133;
        }

        _createClass2(JitEmitterVisitor, [{
          key: "createReturnStmt",
          value: function createReturnStmt(ctx) {
            var stmt = new ReturnStatement(new LiteralMapExpr(this._evalExportedVars.map(function (resultVar) {
              return new LiteralMapEntry(resultVar, variable(resultVar), false);
            })));
            stmt.visitStatement(this, ctx);
          }
        }, {
          key: "getArgs",
          value: function getArgs() {
            var result = {};

            for (var i = 0; i < this._evalArgNames.length; i++) {
              result[this._evalArgNames[i]] = this._evalArgValues[i];
            }

            return result;
          }
        }, {
          key: "visitExternalExpr",
          value: function visitExternalExpr(ast, ctx) {
            this._emitReferenceToExternal(ast, this.reflector.resolveExternalReference(ast.value), ctx);

            return null;
          }
        }, {
          key: "visitWrappedNodeExpr",
          value: function visitWrappedNodeExpr(ast, ctx) {
            this._emitReferenceToExternal(ast, ast.node, ctx);

            return null;
          }
        }, {
          key: "visitDeclareVarStmt",
          value: function visitDeclareVarStmt(stmt, ctx) {
            if (stmt.hasModifier(StmtModifier.Exported)) {
              this._evalExportedVars.push(stmt.name);
            }

            return _get2(_getPrototypeOf2(JitEmitterVisitor.prototype), "visitDeclareVarStmt", this).call(this, stmt, ctx);
          }
        }, {
          key: "visitDeclareFunctionStmt",
          value: function visitDeclareFunctionStmt(stmt, ctx) {
            if (stmt.hasModifier(StmtModifier.Exported)) {
              this._evalExportedVars.push(stmt.name);
            }

            return _get2(_getPrototypeOf2(JitEmitterVisitor.prototype), "visitDeclareFunctionStmt", this).call(this, stmt, ctx);
          }
        }, {
          key: "visitDeclareClassStmt",
          value: function visitDeclareClassStmt(stmt, ctx) {
            if (stmt.hasModifier(StmtModifier.Exported)) {
              this._evalExportedVars.push(stmt.name);
            }

            return _get2(_getPrototypeOf2(JitEmitterVisitor.prototype), "visitDeclareClassStmt", this).call(this, stmt, ctx);
          }
        }, {
          key: "_emitReferenceToExternal",
          value: function _emitReferenceToExternal(ast, value, ctx) {
            var id = this._evalArgValues.indexOf(value);

            if (id === -1) {
              id = this._evalArgValues.length;

              this._evalArgValues.push(value);

              var name = identifierName({
                reference: value
              }) || 'val';

              this._evalArgNames.push("jit_".concat(name, "_").concat(id));
            }

            ctx.print(ast, this._evalArgNames[id]);
          }
        }]);

        return JitEmitterVisitor;
      }(AbstractJsEmitterVisitor);

      function isUseStrictStatement(statement) {
        return statement.isEquivalent(literal('use strict').toStmt());
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var $EOF = 0;
      var $BSPACE = 8;
      var $TAB = 9;
      var $LF = 10;
      var $VTAB = 11;
      var $FF = 12;
      var $CR = 13;
      var $SPACE = 32;
      var $BANG = 33;
      var $DQ = 34;
      var $HASH = 35;
      var $$ = 36;
      var $PERCENT = 37;
      var $AMPERSAND = 38;
      var $SQ = 39;
      var $LPAREN = 40;
      var $RPAREN = 41;
      var $STAR = 42;
      var $PLUS = 43;
      var $COMMA = 44;
      var $MINUS = 45;
      var $PERIOD = 46;
      var $SLASH = 47;
      var $COLON = 58;
      var $SEMICOLON = 59;
      var $LT = 60;
      var $EQ = 61;
      var $GT = 62;
      var $QUESTION = 63;
      var $0 = 48;
      var $7 = 55;
      var $9 = 57;
      var $A = 65;
      var $E = 69;
      var $F = 70;
      var $X = 88;
      var $Z = 90;
      var $LBRACKET = 91;
      var $BACKSLASH = 92;
      var $RBRACKET = 93;
      var $CARET = 94;
      var $_ = 95;
      var $a = 97;
      var $b = 98;
      var $e = 101;
      var $f = 102;
      var $n = 110;
      var $r = 114;
      var $t = 116;
      var $u = 117;
      var $v = 118;
      var $x = 120;
      var $z = 122;
      var $LBRACE = 123;
      var $BAR = 124;
      var $RBRACE = 125;
      var $NBSP = 160;
      var $PIPE = 124;
      var $TILDA = 126;
      var $AT = 64;
      var $BT = 96;

      function isWhitespace(code) {
        return code >= $TAB && code <= $SPACE || code == $NBSP;
      }

      function isDigit(code) {
        return $0 <= code && code <= $9;
      }

      function isAsciiLetter(code) {
        return code >= $a && code <= $z || code >= $A && code <= $Z;
      }

      function isAsciiHexDigit(code) {
        return code >= $a && code <= $f || code >= $A && code <= $F || isDigit(code);
      }

      function isNewLine(code) {
        return code === $LF || code === $CR;
      }

      function isOctalDigit(code) {
        return $0 <= code && code <= $7;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var ParseLocation = /*#__PURE__*/function () {
        function ParseLocation(file, offset, line, col) {
          _classCallCheck2(this, ParseLocation);

          this.file = file;
          this.offset = offset;
          this.line = line;
          this.col = col;
        }

        _createClass2(ParseLocation, [{
          key: "toString",
          value: function toString() {
            return this.offset != null ? "".concat(this.file.url, "@").concat(this.line, ":").concat(this.col) : this.file.url;
          }
        }, {
          key: "moveBy",
          value: function moveBy(delta) {
            var source = this.file.content;
            var len = source.length;
            var offset = this.offset;
            var line = this.line;
            var col = this.col;

            while (offset > 0 && delta < 0) {
              offset--;
              delta++;
              var ch = source.charCodeAt(offset);

              if (ch == $LF) {
                line--;
                var priorLine = source.substr(0, offset - 1).lastIndexOf(String.fromCharCode($LF));
                col = priorLine > 0 ? offset - priorLine : offset;
              } else {
                col--;
              }
            }

            while (offset < len && delta > 0) {
              var _ch = source.charCodeAt(offset);

              offset++;
              delta--;

              if (_ch == $LF) {
                line++;
                col = 0;
              } else {
                col++;
              }
            }

            return new ParseLocation(this.file, offset, line, col);
          } // Return the source around the location
          // Up to `maxChars` or `maxLines` on each side of the location

        }, {
          key: "getContext",
          value: function getContext(maxChars, maxLines) {
            var content = this.file.content;
            var startOffset = this.offset;

            if (startOffset != null) {
              if (startOffset > content.length - 1) {
                startOffset = content.length - 1;
              }

              var endOffset = startOffset;
              var ctxChars = 0;
              var ctxLines = 0;

              while (ctxChars < maxChars && startOffset > 0) {
                startOffset--;
                ctxChars++;

                if (content[startOffset] == '\n') {
                  if (++ctxLines == maxLines) {
                    break;
                  }
                }
              }

              ctxChars = 0;
              ctxLines = 0;

              while (ctxChars < maxChars && endOffset < content.length - 1) {
                endOffset++;
                ctxChars++;

                if (content[endOffset] == '\n') {
                  if (++ctxLines == maxLines) {
                    break;
                  }
                }
              }

              return {
                before: content.substring(startOffset, this.offset),
                after: content.substring(this.offset, endOffset + 1)
              };
            }

            return null;
          }
        }]);

        return ParseLocation;
      }();

      var ParseSourceFile = function ParseSourceFile(content, url) {
        _classCallCheck2(this, ParseSourceFile);

        this.content = content;
        this.url = url;
      };

      var ParseSourceSpan = /*#__PURE__*/function () {
        /**
         * Create an object that holds information about spans of tokens/nodes captured during
         * lexing/parsing of text.
         *
         * @param start
         * The location of the start of the span (having skipped leading trivia).
         * Skipping leading trivia makes source-spans more "user friendly", since things like HTML
         * elements will appear to begin at the start of the opening tag, rather than at the start of any
         * leading trivia, which could include newlines.
         *
         * @param end
         * The location of the end of the span.
         *
         * @param fullStart
         * The start of the token without skipping the leading trivia.
         * This is used by tooling that splits tokens further, such as extracting Angular interpolations
         * from text tokens. Such tooling creates new source-spans relative to the original token's
         * source-span. If leading trivia characters have been skipped then the new source-spans may be
         * incorrectly offset.
         *
         * @param details
         * Additional information (such as identifier names) that should be associated with the span.
         */
        function ParseSourceSpan(start, end) {
          var fullStart = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : start;
          var details = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;

          _classCallCheck2(this, ParseSourceSpan);

          this.start = start;
          this.end = end;
          this.fullStart = fullStart;
          this.details = details;
        }

        _createClass2(ParseSourceSpan, [{
          key: "toString",
          value: function toString() {
            return this.start.file.content.substring(this.start.offset, this.end.offset);
          }
        }]);

        return ParseSourceSpan;
      }();

      var ParseErrorLevel;

      (function (ParseErrorLevel) {
        ParseErrorLevel[ParseErrorLevel["WARNING"] = 0] = "WARNING";
        ParseErrorLevel[ParseErrorLevel["ERROR"] = 1] = "ERROR";
      })(ParseErrorLevel || (ParseErrorLevel = {}));

      var ParseError = /*#__PURE__*/function () {
        function ParseError(span, msg) {
          var level = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : ParseErrorLevel.ERROR;

          _classCallCheck2(this, ParseError);

          this.span = span;
          this.msg = msg;
          this.level = level;
        }

        _createClass2(ParseError, [{
          key: "contextualMessage",
          value: function contextualMessage() {
            var ctx = this.span.start.getContext(100, 3);
            return ctx ? "".concat(this.msg, " (\"").concat(ctx.before, "[").concat(ParseErrorLevel[this.level], " ->]").concat(ctx.after, "\")") : this.msg;
          }
        }, {
          key: "toString",
          value: function toString() {
            var details = this.span.details ? ", ".concat(this.span.details) : '';
            return "".concat(this.contextualMessage(), ": ").concat(this.span.start).concat(details);
          }
        }]);

        return ParseError;
      }();

      function typeSourceSpan(kind, type) {
        var moduleUrl = identifierModuleUrl(type);
        var sourceFileName = moduleUrl != null ? "in ".concat(kind, " ").concat(identifierName(type), " in ").concat(moduleUrl) : "in ".concat(kind, " ").concat(identifierName(type));
        var sourceFile = new ParseSourceFile('', sourceFileName);
        return new ParseSourceSpan(new ParseLocation(sourceFile, -1, -1, -1), new ParseLocation(sourceFile, -1, -1, -1));
      }
      /**
       * Generates Source Span object for a given R3 Type for JIT mode.
       *
       * @param kind Component or Directive.
       * @param typeName name of the Component or Directive.
       * @param sourceUrl reference to Component or Directive source.
       * @returns instance of ParseSourceSpan that represent a given Component or Directive.
       */


      function r3JitTypeSourceSpan(kind, typeName, sourceUrl) {
        var sourceFileName = "in ".concat(kind, " ").concat(typeName, " in ").concat(sourceUrl);
        var sourceFile = new ParseSourceFile('', sourceFileName);
        return new ParseSourceSpan(new ParseLocation(sourceFile, -1, -1, -1), new ParseLocation(sourceFile, -1, -1, -1));
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Implementation of `CompileReflector` which resolves references to @angular/core
       * symbols at runtime, according to a consumer-provided mapping.
       *
       * Only supports `resolveExternalReference`, all other methods throw.
       */


      var R3JitReflector = /*#__PURE__*/function () {
        function R3JitReflector(context) {
          _classCallCheck2(this, R3JitReflector);

          this.context = context;
        }

        _createClass2(R3JitReflector, [{
          key: "resolveExternalReference",
          value: function resolveExternalReference(ref) {
            // This reflector only handles @angular/core imports.
            if (ref.moduleName !== '@angular/core') {
              throw new Error("Cannot resolve external reference to ".concat(ref.moduleName, ", only references to @angular/core are supported."));
            }

            if (!this.context.hasOwnProperty(ref.name)) {
              throw new Error("No value provided for @angular/core symbol '".concat(ref.name, "'."));
            }

            return this.context[ref.name];
          }
        }, {
          key: "parameters",
          value: function parameters(typeOrFunc) {
            throw new Error('Not implemented.');
          }
        }, {
          key: "annotations",
          value: function annotations(typeOrFunc) {
            throw new Error('Not implemented.');
          }
        }, {
          key: "shallowAnnotations",
          value: function shallowAnnotations(typeOrFunc) {
            throw new Error('Not implemented.');
          }
        }, {
          key: "tryAnnotations",
          value: function tryAnnotations(typeOrFunc) {
            throw new Error('Not implemented.');
          }
        }, {
          key: "propMetadata",
          value: function propMetadata(typeOrFunc) {
            throw new Error('Not implemented.');
          }
        }, {
          key: "hasLifecycleHook",
          value: function hasLifecycleHook(type, lcProperty) {
            throw new Error('Not implemented.');
          }
        }, {
          key: "guards",
          value: function guards(typeOrFunc) {
            throw new Error('Not implemented.');
          }
        }, {
          key: "componentModuleUrl",
          value: function componentModuleUrl(type, cmpMetadata) {
            throw new Error('Not implemented.');
          }
        }]);

        return R3JitReflector;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function mapEntry(key, value) {
        return {
          key: key,
          value: value,
          quoted: false
        };
      }

      function mapLiteral(obj) {
        var quoted = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
        return literalMap(Object.keys(obj).map(function (key) {
          return {
            key: key,
            quoted: quoted,
            value: obj[key]
          };
        }));
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Construct an `R3NgModuleDef` for the given `R3NgModuleMetadata`.
       */


      function _compileNgModule(meta) {
        var internalType = meta.internalType,
            moduleType = meta.type,
            bootstrap = meta.bootstrap,
            declarations = meta.declarations,
            imports = meta.imports,
            exports = meta.exports,
            schemas = meta.schemas,
            containsForwardDecls = meta.containsForwardDecls,
            emitInline = meta.emitInline,
            id = meta.id;
        var additionalStatements = [];
        var definitionMap = {
          type: internalType
        }; // Only generate the keys in the metadata if the arrays have values.

        if (bootstrap.length) {
          definitionMap.bootstrap = refsToArray(bootstrap, containsForwardDecls);
        } // If requested to emit scope information inline, pass the declarations, imports and exports to
        // the `ɵɵdefineNgModule` call. The JIT compilation uses this.


        if (emitInline) {
          if (declarations.length) {
            definitionMap.declarations = refsToArray(declarations, containsForwardDecls);
          }

          if (imports.length) {
            definitionMap.imports = refsToArray(imports, containsForwardDecls);
          }

          if (exports.length) {
            definitionMap.exports = refsToArray(exports, containsForwardDecls);
          }
        } // If not emitting inline, the scope information is not passed into `ɵɵdefineNgModule` as it would
        // prevent tree-shaking of the declarations, imports and exports references.
        else {
          var setNgModuleScopeCall = generateSetNgModuleScopeCall(meta);

          if (setNgModuleScopeCall !== null) {
            additionalStatements.push(setNgModuleScopeCall);
          }
        }

        if (schemas && schemas.length) {
          definitionMap.schemas = literalArr(schemas.map(function (ref) {
            return ref.value;
          }));
        }

        if (id) {
          definitionMap.id = id;
        }

        var expression = importExpr(Identifiers$1.defineNgModule).callFn([mapToMapExpression(definitionMap)]);
        var type = new ExpressionType(importExpr(Identifiers$1.NgModuleDefWithMeta, [new ExpressionType(moduleType.type), tupleTypeOf(declarations), tupleTypeOf(imports), tupleTypeOf(exports)]));
        return {
          expression: expression,
          type: type,
          additionalStatements: additionalStatements
        };
      }
      /**
       * Generates a function call to `ɵɵsetNgModuleScope` with all necessary information so that the
       * transitive module scope can be computed during runtime in JIT mode. This call is marked pure
       * such that the references to declarations, imports and exports may be elided causing these
       * symbols to become tree-shakeable.
       */


      function generateSetNgModuleScopeCall(meta) {
        var moduleType = meta.adjacentType,
            declarations = meta.declarations,
            imports = meta.imports,
            exports = meta.exports,
            containsForwardDecls = meta.containsForwardDecls;
        var scopeMap = {};

        if (declarations.length) {
          scopeMap.declarations = refsToArray(declarations, containsForwardDecls);
        }

        if (imports.length) {
          scopeMap.imports = refsToArray(imports, containsForwardDecls);
        }

        if (exports.length) {
          scopeMap.exports = refsToArray(exports, containsForwardDecls);
        }

        if (Object.keys(scopeMap).length === 0) {
          return null;
        } // setNgModuleScope(...)


        var fnCall = new InvokeFunctionExpr(
        /* fn */
        importExpr(Identifiers$1.setNgModuleScope),
        /* args */
        [moduleType, mapToMapExpression(scopeMap)]); // (ngJitMode guard) && setNgModuleScope(...)

        var guardedCall = jitOnlyGuardedExpression(fnCall); // function() { (ngJitMode guard) && setNgModuleScope(...); }

        var iife = new FunctionExpr(
        /* params */
        [],
        /* statements */
        [guardedCall.toStmt()]); // (function() { (ngJitMode guard) && setNgModuleScope(...); })()

        var iifeCall = new InvokeFunctionExpr(
        /* fn */
        iife,
        /* args */
        []);
        return iifeCall.toStmt();
      }

      function _compileInjector(meta) {
        var result = compileFactoryFunction({
          name: meta.name,
          type: meta.type,
          internalType: meta.internalType,
          typeArgumentCount: 0,
          deps: meta.deps,
          injectFn: Identifiers$1.inject,
          target: R3FactoryTarget.NgModule
        });
        var definitionMap = {
          factory: result.factory
        };

        if (meta.providers !== null) {
          definitionMap.providers = meta.providers;
        }

        if (meta.imports.length > 0) {
          definitionMap.imports = literalArr(meta.imports);
        }

        var expression = importExpr(Identifiers$1.defineInjector).callFn([mapToMapExpression(definitionMap)]);
        var type = new ExpressionType(importExpr(Identifiers$1.InjectorDef, [new ExpressionType(meta.type.type)]));
        return {
          expression: expression,
          type: type,
          statements: result.statements
        };
      } // TODO(alxhub): integrate this with `compileNgModule`. Currently the two are separate operations.


      function compileNgModuleFromRender2(ctx, ngModule, injectableCompiler) {
        var className = identifierName(ngModule.type);
        var rawImports = ngModule.rawImports ? [ngModule.rawImports] : [];
        var rawExports = ngModule.rawExports ? [ngModule.rawExports] : [];
        var injectorDefArg = mapLiteral({
          'factory': injectableCompiler.factoryFor({
            type: ngModule.type,
            symbol: ngModule.type.reference
          }, ctx),
          'providers': convertMetaToOutput(ngModule.rawProviders, ctx),
          'imports': convertMetaToOutput([].concat(rawImports, rawExports), ctx)
        });
        var injectorDef = importExpr(Identifiers$1.defineInjector).callFn([injectorDefArg]);
        ctx.statements.push(new ClassStmt(
        /* name */
        className,
        /* parent */
        null,
        /* fields */
        [new ClassField(
        /* name */
        'ɵinj',
        /* type */
        INFERRED_TYPE,
        /* modifiers */
        [StmtModifier.Static],
        /* initializer */
        injectorDef)],
        /* getters */
        [],
        /* constructorMethod */
        new ClassMethod(null, [], []),
        /* methods */
        []));
      }

      function accessExportScope(module) {
        var selectorScope = new ReadPropExpr(module, 'ɵmod');
        return new ReadPropExpr(selectorScope, 'exported');
      }

      function tupleTypeOf(exp) {
        var types = exp.map(function (ref) {
          return typeofExpr(ref.type);
        });
        return exp.length > 0 ? expressionType(literalArr(types)) : NONE_TYPE;
      }

      function refsToArray(refs, shouldForwardDeclare) {
        var values = literalArr(refs.map(function (ref) {
          return ref.value;
        }));
        return shouldForwardDeclare ? fn([], [new ReturnStatement(values)]) : values;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function compilePipeFromMetadata(metadata) {
        var definitionMapValues = []; // e.g. `name: 'myPipe'`

        definitionMapValues.push({
          key: 'name',
          value: literal(metadata.pipeName),
          quoted: false
        }); // e.g. `type: MyPipe`

        definitionMapValues.push({
          key: 'type',
          value: metadata.type.value,
          quoted: false
        }); // e.g. `pure: true`

        definitionMapValues.push({
          key: 'pure',
          value: literal(metadata.pure),
          quoted: false
        });
        var expression = importExpr(Identifiers$1.definePipe).callFn([literalMap(definitionMapValues)]);
        var type = new ExpressionType(importExpr(Identifiers$1.PipeDefWithMeta, [typeWithParameters(metadata.type.type, metadata.typeArgumentCount), new ExpressionType(new LiteralExpr(metadata.pipeName))]));
        return {
          expression: expression,
          type: type
        };
      }
      /**
       * Write a pipe definition to the output context.
       */


      function compilePipeFromRender2(outputCtx, pipe, reflector) {
        var name = identifierName(pipe.type);

        if (!name) {
          return error("Cannot resolve the name of ".concat(pipe.type));
        }

        var type = outputCtx.importExpr(pipe.type.reference);
        var metadata = {
          name: name,
          type: wrapReference(type),
          internalType: type,
          pipeName: pipe.name,
          typeArgumentCount: 0,
          deps: dependenciesFromGlobalMetadata(pipe.type, outputCtx, reflector),
          pure: pipe.pure
        };
        var res = compilePipeFromMetadata(metadata);
        var factoryRes = compileFactoryFunction(Object.assign(Object.assign({}, metadata), {
          injectFn: Identifiers$1.directiveInject,
          target: R3FactoryTarget.Pipe
        }));
        var definitionField = outputCtx.constantPool.propertyNameOf(3
        /* Pipe */
        );
        var ngFactoryDefStatement = new ClassStmt(
        /* name */
        name,
        /* parent */
        null,
        /* fields */
        [new ClassField(
        /* name */
        'ɵfac',
        /* type */
        INFERRED_TYPE,
        /* modifiers */
        [StmtModifier.Static],
        /* initializer */
        factoryRes.factory)],
        /* getters */
        [],
        /* constructorMethod */
        new ClassMethod(null, [], []),
        /* methods */
        []);
        var pipeDefStatement = new ClassStmt(
        /* name */
        name,
        /* parent */
        null,
        /* fields */
        [new ClassField(
        /* name */
        definitionField,
        /* type */
        INFERRED_TYPE,
        /* modifiers */
        [StmtModifier.Static],
        /* initializer */
        res.expression)],
        /* getters */
        [],
        /* constructorMethod */
        new ClassMethod(null, [], []),
        /* methods */
        []);
        outputCtx.statements.push(ngFactoryDefStatement, pipeDefStatement);
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var ParserError = function ParserError(message, input, errLocation, ctxLocation) {
        _classCallCheck2(this, ParserError);

        this.input = input;
        this.errLocation = errLocation;
        this.ctxLocation = ctxLocation;
        this.message = "Parser Error: ".concat(message, " ").concat(errLocation, " [").concat(input, "] in ").concat(ctxLocation);
      };

      var ParseSpan = /*#__PURE__*/function () {
        function ParseSpan(start, end) {
          _classCallCheck2(this, ParseSpan);

          this.start = start;
          this.end = end;
        }

        _createClass2(ParseSpan, [{
          key: "toAbsolute",
          value: function toAbsolute(absoluteOffset) {
            return new AbsoluteSourceSpan(absoluteOffset + this.start, absoluteOffset + this.end);
          }
        }]);

        return ParseSpan;
      }();

      var AST = /*#__PURE__*/function () {
        function AST(span,
        /**
         * Absolute location of the expression AST in a source code file.
         */
        sourceSpan) {
          _classCallCheck2(this, AST);

          this.span = span;
          this.sourceSpan = sourceSpan;
        }

        _createClass2(AST, [{
          key: "visit",
          value: function visit(visitor) {
            var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
            return null;
          }
        }, {
          key: "toString",
          value: function toString() {
            return 'AST';
          }
        }]);

        return AST;
      }();

      var ASTWithName = /*#__PURE__*/function (_AST) {
        _inherits2(ASTWithName, _AST);

        var _super63 = _createSuper2(ASTWithName);

        function ASTWithName(span, sourceSpan, nameSpan) {
          var _this134;

          _classCallCheck2(this, ASTWithName);

          _this134 = _super63.call(this, span, sourceSpan);
          _this134.nameSpan = nameSpan;
          return _this134;
        }

        return ASTWithName;
      }(AST);
      /**
       * Represents a quoted expression of the form:
       *
       * quote = prefix `:` uninterpretedExpression
       * prefix = identifier
       * uninterpretedExpression = arbitrary string
       *
       * A quoted expression is meant to be pre-processed by an AST transformer that
       * converts it into another AST that no longer contains quoted expressions.
       * It is meant to allow third-party developers to extend Angular template
       * expression language. The `uninterpretedExpression` part of the quote is
       * therefore not interpreted by the Angular's own expression parser.
       */


      var Quote = /*#__PURE__*/function (_AST2) {
        _inherits2(Quote, _AST2);

        var _super64 = _createSuper2(Quote);

        function Quote(span, sourceSpan, prefix, uninterpretedExpression, location) {
          var _this135;

          _classCallCheck2(this, Quote);

          _this135 = _super64.call(this, span, sourceSpan);
          _this135.prefix = prefix;
          _this135.uninterpretedExpression = uninterpretedExpression;
          _this135.location = location;
          return _this135;
        }

        _createClass2(Quote, [{
          key: "visit",
          value: function visit(visitor) {
            var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
            return visitor.visitQuote(this, context);
          }
        }, {
          key: "toString",
          value: function toString() {
            return 'Quote';
          }
        }]);

        return Quote;
      }(AST);

      var EmptyExpr = /*#__PURE__*/function (_AST3) {
        _inherits2(EmptyExpr, _AST3);

        var _super65 = _createSuper2(EmptyExpr);

        function EmptyExpr() {
          _classCallCheck2(this, EmptyExpr);

          return _super65.apply(this, arguments);
        }

        _createClass2(EmptyExpr, [{
          key: "visit",
          value: function visit(visitor) {// do nothing

            var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
          }
        }]);

        return EmptyExpr;
      }(AST);

      var ImplicitReceiver = /*#__PURE__*/function (_AST4) {
        _inherits2(ImplicitReceiver, _AST4);

        var _super66 = _createSuper2(ImplicitReceiver);

        function ImplicitReceiver() {
          _classCallCheck2(this, ImplicitReceiver);

          return _super66.apply(this, arguments);
        }

        _createClass2(ImplicitReceiver, [{
          key: "visit",
          value: function visit(visitor) {
            var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
            return visitor.visitImplicitReceiver(this, context);
          }
        }]);

        return ImplicitReceiver;
      }(AST);
      /**
       * Receiver when something is accessed through `this` (e.g. `this.foo`). Note that this class
       * inherits from `ImplicitReceiver`, because accessing something through `this` is treated the
       * same as accessing it implicitly inside of an Angular template (e.g. `[attr.title]="this.title"`
       * is the same as `[attr.title]="title"`.). Inheriting allows for the `this` accesses to be treated
       * the same as implicit ones, except for a couple of exceptions like `$event` and `$any`.
       * TODO: we should find a way for this class not to extend from `ImplicitReceiver` in the future.
       */


      var ThisReceiver = /*#__PURE__*/function (_ImplicitReceiver) {
        _inherits2(ThisReceiver, _ImplicitReceiver);

        var _super67 = _createSuper2(ThisReceiver);

        function ThisReceiver() {
          _classCallCheck2(this, ThisReceiver);

          return _super67.apply(this, arguments);
        }

        _createClass2(ThisReceiver, [{
          key: "visit",
          value: function visit(visitor) {
            var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;

            var _a;

            return (_a = visitor.visitThisReceiver) === null || _a === void 0 ? void 0 : _a.call(visitor, this, context);
          }
        }]);

        return ThisReceiver;
      }(ImplicitReceiver);
      /**
       * Multiple expressions separated by a semicolon.
       */


      var Chain = /*#__PURE__*/function (_AST5) {
        _inherits2(Chain, _AST5);

        var _super68 = _createSuper2(Chain);

        function Chain(span, sourceSpan, expressions) {
          var _this136;

          _classCallCheck2(this, Chain);

          _this136 = _super68.call(this, span, sourceSpan);
          _this136.expressions = expressions;
          return _this136;
        }

        _createClass2(Chain, [{
          key: "visit",
          value: function visit(visitor) {
            var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
            return visitor.visitChain(this, context);
          }
        }]);

        return Chain;
      }(AST);

      var Conditional = /*#__PURE__*/function (_AST6) {
        _inherits2(Conditional, _AST6);

        var _super69 = _createSuper2(Conditional);

        function Conditional(span, sourceSpan, condition, trueExp, falseExp) {
          var _this137;

          _classCallCheck2(this, Conditional);

          _this137 = _super69.call(this, span, sourceSpan);
          _this137.condition = condition;
          _this137.trueExp = trueExp;
          _this137.falseExp = falseExp;
          return _this137;
        }

        _createClass2(Conditional, [{
          key: "visit",
          value: function visit(visitor) {
            var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
            return visitor.visitConditional(this, context);
          }
        }]);

        return Conditional;
      }(AST);

      var PropertyRead = /*#__PURE__*/function (_ASTWithName) {
        _inherits2(PropertyRead, _ASTWithName);

        var _super70 = _createSuper2(PropertyRead);

        function PropertyRead(span, sourceSpan, nameSpan, receiver, name) {
          var _this138;

          _classCallCheck2(this, PropertyRead);

          _this138 = _super70.call(this, span, sourceSpan, nameSpan);
          _this138.receiver = receiver;
          _this138.name = name;
          return _this138;
        }

        _createClass2(PropertyRead, [{
          key: "visit",
          value: function visit(visitor) {
            var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
            return visitor.visitPropertyRead(this, context);
          }
        }]);

        return PropertyRead;
      }(ASTWithName);

      var PropertyWrite = /*#__PURE__*/function (_ASTWithName2) {
        _inherits2(PropertyWrite, _ASTWithName2);

        var _super71 = _createSuper2(PropertyWrite);

        function PropertyWrite(span, sourceSpan, nameSpan, receiver, name, value) {
          var _this139;

          _classCallCheck2(this, PropertyWrite);

          _this139 = _super71.call(this, span, sourceSpan, nameSpan);
          _this139.receiver = receiver;
          _this139.name = name;
          _this139.value = value;
          return _this139;
        }

        _createClass2(PropertyWrite, [{
          key: "visit",
          value: function visit(visitor) {
            var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
            return visitor.visitPropertyWrite(this, context);
          }
        }]);

        return PropertyWrite;
      }(ASTWithName);

      var SafePropertyRead = /*#__PURE__*/function (_ASTWithName3) {
        _inherits2(SafePropertyRead, _ASTWithName3);

        var _super72 = _createSuper2(SafePropertyRead);

        function SafePropertyRead(span, sourceSpan, nameSpan, receiver, name) {
          var _this140;

          _classCallCheck2(this, SafePropertyRead);

          _this140 = _super72.call(this, span, sourceSpan, nameSpan);
          _this140.receiver = receiver;
          _this140.name = name;
          return _this140;
        }

        _createClass2(SafePropertyRead, [{
          key: "visit",
          value: function visit(visitor) {
            var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
            return visitor.visitSafePropertyRead(this, context);
          }
        }]);

        return SafePropertyRead;
      }(ASTWithName);

      var KeyedRead = /*#__PURE__*/function (_AST7) {
        _inherits2(KeyedRead, _AST7);

        var _super73 = _createSuper2(KeyedRead);

        function KeyedRead(span, sourceSpan, obj, key) {
          var _this141;

          _classCallCheck2(this, KeyedRead);

          _this141 = _super73.call(this, span, sourceSpan);
          _this141.obj = obj;
          _this141.key = key;
          return _this141;
        }

        _createClass2(KeyedRead, [{
          key: "visit",
          value: function visit(visitor) {
            var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
            return visitor.visitKeyedRead(this, context);
          }
        }]);

        return KeyedRead;
      }(AST);

      var KeyedWrite = /*#__PURE__*/function (_AST8) {
        _inherits2(KeyedWrite, _AST8);

        var _super74 = _createSuper2(KeyedWrite);

        function KeyedWrite(span, sourceSpan, obj, key, value) {
          var _this142;

          _classCallCheck2(this, KeyedWrite);

          _this142 = _super74.call(this, span, sourceSpan);
          _this142.obj = obj;
          _this142.key = key;
          _this142.value = value;
          return _this142;
        }

        _createClass2(KeyedWrite, [{
          key: "visit",
          value: function visit(visitor) {
            var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
            return visitor.visitKeyedWrite(this, context);
          }
        }]);

        return KeyedWrite;
      }(AST);

      var BindingPipe = /*#__PURE__*/function (_ASTWithName4) {
        _inherits2(BindingPipe, _ASTWithName4);

        var _super75 = _createSuper2(BindingPipe);

        function BindingPipe(span, sourceSpan, exp, name, args, nameSpan) {
          var _this143;

          _classCallCheck2(this, BindingPipe);

          _this143 = _super75.call(this, span, sourceSpan, nameSpan);
          _this143.exp = exp;
          _this143.name = name;
          _this143.args = args;
          return _this143;
        }

        _createClass2(BindingPipe, [{
          key: "visit",
          value: function visit(visitor) {
            var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
            return visitor.visitPipe(this, context);
          }
        }]);

        return BindingPipe;
      }(ASTWithName);

      var LiteralPrimitive = /*#__PURE__*/function (_AST9) {
        _inherits2(LiteralPrimitive, _AST9);

        var _super76 = _createSuper2(LiteralPrimitive);

        function LiteralPrimitive(span, sourceSpan, value) {
          var _this144;

          _classCallCheck2(this, LiteralPrimitive);

          _this144 = _super76.call(this, span, sourceSpan);
          _this144.value = value;
          return _this144;
        }

        _createClass2(LiteralPrimitive, [{
          key: "visit",
          value: function visit(visitor) {
            var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
            return visitor.visitLiteralPrimitive(this, context);
          }
        }]);

        return LiteralPrimitive;
      }(AST);

      var LiteralArray = /*#__PURE__*/function (_AST10) {
        _inherits2(LiteralArray, _AST10);

        var _super77 = _createSuper2(LiteralArray);

        function LiteralArray(span, sourceSpan, expressions) {
          var _this145;

          _classCallCheck2(this, LiteralArray);

          _this145 = _super77.call(this, span, sourceSpan);
          _this145.expressions = expressions;
          return _this145;
        }

        _createClass2(LiteralArray, [{
          key: "visit",
          value: function visit(visitor) {
            var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
            return visitor.visitLiteralArray(this, context);
          }
        }]);

        return LiteralArray;
      }(AST);

      var LiteralMap = /*#__PURE__*/function (_AST11) {
        _inherits2(LiteralMap, _AST11);

        var _super78 = _createSuper2(LiteralMap);

        function LiteralMap(span, sourceSpan, keys, values) {
          var _this146;

          _classCallCheck2(this, LiteralMap);

          _this146 = _super78.call(this, span, sourceSpan);
          _this146.keys = keys;
          _this146.values = values;
          return _this146;
        }

        _createClass2(LiteralMap, [{
          key: "visit",
          value: function visit(visitor) {
            var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
            return visitor.visitLiteralMap(this, context);
          }
        }]);

        return LiteralMap;
      }(AST);

      var Interpolation = /*#__PURE__*/function (_AST12) {
        _inherits2(Interpolation, _AST12);

        var _super79 = _createSuper2(Interpolation);

        function Interpolation(span, sourceSpan, strings, expressions) {
          var _this147;

          _classCallCheck2(this, Interpolation);

          _this147 = _super79.call(this, span, sourceSpan);
          _this147.strings = strings;
          _this147.expressions = expressions;
          return _this147;
        }

        _createClass2(Interpolation, [{
          key: "visit",
          value: function visit(visitor) {
            var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
            return visitor.visitInterpolation(this, context);
          }
        }]);

        return Interpolation;
      }(AST);

      var Binary = /*#__PURE__*/function (_AST13) {
        _inherits2(Binary, _AST13);

        var _super80 = _createSuper2(Binary);

        function Binary(span, sourceSpan, operation, left, right) {
          var _this148;

          _classCallCheck2(this, Binary);

          _this148 = _super80.call(this, span, sourceSpan);
          _this148.operation = operation;
          _this148.left = left;
          _this148.right = right;
          return _this148;
        }

        _createClass2(Binary, [{
          key: "visit",
          value: function visit(visitor) {
            var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
            return visitor.visitBinary(this, context);
          }
        }]);

        return Binary;
      }(AST);
      /**
       * For backwards compatibility reasons, `Unary` inherits from `Binary` and mimics the binary AST
       * node that was originally used. This inheritance relation can be deleted in some future major,
       * after consumers have been given a chance to fully support Unary.
       */


      var Unary = /*#__PURE__*/function (_Binary) {
        _inherits2(Unary, _Binary);

        var _super81 = _createSuper2(Unary);

        /**
         * During the deprecation period this constructor is private, to avoid consumers from creating
         * a `Unary` with the fallback properties for `Binary`.
         */
        function Unary(span, sourceSpan, operator, expr, binaryOp, binaryLeft, binaryRight) {
          var _this149;

          _classCallCheck2(this, Unary);

          _this149 = _super81.call(this, span, sourceSpan, binaryOp, binaryLeft, binaryRight);
          _this149.operator = operator;
          _this149.expr = expr;
          return _this149;
        }
        /**
         * Creates a unary minus expression "-x", represented as `Binary` using "0 - x".
         */


        _createClass2(Unary, [{
          key: "visit",
          value: function visit(visitor) {
            var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;

            if (visitor.visitUnary !== undefined) {
              return visitor.visitUnary(this, context);
            }

            return visitor.visitBinary(this, context);
          }
        }], [{
          key: "createMinus",
          value: function createMinus(span, sourceSpan, expr) {
            return new Unary(span, sourceSpan, '-', expr, '-', new LiteralPrimitive(span, sourceSpan, 0), expr);
          }
          /**
           * Creates a unary plus expression "+x", represented as `Binary` using "x - 0".
           */

        }, {
          key: "createPlus",
          value: function createPlus(span, sourceSpan, expr) {
            return new Unary(span, sourceSpan, '+', expr, '-', expr, new LiteralPrimitive(span, sourceSpan, 0));
          }
        }]);

        return Unary;
      }(Binary);

      var PrefixNot = /*#__PURE__*/function (_AST14) {
        _inherits2(PrefixNot, _AST14);

        var _super82 = _createSuper2(PrefixNot);

        function PrefixNot(span, sourceSpan, expression) {
          var _this150;

          _classCallCheck2(this, PrefixNot);

          _this150 = _super82.call(this, span, sourceSpan);
          _this150.expression = expression;
          return _this150;
        }

        _createClass2(PrefixNot, [{
          key: "visit",
          value: function visit(visitor) {
            var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
            return visitor.visitPrefixNot(this, context);
          }
        }]);

        return PrefixNot;
      }(AST);

      var NonNullAssert = /*#__PURE__*/function (_AST15) {
        _inherits2(NonNullAssert, _AST15);

        var _super83 = _createSuper2(NonNullAssert);

        function NonNullAssert(span, sourceSpan, expression) {
          var _this151;

          _classCallCheck2(this, NonNullAssert);

          _this151 = _super83.call(this, span, sourceSpan);
          _this151.expression = expression;
          return _this151;
        }

        _createClass2(NonNullAssert, [{
          key: "visit",
          value: function visit(visitor) {
            var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
            return visitor.visitNonNullAssert(this, context);
          }
        }]);

        return NonNullAssert;
      }(AST);

      var MethodCall = /*#__PURE__*/function (_ASTWithName5) {
        _inherits2(MethodCall, _ASTWithName5);

        var _super84 = _createSuper2(MethodCall);

        function MethodCall(span, sourceSpan, nameSpan, receiver, name, args) {
          var _this152;

          _classCallCheck2(this, MethodCall);

          _this152 = _super84.call(this, span, sourceSpan, nameSpan);
          _this152.receiver = receiver;
          _this152.name = name;
          _this152.args = args;
          return _this152;
        }

        _createClass2(MethodCall, [{
          key: "visit",
          value: function visit(visitor) {
            var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
            return visitor.visitMethodCall(this, context);
          }
        }]);

        return MethodCall;
      }(ASTWithName);

      var SafeMethodCall = /*#__PURE__*/function (_ASTWithName6) {
        _inherits2(SafeMethodCall, _ASTWithName6);

        var _super85 = _createSuper2(SafeMethodCall);

        function SafeMethodCall(span, sourceSpan, nameSpan, receiver, name, args) {
          var _this153;

          _classCallCheck2(this, SafeMethodCall);

          _this153 = _super85.call(this, span, sourceSpan, nameSpan);
          _this153.receiver = receiver;
          _this153.name = name;
          _this153.args = args;
          return _this153;
        }

        _createClass2(SafeMethodCall, [{
          key: "visit",
          value: function visit(visitor) {
            var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
            return visitor.visitSafeMethodCall(this, context);
          }
        }]);

        return SafeMethodCall;
      }(ASTWithName);

      var FunctionCall = /*#__PURE__*/function (_AST16) {
        _inherits2(FunctionCall, _AST16);

        var _super86 = _createSuper2(FunctionCall);

        function FunctionCall(span, sourceSpan, target, args) {
          var _this154;

          _classCallCheck2(this, FunctionCall);

          _this154 = _super86.call(this, span, sourceSpan);
          _this154.target = target;
          _this154.args = args;
          return _this154;
        }

        _createClass2(FunctionCall, [{
          key: "visit",
          value: function visit(visitor) {
            var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
            return visitor.visitFunctionCall(this, context);
          }
        }]);

        return FunctionCall;
      }(AST);
      /**
       * Records the absolute position of a text span in a source file, where `start` and `end` are the
       * starting and ending byte offsets, respectively, of the text span in a source file.
       */


      var AbsoluteSourceSpan = function AbsoluteSourceSpan(start, end) {
        _classCallCheck2(this, AbsoluteSourceSpan);

        this.start = start;
        this.end = end;
      };

      var ASTWithSource = /*#__PURE__*/function (_AST17) {
        _inherits2(ASTWithSource, _AST17);

        var _super87 = _createSuper2(ASTWithSource);

        function ASTWithSource(ast, source, location, absoluteOffset, errors) {
          var _this155;

          _classCallCheck2(this, ASTWithSource);

          _this155 = _super87.call(this, new ParseSpan(0, source === null ? 0 : source.length), new AbsoluteSourceSpan(absoluteOffset, source === null ? absoluteOffset : absoluteOffset + source.length));
          _this155.ast = ast;
          _this155.source = source;
          _this155.location = location;
          _this155.errors = errors;
          return _this155;
        }

        _createClass2(ASTWithSource, [{
          key: "visit",
          value: function visit(visitor) {
            var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;

            if (visitor.visitASTWithSource) {
              return visitor.visitASTWithSource(this, context);
            }

            return this.ast.visit(visitor, context);
          }
        }, {
          key: "toString",
          value: function toString() {
            return "".concat(this.source, " in ").concat(this.location);
          }
        }]);

        return ASTWithSource;
      }(AST);

      var VariableBinding =
      /**
       * @param sourceSpan entire span of the binding.
       * @param key name of the LHS along with its span.
       * @param value optional value for the RHS along with its span.
       */
      function VariableBinding(sourceSpan, key, value) {
        _classCallCheck2(this, VariableBinding);

        this.sourceSpan = sourceSpan;
        this.key = key;
        this.value = value;
      };

      var ExpressionBinding =
      /**
       * @param sourceSpan entire span of the binding.
       * @param key binding name, like ngForOf, ngForTrackBy, ngIf, along with its
       * span. Note that the length of the span may not be the same as
       * `key.source.length`. For example,
       * 1. key.source = ngFor, key.span is for "ngFor"
       * 2. key.source = ngForOf, key.span is for "of"
       * 3. key.source = ngForTrackBy, key.span is for "trackBy"
       * @param value optional expression for the RHS.
       */
      function ExpressionBinding(sourceSpan, key, value) {
        _classCallCheck2(this, ExpressionBinding);

        this.sourceSpan = sourceSpan;
        this.key = key;
        this.value = value;
      };

      var RecursiveAstVisitor$1 = /*#__PURE__*/function () {
        function RecursiveAstVisitor$1() {
          _classCallCheck2(this, RecursiveAstVisitor$1);
        }

        _createClass2(RecursiveAstVisitor$1, [{
          key: "visit",
          value: function visit(ast, context) {
            // The default implementation just visits every node.
            // Classes that extend RecursiveAstVisitor should override this function
            // to selectively visit the specified node.
            ast.visit(this, context);
          }
        }, {
          key: "visitUnary",
          value: function visitUnary(ast, context) {
            this.visit(ast.expr, context);
          }
        }, {
          key: "visitBinary",
          value: function visitBinary(ast, context) {
            this.visit(ast.left, context);
            this.visit(ast.right, context);
          }
        }, {
          key: "visitChain",
          value: function visitChain(ast, context) {
            this.visitAll(ast.expressions, context);
          }
        }, {
          key: "visitConditional",
          value: function visitConditional(ast, context) {
            this.visit(ast.condition, context);
            this.visit(ast.trueExp, context);
            this.visit(ast.falseExp, context);
          }
        }, {
          key: "visitPipe",
          value: function visitPipe(ast, context) {
            this.visit(ast.exp, context);
            this.visitAll(ast.args, context);
          }
        }, {
          key: "visitFunctionCall",
          value: function visitFunctionCall(ast, context) {
            if (ast.target) {
              this.visit(ast.target, context);
            }

            this.visitAll(ast.args, context);
          }
        }, {
          key: "visitImplicitReceiver",
          value: function visitImplicitReceiver(ast, context) {}
        }, {
          key: "visitThisReceiver",
          value: function visitThisReceiver(ast, context) {}
        }, {
          key: "visitInterpolation",
          value: function visitInterpolation(ast, context) {
            this.visitAll(ast.expressions, context);
          }
        }, {
          key: "visitKeyedRead",
          value: function visitKeyedRead(ast, context) {
            this.visit(ast.obj, context);
            this.visit(ast.key, context);
          }
        }, {
          key: "visitKeyedWrite",
          value: function visitKeyedWrite(ast, context) {
            this.visit(ast.obj, context);
            this.visit(ast.key, context);
            this.visit(ast.value, context);
          }
        }, {
          key: "visitLiteralArray",
          value: function visitLiteralArray(ast, context) {
            this.visitAll(ast.expressions, context);
          }
        }, {
          key: "visitLiteralMap",
          value: function visitLiteralMap(ast, context) {
            this.visitAll(ast.values, context);
          }
        }, {
          key: "visitLiteralPrimitive",
          value: function visitLiteralPrimitive(ast, context) {}
        }, {
          key: "visitMethodCall",
          value: function visitMethodCall(ast, context) {
            this.visit(ast.receiver, context);
            this.visitAll(ast.args, context);
          }
        }, {
          key: "visitPrefixNot",
          value: function visitPrefixNot(ast, context) {
            this.visit(ast.expression, context);
          }
        }, {
          key: "visitNonNullAssert",
          value: function visitNonNullAssert(ast, context) {
            this.visit(ast.expression, context);
          }
        }, {
          key: "visitPropertyRead",
          value: function visitPropertyRead(ast, context) {
            this.visit(ast.receiver, context);
          }
        }, {
          key: "visitPropertyWrite",
          value: function visitPropertyWrite(ast, context) {
            this.visit(ast.receiver, context);
            this.visit(ast.value, context);
          }
        }, {
          key: "visitSafePropertyRead",
          value: function visitSafePropertyRead(ast, context) {
            this.visit(ast.receiver, context);
          }
        }, {
          key: "visitSafeMethodCall",
          value: function visitSafeMethodCall(ast, context) {
            this.visit(ast.receiver, context);
            this.visitAll(ast.args, context);
          }
        }, {
          key: "visitQuote",
          value: function visitQuote(ast, context) {} // This is not part of the AstVisitor interface, just a helper method

        }, {
          key: "visitAll",
          value: function visitAll(asts, context) {
            var _iterator11 = _createForOfIteratorHelper(asts),
                _step11;

            try {
              for (_iterator11.s(); !(_step11 = _iterator11.n()).done;) {
                var ast = _step11.value;
                this.visit(ast, context);
              }
            } catch (err) {
              _iterator11.e(err);
            } finally {
              _iterator11.f();
            }
          }
        }]);

        return RecursiveAstVisitor$1;
      }();

      var AstTransformer$1 = /*#__PURE__*/function () {
        function AstTransformer$1() {
          _classCallCheck2(this, AstTransformer$1);
        }

        _createClass2(AstTransformer$1, [{
          key: "visitImplicitReceiver",
          value: function visitImplicitReceiver(ast, context) {
            return ast;
          }
        }, {
          key: "visitThisReceiver",
          value: function visitThisReceiver(ast, context) {
            return ast;
          }
        }, {
          key: "visitInterpolation",
          value: function visitInterpolation(ast, context) {
            return new Interpolation(ast.span, ast.sourceSpan, ast.strings, this.visitAll(ast.expressions));
          }
        }, {
          key: "visitLiteralPrimitive",
          value: function visitLiteralPrimitive(ast, context) {
            return new LiteralPrimitive(ast.span, ast.sourceSpan, ast.value);
          }
        }, {
          key: "visitPropertyRead",
          value: function visitPropertyRead(ast, context) {
            return new PropertyRead(ast.span, ast.sourceSpan, ast.nameSpan, ast.receiver.visit(this), ast.name);
          }
        }, {
          key: "visitPropertyWrite",
          value: function visitPropertyWrite(ast, context) {
            return new PropertyWrite(ast.span, ast.sourceSpan, ast.nameSpan, ast.receiver.visit(this), ast.name, ast.value.visit(this));
          }
        }, {
          key: "visitSafePropertyRead",
          value: function visitSafePropertyRead(ast, context) {
            return new SafePropertyRead(ast.span, ast.sourceSpan, ast.nameSpan, ast.receiver.visit(this), ast.name);
          }
        }, {
          key: "visitMethodCall",
          value: function visitMethodCall(ast, context) {
            return new MethodCall(ast.span, ast.sourceSpan, ast.nameSpan, ast.receiver.visit(this), ast.name, this.visitAll(ast.args));
          }
        }, {
          key: "visitSafeMethodCall",
          value: function visitSafeMethodCall(ast, context) {
            return new SafeMethodCall(ast.span, ast.sourceSpan, ast.nameSpan, ast.receiver.visit(this), ast.name, this.visitAll(ast.args));
          }
        }, {
          key: "visitFunctionCall",
          value: function visitFunctionCall(ast, context) {
            return new FunctionCall(ast.span, ast.sourceSpan, ast.target.visit(this), this.visitAll(ast.args));
          }
        }, {
          key: "visitLiteralArray",
          value: function visitLiteralArray(ast, context) {
            return new LiteralArray(ast.span, ast.sourceSpan, this.visitAll(ast.expressions));
          }
        }, {
          key: "visitLiteralMap",
          value: function visitLiteralMap(ast, context) {
            return new LiteralMap(ast.span, ast.sourceSpan, ast.keys, this.visitAll(ast.values));
          }
        }, {
          key: "visitUnary",
          value: function visitUnary(ast, context) {
            switch (ast.operator) {
              case '+':
                return Unary.createPlus(ast.span, ast.sourceSpan, ast.expr.visit(this));

              case '-':
                return Unary.createMinus(ast.span, ast.sourceSpan, ast.expr.visit(this));

              default:
                throw new Error("Unknown unary operator ".concat(ast.operator));
            }
          }
        }, {
          key: "visitBinary",
          value: function visitBinary(ast, context) {
            return new Binary(ast.span, ast.sourceSpan, ast.operation, ast.left.visit(this), ast.right.visit(this));
          }
        }, {
          key: "visitPrefixNot",
          value: function visitPrefixNot(ast, context) {
            return new PrefixNot(ast.span, ast.sourceSpan, ast.expression.visit(this));
          }
        }, {
          key: "visitNonNullAssert",
          value: function visitNonNullAssert(ast, context) {
            return new NonNullAssert(ast.span, ast.sourceSpan, ast.expression.visit(this));
          }
        }, {
          key: "visitConditional",
          value: function visitConditional(ast, context) {
            return new Conditional(ast.span, ast.sourceSpan, ast.condition.visit(this), ast.trueExp.visit(this), ast.falseExp.visit(this));
          }
        }, {
          key: "visitPipe",
          value: function visitPipe(ast, context) {
            return new BindingPipe(ast.span, ast.sourceSpan, ast.exp.visit(this), ast.name, this.visitAll(ast.args), ast.nameSpan);
          }
        }, {
          key: "visitKeyedRead",
          value: function visitKeyedRead(ast, context) {
            return new KeyedRead(ast.span, ast.sourceSpan, ast.obj.visit(this), ast.key.visit(this));
          }
        }, {
          key: "visitKeyedWrite",
          value: function visitKeyedWrite(ast, context) {
            return new KeyedWrite(ast.span, ast.sourceSpan, ast.obj.visit(this), ast.key.visit(this), ast.value.visit(this));
          }
        }, {
          key: "visitAll",
          value: function visitAll(asts) {
            var res = [];

            for (var i = 0; i < asts.length; ++i) {
              res[i] = asts[i].visit(this);
            }

            return res;
          }
        }, {
          key: "visitChain",
          value: function visitChain(ast, context) {
            return new Chain(ast.span, ast.sourceSpan, this.visitAll(ast.expressions));
          }
        }, {
          key: "visitQuote",
          value: function visitQuote(ast, context) {
            return new Quote(ast.span, ast.sourceSpan, ast.prefix, ast.uninterpretedExpression, ast.location);
          }
        }]);

        return AstTransformer$1;
      }(); // A transformer that only creates new nodes if the transformer makes a change or
      // a change is made a child node.


      var AstMemoryEfficientTransformer = /*#__PURE__*/function () {
        function AstMemoryEfficientTransformer() {
          _classCallCheck2(this, AstMemoryEfficientTransformer);
        }

        _createClass2(AstMemoryEfficientTransformer, [{
          key: "visitImplicitReceiver",
          value: function visitImplicitReceiver(ast, context) {
            return ast;
          }
        }, {
          key: "visitThisReceiver",
          value: function visitThisReceiver(ast, context) {
            return ast;
          }
        }, {
          key: "visitInterpolation",
          value: function visitInterpolation(ast, context) {
            var expressions = this.visitAll(ast.expressions);
            if (expressions !== ast.expressions) return new Interpolation(ast.span, ast.sourceSpan, ast.strings, expressions);
            return ast;
          }
        }, {
          key: "visitLiteralPrimitive",
          value: function visitLiteralPrimitive(ast, context) {
            return ast;
          }
        }, {
          key: "visitPropertyRead",
          value: function visitPropertyRead(ast, context) {
            var receiver = ast.receiver.visit(this);

            if (receiver !== ast.receiver) {
              return new PropertyRead(ast.span, ast.sourceSpan, ast.nameSpan, receiver, ast.name);
            }

            return ast;
          }
        }, {
          key: "visitPropertyWrite",
          value: function visitPropertyWrite(ast, context) {
            var receiver = ast.receiver.visit(this);
            var value = ast.value.visit(this);

            if (receiver !== ast.receiver || value !== ast.value) {
              return new PropertyWrite(ast.span, ast.sourceSpan, ast.nameSpan, receiver, ast.name, value);
            }

            return ast;
          }
        }, {
          key: "visitSafePropertyRead",
          value: function visitSafePropertyRead(ast, context) {
            var receiver = ast.receiver.visit(this);

            if (receiver !== ast.receiver) {
              return new SafePropertyRead(ast.span, ast.sourceSpan, ast.nameSpan, receiver, ast.name);
            }

            return ast;
          }
        }, {
          key: "visitMethodCall",
          value: function visitMethodCall(ast, context) {
            var receiver = ast.receiver.visit(this);
            var args = this.visitAll(ast.args);

            if (receiver !== ast.receiver || args !== ast.args) {
              return new MethodCall(ast.span, ast.sourceSpan, ast.nameSpan, receiver, ast.name, args);
            }

            return ast;
          }
        }, {
          key: "visitSafeMethodCall",
          value: function visitSafeMethodCall(ast, context) {
            var receiver = ast.receiver.visit(this);
            var args = this.visitAll(ast.args);

            if (receiver !== ast.receiver || args !== ast.args) {
              return new SafeMethodCall(ast.span, ast.sourceSpan, ast.nameSpan, receiver, ast.name, args);
            }

            return ast;
          }
        }, {
          key: "visitFunctionCall",
          value: function visitFunctionCall(ast, context) {
            var target = ast.target && ast.target.visit(this);
            var args = this.visitAll(ast.args);

            if (target !== ast.target || args !== ast.args) {
              return new FunctionCall(ast.span, ast.sourceSpan, target, args);
            }

            return ast;
          }
        }, {
          key: "visitLiteralArray",
          value: function visitLiteralArray(ast, context) {
            var expressions = this.visitAll(ast.expressions);

            if (expressions !== ast.expressions) {
              return new LiteralArray(ast.span, ast.sourceSpan, expressions);
            }

            return ast;
          }
        }, {
          key: "visitLiteralMap",
          value: function visitLiteralMap(ast, context) {
            var values = this.visitAll(ast.values);

            if (values !== ast.values) {
              return new LiteralMap(ast.span, ast.sourceSpan, ast.keys, values);
            }

            return ast;
          }
        }, {
          key: "visitUnary",
          value: function visitUnary(ast, context) {
            var expr = ast.expr.visit(this);

            if (expr !== ast.expr) {
              switch (ast.operator) {
                case '+':
                  return Unary.createPlus(ast.span, ast.sourceSpan, expr);

                case '-':
                  return Unary.createMinus(ast.span, ast.sourceSpan, expr);

                default:
                  throw new Error("Unknown unary operator ".concat(ast.operator));
              }
            }

            return ast;
          }
        }, {
          key: "visitBinary",
          value: function visitBinary(ast, context) {
            var left = ast.left.visit(this);
            var right = ast.right.visit(this);

            if (left !== ast.left || right !== ast.right) {
              return new Binary(ast.span, ast.sourceSpan, ast.operation, left, right);
            }

            return ast;
          }
        }, {
          key: "visitPrefixNot",
          value: function visitPrefixNot(ast, context) {
            var expression = ast.expression.visit(this);

            if (expression !== ast.expression) {
              return new PrefixNot(ast.span, ast.sourceSpan, expression);
            }

            return ast;
          }
        }, {
          key: "visitNonNullAssert",
          value: function visitNonNullAssert(ast, context) {
            var expression = ast.expression.visit(this);

            if (expression !== ast.expression) {
              return new NonNullAssert(ast.span, ast.sourceSpan, expression);
            }

            return ast;
          }
        }, {
          key: "visitConditional",
          value: function visitConditional(ast, context) {
            var condition = ast.condition.visit(this);
            var trueExp = ast.trueExp.visit(this);
            var falseExp = ast.falseExp.visit(this);

            if (condition !== ast.condition || trueExp !== ast.trueExp || falseExp !== ast.falseExp) {
              return new Conditional(ast.span, ast.sourceSpan, condition, trueExp, falseExp);
            }

            return ast;
          }
        }, {
          key: "visitPipe",
          value: function visitPipe(ast, context) {
            var exp = ast.exp.visit(this);
            var args = this.visitAll(ast.args);

            if (exp !== ast.exp || args !== ast.args) {
              return new BindingPipe(ast.span, ast.sourceSpan, exp, ast.name, args, ast.nameSpan);
            }

            return ast;
          }
        }, {
          key: "visitKeyedRead",
          value: function visitKeyedRead(ast, context) {
            var obj = ast.obj.visit(this);
            var key = ast.key.visit(this);

            if (obj !== ast.obj || key !== ast.key) {
              return new KeyedRead(ast.span, ast.sourceSpan, obj, key);
            }

            return ast;
          }
        }, {
          key: "visitKeyedWrite",
          value: function visitKeyedWrite(ast, context) {
            var obj = ast.obj.visit(this);
            var key = ast.key.visit(this);
            var value = ast.value.visit(this);

            if (obj !== ast.obj || key !== ast.key || value !== ast.value) {
              return new KeyedWrite(ast.span, ast.sourceSpan, obj, key, value);
            }

            return ast;
          }
        }, {
          key: "visitAll",
          value: function visitAll(asts) {
            var res = [];
            var modified = false;

            for (var i = 0; i < asts.length; ++i) {
              var original = asts[i];
              var value = original.visit(this);
              res[i] = value;
              modified = modified || value !== original;
            }

            return modified ? res : asts;
          }
        }, {
          key: "visitChain",
          value: function visitChain(ast, context) {
            var expressions = this.visitAll(ast.expressions);

            if (expressions !== ast.expressions) {
              return new Chain(ast.span, ast.sourceSpan, expressions);
            }

            return ast;
          }
        }, {
          key: "visitQuote",
          value: function visitQuote(ast, context) {
            return ast;
          }
        }]);

        return AstMemoryEfficientTransformer;
      }(); // Bindings


      var ParsedProperty = function ParsedProperty(name, expression, type, // TODO(atscott): `keySpan` should really be required but allows `undefined` so VE does
      // not need to be updated. Make `keySpan` required when VE is removed.
      sourceSpan, keySpan, valueSpan) {
        _classCallCheck2(this, ParsedProperty);

        this.name = name;
        this.expression = expression;
        this.type = type;
        this.sourceSpan = sourceSpan;
        this.keySpan = keySpan;
        this.valueSpan = valueSpan;
        this.isLiteral = this.type === ParsedPropertyType.LITERAL_ATTR;
        this.isAnimation = this.type === ParsedPropertyType.ANIMATION;
      };

      var ParsedPropertyType;

      (function (ParsedPropertyType) {
        ParsedPropertyType[ParsedPropertyType["DEFAULT"] = 0] = "DEFAULT";
        ParsedPropertyType[ParsedPropertyType["LITERAL_ATTR"] = 1] = "LITERAL_ATTR";
        ParsedPropertyType[ParsedPropertyType["ANIMATION"] = 2] = "ANIMATION";
      })(ParsedPropertyType || (ParsedPropertyType = {}));

      var ParsedEvent = // Regular events have a target
      // Animation events have a phase
      function ParsedEvent(name, targetOrPhase, type, handler, sourceSpan, handlerSpan) {
        _classCallCheck2(this, ParsedEvent);

        this.name = name;
        this.targetOrPhase = targetOrPhase;
        this.type = type;
        this.handler = handler;
        this.sourceSpan = sourceSpan;
        this.handlerSpan = handlerSpan;
      };
      /**
       * ParsedVariable represents a variable declaration in a microsyntax expression.
       */


      var ParsedVariable = function ParsedVariable(name, value, sourceSpan, keySpan, valueSpan) {
        _classCallCheck2(this, ParsedVariable);

        this.name = name;
        this.value = value;
        this.sourceSpan = sourceSpan;
        this.keySpan = keySpan;
        this.valueSpan = valueSpan;
      };

      var BoundElementProperty = function BoundElementProperty(name, type, securityContext, value, unit, sourceSpan, keySpan, valueSpan) {
        _classCallCheck2(this, BoundElementProperty);

        this.name = name;
        this.type = type;
        this.securityContext = securityContext;
        this.value = value;
        this.unit = unit;
        this.sourceSpan = sourceSpan;
        this.keySpan = keySpan;
        this.valueSpan = valueSpan;
      };
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var EventHandlerVars = function EventHandlerVars() {
        _classCallCheck2(this, EventHandlerVars);
      };

      EventHandlerVars.event = variable('$event');

      var ConvertActionBindingResult = function ConvertActionBindingResult(
      /**
       * Render2 compatible statements,
       */
      stmts,
      /**
       * Variable name used with render2 compatible statements.
       */
      allowDefault) {
        _classCallCheck2(this, ConvertActionBindingResult);

        this.stmts = stmts;
        this.allowDefault = allowDefault;
        /**
         * This is bit of a hack. It converts statements which render2 expects to statements which are
         * expected by render3.
         *
         * Example: `<div click="doSomething($event)">` will generate:
         *
         * Render3:
         * ```
         * const pd_b:any = ((<any>ctx.doSomething($event)) !== false);
         * return pd_b;
         * ```
         *
         * but render2 expects:
         * ```
         * return ctx.doSomething($event);
         * ```
         */
        // TODO(misko): remove this hack once we no longer support ViewEngine.

        this.render3Stmts = stmts.map(function (statement) {
          if (statement instanceof DeclareVarStmt && statement.name == allowDefault.name && statement.value instanceof BinaryOperatorExpr) {
            var lhs = statement.value.lhs;
            return new ReturnStatement(lhs.value);
          }

          return statement;
        });
      };
      /**
       * Converts the given expression AST into an executable output AST, assuming the expression is
       * used in an action binding (e.g. an event handler).
       */


      function convertActionBinding(localResolver, implicitReceiver, action, bindingId, interpolationFunction, baseSourceSpan, implicitReceiverAccesses, globals) {
        if (!localResolver) {
          localResolver = new DefaultLocalResolver(globals);
        }

        var actionWithoutBuiltins = convertPropertyBindingBuiltins({
          createLiteralArrayConverter: function createLiteralArrayConverter(argCount) {
            // Note: no caching for literal arrays in actions.
            return function (args) {
              return literalArr(args);
            };
          },
          createLiteralMapConverter: function createLiteralMapConverter(keys) {
            // Note: no caching for literal maps in actions.
            return function (values) {
              var entries = keys.map(function (k, i) {
                return {
                  key: k.key,
                  value: values[i],
                  quoted: k.quoted
                };
              });
              return literalMap(entries);
            };
          },
          createPipeConverter: function createPipeConverter(name) {
            throw new Error("Illegal State: Actions are not allowed to contain pipes. Pipe: ".concat(name));
          }
        }, action);
        var visitor = new _AstToIrVisitor(localResolver, implicitReceiver, bindingId, interpolationFunction, baseSourceSpan, implicitReceiverAccesses);
        var actionStmts = [];
        flattenStatements(actionWithoutBuiltins.visit(visitor, _Mode.Statement), actionStmts);
        prependTemporaryDecls(visitor.temporaryCount, bindingId, actionStmts);

        if (visitor.usesImplicitReceiver) {
          localResolver.notifyImplicitReceiverUse();
        }

        var lastIndex = actionStmts.length - 1;
        var preventDefaultVar = null;

        if (lastIndex >= 0) {
          var lastStatement = actionStmts[lastIndex];
          var returnExpr = convertStmtIntoExpression(lastStatement);

          if (returnExpr) {
            // Note: We need to cast the result of the method call to dynamic,
            // as it might be a void method!
            preventDefaultVar = createPreventDefaultVar(bindingId);
            actionStmts[lastIndex] = preventDefaultVar.set(returnExpr.cast(DYNAMIC_TYPE).notIdentical(literal(false))).toDeclStmt(null, [StmtModifier.Final]);
          }
        }

        return new ConvertActionBindingResult(actionStmts, preventDefaultVar);
      }

      function convertPropertyBindingBuiltins(converterFactory, ast) {
        return convertBuiltins(converterFactory, ast);
      }

      var ConvertPropertyBindingResult = function ConvertPropertyBindingResult(stmts, currValExpr) {
        _classCallCheck2(this, ConvertPropertyBindingResult);

        this.stmts = stmts;
        this.currValExpr = currValExpr;
      };

      var BindingForm;

      (function (BindingForm) {
        // The general form of binding expression, supports all expressions.
        BindingForm[BindingForm["General"] = 0] = "General"; // Try to generate a simple binding (no temporaries or statements)
        // otherwise generate a general binding

        BindingForm[BindingForm["TrySimple"] = 1] = "TrySimple"; // Inlines assignment of temporaries into the generated expression. The result may still
        // have statements attached for declarations of temporary variables.
        // This is the only relevant form for Ivy, the other forms are only used in ViewEngine.

        BindingForm[BindingForm["Expression"] = 2] = "Expression";
      })(BindingForm || (BindingForm = {}));
      /**
       * Converts the given expression AST into an executable output AST, assuming the expression
       * is used in property binding. The expression has to be preprocessed via
       * `convertPropertyBindingBuiltins`.
       */


      function _convertPropertyBinding(localResolver, implicitReceiver, expressionWithoutBuiltins, bindingId, form, interpolationFunction) {
        if (!localResolver) {
          localResolver = new DefaultLocalResolver();
        }

        var visitor = new _AstToIrVisitor(localResolver, implicitReceiver, bindingId, interpolationFunction);
        var outputExpr = expressionWithoutBuiltins.visit(visitor, _Mode.Expression);
        var stmts = getStatementsFromVisitor(visitor, bindingId);

        if (visitor.usesImplicitReceiver) {
          localResolver.notifyImplicitReceiverUse();
        }

        if (visitor.temporaryCount === 0 && form == BindingForm.TrySimple) {
          return new ConvertPropertyBindingResult([], outputExpr);
        } else if (form === BindingForm.Expression) {
          return new ConvertPropertyBindingResult(stmts, outputExpr);
        }

        var currValExpr = createCurrValueExpr(bindingId);
        stmts.push(currValExpr.set(outputExpr).toDeclStmt(DYNAMIC_TYPE, [StmtModifier.Final]));
        return new ConvertPropertyBindingResult(stmts, currValExpr);
      }
      /**
       * Given some expression, such as a binding or interpolation expression, and a context expression to
       * look values up on, visit each facet of the given expression resolving values from the context
       * expression such that a list of arguments can be derived from the found values that can be used as
       * arguments to an external update instruction.
       *
       * @param localResolver The resolver to use to look up expressions by name appropriately
       * @param contextVariableExpression The expression representing the context variable used to create
       * the final argument expressions
       * @param expressionWithArgumentsToExtract The expression to visit to figure out what values need to
       * be resolved and what arguments list to build.
       * @param bindingId A name prefix used to create temporary variable names if they're needed for the
       * arguments generated
       * @returns An array of expressions that can be passed as arguments to instruction expressions like
       * `o.importExpr(R3.propertyInterpolate).callFn(result)`
       */


      function convertUpdateArguments(localResolver, contextVariableExpression, expressionWithArgumentsToExtract, bindingId) {
        var visitor = new _AstToIrVisitor(localResolver, contextVariableExpression, bindingId, undefined);
        var outputExpr = expressionWithArgumentsToExtract.visit(visitor, _Mode.Expression);

        if (visitor.usesImplicitReceiver) {
          localResolver.notifyImplicitReceiverUse();
        }

        var stmts = getStatementsFromVisitor(visitor, bindingId); // Removing the first argument, because it was a length for ViewEngine, not Ivy.

        var args = outputExpr.args.slice(1);

        if (expressionWithArgumentsToExtract instanceof Interpolation) {
          // If we're dealing with an interpolation of 1 value with an empty prefix and suffix, reduce the
          // args returned to just the value, because we're going to pass it to a special instruction.
          var strings = expressionWithArgumentsToExtract.strings;

          if (args.length === 3 && strings[0] === '' && strings[1] === '') {
            // Single argument interpolate instructions.
            args = [args[1]];
          } else if (args.length >= 19) {
            // 19 or more arguments must be passed to the `interpolateV`-style instructions, which accept
            // an array of arguments
            args = [literalArr(args)];
          }
        }

        return {
          stmts: stmts,
          args: args
        };
      }

      function getStatementsFromVisitor(visitor, bindingId) {
        var stmts = [];

        for (var i = 0; i < visitor.temporaryCount; i++) {
          stmts.push(temporaryDeclaration(bindingId, i));
        }

        return stmts;
      }

      function convertBuiltins(converterFactory, ast) {
        var visitor = new _BuiltinAstConverter(converterFactory);
        return ast.visit(visitor);
      }

      function temporaryName(bindingId, temporaryNumber) {
        return "tmp_".concat(bindingId, "_").concat(temporaryNumber);
      }

      function temporaryDeclaration(bindingId, temporaryNumber) {
        return new DeclareVarStmt(temporaryName(bindingId, temporaryNumber), NULL_EXPR);
      }

      function prependTemporaryDecls(temporaryCount, bindingId, statements) {
        for (var i = temporaryCount - 1; i >= 0; i--) {
          statements.unshift(temporaryDeclaration(bindingId, i));
        }
      }

      var _Mode;

      (function (_Mode) {
        _Mode[_Mode["Statement"] = 0] = "Statement";
        _Mode[_Mode["Expression"] = 1] = "Expression";
      })(_Mode || (_Mode = {}));

      function ensureStatementMode(mode, ast) {
        if (mode !== _Mode.Statement) {
          throw new Error("Expected a statement, but saw ".concat(ast));
        }
      }

      function ensureExpressionMode(mode, ast) {
        if (mode !== _Mode.Expression) {
          throw new Error("Expected an expression, but saw ".concat(ast));
        }
      }

      function convertToStatementIfNeeded(mode, expr) {
        if (mode === _Mode.Statement) {
          return expr.toStmt();
        } else {
          return expr;
        }
      }

      var _BuiltinAstConverter = /*#__PURE__*/function (_AstTransformer$) {
        _inherits2(_BuiltinAstConverter, _AstTransformer$);

        var _super88 = _createSuper2(_BuiltinAstConverter);

        function _BuiltinAstConverter(_converterFactory) {
          var _this156;

          _classCallCheck2(this, _BuiltinAstConverter);

          _this156 = _super88.call(this);
          _this156._converterFactory = _converterFactory;
          return _this156;
        }

        _createClass2(_BuiltinAstConverter, [{
          key: "visitPipe",
          value: function visitPipe(ast, context) {
            var _this157 = this;

            var args = [ast.exp].concat(_toConsumableArray(ast.args)).map(function (ast) {
              return ast.visit(_this157, context);
            });
            return new BuiltinFunctionCall(ast.span, ast.sourceSpan, args, this._converterFactory.createPipeConverter(ast.name, args.length));
          }
        }, {
          key: "visitLiteralArray",
          value: function visitLiteralArray(ast, context) {
            var _this158 = this;

            var args = ast.expressions.map(function (ast) {
              return ast.visit(_this158, context);
            });
            return new BuiltinFunctionCall(ast.span, ast.sourceSpan, args, this._converterFactory.createLiteralArrayConverter(ast.expressions.length));
          }
        }, {
          key: "visitLiteralMap",
          value: function visitLiteralMap(ast, context) {
            var _this159 = this;

            var args = ast.values.map(function (ast) {
              return ast.visit(_this159, context);
            });
            return new BuiltinFunctionCall(ast.span, ast.sourceSpan, args, this._converterFactory.createLiteralMapConverter(ast.keys));
          }
        }]);

        return _BuiltinAstConverter;
      }(AstTransformer$1);

      var _AstToIrVisitor = /*#__PURE__*/function () {
        function _AstToIrVisitor(_localResolver, _implicitReceiver, bindingId, interpolationFunction, baseSourceSpan, implicitReceiverAccesses) {
          _classCallCheck2(this, _AstToIrVisitor);

          this._localResolver = _localResolver;
          this._implicitReceiver = _implicitReceiver;
          this.bindingId = bindingId;
          this.interpolationFunction = interpolationFunction;
          this.baseSourceSpan = baseSourceSpan;
          this.implicitReceiverAccesses = implicitReceiverAccesses;
          this._nodeMap = new Map();
          this._resultMap = new Map();
          this._currentTemporary = 0;
          this.temporaryCount = 0;
          this.usesImplicitReceiver = false;
        }

        _createClass2(_AstToIrVisitor, [{
          key: "visitUnary",
          value: function visitUnary(ast, mode) {
            var op;

            switch (ast.operator) {
              case '+':
                op = UnaryOperator.Plus;
                break;

              case '-':
                op = UnaryOperator.Minus;
                break;

              default:
                throw new Error("Unsupported operator ".concat(ast.operator));
            }

            return convertToStatementIfNeeded(mode, new UnaryOperatorExpr(op, this._visit(ast.expr, _Mode.Expression), undefined, this.convertSourceSpan(ast.span)));
          }
        }, {
          key: "visitBinary",
          value: function visitBinary(ast, mode) {
            var op;

            switch (ast.operation) {
              case '+':
                op = BinaryOperator.Plus;
                break;

              case '-':
                op = BinaryOperator.Minus;
                break;

              case '*':
                op = BinaryOperator.Multiply;
                break;

              case '/':
                op = BinaryOperator.Divide;
                break;

              case '%':
                op = BinaryOperator.Modulo;
                break;

              case '&&':
                op = BinaryOperator.And;
                break;

              case '||':
                op = BinaryOperator.Or;
                break;

              case '==':
                op = BinaryOperator.Equals;
                break;

              case '!=':
                op = BinaryOperator.NotEquals;
                break;

              case '===':
                op = BinaryOperator.Identical;
                break;

              case '!==':
                op = BinaryOperator.NotIdentical;
                break;

              case '<':
                op = BinaryOperator.Lower;
                break;

              case '>':
                op = BinaryOperator.Bigger;
                break;

              case '<=':
                op = BinaryOperator.LowerEquals;
                break;

              case '>=':
                op = BinaryOperator.BiggerEquals;
                break;

              default:
                throw new Error("Unsupported operation ".concat(ast.operation));
            }

            return convertToStatementIfNeeded(mode, new BinaryOperatorExpr(op, this._visit(ast.left, _Mode.Expression), this._visit(ast.right, _Mode.Expression), undefined, this.convertSourceSpan(ast.span)));
          }
        }, {
          key: "visitChain",
          value: function visitChain(ast, mode) {
            ensureStatementMode(mode, ast);
            return this.visitAll(ast.expressions, mode);
          }
        }, {
          key: "visitConditional",
          value: function visitConditional(ast, mode) {
            var value = this._visit(ast.condition, _Mode.Expression);

            return convertToStatementIfNeeded(mode, value.conditional(this._visit(ast.trueExp, _Mode.Expression), this._visit(ast.falseExp, _Mode.Expression), this.convertSourceSpan(ast.span)));
          }
        }, {
          key: "visitPipe",
          value: function visitPipe(ast, mode) {
            throw new Error("Illegal state: Pipes should have been converted into functions. Pipe: ".concat(ast.name));
          }
        }, {
          key: "visitFunctionCall",
          value: function visitFunctionCall(ast, mode) {
            var convertedArgs = this.visitAll(ast.args, _Mode.Expression);
            var fnResult;

            if (ast instanceof BuiltinFunctionCall) {
              fnResult = ast.converter(convertedArgs);
            } else {
              fnResult = this._visit(ast.target, _Mode.Expression).callFn(convertedArgs, this.convertSourceSpan(ast.span));
            }

            return convertToStatementIfNeeded(mode, fnResult);
          }
        }, {
          key: "visitImplicitReceiver",
          value: function visitImplicitReceiver(ast, mode) {
            ensureExpressionMode(mode, ast);
            this.usesImplicitReceiver = true;
            return this._implicitReceiver;
          }
        }, {
          key: "visitThisReceiver",
          value: function visitThisReceiver(ast, mode) {
            return this.visitImplicitReceiver(ast, mode);
          }
        }, {
          key: "visitInterpolation",
          value: function visitInterpolation(ast, mode) {
            ensureExpressionMode(mode, ast);
            var args = [literal(ast.expressions.length)];

            for (var i = 0; i < ast.strings.length - 1; i++) {
              args.push(literal(ast.strings[i]));
              args.push(this._visit(ast.expressions[i], _Mode.Expression));
            }

            args.push(literal(ast.strings[ast.strings.length - 1]));

            if (this.interpolationFunction) {
              return this.interpolationFunction(args);
            }

            return ast.expressions.length <= 9 ? importExpr(Identifiers.inlineInterpolate).callFn(args) : importExpr(Identifiers.interpolate).callFn([args[0], literalArr(args.slice(1), undefined, this.convertSourceSpan(ast.span))]);
          }
        }, {
          key: "visitKeyedRead",
          value: function visitKeyedRead(ast, mode) {
            var leftMostSafe = this.leftMostSafeNode(ast);

            if (leftMostSafe) {
              return this.convertSafeAccess(ast, leftMostSafe, mode);
            } else {
              return convertToStatementIfNeeded(mode, this._visit(ast.obj, _Mode.Expression).key(this._visit(ast.key, _Mode.Expression)));
            }
          }
        }, {
          key: "visitKeyedWrite",
          value: function visitKeyedWrite(ast, mode) {
            var obj = this._visit(ast.obj, _Mode.Expression);

            var key = this._visit(ast.key, _Mode.Expression);

            var value = this._visit(ast.value, _Mode.Expression);

            return convertToStatementIfNeeded(mode, obj.key(key).set(value));
          }
        }, {
          key: "visitLiteralArray",
          value: function visitLiteralArray(ast, mode) {
            throw new Error("Illegal State: literal arrays should have been converted into functions");
          }
        }, {
          key: "visitLiteralMap",
          value: function visitLiteralMap(ast, mode) {
            throw new Error("Illegal State: literal maps should have been converted into functions");
          }
        }, {
          key: "visitLiteralPrimitive",
          value: function visitLiteralPrimitive(ast, mode) {
            // For literal values of null, undefined, true, or false allow type interference
            // to infer the type.
            var type = ast.value === null || ast.value === undefined || ast.value === true || ast.value === true ? INFERRED_TYPE : undefined;
            return convertToStatementIfNeeded(mode, literal(ast.value, type, this.convertSourceSpan(ast.span)));
          }
        }, {
          key: "_getLocal",
          value: function _getLocal(name, receiver) {
            var _a;

            if (((_a = this._localResolver.globals) === null || _a === void 0 ? void 0 : _a.has(name)) && receiver instanceof ThisReceiver) {
              return null;
            }

            return this._localResolver.getLocal(name);
          }
        }, {
          key: "visitMethodCall",
          value: function visitMethodCall(ast, mode) {
            if (ast.receiver instanceof ImplicitReceiver && !(ast.receiver instanceof ThisReceiver) && ast.name === '$any') {
              var args = this.visitAll(ast.args, _Mode.Expression);

              if (args.length != 1) {
                throw new Error("Invalid call to $any, expected 1 argument but received ".concat(args.length || 'none'));
              }

              return args[0].cast(DYNAMIC_TYPE, this.convertSourceSpan(ast.span));
            }

            var leftMostSafe = this.leftMostSafeNode(ast);

            if (leftMostSafe) {
              return this.convertSafeAccess(ast, leftMostSafe, mode);
            } else {
              var _args = this.visitAll(ast.args, _Mode.Expression);

              var prevUsesImplicitReceiver = this.usesImplicitReceiver;
              var result = null;

              var receiver = this._visit(ast.receiver, _Mode.Expression);

              if (receiver === this._implicitReceiver) {
                var varExpr = this._getLocal(ast.name, ast.receiver);

                if (varExpr) {
                  // Restore the previous "usesImplicitReceiver" state since the implicit
                  // receiver has been replaced with a resolved local expression.
                  this.usesImplicitReceiver = prevUsesImplicitReceiver;
                  result = varExpr.callFn(_args);
                  this.addImplicitReceiverAccess(ast.name);
                }
              }

              if (result == null) {
                result = receiver.callMethod(ast.name, _args, this.convertSourceSpan(ast.span));
              }

              return convertToStatementIfNeeded(mode, result);
            }
          }
        }, {
          key: "visitPrefixNot",
          value: function visitPrefixNot(ast, mode) {
            return convertToStatementIfNeeded(mode, not(this._visit(ast.expression, _Mode.Expression)));
          }
        }, {
          key: "visitNonNullAssert",
          value: function visitNonNullAssert(ast, mode) {
            return convertToStatementIfNeeded(mode, assertNotNull(this._visit(ast.expression, _Mode.Expression)));
          }
        }, {
          key: "visitPropertyRead",
          value: function visitPropertyRead(ast, mode) {
            var leftMostSafe = this.leftMostSafeNode(ast);

            if (leftMostSafe) {
              return this.convertSafeAccess(ast, leftMostSafe, mode);
            } else {
              var result = null;
              var prevUsesImplicitReceiver = this.usesImplicitReceiver;

              var receiver = this._visit(ast.receiver, _Mode.Expression);

              if (receiver === this._implicitReceiver) {
                result = this._getLocal(ast.name, ast.receiver);

                if (result) {
                  // Restore the previous "usesImplicitReceiver" state since the implicit
                  // receiver has been replaced with a resolved local expression.
                  this.usesImplicitReceiver = prevUsesImplicitReceiver;
                  this.addImplicitReceiverAccess(ast.name);
                }
              }

              if (result == null) {
                result = receiver.prop(ast.name);
              }

              return convertToStatementIfNeeded(mode, result);
            }
          }
        }, {
          key: "visitPropertyWrite",
          value: function visitPropertyWrite(ast, mode) {
            var receiver = this._visit(ast.receiver, _Mode.Expression);

            var prevUsesImplicitReceiver = this.usesImplicitReceiver;
            var varExpr = null;

            if (receiver === this._implicitReceiver) {
              var localExpr = this._getLocal(ast.name, ast.receiver);

              if (localExpr) {
                if (localExpr instanceof ReadPropExpr) {
                  // If the local variable is a property read expression, it's a reference
                  // to a 'context.property' value and will be used as the target of the
                  // write expression.
                  varExpr = localExpr; // Restore the previous "usesImplicitReceiver" state since the implicit
                  // receiver has been replaced with a resolved local expression.

                  this.usesImplicitReceiver = prevUsesImplicitReceiver;
                  this.addImplicitReceiverAccess(ast.name);
                } else {
                  // Otherwise it's an error.
                  var _receiver = ast.name;
                  var value = ast.value instanceof PropertyRead ? ast.value.name : undefined;
                  throw new Error("Cannot assign value \"".concat(value, "\" to template variable \"").concat(_receiver, "\". Template variables are read-only."));
                }
              }
            } // If no local expression could be produced, use the original receiver's
            // property as the target.


            if (varExpr === null) {
              varExpr = receiver.prop(ast.name);
            }

            return convertToStatementIfNeeded(mode, varExpr.set(this._visit(ast.value, _Mode.Expression)));
          }
        }, {
          key: "visitSafePropertyRead",
          value: function visitSafePropertyRead(ast, mode) {
            return this.convertSafeAccess(ast, this.leftMostSafeNode(ast), mode);
          }
        }, {
          key: "visitSafeMethodCall",
          value: function visitSafeMethodCall(ast, mode) {
            return this.convertSafeAccess(ast, this.leftMostSafeNode(ast), mode);
          }
        }, {
          key: "visitAll",
          value: function visitAll(asts, mode) {
            var _this160 = this;

            return asts.map(function (ast) {
              return _this160._visit(ast, mode);
            });
          }
        }, {
          key: "visitQuote",
          value: function visitQuote(ast, mode) {
            throw new Error("Quotes are not supported for evaluation!\n        Statement: ".concat(ast.uninterpretedExpression, " located at ").concat(ast.location));
          }
        }, {
          key: "_visit",
          value: function _visit(ast, mode) {
            var result = this._resultMap.get(ast);

            if (result) return result;
            return (this._nodeMap.get(ast) || ast).visit(this, mode);
          }
        }, {
          key: "convertSafeAccess",
          value: function convertSafeAccess(ast, leftMostSafe, mode) {
            // If the expression contains a safe access node on the left it needs to be converted to
            // an expression that guards the access to the member by checking the receiver for blank. As
            // execution proceeds from left to right, the left most part of the expression must be guarded
            // first but, because member access is left associative, the right side of the expression is at
            // the top of the AST. The desired result requires lifting a copy of the left part of the
            // expression up to test it for blank before generating the unguarded version.
            // Consider, for example the following expression: a?.b.c?.d.e
            // This results in the ast:
            //         .
            //        / \
            //       ?.   e
            //      /  \
            //     .    d
            //    / \
            //   ?.  c
            //  /  \
            // a    b
            // The following tree should be generated:
            //
            //        /---- ? ----\
            //       /      |      \
            //     a   /--- ? ---\  null
            //        /     |     \
            //       .      .     null
            //      / \    / \
            //     .  c   .   e
            //    / \    / \
            //   a   b  .   d
            //         / \
            //        .   c
            //       / \
            //      a   b
            //
            // Notice that the first guard condition is the left hand of the left most safe access node
            // which comes in as leftMostSafe to this routine.
            var guardedExpression = this._visit(leftMostSafe.receiver, _Mode.Expression);

            var temporary = undefined;

            if (this.needsTemporary(leftMostSafe.receiver)) {
              // If the expression has method calls or pipes then we need to save the result into a
              // temporary variable to avoid calling stateful or impure code more than once.
              temporary = this.allocateTemporary(); // Preserve the result in the temporary variable

              guardedExpression = temporary.set(guardedExpression); // Ensure all further references to the guarded expression refer to the temporary instead.

              this._resultMap.set(leftMostSafe.receiver, temporary);
            }

            var condition = guardedExpression.isBlank(); // Convert the ast to an unguarded access to the receiver's member. The map will substitute
            // leftMostNode with its unguarded version in the call to `this.visit()`.

            if (leftMostSafe instanceof SafeMethodCall) {
              this._nodeMap.set(leftMostSafe, new MethodCall(leftMostSafe.span, leftMostSafe.sourceSpan, leftMostSafe.nameSpan, leftMostSafe.receiver, leftMostSafe.name, leftMostSafe.args));
            } else {
              this._nodeMap.set(leftMostSafe, new PropertyRead(leftMostSafe.span, leftMostSafe.sourceSpan, leftMostSafe.nameSpan, leftMostSafe.receiver, leftMostSafe.name));
            } // Recursively convert the node now without the guarded member access.


            var access = this._visit(ast, _Mode.Expression); // Remove the mapping. This is not strictly required as the converter only traverses each node
            // once but is safer if the conversion is changed to traverse the nodes more than once.


            this._nodeMap["delete"](leftMostSafe); // If we allocated a temporary, release it.


            if (temporary) {
              this.releaseTemporary(temporary);
            } // Produce the conditional


            return convertToStatementIfNeeded(mode, condition.conditional(literal(null), access));
          } // Given an expression of the form a?.b.c?.d.e then the left most safe node is
          // the (a?.b). The . and ?. are left associative thus can be rewritten as:
          // ((((a?.c).b).c)?.d).e. This returns the most deeply nested safe read or
          // safe method call as this needs to be transformed initially to:
          //   a == null ? null : a.c.b.c?.d.e
          // then to:
          //   a == null ? null : a.b.c == null ? null : a.b.c.d.e

        }, {
          key: "leftMostSafeNode",
          value: function leftMostSafeNode(ast) {
            var _this161 = this;

            var visit = function visit(visitor, ast) {
              return (_this161._nodeMap.get(ast) || ast).visit(visitor);
            };

            return ast.visit({
              visitUnary: function visitUnary(ast) {
                return null;
              },
              visitBinary: function visitBinary(ast) {
                return null;
              },
              visitChain: function visitChain(ast) {
                return null;
              },
              visitConditional: function visitConditional(ast) {
                return null;
              },
              visitFunctionCall: function visitFunctionCall(ast) {
                return null;
              },
              visitImplicitReceiver: function visitImplicitReceiver(ast) {
                return null;
              },
              visitThisReceiver: function visitThisReceiver(ast) {
                return null;
              },
              visitInterpolation: function visitInterpolation(ast) {
                return null;
              },
              visitKeyedRead: function visitKeyedRead(ast) {
                return visit(this, ast.obj);
              },
              visitKeyedWrite: function visitKeyedWrite(ast) {
                return null;
              },
              visitLiteralArray: function visitLiteralArray(ast) {
                return null;
              },
              visitLiteralMap: function visitLiteralMap(ast) {
                return null;
              },
              visitLiteralPrimitive: function visitLiteralPrimitive(ast) {
                return null;
              },
              visitMethodCall: function visitMethodCall(ast) {
                return visit(this, ast.receiver);
              },
              visitPipe: function visitPipe(ast) {
                return null;
              },
              visitPrefixNot: function visitPrefixNot(ast) {
                return null;
              },
              visitNonNullAssert: function visitNonNullAssert(ast) {
                return null;
              },
              visitPropertyRead: function visitPropertyRead(ast) {
                return visit(this, ast.receiver);
              },
              visitPropertyWrite: function visitPropertyWrite(ast) {
                return null;
              },
              visitQuote: function visitQuote(ast) {
                return null;
              },
              visitSafeMethodCall: function visitSafeMethodCall(ast) {
                return visit(this, ast.receiver) || ast;
              },
              visitSafePropertyRead: function visitSafePropertyRead(ast) {
                return visit(this, ast.receiver) || ast;
              }
            });
          } // Returns true of the AST includes a method or a pipe indicating that, if the
          // expression is used as the target of a safe property or method access then
          // the expression should be stored into a temporary variable.

        }, {
          key: "needsTemporary",
          value: function needsTemporary(ast) {
            var _this162 = this;

            var visit = function visit(visitor, ast) {
              return ast && (_this162._nodeMap.get(ast) || ast).visit(visitor);
            };

            var visitSome = function visitSome(visitor, ast) {
              return ast.some(function (ast) {
                return visit(visitor, ast);
              });
            };

            return ast.visit({
              visitUnary: function visitUnary(ast) {
                return visit(this, ast.expr);
              },
              visitBinary: function visitBinary(ast) {
                return visit(this, ast.left) || visit(this, ast.right);
              },
              visitChain: function visitChain(ast) {
                return false;
              },
              visitConditional: function visitConditional(ast) {
                return visit(this, ast.condition) || visit(this, ast.trueExp) || visit(this, ast.falseExp);
              },
              visitFunctionCall: function visitFunctionCall(ast) {
                return true;
              },
              visitImplicitReceiver: function visitImplicitReceiver(ast) {
                return false;
              },
              visitThisReceiver: function visitThisReceiver(ast) {
                return false;
              },
              visitInterpolation: function visitInterpolation(ast) {
                return visitSome(this, ast.expressions);
              },
              visitKeyedRead: function visitKeyedRead(ast) {
                return false;
              },
              visitKeyedWrite: function visitKeyedWrite(ast) {
                return false;
              },
              visitLiteralArray: function visitLiteralArray(ast) {
                return true;
              },
              visitLiteralMap: function visitLiteralMap(ast) {
                return true;
              },
              visitLiteralPrimitive: function visitLiteralPrimitive(ast) {
                return false;
              },
              visitMethodCall: function visitMethodCall(ast) {
                return true;
              },
              visitPipe: function visitPipe(ast) {
                return true;
              },
              visitPrefixNot: function visitPrefixNot(ast) {
                return visit(this, ast.expression);
              },
              visitNonNullAssert: function visitNonNullAssert(ast) {
                return visit(this, ast.expression);
              },
              visitPropertyRead: function visitPropertyRead(ast) {
                return false;
              },
              visitPropertyWrite: function visitPropertyWrite(ast) {
                return false;
              },
              visitQuote: function visitQuote(ast) {
                return false;
              },
              visitSafeMethodCall: function visitSafeMethodCall(ast) {
                return true;
              },
              visitSafePropertyRead: function visitSafePropertyRead(ast) {
                return false;
              }
            });
          }
        }, {
          key: "allocateTemporary",
          value: function allocateTemporary() {
            var tempNumber = this._currentTemporary++;
            this.temporaryCount = Math.max(this._currentTemporary, this.temporaryCount);
            return new ReadVarExpr(temporaryName(this.bindingId, tempNumber));
          }
        }, {
          key: "releaseTemporary",
          value: function releaseTemporary(temporary) {
            this._currentTemporary--;

            if (temporary.name != temporaryName(this.bindingId, this._currentTemporary)) {
              throw new Error("Temporary ".concat(temporary.name, " released out of order"));
            }
          }
          /**
           * Creates an absolute `ParseSourceSpan` from the relative `ParseSpan`.
           *
           * `ParseSpan` objects are relative to the start of the expression.
           * This method converts these to full `ParseSourceSpan` objects that
           * show where the span is within the overall source file.
           *
           * @param span the relative span to convert.
           * @returns a `ParseSourceSpan` for the given span or null if no
           * `baseSourceSpan` was provided to this class.
           */

        }, {
          key: "convertSourceSpan",
          value: function convertSourceSpan(span) {
            if (this.baseSourceSpan) {
              var _start = this.baseSourceSpan.start.moveBy(span.start);

              var end = this.baseSourceSpan.start.moveBy(span.end);
              var fullStart = this.baseSourceSpan.fullStart.moveBy(span.start);
              return new ParseSourceSpan(_start, end, fullStart);
            } else {
              return null;
            }
          }
          /** Adds the name of an AST to the list of implicit receiver accesses. */

        }, {
          key: "addImplicitReceiverAccess",
          value: function addImplicitReceiverAccess(name) {
            if (this.implicitReceiverAccesses) {
              this.implicitReceiverAccesses.add(name);
            }
          }
        }]);

        return _AstToIrVisitor;
      }();

      function flattenStatements(arg, output) {
        if (Array.isArray(arg)) {
          arg.forEach(function (entry) {
            return flattenStatements(entry, output);
          });
        } else {
          output.push(arg);
        }
      }

      var DefaultLocalResolver = /*#__PURE__*/function () {
        function DefaultLocalResolver(globals) {
          _classCallCheck2(this, DefaultLocalResolver);

          this.globals = globals;
        }

        _createClass2(DefaultLocalResolver, [{
          key: "notifyImplicitReceiverUse",
          value: function notifyImplicitReceiverUse() {}
        }, {
          key: "getLocal",
          value: function getLocal(name) {
            if (name === EventHandlerVars.event.name) {
              return EventHandlerVars.event;
            }

            return null;
          }
        }]);

        return DefaultLocalResolver;
      }();

      function createCurrValueExpr(bindingId) {
        return variable("currVal_".concat(bindingId)); // fix syntax highlighting: `
      }

      function createPreventDefaultVar(bindingId) {
        return variable("pd_".concat(bindingId));
      }

      function convertStmtIntoExpression(stmt) {
        if (stmt instanceof ExpressionStatement) {
          return stmt.expr;
        } else if (stmt instanceof ReturnStatement) {
          return stmt.value;
        }

        return null;
      }

      var BuiltinFunctionCall = /*#__PURE__*/function (_FunctionCall) {
        _inherits2(BuiltinFunctionCall, _FunctionCall);

        var _super89 = _createSuper2(BuiltinFunctionCall);

        function BuiltinFunctionCall(span, sourceSpan, args, converter) {
          var _this163;

          _classCallCheck2(this, BuiltinFunctionCall);

          _this163 = _super89.call(this, span, sourceSpan, null, args);
          _this163.args = args;
          _this163.converter = converter;
          return _this163;
        }

        return BuiltinFunctionCall;
      }(FunctionCall);
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * This file is a port of shadowCSS from webcomponents.js to TypeScript.
       *
       * Please make sure to keep to edits in sync with the source file.
       *
       * Source:
       * https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js
       *
       * The original file level comment is reproduced below
       */

      /*
        This is a limited shim for ShadowDOM css styling.
        https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#styles
      
        The intention here is to support only the styling features which can be
        relatively simply implemented. The goal is to allow users to avoid the
        most obvious pitfalls and do so without compromising performance significantly.
        For ShadowDOM styling that's not covered here, a set of best practices
        can be provided that should allow users to accomplish more complex styling.
      
        The following is a list of specific ShadowDOM styling features and a brief
        discussion of the approach used to shim.
      
        Shimmed features:
      
        * :host, :host-context: ShadowDOM allows styling of the shadowRoot's host
        element using the :host rule. To shim this feature, the :host styles are
        reformatted and prefixed with a given scope name and promoted to a
        document level stylesheet.
        For example, given a scope name of .foo, a rule like this:
      
          :host {
              background: red;
            }
          }
      
        becomes:
      
          .foo {
            background: red;
          }
      
        * encapsulation: Styles defined within ShadowDOM, apply only to
        dom inside the ShadowDOM. Polymer uses one of two techniques to implement
        this feature.
      
        By default, rules are prefixed with the host element tag name
        as a descendant selector. This ensures styling does not leak out of the 'top'
        of the element's ShadowDOM. For example,
      
        div {
            font-weight: bold;
          }
      
        becomes:
      
        x-foo div {
            font-weight: bold;
          }
      
        becomes:
      
      
        Alternatively, if WebComponents.ShadowCSS.strictStyling is set to true then
        selectors are scoped by adding an attribute selector suffix to each
        simple selector that contains the host element tag name. Each element
        in the element's ShadowDOM template is also given the scope attribute.
        Thus, these rules match only elements that have the scope attribute.
        For example, given a scope name of x-foo, a rule like this:
      
          div {
            font-weight: bold;
          }
      
        becomes:
      
          div[x-foo] {
            font-weight: bold;
          }
      
        Note that elements that are dynamically added to a scope must have the scope
        selector added to them manually.
      
        * upper/lower bound encapsulation: Styles which are defined outside a
        shadowRoot should not cross the ShadowDOM boundary and should not apply
        inside a shadowRoot.
      
        This styling behavior is not emulated. Some possible ways to do this that
        were rejected due to complexity and/or performance concerns include: (1) reset
        every possible property for every possible selector for a given scope name;
        (2) re-implement css in javascript.
      
        As an alternative, users should make sure to use selectors
        specific to the scope in which they are working.
      
        * ::distributed: This behavior is not emulated. It's often not necessary
        to style the contents of a specific insertion point and instead, descendants
        of the host element can be styled selectively. Users can also create an
        extra node around an insertion point and style that node's contents
        via descendent selectors. For example, with a shadowRoot like this:
      
          <style>
            ::content(div) {
              background: red;
            }
          </style>
          <content></content>
      
        could become:
      
          <style>
            / *@polyfill .content-container div * /
            ::content(div) {
              background: red;
            }
          </style>
          <div class="content-container">
            <content></content>
          </div>
      
        Note the use of @polyfill in the comment above a ShadowDOM specific style
        declaration. This is a directive to the styling shim to use the selector
        in comments in lieu of the next selector when running under polyfill.
      */


      var ShadowCss = /*#__PURE__*/function () {
        function ShadowCss() {
          _classCallCheck2(this, ShadowCss);

          this.strictStyling = true;
        }
        /*
         * Shim some cssText with the given selector. Returns cssText that can
         * be included in the document via WebComponents.ShadowCSS.addCssToDocument(css).
         *
         * When strictStyling is true:
         * - selector is the attribute added to all elements inside the host,
         * - hostSelector is the attribute added to the host itself.
         */


        _createClass2(ShadowCss, [{
          key: "shimCssText",
          value: function shimCssText(cssText, selector) {
            var hostSelector = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
            var commentsWithHash = extractCommentsWithHash(cssText);
            cssText = stripComments(cssText);
            cssText = this._insertDirectives(cssText);

            var scopedCssText = this._scopeCssText(cssText, selector, hostSelector);

            return [scopedCssText].concat(_toConsumableArray(commentsWithHash)).join('\n');
          }
        }, {
          key: "_insertDirectives",
          value: function _insertDirectives(cssText) {
            cssText = this._insertPolyfillDirectivesInCssText(cssText);
            return this._insertPolyfillRulesInCssText(cssText);
          }
          /*
           * Process styles to convert native ShadowDOM rules that will trip
           * up the css parser; we rely on decorating the stylesheet with inert rules.
           *
           * For example, we convert this rule:
           *
           * polyfill-next-selector { content: ':host menu-item'; }
           * ::content menu-item {
           *
           * to this:
           *
           * scopeName menu-item {
           *
           **/

        }, {
          key: "_insertPolyfillDirectivesInCssText",
          value: function _insertPolyfillDirectivesInCssText(cssText) {
            // Difference with webcomponents.js: does not handle comments
            return cssText.replace(_cssContentNextSelectorRe, function () {
              return (arguments.length <= 2 ? undefined : arguments[2]) + '{';
            });
          }
          /*
           * Process styles to add rules which will only apply under the polyfill
           *
           * For example, we convert this rule:
           *
           * polyfill-rule {
           *   content: ':host menu-item';
           * ...
           * }
           *
           * to this:
           *
           * scopeName menu-item {...}
           *
           **/

        }, {
          key: "_insertPolyfillRulesInCssText",
          value: function _insertPolyfillRulesInCssText(cssText) {
            // Difference with webcomponents.js: does not handle comments
            return cssText.replace(_cssContentRuleRe, function () {
              for (var _len8 = arguments.length, m = new Array(_len8), _key9 = 0; _key9 < _len8; _key9++) {
                m[_key9] = arguments[_key9];
              }

              var rule = m[0].replace(m[1], '').replace(m[2], '');
              return m[4] + rule;
            });
          }
          /* Ensure styles are scoped. Pseudo-scoping takes a rule like:
           *
           *  .foo {... }
           *
           *  and converts this to
           *
           *  scopeName .foo { ... }
           */

        }, {
          key: "_scopeCssText",
          value: function _scopeCssText(cssText, scopeSelector, hostSelector) {
            var unscopedRules = this._extractUnscopedRulesFromCssText(cssText); // replace :host and :host-context -shadowcsshost and -shadowcsshost respectively


            cssText = this._insertPolyfillHostInCssText(cssText);
            cssText = this._convertColonHost(cssText);
            cssText = this._convertColonHostContext(cssText);
            cssText = this._convertShadowDOMSelectors(cssText);

            if (scopeSelector) {
              cssText = this._scopeSelectors(cssText, scopeSelector, hostSelector);
            }

            cssText = cssText + '\n' + unscopedRules;
            return cssText.trim();
          }
          /*
           * Process styles to add rules which will only apply under the polyfill
           * and do not process via CSSOM. (CSSOM is destructive to rules on rare
           * occasions, e.g. -webkit-calc on Safari.)
           * For example, we convert this rule:
           *
           * @polyfill-unscoped-rule {
           *   content: 'menu-item';
           * ... }
           *
           * to this:
           *
           * menu-item {...}
           *
           **/

        }, {
          key: "_extractUnscopedRulesFromCssText",
          value: function _extractUnscopedRulesFromCssText(cssText) {
            // Difference with webcomponents.js: does not handle comments
            var r = '';
            var m;
            _cssContentUnscopedRuleRe.lastIndex = 0;

            while ((m = _cssContentUnscopedRuleRe.exec(cssText)) !== null) {
              var rule = m[0].replace(m[2], '').replace(m[1], m[4]);
              r += rule + '\n\n';
            }

            return r;
          }
          /*
           * convert a rule like :host(.foo) > .bar { }
           *
           * to
           *
           * .foo<scopeName> > .bar
           */

        }, {
          key: "_convertColonHost",
          value: function _convertColonHost(cssText) {
            return this._convertColonRule(cssText, _cssColonHostRe, this._colonHostPartReplacer);
          }
          /*
           * convert a rule like :host-context(.foo) > .bar { }
           *
           * to
           *
           * .foo<scopeName> > .bar, .foo scopeName > .bar { }
           *
           * and
           *
           * :host-context(.foo:host) .bar { ... }
           *
           * to
           *
           * .foo<scopeName> .bar { ... }
           */

        }, {
          key: "_convertColonHostContext",
          value: function _convertColonHostContext(cssText) {
            return this._convertColonRule(cssText, _cssColonHostContextRe, this._colonHostContextPartReplacer);
          }
        }, {
          key: "_convertColonRule",
          value: function _convertColonRule(cssText, regExp, partReplacer) {
            // m[1] = :host(-context), m[2] = contents of (), m[3] rest of rule
            return cssText.replace(regExp, function () {
              for (var _len9 = arguments.length, m = new Array(_len9), _key10 = 0; _key10 < _len9; _key10++) {
                m[_key10] = arguments[_key10];
              }

              if (m[2]) {
                var parts = m[2].split(',');
                var r = [];

                for (var i = 0; i < parts.length; i++) {
                  var p = parts[i].trim();
                  if (!p) break;
                  r.push(partReplacer(_polyfillHostNoCombinator, p, m[3]));
                }

                return r.join(',');
              } else {
                return _polyfillHostNoCombinator + m[3];
              }
            });
          }
        }, {
          key: "_colonHostContextPartReplacer",
          value: function _colonHostContextPartReplacer(host, part, suffix) {
            if (part.indexOf(_polyfillHost) > -1) {
              return this._colonHostPartReplacer(host, part, suffix);
            } else {
              return host + part + suffix + ', ' + part + ' ' + host + suffix;
            }
          }
        }, {
          key: "_colonHostPartReplacer",
          value: function _colonHostPartReplacer(host, part, suffix) {
            return host + part.replace(_polyfillHost, '') + suffix;
          }
          /*
           * Convert combinators like ::shadow and pseudo-elements like ::content
           * by replacing with space.
           */

        }, {
          key: "_convertShadowDOMSelectors",
          value: function _convertShadowDOMSelectors(cssText) {
            return _shadowDOMSelectorsRe.reduce(function (result, pattern) {
              return result.replace(pattern, ' ');
            }, cssText);
          } // change a selector like 'div' to 'name div'

        }, {
          key: "_scopeSelectors",
          value: function _scopeSelectors(cssText, scopeSelector, hostSelector) {
            var _this164 = this;

            return processRules(cssText, function (rule) {
              var selector = rule.selector;
              var content = rule.content;

              if (rule.selector[0] != '@') {
                selector = _this164._scopeSelector(rule.selector, scopeSelector, hostSelector, _this164.strictStyling);
              } else if (rule.selector.startsWith('@media') || rule.selector.startsWith('@supports') || rule.selector.startsWith('@page') || rule.selector.startsWith('@document')) {
                content = _this164._scopeSelectors(rule.content, scopeSelector, hostSelector);
              }

              return new CssRule(selector, content);
            });
          }
        }, {
          key: "_scopeSelector",
          value: function _scopeSelector(selector, scopeSelector, hostSelector, strict) {
            var _this165 = this;

            return selector.split(',').map(function (part) {
              return part.trim().split(_shadowDeepSelectors);
            }).map(function (deepParts) {
              var _deepParts = _toArray(deepParts),
                  shallowPart = _deepParts[0],
                  otherParts = _deepParts.slice(1);

              var applyScope = function applyScope(shallowPart) {
                if (_this165._selectorNeedsScoping(shallowPart, scopeSelector)) {
                  return strict ? _this165._applyStrictSelectorScope(shallowPart, scopeSelector, hostSelector) : _this165._applySelectorScope(shallowPart, scopeSelector, hostSelector);
                } else {
                  return shallowPart;
                }
              };

              return [applyScope(shallowPart)].concat(_toConsumableArray(otherParts)).join(' ');
            }).join(', ');
          }
        }, {
          key: "_selectorNeedsScoping",
          value: function _selectorNeedsScoping(selector, scopeSelector) {
            var re = this._makeScopeMatcher(scopeSelector);

            return !re.test(selector);
          }
        }, {
          key: "_makeScopeMatcher",
          value: function _makeScopeMatcher(scopeSelector) {
            var lre = /\[/g;
            var rre = /\]/g;
            scopeSelector = scopeSelector.replace(lre, '\\[').replace(rre, '\\]');
            return new RegExp('^(' + scopeSelector + ')' + _selectorReSuffix, 'm');
          }
        }, {
          key: "_applySelectorScope",
          value: function _applySelectorScope(selector, scopeSelector, hostSelector) {
            // Difference from webcomponents.js: scopeSelector could not be an array
            return this._applySimpleSelectorScope(selector, scopeSelector, hostSelector);
          } // scope via name and [is=name]

        }, {
          key: "_applySimpleSelectorScope",
          value: function _applySimpleSelectorScope(selector, scopeSelector, hostSelector) {
            // In Android browser, the lastIndex is not reset when the regex is used in String.replace()
            _polyfillHostRe.lastIndex = 0;

            if (_polyfillHostRe.test(selector)) {
              var replaceBy = this.strictStyling ? "[".concat(hostSelector, "]") : scopeSelector;
              return selector.replace(_polyfillHostNoCombinatorRe, function (hnc, selector) {
                return selector.replace(/([^:]*)(:*)(.*)/, function (_, before, colon, after) {
                  return before + replaceBy + colon + after;
                });
              }).replace(_polyfillHostRe, replaceBy + ' ');
            }

            return scopeSelector + ' ' + selector;
          } // return a selector with [name] suffix on each simple selector
          // e.g. .foo.bar > .zot becomes .foo[name].bar[name] > .zot[name]  /** @internal */

        }, {
          key: "_applyStrictSelectorScope",
          value: function _applyStrictSelectorScope(selector, scopeSelector, hostSelector) {
            var _this166 = this;

            var isRe = /\[is=([^\]]*)\]/g;
            scopeSelector = scopeSelector.replace(isRe, function (_) {
              return arguments.length <= 1 ? undefined : arguments[1];
            });
            var attrName = '[' + scopeSelector + ']';

            var _scopeSelectorPart = function _scopeSelectorPart(p) {
              var scopedP = p.trim();

              if (!scopedP) {
                return '';
              }

              if (p.indexOf(_polyfillHostNoCombinator) > -1) {
                scopedP = _this166._applySimpleSelectorScope(p, scopeSelector, hostSelector);
              } else {
                // remove :host since it should be unnecessary
                var t = p.replace(_polyfillHostRe, '');

                if (t.length > 0) {
                  var matches = t.match(/([^:]*)(:*)(.*)/);

                  if (matches) {
                    scopedP = matches[1] + attrName + matches[2] + matches[3];
                  }
                }
              }

              return scopedP;
            };

            var safeContent = new SafeSelector(selector);
            selector = safeContent.content();
            var scopedSelector = '';
            var startIndex = 0;
            var res;
            var sep = /( |>|\+|~(?!=))\s*/g; // If a selector appears before :host it should not be shimmed as it
            // matches on ancestor elements and not on elements in the host's shadow
            // `:host-context(div)` is transformed to
            // `-shadowcsshost-no-combinatordiv, div -shadowcsshost-no-combinator`
            // the `div` is not part of the component in the 2nd selectors and should not be scoped.
            // Historically `component-tag:host` was matching the component so we also want to preserve
            // this behavior to avoid breaking legacy apps (it should not match).
            // The behavior should be:
            // - `tag:host` -> `tag[h]` (this is to avoid breaking legacy apps, should not match anything)
            // - `tag :host` -> `tag [h]` (`tag` is not scoped because it's considered part of a
            //   `:host-context(tag)`)

            var hasHost = selector.indexOf(_polyfillHostNoCombinator) > -1; // Only scope parts after the first `-shadowcsshost-no-combinator` when it is present

            var shouldScope = !hasHost;

            while ((res = sep.exec(selector)) !== null) {
              var separator = res[1];

              var _part = selector.slice(startIndex, res.index).trim();

              shouldScope = shouldScope || _part.indexOf(_polyfillHostNoCombinator) > -1;
              var scopedPart = shouldScope ? _scopeSelectorPart(_part) : _part;
              scopedSelector += "".concat(scopedPart, " ").concat(separator, " ");
              startIndex = sep.lastIndex;
            }

            var part = selector.substring(startIndex);
            shouldScope = shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1;
            scopedSelector += shouldScope ? _scopeSelectorPart(part) : part; // replace the placeholders with their original values

            return safeContent.restore(scopedSelector);
          }
        }, {
          key: "_insertPolyfillHostInCssText",
          value: function _insertPolyfillHostInCssText(selector) {
            return selector.replace(_colonHostContextRe, _polyfillHostContext).replace(_colonHostRe, _polyfillHost);
          }
        }]);

        return ShadowCss;
      }();

      var SafeSelector = /*#__PURE__*/function () {
        function SafeSelector(selector) {
          var _this167 = this;

          _classCallCheck2(this, SafeSelector);

          this.placeholders = [];
          this.index = 0; // Replaces attribute selectors with placeholders.
          // The WS in [attr="va lue"] would otherwise be interpreted as a selector separator.

          selector = selector.replace(/(\[[^\]]*\])/g, function (_, keep) {
            var replaceBy = "__ph-".concat(_this167.index, "__");

            _this167.placeholders.push(keep);

            _this167.index++;
            return replaceBy;
          }); // Replaces the expression in `:nth-child(2n + 1)` with a placeholder.
          // WS and "+" would otherwise be interpreted as selector separators.

          this._content = selector.replace(/(:nth-[-\w]+)(\([^)]+\))/g, function (_, pseudo, exp) {
            var replaceBy = "__ph-".concat(_this167.index, "__");

            _this167.placeholders.push(exp);

            _this167.index++;
            return pseudo + replaceBy;
          });
        }

        _createClass2(SafeSelector, [{
          key: "restore",
          value: function restore(content) {
            var _this168 = this;

            return content.replace(/__ph-(\d+)__/g, function (ph, index) {
              return _this168.placeholders[+index];
            });
          }
        }, {
          key: "content",
          value: function content() {
            return this._content;
          }
        }]);

        return SafeSelector;
      }();

      var _cssContentNextSelectorRe = /polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim;
      var _cssContentRuleRe = /(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim;
      var _cssContentUnscopedRuleRe = /(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim;
      var _polyfillHost = '-shadowcsshost'; // note: :host-context pre-processed to -shadowcsshostcontext.

      var _polyfillHostContext = '-shadowcsscontext';

      var _parenSuffix = ')(?:\\((' + '(?:\\([^)(]*\\)|[^)(]*)+?' + ')\\))?([^,{]*)';

      var _cssColonHostRe = new RegExp('(' + _polyfillHost + _parenSuffix, 'gim');

      var _cssColonHostContextRe = new RegExp('(' + _polyfillHostContext + _parenSuffix, 'gim');

      var _polyfillHostNoCombinator = _polyfillHost + '-no-combinator';

      var _polyfillHostNoCombinatorRe = /-shadowcsshost-no-combinator([^\s]*)/;
      var _shadowDOMSelectorsRe = [/::shadow/g, /::content/g, // Deprecated selectors
      /\/shadow-deep\//g, /\/shadow\//g]; // The deep combinator is deprecated in the CSS spec
      // Support for `>>>`, `deep`, `::ng-deep` is then also deprecated and will be removed in the future.
      // see https://github.com/angular/angular/pull/17677

      var _shadowDeepSelectors = /(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g;
      var _selectorReSuffix = '([>\\s~+\[.,{:][\\s\\S]*)?$';
      var _polyfillHostRe = /-shadowcsshost/gim;
      var _colonHostRe = /:host/gim;
      var _colonHostContextRe = /:host-context/gim;
      var _commentRe = /\/\*\s*[\s\S]*?\*\//g;

      function stripComments(input) {
        return input.replace(_commentRe, '');
      }

      var _commentWithHashRe = /\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g;

      function extractCommentsWithHash(input) {
        return input.match(_commentWithHashRe) || [];
      }

      var BLOCK_PLACEHOLDER = '%BLOCK%';
      var QUOTE_PLACEHOLDER = '%QUOTED%';
      var _ruleRe = /(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g;
      var _quotedRe = /%QUOTED%/g;
      var CONTENT_PAIRS = new Map([['{', '}']]);
      var QUOTE_PAIRS = new Map([["\"", "\""], ["'", "'"]]);

      var CssRule = function CssRule(selector, content) {
        _classCallCheck2(this, CssRule);

        this.selector = selector;
        this.content = content;
      };

      function processRules(input, ruleCallback) {
        var inputWithEscapedQuotes = escapeBlocks(input, QUOTE_PAIRS, QUOTE_PLACEHOLDER);
        var inputWithEscapedBlocks = escapeBlocks(inputWithEscapedQuotes.escapedString, CONTENT_PAIRS, BLOCK_PLACEHOLDER);
        var nextBlockIndex = 0;
        var nextQuoteIndex = 0;
        return inputWithEscapedBlocks.escapedString.replace(_ruleRe, function () {
          var selector = arguments.length <= 2 ? undefined : arguments[2];
          var content = '';
          var suffix = arguments.length <= 4 ? undefined : arguments[4];
          var contentPrefix = '';

          if (suffix && suffix.startsWith('{' + BLOCK_PLACEHOLDER)) {
            content = inputWithEscapedBlocks.blocks[nextBlockIndex++];
            suffix = suffix.substring(BLOCK_PLACEHOLDER.length + 1);
            contentPrefix = '{';
          }

          var rule = ruleCallback(new CssRule(selector, content));
          return "".concat(arguments.length <= 1 ? undefined : arguments[1]).concat(rule.selector).concat(arguments.length <= 3 ? undefined : arguments[3]).concat(contentPrefix).concat(rule.content).concat(suffix);
        }).replace(_quotedRe, function () {
          return inputWithEscapedQuotes.blocks[nextQuoteIndex++];
        });
      }

      var StringWithEscapedBlocks = function StringWithEscapedBlocks(escapedString, blocks) {
        _classCallCheck2(this, StringWithEscapedBlocks);

        this.escapedString = escapedString;
        this.blocks = blocks;
      };

      function escapeBlocks(input, charPairs, placeholder) {
        var resultParts = [];
        var escapedBlocks = [];
        var openCharCount = 0;
        var nonBlockStartIndex = 0;
        var blockStartIndex = -1;
        var openChar;
        var closeChar;

        for (var i = 0; i < input.length; i++) {
          var _char = input[i];

          if (_char === '\\') {
            i++;
          } else if (_char === closeChar) {
            openCharCount--;

            if (openCharCount === 0) {
              escapedBlocks.push(input.substring(blockStartIndex, i));
              resultParts.push(placeholder);
              nonBlockStartIndex = i;
              blockStartIndex = -1;
              openChar = closeChar = undefined;
            }
          } else if (_char === openChar) {
            openCharCount++;
          } else if (openCharCount === 0 && charPairs.has(_char)) {
            openChar = _char;
            closeChar = charPairs.get(_char);
            openCharCount = 1;
            blockStartIndex = i + 1;
            resultParts.push(input.substring(nonBlockStartIndex, blockStartIndex));
          }
        }

        if (blockStartIndex !== -1) {
          escapedBlocks.push(input.substring(blockStartIndex));
          resultParts.push(placeholder);
        } else {
          resultParts.push(input.substring(nonBlockStartIndex));
        }

        return new StringWithEscapedBlocks(resultParts.join(''), escapedBlocks);
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var COMPONENT_VARIABLE = '%COMP%';
      var HOST_ATTR = "_nghost-".concat(COMPONENT_VARIABLE);
      var CONTENT_ATTR = "_ngcontent-".concat(COMPONENT_VARIABLE);

      var StylesCompileDependency = function StylesCompileDependency(name, moduleUrl, setValue) {
        _classCallCheck2(this, StylesCompileDependency);

        this.name = name;
        this.moduleUrl = moduleUrl;
        this.setValue = setValue;
      };

      var CompiledStylesheet = function CompiledStylesheet(outputCtx, stylesVar, dependencies, isShimmed, meta) {
        _classCallCheck2(this, CompiledStylesheet);

        this.outputCtx = outputCtx;
        this.stylesVar = stylesVar;
        this.dependencies = dependencies;
        this.isShimmed = isShimmed;
        this.meta = meta;
      };

      var StyleCompiler = /*#__PURE__*/function () {
        function StyleCompiler(_urlResolver) {
          _classCallCheck2(this, StyleCompiler);

          this._urlResolver = _urlResolver;
          this._shadowCss = new ShadowCss();
        }

        _createClass2(StyleCompiler, [{
          key: "compileComponent",
          value: function compileComponent(outputCtx, comp) {
            var template = comp.template;
            return this._compileStyles(outputCtx, comp, new CompileStylesheetMetadata({
              styles: template.styles,
              styleUrls: template.styleUrls,
              moduleUrl: identifierModuleUrl(comp.type)
            }), this.needsStyleShim(comp), true);
          }
        }, {
          key: "compileStyles",
          value: function compileStyles(outputCtx, comp, stylesheet) {
            var shim = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : this.needsStyleShim(comp);
            return this._compileStyles(outputCtx, comp, stylesheet, shim, false);
          }
        }, {
          key: "needsStyleShim",
          value: function needsStyleShim(comp) {
            return comp.template.encapsulation === ViewEncapsulation.Emulated;
          }
        }, {
          key: "_compileStyles",
          value: function _compileStyles(outputCtx, comp, stylesheet, shim, isComponentStylesheet) {
            var _this169 = this;

            var styleExpressions = stylesheet.styles.map(function (plainStyle) {
              return literal(_this169._shimIfNeeded(plainStyle, shim));
            });
            var dependencies = [];
            stylesheet.styleUrls.forEach(function (styleUrl) {
              var exprIndex = styleExpressions.length; // Note: This placeholder will be filled later.

              styleExpressions.push(null);
              dependencies.push(new StylesCompileDependency(getStylesVarName(null), styleUrl, function (value) {
                return styleExpressions[exprIndex] = outputCtx.importExpr(value);
              }));
            }); // styles variable contains plain strings and arrays of other styles arrays (recursive),
            // so we set its type to dynamic.

            var stylesVar = getStylesVarName(isComponentStylesheet ? comp : null);
            var stmt = variable(stylesVar).set(literalArr(styleExpressions, new ArrayType(DYNAMIC_TYPE, [TypeModifier.Const]))).toDeclStmt(null, isComponentStylesheet ? [StmtModifier.Final] : [StmtModifier.Final, StmtModifier.Exported]);
            outputCtx.statements.push(stmt);
            return new CompiledStylesheet(outputCtx, stylesVar, dependencies, shim, stylesheet);
          }
        }, {
          key: "_shimIfNeeded",
          value: function _shimIfNeeded(style, shim) {
            return shim ? this._shadowCss.shimCssText(style, CONTENT_ATTR, HOST_ATTR) : style;
          }
        }]);

        return StyleCompiler;
      }();

      function getStylesVarName(component) {
        var result = "styles";

        if (component) {
          result += "_".concat(identifierName(component.type));
        }

        return result;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * A path is an ordered set of elements. Typically a path is to  a
       * particular offset in a source file. The head of the list is the top
       * most node. The tail is the node that contains the offset directly.
       *
       * For example, the expression `a + b + c` might have an ast that looks
       * like:
       *     +
       *    / \
       *   a   +
       *      / \
       *     b   c
       *
       * The path to the node at offset 9 would be `['+' at 1-10, '+' at 7-10,
       * 'c' at 9-10]` and the path the node at offset 1 would be
       * `['+' at 1-10, 'a' at 1-2]`.
       */


      var AstPath = /*#__PURE__*/function () {
        function AstPath(path) {
          var position = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : -1;

          _classCallCheck2(this, AstPath);

          this.path = path;
          this.position = position;
        }

        _createClass2(AstPath, [{
          key: "empty",
          get: function get() {
            return !this.path || !this.path.length;
          }
        }, {
          key: "head",
          get: function get() {
            return this.path[0];
          }
        }, {
          key: "tail",
          get: function get() {
            return this.path[this.path.length - 1];
          }
        }, {
          key: "parentOf",
          value: function parentOf(node) {
            return node && this.path[this.path.indexOf(node) - 1];
          }
        }, {
          key: "childOf",
          value: function childOf(node) {
            return this.path[this.path.indexOf(node) + 1];
          }
        }, {
          key: "first",
          value: function first(ctor) {
            for (var i = this.path.length - 1; i >= 0; i--) {
              var item = this.path[i];
              if (item instanceof ctor) return item;
            }
          }
        }, {
          key: "push",
          value: function push(node) {
            this.path.push(node);
          }
        }, {
          key: "pop",
          value: function pop() {
            return this.path.pop();
          }
        }]);

        return AstPath;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var NodeWithI18n = function NodeWithI18n(sourceSpan, i18n) {
        _classCallCheck2(this, NodeWithI18n);

        this.sourceSpan = sourceSpan;
        this.i18n = i18n;
      };

      var Text$3 = /*#__PURE__*/function (_NodeWithI18n) {
        _inherits2(Text$3, _NodeWithI18n);

        var _super90 = _createSuper2(Text$3);

        function Text$3(value, sourceSpan, i18n) {
          var _this170;

          _classCallCheck2(this, Text$3);

          _this170 = _super90.call(this, sourceSpan, i18n);
          _this170.value = value;
          return _this170;
        }

        _createClass2(Text$3, [{
          key: "visit",
          value: function visit(visitor, context) {
            return visitor.visitText(this, context);
          }
        }]);

        return Text$3;
      }(NodeWithI18n);

      var Expansion = /*#__PURE__*/function (_NodeWithI18n2) {
        _inherits2(Expansion, _NodeWithI18n2);

        var _super91 = _createSuper2(Expansion);

        function Expansion(switchValue, type, cases, sourceSpan, switchValueSourceSpan, i18n) {
          var _this171;

          _classCallCheck2(this, Expansion);

          _this171 = _super91.call(this, sourceSpan, i18n);
          _this171.switchValue = switchValue;
          _this171.type = type;
          _this171.cases = cases;
          _this171.switchValueSourceSpan = switchValueSourceSpan;
          return _this171;
        }

        _createClass2(Expansion, [{
          key: "visit",
          value: function visit(visitor, context) {
            return visitor.visitExpansion(this, context);
          }
        }]);

        return Expansion;
      }(NodeWithI18n);

      var ExpansionCase = /*#__PURE__*/function () {
        function ExpansionCase(value, expression, sourceSpan, valueSourceSpan, expSourceSpan) {
          _classCallCheck2(this, ExpansionCase);

          this.value = value;
          this.expression = expression;
          this.sourceSpan = sourceSpan;
          this.valueSourceSpan = valueSourceSpan;
          this.expSourceSpan = expSourceSpan;
        }

        _createClass2(ExpansionCase, [{
          key: "visit",
          value: function visit(visitor, context) {
            return visitor.visitExpansionCase(this, context);
          }
        }]);

        return ExpansionCase;
      }();

      var Attribute = /*#__PURE__*/function (_NodeWithI18n3) {
        _inherits2(Attribute, _NodeWithI18n3);

        var _super92 = _createSuper2(Attribute);

        function Attribute(name, value, sourceSpan, valueSpan, i18n) {
          var _this172;

          _classCallCheck2(this, Attribute);

          _this172 = _super92.call(this, sourceSpan, i18n);
          _this172.name = name;
          _this172.value = value;
          _this172.valueSpan = valueSpan;
          return _this172;
        }

        _createClass2(Attribute, [{
          key: "visit",
          value: function visit(visitor, context) {
            return visitor.visitAttribute(this, context);
          }
        }]);

        return Attribute;
      }(NodeWithI18n);

      var Element$1 = /*#__PURE__*/function (_NodeWithI18n4) {
        _inherits2(Element$1, _NodeWithI18n4);

        var _super93 = _createSuper2(Element$1);

        function Element$1(name, attrs, children, sourceSpan, startSourceSpan) {
          var _this173;

          var endSourceSpan = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : null;
          var i18n = arguments.length > 6 ? arguments[6] : undefined;

          _classCallCheck2(this, Element$1);

          _this173 = _super93.call(this, sourceSpan, i18n);
          _this173.name = name;
          _this173.attrs = attrs;
          _this173.children = children;
          _this173.startSourceSpan = startSourceSpan;
          _this173.endSourceSpan = endSourceSpan;
          return _this173;
        }

        _createClass2(Element$1, [{
          key: "visit",
          value: function visit(visitor, context) {
            return visitor.visitElement(this, context);
          }
        }]);

        return Element$1;
      }(NodeWithI18n);

      var Comment = /*#__PURE__*/function () {
        function Comment(value, sourceSpan) {
          _classCallCheck2(this, Comment);

          this.value = value;
          this.sourceSpan = sourceSpan;
        }

        _createClass2(Comment, [{
          key: "visit",
          value: function visit(visitor, context) {
            return visitor.visitComment(this, context);
          }
        }]);

        return Comment;
      }();

      function visitAll$1(visitor, nodes) {
        var context = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
        var result = [];
        var visit = visitor.visit ? function (ast) {
          return visitor.visit(ast, context) || ast.visit(visitor, context);
        } : function (ast) {
          return ast.visit(visitor, context);
        };
        nodes.forEach(function (ast) {
          var astResult = visit(ast);

          if (astResult) {
            result.push(astResult);
          }
        });
        return result;
      }

      var RecursiveVisitor$1 = /*#__PURE__*/function () {
        function RecursiveVisitor$1() {
          _classCallCheck2(this, RecursiveVisitor$1);
        }

        _createClass2(RecursiveVisitor$1, [{
          key: "visitElement",
          value: function visitElement(ast, context) {
            this.visitChildren(context, function (visit) {
              visit(ast.attrs);
              visit(ast.children);
            });
          }
        }, {
          key: "visitAttribute",
          value: function visitAttribute(ast, context) {}
        }, {
          key: "visitText",
          value: function visitText(ast, context) {}
        }, {
          key: "visitComment",
          value: function visitComment(ast, context) {}
        }, {
          key: "visitExpansion",
          value: function visitExpansion(ast, context) {
            return this.visitChildren(context, function (visit) {
              visit(ast.cases);
            });
          }
        }, {
          key: "visitExpansionCase",
          value: function visitExpansionCase(ast, context) {}
        }, {
          key: "visitChildren",
          value: function visitChildren(context, cb) {
            var results = [];
            var t = this;

            function visit(children) {
              if (children) results.push(visitAll$1(t, children, context));
            }

            cb(visit);
            return Array.prototype.concat.apply([], results);
          }
        }]);

        return RecursiveVisitor$1;
      }();

      function spanOf(ast) {
        var start = ast.sourceSpan.start.offset;
        var end = ast.sourceSpan.end.offset;

        if (ast instanceof Element$1) {
          if (ast.endSourceSpan) {
            end = ast.endSourceSpan.end.offset;
          } else if (ast.children && ast.children.length) {
            end = spanOf(ast.children[ast.children.length - 1]).end;
          }
        }

        return {
          start: start,
          end: end
        };
      }

      function findNode(nodes, position) {
        var path = [];
        var visitor = new ( /*#__PURE__*/function (_RecursiveVisitor$) {
          _inherits2(_class, _RecursiveVisitor$);

          var _super94 = _createSuper2(_class);

          function _class() {
            _classCallCheck2(this, _class);

            return _super94.apply(this, arguments);
          }

          _createClass2(_class, [{
            key: "visit",
            value: function visit(ast, context) {
              var span = spanOf(ast);

              if (span.start <= position && position < span.end) {
                path.push(ast);
              } else {
                // Returning a value here will result in the children being skipped.
                return true;
              }
            }
          }]);

          return _class;
        }(RecursiveVisitor$1))();
        visitAll$1(visitor, nodes);
        return new AstPath(path, position);
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var TokenType;

      (function (TokenType) {
        TokenType[TokenType["TAG_OPEN_START"] = 0] = "TAG_OPEN_START";
        TokenType[TokenType["TAG_OPEN_END"] = 1] = "TAG_OPEN_END";
        TokenType[TokenType["TAG_OPEN_END_VOID"] = 2] = "TAG_OPEN_END_VOID";
        TokenType[TokenType["TAG_CLOSE"] = 3] = "TAG_CLOSE";
        TokenType[TokenType["INCOMPLETE_TAG_OPEN"] = 4] = "INCOMPLETE_TAG_OPEN";
        TokenType[TokenType["TEXT"] = 5] = "TEXT";
        TokenType[TokenType["ESCAPABLE_RAW_TEXT"] = 6] = "ESCAPABLE_RAW_TEXT";
        TokenType[TokenType["RAW_TEXT"] = 7] = "RAW_TEXT";
        TokenType[TokenType["COMMENT_START"] = 8] = "COMMENT_START";
        TokenType[TokenType["COMMENT_END"] = 9] = "COMMENT_END";
        TokenType[TokenType["CDATA_START"] = 10] = "CDATA_START";
        TokenType[TokenType["CDATA_END"] = 11] = "CDATA_END";
        TokenType[TokenType["ATTR_NAME"] = 12] = "ATTR_NAME";
        TokenType[TokenType["ATTR_QUOTE"] = 13] = "ATTR_QUOTE";
        TokenType[TokenType["ATTR_VALUE"] = 14] = "ATTR_VALUE";
        TokenType[TokenType["DOC_TYPE"] = 15] = "DOC_TYPE";
        TokenType[TokenType["EXPANSION_FORM_START"] = 16] = "EXPANSION_FORM_START";
        TokenType[TokenType["EXPANSION_CASE_VALUE"] = 17] = "EXPANSION_CASE_VALUE";
        TokenType[TokenType["EXPANSION_CASE_EXP_START"] = 18] = "EXPANSION_CASE_EXP_START";
        TokenType[TokenType["EXPANSION_CASE_EXP_END"] = 19] = "EXPANSION_CASE_EXP_END";
        TokenType[TokenType["EXPANSION_FORM_END"] = 20] = "EXPANSION_FORM_END";
        TokenType[TokenType["EOF"] = 21] = "EOF";
      })(TokenType || (TokenType = {}));

      var Token = function Token(type, parts, sourceSpan) {
        _classCallCheck2(this, Token);

        this.type = type;
        this.parts = parts;
        this.sourceSpan = sourceSpan;
      };

      var TokenError = /*#__PURE__*/function (_ParseError) {
        _inherits2(TokenError, _ParseError);

        var _super95 = _createSuper2(TokenError);

        function TokenError(errorMsg, tokenType, span) {
          var _this174;

          _classCallCheck2(this, TokenError);

          _this174 = _super95.call(this, span, errorMsg);
          _this174.tokenType = tokenType;
          return _this174;
        }

        return TokenError;
      }(ParseError);

      var TokenizeResult = function TokenizeResult(tokens, errors, nonNormalizedIcuExpressions) {
        _classCallCheck2(this, TokenizeResult);

        this.tokens = tokens;
        this.errors = errors;
        this.nonNormalizedIcuExpressions = nonNormalizedIcuExpressions;
      };

      function tokenize(source, url, getTagDefinition) {
        var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
        var tokenizer = new _Tokenizer(new ParseSourceFile(source, url), getTagDefinition, options);
        tokenizer.tokenize();
        return new TokenizeResult(mergeTextTokens(tokenizer.tokens), tokenizer.errors, tokenizer.nonNormalizedIcuExpressions);
      }

      var _CR_OR_CRLF_REGEXP = /\r\n?/g;

      function _unexpectedCharacterErrorMsg(charCode) {
        var _char2 = charCode === $EOF ? 'EOF' : String.fromCharCode(charCode);

        return "Unexpected character \"".concat(_char2, "\"");
      }

      function _unknownEntityErrorMsg(entitySrc) {
        return "Unknown entity \"".concat(entitySrc, "\" - use the \"&#<decimal>;\" or  \"&#x<hex>;\" syntax");
      }

      function _unparsableEntityErrorMsg(type, entityStr) {
        return "Unable to parse entity \"".concat(entityStr, "\" - ").concat(type, " character reference entities must end with \";\"");
      }

      var CharacterReferenceType;

      (function (CharacterReferenceType) {
        CharacterReferenceType["HEX"] = "hexadecimal";
        CharacterReferenceType["DEC"] = "decimal";
      })(CharacterReferenceType || (CharacterReferenceType = {}));

      var _ControlFlowError = function _ControlFlowError(error) {
        _classCallCheck2(this, _ControlFlowError);

        this.error = error;
      }; // See http://www.w3.org/TR/html51/syntax.html#writing


      var _Tokenizer = /*#__PURE__*/function () {
        /**
         * @param _file The html source file being tokenized.
         * @param _getTagDefinition A function that will retrieve a tag definition for a given tag name.
         * @param options Configuration of the tokenization.
         */
        function _Tokenizer(_file, _getTagDefinition, options) {
          _classCallCheck2(this, _Tokenizer);

          this._getTagDefinition = _getTagDefinition;
          this._currentTokenStart = null;
          this._currentTokenType = null;
          this._expansionCaseStack = [];
          this._inInterpolation = false;
          this.tokens = [];
          this.errors = [];
          this.nonNormalizedIcuExpressions = [];
          this._tokenizeIcu = options.tokenizeExpansionForms || false;
          this._interpolationConfig = options.interpolationConfig || DEFAULT_INTERPOLATION_CONFIG;
          this._leadingTriviaCodePoints = options.leadingTriviaChars && options.leadingTriviaChars.map(function (c) {
            return c.codePointAt(0) || 0;
          });
          var range = options.range || {
            endPos: _file.content.length,
            startPos: 0,
            startLine: 0,
            startCol: 0
          };
          this._cursor = options.escapedString ? new EscapedCharacterCursor(_file, range) : new PlainCharacterCursor(_file, range);
          this._preserveLineEndings = options.preserveLineEndings || false;
          this._escapedString = options.escapedString || false;
          this._i18nNormalizeLineEndingsInICUs = options.i18nNormalizeLineEndingsInICUs || false;

          try {
            this._cursor.init();
          } catch (e) {
            this.handleError(e);
          }
        }

        _createClass2(_Tokenizer, [{
          key: "_processCarriageReturns",
          value: function _processCarriageReturns(content) {
            if (this._preserveLineEndings) {
              return content;
            } // http://www.w3.org/TR/html5/syntax.html#preprocessing-the-input-stream
            // In order to keep the original position in the source, we can not
            // pre-process it.
            // Instead CRs are processed right before instantiating the tokens.


            return content.replace(_CR_OR_CRLF_REGEXP, '\n');
          }
        }, {
          key: "tokenize",
          value: function tokenize() {
            while (this._cursor.peek() !== $EOF) {
              var _start2 = this._cursor.clone();

              try {
                if (this._attemptCharCode($LT)) {
                  if (this._attemptCharCode($BANG)) {
                    if (this._attemptCharCode($LBRACKET)) {
                      this._consumeCdata(_start2);
                    } else if (this._attemptCharCode($MINUS)) {
                      this._consumeComment(_start2);
                    } else {
                      this._consumeDocType(_start2);
                    }
                  } else if (this._attemptCharCode($SLASH)) {
                    this._consumeTagClose(_start2);
                  } else {
                    this._consumeTagOpen(_start2);
                  }
                } else if (!(this._tokenizeIcu && this._tokenizeExpansionForm())) {
                  this._consumeText();
                }
              } catch (e) {
                this.handleError(e);
              }
            }

            this._beginToken(TokenType.EOF);

            this._endToken([]);
          }
          /**
           * @returns whether an ICU token has been created
           * @internal
           */

        }, {
          key: "_tokenizeExpansionForm",
          value: function _tokenizeExpansionForm() {
            if (this.isExpansionFormStart()) {
              this._consumeExpansionFormStart();

              return true;
            }

            if (isExpansionCaseStart(this._cursor.peek()) && this._isInExpansionForm()) {
              this._consumeExpansionCaseStart();

              return true;
            }

            if (this._cursor.peek() === $RBRACE) {
              if (this._isInExpansionCase()) {
                this._consumeExpansionCaseEnd();

                return true;
              }

              if (this._isInExpansionForm()) {
                this._consumeExpansionFormEnd();

                return true;
              }
            }

            return false;
          }
        }, {
          key: "_beginToken",
          value: function _beginToken(type) {
            var start = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this._cursor.clone();
            this._currentTokenStart = start;
            this._currentTokenType = type;
          }
        }, {
          key: "_endToken",
          value: function _endToken(parts, end) {
            if (this._currentTokenStart === null) {
              throw new TokenError('Programming error - attempted to end a token when there was no start to the token', this._currentTokenType, this._cursor.getSpan(end));
            }

            if (this._currentTokenType === null) {
              throw new TokenError('Programming error - attempted to end a token which has no token type', null, this._cursor.getSpan(this._currentTokenStart));
            }

            var token = new Token(this._currentTokenType, parts, this._cursor.getSpan(this._currentTokenStart, this._leadingTriviaCodePoints));
            this.tokens.push(token);
            this._currentTokenStart = null;
            this._currentTokenType = null;
            return token;
          }
        }, {
          key: "_createError",
          value: function _createError(msg, span) {
            if (this._isInExpansionForm()) {
              msg += " (Do you have an unescaped \"{\" in your template? Use \"{{ '{' }}\") to escape it.)";
            }

            var error = new TokenError(msg, this._currentTokenType, span);
            this._currentTokenStart = null;
            this._currentTokenType = null;
            return new _ControlFlowError(error);
          }
        }, {
          key: "handleError",
          value: function handleError(e) {
            if (e instanceof CursorError) {
              e = this._createError(e.msg, this._cursor.getSpan(e.cursor));
            }

            if (e instanceof _ControlFlowError) {
              this.errors.push(e.error);
            } else {
              throw e;
            }
          }
        }, {
          key: "_attemptCharCode",
          value: function _attemptCharCode(charCode) {
            if (this._cursor.peek() === charCode) {
              this._cursor.advance();

              return true;
            }

            return false;
          }
        }, {
          key: "_attemptCharCodeCaseInsensitive",
          value: function _attemptCharCodeCaseInsensitive(charCode) {
            if (compareCharCodeCaseInsensitive(this._cursor.peek(), charCode)) {
              this._cursor.advance();

              return true;
            }

            return false;
          }
        }, {
          key: "_requireCharCode",
          value: function _requireCharCode(charCode) {
            var location = this._cursor.clone();

            if (!this._attemptCharCode(charCode)) {
              throw this._createError(_unexpectedCharacterErrorMsg(this._cursor.peek()), this._cursor.getSpan(location));
            }
          }
        }, {
          key: "_attemptStr",
          value: function _attemptStr(chars) {
            var len = chars.length;

            if (this._cursor.charsLeft() < len) {
              return false;
            }

            var initialPosition = this._cursor.clone();

            for (var i = 0; i < len; i++) {
              if (!this._attemptCharCode(chars.charCodeAt(i))) {
                // If attempting to parse the string fails, we want to reset the parser
                // to where it was before the attempt
                this._cursor = initialPosition;
                return false;
              }
            }

            return true;
          }
        }, {
          key: "_attemptStrCaseInsensitive",
          value: function _attemptStrCaseInsensitive(chars) {
            for (var i = 0; i < chars.length; i++) {
              if (!this._attemptCharCodeCaseInsensitive(chars.charCodeAt(i))) {
                return false;
              }
            }

            return true;
          }
        }, {
          key: "_requireStr",
          value: function _requireStr(chars) {
            var location = this._cursor.clone();

            if (!this._attemptStr(chars)) {
              throw this._createError(_unexpectedCharacterErrorMsg(this._cursor.peek()), this._cursor.getSpan(location));
            }
          }
        }, {
          key: "_attemptCharCodeUntilFn",
          value: function _attemptCharCodeUntilFn(predicate) {
            while (!predicate(this._cursor.peek())) {
              this._cursor.advance();
            }
          }
        }, {
          key: "_requireCharCodeUntilFn",
          value: function _requireCharCodeUntilFn(predicate, len) {
            var start = this._cursor.clone();

            this._attemptCharCodeUntilFn(predicate);

            if (this._cursor.diff(start) < len) {
              throw this._createError(_unexpectedCharacterErrorMsg(this._cursor.peek()), this._cursor.getSpan(start));
            }
          }
        }, {
          key: "_attemptUntilChar",
          value: function _attemptUntilChar(_char3) {
            while (this._cursor.peek() !== _char3) {
              this._cursor.advance();
            }
          }
        }, {
          key: "_readChar",
          value: function _readChar(decodeEntities) {
            if (decodeEntities && this._cursor.peek() === $AMPERSAND) {
              return this._decodeEntity();
            } else {
              // Don't rely upon reading directly from `_input` as the actual char value
              // may have been generated from an escape sequence.
              var _char4 = String.fromCodePoint(this._cursor.peek());

              this._cursor.advance();

              return _char4;
            }
          }
        }, {
          key: "_decodeEntity",
          value: function _decodeEntity() {
            var start = this._cursor.clone();

            this._cursor.advance();

            if (this._attemptCharCode($HASH)) {
              var isHex = this._attemptCharCode($x) || this._attemptCharCode($X);

              var codeStart = this._cursor.clone();

              this._attemptCharCodeUntilFn(isDigitEntityEnd);

              if (this._cursor.peek() != $SEMICOLON) {
                // Advance cursor to include the peeked character in the string provided to the error
                // message.
                this._cursor.advance();

                var entityType = isHex ? CharacterReferenceType.HEX : CharacterReferenceType.DEC;
                throw this._createError(_unparsableEntityErrorMsg(entityType, this._cursor.getChars(start)), this._cursor.getSpan());
              }

              var strNum = this._cursor.getChars(codeStart);

              this._cursor.advance();

              try {
                var charCode = parseInt(strNum, isHex ? 16 : 10);
                return String.fromCharCode(charCode);
              } catch (_a) {
                throw this._createError(_unknownEntityErrorMsg(this._cursor.getChars(start)), this._cursor.getSpan());
              }
            } else {
              var nameStart = this._cursor.clone();

              this._attemptCharCodeUntilFn(isNamedEntityEnd);

              if (this._cursor.peek() != $SEMICOLON) {
                this._cursor = nameStart;
                return '&';
              }

              var name = this._cursor.getChars(nameStart);

              this._cursor.advance();

              var _char5 = NAMED_ENTITIES[name];

              if (!_char5) {
                throw this._createError(_unknownEntityErrorMsg(name), this._cursor.getSpan(start));
              }

              return _char5;
            }
          }
        }, {
          key: "_consumeRawText",
          value: function _consumeRawText(decodeEntities, endMarkerPredicate) {
            this._beginToken(decodeEntities ? TokenType.ESCAPABLE_RAW_TEXT : TokenType.RAW_TEXT);

            var parts = [];

            while (true) {
              var tagCloseStart = this._cursor.clone();

              var foundEndMarker = endMarkerPredicate();
              this._cursor = tagCloseStart;

              if (foundEndMarker) {
                break;
              }

              parts.push(this._readChar(decodeEntities));
            }

            return this._endToken([this._processCarriageReturns(parts.join(''))]);
          }
        }, {
          key: "_consumeComment",
          value: function _consumeComment(start) {
            var _this175 = this;

            this._beginToken(TokenType.COMMENT_START, start);

            this._requireCharCode($MINUS);

            this._endToken([]);

            this._consumeRawText(false, function () {
              return _this175._attemptStr('-->');
            });

            this._beginToken(TokenType.COMMENT_END);

            this._requireStr('-->');

            this._endToken([]);
          }
        }, {
          key: "_consumeCdata",
          value: function _consumeCdata(start) {
            var _this176 = this;

            this._beginToken(TokenType.CDATA_START, start);

            this._requireStr('CDATA[');

            this._endToken([]);

            this._consumeRawText(false, function () {
              return _this176._attemptStr(']]>');
            });

            this._beginToken(TokenType.CDATA_END);

            this._requireStr(']]>');

            this._endToken([]);
          }
        }, {
          key: "_consumeDocType",
          value: function _consumeDocType(start) {
            this._beginToken(TokenType.DOC_TYPE, start);

            var contentStart = this._cursor.clone();

            this._attemptUntilChar($GT);

            var content = this._cursor.getChars(contentStart);

            this._cursor.advance();

            this._endToken([content]);
          }
        }, {
          key: "_consumePrefixAndName",
          value: function _consumePrefixAndName() {
            var nameOrPrefixStart = this._cursor.clone();

            var prefix = '';

            while (this._cursor.peek() !== $COLON && !isPrefixEnd(this._cursor.peek())) {
              this._cursor.advance();
            }

            var nameStart;

            if (this._cursor.peek() === $COLON) {
              prefix = this._cursor.getChars(nameOrPrefixStart);

              this._cursor.advance();

              nameStart = this._cursor.clone();
            } else {
              nameStart = nameOrPrefixStart;
            }

            this._requireCharCodeUntilFn(isNameEnd, prefix === '' ? 0 : 1);

            var name = this._cursor.getChars(nameStart);

            return [prefix, name];
          }
        }, {
          key: "_consumeTagOpen",
          value: function _consumeTagOpen(start) {
            var tagName;
            var prefix;
            var openTagToken;

            try {
              if (!isAsciiLetter(this._cursor.peek())) {
                throw this._createError(_unexpectedCharacterErrorMsg(this._cursor.peek()), this._cursor.getSpan(start));
              }

              openTagToken = this._consumeTagOpenStart(start);
              prefix = openTagToken.parts[0];
              tagName = openTagToken.parts[1];

              this._attemptCharCodeUntilFn(isNotWhitespace);

              while (this._cursor.peek() !== $SLASH && this._cursor.peek() !== $GT && this._cursor.peek() !== $LT) {
                this._consumeAttributeName();

                this._attemptCharCodeUntilFn(isNotWhitespace);

                if (this._attemptCharCode($EQ)) {
                  this._attemptCharCodeUntilFn(isNotWhitespace);

                  this._consumeAttributeValue();
                }

                this._attemptCharCodeUntilFn(isNotWhitespace);
              }

              this._consumeTagOpenEnd();
            } catch (e) {
              if (e instanceof _ControlFlowError) {
                if (openTagToken) {
                  // We errored before we could close the opening tag, so it is incomplete.
                  openTagToken.type = TokenType.INCOMPLETE_TAG_OPEN;
                } else {
                  // When the start tag is invalid, assume we want a "<" as text.
                  // Back to back text tokens are merged at the end.
                  this._beginToken(TokenType.TEXT, start);

                  this._endToken(['<']);
                }

                return;
              }

              throw e;
            }

            var contentTokenType = this._getTagDefinition(tagName).contentType;

            if (contentTokenType === TagContentType.RAW_TEXT) {
              this._consumeRawTextWithTagClose(prefix, tagName, false);
            } else if (contentTokenType === TagContentType.ESCAPABLE_RAW_TEXT) {
              this._consumeRawTextWithTagClose(prefix, tagName, true);
            }
          }
        }, {
          key: "_consumeRawTextWithTagClose",
          value: function _consumeRawTextWithTagClose(prefix, tagName, decodeEntities) {
            var _this177 = this;

            var textToken = this._consumeRawText(decodeEntities, function () {
              if (!_this177._attemptCharCode($LT)) return false;
              if (!_this177._attemptCharCode($SLASH)) return false;

              _this177._attemptCharCodeUntilFn(isNotWhitespace);

              if (!_this177._attemptStrCaseInsensitive(tagName)) return false;

              _this177._attemptCharCodeUntilFn(isNotWhitespace);

              return _this177._attemptCharCode($GT);
            });

            this._beginToken(TokenType.TAG_CLOSE);

            this._requireCharCodeUntilFn(function (code) {
              return code === $GT;
            }, 3);

            this._cursor.advance(); // Consume the `>`


            this._endToken([prefix, tagName]);
          }
        }, {
          key: "_consumeTagOpenStart",
          value: function _consumeTagOpenStart(start) {
            this._beginToken(TokenType.TAG_OPEN_START, start);

            var parts = this._consumePrefixAndName();

            return this._endToken(parts);
          }
        }, {
          key: "_consumeAttributeName",
          value: function _consumeAttributeName() {
            var attrNameStart = this._cursor.peek();

            if (attrNameStart === $SQ || attrNameStart === $DQ) {
              throw this._createError(_unexpectedCharacterErrorMsg(attrNameStart), this._cursor.getSpan());
            }

            this._beginToken(TokenType.ATTR_NAME);

            var prefixAndName = this._consumePrefixAndName();

            this._endToken(prefixAndName);
          }
        }, {
          key: "_consumeAttributeValue",
          value: function _consumeAttributeValue() {
            var value;

            if (this._cursor.peek() === $SQ || this._cursor.peek() === $DQ) {
              this._beginToken(TokenType.ATTR_QUOTE);

              var quoteChar = this._cursor.peek();

              this._cursor.advance();

              this._endToken([String.fromCodePoint(quoteChar)]);

              this._beginToken(TokenType.ATTR_VALUE);

              var parts = [];

              while (this._cursor.peek() !== quoteChar) {
                parts.push(this._readChar(true));
              }

              value = parts.join('');

              this._endToken([this._processCarriageReturns(value)]);

              this._beginToken(TokenType.ATTR_QUOTE);

              this._cursor.advance();

              this._endToken([String.fromCodePoint(quoteChar)]);
            } else {
              this._beginToken(TokenType.ATTR_VALUE);

              var valueStart = this._cursor.clone();

              this._requireCharCodeUntilFn(isNameEnd, 1);

              value = this._cursor.getChars(valueStart);

              this._endToken([this._processCarriageReturns(value)]);
            }
          }
        }, {
          key: "_consumeTagOpenEnd",
          value: function _consumeTagOpenEnd() {
            var tokenType = this._attemptCharCode($SLASH) ? TokenType.TAG_OPEN_END_VOID : TokenType.TAG_OPEN_END;

            this._beginToken(tokenType);

            this._requireCharCode($GT);

            this._endToken([]);
          }
        }, {
          key: "_consumeTagClose",
          value: function _consumeTagClose(start) {
            this._beginToken(TokenType.TAG_CLOSE, start);

            this._attemptCharCodeUntilFn(isNotWhitespace);

            var prefixAndName = this._consumePrefixAndName();

            this._attemptCharCodeUntilFn(isNotWhitespace);

            this._requireCharCode($GT);

            this._endToken(prefixAndName);
          }
        }, {
          key: "_consumeExpansionFormStart",
          value: function _consumeExpansionFormStart() {
            this._beginToken(TokenType.EXPANSION_FORM_START);

            this._requireCharCode($LBRACE);

            this._endToken([]);

            this._expansionCaseStack.push(TokenType.EXPANSION_FORM_START);

            this._beginToken(TokenType.RAW_TEXT);

            var condition = this._readUntil($COMMA);

            var normalizedCondition = this._processCarriageReturns(condition);

            if (this._i18nNormalizeLineEndingsInICUs) {
              // We explicitly want to normalize line endings for this text.
              this._endToken([normalizedCondition]);
            } else {
              // We are not normalizing line endings.
              var conditionToken = this._endToken([condition]);

              if (normalizedCondition !== condition) {
                this.nonNormalizedIcuExpressions.push(conditionToken);
              }
            }

            this._requireCharCode($COMMA);

            this._attemptCharCodeUntilFn(isNotWhitespace);

            this._beginToken(TokenType.RAW_TEXT);

            var type = this._readUntil($COMMA);

            this._endToken([type]);

            this._requireCharCode($COMMA);

            this._attemptCharCodeUntilFn(isNotWhitespace);
          }
        }, {
          key: "_consumeExpansionCaseStart",
          value: function _consumeExpansionCaseStart() {
            this._beginToken(TokenType.EXPANSION_CASE_VALUE);

            var value = this._readUntil($LBRACE).trim();

            this._endToken([value]);

            this._attemptCharCodeUntilFn(isNotWhitespace);

            this._beginToken(TokenType.EXPANSION_CASE_EXP_START);

            this._requireCharCode($LBRACE);

            this._endToken([]);

            this._attemptCharCodeUntilFn(isNotWhitespace);

            this._expansionCaseStack.push(TokenType.EXPANSION_CASE_EXP_START);
          }
        }, {
          key: "_consumeExpansionCaseEnd",
          value: function _consumeExpansionCaseEnd() {
            this._beginToken(TokenType.EXPANSION_CASE_EXP_END);

            this._requireCharCode($RBRACE);

            this._endToken([]);

            this._attemptCharCodeUntilFn(isNotWhitespace);

            this._expansionCaseStack.pop();
          }
        }, {
          key: "_consumeExpansionFormEnd",
          value: function _consumeExpansionFormEnd() {
            this._beginToken(TokenType.EXPANSION_FORM_END);

            this._requireCharCode($RBRACE);

            this._endToken([]);

            this._expansionCaseStack.pop();
          }
        }, {
          key: "_consumeText",
          value: function _consumeText() {
            var start = this._cursor.clone();

            this._beginToken(TokenType.TEXT, start);

            var parts = [];

            do {
              if (this._interpolationConfig && this._attemptStr(this._interpolationConfig.start)) {
                parts.push(this._interpolationConfig.start);
                this._inInterpolation = true;
              } else if (this._interpolationConfig && this._inInterpolation && this._attemptStr(this._interpolationConfig.end)) {
                parts.push(this._interpolationConfig.end);
                this._inInterpolation = false;
              } else {
                parts.push(this._readChar(true));
              }
            } while (!this._isTextEnd());

            this._endToken([this._processCarriageReturns(parts.join(''))]);
          }
        }, {
          key: "_isTextEnd",
          value: function _isTextEnd() {
            if (this._cursor.peek() === $LT || this._cursor.peek() === $EOF) {
              return true;
            }

            if (this._tokenizeIcu && !this._inInterpolation) {
              if (this.isExpansionFormStart()) {
                // start of an expansion form
                return true;
              }

              if (this._cursor.peek() === $RBRACE && this._isInExpansionCase()) {
                // end of and expansion case
                return true;
              }
            }

            return false;
          }
        }, {
          key: "_readUntil",
          value: function _readUntil(_char6) {
            var start = this._cursor.clone();

            this._attemptUntilChar(_char6);

            return this._cursor.getChars(start);
          }
        }, {
          key: "_isInExpansionCase",
          value: function _isInExpansionCase() {
            return this._expansionCaseStack.length > 0 && this._expansionCaseStack[this._expansionCaseStack.length - 1] === TokenType.EXPANSION_CASE_EXP_START;
          }
        }, {
          key: "_isInExpansionForm",
          value: function _isInExpansionForm() {
            return this._expansionCaseStack.length > 0 && this._expansionCaseStack[this._expansionCaseStack.length - 1] === TokenType.EXPANSION_FORM_START;
          }
        }, {
          key: "isExpansionFormStart",
          value: function isExpansionFormStart() {
            if (this._cursor.peek() !== $LBRACE) {
              return false;
            }

            if (this._interpolationConfig) {
              var _start3 = this._cursor.clone();

              var isInterpolation = this._attemptStr(this._interpolationConfig.start);

              this._cursor = _start3;
              return !isInterpolation;
            }

            return true;
          }
        }]);

        return _Tokenizer;
      }();

      function isNotWhitespace(code) {
        return !isWhitespace(code) || code === $EOF;
      }

      function isNameEnd(code) {
        return isWhitespace(code) || code === $GT || code === $LT || code === $SLASH || code === $SQ || code === $DQ || code === $EQ;
      }

      function isPrefixEnd(code) {
        return (code < $a || $z < code) && (code < $A || $Z < code) && (code < $0 || code > $9);
      }

      function isDigitEntityEnd(code) {
        return code == $SEMICOLON || code == $EOF || !isAsciiHexDigit(code);
      }

      function isNamedEntityEnd(code) {
        return code == $SEMICOLON || code == $EOF || !isAsciiLetter(code);
      }

      function isExpansionCaseStart(peek) {
        return peek !== $RBRACE;
      }

      function compareCharCodeCaseInsensitive(code1, code2) {
        return toUpperCaseCharCode(code1) == toUpperCaseCharCode(code2);
      }

      function toUpperCaseCharCode(code) {
        return code >= $a && code <= $z ? code - $a + $A : code;
      }

      function mergeTextTokens(srcTokens) {
        var dstTokens = [];
        var lastDstToken = undefined;

        for (var i = 0; i < srcTokens.length; i++) {
          var token = srcTokens[i];

          if (lastDstToken && lastDstToken.type == TokenType.TEXT && token.type == TokenType.TEXT) {
            lastDstToken.parts[0] += token.parts[0];
            lastDstToken.sourceSpan.end = token.sourceSpan.end;
          } else {
            lastDstToken = token;
            dstTokens.push(lastDstToken);
          }
        }

        return dstTokens;
      }

      var PlainCharacterCursor = /*#__PURE__*/function () {
        function PlainCharacterCursor(fileOrCursor, range) {
          _classCallCheck2(this, PlainCharacterCursor);

          if (fileOrCursor instanceof PlainCharacterCursor) {
            this.file = fileOrCursor.file;
            this.input = fileOrCursor.input;
            this.end = fileOrCursor.end;
            var state = fileOrCursor.state; // Note: avoid using `{...fileOrCursor.state}` here as that has a severe performance penalty.
            // In ES5 bundles the object spread operator is translated into the `__assign` helper, which
            // is not optimized by VMs as efficiently as a raw object literal. Since this constructor is
            // called in tight loops, this difference matters.

            this.state = {
              peek: state.peek,
              offset: state.offset,
              line: state.line,
              column: state.column
            };
          } else {
            if (!range) {
              throw new Error('Programming error: the range argument must be provided with a file argument.');
            }

            this.file = fileOrCursor;
            this.input = fileOrCursor.content;
            this.end = range.endPos;
            this.state = {
              peek: -1,
              offset: range.startPos,
              line: range.startLine,
              column: range.startCol
            };
          }
        }

        _createClass2(PlainCharacterCursor, [{
          key: "clone",
          value: function clone() {
            return new PlainCharacterCursor(this);
          }
        }, {
          key: "peek",
          value: function peek() {
            return this.state.peek;
          }
        }, {
          key: "charsLeft",
          value: function charsLeft() {
            return this.end - this.state.offset;
          }
        }, {
          key: "diff",
          value: function diff(other) {
            return this.state.offset - other.state.offset;
          }
        }, {
          key: "advance",
          value: function advance() {
            this.advanceState(this.state);
          }
        }, {
          key: "init",
          value: function init() {
            this.updatePeek(this.state);
          }
        }, {
          key: "getSpan",
          value: function getSpan(start, leadingTriviaCodePoints) {
            start = start || this;
            var fullStart = start;

            if (leadingTriviaCodePoints) {
              while (this.diff(start) > 0 && leadingTriviaCodePoints.indexOf(start.peek()) !== -1) {
                if (fullStart === start) {
                  start = start.clone();
                }

                start.advance();
              }
            }

            var startLocation = this.locationFromCursor(start);
            var endLocation = this.locationFromCursor(this);
            var fullStartLocation = fullStart !== start ? this.locationFromCursor(fullStart) : startLocation;
            return new ParseSourceSpan(startLocation, endLocation, fullStartLocation);
          }
        }, {
          key: "getChars",
          value: function getChars(start) {
            return this.input.substring(start.state.offset, this.state.offset);
          }
        }, {
          key: "charAt",
          value: function charAt(pos) {
            return this.input.charCodeAt(pos);
          }
        }, {
          key: "advanceState",
          value: function advanceState(state) {
            if (state.offset >= this.end) {
              this.state = state;
              throw new CursorError('Unexpected character "EOF"', this);
            }

            var currentChar = this.charAt(state.offset);

            if (currentChar === $LF) {
              state.line++;
              state.column = 0;
            } else if (!isNewLine(currentChar)) {
              state.column++;
            }

            state.offset++;
            this.updatePeek(state);
          }
        }, {
          key: "updatePeek",
          value: function updatePeek(state) {
            state.peek = state.offset >= this.end ? $EOF : this.charAt(state.offset);
          }
        }, {
          key: "locationFromCursor",
          value: function locationFromCursor(cursor) {
            return new ParseLocation(cursor.file, cursor.state.offset, cursor.state.line, cursor.state.column);
          }
        }]);

        return PlainCharacterCursor;
      }();

      var EscapedCharacterCursor = /*#__PURE__*/function (_PlainCharacterCursor) {
        _inherits2(EscapedCharacterCursor, _PlainCharacterCursor);

        var _super96 = _createSuper2(EscapedCharacterCursor);

        function EscapedCharacterCursor(fileOrCursor, range) {
          var _this178;

          _classCallCheck2(this, EscapedCharacterCursor);

          if (fileOrCursor instanceof EscapedCharacterCursor) {
            _this178 = _super96.call(this, fileOrCursor);
            _this178.internalState = Object.assign({}, fileOrCursor.internalState);
          } else {
            _this178 = _super96.call(this, fileOrCursor, range);
            _this178.internalState = _this178.state;
          }

          return _possibleConstructorReturn2(_this178);
        }

        _createClass2(EscapedCharacterCursor, [{
          key: "advance",
          value: function advance() {
            this.state = this.internalState;

            _get2(_getPrototypeOf2(EscapedCharacterCursor.prototype), "advance", this).call(this);

            this.processEscapeSequence();
          }
        }, {
          key: "init",
          value: function init() {
            _get2(_getPrototypeOf2(EscapedCharacterCursor.prototype), "init", this).call(this);

            this.processEscapeSequence();
          }
        }, {
          key: "clone",
          value: function clone() {
            return new EscapedCharacterCursor(this);
          }
        }, {
          key: "getChars",
          value: function getChars(start) {
            var cursor = start.clone();
            var chars = '';

            while (cursor.internalState.offset < this.internalState.offset) {
              chars += String.fromCodePoint(cursor.peek());
              cursor.advance();
            }

            return chars;
          }
          /**
           * Process the escape sequence that starts at the current position in the text.
           *
           * This method is called to ensure that `peek` has the unescaped value of escape sequences.
           */

        }, {
          key: "processEscapeSequence",
          value: function processEscapeSequence() {
            var _this179 = this;

            var peek = function peek() {
              return _this179.internalState.peek;
            };

            if (peek() === $BACKSLASH) {
              // We have hit an escape sequence so we need the internal state to become independent
              // of the external state.
              this.internalState = Object.assign({}, this.state); // Move past the backslash

              this.advanceState(this.internalState); // First check for standard control char sequences

              if (peek() === $n) {
                this.state.peek = $LF;
              } else if (peek() === $r) {
                this.state.peek = $CR;
              } else if (peek() === $v) {
                this.state.peek = $VTAB;
              } else if (peek() === $t) {
                this.state.peek = $TAB;
              } else if (peek() === $b) {
                this.state.peek = $BSPACE;
              } else if (peek() === $f) {
                this.state.peek = $FF;
              } // Now consider more complex sequences
              else if (peek() === $u) {
                // Unicode code-point sequence
                this.advanceState(this.internalState); // advance past the `u` char

                if (peek() === $LBRACE) {
                  // Variable length Unicode, e.g. `\x{123}`
                  this.advanceState(this.internalState); // advance past the `{` char
                  // Advance past the variable number of hex digits until we hit a `}` char

                  var digitStart = this.clone();
                  var length = 0;

                  while (peek() !== $RBRACE) {
                    this.advanceState(this.internalState);
                    length++;
                  }

                  this.state.peek = this.decodeHexDigits(digitStart, length);
                } else {
                  // Fixed length Unicode, e.g. `\u1234`
                  var _digitStart = this.clone();

                  this.advanceState(this.internalState);
                  this.advanceState(this.internalState);
                  this.advanceState(this.internalState);
                  this.state.peek = this.decodeHexDigits(_digitStart, 4);
                }
              } else if (peek() === $x) {
                // Hex char code, e.g. `\x2F`
                this.advanceState(this.internalState); // advance past the `x` char

                var _digitStart2 = this.clone();

                this.advanceState(this.internalState);
                this.state.peek = this.decodeHexDigits(_digitStart2, 2);
              } else if (isOctalDigit(peek())) {
                // Octal char code, e.g. `\012`,
                var octal = '';
                var _length = 0;
                var previous = this.clone();

                while (isOctalDigit(peek()) && _length < 3) {
                  previous = this.clone();
                  octal += String.fromCodePoint(peek());
                  this.advanceState(this.internalState);
                  _length++;
                }

                this.state.peek = parseInt(octal, 8); // Backup one char

                this.internalState = previous.internalState;
              } else if (isNewLine(this.internalState.peek)) {
                // Line continuation `\` followed by a new line
                this.advanceState(this.internalState); // advance over the newline

                this.state = this.internalState;
              } else {
                // If none of the `if` blocks were executed then we just have an escaped normal character.
                // In that case we just, effectively, skip the backslash from the character.
                this.state.peek = this.internalState.peek;
              }
            }
          }
        }, {
          key: "decodeHexDigits",
          value: function decodeHexDigits(start, length) {
            var hex = this.input.substr(start.internalState.offset, length);
            var charCode = parseInt(hex, 16);

            if (!isNaN(charCode)) {
              return charCode;
            } else {
              start.state = start.internalState;
              throw new CursorError('Invalid hexadecimal escape sequence', start);
            }
          }
        }]);

        return EscapedCharacterCursor;
      }(PlainCharacterCursor);

      var CursorError = function CursorError(msg, cursor) {
        _classCallCheck2(this, CursorError);

        this.msg = msg;
        this.cursor = cursor;
      };
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var TreeError = /*#__PURE__*/function (_ParseError2) {
        _inherits2(TreeError, _ParseError2);

        var _super97 = _createSuper2(TreeError);

        function TreeError(elementName, span, msg) {
          var _this180;

          _classCallCheck2(this, TreeError);

          _this180 = _super97.call(this, span, msg);
          _this180.elementName = elementName;
          return _this180;
        }

        _createClass2(TreeError, null, [{
          key: "create",
          value: function create(elementName, span, msg) {
            return new TreeError(elementName, span, msg);
          }
        }]);

        return TreeError;
      }(ParseError);

      var ParseTreeResult = function ParseTreeResult(rootNodes, errors) {
        _classCallCheck2(this, ParseTreeResult);

        this.rootNodes = rootNodes;
        this.errors = errors;
      };

      var Parser = /*#__PURE__*/function () {
        function Parser(getTagDefinition) {
          _classCallCheck2(this, Parser);

          this.getTagDefinition = getTagDefinition;
        }

        _createClass2(Parser, [{
          key: "parse",
          value: function parse(source, url, options) {
            var tokenizeResult = tokenize(source, url, this.getTagDefinition, options);
            var parser = new _TreeBuilder(tokenizeResult.tokens, this.getTagDefinition);
            parser.build();
            return new ParseTreeResult(parser.rootNodes, tokenizeResult.errors.concat(parser.errors));
          }
        }]);

        return Parser;
      }();

      var _TreeBuilder = /*#__PURE__*/function () {
        function _TreeBuilder(tokens, getTagDefinition) {
          _classCallCheck2(this, _TreeBuilder);

          this.tokens = tokens;
          this.getTagDefinition = getTagDefinition;
          this._index = -1;
          this._elementStack = [];
          this.rootNodes = [];
          this.errors = [];

          this._advance();
        }

        _createClass2(_TreeBuilder, [{
          key: "build",
          value: function build() {
            while (this._peek.type !== TokenType.EOF) {
              if (this._peek.type === TokenType.TAG_OPEN_START || this._peek.type === TokenType.INCOMPLETE_TAG_OPEN) {
                this._consumeStartTag(this._advance());
              } else if (this._peek.type === TokenType.TAG_CLOSE) {
                this._consumeEndTag(this._advance());
              } else if (this._peek.type === TokenType.CDATA_START) {
                this._closeVoidElement();

                this._consumeCdata(this._advance());
              } else if (this._peek.type === TokenType.COMMENT_START) {
                this._closeVoidElement();

                this._consumeComment(this._advance());
              } else if (this._peek.type === TokenType.TEXT || this._peek.type === TokenType.RAW_TEXT || this._peek.type === TokenType.ESCAPABLE_RAW_TEXT) {
                this._closeVoidElement();

                this._consumeText(this._advance());
              } else if (this._peek.type === TokenType.EXPANSION_FORM_START) {
                this._consumeExpansion(this._advance());
              } else {
                // Skip all other tokens...
                this._advance();
              }
            }
          }
        }, {
          key: "_advance",
          value: function _advance() {
            var prev = this._peek;

            if (this._index < this.tokens.length - 1) {
              // Note: there is always an EOF token at the end
              this._index++;
            }

            this._peek = this.tokens[this._index];
            return prev;
          }
        }, {
          key: "_advanceIf",
          value: function _advanceIf(type) {
            if (this._peek.type === type) {
              return this._advance();
            }

            return null;
          }
        }, {
          key: "_consumeCdata",
          value: function _consumeCdata(_startToken) {
            this._consumeText(this._advance());

            this._advanceIf(TokenType.CDATA_END);
          }
        }, {
          key: "_consumeComment",
          value: function _consumeComment(token) {
            var text = this._advanceIf(TokenType.RAW_TEXT);

            this._advanceIf(TokenType.COMMENT_END);

            var value = text != null ? text.parts[0].trim() : null;

            this._addToParent(new Comment(value, token.sourceSpan));
          }
        }, {
          key: "_consumeExpansion",
          value: function _consumeExpansion(token) {
            var switchValue = this._advance();

            var type = this._advance();

            var cases = []; // read =

            while (this._peek.type === TokenType.EXPANSION_CASE_VALUE) {
              var expCase = this._parseExpansionCase();

              if (!expCase) return; // error

              cases.push(expCase);
            } // read the final }


            if (this._peek.type !== TokenType.EXPANSION_FORM_END) {
              this.errors.push(TreeError.create(null, this._peek.sourceSpan, "Invalid ICU message. Missing '}'."));
              return;
            }

            var sourceSpan = new ParseSourceSpan(token.sourceSpan.start, this._peek.sourceSpan.end, token.sourceSpan.fullStart);

            this._addToParent(new Expansion(switchValue.parts[0], type.parts[0], cases, sourceSpan, switchValue.sourceSpan));

            this._advance();
          }
        }, {
          key: "_parseExpansionCase",
          value: function _parseExpansionCase() {
            var value = this._advance(); // read {


            if (this._peek.type !== TokenType.EXPANSION_CASE_EXP_START) {
              this.errors.push(TreeError.create(null, this._peek.sourceSpan, "Invalid ICU message. Missing '{'."));
              return null;
            } // read until }


            var start = this._advance();

            var exp = this._collectExpansionExpTokens(start);

            if (!exp) return null;

            var end = this._advance();

            exp.push(new Token(TokenType.EOF, [], end.sourceSpan)); // parse everything in between { and }

            var expansionCaseParser = new _TreeBuilder(exp, this.getTagDefinition);
            expansionCaseParser.build();

            if (expansionCaseParser.errors.length > 0) {
              this.errors = this.errors.concat(expansionCaseParser.errors);
              return null;
            }

            var sourceSpan = new ParseSourceSpan(value.sourceSpan.start, end.sourceSpan.end, value.sourceSpan.fullStart);
            var expSourceSpan = new ParseSourceSpan(start.sourceSpan.start, end.sourceSpan.end, start.sourceSpan.fullStart);
            return new ExpansionCase(value.parts[0], expansionCaseParser.rootNodes, sourceSpan, value.sourceSpan, expSourceSpan);
          }
        }, {
          key: "_collectExpansionExpTokens",
          value: function _collectExpansionExpTokens(start) {
            var exp = [];
            var expansionFormStack = [TokenType.EXPANSION_CASE_EXP_START];

            while (true) {
              if (this._peek.type === TokenType.EXPANSION_FORM_START || this._peek.type === TokenType.EXPANSION_CASE_EXP_START) {
                expansionFormStack.push(this._peek.type);
              }

              if (this._peek.type === TokenType.EXPANSION_CASE_EXP_END) {
                if (lastOnStack(expansionFormStack, TokenType.EXPANSION_CASE_EXP_START)) {
                  expansionFormStack.pop();
                  if (expansionFormStack.length == 0) return exp;
                } else {
                  this.errors.push(TreeError.create(null, start.sourceSpan, "Invalid ICU message. Missing '}'."));
                  return null;
                }
              }

              if (this._peek.type === TokenType.EXPANSION_FORM_END) {
                if (lastOnStack(expansionFormStack, TokenType.EXPANSION_FORM_START)) {
                  expansionFormStack.pop();
                } else {
                  this.errors.push(TreeError.create(null, start.sourceSpan, "Invalid ICU message. Missing '}'."));
                  return null;
                }
              }

              if (this._peek.type === TokenType.EOF) {
                this.errors.push(TreeError.create(null, start.sourceSpan, "Invalid ICU message. Missing '}'."));
                return null;
              }

              exp.push(this._advance());
            }
          }
        }, {
          key: "_consumeText",
          value: function _consumeText(token) {
            var text = token.parts[0];

            if (text.length > 0 && text[0] == '\n') {
              var parent = this._getParentElement();

              if (parent != null && parent.children.length == 0 && this.getTagDefinition(parent.name).ignoreFirstLf) {
                text = text.substring(1);
              }
            }

            if (text.length > 0) {
              this._addToParent(new Text$3(text, token.sourceSpan));
            }
          }
        }, {
          key: "_closeVoidElement",
          value: function _closeVoidElement() {
            var el = this._getParentElement();

            if (el && this.getTagDefinition(el.name).isVoid) {
              this._elementStack.pop();
            }
          }
        }, {
          key: "_consumeStartTag",
          value: function _consumeStartTag(startTagToken) {
            var _startTagToken$parts = _slicedToArray(startTagToken.parts, 2),
                prefix = _startTagToken$parts[0],
                name = _startTagToken$parts[1];

            var attrs = [];

            while (this._peek.type === TokenType.ATTR_NAME) {
              attrs.push(this._consumeAttr(this._advance()));
            }

            var fullName = this._getElementFullName(prefix, name, this._getParentElement());

            var selfClosing = false; // Note: There could have been a tokenizer error
            // so that we don't get a token for the end tag...

            if (this._peek.type === TokenType.TAG_OPEN_END_VOID) {
              this._advance();

              selfClosing = true;
              var tagDef = this.getTagDefinition(fullName);

              if (!(tagDef.canSelfClose || getNsPrefix(fullName) !== null || tagDef.isVoid)) {
                this.errors.push(TreeError.create(fullName, startTagToken.sourceSpan, "Only void and foreign elements can be self closed \"".concat(startTagToken.parts[1], "\"")));
              }
            } else if (this._peek.type === TokenType.TAG_OPEN_END) {
              this._advance();

              selfClosing = false;
            }

            var end = this._peek.sourceSpan.start;
            var span = new ParseSourceSpan(startTagToken.sourceSpan.start, end, startTagToken.sourceSpan.fullStart); // Create a separate `startSpan` because `span` will be modified when there is an `end` span.

            var startSpan = new ParseSourceSpan(startTagToken.sourceSpan.start, end, startTagToken.sourceSpan.fullStart);
            var el = new Element$1(fullName, attrs, [], span, startSpan, undefined);

            this._pushElement(el);

            if (selfClosing) {
              // Elements that are self-closed have their `endSourceSpan` set to the full span, as the
              // element start tag also represents the end tag.
              this._popElement(fullName, span);
            } else if (startTagToken.type === TokenType.INCOMPLETE_TAG_OPEN) {
              // We already know the opening tag is not complete, so it is unlikely it has a corresponding
              // close tag. Let's optimistically parse it as a full element and emit an error.
              this._popElement(fullName, null);

              this.errors.push(TreeError.create(fullName, span, "Opening tag \"".concat(fullName, "\" not terminated.")));
            }
          }
        }, {
          key: "_pushElement",
          value: function _pushElement(el) {
            var parentEl = this._getParentElement();

            if (parentEl && this.getTagDefinition(parentEl.name).isClosedByChild(el.name)) {
              this._elementStack.pop();
            }

            this._addToParent(el);

            this._elementStack.push(el);
          }
        }, {
          key: "_consumeEndTag",
          value: function _consumeEndTag(endTagToken) {
            var fullName = this._getElementFullName(endTagToken.parts[0], endTagToken.parts[1], this._getParentElement());

            if (this.getTagDefinition(fullName).isVoid) {
              this.errors.push(TreeError.create(fullName, endTagToken.sourceSpan, "Void elements do not have end tags \"".concat(endTagToken.parts[1], "\"")));
            } else if (!this._popElement(fullName, endTagToken.sourceSpan)) {
              var errMsg = "Unexpected closing tag \"".concat(fullName, "\". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags");
              this.errors.push(TreeError.create(fullName, endTagToken.sourceSpan, errMsg));
            }
          }
          /**
           * Closes the nearest element with the tag name `fullName` in the parse tree.
           * `endSourceSpan` is the span of the closing tag, or null if the element does
           * not have a closing tag (for example, this happens when an incomplete
           * opening tag is recovered).
           */

        }, {
          key: "_popElement",
          value: function _popElement(fullName, endSourceSpan) {
            for (var stackIndex = this._elementStack.length - 1; stackIndex >= 0; stackIndex--) {
              var el = this._elementStack[stackIndex];

              if (el.name == fullName) {
                // Record the parse span with the element that is being closed. Any elements that are
                // removed from the element stack at this point are closed implicitly, so they won't get
                // an end source span (as there is no explicit closing element).
                el.endSourceSpan = endSourceSpan;
                el.sourceSpan.end = endSourceSpan !== null ? endSourceSpan.end : el.sourceSpan.end;

                this._elementStack.splice(stackIndex, this._elementStack.length - stackIndex);

                return true;
              }

              if (!this.getTagDefinition(el.name).closedByParent) {
                return false;
              }
            }

            return false;
          }
        }, {
          key: "_consumeAttr",
          value: function _consumeAttr(attrName) {
            var fullName = mergeNsAndName(attrName.parts[0], attrName.parts[1]);
            var end = attrName.sourceSpan.end;
            var value = '';
            var valueSpan = undefined;

            if (this._peek.type === TokenType.ATTR_QUOTE) {
              this._advance();
            }

            if (this._peek.type === TokenType.ATTR_VALUE) {
              var valueToken = this._advance();

              value = valueToken.parts[0];
              end = valueToken.sourceSpan.end;
              valueSpan = valueToken.sourceSpan;
            }

            if (this._peek.type === TokenType.ATTR_QUOTE) {
              var quoteToken = this._advance();

              end = quoteToken.sourceSpan.end;
            }

            return new Attribute(fullName, value, new ParseSourceSpan(attrName.sourceSpan.start, end, attrName.sourceSpan.fullStart), valueSpan);
          }
        }, {
          key: "_getParentElement",
          value: function _getParentElement() {
            return this._elementStack.length > 0 ? this._elementStack[this._elementStack.length - 1] : null;
          }
        }, {
          key: "_addToParent",
          value: function _addToParent(node) {
            var parent = this._getParentElement();

            if (parent != null) {
              parent.children.push(node);
            } else {
              this.rootNodes.push(node);
            }
          }
        }, {
          key: "_getElementFullName",
          value: function _getElementFullName(prefix, localName, parentElement) {
            if (prefix === '') {
              prefix = this.getTagDefinition(localName).implicitNamespacePrefix || '';

              if (prefix === '' && parentElement != null) {
                var parentTagName = splitNsName(parentElement.name)[1];
                var parentTagDefinition = this.getTagDefinition(parentTagName);

                if (!parentTagDefinition.preventNamespaceInheritance) {
                  prefix = getNsPrefix(parentElement.name);
                }
              }
            }

            return mergeNsAndName(prefix, localName);
          }
        }]);

        return _TreeBuilder;
      }();

      function lastOnStack(stack, element) {
        return stack.length > 0 && stack[stack.length - 1] === element;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var HtmlParser = /*#__PURE__*/function (_Parser) {
        _inherits2(HtmlParser, _Parser);

        var _super98 = _createSuper2(HtmlParser);

        function HtmlParser() {
          _classCallCheck2(this, HtmlParser);

          return _super98.call(this, getHtmlTagDefinition);
        }

        _createClass2(HtmlParser, [{
          key: "parse",
          value: function parse(source, url, options) {
            return _get2(_getPrototypeOf2(HtmlParser.prototype), "parse", this).call(this, source, url, options);
          }
        }]);

        return HtmlParser;
      }(Parser);
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var PRESERVE_WS_ATTR_NAME = 'ngPreserveWhitespaces';
      var SKIP_WS_TRIM_TAGS = new Set(['pre', 'template', 'textarea', 'script', 'style']); // Equivalent to \s with \u00a0 (non-breaking space) excluded.
      // Based on https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp

      var WS_CHARS = " \f\n\r\t\x0B\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF";
      var NO_WS_REGEXP = new RegExp("[^".concat(WS_CHARS, "]"));
      var WS_REPLACE_REGEXP = new RegExp("[".concat(WS_CHARS, "]{2,}"), 'g');

      function hasPreserveWhitespacesAttr(attrs) {
        return attrs.some(function (attr) {
          return attr.name === PRESERVE_WS_ATTR_NAME;
        });
      }
      /**
       * Angular Dart introduced &ngsp; as a placeholder for non-removable space, see:
       * https://github.com/dart-lang/angular/blob/0bb611387d29d65b5af7f9d2515ab571fd3fbee4/_tests/test/compiler/preserve_whitespace_test.dart#L25-L32
       * In Angular Dart &ngsp; is converted to the 0xE500 PUA (Private Use Areas) unicode character
       * and later on replaced by a space. We are re-implementing the same idea here.
       */


      function replaceNgsp(value) {
        // lexer is replacing the &ngsp; pseudo-entity with NGSP_UNICODE
        return value.replace(new RegExp(NGSP_UNICODE, 'g'), ' ');
      }
      /**
       * This visitor can walk HTML parse tree and remove / trim text nodes using the following rules:
       * - consider spaces, tabs and new lines as whitespace characters;
       * - drop text nodes consisting of whitespace characters only;
       * - for all other text nodes replace consecutive whitespace characters with one space;
       * - convert &ngsp; pseudo-entity to a single space;
       *
       * Removal and trimming of whitespaces have positive performance impact (less code to generate
       * while compiling templates, faster view creation). At the same time it can be "destructive"
       * in some cases (whitespaces can influence layout). Because of the potential of breaking layout
       * this visitor is not activated by default in Angular 5 and people need to explicitly opt-in for
       * whitespace removal. The default option for whitespace removal will be revisited in Angular 6
       * and might be changed to "on" by default.
       */


      var WhitespaceVisitor = /*#__PURE__*/function () {
        function WhitespaceVisitor() {
          _classCallCheck2(this, WhitespaceVisitor);
        }

        _createClass2(WhitespaceVisitor, [{
          key: "visitElement",
          value: function visitElement(element, context) {
            if (SKIP_WS_TRIM_TAGS.has(element.name) || hasPreserveWhitespacesAttr(element.attrs)) {
              // don't descent into elements where we need to preserve whitespaces
              // but still visit all attributes to eliminate one used as a market to preserve WS
              return new Element$1(element.name, visitAll$1(this, element.attrs), element.children, element.sourceSpan, element.startSourceSpan, element.endSourceSpan, element.i18n);
            }

            return new Element$1(element.name, element.attrs, visitAllWithSiblings(this, element.children), element.sourceSpan, element.startSourceSpan, element.endSourceSpan, element.i18n);
          }
        }, {
          key: "visitAttribute",
          value: function visitAttribute(attribute, context) {
            return attribute.name !== PRESERVE_WS_ATTR_NAME ? attribute : null;
          }
        }, {
          key: "visitText",
          value: function visitText(text, context) {
            var isNotBlank = text.value.match(NO_WS_REGEXP);
            var hasExpansionSibling = context && (context.prev instanceof Expansion || context.next instanceof Expansion);

            if (isNotBlank || hasExpansionSibling) {
              return new Text$3(replaceNgsp(text.value).replace(WS_REPLACE_REGEXP, ' '), text.sourceSpan, text.i18n);
            }

            return null;
          }
        }, {
          key: "visitComment",
          value: function visitComment(comment, context) {
            return comment;
          }
        }, {
          key: "visitExpansion",
          value: function visitExpansion(expansion, context) {
            return expansion;
          }
        }, {
          key: "visitExpansionCase",
          value: function visitExpansionCase(expansionCase, context) {
            return expansionCase;
          }
        }]);

        return WhitespaceVisitor;
      }();

      function removeWhitespaces(htmlAstWithErrors) {
        return new ParseTreeResult(visitAll$1(new WhitespaceVisitor(), htmlAstWithErrors.rootNodes), htmlAstWithErrors.errors);
      }

      function visitAllWithSiblings(visitor, nodes) {
        var result = [];
        nodes.forEach(function (ast, i) {
          var context = {
            prev: nodes[i - 1],
            next: nodes[i + 1]
          };
          var astResult = ast.visit(visitor, context);

          if (astResult) {
            result.push(astResult);
          }
        });
        return result;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */
      // http://cldr.unicode.org/index/cldr-spec/plural-rules


      var PLURAL_CASES = ['zero', 'one', 'two', 'few', 'many', 'other'];
      /**
       * Expands special forms into elements.
       *
       * For example,
       *
       * ```
       * { messages.length, plural,
       *   =0 {zero}
       *   =1 {one}
       *   other {more than one}
       * }
       * ```
       *
       * will be expanded into
       *
       * ```
       * <ng-container [ngPlural]="messages.length">
       *   <ng-template ngPluralCase="=0">zero</ng-template>
       *   <ng-template ngPluralCase="=1">one</ng-template>
       *   <ng-template ngPluralCase="other">more than one</ng-template>
       * </ng-container>
       * ```
       */

      function expandNodes(nodes) {
        var expander = new _Expander();
        return new ExpansionResult(visitAll$1(expander, nodes), expander.isExpanded, expander.errors);
      }

      var ExpansionResult = function ExpansionResult(nodes, expanded, errors) {
        _classCallCheck2(this, ExpansionResult);

        this.nodes = nodes;
        this.expanded = expanded;
        this.errors = errors;
      };

      var ExpansionError = /*#__PURE__*/function (_ParseError3) {
        _inherits2(ExpansionError, _ParseError3);

        var _super99 = _createSuper2(ExpansionError);

        function ExpansionError(span, errorMsg) {
          _classCallCheck2(this, ExpansionError);

          return _super99.call(this, span, errorMsg);
        }

        return ExpansionError;
      }(ParseError);
      /**
       * Expand expansion forms (plural, select) to directives
       *
       * @internal
       */


      var _Expander = /*#__PURE__*/function () {
        function _Expander() {
          _classCallCheck2(this, _Expander);

          this.isExpanded = false;
          this.errors = [];
        }

        _createClass2(_Expander, [{
          key: "visitElement",
          value: function visitElement(element, context) {
            return new Element$1(element.name, element.attrs, visitAll$1(this, element.children), element.sourceSpan, element.startSourceSpan, element.endSourceSpan);
          }
        }, {
          key: "visitAttribute",
          value: function visitAttribute(attribute, context) {
            return attribute;
          }
        }, {
          key: "visitText",
          value: function visitText(text, context) {
            return text;
          }
        }, {
          key: "visitComment",
          value: function visitComment(comment, context) {
            return comment;
          }
        }, {
          key: "visitExpansion",
          value: function visitExpansion(icu, context) {
            this.isExpanded = true;
            return icu.type == 'plural' ? _expandPluralForm(icu, this.errors) : _expandDefaultForm(icu, this.errors);
          }
        }, {
          key: "visitExpansionCase",
          value: function visitExpansionCase(icuCase, context) {
            throw new Error('Should not be reached');
          }
        }]);

        return _Expander;
      }(); // Plural forms are expanded to `NgPlural` and `NgPluralCase`s


      function _expandPluralForm(ast, errors) {
        var children = ast.cases.map(function (c) {
          if (PLURAL_CASES.indexOf(c.value) == -1 && !c.value.match(/^=\d+$/)) {
            errors.push(new ExpansionError(c.valueSourceSpan, "Plural cases should be \"=<number>\" or one of ".concat(PLURAL_CASES.join(', '))));
          }

          var expansionResult = expandNodes(c.expression);
          errors.push.apply(errors, _toConsumableArray(expansionResult.errors));
          return new Element$1("ng-template", [new Attribute('ngPluralCase', "".concat(c.value), c.valueSourceSpan)], expansionResult.nodes, c.sourceSpan, c.sourceSpan, c.sourceSpan);
        });
        var switchAttr = new Attribute('[ngPlural]', ast.switchValue, ast.switchValueSourceSpan);
        return new Element$1('ng-container', [switchAttr], children, ast.sourceSpan, ast.sourceSpan, ast.sourceSpan);
      } // ICU messages (excluding plural form) are expanded to `NgSwitch`  and `NgSwitchCase`s


      function _expandDefaultForm(ast, errors) {
        var children = ast.cases.map(function (c) {
          var expansionResult = expandNodes(c.expression);
          errors.push.apply(errors, _toConsumableArray(expansionResult.errors));

          if (c.value === 'other') {
            // other is the default case when no values match
            return new Element$1("ng-template", [new Attribute('ngSwitchDefault', '', c.valueSourceSpan)], expansionResult.nodes, c.sourceSpan, c.sourceSpan, c.sourceSpan);
          }

          return new Element$1("ng-template", [new Attribute('ngSwitchCase', "".concat(c.value), c.valueSourceSpan)], expansionResult.nodes, c.sourceSpan, c.sourceSpan, c.sourceSpan);
        });
        var switchAttr = new Attribute('[ngSwitch]', ast.switchValue, ast.switchValueSourceSpan);
        return new Element$1('ng-container', [switchAttr], children, ast.sourceSpan, ast.sourceSpan, ast.sourceSpan);
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * A segment of text within the template.
       */


      var TextAst = /*#__PURE__*/function () {
        function TextAst(value, ngContentIndex, sourceSpan) {
          _classCallCheck2(this, TextAst);

          this.value = value;
          this.ngContentIndex = ngContentIndex;
          this.sourceSpan = sourceSpan;
        }

        _createClass2(TextAst, [{
          key: "visit",
          value: function visit(visitor, context) {
            return visitor.visitText(this, context);
          }
        }]);

        return TextAst;
      }();
      /**
       * A bound expression within the text of a template.
       */


      var BoundTextAst = /*#__PURE__*/function () {
        function BoundTextAst(value, ngContentIndex, sourceSpan) {
          _classCallCheck2(this, BoundTextAst);

          this.value = value;
          this.ngContentIndex = ngContentIndex;
          this.sourceSpan = sourceSpan;
        }

        _createClass2(BoundTextAst, [{
          key: "visit",
          value: function visit(visitor, context) {
            return visitor.visitBoundText(this, context);
          }
        }]);

        return BoundTextAst;
      }();
      /**
       * A plain attribute on an element.
       */


      var AttrAst = /*#__PURE__*/function () {
        function AttrAst(name, value, sourceSpan) {
          _classCallCheck2(this, AttrAst);

          this.name = name;
          this.value = value;
          this.sourceSpan = sourceSpan;
        }

        _createClass2(AttrAst, [{
          key: "visit",
          value: function visit(visitor, context) {
            return visitor.visitAttr(this, context);
          }
        }]);

        return AttrAst;
      }();

      var BoundPropertyMapping = (_BoundPropertyMapping = {}, _defineProperty(_BoundPropertyMapping, 4
      /* Animation */
      , 4), _defineProperty(_BoundPropertyMapping, 1
      /* Attribute */
      , 1), _defineProperty(_BoundPropertyMapping, 2
      /* Class */
      , 2), _defineProperty(_BoundPropertyMapping, 0
      /* Property */
      , 0), _defineProperty(_BoundPropertyMapping, 3
      /* Style */
      , 3), _BoundPropertyMapping);
      /**
       * A binding for an element property (e.g. `[property]="expression"`) or an animation trigger (e.g.
       * `[@trigger]="stateExp"`)
       */

      var BoundElementPropertyAst = /*#__PURE__*/function () {
        function BoundElementPropertyAst(name, type, securityContext, value, unit, sourceSpan) {
          _classCallCheck2(this, BoundElementPropertyAst);

          this.name = name;
          this.type = type;
          this.securityContext = securityContext;
          this.value = value;
          this.unit = unit;
          this.sourceSpan = sourceSpan;
          this.isAnimation = this.type === 4
          /* Animation */
          ;
        }

        _createClass2(BoundElementPropertyAst, [{
          key: "visit",
          value: function visit(visitor, context) {
            return visitor.visitElementProperty(this, context);
          }
        }], [{
          key: "fromBoundProperty",
          value: function fromBoundProperty(prop) {
            var type = BoundPropertyMapping[prop.type];
            return new BoundElementPropertyAst(prop.name, type, prop.securityContext, prop.value, prop.unit, prop.sourceSpan);
          }
        }]);

        return BoundElementPropertyAst;
      }();
      /**
       * A binding for an element event (e.g. `(event)="handler()"`) or an animation trigger event (e.g.
       * `(@trigger.phase)="callback($event)"`).
       */


      var BoundEventAst = /*#__PURE__*/function () {
        function BoundEventAst(name, target, phase, handler, sourceSpan, handlerSpan) {
          _classCallCheck2(this, BoundEventAst);

          this.name = name;
          this.target = target;
          this.phase = phase;
          this.handler = handler;
          this.sourceSpan = sourceSpan;
          this.handlerSpan = handlerSpan;
          this.fullName = BoundEventAst.calcFullName(this.name, this.target, this.phase);
          this.isAnimation = !!this.phase;
        }

        _createClass2(BoundEventAst, [{
          key: "visit",
          value: function visit(visitor, context) {
            return visitor.visitEvent(this, context);
          }
        }], [{
          key: "calcFullName",
          value: function calcFullName(name, target, phase) {
            if (target) {
              return "".concat(target, ":").concat(name);
            }

            if (phase) {
              return "@".concat(name, ".").concat(phase);
            }

            return name;
          }
        }, {
          key: "fromParsedEvent",
          value: function fromParsedEvent(event) {
            var target = event.type === 0
            /* Regular */
            ? event.targetOrPhase : null;
            var phase = event.type === 1
            /* Animation */
            ? event.targetOrPhase : null;
            return new BoundEventAst(event.name, target, phase, event.handler, event.sourceSpan, event.handlerSpan);
          }
        }]);

        return BoundEventAst;
      }();
      /**
       * A reference declaration on an element (e.g. `let someName="expression"`).
       */


      var ReferenceAst = /*#__PURE__*/function () {
        function ReferenceAst(name, value, originalValue, sourceSpan) {
          _classCallCheck2(this, ReferenceAst);

          this.name = name;
          this.value = value;
          this.originalValue = originalValue;
          this.sourceSpan = sourceSpan;
        }

        _createClass2(ReferenceAst, [{
          key: "visit",
          value: function visit(visitor, context) {
            return visitor.visitReference(this, context);
          }
        }]);

        return ReferenceAst;
      }();
      /**
       * A variable declaration on a <ng-template> (e.g. `var-someName="someLocalName"`).
       */


      var VariableAst = /*#__PURE__*/function () {
        function VariableAst(name, value, sourceSpan, valueSpan) {
          _classCallCheck2(this, VariableAst);

          this.name = name;
          this.value = value;
          this.sourceSpan = sourceSpan;
          this.valueSpan = valueSpan;
        }

        _createClass2(VariableAst, [{
          key: "visit",
          value: function visit(visitor, context) {
            return visitor.visitVariable(this, context);
          }
        }], [{
          key: "fromParsedVariable",
          value: function fromParsedVariable(v) {
            return new VariableAst(v.name, v.value, v.sourceSpan, v.valueSpan);
          }
        }]);

        return VariableAst;
      }();
      /**
       * An element declaration in a template.
       */


      var ElementAst = /*#__PURE__*/function () {
        function ElementAst(name, attrs, inputs, outputs, references, directives, providers, hasViewContainer, queryMatches, children, ngContentIndex, sourceSpan, endSourceSpan) {
          _classCallCheck2(this, ElementAst);

          this.name = name;
          this.attrs = attrs;
          this.inputs = inputs;
          this.outputs = outputs;
          this.references = references;
          this.directives = directives;
          this.providers = providers;
          this.hasViewContainer = hasViewContainer;
          this.queryMatches = queryMatches;
          this.children = children;
          this.ngContentIndex = ngContentIndex;
          this.sourceSpan = sourceSpan;
          this.endSourceSpan = endSourceSpan;
        }

        _createClass2(ElementAst, [{
          key: "visit",
          value: function visit(visitor, context) {
            return visitor.visitElement(this, context);
          }
        }]);

        return ElementAst;
      }();
      /**
       * A `<ng-template>` element included in an Angular template.
       */


      var EmbeddedTemplateAst = /*#__PURE__*/function () {
        function EmbeddedTemplateAst(attrs, outputs, references, variables, directives, providers, hasViewContainer, queryMatches, children, ngContentIndex, sourceSpan) {
          _classCallCheck2(this, EmbeddedTemplateAst);

          this.attrs = attrs;
          this.outputs = outputs;
          this.references = references;
          this.variables = variables;
          this.directives = directives;
          this.providers = providers;
          this.hasViewContainer = hasViewContainer;
          this.queryMatches = queryMatches;
          this.children = children;
          this.ngContentIndex = ngContentIndex;
          this.sourceSpan = sourceSpan;
        }

        _createClass2(EmbeddedTemplateAst, [{
          key: "visit",
          value: function visit(visitor, context) {
            return visitor.visitEmbeddedTemplate(this, context);
          }
        }]);

        return EmbeddedTemplateAst;
      }();
      /**
       * A directive property with a bound value (e.g. `*ngIf="condition").
       */


      var BoundDirectivePropertyAst = /*#__PURE__*/function () {
        function BoundDirectivePropertyAst(directiveName, templateName, value, sourceSpan) {
          _classCallCheck2(this, BoundDirectivePropertyAst);

          this.directiveName = directiveName;
          this.templateName = templateName;
          this.value = value;
          this.sourceSpan = sourceSpan;
        }

        _createClass2(BoundDirectivePropertyAst, [{
          key: "visit",
          value: function visit(visitor, context) {
            return visitor.visitDirectiveProperty(this, context);
          }
        }]);

        return BoundDirectivePropertyAst;
      }();
      /**
       * A directive declared on an element.
       */


      var DirectiveAst = /*#__PURE__*/function () {
        function DirectiveAst(directive, inputs, hostProperties, hostEvents, contentQueryStartId, sourceSpan) {
          _classCallCheck2(this, DirectiveAst);

          this.directive = directive;
          this.inputs = inputs;
          this.hostProperties = hostProperties;
          this.hostEvents = hostEvents;
          this.contentQueryStartId = contentQueryStartId;
          this.sourceSpan = sourceSpan;
        }

        _createClass2(DirectiveAst, [{
          key: "visit",
          value: function visit(visitor, context) {
            return visitor.visitDirective(this, context);
          }
        }]);

        return DirectiveAst;
      }();
      /**
       * A provider declared on an element
       */


      var ProviderAst = /*#__PURE__*/function () {
        function ProviderAst(token, multiProvider, eager, providers, providerType, lifecycleHooks, sourceSpan, isModule) {
          _classCallCheck2(this, ProviderAst);

          this.token = token;
          this.multiProvider = multiProvider;
          this.eager = eager;
          this.providers = providers;
          this.providerType = providerType;
          this.lifecycleHooks = lifecycleHooks;
          this.sourceSpan = sourceSpan;
          this.isModule = isModule;
        }

        _createClass2(ProviderAst, [{
          key: "visit",
          value: function visit(visitor, context) {
            // No visit method in the visitor for now...
            return null;
          }
        }]);

        return ProviderAst;
      }();

      var ProviderAstType;

      (function (ProviderAstType) {
        ProviderAstType[ProviderAstType["PublicService"] = 0] = "PublicService";
        ProviderAstType[ProviderAstType["PrivateService"] = 1] = "PrivateService";
        ProviderAstType[ProviderAstType["Component"] = 2] = "Component";
        ProviderAstType[ProviderAstType["Directive"] = 3] = "Directive";
        ProviderAstType[ProviderAstType["Builtin"] = 4] = "Builtin";
      })(ProviderAstType || (ProviderAstType = {}));
      /**
       * Position where content is to be projected (instance of `<ng-content>` in a template).
       */


      var NgContentAst = /*#__PURE__*/function () {
        function NgContentAst(index, ngContentIndex, sourceSpan) {
          _classCallCheck2(this, NgContentAst);

          this.index = index;
          this.ngContentIndex = ngContentIndex;
          this.sourceSpan = sourceSpan;
        }

        _createClass2(NgContentAst, [{
          key: "visit",
          value: function visit(visitor, context) {
            return visitor.visitNgContent(this, context);
          }
        }]);

        return NgContentAst;
      }();
      /**
       * A visitor that accepts each node but doesn't do anything. It is intended to be used
       * as the base class for a visitor that is only interested in a subset of the node types.
       */


      var NullTemplateVisitor = /*#__PURE__*/function () {
        function NullTemplateVisitor() {
          _classCallCheck2(this, NullTemplateVisitor);
        }

        _createClass2(NullTemplateVisitor, [{
          key: "visitNgContent",
          value: function visitNgContent(ast, context) {}
        }, {
          key: "visitEmbeddedTemplate",
          value: function visitEmbeddedTemplate(ast, context) {}
        }, {
          key: "visitElement",
          value: function visitElement(ast, context) {}
        }, {
          key: "visitReference",
          value: function visitReference(ast, context) {}
        }, {
          key: "visitVariable",
          value: function visitVariable(ast, context) {}
        }, {
          key: "visitEvent",
          value: function visitEvent(ast, context) {}
        }, {
          key: "visitElementProperty",
          value: function visitElementProperty(ast, context) {}
        }, {
          key: "visitAttr",
          value: function visitAttr(ast, context) {}
        }, {
          key: "visitBoundText",
          value: function visitBoundText(ast, context) {}
        }, {
          key: "visitText",
          value: function visitText(ast, context) {}
        }, {
          key: "visitDirective",
          value: function visitDirective(ast, context) {}
        }, {
          key: "visitDirectiveProperty",
          value: function visitDirectiveProperty(ast, context) {}
        }]);

        return NullTemplateVisitor;
      }();
      /**
       * Base class that can be used to build a visitor that visits each node
       * in an template ast recursively.
       */


      var RecursiveTemplateAstVisitor = /*#__PURE__*/function (_NullTemplateVisitor) {
        _inherits2(RecursiveTemplateAstVisitor, _NullTemplateVisitor);

        var _super100 = _createSuper2(RecursiveTemplateAstVisitor);

        function RecursiveTemplateAstVisitor() {
          _classCallCheck2(this, RecursiveTemplateAstVisitor);

          return _super100.call(this);
        } // Nodes with children


        _createClass2(RecursiveTemplateAstVisitor, [{
          key: "visitEmbeddedTemplate",
          value: function visitEmbeddedTemplate(ast, context) {
            return this.visitChildren(context, function (visit) {
              visit(ast.attrs);
              visit(ast.references);
              visit(ast.variables);
              visit(ast.directives);
              visit(ast.providers);
              visit(ast.children);
            });
          }
        }, {
          key: "visitElement",
          value: function visitElement(ast, context) {
            return this.visitChildren(context, function (visit) {
              visit(ast.attrs);
              visit(ast.inputs);
              visit(ast.outputs);
              visit(ast.references);
              visit(ast.directives);
              visit(ast.providers);
              visit(ast.children);
            });
          }
        }, {
          key: "visitDirective",
          value: function visitDirective(ast, context) {
            return this.visitChildren(context, function (visit) {
              visit(ast.inputs);
              visit(ast.hostProperties);
              visit(ast.hostEvents);
            });
          }
        }, {
          key: "visitChildren",
          value: function visitChildren(context, cb) {
            var results = [];
            var t = this;

            function visit(children) {
              if (children && children.length) results.push(templateVisitAll(t, children, context));
            }

            cb(visit);
            return Array.prototype.concat.apply([], results);
          }
        }]);

        return RecursiveTemplateAstVisitor;
      }(NullTemplateVisitor);
      /**
       * Visit every node in a list of {@link TemplateAst}s with the given {@link TemplateAstVisitor}.
       */


      function templateVisitAll(visitor, asts) {
        var context = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
        var result = [];
        var visit = visitor.visit ? function (ast) {
          return visitor.visit(ast, context) || ast.visit(visitor, context);
        } : function (ast) {
          return ast.visit(visitor, context);
        };
        asts.forEach(function (ast) {
          var astResult = visit(ast);

          if (astResult) {
            result.push(astResult);
          }
        });
        return result;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var ProviderError = /*#__PURE__*/function (_ParseError4) {
        _inherits2(ProviderError, _ParseError4);

        var _super101 = _createSuper2(ProviderError);

        function ProviderError(message, span) {
          _classCallCheck2(this, ProviderError);

          return _super101.call(this, span, message);
        }

        return ProviderError;
      }(ParseError);

      var ProviderViewContext = function ProviderViewContext(reflector, component) {
        var _this181 = this;

        _classCallCheck2(this, ProviderViewContext);

        this.reflector = reflector;
        this.component = component;
        this.errors = [];
        this.viewQueries = _getViewQueries(component);
        this.viewProviders = new Map();
        component.viewProviders.forEach(function (provider) {
          if (_this181.viewProviders.get(tokenReference(provider.token)) == null) {
            _this181.viewProviders.set(tokenReference(provider.token), true);
          }
        });
      };

      var ProviderElementContext = /*#__PURE__*/function () {
        function ProviderElementContext(viewContext, _parent, _isViewRoot, _directiveAsts, attrs, refs, isTemplate, contentQueryStartId, _sourceSpan) {
          var _this182 = this;

          _classCallCheck2(this, ProviderElementContext);

          this.viewContext = viewContext;
          this._parent = _parent;
          this._isViewRoot = _isViewRoot;
          this._directiveAsts = _directiveAsts;
          this._sourceSpan = _sourceSpan;
          this._transformedProviders = new Map();
          this._seenProviders = new Map();
          this._queriedTokens = new Map();
          this.transformedHasViewContainer = false;
          this._attrs = {};
          attrs.forEach(function (attrAst) {
            return _this182._attrs[attrAst.name] = attrAst.value;
          });

          var directivesMeta = _directiveAsts.map(function (directiveAst) {
            return directiveAst.directive;
          });

          this._allProviders = _resolveProvidersFromDirectives(directivesMeta, _sourceSpan, viewContext.errors);
          this._contentQueries = _getContentQueries(contentQueryStartId, directivesMeta);
          Array.from(this._allProviders.values()).forEach(function (provider) {
            _this182._addQueryReadsTo(provider.token, provider.token, _this182._queriedTokens);
          });

          if (isTemplate) {
            var templateRefId = createTokenForExternalReference(this.viewContext.reflector, Identifiers.TemplateRef);

            this._addQueryReadsTo(templateRefId, templateRefId, this._queriedTokens);
          }

          refs.forEach(function (refAst) {
            var defaultQueryValue = refAst.value || createTokenForExternalReference(_this182.viewContext.reflector, Identifiers.ElementRef);

            _this182._addQueryReadsTo({
              value: refAst.name
            }, defaultQueryValue, _this182._queriedTokens);
          });

          if (this._queriedTokens.get(this.viewContext.reflector.resolveExternalReference(Identifiers.ViewContainerRef))) {
            this.transformedHasViewContainer = true;
          } // create the providers that we know are eager first


          Array.from(this._allProviders.values()).forEach(function (provider) {
            var eager = provider.eager || _this182._queriedTokens.get(tokenReference(provider.token));

            if (eager) {
              _this182._getOrCreateLocalProvider(provider.providerType, provider.token, true);
            }
          });
        }

        _createClass2(ProviderElementContext, [{
          key: "afterElement",
          value: function afterElement() {
            var _this183 = this;

            // collect lazy providers
            Array.from(this._allProviders.values()).forEach(function (provider) {
              _this183._getOrCreateLocalProvider(provider.providerType, provider.token, false);
            });
          }
        }, {
          key: "transformProviders",
          get: function get() {
            // Note: Maps keep their insertion order.
            var lazyProviders = [];
            var eagerProviders = [];

            this._transformedProviders.forEach(function (provider) {
              if (provider.eager) {
                eagerProviders.push(provider);
              } else {
                lazyProviders.push(provider);
              }
            });

            return lazyProviders.concat(eagerProviders);
          }
        }, {
          key: "transformedDirectiveAsts",
          get: function get() {
            var sortedProviderTypes = this.transformProviders.map(function (provider) {
              return provider.token.identifier;
            });

            var sortedDirectives = this._directiveAsts.slice();

            sortedDirectives.sort(function (dir1, dir2) {
              return sortedProviderTypes.indexOf(dir1.directive.type) - sortedProviderTypes.indexOf(dir2.directive.type);
            });
            return sortedDirectives;
          }
        }, {
          key: "queryMatches",
          get: function get() {
            var allMatches = [];

            this._queriedTokens.forEach(function (matches) {
              allMatches.push.apply(allMatches, _toConsumableArray(matches));
            });

            return allMatches;
          }
        }, {
          key: "_addQueryReadsTo",
          value: function _addQueryReadsTo(token, defaultValue, queryReadTokens) {
            this._getQueriesFor(token).forEach(function (query) {
              var queryValue = query.meta.read || defaultValue;
              var tokenRef = tokenReference(queryValue);
              var queryMatches = queryReadTokens.get(tokenRef);

              if (!queryMatches) {
                queryMatches = [];
                queryReadTokens.set(tokenRef, queryMatches);
              }

              queryMatches.push({
                queryId: query.queryId,
                value: queryValue
              });
            });
          }
        }, {
          key: "_getQueriesFor",
          value: function _getQueriesFor(token) {
            var result = [];
            var currentEl = this;
            var distance = 0;
            var queries;

            while (currentEl !== null) {
              queries = currentEl._contentQueries.get(tokenReference(token));

              if (queries) {
                result.push.apply(result, _toConsumableArray(queries.filter(function (query) {
                  return query.meta.descendants || distance <= 1;
                })));
              }

              if (currentEl._directiveAsts.length > 0) {
                distance++;
              }

              currentEl = currentEl._parent;
            }

            queries = this.viewContext.viewQueries.get(tokenReference(token));

            if (queries) {
              result.push.apply(result, _toConsumableArray(queries));
            }

            return result;
          }
        }, {
          key: "_getOrCreateLocalProvider",
          value: function _getOrCreateLocalProvider(requestingProviderType, token, eager) {
            var _this184 = this;

            var resolvedProvider = this._allProviders.get(tokenReference(token));

            if (!resolvedProvider || (requestingProviderType === ProviderAstType.Directive || requestingProviderType === ProviderAstType.PublicService) && resolvedProvider.providerType === ProviderAstType.PrivateService || (requestingProviderType === ProviderAstType.PrivateService || requestingProviderType === ProviderAstType.PublicService) && resolvedProvider.providerType === ProviderAstType.Builtin) {
              return null;
            }

            var transformedProviderAst = this._transformedProviders.get(tokenReference(token));

            if (transformedProviderAst) {
              return transformedProviderAst;
            }

            if (this._seenProviders.get(tokenReference(token)) != null) {
              this.viewContext.errors.push(new ProviderError("Cannot instantiate cyclic dependency! ".concat(tokenName(token)), this._sourceSpan));
              return null;
            }

            this._seenProviders.set(tokenReference(token), true);

            var transformedProviders = resolvedProvider.providers.map(function (provider) {
              var transformedUseValue = provider.useValue;
              var transformedUseExisting = provider.useExisting;
              var transformedDeps = undefined;

              if (provider.useExisting != null) {
                var existingDiDep = _this184._getDependency(resolvedProvider.providerType, {
                  token: provider.useExisting
                }, eager);

                if (existingDiDep.token != null) {
                  transformedUseExisting = existingDiDep.token;
                } else {
                  transformedUseExisting = null;
                  transformedUseValue = existingDiDep.value;
                }
              } else if (provider.useFactory) {
                var deps = provider.deps || provider.useFactory.diDeps;
                transformedDeps = deps.map(function (dep) {
                  return _this184._getDependency(resolvedProvider.providerType, dep, eager);
                });
              } else if (provider.useClass) {
                var _deps = provider.deps || provider.useClass.diDeps;

                transformedDeps = _deps.map(function (dep) {
                  return _this184._getDependency(resolvedProvider.providerType, dep, eager);
                });
              }

              return _transformProvider(provider, {
                useExisting: transformedUseExisting,
                useValue: transformedUseValue,
                deps: transformedDeps
              });
            });
            transformedProviderAst = _transformProviderAst(resolvedProvider, {
              eager: eager,
              providers: transformedProviders
            });

            this._transformedProviders.set(tokenReference(token), transformedProviderAst);

            return transformedProviderAst;
          }
        }, {
          key: "_getLocalDependency",
          value: function _getLocalDependency(requestingProviderType, dep) {
            var eager = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;

            if (dep.isAttribute) {
              var attrValue = this._attrs[dep.token.value];
              return {
                isValue: true,
                value: attrValue == null ? null : attrValue
              };
            }

            if (dep.token != null) {
              // access builtints
              if (requestingProviderType === ProviderAstType.Directive || requestingProviderType === ProviderAstType.Component) {
                if (tokenReference(dep.token) === this.viewContext.reflector.resolveExternalReference(Identifiers.Renderer) || tokenReference(dep.token) === this.viewContext.reflector.resolveExternalReference(Identifiers.ElementRef) || tokenReference(dep.token) === this.viewContext.reflector.resolveExternalReference(Identifiers.ChangeDetectorRef) || tokenReference(dep.token) === this.viewContext.reflector.resolveExternalReference(Identifiers.TemplateRef)) {
                  return dep;
                }

                if (tokenReference(dep.token) === this.viewContext.reflector.resolveExternalReference(Identifiers.ViewContainerRef)) {
                  this.transformedHasViewContainer = true;
                }
              } // access the injector


              if (tokenReference(dep.token) === this.viewContext.reflector.resolveExternalReference(Identifiers.Injector)) {
                return dep;
              } // access providers


              if (this._getOrCreateLocalProvider(requestingProviderType, dep.token, eager) != null) {
                return dep;
              }
            }

            return null;
          }
        }, {
          key: "_getDependency",
          value: function _getDependency(requestingProviderType, dep) {
            var eager = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
            var currElement = this;
            var currEager = eager;
            var result = null;

            if (!dep.isSkipSelf) {
              result = this._getLocalDependency(requestingProviderType, dep, eager);
            }

            if (dep.isSelf) {
              if (!result && dep.isOptional) {
                result = {
                  isValue: true,
                  value: null
                };
              }
            } else {
              // check parent elements
              while (!result && currElement._parent) {
                var prevElement = currElement;
                currElement = currElement._parent;

                if (prevElement._isViewRoot) {
                  currEager = false;
                }

                result = currElement._getLocalDependency(ProviderAstType.PublicService, dep, currEager);
              } // check @Host restriction


              if (!result) {
                if (!dep.isHost || this.viewContext.component.isHost || this.viewContext.component.type.reference === tokenReference(dep.token) || this.viewContext.viewProviders.get(tokenReference(dep.token)) != null) {
                  result = dep;
                } else {
                  result = dep.isOptional ? {
                    isValue: true,
                    value: null
                  } : null;
                }
              }
            }

            if (!result) {
              this.viewContext.errors.push(new ProviderError("No provider for ".concat(tokenName(dep.token)), this._sourceSpan));
            }

            return result;
          }
        }]);

        return ProviderElementContext;
      }();

      var NgModuleProviderAnalyzer = /*#__PURE__*/function () {
        function NgModuleProviderAnalyzer(reflector, ngModule, extraProviders, sourceSpan) {
          var _this185 = this;

          _classCallCheck2(this, NgModuleProviderAnalyzer);

          this.reflector = reflector;
          this._transformedProviders = new Map();
          this._seenProviders = new Map();
          this._errors = [];
          this._allProviders = new Map();
          ngModule.transitiveModule.modules.forEach(function (ngModuleType) {
            var ngModuleProvider = {
              token: {
                identifier: ngModuleType
              },
              useClass: ngModuleType
            };

            _resolveProviders([ngModuleProvider], ProviderAstType.PublicService, true, sourceSpan, _this185._errors, _this185._allProviders,
            /* isModule */
            true);
          });

          _resolveProviders(ngModule.transitiveModule.providers.map(function (entry) {
            return entry.provider;
          }).concat(extraProviders), ProviderAstType.PublicService, false, sourceSpan, this._errors, this._allProviders,
          /* isModule */
          false);
        }

        _createClass2(NgModuleProviderAnalyzer, [{
          key: "parse",
          value: function parse() {
            var _this186 = this;

            Array.from(this._allProviders.values()).forEach(function (provider) {
              _this186._getOrCreateLocalProvider(provider.token, provider.eager);
            });

            if (this._errors.length > 0) {
              var errorString = this._errors.join('\n');

              throw new Error("Provider parse errors:\n".concat(errorString));
            } // Note: Maps keep their insertion order.


            var lazyProviders = [];
            var eagerProviders = [];

            this._transformedProviders.forEach(function (provider) {
              if (provider.eager) {
                eagerProviders.push(provider);
              } else {
                lazyProviders.push(provider);
              }
            });

            return lazyProviders.concat(eagerProviders);
          }
        }, {
          key: "_getOrCreateLocalProvider",
          value: function _getOrCreateLocalProvider(token, eager) {
            var _this187 = this;

            var resolvedProvider = this._allProviders.get(tokenReference(token));

            if (!resolvedProvider) {
              return null;
            }

            var transformedProviderAst = this._transformedProviders.get(tokenReference(token));

            if (transformedProviderAst) {
              return transformedProviderAst;
            }

            if (this._seenProviders.get(tokenReference(token)) != null) {
              this._errors.push(new ProviderError("Cannot instantiate cyclic dependency! ".concat(tokenName(token)), resolvedProvider.sourceSpan));

              return null;
            }

            this._seenProviders.set(tokenReference(token), true);

            var transformedProviders = resolvedProvider.providers.map(function (provider) {
              var transformedUseValue = provider.useValue;
              var transformedUseExisting = provider.useExisting;
              var transformedDeps = undefined;

              if (provider.useExisting != null) {
                var existingDiDep = _this187._getDependency({
                  token: provider.useExisting
                }, eager, resolvedProvider.sourceSpan);

                if (existingDiDep.token != null) {
                  transformedUseExisting = existingDiDep.token;
                } else {
                  transformedUseExisting = null;
                  transformedUseValue = existingDiDep.value;
                }
              } else if (provider.useFactory) {
                var deps = provider.deps || provider.useFactory.diDeps;
                transformedDeps = deps.map(function (dep) {
                  return _this187._getDependency(dep, eager, resolvedProvider.sourceSpan);
                });
              } else if (provider.useClass) {
                var _deps2 = provider.deps || provider.useClass.diDeps;

                transformedDeps = _deps2.map(function (dep) {
                  return _this187._getDependency(dep, eager, resolvedProvider.sourceSpan);
                });
              }

              return _transformProvider(provider, {
                useExisting: transformedUseExisting,
                useValue: transformedUseValue,
                deps: transformedDeps
              });
            });
            transformedProviderAst = _transformProviderAst(resolvedProvider, {
              eager: eager,
              providers: transformedProviders
            });

            this._transformedProviders.set(tokenReference(token), transformedProviderAst);

            return transformedProviderAst;
          }
        }, {
          key: "_getDependency",
          value: function _getDependency(dep) {
            var eager = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
            var requestorSourceSpan = arguments.length > 2 ? arguments[2] : undefined;
            var foundLocal = false;

            if (!dep.isSkipSelf && dep.token != null) {
              // access the injector
              if (tokenReference(dep.token) === this.reflector.resolveExternalReference(Identifiers.Injector) || tokenReference(dep.token) === this.reflector.resolveExternalReference(Identifiers.ComponentFactoryResolver)) {
                foundLocal = true; // access providers
              } else if (this._getOrCreateLocalProvider(dep.token, eager) != null) {
                foundLocal = true;
              }
            }

            return dep;
          }
        }]);

        return NgModuleProviderAnalyzer;
      }();

      function _transformProvider(provider, _ref12) {
        var useExisting = _ref12.useExisting,
            useValue = _ref12.useValue,
            deps = _ref12.deps;
        return {
          token: provider.token,
          useClass: provider.useClass,
          useExisting: useExisting,
          useFactory: provider.useFactory,
          useValue: useValue,
          deps: deps,
          multi: provider.multi
        };
      }

      function _transformProviderAst(provider, _ref13) {
        var eager = _ref13.eager,
            providers = _ref13.providers;
        return new ProviderAst(provider.token, provider.multiProvider, provider.eager || eager, providers, provider.providerType, provider.lifecycleHooks, provider.sourceSpan, provider.isModule);
      }

      function _resolveProvidersFromDirectives(directives, sourceSpan, targetErrors) {
        var providersByToken = new Map();
        directives.forEach(function (directive) {
          var dirProvider = {
            token: {
              identifier: directive.type
            },
            useClass: directive.type
          };

          _resolveProviders([dirProvider], directive.isComponent ? ProviderAstType.Component : ProviderAstType.Directive, true, sourceSpan, targetErrors, providersByToken,
          /* isModule */
          false);
        }); // Note: directives need to be able to overwrite providers of a component!

        var directivesWithComponentFirst = directives.filter(function (dir) {
          return dir.isComponent;
        }).concat(directives.filter(function (dir) {
          return !dir.isComponent;
        }));
        directivesWithComponentFirst.forEach(function (directive) {
          _resolveProviders(directive.providers, ProviderAstType.PublicService, false, sourceSpan, targetErrors, providersByToken,
          /* isModule */
          false);

          _resolveProviders(directive.viewProviders, ProviderAstType.PrivateService, false, sourceSpan, targetErrors, providersByToken,
          /* isModule */
          false);
        });
        return providersByToken;
      }

      function _resolveProviders(providers, providerType, eager, sourceSpan, targetErrors, targetProvidersByToken, isModule) {
        providers.forEach(function (provider) {
          var resolvedProvider = targetProvidersByToken.get(tokenReference(provider.token));

          if (resolvedProvider != null && !!resolvedProvider.multiProvider !== !!provider.multi) {
            targetErrors.push(new ProviderError("Mixing multi and non multi provider is not possible for token ".concat(tokenName(resolvedProvider.token)), sourceSpan));
          }

          if (!resolvedProvider) {
            var lifecycleHooks = provider.token.identifier && provider.token.identifier.lifecycleHooks ? provider.token.identifier.lifecycleHooks : [];
            var isUseValue = !(provider.useClass || provider.useExisting || provider.useFactory);
            resolvedProvider = new ProviderAst(provider.token, !!provider.multi, eager || isUseValue, [provider], providerType, lifecycleHooks, sourceSpan, isModule);
            targetProvidersByToken.set(tokenReference(provider.token), resolvedProvider);
          } else {
            if (!provider.multi) {
              resolvedProvider.providers.length = 0;
            }

            resolvedProvider.providers.push(provider);
          }
        });
      }

      function _getViewQueries(component) {
        // Note: queries start with id 1 so we can use the number in a Bloom filter!
        var viewQueryId = 1;
        var viewQueries = new Map();

        if (component.viewQueries) {
          component.viewQueries.forEach(function (query) {
            return _addQueryToTokenMap(viewQueries, {
              meta: query,
              queryId: viewQueryId++
            });
          });
        }

        return viewQueries;
      }

      function _getContentQueries(contentQueryStartId, directives) {
        var contentQueryId = contentQueryStartId;
        var contentQueries = new Map();
        directives.forEach(function (directive, directiveIndex) {
          if (directive.queries) {
            directive.queries.forEach(function (query) {
              return _addQueryToTokenMap(contentQueries, {
                meta: query,
                queryId: contentQueryId++
              });
            });
          }
        });
        return contentQueries;
      }

      function _addQueryToTokenMap(map, query) {
        query.meta.selectors.forEach(function (token) {
          var entry = map.get(tokenReference(token));

          if (!entry) {
            entry = [];
            map.set(tokenReference(token), entry);
          }

          entry.push(query);
        });
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var StyleWithImports = function StyleWithImports(style, styleUrls) {
        _classCallCheck2(this, StyleWithImports);

        this.style = style;
        this.styleUrls = styleUrls;
      };

      function isStyleUrlResolvable(url) {
        if (url == null || url.length === 0 || url[0] == '/') return false;
        var schemeMatch = url.match(URL_WITH_SCHEMA_REGEXP);
        return schemeMatch === null || schemeMatch[1] == 'package' || schemeMatch[1] == 'asset';
      }
      /**
       * Rewrites stylesheets by resolving and removing the @import urls that
       * are either relative or don't have a `package:` scheme
       */


      function extractStyleUrls(resolver, baseUrl, cssText) {
        var foundUrls = [];
        var modifiedCssText = cssText.replace(CSS_STRIPPABLE_COMMENT_REGEXP, '').replace(CSS_IMPORT_REGEXP, function () {
          var url = (arguments.length <= 1 ? undefined : arguments[1]) || (arguments.length <= 2 ? undefined : arguments[2]);

          if (!isStyleUrlResolvable(url)) {
            // Do not attempt to resolve non-package absolute URLs with URI
            // scheme
            return arguments.length <= 0 ? undefined : arguments[0];
          }

          foundUrls.push(resolver.resolve(baseUrl, url));
          return '';
        });
        return new StyleWithImports(modifiedCssText, foundUrls);
      }

      var CSS_IMPORT_REGEXP = /@import\s+(?:url\()?\s*(?:(?:['"]([^'"]*))|([^;\)\s]*))[^;]*;?/g;
      var CSS_STRIPPABLE_COMMENT_REGEXP = /\/\*(?!#\s*(?:sourceURL|sourceMappingURL)=)[\s\S]+?\*\//g;
      var URL_WITH_SCHEMA_REGEXP = /^([^:/?#]+):/;
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      var PROPERTY_PARTS_SEPARATOR = '.';
      var ATTRIBUTE_PREFIX = 'attr';
      var CLASS_PREFIX = 'class';
      var STYLE_PREFIX = 'style';
      var TEMPLATE_ATTR_PREFIX = '*';
      var ANIMATE_PROP_PREFIX = 'animate-';
      /**
       * Parses bindings in templates and in the directive host area.
       */

      var BindingParser = /*#__PURE__*/function () {
        function BindingParser(_exprParser, _interpolationConfig, _schemaRegistry, pipes, errors) {
          _classCallCheck2(this, BindingParser);

          this._exprParser = _exprParser;
          this._interpolationConfig = _interpolationConfig;
          this._schemaRegistry = _schemaRegistry;
          this.errors = errors;
          this.pipesByName = null;
          this._usedPipes = new Map(); // When the `pipes` parameter is `null`, do not check for used pipes
          // This is used in IVY when we might not know the available pipes at compile time

          if (pipes) {
            var pipesByName = new Map();
            pipes.forEach(function (pipe) {
              return pipesByName.set(pipe.name, pipe);
            });
            this.pipesByName = pipesByName;
          }
        }

        _createClass2(BindingParser, [{
          key: "interpolationConfig",
          get: function get() {
            return this._interpolationConfig;
          }
        }, {
          key: "getUsedPipes",
          value: function getUsedPipes() {
            return Array.from(this._usedPipes.values());
          }
        }, {
          key: "createBoundHostProperties",
          value: function createBoundHostProperties(dirMeta, sourceSpan) {
            var _this188 = this;

            if (dirMeta.hostProperties) {
              var boundProps = [];
              Object.keys(dirMeta.hostProperties).forEach(function (propName) {
                var expression = dirMeta.hostProperties[propName];

                if (typeof expression === 'string') {
                  _this188.parsePropertyBinding(propName, expression, true, sourceSpan, sourceSpan.start.offset, undefined, [], // Use the `sourceSpan` for  `keySpan`. This isn't really accurate, but neither is the
                  // sourceSpan, as it represents the sourceSpan of the host itself rather than the
                  // source of the host binding (which doesn't exist in the template). Regardless,
                  // neither of these values are used in Ivy but are only here to satisfy the function
                  // signature. This should likely be refactored in the future so that `sourceSpan`
                  // isn't being used inaccurately.
                  boundProps, sourceSpan);
                } else {
                  _this188._reportError("Value of the host property binding \"".concat(propName, "\" needs to be a string representing an expression but got \"").concat(expression, "\" (").concat(typeof expression, ")"), sourceSpan);
                }
              });
              return boundProps;
            }

            return null;
          }
        }, {
          key: "createDirectiveHostPropertyAsts",
          value: function createDirectiveHostPropertyAsts(dirMeta, elementSelector, sourceSpan) {
            var _this189 = this;

            var boundProps = this.createBoundHostProperties(dirMeta, sourceSpan);
            return boundProps && boundProps.map(function (prop) {
              return _this189.createBoundElementProperty(elementSelector, prop);
            });
          }
        }, {
          key: "createDirectiveHostEventAsts",
          value: function createDirectiveHostEventAsts(dirMeta, sourceSpan) {
            var _this190 = this;

            if (dirMeta.hostListeners) {
              var targetEvents = [];
              Object.keys(dirMeta.hostListeners).forEach(function (propName) {
                var expression = dirMeta.hostListeners[propName];

                if (typeof expression === 'string') {
                  // TODO: pass a more accurate handlerSpan for this event.
                  _this190.parseEvent(propName, expression, sourceSpan, sourceSpan, [], targetEvents);
                } else {
                  _this190._reportError("Value of the host listener \"".concat(propName, "\" needs to be a string representing an expression but got \"").concat(expression, "\" (").concat(typeof expression, ")"), sourceSpan);
                }
              });
              return targetEvents;
            }

            return null;
          }
        }, {
          key: "parseInterpolation",
          value: function parseInterpolation(value, sourceSpan) {
            var sourceInfo = sourceSpan.start.toString();

            try {
              var ast = this._exprParser.parseInterpolation(value, sourceInfo, sourceSpan.start.offset, this._interpolationConfig);

              if (ast) this._reportExpressionParserErrors(ast.errors, sourceSpan);

              this._checkPipes(ast, sourceSpan);

              return ast;
            } catch (e) {
              this._reportError("".concat(e), sourceSpan);

              return this._exprParser.wrapLiteralPrimitive('ERROR', sourceInfo, sourceSpan.start.offset);
            }
          }
          /**
           * Similar to `parseInterpolation`, but treats the provided string as a single expression
           * element that would normally appear within the interpolation prefix and suffix (`{{` and `}}`).
           * This is used for parsing the switch expression in ICUs.
           */

        }, {
          key: "parseInterpolationExpression",
          value: function parseInterpolationExpression(expression, sourceSpan) {
            var sourceInfo = sourceSpan.start.toString();

            try {
              var ast = this._exprParser.parseInterpolationExpression(expression, sourceInfo, sourceSpan.start.offset);

              if (ast) this._reportExpressionParserErrors(ast.errors, sourceSpan);

              this._checkPipes(ast, sourceSpan);

              return ast;
            } catch (e) {
              this._reportError("".concat(e), sourceSpan);

              return this._exprParser.wrapLiteralPrimitive('ERROR', sourceInfo, sourceSpan.start.offset);
            }
          }
          /**
           * Parses the bindings in a microsyntax expression, and converts them to
           * `ParsedProperty` or `ParsedVariable`.
           *
           * @param tplKey template binding name
           * @param tplValue template binding value
           * @param sourceSpan span of template binding relative to entire the template
           * @param absoluteValueOffset start of the tplValue relative to the entire template
           * @param targetMatchableAttrs potential attributes to match in the template
           * @param targetProps target property bindings in the template
           * @param targetVars target variables in the template
           */

        }, {
          key: "parseInlineTemplateBinding",
          value: function parseInlineTemplateBinding(tplKey, tplValue, sourceSpan, absoluteValueOffset, targetMatchableAttrs, targetProps, targetVars, isIvyAst) {
            var absoluteKeyOffset = sourceSpan.start.offset + TEMPLATE_ATTR_PREFIX.length;

            var bindings = this._parseTemplateBindings(tplKey, tplValue, sourceSpan, absoluteKeyOffset, absoluteValueOffset);

            var _iterator12 = _createForOfIteratorHelper(bindings),
                _step12;

            try {
              for (_iterator12.s(); !(_step12 = _iterator12.n()).done;) {
                var binding = _step12.value;
                // sourceSpan is for the entire HTML attribute. bindingSpan is for a particular
                // binding within the microsyntax expression so it's more narrow than sourceSpan.
                var bindingSpan = moveParseSourceSpan(sourceSpan, binding.sourceSpan);
                var key = binding.key.source;
                var keySpan = moveParseSourceSpan(sourceSpan, binding.key.span);

                if (binding instanceof VariableBinding) {
                  var value = binding.value ? binding.value.source : '$implicit';
                  var valueSpan = binding.value ? moveParseSourceSpan(sourceSpan, binding.value.span) : undefined;
                  targetVars.push(new ParsedVariable(key, value, bindingSpan, keySpan, valueSpan));
                } else if (binding.value) {
                  var srcSpan = isIvyAst ? bindingSpan : sourceSpan;

                  var _valueSpan = moveParseSourceSpan(sourceSpan, binding.value.ast.sourceSpan);

                  this._parsePropertyAst(key, binding.value, srcSpan, keySpan, _valueSpan, targetMatchableAttrs, targetProps);
                } else {
                  targetMatchableAttrs.push([key, ''
                  /* value */
                  ]); // Since this is a literal attribute with no RHS, source span should be
                  // just the key span.

                  this.parseLiteralAttr(key, null
                  /* value */
                  , keySpan, absoluteValueOffset, undefined
                  /* valueSpan */
                  , targetMatchableAttrs, targetProps, keySpan);
                }
              }
            } catch (err) {
              _iterator12.e(err);
            } finally {
              _iterator12.f();
            }
          }
          /**
           * Parses the bindings in a microsyntax expression, e.g.
           * ```
           *    <tag *tplKey="let value1 = prop; let value2 = localVar">
           * ```
           *
           * @param tplKey template binding name
           * @param tplValue template binding value
           * @param sourceSpan span of template binding relative to entire the template
           * @param absoluteKeyOffset start of the `tplKey`
           * @param absoluteValueOffset start of the `tplValue`
           */

        }, {
          key: "_parseTemplateBindings",
          value: function _parseTemplateBindings(tplKey, tplValue, sourceSpan, absoluteKeyOffset, absoluteValueOffset) {
            var _this191 = this;

            var sourceInfo = sourceSpan.start.toString();

            try {
              var bindingsResult = this._exprParser.parseTemplateBindings(tplKey, tplValue, sourceInfo, absoluteKeyOffset, absoluteValueOffset);

              this._reportExpressionParserErrors(bindingsResult.errors, sourceSpan);

              bindingsResult.templateBindings.forEach(function (binding) {
                if (binding.value instanceof ASTWithSource) {
                  _this191._checkPipes(binding.value, sourceSpan);
                }
              });
              bindingsResult.warnings.forEach(function (warning) {
                _this191._reportError(warning, sourceSpan, ParseErrorLevel.WARNING);
              });
              return bindingsResult.templateBindings;
            } catch (e) {
              this._reportError("".concat(e), sourceSpan);

              return [];
            }
          }
        }, {
          key: "parseLiteralAttr",
          value: function parseLiteralAttr(name, value, sourceSpan, absoluteOffset, valueSpan, targetMatchableAttrs, // TODO(atscott): keySpan is only optional here so VE template parser implementation does not
          // have to change This should be required when VE is removed.
          targetProps, keySpan) {
            if (isAnimationLabel(name)) {
              name = name.substring(1);

              if (value) {
                this._reportError("Assigning animation triggers via @prop=\"exp\" attributes with an expression is invalid." + " Use property bindings (e.g. [@prop]=\"exp\") or use an attribute without a value (e.g. @prop) instead.", sourceSpan, ParseErrorLevel.ERROR);
              }

              this._parseAnimation(name, value, sourceSpan, absoluteOffset, keySpan, valueSpan, targetMatchableAttrs, targetProps);
            } else {
              targetProps.push(new ParsedProperty(name, this._exprParser.wrapLiteralPrimitive(value, '', absoluteOffset), ParsedPropertyType.LITERAL_ATTR, sourceSpan, keySpan, valueSpan));
            }
          }
        }, {
          key: "parsePropertyBinding",
          value: function parsePropertyBinding(name, expression, isHost, sourceSpan, absoluteOffset, valueSpan, // TODO(atscott): keySpan is only optional here so VE template parser implementation does not
          // have to change This should be required when VE is removed.
          targetMatchableAttrs, targetProps, keySpan) {
            if (name.length === 0) {
              this._reportError("Property name is missing in binding", sourceSpan);
            }

            var isAnimationProp = false;

            if (name.startsWith(ANIMATE_PROP_PREFIX)) {
              isAnimationProp = true;
              name = name.substring(ANIMATE_PROP_PREFIX.length);
            } else if (isAnimationLabel(name)) {
              isAnimationProp = true;
              name = name.substring(1);
            }

            if (isAnimationProp) {
              this._parseAnimation(name, expression, sourceSpan, absoluteOffset, keySpan, valueSpan, targetMatchableAttrs, targetProps);
            } else {
              this._parsePropertyAst(name, this._parseBinding(expression, isHost, valueSpan || sourceSpan, absoluteOffset), sourceSpan, keySpan, valueSpan, targetMatchableAttrs, targetProps);
            }
          }
        }, {
          key: "parsePropertyInterpolation",
          value: function parsePropertyInterpolation(name, value, sourceSpan, valueSpan, targetMatchableAttrs, // TODO(atscott): keySpan is only optional here so VE template parser implementation does not
          // have to change This should be required when VE is removed.
          targetProps, keySpan) {
            var expr = this.parseInterpolation(value, valueSpan || sourceSpan);

            if (expr) {
              this._parsePropertyAst(name, expr, sourceSpan, keySpan, valueSpan, targetMatchableAttrs, targetProps);

              return true;
            }

            return false;
          }
        }, {
          key: "_parsePropertyAst",
          value: function _parsePropertyAst(name, ast, sourceSpan, keySpan, valueSpan, targetMatchableAttrs, targetProps) {
            targetMatchableAttrs.push([name, ast.source]);
            targetProps.push(new ParsedProperty(name, ast, ParsedPropertyType.DEFAULT, sourceSpan, keySpan, valueSpan));
          }
        }, {
          key: "_parseAnimation",
          value: function _parseAnimation(name, expression, sourceSpan, absoluteOffset, keySpan, valueSpan, targetMatchableAttrs, targetProps) {
            if (name.length === 0) {
              this._reportError('Animation trigger is missing', sourceSpan);
            } // This will occur when a @trigger is not paired with an expression.
            // For animations it is valid to not have an expression since */void
            // states will be applied by angular when the element is attached/detached


            var ast = this._parseBinding(expression || 'undefined', false, valueSpan || sourceSpan, absoluteOffset);

            targetMatchableAttrs.push([name, ast.source]);
            targetProps.push(new ParsedProperty(name, ast, ParsedPropertyType.ANIMATION, sourceSpan, keySpan, valueSpan));
          }
        }, {
          key: "_parseBinding",
          value: function _parseBinding(value, isHostBinding, sourceSpan, absoluteOffset) {
            var sourceInfo = (sourceSpan && sourceSpan.start || '(unknown)').toString();

            try {
              var ast = isHostBinding ? this._exprParser.parseSimpleBinding(value, sourceInfo, absoluteOffset, this._interpolationConfig) : this._exprParser.parseBinding(value, sourceInfo, absoluteOffset, this._interpolationConfig);
              if (ast) this._reportExpressionParserErrors(ast.errors, sourceSpan);

              this._checkPipes(ast, sourceSpan);

              return ast;
            } catch (e) {
              this._reportError("".concat(e), sourceSpan);

              return this._exprParser.wrapLiteralPrimitive('ERROR', sourceInfo, absoluteOffset);
            }
          }
        }, {
          key: "createBoundElementProperty",
          value: function createBoundElementProperty(elementSelector, boundProp) {
            var skipValidation = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
            var mapPropertyName = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;

            if (boundProp.isAnimation) {
              return new BoundElementProperty(boundProp.name, 4
              /* Animation */
              , SecurityContext.NONE, boundProp.expression, null, boundProp.sourceSpan, boundProp.keySpan, boundProp.valueSpan);
            }

            var unit = null;
            var bindingType = undefined;
            var boundPropertyName = null;
            var parts = boundProp.name.split(PROPERTY_PARTS_SEPARATOR);
            var securityContexts = undefined; // Check for special cases (prefix style, attr, class)

            if (parts.length > 1) {
              if (parts[0] == ATTRIBUTE_PREFIX) {
                boundPropertyName = parts.slice(1).join(PROPERTY_PARTS_SEPARATOR);

                if (!skipValidation) {
                  this._validatePropertyOrAttributeName(boundPropertyName, boundProp.sourceSpan, true);
                }

                securityContexts = _calcPossibleSecurityContexts(this._schemaRegistry, elementSelector, boundPropertyName, true);
                var nsSeparatorIdx = boundPropertyName.indexOf(':');

                if (nsSeparatorIdx > -1) {
                  var ns = boundPropertyName.substring(0, nsSeparatorIdx);
                  var name = boundPropertyName.substring(nsSeparatorIdx + 1);
                  boundPropertyName = mergeNsAndName(ns, name);
                }

                bindingType = 1
                /* Attribute */
                ;
              } else if (parts[0] == CLASS_PREFIX) {
                boundPropertyName = parts[1];
                bindingType = 2
                /* Class */
                ;
                securityContexts = [SecurityContext.NONE];
              } else if (parts[0] == STYLE_PREFIX) {
                unit = parts.length > 2 ? parts[2] : null;
                boundPropertyName = parts[1];
                bindingType = 3
                /* Style */
                ;
                securityContexts = [SecurityContext.STYLE];
              }
            } // If not a special case, use the full property name


            if (boundPropertyName === null) {
              var mappedPropName = this._schemaRegistry.getMappedPropName(boundProp.name);

              boundPropertyName = mapPropertyName ? mappedPropName : boundProp.name;
              securityContexts = _calcPossibleSecurityContexts(this._schemaRegistry, elementSelector, mappedPropName, false);
              bindingType = 0
              /* Property */
              ;

              if (!skipValidation) {
                this._validatePropertyOrAttributeName(mappedPropName, boundProp.sourceSpan, false);
              }
            }

            return new BoundElementProperty(boundPropertyName, bindingType, securityContexts[0], boundProp.expression, unit, boundProp.sourceSpan, boundProp.keySpan, boundProp.valueSpan);
          }
        }, {
          key: "parseEvent",
          value: function parseEvent(name, expression, sourceSpan, handlerSpan, targetMatchableAttrs, targetEvents) {
            if (name.length === 0) {
              this._reportError("Event name is missing in binding", sourceSpan);
            }

            if (isAnimationLabel(name)) {
              name = name.substr(1);

              this._parseAnimationEvent(name, expression, sourceSpan, handlerSpan, targetEvents);
            } else {
              this._parseRegularEvent(name, expression, sourceSpan, handlerSpan, targetMatchableAttrs, targetEvents);
            }
          }
        }, {
          key: "calcPossibleSecurityContexts",
          value: function calcPossibleSecurityContexts(selector, propName, isAttribute) {
            var prop = this._schemaRegistry.getMappedPropName(propName);

            return _calcPossibleSecurityContexts(this._schemaRegistry, selector, prop, isAttribute);
          }
        }, {
          key: "_parseAnimationEvent",
          value: function _parseAnimationEvent(name, expression, sourceSpan, handlerSpan, targetEvents) {
            var matches = splitAtPeriod(name, [name, '']);
            var eventName = matches[0];
            var phase = matches[1].toLowerCase();

            if (phase) {
              switch (phase) {
                case 'start':
                case 'done':
                  var ast = this._parseAction(expression, handlerSpan);

                  targetEvents.push(new ParsedEvent(eventName, phase, 1
                  /* Animation */
                  , ast, sourceSpan, handlerSpan));
                  break;

                default:
                  this._reportError("The provided animation output phase value \"".concat(phase, "\" for \"@").concat(eventName, "\" is not supported (use start or done)"), sourceSpan);

                  break;
              }
            } else {
              this._reportError("The animation trigger output event (@".concat(eventName, ") is missing its phase value name (start or done are currently supported)"), sourceSpan);
            }
          }
        }, {
          key: "_parseRegularEvent",
          value: function _parseRegularEvent(name, expression, sourceSpan, handlerSpan, targetMatchableAttrs, targetEvents) {
            // long format: 'target: eventName'
            var _splitAtColon3 = splitAtColon(name, [null, name]),
                _splitAtColon4 = _slicedToArray(_splitAtColon3, 2),
                target = _splitAtColon4[0],
                eventName = _splitAtColon4[1];

            var ast = this._parseAction(expression, handlerSpan);

            targetMatchableAttrs.push([name, ast.source]);
            targetEvents.push(new ParsedEvent(eventName, target, 0
            /* Regular */
            , ast, sourceSpan, handlerSpan)); // Don't detect directives for event names for now,
            // so don't add the event name to the matchableAttrs
          }
        }, {
          key: "_parseAction",
          value: function _parseAction(value, sourceSpan) {
            var sourceInfo = (sourceSpan && sourceSpan.start || '(unknown').toString();
            var absoluteOffset = sourceSpan && sourceSpan.start ? sourceSpan.start.offset : 0;

            try {
              var ast = this._exprParser.parseAction(value, sourceInfo, absoluteOffset, this._interpolationConfig);

              if (ast) {
                this._reportExpressionParserErrors(ast.errors, sourceSpan);
              }

              if (!ast || ast.ast instanceof EmptyExpr) {
                this._reportError("Empty expressions are not allowed", sourceSpan);

                return this._exprParser.wrapLiteralPrimitive('ERROR', sourceInfo, absoluteOffset);
              }

              this._checkPipes(ast, sourceSpan);

              return ast;
            } catch (e) {
              this._reportError("".concat(e), sourceSpan);

              return this._exprParser.wrapLiteralPrimitive('ERROR', sourceInfo, absoluteOffset);
            }
          }
        }, {
          key: "_reportError",
          value: function _reportError(message, sourceSpan) {
            var level = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : ParseErrorLevel.ERROR;
            this.errors.push(new ParseError(sourceSpan, message, level));
          }
        }, {
          key: "_reportExpressionParserErrors",
          value: function _reportExpressionParserErrors(errors, sourceSpan) {
            var _iterator13 = _createForOfIteratorHelper(errors),
                _step13;

            try {
              for (_iterator13.s(); !(_step13 = _iterator13.n()).done;) {
                var _error = _step13.value;

                this._reportError(_error.message, sourceSpan);
              }
            } catch (err) {
              _iterator13.e(err);
            } finally {
              _iterator13.f();
            }
          } // Make sure all the used pipes are known in `this.pipesByName`

        }, {
          key: "_checkPipes",
          value: function _checkPipes(ast, sourceSpan) {
            var _this192 = this;

            if (ast && this.pipesByName) {
              var collector = new PipeCollector();
              ast.visit(collector);
              collector.pipes.forEach(function (ast, pipeName) {
                var pipeMeta = _this192.pipesByName.get(pipeName);

                if (!pipeMeta) {
                  _this192._reportError("The pipe '".concat(pipeName, "' could not be found"), new ParseSourceSpan(sourceSpan.start.moveBy(ast.span.start), sourceSpan.start.moveBy(ast.span.end)));
                } else {
                  _this192._usedPipes.set(pipeName, pipeMeta);
                }
              });
            }
          }
          /**
           * @param propName the name of the property / attribute
           * @param sourceSpan
           * @param isAttr true when binding to an attribute
           */

        }, {
          key: "_validatePropertyOrAttributeName",
          value: function _validatePropertyOrAttributeName(propName, sourceSpan, isAttr) {
            var report = isAttr ? this._schemaRegistry.validateAttribute(propName) : this._schemaRegistry.validateProperty(propName);

            if (report.error) {
              this._reportError(report.msg, sourceSpan, ParseErrorLevel.ERROR);
            }
          }
        }]);

        return BindingParser;
      }();

      var PipeCollector = /*#__PURE__*/function (_RecursiveAstVisitor$) {
        _inherits2(PipeCollector, _RecursiveAstVisitor$);

        var _super102 = _createSuper2(PipeCollector);

        function PipeCollector() {
          var _this193;

          _classCallCheck2(this, PipeCollector);

          _this193 = _super102.apply(this, arguments);
          _this193.pipes = new Map();
          return _this193;
        }

        _createClass2(PipeCollector, [{
          key: "visitPipe",
          value: function visitPipe(ast, context) {
            this.pipes.set(ast.name, ast);
            ast.exp.visit(this);
            this.visitAll(ast.args, context);
            return null;
          }
        }]);

        return PipeCollector;
      }(RecursiveAstVisitor$1);

      function isAnimationLabel(name) {
        return name[0] == '@';
      }

      function _calcPossibleSecurityContexts(registry, selector, propName, isAttribute) {
        var ctxs = [];
        CssSelector.parse(selector).forEach(function (selector) {
          var elementNames = selector.element ? [selector.element] : registry.allKnownElementNames();
          var notElementNames = new Set(selector.notSelectors.filter(function (selector) {
            return selector.isElementSelector();
          }).map(function (selector) {
            return selector.element;
          }));
          var possibleElementNames = elementNames.filter(function (elementName) {
            return !notElementNames.has(elementName);
          });
          ctxs.push.apply(ctxs, _toConsumableArray(possibleElementNames.map(function (elementName) {
            return registry.securityContext(elementName, propName, isAttribute);
          })));
        });
        return ctxs.length === 0 ? [SecurityContext.NONE] : Array.from(new Set(ctxs)).sort();
      }
      /**
       * Compute a new ParseSourceSpan based off an original `sourceSpan` by using
       * absolute offsets from the specified `absoluteSpan`.
       *
       * @param sourceSpan original source span
       * @param absoluteSpan absolute source span to move to
       */


      function moveParseSourceSpan(sourceSpan, absoluteSpan) {
        // The difference of two absolute offsets provide the relative offset
        var startDiff = absoluteSpan.start - sourceSpan.start.offset;
        var endDiff = absoluteSpan.end - sourceSpan.end.offset;
        return new ParseSourceSpan(sourceSpan.start.moveBy(startDiff), sourceSpan.end.moveBy(endDiff), sourceSpan.fullStart.moveBy(startDiff), sourceSpan.details);
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var NG_CONTENT_SELECT_ATTR = 'select';
      var LINK_ELEMENT = 'link';
      var LINK_STYLE_REL_ATTR = 'rel';
      var LINK_STYLE_HREF_ATTR = 'href';
      var LINK_STYLE_REL_VALUE = 'stylesheet';
      var STYLE_ELEMENT = 'style';
      var SCRIPT_ELEMENT = 'script';
      var NG_NON_BINDABLE_ATTR = 'ngNonBindable';
      var NG_PROJECT_AS = 'ngProjectAs';

      function preparseElement(ast) {
        var selectAttr = null;
        var hrefAttr = null;
        var relAttr = null;
        var nonBindable = false;
        var projectAs = '';
        ast.attrs.forEach(function (attr) {
          var lcAttrName = attr.name.toLowerCase();

          if (lcAttrName == NG_CONTENT_SELECT_ATTR) {
            selectAttr = attr.value;
          } else if (lcAttrName == LINK_STYLE_HREF_ATTR) {
            hrefAttr = attr.value;
          } else if (lcAttrName == LINK_STYLE_REL_ATTR) {
            relAttr = attr.value;
          } else if (attr.name == NG_NON_BINDABLE_ATTR) {
            nonBindable = true;
          } else if (attr.name == NG_PROJECT_AS) {
            if (attr.value.length > 0) {
              projectAs = attr.value;
            }
          }
        });
        selectAttr = normalizeNgContentSelect(selectAttr);
        var nodeName = ast.name.toLowerCase();
        var type = PreparsedElementType.OTHER;

        if (isNgContent(nodeName)) {
          type = PreparsedElementType.NG_CONTENT;
        } else if (nodeName == STYLE_ELEMENT) {
          type = PreparsedElementType.STYLE;
        } else if (nodeName == SCRIPT_ELEMENT) {
          type = PreparsedElementType.SCRIPT;
        } else if (nodeName == LINK_ELEMENT && relAttr == LINK_STYLE_REL_VALUE) {
          type = PreparsedElementType.STYLESHEET;
        }

        return new PreparsedElement(type, selectAttr, hrefAttr, nonBindable, projectAs);
      }

      var PreparsedElementType;

      (function (PreparsedElementType) {
        PreparsedElementType[PreparsedElementType["NG_CONTENT"] = 0] = "NG_CONTENT";
        PreparsedElementType[PreparsedElementType["STYLE"] = 1] = "STYLE";
        PreparsedElementType[PreparsedElementType["STYLESHEET"] = 2] = "STYLESHEET";
        PreparsedElementType[PreparsedElementType["SCRIPT"] = 3] = "SCRIPT";
        PreparsedElementType[PreparsedElementType["OTHER"] = 4] = "OTHER";
      })(PreparsedElementType || (PreparsedElementType = {}));

      var PreparsedElement = function PreparsedElement(type, selectAttr, hrefAttr, nonBindable, projectAs) {
        _classCallCheck2(this, PreparsedElement);

        this.type = type;
        this.selectAttr = selectAttr;
        this.hrefAttr = hrefAttr;
        this.nonBindable = nonBindable;
        this.projectAs = projectAs;
      };

      function normalizeNgContentSelect(selectAttr) {
        if (selectAttr === null || selectAttr.length === 0) {
          return '*';
        }

        return selectAttr;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var BIND_NAME_REGEXP = /^(?:(?:(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/; // Group 1 = "bind-"

      var KW_BIND_IDX = 1; // Group 2 = "let-"

      var KW_LET_IDX = 2; // Group 3 = "ref-/#"

      var KW_REF_IDX = 3; // Group 4 = "on-"

      var KW_ON_IDX = 4; // Group 5 = "bindon-"

      var KW_BINDON_IDX = 5; // Group 6 = "@"

      var KW_AT_IDX = 6; // Group 7 = the identifier after "bind-", "let-", "ref-/#", "on-", "bindon-" or "@"

      var IDENT_KW_IDX = 7; // Group 8 = identifier inside [()]

      var IDENT_BANANA_BOX_IDX = 8; // Group 9 = identifier inside []

      var IDENT_PROPERTY_IDX = 9; // Group 10 = identifier inside ()

      var IDENT_EVENT_IDX = 10;
      var TEMPLATE_ATTR_PREFIX$1 = '*';
      var CLASS_ATTR = 'class';

      var _TEXT_CSS_SELECTOR;

      function TEXT_CSS_SELECTOR() {
        if (!_TEXT_CSS_SELECTOR) {
          _TEXT_CSS_SELECTOR = CssSelector.parse('*')[0];
        }

        return _TEXT_CSS_SELECTOR;
      }

      var TemplateParseError = /*#__PURE__*/function (_ParseError5) {
        _inherits2(TemplateParseError, _ParseError5);

        var _super103 = _createSuper2(TemplateParseError);

        function TemplateParseError(message, span, level) {
          _classCallCheck2(this, TemplateParseError);

          return _super103.call(this, span, message, level);
        }

        return TemplateParseError;
      }(ParseError);

      var TemplateParseResult = function TemplateParseResult(templateAst, usedPipes, errors) {
        _classCallCheck2(this, TemplateParseResult);

        this.templateAst = templateAst;
        this.usedPipes = usedPipes;
        this.errors = errors;
      };

      var TemplateParser = /*#__PURE__*/function () {
        function TemplateParser(_config, _reflector, _exprParser, _schemaRegistry, _htmlParser, _console, transforms) {
          _classCallCheck2(this, TemplateParser);

          this._config = _config;
          this._reflector = _reflector;
          this._exprParser = _exprParser;
          this._schemaRegistry = _schemaRegistry;
          this._htmlParser = _htmlParser;
          this._console = _console;
          this.transforms = transforms;
        }

        _createClass2(TemplateParser, [{
          key: "expressionParser",
          get: function get() {
            return this._exprParser;
          }
        }, {
          key: "parse",
          value: function parse(component, template, directives, pipes, schemas, templateUrl, preserveWhitespaces) {
            var _a;

            var result = this.tryParse(component, template, directives, pipes, schemas, templateUrl, preserveWhitespaces);
            var warnings = result.errors.filter(function (error) {
              return error.level === ParseErrorLevel.WARNING;
            });
            var errors = result.errors.filter(function (error) {
              return error.level === ParseErrorLevel.ERROR;
            });

            if (warnings.length > 0) {
              (_a = this._console) === null || _a === void 0 ? void 0 : _a.warn("Template parse warnings:\n".concat(warnings.join('\n')));
            }

            if (errors.length > 0) {
              var errorString = errors.join('\n');
              throw syntaxError("Template parse errors:\n".concat(errorString), errors);
            }

            return {
              template: result.templateAst,
              pipes: result.usedPipes
            };
          }
        }, {
          key: "tryParse",
          value: function tryParse(component, template, directives, pipes, schemas, templateUrl, preserveWhitespaces) {
            var htmlParseResult = typeof template === 'string' ? this._htmlParser.parse(template, templateUrl, {
              tokenizeExpansionForms: true,
              interpolationConfig: this.getInterpolationConfig(component)
            }) : template;

            if (!preserveWhitespaces) {
              htmlParseResult = removeWhitespaces(htmlParseResult);
            }

            return this.tryParseHtml(this.expandHtml(htmlParseResult), component, directives, pipes, schemas);
          }
        }, {
          key: "tryParseHtml",
          value: function tryParseHtml(htmlAstWithErrors, component, directives, pipes, schemas) {
            var result;
            var errors = htmlAstWithErrors.errors;
            var usedPipes = [];

            if (htmlAstWithErrors.rootNodes.length > 0) {
              var uniqDirectives = removeSummaryDuplicates(directives);
              var uniqPipes = removeSummaryDuplicates(pipes);
              var providerViewContext = new ProviderViewContext(this._reflector, component);
              var interpolationConfig = undefined;

              if (component.template && component.template.interpolation) {
                interpolationConfig = {
                  start: component.template.interpolation[0],
                  end: component.template.interpolation[1]
                };
              }

              var bindingParser = new BindingParser(this._exprParser, interpolationConfig, this._schemaRegistry, uniqPipes, errors);
              var parseVisitor = new TemplateParseVisitor(this._reflector, this._config, providerViewContext, uniqDirectives, bindingParser, this._schemaRegistry, schemas, errors);
              result = visitAll$1(parseVisitor, htmlAstWithErrors.rootNodes, EMPTY_ELEMENT_CONTEXT);
              errors.push.apply(errors, _toConsumableArray(providerViewContext.errors));
              usedPipes.push.apply(usedPipes, _toConsumableArray(bindingParser.getUsedPipes()));
            } else {
              result = [];
            }

            this._assertNoReferenceDuplicationOnTemplate(result, errors);

            if (errors.length > 0) {
              return new TemplateParseResult(result, usedPipes, errors);
            }

            if (this.transforms) {
              this.transforms.forEach(function (transform) {
                result = templateVisitAll(transform, result);
              });
            }

            return new TemplateParseResult(result, usedPipes, errors);
          }
        }, {
          key: "expandHtml",
          value: function expandHtml(htmlAstWithErrors) {
            var forced = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
            var errors = htmlAstWithErrors.errors;

            if (errors.length == 0 || forced) {
              // Transform ICU messages to angular directives
              var expandedHtmlAst = expandNodes(htmlAstWithErrors.rootNodes);
              errors.push.apply(errors, _toConsumableArray(expandedHtmlAst.errors));
              htmlAstWithErrors = new ParseTreeResult(expandedHtmlAst.nodes, errors);
            }

            return htmlAstWithErrors;
          }
        }, {
          key: "getInterpolationConfig",
          value: function getInterpolationConfig(component) {
            if (component.template) {
              return InterpolationConfig.fromArray(component.template.interpolation);
            }

            return undefined;
          }
          /** @internal */

        }, {
          key: "_assertNoReferenceDuplicationOnTemplate",
          value: function _assertNoReferenceDuplicationOnTemplate(result, errors) {
            var existingReferences = [];
            result.filter(function (element) {
              return !!element.references;
            }).forEach(function (element) {
              return element.references.forEach(function (reference) {
                var name = reference.name;

                if (existingReferences.indexOf(name) < 0) {
                  existingReferences.push(name);
                } else {
                  var _error2 = new TemplateParseError("Reference \"#".concat(name, "\" is defined several times"), reference.sourceSpan, ParseErrorLevel.ERROR);

                  errors.push(_error2);
                }
              });
            });
          }
        }]);

        return TemplateParser;
      }();

      var TemplateParseVisitor = /*#__PURE__*/function () {
        function TemplateParseVisitor(reflector, config, providerViewContext, directives, _bindingParser, _schemaRegistry, _schemas, _targetErrors) {
          var _this194 = this;

          _classCallCheck2(this, TemplateParseVisitor);

          this.reflector = reflector;
          this.config = config;
          this.providerViewContext = providerViewContext;
          this._bindingParser = _bindingParser;
          this._schemaRegistry = _schemaRegistry;
          this._schemas = _schemas;
          this._targetErrors = _targetErrors;
          this.selectorMatcher = new SelectorMatcher();
          this.directivesIndex = new Map();
          this.ngContentCount = 0; // Note: queries start with id 1 so we can use the number in a Bloom filter!

          this.contentQueryStartId = providerViewContext.component.viewQueries.length + 1;
          directives.forEach(function (directive, index) {
            var selector = CssSelector.parse(directive.selector);

            _this194.selectorMatcher.addSelectables(selector, directive);

            _this194.directivesIndex.set(directive, index);
          });
        }

        _createClass2(TemplateParseVisitor, [{
          key: "visitExpansion",
          value: function visitExpansion(expansion, context) {
            return null;
          }
        }, {
          key: "visitExpansionCase",
          value: function visitExpansionCase(expansionCase, context) {
            return null;
          }
        }, {
          key: "visitText",
          value: function visitText(text, parent) {
            var ngContentIndex = parent.findNgContentIndex(TEXT_CSS_SELECTOR());
            var valueNoNgsp = replaceNgsp(text.value);

            var expr = this._bindingParser.parseInterpolation(valueNoNgsp, text.sourceSpan);

            return expr ? new BoundTextAst(expr, ngContentIndex, text.sourceSpan) : new TextAst(valueNoNgsp, ngContentIndex, text.sourceSpan);
          }
        }, {
          key: "visitAttribute",
          value: function visitAttribute(attribute, context) {
            return new AttrAst(attribute.name, attribute.value, attribute.sourceSpan);
          }
        }, {
          key: "visitComment",
          value: function visitComment(comment, context) {
            return null;
          }
        }, {
          key: "visitElement",
          value: function visitElement(element, parent) {
            var _this195 = this;

            var queryStartIndex = this.contentQueryStartId;
            var elName = element.name;
            var preparsedElement = preparseElement(element);

            if (preparsedElement.type === PreparsedElementType.SCRIPT || preparsedElement.type === PreparsedElementType.STYLE) {
              // Skipping <script> for security reasons
              // Skipping <style> as we already processed them
              // in the StyleCompiler
              return null;
            }

            if (preparsedElement.type === PreparsedElementType.STYLESHEET && isStyleUrlResolvable(preparsedElement.hrefAttr)) {
              // Skipping stylesheets with either relative urls or package scheme as we already processed
              // them in the StyleCompiler
              return null;
            }

            var matchableAttrs = [];
            var elementOrDirectiveProps = [];
            var elementOrDirectiveRefs = [];
            var elementVars = [];
            var events = [];
            var templateElementOrDirectiveProps = [];
            var templateMatchableAttrs = [];
            var templateElementVars = [];
            var hasInlineTemplates = false;
            var attrs = [];
            var isTemplateElement = isNgTemplate(element.name);
            element.attrs.forEach(function (attr) {
              var parsedVariables = [];

              var hasBinding = _this195._parseAttr(isTemplateElement, attr, matchableAttrs, elementOrDirectiveProps, events, elementOrDirectiveRefs, elementVars);

              elementVars.push.apply(elementVars, _toConsumableArray(parsedVariables.map(function (v) {
                return VariableAst.fromParsedVariable(v);
              })));
              var templateValue;
              var templateKey;

              var normalizedName = _this195._normalizeAttributeName(attr.name);

              if (normalizedName.startsWith(TEMPLATE_ATTR_PREFIX$1)) {
                templateValue = attr.value;
                templateKey = normalizedName.substring(TEMPLATE_ATTR_PREFIX$1.length);
              }

              var hasTemplateBinding = templateValue != null;

              if (hasTemplateBinding) {
                if (hasInlineTemplates) {
                  _this195._reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *", attr.sourceSpan);
                }

                hasInlineTemplates = true;
                var _parsedVariables = [];
                var absoluteOffset = (attr.valueSpan || attr.sourceSpan).start.offset;

                _this195._bindingParser.parseInlineTemplateBinding(templateKey, templateValue, attr.sourceSpan, absoluteOffset, templateMatchableAttrs, templateElementOrDirectiveProps, _parsedVariables, false
                /* isIvyAst */
                );

                templateElementVars.push.apply(templateElementVars, _toConsumableArray(_parsedVariables.map(function (v) {
                  return VariableAst.fromParsedVariable(v);
                })));
              }

              if (!hasBinding && !hasTemplateBinding) {
                // don't include the bindings as attributes as well in the AST
                attrs.push(_this195.visitAttribute(attr, null));
                matchableAttrs.push([attr.name, attr.value]);
              }
            });
            var elementCssSelector = createElementCssSelector(elName, matchableAttrs);

            var _this$_parseDirective = this._parseDirectives(this.selectorMatcher, elementCssSelector),
                directiveMetas = _this$_parseDirective.directives,
                matchElement = _this$_parseDirective.matchElement;

            var references = [];
            var boundDirectivePropNames = new Set();

            var directiveAsts = this._createDirectiveAsts(isTemplateElement, element.name, directiveMetas, elementOrDirectiveProps, elementOrDirectiveRefs, element.sourceSpan, references, boundDirectivePropNames);

            var elementProps = this._createElementPropertyAsts(element.name, elementOrDirectiveProps, boundDirectivePropNames);

            var isViewRoot = parent.isTemplateElement || hasInlineTemplates;
            var providerContext = new ProviderElementContext(this.providerViewContext, parent.providerContext, isViewRoot, directiveAsts, attrs, references, isTemplateElement, queryStartIndex, element.sourceSpan);
            var children = visitAll$1(preparsedElement.nonBindable ? NON_BINDABLE_VISITOR : this, element.children, ElementContext.create(isTemplateElement, directiveAsts, isTemplateElement ? parent.providerContext : providerContext));
            providerContext.afterElement(); // Override the actual selector when the `ngProjectAs` attribute is provided

            var projectionSelector = preparsedElement.projectAs != '' ? CssSelector.parse(preparsedElement.projectAs)[0] : elementCssSelector;
            var ngContentIndex = parent.findNgContentIndex(projectionSelector);
            var parsedElement;

            if (preparsedElement.type === PreparsedElementType.NG_CONTENT) {
              // `<ng-content>` element
              if (element.children && !element.children.every(_isEmptyTextNode)) {
                this._reportError("<ng-content> element cannot have content.", element.sourceSpan);
              }

              parsedElement = new NgContentAst(this.ngContentCount++, hasInlineTemplates ? null : ngContentIndex, element.sourceSpan);
            } else if (isTemplateElement) {
              // `<ng-template>` element
              this._assertAllEventsPublishedByDirectives(directiveAsts, events);

              this._assertNoComponentsNorElementBindingsOnTemplate(directiveAsts, elementProps, element.sourceSpan);

              parsedElement = new EmbeddedTemplateAst(attrs, events, references, elementVars, providerContext.transformedDirectiveAsts, providerContext.transformProviders, providerContext.transformedHasViewContainer, providerContext.queryMatches, children, hasInlineTemplates ? null : ngContentIndex, element.sourceSpan);
            } else {
              // element other than `<ng-content>` and `<ng-template>`
              this._assertElementExists(matchElement, element);

              this._assertOnlyOneComponent(directiveAsts, element.sourceSpan);

              var _ngContentIndex = hasInlineTemplates ? null : parent.findNgContentIndex(projectionSelector);

              parsedElement = new ElementAst(elName, attrs, elementProps, events, references, providerContext.transformedDirectiveAsts, providerContext.transformProviders, providerContext.transformedHasViewContainer, providerContext.queryMatches, children, hasInlineTemplates ? null : _ngContentIndex, element.sourceSpan, element.endSourceSpan || null);
            }

            if (hasInlineTemplates) {
              // The element as a *-attribute
              var templateQueryStartIndex = this.contentQueryStartId;
              var templateSelector = createElementCssSelector('ng-template', templateMatchableAttrs);

              var _this$_parseDirective2 = this._parseDirectives(this.selectorMatcher, templateSelector),
                  directives = _this$_parseDirective2.directives;

              var templateBoundDirectivePropNames = new Set();

              var templateDirectiveAsts = this._createDirectiveAsts(true, elName, directives, templateElementOrDirectiveProps, [], element.sourceSpan, [], templateBoundDirectivePropNames);

              var templateElementProps = this._createElementPropertyAsts(elName, templateElementOrDirectiveProps, templateBoundDirectivePropNames);

              this._assertNoComponentsNorElementBindingsOnTemplate(templateDirectiveAsts, templateElementProps, element.sourceSpan);

              var templateProviderContext = new ProviderElementContext(this.providerViewContext, parent.providerContext, parent.isTemplateElement, templateDirectiveAsts, [], [], true, templateQueryStartIndex, element.sourceSpan);
              templateProviderContext.afterElement();
              parsedElement = new EmbeddedTemplateAst([], [], [], templateElementVars, templateProviderContext.transformedDirectiveAsts, templateProviderContext.transformProviders, templateProviderContext.transformedHasViewContainer, templateProviderContext.queryMatches, [parsedElement], ngContentIndex, element.sourceSpan);
            }

            return parsedElement;
          }
        }, {
          key: "_parseAttr",
          value: function _parseAttr(isTemplateElement, attr, targetMatchableAttrs, targetProps, targetEvents, targetRefs, targetVars) {
            var name = this._normalizeAttributeName(attr.name);

            var value = attr.value;
            var srcSpan = attr.sourceSpan;
            var absoluteOffset = attr.valueSpan ? attr.valueSpan.start.offset : srcSpan.start.offset;
            var boundEvents = [];
            var bindParts = name.match(BIND_NAME_REGEXP);
            var hasBinding = false;

            if (bindParts !== null) {
              hasBinding = true;

              if (bindParts[KW_BIND_IDX] != null) {
                this._bindingParser.parsePropertyBinding(bindParts[IDENT_KW_IDX], value, false, srcSpan, absoluteOffset, attr.valueSpan, targetMatchableAttrs, targetProps);
              } else if (bindParts[KW_LET_IDX]) {
                if (isTemplateElement) {
                  var identifier = bindParts[IDENT_KW_IDX];

                  this._parseVariable(identifier, value, srcSpan, targetVars);
                } else {
                  this._reportError("\"let-\" is only supported on ng-template elements.", srcSpan);
                }
              } else if (bindParts[KW_REF_IDX]) {
                var _identifier = bindParts[IDENT_KW_IDX];

                this._parseReference(_identifier, value, srcSpan, targetRefs);
              } else if (bindParts[KW_ON_IDX]) {
                this._bindingParser.parseEvent(bindParts[IDENT_KW_IDX], value, srcSpan, attr.valueSpan || srcSpan, targetMatchableAttrs, boundEvents);
              } else if (bindParts[KW_BINDON_IDX]) {
                this._bindingParser.parsePropertyBinding(bindParts[IDENT_KW_IDX], value, false, srcSpan, absoluteOffset, attr.valueSpan, targetMatchableAttrs, targetProps);

                this._parseAssignmentEvent(bindParts[IDENT_KW_IDX], value, srcSpan, attr.valueSpan || srcSpan, targetMatchableAttrs, boundEvents);
              } else if (bindParts[KW_AT_IDX]) {
                this._bindingParser.parseLiteralAttr(name, value, srcSpan, absoluteOffset, attr.valueSpan, targetMatchableAttrs, targetProps);
              } else if (bindParts[IDENT_BANANA_BOX_IDX]) {
                this._bindingParser.parsePropertyBinding(bindParts[IDENT_BANANA_BOX_IDX], value, false, srcSpan, absoluteOffset, attr.valueSpan, targetMatchableAttrs, targetProps);

                this._parseAssignmentEvent(bindParts[IDENT_BANANA_BOX_IDX], value, srcSpan, attr.valueSpan || srcSpan, targetMatchableAttrs, boundEvents);
              } else if (bindParts[IDENT_PROPERTY_IDX]) {
                this._bindingParser.parsePropertyBinding(bindParts[IDENT_PROPERTY_IDX], value, false, srcSpan, absoluteOffset, attr.valueSpan, targetMatchableAttrs, targetProps);
              } else if (bindParts[IDENT_EVENT_IDX]) {
                this._bindingParser.parseEvent(bindParts[IDENT_EVENT_IDX], value, srcSpan, attr.valueSpan || srcSpan, targetMatchableAttrs, boundEvents);
              }
            } else {
              hasBinding = this._bindingParser.parsePropertyInterpolation(name, value, srcSpan, attr.valueSpan, targetMatchableAttrs, targetProps);
            }

            if (!hasBinding) {
              this._bindingParser.parseLiteralAttr(name, value, srcSpan, absoluteOffset, attr.valueSpan, targetMatchableAttrs, targetProps);
            }

            targetEvents.push.apply(targetEvents, _toConsumableArray(boundEvents.map(function (e) {
              return BoundEventAst.fromParsedEvent(e);
            })));
            return hasBinding;
          }
        }, {
          key: "_normalizeAttributeName",
          value: function _normalizeAttributeName(attrName) {
            return /^data-/i.test(attrName) ? attrName.substring(5) : attrName;
          }
        }, {
          key: "_parseVariable",
          value: function _parseVariable(identifier, value, sourceSpan, targetVars) {
            if (identifier.indexOf('-') > -1) {
              this._reportError("\"-\" is not allowed in variable names", sourceSpan);
            } else if (identifier.length === 0) {
              this._reportError("Variable does not have a name", sourceSpan);
            }

            targetVars.push(new VariableAst(identifier, value, sourceSpan));
          }
        }, {
          key: "_parseReference",
          value: function _parseReference(identifier, value, sourceSpan, targetRefs) {
            if (identifier.indexOf('-') > -1) {
              this._reportError("\"-\" is not allowed in reference names", sourceSpan);
            } else if (identifier.length === 0) {
              this._reportError("Reference does not have a name", sourceSpan);
            }

            targetRefs.push(new ElementOrDirectiveRef(identifier, value, sourceSpan));
          }
        }, {
          key: "_parseAssignmentEvent",
          value: function _parseAssignmentEvent(name, expression, sourceSpan, valueSpan, targetMatchableAttrs, targetEvents) {
            this._bindingParser.parseEvent("".concat(name, "Change"), "".concat(expression, "=$event"), sourceSpan, valueSpan, targetMatchableAttrs, targetEvents);
          }
        }, {
          key: "_parseDirectives",
          value: function _parseDirectives(selectorMatcher, elementCssSelector) {
            var _this196 = this;

            // Need to sort the directives so that we get consistent results throughout,
            // as selectorMatcher uses Maps inside.
            // Also deduplicate directives as they might match more than one time!
            var directives = newArray(this.directivesIndex.size); // Whether any directive selector matches on the element name

            var matchElement = false;
            selectorMatcher.match(elementCssSelector, function (selector, directive) {
              directives[_this196.directivesIndex.get(directive)] = directive;
              matchElement = matchElement || selector.hasElementSelector();
            });
            return {
              directives: directives.filter(function (dir) {
                return !!dir;
              }),
              matchElement: matchElement
            };
          }
        }, {
          key: "_createDirectiveAsts",
          value: function _createDirectiveAsts(isTemplateElement, elementName, directives, props, elementOrDirectiveRefs, elementSourceSpan, targetReferences, targetBoundDirectivePropNames) {
            var _this197 = this;

            var matchedReferences = new Set();
            var component = null;
            var directiveAsts = directives.map(function (directive) {
              var sourceSpan = new ParseSourceSpan(elementSourceSpan.start, elementSourceSpan.end, elementSourceSpan.fullStart, "Directive ".concat(identifierName(directive.type)));

              if (directive.isComponent) {
                component = directive;
              }

              var directiveProperties = [];

              var boundProperties = _this197._bindingParser.createDirectiveHostPropertyAsts(directive, elementName, sourceSpan);

              var hostProperties = boundProperties.map(function (prop) {
                return BoundElementPropertyAst.fromBoundProperty(prop);
              }); // Note: We need to check the host properties here as well,
              // as we don't know the element name in the DirectiveWrapperCompiler yet.

              hostProperties = _this197._checkPropertiesInSchema(elementName, hostProperties);

              var parsedEvents = _this197._bindingParser.createDirectiveHostEventAsts(directive, sourceSpan);

              _this197._createDirectivePropertyAsts(directive.inputs, props, directiveProperties, targetBoundDirectivePropNames);

              elementOrDirectiveRefs.forEach(function (elOrDirRef) {
                if (elOrDirRef.value.length === 0 && directive.isComponent || elOrDirRef.isReferenceToDirective(directive)) {
                  targetReferences.push(new ReferenceAst(elOrDirRef.name, createTokenForReference(directive.type.reference), elOrDirRef.value, elOrDirRef.sourceSpan));
                  matchedReferences.add(elOrDirRef.name);
                }
              });
              var hostEvents = parsedEvents.map(function (e) {
                return BoundEventAst.fromParsedEvent(e);
              });
              var contentQueryStartId = _this197.contentQueryStartId;
              _this197.contentQueryStartId += directive.queries.length;
              return new DirectiveAst(directive, directiveProperties, hostProperties, hostEvents, contentQueryStartId, sourceSpan);
            });
            elementOrDirectiveRefs.forEach(function (elOrDirRef) {
              if (elOrDirRef.value.length > 0) {
                if (!matchedReferences.has(elOrDirRef.name)) {
                  _this197._reportError("There is no directive with \"exportAs\" set to \"".concat(elOrDirRef.value, "\""), elOrDirRef.sourceSpan);
                }
              } else if (!component) {
                var refToken = null;

                if (isTemplateElement) {
                  refToken = createTokenForExternalReference(_this197.reflector, Identifiers.TemplateRef);
                }

                targetReferences.push(new ReferenceAst(elOrDirRef.name, refToken, elOrDirRef.value, elOrDirRef.sourceSpan));
              }
            });
            return directiveAsts;
          }
        }, {
          key: "_createDirectivePropertyAsts",
          value: function _createDirectivePropertyAsts(directiveProperties, boundProps, targetBoundDirectiveProps, targetBoundDirectivePropNames) {
            if (directiveProperties) {
              var boundPropsByName = new Map();
              boundProps.forEach(function (boundProp) {
                var prevValue = boundPropsByName.get(boundProp.name);

                if (!prevValue || prevValue.isLiteral) {
                  // give [a]="b" a higher precedence than a="b" on the same element
                  boundPropsByName.set(boundProp.name, boundProp);
                }
              });
              Object.keys(directiveProperties).forEach(function (dirProp) {
                var elProp = directiveProperties[dirProp];
                var boundProp = boundPropsByName.get(elProp); // Bindings are optional, so this binding only needs to be set up if an expression is given.

                if (boundProp) {
                  targetBoundDirectivePropNames.add(boundProp.name);

                  if (!isEmptyExpression(boundProp.expression)) {
                    targetBoundDirectiveProps.push(new BoundDirectivePropertyAst(dirProp, boundProp.name, boundProp.expression, boundProp.sourceSpan));
                  }
                }
              });
            }
          }
        }, {
          key: "_createElementPropertyAsts",
          value: function _createElementPropertyAsts(elementName, props, boundDirectivePropNames) {
            var _this198 = this;

            var boundElementProps = [];
            props.forEach(function (prop) {
              if (!prop.isLiteral && !boundDirectivePropNames.has(prop.name)) {
                var boundProp = _this198._bindingParser.createBoundElementProperty(elementName, prop);

                boundElementProps.push(BoundElementPropertyAst.fromBoundProperty(boundProp));
              }
            });
            return this._checkPropertiesInSchema(elementName, boundElementProps);
          }
        }, {
          key: "_findComponentDirectives",
          value: function _findComponentDirectives(directives) {
            return directives.filter(function (directive) {
              return directive.directive.isComponent;
            });
          }
        }, {
          key: "_findComponentDirectiveNames",
          value: function _findComponentDirectiveNames(directives) {
            return this._findComponentDirectives(directives).map(function (directive) {
              return identifierName(directive.directive.type);
            });
          }
        }, {
          key: "_assertOnlyOneComponent",
          value: function _assertOnlyOneComponent(directives, sourceSpan) {
            var componentTypeNames = this._findComponentDirectiveNames(directives);

            if (componentTypeNames.length > 1) {
              this._reportError("More than one component matched on this element.\n" + "Make sure that only one component's selector can match a given element.\n" + "Conflicting components: ".concat(componentTypeNames.join(',')), sourceSpan);
            }
          }
          /**
           * Make sure that non-angular tags conform to the schemas.
           *
           * Note: An element is considered an angular tag when at least one directive selector matches the
           * tag name.
           *
           * @param matchElement Whether any directive has matched on the tag name
           * @param element the html element
           */

        }, {
          key: "_assertElementExists",
          value: function _assertElementExists(matchElement, element) {
            var elName = element.name.replace(/^:xhtml:/, '');

            if (!matchElement && !this._schemaRegistry.hasElement(elName, this._schemas)) {
              var errorMsg = "'".concat(elName, "' is not a known element:\n");
              errorMsg += "1. If '".concat(elName, "' is an Angular component, then verify that it is part of this module.\n");

              if (elName.indexOf('-') > -1) {
                errorMsg += "2. If '".concat(elName, "' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.");
              } else {
                errorMsg += "2. To allow any element add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.";
              }

              this._reportError(errorMsg, element.sourceSpan);
            }
          }
        }, {
          key: "_assertNoComponentsNorElementBindingsOnTemplate",
          value: function _assertNoComponentsNorElementBindingsOnTemplate(directives, elementProps, sourceSpan) {
            var _this199 = this;

            var componentTypeNames = this._findComponentDirectiveNames(directives);

            if (componentTypeNames.length > 0) {
              this._reportError("Components on an embedded template: ".concat(componentTypeNames.join(',')), sourceSpan);
            }

            elementProps.forEach(function (prop) {
              _this199._reportError("Property binding ".concat(prop.name, " not used by any directive on an embedded template. Make sure that the property name is spelled correctly and all directives are listed in the \"@NgModule.declarations\"."), sourceSpan);
            });
          }
        }, {
          key: "_assertAllEventsPublishedByDirectives",
          value: function _assertAllEventsPublishedByDirectives(directives, events) {
            var _this200 = this;

            var allDirectiveEvents = new Set();
            directives.forEach(function (directive) {
              Object.keys(directive.directive.outputs).forEach(function (k) {
                var eventName = directive.directive.outputs[k];
                allDirectiveEvents.add(eventName);
              });
            });
            events.forEach(function (event) {
              if (event.target != null || !allDirectiveEvents.has(event.name)) {
                _this200._reportError("Event binding ".concat(event.fullName, " not emitted by any directive on an embedded template. Make sure that the event name is spelled correctly and all directives are listed in the \"@NgModule.declarations\"."), event.sourceSpan);
              }
            });
          }
        }, {
          key: "_checkPropertiesInSchema",
          value: function _checkPropertiesInSchema(elementName, boundProps) {
            var _this201 = this;

            // Note: We can't filter out empty expressions before this method,
            // as we still want to validate them!
            return boundProps.filter(function (boundProp) {
              if (boundProp.type === 0
              /* Property */
              && !_this201._schemaRegistry.hasProperty(elementName, boundProp.name, _this201._schemas)) {
                var errorMsg = "Can't bind to '".concat(boundProp.name, "' since it isn't a known property of '").concat(elementName, "'.");

                if (elementName.startsWith('ng-')) {
                  errorMsg += "\n1. If '".concat(boundProp.name, "' is an Angular directive, then add 'CommonModule' to the '@NgModule.imports' of this component.") + "\n2. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.";
                } else if (elementName.indexOf('-') > -1) {
                  errorMsg += "\n1. If '".concat(elementName, "' is an Angular component and it has '").concat(boundProp.name, "' input, then verify that it is part of this module.") + "\n2. If '".concat(elementName, "' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.") + "\n3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.";
                }

                _this201._reportError(errorMsg, boundProp.sourceSpan);
              }

              return !isEmptyExpression(boundProp.value);
            });
          }
        }, {
          key: "_reportError",
          value: function _reportError(message, sourceSpan) {
            var level = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : ParseErrorLevel.ERROR;

            this._targetErrors.push(new ParseError(sourceSpan, message, level));
          }
        }]);

        return TemplateParseVisitor;
      }();

      var NonBindableVisitor = /*#__PURE__*/function () {
        function NonBindableVisitor() {
          _classCallCheck2(this, NonBindableVisitor);
        }

        _createClass2(NonBindableVisitor, [{
          key: "visitElement",
          value: function visitElement(ast, parent) {
            var preparsedElement = preparseElement(ast);

            if (preparsedElement.type === PreparsedElementType.SCRIPT || preparsedElement.type === PreparsedElementType.STYLE || preparsedElement.type === PreparsedElementType.STYLESHEET) {
              // Skipping <script> for security reasons
              // Skipping <style> and stylesheets as we already processed them
              // in the StyleCompiler
              return null;
            }

            var attrNameAndValues = ast.attrs.map(function (attr) {
              return [attr.name, attr.value];
            });
            var selector = createElementCssSelector(ast.name, attrNameAndValues);
            var ngContentIndex = parent.findNgContentIndex(selector);
            var children = visitAll$1(this, ast.children, EMPTY_ELEMENT_CONTEXT);
            return new ElementAst(ast.name, visitAll$1(this, ast.attrs), [], [], [], [], [], false, [], children, ngContentIndex, ast.sourceSpan, ast.endSourceSpan);
          }
        }, {
          key: "visitComment",
          value: function visitComment(comment, context) {
            return null;
          }
        }, {
          key: "visitAttribute",
          value: function visitAttribute(attribute, context) {
            return new AttrAst(attribute.name, attribute.value, attribute.sourceSpan);
          }
        }, {
          key: "visitText",
          value: function visitText(text, parent) {
            var ngContentIndex = parent.findNgContentIndex(TEXT_CSS_SELECTOR());
            return new TextAst(text.value, ngContentIndex, text.sourceSpan);
          }
        }, {
          key: "visitExpansion",
          value: function visitExpansion(expansion, context) {
            return expansion;
          }
        }, {
          key: "visitExpansionCase",
          value: function visitExpansionCase(expansionCase, context) {
            return expansionCase;
          }
        }]);

        return NonBindableVisitor;
      }();
      /**
       * A reference to an element or directive in a template. E.g., the reference in this template:
       *
       * <div #myMenu="coolMenu">
       *
       * would be {name: 'myMenu', value: 'coolMenu', sourceSpan: ...}
       */


      var ElementOrDirectiveRef = /*#__PURE__*/function () {
        function ElementOrDirectiveRef(name, value, sourceSpan) {
          _classCallCheck2(this, ElementOrDirectiveRef);

          this.name = name;
          this.value = value;
          this.sourceSpan = sourceSpan;
        }
        /** Gets whether this is a reference to the given directive. */


        _createClass2(ElementOrDirectiveRef, [{
          key: "isReferenceToDirective",
          value: function isReferenceToDirective(directive) {
            return splitExportAs(directive.exportAs).indexOf(this.value) !== -1;
          }
        }]);

        return ElementOrDirectiveRef;
      }();
      /** Splits a raw, potentially comma-delimited `exportAs` value into an array of names. */


      function splitExportAs(exportAs) {
        return exportAs ? exportAs.split(',').map(function (e) {
          return e.trim();
        }) : [];
      }

      function splitClasses(classAttrValue) {
        return classAttrValue.trim().split(/\s+/g);
      }

      var ElementContext = /*#__PURE__*/function () {
        function ElementContext(isTemplateElement, _ngContentIndexMatcher, _wildcardNgContentIndex, providerContext) {
          _classCallCheck2(this, ElementContext);

          this.isTemplateElement = isTemplateElement;
          this._ngContentIndexMatcher = _ngContentIndexMatcher;
          this._wildcardNgContentIndex = _wildcardNgContentIndex;
          this.providerContext = providerContext;
        }

        _createClass2(ElementContext, [{
          key: "findNgContentIndex",
          value: function findNgContentIndex(selector) {
            var ngContentIndices = [];

            this._ngContentIndexMatcher.match(selector, function (selector, ngContentIndex) {
              ngContentIndices.push(ngContentIndex);
            });

            ngContentIndices.sort();

            if (this._wildcardNgContentIndex != null) {
              ngContentIndices.push(this._wildcardNgContentIndex);
            }

            return ngContentIndices.length > 0 ? ngContentIndices[0] : null;
          }
        }], [{
          key: "create",
          value: function create(isTemplateElement, directives, providerContext) {
            var matcher = new SelectorMatcher();
            var wildcardNgContentIndex = null;
            var component = directives.find(function (directive) {
              return directive.directive.isComponent;
            });

            if (component) {
              var ngContentSelectors = component.directive.template.ngContentSelectors;

              for (var i = 0; i < ngContentSelectors.length; i++) {
                var selector = ngContentSelectors[i];

                if (selector === '*') {
                  wildcardNgContentIndex = i;
                } else {
                  matcher.addSelectables(CssSelector.parse(ngContentSelectors[i]), i);
                }
              }
            }

            return new ElementContext(isTemplateElement, matcher, wildcardNgContentIndex, providerContext);
          }
        }]);

        return ElementContext;
      }();

      function createElementCssSelector(elementName, attributes) {
        var cssSelector = new CssSelector();
        var elNameNoNs = splitNsName(elementName)[1];
        cssSelector.setElement(elNameNoNs);

        for (var i = 0; i < attributes.length; i++) {
          var attrName = attributes[i][0];
          var attrNameNoNs = splitNsName(attrName)[1];
          var attrValue = attributes[i][1];
          cssSelector.addAttribute(attrNameNoNs, attrValue);

          if (attrName.toLowerCase() == CLASS_ATTR) {
            var classes = splitClasses(attrValue);
            classes.forEach(function (className) {
              return cssSelector.addClassName(className);
            });
          }
        }

        return cssSelector;
      }

      var EMPTY_ELEMENT_CONTEXT = new ElementContext(true, new SelectorMatcher(), null, null);
      var NON_BINDABLE_VISITOR = new NonBindableVisitor();

      function _isEmptyTextNode(node) {
        return node instanceof Text$3 && node.value.trim().length == 0;
      }

      function removeSummaryDuplicates(items) {
        var map = new Map();
        items.forEach(function (item) {
          if (!map.get(item.type.reference)) {
            map.set(item.type.reference, item);
          }
        });
        return Array.from(map.values());
      }

      function isEmptyExpression(ast) {
        if (ast instanceof ASTWithSource) {
          ast = ast.ast;
        }

        return ast instanceof EmptyExpr;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Parses string representation of a style and converts it into object literal.
       *
       * @param value string representation of style as used in the `style` attribute in HTML.
       *   Example: `color: red; height: auto`.
       * @returns An array of style property name and value pairs, e.g. `['color', 'red', 'height',
       * 'auto']`
       */


      function parse(value) {
        // we use a string array here instead of a string map
        // because a string-map is not guaranteed to retain the
        // order of the entries whereas a string array can be
        // constructed in a [key, value, key, value] format.
        var styles = [];
        var i = 0;
        var parenDepth = 0;
        var quote = 0
        /* QuoteNone */
        ;
        var valueStart = 0;
        var propStart = 0;
        var currentProp = null;
        var valueHasQuotes = false;

        while (i < value.length) {
          var token = value.charCodeAt(i++);

          switch (token) {
            case 40
            /* OpenParen */
            :
              parenDepth++;
              break;

            case 41
            /* CloseParen */
            :
              parenDepth--;
              break;

            case 39
            /* QuoteSingle */
            :
              // valueStart needs to be there since prop values don't
              // have quotes in CSS
              valueHasQuotes = valueHasQuotes || valueStart > 0;

              if (quote === 0
              /* QuoteNone */
              ) {
                quote = 39
                /* QuoteSingle */
                ;
              } else if (quote === 39
              /* QuoteSingle */
              && value.charCodeAt(i - 1) !== 92
              /* BackSlash */
              ) {
                quote = 0
                /* QuoteNone */
                ;
              }

              break;

            case 34
            /* QuoteDouble */
            :
              // same logic as above
              valueHasQuotes = valueHasQuotes || valueStart > 0;

              if (quote === 0
              /* QuoteNone */
              ) {
                quote = 34
                /* QuoteDouble */
                ;
              } else if (quote === 34
              /* QuoteDouble */
              && value.charCodeAt(i - 1) !== 92
              /* BackSlash */
              ) {
                quote = 0
                /* QuoteNone */
                ;
              }

              break;

            case 58
            /* Colon */
            :
              if (!currentProp && parenDepth === 0 && quote === 0
              /* QuoteNone */
              ) {
                currentProp = hyphenate(value.substring(propStart, i - 1).trim());
                valueStart = i;
              }

              break;

            case 59
            /* Semicolon */
            :
              if (currentProp && valueStart > 0 && parenDepth === 0 && quote === 0
              /* QuoteNone */
              ) {
                var styleVal = value.substring(valueStart, i - 1).trim();
                styles.push(currentProp, valueHasQuotes ? stripUnnecessaryQuotes(styleVal) : styleVal);
                propStart = i;
                valueStart = 0;
                currentProp = null;
                valueHasQuotes = false;
              }

              break;
          }
        }

        if (currentProp && valueStart) {
          var _styleVal = value.substr(valueStart).trim();

          styles.push(currentProp, valueHasQuotes ? stripUnnecessaryQuotes(_styleVal) : _styleVal);
        }

        return styles;
      }

      function stripUnnecessaryQuotes(value) {
        var qS = value.charCodeAt(0);
        var qE = value.charCodeAt(value.length - 1);

        if (qS == qE && (qS == 39
        /* QuoteSingle */
        || qS == 34
        /* QuoteDouble */
        )) {
          var tempValue = value.substring(1, value.length - 1); // special case to avoid using a multi-quoted string that was just chomped
          // (e.g. `font-family: "Verdana", "sans-serif"`)

          if (tempValue.indexOf('\'') == -1 && tempValue.indexOf('"') == -1) {
            value = tempValue;
          }
        }

        return value;
      }

      function hyphenate(value) {
        return value.replace(/[a-z][A-Z]/g, function (v) {
          return v.charAt(0) + '-' + v.charAt(1);
        }).toLowerCase();
      }

      var IMPORTANT_FLAG = '!important';
      /**
       * Minimum amount of binding slots required in the runtime for style/class bindings.
       *
       * Styling in Angular uses up two slots in the runtime LView/TData data structures to
       * record binding data, property information and metadata.
       *
       * When a binding is registered it will place the following information in the `LView`:
       *
       * slot 1) binding value
       * slot 2) cached value (all other values collected before it in string form)
       *
       * When a binding is registered it will place the following information in the `TData`:
       *
       * slot 1) prop name
       * slot 2) binding index that points to the previous style/class binding (and some extra config
       * values)
       *
       * Let's imagine we have a binding that looks like so:
       *
       * ```
       * <div [style.width]="x" [style.height]="y">
       * ```
       *
       * Our `LView` and `TData` data-structures look like so:
       *
       * ```typescript
       * LView = [
       *   // ...
       *   x, // value of x
       *   "width: x",
       *
       *   y, // value of y
       *   "width: x; height: y",
       *   // ...
       * ];
       *
       * TData = [
       *   // ...
       *   "width", // binding slot 20
       *   0,
       *
       *   "height",
       *   20,
       *   // ...
       * ];
       * ```
       *
       * */

      var MIN_STYLING_BINDING_SLOTS_REQUIRED = 2;
      /**
       * Produces creation/update instructions for all styling bindings (class and style)
       *
       * It also produces the creation instruction to register all initial styling values
       * (which are all the static class="..." and style="..." attribute values that exist
       * on an element within a template).
       *
       * The builder class below handles producing instructions for the following cases:
       *
       * - Static style/class attributes (style="..." and class="...")
       * - Dynamic style/class map bindings ([style]="map" and [class]="map|string")
       * - Dynamic style/class property bindings ([style.prop]="exp" and [class.name]="exp")
       *
       * Due to the complex relationship of all of these cases, the instructions generated
       * for these attributes/properties/bindings must be done so in the correct order. The
       * order which these must be generated is as follows:
       *
       * if (createMode) {
       *   styling(...)
       * }
       * if (updateMode) {
       *   styleMap(...)
       *   classMap(...)
       *   styleProp(...)
       *   classProp(...)
       * }
       *
       * The creation/update methods within the builder class produce these instructions.
       */

      var StylingBuilder = /*#__PURE__*/function () {
        function StylingBuilder(_directiveExpr) {
          _classCallCheck2(this, StylingBuilder);

          this._directiveExpr = _directiveExpr;
          /** Whether or not there are any static styling values present */

          this._hasInitialValues = false;
          /**
           *  Whether or not there are any styling bindings present
           *  (i.e. `[style]`, `[class]`, `[style.prop]` or `[class.name]`)
           */

          this.hasBindings = false;
          this.hasBindingsWithPipes = false;
          /** the input for [class] (if it exists) */

          this._classMapInput = null;
          /** the input for [style] (if it exists) */

          this._styleMapInput = null;
          /** an array of each [style.prop] input */

          this._singleStyleInputs = null;
          /** an array of each [class.name] input */

          this._singleClassInputs = null;
          this._lastStylingInput = null;
          this._firstStylingInput = null; // maps are used instead of hash maps because a Map will
          // retain the ordering of the keys

          /**
           * Represents the location of each style binding in the template
           * (e.g. `<div [style.width]="w" [style.height]="h">` implies
           * that `width=0` and `height=1`)
           */

          this._stylesIndex = new Map();
          /**
           * Represents the location of each class binding in the template
           * (e.g. `<div [class.big]="b" [class.hidden]="h">` implies
           * that `big=0` and `hidden=1`)
           */

          this._classesIndex = new Map();
          this._initialStyleValues = [];
          this._initialClassValues = [];
        }
        /**
         * Registers a given input to the styling builder to be later used when producing AOT code.
         *
         * The code below will only accept the input if it is somehow tied to styling (whether it be
         * style/class bindings or static style/class attributes).
         */


        _createClass2(StylingBuilder, [{
          key: "registerBoundInput",
          value: function registerBoundInput(input) {
            // [attr.style] or [attr.class] are skipped in the code below,
            // they should not be treated as styling-based bindings since
            // they are intended to be written directly to the attr and
            // will therefore skip all style/class resolution that is present
            // with style="", [style]="" and [style.prop]="", class="",
            // [class.prop]="". [class]="" assignments
            var binding = null;
            var name = input.name;

            switch (input.type) {
              case 0
              /* Property */
              :
                binding = this.registerInputBasedOnName(name, input.value, input.sourceSpan);
                break;

              case 3
              /* Style */
              :
                binding = this.registerStyleInput(name, false, input.value, input.sourceSpan, input.unit);
                break;

              case 2
              /* Class */
              :
                binding = this.registerClassInput(name, false, input.value, input.sourceSpan);
                break;
            }

            return binding ? true : false;
          }
        }, {
          key: "registerInputBasedOnName",
          value: function registerInputBasedOnName(name, expression, sourceSpan) {
            var binding = null;
            var prefix = name.substring(0, 6);
            var isStyle = name === 'style' || prefix === 'style.' || prefix === 'style!';
            var isClass = !isStyle && (name === 'class' || prefix === 'class.' || prefix === 'class!');

            if (isStyle || isClass) {
              var isMapBased = name.charAt(5) !== '.'; // style.prop or class.prop makes this a no

              var property = name.substr(isMapBased ? 5 : 6); // the dot explains why there's a +1

              if (isStyle) {
                binding = this.registerStyleInput(property, isMapBased, expression, sourceSpan);
              } else {
                binding = this.registerClassInput(property, isMapBased, expression, sourceSpan);
              }
            }

            return binding;
          }
        }, {
          key: "registerStyleInput",
          value: function registerStyleInput(name, isMapBased, value, sourceSpan, suffix) {
            if (isEmptyExpression(value)) {
              return null;
            }

            name = normalizePropName(name);

            var _parseProperty = parseProperty(name),
                property = _parseProperty.property,
                hasOverrideFlag = _parseProperty.hasOverrideFlag,
                bindingSuffix = _parseProperty.suffix;

            suffix = typeof suffix === 'string' && suffix.length !== 0 ? suffix : bindingSuffix;
            var entry = {
              name: property,
              suffix: suffix,
              value: value,
              sourceSpan: sourceSpan,
              hasOverrideFlag: hasOverrideFlag
            };

            if (isMapBased) {
              this._styleMapInput = entry;
            } else {
              (this._singleStyleInputs = this._singleStyleInputs || []).push(entry);
              registerIntoMap(this._stylesIndex, property);
            }

            this._lastStylingInput = entry;
            this._firstStylingInput = this._firstStylingInput || entry;

            this._checkForPipes(value);

            this.hasBindings = true;
            return entry;
          }
        }, {
          key: "registerClassInput",
          value: function registerClassInput(name, isMapBased, value, sourceSpan) {
            if (isEmptyExpression(value)) {
              return null;
            }

            var _parseProperty2 = parseProperty(name),
                property = _parseProperty2.property,
                hasOverrideFlag = _parseProperty2.hasOverrideFlag;

            var entry = {
              name: property,
              value: value,
              sourceSpan: sourceSpan,
              hasOverrideFlag: hasOverrideFlag,
              suffix: null
            };

            if (isMapBased) {
              if (this._classMapInput) {
                throw new Error('[class] and [className] bindings cannot be used on the same element simultaneously');
              }

              this._classMapInput = entry;
            } else {
              (this._singleClassInputs = this._singleClassInputs || []).push(entry);
              registerIntoMap(this._classesIndex, property);
            }

            this._lastStylingInput = entry;
            this._firstStylingInput = this._firstStylingInput || entry;

            this._checkForPipes(value);

            this.hasBindings = true;
            return entry;
          }
        }, {
          key: "_checkForPipes",
          value: function _checkForPipes(value) {
            if (value instanceof ASTWithSource && value.ast instanceof BindingPipe) {
              this.hasBindingsWithPipes = true;
            }
          }
          /**
           * Registers the element's static style string value to the builder.
           *
           * @param value the style string (e.g. `width:100px; height:200px;`)
           */

        }, {
          key: "registerStyleAttr",
          value: function registerStyleAttr(value) {
            this._initialStyleValues = parse(value);
            this._hasInitialValues = true;
          }
          /**
           * Registers the element's static class string value to the builder.
           *
           * @param value the className string (e.g. `disabled gold zoom`)
           */

        }, {
          key: "registerClassAttr",
          value: function registerClassAttr(value) {
            this._initialClassValues = value.trim().split(/\s+/g);
            this._hasInitialValues = true;
          }
          /**
           * Appends all styling-related expressions to the provided attrs array.
           *
           * @param attrs an existing array where each of the styling expressions
           * will be inserted into.
           */

        }, {
          key: "populateInitialStylingAttrs",
          value: function populateInitialStylingAttrs(attrs) {
            // [CLASS_MARKER, 'foo', 'bar', 'baz' ...]
            if (this._initialClassValues.length) {
              attrs.push(literal(1
              /* Classes */
              ));

              for (var i = 0; i < this._initialClassValues.length; i++) {
                attrs.push(literal(this._initialClassValues[i]));
              }
            } // [STYLE_MARKER, 'width', '200px', 'height', '100px', ...]


            if (this._initialStyleValues.length) {
              attrs.push(literal(2
              /* Styles */
              ));

              for (var _i9 = 0; _i9 < this._initialStyleValues.length; _i9 += 2) {
                attrs.push(literal(this._initialStyleValues[_i9]), literal(this._initialStyleValues[_i9 + 1]));
              }
            }
          }
          /**
           * Builds an instruction with all the expressions and parameters for `elementHostAttrs`.
           *
           * The instruction generation code below is used for producing the AOT statement code which is
           * responsible for registering initial styles (within a directive hostBindings' creation block),
           * as well as any of the provided attribute values, to the directive host element.
           */

        }, {
          key: "assignHostAttrs",
          value: function assignHostAttrs(attrs, definitionMap) {
            if (this._directiveExpr && (attrs.length || this._hasInitialValues)) {
              this.populateInitialStylingAttrs(attrs);
              definitionMap.set('hostAttrs', literalArr(attrs));
            }
          }
          /**
           * Builds an instruction with all the expressions and parameters for `classMap`.
           *
           * The instruction data will contain all expressions for `classMap` to function
           * which includes the `[class]` expression params.
           */

        }, {
          key: "buildClassMapInstruction",
          value: function buildClassMapInstruction(valueConverter) {
            if (this._classMapInput) {
              return this._buildMapBasedInstruction(valueConverter, true, this._classMapInput);
            }

            return null;
          }
          /**
           * Builds an instruction with all the expressions and parameters for `styleMap`.
           *
           * The instruction data will contain all expressions for `styleMap` to function
           * which includes the `[style]` expression params.
           */

        }, {
          key: "buildStyleMapInstruction",
          value: function buildStyleMapInstruction(valueConverter) {
            if (this._styleMapInput) {
              return this._buildMapBasedInstruction(valueConverter, false, this._styleMapInput);
            }

            return null;
          }
        }, {
          key: "_buildMapBasedInstruction",
          value: function _buildMapBasedInstruction(valueConverter, isClassBased, stylingInput) {
            // each styling binding value is stored in the LView
            // map-based bindings allocate two slots: one for the
            // previous binding value and another for the previous
            // className or style attribute value.
            var totalBindingSlotsRequired = MIN_STYLING_BINDING_SLOTS_REQUIRED; // these values must be outside of the update block so that they can
            // be evaluated (the AST visit call) during creation time so that any
            // pipes can be picked up in time before the template is built

            var mapValue = stylingInput.value.visit(valueConverter);
            var reference;

            if (mapValue instanceof Interpolation) {
              totalBindingSlotsRequired += mapValue.expressions.length;
              reference = isClassBased ? getClassMapInterpolationExpression(mapValue) : getStyleMapInterpolationExpression(mapValue);
            } else {
              reference = isClassBased ? Identifiers$1.classMap : Identifiers$1.styleMap;
            }

            return {
              reference: reference,
              calls: [{
                supportsInterpolation: true,
                sourceSpan: stylingInput.sourceSpan,
                allocateBindingSlots: totalBindingSlotsRequired,
                params: function params(convertFn) {
                  var convertResult = convertFn(mapValue);
                  var params = Array.isArray(convertResult) ? convertResult : [convertResult];
                  return params;
                }
              }]
            };
          }
        }, {
          key: "_buildSingleInputs",
          value: function _buildSingleInputs(reference, inputs, valueConverter, getInterpolationExpressionFn, isClassBased) {
            var instructions = [];
            inputs.forEach(function (input) {
              var previousInstruction = instructions[instructions.length - 1];
              var value = input.value.visit(valueConverter);
              var referenceForCall = reference; // each styling binding value is stored in the LView
              // but there are two values stored for each binding:
              //   1) the value itself
              //   2) an intermediate value (concatenation of style up to this point).
              //      We need to store the intermediate value so that we don't allocate
              //      the strings on each CD.

              var totalBindingSlotsRequired = MIN_STYLING_BINDING_SLOTS_REQUIRED;

              if (value instanceof Interpolation) {
                totalBindingSlotsRequired += value.expressions.length;

                if (getInterpolationExpressionFn) {
                  referenceForCall = getInterpolationExpressionFn(value);
                }
              }

              var call = {
                sourceSpan: input.sourceSpan,
                allocateBindingSlots: totalBindingSlotsRequired,
                supportsInterpolation: !!getInterpolationExpressionFn,
                params: function params(convertFn) {
                  // params => stylingProp(propName, value, suffix)
                  var params = [];
                  params.push(literal(input.name));
                  var convertResult = convertFn(value);

                  if (Array.isArray(convertResult)) {
                    params.push.apply(params, _toConsumableArray(convertResult));
                  } else {
                    params.push(convertResult);
                  } // [style.prop] bindings may use suffix values (e.g. px, em, etc...), therefore,
                  // if that is detected then we need to pass that in as an optional param.


                  if (!isClassBased && input.suffix !== null) {
                    params.push(literal(input.suffix));
                  }

                  return params;
                }
              }; // If we ended up generating a call to the same instruction as the previous styling property
              // we can chain the calls together safely to save some bytes, otherwise we have to generate
              // a separate instruction call. This is primarily a concern with interpolation instructions
              // where we may start off with one `reference`, but end up using another based on the
              // number of interpolations.

              if (previousInstruction && previousInstruction.reference === referenceForCall) {
                previousInstruction.calls.push(call);
              } else {
                instructions.push({
                  reference: referenceForCall,
                  calls: [call]
                });
              }
            });
            return instructions;
          }
        }, {
          key: "_buildClassInputs",
          value: function _buildClassInputs(valueConverter) {
            if (this._singleClassInputs) {
              return this._buildSingleInputs(Identifiers$1.classProp, this._singleClassInputs, valueConverter, null, true);
            }

            return [];
          }
        }, {
          key: "_buildStyleInputs",
          value: function _buildStyleInputs(valueConverter) {
            if (this._singleStyleInputs) {
              return this._buildSingleInputs(Identifiers$1.styleProp, this._singleStyleInputs, valueConverter, getStylePropInterpolationExpression, false);
            }

            return [];
          }
          /**
           * Constructs all instructions which contain the expressions that will be placed
           * into the update block of a template function or a directive hostBindings function.
           */

        }, {
          key: "buildUpdateLevelInstructions",
          value: function buildUpdateLevelInstructions(valueConverter) {
            var instructions = [];

            if (this.hasBindings) {
              var styleMapInstruction = this.buildStyleMapInstruction(valueConverter);

              if (styleMapInstruction) {
                instructions.push(styleMapInstruction);
              }

              var classMapInstruction = this.buildClassMapInstruction(valueConverter);

              if (classMapInstruction) {
                instructions.push(classMapInstruction);
              }

              instructions.push.apply(instructions, _toConsumableArray(this._buildStyleInputs(valueConverter)));
              instructions.push.apply(instructions, _toConsumableArray(this._buildClassInputs(valueConverter)));
            }

            return instructions;
          }
        }]);

        return StylingBuilder;
      }();

      function registerIntoMap(map, key) {
        if (!map.has(key)) {
          map.set(key, map.size);
        }
      }

      function parseProperty(name) {
        var hasOverrideFlag = false;
        var overrideIndex = name.indexOf(IMPORTANT_FLAG);

        if (overrideIndex !== -1) {
          name = overrideIndex > 0 ? name.substring(0, overrideIndex) : '';
          hasOverrideFlag = true;
        }

        var suffix = null;
        var property = name;
        var unitIndex = name.lastIndexOf('.');

        if (unitIndex > 0) {
          suffix = name.substr(unitIndex + 1);
          property = name.substring(0, unitIndex);
        }

        return {
          property: property,
          suffix: suffix,
          hasOverrideFlag: hasOverrideFlag
        };
      }
      /**
       * Gets the instruction to generate for an interpolated class map.
       * @param interpolation An Interpolation AST
       */


      function getClassMapInterpolationExpression(interpolation) {
        switch (getInterpolationArgsLength(interpolation)) {
          case 1:
            return Identifiers$1.classMap;

          case 3:
            return Identifiers$1.classMapInterpolate1;

          case 5:
            return Identifiers$1.classMapInterpolate2;

          case 7:
            return Identifiers$1.classMapInterpolate3;

          case 9:
            return Identifiers$1.classMapInterpolate4;

          case 11:
            return Identifiers$1.classMapInterpolate5;

          case 13:
            return Identifiers$1.classMapInterpolate6;

          case 15:
            return Identifiers$1.classMapInterpolate7;

          case 17:
            return Identifiers$1.classMapInterpolate8;

          default:
            return Identifiers$1.classMapInterpolateV;
        }
      }
      /**
       * Gets the instruction to generate for an interpolated style map.
       * @param interpolation An Interpolation AST
       */


      function getStyleMapInterpolationExpression(interpolation) {
        switch (getInterpolationArgsLength(interpolation)) {
          case 1:
            return Identifiers$1.styleMap;

          case 3:
            return Identifiers$1.styleMapInterpolate1;

          case 5:
            return Identifiers$1.styleMapInterpolate2;

          case 7:
            return Identifiers$1.styleMapInterpolate3;

          case 9:
            return Identifiers$1.styleMapInterpolate4;

          case 11:
            return Identifiers$1.styleMapInterpolate5;

          case 13:
            return Identifiers$1.styleMapInterpolate6;

          case 15:
            return Identifiers$1.styleMapInterpolate7;

          case 17:
            return Identifiers$1.styleMapInterpolate8;

          default:
            return Identifiers$1.styleMapInterpolateV;
        }
      }
      /**
       * Gets the instruction to generate for an interpolated style prop.
       * @param interpolation An Interpolation AST
       */


      function getStylePropInterpolationExpression(interpolation) {
        switch (getInterpolationArgsLength(interpolation)) {
          case 1:
            return Identifiers$1.styleProp;

          case 3:
            return Identifiers$1.stylePropInterpolate1;

          case 5:
            return Identifiers$1.stylePropInterpolate2;

          case 7:
            return Identifiers$1.stylePropInterpolate3;

          case 9:
            return Identifiers$1.stylePropInterpolate4;

          case 11:
            return Identifiers$1.stylePropInterpolate5;

          case 13:
            return Identifiers$1.stylePropInterpolate6;

          case 15:
            return Identifiers$1.stylePropInterpolate7;

          case 17:
            return Identifiers$1.stylePropInterpolate8;

          default:
            return Identifiers$1.stylePropInterpolateV;
        }
      }

      function normalizePropName(prop) {
        return hyphenate(prop);
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var TokenType$1;

      (function (TokenType) {
        TokenType[TokenType["Character"] = 0] = "Character";
        TokenType[TokenType["Identifier"] = 1] = "Identifier";
        TokenType[TokenType["Keyword"] = 2] = "Keyword";
        TokenType[TokenType["String"] = 3] = "String";
        TokenType[TokenType["Operator"] = 4] = "Operator";
        TokenType[TokenType["Number"] = 5] = "Number";
        TokenType[TokenType["Error"] = 6] = "Error";
      })(TokenType$1 || (TokenType$1 = {}));

      var KEYWORDS = ['var', 'let', 'as', 'null', 'undefined', 'true', 'false', 'if', 'else', 'this'];

      var Lexer = /*#__PURE__*/function () {
        function Lexer() {
          _classCallCheck2(this, Lexer);
        }

        _createClass2(Lexer, [{
          key: "tokenize",
          value: function tokenize(text) {
            var scanner = new _Scanner(text);
            var tokens = [];
            var token = scanner.scanToken();

            while (token != null) {
              tokens.push(token);
              token = scanner.scanToken();
            }

            return tokens;
          }
        }]);

        return Lexer;
      }();

      var Token$1 = /*#__PURE__*/function () {
        function Token$1(index, end, type, numValue, strValue) {
          _classCallCheck2(this, Token$1);

          this.index = index;
          this.end = end;
          this.type = type;
          this.numValue = numValue;
          this.strValue = strValue;
        }

        _createClass2(Token$1, [{
          key: "isCharacter",
          value: function isCharacter(code) {
            return this.type == TokenType$1.Character && this.numValue == code;
          }
        }, {
          key: "isNumber",
          value: function isNumber() {
            return this.type == TokenType$1.Number;
          }
        }, {
          key: "isString",
          value: function isString() {
            return this.type == TokenType$1.String;
          }
        }, {
          key: "isOperator",
          value: function isOperator(operator) {
            return this.type == TokenType$1.Operator && this.strValue == operator;
          }
        }, {
          key: "isIdentifier",
          value: function isIdentifier() {
            return this.type == TokenType$1.Identifier;
          }
        }, {
          key: "isKeyword",
          value: function isKeyword() {
            return this.type == TokenType$1.Keyword;
          }
        }, {
          key: "isKeywordLet",
          value: function isKeywordLet() {
            return this.type == TokenType$1.Keyword && this.strValue == 'let';
          }
        }, {
          key: "isKeywordAs",
          value: function isKeywordAs() {
            return this.type == TokenType$1.Keyword && this.strValue == 'as';
          }
        }, {
          key: "isKeywordNull",
          value: function isKeywordNull() {
            return this.type == TokenType$1.Keyword && this.strValue == 'null';
          }
        }, {
          key: "isKeywordUndefined",
          value: function isKeywordUndefined() {
            return this.type == TokenType$1.Keyword && this.strValue == 'undefined';
          }
        }, {
          key: "isKeywordTrue",
          value: function isKeywordTrue() {
            return this.type == TokenType$1.Keyword && this.strValue == 'true';
          }
        }, {
          key: "isKeywordFalse",
          value: function isKeywordFalse() {
            return this.type == TokenType$1.Keyword && this.strValue == 'false';
          }
        }, {
          key: "isKeywordThis",
          value: function isKeywordThis() {
            return this.type == TokenType$1.Keyword && this.strValue == 'this';
          }
        }, {
          key: "isError",
          value: function isError() {
            return this.type == TokenType$1.Error;
          }
        }, {
          key: "toNumber",
          value: function toNumber() {
            return this.type == TokenType$1.Number ? this.numValue : -1;
          }
        }, {
          key: "toString",
          value: function toString() {
            switch (this.type) {
              case TokenType$1.Character:
              case TokenType$1.Identifier:
              case TokenType$1.Keyword:
              case TokenType$1.Operator:
              case TokenType$1.String:
              case TokenType$1.Error:
                return this.strValue;

              case TokenType$1.Number:
                return this.numValue.toString();

              default:
                return null;
            }
          }
        }]);

        return Token$1;
      }();

      function newCharacterToken(index, end, code) {
        return new Token$1(index, end, TokenType$1.Character, code, String.fromCharCode(code));
      }

      function newIdentifierToken(index, end, text) {
        return new Token$1(index, end, TokenType$1.Identifier, 0, text);
      }

      function newKeywordToken(index, end, text) {
        return new Token$1(index, end, TokenType$1.Keyword, 0, text);
      }

      function newOperatorToken(index, end, text) {
        return new Token$1(index, end, TokenType$1.Operator, 0, text);
      }

      function newStringToken(index, end, text) {
        return new Token$1(index, end, TokenType$1.String, 0, text);
      }

      function newNumberToken(index, end, n) {
        return new Token$1(index, end, TokenType$1.Number, n, '');
      }

      function newErrorToken(index, end, message) {
        return new Token$1(index, end, TokenType$1.Error, 0, message);
      }

      var EOF = new Token$1(-1, -1, TokenType$1.Character, 0, '');

      var _Scanner = /*#__PURE__*/function () {
        function _Scanner(input) {
          _classCallCheck2(this, _Scanner);

          this.input = input;
          this.peek = 0;
          this.index = -1;
          this.length = input.length;
          this.advance();
        }

        _createClass2(_Scanner, [{
          key: "advance",
          value: function advance() {
            this.peek = ++this.index >= this.length ? $EOF : this.input.charCodeAt(this.index);
          }
        }, {
          key: "scanToken",
          value: function scanToken() {
            var input = this.input,
                length = this.length;
            var peek = this.peek,
                index = this.index; // Skip whitespace.

            while (peek <= $SPACE) {
              if (++index >= length) {
                peek = $EOF;
                break;
              } else {
                peek = input.charCodeAt(index);
              }
            }

            this.peek = peek;
            this.index = index;

            if (index >= length) {
              return null;
            } // Handle identifiers and numbers.


            if (isIdentifierStart(peek)) return this.scanIdentifier();
            if (isDigit(peek)) return this.scanNumber(index);
            var start = index;

            switch (peek) {
              case $PERIOD:
                this.advance();
                return isDigit(this.peek) ? this.scanNumber(start) : newCharacterToken(start, this.index, $PERIOD);

              case $LPAREN:
              case $RPAREN:
              case $LBRACE:
              case $RBRACE:
              case $LBRACKET:
              case $RBRACKET:
              case $COMMA:
              case $COLON:
              case $SEMICOLON:
                return this.scanCharacter(start, peek);

              case $SQ:
              case $DQ:
                return this.scanString();

              case $HASH:
              case $PLUS:
              case $MINUS:
              case $STAR:
              case $SLASH:
              case $PERCENT:
              case $CARET:
                return this.scanOperator(start, String.fromCharCode(peek));

              case $QUESTION:
                return this.scanComplexOperator(start, '?', $PERIOD, '.');

              case $LT:
              case $GT:
                return this.scanComplexOperator(start, String.fromCharCode(peek), $EQ, '=');

              case $BANG:
              case $EQ:
                return this.scanComplexOperator(start, String.fromCharCode(peek), $EQ, '=', $EQ, '=');

              case $AMPERSAND:
                return this.scanComplexOperator(start, '&', $AMPERSAND, '&');

              case $BAR:
                return this.scanComplexOperator(start, '|', $BAR, '|');

              case $NBSP:
                while (isWhitespace(this.peek)) {
                  this.advance();
                }

                return this.scanToken();
            }

            this.advance();
            return this.error("Unexpected character [".concat(String.fromCharCode(peek), "]"), 0);
          }
        }, {
          key: "scanCharacter",
          value: function scanCharacter(start, code) {
            this.advance();
            return newCharacterToken(start, this.index, code);
          }
        }, {
          key: "scanOperator",
          value: function scanOperator(start, str) {
            this.advance();
            return newOperatorToken(start, this.index, str);
          }
          /**
           * Tokenize a 2/3 char long operator
           *
           * @param start start index in the expression
           * @param one first symbol (always part of the operator)
           * @param twoCode code point for the second symbol
           * @param two second symbol (part of the operator when the second code point matches)
           * @param threeCode code point for the third symbol
           * @param three third symbol (part of the operator when provided and matches source expression)
           */

        }, {
          key: "scanComplexOperator",
          value: function scanComplexOperator(start, one, twoCode, two, threeCode, three) {
            this.advance();
            var str = one;

            if (this.peek == twoCode) {
              this.advance();
              str += two;
            }

            if (threeCode != null && this.peek == threeCode) {
              this.advance();
              str += three;
            }

            return newOperatorToken(start, this.index, str);
          }
        }, {
          key: "scanIdentifier",
          value: function scanIdentifier() {
            var start = this.index;
            this.advance();

            while (isIdentifierPart(this.peek)) {
              this.advance();
            }

            var str = this.input.substring(start, this.index);
            return KEYWORDS.indexOf(str) > -1 ? newKeywordToken(start, this.index, str) : newIdentifierToken(start, this.index, str);
          }
        }, {
          key: "scanNumber",
          value: function scanNumber(start) {
            var simple = this.index === start;
            this.advance(); // Skip initial digit.

            while (true) {
              if (isDigit(this.peek)) {// Do nothing.
              } else if (this.peek == $PERIOD) {
                simple = false;
              } else if (isExponentStart(this.peek)) {
                this.advance();
                if (isExponentSign(this.peek)) this.advance();
                if (!isDigit(this.peek)) return this.error('Invalid exponent', -1);
                simple = false;
              } else {
                break;
              }

              this.advance();
            }

            var str = this.input.substring(start, this.index);
            var value = simple ? parseIntAutoRadix(str) : parseFloat(str);
            return newNumberToken(start, this.index, value);
          }
        }, {
          key: "scanString",
          value: function scanString() {
            var start = this.index;
            var quote = this.peek;
            this.advance(); // Skip initial quote.

            var buffer = '';
            var marker = this.index;
            var input = this.input;

            while (this.peek != quote) {
              if (this.peek == $BACKSLASH) {
                buffer += input.substring(marker, this.index);
                this.advance();
                var unescapedCode = void 0; // Workaround for TS2.1-introduced type strictness

                this.peek = this.peek;

                if (this.peek == $u) {
                  // 4 character hex code for unicode character.
                  var hex = input.substring(this.index + 1, this.index + 5);

                  if (/^[0-9a-f]+$/i.test(hex)) {
                    unescapedCode = parseInt(hex, 16);
                  } else {
                    return this.error("Invalid unicode escape [\\u".concat(hex, "]"), 0);
                  }

                  for (var i = 0; i < 5; i++) {
                    this.advance();
                  }
                } else {
                  unescapedCode = unescape(this.peek);
                  this.advance();
                }

                buffer += String.fromCharCode(unescapedCode);
                marker = this.index;
              } else if (this.peek == $EOF) {
                return this.error('Unterminated quote', 0);
              } else {
                this.advance();
              }
            }

            var last = input.substring(marker, this.index);
            this.advance(); // Skip terminating quote.

            return newStringToken(start, this.index, buffer + last);
          }
        }, {
          key: "error",
          value: function error(message, offset) {
            var position = this.index + offset;
            return newErrorToken(position, this.index, "Lexer Error: ".concat(message, " at column ").concat(position, " in expression [").concat(this.input, "]"));
          }
        }]);

        return _Scanner;
      }();

      function isIdentifierStart(code) {
        return $a <= code && code <= $z || $A <= code && code <= $Z || code == $_ || code == $$;
      }

      function isIdentifier(input) {
        if (input.length == 0) return false;
        var scanner = new _Scanner(input);
        if (!isIdentifierStart(scanner.peek)) return false;
        scanner.advance();

        while (scanner.peek !== $EOF) {
          if (!isIdentifierPart(scanner.peek)) return false;
          scanner.advance();
        }

        return true;
      }

      function isIdentifierPart(code) {
        return isAsciiLetter(code) || isDigit(code) || code == $_ || code == $$;
      }

      function isExponentStart(code) {
        return code == $e || code == $E;
      }

      function isExponentSign(code) {
        return code == $MINUS || code == $PLUS;
      }

      function isQuote(code) {
        return code === $SQ || code === $DQ || code === $BT;
      }

      function unescape(code) {
        switch (code) {
          case $n:
            return $LF;

          case $f:
            return $FF;

          case $r:
            return $CR;

          case $t:
            return $TAB;

          case $v:
            return $VTAB;

          default:
            return code;
        }
      }

      function parseIntAutoRadix(text) {
        var result = parseInt(text);

        if (isNaN(result)) {
          throw new Error('Invalid integer literal when parsing ' + text);
        }

        return result;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var SplitInterpolation = function SplitInterpolation(strings, stringSpans, expressions, expressionsSpans, offsets) {
        _classCallCheck2(this, SplitInterpolation);

        this.strings = strings;
        this.stringSpans = stringSpans;
        this.expressions = expressions;
        this.expressionsSpans = expressionsSpans;
        this.offsets = offsets;
      };

      var TemplateBindingParseResult = function TemplateBindingParseResult(templateBindings, warnings, errors) {
        _classCallCheck2(this, TemplateBindingParseResult);

        this.templateBindings = templateBindings;
        this.warnings = warnings;
        this.errors = errors;
      };

      var defaultInterpolateRegExp = _createInterpolateRegExp(DEFAULT_INTERPOLATION_CONFIG);

      function _getInterpolateRegExp(config) {
        if (config === DEFAULT_INTERPOLATION_CONFIG) {
          return defaultInterpolateRegExp;
        } else {
          return _createInterpolateRegExp(config);
        }
      }

      function _createInterpolateRegExp(config) {
        var pattern = escapeRegExp(config.start) + '([\\s\\S]*?)' + escapeRegExp(config.end);
        return new RegExp(pattern, 'g');
      }

      var Parser$1 = /*#__PURE__*/function () {
        function Parser$1(_lexer) {
          _classCallCheck2(this, Parser$1);

          this._lexer = _lexer;
          this.errors = [];
          this.simpleExpressionChecker = SimpleExpressionChecker;
        }

        _createClass2(Parser$1, [{
          key: "parseAction",
          value: function parseAction(input, location, absoluteOffset) {
            var interpolationConfig = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : DEFAULT_INTERPOLATION_CONFIG;

            this._checkNoInterpolation(input, location, interpolationConfig);

            var sourceToLex = this._stripComments(input);

            var tokens = this._lexer.tokenize(this._stripComments(input));

            var ast = new _ParseAST(input, location, absoluteOffset, tokens, sourceToLex.length, true, this.errors, input.length - sourceToLex.length).parseChain();
            return new ASTWithSource(ast, input, location, absoluteOffset, this.errors);
          }
        }, {
          key: "parseBinding",
          value: function parseBinding(input, location, absoluteOffset) {
            var interpolationConfig = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : DEFAULT_INTERPOLATION_CONFIG;

            var ast = this._parseBindingAst(input, location, absoluteOffset, interpolationConfig);

            return new ASTWithSource(ast, input, location, absoluteOffset, this.errors);
          }
        }, {
          key: "checkSimpleExpression",
          value: function checkSimpleExpression(ast) {
            var checker = new this.simpleExpressionChecker();
            ast.visit(checker);
            return checker.errors;
          }
        }, {
          key: "parseSimpleBinding",
          value: function parseSimpleBinding(input, location, absoluteOffset) {
            var interpolationConfig = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : DEFAULT_INTERPOLATION_CONFIG;

            var ast = this._parseBindingAst(input, location, absoluteOffset, interpolationConfig);

            var errors = this.checkSimpleExpression(ast);

            if (errors.length > 0) {
              this._reportError("Host binding expression cannot contain ".concat(errors.join(' ')), input, location);
            }

            return new ASTWithSource(ast, input, location, absoluteOffset, this.errors);
          }
        }, {
          key: "_reportError",
          value: function _reportError(message, input, errLocation, ctxLocation) {
            this.errors.push(new ParserError(message, input, errLocation, ctxLocation));
          }
        }, {
          key: "_parseBindingAst",
          value: function _parseBindingAst(input, location, absoluteOffset, interpolationConfig) {
            // Quotes expressions use 3rd-party expression language. We don't want to use
            // our lexer or parser for that, so we check for that ahead of time.
            var quote = this._parseQuote(input, location, absoluteOffset);

            if (quote != null) {
              return quote;
            }

            this._checkNoInterpolation(input, location, interpolationConfig);

            var sourceToLex = this._stripComments(input);

            var tokens = this._lexer.tokenize(sourceToLex);

            return new _ParseAST(input, location, absoluteOffset, tokens, sourceToLex.length, false, this.errors, input.length - sourceToLex.length).parseChain();
          }
        }, {
          key: "_parseQuote",
          value: function _parseQuote(input, location, absoluteOffset) {
            if (input == null) return null;
            var prefixSeparatorIndex = input.indexOf(':');
            if (prefixSeparatorIndex == -1) return null;
            var prefix = input.substring(0, prefixSeparatorIndex).trim();
            if (!isIdentifier(prefix)) return null;
            var uninterpretedExpression = input.substring(prefixSeparatorIndex + 1);
            var span = new ParseSpan(0, input.length);
            return new Quote(span, span.toAbsolute(absoluteOffset), prefix, uninterpretedExpression, location);
          }
          /**
           * Parse microsyntax template expression and return a list of bindings or
           * parsing errors in case the given expression is invalid.
           *
           * For example,
           * ```
           *   <div *ngFor="let item of items">
           *         ^      ^ absoluteValueOffset for `templateValue`
           *         absoluteKeyOffset for `templateKey`
           * ```
           * contains three bindings:
           * 1. ngFor -> null
           * 2. item -> NgForOfContext.$implicit
           * 3. ngForOf -> items
           *
           * This is apparent from the de-sugared template:
           * ```
           *   <ng-template ngFor let-item [ngForOf]="items">
           * ```
           *
           * @param templateKey name of directive, without the * prefix. For example: ngIf, ngFor
           * @param templateValue RHS of the microsyntax attribute
           * @param templateUrl template filename if it's external, component filename if it's inline
           * @param absoluteKeyOffset start of the `templateKey`
           * @param absoluteValueOffset start of the `templateValue`
           */

        }, {
          key: "parseTemplateBindings",
          value: function parseTemplateBindings(templateKey, templateValue, templateUrl, absoluteKeyOffset, absoluteValueOffset) {
            var tokens = this._lexer.tokenize(templateValue);

            var parser = new _ParseAST(templateValue, templateUrl, absoluteValueOffset, tokens, templateValue.length, false
            /* parseAction */
            , this.errors, 0
            /* relative offset */
            );
            return parser.parseTemplateBindings({
              source: templateKey,
              span: new AbsoluteSourceSpan(absoluteKeyOffset, absoluteKeyOffset + templateKey.length)
            });
          }
        }, {
          key: "parseInterpolation",
          value: function parseInterpolation(input, location, absoluteOffset) {
            var interpolationConfig = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : DEFAULT_INTERPOLATION_CONFIG;
            var split = this.splitInterpolation(input, location, interpolationConfig);
            if (split == null) return null;
            var expressions = [];

            for (var i = 0; i < split.expressions.length; ++i) {
              var expressionText = split.expressions[i];

              var sourceToLex = this._stripComments(expressionText);

              var tokens = this._lexer.tokenize(sourceToLex);

              var ast = new _ParseAST(input, location, absoluteOffset, tokens, sourceToLex.length, false, this.errors, split.offsets[i] + (expressionText.length - sourceToLex.length)).parseChain();
              expressions.push(ast);
            }

            return this.createInterpolationAst(split.strings, expressions, input, location, absoluteOffset);
          }
          /**
           * Similar to `parseInterpolation`, but treats the provided string as a single expression
           * element that would normally appear within the interpolation prefix and suffix (`{{` and `}}`).
           * This is used for parsing the switch expression in ICUs.
           */

        }, {
          key: "parseInterpolationExpression",
          value: function parseInterpolationExpression(expression, location, absoluteOffset) {
            var sourceToLex = this._stripComments(expression);

            var tokens = this._lexer.tokenize(sourceToLex);

            var ast = new _ParseAST(expression, location, absoluteOffset, tokens, sourceToLex.length,
            /* parseAction */
            false, this.errors, 0).parseChain();
            var strings = ['', '']; // The prefix and suffix strings are both empty

            return this.createInterpolationAst(strings, [ast], expression, location, absoluteOffset);
          }
        }, {
          key: "createInterpolationAst",
          value: function createInterpolationAst(strings, expressions, input, location, absoluteOffset) {
            var span = new ParseSpan(0, input.length);
            var interpolation = new Interpolation(span, span.toAbsolute(absoluteOffset), strings, expressions);
            return new ASTWithSource(interpolation, input, location, absoluteOffset, this.errors);
          }
          /**
           * Splits a string of text into "raw" text segments and expressions present in interpolations in
           * the string.
           * Returns `null` if there are no interpolations, otherwise a
           * `SplitInterpolation` with splits that look like
           *   <raw text> <expression> <raw text> ... <raw text> <expression> <raw text>
           */

        }, {
          key: "splitInterpolation",
          value: function splitInterpolation(input, location) {
            var interpolationConfig = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : DEFAULT_INTERPOLATION_CONFIG;
            var strings = [];
            var expressions = [];
            var offsets = [];
            var stringSpans = [];
            var expressionSpans = [];
            var i = 0;
            var atInterpolation = false;
            var extendLastString = false;
            var interpStart = interpolationConfig.start,
                interpEnd = interpolationConfig.end;

            while (i < input.length) {
              if (!atInterpolation) {
                // parse until starting {{
                var _start4 = i;
                i = input.indexOf(interpStart, i);

                if (i === -1) {
                  i = input.length;
                }

                var part = input.substring(_start4, i);
                strings.push(part);
                stringSpans.push({
                  start: _start4,
                  end: i
                });
                atInterpolation = true;
              } else {
                // parse from starting {{ to ending }}
                var fullStart = i;
                var exprStart = fullStart + interpStart.length;
                var exprEnd = input.indexOf(interpEnd, exprStart);

                if (exprEnd === -1) {
                  // Could not find the end of the interpolation; do not parse an expression.
                  // Instead we should extend the content on the last raw string.
                  atInterpolation = false;
                  extendLastString = true;
                  break;
                }

                var fullEnd = exprEnd + interpEnd.length;

                var _part2 = input.substring(exprStart, exprEnd);

                if (_part2.trim().length > 0) {
                  expressions.push(_part2);
                } else {
                  this._reportError('Blank expressions are not allowed in interpolated strings', input, "at column ".concat(i, " in"), location);

                  expressions.push('$implicit');
                }

                offsets.push(exprStart);
                expressionSpans.push({
                  start: fullStart,
                  end: fullEnd
                });
                i = fullEnd;
                atInterpolation = false;
              }
            }

            if (!atInterpolation) {
              // If we are now at a text section, add the remaining content as a raw string.
              if (extendLastString) {
                strings[strings.length - 1] += input.substring(i);
                stringSpans[stringSpans.length - 1].end = input.length;
              } else {
                strings.push(input.substring(i));
                stringSpans.push({
                  start: i,
                  end: input.length
                });
              }
            }

            return expressions.length === 0 ? null : new SplitInterpolation(strings, stringSpans, expressions, expressionSpans, offsets);
          }
        }, {
          key: "wrapLiteralPrimitive",
          value: function wrapLiteralPrimitive(input, location, absoluteOffset) {
            var span = new ParseSpan(0, input == null ? 0 : input.length);
            return new ASTWithSource(new LiteralPrimitive(span, span.toAbsolute(absoluteOffset), input), input, location, absoluteOffset, this.errors);
          }
        }, {
          key: "_stripComments",
          value: function _stripComments(input) {
            var i = this._commentStart(input);

            return i != null ? input.substring(0, i).trim() : input;
          }
        }, {
          key: "_commentStart",
          value: function _commentStart(input) {
            var outerQuote = null;

            for (var i = 0; i < input.length - 1; i++) {
              var _char7 = input.charCodeAt(i);

              var nextChar = input.charCodeAt(i + 1);
              if (_char7 === $SLASH && nextChar == $SLASH && outerQuote == null) return i;

              if (outerQuote === _char7) {
                outerQuote = null;
              } else if (outerQuote == null && isQuote(_char7)) {
                outerQuote = _char7;
              }
            }

            return null;
          }
        }, {
          key: "_checkNoInterpolation",
          value: function _checkNoInterpolation(input, location, interpolationConfig) {
            var regexp = _getInterpolateRegExp(interpolationConfig);

            var parts = input.split(regexp);

            if (parts.length > 1) {
              this._reportError("Got interpolation (".concat(interpolationConfig.start).concat(interpolationConfig.end, ") where expression was expected"), input, "at column ".concat(this._findInterpolationErrorColumn(parts, 1, interpolationConfig), " in"), location);
            }
          }
        }, {
          key: "_findInterpolationErrorColumn",
          value: function _findInterpolationErrorColumn(parts, partInErrIdx, interpolationConfig) {
            var errLocation = '';

            for (var j = 0; j < partInErrIdx; j++) {
              errLocation += j % 2 === 0 ? parts[j] : "".concat(interpolationConfig.start).concat(parts[j]).concat(interpolationConfig.end);
            }

            return errLocation.length;
          }
        }]);

        return Parser$1;
      }();

      var IvyParser = /*#__PURE__*/function (_Parser$) {
        _inherits2(IvyParser, _Parser$);

        var _super104 = _createSuper2(IvyParser);

        function IvyParser() {
          var _this202;

          _classCallCheck2(this, IvyParser);

          _this202 = _super104.apply(this, arguments);
          _this202.simpleExpressionChecker = IvySimpleExpressionChecker; //

          return _this202;
        }

        return IvyParser;
      }(Parser$1);
      /** Describes a stateful context an expression parser is in. */


      var ParseContextFlags;

      (function (ParseContextFlags) {
        ParseContextFlags[ParseContextFlags["None"] = 0] = "None";
        /**
         * A Writable context is one in which a value may be written to an lvalue.
         * For example, after we see a property access, we may expect a write to the
         * property via the "=" operator.
         *   prop
         *        ^ possible "=" after
         */

        ParseContextFlags[ParseContextFlags["Writable"] = 1] = "Writable";
      })(ParseContextFlags || (ParseContextFlags = {}));

      var _ParseAST = /*#__PURE__*/function () {
        function _ParseAST(input, location, absoluteOffset, tokens, inputLength, parseAction, errors, offset) {
          _classCallCheck2(this, _ParseAST);

          this.input = input;
          this.location = location;
          this.absoluteOffset = absoluteOffset;
          this.tokens = tokens;
          this.inputLength = inputLength;
          this.parseAction = parseAction;
          this.errors = errors;
          this.offset = offset;
          this.rparensExpected = 0;
          this.rbracketsExpected = 0;
          this.rbracesExpected = 0;
          this.context = ParseContextFlags.None; // Cache of expression start and input indeces to the absolute source span they map to, used to
          // prevent creating superfluous source spans in `sourceSpan`.
          // A serial of the expression start and input index is used for mapping because both are stateful
          // and may change for subsequent expressions visited by the parser.

          this.sourceSpanCache = new Map();
          this.index = 0;
        }

        _createClass2(_ParseAST, [{
          key: "peek",
          value: function peek(offset) {
            var i = this.index + offset;
            return i < this.tokens.length ? this.tokens[i] : EOF;
          }
        }, {
          key: "next",
          get: function get() {
            return this.peek(0);
          }
          /** Whether all the parser input has been processed. */

        }, {
          key: "atEOF",
          get: function get() {
            return this.index >= this.tokens.length;
          }
          /**
           * Index of the next token to be processed, or the end of the last token if all have been
           * processed.
           */

        }, {
          key: "inputIndex",
          get: function get() {
            return this.atEOF ? this.currentEndIndex : this.next.index + this.offset;
          }
          /**
           * End index of the last processed token, or the start of the first token if none have been
           * processed.
           */

        }, {
          key: "currentEndIndex",
          get: function get() {
            if (this.index > 0) {
              var curToken = this.peek(-1);
              return curToken.end + this.offset;
            } // No tokens have been processed yet; return the next token's start or the length of the input
            // if there is no token.


            if (this.tokens.length === 0) {
              return this.inputLength + this.offset;
            }

            return this.next.index + this.offset;
          }
          /**
           * Returns the absolute offset of the start of the current token.
           */

        }, {
          key: "currentAbsoluteOffset",
          get: function get() {
            return this.absoluteOffset + this.inputIndex;
          }
        }, {
          key: "span",
          value: function span(start) {
            return new ParseSpan(start, this.currentEndIndex);
          }
        }, {
          key: "sourceSpan",
          value: function sourceSpan(start) {
            var serial = "".concat(start, "@").concat(this.inputIndex);

            if (!this.sourceSpanCache.has(serial)) {
              this.sourceSpanCache.set(serial, this.span(start).toAbsolute(this.absoluteOffset));
            }

            return this.sourceSpanCache.get(serial);
          }
        }, {
          key: "advance",
          value: function advance() {
            this.index++;
          }
          /**
           * Executes a callback in the provided context.
           */

        }, {
          key: "withContext",
          value: function withContext(context, cb) {
            this.context |= context;
            var ret = cb();
            this.context ^= context;
            return ret;
          }
        }, {
          key: "consumeOptionalCharacter",
          value: function consumeOptionalCharacter(code) {
            if (this.next.isCharacter(code)) {
              this.advance();
              return true;
            } else {
              return false;
            }
          }
        }, {
          key: "peekKeywordLet",
          value: function peekKeywordLet() {
            return this.next.isKeywordLet();
          }
        }, {
          key: "peekKeywordAs",
          value: function peekKeywordAs() {
            return this.next.isKeywordAs();
          }
          /**
           * Consumes an expected character, otherwise emits an error about the missing expected character
           * and skips over the token stream until reaching a recoverable point.
           *
           * See `this.error` and `this.skip` for more details.
           */

        }, {
          key: "expectCharacter",
          value: function expectCharacter(code) {
            if (this.consumeOptionalCharacter(code)) return;
            this.error("Missing expected ".concat(String.fromCharCode(code)));
          }
        }, {
          key: "consumeOptionalOperator",
          value: function consumeOptionalOperator(op) {
            if (this.next.isOperator(op)) {
              this.advance();
              return true;
            } else {
              return false;
            }
          }
        }, {
          key: "expectOperator",
          value: function expectOperator(operator) {
            if (this.consumeOptionalOperator(operator)) return;
            this.error("Missing expected operator ".concat(operator));
          }
        }, {
          key: "prettyPrintToken",
          value: function prettyPrintToken(tok) {
            return tok === EOF ? 'end of input' : "token ".concat(tok);
          }
        }, {
          key: "expectIdentifierOrKeyword",
          value: function expectIdentifierOrKeyword() {
            var n = this.next;

            if (!n.isIdentifier() && !n.isKeyword()) {
              this.error("Unexpected ".concat(this.prettyPrintToken(n), ", expected identifier or keyword"));
              return '';
            }

            this.advance();
            return n.toString();
          }
        }, {
          key: "expectIdentifierOrKeywordOrString",
          value: function expectIdentifierOrKeywordOrString() {
            var n = this.next;

            if (!n.isIdentifier() && !n.isKeyword() && !n.isString()) {
              this.error("Unexpected ".concat(this.prettyPrintToken(n), ", expected identifier, keyword, or string"));
              return '';
            }

            this.advance();
            return n.toString();
          }
        }, {
          key: "parseChain",
          value: function parseChain() {
            var exprs = [];
            var start = this.inputIndex;

            while (this.index < this.tokens.length) {
              var expr = this.parsePipe();
              exprs.push(expr);

              if (this.consumeOptionalCharacter($SEMICOLON)) {
                if (!this.parseAction) {
                  this.error('Binding expression cannot contain chained expression');
                }

                while (this.consumeOptionalCharacter($SEMICOLON)) {} // read all semicolons

              } else if (this.index < this.tokens.length) {
                this.error("Unexpected token '".concat(this.next, "'"));
              }
            }

            if (exprs.length == 0) return new EmptyExpr(this.span(start), this.sourceSpan(start));
            if (exprs.length == 1) return exprs[0];
            return new Chain(this.span(start), this.sourceSpan(start), exprs);
          }
        }, {
          key: "parsePipe",
          value: function parsePipe() {
            var result = this.parseExpression();

            if (this.consumeOptionalOperator('|')) {
              if (this.parseAction) {
                this.error('Cannot have a pipe in an action expression');
              }

              do {
                var nameStart = this.inputIndex;
                var name = this.expectIdentifierOrKeyword();
                var nameSpan = this.sourceSpan(nameStart);
                var args = [];

                while (this.consumeOptionalCharacter($COLON)) {
                  args.push(this.parseExpression());
                }

                var _start5 = result.span.start;
                result = new BindingPipe(this.span(_start5), this.sourceSpan(_start5), result, name, args, nameSpan);
              } while (this.consumeOptionalOperator('|'));
            }

            return result;
          }
        }, {
          key: "parseExpression",
          value: function parseExpression() {
            return this.parseConditional();
          }
        }, {
          key: "parseConditional",
          value: function parseConditional() {
            var start = this.inputIndex;
            var result = this.parseLogicalOr();

            if (this.consumeOptionalOperator('?')) {
              var yes = this.parsePipe();
              var no;

              if (!this.consumeOptionalCharacter($COLON)) {
                var end = this.inputIndex;
                var expression = this.input.substring(start, end);
                this.error("Conditional expression ".concat(expression, " requires all 3 expressions"));
                no = new EmptyExpr(this.span(start), this.sourceSpan(start));
              } else {
                no = this.parsePipe();
              }

              return new Conditional(this.span(start), this.sourceSpan(start), result, yes, no);
            } else {
              return result;
            }
          }
        }, {
          key: "parseLogicalOr",
          value: function parseLogicalOr() {
            // '||'
            var result = this.parseLogicalAnd();

            while (this.consumeOptionalOperator('||')) {
              var right = this.parseLogicalAnd();
              var _start6 = result.span.start;
              result = new Binary(this.span(_start6), this.sourceSpan(_start6), '||', result, right);
            }

            return result;
          }
        }, {
          key: "parseLogicalAnd",
          value: function parseLogicalAnd() {
            // '&&'
            var result = this.parseEquality();

            while (this.consumeOptionalOperator('&&')) {
              var right = this.parseEquality();
              var _start7 = result.span.start;
              result = new Binary(this.span(_start7), this.sourceSpan(_start7), '&&', result, right);
            }

            return result;
          }
        }, {
          key: "parseEquality",
          value: function parseEquality() {
            // '==','!=','===','!=='
            var result = this.parseRelational();

            while (this.next.type == TokenType$1.Operator) {
              var operator = this.next.strValue;

              switch (operator) {
                case '==':
                case '===':
                case '!=':
                case '!==':
                  this.advance();
                  var right = this.parseRelational();
                  var _start8 = result.span.start;
                  result = new Binary(this.span(_start8), this.sourceSpan(_start8), operator, result, right);
                  continue;
              }

              break;
            }

            return result;
          }
        }, {
          key: "parseRelational",
          value: function parseRelational() {
            // '<', '>', '<=', '>='
            var result = this.parseAdditive();

            while (this.next.type == TokenType$1.Operator) {
              var operator = this.next.strValue;

              switch (operator) {
                case '<':
                case '>':
                case '<=':
                case '>=':
                  this.advance();
                  var right = this.parseAdditive();
                  var _start9 = result.span.start;
                  result = new Binary(this.span(_start9), this.sourceSpan(_start9), operator, result, right);
                  continue;
              }

              break;
            }

            return result;
          }
        }, {
          key: "parseAdditive",
          value: function parseAdditive() {
            // '+', '-'
            var result = this.parseMultiplicative();

            while (this.next.type == TokenType$1.Operator) {
              var operator = this.next.strValue;

              switch (operator) {
                case '+':
                case '-':
                  this.advance();
                  var right = this.parseMultiplicative();
                  var _start10 = result.span.start;
                  result = new Binary(this.span(_start10), this.sourceSpan(_start10), operator, result, right);
                  continue;
              }

              break;
            }

            return result;
          }
        }, {
          key: "parseMultiplicative",
          value: function parseMultiplicative() {
            // '*', '%', '/'
            var result = this.parsePrefix();

            while (this.next.type == TokenType$1.Operator) {
              var operator = this.next.strValue;

              switch (operator) {
                case '*':
                case '%':
                case '/':
                  this.advance();
                  var right = this.parsePrefix();
                  var _start11 = result.span.start;
                  result = new Binary(this.span(_start11), this.sourceSpan(_start11), operator, result, right);
                  continue;
              }

              break;
            }

            return result;
          }
        }, {
          key: "parsePrefix",
          value: function parsePrefix() {
            if (this.next.type == TokenType$1.Operator) {
              var _start12 = this.inputIndex;
              var operator = this.next.strValue;
              var result;

              switch (operator) {
                case '+':
                  this.advance();
                  result = this.parsePrefix();
                  return Unary.createPlus(this.span(_start12), this.sourceSpan(_start12), result);

                case '-':
                  this.advance();
                  result = this.parsePrefix();
                  return Unary.createMinus(this.span(_start12), this.sourceSpan(_start12), result);

                case '!':
                  this.advance();
                  result = this.parsePrefix();
                  return new PrefixNot(this.span(_start12), this.sourceSpan(_start12), result);
              }
            }

            return this.parseCallChain();
          }
        }, {
          key: "parseCallChain",
          value: function parseCallChain() {
            var _this203 = this;

            var result = this.parsePrimary();
            var resultStart = result.span.start;

            while (true) {
              if (this.consumeOptionalCharacter($PERIOD)) {
                result = this.parseAccessMemberOrMethodCall(result, false);
              } else if (this.consumeOptionalOperator('?.')) {
                result = this.parseAccessMemberOrMethodCall(result, true);
              } else if (this.consumeOptionalCharacter($LBRACKET)) {
                this.withContext(ParseContextFlags.Writable, function () {
                  _this203.rbracketsExpected++;

                  var key = _this203.parsePipe();

                  if (key instanceof EmptyExpr) {
                    _this203.error("Key access cannot be empty");
                  }

                  _this203.rbracketsExpected--;

                  _this203.expectCharacter($RBRACKET);

                  if (_this203.consumeOptionalOperator('=')) {
                    var value = _this203.parseConditional();

                    result = new KeyedWrite(_this203.span(resultStart), _this203.sourceSpan(resultStart), result, key, value);
                  } else {
                    result = new KeyedRead(_this203.span(resultStart), _this203.sourceSpan(resultStart), result, key);
                  }
                });
              } else if (this.consumeOptionalCharacter($LPAREN)) {
                this.rparensExpected++;
                var args = this.parseCallArguments();
                this.rparensExpected--;
                this.expectCharacter($RPAREN);
                result = new FunctionCall(this.span(resultStart), this.sourceSpan(resultStart), result, args);
              } else if (this.consumeOptionalOperator('!')) {
                result = new NonNullAssert(this.span(resultStart), this.sourceSpan(resultStart), result);
              } else {
                return result;
              }
            }
          }
        }, {
          key: "parsePrimary",
          value: function parsePrimary() {
            var start = this.inputIndex;

            if (this.consumeOptionalCharacter($LPAREN)) {
              this.rparensExpected++;
              var result = this.parsePipe();
              this.rparensExpected--;
              this.expectCharacter($RPAREN);
              return result;
            } else if (this.next.isKeywordNull()) {
              this.advance();
              return new LiteralPrimitive(this.span(start), this.sourceSpan(start), null);
            } else if (this.next.isKeywordUndefined()) {
              this.advance();
              return new LiteralPrimitive(this.span(start), this.sourceSpan(start), void 0);
            } else if (this.next.isKeywordTrue()) {
              this.advance();
              return new LiteralPrimitive(this.span(start), this.sourceSpan(start), true);
            } else if (this.next.isKeywordFalse()) {
              this.advance();
              return new LiteralPrimitive(this.span(start), this.sourceSpan(start), false);
            } else if (this.next.isKeywordThis()) {
              this.advance();
              return new ThisReceiver(this.span(start), this.sourceSpan(start));
            } else if (this.consumeOptionalCharacter($LBRACKET)) {
              this.rbracketsExpected++;
              var elements = this.parseExpressionList($RBRACKET);
              this.rbracketsExpected--;
              this.expectCharacter($RBRACKET);
              return new LiteralArray(this.span(start), this.sourceSpan(start), elements);
            } else if (this.next.isCharacter($LBRACE)) {
              return this.parseLiteralMap();
            } else if (this.next.isIdentifier()) {
              return this.parseAccessMemberOrMethodCall(new ImplicitReceiver(this.span(start), this.sourceSpan(start)), false);
            } else if (this.next.isNumber()) {
              var value = this.next.toNumber();
              this.advance();
              return new LiteralPrimitive(this.span(start), this.sourceSpan(start), value);
            } else if (this.next.isString()) {
              var literalValue = this.next.toString();
              this.advance();
              return new LiteralPrimitive(this.span(start), this.sourceSpan(start), literalValue);
            } else if (this.index >= this.tokens.length) {
              this.error("Unexpected end of expression: ".concat(this.input));
              return new EmptyExpr(this.span(start), this.sourceSpan(start));
            } else {
              this.error("Unexpected token ".concat(this.next));
              return new EmptyExpr(this.span(start), this.sourceSpan(start));
            }
          }
        }, {
          key: "parseExpressionList",
          value: function parseExpressionList(terminator) {
            var result = [];

            if (!this.next.isCharacter(terminator)) {
              do {
                result.push(this.parsePipe());
              } while (this.consumeOptionalCharacter($COMMA));
            }

            return result;
          }
        }, {
          key: "parseLiteralMap",
          value: function parseLiteralMap() {
            var keys = [];
            var values = [];
            var start = this.inputIndex;
            this.expectCharacter($LBRACE);

            if (!this.consumeOptionalCharacter($RBRACE)) {
              this.rbracesExpected++;

              do {
                var quoted = this.next.isString();
                var key = this.expectIdentifierOrKeywordOrString();
                keys.push({
                  key: key,
                  quoted: quoted
                });
                this.expectCharacter($COLON);
                values.push(this.parsePipe());
              } while (this.consumeOptionalCharacter($COMMA));

              this.rbracesExpected--;
              this.expectCharacter($RBRACE);
            }

            return new LiteralMap(this.span(start), this.sourceSpan(start), keys, values);
          }
        }, {
          key: "parseAccessMemberOrMethodCall",
          value: function parseAccessMemberOrMethodCall(receiver) {
            var isSafe = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
            var start = receiver.span.start;
            var nameStart = this.inputIndex;
            var id = this.expectIdentifierOrKeyword();
            var nameSpan = this.sourceSpan(nameStart);

            if (this.consumeOptionalCharacter($LPAREN)) {
              this.rparensExpected++;
              var args = this.parseCallArguments();
              this.expectCharacter($RPAREN);
              this.rparensExpected--;
              var span = this.span(start);
              var sourceSpan = this.sourceSpan(start);
              return isSafe ? new SafeMethodCall(span, sourceSpan, nameSpan, receiver, id, args) : new MethodCall(span, sourceSpan, nameSpan, receiver, id, args);
            } else {
              if (isSafe) {
                if (this.consumeOptionalOperator('=')) {
                  this.error('The \'?.\' operator cannot be used in the assignment');
                  return new EmptyExpr(this.span(start), this.sourceSpan(start));
                } else {
                  return new SafePropertyRead(this.span(start), this.sourceSpan(start), nameSpan, receiver, id);
                }
              } else {
                if (this.consumeOptionalOperator('=')) {
                  if (!this.parseAction) {
                    this.error('Bindings cannot contain assignments');
                    return new EmptyExpr(this.span(start), this.sourceSpan(start));
                  }

                  var value = this.parseConditional();
                  return new PropertyWrite(this.span(start), this.sourceSpan(start), nameSpan, receiver, id, value);
                } else {
                  return new PropertyRead(this.span(start), this.sourceSpan(start), nameSpan, receiver, id);
                }
              }
            }
          }
        }, {
          key: "parseCallArguments",
          value: function parseCallArguments() {
            if (this.next.isCharacter($RPAREN)) return [];
            var positionals = [];

            do {
              positionals.push(this.parsePipe());
            } while (this.consumeOptionalCharacter($COMMA));

            return positionals;
          }
          /**
           * Parses an identifier, a keyword, a string with an optional `-` in between,
           * and returns the string along with its absolute source span.
           */

        }, {
          key: "expectTemplateBindingKey",
          value: function expectTemplateBindingKey() {
            var result = '';
            var operatorFound = false;
            var start = this.currentAbsoluteOffset;

            do {
              result += this.expectIdentifierOrKeywordOrString();
              operatorFound = this.consumeOptionalOperator('-');

              if (operatorFound) {
                result += '-';
              }
            } while (operatorFound);

            return {
              source: result,
              span: new AbsoluteSourceSpan(start, start + result.length)
            };
          }
          /**
           * Parse microsyntax template expression and return a list of bindings or
           * parsing errors in case the given expression is invalid.
           *
           * For example,
           * ```
           *   <div *ngFor="let item of items; index as i; trackBy: func">
           * ```
           * contains five bindings:
           * 1. ngFor -> null
           * 2. item -> NgForOfContext.$implicit
           * 3. ngForOf -> items
           * 4. i -> NgForOfContext.index
           * 5. ngForTrackBy -> func
           *
           * For a full description of the microsyntax grammar, see
           * https://gist.github.com/mhevery/d3530294cff2e4a1b3fe15ff75d08855
           *
           * @param templateKey name of the microsyntax directive, like ngIf, ngFor,
           * without the *, along with its absolute span.
           */

        }, {
          key: "parseTemplateBindings",
          value: function parseTemplateBindings(templateKey) {
            var bindings = []; // The first binding is for the template key itself
            // In *ngFor="let item of items", key = "ngFor", value = null
            // In *ngIf="cond | pipe", key = "ngIf", value = "cond | pipe"

            bindings.push.apply(bindings, _toConsumableArray(this.parseDirectiveKeywordBindings(templateKey)));

            while (this.index < this.tokens.length) {
              // If it starts with 'let', then this must be variable declaration
              var letBinding = this.parseLetBinding();

              if (letBinding) {
                bindings.push(letBinding);
              } else {
                // Two possible cases here, either `value "as" key` or
                // "directive-keyword expression". We don't know which case, but both
                // "value" and "directive-keyword" are template binding key, so consume
                // the key first.
                var key = this.expectTemplateBindingKey(); // Peek at the next token, if it is "as" then this must be variable
                // declaration.

                var binding = this.parseAsBinding(key);

                if (binding) {
                  bindings.push(binding);
                } else {
                  // Otherwise the key must be a directive keyword, like "of". Transform
                  // the key to actual key. Eg. of -> ngForOf, trackBy -> ngForTrackBy
                  key.source = templateKey.source + key.source[0].toUpperCase() + key.source.substring(1);
                  bindings.push.apply(bindings, _toConsumableArray(this.parseDirectiveKeywordBindings(key)));
                }
              }

              this.consumeStatementTerminator();
            }

            return new TemplateBindingParseResult(bindings, []
            /* warnings */
            , this.errors);
          }
          /**
           * Parse a directive keyword, followed by a mandatory expression.
           * For example, "of items", "trackBy: func".
           * The bindings are: ngForOf -> items, ngForTrackBy -> func
           * There could be an optional "as" binding that follows the expression.
           * For example,
           * ```
           *   *ngFor="let item of items | slice:0:1 as collection".
           *                    ^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^
           *               keyword    bound target   optional 'as' binding
           * ```
           *
           * @param key binding key, for example, ngFor, ngIf, ngForOf, along with its
           * absolute span.
           */

        }, {
          key: "parseDirectiveKeywordBindings",
          value: function parseDirectiveKeywordBindings(key) {
            var bindings = [];
            this.consumeOptionalCharacter($COLON); // trackBy: trackByFunction

            var value = this.getDirectiveBoundTarget();
            var spanEnd = this.currentAbsoluteOffset; // The binding could optionally be followed by "as". For example,
            // *ngIf="cond | pipe as x". In this case, the key in the "as" binding
            // is "x" and the value is the template key itself ("ngIf"). Note that the
            // 'key' in the current context now becomes the "value" in the next binding.

            var asBinding = this.parseAsBinding(key);

            if (!asBinding) {
              this.consumeStatementTerminator();
              spanEnd = this.currentAbsoluteOffset;
            }

            var sourceSpan = new AbsoluteSourceSpan(key.span.start, spanEnd);
            bindings.push(new ExpressionBinding(sourceSpan, key, value));

            if (asBinding) {
              bindings.push(asBinding);
            }

            return bindings;
          }
          /**
           * Return the expression AST for the bound target of a directive keyword
           * binding. For example,
           * ```
           *   *ngIf="condition | pipe"
           *          ^^^^^^^^^^^^^^^^ bound target for "ngIf"
           *   *ngFor="let item of items"
           *                       ^^^^^ bound target for "ngForOf"
           * ```
           */

        }, {
          key: "getDirectiveBoundTarget",
          value: function getDirectiveBoundTarget() {
            if (this.next === EOF || this.peekKeywordAs() || this.peekKeywordLet()) {
              return null;
            }

            var ast = this.parsePipe(); // example: "condition | async"

            var _ast$span = ast.span,
                start = _ast$span.start,
                end = _ast$span.end;
            var value = this.input.substring(start, end);
            return new ASTWithSource(ast, value, this.location, this.absoluteOffset + start, this.errors);
          }
          /**
           * Return the binding for a variable declared using `as`. Note that the order
           * of the key-value pair in this declaration is reversed. For example,
           * ```
           *   *ngFor="let item of items; index as i"
           *                              ^^^^^    ^
           *                              value    key
           * ```
           *
           * @param value name of the value in the declaration, "ngIf" in the example
           * above, along with its absolute span.
           */

        }, {
          key: "parseAsBinding",
          value: function parseAsBinding(value) {
            if (!this.peekKeywordAs()) {
              return null;
            }

            this.advance(); // consume the 'as' keyword

            var key = this.expectTemplateBindingKey();
            this.consumeStatementTerminator();
            var sourceSpan = new AbsoluteSourceSpan(value.span.start, this.currentAbsoluteOffset);
            return new VariableBinding(sourceSpan, key, value);
          }
          /**
           * Return the binding for a variable declared using `let`. For example,
           * ```
           *   *ngFor="let item of items; let i=index;"
           *           ^^^^^^^^           ^^^^^^^^^^^
           * ```
           * In the first binding, `item` is bound to `NgForOfContext.$implicit`.
           * In the second binding, `i` is bound to `NgForOfContext.index`.
           */

        }, {
          key: "parseLetBinding",
          value: function parseLetBinding() {
            if (!this.peekKeywordLet()) {
              return null;
            }

            var spanStart = this.currentAbsoluteOffset;
            this.advance(); // consume the 'let' keyword

            var key = this.expectTemplateBindingKey();
            var value = null;

            if (this.consumeOptionalOperator('=')) {
              value = this.expectTemplateBindingKey();
            }

            this.consumeStatementTerminator();
            var sourceSpan = new AbsoluteSourceSpan(spanStart, this.currentAbsoluteOffset);
            return new VariableBinding(sourceSpan, key, value);
          }
          /**
           * Consume the optional statement terminator: semicolon or comma.
           */

        }, {
          key: "consumeStatementTerminator",
          value: function consumeStatementTerminator() {
            this.consumeOptionalCharacter($SEMICOLON) || this.consumeOptionalCharacter($COMMA);
          }
          /**
           * Records an error and skips over the token stream until reaching a recoverable point. See
           * `this.skip` for more details on token skipping.
           */

        }, {
          key: "error",
          value: function error(message) {
            var index = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
            this.errors.push(new ParserError(message, this.input, this.locationText(index), this.location));
            this.skip();
          }
        }, {
          key: "locationText",
          value: function locationText() {
            var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
            if (index == null) index = this.index;
            return index < this.tokens.length ? "at column ".concat(this.tokens[index].index + 1, " in") : "at the end of the expression";
          }
          /**
           * Error recovery should skip tokens until it encounters a recovery point. skip() treats
           * the end of input and a ';' as unconditionally a recovery point. It also treats ')',
           * '}' and ']' as conditional recovery points if one of calling productions is expecting
           * one of these symbols. This allows skip() to recover from errors such as '(a.) + 1' allowing
           * more of the AST to be retained (it doesn't skip any tokens as the ')' is retained because
           * of the '(' begins an '(' <expr> ')' production). The recovery points of grouping symbols
           * must be conditional as they must be skipped if none of the calling productions are not
           * expecting the closing token else we will never make progress in the case of an
           * extraneous group closing symbol (such as a stray ')'). This is not the case for ';' because
           * parseChain() is always the root production and it expects a ';'.
           *
           * Furthermore, the presence of a stateful context can add more recovery points.
           *   - in a `Writable` context, we are able to recover after seeing the `=` operator, which
           *     signals the presence of an independent rvalue expression following the `=` operator.
           *
           * If a production expects one of these token it increments the corresponding nesting count,
           * and then decrements it just prior to checking if the token is in the input.
           */

        }, {
          key: "skip",
          value: function skip() {
            var n = this.next;

            while (this.index < this.tokens.length && !n.isCharacter($SEMICOLON) && (this.rparensExpected <= 0 || !n.isCharacter($RPAREN)) && (this.rbracesExpected <= 0 || !n.isCharacter($RBRACE)) && (this.rbracketsExpected <= 0 || !n.isCharacter($RBRACKET)) && (!(this.context & ParseContextFlags.Writable) || !n.isOperator('='))) {
              if (this.next.isError()) {
                this.errors.push(new ParserError(this.next.toString(), this.input, this.locationText(), this.location));
              }

              this.advance();
              n = this.next;
            }
          }
        }]);

        return _ParseAST;
      }();

      var SimpleExpressionChecker = /*#__PURE__*/function () {
        function SimpleExpressionChecker() {
          _classCallCheck2(this, SimpleExpressionChecker);

          this.errors = [];
        }

        _createClass2(SimpleExpressionChecker, [{
          key: "visitImplicitReceiver",
          value: function visitImplicitReceiver(ast, context) {}
        }, {
          key: "visitThisReceiver",
          value: function visitThisReceiver(ast, context) {}
        }, {
          key: "visitInterpolation",
          value: function visitInterpolation(ast, context) {}
        }, {
          key: "visitLiteralPrimitive",
          value: function visitLiteralPrimitive(ast, context) {}
        }, {
          key: "visitPropertyRead",
          value: function visitPropertyRead(ast, context) {}
        }, {
          key: "visitPropertyWrite",
          value: function visitPropertyWrite(ast, context) {}
        }, {
          key: "visitSafePropertyRead",
          value: function visitSafePropertyRead(ast, context) {}
        }, {
          key: "visitMethodCall",
          value: function visitMethodCall(ast, context) {}
        }, {
          key: "visitSafeMethodCall",
          value: function visitSafeMethodCall(ast, context) {}
        }, {
          key: "visitFunctionCall",
          value: function visitFunctionCall(ast, context) {}
        }, {
          key: "visitLiteralArray",
          value: function visitLiteralArray(ast, context) {
            this.visitAll(ast.expressions, context);
          }
        }, {
          key: "visitLiteralMap",
          value: function visitLiteralMap(ast, context) {
            this.visitAll(ast.values, context);
          }
        }, {
          key: "visitUnary",
          value: function visitUnary(ast, context) {}
        }, {
          key: "visitBinary",
          value: function visitBinary(ast, context) {}
        }, {
          key: "visitPrefixNot",
          value: function visitPrefixNot(ast, context) {}
        }, {
          key: "visitNonNullAssert",
          value: function visitNonNullAssert(ast, context) {}
        }, {
          key: "visitConditional",
          value: function visitConditional(ast, context) {}
        }, {
          key: "visitPipe",
          value: function visitPipe(ast, context) {
            this.errors.push('pipes');
          }
        }, {
          key: "visitKeyedRead",
          value: function visitKeyedRead(ast, context) {}
        }, {
          key: "visitKeyedWrite",
          value: function visitKeyedWrite(ast, context) {}
        }, {
          key: "visitAll",
          value: function visitAll(asts, context) {
            var _this204 = this;

            return asts.map(function (node) {
              return node.visit(_this204, context);
            });
          }
        }, {
          key: "visitChain",
          value: function visitChain(ast, context) {}
        }, {
          key: "visitQuote",
          value: function visitQuote(ast, context) {}
        }]);

        return SimpleExpressionChecker;
      }();
      /**
       * This class implements SimpleExpressionChecker used in View Engine and performs more strict checks
       * to make sure host bindings do not contain pipes. In View Engine, having pipes in host bindings is
       * not supported as well, but in some cases (like `!(value | async)`) the error is not triggered at
       * compile time. In order to preserve View Engine behavior, more strict checks are introduced for
       * Ivy mode only.
       */


      var IvySimpleExpressionChecker = /*#__PURE__*/function (_RecursiveAstVisitor$2) {
        _inherits2(IvySimpleExpressionChecker, _RecursiveAstVisitor$2);

        var _super105 = _createSuper2(IvySimpleExpressionChecker);

        function IvySimpleExpressionChecker() {
          var _this205;

          _classCallCheck2(this, IvySimpleExpressionChecker);

          _this205 = _super105.apply(this, arguments);
          _this205.errors = [];
          return _this205;
        }

        _createClass2(IvySimpleExpressionChecker, [{
          key: "visitPipe",
          value: function visitPipe() {
            this.errors.push('pipes');
          }
        }]);

        return IvySimpleExpressionChecker;
      }(RecursiveAstVisitor$1);
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */
      // =================================================================================================
      // =================================================================================================
      // =========== S T O P   -  S T O P   -  S T O P   -  S T O P   -  S T O P   -  S T O P  ===========
      // =================================================================================================
      // =================================================================================================
      //
      //        DO NOT EDIT THIS LIST OF SECURITY SENSITIVE PROPERTIES WITHOUT A SECURITY REVIEW!
      //                               Reach out to mprobst for details.
      //
      // =================================================================================================

      /** Map from tagName|propertyName SecurityContext. Properties applying to all tags use '*'. */


      var _SECURITY_SCHEMA;

      function SECURITY_SCHEMA() {
        if (!_SECURITY_SCHEMA) {
          _SECURITY_SCHEMA = {}; // Case is insignificant below, all element and attribute names are lower-cased for lookup.

          registerContext(SecurityContext.HTML, ['iframe|srcdoc', '*|innerHTML', '*|outerHTML']);
          registerContext(SecurityContext.STYLE, ['*|style']); // NB: no SCRIPT contexts here, they are never allowed due to the parser stripping them.

          registerContext(SecurityContext.URL, ['*|formAction', 'area|href', 'area|ping', 'audio|src', 'a|href', 'a|ping', 'blockquote|cite', 'body|background', 'del|cite', 'form|action', 'img|src', 'img|srcset', 'input|src', 'ins|cite', 'q|cite', 'source|src', 'source|srcset', 'track|src', 'video|poster', 'video|src']);
          registerContext(SecurityContext.RESOURCE_URL, ['applet|code', 'applet|codebase', 'base|href', 'embed|src', 'frame|src', 'head|profile', 'html|manifest', 'iframe|src', 'link|href', 'media|src', 'object|codebase', 'object|data', 'script|src']);
        }

        return _SECURITY_SCHEMA;
      }

      function registerContext(ctx, specs) {
        var _iterator14 = _createForOfIteratorHelper(specs),
            _step14;

        try {
          for (_iterator14.s(); !(_step14 = _iterator14.n()).done;) {
            var spec = _step14.value;
            _SECURITY_SCHEMA[spec.toLowerCase()] = ctx;
          }
        } catch (err) {
          _iterator14.e(err);
        } finally {
          _iterator14.f();
        }
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var ElementSchemaRegistry = function ElementSchemaRegistry() {
        _classCallCheck2(this, ElementSchemaRegistry);
      };
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var BOOLEAN = 'boolean';
      var NUMBER = 'number';
      var STRING = 'string';
      var OBJECT = 'object';
      /**
       * This array represents the DOM schema. It encodes inheritance, properties, and events.
       *
       * ## Overview
       *
       * Each line represents one kind of element. The `element_inheritance` and properties are joined
       * using `element_inheritance|properties` syntax.
       *
       * ## Element Inheritance
       *
       * The `element_inheritance` can be further subdivided as `element1,element2,...^parentElement`.
       * Here the individual elements are separated by `,` (commas). Every element in the list
       * has identical properties.
       *
       * An `element` may inherit additional properties from `parentElement` If no `^parentElement` is
       * specified then `""` (blank) element is assumed.
       *
       * NOTE: The blank element inherits from root `[Element]` element, the super element of all
       * elements.
       *
       * NOTE an element prefix such as `:svg:` has no special meaning to the schema.
       *
       * ## Properties
       *
       * Each element has a set of properties separated by `,` (commas). Each property can be prefixed
       * by a special character designating its type:
       *
       * - (no prefix): property is a string.
       * - `*`: property represents an event.
       * - `!`: property is a boolean.
       * - `#`: property is a number.
       * - `%`: property is an object.
       *
       * ## Query
       *
       * The class creates an internal squas representation which allows to easily answer the query of
       * if a given property exist on a given element.
       *
       * NOTE: We don't yet support querying for types or events.
       * NOTE: This schema is auto extracted from `schema_extractor.ts` located in the test folder,
       *       see dom_element_schema_registry_spec.ts
       */
      // =================================================================================================
      // =================================================================================================
      // =========== S T O P   -  S T O P   -  S T O P   -  S T O P   -  S T O P   -  S T O P  ===========
      // =================================================================================================
      // =================================================================================================
      //
      //                       DO NOT EDIT THIS DOM SCHEMA WITHOUT A SECURITY REVIEW!
      //
      // Newly added properties must be security reviewed and assigned an appropriate SecurityContext in
      // dom_security_schema.ts. Reach out to mprobst & rjamet for details.
      //
      // =================================================================================================

      var SCHEMA = ['[Element]|textContent,%classList,className,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*copy,*cut,*paste,*search,*selectstart,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerHTML,#scrollLeft,#scrollTop,slot' +
      /* added manually to avoid breaking changes */
      ',*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored', '[HTMLElement]^[Element]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,outerText,!spellcheck,%style,#tabIndex,title,!translate', 'abbr,address,article,aside,b,bdi,bdo,cite,code,dd,dfn,dt,em,figcaption,figure,footer,header,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,outerText,!spellcheck,%style,#tabIndex,title,!translate', 'media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,src,%srcObject,#volume', ':svg:^[HTMLElement]|*abort,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,%style,#tabIndex', ':svg:graphics^:svg:|', ':svg:animation^:svg:|*begin,*end,*repeat', ':svg:geometry^:svg:|', ':svg:componentTransferFunction^:svg:|', ':svg:gradient^:svg:|', ':svg:textContent^:svg:graphics|', ':svg:textPositioning^:svg:textContent|', 'a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,rev,search,shape,target,text,type,username', 'area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,search,shape,target,username', 'audio^media|', 'br^[HTMLElement]|clear', 'base^[HTMLElement]|href,target', 'body^[HTMLElement]|aLink,background,bgColor,link,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink', 'button^[HTMLElement]|!autofocus,!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value', 'canvas^[HTMLElement]|#height,#width', 'content^[HTMLElement]|select', 'dl^[HTMLElement]|!compact', 'datalist^[HTMLElement]|', 'details^[HTMLElement]|!open', 'dialog^[HTMLElement]|!open,returnValue', 'dir^[HTMLElement]|!compact', 'div^[HTMLElement]|align', 'embed^[HTMLElement]|align,height,name,src,type,width', 'fieldset^[HTMLElement]|!disabled,name', 'font^[HTMLElement]|color,face,size', 'form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target', 'frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src', 'frameset^[HTMLElement]|cols,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows', 'hr^[HTMLElement]|align,color,!noShade,size,width', 'head^[HTMLElement]|', 'h1,h2,h3,h4,h5,h6^[HTMLElement]|align', 'html^[HTMLElement]|version', 'iframe^[HTMLElement]|align,!allowFullscreen,frameBorder,height,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width', 'img^[HTMLElement]|align,alt,border,%crossOrigin,#height,#hspace,!isMap,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width', 'input^[HTMLElement]|accept,align,alt,autocapitalize,autocomplete,!autofocus,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width', 'li^[HTMLElement]|type,#value', 'label^[HTMLElement]|htmlFor', 'legend^[HTMLElement]|align', 'link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type', 'map^[HTMLElement]|name', 'marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width', 'menu^[HTMLElement]|!compact', 'meta^[HTMLElement]|content,httpEquiv,name,scheme', 'meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value', 'ins,del^[HTMLElement]|cite,dateTime', 'ol^[HTMLElement]|!compact,!reversed,#start,type', 'object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width', 'optgroup^[HTMLElement]|!disabled,label', 'option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value', 'output^[HTMLElement]|defaultValue,%htmlFor,name,value', 'p^[HTMLElement]|align', 'param^[HTMLElement]|name,type,value,valueType', 'picture^[HTMLElement]|', 'pre^[HTMLElement]|#width', 'progress^[HTMLElement]|#max,#value', 'q,blockquote,cite^[HTMLElement]|', 'script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,src,text,type', 'select^[HTMLElement]|!autofocus,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value', 'shadow^[HTMLElement]|', 'slot^[HTMLElement]|name', 'source^[HTMLElement]|media,sizes,src,srcset,type', 'span^[HTMLElement]|', 'style^[HTMLElement]|!disabled,media,type', 'caption^[HTMLElement]|align', 'th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width', 'col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width', 'table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width', 'tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign', 'tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign', 'template^[HTMLElement]|', 'textarea^[HTMLElement]|autocapitalize,!autofocus,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap', 'title^[HTMLElement]|text', 'track^[HTMLElement]|!default,kind,label,src,srclang', 'ul^[HTMLElement]|!compact,type', 'unknown^[HTMLElement]|', 'video^media|#height,poster,#width', ':svg:a^:svg:graphics|', ':svg:animate^:svg:animation|', ':svg:animateMotion^:svg:animation|', ':svg:animateTransform^:svg:animation|', ':svg:circle^:svg:geometry|', ':svg:clipPath^:svg:graphics|', ':svg:defs^:svg:graphics|', ':svg:desc^:svg:|', ':svg:discard^:svg:|', ':svg:ellipse^:svg:geometry|', ':svg:feBlend^:svg:|', ':svg:feColorMatrix^:svg:|', ':svg:feComponentTransfer^:svg:|', ':svg:feComposite^:svg:|', ':svg:feConvolveMatrix^:svg:|', ':svg:feDiffuseLighting^:svg:|', ':svg:feDisplacementMap^:svg:|', ':svg:feDistantLight^:svg:|', ':svg:feDropShadow^:svg:|', ':svg:feFlood^:svg:|', ':svg:feFuncA^:svg:componentTransferFunction|', ':svg:feFuncB^:svg:componentTransferFunction|', ':svg:feFuncG^:svg:componentTransferFunction|', ':svg:feFuncR^:svg:componentTransferFunction|', ':svg:feGaussianBlur^:svg:|', ':svg:feImage^:svg:|', ':svg:feMerge^:svg:|', ':svg:feMergeNode^:svg:|', ':svg:feMorphology^:svg:|', ':svg:feOffset^:svg:|', ':svg:fePointLight^:svg:|', ':svg:feSpecularLighting^:svg:|', ':svg:feSpotLight^:svg:|', ':svg:feTile^:svg:|', ':svg:feTurbulence^:svg:|', ':svg:filter^:svg:|', ':svg:foreignObject^:svg:graphics|', ':svg:g^:svg:graphics|', ':svg:image^:svg:graphics|', ':svg:line^:svg:geometry|', ':svg:linearGradient^:svg:gradient|', ':svg:mpath^:svg:|', ':svg:marker^:svg:|', ':svg:mask^:svg:|', ':svg:metadata^:svg:|', ':svg:path^:svg:geometry|', ':svg:pattern^:svg:|', ':svg:polygon^:svg:geometry|', ':svg:polyline^:svg:geometry|', ':svg:radialGradient^:svg:gradient|', ':svg:rect^:svg:geometry|', ':svg:svg^:svg:graphics|#currentScale,#zoomAndPan', ':svg:script^:svg:|type', ':svg:set^:svg:animation|', ':svg:stop^:svg:|', ':svg:style^:svg:|!disabled,media,title,type', ':svg:switch^:svg:graphics|', ':svg:symbol^:svg:|', ':svg:tspan^:svg:textPositioning|', ':svg:text^:svg:textPositioning|', ':svg:textPath^:svg:textContent|', ':svg:title^:svg:|', ':svg:use^:svg:graphics|', ':svg:view^:svg:|#zoomAndPan', 'data^[HTMLElement]|value', 'keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name', 'menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default', 'summary^[HTMLElement]|', 'time^[HTMLElement]|dateTime', ':svg:cursor^:svg:|'];
      var _ATTR_TO_PROP = {
        'class': 'className',
        'for': 'htmlFor',
        'formaction': 'formAction',
        'innerHtml': 'innerHTML',
        'readonly': 'readOnly',
        'tabindex': 'tabIndex'
      };

      var DomElementSchemaRegistry = /*#__PURE__*/function (_ElementSchemaRegistr) {
        _inherits2(DomElementSchemaRegistry, _ElementSchemaRegistr);

        var _super106 = _createSuper2(DomElementSchemaRegistry);

        function DomElementSchemaRegistry() {
          var _this206;

          _classCallCheck2(this, DomElementSchemaRegistry);

          _this206 = _super106.call(this);
          _this206._schema = {};
          SCHEMA.forEach(function (encodedType) {
            var type = {};

            var _encodedType$split = encodedType.split('|'),
                _encodedType$split2 = _slicedToArray(_encodedType$split, 2),
                strType = _encodedType$split2[0],
                strProperties = _encodedType$split2[1];

            var properties = strProperties.split(',');

            var _strType$split = strType.split('^'),
                _strType$split2 = _slicedToArray(_strType$split, 2),
                typeNames = _strType$split2[0],
                superName = _strType$split2[1];

            typeNames.split(',').forEach(function (tag) {
              return _this206._schema[tag.toLowerCase()] = type;
            });

            var superType = superName && _this206._schema[superName.toLowerCase()];

            if (superType) {
              Object.keys(superType).forEach(function (prop) {
                type[prop] = superType[prop];
              });
            }

            properties.forEach(function (property) {
              if (property.length > 0) {
                switch (property[0]) {
                  case '*':
                    // We don't yet support events.
                    // If ever allowing to bind to events, GO THROUGH A SECURITY REVIEW, allowing events
                    // will
                    // almost certainly introduce bad XSS vulnerabilities.
                    // type[property.substring(1)] = EVENT;
                    break;

                  case '!':
                    type[property.substring(1)] = BOOLEAN;
                    break;

                  case '#':
                    type[property.substring(1)] = NUMBER;
                    break;

                  case '%':
                    type[property.substring(1)] = OBJECT;
                    break;

                  default:
                    type[property] = STRING;
                }
              }
            });
          });
          return _this206;
        }

        _createClass2(DomElementSchemaRegistry, [{
          key: "hasProperty",
          value: function hasProperty(tagName, propName, schemaMetas) {
            if (schemaMetas.some(function (schema) {
              return schema.name === NO_ERRORS_SCHEMA.name;
            })) {
              return true;
            }

            if (tagName.indexOf('-') > -1) {
              if (isNgContainer(tagName) || isNgContent(tagName)) {
                return false;
              }

              if (schemaMetas.some(function (schema) {
                return schema.name === CUSTOM_ELEMENTS_SCHEMA.name;
              })) {
                // Can't tell now as we don't know which properties a custom element will get
                // once it is instantiated
                return true;
              }
            }

            var elementProperties = this._schema[tagName.toLowerCase()] || this._schema['unknown'];

            return !!elementProperties[propName];
          }
        }, {
          key: "hasElement",
          value: function hasElement(tagName, schemaMetas) {
            if (schemaMetas.some(function (schema) {
              return schema.name === NO_ERRORS_SCHEMA.name;
            })) {
              return true;
            }

            if (tagName.indexOf('-') > -1) {
              if (isNgContainer(tagName) || isNgContent(tagName)) {
                return true;
              }

              if (schemaMetas.some(function (schema) {
                return schema.name === CUSTOM_ELEMENTS_SCHEMA.name;
              })) {
                // Allow any custom elements
                return true;
              }
            }

            return !!this._schema[tagName.toLowerCase()];
          }
          /**
           * securityContext returns the security context for the given property on the given DOM tag.
           *
           * Tag and property name are statically known and cannot change at runtime, i.e. it is not
           * possible to bind a value into a changing attribute or tag name.
           *
           * The filtering is based on a list of allowed tags|attributes. All attributes in the schema
           * above are assumed to have the 'NONE' security context, i.e. that they are safe inert
           * string values. Only specific well known attack vectors are assigned their appropriate context.
           */

        }, {
          key: "securityContext",
          value: function securityContext(tagName, propName, isAttribute) {
            if (isAttribute) {
              // NB: For security purposes, use the mapped property name, not the attribute name.
              propName = this.getMappedPropName(propName);
            } // Make sure comparisons are case insensitive, so that case differences between attribute and
            // property names do not have a security impact.


            tagName = tagName.toLowerCase();
            propName = propName.toLowerCase();
            var ctx = SECURITY_SCHEMA()[tagName + '|' + propName];

            if (ctx) {
              return ctx;
            }

            ctx = SECURITY_SCHEMA()['*|' + propName];
            return ctx ? ctx : SecurityContext.NONE;
          }
        }, {
          key: "getMappedPropName",
          value: function getMappedPropName(propName) {
            return _ATTR_TO_PROP[propName] || propName;
          }
        }, {
          key: "getDefaultComponentElementName",
          value: function getDefaultComponentElementName() {
            return 'ng-component';
          }
        }, {
          key: "validateProperty",
          value: function validateProperty(name) {
            if (name.toLowerCase().startsWith('on')) {
              var msg = "Binding to event property '".concat(name, "' is disallowed for security reasons, ") + "please use (".concat(name.slice(2), ")=...") + "\nIf '".concat(name, "' is a directive input, make sure the directive is imported by the") + " current module.";
              return {
                error: true,
                msg: msg
              };
            } else {
              return {
                error: false
              };
            }
          }
        }, {
          key: "validateAttribute",
          value: function validateAttribute(name) {
            if (name.toLowerCase().startsWith('on')) {
              var msg = "Binding to event attribute '".concat(name, "' is disallowed for security reasons, ") + "please use (".concat(name.slice(2), ")=...");
              return {
                error: true,
                msg: msg
              };
            } else {
              return {
                error: false
              };
            }
          }
        }, {
          key: "allKnownElementNames",
          value: function allKnownElementNames() {
            return Object.keys(this._schema);
          }
        }, {
          key: "normalizeAnimationStyleProperty",
          value: function normalizeAnimationStyleProperty(propName) {
            return dashCaseToCamelCase(propName);
          }
        }, {
          key: "normalizeAnimationStyleValue",
          value: function normalizeAnimationStyleValue(camelCaseProp, userProvidedProp, val) {
            var unit = '';
            var strVal = val.toString().trim();
            var errorMsg = null;

            if (_isPixelDimensionStyle(camelCaseProp) && val !== 0 && val !== '0') {
              if (typeof val === 'number') {
                unit = 'px';
              } else {
                var valAndSuffixMatch = val.match(/^[+-]?[\d\.]+([a-z]*)$/);

                if (valAndSuffixMatch && valAndSuffixMatch[1].length == 0) {
                  errorMsg = "Please provide a CSS unit value for ".concat(userProvidedProp, ":").concat(val);
                }
              }
            }

            return {
              error: errorMsg,
              value: strVal + unit
            };
          }
        }]);

        return DomElementSchemaRegistry;
      }(ElementSchemaRegistry);

      function _isPixelDimensionStyle(prop) {
        switch (prop) {
          case 'width':
          case 'height':
          case 'minWidth':
          case 'minHeight':
          case 'maxWidth':
          case 'maxHeight':
          case 'left':
          case 'top':
          case 'bottom':
          case 'right':
          case 'fontSize':
          case 'outlineWidth':
          case 'outlineOffset':
          case 'paddingTop':
          case 'paddingLeft':
          case 'paddingBottom':
          case 'paddingRight':
          case 'marginTop':
          case 'marginLeft':
          case 'marginBottom':
          case 'marginRight':
          case 'borderRadius':
          case 'borderWidth':
          case 'borderTopWidth':
          case 'borderLeftWidth':
          case 'borderRightWidth':
          case 'borderBottomWidth':
          case 'textIndent':
            return true;

          default:
            return false;
        }
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var BIND_NAME_REGEXP$1 = /^(?:(?:(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/; // Group 1 = "bind-"

      var KW_BIND_IDX$1 = 1; // Group 2 = "let-"

      var KW_LET_IDX$1 = 2; // Group 3 = "ref-/#"

      var KW_REF_IDX$1 = 3; // Group 4 = "on-"

      var KW_ON_IDX$1 = 4; // Group 5 = "bindon-"

      var KW_BINDON_IDX$1 = 5; // Group 6 = "@"

      var KW_AT_IDX$1 = 6; // Group 7 = the identifier after "bind-", "let-", "ref-/#", "on-", "bindon-" or "@"

      var IDENT_KW_IDX$1 = 7; // Group 8 = identifier inside [()]

      var IDENT_BANANA_BOX_IDX$1 = 8; // Group 9 = identifier inside []

      var IDENT_PROPERTY_IDX$1 = 9; // Group 10 = identifier inside ()

      var IDENT_EVENT_IDX$1 = 10;
      var TEMPLATE_ATTR_PREFIX$2 = '*';

      function htmlAstToRender3Ast(htmlNodes, bindingParser) {
        var transformer = new HtmlAstToIvyAst(bindingParser);
        var ivyNodes = visitAll$1(transformer, htmlNodes); // Errors might originate in either the binding parser or the html to ivy transformer

        var allErrors = bindingParser.errors.concat(transformer.errors);
        return {
          nodes: ivyNodes,
          errors: allErrors,
          styleUrls: transformer.styleUrls,
          styles: transformer.styles,
          ngContentSelectors: transformer.ngContentSelectors
        };
      }

      var HtmlAstToIvyAst = /*#__PURE__*/function () {
        function HtmlAstToIvyAst(bindingParser) {
          _classCallCheck2(this, HtmlAstToIvyAst);

          this.bindingParser = bindingParser;
          this.errors = [];
          this.styles = [];
          this.styleUrls = [];
          this.ngContentSelectors = [];
          this.inI18nBlock = false;
        } // HTML visitor


        _createClass2(HtmlAstToIvyAst, [{
          key: "visitElement",
          value: function visitElement(element) {
            var _this207 = this;

            var isI18nRootElement = isI18nRootNode(element.i18n);

            if (isI18nRootElement) {
              if (this.inI18nBlock) {
                this.reportError('Cannot mark an element as translatable inside of a translatable section. Please remove the nested i18n marker.', element.sourceSpan);
              }

              this.inI18nBlock = true;
            }

            var preparsedElement = preparseElement(element);

            if (preparsedElement.type === PreparsedElementType.SCRIPT) {
              return null;
            } else if (preparsedElement.type === PreparsedElementType.STYLE) {
              var contents = textContents(element);

              if (contents !== null) {
                this.styles.push(contents);
              }

              return null;
            } else if (preparsedElement.type === PreparsedElementType.STYLESHEET && isStyleUrlResolvable(preparsedElement.hrefAttr)) {
              this.styleUrls.push(preparsedElement.hrefAttr);
              return null;
            } // Whether the element is a `<ng-template>`


            var isTemplateElement = isNgTemplate(element.name);
            var parsedProperties = [];
            var boundEvents = [];
            var variables = [];
            var references = [];
            var attributes = [];
            var i18nAttrsMeta = {};
            var templateParsedProperties = [];
            var templateVariables = []; // Whether the element has any *-attribute

            var elementHasInlineTemplate = false;

            var _iterator15 = _createForOfIteratorHelper(element.attrs),
                _step15;

            try {
              for (_iterator15.s(); !(_step15 = _iterator15.n()).done;) {
                var attribute = _step15.value;
                var hasBinding = false;
                var normalizedName = normalizeAttributeName(attribute.name); // `*attr` defines template bindings

                var isTemplateBinding = false;

                if (attribute.i18n) {
                  i18nAttrsMeta[attribute.name] = attribute.i18n;
                }

                if (normalizedName.startsWith(TEMPLATE_ATTR_PREFIX$2)) {
                  // *-attributes
                  if (elementHasInlineTemplate) {
                    this.reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *", attribute.sourceSpan);
                  }

                  isTemplateBinding = true;
                  elementHasInlineTemplate = true;
                  var templateValue = attribute.value;
                  var templateKey = normalizedName.substring(TEMPLATE_ATTR_PREFIX$2.length);
                  var parsedVariables = [];
                  var absoluteValueOffset = attribute.valueSpan ? attribute.valueSpan.start.offset : // If there is no value span the attribute does not have a value, like `attr` in
                  //`<div attr></div>`. In this case, point to one character beyond the last character of
                  // the attribute name.
                  attribute.sourceSpan.start.offset + attribute.name.length;
                  this.bindingParser.parseInlineTemplateBinding(templateKey, templateValue, attribute.sourceSpan, absoluteValueOffset, [], templateParsedProperties, parsedVariables, true
                  /* isIvyAst */
                  );
                  templateVariables.push.apply(templateVariables, _toConsumableArray(parsedVariables.map(function (v) {
                    return new Variable(v.name, v.value, v.sourceSpan, v.keySpan, v.valueSpan);
                  })));
                } else {
                  // Check for variables, events, property bindings, interpolation
                  hasBinding = this.parseAttribute(isTemplateElement, attribute, [], parsedProperties, boundEvents, variables, references);
                }

                if (!hasBinding && !isTemplateBinding) {
                  // don't include the bindings as attributes as well in the AST
                  attributes.push(this.visitAttribute(attribute));
                }
              }
            } catch (err) {
              _iterator15.e(err);
            } finally {
              _iterator15.f();
            }

            var children = visitAll$1(preparsedElement.nonBindable ? NON_BINDABLE_VISITOR$1 : this, element.children);
            var parsedElement;

            if (preparsedElement.type === PreparsedElementType.NG_CONTENT) {
              // `<ng-content>`
              if (element.children && !element.children.every(function (node) {
                return isEmptyTextNode(node) || isCommentNode(node);
              })) {
                this.reportError("<ng-content> element cannot have content.", element.sourceSpan);
              }

              var selector = preparsedElement.selectAttr;
              var attrs = element.attrs.map(function (attr) {
                return _this207.visitAttribute(attr);
              });
              parsedElement = new Content(selector, attrs, element.sourceSpan, element.i18n);
              this.ngContentSelectors.push(selector);
            } else if (isTemplateElement) {
              // `<ng-template>`
              var _attrs = this.extractAttributes(element.name, parsedProperties, i18nAttrsMeta);

              parsedElement = new Template(element.name, attributes, _attrs.bound, boundEvents, [
                /* no template attributes */
              ], children, references, variables, element.sourceSpan, element.startSourceSpan, element.endSourceSpan, element.i18n);
            } else {
              var _attrs2 = this.extractAttributes(element.name, parsedProperties, i18nAttrsMeta);

              parsedElement = new Element(element.name, attributes, _attrs2.bound, boundEvents, children, references, element.sourceSpan, element.startSourceSpan, element.endSourceSpan, element.i18n);
            }

            if (elementHasInlineTemplate) {
              // If this node is an inline-template (e.g. has *ngFor) then we need to create a template
              // node that contains this node.
              // Moreover, if the node is an element, then we need to hoist its attributes to the template
              // node for matching against content projection selectors.
              var _attrs3 = this.extractAttributes('ng-template', templateParsedProperties, i18nAttrsMeta);

              var templateAttrs = [];

              _attrs3.literal.forEach(function (attr) {
                return templateAttrs.push(attr);
              });

              _attrs3.bound.forEach(function (attr) {
                return templateAttrs.push(attr);
              });

              var hoistedAttrs = parsedElement instanceof Element ? {
                attributes: parsedElement.attributes,
                inputs: parsedElement.inputs,
                outputs: parsedElement.outputs
              } : {
                attributes: [],
                inputs: [],
                outputs: []
              }; // For <ng-template>s with structural directives on them, avoid passing i18n information to
              // the wrapping template to prevent unnecessary i18n instructions from being generated. The
              // necessary i18n meta information will be extracted from child elements.

              var i18n = isTemplateElement && isI18nRootElement ? undefined : element.i18n; // TODO(pk): test for this case

              parsedElement = new Template(parsedElement.name, hoistedAttrs.attributes, hoistedAttrs.inputs, hoistedAttrs.outputs, templateAttrs, [parsedElement], [
                /* no references */
              ], templateVariables, element.sourceSpan, element.startSourceSpan, element.endSourceSpan, i18n);
            }

            if (isI18nRootElement) {
              this.inI18nBlock = false;
            }

            return parsedElement;
          }
        }, {
          key: "visitAttribute",
          value: function visitAttribute(attribute) {
            return new TextAttribute(attribute.name, attribute.value, attribute.sourceSpan, attribute.valueSpan, attribute.i18n);
          }
        }, {
          key: "visitText",
          value: function visitText(text) {
            return this._visitTextWithInterpolation(text.value, text.sourceSpan, text.i18n);
          }
        }, {
          key: "visitExpansion",
          value: function visitExpansion(expansion) {
            var _this208 = this;

            if (!expansion.i18n) {
              // do not generate Icu in case it was created
              // outside of i18n block in a template
              return null;
            }

            if (!isI18nRootNode(expansion.i18n)) {
              throw new Error("Invalid type \"".concat(expansion.i18n.constructor, "\" for \"i18n\" property of ").concat(expansion.sourceSpan.toString(), ". Expected a \"Message\""));
            }

            var message = expansion.i18n;
            var vars = {};
            var placeholders = {}; // extract VARs from ICUs - we process them separately while
            // assembling resulting message via goog.getMsg function, since
            // we need to pass them to top-level goog.getMsg call

            Object.keys(message.placeholders).forEach(function (key) {
              var value = message.placeholders[key];

              if (key.startsWith(I18N_ICU_VAR_PREFIX)) {
                // Currently when the `plural` or `select` keywords in an ICU contain trailing spaces (e.g.
                // `{count, select , ...}`), these spaces are also included into the key names in ICU vars
                // (e.g. "VAR_SELECT "). These trailing spaces are not desirable, since they will later be
                // converted into `_` symbols while normalizing placeholder names, which might lead to
                // mismatches at runtime (i.e. placeholder will not be replaced with the correct value).
                var formattedKey = key.trim();

                var ast = _this208.bindingParser.parseInterpolationExpression(value.text, value.sourceSpan);

                vars[formattedKey] = new BoundText(ast, value.sourceSpan);
              } else {
                placeholders[key] = _this208._visitTextWithInterpolation(value.text, value.sourceSpan);
              }
            });
            return new Icu(vars, placeholders, expansion.sourceSpan, message);
          }
        }, {
          key: "visitExpansionCase",
          value: function visitExpansionCase(expansionCase) {
            return null;
          }
        }, {
          key: "visitComment",
          value: function visitComment(comment) {
            return null;
          } // convert view engine `ParsedProperty` to a format suitable for IVY

        }, {
          key: "extractAttributes",
          value: function extractAttributes(elementName, properties, i18nPropsMeta) {
            var _this209 = this;

            var bound = [];
            var literal = [];
            properties.forEach(function (prop) {
              var i18n = i18nPropsMeta[prop.name];

              if (prop.isLiteral) {
                literal.push(new TextAttribute(prop.name, prop.expression.source || '', prop.sourceSpan, undefined, i18n));
              } else {
                // Note that validation is skipped and property mapping is disabled
                // due to the fact that we need to make sure a given prop is not an
                // input of a directive and directive matching happens at runtime.
                var bep = _this209.bindingParser.createBoundElementProperty(elementName, prop,
                /* skipValidation */
                true,
                /* mapPropertyName */
                false);

                bound.push(BoundAttribute.fromBoundElementProperty(bep, i18n));
              }
            });
            return {
              bound: bound,
              literal: literal
            };
          }
        }, {
          key: "parseAttribute",
          value: function parseAttribute(isTemplateElement, attribute, matchableAttributes, parsedProperties, boundEvents, variables, references) {
            var name = normalizeAttributeName(attribute.name);
            var value = attribute.value;
            var srcSpan = attribute.sourceSpan;
            var absoluteOffset = attribute.valueSpan ? attribute.valueSpan.start.offset : srcSpan.start.offset;

            function createKeySpan(srcSpan, prefix, identifier) {
              // We need to adjust the start location for the keySpan to account for the removed 'data-'
              // prefix from `normalizeAttributeName`.
              var normalizationAdjustment = attribute.name.length - name.length;
              var keySpanStart = srcSpan.start.moveBy(prefix.length + normalizationAdjustment);
              var keySpanEnd = keySpanStart.moveBy(identifier.length);
              return new ParseSourceSpan(keySpanStart, keySpanEnd, keySpanStart, identifier);
            }

            var bindParts = name.match(BIND_NAME_REGEXP$1);
            var hasBinding = false;

            if (bindParts) {
              hasBinding = true;

              if (bindParts[KW_BIND_IDX$1] != null) {
                var identifier = bindParts[IDENT_KW_IDX$1];
                var keySpan = createKeySpan(srcSpan, bindParts[KW_BIND_IDX$1], identifier);
                this.bindingParser.parsePropertyBinding(identifier, value, false, srcSpan, absoluteOffset, attribute.valueSpan, matchableAttributes, parsedProperties, keySpan);
              } else if (bindParts[KW_LET_IDX$1]) {
                if (isTemplateElement) {
                  var _identifier2 = bindParts[IDENT_KW_IDX$1];

                  var _keySpan = createKeySpan(srcSpan, bindParts[KW_LET_IDX$1], _identifier2);

                  this.parseVariable(_identifier2, value, srcSpan, _keySpan, attribute.valueSpan, variables);
                } else {
                  this.reportError("\"let-\" is only supported on ng-template elements.", srcSpan);
                }
              } else if (bindParts[KW_REF_IDX$1]) {
                var _identifier3 = bindParts[IDENT_KW_IDX$1];
                this.parseReference(_identifier3, value, srcSpan, attribute.valueSpan, references);
              } else if (bindParts[KW_ON_IDX$1]) {
                var events = [];
                var _identifier4 = bindParts[IDENT_KW_IDX$1];
                this.bindingParser.parseEvent(_identifier4, value, srcSpan, attribute.valueSpan || srcSpan, matchableAttributes, events);
                addEvents(events, boundEvents);
              } else if (bindParts[KW_BINDON_IDX$1]) {
                var _identifier5 = bindParts[IDENT_KW_IDX$1];

                var _keySpan2 = createKeySpan(srcSpan, bindParts[KW_BINDON_IDX$1], _identifier5);

                this.bindingParser.parsePropertyBinding(_identifier5, value, false, srcSpan, absoluteOffset, attribute.valueSpan, matchableAttributes, parsedProperties, _keySpan2);
                this.parseAssignmentEvent(_identifier5, value, srcSpan, attribute.valueSpan, matchableAttributes, boundEvents);
              } else if (bindParts[KW_AT_IDX$1]) {
                var _keySpan3 = createKeySpan(srcSpan, '', name);

                this.bindingParser.parseLiteralAttr(name, value, srcSpan, absoluteOffset, attribute.valueSpan, matchableAttributes, parsedProperties, _keySpan3);
              } else if (bindParts[IDENT_BANANA_BOX_IDX$1]) {
                var _keySpan4 = createKeySpan(srcSpan, '[(', bindParts[IDENT_BANANA_BOX_IDX$1]);

                this.bindingParser.parsePropertyBinding(bindParts[IDENT_BANANA_BOX_IDX$1], value, false, srcSpan, absoluteOffset, attribute.valueSpan, matchableAttributes, parsedProperties, _keySpan4);
                this.parseAssignmentEvent(bindParts[IDENT_BANANA_BOX_IDX$1], value, srcSpan, attribute.valueSpan, matchableAttributes, boundEvents);
              } else if (bindParts[IDENT_PROPERTY_IDX$1]) {
                var _keySpan5 = createKeySpan(srcSpan, '[', bindParts[IDENT_PROPERTY_IDX$1]);

                this.bindingParser.parsePropertyBinding(bindParts[IDENT_PROPERTY_IDX$1], value, false, srcSpan, absoluteOffset, attribute.valueSpan, matchableAttributes, parsedProperties, _keySpan5);
              } else if (bindParts[IDENT_EVENT_IDX$1]) {
                var _events2 = [];
                this.bindingParser.parseEvent(bindParts[IDENT_EVENT_IDX$1], value, srcSpan, attribute.valueSpan || srcSpan, matchableAttributes, _events2);
                addEvents(_events2, boundEvents);
              }
            } else {
              var _keySpan6 = createKeySpan(srcSpan, ''
              /* prefix */
              , name);

              hasBinding = this.bindingParser.parsePropertyInterpolation(name, value, srcSpan, attribute.valueSpan, matchableAttributes, parsedProperties, _keySpan6);
            }

            return hasBinding;
          }
        }, {
          key: "_visitTextWithInterpolation",
          value: function _visitTextWithInterpolation(value, sourceSpan, i18n) {
            var valueNoNgsp = replaceNgsp(value);
            var expr = this.bindingParser.parseInterpolation(valueNoNgsp, sourceSpan);
            return expr ? new BoundText(expr, sourceSpan, i18n) : new Text(valueNoNgsp, sourceSpan);
          }
        }, {
          key: "parseVariable",
          value: function parseVariable(identifier, value, sourceSpan, keySpan, valueSpan, variables) {
            if (identifier.indexOf('-') > -1) {
              this.reportError("\"-\" is not allowed in variable names", sourceSpan);
            } else if (identifier.length === 0) {
              this.reportError("Variable does not have a name", sourceSpan);
            }

            variables.push(new Variable(identifier, value, sourceSpan, keySpan, valueSpan));
          }
        }, {
          key: "parseReference",
          value: function parseReference(identifier, value, sourceSpan, valueSpan, references) {
            if (identifier.indexOf('-') > -1) {
              this.reportError("\"-\" is not allowed in reference names", sourceSpan);
            } else if (identifier.length === 0) {
              this.reportError("Reference does not have a name", sourceSpan);
            }

            references.push(new Reference(identifier, value, sourceSpan, valueSpan));
          }
        }, {
          key: "parseAssignmentEvent",
          value: function parseAssignmentEvent(name, expression, sourceSpan, valueSpan, targetMatchableAttrs, boundEvents) {
            var events = [];
            this.bindingParser.parseEvent("".concat(name, "Change"), "".concat(expression, "=$event"), sourceSpan, valueSpan || sourceSpan, targetMatchableAttrs, events);
            addEvents(events, boundEvents);
          }
        }, {
          key: "reportError",
          value: function reportError(message, sourceSpan) {
            var level = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : ParseErrorLevel.ERROR;
            this.errors.push(new ParseError(sourceSpan, message, level));
          }
        }]);

        return HtmlAstToIvyAst;
      }();

      var NonBindableVisitor$1 = /*#__PURE__*/function () {
        function NonBindableVisitor$1() {
          _classCallCheck2(this, NonBindableVisitor$1);
        }

        _createClass2(NonBindableVisitor$1, [{
          key: "visitElement",
          value: function visitElement(ast) {
            var preparsedElement = preparseElement(ast);

            if (preparsedElement.type === PreparsedElementType.SCRIPT || preparsedElement.type === PreparsedElementType.STYLE || preparsedElement.type === PreparsedElementType.STYLESHEET) {
              // Skipping <script> for security reasons
              // Skipping <style> and stylesheets as we already processed them
              // in the StyleCompiler
              return null;
            }

            var children = visitAll$1(this, ast.children, null);
            return new Element(ast.name, visitAll$1(this, ast.attrs),
            /* inputs */
            [],
            /* outputs */
            [], children,
            /* references */
            [], ast.sourceSpan, ast.startSourceSpan, ast.endSourceSpan);
          }
        }, {
          key: "visitComment",
          value: function visitComment(comment) {
            return null;
          }
        }, {
          key: "visitAttribute",
          value: function visitAttribute(attribute) {
            return new TextAttribute(attribute.name, attribute.value, attribute.sourceSpan, undefined, attribute.i18n);
          }
        }, {
          key: "visitText",
          value: function visitText(text) {
            return new Text(text.value, text.sourceSpan);
          }
        }, {
          key: "visitExpansion",
          value: function visitExpansion(expansion) {
            return null;
          }
        }, {
          key: "visitExpansionCase",
          value: function visitExpansionCase(expansionCase) {
            return null;
          }
        }]);

        return NonBindableVisitor$1;
      }();

      var NON_BINDABLE_VISITOR$1 = new NonBindableVisitor$1();

      function normalizeAttributeName(attrName) {
        return /^data-/i.test(attrName) ? attrName.substring(5) : attrName;
      }

      function addEvents(events, boundEvents) {
        boundEvents.push.apply(boundEvents, _toConsumableArray(events.map(function (e) {
          return BoundEvent.fromParsedEvent(e);
        })));
      }

      function isEmptyTextNode(node) {
        return node instanceof Text$3 && node.value.trim().length == 0;
      }

      function isCommentNode(node) {
        return node instanceof Comment;
      }

      function textContents(node) {
        if (node.children.length !== 1 || !(node.children[0] instanceof Text$3)) {
          return null;
        } else {
          return node.children[0].value;
        }
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var TagType;

      (function (TagType) {
        TagType[TagType["ELEMENT"] = 0] = "ELEMENT";
        TagType[TagType["TEMPLATE"] = 1] = "TEMPLATE";
      })(TagType || (TagType = {}));
      /**
       * Generates an object that is used as a shared state between parent and all child contexts.
       */


      function setupRegistry() {
        return {
          getUniqueId: getSeqNumberGenerator(),
          icus: new Map()
        };
      }
      /**
       * I18nContext is a helper class which keeps track of all i18n-related aspects
       * (accumulates placeholders, bindings, etc) between i18nStart and i18nEnd instructions.
       *
       * When we enter a nested template, the top-level context is being passed down
       * to the nested component, which uses this context to generate a child instance
       * of I18nContext class (to handle nested template) and at the end, reconciles it back
       * with the parent context.
       *
       * @param index Instruction index of i18nStart, which initiates this context
       * @param ref Reference to a translation const that represents the content if thus context
       * @param level Nestng level defined for child contexts
       * @param templateIndex Instruction index of a template which this context belongs to
       * @param meta Meta information (id, meaning, description, etc) associated with this context
       */


      var I18nContext = /*#__PURE__*/function () {
        function I18nContext(index, ref) {
          var level = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
          var templateIndex = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
          var meta = arguments.length > 4 ? arguments[4] : undefined;
          var registry = arguments.length > 5 ? arguments[5] : undefined;

          _classCallCheck2(this, I18nContext);

          this.index = index;
          this.ref = ref;
          this.level = level;
          this.templateIndex = templateIndex;
          this.meta = meta;
          this.registry = registry;
          this.bindings = new Set();
          this.placeholders = new Map();
          this.isEmitted = false;
          this._unresolvedCtxCount = 0;
          this._registry = registry || setupRegistry();
          this.id = this._registry.getUniqueId();
        }

        _createClass2(I18nContext, [{
          key: "appendTag",
          value: function appendTag(type, node, index, closed) {
            if (node.isVoid && closed) {
              return; // ignore "close" for void tags
            }

            var ph = node.isVoid || !closed ? node.startName : node.closeName;
            var content = {
              type: type,
              index: index,
              ctx: this.id,
              isVoid: node.isVoid,
              closed: closed
            };
            updatePlaceholderMap(this.placeholders, ph, content);
          }
        }, {
          key: "icus",
          get: function get() {
            return this._registry.icus;
          }
        }, {
          key: "isRoot",
          get: function get() {
            return this.level === 0;
          }
        }, {
          key: "isResolved",
          get: function get() {
            return this._unresolvedCtxCount === 0;
          }
        }, {
          key: "getSerializedPlaceholders",
          value: function getSerializedPlaceholders() {
            var result = new Map();
            this.placeholders.forEach(function (values, key) {
              return result.set(key, values.map(serializePlaceholderValue));
            });
            return result;
          } // public API to accumulate i18n-related content

        }, {
          key: "appendBinding",
          value: function appendBinding(binding) {
            this.bindings.add(binding);
          }
        }, {
          key: "appendIcu",
          value: function appendIcu(name, ref) {
            updatePlaceholderMap(this._registry.icus, name, ref);
          }
        }, {
          key: "appendBoundText",
          value: function appendBoundText(node) {
            var _this210 = this;

            var phs = assembleBoundTextPlaceholders(node, this.bindings.size, this.id);
            phs.forEach(function (values, key) {
              return updatePlaceholderMap.apply(void 0, [_this210.placeholders, key].concat(_toConsumableArray(values)));
            });
          }
        }, {
          key: "appendTemplate",
          value: function appendTemplate(node, index) {
            // add open and close tags at the same time,
            // since we process nested templates separately
            this.appendTag(TagType.TEMPLATE, node, index, false);
            this.appendTag(TagType.TEMPLATE, node, index, true);
            this._unresolvedCtxCount++;
          }
        }, {
          key: "appendElement",
          value: function appendElement(node, index, closed) {
            this.appendTag(TagType.ELEMENT, node, index, closed);
          }
        }, {
          key: "appendProjection",
          value: function appendProjection(node, index) {
            // Add open and close tags at the same time, since `<ng-content>` has no content,
            // so when we come across `<ng-content>` we can register both open and close tags.
            // Note: runtime i18n logic doesn't distinguish `<ng-content>` tag placeholders and
            // regular element tag placeholders, so we generate element placeholders for both types.
            this.appendTag(TagType.ELEMENT, node, index, false);
            this.appendTag(TagType.ELEMENT, node, index, true);
          }
          /**
           * Generates an instance of a child context based on the root one,
           * when we enter a nested template within I18n section.
           *
           * @param index Instruction index of corresponding i18nStart, which initiates this context
           * @param templateIndex Instruction index of a template which this context belongs to
           * @param meta Meta information (id, meaning, description, etc) associated with this context
           *
           * @returns I18nContext instance
           */

        }, {
          key: "forkChildContext",
          value: function forkChildContext(index, templateIndex, meta) {
            return new I18nContext(index, this.ref, this.level + 1, templateIndex, meta, this._registry);
          }
          /**
           * Reconciles child context into parent one once the end of the i18n block is reached (i18nEnd).
           *
           * @param context Child I18nContext instance to be reconciled with parent context.
           */

        }, {
          key: "reconcileChildContext",
          value: function reconcileChildContext(context) {
            var _this211 = this;

            // set the right context id for open and close
            // template tags, so we can use it as sub-block ids
            ['start', 'close'].forEach(function (op) {
              var key = context.meta["".concat(op, "Name")];
              var phs = _this211.placeholders.get(key) || [];
              var tag = phs.find(findTemplateFn(_this211.id, context.templateIndex));

              if (tag) {
                tag.ctx = context.id;
              }
            }); // reconcile placeholders

            var childPhs = context.placeholders;
            childPhs.forEach(function (values, key) {
              var phs = _this211.placeholders.get(key);

              if (!phs) {
                _this211.placeholders.set(key, values);

                return;
              } // try to find matching template...


              var tmplIdx = phs.findIndex(findTemplateFn(context.id, context.templateIndex));

              if (tmplIdx >= 0) {
                // ... if found - replace it with nested template content
                var isCloseTag = key.startsWith('CLOSE');
                var isTemplateTag = key.endsWith('NG-TEMPLATE');

                if (isTemplateTag) {
                  // current template's content is placed before or after
                  // parent template tag, depending on the open/close atrribute
                  phs.splice.apply(phs, [tmplIdx + (isCloseTag ? 0 : 1), 0].concat(_toConsumableArray(values)));
                } else {
                  var idx = isCloseTag ? values.length - 1 : 0;
                  values[idx].tmpl = phs[tmplIdx];
                  phs.splice.apply(phs, [tmplIdx, 1].concat(_toConsumableArray(values)));
                }
              } else {
                // ... otherwise just append content to placeholder value
                phs.push.apply(phs, _toConsumableArray(values));
              }

              _this211.placeholders.set(key, phs);
            });
            this._unresolvedCtxCount--;
          }
        }]);

        return I18nContext;
      }(); //
      // Helper methods
      //


      function wrap(symbol, index, contextId, closed) {
        var state = closed ? '/' : '';
        return wrapI18nPlaceholder("".concat(state).concat(symbol).concat(index), contextId);
      }

      function wrapTag(symbol, _ref14, closed) {
        var index = _ref14.index,
            ctx = _ref14.ctx,
            isVoid = _ref14.isVoid;
        return isVoid ? wrap(symbol, index, ctx) + wrap(symbol, index, ctx, true) : wrap(symbol, index, ctx, closed);
      }

      function findTemplateFn(ctx, templateIndex) {
        return function (token) {
          return typeof token === 'object' && token.type === TagType.TEMPLATE && token.index === templateIndex && token.ctx === ctx;
        };
      }

      function serializePlaceholderValue(value) {
        var element = function element(data, closed) {
          return wrapTag('#', data, closed);
        };

        var template = function template(data, closed) {
          return wrapTag('*', data, closed);
        };

        var projection = function projection(data, closed) {
          return wrapTag('!', data, closed);
        };

        switch (value.type) {
          case TagType.ELEMENT:
            // close element tag
            if (value.closed) {
              return element(value, true) + (value.tmpl ? template(value.tmpl, true) : '');
            } // open element tag that also initiates a template


            if (value.tmpl) {
              return template(value.tmpl) + element(value) + (value.isVoid ? template(value.tmpl, true) : '');
            }

            return element(value);

          case TagType.TEMPLATE:
            return template(value, value.closed);

          default:
            return value;
        }
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var IcuSerializerVisitor = /*#__PURE__*/function () {
        function IcuSerializerVisitor() {
          _classCallCheck2(this, IcuSerializerVisitor);
        }

        _createClass2(IcuSerializerVisitor, [{
          key: "visitText",
          value: function visitText(text) {
            return text.value;
          }
        }, {
          key: "visitContainer",
          value: function visitContainer(container) {
            var _this212 = this;

            return container.children.map(function (child) {
              return child.visit(_this212);
            }).join('');
          }
        }, {
          key: "visitIcu",
          value: function visitIcu(icu) {
            var _this213 = this;

            var strCases = Object.keys(icu.cases).map(function (k) {
              return "".concat(k, " {").concat(icu.cases[k].visit(_this213), "}");
            });
            var result = "{".concat(icu.expressionPlaceholder, ", ").concat(icu.type, ", ").concat(strCases.join(' '), "}");
            return result;
          }
        }, {
          key: "visitTagPlaceholder",
          value: function visitTagPlaceholder(ph) {
            var _this214 = this;

            return ph.isVoid ? this.formatPh(ph.startName) : "".concat(this.formatPh(ph.startName)).concat(ph.children.map(function (child) {
              return child.visit(_this214);
            }).join('')).concat(this.formatPh(ph.closeName));
          }
        }, {
          key: "visitPlaceholder",
          value: function visitPlaceholder(ph) {
            return this.formatPh(ph.name);
          }
        }, {
          key: "visitIcuPlaceholder",
          value: function visitIcuPlaceholder(ph, context) {
            return this.formatPh(ph.name);
          }
        }, {
          key: "formatPh",
          value: function formatPh(value) {
            return "{".concat(formatI18nPlaceholderName(value,
            /* useCamelCase */
            false), "}");
          }
        }]);

        return IcuSerializerVisitor;
      }();

      var serializer = new IcuSerializerVisitor();

      function serializeIcuNode(icu) {
        return icu.visit(serializer);
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var TAG_TO_PLACEHOLDER_NAMES = {
        'A': 'LINK',
        'B': 'BOLD_TEXT',
        'BR': 'LINE_BREAK',
        'EM': 'EMPHASISED_TEXT',
        'H1': 'HEADING_LEVEL1',
        'H2': 'HEADING_LEVEL2',
        'H3': 'HEADING_LEVEL3',
        'H4': 'HEADING_LEVEL4',
        'H5': 'HEADING_LEVEL5',
        'H6': 'HEADING_LEVEL6',
        'HR': 'HORIZONTAL_RULE',
        'I': 'ITALIC_TEXT',
        'LI': 'LIST_ITEM',
        'LINK': 'MEDIA_LINK',
        'OL': 'ORDERED_LIST',
        'P': 'PARAGRAPH',
        'Q': 'QUOTATION',
        'S': 'STRIKETHROUGH_TEXT',
        'SMALL': 'SMALL_TEXT',
        'SUB': 'SUBSTRIPT',
        'SUP': 'SUPERSCRIPT',
        'TBODY': 'TABLE_BODY',
        'TD': 'TABLE_CELL',
        'TFOOT': 'TABLE_FOOTER',
        'TH': 'TABLE_HEADER_CELL',
        'THEAD': 'TABLE_HEADER',
        'TR': 'TABLE_ROW',
        'TT': 'MONOSPACED_TEXT',
        'U': 'UNDERLINED_TEXT',
        'UL': 'UNORDERED_LIST'
      };
      /**
       * Creates unique names for placeholder with different content.
       *
       * Returns the same placeholder name when the content is identical.
       */

      var PlaceholderRegistry = /*#__PURE__*/function () {
        function PlaceholderRegistry() {
          _classCallCheck2(this, PlaceholderRegistry);

          // Count the occurrence of the base name top generate a unique name
          this._placeHolderNameCounts = {}; // Maps signature to placeholder names

          this._signatureToName = {};
        }

        _createClass2(PlaceholderRegistry, [{
          key: "getStartTagPlaceholderName",
          value: function getStartTagPlaceholderName(tag, attrs, isVoid) {
            var signature = this._hashTag(tag, attrs, isVoid);

            if (this._signatureToName[signature]) {
              return this._signatureToName[signature];
            }

            var upperTag = tag.toUpperCase();
            var baseName = TAG_TO_PLACEHOLDER_NAMES[upperTag] || "TAG_".concat(upperTag);

            var name = this._generateUniqueName(isVoid ? baseName : "START_".concat(baseName));

            this._signatureToName[signature] = name;
            return name;
          }
        }, {
          key: "getCloseTagPlaceholderName",
          value: function getCloseTagPlaceholderName(tag) {
            var signature = this._hashClosingTag(tag);

            if (this._signatureToName[signature]) {
              return this._signatureToName[signature];
            }

            var upperTag = tag.toUpperCase();
            var baseName = TAG_TO_PLACEHOLDER_NAMES[upperTag] || "TAG_".concat(upperTag);

            var name = this._generateUniqueName("CLOSE_".concat(baseName));

            this._signatureToName[signature] = name;
            return name;
          }
        }, {
          key: "getPlaceholderName",
          value: function getPlaceholderName(name, content) {
            var upperName = name.toUpperCase();
            var signature = "PH: ".concat(upperName, "=").concat(content);

            if (this._signatureToName[signature]) {
              return this._signatureToName[signature];
            }

            var uniqueName = this._generateUniqueName(upperName);

            this._signatureToName[signature] = uniqueName;
            return uniqueName;
          }
        }, {
          key: "getUniquePlaceholder",
          value: function getUniquePlaceholder(name) {
            return this._generateUniqueName(name.toUpperCase());
          } // Generate a hash for a tag - does not take attribute order into account

        }, {
          key: "_hashTag",
          value: function _hashTag(tag, attrs, isVoid) {
            var start = "<".concat(tag);
            var strAttrs = Object.keys(attrs).sort().map(function (name) {
              return " ".concat(name, "=").concat(attrs[name]);
            }).join('');
            var end = isVoid ? '/>' : "></".concat(tag, ">");
            return start + strAttrs + end;
          }
        }, {
          key: "_hashClosingTag",
          value: function _hashClosingTag(tag) {
            return this._hashTag("/".concat(tag), {}, false);
          }
        }, {
          key: "_generateUniqueName",
          value: function _generateUniqueName(base) {
            var seen = this._placeHolderNameCounts.hasOwnProperty(base);

            if (!seen) {
              this._placeHolderNameCounts[base] = 1;
              return base;
            }

            var id = this._placeHolderNameCounts[base];
            this._placeHolderNameCounts[base] = id + 1;
            return "".concat(base, "_").concat(id);
          }
        }]);

        return PlaceholderRegistry;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var _expParser = new Parser$1(new Lexer());
      /**
       * Returns a function converting html nodes to an i18n Message given an interpolationConfig
       */


      function createI18nMessageFactory(interpolationConfig) {
        var visitor = new _I18nVisitor(_expParser, interpolationConfig);
        return function (nodes, meaning, description, customId, visitNodeFn) {
          return visitor.toI18nMessage(nodes, meaning, description, customId, visitNodeFn);
        };
      }

      function noopVisitNodeFn(_html, i18n) {
        return i18n;
      }

      var _I18nVisitor = /*#__PURE__*/function () {
        function _I18nVisitor(_expressionParser, _interpolationConfig) {
          _classCallCheck2(this, _I18nVisitor);

          this._expressionParser = _expressionParser;
          this._interpolationConfig = _interpolationConfig;
        }

        _createClass2(_I18nVisitor, [{
          key: "toI18nMessage",
          value: function toI18nMessage(nodes) {
            var meaning = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
            var description = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
            var customId = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '';
            var visitNodeFn = arguments.length > 4 ? arguments[4] : undefined;
            var context = {
              isIcu: nodes.length == 1 && nodes[0] instanceof Expansion,
              icuDepth: 0,
              placeholderRegistry: new PlaceholderRegistry(),
              placeholderToContent: {},
              placeholderToMessage: {},
              visitNodeFn: visitNodeFn || noopVisitNodeFn
            };
            var i18nodes = visitAll$1(this, nodes, context);
            return new Message(i18nodes, context.placeholderToContent, context.placeholderToMessage, meaning, description, customId);
          }
        }, {
          key: "visitElement",
          value: function visitElement(el, context) {
            var _a;

            var children = visitAll$1(this, el.children, context);
            var attrs = {};
            el.attrs.forEach(function (attr) {
              // Do not visit the attributes, translatable ones are top-level ASTs
              attrs[attr.name] = attr.value;
            });
            var isVoid = getHtmlTagDefinition(el.name).isVoid;
            var startPhName = context.placeholderRegistry.getStartTagPlaceholderName(el.name, attrs, isVoid);
            context.placeholderToContent[startPhName] = {
              text: el.startSourceSpan.toString(),
              sourceSpan: el.startSourceSpan
            };
            var closePhName = '';

            if (!isVoid) {
              closePhName = context.placeholderRegistry.getCloseTagPlaceholderName(el.name);
              context.placeholderToContent[closePhName] = {
                text: "</".concat(el.name, ">"),
                sourceSpan: (_a = el.endSourceSpan) !== null && _a !== void 0 ? _a : el.sourceSpan
              };
            }

            var node = new TagPlaceholder(el.name, attrs, startPhName, closePhName, children, isVoid, el.sourceSpan, el.startSourceSpan, el.endSourceSpan);
            return context.visitNodeFn(el, node);
          }
        }, {
          key: "visitAttribute",
          value: function visitAttribute(attribute, context) {
            var node = this._visitTextWithInterpolation(attribute.value, attribute.sourceSpan, context);

            return context.visitNodeFn(attribute, node);
          }
        }, {
          key: "visitText",
          value: function visitText(text, context) {
            var node = this._visitTextWithInterpolation(text.value, text.sourceSpan, context);

            return context.visitNodeFn(text, node);
          }
        }, {
          key: "visitComment",
          value: function visitComment(comment, context) {
            return null;
          }
        }, {
          key: "visitExpansion",
          value: function visitExpansion(icu, context) {
            var _this215 = this;

            context.icuDepth++;
            var i18nIcuCases = {};
            var i18nIcu = new Icu$1(icu.switchValue, icu.type, i18nIcuCases, icu.sourceSpan);
            icu.cases.forEach(function (caze) {
              i18nIcuCases[caze.value] = new Container(caze.expression.map(function (node) {
                return node.visit(_this215, context);
              }), caze.expSourceSpan);
            });
            context.icuDepth--;

            if (context.isIcu || context.icuDepth > 0) {
              // Returns an ICU node when:
              // - the message (vs a part of the message) is an ICU message, or
              // - the ICU message is nested.
              var expPh = context.placeholderRegistry.getUniquePlaceholder("VAR_".concat(icu.type));
              i18nIcu.expressionPlaceholder = expPh;
              context.placeholderToContent[expPh] = {
                text: icu.switchValue,
                sourceSpan: icu.switchValueSourceSpan
              };
              return context.visitNodeFn(icu, i18nIcu);
            } // Else returns a placeholder
            // ICU placeholders should not be replaced with their original content but with the their
            // translations.
            // TODO(vicb): add a html.Node -> i18n.Message cache to avoid having to re-create the msg


            var phName = context.placeholderRegistry.getPlaceholderName('ICU', icu.sourceSpan.toString());
            context.placeholderToMessage[phName] = this.toI18nMessage([icu], '', '', '', undefined);
            var node = new IcuPlaceholder(i18nIcu, phName, icu.sourceSpan);
            return context.visitNodeFn(icu, node);
          }
        }, {
          key: "visitExpansionCase",
          value: function visitExpansionCase(_icuCase, _context) {
            throw new Error('Unreachable code');
          }
        }, {
          key: "_visitTextWithInterpolation",
          value: function _visitTextWithInterpolation(text, sourceSpan, context) {
            var splitInterpolation = this._expressionParser.splitInterpolation(text, sourceSpan.start.toString(), this._interpolationConfig);

            if (!splitInterpolation) {
              // No expression, return a single text
              return new Text$1(text, sourceSpan);
            } // Return a group of text + expressions


            var nodes = [];
            var container = new Container(nodes, sourceSpan);
            var _this$_interpolationC = this._interpolationConfig,
                sDelimiter = _this$_interpolationC.start,
                eDelimiter = _this$_interpolationC.end;

            for (var i = 0; i < splitInterpolation.strings.length - 1; i++) {
              var expression = splitInterpolation.expressions[i];
              var baseName = _extractPlaceholderName(expression) || 'INTERPOLATION';
              var phName = context.placeholderRegistry.getPlaceholderName(baseName, expression);

              if (splitInterpolation.strings[i].length) {
                // No need to add empty strings
                var stringSpan = getOffsetSourceSpan(sourceSpan, splitInterpolation.stringSpans[i]);
                nodes.push(new Text$1(splitInterpolation.strings[i], stringSpan));
              }

              var expressionSpan = getOffsetSourceSpan(sourceSpan, splitInterpolation.expressionsSpans[i]);
              nodes.push(new Placeholder(expression, phName, expressionSpan));
              context.placeholderToContent[phName] = {
                text: sDelimiter + expression + eDelimiter,
                sourceSpan: expressionSpan
              };
            } // The last index contains no expression


            var lastStringIdx = splitInterpolation.strings.length - 1;

            if (splitInterpolation.strings[lastStringIdx].length) {
              var _stringSpan = getOffsetSourceSpan(sourceSpan, splitInterpolation.stringSpans[lastStringIdx]);

              nodes.push(new Text$1(splitInterpolation.strings[lastStringIdx], _stringSpan));
            }

            return container;
          }
        }]);

        return _I18nVisitor;
      }();

      function getOffsetSourceSpan(sourceSpan, _ref15) {
        var start = _ref15.start,
            end = _ref15.end;
        return new ParseSourceSpan(sourceSpan.fullStart.moveBy(start), sourceSpan.fullStart.moveBy(end));
      }

      var _CUSTOM_PH_EXP = /\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g;

      function _extractPlaceholderName(input) {
        return input.split(_CUSTOM_PH_EXP)[2];
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var setI18nRefs = function setI18nRefs(htmlNode, i18nNode) {
        if (htmlNode instanceof NodeWithI18n) {
          if (i18nNode instanceof IcuPlaceholder && htmlNode.i18n instanceof Message) {
            // This html node represents an ICU but this is a second processing pass, and the legacy id
            // was computed in the previous pass and stored in the `i18n` property as a message.
            // We are about to wipe out that property so capture the previous message to be reused when
            // generating the message for this ICU later. See `_generateI18nMessage()`.
            i18nNode.previousMessage = htmlNode.i18n;
          }

          htmlNode.i18n = i18nNode;
        }

        return i18nNode;
      };
      /**
       * This visitor walks over HTML parse tree and converts information stored in
       * i18n-related attributes ("i18n" and "i18n-*") into i18n meta object that is
       * stored with other element's and attribute's information.
       */


      var I18nMetaVisitor = /*#__PURE__*/function () {
        function I18nMetaVisitor() {
          var interpolationConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : DEFAULT_INTERPOLATION_CONFIG;
          var keepI18nAttrs = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
          var enableI18nLegacyMessageIdFormat = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;

          _classCallCheck2(this, I18nMetaVisitor);

          this.interpolationConfig = interpolationConfig;
          this.keepI18nAttrs = keepI18nAttrs;
          this.enableI18nLegacyMessageIdFormat = enableI18nLegacyMessageIdFormat; // whether visited nodes contain i18n information

          this.hasI18nMeta = false; // i18n message generation factory

          this._createI18nMessage = createI18nMessageFactory(this.interpolationConfig);
        }

        _createClass2(I18nMetaVisitor, [{
          key: "_generateI18nMessage",
          value: function _generateI18nMessage(nodes) {
            var meta = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
            var visitNodeFn = arguments.length > 2 ? arguments[2] : undefined;

            var _this$_parseMetadata = this._parseMetadata(meta),
                meaning = _this$_parseMetadata.meaning,
                description = _this$_parseMetadata.description,
                customId = _this$_parseMetadata.customId;

            var message = this._createI18nMessage(nodes, meaning, description, customId, visitNodeFn);

            this._setMessageId(message, meta);

            this._setLegacyIds(message, meta);

            return message;
          }
        }, {
          key: "visitElement",
          value: function visitElement(element) {
            if (hasI18nAttrs(element)) {
              this.hasI18nMeta = true;
              var attrs = [];
              var attrsMeta = {};

              var _iterator16 = _createForOfIteratorHelper(element.attrs),
                  _step16;

              try {
                for (_iterator16.s(); !(_step16 = _iterator16.n()).done;) {
                  var _attr = _step16.value;

                  if (_attr.name === I18N_ATTR) {
                    // root 'i18n' node attribute
                    var i18n = element.i18n || _attr.value;

                    var message = this._generateI18nMessage(element.children, i18n, setI18nRefs); // do not assign empty i18n meta


                    if (message.nodes.length) {
                      element.i18n = message;
                    }
                  } else if (_attr.name.startsWith(I18N_ATTR_PREFIX)) {
                    // 'i18n-*' attributes
                    var key = _attr.name.slice(I18N_ATTR_PREFIX.length);

                    attrsMeta[key] = _attr.value;
                  } else {
                    // non-i18n attributes
                    attrs.push(_attr);
                  }
                } // set i18n meta for attributes

              } catch (err) {
                _iterator16.e(err);
              } finally {
                _iterator16.f();
              }

              if (Object.keys(attrsMeta).length) {
                var _iterator17 = _createForOfIteratorHelper(attrs),
                    _step17;

                try {
                  for (_iterator17.s(); !(_step17 = _iterator17.n()).done;) {
                    var attr = _step17.value;
                    var meta = attrsMeta[attr.name]; // do not create translation for empty attributes

                    if (meta !== undefined && attr.value) {
                      attr.i18n = this._generateI18nMessage([attr], attr.i18n || meta);
                    }
                  }
                } catch (err) {
                  _iterator17.e(err);
                } finally {
                  _iterator17.f();
                }
              }

              if (!this.keepI18nAttrs) {
                // update element's attributes,
                // keeping only non-i18n related ones
                element.attrs = attrs;
              }
            }

            visitAll$1(this, element.children, element.i18n);
            return element;
          }
        }, {
          key: "visitExpansion",
          value: function visitExpansion(expansion, currentMessage) {
            var message;
            var meta = expansion.i18n;
            this.hasI18nMeta = true;

            if (meta instanceof IcuPlaceholder) {
              // set ICU placeholder name (e.g. "ICU_1"),
              // generated while processing root element contents,
              // so we can reference it when we output translation
              var name = meta.name;
              message = this._generateI18nMessage([expansion], meta);
              var icu = icuFromI18nMessage(message);
              icu.name = name;
            } else {
              // ICU is a top level message, try to use metadata from container element if provided via
              // `context` argument. Note: context may not be available for standalone ICUs (without
              // wrapping element), so fallback to ICU metadata in this case.
              message = this._generateI18nMessage([expansion], currentMessage || meta);
            }

            expansion.i18n = message;
            return expansion;
          }
        }, {
          key: "visitText",
          value: function visitText(text) {
            return text;
          }
        }, {
          key: "visitAttribute",
          value: function visitAttribute(attribute) {
            return attribute;
          }
        }, {
          key: "visitComment",
          value: function visitComment(comment) {
            return comment;
          }
        }, {
          key: "visitExpansionCase",
          value: function visitExpansionCase(expansionCase) {
            return expansionCase;
          }
          /**
           * Parse the general form `meta` passed into extract the explicit metadata needed to create a
           * `Message`.
           *
           * There are three possibilities for the `meta` variable
           * 1) a string from an `i18n` template attribute: parse it to extract the metadata values.
           * 2) a `Message` from a previous processing pass: reuse the metadata values in the message.
           * 4) other: ignore this and just process the message metadata as normal
           *
           * @param meta the bucket that holds information about the message
           * @returns the parsed metadata.
           */

        }, {
          key: "_parseMetadata",
          value: function _parseMetadata(meta) {
            return typeof meta === 'string' ? parseI18nMeta(meta) : meta instanceof Message ? meta : {};
          }
          /**
           * Generate (or restore) message id if not specified already.
           */

        }, {
          key: "_setMessageId",
          value: function _setMessageId(message, meta) {
            if (!message.id) {
              message.id = meta instanceof Message && meta.id || decimalDigest(message);
            }
          }
          /**
           * Update the `message` with a `legacyId` if necessary.
           *
           * @param message the message whose legacy id should be set
           * @param meta information about the message being processed
           */

        }, {
          key: "_setLegacyIds",
          value: function _setLegacyIds(message, meta) {
            if (this.enableI18nLegacyMessageIdFormat) {
              message.legacyIds = [computeDigest(message), computeDecimalDigest(message)];
            } else if (typeof meta !== 'string') {
              // This occurs if we are doing the 2nd pass after whitespace removal (see `parseTemplate()` in
              // `packages/compiler/src/render3/view/template.ts`).
              // In that case we want to reuse the legacy message generated in the 1st pass (see
              // `setI18nRefs()`).
              var previousMessage = meta instanceof Message ? meta : meta instanceof IcuPlaceholder ? meta.previousMessage : undefined;
              message.legacyIds = previousMessage ? previousMessage.legacyIds : [];
            }
          }
        }]);

        return I18nMetaVisitor;
      }();
      /** I18n separators for metadata **/


      var I18N_MEANING_SEPARATOR = '|';
      var I18N_ID_SEPARATOR = '@@';
      /**
       * Parses i18n metas like:
       *  - "@@id",
       *  - "description[@@id]",
       *  - "meaning|description[@@id]"
       * and returns an object with parsed output.
       *
       * @param meta String that represents i18n meta
       * @returns Object with id, meaning and description fields
       */

      function parseI18nMeta() {
        var meta = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
        var customId;
        var meaning;
        var description;
        meta = meta.trim();

        if (meta) {
          var idIndex = meta.indexOf(I18N_ID_SEPARATOR);
          var descIndex = meta.indexOf(I18N_MEANING_SEPARATOR);
          var meaningAndDesc;

          var _ref16 = idIndex > -1 ? [meta.slice(0, idIndex), meta.slice(idIndex + 2)] : [meta, ''];

          var _ref17 = _slicedToArray(_ref16, 2);

          meaningAndDesc = _ref17[0];
          customId = _ref17[1];

          var _ref18 = descIndex > -1 ? [meaningAndDesc.slice(0, descIndex), meaningAndDesc.slice(descIndex + 1)] : ['', meaningAndDesc];

          var _ref19 = _slicedToArray(_ref18, 2);

          meaning = _ref19[0];
          description = _ref19[1];
        }

        return {
          customId: customId,
          meaning: meaning,
          description: description
        };
      } // Converts i18n meta information for a message (id, description, meaning)
      // to a JsDoc statement formatted as expected by the Closure compiler.


      function i18nMetaToJSDoc(meta) {
        var tags = [];

        if (meta.description) {
          tags.push({
            tagName: "desc"
            /* Desc */
            ,
            text: meta.description
          });
        }

        if (meta.meaning) {
          tags.push({
            tagName: "meaning"
            /* Meaning */
            ,
            text: meta.meaning
          });
        }

        return tags.length == 0 ? null : jsDocComment(tags);
      }
      /** Closure uses `goog.getMsg(message)` to lookup translations */


      var GOOG_GET_MSG = 'goog.getMsg';

      function createGoogleGetMsgStatements(variable$1, message, closureVar, params) {
        var messageString = serializeI18nMessageForGetMsg(message);
        var args = [literal(messageString)];

        if (Object.keys(params).length) {
          args.push(mapLiteral(params, true));
        } // /**
        //  * @desc description of message
        //  * @meaning meaning of message
        //  */
        // const MSG_... = goog.getMsg(..);
        // I18N_X = MSG_...;


        var googGetMsgStmt = closureVar.set(variable(GOOG_GET_MSG).callFn(args)).toConstDecl();
        var metaComment = i18nMetaToJSDoc(message);

        if (metaComment !== null) {
          googGetMsgStmt.addLeadingComment(metaComment);
        }

        var i18nAssignmentStmt = new ExpressionStatement(variable$1.set(closureVar));
        return [googGetMsgStmt, i18nAssignmentStmt];
      }
      /**
       * This visitor walks over i18n tree and generates its string representation, including ICUs and
       * placeholders in `{$placeholder}` (for plain messages) or `{PLACEHOLDER}` (inside ICUs) format.
       */


      var GetMsgSerializerVisitor = /*#__PURE__*/function () {
        function GetMsgSerializerVisitor() {
          _classCallCheck2(this, GetMsgSerializerVisitor);
        }

        _createClass2(GetMsgSerializerVisitor, [{
          key: "formatPh",
          value: function formatPh(value) {
            return "{$".concat(formatI18nPlaceholderName(value), "}");
          }
        }, {
          key: "visitText",
          value: function visitText(text) {
            return text.value;
          }
        }, {
          key: "visitContainer",
          value: function visitContainer(container) {
            var _this216 = this;

            return container.children.map(function (child) {
              return child.visit(_this216);
            }).join('');
          }
        }, {
          key: "visitIcu",
          value: function visitIcu(icu) {
            return serializeIcuNode(icu);
          }
        }, {
          key: "visitTagPlaceholder",
          value: function visitTagPlaceholder(ph) {
            var _this217 = this;

            return ph.isVoid ? this.formatPh(ph.startName) : "".concat(this.formatPh(ph.startName)).concat(ph.children.map(function (child) {
              return child.visit(_this217);
            }).join('')).concat(this.formatPh(ph.closeName));
          }
        }, {
          key: "visitPlaceholder",
          value: function visitPlaceholder(ph) {
            return this.formatPh(ph.name);
          }
        }, {
          key: "visitIcuPlaceholder",
          value: function visitIcuPlaceholder(ph, context) {
            return this.formatPh(ph.name);
          }
        }]);

        return GetMsgSerializerVisitor;
      }();

      var serializerVisitor$1 = new GetMsgSerializerVisitor();

      function serializeI18nMessageForGetMsg(message) {
        return message.nodes.map(function (node) {
          return node.visit(serializerVisitor$1, null);
        }).join('');
      }

      function createLocalizeStatements(variable, message, params) {
        var _serializeI18nMessage = serializeI18nMessageForLocalize(message),
            messageParts = _serializeI18nMessage.messageParts,
            placeHolders = _serializeI18nMessage.placeHolders;

        var sourceSpan = getSourceSpan(message);
        var expressions = placeHolders.map(function (ph) {
          return params[ph.text];
        });
        var localizedString$1 = localizedString(message, messageParts, placeHolders, expressions, sourceSpan);
        var variableInitialization = variable.set(localizedString$1);
        return [new ExpressionStatement(variableInitialization)];
      }
      /**
       * This visitor walks over an i18n tree, capturing literal strings and placeholders.
       *
       * The result can be used for generating the `$localize` tagged template literals.
       */


      var LocalizeSerializerVisitor = /*#__PURE__*/function () {
        function LocalizeSerializerVisitor() {
          _classCallCheck2(this, LocalizeSerializerVisitor);
        }

        _createClass2(LocalizeSerializerVisitor, [{
          key: "visitText",
          value: function visitText(text, context) {
            if (context[context.length - 1] instanceof LiteralPiece) {
              // Two literal pieces in a row means that there was some comment node in-between.
              context[context.length - 1].text += text.value;
            } else {
              context.push(new LiteralPiece(text.value, text.sourceSpan));
            }
          }
        }, {
          key: "visitContainer",
          value: function visitContainer(container, context) {
            var _this218 = this;

            container.children.forEach(function (child) {
              return child.visit(_this218, context);
            });
          }
        }, {
          key: "visitIcu",
          value: function visitIcu(icu, context) {
            context.push(new LiteralPiece(serializeIcuNode(icu), icu.sourceSpan));
          }
        }, {
          key: "visitTagPlaceholder",
          value: function visitTagPlaceholder(ph, context) {
            var _this219 = this;

            var _a, _b;

            context.push(this.createPlaceholderPiece(ph.startName, (_a = ph.startSourceSpan) !== null && _a !== void 0 ? _a : ph.sourceSpan));

            if (!ph.isVoid) {
              ph.children.forEach(function (child) {
                return child.visit(_this219, context);
              });
              context.push(this.createPlaceholderPiece(ph.closeName, (_b = ph.endSourceSpan) !== null && _b !== void 0 ? _b : ph.sourceSpan));
            }
          }
        }, {
          key: "visitPlaceholder",
          value: function visitPlaceholder(ph, context) {
            context.push(this.createPlaceholderPiece(ph.name, ph.sourceSpan));
          }
        }, {
          key: "visitIcuPlaceholder",
          value: function visitIcuPlaceholder(ph, context) {
            context.push(this.createPlaceholderPiece(ph.name, ph.sourceSpan));
          }
        }, {
          key: "createPlaceholderPiece",
          value: function createPlaceholderPiece(name, sourceSpan) {
            return new PlaceholderPiece(formatI18nPlaceholderName(name,
            /* useCamelCase */
            false), sourceSpan);
          }
        }]);

        return LocalizeSerializerVisitor;
      }();

      var serializerVisitor$2 = new LocalizeSerializerVisitor();
      /**
       * Serialize an i18n message into two arrays: messageParts and placeholders.
       *
       * These arrays will be used to generate `$localize` tagged template literals.
       *
       * @param message The message to be serialized.
       * @returns an object containing the messageParts and placeholders.
       */

      function serializeI18nMessageForLocalize(message) {
        var pieces = [];
        message.nodes.forEach(function (node) {
          return node.visit(serializerVisitor$2, pieces);
        });
        return processMessagePieces(pieces);
      }

      function getSourceSpan(message) {
        var startNode = message.nodes[0];
        var endNode = message.nodes[message.nodes.length - 1];
        return new ParseSourceSpan(startNode.sourceSpan.start, endNode.sourceSpan.end, startNode.sourceSpan.fullStart, startNode.sourceSpan.details);
      }
      /**
       * Convert the list of serialized MessagePieces into two arrays.
       *
       * One contains the literal string pieces and the other the placeholders that will be replaced by
       * expressions when rendering `$localize` tagged template literals.
       *
       * @param pieces The pieces to process.
       * @returns an object containing the messageParts and placeholders.
       */


      function processMessagePieces(pieces) {
        var messageParts = [];
        var placeHolders = [];

        if (pieces[0] instanceof PlaceholderPiece) {
          // The first piece was a placeholder so we need to add an initial empty message part.
          messageParts.push(createEmptyMessagePart(pieces[0].sourceSpan.start));
        }

        for (var i = 0; i < pieces.length; i++) {
          var part = pieces[i];

          if (part instanceof LiteralPiece) {
            messageParts.push(part);
          } else {
            placeHolders.push(part);

            if (pieces[i - 1] instanceof PlaceholderPiece) {
              // There were two placeholders in a row, so we need to add an empty message part.
              messageParts.push(createEmptyMessagePart(pieces[i - 1].sourceSpan.end));
            }
          }
        }

        if (pieces[pieces.length - 1] instanceof PlaceholderPiece) {
          // The last piece was a placeholder so we need to add a final empty message part.
          messageParts.push(createEmptyMessagePart(pieces[pieces.length - 1].sourceSpan.end));
        }

        return {
          messageParts: messageParts,
          placeHolders: placeHolders
        };
      }

      function createEmptyMessagePart(location) {
        return new LiteralPiece('', new ParseSourceSpan(location, location));
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */
      // Selector attribute name of `<ng-content>`


      var NG_CONTENT_SELECT_ATTR$1 = 'select'; // Attribute name of `ngProjectAs`.

      var NG_PROJECT_AS_ATTR_NAME = 'ngProjectAs'; // Global symbols available only inside event bindings.

      var EVENT_BINDING_SCOPE_GLOBALS = new Set(['$event']); // List of supported global targets for event listeners

      var GLOBAL_TARGET_RESOLVERS = new Map([['window', Identifiers$1.resolveWindow], ['document', Identifiers$1.resolveDocument], ['body', Identifiers$1.resolveBody]]);
      var LEADING_TRIVIA_CHARS = [' ', '\n', '\r', '\t']; //  if (rf & flags) { .. }

      function renderFlagCheckIfStmt(flags, statements) {
        return ifStmt(variable(RENDER_FLAGS).bitwiseAnd(literal(flags), null, false), statements);
      }

      function prepareEventListenerParameters(eventAst) {
        var handlerName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
        var scope = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
        var type = eventAst.type,
            name = eventAst.name,
            target = eventAst.target,
            phase = eventAst.phase,
            handler = eventAst.handler;

        if (target && !GLOBAL_TARGET_RESOLVERS.has(target)) {
          throw new Error("Unexpected global target '".concat(target, "' defined for '").concat(name, "' event.\n        Supported list of global targets: ").concat(Array.from(GLOBAL_TARGET_RESOLVERS.keys()), "."));
        }

        var eventArgumentName = '$event';
        var implicitReceiverAccesses = new Set();
        var implicitReceiverExpr = scope === null || scope.bindingLevel === 0 ? variable(CONTEXT_NAME) : scope.getOrCreateSharedContextVar(0);
        var bindingExpr = convertActionBinding(scope, implicitReceiverExpr, handler, 'b', function () {
          return error('Unexpected interpolation');
        }, eventAst.handlerSpan, implicitReceiverAccesses, EVENT_BINDING_SCOPE_GLOBALS);
        var statements = [];

        if (scope) {
          statements.push.apply(statements, _toConsumableArray(scope.restoreViewStatement()));
          statements.push.apply(statements, _toConsumableArray(scope.variableDeclarations()));
        }

        statements.push.apply(statements, _toConsumableArray(bindingExpr.render3Stmts));
        var eventName = type === 1
        /* Animation */
        ? prepareSyntheticListenerName(name, phase) : name;
        var fnName = handlerName && sanitizeIdentifier(handlerName);
        var fnArgs = [];

        if (implicitReceiverAccesses.has(eventArgumentName)) {
          fnArgs.push(new FnParam(eventArgumentName, DYNAMIC_TYPE));
        }

        var handlerFn = fn(fnArgs, statements, INFERRED_TYPE, null, fnName);
        var params = [literal(eventName), handlerFn];

        if (target) {
          params.push(literal(false), // `useCapture` flag, defaults to `false`
          importExpr(GLOBAL_TARGET_RESOLVERS.get(target)));
        }

        return params;
      }

      function createComponentDefConsts() {
        return {
          prepareStatements: [],
          constExpressions: []
        };
      }

      var TemplateDefinitionBuilder = /*#__PURE__*/function () {
        function TemplateDefinitionBuilder(constantPool, parentBindingScope) {
          var _this220 = this;

          var level = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
          var contextName = arguments.length > 3 ? arguments[3] : undefined;
          var i18nContext = arguments.length > 4 ? arguments[4] : undefined;
          var templateIndex = arguments.length > 5 ? arguments[5] : undefined;
          var templateName = arguments.length > 6 ? arguments[6] : undefined;
          var directiveMatcher = arguments.length > 7 ? arguments[7] : undefined;
          var directives = arguments.length > 8 ? arguments[8] : undefined;
          var pipeTypeByName = arguments.length > 9 ? arguments[9] : undefined;
          var pipes = arguments.length > 10 ? arguments[10] : undefined;

          var _namespace = arguments.length > 11 ? arguments[11] : undefined;

          var relativeContextFilePath = arguments.length > 12 ? arguments[12] : undefined;
          var i18nUseExternalIds = arguments.length > 13 ? arguments[13] : undefined;

          var _constants = arguments.length > 14 && arguments[14] !== undefined ? arguments[14] : createComponentDefConsts();

          _classCallCheck2(this, TemplateDefinitionBuilder);

          this.constantPool = constantPool;
          this.level = level;
          this.contextName = contextName;
          this.i18nContext = i18nContext;
          this.templateIndex = templateIndex;
          this.templateName = templateName;
          this.directiveMatcher = directiveMatcher;
          this.directives = directives;
          this.pipeTypeByName = pipeTypeByName;
          this.pipes = pipes;
          this._namespace = _namespace;
          this.i18nUseExternalIds = i18nUseExternalIds;
          this._constants = _constants;
          this._dataIndex = 0;
          this._bindingContext = 0;
          this._prefixCode = [];
          /**
           * List of callbacks to generate creation mode instructions. We store them here as we process
           * the template so bindings in listeners are resolved only once all nodes have been visited.
           * This ensures all local refs and context variables are available for matching.
           */

          this._creationCodeFns = [];
          /**
           * List of callbacks to generate update mode instructions. We store them here as we process
           * the template so bindings are resolved only once all nodes have been visited. This ensures
           * all local refs and context variables are available for matching.
           */

          this._updateCodeFns = [];
          /** Index of the currently-selected node. */

          this._currentIndex = 0;
          /** Temporary variable declarations generated from visiting pipes, literals, etc. */

          this._tempVariables = [];
          /**
           * List of callbacks to build nested templates. Nested templates must not be visited until
           * after the parent template has finished visiting all of its nodes. This ensures that all
           * local ref bindings in nested templates are able to find local ref values if the refs
           * are defined after the template declaration.
           */

          this._nestedTemplateFns = [];
          this._unsupported = unsupported; // i18n context local to this template

          this.i18n = null; // Number of slots to reserve for pureFunctions

          this._pureFunctionSlots = 0; // Number of binding slots

          this._bindingSlots = 0; // Projection slots found in the template. Projection slots can distribute projected
          // nodes based on a selector, or can just use the wildcard selector to match
          // all nodes which aren't matching any selector.

          this._ngContentReservedSlots = []; // Number of non-default selectors found in all parent templates of this template. We need to
          // track it to properly adjust projection slot index in the `projection` instruction.

          this._ngContentSelectorsOffset = 0; // Expression that should be used as implicit receiver when converting template
          // expressions to output AST.

          this._implicitReceiverExpr = null; // These should be handled in the template or element directly.

          this.visitReference = invalid$1;
          this.visitVariable = invalid$1;
          this.visitTextAttribute = invalid$1;
          this.visitBoundAttribute = invalid$1;
          this.visitBoundEvent = invalid$1;
          this._bindingScope = parentBindingScope.nestedScope(level); // Turn the relative context file path into an identifier by replacing non-alphanumeric
          // characters with underscores.

          this.fileBasedI18nSuffix = relativeContextFilePath.replace(/[^A-Za-z0-9]/g, '_') + '_';
          this._valueConverter = new ValueConverter(constantPool, function () {
            return _this220.allocateDataSlot();
          }, function (numSlots) {
            return _this220.allocatePureFunctionSlots(numSlots);
          }, function (name, localName, slot, value) {
            var pipeType = pipeTypeByName.get(name);

            if (pipeType) {
              _this220.pipes.add(pipeType);
            }

            _this220._bindingScope.set(_this220.level, localName, value);

            _this220.creationInstruction(null, Identifiers$1.pipe, [literal(slot), literal(name)]);
          });
        }

        _createClass2(TemplateDefinitionBuilder, [{
          key: "buildTemplateFunction",
          value: function buildTemplateFunction(nodes, variables) {
            var _this221 = this;

            var ngContentSelectorsOffset = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
            var i18n = arguments.length > 3 ? arguments[3] : undefined;
            this._ngContentSelectorsOffset = ngContentSelectorsOffset;

            if (this._namespace !== Identifiers$1.namespaceHTML) {
              this.creationInstruction(null, this._namespace);
            } // Create variable bindings


            variables.forEach(function (v) {
              return _this221.registerContextVariables(v);
            }); // Initiate i18n context in case:
            // - this template has parent i18n context
            // - or the template has i18n meta associated with it,
            //   but it's not initiated by the Element (e.g. <ng-template i18n>)

            var initI18nContext = this.i18nContext || isI18nRootNode(i18n) && !isSingleI18nIcu(i18n) && !(isSingleElementTemplate(nodes) && nodes[0].i18n === i18n);
            var selfClosingI18nInstruction = hasTextChildrenOnly(nodes);

            if (initI18nContext) {
              this.i18nStart(null, i18n, selfClosingI18nInstruction);
            } // This is the initial pass through the nodes of this template. In this pass, we
            // queue all creation mode and update mode instructions for generation in the second
            // pass. It's necessary to separate the passes to ensure local refs are defined before
            // resolving bindings. We also count bindings in this pass as we walk bound expressions.


            visitAll(this, nodes); // Add total binding count to pure function count so pure function instructions are
            // generated with the correct slot offset when update instructions are processed.

            this._pureFunctionSlots += this._bindingSlots; // Pipes are walked in the first pass (to enqueue `pipe()` creation instructions and
            // `pipeBind` update instructions), so we have to update the slot offsets manually
            // to account for bindings.

            this._valueConverter.updatePipeSlotOffsets(this._bindingSlots); // Nested templates must be processed before creation instructions so template()
            // instructions can be generated with the correct internal const count.


            this._nestedTemplateFns.forEach(function (buildTemplateFn) {
              return buildTemplateFn();
            }); // Output the `projectionDef` instruction when some `<ng-content>` tags are present.
            // The `projectionDef` instruction is only emitted for the component template and
            // is skipped for nested templates (<ng-template> tags).


            if (this.level === 0 && this._ngContentReservedSlots.length) {
              var parameters = []; // By default the `projectionDef` instructions creates one slot for the wildcard
              // selector if no parameters are passed. Therefore we only want to allocate a new
              // array for the projection slots if the default projection slot is not sufficient.

              if (this._ngContentReservedSlots.length > 1 || this._ngContentReservedSlots[0] !== '*') {
                var r3ReservedSlots = this._ngContentReservedSlots.map(function (s) {
                  return s !== '*' ? parseSelectorToR3Selector(s) : s;
                });

                parameters.push(this.constantPool.getConstLiteral(asLiteral(r3ReservedSlots), true));
              } // Since we accumulate ngContent selectors while processing template elements,
              // we *prepend* `projectionDef` to creation instructions block, to put it before
              // any `projection` instructions


              this.creationInstruction(null, Identifiers$1.projectionDef, parameters,
              /* prepend */
              true);
            }

            if (initI18nContext) {
              this.i18nEnd(null, selfClosingI18nInstruction);
            } // Generate all the creation mode instructions (e.g. resolve bindings in listeners)


            var creationStatements = this._creationCodeFns.map(function (fn) {
              return fn();
            }); // Generate all the update mode instructions (e.g. resolve property or text bindings)


            var updateStatements = this._updateCodeFns.map(function (fn) {
              return fn();
            }); //  Variable declaration must occur after binding resolution so we can generate context
            //  instructions that build on each other.
            // e.g. const b = nextContext().$implicit(); const b = nextContext();


            var creationVariables = this._bindingScope.viewSnapshotStatements();

            var updateVariables = this._bindingScope.variableDeclarations().concat(this._tempVariables);

            var creationBlock = creationStatements.length > 0 ? [renderFlagCheckIfStmt(1
            /* Create */
            , creationVariables.concat(creationStatements))] : [];
            var updateBlock = updateStatements.length > 0 ? [renderFlagCheckIfStmt(2
            /* Update */
            , updateVariables.concat(updateStatements))] : [];
            return fn( // i.e. (rf: RenderFlags, ctx: any)
            [new FnParam(RENDER_FLAGS, NUMBER_TYPE), new FnParam(CONTEXT_NAME, null)], [].concat(_toConsumableArray(this._prefixCode), creationBlock, updateBlock), INFERRED_TYPE, null, this.templateName);
          } // LocalResolver

        }, {
          key: "getLocal",
          value: function getLocal(name) {
            return this._bindingScope.get(name);
          } // LocalResolver

        }, {
          key: "notifyImplicitReceiverUse",
          value: function notifyImplicitReceiverUse() {
            this._bindingScope.notifyImplicitReceiverUse();
          }
        }, {
          key: "i18nTranslate",
          value: function i18nTranslate(message) {
            var _this$_constants$prep;

            var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
            var ref = arguments.length > 2 ? arguments[2] : undefined;
            var transformFn = arguments.length > 3 ? arguments[3] : undefined;

            var _ref = ref || this.i18nGenerateMainBlockVar(); // Closure Compiler requires const names to start with `MSG_` but disallows any other const to
            // start with `MSG_`. We define a variable starting with `MSG_` just for the `goog.getMsg` call


            var closureVar = this.i18nGenerateClosureVar(message.id);
            var statements = getTranslationDeclStmts(message, _ref, closureVar, params, transformFn);

            (_this$_constants$prep = this._constants.prepareStatements).push.apply(_this$_constants$prep, _toConsumableArray(statements));

            return _ref;
          }
        }, {
          key: "registerContextVariables",
          value: function registerContextVariables(variable$1) {
            var scopedName = this._bindingScope.freshReferenceName();

            var retrievalLevel = this.level;
            var lhs = variable(variable$1.name + scopedName);

            this._bindingScope.set(retrievalLevel, variable$1.name, lhs, 1
            /* CONTEXT */
            , function (scope, relativeLevel) {
              var rhs;

              if (scope.bindingLevel === retrievalLevel) {
                // e.g. ctx
                rhs = variable(CONTEXT_NAME);
              } else {
                var sharedCtxVar = scope.getSharedContextName(retrievalLevel); // e.g. ctx_r0   OR  x(2);

                rhs = sharedCtxVar ? sharedCtxVar : generateNextContextExpr(relativeLevel);
              } // e.g. const $item$ = x(2).$implicit;


              return [lhs.set(rhs.prop(variable$1.value || IMPLICIT_REFERENCE)).toConstDecl()];
            });
          }
        }, {
          key: "i18nAppendBindings",
          value: function i18nAppendBindings(expressions) {
            var _this222 = this;

            if (expressions.length > 0) {
              expressions.forEach(function (expression) {
                return _this222.i18n.appendBinding(expression);
              });
            }
          }
        }, {
          key: "i18nBindProps",
          value: function i18nBindProps(props) {
            var _this223 = this;

            var bound = {};
            Object.keys(props).forEach(function (key) {
              var prop = props[key];

              if (prop instanceof Text) {
                bound[key] = literal(prop.value);
              } else {
                var value = prop.value.visit(_this223._valueConverter);

                _this223.allocateBindingSlots(value);

                if (value instanceof Interpolation) {
                  var strings = value.strings,
                      expressions = value.expressions;
                  var _this223$i18n = _this223.i18n,
                      id = _this223$i18n.id,
                      bindings = _this223$i18n.bindings;
                  var label = assembleI18nBoundString(strings, bindings.size, id);

                  _this223.i18nAppendBindings(expressions);

                  bound[key] = literal(label);
                }
              }
            });
            return bound;
          } // Generates top level vars for i18n blocks (i.e. `i18n_N`).

        }, {
          key: "i18nGenerateMainBlockVar",
          value: function i18nGenerateMainBlockVar() {
            return variable(this.constantPool.uniqueName(TRANSLATION_VAR_PREFIX));
          } // Generates vars with Closure-specific names for i18n blocks (i.e. `MSG_XXX`).

        }, {
          key: "i18nGenerateClosureVar",
          value: function i18nGenerateClosureVar(messageId) {
            var name;
            var suffix = this.fileBasedI18nSuffix.toUpperCase();

            if (this.i18nUseExternalIds) {
              var prefix = getTranslationConstPrefix("EXTERNAL_");
              var uniqueSuffix = this.constantPool.uniqueName(suffix);
              name = "".concat(prefix).concat(sanitizeIdentifier(messageId), "$$").concat(uniqueSuffix);
            } else {
              var _prefix = getTranslationConstPrefix(suffix);

              name = this.constantPool.uniqueName(_prefix);
            }

            return variable(name);
          }
        }, {
          key: "i18nUpdateRef",
          value: function i18nUpdateRef(context) {
            var icus = context.icus,
                meta = context.meta,
                isRoot = context.isRoot,
                isResolved = context.isResolved,
                isEmitted = context.isEmitted;

            if (isRoot && isResolved && !isEmitted && !isSingleI18nIcu(meta)) {
              context.isEmitted = true;
              var placeholders = context.getSerializedPlaceholders();
              var icuMapping = {};
              var params = placeholders.size ? placeholdersToParams(placeholders) : {};

              if (icus.size) {
                icus.forEach(function (refs, key) {
                  if (refs.length === 1) {
                    // if we have one ICU defined for a given
                    // placeholder - just output its reference
                    params[key] = refs[0];
                  } else {
                    // ... otherwise we need to activate post-processing
                    // to replace ICU placeholders with proper values
                    var placeholder = wrapI18nPlaceholder("".concat(I18N_ICU_MAPPING_PREFIX).concat(key));
                    params[key] = literal(placeholder);
                    icuMapping[key] = literalArr(refs);
                  }
                });
              } // translation requires post processing in 2 cases:
              // - if we have placeholders with multiple values (ex. `START_DIV`: [�#1�, �#2�, ...])
              // - if we have multiple ICUs that refer to the same placeholder name


              var needsPostprocessing = Array.from(placeholders.values()).some(function (value) {
                return value.length > 1;
              }) || Object.keys(icuMapping).length;
              var transformFn;

              if (needsPostprocessing) {
                transformFn = function transformFn(raw) {
                  var args = [raw];

                  if (Object.keys(icuMapping).length) {
                    args.push(mapLiteral(icuMapping, true));
                  }

                  return instruction(null, Identifiers$1.i18nPostprocess, args);
                };
              }

              this.i18nTranslate(meta, params, context.ref, transformFn);
            }
          }
        }, {
          key: "i18nStart",
          value: function i18nStart() {
            var span = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
            var meta = arguments.length > 1 ? arguments[1] : undefined;
            var selfClosing = arguments.length > 2 ? arguments[2] : undefined;
            var index = this.allocateDataSlot();
            this.i18n = this.i18nContext ? this.i18nContext.forkChildContext(index, this.templateIndex, meta) : new I18nContext(index, this.i18nGenerateMainBlockVar(), 0, this.templateIndex, meta); // generate i18nStart instruction

            var _this$i18n = this.i18n,
                id = _this$i18n.id,
                ref = _this$i18n.ref;
            var params = [literal(index), this.addToConsts(ref)];

            if (id > 0) {
              // do not push 3rd argument (sub-block id)
              // into i18nStart call for top level i18n context
              params.push(literal(id));
            }

            this.creationInstruction(span, selfClosing ? Identifiers$1.i18n : Identifiers$1.i18nStart, params);
          }
        }, {
          key: "i18nEnd",
          value: function i18nEnd() {
            var _this224 = this;

            var span = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
            var selfClosing = arguments.length > 1 ? arguments[1] : undefined;

            if (!this.i18n) {
              throw new Error('i18nEnd is executed with no i18n context present');
            }

            if (this.i18nContext) {
              this.i18nContext.reconcileChildContext(this.i18n);
              this.i18nUpdateRef(this.i18nContext);
            } else {
              this.i18nUpdateRef(this.i18n);
            } // setup accumulated bindings


            var _this$i18n2 = this.i18n,
                index = _this$i18n2.index,
                bindings = _this$i18n2.bindings;

            if (bindings.size) {
              var chainBindings = [];
              bindings.forEach(function (binding) {
                chainBindings.push({
                  sourceSpan: span,
                  value: function value() {
                    return _this224.convertPropertyBinding(binding);
                  }
                });
              }); // for i18n block, advance to the most recent element index (by taking the current number of
              // elements and subtracting one) before invoking `i18nExp` instructions, to make sure the
              // necessary lifecycle hooks of components/directives are properly flushed.

              this.updateInstructionChainWithAdvance(this.getConstCount() - 1, Identifiers$1.i18nExp, chainBindings);
              this.updateInstruction(span, Identifiers$1.i18nApply, [literal(index)]);
            }

            if (!selfClosing) {
              this.creationInstruction(span, Identifiers$1.i18nEnd);
            }

            this.i18n = null; // reset local i18n context
          }
        }, {
          key: "i18nAttributesInstruction",
          value: function i18nAttributesInstruction(nodeIndex, attrs, sourceSpan) {
            var _this225 = this;

            var hasBindings = false;
            var i18nAttrArgs = [];
            var bindings = [];
            attrs.forEach(function (attr) {
              var message = attr.i18n;
              var converted = attr.value.visit(_this225._valueConverter);

              _this225.allocateBindingSlots(converted);

              if (converted instanceof Interpolation) {
                var placeholders = assembleBoundTextPlaceholders(message);
                var params = placeholdersToParams(placeholders);
                i18nAttrArgs.push(literal(attr.name), _this225.i18nTranslate(message, params));
                converted.expressions.forEach(function (expression) {
                  hasBindings = true;
                  bindings.push({
                    sourceSpan: sourceSpan,
                    value: function value() {
                      return _this225.convertPropertyBinding(expression);
                    }
                  });
                });
              }
            });

            if (bindings.length > 0) {
              this.updateInstructionChainWithAdvance(nodeIndex, Identifiers$1.i18nExp, bindings);
            }

            if (i18nAttrArgs.length > 0) {
              var index = literal(this.allocateDataSlot());
              var constIndex = this.addToConsts(literalArr(i18nAttrArgs));
              this.creationInstruction(sourceSpan, Identifiers$1.i18nAttributes, [index, constIndex]);

              if (hasBindings) {
                this.updateInstruction(sourceSpan, Identifiers$1.i18nApply, [index]);
              }
            }
          }
        }, {
          key: "getNamespaceInstruction",
          value: function getNamespaceInstruction(namespaceKey) {
            switch (namespaceKey) {
              case 'math':
                return Identifiers$1.namespaceMathML;

              case 'svg':
                return Identifiers$1.namespaceSVG;

              default:
                return Identifiers$1.namespaceHTML;
            }
          }
        }, {
          key: "addNamespaceInstruction",
          value: function addNamespaceInstruction(nsInstruction, element) {
            this._namespace = nsInstruction;
            this.creationInstruction(element.startSourceSpan, nsInstruction);
          }
          /**
           * Adds an update instruction for an interpolated property or attribute, such as
           * `prop="{{value}}"` or `attr.title="{{value}}"`
           */

        }, {
          key: "interpolatedUpdateInstruction",
          value: function interpolatedUpdateInstruction(instruction, elementIndex, attrName, input, value, params) {
            var _this226 = this;

            this.updateInstructionWithAdvance(elementIndex, input.sourceSpan, instruction, function () {
              return [literal(attrName)].concat(_toConsumableArray(_this226.getUpdateInstructionArguments(value)), _toConsumableArray(params));
            });
          }
        }, {
          key: "visitContent",
          value: function visitContent(ngContent) {
            var slot = this.allocateDataSlot();
            var projectionSlotIdx = this._ngContentSelectorsOffset + this._ngContentReservedSlots.length;
            var parameters = [literal(slot)];

            this._ngContentReservedSlots.push(ngContent.selector);

            var nonContentSelectAttributes = ngContent.attributes.filter(function (attr) {
              return attr.name.toLowerCase() !== NG_CONTENT_SELECT_ATTR$1;
            });
            var attributes = this.getAttributeExpressions(ngContent.name, nonContentSelectAttributes, [], []);

            if (attributes.length > 0) {
              parameters.push(literal(projectionSlotIdx), literalArr(attributes));
            } else if (projectionSlotIdx !== 0) {
              parameters.push(literal(projectionSlotIdx));
            }

            this.creationInstruction(ngContent.sourceSpan, Identifiers$1.projection, parameters);

            if (this.i18n) {
              this.i18n.appendProjection(ngContent.i18n, slot);
            }
          }
        }, {
          key: "visitElement",
          value: function visitElement(element) {
            var _this227 = this;

            var _a, _b;

            var elementIndex = this.allocateDataSlot();
            var stylingBuilder = new StylingBuilder(null);
            var isNonBindableMode = false;
            var isI18nRootElement = isI18nRootNode(element.i18n) && !isSingleI18nIcu(element.i18n);
            var outputAttrs = [];

            var _splitNsName = splitNsName(element.name),
                _splitNsName2 = _slicedToArray(_splitNsName, 2),
                namespaceKey = _splitNsName2[0],
                elementName = _splitNsName2[1];

            var isNgContainer$1 = isNgContainer(element.name); // Handle styling, i18n, ngNonBindable attributes

            var _iterator18 = _createForOfIteratorHelper(element.attributes),
                _step18;

            try {
              for (_iterator18.s(); !(_step18 = _iterator18.n()).done;) {
                var attr = _step18.value;
                var name = attr.name,
                    value = attr.value;

                if (name === NON_BINDABLE_ATTR) {
                  isNonBindableMode = true;
                } else if (name === 'style') {
                  stylingBuilder.registerStyleAttr(value);
                } else if (name === 'class') {
                  stylingBuilder.registerClassAttr(value);
                } else {
                  outputAttrs.push(attr);
                }
              } // Match directives on non i18n attributes

            } catch (err) {
              _iterator18.e(err);
            } finally {
              _iterator18.f();
            }

            this.matchDirectives(element.name, element); // Regular element or ng-container creation mode

            var parameters = [literal(elementIndex)];

            if (!isNgContainer$1) {
              parameters.push(literal(elementName));
            } // Add the attributes


            var allOtherInputs = [];
            var boundI18nAttrs = [];
            element.inputs.forEach(function (input) {
              var stylingInputWasSet = stylingBuilder.registerBoundInput(input);

              if (!stylingInputWasSet) {
                if (input.type === 0
                /* Property */
                && input.i18n) {
                  boundI18nAttrs.push(input);
                } else {
                  allOtherInputs.push(input);
                }
              }
            }); // add attributes for directive and projection matching purposes

            var attributes = this.getAttributeExpressions(element.name, outputAttrs, allOtherInputs, element.outputs, stylingBuilder, [], boundI18nAttrs);
            parameters.push(this.addAttrsToConsts(attributes)); // local refs (ex.: <div #foo #bar="baz">)

            var refs = this.prepareRefsArray(element.references);
            parameters.push(this.addToConsts(refs));
            var wasInNamespace = this._namespace;
            var currentNamespace = this.getNamespaceInstruction(namespaceKey); // If the namespace is changing now, include an instruction to change it
            // during element creation.

            if (currentNamespace !== wasInNamespace) {
              this.addNamespaceInstruction(currentNamespace, element);
            }

            if (this.i18n) {
              this.i18n.appendElement(element.i18n, elementIndex);
            } // Note that we do not append text node instructions and ICUs inside i18n section,
            // so we exclude them while calculating whether current element has children


            var hasChildren = !isI18nRootElement && this.i18n ? !hasTextChildrenOnly(element.children) : element.children.length > 0;
            var createSelfClosingInstruction = !stylingBuilder.hasBindingsWithPipes && element.outputs.length === 0 && boundI18nAttrs.length === 0 && !hasChildren;
            var createSelfClosingI18nInstruction = !createSelfClosingInstruction && hasTextChildrenOnly(element.children);

            if (createSelfClosingInstruction) {
              this.creationInstruction(element.sourceSpan, isNgContainer$1 ? Identifiers$1.elementContainer : Identifiers$1.element, trimTrailingNulls(parameters));
            } else {
              this.creationInstruction(element.startSourceSpan, isNgContainer$1 ? Identifiers$1.elementContainerStart : Identifiers$1.elementStart, trimTrailingNulls(parameters));

              if (isNonBindableMode) {
                this.creationInstruction(element.startSourceSpan, Identifiers$1.disableBindings);
              }

              if (boundI18nAttrs.length > 0) {
                this.i18nAttributesInstruction(elementIndex, boundI18nAttrs, (_a = element.startSourceSpan) !== null && _a !== void 0 ? _a : element.sourceSpan);
              } // Generate Listeners (outputs)


              if (element.outputs.length > 0) {
                var listeners = element.outputs.map(function (outputAst) {
                  return {
                    sourceSpan: outputAst.sourceSpan,
                    params: _this227.prepareListenerParameter(element.name, outputAst, elementIndex)
                  };
                });
                this.creationInstructionChain(Identifiers$1.listener, listeners);
              } // Note: it's important to keep i18n/i18nStart instructions after i18nAttributes and
              // listeners, to make sure i18nAttributes instruction targets current element at runtime.


              if (isI18nRootElement) {
                this.i18nStart(element.startSourceSpan, element.i18n, createSelfClosingI18nInstruction);
              }
            } // the code here will collect all update-level styling instructions and add them to the
            // update block of the template function AOT code. Instructions like `styleProp`,
            // `styleMap`, `classMap`, `classProp`
            // are all generated and assigned in the code below.


            var stylingInstructions = stylingBuilder.buildUpdateLevelInstructions(this._valueConverter);
            var limit = stylingInstructions.length - 1;

            for (var i = 0; i <= limit; i++) {
              var _instruction = stylingInstructions[i];
              this._bindingSlots += this.processStylingUpdateInstruction(elementIndex, _instruction);
            } // the reason why `undefined` is used is because the renderer understands this as a
            // special value to symbolize that there is no RHS to this binding
            // TODO (matsko): revisit this once FW-959 is approached


            var emptyValueBindInstruction = literal(undefined);
            var propertyBindings = [];
            var attributeBindings = []; // Generate element input bindings

            allOtherInputs.forEach(function (input) {
              var inputType = input.type;

              if (inputType === 4
              /* Animation */
              ) {
                var _value3 = input.value.visit(_this227._valueConverter); // animation bindings can be presented in the following formats:
                // 1. [@binding]="fooExp"
                // 2. [@binding]="{value:fooExp, params:{...}}"
                // 3. [@binding]
                // 4. @binding
                // All formats will be valid for when a synthetic binding is created.
                // The reasoning for this is because the renderer should get each
                // synthetic binding value in the order of the array that they are
                // defined in...


                var hasValue = _value3 instanceof LiteralPrimitive ? !!_value3.value : true;

                _this227.allocateBindingSlots(_value3);

                propertyBindings.push({
                  name: prepareSyntheticPropertyName(input.name),
                  sourceSpan: input.sourceSpan,
                  value: function value() {
                    return hasValue ? _this227.convertPropertyBinding(_value3) : emptyValueBindInstruction;
                  }
                });
              } else {
                // we must skip attributes with associated i18n context, since these attributes are handled
                // separately and corresponding `i18nExp` and `i18nApply` instructions will be generated
                if (input.i18n) return;

                var _value4 = input.value.visit(_this227._valueConverter);

                if (_value4 !== undefined) {
                  var params = [];

                  var _splitNsName3 = splitNsName(input.name),
                      _splitNsName4 = _slicedToArray(_splitNsName3, 2),
                      attrNamespace = _splitNsName4[0],
                      attrName = _splitNsName4[1];

                  var isAttributeBinding = inputType === 1
                  /* Attribute */
                  ;
                  var sanitizationRef = resolveSanitizationFn(input.securityContext, isAttributeBinding);
                  if (sanitizationRef) params.push(sanitizationRef);

                  if (attrNamespace) {
                    var namespaceLiteral = literal(attrNamespace);

                    if (sanitizationRef) {
                      params.push(namespaceLiteral);
                    } else {
                      // If there wasn't a sanitization ref, we need to add
                      // an extra param so that we can pass in the namespace.
                      params.push(literal(null), namespaceLiteral);
                    }
                  }

                  _this227.allocateBindingSlots(_value4);

                  if (inputType === 0
                  /* Property */
                  ) {
                    if (_value4 instanceof Interpolation) {
                      // prop="{{value}}" and friends
                      _this227.interpolatedUpdateInstruction(getPropertyInterpolationExpression(_value4), elementIndex, attrName, input, _value4, params);
                    } else {
                      // [prop]="value"
                      // Collect all the properties so that we can chain into a single function at the end.
                      propertyBindings.push({
                        name: attrName,
                        sourceSpan: input.sourceSpan,
                        value: function value() {
                          return _this227.convertPropertyBinding(_value4);
                        },
                        params: params
                      });
                    }
                  } else if (inputType === 1
                  /* Attribute */
                  ) {
                    if (_value4 instanceof Interpolation && getInterpolationArgsLength(_value4) > 1) {
                      // attr.name="text{{value}}" and friends
                      _this227.interpolatedUpdateInstruction(getAttributeInterpolationExpression(_value4), elementIndex, attrName, input, _value4, params);
                    } else {
                      var boundValue = _value4 instanceof Interpolation ? _value4.expressions[0] : _value4; // [attr.name]="value" or attr.name="{{value}}"
                      // Collect the attribute bindings so that they can be chained at the end.

                      attributeBindings.push({
                        name: attrName,
                        sourceSpan: input.sourceSpan,
                        value: function value() {
                          return _this227.convertPropertyBinding(boundValue);
                        },
                        params: params
                      });
                    }
                  } else {
                    // class prop
                    _this227.updateInstructionWithAdvance(elementIndex, input.sourceSpan, Identifiers$1.classProp, function () {
                      return [literal(elementIndex), literal(attrName), _this227.convertPropertyBinding(_value4)].concat(params);
                    });
                  }
                }
              }
            });

            if (propertyBindings.length > 0) {
              this.updateInstructionChainWithAdvance(elementIndex, Identifiers$1.property, propertyBindings);
            }

            if (attributeBindings.length > 0) {
              this.updateInstructionChainWithAdvance(elementIndex, Identifiers$1.attribute, attributeBindings);
            } // Traverse element child nodes


            visitAll(this, element.children);

            if (!isI18nRootElement && this.i18n) {
              this.i18n.appendElement(element.i18n, elementIndex, true);
            }

            if (!createSelfClosingInstruction) {
              // Finish element construction mode.
              var span = (_b = element.endSourceSpan) !== null && _b !== void 0 ? _b : element.sourceSpan;

              if (isI18nRootElement) {
                this.i18nEnd(span, createSelfClosingI18nInstruction);
              }

              if (isNonBindableMode) {
                this.creationInstruction(span, Identifiers$1.enableBindings);
              }

              this.creationInstruction(span, isNgContainer$1 ? Identifiers$1.elementContainerEnd : Identifiers$1.elementEnd);
            }
          }
        }, {
          key: "visitTemplate",
          value: function visitTemplate(template) {
            var _this228 = this;

            var _a;

            var NG_TEMPLATE_TAG_NAME = 'ng-template';
            var templateIndex = this.allocateDataSlot();

            if (this.i18n) {
              this.i18n.appendTemplate(template.i18n, templateIndex);
            }

            var tagName = sanitizeIdentifier(template.tagName || '');
            var contextName = "".concat(this.contextName).concat(tagName ? '_' + tagName : '', "_").concat(templateIndex);
            var templateName = "".concat(contextName, "_Template");
            var parameters = [literal(templateIndex), variable(templateName), // We don't care about the tag's namespace here, because we infer
            // it based on the parent nodes inside the template instruction.
            literal(template.tagName ? splitNsName(template.tagName)[1] : template.tagName)]; // find directives matching on a given <ng-template> node

            this.matchDirectives(NG_TEMPLATE_TAG_NAME, template); // prepare attributes parameter (including attributes used for directive matching)

            var attrsExprs = this.getAttributeExpressions(NG_TEMPLATE_TAG_NAME, template.attributes, template.inputs, template.outputs, undefined
            /* styles */
            , template.templateAttrs);
            parameters.push(this.addAttrsToConsts(attrsExprs)); // local refs (ex.: <ng-template #foo>)

            if (template.references && template.references.length) {
              var refs = this.prepareRefsArray(template.references);
              parameters.push(this.addToConsts(refs));
              parameters.push(importExpr(Identifiers$1.templateRefExtractor));
            } // Create the template function


            var templateVisitor = new TemplateDefinitionBuilder(this.constantPool, this._bindingScope, this.level + 1, contextName, this.i18n, templateIndex, templateName, this.directiveMatcher, this.directives, this.pipeTypeByName, this.pipes, this._namespace, this.fileBasedI18nSuffix, this.i18nUseExternalIds, this._constants); // Nested templates must not be visited until after their parent templates have completed
            // processing, so they are queued here until after the initial pass. Otherwise, we wouldn't
            // be able to support bindings in nested templates to local refs that occur after the
            // template definition. e.g. <div *ngIf="showing">{{ foo }}</div>  <div #foo></div>

            this._nestedTemplateFns.push(function () {
              var templateFunctionExpr = templateVisitor.buildTemplateFunction(template.children, template.variables, _this228._ngContentReservedSlots.length + _this228._ngContentSelectorsOffset, template.i18n);

              _this228.constantPool.statements.push(templateFunctionExpr.toDeclStmt(templateName));

              if (templateVisitor._ngContentReservedSlots.length) {
                var _this228$_ngContentRe;

                (_this228$_ngContentRe = _this228._ngContentReservedSlots).push.apply(_this228$_ngContentRe, _toConsumableArray(templateVisitor._ngContentReservedSlots));
              }
            }); // e.g. template(1, MyComp_Template_1)


            this.creationInstruction(template.sourceSpan, Identifiers$1.templateCreate, function () {
              parameters.splice(2, 0, literal(templateVisitor.getConstCount()), literal(templateVisitor.getVarCount()));
              return trimTrailingNulls(parameters);
            }); // handle property bindings e.g. ɵɵproperty('ngForOf', ctx.items), et al;

            this.templatePropertyBindings(templateIndex, template.templateAttrs); // Only add normal input/output binding instructions on explicit <ng-template> elements.

            if (template.tagName === NG_TEMPLATE_TAG_NAME) {
              var _partitionArray = partitionArray(template.inputs, hasI18nMeta),
                  _partitionArray2 = _slicedToArray(_partitionArray, 2),
                  i18nInputs = _partitionArray2[0],
                  inputs = _partitionArray2[1]; // Add i18n attributes that may act as inputs to directives. If such attributes are present,
              // generate `i18nAttributes` instruction. Note: we generate it only for explicit <ng-template>
              // elements, in case of inline templates, corresponding instructions will be generated in the
              // nested template function.


              if (i18nInputs.length > 0) {
                this.i18nAttributesInstruction(templateIndex, i18nInputs, (_a = template.startSourceSpan) !== null && _a !== void 0 ? _a : template.sourceSpan);
              } // Add the input bindings


              if (inputs.length > 0) {
                this.templatePropertyBindings(templateIndex, inputs);
              } // Generate listeners for directive output


              if (template.outputs.length > 0) {
                var listeners = template.outputs.map(function (outputAst) {
                  return {
                    sourceSpan: outputAst.sourceSpan,
                    params: _this228.prepareListenerParameter('ng_template', outputAst, templateIndex)
                  };
                });
                this.creationInstructionChain(Identifiers$1.listener, listeners);
              }
            }
          }
        }, {
          key: "visitBoundText",
          value: function visitBoundText(text) {
            var _this229 = this;

            if (this.i18n) {
              var _value5 = text.value.visit(this._valueConverter);

              this.allocateBindingSlots(_value5);

              if (_value5 instanceof Interpolation) {
                this.i18n.appendBoundText(text.i18n);
                this.i18nAppendBindings(_value5.expressions);
              }

              return;
            }

            var nodeIndex = this.allocateDataSlot();
            this.creationInstruction(text.sourceSpan, Identifiers$1.text, [literal(nodeIndex)]);
            var value = text.value.visit(this._valueConverter);
            this.allocateBindingSlots(value);

            if (value instanceof Interpolation) {
              this.updateInstructionWithAdvance(nodeIndex, text.sourceSpan, getTextInterpolationExpression(value), function () {
                return _this229.getUpdateInstructionArguments(value);
              });
            } else {
              error('Text nodes should be interpolated and never bound directly.');
            }
          }
        }, {
          key: "visitText",
          value: function visitText(text) {
            // when a text element is located within a translatable
            // block, we exclude this text element from instructions set,
            // since it will be captured in i18n content and processed at runtime
            if (!this.i18n) {
              this.creationInstruction(text.sourceSpan, Identifiers$1.text, [literal(this.allocateDataSlot()), literal(text.value)]);
            }
          }
        }, {
          key: "visitIcu",
          value: function visitIcu(icu) {
            var initWasInvoked = false; // if an ICU was created outside of i18n block, we still treat
            // it as a translatable entity and invoke i18nStart and i18nEnd
            // to generate i18n context and the necessary instructions

            if (!this.i18n) {
              initWasInvoked = true;
              this.i18nStart(null, icu.i18n, true);
            }

            var i18n = this.i18n;
            var vars = this.i18nBindProps(icu.vars);
            var placeholders = this.i18nBindProps(icu.placeholders); // output ICU directly and keep ICU reference in context

            var message = icu.i18n; // we always need post-processing function for ICUs, to make sure that:
            // - all placeholders in a form of {PLACEHOLDER} are replaced with actual values (note:
            // `goog.getMsg` does not process ICUs and uses the `{PLACEHOLDER}` format for placeholders
            // inside ICUs)
            // - all ICU vars (such as `VAR_SELECT` or `VAR_PLURAL`) are replaced with correct values

            var transformFn = function transformFn(raw) {
              var params = Object.assign(Object.assign({}, vars), placeholders);
              var formatted = i18nFormatPlaceholderNames(params,
              /* useCamelCase */
              false);
              return instruction(null, Identifiers$1.i18nPostprocess, [raw, mapLiteral(formatted, true)]);
            }; // in case the whole i18n message is a single ICU - we do not need to
            // create a separate top-level translation, we can use the root ref instead
            // and make this ICU a top-level translation
            // note: ICU placeholders are replaced with actual values in `i18nPostprocess` function
            // separately, so we do not pass placeholders into `i18nTranslate` function.


            if (isSingleI18nIcu(i18n.meta)) {
              this.i18nTranslate(message,
              /* placeholders */
              {}, i18n.ref, transformFn);
            } else {
              // output ICU directly and keep ICU reference in context
              var ref = this.i18nTranslate(message,
              /* placeholders */
              {},
              /* ref */
              undefined, transformFn);
              i18n.appendIcu(icuFromI18nMessage(message).name, ref);
            }

            if (initWasInvoked) {
              this.i18nEnd(null, true);
            }

            return null;
          }
        }, {
          key: "allocateDataSlot",
          value: function allocateDataSlot() {
            return this._dataIndex++;
          }
        }, {
          key: "getConstCount",
          value: function getConstCount() {
            return this._dataIndex;
          }
        }, {
          key: "getVarCount",
          value: function getVarCount() {
            return this._pureFunctionSlots;
          }
        }, {
          key: "getConsts",
          value: function getConsts() {
            return this._constants;
          }
        }, {
          key: "getNgContentSelectors",
          value: function getNgContentSelectors() {
            return this._ngContentReservedSlots.length ? this.constantPool.getConstLiteral(asLiteral(this._ngContentReservedSlots), true) : null;
          }
        }, {
          key: "bindingContext",
          value: function bindingContext() {
            return "".concat(this._bindingContext++);
          }
        }, {
          key: "templatePropertyBindings",
          value: function templatePropertyBindings(templateIndex, attrs) {
            var _this230 = this;

            var propertyBindings = [];
            attrs.forEach(function (input) {
              if (input instanceof BoundAttribute) {
                var _value6 = input.value.visit(_this230._valueConverter);

                if (_value6 !== undefined) {
                  _this230.allocateBindingSlots(_value6);

                  if (_value6 instanceof Interpolation) {
                    // Params typically contain attribute namespace and value sanitizer, which is applicable
                    // for regular HTML elements, but not applicable for <ng-template> (since props act as
                    // inputs to directives), so keep params array empty.
                    var params = []; // prop="{{value}}" case

                    _this230.interpolatedUpdateInstruction(getPropertyInterpolationExpression(_value6), templateIndex, input.name, input, _value6, params);
                  } else {
                    // [prop]="value" case
                    propertyBindings.push({
                      name: input.name,
                      sourceSpan: input.sourceSpan,
                      value: function value() {
                        return _this230.convertPropertyBinding(_value6);
                      }
                    });
                  }
                }
              }
            });

            if (propertyBindings.length > 0) {
              this.updateInstructionChainWithAdvance(templateIndex, Identifiers$1.property, propertyBindings);
            }
          } // Bindings must only be resolved after all local refs have been visited, so all
          // instructions are queued in callbacks that execute once the initial pass has completed.
          // Otherwise, we wouldn't be able to support local refs that are defined after their
          // bindings. e.g. {{ foo }} <div #foo></div>

        }, {
          key: "instructionFn",
          value: function instructionFn(fns, span, reference, paramsOrFn) {
            var prepend = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
            fns[prepend ? 'unshift' : 'push'](function () {
              var params = Array.isArray(paramsOrFn) ? paramsOrFn : paramsOrFn();
              return instruction(span, reference, params).toStmt();
            });
          }
        }, {
          key: "processStylingUpdateInstruction",
          value: function processStylingUpdateInstruction(elementIndex, instruction) {
            var _this231 = this;

            var allocateBindingSlots = 0;

            if (instruction) {
              var calls = [];
              instruction.calls.forEach(function (call) {
                allocateBindingSlots += call.allocateBindingSlots;
                calls.push({
                  sourceSpan: call.sourceSpan,
                  value: function value() {
                    return call.params(function (value) {
                      return call.supportsInterpolation && value instanceof Interpolation ? _this231.getUpdateInstructionArguments(value) : _this231.convertPropertyBinding(value);
                    });
                  }
                });
              });
              this.updateInstructionChainWithAdvance(elementIndex, instruction.reference, calls);
            }

            return allocateBindingSlots;
          }
        }, {
          key: "creationInstruction",
          value: function creationInstruction(span, reference, paramsOrFn, prepend) {
            this.instructionFn(this._creationCodeFns, span, reference, paramsOrFn || [], prepend);
          }
        }, {
          key: "creationInstructionChain",
          value: function creationInstructionChain(reference, calls) {
            var span = calls.length ? calls[0].sourceSpan : null;

            this._creationCodeFns.push(function () {
              return chainedInstruction(reference, calls.map(function (call) {
                return call.params();
              }), span).toStmt();
            });
          }
        }, {
          key: "updateInstructionWithAdvance",
          value: function updateInstructionWithAdvance(nodeIndex, span, reference, paramsOrFn) {
            this.addAdvanceInstructionIfNecessary(nodeIndex, span);
            this.updateInstruction(span, reference, paramsOrFn);
          }
        }, {
          key: "updateInstruction",
          value: function updateInstruction(span, reference, paramsOrFn) {
            this.instructionFn(this._updateCodeFns, span, reference, paramsOrFn || []);
          }
        }, {
          key: "updateInstructionChain",
          value: function updateInstructionChain(reference, bindings) {
            var span = bindings.length ? bindings[0].sourceSpan : null;

            this._updateCodeFns.push(function () {
              var calls = bindings.map(function (property) {
                var value = property.value();
                var fnParams = Array.isArray(value) ? value : [value];

                if (property.params) {
                  fnParams.push.apply(fnParams, _toConsumableArray(property.params));
                }

                if (property.name) {
                  // We want the property name to always be the first function parameter.
                  fnParams.unshift(literal(property.name));
                }

                return fnParams;
              });
              return chainedInstruction(reference, calls, span).toStmt();
            });
          }
        }, {
          key: "updateInstructionChainWithAdvance",
          value: function updateInstructionChainWithAdvance(nodeIndex, reference, bindings) {
            this.addAdvanceInstructionIfNecessary(nodeIndex, bindings.length ? bindings[0].sourceSpan : null);
            this.updateInstructionChain(reference, bindings);
          }
        }, {
          key: "addAdvanceInstructionIfNecessary",
          value: function addAdvanceInstructionIfNecessary(nodeIndex, span) {
            if (nodeIndex !== this._currentIndex) {
              var delta = nodeIndex - this._currentIndex;

              if (delta < 1) {
                throw new Error('advance instruction can only go forwards');
              }

              this.instructionFn(this._updateCodeFns, span, Identifiers$1.advance, [literal(delta)]);
              this._currentIndex = nodeIndex;
            }
          }
        }, {
          key: "allocatePureFunctionSlots",
          value: function allocatePureFunctionSlots(numSlots) {
            var originalSlots = this._pureFunctionSlots;
            this._pureFunctionSlots += numSlots;
            return originalSlots;
          }
        }, {
          key: "allocateBindingSlots",
          value: function allocateBindingSlots(value) {
            this._bindingSlots += value instanceof Interpolation ? value.expressions.length : 1;
          }
          /**
           * Gets an expression that refers to the implicit receiver. The implicit
           * receiver is always the root level context.
           */

        }, {
          key: "getImplicitReceiverExpr",
          value: function getImplicitReceiverExpr() {
            if (this._implicitReceiverExpr) {
              return this._implicitReceiverExpr;
            }

            return this._implicitReceiverExpr = this.level === 0 ? variable(CONTEXT_NAME) : this._bindingScope.getOrCreateSharedContextVar(0);
          }
        }, {
          key: "convertPropertyBinding",
          value: function convertPropertyBinding(value) {
            var _this$_tempVariables;

            var convertedPropertyBinding = _convertPropertyBinding(this, this.getImplicitReceiverExpr(), value, this.bindingContext(), BindingForm.Expression, function () {
              return error('Unexpected interpolation');
            });

            var valExpr = convertedPropertyBinding.currValExpr;

            (_this$_tempVariables = this._tempVariables).push.apply(_this$_tempVariables, _toConsumableArray(convertedPropertyBinding.stmts));

            return valExpr;
          }
          /**
           * Gets a list of argument expressions to pass to an update instruction expression. Also updates
           * the temp variables state with temp variables that were identified as needing to be created
           * while visiting the arguments.
           * @param value The original expression we will be resolving an arguments list from.
           */

        }, {
          key: "getUpdateInstructionArguments",
          value: function getUpdateInstructionArguments(value) {
            var _this$_tempVariables2;

            var _convertUpdateArgumen = convertUpdateArguments(this, this.getImplicitReceiverExpr(), value, this.bindingContext()),
                args = _convertUpdateArgumen.args,
                stmts = _convertUpdateArgumen.stmts;

            (_this$_tempVariables2 = this._tempVariables).push.apply(_this$_tempVariables2, _toConsumableArray(stmts));

            return args;
          }
        }, {
          key: "matchDirectives",
          value: function matchDirectives(elementName, elOrTpl) {
            var _this232 = this;

            if (this.directiveMatcher) {
              var selector = createCssSelector(elementName, getAttrsForDirectiveMatching(elOrTpl));
              this.directiveMatcher.match(selector, function (cssSelector, staticType) {
                _this232.directives.add(staticType);
              });
            }
          }
          /**
           * Prepares all attribute expression values for the `TAttributes` array.
           *
           * The purpose of this function is to properly construct an attributes array that
           * is passed into the `elementStart` (or just `element`) functions. Because there
           * are many different types of attributes, the array needs to be constructed in a
           * special way so that `elementStart` can properly evaluate them.
           *
           * The format looks like this:
           *
           * ```
           * attrs = [prop, value, prop2, value2,
           *   PROJECT_AS, selector,
           *   CLASSES, class1, class2,
           *   STYLES, style1, value1, style2, value2,
           *   BINDINGS, name1, name2, name3,
           *   TEMPLATE, name4, name5, name6,
           *   I18N, name7, name8, ...]
           * ```
           *
           * Note that this function will fully ignore all synthetic (@foo) attribute values
           * because those values are intended to always be generated as property instructions.
           */

        }, {
          key: "getAttributeExpressions",
          value: function getAttributeExpressions(elementName, renderAttributes, inputs, outputs, styles) {
            var templateAttrs = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : [];
            var boundI18nAttrs = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : [];
            var alreadySeen = new Set();
            var attrExprs = [];
            var ngProjectAsAttr;

            var _iterator19 = _createForOfIteratorHelper(renderAttributes),
                _step19;

            try {
              for (_iterator19.s(); !(_step19 = _iterator19.n()).done;) {
                var attr = _step19.value;

                if (attr.name === NG_PROJECT_AS_ATTR_NAME) {
                  ngProjectAsAttr = attr;
                } // Note that static i18n attributes aren't in the i18n array,
                // because they're treated in the same way as regular attributes.


                if (attr.i18n) {
                  attrExprs.push(literal(attr.name), this.i18nTranslate(attr.i18n));
                } else {
                  attrExprs.push.apply(attrExprs, _toConsumableArray(getAttributeNameLiterals(attr.name)).concat([trustedConstAttribute(elementName, attr)]));
                }
              } // Keep ngProjectAs next to the other name, value pairs so we can verify that we match
              // ngProjectAs marker in the attribute name slot.

            } catch (err) {
              _iterator19.e(err);
            } finally {
              _iterator19.f();
            }

            if (ngProjectAsAttr) {
              attrExprs.push.apply(attrExprs, _toConsumableArray(getNgProjectAsLiteral(ngProjectAsAttr)));
            }

            function addAttrExpr(key, value) {
              if (typeof key === 'string') {
                if (!alreadySeen.has(key)) {
                  attrExprs.push.apply(attrExprs, _toConsumableArray(getAttributeNameLiterals(key)));
                  value !== undefined && attrExprs.push(value);
                  alreadySeen.add(key);
                }
              } else {
                attrExprs.push(literal(key));
              }
            } // it's important that this occurs before BINDINGS and TEMPLATE because once `elementStart`
            // comes across the BINDINGS or TEMPLATE markers then it will continue reading each value as
            // as single property value cell by cell.


            if (styles) {
              styles.populateInitialStylingAttrs(attrExprs);
            }

            if (inputs.length || outputs.length) {
              var attrsLengthBeforeInputs = attrExprs.length;

              for (var i = 0; i < inputs.length; i++) {
                var input = inputs[i]; // We don't want the animation and attribute bindings in the
                // attributes array since they aren't used for directive matching.

                if (input.type !== 4
                /* Animation */
                && input.type !== 1
                /* Attribute */
                ) {
                  addAttrExpr(input.name);
                }
              }

              for (var _i10 = 0; _i10 < outputs.length; _i10++) {
                var output = outputs[_i10];

                if (output.type !== 1
                /* Animation */
                ) {
                  addAttrExpr(output.name);
                }
              } // this is a cheap way of adding the marker only after all the input/output
              // values have been filtered (by not including the animation ones) and added
              // to the expressions. The marker is important because it tells the runtime
              // code that this is where attributes without values start...


              if (attrExprs.length !== attrsLengthBeforeInputs) {
                attrExprs.splice(attrsLengthBeforeInputs, 0, literal(3
                /* Bindings */
                ));
              }
            }

            if (templateAttrs.length) {
              attrExprs.push(literal(4
              /* Template */
              ));
              templateAttrs.forEach(function (attr) {
                return addAttrExpr(attr.name);
              });
            }

            if (boundI18nAttrs.length) {
              attrExprs.push(literal(6
              /* I18n */
              ));
              boundI18nAttrs.forEach(function (attr) {
                return addAttrExpr(attr.name);
              });
            }

            return attrExprs;
          }
        }, {
          key: "addToConsts",
          value: function addToConsts(expression) {
            if (isNull(expression)) {
              return TYPED_NULL_EXPR;
            }

            var consts = this._constants.constExpressions; // Try to reuse a literal that's already in the array, if possible.

            for (var i = 0; i < consts.length; i++) {
              if (consts[i].isEquivalent(expression)) {
                return literal(i);
              }
            }

            return literal(consts.push(expression) - 1);
          }
        }, {
          key: "addAttrsToConsts",
          value: function addAttrsToConsts(attrs) {
            return attrs.length > 0 ? this.addToConsts(literalArr(attrs)) : TYPED_NULL_EXPR;
          }
        }, {
          key: "prepareRefsArray",
          value: function prepareRefsArray(references) {
            var _this233 = this;

            if (!references || references.length === 0) {
              return TYPED_NULL_EXPR;
            }

            var refsParam = flatten(references.map(function (reference) {
              var slot = _this233.allocateDataSlot(); // Generate the update temporary.


              var variableName = _this233._bindingScope.freshReferenceName();

              var retrievalLevel = _this233.level;
              var lhs = variable(variableName);

              _this233._bindingScope.set(retrievalLevel, reference.name, lhs, 0
              /* DEFAULT */
              , function (scope, relativeLevel) {
                // e.g. nextContext(2);
                var nextContextStmt = relativeLevel > 0 ? [generateNextContextExpr(relativeLevel).toStmt()] : []; // e.g. const $foo$ = reference(1);

                var refExpr = lhs.set(importExpr(Identifiers$1.reference).callFn([literal(slot)]));
                return nextContextStmt.concat(refExpr.toConstDecl());
              }, true);

              return [reference.name, reference.value];
            }));
            return asLiteral(refsParam);
          }
        }, {
          key: "prepareListenerParameter",
          value: function prepareListenerParameter(tagName, outputAst, index) {
            var _this234 = this;

            return function () {
              var eventName = outputAst.name;
              var bindingFnName = outputAst.type === 1
              /* Animation */
              ? // synthetic @listener.foo values are treated the exact same as are standard listeners
              prepareSyntheticListenerFunctionName(eventName, outputAst.phase) : sanitizeIdentifier(eventName);
              var handlerName = "".concat(_this234.templateName, "_").concat(tagName, "_").concat(bindingFnName, "_").concat(index, "_listener");

              var scope = _this234._bindingScope.nestedScope(_this234._bindingScope.bindingLevel, EVENT_BINDING_SCOPE_GLOBALS);

              return prepareEventListenerParameters(outputAst, handlerName, scope);
            };
          }
        }]);

        return TemplateDefinitionBuilder;
      }();

      var ValueConverter = /*#__PURE__*/function (_AstMemoryEfficientTr) {
        _inherits2(ValueConverter, _AstMemoryEfficientTr);

        var _super107 = _createSuper2(ValueConverter);

        function ValueConverter(constantPool, allocateSlot, allocatePureFunctionSlots, definePipe) {
          var _this235;

          _classCallCheck2(this, ValueConverter);

          _this235 = _super107.call(this);
          _this235.constantPool = constantPool;
          _this235.allocateSlot = allocateSlot;
          _this235.allocatePureFunctionSlots = allocatePureFunctionSlots;
          _this235.definePipe = definePipe;
          _this235._pipeBindExprs = [];
          return _this235;
        } // AstMemoryEfficientTransformer


        _createClass2(ValueConverter, [{
          key: "visitPipe",
          value: function visitPipe(pipe, context) {
            // Allocate a slot to create the pipe
            var slot = this.allocateSlot();
            var slotPseudoLocal = "PIPE:".concat(slot); // Allocate one slot for the result plus one slot per pipe argument

            var pureFunctionSlot = this.allocatePureFunctionSlots(2 + pipe.args.length);
            var target = new PropertyRead(pipe.span, pipe.sourceSpan, pipe.nameSpan, new ImplicitReceiver(pipe.span, pipe.sourceSpan), slotPseudoLocal);

            var _pipeBindingCallInfo = pipeBindingCallInfo(pipe.args),
                identifier = _pipeBindingCallInfo.identifier,
                isVarLength = _pipeBindingCallInfo.isVarLength;

            this.definePipe(pipe.name, slotPseudoLocal, slot, importExpr(identifier));
            var args = [pipe.exp].concat(_toConsumableArray(pipe.args));
            var convertedArgs = isVarLength ? this.visitAll([new LiteralArray(pipe.span, pipe.sourceSpan, args)]) : this.visitAll(args);
            var pipeBindExpr = new FunctionCall(pipe.span, pipe.sourceSpan, target, [new LiteralPrimitive(pipe.span, pipe.sourceSpan, slot), new LiteralPrimitive(pipe.span, pipe.sourceSpan, pureFunctionSlot)].concat(_toConsumableArray(convertedArgs)));

            this._pipeBindExprs.push(pipeBindExpr);

            return pipeBindExpr;
          }
        }, {
          key: "updatePipeSlotOffsets",
          value: function updatePipeSlotOffsets(bindingSlots) {
            this._pipeBindExprs.forEach(function (pipe) {
              // update the slot offset arg (index 1) to account for binding slots
              var slotOffset = pipe.args[1];
              slotOffset.value += bindingSlots;
            });
          }
        }, {
          key: "visitLiteralArray",
          value: function visitLiteralArray(array, context) {
            var _this236 = this;

            return new BuiltinFunctionCall(array.span, array.sourceSpan, this.visitAll(array.expressions), function (values) {
              // If the literal has calculated (non-literal) elements transform it into
              // calls to literal factories that compose the literal and will cache intermediate
              // values.
              var literal = literalArr(values);
              return getLiteralFactory(_this236.constantPool, literal, _this236.allocatePureFunctionSlots);
            });
          }
        }, {
          key: "visitLiteralMap",
          value: function visitLiteralMap(map, context) {
            var _this237 = this;

            return new BuiltinFunctionCall(map.span, map.sourceSpan, this.visitAll(map.values), function (values) {
              // If the literal has calculated (non-literal) elements  transform it into
              // calls to literal factories that compose the literal and will cache intermediate
              // values.
              var literal = literalMap(values.map(function (value, index) {
                return {
                  key: map.keys[index].key,
                  value: value,
                  quoted: map.keys[index].quoted
                };
              }));
              return getLiteralFactory(_this237.constantPool, literal, _this237.allocatePureFunctionSlots);
            });
          }
        }]);

        return ValueConverter;
      }(AstMemoryEfficientTransformer); // Pipes always have at least one parameter, the value they operate on


      var pipeBindingIdentifiers = [Identifiers$1.pipeBind1, Identifiers$1.pipeBind2, Identifiers$1.pipeBind3, Identifiers$1.pipeBind4];

      function pipeBindingCallInfo(args) {
        var identifier = pipeBindingIdentifiers[args.length];
        return {
          identifier: identifier || Identifiers$1.pipeBindV,
          isVarLength: !identifier
        };
      }

      var pureFunctionIdentifiers = [Identifiers$1.pureFunction0, Identifiers$1.pureFunction1, Identifiers$1.pureFunction2, Identifiers$1.pureFunction3, Identifiers$1.pureFunction4, Identifiers$1.pureFunction5, Identifiers$1.pureFunction6, Identifiers$1.pureFunction7, Identifiers$1.pureFunction8];

      function pureFunctionCallInfo(args) {
        var identifier = pureFunctionIdentifiers[args.length];
        return {
          identifier: identifier || Identifiers$1.pureFunctionV,
          isVarLength: !identifier
        };
      }

      function instruction(span, reference, params) {
        return importExpr(reference, null, span).callFn(params, span);
      } // e.g. x(2);


      function generateNextContextExpr(relativeLevelDiff) {
        return importExpr(Identifiers$1.nextContext).callFn(relativeLevelDiff > 1 ? [literal(relativeLevelDiff)] : []);
      }

      function getLiteralFactory(constantPool, literal$1, allocateSlots) {
        var _constantPool$getLite = constantPool.getLiteralFactory(literal$1),
            literalFactory = _constantPool$getLite.literalFactory,
            literalFactoryArguments = _constantPool$getLite.literalFactoryArguments; // Allocate 1 slot for the result plus 1 per argument


        var startSlot = allocateSlots(1 + literalFactoryArguments.length);

        var _pureFunctionCallInfo = pureFunctionCallInfo(literalFactoryArguments),
            identifier = _pureFunctionCallInfo.identifier,
            isVarLength = _pureFunctionCallInfo.isVarLength; // Literal factories are pure functions that only need to be re-invoked when the parameters
        // change.


        var args = [literal(startSlot), literalFactory];

        if (isVarLength) {
          args.push(literalArr(literalFactoryArguments));
        } else {
          args.push.apply(args, _toConsumableArray(literalFactoryArguments));
        }

        return importExpr(identifier).callFn(args);
      }
      /**
       * Gets an array of literals that can be added to an expression
       * to represent the name and namespace of an attribute. E.g.
       * `:xlink:href` turns into `[AttributeMarker.NamespaceURI, 'xlink', 'href']`.
       *
       * @param name Name of the attribute, including the namespace.
       */


      function getAttributeNameLiterals(name) {
        var _splitNsName5 = splitNsName(name),
            _splitNsName6 = _slicedToArray(_splitNsName5, 2),
            attributeNamespace = _splitNsName6[0],
            attributeName = _splitNsName6[1];

        var nameLiteral = literal(attributeName);

        if (attributeNamespace) {
          return [literal(0
          /* NamespaceURI */
          ), literal(attributeNamespace), nameLiteral];
        }

        return [nameLiteral];
      }
      /** The prefix used to get a shared context in BindingScope's map. */


      var SHARED_CONTEXT_KEY = '$$shared_ctx$$';

      var BindingScope = /*#__PURE__*/function () {
        function BindingScope() {
          var bindingLevel = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
          var parent = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
          var globals = arguments.length > 2 ? arguments[2] : undefined;

          _classCallCheck2(this, BindingScope);

          this.bindingLevel = bindingLevel;
          this.parent = parent;
          this.globals = globals;
          /** Keeps a map from local variables to their BindingData. */

          this.map = new Map();
          this.referenceNameIndex = 0;
          this.restoreViewVariable = null;

          if (globals !== undefined) {
            var _iterator20 = _createForOfIteratorHelper(globals),
                _step20;

            try {
              for (_iterator20.s(); !(_step20 = _iterator20.n()).done;) {
                var name = _step20.value;
                this.set(0, name, variable(name));
              }
            } catch (err) {
              _iterator20.e(err);
            } finally {
              _iterator20.f();
            }
          }
        }

        _createClass2(BindingScope, [{
          key: "get",
          value: function get(name) {
            var current = this;

            while (current) {
              var value = current.map.get(name);

              if (value != null) {
                if (current !== this) {
                  // make a local copy and reset the `declare` state
                  value = {
                    retrievalLevel: value.retrievalLevel,
                    lhs: value.lhs,
                    declareLocalCallback: value.declareLocalCallback,
                    declare: false,
                    priority: value.priority,
                    localRef: value.localRef
                  }; // Cache the value locally.

                  this.map.set(name, value); // Possibly generate a shared context var

                  this.maybeGenerateSharedContextVar(value);
                  this.maybeRestoreView(value.retrievalLevel, value.localRef);
                }

                if (value.declareLocalCallback && !value.declare) {
                  value.declare = true;
                }

                return value.lhs;
              }

              current = current.parent;
            } // If we get to this point, we are looking for a property on the top level component
            // - If level === 0, we are on the top and don't need to re-declare `ctx`.
            // - If level > 0, we are in an embedded view. We need to retrieve the name of the
            // local var we used to store the component context, e.g. const $comp$ = x();


            return this.bindingLevel === 0 ? null : this.getComponentProperty(name);
          }
          /**
           * Create a local variable for later reference.
           *
           * @param retrievalLevel The level from which this value can be retrieved
           * @param name Name of the variable.
           * @param lhs AST representing the left hand side of the `let lhs = rhs;`.
           * @param priority The sorting priority of this var
           * @param declareLocalCallback The callback to invoke when declaring this local var
           * @param localRef Whether or not this is a local ref
           */

        }, {
          key: "set",
          value: function set(retrievalLevel, name, lhs) {
            var priority = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
            var declareLocalCallback = arguments.length > 4 ? arguments[4] : undefined;
            var localRef = arguments.length > 5 ? arguments[5] : undefined;

            if (this.map.has(name)) {
              if (localRef) {
                // Do not throw an error if it's a local ref and do not update existing value,
                // so the first defined ref is always returned.
                return this;
              }

              error("The name ".concat(name, " is already defined in scope to be ").concat(this.map.get(name)));
            }

            this.map.set(name, {
              retrievalLevel: retrievalLevel,
              lhs: lhs,
              declare: false,
              declareLocalCallback: declareLocalCallback,
              priority: priority,
              localRef: localRef || false
            });
            return this;
          } // Implemented as part of LocalResolver.

        }, {
          key: "getLocal",
          value: function getLocal(name) {
            return this.get(name);
          } // Implemented as part of LocalResolver.

        }, {
          key: "notifyImplicitReceiverUse",
          value: function notifyImplicitReceiverUse() {
            if (this.bindingLevel !== 0) {
              // Since the implicit receiver is accessed in an embedded view, we need to
              // ensure that we declare a shared context variable for the current template
              // in the update variables.
              this.map.get(SHARED_CONTEXT_KEY + 0).declare = true;
            }
          }
        }, {
          key: "nestedScope",
          value: function nestedScope(level, globals) {
            var newScope = new BindingScope(level, this, globals);
            if (level > 0) newScope.generateSharedContextVar(0);
            return newScope;
          }
          /**
           * Gets or creates a shared context variable and returns its expression. Note that
           * this does not mean that the shared variable will be declared. Variables in the
           * binding scope will be only declared if they are used.
           */

        }, {
          key: "getOrCreateSharedContextVar",
          value: function getOrCreateSharedContextVar(retrievalLevel) {
            var bindingKey = SHARED_CONTEXT_KEY + retrievalLevel;

            if (!this.map.has(bindingKey)) {
              this.generateSharedContextVar(retrievalLevel);
            } // Shared context variables are always generated as "ReadVarExpr".


            return this.map.get(bindingKey).lhs;
          }
        }, {
          key: "getSharedContextName",
          value: function getSharedContextName(retrievalLevel) {
            var sharedCtxObj = this.map.get(SHARED_CONTEXT_KEY + retrievalLevel); // Shared context variables are always generated as "ReadVarExpr".

            return sharedCtxObj && sharedCtxObj.declare ? sharedCtxObj.lhs : null;
          }
        }, {
          key: "maybeGenerateSharedContextVar",
          value: function maybeGenerateSharedContextVar(value) {
            if (value.priority === 1
            /* CONTEXT */
            && value.retrievalLevel < this.bindingLevel) {
              var sharedCtxObj = this.map.get(SHARED_CONTEXT_KEY + value.retrievalLevel);

              if (sharedCtxObj) {
                sharedCtxObj.declare = true;
              } else {
                this.generateSharedContextVar(value.retrievalLevel);
              }
            }
          }
        }, {
          key: "generateSharedContextVar",
          value: function generateSharedContextVar(retrievalLevel) {
            var lhs = variable(CONTEXT_NAME + this.freshReferenceName());
            this.map.set(SHARED_CONTEXT_KEY + retrievalLevel, {
              retrievalLevel: retrievalLevel,
              lhs: lhs,
              declareLocalCallback: function declareLocalCallback(scope, relativeLevel) {
                // const ctx_r0 = nextContext(2);
                return [lhs.set(generateNextContextExpr(relativeLevel)).toConstDecl()];
              },
              declare: false,
              priority: 2
              /* SHARED_CONTEXT */
              ,
              localRef: false
            });
          }
        }, {
          key: "getComponentProperty",
          value: function getComponentProperty(name) {
            var componentValue = this.map.get(SHARED_CONTEXT_KEY + 0);
            componentValue.declare = true;
            this.maybeRestoreView(0, false);
            return componentValue.lhs.prop(name);
          }
        }, {
          key: "maybeRestoreView",
          value: function maybeRestoreView(retrievalLevel, localRefLookup) {
            // We want to restore the current view in listener fns if:
            // 1 - we are accessing a value in a parent view, which requires walking the view tree rather
            // than using the ctx arg. In this case, the retrieval and binding level will be different.
            // 2 - we are looking up a local ref, which requires restoring the view where the local
            // ref is stored
            if (this.isListenerScope() && (retrievalLevel < this.bindingLevel || localRefLookup)) {
              if (!this.parent.restoreViewVariable) {
                // parent saves variable to generate a shared `const $s$ = getCurrentView();` instruction
                this.parent.restoreViewVariable = variable(this.parent.freshReferenceName());
              }

              this.restoreViewVariable = this.parent.restoreViewVariable;
            }
          }
        }, {
          key: "restoreViewStatement",
          value: function restoreViewStatement() {
            // restoreView($state$);
            return this.restoreViewVariable ? [instruction(null, Identifiers$1.restoreView, [this.restoreViewVariable]).toStmt()] : [];
          }
        }, {
          key: "viewSnapshotStatements",
          value: function viewSnapshotStatements() {
            // const $state$ = getCurrentView();
            var getCurrentViewInstruction = instruction(null, Identifiers$1.getCurrentView, []);
            return this.restoreViewVariable ? [this.restoreViewVariable.set(getCurrentViewInstruction).toConstDecl()] : [];
          }
        }, {
          key: "isListenerScope",
          value: function isListenerScope() {
            return this.parent && this.parent.bindingLevel === this.bindingLevel;
          }
        }, {
          key: "variableDeclarations",
          value: function variableDeclarations() {
            var _this238 = this;

            var currentContextLevel = 0;
            return Array.from(this.map.values()).filter(function (value) {
              return value.declare;
            }).sort(function (a, b) {
              return b.retrievalLevel - a.retrievalLevel || b.priority - a.priority;
            }).reduce(function (stmts, value) {
              var levelDiff = _this238.bindingLevel - value.retrievalLevel;
              var currStmts = value.declareLocalCallback(_this238, levelDiff - currentContextLevel);
              currentContextLevel = levelDiff;
              return stmts.concat(currStmts);
            }, []);
          }
        }, {
          key: "freshReferenceName",
          value: function freshReferenceName() {
            var current = this; // Find the top scope as it maintains the global reference count

            while (current.parent) {
              current = current.parent;
            }

            var ref = "".concat(REFERENCE_PREFIX).concat(current.referenceNameIndex++);
            return ref;
          }
        }], [{
          key: "createRootScope",
          value: function createRootScope() {
            return new BindingScope();
          }
        }]);

        return BindingScope;
      }();
      /**
       * Creates a `CssSelector` given a tag name and a map of attributes
       */


      function createCssSelector(elementName, attributes) {
        var cssSelector = new CssSelector();
        var elementNameNoNs = splitNsName(elementName)[1];
        cssSelector.setElement(elementNameNoNs);
        Object.getOwnPropertyNames(attributes).forEach(function (name) {
          var nameNoNs = splitNsName(name)[1];
          var value = attributes[name];
          cssSelector.addAttribute(nameNoNs, value);

          if (name.toLowerCase() === 'class') {
            var classes = value.trim().split(/\s+/);
            classes.forEach(function (className) {
              return cssSelector.addClassName(className);
            });
          }
        });
        return cssSelector;
      }
      /**
       * Creates an array of expressions out of an `ngProjectAs` attributes
       * which can be added to the instruction parameters.
       */


      function getNgProjectAsLiteral(attribute) {
        // Parse the attribute value into a CssSelectorList. Note that we only take the
        // first selector, because we don't support multiple selectors in ngProjectAs.
        var parsedR3Selector = parseSelectorToR3Selector(attribute.value)[0];
        return [literal(5
        /* ProjectAs */
        ), asLiteral(parsedR3Selector)];
      }
      /**
       * Gets the instruction to generate for an interpolated property
       * @param interpolation An Interpolation AST
       */


      function getPropertyInterpolationExpression(interpolation) {
        switch (getInterpolationArgsLength(interpolation)) {
          case 1:
            return Identifiers$1.propertyInterpolate;

          case 3:
            return Identifiers$1.propertyInterpolate1;

          case 5:
            return Identifiers$1.propertyInterpolate2;

          case 7:
            return Identifiers$1.propertyInterpolate3;

          case 9:
            return Identifiers$1.propertyInterpolate4;

          case 11:
            return Identifiers$1.propertyInterpolate5;

          case 13:
            return Identifiers$1.propertyInterpolate6;

          case 15:
            return Identifiers$1.propertyInterpolate7;

          case 17:
            return Identifiers$1.propertyInterpolate8;

          default:
            return Identifiers$1.propertyInterpolateV;
        }
      }
      /**
       * Gets the instruction to generate for an interpolated attribute
       * @param interpolation An Interpolation AST
       */


      function getAttributeInterpolationExpression(interpolation) {
        switch (getInterpolationArgsLength(interpolation)) {
          case 3:
            return Identifiers$1.attributeInterpolate1;

          case 5:
            return Identifiers$1.attributeInterpolate2;

          case 7:
            return Identifiers$1.attributeInterpolate3;

          case 9:
            return Identifiers$1.attributeInterpolate4;

          case 11:
            return Identifiers$1.attributeInterpolate5;

          case 13:
            return Identifiers$1.attributeInterpolate6;

          case 15:
            return Identifiers$1.attributeInterpolate7;

          case 17:
            return Identifiers$1.attributeInterpolate8;

          default:
            return Identifiers$1.attributeInterpolateV;
        }
      }
      /**
       * Gets the instruction to generate for interpolated text.
       * @param interpolation An Interpolation AST
       */


      function getTextInterpolationExpression(interpolation) {
        switch (getInterpolationArgsLength(interpolation)) {
          case 1:
            return Identifiers$1.textInterpolate;

          case 3:
            return Identifiers$1.textInterpolate1;

          case 5:
            return Identifiers$1.textInterpolate2;

          case 7:
            return Identifiers$1.textInterpolate3;

          case 9:
            return Identifiers$1.textInterpolate4;

          case 11:
            return Identifiers$1.textInterpolate5;

          case 13:
            return Identifiers$1.textInterpolate6;

          case 15:
            return Identifiers$1.textInterpolate7;

          case 17:
            return Identifiers$1.textInterpolate8;

          default:
            return Identifiers$1.textInterpolateV;
        }
      }
      /**
       * Parse a template into render3 `Node`s and additional metadata, with no other dependencies.
       *
       * @param template text of the template to parse
       * @param templateUrl URL to use for source mapping of the parsed template
       * @param options options to modify how the template is parsed
       */


      function parseTemplate(template, templateUrl) {
        var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
        var interpolationConfig = options.interpolationConfig,
            preserveWhitespaces = options.preserveWhitespaces,
            enableI18nLegacyMessageIdFormat = options.enableI18nLegacyMessageIdFormat;
        var bindingParser = makeBindingParser(interpolationConfig);
        var htmlParser = new HtmlParser();
        var parseResult = htmlParser.parse(template, templateUrl, Object.assign(Object.assign({
          leadingTriviaChars: LEADING_TRIVIA_CHARS
        }, options), {
          tokenizeExpansionForms: true
        }));

        if (parseResult.errors && parseResult.errors.length > 0) {
          // TODO(ayazhafiz): we may not always want to bail out at this point (e.g. in
          // the context of a language service).
          return {
            interpolationConfig: interpolationConfig,
            preserveWhitespaces: preserveWhitespaces,
            template: template,
            errors: parseResult.errors,
            nodes: [],
            styleUrls: [],
            styles: [],
            ngContentSelectors: []
          };
        }

        var rootNodes = parseResult.rootNodes; // process i18n meta information (scan attributes, generate ids)
        // before we run whitespace removal process, because existing i18n
        // extraction process (ng extract-i18n) relies on a raw content to generate
        // message ids

        var i18nMetaVisitor = new I18nMetaVisitor(interpolationConfig,
        /* keepI18nAttrs */
        !preserveWhitespaces, enableI18nLegacyMessageIdFormat);
        rootNodes = visitAll$1(i18nMetaVisitor, rootNodes);

        if (!preserveWhitespaces) {
          rootNodes = visitAll$1(new WhitespaceVisitor(), rootNodes); // run i18n meta visitor again in case whitespaces are removed (because that might affect
          // generated i18n message content) and first pass indicated that i18n content is present in a
          // template. During this pass i18n IDs generated at the first pass will be preserved, so we can
          // mimic existing extraction process (ng extract-i18n)

          if (i18nMetaVisitor.hasI18nMeta) {
            rootNodes = visitAll$1(new I18nMetaVisitor(interpolationConfig,
            /* keepI18nAttrs */
            false), rootNodes);
          }
        }

        var _htmlAstToRender3Ast = htmlAstToRender3Ast(rootNodes, bindingParser),
            nodes = _htmlAstToRender3Ast.nodes,
            errors = _htmlAstToRender3Ast.errors,
            styleUrls = _htmlAstToRender3Ast.styleUrls,
            styles = _htmlAstToRender3Ast.styles,
            ngContentSelectors = _htmlAstToRender3Ast.ngContentSelectors;

        return {
          interpolationConfig: interpolationConfig,
          preserveWhitespaces: preserveWhitespaces,
          errors: errors.length > 0 ? errors : null,
          template: template,
          nodes: nodes,
          styleUrls: styleUrls,
          styles: styles,
          ngContentSelectors: ngContentSelectors
        };
      }

      var elementRegistry = new DomElementSchemaRegistry();
      /**
       * Construct a `BindingParser` with a default configuration.
       */

      function makeBindingParser() {
        var interpolationConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : DEFAULT_INTERPOLATION_CONFIG;
        return new BindingParser(new IvyParser(new Lexer()), interpolationConfig, elementRegistry, null, []);
      }

      function resolveSanitizationFn(context, isAttribute) {
        switch (context) {
          case SecurityContext.HTML:
            return importExpr(Identifiers$1.sanitizeHtml);

          case SecurityContext.SCRIPT:
            return importExpr(Identifiers$1.sanitizeScript);

          case SecurityContext.STYLE:
            // the compiler does not fill in an instruction for [style.prop?] binding
            // values because the style algorithm knows internally what props are subject
            // to sanitization (only [attr.style] values are explicitly sanitized)
            return isAttribute ? importExpr(Identifiers$1.sanitizeStyle) : null;

          case SecurityContext.URL:
            return importExpr(Identifiers$1.sanitizeUrl);

          case SecurityContext.RESOURCE_URL:
            return importExpr(Identifiers$1.sanitizeResourceUrl);

          default:
            return null;
        }
      }

      function trustedConstAttribute(tagName, attr) {
        var value = asLiteral(attr.value);

        switch (elementRegistry.securityContext(tagName, attr.name,
        /* isAttribute */
        true)) {
          case SecurityContext.HTML:
            return importExpr(Identifiers$1.trustConstantHtml).callFn([value], attr.valueSpan);

          case SecurityContext.SCRIPT:
            return importExpr(Identifiers$1.trustConstantScript).callFn([value], attr.valueSpan);

          case SecurityContext.RESOURCE_URL:
            return importExpr(Identifiers$1.trustConstantResourceUrl).callFn([value], attr.valueSpan);

          default:
            return value;
        }
      }

      function isSingleElementTemplate(children) {
        return children.length === 1 && children[0] instanceof Element;
      }

      function isTextNode(node) {
        return node instanceof Text || node instanceof BoundText || node instanceof Icu;
      }

      function hasTextChildrenOnly(children) {
        return children.every(isTextNode);
      }
      /** Name of the global variable that is used to determine if we use Closure translations or not */


      var NG_I18N_CLOSURE_MODE = 'ngI18nClosureMode';
      /**
       * Generate statements that define a given translation message.
       *
       * ```
       * var I18N_1;
       * if (typeof ngI18nClosureMode !== undefined && ngI18nClosureMode) {
       *     var MSG_EXTERNAL_XXX = goog.getMsg(
       *          "Some message with {$interpolation}!",
       *          { "interpolation": "\uFFFD0\uFFFD" }
       *     );
       *     I18N_1 = MSG_EXTERNAL_XXX;
       * }
       * else {
       *     I18N_1 = $localize`Some message with ${'\uFFFD0\uFFFD'}!`;
       * }
       * ```
       *
       * @param message The original i18n AST message node
       * @param variable The variable that will be assigned the translation, e.g. `I18N_1`.
       * @param closureVar The variable for Closure `goog.getMsg` calls, e.g. `MSG_EXTERNAL_XXX`.
       * @param params Object mapping placeholder names to their values (e.g.
       * `{ "interpolation": "\uFFFD0\uFFFD" }`).
       * @param transformFn Optional transformation function that will be applied to the translation (e.g.
       * post-processing).
       * @returns An array of statements that defined a given translation.
       */

      function getTranslationDeclStmts(message, variable, closureVar) {
        var params = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
        var transformFn = arguments.length > 4 ? arguments[4] : undefined;
        var statements = [declareI18nVariable(variable), ifStmt(createClosureModeGuard(), createGoogleGetMsgStatements(variable, message, closureVar, i18nFormatPlaceholderNames(params,
        /* useCamelCase */
        true)), createLocalizeStatements(variable, message, i18nFormatPlaceholderNames(params,
        /* useCamelCase */
        false)))];

        if (transformFn) {
          statements.push(new ExpressionStatement(variable.set(transformFn(variable))));
        }

        return statements;
      }
      /**
       * Create the expression that will be used to guard the closure mode block
       * It is equivalent to:
       *
       * ```
       * typeof ngI18nClosureMode !== undefined && ngI18nClosureMode
       * ```
       */


      function createClosureModeGuard() {
        return typeofExpr(variable(NG_I18N_CLOSURE_MODE)).notIdentical(literal('undefined', STRING_TYPE)).and(variable(NG_I18N_CLOSURE_MODE));
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var EMPTY_ARRAY = []; // This regex matches any binding names that contain the "attr." prefix, e.g. "attr.required"
      // If there is a match, the first matching group will contain the attribute name to bind.

      var ATTR_REGEX = /attr\.([^\]]+)/;

      function baseDirectiveFields(meta, constantPool, bindingParser) {
        var definitionMap = new DefinitionMap();
        var selectors = parseSelectorToR3Selector(meta.selector); // e.g. `type: MyDirective`

        definitionMap.set('type', meta.internalType); // e.g. `selectors: [['', 'someDir', '']]`

        if (selectors.length > 0) {
          definitionMap.set('selectors', asLiteral(selectors));
        }

        if (meta.queries.length > 0) {
          // e.g. `contentQueries: (rf, ctx, dirIndex) => { ... }
          definitionMap.set('contentQueries', createContentQueriesFunction(meta.queries, constantPool, meta.name));
        }

        if (meta.viewQueries.length) {
          definitionMap.set('viewQuery', createViewQueriesFunction(meta.viewQueries, constantPool, meta.name));
        } // e.g. `hostBindings: (rf, ctx) => { ... }


        definitionMap.set('hostBindings', createHostBindingsFunction(meta.host, meta.typeSourceSpan, bindingParser, constantPool, meta.selector || '', meta.name, definitionMap)); // e.g 'inputs: {a: 'a'}`

        definitionMap.set('inputs', conditionallyCreateMapObjectLiteral(meta.inputs, true)); // e.g 'outputs: {a: 'a'}`

        definitionMap.set('outputs', conditionallyCreateMapObjectLiteral(meta.outputs));

        if (meta.exportAs !== null) {
          definitionMap.set('exportAs', literalArr(meta.exportAs.map(function (e) {
            return literal(e);
          })));
        }

        return definitionMap;
      }
      /**
       * Add features to the definition map.
       */


      function addFeatures(definitionMap, meta) {
        // e.g. `features: [NgOnChangesFeature]`
        var features = [];
        var providers = meta.providers;
        var viewProviders = meta.viewProviders;

        if (providers || viewProviders) {
          var args = [providers || new LiteralArrayExpr([])];

          if (viewProviders) {
            args.push(viewProviders);
          }

          features.push(importExpr(Identifiers$1.ProvidersFeature).callFn(args));
        }

        if (meta.usesInheritance) {
          features.push(importExpr(Identifiers$1.InheritDefinitionFeature));
        }

        if (meta.fullInheritance) {
          features.push(importExpr(Identifiers$1.CopyDefinitionFeature));
        }

        if (meta.lifecycle.usesOnChanges) {
          features.push(importExpr(Identifiers$1.NgOnChangesFeature));
        }

        if (features.length) {
          definitionMap.set('features', literalArr(features));
        }
      }
      /**
       * Compile a directive for the render3 runtime as defined by the `R3DirectiveMetadata`.
       */


      function compileDirectiveFromMetadata(meta, constantPool, bindingParser) {
        var definitionMap = baseDirectiveFields(meta, constantPool, bindingParser);
        addFeatures(definitionMap, meta);
        var expression = importExpr(Identifiers$1.defineDirective).callFn([definitionMap.toLiteralMap()]);
        var typeParams = createDirectiveTypeParams(meta);
        var type = expressionType(importExpr(Identifiers$1.DirectiveDefWithMeta, typeParams));
        return {
          expression: expression,
          type: type
        };
      }
      /**
       * Compile a component for the render3 runtime as defined by the `R3ComponentMetadata`.
       */


      function compileComponentFromMetadata(meta, constantPool, bindingParser) {
        var definitionMap = baseDirectiveFields(meta, constantPool, bindingParser);
        addFeatures(definitionMap, meta);
        var selector = meta.selector && CssSelector.parse(meta.selector);
        var firstSelector = selector && selector[0]; // e.g. `attr: ["class", ".my.app"]`
        // This is optional an only included if the first selector of a component specifies attributes.

        if (firstSelector) {
          var selectorAttributes = firstSelector.getAttrs();

          if (selectorAttributes.length) {
            definitionMap.set('attrs', constantPool.getConstLiteral(literalArr(selectorAttributes.map(function (value) {
              return value != null ? literal(value) : literal(undefined);
            })),
            /* forceShared */
            true));
          }
        } // Generate the CSS matcher that recognize directive


        var directiveMatcher = null;

        if (meta.directives.length > 0) {
          var matcher = new SelectorMatcher();

          var _iterator21 = _createForOfIteratorHelper(meta.directives),
              _step21;

          try {
            for (_iterator21.s(); !(_step21 = _iterator21.n()).done;) {
              var _step21$value = _step21.value,
                  _selector = _step21$value.selector,
                  _expression = _step21$value.expression;
              matcher.addSelectables(CssSelector.parse(_selector), _expression);
            }
          } catch (err) {
            _iterator21.e(err);
          } finally {
            _iterator21.f();
          }

          directiveMatcher = matcher;
        } // e.g. `template: function MyComponent_Template(_ctx, _cm) {...}`


        var templateTypeName = meta.name;
        var templateName = templateTypeName ? "".concat(templateTypeName, "_Template") : null;
        var directivesUsed = new Set();
        var pipesUsed = new Set();
        var changeDetection = meta.changeDetection;
        var template = meta.template;
        var templateBuilder = new TemplateDefinitionBuilder(constantPool, BindingScope.createRootScope(), 0, templateTypeName, null, null, templateName, directiveMatcher, directivesUsed, meta.pipes, pipesUsed, Identifiers$1.namespaceHTML, meta.relativeContextFilePath, meta.i18nUseExternalIds);
        var templateFunctionExpression = templateBuilder.buildTemplateFunction(template.nodes, []); // We need to provide this so that dynamically generated components know what
        // projected content blocks to pass through to the component when it is instantiated.

        var ngContentSelectors = templateBuilder.getNgContentSelectors();

        if (ngContentSelectors) {
          definitionMap.set('ngContentSelectors', ngContentSelectors);
        } // e.g. `decls: 2`


        definitionMap.set('decls', literal(templateBuilder.getConstCount())); // e.g. `vars: 2`

        definitionMap.set('vars', literal(templateBuilder.getVarCount())); // Generate `consts` section of ComponentDef:
        // - either as an array:
        //   `consts: [['one', 'two'], ['three', 'four']]`
        // - or as a factory function in case additional statements are present (to support i18n):
        //   `consts: function() { var i18n_0; if (ngI18nClosureMode) {...} else {...} return [i18n_0]; }`

        var _templateBuilder$getC = templateBuilder.getConsts(),
            constExpressions = _templateBuilder$getC.constExpressions,
            prepareStatements = _templateBuilder$getC.prepareStatements;

        if (constExpressions.length > 0) {
          var constsExpr = literalArr(constExpressions); // Prepare statements are present - turn `consts` into a function.

          if (prepareStatements.length > 0) {
            constsExpr = fn([], [].concat(_toConsumableArray(prepareStatements), [new ReturnStatement(constsExpr)]));
          }

          definitionMap.set('consts', constsExpr);
        }

        definitionMap.set('template', templateFunctionExpression); // e.g. `directives: [MyDirective]`

        if (directivesUsed.size) {
          var directivesExpr = literalArr(Array.from(directivesUsed));

          if (meta.wrapDirectivesAndPipesInClosure) {
            directivesExpr = fn([], [new ReturnStatement(directivesExpr)]);
          }

          definitionMap.set('directives', directivesExpr);
        } // e.g. `pipes: [MyPipe]`


        if (pipesUsed.size) {
          var pipesExpr = literalArr(Array.from(pipesUsed));

          if (meta.wrapDirectivesAndPipesInClosure) {
            pipesExpr = fn([], [new ReturnStatement(pipesExpr)]);
          }

          definitionMap.set('pipes', pipesExpr);
        }

        if (meta.encapsulation === null) {
          meta.encapsulation = ViewEncapsulation.Emulated;
        } // e.g. `styles: [str1, str2]`


        if (meta.styles && meta.styles.length) {
          var styleValues = meta.encapsulation == ViewEncapsulation.Emulated ? compileStyles(meta.styles, CONTENT_ATTR, HOST_ATTR) : meta.styles;
          var strings = styleValues.map(function (str) {
            return constantPool.getConstLiteral(literal(str));
          });
          definitionMap.set('styles', literalArr(strings));
        } else if (meta.encapsulation === ViewEncapsulation.Emulated) {
          // If there is no style, don't generate css selectors on elements
          meta.encapsulation = ViewEncapsulation.None;
        } // Only set view encapsulation if it's not the default value


        if (meta.encapsulation !== ViewEncapsulation.Emulated) {
          definitionMap.set('encapsulation', literal(meta.encapsulation));
        } // e.g. `animation: [trigger('123', [])]`


        if (meta.animations !== null) {
          definitionMap.set('data', literalMap([{
            key: 'animation',
            value: meta.animations,
            quoted: false
          }]));
        } // Only set the change detection flag if it's defined and it's not the default.


        if (changeDetection != null && changeDetection !== ChangeDetectionStrategy.Default) {
          definitionMap.set('changeDetection', literal(changeDetection));
        }

        var expression = importExpr(Identifiers$1.defineComponent).callFn([definitionMap.toLiteralMap()]);
        var typeParams = createDirectiveTypeParams(meta);
        typeParams.push(stringArrayAsType(meta.template.ngContentSelectors));
        var type = expressionType(importExpr(Identifiers$1.ComponentDefWithMeta, typeParams));
        return {
          expression: expression,
          type: type
        };
      }
      /**
       * A wrapper around `compileDirective` which depends on render2 global analysis data as its input
       * instead of the `R3DirectiveMetadata`.
       *
       * `R3DirectiveMetadata` is computed from `CompileDirectiveMetadata` and other statically reflected
       * information.
       */


      function compileDirectiveFromRender2(outputCtx, directive, reflector, bindingParser) {
        var name = identifierName(directive.type);
        name || error("Cannot resolver the name of ".concat(directive.type));
        var definitionField = outputCtx.constantPool.propertyNameOf(1
        /* Directive */
        );
        var meta = directiveMetadataFromGlobalMetadata(directive, outputCtx, reflector);
        var res = compileDirectiveFromMetadata(meta, outputCtx.constantPool, bindingParser);
        var factoryRes = compileFactoryFunction(Object.assign(Object.assign({}, meta), {
          injectFn: Identifiers$1.directiveInject,
          target: R3FactoryTarget.Directive
        }));
        var ngFactoryDefStatement = new ClassStmt(name, null, [new ClassField('ɵfac', INFERRED_TYPE, [StmtModifier.Static], factoryRes.factory)], [], new ClassMethod(null, [], []), []);
        var directiveDefStatement = new ClassStmt(name, null, [new ClassField(definitionField, INFERRED_TYPE, [StmtModifier.Static], res.expression)], [], new ClassMethod(null, [], []), []); // Create the partial class to be merged with the actual class.

        outputCtx.statements.push(ngFactoryDefStatement, directiveDefStatement);
      }
      /**
       * A wrapper around `compileComponent` which depends on render2 global analysis data as its input
       * instead of the `R3DirectiveMetadata`.
       *
       * `R3ComponentMetadata` is computed from `CompileDirectiveMetadata` and other statically reflected
       * information.
       */


      function compileComponentFromRender2(outputCtx, component, render3Ast, reflector, bindingParser, directiveTypeBySel, pipeTypeByName) {
        var name = identifierName(component.type);
        name || error("Cannot resolver the name of ".concat(component.type));
        var definitionField = outputCtx.constantPool.propertyNameOf(2
        /* Component */
        );
        var summary = component.toSummary(); // Compute the R3ComponentMetadata from the CompileDirectiveMetadata

        var meta = Object.assign(Object.assign({}, directiveMetadataFromGlobalMetadata(component, outputCtx, reflector)), {
          selector: component.selector,
          template: {
            nodes: render3Ast.nodes,
            ngContentSelectors: render3Ast.ngContentSelectors
          },
          directives: [],
          pipes: typeMapToExpressionMap(pipeTypeByName, outputCtx),
          viewQueries: queriesFromGlobalMetadata(component.viewQueries, outputCtx),
          wrapDirectivesAndPipesInClosure: false,
          styles: summary.template && summary.template.styles || EMPTY_ARRAY,
          encapsulation: summary.template && summary.template.encapsulation || ViewEncapsulation.Emulated,
          interpolation: DEFAULT_INTERPOLATION_CONFIG,
          animations: null,
          viewProviders: component.viewProviders.length > 0 ? new WrappedNodeExpr(component.viewProviders) : null,
          relativeContextFilePath: '',
          i18nUseExternalIds: true
        });
        var res = compileComponentFromMetadata(meta, outputCtx.constantPool, bindingParser);
        var factoryRes = compileFactoryFunction(Object.assign(Object.assign({}, meta), {
          injectFn: Identifiers$1.directiveInject,
          target: R3FactoryTarget.Directive
        }));
        var ngFactoryDefStatement = new ClassStmt(name, null, [new ClassField('ɵfac', INFERRED_TYPE, [StmtModifier.Static], factoryRes.factory)], [], new ClassMethod(null, [], []), []);
        var componentDefStatement = new ClassStmt(name, null, [new ClassField(definitionField, INFERRED_TYPE, [StmtModifier.Static], res.expression)], [], new ClassMethod(null, [], []), []); // Create the partial class to be merged with the actual class.

        outputCtx.statements.push(ngFactoryDefStatement, componentDefStatement);
      }
      /**
       * Compute `R3DirectiveMetadata` given `CompileDirectiveMetadata` and a `CompileReflector`.
       */


      function directiveMetadataFromGlobalMetadata(directive, outputCtx, reflector) {
        // The global-analysis based Ivy mode in ngc is no longer utilized/supported.
        throw new Error('unsupported');
      }
      /**
       * Convert `CompileQueryMetadata` into `R3QueryMetadata`.
       */


      function queriesFromGlobalMetadata(queries, outputCtx) {
        return queries.map(function (query) {
          var read = null;

          if (query.read && query.read.identifier) {
            read = outputCtx.importExpr(query.read.identifier.reference);
          }

          return {
            propertyName: query.propertyName,
            first: query.first,
            predicate: selectorsFromGlobalMetadata(query.selectors, outputCtx),
            descendants: query.descendants,
            read: read,
            "static": !!query["static"]
          };
        });
      }
      /**
       * Convert `CompileTokenMetadata` for query selectors into either an expression for a predicate
       * type, or a list of string predicates.
       */


      function selectorsFromGlobalMetadata(selectors, outputCtx) {
        if (selectors.length > 1 || selectors.length == 1 && selectors[0].value) {
          var selectorStrings = selectors.map(function (value) {
            return value.value;
          });
          selectorStrings.some(function (value) {
            return !value;
          }) && error('Found a type among the string selectors expected');
          return outputCtx.constantPool.getConstLiteral(literalArr(selectorStrings.map(function (value) {
            return literal(value);
          })));
        }

        if (selectors.length == 1) {
          var first = selectors[0];

          if (first.identifier) {
            return outputCtx.importExpr(first.identifier.reference);
          }
        }

        error('Unexpected query form');
        return NULL_EXPR;
      }

      function prepareQueryParams(query, constantPool) {
        var parameters = [getQueryPredicate(query, constantPool), literal(query.descendants)];

        if (query.read) {
          parameters.push(query.read);
        }

        return parameters;
      }

      function convertAttributesToExpressions(attributes) {
        var values = [];

        var _iterator22 = _createForOfIteratorHelper(Object.getOwnPropertyNames(attributes)),
            _step22;

        try {
          for (_iterator22.s(); !(_step22 = _iterator22.n()).done;) {
            var key = _step22.value;
            var value = attributes[key];
            values.push(literal(key), value);
          }
        } catch (err) {
          _iterator22.e(err);
        } finally {
          _iterator22.f();
        }

        return values;
      } // Define and update any content queries


      function createContentQueriesFunction(queries, constantPool, name) {
        var createStatements = [];
        var updateStatements = [];
        var tempAllocator = temporaryAllocator(updateStatements, TEMPORARY_NAME);

        var _iterator23 = _createForOfIteratorHelper(queries),
            _step23;

        try {
          for (_iterator23.s(); !(_step23 = _iterator23.n()).done;) {
            var query = _step23.value;
            var queryInstruction = query["static"] ? Identifiers$1.staticContentQuery : Identifiers$1.contentQuery; // creation, e.g. r3.contentQuery(dirIndex, somePredicate, true, null);

            createStatements.push(importExpr(queryInstruction).callFn([variable('dirIndex')].concat(_toConsumableArray(prepareQueryParams(query, constantPool)))).toStmt()); // update, e.g. (r3.queryRefresh(tmp = r3.loadQuery()) && (ctx.someDir = tmp));

            var temporary = tempAllocator();
            var getQueryList = importExpr(Identifiers$1.loadQuery).callFn([]);
            var refresh = importExpr(Identifiers$1.queryRefresh).callFn([temporary.set(getQueryList)]);
            var updateDirective = variable(CONTEXT_NAME).prop(query.propertyName).set(query.first ? temporary.prop('first') : temporary);
            updateStatements.push(refresh.and(updateDirective).toStmt());
          }
        } catch (err) {
          _iterator23.e(err);
        } finally {
          _iterator23.f();
        }

        var contentQueriesFnName = name ? "".concat(name, "_ContentQueries") : null;
        return fn([new FnParam(RENDER_FLAGS, NUMBER_TYPE), new FnParam(CONTEXT_NAME, null), new FnParam('dirIndex', null)], [renderFlagCheckIfStmt(1
        /* Create */
        , createStatements), renderFlagCheckIfStmt(2
        /* Update */
        , updateStatements)], INFERRED_TYPE, null, contentQueriesFnName);
      }

      function stringAsType(str) {
        return expressionType(literal(str));
      }

      function stringMapAsType(map) {
        var mapValues = Object.keys(map).map(function (key) {
          var value = Array.isArray(map[key]) ? map[key][0] : map[key];
          return {
            key: key,
            value: literal(value),
            quoted: true
          };
        });
        return expressionType(literalMap(mapValues));
      }

      function stringArrayAsType(arr) {
        return arr.length > 0 ? expressionType(literalArr(arr.map(function (value) {
          return literal(value);
        }))) : NONE_TYPE;
      }

      function createDirectiveTypeParams(meta) {
        // On the type side, remove newlines from the selector as it will need to fit into a TypeScript
        // string literal, which must be on one line.
        var selectorForType = meta.selector !== null ? meta.selector.replace(/\n/g, '') : null;
        return [typeWithParameters(meta.type.type, meta.typeArgumentCount), selectorForType !== null ? stringAsType(selectorForType) : NONE_TYPE, meta.exportAs !== null ? stringArrayAsType(meta.exportAs) : NONE_TYPE, stringMapAsType(meta.inputs), stringMapAsType(meta.outputs), stringArrayAsType(meta.queries.map(function (q) {
          return q.propertyName;
        }))];
      } // Define and update any view queries


      function createViewQueriesFunction(viewQueries, constantPool, name) {
        var createStatements = [];
        var updateStatements = [];
        var tempAllocator = temporaryAllocator(updateStatements, TEMPORARY_NAME);
        viewQueries.forEach(function (query) {
          var queryInstruction = query["static"] ? Identifiers$1.staticViewQuery : Identifiers$1.viewQuery; // creation, e.g. r3.viewQuery(somePredicate, true);

          var queryDefinition = importExpr(queryInstruction).callFn(prepareQueryParams(query, constantPool));
          createStatements.push(queryDefinition.toStmt()); // update, e.g. (r3.queryRefresh(tmp = r3.loadQuery()) && (ctx.someDir = tmp));

          var temporary = tempAllocator();
          var getQueryList = importExpr(Identifiers$1.loadQuery).callFn([]);
          var refresh = importExpr(Identifiers$1.queryRefresh).callFn([temporary.set(getQueryList)]);
          var updateDirective = variable(CONTEXT_NAME).prop(query.propertyName).set(query.first ? temporary.prop('first') : temporary);
          updateStatements.push(refresh.and(updateDirective).toStmt());
        });
        var viewQueryFnName = name ? "".concat(name, "_Query") : null;
        return fn([new FnParam(RENDER_FLAGS, NUMBER_TYPE), new FnParam(CONTEXT_NAME, null)], [renderFlagCheckIfStmt(1
        /* Create */
        , createStatements), renderFlagCheckIfStmt(2
        /* Update */
        , updateStatements)], INFERRED_TYPE, null, viewQueryFnName);
      } // Return a host binding function or null if one is not necessary.


      function createHostBindingsFunction(hostBindingsMetadata, typeSourceSpan, bindingParser, constantPool, selector, name, definitionMap) {
        var bindingContext = variable(CONTEXT_NAME);
        var styleBuilder = new StylingBuilder(bindingContext);
        var _hostBindingsMetadata = hostBindingsMetadata.specialAttributes,
            styleAttr = _hostBindingsMetadata.styleAttr,
            classAttr = _hostBindingsMetadata.classAttr;

        if (styleAttr !== undefined) {
          styleBuilder.registerStyleAttr(styleAttr);
        }

        if (classAttr !== undefined) {
          styleBuilder.registerClassAttr(classAttr);
        }

        var createStatements = [];
        var updateStatements = [];
        var hostBindingSourceSpan = typeSourceSpan;
        var directiveSummary = metadataAsSummary(hostBindingsMetadata); // Calculate host event bindings

        var eventBindings = bindingParser.createDirectiveHostEventAsts(directiveSummary, hostBindingSourceSpan);

        if (eventBindings && eventBindings.length) {
          var listeners = createHostListeners(eventBindings, name);
          createStatements.push.apply(createStatements, _toConsumableArray(listeners));
        } // Calculate the host property bindings


        var bindings = bindingParser.createBoundHostProperties(directiveSummary, hostBindingSourceSpan);
        var allOtherBindings = []; // We need to calculate the total amount of binding slots required by
        // all the instructions together before any value conversions happen.
        // Value conversions may require additional slots for interpolation and
        // bindings with pipes. These calculates happen after this block.

        var totalHostVarsCount = 0;
        bindings && bindings.forEach(function (binding) {
          var stylingInputWasSet = styleBuilder.registerInputBasedOnName(binding.name, binding.expression, hostBindingSourceSpan);

          if (stylingInputWasSet) {
            totalHostVarsCount += MIN_STYLING_BINDING_SLOTS_REQUIRED;
          } else {
            allOtherBindings.push(binding);
            totalHostVarsCount++;
          }
        });
        var valueConverter;

        var getValueConverter = function getValueConverter() {
          if (!valueConverter) {
            var hostVarsCountFn = function hostVarsCountFn(numSlots) {
              var originalVarsCount = totalHostVarsCount;
              totalHostVarsCount += numSlots;
              return originalVarsCount;
            };

            valueConverter = new ValueConverter(constantPool, function () {
              return error('Unexpected node');
            }, // new nodes are illegal here
            hostVarsCountFn, function () {
              return error('Unexpected pipe');
            }); // pipes are illegal here
          }

          return valueConverter;
        };

        var propertyBindings = [];
        var attributeBindings = [];
        var syntheticHostBindings = [];
        allOtherBindings.forEach(function (binding) {
          // resolve literal arrays and literal objects
          var value = binding.expression.visit(getValueConverter());
          var bindingExpr = bindingFn(bindingContext, value);

          var _getBindingNameAndIns = getBindingNameAndInstruction(binding),
              bindingName = _getBindingNameAndIns.bindingName,
              instruction = _getBindingNameAndIns.instruction,
              isAttribute = _getBindingNameAndIns.isAttribute;

          var securityContexts = bindingParser.calcPossibleSecurityContexts(selector, bindingName, isAttribute).filter(function (context) {
            return context !== SecurityContext.NONE;
          });
          var sanitizerFn = null;

          if (securityContexts.length) {
            if (securityContexts.length === 2 && securityContexts.indexOf(SecurityContext.URL) > -1 && securityContexts.indexOf(SecurityContext.RESOURCE_URL) > -1) {
              // Special case for some URL attributes (such as "src" and "href") that may be a part
              // of different security contexts. In this case we use special santitization function and
              // select the actual sanitizer at runtime based on a tag name that is provided while
              // invoking sanitization function.
              sanitizerFn = importExpr(Identifiers$1.sanitizeUrlOrResourceUrl);
            } else {
              sanitizerFn = resolveSanitizationFn(securityContexts[0], isAttribute);
            }
          }

          var instructionParams = [literal(bindingName), bindingExpr.currValExpr];

          if (sanitizerFn) {
            instructionParams.push(sanitizerFn);
          }

          updateStatements.push.apply(updateStatements, _toConsumableArray(bindingExpr.stmts));

          if (instruction === Identifiers$1.hostProperty) {
            propertyBindings.push(instructionParams);
          } else if (instruction === Identifiers$1.attribute) {
            attributeBindings.push(instructionParams);
          } else if (instruction === Identifiers$1.syntheticHostProperty) {
            syntheticHostBindings.push(instructionParams);
          } else {
            updateStatements.push(importExpr(instruction).callFn(instructionParams).toStmt());
          }
        });

        if (propertyBindings.length > 0) {
          updateStatements.push(chainedInstruction(Identifiers$1.hostProperty, propertyBindings).toStmt());
        }

        if (attributeBindings.length > 0) {
          updateStatements.push(chainedInstruction(Identifiers$1.attribute, attributeBindings).toStmt());
        }

        if (syntheticHostBindings.length > 0) {
          updateStatements.push(chainedInstruction(Identifiers$1.syntheticHostProperty, syntheticHostBindings).toStmt());
        } // since we're dealing with directives/components and both have hostBinding
        // functions, we need to generate a special hostAttrs instruction that deals
        // with both the assignment of styling as well as static attributes to the host
        // element. The instruction below will instruct all initial styling (styling
        // that is inside of a host binding within a directive/component) to be attached
        // to the host element alongside any of the provided host attributes that were
        // collected earlier.


        var hostAttrs = convertAttributesToExpressions(hostBindingsMetadata.attributes);
        styleBuilder.assignHostAttrs(hostAttrs, definitionMap);

        if (styleBuilder.hasBindings) {
          // finally each binding that was registered in the statement above will need to be added to
          // the update block of a component/directive templateFn/hostBindingsFn so that the bindings
          // are evaluated and updated for the element.
          styleBuilder.buildUpdateLevelInstructions(getValueConverter()).forEach(function (instruction) {
            if (instruction.calls.length > 0) {
              var calls = [];
              instruction.calls.forEach(function (call) {
                // we subtract a value of `1` here because the binding slot was already allocated
                // at the top of this method when all the input bindings were counted.
                totalHostVarsCount += Math.max(call.allocateBindingSlots - MIN_STYLING_BINDING_SLOTS_REQUIRED, 0);
                calls.push(convertStylingCall(call, bindingContext, bindingFn));
              });
              updateStatements.push(chainedInstruction(instruction.reference, calls).toStmt());
            }
          });
        }

        if (totalHostVarsCount) {
          definitionMap.set('hostVars', literal(totalHostVarsCount));
        }

        if (createStatements.length > 0 || updateStatements.length > 0) {
          var hostBindingsFnName = name ? "".concat(name, "_HostBindings") : null;
          var statements = [];

          if (createStatements.length > 0) {
            statements.push(renderFlagCheckIfStmt(1
            /* Create */
            , createStatements));
          }

          if (updateStatements.length > 0) {
            statements.push(renderFlagCheckIfStmt(2
            /* Update */
            , updateStatements));
          }

          return fn([new FnParam(RENDER_FLAGS, NUMBER_TYPE), new FnParam(CONTEXT_NAME, null)], statements, INFERRED_TYPE, null, hostBindingsFnName);
        }

        return null;
      }

      function bindingFn(implicit, value) {
        return _convertPropertyBinding(null, implicit, value, 'b', BindingForm.Expression, function () {
          return error('Unexpected interpolation');
        });
      }

      function convertStylingCall(call, bindingContext, bindingFn) {
        return call.params(function (value) {
          return bindingFn(bindingContext, value).currValExpr;
        });
      }

      function getBindingNameAndInstruction(binding) {
        var bindingName = binding.name;
        var instruction; // Check to see if this is an attr binding or a property binding

        var attrMatches = bindingName.match(ATTR_REGEX);

        if (attrMatches) {
          bindingName = attrMatches[1];
          instruction = Identifiers$1.attribute;
        } else {
          if (binding.isAnimation) {
            bindingName = prepareSyntheticPropertyName(bindingName); // host bindings that have a synthetic property (e.g. @foo) should always be rendered
            // in the context of the component and not the parent. Therefore there is a special
            // compatibility instruction available for this purpose.

            instruction = Identifiers$1.syntheticHostProperty;
          } else {
            instruction = Identifiers$1.hostProperty;
          }
        }

        return {
          bindingName: bindingName,
          instruction: instruction,
          isAttribute: !!attrMatches
        };
      }

      function createHostListeners(eventBindings, name) {
        var listeners = [];
        var syntheticListeners = [];
        var instructions = [];
        eventBindings.forEach(function (binding) {
          var bindingName = binding.name && sanitizeIdentifier(binding.name);
          var bindingFnName = binding.type === 1
          /* Animation */
          ? prepareSyntheticListenerFunctionName(bindingName, binding.targetOrPhase) : bindingName;
          var handlerName = name && bindingName ? "".concat(name, "_").concat(bindingFnName, "_HostBindingHandler") : null;
          var params = prepareEventListenerParameters(BoundEvent.fromParsedEvent(binding), handlerName);

          if (binding.type == 1
          /* Animation */
          ) {
            syntheticListeners.push(params);
          } else {
            listeners.push(params);
          }
        });

        if (syntheticListeners.length > 0) {
          instructions.push(chainedInstruction(Identifiers$1.syntheticHostListener, syntheticListeners).toStmt());
        }

        if (listeners.length > 0) {
          instructions.push(chainedInstruction(Identifiers$1.listener, listeners).toStmt());
        }

        return instructions;
      }

      function metadataAsSummary(meta) {
        // clang-format off
        return {
          // This is used by the BindingParser, which only deals with listeners and properties. There's no
          // need to pass attributes to it.
          hostAttributes: {},
          hostListeners: meta.listeners,
          hostProperties: meta.properties
        }; // clang-format on
      }

      function typeMapToExpressionMap(map, outputCtx) {
        // Convert each map entry into another entry where the value is an expression importing the type.
        var entries = Array.from(map).map(function (_ref20) {
          var _ref21 = _slicedToArray(_ref20, 2),
              key = _ref21[0],
              type = _ref21[1];

          return [key, outputCtx.importExpr(type)];
        });
        return new Map(entries);
      }

      var HOST_REG_EXP$1 = /^(?:\[([^\]]+)\])|(?:\(([^\)]+)\))$/;

      function parseHostBindings(host) {
        var attributes = {};
        var listeners = {};
        var properties = {};
        var specialAttributes = {};

        for (var _i11 = 0, _Object$keys2 = Object.keys(host); _i11 < _Object$keys2.length; _i11++) {
          var key = _Object$keys2[_i11];
          var value = host[key];
          var matches = key.match(HOST_REG_EXP$1);

          if (matches === null) {
            switch (key) {
              case 'class':
                if (typeof value !== 'string') {
                  // TODO(alxhub): make this a diagnostic.
                  throw new Error("Class binding must be string");
                }

                specialAttributes.classAttr = value;
                break;

              case 'style':
                if (typeof value !== 'string') {
                  // TODO(alxhub): make this a diagnostic.
                  throw new Error("Style binding must be string");
                }

                specialAttributes.styleAttr = value;
                break;

              default:
                if (typeof value === 'string') {
                  attributes[key] = literal(value);
                } else {
                  attributes[key] = value;
                }

            }
          } else if (matches[1
          /* Binding */
          ] != null) {
            if (typeof value !== 'string') {
              // TODO(alxhub): make this a diagnostic.
              throw new Error("Property binding must be string");
            } // synthetic properties (the ones that have a `@` as a prefix)
            // are still treated the same as regular properties. Therefore
            // there is no point in storing them in a separate map.


            properties[matches[1
            /* Binding */
            ]] = value;
          } else if (matches[2
          /* Event */
          ] != null) {
            if (typeof value !== 'string') {
              // TODO(alxhub): make this a diagnostic.
              throw new Error("Event binding must be string");
            }

            listeners[matches[2
            /* Event */
            ]] = value;
          }
        }

        return {
          attributes: attributes,
          listeners: listeners,
          properties: properties,
          specialAttributes: specialAttributes
        };
      }
      /**
       * Verifies host bindings and returns the list of errors (if any). Empty array indicates that a
       * given set of host bindings has no errors.
       *
       * @param bindings set of host bindings to verify.
       * @param sourceSpan source span where host bindings were defined.
       * @returns array of errors associated with a given set of host bindings.
       */


      function verifyHostBindings(bindings, sourceSpan) {
        var summary = metadataAsSummary(bindings); // TODO: abstract out host bindings verification logic and use it instead of
        // creating events and properties ASTs to detect errors (FW-996)

        var bindingParser = makeBindingParser();
        bindingParser.createDirectiveHostEventAsts(summary, sourceSpan);
        bindingParser.createBoundHostProperties(summary, sourceSpan);
        return bindingParser.errors;
      }

      function compileStyles(styles, selector, hostSelector) {
        var shadowCss = new ShadowCss();
        return styles.map(function (style) {
          return shadowCss.shimCssText(style, selector, hostSelector);
        });
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * An interface for retrieving documents by URL that the compiler uses
       * to load templates.
       */


      var ResourceLoader = /*#__PURE__*/function () {
        function ResourceLoader() {
          _classCallCheck2(this, ResourceLoader);
        }

        _createClass2(ResourceLoader, [{
          key: "get",
          value: function get(url) {
            return '';
          }
        }]);

        return ResourceLoader;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var CompilerFacadeImpl = /*#__PURE__*/function () {
        function CompilerFacadeImpl() {
          var jitEvaluator = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : new JitEvaluator();

          _classCallCheck2(this, CompilerFacadeImpl);

          this.jitEvaluator = jitEvaluator;
          this.R3ResolvedDependencyType = R3ResolvedDependencyType;
          this.R3FactoryTarget = R3FactoryTarget;
          this.ResourceLoader = ResourceLoader;
          this.elementSchemaRegistry = new DomElementSchemaRegistry();
        }

        _createClass2(CompilerFacadeImpl, [{
          key: "compilePipe",
          value: function compilePipe(angularCoreEnv, sourceMapUrl, facade) {
            var metadata = {
              name: facade.name,
              type: wrapReference$1(facade.type),
              internalType: new WrappedNodeExpr(facade.type),
              typeArgumentCount: facade.typeArgumentCount,
              deps: convertR3DependencyMetadataArray(facade.deps),
              pipeName: facade.pipeName,
              pure: facade.pure
            };
            var res = compilePipeFromMetadata(metadata);
            return this.jitExpression(res.expression, angularCoreEnv, sourceMapUrl, []);
          }
        }, {
          key: "compileInjectable",
          value: function compileInjectable(angularCoreEnv, sourceMapUrl, facade) {
            var _compileInjectable2 = _compileInjectable({
              name: facade.name,
              type: wrapReference$1(facade.type),
              internalType: new WrappedNodeExpr(facade.type),
              typeArgumentCount: facade.typeArgumentCount,
              providedIn: computeProvidedIn(facade.providedIn),
              useClass: wrapExpression(facade, USE_CLASS),
              useFactory: wrapExpression(facade, USE_FACTORY),
              useValue: wrapExpression(facade, USE_VALUE),
              useExisting: wrapExpression(facade, USE_EXISTING),
              userDeps: convertR3DependencyMetadataArray(facade.userDeps) || undefined
            }),
                expression = _compileInjectable2.expression,
                statements = _compileInjectable2.statements;

            return this.jitExpression(expression, angularCoreEnv, sourceMapUrl, statements);
          }
        }, {
          key: "compileInjector",
          value: function compileInjector(angularCoreEnv, sourceMapUrl, facade) {
            var meta = {
              name: facade.name,
              type: wrapReference$1(facade.type),
              internalType: new WrappedNodeExpr(facade.type),
              deps: convertR3DependencyMetadataArray(facade.deps),
              providers: new WrappedNodeExpr(facade.providers),
              imports: facade.imports.map(function (i) {
                return new WrappedNodeExpr(i);
              })
            };

            var res = _compileInjector(meta);

            return this.jitExpression(res.expression, angularCoreEnv, sourceMapUrl, res.statements);
          }
        }, {
          key: "compileNgModule",
          value: function compileNgModule(angularCoreEnv, sourceMapUrl, facade) {
            var meta = {
              type: wrapReference$1(facade.type),
              internalType: new WrappedNodeExpr(facade.type),
              adjacentType: new WrappedNodeExpr(facade.type),
              bootstrap: facade.bootstrap.map(wrapReference$1),
              declarations: facade.declarations.map(wrapReference$1),
              imports: facade.imports.map(wrapReference$1),
              exports: facade.exports.map(wrapReference$1),
              emitInline: true,
              containsForwardDecls: false,
              schemas: facade.schemas ? facade.schemas.map(wrapReference$1) : null,
              id: facade.id ? new WrappedNodeExpr(facade.id) : null
            };

            var res = _compileNgModule(meta);

            return this.jitExpression(res.expression, angularCoreEnv, sourceMapUrl, []);
          }
        }, {
          key: "compileDirective",
          value: function compileDirective(angularCoreEnv, sourceMapUrl, facade) {
            var constantPool = new ConstantPool();
            var bindingParser = makeBindingParser();
            var meta = convertDirectiveFacadeToMetadata(facade);
            var res = compileDirectiveFromMetadata(meta, constantPool, bindingParser);
            return this.jitExpression(res.expression, angularCoreEnv, sourceMapUrl, constantPool.statements);
          }
        }, {
          key: "compileComponent",
          value: function compileComponent(angularCoreEnv, sourceMapUrl, facade) {
            // The ConstantPool is a requirement of the JIT'er.
            var constantPool = new ConstantPool();
            var interpolationConfig = facade.interpolation ? InterpolationConfig.fromArray(facade.interpolation) : DEFAULT_INTERPOLATION_CONFIG; // Parse the template and check for errors.

            var template = parseTemplate(facade.template, sourceMapUrl, {
              preserveWhitespaces: facade.preserveWhitespaces,
              interpolationConfig: interpolationConfig
            });

            if (template.errors !== null) {
              var errors = template.errors.map(function (err) {
                return err.toString();
              }).join(', ');
              throw new Error("Errors during JIT compilation of template for ".concat(facade.name, ": ").concat(errors));
            } // Compile the component metadata, including template, into an expression.
            // TODO(alxhub): implement inputs, outputs, queries, etc.


            var metadata = Object.assign(Object.assign(Object.assign({}, facade), convertDirectiveFacadeToMetadata(facade)), {
              selector: facade.selector || this.elementSchemaRegistry.getDefaultComponentElementName(),
              template: template,
              wrapDirectivesAndPipesInClosure: false,
              styles: [].concat(_toConsumableArray(facade.styles), _toConsumableArray(template.styles)),
              encapsulation: facade.encapsulation,
              interpolation: interpolationConfig,
              changeDetection: facade.changeDetection,
              animations: facade.animations != null ? new WrappedNodeExpr(facade.animations) : null,
              viewProviders: facade.viewProviders != null ? new WrappedNodeExpr(facade.viewProviders) : null,
              relativeContextFilePath: '',
              i18nUseExternalIds: true
            });
            var res = compileComponentFromMetadata(metadata, constantPool, makeBindingParser(interpolationConfig));
            var jitExpressionSourceMap = "ng:///".concat(facade.name, ".js");
            return this.jitExpression(res.expression, angularCoreEnv, jitExpressionSourceMap, constantPool.statements);
          }
        }, {
          key: "compileFactory",
          value: function compileFactory(angularCoreEnv, sourceMapUrl, meta) {
            var factoryRes = compileFactoryFunction({
              name: meta.name,
              type: wrapReference$1(meta.type),
              internalType: new WrappedNodeExpr(meta.type),
              typeArgumentCount: meta.typeArgumentCount,
              deps: convertR3DependencyMetadataArray(meta.deps),
              injectFn: meta.injectFn === 'directiveInject' ? Identifiers.directiveInject : Identifiers.inject,
              target: meta.target
            });
            return this.jitExpression(factoryRes.factory, angularCoreEnv, sourceMapUrl, factoryRes.statements);
          }
        }, {
          key: "createParseSourceSpan",
          value: function createParseSourceSpan(kind, typeName, sourceUrl) {
            return r3JitTypeSourceSpan(kind, typeName, sourceUrl);
          }
          /**
           * JIT compiles an expression and returns the result of executing that expression.
           *
           * @param def the definition which will be compiled and executed to get the value to patch
           * @param context an object map of @angular/core symbol names to symbols which will be available
           * in the context of the compiled expression
           * @param sourceUrl a URL to use for the source map of the compiled expression
           * @param preStatements a collection of statements that should be evaluated before the expression.
           */

        }, {
          key: "jitExpression",
          value: function jitExpression(def, context, sourceUrl, preStatements) {
            // The ConstantPool may contain Statements which declare variables used in the final expression.
            // Therefore, its statements need to precede the actual JIT operation. The final statement is a
            // declaration of $def which is set to the expression being compiled.
            var statements = [].concat(_toConsumableArray(preStatements), [new DeclareVarStmt('$def', def, undefined, [StmtModifier.Exported])]);
            var res = this.jitEvaluator.evaluateStatements(sourceUrl, statements, new R3JitReflector(context),
            /* enableSourceMaps */
            true);
            return res['$def'];
          }
        }]);

        return CompilerFacadeImpl;
      }();

      var USE_CLASS = Object.keys({
        useClass: null
      })[0];
      var USE_FACTORY = Object.keys({
        useFactory: null
      })[0];
      var USE_VALUE = Object.keys({
        useValue: null
      })[0];
      var USE_EXISTING = Object.keys({
        useExisting: null
      })[0];

      var wrapReference$1 = function wrapReference$1(value) {
        var wrapped = new WrappedNodeExpr(value);
        return {
          value: wrapped,
          type: wrapped
        };
      };

      function convertToR3QueryMetadata(facade) {
        return Object.assign(Object.assign({}, facade), {
          predicate: Array.isArray(facade.predicate) ? facade.predicate : new WrappedNodeExpr(facade.predicate),
          read: facade.read ? new WrappedNodeExpr(facade.read) : null,
          "static": facade["static"]
        });
      }

      function convertDirectiveFacadeToMetadata(facade) {
        var inputsFromMetadata = parseInputOutputs(facade.inputs || []);
        var outputsFromMetadata = parseInputOutputs(facade.outputs || []);
        var propMetadata = facade.propMetadata;
        var inputsFromType = {};
        var outputsFromType = {};

        var _loop = function _loop(field) {
          if (propMetadata.hasOwnProperty(field)) {
            propMetadata[field].forEach(function (ann) {
              if (isInput(ann)) {
                inputsFromType[field] = ann.bindingPropertyName ? [ann.bindingPropertyName, field] : field;
              } else if (isOutput(ann)) {
                outputsFromType[field] = ann.bindingPropertyName || field;
              }
            });
          }
        };

        for (var field in propMetadata) {
          _loop(field);
        }

        return Object.assign(Object.assign({}, facade), {
          typeSourceSpan: facade.typeSourceSpan,
          type: wrapReference$1(facade.type),
          internalType: new WrappedNodeExpr(facade.type),
          deps: convertR3DependencyMetadataArray(facade.deps),
          host: extractHostBindings(facade.propMetadata, facade.typeSourceSpan, facade.host),
          inputs: Object.assign(Object.assign({}, inputsFromMetadata), inputsFromType),
          outputs: Object.assign(Object.assign({}, outputsFromMetadata), outputsFromType),
          queries: facade.queries.map(convertToR3QueryMetadata),
          providers: facade.providers != null ? new WrappedNodeExpr(facade.providers) : null,
          viewQueries: facade.viewQueries.map(convertToR3QueryMetadata),
          fullInheritance: false
        });
      }

      function wrapExpression(obj, property) {
        if (obj.hasOwnProperty(property)) {
          return new WrappedNodeExpr(obj[property]);
        } else {
          return undefined;
        }
      }

      function computeProvidedIn(providedIn) {
        if (providedIn == null || typeof providedIn === 'string') {
          return new LiteralExpr(providedIn);
        } else {
          return new WrappedNodeExpr(providedIn);
        }
      }

      function convertR3DependencyMetadata(facade) {
        var tokenExpr;

        if (facade.token === null) {
          tokenExpr = new LiteralExpr(null);
        } else if (facade.resolved === R3ResolvedDependencyType.Attribute) {
          tokenExpr = new LiteralExpr(facade.token);
        } else {
          tokenExpr = new WrappedNodeExpr(facade.token);
        }

        return {
          token: tokenExpr,
          attribute: null,
          resolved: facade.resolved,
          host: facade.host,
          optional: facade.optional,
          self: facade.self,
          skipSelf: facade.skipSelf
        };
      }

      function convertR3DependencyMetadataArray(facades) {
        return facades == null ? null : facades.map(convertR3DependencyMetadata);
      }

      function extractHostBindings(propMetadata, sourceSpan, host) {
        // First parse the declarations from the metadata.
        var bindings = parseHostBindings(host || {}); // After that check host bindings for errors

        var errors = verifyHostBindings(bindings, sourceSpan);

        if (errors.length) {
          throw new Error(errors.map(function (error) {
            return error.msg;
          }).join('\n'));
        } // Next, loop over the properties of the object, looking for @HostBinding and @HostListener.


        var _loop2 = function _loop2(field) {
          if (propMetadata.hasOwnProperty(field)) {
            propMetadata[field].forEach(function (ann) {
              if (isHostBinding(ann)) {
                bindings.properties[ann.hostPropertyName || field] = field;
              } else if (isHostListener(ann)) {
                bindings.listeners[ann.eventName || field] = "".concat(field, "(").concat((ann.args || []).join(','), ")");
              }
            });
          }
        };

        for (var field in propMetadata) {
          _loop2(field);
        }

        return bindings;
      }

      function isHostBinding(value) {
        return value.ngMetadataName === 'HostBinding';
      }

      function isHostListener(value) {
        return value.ngMetadataName === 'HostListener';
      }

      function isInput(value) {
        return value.ngMetadataName === 'Input';
      }

      function isOutput(value) {
        return value.ngMetadataName === 'Output';
      }

      function parseInputOutputs(values) {
        return values.reduce(function (map, value) {
          var _value$split$map = value.split(',').map(function (piece) {
            return piece.trim();
          }),
              _value$split$map2 = _slicedToArray(_value$split$map, 2),
              field = _value$split$map2[0],
              property = _value$split$map2[1];

          map[field] = property || field;
          return map;
        }, {});
      }

      function publishFacade(global) {
        var ng = global.ng || (global.ng = {});
        ng.ɵcompilerFacade = new CompilerFacadeImpl();
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var VERSION$1 = new Version('11.0.0');
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      var CompilerConfig = function CompilerConfig() {
        var _ref22 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
            _ref22$defaultEncapsu = _ref22.defaultEncapsulation,
            defaultEncapsulation = _ref22$defaultEncapsu === void 0 ? ViewEncapsulation.Emulated : _ref22$defaultEncapsu,
            _ref22$useJit = _ref22.useJit,
            useJit = _ref22$useJit === void 0 ? true : _ref22$useJit,
            _ref22$jitDevMode = _ref22.jitDevMode,
            jitDevMode = _ref22$jitDevMode === void 0 ? false : _ref22$jitDevMode,
            _ref22$missingTransla = _ref22.missingTranslation,
            missingTranslation = _ref22$missingTransla === void 0 ? null : _ref22$missingTransla,
            preserveWhitespaces = _ref22.preserveWhitespaces,
            strictInjectionParameters = _ref22.strictInjectionParameters;

        _classCallCheck2(this, CompilerConfig);

        this.defaultEncapsulation = defaultEncapsulation;
        this.useJit = !!useJit;
        this.jitDevMode = !!jitDevMode;
        this.missingTranslation = missingTranslation;
        this.preserveWhitespaces = preserveWhitespacesDefault(noUndefined(preserveWhitespaces));
        this.strictInjectionParameters = strictInjectionParameters === true;
      };

      function preserveWhitespacesDefault(preserveWhitespacesOption) {
        var defaultSetting = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
        return preserveWhitespacesOption === null ? defaultSetting : preserveWhitespacesOption;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var DirectiveNormalizer = /*#__PURE__*/function () {
        function DirectiveNormalizer(_resourceLoader, _urlResolver, _htmlParser, _config) {
          _classCallCheck2(this, DirectiveNormalizer);

          this._resourceLoader = _resourceLoader;
          this._urlResolver = _urlResolver;
          this._htmlParser = _htmlParser;
          this._config = _config;
          this._resourceLoaderCache = new Map();
        }

        _createClass2(DirectiveNormalizer, [{
          key: "clearCache",
          value: function clearCache() {
            this._resourceLoaderCache.clear();
          }
        }, {
          key: "clearCacheFor",
          value: function clearCacheFor(normalizedDirective) {
            var _this239 = this;

            if (!normalizedDirective.isComponent) {
              return;
            }

            var template = normalizedDirective.template;

            this._resourceLoaderCache["delete"](template.templateUrl);

            template.externalStylesheets.forEach(function (stylesheet) {
              _this239._resourceLoaderCache["delete"](stylesheet.moduleUrl);
            });
          }
        }, {
          key: "_fetch",
          value: function _fetch(url) {
            var result = this._resourceLoaderCache.get(url);

            if (!result) {
              result = this._resourceLoader.get(url);

              this._resourceLoaderCache.set(url, result);
            }

            return result;
          }
        }, {
          key: "normalizeTemplate",
          value: function normalizeTemplate(prenormData) {
            var _this240 = this;

            if (isDefined(prenormData.template)) {
              if (isDefined(prenormData.templateUrl)) {
                throw syntaxError("'".concat(stringify(prenormData.componentType), "' component cannot define both template and templateUrl"));
              }

              if (typeof prenormData.template !== 'string') {
                throw syntaxError("The template specified for component ".concat(stringify(prenormData.componentType), " is not a string"));
              }
            } else if (isDefined(prenormData.templateUrl)) {
              if (typeof prenormData.templateUrl !== 'string') {
                throw syntaxError("The templateUrl specified for component ".concat(stringify(prenormData.componentType), " is not a string"));
              }
            } else {
              throw syntaxError("No template specified for component ".concat(stringify(prenormData.componentType)));
            }

            if (isDefined(prenormData.preserveWhitespaces) && typeof prenormData.preserveWhitespaces !== 'boolean') {
              throw syntaxError("The preserveWhitespaces option for component ".concat(stringify(prenormData.componentType), " must be a boolean"));
            }

            return SyncAsync.then(this._preParseTemplate(prenormData), function (preparsedTemplate) {
              return _this240._normalizeTemplateMetadata(prenormData, preparsedTemplate);
            });
          }
        }, {
          key: "_preParseTemplate",
          value: function _preParseTemplate(prenomData) {
            var _this241 = this;

            var template;
            var templateUrl;

            if (prenomData.template != null) {
              template = prenomData.template;
              templateUrl = prenomData.moduleUrl;
            } else {
              templateUrl = this._urlResolver.resolve(prenomData.moduleUrl, prenomData.templateUrl);
              template = this._fetch(templateUrl);
            }

            return SyncAsync.then(template, function (template) {
              return _this241._preparseLoadedTemplate(prenomData, template, templateUrl);
            });
          }
        }, {
          key: "_preparseLoadedTemplate",
          value: function _preparseLoadedTemplate(prenormData, template, templateAbsUrl) {
            var isInline = !!prenormData.template;
            var interpolationConfig = InterpolationConfig.fromArray(prenormData.interpolation);
            var templateUrl = templateSourceUrl({
              reference: prenormData.ngModuleType
            }, {
              type: {
                reference: prenormData.componentType
              }
            }, {
              isInline: isInline,
              templateUrl: templateAbsUrl
            });

            var rootNodesAndErrors = this._htmlParser.parse(template, templateUrl, {
              tokenizeExpansionForms: true,
              interpolationConfig: interpolationConfig
            });

            if (rootNodesAndErrors.errors.length > 0) {
              var errorString = rootNodesAndErrors.errors.join('\n');
              throw syntaxError("Template parse errors:\n".concat(errorString));
            }

            var templateMetadataStyles = this._normalizeStylesheet(new CompileStylesheetMetadata({
              styles: prenormData.styles,
              moduleUrl: prenormData.moduleUrl
            }));

            var visitor = new TemplatePreparseVisitor();
            visitAll$1(visitor, rootNodesAndErrors.rootNodes);

            var templateStyles = this._normalizeStylesheet(new CompileStylesheetMetadata({
              styles: visitor.styles,
              styleUrls: visitor.styleUrls,
              moduleUrl: templateAbsUrl
            }));

            var styles = templateMetadataStyles.styles.concat(templateStyles.styles);
            var inlineStyleUrls = templateMetadataStyles.styleUrls.concat(templateStyles.styleUrls);

            var styleUrls = this._normalizeStylesheet(new CompileStylesheetMetadata({
              styleUrls: prenormData.styleUrls,
              moduleUrl: prenormData.moduleUrl
            })).styleUrls;

            return {
              template: template,
              templateUrl: templateAbsUrl,
              isInline: isInline,
              htmlAst: rootNodesAndErrors,
              styles: styles,
              inlineStyleUrls: inlineStyleUrls,
              styleUrls: styleUrls,
              ngContentSelectors: visitor.ngContentSelectors
            };
          }
        }, {
          key: "_normalizeTemplateMetadata",
          value: function _normalizeTemplateMetadata(prenormData, preparsedTemplate) {
            var _this242 = this;

            return SyncAsync.then(this._loadMissingExternalStylesheets(preparsedTemplate.styleUrls.concat(preparsedTemplate.inlineStyleUrls)), function (externalStylesheets) {
              return _this242._normalizeLoadedTemplateMetadata(prenormData, preparsedTemplate, externalStylesheets);
            });
          }
        }, {
          key: "_normalizeLoadedTemplateMetadata",
          value: function _normalizeLoadedTemplateMetadata(prenormData, preparsedTemplate, stylesheets) {
            var _this243 = this;

            // Algorithm:
            // - produce exactly 1 entry per original styleUrl in
            // CompileTemplateMetadata.externalStylesheets with all styles inlined
            // - inline all styles that are referenced by the template into CompileTemplateMetadata.styles.
            // Reason: be able to determine how many stylesheets there are even without loading
            // the template nor the stylesheets, so we can create a stub for TypeScript always synchronously
            // (as resource loading may be async)
            var styles = _toConsumableArray(preparsedTemplate.styles);

            this._inlineStyles(preparsedTemplate.inlineStyleUrls, stylesheets, styles);

            var styleUrls = preparsedTemplate.styleUrls;
            var externalStylesheets = styleUrls.map(function (styleUrl) {
              var stylesheet = stylesheets.get(styleUrl);

              var styles = _toConsumableArray(stylesheet.styles);

              _this243._inlineStyles(stylesheet.styleUrls, stylesheets, styles);

              return new CompileStylesheetMetadata({
                moduleUrl: styleUrl,
                styles: styles
              });
            });
            var encapsulation = prenormData.encapsulation;

            if (encapsulation == null) {
              encapsulation = this._config.defaultEncapsulation;
            }

            if (encapsulation === ViewEncapsulation.Emulated && styles.length === 0 && styleUrls.length === 0) {
              encapsulation = ViewEncapsulation.None;
            }

            return new CompileTemplateMetadata({
              encapsulation: encapsulation,
              template: preparsedTemplate.template,
              templateUrl: preparsedTemplate.templateUrl,
              htmlAst: preparsedTemplate.htmlAst,
              styles: styles,
              styleUrls: styleUrls,
              ngContentSelectors: preparsedTemplate.ngContentSelectors,
              animations: prenormData.animations,
              interpolation: prenormData.interpolation,
              isInline: preparsedTemplate.isInline,
              externalStylesheets: externalStylesheets,
              preserveWhitespaces: preserveWhitespacesDefault(prenormData.preserveWhitespaces, this._config.preserveWhitespaces)
            });
          }
        }, {
          key: "_inlineStyles",
          value: function _inlineStyles(styleUrls, stylesheets, targetStyles) {
            var _this244 = this;

            styleUrls.forEach(function (styleUrl) {
              var stylesheet = stylesheets.get(styleUrl);
              stylesheet.styles.forEach(function (style) {
                return targetStyles.push(style);
              });

              _this244._inlineStyles(stylesheet.styleUrls, stylesheets, targetStyles);
            });
          }
        }, {
          key: "_loadMissingExternalStylesheets",
          value: function _loadMissingExternalStylesheets(styleUrls) {
            var _this245 = this;

            var loadedStylesheets = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new Map();
            return SyncAsync.then(SyncAsync.all(styleUrls.filter(function (styleUrl) {
              return !loadedStylesheets.has(styleUrl);
            }).map(function (styleUrl) {
              return SyncAsync.then(_this245._fetch(styleUrl), function (loadedStyle) {
                var stylesheet = _this245._normalizeStylesheet(new CompileStylesheetMetadata({
                  styles: [loadedStyle],
                  moduleUrl: styleUrl
                }));

                loadedStylesheets.set(styleUrl, stylesheet);
                return _this245._loadMissingExternalStylesheets(stylesheet.styleUrls, loadedStylesheets);
              });
            })), function (_) {
              return loadedStylesheets;
            });
          }
        }, {
          key: "_normalizeStylesheet",
          value: function _normalizeStylesheet(stylesheet) {
            var _this246 = this;

            var moduleUrl = stylesheet.moduleUrl;
            var allStyleUrls = stylesheet.styleUrls.filter(isStyleUrlResolvable).map(function (url) {
              return _this246._urlResolver.resolve(moduleUrl, url);
            });
            var allStyles = stylesheet.styles.map(function (style) {
              var styleWithImports = extractStyleUrls(_this246._urlResolver, moduleUrl, style);
              allStyleUrls.push.apply(allStyleUrls, _toConsumableArray(styleWithImports.styleUrls));
              return styleWithImports.style;
            });
            return new CompileStylesheetMetadata({
              styles: allStyles,
              styleUrls: allStyleUrls,
              moduleUrl: moduleUrl
            });
          }
        }]);

        return DirectiveNormalizer;
      }();

      var TemplatePreparseVisitor = /*#__PURE__*/function () {
        function TemplatePreparseVisitor() {
          _classCallCheck2(this, TemplatePreparseVisitor);

          this.ngContentSelectors = [];
          this.styles = [];
          this.styleUrls = [];
          this.ngNonBindableStackCount = 0;
        }

        _createClass2(TemplatePreparseVisitor, [{
          key: "visitElement",
          value: function visitElement(ast, context) {
            var preparsedElement = preparseElement(ast);

            switch (preparsedElement.type) {
              case PreparsedElementType.NG_CONTENT:
                if (this.ngNonBindableStackCount === 0) {
                  this.ngContentSelectors.push(preparsedElement.selectAttr);
                }

                break;

              case PreparsedElementType.STYLE:
                var textContent = '';
                ast.children.forEach(function (child) {
                  if (child instanceof Text$3) {
                    textContent += child.value;
                  }
                });
                this.styles.push(textContent);
                break;

              case PreparsedElementType.STYLESHEET:
                this.styleUrls.push(preparsedElement.hrefAttr);
                break;

              default:
                break;
            }

            if (preparsedElement.nonBindable) {
              this.ngNonBindableStackCount++;
            }

            visitAll$1(this, ast.children);

            if (preparsedElement.nonBindable) {
              this.ngNonBindableStackCount--;
            }

            return null;
          }
        }, {
          key: "visitExpansion",
          value: function visitExpansion(ast, context) {
            visitAll$1(this, ast.cases);
          }
        }, {
          key: "visitExpansionCase",
          value: function visitExpansionCase(ast, context) {
            visitAll$1(this, ast.expression);
          }
        }, {
          key: "visitComment",
          value: function visitComment(ast, context) {
            return null;
          }
        }, {
          key: "visitAttribute",
          value: function visitAttribute(ast, context) {
            return null;
          }
        }, {
          key: "visitText",
          value: function visitText(ast, context) {
            return null;
          }
        }]);

        return TemplatePreparseVisitor;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var QUERY_METADATA_IDENTIFIERS = [createViewChild, createViewChildren, createContentChild, createContentChildren];
      /*
       * Resolve a `Type` for {@link Directive}.
       *
       * This interface can be overridden by the application developer to create custom behavior.
       *
       * See {@link Compiler}
       */

      var DirectiveResolver = /*#__PURE__*/function () {
        function DirectiveResolver(_reflector) {
          _classCallCheck2(this, DirectiveResolver);

          this._reflector = _reflector;
        }

        _createClass2(DirectiveResolver, [{
          key: "isDirective",
          value: function isDirective(type) {
            var typeMetadata = this._reflector.annotations(resolveForwardRef(type));

            return typeMetadata && typeMetadata.some(isDirectiveMetadata);
          }
        }, {
          key: "resolve",
          value: function resolve(type) {
            var throwIfNotFound = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;

            var typeMetadata = this._reflector.annotations(resolveForwardRef(type));

            if (typeMetadata) {
              var metadata = findLast(typeMetadata, isDirectiveMetadata);

              if (metadata) {
                var propertyMetadata = this._reflector.propMetadata(type);

                var guards = this._reflector.guards(type);

                return this._mergeWithPropertyMetadata(metadata, propertyMetadata, guards, type);
              }
            }

            if (throwIfNotFound) {
              throw new Error("No Directive annotation found on ".concat(stringify(type)));
            }

            return null;
          }
        }, {
          key: "_mergeWithPropertyMetadata",
          value: function _mergeWithPropertyMetadata(dm, propertyMetadata, guards, directiveType) {
            var inputs = [];
            var outputs = [];
            var host = {};
            var queries = {};
            Object.keys(propertyMetadata).forEach(function (propName) {
              var input = findLast(propertyMetadata[propName], function (a) {
                return createInput.isTypeOf(a);
              });

              if (input) {
                if (input.bindingPropertyName) {
                  inputs.push("".concat(propName, ": ").concat(input.bindingPropertyName));
                } else {
                  inputs.push(propName);
                }
              }

              var output = findLast(propertyMetadata[propName], function (a) {
                return createOutput.isTypeOf(a);
              });

              if (output) {
                if (output.bindingPropertyName) {
                  outputs.push("".concat(propName, ": ").concat(output.bindingPropertyName));
                } else {
                  outputs.push(propName);
                }
              }

              var hostBindings = propertyMetadata[propName].filter(function (a) {
                return createHostBinding.isTypeOf(a);
              });
              hostBindings.forEach(function (hostBinding) {
                if (hostBinding.hostPropertyName) {
                  var startWith = hostBinding.hostPropertyName[0];

                  if (startWith === '(') {
                    throw new Error("@HostBinding can not bind to events. Use @HostListener instead.");
                  } else if (startWith === '[') {
                    throw new Error("@HostBinding parameter should be a property name, 'class.<name>', or 'attr.<name>'.");
                  }

                  host["[".concat(hostBinding.hostPropertyName, "]")] = propName;
                } else {
                  host["[".concat(propName, "]")] = propName;
                }
              });
              var hostListeners = propertyMetadata[propName].filter(function (a) {
                return createHostListener.isTypeOf(a);
              });
              hostListeners.forEach(function (hostListener) {
                var args = hostListener.args || [];
                host["(".concat(hostListener.eventName, ")")] = "".concat(propName, "(").concat(args.join(','), ")");
              });
              var query = findLast(propertyMetadata[propName], function (a) {
                return QUERY_METADATA_IDENTIFIERS.some(function (i) {
                  return i.isTypeOf(a);
                });
              });

              if (query) {
                queries[propName] = query;
              }
            });
            return this._merge(dm, inputs, outputs, host, queries, guards, directiveType);
          }
        }, {
          key: "_extractPublicName",
          value: function _extractPublicName(def) {
            return splitAtColon(def, [null, def])[1].trim();
          }
        }, {
          key: "_dedupeBindings",
          value: function _dedupeBindings(bindings) {
            var names = new Set();
            var publicNames = new Set();
            var reversedResult = []; // go last to first to allow later entries to overwrite previous entries

            for (var i = bindings.length - 1; i >= 0; i--) {
              var binding = bindings[i];

              var name = this._extractPublicName(binding);

              publicNames.add(name);

              if (!names.has(name)) {
                names.add(name);
                reversedResult.push(binding);
              }
            }

            return reversedResult.reverse();
          }
        }, {
          key: "_merge",
          value: function _merge(directive, inputs, outputs, host, queries, guards, directiveType) {
            var mergedInputs = this._dedupeBindings(directive.inputs ? directive.inputs.concat(inputs) : inputs);

            var mergedOutputs = this._dedupeBindings(directive.outputs ? directive.outputs.concat(outputs) : outputs);

            var mergedHost = directive.host ? Object.assign(Object.assign({}, directive.host), host) : host;
            var mergedQueries = directive.queries ? Object.assign(Object.assign({}, directive.queries), queries) : queries;

            if (createComponent.isTypeOf(directive)) {
              var comp = directive;
              return createComponent({
                selector: comp.selector,
                inputs: mergedInputs,
                outputs: mergedOutputs,
                host: mergedHost,
                exportAs: comp.exportAs,
                moduleId: comp.moduleId,
                queries: mergedQueries,
                changeDetection: comp.changeDetection,
                providers: comp.providers,
                viewProviders: comp.viewProviders,
                entryComponents: comp.entryComponents,
                template: comp.template,
                templateUrl: comp.templateUrl,
                styles: comp.styles,
                styleUrls: comp.styleUrls,
                encapsulation: comp.encapsulation,
                animations: comp.animations,
                interpolation: comp.interpolation,
                preserveWhitespaces: directive.preserveWhitespaces
              });
            } else {
              return createDirective({
                selector: directive.selector,
                inputs: mergedInputs,
                outputs: mergedOutputs,
                host: mergedHost,
                exportAs: directive.exportAs,
                queries: mergedQueries,
                providers: directive.providers,
                guards: guards
              });
            }
          }
        }]);

        return DirectiveResolver;
      }();

      function isDirectiveMetadata(type) {
        return createDirective.isTypeOf(type) || createComponent.isTypeOf(type);
      }

      function findLast(arr, condition) {
        for (var i = arr.length - 1; i >= 0; i--) {
          if (condition(arr[i])) {
            return arr[i];
          }
        }

        return null;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * An i18n error.
       */


      var I18nError = /*#__PURE__*/function (_ParseError6) {
        _inherits2(I18nError, _ParseError6);

        var _super108 = _createSuper2(I18nError);

        function I18nError(span, msg) {
          _classCallCheck2(this, I18nError);

          return _super108.call(this, span, msg);
        }

        return I18nError;
      }(ParseError);
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var _I18N_ATTR = 'i18n';
      var _I18N_ATTR_PREFIX = 'i18n-';
      var _I18N_COMMENT_PREFIX_REGEXP = /^i18n:?/;
      var MEANING_SEPARATOR = '|';
      var ID_SEPARATOR = '@@';
      var i18nCommentsWarned = false;
      /**
       * Extract translatable messages from an html AST
       */

      function extractMessages(nodes, interpolationConfig, implicitTags, implicitAttrs) {
        var visitor = new _Visitor$2(implicitTags, implicitAttrs);
        return visitor.extract(nodes, interpolationConfig);
      }

      function mergeTranslations(nodes, translations, interpolationConfig, implicitTags, implicitAttrs) {
        var visitor = new _Visitor$2(implicitTags, implicitAttrs);
        return visitor.merge(nodes, translations, interpolationConfig);
      }

      var ExtractionResult = function ExtractionResult(messages, errors) {
        _classCallCheck2(this, ExtractionResult);

        this.messages = messages;
        this.errors = errors;
      };

      var _VisitorMode;

      (function (_VisitorMode) {
        _VisitorMode[_VisitorMode["Extract"] = 0] = "Extract";
        _VisitorMode[_VisitorMode["Merge"] = 1] = "Merge";
      })(_VisitorMode || (_VisitorMode = {}));
      /**
       * This Visitor is used:
       * 1. to extract all the translatable strings from an html AST (see `extract()`),
       * 2. to replace the translatable strings with the actual translations (see `merge()`)
       *
       * @internal
       */


      var _Visitor$2 = /*#__PURE__*/function () {
        function _Visitor$2(_implicitTags, _implicitAttrs) {
          _classCallCheck2(this, _Visitor$2);

          this._implicitTags = _implicitTags;
          this._implicitAttrs = _implicitAttrs;
        }
        /**
         * Extracts the messages from the tree
         */


        _createClass2(_Visitor$2, [{
          key: "extract",
          value: function extract(nodes, interpolationConfig) {
            var _this247 = this;

            this._init(_VisitorMode.Extract, interpolationConfig);

            nodes.forEach(function (node) {
              return node.visit(_this247, null);
            });

            if (this._inI18nBlock) {
              this._reportError(nodes[nodes.length - 1], 'Unclosed block');
            }

            return new ExtractionResult(this._messages, this._errors);
          }
          /**
           * Returns a tree where all translatable nodes are translated
           */

        }, {
          key: "merge",
          value: function merge(nodes, translations, interpolationConfig) {
            this._init(_VisitorMode.Merge, interpolationConfig);

            this._translations = translations; // Construct a single fake root element

            var wrapper = new Element$1('wrapper', [], nodes, undefined, undefined, undefined);
            var translatedNode = wrapper.visit(this, null);

            if (this._inI18nBlock) {
              this._reportError(nodes[nodes.length - 1], 'Unclosed block');
            }

            return new ParseTreeResult(translatedNode.children, this._errors);
          }
        }, {
          key: "visitExpansionCase",
          value: function visitExpansionCase(icuCase, context) {
            // Parse cases for translatable html attributes
            var expression = visitAll$1(this, icuCase.expression, context);

            if (this._mode === _VisitorMode.Merge) {
              return new ExpansionCase(icuCase.value, expression, icuCase.sourceSpan, icuCase.valueSourceSpan, icuCase.expSourceSpan);
            }
          }
        }, {
          key: "visitExpansion",
          value: function visitExpansion(icu, context) {
            this._mayBeAddBlockChildren(icu);

            var wasInIcu = this._inIcu;

            if (!this._inIcu) {
              // nested ICU messages should not be extracted but top-level translated as a whole
              if (this._isInTranslatableSection) {
                this._addMessage([icu]);
              }

              this._inIcu = true;
            }

            var cases = visitAll$1(this, icu.cases, context);

            if (this._mode === _VisitorMode.Merge) {
              icu = new Expansion(icu.switchValue, icu.type, cases, icu.sourceSpan, icu.switchValueSourceSpan);
            }

            this._inIcu = wasInIcu;
            return icu;
          }
        }, {
          key: "visitComment",
          value: function visitComment(comment, context) {
            var isOpening = _isOpeningComment(comment);

            if (isOpening && this._isInTranslatableSection) {
              this._reportError(comment, 'Could not start a block inside a translatable section');

              return;
            }

            var isClosing = _isClosingComment(comment);

            if (isClosing && !this._inI18nBlock) {
              this._reportError(comment, 'Trying to close an unopened block');

              return;
            }

            if (!this._inI18nNode && !this._inIcu) {
              if (!this._inI18nBlock) {
                if (isOpening) {
                  // deprecated from v5 you should use <ng-container i18n> instead of i18n comments
                  if (!i18nCommentsWarned && console && console.warn) {
                    i18nCommentsWarned = true;
                    var details = comment.sourceSpan.details ? ", ".concat(comment.sourceSpan.details) : ''; // TODO(ocombe): use a log service once there is a public one available

                    console.warn("I18n comments are deprecated, use an <ng-container> element instead (".concat(comment.sourceSpan.start).concat(details, ")"));
                  }

                  this._inI18nBlock = true;
                  this._blockStartDepth = this._depth;
                  this._blockChildren = [];
                  this._blockMeaningAndDesc = comment.value.replace(_I18N_COMMENT_PREFIX_REGEXP, '').trim();

                  this._openTranslatableSection(comment);
                }
              } else {
                if (isClosing) {
                  if (this._depth == this._blockStartDepth) {
                    this._closeTranslatableSection(comment, this._blockChildren);

                    this._inI18nBlock = false;

                    var message = this._addMessage(this._blockChildren, this._blockMeaningAndDesc); // merge attributes in sections


                    var nodes = this._translateMessage(comment, message);

                    return visitAll$1(this, nodes);
                  } else {
                    this._reportError(comment, 'I18N blocks should not cross element boundaries');

                    return;
                  }
                }
              }
            }
          }
        }, {
          key: "visitText",
          value: function visitText(text, context) {
            if (this._isInTranslatableSection) {
              this._mayBeAddBlockChildren(text);
            }

            return text;
          }
        }, {
          key: "visitElement",
          value: function visitElement(el, context) {
            var _this248 = this;

            this._mayBeAddBlockChildren(el);

            this._depth++;
            var wasInI18nNode = this._inI18nNode;
            var wasInImplicitNode = this._inImplicitNode;
            var childNodes = [];
            var translatedChildNodes = undefined; // Extract:
            // - top level nodes with the (implicit) "i18n" attribute if not already in a section
            // - ICU messages

            var i18nAttr = _getI18nAttr(el);

            var i18nMeta = i18nAttr ? i18nAttr.value : '';
            var isImplicit = this._implicitTags.some(function (tag) {
              return el.name === tag;
            }) && !this._inIcu && !this._isInTranslatableSection;
            var isTopLevelImplicit = !wasInImplicitNode && isImplicit;
            this._inImplicitNode = wasInImplicitNode || isImplicit;

            if (!this._isInTranslatableSection && !this._inIcu) {
              if (i18nAttr || isTopLevelImplicit) {
                this._inI18nNode = true;

                var message = this._addMessage(el.children, i18nMeta);

                translatedChildNodes = this._translateMessage(el, message);
              }

              if (this._mode == _VisitorMode.Extract) {
                var isTranslatable = i18nAttr || isTopLevelImplicit;
                if (isTranslatable) this._openTranslatableSection(el);
                visitAll$1(this, el.children);
                if (isTranslatable) this._closeTranslatableSection(el, el.children);
              }
            } else {
              if (i18nAttr || isTopLevelImplicit) {
                this._reportError(el, 'Could not mark an element as translatable inside a translatable section');
              }

              if (this._mode == _VisitorMode.Extract) {
                // Descend into child nodes for extraction
                visitAll$1(this, el.children);
              }
            }

            if (this._mode === _VisitorMode.Merge) {
              var visitNodes = translatedChildNodes || el.children;
              visitNodes.forEach(function (child) {
                var visited = child.visit(_this248, context);

                if (visited && !_this248._isInTranslatableSection) {
                  // Do not add the children from translatable sections (= i18n blocks here)
                  // They will be added later in this loop when the block closes (i.e. on `<!-- /i18n -->`)
                  childNodes = childNodes.concat(visited);
                }
              });
            }

            this._visitAttributesOf(el);

            this._depth--;
            this._inI18nNode = wasInI18nNode;
            this._inImplicitNode = wasInImplicitNode;

            if (this._mode === _VisitorMode.Merge) {
              var translatedAttrs = this._translateAttributes(el);

              return new Element$1(el.name, translatedAttrs, childNodes, el.sourceSpan, el.startSourceSpan, el.endSourceSpan);
            }

            return null;
          }
        }, {
          key: "visitAttribute",
          value: function visitAttribute(attribute, context) {
            throw new Error('unreachable code');
          }
        }, {
          key: "_init",
          value: function _init(mode, interpolationConfig) {
            this._mode = mode;
            this._inI18nBlock = false;
            this._inI18nNode = false;
            this._depth = 0;
            this._inIcu = false;
            this._msgCountAtSectionStart = undefined;
            this._errors = [];
            this._messages = [];
            this._inImplicitNode = false;
            this._createI18nMessage = createI18nMessageFactory(interpolationConfig);
          } // looks for translatable attributes

        }, {
          key: "_visitAttributesOf",
          value: function _visitAttributesOf(el) {
            var _this249 = this;

            var explicitAttrNameToValue = {};
            var implicitAttrNames = this._implicitAttrs[el.name] || [];
            el.attrs.filter(function (attr) {
              return attr.name.startsWith(_I18N_ATTR_PREFIX);
            }).forEach(function (attr) {
              return explicitAttrNameToValue[attr.name.slice(_I18N_ATTR_PREFIX.length)] = attr.value;
            });
            el.attrs.forEach(function (attr) {
              if (attr.name in explicitAttrNameToValue) {
                _this249._addMessage([attr], explicitAttrNameToValue[attr.name]);
              } else if (implicitAttrNames.some(function (name) {
                return attr.name === name;
              })) {
                _this249._addMessage([attr]);
              }
            });
          } // add a translatable message

        }, {
          key: "_addMessage",
          value: function _addMessage(ast, msgMeta) {
            if (ast.length == 0 || ast.length == 1 && ast[0] instanceof Attribute && !ast[0].value) {
              // Do not create empty messages
              return null;
            }

            var _parseMessageMeta2 = _parseMessageMeta(msgMeta),
                meaning = _parseMessageMeta2.meaning,
                description = _parseMessageMeta2.description,
                id = _parseMessageMeta2.id;

            var message = this._createI18nMessage(ast, meaning, description, id);

            this._messages.push(message);

            return message;
          } // Translates the given message given the `TranslationBundle`
          // This is used for translating elements / blocks - see `_translateAttributes` for attributes
          // no-op when called in extraction mode (returns [])

        }, {
          key: "_translateMessage",
          value: function _translateMessage(el, message) {
            if (message && this._mode === _VisitorMode.Merge) {
              var nodes = this._translations.get(message);

              if (nodes) {
                return nodes;
              }

              this._reportError(el, "Translation unavailable for message id=\"".concat(this._translations.digest(message), "\""));
            }

            return [];
          } // translate the attributes of an element and remove i18n specific attributes

        }, {
          key: "_translateAttributes",
          value: function _translateAttributes(el) {
            var _this250 = this;

            var attributes = el.attrs;
            var i18nParsedMessageMeta = {};
            attributes.forEach(function (attr) {
              if (attr.name.startsWith(_I18N_ATTR_PREFIX)) {
                i18nParsedMessageMeta[attr.name.slice(_I18N_ATTR_PREFIX.length)] = _parseMessageMeta(attr.value);
              }
            });
            var translatedAttributes = [];
            attributes.forEach(function (attr) {
              if (attr.name === _I18N_ATTR || attr.name.startsWith(_I18N_ATTR_PREFIX)) {
                // strip i18n specific attributes
                return;
              }

              if (attr.value && attr.value != '' && i18nParsedMessageMeta.hasOwnProperty(attr.name)) {
                var _i18nParsedMessageMet = i18nParsedMessageMeta[attr.name],
                    meaning = _i18nParsedMessageMet.meaning,
                    description = _i18nParsedMessageMet.description,
                    id = _i18nParsedMessageMet.id;

                var message = _this250._createI18nMessage([attr], meaning, description, id);

                var nodes = _this250._translations.get(message);

                if (nodes) {
                  if (nodes.length == 0) {
                    translatedAttributes.push(new Attribute(attr.name, '', attr.sourceSpan));
                  } else if (nodes[0] instanceof Text$3) {
                    var value = nodes[0].value;
                    translatedAttributes.push(new Attribute(attr.name, value, attr.sourceSpan));
                  } else {
                    _this250._reportError(el, "Unexpected translation for attribute \"".concat(attr.name, "\" (id=\"").concat(id || _this250._translations.digest(message), "\")"));
                  }
                } else {
                  _this250._reportError(el, "Translation unavailable for attribute \"".concat(attr.name, "\" (id=\"").concat(id || _this250._translations.digest(message), "\")"));
                }
              } else {
                translatedAttributes.push(attr);
              }
            });
            return translatedAttributes;
          }
          /**
           * Add the node as a child of the block when:
           * - we are in a block,
           * - we are not inside a ICU message (those are handled separately),
           * - the node is a "direct child" of the block
           */

        }, {
          key: "_mayBeAddBlockChildren",
          value: function _mayBeAddBlockChildren(node) {
            if (this._inI18nBlock && !this._inIcu && this._depth == this._blockStartDepth) {
              this._blockChildren.push(node);
            }
          }
          /**
           * Marks the start of a section, see `_closeTranslatableSection`
           */

        }, {
          key: "_openTranslatableSection",
          value: function _openTranslatableSection(node) {
            if (this._isInTranslatableSection) {
              this._reportError(node, 'Unexpected section start');
            } else {
              this._msgCountAtSectionStart = this._messages.length;
            }
          }
          /**
           * A translatable section could be:
           * - the content of translatable element,
           * - nodes between `<!-- i18n -->` and `<!-- /i18n -->` comments
           */

        }, {
          key: "_isInTranslatableSection",
          get: function get() {
            return this._msgCountAtSectionStart !== void 0;
          }
          /**
           * Terminates a section.
           *
           * If a section has only one significant children (comments not significant) then we should not
           * keep the message from this children:
           *
           * `<p i18n="meaning|description">{ICU message}</p>` would produce two messages:
           * - one for the <p> content with meaning and description,
           * - another one for the ICU message.
           *
           * In this case the last message is discarded as it contains less information (the AST is
           * otherwise identical).
           *
           * Note that we should still keep messages extracted from attributes inside the section (ie in the
           * ICU message here)
           */

        }, {
          key: "_closeTranslatableSection",
          value: function _closeTranslatableSection(node, directChildren) {
            if (!this._isInTranslatableSection) {
              this._reportError(node, 'Unexpected section end');

              return;
            }

            var startIndex = this._msgCountAtSectionStart;
            var significantChildren = directChildren.reduce(function (count, node) {
              return count + (node instanceof Comment ? 0 : 1);
            }, 0);

            if (significantChildren == 1) {
              for (var i = this._messages.length - 1; i >= startIndex; i--) {
                var ast = this._messages[i].nodes;

                if (!(ast.length == 1 && ast[0] instanceof Text$1)) {
                  this._messages.splice(i, 1);

                  break;
                }
              }
            }

            this._msgCountAtSectionStart = undefined;
          }
        }, {
          key: "_reportError",
          value: function _reportError(node, msg) {
            this._errors.push(new I18nError(node.sourceSpan, msg));
          }
        }]);

        return _Visitor$2;
      }();

      function _isOpeningComment(n) {
        return !!(n instanceof Comment && n.value && n.value.startsWith('i18n'));
      }

      function _isClosingComment(n) {
        return !!(n instanceof Comment && n.value && n.value === '/i18n');
      }

      function _getI18nAttr(p) {
        return p.attrs.find(function (attr) {
          return attr.name === _I18N_ATTR;
        }) || null;
      }

      function _parseMessageMeta(i18n) {
        if (!i18n) return {
          meaning: '',
          description: '',
          id: ''
        };
        var idIndex = i18n.indexOf(ID_SEPARATOR);
        var descIndex = i18n.indexOf(MEANING_SEPARATOR);

        var _ref23 = idIndex > -1 ? [i18n.slice(0, idIndex), i18n.slice(idIndex + 2)] : [i18n, ''],
            _ref24 = _slicedToArray(_ref23, 2),
            meaningAndDesc = _ref24[0],
            id = _ref24[1];

        var _ref25 = descIndex > -1 ? [meaningAndDesc.slice(0, descIndex), meaningAndDesc.slice(descIndex + 1)] : ['', meaningAndDesc],
            _ref26 = _slicedToArray(_ref25, 2),
            meaning = _ref26[0],
            description = _ref26[1];

        return {
          meaning: meaning,
          description: description,
          id: id.trim()
        };
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var XmlTagDefinition = /*#__PURE__*/function () {
        function XmlTagDefinition() {
          _classCallCheck2(this, XmlTagDefinition);

          this.closedByParent = false;
          this.contentType = TagContentType.PARSABLE_DATA;
          this.isVoid = false;
          this.ignoreFirstLf = false;
          this.canSelfClose = true;
          this.preventNamespaceInheritance = false;
        }

        _createClass2(XmlTagDefinition, [{
          key: "requireExtraParent",
          value: function requireExtraParent(currentParent) {
            return false;
          }
        }, {
          key: "isClosedByChild",
          value: function isClosedByChild(name) {
            return false;
          }
        }]);

        return XmlTagDefinition;
      }();

      var _TAG_DEFINITION = new XmlTagDefinition();

      function getXmlTagDefinition(tagName) {
        return _TAG_DEFINITION;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var XmlParser = /*#__PURE__*/function (_Parser2) {
        _inherits2(XmlParser, _Parser2);

        var _super109 = _createSuper2(XmlParser);

        function XmlParser() {
          _classCallCheck2(this, XmlParser);

          return _super109.call(this, getXmlTagDefinition);
        }

        _createClass2(XmlParser, [{
          key: "parse",
          value: function parse(source, url, options) {
            return _get2(_getPrototypeOf2(XmlParser.prototype), "parse", this).call(this, source, url, options);
          }
        }]);

        return XmlParser;
      }(Parser);
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var _VERSION = '1.2';
      var _XMLNS = 'urn:oasis:names:tc:xliff:document:1.2'; // TODO(vicb): make this a param (s/_/-/)

      var _DEFAULT_SOURCE_LANG = 'en';
      var _PLACEHOLDER_TAG$1 = 'x';
      var _MARKER_TAG = 'mrk';
      var _FILE_TAG = 'file';
      var _SOURCE_TAG$1 = 'source';
      var _SEGMENT_SOURCE_TAG = 'seg-source';
      var _ALT_TRANS_TAG = 'alt-trans';
      var _TARGET_TAG = 'target';
      var _UNIT_TAG = 'trans-unit';
      var _CONTEXT_GROUP_TAG = 'context-group';
      var _CONTEXT_TAG = 'context'; // http://docs.oasis-open.org/xliff/v1.2/os/xliff-core.html
      // http://docs.oasis-open.org/xliff/v1.2/xliff-profile-html/xliff-profile-html-1.2.html

      var Xliff = /*#__PURE__*/function (_Serializer2) {
        _inherits2(Xliff, _Serializer2);

        var _super110 = _createSuper2(Xliff);

        function Xliff() {
          _classCallCheck2(this, Xliff);

          return _super110.apply(this, arguments);
        }

        _createClass2(Xliff, [{
          key: "write",
          value: function write(messages, locale) {
            var visitor = new _WriteVisitor();
            var transUnits = [];
            messages.forEach(function (message) {
              var _transUnit$children;

              var contextTags = [];
              message.sources.forEach(function (source) {
                var contextGroupTag = new Tag(_CONTEXT_GROUP_TAG, {
                  purpose: 'location'
                });
                contextGroupTag.children.push(new CR(10), new Tag(_CONTEXT_TAG, {
                  'context-type': 'sourcefile'
                }, [new Text$2(source.filePath)]), new CR(10), new Tag(_CONTEXT_TAG, {
                  'context-type': 'linenumber'
                }, [new Text$2("".concat(source.startLine))]), new CR(8));
                contextTags.push(new CR(8), contextGroupTag);
              });
              var transUnit = new Tag(_UNIT_TAG, {
                id: message.id,
                datatype: 'html'
              });

              (_transUnit$children = transUnit.children).push.apply(_transUnit$children, [new CR(8), new Tag(_SOURCE_TAG$1, {}, visitor.serialize(message.nodes))].concat(contextTags));

              if (message.description) {
                transUnit.children.push(new CR(8), new Tag('note', {
                  priority: '1',
                  from: 'description'
                }, [new Text$2(message.description)]));
              }

              if (message.meaning) {
                transUnit.children.push(new CR(8), new Tag('note', {
                  priority: '1',
                  from: 'meaning'
                }, [new Text$2(message.meaning)]));
              }

              transUnit.children.push(new CR(6));
              transUnits.push(new CR(6), transUnit);
            });
            var body = new Tag('body', {}, [].concat(transUnits, [new CR(4)]));
            var file = new Tag('file', {
              'source-language': locale || _DEFAULT_SOURCE_LANG,
              datatype: 'plaintext',
              original: 'ng2.template'
            }, [new CR(4), body, new CR(2)]);
            var xliff = new Tag('xliff', {
              version: _VERSION,
              xmlns: _XMLNS
            }, [new CR(2), file, new CR()]);
            return serialize([new Declaration({
              version: '1.0',
              encoding: 'UTF-8'
            }), new CR(), xliff, new CR()]);
          }
        }, {
          key: "load",
          value: function load(content, url) {
            // xliff to xml nodes
            var xliffParser = new XliffParser();

            var _xliffParser$parse = xliffParser.parse(content, url),
                locale = _xliffParser$parse.locale,
                msgIdToHtml = _xliffParser$parse.msgIdToHtml,
                errors = _xliffParser$parse.errors; // xml nodes to i18n nodes


            var i18nNodesByMsgId = {};
            var converter = new XmlToI18n();
            Object.keys(msgIdToHtml).forEach(function (msgId) {
              var _converter$convert = converter.convert(msgIdToHtml[msgId], url),
                  i18nNodes = _converter$convert.i18nNodes,
                  e = _converter$convert.errors;

              errors.push.apply(errors, _toConsumableArray(e));
              i18nNodesByMsgId[msgId] = i18nNodes;
            });

            if (errors.length) {
              throw new Error("xliff parse errors:\n".concat(errors.join('\n')));
            }

            return {
              locale: locale,
              i18nNodesByMsgId: i18nNodesByMsgId
            };
          }
        }, {
          key: "digest",
          value: function digest(message) {
            return _digest2(message);
          }
        }]);

        return Xliff;
      }(Serializer);

      var _WriteVisitor = /*#__PURE__*/function () {
        function _WriteVisitor() {
          _classCallCheck2(this, _WriteVisitor);
        }

        _createClass2(_WriteVisitor, [{
          key: "visitText",
          value: function visitText(text, context) {
            return [new Text$2(text.value)];
          }
        }, {
          key: "visitContainer",
          value: function visitContainer(container, context) {
            var _this251 = this;

            var nodes = [];
            container.children.forEach(function (node) {
              return nodes.push.apply(nodes, _toConsumableArray(node.visit(_this251)));
            });
            return nodes;
          }
        }, {
          key: "visitIcu",
          value: function visitIcu(icu, context) {
            var _this252 = this;

            var nodes = [new Text$2("{".concat(icu.expressionPlaceholder, ", ").concat(icu.type, ", "))];
            Object.keys(icu.cases).forEach(function (c) {
              nodes.push.apply(nodes, [new Text$2("".concat(c, " {"))].concat(_toConsumableArray(icu.cases[c].visit(_this252)), [new Text$2("} ")]));
            });
            nodes.push(new Text$2("}"));
            return nodes;
          }
        }, {
          key: "visitTagPlaceholder",
          value: function visitTagPlaceholder(ph, context) {
            var ctype = getCtypeForTag(ph.tag);

            if (ph.isVoid) {
              // void tags have no children nor closing tags
              return [new Tag(_PLACEHOLDER_TAG$1, {
                id: ph.startName,
                ctype: ctype,
                'equiv-text': "<".concat(ph.tag, "/>")
              })];
            }

            var startTagPh = new Tag(_PLACEHOLDER_TAG$1, {
              id: ph.startName,
              ctype: ctype,
              'equiv-text': "<".concat(ph.tag, ">")
            });
            var closeTagPh = new Tag(_PLACEHOLDER_TAG$1, {
              id: ph.closeName,
              ctype: ctype,
              'equiv-text': "</".concat(ph.tag, ">")
            });
            return [startTagPh].concat(_toConsumableArray(this.serialize(ph.children)), [closeTagPh]);
          }
        }, {
          key: "visitPlaceholder",
          value: function visitPlaceholder(ph, context) {
            return [new Tag(_PLACEHOLDER_TAG$1, {
              id: ph.name,
              'equiv-text': "{{".concat(ph.value, "}}")
            })];
          }
        }, {
          key: "visitIcuPlaceholder",
          value: function visitIcuPlaceholder(ph, context) {
            var equivText = "{".concat(ph.value.expression, ", ").concat(ph.value.type, ", ").concat(Object.keys(ph.value.cases).map(function (value) {
              return value + ' {...}';
            }).join(' '), "}");
            return [new Tag(_PLACEHOLDER_TAG$1, {
              id: ph.name,
              'equiv-text': equivText
            })];
          }
        }, {
          key: "serialize",
          value: function serialize(nodes) {
            var _ref27,
                _this253 = this;

            return (_ref27 = []).concat.apply(_ref27, _toConsumableArray(nodes.map(function (node) {
              return node.visit(_this253);
            })));
          }
        }]);

        return _WriteVisitor;
      }(); // TODO(vicb): add error management (structure)
      // Extract messages as xml nodes from the xliff file


      var XliffParser = /*#__PURE__*/function () {
        function XliffParser() {
          _classCallCheck2(this, XliffParser);

          this._locale = null;
        }

        _createClass2(XliffParser, [{
          key: "parse",
          value: function parse(xliff, url) {
            this._unitMlString = null;
            this._msgIdToHtml = {};
            var xml = new XmlParser().parse(xliff, url);
            this._errors = xml.errors;
            visitAll$1(this, xml.rootNodes, null);
            return {
              msgIdToHtml: this._msgIdToHtml,
              errors: this._errors,
              locale: this._locale
            };
          }
        }, {
          key: "visitElement",
          value: function visitElement(element, context) {
            switch (element.name) {
              case _UNIT_TAG:
                this._unitMlString = null;
                var idAttr = element.attrs.find(function (attr) {
                  return attr.name === 'id';
                });

                if (!idAttr) {
                  this._addError(element, "<".concat(_UNIT_TAG, "> misses the \"id\" attribute"));
                } else {
                  var id = idAttr.value;

                  if (this._msgIdToHtml.hasOwnProperty(id)) {
                    this._addError(element, "Duplicated translations for msg ".concat(id));
                  } else {
                    visitAll$1(this, element.children, null);

                    if (typeof this._unitMlString === 'string') {
                      this._msgIdToHtml[id] = this._unitMlString;
                    } else {
                      this._addError(element, "Message ".concat(id, " misses a translation"));
                    }
                  }
                }

                break;
              // ignore those tags

              case _SOURCE_TAG$1:
              case _SEGMENT_SOURCE_TAG:
              case _ALT_TRANS_TAG:
                break;

              case _TARGET_TAG:
                var innerTextStart = element.startSourceSpan.end.offset;
                var innerTextEnd = element.endSourceSpan.start.offset;
                var content = element.startSourceSpan.start.file.content;
                var innerText = content.slice(innerTextStart, innerTextEnd);
                this._unitMlString = innerText;
                break;

              case _FILE_TAG:
                var localeAttr = element.attrs.find(function (attr) {
                  return attr.name === 'target-language';
                });

                if (localeAttr) {
                  this._locale = localeAttr.value;
                }

                visitAll$1(this, element.children, null);
                break;

              default:
                // TODO(vicb): assert file structure, xliff version
                // For now only recurse on unhandled nodes
                visitAll$1(this, element.children, null);
            }
          }
        }, {
          key: "visitAttribute",
          value: function visitAttribute(attribute, context) {}
        }, {
          key: "visitText",
          value: function visitText(text, context) {}
        }, {
          key: "visitComment",
          value: function visitComment(comment, context) {}
        }, {
          key: "visitExpansion",
          value: function visitExpansion(expansion, context) {}
        }, {
          key: "visitExpansionCase",
          value: function visitExpansionCase(expansionCase, context) {}
        }, {
          key: "_addError",
          value: function _addError(node, message) {
            this._errors.push(new I18nError(node.sourceSpan, message));
          }
        }]);

        return XliffParser;
      }(); // Convert ml nodes (xliff syntax) to i18n nodes


      var XmlToI18n = /*#__PURE__*/function () {
        function XmlToI18n() {
          _classCallCheck2(this, XmlToI18n);
        }

        _createClass2(XmlToI18n, [{
          key: "convert",
          value: function convert(message, url) {
            var _ref28;

            var xmlIcu = new XmlParser().parse(message, url, {
              tokenizeExpansionForms: true
            });
            this._errors = xmlIcu.errors;
            var i18nNodes = this._errors.length > 0 || xmlIcu.rootNodes.length == 0 ? [] : (_ref28 = []).concat.apply(_ref28, _toConsumableArray(visitAll$1(this, xmlIcu.rootNodes)));
            return {
              i18nNodes: i18nNodes,
              errors: this._errors
            };
          }
        }, {
          key: "visitText",
          value: function visitText(text, context) {
            return new Text$1(text.value, text.sourceSpan);
          }
        }, {
          key: "visitElement",
          value: function visitElement(el, context) {
            if (el.name === _PLACEHOLDER_TAG$1) {
              var nameAttr = el.attrs.find(function (attr) {
                return attr.name === 'id';
              });

              if (nameAttr) {
                return new Placeholder('', nameAttr.value, el.sourceSpan);
              }

              this._addError(el, "<".concat(_PLACEHOLDER_TAG$1, "> misses the \"id\" attribute"));

              return null;
            }

            if (el.name === _MARKER_TAG) {
              var _ref29;

              return (_ref29 = []).concat.apply(_ref29, _toConsumableArray(visitAll$1(this, el.children)));
            }

            this._addError(el, "Unexpected tag");

            return null;
          }
        }, {
          key: "visitExpansion",
          value: function visitExpansion(icu, context) {
            var caseMap = {};
            visitAll$1(this, icu.cases).forEach(function (c) {
              caseMap[c.value] = new Container(c.nodes, icu.sourceSpan);
            });
            return new Icu$1(icu.switchValue, icu.type, caseMap, icu.sourceSpan);
          }
        }, {
          key: "visitExpansionCase",
          value: function visitExpansionCase(icuCase, context) {
            return {
              value: icuCase.value,
              nodes: visitAll$1(this, icuCase.expression)
            };
          }
        }, {
          key: "visitComment",
          value: function visitComment(comment, context) {}
        }, {
          key: "visitAttribute",
          value: function visitAttribute(attribute, context) {}
        }, {
          key: "_addError",
          value: function _addError(node, message) {
            this._errors.push(new I18nError(node.sourceSpan, message));
          }
        }]);

        return XmlToI18n;
      }();

      function getCtypeForTag(tag) {
        switch (tag.toLowerCase()) {
          case 'br':
            return 'lb';

          case 'img':
            return 'image';

          default:
            return "x-".concat(tag);
        }
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var _VERSION$1 = '2.0';
      var _XMLNS$1 = 'urn:oasis:names:tc:xliff:document:2.0'; // TODO(vicb): make this a param (s/_/-/)

      var _DEFAULT_SOURCE_LANG$1 = 'en';
      var _PLACEHOLDER_TAG$2 = 'ph';
      var _PLACEHOLDER_SPANNING_TAG = 'pc';
      var _MARKER_TAG$1 = 'mrk';
      var _XLIFF_TAG = 'xliff';
      var _SOURCE_TAG$2 = 'source';
      var _TARGET_TAG$1 = 'target';
      var _UNIT_TAG$1 = 'unit'; // http://docs.oasis-open.org/xliff/xliff-core/v2.0/os/xliff-core-v2.0-os.html

      var Xliff2 = /*#__PURE__*/function (_Serializer3) {
        _inherits2(Xliff2, _Serializer3);

        var _super111 = _createSuper2(Xliff2);

        function Xliff2() {
          _classCallCheck2(this, Xliff2);

          return _super111.apply(this, arguments);
        }

        _createClass2(Xliff2, [{
          key: "write",
          value: function write(messages, locale) {
            var visitor = new _WriteVisitor$1();
            var units = [];
            messages.forEach(function (message) {
              var unit = new Tag(_UNIT_TAG$1, {
                id: message.id
              });
              var notes = new Tag('notes');

              if (message.description || message.meaning) {
                if (message.description) {
                  notes.children.push(new CR(8), new Tag('note', {
                    category: 'description'
                  }, [new Text$2(message.description)]));
                }

                if (message.meaning) {
                  notes.children.push(new CR(8), new Tag('note', {
                    category: 'meaning'
                  }, [new Text$2(message.meaning)]));
                }
              }

              message.sources.forEach(function (source) {
                notes.children.push(new CR(8), new Tag('note', {
                  category: 'location'
                }, [new Text$2("".concat(source.filePath, ":").concat(source.startLine).concat(source.endLine !== source.startLine ? ',' + source.endLine : ''))]));
              });
              notes.children.push(new CR(6));
              unit.children.push(new CR(6), notes);
              var segment = new Tag('segment');
              segment.children.push(new CR(8), new Tag(_SOURCE_TAG$2, {}, visitor.serialize(message.nodes)), new CR(6));
              unit.children.push(new CR(6), segment, new CR(4));
              units.push(new CR(4), unit);
            });
            var file = new Tag('file', {
              'original': 'ng.template',
              id: 'ngi18n'
            }, [].concat(units, [new CR(2)]));
            var xliff = new Tag(_XLIFF_TAG, {
              version: _VERSION$1,
              xmlns: _XMLNS$1,
              srcLang: locale || _DEFAULT_SOURCE_LANG$1
            }, [new CR(2), file, new CR()]);
            return serialize([new Declaration({
              version: '1.0',
              encoding: 'UTF-8'
            }), new CR(), xliff, new CR()]);
          }
        }, {
          key: "load",
          value: function load(content, url) {
            // xliff to xml nodes
            var xliff2Parser = new Xliff2Parser();

            var _xliff2Parser$parse = xliff2Parser.parse(content, url),
                locale = _xliff2Parser$parse.locale,
                msgIdToHtml = _xliff2Parser$parse.msgIdToHtml,
                errors = _xliff2Parser$parse.errors; // xml nodes to i18n nodes


            var i18nNodesByMsgId = {};
            var converter = new XmlToI18n$1();
            Object.keys(msgIdToHtml).forEach(function (msgId) {
              var _converter$convert2 = converter.convert(msgIdToHtml[msgId], url),
                  i18nNodes = _converter$convert2.i18nNodes,
                  e = _converter$convert2.errors;

              errors.push.apply(errors, _toConsumableArray(e));
              i18nNodesByMsgId[msgId] = i18nNodes;
            });

            if (errors.length) {
              throw new Error("xliff2 parse errors:\n".concat(errors.join('\n')));
            }

            return {
              locale: locale,
              i18nNodesByMsgId: i18nNodesByMsgId
            };
          }
        }, {
          key: "digest",
          value: function digest(message) {
            return decimalDigest(message);
          }
        }]);

        return Xliff2;
      }(Serializer);

      var _WriteVisitor$1 = /*#__PURE__*/function () {
        function _WriteVisitor$1() {
          _classCallCheck2(this, _WriteVisitor$1);
        }

        _createClass2(_WriteVisitor$1, [{
          key: "visitText",
          value: function visitText(text, context) {
            return [new Text$2(text.value)];
          }
        }, {
          key: "visitContainer",
          value: function visitContainer(container, context) {
            var _this254 = this;

            var nodes = [];
            container.children.forEach(function (node) {
              return nodes.push.apply(nodes, _toConsumableArray(node.visit(_this254)));
            });
            return nodes;
          }
        }, {
          key: "visitIcu",
          value: function visitIcu(icu, context) {
            var _this255 = this;

            var nodes = [new Text$2("{".concat(icu.expressionPlaceholder, ", ").concat(icu.type, ", "))];
            Object.keys(icu.cases).forEach(function (c) {
              nodes.push.apply(nodes, [new Text$2("".concat(c, " {"))].concat(_toConsumableArray(icu.cases[c].visit(_this255)), [new Text$2("} ")]));
            });
            nodes.push(new Text$2("}"));
            return nodes;
          }
        }, {
          key: "visitTagPlaceholder",
          value: function visitTagPlaceholder(ph, context) {
            var _ref30,
                _this256 = this;

            var type = getTypeForTag(ph.tag);

            if (ph.isVoid) {
              var tagPh = new Tag(_PLACEHOLDER_TAG$2, {
                id: (this._nextPlaceholderId++).toString(),
                equiv: ph.startName,
                type: type,
                disp: "<".concat(ph.tag, "/>")
              });
              return [tagPh];
            }

            var tagPc = new Tag(_PLACEHOLDER_SPANNING_TAG, {
              id: (this._nextPlaceholderId++).toString(),
              equivStart: ph.startName,
              equivEnd: ph.closeName,
              type: type,
              dispStart: "<".concat(ph.tag, ">"),
              dispEnd: "</".concat(ph.tag, ">")
            });

            var nodes = (_ref30 = []).concat.apply(_ref30, _toConsumableArray(ph.children.map(function (node) {
              return node.visit(_this256);
            })));

            if (nodes.length) {
              nodes.forEach(function (node) {
                return tagPc.children.push(node);
              });
            } else {
              tagPc.children.push(new Text$2(''));
            }

            return [tagPc];
          }
        }, {
          key: "visitPlaceholder",
          value: function visitPlaceholder(ph, context) {
            var idStr = (this._nextPlaceholderId++).toString();
            return [new Tag(_PLACEHOLDER_TAG$2, {
              id: idStr,
              equiv: ph.name,
              disp: "{{".concat(ph.value, "}}")
            })];
          }
        }, {
          key: "visitIcuPlaceholder",
          value: function visitIcuPlaceholder(ph, context) {
            var cases = Object.keys(ph.value.cases).map(function (value) {
              return value + ' {...}';
            }).join(' ');
            var idStr = (this._nextPlaceholderId++).toString();
            return [new Tag(_PLACEHOLDER_TAG$2, {
              id: idStr,
              equiv: ph.name,
              disp: "{".concat(ph.value.expression, ", ").concat(ph.value.type, ", ").concat(cases, "}")
            })];
          }
        }, {
          key: "serialize",
          value: function serialize(nodes) {
            var _ref31,
                _this257 = this;

            this._nextPlaceholderId = 0;
            return (_ref31 = []).concat.apply(_ref31, _toConsumableArray(nodes.map(function (node) {
              return node.visit(_this257);
            })));
          }
        }]);

        return _WriteVisitor$1;
      }(); // Extract messages as xml nodes from the xliff file


      var Xliff2Parser = /*#__PURE__*/function () {
        function Xliff2Parser() {
          _classCallCheck2(this, Xliff2Parser);

          this._locale = null;
        }

        _createClass2(Xliff2Parser, [{
          key: "parse",
          value: function parse(xliff, url) {
            this._unitMlString = null;
            this._msgIdToHtml = {};
            var xml = new XmlParser().parse(xliff, url);
            this._errors = xml.errors;
            visitAll$1(this, xml.rootNodes, null);
            return {
              msgIdToHtml: this._msgIdToHtml,
              errors: this._errors,
              locale: this._locale
            };
          }
        }, {
          key: "visitElement",
          value: function visitElement(element, context) {
            switch (element.name) {
              case _UNIT_TAG$1:
                this._unitMlString = null;
                var idAttr = element.attrs.find(function (attr) {
                  return attr.name === 'id';
                });

                if (!idAttr) {
                  this._addError(element, "<".concat(_UNIT_TAG$1, "> misses the \"id\" attribute"));
                } else {
                  var id = idAttr.value;

                  if (this._msgIdToHtml.hasOwnProperty(id)) {
                    this._addError(element, "Duplicated translations for msg ".concat(id));
                  } else {
                    visitAll$1(this, element.children, null);

                    if (typeof this._unitMlString === 'string') {
                      this._msgIdToHtml[id] = this._unitMlString;
                    } else {
                      this._addError(element, "Message ".concat(id, " misses a translation"));
                    }
                  }
                }

                break;

              case _SOURCE_TAG$2:
                // ignore source message
                break;

              case _TARGET_TAG$1:
                var innerTextStart = element.startSourceSpan.end.offset;
                var innerTextEnd = element.endSourceSpan.start.offset;
                var content = element.startSourceSpan.start.file.content;
                var innerText = content.slice(innerTextStart, innerTextEnd);
                this._unitMlString = innerText;
                break;

              case _XLIFF_TAG:
                var localeAttr = element.attrs.find(function (attr) {
                  return attr.name === 'trgLang';
                });

                if (localeAttr) {
                  this._locale = localeAttr.value;
                }

                var versionAttr = element.attrs.find(function (attr) {
                  return attr.name === 'version';
                });

                if (versionAttr) {
                  var version = versionAttr.value;

                  if (version !== '2.0') {
                    this._addError(element, "The XLIFF file version ".concat(version, " is not compatible with XLIFF 2.0 serializer"));
                  } else {
                    visitAll$1(this, element.children, null);
                  }
                }

                break;

              default:
                visitAll$1(this, element.children, null);
            }
          }
        }, {
          key: "visitAttribute",
          value: function visitAttribute(attribute, context) {}
        }, {
          key: "visitText",
          value: function visitText(text, context) {}
        }, {
          key: "visitComment",
          value: function visitComment(comment, context) {}
        }, {
          key: "visitExpansion",
          value: function visitExpansion(expansion, context) {}
        }, {
          key: "visitExpansionCase",
          value: function visitExpansionCase(expansionCase, context) {}
        }, {
          key: "_addError",
          value: function _addError(node, message) {
            this._errors.push(new I18nError(node.sourceSpan, message));
          }
        }]);

        return Xliff2Parser;
      }(); // Convert ml nodes (xliff syntax) to i18n nodes


      var XmlToI18n$1 = /*#__PURE__*/function () {
        function XmlToI18n$1() {
          _classCallCheck2(this, XmlToI18n$1);
        }

        _createClass2(XmlToI18n$1, [{
          key: "convert",
          value: function convert(message, url) {
            var _ref32;

            var xmlIcu = new XmlParser().parse(message, url, {
              tokenizeExpansionForms: true
            });
            this._errors = xmlIcu.errors;
            var i18nNodes = this._errors.length > 0 || xmlIcu.rootNodes.length == 0 ? [] : (_ref32 = []).concat.apply(_ref32, _toConsumableArray(visitAll$1(this, xmlIcu.rootNodes)));
            return {
              i18nNodes: i18nNodes,
              errors: this._errors
            };
          }
        }, {
          key: "visitText",
          value: function visitText(text, context) {
            return new Text$1(text.value, text.sourceSpan);
          }
        }, {
          key: "visitElement",
          value: function visitElement(el, context) {
            var _this258 = this,
                _ref33;

            switch (el.name) {
              case _PLACEHOLDER_TAG$2:
                var nameAttr = el.attrs.find(function (attr) {
                  return attr.name === 'equiv';
                });

                if (nameAttr) {
                  return [new Placeholder('', nameAttr.value, el.sourceSpan)];
                }

                this._addError(el, "<".concat(_PLACEHOLDER_TAG$2, "> misses the \"equiv\" attribute"));

                break;

              case _PLACEHOLDER_SPANNING_TAG:
                var startAttr = el.attrs.find(function (attr) {
                  return attr.name === 'equivStart';
                });
                var endAttr = el.attrs.find(function (attr) {
                  return attr.name === 'equivEnd';
                });

                if (!startAttr) {
                  this._addError(el, "<".concat(_PLACEHOLDER_TAG$2, "> misses the \"equivStart\" attribute"));
                } else if (!endAttr) {
                  this._addError(el, "<".concat(_PLACEHOLDER_TAG$2, "> misses the \"equivEnd\" attribute"));
                } else {
                  var startId = startAttr.value;
                  var endId = endAttr.value;
                  var nodes = [];
                  return nodes.concat.apply(nodes, [new Placeholder('', startId, el.sourceSpan)].concat(_toConsumableArray(el.children.map(function (node) {
                    return node.visit(_this258, null);
                  })), [new Placeholder('', endId, el.sourceSpan)]));
                }

                break;

              case _MARKER_TAG$1:
                return (_ref33 = []).concat.apply(_ref33, _toConsumableArray(visitAll$1(this, el.children)));

              default:
                this._addError(el, "Unexpected tag");

            }

            return null;
          }
        }, {
          key: "visitExpansion",
          value: function visitExpansion(icu, context) {
            var caseMap = {};
            visitAll$1(this, icu.cases).forEach(function (c) {
              caseMap[c.value] = new Container(c.nodes, icu.sourceSpan);
            });
            return new Icu$1(icu.switchValue, icu.type, caseMap, icu.sourceSpan);
          }
        }, {
          key: "visitExpansionCase",
          value: function visitExpansionCase(icuCase, context) {
            var _ref34;

            return {
              value: icuCase.value,
              nodes: (_ref34 = []).concat.apply(_ref34, _toConsumableArray(visitAll$1(this, icuCase.expression)))
            };
          }
        }, {
          key: "visitComment",
          value: function visitComment(comment, context) {}
        }, {
          key: "visitAttribute",
          value: function visitAttribute(attribute, context) {}
        }, {
          key: "_addError",
          value: function _addError(node, message) {
            this._errors.push(new I18nError(node.sourceSpan, message));
          }
        }]);

        return XmlToI18n$1;
      }();

      function getTypeForTag(tag) {
        switch (tag.toLowerCase()) {
          case 'br':
          case 'b':
          case 'i':
          case 'u':
            return 'fmt';

          case 'img':
            return 'image';

          case 'a':
            return 'link';

          default:
            return 'other';
        }
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var _TRANSLATIONS_TAG = 'translationbundle';
      var _TRANSLATION_TAG = 'translation';
      var _PLACEHOLDER_TAG$3 = 'ph';

      var Xtb = /*#__PURE__*/function (_Serializer4) {
        _inherits2(Xtb, _Serializer4);

        var _super112 = _createSuper2(Xtb);

        function Xtb() {
          _classCallCheck2(this, Xtb);

          return _super112.apply(this, arguments);
        }

        _createClass2(Xtb, [{
          key: "write",
          value: function write(messages, locale) {
            throw new Error('Unsupported');
          }
        }, {
          key: "load",
          value: function load(content, url) {
            // xtb to xml nodes
            var xtbParser = new XtbParser();

            var _xtbParser$parse = xtbParser.parse(content, url),
                locale = _xtbParser$parse.locale,
                msgIdToHtml = _xtbParser$parse.msgIdToHtml,
                errors = _xtbParser$parse.errors; // xml nodes to i18n nodes


            var i18nNodesByMsgId = {};
            var converter = new XmlToI18n$2(); // Because we should be able to load xtb files that rely on features not supported by angular,
            // we need to delay the conversion of html to i18n nodes so that non angular messages are not
            // converted

            Object.keys(msgIdToHtml).forEach(function (msgId) {
              var valueFn = function valueFn() {
                var _converter$convert3 = converter.convert(msgIdToHtml[msgId], url),
                    i18nNodes = _converter$convert3.i18nNodes,
                    errors = _converter$convert3.errors;

                if (errors.length) {
                  throw new Error("xtb parse errors:\n".concat(errors.join('\n')));
                }

                return i18nNodes;
              };

              createLazyProperty(i18nNodesByMsgId, msgId, valueFn);
            });

            if (errors.length) {
              throw new Error("xtb parse errors:\n".concat(errors.join('\n')));
            }

            return {
              locale: locale,
              i18nNodesByMsgId: i18nNodesByMsgId
            };
          }
        }, {
          key: "digest",
          value: function digest(message) {
            return digest$1(message);
          }
        }, {
          key: "createNameMapper",
          value: function createNameMapper(message) {
            return new SimplePlaceholderMapper(message, toPublicName);
          }
        }]);

        return Xtb;
      }(Serializer);

      function createLazyProperty(messages, id, valueFn) {
        Object.defineProperty(messages, id, {
          configurable: true,
          enumerable: true,
          get: function get() {
            var value = valueFn();
            Object.defineProperty(messages, id, {
              enumerable: true,
              value: value
            });
            return value;
          },
          set: function set(_) {
            throw new Error('Could not overwrite an XTB translation');
          }
        });
      } // Extract messages as xml nodes from the xtb file


      var XtbParser = /*#__PURE__*/function () {
        function XtbParser() {
          _classCallCheck2(this, XtbParser);

          this._locale = null;
        }

        _createClass2(XtbParser, [{
          key: "parse",
          value: function parse(xtb, url) {
            this._bundleDepth = 0;
            this._msgIdToHtml = {}; // We can not parse the ICU messages at this point as some messages might not originate
            // from Angular that could not be lex'd.

            var xml = new XmlParser().parse(xtb, url);
            this._errors = xml.errors;
            visitAll$1(this, xml.rootNodes);
            return {
              msgIdToHtml: this._msgIdToHtml,
              errors: this._errors,
              locale: this._locale
            };
          }
        }, {
          key: "visitElement",
          value: function visitElement(element, context) {
            switch (element.name) {
              case _TRANSLATIONS_TAG:
                this._bundleDepth++;

                if (this._bundleDepth > 1) {
                  this._addError(element, "<".concat(_TRANSLATIONS_TAG, "> elements can not be nested"));
                }

                var langAttr = element.attrs.find(function (attr) {
                  return attr.name === 'lang';
                });

                if (langAttr) {
                  this._locale = langAttr.value;
                }

                visitAll$1(this, element.children, null);
                this._bundleDepth--;
                break;

              case _TRANSLATION_TAG:
                var idAttr = element.attrs.find(function (attr) {
                  return attr.name === 'id';
                });

                if (!idAttr) {
                  this._addError(element, "<".concat(_TRANSLATION_TAG, "> misses the \"id\" attribute"));
                } else {
                  var id = idAttr.value;

                  if (this._msgIdToHtml.hasOwnProperty(id)) {
                    this._addError(element, "Duplicated translations for msg ".concat(id));
                  } else {
                    var innerTextStart = element.startSourceSpan.end.offset;
                    var innerTextEnd = element.endSourceSpan.start.offset;
                    var content = element.startSourceSpan.start.file.content;
                    var innerText = content.slice(innerTextStart, innerTextEnd);
                    this._msgIdToHtml[id] = innerText;
                  }
                }

                break;

              default:
                this._addError(element, 'Unexpected tag');

            }
          }
        }, {
          key: "visitAttribute",
          value: function visitAttribute(attribute, context) {}
        }, {
          key: "visitText",
          value: function visitText(text, context) {}
        }, {
          key: "visitComment",
          value: function visitComment(comment, context) {}
        }, {
          key: "visitExpansion",
          value: function visitExpansion(expansion, context) {}
        }, {
          key: "visitExpansionCase",
          value: function visitExpansionCase(expansionCase, context) {}
        }, {
          key: "_addError",
          value: function _addError(node, message) {
            this._errors.push(new I18nError(node.sourceSpan, message));
          }
        }]);

        return XtbParser;
      }(); // Convert ml nodes (xtb syntax) to i18n nodes


      var XmlToI18n$2 = /*#__PURE__*/function () {
        function XmlToI18n$2() {
          _classCallCheck2(this, XmlToI18n$2);
        }

        _createClass2(XmlToI18n$2, [{
          key: "convert",
          value: function convert(message, url) {
            var xmlIcu = new XmlParser().parse(message, url, {
              tokenizeExpansionForms: true
            });
            this._errors = xmlIcu.errors;
            var i18nNodes = this._errors.length > 0 || xmlIcu.rootNodes.length == 0 ? [] : visitAll$1(this, xmlIcu.rootNodes);
            return {
              i18nNodes: i18nNodes,
              errors: this._errors
            };
          }
        }, {
          key: "visitText",
          value: function visitText(text, context) {
            return new Text$1(text.value, text.sourceSpan);
          }
        }, {
          key: "visitExpansion",
          value: function visitExpansion(icu, context) {
            var caseMap = {};
            visitAll$1(this, icu.cases).forEach(function (c) {
              caseMap[c.value] = new Container(c.nodes, icu.sourceSpan);
            });
            return new Icu$1(icu.switchValue, icu.type, caseMap, icu.sourceSpan);
          }
        }, {
          key: "visitExpansionCase",
          value: function visitExpansionCase(icuCase, context) {
            return {
              value: icuCase.value,
              nodes: visitAll$1(this, icuCase.expression)
            };
          }
        }, {
          key: "visitElement",
          value: function visitElement(el, context) {
            if (el.name === _PLACEHOLDER_TAG$3) {
              var nameAttr = el.attrs.find(function (attr) {
                return attr.name === 'name';
              });

              if (nameAttr) {
                return new Placeholder('', nameAttr.value, el.sourceSpan);
              }

              this._addError(el, "<".concat(_PLACEHOLDER_TAG$3, "> misses the \"name\" attribute"));
            } else {
              this._addError(el, "Unexpected tag");
            }

            return null;
          }
        }, {
          key: "visitComment",
          value: function visitComment(comment, context) {}
        }, {
          key: "visitAttribute",
          value: function visitAttribute(attribute, context) {}
        }, {
          key: "_addError",
          value: function _addError(node, message) {
            this._errors.push(new I18nError(node.sourceSpan, message));
          }
        }]);

        return XmlToI18n$2;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * A container for translated messages
       */


      var TranslationBundle = /*#__PURE__*/function () {
        function TranslationBundle() {
          var _i18nNodesByMsgId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};

          var locale = arguments.length > 1 ? arguments[1] : undefined;
          var digest = arguments.length > 2 ? arguments[2] : undefined;
          var mapperFactory = arguments.length > 3 ? arguments[3] : undefined;
          var missingTranslationStrategy = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : MissingTranslationStrategy.Warning;
          var console = arguments.length > 5 ? arguments[5] : undefined;

          _classCallCheck2(this, TranslationBundle);

          this._i18nNodesByMsgId = _i18nNodesByMsgId;
          this.digest = digest;
          this.mapperFactory = mapperFactory;
          this._i18nToHtml = new I18nToHtmlVisitor(_i18nNodesByMsgId, locale, digest, mapperFactory, missingTranslationStrategy, console);
        } // Creates a `TranslationBundle` by parsing the given `content` with the `serializer`.


        _createClass2(TranslationBundle, [{
          key: "get",
          value: // Returns the translation as HTML nodes from the given source message.
          function get(srcMsg) {
            var html = this._i18nToHtml.convert(srcMsg);

            if (html.errors.length) {
              throw new Error(html.errors.join('\n'));
            }

            return html.nodes;
          }
        }, {
          key: "has",
          value: function has(srcMsg) {
            return this.digest(srcMsg) in this._i18nNodesByMsgId;
          }
        }], [{
          key: "load",
          value: function load(content, url, serializer, missingTranslationStrategy, console) {
            var _serializer$load = serializer.load(content, url),
                locale = _serializer$load.locale,
                i18nNodesByMsgId = _serializer$load.i18nNodesByMsgId;

            var digestFn = function digestFn(m) {
              return serializer.digest(m);
            };

            var mapperFactory = function mapperFactory(m) {
              return serializer.createNameMapper(m);
            };

            return new TranslationBundle(i18nNodesByMsgId, locale, digestFn, mapperFactory, missingTranslationStrategy, console);
          }
        }]);

        return TranslationBundle;
      }();

      var I18nToHtmlVisitor = /*#__PURE__*/function () {
        function I18nToHtmlVisitor() {
          var _i18nNodesByMsgId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};

          var _locale = arguments.length > 1 ? arguments[1] : undefined;

          var _digest = arguments.length > 2 ? arguments[2] : undefined;

          var _mapperFactory = arguments.length > 3 ? arguments[3] : undefined;

          var _missingTranslationStrategy = arguments.length > 4 ? arguments[4] : undefined;

          var _console = arguments.length > 5 ? arguments[5] : undefined;

          _classCallCheck2(this, I18nToHtmlVisitor);

          this._i18nNodesByMsgId = _i18nNodesByMsgId;
          this._locale = _locale;
          this._digest = _digest;
          this._mapperFactory = _mapperFactory;
          this._missingTranslationStrategy = _missingTranslationStrategy;
          this._console = _console;
          this._contextStack = [];
          this._errors = [];
        }

        _createClass2(I18nToHtmlVisitor, [{
          key: "convert",
          value: function convert(srcMsg) {
            this._contextStack.length = 0;
            this._errors.length = 0; // i18n to text

            var text = this._convertToText(srcMsg); // text to html


            var url = srcMsg.nodes[0].sourceSpan.start.file.url;
            var html = new HtmlParser().parse(text, url, {
              tokenizeExpansionForms: true
            });
            return {
              nodes: html.rootNodes,
              errors: [].concat(_toConsumableArray(this._errors), _toConsumableArray(html.errors))
            };
          }
        }, {
          key: "visitText",
          value: function visitText(text, context) {
            // `convert()` uses an `HtmlParser` to return `html.Node`s
            // we should then make sure that any special characters are escaped
            return escapeXml(text.value);
          }
        }, {
          key: "visitContainer",
          value: function visitContainer(container, context) {
            var _this259 = this;

            return container.children.map(function (n) {
              return n.visit(_this259);
            }).join('');
          }
        }, {
          key: "visitIcu",
          value: function visitIcu(icu, context) {
            var _this260 = this;

            var cases = Object.keys(icu.cases).map(function (k) {
              return "".concat(k, " {").concat(icu.cases[k].visit(_this260), "}");
            }); // TODO(vicb): Once all format switch to using expression placeholders
            // we should throw when the placeholder is not in the source message

            var exp = this._srcMsg.placeholders.hasOwnProperty(icu.expression) ? this._srcMsg.placeholders[icu.expression].text : icu.expression;
            return "{".concat(exp, ", ").concat(icu.type, ", ").concat(cases.join(' '), "}");
          }
        }, {
          key: "visitPlaceholder",
          value: function visitPlaceholder(ph, context) {
            var phName = this._mapper(ph.name);

            if (this._srcMsg.placeholders.hasOwnProperty(phName)) {
              return this._srcMsg.placeholders[phName].text;
            }

            if (this._srcMsg.placeholderToMessage.hasOwnProperty(phName)) {
              return this._convertToText(this._srcMsg.placeholderToMessage[phName]);
            }

            this._addError(ph, "Unknown placeholder \"".concat(ph.name, "\""));

            return '';
          } // Loaded message contains only placeholders (vs tag and icu placeholders).
          // However when a translation can not be found, we need to serialize the source message
          // which can contain tag placeholders

        }, {
          key: "visitTagPlaceholder",
          value: function visitTagPlaceholder(ph, context) {
            var _this261 = this;

            var tag = "".concat(ph.tag);
            var attrs = Object.keys(ph.attrs).map(function (name) {
              return "".concat(name, "=\"").concat(ph.attrs[name], "\"");
            }).join(' ');

            if (ph.isVoid) {
              return "<".concat(tag, " ").concat(attrs, "/>");
            }

            var children = ph.children.map(function (c) {
              return c.visit(_this261);
            }).join('');
            return "<".concat(tag, " ").concat(attrs, ">").concat(children, "</").concat(tag, ">");
          } // Loaded message contains only placeholders (vs tag and icu placeholders).
          // However when a translation can not be found, we need to serialize the source message
          // which can contain tag placeholders

        }, {
          key: "visitIcuPlaceholder",
          value: function visitIcuPlaceholder(ph, context) {
            // An ICU placeholder references the source message to be serialized
            return this._convertToText(this._srcMsg.placeholderToMessage[ph.name]);
          }
          /**
           * Convert a source message to a translated text string:
           * - text nodes are replaced with their translation,
           * - placeholders are replaced with their content,
           * - ICU nodes are converted to ICU expressions.
           */

        }, {
          key: "_convertToText",
          value: function _convertToText(srcMsg) {
            var _this262 = this;

            var id = this._digest(srcMsg);

            var mapper = this._mapperFactory ? this._mapperFactory(srcMsg) : null;
            var nodes;

            this._contextStack.push({
              msg: this._srcMsg,
              mapper: this._mapper
            });

            this._srcMsg = srcMsg;

            if (this._i18nNodesByMsgId.hasOwnProperty(id)) {
              // When there is a translation use its nodes as the source
              // And create a mapper to convert serialized placeholder names to internal names
              nodes = this._i18nNodesByMsgId[id];

              this._mapper = function (name) {
                return mapper ? mapper.toInternalName(name) : name;
              };
            } else {
              // When no translation has been found
              // - report an error / a warning / nothing,
              // - use the nodes from the original message
              // - placeholders are already internal and need no mapper
              if (this._missingTranslationStrategy === MissingTranslationStrategy.Error) {
                var ctx = this._locale ? " for locale \"".concat(this._locale, "\"") : '';

                this._addError(srcMsg.nodes[0], "Missing translation for message \"".concat(id, "\"").concat(ctx));
              } else if (this._console && this._missingTranslationStrategy === MissingTranslationStrategy.Warning) {
                var _ctx2 = this._locale ? " for locale \"".concat(this._locale, "\"") : '';

                this._console.warn("Missing translation for message \"".concat(id, "\"").concat(_ctx2));
              }

              nodes = srcMsg.nodes;

              this._mapper = function (name) {
                return name;
              };
            }

            var text = nodes.map(function (node) {
              return node.visit(_this262);
            }).join('');

            var context = this._contextStack.pop();

            this._srcMsg = context.msg;
            this._mapper = context.mapper;
            return text;
          }
        }, {
          key: "_addError",
          value: function _addError(el, msg) {
            this._errors.push(new I18nError(el.sourceSpan, msg));
          }
        }]);

        return I18nToHtmlVisitor;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var I18NHtmlParser = /*#__PURE__*/function () {
        function I18NHtmlParser(_htmlParser, translations, translationsFormat) {
          var missingTranslation = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : MissingTranslationStrategy.Warning;
          var console = arguments.length > 4 ? arguments[4] : undefined;

          _classCallCheck2(this, I18NHtmlParser);

          this._htmlParser = _htmlParser;

          if (translations) {
            var _serializer = createSerializer(translationsFormat);

            this._translationBundle = TranslationBundle.load(translations, 'i18n', _serializer, missingTranslation, console);
          } else {
            this._translationBundle = new TranslationBundle({}, null, _digest2, undefined, missingTranslation, console);
          }
        }

        _createClass2(I18NHtmlParser, [{
          key: "parse",
          value: function parse(source, url) {
            var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
            var interpolationConfig = options.interpolationConfig || DEFAULT_INTERPOLATION_CONFIG;

            var parseResult = this._htmlParser.parse(source, url, Object.assign({
              interpolationConfig: interpolationConfig
            }, options));

            if (parseResult.errors.length) {
              return new ParseTreeResult(parseResult.rootNodes, parseResult.errors);
            }

            return mergeTranslations(parseResult.rootNodes, this._translationBundle, interpolationConfig, [], {});
          }
        }]);

        return I18NHtmlParser;
      }();

      function createSerializer(format) {
        format = (format || 'xlf').toLowerCase();

        switch (format) {
          case 'xmb':
            return new Xmb();

          case 'xtb':
            return new Xtb();

          case 'xliff2':
          case 'xlf2':
            return new Xliff2();

          case 'xliff':
          case 'xlf':
          default:
            return new Xliff();
        }
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var QUOTED_KEYS = '$quoted$';

      function convertValueToOutputAst(ctx, value) {
        var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
        return visitValue(value, new _ValueOutputAstTransformer(ctx), type);
      }

      var _ValueOutputAstTransformer = /*#__PURE__*/function () {
        function _ValueOutputAstTransformer(ctx) {
          _classCallCheck2(this, _ValueOutputAstTransformer);

          this.ctx = ctx;
        }

        _createClass2(_ValueOutputAstTransformer, [{
          key: "visitArray",
          value: function visitArray(arr, type) {
            var values = []; // Note Array.map() must not be used to convert the values because it will
            // skip over empty elements in arrays constructed using `new Array(length)`,
            // resulting in `undefined` elements. This breaks the type guarantee that
            // all values in `o.LiteralArrayExpr` are of type `o.Expression`.
            // See test case in `value_util_spec.ts`.

            for (var i = 0; i < arr.length; ++i) {
              values.push(visitValue(arr[i], this, null
              /* context */
              ));
            }

            return literalArr(values, type);
          }
        }, {
          key: "visitStringMap",
          value: function visitStringMap(map, type) {
            var _this263 = this;

            var entries = [];
            var quotedSet = new Set(map && map[QUOTED_KEYS]);
            Object.keys(map).forEach(function (key) {
              entries.push(new LiteralMapEntry(key, visitValue(map[key], _this263, null), quotedSet.has(key)));
            });
            return new LiteralMapExpr(entries, type);
          }
        }, {
          key: "visitPrimitive",
          value: function visitPrimitive(value, type) {
            return literal(value, type);
          }
        }, {
          key: "visitOther",
          value: function visitOther(value, type) {
            if (value instanceof Expression) {
              return value;
            } else {
              return this.ctx.importExpr(value);
            }
          }
        }]);

        return _ValueOutputAstTransformer;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function mapEntry$1(key, value) {
        return {
          key: key,
          value: value,
          quoted: false
        };
      }

      var InjectableCompiler = /*#__PURE__*/function () {
        function InjectableCompiler(reflector, alwaysGenerateDef) {
          _classCallCheck2(this, InjectableCompiler);

          this.reflector = reflector;
          this.alwaysGenerateDef = alwaysGenerateDef;
          this.tokenInjector = reflector.resolveExternalReference(Identifiers.Injector);
        }

        _createClass2(InjectableCompiler, [{
          key: "depsArray",
          value: function depsArray(deps, ctx) {
            var _this264 = this;

            return deps.map(function (dep) {
              var token = dep;
              var args = [token];
              var flags = 0
              /* Default */
              ;

              if (Array.isArray(dep)) {
                for (var i = 0; i < dep.length; i++) {
                  var v = dep[i];

                  if (v) {
                    if (v.ngMetadataName === 'Optional') {
                      flags |= 8
                      /* Optional */
                      ;
                    } else if (v.ngMetadataName === 'SkipSelf') {
                      flags |= 4
                      /* SkipSelf */
                      ;
                    } else if (v.ngMetadataName === 'Self') {
                      flags |= 2
                      /* Self */
                      ;
                    } else if (v.ngMetadataName === 'Inject') {
                      token = v.token;
                    } else {
                      token = v;
                    }
                  }
                }
              }

              var tokenExpr;

              if (typeof token === 'string') {
                tokenExpr = literal(token);
              } else if (token === _this264.tokenInjector) {
                tokenExpr = importExpr(Identifiers.INJECTOR);
              } else {
                tokenExpr = ctx.importExpr(token);
              }

              if (flags !== 0
              /* Default */
              ) {
                args = [tokenExpr, literal(flags)];
              } else {
                args = [tokenExpr];
              }

              return importExpr(Identifiers.inject).callFn(args);
            });
          }
        }, {
          key: "factoryFor",
          value: function factoryFor(injectable, ctx) {
            var retValue;

            if (injectable.useExisting) {
              retValue = importExpr(Identifiers.inject).callFn([ctx.importExpr(injectable.useExisting)]);
            } else if (injectable.useFactory) {
              var deps = injectable.deps || [];

              if (deps.length > 0) {
                retValue = ctx.importExpr(injectable.useFactory).callFn(this.depsArray(deps, ctx));
              } else {
                return ctx.importExpr(injectable.useFactory);
              }
            } else if (injectable.useValue) {
              retValue = convertValueToOutputAst(ctx, injectable.useValue);
            } else {
              var clazz = injectable.useClass || injectable.symbol;
              var depArgs = this.depsArray(this.reflector.parameters(clazz), ctx);
              retValue = new InstantiateExpr(ctx.importExpr(clazz), depArgs);
            }

            return fn([], [new ReturnStatement(retValue)], undefined, undefined, injectable.symbol.name + '_Factory');
          }
        }, {
          key: "injectableDef",
          value: function injectableDef(injectable, ctx) {
            var providedIn = NULL_EXPR;

            if (injectable.providedIn !== undefined) {
              if (injectable.providedIn === null) {
                providedIn = NULL_EXPR;
              } else if (typeof injectable.providedIn === 'string') {
                providedIn = literal(injectable.providedIn);
              } else {
                providedIn = ctx.importExpr(injectable.providedIn);
              }
            }

            var def = [mapEntry$1('factory', this.factoryFor(injectable, ctx)), mapEntry$1('token', ctx.importExpr(injectable.type.reference)), mapEntry$1('providedIn', providedIn)];
            return importExpr(Identifiers.ɵɵdefineInjectable).callFn([literalMap(def)]);
          }
        }, {
          key: "compile",
          value: function compile(injectable, ctx) {
            if (this.alwaysGenerateDef || injectable.providedIn !== undefined) {
              var className = identifierName(injectable.type);
              var clazz = new ClassStmt(className, null, [new ClassField('ɵprov', INFERRED_TYPE, [StmtModifier.Static], this.injectableDef(injectable, ctx))], [], new ClassMethod(null, [], []), []);
              ctx.statements.push(clazz);
            }
          }
        }]);

        return InjectableCompiler;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var STRIP_SRC_FILE_SUFFIXES = /(\.ts|\.d\.ts|\.js|\.jsx|\.tsx)$/;
      var GENERATED_FILE = /\.ngfactory\.|\.ngsummary\./;
      var JIT_SUMMARY_FILE = /\.ngsummary\./;
      var JIT_SUMMARY_NAME = /NgSummary$/;

      function ngfactoryFilePath(filePath) {
        var forceSourceFile = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
        var urlWithSuffix = splitTypescriptSuffix(filePath, forceSourceFile);
        return "".concat(urlWithSuffix[0], ".ngfactory").concat(normalizeGenFileSuffix(urlWithSuffix[1]));
      }

      function stripGeneratedFileSuffix(filePath) {
        return filePath.replace(GENERATED_FILE, '.');
      }

      function isGeneratedFile(filePath) {
        return GENERATED_FILE.test(filePath);
      }

      function splitTypescriptSuffix(path) {
        var forceSourceFile = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;

        if (path.endsWith('.d.ts')) {
          return [path.slice(0, -5), forceSourceFile ? '.ts' : '.d.ts'];
        }

        var lastDot = path.lastIndexOf('.');

        if (lastDot !== -1) {
          return [path.substring(0, lastDot), path.substring(lastDot)];
        }

        return [path, ''];
      }

      function normalizeGenFileSuffix(srcFileSuffix) {
        return srcFileSuffix === '.tsx' ? '.ts' : srcFileSuffix;
      }

      function summaryFileName(fileName) {
        var fileNameWithoutSuffix = fileName.replace(STRIP_SRC_FILE_SUFFIXES, '');
        return "".concat(fileNameWithoutSuffix, ".ngsummary.json");
      }

      function summaryForJitFileName(fileName) {
        var forceSourceFile = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
        var urlWithSuffix = splitTypescriptSuffix(stripGeneratedFileSuffix(fileName), forceSourceFile);
        return "".concat(urlWithSuffix[0], ".ngsummary").concat(urlWithSuffix[1]);
      }

      function stripSummaryForJitFileSuffix(filePath) {
        return filePath.replace(JIT_SUMMARY_FILE, '.');
      }

      function summaryForJitName(symbolName) {
        return "".concat(symbolName, "NgSummary");
      }

      function stripSummaryForJitNameSuffix(symbolName) {
        return symbolName.replace(JIT_SUMMARY_NAME, '');
      }

      var LOWERED_SYMBOL = /\u0275\d+/;

      function isLoweredSymbol(name) {
        return LOWERED_SYMBOL.test(name);
      }

      function createLoweredSymbol(id) {
        return "\u0275".concat(id);
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var LifecycleHooks;

      (function (LifecycleHooks) {
        LifecycleHooks[LifecycleHooks["OnInit"] = 0] = "OnInit";
        LifecycleHooks[LifecycleHooks["OnDestroy"] = 1] = "OnDestroy";
        LifecycleHooks[LifecycleHooks["DoCheck"] = 2] = "DoCheck";
        LifecycleHooks[LifecycleHooks["OnChanges"] = 3] = "OnChanges";
        LifecycleHooks[LifecycleHooks["AfterContentInit"] = 4] = "AfterContentInit";
        LifecycleHooks[LifecycleHooks["AfterContentChecked"] = 5] = "AfterContentChecked";
        LifecycleHooks[LifecycleHooks["AfterViewInit"] = 6] = "AfterViewInit";
        LifecycleHooks[LifecycleHooks["AfterViewChecked"] = 7] = "AfterViewChecked";
      })(LifecycleHooks || (LifecycleHooks = {}));

      var LIFECYCLE_HOOKS_VALUES = [LifecycleHooks.OnInit, LifecycleHooks.OnDestroy, LifecycleHooks.DoCheck, LifecycleHooks.OnChanges, LifecycleHooks.AfterContentInit, LifecycleHooks.AfterContentChecked, LifecycleHooks.AfterViewInit, LifecycleHooks.AfterViewChecked];

      function hasLifecycleHook(reflector, hook, token) {
        return reflector.hasLifecycleHook(token, getHookName(hook));
      }

      function getAllLifecycleHooks(reflector, token) {
        return LIFECYCLE_HOOKS_VALUES.filter(function (hook) {
          return hasLifecycleHook(reflector, hook, token);
        });
      }

      function getHookName(hook) {
        switch (hook) {
          case LifecycleHooks.OnInit:
            return 'ngOnInit';

          case LifecycleHooks.OnDestroy:
            return 'ngOnDestroy';

          case LifecycleHooks.DoCheck:
            return 'ngDoCheck';

          case LifecycleHooks.OnChanges:
            return 'ngOnChanges';

          case LifecycleHooks.AfterContentInit:
            return 'ngAfterContentInit';

          case LifecycleHooks.AfterContentChecked:
            return 'ngAfterContentChecked';

          case LifecycleHooks.AfterViewInit:
            return 'ngAfterViewInit';

          case LifecycleHooks.AfterViewChecked:
            return 'ngAfterViewChecked';

          default:
            // This default case is not needed by TypeScript compiler, as the switch is exhaustive.
            // However Closure Compiler does not understand that and reports an error in typed mode.
            // The `throw new Error` below works around the problem, and the unexpected: never variable
            // makes sure tsc still checks this code is unreachable.
            var unexpected = hook;
            throw new Error("unexpected ".concat(unexpected));
        }
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var ERROR_COMPONENT_TYPE = 'ngComponentType'; // Design notes:
      // - don't lazily create metadata:
      //   For some metadata, we need to do async work sometimes,
      //   so the user has to kick off this loading.
      //   But we want to report errors even when the async work is
      //   not required to check that the user would have been able
      //   to wait correctly.

      var CompileMetadataResolver = /*#__PURE__*/function () {
        function CompileMetadataResolver(_config, _htmlParser, _ngModuleResolver, _directiveResolver, _pipeResolver, _summaryResolver, _schemaRegistry, _directiveNormalizer, _console, _staticSymbolCache, _reflector, _errorCollector) {
          _classCallCheck2(this, CompileMetadataResolver);

          this._config = _config;
          this._htmlParser = _htmlParser;
          this._ngModuleResolver = _ngModuleResolver;
          this._directiveResolver = _directiveResolver;
          this._pipeResolver = _pipeResolver;
          this._summaryResolver = _summaryResolver;
          this._schemaRegistry = _schemaRegistry;
          this._directiveNormalizer = _directiveNormalizer;
          this._console = _console;
          this._staticSymbolCache = _staticSymbolCache;
          this._reflector = _reflector;
          this._errorCollector = _errorCollector;
          this._nonNormalizedDirectiveCache = new Map();
          this._directiveCache = new Map();
          this._summaryCache = new Map();
          this._pipeCache = new Map();
          this._ngModuleCache = new Map();
          this._ngModuleOfTypes = new Map();
          this._shallowModuleCache = new Map();
        }

        _createClass2(CompileMetadataResolver, [{
          key: "getReflector",
          value: function getReflector() {
            return this._reflector;
          }
        }, {
          key: "clearCacheFor",
          value: function clearCacheFor(type) {
            var dirMeta = this._directiveCache.get(type);

            this._directiveCache["delete"](type);

            this._nonNormalizedDirectiveCache["delete"](type);

            this._summaryCache["delete"](type);

            this._pipeCache["delete"](type);

            this._ngModuleOfTypes["delete"](type); // Clear all of the NgModule as they contain transitive information!


            this._ngModuleCache.clear();

            if (dirMeta) {
              this._directiveNormalizer.clearCacheFor(dirMeta);
            }
          }
        }, {
          key: "clearCache",
          value: function clearCache() {
            this._directiveCache.clear();

            this._nonNormalizedDirectiveCache.clear();

            this._summaryCache.clear();

            this._pipeCache.clear();

            this._ngModuleCache.clear();

            this._ngModuleOfTypes.clear();

            this._directiveNormalizer.clearCache();
          }
        }, {
          key: "_createProxyClass",
          value: function _createProxyClass(baseType, name) {
            var delegate = null;

            var proxyClass = function proxyClass() {
              if (!delegate) {
                throw new Error("Illegal state: Class ".concat(name, " for type ").concat(stringify(baseType), " is not compiled yet!"));
              }

              return delegate.apply(this, arguments);
            };

            proxyClass.setDelegate = function (d) {
              delegate = d;
              proxyClass.prototype = d.prototype;
            }; // Make stringify work correctly


            proxyClass.overriddenName = name;
            return proxyClass;
          }
        }, {
          key: "getGeneratedClass",
          value: function getGeneratedClass(dirType, name) {
            if (dirType instanceof StaticSymbol) {
              return this._staticSymbolCache.get(ngfactoryFilePath(dirType.filePath), name);
            } else {
              return this._createProxyClass(dirType, name);
            }
          }
        }, {
          key: "getComponentViewClass",
          value: function getComponentViewClass(dirType) {
            return this.getGeneratedClass(dirType, viewClassName(dirType, 0));
          }
        }, {
          key: "getHostComponentViewClass",
          value: function getHostComponentViewClass(dirType) {
            return this.getGeneratedClass(dirType, hostViewClassName(dirType));
          }
        }, {
          key: "getHostComponentType",
          value: function getHostComponentType(dirType) {
            var name = "".concat(identifierName({
              reference: dirType
            }), "_Host");

            if (dirType instanceof StaticSymbol) {
              return this._staticSymbolCache.get(dirType.filePath, name);
            }

            return this._createProxyClass(dirType, name);
          }
        }, {
          key: "getRendererType",
          value: function getRendererType(dirType) {
            if (dirType instanceof StaticSymbol) {
              return this._staticSymbolCache.get(ngfactoryFilePath(dirType.filePath), rendererTypeName(dirType));
            } else {
              // returning an object as proxy,
              // that we fill later during runtime compilation.
              return {};
            }
          }
        }, {
          key: "getComponentFactory",
          value: function getComponentFactory(selector, dirType, inputs, outputs) {
            if (dirType instanceof StaticSymbol) {
              return this._staticSymbolCache.get(ngfactoryFilePath(dirType.filePath), componentFactoryName(dirType));
            } else {
              var hostView = this.getHostComponentViewClass(dirType); // Note: ngContentSelectors will be filled later once the template is
              // loaded.

              var createComponentFactory = this._reflector.resolveExternalReference(Identifiers.createComponentFactory);

              return createComponentFactory(selector, dirType, hostView, inputs, outputs, []);
            }
          }
        }, {
          key: "initComponentFactory",
          value: function initComponentFactory(factory, ngContentSelectors) {
            if (!(factory instanceof StaticSymbol)) {
              var _factory$ngContentSel;

              (_factory$ngContentSel = factory.ngContentSelectors).push.apply(_factory$ngContentSel, _toConsumableArray(ngContentSelectors));
            }
          }
        }, {
          key: "_loadSummary",
          value: function _loadSummary(type, kind) {
            var typeSummary = this._summaryCache.get(type);

            if (!typeSummary) {
              var summary = this._summaryResolver.resolveSummary(type);

              typeSummary = summary ? summary.type : null;

              this._summaryCache.set(type, typeSummary || null);
            }

            return typeSummary && typeSummary.summaryKind === kind ? typeSummary : null;
          }
        }, {
          key: "getHostComponentMetadata",
          value: function getHostComponentMetadata(compMeta, hostViewType) {
            var hostType = this.getHostComponentType(compMeta.type.reference);

            if (!hostViewType) {
              hostViewType = this.getHostComponentViewClass(hostType);
            } // Note: ! is ok here as this method should only be called with normalized directive
            // metadata, which always fills in the selector.


            var template = CssSelector.parse(compMeta.selector)[0].getMatchingElementTemplate();
            var templateUrl = '';

            var htmlAst = this._htmlParser.parse(template, templateUrl);

            return CompileDirectiveMetadata.create({
              isHost: true,
              type: {
                reference: hostType,
                diDeps: [],
                lifecycleHooks: []
              },
              template: new CompileTemplateMetadata({
                encapsulation: ViewEncapsulation.None,
                template: template,
                templateUrl: templateUrl,
                htmlAst: htmlAst,
                styles: [],
                styleUrls: [],
                ngContentSelectors: [],
                animations: [],
                isInline: true,
                externalStylesheets: [],
                interpolation: null,
                preserveWhitespaces: false
              }),
              exportAs: null,
              changeDetection: ChangeDetectionStrategy.Default,
              inputs: [],
              outputs: [],
              host: {},
              isComponent: true,
              selector: '*',
              providers: [],
              viewProviders: [],
              queries: [],
              guards: {},
              viewQueries: [],
              componentViewType: hostViewType,
              rendererType: {
                id: '__Host__',
                encapsulation: ViewEncapsulation.None,
                styles: [],
                data: {}
              },
              entryComponents: [],
              componentFactory: null
            });
          }
        }, {
          key: "loadDirectiveMetadata",
          value: function loadDirectiveMetadata(ngModuleType, directiveType, isSync) {
            var _this265 = this;

            if (this._directiveCache.has(directiveType)) {
              return null;
            }

            directiveType = resolveForwardRef(directiveType);

            var _this$getNonNormalize = this.getNonNormalizedDirectiveMetadata(directiveType),
                annotation = _this$getNonNormalize.annotation,
                metadata = _this$getNonNormalize.metadata;

            var createDirectiveMetadata = function createDirectiveMetadata(templateMetadata) {
              var normalizedDirMeta = new CompileDirectiveMetadata({
                isHost: false,
                type: metadata.type,
                isComponent: metadata.isComponent,
                selector: metadata.selector,
                exportAs: metadata.exportAs,
                changeDetection: metadata.changeDetection,
                inputs: metadata.inputs,
                outputs: metadata.outputs,
                hostListeners: metadata.hostListeners,
                hostProperties: metadata.hostProperties,
                hostAttributes: metadata.hostAttributes,
                providers: metadata.providers,
                viewProviders: metadata.viewProviders,
                queries: metadata.queries,
                guards: metadata.guards,
                viewQueries: metadata.viewQueries,
                entryComponents: metadata.entryComponents,
                componentViewType: metadata.componentViewType,
                rendererType: metadata.rendererType,
                componentFactory: metadata.componentFactory,
                template: templateMetadata
              });

              if (templateMetadata) {
                _this265.initComponentFactory(metadata.componentFactory, templateMetadata.ngContentSelectors);
              }

              _this265._directiveCache.set(directiveType, normalizedDirMeta);

              _this265._summaryCache.set(directiveType, normalizedDirMeta.toSummary());

              return null;
            };

            if (metadata.isComponent) {
              var template = metadata.template;

              var templateMeta = this._directiveNormalizer.normalizeTemplate({
                ngModuleType: ngModuleType,
                componentType: directiveType,
                moduleUrl: this._reflector.componentModuleUrl(directiveType, annotation),
                encapsulation: template.encapsulation,
                template: template.template,
                templateUrl: template.templateUrl,
                styles: template.styles,
                styleUrls: template.styleUrls,
                animations: template.animations,
                interpolation: template.interpolation,
                preserveWhitespaces: template.preserveWhitespaces
              });

              if (isPromise(templateMeta) && isSync) {
                this._reportError(componentStillLoadingError(directiveType), directiveType);

                return null;
              }

              return SyncAsync.then(templateMeta, createDirectiveMetadata);
            } else {
              // directive
              createDirectiveMetadata(null);
              return null;
            }
          }
        }, {
          key: "getNonNormalizedDirectiveMetadata",
          value: function getNonNormalizedDirectiveMetadata(directiveType) {
            var _this266 = this;

            directiveType = resolveForwardRef(directiveType);

            if (!directiveType) {
              return null;
            }

            var cacheEntry = this._nonNormalizedDirectiveCache.get(directiveType);

            if (cacheEntry) {
              return cacheEntry;
            }

            var dirMeta = this._directiveResolver.resolve(directiveType, false);

            if (!dirMeta) {
              return null;
            }

            var nonNormalizedTemplateMetadata = undefined;

            if (createComponent.isTypeOf(dirMeta)) {
              // component
              var compMeta = dirMeta;
              assertArrayOfStrings('styles', compMeta.styles);
              assertArrayOfStrings('styleUrls', compMeta.styleUrls);
              assertInterpolationSymbols('interpolation', compMeta.interpolation);
              var animations = compMeta.animations;
              nonNormalizedTemplateMetadata = new CompileTemplateMetadata({
                encapsulation: noUndefined(compMeta.encapsulation),
                template: noUndefined(compMeta.template),
                templateUrl: noUndefined(compMeta.templateUrl),
                htmlAst: null,
                styles: compMeta.styles || [],
                styleUrls: compMeta.styleUrls || [],
                animations: animations || [],
                interpolation: noUndefined(compMeta.interpolation),
                isInline: !!compMeta.template,
                externalStylesheets: [],
                ngContentSelectors: [],
                preserveWhitespaces: noUndefined(dirMeta.preserveWhitespaces)
              });
            }

            var changeDetectionStrategy = null;
            var viewProviders = [];
            var entryComponentMetadata = [];
            var selector = dirMeta.selector;

            if (createComponent.isTypeOf(dirMeta)) {
              // Component
              var _compMeta = dirMeta;
              changeDetectionStrategy = _compMeta.changeDetection;

              if (_compMeta.viewProviders) {
                viewProviders = this._getProvidersMetadata(_compMeta.viewProviders, entryComponentMetadata, "viewProviders for \"".concat(stringifyType(directiveType), "\""), [], directiveType);
              }

              if (_compMeta.entryComponents) {
                entryComponentMetadata = flattenAndDedupeArray(_compMeta.entryComponents).map(function (type) {
                  return _this266._getEntryComponentMetadata(type);
                }).concat(entryComponentMetadata);
              }

              if (!selector) {
                selector = this._schemaRegistry.getDefaultComponentElementName();
              }
            } else {
              // Directive
              if (!selector) {
                selector = null;
              }
            }

            var providers = [];

            if (dirMeta.providers != null) {
              providers = this._getProvidersMetadata(dirMeta.providers, entryComponentMetadata, "providers for \"".concat(stringifyType(directiveType), "\""), [], directiveType);
            }

            var queries = [];
            var viewQueries = [];

            if (dirMeta.queries != null) {
              queries = this._getQueriesMetadata(dirMeta.queries, false, directiveType);
              viewQueries = this._getQueriesMetadata(dirMeta.queries, true, directiveType);
            }

            var metadata = CompileDirectiveMetadata.create({
              isHost: false,
              selector: selector,
              exportAs: noUndefined(dirMeta.exportAs),
              isComponent: !!nonNormalizedTemplateMetadata,
              type: this._getTypeMetadata(directiveType),
              template: nonNormalizedTemplateMetadata,
              changeDetection: changeDetectionStrategy,
              inputs: dirMeta.inputs || [],
              outputs: dirMeta.outputs || [],
              host: dirMeta.host || {},
              providers: providers || [],
              viewProviders: viewProviders || [],
              queries: queries || [],
              guards: dirMeta.guards || {},
              viewQueries: viewQueries || [],
              entryComponents: entryComponentMetadata,
              componentViewType: nonNormalizedTemplateMetadata ? this.getComponentViewClass(directiveType) : null,
              rendererType: nonNormalizedTemplateMetadata ? this.getRendererType(directiveType) : null,
              componentFactory: null
            });

            if (nonNormalizedTemplateMetadata) {
              metadata.componentFactory = this.getComponentFactory(selector, directiveType, metadata.inputs, metadata.outputs);
            }

            cacheEntry = {
              metadata: metadata,
              annotation: dirMeta
            };

            this._nonNormalizedDirectiveCache.set(directiveType, cacheEntry);

            return cacheEntry;
          }
          /**
           * Gets the metadata for the given directive.
           * This assumes `loadNgModuleDirectiveAndPipeMetadata` has been called first.
           */

        }, {
          key: "getDirectiveMetadata",
          value: function getDirectiveMetadata(directiveType) {
            var dirMeta = this._directiveCache.get(directiveType);

            if (!dirMeta) {
              this._reportError(syntaxError("Illegal state: getDirectiveMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Directive ".concat(stringifyType(directiveType), ".")), directiveType);
            }

            return dirMeta;
          }
        }, {
          key: "getDirectiveSummary",
          value: function getDirectiveSummary(dirType) {
            var dirSummary = this._loadSummary(dirType, CompileSummaryKind.Directive);

            if (!dirSummary) {
              this._reportError(syntaxError("Illegal state: Could not load the summary for directive ".concat(stringifyType(dirType), ".")), dirType);
            }

            return dirSummary;
          }
        }, {
          key: "isDirective",
          value: function isDirective(type) {
            return !!this._loadSummary(type, CompileSummaryKind.Directive) || this._directiveResolver.isDirective(type);
          }
        }, {
          key: "isAbstractDirective",
          value: function isAbstractDirective(type) {
            var summary = this._loadSummary(type, CompileSummaryKind.Directive);

            if (summary && !summary.isComponent) {
              return !summary.selector;
            }

            var meta = this._directiveResolver.resolve(type, false);

            if (meta && !createComponent.isTypeOf(meta)) {
              return !meta.selector;
            }

            return false;
          }
        }, {
          key: "isPipe",
          value: function isPipe(type) {
            return !!this._loadSummary(type, CompileSummaryKind.Pipe) || this._pipeResolver.isPipe(type);
          }
        }, {
          key: "isNgModule",
          value: function isNgModule(type) {
            return !!this._loadSummary(type, CompileSummaryKind.NgModule) || this._ngModuleResolver.isNgModule(type);
          }
        }, {
          key: "getNgModuleSummary",
          value: function getNgModuleSummary(moduleType) {
            var alreadyCollecting = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;

            var moduleSummary = this._loadSummary(moduleType, CompileSummaryKind.NgModule);

            if (!moduleSummary) {
              var moduleMeta = this.getNgModuleMetadata(moduleType, false, alreadyCollecting);
              moduleSummary = moduleMeta ? moduleMeta.toSummary() : null;

              if (moduleSummary) {
                this._summaryCache.set(moduleType, moduleSummary);
              }
            }

            return moduleSummary;
          }
          /**
           * Loads the declared directives and pipes of an NgModule.
           */

        }, {
          key: "loadNgModuleDirectiveAndPipeMetadata",
          value: function loadNgModuleDirectiveAndPipeMetadata(moduleType, isSync) {
            var _this267 = this;

            var throwIfNotFound = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
            var ngModule = this.getNgModuleMetadata(moduleType, throwIfNotFound);
            var loading = [];

            if (ngModule) {
              ngModule.declaredDirectives.forEach(function (id) {
                var promise = _this267.loadDirectiveMetadata(moduleType, id.reference, isSync);

                if (promise) {
                  loading.push(promise);
                }
              });
              ngModule.declaredPipes.forEach(function (id) {
                return _this267._loadPipeMetadata(id.reference);
              });
            }

            return Promise.all(loading);
          }
        }, {
          key: "getShallowModuleMetadata",
          value: function getShallowModuleMetadata(moduleType) {
            var compileMeta = this._shallowModuleCache.get(moduleType);

            if (compileMeta) {
              return compileMeta;
            }

            var ngModuleMeta = findLast(this._reflector.shallowAnnotations(moduleType), createNgModule.isTypeOf);
            compileMeta = {
              type: this._getTypeMetadata(moduleType),
              rawExports: ngModuleMeta.exports,
              rawImports: ngModuleMeta.imports,
              rawProviders: ngModuleMeta.providers
            };

            this._shallowModuleCache.set(moduleType, compileMeta);

            return compileMeta;
          }
        }, {
          key: "getNgModuleMetadata",
          value: function getNgModuleMetadata(moduleType) {
            var _this268 = this;

            var throwIfNotFound = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
            var alreadyCollecting = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
            moduleType = resolveForwardRef(moduleType);

            var compileMeta = this._ngModuleCache.get(moduleType);

            if (compileMeta) {
              return compileMeta;
            }

            var meta = this._ngModuleResolver.resolve(moduleType, throwIfNotFound);

            if (!meta) {
              return null;
            }

            var declaredDirectives = [];
            var exportedNonModuleIdentifiers = [];
            var declaredPipes = [];
            var importedModules = [];
            var exportedModules = [];
            var providers = [];
            var entryComponents = [];
            var bootstrapComponents = [];
            var schemas = [];

            if (meta.imports) {
              flattenAndDedupeArray(meta.imports).forEach(function (importedType) {
                var importedModuleType = undefined;

                if (isValidType(importedType)) {
                  importedModuleType = importedType;
                } else if (importedType && importedType.ngModule) {
                  var moduleWithProviders = importedType;
                  importedModuleType = moduleWithProviders.ngModule;

                  if (moduleWithProviders.providers) {
                    providers.push.apply(providers, _toConsumableArray(_this268._getProvidersMetadata(moduleWithProviders.providers, entryComponents, "provider for the NgModule '".concat(stringifyType(importedModuleType), "'"), [], importedType)));
                  }
                }

                if (importedModuleType) {
                  if (_this268._checkSelfImport(moduleType, importedModuleType)) return;
                  if (!alreadyCollecting) alreadyCollecting = new Set();

                  if (alreadyCollecting.has(importedModuleType)) {
                    _this268._reportError(syntaxError("".concat(_this268._getTypeDescriptor(importedModuleType), " '").concat(stringifyType(importedType), "' is imported recursively by the module '").concat(stringifyType(moduleType), "'.")), moduleType);

                    return;
                  }

                  alreadyCollecting.add(importedModuleType);

                  var importedModuleSummary = _this268.getNgModuleSummary(importedModuleType, alreadyCollecting);

                  alreadyCollecting["delete"](importedModuleType);

                  if (!importedModuleSummary) {
                    _this268._reportError(syntaxError("Unexpected ".concat(_this268._getTypeDescriptor(importedType), " '").concat(stringifyType(importedType), "' imported by the module '").concat(stringifyType(moduleType), "'. Please add a @NgModule annotation.")), moduleType);

                    return;
                  }

                  importedModules.push(importedModuleSummary);
                } else {
                  _this268._reportError(syntaxError("Unexpected value '".concat(stringifyType(importedType), "' imported by the module '").concat(stringifyType(moduleType), "'")), moduleType);

                  return;
                }
              });
            }

            if (meta.exports) {
              flattenAndDedupeArray(meta.exports).forEach(function (exportedType) {
                if (!isValidType(exportedType)) {
                  _this268._reportError(syntaxError("Unexpected value '".concat(stringifyType(exportedType), "' exported by the module '").concat(stringifyType(moduleType), "'")), moduleType);

                  return;
                }

                if (!alreadyCollecting) alreadyCollecting = new Set();

                if (alreadyCollecting.has(exportedType)) {
                  _this268._reportError(syntaxError("".concat(_this268._getTypeDescriptor(exportedType), " '").concat(stringify(exportedType), "' is exported recursively by the module '").concat(stringifyType(moduleType), "'")), moduleType);

                  return;
                }

                alreadyCollecting.add(exportedType);

                var exportedModuleSummary = _this268.getNgModuleSummary(exportedType, alreadyCollecting);

                alreadyCollecting["delete"](exportedType);

                if (exportedModuleSummary) {
                  exportedModules.push(exportedModuleSummary);
                } else {
                  exportedNonModuleIdentifiers.push(_this268._getIdentifierMetadata(exportedType));
                }
              });
            } // Note: This will be modified later, so we rely on
            // getting a new instance every time!


            var transitiveModule = this._getTransitiveNgModuleMetadata(importedModules, exportedModules);

            if (meta.declarations) {
              flattenAndDedupeArray(meta.declarations).forEach(function (declaredType) {
                if (!isValidType(declaredType)) {
                  _this268._reportError(syntaxError("Unexpected value '".concat(stringifyType(declaredType), "' declared by the module '").concat(stringifyType(moduleType), "'")), moduleType);

                  return;
                }

                var declaredIdentifier = _this268._getIdentifierMetadata(declaredType);

                if (_this268.isDirective(declaredType)) {
                  if (_this268.isAbstractDirective(declaredType)) {
                    _this268._reportError(syntaxError("Directive ".concat(stringifyType(declaredType), " has no selector, please add it!")), declaredType);
                  }

                  transitiveModule.addDirective(declaredIdentifier);
                  declaredDirectives.push(declaredIdentifier);

                  _this268._addTypeToModule(declaredType, moduleType);
                } else if (_this268.isPipe(declaredType)) {
                  transitiveModule.addPipe(declaredIdentifier);
                  transitiveModule.pipes.push(declaredIdentifier);
                  declaredPipes.push(declaredIdentifier);

                  _this268._addTypeToModule(declaredType, moduleType);
                } else {
                  _this268._reportError(syntaxError("Unexpected ".concat(_this268._getTypeDescriptor(declaredType), " '").concat(stringifyType(declaredType), "' declared by the module '").concat(stringifyType(moduleType), "'. Please add a @Pipe/@Directive/@Component annotation.")), moduleType);

                  return;
                }
              });
            }

            var exportedDirectives = [];
            var exportedPipes = [];
            exportedNonModuleIdentifiers.forEach(function (exportedId) {
              if (transitiveModule.directivesSet.has(exportedId.reference)) {
                exportedDirectives.push(exportedId);
                transitiveModule.addExportedDirective(exportedId);
              } else if (transitiveModule.pipesSet.has(exportedId.reference)) {
                exportedPipes.push(exportedId);
                transitiveModule.addExportedPipe(exportedId);
              } else {
                _this268._reportError(syntaxError("Can't export ".concat(_this268._getTypeDescriptor(exportedId.reference), " ").concat(stringifyType(exportedId.reference), " from ").concat(stringifyType(moduleType), " as it was neither declared nor imported!")), moduleType);

                return;
              }
            }); // The providers of the module have to go last
            // so that they overwrite any other provider we already added.

            if (meta.providers) {
              providers.push.apply(providers, _toConsumableArray(this._getProvidersMetadata(meta.providers, entryComponents, "provider for the NgModule '".concat(stringifyType(moduleType), "'"), [], moduleType)));
            }

            if (meta.entryComponents) {
              entryComponents.push.apply(entryComponents, _toConsumableArray(flattenAndDedupeArray(meta.entryComponents).map(function (type) {
                return _this268._getEntryComponentMetadata(type);
              })));
            }

            if (meta.bootstrap) {
              flattenAndDedupeArray(meta.bootstrap).forEach(function (type) {
                if (!isValidType(type)) {
                  _this268._reportError(syntaxError("Unexpected value '".concat(stringifyType(type), "' used in the bootstrap property of module '").concat(stringifyType(moduleType), "'")), moduleType);

                  return;
                }

                bootstrapComponents.push(_this268._getIdentifierMetadata(type));
              });
            }

            entryComponents.push.apply(entryComponents, _toConsumableArray(bootstrapComponents.map(function (type) {
              return _this268._getEntryComponentMetadata(type.reference);
            })));

            if (meta.schemas) {
              schemas.push.apply(schemas, _toConsumableArray(flattenAndDedupeArray(meta.schemas)));
            }

            compileMeta = new CompileNgModuleMetadata({
              type: this._getTypeMetadata(moduleType),
              providers: providers,
              entryComponents: entryComponents,
              bootstrapComponents: bootstrapComponents,
              schemas: schemas,
              declaredDirectives: declaredDirectives,
              exportedDirectives: exportedDirectives,
              declaredPipes: declaredPipes,
              exportedPipes: exportedPipes,
              importedModules: importedModules,
              exportedModules: exportedModules,
              transitiveModule: transitiveModule,
              id: meta.id || null
            });
            entryComponents.forEach(function (id) {
              return transitiveModule.addEntryComponent(id);
            });
            providers.forEach(function (provider) {
              return transitiveModule.addProvider(provider, compileMeta.type);
            });
            transitiveModule.addModule(compileMeta.type);

            this._ngModuleCache.set(moduleType, compileMeta);

            return compileMeta;
          }
        }, {
          key: "_checkSelfImport",
          value: function _checkSelfImport(moduleType, importedModuleType) {
            if (moduleType === importedModuleType) {
              this._reportError(syntaxError("'".concat(stringifyType(moduleType), "' module can't import itself")), moduleType);

              return true;
            }

            return false;
          }
        }, {
          key: "_getTypeDescriptor",
          value: function _getTypeDescriptor(type) {
            if (isValidType(type)) {
              if (this.isDirective(type)) {
                return 'directive';
              }

              if (this.isPipe(type)) {
                return 'pipe';
              }

              if (this.isNgModule(type)) {
                return 'module';
              }
            }

            if (type.provide) {
              return 'provider';
            }

            return 'value';
          }
        }, {
          key: "_addTypeToModule",
          value: function _addTypeToModule(type, moduleType) {
            var oldModule = this._ngModuleOfTypes.get(type);

            if (oldModule && oldModule !== moduleType) {
              this._reportError(syntaxError("Type ".concat(stringifyType(type), " is part of the declarations of 2 modules: ").concat(stringifyType(oldModule), " and ").concat(stringifyType(moduleType), "! ") + "Please consider moving ".concat(stringifyType(type), " to a higher module that imports ").concat(stringifyType(oldModule), " and ").concat(stringifyType(moduleType), ". ") + "You can also create a new NgModule that exports and includes ".concat(stringifyType(type), " then import that NgModule in ").concat(stringifyType(oldModule), " and ").concat(stringifyType(moduleType), ".")), moduleType);

              return;
            }

            this._ngModuleOfTypes.set(type, moduleType);
          }
        }, {
          key: "_getTransitiveNgModuleMetadata",
          value: function _getTransitiveNgModuleMetadata(importedModules, exportedModules) {
            // collect `providers` / `entryComponents` from all imported and all exported modules
            var result = new TransitiveCompileNgModuleMetadata();
            var modulesByToken = new Map();
            importedModules.concat(exportedModules).forEach(function (modSummary) {
              modSummary.modules.forEach(function (mod) {
                return result.addModule(mod);
              });
              modSummary.entryComponents.forEach(function (comp) {
                return result.addEntryComponent(comp);
              });
              var addedTokens = new Set();
              modSummary.providers.forEach(function (entry) {
                var tokenRef = tokenReference(entry.provider.token);
                var prevModules = modulesByToken.get(tokenRef);

                if (!prevModules) {
                  prevModules = new Set();
                  modulesByToken.set(tokenRef, prevModules);
                }

                var moduleRef = entry.module.reference; // Note: the providers of one module may still contain multiple providers
                // per token (e.g. for multi providers), and we need to preserve these.

                if (addedTokens.has(tokenRef) || !prevModules.has(moduleRef)) {
                  prevModules.add(moduleRef);
                  addedTokens.add(tokenRef);
                  result.addProvider(entry.provider, entry.module);
                }
              });
            });
            exportedModules.forEach(function (modSummary) {
              modSummary.exportedDirectives.forEach(function (id) {
                return result.addExportedDirective(id);
              });
              modSummary.exportedPipes.forEach(function (id) {
                return result.addExportedPipe(id);
              });
            });
            importedModules.forEach(function (modSummary) {
              modSummary.exportedDirectives.forEach(function (id) {
                return result.addDirective(id);
              });
              modSummary.exportedPipes.forEach(function (id) {
                return result.addPipe(id);
              });
            });
            return result;
          }
        }, {
          key: "_getIdentifierMetadata",
          value: function _getIdentifierMetadata(type) {
            type = resolveForwardRef(type);
            return {
              reference: type
            };
          }
        }, {
          key: "isInjectable",
          value: function isInjectable(type) {
            var annotations = this._reflector.tryAnnotations(type);

            return annotations.some(function (ann) {
              return createInjectable.isTypeOf(ann);
            });
          }
        }, {
          key: "getInjectableSummary",
          value: function getInjectableSummary(type) {
            return {
              summaryKind: CompileSummaryKind.Injectable,
              type: this._getTypeMetadata(type, null, false)
            };
          }
        }, {
          key: "getInjectableMetadata",
          value: function getInjectableMetadata(type) {
            var dependencies = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
            var throwOnUnknownDeps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;

            var typeSummary = this._loadSummary(type, CompileSummaryKind.Injectable);

            var typeMetadata = typeSummary ? typeSummary.type : this._getTypeMetadata(type, dependencies, throwOnUnknownDeps);

            var annotations = this._reflector.annotations(type).filter(function (ann) {
              return createInjectable.isTypeOf(ann);
            });

            if (annotations.length === 0) {
              return null;
            }

            var meta = annotations[annotations.length - 1];
            return {
              symbol: type,
              type: typeMetadata,
              providedIn: meta.providedIn,
              useValue: meta.useValue,
              useClass: meta.useClass,
              useExisting: meta.useExisting,
              useFactory: meta.useFactory,
              deps: meta.deps
            };
          }
        }, {
          key: "_getTypeMetadata",
          value: function _getTypeMetadata(type) {
            var dependencies = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
            var throwOnUnknownDeps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;

            var identifier = this._getIdentifierMetadata(type);

            return {
              reference: identifier.reference,
              diDeps: this._getDependenciesMetadata(identifier.reference, dependencies, throwOnUnknownDeps),
              lifecycleHooks: getAllLifecycleHooks(this._reflector, identifier.reference)
            };
          }
        }, {
          key: "_getFactoryMetadata",
          value: function _getFactoryMetadata(factory) {
            var dependencies = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
            factory = resolveForwardRef(factory);
            return {
              reference: factory,
              diDeps: this._getDependenciesMetadata(factory, dependencies)
            };
          }
          /**
           * Gets the metadata for the given pipe.
           * This assumes `loadNgModuleDirectiveAndPipeMetadata` has been called first.
           */

        }, {
          key: "getPipeMetadata",
          value: function getPipeMetadata(pipeType) {
            var pipeMeta = this._pipeCache.get(pipeType);

            if (!pipeMeta) {
              this._reportError(syntaxError("Illegal state: getPipeMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Pipe ".concat(stringifyType(pipeType), ".")), pipeType);
            }

            return pipeMeta || null;
          }
        }, {
          key: "getPipeSummary",
          value: function getPipeSummary(pipeType) {
            var pipeSummary = this._loadSummary(pipeType, CompileSummaryKind.Pipe);

            if (!pipeSummary) {
              this._reportError(syntaxError("Illegal state: Could not load the summary for pipe ".concat(stringifyType(pipeType), ".")), pipeType);
            }

            return pipeSummary;
          }
        }, {
          key: "getOrLoadPipeMetadata",
          value: function getOrLoadPipeMetadata(pipeType) {
            var pipeMeta = this._pipeCache.get(pipeType);

            if (!pipeMeta) {
              pipeMeta = this._loadPipeMetadata(pipeType);
            }

            return pipeMeta;
          }
        }, {
          key: "_loadPipeMetadata",
          value: function _loadPipeMetadata(pipeType) {
            pipeType = resolveForwardRef(pipeType);

            var pipeAnnotation = this._pipeResolver.resolve(pipeType);

            var pipeMeta = new CompilePipeMetadata({
              type: this._getTypeMetadata(pipeType),
              name: pipeAnnotation.name,
              pure: !!pipeAnnotation.pure
            });

            this._pipeCache.set(pipeType, pipeMeta);

            this._summaryCache.set(pipeType, pipeMeta.toSummary());

            return pipeMeta;
          }
        }, {
          key: "_getDependenciesMetadata",
          value: function _getDependenciesMetadata(typeOrFunc, dependencies) {
            var _this269 = this;

            var throwOnUnknownDeps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
            var hasUnknownDeps = false;
            var params = dependencies || this._reflector.parameters(typeOrFunc) || [];
            var dependenciesMetadata = params.map(function (param) {
              var isAttribute = false;
              var isHost = false;
              var isSelf = false;
              var isSkipSelf = false;
              var isOptional = false;
              var token = null;

              if (Array.isArray(param)) {
                param.forEach(function (paramEntry) {
                  if (createHost.isTypeOf(paramEntry)) {
                    isHost = true;
                  } else if (createSelf.isTypeOf(paramEntry)) {
                    isSelf = true;
                  } else if (createSkipSelf.isTypeOf(paramEntry)) {
                    isSkipSelf = true;
                  } else if (createOptional.isTypeOf(paramEntry)) {
                    isOptional = true;
                  } else if (createAttribute.isTypeOf(paramEntry)) {
                    isAttribute = true;
                    token = paramEntry.attributeName;
                  } else if (createInject.isTypeOf(paramEntry)) {
                    token = paramEntry.token;
                  } else if (createInjectionToken.isTypeOf(paramEntry) || paramEntry instanceof StaticSymbol) {
                    token = paramEntry;
                  } else if (isValidType(paramEntry) && token == null) {
                    token = paramEntry;
                  }
                });
              } else {
                token = param;
              }

              if (token == null) {
                hasUnknownDeps = true;
                return {};
              }

              return {
                isAttribute: isAttribute,
                isHost: isHost,
                isSelf: isSelf,
                isSkipSelf: isSkipSelf,
                isOptional: isOptional,
                token: _this269._getTokenMetadata(token)
              };
            });

            if (hasUnknownDeps) {
              var depsTokens = dependenciesMetadata.map(function (dep) {
                return dep.token ? stringifyType(dep.token) : '?';
              }).join(', ');
              var message = "Can't resolve all parameters for ".concat(stringifyType(typeOrFunc), ": (").concat(depsTokens, ").");

              if (throwOnUnknownDeps || this._config.strictInjectionParameters) {
                this._reportError(syntaxError(message), typeOrFunc);
              }
            }

            return dependenciesMetadata;
          }
        }, {
          key: "_getTokenMetadata",
          value: function _getTokenMetadata(token) {
            token = resolveForwardRef(token);
            var compileToken;

            if (typeof token === 'string') {
              compileToken = {
                value: token
              };
            } else {
              compileToken = {
                identifier: {
                  reference: token
                }
              };
            }

            return compileToken;
          }
        }, {
          key: "_getProvidersMetadata",
          value: function _getProvidersMetadata(providers, targetEntryComponents, debugInfo) {
            var _this270 = this;

            var compileProviders = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
            var type = arguments.length > 4 ? arguments[4] : undefined;
            providers.forEach(function (provider, providerIdx) {
              if (Array.isArray(provider)) {
                _this270._getProvidersMetadata(provider, targetEntryComponents, debugInfo, compileProviders);
              } else {
                provider = resolveForwardRef(provider);
                var providerMeta = undefined;

                if (provider && typeof provider === 'object' && provider.hasOwnProperty('provide')) {
                  _this270._validateProvider(provider);

                  providerMeta = new ProviderMeta(provider.provide, provider);
                } else if (isValidType(provider)) {
                  providerMeta = new ProviderMeta(provider, {
                    useClass: provider
                  });
                } else if (provider === void 0) {
                  _this270._reportError(syntaxError("Encountered undefined provider! Usually this means you have a circular dependencies. This might be caused by using 'barrel' index.ts files."));

                  return;
                } else {
                  var providersInfo = providers.reduce(function (soFar, seenProvider, seenProviderIdx) {
                    if (seenProviderIdx < providerIdx) {
                      soFar.push("".concat(stringifyType(seenProvider)));
                    } else if (seenProviderIdx == providerIdx) {
                      soFar.push("?".concat(stringifyType(seenProvider), "?"));
                    } else if (seenProviderIdx == providerIdx + 1) {
                      soFar.push('...');
                    }

                    return soFar;
                  }, []).join(', ');

                  _this270._reportError(syntaxError("Invalid ".concat(debugInfo ? debugInfo : 'provider', " - only instances of Provider and Type are allowed, got: [").concat(providersInfo, "]")), type);

                  return;
                }

                if (providerMeta.token === _this270._reflector.resolveExternalReference(Identifiers.ANALYZE_FOR_ENTRY_COMPONENTS)) {
                  targetEntryComponents.push.apply(targetEntryComponents, _toConsumableArray(_this270._getEntryComponentsFromProvider(providerMeta, type)));
                } else {
                  compileProviders.push(_this270.getProviderMetadata(providerMeta));
                }
              }
            });
            return compileProviders;
          }
        }, {
          key: "_validateProvider",
          value: function _validateProvider(provider) {
            if (provider.hasOwnProperty('useClass') && provider.useClass == null) {
              this._reportError(syntaxError("Invalid provider for ".concat(stringifyType(provider.provide), ". useClass cannot be ").concat(provider.useClass, ".\n           Usually it happens when:\n           1. There's a circular dependency (might be caused by using index.ts (barrel) files).\n           2. Class was used before it was declared. Use forwardRef in this case.")));
            }
          }
        }, {
          key: "_getEntryComponentsFromProvider",
          value: function _getEntryComponentsFromProvider(provider, type) {
            var _this271 = this;

            var components = [];
            var collectedIdentifiers = [];

            if (provider.useFactory || provider.useExisting || provider.useClass) {
              this._reportError(syntaxError("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports useValue!"), type);

              return [];
            }

            if (!provider.multi) {
              this._reportError(syntaxError("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports 'multi = true'!"), type);

              return [];
            }

            extractIdentifiers(provider.useValue, collectedIdentifiers);
            collectedIdentifiers.forEach(function (identifier) {
              var entry = _this271._getEntryComponentMetadata(identifier.reference, false);

              if (entry) {
                components.push(entry);
              }
            });
            return components;
          }
        }, {
          key: "_getEntryComponentMetadata",
          value: function _getEntryComponentMetadata(dirType) {
            var throwIfNotFound = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
            var dirMeta = this.getNonNormalizedDirectiveMetadata(dirType);

            if (dirMeta && dirMeta.metadata.isComponent) {
              return {
                componentType: dirType,
                componentFactory: dirMeta.metadata.componentFactory
              };
            }

            var dirSummary = this._loadSummary(dirType, CompileSummaryKind.Directive);

            if (dirSummary && dirSummary.isComponent) {
              return {
                componentType: dirType,
                componentFactory: dirSummary.componentFactory
              };
            }

            if (throwIfNotFound) {
              throw syntaxError("".concat(dirType.name, " cannot be used as an entry component."));
            }

            return null;
          }
        }, {
          key: "_getInjectableTypeMetadata",
          value: function _getInjectableTypeMetadata(type) {
            var dependencies = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;

            var typeSummary = this._loadSummary(type, CompileSummaryKind.Injectable);

            if (typeSummary) {
              return typeSummary.type;
            }

            return this._getTypeMetadata(type, dependencies);
          }
        }, {
          key: "getProviderMetadata",
          value: function getProviderMetadata(provider) {
            var compileDeps = undefined;
            var compileTypeMetadata = null;
            var compileFactoryMetadata = null;

            var token = this._getTokenMetadata(provider.token);

            if (provider.useClass) {
              compileTypeMetadata = this._getInjectableTypeMetadata(provider.useClass, provider.dependencies);
              compileDeps = compileTypeMetadata.diDeps;

              if (provider.token === provider.useClass) {
                // use the compileTypeMetadata as it contains information about lifecycleHooks...
                token = {
                  identifier: compileTypeMetadata
                };
              }
            } else if (provider.useFactory) {
              compileFactoryMetadata = this._getFactoryMetadata(provider.useFactory, provider.dependencies);
              compileDeps = compileFactoryMetadata.diDeps;
            }

            return {
              token: token,
              useClass: compileTypeMetadata,
              useValue: provider.useValue,
              useFactory: compileFactoryMetadata,
              useExisting: provider.useExisting ? this._getTokenMetadata(provider.useExisting) : undefined,
              deps: compileDeps,
              multi: provider.multi
            };
          }
        }, {
          key: "_getQueriesMetadata",
          value: function _getQueriesMetadata(queries, isViewQuery, directiveType) {
            var _this272 = this;

            var res = [];
            Object.keys(queries).forEach(function (propertyName) {
              var query = queries[propertyName];

              if (query.isViewQuery === isViewQuery) {
                res.push(_this272._getQueryMetadata(query, propertyName, directiveType));
              }
            });
            return res;
          }
        }, {
          key: "_queryVarBindings",
          value: function _queryVarBindings(selector) {
            return selector.split(/\s*,\s*/);
          }
        }, {
          key: "_getQueryMetadata",
          value: function _getQueryMetadata(q, propertyName, typeOrFunc) {
            var _this273 = this;

            var selectors;

            if (typeof q.selector === 'string') {
              selectors = this._queryVarBindings(q.selector).map(function (varName) {
                return _this273._getTokenMetadata(varName);
              });
            } else {
              if (!q.selector) {
                this._reportError(syntaxError("Can't construct a query for the property \"".concat(propertyName, "\" of \"").concat(stringifyType(typeOrFunc), "\" since the query selector wasn't defined.")), typeOrFunc);

                selectors = [];
              } else {
                selectors = [this._getTokenMetadata(q.selector)];
              }
            }

            return {
              selectors: selectors,
              first: q.first,
              descendants: q.descendants,
              propertyName: propertyName,
              read: q.read ? this._getTokenMetadata(q.read) : null,
              "static": q["static"]
            };
          }
        }, {
          key: "_reportError",
          value: function _reportError(error, type, otherType) {
            if (this._errorCollector) {
              this._errorCollector(error, type);

              if (otherType) {
                this._errorCollector(error, otherType);
              }
            } else {
              throw error;
            }
          }
        }]);

        return CompileMetadataResolver;
      }();

      function flattenArray(tree) {
        var out = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];

        if (tree) {
          for (var i = 0; i < tree.length; i++) {
            var item = resolveForwardRef(tree[i]);

            if (Array.isArray(item)) {
              flattenArray(item, out);
            } else {
              out.push(item);
            }
          }
        }

        return out;
      }

      function dedupeArray(array) {
        if (array) {
          return Array.from(new Set(array));
        }

        return [];
      }

      function flattenAndDedupeArray(tree) {
        return dedupeArray(flattenArray(tree));
      }

      function isValidType(value) {
        return value instanceof StaticSymbol || value instanceof Type;
      }

      function extractIdentifiers(value, targetIdentifiers) {
        visitValue(value, new _CompileValueConverter(), targetIdentifiers);
      }

      var _CompileValueConverter = /*#__PURE__*/function (_ValueTransformer) {
        _inherits2(_CompileValueConverter, _ValueTransformer);

        var _super113 = _createSuper2(_CompileValueConverter);

        function _CompileValueConverter() {
          _classCallCheck2(this, _CompileValueConverter);

          return _super113.apply(this, arguments);
        }

        _createClass2(_CompileValueConverter, [{
          key: "visitOther",
          value: function visitOther(value, targetIdentifiers) {
            targetIdentifiers.push({
              reference: value
            });
          }
        }]);

        return _CompileValueConverter;
      }(ValueTransformer);

      function stringifyType(type) {
        if (type instanceof StaticSymbol) {
          return "".concat(type.name, " in ").concat(type.filePath);
        } else {
          return stringify(type);
        }
      }
      /**
       * Indicates that a component is still being loaded in a synchronous compile.
       */


      function componentStillLoadingError(compType) {
        var error = Error("Can't compile synchronously as ".concat(stringify(compType), " is still being loaded!"));
        error[ERROR_COMPONENT_TYPE] = compType;
        return error;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function providerDef(ctx, providerAst) {
        var flags = 0
        /* None */
        ;

        if (!providerAst.eager) {
          flags |= 4096
          /* LazyProvider */
          ;
        }

        if (providerAst.providerType === ProviderAstType.PrivateService) {
          flags |= 8192
          /* PrivateProvider */
          ;
        }

        if (providerAst.isModule) {
          flags |= 1073741824
          /* TypeModuleProvider */
          ;
        }

        providerAst.lifecycleHooks.forEach(function (lifecycleHook) {
          // for regular providers, we only support ngOnDestroy
          if (lifecycleHook === LifecycleHooks.OnDestroy || providerAst.providerType === ProviderAstType.Directive || providerAst.providerType === ProviderAstType.Component) {
            flags |= lifecycleHookToNodeFlag(lifecycleHook);
          }
        });

        var _ref35 = providerAst.multiProvider ? multiProviderDef(ctx, flags, providerAst.providers) : singleProviderDef(ctx, flags, providerAst.providerType, providerAst.providers[0]),
            providerExpr = _ref35.providerExpr,
            providerFlags = _ref35.flags,
            depsExpr = _ref35.depsExpr;

        return {
          providerExpr: providerExpr,
          flags: providerFlags,
          depsExpr: depsExpr,
          tokenExpr: tokenExpr(ctx, providerAst.token)
        };
      }

      function multiProviderDef(ctx, flags, providers) {
        var allDepDefs = [];
        var allParams = [];
        var exprs = providers.map(function (provider, providerIndex) {
          var expr;

          if (provider.useClass) {
            var depExprs = convertDeps(providerIndex, provider.deps || provider.useClass.diDeps);
            expr = ctx.importExpr(provider.useClass.reference).instantiate(depExprs);
          } else if (provider.useFactory) {
            var _depExprs = convertDeps(providerIndex, provider.deps || provider.useFactory.diDeps);

            expr = ctx.importExpr(provider.useFactory.reference).callFn(_depExprs);
          } else if (provider.useExisting) {
            var _depExprs2 = convertDeps(providerIndex, [{
              token: provider.useExisting
            }]);

            expr = _depExprs2[0];
          } else {
            expr = convertValueToOutputAst(ctx, provider.useValue);
          }

          return expr;
        });
        var providerExpr = fn(allParams, [new ReturnStatement(literalArr(exprs))], INFERRED_TYPE);
        return {
          providerExpr: providerExpr,
          flags: flags | 1024
          /* TypeFactoryProvider */
          ,
          depsExpr: literalArr(allDepDefs)
        };

        function convertDeps(providerIndex, deps) {
          return deps.map(function (dep, depIndex) {
            var paramName = "p".concat(providerIndex, "_").concat(depIndex);
            allParams.push(new FnParam(paramName, DYNAMIC_TYPE));
            allDepDefs.push(depDef(ctx, dep));
            return variable(paramName);
          });
        }
      }

      function singleProviderDef(ctx, flags, providerType, providerMeta) {
        var providerExpr;
        var deps;

        if (providerType === ProviderAstType.Directive || providerType === ProviderAstType.Component) {
          providerExpr = ctx.importExpr(providerMeta.useClass.reference);
          flags |= 16384
          /* TypeDirective */
          ;
          deps = providerMeta.deps || providerMeta.useClass.diDeps;
        } else {
          if (providerMeta.useClass) {
            providerExpr = ctx.importExpr(providerMeta.useClass.reference);
            flags |= 512
            /* TypeClassProvider */
            ;
            deps = providerMeta.deps || providerMeta.useClass.diDeps;
          } else if (providerMeta.useFactory) {
            providerExpr = ctx.importExpr(providerMeta.useFactory.reference);
            flags |= 1024
            /* TypeFactoryProvider */
            ;
            deps = providerMeta.deps || providerMeta.useFactory.diDeps;
          } else if (providerMeta.useExisting) {
            providerExpr = NULL_EXPR;
            flags |= 2048
            /* TypeUseExistingProvider */
            ;
            deps = [{
              token: providerMeta.useExisting
            }];
          } else {
            providerExpr = convertValueToOutputAst(ctx, providerMeta.useValue);
            flags |= 256
            /* TypeValueProvider */
            ;
            deps = [];
          }
        }

        var depsExpr = literalArr(deps.map(function (dep) {
          return depDef(ctx, dep);
        }));
        return {
          providerExpr: providerExpr,
          flags: flags,
          depsExpr: depsExpr
        };
      }

      function tokenExpr(ctx, tokenMeta) {
        return tokenMeta.identifier ? ctx.importExpr(tokenMeta.identifier.reference) : literal(tokenMeta.value);
      }

      function depDef(ctx, dep) {
        // Note: the following fields have already been normalized out by provider_analyzer:
        // - isAttribute, isHost
        var expr = dep.isValue ? convertValueToOutputAst(ctx, dep.value) : tokenExpr(ctx, dep.token);
        var flags = 0
        /* None */
        ;

        if (dep.isSkipSelf) {
          flags |= 1
          /* SkipSelf */
          ;
        }

        if (dep.isOptional) {
          flags |= 2
          /* Optional */
          ;
        }

        if (dep.isSelf) {
          flags |= 4
          /* Self */
          ;
        }

        if (dep.isValue) {
          flags |= 8
          /* Value */
          ;
        }

        return flags === 0
        /* None */
        ? expr : literalArr([literal(flags), expr]);
      }

      function lifecycleHookToNodeFlag(lifecycleHook) {
        var nodeFlag = 0
        /* None */
        ;

        switch (lifecycleHook) {
          case LifecycleHooks.AfterContentChecked:
            nodeFlag = 2097152
            /* AfterContentChecked */
            ;
            break;

          case LifecycleHooks.AfterContentInit:
            nodeFlag = 1048576
            /* AfterContentInit */
            ;
            break;

          case LifecycleHooks.AfterViewChecked:
            nodeFlag = 8388608
            /* AfterViewChecked */
            ;
            break;

          case LifecycleHooks.AfterViewInit:
            nodeFlag = 4194304
            /* AfterViewInit */
            ;
            break;

          case LifecycleHooks.DoCheck:
            nodeFlag = 262144
            /* DoCheck */
            ;
            break;

          case LifecycleHooks.OnChanges:
            nodeFlag = 524288
            /* OnChanges */
            ;
            break;

          case LifecycleHooks.OnDestroy:
            nodeFlag = 131072
            /* OnDestroy */
            ;
            break;

          case LifecycleHooks.OnInit:
            nodeFlag = 65536
            /* OnInit */
            ;
            break;
        }

        return nodeFlag;
      }

      function componentFactoryResolverProviderDef(reflector, ctx, flags, entryComponents) {
        var entryComponentFactories = entryComponents.map(function (entryComponent) {
          return ctx.importExpr(entryComponent.componentFactory);
        });
        var token = createTokenForExternalReference(reflector, Identifiers.ComponentFactoryResolver);
        var classMeta = {
          diDeps: [{
            isValue: true,
            value: literalArr(entryComponentFactories)
          }, {
            token: token,
            isSkipSelf: true,
            isOptional: true
          }, {
            token: createTokenForExternalReference(reflector, Identifiers.NgModuleRef)
          }],
          lifecycleHooks: [],
          reference: reflector.resolveExternalReference(Identifiers.CodegenComponentFactoryResolver)
        };

        var _singleProviderDef = singleProviderDef(ctx, flags, ProviderAstType.PrivateService, {
          token: token,
          multi: false,
          useClass: classMeta
        }),
            providerExpr = _singleProviderDef.providerExpr,
            providerFlags = _singleProviderDef.flags,
            depsExpr = _singleProviderDef.depsExpr;

        return {
          providerExpr: providerExpr,
          flags: providerFlags,
          depsExpr: depsExpr,
          tokenExpr: tokenExpr(ctx, token)
        };
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var NgModuleCompileResult = function NgModuleCompileResult(ngModuleFactoryVar) {
        _classCallCheck2(this, NgModuleCompileResult);

        this.ngModuleFactoryVar = ngModuleFactoryVar;
      };

      var LOG_VAR = variable('_l');

      var NgModuleCompiler = /*#__PURE__*/function () {
        function NgModuleCompiler(reflector) {
          _classCallCheck2(this, NgModuleCompiler);

          this.reflector = reflector;
        }

        _createClass2(NgModuleCompiler, [{
          key: "compile",
          value: function compile(ctx, ngModuleMeta, extraProviders) {
            var sourceSpan = typeSourceSpan('NgModule', ngModuleMeta.type);
            var entryComponentFactories = ngModuleMeta.transitiveModule.entryComponents;
            var bootstrapComponents = ngModuleMeta.bootstrapComponents;
            var providerParser = new NgModuleProviderAnalyzer(this.reflector, ngModuleMeta, extraProviders, sourceSpan);
            var providerDefs = [componentFactoryResolverProviderDef(this.reflector, ctx, 0
            /* None */
            , entryComponentFactories)].concat(providerParser.parse().map(function (provider) {
              return providerDef(ctx, provider);
            })).map(function (_ref36) {
              var providerExpr = _ref36.providerExpr,
                  depsExpr = _ref36.depsExpr,
                  flags = _ref36.flags,
                  tokenExpr = _ref36.tokenExpr;
              return importExpr(Identifiers.moduleProviderDef).callFn([literal(flags), tokenExpr, providerExpr, depsExpr]);
            });
            var ngModuleDef = importExpr(Identifiers.moduleDef).callFn([literalArr(providerDefs)]);
            var ngModuleDefFactory = fn([new FnParam(LOG_VAR.name)], [new ReturnStatement(ngModuleDef)], INFERRED_TYPE);
            var ngModuleFactoryVar = "".concat(identifierName(ngModuleMeta.type), "NgFactory");

            this._createNgModuleFactory(ctx, ngModuleMeta.type.reference, importExpr(Identifiers.createModuleFactory).callFn([ctx.importExpr(ngModuleMeta.type.reference), literalArr(bootstrapComponents.map(function (id) {
              return ctx.importExpr(id.reference);
            })), ngModuleDefFactory]));

            if (ngModuleMeta.id) {
              var id = typeof ngModuleMeta.id === 'string' ? literal(ngModuleMeta.id) : ctx.importExpr(ngModuleMeta.id);
              var registerFactoryStmt = importExpr(Identifiers.RegisterModuleFactoryFn).callFn([id, variable(ngModuleFactoryVar)]).toStmt();
              ctx.statements.push(registerFactoryStmt);
            }

            return new NgModuleCompileResult(ngModuleFactoryVar);
          }
        }, {
          key: "createStub",
          value: function createStub(ctx, ngModuleReference) {
            this._createNgModuleFactory(ctx, ngModuleReference, NULL_EXPR);
          }
        }, {
          key: "_createNgModuleFactory",
          value: function _createNgModuleFactory(ctx, reference, value) {
            var ngModuleFactoryVar = "".concat(identifierName({
              reference: reference
            }), "NgFactory");
            var ngModuleFactoryStmt = variable(ngModuleFactoryVar).set(value).toDeclStmt(importType(Identifiers.NgModuleFactory, [expressionType(ctx.importExpr(reference))], [TypeModifier.Const]), [StmtModifier.Final, StmtModifier.Exported]);
            ctx.statements.push(ngModuleFactoryStmt);
          }
        }]);

        return NgModuleCompiler;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Resolves types to {@link NgModule}.
       */


      var NgModuleResolver = /*#__PURE__*/function () {
        function NgModuleResolver(_reflector) {
          _classCallCheck2(this, NgModuleResolver);

          this._reflector = _reflector;
        }

        _createClass2(NgModuleResolver, [{
          key: "isNgModule",
          value: function isNgModule(type) {
            return this._reflector.annotations(type).some(createNgModule.isTypeOf);
          }
        }, {
          key: "resolve",
          value: function resolve(type) {
            var throwIfNotFound = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
            var ngModuleMeta = findLast(this._reflector.annotations(type), createNgModule.isTypeOf);

            if (ngModuleMeta) {
              return ngModuleMeta;
            } else {
              if (throwIfNotFound) {
                throw new Error("No NgModule metadata found for '".concat(stringify(type), "'."));
              }

              return null;
            }
          }
        }]);

        return NgModuleResolver;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function debugOutputAstAsTypeScript(ast) {
        var converter = new _TsEmitterVisitor();
        var ctx = EmitterVisitorContext.createRoot();
        var asts = Array.isArray(ast) ? ast : [ast];
        asts.forEach(function (ast) {
          if (ast instanceof Statement) {
            ast.visitStatement(converter, ctx);
          } else if (ast instanceof Expression) {
            ast.visitExpression(converter, ctx);
          } else if (ast instanceof Type$1) {
            ast.visitType(converter, ctx);
          } else {
            throw new Error("Don't know how to print debug info for ".concat(ast));
          }
        });
        return ctx.toSource();
      }

      var TypeScriptEmitter = /*#__PURE__*/function () {
        function TypeScriptEmitter() {
          _classCallCheck2(this, TypeScriptEmitter);
        }

        _createClass2(TypeScriptEmitter, [{
          key: "emitStatementsAndContext",
          value: function emitStatementsAndContext(genFilePath, stmts) {
            var preamble = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
            var emitSourceMaps = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
            var referenceFilter = arguments.length > 4 ? arguments[4] : undefined;
            var importFilter = arguments.length > 5 ? arguments[5] : undefined;
            var converter = new _TsEmitterVisitor(referenceFilter, importFilter);
            var ctx = EmitterVisitorContext.createRoot();
            converter.visitAllStatements(stmts, ctx);
            var preambleLines = preamble ? preamble.split('\n') : [];
            converter.reexports.forEach(function (reexports, exportedModuleName) {
              var reexportsCode = reexports.map(function (reexport) {
                return "".concat(reexport.name, " as ").concat(reexport.as);
              }).join(',');
              preambleLines.push("export {".concat(reexportsCode, "} from '").concat(exportedModuleName, "';"));
            });
            converter.importsWithPrefixes.forEach(function (prefix, importedModuleName) {
              // Note: can't write the real word for import as it screws up system.js auto detection...
              preambleLines.push("imp" + "ort * as ".concat(prefix, " from '").concat(importedModuleName, "';"));
            });
            var sm = emitSourceMaps ? ctx.toSourceMapGenerator(genFilePath, preambleLines.length).toJsComment() : '';
            var lines = [].concat(_toConsumableArray(preambleLines), [ctx.toSource(), sm]);

            if (sm) {
              // always add a newline at the end, as some tools have bugs without it.
              lines.push('');
            }

            ctx.setPreambleLineCount(preambleLines.length);
            return {
              sourceText: lines.join('\n'),
              context: ctx
            };
          }
        }, {
          key: "emitStatements",
          value: function emitStatements(genFilePath, stmts) {
            var preamble = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
            return this.emitStatementsAndContext(genFilePath, stmts, preamble).sourceText;
          }
        }]);

        return TypeScriptEmitter;
      }();

      var _TsEmitterVisitor = /*#__PURE__*/function (_AbstractEmitterVisit2) {
        _inherits2(_TsEmitterVisitor, _AbstractEmitterVisit2);

        var _super114 = _createSuper2(_TsEmitterVisitor);

        function _TsEmitterVisitor(referenceFilter, importFilter) {
          var _this274;

          _classCallCheck2(this, _TsEmitterVisitor);

          _this274 = _super114.call(this, false);
          _this274.referenceFilter = referenceFilter;
          _this274.importFilter = importFilter;
          _this274.typeExpression = 0;
          _this274.importsWithPrefixes = new Map();
          _this274.reexports = new Map();
          return _this274;
        }

        _createClass2(_TsEmitterVisitor, [{
          key: "visitType",
          value: function visitType(t, ctx) {
            var defaultType = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'any';

            if (t) {
              this.typeExpression++;
              t.visitType(this, ctx);
              this.typeExpression--;
            } else {
              ctx.print(null, defaultType);
            }
          }
        }, {
          key: "visitLiteralExpr",
          value: function visitLiteralExpr(ast, ctx) {
            var value = ast.value;

            if (value == null && ast.type != INFERRED_TYPE) {
              ctx.print(ast, "(".concat(value, " as any)"));
              return null;
            }

            return _get2(_getPrototypeOf2(_TsEmitterVisitor.prototype), "visitLiteralExpr", this).call(this, ast, ctx);
          } // Temporary workaround to support strictNullCheck enabled consumers of ngc emit.
          // In SNC mode, [] have the type never[], so we cast here to any[].
          // TODO: narrow the cast to a more explicit type, or use a pattern that does not
          // start with [].concat. see https://github.com/angular/angular/pull/11846

        }, {
          key: "visitLiteralArrayExpr",
          value: function visitLiteralArrayExpr(ast, ctx) {
            if (ast.entries.length === 0) {
              ctx.print(ast, '(');
            }

            var result = _get2(_getPrototypeOf2(_TsEmitterVisitor.prototype), "visitLiteralArrayExpr", this).call(this, ast, ctx);

            if (ast.entries.length === 0) {
              ctx.print(ast, ' as any[])');
            }

            return result;
          }
        }, {
          key: "visitExternalExpr",
          value: function visitExternalExpr(ast, ctx) {
            this._visitIdentifier(ast.value, ast.typeParams, ctx);

            return null;
          }
        }, {
          key: "visitAssertNotNullExpr",
          value: function visitAssertNotNullExpr(ast, ctx) {
            var result = _get2(_getPrototypeOf2(_TsEmitterVisitor.prototype), "visitAssertNotNullExpr", this).call(this, ast, ctx);

            ctx.print(ast, '!');
            return result;
          }
        }, {
          key: "visitDeclareVarStmt",
          value: function visitDeclareVarStmt(stmt, ctx) {
            if (stmt.hasModifier(StmtModifier.Exported) && stmt.value instanceof ExternalExpr && !stmt.type) {
              // check for a reexport
              var _stmt$value$value = stmt.value.value,
                  name = _stmt$value$value.name,
                  moduleName = _stmt$value$value.moduleName;

              if (moduleName) {
                var reexports = this.reexports.get(moduleName);

                if (!reexports) {
                  reexports = [];
                  this.reexports.set(moduleName, reexports);
                }

                reexports.push({
                  name: name,
                  as: stmt.name
                });
                return null;
              }
            }

            if (stmt.hasModifier(StmtModifier.Exported)) {
              ctx.print(stmt, "export ");
            }

            if (stmt.hasModifier(StmtModifier.Final)) {
              ctx.print(stmt, "const");
            } else {
              ctx.print(stmt, "var");
            }

            ctx.print(stmt, " ".concat(stmt.name));

            this._printColonType(stmt.type, ctx);

            if (stmt.value) {
              ctx.print(stmt, " = ");
              stmt.value.visitExpression(this, ctx);
            }

            ctx.println(stmt, ";");
            return null;
          }
        }, {
          key: "visitWrappedNodeExpr",
          value: function visitWrappedNodeExpr(ast, ctx) {
            throw new Error('Cannot visit a WrappedNodeExpr when outputting Typescript.');
          }
        }, {
          key: "visitCastExpr",
          value: function visitCastExpr(ast, ctx) {
            ctx.print(ast, "(<");
            ast.type.visitType(this, ctx);
            ctx.print(ast, ">");
            ast.value.visitExpression(this, ctx);
            ctx.print(ast, ")");
            return null;
          }
        }, {
          key: "visitInstantiateExpr",
          value: function visitInstantiateExpr(ast, ctx) {
            ctx.print(ast, "new ");
            this.typeExpression++;
            ast.classExpr.visitExpression(this, ctx);
            this.typeExpression--;
            ctx.print(ast, "(");
            this.visitAllExpressions(ast.args, ctx, ',');
            ctx.print(ast, ")");
            return null;
          }
        }, {
          key: "visitDeclareClassStmt",
          value: function visitDeclareClassStmt(stmt, ctx) {
            var _this275 = this;

            ctx.pushClass(stmt);

            if (stmt.hasModifier(StmtModifier.Exported)) {
              ctx.print(stmt, "export ");
            }

            ctx.print(stmt, "class ".concat(stmt.name));

            if (stmt.parent != null) {
              ctx.print(stmt, " extends ");
              this.typeExpression++;
              stmt.parent.visitExpression(this, ctx);
              this.typeExpression--;
            }

            ctx.println(stmt, " {");
            ctx.incIndent();
            stmt.fields.forEach(function (field) {
              return _this275._visitClassField(field, ctx);
            });

            if (stmt.constructorMethod != null) {
              this._visitClassConstructor(stmt, ctx);
            }

            stmt.getters.forEach(function (getter) {
              return _this275._visitClassGetter(getter, ctx);
            });
            stmt.methods.forEach(function (method) {
              return _this275._visitClassMethod(method, ctx);
            });
            ctx.decIndent();
            ctx.println(stmt, "}");
            ctx.popClass();
            return null;
          }
        }, {
          key: "_visitClassField",
          value: function _visitClassField(field, ctx) {
            if (field.hasModifier(StmtModifier.Private)) {
              // comment out as a workaround for #10967
              ctx.print(null, "/*private*/ ");
            }

            if (field.hasModifier(StmtModifier.Static)) {
              ctx.print(null, 'static ');
            }

            ctx.print(null, field.name);

            this._printColonType(field.type, ctx);

            if (field.initializer) {
              ctx.print(null, ' = ');
              field.initializer.visitExpression(this, ctx);
            }

            ctx.println(null, ";");
          }
        }, {
          key: "_visitClassGetter",
          value: function _visitClassGetter(getter, ctx) {
            if (getter.hasModifier(StmtModifier.Private)) {
              ctx.print(null, "private ");
            }

            ctx.print(null, "get ".concat(getter.name, "()"));

            this._printColonType(getter.type, ctx);

            ctx.println(null, " {");
            ctx.incIndent();
            this.visitAllStatements(getter.body, ctx);
            ctx.decIndent();
            ctx.println(null, "}");
          }
        }, {
          key: "_visitClassConstructor",
          value: function _visitClassConstructor(stmt, ctx) {
            ctx.print(stmt, "constructor(");

            this._visitParams(stmt.constructorMethod.params, ctx);

            ctx.println(stmt, ") {");
            ctx.incIndent();
            this.visitAllStatements(stmt.constructorMethod.body, ctx);
            ctx.decIndent();
            ctx.println(stmt, "}");
          }
        }, {
          key: "_visitClassMethod",
          value: function _visitClassMethod(method, ctx) {
            if (method.hasModifier(StmtModifier.Private)) {
              ctx.print(null, "private ");
            }

            ctx.print(null, "".concat(method.name, "("));

            this._visitParams(method.params, ctx);

            ctx.print(null, ")");

            this._printColonType(method.type, ctx, 'void');

            ctx.println(null, " {");
            ctx.incIndent();
            this.visitAllStatements(method.body, ctx);
            ctx.decIndent();
            ctx.println(null, "}");
          }
        }, {
          key: "visitFunctionExpr",
          value: function visitFunctionExpr(ast, ctx) {
            if (ast.name) {
              ctx.print(ast, 'function ');
              ctx.print(ast, ast.name);
            }

            ctx.print(ast, "(");

            this._visitParams(ast.params, ctx);

            ctx.print(ast, ")");

            this._printColonType(ast.type, ctx, 'void');

            if (!ast.name) {
              ctx.print(ast, " => ");
            }

            ctx.println(ast, '{');
            ctx.incIndent();
            this.visitAllStatements(ast.statements, ctx);
            ctx.decIndent();
            ctx.print(ast, "}");
            return null;
          }
        }, {
          key: "visitDeclareFunctionStmt",
          value: function visitDeclareFunctionStmt(stmt, ctx) {
            if (stmt.hasModifier(StmtModifier.Exported)) {
              ctx.print(stmt, "export ");
            }

            ctx.print(stmt, "function ".concat(stmt.name, "("));

            this._visitParams(stmt.params, ctx);

            ctx.print(stmt, ")");

            this._printColonType(stmt.type, ctx, 'void');

            ctx.println(stmt, " {");
            ctx.incIndent();
            this.visitAllStatements(stmt.statements, ctx);
            ctx.decIndent();
            ctx.println(stmt, "}");
            return null;
          }
        }, {
          key: "visitTryCatchStmt",
          value: function visitTryCatchStmt(stmt, ctx) {
            ctx.println(stmt, "try {");
            ctx.incIndent();
            this.visitAllStatements(stmt.bodyStmts, ctx);
            ctx.decIndent();
            ctx.println(stmt, "} catch (".concat(CATCH_ERROR_VAR$1.name, ") {"));
            ctx.incIndent();
            var catchStmts = [CATCH_STACK_VAR$1.set(CATCH_ERROR_VAR$1.prop('stack', null)).toDeclStmt(null, [StmtModifier.Final])].concat(stmt.catchStmts);
            this.visitAllStatements(catchStmts, ctx);
            ctx.decIndent();
            ctx.println(stmt, "}");
            return null;
          }
        }, {
          key: "visitBuiltinType",
          value: function visitBuiltinType(type, ctx) {
            var typeStr;

            switch (type.name) {
              case BuiltinTypeName.Bool:
                typeStr = 'boolean';
                break;

              case BuiltinTypeName.Dynamic:
                typeStr = 'any';
                break;

              case BuiltinTypeName.Function:
                typeStr = 'Function';
                break;

              case BuiltinTypeName.Number:
                typeStr = 'number';
                break;

              case BuiltinTypeName.Int:
                typeStr = 'number';
                break;

              case BuiltinTypeName.String:
                typeStr = 'string';
                break;

              case BuiltinTypeName.None:
                typeStr = 'never';
                break;

              default:
                throw new Error("Unsupported builtin type ".concat(type.name));
            }

            ctx.print(null, typeStr);
            return null;
          }
        }, {
          key: "visitExpressionType",
          value: function visitExpressionType(ast, ctx) {
            var _this276 = this;

            ast.value.visitExpression(this, ctx);

            if (ast.typeParams !== null) {
              ctx.print(null, '<');
              this.visitAllObjects(function (type) {
                return _this276.visitType(type, ctx);
              }, ast.typeParams, ctx, ',');
              ctx.print(null, '>');
            }

            return null;
          }
        }, {
          key: "visitArrayType",
          value: function visitArrayType(type, ctx) {
            this.visitType(type.of, ctx);
            ctx.print(null, "[]");
            return null;
          }
        }, {
          key: "visitMapType",
          value: function visitMapType(type, ctx) {
            ctx.print(null, "{[key: string]:");
            this.visitType(type.valueType, ctx);
            ctx.print(null, "}");
            return null;
          }
        }, {
          key: "getBuiltinMethodName",
          value: function getBuiltinMethodName(method) {
            var name;

            switch (method) {
              case BuiltinMethod.ConcatArray:
                name = 'concat';
                break;

              case BuiltinMethod.SubscribeObservable:
                name = 'subscribe';
                break;

              case BuiltinMethod.Bind:
                name = 'bind';
                break;

              default:
                throw new Error("Unknown builtin method: ".concat(method));
            }

            return name;
          }
        }, {
          key: "_visitParams",
          value: function _visitParams(params, ctx) {
            var _this277 = this;

            this.visitAllObjects(function (param) {
              ctx.print(null, param.name);

              _this277._printColonType(param.type, ctx);
            }, params, ctx, ',');
          }
        }, {
          key: "_visitIdentifier",
          value: function _visitIdentifier(value, typeParams, ctx) {
            var _this278 = this;

            var name = value.name,
                moduleName = value.moduleName;

            if (this.referenceFilter && this.referenceFilter(value)) {
              ctx.print(null, '(null as any)');
              return;
            }

            if (moduleName && (!this.importFilter || !this.importFilter(value))) {
              var prefix = this.importsWithPrefixes.get(moduleName);

              if (prefix == null) {
                prefix = "i".concat(this.importsWithPrefixes.size);
                this.importsWithPrefixes.set(moduleName, prefix);
              }

              ctx.print(null, "".concat(prefix, "."));
            }

            ctx.print(null, name);

            if (this.typeExpression > 0) {
              // If we are in a type expression that refers to a generic type then supply
              // the required type parameters. If there were not enough type parameters
              // supplied, supply any as the type. Outside a type expression the reference
              // should not supply type parameters and be treated as a simple value reference
              // to the constructor function itself.
              var suppliedParameters = typeParams || [];

              if (suppliedParameters.length > 0) {
                ctx.print(null, "<");
                this.visitAllObjects(function (type) {
                  return type.visitType(_this278, ctx);
                }, typeParams, ctx, ',');
                ctx.print(null, ">");
              }
            }
          }
        }, {
          key: "_printColonType",
          value: function _printColonType(type, ctx, defaultType) {
            if (type !== INFERRED_TYPE) {
              ctx.print(null, ':');
              this.visitType(type, ctx, defaultType);
            }
          }
        }]);

        return _TsEmitterVisitor;
      }(AbstractEmitterVisitor);
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Resolve a `Type` for {@link Pipe}.
       *
       * This interface can be overridden by the application developer to create custom behavior.
       *
       * See {@link Compiler}
       */


      var PipeResolver = /*#__PURE__*/function () {
        function PipeResolver(_reflector) {
          _classCallCheck2(this, PipeResolver);

          this._reflector = _reflector;
        }

        _createClass2(PipeResolver, [{
          key: "isPipe",
          value: function isPipe(type) {
            var typeMetadata = this._reflector.annotations(resolveForwardRef(type));

            return typeMetadata && typeMetadata.some(createPipe.isTypeOf);
          }
          /**
           * Return {@link Pipe} for a given `Type`.
           */

        }, {
          key: "resolve",
          value: function resolve(type) {
            var throwIfNotFound = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;

            var metas = this._reflector.annotations(resolveForwardRef(type));

            if (metas) {
              var annotation = findLast(metas, createPipe.isTypeOf);

              if (annotation) {
                return annotation;
              }
            }

            if (throwIfNotFound) {
              throw new Error("No Pipe decorator found on ".concat(stringify(type)));
            }

            return null;
          }
        }]);

        return PipeResolver;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Generates code that is used to type check templates.
       */


      var TypeCheckCompiler = /*#__PURE__*/function () {
        function TypeCheckCompiler(options, reflector) {
          _classCallCheck2(this, TypeCheckCompiler);

          this.options = options;
          this.reflector = reflector;
        }
        /**
         * Important notes:
         * - This must not produce new `import` statements, but only refer to types outside
         *   of the file via the variables provided via externalReferenceVars.
         *   This allows Typescript to reuse the old program's structure as no imports have changed.
         * - This must not produce any exports, as this would pollute the .d.ts file
         *   and also violate the point above.
         */


        _createClass2(TypeCheckCompiler, [{
          key: "compileComponent",
          value: function compileComponent(componentId, component, template, usedPipes, externalReferenceVars, ctx) {
            var _this279 = this;

            var pipes = new Map();
            usedPipes.forEach(function (p) {
              return pipes.set(p.name, p.type.reference);
            });
            var embeddedViewCount = 0;

            var viewBuilderFactory = function viewBuilderFactory(parent, guards) {
              var embeddedViewIndex = embeddedViewCount++;
              return new ViewBuilder(_this279.options, _this279.reflector, externalReferenceVars, parent, component.type.reference, component.isHost, embeddedViewIndex, pipes, guards, ctx, viewBuilderFactory);
            };

            var visitor = viewBuilderFactory(null, []);
            visitor.visitAll([], template);
            return visitor.build(componentId);
          }
        }]);

        return TypeCheckCompiler;
      }();

      var DYNAMIC_VAR_NAME = '_any';

      var TypeCheckLocalResolver = /*#__PURE__*/function () {
        function TypeCheckLocalResolver() {
          _classCallCheck2(this, TypeCheckLocalResolver);
        }

        _createClass2(TypeCheckLocalResolver, [{
          key: "notifyImplicitReceiverUse",
          value: function notifyImplicitReceiverUse() {}
        }, {
          key: "getLocal",
          value: function getLocal(name) {
            if (name === EventHandlerVars.event.name) {
              // References to the event should not be type-checked.
              // TODO(chuckj): determine a better type for the event.
              return variable(DYNAMIC_VAR_NAME);
            }

            return null;
          }
        }]);

        return TypeCheckLocalResolver;
      }();

      var defaultResolver = new TypeCheckLocalResolver();

      var ViewBuilder = /*#__PURE__*/function () {
        function ViewBuilder(options, reflector, externalReferenceVars, parent, component, isHostComponent, embeddedViewIndex, pipes, guards, ctx, viewBuilderFactory) {
          _classCallCheck2(this, ViewBuilder);

          this.options = options;
          this.reflector = reflector;
          this.externalReferenceVars = externalReferenceVars;
          this.parent = parent;
          this.component = component;
          this.isHostComponent = isHostComponent;
          this.embeddedViewIndex = embeddedViewIndex;
          this.pipes = pipes;
          this.guards = guards;
          this.ctx = ctx;
          this.viewBuilderFactory = viewBuilderFactory;
          this.refOutputVars = new Map();
          this.variables = [];
          this.children = [];
          this.updates = [];
          this.actions = [];
        }

        _createClass2(ViewBuilder, [{
          key: "getOutputVar",
          value: function getOutputVar(type) {
            var varName;

            if (type === this.component && this.isHostComponent) {
              varName = DYNAMIC_VAR_NAME;
            } else if (type instanceof StaticSymbol) {
              varName = this.externalReferenceVars.get(type);
            } else {
              varName = DYNAMIC_VAR_NAME;
            }

            if (!varName) {
              throw new Error("Illegal State: referring to a type without a variable ".concat(JSON.stringify(type)));
            }

            return varName;
          }
        }, {
          key: "getTypeGuardExpressions",
          value: function getTypeGuardExpressions(ast) {
            var result = _toConsumableArray(this.guards);

            var _iterator24 = _createForOfIteratorHelper(ast.directives),
                _step24;

            try {
              for (_iterator24.s(); !(_step24 = _iterator24.n()).done;) {
                var directive = _step24.value;

                var _iterator25 = _createForOfIteratorHelper(directive.inputs),
                    _step25;

                try {
                  for (_iterator25.s(); !(_step25 = _iterator25.n()).done;) {
                    var input = _step25.value;
                    var guard = directive.directive.guards[input.directiveName];

                    if (guard) {
                      var useIf = guard === 'UseIf';
                      result.push({
                        guard: guard,
                        useIf: useIf,
                        expression: {
                          context: this.component,
                          value: input.value,
                          sourceSpan: input.sourceSpan
                        }
                      });
                    }
                  }
                } catch (err) {
                  _iterator25.e(err);
                } finally {
                  _iterator25.f();
                }
              }
            } catch (err) {
              _iterator24.e(err);
            } finally {
              _iterator24.f();
            }

            return result;
          }
        }, {
          key: "visitAll",
          value: function visitAll(variables, astNodes) {
            this.variables = variables;
            templateVisitAll(this, astNodes);
          }
        }, {
          key: "build",
          value: function build(componentId) {
            var _this280 = this;

            var targetStatements = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
            this.children.forEach(function (child) {
              return child.build(componentId, targetStatements);
            });
            var viewStmts = [variable(DYNAMIC_VAR_NAME).set(NULL_EXPR).toDeclStmt(DYNAMIC_TYPE)];
            var bindingCount = 0;
            this.updates.forEach(function (expression) {
              var _viewStmts;

              var _this280$preprocessUp = _this280.preprocessUpdateExpression(expression),
                  sourceSpan = _this280$preprocessUp.sourceSpan,
                  context = _this280$preprocessUp.context,
                  value = _this280$preprocessUp.value;

              var bindingId = "".concat(bindingCount++);
              var nameResolver = context === _this280.component ? _this280 : defaultResolver;

              var _convertPropertyBindi = _convertPropertyBinding(nameResolver, variable(_this280.getOutputVar(context)), value, bindingId, BindingForm.General),
                  stmts = _convertPropertyBindi.stmts,
                  currValExpr = _convertPropertyBindi.currValExpr;

              stmts.push(new ExpressionStatement(currValExpr));

              (_viewStmts = viewStmts).push.apply(_viewStmts, _toConsumableArray(stmts.map(function (stmt) {
                return applySourceSpanToStatementIfNeeded(stmt, sourceSpan);
              })));
            });
            this.actions.forEach(function (_ref37) {
              var _viewStmts2;

              var sourceSpan = _ref37.sourceSpan,
                  context = _ref37.context,
                  value = _ref37.value;
              var bindingId = "".concat(bindingCount++);
              var nameResolver = context === _this280.component ? _this280 : defaultResolver;

              var _convertActionBinding = convertActionBinding(nameResolver, variable(_this280.getOutputVar(context)), value, bindingId),
                  stmts = _convertActionBinding.stmts;

              (_viewStmts2 = viewStmts).push.apply(_viewStmts2, _toConsumableArray(stmts.map(function (stmt) {
                return applySourceSpanToStatementIfNeeded(stmt, sourceSpan);
              })));
            });

            if (this.guards.length) {
              var guardExpression = undefined;

              var _iterator26 = _createForOfIteratorHelper(this.guards),
                  _step26;

              try {
                for (_iterator26.s(); !(_step26 = _iterator26.n()).done;) {
                  var guard = _step26.value;

                  var _this$preprocessUpdat = this.preprocessUpdateExpression(guard.expression),
                      context = _this$preprocessUpdat.context,
                      value = _this$preprocessUpdat.value;

                  var bindingId = "".concat(bindingCount++);
                  var nameResolver = context === this.component ? this : defaultResolver; // We only support support simple expressions and ignore others as they
                  // are unlikely to affect type narrowing.

                  var _convertPropertyBindi2 = _convertPropertyBinding(nameResolver, variable(this.getOutputVar(context)), value, bindingId, BindingForm.TrySimple),
                      stmts = _convertPropertyBindi2.stmts,
                      currValExpr = _convertPropertyBindi2.currValExpr;

                  if (stmts.length == 0) {
                    var guardClause = guard.useIf ? currValExpr : this.ctx.importExpr(guard.guard).callFn([currValExpr]);
                    guardExpression = guardExpression ? guardExpression.and(guardClause) : guardClause;
                  }
                }
              } catch (err) {
                _iterator26.e(err);
              } finally {
                _iterator26.f();
              }

              if (guardExpression) {
                viewStmts = [new IfStmt(guardExpression, viewStmts)];
              }
            }

            var viewName = "_View_".concat(componentId, "_").concat(this.embeddedViewIndex);
            var viewFactory = new DeclareFunctionStmt(viewName, [], viewStmts);
            targetStatements.push(viewFactory);
            return targetStatements;
          }
        }, {
          key: "visitBoundText",
          value: function visitBoundText(ast, context) {
            var _this281 = this;

            var astWithSource = ast.value;
            var inter = astWithSource.ast;
            inter.expressions.forEach(function (expr) {
              return _this281.updates.push({
                context: _this281.component,
                value: expr,
                sourceSpan: ast.sourceSpan
              });
            });
          }
        }, {
          key: "visitEmbeddedTemplate",
          value: function visitEmbeddedTemplate(ast, context) {
            this.visitElementOrTemplate(ast); // Note: The old view compiler used to use an `any` type
            // for the context in any embedded view.
            // We keep this behaivor behind a flag for now.

            if (this.options.fullTemplateTypeCheck) {
              // Find any applicable type guards. For example, NgIf has a type guard on ngIf
              // (see NgIf.ngIfTypeGuard) that can be used to indicate that a template is only
              // stamped out if ngIf is truthy so any bindings in the template can assume that,
              // if a nullable type is used for ngIf, that expression is not null or undefined.
              var guards = this.getTypeGuardExpressions(ast);
              var childVisitor = this.viewBuilderFactory(this, guards);
              this.children.push(childVisitor);
              childVisitor.visitAll(ast.variables, ast.children);
            }
          }
        }, {
          key: "visitElement",
          value: function visitElement(ast, context) {
            var _this282 = this;

            this.visitElementOrTemplate(ast);
            var inputDefs = [];
            var updateRendererExpressions = [];
            var outputDefs = [];
            ast.inputs.forEach(function (inputAst) {
              _this282.updates.push({
                context: _this282.component,
                value: inputAst.value,
                sourceSpan: inputAst.sourceSpan
              });
            });
            templateVisitAll(this, ast.children);
          }
        }, {
          key: "visitElementOrTemplate",
          value: function visitElementOrTemplate(ast) {
            var _this283 = this;

            ast.directives.forEach(function (dirAst) {
              _this283.visitDirective(dirAst);
            });
            ast.references.forEach(function (ref) {
              var outputVarType = null; // Note: The old view compiler used to use an `any` type
              // for directives exposed via `exportAs`.
              // We keep this behaivor behind a flag for now.

              if (ref.value && ref.value.identifier && _this283.options.fullTemplateTypeCheck) {
                outputVarType = ref.value.identifier.reference;
              } else {
                outputVarType = BuiltinTypeName.Dynamic;
              }

              _this283.refOutputVars.set(ref.name, outputVarType);
            });
            ast.outputs.forEach(function (outputAst) {
              _this283.actions.push({
                context: _this283.component,
                value: outputAst.handler,
                sourceSpan: outputAst.sourceSpan
              });
            });
          }
        }, {
          key: "visitDirective",
          value: function visitDirective(dirAst) {
            var _this284 = this;

            var dirType = dirAst.directive.type.reference;
            dirAst.inputs.forEach(function (input) {
              return _this284.updates.push({
                context: _this284.component,
                value: input.value,
                sourceSpan: input.sourceSpan
              });
            }); // Note: The old view compiler used to use an `any` type
            // for expressions in host properties / events.
            // We keep this behaivor behind a flag for now.

            if (this.options.fullTemplateTypeCheck) {
              dirAst.hostProperties.forEach(function (inputAst) {
                return _this284.updates.push({
                  context: dirType,
                  value: inputAst.value,
                  sourceSpan: inputAst.sourceSpan
                });
              });
              dirAst.hostEvents.forEach(function (hostEventAst) {
                return _this284.actions.push({
                  context: dirType,
                  value: hostEventAst.handler,
                  sourceSpan: hostEventAst.sourceSpan
                });
              });
            }
          }
        }, {
          key: "notifyImplicitReceiverUse",
          value: function notifyImplicitReceiverUse() {}
        }, {
          key: "getLocal",
          value: function getLocal(name) {
            if (name == EventHandlerVars.event.name) {
              return variable(this.getOutputVar(BuiltinTypeName.Dynamic));
            }

            for (var currBuilder = this; currBuilder; currBuilder = currBuilder.parent) {
              var outputVarType = void 0; // check references

              outputVarType = currBuilder.refOutputVars.get(name);

              if (outputVarType == null) {
                // check variables
                var varAst = currBuilder.variables.find(function (varAst) {
                  return varAst.name === name;
                });

                if (varAst) {
                  outputVarType = BuiltinTypeName.Dynamic;
                }
              }

              if (outputVarType != null) {
                return variable(this.getOutputVar(outputVarType));
              }
            }

            return null;
          }
        }, {
          key: "pipeOutputVar",
          value: function pipeOutputVar(name) {
            var pipe = this.pipes.get(name);

            if (!pipe) {
              throw new Error("Illegal State: Could not find pipe ".concat(name, " in template of ").concat(this.component));
            }

            return this.getOutputVar(pipe);
          }
        }, {
          key: "preprocessUpdateExpression",
          value: function preprocessUpdateExpression(expression) {
            var _this285 = this;

            return {
              sourceSpan: expression.sourceSpan,
              context: expression.context,
              value: convertPropertyBindingBuiltins({
                createLiteralArrayConverter: function createLiteralArrayConverter(argCount) {
                  return function (args) {
                    var arr = literalArr(args); // Note: The old view compiler used to use an `any` type
                    // for arrays.

                    return _this285.options.fullTemplateTypeCheck ? arr : arr.cast(DYNAMIC_TYPE);
                  };
                },
                createLiteralMapConverter: function createLiteralMapConverter(keys) {
                  return function (values) {
                    var entries = keys.map(function (k, i) {
                      return {
                        key: k.key,
                        value: values[i],
                        quoted: k.quoted
                      };
                    });
                    var map = literalMap(entries); // Note: The old view compiler used to use an `any` type
                    // for maps.

                    return _this285.options.fullTemplateTypeCheck ? map : map.cast(DYNAMIC_TYPE);
                  };
                },
                createPipeConverter: function createPipeConverter(name, argCount) {
                  return function (args) {
                    // Note: The old view compiler used to use an `any` type
                    // for pipes.
                    var pipeExpr = _this285.options.fullTemplateTypeCheck ? variable(_this285.pipeOutputVar(name)) : variable(_this285.getOutputVar(BuiltinTypeName.Dynamic));
                    return pipeExpr.callMethod('transform', args);
                  };
                }
              }, expression.value)
            };
          }
        }, {
          key: "visitNgContent",
          value: function visitNgContent(ast, context) {}
        }, {
          key: "visitText",
          value: function visitText(ast, context) {}
        }, {
          key: "visitDirectiveProperty",
          value: function visitDirectiveProperty(ast, context) {}
        }, {
          key: "visitReference",
          value: function visitReference(ast, context) {}
        }, {
          key: "visitVariable",
          value: function visitVariable(ast, context) {}
        }, {
          key: "visitEvent",
          value: function visitEvent(ast, context) {}
        }, {
          key: "visitElementProperty",
          value: function visitElementProperty(ast, context) {}
        }, {
          key: "visitAttr",
          value: function visitAttr(ast, context) {}
        }]);

        return ViewBuilder;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var CLASS_ATTR$1 = 'class';
      var STYLE_ATTR = 'style';
      var IMPLICIT_TEMPLATE_VAR = '\$implicit';

      var ViewCompileResult = function ViewCompileResult(viewClassVar, rendererTypeVar) {
        _classCallCheck2(this, ViewCompileResult);

        this.viewClassVar = viewClassVar;
        this.rendererTypeVar = rendererTypeVar;
      };

      var ViewCompiler = /*#__PURE__*/function () {
        function ViewCompiler(_reflector) {
          _classCallCheck2(this, ViewCompiler);

          this._reflector = _reflector;
        }

        _createClass2(ViewCompiler, [{
          key: "compileComponent",
          value: function compileComponent(outputCtx, component, template, styles, usedPipes) {
            var _this286 = this,
                _outputCtx$statements;

            var embeddedViewCount = 0;
            var renderComponentVarName = undefined;

            if (!component.isHost) {
              var _template2 = component.template;
              var customRenderData = [];

              if (_template2.animations && _template2.animations.length) {
                customRenderData.push(new LiteralMapEntry('animation', convertValueToOutputAst(outputCtx, _template2.animations), true));
              }

              var renderComponentVar = variable(rendererTypeName(component.type.reference));
              renderComponentVarName = renderComponentVar.name;
              outputCtx.statements.push(renderComponentVar.set(importExpr(Identifiers.createRendererType2).callFn([new LiteralMapExpr([new LiteralMapEntry('encapsulation', literal(_template2.encapsulation), false), new LiteralMapEntry('styles', styles, false), new LiteralMapEntry('data', new LiteralMapExpr(customRenderData), false)])])).toDeclStmt(importType(Identifiers.RendererType2), [StmtModifier.Final, StmtModifier.Exported]));
            }

            var viewBuilderFactory = function viewBuilderFactory(parent) {
              var embeddedViewIndex = embeddedViewCount++;
              return new ViewBuilder$1(_this286._reflector, outputCtx, parent, component, embeddedViewIndex, usedPipes, viewBuilderFactory);
            };

            var visitor = viewBuilderFactory(null);
            visitor.visitAll([], template);

            (_outputCtx$statements = outputCtx.statements).push.apply(_outputCtx$statements, _toConsumableArray(visitor.build()));

            return new ViewCompileResult(visitor.viewName, renderComponentVarName);
          }
        }]);

        return ViewCompiler;
      }();

      var LOG_VAR$1 = variable('_l');
      var VIEW_VAR = variable('_v');
      var CHECK_VAR = variable('_ck');
      var COMP_VAR = variable('_co');
      var EVENT_NAME_VAR = variable('en');
      var ALLOW_DEFAULT_VAR = variable("ad");

      var ViewBuilder$1 = /*#__PURE__*/function () {
        function ViewBuilder$1(reflector, outputCtx, parent, component, embeddedViewIndex, usedPipes, viewBuilderFactory) {
          _classCallCheck2(this, ViewBuilder$1);

          this.reflector = reflector;
          this.outputCtx = outputCtx;
          this.parent = parent;
          this.component = component;
          this.embeddedViewIndex = embeddedViewIndex;
          this.usedPipes = usedPipes;
          this.viewBuilderFactory = viewBuilderFactory;
          this.nodes = [];
          this.purePipeNodeIndices = Object.create(null); // Need Object.create so that we don't have builtin values...

          this.refNodeIndices = Object.create(null);
          this.variables = [];
          this.children = []; // TODO(tbosch): The old view compiler used to use an `any` type
          // for the context in any embedded view. We keep this behaivor for now
          // to be able to introduce the new view compiler without too many errors.

          this.compType = this.embeddedViewIndex > 0 ? DYNAMIC_TYPE : expressionType(outputCtx.importExpr(this.component.type.reference));
          this.viewName = viewClassName(this.component.type.reference, this.embeddedViewIndex);
        }

        _createClass2(ViewBuilder$1, [{
          key: "visitAll",
          value: function visitAll(variables, astNodes) {
            var _this287 = this;

            this.variables = variables; // create the pipes for the pure pipes immediately, so that we know their indices.

            if (!this.parent) {
              this.usedPipes.forEach(function (pipe) {
                if (pipe.pure) {
                  _this287.purePipeNodeIndices[pipe.name] = _this287._createPipe(null, pipe);
                }
              });
            }

            if (!this.parent) {
              this.component.viewQueries.forEach(function (query, queryIndex) {
                // Note: queries start with id 1 so we can use the number in a Bloom filter!
                var queryId = queryIndex + 1;
                var bindingType = query.first ? 0
                /* First */
                : 1
                /* All */
                ;
                var flags = 134217728
                /* TypeViewQuery */
                | calcStaticDynamicQueryFlags(query);

                _this287.nodes.push(function () {
                  return {
                    sourceSpan: null,
                    nodeFlags: flags,
                    nodeDef: importExpr(Identifiers.queryDef).callFn([literal(flags), literal(queryId), new LiteralMapExpr([new LiteralMapEntry(query.propertyName, literal(bindingType), false)])])
                  };
                });
              });
            }

            templateVisitAll(this, astNodes);

            if (this.parent && (astNodes.length === 0 || needsAdditionalRootNode(astNodes))) {
              // if the view is an embedded view, then we need to add an additional root node in some cases
              this.nodes.push(function () {
                return {
                  sourceSpan: null,
                  nodeFlags: 1
                  /* TypeElement */
                  ,
                  nodeDef: importExpr(Identifiers.anchorDef).callFn([literal(0
                  /* None */
                  ), NULL_EXPR, NULL_EXPR, literal(0)])
                };
              });
            }
          }
        }, {
          key: "build",
          value: function build() {
            var targetStatements = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
            this.children.forEach(function (child) {
              return child.build(targetStatements);
            });

            var _this$_createNodeExpr = this._createNodeExpressions(),
                updateRendererStmts = _this$_createNodeExpr.updateRendererStmts,
                updateDirectivesStmts = _this$_createNodeExpr.updateDirectivesStmts,
                nodeDefExprs = _this$_createNodeExpr.nodeDefExprs;

            var updateRendererFn = this._createUpdateFn(updateRendererStmts);

            var updateDirectivesFn = this._createUpdateFn(updateDirectivesStmts);

            var viewFlags = 0
            /* None */
            ;

            if (!this.parent && this.component.changeDetection === ChangeDetectionStrategy.OnPush) {
              viewFlags |= 2
              /* OnPush */
              ;
            }

            var viewFactory = new DeclareFunctionStmt(this.viewName, [new FnParam(LOG_VAR$1.name)], [new ReturnStatement(importExpr(Identifiers.viewDef).callFn([literal(viewFlags), literalArr(nodeDefExprs), updateDirectivesFn, updateRendererFn]))], importType(Identifiers.ViewDefinition), this.embeddedViewIndex === 0 ? [StmtModifier.Exported] : []);
            targetStatements.push(viewFactory);
            return targetStatements;
          }
        }, {
          key: "_createUpdateFn",
          value: function _createUpdateFn(updateStmts) {
            var updateFn;

            if (updateStmts.length > 0) {
              var preStmts = [];

              if (!this.component.isHost && findReadVarNames(updateStmts).has(COMP_VAR.name)) {
                preStmts.push(COMP_VAR.set(VIEW_VAR.prop('component')).toDeclStmt(this.compType));
              }

              updateFn = fn([new FnParam(CHECK_VAR.name, INFERRED_TYPE), new FnParam(VIEW_VAR.name, INFERRED_TYPE)], [].concat(preStmts, _toConsumableArray(updateStmts)), INFERRED_TYPE);
            } else {
              updateFn = NULL_EXPR;
            }

            return updateFn;
          }
        }, {
          key: "visitNgContent",
          value: function visitNgContent(ast, context) {
            // ngContentDef(ngContentIndex: number, index: number): NodeDef;
            this.nodes.push(function () {
              return {
                sourceSpan: ast.sourceSpan,
                nodeFlags: 8
                /* TypeNgContent */
                ,
                nodeDef: importExpr(Identifiers.ngContentDef).callFn([literal(ast.ngContentIndex), literal(ast.index)])
              };
            });
          }
        }, {
          key: "visitText",
          value: function visitText(ast, context) {
            // Static text nodes have no check function
            var checkIndex = -1;
            this.nodes.push(function () {
              return {
                sourceSpan: ast.sourceSpan,
                nodeFlags: 2
                /* TypeText */
                ,
                nodeDef: importExpr(Identifiers.textDef).callFn([literal(checkIndex), literal(ast.ngContentIndex), literalArr([literal(ast.value)])])
              };
            });
          }
        }, {
          key: "visitBoundText",
          value: function visitBoundText(ast, context) {
            var _this288 = this;

            var nodeIndex = this.nodes.length; // reserve the space in the nodeDefs array

            this.nodes.push(null);
            var astWithSource = ast.value;
            var inter = astWithSource.ast;
            var updateRendererExpressions = inter.expressions.map(function (expr, bindingIndex) {
              return _this288._preprocessUpdateExpression({
                nodeIndex: nodeIndex,
                bindingIndex: bindingIndex,
                sourceSpan: ast.sourceSpan,
                context: COMP_VAR,
                value: expr
              });
            }); // Check index is the same as the node index during compilation
            // They might only differ at runtime

            var checkIndex = nodeIndex;

            this.nodes[nodeIndex] = function () {
              return {
                sourceSpan: ast.sourceSpan,
                nodeFlags: 2
                /* TypeText */
                ,
                nodeDef: importExpr(Identifiers.textDef).callFn([literal(checkIndex), literal(ast.ngContentIndex), literalArr(inter.strings.map(function (s) {
                  return literal(s);
                }))]),
                updateRenderer: updateRendererExpressions
              };
            };
          }
        }, {
          key: "visitEmbeddedTemplate",
          value: function visitEmbeddedTemplate(ast, context) {
            var _this289 = this;

            var nodeIndex = this.nodes.length; // reserve the space in the nodeDefs array

            this.nodes.push(null);

            var _this$_visitElementOr = this._visitElementOrTemplate(nodeIndex, ast),
                flags = _this$_visitElementOr.flags,
                queryMatchesExpr = _this$_visitElementOr.queryMatchesExpr,
                hostEvents = _this$_visitElementOr.hostEvents;

            var childVisitor = this.viewBuilderFactory(this);
            this.children.push(childVisitor);
            childVisitor.visitAll(ast.variables, ast.children);
            var childCount = this.nodes.length - nodeIndex - 1; // anchorDef(
            //   flags: NodeFlags, matchedQueries: [string, QueryValueType][], ngContentIndex: number,
            //   childCount: number, handleEventFn?: ElementHandleEventFn, templateFactory?:
            //   ViewDefinitionFactory): NodeDef;

            this.nodes[nodeIndex] = function () {
              return {
                sourceSpan: ast.sourceSpan,
                nodeFlags: 1
                /* TypeElement */
                | flags,
                nodeDef: importExpr(Identifiers.anchorDef).callFn([literal(flags), queryMatchesExpr, literal(ast.ngContentIndex), literal(childCount), _this289._createElementHandleEventFn(nodeIndex, hostEvents), variable(childVisitor.viewName)])
              };
            };
          }
        }, {
          key: "visitElement",
          value: function visitElement(ast, context) {
            var _this290 = this;

            var nodeIndex = this.nodes.length; // reserve the space in the nodeDefs array so we can add children

            this.nodes.push(null); // Using a null element name creates an anchor.

            var elName = isNgContainer(ast.name) ? null : ast.name;

            var _this$_visitElementOr2 = this._visitElementOrTemplate(nodeIndex, ast),
                flags = _this$_visitElementOr2.flags,
                usedEvents = _this$_visitElementOr2.usedEvents,
                queryMatchesExpr = _this$_visitElementOr2.queryMatchesExpr,
                dirHostBindings = _this$_visitElementOr2.hostBindings,
                hostEvents = _this$_visitElementOr2.hostEvents;

            var inputDefs = [];
            var updateRendererExpressions = [];
            var outputDefs = [];

            if (elName) {
              var hostBindings = ast.inputs.map(function (inputAst) {
                return {
                  context: COMP_VAR,
                  inputAst: inputAst,
                  dirAst: null
                };
              }).concat(dirHostBindings);

              if (hostBindings.length) {
                updateRendererExpressions = hostBindings.map(function (hostBinding, bindingIndex) {
                  return _this290._preprocessUpdateExpression({
                    context: hostBinding.context,
                    nodeIndex: nodeIndex,
                    bindingIndex: bindingIndex,
                    sourceSpan: hostBinding.inputAst.sourceSpan,
                    value: hostBinding.inputAst.value
                  });
                });
                inputDefs = hostBindings.map(function (hostBinding) {
                  return elementBindingDef(hostBinding.inputAst, hostBinding.dirAst);
                });
              }

              outputDefs = usedEvents.map(function (_ref38) {
                var _ref39 = _slicedToArray(_ref38, 2),
                    target = _ref39[0],
                    eventName = _ref39[1];

                return literalArr([literal(target), literal(eventName)]);
              });
            }

            templateVisitAll(this, ast.children);
            var childCount = this.nodes.length - nodeIndex - 1;
            var compAst = ast.directives.find(function (dirAst) {
              return dirAst.directive.isComponent;
            });
            var compRendererType = NULL_EXPR;
            var compView = NULL_EXPR;

            if (compAst) {
              compView = this.outputCtx.importExpr(compAst.directive.componentViewType);
              compRendererType = this.outputCtx.importExpr(compAst.directive.rendererType);
            } // Check index is the same as the node index during compilation
            // They might only differ at runtime


            var checkIndex = nodeIndex;

            this.nodes[nodeIndex] = function () {
              return {
                sourceSpan: ast.sourceSpan,
                nodeFlags: 1
                /* TypeElement */
                | flags,
                nodeDef: importExpr(Identifiers.elementDef).callFn([literal(checkIndex), literal(flags), queryMatchesExpr, literal(ast.ngContentIndex), literal(childCount), literal(elName), elName ? fixedAttrsDef(ast) : NULL_EXPR, inputDefs.length ? literalArr(inputDefs) : NULL_EXPR, outputDefs.length ? literalArr(outputDefs) : NULL_EXPR, _this290._createElementHandleEventFn(nodeIndex, hostEvents), compView, compRendererType]),
                updateRenderer: updateRendererExpressions
              };
            };
          }
        }, {
          key: "_visitElementOrTemplate",
          value: function _visitElementOrTemplate(nodeIndex, ast) {
            var _this291 = this;

            var flags = 0
            /* None */
            ;

            if (ast.hasViewContainer) {
              flags |= 16777216
              /* EmbeddedViews */
              ;
            }

            var usedEvents = new Map();
            ast.outputs.forEach(function (event) {
              var _elementEventNameAndT = elementEventNameAndTarget(event, null),
                  name = _elementEventNameAndT.name,
                  target = _elementEventNameAndT.target;

              usedEvents.set(elementEventFullName(target, name), [target, name]);
            });
            ast.directives.forEach(function (dirAst) {
              dirAst.hostEvents.forEach(function (event) {
                var _elementEventNameAndT2 = elementEventNameAndTarget(event, dirAst),
                    name = _elementEventNameAndT2.name,
                    target = _elementEventNameAndT2.target;

                usedEvents.set(elementEventFullName(target, name), [target, name]);
              });
            });
            var hostBindings = [];
            var hostEvents = [];

            this._visitComponentFactoryResolverProvider(ast.directives);

            ast.providers.forEach(function (providerAst) {
              var dirAst = undefined;
              ast.directives.forEach(function (localDirAst) {
                if (localDirAst.directive.type.reference === tokenReference(providerAst.token)) {
                  dirAst = localDirAst;
                }
              });

              if (dirAst) {
                var _this291$_visitDirect = _this291._visitDirective(providerAst, dirAst, ast.references, ast.queryMatches, usedEvents),
                    dirHostBindings = _this291$_visitDirect.hostBindings,
                    dirHostEvents = _this291$_visitDirect.hostEvents;

                hostBindings.push.apply(hostBindings, _toConsumableArray(dirHostBindings));
                hostEvents.push.apply(hostEvents, _toConsumableArray(dirHostEvents));
              } else {
                _this291._visitProvider(providerAst, ast.queryMatches);
              }
            });
            var queryMatchExprs = [];
            ast.queryMatches.forEach(function (match) {
              var valueType = undefined;

              if (tokenReference(match.value) === _this291.reflector.resolveExternalReference(Identifiers.ElementRef)) {
                valueType = 0
                /* ElementRef */
                ;
              } else if (tokenReference(match.value) === _this291.reflector.resolveExternalReference(Identifiers.ViewContainerRef)) {
                valueType = 3
                /* ViewContainerRef */
                ;
              } else if (tokenReference(match.value) === _this291.reflector.resolveExternalReference(Identifiers.TemplateRef)) {
                valueType = 2
                /* TemplateRef */
                ;
              }

              if (valueType != null) {
                queryMatchExprs.push(literalArr([literal(match.queryId), literal(valueType)]));
              }
            });
            ast.references.forEach(function (ref) {
              var valueType = undefined;

              if (!ref.value) {
                valueType = 1
                /* RenderElement */
                ;
              } else if (tokenReference(ref.value) === _this291.reflector.resolveExternalReference(Identifiers.TemplateRef)) {
                valueType = 2
                /* TemplateRef */
                ;
              }

              if (valueType != null) {
                _this291.refNodeIndices[ref.name] = nodeIndex;
                queryMatchExprs.push(literalArr([literal(ref.name), literal(valueType)]));
              }
            });
            ast.outputs.forEach(function (outputAst) {
              hostEvents.push({
                context: COMP_VAR,
                eventAst: outputAst,
                dirAst: null
              });
            });
            return {
              flags: flags,
              usedEvents: Array.from(usedEvents.values()),
              queryMatchesExpr: queryMatchExprs.length ? literalArr(queryMatchExprs) : NULL_EXPR,
              hostBindings: hostBindings,
              hostEvents: hostEvents
            };
          }
        }, {
          key: "_visitDirective",
          value: function _visitDirective(providerAst, dirAst, refs, queryMatches, usedEvents) {
            var _this292 = this;

            var nodeIndex = this.nodes.length; // reserve the space in the nodeDefs array so we can add children

            this.nodes.push(null);
            dirAst.directive.queries.forEach(function (query, queryIndex) {
              var queryId = dirAst.contentQueryStartId + queryIndex;
              var flags = 67108864
              /* TypeContentQuery */
              | calcStaticDynamicQueryFlags(query);
              var bindingType = query.first ? 0
              /* First */
              : 1
              /* All */
              ;

              _this292.nodes.push(function () {
                return {
                  sourceSpan: dirAst.sourceSpan,
                  nodeFlags: flags,
                  nodeDef: importExpr(Identifiers.queryDef).callFn([literal(flags), literal(queryId), new LiteralMapExpr([new LiteralMapEntry(query.propertyName, literal(bindingType), false)])])
                };
              });
            }); // Note: the operation below might also create new nodeDefs,
            // but we don't want them to be a child of a directive,
            // as they might be a provider/pipe on their own.
            // I.e. we only allow queries as children of directives nodes.

            var childCount = this.nodes.length - nodeIndex - 1;

            var _this$_visitProviderO = this._visitProviderOrDirective(providerAst, queryMatches),
                flags = _this$_visitProviderO.flags,
                queryMatchExprs = _this$_visitProviderO.queryMatchExprs,
                providerExpr = _this$_visitProviderO.providerExpr,
                depsExpr = _this$_visitProviderO.depsExpr;

            refs.forEach(function (ref) {
              if (ref.value && tokenReference(ref.value) === tokenReference(providerAst.token)) {
                _this292.refNodeIndices[ref.name] = nodeIndex;
                queryMatchExprs.push(literalArr([literal(ref.name), literal(4
                /* Provider */
                )]));
              }
            });

            if (dirAst.directive.isComponent) {
              flags |= 32768
              /* Component */
              ;
            }

            var inputDefs = dirAst.inputs.map(function (inputAst, inputIndex) {
              var mapValue = literalArr([literal(inputIndex), literal(inputAst.directiveName)]); // Note: it's important to not quote the key so that we can capture renames by minifiers!

              return new LiteralMapEntry(inputAst.directiveName, mapValue, false);
            });
            var outputDefs = [];
            var dirMeta = dirAst.directive;
            Object.keys(dirMeta.outputs).forEach(function (propName) {
              var eventName = dirMeta.outputs[propName];

              if (usedEvents.has(eventName)) {
                // Note: it's important to not quote the key so that we can capture renames by minifiers!
                outputDefs.push(new LiteralMapEntry(propName, literal(eventName), false));
              }
            });
            var updateDirectiveExpressions = [];

            if (dirAst.inputs.length || (flags & (262144
            /* DoCheck */
            | 65536
            /* OnInit */
            )) > 0) {
              updateDirectiveExpressions = dirAst.inputs.map(function (input, bindingIndex) {
                return _this292._preprocessUpdateExpression({
                  nodeIndex: nodeIndex,
                  bindingIndex: bindingIndex,
                  sourceSpan: input.sourceSpan,
                  context: COMP_VAR,
                  value: input.value
                });
              });
            }

            var dirContextExpr = importExpr(Identifiers.nodeValue).callFn([VIEW_VAR, literal(nodeIndex)]);
            var hostBindings = dirAst.hostProperties.map(function (inputAst) {
              return {
                context: dirContextExpr,
                dirAst: dirAst,
                inputAst: inputAst
              };
            });
            var hostEvents = dirAst.hostEvents.map(function (hostEventAst) {
              return {
                context: dirContextExpr,
                eventAst: hostEventAst,
                dirAst: dirAst
              };
            }); // Check index is the same as the node index during compilation
            // They might only differ at runtime

            var checkIndex = nodeIndex;

            this.nodes[nodeIndex] = function () {
              return {
                sourceSpan: dirAst.sourceSpan,
                nodeFlags: 16384
                /* TypeDirective */
                | flags,
                nodeDef: importExpr(Identifiers.directiveDef).callFn([literal(checkIndex), literal(flags), queryMatchExprs.length ? literalArr(queryMatchExprs) : NULL_EXPR, literal(childCount), providerExpr, depsExpr, inputDefs.length ? new LiteralMapExpr(inputDefs) : NULL_EXPR, outputDefs.length ? new LiteralMapExpr(outputDefs) : NULL_EXPR]),
                updateDirectives: updateDirectiveExpressions,
                directive: dirAst.directive.type
              };
            };

            return {
              hostBindings: hostBindings,
              hostEvents: hostEvents
            };
          }
        }, {
          key: "_visitProvider",
          value: function _visitProvider(providerAst, queryMatches) {
            this._addProviderNode(this._visitProviderOrDirective(providerAst, queryMatches));
          }
        }, {
          key: "_visitComponentFactoryResolverProvider",
          value: function _visitComponentFactoryResolverProvider(directives) {
            var componentDirMeta = directives.find(function (dirAst) {
              return dirAst.directive.isComponent;
            });

            if (componentDirMeta && componentDirMeta.directive.entryComponents.length) {
              var _componentFactoryReso = componentFactoryResolverProviderDef(this.reflector, this.outputCtx, 8192
              /* PrivateProvider */
              , componentDirMeta.directive.entryComponents),
                  providerExpr = _componentFactoryReso.providerExpr,
                  depsExpr = _componentFactoryReso.depsExpr,
                  flags = _componentFactoryReso.flags,
                  _tokenExpr = _componentFactoryReso.tokenExpr;

              this._addProviderNode({
                providerExpr: providerExpr,
                depsExpr: depsExpr,
                flags: flags,
                tokenExpr: _tokenExpr,
                queryMatchExprs: [],
                sourceSpan: componentDirMeta.sourceSpan
              });
            }
          }
        }, {
          key: "_addProviderNode",
          value: function _addProviderNode(data) {
            // providerDef(
            //   flags: NodeFlags, matchedQueries: [string, QueryValueType][], token:any,
            //   value: any, deps: ([DepFlags, any] | any)[]): NodeDef;
            this.nodes.push(function () {
              return {
                sourceSpan: data.sourceSpan,
                nodeFlags: data.flags,
                nodeDef: importExpr(Identifiers.providerDef).callFn([literal(data.flags), data.queryMatchExprs.length ? literalArr(data.queryMatchExprs) : NULL_EXPR, data.tokenExpr, data.providerExpr, data.depsExpr])
              };
            });
          }
        }, {
          key: "_visitProviderOrDirective",
          value: function _visitProviderOrDirective(providerAst, queryMatches) {
            var flags = 0
            /* None */
            ;
            var queryMatchExprs = [];
            queryMatches.forEach(function (match) {
              if (tokenReference(match.value) === tokenReference(providerAst.token)) {
                queryMatchExprs.push(literalArr([literal(match.queryId), literal(4
                /* Provider */
                )]));
              }
            });

            var _providerDef = providerDef(this.outputCtx, providerAst),
                providerExpr = _providerDef.providerExpr,
                depsExpr = _providerDef.depsExpr,
                providerFlags = _providerDef.flags,
                tokenExpr = _providerDef.tokenExpr;

            return {
              flags: flags | providerFlags,
              queryMatchExprs: queryMatchExprs,
              providerExpr: providerExpr,
              depsExpr: depsExpr,
              tokenExpr: tokenExpr,
              sourceSpan: providerAst.sourceSpan
            };
          }
        }, {
          key: "getLocal",
          value: function getLocal(name) {
            if (name == EventHandlerVars.event.name) {
              return EventHandlerVars.event;
            }

            var currViewExpr = VIEW_VAR;

            for (var currBuilder = this; currBuilder; currBuilder = currBuilder.parent, currViewExpr = currViewExpr.prop('parent').cast(DYNAMIC_TYPE)) {
              // check references
              var refNodeIndex = currBuilder.refNodeIndices[name];

              if (refNodeIndex != null) {
                return importExpr(Identifiers.nodeValue).callFn([currViewExpr, literal(refNodeIndex)]);
              } // check variables


              var varAst = currBuilder.variables.find(function (varAst) {
                return varAst.name === name;
              });

              if (varAst) {
                var varValue = varAst.value || IMPLICIT_TEMPLATE_VAR;
                return currViewExpr.prop('context').prop(varValue);
              }
            }

            return null;
          }
        }, {
          key: "notifyImplicitReceiverUse",
          value: function notifyImplicitReceiverUse() {// Not needed in View Engine as View Engine walks through the generated
            // expressions to figure out if the implicit receiver is used and needs
            // to be generated as part of the pre-update statements.
          }
        }, {
          key: "_createLiteralArrayConverter",
          value: function _createLiteralArrayConverter(sourceSpan, argCount) {
            if (argCount === 0) {
              var valueExpr = importExpr(Identifiers.EMPTY_ARRAY);
              return function () {
                return valueExpr;
              };
            }

            var checkIndex = this.nodes.length;
            this.nodes.push(function () {
              return {
                sourceSpan: sourceSpan,
                nodeFlags: 32
                /* TypePureArray */
                ,
                nodeDef: importExpr(Identifiers.pureArrayDef).callFn([literal(checkIndex), literal(argCount)])
              };
            });
            return function (args) {
              return callCheckStmt(checkIndex, args);
            };
          }
        }, {
          key: "_createLiteralMapConverter",
          value: function _createLiteralMapConverter(sourceSpan, keys) {
            if (keys.length === 0) {
              var valueExpr = importExpr(Identifiers.EMPTY_MAP);
              return function () {
                return valueExpr;
              };
            }

            var map = literalMap(keys.map(function (e, i) {
              return Object.assign(Object.assign({}, e), {
                value: literal(i)
              });
            }));
            var checkIndex = this.nodes.length;
            this.nodes.push(function () {
              return {
                sourceSpan: sourceSpan,
                nodeFlags: 64
                /* TypePureObject */
                ,
                nodeDef: importExpr(Identifiers.pureObjectDef).callFn([literal(checkIndex), map])
              };
            });
            return function (args) {
              return callCheckStmt(checkIndex, args);
            };
          }
        }, {
          key: "_createPipeConverter",
          value: function _createPipeConverter(expression, name, argCount) {
            var pipe = this.usedPipes.find(function (pipeSummary) {
              return pipeSummary.name === name;
            });

            if (pipe.pure) {
              var checkIndex = this.nodes.length;
              this.nodes.push(function () {
                return {
                  sourceSpan: expression.sourceSpan,
                  nodeFlags: 128
                  /* TypePurePipe */
                  ,
                  nodeDef: importExpr(Identifiers.purePipeDef).callFn([literal(checkIndex), literal(argCount)])
                };
              }); // find underlying pipe in the component view

              var compViewExpr = VIEW_VAR;
              var compBuilder = this;

              while (compBuilder.parent) {
                compBuilder = compBuilder.parent;
                compViewExpr = compViewExpr.prop('parent').cast(DYNAMIC_TYPE);
              }

              var pipeNodeIndex = compBuilder.purePipeNodeIndices[name];
              var pipeValueExpr = importExpr(Identifiers.nodeValue).callFn([compViewExpr, literal(pipeNodeIndex)]);
              return function (args) {
                return callUnwrapValue(expression.nodeIndex, expression.bindingIndex, callCheckStmt(checkIndex, [pipeValueExpr].concat(args)));
              };
            } else {
              var nodeIndex = this._createPipe(expression.sourceSpan, pipe);

              var nodeValueExpr = importExpr(Identifiers.nodeValue).callFn([VIEW_VAR, literal(nodeIndex)]);
              return function (args) {
                return callUnwrapValue(expression.nodeIndex, expression.bindingIndex, nodeValueExpr.callMethod('transform', args));
              };
            }
          }
        }, {
          key: "_createPipe",
          value: function _createPipe(sourceSpan, pipe) {
            var _this293 = this;

            var nodeIndex = this.nodes.length;
            var flags = 0
            /* None */
            ;
            pipe.type.lifecycleHooks.forEach(function (lifecycleHook) {
              // for pipes, we only support ngOnDestroy
              if (lifecycleHook === LifecycleHooks.OnDestroy) {
                flags |= lifecycleHookToNodeFlag(lifecycleHook);
              }
            });
            var depExprs = pipe.type.diDeps.map(function (diDep) {
              return depDef(_this293.outputCtx, diDep);
            }); // function pipeDef(
            //   flags: NodeFlags, ctor: any, deps: ([DepFlags, any] | any)[]): NodeDef

            this.nodes.push(function () {
              return {
                sourceSpan: sourceSpan,
                nodeFlags: 16
                /* TypePipe */
                ,
                nodeDef: importExpr(Identifiers.pipeDef).callFn([literal(flags), _this293.outputCtx.importExpr(pipe.type.reference), literalArr(depExprs)])
              };
            });
            return nodeIndex;
          }
          /**
           * For the AST in `UpdateExpression.value`:
           * - create nodes for pipes, literal arrays and, literal maps,
           * - update the AST to replace pipes, literal arrays and, literal maps with calls to check fn.
           *
           * WARNING: This might create new nodeDefs (for pipes and literal arrays and literal maps)!
           */

        }, {
          key: "_preprocessUpdateExpression",
          value: function _preprocessUpdateExpression(expression) {
            var _this294 = this;

            return {
              nodeIndex: expression.nodeIndex,
              bindingIndex: expression.bindingIndex,
              sourceSpan: expression.sourceSpan,
              context: expression.context,
              value: convertPropertyBindingBuiltins({
                createLiteralArrayConverter: function createLiteralArrayConverter(argCount) {
                  return _this294._createLiteralArrayConverter(expression.sourceSpan, argCount);
                },
                createLiteralMapConverter: function createLiteralMapConverter(keys) {
                  return _this294._createLiteralMapConverter(expression.sourceSpan, keys);
                },
                createPipeConverter: function createPipeConverter(name, argCount) {
                  return _this294._createPipeConverter(expression, name, argCount);
                }
              }, expression.value)
            };
          }
        }, {
          key: "_createNodeExpressions",
          value: function _createNodeExpressions() {
            var self = this;
            var updateBindingCount = 0;
            var updateRendererStmts = [];
            var updateDirectivesStmts = [];
            var nodeDefExprs = this.nodes.map(function (factory, nodeIndex) {
              var _factory = factory(),
                  nodeDef = _factory.nodeDef,
                  nodeFlags = _factory.nodeFlags,
                  updateDirectives = _factory.updateDirectives,
                  updateRenderer = _factory.updateRenderer,
                  sourceSpan = _factory.sourceSpan;

              if (updateRenderer) {
                updateRendererStmts.push.apply(updateRendererStmts, _toConsumableArray(createUpdateStatements(nodeIndex, sourceSpan, updateRenderer, false)));
              }

              if (updateDirectives) {
                updateDirectivesStmts.push.apply(updateDirectivesStmts, _toConsumableArray(createUpdateStatements(nodeIndex, sourceSpan, updateDirectives, (nodeFlags & (262144
                /* DoCheck */
                | 65536
                /* OnInit */
                )) > 0)));
              } // We use a comma expression to call the log function before
              // the nodeDef function, but still use the result of the nodeDef function
              // as the value.
              // Note: We only add the logger to elements / text nodes,
              // so we don't generate too much code.


              var logWithNodeDef = nodeFlags & 3
              /* CatRenderNode */
              ? new CommaExpr([LOG_VAR$1.callFn([]).callFn([]), nodeDef]) : nodeDef;
              return applySourceSpanToExpressionIfNeeded(logWithNodeDef, sourceSpan);
            });
            return {
              updateRendererStmts: updateRendererStmts,
              updateDirectivesStmts: updateDirectivesStmts,
              nodeDefExprs: nodeDefExprs
            };

            function createUpdateStatements(nodeIndex, sourceSpan, expressions, allowEmptyExprs) {
              var updateStmts = [];
              var exprs = expressions.map(function (_ref40) {
                var sourceSpan = _ref40.sourceSpan,
                    context = _ref40.context,
                    value = _ref40.value;
                var bindingId = "".concat(updateBindingCount++);
                var nameResolver = context === COMP_VAR ? self : null;

                var _convertPropertyBindi3 = _convertPropertyBinding(nameResolver, context, value, bindingId, BindingForm.General),
                    stmts = _convertPropertyBindi3.stmts,
                    currValExpr = _convertPropertyBindi3.currValExpr;

                updateStmts.push.apply(updateStmts, _toConsumableArray(stmts.map(function (stmt) {
                  return applySourceSpanToStatementIfNeeded(stmt, sourceSpan);
                })));
                return applySourceSpanToExpressionIfNeeded(currValExpr, sourceSpan);
              });

              if (expressions.length || allowEmptyExprs) {
                updateStmts.push(applySourceSpanToStatementIfNeeded(callCheckStmt(nodeIndex, exprs).toStmt(), sourceSpan));
              }

              return updateStmts;
            }
          }
        }, {
          key: "_createElementHandleEventFn",
          value: function _createElementHandleEventFn(nodeIndex, handlers) {
            var _this295 = this;

            var handleEventStmts = [];
            var handleEventBindingCount = 0;
            handlers.forEach(function (_ref41) {
              var context = _ref41.context,
                  eventAst = _ref41.eventAst,
                  dirAst = _ref41.dirAst;
              var bindingId = "".concat(handleEventBindingCount++);
              var nameResolver = context === COMP_VAR ? _this295 : null;

              var _convertActionBinding2 = convertActionBinding(nameResolver, context, eventAst.handler, bindingId),
                  stmts = _convertActionBinding2.stmts,
                  allowDefault = _convertActionBinding2.allowDefault;

              var trueStmts = stmts;

              if (allowDefault) {
                trueStmts.push(ALLOW_DEFAULT_VAR.set(allowDefault.and(ALLOW_DEFAULT_VAR)).toStmt());
              }

              var _elementEventNameAndT3 = elementEventNameAndTarget(eventAst, dirAst),
                  eventTarget = _elementEventNameAndT3.target,
                  eventName = _elementEventNameAndT3.name;

              var fullEventName = elementEventFullName(eventTarget, eventName);
              handleEventStmts.push(applySourceSpanToStatementIfNeeded(new IfStmt(literal(fullEventName).identical(EVENT_NAME_VAR), trueStmts), eventAst.sourceSpan));
            });
            var handleEventFn;

            if (handleEventStmts.length > 0) {
              var preStmts = [ALLOW_DEFAULT_VAR.set(literal(true)).toDeclStmt(BOOL_TYPE)];

              if (!this.component.isHost && findReadVarNames(handleEventStmts).has(COMP_VAR.name)) {
                preStmts.push(COMP_VAR.set(VIEW_VAR.prop('component')).toDeclStmt(this.compType));
              }

              handleEventFn = fn([new FnParam(VIEW_VAR.name, INFERRED_TYPE), new FnParam(EVENT_NAME_VAR.name, INFERRED_TYPE), new FnParam(EventHandlerVars.event.name, INFERRED_TYPE)], [].concat(preStmts, handleEventStmts, [new ReturnStatement(ALLOW_DEFAULT_VAR)]), INFERRED_TYPE);
            } else {
              handleEventFn = NULL_EXPR;
            }

            return handleEventFn;
          }
        }, {
          key: "visitDirective",
          value: function visitDirective(ast, context) {}
        }, {
          key: "visitDirectiveProperty",
          value: function visitDirectiveProperty(ast, context) {}
        }, {
          key: "visitReference",
          value: function visitReference(ast, context) {}
        }, {
          key: "visitVariable",
          value: function visitVariable(ast, context) {}
        }, {
          key: "visitEvent",
          value: function visitEvent(ast, context) {}
        }, {
          key: "visitElementProperty",
          value: function visitElementProperty(ast, context) {}
        }, {
          key: "visitAttr",
          value: function visitAttr(ast, context) {}
        }]);

        return ViewBuilder$1;
      }();

      function needsAdditionalRootNode(astNodes) {
        var lastAstNode = astNodes[astNodes.length - 1];

        if (lastAstNode instanceof EmbeddedTemplateAst) {
          return lastAstNode.hasViewContainer;
        }

        if (lastAstNode instanceof ElementAst) {
          if (isNgContainer(lastAstNode.name) && lastAstNode.children.length) {
            return needsAdditionalRootNode(lastAstNode.children);
          }

          return lastAstNode.hasViewContainer;
        }

        return lastAstNode instanceof NgContentAst;
      }

      function elementBindingDef(inputAst, dirAst) {
        var inputType = inputAst.type;

        switch (inputType) {
          case 1
          /* Attribute */
          :
            return literalArr([literal(1
            /* TypeElementAttribute */
            ), literal(inputAst.name), literal(inputAst.securityContext)]);

          case 0
          /* Property */
          :
            return literalArr([literal(8
            /* TypeProperty */
            ), literal(inputAst.name), literal(inputAst.securityContext)]);

          case 4
          /* Animation */
          :
            var bindingType = 8
            /* TypeProperty */
            | (dirAst && dirAst.directive.isComponent ? 32
            /* SyntheticHostProperty */
            : 16
            /* SyntheticProperty */
            );
            return literalArr([literal(bindingType), literal('@' + inputAst.name), literal(inputAst.securityContext)]);

          case 2
          /* Class */
          :
            return literalArr([literal(2
            /* TypeElementClass */
            ), literal(inputAst.name), NULL_EXPR]);

          case 3
          /* Style */
          :
            return literalArr([literal(4
            /* TypeElementStyle */
            ), literal(inputAst.name), literal(inputAst.unit)]);

          default:
            // This default case is not needed by TypeScript compiler, as the switch is exhaustive.
            // However Closure Compiler does not understand that and reports an error in typed mode.
            // The `throw new Error` below works around the problem, and the unexpected: never variable
            // makes sure tsc still checks this code is unreachable.
            var unexpected = inputType;
            throw new Error("unexpected ".concat(unexpected));
        }
      }

      function fixedAttrsDef(elementAst) {
        var mapResult = Object.create(null);
        elementAst.attrs.forEach(function (attrAst) {
          mapResult[attrAst.name] = attrAst.value;
        });
        elementAst.directives.forEach(function (dirAst) {
          Object.keys(dirAst.directive.hostAttributes).forEach(function (name) {
            var value = dirAst.directive.hostAttributes[name];
            var prevValue = mapResult[name];
            mapResult[name] = prevValue != null ? mergeAttributeValue(name, prevValue, value) : value;
          });
        }); // Note: We need to sort to get a defined output order
        // for tests and for caching generated artifacts...

        return literalArr(Object.keys(mapResult).sort().map(function (attrName) {
          return literalArr([literal(attrName), literal(mapResult[attrName])]);
        }));
      }

      function mergeAttributeValue(attrName, attrValue1, attrValue2) {
        if (attrName == CLASS_ATTR$1 || attrName == STYLE_ATTR) {
          return "".concat(attrValue1, " ").concat(attrValue2);
        } else {
          return attrValue2;
        }
      }

      function callCheckStmt(nodeIndex, exprs) {
        if (exprs.length > 10) {
          return CHECK_VAR.callFn([VIEW_VAR, literal(nodeIndex), literal(1
          /* Dynamic */
          ), literalArr(exprs)]);
        } else {
          return CHECK_VAR.callFn([VIEW_VAR, literal(nodeIndex), literal(0
          /* Inline */
          )].concat(_toConsumableArray(exprs)));
        }
      }

      function callUnwrapValue(nodeIndex, bindingIdx, expr) {
        return importExpr(Identifiers.unwrapValue).callFn([VIEW_VAR, literal(nodeIndex), literal(bindingIdx), expr]);
      }

      function elementEventNameAndTarget(eventAst, dirAst) {
        if (eventAst.isAnimation) {
          return {
            name: "@".concat(eventAst.name, ".").concat(eventAst.phase),
            target: dirAst && dirAst.directive.isComponent ? 'component' : null
          };
        } else {
          return eventAst;
        }
      }

      function calcStaticDynamicQueryFlags(query) {
        var flags = 0
        /* None */
        ; // Note: We only make queries static that query for a single item and the user specifically
        // set the to be static. This is because of backwards compatibility with the old view compiler...

        if (query.first && query["static"]) {
          flags |= 268435456
          /* StaticQuery */
          ;
        } else {
          flags |= 536870912
          /* DynamicQuery */
          ;
        }

        return flags;
      }

      function elementEventFullName(target, name) {
        return target ? "".concat(target, ":").concat(name) : name;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * A container for message extracted from the templates.
       */


      var MessageBundle = /*#__PURE__*/function () {
        function MessageBundle(_htmlParser, _implicitTags, _implicitAttrs) {
          var _locale = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;

          _classCallCheck2(this, MessageBundle);

          this._htmlParser = _htmlParser;
          this._implicitTags = _implicitTags;
          this._implicitAttrs = _implicitAttrs;
          this._locale = _locale;
          this._messages = [];
        }

        _createClass2(MessageBundle, [{
          key: "updateFromTemplate",
          value: function updateFromTemplate(html, url, interpolationConfig) {
            var _this$_messages;

            var htmlParserResult = this._htmlParser.parse(html, url, {
              tokenizeExpansionForms: true,
              interpolationConfig: interpolationConfig
            });

            if (htmlParserResult.errors.length) {
              return htmlParserResult.errors;
            }

            var i18nParserResult = extractMessages(htmlParserResult.rootNodes, interpolationConfig, this._implicitTags, this._implicitAttrs);

            if (i18nParserResult.errors.length) {
              return i18nParserResult.errors;
            }

            (_this$_messages = this._messages).push.apply(_this$_messages, _toConsumableArray(i18nParserResult.messages));

            return [];
          } // Return the message in the internal format
          // The public (serialized) format might be different, see the `write` method.

        }, {
          key: "getMessages",
          value: function getMessages() {
            return this._messages;
          }
        }, {
          key: "write",
          value: function write(serializer, filterSources) {
            var messages = {};
            var mapperVisitor = new MapPlaceholderNames(); // Deduplicate messages based on their ID

            this._messages.forEach(function (message) {
              var id = serializer.digest(message);

              if (!messages.hasOwnProperty(id)) {
                messages[id] = message;
              } else {
                var _messages$id$sources;

                (_messages$id$sources = messages[id].sources).push.apply(_messages$id$sources, _toConsumableArray(message.sources));
              }
            }); // Transform placeholder names using the serializer mapping


            var msgList = Object.keys(messages).map(function (id) {
              var mapper = serializer.createNameMapper(messages[id]);
              var src = messages[id];
              var nodes = mapper ? mapperVisitor.convert(src.nodes, mapper) : src.nodes;
              var transformedMessage = new Message(nodes, {}, {}, src.meaning, src.description, id);
              transformedMessage.sources = src.sources;

              if (filterSources) {
                transformedMessage.sources.forEach(function (source) {
                  return source.filePath = filterSources(source.filePath);
                });
              }

              return transformedMessage;
            });
            return serializer.write(msgList, this._locale);
          }
        }]);

        return MessageBundle;
      }(); // Transform an i18n AST by renaming the placeholder nodes with the given mapper


      var MapPlaceholderNames = /*#__PURE__*/function (_CloneVisitor) {
        _inherits2(MapPlaceholderNames, _CloneVisitor);

        var _super115 = _createSuper2(MapPlaceholderNames);

        function MapPlaceholderNames() {
          _classCallCheck2(this, MapPlaceholderNames);

          return _super115.apply(this, arguments);
        }

        _createClass2(MapPlaceholderNames, [{
          key: "convert",
          value: function convert(nodes, mapper) {
            var _this296 = this;

            return mapper ? nodes.map(function (n) {
              return n.visit(_this296, mapper);
            }) : nodes;
          }
        }, {
          key: "visitTagPlaceholder",
          value: function visitTagPlaceholder(ph, mapper) {
            var _this297 = this;

            var startName = mapper.toPublicName(ph.startName);
            var closeName = ph.closeName ? mapper.toPublicName(ph.closeName) : ph.closeName;
            var children = ph.children.map(function (n) {
              return n.visit(_this297, mapper);
            });
            return new TagPlaceholder(ph.tag, ph.attrs, startName, closeName, children, ph.isVoid, ph.sourceSpan, ph.startSourceSpan, ph.endSourceSpan);
          }
        }, {
          key: "visitPlaceholder",
          value: function visitPlaceholder(ph, mapper) {
            return new Placeholder(ph.value, mapper.toPublicName(ph.name), ph.sourceSpan);
          }
        }, {
          key: "visitIcuPlaceholder",
          value: function visitIcuPlaceholder(ph, mapper) {
            return new IcuPlaceholder(ph.value, mapper.toPublicName(ph.name), ph.sourceSpan);
          }
        }]);

        return MapPlaceholderNames;
      }(CloneVisitor);
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var GeneratedFile = /*#__PURE__*/function () {
        function GeneratedFile(srcFileUrl, genFileUrl, sourceOrStmts) {
          _classCallCheck2(this, GeneratedFile);

          this.srcFileUrl = srcFileUrl;
          this.genFileUrl = genFileUrl;

          if (typeof sourceOrStmts === 'string') {
            this.source = sourceOrStmts;
            this.stmts = null;
          } else {
            this.source = null;
            this.stmts = sourceOrStmts;
          }
        }

        _createClass2(GeneratedFile, [{
          key: "isEquivalent",
          value: function isEquivalent(other) {
            if (this.genFileUrl !== other.genFileUrl) {
              return false;
            }

            if (this.source) {
              return this.source === other.source;
            }

            if (other.stmts == null) {
              return false;
            } // Note: the constructor guarantees that if this.source is not filled,
            // then this.stmts is.


            return areAllEquivalent(this.stmts, other.stmts);
          }
        }]);

        return GeneratedFile;
      }();

      function toTypeScript(file) {
        var preamble = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';

        if (!file.stmts) {
          throw new Error("Illegal state: No stmts present on GeneratedFile ".concat(file.genFileUrl));
        }

        return new TypeScriptEmitter().emitStatements(file.genFileUrl, file.stmts, preamble);
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function _listLazyRoutes(moduleMeta, reflector) {
        var allLazyRoutes = [];

        var _iterator27 = _createForOfIteratorHelper(moduleMeta.transitiveModule.providers),
            _step27;

        try {
          for (_iterator27.s(); !(_step27 = _iterator27.n()).done;) {
            var _step27$value = _step27.value,
                provider = _step27$value.provider,
                _module = _step27$value.module;

            if (tokenReference(provider.token) === reflector.ROUTES) {
              var loadChildren = _collectLoadChildren(provider.useValue);

              var _iterator28 = _createForOfIteratorHelper(loadChildren),
                  _step28;

              try {
                for (_iterator28.s(); !(_step28 = _iterator28.n()).done;) {
                  var route = _step28.value;
                  allLazyRoutes.push(parseLazyRoute(route, reflector, _module.reference));
                }
              } catch (err) {
                _iterator28.e(err);
              } finally {
                _iterator28.f();
              }
            }
          }
        } catch (err) {
          _iterator27.e(err);
        } finally {
          _iterator27.f();
        }

        return allLazyRoutes;
      }

      function _collectLoadChildren(routes) {
        var target = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];

        if (typeof routes === 'string') {
          target.push(routes);
        } else if (Array.isArray(routes)) {
          var _iterator29 = _createForOfIteratorHelper(routes),
              _step29;

          try {
            for (_iterator29.s(); !(_step29 = _iterator29.n()).done;) {
              var route = _step29.value;

              _collectLoadChildren(route, target);
            }
          } catch (err) {
            _iterator29.e(err);
          } finally {
            _iterator29.f();
          }
        } else if (routes.loadChildren) {
          _collectLoadChildren(routes.loadChildren, target);
        } else if (routes.children) {
          _collectLoadChildren(routes.children, target);
        }

        return target;
      }

      function parseLazyRoute(route, reflector, module) {
        var _route$split = route.split('#'),
            _route$split2 = _slicedToArray(_route$split, 2),
            routePath = _route$split2[0],
            routeName = _route$split2[1];

        var referencedModule = reflector.resolveExternalReference({
          moduleName: routePath,
          name: routeName
        }, module ? module.filePath : undefined);
        return {
          route: route,
          module: module || referencedModule,
          referencedModule: referencedModule
        };
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var TS = /^(?!.*\.d\.ts$).*\.ts$/;

      var ResolvedStaticSymbol = function ResolvedStaticSymbol(symbol, metadata) {
        _classCallCheck2(this, ResolvedStaticSymbol);

        this.symbol = symbol;
        this.metadata = metadata;
      };

      var SUPPORTED_SCHEMA_VERSION = 4;
      /**
       * This class is responsible for loading metadata per symbol,
       * and normalizing references between symbols.
       *
       * Internally, it only uses symbols without members,
       * and deduces the values for symbols with members based
       * on these symbols.
       */

      var StaticSymbolResolver = /*#__PURE__*/function () {
        function StaticSymbolResolver(host, staticSymbolCache, summaryResolver, errorRecorder) {
          _classCallCheck2(this, StaticSymbolResolver);

          this.host = host;
          this.staticSymbolCache = staticSymbolCache;
          this.summaryResolver = summaryResolver;
          this.errorRecorder = errorRecorder;
          this.metadataCache = new Map(); // Note: this will only contain StaticSymbols without members!

          this.resolvedSymbols = new Map(); // Note: this will only contain StaticSymbols without members!

          this.importAs = new Map();
          this.symbolResourcePaths = new Map();
          this.symbolFromFile = new Map();
          this.knownFileNameToModuleNames = new Map();
        }

        _createClass2(StaticSymbolResolver, [{
          key: "resolveSymbol",
          value: function resolveSymbol(staticSymbol) {
            if (staticSymbol.members.length > 0) {
              return this._resolveSymbolMembers(staticSymbol);
            } // Note: always ask for a summary first,
            // as we might have read shallow metadata via a .d.ts file
            // for the symbol.


            var resultFromSummary = this._resolveSymbolFromSummary(staticSymbol);

            if (resultFromSummary) {
              return resultFromSummary;
            }

            var resultFromCache = this.resolvedSymbols.get(staticSymbol);

            if (resultFromCache) {
              return resultFromCache;
            } // Note: Some users use libraries that were not compiled with ngc, i.e. they don't
            // have summaries, only .d.ts files. So we always need to check both, the summary
            // and metadata.


            this._createSymbolsOf(staticSymbol.filePath);

            return this.resolvedSymbols.get(staticSymbol);
          }
          /**
           * getImportAs produces a symbol that can be used to import the given symbol.
           * The import might be different than the symbol if the symbol is exported from
           * a library with a summary; in which case we want to import the symbol from the
           * ngfactory re-export instead of directly to avoid introducing a direct dependency
           * on an otherwise indirect dependency.
           *
           * @param staticSymbol the symbol for which to generate a import symbol
           */

        }, {
          key: "getImportAs",
          value: function getImportAs(staticSymbol) {
            var useSummaries = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;

            if (staticSymbol.members.length) {
              var baseSymbol = this.getStaticSymbol(staticSymbol.filePath, staticSymbol.name);
              var baseImportAs = this.getImportAs(baseSymbol, useSummaries);
              return baseImportAs ? this.getStaticSymbol(baseImportAs.filePath, baseImportAs.name, staticSymbol.members) : null;
            }

            var summarizedFileName = stripSummaryForJitFileSuffix(staticSymbol.filePath);

            if (summarizedFileName !== staticSymbol.filePath) {
              var summarizedName = stripSummaryForJitNameSuffix(staticSymbol.name);

              var _baseSymbol = this.getStaticSymbol(summarizedFileName, summarizedName, staticSymbol.members);

              var _baseImportAs = this.getImportAs(_baseSymbol, useSummaries);

              return _baseImportAs ? this.getStaticSymbol(summaryForJitFileName(_baseImportAs.filePath), summaryForJitName(_baseImportAs.name), _baseSymbol.members) : null;
            }

            var result = useSummaries && this.summaryResolver.getImportAs(staticSymbol) || null;

            if (!result) {
              result = this.importAs.get(staticSymbol);
            }

            return result;
          }
          /**
           * getResourcePath produces the path to the original location of the symbol and should
           * be used to determine the relative location of resource references recorded in
           * symbol metadata.
           */

        }, {
          key: "getResourcePath",
          value: function getResourcePath(staticSymbol) {
            return this.symbolResourcePaths.get(staticSymbol) || staticSymbol.filePath;
          }
          /**
           * getTypeArity returns the number of generic type parameters the given symbol
           * has. If the symbol is not a type the result is null.
           */

        }, {
          key: "getTypeArity",
          value: function getTypeArity(staticSymbol) {
            // If the file is a factory/ngsummary file, don't resolve the symbol as doing so would
            // cause the metadata for an factory/ngsummary file to be loaded which doesn't exist.
            // All references to generated classes must include the correct arity whenever
            // generating code.
            if (isGeneratedFile(staticSymbol.filePath)) {
              return null;
            }

            var resolvedSymbol = unwrapResolvedMetadata(this.resolveSymbol(staticSymbol));

            while (resolvedSymbol && resolvedSymbol.metadata instanceof StaticSymbol) {
              resolvedSymbol = unwrapResolvedMetadata(this.resolveSymbol(resolvedSymbol.metadata));
            }

            return resolvedSymbol && resolvedSymbol.metadata && resolvedSymbol.metadata.arity || null;
          }
        }, {
          key: "getKnownModuleName",
          value: function getKnownModuleName(filePath) {
            return this.knownFileNameToModuleNames.get(filePath) || null;
          }
        }, {
          key: "recordImportAs",
          value: function recordImportAs(sourceSymbol, targetSymbol) {
            sourceSymbol.assertNoMembers();
            targetSymbol.assertNoMembers();
            this.importAs.set(sourceSymbol, targetSymbol);
          }
        }, {
          key: "recordModuleNameForFileName",
          value: function recordModuleNameForFileName(fileName, moduleName) {
            this.knownFileNameToModuleNames.set(fileName, moduleName);
          }
          /**
           * Invalidate all information derived from the given file and return the
           * static symbols contained in the file.
           *
           * @param fileName the file to invalidate
           */

        }, {
          key: "invalidateFile",
          value: function invalidateFile(fileName) {
            this.metadataCache["delete"](fileName);
            var symbols = this.symbolFromFile.get(fileName);

            if (!symbols) {
              return [];
            }

            this.symbolFromFile["delete"](fileName);

            var _iterator30 = _createForOfIteratorHelper(symbols),
                _step30;

            try {
              for (_iterator30.s(); !(_step30 = _iterator30.n()).done;) {
                var symbol = _step30.value;
                this.resolvedSymbols["delete"](symbol);
                this.importAs["delete"](symbol);
                this.symbolResourcePaths["delete"](symbol);
              }
            } catch (err) {
              _iterator30.e(err);
            } finally {
              _iterator30.f();
            }

            return symbols;
          }
          /** @internal */

        }, {
          key: "ignoreErrorsFor",
          value: function ignoreErrorsFor(cb) {
            var recorder = this.errorRecorder;

            this.errorRecorder = function () {};

            try {
              return cb();
            } finally {
              this.errorRecorder = recorder;
            }
          }
        }, {
          key: "_resolveSymbolMembers",
          value: function _resolveSymbolMembers(staticSymbol) {
            var members = staticSymbol.members;
            var baseResolvedSymbol = this.resolveSymbol(this.getStaticSymbol(staticSymbol.filePath, staticSymbol.name));

            if (!baseResolvedSymbol) {
              return null;
            }

            var baseMetadata = unwrapResolvedMetadata(baseResolvedSymbol.metadata);

            if (baseMetadata instanceof StaticSymbol) {
              return new ResolvedStaticSymbol(staticSymbol, this.getStaticSymbol(baseMetadata.filePath, baseMetadata.name, members));
            } else if (baseMetadata && baseMetadata.__symbolic === 'class') {
              if (baseMetadata.statics && members.length === 1) {
                return new ResolvedStaticSymbol(staticSymbol, baseMetadata.statics[members[0]]);
              }
            } else {
              var value = baseMetadata;

              for (var i = 0; i < members.length && value; i++) {
                value = value[members[i]];
              }

              return new ResolvedStaticSymbol(staticSymbol, value);
            }

            return null;
          }
        }, {
          key: "_resolveSymbolFromSummary",
          value: function _resolveSymbolFromSummary(staticSymbol) {
            var summary = this.summaryResolver.resolveSummary(staticSymbol);
            return summary ? new ResolvedStaticSymbol(staticSymbol, summary.metadata) : null;
          }
          /**
           * getStaticSymbol produces a Type whose metadata is known but whose implementation is not loaded.
           * All types passed to the StaticResolver should be pseudo-types returned by this method.
           *
           * @param declarationFile the absolute path of the file where the symbol is declared
           * @param name the name of the type.
           * @param members a symbol for a static member of the named type
           */

        }, {
          key: "getStaticSymbol",
          value: function getStaticSymbol(declarationFile, name, members) {
            return this.staticSymbolCache.get(declarationFile, name, members);
          }
          /**
           * hasDecorators checks a file's metadata for the presence of decorators without evaluating the
           * metadata.
           *
           * @param filePath the absolute path to examine for decorators.
           * @returns true if any class in the file has a decorator.
           */

        }, {
          key: "hasDecorators",
          value: function hasDecorators(filePath) {
            var metadata = this.getModuleMetadata(filePath);

            if (metadata['metadata']) {
              return Object.keys(metadata['metadata']).some(function (metadataKey) {
                var entry = metadata['metadata'][metadataKey];
                return entry && entry.__symbolic === 'class' && entry.decorators;
              });
            }

            return false;
          }
        }, {
          key: "getSymbolsOf",
          value: function getSymbolsOf(filePath) {
            var summarySymbols = this.summaryResolver.getSymbolsOf(filePath);

            if (summarySymbols) {
              return summarySymbols;
            } // Note: Some users use libraries that were not compiled with ngc, i.e. they don't
            // have summaries, only .d.ts files, but `summaryResolver.isLibraryFile` returns true.


            this._createSymbolsOf(filePath);

            return this.symbolFromFile.get(filePath) || [];
          }
        }, {
          key: "_createSymbolsOf",
          value: function _createSymbolsOf(filePath) {
            var _this298 = this;

            if (this.symbolFromFile.has(filePath)) {
              return;
            }

            var resolvedSymbols = [];
            var metadata = this.getModuleMetadata(filePath);

            if (metadata['importAs']) {
              // Index bundle indices should use the importAs module name defined
              // in the bundle.
              this.knownFileNameToModuleNames.set(filePath, metadata['importAs']);
            } // handle the symbols in one of the re-export location


            if (metadata['exports']) {
              var _iterator31 = _createForOfIteratorHelper(metadata['exports']),
                  _step31;

              try {
                var _loop3 = function _loop3() {
                  var moduleExport = _step31.value;

                  // handle the symbols in the list of explicitly re-exported symbols.
                  if (moduleExport["export"]) {
                    moduleExport["export"].forEach(function (exportSymbol) {
                      var symbolName;

                      if (typeof exportSymbol === 'string') {
                        symbolName = exportSymbol;
                      } else {
                        symbolName = exportSymbol.as;
                      }

                      symbolName = unescapeIdentifier(symbolName);
                      var symName = symbolName;

                      if (typeof exportSymbol !== 'string') {
                        symName = unescapeIdentifier(exportSymbol.name);
                      }

                      var resolvedModule = _this298.resolveModule(moduleExport.from, filePath);

                      if (resolvedModule) {
                        var targetSymbol = _this298.getStaticSymbol(resolvedModule, symName);

                        var sourceSymbol = _this298.getStaticSymbol(filePath, symbolName);

                        resolvedSymbols.push(_this298.createExport(sourceSymbol, targetSymbol));
                      }
                    });
                  } else {
                    // Handle the symbols loaded by 'export *' directives.
                    var resolvedModule = _this298.resolveModule(moduleExport.from, filePath);

                    if (resolvedModule && resolvedModule !== filePath) {
                      var nestedExports = _this298.getSymbolsOf(resolvedModule);

                      nestedExports.forEach(function (targetSymbol) {
                        var sourceSymbol = _this298.getStaticSymbol(filePath, targetSymbol.name);

                        resolvedSymbols.push(_this298.createExport(sourceSymbol, targetSymbol));
                      });
                    }
                  }
                };

                for (_iterator31.s(); !(_step31 = _iterator31.n()).done;) {
                  _loop3();
                }
              } catch (err) {
                _iterator31.e(err);
              } finally {
                _iterator31.f();
              }
            } // handle the actual metadata. Has to be after the exports
            // as there might be collisions in the names, and we want the symbols
            // of the current module to win ofter reexports.


            if (metadata['metadata']) {
              // handle direct declarations of the symbol
              var topLevelSymbolNames = new Set(Object.keys(metadata['metadata']).map(unescapeIdentifier));
              var origins = metadata['origins'] || {};
              Object.keys(metadata['metadata']).forEach(function (metadataKey) {
                var symbolMeta = metadata['metadata'][metadataKey];
                var name = unescapeIdentifier(metadataKey);

                var symbol = _this298.getStaticSymbol(filePath, name);

                var origin = origins.hasOwnProperty(metadataKey) && origins[metadataKey];

                if (origin) {
                  // If the symbol is from a bundled index, use the declaration location of the
                  // symbol so relative references (such as './my.html') will be calculated
                  // correctly.
                  var originFilePath = _this298.resolveModule(origin, filePath);

                  if (!originFilePath) {
                    _this298.reportError(new Error("Couldn't resolve original symbol for ".concat(origin, " from ").concat(_this298.host.getOutputName(filePath))));
                  } else {
                    _this298.symbolResourcePaths.set(symbol, originFilePath);
                  }
                }

                resolvedSymbols.push(_this298.createResolvedSymbol(symbol, filePath, topLevelSymbolNames, symbolMeta));
              });
            }

            var uniqueSymbols = new Set();

            for (var _i12 = 0, _resolvedSymbols = resolvedSymbols; _i12 < _resolvedSymbols.length; _i12++) {
              var resolvedSymbol = _resolvedSymbols[_i12];
              this.resolvedSymbols.set(resolvedSymbol.symbol, resolvedSymbol);
              uniqueSymbols.add(resolvedSymbol.symbol);
            }

            this.symbolFromFile.set(filePath, Array.from(uniqueSymbols));
          }
        }, {
          key: "createResolvedSymbol",
          value: function createResolvedSymbol(sourceSymbol, topLevelPath, topLevelSymbolNames, metadata) {
            var _this299 = this;

            // For classes that don't have Angular summaries / metadata,
            // we only keep their arity, but nothing else
            // (e.g. their constructor parameters).
            // We do this to prevent introducing deep imports
            // as we didn't generate .ngfactory.ts files with proper reexports.
            var isTsFile = TS.test(sourceSymbol.filePath);

            if (this.summaryResolver.isLibraryFile(sourceSymbol.filePath) && !isTsFile && metadata && metadata['__symbolic'] === 'class') {
              var _transformedMeta = {
                __symbolic: 'class',
                arity: metadata.arity
              };
              return new ResolvedStaticSymbol(sourceSymbol, _transformedMeta);
            }

            var _originalFileMemo;

            var getOriginalName = function getOriginalName() {
              if (!_originalFileMemo) {
                // Guess what the original file name is from the reference. If it has a `.d.ts` extension
                // replace it with `.ts`. If it already has `.ts` just leave it in place. If it doesn't have
                // .ts or .d.ts, append `.ts'. Also, if it is in `node_modules`, trim the `node_module`
                // location as it is not important to finding the file.
                _originalFileMemo = _this299.host.getOutputName(topLevelPath.replace(/((\.ts)|(\.d\.ts)|)$/, '.ts').replace(/^.*node_modules[/\\]/, ''));
              }

              return _originalFileMemo;
            };

            var self = this;

            var ReferenceTransformer = /*#__PURE__*/function (_ValueTransformer2) {
              _inherits2(ReferenceTransformer, _ValueTransformer2);

              var _super116 = _createSuper2(ReferenceTransformer);

              function ReferenceTransformer() {
                _classCallCheck2(this, ReferenceTransformer);

                return _super116.apply(this, arguments);
              }

              _createClass2(ReferenceTransformer, [{
                key: "visitStringMap",
                value: function visitStringMap(map, functionParams) {
                  var symbolic = map['__symbolic'];

                  if (symbolic === 'function') {
                    var oldLen = functionParams.length;
                    functionParams.push.apply(functionParams, _toConsumableArray(map['parameters'] || []));

                    var result = _get2(_getPrototypeOf2(ReferenceTransformer.prototype), "visitStringMap", this).call(this, map, functionParams);

                    functionParams.length = oldLen;
                    return result;
                  } else if (symbolic === 'reference') {
                    var _module2 = map['module'];
                    var name = map['name'] ? unescapeIdentifier(map['name']) : map['name'];

                    if (!name) {
                      return null;
                    }

                    var filePath;

                    if (_module2) {
                      filePath = self.resolveModule(_module2, sourceSymbol.filePath);

                      if (!filePath) {
                        return {
                          __symbolic: 'error',
                          message: "Could not resolve ".concat(_module2, " relative to ").concat(self.host.getMetadataFor(sourceSymbol.filePath), "."),
                          line: map['line'],
                          character: map['character'],
                          fileName: getOriginalName()
                        };
                      }

                      return {
                        __symbolic: 'resolved',
                        symbol: self.getStaticSymbol(filePath, name),
                        line: map['line'],
                        character: map['character'],
                        fileName: getOriginalName()
                      };
                    } else if (functionParams.indexOf(name) >= 0) {
                      // reference to a function parameter
                      return {
                        __symbolic: 'reference',
                        name: name
                      };
                    } else {
                      if (topLevelSymbolNames.has(name)) {
                        return self.getStaticSymbol(topLevelPath, name);
                      } // ambient value


                      null;
                    }
                  } else if (symbolic === 'error') {
                    return Object.assign(Object.assign({}, map), {
                      fileName: getOriginalName()
                    });
                  } else {
                    return _get2(_getPrototypeOf2(ReferenceTransformer.prototype), "visitStringMap", this).call(this, map, functionParams);
                  }
                }
              }]);

              return ReferenceTransformer;
            }(ValueTransformer);

            var transformedMeta = visitValue(metadata, new ReferenceTransformer(), []);
            var unwrappedTransformedMeta = unwrapResolvedMetadata(transformedMeta);

            if (unwrappedTransformedMeta instanceof StaticSymbol) {
              return this.createExport(sourceSymbol, unwrappedTransformedMeta);
            }

            return new ResolvedStaticSymbol(sourceSymbol, transformedMeta);
          }
        }, {
          key: "createExport",
          value: function createExport(sourceSymbol, targetSymbol) {
            sourceSymbol.assertNoMembers();
            targetSymbol.assertNoMembers();

            if (this.summaryResolver.isLibraryFile(sourceSymbol.filePath) && this.summaryResolver.isLibraryFile(targetSymbol.filePath)) {
              // This case is for an ng library importing symbols from a plain ts library
              // transitively.
              // Note: We rely on the fact that we discover symbols in the direction
              // from source files to library files
              this.importAs.set(targetSymbol, this.getImportAs(sourceSymbol) || sourceSymbol);
            }

            return new ResolvedStaticSymbol(sourceSymbol, targetSymbol);
          }
        }, {
          key: "reportError",
          value: function reportError(error, context, path) {
            if (this.errorRecorder) {
              this.errorRecorder(error, context && context.filePath || path);
            } else {
              throw error;
            }
          }
          /**
           * @param module an absolute path to a module file.
           */

        }, {
          key: "getModuleMetadata",
          value: function getModuleMetadata(module) {
            var moduleMetadata = this.metadataCache.get(module);

            if (!moduleMetadata) {
              var moduleMetadatas = this.host.getMetadataFor(module);

              if (moduleMetadatas) {
                var maxVersion = -1;
                moduleMetadatas.forEach(function (md) {
                  if (md && md['version'] > maxVersion) {
                    maxVersion = md['version'];
                    moduleMetadata = md;
                  }
                });
              }

              if (!moduleMetadata) {
                moduleMetadata = {
                  __symbolic: 'module',
                  version: SUPPORTED_SCHEMA_VERSION,
                  module: module,
                  metadata: {}
                };
              }

              if (moduleMetadata['version'] != SUPPORTED_SCHEMA_VERSION) {
                var errorMessage = moduleMetadata['version'] == 2 ? "Unsupported metadata version ".concat(moduleMetadata['version'], " for module ").concat(module, ". This module should be compiled with a newer version of ngc") : "Metadata version mismatch for module ".concat(this.host.getOutputName(module), ", found version ").concat(moduleMetadata['version'], ", expected ").concat(SUPPORTED_SCHEMA_VERSION);
                this.reportError(new Error(errorMessage));
              }

              this.metadataCache.set(module, moduleMetadata);
            }

            return moduleMetadata;
          }
        }, {
          key: "getSymbolByModule",
          value: function getSymbolByModule(module, symbolName, containingFile) {
            var filePath = this.resolveModule(module, containingFile);

            if (!filePath) {
              this.reportError(new Error("Could not resolve module ".concat(module).concat(containingFile ? ' relative to ' + this.host.getOutputName(containingFile) : '')));
              return this.getStaticSymbol("ERROR:".concat(module), symbolName);
            }

            return this.getStaticSymbol(filePath, symbolName);
          }
        }, {
          key: "resolveModule",
          value: function resolveModule(module, containingFile) {
            try {
              return this.host.moduleNameToFileName(module, containingFile);
            } catch (e) {
              console.error("Could not resolve module '".concat(module, "' relative to file ").concat(containingFile));
              this.reportError(e, undefined, containingFile);
            }

            return null;
          }
        }]);

        return StaticSymbolResolver;
      }(); // Remove extra underscore from escaped identifier.
      // See https://github.com/Microsoft/TypeScript/blob/master/src/compiler/utilities.ts


      function unescapeIdentifier(identifier) {
        return identifier.startsWith('___') ? identifier.substr(1) : identifier;
      }

      function unwrapResolvedMetadata(metadata) {
        if (metadata && metadata.__symbolic === 'resolved') {
          return metadata.symbol;
        }

        return metadata;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function serializeSummaries(srcFileName, forJitCtx, summaryResolver, symbolResolver, symbols, types) {
        var createExternalSymbolReexports = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : false;
        var toJsonSerializer = new ToJsonSerializer(symbolResolver, summaryResolver, srcFileName); // for symbols, we use everything except for the class metadata itself
        // (we keep the statics though), as the class metadata is contained in the
        // CompileTypeSummary.

        symbols.forEach(function (resolvedSymbol) {
          return toJsonSerializer.addSummary({
            symbol: resolvedSymbol.symbol,
            metadata: resolvedSymbol.metadata
          });
        }); // Add type summaries.

        types.forEach(function (_ref42) {
          var summary = _ref42.summary,
              metadata = _ref42.metadata;
          toJsonSerializer.addSummary({
            symbol: summary.type.reference,
            metadata: undefined,
            type: summary
          });
        });

        var _toJsonSerializer$ser = toJsonSerializer.serialize(createExternalSymbolReexports),
            json = _toJsonSerializer$ser.json,
            exportAs = _toJsonSerializer$ser.exportAs;

        if (forJitCtx) {
          var forJitSerializer = new ForJitSerializer(forJitCtx, symbolResolver, summaryResolver);
          types.forEach(function (_ref43) {
            var summary = _ref43.summary,
                metadata = _ref43.metadata;
            forJitSerializer.addSourceType(summary, metadata);
          });
          toJsonSerializer.unprocessedSymbolSummariesBySymbol.forEach(function (summary) {
            if (summaryResolver.isLibraryFile(summary.symbol.filePath) && summary.type) {
              forJitSerializer.addLibType(summary.type);
            }
          });
          forJitSerializer.serialize(exportAs);
        }

        return {
          json: json,
          exportAs: exportAs
        };
      }

      function deserializeSummaries(symbolCache, summaryResolver, libraryFileName, json) {
        var deserializer = new FromJsonDeserializer(symbolCache, summaryResolver);
        return deserializer.deserialize(libraryFileName, json);
      }

      function createForJitStub(outputCtx, reference) {
        return createSummaryForJitFunction(outputCtx, reference, NULL_EXPR);
      }

      function createSummaryForJitFunction(outputCtx, reference, value) {
        var fnName = summaryForJitName(reference.name);
        outputCtx.statements.push(fn([], [new ReturnStatement(value)], new ArrayType(DYNAMIC_TYPE)).toDeclStmt(fnName, [StmtModifier.Final, StmtModifier.Exported]));
      }

      var ToJsonSerializer = /*#__PURE__*/function (_ValueTransformer3) {
        _inherits2(ToJsonSerializer, _ValueTransformer3);

        var _super117 = _createSuper2(ToJsonSerializer);

        function ToJsonSerializer(symbolResolver, summaryResolver, srcFileName) {
          var _this300;

          _classCallCheck2(this, ToJsonSerializer);

          _this300 = _super117.call(this);
          _this300.symbolResolver = symbolResolver;
          _this300.summaryResolver = summaryResolver;
          _this300.srcFileName = srcFileName; // Note: This only contains symbols without members.

          _this300.symbols = [];
          _this300.indexBySymbol = new Map();
          _this300.reexportedBy = new Map(); // This now contains a `__symbol: number` in the place of
          // StaticSymbols, but otherwise has the same shape as the original objects.

          _this300.processedSummaryBySymbol = new Map();
          _this300.processedSummaries = [];
          _this300.unprocessedSymbolSummariesBySymbol = new Map();
          _this300.moduleName = symbolResolver.getKnownModuleName(srcFileName);
          return _this300;
        }

        _createClass2(ToJsonSerializer, [{
          key: "addSummary",
          value: function addSummary(summary) {
            var _this301 = this;

            var unprocessedSummary = this.unprocessedSymbolSummariesBySymbol.get(summary.symbol);
            var processedSummary = this.processedSummaryBySymbol.get(summary.symbol);

            if (!unprocessedSummary) {
              unprocessedSummary = {
                symbol: summary.symbol,
                metadata: undefined
              };
              this.unprocessedSymbolSummariesBySymbol.set(summary.symbol, unprocessedSummary);
              processedSummary = {
                symbol: this.processValue(summary.symbol, 0
                /* None */
                )
              };
              this.processedSummaries.push(processedSummary);
              this.processedSummaryBySymbol.set(summary.symbol, processedSummary);
            }

            if (!unprocessedSummary.metadata && summary.metadata) {
              var metadata = summary.metadata || {};

              if (metadata.__symbolic === 'class') {
                // For classes, we keep everything except their class decorators.
                // We need to keep e.g. the ctor args, method names, method decorators
                // so that the class can be extended in another compilation unit.
                // We don't keep the class decorators as
                // 1) they refer to data
                //   that should not cause a rebuild of downstream compilation units
                //   (e.g. inline templates of @Component, or @NgModule.declarations)
                // 2) their data is already captured in TypeSummaries, e.g. DirectiveSummary.
                var clone = {};
                Object.keys(metadata).forEach(function (propName) {
                  if (propName !== 'decorators') {
                    clone[propName] = metadata[propName];
                  }
                });
                metadata = clone;
              } else if (isCall(metadata)) {
                if (!isFunctionCall(metadata) && !isMethodCallOnVariable(metadata)) {
                  // Don't store complex calls as we won't be able to simplify them anyways later on.
                  metadata = {
                    __symbolic: 'error',
                    message: 'Complex function calls are not supported.'
                  };
                }
              } // Note: We need to keep storing ctor calls for e.g.
              // `export const x = new InjectionToken(...)`


              unprocessedSummary.metadata = metadata;
              processedSummary.metadata = this.processValue(metadata, 1
              /* ResolveValue */
              );

              if (metadata instanceof StaticSymbol && this.summaryResolver.isLibraryFile(metadata.filePath)) {
                var declarationSymbol = this.symbols[this.indexBySymbol.get(metadata)];

                if (!isLoweredSymbol(declarationSymbol.name)) {
                  // Note: symbols that were introduced during codegen in the user file can have a reexport
                  // if a user used `export *`. However, we can't rely on this as tsickle will change
                  // `export *` into named exports, using only the information from the typechecker.
                  // As we introduce the new symbols after typecheck, Tsickle does not know about them,
                  // and omits them when expanding `export *`.
                  // So we have to keep reexporting these symbols manually via .ngfactory files.
                  this.reexportedBy.set(declarationSymbol, summary.symbol);
                }
              }
            }

            if (!unprocessedSummary.type && summary.type) {
              unprocessedSummary.type = summary.type; // Note: We don't add the summaries of all referenced symbols as for the ResolvedSymbols,
              // as the type summaries already contain the transitive data that they require
              // (in a minimal way).

              processedSummary.type = this.processValue(summary.type, 0
              /* None */
              ); // except for reexported directives / pipes, so we need to store
              // their summaries explicitly.

              if (summary.type.summaryKind === CompileSummaryKind.NgModule) {
                var ngModuleSummary = summary.type;
                ngModuleSummary.exportedDirectives.concat(ngModuleSummary.exportedPipes).forEach(function (id) {
                  var symbol = id.reference;

                  if (_this301.summaryResolver.isLibraryFile(symbol.filePath) && !_this301.unprocessedSymbolSummariesBySymbol.has(symbol)) {
                    var _summary = _this301.summaryResolver.resolveSummary(symbol);

                    if (_summary) {
                      _this301.addSummary(_summary);
                    }
                  }
                });
              }
            }
          }
          /**
           * @param createExternalSymbolReexports Whether external static symbols should be re-exported.
           * This can be enabled if external symbols should be re-exported by the current module in
           * order to avoid dynamically generated module dependencies which can break strict dependency
           * enforcements (as in Google3). Read more here: https://github.com/angular/angular/issues/25644
           */

        }, {
          key: "serialize",
          value: function serialize(createExternalSymbolReexports) {
            var _this302 = this;

            var exportAs = [];
            var json = JSON.stringify({
              moduleName: this.moduleName,
              summaries: this.processedSummaries,
              symbols: this.symbols.map(function (symbol, index) {
                symbol.assertNoMembers();
                var importAs = undefined;

                if (_this302.summaryResolver.isLibraryFile(symbol.filePath)) {
                  var reexportSymbol = _this302.reexportedBy.get(symbol);

                  if (reexportSymbol) {
                    // In case the given external static symbol is already manually exported by the
                    // user, we just proxy the external static symbol reference to the manual export.
                    // This ensures that the AOT compiler imports the external symbol through the
                    // user export and does not introduce another dependency which is not needed.
                    importAs = _this302.indexBySymbol.get(reexportSymbol);
                  } else if (createExternalSymbolReexports) {
                    // In this case, the given external static symbol is *not* manually exported by
                    // the user, and we manually create a re-export in the factory file so that we
                    // don't introduce another module dependency. This is useful when running within
                    // Bazel so that the AOT compiler does not introduce any module dependencies
                    // which can break the strict dependency enforcement. (e.g. as in Google3)
                    // Read more about this here: https://github.com/angular/angular/issues/25644
                    var summary = _this302.unprocessedSymbolSummariesBySymbol.get(symbol);

                    if (!summary || !summary.metadata || summary.metadata.__symbolic !== 'interface') {
                      importAs = "".concat(symbol.name, "_").concat(index);
                      exportAs.push({
                        symbol: symbol,
                        exportAs: importAs
                      });
                    }
                  }
                }

                return {
                  __symbol: index,
                  name: symbol.name,
                  filePath: _this302.summaryResolver.toSummaryFileName(symbol.filePath, _this302.srcFileName),
                  importAs: importAs
                };
              })
            });
            return {
              json: json,
              exportAs: exportAs
            };
          }
        }, {
          key: "processValue",
          value: function processValue(value, flags) {
            return visitValue(value, this, flags);
          }
        }, {
          key: "visitOther",
          value: function visitOther(value, context) {
            if (value instanceof StaticSymbol) {
              var baseSymbol = this.symbolResolver.getStaticSymbol(value.filePath, value.name);
              var index = this.visitStaticSymbol(baseSymbol, context);
              return {
                __symbol: index,
                members: value.members
              };
            }
          }
          /**
           * Strip line and character numbers from ngsummaries.
           * Emitting them causes white spaces changes to retrigger upstream
           * recompilations in bazel.
           * TODO: find out a way to have line and character numbers in errors without
           * excessive recompilation in bazel.
           */

        }, {
          key: "visitStringMap",
          value: function visitStringMap(map, context) {
            if (map['__symbolic'] === 'resolved') {
              return visitValue(map['symbol'], this, context);
            }

            if (map['__symbolic'] === 'error') {
              delete map['line'];
              delete map['character'];
            }

            return _get2(_getPrototypeOf2(ToJsonSerializer.prototype), "visitStringMap", this).call(this, map, context);
          }
          /**
           * Returns null if the options.resolveValue is true, and the summary for the symbol
           * resolved to a type or could not be resolved.
           */

        }, {
          key: "visitStaticSymbol",
          value: function visitStaticSymbol(baseSymbol, flags) {
            var index = this.indexBySymbol.get(baseSymbol);
            var summary = null;

            if (flags & 1
            /* ResolveValue */
            && this.summaryResolver.isLibraryFile(baseSymbol.filePath)) {
              if (this.unprocessedSymbolSummariesBySymbol.has(baseSymbol)) {
                // the summary for this symbol was already added
                // -> nothing to do.
                return index;
              }

              summary = this.loadSummary(baseSymbol);

              if (summary && summary.metadata instanceof StaticSymbol) {
                // The summary is a reexport
                index = this.visitStaticSymbol(summary.metadata, flags); // reset the summary as it is just a reexport, so we don't want to store it.

                summary = null;
              }
            } else if (index != null) {
              // Note: == on purpose to compare with undefined!
              // No summary and the symbol is already added -> nothing to do.
              return index;
            } // Note: == on purpose to compare with undefined!


            if (index == null) {
              index = this.symbols.length;
              this.symbols.push(baseSymbol);
            }

            this.indexBySymbol.set(baseSymbol, index);

            if (summary) {
              this.addSummary(summary);
            }

            return index;
          }
        }, {
          key: "loadSummary",
          value: function loadSummary(symbol) {
            var summary = this.summaryResolver.resolveSummary(symbol);

            if (!summary) {
              // some symbols might originate from a plain typescript library
              // that just exported .d.ts and .metadata.json files, i.e. where no summary
              // files were created.
              var resolvedSymbol = this.symbolResolver.resolveSymbol(symbol);

              if (resolvedSymbol) {
                summary = {
                  symbol: resolvedSymbol.symbol,
                  metadata: resolvedSymbol.metadata
                };
              }
            }

            return summary;
          }
        }]);

        return ToJsonSerializer;
      }(ValueTransformer);

      var ForJitSerializer = /*#__PURE__*/function () {
        function ForJitSerializer(outputCtx, symbolResolver, summaryResolver) {
          _classCallCheck2(this, ForJitSerializer);

          this.outputCtx = outputCtx;
          this.symbolResolver = symbolResolver;
          this.summaryResolver = summaryResolver;
          this.data = [];
        }

        _createClass2(ForJitSerializer, [{
          key: "addSourceType",
          value: function addSourceType(summary, metadata) {
            this.data.push({
              summary: summary,
              metadata: metadata,
              isLibrary: false
            });
          }
        }, {
          key: "addLibType",
          value: function addLibType(summary) {
            this.data.push({
              summary: summary,
              metadata: null,
              isLibrary: true
            });
          }
        }, {
          key: "serialize",
          value: function serialize(exportAsArr) {
            var _this303 = this;

            var exportAsBySymbol = new Map();

            var _iterator32 = _createForOfIteratorHelper(exportAsArr),
                _step32;

            try {
              for (_iterator32.s(); !(_step32 = _iterator32.n()).done;) {
                var _step32$value = _step32.value,
                    symbol = _step32$value.symbol,
                    exportAs = _step32$value.exportAs;
                exportAsBySymbol.set(symbol, exportAs);
              }
            } catch (err) {
              _iterator32.e(err);
            } finally {
              _iterator32.f();
            }

            var ngModuleSymbols = new Set();

            var _iterator33 = _createForOfIteratorHelper(this.data),
                _step33;

            try {
              for (_iterator33.s(); !(_step33 = _iterator33.n()).done;) {
                var _step33$value = _step33.value,
                    summary = _step33$value.summary,
                    metadata = _step33$value.metadata,
                    isLibrary = _step33$value.isLibrary;

                if (summary.summaryKind === CompileSummaryKind.NgModule) {
                  // collect the symbols that refer to NgModule classes.
                  // Note: we can't just rely on `summary.type.summaryKind` to determine this as
                  // we don't add the summaries of all referenced symbols when we serialize type summaries.
                  // See serializeSummaries for details.
                  ngModuleSymbols.add(summary.type.reference);
                  var modSummary = summary;

                  var _iterator34 = _createForOfIteratorHelper(modSummary.modules),
                      _step34;

                  try {
                    for (_iterator34.s(); !(_step34 = _iterator34.n()).done;) {
                      var mod = _step34.value;
                      ngModuleSymbols.add(mod.reference);
                    }
                  } catch (err) {
                    _iterator34.e(err);
                  } finally {
                    _iterator34.f();
                  }
                }

                if (!isLibrary) {
                  var fnName = summaryForJitName(summary.type.reference.name);
                  createSummaryForJitFunction(this.outputCtx, summary.type.reference, this.serializeSummaryWithDeps(summary, metadata));
                }
              }
            } catch (err) {
              _iterator33.e(err);
            } finally {
              _iterator33.f();
            }

            ngModuleSymbols.forEach(function (ngModuleSymbol) {
              if (_this303.summaryResolver.isLibraryFile(ngModuleSymbol.filePath)) {
                var exportAs = exportAsBySymbol.get(ngModuleSymbol) || ngModuleSymbol.name;
                var jitExportAsName = summaryForJitName(exportAs);

                _this303.outputCtx.statements.push(variable(jitExportAsName).set(_this303.serializeSummaryRef(ngModuleSymbol)).toDeclStmt(null, [StmtModifier.Exported]));
              }
            });
          }
        }, {
          key: "serializeSummaryWithDeps",
          value: function serializeSummaryWithDeps(summary, metadata) {
            var _this304 = this;

            var expressions = [this.serializeSummary(summary)];
            var providers = [];

            if (metadata instanceof CompileNgModuleMetadata) {
              expressions.push.apply(expressions, _toConsumableArray( // For directives / pipes, we only add the declared ones,
              // and rely on transitively importing NgModules to get the transitive
              // summaries.
              metadata.declaredDirectives.concat(metadata.declaredPipes).map(function (type) {
                return type.reference;
              }) // For modules,
              // we also add the summaries for modules
              // from libraries.
              // This is ok as we produce reexports for all transitive modules.
              .concat(metadata.transitiveModule.modules.map(function (type) {
                return type.reference;
              }).filter(function (ref) {
                return ref !== metadata.type.reference;
              })).map(function (ref) {
                return _this304.serializeSummaryRef(ref);
              }))); // Note: We don't use `NgModuleSummary.providers`, as that one is transitive,
              // and we already have transitive modules.

              providers = metadata.providers;
            } else if (summary.summaryKind === CompileSummaryKind.Directive) {
              var dirSummary = summary;
              providers = dirSummary.providers.concat(dirSummary.viewProviders);
            } // Note: We can't just refer to the `ngsummary.ts` files for `useClass` providers (as we do for
            // declaredDirectives / declaredPipes), as we allow
            // providers without ctor arguments to skip the `@Injectable` decorator,
            // i.e. we didn't generate .ngsummary.ts files for these.


            expressions.push.apply(expressions, _toConsumableArray(providers.filter(function (provider) {
              return !!provider.useClass;
            }).map(function (provider) {
              return _this304.serializeSummary({
                summaryKind: CompileSummaryKind.Injectable,
                type: provider.useClass
              });
            })));
            return literalArr(expressions);
          }
        }, {
          key: "serializeSummaryRef",
          value: function serializeSummaryRef(typeSymbol) {
            var jitImportedSymbol = this.symbolResolver.getStaticSymbol(summaryForJitFileName(typeSymbol.filePath), summaryForJitName(typeSymbol.name));
            return this.outputCtx.importExpr(jitImportedSymbol);
          }
        }, {
          key: "serializeSummary",
          value: function serializeSummary(data) {
            var outputCtx = this.outputCtx;

            var Transformer = /*#__PURE__*/function () {
              function Transformer() {
                _classCallCheck2(this, Transformer);
              }

              _createClass2(Transformer, [{
                key: "visitArray",
                value: function visitArray(arr, context) {
                  var _this305 = this;

                  return literalArr(arr.map(function (entry) {
                    return visitValue(entry, _this305, context);
                  }));
                }
              }, {
                key: "visitStringMap",
                value: function visitStringMap(map, context) {
                  var _this306 = this;

                  return new LiteralMapExpr(Object.keys(map).map(function (key) {
                    return new LiteralMapEntry(key, visitValue(map[key], _this306, context), false);
                  }));
                }
              }, {
                key: "visitPrimitive",
                value: function visitPrimitive(value, context) {
                  return literal(value);
                }
              }, {
                key: "visitOther",
                value: function visitOther(value, context) {
                  if (value instanceof StaticSymbol) {
                    return outputCtx.importExpr(value);
                  } else {
                    throw new Error("Illegal State: Encountered value ".concat(value));
                  }
                }
              }]);

              return Transformer;
            }();

            return visitValue(data, new Transformer(), null);
          }
        }]);

        return ForJitSerializer;
      }();

      var FromJsonDeserializer = /*#__PURE__*/function (_ValueTransformer4) {
        _inherits2(FromJsonDeserializer, _ValueTransformer4);

        var _super118 = _createSuper2(FromJsonDeserializer);

        function FromJsonDeserializer(symbolCache, summaryResolver) {
          var _this307;

          _classCallCheck2(this, FromJsonDeserializer);

          _this307 = _super118.call(this);
          _this307.symbolCache = symbolCache;
          _this307.summaryResolver = summaryResolver;
          return _this307;
        }

        _createClass2(FromJsonDeserializer, [{
          key: "deserialize",
          value: function deserialize(libraryFileName, json) {
            var _this308 = this;

            var data = JSON.parse(json);
            var allImportAs = [];
            this.symbols = data.symbols.map(function (serializedSymbol) {
              return _this308.symbolCache.get(_this308.summaryResolver.fromSummaryFileName(serializedSymbol.filePath, libraryFileName), serializedSymbol.name);
            });
            data.symbols.forEach(function (serializedSymbol, index) {
              var symbol = _this308.symbols[index];
              var importAs = serializedSymbol.importAs;

              if (typeof importAs === 'number') {
                allImportAs.push({
                  symbol: symbol,
                  importAs: _this308.symbols[importAs]
                });
              } else if (typeof importAs === 'string') {
                allImportAs.push({
                  symbol: symbol,
                  importAs: _this308.symbolCache.get(ngfactoryFilePath(libraryFileName), importAs)
                });
              }
            });
            var summaries = visitValue(data.summaries, this, null);
            return {
              moduleName: data.moduleName,
              summaries: summaries,
              importAs: allImportAs
            };
          }
        }, {
          key: "visitStringMap",
          value: function visitStringMap(map, context) {
            if ('__symbol' in map) {
              var baseSymbol = this.symbols[map['__symbol']];
              var members = map['members'];
              return members.length ? this.symbolCache.get(baseSymbol.filePath, baseSymbol.name, members) : baseSymbol;
            } else {
              return _get2(_getPrototypeOf2(FromJsonDeserializer.prototype), "visitStringMap", this).call(this, map, context);
            }
          }
        }]);

        return FromJsonDeserializer;
      }(ValueTransformer);

      function isCall(metadata) {
        return metadata && metadata.__symbolic === 'call';
      }

      function isFunctionCall(metadata) {
        return isCall(metadata) && unwrapResolvedMetadata(metadata.expression) instanceof StaticSymbol;
      }

      function isMethodCallOnVariable(metadata) {
        return isCall(metadata) && metadata.expression && metadata.expression.__symbolic === 'select' && unwrapResolvedMetadata(metadata.expression.expression) instanceof StaticSymbol;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var AotCompiler = /*#__PURE__*/function () {
        function AotCompiler(_config, _options, _host, reflector, _metadataResolver, _templateParser, _styleCompiler, _viewCompiler, _typeCheckCompiler, _ngModuleCompiler, _injectableCompiler, _outputEmitter, _summaryResolver, _symbolResolver) {
          _classCallCheck2(this, AotCompiler);

          this._config = _config;
          this._options = _options;
          this._host = _host;
          this.reflector = reflector;
          this._metadataResolver = _metadataResolver;
          this._templateParser = _templateParser;
          this._styleCompiler = _styleCompiler;
          this._viewCompiler = _viewCompiler;
          this._typeCheckCompiler = _typeCheckCompiler;
          this._ngModuleCompiler = _ngModuleCompiler;
          this._injectableCompiler = _injectableCompiler;
          this._outputEmitter = _outputEmitter;
          this._summaryResolver = _summaryResolver;
          this._symbolResolver = _symbolResolver;
          this._templateAstCache = new Map();
          this._analyzedFiles = new Map();
          this._analyzedFilesForInjectables = new Map();
        }

        _createClass2(AotCompiler, [{
          key: "clearCache",
          value: function clearCache() {
            this._metadataResolver.clearCache();
          }
        }, {
          key: "analyzeModulesSync",
          value: function analyzeModulesSync(rootFiles) {
            var _this309 = this;

            var analyzeResult = analyzeAndValidateNgModules(rootFiles, this._host, this._symbolResolver, this._metadataResolver);
            analyzeResult.ngModules.forEach(function (ngModule) {
              return _this309._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(ngModule.type.reference, true);
            });
            return analyzeResult;
          }
        }, {
          key: "analyzeModulesAsync",
          value: function analyzeModulesAsync(rootFiles) {
            var _this310 = this;

            var analyzeResult = analyzeAndValidateNgModules(rootFiles, this._host, this._symbolResolver, this._metadataResolver);
            return Promise.all(analyzeResult.ngModules.map(function (ngModule) {
              return _this310._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(ngModule.type.reference, false);
            })).then(function () {
              return analyzeResult;
            });
          }
        }, {
          key: "_analyzeFile",
          value: function _analyzeFile(fileName) {
            var analyzedFile = this._analyzedFiles.get(fileName);

            if (!analyzedFile) {
              analyzedFile = analyzeFile(this._host, this._symbolResolver, this._metadataResolver, fileName);

              this._analyzedFiles.set(fileName, analyzedFile);
            }

            return analyzedFile;
          }
        }, {
          key: "_analyzeFileForInjectables",
          value: function _analyzeFileForInjectables(fileName) {
            var analyzedFile = this._analyzedFilesForInjectables.get(fileName);

            if (!analyzedFile) {
              analyzedFile = analyzeFileForInjectables(this._host, this._symbolResolver, this._metadataResolver, fileName);

              this._analyzedFilesForInjectables.set(fileName, analyzedFile);
            }

            return analyzedFile;
          }
        }, {
          key: "findGeneratedFileNames",
          value: function findGeneratedFileNames(fileName) {
            var _this311 = this;

            var genFileNames = [];

            var file = this._analyzeFile(fileName); // Make sure we create a .ngfactory if we have a injectable/directive/pipe/NgModule
            // or a reference to a non source file.
            // Note: This is overestimating the required .ngfactory files as the real calculation is harder.
            // Only do this for StubEmitFlags.Basic, as adding a type check block
            // does not change this file (as we generate type check blocks based on NgModules).


            if (this._options.allowEmptyCodegenFiles || file.directives.length || file.pipes.length || file.injectables.length || file.ngModules.length || file.exportsNonSourceFiles) {
              genFileNames.push(ngfactoryFilePath(file.fileName, true));

              if (this._options.enableSummariesForJit) {
                genFileNames.push(summaryForJitFileName(file.fileName, true));
              }
            }

            var fileSuffix = normalizeGenFileSuffix(splitTypescriptSuffix(file.fileName, true)[1]);
            file.directives.forEach(function (dirSymbol) {
              var compMeta = _this311._metadataResolver.getNonNormalizedDirectiveMetadata(dirSymbol).metadata;

              if (!compMeta.isComponent) {
                return;
              } // Note: compMeta is a component and therefore template is non null.


              compMeta.template.styleUrls.forEach(function (styleUrl) {
                var normalizedUrl = _this311._host.resourceNameToFileName(styleUrl, file.fileName);

                if (!normalizedUrl) {
                  throw syntaxError("Couldn't resolve resource ".concat(styleUrl, " relative to ").concat(file.fileName));
                }

                var needsShim = (compMeta.template.encapsulation || _this311._config.defaultEncapsulation) === ViewEncapsulation.Emulated;
                genFileNames.push(_stylesModuleUrl(normalizedUrl, needsShim, fileSuffix));

                if (_this311._options.allowEmptyCodegenFiles) {
                  genFileNames.push(_stylesModuleUrl(normalizedUrl, !needsShim, fileSuffix));
                }
              });
            });
            return genFileNames;
          }
        }, {
          key: "emitBasicStub",
          value: function emitBasicStub(genFileName, originalFileName) {
            var outputCtx = this._createOutputContext(genFileName);

            if (genFileName.endsWith('.ngfactory.ts')) {
              if (!originalFileName) {
                throw new Error("Assertion error: require the original file for .ngfactory.ts stubs. File: ".concat(genFileName));
              }

              var originalFile = this._analyzeFile(originalFileName);

              this._createNgFactoryStub(outputCtx, originalFile, 1
              /* Basic */
              );
            } else if (genFileName.endsWith('.ngsummary.ts')) {
              if (this._options.enableSummariesForJit) {
                if (!originalFileName) {
                  throw new Error("Assertion error: require the original file for .ngsummary.ts stubs. File: ".concat(genFileName));
                }

                var _originalFile = this._analyzeFile(originalFileName);

                _createEmptyStub(outputCtx);

                _originalFile.ngModules.forEach(function (ngModule) {
                  // create exports that user code can reference
                  createForJitStub(outputCtx, ngModule.type.reference);
                });
              }
            } else if (genFileName.endsWith('.ngstyle.ts')) {
              _createEmptyStub(outputCtx);
            } // Note: for the stubs, we don't need a property srcFileUrl,
            // as later on in emitAllImpls we will create the proper GeneratedFiles with the
            // correct srcFileUrl.
            // This is good as e.g. for .ngstyle.ts files we can't derive
            // the url of components based on the genFileUrl.


            return this._codegenSourceModule('unknown', outputCtx);
          }
        }, {
          key: "emitTypeCheckStub",
          value: function emitTypeCheckStub(genFileName, originalFileName) {
            var originalFile = this._analyzeFile(originalFileName);

            var outputCtx = this._createOutputContext(genFileName);

            if (genFileName.endsWith('.ngfactory.ts')) {
              this._createNgFactoryStub(outputCtx, originalFile, 2
              /* TypeCheck */
              );
            }

            return outputCtx.statements.length > 0 ? this._codegenSourceModule(originalFile.fileName, outputCtx) : null;
          }
        }, {
          key: "loadFilesAsync",
          value: function loadFilesAsync(fileNames, tsFiles) {
            var _this312 = this;

            var files = fileNames.map(function (fileName) {
              return _this312._analyzeFile(fileName);
            });
            var loadingPromises = [];
            files.forEach(function (file) {
              return file.ngModules.forEach(function (ngModule) {
                return loadingPromises.push(_this312._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(ngModule.type.reference, false));
              });
            });
            var analyzedInjectables = tsFiles.map(function (tsFile) {
              return _this312._analyzeFileForInjectables(tsFile);
            });
            return Promise.all(loadingPromises).then(function (_) {
              return {
                analyzedModules: mergeAndValidateNgFiles(files),
                analyzedInjectables: analyzedInjectables
              };
            });
          }
        }, {
          key: "loadFilesSync",
          value: function loadFilesSync(fileNames, tsFiles) {
            var _this313 = this;

            var files = fileNames.map(function (fileName) {
              return _this313._analyzeFile(fileName);
            });
            files.forEach(function (file) {
              return file.ngModules.forEach(function (ngModule) {
                return _this313._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(ngModule.type.reference, true);
              });
            });
            var analyzedInjectables = tsFiles.map(function (tsFile) {
              return _this313._analyzeFileForInjectables(tsFile);
            });
            return {
              analyzedModules: mergeAndValidateNgFiles(files),
              analyzedInjectables: analyzedInjectables
            };
          }
        }, {
          key: "_createNgFactoryStub",
          value: function _createNgFactoryStub(outputCtx, file, emitFlags) {
            var _this314 = this;

            var componentId = 0;
            file.ngModules.forEach(function (ngModuleMeta, ngModuleIndex) {
              // Note: the code below needs to executed for StubEmitFlags.Basic and StubEmitFlags.TypeCheck,
              // so we don't change the .ngfactory file too much when adding the type-check block.
              // create exports that user code can reference
              _this314._ngModuleCompiler.createStub(outputCtx, ngModuleMeta.type.reference); // add references to the symbols from the metadata.
              // These can be used by the type check block for components,
              // and they also cause TypeScript to include these files into the program too,
              // which will make them part of the analyzedFiles.


              var externalReferences = [].concat(_toConsumableArray(ngModuleMeta.transitiveModule.directives.map(function (d) {
                return d.reference;
              })), _toConsumableArray(ngModuleMeta.transitiveModule.pipes.map(function (d) {
                return d.reference;
              })), _toConsumableArray(ngModuleMeta.importedModules.map(function (m) {
                return m.type.reference;
              })), _toConsumableArray(ngModuleMeta.exportedModules.map(function (m) {
                return m.type.reference;
              })), _toConsumableArray(_this314._externalIdentifierReferences([Identifiers.TemplateRef, Identifiers.ElementRef])));
              var externalReferenceVars = new Map();
              externalReferences.forEach(function (ref, typeIndex) {
                externalReferenceVars.set(ref, "_decl".concat(ngModuleIndex, "_").concat(typeIndex));
              });
              externalReferenceVars.forEach(function (varName, reference) {
                outputCtx.statements.push(variable(varName).set(NULL_EXPR.cast(DYNAMIC_TYPE)).toDeclStmt(expressionType(outputCtx.importExpr(reference,
                /* typeParams */
                null,
                /* useSummaries */
                false))));
              });

              if (emitFlags & 2
              /* TypeCheck */
              ) {
                // add the type-check block for all components of the NgModule
                ngModuleMeta.declaredDirectives.forEach(function (dirId) {
                  var compMeta = _this314._metadataResolver.getDirectiveMetadata(dirId.reference);

                  if (!compMeta.isComponent) {
                    return;
                  }

                  componentId++;

                  _this314._createTypeCheckBlock(outputCtx, "".concat(compMeta.type.reference.name, "_Host_").concat(componentId), ngModuleMeta, _this314._metadataResolver.getHostComponentMetadata(compMeta), [compMeta.type], externalReferenceVars);

                  _this314._createTypeCheckBlock(outputCtx, "".concat(compMeta.type.reference.name, "_").concat(componentId), ngModuleMeta, compMeta, ngModuleMeta.transitiveModule.directives, externalReferenceVars);
                });
              }
            });

            if (outputCtx.statements.length === 0) {
              _createEmptyStub(outputCtx);
            }
          }
        }, {
          key: "_externalIdentifierReferences",
          value: function _externalIdentifierReferences(references) {
            var result = [];

            var _iterator35 = _createForOfIteratorHelper(references),
                _step35;

            try {
              for (_iterator35.s(); !(_step35 = _iterator35.n()).done;) {
                var reference = _step35.value;
                var token = createTokenForExternalReference(this.reflector, reference);

                if (token.identifier) {
                  result.push(token.identifier.reference);
                }
              }
            } catch (err) {
              _iterator35.e(err);
            } finally {
              _iterator35.f();
            }

            return result;
          }
        }, {
          key: "_createTypeCheckBlock",
          value: function _createTypeCheckBlock(ctx, componentId, moduleMeta, compMeta, directives, externalReferenceVars) {
            var _ctx$statements;

            var _this$_parseTemplate = this._parseTemplate(compMeta, moduleMeta, directives),
                parsedTemplate = _this$_parseTemplate.template,
                usedPipes = _this$_parseTemplate.pipes;

            (_ctx$statements = ctx.statements).push.apply(_ctx$statements, _toConsumableArray(this._typeCheckCompiler.compileComponent(componentId, compMeta, parsedTemplate, usedPipes, externalReferenceVars, ctx)));
          }
        }, {
          key: "emitMessageBundle",
          value: function emitMessageBundle(analyzeResult, locale) {
            var _this315 = this;

            var errors = [];
            var htmlParser = new HtmlParser(); // TODO(vicb): implicit tags & attributes

            var messageBundle = new MessageBundle(htmlParser, [], {}, locale);
            analyzeResult.files.forEach(function (file) {
              var compMetas = [];
              file.directives.forEach(function (directiveType) {
                var dirMeta = _this315._metadataResolver.getDirectiveMetadata(directiveType);

                if (dirMeta && dirMeta.isComponent) {
                  compMetas.push(dirMeta);
                }
              });
              compMetas.forEach(function (compMeta) {
                var html = compMeta.template.template; // Template URL points to either an HTML or TS file depending on whether
                // the file is used with `templateUrl:` or `template:`, respectively.

                var templateUrl = compMeta.template.templateUrl;
                var interpolationConfig = InterpolationConfig.fromArray(compMeta.template.interpolation);
                errors.push.apply(errors, _toConsumableArray(messageBundle.updateFromTemplate(html, templateUrl, interpolationConfig)));
              });
            });

            if (errors.length) {
              throw new Error(errors.map(function (e) {
                return e.toString();
              }).join('\n'));
            }

            return messageBundle;
          }
        }, {
          key: "emitAllPartialModules",
          value: function emitAllPartialModules(_ref44, r3Files) {
            var _this316 = this;

            var ngModuleByPipeOrDirective = _ref44.ngModuleByPipeOrDirective,
                files = _ref44.files;
            var contextMap = new Map();

            var getContext = function getContext(fileName) {
              if (!contextMap.has(fileName)) {
                contextMap.set(fileName, _this316._createOutputContext(fileName));
              }

              return contextMap.get(fileName);
            };

            files.forEach(function (file) {
              return _this316._compilePartialModule(file.fileName, ngModuleByPipeOrDirective, file.directives, file.pipes, file.ngModules, file.injectables, getContext(file.fileName));
            });
            r3Files.forEach(function (file) {
              return _this316._compileShallowModules(file.fileName, file.shallowModules, getContext(file.fileName));
            });
            return Array.from(contextMap.values()).map(function (context) {
              return {
                fileName: context.genFilePath,
                statements: [].concat(_toConsumableArray(context.constantPool.statements), _toConsumableArray(context.statements))
              };
            });
          }
        }, {
          key: "_compileShallowModules",
          value: function _compileShallowModules(fileName, shallowModules, context) {
            var _this317 = this;

            shallowModules.forEach(function (module) {
              return compileNgModuleFromRender2(context, module, _this317._injectableCompiler);
            });
          }
        }, {
          key: "_compilePartialModule",
          value: function _compilePartialModule(fileName, ngModuleByPipeOrDirective, directives, pipes, ngModules, injectables, context) {
            var _this318 = this;

            var errors = [];
            var schemaRegistry = new DomElementSchemaRegistry();
            var hostBindingParser = new BindingParser(this._templateParser.expressionParser, DEFAULT_INTERPOLATION_CONFIG, schemaRegistry, [], errors); // Process all components and directives

            directives.forEach(function (directiveType) {
              var directiveMetadata = _this318._metadataResolver.getDirectiveMetadata(directiveType);

              if (directiveMetadata.isComponent) {
                var _module3 = ngModuleByPipeOrDirective.get(directiveType);

                _module3 || error("Cannot determine the module for component '".concat(identifierName(directiveMetadata.type), "'"));
                var htmlAst = directiveMetadata.template.htmlAst;
                var preserveWhitespaces = directiveMetadata.template.preserveWhitespaces;

                if (!preserveWhitespaces) {
                  htmlAst = removeWhitespaces(htmlAst);
                }

                var render3Ast = htmlAstToRender3Ast(htmlAst.rootNodes, hostBindingParser); // Map of StaticType by directive selectors

                var directiveTypeBySel = new Map();

                var _directives = _module3.transitiveModule.directives.map(function (dir) {
                  return _this318._metadataResolver.getDirectiveSummary(dir.reference);
                });

                _directives.forEach(function (directive) {
                  if (directive.selector) {
                    directiveTypeBySel.set(directive.selector, directive.type.reference);
                  }
                }); // Map of StaticType by pipe names


                var pipeTypeByName = new Map();

                var _pipes = _module3.transitiveModule.pipes.map(function (pipe) {
                  return _this318._metadataResolver.getPipeSummary(pipe.reference);
                });

                _pipes.forEach(function (pipe) {
                  pipeTypeByName.set(pipe.name, pipe.type.reference);
                });

                compileComponentFromRender2(context, directiveMetadata, render3Ast, _this318.reflector, hostBindingParser, directiveTypeBySel, pipeTypeByName);
              } else {
                compileDirectiveFromRender2(context, directiveMetadata, _this318.reflector, hostBindingParser);
              }
            });
            pipes.forEach(function (pipeType) {
              var pipeMetadata = _this318._metadataResolver.getPipeMetadata(pipeType);

              if (pipeMetadata) {
                compilePipeFromRender2(context, pipeMetadata, _this318.reflector);
              }
            });
            injectables.forEach(function (injectable) {
              return _this318._injectableCompiler.compile(injectable, context);
            });
          }
        }, {
          key: "emitAllPartialModules2",
          value: function emitAllPartialModules2(files) {
            var _this319 = this;

            // Using reduce like this is a select many pattern (where map is a select pattern)
            return files.reduce(function (r, file) {
              r.push.apply(r, _toConsumableArray(_this319._emitPartialModule2(file.fileName, file.injectables)));
              return r;
            }, []);
          }
        }, {
          key: "_emitPartialModule2",
          value: function _emitPartialModule2(fileName, injectables) {
            var _this320 = this;

            var context = this._createOutputContext(fileName);

            injectables.forEach(function (injectable) {
              return _this320._injectableCompiler.compile(injectable, context);
            });

            if (context.statements && context.statements.length > 0) {
              return [{
                fileName: fileName,
                statements: [].concat(_toConsumableArray(context.constantPool.statements), _toConsumableArray(context.statements))
              }];
            }

            return [];
          }
        }, {
          key: "emitAllImpls",
          value: function emitAllImpls(analyzeResult) {
            var _this321 = this;

            var ngModuleByPipeOrDirective = analyzeResult.ngModuleByPipeOrDirective,
                files = analyzeResult.files;
            var sourceModules = files.map(function (file) {
              return _this321._compileImplFile(file.fileName, ngModuleByPipeOrDirective, file.directives, file.pipes, file.ngModules, file.injectables);
            });
            return flatten(sourceModules);
          }
        }, {
          key: "_compileImplFile",
          value: function _compileImplFile(srcFileUrl, ngModuleByPipeOrDirective, directives, pipes, ngModules, injectables) {
            var _this322 = this;

            var fileSuffix = normalizeGenFileSuffix(splitTypescriptSuffix(srcFileUrl, true)[1]);
            var generatedFiles = [];

            var outputCtx = this._createOutputContext(ngfactoryFilePath(srcFileUrl, true));

            generatedFiles.push.apply(generatedFiles, _toConsumableArray(this._createSummary(srcFileUrl, directives, pipes, ngModules, injectables, outputCtx))); // compile all ng modules

            ngModules.forEach(function (ngModuleMeta) {
              return _this322._compileModule(outputCtx, ngModuleMeta);
            }); // compile components

            directives.forEach(function (dirType) {
              var compMeta = _this322._metadataResolver.getDirectiveMetadata(dirType);

              if (!compMeta.isComponent) {
                return;
              }

              var ngModule = ngModuleByPipeOrDirective.get(dirType);

              if (!ngModule) {
                throw new Error("Internal Error: cannot determine the module for component ".concat(identifierName(compMeta.type), "!"));
              } // compile styles


              var componentStylesheet = _this322._styleCompiler.compileComponent(outputCtx, compMeta); // Note: compMeta is a component and therefore template is non null.


              compMeta.template.externalStylesheets.forEach(function (stylesheetMeta) {
                // Note: fill non shim and shim style files as they might
                // be shared by component with and without ViewEncapsulation.
                var shim = _this322._styleCompiler.needsStyleShim(compMeta);

                generatedFiles.push(_this322._codegenStyles(srcFileUrl, compMeta, stylesheetMeta, shim, fileSuffix));

                if (_this322._options.allowEmptyCodegenFiles) {
                  generatedFiles.push(_this322._codegenStyles(srcFileUrl, compMeta, stylesheetMeta, !shim, fileSuffix));
                }
              }); // compile components

              var compViewVars = _this322._compileComponent(outputCtx, compMeta, ngModule, ngModule.transitiveModule.directives, componentStylesheet, fileSuffix);

              _this322._compileComponentFactory(outputCtx, compMeta, ngModule, fileSuffix);
            });

            if (outputCtx.statements.length > 0 || this._options.allowEmptyCodegenFiles) {
              var srcModule = this._codegenSourceModule(srcFileUrl, outputCtx);

              generatedFiles.unshift(srcModule);
            }

            return generatedFiles;
          }
        }, {
          key: "_createSummary",
          value: function _createSummary(srcFileName, directives, pipes, ngModules, injectables, ngFactoryCtx) {
            var _this323 = this;

            var symbolSummaries = this._symbolResolver.getSymbolsOf(srcFileName).map(function (symbol) {
              return _this323._symbolResolver.resolveSymbol(symbol);
            });

            var typeData = [].concat(_toConsumableArray(ngModules.map(function (meta) {
              return {
                summary: _this323._metadataResolver.getNgModuleSummary(meta.type.reference),
                metadata: _this323._metadataResolver.getNgModuleMetadata(meta.type.reference)
              };
            })), _toConsumableArray(directives.map(function (ref) {
              return {
                summary: _this323._metadataResolver.getDirectiveSummary(ref),
                metadata: _this323._metadataResolver.getDirectiveMetadata(ref)
              };
            })), _toConsumableArray(pipes.map(function (ref) {
              return {
                summary: _this323._metadataResolver.getPipeSummary(ref),
                metadata: _this323._metadataResolver.getPipeMetadata(ref)
              };
            })), _toConsumableArray(injectables.map(function (ref) {
              return {
                summary: _this323._metadataResolver.getInjectableSummary(ref.symbol),
                metadata: _this323._metadataResolver.getInjectableSummary(ref.symbol).type
              };
            })));
            var forJitOutputCtx = this._options.enableSummariesForJit ? this._createOutputContext(summaryForJitFileName(srcFileName, true)) : null;

            var _serializeSummaries = serializeSummaries(srcFileName, forJitOutputCtx, this._summaryResolver, this._symbolResolver, symbolSummaries, typeData, this._options.createExternalSymbolFactoryReexports),
                json = _serializeSummaries.json,
                exportAs = _serializeSummaries.exportAs;

            exportAs.forEach(function (entry) {
              ngFactoryCtx.statements.push(variable(entry.exportAs).set(ngFactoryCtx.importExpr(entry.symbol)).toDeclStmt(null, [StmtModifier.Exported]));
            });
            var summaryJson = new GeneratedFile(srcFileName, summaryFileName(srcFileName), json);
            var result = [summaryJson];

            if (forJitOutputCtx) {
              result.push(this._codegenSourceModule(srcFileName, forJitOutputCtx));
            }

            return result;
          }
        }, {
          key: "_compileModule",
          value: function _compileModule(outputCtx, ngModule) {
            var providers = [];

            if (this._options.locale) {
              var normalizedLocale = this._options.locale.replace(/_/g, '-');

              providers.push({
                token: createTokenForExternalReference(this.reflector, Identifiers.LOCALE_ID),
                useValue: normalizedLocale
              });
            }

            if (this._options.i18nFormat) {
              providers.push({
                token: createTokenForExternalReference(this.reflector, Identifiers.TRANSLATIONS_FORMAT),
                useValue: this._options.i18nFormat
              });
            }

            this._ngModuleCompiler.compile(outputCtx, ngModule, providers);
          }
        }, {
          key: "_compileComponentFactory",
          value: function _compileComponentFactory(outputCtx, compMeta, ngModule, fileSuffix) {
            var hostMeta = this._metadataResolver.getHostComponentMetadata(compMeta);

            var hostViewFactoryVar = this._compileComponent(outputCtx, hostMeta, ngModule, [compMeta.type], null, fileSuffix).viewClassVar;

            var compFactoryVar = componentFactoryName(compMeta.type.reference);
            var inputsExprs = [];

            for (var propName in compMeta.inputs) {
              var templateName = compMeta.inputs[propName]; // Don't quote so that the key gets minified...

              inputsExprs.push(new LiteralMapEntry(propName, literal(templateName), false));
            }

            var outputsExprs = [];

            for (var _propName in compMeta.outputs) {
              var _templateName = compMeta.outputs[_propName]; // Don't quote so that the key gets minified...

              outputsExprs.push(new LiteralMapEntry(_propName, literal(_templateName), false));
            }

            outputCtx.statements.push(variable(compFactoryVar).set(importExpr(Identifiers.createComponentFactory).callFn([literal(compMeta.selector), outputCtx.importExpr(compMeta.type.reference), variable(hostViewFactoryVar), new LiteralMapExpr(inputsExprs), new LiteralMapExpr(outputsExprs), literalArr(compMeta.template.ngContentSelectors.map(function (selector) {
              return literal(selector);
            }))])).toDeclStmt(importType(Identifiers.ComponentFactory, [expressionType(outputCtx.importExpr(compMeta.type.reference))], [TypeModifier.Const]), [StmtModifier.Final, StmtModifier.Exported]));
          }
        }, {
          key: "_compileComponent",
          value: function _compileComponent(outputCtx, compMeta, ngModule, directiveIdentifiers, componentStyles, fileSuffix) {
            var _this$_parseTemplate2 = this._parseTemplate(compMeta, ngModule, directiveIdentifiers),
                parsedTemplate = _this$_parseTemplate2.template,
                usedPipes = _this$_parseTemplate2.pipes;

            var stylesExpr = componentStyles ? variable(componentStyles.stylesVar) : literalArr([]);

            var viewResult = this._viewCompiler.compileComponent(outputCtx, compMeta, parsedTemplate, stylesExpr, usedPipes);

            if (componentStyles) {
              _resolveStyleStatements(this._symbolResolver, componentStyles, this._styleCompiler.needsStyleShim(compMeta), fileSuffix);
            }

            return viewResult;
          }
        }, {
          key: "_parseTemplate",
          value: function _parseTemplate(compMeta, ngModule, directiveIdentifiers) {
            var _this324 = this;

            if (this._templateAstCache.has(compMeta.type.reference)) {
              return this._templateAstCache.get(compMeta.type.reference);
            }

            var preserveWhitespaces = compMeta.template.preserveWhitespaces;
            var directives = directiveIdentifiers.map(function (dir) {
              return _this324._metadataResolver.getDirectiveSummary(dir.reference);
            });
            var pipes = ngModule.transitiveModule.pipes.map(function (pipe) {
              return _this324._metadataResolver.getPipeSummary(pipe.reference);
            });

            var result = this._templateParser.parse(compMeta, compMeta.template.htmlAst, directives, pipes, ngModule.schemas, templateSourceUrl(ngModule.type, compMeta, compMeta.template), preserveWhitespaces);

            this._templateAstCache.set(compMeta.type.reference, result);

            return result;
          }
        }, {
          key: "_createOutputContext",
          value: function _createOutputContext(genFilePath) {
            var _this325 = this;

            var importExpr$1 = function importExpr$1(symbol) {
              var typeParams = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
              var useSummaries = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;

              if (!(symbol instanceof StaticSymbol)) {
                throw new Error("Internal error: unknown identifier ".concat(JSON.stringify(symbol)));
              }

              var arity = _this325._symbolResolver.getTypeArity(symbol) || 0;

              var _ref45 = _this325._symbolResolver.getImportAs(symbol, useSummaries) || symbol,
                  filePath = _ref45.filePath,
                  name = _ref45.name,
                  members = _ref45.members;

              var importModule = _this325._fileNameToModuleName(filePath, genFilePath); // It should be good enough to compare filePath to genFilePath and if they are equal
              // there is a self reference. However, ngfactory files generate to .ts but their
              // symbols have .d.ts so a simple compare is insufficient. They should be canonical
              // and is tracked by #17705.


              var selfReference = _this325._fileNameToModuleName(genFilePath, genFilePath);

              var moduleName = importModule === selfReference ? null : importModule; // If we are in a type expression that refers to a generic type then supply
              // the required type parameters. If there were not enough type parameters
              // supplied, supply any as the type. Outside a type expression the reference
              // should not supply type parameters and be treated as a simple value reference
              // to the constructor function itself.

              var suppliedTypeParams = typeParams || [];
              var missingTypeParamsCount = arity - suppliedTypeParams.length;
              var allTypeParams = suppliedTypeParams.concat(newArray(missingTypeParamsCount, DYNAMIC_TYPE));
              return members.reduce(function (expr, memberName) {
                return expr.prop(memberName);
              }, importExpr(new ExternalReference(moduleName, name, null), allTypeParams));
            };

            return {
              statements: [],
              genFilePath: genFilePath,
              importExpr: importExpr$1,
              constantPool: new ConstantPool()
            };
          }
        }, {
          key: "_fileNameToModuleName",
          value: function _fileNameToModuleName(importedFilePath, containingFilePath) {
            return this._summaryResolver.getKnownModuleName(importedFilePath) || this._symbolResolver.getKnownModuleName(importedFilePath) || this._host.fileNameToModuleName(importedFilePath, containingFilePath);
          }
        }, {
          key: "_codegenStyles",
          value: function _codegenStyles(srcFileUrl, compMeta, stylesheetMetadata, isShimmed, fileSuffix) {
            var outputCtx = this._createOutputContext(_stylesModuleUrl(stylesheetMetadata.moduleUrl, isShimmed, fileSuffix));

            var compiledStylesheet = this._styleCompiler.compileStyles(outputCtx, compMeta, stylesheetMetadata, isShimmed);

            _resolveStyleStatements(this._symbolResolver, compiledStylesheet, isShimmed, fileSuffix);

            return this._codegenSourceModule(srcFileUrl, outputCtx);
          }
        }, {
          key: "_codegenSourceModule",
          value: function _codegenSourceModule(srcFileUrl, ctx) {
            return new GeneratedFile(srcFileUrl, ctx.genFilePath, ctx.statements);
          }
        }, {
          key: "listLazyRoutes",
          value: function listLazyRoutes(entryRoute, analyzedModules) {
            var self = this;

            if (entryRoute) {
              var symbol = parseLazyRoute(entryRoute, this.reflector).referencedModule;
              return visitLazyRoute(symbol);
            } else if (analyzedModules) {
              var allLazyRoutes = [];

              var _iterator36 = _createForOfIteratorHelper(analyzedModules.ngModules),
                  _step36;

              try {
                for (_iterator36.s(); !(_step36 = _iterator36.n()).done;) {
                  var ngModule = _step36.value;

                  var lazyRoutes = _listLazyRoutes(ngModule, this.reflector);

                  var _iterator37 = _createForOfIteratorHelper(lazyRoutes),
                      _step37;

                  try {
                    for (_iterator37.s(); !(_step37 = _iterator37.n()).done;) {
                      var lazyRoute = _step37.value;
                      allLazyRoutes.push(lazyRoute);
                    }
                  } catch (err) {
                    _iterator37.e(err);
                  } finally {
                    _iterator37.f();
                  }
                }
              } catch (err) {
                _iterator36.e(err);
              } finally {
                _iterator36.f();
              }

              return allLazyRoutes;
            } else {
              throw new Error("Either route or analyzedModules has to be specified!");
            }

            function visitLazyRoute(symbol) {
              var seenRoutes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new Set();
              var allLazyRoutes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];

              // Support pointing to default exports, but stop recursing there,
              // as the StaticReflector does not yet support default exports.
              if (seenRoutes.has(symbol) || !symbol.name) {
                return allLazyRoutes;
              }

              seenRoutes.add(symbol);

              var lazyRoutes = _listLazyRoutes(self._metadataResolver.getNgModuleMetadata(symbol, true), self.reflector);

              var _iterator38 = _createForOfIteratorHelper(lazyRoutes),
                  _step38;

              try {
                for (_iterator38.s(); !(_step38 = _iterator38.n()).done;) {
                  var _lazyRoute = _step38.value;
                  allLazyRoutes.push(_lazyRoute);
                  visitLazyRoute(_lazyRoute.referencedModule, seenRoutes, allLazyRoutes);
                }
              } catch (err) {
                _iterator38.e(err);
              } finally {
                _iterator38.f();
              }

              return allLazyRoutes;
            }
          }
        }]);

        return AotCompiler;
      }();

      function _createEmptyStub(outputCtx) {
        // Note: We need to produce at least one import statement so that
        // TypeScript knows that the file is an es6 module. Otherwise our generated
        // exports / imports won't be emitted properly by TypeScript.
        outputCtx.statements.push(importExpr(Identifiers.ComponentFactory).toStmt());
      }

      function _resolveStyleStatements(symbolResolver, compileResult, needsShim, fileSuffix) {
        compileResult.dependencies.forEach(function (dep) {
          dep.setValue(symbolResolver.getStaticSymbol(_stylesModuleUrl(dep.moduleUrl, needsShim, fileSuffix), dep.name));
        });
      }

      function _stylesModuleUrl(stylesheetUrl, shim, suffix) {
        return "".concat(stylesheetUrl).concat(shim ? '.shim' : '', ".ngstyle").concat(suffix);
      }

      function analyzeNgModules(fileNames, host, staticSymbolResolver, metadataResolver) {
        var files = _analyzeFilesIncludingNonProgramFiles(fileNames, host, staticSymbolResolver, metadataResolver);

        return mergeAnalyzedFiles(files);
      }

      function analyzeAndValidateNgModules(fileNames, host, staticSymbolResolver, metadataResolver) {
        return validateAnalyzedModules(analyzeNgModules(fileNames, host, staticSymbolResolver, metadataResolver));
      }

      function validateAnalyzedModules(analyzedModules) {
        if (analyzedModules.symbolsMissingModule && analyzedModules.symbolsMissingModule.length) {
          var messages = analyzedModules.symbolsMissingModule.map(function (s) {
            return "Cannot determine the module for class ".concat(s.name, " in ").concat(s.filePath, "! Add ").concat(s.name, " to the NgModule to fix it.");
          });
          throw syntaxError(messages.join('\n'));
        }

        return analyzedModules;
      } // Analyzes all of the program files,
      // including files that are not part of the program
      // but are referenced by an NgModule.


      function _analyzeFilesIncludingNonProgramFiles(fileNames, host, staticSymbolResolver, metadataResolver) {
        var seenFiles = new Set();
        var files = [];

        var visitFile = function visitFile(fileName) {
          if (seenFiles.has(fileName) || !host.isSourceFile(fileName)) {
            return false;
          }

          seenFiles.add(fileName);
          var analyzedFile = analyzeFile(host, staticSymbolResolver, metadataResolver, fileName);
          files.push(analyzedFile);
          analyzedFile.ngModules.forEach(function (ngModule) {
            ngModule.transitiveModule.modules.forEach(function (modMeta) {
              return visitFile(modMeta.reference.filePath);
            });
          });
        };

        fileNames.forEach(function (fileName) {
          return visitFile(fileName);
        });
        return files;
      }

      function analyzeFile(host, staticSymbolResolver, metadataResolver, fileName) {
        var abstractDirectives = [];
        var directives = [];
        var pipes = [];
        var injectables = [];
        var ngModules = [];
        var hasDecorators = staticSymbolResolver.hasDecorators(fileName);
        var exportsNonSourceFiles = false;
        var isDeclarationFile = fileName.endsWith('.d.ts'); // Don't analyze .d.ts files that have no decorators as a shortcut
        // to speed up the analysis. This prevents us from
        // resolving the references in these files.
        // Note: exportsNonSourceFiles is only needed when compiling with summaries,
        // which is not the case when .d.ts files are treated as input files.

        if (!isDeclarationFile || hasDecorators) {
          staticSymbolResolver.getSymbolsOf(fileName).forEach(function (symbol) {
            var resolvedSymbol = staticSymbolResolver.resolveSymbol(symbol);
            var symbolMeta = resolvedSymbol.metadata;

            if (!symbolMeta || symbolMeta.__symbolic === 'error') {
              return;
            }

            var isNgSymbol = false;

            if (symbolMeta.__symbolic === 'class') {
              if (metadataResolver.isDirective(symbol)) {
                isNgSymbol = true; // This directive either has a selector or doesn't. Selector-less directives get tracked
                // in abstractDirectives, not directives. The compiler doesn't deal with selector-less
                // directives at all, really, other than to persist their metadata. This is done so that
                // apps will have an easier time migrating to Ivy, which requires the selector-less
                // annotations to be applied.

                if (!metadataResolver.isAbstractDirective(symbol)) {
                  // The directive is an ordinary directive.
                  directives.push(symbol);
                } else {
                  // The directive has no selector and is an "abstract" directive, so track it
                  // accordingly.
                  abstractDirectives.push(symbol);
                }
              } else if (metadataResolver.isPipe(symbol)) {
                isNgSymbol = true;
                pipes.push(symbol);
              } else if (metadataResolver.isNgModule(symbol)) {
                var ngModule = metadataResolver.getNgModuleMetadata(symbol, false);

                if (ngModule) {
                  isNgSymbol = true;
                  ngModules.push(ngModule);
                }
              } else if (metadataResolver.isInjectable(symbol)) {
                isNgSymbol = true;
                var injectable = metadataResolver.getInjectableMetadata(symbol, null, false);

                if (injectable) {
                  injectables.push(injectable);
                }
              }
            }

            if (!isNgSymbol) {
              exportsNonSourceFiles = exportsNonSourceFiles || isValueExportingNonSourceFile(host, symbolMeta);
            }
          });
        }

        return {
          fileName: fileName,
          directives: directives,
          abstractDirectives: abstractDirectives,
          pipes: pipes,
          ngModules: ngModules,
          injectables: injectables,
          exportsNonSourceFiles: exportsNonSourceFiles
        };
      }

      function analyzeFileForInjectables(host, staticSymbolResolver, metadataResolver, fileName) {
        var injectables = [];
        var shallowModules = [];

        if (staticSymbolResolver.hasDecorators(fileName)) {
          staticSymbolResolver.getSymbolsOf(fileName).forEach(function (symbol) {
            var resolvedSymbol = staticSymbolResolver.resolveSymbol(symbol);
            var symbolMeta = resolvedSymbol.metadata;

            if (!symbolMeta || symbolMeta.__symbolic === 'error') {
              return;
            }

            if (symbolMeta.__symbolic === 'class') {
              if (metadataResolver.isInjectable(symbol)) {
                var injectable = metadataResolver.getInjectableMetadata(symbol, null, false);

                if (injectable) {
                  injectables.push(injectable);
                }
              } else if (metadataResolver.isNgModule(symbol)) {
                var _module4 = metadataResolver.getShallowModuleMetadata(symbol);

                if (_module4) {
                  shallowModules.push(_module4);
                }
              }
            }
          });
        }

        return {
          fileName: fileName,
          injectables: injectables,
          shallowModules: shallowModules
        };
      }

      function isValueExportingNonSourceFile(host, metadata) {
        var exportsNonSourceFiles = false;

        var Visitor = /*#__PURE__*/function () {
          function Visitor() {
            _classCallCheck2(this, Visitor);
          }

          _createClass2(Visitor, [{
            key: "visitArray",
            value: function visitArray(arr, context) {
              var _this326 = this;

              arr.forEach(function (v) {
                return visitValue(v, _this326, context);
              });
            }
          }, {
            key: "visitStringMap",
            value: function visitStringMap(map, context) {
              var _this327 = this;

              Object.keys(map).forEach(function (key) {
                return visitValue(map[key], _this327, context);
              });
            }
          }, {
            key: "visitPrimitive",
            value: function visitPrimitive(value, context) {}
          }, {
            key: "visitOther",
            value: function visitOther(value, context) {
              if (value instanceof StaticSymbol && !host.isSourceFile(value.filePath)) {
                exportsNonSourceFiles = true;
              }
            }
          }]);

          return Visitor;
        }();

        visitValue(metadata, new Visitor(), null);
        return exportsNonSourceFiles;
      }

      function mergeAnalyzedFiles(analyzedFiles) {
        var allNgModules = [];
        var ngModuleByPipeOrDirective = new Map();
        var allPipesAndDirectives = new Set();
        analyzedFiles.forEach(function (af) {
          af.ngModules.forEach(function (ngModule) {
            allNgModules.push(ngModule);
            ngModule.declaredDirectives.forEach(function (d) {
              return ngModuleByPipeOrDirective.set(d.reference, ngModule);
            });
            ngModule.declaredPipes.forEach(function (p) {
              return ngModuleByPipeOrDirective.set(p.reference, ngModule);
            });
          });
          af.directives.forEach(function (d) {
            return allPipesAndDirectives.add(d);
          });
          af.pipes.forEach(function (p) {
            return allPipesAndDirectives.add(p);
          });
        });
        var symbolsMissingModule = [];
        allPipesAndDirectives.forEach(function (ref) {
          if (!ngModuleByPipeOrDirective.has(ref)) {
            symbolsMissingModule.push(ref);
          }
        });
        return {
          ngModules: allNgModules,
          ngModuleByPipeOrDirective: ngModuleByPipeOrDirective,
          symbolsMissingModule: symbolsMissingModule,
          files: analyzedFiles
        };
      }

      function mergeAndValidateNgFiles(files) {
        return validateAnalyzedModules(mergeAnalyzedFiles(files));
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var FORMATTED_MESSAGE = 'ngFormattedMessage';

      function indentStr(level) {
        if (level <= 0) return '';
        if (level < 6) return ['', ' ', '  ', '   ', '    ', '     '][level];
        var half = indentStr(Math.floor(level / 2));
        return half + half + (level % 2 === 1 ? ' ' : '');
      }

      function formatChain(chain) {
        var indent = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
        if (!chain) return '';
        var position = chain.position ? "".concat(chain.position.fileName, "(").concat(chain.position.line + 1, ",").concat(chain.position.column + 1, ")") : '';
        var prefix = position && indent === 0 ? "".concat(position, ": ") : '';
        var postfix = position && indent !== 0 ? " at ".concat(position) : '';
        var message = "".concat(prefix).concat(chain.message).concat(postfix);

        if (chain.next) {
          var _iterator39 = _createForOfIteratorHelper(chain.next),
              _step39;

          try {
            for (_iterator39.s(); !(_step39 = _iterator39.n()).done;) {
              var kid = _step39.value;
              message += '\n' + formatChain(kid, indent + 2);
            }
          } catch (err) {
            _iterator39.e(err);
          } finally {
            _iterator39.f();
          }
        }

        return "".concat(indentStr(indent)).concat(message);
      }

      function formattedError(chain) {
        var message = formatChain(chain) + '.';
        var error = syntaxError(message);
        error[FORMATTED_MESSAGE] = true;
        error.chain = chain;
        error.position = chain.position;
        return error;
      }

      function isFormattedError(error) {
        return !!error[FORMATTED_MESSAGE];
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var ANGULAR_CORE = '@angular/core';
      var ANGULAR_ROUTER = '@angular/router';
      var HIDDEN_KEY = /^\$.*\$$/;
      var IGNORE = {
        __symbolic: 'ignore'
      };
      var USE_VALUE$1 = 'useValue';
      var PROVIDE = 'provide';
      var REFERENCE_SET = new Set([USE_VALUE$1, 'useFactory', 'data', 'id', 'loadChildren']);
      var TYPEGUARD_POSTFIX = 'TypeGuard';
      var USE_IF = 'UseIf';

      function shouldIgnore(value) {
        return value && value.__symbolic == 'ignore';
      }
      /**
       * A static reflector implements enough of the Reflector API that is necessary to compile
       * templates statically.
       */


      var StaticReflector = /*#__PURE__*/function () {
        function StaticReflector(summaryResolver, symbolResolver) {
          var _this328 = this;

          var knownMetadataClasses = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
          var knownMetadataFunctions = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
          var errorRecorder = arguments.length > 4 ? arguments[4] : undefined;

          _classCallCheck2(this, StaticReflector);

          this.summaryResolver = summaryResolver;
          this.symbolResolver = symbolResolver;
          this.errorRecorder = errorRecorder;
          this.annotationCache = new Map();
          this.shallowAnnotationCache = new Map();
          this.propertyCache = new Map();
          this.parameterCache = new Map();
          this.methodCache = new Map();
          this.staticCache = new Map();
          this.conversionMap = new Map();
          this.resolvedExternalReferences = new Map();
          this.annotationForParentClassWithSummaryKind = new Map();
          this.initializeConversionMap();
          knownMetadataClasses.forEach(function (kc) {
            return _this328._registerDecoratorOrConstructor(_this328.getStaticSymbol(kc.filePath, kc.name), kc.ctor);
          });
          knownMetadataFunctions.forEach(function (kf) {
            return _this328._registerFunction(_this328.getStaticSymbol(kf.filePath, kf.name), kf.fn);
          });
          this.annotationForParentClassWithSummaryKind.set(CompileSummaryKind.Directive, [createDirective, createComponent]);
          this.annotationForParentClassWithSummaryKind.set(CompileSummaryKind.Pipe, [createPipe]);
          this.annotationForParentClassWithSummaryKind.set(CompileSummaryKind.NgModule, [createNgModule]);
          this.annotationForParentClassWithSummaryKind.set(CompileSummaryKind.Injectable, [createInjectable, createPipe, createDirective, createComponent, createNgModule]);
        }

        _createClass2(StaticReflector, [{
          key: "componentModuleUrl",
          value: function componentModuleUrl(typeOrFunc) {
            var staticSymbol = this.findSymbolDeclaration(typeOrFunc);
            return this.symbolResolver.getResourcePath(staticSymbol);
          }
          /**
           * Invalidate the specified `symbols` on program change.
           * @param symbols
           */

        }, {
          key: "invalidateSymbols",
          value: function invalidateSymbols(symbols) {
            var _iterator40 = _createForOfIteratorHelper(symbols),
                _step40;

            try {
              for (_iterator40.s(); !(_step40 = _iterator40.n()).done;) {
                var symbol = _step40.value;
                this.annotationCache["delete"](symbol);
                this.shallowAnnotationCache["delete"](symbol);
                this.propertyCache["delete"](symbol);
                this.parameterCache["delete"](symbol);
                this.methodCache["delete"](symbol);
                this.staticCache["delete"](symbol);
                this.conversionMap["delete"](symbol);
              }
            } catch (err) {
              _iterator40.e(err);
            } finally {
              _iterator40.f();
            }
          }
        }, {
          key: "resolveExternalReference",
          value: function resolveExternalReference(ref, containingFile) {
            var key = undefined;

            if (!containingFile) {
              key = "".concat(ref.moduleName, ":").concat(ref.name);

              var _declarationSymbol = this.resolvedExternalReferences.get(key);

              if (_declarationSymbol) return _declarationSymbol;
            }

            var refSymbol = this.symbolResolver.getSymbolByModule(ref.moduleName, ref.name, containingFile);
            var declarationSymbol = this.findSymbolDeclaration(refSymbol);

            if (!containingFile) {
              this.symbolResolver.recordModuleNameForFileName(refSymbol.filePath, ref.moduleName);
              this.symbolResolver.recordImportAs(declarationSymbol, refSymbol);
            }

            if (key) {
              this.resolvedExternalReferences.set(key, declarationSymbol);
            }

            return declarationSymbol;
          }
        }, {
          key: "findDeclaration",
          value: function findDeclaration(moduleUrl, name, containingFile) {
            return this.findSymbolDeclaration(this.symbolResolver.getSymbolByModule(moduleUrl, name, containingFile));
          }
        }, {
          key: "tryFindDeclaration",
          value: function tryFindDeclaration(moduleUrl, name, containingFile) {
            var _this329 = this;

            return this.symbolResolver.ignoreErrorsFor(function () {
              return _this329.findDeclaration(moduleUrl, name, containingFile);
            });
          }
        }, {
          key: "findSymbolDeclaration",
          value: function findSymbolDeclaration(symbol) {
            var resolvedSymbol = this.symbolResolver.resolveSymbol(symbol);

            if (resolvedSymbol) {
              var resolvedMetadata = resolvedSymbol.metadata;

              if (resolvedMetadata && resolvedMetadata.__symbolic === 'resolved') {
                resolvedMetadata = resolvedMetadata.symbol;
              }

              if (resolvedMetadata instanceof StaticSymbol) {
                return this.findSymbolDeclaration(resolvedSymbol.metadata);
              }
            }

            return symbol;
          }
        }, {
          key: "tryAnnotations",
          value: function tryAnnotations(type) {
            var originalRecorder = this.errorRecorder;

            this.errorRecorder = function (error, fileName) {};

            try {
              return this.annotations(type);
            } finally {
              this.errorRecorder = originalRecorder;
            }
          }
        }, {
          key: "annotations",
          value: function annotations(type) {
            var _this330 = this;

            return this._annotations(type, function (type, decorators) {
              return _this330.simplify(type, decorators);
            }, this.annotationCache);
          }
        }, {
          key: "shallowAnnotations",
          value: function shallowAnnotations(type) {
            var _this331 = this;

            return this._annotations(type, function (type, decorators) {
              return _this331.simplify(type, decorators, true);
            }, this.shallowAnnotationCache);
          }
        }, {
          key: "_annotations",
          value: function _annotations(type, simplify, annotationCache) {
            var annotations = annotationCache.get(type);

            if (!annotations) {
              annotations = [];
              var classMetadata = this.getTypeMetadata(type);
              var parentType = this.findParentType(type, classMetadata);

              if (parentType) {
                var _annotations2;

                var parentAnnotations = this.annotations(parentType);

                (_annotations2 = annotations).push.apply(_annotations2, _toConsumableArray(parentAnnotations));
              }

              var ownAnnotations = [];

              if (classMetadata['decorators']) {
                ownAnnotations = simplify(type, classMetadata['decorators']);

                if (ownAnnotations) {
                  var _annotations3;

                  (_annotations3 = annotations).push.apply(_annotations3, _toConsumableArray(ownAnnotations));
                }
              }

              if (parentType && !this.summaryResolver.isLibraryFile(type.filePath) && this.summaryResolver.isLibraryFile(parentType.filePath)) {
                var summary = this.summaryResolver.resolveSummary(parentType);

                if (summary && summary.type) {
                  var requiredAnnotationTypes = this.annotationForParentClassWithSummaryKind.get(summary.type.summaryKind);
                  var typeHasRequiredAnnotation = requiredAnnotationTypes.some(function (requiredType) {
                    return ownAnnotations.some(function (ann) {
                      return requiredType.isTypeOf(ann);
                    });
                  });

                  if (!typeHasRequiredAnnotation) {
                    this.reportError(formatMetadataError(metadataError("Class ".concat(type.name, " in ").concat(type.filePath, " extends from a ").concat(CompileSummaryKind[summary.type.summaryKind], " in another compilation unit without duplicating the decorator"),
                    /* summary */
                    undefined, "Please add a ".concat(requiredAnnotationTypes.map(function (type) {
                      return type.ngMetadataName;
                    }).join(' or '), " decorator to the class")), type), type);
                  }
                }
              }

              annotationCache.set(type, annotations.filter(function (ann) {
                return !!ann;
              }));
            }

            return annotations;
          }
        }, {
          key: "propMetadata",
          value: function propMetadata(type) {
            var _this332 = this;

            var propMetadata = this.propertyCache.get(type);

            if (!propMetadata) {
              var classMetadata = this.getTypeMetadata(type);
              propMetadata = {};
              var parentType = this.findParentType(type, classMetadata);

              if (parentType) {
                var parentPropMetadata = this.propMetadata(parentType);
                Object.keys(parentPropMetadata).forEach(function (parentProp) {
                  propMetadata[parentProp] = parentPropMetadata[parentProp];
                });
              }

              var members = classMetadata['members'] || {};
              Object.keys(members).forEach(function (propName) {
                var propData = members[propName];
                var prop = propData.find(function (a) {
                  return a['__symbolic'] == 'property' || a['__symbolic'] == 'method';
                });
                var decorators = []; // hasOwnProperty() is used here to make sure we do not look up methods
                // on `Object.prototype`.

                if (propMetadata === null || propMetadata === void 0 ? void 0 : propMetadata.hasOwnProperty(propName)) {
                  decorators.push.apply(decorators, _toConsumableArray(propMetadata[propName]));
                }

                propMetadata[propName] = decorators;

                if (prop && prop['decorators']) {
                  decorators.push.apply(decorators, _toConsumableArray(_this332.simplify(type, prop['decorators'])));
                }
              });
              this.propertyCache.set(type, propMetadata);
            }

            return propMetadata;
          }
        }, {
          key: "parameters",
          value: function parameters(type) {
            var _this333 = this;

            if (!(type instanceof StaticSymbol)) {
              this.reportError(new Error("parameters received ".concat(JSON.stringify(type), " which is not a StaticSymbol")), type);
              return [];
            }

            try {
              var parameters = this.parameterCache.get(type);

              if (!parameters) {
                var classMetadata = this.getTypeMetadata(type);
                var parentType = this.findParentType(type, classMetadata);
                var members = classMetadata ? classMetadata['members'] : null;
                var ctorData = members ? members['__ctor__'] : null;

                if (ctorData) {
                  var ctor = ctorData.find(function (a) {
                    return a['__symbolic'] == 'constructor';
                  });
                  var rawParameterTypes = ctor['parameters'] || [];
                  var parameterDecorators = this.simplify(type, ctor['parameterDecorators'] || []);
                  parameters = [];
                  rawParameterTypes.forEach(function (rawParamType, index) {
                    var nestedResult = [];

                    var paramType = _this333.trySimplify(type, rawParamType);

                    if (paramType) nestedResult.push(paramType);
                    var decorators = parameterDecorators ? parameterDecorators[index] : null;

                    if (decorators) {
                      nestedResult.push.apply(nestedResult, _toConsumableArray(decorators));
                    }

                    parameters.push(nestedResult);
                  });
                } else if (parentType) {
                  parameters = this.parameters(parentType);
                }

                if (!parameters) {
                  parameters = [];
                }

                this.parameterCache.set(type, parameters);
              }

              return parameters;
            } catch (e) {
              console.error("Failed on type ".concat(JSON.stringify(type), " with error ").concat(e));
              throw e;
            }
          }
        }, {
          key: "_methodNames",
          value: function _methodNames(type) {
            var methodNames = this.methodCache.get(type);

            if (!methodNames) {
              var classMetadata = this.getTypeMetadata(type);
              methodNames = {};
              var parentType = this.findParentType(type, classMetadata);

              if (parentType) {
                var parentMethodNames = this._methodNames(parentType);

                Object.keys(parentMethodNames).forEach(function (parentProp) {
                  methodNames[parentProp] = parentMethodNames[parentProp];
                });
              }

              var members = classMetadata['members'] || {};
              Object.keys(members).forEach(function (propName) {
                var propData = members[propName];
                var isMethod = propData.some(function (a) {
                  return a['__symbolic'] == 'method';
                });
                methodNames[propName] = methodNames[propName] || isMethod;
              });
              this.methodCache.set(type, methodNames);
            }

            return methodNames;
          }
        }, {
          key: "_staticMembers",
          value: function _staticMembers(type) {
            var staticMembers = this.staticCache.get(type);

            if (!staticMembers) {
              var classMetadata = this.getTypeMetadata(type);
              var staticMemberData = classMetadata['statics'] || {};
              staticMembers = Object.keys(staticMemberData);
              this.staticCache.set(type, staticMembers);
            }

            return staticMembers;
          }
        }, {
          key: "findParentType",
          value: function findParentType(type, classMetadata) {
            var parentType = this.trySimplify(type, classMetadata['extends']);

            if (parentType instanceof StaticSymbol) {
              return parentType;
            }
          }
        }, {
          key: "hasLifecycleHook",
          value: function hasLifecycleHook(type, lcProperty) {
            if (!(type instanceof StaticSymbol)) {
              this.reportError(new Error("hasLifecycleHook received ".concat(JSON.stringify(type), " which is not a StaticSymbol")), type);
            }

            try {
              return !!this._methodNames(type)[lcProperty];
            } catch (e) {
              console.error("Failed on type ".concat(JSON.stringify(type), " with error ").concat(e));
              throw e;
            }
          }
        }, {
          key: "guards",
          value: function guards(type) {
            if (!(type instanceof StaticSymbol)) {
              this.reportError(new Error("guards received ".concat(JSON.stringify(type), " which is not a StaticSymbol")), type);
              return {};
            }

            var staticMembers = this._staticMembers(type);

            var result = {};

            var _iterator41 = _createForOfIteratorHelper(staticMembers),
                _step41;

            try {
              for (_iterator41.s(); !(_step41 = _iterator41.n()).done;) {
                var name = _step41.value;

                if (name.endsWith(TYPEGUARD_POSTFIX)) {
                  var property = name.substr(0, name.length - TYPEGUARD_POSTFIX.length);
                  var value = void 0;

                  if (property.endsWith(USE_IF)) {
                    property = name.substr(0, property.length - USE_IF.length);
                    value = USE_IF;
                  } else {
                    value = this.getStaticSymbol(type.filePath, type.name, [name]);
                  }

                  result[property] = value;
                }
              }
            } catch (err) {
              _iterator41.e(err);
            } finally {
              _iterator41.f();
            }

            return result;
          }
        }, {
          key: "_registerDecoratorOrConstructor",
          value: function _registerDecoratorOrConstructor(type, ctor) {
            this.conversionMap.set(type, function (context, args) {
              return _construct2(ctor, _toConsumableArray(args));
            });
          }
        }, {
          key: "_registerFunction",
          value: function _registerFunction(type, fn) {
            this.conversionMap.set(type, function (context, args) {
              return fn.apply(undefined, args);
            });
          }
        }, {
          key: "initializeConversionMap",
          value: function initializeConversionMap() {
            this._registerDecoratorOrConstructor(this.findDeclaration(ANGULAR_CORE, 'Injectable'), createInjectable);

            this.injectionToken = this.findDeclaration(ANGULAR_CORE, 'InjectionToken');
            this.opaqueToken = this.findDeclaration(ANGULAR_CORE, 'OpaqueToken');
            this.ROUTES = this.tryFindDeclaration(ANGULAR_ROUTER, 'ROUTES');
            this.ANALYZE_FOR_ENTRY_COMPONENTS = this.findDeclaration(ANGULAR_CORE, 'ANALYZE_FOR_ENTRY_COMPONENTS');

            this._registerDecoratorOrConstructor(this.findDeclaration(ANGULAR_CORE, 'Host'), createHost);

            this._registerDecoratorOrConstructor(this.findDeclaration(ANGULAR_CORE, 'Self'), createSelf);

            this._registerDecoratorOrConstructor(this.findDeclaration(ANGULAR_CORE, 'SkipSelf'), createSkipSelf);

            this._registerDecoratorOrConstructor(this.findDeclaration(ANGULAR_CORE, 'Inject'), createInject);

            this._registerDecoratorOrConstructor(this.findDeclaration(ANGULAR_CORE, 'Optional'), createOptional);

            this._registerDecoratorOrConstructor(this.findDeclaration(ANGULAR_CORE, 'Attribute'), createAttribute);

            this._registerDecoratorOrConstructor(this.findDeclaration(ANGULAR_CORE, 'ContentChild'), createContentChild);

            this._registerDecoratorOrConstructor(this.findDeclaration(ANGULAR_CORE, 'ContentChildren'), createContentChildren);

            this._registerDecoratorOrConstructor(this.findDeclaration(ANGULAR_CORE, 'ViewChild'), createViewChild);

            this._registerDecoratorOrConstructor(this.findDeclaration(ANGULAR_CORE, 'ViewChildren'), createViewChildren);

            this._registerDecoratorOrConstructor(this.findDeclaration(ANGULAR_CORE, 'Input'), createInput);

            this._registerDecoratorOrConstructor(this.findDeclaration(ANGULAR_CORE, 'Output'), createOutput);

            this._registerDecoratorOrConstructor(this.findDeclaration(ANGULAR_CORE, 'Pipe'), createPipe);

            this._registerDecoratorOrConstructor(this.findDeclaration(ANGULAR_CORE, 'HostBinding'), createHostBinding);

            this._registerDecoratorOrConstructor(this.findDeclaration(ANGULAR_CORE, 'HostListener'), createHostListener);

            this._registerDecoratorOrConstructor(this.findDeclaration(ANGULAR_CORE, 'Directive'), createDirective);

            this._registerDecoratorOrConstructor(this.findDeclaration(ANGULAR_CORE, 'Component'), createComponent);

            this._registerDecoratorOrConstructor(this.findDeclaration(ANGULAR_CORE, 'NgModule'), createNgModule); // Note: Some metadata classes can be used directly with Provider.deps.


            this._registerDecoratorOrConstructor(this.findDeclaration(ANGULAR_CORE, 'Host'), createHost);

            this._registerDecoratorOrConstructor(this.findDeclaration(ANGULAR_CORE, 'Self'), createSelf);

            this._registerDecoratorOrConstructor(this.findDeclaration(ANGULAR_CORE, 'SkipSelf'), createSkipSelf);

            this._registerDecoratorOrConstructor(this.findDeclaration(ANGULAR_CORE, 'Optional'), createOptional);
          }
          /**
           * getStaticSymbol produces a Type whose metadata is known but whose implementation is not loaded.
           * All types passed to the StaticResolver should be pseudo-types returned by this method.
           *
           * @param declarationFile the absolute path of the file where the symbol is declared
           * @param name the name of the type.
           */

        }, {
          key: "getStaticSymbol",
          value: function getStaticSymbol(declarationFile, name, members) {
            return this.symbolResolver.getStaticSymbol(declarationFile, name, members);
          }
          /**
           * Simplify but discard any errors
           */

        }, {
          key: "trySimplify",
          value: function trySimplify(context, value) {
            var originalRecorder = this.errorRecorder;

            this.errorRecorder = function (error, fileName) {};

            var result = this.simplify(context, value);
            this.errorRecorder = originalRecorder;
            return result;
          }
          /** @internal */

        }, {
          key: "simplify",
          value: function simplify(context, value) {
            var lazy = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
            var self = this;
            var scope = BindingScope$1.empty;
            var calling = new Map();
            var rootContext = context;

            function simplifyInContext(context, value, depth, references) {
              function resolveReferenceValue(staticSymbol) {
                var resolvedSymbol = self.symbolResolver.resolveSymbol(staticSymbol);
                return resolvedSymbol ? resolvedSymbol.metadata : null;
              }

              function simplifyEagerly(value) {
                return simplifyInContext(context, value, depth, 0);
              }

              function simplifyLazily(value) {
                return simplifyInContext(context, value, depth, references + 1);
              }

              function simplifyNested(nestedContext, value) {
                if (nestedContext === context) {
                  // If the context hasn't changed let the exception propagate unmodified.
                  return simplifyInContext(nestedContext, value, depth + 1, references);
                }

                try {
                  return simplifyInContext(nestedContext, value, depth + 1, references);
                } catch (e) {
                  if (isMetadataError(e)) {
                    // Propagate the message text up but add a message to the chain that explains how we got
                    // here.
                    // e.chain implies e.symbol
                    var summaryMsg = e.chain ? 'references \'' + e.symbol.name + '\'' : errorSummary(e);
                    var summary = "'".concat(nestedContext.name, "' ").concat(summaryMsg);
                    var chain = {
                      message: summary,
                      position: e.position,
                      next: e.chain
                    }; // TODO(chuckj): retrieve the position information indirectly from the collectors node
                    // map if the metadata is from a .ts file.

                    self.error({
                      message: e.message,
                      advise: e.advise,
                      context: e.context,
                      chain: chain,
                      symbol: nestedContext
                    }, context);
                  } else {
                    // It is probably an internal error.
                    throw e;
                  }
                }
              }

              function simplifyCall(functionSymbol, targetFunction, args, targetExpression) {
                if (targetFunction && targetFunction['__symbolic'] == 'function') {
                  if (calling.get(functionSymbol)) {
                    self.error({
                      message: 'Recursion is not supported',
                      summary: "called '".concat(functionSymbol.name, "' recursively"),
                      value: targetFunction
                    }, functionSymbol);
                  }

                  try {
                    var _value7 = targetFunction['value'];

                    if (_value7 && (depth != 0 || _value7.__symbolic != 'error')) {
                      var parameters = targetFunction['parameters'];
                      var defaults = targetFunction.defaults;
                      args = args.map(function (arg) {
                        return simplifyNested(context, arg);
                      }).map(function (arg) {
                        return shouldIgnore(arg) ? undefined : arg;
                      });

                      if (defaults && defaults.length > args.length) {
                        var _args2;

                        (_args2 = args).push.apply(_args2, _toConsumableArray(defaults.slice(args.length).map(function (value) {
                          return simplify(value);
                        })));
                      }

                      calling.set(functionSymbol, true);
                      var functionScope = BindingScope$1.build();

                      for (var i = 0; i < parameters.length; i++) {
                        functionScope.define(parameters[i], args[i]);
                      }

                      var oldScope = scope;

                      var _result;

                      try {
                        scope = functionScope.done();
                        _result = simplifyNested(functionSymbol, _value7);
                      } finally {
                        scope = oldScope;
                      }

                      return _result;
                    }
                  } finally {
                    calling["delete"](functionSymbol);
                  }
                }

                if (depth === 0) {
                  // If depth is 0 we are evaluating the top level expression that is describing element
                  // decorator. In this case, it is a decorator we don't understand, such as a custom
                  // non-angular decorator, and we should just ignore it.
                  return IGNORE;
                }

                var position = undefined;

                if (targetExpression && targetExpression.__symbolic == 'resolved') {
                  var line = targetExpression.line;
                  var character = targetExpression.character;
                  var fileName = targetExpression.fileName;

                  if (fileName != null && line != null && character != null) {
                    position = {
                      fileName: fileName,
                      line: line,
                      column: character
                    };
                  }
                }

                self.error({
                  message: FUNCTION_CALL_NOT_SUPPORTED,
                  context: functionSymbol,
                  value: targetFunction,
                  position: position
                }, context);
              }

              function simplify(expression) {
                if (isPrimitive(expression)) {
                  return expression;
                }

                if (Array.isArray(expression)) {
                  var _result2 = [];

                  var _iterator42 = _createForOfIteratorHelper(expression),
                      _step42;

                  try {
                    for (_iterator42.s(); !(_step42 = _iterator42.n()).done;) {
                      var item = _step42.value;

                      // Check for a spread expression
                      if (item && item.__symbolic === 'spread') {
                        // We call with references as 0 because we require the actual value and cannot
                        // tolerate a reference here.
                        var spreadArray = simplifyEagerly(item.expression);

                        if (Array.isArray(spreadArray)) {
                          var _iterator43 = _createForOfIteratorHelper(spreadArray),
                              _step43;

                          try {
                            for (_iterator43.s(); !(_step43 = _iterator43.n()).done;) {
                              var spreadItem = _step43.value;

                              _result2.push(spreadItem);
                            }
                          } catch (err) {
                            _iterator43.e(err);
                          } finally {
                            _iterator43.f();
                          }

                          continue;
                        }
                      }

                      var _value8 = simplify(item);

                      if (shouldIgnore(_value8)) {
                        continue;
                      }

                      _result2.push(_value8);
                    }
                  } catch (err) {
                    _iterator42.e(err);
                  } finally {
                    _iterator42.f();
                  }

                  return _result2;
                }

                if (expression instanceof StaticSymbol) {
                  // Stop simplification at builtin symbols or if we are in a reference context and
                  // the symbol doesn't have members.
                  if (expression === self.injectionToken || self.conversionMap.has(expression) || references > 0 && !expression.members.length) {
                    return expression;
                  } else {
                    var staticSymbol = expression;
                    var declarationValue = resolveReferenceValue(staticSymbol);

                    if (declarationValue != null) {
                      return simplifyNested(staticSymbol, declarationValue);
                    } else {
                      return staticSymbol;
                    }
                  }
                }

                if (expression) {
                  if (expression['__symbolic']) {
                    var _staticSymbol;

                    switch (expression['__symbolic']) {
                      case 'binop':
                        var left = simplify(expression['left']);
                        if (shouldIgnore(left)) return left;
                        var right = simplify(expression['right']);
                        if (shouldIgnore(right)) return right;

                        switch (expression['operator']) {
                          case '&&':
                            return left && right;

                          case '||':
                            return left || right;

                          case '|':
                            return left | right;

                          case '^':
                            return left ^ right;

                          case '&':
                            return left & right;

                          case '==':
                            return left == right;

                          case '!=':
                            return left != right;

                          case '===':
                            return left === right;

                          case '!==':
                            return left !== right;

                          case '<':
                            return left < right;

                          case '>':
                            return left > right;

                          case '<=':
                            return left <= right;

                          case '>=':
                            return left >= right;

                          case '<<':
                            return left << right;

                          case '>>':
                            return left >> right;

                          case '+':
                            return left + right;

                          case '-':
                            return left - right;

                          case '*':
                            return left * right;

                          case '/':
                            return left / right;

                          case '%':
                            return left % right;
                        }

                        return null;

                      case 'if':
                        var condition = simplify(expression['condition']);
                        return condition ? simplify(expression['thenExpression']) : simplify(expression['elseExpression']);

                      case 'pre':
                        var operand = simplify(expression['operand']);
                        if (shouldIgnore(operand)) return operand;

                        switch (expression['operator']) {
                          case '+':
                            return operand;

                          case '-':
                            return -operand;

                          case '!':
                            return !operand;

                          case '~':
                            return ~operand;
                        }

                        return null;

                      case 'index':
                        var indexTarget = simplifyEagerly(expression['expression']);
                        var index = simplifyEagerly(expression['index']);
                        if (indexTarget && isPrimitive(index)) return indexTarget[index];
                        return null;

                      case 'select':
                        var member = expression['member'];
                        var selectContext = context;
                        var selectTarget = simplify(expression['expression']);

                        if (selectTarget instanceof StaticSymbol) {
                          var members = selectTarget.members.concat(member);
                          selectContext = self.getStaticSymbol(selectTarget.filePath, selectTarget.name, members);

                          var _declarationValue = resolveReferenceValue(selectContext);

                          if (_declarationValue != null) {
                            return simplifyNested(selectContext, _declarationValue);
                          } else {
                            return selectContext;
                          }
                        }

                        if (selectTarget && isPrimitive(member)) return simplifyNested(selectContext, selectTarget[member]);
                        return null;

                      case 'reference':
                        // Note: This only has to deal with variable references, as symbol references have
                        // been converted into 'resolved'
                        // in the StaticSymbolResolver.
                        var name = expression['name'];
                        var localValue = scope.resolve(name);

                        if (localValue != BindingScope$1.missing) {
                          return localValue;
                        }

                        break;

                      case 'resolved':
                        try {
                          return simplify(expression.symbol);
                        } catch (e) {
                          // If an error is reported evaluating the symbol record the position of the
                          // reference in the error so it can
                          // be reported in the error message generated from the exception.
                          if (isMetadataError(e) && expression.fileName != null && expression.line != null && expression.character != null) {
                            e.position = {
                              fileName: expression.fileName,
                              line: expression.line,
                              column: expression.character
                            };
                          }

                          throw e;
                        }

                      case 'class':
                        return context;

                      case 'function':
                        return context;

                      case 'new':
                      case 'call':
                        // Determine if the function is a built-in conversion
                        _staticSymbol = simplifyInContext(context, expression['expression'], depth + 1,
                        /* references */
                        0);

                        if (_staticSymbol instanceof StaticSymbol) {
                          if (_staticSymbol === self.injectionToken || _staticSymbol === self.opaqueToken) {
                            // if somebody calls new InjectionToken, don't create an InjectionToken,
                            // but rather return the symbol to which the InjectionToken is assigned to.
                            // OpaqueToken is supported too as it is required by the language service to
                            // support v4 and prior versions of Angular.
                            return context;
                          }

                          var argExpressions = expression['arguments'] || [];
                          var converter = self.conversionMap.get(_staticSymbol);

                          if (converter) {
                            var args = argExpressions.map(function (arg) {
                              return simplifyNested(context, arg);
                            }).map(function (arg) {
                              return shouldIgnore(arg) ? undefined : arg;
                            });
                            return converter(context, args);
                          } else {
                            // Determine if the function is one we can simplify.
                            var targetFunction = resolveReferenceValue(_staticSymbol);
                            return simplifyCall(_staticSymbol, targetFunction, argExpressions, expression['expression']);
                          }
                        }

                        return IGNORE;

                      case 'error':
                        var message = expression.message;

                        if (expression['line'] != null) {
                          self.error({
                            message: message,
                            context: expression.context,
                            value: expression,
                            position: {
                              fileName: expression['fileName'],
                              line: expression['line'],
                              column: expression['character']
                            }
                          }, context);
                        } else {
                          self.error({
                            message: message,
                            context: expression.context
                          }, context);
                        }

                        return IGNORE;

                      case 'ignore':
                        return expression;
                    }

                    return null;
                  }

                  return mapStringMap(expression, function (value, name) {
                    if (REFERENCE_SET.has(name)) {
                      if (name === USE_VALUE$1 && PROVIDE in expression) {
                        // If this is a provider expression, check for special tokens that need the value
                        // during analysis.
                        var provide = simplify(expression.provide);

                        if (provide === self.ROUTES || provide == self.ANALYZE_FOR_ENTRY_COMPONENTS) {
                          return simplify(value);
                        }
                      }

                      return simplifyLazily(value);
                    }

                    return simplify(value);
                  });
                }

                return IGNORE;
              }

              return simplify(value);
            }

            var result;

            try {
              result = simplifyInContext(context, value, 0, lazy ? 1 : 0);
            } catch (e) {
              if (this.errorRecorder) {
                this.reportError(e, context);
              } else {
                throw formatMetadataError(e, context);
              }
            }

            if (shouldIgnore(result)) {
              return undefined;
            }

            return result;
          }
        }, {
          key: "getTypeMetadata",
          value: function getTypeMetadata(type) {
            var resolvedSymbol = this.symbolResolver.resolveSymbol(type);
            return resolvedSymbol && resolvedSymbol.metadata ? resolvedSymbol.metadata : {
              __symbolic: 'class'
            };
          }
        }, {
          key: "reportError",
          value: function reportError(error, context, path) {
            if (this.errorRecorder) {
              this.errorRecorder(formatMetadataError(error, context), context && context.filePath || path);
            } else {
              throw error;
            }
          }
        }, {
          key: "error",
          value: function error(_ref46, reportingContext) {
            var message = _ref46.message,
                summary = _ref46.summary,
                advise = _ref46.advise,
                position = _ref46.position,
                context = _ref46.context,
                value = _ref46.value,
                symbol = _ref46.symbol,
                chain = _ref46.chain;
            this.reportError(metadataError(message, summary, advise, position, symbol, context, chain), reportingContext);
          }
        }]);

        return StaticReflector;
      }();

      var METADATA_ERROR = 'ngMetadataError';

      function metadataError(message, summary, advise, position, symbol, context, chain) {
        var error = syntaxError(message);
        error[METADATA_ERROR] = true;
        if (advise) error.advise = advise;
        if (position) error.position = position;
        if (summary) error.summary = summary;
        if (context) error.context = context;
        if (chain) error.chain = chain;
        if (symbol) error.symbol = symbol;
        return error;
      }

      function isMetadataError(error) {
        return !!error[METADATA_ERROR];
      }

      var REFERENCE_TO_NONEXPORTED_CLASS = 'Reference to non-exported class';
      var VARIABLE_NOT_INITIALIZED = 'Variable not initialized';
      var DESTRUCTURE_NOT_SUPPORTED = 'Destructuring not supported';
      var COULD_NOT_RESOLVE_TYPE = 'Could not resolve type';
      var FUNCTION_CALL_NOT_SUPPORTED = 'Function call not supported';
      var REFERENCE_TO_LOCAL_SYMBOL = 'Reference to a local symbol';
      var LAMBDA_NOT_SUPPORTED = 'Lambda not supported';

      function expandedMessage(message, context) {
        switch (message) {
          case REFERENCE_TO_NONEXPORTED_CLASS:
            if (context && context.className) {
              return "References to a non-exported class are not supported in decorators but ".concat(context.className, " was referenced.");
            }

            break;

          case VARIABLE_NOT_INITIALIZED:
            return 'Only initialized variables and constants can be referenced in decorators because the value of this variable is needed by the template compiler';

          case DESTRUCTURE_NOT_SUPPORTED:
            return 'Referencing an exported destructured variable or constant is not supported in decorators and this value is needed by the template compiler';

          case COULD_NOT_RESOLVE_TYPE:
            if (context && context.typeName) {
              return "Could not resolve type ".concat(context.typeName);
            }

            break;

          case FUNCTION_CALL_NOT_SUPPORTED:
            if (context && context.name) {
              return "Function calls are not supported in decorators but '".concat(context.name, "' was called");
            }

            return 'Function calls are not supported in decorators';

          case REFERENCE_TO_LOCAL_SYMBOL:
            if (context && context.name) {
              return "Reference to a local (non-exported) symbols are not supported in decorators but '".concat(context.name, "' was referenced");
            }

            break;

          case LAMBDA_NOT_SUPPORTED:
            return "Function expressions are not supported in decorators";
        }

        return message;
      }

      function messageAdvise(message, context) {
        switch (message) {
          case REFERENCE_TO_NONEXPORTED_CLASS:
            if (context && context.className) {
              return "Consider exporting '".concat(context.className, "'");
            }

            break;

          case DESTRUCTURE_NOT_SUPPORTED:
            return 'Consider simplifying to avoid destructuring';

          case REFERENCE_TO_LOCAL_SYMBOL:
            if (context && context.name) {
              return "Consider exporting '".concat(context.name, "'");
            }

            break;

          case LAMBDA_NOT_SUPPORTED:
            return "Consider changing the function expression into an exported function";
        }

        return undefined;
      }

      function errorSummary(error) {
        if (error.summary) {
          return error.summary;
        }

        switch (error.message) {
          case REFERENCE_TO_NONEXPORTED_CLASS:
            if (error.context && error.context.className) {
              return "references non-exported class ".concat(error.context.className);
            }

            break;

          case VARIABLE_NOT_INITIALIZED:
            return 'is not initialized';

          case DESTRUCTURE_NOT_SUPPORTED:
            return 'is a destructured variable';

          case COULD_NOT_RESOLVE_TYPE:
            return 'could not be resolved';

          case FUNCTION_CALL_NOT_SUPPORTED:
            if (error.context && error.context.name) {
              return "calls '".concat(error.context.name, "'");
            }

            return "calls a function";

          case REFERENCE_TO_LOCAL_SYMBOL:
            if (error.context && error.context.name) {
              return "references local variable ".concat(error.context.name);
            }

            return "references a local variable";
        }

        return 'contains the error';
      }

      function mapStringMap(input, transform) {
        if (!input) return {};
        var result = {};
        Object.keys(input).forEach(function (key) {
          var value = transform(input[key], key);

          if (!shouldIgnore(value)) {
            if (HIDDEN_KEY.test(key)) {
              Object.defineProperty(result, key, {
                enumerable: false,
                configurable: true,
                value: value
              });
            } else {
              result[key] = value;
            }
          }
        });
        return result;
      }

      function isPrimitive(o) {
        return o === null || typeof o !== 'function' && typeof o !== 'object';
      }

      var BindingScope$1 = /*#__PURE__*/function () {
        function BindingScope$1() {
          _classCallCheck2(this, BindingScope$1);
        }

        _createClass2(BindingScope$1, null, [{
          key: "build",
          value: function build() {
            var current = new Map();
            return {
              define: function define(name, value) {
                current.set(name, value);
                return this;
              },
              done: function done() {
                return current.size > 0 ? new PopulatedScope(current) : BindingScope$1.empty;
              }
            };
          }
        }]);

        return BindingScope$1;
      }();

      BindingScope$1.missing = {};
      BindingScope$1.empty = {
        resolve: function resolve(name) {
          return BindingScope$1.missing;
        }
      };

      var PopulatedScope = /*#__PURE__*/function (_BindingScope$) {
        _inherits2(PopulatedScope, _BindingScope$);

        var _super119 = _createSuper2(PopulatedScope);

        function PopulatedScope(bindings) {
          var _this334;

          _classCallCheck2(this, PopulatedScope);

          _this334 = _super119.call(this);
          _this334.bindings = bindings;
          return _this334;
        }

        _createClass2(PopulatedScope, [{
          key: "resolve",
          value: function resolve(name) {
            return this.bindings.has(name) ? this.bindings.get(name) : BindingScope$1.missing;
          }
        }]);

        return PopulatedScope;
      }(BindingScope$1);

      function formatMetadataMessageChain(chain, advise) {
        var expanded = expandedMessage(chain.message, chain.context);
        var nesting = chain.symbol ? " in '".concat(chain.symbol.name, "'") : '';
        var message = "".concat(expanded).concat(nesting);
        var position = chain.position;
        var next = chain.next ? formatMetadataMessageChain(chain.next, advise) : advise ? {
          message: advise
        } : undefined;
        return {
          message: message,
          position: position,
          next: next ? [next] : undefined
        };
      }

      function formatMetadataError(e, context) {
        if (isMetadataError(e)) {
          // Produce a formatted version of the and leaving enough information in the original error
          // to recover the formatting information to eventually produce a diagnostic error message.
          var position = e.position;
          var chain = {
            message: "Error during template compile of '".concat(context.name, "'"),
            position: position,
            next: {
              message: e.message,
              next: e.chain,
              context: e.context,
              symbol: e.symbol
            }
          };
          var advise = e.advise || messageAdvise(e.message, e.context);
          return formattedError(formatMetadataMessageChain(chain, advise));
        }

        return e;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var AotSummaryResolver = /*#__PURE__*/function () {
        function AotSummaryResolver(host, staticSymbolCache) {
          _classCallCheck2(this, AotSummaryResolver);

          this.host = host;
          this.staticSymbolCache = staticSymbolCache; // Note: this will only contain StaticSymbols without members!

          this.summaryCache = new Map();
          this.loadedFilePaths = new Map(); // Note: this will only contain StaticSymbols without members!

          this.importAs = new Map();
          this.knownFileNameToModuleNames = new Map();
        }

        _createClass2(AotSummaryResolver, [{
          key: "isLibraryFile",
          value: function isLibraryFile(filePath) {
            // Note: We need to strip the .ngfactory. file path,
            // so this method also works for generated files
            // (for which host.isSourceFile will always return false).
            return !this.host.isSourceFile(stripGeneratedFileSuffix(filePath));
          }
        }, {
          key: "toSummaryFileName",
          value: function toSummaryFileName(filePath, referringSrcFileName) {
            return this.host.toSummaryFileName(filePath, referringSrcFileName);
          }
        }, {
          key: "fromSummaryFileName",
          value: function fromSummaryFileName(fileName, referringLibFileName) {
            return this.host.fromSummaryFileName(fileName, referringLibFileName);
          }
        }, {
          key: "resolveSummary",
          value: function resolveSummary(staticSymbol) {
            var rootSymbol = staticSymbol.members.length ? this.staticSymbolCache.get(staticSymbol.filePath, staticSymbol.name) : staticSymbol;
            var summary = this.summaryCache.get(rootSymbol);

            if (!summary) {
              this._loadSummaryFile(staticSymbol.filePath);

              summary = this.summaryCache.get(staticSymbol);
            }

            return rootSymbol === staticSymbol && summary || null;
          }
        }, {
          key: "getSymbolsOf",
          value: function getSymbolsOf(filePath) {
            if (this._loadSummaryFile(filePath)) {
              return Array.from(this.summaryCache.keys()).filter(function (symbol) {
                return symbol.filePath === filePath;
              });
            }

            return null;
          }
        }, {
          key: "getImportAs",
          value: function getImportAs(staticSymbol) {
            staticSymbol.assertNoMembers();
            return this.importAs.get(staticSymbol);
          }
          /**
           * Converts a file path to a module name that can be used as an `import`.
           */

        }, {
          key: "getKnownModuleName",
          value: function getKnownModuleName(importedFilePath) {
            return this.knownFileNameToModuleNames.get(importedFilePath) || null;
          }
        }, {
          key: "addSummary",
          value: function addSummary(summary) {
            this.summaryCache.set(summary.symbol, summary);
          }
        }, {
          key: "_loadSummaryFile",
          value: function _loadSummaryFile(filePath) {
            var _this335 = this;

            var hasSummary = this.loadedFilePaths.get(filePath);

            if (hasSummary != null) {
              return hasSummary;
            }

            var json = null;

            if (this.isLibraryFile(filePath)) {
              var summaryFilePath = summaryFileName(filePath);

              try {
                json = this.host.loadSummary(summaryFilePath);
              } catch (e) {
                console.error("Error loading summary file ".concat(summaryFilePath));
                throw e;
              }
            }

            hasSummary = json != null;
            this.loadedFilePaths.set(filePath, hasSummary);

            if (json) {
              var _deserializeSummaries = deserializeSummaries(this.staticSymbolCache, this, filePath, json),
                  moduleName = _deserializeSummaries.moduleName,
                  summaries = _deserializeSummaries.summaries,
                  importAs = _deserializeSummaries.importAs;

              summaries.forEach(function (summary) {
                return _this335.summaryCache.set(summary.symbol, summary);
              });

              if (moduleName) {
                this.knownFileNameToModuleNames.set(filePath, moduleName);
              }

              importAs.forEach(function (importAs) {
                _this335.importAs.set(importAs.symbol, importAs.importAs);
              });
            }

            return hasSummary;
          }
        }]);

        return AotSummaryResolver;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function createAotUrlResolver(host) {
        return {
          resolve: function resolve(basePath, url) {
            var filePath = host.resourceNameToFileName(url, basePath);

            if (!filePath) {
              throw syntaxError("Couldn't resolve resource ".concat(url, " from ").concat(basePath));
            }

            return filePath;
          }
        };
      }
      /**
       * Creates a new AotCompiler based on options and a host.
       */


      function createAotCompiler(compilerHost, options, errorCollector) {
        var translations = options.translations || '';
        var urlResolver = createAotUrlResolver(compilerHost);
        var symbolCache = new StaticSymbolCache();
        var summaryResolver = new AotSummaryResolver(compilerHost, symbolCache);
        var symbolResolver = new StaticSymbolResolver(compilerHost, symbolCache, summaryResolver);
        var staticReflector = new StaticReflector(summaryResolver, symbolResolver, [], [], errorCollector);
        var htmlParser;

        if (!!options.enableIvy) {
          // Ivy handles i18n at the compiler level so we must use a regular parser
          htmlParser = new HtmlParser();
        } else {
          htmlParser = new I18NHtmlParser(new HtmlParser(), translations, options.i18nFormat, options.missingTranslation, console);
        }

        var config = new CompilerConfig({
          defaultEncapsulation: ViewEncapsulation.Emulated,
          useJit: false,
          missingTranslation: options.missingTranslation,
          preserveWhitespaces: options.preserveWhitespaces,
          strictInjectionParameters: options.strictInjectionParameters
        });
        var normalizer = new DirectiveNormalizer({
          get: function get(url) {
            return compilerHost.loadResource(url);
          }
        }, urlResolver, htmlParser, config);
        var expressionParser = new Parser$1(new Lexer());
        var elementSchemaRegistry = new DomElementSchemaRegistry();
        var tmplParser = new TemplateParser(config, staticReflector, expressionParser, elementSchemaRegistry, htmlParser, console, []);
        var resolver = new CompileMetadataResolver(config, htmlParser, new NgModuleResolver(staticReflector), new DirectiveResolver(staticReflector), new PipeResolver(staticReflector), summaryResolver, elementSchemaRegistry, normalizer, console, symbolCache, staticReflector, errorCollector); // TODO(vicb): do not pass options.i18nFormat here

        var viewCompiler = new ViewCompiler(staticReflector);
        var typeCheckCompiler = new TypeCheckCompiler(options, staticReflector);
        var compiler = new AotCompiler(config, options, compilerHost, staticReflector, resolver, tmplParser, new StyleCompiler(urlResolver), viewCompiler, typeCheckCompiler, new NgModuleCompiler(staticReflector), new InjectableCompiler(staticReflector, !!options.enableIvy), new TypeScriptEmitter(), summaryResolver, symbolResolver);
        return {
          compiler: compiler,
          reflector: staticReflector
        };
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var SummaryResolver = function SummaryResolver() {
        _classCallCheck2(this, SummaryResolver);
      };

      var JitSummaryResolver = /*#__PURE__*/function () {
        function JitSummaryResolver() {
          _classCallCheck2(this, JitSummaryResolver);

          this._summaries = new Map();
        }

        _createClass2(JitSummaryResolver, [{
          key: "isLibraryFile",
          value: function isLibraryFile() {
            return false;
          }
        }, {
          key: "toSummaryFileName",
          value: function toSummaryFileName(fileName) {
            return fileName;
          }
        }, {
          key: "fromSummaryFileName",
          value: function fromSummaryFileName(fileName) {
            return fileName;
          }
        }, {
          key: "resolveSummary",
          value: function resolveSummary(reference) {
            return this._summaries.get(reference) || null;
          }
        }, {
          key: "getSymbolsOf",
          value: function getSymbolsOf() {
            return [];
          }
        }, {
          key: "getImportAs",
          value: function getImportAs(reference) {
            return reference;
          }
        }, {
          key: "getKnownModuleName",
          value: function getKnownModuleName(fileName) {
            return null;
          }
        }, {
          key: "addSummary",
          value: function addSummary(summary) {
            this._summaries.set(summary.symbol, summary);
          }
        }]);

        return JitSummaryResolver;
      }();

      function interpretStatements(statements, reflector) {
        var ctx = new _ExecutionContext(null, null, null, new Map());
        var visitor = new StatementInterpreter(reflector);
        visitor.visitAllStatements(statements, ctx);
        var result = {};
        ctx.exports.forEach(function (exportName) {
          result[exportName] = ctx.vars.get(exportName);
        });
        return result;
      }

      function _executeFunctionStatements(varNames, varValues, statements, ctx, visitor) {
        var childCtx = ctx.createChildWihtLocalVars();

        for (var i = 0; i < varNames.length; i++) {
          childCtx.vars.set(varNames[i], varValues[i]);
        }

        var result = visitor.visitAllStatements(statements, childCtx);
        return result ? result.value : null;
      }

      var _ExecutionContext = /*#__PURE__*/function () {
        function _ExecutionContext(parent, instance, className, vars) {
          _classCallCheck2(this, _ExecutionContext);

          this.parent = parent;
          this.instance = instance;
          this.className = className;
          this.vars = vars;
          this.exports = [];
        }

        _createClass2(_ExecutionContext, [{
          key: "createChildWihtLocalVars",
          value: function createChildWihtLocalVars() {
            return new _ExecutionContext(this, this.instance, this.className, new Map());
          }
        }]);

        return _ExecutionContext;
      }();

      var ReturnValue = function ReturnValue(value) {
        _classCallCheck2(this, ReturnValue);

        this.value = value;
      };

      function createDynamicClass(_classStmt, _ctx, _visitor) {
        var propertyDescriptors = {};

        _classStmt.getters.forEach(function (getter) {
          // Note: use `function` instead of arrow function to capture `this`
          propertyDescriptors[getter.name] = {
            configurable: false,
            get: function get() {
              var instanceCtx = new _ExecutionContext(_ctx, this, _classStmt.name, _ctx.vars);
              return _executeFunctionStatements([], [], getter.body, instanceCtx, _visitor);
            }
          };
        });

        _classStmt.methods.forEach(function (method) {
          var paramNames = method.params.map(function (param) {
            return param.name;
          }); // Note: use `function` instead of arrow function to capture `this`

          propertyDescriptors[method.name] = {
            writable: false,
            configurable: false,
            value: function value() {
              var instanceCtx = new _ExecutionContext(_ctx, this, _classStmt.name, _ctx.vars);

              for (var _len10 = arguments.length, args = new Array(_len10), _key11 = 0; _key11 < _len10; _key11++) {
                args[_key11] = arguments[_key11];
              }

              return _executeFunctionStatements(paramNames, args, method.body, instanceCtx, _visitor);
            }
          };
        });

        var ctorParamNames = _classStmt.constructorMethod.params.map(function (param) {
          return param.name;
        }); // Note: use `function` instead of arrow function to capture `this`


        var ctor = function ctor() {
          var _this336 = this;

          var instanceCtx = new _ExecutionContext(_ctx, this, _classStmt.name, _ctx.vars);

          _classStmt.fields.forEach(function (field) {
            _this336[field.name] = undefined;
          });

          for (var _len11 = arguments.length, args = new Array(_len11), _key12 = 0; _key12 < _len11; _key12++) {
            args[_key12] = arguments[_key12];
          }

          _executeFunctionStatements(ctorParamNames, args, _classStmt.constructorMethod.body, instanceCtx, _visitor);
        };

        var superClass = _classStmt.parent ? _classStmt.parent.visitExpression(_visitor, _ctx) : Object;
        ctor.prototype = Object.create(superClass.prototype, propertyDescriptors);
        return ctor;
      }

      var StatementInterpreter = /*#__PURE__*/function () {
        function StatementInterpreter(reflector) {
          _classCallCheck2(this, StatementInterpreter);

          this.reflector = reflector;
        }

        _createClass2(StatementInterpreter, [{
          key: "debugAst",
          value: function debugAst(ast) {
            return debugOutputAstAsTypeScript(ast);
          }
        }, {
          key: "visitDeclareVarStmt",
          value: function visitDeclareVarStmt(stmt, ctx) {
            var initialValue = stmt.value ? stmt.value.visitExpression(this, ctx) : undefined;
            ctx.vars.set(stmt.name, initialValue);

            if (stmt.hasModifier(StmtModifier.Exported)) {
              ctx.exports.push(stmt.name);
            }

            return null;
          }
        }, {
          key: "visitWriteVarExpr",
          value: function visitWriteVarExpr(expr, ctx) {
            var value = expr.value.visitExpression(this, ctx);
            var currCtx = ctx;

            while (currCtx != null) {
              if (currCtx.vars.has(expr.name)) {
                currCtx.vars.set(expr.name, value);
                return value;
              }

              currCtx = currCtx.parent;
            }

            throw new Error("Not declared variable ".concat(expr.name));
          }
        }, {
          key: "visitWrappedNodeExpr",
          value: function visitWrappedNodeExpr(ast, ctx) {
            throw new Error('Cannot interpret a WrappedNodeExpr.');
          }
        }, {
          key: "visitTypeofExpr",
          value: function visitTypeofExpr(ast, ctx) {
            throw new Error('Cannot interpret a TypeofExpr');
          }
        }, {
          key: "visitReadVarExpr",
          value: function visitReadVarExpr(ast, ctx) {
            var varName = ast.name;

            if (ast.builtin != null) {
              switch (ast.builtin) {
                case BuiltinVar.Super:
                  return Object.getPrototypeOf(ctx.instance);

                case BuiltinVar.This:
                  return ctx.instance;

                case BuiltinVar.CatchError:
                  varName = CATCH_ERROR_VAR$2;
                  break;

                case BuiltinVar.CatchStack:
                  varName = CATCH_STACK_VAR$2;
                  break;

                default:
                  throw new Error("Unknown builtin variable ".concat(ast.builtin));
              }
            }

            var currCtx = ctx;

            while (currCtx != null) {
              if (currCtx.vars.has(varName)) {
                return currCtx.vars.get(varName);
              }

              currCtx = currCtx.parent;
            }

            throw new Error("Not declared variable ".concat(varName));
          }
        }, {
          key: "visitWriteKeyExpr",
          value: function visitWriteKeyExpr(expr, ctx) {
            var receiver = expr.receiver.visitExpression(this, ctx);
            var index = expr.index.visitExpression(this, ctx);
            var value = expr.value.visitExpression(this, ctx);
            receiver[index] = value;
            return value;
          }
        }, {
          key: "visitWritePropExpr",
          value: function visitWritePropExpr(expr, ctx) {
            var receiver = expr.receiver.visitExpression(this, ctx);
            var value = expr.value.visitExpression(this, ctx);
            receiver[expr.name] = value;
            return value;
          }
        }, {
          key: "visitInvokeMethodExpr",
          value: function visitInvokeMethodExpr(expr, ctx) {
            var receiver = expr.receiver.visitExpression(this, ctx);
            var args = this.visitAllExpressions(expr.args, ctx);
            var result;

            if (expr.builtin != null) {
              switch (expr.builtin) {
                case BuiltinMethod.ConcatArray:
                  result = receiver.concat.apply(receiver, _toConsumableArray(args));
                  break;

                case BuiltinMethod.SubscribeObservable:
                  result = receiver.subscribe({
                    next: args[0]
                  });
                  break;

                case BuiltinMethod.Bind:
                  result = receiver.bind.apply(receiver, _toConsumableArray(args));
                  break;

                default:
                  throw new Error("Unknown builtin method ".concat(expr.builtin));
              }
            } else {
              result = receiver[expr.name].apply(receiver, args);
            }

            return result;
          }
        }, {
          key: "visitInvokeFunctionExpr",
          value: function visitInvokeFunctionExpr(stmt, ctx) {
            var args = this.visitAllExpressions(stmt.args, ctx);
            var fnExpr = stmt.fn;

            if (fnExpr instanceof ReadVarExpr && fnExpr.builtin === BuiltinVar.Super) {
              ctx.instance.constructor.prototype.constructor.apply(ctx.instance, args);
              return null;
            } else {
              var _fn = stmt.fn.visitExpression(this, ctx);

              return _fn.apply(null, args);
            }
          }
        }, {
          key: "visitReturnStmt",
          value: function visitReturnStmt(stmt, ctx) {
            return new ReturnValue(stmt.value.visitExpression(this, ctx));
          }
        }, {
          key: "visitDeclareClassStmt",
          value: function visitDeclareClassStmt(stmt, ctx) {
            var clazz = createDynamicClass(stmt, ctx, this);
            ctx.vars.set(stmt.name, clazz);

            if (stmt.hasModifier(StmtModifier.Exported)) {
              ctx.exports.push(stmt.name);
            }

            return null;
          }
        }, {
          key: "visitExpressionStmt",
          value: function visitExpressionStmt(stmt, ctx) {
            return stmt.expr.visitExpression(this, ctx);
          }
        }, {
          key: "visitIfStmt",
          value: function visitIfStmt(stmt, ctx) {
            var condition = stmt.condition.visitExpression(this, ctx);

            if (condition) {
              return this.visitAllStatements(stmt.trueCase, ctx);
            } else if (stmt.falseCase != null) {
              return this.visitAllStatements(stmt.falseCase, ctx);
            }

            return null;
          }
        }, {
          key: "visitTryCatchStmt",
          value: function visitTryCatchStmt(stmt, ctx) {
            try {
              return this.visitAllStatements(stmt.bodyStmts, ctx);
            } catch (e) {
              var childCtx = ctx.createChildWihtLocalVars();
              childCtx.vars.set(CATCH_ERROR_VAR$2, e);
              childCtx.vars.set(CATCH_STACK_VAR$2, e.stack);
              return this.visitAllStatements(stmt.catchStmts, childCtx);
            }
          }
        }, {
          key: "visitThrowStmt",
          value: function visitThrowStmt(stmt, ctx) {
            throw stmt.error.visitExpression(this, ctx);
          }
        }, {
          key: "visitInstantiateExpr",
          value: function visitInstantiateExpr(ast, ctx) {
            var args = this.visitAllExpressions(ast.args, ctx);
            var clazz = ast.classExpr.visitExpression(this, ctx);
            return _construct2(clazz, _toConsumableArray(args));
          }
        }, {
          key: "visitLiteralExpr",
          value: function visitLiteralExpr(ast, ctx) {
            return ast.value;
          }
        }, {
          key: "visitLocalizedString",
          value: function visitLocalizedString(ast, context) {
            return null;
          }
        }, {
          key: "visitExternalExpr",
          value: function visitExternalExpr(ast, ctx) {
            return this.reflector.resolveExternalReference(ast.value);
          }
        }, {
          key: "visitConditionalExpr",
          value: function visitConditionalExpr(ast, ctx) {
            if (ast.condition.visitExpression(this, ctx)) {
              return ast.trueCase.visitExpression(this, ctx);
            } else if (ast.falseCase != null) {
              return ast.falseCase.visitExpression(this, ctx);
            }

            return null;
          }
        }, {
          key: "visitNotExpr",
          value: function visitNotExpr(ast, ctx) {
            return !ast.condition.visitExpression(this, ctx);
          }
        }, {
          key: "visitAssertNotNullExpr",
          value: function visitAssertNotNullExpr(ast, ctx) {
            return ast.condition.visitExpression(this, ctx);
          }
        }, {
          key: "visitCastExpr",
          value: function visitCastExpr(ast, ctx) {
            return ast.value.visitExpression(this, ctx);
          }
        }, {
          key: "visitFunctionExpr",
          value: function visitFunctionExpr(ast, ctx) {
            var paramNames = ast.params.map(function (param) {
              return param.name;
            });
            return _declareFn(paramNames, ast.statements, ctx, this);
          }
        }, {
          key: "visitDeclareFunctionStmt",
          value: function visitDeclareFunctionStmt(stmt, ctx) {
            var paramNames = stmt.params.map(function (param) {
              return param.name;
            });
            ctx.vars.set(stmt.name, _declareFn(paramNames, stmt.statements, ctx, this));

            if (stmt.hasModifier(StmtModifier.Exported)) {
              ctx.exports.push(stmt.name);
            }

            return null;
          }
        }, {
          key: "visitUnaryOperatorExpr",
          value: function visitUnaryOperatorExpr(ast, ctx) {
            var _this337 = this;

            var rhs = function rhs() {
              return ast.expr.visitExpression(_this337, ctx);
            };

            switch (ast.operator) {
              case UnaryOperator.Plus:
                return +rhs();

              case UnaryOperator.Minus:
                return -rhs();

              default:
                throw new Error("Unknown operator ".concat(ast.operator));
            }
          }
        }, {
          key: "visitBinaryOperatorExpr",
          value: function visitBinaryOperatorExpr(ast, ctx) {
            var _this338 = this;

            var lhs = function lhs() {
              return ast.lhs.visitExpression(_this338, ctx);
            };

            var rhs = function rhs() {
              return ast.rhs.visitExpression(_this338, ctx);
            };

            switch (ast.operator) {
              case BinaryOperator.Equals:
                return lhs() == rhs();

              case BinaryOperator.Identical:
                return lhs() === rhs();

              case BinaryOperator.NotEquals:
                return lhs() != rhs();

              case BinaryOperator.NotIdentical:
                return lhs() !== rhs();

              case BinaryOperator.And:
                return lhs() && rhs();

              case BinaryOperator.Or:
                return lhs() || rhs();

              case BinaryOperator.Plus:
                return lhs() + rhs();

              case BinaryOperator.Minus:
                return lhs() - rhs();

              case BinaryOperator.Divide:
                return lhs() / rhs();

              case BinaryOperator.Multiply:
                return lhs() * rhs();

              case BinaryOperator.Modulo:
                return lhs() % rhs();

              case BinaryOperator.Lower:
                return lhs() < rhs();

              case BinaryOperator.LowerEquals:
                return lhs() <= rhs();

              case BinaryOperator.Bigger:
                return lhs() > rhs();

              case BinaryOperator.BiggerEquals:
                return lhs() >= rhs();

              default:
                throw new Error("Unknown operator ".concat(ast.operator));
            }
          }
        }, {
          key: "visitReadPropExpr",
          value: function visitReadPropExpr(ast, ctx) {
            var result;
            var receiver = ast.receiver.visitExpression(this, ctx);
            result = receiver[ast.name];
            return result;
          }
        }, {
          key: "visitReadKeyExpr",
          value: function visitReadKeyExpr(ast, ctx) {
            var receiver = ast.receiver.visitExpression(this, ctx);
            var prop = ast.index.visitExpression(this, ctx);
            return receiver[prop];
          }
        }, {
          key: "visitLiteralArrayExpr",
          value: function visitLiteralArrayExpr(ast, ctx) {
            return this.visitAllExpressions(ast.entries, ctx);
          }
        }, {
          key: "visitLiteralMapExpr",
          value: function visitLiteralMapExpr(ast, ctx) {
            var _this339 = this;

            var result = {};
            ast.entries.forEach(function (entry) {
              return result[entry.key] = entry.value.visitExpression(_this339, ctx);
            });
            return result;
          }
        }, {
          key: "visitCommaExpr",
          value: function visitCommaExpr(ast, context) {
            var values = this.visitAllExpressions(ast.parts, context);
            return values[values.length - 1];
          }
        }, {
          key: "visitAllExpressions",
          value: function visitAllExpressions(expressions, ctx) {
            var _this340 = this;

            return expressions.map(function (expr) {
              return expr.visitExpression(_this340, ctx);
            });
          }
        }, {
          key: "visitAllStatements",
          value: function visitAllStatements(statements, ctx) {
            for (var i = 0; i < statements.length; i++) {
              var stmt = statements[i];
              var val = stmt.visitStatement(this, ctx);

              if (val instanceof ReturnValue) {
                return val;
              }
            }

            return null;
          }
        }]);

        return StatementInterpreter;
      }();

      function _declareFn(varNames, statements, ctx, visitor) {
        return function () {
          for (var _len12 = arguments.length, args = new Array(_len12), _key13 = 0; _key13 < _len12; _key13++) {
            args[_key13] = arguments[_key13];
          }

          return _executeFunctionStatements(varNames, args, statements, ctx, visitor);
        };
      }

      var CATCH_ERROR_VAR$2 = 'error';
      var CATCH_STACK_VAR$2 = 'stack';
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * An internal module of the Angular compiler that begins with component types,
       * extracts templates, and eventually produces a compiled version of the component
       * ready for linking into an application.
       *
       * @security  When compiling templates at runtime, you must ensure that the entire template comes
       * from a trusted source. Attacker-controlled data introduced by a template could expose your
       * application to XSS risks.  For more detail, see the [Security Guide](http://g.co/ng/security).
       */

      var JitCompiler = /*#__PURE__*/function () {
        function JitCompiler(_metadataResolver, _templateParser, _styleCompiler, _viewCompiler, _ngModuleCompiler, _summaryResolver, _reflector, _jitEvaluator, _compilerConfig, _console, getExtraNgModuleProviders) {
          _classCallCheck2(this, JitCompiler);

          this._metadataResolver = _metadataResolver;
          this._templateParser = _templateParser;
          this._styleCompiler = _styleCompiler;
          this._viewCompiler = _viewCompiler;
          this._ngModuleCompiler = _ngModuleCompiler;
          this._summaryResolver = _summaryResolver;
          this._reflector = _reflector;
          this._jitEvaluator = _jitEvaluator;
          this._compilerConfig = _compilerConfig;
          this._console = _console;
          this.getExtraNgModuleProviders = getExtraNgModuleProviders;
          this._compiledTemplateCache = new Map();
          this._compiledHostTemplateCache = new Map();
          this._compiledDirectiveWrapperCache = new Map();
          this._compiledNgModuleCache = new Map();
          this._sharedStylesheetCount = 0;
          this._addedAotSummaries = new Set();
        }

        _createClass2(JitCompiler, [{
          key: "compileModuleSync",
          value: function compileModuleSync(moduleType) {
            return SyncAsync.assertSync(this._compileModuleAndComponents(moduleType, true));
          }
        }, {
          key: "compileModuleAsync",
          value: function compileModuleAsync(moduleType) {
            return Promise.resolve(this._compileModuleAndComponents(moduleType, false));
          }
        }, {
          key: "compileModuleAndAllComponentsSync",
          value: function compileModuleAndAllComponentsSync(moduleType) {
            return SyncAsync.assertSync(this._compileModuleAndAllComponents(moduleType, true));
          }
        }, {
          key: "compileModuleAndAllComponentsAsync",
          value: function compileModuleAndAllComponentsAsync(moduleType) {
            return Promise.resolve(this._compileModuleAndAllComponents(moduleType, false));
          }
        }, {
          key: "getComponentFactory",
          value: function getComponentFactory(component) {
            var summary = this._metadataResolver.getDirectiveSummary(component);

            return summary.componentFactory;
          }
        }, {
          key: "loadAotSummaries",
          value: function loadAotSummaries(summaries) {
            this.clearCache();

            this._addAotSummaries(summaries);
          }
        }, {
          key: "_addAotSummaries",
          value: function _addAotSummaries(fn) {
            if (this._addedAotSummaries.has(fn)) {
              return;
            }

            this._addedAotSummaries.add(fn);

            var summaries = fn();

            for (var i = 0; i < summaries.length; i++) {
              var entry = summaries[i];

              if (typeof entry === 'function') {
                this._addAotSummaries(entry);
              } else {
                var summary = entry;

                this._summaryResolver.addSummary({
                  symbol: summary.type.reference,
                  metadata: null,
                  type: summary
                });
              }
            }
          }
        }, {
          key: "hasAotSummary",
          value: function hasAotSummary(ref) {
            return !!this._summaryResolver.resolveSummary(ref);
          }
        }, {
          key: "_filterJitIdentifiers",
          value: function _filterJitIdentifiers(ids) {
            var _this341 = this;

            return ids.map(function (mod) {
              return mod.reference;
            }).filter(function (ref) {
              return !_this341.hasAotSummary(ref);
            });
          }
        }, {
          key: "_compileModuleAndComponents",
          value: function _compileModuleAndComponents(moduleType, isSync) {
            var _this342 = this;

            return SyncAsync.then(this._loadModules(moduleType, isSync), function () {
              _this342._compileComponents(moduleType, null);

              return _this342._compileModule(moduleType);
            });
          }
        }, {
          key: "_compileModuleAndAllComponents",
          value: function _compileModuleAndAllComponents(moduleType, isSync) {
            var _this343 = this;

            return SyncAsync.then(this._loadModules(moduleType, isSync), function () {
              var componentFactories = [];

              _this343._compileComponents(moduleType, componentFactories);

              return {
                ngModuleFactory: _this343._compileModule(moduleType),
                componentFactories: componentFactories
              };
            });
          }
        }, {
          key: "_loadModules",
          value: function _loadModules(mainModule, isSync) {
            var _this344 = this;

            var loading = [];

            var mainNgModule = this._metadataResolver.getNgModuleMetadata(mainModule); // Note: for runtime compilation, we want to transitively compile all modules,
            // so we also need to load the declared directives / pipes for all nested modules.


            this._filterJitIdentifiers(mainNgModule.transitiveModule.modules).forEach(function (nestedNgModule) {
              // getNgModuleMetadata only returns null if the value passed in is not an NgModule
              var moduleMeta = _this344._metadataResolver.getNgModuleMetadata(nestedNgModule);

              _this344._filterJitIdentifiers(moduleMeta.declaredDirectives).forEach(function (ref) {
                var promise = _this344._metadataResolver.loadDirectiveMetadata(moduleMeta.type.reference, ref, isSync);

                if (promise) {
                  loading.push(promise);
                }
              });

              _this344._filterJitIdentifiers(moduleMeta.declaredPipes).forEach(function (ref) {
                return _this344._metadataResolver.getOrLoadPipeMetadata(ref);
              });
            });

            return SyncAsync.all(loading);
          }
        }, {
          key: "_compileModule",
          value: function _compileModule(moduleType) {
            var ngModuleFactory = this._compiledNgModuleCache.get(moduleType);

            if (!ngModuleFactory) {
              var moduleMeta = this._metadataResolver.getNgModuleMetadata(moduleType); // Always provide a bound Compiler


              var extraProviders = this.getExtraNgModuleProviders(moduleMeta.type.reference);
              var outputCtx = createOutputContext();

              var compileResult = this._ngModuleCompiler.compile(outputCtx, moduleMeta, extraProviders);

              ngModuleFactory = this._interpretOrJit(ngModuleJitUrl(moduleMeta), outputCtx.statements)[compileResult.ngModuleFactoryVar];

              this._compiledNgModuleCache.set(moduleMeta.type.reference, ngModuleFactory);
            }

            return ngModuleFactory;
          }
          /**
           * @internal
           */

        }, {
          key: "_compileComponents",
          value: function _compileComponents(mainModule, allComponentFactories) {
            var _this345 = this;

            var ngModule = this._metadataResolver.getNgModuleMetadata(mainModule);

            var moduleByJitDirective = new Map();
            var templates = new Set();

            var transJitModules = this._filterJitIdentifiers(ngModule.transitiveModule.modules);

            transJitModules.forEach(function (localMod) {
              var localModuleMeta = _this345._metadataResolver.getNgModuleMetadata(localMod);

              _this345._filterJitIdentifiers(localModuleMeta.declaredDirectives).forEach(function (dirRef) {
                moduleByJitDirective.set(dirRef, localModuleMeta);

                var dirMeta = _this345._metadataResolver.getDirectiveMetadata(dirRef);

                if (dirMeta.isComponent) {
                  templates.add(_this345._createCompiledTemplate(dirMeta, localModuleMeta));

                  if (allComponentFactories) {
                    var template = _this345._createCompiledHostTemplate(dirMeta.type.reference, localModuleMeta);

                    templates.add(template);
                    allComponentFactories.push(dirMeta.componentFactory);
                  }
                }
              });
            });
            transJitModules.forEach(function (localMod) {
              var localModuleMeta = _this345._metadataResolver.getNgModuleMetadata(localMod);

              _this345._filterJitIdentifiers(localModuleMeta.declaredDirectives).forEach(function (dirRef) {
                var dirMeta = _this345._metadataResolver.getDirectiveMetadata(dirRef);

                if (dirMeta.isComponent) {
                  dirMeta.entryComponents.forEach(function (entryComponentType) {
                    var moduleMeta = moduleByJitDirective.get(entryComponentType.componentType);
                    templates.add(_this345._createCompiledHostTemplate(entryComponentType.componentType, moduleMeta));
                  });
                }
              });

              localModuleMeta.entryComponents.forEach(function (entryComponentType) {
                if (!_this345.hasAotSummary(entryComponentType.componentType)) {
                  var moduleMeta = moduleByJitDirective.get(entryComponentType.componentType);
                  templates.add(_this345._createCompiledHostTemplate(entryComponentType.componentType, moduleMeta));
                }
              });
            });
            templates.forEach(function (template) {
              return _this345._compileTemplate(template);
            });
          }
        }, {
          key: "clearCacheFor",
          value: function clearCacheFor(type) {
            this._compiledNgModuleCache["delete"](type);

            this._metadataResolver.clearCacheFor(type);

            this._compiledHostTemplateCache["delete"](type);

            var compiledTemplate = this._compiledTemplateCache.get(type);

            if (compiledTemplate) {
              this._compiledTemplateCache["delete"](type);
            }
          }
        }, {
          key: "clearCache",
          value: function clearCache() {
            // Note: don't clear the _addedAotSummaries, as they don't change!
            this._metadataResolver.clearCache();

            this._compiledTemplateCache.clear();

            this._compiledHostTemplateCache.clear();

            this._compiledNgModuleCache.clear();
          }
        }, {
          key: "_createCompiledHostTemplate",
          value: function _createCompiledHostTemplate(compType, ngModule) {
            if (!ngModule) {
              throw new Error("Component ".concat(stringify(compType), " is not part of any NgModule or the module has not been imported into your module."));
            }

            var compiledTemplate = this._compiledHostTemplateCache.get(compType);

            if (!compiledTemplate) {
              var compMeta = this._metadataResolver.getDirectiveMetadata(compType);

              assertComponent(compMeta);

              var hostMeta = this._metadataResolver.getHostComponentMetadata(compMeta, compMeta.componentFactory.viewDefFactory);

              compiledTemplate = new CompiledTemplate(true, compMeta.type, hostMeta, ngModule, [compMeta.type]);

              this._compiledHostTemplateCache.set(compType, compiledTemplate);
            }

            return compiledTemplate;
          }
        }, {
          key: "_createCompiledTemplate",
          value: function _createCompiledTemplate(compMeta, ngModule) {
            var compiledTemplate = this._compiledTemplateCache.get(compMeta.type.reference);

            if (!compiledTemplate) {
              assertComponent(compMeta);
              compiledTemplate = new CompiledTemplate(false, compMeta.type, compMeta, ngModule, ngModule.transitiveModule.directives);

              this._compiledTemplateCache.set(compMeta.type.reference, compiledTemplate);
            }

            return compiledTemplate;
          }
        }, {
          key: "_compileTemplate",
          value: function _compileTemplate(template) {
            var _this346 = this;

            if (template.isCompiled) {
              return;
            }

            var compMeta = template.compMeta;
            var externalStylesheetsByModuleUrl = new Map();
            var outputContext = createOutputContext();

            var componentStylesheet = this._styleCompiler.compileComponent(outputContext, compMeta);

            compMeta.template.externalStylesheets.forEach(function (stylesheetMeta) {
              var compiledStylesheet = _this346._styleCompiler.compileStyles(createOutputContext(), compMeta, stylesheetMeta);

              externalStylesheetsByModuleUrl.set(stylesheetMeta.moduleUrl, compiledStylesheet);
            });

            this._resolveStylesCompileResult(componentStylesheet, externalStylesheetsByModuleUrl);

            var pipes = template.ngModule.transitiveModule.pipes.map(function (pipe) {
              return _this346._metadataResolver.getPipeSummary(pipe.reference);
            });

            var _this$_parseTemplate3 = this._parseTemplate(compMeta, template.ngModule, template.directives),
                parsedTemplate = _this$_parseTemplate3.template,
                usedPipes = _this$_parseTemplate3.pipes;

            var compileResult = this._viewCompiler.compileComponent(outputContext, compMeta, parsedTemplate, variable(componentStylesheet.stylesVar), usedPipes);

            var evalResult = this._interpretOrJit(templateJitUrl(template.ngModule.type, template.compMeta), outputContext.statements);

            var viewClass = evalResult[compileResult.viewClassVar];
            var rendererType = evalResult[compileResult.rendererTypeVar];
            template.compiled(viewClass, rendererType);
          }
        }, {
          key: "_parseTemplate",
          value: function _parseTemplate(compMeta, ngModule, directiveIdentifiers) {
            var _this347 = this;

            // Note: ! is ok here as components always have a template.
            var preserveWhitespaces = compMeta.template.preserveWhitespaces;
            var directives = directiveIdentifiers.map(function (dir) {
              return _this347._metadataResolver.getDirectiveSummary(dir.reference);
            });
            var pipes = ngModule.transitiveModule.pipes.map(function (pipe) {
              return _this347._metadataResolver.getPipeSummary(pipe.reference);
            });
            return this._templateParser.parse(compMeta, compMeta.template.htmlAst, directives, pipes, ngModule.schemas, templateSourceUrl(ngModule.type, compMeta, compMeta.template), preserveWhitespaces);
          }
        }, {
          key: "_resolveStylesCompileResult",
          value: function _resolveStylesCompileResult(result, externalStylesheetsByModuleUrl) {
            var _this348 = this;

            result.dependencies.forEach(function (dep, i) {
              var nestedCompileResult = externalStylesheetsByModuleUrl.get(dep.moduleUrl);

              var nestedStylesArr = _this348._resolveAndEvalStylesCompileResult(nestedCompileResult, externalStylesheetsByModuleUrl);

              dep.setValue(nestedStylesArr);
            });
          }
        }, {
          key: "_resolveAndEvalStylesCompileResult",
          value: function _resolveAndEvalStylesCompileResult(result, externalStylesheetsByModuleUrl) {
            this._resolveStylesCompileResult(result, externalStylesheetsByModuleUrl);

            return this._interpretOrJit(sharedStylesheetJitUrl(result.meta, this._sharedStylesheetCount++), result.outputCtx.statements)[result.stylesVar];
          }
        }, {
          key: "_interpretOrJit",
          value: function _interpretOrJit(sourceUrl, statements) {
            if (!this._compilerConfig.useJit) {
              return interpretStatements(statements, this._reflector);
            } else {
              return this._jitEvaluator.evaluateStatements(sourceUrl, statements, this._reflector, this._compilerConfig.jitDevMode);
            }
          }
        }]);

        return JitCompiler;
      }();

      var CompiledTemplate = /*#__PURE__*/function () {
        function CompiledTemplate(isHost, compType, compMeta, ngModule, directives) {
          _classCallCheck2(this, CompiledTemplate);

          this.isHost = isHost;
          this.compType = compType;
          this.compMeta = compMeta;
          this.ngModule = ngModule;
          this.directives = directives;
          this._viewClass = null;
          this.isCompiled = false;
        }

        _createClass2(CompiledTemplate, [{
          key: "compiled",
          value: function compiled(viewClass, rendererType) {
            this._viewClass = viewClass;
            this.compMeta.componentViewType.setDelegate(viewClass);

            for (var prop in rendererType) {
              this.compMeta.rendererType[prop] = rendererType[prop];
            }

            this.isCompiled = true;
          }
        }]);

        return CompiledTemplate;
      }();

      function assertComponent(meta) {
        if (!meta.isComponent) {
          throw new Error("Could not compile '".concat(identifierName(meta.type), "' because it is not a component."));
        }
      }

      function createOutputContext() {
        var importExpr$1 = function importExpr$1(symbol) {
          return importExpr({
            name: identifierName(symbol),
            moduleName: null,
            runtime: symbol
          });
        };

        return {
          statements: [],
          genFilePath: '',
          importExpr: importExpr$1,
          constantPool: new ConstantPool()
        };
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Provides access to reflection data about symbols that the compiler needs.
       */


      var CompileReflector = function CompileReflector() {
        _classCallCheck2(this, CompileReflector);
      };
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Create a {@link UrlResolver} with no package prefix.
       */


      function createUrlResolverWithoutPackagePrefix() {
        return new UrlResolver();
      }

      function createOfflineCompileUrlResolver() {
        return new UrlResolver('.');
      }

      var UrlResolver = /*#__PURE__*/function () {
        function UrlResolverImpl() {
          var _packagePrefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;

          _classCallCheck2(this, UrlResolverImpl);

          this._packagePrefix = _packagePrefix;
        }
        /**
         * Resolves the `url` given the `baseUrl`:
         * - when the `url` is null, the `baseUrl` is returned,
         * - if `url` is relative ('path/to/here', './path/to/here'), the resolved url is a combination of
         * `baseUrl` and `url`,
         * - if `url` is absolute (it has a scheme: 'http://', 'https://' or start with '/'), the `url` is
         * returned as is (ignoring the `baseUrl`)
         */


        _createClass2(UrlResolverImpl, [{
          key: "resolve",
          value: function resolve(baseUrl, url) {
            var resolvedUrl = url;

            if (baseUrl != null && baseUrl.length > 0) {
              resolvedUrl = _resolveUrl(baseUrl, resolvedUrl);
            }

            var resolvedParts = _split(resolvedUrl);

            var prefix = this._packagePrefix;

            if (prefix != null && resolvedParts != null && resolvedParts[_ComponentIndex.Scheme] == 'package') {
              var path = resolvedParts[_ComponentIndex.Path];
              prefix = prefix.replace(/\/+$/, '');
              path = path.replace(/^\/+/, '');
              return "".concat(prefix, "/").concat(path);
            }

            return resolvedUrl;
          }
        }]);

        return UrlResolverImpl;
      }();
      /**
       * Extract the scheme of a URL.
       */


      function getUrlScheme(url) {
        var match = _split(url);

        return match && match[_ComponentIndex.Scheme] || '';
      } // The code below is adapted from Traceur:
      // https://github.com/google/traceur-compiler/blob/9511c1dafa972bf0de1202a8a863bad02f0f95a8/src/runtime/url.js

      /**
       * Builds a URI string from already-encoded parts.
       *
       * No encoding is performed.  Any component may be omitted as either null or
       * undefined.
       *
       * @param opt_scheme The scheme such as 'http'.
       * @param opt_userInfo The user name before the '@'.
       * @param opt_domain The domain such as 'www.google.com', already
       *     URI-encoded.
       * @param opt_port The port number.
       * @param opt_path The path, already URI-encoded.  If it is not
       *     empty, it must begin with a slash.
       * @param opt_queryData The URI-encoded query data.
       * @param opt_fragment The URI-encoded fragment identifier.
       * @return The fully combined URI.
       */


      function _buildFromEncodedParts(opt_scheme, opt_userInfo, opt_domain, opt_port, opt_path, opt_queryData, opt_fragment) {
        var out = [];

        if (opt_scheme != null) {
          out.push(opt_scheme + ':');
        }

        if (opt_domain != null) {
          out.push('//');

          if (opt_userInfo != null) {
            out.push(opt_userInfo + '@');
          }

          out.push(opt_domain);

          if (opt_port != null) {
            out.push(':' + opt_port);
          }
        }

        if (opt_path != null) {
          out.push(opt_path);
        }

        if (opt_queryData != null) {
          out.push('?' + opt_queryData);
        }

        if (opt_fragment != null) {
          out.push('#' + opt_fragment);
        }

        return out.join('');
      }
      /**
       * A regular expression for breaking a URI into its component parts.
       *
       * {@link http://www.gbiv.com/protocols/uri/rfc/rfc3986.html#RFC2234} says
       * As the "first-match-wins" algorithm is identical to the "greedy"
       * disambiguation method used by POSIX regular expressions, it is natural and
       * commonplace to use a regular expression for parsing the potential five
       * components of a URI reference.
       *
       * The following line is the regular expression for breaking-down a
       * well-formed URI reference into its components.
       *
       * <pre>
       * ^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?
       *  12            3  4          5       6  7        8 9
       * </pre>
       *
       * The numbers in the second line above are only to assist readability; they
       * indicate the reference points for each subexpression (i.e., each paired
       * parenthesis). We refer to the value matched for subexpression <n> as $<n>.
       * For example, matching the above expression to
       * <pre>
       *     http://www.ics.uci.edu/pub/ietf/uri/#Related
       * </pre>
       * results in the following subexpression matches:
       * <pre>
       *    $1 = http:
       *    $2 = http
       *    $3 = //www.ics.uci.edu
       *    $4 = www.ics.uci.edu
       *    $5 = /pub/ietf/uri/
       *    $6 = <undefined>
       *    $7 = <undefined>
       *    $8 = #Related
       *    $9 = Related
       * </pre>
       * where <undefined> indicates that the component is not present, as is the
       * case for the query component in the above example. Therefore, we can
       * determine the value of the five components as
       * <pre>
       *    scheme    = $2
       *    authority = $4
       *    path      = $5
       *    query     = $7
       *    fragment  = $9
       * </pre>
       *
       * The regular expression has been modified slightly to expose the
       * userInfo, domain, and port separately from the authority.
       * The modified version yields
       * <pre>
       *    $1 = http              scheme
       *    $2 = <undefined>       userInfo -\
       *    $3 = www.ics.uci.edu   domain     | authority
       *    $4 = <undefined>       port     -/
       *    $5 = /pub/ietf/uri/    path
       *    $6 = <undefined>       query without ?
       *    $7 = Related           fragment without #
       * </pre>
       * @internal
       */


      var _splitRe = new RegExp('^' + '(?:' + '([^:/?#.]+)' + // scheme - ignore special characters
      // used by other URL parts such as :,
      // ?, /, #, and .
      ':)?' + '(?://' + '(?:([^/?#]*)@)?' + // userInfo
      "([\\w\\d\\-\\u0100-\\uffff.%]*)" + // domain - restrict to letters,
      // digits, dashes, dots, percent
      // escapes, and unicode characters.
      '(?::([0-9]+))?' + // port
      ')?' + '([^?#]+)?' + // path
      '(?:\\?([^#]*))?' + // query
      '(?:#(.*))?' + // fragment
      '$');
      /**
       * The index of each URI component in the return value of goog.uri.utils.split.
       * @enum {number}
       */


      var _ComponentIndex;

      (function (_ComponentIndex) {
        _ComponentIndex[_ComponentIndex["Scheme"] = 1] = "Scheme";
        _ComponentIndex[_ComponentIndex["UserInfo"] = 2] = "UserInfo";
        _ComponentIndex[_ComponentIndex["Domain"] = 3] = "Domain";
        _ComponentIndex[_ComponentIndex["Port"] = 4] = "Port";
        _ComponentIndex[_ComponentIndex["Path"] = 5] = "Path";
        _ComponentIndex[_ComponentIndex["QueryData"] = 6] = "QueryData";
        _ComponentIndex[_ComponentIndex["Fragment"] = 7] = "Fragment";
      })(_ComponentIndex || (_ComponentIndex = {}));
      /**
       * Splits a URI into its component parts.
       *
       * Each component can be accessed via the component indices; for example:
       * <pre>
       * goog.uri.utils.split(someStr)[goog.uri.utils.CompontentIndex.QUERY_DATA];
       * </pre>
       *
       * @param uri The URI string to examine.
       * @return Each component still URI-encoded.
       *     Each component that is present will contain the encoded value, whereas
       *     components that are not present will be undefined or empty, depending
       *     on the browser's regular expression implementation.  Never null, since
       *     arbitrary strings may still look like path names.
       */


      function _split(uri) {
        return uri.match(_splitRe);
      }
      /**
       * Removes dot segments in given path component, as described in
       * RFC 3986, section 5.2.4.
       *
       * @param path A non-empty path component.
       * @return Path component with removed dot segments.
       */


      function _removeDotSegments(path) {
        if (path == '/') return '/';
        var leadingSlash = path[0] == '/' ? '/' : '';
        var trailingSlash = path[path.length - 1] === '/' ? '/' : '';
        var segments = path.split('/');
        var out = [];
        var up = 0;

        for (var pos = 0; pos < segments.length; pos++) {
          var segment = segments[pos];

          switch (segment) {
            case '':
            case '.':
              break;

            case '..':
              if (out.length > 0) {
                out.pop();
              } else {
                up++;
              }

              break;

            default:
              out.push(segment);
          }
        }

        if (leadingSlash == '') {
          while (up-- > 0) {
            out.unshift('..');
          }

          if (out.length === 0) out.push('.');
        }

        return leadingSlash + out.join('/') + trailingSlash;
      }
      /**
       * Takes an array of the parts from split and canonicalizes the path part
       * and then joins all the parts.
       */


      function _joinAndCanonicalizePath(parts) {
        var path = parts[_ComponentIndex.Path];
        path = path == null ? '' : _removeDotSegments(path);
        parts[_ComponentIndex.Path] = path;
        return _buildFromEncodedParts(parts[_ComponentIndex.Scheme], parts[_ComponentIndex.UserInfo], parts[_ComponentIndex.Domain], parts[_ComponentIndex.Port], path, parts[_ComponentIndex.QueryData], parts[_ComponentIndex.Fragment]);
      }
      /**
       * Resolves a URL.
       * @param base The URL acting as the base URL.
       * @param to The URL to resolve.
       */


      function _resolveUrl(base, url) {
        var parts = _split(encodeURI(url));

        var baseParts = _split(base);

        if (parts[_ComponentIndex.Scheme] != null) {
          return _joinAndCanonicalizePath(parts);
        } else {
          parts[_ComponentIndex.Scheme] = baseParts[_ComponentIndex.Scheme];
        }

        for (var i = _ComponentIndex.Scheme; i <= _ComponentIndex.Port; i++) {
          if (parts[i] == null) {
            parts[i] = baseParts[i];
          }
        }

        if (parts[_ComponentIndex.Path][0] == '/') {
          return _joinAndCanonicalizePath(parts);
        }

        var path = baseParts[_ComponentIndex.Path];
        if (path == null) path = '/';
        var index = path.lastIndexOf('/');
        path = path.substring(0, index + 1) + parts[_ComponentIndex.Path];
        parts[_ComponentIndex.Path] = path;
        return _joinAndCanonicalizePath(parts);
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var Extractor = /*#__PURE__*/function () {
        function Extractor(host, staticSymbolResolver, messageBundle, metadataResolver) {
          _classCallCheck2(this, Extractor);

          this.host = host;
          this.staticSymbolResolver = staticSymbolResolver;
          this.messageBundle = messageBundle;
          this.metadataResolver = metadataResolver;
        }

        _createClass2(Extractor, [{
          key: "extract",
          value: function extract(rootFiles) {
            var _this349 = this;

            var _analyzeAndValidateNg = analyzeAndValidateNgModules(rootFiles, this.host, this.staticSymbolResolver, this.metadataResolver),
                files = _analyzeAndValidateNg.files,
                ngModules = _analyzeAndValidateNg.ngModules;

            return Promise.all(ngModules.map(function (ngModule) {
              return _this349.metadataResolver.loadNgModuleDirectiveAndPipeMetadata(ngModule.type.reference, false);
            })).then(function () {
              var errors = [];
              files.forEach(function (file) {
                var compMetas = [];
                file.directives.forEach(function (directiveType) {
                  var dirMeta = _this349.metadataResolver.getDirectiveMetadata(directiveType);

                  if (dirMeta && dirMeta.isComponent) {
                    compMetas.push(dirMeta);
                  }
                });
                compMetas.forEach(function (compMeta) {
                  var html = compMeta.template.template; // Template URL points to either an HTML or TS file depending on
                  // whether the file is used with `templateUrl:` or `template:`,
                  // respectively.

                  var templateUrl = compMeta.template.templateUrl;
                  var interpolationConfig = InterpolationConfig.fromArray(compMeta.template.interpolation);
                  errors.push.apply(errors, _toConsumableArray(_this349.messageBundle.updateFromTemplate(html, templateUrl, interpolationConfig)));
                });
              });

              if (errors.length) {
                throw new Error(errors.map(function (e) {
                  return e.toString();
                }).join('\n'));
              }

              return _this349.messageBundle;
            });
          }
        }], [{
          key: "create",
          value: function create(host, locale) {
            var htmlParser = new HtmlParser();
            var urlResolver = createAotUrlResolver(host);
            var symbolCache = new StaticSymbolCache();
            var summaryResolver = new AotSummaryResolver(host, symbolCache);
            var staticSymbolResolver = new StaticSymbolResolver(host, symbolCache, summaryResolver);
            var staticReflector = new StaticReflector(summaryResolver, staticSymbolResolver);
            var config = new CompilerConfig({
              defaultEncapsulation: ViewEncapsulation.Emulated,
              useJit: false
            });
            var normalizer = new DirectiveNormalizer({
              get: function get(url) {
                return host.loadResource(url);
              }
            }, urlResolver, htmlParser, config);
            var elementSchemaRegistry = new DomElementSchemaRegistry();
            var resolver = new CompileMetadataResolver(config, htmlParser, new NgModuleResolver(staticReflector), new DirectiveResolver(staticReflector), new PipeResolver(staticReflector), summaryResolver, elementSchemaRegistry, normalizer, console, symbolCache, staticReflector); // TODO(vicb): implicit tags & attributes

            var messageBundle = new MessageBundle(htmlParser, [], {}, locale);
            var extractor = new Extractor(host, staticSymbolResolver, messageBundle, resolver);
            return {
              extractor: extractor,
              staticReflector: staticReflector
            };
          }
        }]);

        return Extractor;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Processes `Target`s with a given set of directives and performs a binding operation, which
       * returns an object similar to TypeScript's `ts.TypeChecker` that contains knowledge about the
       * target.
       */


      var R3TargetBinder = /*#__PURE__*/function () {
        function R3TargetBinder(directiveMatcher) {
          _classCallCheck2(this, R3TargetBinder);

          this.directiveMatcher = directiveMatcher;
        }
        /**
         * Perform a binding operation on the given `Target` and return a `BoundTarget` which contains
         * metadata about the types referenced in the template.
         */


        _createClass2(R3TargetBinder, [{
          key: "bind",
          value: function bind(target) {
            if (!target.template) {
              // TODO(alxhub): handle targets which contain things like HostBindings, etc.
              throw new Error('Binding without a template not yet supported');
            } // First, parse the template into a `Scope` structure. This operation captures the syntactic
            // scopes in the template and makes them available for later use.


            var scope = Scope.apply(target.template); // Use the `Scope` to extract the entities present at every level of the template.

            var templateEntities = extractTemplateEntities(scope); // Next, perform directive matching on the template using the `DirectiveBinder`. This returns:
            //   - directives: Map of nodes (elements & ng-templates) to the directives on them.
            //   - bindings: Map of inputs, outputs, and attributes to the directive/element that claims
            //     them. TODO(alxhub): handle multiple directives claiming an input/output/etc.
            //   - references: Map of #references to their targets.

            var _DirectiveBinder$appl = DirectiveBinder.apply(target.template, this.directiveMatcher),
                directives = _DirectiveBinder$appl.directives,
                bindings = _DirectiveBinder$appl.bindings,
                references = _DirectiveBinder$appl.references; // Finally, run the TemplateBinder to bind references, variables, and other entities within the
            // template. This extracts all the metadata that doesn't depend on directive matching.


            var _TemplateBinder$apply = TemplateBinder.apply(target.template, scope),
                expressions = _TemplateBinder$apply.expressions,
                symbols = _TemplateBinder$apply.symbols,
                nestingLevel = _TemplateBinder$apply.nestingLevel,
                usedPipes = _TemplateBinder$apply.usedPipes;

            return new R3BoundTarget(target, directives, bindings, references, expressions, symbols, nestingLevel, templateEntities, usedPipes);
          }
        }]);

        return R3TargetBinder;
      }();
      /**
       * Represents a binding scope within a template.
       *
       * Any variables, references, or other named entities declared within the template will
       * be captured and available by name in `namedEntities`. Additionally, child templates will
       * be analyzed and have their child `Scope`s available in `childScopes`.
       */


      var Scope = /*#__PURE__*/function () {
        function Scope(parentScope, template) {
          _classCallCheck2(this, Scope);

          this.parentScope = parentScope;
          this.template = template;
          /**
           * Named members of the `Scope`, such as `Reference`s or `Variable`s.
           */

          this.namedEntities = new Map();
          /**
           * Child `Scope`s for immediately nested `Template`s.
           */

          this.childScopes = new Map();
        }

        _createClass2(Scope, [{
          key: "ingest",
          value:
          /**
           * Internal method to process the template and populate the `Scope`.
           */
          function ingest(template) {
            var _this350 = this;

            if (template instanceof Template) {
              // Variables on an <ng-template> are defined in the inner scope.
              template.variables.forEach(function (node) {
                return _this350.visitVariable(node);
              }); // Process the nodes of the template.

              template.children.forEach(function (node) {
                return node.visit(_this350);
              });
            } else {
              // No overarching `Template` instance, so process the nodes directly.
              template.forEach(function (node) {
                return node.visit(_this350);
              });
            }
          }
        }, {
          key: "visitElement",
          value: function visitElement(element) {
            var _this351 = this;

            // `Element`s in the template may have `Reference`s which are captured in the scope.
            element.references.forEach(function (node) {
              return _this351.visitReference(node);
            }); // Recurse into the `Element`'s children.

            element.children.forEach(function (node) {
              return node.visit(_this351);
            });
          }
        }, {
          key: "visitTemplate",
          value: function visitTemplate(template) {
            var _this352 = this;

            // References on a <ng-template> are defined in the outer scope, so capture them before
            // processing the template's child scope.
            template.references.forEach(function (node) {
              return _this352.visitReference(node);
            }); // Next, create an inner scope and process the template within it.

            var scope = new Scope(this, template);
            scope.ingest(template);
            this.childScopes.set(template, scope);
          }
        }, {
          key: "visitVariable",
          value: function visitVariable(variable) {
            // Declare the variable if it's not already.
            this.maybeDeclare(variable);
          }
        }, {
          key: "visitReference",
          value: function visitReference(reference) {
            // Declare the variable if it's not already.
            this.maybeDeclare(reference);
          } // Unused visitors.

        }, {
          key: "visitContent",
          value: function visitContent(content) {}
        }, {
          key: "visitBoundAttribute",
          value: function visitBoundAttribute(attr) {}
        }, {
          key: "visitBoundEvent",
          value: function visitBoundEvent(event) {}
        }, {
          key: "visitBoundText",
          value: function visitBoundText(text) {}
        }, {
          key: "visitText",
          value: function visitText(text) {}
        }, {
          key: "visitTextAttribute",
          value: function visitTextAttribute(attr) {}
        }, {
          key: "visitIcu",
          value: function visitIcu(icu) {}
        }, {
          key: "maybeDeclare",
          value: function maybeDeclare(thing) {
            // Declare something with a name, as long as that name isn't taken.
            if (!this.namedEntities.has(thing.name)) {
              this.namedEntities.set(thing.name, thing);
            }
          }
          /**
           * Look up a variable within this `Scope`.
           *
           * This can recurse into a parent `Scope` if it's available.
           */

        }, {
          key: "lookup",
          value: function lookup(name) {
            if (this.namedEntities.has(name)) {
              // Found in the local scope.
              return this.namedEntities.get(name);
            } else if (this.parentScope !== null) {
              // Not in the local scope, but there's a parent scope so check there.
              return this.parentScope.lookup(name);
            } else {
              // At the top level and it wasn't found.
              return null;
            }
          }
          /**
           * Get the child scope for a `Template`.
           *
           * This should always be defined.
           */

        }, {
          key: "getChildScope",
          value: function getChildScope(template) {
            var res = this.childScopes.get(template);

            if (res === undefined) {
              throw new Error("Assertion error: child scope for ".concat(template, " not found"));
            }

            return res;
          }
        }], [{
          key: "newRootScope",
          value: function newRootScope() {
            return new Scope(null, null);
          }
          /**
           * Process a template (either as a `Template` sub-template with variables, or a plain array of
           * template `Node`s) and construct its `Scope`.
           */

        }, {
          key: "apply",
          value: function apply(template) {
            var scope = Scope.newRootScope();
            scope.ingest(template);
            return scope;
          }
        }]);

        return Scope;
      }();
      /**
       * Processes a template and matches directives on nodes (elements and templates).
       *
       * Usually used via the static `apply()` method.
       */


      var DirectiveBinder = /*#__PURE__*/function () {
        function DirectiveBinder(matcher, directives, bindings, references) {
          _classCallCheck2(this, DirectiveBinder);

          this.matcher = matcher;
          this.directives = directives;
          this.bindings = bindings;
          this.references = references;
        }
        /**
         * Process a template (list of `Node`s) and perform directive matching against each node.
         *
         * @param template the list of template `Node`s to match (recursively).
         * @param selectorMatcher a `SelectorMatcher` containing the directives that are in scope for
         * this template.
         * @returns three maps which contain information about directives in the template: the
         * `directives` map which lists directives matched on each node, the `bindings` map which
         * indicates which directives claimed which bindings (inputs, outputs, etc), and the `references`
         * map which resolves #references (`Reference`s) within the template to the named directive or
         * template node.
         */


        _createClass2(DirectiveBinder, [{
          key: "ingest",
          value: function ingest(template) {
            var _this353 = this;

            template.forEach(function (node) {
              return node.visit(_this353);
            });
          }
        }, {
          key: "visitElement",
          value: function visitElement(element) {
            this.visitElementOrTemplate(element.name, element);
          }
        }, {
          key: "visitTemplate",
          value: function visitTemplate(template) {
            this.visitElementOrTemplate('ng-template', template);
          }
        }, {
          key: "visitElementOrTemplate",
          value: function visitElementOrTemplate(elementName, node) {
            var _this354 = this;

            // First, determine the HTML shape of the node for the purpose of directive matching.
            // Do this by building up a `CssSelector` for the node.
            var cssSelector = createCssSelector(elementName, getAttrsForDirectiveMatching(node)); // Next, use the `SelectorMatcher` to get the list of directives on the node.

            var directives = [];
            this.matcher.match(cssSelector, function (_, directive) {
              return directives.push(directive);
            });

            if (directives.length > 0) {
              this.directives.set(node, directives);
            } // Resolve any references that are created on this node.


            node.references.forEach(function (ref) {
              var dirTarget = null; // If the reference expression is empty, then it matches the "primary" directive on the node
              // (if there is one). Otherwise it matches the host node itself (either an element or
              // <ng-template> node).

              if (ref.value.trim() === '') {
                // This could be a reference to a component if there is one.
                dirTarget = directives.find(function (dir) {
                  return dir.isComponent;
                }) || null;
              } else {
                // This should be a reference to a directive exported via exportAs.
                dirTarget = directives.find(function (dir) {
                  return dir.exportAs !== null && dir.exportAs.some(function (value) {
                    return value === ref.value;
                  });
                }) || null; // Check if a matching directive was found.

                if (dirTarget === null) {
                  // No matching directive was found - this reference points to an unknown target. Leave it
                  // unmapped.
                  return;
                }
              }

              if (dirTarget !== null) {
                // This reference points to a directive.
                _this354.references.set(ref, {
                  directive: dirTarget,
                  node: node
                });
              } else {
                // This reference points to the node itself.
                _this354.references.set(ref, node);
              }
            });

            var setAttributeBinding = function setAttributeBinding(attribute, ioType) {
              var dir = directives.find(function (dir) {
                return dir[ioType].hasBindingPropertyName(attribute.name);
              });
              var binding = dir !== undefined ? dir : node;

              _this354.bindings.set(attribute, binding);
            }; // Node inputs (bound attributes) and text attributes can be bound to an
            // input on a directive.


            node.inputs.forEach(function (input) {
              return setAttributeBinding(input, 'inputs');
            });
            node.attributes.forEach(function (attr) {
              return setAttributeBinding(attr, 'inputs');
            });

            if (node instanceof Template) {
              node.templateAttrs.forEach(function (attr) {
                return setAttributeBinding(attr, 'inputs');
              });
            } // Node outputs (bound events) can be bound to an output on a directive.


            node.outputs.forEach(function (output) {
              return setAttributeBinding(output, 'outputs');
            }); // Recurse into the node's children.

            node.children.forEach(function (child) {
              return child.visit(_this354);
            });
          } // Unused visitors.

        }, {
          key: "visitContent",
          value: function visitContent(content) {}
        }, {
          key: "visitVariable",
          value: function visitVariable(variable) {}
        }, {
          key: "visitReference",
          value: function visitReference(reference) {}
        }, {
          key: "visitTextAttribute",
          value: function visitTextAttribute(attribute) {}
        }, {
          key: "visitBoundAttribute",
          value: function visitBoundAttribute(attribute) {}
        }, {
          key: "visitBoundEvent",
          value: function visitBoundEvent(attribute) {}
        }, {
          key: "visitBoundAttributeOrEvent",
          value: function visitBoundAttributeOrEvent(node) {}
        }, {
          key: "visitText",
          value: function visitText(text) {}
        }, {
          key: "visitBoundText",
          value: function visitBoundText(text) {}
        }, {
          key: "visitIcu",
          value: function visitIcu(icu) {}
        }], [{
          key: "apply",
          value: function apply(template, selectorMatcher) {
            var directives = new Map();
            var bindings = new Map();
            var references = new Map();
            var matcher = new DirectiveBinder(selectorMatcher, directives, bindings, references);
            matcher.ingest(template);
            return {
              directives: directives,
              bindings: bindings,
              references: references
            };
          }
        }]);

        return DirectiveBinder;
      }();
      /**
       * Processes a template and extract metadata about expressions and symbols within.
       *
       * This is a companion to the `DirectiveBinder` that doesn't require knowledge of directives matched
       * within the template in order to operate.
       *
       * Expressions are visited by the superclass `RecursiveAstVisitor`, with custom logic provided
       * by overridden methods from that visitor.
       */


      var TemplateBinder = /*#__PURE__*/function (_RecursiveAstVisitor$3) {
        _inherits2(TemplateBinder, _RecursiveAstVisitor$3);

        var _super120 = _createSuper2(TemplateBinder);

        function TemplateBinder(bindings, symbols, usedPipes, nestingLevel, scope, template, level) {
          var _this355;

          _classCallCheck2(this, TemplateBinder);

          _this355 = _super120.call(this);
          _this355.bindings = bindings;
          _this355.symbols = symbols;
          _this355.usedPipes = usedPipes;
          _this355.nestingLevel = nestingLevel;
          _this355.scope = scope;
          _this355.template = template;
          _this355.level = level;
          _this355.pipesUsed = []; // Save a bit of processing time by constructing this closure in advance.

          _this355.visitNode = function (node) {
            return node.visit(_assertThisInitialized2(_this355));
          };

          return _this355;
        } // This method is defined to reconcile the type of TemplateBinder since both
        // RecursiveAstVisitor and Visitor define the visit() method in their
        // interfaces.


        _createClass2(TemplateBinder, [{
          key: "visit",
          value: function visit(node, context) {
            if (node instanceof AST) {
              node.visit(this, context);
            } else {
              node.visit(this);
            }
          }
          /**
           * Process a template and extract metadata about expressions and symbols within.
           *
           * @param template the nodes of the template to process
           * @param scope the `Scope` of the template being processed.
           * @returns three maps which contain metadata about the template: `expressions` which interprets
           * special `AST` nodes in expressions as pointing to references or variables declared within the
           * template, `symbols` which maps those variables and references to the nested `Template` which
           * declares them, if any, and `nestingLevel` which associates each `Template` with a integer
           * nesting level (how many levels deep within the template structure the `Template` is), starting
           * at 1.
           */

        }, {
          key: "ingest",
          value: function ingest(template) {
            if (template instanceof Template) {
              // For <ng-template>s, process only variables and child nodes. Inputs, outputs, templateAttrs,
              // and references were all processed in the scope of the containing template.
              template.variables.forEach(this.visitNode);
              template.children.forEach(this.visitNode); // Set the nesting level.

              this.nestingLevel.set(template, this.level);
            } else {
              // Visit each node from the top-level template.
              template.forEach(this.visitNode);
            }
          }
        }, {
          key: "visitElement",
          value: function visitElement(element) {
            // Visit the inputs, outputs, and children of the element.
            element.inputs.forEach(this.visitNode);
            element.outputs.forEach(this.visitNode);
            element.children.forEach(this.visitNode);
          }
        }, {
          key: "visitTemplate",
          value: function visitTemplate(template) {
            // First, visit inputs, outputs and template attributes of the template node.
            template.inputs.forEach(this.visitNode);
            template.outputs.forEach(this.visitNode);
            template.templateAttrs.forEach(this.visitNode); // References are also evaluated in the outer context.

            template.references.forEach(this.visitNode); // Next, recurse into the template using its scope, and bumping the nesting level up by one.

            var childScope = this.scope.getChildScope(template);
            var binder = new TemplateBinder(this.bindings, this.symbols, this.usedPipes, this.nestingLevel, childScope, template, this.level + 1);
            binder.ingest(template);
          }
        }, {
          key: "visitVariable",
          value: function visitVariable(variable) {
            // Register the `Variable` as a symbol in the current `Template`.
            if (this.template !== null) {
              this.symbols.set(variable, this.template);
            }
          }
        }, {
          key: "visitReference",
          value: function visitReference(reference) {
            // Register the `Reference` as a symbol in the current `Template`.
            if (this.template !== null) {
              this.symbols.set(reference, this.template);
            }
          } // Unused template visitors

        }, {
          key: "visitText",
          value: function visitText(text) {}
        }, {
          key: "visitContent",
          value: function visitContent(content) {}
        }, {
          key: "visitTextAttribute",
          value: function visitTextAttribute(attribute) {}
        }, {
          key: "visitIcu",
          value: function visitIcu(icu) {
            var _this356 = this;

            Object.keys(icu.vars).forEach(function (key) {
              return icu.vars[key].visit(_this356);
            });
            Object.keys(icu.placeholders).forEach(function (key) {
              return icu.placeholders[key].visit(_this356);
            });
          } // The remaining visitors are concerned with processing AST expressions within template bindings

        }, {
          key: "visitBoundAttribute",
          value: function visitBoundAttribute(attribute) {
            attribute.value.visit(this);
          }
        }, {
          key: "visitBoundEvent",
          value: function visitBoundEvent(event) {
            event.handler.visit(this);
          }
        }, {
          key: "visitBoundText",
          value: function visitBoundText(text) {
            text.value.visit(this);
          }
        }, {
          key: "visitPipe",
          value: function visitPipe(ast, context) {
            this.usedPipes.add(ast.name);
            return _get2(_getPrototypeOf2(TemplateBinder.prototype), "visitPipe", this).call(this, ast, context);
          } // These five types of AST expressions can refer to expression roots, which could be variables
          // or references in the current scope.

        }, {
          key: "visitPropertyRead",
          value: function visitPropertyRead(ast, context) {
            this.maybeMap(context, ast, ast.name);
            return _get2(_getPrototypeOf2(TemplateBinder.prototype), "visitPropertyRead", this).call(this, ast, context);
          }
        }, {
          key: "visitSafePropertyRead",
          value: function visitSafePropertyRead(ast, context) {
            this.maybeMap(context, ast, ast.name);
            return _get2(_getPrototypeOf2(TemplateBinder.prototype), "visitSafePropertyRead", this).call(this, ast, context);
          }
        }, {
          key: "visitPropertyWrite",
          value: function visitPropertyWrite(ast, context) {
            this.maybeMap(context, ast, ast.name);
            return _get2(_getPrototypeOf2(TemplateBinder.prototype), "visitPropertyWrite", this).call(this, ast, context);
          }
        }, {
          key: "visitMethodCall",
          value: function visitMethodCall(ast, context) {
            this.maybeMap(context, ast, ast.name);
            return _get2(_getPrototypeOf2(TemplateBinder.prototype), "visitMethodCall", this).call(this, ast, context);
          }
        }, {
          key: "visitSafeMethodCall",
          value: function visitSafeMethodCall(ast, context) {
            this.maybeMap(context, ast, ast.name);
            return _get2(_getPrototypeOf2(TemplateBinder.prototype), "visitSafeMethodCall", this).call(this, ast, context);
          }
        }, {
          key: "maybeMap",
          value: function maybeMap(scope, ast, name) {
            // If the receiver of the expression isn't the `ImplicitReceiver`, this isn't the root of an
            // `AST` expression that maps to a `Variable` or `Reference`.
            if (!(ast.receiver instanceof ImplicitReceiver)) {
              return;
            } // Check whether the name exists in the current scope. If so, map it. Otherwise, the name is
            // probably a property on the top-level component context.


            var target = this.scope.lookup(name);

            if (target !== null) {
              this.bindings.set(ast, target);
            }
          }
        }], [{
          key: "apply",
          value: function apply(template, scope) {
            var expressions = new Map();
            var symbols = new Map();
            var nestingLevel = new Map();
            var usedPipes = new Set(); // The top-level template has nesting level 0.

            var binder = new TemplateBinder(expressions, symbols, usedPipes, nestingLevel, scope, template instanceof Template ? template : null, 0);
            binder.ingest(template);
            return {
              expressions: expressions,
              symbols: symbols,
              nestingLevel: nestingLevel,
              usedPipes: usedPipes
            };
          }
        }]);

        return TemplateBinder;
      }(RecursiveAstVisitor$1);
      /**
       * Metadata container for a `Target` that allows queries for specific bits of metadata.
       *
       * See `BoundTarget` for documentation on the individual methods.
       */


      var R3BoundTarget = /*#__PURE__*/function () {
        function R3BoundTarget(target, directives, bindings, references, exprTargets, symbols, nestingLevel, templateEntities, usedPipes) {
          _classCallCheck2(this, R3BoundTarget);

          this.target = target;
          this.directives = directives;
          this.bindings = bindings;
          this.references = references;
          this.exprTargets = exprTargets;
          this.symbols = symbols;
          this.nestingLevel = nestingLevel;
          this.templateEntities = templateEntities;
          this.usedPipes = usedPipes;
        }

        _createClass2(R3BoundTarget, [{
          key: "getEntitiesInTemplateScope",
          value: function getEntitiesInTemplateScope(template) {
            var _a;

            return (_a = this.templateEntities.get(template)) !== null && _a !== void 0 ? _a : new Set();
          }
        }, {
          key: "getDirectivesOfNode",
          value: function getDirectivesOfNode(node) {
            return this.directives.get(node) || null;
          }
        }, {
          key: "getReferenceTarget",
          value: function getReferenceTarget(ref) {
            return this.references.get(ref) || null;
          }
        }, {
          key: "getConsumerOfBinding",
          value: function getConsumerOfBinding(binding) {
            return this.bindings.get(binding) || null;
          }
        }, {
          key: "getExpressionTarget",
          value: function getExpressionTarget(expr) {
            return this.exprTargets.get(expr) || null;
          }
        }, {
          key: "getTemplateOfSymbol",
          value: function getTemplateOfSymbol(symbol) {
            return this.symbols.get(symbol) || null;
          }
        }, {
          key: "getNestingLevel",
          value: function getNestingLevel(template) {
            return this.nestingLevel.get(template) || 0;
          }
        }, {
          key: "getUsedDirectives",
          value: function getUsedDirectives() {
            var set = new Set();
            this.directives.forEach(function (dirs) {
              return dirs.forEach(function (dir) {
                return set.add(dir);
              });
            });
            return Array.from(set.values());
          }
        }, {
          key: "getUsedPipes",
          value: function getUsedPipes() {
            return Array.from(this.usedPipes);
          }
        }]);

        return R3BoundTarget;
      }();

      function extractTemplateEntities(rootScope) {
        var entityMap = new Map();

        function extractScopeEntities(scope) {
          if (entityMap.has(scope.template)) {
            return entityMap.get(scope.template);
          }

          var currentEntities = scope.namedEntities;
          var templateEntities;

          if (scope.parentScope !== null) {
            templateEntities = new Map([].concat(_toConsumableArray(extractScopeEntities(scope.parentScope)), _toConsumableArray(currentEntities)));
          } else {
            templateEntities = new Map(currentEntities);
          }

          entityMap.set(scope.template, templateEntities);
          return templateEntities;
        }

        var scopesToProcess = [rootScope];

        while (scopesToProcess.length > 0) {
          var scope = scopesToProcess.pop();

          var _iterator44 = _createForOfIteratorHelper(scope.childScopes.values()),
              _step44;

          try {
            for (_iterator44.s(); !(_step44 = _iterator44.n()).done;) {
              var childScope = _step44.value;
              scopesToProcess.push(childScope);
            }
          } catch (err) {
            _iterator44.e(err);
          } finally {
            _iterator44.f();
          }

          extractScopeEntities(scope);
        }

        var templateEntities = new Map();

        var _iterator45 = _createForOfIteratorHelper(entityMap),
            _step45;

        try {
          for (_iterator45.s(); !(_step45 = _iterator45.n()).done;) {
            var _step45$value = _slicedToArray(_step45.value, 2),
                template = _step45$value[0],
                entities = _step45$value[1];

            templateEntities.set(template, new Set(entities.values()));
          }
        } catch (err) {
          _iterator45.e(err);
        } finally {
          _iterator45.f();
        }

        return templateEntities;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */
      // This file only reexports content of the `src` folder. Keep it that way.
      // This function call has a global side effects and publishes the compiler into global namespace for
      // the late binding of the Compiler to the @angular/core for jit compilation.


      publishFacade(_global);
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */
      // This file only reexports content of the `src` folder. Keep it that way.

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */
      //# sourceMappingURL=compiler.js.map

      /***/
    },

    /***/
    "1uah": function uah(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "zip", function () {
        return zip;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ZipOperator", function () {
        return ZipOperator;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ZipSubscriber", function () {
        return ZipSubscriber;
      });
      /* harmony import */


      var _fromArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ./fromArray */
      "yCtX");
      /* harmony import */


      var _util_isArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../util/isArray */
      "DH7j");
      /* harmony import */


      var _Subscriber__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../Subscriber */
      "7o/Q");
      /* harmony import */


      var _internal_symbol_iterator__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../../internal/symbol/iterator */
      "Lhse");
      /* harmony import */


      var _innerSubscribe__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! ../innerSubscribe */
      "zx2A");

      function zip() {
        for (var _len13 = arguments.length, observables = new Array(_len13), _key14 = 0; _key14 < _len13; _key14++) {
          observables[_key14] = arguments[_key14];
        }

        var resultSelector = observables[observables.length - 1];

        if (typeof resultSelector === 'function') {
          observables.pop();
        }

        return Object(_fromArray__WEBPACK_IMPORTED_MODULE_0__["fromArray"])(observables, undefined).lift(new ZipOperator(resultSelector));
      }

      var ZipOperator = /*#__PURE__*/function () {
        function ZipOperator(resultSelector) {
          _classCallCheck2(this, ZipOperator);

          this.resultSelector = resultSelector;
        }

        _createClass2(ZipOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            return source.subscribe(new ZipSubscriber(subscriber, this.resultSelector));
          }
        }]);

        return ZipOperator;
      }();

      var ZipSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_4) {
        _inherits2(ZipSubscriber, _Subscriber__WEBPACK_4);

        var _super121 = _createSuper2(ZipSubscriber);

        function ZipSubscriber(destination, resultSelector) {
          var _this357;

          var values = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : Object.create(null);

          _classCallCheck2(this, ZipSubscriber);

          _this357 = _super121.call(this, destination);
          _this357.resultSelector = resultSelector;
          _this357.iterators = [];
          _this357.active = 0;
          _this357.resultSelector = typeof resultSelector === 'function' ? resultSelector : undefined;
          return _this357;
        }

        _createClass2(ZipSubscriber, [{
          key: "_next",
          value: function _next(value) {
            var iterators = this.iterators;

            if (Object(_util_isArray__WEBPACK_IMPORTED_MODULE_1__["isArray"])(value)) {
              iterators.push(new StaticArrayIterator(value));
            } else if (typeof value[_internal_symbol_iterator__WEBPACK_IMPORTED_MODULE_3__["iterator"]] === 'function') {
              iterators.push(new StaticIterator(value[_internal_symbol_iterator__WEBPACK_IMPORTED_MODULE_3__["iterator"]]()));
            } else {
              iterators.push(new ZipBufferIterator(this.destination, this, value));
            }
          }
        }, {
          key: "_complete",
          value: function _complete() {
            var iterators = this.iterators;
            var len = iterators.length;
            this.unsubscribe();

            if (len === 0) {
              this.destination.complete();
              return;
            }

            this.active = len;

            for (var i = 0; i < len; i++) {
              var iterator = iterators[i];

              if (iterator.stillUnsubscribed) {
                var destination = this.destination;
                destination.add(iterator.subscribe());
              } else {
                this.active--;
              }
            }
          }
        }, {
          key: "notifyInactive",
          value: function notifyInactive() {
            this.active--;

            if (this.active === 0) {
              this.destination.complete();
            }
          }
        }, {
          key: "checkIterators",
          value: function checkIterators() {
            var iterators = this.iterators;
            var len = iterators.length;
            var destination = this.destination;

            for (var i = 0; i < len; i++) {
              var iterator = iterators[i];

              if (typeof iterator.hasValue === 'function' && !iterator.hasValue()) {
                return;
              }
            }

            var shouldComplete = false;
            var args = [];

            for (var _i13 = 0; _i13 < len; _i13++) {
              var _iterator46 = iterators[_i13];

              var result = _iterator46.next();

              if (_iterator46.hasCompleted()) {
                shouldComplete = true;
              }

              if (result.done) {
                destination.complete();
                return;
              }

              args.push(result.value);
            }

            if (this.resultSelector) {
              this._tryresultSelector(args);
            } else {
              destination.next(args);
            }

            if (shouldComplete) {
              destination.complete();
            }
          }
        }, {
          key: "_tryresultSelector",
          value: function _tryresultSelector(args) {
            var result;

            try {
              result = this.resultSelector.apply(this, args);
            } catch (err) {
              this.destination.error(err);
              return;
            }

            this.destination.next(result);
          }
        }]);

        return ZipSubscriber;
      }(_Subscriber__WEBPACK_IMPORTED_MODULE_2__["Subscriber"]);

      var StaticIterator = /*#__PURE__*/function () {
        function StaticIterator(iterator) {
          _classCallCheck2(this, StaticIterator);

          this.iterator = iterator;
          this.nextResult = iterator.next();
        }

        _createClass2(StaticIterator, [{
          key: "hasValue",
          value: function hasValue() {
            return true;
          }
        }, {
          key: "next",
          value: function next() {
            var result = this.nextResult;
            this.nextResult = this.iterator.next();
            return result;
          }
        }, {
          key: "hasCompleted",
          value: function hasCompleted() {
            var nextResult = this.nextResult;
            return Boolean(nextResult && nextResult.done);
          }
        }]);

        return StaticIterator;
      }();

      var StaticArrayIterator = /*#__PURE__*/function (_internal_symbol_iter) {
        function StaticArrayIterator(array) {
          _classCallCheck2(this, StaticArrayIterator);

          this.array = array;
          this.index = 0;
          this.length = 0;
          this.length = array.length;
        }

        _createClass2(StaticArrayIterator, [{
          key: _internal_symbol_iter,
          value: function value() {
            return this;
          }
        }, {
          key: "next",
          value: function next(value) {
            var i = this.index++;
            var array = this.array;
            return i < this.length ? {
              value: array[i],
              done: false
            } : {
              value: null,
              done: true
            };
          }
        }, {
          key: "hasValue",
          value: function hasValue() {
            return this.array.length > this.index;
          }
        }, {
          key: "hasCompleted",
          value: function hasCompleted() {
            return this.array.length === this.index;
          }
        }]);

        return StaticArrayIterator;
      }(_internal_symbol_iterator__WEBPACK_IMPORTED_MODULE_3__["iterator"]);

      var ZipBufferIterator = /*#__PURE__*/function (_innerSubscribe__WEBP3, _internal_symbol_iter2) {
        _inherits2(ZipBufferIterator, _innerSubscribe__WEBP3);

        var _super122 = _createSuper2(ZipBufferIterator);

        function ZipBufferIterator(destination, parent, observable) {
          var _this358;

          _classCallCheck2(this, ZipBufferIterator);

          _this358 = _super122.call(this, destination);
          _this358.parent = parent;
          _this358.observable = observable;
          _this358.stillUnsubscribed = true;
          _this358.buffer = [];
          _this358.isComplete = false;
          return _this358;
        }

        _createClass2(ZipBufferIterator, [{
          key: _internal_symbol_iter2,
          value: function value() {
            return this;
          }
        }, {
          key: "next",
          value: function next() {
            var buffer = this.buffer;

            if (buffer.length === 0 && this.isComplete) {
              return {
                value: null,
                done: true
              };
            } else {
              return {
                value: buffer.shift(),
                done: false
              };
            }
          }
        }, {
          key: "hasValue",
          value: function hasValue() {
            return this.buffer.length > 0;
          }
        }, {
          key: "hasCompleted",
          value: function hasCompleted() {
            return this.buffer.length === 0 && this.isComplete;
          }
        }, {
          key: "notifyComplete",
          value: function notifyComplete() {
            if (this.buffer.length > 0) {
              this.isComplete = true;
              this.parent.notifyInactive();
            } else {
              this.destination.complete();
            }
          }
        }, {
          key: "notifyNext",
          value: function notifyNext(innerValue) {
            this.buffer.push(innerValue);
            this.parent.checkIterators();
          }
        }, {
          key: "subscribe",
          value: function subscribe() {
            return Object(_innerSubscribe__WEBPACK_IMPORTED_MODULE_4__["innerSubscribe"])(this.observable, new _innerSubscribe__WEBPACK_IMPORTED_MODULE_4__["SimpleInnerSubscriber"](this));
          }
        }]);

        return ZipBufferIterator;
      }(_innerSubscribe__WEBPACK_IMPORTED_MODULE_4__["SimpleOuterSubscriber"], _internal_symbol_iterator__WEBPACK_IMPORTED_MODULE_3__["iterator"]); //# sourceMappingURL=zip.js.map

      /***/

    },

    /***/
    "1uat": function uat(module, exports, __webpack_require__) {
      ;

      (function (root, factory, undef) {
        if (true) {
          // CommonJS
          module.exports = exports = factory(__webpack_require__(
          /*! ./core */
          "Ib8C"), __webpack_require__(
          /*! ./x64-core */
          "MlIO"));
        } else {}
      })(this, function (CryptoJS) {
        (function () {
          // Shortcuts
          var C = CryptoJS;
          var C_lib = C.lib;
          var Hasher = C_lib.Hasher;
          var C_x64 = C.x64;
          var X64Word = C_x64.Word;
          var X64WordArray = C_x64.WordArray;
          var C_algo = C.algo;

          function X64Word_create() {
            return X64Word.create.apply(X64Word, arguments);
          } // Constants


          var K = [X64Word_create(0x428a2f98, 0xd728ae22), X64Word_create(0x71374491, 0x23ef65cd), X64Word_create(0xb5c0fbcf, 0xec4d3b2f), X64Word_create(0xe9b5dba5, 0x8189dbbc), X64Word_create(0x3956c25b, 0xf348b538), X64Word_create(0x59f111f1, 0xb605d019), X64Word_create(0x923f82a4, 0xaf194f9b), X64Word_create(0xab1c5ed5, 0xda6d8118), X64Word_create(0xd807aa98, 0xa3030242), X64Word_create(0x12835b01, 0x45706fbe), X64Word_create(0x243185be, 0x4ee4b28c), X64Word_create(0x550c7dc3, 0xd5ffb4e2), X64Word_create(0x72be5d74, 0xf27b896f), X64Word_create(0x80deb1fe, 0x3b1696b1), X64Word_create(0x9bdc06a7, 0x25c71235), X64Word_create(0xc19bf174, 0xcf692694), X64Word_create(0xe49b69c1, 0x9ef14ad2), X64Word_create(0xefbe4786, 0x384f25e3), X64Word_create(0x0fc19dc6, 0x8b8cd5b5), X64Word_create(0x240ca1cc, 0x77ac9c65), X64Word_create(0x2de92c6f, 0x592b0275), X64Word_create(0x4a7484aa, 0x6ea6e483), X64Word_create(0x5cb0a9dc, 0xbd41fbd4), X64Word_create(0x76f988da, 0x831153b5), X64Word_create(0x983e5152, 0xee66dfab), X64Word_create(0xa831c66d, 0x2db43210), X64Word_create(0xb00327c8, 0x98fb213f), X64Word_create(0xbf597fc7, 0xbeef0ee4), X64Word_create(0xc6e00bf3, 0x3da88fc2), X64Word_create(0xd5a79147, 0x930aa725), X64Word_create(0x06ca6351, 0xe003826f), X64Word_create(0x14292967, 0x0a0e6e70), X64Word_create(0x27b70a85, 0x46d22ffc), X64Word_create(0x2e1b2138, 0x5c26c926), X64Word_create(0x4d2c6dfc, 0x5ac42aed), X64Word_create(0x53380d13, 0x9d95b3df), X64Word_create(0x650a7354, 0x8baf63de), X64Word_create(0x766a0abb, 0x3c77b2a8), X64Word_create(0x81c2c92e, 0x47edaee6), X64Word_create(0x92722c85, 0x1482353b), X64Word_create(0xa2bfe8a1, 0x4cf10364), X64Word_create(0xa81a664b, 0xbc423001), X64Word_create(0xc24b8b70, 0xd0f89791), X64Word_create(0xc76c51a3, 0x0654be30), X64Word_create(0xd192e819, 0xd6ef5218), X64Word_create(0xd6990624, 0x5565a910), X64Word_create(0xf40e3585, 0x5771202a), X64Word_create(0x106aa070, 0x32bbd1b8), X64Word_create(0x19a4c116, 0xb8d2d0c8), X64Word_create(0x1e376c08, 0x5141ab53), X64Word_create(0x2748774c, 0xdf8eeb99), X64Word_create(0x34b0bcb5, 0xe19b48a8), X64Word_create(0x391c0cb3, 0xc5c95a63), X64Word_create(0x4ed8aa4a, 0xe3418acb), X64Word_create(0x5b9cca4f, 0x7763e373), X64Word_create(0x682e6ff3, 0xd6b2b8a3), X64Word_create(0x748f82ee, 0x5defb2fc), X64Word_create(0x78a5636f, 0x43172f60), X64Word_create(0x84c87814, 0xa1f0ab72), X64Word_create(0x8cc70208, 0x1a6439ec), X64Word_create(0x90befffa, 0x23631e28), X64Word_create(0xa4506ceb, 0xde82bde9), X64Word_create(0xbef9a3f7, 0xb2c67915), X64Word_create(0xc67178f2, 0xe372532b), X64Word_create(0xca273ece, 0xea26619c), X64Word_create(0xd186b8c7, 0x21c0c207), X64Word_create(0xeada7dd6, 0xcde0eb1e), X64Word_create(0xf57d4f7f, 0xee6ed178), X64Word_create(0x06f067aa, 0x72176fba), X64Word_create(0x0a637dc5, 0xa2c898a6), X64Word_create(0x113f9804, 0xbef90dae), X64Word_create(0x1b710b35, 0x131c471b), X64Word_create(0x28db77f5, 0x23047d84), X64Word_create(0x32caab7b, 0x40c72493), X64Word_create(0x3c9ebe0a, 0x15c9bebc), X64Word_create(0x431d67c4, 0x9c100d4c), X64Word_create(0x4cc5d4be, 0xcb3e42b6), X64Word_create(0x597f299c, 0xfc657e2a), X64Word_create(0x5fcb6fab, 0x3ad6faec), X64Word_create(0x6c44198c, 0x4a475817)]; // Reusable objects

          var W = [];

          (function () {
            for (var i = 0; i < 80; i++) {
              W[i] = X64Word_create();
            }
          })();
          /**
           * SHA-512 hash algorithm.
           */


          var SHA512 = C_algo.SHA512 = Hasher.extend({
            _doReset: function _doReset() {
              this._hash = new X64WordArray.init([new X64Word.init(0x6a09e667, 0xf3bcc908), new X64Word.init(0xbb67ae85, 0x84caa73b), new X64Word.init(0x3c6ef372, 0xfe94f82b), new X64Word.init(0xa54ff53a, 0x5f1d36f1), new X64Word.init(0x510e527f, 0xade682d1), new X64Word.init(0x9b05688c, 0x2b3e6c1f), new X64Word.init(0x1f83d9ab, 0xfb41bd6b), new X64Word.init(0x5be0cd19, 0x137e2179)]);
            },
            _doProcessBlock: function _doProcessBlock(M, offset) {
              // Shortcuts
              var H = this._hash.words;
              var H0 = H[0];
              var H1 = H[1];
              var H2 = H[2];
              var H3 = H[3];
              var H4 = H[4];
              var H5 = H[5];
              var H6 = H[6];
              var H7 = H[7];
              var H0h = H0.high;
              var H0l = H0.low;
              var H1h = H1.high;
              var H1l = H1.low;
              var H2h = H2.high;
              var H2l = H2.low;
              var H3h = H3.high;
              var H3l = H3.low;
              var H4h = H4.high;
              var H4l = H4.low;
              var H5h = H5.high;
              var H5l = H5.low;
              var H6h = H6.high;
              var H6l = H6.low;
              var H7h = H7.high;
              var H7l = H7.low; // Working variables

              var ah = H0h;
              var al = H0l;
              var bh = H1h;
              var bl = H1l;
              var ch = H2h;
              var cl = H2l;
              var dh = H3h;
              var dl = H3l;
              var eh = H4h;
              var el = H4l;
              var fh = H5h;
              var fl = H5l;
              var gh = H6h;
              var gl = H6l;
              var hh = H7h;
              var hl = H7l; // Rounds

              for (var i = 0; i < 80; i++) {
                var Wil;
                var Wih; // Shortcut

                var Wi = W[i]; // Extend message

                if (i < 16) {
                  Wih = Wi.high = M[offset + i * 2] | 0;
                  Wil = Wi.low = M[offset + i * 2 + 1] | 0;
                } else {
                  // Gamma0
                  var gamma0x = W[i - 15];
                  var gamma0xh = gamma0x.high;
                  var gamma0xl = gamma0x.low;
                  var gamma0h = (gamma0xh >>> 1 | gamma0xl << 31) ^ (gamma0xh >>> 8 | gamma0xl << 24) ^ gamma0xh >>> 7;
                  var gamma0l = (gamma0xl >>> 1 | gamma0xh << 31) ^ (gamma0xl >>> 8 | gamma0xh << 24) ^ (gamma0xl >>> 7 | gamma0xh << 25); // Gamma1

                  var gamma1x = W[i - 2];
                  var gamma1xh = gamma1x.high;
                  var gamma1xl = gamma1x.low;
                  var gamma1h = (gamma1xh >>> 19 | gamma1xl << 13) ^ (gamma1xh << 3 | gamma1xl >>> 29) ^ gamma1xh >>> 6;
                  var gamma1l = (gamma1xl >>> 19 | gamma1xh << 13) ^ (gamma1xl << 3 | gamma1xh >>> 29) ^ (gamma1xl >>> 6 | gamma1xh << 26); // W[i] = gamma0 + W[i - 7] + gamma1 + W[i - 16]

                  var Wi7 = W[i - 7];
                  var Wi7h = Wi7.high;
                  var Wi7l = Wi7.low;
                  var Wi16 = W[i - 16];
                  var Wi16h = Wi16.high;
                  var Wi16l = Wi16.low;
                  Wil = gamma0l + Wi7l;
                  Wih = gamma0h + Wi7h + (Wil >>> 0 < gamma0l >>> 0 ? 1 : 0);
                  Wil = Wil + gamma1l;
                  Wih = Wih + gamma1h + (Wil >>> 0 < gamma1l >>> 0 ? 1 : 0);
                  Wil = Wil + Wi16l;
                  Wih = Wih + Wi16h + (Wil >>> 0 < Wi16l >>> 0 ? 1 : 0);
                  Wi.high = Wih;
                  Wi.low = Wil;
                }

                var chh = eh & fh ^ ~eh & gh;
                var chl = el & fl ^ ~el & gl;
                var majh = ah & bh ^ ah & ch ^ bh & ch;
                var majl = al & bl ^ al & cl ^ bl & cl;
                var sigma0h = (ah >>> 28 | al << 4) ^ (ah << 30 | al >>> 2) ^ (ah << 25 | al >>> 7);
                var sigma0l = (al >>> 28 | ah << 4) ^ (al << 30 | ah >>> 2) ^ (al << 25 | ah >>> 7);
                var sigma1h = (eh >>> 14 | el << 18) ^ (eh >>> 18 | el << 14) ^ (eh << 23 | el >>> 9);
                var sigma1l = (el >>> 14 | eh << 18) ^ (el >>> 18 | eh << 14) ^ (el << 23 | eh >>> 9); // t1 = h + sigma1 + ch + K[i] + W[i]

                var Ki = K[i];
                var Kih = Ki.high;
                var Kil = Ki.low;
                var t1l = hl + sigma1l;
                var t1h = hh + sigma1h + (t1l >>> 0 < hl >>> 0 ? 1 : 0);
                var t1l = t1l + chl;
                var t1h = t1h + chh + (t1l >>> 0 < chl >>> 0 ? 1 : 0);
                var t1l = t1l + Kil;
                var t1h = t1h + Kih + (t1l >>> 0 < Kil >>> 0 ? 1 : 0);
                var t1l = t1l + Wil;
                var t1h = t1h + Wih + (t1l >>> 0 < Wil >>> 0 ? 1 : 0); // t2 = sigma0 + maj

                var t2l = sigma0l + majl;
                var t2h = sigma0h + majh + (t2l >>> 0 < sigma0l >>> 0 ? 1 : 0); // Update working variables

                hh = gh;
                hl = gl;
                gh = fh;
                gl = fl;
                fh = eh;
                fl = el;
                el = dl + t1l | 0;
                eh = dh + t1h + (el >>> 0 < dl >>> 0 ? 1 : 0) | 0;
                dh = ch;
                dl = cl;
                ch = bh;
                cl = bl;
                bh = ah;
                bl = al;
                al = t1l + t2l | 0;
                ah = t1h + t2h + (al >>> 0 < t1l >>> 0 ? 1 : 0) | 0;
              } // Intermediate hash value


              H0l = H0.low = H0l + al;
              H0.high = H0h + ah + (H0l >>> 0 < al >>> 0 ? 1 : 0);
              H1l = H1.low = H1l + bl;
              H1.high = H1h + bh + (H1l >>> 0 < bl >>> 0 ? 1 : 0);
              H2l = H2.low = H2l + cl;
              H2.high = H2h + ch + (H2l >>> 0 < cl >>> 0 ? 1 : 0);
              H3l = H3.low = H3l + dl;
              H3.high = H3h + dh + (H3l >>> 0 < dl >>> 0 ? 1 : 0);
              H4l = H4.low = H4l + el;
              H4.high = H4h + eh + (H4l >>> 0 < el >>> 0 ? 1 : 0);
              H5l = H5.low = H5l + fl;
              H5.high = H5h + fh + (H5l >>> 0 < fl >>> 0 ? 1 : 0);
              H6l = H6.low = H6l + gl;
              H6.high = H6h + gh + (H6l >>> 0 < gl >>> 0 ? 1 : 0);
              H7l = H7.low = H7l + hl;
              H7.high = H7h + hh + (H7l >>> 0 < hl >>> 0 ? 1 : 0);
            },
            _doFinalize: function _doFinalize() {
              // Shortcuts
              var data = this._data;
              var dataWords = data.words;
              var nBitsTotal = this._nDataBytes * 8;
              var nBitsLeft = data.sigBytes * 8; // Add padding

              dataWords[nBitsLeft >>> 5] |= 0x80 << 24 - nBitsLeft % 32;
              dataWords[(nBitsLeft + 128 >>> 10 << 5) + 30] = Math.floor(nBitsTotal / 0x100000000);
              dataWords[(nBitsLeft + 128 >>> 10 << 5) + 31] = nBitsTotal;
              data.sigBytes = dataWords.length * 4; // Hash final blocks

              this._process(); // Convert hash to 32-bit word array before returning


              var hash = this._hash.toX32(); // Return final computed hash


              return hash;
            },
            clone: function clone() {
              var clone = Hasher.clone.call(this);
              clone._hash = this._hash.clone();
              return clone;
            },
            blockSize: 1024 / 32
          });
          /**
           * Shortcut function to the hasher's object interface.
           *
           * @param {WordArray|string} message The message to hash.
           *
           * @return {WordArray} The hash.
           *
           * @static
           *
           * @example
           *
           *     var hash = CryptoJS.SHA512('message');
           *     var hash = CryptoJS.SHA512(wordArray);
           */

          C.SHA512 = Hasher._createHelper(SHA512);
          /**
           * Shortcut function to the HMAC's object interface.
           *
           * @param {WordArray|string} message The message to hash.
           * @param {WordArray|string} key The secret key.
           *
           * @return {WordArray} The HMAC.
           *
           * @static
           *
           * @example
           *
           *     var hmac = CryptoJS.HmacSHA512(message, key);
           */

          C.HmacSHA512 = Hasher._createHmacHelper(SHA512);
        })();

        return CryptoJS.SHA512;
      });
      /***/

    },

    /***/
    "1unF": function unF(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return startOfYear;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name startOfYear
       * @category Year Helpers
       * @summary Return the start of a year for the given date.
       *
       * @description
       * Return the start of a year for the given date.
       * The result will be in the local timezone.
       *
       * ### 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 {Date|Number} date - the original date
       * @returns {Date} the start of a year
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // The start of a year for 2 September 2014 11:55:00:
       * var result = startOfYear(new Date(2014, 8, 2, 11, 55, 00))
       * //=> Wed Jan 01 2014 00:00:00
       */


      function startOfYear(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        var cleanDate = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);
        var date = new Date(0);
        date.setFullYear(cleanDate.getFullYear(), 0, 1);
        date.setHours(0, 0, 0, 0);
        return date;
      }
      /***/

    },

    /***/
    "1vjI": function vjI(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return startOfUTCWeek;
      });
      /* harmony import */


      var _toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toInteger/index.js */
      "/h9T");
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../requiredArgs/index.js */
      "jIYg"); // This function will be a part of public API when UTC function will be implemented.
      // See issue: https://github.com/date-fns/date-fns/issues/376


      function startOfUTCWeek(dirtyDate, dirtyOptions) {
        Object(_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(1, arguments);
        var options = dirtyOptions || {};
        var locale = options.locale;
        var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn;
        var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : Object(_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(localeWeekStartsOn);
        var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : Object(_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN

        if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
          throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
        }

        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate);
        var day = date.getUTCDay();
        var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
        date.setUTCDate(date.getUTCDate() - diff);
        date.setUTCHours(0, 0, 0, 0);
        return date;
      }
      /***/

    },

    /***/
    "1xZ4": function xZ4(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Catalan [ca]
      //! author : Juan G. Hurtado : https://github.com/juanghurtado
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var ca = moment.defineLocale('ca', {
          months: {
            standalone: 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split('_'),
            format: "de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split('_'),
            isFormat: /D[oD]?(\s)+MMMM/
          },
          monthsShort: 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split('_'),
          monthsParseExact: true,
          weekdays: 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split('_'),
          weekdaysShort: 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),
          weekdaysMin: 'dg_dl_dt_dc_dj_dv_ds'.split('_'),
          weekdaysParseExact: true,
          longDateFormat: {
            LT: 'H:mm',
            LTS: 'H:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM [de] YYYY',
            ll: 'D MMM YYYY',
            LLL: 'D MMMM [de] YYYY [a les] H:mm',
            lll: 'D MMM YYYY, H:mm',
            LLLL: 'dddd D MMMM [de] YYYY [a les] H:mm',
            llll: 'ddd D MMM YYYY, H:mm'
          },
          calendar: {
            sameDay: function sameDay() {
              return '[avui a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
            },
            nextDay: function nextDay() {
              return '[demà a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
            },
            nextWeek: function nextWeek() {
              return 'dddd [a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
            },
            lastDay: function lastDay() {
              return '[ahir a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
            },
            lastWeek: function lastWeek() {
              return '[el] dddd [passat a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
            },
            sameElse: 'L'
          },
          relativeTime: {
            future: "d'aquí %s",
            past: 'fa %s',
            s: 'uns segons',
            ss: '%d segons',
            m: 'un minut',
            mm: '%d minuts',
            h: 'una hora',
            hh: '%d hores',
            d: 'un dia',
            dd: '%d dies',
            M: 'un mes',
            MM: '%d mesos',
            y: 'un any',
            yy: '%d anys'
          },
          dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
          ordinal: function ordinal(number, period) {
            var output = number === 1 ? 'r' : number === 2 ? 'n' : number === 3 ? 'r' : number === 4 ? 't' : 'è';

            if (period === 'w' || period === 'W') {
              output = 'a';
            }

            return number + output;
          },
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return ca;
      });
      /***/

    },

    /***/
    "1z/I": function zI(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "BasePortalHost", function () {
        return BasePortalHost;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "BasePortalOutlet", function () {
        return BasePortalOutlet;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CdkPortal", function () {
        return CdkPortal;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CdkPortalOutlet", function () {
        return CdkPortalOutlet;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ComponentPortal", function () {
        return ComponentPortal;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "DomPortal", function () {
        return DomPortal;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "DomPortalHost", function () {
        return DomPortalHost;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "DomPortalOutlet", function () {
        return DomPortalOutlet;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Portal", function () {
        return Portal;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "PortalHostDirective", function () {
        return PortalHostDirective;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "PortalInjector", function () {
        return PortalInjector;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "PortalModule", function () {
        return PortalModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TemplatePortal", function () {
        return TemplatePortal;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TemplatePortalDirective", function () {
        return TemplatePortalDirective;
      });
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /* harmony import */


      var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/common */
      "SVse");
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Throws an exception when attempting to attach a null portal to a host.
       * @docs-private
       */


      function throwNullPortalError() {
        throw Error('Must provide a portal to attach');
      }
      /**
       * Throws an exception when attempting to attach a portal to a host that is already attached.
       * @docs-private
       */


      function throwPortalAlreadyAttachedError() {
        throw Error('Host already has a portal attached');
      }
      /**
       * Throws an exception when attempting to attach a portal to an already-disposed host.
       * @docs-private
       */


      function throwPortalOutletAlreadyDisposedError() {
        throw Error('This PortalOutlet has already been disposed');
      }
      /**
       * Throws an exception when attempting to attach an unknown portal type.
       * @docs-private
       */


      function throwUnknownPortalTypeError() {
        throw Error('Attempting to attach an unknown Portal type. BasePortalOutlet accepts either ' + 'a ComponentPortal or a TemplatePortal.');
      }
      /**
       * Throws an exception when attempting to attach a portal to a null host.
       * @docs-private
       */


      function throwNullPortalOutletError() {
        throw Error('Attempting to attach a portal to a null PortalOutlet');
      }
      /**
       * Throws an exception when attempting to detach a portal that is not attached.
       * @docs-private
       */


      function throwNoPortalAttachedError() {
        throw Error('Attempting to detach a portal that is not attached to a host');
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * A `Portal` is something that you want to render somewhere else.
       * It can be attach to / detached from a `PortalOutlet`.
       */


      var Portal = /*#__PURE__*/function () {
        function Portal() {
          _classCallCheck2(this, Portal);
        }

        _createClass2(Portal, [{
          key: "attach",
          value:
          /** Attach this portal to a host. */
          function attach(host) {
            if (typeof ngDevMode === 'undefined' || ngDevMode) {
              if (host == null) {
                throwNullPortalOutletError();
              }

              if (host.hasAttached()) {
                throwPortalAlreadyAttachedError();
              }
            }

            this._attachedHost = host;
            return host.attach(this);
          }
          /** Detach this portal from its host */

        }, {
          key: "detach",
          value: function detach() {
            var host = this._attachedHost;

            if (host != null) {
              this._attachedHost = null;
              host.detach();
            } else if (typeof ngDevMode === 'undefined' || ngDevMode) {
              throwNoPortalAttachedError();
            }
          }
          /** Whether this portal is attached to a host. */

        }, {
          key: "isAttached",
          get: function get() {
            return this._attachedHost != null;
          }
          /**
           * Sets the PortalOutlet reference without performing `attach()`. This is used directly by
           * the PortalOutlet when it is performing an `attach()` or `detach()`.
           */

        }, {
          key: "setAttachedHost",
          value: function setAttachedHost(host) {
            this._attachedHost = host;
          }
        }]);

        return Portal;
      }();
      /**
       * A `ComponentPortal` is a portal that instantiates some Component upon attachment.
       */


      var ComponentPortal = /*#__PURE__*/function (_Portal) {
        _inherits2(ComponentPortal, _Portal);

        var _super123 = _createSuper2(ComponentPortal);

        function ComponentPortal(component, viewContainerRef, injector, componentFactoryResolver) {
          var _this359;

          _classCallCheck2(this, ComponentPortal);

          _this359 = _super123.call(this);
          _this359.component = component;
          _this359.viewContainerRef = viewContainerRef;
          _this359.injector = injector;
          _this359.componentFactoryResolver = componentFactoryResolver;
          return _this359;
        }

        return ComponentPortal;
      }(Portal);
      /**
       * A `TemplatePortal` is a portal that represents some embedded template (TemplateRef).
       */


      var TemplatePortal = /*#__PURE__*/function (_Portal2) {
        _inherits2(TemplatePortal, _Portal2);

        var _super124 = _createSuper2(TemplatePortal);

        function TemplatePortal(template, viewContainerRef, context) {
          var _this360;

          _classCallCheck2(this, TemplatePortal);

          _this360 = _super124.call(this);
          _this360.templateRef = template;
          _this360.viewContainerRef = viewContainerRef;
          _this360.context = context;
          return _this360;
        }

        _createClass2(TemplatePortal, [{
          key: "origin",
          get: function get() {
            return this.templateRef.elementRef;
          }
          /**
           * Attach the portal to the provided `PortalOutlet`.
           * When a context is provided it will override the `context` property of the `TemplatePortal`
           * instance.
           */

        }, {
          key: "attach",
          value: function attach(host) {
            var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.context;
            this.context = context;
            return _get2(_getPrototypeOf2(TemplatePortal.prototype), "attach", this).call(this, host);
          }
        }, {
          key: "detach",
          value: function detach() {
            this.context = undefined;
            return _get2(_getPrototypeOf2(TemplatePortal.prototype), "detach", this).call(this);
          }
        }]);

        return TemplatePortal;
      }(Portal);
      /**
       * A `DomPortal` is a portal whose DOM element will be taken from its current position
       * in the DOM and moved into a portal outlet, when it is attached. On detach, the content
       * will be restored to its original position.
       */


      var DomPortal = /*#__PURE__*/function (_Portal3) {
        _inherits2(DomPortal, _Portal3);

        var _super125 = _createSuper2(DomPortal);

        function DomPortal(element) {
          var _this361;

          _classCallCheck2(this, DomPortal);

          _this361 = _super125.call(this);
          _this361.element = element instanceof _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] ? element.nativeElement : element;
          return _this361;
        }

        return DomPortal;
      }(Portal);
      /**
       * Partial implementation of PortalOutlet that handles attaching
       * ComponentPortal and TemplatePortal.
       */


      var BasePortalOutlet = /*#__PURE__*/function () {
        function BasePortalOutlet() {
          _classCallCheck2(this, BasePortalOutlet);

          /** Whether this host has already been permanently disposed. */
          this._isDisposed = false; // @breaking-change 10.0.0 `attachDomPortal` to become a required abstract method.

          this.attachDomPortal = null;
        }
        /** Whether this host has an attached portal. */


        _createClass2(BasePortalOutlet, [{
          key: "hasAttached",
          value: function hasAttached() {
            return !!this._attachedPortal;
          }
          /** Attaches a portal. */

        }, {
          key: "attach",
          value: function attach(portal) {
            if (typeof ngDevMode === 'undefined' || ngDevMode) {
              if (!portal) {
                throwNullPortalError();
              }

              if (this.hasAttached()) {
                throwPortalAlreadyAttachedError();
              }

              if (this._isDisposed) {
                throwPortalOutletAlreadyDisposedError();
              }
            }

            if (portal instanceof ComponentPortal) {
              this._attachedPortal = portal;
              return this.attachComponentPortal(portal);
            } else if (portal instanceof TemplatePortal) {
              this._attachedPortal = portal;
              return this.attachTemplatePortal(portal); // @breaking-change 10.0.0 remove null check for `this.attachDomPortal`.
            } else if (this.attachDomPortal && portal instanceof DomPortal) {
              this._attachedPortal = portal;
              return this.attachDomPortal(portal);
            }

            if (typeof ngDevMode === 'undefined' || ngDevMode) {
              throwUnknownPortalTypeError();
            }
          }
          /** Detaches a previously attached portal. */

        }, {
          key: "detach",
          value: function detach() {
            if (this._attachedPortal) {
              this._attachedPortal.setAttachedHost(null);

              this._attachedPortal = null;
            }

            this._invokeDisposeFn();
          }
          /** Permanently dispose of this portal host. */

        }, {
          key: "dispose",
          value: function dispose() {
            if (this.hasAttached()) {
              this.detach();
            }

            this._invokeDisposeFn();

            this._isDisposed = true;
          }
          /** @docs-private */

        }, {
          key: "setDisposeFn",
          value: function setDisposeFn(fn) {
            this._disposeFn = fn;
          }
        }, {
          key: "_invokeDisposeFn",
          value: function _invokeDisposeFn() {
            if (this._disposeFn) {
              this._disposeFn();

              this._disposeFn = null;
            }
          }
        }]);

        return BasePortalOutlet;
      }();
      /**
       * @deprecated Use `BasePortalOutlet` instead.
       * @breaking-change 9.0.0
       */


      var BasePortalHost = /*#__PURE__*/function (_BasePortalOutlet) {
        _inherits2(BasePortalHost, _BasePortalOutlet);

        var _super126 = _createSuper2(BasePortalHost);

        function BasePortalHost() {
          _classCallCheck2(this, BasePortalHost);

          return _super126.apply(this, arguments);
        }

        return BasePortalHost;
      }(BasePortalOutlet);
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * A PortalOutlet for attaching portals to an arbitrary DOM element outside of the Angular
       * application context.
       */


      var DomPortalOutlet = /*#__PURE__*/function (_BasePortalOutlet2) {
        _inherits2(DomPortalOutlet, _BasePortalOutlet2);

        var _super127 = _createSuper2(DomPortalOutlet);

        function DomPortalOutlet(
        /** Element into which the content is projected. */
        outletElement, _componentFactoryResolver, _appRef, _defaultInjector,
        /**
         * @deprecated `_document` Parameter to be made required.
         * @breaking-change 10.0.0
         */
        _document) {
          var _thisSuper, _this362;

          _classCallCheck2(this, DomPortalOutlet);

          _this362 = _super127.call(this);
          _this362.outletElement = outletElement;
          _this362._componentFactoryResolver = _componentFactoryResolver;
          _this362._appRef = _appRef;
          _this362._defaultInjector = _defaultInjector;
          /**
           * Attaches a DOM portal by transferring its content into the outlet.
           * @param portal Portal to be attached.
           * @deprecated To be turned into a method.
           * @breaking-change 10.0.0
           */

          _this362.attachDomPortal = function (portal) {
            // @breaking-change 10.0.0 Remove check and error once the
            // `_document` constructor parameter is required.
            if (!_this362._document && (typeof ngDevMode === 'undefined' || ngDevMode)) {
              throw Error('Cannot attach DOM portal without _document constructor parameter');
            }

            var element = portal.element;

            if (!element.parentNode && (typeof ngDevMode === 'undefined' || ngDevMode)) {
              throw Error('DOM portal content must be attached to a parent node.');
            } // Anchor used to save the element's previous position so
            // that we can restore it when the portal is detached.


            var anchorNode = _this362._document.createComment('dom-portal');

            element.parentNode.insertBefore(anchorNode, element);

            _this362.outletElement.appendChild(element);

            _get2((_thisSuper = _assertThisInitialized2(_this362), _getPrototypeOf2(DomPortalOutlet.prototype)), "setDisposeFn", _thisSuper).call(_thisSuper, function () {
              // We can't use `replaceWith` here because IE doesn't support it.
              if (anchorNode.parentNode) {
                anchorNode.parentNode.replaceChild(element, anchorNode);
              }
            });
          };

          _this362._document = _document;
          return _this362;
        }
        /**
         * Attach the given ComponentPortal to DOM element using the ComponentFactoryResolver.
         * @param portal Portal to be attached
         * @returns Reference to the created component.
         */


        _createClass2(DomPortalOutlet, [{
          key: "attachComponentPortal",
          value: function attachComponentPortal(portal) {
            var _this363 = this;

            var resolver = portal.componentFactoryResolver || this._componentFactoryResolver;
            var componentFactory = resolver.resolveComponentFactory(portal.component);
            var componentRef; // If the portal specifies a ViewContainerRef, we will use that as the attachment point
            // for the component (in terms of Angular's component tree, not rendering).
            // When the ViewContainerRef is missing, we use the factory to create the component directly
            // and then manually attach the view to the application.

            if (portal.viewContainerRef) {
              componentRef = portal.viewContainerRef.createComponent(componentFactory, portal.viewContainerRef.length, portal.injector || portal.viewContainerRef.injector);
              this.setDisposeFn(function () {
                return componentRef.destroy();
              });
            } else {
              componentRef = componentFactory.create(portal.injector || this._defaultInjector);

              this._appRef.attachView(componentRef.hostView);

              this.setDisposeFn(function () {
                _this363._appRef.detachView(componentRef.hostView);

                componentRef.destroy();
              });
            } // At this point the component has been instantiated, so we move it to the location in the DOM
            // where we want it to be rendered.


            this.outletElement.appendChild(this._getComponentRootNode(componentRef));
            return componentRef;
          }
          /**
           * Attaches a template portal to the DOM as an embedded view.
           * @param portal Portal to be attached.
           * @returns Reference to the created embedded view.
           */

        }, {
          key: "attachTemplatePortal",
          value: function attachTemplatePortal(portal) {
            var _this364 = this;

            var viewContainer = portal.viewContainerRef;
            var viewRef = viewContainer.createEmbeddedView(portal.templateRef, portal.context); // The method `createEmbeddedView` will add the view as a child of the viewContainer.
            // But for the DomPortalOutlet the view can be added everywhere in the DOM
            // (e.g Overlay Container) To move the view to the specified host element. We just
            // re-append the existing root nodes.

            viewRef.rootNodes.forEach(function (rootNode) {
              return _this364.outletElement.appendChild(rootNode);
            }); // Note that we want to detect changes after the nodes have been moved so that
            // any directives inside the portal that are looking at the DOM inside a lifecycle
            // hook won't be invoked too early.

            viewRef.detectChanges();
            this.setDisposeFn(function () {
              var index = viewContainer.indexOf(viewRef);

              if (index !== -1) {
                viewContainer.remove(index);
              }
            }); // TODO(jelbourn): Return locals from view.

            return viewRef;
          }
          /**
           * Clears out a portal from the DOM.
           */

        }, {
          key: "dispose",
          value: function dispose() {
            _get2(_getPrototypeOf2(DomPortalOutlet.prototype), "dispose", this).call(this);

            if (this.outletElement.parentNode != null) {
              this.outletElement.parentNode.removeChild(this.outletElement);
            }
          }
          /** Gets the root HTMLElement for an instantiated component. */

        }, {
          key: "_getComponentRootNode",
          value: function _getComponentRootNode(componentRef) {
            return componentRef.hostView.rootNodes[0];
          }
        }]);

        return DomPortalOutlet;
      }(BasePortalOutlet);
      /**
       * @deprecated Use `DomPortalOutlet` instead.
       * @breaking-change 9.0.0
       */


      var DomPortalHost = /*#__PURE__*/function (_DomPortalOutlet) {
        _inherits2(DomPortalHost, _DomPortalOutlet);

        var _super128 = _createSuper2(DomPortalHost);

        function DomPortalHost() {
          _classCallCheck2(this, DomPortalHost);

          return _super128.apply(this, arguments);
        }

        return DomPortalHost;
      }(DomPortalOutlet);
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Directive version of a `TemplatePortal`. Because the directive *is* a TemplatePortal,
       * the directive instance itself can be attached to a host, enabling declarative use of portals.
       */


      var CdkPortal = /*#__PURE__*/function (_TemplatePortal) {
        _inherits2(CdkPortal, _TemplatePortal);

        var _super129 = _createSuper2(CdkPortal);

        function CdkPortal(templateRef, viewContainerRef) {
          _classCallCheck2(this, CdkPortal);

          return _super129.call(this, templateRef, viewContainerRef);
        }

        return CdkPortal;
      }(TemplatePortal);

      CdkPortal.ɵfac = function CdkPortal_Factory(t) {
        return new (t || CdkPortal)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"]));
      };

      CdkPortal.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: CdkPortal,
        selectors: [["", "cdkPortal", ""]],
        exportAs: ["cdkPortal"],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
      });

      CdkPortal.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](CdkPortal, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
          args: [{
            selector: '[cdkPortal]',
            exportAs: 'cdkPortal'
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"]
          }];
        }, null);
      })();
      /**
       * @deprecated Use `CdkPortal` instead.
       * @breaking-change 9.0.0
       */


      var TemplatePortalDirective = /*#__PURE__*/function (_CdkPortal) {
        _inherits2(TemplatePortalDirective, _CdkPortal);

        var _super130 = _createSuper2(TemplatePortalDirective);

        function TemplatePortalDirective() {
          _classCallCheck2(this, TemplatePortalDirective);

          return _super130.apply(this, arguments);
        }

        return TemplatePortalDirective;
      }(CdkPortal);

      TemplatePortalDirective.ɵfac = function TemplatePortalDirective_Factory(t) {
        return ɵTemplatePortalDirective_BaseFactory(t || TemplatePortalDirective);
      };

      TemplatePortalDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: TemplatePortalDirective,
        selectors: [["", "cdk-portal", ""], ["", "portal", ""]],
        exportAs: ["cdkPortal"],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([{
          provide: CdkPortal,
          useExisting: TemplatePortalDirective
        }]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
      });

      var ɵTemplatePortalDirective_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](TemplatePortalDirective);
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](TemplatePortalDirective, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
          args: [{
            selector: '[cdk-portal], [portal]',
            exportAs: 'cdkPortal',
            providers: [{
              provide: CdkPortal,
              useExisting: TemplatePortalDirective
            }]
          }]
        }], null, null);
      })();
      /**
       * Directive version of a PortalOutlet. Because the directive *is* a PortalOutlet, portals can be
       * directly attached to it, enabling declarative use.
       *
       * Usage:
       * `<ng-template [cdkPortalOutlet]="greeting"></ng-template>`
       */


      var CdkPortalOutlet = /*#__PURE__*/function (_BasePortalOutlet3) {
        _inherits2(CdkPortalOutlet, _BasePortalOutlet3);

        var _super131 = _createSuper2(CdkPortalOutlet);

        function CdkPortalOutlet(_componentFactoryResolver, _viewContainerRef,
        /**
         * @deprecated `_document` parameter to be made required.
         * @breaking-change 9.0.0
         */
        _document) {
          var _thisSuper2, _this365;

          _classCallCheck2(this, CdkPortalOutlet);

          _this365 = _super131.call(this);
          _this365._componentFactoryResolver = _componentFactoryResolver;
          _this365._viewContainerRef = _viewContainerRef;
          /** Whether the portal component is initialized. */

          _this365._isInitialized = false;
          /** Emits when a portal is attached to the outlet. */

          _this365.attached = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
          /**
           * Attaches the given DomPortal to this PortalHost by moving all of the portal content into it.
           * @param portal Portal to be attached.
           * @deprecated To be turned into a method.
           * @breaking-change 10.0.0
           */

          _this365.attachDomPortal = function (portal) {
            // @breaking-change 9.0.0 Remove check and error once the
            // `_document` constructor parameter is required.
            if (!_this365._document && (typeof ngDevMode === 'undefined' || ngDevMode)) {
              throw Error('Cannot attach DOM portal without _document constructor parameter');
            }

            var element = portal.element;

            if (!element.parentNode && (typeof ngDevMode === 'undefined' || ngDevMode)) {
              throw Error('DOM portal content must be attached to a parent node.');
            } // Anchor used to save the element's previous position so
            // that we can restore it when the portal is detached.


            var anchorNode = _this365._document.createComment('dom-portal');

            portal.setAttachedHost(_assertThisInitialized2(_this365));
            element.parentNode.insertBefore(anchorNode, element);

            _this365._getRootNode().appendChild(element);

            _get2((_thisSuper2 = _assertThisInitialized2(_this365), _getPrototypeOf2(CdkPortalOutlet.prototype)), "setDisposeFn", _thisSuper2).call(_thisSuper2, function () {
              if (anchorNode.parentNode) {
                anchorNode.parentNode.replaceChild(element, anchorNode);
              }
            });
          };

          _this365._document = _document;
          return _this365;
        }
        /** Portal associated with the Portal outlet. */


        _createClass2(CdkPortalOutlet, [{
          key: "portal",
          get: function get() {
            return this._attachedPortal;
          },
          set: function set(portal) {
            // Ignore the cases where the `portal` is set to a falsy value before the lifecycle hooks have
            // run. This handles the cases where the user might do something like `<div cdkPortalOutlet>`
            // and attach a portal programmatically in the parent component. When Angular does the first CD
            // round, it will fire the setter with empty string, causing the user's content to be cleared.
            if (this.hasAttached() && !portal && !this._isInitialized) {
              return;
            }

            if (this.hasAttached()) {
              _get2(_getPrototypeOf2(CdkPortalOutlet.prototype), "detach", this).call(this);
            }

            if (portal) {
              _get2(_getPrototypeOf2(CdkPortalOutlet.prototype), "attach", this).call(this, portal);
            }

            this._attachedPortal = portal;
          }
          /** Component or view reference that is attached to the portal. */

        }, {
          key: "attachedRef",
          get: function get() {
            return this._attachedRef;
          }
        }, {
          key: "ngOnInit",
          value: function ngOnInit() {
            this._isInitialized = true;
          }
        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            _get2(_getPrototypeOf2(CdkPortalOutlet.prototype), "dispose", this).call(this);

            this._attachedPortal = null;
            this._attachedRef = null;
          }
          /**
           * Attach the given ComponentPortal to this PortalOutlet using the ComponentFactoryResolver.
           *
           * @param portal Portal to be attached to the portal outlet.
           * @returns Reference to the created component.
           */

        }, {
          key: "attachComponentPortal",
          value: function attachComponentPortal(portal) {
            portal.setAttachedHost(this); // If the portal specifies an origin, use that as the logical location of the component
            // in the application tree. Otherwise use the location of this PortalOutlet.

            var viewContainerRef = portal.viewContainerRef != null ? portal.viewContainerRef : this._viewContainerRef;
            var resolver = portal.componentFactoryResolver || this._componentFactoryResolver;
            var componentFactory = resolver.resolveComponentFactory(portal.component);
            var ref = viewContainerRef.createComponent(componentFactory, viewContainerRef.length, portal.injector || viewContainerRef.injector); // If we're using a view container that's different from the injected one (e.g. when the portal
            // specifies its own) we need to move the component into the outlet, otherwise it'll be rendered
            // inside of the alternate view container.

            if (viewContainerRef !== this._viewContainerRef) {
              this._getRootNode().appendChild(ref.hostView.rootNodes[0]);
            }

            _get2(_getPrototypeOf2(CdkPortalOutlet.prototype), "setDisposeFn", this).call(this, function () {
              return ref.destroy();
            });

            this._attachedPortal = portal;
            this._attachedRef = ref;
            this.attached.emit(ref);
            return ref;
          }
          /**
           * Attach the given TemplatePortal to this PortalHost as an embedded View.
           * @param portal Portal to be attached.
           * @returns Reference to the created embedded view.
           */

        }, {
          key: "attachTemplatePortal",
          value: function attachTemplatePortal(portal) {
            var _this366 = this;

            portal.setAttachedHost(this);

            var viewRef = this._viewContainerRef.createEmbeddedView(portal.templateRef, portal.context);

            _get2(_getPrototypeOf2(CdkPortalOutlet.prototype), "setDisposeFn", this).call(this, function () {
              return _this366._viewContainerRef.clear();
            });

            this._attachedPortal = portal;
            this._attachedRef = viewRef;
            this.attached.emit(viewRef);
            return viewRef;
          }
          /** Gets the root node of the portal outlet. */

        }, {
          key: "_getRootNode",
          value: function _getRootNode() {
            var nativeElement = this._viewContainerRef.element.nativeElement; // The directive could be set on a template which will result in a comment
            // node being the root. Use the comment's parent node if that is the case.

            return nativeElement.nodeType === nativeElement.ELEMENT_NODE ? nativeElement : nativeElement.parentNode;
          }
        }]);

        return CdkPortalOutlet;
      }(BasePortalOutlet);

      CdkPortalOutlet.ɵfac = function CdkPortalOutlet_Factory(t) {
        return new (t || CdkPortalOutlet)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"]));
      };

      CdkPortalOutlet.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: CdkPortalOutlet,
        selectors: [["", "cdkPortalOutlet", ""]],
        inputs: {
          portal: ["cdkPortalOutlet", "portal"]
        },
        outputs: {
          attached: "attached"
        },
        exportAs: ["cdkPortalOutlet"],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
      });

      CdkPortalOutlet.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"]]
          }]
        }];
      };

      CdkPortalOutlet.propDecorators = {
        attached: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](CdkPortalOutlet, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
          args: [{
            selector: '[cdkPortalOutlet]',
            exportAs: 'cdkPortalOutlet',
            inputs: ['portal: cdkPortalOutlet']
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"]]
            }]
          }];
        }, {
          attached: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
          }]
        });
      })();
      /**
       * @deprecated Use `CdkPortalOutlet` instead.
       * @breaking-change 9.0.0
       */


      var PortalHostDirective = /*#__PURE__*/function (_CdkPortalOutlet) {
        _inherits2(PortalHostDirective, _CdkPortalOutlet);

        var _super132 = _createSuper2(PortalHostDirective);

        function PortalHostDirective() {
          _classCallCheck2(this, PortalHostDirective);

          return _super132.apply(this, arguments);
        }

        return PortalHostDirective;
      }(CdkPortalOutlet);

      PortalHostDirective.ɵfac = function PortalHostDirective_Factory(t) {
        return ɵPortalHostDirective_BaseFactory(t || PortalHostDirective);
      };

      PortalHostDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: PortalHostDirective,
        selectors: [["", "cdkPortalHost", ""], ["", "portalHost", ""]],
        inputs: {
          portal: ["cdkPortalHost", "portal"]
        },
        exportAs: ["cdkPortalHost"],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([{
          provide: CdkPortalOutlet,
          useExisting: PortalHostDirective
        }]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
      });

      var ɵPortalHostDirective_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](PortalHostDirective);
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](PortalHostDirective, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
          args: [{
            selector: '[cdkPortalHost], [portalHost]',
            exportAs: 'cdkPortalHost',
            inputs: ['portal: cdkPortalHost'],
            providers: [{
              provide: CdkPortalOutlet,
              useExisting: PortalHostDirective
            }]
          }]
        }], null, null);
      })();

      var PortalModule = function PortalModule() {
        _classCallCheck2(this, PortalModule);
      };

      PortalModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
        type: PortalModule
      });
      PortalModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
        factory: function PortalModule_Factory(t) {
          return new (t || PortalModule)();
        }
      });

      (function () {
        (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](PortalModule, {
          declarations: [CdkPortal, CdkPortalOutlet, TemplatePortalDirective, PortalHostDirective],
          exports: [CdkPortal, CdkPortalOutlet, TemplatePortalDirective, PortalHostDirective]
        });
      })();
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](PortalModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
          args: [{
            exports: [CdkPortal, CdkPortalOutlet, TemplatePortalDirective, PortalHostDirective],
            declarations: [CdkPortal, CdkPortalOutlet, TemplatePortalDirective, PortalHostDirective]
          }]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Custom injector to be used when providing custom
       * injection tokens to components inside a portal.
       * @docs-private
       * @deprecated Use `Injector.create` instead.
       * @breaking-change 11.0.0
       */


      var PortalInjector = /*#__PURE__*/function () {
        function PortalInjector(_parentInjector, _customTokens) {
          _classCallCheck2(this, PortalInjector);

          this._parentInjector = _parentInjector;
          this._customTokens = _customTokens;
        }

        _createClass2(PortalInjector, [{
          key: "get",
          value: function get(token, notFoundValue) {
            var value = this._customTokens.get(token);

            if (typeof value !== 'undefined') {
              return value;
            }

            return this._parentInjector.get(token, notFoundValue);
          }
        }]);

        return PortalInjector;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Generated bundle index. Do not edit.
       */
      //# sourceMappingURL=portal.js.map

      /***/

    },

    /***/
    "26Ho": function Ho(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return areIntervalsOverlapping;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name areIntervalsOverlapping
       * @category Interval Helpers
       * @summary Is the given time interval overlapping with another time interval?
       *
       * @description
       * Is the given time interval overlapping with another time interval? Adjacent intervals do not count as overlapping.
       *
       * ### 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).
       *
       * - The function was renamed from `areRangesOverlapping` to `areIntervalsOverlapping`.
       *   This change was made to mirror the use of the word "interval" in standard ISO 8601:2004 terminology:
       *
       *   ```
       *   2.1.3
       *   time interval
       *   part of the time axis limited by two instants
       *   ```
       *
       *   Also, this function now accepts an object with `start` and `end` properties
       *   instead of two arguments as an interval.
       *   This function now throws `RangeError` if the start of the interval is after its end
       *   or if any date in the interval is `Invalid Date`.
       *
       *   ```javascript
       *   // Before v2.0.0
       *
       *   areRangesOverlapping(
       *     new Date(2014, 0, 10), new Date(2014, 0, 20),
       *     new Date(2014, 0, 17), new Date(2014, 0, 21)
       *   )
       *
       *   // v2.0.0 onward
       *
       *   areIntervalsOverlapping(
       *     { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) },
       *     { start: new Date(2014, 0, 17), end: new Date(2014, 0, 21) }
       *   )
       *   ```
       *
       * @param {Interval} intervalLeft - the first interval to compare. See [Interval]{@link docs/types/Interval}
       * @param {Interval} intervalRight - the second interval to compare. See [Interval]{@link docs/types/Interval}
       * @param {Object} [options] - the object with options
       * @param {Boolean} [options.inclusive=false] - whether the comparison is inclusive or not
       * @returns {Boolean} whether the time intervals are overlapping
       * @throws {TypeError} 2 arguments required
       * @throws {RangeError} The start of an interval cannot be after its end
       * @throws {RangeError} Date in interval cannot be `Invalid Date`
       *
       * @example
       * // For overlapping time intervals:
       * areIntervalsOverlapping(
       *   { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) },
       *   { start: new Date(2014, 0, 17), end: new Date(2014, 0, 21) }
       * )
       * //=> true
       *
       * @example
       * // For non-overlapping time intervals:
       * areIntervalsOverlapping(
       *   { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) },
       *   { start: new Date(2014, 0, 21), end: new Date(2014, 0, 22) }
       * )
       * //=> false
       *
       * @example
       * // For adjacent time intervals:
       * areIntervalsOverlapping(
       *   { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) },
       *   { start: new Date(2014, 0, 20), end: new Date(2014, 0, 30) }
       * )
       * //=> false
       *
       * @example
       * // Using the inclusive option:
       * areIntervalsOverlapping(
       *   { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) },
       *   { start: new Date(2014, 0, 20), end: new Date(2014, 0, 24) }
       * )
       * //=> false
       * areIntervalsOverlapping(
       *   { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) },
       *   { start: new Date(2014, 0, 20), end: new Date(2014, 0, 24) },
       *   { inclusive: true }
       * )
       * //=> true
       */


      function areIntervalsOverlapping(dirtyIntervalLeft, dirtyIntervalRight) {
        var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(2, arguments);
        var intervalLeft = dirtyIntervalLeft || {};
        var intervalRight = dirtyIntervalRight || {};
        var leftStartTime = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(intervalLeft.start).getTime();
        var leftEndTime = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(intervalLeft.end).getTime();
        var rightStartTime = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(intervalRight.start).getTime();
        var rightEndTime = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(intervalRight.end).getTime(); // Throw an exception if start date is after end date or if any date is `Invalid Date`

        if (!(leftStartTime <= leftEndTime && rightStartTime <= rightEndTime)) {
          throw new RangeError('Invalid interval');
        }

        if (options.inclusive) {
          return leftStartTime <= rightEndTime && rightStartTime <= leftEndTime;
        }

        return leftStartTime < rightEndTime && rightStartTime < leftEndTime;
      }
      /***/

    },

    /***/
    "2AQE": function AQE(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return eachWeekendOfMonth;
      });
      /* harmony import */


      var _eachWeekendOfInterval_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../eachWeekendOfInterval/index.js */
      "YdWM");
      /* harmony import */


      var _startOfMonth_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../startOfMonth/index.js */
      "9ig3");
      /* harmony import */


      var _endOfMonth_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../endOfMonth/index.js */
      "jKzE");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name eachWeekendOfMonth
       * @category Month Helpers
       * @summary List all the Saturdays and Sundays in the given month.
       *
       * @description
       * Get all the Saturdays and Sundays in the given month.
       *
       * @param {Date|Number} date - the given month
       * @returns {Date[]} an array containing all the Saturdays and Sundays
       * @throws {TypeError} 1 argument required
       * @throws {RangeError} The passed date is invalid
       *
       * @example
       * // Lists all Saturdays and Sundays in the given month
       * var result = eachWeekendOfMonth(new Date(2022, 1, 1))
       * //=> [
       * //   Sat Feb 05 2022 00:00:00,
       * //   Sun Feb 06 2022 00:00:00,
       * //   Sat Feb 12 2022 00:00:00,
       * //   Sun Feb 13 2022 00:00:00,
       * //   Sat Feb 19 2022 00:00:00,
       * //   Sun Feb 20 2022 00:00:00,
       * //   Sat Feb 26 2022 00:00:00,
       * //   Sun Feb 27 2022 00:00:00
       * // ]
       */


      function eachWeekendOfMonth(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(1, arguments);
        var startDate = Object(_startOfMonth_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate);
        if (isNaN(startDate)) throw new RangeError('The passed date is invalid');
        var endDate = Object(_endOfMonth_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(dirtyDate);
        return Object(_eachWeekendOfInterval_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])({
          start: startDate,
          end: endDate
        });
      }
      /***/

    },

    /***/
    "2QA8": function QA8(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "rxSubscriber", function () {
        return rxSubscriber;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "$$rxSubscriber", function () {
        return $$rxSubscriber;
      });

      var rxSubscriber = function () {
        return typeof Symbol === 'function' ? Symbol('rxSubscriber') : '@@rxSubscriber_' + Math.random();
      }();

      var $$rxSubscriber = rxSubscriber; //# sourceMappingURL=rxSubscriber.js.map

      /***/
    },

    /***/
    "2QGa": function QGa(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "partition", function () {
        return partition;
      });
      /* harmony import */


      var _util_not__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../util/not */
      "F97/");
      /* harmony import */


      var _util_subscribeTo__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../util/subscribeTo */
      "SeVD");
      /* harmony import */


      var _operators_filter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../operators/filter */
      "pLZG");
      /* harmony import */


      var _Observable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../Observable */
      "HDdC");

      function partition(source, predicate, thisArg) {
        return [Object(_operators_filter__WEBPACK_IMPORTED_MODULE_2__["filter"])(predicate, thisArg)(new _Observable__WEBPACK_IMPORTED_MODULE_3__["Observable"](Object(_util_subscribeTo__WEBPACK_IMPORTED_MODULE_1__["subscribeTo"])(source))), Object(_operators_filter__WEBPACK_IMPORTED_MODULE_2__["filter"])(Object(_util_not__WEBPACK_IMPORTED_MODULE_0__["not"])(predicate, thisArg))(new _Observable__WEBPACK_IMPORTED_MODULE_3__["Observable"](Object(_util_subscribeTo__WEBPACK_IMPORTED_MODULE_1__["subscribeTo"])(source)))];
      } //# sourceMappingURL=partition.js.map

      /***/

    },

    /***/
    "2Vo4": function Vo4(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "BehaviorSubject", function () {
        return BehaviorSubject;
      });
      /* harmony import */


      var _Subject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ./Subject */
      "XNiG");
      /* harmony import */


      var _util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ./util/ObjectUnsubscribedError */
      "9ppp");

      var BehaviorSubject = /*#__PURE__*/function (_Subject__WEBPACK_IMP) {
        _inherits2(BehaviorSubject, _Subject__WEBPACK_IMP);

        var _super133 = _createSuper2(BehaviorSubject);

        function BehaviorSubject(_value) {
          var _this367;

          _classCallCheck2(this, BehaviorSubject);

          _this367 = _super133.call(this);
          _this367._value = _value;
          return _this367;
        }

        _createClass2(BehaviorSubject, [{
          key: "value",
          get: function get() {
            return this.getValue();
          }
        }, {
          key: "_subscribe",
          value: function _subscribe(subscriber) {
            var subscription = _get2(_getPrototypeOf2(BehaviorSubject.prototype), "_subscribe", this).call(this, subscriber);

            if (subscription && !subscription.closed) {
              subscriber.next(this._value);
            }

            return subscription;
          }
        }, {
          key: "getValue",
          value: function getValue() {
            if (this.hasError) {
              throw this.thrownError;
            } else if (this.closed) {
              throw new _util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_1__["ObjectUnsubscribedError"]();
            } else {
              return this._value;
            }
          }
        }, {
          key: "next",
          value: function next(value) {
            _get2(_getPrototypeOf2(BehaviorSubject.prototype), "next", this).call(this, this._value = value);
          }
        }]);

        return BehaviorSubject;
      }(_Subject__WEBPACK_IMPORTED_MODULE_0__["Subject"]); //# sourceMappingURL=BehaviorSubject.js.map

      /***/

    },

    /***/
    "2fFW": function fFW(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "config", function () {
        return config;
      });

      var _enable_super_gross_mode_that_will_cause_bad_things = false;
      var config = {
        Promise: undefined,

        set useDeprecatedSynchronousErrorHandling(value) {
          if (value) {
            var error = new Error();
            console.warn('DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n' + error.stack);
          } else if (_enable_super_gross_mode_that_will_cause_bad_things) {
            console.log('RxJS: Back to a better error behavior. Thank you. <3');
          }

          _enable_super_gross_mode_that_will_cause_bad_things = value;
        },

        get useDeprecatedSynchronousErrorHandling() {
          return _enable_super_gross_mode_that_will_cause_bad_things;
        }

      }; //# sourceMappingURL=config.js.map

      /***/
    },

    /***/
    "2fjn": function fjn(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : French (Canada) [fr-ca]
      //! author : Jonathan Abourbih : https://github.com/jonbca
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var frCa = moment.defineLocale('fr-ca', {
          months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
          monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
          monthsParseExact: true,
          weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
          weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
          weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
          weekdaysParseExact: true,
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'YYYY-MM-DD',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd D MMMM YYYY HH:mm'
          },
          calendar: {
            sameDay: '[Aujourd’hui à] LT',
            nextDay: '[Demain à] LT',
            nextWeek: 'dddd [à] LT',
            lastDay: '[Hier à] LT',
            lastWeek: 'dddd [dernier à] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'dans %s',
            past: 'il y a %s',
            s: 'quelques secondes',
            ss: '%d secondes',
            m: 'une minute',
            mm: '%d minutes',
            h: 'une heure',
            hh: '%d heures',
            d: 'un jour',
            dd: '%d jours',
            M: 'un mois',
            MM: '%d mois',
            y: 'un an',
            yy: '%d ans'
          },
          dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
          ordinal: function ordinal(number, period) {
            switch (period) {
              // Words with masculine grammatical gender: mois, trimestre, jour
              default:
              case 'M':
              case 'Q':
              case 'D':
              case 'DDD':
              case 'd':
                return number + (number === 1 ? 'er' : 'e');
              // Words with feminine grammatical gender: semaine

              case 'w':
              case 'W':
                return number + (number === 1 ? 're' : 'e');
            }
          }
        });
        return frCa;
      });
      /***/

    },

    /***/
    "2mes": function mes(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatToolbarModuleNgFactory", function () {
        return MatToolbarModuleNgFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "RenderType_MatToolbar", function () {
        return RenderType_MatToolbar;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "View_MatToolbar_0", function () {
        return View_MatToolbar_0;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "View_MatToolbar_Host_0", function () {
        return View_MatToolbar_Host_0;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatToolbarNgFactory", function () {
        return MatToolbarNgFactory;
      });
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /* harmony import */


      var _angular_material_toolbar__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/material/toolbar */
      "l0rg");
      /* harmony import */


      var _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! @angular/cdk/bidi */
      "9gLZ");
      /* harmony import */


      var _angular_material_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! @angular/material/core */
      "UhP/");
      /* harmony import */


      var _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! @angular/cdk/a11y */
      "YEUz");
      /* harmony import */


      var _angular_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! @angular/common */
      "SVse");
      /* harmony import */


      var _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
      /*! @angular/cdk/platform */
      "SCoL");
      /**
       * @fileoverview This file was generated by the Angular template compiler. Do not edit.
       *
       * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes,extraRequire}
       * tslint:disable
       */


      var MatToolbarModuleNgFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵcmf"](_angular_material_toolbar__WEBPACK_IMPORTED_MODULE_1__["MatToolbarModule"], [], function (_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmod"]([_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](512, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵCodegenComponentFactoryResolver"], [[8, []], [3, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"]], _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModuleRef"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_2__["BidiModule"], _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_2__["BidiModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_material_core__WEBPACK_IMPORTED_MODULE_3__["MatCommonModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_3__["MatCommonModule"], [_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_4__["HighContrastModeDetector"], [2, _angular_material_core__WEBPACK_IMPORTED_MODULE_3__["MATERIAL_SANITY_CHECKS"]], _angular_common__WEBPACK_IMPORTED_MODULE_5__["DOCUMENT"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_material_toolbar__WEBPACK_IMPORTED_MODULE_1__["MatToolbarModule"], _angular_material_toolbar__WEBPACK_IMPORTED_MODULE_1__["MatToolbarModule"], [])]);
      });

      var styles_MatToolbar = [".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"];

      var RenderType_MatToolbar = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵcrt"]({
        encapsulation: 2,
        styles: styles_MatToolbar,
        data: {}
      });

      function View_MatToolbar_0(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](2, [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵncd"](null, 0), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵncd"](null, 1)], null, null);
      }

      function View_MatToolbar_Host_0(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](0, 0, null, null, 2, "mat-toolbar", [["class", "mat-toolbar"]], [[2, "mat-toolbar-multiple-rows", null], [2, "mat-toolbar-single-row", null]], null, null, View_MatToolbar_0, RenderType_MatToolbar)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](1, 4243456, null, 1, _angular_material_toolbar__WEBPACK_IMPORTED_MODULE_1__["MatToolbar"], [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"], _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_6__["Platform"], _angular_common__WEBPACK_IMPORTED_MODULE_5__["DOCUMENT"]], null, null), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵqud"](603979776, 1, {
          _toolbarRows: 1
        })], null, function (_ck, _v) {
          var currVal_0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1)._toolbarRows.length > 0;
          var currVal_1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1)._toolbarRows.length === 0;

          _ck(_v, 0, 0, currVal_0, currVal_1);
        });
      }

      var MatToolbarNgFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵccf"]("mat-toolbar", _angular_material_toolbar__WEBPACK_IMPORTED_MODULE_1__["MatToolbar"], View_MatToolbar_Host_0, {
        color: "color"
      }, {}, ["*", "mat-toolbar-row"]);
      /***/

    },

    /***/
    "2ykv": function ykv(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Dutch (Belgium) [nl-be]
      //! author : Joris Röling : https://github.com/jorisroling
      //! author : Jacob Middag : https://github.com/middagj
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'),
            monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'),
            monthsParse = [/^jan/i, /^feb/i, /^maart|mrt.?$/i, /^apr/i, /^mei$/i, /^jun[i.]?$/i, /^jul[i.]?$/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i],
            monthsRegex = /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;
        var nlBe = moment.defineLocale('nl-be', {
          months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),
          monthsShort: function monthsShort(m, format) {
            if (!m) {
              return monthsShortWithDots;
            } else if (/-MMM-/.test(format)) {
              return monthsShortWithoutDots[m.month()];
            } else {
              return monthsShortWithDots[m.month()];
            }
          },
          monthsRegex: monthsRegex,
          monthsShortRegex: monthsRegex,
          monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,
          monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
          monthsParse: monthsParse,
          longMonthsParse: monthsParse,
          shortMonthsParse: monthsParse,
          weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
          weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),
          weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),
          weekdaysParseExact: true,
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd D MMMM YYYY HH:mm'
          },
          calendar: {
            sameDay: '[vandaag om] LT',
            nextDay: '[morgen om] LT',
            nextWeek: 'dddd [om] LT',
            lastDay: '[gisteren om] LT',
            lastWeek: '[afgelopen] dddd [om] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'over %s',
            past: '%s geleden',
            s: 'een paar seconden',
            ss: '%d seconden',
            m: 'één minuut',
            mm: '%d minuten',
            h: 'één uur',
            hh: '%d uur',
            d: 'één dag',
            dd: '%d dagen',
            M: 'één maand',
            MM: '%d maanden',
            y: 'één jaar',
            yy: '%d jaar'
          },
          dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
          ordinal: function ordinal(number) {
            return number + (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de');
          },
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return nlBe;
      });
      /***/

    },

    /***/
    "3+Em": function Em(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return isThisWeek;
      });
      /* harmony import */


      var _isSameWeek_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../isSameWeek/index.js */
      "JO1+");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name isThisWeek
       * @category Week Helpers
       * @summary Is the given date in the same week as the current date?
       * @pure false
       *
       * @description
       * Is the given date in the same week as the current date?
       *
       * > ⚠️ Please note that this function is not present in the FP submodule as
       * > it uses `Date.now()` internally hence impure and can't be safely curried.
       *
       * ### 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 {Date|Number} date - the date to check
       * @param {Object} [options] - the 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 {Boolean} the date is in this week
       * @throws {TypeError} 1 argument required
       * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6
       *
       * @example
       * // If today is 25 September 2014, is 21 September 2014 in this week?
       * var result = isThisWeek(new Date(2014, 8, 21))
       * //=> true
       *
       * @example
       * // If today is 25 September 2014 and week starts with Monday
       * // is 21 September 2014 in this week?
       * var result = isThisWeek(new Date(2014, 8, 21), { weekStartsOn: 1 })
       * //=> false
       */


      function isThisWeek(dirtyDate, options) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        return Object(_isSameWeek_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate, Date.now(), options);
      }
      /***/

    },

    /***/
    "32Ea": function Ea(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "skipWhile", function () {
        return skipWhile;
      });
      /* harmony import */


      var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Subscriber */
      "7o/Q");

      function skipWhile(predicate) {
        return function (source) {
          return source.lift(new SkipWhileOperator(predicate));
        };
      }

      var SkipWhileOperator = /*#__PURE__*/function () {
        function SkipWhileOperator(predicate) {
          _classCallCheck2(this, SkipWhileOperator);

          this.predicate = predicate;
        }

        _createClass2(SkipWhileOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            return source.subscribe(new SkipWhileSubscriber(subscriber, this.predicate));
          }
        }]);

        return SkipWhileOperator;
      }();

      var SkipWhileSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_5) {
        _inherits2(SkipWhileSubscriber, _Subscriber__WEBPACK_5);

        var _super134 = _createSuper2(SkipWhileSubscriber);

        function SkipWhileSubscriber(destination, predicate) {
          var _this368;

          _classCallCheck2(this, SkipWhileSubscriber);

          _this368 = _super134.call(this, destination);
          _this368.predicate = predicate;
          _this368.skipping = true;
          _this368.index = 0;
          return _this368;
        }

        _createClass2(SkipWhileSubscriber, [{
          key: "_next",
          value: function _next(value) {
            var destination = this.destination;

            if (this.skipping) {
              this.tryCallPredicate(value);
            }

            if (!this.skipping) {
              destination.next(value);
            }
          }
        }, {
          key: "tryCallPredicate",
          value: function tryCallPredicate(value) {
            try {
              var result = this.predicate(value, this.index++);
              this.skipping = Boolean(result);
            } catch (err) {
              this.destination.error(err);
            }
          }
        }]);

        return SkipWhileSubscriber;
      }(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]); //# sourceMappingURL=skipWhile.js.map

      /***/

    },

    /***/
    "3E0/": function E0(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "delay", function () {
        return delay;
      });
      /* harmony import */


      var _scheduler_async__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../scheduler/async */
      "D0XW");
      /* harmony import */


      var _util_isDate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../util/isDate */
      "mlxB");
      /* harmony import */


      var _Subscriber__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../Subscriber */
      "7o/Q");
      /* harmony import */


      var _Notification__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../Notification */
      "WMd4");

      function delay(delay) {
        var scheduler = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _scheduler_async__WEBPACK_IMPORTED_MODULE_0__["async"];
        var absoluteDelay = Object(_util_isDate__WEBPACK_IMPORTED_MODULE_1__["isDate"])(delay);
        var delayFor = absoluteDelay ? +delay - scheduler.now() : Math.abs(delay);
        return function (source) {
          return source.lift(new DelayOperator(delayFor, scheduler));
        };
      }

      var DelayOperator = /*#__PURE__*/function () {
        function DelayOperator(delay, scheduler) {
          _classCallCheck2(this, DelayOperator);

          this.delay = delay;
          this.scheduler = scheduler;
        }

        _createClass2(DelayOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            return source.subscribe(new DelaySubscriber(subscriber, this.delay, this.scheduler));
          }
        }]);

        return DelayOperator;
      }();

      var DelaySubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_6) {
        _inherits2(DelaySubscriber, _Subscriber__WEBPACK_6);

        var _super135 = _createSuper2(DelaySubscriber);

        function DelaySubscriber(destination, delay, scheduler) {
          var _this369;

          _classCallCheck2(this, DelaySubscriber);

          _this369 = _super135.call(this, destination);
          _this369.delay = delay;
          _this369.scheduler = scheduler;
          _this369.queue = [];
          _this369.active = false;
          _this369.errored = false;
          return _this369;
        }

        _createClass2(DelaySubscriber, [{
          key: "_schedule",
          value: function _schedule(scheduler) {
            this.active = true;
            var destination = this.destination;
            destination.add(scheduler.schedule(DelaySubscriber.dispatch, this.delay, {
              source: this,
              destination: this.destination,
              scheduler: scheduler
            }));
          }
        }, {
          key: "scheduleNotification",
          value: function scheduleNotification(notification) {
            if (this.errored === true) {
              return;
            }

            var scheduler = this.scheduler;
            var message = new DelayMessage(scheduler.now() + this.delay, notification);
            this.queue.push(message);

            if (this.active === false) {
              this._schedule(scheduler);
            }
          }
        }, {
          key: "_next",
          value: function _next(value) {
            this.scheduleNotification(_Notification__WEBPACK_IMPORTED_MODULE_3__["Notification"].createNext(value));
          }
        }, {
          key: "_error",
          value: function _error(err) {
            this.errored = true;
            this.queue = [];
            this.destination.error(err);
            this.unsubscribe();
          }
        }, {
          key: "_complete",
          value: function _complete() {
            this.scheduleNotification(_Notification__WEBPACK_IMPORTED_MODULE_3__["Notification"].createComplete());
            this.unsubscribe();
          }
        }], [{
          key: "dispatch",
          value: function dispatch(state) {
            var source = state.source;
            var queue = source.queue;
            var scheduler = state.scheduler;
            var destination = state.destination;

            while (queue.length > 0 && queue[0].time - scheduler.now() <= 0) {
              queue.shift().notification.observe(destination);
            }

            if (queue.length > 0) {
              var _delay2 = Math.max(0, queue[0].time - scheduler.now());

              this.schedule(state, _delay2);
            } else {
              this.unsubscribe();
              source.active = false;
            }
          }
        }]);

        return DelaySubscriber;
      }(_Subscriber__WEBPACK_IMPORTED_MODULE_2__["Subscriber"]);

      var DelayMessage = function DelayMessage(time, notification) {
        _classCallCheck2(this, DelayMessage);

        this.time = time;
        this.notification = notification;
      }; //# sourceMappingURL=delay.js.map

      /***/

    },

    /***/
    "3E1r": function E1r(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Hindi [hi]
      //! author : Mayank Singhal : https://github.com/mayanksinghal
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var symbolMap = {
          1: '१',
          2: '२',
          3: '३',
          4: '४',
          5: '५',
          6: '६',
          7: '७',
          8: '८',
          9: '९',
          0: '०'
        },
            numberMap = {
          '१': '1',
          '२': '2',
          '३': '3',
          '४': '4',
          '५': '5',
          '६': '6',
          '७': '7',
          '८': '8',
          '९': '9',
          '०': '0'
        },
            monthsParse = [/^जन/i, /^फ़र|फर/i, /^मार्च/i, /^अप्रै/i, /^मई/i, /^जून/i, /^जुल/i, /^अग/i, /^सितं|सित/i, /^अक्टू/i, /^नव|नवं/i, /^दिसं|दिस/i],
            shortMonthsParse = [/^जन/i, /^फ़र/i, /^मार्च/i, /^अप्रै/i, /^मई/i, /^जून/i, /^जुल/i, /^अग/i, /^सित/i, /^अक्टू/i, /^नव/i, /^दिस/i];
        var hi = moment.defineLocale('hi', {
          months: {
            format: 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split('_'),
            standalone: 'जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर'.split('_')
          },
          monthsShort: 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split('_'),
          weekdays: 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
          weekdaysShort: 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'),
          weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),
          longDateFormat: {
            LT: 'A h:mm बजे',
            LTS: 'A h:mm:ss बजे',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY, A h:mm बजे',
            LLLL: 'dddd, D MMMM YYYY, A h:mm बजे'
          },
          monthsParse: monthsParse,
          longMonthsParse: monthsParse,
          shortMonthsParse: shortMonthsParse,
          monthsRegex: /^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,
          monthsShortRegex: /^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,
          monthsStrictRegex: /^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,
          monthsShortStrictRegex: /^(जन\.?|फ़र\.?|मार्च?|अप्रै\.?|मई?|जून?|जुल\.?|अग\.?|सित\.?|अक्टू\.?|नव\.?|दिस\.?)/i,
          calendar: {
            sameDay: '[आज] LT',
            nextDay: '[कल] LT',
            nextWeek: 'dddd, LT',
            lastDay: '[कल] LT',
            lastWeek: '[पिछले] dddd, LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: '%s में',
            past: '%s पहले',
            s: 'कुछ ही क्षण',
            ss: '%d सेकंड',
            m: 'एक मिनट',
            mm: '%d मिनट',
            h: 'एक घंटा',
            hh: '%d घंटे',
            d: 'एक दिन',
            dd: '%d दिन',
            M: 'एक महीने',
            MM: '%d महीने',
            y: 'एक वर्ष',
            yy: '%d वर्ष'
          },
          preparse: function preparse(string) {
            return string.replace(/[१२३४५६७८९०]/g, function (match) {
              return numberMap[match];
            });
          },
          postformat: function postformat(string) {
            return string.replace(/\d/g, function (match) {
              return symbolMap[match];
            });
          },
          // Hindi notation for meridiems are quite fuzzy in practice. While there exists
          // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi.
          meridiemParse: /रात|सुबह|दोपहर|शाम/,
          meridiemHour: function meridiemHour(hour, meridiem) {
            if (hour === 12) {
              hour = 0;
            }

            if (meridiem === 'रात') {
              return hour < 4 ? hour : hour + 12;
            } else if (meridiem === 'सुबह') {
              return hour;
            } else if (meridiem === 'दोपहर') {
              return hour >= 10 ? hour : hour + 12;
            } else if (meridiem === 'शाम') {
              return hour + 12;
            }
          },
          meridiem: function meridiem(hour, minute, isLower) {
            if (hour < 4) {
              return 'रात';
            } else if (hour < 10) {
              return 'सुबह';
            } else if (hour < 17) {
              return 'दोपहर';
            } else if (hour < 20) {
              return 'शाम';
            } else {
              return 'रात';
            }
          },
          week: {
            dow: 0,
            // Sunday is the first day of the week.
            doy: 6 // The week that contains Jan 6th is the first week of the year.

          }
        });
        return hi;
      });
      /***/

    },

    /***/
    "3N8a": function N8a(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "AsyncAction", function () {
        return AsyncAction;
      });
      /* harmony import */


      var _Action__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ./Action */
      "7ve7");

      var AsyncAction = /*#__PURE__*/function (_Action__WEBPACK_IMPO) {
        _inherits2(AsyncAction, _Action__WEBPACK_IMPO);

        var _super136 = _createSuper2(AsyncAction);

        function AsyncAction(scheduler, work) {
          var _this370;

          _classCallCheck2(this, AsyncAction);

          _this370 = _super136.call(this, scheduler, work);
          _this370.scheduler = scheduler;
          _this370.work = work;
          _this370.pending = false;
          return _this370;
        }

        _createClass2(AsyncAction, [{
          key: "schedule",
          value: function schedule(state) {
            var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;

            if (this.closed) {
              return this;
            }

            this.state = state;
            var id = this.id;
            var scheduler = this.scheduler;

            if (id != null) {
              this.id = this.recycleAsyncId(scheduler, id, delay);
            }

            this.pending = true;
            this.delay = delay;
            this.id = this.id || this.requestAsyncId(scheduler, this.id, delay);
            return this;
          }
        }, {
          key: "requestAsyncId",
          value: function requestAsyncId(scheduler, id) {
            var delay = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
            return setInterval(scheduler.flush.bind(scheduler, this), delay);
          }
        }, {
          key: "recycleAsyncId",
          value: function recycleAsyncId(scheduler, id) {
            var delay = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;

            if (delay !== null && this.delay === delay && this.pending === false) {
              return id;
            }

            clearInterval(id);
            return undefined;
          }
        }, {
          key: "execute",
          value: function execute(state, delay) {
            if (this.closed) {
              return new Error('executing a cancelled action');
            }

            this.pending = false;

            var error = this._execute(state, delay);

            if (error) {
              return error;
            } else if (this.pending === false && this.id != null) {
              this.id = this.recycleAsyncId(this.scheduler, this.id, null);
            }
          }
        }, {
          key: "_execute",
          value: function _execute(state, delay) {
            var errored = false;
            var errorValue = undefined;

            try {
              this.work(state);
            } catch (e) {
              errored = true;
              errorValue = !!e && e || new Error(e);
            }

            if (errored) {
              this.unsubscribe();
              return errorValue;
            }
          }
        }, {
          key: "_unsubscribe",
          value: function _unsubscribe() {
            var id = this.id;
            var scheduler = this.scheduler;
            var actions = scheduler.actions;
            var index = actions.indexOf(this);
            this.work = null;
            this.state = null;
            this.pending = false;
            this.scheduler = null;

            if (index !== -1) {
              actions.splice(index, 1);
            }

            if (id != null) {
              this.id = this.recycleAsyncId(scheduler, id, null);
            }

            this.delay = null;
          }
        }]);

        return AsyncAction;
      }(_Action__WEBPACK_IMPORTED_MODULE_0__["Action"]); //# sourceMappingURL=AsyncAction.js.map

      /***/

    },

    /***/
    "3REe": function REe(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "isProtectedDayOfYearToken", function () {
        return isProtectedDayOfYearToken;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "isProtectedWeekYearToken", function () {
        return isProtectedWeekYearToken;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "throwProtectedError", function () {
        return throwProtectedError;
      });

      var protectedDayOfYearTokens = ['D', 'DD'];
      var protectedWeekYearTokens = ['YY', 'YYYY'];

      function isProtectedDayOfYearToken(token) {
        return protectedDayOfYearTokens.indexOf(token) !== -1;
      }

      function isProtectedWeekYearToken(token) {
        return protectedWeekYearTokens.indexOf(token) !== -1;
      }

      function throwProtectedError(token, format, input) {
        if (token === 'YYYY') {
          throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(format, "`) for formatting years to the input `").concat(input, "`; see: https://git.io/fxCyr"));
        } else if (token === 'YY') {
          throw new RangeError("Use `yy` instead of `YY` (in `".concat(format, "`) for formatting years to the input `").concat(input, "`; see: https://git.io/fxCyr"));
        } else if (token === 'D') {
          throw new RangeError("Use `d` instead of `D` (in `".concat(format, "`) for formatting days of the month to the input `").concat(input, "`; see: https://git.io/fxCyr"));
        } else if (token === 'DD') {
          throw new RangeError("Use `dd` instead of `DD` (in `".concat(format, "`) for formatting days of the month to the input `").concat(input, "`; see: https://git.io/fxCyr"));
        }
      }
      /***/

    },

    /***/
    "3UWI": function UWI(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "auditTime", function () {
        return auditTime;
      });
      /* harmony import */


      var _scheduler_async__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../scheduler/async */
      "D0XW");
      /* harmony import */


      var _audit__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ./audit */
      "tnsW");
      /* harmony import */


      var _observable_timer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../observable/timer */
      "PqYM");

      function auditTime(duration) {
        var scheduler = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _scheduler_async__WEBPACK_IMPORTED_MODULE_0__["async"];
        return Object(_audit__WEBPACK_IMPORTED_MODULE_1__["audit"])(function () {
          return Object(_observable_timer__WEBPACK_IMPORTED_MODULE_2__["timer"])(duration, scheduler);
        });
      } //# sourceMappingURL=auditTime.js.map

      /***/

    },

    /***/
    "3g9J": function g9J(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return getMinutes;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name getMinutes
       * @category Minute Helpers
       * @summary Get the minutes of the given date.
       *
       * @description
       * Get the minutes of the given date.
       *
       * ### 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 {Date|Number} date - the given date
       * @returns {Number} the minutes
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // Get the minutes of 29 February 2012 11:45:05:
       * var result = getMinutes(new Date(2012, 1, 29, 11, 45, 5))
       * //=> 45
       */


      function getMinutes(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);
        var minutes = date.getMinutes();
        return minutes;
      }
      /***/

    },

    /***/
    "3nag": function nag(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return differenceInCalendarQuarters;
      });
      /* harmony import */


      var _getQuarter_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../getQuarter/index.js */
      "SFWn");
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name differenceInCalendarQuarters
       * @category Quarter Helpers
       * @summary Get the number of calendar quarters between the given dates.
       *
       * @description
       * Get the number of calendar quarters between the given dates.
       *
       * ### 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 {Date|Number} dateLeft - the later date
       * @param {Date|Number} dateRight - the earlier date
       * @returns {Number} the number of calendar quarters
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // How many calendar quarters are between 31 December 2013 and 2 July 2014?
       * var result = differenceInCalendarQuarters(
       *   new Date(2014, 6, 2),
       *   new Date(2013, 11, 31)
       * )
       * //=> 3
       */


      function differenceInCalendarQuarters(dirtyDateLeft, dirtyDateRight) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(2, arguments);
        var dateLeft = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDateLeft);
        var dateRight = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDateRight);
        var yearDiff = dateLeft.getFullYear() - dateRight.getFullYear();
        var quarterDiff = Object(_getQuarter_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dateLeft) - Object(_getQuarter_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dateRight);
        return yearDiff * 4 + quarterDiff;
      }
      /***/

    },

    /***/
    "3y9D": function y9D(module, exports, __webpack_require__) {
      ;

      (function (root, factory) {
        if (true) {
          // CommonJS
          module.exports = exports = factory(__webpack_require__(
          /*! ./core */
          "Ib8C"));
        } else {}
      })(this, function (CryptoJS) {
        (function () {
          // Shortcuts
          var C = CryptoJS;
          var C_lib = C.lib;
          var WordArray = C_lib.WordArray;
          var Hasher = C_lib.Hasher;
          var C_algo = C.algo; // Reusable object

          var W = [];
          /**
           * SHA-1 hash algorithm.
           */

          var SHA1 = C_algo.SHA1 = Hasher.extend({
            _doReset: function _doReset() {
              this._hash = new WordArray.init([0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0]);
            },
            _doProcessBlock: function _doProcessBlock(M, offset) {
              // Shortcut
              var H = this._hash.words; // Working variables

              var a = H[0];
              var b = H[1];
              var c = H[2];
              var d = H[3];
              var e = H[4]; // Computation

              for (var i = 0; i < 80; i++) {
                if (i < 16) {
                  W[i] = M[offset + i] | 0;
                } else {
                  var n = W[i - 3] ^ W[i - 8] ^ W[i - 14] ^ W[i - 16];
                  W[i] = n << 1 | n >>> 31;
                }

                var t = (a << 5 | a >>> 27) + e + W[i];

                if (i < 20) {
                  t += (b & c | ~b & d) + 0x5a827999;
                } else if (i < 40) {
                  t += (b ^ c ^ d) + 0x6ed9eba1;
                } else if (i < 60) {
                  t += (b & c | b & d | c & d) - 0x70e44324;
                } else
                  /* if (i < 80) */
                  {
                    t += (b ^ c ^ d) - 0x359d3e2a;
                  }

                e = d;
                d = c;
                c = b << 30 | b >>> 2;
                b = a;
                a = t;
              } // Intermediate hash value


              H[0] = H[0] + a | 0;
              H[1] = H[1] + b | 0;
              H[2] = H[2] + c | 0;
              H[3] = H[3] + d | 0;
              H[4] = H[4] + e | 0;
            },
            _doFinalize: function _doFinalize() {
              // Shortcuts
              var data = this._data;
              var dataWords = data.words;
              var nBitsTotal = this._nDataBytes * 8;
              var nBitsLeft = data.sigBytes * 8; // Add padding

              dataWords[nBitsLeft >>> 5] |= 0x80 << 24 - nBitsLeft % 32;
              dataWords[(nBitsLeft + 64 >>> 9 << 4) + 14] = Math.floor(nBitsTotal / 0x100000000);
              dataWords[(nBitsLeft + 64 >>> 9 << 4) + 15] = nBitsTotal;
              data.sigBytes = dataWords.length * 4; // Hash final blocks

              this._process(); // Return final computed hash


              return this._hash;
            },
            clone: function clone() {
              var clone = Hasher.clone.call(this);
              clone._hash = this._hash.clone();
              return clone;
            }
          });
          /**
           * Shortcut function to the hasher's object interface.
           *
           * @param {WordArray|string} message The message to hash.
           *
           * @return {WordArray} The hash.
           *
           * @static
           *
           * @example
           *
           *     var hash = CryptoJS.SHA1('message');
           *     var hash = CryptoJS.SHA1(wordArray);
           */

          C.SHA1 = Hasher._createHelper(SHA1);
          /**
           * Shortcut function to the HMAC's object interface.
           *
           * @param {WordArray|string} message The message to hash.
           * @param {WordArray|string} key The secret key.
           *
           * @return {WordArray} The HMAC.
           *
           * @static
           *
           * @example
           *
           *     var hmac = CryptoJS.HmacSHA1(message, key);
           */

          C.HmacSHA1 = Hasher._createHmacHelper(SHA1);
        })();

        return CryptoJS.SHA1;
      });
      /***/

    },

    /***/
    "3zlk": function zlk(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return differenceInCalendarISOWeekYears;
      });
      /* harmony import */


      var _getISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../getISOWeekYear/index.js */
      "BKKT");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name differenceInCalendarISOWeekYears
       * @category ISO Week-Numbering Year Helpers
       * @summary Get the number of calendar ISO week-numbering years between the given dates.
       *
       * @description
       * Get the number of calendar ISO week-numbering years between the given dates.
       *
       * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
       *
       * ### 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).
       *
       * - The function was renamed from `differenceInCalendarISOYears` to `differenceInCalendarISOWeekYears`.
       *   "ISO week year" is short for [ISO week-numbering year](https://en.wikipedia.org/wiki/ISO_week_date).
       *   This change makes the name consistent with
       *   locale-dependent week-numbering year helpers, e.g., `addWeekYears`.
       *
       * @param {Date|Number} dateLeft - the later date
       * @param {Date|Number} dateRight - the earlier date
       * @returns {Number} the number of calendar ISO week-numbering years
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // How many calendar ISO week-numbering years are 1 January 2010 and 1 January 2012?
       * var result = differenceInCalendarISOWeekYears(
       *   new Date(2012, 0, 1),
       *   new Date(2010, 0, 1)
       * )
       * //=> 2
       */


      function differenceInCalendarISOWeekYears(dirtyDateLeft, dirtyDateRight) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(2, arguments);
        return Object(_getISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateLeft) - Object(_getISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateRight);
      }
      /***/

    },

    /***/
    "4+6U": function U(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return parseISO;
      });
      /* harmony import */


      var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../_lib/toInteger/index.js */
      "/h9T");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");

      var MILLISECONDS_IN_HOUR = 3600000;
      var MILLISECONDS_IN_MINUTE = 60000;
      var DEFAULT_ADDITIONAL_DIGITS = 2;
      var patterns = {
        dateTimeDelimiter: /[T ]/,
        timeZoneDelimiter: /[Z ]/i,
        timezone: /([Z+-].*)$/
      };
      var dateRegex = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/;
      var timeRegex = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/;
      var timezoneRegex = /^([+-])(\d{2})(?::?(\d{2}))?$/;
      /**
       * @name parseISO
       * @category Common Helpers
       * @summary Parse ISO string
       *
       * @description
       * Parse the given string in ISO 8601 format and return an instance of Date.
       *
       * Function accepts complete ISO 8601 formats as well as partial implementations.
       * ISO 8601: http://en.wikipedia.org/wiki/ISO_8601
       *
       * If the argument isn't a string, the function cannot parse the string or
       * the values are invalid, it returns Invalid Date.
       *
       * ### 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).
       *
       * - The previous `parse` implementation was renamed to `parseISO`.
       *
       *   ```javascript
       *   // Before v2.0.0
       *   parse('2016-01-01')
       *
       *   // v2.0.0 onward
       *   parseISO('2016-01-01')
       *   ```
       *
       * - `parseISO` now validates separate date and time values in ISO-8601 strings
       *   and returns `Invalid Date` if the date is invalid.
       *
       *   ```javascript
       *   parseISO('2018-13-32')
       *   //=> Invalid Date
       *   ```
       *
       * - `parseISO` now doesn't fall back to `new Date` constructor
       *   if it fails to parse a string argument. Instead, it returns `Invalid Date`.
       *
       * @param {String} argument - the value to convert
       * @param {Object} [options] - an object with options.
       * @param {0|1|2} [options.additionalDigits=2] - the additional number of digits in the extended year format
       * @returns {Date} the parsed date in the local time zone
       * @throws {TypeError} 1 argument required
       * @throws {RangeError} `options.additionalDigits` must be 0, 1 or 2
       *
       * @example
       * // Convert string '2014-02-11T11:30:30' to date:
       * var result = parseISO('2014-02-11T11:30:30')
       * //=> Tue Feb 11 2014 11:30:30
       *
       * @example
       * // Convert string '+02014101' to date,
       * // if the additional number of digits in the extended year format is 1:
       * var result = parseISO('+02014101', { additionalDigits: 1 })
       * //=> Fri Apr 11 2014 00:00:00
       */

      function parseISO(argument, dirtyOptions) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        var options = dirtyOptions || {};
        var additionalDigits = options.additionalDigits == null ? DEFAULT_ADDITIONAL_DIGITS : Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(options.additionalDigits);

        if (additionalDigits !== 2 && additionalDigits !== 1 && additionalDigits !== 0) {
          throw new RangeError('additionalDigits must be 0, 1 or 2');
        }

        if (!(typeof argument === 'string' || Object.prototype.toString.call(argument) === '[object String]')) {
          return new Date(NaN);
        }

        var dateStrings = splitDateString(argument);
        var date;

        if (dateStrings.date) {
          var parseYearResult = parseYear(dateStrings.date, additionalDigits);
          date = parseDate(parseYearResult.restDateString, parseYearResult.year);
        }

        if (isNaN(date) || !date) {
          return new Date(NaN);
        }

        var timestamp = date.getTime();
        var time = 0;
        var offset;

        if (dateStrings.time) {
          time = parseTime(dateStrings.time);

          if (isNaN(time) || time === null) {
            return new Date(NaN);
          }
        }

        if (dateStrings.timezone) {
          offset = parseTimezone(dateStrings.timezone);

          if (isNaN(offset)) {
            return new Date(NaN);
          }
        } else {
          var dirtyDate = new Date(timestamp + time); // js parsed string assuming it's in UTC timezone
          // but we need it to be parsed in our timezone
          // so we use utc values to build date in our timezone.
          // Year values from 0 to 99 map to the years 1900 to 1999
          // so set year explicitly with setFullYear.

          var result = new Date(dirtyDate.getUTCFullYear(), dirtyDate.getUTCMonth(), dirtyDate.getUTCDate(), dirtyDate.getUTCHours(), dirtyDate.getUTCMinutes(), dirtyDate.getUTCSeconds(), dirtyDate.getUTCMilliseconds());
          result.setFullYear(dirtyDate.getUTCFullYear());
          return result;
        }

        return new Date(timestamp + time + offset);
      }

      function splitDateString(dateString) {
        var dateStrings = {};
        var array = dateString.split(patterns.dateTimeDelimiter);
        var timeString; // The regex match should only return at maximum two array elements.
        // [date], [time], or [date, time].

        if (array.length > 2) {
          return dateStrings;
        }

        if (/:/.test(array[0])) {
          dateStrings.date = null;
          timeString = array[0];
        } else {
          dateStrings.date = array[0];
          timeString = array[1];

          if (patterns.timeZoneDelimiter.test(dateStrings.date)) {
            dateStrings.date = dateString.split(patterns.timeZoneDelimiter)[0];
            timeString = dateString.substr(dateStrings.date.length, dateString.length);
          }
        }

        if (timeString) {
          var token = patterns.timezone.exec(timeString);

          if (token) {
            dateStrings.time = timeString.replace(token[1], '');
            dateStrings.timezone = token[1];
          } else {
            dateStrings.time = timeString;
          }
        }

        return dateStrings;
      }

      function parseYear(dateString, additionalDigits) {
        var regex = new RegExp('^(?:(\\d{4}|[+-]\\d{' + (4 + additionalDigits) + '})|(\\d{2}|[+-]\\d{' + (2 + additionalDigits) + '})$)');
        var captures = dateString.match(regex); // Invalid ISO-formatted year

        if (!captures) return {
          year: null
        };
        var year = captures[1] && parseInt(captures[1]);
        var century = captures[2] && parseInt(captures[2]);
        return {
          year: century == null ? year : century * 100,
          restDateString: dateString.slice((captures[1] || captures[2]).length)
        };
      }

      function parseDate(dateString, year) {
        // Invalid ISO-formatted year
        if (year === null) return null;
        var captures = dateString.match(dateRegex); // Invalid ISO-formatted string

        if (!captures) return null;
        var isWeekDate = !!captures[4];
        var dayOfYear = parseDateUnit(captures[1]);
        var month = parseDateUnit(captures[2]) - 1;
        var day = parseDateUnit(captures[3]);
        var week = parseDateUnit(captures[4]);
        var dayOfWeek = parseDateUnit(captures[5]) - 1;

        if (isWeekDate) {
          if (!validateWeekDate(year, week, dayOfWeek)) {
            return new Date(NaN);
          }

          return dayOfISOWeekYear(year, week, dayOfWeek);
        } else {
          var date = new Date(0);

          if (!validateDate(year, month, day) || !validateDayOfYearDate(year, dayOfYear)) {
            return new Date(NaN);
          }

          date.setUTCFullYear(year, month, Math.max(dayOfYear, day));
          return date;
        }
      }

      function parseDateUnit(value) {
        return value ? parseInt(value) : 1;
      }

      function parseTime(timeString) {
        var captures = timeString.match(timeRegex);
        if (!captures) return null; // Invalid ISO-formatted time

        var hours = parseTimeUnit(captures[1]);
        var minutes = parseTimeUnit(captures[2]);
        var seconds = parseTimeUnit(captures[3]);

        if (!validateTime(hours, minutes, seconds)) {
          return NaN;
        }

        return hours * MILLISECONDS_IN_HOUR + minutes * MILLISECONDS_IN_MINUTE + seconds * 1000;
      }

      function parseTimeUnit(value) {
        return value && parseFloat(value.replace(',', '.')) || 0;
      }

      function parseTimezone(timezoneString) {
        if (timezoneString === 'Z') return 0;
        var captures = timezoneString.match(timezoneRegex);
        if (!captures) return 0;
        var sign = captures[1] === '+' ? -1 : 1;
        var hours = parseInt(captures[2]);
        var minutes = captures[3] && parseInt(captures[3]) || 0;

        if (!validateTimezone(hours, minutes)) {
          return NaN;
        }

        return sign * (hours * MILLISECONDS_IN_HOUR + minutes * MILLISECONDS_IN_MINUTE);
      }

      function dayOfISOWeekYear(isoWeekYear, week, day) {
        var date = new Date(0);
        date.setUTCFullYear(isoWeekYear, 0, 4);
        var fourthOfJanuaryDay = date.getUTCDay() || 7;
        var diff = (week - 1) * 7 + day + 1 - fourthOfJanuaryDay;
        date.setUTCDate(date.getUTCDate() + diff);
        return date;
      } // Validation functions
      // February is null to handle the leap year (using ||)


      var daysInMonths = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];

      function isLeapYearIndex(year) {
        return year % 400 === 0 || year % 4 === 0 && year % 100;
      }

      function validateDate(year, month, date) {
        return month >= 0 && month <= 11 && date >= 1 && date <= (daysInMonths[month] || (isLeapYearIndex(year) ? 29 : 28));
      }

      function validateDayOfYearDate(year, dayOfYear) {
        return dayOfYear >= 1 && dayOfYear <= (isLeapYearIndex(year) ? 366 : 365);
      }

      function validateWeekDate(_year, week, day) {
        return week >= 1 && week <= 53 && day >= 0 && day <= 6;
      }

      function validateTime(hours, minutes, seconds) {
        if (hours === 24) {
          return minutes === 0 && seconds === 0;
        }

        return seconds >= 0 && seconds < 60 && minutes >= 0 && minutes < 60 && hours >= 0 && hours < 25;
      }

      function validateTimezone(_hours, minutes) {
        return minutes >= 0 && minutes <= 59;
      }
      /***/

    },

    /***/
    "4A3s": function A3s(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ignoreElements", function () {
        return ignoreElements;
      });
      /* harmony import */


      var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Subscriber */
      "7o/Q");

      function ignoreElements() {
        return function ignoreElementsOperatorFunction(source) {
          return source.lift(new IgnoreElementsOperator());
        };
      }

      var IgnoreElementsOperator = /*#__PURE__*/function () {
        function IgnoreElementsOperator() {
          _classCallCheck2(this, IgnoreElementsOperator);
        }

        _createClass2(IgnoreElementsOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            return source.subscribe(new IgnoreElementsSubscriber(subscriber));
          }
        }]);

        return IgnoreElementsOperator;
      }();

      var IgnoreElementsSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_7) {
        _inherits2(IgnoreElementsSubscriber, _Subscriber__WEBPACK_7);

        var _super137 = _createSuper2(IgnoreElementsSubscriber);

        function IgnoreElementsSubscriber() {
          _classCallCheck2(this, IgnoreElementsSubscriber);

          return _super137.apply(this, arguments);
        }

        _createClass2(IgnoreElementsSubscriber, [{
          key: "_next",
          value: function _next(unused) {}
        }]);

        return IgnoreElementsSubscriber;
      }(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]); //# sourceMappingURL=ignoreElements.js.map

      /***/

    },

    /***/
    "4G8O": function G8O(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return getMilliseconds;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name getMilliseconds
       * @category Millisecond Helpers
       * @summary Get the milliseconds of the given date.
       *
       * @description
       * Get the milliseconds of the given date.
       *
       * ### 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 {Date|Number} date - the given date
       * @returns {Number} the milliseconds
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // Get the milliseconds of 29 February 2012 11:45:05.123:
       * var result = getMilliseconds(new Date(2012, 1, 29, 11, 45, 5, 123))
       * //=> 123
       */


      function getMilliseconds(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);
        var milliseconds = date.getMilliseconds();
        return milliseconds;
      }
      /***/

    },

    /***/
    "4I5i": function I5i(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ArgumentOutOfRangeError", function () {
        return ArgumentOutOfRangeError;
      });

      var ArgumentOutOfRangeErrorImpl = function () {
        function ArgumentOutOfRangeErrorImpl() {
          Error.call(this);
          this.message = 'argument out of range';
          this.name = 'ArgumentOutOfRangeError';
          return this;
        }

        ArgumentOutOfRangeErrorImpl.prototype = Object.create(Error.prototype);
        return ArgumentOutOfRangeErrorImpl;
      }();

      var ArgumentOutOfRangeError = ArgumentOutOfRangeErrorImpl; //# sourceMappingURL=ArgumentOutOfRangeError.js.map

      /***/
    },

    /***/
    "4MV3": function MV3(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Gujarati [gu]
      //! author : Kaushik Thanki : https://github.com/Kaushik1987
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var symbolMap = {
          1: '૧',
          2: '૨',
          3: '૩',
          4: '૪',
          5: '૫',
          6: '૬',
          7: '૭',
          8: '૮',
          9: '૯',
          0: '૦'
        },
            numberMap = {
          '૧': '1',
          '૨': '2',
          '૩': '3',
          '૪': '4',
          '૫': '5',
          '૬': '6',
          '૭': '7',
          '૮': '8',
          '૯': '9',
          '૦': '0'
        };
        var gu = moment.defineLocale('gu', {
          months: 'જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર'.split('_'),
          monthsShort: 'જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.'.split('_'),
          monthsParseExact: true,
          weekdays: 'રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર'.split('_'),
          weekdaysShort: 'રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ'.split('_'),
          weekdaysMin: 'ર_સો_મં_બુ_ગુ_શુ_શ'.split('_'),
          longDateFormat: {
            LT: 'A h:mm વાગ્યે',
            LTS: 'A h:mm:ss વાગ્યે',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY, A h:mm વાગ્યે',
            LLLL: 'dddd, D MMMM YYYY, A h:mm વાગ્યે'
          },
          calendar: {
            sameDay: '[આજ] LT',
            nextDay: '[કાલે] LT',
            nextWeek: 'dddd, LT',
            lastDay: '[ગઇકાલે] LT',
            lastWeek: '[પાછલા] dddd, LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: '%s મા',
            past: '%s પહેલા',
            s: 'અમુક પળો',
            ss: '%d સેકંડ',
            m: 'એક મિનિટ',
            mm: '%d મિનિટ',
            h: 'એક કલાક',
            hh: '%d કલાક',
            d: 'એક દિવસ',
            dd: '%d દિવસ',
            M: 'એક મહિનો',
            MM: '%d મહિનો',
            y: 'એક વર્ષ',
            yy: '%d વર્ષ'
          },
          preparse: function preparse(string) {
            return string.replace(/[૧૨૩૪૫૬૭૮૯૦]/g, function (match) {
              return numberMap[match];
            });
          },
          postformat: function postformat(string) {
            return string.replace(/\d/g, function (match) {
              return symbolMap[match];
            });
          },
          // Gujarati notation for meridiems are quite fuzzy in practice. While there exists
          // a rigid notion of a 'Pahar' it is not used as rigidly in modern Gujarati.
          meridiemParse: /રાત|બપોર|સવાર|સાંજ/,
          meridiemHour: function meridiemHour(hour, meridiem) {
            if (hour === 12) {
              hour = 0;
            }

            if (meridiem === 'રાત') {
              return hour < 4 ? hour : hour + 12;
            } else if (meridiem === 'સવાર') {
              return hour;
            } else if (meridiem === 'બપોર') {
              return hour >= 10 ? hour : hour + 12;
            } else if (meridiem === 'સાંજ') {
              return hour + 12;
            }
          },
          meridiem: function meridiem(hour, minute, isLower) {
            if (hour < 4) {
              return 'રાત';
            } else if (hour < 10) {
              return 'સવાર';
            } else if (hour < 17) {
              return 'બપોર';
            } else if (hour < 20) {
              return 'સાંજ';
            } else {
              return 'રાત';
            }
          },
          week: {
            dow: 0,
            // Sunday is the first day of the week.
            doy: 6 // The week that contains Jan 6th is the first week of the year.

          }
        });
        return gu;
      });
      /***/

    },

    /***/
    "4O5X": function O5X(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "bindNodeCallback", function () {
        return bindNodeCallback;
      });
      /* harmony import */


      var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Observable */
      "HDdC");
      /* harmony import */


      var _AsyncSubject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../AsyncSubject */
      "NHP+");
      /* harmony import */


      var _operators_map__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../operators/map */
      "lJxs");
      /* harmony import */


      var _util_canReportError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../util/canReportError */
      "8Qeq");
      /* harmony import */


      var _util_isScheduler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! ../util/isScheduler */
      "z+Ro");
      /* harmony import */


      var _util_isArray__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! ../util/isArray */
      "DH7j");

      function bindNodeCallback(callbackFunc, resultSelector, scheduler) {
        if (resultSelector) {
          if (Object(_util_isScheduler__WEBPACK_IMPORTED_MODULE_4__["isScheduler"])(resultSelector)) {
            scheduler = resultSelector;
          } else {
            return function () {
              return bindNodeCallback(callbackFunc, scheduler).apply(void 0, arguments).pipe(Object(_operators_map__WEBPACK_IMPORTED_MODULE_2__["map"])(function (args) {
                return Object(_util_isArray__WEBPACK_IMPORTED_MODULE_5__["isArray"])(args) ? resultSelector.apply(void 0, _toConsumableArray(args)) : resultSelector(args);
              }));
            };
          }
        }

        return function () {
          for (var _len14 = arguments.length, args = new Array(_len14), _key15 = 0; _key15 < _len14; _key15++) {
            args[_key15] = arguments[_key15];
          }

          var params = {
            subject: undefined,
            args: args,
            callbackFunc: callbackFunc,
            scheduler: scheduler,
            context: this
          };
          return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](function (subscriber) {
            var context = params.context;
            var subject = params.subject;

            if (!scheduler) {
              if (!subject) {
                subject = params.subject = new _AsyncSubject__WEBPACK_IMPORTED_MODULE_1__["AsyncSubject"]();

                var handler = function handler() {
                  for (var _len15 = arguments.length, innerArgs = new Array(_len15), _key16 = 0; _key16 < _len15; _key16++) {
                    innerArgs[_key16] = arguments[_key16];
                  }

                  var err = innerArgs.shift();

                  if (err) {
                    subject.error(err);
                    return;
                  }

                  subject.next(innerArgs.length <= 1 ? innerArgs[0] : innerArgs);
                  subject.complete();
                };

                try {
                  callbackFunc.apply(context, [].concat(args, [handler]));
                } catch (err) {
                  if (Object(_util_canReportError__WEBPACK_IMPORTED_MODULE_3__["canReportError"])(subject)) {
                    subject.error(err);
                  } else {
                    console.warn(err);
                  }
                }
              }

              return subject.subscribe(subscriber);
            } else {
              return scheduler.schedule(dispatch, 0, {
                params: params,
                subscriber: subscriber,
                context: context
              });
            }
          });
        };
      }

      function dispatch(state) {
        var _this371 = this;

        var params = state.params,
            subscriber = state.subscriber,
            context = state.context;
        var callbackFunc = params.callbackFunc,
            args = params.args,
            scheduler = params.scheduler;
        var subject = params.subject;

        if (!subject) {
          subject = params.subject = new _AsyncSubject__WEBPACK_IMPORTED_MODULE_1__["AsyncSubject"]();

          var handler = function handler() {
            for (var _len16 = arguments.length, innerArgs = new Array(_len16), _key17 = 0; _key17 < _len16; _key17++) {
              innerArgs[_key17] = arguments[_key17];
            }

            var err = innerArgs.shift();

            if (err) {
              _this371.add(scheduler.schedule(dispatchError, 0, {
                err: err,
                subject: subject
              }));
            } else {
              var value = innerArgs.length <= 1 ? innerArgs[0] : innerArgs;

              _this371.add(scheduler.schedule(dispatchNext, 0, {
                value: value,
                subject: subject
              }));
            }
          };

          try {
            callbackFunc.apply(context, [].concat(_toConsumableArray(args), [handler]));
          } catch (err) {
            this.add(scheduler.schedule(dispatchError, 0, {
              err: err,
              subject: subject
            }));
          }
        }

        this.add(subject.subscribe(subscriber));
      }

      function dispatchNext(arg) {
        var value = arg.value,
            subject = arg.subject;
        subject.next(value);
        subject.complete();
      }

      function dispatchError(arg) {
        var err = arg.err,
            subject = arg.subject;
        subject.error(err);
      } //# sourceMappingURL=bindNodeCallback.js.map

      /***/

    },

    /***/
    "4Ukw": function Ukw(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return formatISODuration;
      });
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name formatISODuration
       * @category Common Helpers
       * @summary Format a duration object according as ISO 8601 duration string
       *
       * @description
       * Format a duration object according to the ISO 8601 duration standard (https://www.digi.com/resources/documentation/digidocs/90001437-13/reference/r_iso_8601_duration_format.htm)
       *
       * @param {Duration} duration - the duration to format
       *
       * @returns {String} The ISO 8601 duration string
       * @throws {TypeError} Requires 1 argument
       * @throws {Error} Argument must be an object
       *
       * @example
       * // Format the given duration as ISO 8601 string
       * formatISODuration({
       *   years: 39,
       *   months: 2,
       *   days: 20,
       *   hours: 7,
       *   minutes: 5,
       *   seconds: 0
       * })
       * //=> 'P39Y2M20DT0H0M0S'
       */


      function formatISODuration(duration) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(1, arguments);
        if (typeof duration !== 'object') throw new Error('Duration must be an object');
        var _duration$years = duration.years,
            years = _duration$years === void 0 ? 0 : _duration$years,
            _duration$months = duration.months,
            months = _duration$months === void 0 ? 0 : _duration$months,
            _duration$days = duration.days,
            days = _duration$days === void 0 ? 0 : _duration$days,
            _duration$hours = duration.hours,
            hours = _duration$hours === void 0 ? 0 : _duration$hours,
            _duration$minutes = duration.minutes,
            minutes = _duration$minutes === void 0 ? 0 : _duration$minutes,
            _duration$seconds = duration.seconds,
            seconds = _duration$seconds === void 0 ? 0 : _duration$seconds;
        return "P".concat(years, "Y").concat(months, "M").concat(days, "DT").concat(hours, "H").concat(minutes, "M").concat(seconds, "S");
      }
      /***/

    },

    /***/
    "4bjS": function bjS(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return setMinutes;
      });
      /* harmony import */


      var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../_lib/toInteger/index.js */
      "/h9T");
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name setMinutes
       * @category Minute Helpers
       * @summary Set the minutes to the given date.
       *
       * @description
       * Set the minutes to the given date.
       *
       * ### 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 {Date|Number} date - the date to be changed
       * @param {Number} minutes - the minutes of the new date
       * @returns {Date} the new date with the minutes set
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // Set 45 minutes to 1 September 2014 11:30:40:
       * var result = setMinutes(new Date(2014, 8, 1, 11, 30, 40), 45)
       * //=> Mon Sep 01 2014 11:45:40
       */


      function setMinutes(dirtyDate, dirtyMinutes) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(2, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate);
        var minutes = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyMinutes);
        date.setMinutes(minutes);
        return date;
      }
      /***/

    },

    /***/
    "4dOw": function dOw(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : English (Ireland) [en-ie]
      //! author : Chris Cartlidge : https://github.com/chriscartlidge
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var enIe = moment.defineLocale('en-ie', {
          months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
          monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
          weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
          weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
          weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd D MMMM YYYY HH:mm'
          },
          calendar: {
            sameDay: '[Today at] LT',
            nextDay: '[Tomorrow at] LT',
            nextWeek: 'dddd [at] LT',
            lastDay: '[Yesterday at] LT',
            lastWeek: '[Last] dddd [at] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'in %s',
            past: '%s ago',
            s: 'a few seconds',
            ss: '%d seconds',
            m: 'a minute',
            mm: '%d minutes',
            h: 'an hour',
            hh: '%d hours',
            d: 'a day',
            dd: '%d days',
            M: 'a month',
            MM: '%d months',
            y: 'a year',
            yy: '%d years'
          },
          dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
          ordinal: function ordinal(number) {
            var b = number % 10,
                output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';
            return number + output;
          },
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return enIe;
      });
      /***/

    },

    /***/
    "4f8F": function f8F(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "race", function () {
        return race;
      });
      /* harmony import */


      var _util_isArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../util/isArray */
      "DH7j");
      /* harmony import */


      var _observable_race__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../observable/race */
      "Nv8m");

      function race() {
        for (var _len17 = arguments.length, observables = new Array(_len17), _key18 = 0; _key18 < _len17; _key18++) {
          observables[_key18] = arguments[_key18];
        }

        return function raceOperatorFunction(source) {
          if (observables.length === 1 && Object(_util_isArray__WEBPACK_IMPORTED_MODULE_0__["isArray"])(observables[0])) {
            observables = observables[0];
          }

          return source.lift.call(Object(_observable_race__WEBPACK_IMPORTED_MODULE_1__["race"]).apply(void 0, [source].concat(_toConsumableArray(observables))));
        };
      } //# sourceMappingURL=race.js.map

      /***/

    },

    /***/
    "4hIw": function hIw(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "timeInterval", function () {
        return timeInterval;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TimeInterval", function () {
        return TimeInterval;
      });
      /* harmony import */


      var _scheduler_async__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../scheduler/async */
      "D0XW");
      /* harmony import */


      var _scan__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ./scan */
      "Kqap");
      /* harmony import */


      var _observable_defer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../observable/defer */
      "NXyV");
      /* harmony import */


      var _map__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ./map */
      "lJxs");

      function timeInterval() {
        var scheduler = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _scheduler_async__WEBPACK_IMPORTED_MODULE_0__["async"];
        return function (source) {
          return Object(_observable_defer__WEBPACK_IMPORTED_MODULE_2__["defer"])(function () {
            return source.pipe(Object(_scan__WEBPACK_IMPORTED_MODULE_1__["scan"])(function (_ref47, value) {
              var current = _ref47.current;
              return {
                value: value,
                current: scheduler.now(),
                last: current
              };
            }, {
              current: scheduler.now(),
              value: undefined,
              last: undefined
            }), Object(_map__WEBPACK_IMPORTED_MODULE_3__["map"])(function (_ref48) {
              var current = _ref48.current,
                  last = _ref48.last,
                  value = _ref48.value;
              return new TimeInterval(value, current - last);
            }));
          });
        };
      }

      var TimeInterval = function TimeInterval(value, interval) {
        _classCallCheck2(this, TimeInterval);

        this.value = value;
        this.interval = interval;
      }; //# sourceMappingURL=timeInterval.js.map

      /***/

    },

    /***/
    "4jLh": function jLh(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return eachMonthOfInterval;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name eachMonthOfInterval
       * @category Interval Helpers
       * @summary Return the array of months within the specified time interval.
       *
       * @description
       * Return the array of months within the specified time interval.
       *
       * @param {Interval} interval - the interval. See [Interval]{@link docs/types/Interval}
       * @returns {Date[]} the array with starts of months from the month of the interval start to the month of the interval end
       * @throws {TypeError} 1 argument required
       * @throws {RangeError} The start of an interval cannot be after its end
       * @throws {RangeError} Date in interval cannot be `Invalid Date`
       *
       * @example
       * // Each month between 6 February 2014 and 10 August 2014:
       * var result = eachMonthOfInterval({
       *   start: new Date(2014, 1, 6),
       *   end: new Date(2014, 7, 10)
       * })
       * //=> [
       * //   Sat Feb 01 2014 00:00:00,
       * //   Sat Mar 01 2014 00:00:00,
       * //   Tue Apr 01 2014 00:00:00,
       * //   Thu May 01 2014 00:00:00,
       * //   Sun Jun 01 2014 00:00:00,
       * //   Tue Jul 01 2014 00:00:00,
       * //   Fri Aug 01 2014 00:00:00
       * // ]
       */


      function eachMonthOfInterval(dirtyInterval) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        var interval = dirtyInterval || {};
        var startDate = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(interval.start);
        var endDate = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["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 dates = [];
        var currentDate = startDate;
        currentDate.setHours(0, 0, 0, 0);
        currentDate.setDate(1);

        while (currentDate.getTime() <= endTime) {
          dates.push(Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(currentDate));
          currentDate.setMonth(currentDate.getMonth() + 1);
        }

        return dates;
      }
      /***/

    },

    /***/
    "4yVj": function yVj(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "schedulePromise", function () {
        return schedulePromise;
      });
      /* harmony import */


      var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Observable */
      "HDdC");
      /* harmony import */


      var _Subscription__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../Subscription */
      "quSY");

      function schedulePromise(input, scheduler) {
        return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](function (subscriber) {
          var sub = new _Subscription__WEBPACK_IMPORTED_MODULE_1__["Subscription"]();
          sub.add(scheduler.schedule(function () {
            return input.then(function (value) {
              sub.add(scheduler.schedule(function () {
                subscriber.next(value);
                sub.add(scheduler.schedule(function () {
                  return subscriber.complete();
                }));
              }));
            }, function (err) {
              sub.add(scheduler.schedule(function () {
                return subscriber.error(err);
              }));
            });
          }));
          return sub;
        });
      } //# sourceMappingURL=schedulePromise.js.map

      /***/

    },

    /***/
    "5+tZ": function tZ(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "mergeMap", function () {
        return mergeMap;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MergeMapOperator", function () {
        return MergeMapOperator;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MergeMapSubscriber", function () {
        return MergeMapSubscriber;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "flatMap", function () {
        return flatMap;
      });
      /* harmony import */


      var _map__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ./map */
      "lJxs");
      /* harmony import */


      var _observable_from__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../observable/from */
      "Cfvw");
      /* harmony import */


      var _innerSubscribe__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../innerSubscribe */
      "zx2A");

      function mergeMap(project, resultSelector) {
        var concurrent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : Number.POSITIVE_INFINITY;

        if (typeof resultSelector === 'function') {
          return function (source) {
            return source.pipe(mergeMap(function (a, i) {
              return Object(_observable_from__WEBPACK_IMPORTED_MODULE_1__["from"])(project(a, i)).pipe(Object(_map__WEBPACK_IMPORTED_MODULE_0__["map"])(function (b, ii) {
                return resultSelector(a, b, i, ii);
              }));
            }, concurrent));
          };
        } else if (typeof resultSelector === 'number') {
          concurrent = resultSelector;
        }

        return function (source) {
          return source.lift(new MergeMapOperator(project, concurrent));
        };
      }

      var MergeMapOperator = /*#__PURE__*/function () {
        function MergeMapOperator(project) {
          var concurrent = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Number.POSITIVE_INFINITY;

          _classCallCheck2(this, MergeMapOperator);

          this.project = project;
          this.concurrent = concurrent;
        }

        _createClass2(MergeMapOperator, [{
          key: "call",
          value: function call(observer, source) {
            return source.subscribe(new MergeMapSubscriber(observer, this.project, this.concurrent));
          }
        }]);

        return MergeMapOperator;
      }();

      var MergeMapSubscriber = /*#__PURE__*/function (_innerSubscribe__WEBP4) {
        _inherits2(MergeMapSubscriber, _innerSubscribe__WEBP4);

        var _super138 = _createSuper2(MergeMapSubscriber);

        function MergeMapSubscriber(destination, project) {
          var _this372;

          var concurrent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : Number.POSITIVE_INFINITY;

          _classCallCheck2(this, MergeMapSubscriber);

          _this372 = _super138.call(this, destination);
          _this372.project = project;
          _this372.concurrent = concurrent;
          _this372.hasCompleted = false;
          _this372.buffer = [];
          _this372.active = 0;
          _this372.index = 0;
          return _this372;
        }

        _createClass2(MergeMapSubscriber, [{
          key: "_next",
          value: function _next(value) {
            if (this.active < this.concurrent) {
              this._tryNext(value);
            } else {
              this.buffer.push(value);
            }
          }
        }, {
          key: "_tryNext",
          value: function _tryNext(value) {
            var result;
            var index = this.index++;

            try {
              result = this.project(value, index);
            } catch (err) {
              this.destination.error(err);
              return;
            }

            this.active++;

            this._innerSub(result);
          }
        }, {
          key: "_innerSub",
          value: function _innerSub(ish) {
            var innerSubscriber = new _innerSubscribe__WEBPACK_IMPORTED_MODULE_2__["SimpleInnerSubscriber"](this);
            var destination = this.destination;
            destination.add(innerSubscriber);
            var innerSubscription = Object(_innerSubscribe__WEBPACK_IMPORTED_MODULE_2__["innerSubscribe"])(ish, innerSubscriber);

            if (innerSubscription !== innerSubscriber) {
              destination.add(innerSubscription);
            }
          }
        }, {
          key: "_complete",
          value: function _complete() {
            this.hasCompleted = true;

            if (this.active === 0 && this.buffer.length === 0) {
              this.destination.complete();
            }

            this.unsubscribe();
          }
        }, {
          key: "notifyNext",
          value: function notifyNext(innerValue) {
            this.destination.next(innerValue);
          }
        }, {
          key: "notifyComplete",
          value: function notifyComplete() {
            var buffer = this.buffer;
            this.active--;

            if (buffer.length > 0) {
              this._next(buffer.shift());
            } else if (this.active === 0 && this.hasCompleted) {
              this.destination.complete();
            }
          }
        }]);

        return MergeMapSubscriber;
      }(_innerSubscribe__WEBPACK_IMPORTED_MODULE_2__["SimpleOuterSubscriber"]);

      var flatMap = mergeMap; //# sourceMappingURL=mergeMap.js.map

      /***/
    },

    /***/
    "51Bx": function Bx(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "mergeScan", function () {
        return mergeScan;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MergeScanOperator", function () {
        return MergeScanOperator;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MergeScanSubscriber", function () {
        return MergeScanSubscriber;
      });
      /* harmony import */


      var _innerSubscribe__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../innerSubscribe */
      "zx2A");

      function mergeScan(accumulator, seed) {
        var concurrent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : Number.POSITIVE_INFINITY;
        return function (source) {
          return source.lift(new MergeScanOperator(accumulator, seed, concurrent));
        };
      }

      var MergeScanOperator = /*#__PURE__*/function () {
        function MergeScanOperator(accumulator, seed, concurrent) {
          _classCallCheck2(this, MergeScanOperator);

          this.accumulator = accumulator;
          this.seed = seed;
          this.concurrent = concurrent;
        }

        _createClass2(MergeScanOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            return source.subscribe(new MergeScanSubscriber(subscriber, this.accumulator, this.seed, this.concurrent));
          }
        }]);

        return MergeScanOperator;
      }();

      var MergeScanSubscriber = /*#__PURE__*/function (_innerSubscribe__WEBP5) {
        _inherits2(MergeScanSubscriber, _innerSubscribe__WEBP5);

        var _super139 = _createSuper2(MergeScanSubscriber);

        function MergeScanSubscriber(destination, accumulator, acc, concurrent) {
          var _this373;

          _classCallCheck2(this, MergeScanSubscriber);

          _this373 = _super139.call(this, destination);
          _this373.accumulator = accumulator;
          _this373.acc = acc;
          _this373.concurrent = concurrent;
          _this373.hasValue = false;
          _this373.hasCompleted = false;
          _this373.buffer = [];
          _this373.active = 0;
          _this373.index = 0;
          return _this373;
        }

        _createClass2(MergeScanSubscriber, [{
          key: "_next",
          value: function _next(value) {
            if (this.active < this.concurrent) {
              var index = this.index++;
              var destination = this.destination;
              var ish;

              try {
                var accumulator = this.accumulator;
                ish = accumulator(this.acc, value, index);
              } catch (e) {
                return destination.error(e);
              }

              this.active++;

              this._innerSub(ish);
            } else {
              this.buffer.push(value);
            }
          }
        }, {
          key: "_innerSub",
          value: function _innerSub(ish) {
            var innerSubscriber = new _innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["SimpleInnerSubscriber"](this);
            var destination = this.destination;
            destination.add(innerSubscriber);
            var innerSubscription = Object(_innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["innerSubscribe"])(ish, innerSubscriber);

            if (innerSubscription !== innerSubscriber) {
              destination.add(innerSubscription);
            }
          }
        }, {
          key: "_complete",
          value: function _complete() {
            this.hasCompleted = true;

            if (this.active === 0 && this.buffer.length === 0) {
              if (this.hasValue === false) {
                this.destination.next(this.acc);
              }

              this.destination.complete();
            }

            this.unsubscribe();
          }
        }, {
          key: "notifyNext",
          value: function notifyNext(innerValue) {
            var destination = this.destination;
            this.acc = innerValue;
            this.hasValue = true;
            destination.next(innerValue);
          }
        }, {
          key: "notifyComplete",
          value: function notifyComplete() {
            var buffer = this.buffer;
            this.active--;

            if (buffer.length > 0) {
              this._next(buffer.shift());
            } else if (this.active === 0 && this.hasCompleted) {
              if (this.hasValue === false) {
                this.destination.next(this.acc);
              }

              this.destination.complete();
            }
          }
        }]);

        return MergeScanSubscriber;
      }(_innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["SimpleOuterSubscriber"]); //# sourceMappingURL=mergeScan.js.map

      /***/

    },

    /***/
    "51Dv": function Dv(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "InnerSubscriber", function () {
        return InnerSubscriber;
      });
      /* harmony import */


      var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ./Subscriber */
      "7o/Q");

      var InnerSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_8) {
        _inherits2(InnerSubscriber, _Subscriber__WEBPACK_8);

        var _super140 = _createSuper2(InnerSubscriber);

        function InnerSubscriber(parent, outerValue, outerIndex) {
          var _this374;

          _classCallCheck2(this, InnerSubscriber);

          _this374 = _super140.call(this);
          _this374.parent = parent;
          _this374.outerValue = outerValue;
          _this374.outerIndex = outerIndex;
          _this374.index = 0;
          return _this374;
        }

        _createClass2(InnerSubscriber, [{
          key: "_next",
          value: function _next(value) {
            this.parent.notifyNext(this.outerValue, value, this.outerIndex, this.index++, this);
          }
        }, {
          key: "_error",
          value: function _error(error) {
            this.parent.notifyError(error, this);
            this.unsubscribe();
          }
        }, {
          key: "_complete",
          value: function _complete() {
            this.parent.notifyComplete(this);
            this.unsubscribe();
          }
        }]);

        return InnerSubscriber;
      }(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]); //# sourceMappingURL=InnerSubscriber.js.map

      /***/

    },

    /***/
    "5B2Y": function B2Y(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "scheduleObservable", function () {
        return scheduleObservable;
      });
      /* harmony import */


      var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Observable */
      "HDdC");
      /* harmony import */


      var _Subscription__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../Subscription */
      "quSY");
      /* harmony import */


      var _symbol_observable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../symbol/observable */
      "kJWO");

      function scheduleObservable(input, scheduler) {
        return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](function (subscriber) {
          var sub = new _Subscription__WEBPACK_IMPORTED_MODULE_1__["Subscription"]();
          sub.add(scheduler.schedule(function () {
            var observable = input[_symbol_observable__WEBPACK_IMPORTED_MODULE_2__["observable"]]();

            sub.add(observable.subscribe({
              next: function next(value) {
                sub.add(scheduler.schedule(function () {
                  return subscriber.next(value);
                }));
              },
              error: function error(err) {
                sub.add(scheduler.schedule(function () {
                  return subscriber.error(err);
                }));
              },
              complete: function complete() {
                sub.add(scheduler.schedule(function () {
                  return subscriber.complete();
                }));
              }
            }));
          }));
          return sub;
        });
      } //# sourceMappingURL=scheduleObservable.js.map

      /***/

    },

    /***/
    "5FpM": function FpM(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return getISOWeeksInYear;
      });
      /* harmony import */


      var _startOfISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../startOfISOWeekYear/index.js */
      "0f5V");
      /* harmony import */


      var _addWeeks_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../addWeeks/index.js */
      "r4sE");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");

      var MILLISECONDS_IN_WEEK = 604800000;
      /**
       * @name getISOWeeksInYear
       * @category ISO Week-Numbering Year Helpers
       * @summary Get the number of weeks in an ISO week-numbering year of the given date.
       *
       * @description
       * Get the number of weeks in an ISO week-numbering year of the given date.
       *
       * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
       *
       * ### 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 {Date|Number} date - the given date
       * @returns {Number} the number of ISO weeks in a year
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // How many weeks are in ISO week-numbering year 2015?
       * var result = getISOWeeksInYear(new Date(2015, 1, 11))
       * //=> 53
       */

      function getISOWeeksInYear(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(1, arguments);
        var thisYear = Object(_startOfISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);
        var nextYear = Object(_startOfISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(_addWeeks_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(thisYear, 60));
        var diff = nextYear.valueOf() - thisYear.valueOf(); // Round the number of weeks to the nearest integer
        // because the number of milliseconds in a week is not constant
        // (e.g. it's different in the week of the daylight saving time clock shift)

        return Math.round(diff / MILLISECONDS_IN_WEEK);
      }
      /***/

    },

    /***/
    "5Izn": function Izn(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵngrx_modules_router_store_router_store_a", function () {
        return _ROUTER_CONFIG;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵngrx_modules_router_store_router_store_b", function () {
        return _createRouterConfig;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ROUTER_ERROR", function () {
        return ROUTER_ERROR;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ROUTER_CANCEL", function () {
        return ROUTER_CANCEL;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ROUTER_NAVIGATION", function () {
        return ROUTER_NAVIGATION;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ROUTER_NAVIGATED", function () {
        return ROUTER_NAVIGATED;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ROUTER_REQUEST", function () {
        return ROUTER_REQUEST;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "routerCancelAction", function () {
        return routerCancelAction;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "routerErrorAction", function () {
        return routerErrorAction;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "routerNavigatedAction", function () {
        return routerNavigatedAction;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "routerNavigationAction", function () {
        return routerNavigationAction;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "routerRequestAction", function () {
        return routerRequestAction;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "routerReducer", function () {
        return routerReducer;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "StoreRouterConnectingModule", function () {
        return StoreRouterConnectingModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NavigationActionTiming", function () {
        return NavigationActionTiming;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ROUTER_CONFIG", function () {
        return ROUTER_CONFIG;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "DEFAULT_ROUTER_FEATURENAME", function () {
        return DEFAULT_ROUTER_FEATURENAME;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "RouterStateSerializer", function () {
        return RouterStateSerializer;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "DefaultRouterStateSerializer", function () {
        return DefaultRouterStateSerializer;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MinimalRouterStateSerializer", function () {
        return MinimalRouterStateSerializer;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "getSelectors", function () {
        return getSelectors;
      });
      /* harmony import */


      var _ngrx_store__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @ngrx/store */
      "DQLy");
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /* harmony import */


      var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! @angular/router */
      "iInd");
      /* harmony import */


      var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! rxjs/operators */
      "kU1M");
      /**
       * @license NgRx 8.6.0
       * (c) 2015-2018 Brandon Roberts, Mike Ryan, Rob Wormald, Victor Savkin
       * License: MIT
       */

      /**
       * @fileoverview added by tsickle
       * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * An action dispatched when a router navigation request is fired.
       * @type {?}
       */


      var ROUTER_REQUEST = '@ngrx/router-store/request';
      /** @type {?} */

      var routerRequestAction = Object(_ngrx_store__WEBPACK_IMPORTED_MODULE_0__["createAction"])(ROUTER_REQUEST, Object(_ngrx_store__WEBPACK_IMPORTED_MODULE_0__["props"])());
      /**
       * An action dispatched when the router navigates.
       * @type {?}
       */

      var ROUTER_NAVIGATION = '@ngrx/router-store/navigation';
      /** @type {?} */

      var routerNavigationAction = Object(_ngrx_store__WEBPACK_IMPORTED_MODULE_0__["createAction"])(ROUTER_NAVIGATION, Object(_ngrx_store__WEBPACK_IMPORTED_MODULE_0__["props"])());
      /**
       * An action dispatched when the router cancels navigation.
       * @type {?}
       */

      var ROUTER_CANCEL = '@ngrx/router-store/cancel';
      /** @type {?} */

      var routerCancelAction = Object(_ngrx_store__WEBPACK_IMPORTED_MODULE_0__["createAction"])(ROUTER_CANCEL, Object(_ngrx_store__WEBPACK_IMPORTED_MODULE_0__["props"])());
      /**
       * An action dispatched when the router errors.
       * @type {?}
       */

      var ROUTER_ERROR = '@ngrx/router-store/error';
      /** @type {?} */

      var routerErrorAction = Object(_ngrx_store__WEBPACK_IMPORTED_MODULE_0__["createAction"])(ROUTER_ERROR, Object(_ngrx_store__WEBPACK_IMPORTED_MODULE_0__["props"])());
      /**
       * An action dispatched after navigation has ended and new route is active.
       * @type {?}
       */

      var ROUTER_NAVIGATED = '@ngrx/router-store/navigated';
      /** @type {?} */

      var routerNavigatedAction = Object(_ngrx_store__WEBPACK_IMPORTED_MODULE_0__["createAction"])(ROUTER_NAVIGATED, Object(_ngrx_store__WEBPACK_IMPORTED_MODULE_0__["props"])());
      /**
       * @fileoverview added by tsickle
       * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * @template T
       * @param {?} state
       * @param {?} action
       * @return {?}
       */

      function routerReducer(state, action) {
        // Allow compilation with strictFunctionTypes - ref: #1344

        /** @type {?} */
        var routerAction = action;

        switch (routerAction.type) {
          case ROUTER_NAVIGATION:
          case ROUTER_ERROR:
          case ROUTER_CANCEL:
            return {
              state: routerAction.payload.routerState,
              navigationId: routerAction.payload.event.id
            };

          default:
            return state;
        }
      }
      /**
       * @fileoverview added by tsickle
       * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * @abstract
       * @template T
       */


      var RouterStateSerializer = function RouterStateSerializer() {
        _classCallCheck2(this, RouterStateSerializer);
      };
      /**
       * @fileoverview added by tsickle
       * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */


      var DefaultRouterStateSerializer = /*#__PURE__*/function () {
        function DefaultRouterStateSerializer() {
          _classCallCheck2(this, DefaultRouterStateSerializer);
        }

        _createClass2(DefaultRouterStateSerializer, [{
          key: "serialize",
          value:
          /**
           * @param {?} routerState
           * @return {?}
           */
          function serialize(routerState) {
            return {
              root: this.serializeRoute(routerState.root),
              url: routerState.url
            };
          }
          /**
           * @private
           * @param {?} route
           * @return {?}
           */

        }, {
          key: "serializeRoute",
          value: function serializeRoute(route) {
            var _this375 = this;

            /** @type {?} */
            var children = route.children.map(
            /**
            * @param {?} c
            * @return {?}
            */
            function (c) {
              return _this375.serializeRoute(c);
            });
            return {
              params: route.params,
              paramMap: route.paramMap,
              data: route.data,
              url: route.url,
              outlet: route.outlet,
              routeConfig: route.routeConfig ? {
                component: route.routeConfig.component,
                path: route.routeConfig.path,
                pathMatch: route.routeConfig.pathMatch,
                redirectTo: route.routeConfig.redirectTo,
                outlet: route.routeConfig.outlet
              } : null,
              queryParams: route.queryParams,
              queryParamMap: route.queryParamMap,
              fragment: route.fragment,
              component: route.routeConfig ? route.routeConfig.component : undefined,
              root: undefined,
              parent: undefined,
              firstChild: children[0],
              pathFromRoot: undefined,
              children: children
            };
          }
        }]);

        return DefaultRouterStateSerializer;
      }();
      /**
       * @fileoverview added by tsickle
       * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */


      var MinimalRouterStateSerializer = /*#__PURE__*/function () {
        function MinimalRouterStateSerializer() {
          _classCallCheck2(this, MinimalRouterStateSerializer);
        }

        _createClass2(MinimalRouterStateSerializer, [{
          key: "serialize",
          value:
          /**
           * @param {?} routerState
           * @return {?}
           */
          function serialize(routerState) {
            return {
              root: this.serializeRoute(routerState.root),
              url: routerState.url
            };
          }
          /**
           * @private
           * @param {?} route
           * @return {?}
           */

        }, {
          key: "serializeRoute",
          value: function serializeRoute(route) {
            var _this376 = this;

            /** @type {?} */
            var children = route.children.map(
            /**
            * @param {?} c
            * @return {?}
            */
            function (c) {
              return _this376.serializeRoute(c);
            });
            return {
              params: route.params,
              data: route.data,
              url: route.url,
              outlet: route.outlet,
              routeConfig: route.routeConfig ? {
                path: route.routeConfig.path,
                pathMatch: route.routeConfig.pathMatch,
                redirectTo: route.routeConfig.redirectTo,
                outlet: route.routeConfig.outlet
              } : null,
              queryParams: route.queryParams,
              fragment: route.fragment,
              firstChild: children[0],
              children: children
            };
          }
        }]);

        return MinimalRouterStateSerializer;
      }();
      /**
       * @fileoverview added by tsickle
       * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /** @enum {number} */


      var NavigationActionTiming = {
        PreActivation: 1,
        PostActivation: 2
      };
      NavigationActionTiming[NavigationActionTiming.PreActivation] = 'PreActivation';
      NavigationActionTiming[NavigationActionTiming.PostActivation] = 'PostActivation';
      /** @type {?} */

      var _ROUTER_CONFIG = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["InjectionToken"]('@ngrx/router-store Internal Configuration');
      /** @type {?} */


      var ROUTER_CONFIG = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["InjectionToken"]('@ngrx/router-store Configuration');
      /** @type {?} */

      var DEFAULT_ROUTER_FEATURENAME = 'router';
      /**
       * @param {?} config
       * @return {?}
       */

      function _createRouterConfig(config) {
        return Object.assign({
          stateKey: DEFAULT_ROUTER_FEATURENAME,
          serializer: DefaultRouterStateSerializer,
          navigationActionTiming: NavigationActionTiming.PreActivation
        }, config);
      }
      /** @enum {number} */


      var RouterTrigger = {
        NONE: 1,
        ROUTER: 2,
        STORE: 3
      };
      RouterTrigger[RouterTrigger.NONE] = 'NONE';
      RouterTrigger[RouterTrigger.ROUTER] = 'ROUTER';
      RouterTrigger[RouterTrigger.STORE] = 'STORE';
      /**
       * Connects RouterModule with StoreModule.
       *
       * During the navigation, before any guards or resolvers run, the router will dispatch
       * a ROUTER_NAVIGATION action, which has the following signature:
       *
       * ```
       * export type RouterNavigationPayload = {
       *   routerState: SerializedRouterStateSnapshot,
       *   event: RoutesRecognized
       * }
       * ```
       *
       * Either a reducer or an effect can be invoked in response to this action.
       * If the invoked reducer throws, the navigation will be canceled.
       *
       * If navigation gets canceled because of a guard, a ROUTER_CANCEL action will be
       * dispatched. If navigation results in an error, a ROUTER_ERROR action will be dispatched.
       *
       * Both ROUTER_CANCEL and ROUTER_ERROR contain the store state before the navigation
       * which can be used to restore the consistency of the store.
       *
       * Usage:
       *
       * ```typescript
       * \@NgModule({
       *   declarations: [AppCmp, SimpleCmp],
       *   imports: [
       *     BrowserModule,
       *     StoreModule.forRoot(mapOfReducers),
       *     RouterModule.forRoot([
       *       { path: '', component: SimpleCmp },
       *       { path: 'next', component: SimpleCmp }
       *     ]),
       *     StoreRouterConnectingModule.forRoot()
       *   ],
       *   bootstrap: [AppCmp]
       * })
       * export class AppModule {
       * }
       * ```
       */

      var StoreRouterConnectingModule = /*#__PURE__*/function () {
        /**
         * @param {?} store
         * @param {?} router
         * @param {?} serializer
         * @param {?} errorHandler
         * @param {?} config
         */
        function StoreRouterConnectingModule(store, router, serializer, errorHandler, config) {
          _classCallCheck2(this, StoreRouterConnectingModule);

          this.store = store;
          this.router = router;
          this.serializer = serializer;
          this.errorHandler = errorHandler;
          this.config = config;
          this.lastEvent = null;
          this.trigger = RouterTrigger.NONE;
          this.stateKey = this.config.stateKey;
          this.setUpStoreStateListener();
          this.setUpRouterEventsListener();
        }
        /**
         * @template T
         * @param {?=} config
         * @return {?}
         */


        _createClass2(StoreRouterConnectingModule, [{
          key: "setUpStoreStateListener",
          value:
          /**
           * @private
           * @return {?}
           */
          function setUpStoreStateListener() {
            var _this377 = this;

            this.store.pipe(Object(_ngrx_store__WEBPACK_IMPORTED_MODULE_0__["select"])(this.stateKey), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["withLatestFrom"])(this.store)).subscribe(
            /**
            * @param {?} __0
            * @return {?}
            */
            function (_ref49) {
              var _ref50 = _slicedToArray(_ref49, 2),
                  routerStoreState = _ref50[0],
                  storeState = _ref50[1];

              _this377.navigateIfNeeded(routerStoreState, storeState);
            });
          }
          /**
           * @private
           * @param {?} routerStoreState
           * @param {?} storeState
           * @return {?}
           */

        }, {
          key: "navigateIfNeeded",
          value: function navigateIfNeeded(routerStoreState, storeState) {
            var _this378 = this;

            if (!routerStoreState || !routerStoreState.state) {
              return;
            }

            if (this.trigger === RouterTrigger.ROUTER) {
              return;
            }

            if (this.lastEvent instanceof _angular_router__WEBPACK_IMPORTED_MODULE_2__["NavigationStart"]) {
              return;
            }
            /** @type {?} */


            var url = routerStoreState.state.url;

            if (this.router.url !== url) {
              this.storeState = storeState;
              this.trigger = RouterTrigger.STORE;
              this.router.navigateByUrl(url)["catch"](
              /**
              * @param {?} error
              * @return {?}
              */
              function (error) {
                _this378.errorHandler.handleError(error);
              });
            }
          }
          /**
           * @private
           * @return {?}
           */

        }, {
          key: "setUpRouterEventsListener",
          value: function setUpRouterEventsListener() {
            var _this379 = this;

            /** @type {?} */
            var dispatchNavLate = this.config.navigationActionTiming === NavigationActionTiming.PostActivation;
            /** @type {?} */

            var routesRecognized;
            this.router.events.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["withLatestFrom"])(this.store)).subscribe(
            /**
            * @param {?} __0
            * @return {?}
            */
            function (_ref51) {
              var _ref52 = _slicedToArray(_ref51, 2),
                  event = _ref52[0],
                  storeState = _ref52[1];

              _this379.lastEvent = event;

              if (event instanceof _angular_router__WEBPACK_IMPORTED_MODULE_2__["NavigationStart"]) {
                _this379.routerState = _this379.serializer.serialize(_this379.router.routerState.snapshot);

                if (_this379.trigger !== RouterTrigger.STORE) {
                  _this379.storeState = storeState;

                  _this379.dispatchRouterRequest(event);
                }
              } else if (event instanceof _angular_router__WEBPACK_IMPORTED_MODULE_2__["RoutesRecognized"]) {
                routesRecognized = event;

                if (!dispatchNavLate && _this379.trigger !== RouterTrigger.STORE) {
                  _this379.dispatchRouterNavigation(event);
                }
              } else if (event instanceof _angular_router__WEBPACK_IMPORTED_MODULE_2__["NavigationCancel"]) {
                _this379.dispatchRouterCancel(event);

                _this379.reset();
              } else if (event instanceof _angular_router__WEBPACK_IMPORTED_MODULE_2__["NavigationError"]) {
                _this379.dispatchRouterError(event);

                _this379.reset();
              } else if (event instanceof _angular_router__WEBPACK_IMPORTED_MODULE_2__["NavigationEnd"]) {
                if (_this379.trigger !== RouterTrigger.STORE) {
                  if (dispatchNavLate) {
                    _this379.dispatchRouterNavigation(routesRecognized);
                  }

                  _this379.dispatchRouterNavigated(event);
                }

                _this379.reset();
              }
            });
          }
          /**
           * @private
           * @param {?} event
           * @return {?}
           */

        }, {
          key: "dispatchRouterRequest",
          value: function dispatchRouterRequest(event) {
            this.dispatchRouterAction(ROUTER_REQUEST, {
              event: event
            });
          }
          /**
           * @private
           * @param {?} lastRoutesRecognized
           * @return {?}
           */

        }, {
          key: "dispatchRouterNavigation",
          value: function dispatchRouterNavigation(lastRoutesRecognized) {
            /** @type {?} */
            var nextRouterState = this.serializer.serialize(lastRoutesRecognized.state);
            this.dispatchRouterAction(ROUTER_NAVIGATION, {
              routerState: nextRouterState,
              event: new _angular_router__WEBPACK_IMPORTED_MODULE_2__["RoutesRecognized"](lastRoutesRecognized.id, lastRoutesRecognized.url, lastRoutesRecognized.urlAfterRedirects, nextRouterState)
            });
          }
          /**
           * @private
           * @param {?} event
           * @return {?}
           */

        }, {
          key: "dispatchRouterCancel",
          value: function dispatchRouterCancel(event) {
            this.dispatchRouterAction(ROUTER_CANCEL, {
              storeState: this.storeState,
              event: event
            });
          }
          /**
           * @private
           * @param {?} event
           * @return {?}
           */

        }, {
          key: "dispatchRouterError",
          value: function dispatchRouterError(event) {
            this.dispatchRouterAction(ROUTER_ERROR, {
              storeState: this.storeState,
              event: new _angular_router__WEBPACK_IMPORTED_MODULE_2__["NavigationError"](event.id, event.url, "".concat(event))
            });
          }
          /**
           * @private
           * @param {?} event
           * @return {?}
           */

        }, {
          key: "dispatchRouterNavigated",
          value: function dispatchRouterNavigated(event) {
            /** @type {?} */
            var routerState = this.serializer.serialize(this.router.routerState.snapshot);
            this.dispatchRouterAction(ROUTER_NAVIGATED, {
              event: event,
              routerState: routerState
            });
          }
          /**
           * @private
           * @param {?} type
           * @param {?} payload
           * @return {?}
           */

        }, {
          key: "dispatchRouterAction",
          value: function dispatchRouterAction(type, payload) {
            this.trigger = RouterTrigger.ROUTER;

            try {
              this.store.dispatch({
                type: type,
                payload: Object.assign({
                  routerState: this.routerState
                }, payload, {
                  event: this.config.routerState === 1
                  /* Minimal */
                  ? {
                    id: payload.event.id,
                    url: payload.event.url
                  } : payload.event
                })
              });
            } finally {
              this.trigger = RouterTrigger.NONE;
            }
          }
          /**
           * @private
           * @return {?}
           */

        }, {
          key: "reset",
          value: function reset() {
            this.trigger = RouterTrigger.NONE;
            this.storeState = null;
            this.routerState = null;
          }
        }], [{
          key: "forRoot",
          value: function forRoot() {
            var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
            return {
              ngModule: StoreRouterConnectingModule,
              providers: [{
                provide: _ROUTER_CONFIG,
                useValue: config
              }, {
                provide: ROUTER_CONFIG,
                useFactory: _createRouterConfig,
                deps: [_ROUTER_CONFIG]
              }, {
                provide: RouterStateSerializer,
                useClass: config.serializer ? config.serializer : config.routerState === 1
                /* Minimal */
                ? MinimalRouterStateSerializer : DefaultRouterStateSerializer
              }]
            };
          }
        }]);

        return StoreRouterConnectingModule;
      }();

      StoreRouterConnectingModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineNgModule"]({
        type: StoreRouterConnectingModule
      });
      StoreRouterConnectingModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjector"]({
        factory: function StoreRouterConnectingModule_Factory(t) {
          return new (t || StoreRouterConnectingModule)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_ngrx_store__WEBPACK_IMPORTED_MODULE_0__["Store"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](RouterStateSerializer), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ErrorHandler"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](ROUTER_CONFIG));
        }
      });
      /** @nocollapse */

      StoreRouterConnectingModule.ctorParameters = function () {
        return [{
          type: _ngrx_store__WEBPACK_IMPORTED_MODULE_0__["Store"]
        }, {
          type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"]
        }, {
          type: RouterStateSerializer
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ErrorHandler"]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
            args: [ROUTER_CONFIG]
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](StoreRouterConnectingModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"],
          args: [{}]
        }], function () {
          return [{
            type: _ngrx_store__WEBPACK_IMPORTED_MODULE_0__["Store"]
          }, {
            type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"]
          }, {
            type: RouterStateSerializer
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ErrorHandler"]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
              args: [ROUTER_CONFIG]
            }]
          }];
        }, null);
      })();
      /**
       * @fileoverview added by tsickle
       * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * @template V
       * @param {?} selectState
       * @return {?}
       */


      function getSelectors(selectState) {
        /** @type {?} */
        var selectRouterState = Object(_ngrx_store__WEBPACK_IMPORTED_MODULE_0__["createSelector"])(selectState,
        /**
        * @param {?} router
        * @return {?}
        */
        function (router) {
          return router && router.state;
        });
        /** @type {?} */

        var selectCurrentRoute = Object(_ngrx_store__WEBPACK_IMPORTED_MODULE_0__["createSelector"])(selectRouterState,
        /**
        * @param {?} routerState
        * @return {?}
        */
        function (routerState) {
          if (!routerState) {
            return undefined;
          }
          /** @type {?} */


          var route = routerState.root;

          while (route.firstChild) {
            route = route.firstChild;
          }

          return route;
        });
        /** @type {?} */

        var selectQueryParams = Object(_ngrx_store__WEBPACK_IMPORTED_MODULE_0__["createSelector"])(selectCurrentRoute,
        /**
        * @param {?} route
        * @return {?}
        */
        function (route) {
          return route && route.queryParams;
        });
        /** @type {?} */

        var selectQueryParam =
        /**
        * @param {?} param
        * @return {?}
        */
        function selectQueryParam(param) {
          return Object(_ngrx_store__WEBPACK_IMPORTED_MODULE_0__["createSelector"])(selectQueryParams,
          /**
          * @param {?} params
          * @return {?}
          */
          function (params) {
            return params && params[param];
          });
        };
        /** @type {?} */


        var selectRouteParams = Object(_ngrx_store__WEBPACK_IMPORTED_MODULE_0__["createSelector"])(selectCurrentRoute,
        /**
        * @param {?} route
        * @return {?}
        */
        function (route) {
          return route && route.params;
        });
        /** @type {?} */

        var selectRouteParam =
        /**
        * @param {?} param
        * @return {?}
        */
        function selectRouteParam(param) {
          return Object(_ngrx_store__WEBPACK_IMPORTED_MODULE_0__["createSelector"])(selectRouteParams,
          /**
          * @param {?} params
          * @return {?}
          */
          function (params) {
            return params && params[param];
          });
        };
        /** @type {?} */


        var selectRouteData = Object(_ngrx_store__WEBPACK_IMPORTED_MODULE_0__["createSelector"])(selectCurrentRoute,
        /**
        * @param {?} route
        * @return {?}
        */
        function (route) {
          return route && route.data;
        });
        /** @type {?} */

        var selectUrl = Object(_ngrx_store__WEBPACK_IMPORTED_MODULE_0__["createSelector"])(selectRouterState,
        /**
        * @param {?} routerState
        * @return {?}
        */
        function (routerState) {
          return routerState && routerState.url;
        });
        return {
          selectCurrentRoute: selectCurrentRoute,
          selectQueryParams: selectQueryParams,
          selectQueryParam: selectQueryParam,
          selectRouteParams: selectRouteParams,
          selectRouteParam: selectRouteParam,
          selectRouteData: selectRouteData,
          selectUrl: selectUrl
        };
      }
      /**
       * @fileoverview added by tsickle
       * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * @fileoverview added by tsickle
       * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * @fileoverview added by tsickle
       * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * Generated bundle index. Do not edit.
       */
      //# sourceMappingURL=router-store.js.map

      /***/

    },

    /***/
    "5cON": function cON(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return isWednesday;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name isWednesday
       * @category Weekday Helpers
       * @summary Is the given date Wednesday?
       *
       * @description
       * Is the given date Wednesday?
       *
       * ### 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 {Date|Number} date - the date to check
       * @returns {Boolean} the date is Wednesday
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // Is 24 September 2014 Wednesday?
       * var result = isWednesday(new Date(2014, 8, 24))
       * //=> true
       */


      function isWednesday(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        return Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate).getDay() === 3;
      }
      /***/

    },

    /***/
    "5hvy": function hvy(module, exports, __webpack_require__) {
      ;

      (function (root, factory, undef) {
        if (true) {
          // CommonJS
          module.exports = exports = factory(__webpack_require__(
          /*! ./core */
          "Ib8C"), __webpack_require__(
          /*! ./x64-core */
          "MlIO"));
        } else {}
      })(this, function (CryptoJS) {
        (function (Math) {
          // Shortcuts
          var C = CryptoJS;
          var C_lib = C.lib;
          var WordArray = C_lib.WordArray;
          var Hasher = C_lib.Hasher;
          var C_x64 = C.x64;
          var X64Word = C_x64.Word;
          var C_algo = C.algo; // Constants tables

          var RHO_OFFSETS = [];
          var PI_INDEXES = [];
          var ROUND_CONSTANTS = []; // Compute Constants

          (function () {
            // Compute rho offset constants
            var x = 1,
                y = 0;

            for (var t = 0; t < 24; t++) {
              RHO_OFFSETS[x + 5 * y] = (t + 1) * (t + 2) / 2 % 64;
              var newX = y % 5;
              var newY = (2 * x + 3 * y) % 5;
              x = newX;
              y = newY;
            } // Compute pi index constants


            for (var x = 0; x < 5; x++) {
              for (var y = 0; y < 5; y++) {
                PI_INDEXES[x + 5 * y] = y + (2 * x + 3 * y) % 5 * 5;
              }
            } // Compute round constants


            var LFSR = 0x01;

            for (var i = 0; i < 24; i++) {
              var roundConstantMsw = 0;
              var roundConstantLsw = 0;

              for (var j = 0; j < 7; j++) {
                if (LFSR & 0x01) {
                  var bitPosition = (1 << j) - 1;

                  if (bitPosition < 32) {
                    roundConstantLsw ^= 1 << bitPosition;
                  } else
                    /* if (bitPosition >= 32) */
                    {
                      roundConstantMsw ^= 1 << bitPosition - 32;
                    }
                } // Compute next LFSR


                if (LFSR & 0x80) {
                  // Primitive polynomial over GF(2): x^8 + x^6 + x^5 + x^4 + 1
                  LFSR = LFSR << 1 ^ 0x71;
                } else {
                  LFSR <<= 1;
                }
              }

              ROUND_CONSTANTS[i] = X64Word.create(roundConstantMsw, roundConstantLsw);
            }
          })(); // Reusable objects for temporary values


          var T = [];

          (function () {
            for (var i = 0; i < 25; i++) {
              T[i] = X64Word.create();
            }
          })();
          /**
           * SHA-3 hash algorithm.
           */


          var SHA3 = C_algo.SHA3 = Hasher.extend({
            /**
             * Configuration options.
             *
             * @property {number} outputLength
             *   The desired number of bits in the output hash.
             *   Only values permitted are: 224, 256, 384, 512.
             *   Default: 512
             */
            cfg: Hasher.cfg.extend({
              outputLength: 512
            }),
            _doReset: function _doReset() {
              var state = this._state = [];

              for (var i = 0; i < 25; i++) {
                state[i] = new X64Word.init();
              }

              this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32;
            },
            _doProcessBlock: function _doProcessBlock(M, offset) {
              // Shortcuts
              var state = this._state;
              var nBlockSizeLanes = this.blockSize / 2; // Absorb

              for (var i = 0; i < nBlockSizeLanes; i++) {
                // Shortcuts
                var M2i = M[offset + 2 * i];
                var M2i1 = M[offset + 2 * i + 1]; // Swap endian

                M2i = (M2i << 8 | M2i >>> 24) & 0x00ff00ff | (M2i << 24 | M2i >>> 8) & 0xff00ff00;
                M2i1 = (M2i1 << 8 | M2i1 >>> 24) & 0x00ff00ff | (M2i1 << 24 | M2i1 >>> 8) & 0xff00ff00; // Absorb message into state

                var lane = state[i];
                lane.high ^= M2i1;
                lane.low ^= M2i;
              } // Rounds


              for (var round = 0; round < 24; round++) {
                // Theta
                for (var x = 0; x < 5; x++) {
                  // Mix column lanes
                  var tMsw = 0,
                      tLsw = 0;

                  for (var y = 0; y < 5; y++) {
                    var lane = state[x + 5 * y];
                    tMsw ^= lane.high;
                    tLsw ^= lane.low;
                  } // Temporary values


                  var Tx = T[x];
                  Tx.high = tMsw;
                  Tx.low = tLsw;
                }

                for (var x = 0; x < 5; x++) {
                  // Shortcuts
                  var Tx4 = T[(x + 4) % 5];
                  var Tx1 = T[(x + 1) % 5];
                  var Tx1Msw = Tx1.high;
                  var Tx1Lsw = Tx1.low; // Mix surrounding columns

                  var tMsw = Tx4.high ^ (Tx1Msw << 1 | Tx1Lsw >>> 31);
                  var tLsw = Tx4.low ^ (Tx1Lsw << 1 | Tx1Msw >>> 31);

                  for (var y = 0; y < 5; y++) {
                    var lane = state[x + 5 * y];
                    lane.high ^= tMsw;
                    lane.low ^= tLsw;
                  }
                } // Rho Pi


                for (var laneIndex = 1; laneIndex < 25; laneIndex++) {
                  var tMsw;
                  var tLsw; // Shortcuts

                  var lane = state[laneIndex];
                  var laneMsw = lane.high;
                  var laneLsw = lane.low;
                  var rhoOffset = RHO_OFFSETS[laneIndex]; // Rotate lanes

                  if (rhoOffset < 32) {
                    tMsw = laneMsw << rhoOffset | laneLsw >>> 32 - rhoOffset;
                    tLsw = laneLsw << rhoOffset | laneMsw >>> 32 - rhoOffset;
                  } else
                    /* if (rhoOffset >= 32) */
                    {
                      tMsw = laneLsw << rhoOffset - 32 | laneMsw >>> 64 - rhoOffset;
                      tLsw = laneMsw << rhoOffset - 32 | laneLsw >>> 64 - rhoOffset;
                    } // Transpose lanes


                  var TPiLane = T[PI_INDEXES[laneIndex]];
                  TPiLane.high = tMsw;
                  TPiLane.low = tLsw;
                } // Rho pi at x = y = 0


                var T0 = T[0];
                var state0 = state[0];
                T0.high = state0.high;
                T0.low = state0.low; // Chi

                for (var x = 0; x < 5; x++) {
                  for (var y = 0; y < 5; y++) {
                    // Shortcuts
                    var laneIndex = x + 5 * y;
                    var lane = state[laneIndex];
                    var TLane = T[laneIndex];
                    var Tx1Lane = T[(x + 1) % 5 + 5 * y];
                    var Tx2Lane = T[(x + 2) % 5 + 5 * y]; // Mix rows

                    lane.high = TLane.high ^ ~Tx1Lane.high & Tx2Lane.high;
                    lane.low = TLane.low ^ ~Tx1Lane.low & Tx2Lane.low;
                  }
                } // Iota


                var lane = state[0];
                var roundConstant = ROUND_CONSTANTS[round];
                lane.high ^= roundConstant.high;
                lane.low ^= roundConstant.low;
              }
            },
            _doFinalize: function _doFinalize() {
              // Shortcuts
              var data = this._data;
              var dataWords = data.words;
              var nBitsTotal = this._nDataBytes * 8;
              var nBitsLeft = data.sigBytes * 8;
              var blockSizeBits = this.blockSize * 32; // Add padding

              dataWords[nBitsLeft >>> 5] |= 0x1 << 24 - nBitsLeft % 32;
              dataWords[(Math.ceil((nBitsLeft + 1) / blockSizeBits) * blockSizeBits >>> 5) - 1] |= 0x80;
              data.sigBytes = dataWords.length * 4; // Hash final blocks

              this._process(); // Shortcuts


              var state = this._state;
              var outputLengthBytes = this.cfg.outputLength / 8;
              var outputLengthLanes = outputLengthBytes / 8; // Squeeze

              var hashWords = [];

              for (var i = 0; i < outputLengthLanes; i++) {
                // Shortcuts
                var lane = state[i];
                var laneMsw = lane.high;
                var laneLsw = lane.low; // Swap endian

                laneMsw = (laneMsw << 8 | laneMsw >>> 24) & 0x00ff00ff | (laneMsw << 24 | laneMsw >>> 8) & 0xff00ff00;
                laneLsw = (laneLsw << 8 | laneLsw >>> 24) & 0x00ff00ff | (laneLsw << 24 | laneLsw >>> 8) & 0xff00ff00; // Squeeze state to retrieve hash

                hashWords.push(laneLsw);
                hashWords.push(laneMsw);
              } // Return final computed hash


              return new WordArray.init(hashWords, outputLengthBytes);
            },
            clone: function clone() {
              var clone = Hasher.clone.call(this);

              var state = clone._state = this._state.slice(0);

              for (var i = 0; i < 25; i++) {
                state[i] = state[i].clone();
              }

              return clone;
            }
          });
          /**
           * Shortcut function to the hasher's object interface.
           *
           * @param {WordArray|string} message The message to hash.
           *
           * @return {WordArray} The hash.
           *
           * @static
           *
           * @example
           *
           *     var hash = CryptoJS.SHA3('message');
           *     var hash = CryptoJS.SHA3(wordArray);
           */

          C.SHA3 = Hasher._createHelper(SHA3);
          /**
           * Shortcut function to the HMAC's object interface.
           *
           * @param {WordArray|string} message The message to hash.
           * @param {WordArray|string} key The secret key.
           *
           * @return {WordArray} The HMAC.
           *
           * @static
           *
           * @example
           *
           *     var hmac = CryptoJS.HmacSHA3(message, key);
           */

          C.HmacSHA3 = Hasher._createHmacHelper(SHA3);
        })(Math);

        return CryptoJS.SHA3;
      });
      /***/

    },

    /***/
    "5wMr": function wMr(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return getTime;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name getTime
       * @category Timestamp Helpers
       * @summary Get the milliseconds timestamp of the given date.
       *
       * @description
       * Get the milliseconds timestamp of the given date.
       *
       * ### 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 {Date|Number} date - the given date
       * @returns {Number} the timestamp
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // Get the timestamp of 29 February 2012 11:45:05.123:
       * var result = getTime(new Date(2012, 1, 29, 11, 45, 5, 123))
       * //=> 1330515905123
       */


      function getTime(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);
        var timestamp = date.getTime();
        return timestamp;
      }
      /***/

    },

    /***/
    "5yfJ": function yfJ(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NEVER", function () {
        return NEVER;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "never", function () {
        return never;
      });
      /* harmony import */


      var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Observable */
      "HDdC");
      /* harmony import */


      var _util_noop__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../util/noop */
      "KqfI");

      var NEVER = new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](_util_noop__WEBPACK_IMPORTED_MODULE_1__["noop"]);

      function never() {
        return NEVER;
      } //# sourceMappingURL=never.js.map

      /***/

    },

    /***/
    "6+QB": function QB(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Malay [ms]
      //! author : Weldan Jamili : https://github.com/weldan
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var ms = moment.defineLocale('ms', {
          months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),
          monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
          weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
          weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
          weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
          longDateFormat: {
            LT: 'HH.mm',
            LTS: 'HH.mm.ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY [pukul] HH.mm',
            LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm'
          },
          meridiemParse: /pagi|tengahari|petang|malam/,
          meridiemHour: function meridiemHour(hour, meridiem) {
            if (hour === 12) {
              hour = 0;
            }

            if (meridiem === 'pagi') {
              return hour;
            } else if (meridiem === 'tengahari') {
              return hour >= 11 ? hour : hour + 12;
            } else if (meridiem === 'petang' || meridiem === 'malam') {
              return hour + 12;
            }
          },
          meridiem: function meridiem(hours, minutes, isLower) {
            if (hours < 11) {
              return 'pagi';
            } else if (hours < 15) {
              return 'tengahari';
            } else if (hours < 19) {
              return 'petang';
            } else {
              return 'malam';
            }
          },
          calendar: {
            sameDay: '[Hari ini pukul] LT',
            nextDay: '[Esok pukul] LT',
            nextWeek: 'dddd [pukul] LT',
            lastDay: '[Kelmarin pukul] LT',
            lastWeek: 'dddd [lepas pukul] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'dalam %s',
            past: '%s yang lepas',
            s: 'beberapa saat',
            ss: '%d saat',
            m: 'seminit',
            mm: '%d minit',
            h: 'sejam',
            hh: '%d jam',
            d: 'sehari',
            dd: '%d hari',
            M: 'sebulan',
            MM: '%d bulan',
            y: 'setahun',
            yy: '%d tahun'
          },
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 7 // The week that contains Jan 7th is the first week of the year.

          }
        });
        return ms;
      });
      /***/

    },

    /***/
    "6B0Y": function B0Y(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Cambodian [km]
      //! author : Kruy Vanna : https://github.com/kruyvanna
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var symbolMap = {
          1: '១',
          2: '២',
          3: '៣',
          4: '៤',
          5: '៥',
          6: '៦',
          7: '៧',
          8: '៨',
          9: '៩',
          0: '០'
        },
            numberMap = {
          '១': '1',
          '២': '2',
          '៣': '3',
          '៤': '4',
          '៥': '5',
          '៦': '6',
          '៧': '7',
          '៨': '8',
          '៩': '9',
          '០': '0'
        };
        var km = moment.defineLocale('km', {
          months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'),
          monthsShort: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'),
          weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
          weekdaysShort: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
          weekdaysMin: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
          weekdaysParseExact: true,
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd, D MMMM YYYY HH:mm'
          },
          meridiemParse: /ព្រឹក|ល្ងាច/,
          isPM: function isPM(input) {
            return input === 'ល្ងាច';
          },
          meridiem: function meridiem(hour, minute, isLower) {
            if (hour < 12) {
              return 'ព្រឹក';
            } else {
              return 'ល្ងាច';
            }
          },
          calendar: {
            sameDay: '[ថ្ងៃនេះ ម៉ោង] LT',
            nextDay: '[ស្អែក ម៉ោង] LT',
            nextWeek: 'dddd [ម៉ោង] LT',
            lastDay: '[ម្សិលមិញ ម៉ោង] LT',
            lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: '%sទៀត',
            past: '%sមុន',
            s: 'ប៉ុន្មានវិនាទី',
            ss: '%d វិនាទី',
            m: 'មួយនាទី',
            mm: '%d នាទី',
            h: 'មួយម៉ោង',
            hh: '%d ម៉ោង',
            d: 'មួយថ្ងៃ',
            dd: '%d ថ្ងៃ',
            M: 'មួយខែ',
            MM: '%d ខែ',
            y: 'មួយឆ្នាំ',
            yy: '%d ឆ្នាំ'
          },
          dayOfMonthOrdinalParse: /ទី\d{1,2}/,
          ordinal: 'ទី%d',
          preparse: function preparse(string) {
            return string.replace(/[១២៣៤៥៦៧៨៩០]/g, function (match) {
              return numberMap[match];
            });
          },
          postformat: function postformat(string) {
            return string.replace(/\d/g, function (match) {
              return symbolMap[match];
            });
          },
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return km;
      });
      /***/

    },

    /***/
    "6En+": function En(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return setDayOfYear;
      });
      /* harmony import */


      var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../_lib/toInteger/index.js */
      "/h9T");
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name setDayOfYear
       * @category Day Helpers
       * @summary Set the day of the year to the given date.
       *
       * @description
       * Set the day of the year to the given date.
       *
       * ### 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 {Date|Number} date - the date to be changed
       * @param {Number} dayOfYear - the day of the year of the new date
       * @returns {Date} the new date with the day of the year set
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // Set the 2nd day of the year to 2 July 2014:
       * var result = setDayOfYear(new Date(2014, 6, 2), 2)
       * //=> Thu Jan 02 2014 00:00:00
       */


      function setDayOfYear(dirtyDate, dirtyDayOfYear) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(2, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate);
        var dayOfYear = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDayOfYear);
        date.setMonth(0);
        date.setDate(dayOfYear);
        return date;
      }
      /***/

    },

    /***/
    "6NQC": function NQC(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return setYear;
      });
      /* harmony import */


      var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../_lib/toInteger/index.js */
      "/h9T");
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name setYear
       * @category Year Helpers
       * @summary Set the year to the given date.
       *
       * @description
       * Set the year to the given date.
       *
       * ### 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 {Date|Number} date - the date to be changed
       * @param {Number} year - the year of the new date
       * @returns {Date} the new date with the year set
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // Set year 2013 to 1 September 2014:
       * var result = setYear(new Date(2014, 8, 1), 2013)
       * //=> Sun Sep 01 2013 00:00:00
       */


      function setYear(dirtyDate, dirtyYear) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(2, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate);
        var year = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyYear); // Check if date is Invalid Date because Date.prototype.setFullYear ignores the value of Invalid Date

        if (isNaN(date)) {
          return new Date(NaN);
        }

        date.setFullYear(year);
        return date;
      }
      /***/

    },

    /***/
    "6eBy": function eBy(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "debounce", function () {
        return debounce;
      });
      /* harmony import */


      var _innerSubscribe__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../innerSubscribe */
      "zx2A");

      function debounce(durationSelector) {
        return function (source) {
          return source.lift(new DebounceOperator(durationSelector));
        };
      }

      var DebounceOperator = /*#__PURE__*/function () {
        function DebounceOperator(durationSelector) {
          _classCallCheck2(this, DebounceOperator);

          this.durationSelector = durationSelector;
        }

        _createClass2(DebounceOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            return source.subscribe(new DebounceSubscriber(subscriber, this.durationSelector));
          }
        }]);

        return DebounceOperator;
      }();

      var DebounceSubscriber = /*#__PURE__*/function (_innerSubscribe__WEBP6) {
        _inherits2(DebounceSubscriber, _innerSubscribe__WEBP6);

        var _super141 = _createSuper2(DebounceSubscriber);

        function DebounceSubscriber(destination, durationSelector) {
          var _this380;

          _classCallCheck2(this, DebounceSubscriber);

          _this380 = _super141.call(this, destination);
          _this380.durationSelector = durationSelector;
          _this380.hasValue = false;
          return _this380;
        }

        _createClass2(DebounceSubscriber, [{
          key: "_next",
          value: function _next(value) {
            try {
              var result = this.durationSelector.call(this, value);

              if (result) {
                this._tryNext(value, result);
              }
            } catch (err) {
              this.destination.error(err);
            }
          }
        }, {
          key: "_complete",
          value: function _complete() {
            this.emitValue();
            this.destination.complete();
          }
        }, {
          key: "_tryNext",
          value: function _tryNext(value, duration) {
            var subscription = this.durationSubscription;
            this.value = value;
            this.hasValue = true;

            if (subscription) {
              subscription.unsubscribe();
              this.remove(subscription);
            }

            subscription = Object(_innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["innerSubscribe"])(duration, new _innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["SimpleInnerSubscriber"](this));

            if (subscription && !subscription.closed) {
              this.add(this.durationSubscription = subscription);
            }
          }
        }, {
          key: "notifyNext",
          value: function notifyNext() {
            this.emitValue();
          }
        }, {
          key: "notifyComplete",
          value: function notifyComplete() {
            this.emitValue();
          }
        }, {
          key: "emitValue",
          value: function emitValue() {
            if (this.hasValue) {
              var value = this.value;
              var subscription = this.durationSubscription;

              if (subscription) {
                this.durationSubscription = undefined;
                subscription.unsubscribe();
                this.remove(subscription);
              }

              this.value = undefined;
              this.hasValue = false;

              _get2(_getPrototypeOf2(DebounceSubscriber.prototype), "_next", this).call(this, value);
            }
          }
        }]);

        return DebounceSubscriber;
      }(_innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["SimpleOuterSubscriber"]); //# sourceMappingURL=debounce.js.map

      /***/

    },

    /***/
    "6wME": function wME(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return startOfDecade;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name startOfDecade
       * @category Decade Helpers
       * @summary Return the start of a decade for the given date.
       *
       * @description
       * Return the start of a decade for the given date.
       *
       * ### 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 {Date|Number} date - the original date
       * @returns {Date} the start of a decade
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // The start of a decade for 21 October 2015 00:00:00:
       * var result = startOfDecade(new Date(2015, 9, 21, 00, 00, 00))
       * //=> Jan 01 2010 00:00:00
       */


      function startOfDecade(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);
        var year = date.getFullYear();
        var decade = Math.floor(year / 10) * 10;
        date.setFullYear(decade, 0, 1);
        date.setHours(0, 0, 0, 0);
        return date;
      }
      /***/

    },

    /***/
    "7+OI": function OI(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "isObservable", function () {
        return isObservable;
      });
      /* harmony import */


      var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Observable */
      "HDdC");

      function isObservable(obj) {
        return !!obj && (obj instanceof _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"] || typeof obj.lift === 'function' && typeof obj.subscribe === 'function');
      } //# sourceMappingURL=isObservable.js.map

      /***/

    },

    /***/
    "7BjC": function BjC(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Estonian [et]
      //! author : Henry Kehlmann : https://github.com/madhenry
      //! improvements : Illimar Tambek : https://github.com/ragulka
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        function processRelativeTime(number, withoutSuffix, key, isFuture) {
          var format = {
            s: ['mõne sekundi', 'mõni sekund', 'paar sekundit'],
            ss: [number + 'sekundi', number + 'sekundit'],
            m: ['ühe minuti', 'üks minut'],
            mm: [number + ' minuti', number + ' minutit'],
            h: ['ühe tunni', 'tund aega', 'üks tund'],
            hh: [number + ' tunni', number + ' tundi'],
            d: ['ühe päeva', 'üks päev'],
            M: ['kuu aja', 'kuu aega', 'üks kuu'],
            MM: [number + ' kuu', number + ' kuud'],
            y: ['ühe aasta', 'aasta', 'üks aasta'],
            yy: [number + ' aasta', number + ' aastat']
          };

          if (withoutSuffix) {
            return format[key][2] ? format[key][2] : format[key][1];
          }

          return isFuture ? format[key][0] : format[key][1];
        }

        var et = moment.defineLocale('et', {
          months: 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split('_'),
          monthsShort: 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split('_'),
          weekdays: 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split('_'),
          weekdaysShort: 'P_E_T_K_N_R_L'.split('_'),
          weekdaysMin: 'P_E_T_K_N_R_L'.split('_'),
          longDateFormat: {
            LT: 'H:mm',
            LTS: 'H:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'D. MMMM YYYY',
            LLL: 'D. MMMM YYYY H:mm',
            LLLL: 'dddd, D. MMMM YYYY H:mm'
          },
          calendar: {
            sameDay: '[Täna,] LT',
            nextDay: '[Homme,] LT',
            nextWeek: '[Järgmine] dddd LT',
            lastDay: '[Eile,] LT',
            lastWeek: '[Eelmine] dddd LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: '%s pärast',
            past: '%s tagasi',
            s: processRelativeTime,
            ss: processRelativeTime,
            m: processRelativeTime,
            mm: processRelativeTime,
            h: processRelativeTime,
            hh: processRelativeTime,
            d: processRelativeTime,
            dd: '%d päeva',
            M: processRelativeTime,
            MM: processRelativeTime,
            y: processRelativeTime,
            yy: processRelativeTime
          },
          dayOfMonthOrdinalParse: /\d{1,2}\./,
          ordinal: '%d.',
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return et;
      });
      /***/

    },

    /***/
    "7C5Q": function C5Q(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : English (India) [en-in]
      //! author : Jatin Agrawal : https://github.com/jatinag22
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var enIn = moment.defineLocale('en-in', {
          months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
          monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
          weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
          weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
          weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
          longDateFormat: {
            LT: 'h:mm A',
            LTS: 'h:mm:ss A',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY h:mm A',
            LLLL: 'dddd, D MMMM YYYY h:mm A'
          },
          calendar: {
            sameDay: '[Today at] LT',
            nextDay: '[Tomorrow at] LT',
            nextWeek: 'dddd [at] LT',
            lastDay: '[Yesterday at] LT',
            lastWeek: '[Last] dddd [at] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'in %s',
            past: '%s ago',
            s: 'a few seconds',
            ss: '%d seconds',
            m: 'a minute',
            mm: '%d minutes',
            h: 'an hour',
            hh: '%d hours',
            d: 'a day',
            dd: '%d days',
            M: 'a month',
            MM: '%d months',
            y: 'a year',
            yy: '%d years'
          },
          dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
          ordinal: function ordinal(number) {
            var b = number % 10,
                output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';
            return number + output;
          },
          week: {
            dow: 0,
            // Sunday is the first day of the week.
            doy: 6 // The week that contains Jan 1st is the first week of the year.

          }
        });
        return enIn;
      });
      /***/

    },

    /***/
    "7DTD": function DTD(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return setISOWeekYear;
      });
      /* harmony import */


      var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../_lib/toInteger/index.js */
      "/h9T");
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _startOfISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../startOfISOWeekYear/index.js */
      "0f5V");
      /* harmony import */


      var _differenceInCalendarDays_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../differenceInCalendarDays/index.js */
      "gXqy");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name setISOWeekYear
       * @category ISO Week-Numbering Year Helpers
       * @summary Set the ISO week-numbering year to the given date.
       *
       * @description
       * Set the ISO week-numbering year to the given date,
       * saving the week number and the weekday number.
       *
       * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
       *
       * ### 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).
       *
       * - The function was renamed from `setISOYear` to `setISOWeekYear`.
       *   "ISO week year" is short for [ISO week-numbering year](https://en.wikipedia.org/wiki/ISO_week_date).
       *   This change makes the name consistent with
       *   locale-dependent week-numbering year helpers, e.g., `setWeekYear`.
       *
       * @param {Date|Number} date - the date to be changed
       * @param {Number} isoWeekYear - the ISO week-numbering year of the new date
       * @returns {Date} the new date with the ISO week-numbering year set
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // Set ISO week-numbering year 2007 to 29 December 2008:
       * var result = setISOWeekYear(new Date(2008, 11, 29), 2007)
       * //=> Mon Jan 01 2007 00:00:00
       */


      function setISOWeekYear(dirtyDate, dirtyISOWeekYear) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_4__["default"])(2, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate);
        var isoWeekYear = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyISOWeekYear);
        var diff = Object(_differenceInCalendarDays_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(date, Object(_startOfISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(date));
        var fourthOfJanuary = new Date(0);
        fourthOfJanuary.setFullYear(isoWeekYear, 0, 4);
        fourthOfJanuary.setHours(0, 0, 0, 0);
        date = Object(_startOfISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(fourthOfJanuary);
        date.setDate(date.getDate() + diff);
        return date;
      }
      /***/

    },

    /***/
    "7HRe": function HRe(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "scheduled", function () {
        return scheduled;
      });
      /* harmony import */


      var _scheduleObservable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ./scheduleObservable */
      "5B2Y");
      /* harmony import */


      var _schedulePromise__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ./schedulePromise */
      "4yVj");
      /* harmony import */


      var _scheduleArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ./scheduleArray */
      "jZKg");
      /* harmony import */


      var _scheduleIterable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ./scheduleIterable */
      "MBAA");
      /* harmony import */


      var _util_isInteropObservable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! ../util/isInteropObservable */
      "QIAL");
      /* harmony import */


      var _util_isPromise__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! ../util/isPromise */
      "c2HN");
      /* harmony import */


      var _util_isArrayLike__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
      /*! ../util/isArrayLike */
      "I55L");
      /* harmony import */


      var _util_isIterable__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
      /*! ../util/isIterable */
      "CMyj");

      function scheduled(input, scheduler) {
        if (input != null) {
          if (Object(_util_isInteropObservable__WEBPACK_IMPORTED_MODULE_4__["isInteropObservable"])(input)) {
            return Object(_scheduleObservable__WEBPACK_IMPORTED_MODULE_0__["scheduleObservable"])(input, scheduler);
          } else if (Object(_util_isPromise__WEBPACK_IMPORTED_MODULE_5__["isPromise"])(input)) {
            return Object(_schedulePromise__WEBPACK_IMPORTED_MODULE_1__["schedulePromise"])(input, scheduler);
          } else if (Object(_util_isArrayLike__WEBPACK_IMPORTED_MODULE_6__["isArrayLike"])(input)) {
            return Object(_scheduleArray__WEBPACK_IMPORTED_MODULE_2__["scheduleArray"])(input, scheduler);
          } else if (Object(_util_isIterable__WEBPACK_IMPORTED_MODULE_7__["isIterable"])(input) || typeof input === 'string') {
            return Object(_scheduleIterable__WEBPACK_IMPORTED_MODULE_3__["scheduleIterable"])(input, scheduler);
          }
        }

        throw new TypeError((input !== null && typeof input || input) + ' is not observable');
      } //# sourceMappingURL=scheduled.js.map

      /***/

    },

    /***/
    "7Hc7": function Hc7(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "asapScheduler", function () {
        return asapScheduler;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "asap", function () {
        return asap;
      });
      /* harmony import */


      var _AsapAction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ./AsapAction */
      "Pz8W");
      /* harmony import */


      var _AsapScheduler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ./AsapScheduler */
      "RUbi");

      var asapScheduler = new _AsapScheduler__WEBPACK_IMPORTED_MODULE_1__["AsapScheduler"](_AsapAction__WEBPACK_IMPORTED_MODULE_0__["AsapAction"]);
      var asap = asapScheduler; //# sourceMappingURL=asap.js.map

      /***/
    },

    /***/
    "7KAL": function KAL(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CdkFixedSizeVirtualScroll", function () {
        return CdkFixedSizeVirtualScroll;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CdkScrollable", function () {
        return CdkScrollable;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CdkScrollableModule", function () {
        return CdkScrollableModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CdkVirtualForOf", function () {
        return CdkVirtualForOf;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CdkVirtualScrollViewport", function () {
        return CdkVirtualScrollViewport;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "DEFAULT_RESIZE_TIME", function () {
        return DEFAULT_RESIZE_TIME;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "DEFAULT_SCROLL_TIME", function () {
        return DEFAULT_SCROLL_TIME;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "FixedSizeVirtualScrollStrategy", function () {
        return FixedSizeVirtualScrollStrategy;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ScrollDispatcher", function () {
        return ScrollDispatcher;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ScrollingModule", function () {
        return ScrollingModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "VIRTUAL_SCROLL_STRATEGY", function () {
        return VIRTUAL_SCROLL_STRATEGY;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ViewportRuler", function () {
        return ViewportRuler;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "_fixedSizeVirtualScrollStrategyFactory", function () {
        return _fixedSizeVirtualScrollStrategyFactory;
      });
      /* harmony import */


      var _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/cdk/coercion */
      "8LU1");
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /* harmony import */


      var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! rxjs */
      "qCKp");
      /* harmony import */


      var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! rxjs/operators */
      "kU1M");
      /* harmony import */


      var _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! @angular/cdk/platform */
      "SCoL");
      /* harmony import */


      var _angular_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! @angular/common */
      "SVse");
      /* harmony import */


      var _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
      /*! @angular/cdk/bidi */
      "9gLZ");
      /* harmony import */


      var _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
      /*! @angular/cdk/collections */
      "CtHx");
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** The injection token used to specify the virtual scrolling strategy. */


      var _c0 = ["contentWrapper"];
      var _c1 = ["*"];
      var VIRTUAL_SCROLL_STRATEGY = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["InjectionToken"]('VIRTUAL_SCROLL_STRATEGY');
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** Virtual scrolling strategy for lists with items of known fixed size. */

      var FixedSizeVirtualScrollStrategy = /*#__PURE__*/function () {
        /**
         * @param itemSize The size of the items in the virtually scrolling list.
         * @param minBufferPx The minimum amount of buffer (in pixels) before needing to render more
         * @param maxBufferPx The amount of buffer (in pixels) to render when rendering more.
         */
        function FixedSizeVirtualScrollStrategy(itemSize, minBufferPx, maxBufferPx) {
          _classCallCheck2(this, FixedSizeVirtualScrollStrategy);

          this._scrolledIndexChange = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
          /** @docs-private Implemented as part of VirtualScrollStrategy. */

          this.scrolledIndexChange = this._scrolledIndexChange.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["distinctUntilChanged"])());
          /** The attached viewport. */

          this._viewport = null;
          this._itemSize = itemSize;
          this._minBufferPx = minBufferPx;
          this._maxBufferPx = maxBufferPx;
        }
        /**
         * Attaches this scroll strategy to a viewport.
         * @param viewport The viewport to attach this strategy to.
         */


        _createClass2(FixedSizeVirtualScrollStrategy, [{
          key: "attach",
          value: function attach(viewport) {
            this._viewport = viewport;

            this._updateTotalContentSize();

            this._updateRenderedRange();
          }
          /** Detaches this scroll strategy from the currently attached viewport. */

        }, {
          key: "detach",
          value: function detach() {
            this._scrolledIndexChange.complete();

            this._viewport = null;
          }
          /**
           * Update the item size and buffer size.
           * @param itemSize The size of the items in the virtually scrolling list.
           * @param minBufferPx The minimum amount of buffer (in pixels) before needing to render more
           * @param maxBufferPx The amount of buffer (in pixels) to render when rendering more.
           */

        }, {
          key: "updateItemAndBufferSize",
          value: function updateItemAndBufferSize(itemSize, minBufferPx, maxBufferPx) {
            if (maxBufferPx < minBufferPx && (typeof ngDevMode === 'undefined' || ngDevMode)) {
              throw Error('CDK virtual scroll: maxBufferPx must be greater than or equal to minBufferPx');
            }

            this._itemSize = itemSize;
            this._minBufferPx = minBufferPx;
            this._maxBufferPx = maxBufferPx;

            this._updateTotalContentSize();

            this._updateRenderedRange();
          }
          /** @docs-private Implemented as part of VirtualScrollStrategy. */

        }, {
          key: "onContentScrolled",
          value: function onContentScrolled() {
            this._updateRenderedRange();
          }
          /** @docs-private Implemented as part of VirtualScrollStrategy. */

        }, {
          key: "onDataLengthChanged",
          value: function onDataLengthChanged() {
            this._updateTotalContentSize();

            this._updateRenderedRange();
          }
          /** @docs-private Implemented as part of VirtualScrollStrategy. */

        }, {
          key: "onContentRendered",
          value: function onContentRendered() {}
          /** @docs-private Implemented as part of VirtualScrollStrategy. */

        }, {
          key: "onRenderedOffsetChanged",
          value: function onRenderedOffsetChanged() {}
          /**
           * Scroll to the offset for the given index.
           * @param index The index of the element to scroll to.
           * @param behavior The ScrollBehavior to use when scrolling.
           */

        }, {
          key: "scrollToIndex",
          value: function scrollToIndex(index, behavior) {
            if (this._viewport) {
              this._viewport.scrollToOffset(index * this._itemSize, behavior);
            }
          }
          /** Update the viewport's total content size. */

        }, {
          key: "_updateTotalContentSize",
          value: function _updateTotalContentSize() {
            if (!this._viewport) {
              return;
            }

            this._viewport.setTotalContentSize(this._viewport.getDataLength() * this._itemSize);
          }
          /** Update the viewport's rendered range. */

        }, {
          key: "_updateRenderedRange",
          value: function _updateRenderedRange() {
            if (!this._viewport) {
              return;
            }

            var renderedRange = this._viewport.getRenderedRange();

            var newRange = {
              start: renderedRange.start,
              end: renderedRange.end
            };

            var viewportSize = this._viewport.getViewportSize();

            var dataLength = this._viewport.getDataLength();

            var scrollOffset = this._viewport.measureScrollOffset();

            var firstVisibleIndex = scrollOffset / this._itemSize; // If user scrolls to the bottom of the list and data changes to a smaller list

            if (newRange.end > dataLength) {
              // We have to recalculate the first visible index based on new data length and viewport size.
              var maxVisibleItems = Math.ceil(viewportSize / this._itemSize);
              var newVisibleIndex = Math.max(0, Math.min(firstVisibleIndex, dataLength - maxVisibleItems)); // If first visible index changed we must update scroll offset to handle start/end buffers
              // Current range must also be adjusted to cover the new position (bottom of new list).

              if (firstVisibleIndex != newVisibleIndex) {
                firstVisibleIndex = newVisibleIndex;
                scrollOffset = newVisibleIndex * this._itemSize;
                newRange.start = Math.floor(firstVisibleIndex);
              }

              newRange.end = Math.max(0, Math.min(dataLength, newRange.start + maxVisibleItems));
            }

            var startBuffer = scrollOffset - newRange.start * this._itemSize;

            if (startBuffer < this._minBufferPx && newRange.start != 0) {
              var expandStart = Math.ceil((this._maxBufferPx - startBuffer) / this._itemSize);
              newRange.start = Math.max(0, newRange.start - expandStart);
              newRange.end = Math.min(dataLength, Math.ceil(firstVisibleIndex + (viewportSize + this._minBufferPx) / this._itemSize));
            } else {
              var endBuffer = newRange.end * this._itemSize - (scrollOffset + viewportSize);

              if (endBuffer < this._minBufferPx && newRange.end != dataLength) {
                var expandEnd = Math.ceil((this._maxBufferPx - endBuffer) / this._itemSize);

                if (expandEnd > 0) {
                  newRange.end = Math.min(dataLength, newRange.end + expandEnd);
                  newRange.start = Math.max(0, Math.floor(firstVisibleIndex - this._minBufferPx / this._itemSize));
                }
              }
            }

            this._viewport.setRenderedRange(newRange);

            this._viewport.setRenderedContentOffset(this._itemSize * newRange.start);

            this._scrolledIndexChange.next(Math.floor(firstVisibleIndex));
          }
        }]);

        return FixedSizeVirtualScrollStrategy;
      }();
      /**
       * Provider factory for `FixedSizeVirtualScrollStrategy` that simply extracts the already created
       * `FixedSizeVirtualScrollStrategy` from the given directive.
       * @param fixedSizeDir The instance of `CdkFixedSizeVirtualScroll` to extract the
       *     `FixedSizeVirtualScrollStrategy` from.
       */


      function _fixedSizeVirtualScrollStrategyFactory(fixedSizeDir) {
        return fixedSizeDir._scrollStrategy;
      }
      /** A virtual scroll strategy that supports fixed-size items. */


      var CdkFixedSizeVirtualScroll = /*#__PURE__*/function () {
        function CdkFixedSizeVirtualScroll() {
          _classCallCheck2(this, CdkFixedSizeVirtualScroll);

          this._itemSize = 20;
          this._minBufferPx = 100;
          this._maxBufferPx = 200;
          /** The scroll strategy used by this directive. */

          this._scrollStrategy = new FixedSizeVirtualScrollStrategy(this.itemSize, this.minBufferPx, this.maxBufferPx);
        }
        /** The size of the items in the list (in pixels). */


        _createClass2(CdkFixedSizeVirtualScroll, [{
          key: "itemSize",
          get: function get() {
            return this._itemSize;
          },
          set: function set(value) {
            this._itemSize = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_0__["coerceNumberProperty"])(value);
          }
          /**
           * The minimum amount of buffer rendered beyond the viewport (in pixels).
           * If the amount of buffer dips below this number, more items will be rendered. Defaults to 100px.
           */

        }, {
          key: "minBufferPx",
          get: function get() {
            return this._minBufferPx;
          },
          set: function set(value) {
            this._minBufferPx = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_0__["coerceNumberProperty"])(value);
          }
          /**
           * The number of pixels worth of buffer to render for when rendering new items. Defaults to 200px.
           */

        }, {
          key: "maxBufferPx",
          get: function get() {
            return this._maxBufferPx;
          },
          set: function set(value) {
            this._maxBufferPx = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_0__["coerceNumberProperty"])(value);
          }
        }, {
          key: "ngOnChanges",
          value: function ngOnChanges() {
            this._scrollStrategy.updateItemAndBufferSize(this.itemSize, this.minBufferPx, this.maxBufferPx);
          }
        }]);

        return CdkFixedSizeVirtualScroll;
      }();

      CdkFixedSizeVirtualScroll.ɵfac = function CdkFixedSizeVirtualScroll_Factory(t) {
        return new (t || CdkFixedSizeVirtualScroll)();
      };

      CdkFixedSizeVirtualScroll.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineDirective"]({
        type: CdkFixedSizeVirtualScroll,
        selectors: [["cdk-virtual-scroll-viewport", "itemSize", ""]],
        inputs: {
          itemSize: "itemSize",
          minBufferPx: "minBufferPx",
          maxBufferPx: "maxBufferPx"
        },
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵProvidersFeature"]([{
          provide: VIRTUAL_SCROLL_STRATEGY,
          useFactory: _fixedSizeVirtualScrollStrategyFactory,
          deps: [Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["forwardRef"])(function () {
            return CdkFixedSizeVirtualScroll;
          })]
        }]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵNgOnChangesFeature"]]
      });
      CdkFixedSizeVirtualScroll.propDecorators = {
        itemSize: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
        }],
        minBufferPx: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
        }],
        maxBufferPx: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](CdkFixedSizeVirtualScroll, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Directive"],
          args: [{
            selector: 'cdk-virtual-scroll-viewport[itemSize]',
            providers: [{
              provide: VIRTUAL_SCROLL_STRATEGY,
              useFactory: _fixedSizeVirtualScrollStrategyFactory,
              deps: [Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["forwardRef"])(function () {
                return CdkFixedSizeVirtualScroll;
              })]
            }]
          }]
        }], function () {
          return [];
        }, {
          itemSize: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
          }],
          minBufferPx: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
          }],
          maxBufferPx: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
          }]
        });
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** Time in ms to throttle the scrolling events by default. */


      var DEFAULT_SCROLL_TIME = 20;
      /**
       * Service contained all registered Scrollable references and emits an event when any one of the
       * Scrollable references emit a scrolled event.
       */

      var ScrollDispatcher = /*#__PURE__*/function () {
        function ScrollDispatcher(_ngZone, _platform, document) {
          _classCallCheck2(this, ScrollDispatcher);

          this._ngZone = _ngZone;
          this._platform = _platform;
          /** Subject for notifying that a registered scrollable reference element has been scrolled. */

          this._scrolled = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
          /** Keeps track of the global `scroll` and `resize` subscriptions. */

          this._globalSubscription = null;
          /** Keeps track of the amount of subscriptions to `scrolled`. Used for cleaning up afterwards. */

          this._scrolledCount = 0;
          /**
           * Map of all the scrollable references that are registered with the service and their
           * scroll event subscriptions.
           */

          this.scrollContainers = new Map();
          this._document = document;
        }
        /**
         * Registers a scrollable instance with the service and listens for its scrolled events. When the
         * scrollable is scrolled, the service emits the event to its scrolled observable.
         * @param scrollable Scrollable instance to be registered.
         */


        _createClass2(ScrollDispatcher, [{
          key: "register",
          value: function register(scrollable) {
            var _this381 = this;

            if (!this.scrollContainers.has(scrollable)) {
              this.scrollContainers.set(scrollable, scrollable.elementScrolled().subscribe(function () {
                return _this381._scrolled.next(scrollable);
              }));
            }
          }
          /**
           * Deregisters a Scrollable reference and unsubscribes from its scroll event observable.
           * @param scrollable Scrollable instance to be deregistered.
           */

        }, {
          key: "deregister",
          value: function deregister(scrollable) {
            var scrollableReference = this.scrollContainers.get(scrollable);

            if (scrollableReference) {
              scrollableReference.unsubscribe();
              this.scrollContainers["delete"](scrollable);
            }
          }
          /**
           * Returns an observable that emits an event whenever any of the registered Scrollable
           * references (or window, document, or body) fire a scrolled event. Can provide a time in ms
           * to override the default "throttle" time.
           *
           * **Note:** in order to avoid hitting change detection for every scroll event,
           * all of the events emitted from this stream will be run outside the Angular zone.
           * If you need to update any data bindings as a result of a scroll event, you have
           * to run the callback using `NgZone.run`.
           */

        }, {
          key: "scrolled",
          value: function scrolled() {
            var _this382 = this;

            var auditTimeInMs = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : DEFAULT_SCROLL_TIME;

            if (!this._platform.isBrowser) {
              return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])();
            }

            return new rxjs__WEBPACK_IMPORTED_MODULE_2__["Observable"](function (observer) {
              if (!_this382._globalSubscription) {
                _this382._addGlobalListener();
              } // In the case of a 0ms delay, use an observable without auditTime
              // since it does add a perceptible delay in processing overhead.


              var subscription = auditTimeInMs > 0 ? _this382._scrolled.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["auditTime"])(auditTimeInMs)).subscribe(observer) : _this382._scrolled.subscribe(observer);
              _this382._scrolledCount++;
              return function () {
                subscription.unsubscribe();
                _this382._scrolledCount--;

                if (!_this382._scrolledCount) {
                  _this382._removeGlobalListener();
                }
              };
            });
          }
        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            var _this383 = this;

            this._removeGlobalListener();

            this.scrollContainers.forEach(function (_, container) {
              return _this383.deregister(container);
            });

            this._scrolled.complete();
          }
          /**
           * Returns an observable that emits whenever any of the
           * scrollable ancestors of an element are scrolled.
           * @param elementRef Element whose ancestors to listen for.
           * @param auditTimeInMs Time to throttle the scroll events.
           */

        }, {
          key: "ancestorScrolled",
          value: function ancestorScrolled(elementRef, auditTimeInMs) {
            var ancestors = this.getAncestorScrollContainers(elementRef);
            return this.scrolled(auditTimeInMs).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["filter"])(function (target) {
              return !target || ancestors.indexOf(target) > -1;
            }));
          }
          /** Returns all registered Scrollables that contain the provided element. */

        }, {
          key: "getAncestorScrollContainers",
          value: function getAncestorScrollContainers(elementRef) {
            var _this384 = this;

            var scrollingContainers = [];
            this.scrollContainers.forEach(function (_subscription, scrollable) {
              if (_this384._scrollableContainsElement(scrollable, elementRef)) {
                scrollingContainers.push(scrollable);
              }
            });
            return scrollingContainers;
          }
          /** Use defaultView of injected document if available or fallback to global window reference */

        }, {
          key: "_getWindow",
          value: function _getWindow() {
            return this._document.defaultView || window;
          }
          /** Returns true if the element is contained within the provided Scrollable. */

        }, {
          key: "_scrollableContainsElement",
          value: function _scrollableContainsElement(scrollable, elementRef) {
            var element = elementRef.nativeElement;
            var scrollableElement = scrollable.getElementRef().nativeElement; // Traverse through the element parents until we reach null, checking if any of the elements
            // are the scrollable's element.

            do {
              if (element == scrollableElement) {
                return true;
              }
            } while (element = element.parentElement);

            return false;
          }
          /** Sets up the global scroll listeners. */

        }, {
          key: "_addGlobalListener",
          value: function _addGlobalListener() {
            var _this385 = this;

            this._globalSubscription = this._ngZone.runOutsideAngular(function () {
              var window = _this385._getWindow();

              return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["fromEvent"])(window.document, 'scroll').subscribe(function () {
                return _this385._scrolled.next();
              });
            });
          }
          /** Cleans up the global scroll listener. */

        }, {
          key: "_removeGlobalListener",
          value: function _removeGlobalListener() {
            if (this._globalSubscription) {
              this._globalSubscription.unsubscribe();

              this._globalSubscription = null;
            }
          }
        }]);

        return ScrollDispatcher;
      }();

      ScrollDispatcher.ɵfac = function ScrollDispatcher_Factory(t) {
        return new (t || ScrollDispatcher)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__["Platform"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_5__["DOCUMENT"], 8));
      };

      ScrollDispatcher.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"])({
        factory: function ScrollDispatcher_Factory() {
          return new ScrollDispatcher(Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]), Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__["Platform"]), Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(_angular_common__WEBPACK_IMPORTED_MODULE_5__["DOCUMENT"], 8));
        },
        token: ScrollDispatcher,
        providedIn: "root"
      });

      ScrollDispatcher.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]
        }, {
          type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__["Platform"]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
            args: [_angular_common__WEBPACK_IMPORTED_MODULE_5__["DOCUMENT"]]
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](ScrollDispatcher, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"],
          args: [{
            providedIn: 'root'
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]
          }, {
            type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__["Platform"]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
              args: [_angular_common__WEBPACK_IMPORTED_MODULE_5__["DOCUMENT"]]
            }]
          }];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Sends an event when the directive's element is scrolled. Registers itself with the
       * ScrollDispatcher service to include itself as part of its collection of scrolling events that it
       * can be listened to through the service.
       */


      var CdkScrollable = /*#__PURE__*/function () {
        function CdkScrollable(elementRef, scrollDispatcher, ngZone, dir) {
          var _this386 = this;

          _classCallCheck2(this, CdkScrollable);

          this.elementRef = elementRef;
          this.scrollDispatcher = scrollDispatcher;
          this.ngZone = ngZone;
          this.dir = dir;
          this._destroyed = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
          this._elementScrolled = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Observable"](function (observer) {
            return _this386.ngZone.runOutsideAngular(function () {
              return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["fromEvent"])(_this386.elementRef.nativeElement, 'scroll').pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["takeUntil"])(_this386._destroyed)).subscribe(observer);
            });
          });
        }

        _createClass2(CdkScrollable, [{
          key: "ngOnInit",
          value: function ngOnInit() {
            this.scrollDispatcher.register(this);
          }
        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            this.scrollDispatcher.deregister(this);

            this._destroyed.next();

            this._destroyed.complete();
          }
          /** Returns observable that emits when a scroll event is fired on the host element. */

        }, {
          key: "elementScrolled",
          value: function elementScrolled() {
            return this._elementScrolled;
          }
          /** Gets the ElementRef for the viewport. */

        }, {
          key: "getElementRef",
          value: function getElementRef() {
            return this.elementRef;
          }
          /**
           * Scrolls to the specified offsets. This is a normalized version of the browser's native scrollTo
           * method, since browsers are not consistent about what scrollLeft means in RTL. For this method
           * left and right always refer to the left and right side of the scrolling container irrespective
           * of the layout direction. start and end refer to left and right in an LTR context and vice-versa
           * in an RTL context.
           * @param options specified the offsets to scroll to.
           */

        }, {
          key: "scrollTo",
          value: function scrollTo(options) {
            var el = this.elementRef.nativeElement;
            var isRtl = this.dir && this.dir.value == 'rtl'; // Rewrite start & end offsets as right or left offsets.

            if (options.left == null) {
              options.left = isRtl ? options.end : options.start;
            }

            if (options.right == null) {
              options.right = isRtl ? options.start : options.end;
            } // Rewrite the bottom offset as a top offset.


            if (options.bottom != null) {
              options.top = el.scrollHeight - el.clientHeight - options.bottom;
            } // Rewrite the right offset as a left offset.


            if (isRtl && Object(_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__["getRtlScrollAxisType"])() != 0
            /* NORMAL */
            ) {
              if (options.left != null) {
                options.right = el.scrollWidth - el.clientWidth - options.left;
              }

              if (Object(_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__["getRtlScrollAxisType"])() == 2
              /* INVERTED */
              ) {
                options.left = options.right;
              } else if (Object(_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__["getRtlScrollAxisType"])() == 1
              /* NEGATED */
              ) {
                options.left = options.right ? -options.right : options.right;
              }
            } else {
              if (options.right != null) {
                options.left = el.scrollWidth - el.clientWidth - options.right;
              }
            }

            this._applyScrollToOptions(options);
          }
        }, {
          key: "_applyScrollToOptions",
          value: function _applyScrollToOptions(options) {
            var el = this.elementRef.nativeElement;

            if (Object(_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__["supportsScrollBehavior"])()) {
              el.scrollTo(options);
            } else {
              if (options.top != null) {
                el.scrollTop = options.top;
              }

              if (options.left != null) {
                el.scrollLeft = options.left;
              }
            }
          }
          /**
           * Measures the scroll offset relative to the specified edge of the viewport. This method can be
           * used instead of directly checking scrollLeft or scrollTop, since browsers are not consistent
           * about what scrollLeft means in RTL. The values returned by this method are normalized such that
           * left and right always refer to the left and right side of the scrolling container irrespective
           * of the layout direction. start and end refer to left and right in an LTR context and vice-versa
           * in an RTL context.
           * @param from The edge to measure from.
           */

        }, {
          key: "measureScrollOffset",
          value: function measureScrollOffset(from) {
            var LEFT = 'left';
            var RIGHT = 'right';
            var el = this.elementRef.nativeElement;

            if (from == 'top') {
              return el.scrollTop;
            }

            if (from == 'bottom') {
              return el.scrollHeight - el.clientHeight - el.scrollTop;
            } // Rewrite start & end as left or right offsets.


            var isRtl = this.dir && this.dir.value == 'rtl';

            if (from == 'start') {
              from = isRtl ? RIGHT : LEFT;
            } else if (from == 'end') {
              from = isRtl ? LEFT : RIGHT;
            }

            if (isRtl && Object(_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__["getRtlScrollAxisType"])() == 2
            /* INVERTED */
            ) {
              // For INVERTED, scrollLeft is (scrollWidth - clientWidth) when scrolled all the way left and
              // 0 when scrolled all the way right.
              if (from == LEFT) {
                return el.scrollWidth - el.clientWidth - el.scrollLeft;
              } else {
                return el.scrollLeft;
              }
            } else if (isRtl && Object(_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__["getRtlScrollAxisType"])() == 1
            /* NEGATED */
            ) {
              // For NEGATED, scrollLeft is -(scrollWidth - clientWidth) when scrolled all the way left and
              // 0 when scrolled all the way right.
              if (from == LEFT) {
                return el.scrollLeft + el.scrollWidth - el.clientWidth;
              } else {
                return -el.scrollLeft;
              }
            } else {
              // For NORMAL, as well as non-RTL contexts, scrollLeft is 0 when scrolled all the way left and
              // (scrollWidth - clientWidth) when scrolled all the way right.
              if (from == LEFT) {
                return el.scrollLeft;
              } else {
                return el.scrollWidth - el.clientWidth - el.scrollLeft;
              }
            }
          }
        }]);

        return CdkScrollable;
      }();

      CdkScrollable.ɵfac = function CdkScrollable_Factory(t) {
        return new (t || CdkScrollable)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ScrollDispatcher), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_6__["Directionality"], 8));
      };

      CdkScrollable.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineDirective"]({
        type: CdkScrollable,
        selectors: [["", "cdk-scrollable", ""], ["", "cdkScrollable", ""]]
      });

      CdkScrollable.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]
        }, {
          type: ScrollDispatcher
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]
        }, {
          type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_6__["Directionality"],
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](CdkScrollable, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Directive"],
          args: [{
            selector: '[cdk-scrollable], [cdkScrollable]'
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]
          }, {
            type: ScrollDispatcher
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]
          }, {
            type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_6__["Directionality"],
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
            }]
          }];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** Time in ms to throttle the resize events by default. */


      var DEFAULT_RESIZE_TIME = 20;
      /**
       * Simple utility for getting the bounds of the browser viewport.
       * @docs-private
       */

      var ViewportRuler = /*#__PURE__*/function () {
        function ViewportRuler(_platform, ngZone, document) {
          var _this387 = this;

          _classCallCheck2(this, ViewportRuler);

          this._platform = _platform;
          /** Stream of viewport change events. */

          this._change = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
          /** Event listener that will be used to handle the viewport change events. */

          this._changeListener = function (event) {
            _this387._change.next(event);
          };

          this._document = document;
          ngZone.runOutsideAngular(function () {
            if (_platform.isBrowser) {
              var _window = _this387._getWindow(); // Note that bind the events ourselves, rather than going through something like RxJS's
              // `fromEvent` so that we can ensure that they're bound outside of the NgZone.


              _window.addEventListener('resize', _this387._changeListener);

              _window.addEventListener('orientationchange', _this387._changeListener);
            } // We don't need to keep track of the subscription,
            // because we complete the `change` stream on destroy.


            _this387.change().subscribe(function () {
              return _this387._updateViewportSize();
            });
          });
        }

        _createClass2(ViewportRuler, [{
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            if (this._platform.isBrowser) {
              var _window2 = this._getWindow();

              _window2.removeEventListener('resize', this._changeListener);

              _window2.removeEventListener('orientationchange', this._changeListener);
            }

            this._change.complete();
          }
          /** Returns the viewport's width and height. */

        }, {
          key: "getViewportSize",
          value: function getViewportSize() {
            if (!this._viewportSize) {
              this._updateViewportSize();
            }

            var output = {
              width: this._viewportSize.width,
              height: this._viewportSize.height
            }; // If we're not on a browser, don't cache the size since it'll be mocked out anyway.

            if (!this._platform.isBrowser) {
              this._viewportSize = null;
            }

            return output;
          }
          /** Gets a ClientRect for the viewport's bounds. */

        }, {
          key: "getViewportRect",
          value: function getViewportRect() {
            // Use the document element's bounding rect rather than the window scroll properties
            // (e.g. pageYOffset, scrollY) due to in issue in Chrome and IE where window scroll
            // properties and client coordinates (boundingClientRect, clientX/Y, etc.) are in different
            // conceptual viewports. Under most circumstances these viewports are equivalent, but they
            // can disagree when the page is pinch-zoomed (on devices that support touch).
            // See https://bugs.chromium.org/p/chromium/issues/detail?id=489206#c4
            // We use the documentElement instead of the body because, by default (without a css reset)
            // browsers typically give the document body an 8px margin, which is not included in
            // getBoundingClientRect().
            var scrollPosition = this.getViewportScrollPosition();

            var _this$getViewportSize = this.getViewportSize(),
                width = _this$getViewportSize.width,
                height = _this$getViewportSize.height;

            return {
              top: scrollPosition.top,
              left: scrollPosition.left,
              bottom: scrollPosition.top + height,
              right: scrollPosition.left + width,
              height: height,
              width: width
            };
          }
          /** Gets the (top, left) scroll position of the viewport. */

        }, {
          key: "getViewportScrollPosition",
          value: function getViewportScrollPosition() {
            // While we can get a reference to the fake document
            // during SSR, it doesn't have getBoundingClientRect.
            if (!this._platform.isBrowser) {
              return {
                top: 0,
                left: 0
              };
            } // The top-left-corner of the viewport is determined by the scroll position of the document
            // body, normally just (scrollLeft, scrollTop). However, Chrome and Firefox disagree about
            // whether `document.body` or `document.documentElement` is the scrolled element, so reading
            // `scrollTop` and `scrollLeft` is inconsistent. However, using the bounding rect of
            // `document.documentElement` works consistently, where the `top` and `left` values will
            // equal negative the scroll position.


            var document = this._document;

            var window = this._getWindow();

            var documentElement = document.documentElement;
            var documentRect = documentElement.getBoundingClientRect();
            var top = -documentRect.top || document.body.scrollTop || window.scrollY || documentElement.scrollTop || 0;
            var left = -documentRect.left || document.body.scrollLeft || window.scrollX || documentElement.scrollLeft || 0;
            return {
              top: top,
              left: left
            };
          }
          /**
           * Returns a stream that emits whenever the size of the viewport changes.
           * @param throttleTime Time in milliseconds to throttle the stream.
           */

        }, {
          key: "change",
          value: function change() {
            var throttleTime = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : DEFAULT_RESIZE_TIME;
            return throttleTime > 0 ? this._change.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["auditTime"])(throttleTime)) : this._change;
          }
          /** Use defaultView of injected document if available or fallback to global window reference */

        }, {
          key: "_getWindow",
          value: function _getWindow() {
            return this._document.defaultView || window;
          }
          /** Updates the cached viewport size. */

        }, {
          key: "_updateViewportSize",
          value: function _updateViewportSize() {
            var window = this._getWindow();

            this._viewportSize = this._platform.isBrowser ? {
              width: window.innerWidth,
              height: window.innerHeight
            } : {
              width: 0,
              height: 0
            };
          }
        }]);

        return ViewportRuler;
      }();

      ViewportRuler.ɵfac = function ViewportRuler_Factory(t) {
        return new (t || ViewportRuler)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__["Platform"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_5__["DOCUMENT"], 8));
      };

      ViewportRuler.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"])({
        factory: function ViewportRuler_Factory() {
          return new ViewportRuler(Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__["Platform"]), Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]), Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(_angular_common__WEBPACK_IMPORTED_MODULE_5__["DOCUMENT"], 8));
        },
        token: ViewportRuler,
        providedIn: "root"
      });

      ViewportRuler.ctorParameters = function () {
        return [{
          type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__["Platform"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
            args: [_angular_common__WEBPACK_IMPORTED_MODULE_5__["DOCUMENT"]]
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](ViewportRuler, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"],
          args: [{
            providedIn: 'root'
          }]
        }], function () {
          return [{
            type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__["Platform"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
              args: [_angular_common__WEBPACK_IMPORTED_MODULE_5__["DOCUMENT"]]
            }]
          }];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** Checks if the given ranges are equal. */


      function rangesEqual(r1, r2) {
        return r1.start == r2.start && r1.end == r2.end;
      }
      /**
       * Scheduler to be used for scroll events. Needs to fall back to
       * something that doesn't rely on requestAnimationFrame on environments
       * that don't support it (e.g. server-side rendering).
       */


      var SCROLL_SCHEDULER = typeof requestAnimationFrame !== 'undefined' ? rxjs__WEBPACK_IMPORTED_MODULE_2__["animationFrameScheduler"] : rxjs__WEBPACK_IMPORTED_MODULE_2__["asapScheduler"];
      /** A viewport that virtualizes its scrolling with the help of `CdkVirtualForOf`. */

      var CdkVirtualScrollViewport = /*#__PURE__*/function (_CdkScrollable) {
        _inherits2(CdkVirtualScrollViewport, _CdkScrollable);

        var _super142 = _createSuper2(CdkVirtualScrollViewport);

        function CdkVirtualScrollViewport(elementRef, _changeDetectorRef, ngZone, _scrollStrategy, dir, scrollDispatcher, viewportRuler) {
          var _this388;

          _classCallCheck2(this, CdkVirtualScrollViewport);

          _this388 = _super142.call(this, elementRef, scrollDispatcher, ngZone, dir);
          _this388.elementRef = elementRef;
          _this388._changeDetectorRef = _changeDetectorRef;
          _this388._scrollStrategy = _scrollStrategy;
          /** Emits when the viewport is detached from a CdkVirtualForOf. */

          _this388._detachedSubject = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
          /** Emits when the rendered range changes. */

          _this388._renderedRangeSubject = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
          _this388._orientation = 'vertical'; // Note: we don't use the typical EventEmitter here because we need to subscribe to the scroll
          // strategy lazily (i.e. only if the user is actually listening to the events). We do this because
          // depending on how the strategy calculates the scrolled index, it may come at a cost to
          // performance.

          /** Emits when the index of the first element visible in the viewport changes. */

          _this388.scrolledIndexChange = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Observable"](function (observer) {
            return _this388._scrollStrategy.scrolledIndexChange.subscribe(function (index) {
              return Promise.resolve().then(function () {
                return _this388.ngZone.run(function () {
                  return observer.next(index);
                });
              });
            });
          });
          /** A stream that emits whenever the rendered range changes. */

          _this388.renderedRangeStream = _this388._renderedRangeSubject;
          /**
           * The total size of all content (in pixels), including content that is not currently rendered.
           */

          _this388._totalContentSize = 0;
          /** A string representing the `style.width` property value to be used for the spacer element. */

          _this388._totalContentWidth = '';
          /** A string representing the `style.height` property value to be used for the spacer element. */

          _this388._totalContentHeight = '';
          /** The currently rendered range of indices. */

          _this388._renderedRange = {
            start: 0,
            end: 0
          };
          /** The length of the data bound to this viewport (in number of items). */

          _this388._dataLength = 0;
          /** The size of the viewport (in pixels). */

          _this388._viewportSize = 0;
          /** The last rendered content offset that was set. */

          _this388._renderedContentOffset = 0;
          /**
           * Whether the last rendered content offset was to the end of the content (and therefore needs to
           * be rewritten as an offset to the start of the content).
           */

          _this388._renderedContentOffsetNeedsRewrite = false;
          /** Whether there is a pending change detection cycle. */

          _this388._isChangeDetectionPending = false;
          /** A list of functions to run after the next change detection cycle. */

          _this388._runAfterChangeDetection = [];
          /** Subscription to changes in the viewport size. */

          _this388._viewportChanges = rxjs__WEBPACK_IMPORTED_MODULE_2__["Subscription"].EMPTY;

          if (!_scrollStrategy && (typeof ngDevMode === 'undefined' || ngDevMode)) {
            throw Error('Error: cdk-virtual-scroll-viewport requires the "itemSize" property to be set.');
          }

          _this388._viewportChanges = viewportRuler.change().subscribe(function () {
            _this388.checkViewportSize();
          });
          return _this388;
        }
        /** The direction the viewport scrolls. */


        _createClass2(CdkVirtualScrollViewport, [{
          key: "orientation",
          get: function get() {
            return this._orientation;
          },
          set: function set(orientation) {
            if (this._orientation !== orientation) {
              this._orientation = orientation;

              this._calculateSpacerSize();
            }
          }
        }, {
          key: "ngOnInit",
          value: function ngOnInit() {
            var _this389 = this;

            _get2(_getPrototypeOf2(CdkVirtualScrollViewport.prototype), "ngOnInit", this).call(this); // It's still too early to measure the viewport at this point. Deferring with a promise allows
            // the Viewport to be rendered with the correct size before we measure. We run this outside the
            // zone to avoid causing more change detection cycles. We handle the change detection loop
            // ourselves instead.


            this.ngZone.runOutsideAngular(function () {
              return Promise.resolve().then(function () {
                _this389._measureViewportSize();

                _this389._scrollStrategy.attach(_this389);

                _this389.elementScrolled().pipe( // Start off with a fake scroll event so we properly detect our initial position.
                Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["startWith"])(null), // Collect multiple events into one until the next animation frame. This way if
                // there are multiple scroll events in the same frame we only need to recheck
                // our layout once.
                Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["auditTime"])(0, SCROLL_SCHEDULER)).subscribe(function () {
                  return _this389._scrollStrategy.onContentScrolled();
                });

                _this389._markChangeDetectionNeeded();
              });
            });
          }
        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            this.detach();

            this._scrollStrategy.detach(); // Complete all subjects


            this._renderedRangeSubject.complete();

            this._detachedSubject.complete();

            this._viewportChanges.unsubscribe();

            _get2(_getPrototypeOf2(CdkVirtualScrollViewport.prototype), "ngOnDestroy", this).call(this);
          }
          /** Attaches a `CdkVirtualScrollRepeater` to this viewport. */

        }, {
          key: "attach",
          value: function attach(forOf) {
            var _this390 = this;

            if (this._forOf && (typeof ngDevMode === 'undefined' || ngDevMode)) {
              throw Error('CdkVirtualScrollViewport is already attached.');
            } // Subscribe to the data stream of the CdkVirtualForOf to keep track of when the data length
            // changes. Run outside the zone to avoid triggering change detection, since we're managing the
            // change detection loop ourselves.


            this.ngZone.runOutsideAngular(function () {
              _this390._forOf = forOf;

              _this390._forOf.dataStream.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["takeUntil"])(_this390._detachedSubject)).subscribe(function (data) {
                var newLength = data.length;

                if (newLength !== _this390._dataLength) {
                  _this390._dataLength = newLength;

                  _this390._scrollStrategy.onDataLengthChanged();
                }

                _this390._doChangeDetection();
              });
            });
          }
          /** Detaches the current `CdkVirtualForOf`. */

        }, {
          key: "detach",
          value: function detach() {
            this._forOf = null;

            this._detachedSubject.next();
          }
          /** Gets the length of the data bound to this viewport (in number of items). */

        }, {
          key: "getDataLength",
          value: function getDataLength() {
            return this._dataLength;
          }
          /** Gets the size of the viewport (in pixels). */

        }, {
          key: "getViewportSize",
          value: function getViewportSize() {
            return this._viewportSize;
          } // TODO(mmalerba): This is technically out of sync with what's really rendered until a render
          // cycle happens. I'm being careful to only call it after the render cycle is complete and before
          // setting it to something else, but its error prone and should probably be split into
          // `pendingRange` and `renderedRange`, the latter reflecting whats actually in the DOM.

          /** Get the current rendered range of items. */

        }, {
          key: "getRenderedRange",
          value: function getRenderedRange() {
            return this._renderedRange;
          }
          /**
           * Sets the total size of all content (in pixels), including content that is not currently
           * rendered.
           */

        }, {
          key: "setTotalContentSize",
          value: function setTotalContentSize(size) {
            if (this._totalContentSize !== size) {
              this._totalContentSize = size;

              this._calculateSpacerSize();

              this._markChangeDetectionNeeded();
            }
          }
          /** Sets the currently rendered range of indices. */

        }, {
          key: "setRenderedRange",
          value: function setRenderedRange(range) {
            var _this391 = this;

            if (!rangesEqual(this._renderedRange, range)) {
              this._renderedRangeSubject.next(this._renderedRange = range);

              this._markChangeDetectionNeeded(function () {
                return _this391._scrollStrategy.onContentRendered();
              });
            }
          }
          /**
           * Gets the offset from the start of the viewport to the start of the rendered data (in pixels).
           */

        }, {
          key: "getOffsetToRenderedContentStart",
          value: function getOffsetToRenderedContentStart() {
            return this._renderedContentOffsetNeedsRewrite ? null : this._renderedContentOffset;
          }
          /**
           * Sets the offset from the start of the viewport to either the start or end of the rendered data
           * (in pixels).
           */

        }, {
          key: "setRenderedContentOffset",
          value: function setRenderedContentOffset(offset) {
            var _this392 = this;

            var to = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'to-start';
            // For a horizontal viewport in a right-to-left language we need to translate along the x-axis
            // in the negative direction.
            var isRtl = this.dir && this.dir.value == 'rtl';
            var isHorizontal = this.orientation == 'horizontal';
            var axis = isHorizontal ? 'X' : 'Y';
            var axisDirection = isHorizontal && isRtl ? -1 : 1;
            var transform = "translate".concat(axis, "(").concat(Number(axisDirection * offset), "px)");
            this._renderedContentOffset = offset;

            if (to === 'to-end') {
              transform += " translate".concat(axis, "(-100%)"); // The viewport should rewrite this as a `to-start` offset on the next render cycle. Otherwise
              // elements will appear to expand in the wrong direction (e.g. `mat-expansion-panel` would
              // expand upward).

              this._renderedContentOffsetNeedsRewrite = true;
            }

            if (this._renderedContentTransform != transform) {
              // We know this value is safe because we parse `offset` with `Number()` before passing it
              // into the string.
              this._renderedContentTransform = transform;

              this._markChangeDetectionNeeded(function () {
                if (_this392._renderedContentOffsetNeedsRewrite) {
                  _this392._renderedContentOffset -= _this392.measureRenderedContentSize();
                  _this392._renderedContentOffsetNeedsRewrite = false;

                  _this392.setRenderedContentOffset(_this392._renderedContentOffset);
                } else {
                  _this392._scrollStrategy.onRenderedOffsetChanged();
                }
              });
            }
          }
          /**
           * Scrolls to the given offset from the start of the viewport. Please note that this is not always
           * the same as setting `scrollTop` or `scrollLeft`. In a horizontal viewport with right-to-left
           * direction, this would be the equivalent of setting a fictional `scrollRight` property.
           * @param offset The offset to scroll to.
           * @param behavior The ScrollBehavior to use when scrolling. Default is behavior is `auto`.
           */

        }, {
          key: "scrollToOffset",
          value: function scrollToOffset(offset) {
            var behavior = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'auto';
            var options = {
              behavior: behavior
            };

            if (this.orientation === 'horizontal') {
              options.start = offset;
            } else {
              options.top = offset;
            }

            this.scrollTo(options);
          }
          /**
           * Scrolls to the offset for the given index.
           * @param index The index of the element to scroll to.
           * @param behavior The ScrollBehavior to use when scrolling. Default is behavior is `auto`.
           */

        }, {
          key: "scrollToIndex",
          value: function scrollToIndex(index) {
            var behavior = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'auto';

            this._scrollStrategy.scrollToIndex(index, behavior);
          }
          /**
           * Gets the current scroll offset from the start of the viewport (in pixels).
           * @param from The edge to measure the offset from. Defaults to 'top' in vertical mode and 'start'
           *     in horizontal mode.
           */

        }, {
          key: "measureScrollOffset",
          value: function measureScrollOffset(from) {
            return from ? _get2(_getPrototypeOf2(CdkVirtualScrollViewport.prototype), "measureScrollOffset", this).call(this, from) : _get2(_getPrototypeOf2(CdkVirtualScrollViewport.prototype), "measureScrollOffset", this).call(this, this.orientation === 'horizontal' ? 'start' : 'top');
          }
          /** Measure the combined size of all of the rendered items. */

        }, {
          key: "measureRenderedContentSize",
          value: function measureRenderedContentSize() {
            var contentEl = this._contentWrapper.nativeElement;
            return this.orientation === 'horizontal' ? contentEl.offsetWidth : contentEl.offsetHeight;
          }
          /**
           * Measure the total combined size of the given range. Throws if the range includes items that are
           * not rendered.
           */

        }, {
          key: "measureRangeSize",
          value: function measureRangeSize(range) {
            if (!this._forOf) {
              return 0;
            }

            return this._forOf.measureRangeSize(range, this.orientation);
          }
          /** Update the viewport dimensions and re-render. */

        }, {
          key: "checkViewportSize",
          value: function checkViewportSize() {
            // TODO: Cleanup later when add logic for handling content resize
            this._measureViewportSize();

            this._scrollStrategy.onDataLengthChanged();
          }
          /** Measure the viewport size. */

        }, {
          key: "_measureViewportSize",
          value: function _measureViewportSize() {
            var viewportEl = this.elementRef.nativeElement;
            this._viewportSize = this.orientation === 'horizontal' ? viewportEl.clientWidth : viewportEl.clientHeight;
          }
          /** Queue up change detection to run. */

        }, {
          key: "_markChangeDetectionNeeded",
          value: function _markChangeDetectionNeeded(runAfter) {
            var _this393 = this;

            if (runAfter) {
              this._runAfterChangeDetection.push(runAfter);
            } // Use a Promise to batch together calls to `_doChangeDetection`. This way if we set a bunch of
            // properties sequentially we only have to run `_doChangeDetection` once at the end.


            if (!this._isChangeDetectionPending) {
              this._isChangeDetectionPending = true;
              this.ngZone.runOutsideAngular(function () {
                return Promise.resolve().then(function () {
                  _this393._doChangeDetection();
                });
              });
            }
          }
          /** Run change detection. */

        }, {
          key: "_doChangeDetection",
          value: function _doChangeDetection() {
            var _this394 = this;

            this._isChangeDetectionPending = false; // Apply the content transform. The transform can't be set via an Angular binding because
            // bypassSecurityTrustStyle is banned in Google. However the value is safe, it's composed of
            // string literals, a variable that can only be 'X' or 'Y', and user input that is run through
            // the `Number` function first to coerce it to a numeric value.

            this._contentWrapper.nativeElement.style.transform = this._renderedContentTransform; // Apply changes to Angular bindings. Note: We must call `markForCheck` to run change detection
            // from the root, since the repeated items are content projected in. Calling `detectChanges`
            // instead does not properly check the projected content.

            this.ngZone.run(function () {
              return _this394._changeDetectorRef.markForCheck();
            });
            var runAfterChangeDetection = this._runAfterChangeDetection;
            this._runAfterChangeDetection = [];

            var _iterator47 = _createForOfIteratorHelper(runAfterChangeDetection),
                _step46;

            try {
              for (_iterator47.s(); !(_step46 = _iterator47.n()).done;) {
                var fn = _step46.value;
                fn();
              }
            } catch (err) {
              _iterator47.e(err);
            } finally {
              _iterator47.f();
            }
          }
          /** Calculates the `style.width` and `style.height` for the spacer element. */

        }, {
          key: "_calculateSpacerSize",
          value: function _calculateSpacerSize() {
            this._totalContentHeight = this.orientation === 'horizontal' ? '' : "".concat(this._totalContentSize, "px");
            this._totalContentWidth = this.orientation === 'horizontal' ? "".concat(this._totalContentSize, "px") : '';
          }
        }]);

        return CdkVirtualScrollViewport;
      }(CdkScrollable);

      CdkVirtualScrollViewport.ɵfac = function CdkVirtualScrollViewport_Factory(t) {
        return new (t || CdkVirtualScrollViewport)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](VIRTUAL_SCROLL_STRATEGY, 8), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_6__["Directionality"], 8), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ScrollDispatcher), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ViewportRuler));
      };

      CdkVirtualScrollViewport.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({
        type: CdkVirtualScrollViewport,
        selectors: [["cdk-virtual-scroll-viewport"]],
        viewQuery: function CdkVirtualScrollViewport_Query(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵstaticViewQuery"](_c0, true);
          }

          if (rf & 2) {
            var _t;

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx._contentWrapper = _t.first);
          }
        },
        hostAttrs: [1, "cdk-virtual-scroll-viewport"],
        hostVars: 4,
        hostBindings: function CdkVirtualScrollViewport_HostBindings(rf, ctx) {
          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵclassProp"]("cdk-virtual-scroll-orientation-horizontal", ctx.orientation === "horizontal")("cdk-virtual-scroll-orientation-vertical", ctx.orientation !== "horizontal");
          }
        },
        inputs: {
          orientation: "orientation"
        },
        outputs: {
          scrolledIndexChange: "scrolledIndexChange"
        },
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵProvidersFeature"]([{
          provide: CdkScrollable,
          useExisting: CdkVirtualScrollViewport
        }]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵInheritDefinitionFeature"]],
        ngContentSelectors: _c1,
        decls: 4,
        vars: 4,
        consts: [[1, "cdk-virtual-scroll-content-wrapper"], ["contentWrapper", ""], [1, "cdk-virtual-scroll-spacer"]],
        template: function CdkVirtualScrollViewport_Template(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0, 1);

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](2);

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "div", 2);
          }

          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵstyleProp"]("width", ctx._totalContentWidth)("height", ctx._totalContentHeight);
          }
        },
        styles: ["cdk-virtual-scroll-viewport{display:block;position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0}[dir=rtl] .cdk-virtual-scroll-spacer{right:0;left:auto;transform-origin:100% 0}\n"],
        encapsulation: 2,
        changeDetection: 0
      });

      CdkVirtualScrollViewport.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
            args: [VIRTUAL_SCROLL_STRATEGY]
          }]
        }, {
          type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_6__["Directionality"],
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
          }]
        }, {
          type: ScrollDispatcher
        }, {
          type: ViewportRuler
        }];
      };

      CdkVirtualScrollViewport.propDecorators = {
        orientation: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
        }],
        scrolledIndexChange: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
        }],
        _contentWrapper: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"],
          args: ['contentWrapper', {
            "static": true
          }]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](CdkVirtualScrollViewport, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
          args: [{
            selector: 'cdk-virtual-scroll-viewport',
            template: "<!--\n  Wrap the rendered content in an element that will be used to offset it based on the scroll\n  position.\n-->\n<div #contentWrapper class=\"cdk-virtual-scroll-content-wrapper\">\n  <ng-content></ng-content>\n</div>\n<!--\n  Spacer used to force the scrolling container to the correct size for the *total* number of items\n  so that the scrollbar captures the size of the entire data set.\n-->\n<div class=\"cdk-virtual-scroll-spacer\"\n     [style.width]=\"_totalContentWidth\" [style.height]=\"_totalContentHeight\"></div>\n",
            host: {
              'class': 'cdk-virtual-scroll-viewport',
              '[class.cdk-virtual-scroll-orientation-horizontal]': 'orientation === "horizontal"',
              '[class.cdk-virtual-scroll-orientation-vertical]': 'orientation !== "horizontal"'
            },
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None,
            changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush,
            providers: [{
              provide: CdkScrollable,
              useExisting: CdkVirtualScrollViewport
            }],
            styles: ["cdk-virtual-scroll-viewport{display:block;position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0}[dir=rtl] .cdk-virtual-scroll-spacer{right:0;left:auto;transform-origin:100% 0}\n"]
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
              args: [VIRTUAL_SCROLL_STRATEGY]
            }]
          }, {
            type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_6__["Directionality"],
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
            }]
          }, {
            type: ScrollDispatcher
          }, {
            type: ViewportRuler
          }];
        }, {
          scrolledIndexChange: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
          }],
          orientation: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
          }],
          _contentWrapper: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"],
            args: ['contentWrapper', {
              "static": true
            }]
          }]
        });
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** Helper to extract the offset of a DOM Node in a certain direction. */


      function getOffset(orientation, direction, node) {
        var el = node;

        if (!el.getBoundingClientRect) {
          return 0;
        }

        var rect = el.getBoundingClientRect();

        if (orientation === 'horizontal') {
          return direction === 'start' ? rect.left : rect.right;
        }

        return direction === 'start' ? rect.top : rect.bottom;
      }
      /**
       * A directive similar to `ngForOf` to be used for rendering data inside a virtual scrolling
       * container.
       */


      var CdkVirtualForOf = /*#__PURE__*/function () {
        function CdkVirtualForOf(
        /** The view container to add items to. */
        _viewContainerRef,
        /** The template to use when stamping out new items. */
        _template,
        /** The set of available differs. */
        _differs,
        /** The strategy used to render items in the virtual scroll viewport. */
        _viewRepeater,
        /** The virtual scrolling viewport that these items are being rendered in. */
        _viewport, ngZone) {
          var _this395 = this;

          _classCallCheck2(this, CdkVirtualForOf);

          this._viewContainerRef = _viewContainerRef;
          this._template = _template;
          this._differs = _differs;
          this._viewRepeater = _viewRepeater;
          this._viewport = _viewport;
          /** Emits when the rendered view of the data changes. */

          this.viewChange = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
          /** Subject that emits when a new DataSource instance is given. */

          this._dataSourceChanges = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
          /** Emits whenever the data in the current DataSource changes. */

          this.dataStream = this._dataSourceChanges.pipe( // Start off with null `DataSource`.
          Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["startWith"])(null), // Bundle up the previous and current data sources so we can work with both.
          Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["pairwise"])(), // Use `_changeDataSource` to disconnect from the previous data source and connect to the
          // new one, passing back a stream of data changes which we run through `switchMap` to give
          // us a data stream that emits the latest data from whatever the current `DataSource` is.
          Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["switchMap"])(function (_ref53) {
            var _ref54 = _slicedToArray(_ref53, 2),
                prev = _ref54[0],
                cur = _ref54[1];

            return _this395._changeDataSource(prev, cur);
          }), // Replay the last emitted data when someone subscribes.
          Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["shareReplay"])(1));
          /** The differ used to calculate changes to the data. */

          this._differ = null;
          /** Whether the rendered data should be updated during the next ngDoCheck cycle. */

          this._needsUpdate = false;
          this._destroyed = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
          this.dataStream.subscribe(function (data) {
            _this395._data = data;

            _this395._onRenderedDataChange();
          });

          this._viewport.renderedRangeStream.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["takeUntil"])(this._destroyed)).subscribe(function (range) {
            _this395._renderedRange = range;
            ngZone.run(function () {
              return _this395.viewChange.next(_this395._renderedRange);
            });

            _this395._onRenderedDataChange();
          });

          this._viewport.attach(this);
        }
        /** The DataSource to display. */


        _createClass2(CdkVirtualForOf, [{
          key: "cdkVirtualForOf",
          get: function get() {
            return this._cdkVirtualForOf;
          },
          set: function set(value) {
            this._cdkVirtualForOf = value;

            if (Object(_angular_cdk_collections__WEBPACK_IMPORTED_MODULE_7__["isDataSource"])(value)) {
              this._dataSourceChanges.next(value);
            } else {
              // If value is an an NgIterable, convert it to an array.
              this._dataSourceChanges.next(new _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_7__["ArrayDataSource"](Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["isObservable"])(value) ? value : Array.from(value || [])));
            }
          }
          /**
           * The `TrackByFunction` to use for tracking changes. The `TrackByFunction` takes the index and
           * the item and produces a value to be used as the item's identity when tracking changes.
           */

        }, {
          key: "cdkVirtualForTrackBy",
          get: function get() {
            return this._cdkVirtualForTrackBy;
          },
          set: function set(fn) {
            var _this396 = this;

            this._needsUpdate = true;
            this._cdkVirtualForTrackBy = fn ? function (index, item) {
              return fn(index + (_this396._renderedRange ? _this396._renderedRange.start : 0), item);
            } : undefined;
          }
          /** The template used to stamp out new elements. */

        }, {
          key: "cdkVirtualForTemplate",
          set: function set(value) {
            if (value) {
              this._needsUpdate = true;
              this._template = value;
            }
          }
          /**
           * The size of the cache used to store templates that are not being used for re-use later.
           * Setting the cache size to `0` will disable caching. Defaults to 20 templates.
           */

        }, {
          key: "cdkVirtualForTemplateCacheSize",
          get: function get() {
            return this._viewRepeater.viewCacheSize;
          },
          set: function set(size) {
            this._viewRepeater.viewCacheSize = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_0__["coerceNumberProperty"])(size);
          }
          /**
           * Measures the combined size (width for horizontal orientation, height for vertical) of all items
           * in the specified range. Throws an error if the range includes items that are not currently
           * rendered.
           */

        }, {
          key: "measureRangeSize",
          value: function measureRangeSize(range, orientation) {
            if (range.start >= range.end) {
              return 0;
            }

            if ((range.start < this._renderedRange.start || range.end > this._renderedRange.end) && (typeof ngDevMode === 'undefined' || ngDevMode)) {
              throw Error("Error: attempted to measure an item that isn't rendered.");
            } // The index into the list of rendered views for the first item in the range.


            var renderedStartIndex = range.start - this._renderedRange.start; // The length of the range we're measuring.

            var rangeLen = range.end - range.start; // Loop over all the views, find the first and land node and compute the size by subtracting
            // the top of the first node from the bottom of the last one.

            var firstNode;
            var lastNode; // Find the first node by starting from the beginning and going forwards.

            for (var i = 0; i < rangeLen; i++) {
              var view = this._viewContainerRef.get(i + renderedStartIndex);

              if (view && view.rootNodes.length) {
                firstNode = lastNode = view.rootNodes[0];
                break;
              }
            } // Find the last node by starting from the end and going backwards.


            for (var _i14 = rangeLen - 1; _i14 > -1; _i14--) {
              var _view2 = this._viewContainerRef.get(_i14 + renderedStartIndex);

              if (_view2 && _view2.rootNodes.length) {
                lastNode = _view2.rootNodes[_view2.rootNodes.length - 1];
                break;
              }
            }

            return firstNode && lastNode ? getOffset(orientation, 'end', lastNode) - getOffset(orientation, 'start', firstNode) : 0;
          }
        }, {
          key: "ngDoCheck",
          value: function ngDoCheck() {
            if (this._differ && this._needsUpdate) {
              // TODO(mmalerba): We should differentiate needs update due to scrolling and a new portion of
              // this list being rendered (can use simpler algorithm) vs needs update due to data actually
              // changing (need to do this diff).
              var changes = this._differ.diff(this._renderedItems);

              if (!changes) {
                this._updateContext();
              } else {
                this._applyChanges(changes);
              }

              this._needsUpdate = false;
            }
          }
        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            this._viewport.detach();

            this._dataSourceChanges.next(undefined);

            this._dataSourceChanges.complete();

            this.viewChange.complete();

            this._destroyed.next();

            this._destroyed.complete();

            this._viewRepeater.detach();
          }
          /** React to scroll state changes in the viewport. */

        }, {
          key: "_onRenderedDataChange",
          value: function _onRenderedDataChange() {
            if (!this._renderedRange) {
              return;
            }

            this._renderedItems = this._data.slice(this._renderedRange.start, this._renderedRange.end);

            if (!this._differ) {
              this._differ = this._differs.find(this._renderedItems).create(this.cdkVirtualForTrackBy);
            }

            this._needsUpdate = true;
          }
          /** Swap out one `DataSource` for another. */

        }, {
          key: "_changeDataSource",
          value: function _changeDataSource(oldDs, newDs) {
            if (oldDs) {
              oldDs.disconnect(this);
            }

            this._needsUpdate = true;
            return newDs ? newDs.connect(this) : Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])();
          }
          /** Update the `CdkVirtualForOfContext` for all views. */

        }, {
          key: "_updateContext",
          value: function _updateContext() {
            var count = this._data.length;
            var i = this._viewContainerRef.length;

            while (i--) {
              var view = this._viewContainerRef.get(i);

              view.context.index = this._renderedRange.start + i;
              view.context.count = count;

              this._updateComputedContextProperties(view.context);

              view.detectChanges();
            }
          }
          /** Apply changes to the DOM. */

        }, {
          key: "_applyChanges",
          value: function _applyChanges(changes) {
            var _this397 = this;

            this._viewRepeater.applyChanges(changes, this._viewContainerRef, function (record, adjustedPreviousIndex, currentIndex) {
              return _this397._getEmbeddedViewArgs(record, currentIndex);
            }, function (record) {
              return record.item;
            }); // Update $implicit for any items that had an identity change.


            changes.forEachIdentityChange(function (record) {
              var view = _this397._viewContainerRef.get(record.currentIndex);

              view.context.$implicit = record.item;
            }); // Update the context variables on all items.

            var count = this._data.length;
            var i = this._viewContainerRef.length;

            while (i--) {
              var view = this._viewContainerRef.get(i);

              view.context.index = this._renderedRange.start + i;
              view.context.count = count;

              this._updateComputedContextProperties(view.context);
            }
          }
          /** Update the computed properties on the `CdkVirtualForOfContext`. */

        }, {
          key: "_updateComputedContextProperties",
          value: function _updateComputedContextProperties(context) {
            context.first = context.index === 0;
            context.last = context.index === context.count - 1;
            context.even = context.index % 2 === 0;
            context.odd = !context.even;
          }
        }, {
          key: "_getEmbeddedViewArgs",
          value: function _getEmbeddedViewArgs(record, index) {
            // Note that it's important that we insert the item directly at the proper index,
            // rather than inserting it and the moving it in place, because if there's a directive
            // on the same node that injects the `ViewContainerRef`, Angular will insert another
            // comment node which can throw off the move when it's being repeated for all items.
            return {
              templateRef: this._template,
              context: {
                $implicit: record.item,
                // It's guaranteed that the iterable is not "undefined" or "null" because we only
                // generate views for elements if the "cdkVirtualForOf" iterable has elements.
                cdkVirtualForOf: this._cdkVirtualForOf,
                index: -1,
                count: -1,
                first: false,
                last: false,
                odd: false,
                even: false
              },
              index: index
            };
          }
        }]);

        return CdkVirtualForOf;
      }();

      CdkVirtualForOf.ɵfac = function CdkVirtualForOf_Factory(t) {
        return new (t || CdkVirtualForOf)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewContainerRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["TemplateRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["IterableDiffers"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_cdk_collections__WEBPACK_IMPORTED_MODULE_7__["_VIEW_REPEATER_STRATEGY"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](CdkVirtualScrollViewport, 4), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]));
      };

      CdkVirtualForOf.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineDirective"]({
        type: CdkVirtualForOf,
        selectors: [["", "cdkVirtualFor", "", "cdkVirtualForOf", ""]],
        inputs: {
          cdkVirtualForOf: "cdkVirtualForOf",
          cdkVirtualForTrackBy: "cdkVirtualForTrackBy",
          cdkVirtualForTemplate: "cdkVirtualForTemplate",
          cdkVirtualForTemplateCacheSize: "cdkVirtualForTemplateCacheSize"
        },
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵProvidersFeature"]([{
          provide: _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_7__["_VIEW_REPEATER_STRATEGY"],
          useClass: _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_7__["_RecycleViewRepeaterStrategy"]
        }])]
      });

      CdkVirtualForOf.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewContainerRef"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["TemplateRef"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["IterableDiffers"]
        }, {
          type: _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_7__["_RecycleViewRepeaterStrategy"],
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
            args: [_angular_cdk_collections__WEBPACK_IMPORTED_MODULE_7__["_VIEW_REPEATER_STRATEGY"]]
          }]
        }, {
          type: CdkVirtualScrollViewport,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["SkipSelf"]
          }]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]
        }];
      };

      CdkVirtualForOf.propDecorators = {
        cdkVirtualForOf: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
        }],
        cdkVirtualForTrackBy: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
        }],
        cdkVirtualForTemplate: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
        }],
        cdkVirtualForTemplateCacheSize: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](CdkVirtualForOf, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Directive"],
          args: [{
            selector: '[cdkVirtualFor][cdkVirtualForOf]',
            providers: [{
              provide: _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_7__["_VIEW_REPEATER_STRATEGY"],
              useClass: _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_7__["_RecycleViewRepeaterStrategy"]
            }]
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewContainerRef"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["TemplateRef"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["IterableDiffers"]
          }, {
            type: _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_7__["_RecycleViewRepeaterStrategy"],
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
              args: [_angular_cdk_collections__WEBPACK_IMPORTED_MODULE_7__["_VIEW_REPEATER_STRATEGY"]]
            }]
          }, {
            type: CdkVirtualScrollViewport,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["SkipSelf"]
            }]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]
          }];
        }, {
          cdkVirtualForOf: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
          }],
          cdkVirtualForTrackBy: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
          }],
          cdkVirtualForTemplate: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
          }],
          cdkVirtualForTemplateCacheSize: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
          }]
        });
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var CdkScrollableModule = function CdkScrollableModule() {
        _classCallCheck2(this, CdkScrollableModule);
      };

      CdkScrollableModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineNgModule"]({
        type: CdkScrollableModule
      });
      CdkScrollableModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjector"]({
        factory: function CdkScrollableModule_Factory(t) {
          return new (t || CdkScrollableModule)();
        }
      });

      (function () {
        (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsetNgModuleScope"](CdkScrollableModule, {
          declarations: [CdkScrollable],
          exports: [CdkScrollable]
        });
      })();
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](CdkScrollableModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"],
          args: [{
            exports: [CdkScrollable],
            declarations: [CdkScrollable]
          }]
        }], null, null);
      })();
      /**
       * @docs-primary-export
       */


      var ScrollingModule = function ScrollingModule() {
        _classCallCheck2(this, ScrollingModule);
      };

      ScrollingModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineNgModule"]({
        type: ScrollingModule
      });
      ScrollingModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjector"]({
        factory: function ScrollingModule_Factory(t) {
          return new (t || ScrollingModule)();
        },
        imports: [[_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_6__["BidiModule"], _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__["PlatformModule"], CdkScrollableModule], _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_6__["BidiModule"], CdkScrollableModule]
      });

      (function () {
        (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsetNgModuleScope"](ScrollingModule, {
          declarations: function declarations() {
            return [CdkFixedSizeVirtualScroll, CdkVirtualForOf, CdkVirtualScrollViewport];
          },
          imports: function imports() {
            return [_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_6__["BidiModule"], _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__["PlatformModule"], CdkScrollableModule];
          },
          exports: function exports() {
            return [_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_6__["BidiModule"], CdkScrollableModule, CdkFixedSizeVirtualScroll, CdkVirtualForOf, CdkVirtualScrollViewport];
          }
        });
      })();
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](ScrollingModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"],
          args: [{
            imports: [_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_6__["BidiModule"], _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__["PlatformModule"], CdkScrollableModule],
            exports: [_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_6__["BidiModule"], CdkScrollableModule, CdkFixedSizeVirtualScroll, CdkVirtualForOf, CdkVirtualScrollViewport],
            declarations: [CdkFixedSizeVirtualScroll, CdkVirtualForOf, CdkVirtualScrollViewport]
          }]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Generated bundle index. Do not edit.
       */
      //# sourceMappingURL=scrolling.js.map

      /***/

    },

    /***/
    "7aV9": function aV9(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Sinhalese [si]
      //! author : Sampath Sitinamaluwa : https://github.com/sampathsris
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        /*jshint -W100*/

        var si = moment.defineLocale('si', {
          months: 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split('_'),
          monthsShort: 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split('_'),
          weekdays: 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split('_'),
          weekdaysShort: 'ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන'.split('_'),
          weekdaysMin: 'ඉ_ස_අ_බ_බ්‍ර_සි_සෙ'.split('_'),
          weekdaysParseExact: true,
          longDateFormat: {
            LT: 'a h:mm',
            LTS: 'a h:mm:ss',
            L: 'YYYY/MM/DD',
            LL: 'YYYY MMMM D',
            LLL: 'YYYY MMMM D, a h:mm',
            LLLL: 'YYYY MMMM D [වැනි] dddd, a h:mm:ss'
          },
          calendar: {
            sameDay: '[අද] LT[ට]',
            nextDay: '[හෙට] LT[ට]',
            nextWeek: 'dddd LT[ට]',
            lastDay: '[ඊයේ] LT[ට]',
            lastWeek: '[පසුගිය] dddd LT[ට]',
            sameElse: 'L'
          },
          relativeTime: {
            future: '%sකින්',
            past: '%sකට පෙර',
            s: 'තත්පර කිහිපය',
            ss: 'තත්පර %d',
            m: 'මිනිත්තුව',
            mm: 'මිනිත්තු %d',
            h: 'පැය',
            hh: 'පැය %d',
            d: 'දිනය',
            dd: 'දින %d',
            M: 'මාසය',
            MM: 'මාස %d',
            y: 'වසර',
            yy: 'වසර %d'
          },
          dayOfMonthOrdinalParse: /\d{1,2} වැනි/,
          ordinal: function ordinal(number) {
            return number + ' වැනි';
          },
          meridiemParse: /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,
          isPM: function isPM(input) {
            return input === 'ප.ව.' || input === 'පස් වරු';
          },
          meridiem: function meridiem(hours, minutes, isLower) {
            if (hours > 11) {
              return isLower ? 'ප.ව.' : 'පස් වරු';
            } else {
              return isLower ? 'පෙ.ව.' : 'පෙර වරු';
            }
          }
        });
        return si;
      });
      /***/

    },

    /***/
    "7gZZ": function gZZ(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return getWeekYear;
      });
      /* harmony import */


      var _startOfWeek_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../startOfWeek/index.js */
      "aetl");
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../_lib/toInteger/index.js */
      "/h9T");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name getWeekYear
       * @category Week-Numbering Year Helpers
       * @summary Get the local week-numbering year of the given date.
       *
       * @description
       * Get the local week-numbering year of the given date.
       * The exact calculation depends on the values of
       * `options.weekStartsOn` (which is the index of the first day of the week)
       * and `options.firstWeekContainsDate` (which is the day of January, which is always in
       * the first week of the week-numbering year)
       *
       * Week numbering: https://en.wikipedia.org/wiki/Week#Week_numbering
       *
       * ### 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 {Date|Number} date - the given date
       * @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)
       * @param {1|2|3|4|5|6|7} [options.firstWeekContainsDate=1] - the day of January, which is always in the first week of the year
       * @returns {Number} the local week-numbering year
       * @throws {TypeError} 1 argument required
       * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6
       * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7
       *
       * @example
       * // Which week numbering year is 26 December 2004 with the default settings?
       * var result = getWeekYear(new Date(2004, 11, 26))
       * //=> 2005
       *
       * @example
       * // Which week numbering year is 26 December 2004 if week starts on Saturday?
       * var result = getWeekYear(new Date(2004, 11, 26), { weekStartsOn: 6 })
       * //=> 2004
       *
       * @example
       * // Which week numbering year is 26 December 2004 if the first week contains 4 January?
       * var result = getWeekYear(new Date(2004, 11, 26), { firstWeekContainsDate: 4 })
       * //=> 2004
       */


      function getWeekYear(dirtyDate, dirtyOptions) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(1, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate);
        var year = date.getFullYear();
        var options = dirtyOptions || {};
        var locale = options.locale;
        var localeFirstWeekContainsDate = locale && locale.options && locale.options.firstWeekContainsDate;
        var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(localeFirstWeekContainsDate);
        var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(options.firstWeekContainsDate); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN

        if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
          throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');
        }

        var firstWeekOfNextYear = new Date(0);
        firstWeekOfNextYear.setFullYear(year + 1, 0, firstWeekContainsDate);
        firstWeekOfNextYear.setHours(0, 0, 0, 0);
        var startOfNextYear = Object(_startOfWeek_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(firstWeekOfNextYear, dirtyOptions);
        var firstWeekOfThisYear = new Date(0);
        firstWeekOfThisYear.setFullYear(year, 0, firstWeekContainsDate);
        firstWeekOfThisYear.setHours(0, 0, 0, 0);
        var startOfThisYear = Object(_startOfWeek_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(firstWeekOfThisYear, dirtyOptions);

        if (date.getTime() >= startOfNextYear.getTime()) {
          return year + 1;
        } else if (date.getTime() >= startOfThisYear.getTime()) {
          return year;
        } else {
          return year - 1;
        }
      }
      /***/

    },

    /***/
    "7o/Q": function oQ(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Subscriber", function () {
        return Subscriber;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "SafeSubscriber", function () {
        return SafeSubscriber;
      });
      /* harmony import */


      var _util_isFunction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ./util/isFunction */
      "n6bG");
      /* harmony import */


      var _Observer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ./Observer */
      "gRHU");
      /* harmony import */


      var _Subscription__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ./Subscription */
      "quSY");
      /* harmony import */


      var _internal_symbol_rxSubscriber__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../internal/symbol/rxSubscriber */
      "2QA8");
      /* harmony import */


      var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! ./config */
      "2fFW");
      /* harmony import */


      var _util_hostReportError__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! ./util/hostReportError */
      "NJ4a");

      var Subscriber = /*#__PURE__*/function (_Subscription__WEBPAC, _internal_symbol_rxSu) {
        _inherits2(Subscriber, _Subscription__WEBPAC);

        var _super143 = _createSuper2(Subscriber);

        function Subscriber(destinationOrNext, error, complete) {
          var _this398;

          _classCallCheck2(this, Subscriber);

          _this398 = _super143.call(this);
          _this398.syncErrorValue = null;
          _this398.syncErrorThrown = false;
          _this398.syncErrorThrowable = false;
          _this398.isStopped = false;

          switch (arguments.length) {
            case 0:
              _this398.destination = _Observer__WEBPACK_IMPORTED_MODULE_1__["empty"];
              break;

            case 1:
              if (!destinationOrNext) {
                _this398.destination = _Observer__WEBPACK_IMPORTED_MODULE_1__["empty"];
                break;
              }

              if (typeof destinationOrNext === 'object') {
                if (destinationOrNext instanceof Subscriber) {
                  _this398.syncErrorThrowable = destinationOrNext.syncErrorThrowable;
                  _this398.destination = destinationOrNext;
                  destinationOrNext.add(_assertThisInitialized2(_this398));
                } else {
                  _this398.syncErrorThrowable = true;
                  _this398.destination = new SafeSubscriber(_assertThisInitialized2(_this398), destinationOrNext);
                }

                break;
              }

            default:
              _this398.syncErrorThrowable = true;
              _this398.destination = new SafeSubscriber(_assertThisInitialized2(_this398), destinationOrNext, error, complete);
              break;
          }

          return _this398;
        }

        _createClass2(Subscriber, [{
          key: _internal_symbol_rxSu,
          value: function value() {
            return this;
          }
        }, {
          key: "next",
          value: function next(value) {
            if (!this.isStopped) {
              this._next(value);
            }
          }
        }, {
          key: "error",
          value: function error(err) {
            if (!this.isStopped) {
              this.isStopped = true;

              this._error(err);
            }
          }
        }, {
          key: "complete",
          value: function complete() {
            if (!this.isStopped) {
              this.isStopped = true;

              this._complete();
            }
          }
        }, {
          key: "unsubscribe",
          value: function unsubscribe() {
            if (this.closed) {
              return;
            }

            this.isStopped = true;

            _get2(_getPrototypeOf2(Subscriber.prototype), "unsubscribe", this).call(this);
          }
        }, {
          key: "_next",
          value: function _next(value) {
            this.destination.next(value);
          }
        }, {
          key: "_error",
          value: function _error(err) {
            this.destination.error(err);
            this.unsubscribe();
          }
        }, {
          key: "_complete",
          value: function _complete() {
            this.destination.complete();
            this.unsubscribe();
          }
        }, {
          key: "_unsubscribeAndRecycle",
          value: function _unsubscribeAndRecycle() {
            var _parentOrParents = this._parentOrParents;
            this._parentOrParents = null;
            this.unsubscribe();
            this.closed = false;
            this.isStopped = false;
            this._parentOrParents = _parentOrParents;
            return this;
          }
        }], [{
          key: "create",
          value: function create(next, error, complete) {
            var subscriber = new Subscriber(next, error, complete);
            subscriber.syncErrorThrowable = false;
            return subscriber;
          }
        }]);

        return Subscriber;
      }(_Subscription__WEBPACK_IMPORTED_MODULE_2__["Subscription"], _internal_symbol_rxSubscriber__WEBPACK_IMPORTED_MODULE_3__["rxSubscriber"]);

      var SafeSubscriber = /*#__PURE__*/function (_Subscriber) {
        _inherits2(SafeSubscriber, _Subscriber);

        var _super144 = _createSuper2(SafeSubscriber);

        function SafeSubscriber(_parentSubscriber, observerOrNext, error, complete) {
          var _this399;

          _classCallCheck2(this, SafeSubscriber);

          _this399 = _super144.call(this);
          _this399._parentSubscriber = _parentSubscriber;
          var next;

          var context = _assertThisInitialized2(_this399);

          if (Object(_util_isFunction__WEBPACK_IMPORTED_MODULE_0__["isFunction"])(observerOrNext)) {
            next = observerOrNext;
          } else if (observerOrNext) {
            next = observerOrNext.next;
            error = observerOrNext.error;
            complete = observerOrNext.complete;

            if (observerOrNext !== _Observer__WEBPACK_IMPORTED_MODULE_1__["empty"]) {
              context = Object.create(observerOrNext);

              if (Object(_util_isFunction__WEBPACK_IMPORTED_MODULE_0__["isFunction"])(context.unsubscribe)) {
                _this399.add(context.unsubscribe.bind(context));
              }

              context.unsubscribe = _this399.unsubscribe.bind(_assertThisInitialized2(_this399));
            }
          }

          _this399._context = context;
          _this399._next = next;
          _this399._error = error;
          _this399._complete = complete;
          return _this399;
        }

        _createClass2(SafeSubscriber, [{
          key: "next",
          value: function next(value) {
            if (!this.isStopped && this._next) {
              var _parentSubscriber = this._parentSubscriber;

              if (!_config__WEBPACK_IMPORTED_MODULE_4__["config"].useDeprecatedSynchronousErrorHandling || !_parentSubscriber.syncErrorThrowable) {
                this.__tryOrUnsub(this._next, value);
              } else if (this.__tryOrSetError(_parentSubscriber, this._next, value)) {
                this.unsubscribe();
              }
            }
          }
        }, {
          key: "error",
          value: function error(err) {
            if (!this.isStopped) {
              var _parentSubscriber = this._parentSubscriber;
              var useDeprecatedSynchronousErrorHandling = _config__WEBPACK_IMPORTED_MODULE_4__["config"].useDeprecatedSynchronousErrorHandling;

              if (this._error) {
                if (!useDeprecatedSynchronousErrorHandling || !_parentSubscriber.syncErrorThrowable) {
                  this.__tryOrUnsub(this._error, err);

                  this.unsubscribe();
                } else {
                  this.__tryOrSetError(_parentSubscriber, this._error, err);

                  this.unsubscribe();
                }
              } else if (!_parentSubscriber.syncErrorThrowable) {
                this.unsubscribe();

                if (useDeprecatedSynchronousErrorHandling) {
                  throw err;
                }

                Object(_util_hostReportError__WEBPACK_IMPORTED_MODULE_5__["hostReportError"])(err);
              } else {
                if (useDeprecatedSynchronousErrorHandling) {
                  _parentSubscriber.syncErrorValue = err;
                  _parentSubscriber.syncErrorThrown = true;
                } else {
                  Object(_util_hostReportError__WEBPACK_IMPORTED_MODULE_5__["hostReportError"])(err);
                }

                this.unsubscribe();
              }
            }
          }
        }, {
          key: "complete",
          value: function complete() {
            var _this400 = this;

            if (!this.isStopped) {
              var _parentSubscriber = this._parentSubscriber;

              if (this._complete) {
                var wrappedComplete = function wrappedComplete() {
                  return _this400._complete.call(_this400._context);
                };

                if (!_config__WEBPACK_IMPORTED_MODULE_4__["config"].useDeprecatedSynchronousErrorHandling || !_parentSubscriber.syncErrorThrowable) {
                  this.__tryOrUnsub(wrappedComplete);

                  this.unsubscribe();
                } else {
                  this.__tryOrSetError(_parentSubscriber, wrappedComplete);

                  this.unsubscribe();
                }
              } else {
                this.unsubscribe();
              }
            }
          }
        }, {
          key: "__tryOrUnsub",
          value: function __tryOrUnsub(fn, value) {
            try {
              fn.call(this._context, value);
            } catch (err) {
              this.unsubscribe();

              if (_config__WEBPACK_IMPORTED_MODULE_4__["config"].useDeprecatedSynchronousErrorHandling) {
                throw err;
              } else {
                Object(_util_hostReportError__WEBPACK_IMPORTED_MODULE_5__["hostReportError"])(err);
              }
            }
          }
        }, {
          key: "__tryOrSetError",
          value: function __tryOrSetError(parent, fn, value) {
            if (!_config__WEBPACK_IMPORTED_MODULE_4__["config"].useDeprecatedSynchronousErrorHandling) {
              throw new Error('bad call');
            }

            try {
              fn.call(this._context, value);
            } catch (err) {
              if (_config__WEBPACK_IMPORTED_MODULE_4__["config"].useDeprecatedSynchronousErrorHandling) {
                parent.syncErrorValue = err;
                parent.syncErrorThrown = true;
                return true;
              } else {
                Object(_util_hostReportError__WEBPACK_IMPORTED_MODULE_5__["hostReportError"])(err);
                return true;
              }
            }

            return false;
          }
        }, {
          key: "_unsubscribe",
          value: function _unsubscribe() {
            var _parentSubscriber = this._parentSubscriber;
            this._context = null;
            this._parentSubscriber = null;

            _parentSubscriber.unsubscribe();
          }
        }]);

        return SafeSubscriber;
      }(Subscriber); //# sourceMappingURL=Subscriber.js.map

      /***/

    },

    /***/
    "7ve7": function ve7(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Action", function () {
        return Action;
      });
      /* harmony import */


      var _Subscription__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Subscription */
      "quSY");

      var Action = /*#__PURE__*/function (_Subscription__WEBPAC2) {
        _inherits2(Action, _Subscription__WEBPAC2);

        var _super145 = _createSuper2(Action);

        function Action(scheduler, work) {
          _classCallCheck2(this, Action);

          return _super145.call(this);
        }

        _createClass2(Action, [{
          key: "schedule",
          value: function schedule(state) {
            var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
            return this;
          }
        }]);

        return Action;
      }(_Subscription__WEBPACK_IMPORTED_MODULE_0__["Subscription"]); //# sourceMappingURL=Action.js.map

      /***/

    },

    /***/
    "7wYy": function wYy(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return sub;
      });
      /* harmony import */


      var _subDays_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../subDays/index.js */
      "Xep9");
      /* harmony import */


      var _subMonths_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../subMonths/index.js */
      "phiu");
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /* harmony import */


      var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! ../_lib/toInteger/index.js */
      "/h9T");
      /**
       * @name sub
       * @category Common Helpers
       * @summary Subtract the specified years, months, weeks, days, hours, minutes and seconds from the given date.
       *
       * @description
       * Subtract the specified years, months, weeks, days, hours, minutes and seconds from the given date.
       *
       * @param {Date|Number} date - the date to be changed
       * @param {Duration} duration - the object with years, months, weeks, days, hours, minutes and seconds to be subtracted
       *
       * | Key     | Description                        |
       * |---------|------------------------------------|
       * | years   | Amount of years to be subtracted   |
       * | months  | Amount of months to be subtracted  |
       * | weeks   | Amount of weeks to be subtracted   |
       * | days    | Amount of days to be subtracted    |
       * | hours   | Amount of hours to be subtracted   |
       * | minutes | Amount of minutes to be subtracted |
       * | seconds | Amount of seconds to be subtracted |
       *
       * All values default to 0
       *
       * @returns {Date} the new date with the seconds subtracted
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // Subtract the following duration from 15 June 2017 15:29:20
       * const result = sub(new Date(2017, 5, 15, 15, 29, 20), {
       *   years: 2,
       *   months: 9,
       *   weeks: 1,
       *   days: 7,
       *   hours: 5,
       *   minutes: 9,
       *   seconds: 30
       * })
       * //=> Mon Sep 1 2014 10:19:50
       */


      function sub(dirtyDate, duration) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(2, arguments);
        if (!duration || typeof duration !== 'object') return new Date(NaN);
        var years = 'years' in duration ? Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_4__["default"])(duration.years) : 0;
        var months = 'months' in duration ? Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_4__["default"])(duration.months) : 0;
        var weeks = 'weeks' in duration ? Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_4__["default"])(duration.weeks) : 0;
        var days = 'days' in duration ? Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_4__["default"])(duration.days) : 0;
        var hours = 'hours' in duration ? Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_4__["default"])(duration.hours) : 0;
        var minutes = 'minutes' in duration ? Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_4__["default"])(duration.minutes) : 0;
        var seconds = 'seconds' in duration ? Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_4__["default"])(duration.seconds) : 0; // Subtract years and months

        var dateWithoutMonths = Object(_subMonths_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(dirtyDate), months + years * 12); // Subtract weeks and days

        var dateWithoutDays = Object(_subDays_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dateWithoutMonths, days + weeks * 7); // Subtract hours, minutes and seconds

        var minutestoSub = minutes + hours * 60;
        var secondstoSub = seconds + minutestoSub * 60;
        var mstoSub = secondstoSub * 1000;
        var finalDate = new Date(dateWithoutDays.getTime() - mstoSub);
        return finalDate;
      }
      /***/

    },

    /***/
    "7wxJ": function wxJ(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "combineAll", function () {
        return combineAll;
      });
      /* harmony import */


      var _observable_combineLatest__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../observable/combineLatest */
      "itXk");

      function combineAll(project) {
        return function (source) {
          return source.lift(new _observable_combineLatest__WEBPACK_IMPORTED_MODULE_0__["CombineLatestOperator"](project));
        };
      } //# sourceMappingURL=combineAll.js.map

      /***/

    },

    /***/
    "7xvl": function xvl(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return formatDistanceToNow;
      });
      /* harmony import */


      var _formatDistance_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../formatDistance/index.js */
      "FVam");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name formatDistanceToNow
       * @category Common Helpers
       * @summary Return the distance between the given date and now in words.
       * @pure false
       *
       * @description
       * Return the distance between the given date and now in words.
       *
       * | Distance to now                                                   | Result              |
       * |-------------------------------------------------------------------|---------------------|
       * | 0 ... 30 secs                                                     | less than a minute  |
       * | 30 secs ... 1 min 30 secs                                         | 1 minute            |
       * | 1 min 30 secs ... 44 mins 30 secs                                 | [2..44] minutes     |
       * | 44 mins ... 30 secs ... 89 mins 30 secs                           | about 1 hour        |
       * | 89 mins 30 secs ... 23 hrs 59 mins 30 secs                        | about [2..24] hours |
       * | 23 hrs 59 mins 30 secs ... 41 hrs 59 mins 30 secs                 | 1 day               |
       * | 41 hrs 59 mins 30 secs ... 29 days 23 hrs 59 mins 30 secs         | [2..30] days        |
       * | 29 days 23 hrs 59 mins 30 secs ... 44 days 23 hrs 59 mins 30 secs | about 1 month       |
       * | 44 days 23 hrs 59 mins 30 secs ... 59 days 23 hrs 59 mins 30 secs | about 2 months      |
       * | 59 days 23 hrs 59 mins 30 secs ... 1 yr                           | [2..12] months      |
       * | 1 yr ... 1 yr 3 months                                            | about 1 year        |
       * | 1 yr 3 months ... 1 yr 9 month s                                  | over 1 year         |
       * | 1 yr 9 months ... 2 yrs                                           | almost 2 years      |
       * | N yrs ... N yrs 3 months                                          | about N years       |
       * | N yrs 3 months ... N yrs 9 months                                 | over N years        |
       * | N yrs 9 months ... N+1 yrs                                        | almost N+1 years    |
       *
       * With `options.includeSeconds == true`:
       * | Distance to now     | Result               |
       * |---------------------|----------------------|
       * | 0 secs ... 5 secs   | less than 5 seconds  |
       * | 5 secs ... 10 secs  | less than 10 seconds |
       * | 10 secs ... 20 secs | less than 20 seconds |
       * | 20 secs ... 40 secs | half a minute        |
       * | 40 secs ... 60 secs | less than a minute   |
       * | 60 secs ... 90 secs | 1 minute             |
       *
       * > ⚠️ Please note that this function is not present in the FP submodule as
       * > it uses `Date.now()` internally hence impure and can't be safely curried.
       *
       * ### 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).
       *
       * - The function was renamed from `distanceInWordsToNow ` to `formatDistanceToNow`
       *   to make its name consistent with `format` and `formatRelative`.
       *
       *   ```javascript
       *   // Before v2.0.0
       *
       *   distanceInWordsToNow(new Date(2014, 6, 2), { addSuffix: true })
       *   //=> 'in 6 months'
       *
       *   // v2.0.0 onward
       *
       *   formatDistanceToNow(new Date(2014, 6, 2), { addSuffix: true })
       *   //=> 'in 6 months'
       *   ```
       *
       * @param {Date|Number} date - the given date
       * @param {Object} [options] - the object with options
       * @param {Boolean} [options.includeSeconds=false] - distances less than a minute are more detailed
       * @param {Boolean} [options.addSuffix=false] - result specifies if now is earlier or later than the passed date
       * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}
       * @returns {String} the distance in words
       * @throws {TypeError} 1 argument required
       * @throws {RangeError} `date` must not be Invalid Date
       * @throws {RangeError} `options.locale` must contain `formatDistance` property
       *
       * @example
       * // If today is 1 January 2015, what is the distance to 2 July 2014?
       * var result = formatDistanceToNow(
       *   new Date(2014, 6, 2)
       * )
       * //=> '6 months'
       *
       * @example
       * // If now is 1 January 2015 00:00:00,
       * // what is the distance to 1 January 2015 00:00:15, including seconds?
       * var result = formatDistanceToNow(
       *   new Date(2015, 0, 1, 0, 0, 15),
       *   {includeSeconds: true}
       * )
       * //=> 'less than 20 seconds'
       *
       * @example
       * // If today is 1 January 2015,
       * // what is the distance to 1 January 2016, with a suffix?
       * var result = formatDistanceToNow(
       *   new Date(2016, 0, 1),
       *   {addSuffix: true}
       * )
       * //=> 'in about 1 year'
       *
       * @example
       * // If today is 1 January 2015,
       * // what is the distance to 1 August 2016 in Esperanto?
       * var eoLocale = require('date-fns/locale/eo')
       * var result = formatDistanceToNow(
       *   new Date(2016, 7, 1),
       *   {locale: eoLocale}
       * )
       * //=> 'pli ol 1 jaro'
       */


      function formatDistanceToNow(dirtyDate, dirtyOptions) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        return Object(_formatDistance_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate, Date.now(), dirtyOptions);
      }
      /***/

    },

    /***/
    "8/+R": function R(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Punjabi (India) [pa-in]
      //! author : Harpreet Singh : https://github.com/harpreetkhalsagtbit
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var symbolMap = {
          1: '੧',
          2: '੨',
          3: '੩',
          4: '੪',
          5: '੫',
          6: '੬',
          7: '੭',
          8: '੮',
          9: '੯',
          0: '੦'
        },
            numberMap = {
          '੧': '1',
          '੨': '2',
          '੩': '3',
          '੪': '4',
          '੫': '5',
          '੬': '6',
          '੭': '7',
          '੮': '8',
          '੯': '9',
          '੦': '0'
        };
        var paIn = moment.defineLocale('pa-in', {
          // There are months name as per Nanakshahi Calendar but they are not used as rigidly in modern Punjabi.
          months: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'),
          monthsShort: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'),
          weekdays: 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split('_'),
          weekdaysShort: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
          weekdaysMin: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
          longDateFormat: {
            LT: 'A h:mm ਵਜੇ',
            LTS: 'A h:mm:ss ਵਜੇ',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY, A h:mm ਵਜੇ',
            LLLL: 'dddd, D MMMM YYYY, A h:mm ਵਜੇ'
          },
          calendar: {
            sameDay: '[ਅਜ] LT',
            nextDay: '[ਕਲ] LT',
            nextWeek: '[ਅਗਲਾ] dddd, LT',
            lastDay: '[ਕਲ] LT',
            lastWeek: '[ਪਿਛਲੇ] dddd, LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: '%s ਵਿੱਚ',
            past: '%s ਪਿਛਲੇ',
            s: 'ਕੁਝ ਸਕਿੰਟ',
            ss: '%d ਸਕਿੰਟ',
            m: 'ਇਕ ਮਿੰਟ',
            mm: '%d ਮਿੰਟ',
            h: 'ਇੱਕ ਘੰਟਾ',
            hh: '%d ਘੰਟੇ',
            d: 'ਇੱਕ ਦਿਨ',
            dd: '%d ਦਿਨ',
            M: 'ਇੱਕ ਮਹੀਨਾ',
            MM: '%d ਮਹੀਨੇ',
            y: 'ਇੱਕ ਸਾਲ',
            yy: '%d ਸਾਲ'
          },
          preparse: function preparse(string) {
            return string.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function (match) {
              return numberMap[match];
            });
          },
          postformat: function postformat(string) {
            return string.replace(/\d/g, function (match) {
              return symbolMap[match];
            });
          },
          // Punjabi notation for meridiems are quite fuzzy in practice. While there exists
          // a rigid notion of a 'Pahar' it is not used as rigidly in modern Punjabi.
          meridiemParse: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,
          meridiemHour: function meridiemHour(hour, meridiem) {
            if (hour === 12) {
              hour = 0;
            }

            if (meridiem === 'ਰਾਤ') {
              return hour < 4 ? hour : hour + 12;
            } else if (meridiem === 'ਸਵੇਰ') {
              return hour;
            } else if (meridiem === 'ਦੁਪਹਿਰ') {
              return hour >= 10 ? hour : hour + 12;
            } else if (meridiem === 'ਸ਼ਾਮ') {
              return hour + 12;
            }
          },
          meridiem: function meridiem(hour, minute, isLower) {
            if (hour < 4) {
              return 'ਰਾਤ';
            } else if (hour < 10) {
              return 'ਸਵੇਰ';
            } else if (hour < 17) {
              return 'ਦੁਪਹਿਰ';
            } else if (hour < 20) {
              return 'ਸ਼ਾਮ';
            } else {
              return 'ਰਾਤ';
            }
          },
          week: {
            dow: 0,
            // Sunday is the first day of the week.
            doy: 6 // The week that contains Jan 6th is the first week of the year.

          }
        });
        return paIn;
      });
      /***/

    },

    /***/
    "83R2": function R2(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return addBusinessDays;
      });
      /* harmony import */


      var _isWeekend_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../isWeekend/index.js */
      "gLRL");
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../_lib/toInteger/index.js */
      "/h9T");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /* harmony import */


      var _isSunday_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! ../isSunday/index.js */
      "hW07");
      /* harmony import */


      var _isSaturday_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! ../isSaturday/index.js */
      "GxZL");
      /**
       * @name addBusinessDays
       * @category Day Helpers
       * @summary Add the specified number of business days (mon - fri) to the given date.
       *
       * @description
       * Add the specified number of business days (mon - fri) to the given date, ignoring weekends.
       *
       * @param {Date|Number} date - the date to be changed
       * @param {Number} amount - the amount of business days to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
       * @returns {Date} the new date with the business days added
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // Add 10 business days to 1 September 2014:
       * var result = addBusinessDays(new Date(2014, 8, 1), 10)
       * //=> Mon Sep 15 2014 00:00:00 (skipped weekend days)
       */


      function addBusinessDays(dirtyDate, dirtyAmount) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(2, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate);
        var startedOnWeekend = Object(_isWeekend_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(date);
        var amount = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(dirtyAmount);
        if (isNaN(amount)) return new Date(NaN);
        var hours = date.getHours();
        var sign = amount < 0 ? -1 : 1;
        var fullWeeks = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(amount / 5);
        date.setDate(date.getDate() + fullWeeks * 7); // Get remaining days not part of a full week

        var restDays = Math.abs(amount % 5); // Loops over remaining days

        while (restDays > 0) {
          date.setDate(date.getDate() + sign);
          if (!Object(_isWeekend_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(date)) restDays -= 1;
        } // If the date is a weekend day and we reduce a dividable of
        // 5 from it, we land on a weekend date.
        // To counter this, we add days accordingly to land on the next business day


        if (startedOnWeekend && Object(_isWeekend_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(date) && amount !== 0) {
          // If we're reducing days, we want to add days until we land on a weekday
          // If we're adding days we want to reduce days until we land on a weekday
          if (Object(_isSaturday_index_js__WEBPACK_IMPORTED_MODULE_5__["default"])(date)) date.setDate(date.getDate() + (sign < 0 ? 2 : -1));
          if (Object(_isSunday_index_js__WEBPACK_IMPORTED_MODULE_4__["default"])(date)) date.setDate(date.getDate() + (sign < 0 ? 1 : -2));
        } // Restore hours to avoid DST lag


        date.setHours(hours);
        return date;
      }
      /***/

    },

    /***/
    "8LU1": function LU1(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "_isNumberValue", function () {
        return _isNumberValue;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "coerceArray", function () {
        return coerceArray;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "coerceBooleanProperty", function () {
        return coerceBooleanProperty;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "coerceCssPixelValue", function () {
        return coerceCssPixelValue;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "coerceElement", function () {
        return coerceElement;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "coerceNumberProperty", function () {
        return coerceNumberProperty;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "coerceStringArray", function () {
        return coerceStringArray;
      });
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** Coerces a data-bound value (typically a string) to a boolean. */


      function coerceBooleanProperty(value) {
        return value != null && "".concat(value) !== 'false';
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function coerceNumberProperty(value) {
        var fallbackValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
        return _isNumberValue(value) ? Number(value) : fallbackValue;
      }
      /**
       * Whether the provided value is considered a number.
       * @docs-private
       */


      function _isNumberValue(value) {
        // parseFloat(value) handles most of the cases we're interested in (it treats null, empty string,
        // and other non-number values as NaN, where Number just uses 0) but it considers the string
        // '123hello' to be a valid number. Therefore we also check if Number(value) is NaN.
        return !isNaN(parseFloat(value)) && !isNaN(Number(value));
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function coerceArray(value) {
        return Array.isArray(value) ? value : [value];
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** Coerces a value to a CSS pixel value. */


      function coerceCssPixelValue(value) {
        if (value == null) {
          return '';
        }

        return typeof value === 'string' ? value : "".concat(value, "px");
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Coerces an ElementRef or an Element into an element.
       * Useful for APIs that can accept either a ref or the native element itself.
       */


      function coerceElement(elementOrRef) {
        return elementOrRef instanceof _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] ? elementOrRef.nativeElement : elementOrRef;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Coerces a value to an array of trimmed non-empty strings.
       * Any input that is not an array, `null` or `undefined` will be turned into a string
       * via `toString()` and subsequently split with the given separator.
       * `null` and `undefined` will result in an empty array.
       * This results in the following outcomes:
       * - `null` -&gt; `[]`
       * - `[null]` -&gt; `["null"]`
       * - `["a", "b ", " "]` -&gt; `["a", "b"]`
       * - `[1, [2, 3]]` -&gt; `["1", "2,3"]`
       * - `[{ a: 0 }]` -&gt; `["[object Object]"]`
       * - `{ a: 0 }` -&gt; `["[object", "Object]"]`
       *
       * Useful for defining CSS classes or table columns.
       * @param value the value to coerce into an array of strings
       * @param separator split-separator if value isn't an array
       */


      function coerceStringArray(value) {
        var separator = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : /\s+/;
        var result = [];

        if (value != null) {
          var sourceValues = Array.isArray(value) ? value : "".concat(value).split(separator);

          var _iterator48 = _createForOfIteratorHelper(sourceValues),
              _step47;

          try {
            for (_iterator48.s(); !(_step47 = _iterator48.n()).done;) {
              var sourceValue = _step47.value;
              var trimmedString = "".concat(sourceValue).trim();

              if (trimmedString) {
                result.push(trimmedString);
              }
            }
          } catch (err) {
            _iterator48.e(err);
          } finally {
            _iterator48.f();
          }
        }

        return result;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */
      //# sourceMappingURL=coercion.js.map

      /***/

    },

    /***/
    "8Qeq": function Qeq(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "canReportError", function () {
        return canReportError;
      });
      /* harmony import */


      var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Subscriber */
      "7o/Q");

      function canReportError(observer) {
        while (observer) {
          var _observer = observer,
              closed = _observer.closed,
              destination = _observer.destination,
              isStopped = _observer.isStopped;

          if (closed || isStopped) {
            return false;
          } else if (destination && destination instanceof _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]) {
            observer = destination;
          } else {
            observer = null;
          }
        }

        return true;
      } //# sourceMappingURL=canReportError.js.map

      /***/

    },

    /***/
    "8XTV": function XTV(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "BackendService", function () {
        return BackendService;
      });
      /* harmony import */


      var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! rxjs */
      "qCKp");
      /* harmony import */


      var rxjs_operators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! rxjs/operators */
      "kU1M");
      /* harmony import */


      var _http_status_codes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ./http-status-codes */
      "s2lA");
      /* harmony import */


      var _delay_response__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ./delay-response */
      "hQ6s");
      /* harmony import */


      var _interfaces__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! ./interfaces */
      "JVVJ");
      /**
       * Base class for in-memory web api back-ends
       * Simulate the behavior of a RESTy web api
       * backed by the simple in-memory data store provided by the injected `InMemoryDbService` service.
       * Conforms mostly to behavior described here:
       * http://www.restapitutorial.com/lessons/httpmethods.html
       */


      var BackendService = function () {
        function BackendService(inMemDbService, config) {
          if (config === void 0) {
            config = {};
          }

          this.inMemDbService = inMemDbService;
          this.config = new _interfaces__WEBPACK_IMPORTED_MODULE_4__["InMemoryBackendConfig"]();
          this.requestInfoUtils = this.getRequestInfoUtils();
          var loc = this.getLocation('/');
          this.config.host = loc.host; // default to app web server host

          this.config.rootPath = loc.path; // default to path when app is served (e.g.'/')

          Object.assign(this.config, config);
        }

        Object.defineProperty(BackendService.prototype, "dbReady", {
          ////  protected /////
          get: function get() {
            if (!this.dbReadySubject) {
              // first time the service is called.
              this.dbReadySubject = new rxjs__WEBPACK_IMPORTED_MODULE_0__["BehaviorSubject"](false);
              this.resetDb();
            }

            return this.dbReadySubject.asObservable().pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["first"])(function (r) {
              return r;
            }));
          },
          enumerable: true,
          configurable: true
        });
        /**
         * Process Request and return an Observable of Http Response object
         * in the manner of a RESTy web api.
         *
         * Expect URI pattern in the form :base/:collectionName/:id?
         * Examples:
         *   // for store with a 'customers' collection
         *   GET api/customers          // all customers
         *   GET api/customers/42       // the character with id=42
         *   GET api/customers?name=^j  // 'j' is a regex; returns customers whose name starts with 'j' or 'J'
         *   GET api/customers.json/42  // ignores the ".json"
         *
         * Also accepts direct commands to the service in which the last segment of the apiBase is the word "commands"
         * Examples:
         *     POST commands/resetDb,
         *     GET/POST commands/config - get or (re)set the config
         *
         *   HTTP overrides:
         *     If the injected inMemDbService defines an HTTP method (lowercase)
         *     The request is forwarded to that method as in
         *     `inMemDbService.get(requestInfo)`
         *     which must return either an Observable of the response type
         *     for this http library or null|undefined (which means "keep processing").
         */

        BackendService.prototype.handleRequest = function (req) {
          var _this = this; //  handle the request when there is an in-memory database


          return this.dbReady.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["concatMap"])(function () {
            return _this.handleRequest_(req);
          }));
        };

        BackendService.prototype.handleRequest_ = function (req) {
          var _this = this;

          var url = req.urlWithParams ? req.urlWithParams : req.url; // Try override parser
          // If no override parser or it returns nothing, use default parser

          var parser = this.bind('parseRequestUrl');
          var parsed = parser && parser(url, this.requestInfoUtils) || this.parseRequestUrl(url);
          var collectionName = parsed.collectionName;
          var collection = this.db[collectionName];
          var reqInfo = {
            req: req,
            apiBase: parsed.apiBase,
            collection: collection,
            collectionName: collectionName,
            headers: this.createHeaders({
              'Content-Type': 'application/json'
            }),
            id: this.parseId(collection, collectionName, parsed.id),
            method: this.getRequestMethod(req),
            query: parsed.query,
            resourceUrl: parsed.resourceUrl,
            url: url,
            utils: this.requestInfoUtils
          };
          var resOptions;

          if (/commands\/?$/i.test(reqInfo.apiBase)) {
            return this.commands(reqInfo);
          }

          var methodInterceptor = this.bind(reqInfo.method);

          if (methodInterceptor) {
            // InMemoryDbService intercepts this HTTP method.
            // if interceptor produced a response, return it.
            // else InMemoryDbService chose not to intercept; continue processing.
            var interceptorResponse = methodInterceptor(reqInfo);

            if (interceptorResponse) {
              return interceptorResponse;
            }

            ;
          }

          if (this.db[collectionName]) {
            // request is for a known collection of the InMemoryDbService
            return this.createResponse$(function () {
              return _this.collectionHandler(reqInfo);
            });
          }

          if (this.config.passThruUnknownUrl) {
            // unknown collection; pass request thru to a "real" backend.
            return this.getPassThruBackend().handle(req);
          } // 404 - can't handle this request


          resOptions = this.createErrorResponseOptions(url, _http_status_codes__WEBPACK_IMPORTED_MODULE_2__["STATUS"].NOT_FOUND, "Collection '" + collectionName + "' not found");
          return this.createResponse$(function () {
            return resOptions;
          });
        };
        /**
         * Add configured delay to response observable unless delay === 0
         */


        BackendService.prototype.addDelay = function (response) {
          var d = this.config.delay;
          return d === 0 ? response : Object(_delay_response__WEBPACK_IMPORTED_MODULE_3__["delayResponse"])(response, d || 500);
        };
        /**
         * Apply query/search parameters as a filter over the collection
         * This impl only supports RegExp queries on string properties of the collection
         * ANDs the conditions together
         */


        BackendService.prototype.applyQuery = function (collection, query) {
          // extract filtering conditions - {propertyName, RegExps) - from query/search parameters
          var conditions = [];
          var caseSensitive = this.config.caseSensitiveSearch ? undefined : 'i';
          query.forEach(function (value, name) {
            value.forEach(function (v) {
              return conditions.push({
                name: name,
                rx: new RegExp(decodeURI(v), caseSensitive)
              });
            });
          });
          var len = conditions.length;

          if (!len) {
            return collection;
          } // AND the RegExp conditions


          return collection.filter(function (row) {
            var ok = true;
            var i = len;

            while (ok && i) {
              i -= 1;
              var cond = conditions[i];
              ok = cond.rx.test(row[cond.name]);
            }

            return ok;
          });
        };
        /**
         * Get a method from the `InMemoryDbService` (if it exists), bound to that service
         */


        BackendService.prototype.bind = function (methodName) {
          var fn = this.inMemDbService[methodName];
          return fn ? fn.bind(this.inMemDbService) : undefined;
        };

        BackendService.prototype.bodify = function (data) {
          return this.config.dataEncapsulation ? {
            data: data
          } : data;
        };

        BackendService.prototype.clone = function (data) {
          return JSON.parse(JSON.stringify(data));
        };

        BackendService.prototype.collectionHandler = function (reqInfo) {
          // const req = reqInfo.req;
          var resOptions;

          switch (reqInfo.method) {
            case 'get':
              resOptions = this.get(reqInfo);
              break;

            case 'post':
              resOptions = this.post(reqInfo);
              break;

            case 'put':
              resOptions = this.put(reqInfo);
              break;

            case 'delete':
              resOptions = this["delete"](reqInfo);
              break;

            default:
              resOptions = this.createErrorResponseOptions(reqInfo.url, _http_status_codes__WEBPACK_IMPORTED_MODULE_2__["STATUS"].METHOD_NOT_ALLOWED, 'Method not allowed');
              break;
          } // If `inMemDbService.responseInterceptor` exists, let it morph the response options


          var interceptor = this.bind('responseInterceptor');
          return interceptor ? interceptor(resOptions, reqInfo) : resOptions;
        };
        /**
         * Commands reconfigure the in-memory web api service or extract information from it.
         * Commands ignore the latency delay and respond ASAP.
         *
         * When the last segment of the `apiBase` path is "commands",
         * the `collectionName` is the command.
         *
         * Example URLs:
         *   commands/resetdb (POST) // Reset the "database" to its original state
         *   commands/config (GET)   // Return this service's config object
         *   commands/config (POST)  // Update the config (e.g. the delay)
         *
         * Usage:
         *   http.post('commands/resetdb', undefined);
         *   http.get('commands/config');
         *   http.post('commands/config', '{"delay":1000}');
         */


        BackendService.prototype.commands = function (reqInfo) {
          var _this = this;

          var command = reqInfo.collectionName.toLowerCase();
          var method = reqInfo.method;
          var resOptions = {
            url: reqInfo.url
          };

          switch (command) {
            case 'resetdb':
              resOptions.status = _http_status_codes__WEBPACK_IMPORTED_MODULE_2__["STATUS"].NO_CONTENT;
              return this.resetDb(reqInfo).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["concatMap"])(function () {
                return _this.createResponse$(function () {
                  return resOptions;
                }, false
                /* no latency delay */
                );
              }));

            case 'config':
              if (method === 'get') {
                resOptions.status = _http_status_codes__WEBPACK_IMPORTED_MODULE_2__["STATUS"].OK;
                resOptions.body = this.clone(this.config); // any other HTTP method is assumed to be a config update
              } else {
                var body = this.getJsonBody(reqInfo.req);
                Object.assign(this.config, body);
                this.passThruBackend = undefined; // re-create when needed

                resOptions.status = _http_status_codes__WEBPACK_IMPORTED_MODULE_2__["STATUS"].NO_CONTENT;
              }

              break;

            default:
              resOptions = this.createErrorResponseOptions(reqInfo.url, _http_status_codes__WEBPACK_IMPORTED_MODULE_2__["STATUS"].INTERNAL_SERVER_ERROR, "Unknown command \"" + command + "\"");
          }

          return this.createResponse$(function () {
            return resOptions;
          }, false
          /* no latency delay */
          );
        };

        BackendService.prototype.createErrorResponseOptions = function (url, status, message) {
          return {
            body: {
              error: "" + message
            },
            url: url,
            headers: this.createHeaders({
              'Content-Type': 'application/json'
            }),
            status: status
          };
        };
        /**
         * Create a cold response Observable from a factory for ResponseOptions
         * @param resOptionsFactory - creates ResponseOptions when observable is subscribed
         * @param withDelay - if true (default), add simulated latency delay from configuration
         */


        BackendService.prototype.createResponse$ = function (resOptionsFactory, withDelay) {
          if (withDelay === void 0) {
            withDelay = true;
          }

          var resOptions$ = this.createResponseOptions$(resOptionsFactory);
          var resp$ = this.createResponse$fromResponseOptions$(resOptions$);
          return withDelay ? this.addDelay(resp$) : resp$;
        };
        /**
         * Create a cold Observable of ResponseOptions.
         * @param resOptionsFactory - creates ResponseOptions when observable is subscribed
         */


        BackendService.prototype.createResponseOptions$ = function (resOptionsFactory) {
          var _this = this;

          return new rxjs__WEBPACK_IMPORTED_MODULE_0__["Observable"](function (responseObserver) {
            var resOptions;

            try {
              resOptions = resOptionsFactory();
            } catch (error) {
              var err = error.message || error;
              resOptions = _this.createErrorResponseOptions('', _http_status_codes__WEBPACK_IMPORTED_MODULE_2__["STATUS"].INTERNAL_SERVER_ERROR, "" + err);
            }

            var status = resOptions.status;

            try {
              resOptions.statusText = Object(_http_status_codes__WEBPACK_IMPORTED_MODULE_2__["getStatusText"])(status);
            } catch (e) {
              /* ignore failure */
            }

            if (Object(_http_status_codes__WEBPACK_IMPORTED_MODULE_2__["isSuccess"])(status)) {
              responseObserver.next(resOptions);
              responseObserver.complete();
            } else {
              responseObserver.error(resOptions);
            }

            return function () {}; // unsubscribe function
          });
        };

        BackendService.prototype["delete"] = function (_a) {
          var collection = _a.collection,
              collectionName = _a.collectionName,
              headers = _a.headers,
              id = _a.id,
              url = _a.url; // tslint:disable-next-line:triple-equals

          if (id == undefined) {
            return this.createErrorResponseOptions(url, _http_status_codes__WEBPACK_IMPORTED_MODULE_2__["STATUS"].NOT_FOUND, "Missing \"" + collectionName + "\" id");
          }

          var exists = this.removeById(collection, id);
          return {
            headers: headers,
            status: exists || !this.config.delete404 ? _http_status_codes__WEBPACK_IMPORTED_MODULE_2__["STATUS"].NO_CONTENT : _http_status_codes__WEBPACK_IMPORTED_MODULE_2__["STATUS"].NOT_FOUND
          };
        };
        /**
         * Find first instance of item in collection by `item.id`
         * @param collection
         * @param id
         */


        BackendService.prototype.findById = function (collection, id) {
          return collection.find(function (item) {
            return item.id === id;
          });
        };
        /**
         * Generate the next available id for item in this collection
         * Use method from `inMemDbService` if it exists and returns a value,
         * else delegates to `genIdDefault`.
         * @param collection - collection of items with `id` key property
         */


        BackendService.prototype.genId = function (collection, collectionName) {
          var genId = this.bind('genId');

          if (genId) {
            var id = genId(collection, collectionName); // tslint:disable-next-line:triple-equals

            if (id != undefined) {
              return id;
            }
          }

          return this.genIdDefault(collection, collectionName);
        };
        /**
         * Default generator of the next available id for item in this collection
         * This default implementation works only for numeric ids.
         * @param collection - collection of items with `id` key property
         * @param collectionName - name of the collection
         */


        BackendService.prototype.genIdDefault = function (collection, collectionName) {
          if (!this.isCollectionIdNumeric(collection, collectionName)) {
            throw new Error("Collection '" + collectionName + "' id type is non-numeric or unknown. Can only generate numeric ids.");
          }

          var maxId = 0;
          collection.reduce(function (prev, item) {
            maxId = Math.max(maxId, typeof item.id === 'number' ? item.id : maxId);
          }, undefined);
          return maxId + 1;
        };

        BackendService.prototype.get = function (_a) {
          var collection = _a.collection,
              collectionName = _a.collectionName,
              headers = _a.headers,
              id = _a.id,
              query = _a.query,
              url = _a.url;
          var data = collection; // tslint:disable-next-line:triple-equals

          if (id != undefined && id !== '') {
            data = this.findById(collection, id);
          } else if (query) {
            data = this.applyQuery(collection, query);
          }

          if (!data) {
            return this.createErrorResponseOptions(url, _http_status_codes__WEBPACK_IMPORTED_MODULE_2__["STATUS"].NOT_FOUND, "'" + collectionName + "' with id='" + id + "' not found");
          }

          return {
            body: this.bodify(this.clone(data)),
            headers: headers,
            status: _http_status_codes__WEBPACK_IMPORTED_MODULE_2__["STATUS"].OK
          };
        };
        /**
         * Get location info from a url, even on server where `document` is not defined
         */


        BackendService.prototype.getLocation = function (url) {
          if (!url.startsWith('http')) {
            // get the document iff running in browser
            var doc = typeof document === 'undefined' ? undefined : document; // add host info to url before parsing.  Use a fake host when not in browser.

            var base = doc ? doc.location.protocol + '//' + doc.location.host : 'http://fake';
            url = url.startsWith('/') ? base + url : base + '/' + url;
          }

          return Object(_interfaces__WEBPACK_IMPORTED_MODULE_4__["parseUri"])(url);
        };

        ;
        /**
         * get or create the function that passes unhandled requests
         * through to the "real" backend.
         */

        BackendService.prototype.getPassThruBackend = function () {
          return this.passThruBackend ? this.passThruBackend : this.passThruBackend = this.createPassThruBackend();
        };
        /**
         * Get utility methods from this service instance.
         * Useful within an HTTP method override
         */


        BackendService.prototype.getRequestInfoUtils = function () {
          var _this = this;

          return {
            createResponse$: this.createResponse$.bind(this),
            findById: this.findById.bind(this),
            isCollectionIdNumeric: this.isCollectionIdNumeric.bind(this),
            getConfig: function getConfig() {
              return _this.config;
            },
            getDb: function getDb() {
              return _this.db;
            },
            getJsonBody: this.getJsonBody.bind(this),
            getLocation: this.getLocation.bind(this),
            getPassThruBackend: this.getPassThruBackend.bind(this),
            parseRequestUrl: this.parseRequestUrl.bind(this)
          };
        };

        BackendService.prototype.indexOf = function (collection, id) {
          return collection.findIndex(function (item) {
            return item.id === id;
          });
        };
        /** Parse the id as a number. Return original value if not a number. */


        BackendService.prototype.parseId = function (collection, collectionName, id) {
          if (!this.isCollectionIdNumeric(collection, collectionName)) {
            // Can't confirm that `id` is a numeric type; don't parse as a number
            // or else `'42'` -> `42` and _get by id_ fails.
            return id;
          }

          var idNum = parseFloat(id);
          return isNaN(idNum) ? id : idNum;
        };
        /**
         * return true if can determine that the collection's `item.id` is a number
         * This implementation can't tell if the collection is empty so it assumes NO
         * */


        BackendService.prototype.isCollectionIdNumeric = function (collection, collectionName) {
          // collectionName not used now but override might maintain collection type information
          // so that it could know the type of the `id` even when the collection is empty.
          return !!(collection && collection[0]) && typeof collection[0].id === 'number';
        };
        /**
         * Parses the request URL into a `ParsedRequestUrl` object.
         * Parsing depends upon certain values of `config`: `apiBase`, `host`, and `urlRoot`.
         *
         * Configuring the `apiBase` yields the most interesting changes to `parseRequestUrl` behavior:
         *   When apiBase=undefined and url='http://localhost/api/collection/42'
         *     {base: 'api/', collectionName: 'collection', id: '42', ...}
         *   When apiBase='some/api/root/' and url='http://localhost/some/api/root/collection'
         *     {base: 'some/api/root/', collectionName: 'collection', id: undefined, ...}
         *   When apiBase='/' and url='http://localhost/collection'
         *     {base: '/', collectionName: 'collection', id: undefined, ...}
         *
         * The actual api base segment values are ignored. Only the number of segments matters.
         * The following api base strings are considered identical: 'a/b' ~ 'some/api/' ~ `two/segments'
         *
         * To replace this default method, assign your alternative to your InMemDbService['parseRequestUrl']
         */


        BackendService.prototype.parseRequestUrl = function (url) {
          try {
            var loc = this.getLocation(url);
            var drop = this.config.rootPath.length;
            var urlRoot = '';

            if (loc.host !== this.config.host) {
              // url for a server on a different host!
              // assume it's collection is actually here too.
              drop = 1; // the leading slash

              urlRoot = loc.protocol + '//' + loc.host + '/';
            }

            var path = loc.path.substring(drop);
            var pathSegments = path.split('/');
            var segmentIx = 0; // apiBase: the front part of the path devoted to getting to the api route
            // Assumes first path segment if no config.apiBase
            // else ignores as many path segments as are in config.apiBase
            // Does NOT care what the api base chars actually are.

            var apiBase = void 0; // tslint:disable-next-line:triple-equals

            if (this.config.apiBase == undefined) {
              apiBase = pathSegments[segmentIx++];
            } else {
              apiBase = Object(_interfaces__WEBPACK_IMPORTED_MODULE_4__["removeTrailingSlash"])(this.config.apiBase.trim());

              if (apiBase) {
                segmentIx = apiBase.split('/').length;
              } else {
                segmentIx = 0; // no api base at all; unwise but allowed.
              }
            }

            apiBase += '/';
            var collectionName = pathSegments[segmentIx++]; // ignore anything after a '.' (e.g.,the "json" in "customers.json")

            collectionName = collectionName && collectionName.split('.')[0];
            var id = pathSegments[segmentIx++];
            var query = this.createQueryMap(loc.query);
            var resourceUrl = urlRoot + apiBase + collectionName + '/';
            return {
              apiBase: apiBase,
              collectionName: collectionName,
              id: id,
              query: query,
              resourceUrl: resourceUrl
            };
          } catch (err) {
            var msg = "unable to parse url '" + url + "'; original error: " + err.message;
            throw new Error(msg);
          }
        }; // Create entity
        // Can update an existing entity too if post409 is false.


        BackendService.prototype.post = function (_a) {
          var collection = _a.collection,
              collectionName = _a.collectionName,
              headers = _a.headers,
              id = _a.id,
              req = _a.req,
              resourceUrl = _a.resourceUrl,
              url = _a.url;
          var item = this.clone(this.getJsonBody(req)); // tslint:disable-next-line:triple-equals

          if (item.id == undefined) {
            try {
              item.id = id || this.genId(collection, collectionName);
            } catch (err) {
              var emsg = err.message || '';

              if (/id type is non-numeric/.test(emsg)) {
                return this.createErrorResponseOptions(url, _http_status_codes__WEBPACK_IMPORTED_MODULE_2__["STATUS"].UNPROCESSABLE_ENTRY, emsg);
              } else {
                console.error(err);
                return this.createErrorResponseOptions(url, _http_status_codes__WEBPACK_IMPORTED_MODULE_2__["STATUS"].INTERNAL_SERVER_ERROR, "Failed to generate new id for '" + collectionName + "'");
              }
            }
          }

          if (id && id !== item.id) {
            return this.createErrorResponseOptions(url, _http_status_codes__WEBPACK_IMPORTED_MODULE_2__["STATUS"].BAD_REQUEST, "Request id does not match item.id");
          } else {
            id = item.id;
          }

          var existingIx = this.indexOf(collection, id);
          var body = this.bodify(item);

          if (existingIx === -1) {
            collection.push(item);
            headers.set('Location', resourceUrl + '/' + id);
            return {
              headers: headers,
              body: body,
              status: _http_status_codes__WEBPACK_IMPORTED_MODULE_2__["STATUS"].CREATED
            };
          } else if (this.config.post409) {
            return this.createErrorResponseOptions(url, _http_status_codes__WEBPACK_IMPORTED_MODULE_2__["STATUS"].CONFLICT, "'" + collectionName + "' item with id='" + id + " exists and may not be updated with POST; use PUT instead.");
          } else {
            collection[existingIx] = item;
            return this.config.post204 ? {
              headers: headers,
              status: _http_status_codes__WEBPACK_IMPORTED_MODULE_2__["STATUS"].NO_CONTENT
            } : // successful; no content
            {
              headers: headers,
              body: body,
              status: _http_status_codes__WEBPACK_IMPORTED_MODULE_2__["STATUS"].OK
            }; // successful; return entity
          }
        }; // Update existing entity
        // Can create an entity too if put404 is false.


        BackendService.prototype.put = function (_a) {
          var collection = _a.collection,
              collectionName = _a.collectionName,
              headers = _a.headers,
              id = _a.id,
              req = _a.req,
              url = _a.url;
          var item = this.clone(this.getJsonBody(req)); // tslint:disable-next-line:triple-equals

          if (item.id == undefined) {
            return this.createErrorResponseOptions(url, _http_status_codes__WEBPACK_IMPORTED_MODULE_2__["STATUS"].NOT_FOUND, "Missing '" + collectionName + "' id");
          }

          if (id && id !== item.id) {
            return this.createErrorResponseOptions(url, _http_status_codes__WEBPACK_IMPORTED_MODULE_2__["STATUS"].BAD_REQUEST, "Request for '" + collectionName + "' id does not match item.id");
          } else {
            id = item.id;
          }

          var existingIx = this.indexOf(collection, id);
          var body = this.bodify(item);

          if (existingIx > -1) {
            collection[existingIx] = item;
            return this.config.put204 ? {
              headers: headers,
              status: _http_status_codes__WEBPACK_IMPORTED_MODULE_2__["STATUS"].NO_CONTENT
            } : // successful; no content
            {
              headers: headers,
              body: body,
              status: _http_status_codes__WEBPACK_IMPORTED_MODULE_2__["STATUS"].OK
            }; // successful; return entity
          } else if (this.config.put404) {
            // item to update not found; use POST to create new item for this id.
            return this.createErrorResponseOptions(url, _http_status_codes__WEBPACK_IMPORTED_MODULE_2__["STATUS"].NOT_FOUND, "'" + collectionName + "' item with id='" + id + " not found and may not be created with PUT; use POST instead.");
          } else {
            // create new item for id not found
            collection.push(item);
            return {
              headers: headers,
              body: body,
              status: _http_status_codes__WEBPACK_IMPORTED_MODULE_2__["STATUS"].CREATED
            };
          }
        };

        BackendService.prototype.removeById = function (collection, id) {
          var ix = this.indexOf(collection, id);

          if (ix > -1) {
            collection.splice(ix, 1);
            return true;
          }

          return false;
        };
        /**
         * Tell your in-mem "database" to reset.
         * returns Observable of the database because resetting it could be async
         */


        BackendService.prototype.resetDb = function (reqInfo) {
          var _this = this;

          this.dbReadySubject.next(false);
          var db = this.inMemDbService.createDb(reqInfo);
          var db$ = db instanceof rxjs__WEBPACK_IMPORTED_MODULE_0__["Observable"] ? db : typeof db.then === 'function' ? Object(rxjs__WEBPACK_IMPORTED_MODULE_0__["from"])(db) : Object(rxjs__WEBPACK_IMPORTED_MODULE_0__["of"])(db);
          db$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["first"])()).subscribe(function (d) {
            _this.db = d;

            _this.dbReadySubject.next(true);
          });
          return this.dbReady;
        };

        return BackendService;
      }(); //# sourceMappingURL=backend.service.js.map

      /***/

    },

    /***/
    "8XYe": function XYe(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "_MatSlideToggleRequiredValidatorModuleNgFactory", function () {
        return _MatSlideToggleRequiredValidatorModuleNgFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatSlideToggleModuleNgFactory", function () {
        return MatSlideToggleModuleNgFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "RenderType_MatSlideToggle", function () {
        return RenderType_MatSlideToggle;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "View_MatSlideToggle_0", function () {
        return View_MatSlideToggle_0;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "View_MatSlideToggle_Host_0", function () {
        return View_MatSlideToggle_Host_0;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatSlideToggleNgFactory", function () {
        return MatSlideToggleNgFactory;
      });
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /* harmony import */


      var _angular_material_slide_toggle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/material/slide-toggle */
      "jMqV");
      /* harmony import */


      var _angular_cdk_observers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! @angular/cdk/observers */
      "9b/N");
      /* harmony import */


      var _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! @angular/cdk/bidi */
      "9gLZ");
      /* harmony import */


      var _angular_material_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! @angular/material/core */
      "UhP/");
      /* harmony import */


      var _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! @angular/cdk/a11y */
      "YEUz");
      /* harmony import */


      var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
      /*! @angular/common */
      "SVse");
      /* harmony import */


      var _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
      /*! @angular/cdk/platform */
      "SCoL");
      /* harmony import */


      var _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
      /*! @angular/platform-browser/animations */
      "omvX");
      /* harmony import */


      var _angular_forms__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
      /*! @angular/forms */
      "s7LF");
      /**
       * @fileoverview This file was generated by the Angular template compiler. Do not edit.
       *
       * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes,extraRequire}
       * tslint:disable
       */


      var _MatSlideToggleRequiredValidatorModuleNgFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵcmf"](_angular_material_slide_toggle__WEBPACK_IMPORTED_MODULE_1__["_MatSlideToggleRequiredValidatorModule"], [], function (_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmod"]([_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](512, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵCodegenComponentFactoryResolver"], [[8, []], [3, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"]], _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModuleRef"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_material_slide_toggle__WEBPACK_IMPORTED_MODULE_1__["_MatSlideToggleRequiredValidatorModule"], _angular_material_slide_toggle__WEBPACK_IMPORTED_MODULE_1__["_MatSlideToggleRequiredValidatorModule"], [])]);
      });

      var MatSlideToggleModuleNgFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵcmf"](_angular_material_slide_toggle__WEBPACK_IMPORTED_MODULE_1__["MatSlideToggleModule"], [], function (_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmod"]([_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](512, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵCodegenComponentFactoryResolver"], [[8, []], [3, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"]], _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModuleRef"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](4608, _angular_cdk_observers__WEBPACK_IMPORTED_MODULE_2__["MutationObserverFactory"], _angular_cdk_observers__WEBPACK_IMPORTED_MODULE_2__["MutationObserverFactory"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_material_slide_toggle__WEBPACK_IMPORTED_MODULE_1__["_MatSlideToggleRequiredValidatorModule"], _angular_material_slide_toggle__WEBPACK_IMPORTED_MODULE_1__["_MatSlideToggleRequiredValidatorModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_3__["BidiModule"], _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_3__["BidiModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_material_core__WEBPACK_IMPORTED_MODULE_4__["MatCommonModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_4__["MatCommonModule"], [_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_5__["HighContrastModeDetector"], [2, _angular_material_core__WEBPACK_IMPORTED_MODULE_4__["MATERIAL_SANITY_CHECKS"]], _angular_common__WEBPACK_IMPORTED_MODULE_6__["DOCUMENT"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_7__["PlatformModule"], _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_7__["PlatformModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_material_core__WEBPACK_IMPORTED_MODULE_4__["MatRippleModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_4__["MatRippleModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_cdk_observers__WEBPACK_IMPORTED_MODULE_2__["ObserversModule"], _angular_cdk_observers__WEBPACK_IMPORTED_MODULE_2__["ObserversModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_material_slide_toggle__WEBPACK_IMPORTED_MODULE_1__["MatSlideToggleModule"], _angular_material_slide_toggle__WEBPACK_IMPORTED_MODULE_1__["MatSlideToggleModule"], [])]);
      });

      var styles_MatSlideToggle = [".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"];

      var RenderType_MatSlideToggle = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵcrt"]({
        encapsulation: 2,
        styles: styles_MatSlideToggle,
        data: {}
      });

      function View_MatSlideToggle_0(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](2, [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵqud"](671088640, 1, {
          _thumbEl: 0
        }), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵqud"](671088640, 2, {
          _thumbBarEl: 0
        }), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵqud"](671088640, 3, {
          _inputElement: 0
        }), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](3, 0, [["label", 1]], null, 13, "label", [["class", "mat-slide-toggle-label"]], [[1, "for", 0]], null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](4, 0, [[2, 0], ["toggleBar", 1]], null, 7, "div", [["class", "mat-slide-toggle-bar"]], [[2, "mat-slide-toggle-bar-no-side-margin", null]], null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](5, 0, [[3, 0], ["input", 1]], null, 0, "input", [["class", "mat-slide-toggle-input cdk-visually-hidden"], ["role", "switch"], ["type", "checkbox"]], [[8, "id", 0], [8, "required", 0], [8, "tabIndex", 0], [8, "checked", 0], [8, "disabled", 0], [1, "name", 0], [1, "aria-checked", 0], [1, "aria-label", 0], [1, "aria-labelledby", 0]], [[null, "change"], [null, "click"]], function (_v, en, $event) {
          var ad = true;
          var _co = _v.component;

          if ("change" === en) {
            var pd_0 = _co._onChangeEvent($event) !== false;
            ad = pd_0 && ad;
          }

          if ("click" === en) {
            var pd_1 = _co._onInputClick($event) !== false;
            ad = pd_1 && ad;
          }

          return ad;
        }, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](6, 0, [[1, 0], ["thumbContainer", 1]], null, 5, "div", [["class", "mat-slide-toggle-thumb-container"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](7, 0, null, null, 0, "div", [["class", "mat-slide-toggle-thumb"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](8, 0, null, null, 3, "div", [["class", "mat-slide-toggle-ripple mat-focus-indicator mat-ripple"], ["mat-ripple", ""]], [[2, "mat-ripple-unbounded", null]], null, null, null, null)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](9, 212992, null, 0, _angular_material_core__WEBPACK_IMPORTED_MODULE_4__["MatRipple"], [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"], _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_7__["Platform"], [2, _angular_material_core__WEBPACK_IMPORTED_MODULE_4__["MAT_RIPPLE_GLOBAL_OPTIONS"]], [2, _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_8__["ANIMATION_MODULE_TYPE"]]], {
          centered: [0, "centered"],
          radius: [1, "radius"],
          animation: [2, "animation"],
          disabled: [3, "disabled"],
          trigger: [4, "trigger"]
        }, null), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵpod"](10, {
          enterDuration: 0
        }), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](11, 0, null, null, 0, "div", [["class", "mat-ripple-element mat-slide-toggle-persistent-ripple"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](12, 0, [["labelContent", 1]], null, 4, "span", [["class", "mat-slide-toggle-content"]], null, [[null, "cdkObserveContent"]], function (_v, en, $event) {
          var ad = true;
          var _co = _v.component;

          if ("cdkObserveContent" === en) {
            var pd_0 = _co._onLabelTextChange() !== false;
            ad = pd_0 && ad;
          }

          return ad;
        }, null, null)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](13, 1196032, null, 0, _angular_cdk_observers__WEBPACK_IMPORTED_MODULE_2__["CdkObserveContent"], [_angular_cdk_observers__WEBPACK_IMPORTED_MODULE_2__["ContentObserver"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"]], null, {
          event: "cdkObserveContent"
        }), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](14, 0, null, null, 1, "span", [["style", "display:none"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵted"](-1, null, ["\xA0"])), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵncd"](null, 0)], function (_ck, _v) {
          var _co = _v.component;
          var currVal_12 = true;
          var currVal_13 = 20;

          var currVal_14 = _ck(_v, 10, 0, 150);

          var currVal_15 = _co.disableRipple || _co.disabled;

          var currVal_16 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 3);

          _ck(_v, 9, 0, currVal_12, currVal_13, currVal_14, currVal_15, currVal_16);
        }, function (_ck, _v) {
          var _co = _v.component;
          var currVal_0 = _co.inputId;

          _ck(_v, 3, 0, currVal_0);

          var currVal_1 = !_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 12).textContent || !_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 12).textContent.trim();

          _ck(_v, 4, 0, currVal_1);

          var currVal_2 = _co.inputId;
          var currVal_3 = _co.required;
          var currVal_4 = _co.tabIndex;
          var currVal_5 = _co.checked;
          var currVal_6 = _co.disabled;
          var currVal_7 = _co.name;

          var currVal_8 = _co.checked.toString();

          var currVal_9 = _co.ariaLabel;
          var currVal_10 = _co.ariaLabelledby;

          _ck(_v, 5, 0, currVal_2, currVal_3, currVal_4, currVal_5, currVal_6, currVal_7, currVal_8, currVal_9, currVal_10);

          var currVal_11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 9).unbounded;

          _ck(_v, 8, 0, currVal_11);
        });
      }

      function View_MatSlideToggle_Host_0(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](0, 0, null, null, 2, "mat-slide-toggle", [["class", "mat-slide-toggle"]], [[8, "id", 0], [1, "tabindex", 0], [1, "aria-label", 0], [1, "aria-labelledby", 0], [2, "mat-checked", null], [2, "mat-disabled", null], [2, "mat-slide-toggle-label-before", null], [2, "_mat-animation-noopable", null]], null, null, View_MatSlideToggle_0, RenderType_MatSlideToggle)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵprd"](5120, null, _angular_forms__WEBPACK_IMPORTED_MODULE_9__["NG_VALUE_ACCESSOR"], function (p0_0) {
          return [p0_0];
        }, [_angular_material_slide_toggle__WEBPACK_IMPORTED_MODULE_1__["MatSlideToggle"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](2, 1228800, null, 0, _angular_material_slide_toggle__WEBPACK_IMPORTED_MODULE_1__["MatSlideToggle"], [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"], _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_5__["FocusMonitor"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"], [8, null], _angular_material_slide_toggle__WEBPACK_IMPORTED_MODULE_1__["MAT_SLIDE_TOGGLE_DEFAULT_OPTIONS"], [2, _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_8__["ANIMATION_MODULE_TYPE"]]], null, null)], null, function (_ck, _v) {
          var currVal_0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 2).id;

          var currVal_1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 2).disabled ? null : -1;
          var currVal_2 = null;
          var currVal_3 = null;

          var currVal_4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 2).checked;

          var currVal_5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 2).disabled;

          var currVal_6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 2).labelPosition == "before";
          var currVal_7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 2)._animationMode === "NoopAnimations";

          _ck(_v, 0, 0, currVal_0, currVal_1, currVal_2, currVal_3, currVal_4, currVal_5, currVal_6, currVal_7);
        });
      }

      var MatSlideToggleNgFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵccf"]("mat-slide-toggle", _angular_material_slide_toggle__WEBPACK_IMPORTED_MODULE_1__["MatSlideToggle"], View_MatSlideToggle_Host_0, {
        disabled: "disabled",
        disableRipple: "disableRipple",
        color: "color",
        tabIndex: "tabIndex",
        name: "name",
        id: "id",
        labelPosition: "labelPosition",
        ariaLabel: "aria-label",
        ariaLabelledby: "aria-labelledby",
        required: "required",
        checked: "checked"
      }, {
        change: "change",
        toggleChange: "toggleChange"
      }, ["*"]);
      /***/

    },

    /***/
    "8Y7J": function Y7J(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ANALYZE_FOR_ENTRY_COMPONENTS", function () {
        return ANALYZE_FOR_ENTRY_COMPONENTS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "APP_BOOTSTRAP_LISTENER", function () {
        return APP_BOOTSTRAP_LISTENER;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "APP_ID", function () {
        return APP_ID;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "APP_INITIALIZER", function () {
        return APP_INITIALIZER;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ApplicationInitStatus", function () {
        return ApplicationInitStatus;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ApplicationModule", function () {
        return ApplicationModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ApplicationRef", function () {
        return ApplicationRef;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Attribute", function () {
        return Attribute;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "COMPILER_OPTIONS", function () {
        return COMPILER_OPTIONS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CUSTOM_ELEMENTS_SCHEMA", function () {
        return CUSTOM_ELEMENTS_SCHEMA;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ChangeDetectionStrategy", function () {
        return ChangeDetectionStrategy;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ChangeDetectorRef", function () {
        return ChangeDetectorRef;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Compiler", function () {
        return Compiler;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CompilerFactory", function () {
        return CompilerFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Component", function () {
        return Component;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ComponentFactory", function () {
        return ComponentFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ComponentFactoryResolver", function () {
        return ComponentFactoryResolver;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ComponentRef", function () {
        return ComponentRef;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ContentChild", function () {
        return ContentChild;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ContentChildren", function () {
        return ContentChildren;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "DEFAULT_CURRENCY_CODE", function () {
        return DEFAULT_CURRENCY_CODE;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "DebugElement", function () {
        return DebugElement;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "DebugEventListener", function () {
        return DebugEventListener;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "DebugNode", function () {
        return DebugNode;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "DefaultIterableDiffer", function () {
        return DefaultIterableDiffer;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Directive", function () {
        return Directive;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ElementRef", function () {
        return ElementRef;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "EmbeddedViewRef", function () {
        return EmbeddedViewRef;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ErrorHandler", function () {
        return ErrorHandler;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "EventEmitter", function () {
        return EventEmitter;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Host", function () {
        return Host;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "HostBinding", function () {
        return HostBinding;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "HostListener", function () {
        return HostListener;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "INJECTOR", function () {
        return INJECTOR;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Inject", function () {
        return Inject;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "InjectFlags", function () {
        return InjectFlags;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Injectable", function () {
        return Injectable;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "InjectionToken", function () {
        return InjectionToken;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Injector", function () {
        return Injector;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Input", function () {
        return Input;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "IterableDiffers", function () {
        return IterableDiffers;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "KeyValueDiffers", function () {
        return KeyValueDiffers;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "LOCALE_ID", function () {
        return LOCALE_ID$1;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MissingTranslationStrategy", function () {
        return MissingTranslationStrategy;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ModuleWithComponentFactories", function () {
        return ModuleWithComponentFactories;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NO_ERRORS_SCHEMA", function () {
        return NO_ERRORS_SCHEMA;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NgModule", function () {
        return NgModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NgModuleFactory", function () {
        return NgModuleFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NgModuleFactoryLoader", function () {
        return NgModuleFactoryLoader;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NgModuleRef", function () {
        return NgModuleRef;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NgProbeToken", function () {
        return NgProbeToken;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NgZone", function () {
        return NgZone;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Optional", function () {
        return Optional;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Output", function () {
        return Output;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "PACKAGE_ROOT_URL", function () {
        return PACKAGE_ROOT_URL;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "PLATFORM_ID", function () {
        return PLATFORM_ID;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "PLATFORM_INITIALIZER", function () {
        return PLATFORM_INITIALIZER;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Pipe", function () {
        return Pipe;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "PlatformRef", function () {
        return PlatformRef;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Query", function () {
        return Query;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "QueryList", function () {
        return QueryList;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ReflectiveInjector", function () {
        return ReflectiveInjector;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ReflectiveKey", function () {
        return ReflectiveKey;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Renderer2", function () {
        return Renderer2;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "RendererFactory2", function () {
        return RendererFactory2;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "RendererStyleFlags2", function () {
        return RendererStyleFlags2;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ResolvedReflectiveFactory", function () {
        return ResolvedReflectiveFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Sanitizer", function () {
        return Sanitizer;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "SecurityContext", function () {
        return SecurityContext;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Self", function () {
        return Self;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "SimpleChange", function () {
        return SimpleChange;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "SkipSelf", function () {
        return SkipSelf;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "SystemJsNgModuleLoader", function () {
        return SystemJsNgModuleLoader;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "SystemJsNgModuleLoaderConfig", function () {
        return SystemJsNgModuleLoaderConfig;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TRANSLATIONS", function () {
        return TRANSLATIONS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TRANSLATIONS_FORMAT", function () {
        return TRANSLATIONS_FORMAT;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TemplateRef", function () {
        return TemplateRef;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Testability", function () {
        return Testability;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TestabilityRegistry", function () {
        return TestabilityRegistry;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Type", function () {
        return Type;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "VERSION", function () {
        return VERSION;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Version", function () {
        return Version;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ViewChild", function () {
        return ViewChild;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ViewChildren", function () {
        return ViewChildren;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ViewContainerRef", function () {
        return ViewContainerRef;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ViewEncapsulation", function () {
        return ViewEncapsulation$1;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ViewRef", function () {
        return ViewRef$1;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "WrappedValue", function () {
        return WrappedValue;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "asNativeElements", function () {
        return asNativeElements;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "assertPlatform", function () {
        return assertPlatform;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "createPlatform", function () {
        return createPlatform;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "createPlatformFactory", function () {
        return createPlatformFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "defineInjectable", function () {
        return defineInjectable;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "destroyPlatform", function () {
        return destroyPlatform;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "enableProdMode", function () {
        return enableProdMode;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "forwardRef", function () {
        return forwardRef;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "getDebugNode", function () {
        return getDebugNode$1;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "getModuleFactory", function () {
        return getModuleFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "getPlatform", function () {
        return getPlatform;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "inject", function () {
        return inject;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "isDevMode", function () {
        return isDevMode;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "platformCore", function () {
        return platformCore;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "resolveForwardRef", function () {
        return resolveForwardRef;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "setTestabilityGetter", function () {
        return setTestabilityGetter;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵ0", function () {
        return ɵ0;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵ1", function () {
        return ɵ1;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵALLOW_MULTIPLE_PLATFORMS", function () {
        return ALLOW_MULTIPLE_PLATFORMS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵAPP_ID_RANDOM_PROVIDER", function () {
        return APP_ID_RANDOM_PROVIDER;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵChangeDetectorStatus", function () {
        return ChangeDetectorStatus;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵCodegenComponentFactoryResolver", function () {
        return CodegenComponentFactoryResolver;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵCompiler_compileModuleAndAllComponentsAsync__POST_R3__", function () {
        return Compiler_compileModuleAndAllComponentsAsync__POST_R3__;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵCompiler_compileModuleAndAllComponentsSync__POST_R3__", function () {
        return Compiler_compileModuleAndAllComponentsSync__POST_R3__;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵCompiler_compileModuleAsync__POST_R3__", function () {
        return Compiler_compileModuleAsync__POST_R3__;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵCompiler_compileModuleSync__POST_R3__", function () {
        return Compiler_compileModuleSync__POST_R3__;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵComponentFactory", function () {
        return ComponentFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵConsole", function () {
        return Console;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵDEFAULT_LOCALE_ID", function () {
        return DEFAULT_LOCALE_ID;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵEMPTY_ARRAY", function () {
        return EMPTY_ARRAY$4;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵEMPTY_MAP", function () {
        return EMPTY_MAP;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵINJECTOR_IMPL__POST_R3__", function () {
        return INJECTOR_IMPL__POST_R3__;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵINJECTOR_SCOPE", function () {
        return INJECTOR_SCOPE;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵLifecycleHooksFeature", function () {
        return LifecycleHooksFeature;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵLocaleDataIndex", function () {
        return LocaleDataIndex;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵNG_COMP_DEF", function () {
        return NG_COMP_DEF;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵNG_DIR_DEF", function () {
        return NG_DIR_DEF;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵNG_ELEMENT_ID", function () {
        return NG_ELEMENT_ID;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵNG_INJ_DEF", function () {
        return NG_INJ_DEF;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵNG_MOD_DEF", function () {
        return NG_MOD_DEF;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵNG_PIPE_DEF", function () {
        return NG_PIPE_DEF;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵNG_PROV_DEF", function () {
        return NG_PROV_DEF;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵNOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR", function () {
        return NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵNO_CHANGE", function () {
        return NO_CHANGE;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵNgModuleFactory", function () {
        return NgModuleFactory$1;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵNoopNgZone", function () {
        return NoopNgZone;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵReflectionCapabilities", function () {
        return ReflectionCapabilities;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵRender3ComponentFactory", function () {
        return ComponentFactory$1;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵRender3ComponentRef", function () {
        return ComponentRef$1;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵRender3NgModuleRef", function () {
        return NgModuleRef$1;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵSWITCH_CHANGE_DETECTOR_REF_FACTORY__POST_R3__", function () {
        return SWITCH_CHANGE_DETECTOR_REF_FACTORY__POST_R3__;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵSWITCH_COMPILE_COMPONENT__POST_R3__", function () {
        return SWITCH_COMPILE_COMPONENT__POST_R3__;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵSWITCH_COMPILE_DIRECTIVE__POST_R3__", function () {
        return SWITCH_COMPILE_DIRECTIVE__POST_R3__;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵSWITCH_COMPILE_INJECTABLE__POST_R3__", function () {
        return SWITCH_COMPILE_INJECTABLE__POST_R3__;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵSWITCH_COMPILE_NGMODULE__POST_R3__", function () {
        return SWITCH_COMPILE_NGMODULE__POST_R3__;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵSWITCH_COMPILE_PIPE__POST_R3__", function () {
        return SWITCH_COMPILE_PIPE__POST_R3__;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵSWITCH_ELEMENT_REF_FACTORY__POST_R3__", function () {
        return SWITCH_ELEMENT_REF_FACTORY__POST_R3__;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵSWITCH_IVY_ENABLED__POST_R3__", function () {
        return SWITCH_IVY_ENABLED__POST_R3__;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵSWITCH_RENDERER2_FACTORY__POST_R3__", function () {
        return SWITCH_RENDERER2_FACTORY__POST_R3__;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵSWITCH_TEMPLATE_REF_FACTORY__POST_R3__", function () {
        return SWITCH_TEMPLATE_REF_FACTORY__POST_R3__;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵSWITCH_VIEW_CONTAINER_REF_FACTORY__POST_R3__", function () {
        return SWITCH_VIEW_CONTAINER_REF_FACTORY__POST_R3__;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵ_sanitizeHtml", function () {
        return _sanitizeHtml;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵ_sanitizeUrl", function () {
        return _sanitizeUrl;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵallowSanitizationBypassAndThrow", function () {
        return allowSanitizationBypassAndThrow;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵand", function () {
        return anchorDef;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_a", function () {
        return isForwardRef;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_b", function () {
        return injectInjectorOnly;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_ba", function () {
        return getLView;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bb", function () {
        return getBindingRoot;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bc", function () {
        return nextContextImpl;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_be", function () {
        return pureFunction1Internal;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bf", function () {
        return pureFunction2Internal;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bg", function () {
        return pureFunction3Internal;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bh", function () {
        return pureFunction4Internal;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bi", function () {
        return pureFunctionVInternal;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bj", function () {
        return getUrlSanitizer;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bk", function () {
        return makeParamDecorator;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bl", function () {
        return makePropDecorator;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bm", function () {
        return getClosureSafeProperty;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bo", function () {
        return getRootContext;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bp", function () {
        return i18nPostprocess;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bq", function () {
        return trustedHTMLFromString;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_br", function () {
        return trustedScriptURLFromString;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bs", function () {
        return trustedScriptFromString;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_c", function () {
        return NullInjector;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_d", function () {
        return ReflectiveInjector_;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_e", function () {
        return ReflectiveDependency;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_f", function () {
        return resolveReflectiveProviders;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_g", function () {
        return _appIdRandomProviderFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_h", function () {
        return createElementRef;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_i", function () {
        return createTemplateRef;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_j", function () {
        return getModuleFactory__PRE_R3__;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_k", function () {
        return DebugNode__PRE_R3__;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_l", function () {
        return DebugElement__PRE_R3__;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_m", function () {
        return getDebugNodeR2__PRE_R3__;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_n", function () {
        return DefaultIterableDifferFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_o", function () {
        return DefaultKeyValueDifferFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_p", function () {
        return _iterableDiffersFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_q", function () {
        return _keyValueDiffersFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_r", function () {
        return _localeFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_s", function () {
        return APPLICATION_MODULE_PROVIDERS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_t", function () {
        return zoneSchedulerFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_u", function () {
        return USD_CURRENCY_CODE;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_v", function () {
        return _def;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_w", function () {
        return DebugContext;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_x", function () {
        return NgOnChangesFeatureImpl;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_y", function () {
        return SCHEDULER;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_z", function () {
        return injectAttributeImpl;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵbypassSanitizationTrustHtml", function () {
        return bypassSanitizationTrustHtml;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵbypassSanitizationTrustResourceUrl", function () {
        return bypassSanitizationTrustResourceUrl;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵbypassSanitizationTrustScript", function () {
        return bypassSanitizationTrustScript;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵbypassSanitizationTrustStyle", function () {
        return bypassSanitizationTrustStyle;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵbypassSanitizationTrustUrl", function () {
        return bypassSanitizationTrustUrl;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵccf", function () {
        return createComponentFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵclearOverrides", function () {
        return clearOverrides;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵclearResolutionOfComponentResourcesQueue", function () {
        return clearResolutionOfComponentResourcesQueue;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵcmf", function () {
        return createNgModuleFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵcompileComponent", function () {
        return compileComponent;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵcompileDirective", function () {
        return compileDirective;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵcompileNgModule", function () {
        return compileNgModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵcompileNgModuleDefs", function () {
        return compileNgModuleDefs;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵcompileNgModuleFactory__POST_R3__", function () {
        return compileNgModuleFactory__POST_R3__;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵcompilePipe", function () {
        return compilePipe;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵcreateInjector", function () {
        return createInjector;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵcrt", function () {
        return createRendererType2;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵdefaultIterableDiffers", function () {
        return defaultIterableDiffers;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵdefaultKeyValueDiffers", function () {
        return defaultKeyValueDiffers;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵdetectChanges", function () {
        return detectChanges;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵdevModeEqual", function () {
        return devModeEqual;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵdid", function () {
        return directiveDef;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵeld", function () {
        return elementDef;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵfindLocaleData", function () {
        return findLocaleData;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵflushModuleScopingQueueAsMuchAsPossible", function () {
        return flushModuleScopingQueueAsMuchAsPossible;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵgetComponentViewDefinitionFactory", function () {
        return getComponentViewDefinitionFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵgetDebugNodeR2", function () {
        return getDebugNodeR2;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵgetDebugNode__POST_R3__", function () {
        return getDebugNode__POST_R3__;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵgetDirectives", function () {
        return getDirectives;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵgetHostElement", function () {
        return getHostElement;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵgetInjectableDef", function () {
        return getInjectableDef;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵgetLContext", function () {
        return getLContext;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵgetLocaleCurrencyCode", function () {
        return getLocaleCurrencyCode;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵgetLocalePluralCase", function () {
        return getLocalePluralCase;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵgetModuleFactory__POST_R3__", function () {
        return getModuleFactory__POST_R3__;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵgetSanitizationBypassType", function () {
        return getSanitizationBypassType;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵglobal", function () {
        return _global;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵinitServicesIfNeeded", function () {
        return initServicesIfNeeded;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵinlineInterpolate", function () {
        return inlineInterpolate;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵinterpolate", function () {
        return interpolate;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵisBoundToModule__POST_R3__", function () {
        return isBoundToModule__POST_R3__;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵisDefaultChangeDetectionStrategy", function () {
        return isDefaultChangeDetectionStrategy;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵisListLikeIterable", function () {
        return isListLikeIterable;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵisObservable", function () {
        return isObservable;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵisPromise", function () {
        return isPromise;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵivyEnabled", function () {
        return ivyEnabled;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵmakeDecorator", function () {
        return makeDecorator;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵmarkDirty", function () {
        return markDirty;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵmod", function () {
        return moduleDef;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵmpd", function () {
        return moduleProvideDef;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵncd", function () {
        return ngContentDef;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵnoSideEffects", function () {
        return noSideEffects;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵnov", function () {
        return nodeValue;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵoverrideComponentView", function () {
        return overrideComponentView;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵoverrideProvider", function () {
        return overrideProvider;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵpad", function () {
        return pureArrayDef;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵpatchComponentDefWithScope", function () {
        return patchComponentDefWithScope;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵpid", function () {
        return pipeDef;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵpod", function () {
        return pureObjectDef;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵppd", function () {
        return purePipeDef;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵprd", function () {
        return providerDef;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵpublishDefaultGlobalUtils", function () {
        return publishDefaultGlobalUtils;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵpublishGlobalUtil", function () {
        return publishGlobalUtil;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵqud", function () {
        return queryDef;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵregisterLocaleData", function () {
        return registerLocaleData;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵregisterModuleFactory", function () {
        return registerModuleFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵregisterNgModuleType", function () {
        return registerNgModuleType;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵrenderComponent", function () {
        return renderComponent$1;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵresetCompiledComponents", function () {
        return resetCompiledComponents;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵresetJitOptions", function () {
        return resetJitOptions;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵresolveComponentResources", function () {
        return resolveComponentResources;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵsetClassMetadata", function () {
        return setClassMetadata;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵsetCurrentInjector", function () {
        return setCurrentInjector;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵsetDocument", function () {
        return setDocument;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵsetLocaleId", function () {
        return setLocaleId;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵstore", function () {
        return store;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵstringify", function () {
        return stringify;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵted", function () {
        return textDef;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵtransitiveScopesFor", function () {
        return transitiveScopesFor;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵunregisterLocaleData", function () {
        return unregisterAllLocaleData;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵunv", function () {
        return unwrapValue;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵunwrapSafeValue", function () {
        return unwrapSafeValue;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵvid", function () {
        return viewDef;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵwhenRendered", function () {
        return whenRendered;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵCopyDefinitionFeature", function () {
        return ɵɵCopyDefinitionFeature;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵInheritDefinitionFeature", function () {
        return ɵɵInheritDefinitionFeature;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵNgOnChangesFeature", function () {
        return ɵɵNgOnChangesFeature;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵProvidersFeature", function () {
        return ɵɵProvidersFeature;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵadvance", function () {
        return ɵɵadvance;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵattribute", function () {
        return ɵɵattribute;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵattributeInterpolate1", function () {
        return ɵɵattributeInterpolate1;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵattributeInterpolate2", function () {
        return ɵɵattributeInterpolate2;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵattributeInterpolate3", function () {
        return ɵɵattributeInterpolate3;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵattributeInterpolate4", function () {
        return ɵɵattributeInterpolate4;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵattributeInterpolate5", function () {
        return ɵɵattributeInterpolate5;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵattributeInterpolate6", function () {
        return ɵɵattributeInterpolate6;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵattributeInterpolate7", function () {
        return ɵɵattributeInterpolate7;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵattributeInterpolate8", function () {
        return ɵɵattributeInterpolate8;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵattributeInterpolateV", function () {
        return ɵɵattributeInterpolateV;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵclassMap", function () {
        return ɵɵclassMap;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵclassMapInterpolate1", function () {
        return ɵɵclassMapInterpolate1;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵclassMapInterpolate2", function () {
        return ɵɵclassMapInterpolate2;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵclassMapInterpolate3", function () {
        return ɵɵclassMapInterpolate3;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵclassMapInterpolate4", function () {
        return ɵɵclassMapInterpolate4;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵclassMapInterpolate5", function () {
        return ɵɵclassMapInterpolate5;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵclassMapInterpolate6", function () {
        return ɵɵclassMapInterpolate6;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵclassMapInterpolate7", function () {
        return ɵɵclassMapInterpolate7;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵclassMapInterpolate8", function () {
        return ɵɵclassMapInterpolate8;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵclassMapInterpolateV", function () {
        return ɵɵclassMapInterpolateV;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵclassProp", function () {
        return ɵɵclassProp;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵcontentQuery", function () {
        return ɵɵcontentQuery;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵdefineComponent", function () {
        return ɵɵdefineComponent;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵdefineDirective", function () {
        return ɵɵdefineDirective;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵdefineInjectable", function () {
        return ɵɵdefineInjectable;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵdefineInjector", function () {
        return ɵɵdefineInjector;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵdefineNgModule", function () {
        return ɵɵdefineNgModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵdefinePipe", function () {
        return ɵɵdefinePipe;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵdirectiveInject", function () {
        return ɵɵdirectiveInject;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵdisableBindings", function () {
        return ɵɵdisableBindings;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵelement", function () {
        return ɵɵelement;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵelementContainer", function () {
        return ɵɵelementContainer;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵelementContainerEnd", function () {
        return ɵɵelementContainerEnd;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵelementContainerStart", function () {
        return ɵɵelementContainerStart;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵelementEnd", function () {
        return ɵɵelementEnd;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵelementStart", function () {
        return ɵɵelementStart;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵenableBindings", function () {
        return ɵɵenableBindings;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵgetCurrentView", function () {
        return ɵɵgetCurrentView;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵgetFactoryOf", function () {
        return ɵɵgetFactoryOf;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵgetInheritedFactory", function () {
        return ɵɵgetInheritedFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵhostProperty", function () {
        return ɵɵhostProperty;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵi18n", function () {
        return ɵɵi18n;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵi18nApply", function () {
        return ɵɵi18nApply;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵi18nAttributes", function () {
        return ɵɵi18nAttributes;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵi18nEnd", function () {
        return ɵɵi18nEnd;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵi18nExp", function () {
        return ɵɵi18nExp;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵi18nPostprocess", function () {
        return ɵɵi18nPostprocess;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵi18nStart", function () {
        return ɵɵi18nStart;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵinject", function () {
        return ɵɵinject;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵinjectAttribute", function () {
        return ɵɵinjectAttribute;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵinjectPipeChangeDetectorRef", function () {
        return ɵɵinjectPipeChangeDetectorRef;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵinvalidFactory", function () {
        return ɵɵinvalidFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵinvalidFactoryDep", function () {
        return ɵɵinvalidFactoryDep;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵlistener", function () {
        return ɵɵlistener;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵloadQuery", function () {
        return ɵɵloadQuery;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵnamespaceHTML", function () {
        return ɵɵnamespaceHTML;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵnamespaceMathML", function () {
        return ɵɵnamespaceMathML;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵnamespaceSVG", function () {
        return ɵɵnamespaceSVG;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵnextContext", function () {
        return ɵɵnextContext;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵpipe", function () {
        return ɵɵpipe;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵpipeBind1", function () {
        return ɵɵpipeBind1;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵpipeBind2", function () {
        return ɵɵpipeBind2;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵpipeBind3", function () {
        return ɵɵpipeBind3;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵpipeBind4", function () {
        return ɵɵpipeBind4;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵpipeBindV", function () {
        return ɵɵpipeBindV;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵprojection", function () {
        return ɵɵprojection;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵprojectionDef", function () {
        return ɵɵprojectionDef;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵproperty", function () {
        return ɵɵproperty;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵpropertyInterpolate", function () {
        return ɵɵpropertyInterpolate;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵpropertyInterpolate1", function () {
        return ɵɵpropertyInterpolate1;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵpropertyInterpolate2", function () {
        return ɵɵpropertyInterpolate2;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵpropertyInterpolate3", function () {
        return ɵɵpropertyInterpolate3;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵpropertyInterpolate4", function () {
        return ɵɵpropertyInterpolate4;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵpropertyInterpolate5", function () {
        return ɵɵpropertyInterpolate5;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵpropertyInterpolate6", function () {
        return ɵɵpropertyInterpolate6;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵpropertyInterpolate7", function () {
        return ɵɵpropertyInterpolate7;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵpropertyInterpolate8", function () {
        return ɵɵpropertyInterpolate8;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵpropertyInterpolateV", function () {
        return ɵɵpropertyInterpolateV;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵpureFunction0", function () {
        return ɵɵpureFunction0;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵpureFunction1", function () {
        return ɵɵpureFunction1;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵpureFunction2", function () {
        return ɵɵpureFunction2;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵpureFunction3", function () {
        return ɵɵpureFunction3;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵpureFunction4", function () {
        return ɵɵpureFunction4;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵpureFunction5", function () {
        return ɵɵpureFunction5;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵpureFunction6", function () {
        return ɵɵpureFunction6;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵpureFunction7", function () {
        return ɵɵpureFunction7;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵpureFunction8", function () {
        return ɵɵpureFunction8;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵpureFunctionV", function () {
        return ɵɵpureFunctionV;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵqueryRefresh", function () {
        return ɵɵqueryRefresh;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵreference", function () {
        return ɵɵreference;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵresolveBody", function () {
        return ɵɵresolveBody;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵresolveDocument", function () {
        return ɵɵresolveDocument;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵresolveWindow", function () {
        return ɵɵresolveWindow;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵrestoreView", function () {
        return ɵɵrestoreView;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵsanitizeHtml", function () {
        return ɵɵsanitizeHtml;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵsanitizeResourceUrl", function () {
        return ɵɵsanitizeResourceUrl;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵsanitizeScript", function () {
        return ɵɵsanitizeScript;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵsanitizeStyle", function () {
        return ɵɵsanitizeStyle;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵsanitizeUrl", function () {
        return ɵɵsanitizeUrl;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵsanitizeUrlOrResourceUrl", function () {
        return ɵɵsanitizeUrlOrResourceUrl;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵsetComponentScope", function () {
        return ɵɵsetComponentScope;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵsetNgModuleScope", function () {
        return ɵɵsetNgModuleScope;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵstaticContentQuery", function () {
        return ɵɵstaticContentQuery;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵstaticViewQuery", function () {
        return ɵɵstaticViewQuery;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵstyleMap", function () {
        return ɵɵstyleMap;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵstyleMapInterpolate1", function () {
        return ɵɵstyleMapInterpolate1;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵstyleMapInterpolate2", function () {
        return ɵɵstyleMapInterpolate2;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵstyleMapInterpolate3", function () {
        return ɵɵstyleMapInterpolate3;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵstyleMapInterpolate4", function () {
        return ɵɵstyleMapInterpolate4;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵstyleMapInterpolate5", function () {
        return ɵɵstyleMapInterpolate5;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵstyleMapInterpolate6", function () {
        return ɵɵstyleMapInterpolate6;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵstyleMapInterpolate7", function () {
        return ɵɵstyleMapInterpolate7;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵstyleMapInterpolate8", function () {
        return ɵɵstyleMapInterpolate8;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵstyleMapInterpolateV", function () {
        return ɵɵstyleMapInterpolateV;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵstyleProp", function () {
        return ɵɵstyleProp;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵstylePropInterpolate1", function () {
        return ɵɵstylePropInterpolate1;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵstylePropInterpolate2", function () {
        return ɵɵstylePropInterpolate2;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵstylePropInterpolate3", function () {
        return ɵɵstylePropInterpolate3;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵstylePropInterpolate4", function () {
        return ɵɵstylePropInterpolate4;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵstylePropInterpolate5", function () {
        return ɵɵstylePropInterpolate5;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵstylePropInterpolate6", function () {
        return ɵɵstylePropInterpolate6;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵstylePropInterpolate7", function () {
        return ɵɵstylePropInterpolate7;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵstylePropInterpolate8", function () {
        return ɵɵstylePropInterpolate8;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵstylePropInterpolateV", function () {
        return ɵɵstylePropInterpolateV;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵsyntheticHostListener", function () {
        return ɵɵsyntheticHostListener;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵsyntheticHostProperty", function () {
        return ɵɵsyntheticHostProperty;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵtemplate", function () {
        return ɵɵtemplate;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵtemplateRefExtractor", function () {
        return ɵɵtemplateRefExtractor;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵtext", function () {
        return ɵɵtext;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵtextInterpolate", function () {
        return ɵɵtextInterpolate;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵtextInterpolate1", function () {
        return ɵɵtextInterpolate1;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵtextInterpolate2", function () {
        return ɵɵtextInterpolate2;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵtextInterpolate3", function () {
        return ɵɵtextInterpolate3;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵtextInterpolate4", function () {
        return ɵɵtextInterpolate4;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵtextInterpolate5", function () {
        return ɵɵtextInterpolate5;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵtextInterpolate6", function () {
        return ɵɵtextInterpolate6;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵtextInterpolate7", function () {
        return ɵɵtextInterpolate7;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵtextInterpolate8", function () {
        return ɵɵtextInterpolate8;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵtextInterpolateV", function () {
        return ɵɵtextInterpolateV;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵtrustConstantHtml", function () {
        return ɵɵtrustConstantHtml;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵtrustConstantResourceUrl", function () {
        return ɵɵtrustConstantResourceUrl;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵtrustConstantScript", function () {
        return ɵɵtrustConstantScript;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵɵviewQuery", function () {
        return ɵɵviewQuery;
      });
      /* harmony import */


      var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! rxjs */
      "qCKp");
      /* harmony import */


      var rxjs_operators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! rxjs/operators */
      "kU1M");
      /**
       * @license Angular v11.0.0
       * (c) 2010-2020 Google LLC. https://angular.io/
       * License: MIT
       */

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Convince closure compiler that the wrapped function has no side-effects.
       *
       * Closure compiler always assumes that `toString` has no side-effects. We use this quirk to
       * allow us to execute a function but have closure compiler mark the call as no-side-effects.
       * It is important that the return value for the `noSideEffects` function be assigned
       * to something which is retained otherwise the call to `noSideEffects` will be removed by closure
       * compiler.
       */


      function noSideEffects(fn) {
        return {
          toString: fn
        }.toString();
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var ANNOTATIONS = '__annotations__';
      var PARAMETERS = '__parameters__';
      var PROP_METADATA = '__prop__metadata__';
      /**
       * @suppress {globalThis}
       */

      function makeDecorator(name, props, parentClass, additionalProcessing, typeFn) {
        return noSideEffects(function () {
          var metaCtor = makeMetadataCtor(props);

          function DecoratorFactory() {
            for (var _len18 = arguments.length, args = new Array(_len18), _key19 = 0; _key19 < _len18; _key19++) {
              args[_key19] = arguments[_key19];
            }

            if (this instanceof DecoratorFactory) {
              metaCtor.call.apply(metaCtor, [this].concat(args));
              return this;
            }

            var annotationInstance = _construct2(DecoratorFactory, args);

            return function TypeDecorator(cls) {
              if (typeFn) typeFn.apply(void 0, [cls].concat(args)); // Use of Object.defineProperty is important since it creates non-enumerable property which
              // prevents the property is copied during subclassing.

              var annotations = cls.hasOwnProperty(ANNOTATIONS) ? cls[ANNOTATIONS] : Object.defineProperty(cls, ANNOTATIONS, {
                value: []
              })[ANNOTATIONS];
              annotations.push(annotationInstance);
              if (additionalProcessing) additionalProcessing(cls);
              return cls;
            };
          }

          if (parentClass) {
            DecoratorFactory.prototype = Object.create(parentClass.prototype);
          }

          DecoratorFactory.prototype.ngMetadataName = name;
          DecoratorFactory.annotationCls = DecoratorFactory;
          return DecoratorFactory;
        });
      }

      function makeMetadataCtor(props) {
        return function ctor() {
          if (props) {
            var values = props.apply(void 0, arguments);

            for (var propName in values) {
              this[propName] = values[propName];
            }
          }
        };
      }

      function makeParamDecorator(name, props, parentClass) {
        return noSideEffects(function () {
          var metaCtor = makeMetadataCtor(props);

          function ParamDecoratorFactory() {
            for (var _len19 = arguments.length, args = new Array(_len19), _key20 = 0; _key20 < _len19; _key20++) {
              args[_key20] = arguments[_key20];
            }

            if (this instanceof ParamDecoratorFactory) {
              metaCtor.apply(this, args);
              return this;
            }

            var annotationInstance = _construct2(ParamDecoratorFactory, args);

            ParamDecorator.annotation = annotationInstance;
            return ParamDecorator;

            function ParamDecorator(cls, unusedKey, index) {
              // Use of Object.defineProperty is important since it creates non-enumerable property which
              // prevents the property is copied during subclassing.
              var parameters = cls.hasOwnProperty(PARAMETERS) ? cls[PARAMETERS] : Object.defineProperty(cls, PARAMETERS, {
                value: []
              })[PARAMETERS]; // there might be gaps if some in between parameters do not have annotations.
              // we pad with nulls.

              while (parameters.length <= index) {
                parameters.push(null);
              }

              (parameters[index] = parameters[index] || []).push(annotationInstance);
              return cls;
            }
          }

          if (parentClass) {
            ParamDecoratorFactory.prototype = Object.create(parentClass.prototype);
          }

          ParamDecoratorFactory.prototype.ngMetadataName = name;
          ParamDecoratorFactory.annotationCls = ParamDecoratorFactory;
          return ParamDecoratorFactory;
        });
      }

      function makePropDecorator(name, props, parentClass, additionalProcessing) {
        return noSideEffects(function () {
          var metaCtor = makeMetadataCtor(props);

          function PropDecoratorFactory() {
            for (var _len20 = arguments.length, args = new Array(_len20), _key21 = 0; _key21 < _len20; _key21++) {
              args[_key21] = arguments[_key21];
            }

            if (this instanceof PropDecoratorFactory) {
              metaCtor.apply(this, args);
              return this;
            }

            var decoratorInstance = _construct2(PropDecoratorFactory, args);

            function PropDecorator(target, name) {
              var constructor = target.constructor; // Use of Object.defineProperty is important because it creates a non-enumerable property
              // which prevents the property from being copied during subclassing.

              var meta = constructor.hasOwnProperty(PROP_METADATA) ? constructor[PROP_METADATA] : Object.defineProperty(constructor, PROP_METADATA, {
                value: {}
              })[PROP_METADATA];
              meta[name] = meta.hasOwnProperty(name) && meta[name] || [];
              meta[name].unshift(decoratorInstance);
              if (additionalProcessing) additionalProcessing.apply(void 0, [target, name].concat(args));
            }

            return PropDecorator;
          }

          if (parentClass) {
            PropDecoratorFactory.prototype = Object.create(parentClass.prototype);
          }

          PropDecoratorFactory.prototype.ngMetadataName = name;
          PropDecoratorFactory.annotationCls = PropDecoratorFactory;
          return PropDecoratorFactory;
        });
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var ɵ0 = function ɵ0(token) {
        return {
          token: token
        };
      };
      /**
       * Inject decorator and metadata.
       *
       * @Annotation
       * @publicApi
       */


      var Inject = makeParamDecorator('Inject', ɵ0);
      /**
       * Optional decorator and metadata.
       *
       * @Annotation
       * @publicApi
       */

      var Optional = makeParamDecorator('Optional');
      /**
       * Self decorator and metadata.
       *
       * @Annotation
       * @publicApi
       */

      var Self = makeParamDecorator('Self');
      /**
       * `SkipSelf` decorator and metadata.
       *
       * @Annotation
       * @publicApi
       */

      var SkipSelf = makeParamDecorator('SkipSelf');
      /**
       * Host decorator and metadata.
       *
       * @Annotation
       * @publicApi
       */

      var Host = makeParamDecorator('Host');

      var ɵ1 = function ɵ1(attributeName) {
        return {
          attributeName: attributeName
        };
      };
      /**
       * Attribute decorator and metadata.
       *
       * @Annotation
       * @publicApi
       */


      var Attribute = makeParamDecorator('Attribute', ɵ1);
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Injection flags for DI.
       *
       * @publicApi
       */

      var InjectFlags;

      (function (InjectFlags) {
        // TODO(alxhub): make this 'const' when ngc no longer writes exports of it into ngfactory files.

        /** Check self and check parent injector if needed */
        InjectFlags[InjectFlags["Default"] = 0] = "Default";
        /**
         * Specifies that an injector should retrieve a dependency from any injector until reaching the
         * host element of the current component. (Only used with Element Injector)
         */

        InjectFlags[InjectFlags["Host"] = 1] = "Host";
        /** Don't ascend to ancestors of the node requesting injection. */

        InjectFlags[InjectFlags["Self"] = 2] = "Self";
        /** Skip the node that is requesting injection. */

        InjectFlags[InjectFlags["SkipSelf"] = 4] = "SkipSelf";
        /** Inject `defaultValue` instead if token not found. */

        InjectFlags[InjectFlags["Optional"] = 8] = "Optional";
      })(InjectFlags || (InjectFlags = {}));
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function getClosureSafeProperty(objWithPropertyToExtract) {
        for (var key in objWithPropertyToExtract) {
          if (objWithPropertyToExtract[key] === getClosureSafeProperty) {
            return key;
          }
        }

        throw Error('Could not find renamed property on target object.');
      }
      /**
       * Sets properties on a target object from a source object, but only if
       * the property doesn't already exist on the target object.
       * @param target The target to set properties on
       * @param source The source of the property keys and values to set
       */


      function fillProperties(target, source) {
        for (var key in source) {
          if (source.hasOwnProperty(key) && !target.hasOwnProperty(key)) {
            target[key] = source[key];
          }
        }
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Construct an `InjectableDef` which defines how a token will be constructed by the DI system, and
       * in which injectors (if any) it will be available.
       *
       * This should be assigned to a static `ɵprov` field on a type, which will then be an
       * `InjectableType`.
       *
       * Options:
       * * `providedIn` determines which injectors will include the injectable, by either associating it
       *   with an `@NgModule` or other `InjectorType`, or by specifying that this injectable should be
       *   provided in the `'root'` injector, which will be the application-level injector in most apps.
       * * `factory` gives the zero argument function which will create an instance of the injectable.
       *   The factory can call `inject` to access the `Injector` and request injection of dependencies.
       *
       * @codeGenApi
       * @publicApi This instruction has been emitted by ViewEngine for some time and is deployed to npm.
       */


      function ɵɵdefineInjectable(opts) {
        return {
          token: opts.token,
          providedIn: opts.providedIn || null,
          factory: opts.factory,
          value: undefined
        };
      }
      /**
       * @deprecated in v8, delete after v10. This API should be used only be generated code, and that
       * code should now use ɵɵdefineInjectable instead.
       * @publicApi
       */


      var defineInjectable = ɵɵdefineInjectable;
      /**
       * Construct an `InjectorDef` which configures an injector.
       *
       * This should be assigned to a static injector def (`ɵinj`) field on a type, which will then be an
       * `InjectorType`.
       *
       * Options:
       *
       * * `factory`: an `InjectorType` is an instantiable type, so a zero argument `factory` function to
       *   create the type must be provided. If that factory function needs to inject arguments, it can
       *   use the `inject` function.
       * * `providers`: an optional array of providers to add to the injector. Each provider must
       *   either have a factory or point to a type which has a `ɵprov` static property (the
       *   type must be an `InjectableType`).
       * * `imports`: an optional array of imports of other `InjectorType`s or `InjectorTypeWithModule`s
       *   whose providers will also be added to the injector. Locally provided types will override
       *   providers from imports.
       *
       * @codeGenApi
       */

      function ɵɵdefineInjector(options) {
        return {
          factory: options.factory,
          providers: options.providers || [],
          imports: options.imports || []
        };
      }
      /**
       * Read the injectable def (`ɵprov`) for `type` in a way which is immune to accidentally reading
       * inherited value.
       *
       * @param type A type which may have its own (non-inherited) `ɵprov`.
       */


      function getInjectableDef(type) {
        return getOwnDefinition(type, NG_PROV_DEF) || getOwnDefinition(type, NG_INJECTABLE_DEF);
      }
      /**
       * Return definition only if it is defined directly on `type` and is not inherited from a base
       * class of `type`.
       */


      function getOwnDefinition(type, field) {
        return type.hasOwnProperty(field) ? type[field] : null;
      }
      /**
       * Read the injectable def (`ɵprov`) for `type` or read the `ɵprov` from one of its ancestors.
       *
       * @param type A type which may have `ɵprov`, via inheritance.
       *
       * @deprecated Will be removed in a future version of Angular, where an error will occur in the
       *     scenario if we find the `ɵprov` on an ancestor only.
       */


      function getInheritedInjectableDef(type) {
        var def = type && (type[NG_PROV_DEF] || type[NG_INJECTABLE_DEF]);

        if (def) {
          var typeName = getTypeName(type); // TODO(FW-1307): Re-add ngDevMode when closure can handle it
          // ngDevMode &&

          console.warn("DEPRECATED: DI is instantiating a token \"".concat(typeName, "\" that inherits its @Injectable decorator but does not provide one itself.\n") + "This will become an error in a future version of Angular. Please add @Injectable() to the \"".concat(typeName, "\" class."));
          return def;
        } else {
          return null;
        }
      }
      /** Gets the name of a type, accounting for some cross-browser differences. */


      function getTypeName(type) {
        // `Function.prototype.name` behaves differently between IE and other browsers. In most browsers
        // it'll always return the name of the function itself, no matter how many other functions it
        // inherits from. On IE the function doesn't have its own `name` property, but it takes it from
        // the lowest level in the prototype chain. E.g. if we have `class Foo extends Parent` most
        // browsers will evaluate `Foo.name` to `Foo` while IE will return `Parent`. We work around
        // the issue by converting the function to a string and parsing its name out that way via a regex.
        if (type.hasOwnProperty('name')) {
          return type.name;
        }

        var match = ('' + type).match(/^function\s*([^\s(]+)/);
        return match === null ? '' : match[1];
      }
      /**
       * Read the injector def type in a way which is immune to accidentally reading inherited value.
       *
       * @param type type which may have an injector def (`ɵinj`)
       */


      function getInjectorDef(type) {
        return type && (type.hasOwnProperty(NG_INJ_DEF) || type.hasOwnProperty(NG_INJECTOR_DEF)) ? type[NG_INJ_DEF] : null;
      }

      var NG_PROV_DEF = getClosureSafeProperty({
        ɵprov: getClosureSafeProperty
      });
      var NG_INJ_DEF = getClosureSafeProperty({
        ɵinj: getClosureSafeProperty
      }); // We need to keep these around so we can read off old defs if new defs are unavailable

      var NG_INJECTABLE_DEF = getClosureSafeProperty({
        ngInjectableDef: getClosureSafeProperty
      });
      var NG_INJECTOR_DEF = getClosureSafeProperty({
        ngInjectorDef: getClosureSafeProperty
      });
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      function stringify(token) {
        if (typeof token === 'string') {
          return token;
        }

        if (Array.isArray(token)) {
          return '[' + token.map(stringify).join(', ') + ']';
        }

        if (token == null) {
          return '' + token;
        }

        if (token.overriddenName) {
          return "".concat(token.overriddenName);
        }

        if (token.name) {
          return "".concat(token.name);
        }

        var res = token.toString();

        if (res == null) {
          return '' + res;
        }

        var newLineIndex = res.indexOf('\n');
        return newLineIndex === -1 ? res : res.substring(0, newLineIndex);
      }
      /**
       * Concatenates two strings with separator, allocating new strings only when necessary.
       *
       * @param before before string.
       * @param separator separator string.
       * @param after after string.
       * @returns concatenated string.
       */


      function concatStringsWithSpace(before, after) {
        return before == null || before === '' ? after === null ? '' : after : after == null || after === '' ? before : before + ' ' + after;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var __forward_ref__ = getClosureSafeProperty({
        __forward_ref__: getClosureSafeProperty
      });
      /**
       * Allows to refer to references which are not yet defined.
       *
       * For instance, `forwardRef` is used when the `token` which we need to refer to for the purposes of
       * DI is declared, but not yet defined. It is also used when the `token` which we use when creating
       * a query is not yet defined.
       *
       * @usageNotes
       * ### Example
       * {@example core/di/ts/forward_ref/forward_ref_spec.ts region='forward_ref'}
       * @publicApi
       */


      function forwardRef(forwardRefFn) {
        forwardRefFn.__forward_ref__ = forwardRef;

        forwardRefFn.toString = function () {
          return stringify(this());
        };

        return forwardRefFn;
      }
      /**
       * Lazily retrieves the reference value from a forwardRef.
       *
       * Acts as the identity function when given a non-forward-ref value.
       *
       * @usageNotes
       * ### Example
       *
       * {@example core/di/ts/forward_ref/forward_ref_spec.ts region='resolve_forward_ref'}
       *
       * @see `forwardRef`
       * @publicApi
       */


      function resolveForwardRef(type) {
        return isForwardRef(type) ? type() : type;
      }
      /** Checks whether a function is wrapped by a `forwardRef`. */


      function isForwardRef(fn) {
        return typeof fn === 'function' && fn.hasOwnProperty(__forward_ref__) && fn.__forward_ref__ === forwardRef;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var __globalThis = typeof globalThis !== 'undefined' && globalThis;

      var __window = typeof window !== 'undefined' && window;

      var __self = typeof self !== 'undefined' && typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope && self;

      var __global = typeof global !== 'undefined' && global; // Always use __globalThis if available, which is the spec-defined global variable across all
      // environments, then fallback to __global first, because in Node tests both __global and
      // __window may be defined and _global should be __global in that case.


      var _global = __globalThis || __global || __window || __self;
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var R3ResolvedDependencyType;

      (function (R3ResolvedDependencyType) {
        R3ResolvedDependencyType[R3ResolvedDependencyType["Token"] = 0] = "Token";
        R3ResolvedDependencyType[R3ResolvedDependencyType["Attribute"] = 1] = "Attribute";
        R3ResolvedDependencyType[R3ResolvedDependencyType["ChangeDetectorRef"] = 2] = "ChangeDetectorRef";
        R3ResolvedDependencyType[R3ResolvedDependencyType["Invalid"] = 3] = "Invalid";
      })(R3ResolvedDependencyType || (R3ResolvedDependencyType = {}));

      var R3FactoryTarget;

      (function (R3FactoryTarget) {
        R3FactoryTarget[R3FactoryTarget["Directive"] = 0] = "Directive";
        R3FactoryTarget[R3FactoryTarget["Component"] = 1] = "Component";
        R3FactoryTarget[R3FactoryTarget["Injectable"] = 2] = "Injectable";
        R3FactoryTarget[R3FactoryTarget["Pipe"] = 3] = "Pipe";
        R3FactoryTarget[R3FactoryTarget["NgModule"] = 4] = "NgModule";
      })(R3FactoryTarget || (R3FactoryTarget = {}));

      var ViewEncapsulation;

      (function (ViewEncapsulation) {
        ViewEncapsulation[ViewEncapsulation["Emulated"] = 0] = "Emulated"; // Historically the 1 value was for `Native` encapsulation which has been removed as of v11.

        ViewEncapsulation[ViewEncapsulation["None"] = 2] = "None";
        ViewEncapsulation[ViewEncapsulation["ShadowDom"] = 3] = "ShadowDom";
      })(ViewEncapsulation || (ViewEncapsulation = {}));
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function getCompilerFacade() {
        var globalNg = _global['ng'];

        if (!globalNg || !globalNg.ɵcompilerFacade) {
          throw new Error("Angular JIT compilation failed: '@angular/compiler' not loaded!\n" + "  - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\n" + "  - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?\n" + "  - Alternatively provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.");
        }

        return globalNg.ɵcompilerFacade;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var NG_COMP_DEF = getClosureSafeProperty({
        ɵcmp: getClosureSafeProperty
      });
      var NG_DIR_DEF = getClosureSafeProperty({
        ɵdir: getClosureSafeProperty
      });
      var NG_PIPE_DEF = getClosureSafeProperty({
        ɵpipe: getClosureSafeProperty
      });
      var NG_MOD_DEF = getClosureSafeProperty({
        ɵmod: getClosureSafeProperty
      });
      var NG_LOC_ID_DEF = getClosureSafeProperty({
        ɵloc: getClosureSafeProperty
      });
      var NG_FACTORY_DEF = getClosureSafeProperty({
        ɵfac: getClosureSafeProperty
      });
      /**
       * If a directive is diPublic, bloomAdd sets a property on the type with this constant as
       * the key and the directive's unique ID as the value. This allows us to map directives to their
       * bloom filter bit for DI.
       */
      // TODO(misko): This is wrong. The NG_ELEMENT_ID should never be minified.

      var NG_ELEMENT_ID = getClosureSafeProperty({
        __NG_ELEMENT_ID__: getClosureSafeProperty
      });
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      function ngDevModeResetPerfCounters() {
        var locationString = typeof location !== 'undefined' ? location.toString() : '';
        var newCounters = {
          namedConstructors: locationString.indexOf('ngDevMode=namedConstructors') != -1,
          firstCreatePass: 0,
          tNode: 0,
          tView: 0,
          rendererCreateTextNode: 0,
          rendererSetText: 0,
          rendererCreateElement: 0,
          rendererAddEventListener: 0,
          rendererSetAttribute: 0,
          rendererRemoveAttribute: 0,
          rendererSetProperty: 0,
          rendererSetClassName: 0,
          rendererAddClass: 0,
          rendererRemoveClass: 0,
          rendererSetStyle: 0,
          rendererRemoveStyle: 0,
          rendererDestroy: 0,
          rendererDestroyNode: 0,
          rendererMoveNode: 0,
          rendererRemoveNode: 0,
          rendererAppendChild: 0,
          rendererInsertBefore: 0,
          rendererCreateComment: 0
        }; // Make sure to refer to ngDevMode as ['ngDevMode'] for closure.

        var allowNgDevModeTrue = locationString.indexOf('ngDevMode=false') === -1;
        _global['ngDevMode'] = allowNgDevModeTrue && newCounters;
        return newCounters;
      }
      /**
       * This function checks to see if the `ngDevMode` has been set. If yes,
       * then we honor it, otherwise we default to dev mode with additional checks.
       *
       * The idea is that unless we are doing production build where we explicitly
       * set `ngDevMode == false` we should be helping the developer by providing
       * as much early warning and errors as possible.
       *
       * `ɵɵdefineComponent` is guaranteed to have been called before any component template functions
       * (and thus Ivy instructions), so a single initialization there is sufficient to ensure ngDevMode
       * is defined for the entire instruction set.
       *
       * When checking `ngDevMode` on toplevel, always init it before referencing it
       * (e.g. `((typeof ngDevMode === 'undefined' || ngDevMode) && initNgDevMode())`), otherwise you can
       *  get a `ReferenceError` like in https://github.com/angular/angular/issues/31595.
       *
       * Details on possible values for `ngDevMode` can be found on its docstring.
       *
       * NOTE:
       * - changes to the `ngDevMode` name must be synced with `compiler-cli/src/tooling.ts`.
       */


      function initNgDevMode() {
        // The below checks are to ensure that calling `initNgDevMode` multiple times does not
        // reset the counters.
        // If the `ngDevMode` is not an object, then it means we have not created the perf counters
        // yet.
        if (typeof ngDevMode === 'undefined' || ngDevMode) {
          if (typeof ngDevMode !== 'object') {
            ngDevModeResetPerfCounters();
          }

          return typeof ngDevMode !== 'undefined' && !!ngDevMode;
        }

        return false;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function assertNumber(actual, msg) {
        if (!(typeof actual === 'number')) {
          throwError(msg, typeof actual, 'number', '===');
        }
      }

      function assertNumberInRange(actual, minInclusive, maxInclusive) {
        assertNumber(actual, 'Expected a number');
        assertLessThanOrEqual(actual, maxInclusive, 'Expected number to be less than or equal to');
        assertGreaterThanOrEqual(actual, minInclusive, 'Expected number to be greater than or equal to');
      }

      function assertString(actual, msg) {
        if (!(typeof actual === 'string')) {
          throwError(msg, actual === null ? 'null' : typeof actual, 'string', '===');
        }
      }

      function assertEqual(actual, expected, msg) {
        if (!(actual == expected)) {
          throwError(msg, actual, expected, '==');
        }
      }

      function assertNotEqual(actual, expected, msg) {
        if (!(actual != expected)) {
          throwError(msg, actual, expected, '!=');
        }
      }

      function assertSame(actual, expected, msg) {
        if (!(actual === expected)) {
          throwError(msg, actual, expected, '===');
        }
      }

      function assertNotSame(actual, expected, msg) {
        if (!(actual !== expected)) {
          throwError(msg, actual, expected, '!==');
        }
      }

      function assertLessThan(actual, expected, msg) {
        if (!(actual < expected)) {
          throwError(msg, actual, expected, '<');
        }
      }

      function assertLessThanOrEqual(actual, expected, msg) {
        if (!(actual <= expected)) {
          throwError(msg, actual, expected, '<=');
        }
      }

      function assertGreaterThan(actual, expected, msg) {
        if (!(actual > expected)) {
          throwError(msg, actual, expected, '>');
        }
      }

      function assertGreaterThanOrEqual(actual, expected, msg) {
        if (!(actual >= expected)) {
          throwError(msg, actual, expected, '>=');
        }
      }

      function assertNotDefined(actual, msg) {
        if (actual != null) {
          throwError(msg, actual, null, '==');
        }
      }

      function assertDefined(actual, msg) {
        if (actual == null) {
          throwError(msg, actual, null, '!=');
        }
      }

      function throwError(msg, actual, expected, comparison) {
        throw new Error("ASSERTION ERROR: ".concat(msg) + (comparison == null ? '' : " [Expected=> ".concat(expected, " ").concat(comparison, " ").concat(actual, " <=Actual]")));
      }

      function assertDomNode(node) {
        // If we're in a worker, `Node` will not be defined.
        if (!(typeof Node !== 'undefined' && node instanceof Node) && !(typeof node === 'object' && node != null && node.constructor.name === 'WebWorkerRenderNode')) {
          throwError("The provided value must be an instance of a DOM Node but got ".concat(stringify(node)));
        }
      }

      function assertIndexInRange(arr, index) {
        assertDefined(arr, 'Array must be defined.');
        var maxLen = arr.length;

        if (index < 0 || index >= maxLen) {
          throwError("Index expected to be less than ".concat(maxLen, " but got ").concat(index));
        }
      }

      function assertOneOf(value) {
        for (var _len21 = arguments.length, validValues = new Array(_len21 > 1 ? _len21 - 1 : 0), _key22 = 1; _key22 < _len21; _key22++) {
          validValues[_key22 - 1] = arguments[_key22];
        }

        if (validValues.indexOf(value) !== -1) return true;
        throwError("Expected value to be one of ".concat(JSON.stringify(validValues), " but was ").concat(JSON.stringify(value), "."));
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Creates a token that can be used in a DI Provider.
       *
       * Use an `InjectionToken` whenever the type you are injecting is not reified (does not have a
       * runtime representation) such as when injecting an interface, callable type, array or
       * parameterized type.
       *
       * `InjectionToken` is parameterized on `T` which is the type of object which will be returned by
       * the `Injector`. This provides additional level of type safety.
       *
       * ```
       * interface MyInterface {...}
       * var myInterface = injector.get(new InjectionToken<MyInterface>('SomeToken'));
       * // myInterface is inferred to be MyInterface.
       * ```
       *
       * When creating an `InjectionToken`, you can optionally specify a factory function which returns
       * (possibly by creating) a default value of the parameterized type `T`. This sets up the
       * `InjectionToken` using this factory as a provider as if it was defined explicitly in the
       * application's root injector. If the factory function, which takes zero arguments, needs to inject
       * dependencies, it can do so using the `inject` function. See below for an example.
       *
       * Additionally, if a `factory` is specified you can also specify the `providedIn` option, which
       * overrides the above behavior and marks the token as belonging to a particular `@NgModule`. As
       * mentioned above, `'root'` is the default value for `providedIn`.
       *
       * @usageNotes
       * ### Basic Example
       *
       * ### Plain InjectionToken
       *
       * {@example core/di/ts/injector_spec.ts region='InjectionToken'}
       *
       * ### Tree-shakable InjectionToken
       *
       * {@example core/di/ts/injector_spec.ts region='ShakableInjectionToken'}
       *
       *
       * @publicApi
       */


      var InjectionToken = /*#__PURE__*/function () {
        function InjectionToken(_desc, options) {
          _classCallCheck2(this, InjectionToken);

          this._desc = _desc;
          /** @internal */

          this.ngMetadataName = 'InjectionToken';
          this.ɵprov = undefined;

          if (typeof options == 'number') {
            // This is a special hack to assign __NG_ELEMENT_ID__ to this instance.
            // __NG_ELEMENT_ID__ is Used by Ivy to determine bloom filter id.
            // We are using it to assign `-1` which is used to identify `Injector`.
            this.__NG_ELEMENT_ID__ = options;
          } else if (options !== undefined) {
            this.ɵprov = ɵɵdefineInjectable({
              token: this,
              providedIn: options.providedIn || 'root',
              factory: options.factory
            });
          }
        }

        _createClass2(InjectionToken, [{
          key: "toString",
          value: function toString() {
            return "InjectionToken ".concat(this._desc);
          }
        }]);

        return InjectionToken;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * An InjectionToken that gets the current `Injector` for `createInjector()`-style injectors.
       *
       * Requesting this token instead of `Injector` allows `StaticInjector` to be tree-shaken from a
       * project.
       *
       * @publicApi
       */


      var INJECTOR = new InjectionToken('INJECTOR', -1 // `-1` is used by Ivy DI system as special value to recognize it as `Injector`.
      );
      var _THROW_IF_NOT_FOUND = {};
      var THROW_IF_NOT_FOUND = _THROW_IF_NOT_FOUND;
      var NG_TEMP_TOKEN_PATH = 'ngTempTokenPath';
      var NG_TOKEN_PATH = 'ngTokenPath';
      var NEW_LINE = /\n/gm;
      var NO_NEW_LINE = 'ɵ';
      var SOURCE = '__source';
      var ɵ0$1 = getClosureSafeProperty;
      var USE_VALUE = getClosureSafeProperty({
        provide: String,
        useValue: ɵ0$1
      });
      /**
       * Current injector value used by `inject`.
       * - `undefined`: it is an error to call `inject`
       * - `null`: `inject` can be called but there is no injector (limp-mode).
       * - Injector instance: Use the injector for resolution.
       */

      var _currentInjector = undefined;

      function setCurrentInjector(injector) {
        var former = _currentInjector;
        _currentInjector = injector;
        return former;
      }
      /**
       * Current implementation of inject.
       *
       * By default, it is `injectInjectorOnly`, which makes it `Injector`-only aware. It can be changed
       * to `directiveInject`, which brings in the `NodeInjector` system of ivy. It is designed this
       * way for two reasons:
       *  1. `Injector` should not depend on ivy logic.
       *  2. To maintain tree shake-ability we don't want to bring in unnecessary code.
       */


      var _injectImplementation;
      /**
       * Sets the current inject implementation.
       */


      function setInjectImplementation(impl) {
        var previous = _injectImplementation;
        _injectImplementation = impl;
        return previous;
      }
      /**
       * Assert that `_injectImplementation` is not `fn`.
       *
       * This is useful, to prevent infinite recursion.
       *
       * @param fn Function which it should not equal to
       */


      function assertInjectImplementationNot(fn) {
        ngDevMode && assertNotEqual(_injectImplementation, fn, 'Calling ɵɵinject would cause infinite recursion');
      }

      function injectInjectorOnly(token) {
        var flags = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : InjectFlags.Default;

        if (_currentInjector === undefined) {
          throw new Error("inject() must be called from an injection context");
        } else if (_currentInjector === null) {
          return injectRootLimpMode(token, undefined, flags);
        } else {
          return _currentInjector.get(token, flags & InjectFlags.Optional ? null : undefined, flags);
        }
      }

      function ɵɵinject(token) {
        var flags = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : InjectFlags.Default;
        return (_injectImplementation || injectInjectorOnly)(resolveForwardRef(token), flags);
      }
      /**
       * Throws an error indicating that a factory function could not be generated by the compiler for a
       * particular class.
       *
       * This instruction allows the actual error message to be optimized away when ngDevMode is turned
       * off, saving bytes of generated code while still providing a good experience in dev mode.
       *
       * The name of the class is not mentioned here, but will be in the generated factory function name
       * and thus in the stack trace.
       *
       * @codeGenApi
       */


      function ɵɵinvalidFactoryDep(index) {
        var msg = ngDevMode ? "This constructor is not compatible with Angular Dependency Injection because its dependency at index ".concat(index, " of the parameter list is invalid.\nThis can happen if the dependency type is a primitive like a string or if an ancestor of this class is missing an Angular decorator.\n\nPlease check that 1) the type for the parameter at index ").concat(index, " is correct and 2) the correct Angular decorators are defined for this class and its ancestors.") : 'invalid';
        throw new Error(msg);
      }
      /**
       * Injects a token from the currently active injector.
       *
       * Must be used in the context of a factory function such as one defined for an
       * `InjectionToken`. Throws an error if not called from such a context.
       *
       * Within such a factory function, using this function to request injection of a dependency
       * is faster and more type-safe than providing an additional array of dependencies
       * (as has been common with `useFactory` providers).
       *
       * @param token The injection token for the dependency to be injected.
       * @param flags Optional flags that control how injection is executed.
       * The flags correspond to injection strategies that can be specified with
       * parameter decorators `@Host`, `@Self`, `@SkipSef`, and `@Optional`.
       * @returns True if injection is successful, null otherwise.
       *
       * @usageNotes
       *
       * ### Example
       *
       * {@example core/di/ts/injector_spec.ts region='ShakableInjectionToken'}
       *
       * @publicApi
       */


      var inject = ɵɵinject;
      /**
       * Injects `root` tokens in limp mode.
       *
       * If no injector exists, we can still inject tree-shakable providers which have `providedIn` set to
       * `"root"`. This is known as the limp mode injection. In such case the value is stored in the
       * `InjectableDef`.
       */

      function injectRootLimpMode(token, notFoundValue, flags) {
        var injectableDef = getInjectableDef(token);

        if (injectableDef && injectableDef.providedIn == 'root') {
          return injectableDef.value === undefined ? injectableDef.value = injectableDef.factory() : injectableDef.value;
        }

        if (flags & InjectFlags.Optional) return null;
        if (notFoundValue !== undefined) return notFoundValue;
        throw new Error("Injector: NOT_FOUND [".concat(stringify(token), "]"));
      }

      function injectArgs(types) {
        var args = [];

        for (var i = 0; i < types.length; i++) {
          var arg = resolveForwardRef(types[i]);

          if (Array.isArray(arg)) {
            if (arg.length === 0) {
              throw new Error('Arguments array must have arguments.');
            }

            var type = undefined;
            var flags = InjectFlags.Default;

            for (var j = 0; j < arg.length; j++) {
              var meta = arg[j];

              if (meta instanceof Optional || meta.ngMetadataName === 'Optional' || meta === Optional) {
                flags |= InjectFlags.Optional;
              } else if (meta instanceof SkipSelf || meta.ngMetadataName === 'SkipSelf' || meta === SkipSelf) {
                flags |= InjectFlags.SkipSelf;
              } else if (meta instanceof Self || meta.ngMetadataName === 'Self' || meta === Self) {
                flags |= InjectFlags.Self;
              } else if (meta instanceof Inject || meta === Inject) {
                type = meta.token;
              } else {
                type = meta;
              }
            }

            args.push(ɵɵinject(type, flags));
          } else {
            args.push(ɵɵinject(arg));
          }
        }

        return args;
      }

      var NullInjector = /*#__PURE__*/function () {
        function NullInjector() {
          _classCallCheck2(this, NullInjector);
        }

        _createClass2(NullInjector, [{
          key: "get",
          value: function get(token) {
            var notFoundValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : THROW_IF_NOT_FOUND;

            if (notFoundValue === THROW_IF_NOT_FOUND) {
              // Intentionally left behind: With dev tools open the debugger will stop here. There is no
              // reason why correctly written application should cause this exception.
              // TODO(misko): uncomment the next line once `ngDevMode` works with closure.
              // if (ngDevMode) debugger;
              var error = new Error("NullInjectorError: No provider for ".concat(stringify(token), "!"));
              error.name = 'NullInjectorError';
              throw error;
            }

            return notFoundValue;
          }
        }]);

        return NullInjector;
      }();

      function catchInjectorError(e, token, injectorErrorName, source) {
        var tokenPath = e[NG_TEMP_TOKEN_PATH];

        if (token[SOURCE]) {
          tokenPath.unshift(token[SOURCE]);
        }

        e.message = formatError('\n' + e.message, tokenPath, injectorErrorName, source);
        e[NG_TOKEN_PATH] = tokenPath;
        e[NG_TEMP_TOKEN_PATH] = null;
        throw e;
      }

      function formatError(text, obj, injectorErrorName) {
        var source = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
        text = text && text.charAt(0) === '\n' && text.charAt(1) == NO_NEW_LINE ? text.substr(2) : text;
        var context = stringify(obj);

        if (Array.isArray(obj)) {
          context = obj.map(stringify).join(' -> ');
        } else if (typeof obj === 'object') {
          var parts = [];

          for (var key in obj) {
            if (obj.hasOwnProperty(key)) {
              var value = obj[key];
              parts.push(key + ':' + (typeof value === 'string' ? JSON.stringify(value) : stringify(value)));
            }
          }

          context = "{".concat(parts.join(', '), "}");
        }

        return "".concat(injectorErrorName).concat(source ? '(' + source + ')' : '', "[").concat(context, "]: ").concat(text.replace(NEW_LINE, '\n  '));
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * A mapping of the @angular/core API surface used in generated expressions to the actual symbols.
       *
       * This should be kept up to date with the public exports of @angular/core.
       */


      var angularCoreDiEnv = {
        'ɵɵdefineInjectable': ɵɵdefineInjectable,
        'ɵɵdefineInjector': ɵɵdefineInjector,
        'ɵɵinject': ɵɵinject,
        'ɵɵgetFactoryOf': getFactoryOf,
        'ɵɵinvalidFactoryDep': ɵɵinvalidFactoryDep
      };

      function getFactoryOf(type) {
        var typeAny = type;

        if (isForwardRef(type)) {
          return function () {
            var factory = getFactoryOf(resolveForwardRef(typeAny));
            return factory ? factory() : null;
          };
        }

        var def = getInjectableDef(typeAny) || getInjectorDef(typeAny);

        if (!def || def.factory === undefined) {
          return null;
        }

        return def.factory;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Represents an instance of an `NgModule` created by an `NgModuleFactory`.
       * Provides access to the `NgModule` instance and related objects.
       *
       * @publicApi
       */


      var NgModuleRef = function NgModuleRef() {
        _classCallCheck2(this, NgModuleRef);
      };
      /**
       * @publicApi
       */


      var NgModuleFactory = function NgModuleFactory() {
        _classCallCheck2(this, NgModuleFactory);
      };
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Equivalent to ES6 spread, add each item to an array.
       *
       * @param items The items to add
       * @param arr The array to which you want to add the items
       */


      function addAllToArray(items, arr) {
        for (var i = 0; i < items.length; i++) {
          arr.push(items[i]);
        }
      }
      /**
       * Flattens an array.
       */


      function flatten(list, dst) {
        if (dst === undefined) dst = list;

        for (var i = 0; i < list.length; i++) {
          var item = list[i];

          if (Array.isArray(item)) {
            // we need to inline it.
            if (dst === list) {
              // Our assumption that the list was already flat was wrong and
              // we need to clone flat since we need to write to it.
              dst = list.slice(0, i);
            }

            flatten(item, dst);
          } else if (dst !== list) {
            dst.push(item);
          }
        }

        return dst;
      }

      function deepForEach(input, fn) {
        input.forEach(function (value) {
          return Array.isArray(value) ? deepForEach(value, fn) : fn(value);
        });
      }

      function addToArray(arr, index, value) {
        // perf: array.push is faster than array.splice!
        if (index >= arr.length) {
          arr.push(value);
        } else {
          arr.splice(index, 0, value);
        }
      }

      function removeFromArray(arr, index) {
        // perf: array.pop is faster than array.splice!
        if (index >= arr.length - 1) {
          return arr.pop();
        } else {
          return arr.splice(index, 1)[0];
        }
      }

      function newArray(size, value) {
        var list = [];

        for (var i = 0; i < size; i++) {
          list.push(value);
        }

        return list;
      }
      /**
       * Remove item from array (Same as `Array.splice()` but faster.)
       *
       * `Array.splice()` is not as fast because it has to allocate an array for the elements which were
       * removed. This causes memory pressure and slows down code when most of the time we don't
       * care about the deleted items array.
       *
       * https://jsperf.com/fast-array-splice (About 20x faster)
       *
       * @param array Array to splice
       * @param index Index of element in array to remove.
       * @param count Number of items to remove.
       */


      function arraySplice(array, index, count) {
        var length = array.length - count;

        while (index < length) {
          array[index] = array[index + count];
          index++;
        }

        while (count--) {
          array.pop(); // shrink the array
        }
      }
      /**
       * Same as `Array.splice(index, 0, value)` but faster.
       *
       * `Array.splice()` is not fast because it has to allocate an array for the elements which were
       * removed. This causes memory pressure and slows down code when most of the time we don't
       * care about the deleted items array.
       *
       * @param array Array to splice.
       * @param index Index in array where the `value` should be added.
       * @param value Value to add to array.
       */


      function arrayInsert(array, index, value) {
        ngDevMode && assertLessThanOrEqual(index, array.length, 'Can\'t insert past array end.');
        var end = array.length;

        while (end > index) {
          var previousEnd = end - 1;
          array[end] = array[previousEnd];
          end = previousEnd;
        }

        array[index] = value;
      }
      /**
       * Same as `Array.splice2(index, 0, value1, value2)` but faster.
       *
       * `Array.splice()` is not fast because it has to allocate an array for the elements which were
       * removed. This causes memory pressure and slows down code when most of the time we don't
       * care about the deleted items array.
       *
       * @param array Array to splice.
       * @param index Index in array where the `value` should be added.
       * @param value1 Value to add to array.
       * @param value2 Value to add to array.
       */


      function arrayInsert2(array, index, value1, value2) {
        ngDevMode && assertLessThanOrEqual(index, array.length, 'Can\'t insert past array end.');
        var end = array.length;

        if (end == index) {
          // inserting at the end.
          array.push(value1, value2);
        } else if (end === 1) {
          // corner case when we have less items in array than we have items to insert.
          array.push(value2, array[0]);
          array[0] = value1;
        } else {
          end--;
          array.push(array[end - 1], array[end]);

          while (end > index) {
            var previousEnd = end - 2;
            array[end] = array[previousEnd];
            end--;
          }

          array[index] = value1;
          array[index + 1] = value2;
        }
      }
      /**
       * Insert a `value` into an `array` so that the array remains sorted.
       *
       * NOTE:
       * - Duplicates are not allowed, and are ignored.
       * - This uses binary search algorithm for fast inserts.
       *
       * @param array A sorted array to insert into.
       * @param value The value to insert.
       * @returns index of the inserted value.
       */


      function arrayInsertSorted(array, value) {
        var index = arrayIndexOfSorted(array, value);

        if (index < 0) {
          // if we did not find it insert it.
          index = ~index;
          arrayInsert(array, index, value);
        }

        return index;
      }
      /**
       * Remove `value` from a sorted `array`.
       *
       * NOTE:
       * - This uses binary search algorithm for fast removals.
       *
       * @param array A sorted array to remove from.
       * @param value The value to remove.
       * @returns index of the removed value.
       *   - positive index if value found and removed.
       *   - negative index if value not found. (`~index` to get the value where it should have been
       *     inserted)
       */


      function arrayRemoveSorted(array, value) {
        var index = arrayIndexOfSorted(array, value);

        if (index >= 0) {
          arraySplice(array, index, 1);
        }

        return index;
      }
      /**
       * Get an index of an `value` in a sorted `array`.
       *
       * NOTE:
       * - This uses binary search algorithm for fast removals.
       *
       * @param array A sorted array to binary search.
       * @param value The value to look for.
       * @returns index of the value.
       *   - positive index if value found.
       *   - negative index if value not found. (`~index` to get the value where it should have been
       *     located)
       */


      function arrayIndexOfSorted(array, value) {
        return _arrayIndexOfSorted(array, value, 0);
      }
      /**
       * Set a `value` for a `key`.
       *
       * @param keyValueArray to modify.
       * @param key The key to locate or create.
       * @param value The value to set for a `key`.
       * @returns index (always even) of where the value vas set.
       */


      function keyValueArraySet(keyValueArray, key, value) {
        var index = keyValueArrayIndexOf(keyValueArray, key);

        if (index >= 0) {
          // if we found it set it.
          keyValueArray[index | 1] = value;
        } else {
          index = ~index;
          arrayInsert2(keyValueArray, index, key, value);
        }

        return index;
      }
      /**
       * Retrieve a `value` for a `key` (on `undefined` if not found.)
       *
       * @param keyValueArray to search.
       * @param key The key to locate.
       * @return The `value` stored at the `key` location or `undefined if not found.
       */


      function keyValueArrayGet(keyValueArray, key) {
        var index = keyValueArrayIndexOf(keyValueArray, key);

        if (index >= 0) {
          // if we found it retrieve it.
          return keyValueArray[index | 1];
        }

        return undefined;
      }
      /**
       * Retrieve a `key` index value in the array or `-1` if not found.
       *
       * @param keyValueArray to search.
       * @param key The key to locate.
       * @returns index of where the key is (or should have been.)
       *   - positive (even) index if key found.
       *   - negative index if key not found. (`~index` (even) to get the index where it should have
       *     been inserted.)
       */


      function keyValueArrayIndexOf(keyValueArray, key) {
        return _arrayIndexOfSorted(keyValueArray, key, 1);
      }
      /**
       * Delete a `key` (and `value`) from the `KeyValueArray`.
       *
       * @param keyValueArray to modify.
       * @param key The key to locate or delete (if exist).
       * @returns index of where the key was (or should have been.)
       *   - positive (even) index if key found and deleted.
       *   - negative index if key not found. (`~index` (even) to get the index where it should have
       *     been.)
       */


      function keyValueArrayDelete(keyValueArray, key) {
        var index = keyValueArrayIndexOf(keyValueArray, key);

        if (index >= 0) {
          // if we found it remove it.
          arraySplice(keyValueArray, index, 2);
        }

        return index;
      }
      /**
       * INTERNAL: Get an index of an `value` in a sorted `array` by grouping search by `shift`.
       *
       * NOTE:
       * - This uses binary search algorithm for fast removals.
       *
       * @param array A sorted array to binary search.
       * @param value The value to look for.
       * @param shift grouping shift.
       *   - `0` means look at every location
       *   - `1` means only look at every other (even) location (the odd locations are to be ignored as
       *         they are values.)
       * @returns index of the value.
       *   - positive index if value found.
       *   - negative index if value not found. (`~index` to get the value where it should have been
       * inserted)
       */


      function _arrayIndexOfSorted(array, value, shift) {
        ngDevMode && assertEqual(Array.isArray(array), true, 'Expecting an array');
        var start = 0;
        var end = array.length >> shift;

        while (end !== start) {
          var middle = start + (end - start >> 1); // find the middle.

          var current = array[middle << shift];

          if (value === current) {
            return middle << shift;
          } else if (current > value) {
            end = middle;
          } else {
            start = middle + 1; // We already searched middle so make it non-inclusive by adding 1
          }
        }

        return ~(end << shift);
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * The strategy that the default change detector uses to detect changes.
       * When set, takes effect the next time change detection is triggered.
       *
       * @see {@link ChangeDetectorRef#usage-notes Change detection usage}
       *
       * @publicApi
       */


      var ChangeDetectionStrategy;

      (function (ChangeDetectionStrategy) {
        /**
         * Use the `CheckOnce` strategy, meaning that automatic change detection is deactivated
         * until reactivated by setting the strategy to `Default` (`CheckAlways`).
         * Change detection can still be explicitly invoked.
         * This strategy applies to all child directives and cannot be overridden.
         */
        ChangeDetectionStrategy[ChangeDetectionStrategy["OnPush"] = 0] = "OnPush";
        /**
         * Use the default `CheckAlways` strategy, in which change detection is automatic until
         * explicitly deactivated.
         */

        ChangeDetectionStrategy[ChangeDetectionStrategy["Default"] = 1] = "Default";
      })(ChangeDetectionStrategy || (ChangeDetectionStrategy = {}));
      /**
       * Defines the possible states of the default change detector.
       * @see `ChangeDetectorRef`
       */


      var ChangeDetectorStatus;

      (function (ChangeDetectorStatus) {
        /**
         * A state in which, after calling `detectChanges()`, the change detector
         * state becomes `Checked`, and must be explicitly invoked or reactivated.
         */
        ChangeDetectorStatus[ChangeDetectorStatus["CheckOnce"] = 0] = "CheckOnce";
        /**
         * A state in which change detection is skipped until the change detector mode
         * becomes `CheckOnce`.
         */

        ChangeDetectorStatus[ChangeDetectorStatus["Checked"] = 1] = "Checked";
        /**
         * A state in which change detection continues automatically until explicitly
         * deactivated.
         */

        ChangeDetectorStatus[ChangeDetectorStatus["CheckAlways"] = 2] = "CheckAlways";
        /**
         * A state in which a change detector sub tree is not a part of the main tree and
         * should be skipped.
         */

        ChangeDetectorStatus[ChangeDetectorStatus["Detached"] = 3] = "Detached";
        /**
         * Indicates that the change detector encountered an error checking a binding
         * or calling a directive lifecycle method and is now in an inconsistent state. Change
         * detectors in this state do not detect changes.
         */

        ChangeDetectorStatus[ChangeDetectorStatus["Errored"] = 4] = "Errored";
        /**
         * Indicates that the change detector has been destroyed.
         */

        ChangeDetectorStatus[ChangeDetectorStatus["Destroyed"] = 5] = "Destroyed";
      })(ChangeDetectorStatus || (ChangeDetectorStatus = {}));
      /**
       * Reports whether a given strategy is currently the default for change detection.
       * @param changeDetectionStrategy The strategy to check.
       * @returns True if the given strategy is the current default, false otherwise.
       * @see `ChangeDetectorStatus`
       * @see `ChangeDetectorRef`
       */


      function isDefaultChangeDetectionStrategy(changeDetectionStrategy) {
        return changeDetectionStrategy == null || changeDetectionStrategy === ChangeDetectionStrategy.Default;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Defines template and style encapsulation options available for Component's {@link Component}.
       *
       * See {@link Component#encapsulation encapsulation}.
       *
       * @usageNotes
       * ### Example
       *
       * {@example core/ts/metadata/encapsulation.ts region='longform'}
       *
       * @publicApi
       */


      var ViewEncapsulation$1;

      (function (ViewEncapsulation) {
        /**
         * Emulate `Native` scoping of styles by adding an attribute containing surrogate id to the Host
         * Element and pre-processing the style rules provided via {@link Component#styles styles} or
         * {@link Component#styleUrls styleUrls}, and adding the new Host Element attribute to all
         * selectors.
         *
         * This is the default option.
         */
        ViewEncapsulation[ViewEncapsulation["Emulated"] = 0] = "Emulated"; // Historically the 1 value was for `Native` encapsulation which has been removed as of v11.

        /**
         * Don't provide any template or style encapsulation.
         */

        ViewEncapsulation[ViewEncapsulation["None"] = 2] = "None";
        /**
         * Use Shadow DOM to encapsulate styles.
         *
         * For the DOM this means using modern [Shadow
         * DOM](https://w3c.github.io/webcomponents/spec/shadow/) and
         * creating a ShadowRoot for Component's Host Element.
         */

        ViewEncapsulation[ViewEncapsulation["ShadowDom"] = 3] = "ShadowDom";
      })(ViewEncapsulation$1 || (ViewEncapsulation$1 = {}));
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * This file contains reuseable "empty" symbols that can be used as default return values
       * in different parts of the rendering code. Because the same symbols are returned, this
       * allows for identity checks against these values to be consistently used by the framework
       * code.
       */


      var EMPTY_OBJ = {};
      var EMPTY_ARRAY = []; // freezing the values prevents any code from accidentally inserting new values in

      if ((typeof ngDevMode === 'undefined' || ngDevMode) && initNgDevMode()) {
        // These property accesses can be ignored because ngDevMode will be set to false
        // when optimizing code and the whole if statement will be dropped.
        // tslint:disable-next-line:no-toplevel-property-access
        Object.freeze(EMPTY_OBJ); // tslint:disable-next-line:no-toplevel-property-access

        Object.freeze(EMPTY_ARRAY);
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var _renderCompCount = 0;
      /**
       * Create a component definition object.
       *
       *
       * # Example
       * ```
       * class MyDirective {
       *   // Generated by Angular Template Compiler
       *   // [Symbol] syntax will not be supported by TypeScript until v2.7
       *   static ɵcmp = defineComponent({
       *     ...
       *   });
       * }
       * ```
       * @codeGenApi
       */

      function ɵɵdefineComponent(componentDefinition) {
        return noSideEffects(function () {
          // Initialize ngDevMode. This must be the first statement in ɵɵdefineComponent.
          // See the `initNgDevMode` docstring for more information.
          (typeof ngDevMode === 'undefined' || ngDevMode) && initNgDevMode();
          var type = componentDefinition.type;
          var typePrototype = type.prototype;
          var declaredInputs = {};
          var def = {
            type: type,
            providersResolver: null,
            decls: componentDefinition.decls,
            vars: componentDefinition.vars,
            factory: null,
            template: componentDefinition.template || null,
            consts: componentDefinition.consts || null,
            ngContentSelectors: componentDefinition.ngContentSelectors,
            hostBindings: componentDefinition.hostBindings || null,
            hostVars: componentDefinition.hostVars || 0,
            hostAttrs: componentDefinition.hostAttrs || null,
            contentQueries: componentDefinition.contentQueries || null,
            declaredInputs: declaredInputs,
            inputs: null,
            outputs: null,
            exportAs: componentDefinition.exportAs || null,
            onPush: componentDefinition.changeDetection === ChangeDetectionStrategy.OnPush,
            directiveDefs: null,
            pipeDefs: null,
            selectors: componentDefinition.selectors || EMPTY_ARRAY,
            viewQuery: componentDefinition.viewQuery || null,
            features: componentDefinition.features || null,
            data: componentDefinition.data || {},
            // TODO(misko): convert ViewEncapsulation into const enum so that it can be used
            // directly in the next line. Also `None` should be 0 not 2.
            encapsulation: componentDefinition.encapsulation || ViewEncapsulation$1.Emulated,
            id: 'c',
            styles: componentDefinition.styles || EMPTY_ARRAY,
            _: null,
            setInput: null,
            schemas: componentDefinition.schemas || null,
            tView: null
          };
          var directiveTypes = componentDefinition.directives;
          var feature = componentDefinition.features;
          var pipeTypes = componentDefinition.pipes;
          def.id += _renderCompCount++;
          def.inputs = invertObject(componentDefinition.inputs, declaredInputs), def.outputs = invertObject(componentDefinition.outputs), feature && feature.forEach(function (fn) {
            return fn(def);
          });
          def.directiveDefs = directiveTypes ? function () {
            return (typeof directiveTypes === 'function' ? directiveTypes() : directiveTypes).map(extractDirectiveDef);
          } : null;
          def.pipeDefs = pipeTypes ? function () {
            return (typeof pipeTypes === 'function' ? pipeTypes() : pipeTypes).map(extractPipeDef);
          } : null;
          return def;
        });
      }
      /**
       * @codeGenApi
       */


      function ɵɵsetComponentScope(type, directives, pipes) {
        var def = type.ɵcmp;

        def.directiveDefs = function () {
          return directives.map(extractDirectiveDef);
        };

        def.pipeDefs = function () {
          return pipes.map(extractPipeDef);
        };
      }

      function extractDirectiveDef(type) {
        var def = getComponentDef(type) || getDirectiveDef(type);

        if (ngDevMode && !def) {
          throw new Error("'".concat(type.name, "' is neither 'ComponentType' or 'DirectiveType'."));
        }

        return def;
      }

      function extractPipeDef(type) {
        var def = getPipeDef(type);

        if (ngDevMode && !def) {
          throw new Error("'".concat(type.name, "' is not a 'PipeType'."));
        }

        return def;
      }

      var autoRegisterModuleById = {};
      /**
       * @codeGenApi
       */

      function ɵɵdefineNgModule(def) {
        var res = {
          type: def.type,
          bootstrap: def.bootstrap || EMPTY_ARRAY,
          declarations: def.declarations || EMPTY_ARRAY,
          imports: def.imports || EMPTY_ARRAY,
          exports: def.exports || EMPTY_ARRAY,
          transitiveCompileScopes: null,
          schemas: def.schemas || null,
          id: def.id || null
        };

        if (def.id != null) {
          noSideEffects(function () {
            autoRegisterModuleById[def.id] = def.type;
          });
        }

        return res;
      }
      /**
       * Adds the module metadata that is necessary to compute the module's transitive scope to an
       * existing module definition.
       *
       * Scope metadata of modules is not used in production builds, so calls to this function can be
       * marked pure to tree-shake it from the bundle, allowing for all referenced declarations
       * to become eligible for tree-shaking as well.
       *
       * @codeGenApi
       */


      function ɵɵsetNgModuleScope(type, scope) {
        return noSideEffects(function () {
          var ngModuleDef = getNgModuleDef(type, true);
          ngModuleDef.declarations = scope.declarations || EMPTY_ARRAY;
          ngModuleDef.imports = scope.imports || EMPTY_ARRAY;
          ngModuleDef.exports = scope.exports || EMPTY_ARRAY;
        });
      }
      /**
       * Inverts an inputs or outputs lookup such that the keys, which were the
       * minified keys, are part of the values, and the values are parsed so that
       * the publicName of the property is the new key
       *
       * e.g. for
       *
       * ```
       * class Comp {
       *   @Input()
       *   propName1: string;
       *
       *   @Input('publicName2')
       *   declaredPropName2: number;
       * }
       * ```
       *
       * will be serialized as
       *
       * ```
       * {
       *   propName1: 'propName1',
       *   declaredPropName2: ['publicName2', 'declaredPropName2'],
       * }
       * ```
       *
       * which is than translated by the minifier as:
       *
       * ```
       * {
       *   minifiedPropName1: 'propName1',
       *   minifiedPropName2: ['publicName2', 'declaredPropName2'],
       * }
       * ```
       *
       * becomes: (public name => minifiedName)
       *
       * ```
       * {
       *  'propName1': 'minifiedPropName1',
       *  'publicName2': 'minifiedPropName2',
       * }
       * ```
       *
       * Optionally the function can take `secondary` which will result in: (public name => declared name)
       *
       * ```
       * {
       *  'propName1': 'propName1',
       *  'publicName2': 'declaredPropName2',
       * }
       * ```
       *
      
       */


      function invertObject(obj, secondary) {
        if (obj == null) return EMPTY_OBJ;
        var newLookup = {};

        for (var minifiedKey in obj) {
          if (obj.hasOwnProperty(minifiedKey)) {
            var publicName = obj[minifiedKey];
            var declaredName = publicName;

            if (Array.isArray(publicName)) {
              declaredName = publicName[1];
              publicName = publicName[0];
            }

            newLookup[publicName] = minifiedKey;

            if (secondary) {
              secondary[publicName] = declaredName;
            }
          }
        }

        return newLookup;
      }
      /**
       * Create a directive definition object.
       *
       * # Example
       * ```ts
       * class MyDirective {
       *   // Generated by Angular Template Compiler
       *   // [Symbol] syntax will not be supported by TypeScript until v2.7
       *   static ɵdir = ɵɵdefineDirective({
       *     ...
       *   });
       * }
       * ```
       *
       * @codeGenApi
       */


      var ɵɵdefineDirective = ɵɵdefineComponent;
      /**
       * Create a pipe definition object.
       *
       * # Example
       * ```
       * class MyPipe implements PipeTransform {
       *   // Generated by Angular Template Compiler
       *   static ɵpipe = definePipe({
       *     ...
       *   });
       * }
       * ```
       * @param pipeDef Pipe definition generated by the compiler
       *
       * @codeGenApi
       */

      function ɵɵdefinePipe(pipeDef) {
        return {
          type: pipeDef.type,
          name: pipeDef.name,
          factory: null,
          pure: pipeDef.pure !== false,
          onDestroy: pipeDef.type.prototype.ngOnDestroy || null
        };
      }
      /**
       * The following getter methods retrieve the definition form the type. Currently the retrieval
       * honors inheritance, but in the future we may change the rule to require that definitions are
       * explicit. This would require some sort of migration strategy.
       */


      function getComponentDef(type) {
        return type[NG_COMP_DEF] || null;
      }

      function getDirectiveDef(type) {
        return type[NG_DIR_DEF] || null;
      }

      function getPipeDef(type) {
        return type[NG_PIPE_DEF] || null;
      }

      function getFactoryDef(type, throwNotFound) {
        var hasFactoryDef = type.hasOwnProperty(NG_FACTORY_DEF);

        if (!hasFactoryDef && throwNotFound === true && ngDevMode) {
          throw new Error("Type ".concat(stringify(type), " does not have '\u0275fac' property."));
        }

        return hasFactoryDef ? type[NG_FACTORY_DEF] : null;
      }

      function getNgModuleDef(type, throwNotFound) {
        var ngModuleDef = type[NG_MOD_DEF] || null;

        if (!ngModuleDef && throwNotFound === true) {
          throw new Error("Type ".concat(stringify(type), " does not have '\u0275mod' property."));
        }

        return ngModuleDef;
      }

      function getNgLocaleIdDef(type) {
        return type[NG_LOC_ID_DEF] || null;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */
      // Below are constants for LView indices to help us look up LView members
      // without having to remember the specific indices.
      // Uglify will inline these when minifying so there shouldn't be a cost.


      var HOST = 0;
      var TVIEW = 1;
      var FLAGS = 2;
      var PARENT = 3;
      var NEXT = 4;
      var TRANSPLANTED_VIEWS_TO_REFRESH = 5;
      var T_HOST = 6;
      var CLEANUP = 7;
      var CONTEXT = 8;
      var INJECTOR$1 = 9;
      var RENDERER_FACTORY = 10;
      var RENDERER = 11;
      var SANITIZER = 12;
      var CHILD_HEAD = 13;
      var CHILD_TAIL = 14; // FIXME(misko): Investigate if the three declarations aren't all same thing.

      var DECLARATION_VIEW = 15;
      var DECLARATION_COMPONENT_VIEW = 16;
      var DECLARATION_LCONTAINER = 17;
      var PREORDER_HOOK_FLAGS = 18;
      var QUERIES = 19;
      /**
       * Size of LView's header. Necessary to adjust for it when setting slots.
       *
       * IMPORTANT: `HEADER_OFFSET` should only be referred to the in the `ɵɵ*` instructions to translate
       * instruction index into `LView` index. All other indexes should be in the `LView` index space and
       * there should be no need to refer to `HEADER_OFFSET` anywhere else.
       */

      var HEADER_OFFSET = 20;
      /**
       * Converts `TViewType` into human readable text.
       * Make sure this matches with `TViewType`
       */

      var TViewTypeAsString = ['Root', 'Component', 'Embedded']; // Note: This hack is necessary so we don't erroneously get a circular dependency
      // failure based on types.

      var unusedValueExportToPlacateAjd = 1;
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Special location which allows easy identification of type. If we have an array which was
       * retrieved from the `LView` and that array has `true` at `TYPE` location, we know it is
       * `LContainer`.
       */

      var TYPE = 1;
      /**
       * Below are constants for LContainer indices to help us look up LContainer members
       * without having to remember the specific indices.
       * Uglify will inline these when minifying so there shouldn't be a cost.
       */

      /**
       * Flag to signify that this `LContainer` may have transplanted views which need to be change
       * detected. (see: `LView[DECLARATION_COMPONENT_VIEW])`.
       *
       * This flag, once set, is never unset for the `LContainer`. This means that when unset we can skip
       * a lot of work in `refreshEmbeddedViews`. But when set we still need to verify
       * that the `MOVED_VIEWS` are transplanted and on-push.
       */

      var HAS_TRANSPLANTED_VIEWS = 2; // PARENT, NEXT, TRANSPLANTED_VIEWS_TO_REFRESH are indices 3, 4, and 5
      // As we already have these constants in LView, we don't need to re-create them.
      // T_HOST is index 6
      // We already have this constants in LView, we don't need to re-create it.

      var NATIVE = 7;
      var VIEW_REFS = 8;
      var MOVED_VIEWS = 9;
      /**
       * Size of LContainer's header. Represents the index after which all views in the
       * container will be inserted. We need to keep a record of current views so we know
       * which views are already in the DOM (and don't need to be re-added) and so we can
       * remove views from the DOM when they are no longer required.
       */

      var CONTAINER_HEADER_OFFSET = 10; // Note: This hack is necessary so we don't erroneously get a circular dependency
      // failure based on types.

      var unusedValueExportToPlacateAjd$1 = 1;
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * True if `value` is `LView`.
       * @param value wrapped value of `RNode`, `LView`, `LContainer`
       */

      function isLView(value) {
        return Array.isArray(value) && typeof value[TYPE] === 'object';
      }
      /**
       * True if `value` is `LContainer`.
       * @param value wrapped value of `RNode`, `LView`, `LContainer`
       */


      function isLContainer(value) {
        return Array.isArray(value) && value[TYPE] === true;
      }

      function isContentQueryHost(tNode) {
        return (tNode.flags & 8
        /* hasContentQuery */
        ) !== 0;
      }

      function isComponentHost(tNode) {
        return (tNode.flags & 2
        /* isComponentHost */
        ) === 2
        /* isComponentHost */
        ;
      }

      function isDirectiveHost(tNode) {
        return (tNode.flags & 1
        /* isDirectiveHost */
        ) === 1
        /* isDirectiveHost */
        ;
      }

      function isComponentDef(def) {
        return def.template !== null;
      }

      function isRootView(target) {
        return (target[FLAGS] & 512
        /* IsRoot */
        ) !== 0;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */
      // [Assert functions do not constraint type when they are guarded by a truthy
      // expression.](https://github.com/microsoft/TypeScript/issues/37295)


      function assertTNodeForLView(tNode, lView) {
        assertTNodeForTView(tNode, lView[TVIEW]);
      }

      function assertTNodeForTView(tNode, tView) {
        assertTNode(tNode);
        tNode.hasOwnProperty('tView_') && assertEqual(tNode.tView_, tView, 'This TNode does not belong to this TView.');
      }

      function assertTNode(tNode) {
        assertDefined(tNode, 'TNode must be defined');

        if (!(tNode && typeof tNode === 'object' && tNode.hasOwnProperty('directiveStylingLast'))) {
          throwError('Not of type TNode, got: ' + tNode);
        }
      }

      function assertTIcu(tIcu) {
        assertDefined(tIcu, 'Expected TIcu to be defined');

        if (!(typeof tIcu.currentCaseLViewIndex === 'number')) {
          throwError('Object is not of TIcu type.');
        }
      }

      function assertComponentType(actual) {
        var msg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'Type passed in is not ComponentType, it does not have \'ɵcmp\' property.';

        if (!getComponentDef(actual)) {
          throwError(msg);
        }
      }

      function assertNgModuleType(actual) {
        var msg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'Type passed in is not NgModuleType, it does not have \'ɵmod\' property.';

        if (!getNgModuleDef(actual)) {
          throwError(msg);
        }
      }

      function assertCurrentTNodeIsParent(isParent) {
        assertEqual(isParent, true, 'currentTNode should be a parent');
      }

      function assertHasParent(tNode) {
        assertDefined(tNode, 'currentTNode should exist!');
        assertDefined(tNode.parent, 'currentTNode should have a parent');
      }

      function assertDataNext(lView, index, arr) {
        if (arr == null) arr = lView;
        assertEqual(arr.length, index, "index ".concat(index, " expected to be at the end of arr (length ").concat(arr.length, ")"));
      }

      function assertLContainer(value) {
        assertDefined(value, 'LContainer must be defined');
        assertEqual(isLContainer(value), true, 'Expecting LContainer');
      }

      function assertLViewOrUndefined(value) {
        value && assertEqual(isLView(value), true, 'Expecting LView or undefined or null');
      }

      function assertLView(value) {
        assertDefined(value, 'LView must be defined');
        assertEqual(isLView(value), true, 'Expecting LView');
      }

      function assertFirstCreatePass(tView, errMessage) {
        assertEqual(tView.firstCreatePass, true, errMessage || 'Should only be called in first create pass.');
      }

      function assertFirstUpdatePass(tView, errMessage) {
        assertEqual(tView.firstUpdatePass, true, errMessage || 'Should only be called in first update pass.');
      }
      /**
       * This is a basic sanity check that an object is probably a directive def. DirectiveDef is
       * an interface, so we can't do a direct instanceof check.
       */


      function assertDirectiveDef(obj) {
        if (obj.type === undefined || obj.selectors == undefined || obj.inputs === undefined) {
          throwError("Expected a DirectiveDef/ComponentDef and this object does not seem to have the expected shape.");
        }
      }

      function assertIndexInDeclRange(lView, index) {
        var tView = lView[1];
        assertBetween(HEADER_OFFSET, tView.bindingStartIndex, index);
      }

      function assertIndexInVarsRange(lView, index) {
        var tView = lView[1];
        assertBetween(tView.bindingStartIndex, tView.expandoStartIndex, index);
      }

      function assertIndexInExpandoRange(lView, index) {
        var tView = lView[1];
        assertBetween(tView.expandoStartIndex, lView.length, index);
      }

      function assertBetween(lower, upper, index) {
        if (!(lower <= index && index < upper)) {
          throwError("Index out of range (expecting ".concat(lower, " <= ").concat(index, " < ").concat(upper, ")"));
        }
      }
      /**
       * This is a basic sanity check that the `injectorIndex` seems to point to what looks like a
       * NodeInjector data structure.
       *
       * @param lView `LView` which should be checked.
       * @param injectorIndex index into the `LView` where the `NodeInjector` is expected.
       */


      function assertNodeInjector(lView, injectorIndex) {
        assertIndexInExpandoRange(lView, injectorIndex);
        assertIndexInExpandoRange(lView, injectorIndex + 8
        /* PARENT */
        );
        assertNumber(lView[injectorIndex + 0], 'injectorIndex should point to a bloom filter');
        assertNumber(lView[injectorIndex + 1], 'injectorIndex should point to a bloom filter');
        assertNumber(lView[injectorIndex + 2], 'injectorIndex should point to a bloom filter');
        assertNumber(lView[injectorIndex + 3], 'injectorIndex should point to a bloom filter');
        assertNumber(lView[injectorIndex + 4], 'injectorIndex should point to a bloom filter');
        assertNumber(lView[injectorIndex + 5], 'injectorIndex should point to a bloom filter');
        assertNumber(lView[injectorIndex + 6], 'injectorIndex should point to a bloom filter');
        assertNumber(lView[injectorIndex + 7], 'injectorIndex should point to a bloom filter');
        assertNumber(lView[injectorIndex + 8
        /* PARENT */
        ], 'injectorIndex should point to parent injector');
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var RuntimeError = /*#__PURE__*/function (_Error) {
        _inherits2(RuntimeError, _Error);

        var _super146 = _createSuper2(RuntimeError);

        function RuntimeError(code, message) {
          var _this401;

          _classCallCheck2(this, RuntimeError);

          _this401 = _super146.call(this, formatRuntimeError(code, message));
          _this401.code = code;
          return _this401;
        }

        return RuntimeError;
      }( /*#__PURE__*/_wrapNativeSuper(Error));
      /** Called to format a runtime error */


      function formatRuntimeError(code, message) {
        var fullCode = code ? "NG0".concat(code, ": ") : '';
        return "".concat(fullCode).concat(message);
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Used for stringify render output in Ivy.
       * Important! This function is very performance-sensitive and we should
       * be extra careful not to introduce megamorphic reads in it.
       */


      function renderStringify(value) {
        if (typeof value === 'string') return value;
        if (value == null) return '';
        return '' + value;
      }
      /**
       * Used to stringify a value so that it can be displayed in an error message.
       * Important! This function contains a megamorphic read and should only be
       * used for error messages.
       */


      function stringifyForError(value) {
        if (typeof value === 'function') return value.name || value.toString();

        if (typeof value === 'object' && value != null && typeof value.type === 'function') {
          return value.type.name || value.type.toString();
        }

        return renderStringify(value);
      }

      var ɵ0$2 = function ɵ0$2() {
        return (typeof requestAnimationFrame !== 'undefined' && requestAnimationFrame || // browser only
        setTimeout // everything else
        ).bind(_global);
      };

      var defaultScheduler = ɵ0$2();
      /**
       *
       * @codeGenApi
       */

      function ɵɵresolveWindow(element) {
        return {
          name: 'window',
          target: element.ownerDocument.defaultView
        };
      }
      /**
       *
       * @codeGenApi
       */


      function ɵɵresolveDocument(element) {
        return {
          name: 'document',
          target: element.ownerDocument
        };
      }
      /**
       *
       * @codeGenApi
       */


      function ɵɵresolveBody(element) {
        return {
          name: 'body',
          target: element.ownerDocument.body
        };
      }
      /**
       * The special delimiter we use to separate property names, prefixes, and suffixes
       * in property binding metadata. See storeBindingMetadata().
       *
       * We intentionally use the Unicode "REPLACEMENT CHARACTER" (U+FFFD) as a delimiter
       * because it is a very uncommon character that is unlikely to be part of a user's
       * property names or interpolation strings. If it is in fact used in a property
       * binding, DebugElement.properties will not return the correct value for that
       * binding. However, there should be no runtime effect for real applications.
       *
       * This character is typically rendered as a question mark inside of a diamond.
       * See https://en.wikipedia.org/wiki/Specials_(Unicode_block)
       *
       */


      var INTERPOLATION_DELIMITER = "\uFFFD";
      /**
       * Unwrap a value which might be behind a closure (for forward declaration reasons).
       */

      function maybeUnwrapFn(value) {
        if (value instanceof Function) {
          return value();
        } else {
          return value;
        }
      }
      /** Called when directives inject each other (creating a circular dependency) */


      function throwCyclicDependencyError(token, path) {
        var depPath = path ? ". Dependency path: ".concat(path.join(' > '), " > ").concat(token) : '';
        throw new RuntimeError("200"
        /* CYCLIC_DI_DEPENDENCY */
        , "Circular dependency in DI detected for ".concat(token).concat(depPath));
      }
      /** Called when there are multiple component selectors that match a given node */


      function throwMultipleComponentError(tNode) {
        throw new RuntimeError("300"
        /* MULTIPLE_COMPONENTS_MATCH */
        , "Multiple components match node with tagname ".concat(tNode.value));
      }

      function throwMixedMultiProviderError() {
        throw new Error("Cannot mix multi providers and regular providers");
      }

      function throwInvalidProviderError(ngModuleType, providers, provider) {
        var ngModuleDetail = '';

        if (ngModuleType && providers) {
          var providerDetail = providers.map(function (v) {
            return v == provider ? '?' + provider + '?' : '...';
          });
          ngModuleDetail = " - only instances of Provider and Type are allowed, got: [".concat(providerDetail.join(', '), "]");
        }

        throw new Error("Invalid provider for the NgModule '".concat(stringify(ngModuleType), "'") + ngModuleDetail);
      }
      /** Throws an ExpressionChangedAfterChecked error if checkNoChanges mode is on. */


      function throwErrorIfNoChangesMode(creationMode, oldValue, currValue, propName) {
        var field = propName ? " for '".concat(propName, "'") : '';
        var msg = "ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value".concat(field, ": '").concat(oldValue, "'. Current value: '").concat(currValue, "'.");

        if (creationMode) {
          msg += " It seems like the view has been created after its parent and its children have been dirty checked." + " Has it been created in a change detection hook?";
        } // TODO: include debug context, see `viewDebugError` function in
        // `packages/core/src/view/errors.ts` for reference.


        throw new RuntimeError("100"
        /* EXPRESSION_CHANGED_AFTER_CHECKED */
        , msg);
      }

      function constructDetailsForInterpolation(lView, rootIndex, expressionIndex, meta, changedValue) {
        var _meta$split = meta.split(INTERPOLATION_DELIMITER),
            _meta$split2 = _toArray(_meta$split),
            propName = _meta$split2[0],
            prefix = _meta$split2[1],
            chunks = _meta$split2.slice(2);

        var oldValue = prefix,
            newValue = prefix;

        for (var i = 0; i < chunks.length; i++) {
          var slotIdx = rootIndex + i;
          oldValue += "".concat(lView[slotIdx]).concat(chunks[i]);
          newValue += "".concat(slotIdx === expressionIndex ? changedValue : lView[slotIdx]).concat(chunks[i]);
        }

        return {
          propName: propName,
          oldValue: oldValue,
          newValue: newValue
        };
      }
      /**
       * Constructs an object that contains details for the ExpressionChangedAfterItHasBeenCheckedError:
       * - property name (for property bindings or interpolations)
       * - old and new values, enriched using information from metadata
       *
       * More information on the metadata storage format can be found in `storePropertyBindingMetadata`
       * function description.
       */


      function getExpressionChangedErrorDetails(lView, bindingIndex, oldValue, newValue) {
        var tData = lView[TVIEW].data;
        var metadata = tData[bindingIndex];

        if (typeof metadata === 'string') {
          // metadata for property interpolation
          if (metadata.indexOf(INTERPOLATION_DELIMITER) > -1) {
            return constructDetailsForInterpolation(lView, bindingIndex, bindingIndex, metadata, newValue);
          } // metadata for property binding


          return {
            propName: metadata,
            oldValue: oldValue,
            newValue: newValue
          };
        } // metadata is not available for this expression, check if this expression is a part of the
        // property interpolation by going from the current binding index left and look for a string that
        // contains INTERPOLATION_DELIMITER, the layout in tView.data for this case will look like this:
        // [..., 'id�Prefix � and � suffix', null, null, null, ...]


        if (metadata === null) {
          var idx = bindingIndex - 1;

          while (typeof tData[idx] !== 'string' && tData[idx + 1] === null) {
            idx--;
          }

          var meta = tData[idx];

          if (typeof meta === 'string') {
            var matches = meta.match(new RegExp(INTERPOLATION_DELIMITER, 'g')); // first interpolation delimiter separates property name from interpolation parts (in case of
            // property interpolations), so we subtract one from total number of found delimiters

            if (matches && matches.length - 1 > bindingIndex - idx) {
              return constructDetailsForInterpolation(lView, idx, bindingIndex, meta, newValue);
            }
          }
        }

        return {
          propName: undefined,
          oldValue: oldValue,
          newValue: newValue
        };
      }
      /** Throws an error when a token is not found in DI. */


      function throwProviderNotFoundError(token, injectorName) {
        var injectorDetails = injectorName ? " in ".concat(injectorName) : '';
        throw new RuntimeError("201"
        /* PROVIDER_NOT_FOUND */
        , "No provider for ".concat(stringifyForError(token), " found").concat(injectorDetails));
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Represents a basic change from a previous to a new value for a single
       * property on a directive instance. Passed as a value in a
       * {@link SimpleChanges} object to the `ngOnChanges` hook.
       *
       * @see `OnChanges`
       *
       * @publicApi
       */


      var SimpleChange = /*#__PURE__*/function () {
        function SimpleChange(previousValue, currentValue, firstChange) {
          _classCallCheck2(this, SimpleChange);

          this.previousValue = previousValue;
          this.currentValue = currentValue;
          this.firstChange = firstChange;
        }
        /**
         * Check whether the new value is the first value assigned.
         */


        _createClass2(SimpleChange, [{
          key: "isFirstChange",
          value: function isFirstChange() {
            return this.firstChange;
          }
        }]);

        return SimpleChange;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * The NgOnChangesFeature decorates a component with support for the ngOnChanges
       * lifecycle hook, so it should be included in any component that implements
       * that hook.
       *
       * If the component or directive uses inheritance, the NgOnChangesFeature MUST
       * be included as a feature AFTER {@link InheritDefinitionFeature}, otherwise
       * inherited properties will not be propagated to the ngOnChanges lifecycle
       * hook.
       *
       * Example usage:
       *
       * ```
       * static ɵcmp = defineComponent({
       *   ...
       *   inputs: {name: 'publicName'},
       *   features: [NgOnChangesFeature]
       * });
       * ```
       *
       * @codeGenApi
       */


      function ɵɵNgOnChangesFeature() {
        return NgOnChangesFeatureImpl;
      }

      function NgOnChangesFeatureImpl(definition) {
        if (definition.type.prototype.ngOnChanges) {
          definition.setInput = ngOnChangesSetInput;
        }

        return rememberChangeHistoryAndInvokeOnChangesHook;
      } // This option ensures that the ngOnChanges lifecycle hook will be inherited
      // from superclasses (in InheritDefinitionFeature).

      /** @nocollapse */
      // tslint:disable-next-line:no-toplevel-property-access


      ɵɵNgOnChangesFeature.ngInherit = true;
      /**
       * This is a synthetic lifecycle hook which gets inserted into `TView.preOrderHooks` to simulate
       * `ngOnChanges`.
       *
       * The hook reads the `NgSimpleChangesStore` data from the component instance and if changes are
       * found it invokes `ngOnChanges` on the component instance.
       *
       * @param this Component instance. Because this function gets inserted into `TView.preOrderHooks`,
       *     it is guaranteed to be called with component instance.
       */

      function rememberChangeHistoryAndInvokeOnChangesHook() {
        var simpleChangesStore = getSimpleChangesStore(this);
        var current = simpleChangesStore === null || simpleChangesStore === void 0 ? void 0 : simpleChangesStore.current;

        if (current) {
          var previous = simpleChangesStore.previous;

          if (previous === EMPTY_OBJ) {
            simpleChangesStore.previous = current;
          } else {
            // New changes are copied to the previous store, so that we don't lose history for inputs
            // which were not changed this time
            for (var key in current) {
              previous[key] = current[key];
            }
          }

          simpleChangesStore.current = null;
          this.ngOnChanges(current);
        }
      }

      function ngOnChangesSetInput(instance, value, publicName, privateName) {
        var simpleChangesStore = getSimpleChangesStore(instance) || setSimpleChangesStore(instance, {
          previous: EMPTY_OBJ,
          current: null
        });
        var current = simpleChangesStore.current || (simpleChangesStore.current = {});
        var previous = simpleChangesStore.previous;
        var declaredName = this.declaredInputs[publicName];
        var previousChange = previous[declaredName];
        current[declaredName] = new SimpleChange(previousChange && previousChange.currentValue, value, previous === EMPTY_OBJ);
        instance[privateName] = value;
      }

      var SIMPLE_CHANGES_STORE = '__ngSimpleChanges__';

      function getSimpleChangesStore(instance) {
        return instance[SIMPLE_CHANGES_STORE] || null;
      }

      function setSimpleChangesStore(instance, store) {
        return instance[SIMPLE_CHANGES_STORE] = store;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var SVG_NAMESPACE = 'http://www.w3.org/2000/svg';
      var MATH_ML_NAMESPACE = 'http://www.w3.org/1998/MathML/';
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * This property will be monkey-patched on elements, components and directives
       */

      var MONKEY_PATCH_KEY_NAME = '__ngContext__';
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Most of the use of `document` in Angular is from within the DI system so it is possible to simply
       * inject the `DOCUMENT` token and are done.
       *
       * Ivy is special because it does not rely upon the DI and must get hold of the document some other
       * way.
       *
       * The solution is to define `getDocument()` and `setDocument()` top-level functions for ivy.
       * Wherever ivy needs the global document, it calls `getDocument()` instead.
       *
       * When running ivy outside of a browser environment, it is necessary to call `setDocument()` to
       * tell ivy what the global `document` is.
       *
       * Angular does this for us in each of the standard platforms (`Browser`, `Server`, and `WebWorker`)
       * by calling `setDocument()` when providing the `DOCUMENT` token.
       */

      var DOCUMENT = undefined;
      /**
       * Tell ivy what the `document` is for this platform.
       *
       * It is only necessary to call this if the current platform is not a browser.
       *
       * @param document The object representing the global `document` in this environment.
       */

      function setDocument(document) {
        DOCUMENT = document;
      }
      /**
       * Access the object that represents the `document` for this platform.
       *
       * Ivy calls this whenever it needs to access the `document` object.
       * For example to create the renderer or to do sanitization.
       */


      function getDocument() {
        if (DOCUMENT !== undefined) {
          return DOCUMENT;
        } else if (typeof document !== 'undefined') {
          return document;
        } // No "document" can be found. This should only happen if we are running ivy outside Angular and
        // the current platform is not a browser. Since this is not a supported scenario at the moment
        // this should not happen in Angular apps.
        // Once we support running ivy outside of Angular we will need to publish `setDocument()` as a
        // public API. Meanwhile we just return `undefined` and let the application fail.


        return undefined;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */
      // TODO: cleanup once the code is merged in angular/angular


      var RendererStyleFlags3;

      (function (RendererStyleFlags3) {
        RendererStyleFlags3[RendererStyleFlags3["Important"] = 1] = "Important";
        RendererStyleFlags3[RendererStyleFlags3["DashCase"] = 2] = "DashCase";
      })(RendererStyleFlags3 || (RendererStyleFlags3 = {}));
      /** Returns whether the `renderer` is a `ProceduralRenderer3` */


      function isProceduralRenderer(renderer) {
        return !!renderer.listen;
      }

      var ɵ0$3 = function ɵ0$3(hostElement, rendererType) {
        return getDocument();
      };

      var domRendererFactory3 = {
        createRenderer: ɵ0$3
      }; // Note: This hack is necessary so we don't erroneously get a circular dependency
      // failure based on types.

      var unusedValueExportToPlacateAjd$2 = 1;
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * For efficiency reasons we often put several different data types (`RNode`, `LView`, `LContainer`)
       * in same location in `LView`. This is because we don't want to pre-allocate space for it
       * because the storage is sparse. This file contains utilities for dealing with such data types.
       *
       * How do we know what is stored at a given location in `LView`.
       * - `Array.isArray(value) === false` => `RNode` (The normal storage value)
       * - `Array.isArray(value) === true` => then the `value[0]` represents the wrapped value.
       *   - `typeof value[TYPE] === 'object'` => `LView`
       *      - This happens when we have a component at a given location
       *   - `typeof value[TYPE] === true` => `LContainer`
       *      - This happens when we have `LContainer` binding at a given location.
       *
       *
       * NOTE: it is assumed that `Array.isArray` and `typeof` operations are very efficient.
       */

      /**
       * Returns `RNode`.
       * @param value wrapped value of `RNode`, `LView`, `LContainer`
       */

      function unwrapRNode(value) {
        while (Array.isArray(value)) {
          value = value[HOST];
        }

        return value;
      }
      /**
       * Returns `LView` or `null` if not found.
       * @param value wrapped value of `RNode`, `LView`, `LContainer`
       */


      function unwrapLView(value) {
        while (Array.isArray(value)) {
          // This check is same as `isLView()` but we don't call at as we don't want to call
          // `Array.isArray()` twice and give JITer more work for inlining.
          if (typeof value[TYPE] === 'object') return value;
          value = value[HOST];
        }

        return null;
      }
      /**
       * Returns `LContainer` or `null` if not found.
       * @param value wrapped value of `RNode`, `LView`, `LContainer`
       */


      function unwrapLContainer(value) {
        while (Array.isArray(value)) {
          // This check is same as `isLContainer()` but we don't call at as we don't want to call
          // `Array.isArray()` twice and give JITer more work for inlining.
          if (value[TYPE] === true) return value;
          value = value[HOST];
        }

        return null;
      }
      /**
       * Retrieves an element value from the provided `viewData`, by unwrapping
       * from any containers, component views, or style contexts.
       */


      function getNativeByIndex(index, lView) {
        ngDevMode && assertIndexInRange(lView, index);
        ngDevMode && assertGreaterThanOrEqual(index, HEADER_OFFSET, 'Expected to be past HEADER_OFFSET');
        return unwrapRNode(lView[index]);
      }
      /**
       * Retrieve an `RNode` for a given `TNode` and `LView`.
       *
       * This function guarantees in dev mode to retrieve a non-null `RNode`.
       *
       * @param tNode
       * @param lView
       */


      function getNativeByTNode(tNode, lView) {
        ngDevMode && assertTNodeForLView(tNode, lView);
        ngDevMode && assertIndexInRange(lView, tNode.index);
        var node = unwrapRNode(lView[tNode.index]);
        ngDevMode && !isProceduralRenderer(lView[RENDERER]) && assertDomNode(node);
        return node;
      }
      /**
       * Retrieve an `RNode` or `null` for a given `TNode` and `LView`.
       *
       * Some `TNode`s don't have associated `RNode`s. For example `Projection`
       *
       * @param tNode
       * @param lView
       */


      function getNativeByTNodeOrNull(tNode, lView) {
        var index = tNode === null ? -1 : tNode.index;

        if (index !== -1) {
          ngDevMode && assertTNodeForLView(tNode, lView);
          var node = unwrapRNode(lView[index]);
          ngDevMode && node !== null && !isProceduralRenderer(lView[RENDERER]) && assertDomNode(node);
          return node;
        }

        return null;
      } // fixme(misko): The return Type should be `TNode|null`


      function getTNode(tView, index) {
        ngDevMode && assertGreaterThan(index, -1, 'wrong index for TNode');
        ngDevMode && assertLessThan(index, tView.data.length, 'wrong index for TNode');
        var tNode = tView.data[index];
        ngDevMode && tNode !== null && assertTNode(tNode);
        return tNode;
      }
      /** Retrieves a value from any `LView` or `TData`. */


      function load(view, index) {
        ngDevMode && assertIndexInRange(view, index);
        return view[index];
      }

      function getComponentLViewByIndex(nodeIndex, hostView) {
        // Could be an LView or an LContainer. If LContainer, unwrap to find LView.
        ngDevMode && assertIndexInRange(hostView, nodeIndex);
        var slotValue = hostView[nodeIndex];
        var lView = isLView(slotValue) ? slotValue : slotValue[HOST];
        return lView;
      }
      /**
       * Returns the monkey-patch value data present on the target (which could be
       * a component, directive or a DOM node).
       */


      function readPatchedData(target) {
        ngDevMode && assertDefined(target, 'Target expected');
        return target[MONKEY_PATCH_KEY_NAME] || null;
      }

      function readPatchedLView(target) {
        var value = readPatchedData(target);

        if (value) {
          return Array.isArray(value) ? value : value.lView;
        }

        return null;
      }
      /** Checks whether a given view is in creation mode */


      function isCreationMode(view) {
        return (view[FLAGS] & 4
        /* CreationMode */
        ) === 4
        /* CreationMode */
        ;
      }
      /**
       * Returns a boolean for whether the view is attached to the change detection tree.
       *
       * Note: This determines whether a view should be checked, not whether it's inserted
       * into a container. For that, you'll want `viewAttachedToContainer` below.
       */


      function viewAttachedToChangeDetector(view) {
        return (view[FLAGS] & 128
        /* Attached */
        ) === 128
        /* Attached */
        ;
      }
      /** Returns a boolean for whether the view is attached to a container. */


      function viewAttachedToContainer(view) {
        return isLContainer(view[PARENT]);
      }

      function getConstant(consts, index) {
        if (index === null || index === undefined) return null;
        ngDevMode && assertIndexInRange(consts, index);
        return consts[index];
      }
      /**
       * Resets the pre-order hook flags of the view.
       * @param lView the LView on which the flags are reset
       */


      function resetPreOrderHookFlags(lView) {
        lView[PREORDER_HOOK_FLAGS] = 0;
      }
      /**
       * Updates the `TRANSPLANTED_VIEWS_TO_REFRESH` counter on the `LContainer` as well as the parents
       * whose
       *  1. counter goes from 0 to 1, indicating that there is a new child that has a view to refresh
       *  or
       *  2. counter goes from 1 to 0, indicating there are no more descendant views to refresh
       */


      function updateTransplantedViewCount(lContainer, amount) {
        lContainer[TRANSPLANTED_VIEWS_TO_REFRESH] += amount;
        var viewOrContainer = lContainer;
        var parent = lContainer[PARENT];

        while (parent !== null && (amount === 1 && viewOrContainer[TRANSPLANTED_VIEWS_TO_REFRESH] === 1 || amount === -1 && viewOrContainer[TRANSPLANTED_VIEWS_TO_REFRESH] === 0)) {
          parent[TRANSPLANTED_VIEWS_TO_REFRESH] += amount;
          viewOrContainer = parent;
          parent = parent[PARENT];
        }
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var instructionState = {
        lFrame: createLFrame(null),
        bindingsEnabled: true,
        isInCheckNoChangesMode: false
      };
      /**
       * Returns true if the instruction state stack is empty.
       *
       * Intended to be called from tests only (tree shaken otherwise).
       */

      function specOnlyIsInstructionStateEmpty() {
        return instructionState.lFrame.parent === null;
      }

      function getElementDepthCount() {
        return instructionState.lFrame.elementDepthCount;
      }

      function increaseElementDepthCount() {
        instructionState.lFrame.elementDepthCount++;
      }

      function decreaseElementDepthCount() {
        instructionState.lFrame.elementDepthCount--;
      }

      function getBindingsEnabled() {
        return instructionState.bindingsEnabled;
      }
      /**
       * Enables directive matching on elements.
       *
       *  * Example:
       * ```
       * <my-comp my-directive>
       *   Should match component / directive.
       * </my-comp>
       * <div ngNonBindable>
       *   <!-- ɵɵdisableBindings() -->
       *   <my-comp my-directive>
       *     Should not match component / directive because we are in ngNonBindable.
       *   </my-comp>
       *   <!-- ɵɵenableBindings() -->
       * </div>
       * ```
       *
       * @codeGenApi
       */


      function ɵɵenableBindings() {
        instructionState.bindingsEnabled = true;
      }
      /**
       * Disables directive matching on element.
       *
       *  * Example:
       * ```
       * <my-comp my-directive>
       *   Should match component / directive.
       * </my-comp>
       * <div ngNonBindable>
       *   <!-- ɵɵdisableBindings() -->
       *   <my-comp my-directive>
       *     Should not match component / directive because we are in ngNonBindable.
       *   </my-comp>
       *   <!-- ɵɵenableBindings() -->
       * </div>
       * ```
       *
       * @codeGenApi
       */


      function ɵɵdisableBindings() {
        instructionState.bindingsEnabled = false;
      }
      /**
       * Return the current `LView`.
       */


      function getLView() {
        return instructionState.lFrame.lView;
      }
      /**
       * Return the current `TView`.
       */


      function getTView() {
        return instructionState.lFrame.tView;
      }
      /**
       * Restores `contextViewData` to the given OpaqueViewState instance.
       *
       * Used in conjunction with the getCurrentView() instruction to save a snapshot
       * of the current view and restore it when listeners are invoked. This allows
       * walking the declaration view tree in listeners to get vars from parent views.
       *
       * @param viewToRestore The OpaqueViewState instance to restore.
       *
       * @codeGenApi
       */


      function ɵɵrestoreView(viewToRestore) {
        instructionState.lFrame.contextLView = viewToRestore;
      }

      function getCurrentTNode() {
        var currentTNode = getCurrentTNodePlaceholderOk();

        while (currentTNode !== null && currentTNode.type === 64
        /* Placeholder */
        ) {
          currentTNode = currentTNode.parent;
        }

        return currentTNode;
      }

      function getCurrentTNodePlaceholderOk() {
        return instructionState.lFrame.currentTNode;
      }

      function getCurrentParentTNode() {
        var lFrame = instructionState.lFrame;
        var currentTNode = lFrame.currentTNode;
        return lFrame.isParent ? currentTNode : currentTNode.parent;
      }

      function setCurrentTNode(tNode, isParent) {
        ngDevMode && tNode && assertTNodeForTView(tNode, instructionState.lFrame.tView);
        var lFrame = instructionState.lFrame;
        lFrame.currentTNode = tNode;
        lFrame.isParent = isParent;
      }

      function isCurrentTNodeParent() {
        return instructionState.lFrame.isParent;
      }

      function setCurrentTNodeAsNotParent() {
        instructionState.lFrame.isParent = false;
      }

      function setCurrentTNodeAsParent() {
        instructionState.lFrame.isParent = true;
      }

      function getContextLView() {
        return instructionState.lFrame.contextLView;
      }

      function isInCheckNoChangesMode() {
        // TODO(misko): remove this from the LView since it is ngDevMode=true mode only.
        return instructionState.isInCheckNoChangesMode;
      }

      function setIsInCheckNoChangesMode(mode) {
        instructionState.isInCheckNoChangesMode = mode;
      } // top level variables should not be exported for performance reasons (PERF_NOTES.md)


      function getBindingRoot() {
        var lFrame = instructionState.lFrame;
        var index = lFrame.bindingRootIndex;

        if (index === -1) {
          index = lFrame.bindingRootIndex = lFrame.tView.bindingStartIndex;
        }

        return index;
      }

      function getBindingIndex() {
        return instructionState.lFrame.bindingIndex;
      }

      function setBindingIndex(value) {
        return instructionState.lFrame.bindingIndex = value;
      }

      function nextBindingIndex() {
        return instructionState.lFrame.bindingIndex++;
      }

      function incrementBindingIndex(count) {
        var lFrame = instructionState.lFrame;
        var index = lFrame.bindingIndex;
        lFrame.bindingIndex = lFrame.bindingIndex + count;
        return index;
      }

      function isInI18nBlock() {
        return instructionState.lFrame.inI18n;
      }

      function setInI18nBlock(isInI18nBlock) {
        instructionState.lFrame.inI18n = isInI18nBlock;
      }
      /**
       * Set a new binding root index so that host template functions can execute.
       *
       * Bindings inside the host template are 0 index. But because we don't know ahead of time
       * how many host bindings we have we can't pre-compute them. For this reason they are all
       * 0 index and we just shift the root so that they match next available location in the LView.
       *
       * @param bindingRootIndex Root index for `hostBindings`
       * @param currentDirectiveIndex `TData[currentDirectiveIndex]` will point to the current directive
       *        whose `hostBindings` are being processed.
       */


      function setBindingRootForHostBindings(bindingRootIndex, currentDirectiveIndex) {
        var lFrame = instructionState.lFrame;
        lFrame.bindingIndex = lFrame.bindingRootIndex = bindingRootIndex;
        setCurrentDirectiveIndex(currentDirectiveIndex);
      }
      /**
       * When host binding is executing this points to the directive index.
       * `TView.data[getCurrentDirectiveIndex()]` is `DirectiveDef`
       * `LView[getCurrentDirectiveIndex()]` is directive instance.
       */


      function getCurrentDirectiveIndex() {
        return instructionState.lFrame.currentDirectiveIndex;
      }
      /**
       * Sets an index of a directive whose `hostBindings` are being processed.
       *
       * @param currentDirectiveIndex `TData` index where current directive instance can be found.
       */


      function setCurrentDirectiveIndex(currentDirectiveIndex) {
        instructionState.lFrame.currentDirectiveIndex = currentDirectiveIndex;
      }
      /**
       * Retrieve the current `DirectiveDef` which is active when `hostBindings` instruction is being
       * executed.
       *
       * @param tData Current `TData` where the `DirectiveDef` will be looked up at.
       */


      function getCurrentDirectiveDef(tData) {
        var currentDirectiveIndex = instructionState.lFrame.currentDirectiveIndex;
        return currentDirectiveIndex === -1 ? null : tData[currentDirectiveIndex];
      }

      function getCurrentQueryIndex() {
        return instructionState.lFrame.currentQueryIndex;
      }

      function setCurrentQueryIndex(value) {
        instructionState.lFrame.currentQueryIndex = value;
      }
      /**
       * Returns a `TNode` of the location where the current `LView` is declared at.
       *
       * @param lView an `LView` that we want to find parent `TNode` for.
       */


      function getDeclarationTNode(lView) {
        var tView = lView[TVIEW]; // Return the declaration parent for embedded views

        if (tView.type === 2
        /* Embedded */
        ) {
          ngDevMode && assertDefined(tView.declTNode, 'Embedded TNodes should have declaration parents.');
          return tView.declTNode;
        } // Components don't have `TView.declTNode` because each instance of component could be
        // inserted in different location, hence `TView.declTNode` is meaningless.
        // Falling back to `T_HOST` in case we cross component boundary.


        if (tView.type === 1
        /* Component */
        ) {
          return lView[T_HOST];
        } // Remaining TNode type is `TViewType.Root` which doesn't have a parent TNode.


        return null;
      }
      /**
       * This is a light weight version of the `enterView` which is needed by the DI system.
       *
       * @param lView `LView` location of the DI context.
       * @param tNode `TNode` for DI context
       * @param flags DI context flags. if `SkipSelf` flag is set than we walk up the declaration
       *     tree from `tNode`  until we find parent declared `TElementNode`.
       * @returns `true` if we have successfully entered DI associated with `tNode` (or with declared
       *     `TNode` if `flags` has  `SkipSelf`). Failing to enter DI implies that no associated
       *     `NodeInjector` can be found and we should instead use `ModuleInjector`.
       *     - If `true` than this call must be fallowed by `leaveDI`
       *     - If `false` than this call failed and we should NOT call `leaveDI`
       */


      function enterDI(lView, tNode, flags) {
        ngDevMode && assertLViewOrUndefined(lView);

        if (flags & InjectFlags.SkipSelf) {
          ngDevMode && assertTNodeForTView(tNode, lView[TVIEW]);
          var parentTNode = tNode;
          var parentLView = lView;

          while (true) {
            ngDevMode && assertDefined(parentTNode, 'Parent TNode should be defined');
            parentTNode = parentTNode.parent;

            if (parentTNode === null && !(flags & InjectFlags.Host)) {
              parentTNode = getDeclarationTNode(parentLView);
              if (parentTNode === null) break; // In this case, a parent exists and is definitely an element. So it will definitely
              // have an existing lView as the declaration view, which is why we can assume it's defined.

              ngDevMode && assertDefined(parentLView, 'Parent LView should be defined');
              parentLView = parentLView[DECLARATION_VIEW]; // In Ivy there are Comment nodes that correspond to ngIf and NgFor embedded directives
              // We want to skip those and look only at Elements and ElementContainers to ensure
              // we're looking at true parent nodes, and not content or other types.

              if (parentTNode.type & (2
              /* Element */
              | 8
              /* ElementContainer */
              )) {
                break;
              }
            } else {
              break;
            }
          }

          if (parentTNode === null) {
            // If we failed to find a parent TNode this means that we should use module injector.
            return false;
          } else {
            tNode = parentTNode;
            lView = parentLView;
          }
        }

        ngDevMode && assertTNodeForLView(tNode, lView);
        var lFrame = instructionState.lFrame = allocLFrame();
        lFrame.currentTNode = tNode;
        lFrame.lView = lView;
        return true;
      }
      /**
       * Swap the current lView with a new lView.
       *
       * For performance reasons we store the lView in the top level of the module.
       * This way we minimize the number of properties to read. Whenever a new view
       * is entered we have to store the lView for later, and when the view is
       * exited the state has to be restored
       *
       * @param newView New lView to become active
       * @returns the previously active lView;
       */


      function enterView(newView) {
        ngDevMode && assertNotEqual(newView[0], newView[1], '????');
        ngDevMode && assertLViewOrUndefined(newView);
        var newLFrame = allocLFrame();

        if (ngDevMode) {
          assertEqual(newLFrame.isParent, true, 'Expected clean LFrame');
          assertEqual(newLFrame.lView, null, 'Expected clean LFrame');
          assertEqual(newLFrame.tView, null, 'Expected clean LFrame');
          assertEqual(newLFrame.selectedIndex, -1, 'Expected clean LFrame');
          assertEqual(newLFrame.elementDepthCount, 0, 'Expected clean LFrame');
          assertEqual(newLFrame.currentDirectiveIndex, -1, 'Expected clean LFrame');
          assertEqual(newLFrame.currentNamespace, null, 'Expected clean LFrame');
          assertEqual(newLFrame.bindingRootIndex, -1, 'Expected clean LFrame');
          assertEqual(newLFrame.currentQueryIndex, 0, 'Expected clean LFrame');
        }

        var tView = newView[TVIEW];
        instructionState.lFrame = newLFrame;
        ngDevMode && tView.firstChild && assertTNodeForTView(tView.firstChild, tView);
        newLFrame.currentTNode = tView.firstChild;
        newLFrame.lView = newView;
        newLFrame.tView = tView;
        newLFrame.contextLView = newView;
        newLFrame.bindingIndex = tView.bindingStartIndex;
        newLFrame.inI18n = false;
      }
      /**
       * Allocates next free LFrame. This function tries to reuse the `LFrame`s to lower memory pressure.
       */


      function allocLFrame() {
        var currentLFrame = instructionState.lFrame;
        var childLFrame = currentLFrame === null ? null : currentLFrame.child;
        var newLFrame = childLFrame === null ? createLFrame(currentLFrame) : childLFrame;
        return newLFrame;
      }

      function createLFrame(parent) {
        var lFrame = {
          currentTNode: null,
          isParent: true,
          lView: null,
          tView: null,
          selectedIndex: -1,
          contextLView: null,
          elementDepthCount: 0,
          currentNamespace: null,
          currentDirectiveIndex: -1,
          bindingRootIndex: -1,
          bindingIndex: -1,
          currentQueryIndex: 0,
          parent: parent,
          child: null,
          inI18n: false
        };
        parent !== null && (parent.child = lFrame); // link the new LFrame for reuse.

        return lFrame;
      }
      /**
       * A lightweight version of leave which is used with DI.
       *
       * This function only resets `currentTNode` and `LView` as those are the only properties
       * used with DI (`enterDI()`).
       *
       * NOTE: This function is reexported as `leaveDI`. However `leaveDI` has return type of `void` where
       * as `leaveViewLight` has `LFrame`. This is so that `leaveViewLight` can be used in `leaveView`.
       */


      function leaveViewLight() {
        var oldLFrame = instructionState.lFrame;
        instructionState.lFrame = oldLFrame.parent;
        oldLFrame.currentTNode = null;
        oldLFrame.lView = null;
        return oldLFrame;
      }
      /**
       * This is a lightweight version of the `leaveView` which is needed by the DI system.
       *
       * NOTE: this function is an alias so that we can change the type of the function to have `void`
       * return type.
       */


      var leaveDI = leaveViewLight;
      /**
       * Leave the current `LView`
       *
       * This pops the `LFrame` with the associated `LView` from the stack.
       *
       * IMPORTANT: We must zero out the `LFrame` values here otherwise they will be retained. This is
       * because for performance reasons we don't release `LFrame` but rather keep it for next use.
       */

      function leaveView() {
        var oldLFrame = leaveViewLight();
        oldLFrame.isParent = true;
        oldLFrame.tView = null;
        oldLFrame.selectedIndex = -1;
        oldLFrame.contextLView = null;
        oldLFrame.elementDepthCount = 0;
        oldLFrame.currentDirectiveIndex = -1;
        oldLFrame.currentNamespace = null;
        oldLFrame.bindingRootIndex = -1;
        oldLFrame.bindingIndex = -1;
        oldLFrame.currentQueryIndex = 0;
      }

      function nextContextImpl(level) {
        var contextLView = instructionState.lFrame.contextLView = walkUpViews(level, instructionState.lFrame.contextLView);
        return contextLView[CONTEXT];
      }

      function walkUpViews(nestingLevel, currentView) {
        while (nestingLevel > 0) {
          ngDevMode && assertDefined(currentView[DECLARATION_VIEW], 'Declaration view should be defined if nesting level is greater than 0.');
          currentView = currentView[DECLARATION_VIEW];
          nestingLevel--;
        }

        return currentView;
      }
      /**
       * Gets the currently selected element index.
       *
       * Used with {@link property} instruction (and more in the future) to identify the index in the
       * current `LView` to act on.
       */


      function getSelectedIndex() {
        return instructionState.lFrame.selectedIndex;
      }
      /**
       * Sets the most recent index passed to {@link select}
       *
       * Used with {@link property} instruction (and more in the future) to identify the index in the
       * current `LView` to act on.
       *
       * (Note that if an "exit function" was set earlier (via `setElementExitFn()`) then that will be
       * run if and when the provided `index` value is different from the current selected index value.)
       */


      function setSelectedIndex(index) {
        ngDevMode && index !== -1 && assertGreaterThanOrEqual(index, HEADER_OFFSET, 'Index must be past HEADER_OFFSET (or -1).');
        ngDevMode && assertLessThan(index, instructionState.lFrame.lView.length, 'Can\'t set index passed end of LView');
        instructionState.lFrame.selectedIndex = index;
      }
      /**
       * Gets the `tNode` that represents currently selected element.
       */


      function getSelectedTNode() {
        var lFrame = instructionState.lFrame;
        return getTNode(lFrame.tView, lFrame.selectedIndex);
      }
      /**
       * Sets the namespace used to create elements to `'http://www.w3.org/2000/svg'` in global state.
       *
       * @codeGenApi
       */


      function ɵɵnamespaceSVG() {
        instructionState.lFrame.currentNamespace = SVG_NAMESPACE;
      }
      /**
       * Sets the namespace used to create elements to `'http://www.w3.org/1998/MathML/'` in global state.
       *
       * @codeGenApi
       */


      function ɵɵnamespaceMathML() {
        instructionState.lFrame.currentNamespace = MATH_ML_NAMESPACE;
      }
      /**
       * Sets the namespace used to create elements to `null`, which forces element creation to use
       * `createElement` rather than `createElementNS`.
       *
       * @codeGenApi
       */


      function ɵɵnamespaceHTML() {
        namespaceHTMLInternal();
      }
      /**
       * Sets the namespace used to create elements to `null`, which forces element creation to use
       * `createElement` rather than `createElementNS`.
       */


      function namespaceHTMLInternal() {
        instructionState.lFrame.currentNamespace = null;
      }

      function getNamespace() {
        return instructionState.lFrame.currentNamespace;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Adds all directive lifecycle hooks from the given `DirectiveDef` to the given `TView`.
       *
       * Must be run *only* on the first template pass.
       *
       * Sets up the pre-order hooks on the provided `tView`,
       * see {@link HookData} for details about the data structure.
       *
       * @param directiveIndex The index of the directive in LView
       * @param directiveDef The definition containing the hooks to setup in tView
       * @param tView The current TView
       */


      function registerPreOrderHooks(directiveIndex, directiveDef, tView) {
        ngDevMode && assertFirstCreatePass(tView);
        var _directiveDef$type$pr = directiveDef.type.prototype,
            ngOnChanges = _directiveDef$type$pr.ngOnChanges,
            ngOnInit = _directiveDef$type$pr.ngOnInit,
            ngDoCheck = _directiveDef$type$pr.ngDoCheck;

        if (ngOnChanges) {
          var wrappedOnChanges = NgOnChangesFeatureImpl(directiveDef);
          (tView.preOrderHooks || (tView.preOrderHooks = [])).push(directiveIndex, wrappedOnChanges);
          (tView.preOrderCheckHooks || (tView.preOrderCheckHooks = [])).push(directiveIndex, wrappedOnChanges);
        }

        if (ngOnInit) {
          (tView.preOrderHooks || (tView.preOrderHooks = [])).push(0 - directiveIndex, ngOnInit);
        }

        if (ngDoCheck) {
          (tView.preOrderHooks || (tView.preOrderHooks = [])).push(directiveIndex, ngDoCheck);
          (tView.preOrderCheckHooks || (tView.preOrderCheckHooks = [])).push(directiveIndex, ngDoCheck);
        }
      }
      /**
       *
       * Loops through the directives on the provided `tNode` and queues hooks to be
       * run that are not initialization hooks.
       *
       * Should be executed during `elementEnd()` and similar to
       * preserve hook execution order. Content, view, and destroy hooks for projected
       * components and directives must be called *before* their hosts.
       *
       * Sets up the content, view, and destroy hooks on the provided `tView`,
       * see {@link HookData} for details about the data structure.
       *
       * NOTE: This does not set up `onChanges`, `onInit` or `doCheck`, those are set up
       * separately at `elementStart`.
       *
       * @param tView The current TView
       * @param tNode The TNode whose directives are to be searched for hooks to queue
       */


      function registerPostOrderHooks(tView, tNode) {
        ngDevMode && assertFirstCreatePass(tView); // It's necessary to loop through the directives at elementEnd() (rather than processing in
        // directiveCreate) so we can preserve the current hook order. Content, view, and destroy
        // hooks for projected components and directives must be called *before* their hosts.

        for (var i = tNode.directiveStart, end = tNode.directiveEnd; i < end; i++) {
          var _directiveDef = tView.data[i];
          ngDevMode && assertDefined(_directiveDef, 'Expecting DirectiveDef');
          var lifecycleHooks = _directiveDef.type.prototype;
          var ngAfterContentInit = lifecycleHooks.ngAfterContentInit,
              ngAfterContentChecked = lifecycleHooks.ngAfterContentChecked,
              ngAfterViewInit = lifecycleHooks.ngAfterViewInit,
              ngAfterViewChecked = lifecycleHooks.ngAfterViewChecked,
              ngOnDestroy = lifecycleHooks.ngOnDestroy;

          if (ngAfterContentInit) {
            (tView.contentHooks || (tView.contentHooks = [])).push(-i, ngAfterContentInit);
          }

          if (ngAfterContentChecked) {
            (tView.contentHooks || (tView.contentHooks = [])).push(i, ngAfterContentChecked);
            (tView.contentCheckHooks || (tView.contentCheckHooks = [])).push(i, ngAfterContentChecked);
          }

          if (ngAfterViewInit) {
            (tView.viewHooks || (tView.viewHooks = [])).push(-i, ngAfterViewInit);
          }

          if (ngAfterViewChecked) {
            (tView.viewHooks || (tView.viewHooks = [])).push(i, ngAfterViewChecked);
            (tView.viewCheckHooks || (tView.viewCheckHooks = [])).push(i, ngAfterViewChecked);
          }

          if (ngOnDestroy != null) {
            (tView.destroyHooks || (tView.destroyHooks = [])).push(i, ngOnDestroy);
          }
        }
      }
      /**
       * Executing hooks requires complex logic as we need to deal with 2 constraints.
       *
       * 1. Init hooks (ngOnInit, ngAfterContentInit, ngAfterViewInit) must all be executed once and only
       * once, across many change detection cycles. This must be true even if some hooks throw, or if
       * some recursively trigger a change detection cycle.
       * To solve that, it is required to track the state of the execution of these init hooks.
       * This is done by storing and maintaining flags in the view: the {@link InitPhaseState},
       * and the index within that phase. They can be seen as a cursor in the following structure:
       * [[onInit1, onInit2], [afterContentInit1], [afterViewInit1, afterViewInit2, afterViewInit3]]
       * They are are stored as flags in LView[FLAGS].
       *
       * 2. Pre-order hooks can be executed in batches, because of the select instruction.
       * To be able to pause and resume their execution, we also need some state about the hook's array
       * that is being processed:
       * - the index of the next hook to be executed
       * - the number of init hooks already found in the processed part of the  array
       * They are are stored as flags in LView[PREORDER_HOOK_FLAGS].
       */

      /**
       * Executes pre-order check hooks ( OnChanges, DoChanges) given a view where all the init hooks were
       * executed once. This is a light version of executeInitAndCheckPreOrderHooks where we can skip read
       * / write of the init-hooks related flags.
       * @param lView The LView where hooks are defined
       * @param hooks Hooks to be run
       * @param nodeIndex 3 cases depending on the value:
       * - undefined: all hooks from the array should be executed (post-order case)
       * - null: execute hooks only from the saved index until the end of the array (pre-order case, when
       * flushing the remaining hooks)
       * - number: execute hooks only from the saved index until that node index exclusive (pre-order
       * case, when executing select(number))
       */


      function executeCheckHooks(lView, hooks, nodeIndex) {
        callHooks(lView, hooks, 3
        /* InitPhaseCompleted */
        , nodeIndex);
      }
      /**
       * Executes post-order init and check hooks (one of AfterContentInit, AfterContentChecked,
       * AfterViewInit, AfterViewChecked) given a view where there are pending init hooks to be executed.
       * @param lView The LView where hooks are defined
       * @param hooks Hooks to be run
       * @param initPhase A phase for which hooks should be run
       * @param nodeIndex 3 cases depending on the value:
       * - undefined: all hooks from the array should be executed (post-order case)
       * - null: execute hooks only from the saved index until the end of the array (pre-order case, when
       * flushing the remaining hooks)
       * - number: execute hooks only from the saved index until that node index exclusive (pre-order
       * case, when executing select(number))
       */


      function executeInitAndCheckHooks(lView, hooks, initPhase, nodeIndex) {
        ngDevMode && assertNotEqual(initPhase, 3
        /* InitPhaseCompleted */
        , 'Init pre-order hooks should not be called more than once');

        if ((lView[FLAGS] & 3
        /* InitPhaseStateMask */
        ) === initPhase) {
          callHooks(lView, hooks, initPhase, nodeIndex);
        }
      }

      function incrementInitPhaseFlags(lView, initPhase) {
        ngDevMode && assertNotEqual(initPhase, 3
        /* InitPhaseCompleted */
        , 'Init hooks phase should not be incremented after all init hooks have been run.');
        var flags = lView[FLAGS];

        if ((flags & 3
        /* InitPhaseStateMask */
        ) === initPhase) {
          flags &= 2047
          /* IndexWithinInitPhaseReset */
          ;
          flags += 1
          /* InitPhaseStateIncrementer */
          ;
          lView[FLAGS] = flags;
        }
      }
      /**
       * Calls lifecycle hooks with their contexts, skipping init hooks if it's not
       * the first LView pass
       *
       * @param currentView The current view
       * @param arr The array in which the hooks are found
       * @param initPhaseState the current state of the init phase
       * @param currentNodeIndex 3 cases depending on the value:
       * - undefined: all hooks from the array should be executed (post-order case)
       * - null: execute hooks only from the saved index until the end of the array (pre-order case, when
       * flushing the remaining hooks)
       * - number: execute hooks only from the saved index until that node index exclusive (pre-order
       * case, when executing select(number))
       */


      function callHooks(currentView, arr, initPhase, currentNodeIndex) {
        ngDevMode && assertEqual(isInCheckNoChangesMode(), false, 'Hooks should never be run when in check no changes mode.');
        var startIndex = currentNodeIndex !== undefined ? currentView[PREORDER_HOOK_FLAGS] & 65535
        /* IndexOfTheNextPreOrderHookMaskMask */
        : 0;
        var nodeIndexLimit = currentNodeIndex != null ? currentNodeIndex : -1;
        var lastNodeIndexFound = 0;

        for (var i = startIndex; i < arr.length; i++) {
          var hook = arr[i + 1];

          if (typeof hook === 'number') {
            lastNodeIndexFound = arr[i];

            if (currentNodeIndex != null && lastNodeIndexFound >= currentNodeIndex) {
              break;
            }
          } else {
            var isInitHook = arr[i] < 0;
            if (isInitHook) currentView[PREORDER_HOOK_FLAGS] += 65536
            /* NumberOfInitHooksCalledIncrementer */
            ;

            if (lastNodeIndexFound < nodeIndexLimit || nodeIndexLimit == -1) {
              callHook(currentView, initPhase, arr, i);
              currentView[PREORDER_HOOK_FLAGS] = (currentView[PREORDER_HOOK_FLAGS] & 4294901760
              /* NumberOfInitHooksCalledMask */
              ) + i + 2;
            }

            i++;
          }
        }
      }
      /**
       * Execute one hook against the current `LView`.
       *
       * @param currentView The current view
       * @param initPhaseState the current state of the init phase
       * @param arr The array in which the hooks are found
       * @param i The current index within the hook data array
       */


      function callHook(currentView, initPhase, arr, i) {
        var isInitHook = arr[i] < 0;
        var hook = arr[i + 1];
        var directiveIndex = isInitHook ? -arr[i] : arr[i];
        var directive = currentView[directiveIndex];

        if (isInitHook) {
          var indexWithintInitPhase = currentView[FLAGS] >> 11
          /* IndexWithinInitPhaseShift */
          ; // The init phase state must be always checked here as it may have been recursively
          // updated

          if (indexWithintInitPhase < currentView[PREORDER_HOOK_FLAGS] >> 16
          /* NumberOfInitHooksCalledShift */
          && (currentView[FLAGS] & 3
          /* InitPhaseStateMask */
          ) === initPhase) {
            currentView[FLAGS] += 2048
            /* IndexWithinInitPhaseIncrementer */
            ;
            hook.call(directive);
          }
        } else {
          hook.call(directive);
        }
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var NO_PARENT_INJECTOR = -1;
      /**
       * Each injector is saved in 9 contiguous slots in `LView` and 9 contiguous slots in
       * `TView.data`. This allows us to store information about the current node's tokens (which
       * can be shared in `TView`) as well as the tokens of its ancestor nodes (which cannot be
       * shared, so they live in `LView`).
       *
       * Each of these slots (aside from the last slot) contains a bloom filter. This bloom filter
       * determines whether a directive is available on the associated node or not. This prevents us
       * from searching the directives array at this level unless it's probable the directive is in it.
       *
       * See: https://en.wikipedia.org/wiki/Bloom_filter for more about bloom filters.
       *
       * Because all injectors have been flattened into `LView` and `TViewData`, they cannot typed
       * using interfaces as they were previously. The start index of each `LInjector` and `TInjector`
       * will differ based on where it is flattened into the main array, so it's not possible to know
       * the indices ahead of time and save their types here. The interfaces are still included here
       * for documentation purposes.
       *
       * export interface LInjector extends Array<any> {
       *
       *    // Cumulative bloom for directive IDs 0-31  (IDs are % BLOOM_SIZE)
       *    [0]: number;
       *
       *    // Cumulative bloom for directive IDs 32-63
       *    [1]: number;
       *
       *    // Cumulative bloom for directive IDs 64-95
       *    [2]: number;
       *
       *    // Cumulative bloom for directive IDs 96-127
       *    [3]: number;
       *
       *    // Cumulative bloom for directive IDs 128-159
       *    [4]: number;
       *
       *    // Cumulative bloom for directive IDs 160 - 191
       *    [5]: number;
       *
       *    // Cumulative bloom for directive IDs 192 - 223
       *    [6]: number;
       *
       *    // Cumulative bloom for directive IDs 224 - 255
       *    [7]: number;
       *
       *    // We need to store a reference to the injector's parent so DI can keep looking up
       *    // the injector tree until it finds the dependency it's looking for.
       *    [PARENT_INJECTOR]: number;
       * }
       *
       * export interface TInjector extends Array<any> {
       *
       *    // Shared node bloom for directive IDs 0-31  (IDs are % BLOOM_SIZE)
       *    [0]: number;
       *
       *    // Shared node bloom for directive IDs 32-63
       *    [1]: number;
       *
       *    // Shared node bloom for directive IDs 64-95
       *    [2]: number;
       *
       *    // Shared node bloom for directive IDs 96-127
       *    [3]: number;
       *
       *    // Shared node bloom for directive IDs 128-159
       *    [4]: number;
       *
       *    // Shared node bloom for directive IDs 160 - 191
       *    [5]: number;
       *
       *    // Shared node bloom for directive IDs 192 - 223
       *    [6]: number;
       *
       *    // Shared node bloom for directive IDs 224 - 255
       *    [7]: number;
       *
       *    // Necessary to find directive indices for a particular node.
       *    [TNODE]: TElementNode|TElementContainerNode|TContainerNode;
       *  }
       */

      /**
       * Factory for creating instances of injectors in the NodeInjector.
       *
       * This factory is complicated by the fact that it can resolve `multi` factories as well.
       *
       * NOTE: Some of the fields are optional which means that this class has two hidden classes.
       * - One without `multi` support (most common)
       * - One with `multi` values, (rare).
       *
       * Since VMs can cache up to 4 inline hidden classes this is OK.
       *
       * - Single factory: Only `resolving` and `factory` is defined.
       * - `providers` factory: `componentProviders` is a number and `index = -1`.
       * - `viewProviders` factory: `componentProviders` is a number and `index` points to `providers`.
       */

      var NodeInjectorFactory = function NodeInjectorFactory(
      /**
       * Factory to invoke in order to create a new instance.
       */
      factory,
      /**
       * Set to `true` if the token is declared in `viewProviders` (or if it is component).
       */
      isViewProvider, injectImplementation) {
        _classCallCheck2(this, NodeInjectorFactory);

        this.factory = factory;
        /**
         * Marker set to true during factory invocation to see if we get into recursive loop.
         * Recursive loop causes an error to be displayed.
         */

        this.resolving = false;
        ngDevMode && assertDefined(factory, 'Factory not specified');
        ngDevMode && assertEqual(typeof factory, 'function', 'Expected factory function.');
        this.canSeeViewProviders = isViewProvider;
        this.injectImpl = injectImplementation;
      };

      function isFactory(obj) {
        return obj instanceof NodeInjectorFactory;
      } // Note: This hack is necessary so we don't erroneously get a circular dependency
      // failure based on types.


      var unusedValueExportToPlacateAjd$3 = 1;
      /**
       * Converts `TNodeType` into human readable text.
       * Make sure this matches with `TNodeType`
       */

      function toTNodeTypeAsString(tNodeType) {
        var text = '';
        tNodeType & 1
        /* Text */
        && (text += '|Text');
        tNodeType & 2
        /* Element */
        && (text += '|Element');
        tNodeType & 4
        /* Container */
        && (text += '|Container');
        tNodeType & 8
        /* ElementContainer */
        && (text += '|ElementContainer');
        tNodeType & 16
        /* Projection */
        && (text += '|Projection');
        tNodeType & 32
        /* Icu */
        && (text += '|IcuContainer');
        tNodeType & 64
        /* Placeholder */
        && (text += '|Placeholder');
        return text.length > 0 ? text.substring(1) : text;
      } // Note: This hack is necessary so we don't erroneously get a circular dependency
      // failure based on types.


      var unusedValueExportToPlacateAjd$4 = 1;
      /**
       * Returns `true` if the `TNode` has a directive which has `@Input()` for `class` binding.
       *
       * ```
       * <div my-dir [class]="exp"></div>
       * ```
       * and
       * ```
       * @Directive({
       * })
       * class MyDirective {
       *   @Input()
       *   class: string;
       * }
       * ```
       *
       * In the above case it is necessary to write the reconciled styling information into the
       * directive's input.
       *
       * @param tNode
       */

      function hasClassInput(tNode) {
        return (tNode.flags & 16
        /* hasClassInput */
        ) !== 0;
      }
      /**
       * Returns `true` if the `TNode` has a directive which has `@Input()` for `style` binding.
       *
       * ```
       * <div my-dir [style]="exp"></div>
       * ```
       * and
       * ```
       * @Directive({
       * })
       * class MyDirective {
       *   @Input()
       *   class: string;
       * }
       * ```
       *
       * In the above case it is necessary to write the reconciled styling information into the
       * directive's input.
       *
       * @param tNode
       */


      function hasStyleInput(tNode) {
        return (tNode.flags & 32
        /* hasStyleInput */
        ) !== 0;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function assertTNodeType(tNode, expectedTypes, message) {
        assertDefined(tNode, 'should be called with a TNode');

        if ((tNode.type & expectedTypes) === 0) {
          throwError(message || "Expected [".concat(toTNodeTypeAsString(expectedTypes), "] but got ").concat(toTNodeTypeAsString(tNode.type), "."));
        }
      }

      function assertPureTNodeType(type) {
        if (!(type === 2
        /* Element */
        || //
        type === 1
        /* Text */
        || //
        type === 4
        /* Container */
        || //
        type === 8
        /* ElementContainer */
        || //
        type === 32
        /* Icu */
        || //
        type === 16
        /* Projection */
        || //
        type === 64
        /* Placeholder */
        )) {
          throwError("Expected TNodeType to have only a single type selected, but got ".concat(toTNodeTypeAsString(type), "."));
        }
      }
      /**
       * Assigns all attribute values to the provided element via the inferred renderer.
       *
       * This function accepts two forms of attribute entries:
       *
       * default: (key, value):
       *  attrs = [key1, value1, key2, value2]
       *
       * namespaced: (NAMESPACE_MARKER, uri, name, value)
       *  attrs = [NAMESPACE_MARKER, uri, name, value, NAMESPACE_MARKER, uri, name, value]
       *
       * The `attrs` array can contain a mix of both the default and namespaced entries.
       * The "default" values are set without a marker, but if the function comes across
       * a marker value then it will attempt to set a namespaced value. If the marker is
       * not of a namespaced value then the function will quit and return the index value
       * where it stopped during the iteration of the attrs array.
       *
       * See [AttributeMarker] to understand what the namespace marker value is.
       *
       * Note that this instruction does not support assigning style and class values to
       * an element. See `elementStart` and `elementHostAttrs` to learn how styling values
       * are applied to an element.
       * @param renderer The renderer to be used
       * @param native The element that the attributes will be assigned to
       * @param attrs The attribute array of values that will be assigned to the element
       * @returns the index value that was last accessed in the attributes array
       */


      function setUpAttributes(renderer, _native, attrs) {
        var isProc = isProceduralRenderer(renderer);
        var i = 0;

        while (i < attrs.length) {
          var value = attrs[i];

          if (typeof value === 'number') {
            // only namespaces are supported. Other value types (such as style/class
            // entries) are not supported in this function.
            if (value !== 0
            /* NamespaceURI */
            ) {
              break;
            } // we just landed on the marker value ... therefore
            // we should skip to the next entry


            i++;
            var namespaceURI = attrs[i++];
            var attrName = attrs[i++];
            var attrVal = attrs[i++];
            ngDevMode && ngDevMode.rendererSetAttribute++;
            isProc ? renderer.setAttribute(_native, attrName, attrVal, namespaceURI) : _native.setAttributeNS(namespaceURI, attrName, attrVal);
          } else {
            // attrName is string;
            var _attrName = value;
            var _attrVal = attrs[++i]; // Standard attributes

            ngDevMode && ngDevMode.rendererSetAttribute++;

            if (isAnimationProp(_attrName)) {
              if (isProc) {
                renderer.setProperty(_native, _attrName, _attrVal);
              }
            } else {
              isProc ? renderer.setAttribute(_native, _attrName, _attrVal) : _native.setAttribute(_attrName, _attrVal);
            }

            i++;
          }
        } // another piece of code may iterate over the same attributes array. Therefore
        // it may be helpful to return the exact spot where the attributes array exited
        // whether by running into an unsupported marker or if all the static values were
        // iterated over.


        return i;
      }
      /**
       * Test whether the given value is a marker that indicates that the following
       * attribute values in a `TAttributes` array are only the names of attributes,
       * and not name-value pairs.
       * @param marker The attribute marker to test.
       * @returns true if the marker is a "name-only" marker (e.g. `Bindings`, `Template` or `I18n`).
       */


      function isNameOnlyAttributeMarker(marker) {
        return marker === 3
        /* Bindings */
        || marker === 4
        /* Template */
        || marker === 6
        /* I18n */
        ;
      }

      function isAnimationProp(name) {
        // Perf note: accessing charCodeAt to check for the first character of a string is faster as
        // compared to accessing a character at index 0 (ex. name[0]). The main reason for this is that
        // charCodeAt doesn't allocate memory to return a substring.
        return name.charCodeAt(0) === 64
        /* AT_SIGN */
        ;
      }
      /**
       * Merges `src` `TAttributes` into `dst` `TAttributes` removing any duplicates in the process.
       *
       * This merge function keeps the order of attrs same.
       *
       * @param dst Location of where the merged `TAttributes` should end up.
       * @param src `TAttributes` which should be appended to `dst`
       */


      function mergeHostAttrs(dst, src) {
        if (src === null || src.length === 0) {// do nothing
        } else if (dst === null || dst.length === 0) {
          // We have source, but dst is empty, just make a copy.
          dst = src.slice();
        } else {
          var srcMarker = -1
          /* ImplicitAttributes */
          ;

          for (var i = 0; i < src.length; i++) {
            var item = src[i];

            if (typeof item === 'number') {
              srcMarker = item;
            } else {
              if (srcMarker === 0
              /* NamespaceURI */
              ) {// Case where we need to consume `key1`, `key2`, `value` items.
              } else if (srcMarker === -1
              /* ImplicitAttributes */
              || srcMarker === 2
              /* Styles */
              ) {
                // Case where we have to consume `key1` and `value` only.
                mergeHostAttribute(dst, srcMarker, item, null, src[++i]);
              } else {
                // Case where we have to consume `key1` only.
                mergeHostAttribute(dst, srcMarker, item, null, null);
              }
            }
          }
        }

        return dst;
      }
      /**
       * Append `key`/`value` to existing `TAttributes` taking region marker and duplicates into account.
       *
       * @param dst `TAttributes` to append to.
       * @param marker Region where the `key`/`value` should be added.
       * @param key1 Key to add to `TAttributes`
       * @param key2 Key to add to `TAttributes` (in case of `AttributeMarker.NamespaceURI`)
       * @param value Value to add or to overwrite to `TAttributes` Only used if `marker` is not Class.
       */


      function mergeHostAttribute(dst, marker, key1, key2, value) {
        var i = 0; // Assume that new markers will be inserted at the end.

        var markerInsertPosition = dst.length; // scan until correct type.

        if (marker === -1
        /* ImplicitAttributes */
        ) {
          markerInsertPosition = -1;
        } else {
          while (i < dst.length) {
            var dstValue = dst[i++];

            if (typeof dstValue === 'number') {
              if (dstValue === marker) {
                markerInsertPosition = -1;
                break;
              } else if (dstValue > marker) {
                // We need to save this as we want the markers to be inserted in specific order.
                markerInsertPosition = i - 1;
                break;
              }
            }
          }
        } // search until you find place of insertion


        while (i < dst.length) {
          var item = dst[i];

          if (typeof item === 'number') {
            // since `i` started as the index after the marker, we did not find it if we are at the next
            // marker
            break;
          } else if (item === key1) {
            // We already have same token
            if (key2 === null) {
              if (value !== null) {
                dst[i + 1] = value;
              }

              return;
            } else if (key2 === dst[i + 1]) {
              dst[i + 2] = value;
              return;
            }
          } // Increment counter.


          i++;
          if (key2 !== null) i++;
          if (value !== null) i++;
        } // insert at location.


        if (markerInsertPosition !== -1) {
          dst.splice(markerInsertPosition, 0, marker);
          i = markerInsertPosition + 1;
        }

        dst.splice(i++, 0, key1);

        if (key2 !== null) {
          dst.splice(i++, 0, key2);
        }

        if (value !== null) {
          dst.splice(i++, 0, value);
        }
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */
      /// Parent Injector Utils ///////////////////////////////////////////////////////////////


      function hasParentInjector(parentLocation) {
        return parentLocation !== NO_PARENT_INJECTOR;
      }

      function getParentInjectorIndex(parentLocation) {
        ngDevMode && assertNumber(parentLocation, 'Number expected');
        ngDevMode && assertNotEqual(parentLocation, -1, 'Not a valid state.');
        var parentInjectorIndex = parentLocation & 32767
        /* InjectorIndexMask */
        ;
        ngDevMode && assertGreaterThan(parentInjectorIndex, HEADER_OFFSET, 'Parent injector must be pointing past HEADER_OFFSET.');
        return parentLocation & 32767
        /* InjectorIndexMask */
        ;
      }

      function getParentInjectorViewOffset(parentLocation) {
        return parentLocation >> 16
        /* ViewOffsetShift */
        ;
      }
      /**
       * Unwraps a parent injector location number to find the view offset from the current injector,
       * then walks up the declaration view tree until the view is found that contains the parent
       * injector.
       *
       * @param location The location of the parent injector, which contains the view offset
       * @param startView The LView instance from which to start walking up the view tree
       * @returns The LView instance that contains the parent injector
       */


      function getParentInjectorView(location, startView) {
        var viewOffset = getParentInjectorViewOffset(location);
        var parentView = startView; // For most cases, the parent injector can be found on the host node (e.g. for component
        // or container), but we must keep the loop here to support the rarer case of deeply nested
        // <ng-template> tags or inline views, where the parent injector might live many views
        // above the child injector.

        while (viewOffset > 0) {
          parentView = parentView[DECLARATION_VIEW];
          viewOffset--;
        }

        return parentView;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Defines if the call to `inject` should include `viewProviders` in its resolution.
       *
       * This is set to true when we try to instantiate a component. This value is reset in
       * `getNodeInjectable` to a value which matches the declaration location of the token about to be
       * instantiated. This is done so that if we are injecting a token which was declared outside of
       * `viewProviders` we don't accidentally pull `viewProviders` in.
       *
       * Example:
       *
       * ```
       * @Injectable()
       * class MyService {
       *   constructor(public value: String) {}
       * }
       *
       * @Component({
       *   providers: [
       *     MyService,
       *     {provide: String, value: 'providers' }
       *   ]
       *   viewProviders: [
       *     {provide: String, value: 'viewProviders'}
       *   ]
       * })
       * class MyComponent {
       *   constructor(myService: MyService, value: String) {
       *     // We expect that Component can see into `viewProviders`.
       *     expect(value).toEqual('viewProviders');
       *     // `MyService` was not declared in `viewProviders` hence it can't see it.
       *     expect(myService.value).toEqual('providers');
       *   }
       * }
       *
       * ```
       */


      var includeViewProviders = true;

      function setIncludeViewProviders(v) {
        var oldValue = includeViewProviders;
        includeViewProviders = v;
        return oldValue;
      }
      /**
       * The number of slots in each bloom filter (used by DI). The larger this number, the fewer
       * directives that will share slots, and thus, the fewer false positives when checking for
       * the existence of a directive.
       */


      var BLOOM_SIZE = 256;
      var BLOOM_MASK = BLOOM_SIZE - 1;
      /** Counter used to generate unique IDs for directives. */

      var nextNgElementId = 0;
      /**
       * Registers this directive as present in its node's injector by flipping the directive's
       * corresponding bit in the injector's bloom filter.
       *
       * @param injectorIndex The index of the node injector where this token should be registered
       * @param tView The TView for the injector's bloom filters
       * @param type The directive token to register
       */

      function bloomAdd(injectorIndex, tView, type) {
        ngDevMode && assertEqual(tView.firstCreatePass, true, 'expected firstCreatePass to be true');
        var id;

        if (typeof type === 'string') {
          id = type.charCodeAt(0) || 0;
        } else if (type.hasOwnProperty(NG_ELEMENT_ID)) {
          id = type[NG_ELEMENT_ID];
        } // Set a unique ID on the directive type, so if something tries to inject the directive,
        // we can easily retrieve the ID and hash it into the bloom bit that should be checked.


        if (id == null) {
          id = type[NG_ELEMENT_ID] = nextNgElementId++;
        } // We only have BLOOM_SIZE (256) slots in our bloom filter (8 buckets * 32 bits each),
        // so all unique IDs must be modulo-ed into a number from 0 - 255 to fit into the filter.


        var bloomBit = id & BLOOM_MASK; // Create a mask that targets the specific bit associated with the directive.
        // JS bit operations are 32 bits, so this will be a number between 2^0 and 2^31, corresponding
        // to bit positions 0 - 31 in a 32 bit integer.

        var mask = 1 << bloomBit; // Use the raw bloomBit number to determine which bloom filter bucket we should check
        // e.g: bf0 = [0 - 31], bf1 = [32 - 63], bf2 = [64 - 95], bf3 = [96 - 127], etc

        var b7 = bloomBit & 0x80;
        var b6 = bloomBit & 0x40;
        var b5 = bloomBit & 0x20;
        var tData = tView.data;

        if (b7) {
          b6 ? b5 ? tData[injectorIndex + 7] |= mask : tData[injectorIndex + 6] |= mask : b5 ? tData[injectorIndex + 5] |= mask : tData[injectorIndex + 4] |= mask;
        } else {
          b6 ? b5 ? tData[injectorIndex + 3] |= mask : tData[injectorIndex + 2] |= mask : b5 ? tData[injectorIndex + 1] |= mask : tData[injectorIndex] |= mask;
        }
      }
      /**
       * Creates (or gets an existing) injector for a given element or container.
       *
       * @param tNode for which an injector should be retrieved / created.
       * @param lView View where the node is stored
       * @returns Node injector
       */


      function getOrCreateNodeInjectorForNode(tNode, lView) {
        var existingInjectorIndex = getInjectorIndex(tNode, lView);

        if (existingInjectorIndex !== -1) {
          return existingInjectorIndex;
        }

        var tView = lView[TVIEW];

        if (tView.firstCreatePass) {
          tNode.injectorIndex = lView.length;
          insertBloom(tView.data, tNode); // foundation for node bloom

          insertBloom(lView, null); // foundation for cumulative bloom

          insertBloom(tView.blueprint, null);
        }

        var parentLoc = getParentInjectorLocation(tNode, lView);
        var injectorIndex = tNode.injectorIndex; // If a parent injector can't be found, its location is set to -1.
        // In that case, we don't need to set up a cumulative bloom

        if (hasParentInjector(parentLoc)) {
          var parentIndex = getParentInjectorIndex(parentLoc);
          var parentLView = getParentInjectorView(parentLoc, lView);
          var parentData = parentLView[TVIEW].data; // Creates a cumulative bloom filter that merges the parent's bloom filter
          // and its own cumulative bloom (which contains tokens for all ancestors)

          for (var i = 0; i < 8
          /* BLOOM_SIZE */
          ; i++) {
            lView[injectorIndex + i] = parentLView[parentIndex + i] | parentData[parentIndex + i];
          }
        }

        lView[injectorIndex + 8
        /* PARENT */
        ] = parentLoc;
        return injectorIndex;
      }

      function insertBloom(arr, footer) {
        arr.push(0, 0, 0, 0, 0, 0, 0, 0, footer);
      }

      function getInjectorIndex(tNode, lView) {
        if (tNode.injectorIndex === -1 || tNode.parent && tNode.parent.injectorIndex === tNode.injectorIndex || // After the first template pass, the injector index might exist but the parent values
        // might not have been calculated yet for this instance
        lView[tNode.injectorIndex + 8
        /* PARENT */
        ] === null) {
          return -1;
        } else {
          ngDevMode && assertIndexInRange(lView, tNode.injectorIndex);
          return tNode.injectorIndex;
        }
      }
      /**
       * Finds the index of the parent injector, with a view offset if applicable. Used to set the
       * parent injector initially.
       *
       * @returns Returns a number that is the combination of the number of LViews that we have to go up
       * to find the LView containing the parent inject AND the index of the injector within that LView.
       */


      function getParentInjectorLocation(tNode, lView) {
        if (tNode.parent && tNode.parent.injectorIndex !== -1) {
          // If we have a parent `TNode` and there is an injector associated with it we are done, because
          // the parent injector is within the current `LView`.
          return tNode.parent.injectorIndex; // ViewOffset is 0
        } // When parent injector location is computed it may be outside of the current view. (ie it could
        // be pointing to a declared parent location). This variable stores number of declaration parents
        // we need to walk up in order to find the parent injector location.


        var declarationViewOffset = 0;
        var parentTNode = null;
        var lViewCursor = lView; // The parent injector is not in the current `LView`. We will have to walk the declared parent
        // `LView` hierarchy and look for it. If we walk of the top, that means that there is no parent
        // `NodeInjector`.

        while (lViewCursor !== null) {
          // First determine the `parentTNode` location. The parent pointer differs based on `TView.type`.
          var tView = lViewCursor[TVIEW];
          var tViewType = tView.type;

          if (tViewType === 2
          /* Embedded */
          ) {
            ngDevMode && assertDefined(tView.declTNode, 'Embedded TNodes should have declaration parents.');
            parentTNode = tView.declTNode;
          } else if (tViewType === 1
          /* Component */
          ) {
            // Components don't have `TView.declTNode` because each instance of component could be
            // inserted in different location, hence `TView.declTNode` is meaningless.
            parentTNode = lViewCursor[T_HOST];
          } else {
            ngDevMode && assertEqual(tView.type, 0
            /* Root */
            , 'Root type expected');
            parentTNode = null;
          }

          if (parentTNode === null) {
            // If we have no parent, than we are done.
            return NO_PARENT_INJECTOR;
          }

          ngDevMode && parentTNode && assertTNodeForLView(parentTNode, lViewCursor[DECLARATION_VIEW]); // Every iteration of the loop requires that we go to the declared parent.

          declarationViewOffset++;
          lViewCursor = lViewCursor[DECLARATION_VIEW];

          if (parentTNode.injectorIndex !== -1) {
            // We found a NodeInjector which points to something.
            return parentTNode.injectorIndex | declarationViewOffset << 16
            /* ViewOffsetShift */
            ;
          }
        }

        return NO_PARENT_INJECTOR;
      }
      /**
       * Makes a type or an injection token public to the DI system by adding it to an
       * injector's bloom filter.
       *
       * @param di The node injector in which a directive will be added
       * @param token The type or the injection token to be made public
       */


      function diPublicInInjector(injectorIndex, tView, token) {
        bloomAdd(injectorIndex, tView, token);
      }
      /**
       * Inject static attribute value into directive constructor.
       *
       * This method is used with `factory` functions which are generated as part of
       * `defineDirective` or `defineComponent`. The method retrieves the static value
       * of an attribute. (Dynamic attributes are not supported since they are not resolved
       *  at the time of injection and can change over time.)
       *
       * # Example
       * Given:
       * ```
       * @Component(...)
       * class MyComponent {
       *   constructor(@Attribute('title') title: string) { ... }
       * }
       * ```
       * When instantiated with
       * ```
       * <my-component title="Hello"></my-component>
       * ```
       *
       * Then factory method generated is:
       * ```
       * MyComponent.ɵcmp = defineComponent({
       *   factory: () => new MyComponent(injectAttribute('title'))
       *   ...
       * })
       * ```
       *
       * @publicApi
       */


      function injectAttributeImpl(tNode, attrNameToInject) {
        ngDevMode && assertTNodeType(tNode, 12
        /* AnyContainer */
        | 3
        /* AnyRNode */
        );
        ngDevMode && assertDefined(tNode, 'expecting tNode');

        if (attrNameToInject === 'class') {
          return tNode.classes;
        }

        if (attrNameToInject === 'style') {
          return tNode.styles;
        }

        var attrs = tNode.attrs;

        if (attrs) {
          var attrsLength = attrs.length;
          var i = 0;

          while (i < attrsLength) {
            var value = attrs[i]; // If we hit a `Bindings` or `Template` marker then we are done.

            if (isNameOnlyAttributeMarker(value)) break; // Skip namespaced attributes

            if (value === 0
            /* NamespaceURI */
            ) {
              // we skip the next two values
              // as namespaced attributes looks like
              // [..., AttributeMarker.NamespaceURI, 'http://someuri.com/test', 'test:exist',
              // 'existValue', ...]
              i = i + 2;
            } else if (typeof value === 'number') {
              // Skip to the first value of the marked attribute.
              i++;

              while (i < attrsLength && typeof attrs[i] === 'string') {
                i++;
              }
            } else if (value === attrNameToInject) {
              return attrs[i + 1];
            } else {
              i = i + 2;
            }
          }
        }

        return null;
      }

      function notFoundValueOrThrow(notFoundValue, token, flags) {
        if (flags & InjectFlags.Optional) {
          return notFoundValue;
        } else {
          throwProviderNotFoundError(token, 'NodeInjector');
        }
      }
      /**
       * Returns the value associated to the given token from the ModuleInjector or throws exception
       *
       * @param lView The `LView` that contains the `tNode`
       * @param token The token to look for
       * @param flags Injection flags
       * @param notFoundValue The value to return when the injection flags is `InjectFlags.Optional`
       * @returns the value from the injector or throws an exception
       */


      function lookupTokenUsingModuleInjector(lView, token, flags, notFoundValue) {
        if (flags & InjectFlags.Optional && notFoundValue === undefined) {
          // This must be set or the NullInjector will throw for optional deps
          notFoundValue = null;
        }

        if ((flags & (InjectFlags.Self | InjectFlags.Host)) === 0) {
          var moduleInjector = lView[INJECTOR$1]; // switch to `injectInjectorOnly` implementation for module injector, since module injector
          // should not have access to Component/Directive DI scope (that may happen through
          // `directiveInject` implementation)

          var previousInjectImplementation = setInjectImplementation(undefined);

          try {
            if (moduleInjector) {
              return moduleInjector.get(token, notFoundValue, flags & InjectFlags.Optional);
            } else {
              return injectRootLimpMode(token, notFoundValue, flags & InjectFlags.Optional);
            }
          } finally {
            setInjectImplementation(previousInjectImplementation);
          }
        }

        return notFoundValueOrThrow(notFoundValue, token, flags);
      }
      /**
       * Returns the value associated to the given token from the NodeInjectors => ModuleInjector.
       *
       * Look for the injector providing the token by walking up the node injector tree and then
       * the module injector tree.
       *
       * This function patches `token` with `__NG_ELEMENT_ID__` which contains the id for the bloom
       * filter. `-1` is reserved for injecting `Injector` (implemented by `NodeInjector`)
       *
       * @param tNode The Node where the search for the injector should start
       * @param lView The `LView` that contains the `tNode`
       * @param token The token to look for
       * @param flags Injection flags
       * @param notFoundValue The value to return when the injection flags is `InjectFlags.Optional`
       * @returns the value from the injector, `null` when not found, or `notFoundValue` if provided
       */


      function getOrCreateInjectable(tNode, lView, token) {
        var flags = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : InjectFlags.Default;
        var notFoundValue = arguments.length > 4 ? arguments[4] : undefined;

        if (tNode !== null) {
          var bloomHash = bloomHashBitOrFactory(token); // If the ID stored here is a function, this is a special object like ElementRef or TemplateRef
          // so just call the factory function to create it.

          if (typeof bloomHash === 'function') {
            if (!enterDI(lView, tNode, flags)) {
              // Failed to enter DI use module injector instead.
              return lookupTokenUsingModuleInjector(lView, token, flags, notFoundValue);
            }

            try {
              var value = bloomHash();

              if (value == null && !(flags & InjectFlags.Optional)) {
                throwProviderNotFoundError(token);
              } else {
                return value;
              }
            } finally {
              leaveDI();
            }
          } else if (typeof bloomHash === 'number') {
            // This is a value used to identify __NG_ELEMENT_ID__
            // `-1` is a special value used to identify `Injector` types in NodeInjector
            // This is a workaround for the fact that if the `Injector.__NG_ELEMENT_ID__`
            // would have a factory function (such as `ElementRef`) it would cause Ivy
            // to be pulled into the ViewEngine, because they both share `Injector` type.
            // This should be refactored to follow `ElementRef` pattern once ViewEngine is
            // removed
            if (bloomHash === -1) {
              if (!enterDI(lView, tNode, flags)) {
                // Failed to enter DI, try module injector instead. If a token is injected with the @Host
                // flag, the module injector is not searched for that token in Ivy.
                return flags & InjectFlags.Host ? notFoundValueOrThrow(notFoundValue, token, flags) : lookupTokenUsingModuleInjector(lView, token, flags, notFoundValue);
              }

              try {
                // Retrieving current `TNode` and `LView` from the state (rather than using `tNode` and
                // `lView`), because entering DI (by calling `enterDI`) may cause these values to change
                // (in case `@SkipSelf` flag is present).
                return new NodeInjector(getCurrentTNode(), getLView());
              } finally {
                leaveDI();
              }
            } // If the token has a bloom hash, then it is a token which could be in NodeInjector.
            // A reference to the previous injector TView that was found while climbing the element
            // injector tree. This is used to know if viewProviders can be accessed on the current
            // injector.


            var previousTView = null;
            var injectorIndex = getInjectorIndex(tNode, lView);
            var parentLocation = NO_PARENT_INJECTOR;
            var hostTElementNode = flags & InjectFlags.Host ? lView[DECLARATION_COMPONENT_VIEW][T_HOST] : null; // If we should skip this injector, or if there is no injector on this node, start by
            // searching the parent injector.

            if (injectorIndex === -1 || flags & InjectFlags.SkipSelf) {
              parentLocation = injectorIndex === -1 ? getParentInjectorLocation(tNode, lView) : lView[injectorIndex + 8
              /* PARENT */
              ];

              if (parentLocation === NO_PARENT_INJECTOR || !shouldSearchParent(flags, false)) {
                injectorIndex = -1;
              } else {
                previousTView = lView[TVIEW];
                injectorIndex = getParentInjectorIndex(parentLocation);
                lView = getParentInjectorView(parentLocation, lView);
              }
            } // Traverse up the injector tree until we find a potential match or until we know there
            // *isn't* a match.


            while (injectorIndex !== -1) {
              ngDevMode && assertNodeInjector(lView, injectorIndex); // Check the current injector. If it matches, see if it contains token.

              var tView = lView[TVIEW];
              ngDevMode && assertTNodeForLView(tView.data[injectorIndex + 8
              /* TNODE */
              ], lView);

              if (bloomHasToken(bloomHash, injectorIndex, tView.data)) {
                // At this point, we have an injector which *may* contain the token, so we step through
                // the providers and directives associated with the injector's corresponding node to get
                // the instance.
                var instance = searchTokensOnInjector(injectorIndex, lView, token, previousTView, flags, hostTElementNode);

                if (instance !== NOT_FOUND) {
                  return instance;
                }
              }

              parentLocation = lView[injectorIndex + 8
              /* PARENT */
              ];

              if (parentLocation !== NO_PARENT_INJECTOR && shouldSearchParent(flags, lView[TVIEW].data[injectorIndex + 8
              /* TNODE */
              ] === hostTElementNode) && bloomHasToken(bloomHash, injectorIndex, lView)) {
                // The def wasn't found anywhere on this node, so it was a false positive.
                // Traverse up the tree and continue searching.
                previousTView = tView;
                injectorIndex = getParentInjectorIndex(parentLocation);
                lView = getParentInjectorView(parentLocation, lView);
              } else {
                // If we should not search parent OR If the ancestor bloom filter value does not have the
                // bit corresponding to the directive we can give up on traversing up to find the specific
                // injector.
                injectorIndex = -1;
              }
            }
          }
        }

        return lookupTokenUsingModuleInjector(lView, token, flags, notFoundValue);
      }

      var NOT_FOUND = {};

      function searchTokensOnInjector(injectorIndex, lView, token, previousTView, flags, hostTElementNode) {
        var currentTView = lView[TVIEW];
        var tNode = currentTView.data[injectorIndex + 8
        /* TNODE */
        ]; // First, we need to determine if view providers can be accessed by the starting element.
        // There are two possibilities

        var canAccessViewProviders = previousTView == null ? isComponentHost(tNode) && includeViewProviders : previousTView != currentTView && (tNode.type & 3
        /* AnyRNode */
        ) !== 0; // This special case happens when there is a @host on the inject and when we are searching
        // on the host element node.

        var isHostSpecialCase = flags & InjectFlags.Host && hostTElementNode === tNode;
        var injectableIdx = locateDirectiveOrProvider(tNode, currentTView, token, canAccessViewProviders, isHostSpecialCase);

        if (injectableIdx !== null) {
          return getNodeInjectable(lView, currentTView, injectableIdx, tNode);
        } else {
          return NOT_FOUND;
        }
      }
      /**
       * Searches for the given token among the node's directives and providers.
       *
       * @param tNode TNode on which directives are present.
       * @param tView The tView we are currently processing
       * @param token Provider token or type of a directive to look for.
       * @param canAccessViewProviders Whether view providers should be considered.
       * @param isHostSpecialCase Whether the host special case applies.
       * @returns Index of a found directive or provider, or null when none found.
       */


      function locateDirectiveOrProvider(tNode, tView, token, canAccessViewProviders, isHostSpecialCase) {
        var nodeProviderIndexes = tNode.providerIndexes;
        var tInjectables = tView.data;
        var injectablesStart = nodeProviderIndexes & 1048575
        /* ProvidersStartIndexMask */
        ;
        var directivesStart = tNode.directiveStart;
        var directiveEnd = tNode.directiveEnd;
        var cptViewProvidersCount = nodeProviderIndexes >> 20
        /* CptViewProvidersCountShift */
        ;
        var startingIndex = canAccessViewProviders ? injectablesStart : injectablesStart + cptViewProvidersCount; // When the host special case applies, only the viewProviders and the component are visible

        var endIndex = isHostSpecialCase ? injectablesStart + cptViewProvidersCount : directiveEnd;

        for (var i = startingIndex; i < endIndex; i++) {
          var providerTokenOrDef = tInjectables[i];

          if (i < directivesStart && token === providerTokenOrDef || i >= directivesStart && providerTokenOrDef.type === token) {
            return i;
          }
        }

        if (isHostSpecialCase) {
          var dirDef = tInjectables[directivesStart];

          if (dirDef && isComponentDef(dirDef) && dirDef.type === token) {
            return directivesStart;
          }
        }

        return null;
      }
      /**
       * Retrieve or instantiate the injectable from the `LView` at particular `index`.
       *
       * This function checks to see if the value has already been instantiated and if so returns the
       * cached `injectable`. Otherwise if it detects that the value is still a factory it
       * instantiates the `injectable` and caches the value.
       */


      function getNodeInjectable(lView, tView, index, tNode) {
        var value = lView[index];
        var tData = tView.data;

        if (isFactory(value)) {
          var factory = value;

          if (factory.resolving) {
            throwCyclicDependencyError(stringifyForError(tData[index]));
          }

          var previousIncludeViewProviders = setIncludeViewProviders(factory.canSeeViewProviders);
          factory.resolving = true;
          var previousInjectImplementation = factory.injectImpl ? setInjectImplementation(factory.injectImpl) : null;
          var success = enterDI(lView, tNode, InjectFlags.Default);
          ngDevMode && assertEqual(success, true, 'Because flags do not contain \`SkipSelf\' we expect this to always succeed.');

          try {
            value = lView[index] = factory.factory(undefined, tData, lView, tNode); // This code path is hit for both directives and providers.
            // For perf reasons, we want to avoid searching for hooks on providers.
            // It does no harm to try (the hooks just won't exist), but the extra
            // checks are unnecessary and this is a hot path. So we check to see
            // if the index of the dependency is in the directive range for this
            // tNode. If it's not, we know it's a provider and skip hook registration.

            if (tView.firstCreatePass && index >= tNode.directiveStart) {
              ngDevMode && assertDirectiveDef(tData[index]);
              registerPreOrderHooks(index, tData[index], tView);
            }
          } finally {
            previousInjectImplementation !== null && setInjectImplementation(previousInjectImplementation);
            setIncludeViewProviders(previousIncludeViewProviders);
            factory.resolving = false;
            leaveDI();
          }
        }

        return value;
      }
      /**
       * Returns the bit in an injector's bloom filter that should be used to determine whether or not
       * the directive might be provided by the injector.
       *
       * When a directive is public, it is added to the bloom filter and given a unique ID that can be
       * retrieved on the Type. When the directive isn't public or the token is not a directive `null`
       * is returned as the node injector can not possibly provide that token.
       *
       * @param token the injection token
       * @returns the matching bit to check in the bloom filter or `null` if the token is not known.
       *   When the returned value is negative then it represents special values such as `Injector`.
       */


      function bloomHashBitOrFactory(token) {
        ngDevMode && assertDefined(token, 'token must be defined');

        if (typeof token === 'string') {
          return token.charCodeAt(0) || 0;
        }

        var tokenId = // First check with `hasOwnProperty` so we don't get an inherited ID.
        token.hasOwnProperty(NG_ELEMENT_ID) ? token[NG_ELEMENT_ID] : undefined; // Negative token IDs are used for special objects such as `Injector`

        return typeof tokenId === 'number' && tokenId > 0 ? tokenId & BLOOM_MASK : tokenId;
      }

      function bloomHasToken(bloomHash, injectorIndex, injectorView) {
        // Create a mask that targets the specific bit associated with the directive we're looking for.
        // JS bit operations are 32 bits, so this will be a number between 2^0 and 2^31, corresponding
        // to bit positions 0 - 31 in a 32 bit integer.
        var mask = 1 << bloomHash;
        var b7 = bloomHash & 0x80;
        var b6 = bloomHash & 0x40;
        var b5 = bloomHash & 0x20; // Our bloom filter size is 256 bits, which is eight 32-bit bloom filter buckets:
        // bf0 = [0 - 31], bf1 = [32 - 63], bf2 = [64 - 95], bf3 = [96 - 127], etc.
        // Get the bloom filter value from the appropriate bucket based on the directive's bloomBit.

        var value;

        if (b7) {
          value = b6 ? b5 ? injectorView[injectorIndex + 7] : injectorView[injectorIndex + 6] : b5 ? injectorView[injectorIndex + 5] : injectorView[injectorIndex + 4];
        } else {
          value = b6 ? b5 ? injectorView[injectorIndex + 3] : injectorView[injectorIndex + 2] : b5 ? injectorView[injectorIndex + 1] : injectorView[injectorIndex];
        } // If the bloom filter value has the bit corresponding to the directive's bloomBit flipped on,
        // this injector is a potential match.


        return !!(value & mask);
      }
      /** Returns true if flags prevent parent injector from being searched for tokens */


      function shouldSearchParent(flags, isFirstHostTNode) {
        return !(flags & InjectFlags.Self) && !(flags & InjectFlags.Host && isFirstHostTNode);
      }

      var NodeInjector = /*#__PURE__*/function () {
        function NodeInjector(_tNode, _lView) {
          _classCallCheck2(this, NodeInjector);

          this._tNode = _tNode;
          this._lView = _lView;
        }

        _createClass2(NodeInjector, [{
          key: "get",
          value: function get(token, notFoundValue) {
            return getOrCreateInjectable(this._tNode, this._lView, token, undefined, notFoundValue);
          }
        }]);

        return NodeInjector;
      }();
      /**
       * @codeGenApi
       */


      function ɵɵgetFactoryOf(type) {
        var typeAny = type;

        if (isForwardRef(type)) {
          return function () {
            var factory = ɵɵgetFactoryOf(resolveForwardRef(typeAny));
            return factory ? factory() : null;
          };
        }

        var factory = getFactoryDef(typeAny);

        if (factory === null) {
          var injectorDef = getInjectorDef(typeAny);
          factory = injectorDef && injectorDef.factory;
        }

        return factory || null;
      }
      /**
       * @codeGenApi
       */


      function ɵɵgetInheritedFactory(type) {
        return noSideEffects(function () {
          var ownConstructor = type.prototype.constructor;
          var ownFactory = ownConstructor[NG_FACTORY_DEF] || ɵɵgetFactoryOf(ownConstructor);
          var objectPrototype = Object.prototype;
          var parent = Object.getPrototypeOf(type.prototype).constructor; // Go up the prototype until we hit `Object`.

          while (parent && parent !== objectPrototype) {
            var factory = parent[NG_FACTORY_DEF] || ɵɵgetFactoryOf(parent); // If we hit something that has a factory and the factory isn't the same as the type,
            // we've found the inherited factory. Note the check that the factory isn't the type's
            // own factory is redundant in most cases, but if the user has custom decorators on the
            // class, this lookup will start one level down in the prototype chain, causing us to
            // find the own factory first and potentially triggering an infinite loop downstream.

            if (factory && factory !== ownFactory) {
              return factory;
            }

            parent = Object.getPrototypeOf(parent);
          } // There is no factory defined. Either this was improper usage of inheritance
          // (no Angular decorator on the superclass) or there is no constructor at all
          // in the inheritance chain. Since the two cases cannot be distinguished, the
          // latter has to be assumed.


          return function (t) {
            return new t();
          };
        });
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var ERROR_TYPE = 'ngType';
      var ERROR_DEBUG_CONTEXT = 'ngDebugContext';
      var ERROR_ORIGINAL_ERROR = 'ngOriginalError';
      var ERROR_LOGGER = 'ngErrorLogger';

      function wrappedError(message, originalError) {
        var msg = "".concat(message, " caused by: ").concat(originalError instanceof Error ? originalError.message : originalError);
        var error = Error(msg);
        error[ERROR_ORIGINAL_ERROR] = originalError;
        return error;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function getType(error) {
        return error[ERROR_TYPE];
      }

      function getDebugContext(error) {
        return error[ERROR_DEBUG_CONTEXT];
      }

      function getOriginalError(error) {
        return error[ERROR_ORIGINAL_ERROR];
      }

      function getErrorLogger(error) {
        return error[ERROR_LOGGER] || defaultErrorLogger;
      }

      function defaultErrorLogger(console) {
        for (var _len22 = arguments.length, values = new Array(_len22 > 1 ? _len22 - 1 : 0), _key23 = 1; _key23 < _len22; _key23++) {
          values[_key23 - 1] = arguments[_key23];
        }

        console.error.apply(console, values);
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Provides a hook for centralized exception handling.
       *
       * The default implementation of `ErrorHandler` prints error messages to the `console`. To
       * intercept error handling, write a custom exception handler that replaces this default as
       * appropriate for your app.
       *
       * @usageNotes
       * ### Example
       *
       * ```
       * class MyErrorHandler implements ErrorHandler {
       *   handleError(error) {
       *     // do something with the exception
       *   }
       * }
       *
       * @NgModule({
       *   providers: [{provide: ErrorHandler, useClass: MyErrorHandler}]
       * })
       * class MyModule {}
       * ```
       *
       * @publicApi
       */


      var ErrorHandler = /*#__PURE__*/function () {
        function ErrorHandler() {
          _classCallCheck2(this, ErrorHandler);

          /**
           * @internal
           */
          this._console = console;
        }

        _createClass2(ErrorHandler, [{
          key: "handleError",
          value: function handleError(error) {
            var originalError = this._findOriginalError(error);

            var context = this._findContext(error); // Note: Browser consoles show the place from where console.error was called.
            // We can use this to give users additional information about the error.


            var errorLogger = getErrorLogger(error);
            errorLogger(this._console, "ERROR", error);

            if (originalError) {
              errorLogger(this._console, "ORIGINAL ERROR", originalError);
            }

            if (context) {
              errorLogger(this._console, 'ERROR CONTEXT', context);
            }
          }
          /** @internal */

        }, {
          key: "_findContext",
          value: function _findContext(error) {
            if (error) {
              return getDebugContext(error) ? getDebugContext(error) : this._findContext(getOriginalError(error));
            }

            return null;
          }
          /** @internal */

        }, {
          key: "_findOriginalError",
          value: function _findOriginalError(error) {
            var e = getOriginalError(error);

            while (e && getOriginalError(e)) {
              e = getOriginalError(e);
            }

            return e;
          }
        }]);

        return ErrorHandler;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Defines a schema that allows an NgModule to contain the following:
       * - Non-Angular elements named with dash case (`-`).
       * - Element properties named with dash case (`-`).
       * Dash case is the naming convention for custom elements.
       *
       * @publicApi
       */


      var CUSTOM_ELEMENTS_SCHEMA = {
        name: 'custom-elements'
      };
      /**
       * Defines a schema that allows any property on any element.
       *
       * @publicApi
       */

      var NO_ERRORS_SCHEMA = {
        name: 'no-errors-schema'
      };
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * The Trusted Types policy, or null if Trusted Types are not
       * enabled/supported, or undefined if the policy has not been created yet.
       */

      var policy;
      /**
       * Returns the Trusted Types policy, or null if Trusted Types are not
       * enabled/supported. The first call to this function will create the policy.
       */

      function getPolicy() {
        if (policy === undefined) {
          policy = null;

          if (_global.trustedTypes) {
            try {
              policy = _global.trustedTypes.createPolicy('angular', {
                createHTML: function createHTML(s) {
                  return s;
                },
                createScript: function createScript(s) {
                  return s;
                },
                createScriptURL: function createScriptURL(s) {
                  return s;
                }
              });
            } catch (_a) {// trustedTypes.createPolicy throws if called with a name that is
              // already registered, even in report-only mode. Until the API changes,
              // catch the error not to break the applications functionally. In such
              // cases, the code will fall back to using strings.
            }
          }
        }

        return policy;
      }
      /**
       * Unsafely promote a string to a TrustedHTML, falling back to strings when
       * Trusted Types are not available.
       * @security This is a security-sensitive function; any use of this function
       * must go through security review. In particular, it must be assured that the
       * provided string will never cause an XSS vulnerability if used in a context
       * that will be interpreted as HTML by a browser, e.g. when assigning to
       * element.innerHTML.
       */


      function trustedHTMLFromString(html) {
        var _a;

        return ((_a = getPolicy()) === null || _a === void 0 ? void 0 : _a.createHTML(html)) || html;
      }
      /**
       * Unsafely promote a string to a TrustedScript, falling back to strings when
       * Trusted Types are not available.
       * @security In particular, it must be assured that the provided string will
       * never cause an XSS vulnerability if used in a context that will be
       * interpreted and executed as a script by a browser, e.g. when calling eval.
       */


      function trustedScriptFromString(script) {
        var _a;

        return ((_a = getPolicy()) === null || _a === void 0 ? void 0 : _a.createScript(script)) || script;
      }
      /**
       * Unsafely promote a string to a TrustedScriptURL, falling back to strings
       * when Trusted Types are not available.
       * @security This is a security-sensitive function; any use of this function
       * must go through security review. In particular, it must be assured that the
       * provided string will never cause an XSS vulnerability if used in a context
       * that will cause a browser to load and execute a resource, e.g. when
       * assigning to script.src.
       */


      function trustedScriptURLFromString(url) {
        var _a;

        return ((_a = getPolicy()) === null || _a === void 0 ? void 0 : _a.createScriptURL(url)) || url;
      }
      /**
       * Unsafely call the Function constructor with the given string arguments. It
       * is only available in development mode, and should be stripped out of
       * production code.
       * @security This is a security-sensitive function; any use of this function
       * must go through security review. In particular, it must be assured that it
       * is only called from development code, as use in production code can lead to
       * XSS vulnerabilities.
       */


      function newTrustedFunctionForDev() {
        if (typeof ngDevMode === 'undefined') {
          throw new Error('newTrustedFunctionForDev should never be called in production');
        }

        for (var _len23 = arguments.length, args = new Array(_len23), _key24 = 0; _key24 < _len23; _key24++) {
          args[_key24] = arguments[_key24];
        }

        if (!_global.trustedTypes) {
          // In environments that don't support Trusted Types, fall back to the most
          // straightforward implementation:
          return _construct2(Function, args);
        } // Chrome currently does not support passing TrustedScript to the Function
        // constructor. The following implements the workaround proposed on the page
        // below, where the Chromium bug is also referenced:
        // https://github.com/w3c/webappsec-trusted-types/wiki/Trusted-Types-for-function-constructor


        var fnArgs = args.slice(0, -1).join(',');
        var fnBody = args.pop().toString();
        var body = "(function anonymous(".concat(fnArgs, "\n) { ").concat(fnBody, "\n})"); // Using eval directly confuses the compiler and prevents this module from
        // being stripped out of JS binaries even if not used. The global['eval']
        // indirection fixes that.

        var fn = _global['eval'](trustedScriptFromString(body)); // To completely mimic the behavior of calling "new Function", two more
        // things need to happen:
        // 1. Stringifying the resulting function should return its source code


        fn.toString = function () {
          return body;
        }; // 2. When calling the resulting function, `this` should refer to `global`


        return fn.bind(_global); // When Trusted Types support in Function constructors is widely available,
        // the implementation of this function can be simplified to:
        // return new Function(...args.map(a => trustedScriptFromString(a)));
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var SafeValueImpl = /*#__PURE__*/function () {
        function SafeValueImpl(changingThisBreaksApplicationSecurity) {
          _classCallCheck2(this, SafeValueImpl);

          this.changingThisBreaksApplicationSecurity = changingThisBreaksApplicationSecurity;
        }

        _createClass2(SafeValueImpl, [{
          key: "toString",
          value: function toString() {
            return "SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity) + " (see http://g.co/ng/security#xss)";
          }
        }]);

        return SafeValueImpl;
      }();

      var SafeHtmlImpl = /*#__PURE__*/function (_SafeValueImpl) {
        _inherits2(SafeHtmlImpl, _SafeValueImpl);

        var _super147 = _createSuper2(SafeHtmlImpl);

        function SafeHtmlImpl() {
          _classCallCheck2(this, SafeHtmlImpl);

          return _super147.apply(this, arguments);
        }

        _createClass2(SafeHtmlImpl, [{
          key: "getTypeName",
          value: function getTypeName() {
            return "HTML"
            /* Html */
            ;
          }
        }]);

        return SafeHtmlImpl;
      }(SafeValueImpl);

      var SafeStyleImpl = /*#__PURE__*/function (_SafeValueImpl2) {
        _inherits2(SafeStyleImpl, _SafeValueImpl2);

        var _super148 = _createSuper2(SafeStyleImpl);

        function SafeStyleImpl() {
          _classCallCheck2(this, SafeStyleImpl);

          return _super148.apply(this, arguments);
        }

        _createClass2(SafeStyleImpl, [{
          key: "getTypeName",
          value: function getTypeName() {
            return "Style"
            /* Style */
            ;
          }
        }]);

        return SafeStyleImpl;
      }(SafeValueImpl);

      var SafeScriptImpl = /*#__PURE__*/function (_SafeValueImpl3) {
        _inherits2(SafeScriptImpl, _SafeValueImpl3);

        var _super149 = _createSuper2(SafeScriptImpl);

        function SafeScriptImpl() {
          _classCallCheck2(this, SafeScriptImpl);

          return _super149.apply(this, arguments);
        }

        _createClass2(SafeScriptImpl, [{
          key: "getTypeName",
          value: function getTypeName() {
            return "Script"
            /* Script */
            ;
          }
        }]);

        return SafeScriptImpl;
      }(SafeValueImpl);

      var SafeUrlImpl = /*#__PURE__*/function (_SafeValueImpl4) {
        _inherits2(SafeUrlImpl, _SafeValueImpl4);

        var _super150 = _createSuper2(SafeUrlImpl);

        function SafeUrlImpl() {
          _classCallCheck2(this, SafeUrlImpl);

          return _super150.apply(this, arguments);
        }

        _createClass2(SafeUrlImpl, [{
          key: "getTypeName",
          value: function getTypeName() {
            return "URL"
            /* Url */
            ;
          }
        }]);

        return SafeUrlImpl;
      }(SafeValueImpl);

      var SafeResourceUrlImpl = /*#__PURE__*/function (_SafeValueImpl5) {
        _inherits2(SafeResourceUrlImpl, _SafeValueImpl5);

        var _super151 = _createSuper2(SafeResourceUrlImpl);

        function SafeResourceUrlImpl() {
          _classCallCheck2(this, SafeResourceUrlImpl);

          return _super151.apply(this, arguments);
        }

        _createClass2(SafeResourceUrlImpl, [{
          key: "getTypeName",
          value: function getTypeName() {
            return "ResourceURL"
            /* ResourceUrl */
            ;
          }
        }]);

        return SafeResourceUrlImpl;
      }(SafeValueImpl);

      function unwrapSafeValue(value) {
        return value instanceof SafeValueImpl ? value.changingThisBreaksApplicationSecurity : value;
      }

      function allowSanitizationBypassAndThrow(value, type) {
        var actualType = getSanitizationBypassType(value);

        if (actualType != null && actualType !== type) {
          // Allow ResourceURLs in URL contexts, they are strictly more trusted.
          if (actualType === "ResourceURL"
          /* ResourceUrl */
          && type === "URL"
          /* Url */
          ) return true;
          throw new Error("Required a safe ".concat(type, ", got a ").concat(actualType, " (see http://g.co/ng/security#xss)"));
        }

        return actualType === type;
      }

      function getSanitizationBypassType(value) {
        return value instanceof SafeValueImpl && value.getTypeName() || null;
      }
      /**
       * Mark `html` string as trusted.
       *
       * This function wraps the trusted string in `String` and brands it in a way which makes it
       * recognizable to {@link htmlSanitizer} to be trusted implicitly.
       *
       * @param trustedHtml `html` string which needs to be implicitly trusted.
       * @returns a `html` which has been branded to be implicitly trusted.
       */


      function bypassSanitizationTrustHtml(trustedHtml) {
        return new SafeHtmlImpl(trustedHtml);
      }
      /**
       * Mark `style` string as trusted.
       *
       * This function wraps the trusted string in `String` and brands it in a way which makes it
       * recognizable to {@link styleSanitizer} to be trusted implicitly.
       *
       * @param trustedStyle `style` string which needs to be implicitly trusted.
       * @returns a `style` hich has been branded to be implicitly trusted.
       */


      function bypassSanitizationTrustStyle(trustedStyle) {
        return new SafeStyleImpl(trustedStyle);
      }
      /**
       * Mark `script` string as trusted.
       *
       * This function wraps the trusted string in `String` and brands it in a way which makes it
       * recognizable to {@link scriptSanitizer} to be trusted implicitly.
       *
       * @param trustedScript `script` string which needs to be implicitly trusted.
       * @returns a `script` which has been branded to be implicitly trusted.
       */


      function bypassSanitizationTrustScript(trustedScript) {
        return new SafeScriptImpl(trustedScript);
      }
      /**
       * Mark `url` string as trusted.
       *
       * This function wraps the trusted string in `String` and brands it in a way which makes it
       * recognizable to {@link urlSanitizer} to be trusted implicitly.
       *
       * @param trustedUrl `url` string which needs to be implicitly trusted.
       * @returns a `url`  which has been branded to be implicitly trusted.
       */


      function bypassSanitizationTrustUrl(trustedUrl) {
        return new SafeUrlImpl(trustedUrl);
      }
      /**
       * Mark `url` string as trusted.
       *
       * This function wraps the trusted string in `String` and brands it in a way which makes it
       * recognizable to {@link resourceUrlSanitizer} to be trusted implicitly.
       *
       * @param trustedResourceUrl `url` string which needs to be implicitly trusted.
       * @returns a `url` which has been branded to be implicitly trusted.
       */


      function bypassSanitizationTrustResourceUrl(trustedResourceUrl) {
        return new SafeResourceUrlImpl(trustedResourceUrl);
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * This file is used to control if the default rendering pipeline should be `ViewEngine` or `Ivy`.
       *
       * For more information on how to run and debug tests with either Ivy or View Engine (legacy),
       * please see [BAZEL.md](./docs/BAZEL.md).
       */


      var _devMode = true;
      var _runModeLocked = false;
      /**
       * Returns whether Angular is in development mode. After called once,
       * the value is locked and won't change any more.
       *
       * By default, this is true, unless a user calls `enableProdMode` before calling this.
       *
       * @publicApi
       */

      function isDevMode() {
        _runModeLocked = true;
        return _devMode;
      }
      /**
       * Disable Angular's development mode, which turns off assertions and other
       * checks within the framework.
       *
       * One important assertion this disables verifies that a change detection pass
       * does not result in additional changes to any bindings (also known as
       * unidirectional data flow).
       *
       * @publicApi
       */


      function enableProdMode() {
        if (_runModeLocked) {
          throw new Error('Cannot enable prod mode after platform setup.');
        }

        _devMode = false;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * This helper is used to get hold of an inert tree of DOM elements containing dirty HTML
       * that needs sanitizing.
       * Depending upon browser support we use one of two strategies for doing this.
       * Default: DOMParser strategy
       * Fallback: InertDocument strategy
       */


      function getInertBodyHelper(defaultDoc) {
        return isDOMParserAvailable() ? new DOMParserHelper() : new InertDocumentHelper(defaultDoc);
      }
      /**
       * Uses DOMParser to create and fill an inert body element.
       * This is the default strategy used in browsers that support it.
       */


      var DOMParserHelper = /*#__PURE__*/function () {
        function DOMParserHelper() {
          _classCallCheck2(this, DOMParserHelper);
        }

        _createClass2(DOMParserHelper, [{
          key: "getInertBodyElement",
          value: function getInertBodyElement(html) {
            // We add these extra elements to ensure that the rest of the content is parsed as expected
            // e.g. leading whitespace is maintained and tags like `<meta>` do not get hoisted to the
            // `<head>` tag. Note that the `<body>` tag is closed implicitly to prevent unclosed tags
            // in `html` from consuming the otherwise explicit `</body>` tag.
            html = '<body><remove></remove>' + html;

            try {
              var body = new window.DOMParser().parseFromString(trustedHTMLFromString(html), 'text/html').body;
              body.removeChild(body.firstChild);
              return body;
            } catch (_a) {
              return null;
            }
          }
        }]);

        return DOMParserHelper;
      }();
      /**
       * Use an HTML5 `template` element, if supported, or an inert body element created via
       * `createHtmlDocument` to create and fill an inert DOM element.
       * This is the fallback strategy if the browser does not support DOMParser.
       */


      var InertDocumentHelper = /*#__PURE__*/function () {
        function InertDocumentHelper(defaultDoc) {
          _classCallCheck2(this, InertDocumentHelper);

          this.defaultDoc = defaultDoc;
          this.inertDocument = this.defaultDoc.implementation.createHTMLDocument('sanitization-inert');

          if (this.inertDocument.body == null) {
            // usually there should be only one body element in the document, but IE doesn't have any, so
            // we need to create one.
            var inertHtml = this.inertDocument.createElement('html');
            this.inertDocument.appendChild(inertHtml);
            var inertBodyElement = this.inertDocument.createElement('body');
            inertHtml.appendChild(inertBodyElement);
          }
        }

        _createClass2(InertDocumentHelper, [{
          key: "getInertBodyElement",
          value: function getInertBodyElement(html) {
            // Prefer using <template> element if supported.
            var templateEl = this.inertDocument.createElement('template');

            if ('content' in templateEl) {
              templateEl.innerHTML = trustedHTMLFromString(html);
              return templateEl;
            } // Note that previously we used to do something like `this.inertDocument.body.innerHTML = html`
            // and we returned the inert `body` node. This was changed, because IE seems to treat setting
            // `innerHTML` on an inserted element differently, compared to one that hasn't been inserted
            // yet. In particular, IE appears to split some of the text into multiple text nodes rather
            // than keeping them in a single one which ends up messing with Ivy's i18n parsing further
            // down the line. This has been worked around by creating a new inert `body` and using it as
            // the root node in which we insert the HTML.


            var inertBody = this.inertDocument.createElement('body');
            inertBody.innerHTML = trustedHTMLFromString(html); // Support: IE 11 only
            // strip custom-namespaced attributes on IE<=11

            if (this.defaultDoc.documentMode) {
              this.stripCustomNsAttrs(inertBody);
            }

            return inertBody;
          }
          /**
           * When IE11 comes across an unknown namespaced attribute e.g. 'xlink:foo' it adds 'xmlns:ns1'
           * attribute to declare ns1 namespace and prefixes the attribute with 'ns1' (e.g.
           * 'ns1:xlink:foo').
           *
           * This is undesirable since we don't want to allow any of these custom attributes. This method
           * strips them all.
           */

        }, {
          key: "stripCustomNsAttrs",
          value: function stripCustomNsAttrs(el) {
            var elAttrs = el.attributes; // loop backwards so that we can support removals.

            for (var i = elAttrs.length - 1; 0 < i; i--) {
              var attrib = elAttrs.item(i);
              var attrName = attrib.name;

              if (attrName === 'xmlns:ns1' || attrName.indexOf('ns1:') === 0) {
                el.removeAttribute(attrName);
              }
            }

            var childNode = el.firstChild;

            while (childNode) {
              if (childNode.nodeType === Node.ELEMENT_NODE) this.stripCustomNsAttrs(childNode);
              childNode = childNode.nextSibling;
            }
          }
        }]);

        return InertDocumentHelper;
      }();
      /**
       * We need to determine whether the DOMParser exists in the global context and
       * supports parsing HTML; HTML parsing support is not as wide as other formats, see
       * https://developer.mozilla.org/en-US/docs/Web/API/DOMParser#Browser_compatibility.
       *
       * @suppress {uselessCode}
       */


      function isDOMParserAvailable() {
        try {
          return !!new window.DOMParser().parseFromString(trustedHTMLFromString(''), 'text/html');
        } catch (_a) {
          return false;
        }
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * A pattern that recognizes a commonly useful subset of URLs that are safe.
       *
       * This regular expression matches a subset of URLs that will not cause script
       * execution if used in URL context within a HTML document. Specifically, this
       * regular expression matches if (comment from here on and regex copied from
       * Soy's EscapingConventions):
       * (1) Either an allowed protocol (http, https, mailto or ftp).
       * (2) or no protocol.  A protocol must be followed by a colon. The below
       *     allows that by allowing colons only after one of the characters [/?#].
       *     A colon after a hash (#) must be in the fragment.
       *     Otherwise, a colon after a (?) must be in a query.
       *     Otherwise, a colon after a single solidus (/) must be in a path.
       *     Otherwise, a colon after a double solidus (//) must be in the authority
       *     (before port).
       *
       * The pattern disallows &, used in HTML entity declarations before
       * one of the characters in [/?#]. This disallows HTML entities used in the
       * protocol name, which should never happen, e.g. "h&#116;tp" for "http".
       * It also disallows HTML entities in the first path part of a relative path,
       * e.g. "foo&lt;bar/baz".  Our existing escaping functions should not produce
       * that. More importantly, it disallows masking of a colon,
       * e.g. "javascript&#58;...".
       *
       * This regular expression was taken from the Closure sanitization library.
       */


      var SAFE_URL_PATTERN = /^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi;
      /* A pattern that matches safe srcset values */

      var SAFE_SRCSET_PATTERN = /^(?:(?:https?|file):|[^&:/?#]*(?:[/?#]|$))/gi;
      /** A pattern that matches safe data URLs. Only matches image, video and audio types. */

      var DATA_URL_PATTERN = /^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;

      function _sanitizeUrl(url) {
        url = String(url);
        if (url.match(SAFE_URL_PATTERN) || url.match(DATA_URL_PATTERN)) return url;

        if (isDevMode()) {
          console.warn("WARNING: sanitizing unsafe URL value ".concat(url, " (see http://g.co/ng/security#xss)"));
        }

        return 'unsafe:' + url;
      }

      function sanitizeSrcset(srcset) {
        srcset = String(srcset);
        return srcset.split(',').map(function (srcset) {
          return _sanitizeUrl(srcset.trim());
        }).join(', ');
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function tagSet(tags) {
        var res = {};

        var _iterator49 = _createForOfIteratorHelper(tags.split(',')),
            _step48;

        try {
          for (_iterator49.s(); !(_step48 = _iterator49.n()).done;) {
            var t = _step48.value;
            res[t] = true;
          }
        } catch (err) {
          _iterator49.e(err);
        } finally {
          _iterator49.f();
        }

        return res;
      }

      function merge() {
        var res = {};

        for (var _len24 = arguments.length, sets = new Array(_len24), _key25 = 0; _key25 < _len24; _key25++) {
          sets[_key25] = arguments[_key25];
        }

        for (var _i15 = 0, _sets = sets; _i15 < _sets.length; _i15++) {
          var s = _sets[_i15];

          for (var v in s) {
            if (s.hasOwnProperty(v)) res[v] = true;
          }
        }

        return res;
      } // Good source of info about elements and attributes
      // http://dev.w3.org/html5/spec/Overview.html#semantics
      // http://simon.html5.org/html-elements
      // Safe Void Elements - HTML5
      // http://dev.w3.org/html5/spec/Overview.html#void-elements


      var VOID_ELEMENTS = tagSet('area,br,col,hr,img,wbr'); // Elements that you can, intentionally, leave open (and which close themselves)
      // http://dev.w3.org/html5/spec/Overview.html#optional-tags

      var OPTIONAL_END_TAG_BLOCK_ELEMENTS = tagSet('colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr');
      var OPTIONAL_END_TAG_INLINE_ELEMENTS = tagSet('rp,rt');
      var OPTIONAL_END_TAG_ELEMENTS = merge(OPTIONAL_END_TAG_INLINE_ELEMENTS, OPTIONAL_END_TAG_BLOCK_ELEMENTS); // Safe Block Elements - HTML5

      var BLOCK_ELEMENTS = merge(OPTIONAL_END_TAG_BLOCK_ELEMENTS, tagSet('address,article,' + 'aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,' + 'h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul')); // Inline Elements - HTML5

      var INLINE_ELEMENTS = merge(OPTIONAL_END_TAG_INLINE_ELEMENTS, tagSet('a,abbr,acronym,audio,b,' + 'bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,' + 'samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video'));
      var VALID_ELEMENTS = merge(VOID_ELEMENTS, BLOCK_ELEMENTS, INLINE_ELEMENTS, OPTIONAL_END_TAG_ELEMENTS); // Attributes that have href and hence need to be sanitized

      var URI_ATTRS = tagSet('background,cite,href,itemtype,longdesc,poster,src,xlink:href'); // Attributes that have special href set hence need to be sanitized

      var SRCSET_ATTRS = tagSet('srcset');
      var HTML_ATTRS = tagSet('abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,' + 'compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,' + 'ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,' + 'scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,' + 'valign,value,vspace,width'); // Accessibility attributes as per WAI-ARIA 1.1 (W3C Working Draft 14 December 2018)

      var ARIA_ATTRS = tagSet('aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,' + 'aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,' + 'aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,' + 'aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,' + 'aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,' + 'aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,' + 'aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext'); // NB: This currently consciously doesn't support SVG. SVG sanitization has had several security
      // issues in the past, so it seems safer to leave it out if possible. If support for binding SVG via
      // innerHTML is required, SVG attributes should be added here.
      // NB: Sanitization does not allow <form> elements or other active elements (<button> etc). Those
      // can be sanitized, but they increase security surface area without a legitimate use case, so they
      // are left out here.

      var VALID_ATTRS = merge(URI_ATTRS, SRCSET_ATTRS, HTML_ATTRS, ARIA_ATTRS); // Elements whose content should not be traversed/preserved, if the elements themselves are invalid.
      //
      // Typically, `<invalid>Some content</invalid>` would traverse (and in this case preserve)
      // `Some content`, but strip `invalid-element` opening/closing tags. For some elements, though, we
      // don't want to preserve the content, if the elements themselves are going to be removed.

      var SKIP_TRAVERSING_CONTENT_IF_INVALID_ELEMENTS = tagSet('script,style,template');
      /**
       * SanitizingHtmlSerializer serializes a DOM fragment, stripping out any unsafe elements and unsafe
       * attributes.
       */

      var SanitizingHtmlSerializer = /*#__PURE__*/function () {
        function SanitizingHtmlSerializer() {
          _classCallCheck2(this, SanitizingHtmlSerializer);

          // Explicitly track if something was stripped, to avoid accidentally warning of sanitization just
          // because characters were re-encoded.
          this.sanitizedSomething = false;
          this.buf = [];
        }

        _createClass2(SanitizingHtmlSerializer, [{
          key: "sanitizeChildren",
          value: function sanitizeChildren(el) {
            // This cannot use a TreeWalker, as it has to run on Angular's various DOM adapters.
            // However this code never accesses properties off of `document` before deleting its contents
            // again, so it shouldn't be vulnerable to DOM clobbering.
            var current = el.firstChild;
            var traverseContent = true;

            while (current) {
              if (current.nodeType === Node.ELEMENT_NODE) {
                traverseContent = this.startElement(current);
              } else if (current.nodeType === Node.TEXT_NODE) {
                this.chars(current.nodeValue);
              } else {
                // Strip non-element, non-text nodes.
                this.sanitizedSomething = true;
              }

              if (traverseContent && current.firstChild) {
                current = current.firstChild;
                continue;
              }

              while (current) {
                // Leaving the element. Walk up and to the right, closing tags as we go.
                if (current.nodeType === Node.ELEMENT_NODE) {
                  this.endElement(current);
                }

                var next = this.checkClobberedElement(current, current.nextSibling);

                if (next) {
                  current = next;
                  break;
                }

                current = this.checkClobberedElement(current, current.parentNode);
              }
            }

            return this.buf.join('');
          }
          /**
           * Sanitizes an opening element tag (if valid) and returns whether the element's contents should
           * be traversed. Element content must always be traversed (even if the element itself is not
           * valid/safe), unless the element is one of `SKIP_TRAVERSING_CONTENT_IF_INVALID_ELEMENTS`.
           *
           * @param element The element to sanitize.
           * @return True if the element's contents should be traversed.
           */

        }, {
          key: "startElement",
          value: function startElement(element) {
            var tagName = element.nodeName.toLowerCase();

            if (!VALID_ELEMENTS.hasOwnProperty(tagName)) {
              this.sanitizedSomething = true;
              return !SKIP_TRAVERSING_CONTENT_IF_INVALID_ELEMENTS.hasOwnProperty(tagName);
            }

            this.buf.push('<');
            this.buf.push(tagName);
            var elAttrs = element.attributes;

            for (var i = 0; i < elAttrs.length; i++) {
              var elAttr = elAttrs.item(i);
              var attrName = elAttr.name;
              var lower = attrName.toLowerCase();

              if (!VALID_ATTRS.hasOwnProperty(lower)) {
                this.sanitizedSomething = true;
                continue;
              }

              var value = elAttr.value; // TODO(martinprobst): Special case image URIs for data:image/...

              if (URI_ATTRS[lower]) value = _sanitizeUrl(value);
              if (SRCSET_ATTRS[lower]) value = sanitizeSrcset(value);
              this.buf.push(' ', attrName, '="', encodeEntities(value), '"');
            }

            this.buf.push('>');
            return true;
          }
        }, {
          key: "endElement",
          value: function endElement(current) {
            var tagName = current.nodeName.toLowerCase();

            if (VALID_ELEMENTS.hasOwnProperty(tagName) && !VOID_ELEMENTS.hasOwnProperty(tagName)) {
              this.buf.push('</');
              this.buf.push(tagName);
              this.buf.push('>');
            }
          }
        }, {
          key: "chars",
          value: function chars(_chars) {
            this.buf.push(encodeEntities(_chars));
          }
        }, {
          key: "checkClobberedElement",
          value: function checkClobberedElement(node, nextNode) {
            if (nextNode && (node.compareDocumentPosition(nextNode) & Node.DOCUMENT_POSITION_CONTAINED_BY) === Node.DOCUMENT_POSITION_CONTAINED_BY) {
              throw new Error("Failed to sanitize html because the element is clobbered: ".concat(node.outerHTML));
            }

            return nextNode;
          }
        }]);

        return SanitizingHtmlSerializer;
      }(); // Regular Expressions for parsing tags and attributes


      var SURROGATE_PAIR_REGEXP = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g; // ! to ~ is the ASCII range.

      var NON_ALPHANUMERIC_REGEXP = /([^\#-~ |!])/g;
      /**
       * Escapes all potentially dangerous characters, so that the
       * resulting string can be safely inserted into attribute or
       * element text.
       * @param value
       */

      function encodeEntities(value) {
        return value.replace(/&/g, '&amp;').replace(SURROGATE_PAIR_REGEXP, function (match) {
          var hi = match.charCodeAt(0);
          var low = match.charCodeAt(1);
          return '&#' + ((hi - 0xD800) * 0x400 + (low - 0xDC00) + 0x10000) + ';';
        }).replace(NON_ALPHANUMERIC_REGEXP, function (match) {
          return '&#' + match.charCodeAt(0) + ';';
        }).replace(/</g, '&lt;').replace(/>/g, '&gt;');
      }

      var inertBodyHelper;
      /**
       * Sanitizes the given unsafe, untrusted HTML fragment, and returns HTML text that is safe to add to
       * the DOM in a browser environment.
       */

      function _sanitizeHtml(defaultDoc, unsafeHtmlInput) {
        var inertBodyElement = null;

        try {
          inertBodyHelper = inertBodyHelper || getInertBodyHelper(defaultDoc); // Make sure unsafeHtml is actually a string (TypeScript types are not enforced at runtime).

          var unsafeHtml = unsafeHtmlInput ? String(unsafeHtmlInput) : '';
          inertBodyElement = inertBodyHelper.getInertBodyElement(unsafeHtml); // mXSS protection. Repeatedly parse the document to make sure it stabilizes, so that a browser
          // trying to auto-correct incorrect HTML cannot cause formerly inert HTML to become dangerous.

          var mXSSAttempts = 5;
          var parsedHtml = unsafeHtml;

          do {
            if (mXSSAttempts === 0) {
              throw new Error('Failed to sanitize html because the input is unstable');
            }

            mXSSAttempts--;
            unsafeHtml = parsedHtml;
            parsedHtml = inertBodyElement.innerHTML;
            inertBodyElement = inertBodyHelper.getInertBodyElement(unsafeHtml);
          } while (unsafeHtml !== parsedHtml);

          var sanitizer = new SanitizingHtmlSerializer();
          var safeHtml = sanitizer.sanitizeChildren(getTemplateContent(inertBodyElement) || inertBodyElement);

          if (isDevMode() && sanitizer.sanitizedSomething) {
            console.warn('WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss');
          }

          return safeHtml;
        } finally {
          // In case anything goes wrong, clear out inertElement to reset the entire DOM structure.
          if (inertBodyElement) {
            var parent = getTemplateContent(inertBodyElement) || inertBodyElement;

            while (parent.firstChild) {
              parent.removeChild(parent.firstChild);
            }
          }
        }
      }

      function getTemplateContent(el) {
        return 'content' in el
        /** Microsoft/TypeScript#21517 */
        && isTemplateElement(el) ? el.content : null;
      }

      function isTemplateElement(el) {
        return el.nodeType === Node.ELEMENT_NODE && el.nodeName === 'TEMPLATE';
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * A SecurityContext marks a location that has dangerous security implications, e.g. a DOM property
       * like `innerHTML` that could cause Cross Site Scripting (XSS) security bugs when improperly
       * handled.
       *
       * See DomSanitizer for more details on security in Angular applications.
       *
       * @publicApi
       */


      var SecurityContext;

      (function (SecurityContext) {
        SecurityContext[SecurityContext["NONE"] = 0] = "NONE";
        SecurityContext[SecurityContext["HTML"] = 1] = "HTML";
        SecurityContext[SecurityContext["STYLE"] = 2] = "STYLE";
        SecurityContext[SecurityContext["SCRIPT"] = 3] = "SCRIPT";
        SecurityContext[SecurityContext["URL"] = 4] = "URL";
        SecurityContext[SecurityContext["RESOURCE_URL"] = 5] = "RESOURCE_URL";
      })(SecurityContext || (SecurityContext = {}));
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * An `html` sanitizer which converts untrusted `html` **string** into trusted string by removing
       * dangerous content.
       *
       * This method parses the `html` and locates potentially dangerous content (such as urls and
       * javascript) and removes it.
       *
       * It is possible to mark a string as trusted by calling {@link bypassSanitizationTrustHtml}.
       *
       * @param unsafeHtml untrusted `html`, typically from the user.
       * @returns `html` string which is safe to display to user, because all of the dangerous javascript
       * and urls have been removed.
       *
       * @codeGenApi
       */


      function ɵɵsanitizeHtml(unsafeHtml) {
        var sanitizer = getSanitizer();

        if (sanitizer) {
          return sanitizer.sanitize(SecurityContext.HTML, unsafeHtml) || '';
        }

        if (allowSanitizationBypassAndThrow(unsafeHtml, "HTML"
        /* Html */
        )) {
          return unwrapSafeValue(unsafeHtml);
        }

        return _sanitizeHtml(getDocument(), renderStringify(unsafeHtml));
      }
      /**
       * A `style` sanitizer which converts untrusted `style` **string** into trusted string by removing
       * dangerous content.
       *
       * It is possible to mark a string as trusted by calling {@link bypassSanitizationTrustStyle}.
       *
       * @param unsafeStyle untrusted `style`, typically from the user.
       * @returns `style` string which is safe to bind to the `style` properties.
       *
       * @codeGenApi
       */


      function ɵɵsanitizeStyle(unsafeStyle) {
        var sanitizer = getSanitizer();

        if (sanitizer) {
          return sanitizer.sanitize(SecurityContext.STYLE, unsafeStyle) || '';
        }

        if (allowSanitizationBypassAndThrow(unsafeStyle, "Style"
        /* Style */
        )) {
          return unwrapSafeValue(unsafeStyle);
        }

        return renderStringify(unsafeStyle);
      }
      /**
       * A `url` sanitizer which converts untrusted `url` **string** into trusted string by removing
       * dangerous
       * content.
       *
       * This method parses the `url` and locates potentially dangerous content (such as javascript) and
       * removes it.
       *
       * It is possible to mark a string as trusted by calling {@link bypassSanitizationTrustUrl}.
       *
       * @param unsafeUrl untrusted `url`, typically from the user.
       * @returns `url` string which is safe to bind to the `src` properties such as `<img src>`, because
       * all of the dangerous javascript has been removed.
       *
       * @codeGenApi
       */


      function ɵɵsanitizeUrl(unsafeUrl) {
        var sanitizer = getSanitizer();

        if (sanitizer) {
          return sanitizer.sanitize(SecurityContext.URL, unsafeUrl) || '';
        }

        if (allowSanitizationBypassAndThrow(unsafeUrl, "URL"
        /* Url */
        )) {
          return unwrapSafeValue(unsafeUrl);
        }

        return _sanitizeUrl(renderStringify(unsafeUrl));
      }
      /**
       * A `url` sanitizer which only lets trusted `url`s through.
       *
       * This passes only `url`s marked trusted by calling {@link bypassSanitizationTrustResourceUrl}.
       *
       * @param unsafeResourceUrl untrusted `url`, typically from the user.
       * @returns `url` string which is safe to bind to the `src` properties such as `<img src>`, because
       * only trusted `url`s have been allowed to pass.
       *
       * @codeGenApi
       */


      function ɵɵsanitizeResourceUrl(unsafeResourceUrl) {
        var sanitizer = getSanitizer();

        if (sanitizer) {
          return sanitizer.sanitize(SecurityContext.RESOURCE_URL, unsafeResourceUrl) || '';
        }

        if (allowSanitizationBypassAndThrow(unsafeResourceUrl, "ResourceURL"
        /* ResourceUrl */
        )) {
          return unwrapSafeValue(unsafeResourceUrl);
        }

        throw new Error('unsafe value used in a resource URL context (see http://g.co/ng/security#xss)');
      }
      /**
       * A `script` sanitizer which only lets trusted javascript through.
       *
       * This passes only `script`s marked trusted by calling {@link
       * bypassSanitizationTrustScript}.
       *
       * @param unsafeScript untrusted `script`, typically from the user.
       * @returns `url` string which is safe to bind to the `<script>` element such as `<img src>`,
       * because only trusted `scripts` have been allowed to pass.
       *
       * @codeGenApi
       */


      function ɵɵsanitizeScript(unsafeScript) {
        var sanitizer = getSanitizer();

        if (sanitizer) {
          return sanitizer.sanitize(SecurityContext.SCRIPT, unsafeScript) || '';
        }

        if (allowSanitizationBypassAndThrow(unsafeScript, "Script"
        /* Script */
        )) {
          return unwrapSafeValue(unsafeScript);
        }

        throw new Error('unsafe value used in a script context');
      }
      /**
       * Promotes the given constant string to a TrustedHTML.
       * @param html constant string containing trusted HTML.
       * @returns TrustedHTML wrapping `html`.
       *
       * @security This is a security-sensitive function and should only be used to
       * convert constant values of attributes and properties found in
       * application-provided Angular templates to TrustedHTML.
       *
       * @codeGenApi
       */


      function ɵɵtrustConstantHtml(html) {
        return trustedHTMLFromString(html);
      }
      /**
       * Promotes the given constant string to a TrustedScript.
       * @param script constant string containing a trusted script.
       * @returns TrustedScript wrapping `script`.
       *
       * @security This is a security-sensitive function and should only be used to
       * convert constant values of attributes and properties found in
       * application-provided Angular templates to TrustedScript.
       *
       * @codeGenApi
       */


      function ɵɵtrustConstantScript(script) {
        return trustedScriptFromString(script);
      }
      /**
       * Promotes the given constant string to a TrustedScriptURL.
       * @param url constant string containing a trusted script URL.
       * @returns TrustedScriptURL wrapping `url`.
       *
       * @security This is a security-sensitive function and should only be used to
       * convert constant values of attributes and properties found in
       * application-provided Angular templates to TrustedScriptURL.
       *
       * @codeGenApi
       */


      function ɵɵtrustConstantResourceUrl(url) {
        return trustedScriptURLFromString(url);
      }
      /**
       * Detects which sanitizer to use for URL property, based on tag name and prop name.
       *
       * The rules are based on the RESOURCE_URL context config from
       * `packages/compiler/src/schema/dom_security_schema.ts`.
       * If tag and prop names don't match Resource URL schema, use URL sanitizer.
       */


      function getUrlSanitizer(tag, prop) {
        if (prop === 'src' && (tag === 'embed' || tag === 'frame' || tag === 'iframe' || tag === 'media' || tag === 'script') || prop === 'href' && (tag === 'base' || tag === 'link')) {
          return ɵɵsanitizeResourceUrl;
        }

        return ɵɵsanitizeUrl;
      }
      /**
       * Sanitizes URL, selecting sanitizer function based on tag and property names.
       *
       * This function is used in case we can't define security context at compile time, when only prop
       * name is available. This happens when we generate host bindings for Directives/Components. The
       * host element is unknown at compile time, so we defer calculation of specific sanitizer to
       * runtime.
       *
       * @param unsafeUrl untrusted `url`, typically from the user.
       * @param tag target element tag name.
       * @param prop name of the property that contains the value.
       * @returns `url` string which is safe to bind.
       *
       * @codeGenApi
       */


      function ɵɵsanitizeUrlOrResourceUrl(unsafeUrl, tag, prop) {
        return getUrlSanitizer(tag, prop)(unsafeUrl);
      }

      function validateAgainstEventProperties(name) {
        if (name.toLowerCase().startsWith('on')) {
          var msg = "Binding to event property '".concat(name, "' is disallowed for security reasons, ") + "please use (".concat(name.slice(2), ")=...") + "\nIf '".concat(name, "' is a directive input, make sure the directive is imported by the") + " current module.";
          throw new Error(msg);
        }
      }

      function validateAgainstEventAttributes(name) {
        if (name.toLowerCase().startsWith('on')) {
          var msg = "Binding to event attribute '".concat(name, "' is disallowed for security reasons, ") + "please use (".concat(name.slice(2), ")=...");
          throw new Error(msg);
        }
      }

      function getSanitizer() {
        var lView = getLView();
        return lView && lView[SANITIZER];
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * THIS FILE CONTAINS CODE WHICH SHOULD BE TREE SHAKEN AND NEVER CALLED FROM PRODUCTION CODE!!!
       */

      /**
       * Creates an `Array` construction with a given name. This is useful when
       * looking for memory consumption to see what time of array it is.
       *
       *
       * @param name Name to give to the constructor
       * @returns A subclass of `Array` if possible. This can only be done in
       *          environments which support `class` construct.
       */


      function createNamedArrayType(name) {
        // This should never be called in prod mode, so let's verify that is the case.
        if (ngDevMode) {
          try {
            // If this function were compromised the following could lead to arbitrary
            // script execution. We bless it with Trusted Types anyway since this
            // function is stripped out of production binaries.
            return newTrustedFunctionForDev('Array', "return class ".concat(name, " extends Array{}"))(Array);
          } catch (e) {
            // If it does not work just give up and fall back to regular Array.
            return Array;
          }
        } else {
          throw new Error('Looks like we are in \'prod mode\', but we are creating a named Array type, which is wrong! Check your code');
        }
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function normalizeDebugBindingName(name) {
        // Attribute names with `$` (eg `x-y$`) are valid per spec, but unsupported by some browsers
        name = camelCaseToDashCase(name.replace(/[$@]/g, '_'));
        return "ng-reflect-".concat(name);
      }

      var CAMEL_CASE_REGEXP = /([A-Z])/g;

      function camelCaseToDashCase(input) {
        return input.replace(CAMEL_CASE_REGEXP, function () {
          for (var _len25 = arguments.length, m = new Array(_len25), _key26 = 0; _key26 < _len25; _key26++) {
            m[_key26] = arguments[_key26];
          }

          return '-' + m[1].toLowerCase();
        });
      }

      function normalizeDebugBindingValue(value) {
        try {
          // Limit the size of the value as otherwise the DOM just gets polluted.
          return value != null ? value.toString().slice(0, 30) : value;
        } catch (e) {
          return '[ERROR] Exception while trying to serialize the value';
        }
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Returns the matching `LContext` data for a given DOM node, directive or component instance.
       *
       * This function will examine the provided DOM element, component, or directive instance\'s
       * monkey-patched property to derive the `LContext` data. Once called then the monkey-patched
       * value will be that of the newly created `LContext`.
       *
       * If the monkey-patched value is the `LView` instance then the context value for that
       * target will be created and the monkey-patch reference will be updated. Therefore when this
       * function is called it may mutate the provided element\'s, component\'s or any of the associated
       * directive\'s monkey-patch values.
       *
       * If the monkey-patch value is not detected then the code will walk up the DOM until an element
       * is found which contains a monkey-patch reference. When that occurs then the provided element
       * will be updated with a new context (which is then returned). If the monkey-patch value is not
       * detected for a component/directive instance then it will throw an error (all components and
       * directives should be automatically monkey-patched by ivy).
       *
       * @param target Component, Directive or DOM Node.
       */


      function getLContext(target) {
        var mpValue = readPatchedData(target);

        if (mpValue) {
          // only when it's an array is it considered an LView instance
          // ... otherwise it's an already constructed LContext instance
          if (Array.isArray(mpValue)) {
            var lView = mpValue;
            var nodeIndex;
            var component = undefined;
            var directives = undefined;

            if (isComponentInstance(target)) {
              nodeIndex = findViaComponent(lView, target);

              if (nodeIndex == -1) {
                throw new Error('The provided component was not found in the application');
              }

              component = target;
            } else if (isDirectiveInstance(target)) {
              nodeIndex = findViaDirective(lView, target);

              if (nodeIndex == -1) {
                throw new Error('The provided directive was not found in the application');
              }

              directives = getDirectivesAtNodeIndex(nodeIndex, lView, false);
            } else {
              nodeIndex = findViaNativeElement(lView, target);

              if (nodeIndex == -1) {
                return null;
              }
            } // the goal is not to fill the entire context full of data because the lookups
            // are expensive. Instead, only the target data (the element, component, container, ICU
            // expression or directive details) are filled into the context. If called multiple times
            // with different target values then the missing target data will be filled in.


            var _native2 = unwrapRNode(lView[nodeIndex]);

            var existingCtx = readPatchedData(_native2);
            var context = existingCtx && !Array.isArray(existingCtx) ? existingCtx : createLContext(lView, nodeIndex, _native2); // only when the component has been discovered then update the monkey-patch

            if (component && context.component === undefined) {
              context.component = component;
              attachPatchData(context.component, context);
            } // only when the directives have been discovered then update the monkey-patch


            if (directives && context.directives === undefined) {
              context.directives = directives;

              for (var i = 0; i < directives.length; i++) {
                attachPatchData(directives[i], context);
              }
            }

            attachPatchData(context["native"], context);
            mpValue = context;
          }
        } else {
          var rElement = target;
          ngDevMode && assertDomNode(rElement); // if the context is not found then we need to traverse upwards up the DOM
          // to find the nearest element that has already been monkey patched with data

          var parent = rElement;

          while (parent = parent.parentNode) {
            var parentContext = readPatchedData(parent);

            if (parentContext) {
              var _lView2 = void 0;

              if (Array.isArray(parentContext)) {
                _lView2 = parentContext;
              } else {
                _lView2 = parentContext.lView;
              } // the edge of the app was also reached here through another means
              // (maybe because the DOM was changed manually).


              if (!_lView2) {
                return null;
              }

              var index = findViaNativeElement(_lView2, rElement);

              if (index >= 0) {
                var _native3 = unwrapRNode(_lView2[index]);

                var _context2 = createLContext(_lView2, index, _native3);

                attachPatchData(_native3, _context2);
                mpValue = _context2;
                break;
              }
            }
          }
        }

        return mpValue || null;
      }
      /**
       * Creates an empty instance of a `LContext` context
       */


      function createLContext(lView, nodeIndex, _native4) {
        return {
          lView: lView,
          nodeIndex: nodeIndex,
          "native": _native4,
          component: undefined,
          directives: undefined,
          localRefs: undefined
        };
      }
      /**
       * Takes a component instance and returns the view for that component.
       *
       * @param componentInstance
       * @returns The component's view
       */


      function getComponentViewByInstance(componentInstance) {
        var lView = readPatchedData(componentInstance);
        var view;

        if (Array.isArray(lView)) {
          var nodeIndex = findViaComponent(lView, componentInstance);
          view = getComponentLViewByIndex(nodeIndex, lView);
          var context = createLContext(lView, nodeIndex, view[HOST]);
          context.component = componentInstance;
          attachPatchData(componentInstance, context);
          attachPatchData(context["native"], context);
        } else {
          var _context3 = lView;
          view = getComponentLViewByIndex(_context3.nodeIndex, _context3.lView);
        }

        return view;
      }
      /**
       * Assigns the given data to the given target (which could be a component,
       * directive or DOM node instance) using monkey-patching.
       */


      function attachPatchData(target, data) {
        target[MONKEY_PATCH_KEY_NAME] = data;
      }

      function isComponentInstance(instance) {
        return instance && instance.constructor && instance.constructor.ɵcmp;
      }

      function isDirectiveInstance(instance) {
        return instance && instance.constructor && instance.constructor.ɵdir;
      }
      /**
       * Locates the element within the given LView and returns the matching index
       */


      function findViaNativeElement(lView, target) {
        var tView = lView[TVIEW];

        for (var i = HEADER_OFFSET; i < tView.bindingStartIndex; i++) {
          if (unwrapRNode(lView[i]) === target) {
            return i;
          }
        }

        return -1;
      }
      /**
       * Locates the next tNode (child, sibling or parent).
       */


      function traverseNextElement(tNode) {
        if (tNode.child) {
          return tNode.child;
        } else if (tNode.next) {
          return tNode.next;
        } else {
          // Let's take the following template: <div><span>text</span></div><component/>
          // After checking the text node, we need to find the next parent that has a "next" TNode,
          // in this case the parent `div`, so that we can find the component.
          while (tNode.parent && !tNode.parent.next) {
            tNode = tNode.parent;
          }

          return tNode.parent && tNode.parent.next;
        }
      }
      /**
       * Locates the component within the given LView and returns the matching index
       */


      function findViaComponent(lView, componentInstance) {
        var componentIndices = lView[TVIEW].components;

        if (componentIndices) {
          for (var i = 0; i < componentIndices.length; i++) {
            var elementComponentIndex = componentIndices[i];
            var componentView = getComponentLViewByIndex(elementComponentIndex, lView);

            if (componentView[CONTEXT] === componentInstance) {
              return elementComponentIndex;
            }
          }
        } else {
          var rootComponentView = getComponentLViewByIndex(HEADER_OFFSET, lView);
          var rootComponent = rootComponentView[CONTEXT];

          if (rootComponent === componentInstance) {
            // we are dealing with the root element here therefore we know that the
            // element is the very first element after the HEADER data in the lView
            return HEADER_OFFSET;
          }
        }

        return -1;
      }
      /**
       * Locates the directive within the given LView and returns the matching index
       */


      function findViaDirective(lView, directiveInstance) {
        // if a directive is monkey patched then it will (by default)
        // have a reference to the LView of the current view. The
        // element bound to the directive being search lives somewhere
        // in the view data. We loop through the nodes and check their
        // list of directives for the instance.
        var tNode = lView[TVIEW].firstChild;

        while (tNode) {
          var directiveIndexStart = tNode.directiveStart;
          var directiveIndexEnd = tNode.directiveEnd;

          for (var i = directiveIndexStart; i < directiveIndexEnd; i++) {
            if (lView[i] === directiveInstance) {
              return tNode.index;
            }
          }

          tNode = traverseNextElement(tNode);
        }

        return -1;
      }
      /**
       * Returns a list of directives extracted from the given view based on the
       * provided list of directive index values.
       *
       * @param nodeIndex The node index
       * @param lView The target view data
       * @param includeComponents Whether or not to include components in returned directives
       */


      function getDirectivesAtNodeIndex(nodeIndex, lView, includeComponents) {
        var tNode = lView[TVIEW].data[nodeIndex];
        var directiveStartIndex = tNode.directiveStart;
        if (directiveStartIndex == 0) return EMPTY_ARRAY;
        var directiveEndIndex = tNode.directiveEnd;
        if (!includeComponents && tNode.flags & 2
        /* isComponentHost */
        ) directiveStartIndex++;
        return lView.slice(directiveStartIndex, directiveEndIndex);
      }

      function getComponentAtNodeIndex(nodeIndex, lView) {
        var tNode = lView[TVIEW].data[nodeIndex];
        var directiveStartIndex = tNode.directiveStart;
        return tNode.flags & 2
        /* isComponentHost */
        ? lView[directiveStartIndex] : null;
      }
      /**
       * Returns a map of local references (local reference name => element or directive instance) that
       * exist on a given element.
       */


      function discoverLocalRefs(lView, nodeIndex) {
        var tNode = lView[TVIEW].data[nodeIndex];

        if (tNode && tNode.localNames) {
          var result = {};
          var localIndex = tNode.index + 1;

          for (var i = 0; i < tNode.localNames.length; i += 2) {
            result[tNode.localNames[i]] = lView[localIndex];
            localIndex++;
          }

          return result;
        }

        return null;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var _icuContainerIterate;
      /**
       * Iterator which provides ability to visit all of the `TIcuContainerNode` root `RNode`s.
       */


      function icuContainerIterate(tIcuContainerNode, lView) {
        return _icuContainerIterate(tIcuContainerNode, lView);
      }
      /**
       * Ensures that `IcuContainerVisitor`'s implementation is present.
       *
       * This function is invoked when i18n instruction comes across an ICU. The purpose is to allow the
       * bundler to tree shake ICU logic and only load it if ICU instruction is executed.
       */


      function ensureIcuContainerVisitorLoaded(loader) {
        if (_icuContainerIterate === undefined) {
          // Do not inline this function. We want to keep `ensureIcuContainerVisitorLoaded` light, so it
          // can be inlined into call-site.
          _icuContainerIterate = loader();
        }
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */
      // Note: This hack is necessary so we don't erroneously get a circular dependency
      // failure based on types.


      var unusedValueExportToPlacateAjd$5 = 1;
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Gets the parent LView of the passed LView, if the PARENT is an LContainer, will get the parent of
       * that LContainer, which is an LView
       * @param lView the lView whose parent to get
       */

      function getLViewParent(lView) {
        ngDevMode && assertLView(lView);
        var parent = lView[PARENT];
        return isLContainer(parent) ? parent[PARENT] : parent;
      }
      /**
       * Retrieve the root view from any component or `LView` by walking the parent `LView` until
       * reaching the root `LView`.
       *
       * @param componentOrLView any component or `LView`
       */


      function getRootView(componentOrLView) {
        ngDevMode && assertDefined(componentOrLView, 'component');
        var lView = isLView(componentOrLView) ? componentOrLView : readPatchedLView(componentOrLView);

        while (lView && !(lView[FLAGS] & 512
        /* IsRoot */
        )) {
          lView = getLViewParent(lView);
        }

        ngDevMode && assertLView(lView);
        return lView;
      }
      /**
       * Returns the `RootContext` instance that is associated with
       * the application where the target is situated. It does this by walking the parent views until it
       * gets to the root view, then getting the context off of that.
       *
       * @param viewOrComponent the `LView` or component to get the root context for.
       */


      function getRootContext(viewOrComponent) {
        var rootView = getRootView(viewOrComponent);
        ngDevMode && assertDefined(rootView[CONTEXT], 'RootView has no context. Perhaps it is disconnected?');
        return rootView[CONTEXT];
      }
      /**
       * Gets the first `LContainer` in the LView or `null` if none exists.
       */


      function getFirstLContainer(lView) {
        return getNearestLContainer(lView[CHILD_HEAD]);
      }
      /**
       * Gets the next `LContainer` that is a sibling of the given container.
       */


      function getNextLContainer(container) {
        return getNearestLContainer(container[NEXT]);
      }

      function getNearestLContainer(viewOrContainer) {
        while (viewOrContainer !== null && !isLContainer(viewOrContainer)) {
          viewOrContainer = viewOrContainer[NEXT];
        }

        return viewOrContainer;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var unusedValueToPlacateAjd = unusedValueExportToPlacateAjd$1 + unusedValueExportToPlacateAjd$4 + unusedValueExportToPlacateAjd$5 + unusedValueExportToPlacateAjd$2 + unusedValueExportToPlacateAjd;
      /**
       * NOTE: for performance reasons, the possible actions are inlined within the function instead of
       * being passed as an argument.
       */

      function applyToElementOrContainer(action, renderer, parent, lNodeToHandle, beforeNode) {
        // If this slot was allocated for a text node dynamically created by i18n, the text node itself
        // won't be created until i18nApply() in the update block, so this node should be skipped.
        // For more info, see "ICU expressions should work inside an ngTemplateOutlet inside an ngFor"
        // in `i18n_spec.ts`.
        if (lNodeToHandle != null) {
          var lContainer;
          var isComponent = false; // We are expecting an RNode, but in the case of a component or LContainer the `RNode` is
          // wrapped in an array which needs to be unwrapped. We need to know if it is a component and if
          // it has LContainer so that we can process all of those cases appropriately.

          if (isLContainer(lNodeToHandle)) {
            lContainer = lNodeToHandle;
          } else if (isLView(lNodeToHandle)) {
            isComponent = true;
            ngDevMode && assertDefined(lNodeToHandle[HOST], 'HOST must be defined for a component LView');
            lNodeToHandle = lNodeToHandle[HOST];
          }

          var rNode = unwrapRNode(lNodeToHandle);
          ngDevMode && !isProceduralRenderer(renderer) && assertDomNode(rNode);

          if (action === 0
          /* Create */
          && parent !== null) {
            if (beforeNode == null) {
              nativeAppendChild(renderer, parent, rNode);
            } else {
              nativeInsertBefore(renderer, parent, rNode, beforeNode || null, true);
            }
          } else if (action === 1
          /* Insert */
          && parent !== null) {
            nativeInsertBefore(renderer, parent, rNode, beforeNode || null, true);
          } else if (action === 2
          /* Detach */
          ) {
            nativeRemoveNode(renderer, rNode, isComponent);
          } else if (action === 3
          /* Destroy */
          ) {
            ngDevMode && ngDevMode.rendererDestroyNode++;
            renderer.destroyNode(rNode);
          }

          if (lContainer != null) {
            applyContainer(renderer, action, lContainer, parent, beforeNode);
          }
        }
      }

      function createTextNode(renderer, value) {
        ngDevMode && ngDevMode.rendererCreateTextNode++;
        ngDevMode && ngDevMode.rendererSetText++;
        return isProceduralRenderer(renderer) ? renderer.createText(value) : renderer.createTextNode(value);
      }

      function updateTextNode(renderer, rNode, value) {
        ngDevMode && ngDevMode.rendererSetText++;
        isProceduralRenderer(renderer) ? renderer.setValue(rNode, value) : rNode.textContent = value;
      }

      function createCommentNode(renderer, value) {
        ngDevMode && ngDevMode.rendererCreateComment++; // isProceduralRenderer check is not needed because both `Renderer2` and `Renderer3` have the same
        // method name.

        return renderer.createComment(value);
      }
      /**
       * Creates a native element from a tag name, using a renderer.
       * @param renderer A renderer to use
       * @param name the tag name
       * @param namespace Optional namespace for element.
       * @returns the element created
       */


      function createElementNode(renderer, name, namespace) {
        ngDevMode && ngDevMode.rendererCreateElement++;

        if (isProceduralRenderer(renderer)) {
          return renderer.createElement(name, namespace);
        } else {
          return namespace === null ? renderer.createElement(name) : renderer.createElementNS(namespace, name);
        }
      }
      /**
       * Removes all DOM elements associated with a view.
       *
       * Because some root nodes of the view may be containers, we sometimes need
       * to propagate deeply into the nested containers to remove all elements in the
       * views beneath it.
       *
       * @param tView The `TView' of the `LView` from which elements should be added or removed
       * @param lView The view from which elements should be added or removed
       */


      function removeViewFromContainer(tView, lView) {
        var renderer = lView[RENDERER];
        applyView(tView, lView, renderer, 2
        /* Detach */
        , null, null);
        lView[HOST] = null;
        lView[T_HOST] = null;
      }
      /**
       * Adds all DOM elements associated with a view.
       *
       * Because some root nodes of the view may be containers, we sometimes need
       * to propagate deeply into the nested containers to add all elements in the
       * views beneath it.
       *
       * @param tView The `TView' of the `LView` from which elements should be added or removed
       * @param parentTNode The `TNode` where the `LView` should be attached to.
       * @param renderer Current renderer to use for DOM manipulations.
       * @param lView The view from which elements should be added or removed
       * @param parentNativeNode The parent `RElement` where it should be inserted into.
       * @param beforeNode The node before which elements should be added, if insert mode
       */


      function addViewToContainer(tView, parentTNode, renderer, lView, parentNativeNode, beforeNode) {
        lView[HOST] = parentNativeNode;
        lView[T_HOST] = parentTNode;
        applyView(tView, lView, renderer, 1
        /* Insert */
        , parentNativeNode, beforeNode);
      }
      /**
       * Detach a `LView` from the DOM by detaching its nodes.
       *
       * @param tView The `TView' of the `LView` to be detached
       * @param lView the `LView` to be detached.
       */


      function renderDetachView(tView, lView) {
        applyView(tView, lView, lView[RENDERER], 2
        /* Detach */
        , null, null);
      }
      /**
       * Traverses down and up the tree of views and containers to remove listeners and
       * call onDestroy callbacks.
       *
       * Notes:
       *  - Because it's used for onDestroy calls, it needs to be bottom-up.
       *  - Must process containers instead of their views to avoid splicing
       *  when views are destroyed and re-added.
       *  - Using a while loop because it's faster than recursion
       *  - Destroy only called on movement to sibling or movement to parent (laterally or up)
       *
       *  @param rootView The view to destroy
       */


      function destroyViewTree(rootView) {
        // If the view has no children, we can clean it up and return early.
        var lViewOrLContainer = rootView[CHILD_HEAD];

        if (!lViewOrLContainer) {
          return cleanUpView(rootView[TVIEW], rootView);
        }

        while (lViewOrLContainer) {
          var next = null;

          if (isLView(lViewOrLContainer)) {
            // If LView, traverse down to child.
            next = lViewOrLContainer[CHILD_HEAD];
          } else {
            ngDevMode && assertLContainer(lViewOrLContainer); // If container, traverse down to its first LView.

            var firstView = lViewOrLContainer[CONTAINER_HEADER_OFFSET];
            if (firstView) next = firstView;
          }

          if (!next) {
            // Only clean up view when moving to the side or up, as destroy hooks
            // should be called in order from the bottom up.
            while (lViewOrLContainer && !lViewOrLContainer[NEXT] && lViewOrLContainer !== rootView) {
              if (isLView(lViewOrLContainer)) {
                cleanUpView(lViewOrLContainer[TVIEW], lViewOrLContainer);
              }

              lViewOrLContainer = lViewOrLContainer[PARENT];
            }

            if (lViewOrLContainer === null) lViewOrLContainer = rootView;

            if (isLView(lViewOrLContainer)) {
              cleanUpView(lViewOrLContainer[TVIEW], lViewOrLContainer);
            }

            next = lViewOrLContainer && lViewOrLContainer[NEXT];
          }

          lViewOrLContainer = next;
        }
      }
      /**
       * Inserts a view into a container.
       *
       * This adds the view to the container's array of active views in the correct
       * position. It also adds the view's elements to the DOM if the container isn't a
       * root node of another view (in that case, the view's elements will be added when
       * the container's parent view is added later).
       *
       * @param tView The `TView' of the `LView` to insert
       * @param lView The view to insert
       * @param lContainer The container into which the view should be inserted
       * @param index Which index in the container to insert the child view into
       */


      function insertView(tView, lView, lContainer, index) {
        ngDevMode && assertLView(lView);
        ngDevMode && assertLContainer(lContainer);
        var indexInContainer = CONTAINER_HEADER_OFFSET + index;
        var containerLength = lContainer.length;

        if (index > 0) {
          // This is a new view, we need to add it to the children.
          lContainer[indexInContainer - 1][NEXT] = lView;
        }

        if (index < containerLength - CONTAINER_HEADER_OFFSET) {
          lView[NEXT] = lContainer[indexInContainer];
          addToArray(lContainer, CONTAINER_HEADER_OFFSET + index, lView);
        } else {
          lContainer.push(lView);
          lView[NEXT] = null;
        }

        lView[PARENT] = lContainer; // track views where declaration and insertion points are different

        var declarationLContainer = lView[DECLARATION_LCONTAINER];

        if (declarationLContainer !== null && lContainer !== declarationLContainer) {
          trackMovedView(declarationLContainer, lView);
        } // notify query that a new view has been added


        var lQueries = lView[QUERIES];

        if (lQueries !== null) {
          lQueries.insertView(tView);
        } // Sets the attached flag


        lView[FLAGS] |= 128
        /* Attached */
        ;
      }
      /**
       * Track views created from the declaration container (TemplateRef) and inserted into a
       * different LContainer.
       */


      function trackMovedView(declarationContainer, lView) {
        ngDevMode && assertDefined(lView, 'LView required');
        ngDevMode && assertLContainer(declarationContainer);
        var movedViews = declarationContainer[MOVED_VIEWS];
        var insertedLContainer = lView[PARENT];
        ngDevMode && assertLContainer(insertedLContainer);
        var insertedComponentLView = insertedLContainer[PARENT][DECLARATION_COMPONENT_VIEW];
        ngDevMode && assertDefined(insertedComponentLView, 'Missing insertedComponentLView');
        var declaredComponentLView = lView[DECLARATION_COMPONENT_VIEW];
        ngDevMode && assertDefined(declaredComponentLView, 'Missing declaredComponentLView');

        if (declaredComponentLView !== insertedComponentLView) {
          // At this point the declaration-component is not same as insertion-component; this means that
          // this is a transplanted view. Mark the declared lView as having transplanted views so that
          // those views can participate in CD.
          declarationContainer[HAS_TRANSPLANTED_VIEWS] = true;
        }

        if (movedViews === null) {
          declarationContainer[MOVED_VIEWS] = [lView];
        } else {
          movedViews.push(lView);
        }
      }

      function detachMovedView(declarationContainer, lView) {
        ngDevMode && assertLContainer(declarationContainer);
        ngDevMode && assertDefined(declarationContainer[MOVED_VIEWS], 'A projected view should belong to a non-empty projected views collection');
        var movedViews = declarationContainer[MOVED_VIEWS];
        var declarationViewIndex = movedViews.indexOf(lView);
        var insertionLContainer = lView[PARENT];
        ngDevMode && assertLContainer(insertionLContainer); // If the view was marked for refresh but then detached before it was checked (where the flag
        // would be cleared and the counter decremented), we need to decrement the view counter here
        // instead.

        if (lView[FLAGS] & 1024
        /* RefreshTransplantedView */
        ) {
          lView[FLAGS] &= ~1024
          /* RefreshTransplantedView */
          ;
          updateTransplantedViewCount(insertionLContainer, -1);
        }

        movedViews.splice(declarationViewIndex, 1);
      }
      /**
       * Detaches a view from a container.
       *
       * This method removes the view from the container's array of active views. It also
       * removes the view's elements from the DOM.
       *
       * @param lContainer The container from which to detach a view
       * @param removeIndex The index of the view to detach
       * @returns Detached LView instance.
       */


      function detachView(lContainer, removeIndex) {
        if (lContainer.length <= CONTAINER_HEADER_OFFSET) return;
        var indexInContainer = CONTAINER_HEADER_OFFSET + removeIndex;
        var viewToDetach = lContainer[indexInContainer];

        if (viewToDetach) {
          var declarationLContainer = viewToDetach[DECLARATION_LCONTAINER];

          if (declarationLContainer !== null && declarationLContainer !== lContainer) {
            detachMovedView(declarationLContainer, viewToDetach);
          }

          if (removeIndex > 0) {
            lContainer[indexInContainer - 1][NEXT] = viewToDetach[NEXT];
          }

          var removedLView = removeFromArray(lContainer, CONTAINER_HEADER_OFFSET + removeIndex);
          removeViewFromContainer(viewToDetach[TVIEW], viewToDetach); // notify query that a view has been removed

          var lQueries = removedLView[QUERIES];

          if (lQueries !== null) {
            lQueries.detachView(removedLView[TVIEW]);
          }

          viewToDetach[PARENT] = null;
          viewToDetach[NEXT] = null; // Unsets the attached flag

          viewToDetach[FLAGS] &= ~128
          /* Attached */
          ;
        }

        return viewToDetach;
      }
      /**
       * A standalone function which destroys an LView,
       * conducting clean up (e.g. removing listeners, calling onDestroys).
       *
       * @param tView The `TView' of the `LView` to be destroyed
       * @param lView The view to be destroyed.
       */


      function destroyLView(tView, lView) {
        if (!(lView[FLAGS] & 256
        /* Destroyed */
        )) {
          var renderer = lView[RENDERER];

          if (isProceduralRenderer(renderer) && renderer.destroyNode) {
            applyView(tView, lView, renderer, 3
            /* Destroy */
            , null, null);
          }

          destroyViewTree(lView);
        }
      }
      /**
       * Calls onDestroys hooks for all directives and pipes in a given view and then removes all
       * listeners. Listeners are removed as the last step so events delivered in the onDestroys hooks
       * can be propagated to @Output listeners.
       *
       * @param tView `TView` for the `LView` to clean up.
       * @param lView The LView to clean up
       */


      function cleanUpView(tView, lView) {
        if (!(lView[FLAGS] & 256
        /* Destroyed */
        )) {
          // Usually the Attached flag is removed when the view is detached from its parent, however
          // if it's a root view, the flag won't be unset hence why we're also removing on destroy.
          lView[FLAGS] &= ~128
          /* Attached */
          ; // Mark the LView as destroyed *before* executing the onDestroy hooks. An onDestroy hook
          // runs arbitrary user code, which could include its own `viewRef.destroy()` (or similar). If
          // We don't flag the view as destroyed before the hooks, this could lead to an infinite loop.
          // This also aligns with the ViewEngine behavior. It also means that the onDestroy hook is
          // really more of an "afterDestroy" hook if you think about it.

          lView[FLAGS] |= 256
          /* Destroyed */
          ;
          executeOnDestroys(tView, lView);
          removeListeners(tView, lView); // For component views only, the local renderer is destroyed at clean up time.

          if (lView[TVIEW].type === 1
          /* Component */
          && isProceduralRenderer(lView[RENDERER])) {
            ngDevMode && ngDevMode.rendererDestroy++;
            lView[RENDERER].destroy();
          }

          var declarationContainer = lView[DECLARATION_LCONTAINER]; // we are dealing with an embedded view that is still inserted into a container

          if (declarationContainer !== null && isLContainer(lView[PARENT])) {
            // and this is a projected view
            if (declarationContainer !== lView[PARENT]) {
              detachMovedView(declarationContainer, lView);
            } // For embedded views still attached to a container: remove query result from this view.


            var lQueries = lView[QUERIES];

            if (lQueries !== null) {
              lQueries.detachView(tView);
            }
          }
        }
      }
      /** Removes listeners and unsubscribes from output subscriptions */


      function removeListeners(tView, lView) {
        var tCleanup = tView.cleanup;

        if (tCleanup !== null) {
          var lCleanup = lView[CLEANUP];

          for (var i = 0; i < tCleanup.length - 1; i += 2) {
            if (typeof tCleanup[i] === 'string') {
              // This is a native DOM listener
              var idxOrTargetGetter = tCleanup[i + 1];
              var target = typeof idxOrTargetGetter === 'function' ? idxOrTargetGetter(lView) : unwrapRNode(lView[idxOrTargetGetter]);
              var listener = lCleanup[tCleanup[i + 2]];
              var useCaptureOrSubIdx = tCleanup[i + 3];

              if (typeof useCaptureOrSubIdx === 'boolean') {
                // native DOM listener registered with Renderer3
                target.removeEventListener(tCleanup[i], listener, useCaptureOrSubIdx);
              } else {
                if (useCaptureOrSubIdx >= 0) {
                  // unregister
                  lCleanup[useCaptureOrSubIdx]();
                } else {
                  // Subscription
                  lCleanup[-useCaptureOrSubIdx].unsubscribe();
                }
              }

              i += 2;
            } else {
              // This is a cleanup function that is grouped with the index of its context
              var context = lCleanup[tCleanup[i + 1]];
              tCleanup[i].call(context);
            }
          }

          lView[CLEANUP] = null;
        }
      }
      /** Calls onDestroy hooks for this view */


      function executeOnDestroys(tView, lView) {
        var destroyHooks;

        if (tView != null && (destroyHooks = tView.destroyHooks) != null) {
          for (var i = 0; i < destroyHooks.length; i += 2) {
            var context = lView[destroyHooks[i]]; // Only call the destroy hook if the context has been requested.

            if (!(context instanceof NodeInjectorFactory)) {
              var toCall = destroyHooks[i + 1];

              if (Array.isArray(toCall)) {
                for (var j = 0; j < toCall.length; j += 2) {
                  toCall[j + 1].call(context[toCall[j]]);
                }
              } else {
                toCall.call(context);
              }
            }
          }
        }
      }
      /**
       * Returns a native element if a node can be inserted into the given parent.
       *
       * There are two reasons why we may not be able to insert a element immediately.
       * - Projection: When creating a child content element of a component, we have to skip the
       *   insertion because the content of a component will be projected.
       *   `<component><content>delayed due to projection</content></component>`
       * - Parent container is disconnected: This can happen when we are inserting a view into
       *   parent container, which itself is disconnected. For example the parent container is part
       *   of a View which has not be inserted or is made for projection but has not been inserted
       *   into destination.
       *
       * @param tView: Current `TView`.
       * @param tNode: `TNode` for which we wish to retrieve render parent.
       * @param lView: Current `LView`.
       */


      function getParentRElement(tView, tNode, lView) {
        return getClosestRElement(tView, tNode.parent, lView);
      }
      /**
       * Get closest `RElement` or `null` if it can't be found.
       *
       * If `TNode` is `TNodeType.Element` => return `RElement` at `LView[tNode.index]` location.
       * If `TNode` is `TNodeType.ElementContainer|IcuContain` => return the parent (recursively).
       * If `TNode` is `null` then return host `RElement`:
       *   - return `null` if projection
       *   - return `null` if parent container is disconnected (we have no parent.)
       *
       * @param tView: Current `TView`.
       * @param tNode: `TNode` for which we wish to retrieve `RElement` (or `null` if host element is
       *     needed).
       * @param lView: Current `LView`.
       * @returns `null` if the `RElement` can't be determined at this time (no parent / projection)
       */


      function getClosestRElement(tView, tNode, lView) {
        var parentTNode = tNode; // Skip over element and ICU containers as those are represented by a comment node and
        // can't be used as a render parent.

        while (parentTNode !== null && parentTNode.type & (8
        /* ElementContainer */
        | 32
        /* Icu */
        )) {
          tNode = parentTNode;
          parentTNode = tNode.parent;
        } // If the parent tNode is null, then we are inserting across views: either into an embedded view
        // or a component view.


        if (parentTNode === null) {
          // We are inserting a root element of the component view into the component host element and
          // it should always be eager.
          return lView[HOST];
        } else {
          ngDevMode && assertTNodeType(parentTNode, 3
          /* AnyRNode */
          | 4
          /* Container */
          );

          if (parentTNode.flags & 2
          /* isComponentHost */
          ) {
            ngDevMode && assertTNodeForLView(parentTNode, lView);
            var tData = tView.data;
            var _tNode2 = tData[parentTNode.index];
            var encapsulation = tData[_tNode2.directiveStart].encapsulation; // We've got a parent which is an element in the current view. We just need to verify if the
            // parent element is not a component. Component's content nodes are not inserted immediately
            // because they will be projected, and so doing insert at this point would be wasteful.
            // Since the projection would then move it to its final destination. Note that we can't
            // make this assumption when using the Shadow DOM, because the native projection placeholders
            // (<content> or <slot>) have to be in place as elements are being inserted.

            if (encapsulation === ViewEncapsulation$1.None || encapsulation === ViewEncapsulation$1.Emulated) {
              return null;
            }
          }

          return getNativeByTNode(parentTNode, lView);
        }
      }
      /**
       * Inserts a native node before another native node for a given parent using {@link Renderer3}.
       * This is a utility function that can be used when native nodes were determined - it abstracts an
       * actual renderer being used.
       */


      function nativeInsertBefore(renderer, parent, child, beforeNode, isMove) {
        ngDevMode && ngDevMode.rendererInsertBefore++;

        if (isProceduralRenderer(renderer)) {
          renderer.insertBefore(parent, child, beforeNode, isMove);
        } else {
          parent.insertBefore(child, beforeNode, isMove);
        }
      }

      function nativeAppendChild(renderer, parent, child) {
        ngDevMode && ngDevMode.rendererAppendChild++;
        ngDevMode && assertDefined(parent, 'parent node must be defined');

        if (isProceduralRenderer(renderer)) {
          renderer.appendChild(parent, child);
        } else {
          parent.appendChild(child);
        }
      }

      function nativeAppendOrInsertBefore(renderer, parent, child, beforeNode, isMove) {
        if (beforeNode !== null) {
          nativeInsertBefore(renderer, parent, child, beforeNode, isMove);
        } else {
          nativeAppendChild(renderer, parent, child);
        }
      }
      /** Removes a node from the DOM given its native parent. */


      function nativeRemoveChild(renderer, parent, child, isHostElement) {
        if (isProceduralRenderer(renderer)) {
          renderer.removeChild(parent, child, isHostElement);
        } else {
          parent.removeChild(child);
        }
      }
      /**
       * Returns a native parent of a given native node.
       */


      function nativeParentNode(renderer, node) {
        return isProceduralRenderer(renderer) ? renderer.parentNode(node) : node.parentNode;
      }
      /**
       * Returns a native sibling of a given native node.
       */


      function nativeNextSibling(renderer, node) {
        return isProceduralRenderer(renderer) ? renderer.nextSibling(node) : node.nextSibling;
      }
      /**
       * Find a node in front of which `currentTNode` should be inserted.
       *
       * This method determines the `RNode` in front of which we should insert the `currentRNode`. This
       * takes `TNode.insertBeforeIndex` into account if i18n code has been invoked.
       *
       * @param parentTNode parent `TNode`
       * @param currentTNode current `TNode` (The node which we would like to insert into the DOM)
       * @param lView current `LView`
       */


      function getInsertInFrontOfRNode(parentTNode, currentTNode, lView) {
        return _getInsertInFrontOfRNodeWithI18n(parentTNode, currentTNode, lView);
      }
      /**
       * Find a node in front of which `currentTNode` should be inserted. (Does not take i18n into
       * account)
       *
       * This method determines the `RNode` in front of which we should insert the `currentRNode`. This
       * does not take `TNode.insertBeforeIndex` into account.
       *
       * @param parentTNode parent `TNode`
       * @param currentTNode current `TNode` (The node which we would like to insert into the DOM)
       * @param lView current `LView`
       */


      function getInsertInFrontOfRNodeWithNoI18n(parentTNode, currentTNode, lView) {
        if (parentTNode.type & (8
        /* ElementContainer */
        | 32
        /* Icu */
        )) {
          return getNativeByTNode(parentTNode, lView);
        }

        return null;
      }
      /**
       * Tree shakable boundary for `getInsertInFrontOfRNodeWithI18n` function.
       *
       * This function will only be set if i18n code runs.
       */


      var _getInsertInFrontOfRNodeWithI18n = getInsertInFrontOfRNodeWithNoI18n;
      /**
       * Tree shakable boundary for `processI18nInsertBefore` function.
       *
       * This function will only be set if i18n code runs.
       */

      var _processI18nInsertBefore;

      function setI18nHandling(getInsertInFrontOfRNodeWithI18n, processI18nInsertBefore) {
        _getInsertInFrontOfRNodeWithI18n = getInsertInFrontOfRNodeWithI18n;
        _processI18nInsertBefore = processI18nInsertBefore;
      }
      /**
       * Appends the `child` native node (or a collection of nodes) to the `parent`.
       *
       * @param tView The `TView' to be appended
       * @param lView The current LView
       * @param childRNode The native child (or children) that should be appended
       * @param childTNode The TNode of the child element
       */


      function appendChild(tView, lView, childRNode, childTNode) {
        var parentRNode = getParentRElement(tView, childTNode, lView);
        var renderer = lView[RENDERER];
        var parentTNode = childTNode.parent || lView[T_HOST];
        var anchorNode = getInsertInFrontOfRNode(parentTNode, childTNode, lView);

        if (parentRNode != null) {
          if (Array.isArray(childRNode)) {
            for (var i = 0; i < childRNode.length; i++) {
              nativeAppendOrInsertBefore(renderer, parentRNode, childRNode[i], anchorNode, false);
            }
          } else {
            nativeAppendOrInsertBefore(renderer, parentRNode, childRNode, anchorNode, false);
          }
        }

        _processI18nInsertBefore !== undefined && _processI18nInsertBefore(renderer, childTNode, lView, childRNode, parentRNode);
      }
      /**
       * Returns the first native node for a given LView, starting from the provided TNode.
       *
       * Native nodes are returned in the order in which those appear in the native tree (DOM).
       */


      function getFirstNativeNode(lView, tNode) {
        if (tNode !== null) {
          ngDevMode && assertTNodeType(tNode, 3
          /* AnyRNode */
          | 12
          /* AnyContainer */
          | 32
          /* Icu */
          | 16
          /* Projection */
          );
          var tNodeType = tNode.type;

          if (tNodeType & 3
          /* AnyRNode */
          ) {
            return getNativeByTNode(tNode, lView);
          } else if (tNodeType & 4
          /* Container */
          ) {
            return getBeforeNodeForView(-1, lView[tNode.index]);
          } else if (tNodeType & 8
          /* ElementContainer */
          ) {
            var elIcuContainerChild = tNode.child;

            if (elIcuContainerChild !== null) {
              return getFirstNativeNode(lView, elIcuContainerChild);
            } else {
              var rNodeOrLContainer = lView[tNode.index];

              if (isLContainer(rNodeOrLContainer)) {
                return getBeforeNodeForView(-1, rNodeOrLContainer);
              } else {
                return unwrapRNode(rNodeOrLContainer);
              }
            }
          } else if (tNodeType & 32
          /* Icu */
          ) {
            var nextRNode = icuContainerIterate(tNode, lView);
            var rNode = nextRNode(); // If the ICU container has no nodes, than we use the ICU anchor as the node.

            return rNode || unwrapRNode(lView[tNode.index]);
          } else {
            var componentView = lView[DECLARATION_COMPONENT_VIEW];
            var componentHost = componentView[T_HOST];
            var parentView = getLViewParent(componentView);
            var firstProjectedTNode = componentHost.projection[tNode.projection];

            if (firstProjectedTNode != null) {
              return getFirstNativeNode(parentView, firstProjectedTNode);
            } else {
              return getFirstNativeNode(lView, tNode.next);
            }
          }
        }

        return null;
      }

      function getBeforeNodeForView(viewIndexInContainer, lContainer) {
        var nextViewIndex = CONTAINER_HEADER_OFFSET + viewIndexInContainer + 1;

        if (nextViewIndex < lContainer.length) {
          var lView = lContainer[nextViewIndex];
          var firstTNodeOfView = lView[TVIEW].firstChild;

          if (firstTNodeOfView !== null) {
            return getFirstNativeNode(lView, firstTNodeOfView);
          }
        }

        return lContainer[NATIVE];
      }
      /**
       * Removes a native node itself using a given renderer. To remove the node we are looking up its
       * parent from the native tree as not all platforms / browsers support the equivalent of
       * node.remove().
       *
       * @param renderer A renderer to be used
       * @param rNode The native node that should be removed
       * @param isHostElement A flag indicating if a node to be removed is a host of a component.
       */


      function nativeRemoveNode(renderer, rNode, isHostElement) {
        ngDevMode && ngDevMode.rendererRemoveNode++;
        var nativeParent = nativeParentNode(renderer, rNode);

        if (nativeParent) {
          nativeRemoveChild(renderer, nativeParent, rNode, isHostElement);
        }
      }
      /**
       * Performs the operation of `action` on the node. Typically this involves inserting or removing
       * nodes on the LView or projection boundary.
       */


      function applyNodes(renderer, action, tNode, lView, parentRElement, beforeNode, isProjection) {
        while (tNode != null) {
          ngDevMode && assertTNodeForLView(tNode, lView);
          ngDevMode && assertTNodeType(tNode, 3
          /* AnyRNode */
          | 12
          /* AnyContainer */
          | 16
          /* Projection */
          | 32
          /* Icu */
          );
          var rawSlotValue = lView[tNode.index];
          var tNodeType = tNode.type;

          if (isProjection) {
            if (action === 0
            /* Create */
            ) {
              rawSlotValue && attachPatchData(unwrapRNode(rawSlotValue), lView);
              tNode.flags |= 4
              /* isProjected */
              ;
            }
          }

          if ((tNode.flags & 64
          /* isDetached */
          ) !== 64
          /* isDetached */
          ) {
            if (tNodeType & 8
            /* ElementContainer */
            ) {
              applyNodes(renderer, action, tNode.child, lView, parentRElement, beforeNode, false);
              applyToElementOrContainer(action, renderer, parentRElement, rawSlotValue, beforeNode);
            } else if (tNodeType & 32
            /* Icu */
            ) {
              var nextRNode = icuContainerIterate(tNode, lView);
              var rNode = void 0;

              while (rNode = nextRNode()) {
                applyToElementOrContainer(action, renderer, parentRElement, rNode, beforeNode);
              }

              applyToElementOrContainer(action, renderer, parentRElement, rawSlotValue, beforeNode);
            } else if (tNodeType & 16
            /* Projection */
            ) {
              applyProjectionRecursive(renderer, action, lView, tNode, parentRElement, beforeNode);
            } else {
              ngDevMode && assertTNodeType(tNode, 3
              /* AnyRNode */
              | 4
              /* Container */
              );
              applyToElementOrContainer(action, renderer, parentRElement, rawSlotValue, beforeNode);
            }
          }

          tNode = isProjection ? tNode.projectionNext : tNode.next;
        }
      }

      function applyView(tView, lView, renderer, action, parentRElement, beforeNode) {
        applyNodes(renderer, action, tView.firstChild, lView, parentRElement, beforeNode, false);
      }
      /**
       * `applyProjection` performs operation on the projection.
       *
       * Inserting a projection requires us to locate the projected nodes from the parent component. The
       * complication is that those nodes themselves could be re-projected from their parent component.
       *
       * @param tView The `TView` of `LView` which needs to be inserted, detached, destroyed
       * @param lView The `LView` which needs to be inserted, detached, destroyed.
       * @param tProjectionNode node to project
       */


      function applyProjection(tView, lView, tProjectionNode) {
        var renderer = lView[RENDERER];
        var parentRNode = getParentRElement(tView, tProjectionNode, lView);
        var parentTNode = tProjectionNode.parent || lView[T_HOST];
        var beforeNode = getInsertInFrontOfRNode(parentTNode, tProjectionNode, lView);
        applyProjectionRecursive(renderer, 0
        /* Create */
        , lView, tProjectionNode, parentRNode, beforeNode);
      }
      /**
       * `applyProjectionRecursive` performs operation on the projection specified by `action` (insert,
       * detach, destroy)
       *
       * Inserting a projection requires us to locate the projected nodes from the parent component. The
       * complication is that those nodes themselves could be re-projected from their parent component.
       *
       * @param renderer Render to use
       * @param action action to perform (insert, detach, destroy)
       * @param lView The LView which needs to be inserted, detached, destroyed.
       * @param tProjectionNode node to project
       * @param parentRElement parent DOM element for insertion/removal.
       * @param beforeNode Before which node the insertions should happen.
       */


      function applyProjectionRecursive(renderer, action, lView, tProjectionNode, parentRElement, beforeNode) {
        var componentLView = lView[DECLARATION_COMPONENT_VIEW];
        var componentNode = componentLView[T_HOST];
        ngDevMode && assertEqual(typeof tProjectionNode.projection, 'number', 'expecting projection index');
        var nodeToProjectOrRNodes = componentNode.projection[tProjectionNode.projection];

        if (Array.isArray(nodeToProjectOrRNodes)) {
          // This should not exist, it is a bit of a hack. When we bootstrap a top level node and we
          // need to support passing projectable nodes, so we cheat and put them in the TNode
          // of the Host TView. (Yes we put instance info at the T Level). We can get away with it
          // because we know that that TView is not shared and therefore it will not be a problem.
          // This should be refactored and cleaned up.
          for (var i = 0; i < nodeToProjectOrRNodes.length; i++) {
            var rNode = nodeToProjectOrRNodes[i];
            applyToElementOrContainer(action, renderer, parentRElement, rNode, beforeNode);
          }
        } else {
          var nodeToProject = nodeToProjectOrRNodes;
          var projectedComponentLView = componentLView[PARENT];
          applyNodes(renderer, action, nodeToProject, projectedComponentLView, parentRElement, beforeNode, true);
        }
      }
      /**
       * `applyContainer` performs an operation on the container and its views as specified by
       * `action` (insert, detach, destroy)
       *
       * Inserting a Container is complicated by the fact that the container may have Views which
       * themselves have containers or projections.
       *
       * @param renderer Renderer to use
       * @param action action to perform (insert, detach, destroy)
       * @param lContainer The LContainer which needs to be inserted, detached, destroyed.
       * @param parentRElement parent DOM element for insertion/removal.
       * @param beforeNode Before which node the insertions should happen.
       */


      function applyContainer(renderer, action, lContainer, parentRElement, beforeNode) {
        ngDevMode && assertLContainer(lContainer);
        var anchor = lContainer[NATIVE]; // LContainer has its own before node.

        var _native5 = unwrapRNode(lContainer); // An LContainer can be created dynamically on any node by injecting ViewContainerRef.
        // Asking for a ViewContainerRef on an element will result in a creation of a separate anchor
        // node (comment in the DOM) that will be different from the LContainer's host node. In this
        // particular case we need to execute action on 2 nodes:
        // - container's host node (this is done in the executeActionOnElementOrContainer)
        // - container's host node (this is done here)


        if (anchor !== _native5) {
          // This is very strange to me (Misko). I would expect that the native is same as anchor. I
          // don't see a reason why they should be different, but they are.
          //
          // If they are we need to process the second anchor as well.
          applyToElementOrContainer(action, renderer, parentRElement, anchor, beforeNode);
        }

        for (var i = CONTAINER_HEADER_OFFSET; i < lContainer.length; i++) {
          var lView = lContainer[i];
          applyView(lView[TVIEW], lView, renderer, action, parentRElement, anchor);
        }
      }
      /**
       * Writes class/style to element.
       *
       * @param renderer Renderer to use.
       * @param isClassBased `true` if it should be written to `class` (`false` to write to `style`)
       * @param rNode The Node to write to.
       * @param prop Property to write to. This would be the class/style name.
       * @param value Value to write. If `null`/`undefined`/`false` this is considered a remove (set/add
       *        otherwise).
       */


      function applyStyling(renderer, isClassBased, rNode, prop, value) {
        var isProcedural = isProceduralRenderer(renderer);

        if (isClassBased) {
          // We actually want JS true/false here because any truthy value should add the class
          if (!value) {
            ngDevMode && ngDevMode.rendererRemoveClass++;

            if (isProcedural) {
              renderer.removeClass(rNode, prop);
            } else {
              rNode.classList.remove(prop);
            }
          } else {
            ngDevMode && ngDevMode.rendererAddClass++;

            if (isProcedural) {
              renderer.addClass(rNode, prop);
            } else {
              ngDevMode && assertDefined(rNode.classList, 'HTMLElement expected');
              rNode.classList.add(prop);
            }
          }
        } else {
          // TODO(misko): Can't import RendererStyleFlags2.DashCase as it causes imports to be resolved
          // in different order which causes failures. Using direct constant as workaround for now.
          var flags = prop.indexOf('-') == -1 ? undefined : 2
          /* RendererStyleFlags2.DashCase */
          ;

          if (value == null
          /** || value === undefined */
          ) {
            ngDevMode && ngDevMode.rendererRemoveStyle++;

            if (isProcedural) {
              renderer.removeStyle(rNode, prop, flags);
            } else {
              rNode.style.removeProperty(prop);
            }
          } else {
            ngDevMode && ngDevMode.rendererSetStyle++;

            if (isProcedural) {
              renderer.setStyle(rNode, prop, value, flags);
            } else {
              ngDevMode && assertDefined(rNode.style, 'HTMLElement expected');
              rNode.style.setProperty(prop, value);
            }
          }
        }
      }
      /**
       * Write `cssText` to `RElement`.
       *
       * This function does direct write without any reconciliation. Used for writing initial values, so
       * that static styling values do not pull in the style parser.
       *
       * @param renderer Renderer to use
       * @param element The element which needs to be updated.
       * @param newValue The new class list to write.
       */


      function writeDirectStyle(renderer, element, newValue) {
        ngDevMode && assertString(newValue, '\'newValue\' should be a string');

        if (isProceduralRenderer(renderer)) {
          renderer.setAttribute(element, 'style', newValue);
        } else {
          element.style.cssText = newValue;
        }

        ngDevMode && ngDevMode.rendererSetStyle++;
      }
      /**
       * Write `className` to `RElement`.
       *
       * This function does direct write without any reconciliation. Used for writing initial values, so
       * that static styling values do not pull in the style parser.
       *
       * @param renderer Renderer to use
       * @param element The element which needs to be updated.
       * @param newValue The new class list to write.
       */


      function writeDirectClass(renderer, element, newValue) {
        ngDevMode && assertString(newValue, '\'newValue\' should be a string');

        if (isProceduralRenderer(renderer)) {
          if (newValue === '') {
            // There are tests in `google3` which expect `element.getAttribute('class')` to be `null`.
            renderer.removeAttribute(element, 'class');
          } else {
            renderer.setAttribute(element, 'class', newValue);
          }
        } else {
          element.className = newValue;
        }

        ngDevMode && ngDevMode.rendererSetClassName++;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Returns an index of `classToSearch` in `className` taking token boundaries into account.
       *
       * `classIndexOf('AB A', 'A', 0)` will be 3 (not 0 since `AB!==A`)
       *
       * @param className A string containing classes (whitespace separated)
       * @param classToSearch A class name to locate
       * @param startingIndex Starting location of search
       * @returns an index of the located class (or -1 if not found)
       */


      function classIndexOf(className, classToSearch, startingIndex) {
        ngDevMode && assertNotEqual(classToSearch, '', 'can not look for "" string.');
        var end = className.length;

        while (true) {
          var foundIndex = className.indexOf(classToSearch, startingIndex);
          if (foundIndex === -1) return foundIndex;

          if (foundIndex === 0 || className.charCodeAt(foundIndex - 1) <= 32
          /* SPACE */
          ) {
            // Ensure that it has leading whitespace
            var length = classToSearch.length;

            if (foundIndex + length === end || className.charCodeAt(foundIndex + length) <= 32
            /* SPACE */
            ) {
              // Ensure that it has trailing whitespace
              return foundIndex;
            }
          } // False positive, keep searching from where we left off.


          startingIndex = foundIndex + 1;
        }
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var unusedValueToPlacateAjd$1 = unusedValueExportToPlacateAjd$4 + unusedValueExportToPlacateAjd$5;
      var NG_TEMPLATE_SELECTOR = 'ng-template';
      /**
       * Search the `TAttributes` to see if it contains `cssClassToMatch` (case insensitive)
       *
       * @param attrs `TAttributes` to search through.
       * @param cssClassToMatch class to match (lowercase)
       * @param isProjectionMode Whether or not class matching should look into the attribute `class` in
       *    addition to the `AttributeMarker.Classes`.
       */

      function isCssClassMatching(attrs, cssClassToMatch, isProjectionMode) {
        // TODO(misko): The fact that this function needs to know about `isProjectionMode` seems suspect.
        // It is strange to me that sometimes the class information comes in form of `class` attribute
        // and sometimes in form of `AttributeMarker.Classes`. Some investigation is needed to determine
        // if that is the right behavior.
        ngDevMode && assertEqual(cssClassToMatch, cssClassToMatch.toLowerCase(), 'Class name expected to be lowercase.');
        var i = 0;

        while (i < attrs.length) {
          var item = attrs[i++];

          if (isProjectionMode && item === 'class') {
            item = attrs[i];

            if (classIndexOf(item.toLowerCase(), cssClassToMatch, 0) !== -1) {
              return true;
            }
          } else if (item === 1
          /* Classes */
          ) {
            // We found the classes section. Start searching for the class.
            while (i < attrs.length && typeof (item = attrs[i++]) == 'string') {
              // while we have strings
              if (item.toLowerCase() === cssClassToMatch) return true;
            }

            return false;
          }
        }

        return false;
      }
      /**
       * Checks whether the `tNode` represents an inline template (e.g. `*ngFor`).
       *
       * @param tNode current TNode
       */


      function isInlineTemplate(tNode) {
        return tNode.type === 4
        /* Container */
        && tNode.value !== NG_TEMPLATE_SELECTOR;
      }
      /**
       * Function that checks whether a given tNode matches tag-based selector and has a valid type.
       *
       * Matching can be performed in 2 modes: projection mode (when we project nodes) and regular
       * directive matching mode:
       * - in the "directive matching" mode we do _not_ take TContainer's tagName into account if it is
       * different from NG_TEMPLATE_SELECTOR (value different from NG_TEMPLATE_SELECTOR indicates that a
       * tag name was extracted from * syntax so we would match the same directive twice);
       * - in the "projection" mode, we use a tag name potentially extracted from the * syntax processing
       * (applicable to TNodeType.Container only).
       */


      function hasTagAndTypeMatch(tNode, currentSelector, isProjectionMode) {
        var tagNameToCompare = tNode.type === 4
        /* Container */
        && !isProjectionMode ? NG_TEMPLATE_SELECTOR : tNode.value;
        return currentSelector === tagNameToCompare;
      }
      /**
       * A utility function to match an Ivy node static data against a simple CSS selector
       *
       * @param node static data of the node to match
       * @param selector The selector to try matching against the node.
       * @param isProjectionMode if `true` we are matching for content projection, otherwise we are doing
       * directive matching.
       * @returns true if node matches the selector.
       */


      function isNodeMatchingSelector(tNode, selector, isProjectionMode) {
        ngDevMode && assertDefined(selector[0], 'Selector should have a tag name');
        var mode = 4
        /* ELEMENT */
        ;
        var nodeAttrs = tNode.attrs || []; // Find the index of first attribute that has no value, only a name.

        var nameOnlyMarkerIdx = getNameOnlyMarkerIndex(nodeAttrs); // When processing ":not" selectors, we skip to the next ":not" if the
        // current one doesn't match

        var skipToNextSelector = false;

        for (var i = 0; i < selector.length; i++) {
          var current = selector[i];

          if (typeof current === 'number') {
            // If we finish processing a :not selector and it hasn't failed, return false
            if (!skipToNextSelector && !isPositive(mode) && !isPositive(current)) {
              return false;
            } // If we are skipping to the next :not() and this mode flag is positive,
            // it's a part of the current :not() selector, and we should keep skipping


            if (skipToNextSelector && isPositive(current)) continue;
            skipToNextSelector = false;
            mode = current | mode & 1
            /* NOT */
            ;
            continue;
          }

          if (skipToNextSelector) continue;

          if (mode & 4
          /* ELEMENT */
          ) {
            mode = 2
            /* ATTRIBUTE */
            | mode & 1
            /* NOT */
            ;

            if (current !== '' && !hasTagAndTypeMatch(tNode, current, isProjectionMode) || current === '' && selector.length === 1) {
              if (isPositive(mode)) return false;
              skipToNextSelector = true;
            }
          } else {
            var selectorAttrValue = mode & 8
            /* CLASS */
            ? current : selector[++i]; // special case for matching against classes when a tNode has been instantiated with
            // class and style values as separate attribute values (e.g. ['title', CLASS, 'foo'])

            if (mode & 8
            /* CLASS */
            && tNode.attrs !== null) {
              if (!isCssClassMatching(tNode.attrs, selectorAttrValue, isProjectionMode)) {
                if (isPositive(mode)) return false;
                skipToNextSelector = true;
              }

              continue;
            }

            var attrName = mode & 8
            /* CLASS */
            ? 'class' : current;
            var attrIndexInNode = findAttrIndexInNode(attrName, nodeAttrs, isInlineTemplate(tNode), isProjectionMode);

            if (attrIndexInNode === -1) {
              if (isPositive(mode)) return false;
              skipToNextSelector = true;
              continue;
            }

            if (selectorAttrValue !== '') {
              var nodeAttrValue = void 0;

              if (attrIndexInNode > nameOnlyMarkerIdx) {
                nodeAttrValue = '';
              } else {
                ngDevMode && assertNotEqual(nodeAttrs[attrIndexInNode], 0
                /* NamespaceURI */
                , 'We do not match directives on namespaced attributes'); // we lowercase the attribute value to be able to match
                // selectors without case-sensitivity
                // (selectors are already in lowercase when generated)

                nodeAttrValue = nodeAttrs[attrIndexInNode + 1].toLowerCase();
              }

              var compareAgainstClassName = mode & 8
              /* CLASS */
              ? nodeAttrValue : null;

              if (compareAgainstClassName && classIndexOf(compareAgainstClassName, selectorAttrValue, 0) !== -1 || mode & 2
              /* ATTRIBUTE */
              && selectorAttrValue !== nodeAttrValue) {
                if (isPositive(mode)) return false;
                skipToNextSelector = true;
              }
            }
          }
        }

        return isPositive(mode) || skipToNextSelector;
      }

      function isPositive(mode) {
        return (mode & 1
        /* NOT */
        ) === 0;
      }
      /**
       * Examines the attribute's definition array for a node to find the index of the
       * attribute that matches the given `name`.
       *
       * NOTE: This will not match namespaced attributes.
       *
       * Attribute matching depends upon `isInlineTemplate` and `isProjectionMode`.
       * The following table summarizes which types of attributes we attempt to match:
       *
       * ===========================================================================================================
       * Modes                   | Normal Attributes | Bindings Attributes | Template Attributes | I18n
       * Attributes
       * ===========================================================================================================
       * Inline + Projection     | YES               | YES                 | NO                  | YES
       * -----------------------------------------------------------------------------------------------------------
       * Inline + Directive      | NO                | NO                  | YES                 | NO
       * -----------------------------------------------------------------------------------------------------------
       * Non-inline + Projection | YES               | YES                 | NO                  | YES
       * -----------------------------------------------------------------------------------------------------------
       * Non-inline + Directive  | YES               | YES                 | NO                  | YES
       * ===========================================================================================================
       *
       * @param name the name of the attribute to find
       * @param attrs the attribute array to examine
       * @param isInlineTemplate true if the node being matched is an inline template (e.g. `*ngFor`)
       * rather than a manually expanded template node (e.g `<ng-template>`).
       * @param isProjectionMode true if we are matching against content projection otherwise we are
       * matching against directives.
       */


      function findAttrIndexInNode(name, attrs, isInlineTemplate, isProjectionMode) {
        if (attrs === null) return -1;
        var i = 0;

        if (isProjectionMode || !isInlineTemplate) {
          var bindingsMode = false;

          while (i < attrs.length) {
            var maybeAttrName = attrs[i];

            if (maybeAttrName === name) {
              return i;
            } else if (maybeAttrName === 3
            /* Bindings */
            || maybeAttrName === 6
            /* I18n */
            ) {
              bindingsMode = true;
            } else if (maybeAttrName === 1
            /* Classes */
            || maybeAttrName === 2
            /* Styles */
            ) {
              var value = attrs[++i]; // We should skip classes here because we have a separate mechanism for
              // matching classes in projection mode.

              while (typeof value === 'string') {
                value = attrs[++i];
              }

              continue;
            } else if (maybeAttrName === 4
            /* Template */
            ) {
              // We do not care about Template attributes in this scenario.
              break;
            } else if (maybeAttrName === 0
            /* NamespaceURI */
            ) {
              // Skip the whole namespaced attribute and value. This is by design.
              i += 4;
              continue;
            } // In binding mode there are only names, rather than name-value pairs.


            i += bindingsMode ? 1 : 2;
          } // We did not match the attribute


          return -1;
        } else {
          return matchTemplateAttribute(attrs, name);
        }
      }

      function isNodeMatchingSelectorList(tNode, selector) {
        var isProjectionMode = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;

        for (var i = 0; i < selector.length; i++) {
          if (isNodeMatchingSelector(tNode, selector[i], isProjectionMode)) {
            return true;
          }
        }

        return false;
      }

      function getProjectAsAttrValue(tNode) {
        var nodeAttrs = tNode.attrs;

        if (nodeAttrs != null) {
          var ngProjectAsAttrIdx = nodeAttrs.indexOf(5
          /* ProjectAs */
          ); // only check for ngProjectAs in attribute names, don't accidentally match attribute's value
          // (attribute names are stored at even indexes)

          if ((ngProjectAsAttrIdx & 1) === 0) {
            return nodeAttrs[ngProjectAsAttrIdx + 1];
          }
        }

        return null;
      }

      function getNameOnlyMarkerIndex(nodeAttrs) {
        for (var i = 0; i < nodeAttrs.length; i++) {
          var nodeAttr = nodeAttrs[i];

          if (isNameOnlyAttributeMarker(nodeAttr)) {
            return i;
          }
        }

        return nodeAttrs.length;
      }

      function matchTemplateAttribute(attrs, name) {
        var i = attrs.indexOf(4
        /* Template */
        );

        if (i > -1) {
          i++;

          while (i < attrs.length) {
            var attr = attrs[i]; // Return in case we checked all template attrs and are switching to the next section in the
            // attrs array (that starts with a number that represents an attribute marker).

            if (typeof attr === 'number') return -1;
            if (attr === name) return i;
            i++;
          }
        }

        return -1;
      }
      /**
       * Checks whether a selector is inside a CssSelectorList
       * @param selector Selector to be checked.
       * @param list List in which to look for the selector.
       */


      function isSelectorInSelectorList(selector, list) {
        selectorListLoop: for (var i = 0; i < list.length; i++) {
          var currentSelectorInList = list[i];

          if (selector.length !== currentSelectorInList.length) {
            continue;
          }

          for (var j = 0; j < selector.length; j++) {
            if (selector[j] !== currentSelectorInList[j]) {
              continue selectorListLoop;
            }
          }

          return true;
        }

        return false;
      }

      function maybeWrapInNotSelector(isNegativeMode, chunk) {
        return isNegativeMode ? ':not(' + chunk.trim() + ')' : chunk;
      }

      function stringifyCSSSelector(selector) {
        var result = selector[0];
        var i = 1;
        var mode = 2
        /* ATTRIBUTE */
        ;
        var currentChunk = '';
        var isNegativeMode = false;

        while (i < selector.length) {
          var valueOrMarker = selector[i];

          if (typeof valueOrMarker === 'string') {
            if (mode & 2
            /* ATTRIBUTE */
            ) {
              var attrValue = selector[++i];
              currentChunk += '[' + valueOrMarker + (attrValue.length > 0 ? '="' + attrValue + '"' : '') + ']';
            } else if (mode & 8
            /* CLASS */
            ) {
              currentChunk += '.' + valueOrMarker;
            } else if (mode & 4
            /* ELEMENT */
            ) {
              currentChunk += ' ' + valueOrMarker;
            }
          } else {
            //
            // Append current chunk to the final result in case we come across SelectorFlag, which
            // indicates that the previous section of a selector is over. We need to accumulate content
            // between flags to make sure we wrap the chunk later in :not() selector if needed, e.g.
            // ```
            //  ['', Flags.CLASS, '.classA', Flags.CLASS | Flags.NOT, '.classB', '.classC']
            // ```
            // should be transformed to `.classA :not(.classB .classC)`.
            //
            // Note: for negative selector part, we accumulate content between flags until we find the
            // next negative flag. This is needed to support a case where `:not()` rule contains more than
            // one chunk, e.g. the following selector:
            // ```
            //  ['', Flags.ELEMENT | Flags.NOT, 'p', Flags.CLASS, 'foo', Flags.CLASS | Flags.NOT, 'bar']
            // ```
            // should be stringified to `:not(p.foo) :not(.bar)`
            //
            if (currentChunk !== '' && !isPositive(valueOrMarker)) {
              result += maybeWrapInNotSelector(isNegativeMode, currentChunk);
              currentChunk = '';
            }

            mode = valueOrMarker; // According to CssSelector spec, once we come across `SelectorFlags.NOT` flag, the negative
            // mode is maintained for remaining chunks of a selector.

            isNegativeMode = isNegativeMode || !isPositive(mode);
          }

          i++;
        }

        if (currentChunk !== '') {
          result += maybeWrapInNotSelector(isNegativeMode, currentChunk);
        }

        return result;
      }
      /**
       * Generates string representation of CSS selector in parsed form.
       *
       * ComponentDef and DirectiveDef are generated with the selector in parsed form to avoid doing
       * additional parsing at runtime (for example, for directive matching). However in some cases (for
       * example, while bootstrapping a component), a string version of the selector is required to query
       * for the host element on the page. This function takes the parsed form of a selector and returns
       * its string representation.
       *
       * @param selectorList selector in parsed form
       * @returns string representation of a given selector
       */


      function stringifyCSSSelectorList(selectorList) {
        return selectorList.map(stringifyCSSSelector).join(',');
      }
      /**
       * Extracts attributes and classes information from a given CSS selector.
       *
       * This function is used while creating a component dynamically. In this case, the host element
       * (that is created dynamically) should contain attributes and classes specified in component's CSS
       * selector.
       *
       * @param selector CSS selector in parsed form (in a form of array)
       * @returns object with `attrs` and `classes` fields that contain extracted information
       */


      function extractAttrsAndClassesFromSelector(selector) {
        var attrs = [];
        var classes = [];
        var i = 1;
        var mode = 2
        /* ATTRIBUTE */
        ;

        while (i < selector.length) {
          var valueOrMarker = selector[i];

          if (typeof valueOrMarker === 'string') {
            if (mode === 2
            /* ATTRIBUTE */
            ) {
              if (valueOrMarker !== '') {
                attrs.push(valueOrMarker, selector[++i]);
              }
            } else if (mode === 8
            /* CLASS */
            ) {
              classes.push(valueOrMarker);
            }
          } else {
            // According to CssSelector spec, once we come across `SelectorFlags.NOT` flag, the negative
            // mode is maintained for remaining chunks of a selector. Since attributes and classes are
            // extracted only for "positive" part of the selector, we can stop here.
            if (!isPositive(mode)) break;
            mode = valueOrMarker;
          }

          i++;
        }

        return {
          attrs: attrs,
          classes: classes
        };
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** A special value which designates that a value has not changed. */


      var NO_CHANGE = typeof ngDevMode === 'undefined' || ngDevMode ? {
        __brand__: 'NO_CHANGE'
      } : {};
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Advances to an element for later binding instructions.
       *
       * Used in conjunction with instructions like {@link property} to act on elements with specified
       * indices, for example those created with {@link element} or {@link elementStart}.
       *
       * ```ts
       * (rf: RenderFlags, ctx: any) => {
       *   if (rf & 1) {
       *     text(0, 'Hello');
       *     text(1, 'Goodbye')
       *     element(2, 'div');
       *   }
       *   if (rf & 2) {
       *     advance(2); // Advance twice to the <div>.
       *     property('title', 'test');
       *   }
       *  }
       * ```
       * @param delta Number of elements to advance forwards by.
       *
       * @codeGenApi
       */

      function ɵɵadvance(delta) {
        ngDevMode && assertGreaterThan(delta, 0, 'Can only advance forward');
        selectIndexInternal(getTView(), getLView(), getSelectedIndex() + delta, isInCheckNoChangesMode());
      }

      function selectIndexInternal(tView, lView, index, checkNoChangesMode) {
        ngDevMode && assertIndexInDeclRange(lView, index); // Flush the initial hooks for elements in the view that have been added up to this point.
        // PERF WARNING: do NOT extract this to a separate function without running benchmarks

        if (!checkNoChangesMode) {
          var hooksInitPhaseCompleted = (lView[FLAGS] & 3
          /* InitPhaseStateMask */
          ) === 3
          /* InitPhaseCompleted */
          ;

          if (hooksInitPhaseCompleted) {
            var preOrderCheckHooks = tView.preOrderCheckHooks;

            if (preOrderCheckHooks !== null) {
              executeCheckHooks(lView, preOrderCheckHooks, index);
            }
          } else {
            var preOrderHooks = tView.preOrderHooks;

            if (preOrderHooks !== null) {
              executeInitAndCheckHooks(lView, preOrderHooks, 0
              /* OnInitHooksToBeRun */
              , index);
            }
          }
        } // We must set the selected index *after* running the hooks, because hooks may have side-effects
        // that cause other template functions to run, thus updating the selected index, which is global
        // state. If we run `setSelectedIndex` *before* we run the hooks, in some cases the selected index
        // will be altered by the time we leave the `ɵɵadvance` instruction.


        setSelectedIndex(index);
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function toTStylingRange(prev, next) {
        ngDevMode && assertNumberInRange(prev, 0, 32767
        /* UNSIGNED_MASK */
        );
        ngDevMode && assertNumberInRange(next, 0, 32767
        /* UNSIGNED_MASK */
        );
        return prev << 17
        /* PREV_SHIFT */
        | next << 2
        /* NEXT_SHIFT */
        ;
      }

      function getTStylingRangePrev(tStylingRange) {
        ngDevMode && assertNumber(tStylingRange, 'expected number');
        return tStylingRange >> 17
        /* PREV_SHIFT */
        & 32767
        /* UNSIGNED_MASK */
        ;
      }

      function getTStylingRangePrevDuplicate(tStylingRange) {
        ngDevMode && assertNumber(tStylingRange, 'expected number');
        return (tStylingRange & 2
        /* PREV_DUPLICATE */
        ) == 2
        /* PREV_DUPLICATE */
        ;
      }

      function setTStylingRangePrev(tStylingRange, previous) {
        ngDevMode && assertNumber(tStylingRange, 'expected number');
        ngDevMode && assertNumberInRange(previous, 0, 32767
        /* UNSIGNED_MASK */
        );
        return tStylingRange & ~4294836224
        /* PREV_MASK */
        | previous << 17
        /* PREV_SHIFT */
        ;
      }

      function setTStylingRangePrevDuplicate(tStylingRange) {
        ngDevMode && assertNumber(tStylingRange, 'expected number');
        return tStylingRange | 2
        /* PREV_DUPLICATE */
        ;
      }

      function getTStylingRangeNext(tStylingRange) {
        ngDevMode && assertNumber(tStylingRange, 'expected number');
        return (tStylingRange & 131068
        /* NEXT_MASK */
        ) >> 2
        /* NEXT_SHIFT */
        ;
      }

      function setTStylingRangeNext(tStylingRange, next) {
        ngDevMode && assertNumber(tStylingRange, 'expected number');
        ngDevMode && assertNumberInRange(next, 0, 32767
        /* UNSIGNED_MASK */
        );
        return tStylingRange & ~131068
        /* NEXT_MASK */
        | //
        next << 2
        /* NEXT_SHIFT */
        ;
      }

      function getTStylingRangeNextDuplicate(tStylingRange) {
        ngDevMode && assertNumber(tStylingRange, 'expected number');
        return (tStylingRange & 1
        /* NEXT_DUPLICATE */
        ) === 1
        /* NEXT_DUPLICATE */
        ;
      }

      function setTStylingRangeNextDuplicate(tStylingRange) {
        ngDevMode && assertNumber(tStylingRange, 'expected number');
        return tStylingRange | 1
        /* NEXT_DUPLICATE */
        ;
      }

      function getTStylingRangeTail(tStylingRange) {
        ngDevMode && assertNumber(tStylingRange, 'expected number');
        var next = getTStylingRangeNext(tStylingRange);
        return next === 0 ? getTStylingRangePrev(tStylingRange) : next;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Patch a `debug` property on top of the existing object.
       *
       * NOTE: always call this method with `ngDevMode && attachDebugObject(...)`
       *
       * @param obj Object to patch
       * @param debug Value to patch
       */


      function attachDebugObject(obj, debug) {
        if (ngDevMode) {
          Object.defineProperty(obj, 'debug', {
            value: debug,
            enumerable: false
          });
        } else {
          throw new Error('This method should be guarded with `ngDevMode` so that it can be tree shaken in production!');
        }
      }
      /**
       * Patch a `debug` property getter on top of the existing object.
       *
       * NOTE: always call this method with `ngDevMode && attachDebugObject(...)`
       *
       * @param obj Object to patch
       * @param debugGetter Getter returning a value to patch
       */


      function attachDebugGetter(obj, debugGetter) {
        if (ngDevMode) {
          Object.defineProperty(obj, 'debug', {
            get: debugGetter,
            enumerable: false
          });
        } else {
          throw new Error('This method should be guarded with `ngDevMode` so that it can be tree shaken in production!');
        }
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var NG_DEV_MODE = (typeof ngDevMode === 'undefined' || !!ngDevMode) && initNgDevMode();
      /*
       * This file contains conditionally attached classes which provide human readable (debug) level
       * information for `LView`, `LContainer` and other internal data structures. These data structures
       * are stored internally as array which makes it very difficult during debugging to reason about the
       * current state of the system.
       *
       * Patching the array with extra property does change the array's hidden class' but it does not
       * change the cost of access, therefore this patching should not have significant if any impact in
       * `ngDevMode` mode. (see: https://jsperf.com/array-vs-monkey-patch-array)
       *
       * So instead of seeing:
       * ```
       * Array(30) [Object, 659, null, …]
       * ```
       *
       * You get to see:
       * ```
       * LViewDebug {
       *   views: [...],
       *   flags: {attached: true, ...}
       *   nodes: [
       *     {html: '<div id="123">', ..., nodes: [
       *       {html: '<span>', ..., nodes: null}
       *     ]}
       *   ]
       * }
       * ```
       */

      var LVIEW_COMPONENT_CACHE;
      var LVIEW_EMBEDDED_CACHE;
      var LVIEW_ROOT;
      /**
       * This function clones a blueprint and creates LView.
       *
       * Simple slice will keep the same type, and we need it to be LView
       */

      function cloneToLViewFromTViewBlueprint(tView) {
        var debugTView = tView;
        var lView = getLViewToClone(debugTView.type, tView.template && tView.template.name);
        return lView.concat(tView.blueprint);
      }

      function getLViewToClone(type, name) {
        switch (type) {
          case 0
          /* Root */
          :
            if (LVIEW_ROOT === undefined) LVIEW_ROOT = new (createNamedArrayType('LRootView'))();
            return LVIEW_ROOT;

          case 1
          /* Component */
          :
            if (LVIEW_COMPONENT_CACHE === undefined) LVIEW_COMPONENT_CACHE = new Map();
            var componentArray = LVIEW_COMPONENT_CACHE.get(name);

            if (componentArray === undefined) {
              componentArray = new (createNamedArrayType('LComponentView' + nameSuffix(name)))();
              LVIEW_COMPONENT_CACHE.set(name, componentArray);
            }

            return componentArray;

          case 2
          /* Embedded */
          :
            if (LVIEW_EMBEDDED_CACHE === undefined) LVIEW_EMBEDDED_CACHE = new Map();
            var embeddedArray = LVIEW_EMBEDDED_CACHE.get(name);

            if (embeddedArray === undefined) {
              embeddedArray = new (createNamedArrayType('LEmbeddedView' + nameSuffix(name)))();
              LVIEW_EMBEDDED_CACHE.set(name, embeddedArray);
            }

            return embeddedArray;
        }

        throw new Error('unreachable code');
      }

      function nameSuffix(text) {
        if (text == null) return '';
        var index = text.lastIndexOf('_Template');
        return '_' + (index === -1 ? text : text.substr(0, index));
      }
      /**
       * This class is a debug version of Object literal so that we can have constructor name show up
       * in
       * debug tools in ngDevMode.
       */


      var TViewConstructor = /*#__PURE__*/function () {
        function TView(type, blueprint, template, queries, viewQuery, declTNode, data, bindingStartIndex, expandoStartIndex, hostBindingOpCodes, firstCreatePass, firstUpdatePass, staticViewQueries, staticContentQueries, preOrderHooks, preOrderCheckHooks, contentHooks, contentCheckHooks, viewHooks, viewCheckHooks, destroyHooks, cleanup, contentQueries, components, directiveRegistry, pipeRegistry, firstChild, schemas, consts, incompleteFirstPass, _decls, _vars) {
          _classCallCheck2(this, TView);

          this.type = type;
          this.blueprint = blueprint;
          this.template = template;
          this.queries = queries;
          this.viewQuery = viewQuery;
          this.declTNode = declTNode;
          this.data = data;
          this.bindingStartIndex = bindingStartIndex;
          this.expandoStartIndex = expandoStartIndex;
          this.hostBindingOpCodes = hostBindingOpCodes;
          this.firstCreatePass = firstCreatePass;
          this.firstUpdatePass = firstUpdatePass;
          this.staticViewQueries = staticViewQueries;
          this.staticContentQueries = staticContentQueries;
          this.preOrderHooks = preOrderHooks;
          this.preOrderCheckHooks = preOrderCheckHooks;
          this.contentHooks = contentHooks;
          this.contentCheckHooks = contentCheckHooks;
          this.viewHooks = viewHooks;
          this.viewCheckHooks = viewCheckHooks;
          this.destroyHooks = destroyHooks;
          this.cleanup = cleanup;
          this.contentQueries = contentQueries;
          this.components = components;
          this.directiveRegistry = directiveRegistry;
          this.pipeRegistry = pipeRegistry;
          this.firstChild = firstChild;
          this.schemas = schemas;
          this.consts = consts;
          this.incompleteFirstPass = incompleteFirstPass;
          this._decls = _decls;
          this._vars = _vars;
        }

        _createClass2(TView, [{
          key: "template_",
          get: function get() {
            var buf = [];
            processTNodeChildren(this.firstChild, buf);
            return buf.join('');
          }
        }, {
          key: "type_",
          get: function get() {
            return TViewTypeAsString[this.type] || "TViewType.?".concat(this.type, "?");
          }
        }]);

        return TView;
      }();

      var TNode = /*#__PURE__*/function () {
        function TNode(tView_, //
        type, //
        index, //
        insertBeforeIndex, //
        injectorIndex, //
        directiveStart, //
        directiveEnd, //
        directiveStylingLast, //
        propertyBindings, //
        flags, //
        providerIndexes, //
        value, //
        attrs, //
        mergedAttrs, //
        localNames, //
        initialInputs, //
        inputs, //
        outputs, //
        tViews, //
        next, //
        projectionNext, //
        child, //
        parent, //
        projection, //
        styles, //
        stylesWithoutHost, //
        residualStyles, //
        classes, //
        classesWithoutHost, //
        residualClasses, //
        classBindings, //
        styleBindings) {
          _classCallCheck2(this, TNode);

          this.tView_ = tView_;
          this.type = type;
          this.index = index;
          this.insertBeforeIndex = insertBeforeIndex;
          this.injectorIndex = injectorIndex;
          this.directiveStart = directiveStart;
          this.directiveEnd = directiveEnd;
          this.directiveStylingLast = directiveStylingLast;
          this.propertyBindings = propertyBindings;
          this.flags = flags;
          this.providerIndexes = providerIndexes;
          this.value = value;
          this.attrs = attrs;
          this.mergedAttrs = mergedAttrs;
          this.localNames = localNames;
          this.initialInputs = initialInputs;
          this.inputs = inputs;
          this.outputs = outputs;
          this.tViews = tViews;
          this.next = next;
          this.projectionNext = projectionNext;
          this.child = child;
          this.parent = parent;
          this.projection = projection;
          this.styles = styles;
          this.stylesWithoutHost = stylesWithoutHost;
          this.residualStyles = residualStyles;
          this.classes = classes;
          this.classesWithoutHost = classesWithoutHost;
          this.residualClasses = residualClasses;
          this.classBindings = classBindings;
          this.styleBindings = styleBindings;
        }
        /**
         * Return a human debug version of the set of `NodeInjector`s which will be consulted when
         * resolving tokens from this `TNode`.
         *
         * When debugging applications, it is often difficult to determine which `NodeInjector`s will be
         * consulted. This method shows a list of `DebugNode`s representing the `TNode`s which will be
         * consulted in order when resolving a token starting at this `TNode`.
         *
         * The original data is stored in `LView` and `TView` with a lot of offset indexes, and so it is
         * difficult to reason about.
         *
         * @param lView The `LView` instance for this `TNode`.
         */


        _createClass2(TNode, [{
          key: "debugNodeInjectorPath",
          value: function debugNodeInjectorPath(lView) {
            var path = [];
            var injectorIndex = getInjectorIndex(this, lView);
            ngDevMode && assertNodeInjector(lView, injectorIndex);

            while (injectorIndex !== -1) {
              var tNode = lView[TVIEW].data[injectorIndex + 8
              /* TNODE */
              ];
              path.push(buildDebugNode(tNode, lView));
              var parentLocation = lView[injectorIndex + 8
              /* PARENT */
              ];

              if (parentLocation === NO_PARENT_INJECTOR) {
                injectorIndex = -1;
              } else {
                injectorIndex = getParentInjectorIndex(parentLocation);
                lView = getParentInjectorView(parentLocation, lView);
              }
            }

            return path;
          }
        }, {
          key: "type_",
          get: function get() {
            return toTNodeTypeAsString(this.type) || "TNodeType.?".concat(this.type, "?");
          }
        }, {
          key: "flags_",
          get: function get() {
            var flags = [];
            if (this.flags & 16
            /* hasClassInput */
            ) flags.push('TNodeFlags.hasClassInput');
            if (this.flags & 8
            /* hasContentQuery */
            ) flags.push('TNodeFlags.hasContentQuery');
            if (this.flags & 32
            /* hasStyleInput */
            ) flags.push('TNodeFlags.hasStyleInput');
            if (this.flags & 128
            /* hasHostBindings */
            ) flags.push('TNodeFlags.hasHostBindings');
            if (this.flags & 2
            /* isComponentHost */
            ) flags.push('TNodeFlags.isComponentHost');
            if (this.flags & 1
            /* isDirectiveHost */
            ) flags.push('TNodeFlags.isDirectiveHost');
            if (this.flags & 64
            /* isDetached */
            ) flags.push('TNodeFlags.isDetached');
            if (this.flags & 4
            /* isProjected */
            ) flags.push('TNodeFlags.isProjected');
            return flags.join('|');
          }
        }, {
          key: "template_",
          get: function get() {
            if (this.type & 1
            /* Text */
            ) return this.value;
            var buf = [];
            var tagName = typeof this.value === 'string' && this.value || this.type_;
            buf.push('<', tagName);

            if (this.flags) {
              buf.push(' ', this.flags_);
            }

            if (this.attrs) {
              for (var i = 0; i < this.attrs.length;) {
                var attrName = this.attrs[i++];

                if (typeof attrName == 'number') {
                  break;
                }

                var attrValue = this.attrs[i++];
                buf.push(' ', attrName, '="', attrValue, '"');
              }
            }

            buf.push('>');
            processTNodeChildren(this.child, buf);
            buf.push('</', tagName, '>');
            return buf.join('');
          }
        }, {
          key: "styleBindings_",
          get: function get() {
            return toDebugStyleBinding(this, false);
          }
        }, {
          key: "classBindings_",
          get: function get() {
            return toDebugStyleBinding(this, true);
          }
        }, {
          key: "providerIndexStart_",
          get: function get() {
            return this.providerIndexes & 1048575
            /* ProvidersStartIndexMask */
            ;
          }
        }, {
          key: "providerIndexEnd_",
          get: function get() {
            return this.providerIndexStart_ + (this.providerIndexes >>> 20
            /* CptViewProvidersCountShift */
            );
          }
        }]);

        return TNode;
      }();

      var TNodeDebug = TNode;

      function toDebugStyleBinding(tNode, isClassBased) {
        var tData = tNode.tView_.data;
        var bindings = [];
        var range = isClassBased ? tNode.classBindings : tNode.styleBindings;
        var prev = getTStylingRangePrev(range);
        var next = getTStylingRangeNext(range);
        var isTemplate = next !== 0;
        var cursor = isTemplate ? next : prev;

        while (cursor !== 0) {
          var itemKey = tData[cursor];
          var itemRange = tData[cursor + 1];
          bindings.unshift({
            key: itemKey,
            index: cursor,
            isTemplate: isTemplate,
            prevDuplicate: getTStylingRangePrevDuplicate(itemRange),
            nextDuplicate: getTStylingRangeNextDuplicate(itemRange),
            nextIndex: getTStylingRangeNext(itemRange),
            prevIndex: getTStylingRangePrev(itemRange)
          });
          if (cursor === prev) isTemplate = false;
          cursor = getTStylingRangePrev(itemRange);
        }

        bindings.push((isClassBased ? tNode.residualClasses : tNode.residualStyles) || null);
        return bindings;
      }

      function processTNodeChildren(tNode, buf) {
        while (tNode) {
          buf.push(tNode.template_);
          tNode = tNode.next;
        }
      }

      var TViewData = NG_DEV_MODE && createNamedArrayType('TViewData') || null;
      var TVIEWDATA_EMPTY; // can't initialize here or it will not be tree shaken, because
      // `LView` constructor could have side-effects.

      /**
       * This function clones a blueprint and creates TData.
       *
       * Simple slice will keep the same type, and we need it to be TData
       */

      function cloneToTViewData(list) {
        if (TVIEWDATA_EMPTY === undefined) TVIEWDATA_EMPTY = new TViewData();
        return TVIEWDATA_EMPTY.concat(list);
      }

      var LViewBlueprint = NG_DEV_MODE && createNamedArrayType('LViewBlueprint') || null;
      var MatchesArray = NG_DEV_MODE && createNamedArrayType('MatchesArray') || null;
      var TViewComponents = NG_DEV_MODE && createNamedArrayType('TViewComponents') || null;
      var TNodeLocalNames = NG_DEV_MODE && createNamedArrayType('TNodeLocalNames') || null;
      var TNodeInitialInputs = NG_DEV_MODE && createNamedArrayType('TNodeInitialInputs') || null;
      var TNodeInitialData = NG_DEV_MODE && createNamedArrayType('TNodeInitialData') || null;
      var LCleanup = NG_DEV_MODE && createNamedArrayType('LCleanup') || null;
      var TCleanup = NG_DEV_MODE && createNamedArrayType('TCleanup') || null;

      function attachLViewDebug(lView) {
        attachDebugObject(lView, new LViewDebug(lView));
      }

      function attachLContainerDebug(lContainer) {
        attachDebugObject(lContainer, new LContainerDebug(lContainer));
      }

      function toDebug(obj) {
        if (obj) {
          var debug = obj.debug;
          assertDefined(debug, 'Object does not have a debug representation.');
          return debug;
        } else {
          return obj;
        }
      }
      /**
       * Use this method to unwrap a native element in `LView` and convert it into HTML for easier
       * reading.
       *
       * @param value possibly wrapped native DOM node.
       * @param includeChildren If `true` then the serialized HTML form will include child elements
       * (same
       * as `outerHTML`). If `false` then the serialized HTML form will only contain the element
       * itself
       * (will not serialize child elements).
       */


      function toHtml(value) {
        var includeChildren = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
        var node = unwrapRNode(value);

        if (node) {
          switch (node.nodeType) {
            case Node.TEXT_NODE:
              return node.textContent;

            case Node.COMMENT_NODE:
              return "<!--".concat(node.textContent, "-->");

            case Node.ELEMENT_NODE:
              var outerHTML = node.outerHTML;

              if (includeChildren) {
                return outerHTML;
              } else {
                var innerHTML = '>' + node.innerHTML + '<';
                return outerHTML.split(innerHTML)[0] + '>';
              }

          }
        }

        return null;
      }

      var LViewDebug = /*#__PURE__*/function () {
        function LViewDebug(_raw_lView) {
          _classCallCheck2(this, LViewDebug);

          this._raw_lView = _raw_lView;
        }
        /**
         * Flags associated with the `LView` unpacked into a more readable state.
         */


        _createClass2(LViewDebug, [{
          key: "flags",
          get: function get() {
            var flags = this._raw_lView[FLAGS];
            return {
              __raw__flags__: flags,
              initPhaseState: flags & 3
              /* InitPhaseStateMask */
              ,
              creationMode: !!(flags & 4
              /* CreationMode */
              ),
              firstViewPass: !!(flags & 8
              /* FirstLViewPass */
              ),
              checkAlways: !!(flags & 16
              /* CheckAlways */
              ),
              dirty: !!(flags & 64
              /* Dirty */
              ),
              attached: !!(flags & 128
              /* Attached */
              ),
              destroyed: !!(flags & 256
              /* Destroyed */
              ),
              isRoot: !!(flags & 512
              /* IsRoot */
              ),
              indexWithinInitPhase: flags >> 11
              /* IndexWithinInitPhaseShift */

            };
          }
        }, {
          key: "parent",
          get: function get() {
            return toDebug(this._raw_lView[PARENT]);
          }
        }, {
          key: "hostHTML",
          get: function get() {
            return toHtml(this._raw_lView[HOST], true);
          }
        }, {
          key: "html",
          get: function get() {
            return (this.nodes || []).map(mapToHTML).join('');
          }
        }, {
          key: "context",
          get: function get() {
            return this._raw_lView[CONTEXT];
          }
          /**
           * The tree of nodes associated with the current `LView`. The nodes have been normalized into
           * a tree structure with relevant details pulled out for readability.
           */

        }, {
          key: "nodes",
          get: function get() {
            var lView = this._raw_lView;
            var tNode = lView[TVIEW].firstChild;
            return toDebugNodes(tNode, lView);
          }
        }, {
          key: "template",
          get: function get() {
            return this.tView.template_;
          }
        }, {
          key: "tView",
          get: function get() {
            return this._raw_lView[TVIEW];
          }
        }, {
          key: "cleanup",
          get: function get() {
            return this._raw_lView[CLEANUP];
          }
        }, {
          key: "injector",
          get: function get() {
            return this._raw_lView[INJECTOR$1];
          }
        }, {
          key: "rendererFactory",
          get: function get() {
            return this._raw_lView[RENDERER_FACTORY];
          }
        }, {
          key: "renderer",
          get: function get() {
            return this._raw_lView[RENDERER];
          }
        }, {
          key: "sanitizer",
          get: function get() {
            return this._raw_lView[SANITIZER];
          }
        }, {
          key: "childHead",
          get: function get() {
            return toDebug(this._raw_lView[CHILD_HEAD]);
          }
        }, {
          key: "next",
          get: function get() {
            return toDebug(this._raw_lView[NEXT]);
          }
        }, {
          key: "childTail",
          get: function get() {
            return toDebug(this._raw_lView[CHILD_TAIL]);
          }
        }, {
          key: "declarationView",
          get: function get() {
            return toDebug(this._raw_lView[DECLARATION_VIEW]);
          }
        }, {
          key: "queries",
          get: function get() {
            return this._raw_lView[QUERIES];
          }
        }, {
          key: "tHost",
          get: function get() {
            return this._raw_lView[T_HOST];
          }
        }, {
          key: "decls",
          get: function get() {
            return toLViewRange(this.tView, this._raw_lView, HEADER_OFFSET, this.tView.bindingStartIndex);
          }
        }, {
          key: "vars",
          get: function get() {
            return toLViewRange(this.tView, this._raw_lView, this.tView.bindingStartIndex, this.tView.expandoStartIndex);
          }
        }, {
          key: "expando",
          get: function get() {
            return toLViewRange(this.tView, this._raw_lView, this.tView.expandoStartIndex, this._raw_lView.length);
          }
          /**
           * Normalized view of child views (and containers) attached at this location.
           */

        }, {
          key: "childViews",
          get: function get() {
            var childViews = [];
            var child = this.childHead;

            while (child) {
              childViews.push(child);
              child = child.next;
            }

            return childViews;
          }
        }]);

        return LViewDebug;
      }();

      function mapToHTML(node) {
        if (node.type === 'ElementContainer') {
          return (node.children || []).map(mapToHTML).join('');
        } else if (node.type === 'IcuContainer') {
          throw new Error('Not implemented');
        } else {
          return toHtml(node["native"], true) || '';
        }
      }

      function toLViewRange(tView, lView, start, end) {
        var content = [];

        for (var index = start; index < end; index++) {
          content.push({
            index: index,
            t: tView.data[index],
            l: lView[index]
          });
        }

        return {
          start: start,
          end: end,
          length: end - start,
          content: content
        };
      }
      /**
       * Turns a flat list of nodes into a tree by walking the associated `TNode` tree.
       *
       * @param tNode
       * @param lView
       */


      function toDebugNodes(tNode, lView) {
        if (tNode) {
          var debugNodes = [];
          var tNodeCursor = tNode;

          while (tNodeCursor) {
            debugNodes.push(buildDebugNode(tNodeCursor, lView));
            tNodeCursor = tNodeCursor.next;
          }

          return debugNodes;
        } else {
          return [];
        }
      }

      function buildDebugNode(tNode, lView) {
        var rawValue = lView[tNode.index];

        var _native6 = unwrapRNode(rawValue);

        var factories = [];
        var instances = [];
        var tView = lView[TVIEW];

        for (var i = tNode.directiveStart; i < tNode.directiveEnd; i++) {
          var def = tView.data[i];
          factories.push(def.type);
          instances.push(lView[i]);
        }

        return {
          html: toHtml(_native6),
          type: toTNodeTypeAsString(tNode.type),
          "native": _native6,
          children: toDebugNodes(tNode.child, lView),
          factories: factories,
          instances: instances,
          injector: buildNodeInjectorDebug(tNode, tView, lView)
        };
      }

      function buildNodeInjectorDebug(tNode, tView, lView) {
        var viewProviders = [];

        for (var i = tNode.providerIndexStart_; i < tNode.providerIndexEnd_; i++) {
          viewProviders.push(tView.data[i]);
        }

        var providers = [];

        for (var _i16 = tNode.providerIndexEnd_; _i16 < tNode.directiveEnd; _i16++) {
          providers.push(tView.data[_i16]);
        }

        var nodeInjectorDebug = {
          bloom: toBloom(lView, tNode.injectorIndex),
          cumulativeBloom: toBloom(tView.data, tNode.injectorIndex),
          providers: providers,
          viewProviders: viewProviders,
          parentInjectorIndex: lView[tNode.providerIndexStart_ - 1]
        };
        return nodeInjectorDebug;
      }
      /**
       * Convert a number at `idx` location in `array` into binary representation.
       *
       * @param array
       * @param idx
       */


      function binary(array, idx) {
        var value = array[idx]; // If not a number we print 8 `?` to retain alignment but let user know that it was called on
        // wrong type.

        if (typeof value !== 'number') return '????????'; // We prefix 0s so that we have constant length number

        var text = '00000000' + value.toString(2);
        return text.substring(text.length - 8);
      }
      /**
       * Convert a bloom filter at location `idx` in `array` into binary representation.
       *
       * @param array
       * @param idx
       */


      function toBloom(array, idx) {
        return "".concat(binary(array, idx + 7), "_").concat(binary(array, idx + 6), "_").concat(binary(array, idx + 5), "_").concat(binary(array, idx + 4), "_").concat(binary(array, idx + 3), "_").concat(binary(array, idx + 2), "_").concat(binary(array, idx + 1), "_").concat(binary(array, idx + 0));
      }

      var LContainerDebug = /*#__PURE__*/function () {
        function LContainerDebug(_raw_lContainer) {
          _classCallCheck2(this, LContainerDebug);

          this._raw_lContainer = _raw_lContainer;
        }

        _createClass2(LContainerDebug, [{
          key: "hasTransplantedViews",
          get: function get() {
            return this._raw_lContainer[HAS_TRANSPLANTED_VIEWS];
          }
        }, {
          key: "views",
          get: function get() {
            return this._raw_lContainer.slice(CONTAINER_HEADER_OFFSET).map(toDebug);
          }
        }, {
          key: "parent",
          get: function get() {
            return toDebug(this._raw_lContainer[PARENT]);
          }
        }, {
          key: "movedViews",
          get: function get() {
            return this._raw_lContainer[MOVED_VIEWS];
          }
        }, {
          key: "host",
          get: function get() {
            return this._raw_lContainer[HOST];
          }
        }, {
          key: "native",
          get: function get() {
            return this._raw_lContainer[NATIVE];
          }
        }, {
          key: "next",
          get: function get() {
            return toDebug(this._raw_lContainer[NEXT]);
          }
        }]);

        return LContainerDebug;
      }();

      var ɵ0$4 = function ɵ0$4() {
        return Promise.resolve(null);
      };
      /**
       * A permanent marker promise which signifies that the current CD tree is
       * clean.
       */


      var _CLEAN_PROMISE = ɵ0$4();
      /**
       * Invoke `HostBindingsFunction`s for view.
       *
       * This methods executes `TView.hostBindingOpCodes`. It is used to execute the
       * `HostBindingsFunction`s associated with the current `LView`.
       *
       * @param tView Current `TView`.
       * @param lView Current `LView`.
       */


      function processHostBindingOpCodes(tView, lView) {
        var hostBindingOpCodes = tView.hostBindingOpCodes;
        if (hostBindingOpCodes === null) return;

        try {
          for (var i = 0; i < hostBindingOpCodes.length; i++) {
            var opCode = hostBindingOpCodes[i];

            if (opCode < 0) {
              // Negative numbers are element indexes.
              setSelectedIndex(~opCode);
            } else {
              // Positive numbers are NumberTuple which store bindingRootIndex and directiveIndex.
              var directiveIdx = opCode;
              var bindingRootIndx = hostBindingOpCodes[++i];
              var hostBindingFn = hostBindingOpCodes[++i];
              setBindingRootForHostBindings(bindingRootIndx, directiveIdx);
              var context = lView[directiveIdx];
              hostBindingFn(2
              /* Update */
              , context);
            }
          }
        } finally {
          setSelectedIndex(-1);
        }
      }
      /** Refreshes all content queries declared by directives in a given view */


      function refreshContentQueries(tView, lView) {
        var contentQueries = tView.contentQueries;

        if (contentQueries !== null) {
          for (var i = 0; i < contentQueries.length; i += 2) {
            var queryStartIdx = contentQueries[i];
            var directiveDefIdx = contentQueries[i + 1];

            if (directiveDefIdx !== -1) {
              var _directiveDef2 = tView.data[directiveDefIdx];
              ngDevMode && assertDefined(_directiveDef2, 'DirectiveDef not found.');
              ngDevMode && assertDefined(_directiveDef2.contentQueries, 'contentQueries function should be defined');
              setCurrentQueryIndex(queryStartIdx);

              _directiveDef2.contentQueries(2
              /* Update */
              , lView[directiveDefIdx], directiveDefIdx);
            }
          }
        }
      }
      /** Refreshes child components in the current view (update mode). */


      function refreshChildComponents(hostLView, components) {
        for (var i = 0; i < components.length; i++) {
          refreshComponent(hostLView, components[i]);
        }
      }
      /** Renders child components in the current view (creation mode). */


      function renderChildComponents(hostLView, components) {
        for (var i = 0; i < components.length; i++) {
          renderComponent(hostLView, components[i]);
        }
      }

      function createLView(parentLView, tView, context, flags, host, tHostNode, rendererFactory, renderer, sanitizer, injector) {
        var lView = ngDevMode ? cloneToLViewFromTViewBlueprint(tView) : tView.blueprint.slice();
        lView[HOST] = host;
        lView[FLAGS] = flags | 4
        /* CreationMode */
        | 128
        /* Attached */
        | 8
        /* FirstLViewPass */
        ;
        resetPreOrderHookFlags(lView);
        ngDevMode && tView.declTNode && parentLView && assertTNodeForLView(tView.declTNode, parentLView);
        lView[PARENT] = lView[DECLARATION_VIEW] = parentLView;
        lView[CONTEXT] = context;
        lView[RENDERER_FACTORY] = rendererFactory || parentLView && parentLView[RENDERER_FACTORY];
        ngDevMode && assertDefined(lView[RENDERER_FACTORY], 'RendererFactory is required');
        lView[RENDERER] = renderer || parentLView && parentLView[RENDERER];
        ngDevMode && assertDefined(lView[RENDERER], 'Renderer is required');
        lView[SANITIZER] = sanitizer || parentLView && parentLView[SANITIZER] || null;
        lView[INJECTOR$1] = injector || parentLView && parentLView[INJECTOR$1] || null;
        lView[T_HOST] = tHostNode;
        ngDevMode && assertEqual(tView.type == 2
        /* Embedded */
        ? parentLView !== null : true, true, 'Embedded views must have parentLView');
        lView[DECLARATION_COMPONENT_VIEW] = tView.type == 2
        /* Embedded */
        ? parentLView[DECLARATION_COMPONENT_VIEW] : lView;
        ngDevMode && attachLViewDebug(lView);
        return lView;
      }

      function getOrCreateTNode(tView, index, type, name, attrs) {
        ngDevMode && index !== 0 && // 0 are bogus nodes and they are OK. See `createContainerRef` in
        // `view_engine_compatibility` for additional context.
        assertGreaterThanOrEqual(index, HEADER_OFFSET, 'TNodes can\'t be in the LView header.'); // Keep this function short, so that the VM will inline it.

        ngDevMode && assertPureTNodeType(type);
        var tNode = tView.data[index];

        if (tNode === null) {
          tNode = createTNodeAtIndex(tView, index, type, name, attrs);

          if (isInI18nBlock()) {
            // If we are in i18n block then all elements should be pre declared through `Placeholder`
            // See `TNodeType.Placeholder` and `LFrame.inI18n` for more context.
            // If the `TNode` was not pre-declared than it means it was not mentioned which means it was
            // removed, so we mark it as detached.
            tNode.flags |= 64
            /* isDetached */
            ;
          }
        } else if (tNode.type & 64
        /* Placeholder */
        ) {
          tNode.type = type;
          tNode.value = name;
          tNode.attrs = attrs;
          var parent = getCurrentParentTNode();
          tNode.injectorIndex = parent === null ? -1 : parent.injectorIndex;
          ngDevMode && assertTNodeForTView(tNode, tView);
          ngDevMode && assertEqual(index, tNode.index, 'Expecting same index');
        }

        setCurrentTNode(tNode, true);
        return tNode;
      }

      function createTNodeAtIndex(tView, index, type, name, attrs) {
        var currentTNode = getCurrentTNodePlaceholderOk();
        var isParent = isCurrentTNodeParent();
        var parent = isParent ? currentTNode : currentTNode && currentTNode.parent; // Parents cannot cross component boundaries because components will be used in multiple places.

        var tNode = tView.data[index] = createTNode(tView, parent, type, index, name, attrs); // Assign a pointer to the first child node of a given view. The first node is not always the one
        // at index 0, in case of i18n, index 0 can be the instruction `i18nStart` and the first node has
        // the index 1 or more, so we can't just check node index.

        if (tView.firstChild === null) {
          tView.firstChild = tNode;
        }

        if (currentTNode !== null) {
          if (isParent) {
            // FIXME(misko): This logic looks unnecessarily complicated. Could we simplify?
            if (currentTNode.child == null && tNode.parent !== null) {
              // We are in the same view, which means we are adding content node to the parent view.
              currentTNode.child = tNode;
            }
          } else {
            if (currentTNode.next === null) {
              // In the case of i18n the `currentTNode` may already be linked, in which case we don't want
              // to break the links which i18n created.
              currentTNode.next = tNode;
            }
          }
        }

        return tNode;
      }
      /**
       * When elements are created dynamically after a view blueprint is created (e.g. through
       * i18nApply()), we need to adjust the blueprint for future
       * template passes.
       *
       * @param tView `TView` associated with `LView`
       * @param lView The `LView` containing the blueprint to adjust
       * @param numSlotsToAlloc The number of slots to alloc in the LView, should be >0
       * @param initialValue Initial value to store in blueprint
       */


      function allocExpando(tView, lView, numSlotsToAlloc, initialValue) {
        if (numSlotsToAlloc === 0) return -1;

        if (ngDevMode) {
          assertFirstCreatePass(tView);
          assertSame(tView, lView[TVIEW], '`LView` must be associated with `TView`!');
          assertEqual(tView.data.length, lView.length, 'Expecting LView to be same size as TView');
          assertEqual(tView.data.length, tView.blueprint.length, 'Expecting Blueprint to be same size as TView');
          assertFirstUpdatePass(tView);
        }

        var allocIdx = lView.length;

        for (var i = 0; i < numSlotsToAlloc; i++) {
          lView.push(initialValue);
          tView.blueprint.push(initialValue);
          tView.data.push(null);
        }

        return allocIdx;
      } //////////////////////////
      //// Render
      //////////////////////////

      /**
       * Processes a view in the creation mode. This includes a number of steps in a specific order:
       * - creating view query functions (if any);
       * - executing a template function in the creation mode;
       * - updating static queries (if any);
       * - creating child components defined in a given view.
       */


      function renderView(tView, lView, context) {
        ngDevMode && assertEqual(isCreationMode(lView), true, 'Should be run in creation mode');
        enterView(lView);

        try {
          var viewQuery = tView.viewQuery;

          if (viewQuery !== null) {
            executeViewQueryFn(1
            /* Create */
            , viewQuery, context);
          } // Execute a template associated with this view, if it exists. A template function might not be
          // defined for the root component views.


          var templateFn = tView.template;

          if (templateFn !== null) {
            executeTemplate(tView, lView, templateFn, 1
            /* Create */
            , context);
          } // This needs to be set before children are processed to support recursive components.
          // This must be set to false immediately after the first creation run because in an
          // ngFor loop, all the views will be created together before update mode runs and turns
          // off firstCreatePass. If we don't set it here, instances will perform directive
          // matching, etc again and again.


          if (tView.firstCreatePass) {
            tView.firstCreatePass = false;
          } // We resolve content queries specifically marked as `static` in creation mode. Dynamic
          // content queries are resolved during change detection (i.e. update mode), after embedded
          // views are refreshed (see block above).


          if (tView.staticContentQueries) {
            refreshContentQueries(tView, lView);
          } // We must materialize query results before child components are processed
          // in case a child component has projected a container. The LContainer needs
          // to exist so the embedded views are properly attached by the container.


          if (tView.staticViewQueries) {
            executeViewQueryFn(2
            /* Update */
            , tView.viewQuery, context);
          } // Render child component views.


          var components = tView.components;

          if (components !== null) {
            renderChildComponents(lView, components);
          }
        } catch (error) {
          // If we didn't manage to get past the first template pass due to
          // an error, mark the view as corrupted so we can try to recover.
          if (tView.firstCreatePass) {
            tView.incompleteFirstPass = true;
          }

          throw error;
        } finally {
          lView[FLAGS] &= ~4
          /* CreationMode */
          ;
          leaveView();
        }
      }
      /**
       * Processes a view in update mode. This includes a number of steps in a specific order:
       * - executing a template function in update mode;
       * - executing hooks;
       * - refreshing queries;
       * - setting host bindings;
       * - refreshing child (embedded and component) views.
       */


      function refreshView(tView, lView, templateFn, context) {
        ngDevMode && assertEqual(isCreationMode(lView), false, 'Should be run in update mode');
        var flags = lView[FLAGS];
        if ((flags & 256
        /* Destroyed */
        ) === 256
        /* Destroyed */
        ) return;
        enterView(lView); // Check no changes mode is a dev only mode used to verify that bindings have not changed
        // since they were assigned. We do not want to execute lifecycle hooks in that mode.

        var isInCheckNoChangesPass = isInCheckNoChangesMode();

        try {
          resetPreOrderHookFlags(lView);
          setBindingIndex(tView.bindingStartIndex);

          if (templateFn !== null) {
            executeTemplate(tView, lView, templateFn, 2
            /* Update */
            , context);
          }

          var hooksInitPhaseCompleted = (flags & 3
          /* InitPhaseStateMask */
          ) === 3
          /* InitPhaseCompleted */
          ; // execute pre-order hooks (OnInit, OnChanges, DoCheck)
          // PERF WARNING: do NOT extract this to a separate function without running benchmarks

          if (!isInCheckNoChangesPass) {
            if (hooksInitPhaseCompleted) {
              var preOrderCheckHooks = tView.preOrderCheckHooks;

              if (preOrderCheckHooks !== null) {
                executeCheckHooks(lView, preOrderCheckHooks, null);
              }
            } else {
              var preOrderHooks = tView.preOrderHooks;

              if (preOrderHooks !== null) {
                executeInitAndCheckHooks(lView, preOrderHooks, 0
                /* OnInitHooksToBeRun */
                , null);
              }

              incrementInitPhaseFlags(lView, 0
              /* OnInitHooksToBeRun */
              );
            }
          } // First mark transplanted views that are declared in this lView as needing a refresh at their
          // insertion points. This is needed to avoid the situation where the template is defined in this
          // `LView` but its declaration appears after the insertion component.


          markTransplantedViewsForRefresh(lView);
          refreshEmbeddedViews(lView); // Content query results must be refreshed before content hooks are called.

          if (tView.contentQueries !== null) {
            refreshContentQueries(tView, lView);
          } // execute content hooks (AfterContentInit, AfterContentChecked)
          // PERF WARNING: do NOT extract this to a separate function without running benchmarks


          if (!isInCheckNoChangesPass) {
            if (hooksInitPhaseCompleted) {
              var contentCheckHooks = tView.contentCheckHooks;

              if (contentCheckHooks !== null) {
                executeCheckHooks(lView, contentCheckHooks);
              }
            } else {
              var contentHooks = tView.contentHooks;

              if (contentHooks !== null) {
                executeInitAndCheckHooks(lView, contentHooks, 1
                /* AfterContentInitHooksToBeRun */
                );
              }

              incrementInitPhaseFlags(lView, 1
              /* AfterContentInitHooksToBeRun */
              );
            }
          }

          processHostBindingOpCodes(tView, lView); // Refresh child component views.

          var components = tView.components;

          if (components !== null) {
            refreshChildComponents(lView, components);
          } // View queries must execute after refreshing child components because a template in this view
          // could be inserted in a child component. If the view query executes before child component
          // refresh, the template might not yet be inserted.


          var viewQuery = tView.viewQuery;

          if (viewQuery !== null) {
            executeViewQueryFn(2
            /* Update */
            , viewQuery, context);
          } // execute view hooks (AfterViewInit, AfterViewChecked)
          // PERF WARNING: do NOT extract this to a separate function without running benchmarks


          if (!isInCheckNoChangesPass) {
            if (hooksInitPhaseCompleted) {
              var viewCheckHooks = tView.viewCheckHooks;

              if (viewCheckHooks !== null) {
                executeCheckHooks(lView, viewCheckHooks);
              }
            } else {
              var viewHooks = tView.viewHooks;

              if (viewHooks !== null) {
                executeInitAndCheckHooks(lView, viewHooks, 2
                /* AfterViewInitHooksToBeRun */
                );
              }

              incrementInitPhaseFlags(lView, 2
              /* AfterViewInitHooksToBeRun */
              );
            }
          }

          if (tView.firstUpdatePass === true) {
            // We need to make sure that we only flip the flag on successful `refreshView` only
            // Don't do this in `finally` block.
            // If we did this in `finally` block then an exception could block the execution of styling
            // instructions which in turn would be unable to insert themselves into the styling linked
            // list. The result of this would be that if the exception would not be throw on subsequent CD
            // the styling would be unable to process it data and reflect to the DOM.
            tView.firstUpdatePass = false;
          } // Do not reset the dirty state when running in check no changes mode. We don't want components
          // to behave differently depending on whether check no changes is enabled or not. For example:
          // Marking an OnPush component as dirty from within the `ngAfterViewInit` hook in order to
          // refresh a `NgClass` binding should work. If we would reset the dirty state in the check
          // no changes cycle, the component would be not be dirty for the next update pass. This would
          // be different in production mode where the component dirty state is not reset.


          if (!isInCheckNoChangesPass) {
            lView[FLAGS] &= ~(64
            /* Dirty */
            | 8
            /* FirstLViewPass */
            );
          }

          if (lView[FLAGS] & 1024
          /* RefreshTransplantedView */
          ) {
            lView[FLAGS] &= ~1024
            /* RefreshTransplantedView */
            ;
            updateTransplantedViewCount(lView[PARENT], -1);
          }
        } finally {
          leaveView();
        }
      }

      function renderComponentOrTemplate(tView, lView, templateFn, context) {
        var rendererFactory = lView[RENDERER_FACTORY];
        var normalExecutionPath = !isInCheckNoChangesMode();
        var creationModeIsActive = isCreationMode(lView);

        try {
          if (normalExecutionPath && !creationModeIsActive && rendererFactory.begin) {
            rendererFactory.begin();
          }

          if (creationModeIsActive) {
            renderView(tView, lView, context);
          }

          refreshView(tView, lView, templateFn, context);
        } finally {
          if (normalExecutionPath && !creationModeIsActive && rendererFactory.end) {
            rendererFactory.end();
          }
        }
      }

      function executeTemplate(tView, lView, templateFn, rf, context) {
        var prevSelectedIndex = getSelectedIndex();

        try {
          setSelectedIndex(-1);

          if (rf & 2
          /* Update */
          && lView.length > HEADER_OFFSET) {
            // When we're updating, inherently select 0 so we don't
            // have to generate that instruction for most update blocks.
            selectIndexInternal(tView, lView, HEADER_OFFSET, isInCheckNoChangesMode());
          }

          templateFn(rf, context);
        } finally {
          setSelectedIndex(prevSelectedIndex);
        }
      } //////////////////////////
      //// Element
      //////////////////////////


      function executeContentQueries(tView, tNode, lView) {
        if (isContentQueryHost(tNode)) {
          var _start13 = tNode.directiveStart;
          var end = tNode.directiveEnd;

          for (var directiveIndex = _start13; directiveIndex < end; directiveIndex++) {
            var def = tView.data[directiveIndex];

            if (def.contentQueries) {
              def.contentQueries(1
              /* Create */
              , lView[directiveIndex], directiveIndex);
            }
          }
        }
      }
      /**
       * Creates directive instances.
       */


      function createDirectivesInstances(tView, lView, tNode) {
        if (!getBindingsEnabled()) return;
        instantiateAllDirectives(tView, lView, tNode, getNativeByTNode(tNode, lView));

        if ((tNode.flags & 128
        /* hasHostBindings */
        ) === 128
        /* hasHostBindings */
        ) {
          invokeDirectivesHostBindings(tView, lView, tNode);
        }
      }
      /**
       * Takes a list of local names and indices and pushes the resolved local variable values
       * to LView in the same order as they are loaded in the template with load().
       */


      function saveResolvedLocalsInData(viewData, tNode) {
        var localRefExtractor = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : getNativeByTNode;
        var localNames = tNode.localNames;

        if (localNames !== null) {
          var localIndex = tNode.index + 1;

          for (var i = 0; i < localNames.length; i += 2) {
            var index = localNames[i + 1];
            var value = index === -1 ? localRefExtractor(tNode, viewData) : viewData[index];
            viewData[localIndex++] = value;
          }
        }
      }
      /**
       * Gets TView from a template function or creates a new TView
       * if it doesn't already exist.
       *
       * @param def ComponentDef
       * @returns TView
       */


      function getOrCreateTComponentView(def) {
        var tView = def.tView; // Create a TView if there isn't one, or recreate it if the first create pass didn't
        // complete successfully since we can't know for sure whether it's in a usable shape.

        if (tView === null || tView.incompleteFirstPass) {
          // Declaration node here is null since this function is called when we dynamically create a
          // component and hence there is no declaration.
          var declTNode = null;
          return def.tView = createTView(1
          /* Component */
          , declTNode, def.template, def.decls, def.vars, def.directiveDefs, def.pipeDefs, def.viewQuery, def.schemas, def.consts);
        }

        return tView;
      }
      /**
       * Creates a TView instance
       *
       * @param type Type of `TView`.
       * @param declTNode Declaration location of this `TView`.
       * @param templateFn Template function
       * @param decls The number of nodes, local refs, and pipes in this template
       * @param directives Registry of directives for this view
       * @param pipes Registry of pipes for this view
       * @param viewQuery View queries for this view
       * @param schemas Schemas for this view
       * @param consts Constants for this view
       */


      function createTView(type, declTNode, templateFn, decls, vars, directives, pipes, viewQuery, schemas, constsOrFactory) {
        ngDevMode && ngDevMode.tView++;
        var bindingStartIndex = HEADER_OFFSET + decls; // This length does not yet contain host bindings from child directives because at this point,
        // we don't know which directives are active on this template. As soon as a directive is matched
        // that has a host binding, we will update the blueprint with that def's hostVars count.

        var initialViewLength = bindingStartIndex + vars;
        var blueprint = createViewBlueprint(bindingStartIndex, initialViewLength);
        var consts = typeof constsOrFactory === 'function' ? constsOrFactory() : constsOrFactory;
        var tView = blueprint[TVIEW] = ngDevMode ? new TViewConstructor(type, // type: TViewType,
        blueprint, // blueprint: LView,
        templateFn, // template: ComponentTemplate<{}>|null,
        null, // queries: TQueries|null
        viewQuery, // viewQuery: ViewQueriesFunction<{}>|null,
        declTNode, // declTNode: TNode|null,
        cloneToTViewData(blueprint).fill(null, bindingStartIndex), // data: TData,
        bindingStartIndex, // bindingStartIndex: number,
        initialViewLength, // expandoStartIndex: number,
        null, // hostBindingOpCodes: HostBindingOpCodes,
        true, // firstCreatePass: boolean,
        true, // firstUpdatePass: boolean,
        false, // staticViewQueries: boolean,
        false, // staticContentQueries: boolean,
        null, // preOrderHooks: HookData|null,
        null, // preOrderCheckHooks: HookData|null,
        null, // contentHooks: HookData|null,
        null, // contentCheckHooks: HookData|null,
        null, // viewHooks: HookData|null,
        null, // viewCheckHooks: HookData|null,
        null, // destroyHooks: DestroyHookData|null,
        null, // cleanup: any[]|null,
        null, // contentQueries: number[]|null,
        null, // components: number[]|null,
        typeof directives === 'function' ? //
        directives() : //
        directives, // directiveRegistry: DirectiveDefList|null,
        typeof pipes === 'function' ? pipes() : pipes, // pipeRegistry: PipeDefList|null,
        null, // firstChild: TNode|null,
        schemas, // schemas: SchemaMetadata[]|null,
        consts, // consts: TConstants|null
        false, // incompleteFirstPass: boolean
        decls, // ngDevMode only: decls
        vars) : {
          type: type,
          blueprint: blueprint,
          template: templateFn,
          queries: null,
          viewQuery: viewQuery,
          declTNode: declTNode,
          data: blueprint.slice().fill(null, bindingStartIndex),
          bindingStartIndex: bindingStartIndex,
          expandoStartIndex: initialViewLength,
          hostBindingOpCodes: null,
          firstCreatePass: true,
          firstUpdatePass: true,
          staticViewQueries: false,
          staticContentQueries: false,
          preOrderHooks: null,
          preOrderCheckHooks: null,
          contentHooks: null,
          contentCheckHooks: null,
          viewHooks: null,
          viewCheckHooks: null,
          destroyHooks: null,
          cleanup: null,
          contentQueries: null,
          components: null,
          directiveRegistry: typeof directives === 'function' ? directives() : directives,
          pipeRegistry: typeof pipes === 'function' ? pipes() : pipes,
          firstChild: null,
          schemas: schemas,
          consts: consts,
          incompleteFirstPass: false
        };

        if (ngDevMode) {
          // For performance reasons it is important that the tView retains the same shape during runtime.
          // (To make sure that all of the code is monomorphic.) For this reason we seal the object to
          // prevent class transitions.
          Object.seal(tView);
        }

        return tView;
      }

      function createViewBlueprint(bindingStartIndex, initialViewLength) {
        var blueprint = ngDevMode ? new LViewBlueprint() : [];

        for (var i = 0; i < initialViewLength; i++) {
          blueprint.push(i < bindingStartIndex ? null : NO_CHANGE);
        }

        return blueprint;
      }

      function createError(text, token) {
        return new Error("Renderer: ".concat(text, " [").concat(stringifyForError(token), "]"));
      }

      function assertHostNodeExists(rElement, elementOrSelector) {
        if (!rElement) {
          if (typeof elementOrSelector === 'string') {
            throw createError('Host node with selector not found:', elementOrSelector);
          } else {
            throw createError('Host node is required:', elementOrSelector);
          }
        }
      }
      /**
       * Locates the host native element, used for bootstrapping existing nodes into rendering pipeline.
       *
       * @param rendererFactory Factory function to create renderer instance.
       * @param elementOrSelector Render element or CSS selector to locate the element.
       * @param encapsulation View Encapsulation defined for component that requests host element.
       */


      function locateHostElement(renderer, elementOrSelector, encapsulation) {
        if (isProceduralRenderer(renderer)) {
          // When using native Shadow DOM, do not clear host element to allow native slot projection
          var preserveContent = encapsulation === ViewEncapsulation$1.ShadowDom;
          return renderer.selectRootElement(elementOrSelector, preserveContent);
        }

        var rElement = typeof elementOrSelector === 'string' ? renderer.querySelector(elementOrSelector) : elementOrSelector;
        ngDevMode && assertHostNodeExists(rElement, elementOrSelector); // Always clear host element's content when Renderer3 is in use. For procedural renderer case we
        // make it depend on whether ShadowDom encapsulation is used (in which case the content should be
        // preserved to allow native slot projection). ShadowDom encapsulation requires procedural
        // renderer, and procedural renderer case is handled above.

        rElement.textContent = '';
        return rElement;
      }
      /**
       * Saves context for this cleanup function in LView.cleanupInstances.
       *
       * On the first template pass, saves in TView:
       * - Cleanup function
       * - Index of context we just saved in LView.cleanupInstances
       */


      function storeCleanupWithContext(tView, lView, context, cleanupFn) {
        var lCleanup = getLCleanup(lView);
        lCleanup.push(context);

        if (tView.firstCreatePass) {
          getTViewCleanup(tView).push(cleanupFn, lCleanup.length - 1);
        }
      }

      function createTNode(tView, tParent, type, index, value, attrs) {
        ngDevMode && index !== 0 && // 0 are bogus nodes and they are OK. See `createContainerRef` in
        // `view_engine_compatibility` for additional context.
        assertGreaterThanOrEqual(index, HEADER_OFFSET, 'TNodes can\'t be in the LView header.');
        ngDevMode && assertNotSame(attrs, undefined, '\'undefined\' is not valid value for \'attrs\'');
        ngDevMode && ngDevMode.tNode++;
        ngDevMode && tParent && assertTNodeForTView(tParent, tView);
        var injectorIndex = tParent ? tParent.injectorIndex : -1;
        var tNode = ngDevMode ? new TNodeDebug(tView, // tView_: TView
        type, // type: TNodeType
        index, // index: number
        null, // insertBeforeIndex: null|-1|number|number[]
        injectorIndex, // injectorIndex: number
        -1, // directiveStart: number
        -1, // directiveEnd: number
        -1, // directiveStylingLast: number
        null, // propertyBindings: number[]|null
        0, // flags: TNodeFlags
        0, // providerIndexes: TNodeProviderIndexes
        value, // value: string|null
        attrs, // attrs: (string|AttributeMarker|(string|SelectorFlags)[])[]|null
        null, // mergedAttrs
        null, // localNames: (string|number)[]|null
        undefined, // initialInputs: (string[]|null)[]|null|undefined
        null, // inputs: PropertyAliases|null
        null, // outputs: PropertyAliases|null
        null, // tViews: ITView|ITView[]|null
        null, // next: ITNode|null
        null, // projectionNext: ITNode|null
        null, // child: ITNode|null
        tParent, // parent: TElementNode|TContainerNode|null
        null, // projection: number|(ITNode|RNode[])[]|null
        null, // styles: string|null
        null, // stylesWithoutHost: string|null
        undefined, // residualStyles: string|null
        null, // classes: string|null
        null, // classesWithoutHost: string|null
        undefined, // residualClasses: string|null
        0, // classBindings: TStylingRange;
        0) : {
          type: type,
          index: index,
          insertBeforeIndex: null,
          injectorIndex: injectorIndex,
          directiveStart: -1,
          directiveEnd: -1,
          directiveStylingLast: -1,
          propertyBindings: null,
          flags: 0,
          providerIndexes: 0,
          value: value,
          attrs: attrs,
          mergedAttrs: null,
          localNames: null,
          initialInputs: undefined,
          inputs: null,
          outputs: null,
          tViews: null,
          next: null,
          projectionNext: null,
          child: null,
          parent: tParent,
          projection: null,
          styles: null,
          stylesWithoutHost: null,
          residualStyles: undefined,
          classes: null,
          classesWithoutHost: null,
          residualClasses: undefined,
          classBindings: 0,
          styleBindings: 0
        };

        if (ngDevMode) {
          // For performance reasons it is important that the tNode retains the same shape during runtime.
          // (To make sure that all of the code is monomorphic.) For this reason we seal the object to
          // prevent class transitions.
          Object.seal(tNode);
        }

        return tNode;
      }

      function generatePropertyAliases(inputAliasMap, directiveDefIdx, propStore) {
        for (var publicName in inputAliasMap) {
          if (inputAliasMap.hasOwnProperty(publicName)) {
            propStore = propStore === null ? {} : propStore;
            var internalName = inputAliasMap[publicName];

            if (propStore.hasOwnProperty(publicName)) {
              propStore[publicName].push(directiveDefIdx, internalName);
            } else {
              propStore[publicName] = [directiveDefIdx, internalName];
            }
          }
        }

        return propStore;
      }
      /**
       * Initializes data structures required to work with directive inputs and outputs.
       * Initialization is done for all directives matched on a given TNode.
       */


      function initializeInputAndOutputAliases(tView, tNode) {
        ngDevMode && assertFirstCreatePass(tView);
        var start = tNode.directiveStart;
        var end = tNode.directiveEnd;
        var tViewData = tView.data;
        var tNodeAttrs = tNode.attrs;
        var inputsFromAttrs = ngDevMode ? new TNodeInitialInputs() : [];
        var inputsStore = null;
        var outputsStore = null;

        for (var i = start; i < end; i++) {
          var _directiveDef3 = tViewData[i];
          var directiveInputs = _directiveDef3.inputs; // Do not use unbound attributes as inputs to structural directives, since structural
          // directive inputs can only be set using microsyntax (e.g. `<div *dir="exp">`).
          // TODO(FW-1930): microsyntax expressions may also contain unbound/static attributes, which
          // should be set for inline templates.

          var initialInputs = tNodeAttrs !== null && !isInlineTemplate(tNode) ? generateInitialInputs(directiveInputs, tNodeAttrs) : null;
          inputsFromAttrs.push(initialInputs);
          inputsStore = generatePropertyAliases(directiveInputs, i, inputsStore);
          outputsStore = generatePropertyAliases(_directiveDef3.outputs, i, outputsStore);
        }

        if (inputsStore !== null) {
          if (inputsStore.hasOwnProperty('class')) {
            tNode.flags |= 16
            /* hasClassInput */
            ;
          }

          if (inputsStore.hasOwnProperty('style')) {
            tNode.flags |= 32
            /* hasStyleInput */
            ;
          }
        }

        tNode.initialInputs = inputsFromAttrs;
        tNode.inputs = inputsStore;
        tNode.outputs = outputsStore;
      }
      /**
       * Mapping between attributes names that don't correspond to their element property names.
       *
       * Performance note: this function is written as a series of if checks (instead of, say, a property
       * object lookup) for performance reasons - the series of `if` checks seems to be the fastest way of
       * mapping property names. Do NOT change without benchmarking.
       *
       * Note: this mapping has to be kept in sync with the equally named mapping in the template
       * type-checking machinery of ngtsc.
       */


      function mapPropName(name) {
        if (name === 'class') return 'className';
        if (name === 'for') return 'htmlFor';
        if (name === 'formaction') return 'formAction';
        if (name === 'innerHtml') return 'innerHTML';
        if (name === 'readonly') return 'readOnly';
        if (name === 'tabindex') return 'tabIndex';
        return name;
      }

      function elementPropertyInternal(tView, tNode, lView, propName, value, renderer, sanitizer, nativeOnly) {
        ngDevMode && assertNotSame(value, NO_CHANGE, 'Incoming value should never be NO_CHANGE.');
        var element = getNativeByTNode(tNode, lView);
        var inputData = tNode.inputs;
        var dataValue;

        if (!nativeOnly && inputData != null && (dataValue = inputData[propName])) {
          setInputsForProperty(tView, lView, dataValue, propName, value);
          if (isComponentHost(tNode)) markDirtyIfOnPush(lView, tNode.index);

          if (ngDevMode) {
            setNgReflectProperties(lView, element, tNode.type, dataValue, value);
          }
        } else if (tNode.type & 3
        /* AnyRNode */
        ) {
          propName = mapPropName(propName);

          if (ngDevMode) {
            validateAgainstEventProperties(propName);

            if (!validateProperty(tView, element, propName, tNode)) {
              // Return here since we only log warnings for unknown properties.
              logUnknownPropertyError(propName, tNode);
              return;
            }

            ngDevMode.rendererSetProperty++;
          } // It is assumed that the sanitizer is only added when the compiler determines that the
          // property is risky, so sanitization can be done without further checks.


          value = sanitizer != null ? sanitizer(value, tNode.value || '', propName) : value;

          if (isProceduralRenderer(renderer)) {
            renderer.setProperty(element, propName, value);
          } else if (!isAnimationProp(propName)) {
            element.setProperty ? element.setProperty(propName, value) : element[propName] = value;
          }
        } else if (tNode.type & 12
        /* AnyContainer */
        ) {
          // If the node is a container and the property didn't
          // match any of the inputs or schemas we should throw.
          if (ngDevMode && !matchingSchemas(tView, tNode.value)) {
            logUnknownPropertyError(propName, tNode);
          }
        }
      }
      /** If node is an OnPush component, marks its LView dirty. */


      function markDirtyIfOnPush(lView, viewIndex) {
        ngDevMode && assertLView(lView);
        var childComponentLView = getComponentLViewByIndex(viewIndex, lView);

        if (!(childComponentLView[FLAGS] & 16
        /* CheckAlways */
        )) {
          childComponentLView[FLAGS] |= 64
          /* Dirty */
          ;
        }
      }

      function setNgReflectProperty(lView, element, type, attrName, value) {
        var renderer = lView[RENDERER];
        attrName = normalizeDebugBindingName(attrName);
        var debugValue = normalizeDebugBindingValue(value);

        if (type & 3
        /* AnyRNode */
        ) {
          if (value == null) {
            isProceduralRenderer(renderer) ? renderer.removeAttribute(element, attrName) : element.removeAttribute(attrName);
          } else {
            isProceduralRenderer(renderer) ? renderer.setAttribute(element, attrName, debugValue) : element.setAttribute(attrName, debugValue);
          }
        } else {
          var textContent = "bindings=".concat(JSON.stringify(_defineProperty({}, attrName, debugValue), null, 2));

          if (isProceduralRenderer(renderer)) {
            renderer.setValue(element, textContent);
          } else {
            element.textContent = textContent;
          }
        }
      }

      function setNgReflectProperties(lView, element, type, dataValue, value) {
        if (type & (3
        /* AnyRNode */
        | 4
        /* Container */
        )) {
          /**
           * dataValue is an array containing runtime input or output names for the directives:
           * i+0: directive instance index
           * i+1: privateName
           *
           * e.g. [0, 'change', 'change-minified']
           * we want to set the reflected property with the privateName: dataValue[i+1]
           */
          for (var i = 0; i < dataValue.length; i += 2) {
            setNgReflectProperty(lView, element, type, dataValue[i + 1], value);
          }
        }
      }

      function validateProperty(tView, element, propName, tNode) {
        // If `schemas` is set to `null`, that's an indication that this Component was compiled in AOT
        // mode where this check happens at compile time. In JIT mode, `schemas` is always present and
        // defined as an array (as an empty array in case `schemas` field is not defined) and we should
        // execute the check below.
        if (tView.schemas === null) return true; // The property is considered valid if the element matches the schema, it exists on the element
        // or it is synthetic, and we are in a browser context (web worker nodes should be skipped).

        if (matchingSchemas(tView, tNode.value) || propName in element || isAnimationProp(propName)) {
          return true;
        } // Note: `typeof Node` returns 'function' in most browsers, but on IE it is 'object' so we
        // need to account for both here, while being careful for `typeof null` also returning 'object'.


        return typeof Node === 'undefined' || Node === null || !(element instanceof Node);
      }

      function matchingSchemas(tView, tagName) {
        var schemas = tView.schemas;

        if (schemas !== null) {
          for (var i = 0; i < schemas.length; i++) {
            var schema = schemas[i];

            if (schema === NO_ERRORS_SCHEMA || schema === CUSTOM_ELEMENTS_SCHEMA && tagName && tagName.indexOf('-') > -1) {
              return true;
            }
          }
        }

        return false;
      }
      /**
       * Logs an error that a property is not supported on an element.
       * @param propName Name of the invalid property.
       * @param tNode Node on which we encountered the property.
       */


      function logUnknownPropertyError(propName, tNode) {
        var message = "Can't bind to '".concat(propName, "' since it isn't a known property of '").concat(tNode.value, "'.");
        console.error(formatRuntimeError("303"
        /* UNKNOWN_BINDING */
        , message));
      }
      /**
       * Instantiate a root component.
       */


      function instantiateRootComponent(tView, lView, def) {
        var rootTNode = getCurrentTNode();

        if (tView.firstCreatePass) {
          if (def.providersResolver) def.providersResolver(def);
          var directiveIndex = allocExpando(tView, lView, 1, null);
          ngDevMode && assertEqual(directiveIndex, rootTNode.directiveStart, 'Because this is a root component the allocated expando should match the TNode component.');
          configureViewWithDirective(tView, rootTNode, lView, directiveIndex, def);
        }

        var directive = getNodeInjectable(lView, tView, rootTNode.directiveStart, rootTNode);
        attachPatchData(directive, lView);

        var _native7 = getNativeByTNode(rootTNode, lView);

        if (_native7) {
          attachPatchData(_native7, lView);
        }

        return directive;
      }
      /**
       * Resolve the matched directives on a node.
       */


      function resolveDirectives(tView, lView, tNode, localRefs) {
        // Please make sure to have explicit type for `exportsMap`. Inferred type triggers bug in
        // tsickle.
        ngDevMode && assertFirstCreatePass(tView);
        var hasDirectives = false;

        if (getBindingsEnabled()) {
          var directiveDefs = findDirectiveDefMatches(tView, lView, tNode);
          var exportsMap = localRefs === null ? null : {
            '': -1
          };

          if (directiveDefs !== null) {
            hasDirectives = true;
            initTNodeFlags(tNode, tView.data.length, directiveDefs.length); // When the same token is provided by several directives on the same node, some rules apply in
            // the viewEngine:
            // - viewProviders have priority over providers
            // - the last directive in NgModule.declarations has priority over the previous one
            // So to match these rules, the order in which providers are added in the arrays is very
            // important.

            for (var i = 0; i < directiveDefs.length; i++) {
              var def = directiveDefs[i];
              if (def.providersResolver) def.providersResolver(def);
            }

            var preOrderHooksFound = false;
            var preOrderCheckHooksFound = false;
            var directiveIdx = allocExpando(tView, lView, directiveDefs.length, null);
            ngDevMode && assertSame(directiveIdx, tNode.directiveStart, 'TNode.directiveStart should point to just allocated space');

            for (var _i17 = 0; _i17 < directiveDefs.length; _i17++) {
              var _def2 = directiveDefs[_i17]; // Merge the attrs in the order of matches. This assumes that the first directive is the
              // component itself, so that the component has the least priority.

              tNode.mergedAttrs = mergeHostAttrs(tNode.mergedAttrs, _def2.hostAttrs);
              configureViewWithDirective(tView, tNode, lView, directiveIdx, _def2);
              saveNameToExportMap(directiveIdx, _def2, exportsMap);
              if (_def2.contentQueries !== null) tNode.flags |= 8
              /* hasContentQuery */
              ;
              if (_def2.hostBindings !== null || _def2.hostAttrs !== null || _def2.hostVars !== 0) tNode.flags |= 128
              /* hasHostBindings */
              ;
              var lifeCycleHooks = _def2.type.prototype; // Only push a node index into the preOrderHooks array if this is the first
              // pre-order hook found on this node.

              if (!preOrderHooksFound && (lifeCycleHooks.ngOnChanges || lifeCycleHooks.ngOnInit || lifeCycleHooks.ngDoCheck)) {
                // We will push the actual hook function into this array later during dir instantiation.
                // We cannot do it now because we must ensure hooks are registered in the same
                // order that directives are created (i.e. injection order).
                (tView.preOrderHooks || (tView.preOrderHooks = [])).push(tNode.index);
                preOrderHooksFound = true;
              }

              if (!preOrderCheckHooksFound && (lifeCycleHooks.ngOnChanges || lifeCycleHooks.ngDoCheck)) {
                (tView.preOrderCheckHooks || (tView.preOrderCheckHooks = [])).push(tNode.index);
                preOrderCheckHooksFound = true;
              }

              directiveIdx++;
            }

            initializeInputAndOutputAliases(tView, tNode);
          }

          if (exportsMap) cacheMatchingLocalNames(tNode, localRefs, exportsMap);
        } // Merge the template attrs last so that they have the highest priority.


        tNode.mergedAttrs = mergeHostAttrs(tNode.mergedAttrs, tNode.attrs);
        return hasDirectives;
      }
      /**
       * Add `hostBindings` to the `TView.hostBindingOpCodes`.
       *
       * @param tView `TView` to which the `hostBindings` should be added.
       * @param tNode `TNode` the element which contains the directive
       * @param lView `LView` current `LView`
       * @param directiveIdx Directive index in view.
       * @param directiveVarsIdx Where will the directive's vars be stored
       * @param def `ComponentDef`/`DirectiveDef`, which contains the `hostVars`/`hostBindings` to add.
       */


      function registerHostBindingOpCodes(tView, tNode, lView, directiveIdx, directiveVarsIdx, def) {
        ngDevMode && assertFirstCreatePass(tView);
        var hostBindings = def.hostBindings;

        if (hostBindings) {
          var hostBindingOpCodes = tView.hostBindingOpCodes;

          if (hostBindingOpCodes === null) {
            hostBindingOpCodes = tView.hostBindingOpCodes = [];
          }

          var elementIndx = ~tNode.index;

          if (lastSelectedElementIdx(hostBindingOpCodes) != elementIndx) {
            // Conditionally add select element so that we are more efficient in execution.
            // NOTE: this is strictly not necessary and it trades code size for runtime perf.
            // (We could just always add it.)
            hostBindingOpCodes.push(elementIndx);
          }

          hostBindingOpCodes.push(directiveIdx, directiveVarsIdx, hostBindings);
        }
      }
      /**
       * Returns the last selected element index in the `HostBindingOpCodes`
       *
       * For perf reasons we don't need to update the selected element index in `HostBindingOpCodes` only
       * if it changes. This method returns the last index (or '0' if not found.)
       *
       * Selected element index are only the ones which are negative.
       */


      function lastSelectedElementIdx(hostBindingOpCodes) {
        var i = hostBindingOpCodes.length;

        while (i > 0) {
          var value = hostBindingOpCodes[--i];

          if (typeof value === 'number' && value < 0) {
            return value;
          }
        }

        return 0;
      }
      /**
       * Instantiate all the directives that were previously resolved on the current node.
       */


      function instantiateAllDirectives(tView, lView, tNode, _native8) {
        var start = tNode.directiveStart;
        var end = tNode.directiveEnd;

        if (!tView.firstCreatePass) {
          getOrCreateNodeInjectorForNode(tNode, lView);
        }

        attachPatchData(_native8, lView);
        var initialInputs = tNode.initialInputs;

        for (var i = start; i < end; i++) {
          var def = tView.data[i];
          var isComponent = isComponentDef(def);

          if (isComponent) {
            ngDevMode && assertTNodeType(tNode, 3
            /* AnyRNode */
            );
            addComponentLogic(lView, tNode, def);
          }

          var directive = getNodeInjectable(lView, tView, i, tNode);
          attachPatchData(directive, lView);

          if (initialInputs !== null) {
            setInputsFromAttrs(lView, i - start, directive, def, tNode, initialInputs);
          }

          if (isComponent) {
            var componentView = getComponentLViewByIndex(tNode.index, lView);
            componentView[CONTEXT] = directive;
          }
        }
      }

      function invokeDirectivesHostBindings(tView, lView, tNode) {
        var start = tNode.directiveStart;
        var end = tNode.directiveEnd;
        var firstCreatePass = tView.firstCreatePass;
        var elementIndex = tNode.index;
        var currentDirectiveIndex = getCurrentDirectiveIndex();

        try {
          setSelectedIndex(elementIndex);

          for (var dirIndex = start; dirIndex < end; dirIndex++) {
            var def = tView.data[dirIndex];
            var directive = lView[dirIndex];
            setCurrentDirectiveIndex(dirIndex);

            if (def.hostBindings !== null || def.hostVars !== 0 || def.hostAttrs !== null) {
              invokeHostBindingsInCreationMode(def, directive);
            }
          }
        } finally {
          setSelectedIndex(-1);
          setCurrentDirectiveIndex(currentDirectiveIndex);
        }
      }
      /**
       * Invoke the host bindings in creation mode.
       *
       * @param def `DirectiveDef` which may contain the `hostBindings` function.
       * @param directive Instance of directive.
       */


      function invokeHostBindingsInCreationMode(def, directive) {
        if (def.hostBindings !== null) {
          def.hostBindings(1
          /* Create */
          , directive);
        }
      }
      /**
       * Matches the current node against all available selectors.
       * If a component is matched (at most one), it is returned in first position in the array.
       */


      function findDirectiveDefMatches(tView, viewData, tNode) {
        ngDevMode && assertFirstCreatePass(tView);
        ngDevMode && assertTNodeType(tNode, 3
        /* AnyRNode */
        | 12
        /* AnyContainer */
        );
        var registry = tView.directiveRegistry;
        var matches = null;

        if (registry) {
          for (var i = 0; i < registry.length; i++) {
            var def = registry[i];

            if (isNodeMatchingSelectorList(tNode, def.selectors,
            /* isProjectionMode */
            false)) {
              matches || (matches = ngDevMode ? new MatchesArray() : []);
              diPublicInInjector(getOrCreateNodeInjectorForNode(tNode, viewData), tView, def.type);

              if (isComponentDef(def)) {
                if (ngDevMode) {
                  assertTNodeType(tNode, 2
                  /* Element */
                  , "\"".concat(tNode.value, "\" tags cannot be used as component hosts. ") + "Please use a different tag to activate the ".concat(stringify(def.type), " component."));
                  if (tNode.flags & 2
                  /* isComponentHost */
                  ) throwMultipleComponentError(tNode);
                }

                markAsComponentHost(tView, tNode); // The component is always stored first with directives after.

                matches.unshift(def);
              } else {
                matches.push(def);
              }
            }
          }
        }

        return matches;
      }
      /**
       * Marks a given TNode as a component's host. This consists of:
       * - setting appropriate TNode flags;
       * - storing index of component's host element so it will be queued for view refresh during CD.
       */


      function markAsComponentHost(tView, hostTNode) {
        ngDevMode && assertFirstCreatePass(tView);
        hostTNode.flags |= 2
        /* isComponentHost */
        ;
        (tView.components || (tView.components = ngDevMode ? new TViewComponents() : [])).push(hostTNode.index);
      }
      /** Caches local names and their matching directive indices for query and template lookups. */


      function cacheMatchingLocalNames(tNode, localRefs, exportsMap) {
        if (localRefs) {
          var localNames = tNode.localNames = ngDevMode ? new TNodeLocalNames() : []; // Local names must be stored in tNode in the same order that localRefs are defined
          // in the template to ensure the data is loaded in the same slots as their refs
          // in the template (for template queries).

          for (var i = 0; i < localRefs.length; i += 2) {
            var index = exportsMap[localRefs[i + 1]];
            if (index == null) throw new RuntimeError("301"
            /* EXPORT_NOT_FOUND */
            , "Export of name '".concat(localRefs[i + 1], "' not found!"));
            localNames.push(localRefs[i], index);
          }
        }
      }
      /**
       * Builds up an export map as directives are created, so local refs can be quickly mapped
       * to their directive instances.
       */


      function saveNameToExportMap(directiveIdx, def, exportsMap) {
        if (exportsMap) {
          if (def.exportAs) {
            for (var i = 0; i < def.exportAs.length; i++) {
              exportsMap[def.exportAs[i]] = directiveIdx;
            }
          }

          if (isComponentDef(def)) exportsMap[''] = directiveIdx;
        }
      }
      /**
       * Initializes the flags on the current node, setting all indices to the initial index,
       * the directive count to 0, and adding the isComponent flag.
       * @param index the initial index
       */


      function initTNodeFlags(tNode, index, numberOfDirectives) {
        ngDevMode && assertNotEqual(numberOfDirectives, tNode.directiveEnd - tNode.directiveStart, 'Reached the max number of directives');
        tNode.flags |= 1
        /* isDirectiveHost */
        ; // When the first directive is created on a node, save the index

        tNode.directiveStart = index;
        tNode.directiveEnd = index + numberOfDirectives;
        tNode.providerIndexes = index;
      }
      /**
       * Setup directive for instantiation.
       *
       * We need to create a `NodeInjectorFactory` which is then inserted in both the `Blueprint` as well
       * as `LView`. `TView` gets the `DirectiveDef`.
       *
       * @param tView `TView`
       * @param tNode `TNode`
       * @param lView `LView`
       * @param directiveIndex Index where the directive will be stored in the Expando.
       * @param def `DirectiveDef`
       */


      function configureViewWithDirective(tView, tNode, lView, directiveIndex, def) {
        ngDevMode && assertGreaterThanOrEqual(directiveIndex, HEADER_OFFSET, 'Must be in Expando section');
        tView.data[directiveIndex] = def;
        var directiveFactory = def.factory || (def.factory = getFactoryDef(def.type, true));
        var nodeInjectorFactory = new NodeInjectorFactory(directiveFactory, isComponentDef(def), null);
        tView.blueprint[directiveIndex] = nodeInjectorFactory;
        lView[directiveIndex] = nodeInjectorFactory;
        registerHostBindingOpCodes(tView, tNode, lView, directiveIndex, allocExpando(tView, lView, def.hostVars, NO_CHANGE), def);
      }

      function addComponentLogic(lView, hostTNode, def) {
        var _native9 = getNativeByTNode(hostTNode, lView);

        var tView = getOrCreateTComponentView(def); // Only component views should be added to the view tree directly. Embedded views are
        // accessed through their containers because they may be removed / re-added later.

        var rendererFactory = lView[RENDERER_FACTORY];
        var componentView = addToViewTree(lView, createLView(lView, tView, null, def.onPush ? 64
        /* Dirty */
        : 16
        /* CheckAlways */
        , _native9, hostTNode, rendererFactory, rendererFactory.createRenderer(_native9, def), null, null)); // Component view will always be created before any injected LContainers,
        // so this is a regular element, wrap it with the component view

        lView[hostTNode.index] = componentView;
      }

      function elementAttributeInternal(tNode, lView, name, value, sanitizer, namespace) {
        if (ngDevMode) {
          assertNotSame(value, NO_CHANGE, 'Incoming value should never be NO_CHANGE.');
          validateAgainstEventAttributes(name);
          assertTNodeType(tNode, 2
          /* Element */
          , "Attempted to set attribute `".concat(name, "` on a container node. ") + "Host bindings are not valid on ng-container or ng-template.");
        }

        var element = getNativeByTNode(tNode, lView);
        setElementAttribute(lView[RENDERER], element, namespace, tNode.value, name, value, sanitizer);
      }

      function setElementAttribute(renderer, element, namespace, tagName, name, value, sanitizer) {
        if (value == null) {
          ngDevMode && ngDevMode.rendererRemoveAttribute++;
          isProceduralRenderer(renderer) ? renderer.removeAttribute(element, name, namespace) : element.removeAttribute(name);
        } else {
          ngDevMode && ngDevMode.rendererSetAttribute++;
          var strValue = sanitizer == null ? renderStringify(value) : sanitizer(value, tagName || '', name);

          if (isProceduralRenderer(renderer)) {
            renderer.setAttribute(element, name, strValue, namespace);
          } else {
            namespace ? element.setAttributeNS(namespace, name, strValue) : element.setAttribute(name, strValue);
          }
        }
      }
      /**
       * Sets initial input properties on directive instances from attribute data
       *
       * @param lView Current LView that is being processed.
       * @param directiveIndex Index of the directive in directives array
       * @param instance Instance of the directive on which to set the initial inputs
       * @param def The directive def that contains the list of inputs
       * @param tNode The static data for this node
       */


      function setInputsFromAttrs(lView, directiveIndex, instance, def, tNode, initialInputData) {
        var initialInputs = initialInputData[directiveIndex];

        if (initialInputs !== null) {
          var setInput = def.setInput;

          for (var i = 0; i < initialInputs.length;) {
            var publicName = initialInputs[i++];
            var privateName = initialInputs[i++];
            var value = initialInputs[i++];

            if (setInput !== null) {
              def.setInput(instance, value, publicName, privateName);
            } else {
              instance[privateName] = value;
            }

            if (ngDevMode) {
              var nativeElement = getNativeByTNode(tNode, lView);
              setNgReflectProperty(lView, nativeElement, tNode.type, privateName, value);
            }
          }
        }
      }
      /**
       * Generates initialInputData for a node and stores it in the template's static storage
       * so subsequent template invocations don't have to recalculate it.
       *
       * initialInputData is an array containing values that need to be set as input properties
       * for directives on this node, but only once on creation. We need this array to support
       * the case where you set an @Input property of a directive using attribute-like syntax.
       * e.g. if you have a `name` @Input, you can set it once like this:
       *
       * <my-component name="Bess"></my-component>
       *
       * @param inputs The list of inputs from the directive def
       * @param attrs The static attrs on this node
       */


      function generateInitialInputs(inputs, attrs) {
        var inputsToStore = null;
        var i = 0;

        while (i < attrs.length) {
          var attrName = attrs[i];

          if (attrName === 0
          /* NamespaceURI */
          ) {
            // We do not allow inputs on namespaced attributes.
            i += 4;
            continue;
          } else if (attrName === 5
          /* ProjectAs */
          ) {
            // Skip over the `ngProjectAs` value.
            i += 2;
            continue;
          } // If we hit any other attribute markers, we're done anyway. None of those are valid inputs.


          if (typeof attrName === 'number') break;

          if (inputs.hasOwnProperty(attrName)) {
            if (inputsToStore === null) inputsToStore = [];
            inputsToStore.push(attrName, inputs[attrName], attrs[i + 1]);
          }

          i += 2;
        }

        return inputsToStore;
      } //////////////////////////
      //// ViewContainer & View
      //////////////////////////
      // Not sure why I need to do `any` here but TS complains later.


      var LContainerArray = (typeof ngDevMode === 'undefined' || ngDevMode) && initNgDevMode() && createNamedArrayType('LContainer');
      /**
       * Creates a LContainer, either from a container instruction, or for a ViewContainerRef.
       *
       * @param hostNative The host element for the LContainer
       * @param hostTNode The host TNode for the LContainer
       * @param currentView The parent view of the LContainer
       * @param native The native comment element
       * @param isForViewContainerRef Optional a flag indicating the ViewContainerRef case
       * @returns LContainer
       */

      function createLContainer(hostNative, currentView, _native10, tNode) {
        ngDevMode && assertLView(currentView);
        ngDevMode && !isProceduralRenderer(currentView[RENDERER]) && assertDomNode(_native10); // https://jsperf.com/array-literal-vs-new-array-really

        var lContainer = new (ngDevMode ? LContainerArray : Array)(hostNative, // host native
        true, // Boolean `true` in this position signifies that this is an `LContainer`
        false, // has transplanted views
        currentView, // parent
        null, // next
        0, // transplanted views to refresh count
        tNode, // t_host
        _native10, // native,
        null, // view refs
        null);
        ngDevMode && assertEqual(lContainer.length, CONTAINER_HEADER_OFFSET, 'Should allocate correct number of slots for LContainer header.');
        ngDevMode && attachLContainerDebug(lContainer);
        return lContainer;
      }
      /**
       * Goes over embedded views (ones created through ViewContainerRef APIs) and refreshes
       * them by executing an associated template function.
       */


      function refreshEmbeddedViews(lView) {
        for (var lContainer = getFirstLContainer(lView); lContainer !== null; lContainer = getNextLContainer(lContainer)) {
          for (var i = CONTAINER_HEADER_OFFSET; i < lContainer.length; i++) {
            var embeddedLView = lContainer[i];
            var embeddedTView = embeddedLView[TVIEW];
            ngDevMode && assertDefined(embeddedTView, 'TView must be allocated');

            if (viewAttachedToChangeDetector(embeddedLView)) {
              refreshView(embeddedTView, embeddedLView, embeddedTView.template, embeddedLView[CONTEXT]);
            }
          }
        }
      }
      /**
       * Mark transplanted views as needing to be refreshed at their insertion points.
       *
       * @param lView The `LView` that may have transplanted views.
       */


      function markTransplantedViewsForRefresh(lView) {
        for (var lContainer = getFirstLContainer(lView); lContainer !== null; lContainer = getNextLContainer(lContainer)) {
          if (!lContainer[HAS_TRANSPLANTED_VIEWS]) continue;
          var movedViews = lContainer[MOVED_VIEWS];
          ngDevMode && assertDefined(movedViews, 'Transplanted View flags set but missing MOVED_VIEWS');

          for (var i = 0; i < movedViews.length; i++) {
            var movedLView = movedViews[i];
            var insertionLContainer = movedLView[PARENT];
            ngDevMode && assertLContainer(insertionLContainer); // We don't want to increment the counter if the moved LView was already marked for
            // refresh.

            if ((movedLView[FLAGS] & 1024
            /* RefreshTransplantedView */
            ) === 0) {
              updateTransplantedViewCount(insertionLContainer, 1);
            } // Note, it is possible that the `movedViews` is tracking views that are transplanted *and*
            // those that aren't (declaration component === insertion component). In the latter case,
            // it's fine to add the flag, as we will clear it immediately in
            // `refreshEmbeddedViews` for the view currently being refreshed.


            movedLView[FLAGS] |= 1024
            /* RefreshTransplantedView */
            ;
          }
        }
      } /////////////

      /**
       * Refreshes components by entering the component view and processing its bindings, queries, etc.
       *
       * @param componentHostIdx  Element index in LView[] (adjusted for HEADER_OFFSET)
       */


      function refreshComponent(hostLView, componentHostIdx) {
        ngDevMode && assertEqual(isCreationMode(hostLView), false, 'Should be run in update mode');
        var componentView = getComponentLViewByIndex(componentHostIdx, hostLView); // Only attached components that are CheckAlways or OnPush and dirty should be refreshed

        if (viewAttachedToChangeDetector(componentView)) {
          var tView = componentView[TVIEW];

          if (componentView[FLAGS] & (16
          /* CheckAlways */
          | 64
          /* Dirty */
          )) {
            refreshView(tView, componentView, tView.template, componentView[CONTEXT]);
          } else if (componentView[TRANSPLANTED_VIEWS_TO_REFRESH] > 0) {
            // Only attached components that are CheckAlways or OnPush and dirty should be refreshed
            refreshContainsDirtyView(componentView);
          }
        }
      }
      /**
       * Refreshes all transplanted views marked with `LViewFlags.RefreshTransplantedView` that are
       * children or descendants of the given lView.
       *
       * @param lView The lView which contains descendant transplanted views that need to be refreshed.
       */


      function refreshContainsDirtyView(lView) {
        for (var lContainer = getFirstLContainer(lView); lContainer !== null; lContainer = getNextLContainer(lContainer)) {
          for (var i = CONTAINER_HEADER_OFFSET; i < lContainer.length; i++) {
            var embeddedLView = lContainer[i];

            if (embeddedLView[FLAGS] & 1024
            /* RefreshTransplantedView */
            ) {
              var embeddedTView = embeddedLView[TVIEW];
              ngDevMode && assertDefined(embeddedTView, 'TView must be allocated');
              refreshView(embeddedTView, embeddedLView, embeddedTView.template, embeddedLView[CONTEXT]);
            } else if (embeddedLView[TRANSPLANTED_VIEWS_TO_REFRESH] > 0) {
              refreshContainsDirtyView(embeddedLView);
            }
          }
        }

        var tView = lView[TVIEW]; // Refresh child component views.

        var components = tView.components;

        if (components !== null) {
          for (var _i18 = 0; _i18 < components.length; _i18++) {
            var componentView = getComponentLViewByIndex(components[_i18], lView); // Only attached components that are CheckAlways or OnPush and dirty should be refreshed

            if (viewAttachedToChangeDetector(componentView) && componentView[TRANSPLANTED_VIEWS_TO_REFRESH] > 0) {
              refreshContainsDirtyView(componentView);
            }
          }
        }
      }

      function renderComponent(hostLView, componentHostIdx) {
        ngDevMode && assertEqual(isCreationMode(hostLView), true, 'Should be run in creation mode');
        var componentView = getComponentLViewByIndex(componentHostIdx, hostLView);
        var componentTView = componentView[TVIEW];
        syncViewWithBlueprint(componentTView, componentView);
        renderView(componentTView, componentView, componentView[CONTEXT]);
      }
      /**
       * Syncs an LView instance with its blueprint if they have gotten out of sync.
       *
       * Typically, blueprints and their view instances should always be in sync, so the loop here
       * will be skipped. However, consider this case of two components side-by-side:
       *
       * App template:
       * ```
       * <comp></comp>
       * <comp></comp>
       * ```
       *
       * The following will happen:
       * 1. App template begins processing.
       * 2. First <comp> is matched as a component and its LView is created.
       * 3. Second <comp> is matched as a component and its LView is created.
       * 4. App template completes processing, so it's time to check child templates.
       * 5. First <comp> template is checked. It has a directive, so its def is pushed to blueprint.
       * 6. Second <comp> template is checked. Its blueprint has been updated by the first
       * <comp> template, but its LView was created before this update, so it is out of sync.
       *
       * Note that embedded views inside ngFor loops will never be out of sync because these views
       * are processed as soon as they are created.
       *
       * @param tView The `TView` that contains the blueprint for syncing
       * @param lView The view to sync
       */


      function syncViewWithBlueprint(tView, lView) {
        for (var i = lView.length; i < tView.blueprint.length; i++) {
          lView.push(tView.blueprint[i]);
        }
      }
      /**
       * Adds LView or LContainer to the end of the current view tree.
       *
       * This structure will be used to traverse through nested views to remove listeners
       * and call onDestroy callbacks.
       *
       * @param lView The view where LView or LContainer should be added
       * @param adjustedHostIndex Index of the view's host node in LView[], adjusted for header
       * @param lViewOrLContainer The LView or LContainer to add to the view tree
       * @returns The state passed in
       */


      function addToViewTree(lView, lViewOrLContainer) {
        // TODO(benlesh/misko): This implementation is incorrect, because it always adds the LContainer
        // to the end of the queue, which means if the developer retrieves the LContainers from RNodes out
        // of order, the change detection will run out of order, as the act of retrieving the the
        // LContainer from the RNode is what adds it to the queue.
        if (lView[CHILD_HEAD]) {
          lView[CHILD_TAIL][NEXT] = lViewOrLContainer;
        } else {
          lView[CHILD_HEAD] = lViewOrLContainer;
        }

        lView[CHILD_TAIL] = lViewOrLContainer;
        return lViewOrLContainer;
      } ///////////////////////////////
      //// Change detection
      ///////////////////////////////

      /**
       * Marks current view and all ancestors dirty.
       *
       * Returns the root view because it is found as a byproduct of marking the view tree
       * dirty, and can be used by methods that consume markViewDirty() to easily schedule
       * change detection. Otherwise, such methods would need to traverse up the view tree
       * an additional time to get the root view and schedule a tick on it.
       *
       * @param lView The starting LView to mark dirty
       * @returns the root LView
       */


      function markViewDirty(lView) {
        while (lView) {
          lView[FLAGS] |= 64
          /* Dirty */
          ;
          var parent = getLViewParent(lView); // Stop traversing up as soon as you find a root view that wasn't attached to any container

          if (isRootView(lView) && !parent) {
            return lView;
          } // continue otherwise


          lView = parent;
        }

        return null;
      }
      /**
       * Used to schedule change detection on the whole application.
       *
       * Unlike `tick`, `scheduleTick` coalesces multiple calls into one change detection run.
       * It is usually called indirectly by calling `markDirty` when the view needs to be
       * re-rendered.
       *
       * Typically `scheduleTick` uses `requestAnimationFrame` to coalesce multiple
       * `scheduleTick` requests. The scheduling function can be overridden in
       * `renderComponent`'s `scheduler` option.
       */


      function scheduleTick(rootContext, flags) {
        var nothingScheduled = rootContext.flags === 0
        /* Empty */
        ;

        if (nothingScheduled && rootContext.clean == _CLEAN_PROMISE) {
          // https://github.com/angular/angular/issues/39296
          // should only attach the flags when really scheduling a tick
          rootContext.flags |= flags;
          var res;
          rootContext.clean = new Promise(function (r) {
            return res = r;
          });
          rootContext.scheduler(function () {
            if (rootContext.flags & 1
            /* DetectChanges */
            ) {
              rootContext.flags &= ~1
              /* DetectChanges */
              ;
              tickRootContext(rootContext);
            }

            if (rootContext.flags & 2
            /* FlushPlayers */
            ) {
              rootContext.flags &= ~2
              /* FlushPlayers */
              ;
              var playerHandler = rootContext.playerHandler;

              if (playerHandler) {
                playerHandler.flushPlayers();
              }
            }

            rootContext.clean = _CLEAN_PROMISE;
            res(null);
          });
        }
      }

      function tickRootContext(rootContext) {
        for (var i = 0; i < rootContext.components.length; i++) {
          var rootComponent = rootContext.components[i];
          var lView = readPatchedLView(rootComponent);
          var tView = lView[TVIEW];
          renderComponentOrTemplate(tView, lView, tView.template, rootComponent);
        }
      }

      function detectChangesInternal(tView, lView, context) {
        var rendererFactory = lView[RENDERER_FACTORY];
        if (rendererFactory.begin) rendererFactory.begin();

        try {
          refreshView(tView, lView, tView.template, context);
        } catch (error) {
          handleError(lView, error);
          throw error;
        } finally {
          if (rendererFactory.end) rendererFactory.end();
        }
      }
      /**
       * Synchronously perform change detection on a root view and its components.
       *
       * @param lView The view which the change detection should be performed on.
       */


      function detectChangesInRootView(lView) {
        tickRootContext(lView[CONTEXT]);
      }

      function checkNoChangesInternal(tView, view, context) {
        setIsInCheckNoChangesMode(true);

        try {
          detectChangesInternal(tView, view, context);
        } finally {
          setIsInCheckNoChangesMode(false);
        }
      }
      /**
       * Checks the change detector on a root view and its components, and throws if any changes are
       * detected.
       *
       * This is used in development mode to verify that running change detection doesn't
       * introduce other changes.
       *
       * @param lView The view which the change detection should be checked on.
       */


      function checkNoChangesInRootView(lView) {
        setIsInCheckNoChangesMode(true);

        try {
          detectChangesInRootView(lView);
        } finally {
          setIsInCheckNoChangesMode(false);
        }
      }

      function executeViewQueryFn(flags, viewQueryFn, component) {
        ngDevMode && assertDefined(viewQueryFn, 'View queries function to execute must be defined.');
        setCurrentQueryIndex(0);
        viewQueryFn(flags, component);
      } ///////////////////////////////
      //// Bindings & interpolations
      ///////////////////////////////

      /**
       * Stores meta-data for a property binding to be used by TestBed's `DebugElement.properties`.
       *
       * In order to support TestBed's `DebugElement.properties` we need to save, for each binding:
       * - a bound property name;
       * - a static parts of interpolated strings;
       *
       * A given property metadata is saved at the binding's index in the `TView.data` (in other words, a
       * property binding metadata will be stored in `TView.data` at the same index as a bound value in
       * `LView`). Metadata are represented as `INTERPOLATION_DELIMITER`-delimited string with the
       * following format:
       * - `propertyName` for bound properties;
       * - `propertyName�prefix�interpolation_static_part1�..interpolation_static_partN�suffix` for
       * interpolated properties.
       *
       * @param tData `TData` where meta-data will be saved;
       * @param tNode `TNode` that is a target of the binding;
       * @param propertyName bound property name;
       * @param bindingIndex binding index in `LView`
       * @param interpolationParts static interpolation parts (for property interpolations)
       */


      function storePropertyBindingMetadata(tData, tNode, propertyName, bindingIndex) {
        // Binding meta-data are stored only the first time a given property instruction is processed.
        // Since we don't have a concept of the "first update pass" we need to check for presence of the
        // binding meta-data to decide if one should be stored (or if was stored already).
        if (tData[bindingIndex] === null) {
          if (tNode.inputs == null || !tNode.inputs[propertyName]) {
            var propBindingIdxs = tNode.propertyBindings || (tNode.propertyBindings = []);
            propBindingIdxs.push(bindingIndex);
            var bindingMetadata = propertyName;

            for (var _len26 = arguments.length, interpolationParts = new Array(_len26 > 4 ? _len26 - 4 : 0), _key27 = 4; _key27 < _len26; _key27++) {
              interpolationParts[_key27 - 4] = arguments[_key27];
            }

            if (interpolationParts.length > 0) {
              bindingMetadata += INTERPOLATION_DELIMITER + interpolationParts.join(INTERPOLATION_DELIMITER);
            }

            tData[bindingIndex] = bindingMetadata;
          }
        }
      }

      var CLEAN_PROMISE = _CLEAN_PROMISE;

      function getLCleanup(view) {
        // top level variables should not be exported for performance reasons (PERF_NOTES.md)
        return view[CLEANUP] || (view[CLEANUP] = ngDevMode ? new LCleanup() : []);
      }

      function getTViewCleanup(tView) {
        return tView.cleanup || (tView.cleanup = ngDevMode ? new TCleanup() : []);
      }
      /**
       * There are cases where the sub component's renderer needs to be included
       * instead of the current renderer (see the componentSyntheticHost* instructions).
       */


      function loadComponentRenderer(currentDef, tNode, lView) {
        // TODO(FW-2043): the `currentDef` is null when host bindings are invoked while creating root
        // component (see packages/core/src/render3/component.ts). This is not consistent with the process
        // of creating inner components, when current directive index is available in the state. In order
        // to avoid relying on current def being `null` (thus special-casing root component creation), the
        // process of creating root component should be unified with the process of creating inner
        // components.
        if (currentDef === null || isComponentDef(currentDef)) {
          lView = unwrapLView(lView[tNode.index]);
        }

        return lView[RENDERER];
      }
      /** Handles an error thrown in an LView. */


      function handleError(lView, error) {
        var injector = lView[INJECTOR$1];
        var errorHandler = injector ? injector.get(ErrorHandler, null) : null;
        errorHandler && errorHandler.handleError(error);
      }
      /**
       * Set the inputs of directives at the current node to corresponding value.
       *
       * @param tView The current TView
       * @param lView the `LView` which contains the directives.
       * @param inputs mapping between the public "input" name and privately-known,
       *        possibly minified, property names to write to.
       * @param value Value to set.
       */


      function setInputsForProperty(tView, lView, inputs, publicName, value) {
        for (var i = 0; i < inputs.length;) {
          var index = inputs[i++];
          var privateName = inputs[i++];
          var instance = lView[index];
          ngDevMode && assertIndexInRange(lView, index);
          var def = tView.data[index];

          if (def.setInput !== null) {
            def.setInput(instance, value, publicName, privateName);
          } else {
            instance[privateName] = value;
          }
        }
      }
      /**
       * Updates a text binding at a given index in a given LView.
       */


      function textBindingInternal(lView, index, value) {
        ngDevMode && assertString(value, 'Value should be a string');
        ngDevMode && assertNotSame(value, NO_CHANGE, 'value should not be NO_CHANGE');
        ngDevMode && assertIndexInRange(lView, index);
        var element = getNativeByIndex(index, lView);
        ngDevMode && assertDefined(element, 'native element should exist');
        updateTextNode(lView[RENDERER], element, value);
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var ViewRef = /*#__PURE__*/function () {
        function ViewRef(
        /**
         * This represents `LView` associated with the component when ViewRef is a ChangeDetectorRef.
         *
         * When ViewRef is created for a dynamic component, this also represents the `LView` for the
         * component.
         *
         * For a "regular" ViewRef created for an embedded view, this is the `LView` for the embedded
         * view.
         *
         * @internal
         */
        _lView,
        /**
         * This represents the `LView` associated with the point where `ChangeDetectorRef` was
         * requested.
         *
         * This may be different from `_lView` if the `_cdRefInjectingView` is an embedded view.
         */
        _cdRefInjectingView) {
          _classCallCheck2(this, ViewRef);

          this._lView = _lView;
          this._cdRefInjectingView = _cdRefInjectingView;
          this._appRef = null;
          this._viewContainerRef = null;
        }

        _createClass2(ViewRef, [{
          key: "rootNodes",
          get: function get() {
            var lView = this._lView;
            var tView = lView[TVIEW];
            return collectNativeNodes(tView, lView, tView.firstChild, []);
          }
        }, {
          key: "context",
          get: function get() {
            return this._lView[CONTEXT];
          }
        }, {
          key: "destroyed",
          get: function get() {
            return (this._lView[FLAGS] & 256
            /* Destroyed */
            ) === 256
            /* Destroyed */
            ;
          }
        }, {
          key: "destroy",
          value: function destroy() {
            if (this._appRef) {
              this._appRef.detachView(this);
            } else if (this._viewContainerRef) {
              var index = this._viewContainerRef.indexOf(this);

              if (index > -1) {
                this._viewContainerRef.detach(index);
              }

              this._viewContainerRef = null;
            }

            destroyLView(this._lView[TVIEW], this._lView);
          }
        }, {
          key: "onDestroy",
          value: function onDestroy(callback) {
            storeCleanupWithContext(this._lView[TVIEW], this._lView, null, callback);
          }
          /**
           * Marks a view and all of its ancestors dirty.
           *
           * It also triggers change detection by calling `scheduleTick` internally, which coalesces
           * multiple `markForCheck` calls to into one change detection run.
           *
           * This can be used to ensure an {@link ChangeDetectionStrategy#OnPush OnPush} component is
           * checked when it needs to be re-rendered but the two normal triggers haven't marked it
           * dirty (i.e. inputs haven't changed and events haven't fired in the view).
           *
           * <!-- TODO: Add a link to a chapter on OnPush components -->
           *
           * @usageNotes
           * ### Example
           *
           * ```typescript
           * @Component({
           *   selector: 'my-app',
           *   template: `Number of ticks: {{numberOfTicks}}`
           *   changeDetection: ChangeDetectionStrategy.OnPush,
           * })
           * class AppComponent {
           *   numberOfTicks = 0;
           *
           *   constructor(private ref: ChangeDetectorRef) {
           *     setInterval(() => {
           *       this.numberOfTicks++;
           *       // the following is required, otherwise the view will not be updated
           *       this.ref.markForCheck();
           *     }, 1000);
           *   }
           * }
           * ```
           */

        }, {
          key: "markForCheck",
          value: function markForCheck() {
            markViewDirty(this._cdRefInjectingView || this._lView);
          }
          /**
           * Detaches the view from the change detection tree.
           *
           * Detached views will not be checked during change detection runs until they are
           * re-attached, even if they are dirty. `detach` can be used in combination with
           * {@link ChangeDetectorRef#detectChanges detectChanges} to implement local change
           * detection checks.
           *
           * <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->
           * <!-- TODO: Add a live demo once ref.detectChanges is merged into master -->
           *
           * @usageNotes
           * ### Example
           *
           * The following example defines a component with a large list of readonly data.
           * Imagine the data changes constantly, many times per second. For performance reasons,
           * we want to check and update the list every five seconds. We can do that by detaching
           * the component's change detector and doing a local check every five seconds.
           *
           * ```typescript
           * class DataProvider {
           *   // in a real application the returned data will be different every time
           *   get data() {
           *     return [1,2,3,4,5];
           *   }
           * }
           *
           * @Component({
           *   selector: 'giant-list',
           *   template: `
           *     <li *ngFor="let d of dataProvider.data">Data {{d}}</li>
           *   `,
           * })
           * class GiantList {
           *   constructor(private ref: ChangeDetectorRef, private dataProvider: DataProvider) {
           *     ref.detach();
           *     setInterval(() => {
           *       this.ref.detectChanges();
           *     }, 5000);
           *   }
           * }
           *
           * @Component({
           *   selector: 'app',
           *   providers: [DataProvider],
           *   template: `
           *     <giant-list><giant-list>
           *   `,
           * })
           * class App {
           * }
           * ```
           */

        }, {
          key: "detach",
          value: function detach() {
            this._lView[FLAGS] &= ~128
            /* Attached */
            ;
          }
          /**
           * Re-attaches a view to the change detection tree.
           *
           * This can be used to re-attach views that were previously detached from the tree
           * using {@link ChangeDetectorRef#detach detach}. Views are attached to the tree by default.
           *
           * <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->
           *
           * @usageNotes
           * ### Example
           *
           * The following example creates a component displaying `live` data. The component will detach
           * its change detector from the main change detector tree when the component's live property
           * is set to false.
           *
           * ```typescript
           * class DataProvider {
           *   data = 1;
           *
           *   constructor() {
           *     setInterval(() => {
           *       this.data = this.data * 2;
           *     }, 500);
           *   }
           * }
           *
           * @Component({
           *   selector: 'live-data',
           *   inputs: ['live'],
           *   template: 'Data: {{dataProvider.data}}'
           * })
           * class LiveData {
           *   constructor(private ref: ChangeDetectorRef, private dataProvider: DataProvider) {}
           *
           *   set live(value) {
           *     if (value) {
           *       this.ref.reattach();
           *     } else {
           *       this.ref.detach();
           *     }
           *   }
           * }
           *
           * @Component({
           *   selector: 'my-app',
           *   providers: [DataProvider],
           *   template: `
           *     Live Update: <input type="checkbox" [(ngModel)]="live">
           *     <live-data [live]="live"><live-data>
           *   `,
           * })
           * class AppComponent {
           *   live = true;
           * }
           * ```
           */

        }, {
          key: "reattach",
          value: function reattach() {
            this._lView[FLAGS] |= 128
            /* Attached */
            ;
          }
          /**
           * Checks the view and its children.
           *
           * This can also be used in combination with {@link ChangeDetectorRef#detach detach} to implement
           * local change detection checks.
           *
           * <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->
           * <!-- TODO: Add a live demo once ref.detectChanges is merged into master -->
           *
           * @usageNotes
           * ### Example
           *
           * The following example defines a component with a large list of readonly data.
           * Imagine, the data changes constantly, many times per second. For performance reasons,
           * we want to check and update the list every five seconds.
           *
           * We can do that by detaching the component's change detector and doing a local change detection
           * check every five seconds.
           *
           * See {@link ChangeDetectorRef#detach detach} for more information.
           */

        }, {
          key: "detectChanges",
          value: function detectChanges() {
            detectChangesInternal(this._lView[TVIEW], this._lView, this.context);
          }
          /**
           * Checks the change detector and its children, and throws if any changes are detected.
           *
           * This is used in development mode to verify that running change detection doesn't
           * introduce other changes.
           */

        }, {
          key: "checkNoChanges",
          value: function checkNoChanges() {
            checkNoChangesInternal(this._lView[TVIEW], this._lView, this.context);
          }
        }, {
          key: "attachToViewContainerRef",
          value: function attachToViewContainerRef(vcRef) {
            if (this._appRef) {
              throw new Error('This view is already attached directly to the ApplicationRef!');
            }

            this._viewContainerRef = vcRef;
          }
        }, {
          key: "detachFromAppRef",
          value: function detachFromAppRef() {
            this._appRef = null;
            renderDetachView(this._lView[TVIEW], this._lView);
          }
        }, {
          key: "attachToAppRef",
          value: function attachToAppRef(appRef) {
            if (this._viewContainerRef) {
              throw new Error('This view is already attached to a ViewContainer!');
            }

            this._appRef = appRef;
          }
        }]);

        return ViewRef;
      }();
      /** @internal */


      var RootViewRef = /*#__PURE__*/function (_ViewRef) {
        _inherits2(RootViewRef, _ViewRef);

        var _super152 = _createSuper2(RootViewRef);

        function RootViewRef(_view) {
          var _this402;

          _classCallCheck2(this, RootViewRef);

          _this402 = _super152.call(this, _view);
          _this402._view = _view;
          return _this402;
        }

        _createClass2(RootViewRef, [{
          key: "detectChanges",
          value: function detectChanges() {
            detectChangesInRootView(this._view);
          }
        }, {
          key: "checkNoChanges",
          value: function checkNoChanges() {
            checkNoChangesInRootView(this._view);
          }
        }, {
          key: "context",
          get: function get() {
            return null;
          }
        }]);

        return RootViewRef;
      }(ViewRef);

      function collectNativeNodes(tView, lView, tNode, result) {
        var isProjection = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;

        while (tNode !== null) {
          ngDevMode && assertTNodeType(tNode, 3
          /* AnyRNode */
          | 12
          /* AnyContainer */
          | 16
          /* Projection */
          | 32
          /* Icu */
          );
          var lNode = lView[tNode.index];

          if (lNode !== null) {
            result.push(unwrapRNode(lNode));
          } // A given lNode can represent either a native node or a LContainer (when it is a host of a
          // ViewContainerRef). When we find a LContainer we need to descend into it to collect root nodes
          // from the views in this container.


          if (isLContainer(lNode)) {
            for (var i = CONTAINER_HEADER_OFFSET; i < lNode.length; i++) {
              var lViewInAContainer = lNode[i];
              var lViewFirstChildTNode = lViewInAContainer[TVIEW].firstChild;

              if (lViewFirstChildTNode !== null) {
                collectNativeNodes(lViewInAContainer[TVIEW], lViewInAContainer, lViewFirstChildTNode, result);
              }
            }
          }

          var tNodeType = tNode.type;

          if (tNodeType & 8
          /* ElementContainer */
          ) {
            collectNativeNodes(tView, lView, tNode.child, result);
          } else if (tNodeType & 32
          /* Icu */
          ) {
            var nextRNode = icuContainerIterate(tNode, lView);
            var rNode = void 0;

            while (rNode = nextRNode()) {
              result.push(rNode);
            }
          } else if (tNodeType & 16
          /* Projection */
          ) {
            var componentView = lView[DECLARATION_COMPONENT_VIEW];
            var componentHost = componentView[T_HOST];
            var slotIdx = tNode.projection;
            ngDevMode && assertDefined(componentHost.projection, 'Components with projection nodes (<ng-content>) must have projection slots defined.');
            var nodesInSlot = componentHost.projection[slotIdx];

            if (Array.isArray(nodesInSlot)) {
              result.push.apply(result, _toConsumableArray(nodesInSlot));
            } else {
              var parentView = getLViewParent(componentView);
              ngDevMode && assertDefined(parentView, 'Component views should always have a parent view (component\'s host view)');
              collectNativeNodes(parentView[TVIEW], parentView, nodesInSlot, result, true);
            }
          }

          tNode = isProjection ? tNode.projectionNext : tNode.next;
        }

        return result;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Creates an ElementRef from the most recent node.
       *
       * @returns The ElementRef instance to use
       */


      function injectElementRef(ElementRefToken) {
        return createElementRef(ElementRefToken, getCurrentTNode(), getLView());
      }

      var R3ElementRef;
      /**
       * Creates an ElementRef given a node.
       *
       * @param ElementRefToken The ElementRef type
       * @param tNode The node for which you'd like an ElementRef
       * @param view The view to which the node belongs
       * @returns The ElementRef instance to use
       */

      function createElementRef(ElementRefToken, tNode, view) {
        if (!R3ElementRef) {
          R3ElementRef = /*#__PURE__*/function (_ElementRefToken) {
            _inherits2(ElementRef, _ElementRefToken);

            var _super153 = _createSuper2(ElementRef);

            function ElementRef() {
              _classCallCheck2(this, ElementRef);

              return _super153.apply(this, arguments);
            }

            return ElementRef;
          }(ElementRefToken);
        }

        return new R3ElementRef(getNativeByTNode(tNode, view));
      }

      var R3TemplateRef;
      /**
       * Creates a TemplateRef given a node.
       *
       * @returns The TemplateRef instance to use
       */

      function injectTemplateRef(TemplateRefToken, ElementRefToken) {
        return createTemplateRef(TemplateRefToken, ElementRefToken, getCurrentTNode(), getLView());
      }
      /**
       * Creates a TemplateRef and stores it on the injector.
       *
       * @param TemplateRefToken The TemplateRef type
       * @param ElementRefToken The ElementRef type
       * @param hostTNode The node on which a TemplateRef is requested
       * @param hostView The view to which the node belongs
       * @returns The TemplateRef instance or null if we can't create a TemplateRef on a given node type
       */


      function createTemplateRef(TemplateRefToken, ElementRefToken, hostTNode, hostView) {
        if (!R3TemplateRef) {
          R3TemplateRef = /*#__PURE__*/function (_TemplateRefToken) {
            _inherits2(TemplateRef, _TemplateRefToken);

            var _super154 = _createSuper2(TemplateRef);

            function TemplateRef(_declarationView, _declarationTContainer, elementRef) {
              var _this403;

              _classCallCheck2(this, TemplateRef);

              _this403 = _super154.call(this);
              _this403._declarationView = _declarationView;
              _this403._declarationTContainer = _declarationTContainer;
              _this403.elementRef = elementRef;
              return _this403;
            }

            _createClass2(TemplateRef, [{
              key: "createEmbeddedView",
              value: function createEmbeddedView(context) {
                var embeddedTView = this._declarationTContainer.tViews;
                var embeddedLView = createLView(this._declarationView, embeddedTView, context, 16
                /* CheckAlways */
                , null, embeddedTView.declTNode, null, null, null, null);
                var declarationLContainer = this._declarationView[this._declarationTContainer.index];
                ngDevMode && assertLContainer(declarationLContainer);
                embeddedLView[DECLARATION_LCONTAINER] = declarationLContainer;
                var declarationViewLQueries = this._declarationView[QUERIES];

                if (declarationViewLQueries !== null) {
                  embeddedLView[QUERIES] = declarationViewLQueries.createEmbeddedView(embeddedTView);
                }

                renderView(embeddedTView, embeddedLView, context);
                return new ViewRef(embeddedLView);
              }
            }]);

            return TemplateRef;
          }(TemplateRefToken);
        }

        if (hostTNode.type & 4
        /* Container */
        ) {
          ngDevMode && assertDefined(hostTNode.tViews, 'TView must be allocated');
          return new R3TemplateRef(hostView, hostTNode, createElementRef(ElementRefToken, hostTNode, hostView));
        } else {
          return null;
        }
      }

      var R3ViewContainerRef;
      /**
       * Creates a ViewContainerRef and stores it on the injector. Or, if the ViewContainerRef
       * already exists, retrieves the existing ViewContainerRef.
       *
       * @returns The ViewContainerRef instance to use
       */

      function injectViewContainerRef(ViewContainerRefToken, ElementRefToken) {
        var previousTNode = getCurrentTNode();
        return createContainerRef(ViewContainerRefToken, ElementRefToken, previousTNode, getLView());
      }
      /**
       * Creates a ViewContainerRef and stores it on the injector.
       *
       * @param ViewContainerRefToken The ViewContainerRef type
       * @param ElementRefToken The ElementRef type
       * @param hostTNode The node that is requesting a ViewContainerRef
       * @param hostView The view to which the node belongs
       * @returns The ViewContainerRef instance to use
       */


      function createContainerRef(ViewContainerRefToken, ElementRefToken, hostTNode, hostView) {
        if (!R3ViewContainerRef) {
          R3ViewContainerRef = /*#__PURE__*/function (_ViewContainerRefToke) {
            _inherits2(ViewContainerRef, _ViewContainerRefToke);

            var _super155 = _createSuper2(ViewContainerRef);

            function ViewContainerRef(_lContainer, _hostTNode, _hostView) {
              var _this404;

              _classCallCheck2(this, ViewContainerRef);

              _this404 = _super155.call(this);
              _this404._lContainer = _lContainer;
              _this404._hostTNode = _hostTNode;
              _this404._hostView = _hostView;
              return _this404;
            }

            _createClass2(ViewContainerRef, [{
              key: "element",
              get: function get() {
                return createElementRef(ElementRefToken, this._hostTNode, this._hostView);
              }
            }, {
              key: "injector",
              get: function get() {
                return new NodeInjector(this._hostTNode, this._hostView);
              }
              /** @deprecated No replacement */

            }, {
              key: "parentInjector",
              get: function get() {
                var parentLocation = getParentInjectorLocation(this._hostTNode, this._hostView);

                if (hasParentInjector(parentLocation)) {
                  var parentView = getParentInjectorView(parentLocation, this._hostView);
                  var injectorIndex = getParentInjectorIndex(parentLocation);
                  ngDevMode && assertNodeInjector(parentView, injectorIndex);
                  var parentTNode = parentView[TVIEW].data[injectorIndex + 8
                  /* TNODE */
                  ];
                  return new NodeInjector(parentTNode, parentView);
                } else {
                  return new NodeInjector(null, this._hostView);
                }
              }
            }, {
              key: "clear",
              value: function clear() {
                while (this.length > 0) {
                  this.remove(this.length - 1);
                }
              }
            }, {
              key: "get",
              value: function get(index) {
                return this._lContainer[VIEW_REFS] !== null && this._lContainer[VIEW_REFS][index] || null;
              }
            }, {
              key: "length",
              get: function get() {
                return this._lContainer.length - CONTAINER_HEADER_OFFSET;
              }
            }, {
              key: "createEmbeddedView",
              value: function createEmbeddedView(templateRef, context, index) {
                var viewRef = templateRef.createEmbeddedView(context || {});
                this.insert(viewRef, index);
                return viewRef;
              }
            }, {
              key: "createComponent",
              value: function createComponent(componentFactory, index, injector, projectableNodes, ngModuleRef) {
                var contextInjector = injector || this.parentInjector;

                if (!ngModuleRef && componentFactory.ngModule == null && contextInjector) {
                  // DO NOT REFACTOR. The code here used to have a `value || undefined` expression
                  // which seems to cause internal google apps to fail. This is documented in the
                  // following internal bug issue: go/b/142967802
                  var result = contextInjector.get(NgModuleRef, null);

                  if (result) {
                    ngModuleRef = result;
                  }
                }

                var componentRef = componentFactory.create(contextInjector, projectableNodes, undefined, ngModuleRef);
                this.insert(componentRef.hostView, index);
                return componentRef;
              }
            }, {
              key: "insert",
              value: function insert(viewRef, index) {
                var lView = viewRef._lView;
                var tView = lView[TVIEW];

                if (viewRef.destroyed) {
                  throw new Error('Cannot insert a destroyed View in a ViewContainer!');
                }

                this.allocateContainerIfNeeded();

                if (viewAttachedToContainer(lView)) {
                  // If view is already attached, detach it first so we clean up references appropriately.
                  var prevIdx = this.indexOf(viewRef); // A view might be attached either to this or a different container. The `prevIdx` for
                  // those cases will be:
                  // equal to -1 for views attached to this ViewContainerRef
                  // >= 0 for views attached to a different ViewContainerRef

                  if (prevIdx !== -1) {
                    this.detach(prevIdx);
                  } else {
                    var prevLContainer = lView[PARENT];
                    ngDevMode && assertEqual(isLContainer(prevLContainer), true, 'An attached view should have its PARENT point to a container.'); // We need to re-create a R3ViewContainerRef instance since those are not stored on
                    // LView (nor anywhere else).

                    var prevVCRef = new R3ViewContainerRef(prevLContainer, prevLContainer[T_HOST], prevLContainer[PARENT]);
                    prevVCRef.detach(prevVCRef.indexOf(viewRef));
                  }
                } // Logical operation of adding `LView` to `LContainer`


                var adjustedIdx = this._adjustIndex(index);

                var lContainer = this._lContainer;
                insertView(tView, lView, lContainer, adjustedIdx); // Physical operation of adding the DOM nodes.

                var beforeNode = getBeforeNodeForView(adjustedIdx, lContainer);
                var renderer = lView[RENDERER];
                var parentRNode = nativeParentNode(renderer, lContainer[NATIVE]);

                if (parentRNode !== null) {
                  addViewToContainer(tView, lContainer[T_HOST], renderer, lView, parentRNode, beforeNode);
                }

                viewRef.attachToViewContainerRef(this);
                addToArray(lContainer[VIEW_REFS], adjustedIdx, viewRef);
                return viewRef;
              }
            }, {
              key: "move",
              value: function move(viewRef, newIndex) {
                if (viewRef.destroyed) {
                  throw new Error('Cannot move a destroyed View in a ViewContainer!');
                }

                return this.insert(viewRef, newIndex);
              }
            }, {
              key: "indexOf",
              value: function indexOf(viewRef) {
                var viewRefsArr = this._lContainer[VIEW_REFS];
                return viewRefsArr !== null ? viewRefsArr.indexOf(viewRef) : -1;
              }
            }, {
              key: "remove",
              value: function remove(index) {
                this.allocateContainerIfNeeded();

                var adjustedIdx = this._adjustIndex(index, -1);

                var detachedView = detachView(this._lContainer, adjustedIdx);

                if (detachedView) {
                  // Before destroying the view, remove it from the container's array of `ViewRef`s.
                  // This ensures the view container length is updated before calling
                  // `destroyLView`, which could recursively call view container methods that
                  // rely on an accurate container length.
                  // (e.g. a method on this view container being called by a child directive's OnDestroy
                  // lifecycle hook)
                  removeFromArray(this._lContainer[VIEW_REFS], adjustedIdx);
                  destroyLView(detachedView[TVIEW], detachedView);
                }
              }
            }, {
              key: "detach",
              value: function detach(index) {
                this.allocateContainerIfNeeded();

                var adjustedIdx = this._adjustIndex(index, -1);

                var view = detachView(this._lContainer, adjustedIdx);
                var wasDetached = view && removeFromArray(this._lContainer[VIEW_REFS], adjustedIdx) != null;
                return wasDetached ? new ViewRef(view) : null;
              }
            }, {
              key: "_adjustIndex",
              value: function _adjustIndex(index) {
                var shift = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;

                if (index == null) {
                  return this.length + shift;
                }

                if (ngDevMode) {
                  assertGreaterThan(index, -1, "ViewRef index must be positive, got ".concat(index)); // +1 because it's legal to insert at the end.

                  assertLessThan(index, this.length + 1 + shift, 'index');
                }

                return index;
              }
            }, {
              key: "allocateContainerIfNeeded",
              value: function allocateContainerIfNeeded() {
                if (this._lContainer[VIEW_REFS] === null) {
                  this._lContainer[VIEW_REFS] = [];
                }
              }
            }]);

            return ViewContainerRef;
          }(ViewContainerRefToken);
        }

        ngDevMode && assertTNodeType(hostTNode, 12
        /* AnyContainer */
        | 3
        /* AnyRNode */
        );
        var lContainer;
        var slotValue = hostView[hostTNode.index];

        if (isLContainer(slotValue)) {
          // If the host is a container, we don't need to create a new LContainer
          lContainer = slotValue;
        } else {
          var commentNode; // If the host is an element container, the native host element is guaranteed to be a
          // comment and we can reuse that comment as anchor element for the new LContainer.
          // The comment node in question is already part of the DOM structure so we don't need to append
          // it again.

          if (hostTNode.type & 8
          /* ElementContainer */
          ) {
            commentNode = unwrapRNode(slotValue);
          } else {
            ngDevMode && ngDevMode.rendererCreateComment++;
            commentNode = hostView[RENDERER].createComment(ngDevMode ? 'container' : ''); // A `ViewContainerRef` can be injected by the root (topmost / bootstrapped) component. In
            // this case we can't use TView / TNode data structures to insert container's marker node
            // (both a parent of a comment node and the comment node itself are not part of any view). In
            // this specific case we use low-level DOM manipulation to insert container's marker (comment)
            // node.

            if (isRootView(hostView)) {
              var renderer = hostView[RENDERER];
              var hostNative = getNativeByTNode(hostTNode, hostView);
              var parentOfHostNative = nativeParentNode(renderer, hostNative);
              nativeInsertBefore(renderer, parentOfHostNative, commentNode, nativeNextSibling(renderer, hostNative), false);
            } else {
              // The TNode created here is bogus, in that it is not added to the TView. It is only created
              // to allow us to create a dynamic Comment node.
              var commentTNode = createTNode(hostView[TVIEW], hostTNode.parent, 4
              /* Container */
              , 0, null, null);
              appendChild(hostView[TVIEW], hostView, commentNode, commentTNode);
            }
          }

          hostView[hostTNode.index] = lContainer = createLContainer(slotValue, hostView, commentNode, hostTNode);
          addToViewTree(hostView, lContainer);
        }

        return new R3ViewContainerRef(lContainer, hostTNode, hostView);
      }
      /** Returns a ChangeDetectorRef (a.k.a. a ViewRef) */


      function injectChangeDetectorRef() {
        var isPipe = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
        return createViewRef(getCurrentTNode(), getLView(), isPipe);
      }
      /**
       * Creates a ViewRef and stores it on the injector as ChangeDetectorRef (public alias).
       *
       * @param tNode The node that is requesting a ChangeDetectorRef
       * @param lView The view to which the node belongs
       * @param isPipe Whether the view is being injected into a pipe.
       * @returns The ChangeDetectorRef to use
       */


      function createViewRef(tNode, lView, isPipe) {
        // `isComponentView` will be true for Component and Directives (but not for Pipes).
        // See https://github.com/angular/angular/pull/33072 for proper fix
        var isComponentView = !isPipe && isComponentHost(tNode);

        if (isComponentView) {
          // The LView represents the location where the component is declared.
          // Instead we want the LView for the component View and so we need to look it up.
          var componentView = getComponentLViewByIndex(tNode.index, lView); // look down

          return new ViewRef(componentView, componentView);
        } else if (tNode.type & (3
        /* AnyRNode */
        | 12
        /* AnyContainer */
        | 32
        /* Icu */
        )) {
          // The LView represents the location where the injection is requested from.
          // We need to locate the containing LView (in case where the `lView` is an embedded view)
          var hostComponentView = lView[DECLARATION_COMPONENT_VIEW]; // look up

          return new ViewRef(hostComponentView, lView);
        }

        return null;
      }
      /** Returns a Renderer2 (or throws when application was bootstrapped with Renderer3) */


      function getOrCreateRenderer2(view) {
        var renderer = view[RENDERER];

        if (isProceduralRenderer(renderer)) {
          return renderer;
        } else {
          throw new Error('Cannot inject Renderer2 when the application uses Renderer3!');
        }
      }
      /** Injects a Renderer2 for the current component. */


      function injectRenderer2() {
        // We need the Renderer to be based on the component that it's being injected into, however since
        // DI happens before we've entered its view, `getLView` will return the parent view instead.
        var lView = getLView();
        var tNode = getCurrentTNode();
        var nodeAtIndex = getComponentLViewByIndex(tNode.index, lView);
        return getOrCreateRenderer2(isLView(nodeAtIndex) ? nodeAtIndex : lView);
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Base class that provides change detection functionality.
       * A change-detection tree collects all views that are to be checked for changes.
       * Use the methods to add and remove views from the tree, initiate change-detection,
       * and explicitly mark views as _dirty_, meaning that they have changed and need to be re-rendered.
       *
       * @see [Using change detection hooks](guide/lifecycle-hooks#using-change-detection-hooks)
       * @see [Defining custom change detection](guide/lifecycle-hooks#defining-custom-change-detection)
       *
       * @usageNotes
       *
       * The following examples demonstrate how to modify default change-detection behavior
       * to perform explicit detection when needed.
       *
       * ### Use `markForCheck()` with `CheckOnce` strategy
       *
       * The following example sets the `OnPush` change-detection strategy for a component
       * (`CheckOnce`, rather than the default `CheckAlways`), then forces a second check
       * after an interval. See [live demo](http://plnkr.co/edit/GC512b?p=preview).
       *
       * <code-example path="core/ts/change_detect/change-detection.ts"
       * region="mark-for-check"></code-example>
       *
       * ### Detach change detector to limit how often check occurs
       *
       * The following example defines a component with a large list of read-only data
       * that is expected to change constantly, many times per second.
       * To improve performance, we want to check and update the list
       * less often than the changes actually occur. To do that, we detach
       * the component's change detector and perform an explicit local check every five seconds.
       *
       * <code-example path="core/ts/change_detect/change-detection.ts" region="detach"></code-example>
       *
       *
       * ### Reattaching a detached component
       *
       * The following example creates a component displaying live data.
       * The component detaches its change detector from the main change detector tree
       * when the `live` property is set to false, and reattaches it when the property
       * becomes true.
       *
       * <code-example path="core/ts/change_detect/change-detection.ts" region="reattach"></code-example>
       *
       * @publicApi
       */


      var ChangeDetectorRef = function ChangeDetectorRef() {
        _classCallCheck2(this, ChangeDetectorRef);
      };
      /**
       * @internal
       * @nocollapse
       */


      ChangeDetectorRef.__NG_ELEMENT_ID__ = function () {
        return SWITCH_CHANGE_DETECTOR_REF_FACTORY();
      };

      var SWITCH_CHANGE_DETECTOR_REF_FACTORY__POST_R3__ = injectChangeDetectorRef;

      var SWITCH_CHANGE_DETECTOR_REF_FACTORY__PRE_R3__ = function SWITCH_CHANGE_DETECTOR_REF_FACTORY__PRE_R3__() {};

      var ɵ0$5 = SWITCH_CHANGE_DETECTOR_REF_FACTORY__POST_R3__;
      var SWITCH_CHANGE_DETECTOR_REF_FACTORY = SWITCH_CHANGE_DETECTOR_REF_FACTORY__POST_R3__;
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @description
       *
       * Represents a type that a Component or other object is instances of.
       *
       * An example of a `Type` is `MyCustomComponent` class, which in JavaScript is represented by
       * the `MyCustomComponent` constructor function.
       *
       * @publicApi
       */

      var Type = Function;

      function isType(v) {
        return typeof v === 'function';
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /*
       * #########################
       * Attention: These Regular expressions have to hold even if the code is minified!
       * ##########################
       */

      /**
       * Regular expression that detects pass-through constructors for ES5 output. This Regex
       * intends to capture the common delegation pattern emitted by TypeScript and Babel. Also
       * it intends to capture the pattern where existing constructors have been downleveled from
       * ES2015 to ES5 using TypeScript w/ downlevel iteration. e.g.
       *
       * ```
       *   function MyClass() {
       *     var _this = _super.apply(this, arguments) || this;
       * ```
       *
       * ```
       *   function MyClass() {
       *     var _this = _super.apply(this, __spread(arguments)) || this;
       * ```
       *
       * More details can be found in: https://github.com/angular/angular/issues/38453.
       */


      var ES5_DELEGATE_CTOR = /^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|[^()]+\(arguments\))\)/;
      /** Regular expression that detects ES2015 classes which extend from other classes. */

      var ES2015_INHERITED_CLASS = /^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/;
      /**
       * Regular expression that detects ES2015 classes which extend from other classes and
       * have an explicit constructor defined.
       */

      var ES2015_INHERITED_CLASS_WITH_CTOR = /^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/;
      /**
       * Regular expression that detects ES2015 classes which extend from other classes
       * and inherit a constructor.
       */

      var ES2015_INHERITED_CLASS_WITH_DELEGATE_CTOR = /^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{\s*super\(\.\.\.arguments\)/;
      /**
       * Determine whether a stringified type is a class which delegates its constructor
       * to its parent.
       *
       * This is not trivial since compiled code can actually contain a constructor function
       * even if the original source code did not. For instance, when the child class contains
       * an initialized instance property.
       */

      function isDelegateCtor(typeStr) {
        return ES5_DELEGATE_CTOR.test(typeStr) || ES2015_INHERITED_CLASS_WITH_DELEGATE_CTOR.test(typeStr) || ES2015_INHERITED_CLASS.test(typeStr) && !ES2015_INHERITED_CLASS_WITH_CTOR.test(typeStr);
      }

      var ReflectionCapabilities = /*#__PURE__*/function () {
        function ReflectionCapabilities(reflect) {
          _classCallCheck2(this, ReflectionCapabilities);

          this._reflect = reflect || _global['Reflect'];
        }

        _createClass2(ReflectionCapabilities, [{
          key: "isReflectionEnabled",
          value: function isReflectionEnabled() {
            return true;
          }
        }, {
          key: "factory",
          value: function factory(t) {
            return function () {
              for (var _len27 = arguments.length, args = new Array(_len27), _key28 = 0; _key28 < _len27; _key28++) {
                args[_key28] = arguments[_key28];
              }

              return _construct2(t, args);
            };
          }
          /** @internal */

        }, {
          key: "_zipTypesAndAnnotations",
          value: function _zipTypesAndAnnotations(paramTypes, paramAnnotations) {
            var result;

            if (typeof paramTypes === 'undefined') {
              result = newArray(paramAnnotations.length);
            } else {
              result = newArray(paramTypes.length);
            }

            for (var i = 0; i < result.length; i++) {
              // TS outputs Object for parameters without types, while Traceur omits
              // the annotations. For now we preserve the Traceur behavior to aid
              // migration, but this can be revisited.
              if (typeof paramTypes === 'undefined') {
                result[i] = [];
              } else if (paramTypes[i] && paramTypes[i] != Object) {
                result[i] = [paramTypes[i]];
              } else {
                result[i] = [];
              }

              if (paramAnnotations && paramAnnotations[i] != null) {
                result[i] = result[i].concat(paramAnnotations[i]);
              }
            }

            return result;
          }
        }, {
          key: "_ownParameters",
          value: function _ownParameters(type, parentCtor) {
            var typeStr = type.toString(); // If we have no decorators, we only have function.length as metadata.
            // In that case, to detect whether a child class declared an own constructor or not,
            // we need to look inside of that constructor to check whether it is
            // just calling the parent.
            // This also helps to work around for https://github.com/Microsoft/TypeScript/issues/12439
            // that sets 'design:paramtypes' to []
            // if a class inherits from another class but has no ctor declared itself.

            if (isDelegateCtor(typeStr)) {
              return null;
            } // Prefer the direct API.


            if (type.parameters && type.parameters !== parentCtor.parameters) {
              return type.parameters;
            } // API of tsickle for lowering decorators to properties on the class.


            var tsickleCtorParams = type.ctorParameters;

            if (tsickleCtorParams && tsickleCtorParams !== parentCtor.ctorParameters) {
              // Newer tsickle uses a function closure
              // Retain the non-function case for compatibility with older tsickle
              var ctorParameters = typeof tsickleCtorParams === 'function' ? tsickleCtorParams() : tsickleCtorParams;

              var _paramTypes = ctorParameters.map(function (ctorParam) {
                return ctorParam && ctorParam.type;
              });

              var _paramAnnotations = ctorParameters.map(function (ctorParam) {
                return ctorParam && convertTsickleDecoratorIntoMetadata(ctorParam.decorators);
              });

              return this._zipTypesAndAnnotations(_paramTypes, _paramAnnotations);
            } // API for metadata created by invoking the decorators.


            var paramAnnotations = type.hasOwnProperty(PARAMETERS) && type[PARAMETERS];

            var paramTypes = this._reflect && this._reflect.getOwnMetadata && this._reflect.getOwnMetadata('design:paramtypes', type);

            if (paramTypes || paramAnnotations) {
              return this._zipTypesAndAnnotations(paramTypes, paramAnnotations);
            } // If a class has no decorators, at least create metadata
            // based on function.length.
            // Note: We know that this is a real constructor as we checked
            // the content of the constructor above.


            return newArray(type.length);
          }
        }, {
          key: "parameters",
          value: function parameters(type) {
            // Note: only report metadata if we have at least one class decorator
            // to stay in sync with the static reflector.
            if (!isType(type)) {
              return [];
            }

            var parentCtor = getParentCtor(type);

            var parameters = this._ownParameters(type, parentCtor);

            if (!parameters && parentCtor !== Object) {
              parameters = this.parameters(parentCtor);
            }

            return parameters || [];
          }
        }, {
          key: "_ownAnnotations",
          value: function _ownAnnotations(typeOrFunc, parentCtor) {
            // Prefer the direct API.
            if (typeOrFunc.annotations && typeOrFunc.annotations !== parentCtor.annotations) {
              var annotations = typeOrFunc.annotations;

              if (typeof annotations === 'function' && annotations.annotations) {
                annotations = annotations.annotations;
              }

              return annotations;
            } // API of tsickle for lowering decorators to properties on the class.


            if (typeOrFunc.decorators && typeOrFunc.decorators !== parentCtor.decorators) {
              return convertTsickleDecoratorIntoMetadata(typeOrFunc.decorators);
            } // API for metadata created by invoking the decorators.


            if (typeOrFunc.hasOwnProperty(ANNOTATIONS)) {
              return typeOrFunc[ANNOTATIONS];
            }

            return null;
          }
        }, {
          key: "annotations",
          value: function annotations(typeOrFunc) {
            if (!isType(typeOrFunc)) {
              return [];
            }

            var parentCtor = getParentCtor(typeOrFunc);
            var ownAnnotations = this._ownAnnotations(typeOrFunc, parentCtor) || [];
            var parentAnnotations = parentCtor !== Object ? this.annotations(parentCtor) : [];
            return parentAnnotations.concat(ownAnnotations);
          }
        }, {
          key: "_ownPropMetadata",
          value: function _ownPropMetadata(typeOrFunc, parentCtor) {
            // Prefer the direct API.
            if (typeOrFunc.propMetadata && typeOrFunc.propMetadata !== parentCtor.propMetadata) {
              var propMetadata = typeOrFunc.propMetadata;

              if (typeof propMetadata === 'function' && propMetadata.propMetadata) {
                propMetadata = propMetadata.propMetadata;
              }

              return propMetadata;
            } // API of tsickle for lowering decorators to properties on the class.


            if (typeOrFunc.propDecorators && typeOrFunc.propDecorators !== parentCtor.propDecorators) {
              var propDecorators = typeOrFunc.propDecorators;
              var _propMetadata = {};
              Object.keys(propDecorators).forEach(function (prop) {
                _propMetadata[prop] = convertTsickleDecoratorIntoMetadata(propDecorators[prop]);
              });
              return _propMetadata;
            } // API for metadata created by invoking the decorators.


            if (typeOrFunc.hasOwnProperty(PROP_METADATA)) {
              return typeOrFunc[PROP_METADATA];
            }

            return null;
          }
        }, {
          key: "propMetadata",
          value: function propMetadata(typeOrFunc) {
            if (!isType(typeOrFunc)) {
              return {};
            }

            var parentCtor = getParentCtor(typeOrFunc);
            var propMetadata = {};

            if (parentCtor !== Object) {
              var parentPropMetadata = this.propMetadata(parentCtor);
              Object.keys(parentPropMetadata).forEach(function (propName) {
                propMetadata[propName] = parentPropMetadata[propName];
              });
            }

            var ownPropMetadata = this._ownPropMetadata(typeOrFunc, parentCtor);

            if (ownPropMetadata) {
              Object.keys(ownPropMetadata).forEach(function (propName) {
                var decorators = [];

                if (propMetadata.hasOwnProperty(propName)) {
                  decorators.push.apply(decorators, _toConsumableArray(propMetadata[propName]));
                }

                decorators.push.apply(decorators, _toConsumableArray(ownPropMetadata[propName]));
                propMetadata[propName] = decorators;
              });
            }

            return propMetadata;
          }
        }, {
          key: "ownPropMetadata",
          value: function ownPropMetadata(typeOrFunc) {
            if (!isType(typeOrFunc)) {
              return {};
            }

            return this._ownPropMetadata(typeOrFunc, getParentCtor(typeOrFunc)) || {};
          }
        }, {
          key: "hasLifecycleHook",
          value: function hasLifecycleHook(type, lcProperty) {
            return type instanceof Type && lcProperty in type.prototype;
          }
        }, {
          key: "guards",
          value: function guards(type) {
            return {};
          }
        }, {
          key: "getter",
          value: function getter(name) {
            return new Function('o', 'return o.' + name + ';');
          }
        }, {
          key: "setter",
          value: function setter(name) {
            return new Function('o', 'v', 'return o.' + name + ' = v;');
          }
        }, {
          key: "method",
          value: function method(name) {
            var functionBody = "if (!o.".concat(name, ") throw new Error('\"").concat(name, "\" is undefined');\n        return o.").concat(name, ".apply(o, args);");
            return new Function('o', 'args', functionBody);
          } // There is not a concept of import uri in Js, but this is useful in developing Dart applications.

        }, {
          key: "importUri",
          value: function importUri(type) {
            // StaticSymbol
            if (typeof type === 'object' && type['filePath']) {
              return type['filePath'];
            } // Runtime type


            return "./".concat(stringify(type));
          }
        }, {
          key: "resourceUri",
          value: function resourceUri(type) {
            return "./".concat(stringify(type));
          }
        }, {
          key: "resolveIdentifier",
          value: function resolveIdentifier(name, moduleUrl, members, runtime) {
            return runtime;
          }
        }, {
          key: "resolveEnum",
          value: function resolveEnum(enumIdentifier, name) {
            return enumIdentifier[name];
          }
        }]);

        return ReflectionCapabilities;
      }();

      function convertTsickleDecoratorIntoMetadata(decoratorInvocations) {
        if (!decoratorInvocations) {
          return [];
        }

        return decoratorInvocations.map(function (decoratorInvocation) {
          var decoratorType = decoratorInvocation.type;
          var annotationCls = decoratorType.annotationCls;
          var annotationArgs = decoratorInvocation.args ? decoratorInvocation.args : [];
          return _construct2(annotationCls, _toConsumableArray(annotationArgs));
        });
      }

      function getParentCtor(ctor) {
        var parentProto = ctor.prototype ? Object.getPrototypeOf(ctor.prototype) : null;
        var parentCtor = parentProto ? parentProto.constructor : null; // Note: We always use `Object` as the null value
        // to simplify checking later on.

        return parentCtor || Object;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var _reflect = null;

      function getReflect() {
        return _reflect = _reflect || new ReflectionCapabilities();
      }

      function reflectDependencies(type) {
        return convertDependencies(getReflect().parameters(type));
      }

      function convertDependencies(deps) {
        var compiler = getCompilerFacade();
        return deps.map(function (dep) {
          return reflectDependency(compiler, dep);
        });
      }

      function reflectDependency(compiler, dep) {
        var meta = {
          token: null,
          host: false,
          optional: false,
          resolved: compiler.R3ResolvedDependencyType.Token,
          self: false,
          skipSelf: false
        };

        function setTokenAndResolvedType(token) {
          meta.resolved = compiler.R3ResolvedDependencyType.Token;
          meta.token = token;
        }

        if (Array.isArray(dep) && dep.length > 0) {
          for (var j = 0; j < dep.length; j++) {
            var param = dep[j];

            if (param === undefined) {
              // param may be undefined if type of dep is not set by ngtsc
              continue;
            }

            var proto = Object.getPrototypeOf(param);

            if (param instanceof Optional || proto.ngMetadataName === 'Optional') {
              meta.optional = true;
            } else if (param instanceof SkipSelf || proto.ngMetadataName === 'SkipSelf') {
              meta.skipSelf = true;
            } else if (param instanceof Self || proto.ngMetadataName === 'Self') {
              meta.self = true;
            } else if (param instanceof Host || proto.ngMetadataName === 'Host') {
              meta.host = true;
            } else if (param instanceof Inject) {
              meta.token = param.token;
            } else if (param instanceof Attribute) {
              if (param.attributeName === undefined) {
                throw new Error("Attribute name must be defined.");
              }

              meta.token = param.attributeName;
              meta.resolved = compiler.R3ResolvedDependencyType.Attribute;
            } else if (param === ChangeDetectorRef) {
              meta.token = param;
              meta.resolved = compiler.R3ResolvedDependencyType.ChangeDetectorRef;
            } else {
              setTokenAndResolvedType(param);
            }
          }
        } else if (dep === undefined || Array.isArray(dep) && dep.length === 0) {
          meta.token = undefined;
          meta.resolved = R3ResolvedDependencyType.Invalid;
        } else {
          setTokenAndResolvedType(dep);
        }

        return meta;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Compile an Angular injectable according to its `Injectable` metadata, and patch the resulting
       * injectable def (`ɵprov`) onto the injectable type.
       */


      function compileInjectable(type, srcMeta) {
        var ngInjectableDef = null;
        var ngFactoryDef = null; // if NG_PROV_DEF is already defined on this class then don't overwrite it

        if (!type.hasOwnProperty(NG_PROV_DEF)) {
          Object.defineProperty(type, NG_PROV_DEF, {
            get: function get() {
              if (ngInjectableDef === null) {
                ngInjectableDef = getCompilerFacade().compileInjectable(angularCoreDiEnv, "ng:///".concat(type.name, "/\u0275prov.js"), getInjectableMetadata(type, srcMeta));
              }

              return ngInjectableDef;
            }
          });
        } // if NG_FACTORY_DEF is already defined on this class then don't overwrite it


        if (!type.hasOwnProperty(NG_FACTORY_DEF)) {
          Object.defineProperty(type, NG_FACTORY_DEF, {
            get: function get() {
              if (ngFactoryDef === null) {
                var metadata = getInjectableMetadata(type, srcMeta);
                var compiler = getCompilerFacade();
                ngFactoryDef = compiler.compileFactory(angularCoreDiEnv, "ng:///".concat(type.name, "/\u0275fac.js"), {
                  name: metadata.name,
                  type: metadata.type,
                  typeArgumentCount: metadata.typeArgumentCount,
                  deps: reflectDependencies(type),
                  injectFn: 'inject',
                  target: compiler.R3FactoryTarget.Injectable
                });
              }

              return ngFactoryDef;
            },
            // Leave this configurable so that the factories from directives or pipes can take precedence.
            configurable: true
          });
        }
      }

      var ɵ0$6 = getClosureSafeProperty;
      var USE_VALUE$1 = getClosureSafeProperty({
        provide: String,
        useValue: ɵ0$6
      });

      function isUseClassProvider(meta) {
        return meta.useClass !== undefined;
      }

      function isUseValueProvider(meta) {
        return USE_VALUE$1 in meta;
      }

      function isUseFactoryProvider(meta) {
        return meta.useFactory !== undefined;
      }

      function isUseExistingProvider(meta) {
        return meta.useExisting !== undefined;
      }

      function getInjectableMetadata(type, srcMeta) {
        // Allow the compilation of a class with a `@Injectable()` decorator without parameters
        var meta = srcMeta || {
          providedIn: null
        };
        var compilerMeta = {
          name: type.name,
          type: type,
          typeArgumentCount: 0,
          providedIn: meta.providedIn,
          userDeps: undefined
        };

        if ((isUseClassProvider(meta) || isUseFactoryProvider(meta)) && meta.deps !== undefined) {
          compilerMeta.userDeps = convertDependencies(meta.deps);
        }

        if (isUseClassProvider(meta)) {
          // The user explicitly specified useClass, and may or may not have provided deps.
          compilerMeta.useClass = resolveForwardRef(meta.useClass);
        } else if (isUseValueProvider(meta)) {
          // The user explicitly specified useValue.
          compilerMeta.useValue = resolveForwardRef(meta.useValue);
        } else if (isUseFactoryProvider(meta)) {
          // The user explicitly specified useFactory.
          compilerMeta.useFactory = meta.useFactory;
        } else if (isUseExistingProvider(meta)) {
          // The user explicitly specified useExisting.
          compilerMeta.useExisting = resolveForwardRef(meta.useExisting);
        }

        return compilerMeta;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var ɵ0$7 = getClosureSafeProperty;
      var USE_VALUE$2 = getClosureSafeProperty({
        provide: String,
        useValue: ɵ0$7
      });
      var EMPTY_ARRAY$1 = [];

      function convertInjectableProviderToFactory(type, provider) {
        if (!provider) {
          var reflectionCapabilities = new ReflectionCapabilities();
          var deps = reflectionCapabilities.parameters(type); // TODO - convert to flags.

          return function () {
            return _construct2(type, _toConsumableArray(injectArgs(deps)));
          };
        }

        if (USE_VALUE$2 in provider) {
          var valueProvider = provider;
          return function () {
            return valueProvider.useValue;
          };
        } else if (provider.useExisting) {
          var existingProvider = provider;
          return function () {
            return ɵɵinject(resolveForwardRef(existingProvider.useExisting));
          };
        } else if (provider.useFactory) {
          var factoryProvider = provider;
          return function () {
            return factoryProvider.useFactory.apply(factoryProvider, _toConsumableArray(injectArgs(factoryProvider.deps || EMPTY_ARRAY$1)));
          };
        } else if (provider.useClass) {
          var classProvider = provider;
          var _deps3 = provider.deps;

          if (!_deps3) {
            var _reflectionCapabilities = new ReflectionCapabilities();

            _deps3 = _reflectionCapabilities.parameters(type);
          }

          return function () {
            return _construct2(resolveForwardRef(classProvider.useClass), _toConsumableArray(injectArgs(_deps3)));
          };
        } else {
          var _deps4 = provider.deps;

          if (!_deps4) {
            var _reflectionCapabilities2 = new ReflectionCapabilities();

            _deps4 = _reflectionCapabilities2.parameters(type);
          }

          return function () {
            return _construct2(type, _toConsumableArray(injectArgs(_deps4)));
          };
        }
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var ɵ0$8 = function ɵ0$8(type, meta) {
        return SWITCH_COMPILE_INJECTABLE(type, meta);
      };
      /**
       * Injectable decorator and metadata.
       *
       * @Annotation
       * @publicApi
       */


      var Injectable = makeDecorator('Injectable', undefined, undefined, undefined, ɵ0$8);
      /**
       * Supports @Injectable() in JIT mode for Render2.
       */

      function render2CompileInjectable(injectableType, options) {
        if (options && options.providedIn !== undefined && !getInjectableDef(injectableType)) {
          injectableType.ɵprov = ɵɵdefineInjectable({
            token: injectableType,
            providedIn: options.providedIn,
            factory: convertInjectableProviderToFactory(injectableType, options)
          });
        }
      }

      var SWITCH_COMPILE_INJECTABLE__POST_R3__ = compileInjectable;
      var SWITCH_COMPILE_INJECTABLE__PRE_R3__ = render2CompileInjectable;
      var SWITCH_COMPILE_INJECTABLE = SWITCH_COMPILE_INJECTABLE__POST_R3__;
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * An internal token whose presence in an injector indicates that the injector should treat itself
       * as a root scoped injector when processing requests for unknown tokens which may indicate
       * they are provided in the root scope.
       */

      var INJECTOR_SCOPE = new InjectionToken('Set Injector scope.');
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Marker which indicates that a value has not yet been created from the factory function.
       */

      var NOT_YET = {};
      /**
       * Marker which indicates that the factory function for a token is in the process of being called.
       *
       * If the injector is asked to inject a token with its value set to CIRCULAR, that indicates
       * injection of a dependency has recursively attempted to inject the original token, and there is
       * a circular dependency among the providers.
       */

      var CIRCULAR = {};
      var EMPTY_ARRAY$2 = [];
      /**
       * A lazily initialized NullInjector.
       */

      var NULL_INJECTOR = undefined;

      function getNullInjector() {
        if (NULL_INJECTOR === undefined) {
          NULL_INJECTOR = new NullInjector();
        }

        return NULL_INJECTOR;
      }
      /**
       * Create a new `Injector` which is configured using a `defType` of `InjectorType<any>`s.
       *
       * @publicApi
       */


      function createInjector(defType) {
        var parent = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
        var additionalProviders = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
        var name = arguments.length > 3 ? arguments[3] : undefined;
        var injector = createInjectorWithoutInjectorInstances(defType, parent, additionalProviders, name);

        injector._resolveInjectorDefTypes();

        return injector;
      }
      /**
       * Creates a new injector without eagerly resolving its injector types. Can be used in places
       * where resolving the injector types immediately can lead to an infinite loop. The injector types
       * should be resolved at a later point by calling `_resolveInjectorDefTypes`.
       */


      function createInjectorWithoutInjectorInstances(defType) {
        var parent = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
        var additionalProviders = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
        var name = arguments.length > 3 ? arguments[3] : undefined;
        return new R3Injector(defType, additionalProviders, parent || getNullInjector(), name);
      }

      var R3Injector = /*#__PURE__*/function () {
        function R3Injector(def, additionalProviders, parent) {
          var _this405 = this;

          var source = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;

          _classCallCheck2(this, R3Injector);

          this.parent = parent;
          /**
           * Map of tokens to records which contain the instances of those tokens.
           * - `null` value implies that we don't have the record. Used by tree-shakable injectors
           * to prevent further searches.
           */

          this.records = new Map();
          /**
           * The transitive set of `InjectorType`s which define this injector.
           */

          this.injectorDefTypes = new Set();
          /**
           * Set of values instantiated by this injector which contain `ngOnDestroy` lifecycle hooks.
           */

          this.onDestroy = new Set();
          this._destroyed = false;
          var dedupStack = []; // Start off by creating Records for every provider declared in every InjectorType
          // included transitively in additional providers then do the same for `def`. This order is
          // important because `def` may include providers that override ones in additionalProviders.

          additionalProviders && deepForEach(additionalProviders, function (provider) {
            return _this405.processProvider(provider, def, additionalProviders);
          });
          deepForEach([def], function (injectorDef) {
            return _this405.processInjectorType(injectorDef, [], dedupStack);
          }); // Make sure the INJECTOR token provides this injector.

          this.records.set(INJECTOR, makeRecord(undefined, this)); // Detect whether this injector has the APP_ROOT_SCOPE token and thus should provide
          // any injectable scoped to APP_ROOT_SCOPE.

          var record = this.records.get(INJECTOR_SCOPE);
          this.scope = record != null ? record.value : null; // Source name, used for debugging

          this.source = source || (typeof def === 'object' ? null : stringify(def));
        }
        /**
         * Flag indicating that this injector was previously destroyed.
         */


        _createClass2(R3Injector, [{
          key: "destroyed",
          get: function get() {
            return this._destroyed;
          }
          /**
           * Destroy the injector and release references to every instance or provider associated with it.
           *
           * Also calls the `OnDestroy` lifecycle hooks of every instance that was created for which a
           * hook was found.
           */

        }, {
          key: "destroy",
          value: function destroy() {
            this.assertNotDestroyed(); // Set destroyed = true first, in case lifecycle hooks re-enter destroy().

            this._destroyed = true;

            try {
              // Call all the lifecycle hooks.
              this.onDestroy.forEach(function (service) {
                return service.ngOnDestroy();
              });
            } finally {
              // Release all references.
              this.records.clear();
              this.onDestroy.clear();
              this.injectorDefTypes.clear();
            }
          }
        }, {
          key: "get",
          value: function get(token) {
            var notFoundValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : THROW_IF_NOT_FOUND;
            var flags = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : InjectFlags.Default;
            this.assertNotDestroyed(); // Set the injection context.

            var previousInjector = setCurrentInjector(this);

            try {
              // Check for the SkipSelf flag.
              if (!(flags & InjectFlags.SkipSelf)) {
                // SkipSelf isn't set, check if the record belongs to this injector.
                var record = this.records.get(token);

                if (record === undefined) {
                  // No record, but maybe the token is scoped to this injector. Look for an injectable
                  // def with a scope matching this injector.
                  var def = couldBeInjectableType(token) && getInjectableDef(token);

                  if (def && this.injectableDefInScope(def)) {
                    // Found an injectable def and it's scoped to this injector. Pretend as if it was here
                    // all along.
                    record = makeRecord(injectableDefOrInjectorDefFactory(token), NOT_YET);
                  } else {
                    record = null;
                  }

                  this.records.set(token, record);
                } // If a record was found, get the instance for it and return it.


                if (record != null
                /* NOT null || undefined */
                ) {
                  return this.hydrate(token, record);
                }
              } // Select the next injector based on the Self flag - if self is set, the next injector is
              // the NullInjector, otherwise it's the parent.


              var nextInjector = !(flags & InjectFlags.Self) ? this.parent : getNullInjector(); // Set the notFoundValue based on the Optional flag - if optional is set and notFoundValue
              // is undefined, the value is null, otherwise it's the notFoundValue.

              notFoundValue = flags & InjectFlags.Optional && notFoundValue === THROW_IF_NOT_FOUND ? null : notFoundValue;
              return nextInjector.get(token, notFoundValue);
            } catch (e) {
              if (e.name === 'NullInjectorError') {
                var path = e[NG_TEMP_TOKEN_PATH] = e[NG_TEMP_TOKEN_PATH] || [];
                path.unshift(stringify(token));

                if (previousInjector) {
                  // We still have a parent injector, keep throwing
                  throw e;
                } else {
                  // Format & throw the final error message when we don't have any previous injector
                  return catchInjectorError(e, token, 'R3InjectorError', this.source);
                }
              } else {
                throw e;
              }
            } finally {
              // Lastly, clean up the state by restoring the previous injector.
              setCurrentInjector(previousInjector);
            }
          }
          /** @internal */

        }, {
          key: "_resolveInjectorDefTypes",
          value: function _resolveInjectorDefTypes() {
            var _this406 = this;

            this.injectorDefTypes.forEach(function (defType) {
              return _this406.get(defType);
            });
          }
        }, {
          key: "toString",
          value: function toString() {
            var tokens = [],
                records = this.records;
            records.forEach(function (v, token) {
              return tokens.push(stringify(token));
            });
            return "R3Injector[".concat(tokens.join(', '), "]");
          }
        }, {
          key: "assertNotDestroyed",
          value: function assertNotDestroyed() {
            if (this._destroyed) {
              throw new Error('Injector has already been destroyed.');
            }
          }
          /**
           * Add an `InjectorType` or `InjectorTypeWithProviders` and all of its transitive providers
           * to this injector.
           *
           * If an `InjectorTypeWithProviders` that declares providers besides the type is specified,
           * the function will return "true" to indicate that the providers of the type definition need
           * to be processed. This allows us to process providers of injector types after all imports of
           * an injector definition are processed. (following View Engine semantics: see FW-1349)
           */

        }, {
          key: "processInjectorType",
          value: function processInjectorType(defOrWrappedDef, parents, dedupStack) {
            var _this407 = this;

            defOrWrappedDef = resolveForwardRef(defOrWrappedDef);
            if (!defOrWrappedDef) return false; // Either the defOrWrappedDef is an InjectorType (with injector def) or an
            // InjectorDefTypeWithProviders (aka ModuleWithProviders). Detecting either is a megamorphic
            // read, so care is taken to only do the read once.
            // First attempt to read the injector def (`ɵinj`).

            var def = getInjectorDef(defOrWrappedDef); // If that's not present, then attempt to read ngModule from the InjectorDefTypeWithProviders.

            var ngModule = def == null && defOrWrappedDef.ngModule || undefined; // Determine the InjectorType. In the case where `defOrWrappedDef` is an `InjectorType`,
            // then this is easy. In the case of an InjectorDefTypeWithProviders, then the definition type
            // is the `ngModule`.

            var defType = ngModule === undefined ? defOrWrappedDef : ngModule; // Check for circular dependencies.

            if (ngDevMode && parents.indexOf(defType) !== -1) {
              var defName = stringify(defType);
              var path = parents.map(stringify);
              throwCyclicDependencyError(defName, path);
            } // Check for multiple imports of the same module


            var isDuplicate = dedupStack.indexOf(defType) !== -1; // Finally, if defOrWrappedType was an `InjectorDefTypeWithProviders`, then the actual
            // `InjectorDef` is on its `ngModule`.

            if (ngModule !== undefined) {
              def = getInjectorDef(ngModule);
            } // If no definition was found, it might be from exports. Remove it.


            if (def == null) {
              return false;
            } // Add providers in the same way that @NgModule resolution did:
            // First, include providers from any imports.


            if (def.imports != null && !isDuplicate) {
              // Before processing defType's imports, add it to the set of parents. This way, if it ends
              // up deeply importing itself, this can be detected.
              ngDevMode && parents.push(defType); // Add it to the set of dedups. This way we can detect multiple imports of the same module

              dedupStack.push(defType);
              var importTypesWithProviders;

              try {
                deepForEach(def.imports, function (imported) {
                  if (_this407.processInjectorType(imported, parents, dedupStack)) {
                    if (importTypesWithProviders === undefined) importTypesWithProviders = []; // If the processed import is an injector type with providers, we store it in the
                    // list of import types with providers, so that we can process those afterwards.

                    importTypesWithProviders.push(imported);
                  }
                });
              } finally {
                // Remove it from the parents set when finished.
                ngDevMode && parents.pop();
              } // Imports which are declared with providers (TypeWithProviders) need to be processed
              // after all imported modules are processed. This is similar to how View Engine
              // processes/merges module imports in the metadata resolver. See: FW-1349.


              if (importTypesWithProviders !== undefined) {
                var _loop4 = function _loop4(i) {
                  var _importTypesWithProvi = importTypesWithProviders[i],
                      ngModule = _importTypesWithProvi.ngModule,
                      providers = _importTypesWithProvi.providers;
                  deepForEach(providers, function (provider) {
                    return _this407.processProvider(provider, ngModule, providers || EMPTY_ARRAY$2);
                  });
                };

                for (var i = 0; i < importTypesWithProviders.length; i++) {
                  _loop4(i);
                }
              }
            } // Track the InjectorType and add a provider for it. It's important that this is done after the
            // def's imports.


            this.injectorDefTypes.add(defType);
            this.records.set(defType, makeRecord(def.factory, NOT_YET)); // Next, include providers listed on the definition itself.

            var defProviders = def.providers;

            if (defProviders != null && !isDuplicate) {
              var injectorType = defOrWrappedDef;
              deepForEach(defProviders, function (provider) {
                return _this407.processProvider(provider, injectorType, defProviders);
              });
            }

            return ngModule !== undefined && defOrWrappedDef.providers !== undefined;
          }
          /**
           * Process a `SingleProvider` and add it.
           */

        }, {
          key: "processProvider",
          value: function processProvider(provider, ngModuleType, providers) {
            // Determine the token from the provider. Either it's its own token, or has a {provide: ...}
            // property.
            provider = resolveForwardRef(provider);
            var token = isTypeProvider(provider) ? provider : resolveForwardRef(provider && provider.provide); // Construct a `Record` for the provider.

            var record = providerToRecord(provider, ngModuleType, providers);

            if (!isTypeProvider(provider) && provider.multi === true) {
              // If the provider indicates that it's a multi-provider, process it specially.
              // First check whether it's been defined already.
              var multiRecord = this.records.get(token);

              if (multiRecord) {
                // It has. Throw a nice error if
                if (ngDevMode && multiRecord.multi === undefined) {
                  throwMixedMultiProviderError();
                }
              } else {
                multiRecord = makeRecord(undefined, NOT_YET, true);

                multiRecord.factory = function () {
                  return injectArgs(multiRecord.multi);
                };

                this.records.set(token, multiRecord);
              }

              token = provider;
              multiRecord.multi.push(provider);
            } else {
              var existing = this.records.get(token);

              if (ngDevMode && existing && existing.multi !== undefined) {
                throwMixedMultiProviderError();
              }
            }

            this.records.set(token, record);
          }
        }, {
          key: "hydrate",
          value: function hydrate(token, record) {
            if (ngDevMode && record.value === CIRCULAR) {
              throwCyclicDependencyError(stringify(token));
            } else if (record.value === NOT_YET) {
              record.value = CIRCULAR;
              record.value = record.factory();
            }

            if (typeof record.value === 'object' && record.value && hasOnDestroy(record.value)) {
              this.onDestroy.add(record.value);
            }

            return record.value;
          }
        }, {
          key: "injectableDefInScope",
          value: function injectableDefInScope(def) {
            if (!def.providedIn) {
              return false;
            } else if (typeof def.providedIn === 'string') {
              return def.providedIn === 'any' || def.providedIn === this.scope;
            } else {
              return this.injectorDefTypes.has(def.providedIn);
            }
          }
        }]);

        return R3Injector;
      }();

      function injectableDefOrInjectorDefFactory(token) {
        // Most tokens will have an injectable def directly on them, which specifies a factory directly.
        var injectableDef = getInjectableDef(token);
        var factory = injectableDef !== null ? injectableDef.factory : getFactoryDef(token);

        if (factory !== null) {
          return factory;
        } // If the token is an NgModule, it's also injectable but the factory is on its injector def
        // (`ɵinj`)


        var injectorDef = getInjectorDef(token);

        if (injectorDef !== null) {
          return injectorDef.factory;
        } // InjectionTokens should have an injectable def (ɵprov) and thus should be handled above.
        // If it's missing that, it's an error.


        if (token instanceof InjectionToken) {
          throw new Error("Token ".concat(stringify(token), " is missing a \u0275prov definition."));
        } // Undecorated types can sometimes be created if they have no constructor arguments.


        if (token instanceof Function) {
          return getUndecoratedInjectableFactory(token);
        } // There was no way to resolve a factory for this token.


        throw new Error('unreachable');
      }

      function getUndecoratedInjectableFactory(token) {
        // If the token has parameters then it has dependencies that we cannot resolve implicitly.
        var paramLength = token.length;

        if (paramLength > 0) {
          var args = newArray(paramLength, '?');
          throw new Error("Can't resolve all parameters for ".concat(stringify(token), ": (").concat(args.join(', '), ")."));
        } // The constructor function appears to have no parameters.
        // This might be because it inherits from a super-class. In which case, use an injectable
        // def from an ancestor if there is one.
        // Otherwise this really is a simple class with no dependencies, so return a factory that
        // just instantiates the zero-arg constructor.


        var inheritedInjectableDef = getInheritedInjectableDef(token);

        if (inheritedInjectableDef !== null) {
          return function () {
            return inheritedInjectableDef.factory(token);
          };
        } else {
          return function () {
            return new token();
          };
        }
      }

      function providerToRecord(provider, ngModuleType, providers) {
        if (isValueProvider(provider)) {
          return makeRecord(undefined, provider.useValue);
        } else {
          var factory = providerToFactory(provider, ngModuleType, providers);
          return makeRecord(factory, NOT_YET);
        }
      }
      /**
       * Converts a `SingleProvider` into a factory function.
       *
       * @param provider provider to convert to factory
       */


      function providerToFactory(provider, ngModuleType, providers) {
        var factory = undefined;

        if (isTypeProvider(provider)) {
          var unwrappedProvider = resolveForwardRef(provider);
          return getFactoryDef(unwrappedProvider) || injectableDefOrInjectorDefFactory(unwrappedProvider);
        } else {
          if (isValueProvider(provider)) {
            factory = function factory() {
              return resolveForwardRef(provider.useValue);
            };
          } else if (isFactoryProvider(provider)) {
            factory = function factory() {
              return provider.useFactory.apply(provider, _toConsumableArray(injectArgs(provider.deps || [])));
            };
          } else if (isExistingProvider(provider)) {
            factory = function factory() {
              return ɵɵinject(resolveForwardRef(provider.useExisting));
            };
          } else {
            var classRef = resolveForwardRef(provider && (provider.useClass || provider.provide));

            if (ngDevMode && !classRef) {
              throwInvalidProviderError(ngModuleType, providers, provider);
            }

            if (hasDeps(provider)) {
              factory = function factory() {
                return _construct2(classRef, _toConsumableArray(injectArgs(provider.deps)));
              };
            } else {
              return getFactoryDef(classRef) || injectableDefOrInjectorDefFactory(classRef);
            }
          }
        }

        return factory;
      }

      function makeRecord(factory, value) {
        var multi = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
        return {
          factory: factory,
          value: value,
          multi: multi ? [] : undefined
        };
      }

      function isValueProvider(value) {
        return value !== null && typeof value == 'object' && USE_VALUE in value;
      }

      function isExistingProvider(value) {
        return !!(value && value.useExisting);
      }

      function isFactoryProvider(value) {
        return !!(value && value.useFactory);
      }

      function isTypeProvider(value) {
        return typeof value === 'function';
      }

      function isClassProvider(value) {
        return !!value.useClass;
      }

      function hasDeps(value) {
        return !!value.deps;
      }

      function hasOnDestroy(value) {
        return value !== null && typeof value === 'object' && typeof value.ngOnDestroy === 'function';
      }

      function couldBeInjectableType(value) {
        return typeof value === 'function' || typeof value === 'object' && value instanceof InjectionToken;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function INJECTOR_IMPL__PRE_R3__(providers, parent, name) {
        return new StaticInjector(providers, parent, name);
      }

      function INJECTOR_IMPL__POST_R3__(providers, parent, name) {
        return createInjector({
          name: name
        }, parent, providers, name);
      }

      var INJECTOR_IMPL = INJECTOR_IMPL__POST_R3__;
      /**
       * Concrete injectors implement this interface. Injectors are configured
       * with [providers](guide/glossary#provider) that associate
       * dependencies of various types with [injection tokens](guide/glossary#di-token).
       *
       * @see ["DI Providers"](guide/dependency-injection-providers).
       * @see `StaticProvider`
       *
       * @usageNotes
       *
       *  The following example creates a service injector instance.
       *
       * {@example core/di/ts/provider_spec.ts region='ConstructorProvider'}
       *
       * ### Usage example
       *
       * {@example core/di/ts/injector_spec.ts region='Injector'}
       *
       * `Injector` returns itself when given `Injector` as a token:
       *
       * {@example core/di/ts/injector_spec.ts region='injectInjector'}
       *
       * @publicApi
       */

      var Injector = /*#__PURE__*/function () {
        function Injector() {
          _classCallCheck2(this, Injector);
        }

        _createClass2(Injector, null, [{
          key: "create",
          value: function create(options, parent) {
            if (Array.isArray(options)) {
              return INJECTOR_IMPL(options, parent, '');
            } else {
              return INJECTOR_IMPL(options.providers, options.parent, options.name || '');
            }
          }
        }]);

        return Injector;
      }();

      Injector.THROW_IF_NOT_FOUND = THROW_IF_NOT_FOUND;
      Injector.NULL = new NullInjector();
      /** @nocollapse */

      Injector.ɵprov = ɵɵdefineInjectable({
        token: Injector,
        providedIn: 'any',
        factory: function factory() {
          return ɵɵinject(INJECTOR);
        }
      });
      /**
       * @internal
       * @nocollapse
       */

      Injector.__NG_ELEMENT_ID__ = -1;

      var IDENT = function IDENT(value) {
        return value;
      };

      var ɵ0$9 = IDENT;
      var EMPTY = [];
      var CIRCULAR$1 = IDENT;

      var MULTI_PROVIDER_FN = function MULTI_PROVIDER_FN() {
        return Array.prototype.slice.call(arguments);
      };

      var ɵ1$1 = MULTI_PROVIDER_FN;
      var NO_NEW_LINE$1 = 'ɵ';

      var StaticInjector = /*#__PURE__*/function () {
        function StaticInjector(providers) {
          var parent = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Injector.NULL;
          var source = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;

          _classCallCheck2(this, StaticInjector);

          this.parent = parent;
          this.source = source;
          var records = this._records = new Map();
          records.set(Injector, {
            token: Injector,
            fn: IDENT,
            deps: EMPTY,
            value: this,
            useNew: false
          });
          records.set(INJECTOR, {
            token: INJECTOR,
            fn: IDENT,
            deps: EMPTY,
            value: this,
            useNew: false
          });
          this.scope = recursivelyProcessProviders(records, providers);
        }

        _createClass2(StaticInjector, [{
          key: "get",
          value: function get(token, notFoundValue) {
            var flags = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : InjectFlags.Default;
            var records = this._records;
            var record = records.get(token);

            if (record === undefined) {
              // This means we have never seen this record, see if it is tree shakable provider.
              var injectableDef = getInjectableDef(token);

              if (injectableDef) {
                var providedIn = injectableDef && injectableDef.providedIn;

                if (providedIn === 'any' || providedIn != null && providedIn === this.scope) {
                  records.set(token, record = resolveProvider({
                    provide: token,
                    useFactory: injectableDef.factory,
                    deps: EMPTY
                  }));
                }
              }

              if (record === undefined) {
                // Set record to null to make sure that we don't go through expensive lookup above again.
                records.set(token, null);
              }
            }

            var lastInjector = setCurrentInjector(this);

            try {
              return tryResolveToken(token, record, records, this.parent, notFoundValue, flags);
            } catch (e) {
              return catchInjectorError(e, token, 'StaticInjectorError', this.source);
            } finally {
              setCurrentInjector(lastInjector);
            }
          }
        }, {
          key: "toString",
          value: function toString() {
            var tokens = [],
                records = this._records;
            records.forEach(function (v, token) {
              return tokens.push(stringify(token));
            });
            return "StaticInjector[".concat(tokens.join(', '), "]");
          }
        }]);

        return StaticInjector;
      }();

      function resolveProvider(provider) {
        var deps = computeDeps(provider);
        var fn = IDENT;
        var value = EMPTY;
        var useNew = false;
        var provide = resolveForwardRef(provider.provide);

        if (USE_VALUE in provider) {
          // We need to use USE_VALUE in provider since provider.useValue could be defined as undefined.
          value = provider.useValue;
        } else if (provider.useFactory) {
          fn = provider.useFactory;
        } else if (provider.useExisting) {// Just use IDENT
        } else if (provider.useClass) {
          useNew = true;
          fn = resolveForwardRef(provider.useClass);
        } else if (typeof provide == 'function') {
          useNew = true;
          fn = provide;
        } else {
          throw staticError('StaticProvider does not have [useValue|useFactory|useExisting|useClass] or [provide] is not newable', provider);
        }

        return {
          deps: deps,
          fn: fn,
          useNew: useNew,
          value: value
        };
      }

      function multiProviderMixError(token) {
        return staticError('Cannot mix multi providers and regular providers', token);
      }

      function recursivelyProcessProviders(records, provider) {
        var scope = null;

        if (provider) {
          provider = resolveForwardRef(provider);

          if (Array.isArray(provider)) {
            // if we have an array recurse into the array
            for (var i = 0; i < provider.length; i++) {
              scope = recursivelyProcessProviders(records, provider[i]) || scope;
            }
          } else if (typeof provider === 'function') {
            // Functions were supported in ReflectiveInjector, but are not here. For safety give useful
            // error messages
            throw staticError('Function/Class not supported', provider);
          } else if (provider && typeof provider === 'object' && provider.provide) {
            // At this point we have what looks like a provider: {provide: ?, ....}
            var token = resolveForwardRef(provider.provide);
            var resolvedProvider = resolveProvider(provider);

            if (provider.multi === true) {
              // This is a multi provider.
              var multiProvider = records.get(token);

              if (multiProvider) {
                if (multiProvider.fn !== MULTI_PROVIDER_FN) {
                  throw multiProviderMixError(token);
                }
              } else {
                // Create a placeholder factory which will look up the constituents of the multi provider.
                records.set(token, multiProvider = {
                  token: provider.provide,
                  deps: [],
                  useNew: false,
                  fn: MULTI_PROVIDER_FN,
                  value: EMPTY
                });
              } // Treat the provider as the token.


              token = provider;
              multiProvider.deps.push({
                token: token,
                options: 6
                /* Default */

              });
            }

            var record = records.get(token);

            if (record && record.fn == MULTI_PROVIDER_FN) {
              throw multiProviderMixError(token);
            }

            if (token === INJECTOR_SCOPE) {
              scope = resolvedProvider.value;
            }

            records.set(token, resolvedProvider);
          } else {
            throw staticError('Unexpected provider', provider);
          }
        }

        return scope;
      }

      function tryResolveToken(token, record, records, parent, notFoundValue, flags) {
        try {
          return resolveToken(token, record, records, parent, notFoundValue, flags);
        } catch (e) {
          // ensure that 'e' is of type Error.
          if (!(e instanceof Error)) {
            e = new Error(e);
          }

          var path = e[NG_TEMP_TOKEN_PATH] = e[NG_TEMP_TOKEN_PATH] || [];
          path.unshift(token);

          if (record && record.value == CIRCULAR$1) {
            // Reset the Circular flag.
            record.value = EMPTY;
          }

          throw e;
        }
      }

      function resolveToken(token, record, records, parent, notFoundValue, flags) {
        var value;

        if (record && !(flags & InjectFlags.SkipSelf)) {
          // If we don't have a record, this implies that we don't own the provider hence don't know how
          // to resolve it.
          value = record.value;

          if (value == CIRCULAR$1) {
            throw Error(NO_NEW_LINE$1 + 'Circular dependency');
          } else if (value === EMPTY) {
            record.value = CIRCULAR$1;
            var obj = undefined;
            var useNew = record.useNew;
            var fn = record.fn;
            var depRecords = record.deps;
            var deps = EMPTY;

            if (depRecords.length) {
              deps = [];

              for (var i = 0; i < depRecords.length; i++) {
                var depRecord = depRecords[i];
                var options = depRecord.options;
                var childRecord = options & 2
                /* CheckSelf */
                ? records.get(depRecord.token) : undefined;
                deps.push(tryResolveToken( // Current Token to resolve
                depRecord.token, // A record which describes how to resolve the token.
                // If undefined, this means we don't have such a record
                childRecord, // Other records we know about.
                records, // If we don't know how to resolve dependency and we should not check parent for it,
                // than pass in Null injector.
                !childRecord && !(options & 4
                /* CheckParent */
                ) ? Injector.NULL : parent, options & 1
                /* Optional */
                ? null : Injector.THROW_IF_NOT_FOUND, InjectFlags.Default));
              }
            }

            record.value = value = useNew ? _construct2(fn, _toConsumableArray(deps)) : fn.apply(obj, deps);
          }
        } else if (!(flags & InjectFlags.Self)) {
          value = parent.get(token, notFoundValue, InjectFlags.Default);
        } else if (!(flags & InjectFlags.Optional)) {
          value = Injector.NULL.get(token, notFoundValue);
        } else {
          value = Injector.NULL.get(token, typeof notFoundValue !== 'undefined' ? notFoundValue : null);
        }

        return value;
      }

      function computeDeps(provider) {
        var deps = EMPTY;
        var providerDeps = provider.deps;

        if (providerDeps && providerDeps.length) {
          deps = [];

          for (var i = 0; i < providerDeps.length; i++) {
            var options = 6
            /* Default */
            ;
            var token = resolveForwardRef(providerDeps[i]);

            if (Array.isArray(token)) {
              for (var j = 0, annotations = token; j < annotations.length; j++) {
                var annotation = annotations[j];

                if (annotation instanceof Optional || annotation == Optional) {
                  options = options | 1
                  /* Optional */
                  ;
                } else if (annotation instanceof SkipSelf || annotation == SkipSelf) {
                  options = options & ~2
                  /* CheckSelf */
                  ;
                } else if (annotation instanceof Self || annotation == Self) {
                  options = options & ~4
                  /* CheckParent */
                  ;
                } else if (annotation instanceof Inject) {
                  token = annotation.token;
                } else {
                  token = resolveForwardRef(annotation);
                }
              }
            }

            deps.push({
              token: token,
              options: options
            });
          }
        } else if (provider.useExisting) {
          var _token2 = resolveForwardRef(provider.useExisting);

          deps = [{
            token: _token2,
            options: 6
            /* Default */

          }];
        } else if (!providerDeps && !(USE_VALUE in provider)) {
          // useValue & useExisting are the only ones which are exempt from deps all others need it.
          throw staticError('\'deps\' required', provider);
        }

        return deps;
      }

      function staticError(text, obj) {
        return new Error(formatError(text, obj, 'StaticInjectorError'));
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function findFirstClosedCycle(keys) {
        var res = [];

        for (var i = 0; i < keys.length; ++i) {
          if (res.indexOf(keys[i]) > -1) {
            res.push(keys[i]);
            return res;
          }

          res.push(keys[i]);
        }

        return res;
      }

      function constructResolvingPath(keys) {
        if (keys.length > 1) {
          var reversed = findFirstClosedCycle(keys.slice().reverse());
          var tokenStrs = reversed.map(function (k) {
            return stringify(k.token);
          });
          return ' (' + tokenStrs.join(' -> ') + ')';
        }

        return '';
      }

      function injectionError(injector, key, constructResolvingMessage, originalError) {
        var keys = [key];
        var errMsg = constructResolvingMessage(keys);
        var error = originalError ? wrappedError(errMsg, originalError) : Error(errMsg);
        error.addKey = addKey;
        error.keys = keys;
        error.injectors = [injector];
        error.constructResolvingMessage = constructResolvingMessage;
        error[ERROR_ORIGINAL_ERROR] = originalError;
        return error;
      }

      function addKey(injector, key) {
        this.injectors.push(injector);
        this.keys.push(key); // Note: This updated message won't be reflected in the `.stack` property

        this.message = this.constructResolvingMessage(this.keys);
      }
      /**
       * Thrown when trying to retrieve a dependency by key from {@link Injector}, but the
       * {@link Injector} does not have a {@link Provider} for the given key.
       *
       * @usageNotes
       * ### Example
       *
       * ```typescript
       * class A {
       *   constructor(b:B) {}
       * }
       *
       * expect(() => Injector.resolveAndCreate([A])).toThrowError();
       * ```
       */


      function noProviderError(injector, key) {
        return injectionError(injector, key, function (keys) {
          var first = stringify(keys[0].token);
          return "No provider for ".concat(first, "!").concat(constructResolvingPath(keys));
        });
      }
      /**
       * Thrown when dependencies form a cycle.
       *
       * @usageNotes
       * ### Example
       *
       * ```typescript
       * var injector = Injector.resolveAndCreate([
       *   {provide: "one", useFactory: (two) => "two", deps: [[new Inject("two")]]},
       *   {provide: "two", useFactory: (one) => "one", deps: [[new Inject("one")]]}
       * ]);
       *
       * expect(() => injector.get("one")).toThrowError();
       * ```
       *
       * Retrieving `A` or `B` throws a `CyclicDependencyError` as the graph above cannot be constructed.
       */


      function cyclicDependencyError(injector, key) {
        return injectionError(injector, key, function (keys) {
          return "Cannot instantiate cyclic dependency!".concat(constructResolvingPath(keys));
        });
      }
      /**
       * Thrown when a constructing type returns with an Error.
       *
       * The `InstantiationError` class contains the original error plus the dependency graph which caused
       * this object to be instantiated.
       *
       * @usageNotes
       * ### Example
       *
       * ```typescript
       * class A {
       *   constructor() {
       *     throw new Error('message');
       *   }
       * }
       *
       * var injector = Injector.resolveAndCreate([A]);
      
       * try {
       *   injector.get(A);
       * } catch (e) {
       *   expect(e instanceof InstantiationError).toBe(true);
       *   expect(e.originalException.message).toEqual("message");
       *   expect(e.originalStack).toBeDefined();
       * }
       * ```
       */


      function instantiationError(injector, originalException, originalStack, key) {
        return injectionError(injector, key, function (keys) {
          var first = stringify(keys[0].token);
          return "".concat(originalException.message, ": Error during instantiation of ").concat(first, "!").concat(constructResolvingPath(keys), ".");
        }, originalException);
      }
      /**
       * Thrown when an object other then {@link Provider} (or `Type`) is passed to {@link Injector}
       * creation.
       *
       * @usageNotes
       * ### Example
       *
       * ```typescript
       * expect(() => Injector.resolveAndCreate(["not a type"])).toThrowError();
       * ```
       */


      function invalidProviderError(provider) {
        return Error("Invalid provider - only instances of Provider and Type are allowed, got: ".concat(provider));
      }
      /**
       * Thrown when the class has no annotation information.
       *
       * Lack of annotation information prevents the {@link Injector} from determining which dependencies
       * need to be injected into the constructor.
       *
       * @usageNotes
       * ### Example
       *
       * ```typescript
       * class A {
       *   constructor(b) {}
       * }
       *
       * expect(() => Injector.resolveAndCreate([A])).toThrowError();
       * ```
       *
       * This error is also thrown when the class not marked with {@link Injectable} has parameter types.
       *
       * ```typescript
       * class B {}
       *
       * class A {
       *   constructor(b:B) {} // no information about the parameter types of A is available at runtime.
       * }
       *
       * expect(() => Injector.resolveAndCreate([A,B])).toThrowError();
       * ```
       *
       */


      function noAnnotationError(typeOrFunc, params) {
        var signature = [];

        for (var i = 0, ii = params.length; i < ii; i++) {
          var parameter = params[i];

          if (!parameter || parameter.length == 0) {
            signature.push('?');
          } else {
            signature.push(parameter.map(stringify).join(' '));
          }
        }

        return Error('Cannot resolve all parameters for \'' + stringify(typeOrFunc) + '\'(' + signature.join(', ') + '). ' + 'Make sure that all the parameters are decorated with Inject or have valid type annotations and that \'' + stringify(typeOrFunc) + '\' is decorated with Injectable.');
      }
      /**
       * Thrown when getting an object by index.
       *
       * @usageNotes
       * ### Example
       *
       * ```typescript
       * class A {}
       *
       * var injector = Injector.resolveAndCreate([A]);
       *
       * expect(() => injector.getAt(100)).toThrowError();
       * ```
       *
       */


      function outOfBoundsError(index) {
        return Error("Index ".concat(index, " is out-of-bounds."));
      } // TODO: add a working example after alpha38 is released

      /**
       * Thrown when a multi provider and a regular provider are bound to the same token.
       *
       * @usageNotes
       * ### Example
       *
       * ```typescript
       * expect(() => Injector.resolveAndCreate([
       *   { provide: "Strings", useValue: "string1", multi: true},
       *   { provide: "Strings", useValue: "string2", multi: false}
       * ])).toThrowError();
       * ```
       */


      function mixingMultiProvidersWithRegularProvidersError(provider1, provider2) {
        return Error("Cannot mix multi providers and regular providers, got: ".concat(provider1, " ").concat(provider2));
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * A unique object used for retrieving items from the {@link ReflectiveInjector}.
       *
       * Keys have:
       * - a system-wide unique `id`.
       * - a `token`.
       *
       * `Key` is used internally by {@link ReflectiveInjector} because its system-wide unique `id` allows
       * the
       * injector to store created objects in a more efficient way.
       *
       * `Key` should not be created directly. {@link ReflectiveInjector} creates keys automatically when
       * resolving
       * providers.
       *
       * @deprecated No replacement
       * @publicApi
       */


      var ReflectiveKey = /*#__PURE__*/function () {
        /**
         * Private
         */
        function ReflectiveKey(token, id) {
          _classCallCheck2(this, ReflectiveKey);

          this.token = token;
          this.id = id;

          if (!token) {
            throw new Error('Token must be defined!');
          }

          this.displayName = stringify(this.token);
        }
        /**
         * Retrieves a `Key` for a token.
         */


        _createClass2(ReflectiveKey, null, [{
          key: "get",
          value: function get(token) {
            return _globalKeyRegistry.get(resolveForwardRef(token));
          }
          /**
           * @returns the number of keys registered in the system.
           */

        }, {
          key: "numberOfKeys",
          get: function get() {
            return _globalKeyRegistry.numberOfKeys;
          }
        }]);

        return ReflectiveKey;
      }();

      var KeyRegistry = /*#__PURE__*/function () {
        function KeyRegistry() {
          _classCallCheck2(this, KeyRegistry);

          this._allKeys = new Map();
        }

        _createClass2(KeyRegistry, [{
          key: "get",
          value: function get(token) {
            if (token instanceof ReflectiveKey) return token;

            if (this._allKeys.has(token)) {
              return this._allKeys.get(token);
            }

            var newKey = new ReflectiveKey(token, ReflectiveKey.numberOfKeys);

            this._allKeys.set(token, newKey);

            return newKey;
          }
        }, {
          key: "numberOfKeys",
          get: function get() {
            return this._allKeys.size;
          }
        }]);

        return KeyRegistry;
      }();

      var _globalKeyRegistry = new KeyRegistry();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Provides access to reflection data about symbols. Used internally by Angular
       * to power dependency injection and compilation.
       */


      var Reflector = /*#__PURE__*/function () {
        function Reflector(reflectionCapabilities) {
          _classCallCheck2(this, Reflector);

          this.reflectionCapabilities = reflectionCapabilities;
        }

        _createClass2(Reflector, [{
          key: "updateCapabilities",
          value: function updateCapabilities(caps) {
            this.reflectionCapabilities = caps;
          }
        }, {
          key: "factory",
          value: function factory(type) {
            return this.reflectionCapabilities.factory(type);
          }
        }, {
          key: "parameters",
          value: function parameters(typeOrFunc) {
            return this.reflectionCapabilities.parameters(typeOrFunc);
          }
        }, {
          key: "annotations",
          value: function annotations(typeOrFunc) {
            return this.reflectionCapabilities.annotations(typeOrFunc);
          }
        }, {
          key: "propMetadata",
          value: function propMetadata(typeOrFunc) {
            return this.reflectionCapabilities.propMetadata(typeOrFunc);
          }
        }, {
          key: "hasLifecycleHook",
          value: function hasLifecycleHook(type, lcProperty) {
            return this.reflectionCapabilities.hasLifecycleHook(type, lcProperty);
          }
        }, {
          key: "getter",
          value: function getter(name) {
            return this.reflectionCapabilities.getter(name);
          }
        }, {
          key: "setter",
          value: function setter(name) {
            return this.reflectionCapabilities.setter(name);
          }
        }, {
          key: "method",
          value: function method(name) {
            return this.reflectionCapabilities.method(name);
          }
        }, {
          key: "importUri",
          value: function importUri(type) {
            return this.reflectionCapabilities.importUri(type);
          }
        }, {
          key: "resourceUri",
          value: function resourceUri(type) {
            return this.reflectionCapabilities.resourceUri(type);
          }
        }, {
          key: "resolveIdentifier",
          value: function resolveIdentifier(name, moduleUrl, members, runtime) {
            return this.reflectionCapabilities.resolveIdentifier(name, moduleUrl, members, runtime);
          }
        }, {
          key: "resolveEnum",
          value: function resolveEnum(identifier, name) {
            return this.reflectionCapabilities.resolveEnum(identifier, name);
          }
        }]);

        return Reflector;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * The {@link Reflector} used internally in Angular to access metadata
       * about symbols.
       */


      var reflector = new Reflector(new ReflectionCapabilities());
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * `Dependency` is used by the framework to extend DI.
       * This is internal to Angular and should not be used directly.
       */

      var ReflectiveDependency = /*#__PURE__*/function () {
        function ReflectiveDependency(key, optional, visibility) {
          _classCallCheck2(this, ReflectiveDependency);

          this.key = key;
          this.optional = optional;
          this.visibility = visibility;
        }

        _createClass2(ReflectiveDependency, null, [{
          key: "fromKey",
          value: function fromKey(key) {
            return new ReflectiveDependency(key, false, null);
          }
        }]);

        return ReflectiveDependency;
      }();

      var _EMPTY_LIST = [];

      var ResolvedReflectiveProvider_ = function ResolvedReflectiveProvider_(key, resolvedFactories, multiProvider) {
        _classCallCheck2(this, ResolvedReflectiveProvider_);

        this.key = key;
        this.resolvedFactories = resolvedFactories;
        this.multiProvider = multiProvider;
        this.resolvedFactory = this.resolvedFactories[0];
      };
      /**
       * An internal resolved representation of a factory function created by resolving `Provider`.
       * @publicApi
       */


      var ResolvedReflectiveFactory = function ResolvedReflectiveFactory(
      /**
       * Factory function which can return an instance of an object represented by a key.
       */
      factory,
      /**
       * Arguments (dependencies) to the `factory` function.
       */
      dependencies) {
        _classCallCheck2(this, ResolvedReflectiveFactory);

        this.factory = factory;
        this.dependencies = dependencies;
      };
      /**
       * Resolve a single provider.
       */


      function resolveReflectiveFactory(provider) {
        var factoryFn;
        var resolvedDeps;

        if (provider.useClass) {
          var useClass = resolveForwardRef(provider.useClass);
          factoryFn = reflector.factory(useClass);
          resolvedDeps = _dependenciesFor(useClass);
        } else if (provider.useExisting) {
          factoryFn = function factoryFn(aliasInstance) {
            return aliasInstance;
          };

          resolvedDeps = [ReflectiveDependency.fromKey(ReflectiveKey.get(provider.useExisting))];
        } else if (provider.useFactory) {
          factoryFn = provider.useFactory;
          resolvedDeps = constructDependencies(provider.useFactory, provider.deps);
        } else {
          factoryFn = function factoryFn() {
            return provider.useValue;
          };

          resolvedDeps = _EMPTY_LIST;
        }

        return new ResolvedReflectiveFactory(factoryFn, resolvedDeps);
      }
      /**
       * Converts the `Provider` into `ResolvedProvider`.
       *
       * `Injector` internally only uses `ResolvedProvider`, `Provider` contains convenience provider
       * syntax.
       */


      function resolveReflectiveProvider(provider) {
        return new ResolvedReflectiveProvider_(ReflectiveKey.get(provider.provide), [resolveReflectiveFactory(provider)], provider.multi || false);
      }
      /**
       * Resolve a list of Providers.
       */


      function resolveReflectiveProviders(providers) {
        var normalized = _normalizeProviders(providers, []);

        var resolved = normalized.map(resolveReflectiveProvider);
        var resolvedProviderMap = mergeResolvedReflectiveProviders(resolved, new Map());
        return Array.from(resolvedProviderMap.values());
      }
      /**
       * Merges a list of ResolvedProviders into a list where each key is contained exactly once and
       * multi providers have been merged.
       */


      function mergeResolvedReflectiveProviders(providers, normalizedProvidersMap) {
        for (var i = 0; i < providers.length; i++) {
          var provider = providers[i];
          var existing = normalizedProvidersMap.get(provider.key.id);

          if (existing) {
            if (provider.multiProvider !== existing.multiProvider) {
              throw mixingMultiProvidersWithRegularProvidersError(existing, provider);
            }

            if (provider.multiProvider) {
              for (var j = 0; j < provider.resolvedFactories.length; j++) {
                existing.resolvedFactories.push(provider.resolvedFactories[j]);
              }
            } else {
              normalizedProvidersMap.set(provider.key.id, provider);
            }
          } else {
            var resolvedProvider = void 0;

            if (provider.multiProvider) {
              resolvedProvider = new ResolvedReflectiveProvider_(provider.key, provider.resolvedFactories.slice(), provider.multiProvider);
            } else {
              resolvedProvider = provider;
            }

            normalizedProvidersMap.set(provider.key.id, resolvedProvider);
          }
        }

        return normalizedProvidersMap;
      }

      function _normalizeProviders(providers, res) {
        providers.forEach(function (b) {
          if (b instanceof Type) {
            res.push({
              provide: b,
              useClass: b
            });
          } else if (b && typeof b == 'object' && b.provide !== undefined) {
            res.push(b);
          } else if (Array.isArray(b)) {
            _normalizeProviders(b, res);
          } else {
            throw invalidProviderError(b);
          }
        });
        return res;
      }

      function constructDependencies(typeOrFunc, dependencies) {
        if (!dependencies) {
          return _dependenciesFor(typeOrFunc);
        } else {
          var params = dependencies.map(function (t) {
            return [t];
          });
          return dependencies.map(function (t) {
            return _extractToken(typeOrFunc, t, params);
          });
        }
      }

      function _dependenciesFor(typeOrFunc) {
        var params = reflector.parameters(typeOrFunc);
        if (!params) return [];

        if (params.some(function (p) {
          return p == null;
        })) {
          throw noAnnotationError(typeOrFunc, params);
        }

        return params.map(function (p) {
          return _extractToken(typeOrFunc, p, params);
        });
      }

      function _extractToken(typeOrFunc, metadata, params) {
        var token = null;
        var optional = false;

        if (!Array.isArray(metadata)) {
          if (metadata instanceof Inject) {
            return _createDependency(metadata.token, optional, null);
          } else {
            return _createDependency(metadata, optional, null);
          }
        }

        var visibility = null;

        for (var i = 0; i < metadata.length; ++i) {
          var paramMetadata = metadata[i];

          if (paramMetadata instanceof Type) {
            token = paramMetadata;
          } else if (paramMetadata instanceof Inject) {
            token = paramMetadata.token;
          } else if (paramMetadata instanceof Optional) {
            optional = true;
          } else if (paramMetadata instanceof Self || paramMetadata instanceof SkipSelf) {
            visibility = paramMetadata;
          } else if (paramMetadata instanceof InjectionToken) {
            token = paramMetadata;
          }
        }

        token = resolveForwardRef(token);

        if (token != null) {
          return _createDependency(token, optional, visibility);
        } else {
          throw noAnnotationError(typeOrFunc, params);
        }
      }

      function _createDependency(token, optional, visibility) {
        return new ReflectiveDependency(ReflectiveKey.get(token), optional, visibility);
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */
      // Threshold for the dynamic version


      var UNDEFINED = {};
      /**
       * A ReflectiveDependency injection container used for instantiating objects and resolving
       * dependencies.
       *
       * An `Injector` is a replacement for a `new` operator, which can automatically resolve the
       * constructor dependencies.
       *
       * In typical use, application code asks for the dependencies in the constructor and they are
       * resolved by the `Injector`.
       *
       * @usageNotes
       * ### Example
       *
       * The following example creates an `Injector` configured to create `Engine` and `Car`.
       *
       * ```typescript
       * @Injectable()
       * class Engine {
       * }
       *
       * @Injectable()
       * class Car {
       *   constructor(public engine:Engine) {}
       * }
       *
       * var injector = ReflectiveInjector.resolveAndCreate([Car, Engine]);
       * var car = injector.get(Car);
       * expect(car instanceof Car).toBe(true);
       * expect(car.engine instanceof Engine).toBe(true);
       * ```
       *
       * Notice, we don't use the `new` operator because we explicitly want to have the `Injector`
       * resolve all of the object's dependencies automatically.
       *
       * @deprecated from v5 - slow and brings in a lot of code, Use `Injector.create` instead.
       * @publicApi
       */

      var ReflectiveInjector = /*#__PURE__*/function () {
        function ReflectiveInjector() {
          _classCallCheck2(this, ReflectiveInjector);
        }

        _createClass2(ReflectiveInjector, null, [{
          key: "resolve",
          value:
          /**
           * Turns an array of provider definitions into an array of resolved providers.
           *
           * A resolution is a process of flattening multiple nested arrays and converting individual
           * providers into an array of `ResolvedReflectiveProvider`s.
           *
           * @usageNotes
           * ### Example
           *
           * ```typescript
           * @Injectable()
           * class Engine {
           * }
           *
           * @Injectable()
           * class Car {
           *   constructor(public engine:Engine) {}
           * }
           *
           * var providers = ReflectiveInjector.resolve([Car, [[Engine]]]);
           *
           * expect(providers.length).toEqual(2);
           *
           * expect(providers[0] instanceof ResolvedReflectiveProvider).toBe(true);
           * expect(providers[0].key.displayName).toBe("Car");
           * expect(providers[0].dependencies.length).toEqual(1);
           * expect(providers[0].factory).toBeDefined();
           *
           * expect(providers[1].key.displayName).toBe("Engine");
           * });
           * ```
           *
           */
          function resolve(providers) {
            return resolveReflectiveProviders(providers);
          }
          /**
           * Resolves an array of providers and creates an injector from those providers.
           *
           * The passed-in providers can be an array of `Type`, `Provider`,
           * or a recursive array of more providers.
           *
           * @usageNotes
           * ### Example
           *
           * ```typescript
           * @Injectable()
           * class Engine {
           * }
           *
           * @Injectable()
           * class Car {
           *   constructor(public engine:Engine) {}
           * }
           *
           * var injector = ReflectiveInjector.resolveAndCreate([Car, Engine]);
           * expect(injector.get(Car) instanceof Car).toBe(true);
           * ```
           */

        }, {
          key: "resolveAndCreate",
          value: function resolveAndCreate(providers, parent) {
            var ResolvedReflectiveProviders = ReflectiveInjector.resolve(providers);
            return ReflectiveInjector.fromResolvedProviders(ResolvedReflectiveProviders, parent);
          }
          /**
           * Creates an injector from previously resolved providers.
           *
           * This API is the recommended way to construct injectors in performance-sensitive parts.
           *
           * @usageNotes
           * ### Example
           *
           * ```typescript
           * @Injectable()
           * class Engine {
           * }
           *
           * @Injectable()
           * class Car {
           *   constructor(public engine:Engine) {}
           * }
           *
           * var providers = ReflectiveInjector.resolve([Car, Engine]);
           * var injector = ReflectiveInjector.fromResolvedProviders(providers);
           * expect(injector.get(Car) instanceof Car).toBe(true);
           * ```
           */

        }, {
          key: "fromResolvedProviders",
          value: function fromResolvedProviders(providers, parent) {
            return new ReflectiveInjector_(providers, parent);
          }
        }]);

        return ReflectiveInjector;
      }();

      var ReflectiveInjector_ = /*#__PURE__*/function () {
        /**
         * Private
         */
        function ReflectiveInjector_(_providers, _parent) {
          _classCallCheck2(this, ReflectiveInjector_);

          /** @internal */
          this._constructionCounter = 0;
          this._providers = _providers;
          this.parent = _parent || null;
          var len = _providers.length;
          this.keyIds = [];
          this.objs = [];

          for (var i = 0; i < len; i++) {
            this.keyIds[i] = _providers[i].key.id;
            this.objs[i] = UNDEFINED;
          }
        }

        _createClass2(ReflectiveInjector_, [{
          key: "get",
          value: function get(token) {
            var notFoundValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : THROW_IF_NOT_FOUND;
            return this._getByKey(ReflectiveKey.get(token), null, notFoundValue);
          }
        }, {
          key: "resolveAndCreateChild",
          value: function resolveAndCreateChild(providers) {
            var ResolvedReflectiveProviders = ReflectiveInjector.resolve(providers);
            return this.createChildFromResolved(ResolvedReflectiveProviders);
          }
        }, {
          key: "createChildFromResolved",
          value: function createChildFromResolved(providers) {
            var inj = new ReflectiveInjector_(providers);
            inj.parent = this;
            return inj;
          }
        }, {
          key: "resolveAndInstantiate",
          value: function resolveAndInstantiate(provider) {
            return this.instantiateResolved(ReflectiveInjector.resolve([provider])[0]);
          }
        }, {
          key: "instantiateResolved",
          value: function instantiateResolved(provider) {
            return this._instantiateProvider(provider);
          }
        }, {
          key: "getProviderAtIndex",
          value: function getProviderAtIndex(index) {
            if (index < 0 || index >= this._providers.length) {
              throw outOfBoundsError(index);
            }

            return this._providers[index];
          }
          /** @internal */

        }, {
          key: "_new",
          value: function _new(provider) {
            if (this._constructionCounter++ > this._getMaxNumberOfObjects()) {
              throw cyclicDependencyError(this, provider.key);
            }

            return this._instantiateProvider(provider);
          }
        }, {
          key: "_getMaxNumberOfObjects",
          value: function _getMaxNumberOfObjects() {
            return this.objs.length;
          }
        }, {
          key: "_instantiateProvider",
          value: function _instantiateProvider(provider) {
            if (provider.multiProvider) {
              var res = [];

              for (var i = 0; i < provider.resolvedFactories.length; ++i) {
                res[i] = this._instantiate(provider, provider.resolvedFactories[i]);
              }

              return res;
            } else {
              return this._instantiate(provider, provider.resolvedFactories[0]);
            }
          }
        }, {
          key: "_instantiate",
          value: function _instantiate(provider, ResolvedReflectiveFactory) {
            var _this408 = this;

            var factory = ResolvedReflectiveFactory.factory;
            var deps;

            try {
              deps = ResolvedReflectiveFactory.dependencies.map(function (dep) {
                return _this408._getByReflectiveDependency(dep);
              });
            } catch (e) {
              if (e.addKey) {
                e.addKey(this, provider.key);
              }

              throw e;
            }

            var obj;

            try {
              obj = factory.apply(void 0, _toConsumableArray(deps));
            } catch (e) {
              throw instantiationError(this, e, e.stack, provider.key);
            }

            return obj;
          }
        }, {
          key: "_getByReflectiveDependency",
          value: function _getByReflectiveDependency(dep) {
            return this._getByKey(dep.key, dep.visibility, dep.optional ? null : THROW_IF_NOT_FOUND);
          }
        }, {
          key: "_getByKey",
          value: function _getByKey(key, visibility, notFoundValue) {
            if (key === ReflectiveInjector_.INJECTOR_KEY) {
              return this;
            }

            if (visibility instanceof Self) {
              return this._getByKeySelf(key, notFoundValue);
            } else {
              return this._getByKeyDefault(key, notFoundValue, visibility);
            }
          }
        }, {
          key: "_getObjByKeyId",
          value: function _getObjByKeyId(keyId) {
            for (var i = 0; i < this.keyIds.length; i++) {
              if (this.keyIds[i] === keyId) {
                if (this.objs[i] === UNDEFINED) {
                  this.objs[i] = this._new(this._providers[i]);
                }

                return this.objs[i];
              }
            }

            return UNDEFINED;
          }
          /** @internal */

        }, {
          key: "_throwOrNull",
          value: function _throwOrNull(key, notFoundValue) {
            if (notFoundValue !== THROW_IF_NOT_FOUND) {
              return notFoundValue;
            } else {
              throw noProviderError(this, key);
            }
          }
          /** @internal */

        }, {
          key: "_getByKeySelf",
          value: function _getByKeySelf(key, notFoundValue) {
            var obj = this._getObjByKeyId(key.id);

            return obj !== UNDEFINED ? obj : this._throwOrNull(key, notFoundValue);
          }
          /** @internal */

        }, {
          key: "_getByKeyDefault",
          value: function _getByKeyDefault(key, notFoundValue, visibility) {
            var inj;

            if (visibility instanceof SkipSelf) {
              inj = this.parent;
            } else {
              inj = this;
            }

            while (inj instanceof ReflectiveInjector_) {
              var inj_ = inj;

              var obj = inj_._getObjByKeyId(key.id);

              if (obj !== UNDEFINED) return obj;
              inj = inj_.parent;
            }

            if (inj !== null) {
              return inj.get(key.token, notFoundValue);
            } else {
              return this._throwOrNull(key, notFoundValue);
            }
          }
        }, {
          key: "displayName",
          get: function get() {
            var providers = _mapProviders(this, function (b) {
              return ' "' + b.key.displayName + '" ';
            }).join(', ');

            return "ReflectiveInjector(providers: [".concat(providers, "])");
          }
        }, {
          key: "toString",
          value: function toString() {
            return this.displayName;
          }
        }]);

        return ReflectiveInjector_;
      }();

      ReflectiveInjector_.INJECTOR_KEY = ReflectiveKey.get(Injector);

      function _mapProviders(injector, fn) {
        var res = [];

        for (var i = 0; i < injector._providers.length; ++i) {
          res[i] = fn(injector.getProviderAtIndex(i));
        }

        return res;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * A DI token that you can use to create a virtual [provider](guide/glossary#provider)
       * that will populate the `entryComponents` field of components and NgModules
       * based on its `useValue` property value.
       * All components that are referenced in the `useValue` value (either directly
       * or in a nested array or map) are added to the `entryComponents` property.
       *
       * @usageNotes
       *
       * The following example shows how the router can populate the `entryComponents`
       * field of an NgModule based on a router configuration that refers
       * to components.
       *
       * ```typescript
       * // helper function inside the router
       * function provideRoutes(routes) {
       *   return [
       *     {provide: ROUTES, useValue: routes},
       *     {provide: ANALYZE_FOR_ENTRY_COMPONENTS, useValue: routes, multi: true}
       *   ];
       * }
       *
       * // user code
       * let routes = [
       *   {path: '/root', component: RootComp},
       *   {path: '/teams', component: TeamsComp}
       * ];
       *
       * @NgModule({
       *   providers: [provideRoutes(routes)]
       * })
       * class ModuleWithRoutes {}
       * ```
       *
       * @publicApi
       * @deprecated Since 9.0.0. With Ivy, this property is no longer necessary.
       */


      var ANALYZE_FOR_ENTRY_COMPONENTS = new InjectionToken('AnalyzeForEntryComponents');
      /**
       * Base class for query metadata.
       *
       * @see `ContentChildren`.
       * @see `ContentChild`.
       * @see `ViewChildren`.
       * @see `ViewChild`.
       *
       * @publicApi
       */

      var Query = function Query() {
        _classCallCheck2(this, Query);
      };

      var ɵ0$a = function ɵ0$a(selector) {
        var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
        return Object.assign({
          selector: selector,
          first: false,
          isViewQuery: false,
          descendants: false
        }, data);
      };
      /**
       * ContentChildren decorator and metadata.
       *
       *
       * @Annotation
       * @publicApi
       */


      var ContentChildren = makePropDecorator('ContentChildren', ɵ0$a, Query);

      var ɵ1$2 = function ɵ1$2(selector) {
        var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
        return Object.assign({
          selector: selector,
          first: true,
          isViewQuery: false,
          descendants: true
        }, data);
      };
      /**
       * ContentChild decorator and metadata.
       *
       *
       * @Annotation
       *
       * @publicApi
       */


      var ContentChild = makePropDecorator('ContentChild', ɵ1$2, Query);

      var ɵ2 = function ɵ2(selector) {
        var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
        return Object.assign({
          selector: selector,
          first: false,
          isViewQuery: true,
          descendants: true
        }, data);
      };
      /**
       * ViewChildren decorator and metadata.
       *
       * @Annotation
       * @publicApi
       */


      var ViewChildren = makePropDecorator('ViewChildren', ɵ2, Query);

      var ɵ3 = function ɵ3(selector, data) {
        return Object.assign({
          selector: selector,
          first: true,
          isViewQuery: true,
          descendants: true
        }, data);
      };
      /**
       * ViewChild decorator and metadata.
       *
       * @Annotation
       * @publicApi
       */


      var ViewChild = makePropDecorator('ViewChild', ɵ3, Query);
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Used to resolve resource URLs on `@Component` when used with JIT compilation.
       *
       * Example:
       * ```
       * @Component({
       *   selector: 'my-comp',
       *   templateUrl: 'my-comp.html', // This requires asynchronous resolution
       * })
       * class MyComponent{
       * }
       *
       * // Calling `renderComponent` will fail because `renderComponent` is a synchronous process
       * // and `MyComponent`'s `@Component.templateUrl` needs to be resolved asynchronously.
       *
       * // Calling `resolveComponentResources()` will resolve `@Component.templateUrl` into
       * // `@Component.template`, which allows `renderComponent` to proceed in a synchronous manner.
       *
       * // Use browser's `fetch()` function as the default resource resolution strategy.
       * resolveComponentResources(fetch).then(() => {
       *   // After resolution all URLs have been converted into `template` strings.
       *   renderComponent(MyComponent);
       * });
       *
       * ```
       *
       * NOTE: In AOT the resolution happens during compilation, and so there should be no need
       * to call this method outside JIT mode.
       *
       * @param resourceResolver a function which is responsible for returning a `Promise` to the
       * contents of the resolved URL. Browser's `fetch()` method is a good default implementation.
       */

      function resolveComponentResources(resourceResolver) {
        // Store all promises which are fetching the resources.
        var componentResolved = []; // Cache so that we don't fetch the same resource more than once.

        var urlMap = new Map();

        function cachedResourceResolve(url) {
          var promise = urlMap.get(url);

          if (!promise) {
            var resp = resourceResolver(url);
            urlMap.set(url, promise = resp.then(unwrapResponse));
          }

          return promise;
        }

        componentResourceResolutionQueue.forEach(function (component, type) {
          var promises = [];

          if (component.templateUrl) {
            promises.push(cachedResourceResolve(component.templateUrl).then(function (template) {
              component.template = template;
            }));
          }

          var styleUrls = component.styleUrls;
          var styles = component.styles || (component.styles = []);
          var styleOffset = component.styles.length;
          styleUrls && styleUrls.forEach(function (styleUrl, index) {
            styles.push(''); // pre-allocate array.

            promises.push(cachedResourceResolve(styleUrl).then(function (style) {
              styles[styleOffset + index] = style;
              styleUrls.splice(styleUrls.indexOf(styleUrl), 1);

              if (styleUrls.length == 0) {
                component.styleUrls = undefined;
              }
            }));
          });
          var fullyResolved = Promise.all(promises).then(function () {
            return componentDefResolved(type);
          });
          componentResolved.push(fullyResolved);
        });
        clearResolutionOfComponentResourcesQueue();
        return Promise.all(componentResolved).then(function () {
          return undefined;
        });
      }

      var componentResourceResolutionQueue = new Map(); // Track when existing ɵcmp for a Type is waiting on resources.

      var componentDefPendingResolution = new Set();

      function maybeQueueResolutionOfComponentResources(type, metadata) {
        if (componentNeedsResolution(metadata)) {
          componentResourceResolutionQueue.set(type, metadata);
          componentDefPendingResolution.add(type);
        }
      }

      function isComponentDefPendingResolution(type) {
        return componentDefPendingResolution.has(type);
      }

      function componentNeedsResolution(component) {
        return !!(component.templateUrl && !component.hasOwnProperty('template') || component.styleUrls && component.styleUrls.length);
      }

      function clearResolutionOfComponentResourcesQueue() {
        var old = componentResourceResolutionQueue;
        componentResourceResolutionQueue = new Map();
        return old;
      }

      function restoreComponentResolutionQueue(queue) {
        componentDefPendingResolution.clear();
        queue.forEach(function (_, type) {
          return componentDefPendingResolution.add(type);
        });
        componentResourceResolutionQueue = queue;
      }

      function isComponentResourceResolutionQueueEmpty() {
        return componentResourceResolutionQueue.size === 0;
      }

      function unwrapResponse(response) {
        return typeof response == 'string' ? response : response.text();
      }

      function componentDefResolved(type) {
        componentDefPendingResolution["delete"](type);
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Compute the static styling (class/style) from `TAttributes`.
       *
       * This function should be called during `firstCreatePass` only.
       *
       * @param tNode The `TNode` into which the styling information should be loaded.
       * @param attrs `TAttributes` containing the styling information.
       * @param writeToHost Where should the resulting static styles be written?
       *   - `false` Write to `TNode.stylesWithoutHost` / `TNode.classesWithoutHost`
       *   - `true` Write to `TNode.styles` / `TNode.classes`
       */


      function computeStaticStyling(tNode, attrs, writeToHost) {
        ngDevMode && assertFirstCreatePass(getTView(), 'Expecting to be called in first template pass only');
        var styles = writeToHost ? tNode.styles : null;
        var classes = writeToHost ? tNode.classes : null;
        var mode = 0;

        if (attrs !== null) {
          for (var i = 0; i < attrs.length; i++) {
            var value = attrs[i];

            if (typeof value === 'number') {
              mode = value;
            } else if (mode == 1
            /* Classes */
            ) {
              classes = concatStringsWithSpace(classes, value);
            } else if (mode == 2
            /* Styles */
            ) {
              var style = value;
              var styleValue = attrs[++i];
              styles = concatStringsWithSpace(styles, style + ': ' + styleValue + ';');
            }
          }
        }

        writeToHost ? tNode.styles = styles : tNode.stylesWithoutHost = styles;
        writeToHost ? tNode.classes = classes : tNode.classesWithoutHost = classes;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Synchronously perform change detection on a component (and possibly its sub-components).
       *
       * This function triggers change detection in a synchronous way on a component.
       *
       * @param component The component which the change detection should be performed on.
       */


      function detectChanges(component) {
        var view = getComponentViewByInstance(component);
        detectChangesInternal(view[TVIEW], view, component);
      }
      /**
       * Marks the component as dirty (needing change detection). Marking a component dirty will
       * schedule a change detection on it at some point in the future.
       *
       * Marking an already dirty component as dirty won't do anything. Only one outstanding change
       * detection can be scheduled per component tree.
       *
       * @param component Component to mark as dirty.
       */


      function markDirty(component) {
        ngDevMode && assertDefined(component, 'component');
        var rootView = markViewDirty(getComponentViewByInstance(component));
        ngDevMode && assertDefined(rootView[CONTEXT], 'rootContext should be defined');
        scheduleTick(rootView[CONTEXT], 1
        /* DetectChanges */
        );
      }
      /**
       * Used to perform change detection on the whole application.
       *
       * This is equivalent to `detectChanges`, but invoked on root component. Additionally, `tick`
       * executes lifecycle hooks and conditionally checks components based on their
       * `ChangeDetectionStrategy` and dirtiness.
       *
       * The preferred way to trigger change detection is to call `markDirty`. `markDirty` internally
       * schedules `tick` using a scheduler in order to coalesce multiple `markDirty` calls into a
       * single change detection run. By default, the scheduler is `requestAnimationFrame`, but can
       * be changed when calling `renderComponent` and providing the `scheduler` option.
       */


      function tick(component) {
        var rootView = getRootView(component);
        var rootContext = rootView[CONTEXT];
        tickRootContext(rootContext);
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Retrieves the component instance associated with a given DOM element.
       *
       * @usageNotes
       * Given the following DOM structure:
       * ```html
       * <my-app>
       *   <div>
       *     <child-comp></child-comp>
       *   </div>
       * </my-app>
       * ```
       * Calling `getComponent` on `<child-comp>` will return the instance of `ChildComponent`
       * associated with this DOM element.
       *
       * Calling the function on `<my-app>` will return the `MyApp` instance.
       *
       *
       * @param element DOM element from which the component should be retrieved.
       * @returns Component instance associated with the element or `null` if there
       *    is no component associated with it.
       *
       * @publicApi
       * @globalApi ng
       */


      function getComponent(element) {
        assertDomElement(element);
        var context = loadLContext(element, false);
        if (context === null) return null;

        if (context.component === undefined) {
          context.component = getComponentAtNodeIndex(context.nodeIndex, context.lView);
        }

        return context.component;
      }
      /**
       * If inside an embedded view (e.g. `*ngIf` or `*ngFor`), retrieves the context of the embedded
       * view that the element is part of. Otherwise retrieves the instance of the component whose view
       * owns the element (in this case, the result is the same as calling `getOwningComponent`).
       *
       * @param element Element for which to get the surrounding component instance.
       * @returns Instance of the component that is around the element or null if the element isn't
       *    inside any component.
       *
       * @publicApi
       * @globalApi ng
       */


      function getContext(element) {
        assertDomElement(element);
        var context = loadLContext(element, false);
        return context === null ? null : context.lView[CONTEXT];
      }
      /**
       * Retrieves the component instance whose view contains the DOM element.
       *
       * For example, if `<child-comp>` is used in the template of `<app-comp>`
       * (i.e. a `ViewChild` of `<app-comp>`), calling `getOwningComponent` on `<child-comp>`
       * would return `<app-comp>`.
       *
       * @param elementOrDir DOM element, component or directive instance
       *    for which to retrieve the root components.
       * @returns Component instance whose view owns the DOM element or null if the element is not
       *    part of a component view.
       *
       * @publicApi
       * @globalApi ng
       */


      function getOwningComponent(elementOrDir) {
        var context = loadLContext(elementOrDir, false);
        if (context === null) return null;
        var lView = context.lView;
        var parent;
        ngDevMode && assertLView(lView);

        while (lView[TVIEW].type === 2
        /* Embedded */
        && (parent = getLViewParent(lView))) {
          lView = parent;
        }

        return lView[FLAGS] & 512
        /* IsRoot */
        ? null : lView[CONTEXT];
      }
      /**
       * Retrieves all root components associated with a DOM element, directive or component instance.
       * Root components are those which have been bootstrapped by Angular.
       *
       * @param elementOrDir DOM element, component or directive instance
       *    for which to retrieve the root components.
       * @returns Root components associated with the target object.
       *
       * @publicApi
       * @globalApi ng
       */


      function getRootComponents(elementOrDir) {
        return _toConsumableArray(getRootContext(elementOrDir).components);
      }
      /**
       * Retrieves an `Injector` associated with an element, component or directive instance.
       *
       * @param elementOrDir DOM element, component or directive instance for which to
       *    retrieve the injector.
       * @returns Injector associated with the element, component or directive instance.
       *
       * @publicApi
       * @globalApi ng
       */


      function getInjector(elementOrDir) {
        var context = loadLContext(elementOrDir, false);
        if (context === null) return Injector.NULL;
        var tNode = context.lView[TVIEW].data[context.nodeIndex];
        return new NodeInjector(tNode, context.lView);
      }
      /**
       * Retrieve a set of injection tokens at a given DOM node.
       *
       * @param element Element for which the injection tokens should be retrieved.
       */


      function getInjectionTokens(element) {
        var context = loadLContext(element, false);
        if (context === null) return [];
        var lView = context.lView;
        var tView = lView[TVIEW];
        var tNode = tView.data[context.nodeIndex];
        var providerTokens = [];
        var startIndex = tNode.providerIndexes & 1048575
        /* ProvidersStartIndexMask */
        ;
        var endIndex = tNode.directiveEnd;

        for (var i = startIndex; i < endIndex; i++) {
          var value = tView.data[i];

          if (isDirectiveDefHack(value)) {
            // The fact that we sometimes store Type and sometimes DirectiveDef in this location is a
            // design flaw.  We should always store same type so that we can be monomorphic. The issue
            // is that for Components/Directives we store the def instead the type. The correct behavior
            // is that we should always be storing injectable type in this location.
            value = value.type;
          }

          providerTokens.push(value);
        }

        return providerTokens;
      }
      /**
       * Retrieves directive instances associated with a given DOM element. Does not include
       * component instances.
       *
       * @usageNotes
       * Given the following DOM structure:
       * ```
       * <my-app>
       *   <button my-button></button>
       *   <my-comp></my-comp>
       * </my-app>
       * ```
       * Calling `getDirectives` on `<button>` will return an array with an instance of the `MyButton`
       * directive that is associated with the DOM element.
       *
       * Calling `getDirectives` on `<my-comp>` will return an empty array.
       *
       * @param element DOM element for which to get the directives.
       * @returns Array of directives associated with the element.
       *
       * @publicApi
       * @globalApi ng
       */


      function getDirectives(element) {
        var context = loadLContext(element);

        if (context.directives === undefined) {
          context.directives = getDirectivesAtNodeIndex(context.nodeIndex, context.lView, false);
        } // The `directives` in this case are a named array called `LComponentView`. Clone the
        // result so we don't expose an internal data structure in the user's console.


        return context.directives === null ? [] : _toConsumableArray(context.directives);
      }

      function loadLContext(target) {
        var throwOnNotFound = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
        var context = getLContext(target);

        if (!context && throwOnNotFound) {
          throw new Error(ngDevMode ? "Unable to find context associated with ".concat(stringifyForError(target)) : 'Invalid ng target');
        }

        return context;
      }
      /**
       * Retrieve map of local references.
       *
       * The references are retrieved as a map of local reference name to element or directive instance.
       *
       * @param target DOM element, component or directive instance for which to retrieve
       *    the local references.
       */


      function getLocalRefs(target) {
        var context = loadLContext(target, false);
        if (context === null) return {};

        if (context.localRefs === undefined) {
          context.localRefs = discoverLocalRefs(context.lView, context.nodeIndex);
        }

        return context.localRefs || {};
      }
      /**
       * Retrieves the host element of a component or directive instance.
       * The host element is the DOM element that matched the selector of the directive.
       *
       * @param componentOrDirective Component or directive instance for which the host
       *     element should be retrieved.
       * @returns Host element of the target.
       *
       * @publicApi
       * @globalApi ng
       */


      function getHostElement(componentOrDirective) {
        return getLContext(componentOrDirective)["native"];
      }
      /**
       * Retrieves the rendered text for a given component.
       *
       * This function retrieves the host element of a component and
       * and then returns the `textContent` for that element. This implies
       * that the text returned will include re-projected content of
       * the component as well.
       *
       * @param component The component to return the content text for.
       */


      function getRenderedText(component) {
        var hostElement = getHostElement(component);
        return hostElement.textContent || '';
      }

      function loadLContextFromNode(node) {
        if (!(node instanceof Node)) throw new Error('Expecting instance of DOM Element');
        return loadLContext(node);
      }
      /**
       * Retrieves a list of event listeners associated with a DOM element. The list does include host
       * listeners, but it does not include event listeners defined outside of the Angular context
       * (e.g. through `addEventListener`).
       *
       * @usageNotes
       * Given the following DOM structure:
       * ```
       * <my-app>
       *   <div (click)="doSomething()"></div>
       * </my-app>
       *
       * ```
       * Calling `getListeners` on `<div>` will return an object that looks as follows:
       * ```
       * {
       *   name: 'click',
       *   element: <div>,
       *   callback: () => doSomething(),
       *   useCapture: false
       * }
       * ```
       *
       * @param element Element for which the DOM listeners should be retrieved.
       * @returns Array of event listeners on the DOM element.
       *
       * @publicApi
       * @globalApi ng
       */


      function getListeners(element) {
        assertDomElement(element);
        var lContext = loadLContext(element, false);
        if (lContext === null) return [];
        var lView = lContext.lView;
        var tView = lView[TVIEW];
        var lCleanup = lView[CLEANUP];
        var tCleanup = tView.cleanup;
        var listeners = [];

        if (tCleanup && lCleanup) {
          for (var i = 0; i < tCleanup.length;) {
            var firstParam = tCleanup[i++];
            var secondParam = tCleanup[i++];

            if (typeof firstParam === 'string') {
              var name = firstParam;
              var listenerElement = unwrapRNode(lView[secondParam]);
              var callback = lCleanup[tCleanup[i++]];
              var useCaptureOrIndx = tCleanup[i++]; // if useCaptureOrIndx is boolean then report it as is.
              // if useCaptureOrIndx is positive number then it in unsubscribe method
              // if useCaptureOrIndx is negative number then it is a Subscription

              var type = typeof useCaptureOrIndx === 'boolean' || useCaptureOrIndx >= 0 ? 'dom' : 'output';
              var useCapture = typeof useCaptureOrIndx === 'boolean' ? useCaptureOrIndx : false;

              if (element == listenerElement) {
                listeners.push({
                  element: element,
                  name: name,
                  callback: callback,
                  useCapture: useCapture,
                  type: type
                });
              }
            }
          }
        }

        listeners.sort(sortListeners);
        return listeners;
      }

      function sortListeners(a, b) {
        if (a.name == b.name) return 0;
        return a.name < b.name ? -1 : 1;
      }
      /**
       * This function should not exist because it is megamorphic and only mostly correct.
       *
       * See call site for more info.
       */


      function isDirectiveDefHack(obj) {
        return obj.type !== undefined && obj.template !== undefined && obj.declaredInputs !== undefined;
      }
      /**
       * Returns the attached `DebugNode` instance for an element in the DOM.
       *
       * @param element DOM element which is owned by an existing component's view.
       */


      function getDebugNode(element) {
        var debugNode = null;
        var lContext = loadLContextFromNode(element);
        var lView = lContext.lView;
        var nodeIndex = lContext.nodeIndex;

        if (nodeIndex !== -1) {
          var valueInLView = lView[nodeIndex]; // this means that value in the lView is a component with its own
          // data. In this situation the TNode is not accessed at the same spot.

          var tNode = isLView(valueInLView) ? valueInLView[T_HOST] : getTNode(lView[TVIEW], nodeIndex);
          ngDevMode && assertEqual(tNode.index, nodeIndex, 'Expecting that TNode at index is same as index');
          debugNode = buildDebugNode(tNode, lView);
        }

        return debugNode;
      }
      /**
       * Retrieve the component `LView` from component/element.
       *
       * NOTE: `LView` is a private and should not be leaked outside.
       *       Don't export this method to `ng.*` on window.
       *
       * @param target DOM element or component instance for which to retrieve the LView.
       */


      function getComponentLView(target) {
        var lContext = loadLContext(target);
        var nodeIndx = lContext.nodeIndex;
        var lView = lContext.lView;
        var componentLView = lView[nodeIndx];
        ngDevMode && assertLView(componentLView);
        return componentLView;
      }
      /** Asserts that a value is a DOM Element. */


      function assertDomElement(value) {
        if (typeof Element !== 'undefined' && !(value instanceof Element)) {
          throw new Error('Expecting instance of DOM Element');
        }
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Marks a component for check (in case of OnPush components) and synchronously
       * performs change detection on the application this component belongs to.
       *
       * @param component Component to {@link ChangeDetectorRef#markForCheck mark for check}.
       *
       * @publicApi
       * @globalApi ng
       */


      function applyChanges(component) {
        markDirty(component);
        getRootComponents(component).forEach(function (rootComponent) {
          return detectChanges(rootComponent);
        });
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * This file introduces series of globally accessible debug tools
       * to allow for the Angular debugging story to function.
       *
       * To see this in action run the following command:
       *
       *   bazel run --config=ivy
       *   //packages/core/test/bundling/todo:devserver
       *
       *  Then load `localhost:5432` and start using the console tools.
       */

      /**
       * This value reflects the property on the window where the dev
       * tools are patched (window.ng).
       * */


      var GLOBAL_PUBLISH_EXPANDO_KEY = 'ng';
      var _published = false;
      /**
       * Publishes a collection of default debug tools onto`window.ng`.
       *
       * These functions are available globally when Angular is in development
       * mode and are automatically stripped away from prod mode is on.
       */

      function publishDefaultGlobalUtils() {
        if (!_published) {
          _published = true;
          publishGlobalUtil('getComponent', getComponent);
          publishGlobalUtil('getContext', getContext);
          publishGlobalUtil('getListeners', getListeners);
          publishGlobalUtil('getOwningComponent', getOwningComponent);
          publishGlobalUtil('getHostElement', getHostElement);
          publishGlobalUtil('getInjector', getInjector);
          publishGlobalUtil('getRootComponents', getRootComponents);
          publishGlobalUtil('getDirectives', getDirectives);
          publishGlobalUtil('applyChanges', applyChanges);
        }
      }
      /**
       * Publishes the given function to `window.ng` so that it can be
       * used from the browser console when an application is not in production.
       */


      function publishGlobalUtil(name, fn) {
        if (typeof COMPILED === 'undefined' || !COMPILED) {
          // Note: we can't export `ng` when using closure enhanced optimization as:
          // - closure declares globals itself for minified names, which sometimes clobber our `ng` global
          // - we can't declare a closure extern as the namespace `ng` is already used within Google
          //   for typings for AngularJS (via `goog.provide('ng....')`).
          var w = _global;
          ngDevMode && assertDefined(fn, 'function not defined');

          if (w) {
            var container = w[GLOBAL_PUBLISH_EXPANDO_KEY];

            if (!container) {
              container = w[GLOBAL_PUBLISH_EXPANDO_KEY] = {};
            }

            container[name] = fn;
          }
        }
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var ɵ0$b = function ɵ0$b(token, notFoundValue) {
        throwProviderNotFoundError(token, 'NullInjector');
      }; // TODO: A hack to not pull in the NullInjector from @angular/core.


      var NULL_INJECTOR$1 = {
        get: ɵ0$b
      };
      /**
       * Bootstraps a Component into an existing host element and returns an instance
       * of the component.
       *
       * Use this function to bootstrap a component into the DOM tree. Each invocation
       * of this function will create a separate tree of components, injectors and
       * change detection cycles and lifetimes. To dynamically insert a new component
       * into an existing tree such that it shares the same injection, change detection
       * and object lifetime, use {@link ViewContainer#createComponent}.
       *
       * @param componentType Component to bootstrap
       * @param options Optional parameters which control bootstrapping
       */

      function renderComponent$1(componentType
      /* Type as workaround for: Microsoft/TypeScript/issues/4881 */
      ) {
        var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
        ngDevMode && publishDefaultGlobalUtils();
        ngDevMode && assertComponentType(componentType);
        var rendererFactory = opts.rendererFactory || domRendererFactory3;
        var sanitizer = opts.sanitizer || null;
        var componentDef = getComponentDef(componentType);
        if (componentDef.type != componentType) componentDef.type = componentType; // The first index of the first selector is the tag name.

        var componentTag = componentDef.selectors[0][0];
        var hostRenderer = rendererFactory.createRenderer(null, null);
        var hostRNode = locateHostElement(hostRenderer, opts.host || componentTag, componentDef.encapsulation);
        var rootFlags = componentDef.onPush ? 64
        /* Dirty */
        | 512
        /* IsRoot */
        : 16
        /* CheckAlways */
        | 512
        /* IsRoot */
        ;
        var rootContext = createRootContext(opts.scheduler, opts.playerHandler);
        var renderer = rendererFactory.createRenderer(hostRNode, componentDef);
        var rootTView = createTView(0
        /* Root */
        , null, null, 1, 0, null, null, null, null, null);
        var rootView = createLView(null, rootTView, rootContext, rootFlags, null, null, rendererFactory, renderer, null, opts.injector || null);
        enterView(rootView);
        var component;

        try {
          if (rendererFactory.begin) rendererFactory.begin();
          var componentView = createRootComponentView(hostRNode, componentDef, rootView, rendererFactory, renderer, sanitizer);
          component = createRootComponent(componentView, componentDef, rootView, rootContext, opts.hostFeatures || null); // create mode pass

          renderView(rootTView, rootView, null); // update mode pass

          refreshView(rootTView, rootView, null, null);
        } finally {
          leaveView();
          if (rendererFactory.end) rendererFactory.end();
        }

        return component;
      }
      /**
       * Creates the root component view and the root component node.
       *
       * @param rNode Render host element.
       * @param def ComponentDef
       * @param rootView The parent view where the host node is stored
       * @param rendererFactory Factory to be used for creating child renderers.
       * @param hostRenderer The current renderer
       * @param sanitizer The sanitizer, if provided
       *
       * @returns Component view created
       */


      function createRootComponentView(rNode, def, rootView, rendererFactory, hostRenderer, sanitizer) {
        var tView = rootView[TVIEW];
        var index = HEADER_OFFSET;
        ngDevMode && assertIndexInRange(rootView, index);
        rootView[index] = rNode; // '#host' is added here as we don't know the real host DOM name (we don't want to read it) and at
        // the same time we want to communicate the the debug `TNode` that this is a special `TNode`
        // representing a host element.

        var tNode = getOrCreateTNode(tView, index, 2
        /* Element */
        , '#host', null);
        var mergedAttrs = tNode.mergedAttrs = def.hostAttrs;

        if (mergedAttrs !== null) {
          computeStaticStyling(tNode, mergedAttrs, true);

          if (rNode !== null) {
            setUpAttributes(hostRenderer, rNode, mergedAttrs);

            if (tNode.classes !== null) {
              writeDirectClass(hostRenderer, rNode, tNode.classes);
            }

            if (tNode.styles !== null) {
              writeDirectStyle(hostRenderer, rNode, tNode.styles);
            }
          }
        }

        var viewRenderer = rendererFactory.createRenderer(rNode, def);
        var componentView = createLView(rootView, getOrCreateTComponentView(def), null, def.onPush ? 64
        /* Dirty */
        : 16
        /* CheckAlways */
        , rootView[index], tNode, rendererFactory, viewRenderer, sanitizer || null, null);

        if (tView.firstCreatePass) {
          diPublicInInjector(getOrCreateNodeInjectorForNode(tNode, rootView), tView, def.type);
          markAsComponentHost(tView, tNode);
          initTNodeFlags(tNode, rootView.length, 1);
        }

        addToViewTree(rootView, componentView); // Store component view at node index, with node as the HOST

        return rootView[index] = componentView;
      }
      /**
       * Creates a root component and sets it up with features and host bindings. Shared by
       * renderComponent() and ViewContainerRef.createComponent().
       */


      function createRootComponent(componentView, componentDef, rootLView, rootContext, hostFeatures) {
        var tView = rootLView[TVIEW]; // Create directive instance with factory() and store at next index in viewData

        var component = instantiateRootComponent(tView, rootLView, componentDef);
        rootContext.components.push(component);
        componentView[CONTEXT] = component;
        hostFeatures && hostFeatures.forEach(function (feature) {
          return feature(component, componentDef);
        }); // We want to generate an empty QueryList for root content queries for backwards
        // compatibility with ViewEngine.

        if (componentDef.contentQueries) {
          var tNode = getCurrentTNode();
          ngDevMode && assertDefined(tNode, 'TNode expected');
          componentDef.contentQueries(1
          /* Create */
          , component, tNode.directiveStart);
        }

        var rootTNode = getCurrentTNode();
        ngDevMode && assertDefined(rootTNode, 'tNode should have been already created');

        if (tView.firstCreatePass && (componentDef.hostBindings !== null || componentDef.hostAttrs !== null)) {
          setSelectedIndex(rootTNode.index);
          var rootTView = rootLView[TVIEW];
          registerHostBindingOpCodes(rootTView, rootTNode, rootLView, rootTNode.directiveStart, rootTNode.directiveEnd, componentDef);
          invokeHostBindingsInCreationMode(componentDef, component);
        }

        return component;
      }

      function createRootContext(scheduler, playerHandler) {
        return {
          components: [],
          scheduler: scheduler || defaultScheduler,
          clean: CLEAN_PROMISE,
          playerHandler: playerHandler || null,
          flags: 0
          /* Empty */

        };
      }
      /**
       * Used to enable lifecycle hooks on the root component.
       *
       * Include this feature when calling `renderComponent` if the root component
       * you are rendering has lifecycle hooks defined. Otherwise, the hooks won't
       * be called properly.
       *
       * Example:
       *
       * ```
       * renderComponent(AppComponent, {hostFeatures: [LifecycleHooksFeature]});
       * ```
       */


      function LifecycleHooksFeature(component, def) {
        var lView = readPatchedLView(component);
        ngDevMode && assertDefined(lView, 'LView is required');
        var tView = lView[TVIEW];
        var tNode = getCurrentTNode();
        ngDevMode && assertDefined(tNode, 'TNode is required');
        registerPostOrderHooks(tView, tNode);
      }
      /**
       * Wait on component until it is rendered.
       *
       * This function returns a `Promise` which is resolved when the component's
       * change detection is executed. This is determined by finding the scheduler
       * associated with the `component`'s render tree and waiting until the scheduler
       * flushes. If nothing is scheduled, the function returns a resolved promise.
       *
       * Example:
       * ```
       * await whenRendered(myComponent);
       * ```
       *
       * @param component Component to wait upon
       * @returns Promise which resolves when the component is rendered.
       */


      function whenRendered(component) {
        return getRootContext(component).clean;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function getSuperType(type) {
        return Object.getPrototypeOf(type.prototype).constructor;
      }
      /**
       * Merges the definition from a super class to a sub class.
       * @param definition The definition that is a SubClass of another directive of component
       *
       * @codeGenApi
       */


      function ɵɵInheritDefinitionFeature(definition) {
        var superType = getSuperType(definition.type);
        var shouldInheritFields = true;
        var inheritanceChain = [definition];

        while (superType) {
          var superDef = undefined;

          if (isComponentDef(definition)) {
            // Don't use getComponentDef/getDirectiveDef. This logic relies on inheritance.
            superDef = superType.ɵcmp || superType.ɵdir;
          } else {
            if (superType.ɵcmp) {
              throw new Error('Directives cannot inherit Components');
            } // Don't use getComponentDef/getDirectiveDef. This logic relies on inheritance.


            superDef = superType.ɵdir;
          }

          if (superDef) {
            if (shouldInheritFields) {
              inheritanceChain.push(superDef); // Some fields in the definition may be empty, if there were no values to put in them that
              // would've justified object creation. Unwrap them if necessary.

              var writeableDef = definition;
              writeableDef.inputs = maybeUnwrapEmpty(definition.inputs);
              writeableDef.declaredInputs = maybeUnwrapEmpty(definition.declaredInputs);
              writeableDef.outputs = maybeUnwrapEmpty(definition.outputs); // Merge hostBindings

              var superHostBindings = superDef.hostBindings;
              superHostBindings && inheritHostBindings(definition, superHostBindings); // Merge queries

              var superViewQuery = superDef.viewQuery;
              var superContentQueries = superDef.contentQueries;
              superViewQuery && inheritViewQuery(definition, superViewQuery);
              superContentQueries && inheritContentQueries(definition, superContentQueries); // Merge inputs and outputs

              fillProperties(definition.inputs, superDef.inputs);
              fillProperties(definition.declaredInputs, superDef.declaredInputs);
              fillProperties(definition.outputs, superDef.outputs); // Merge animations metadata.
              // If `superDef` is a Component, the `data` field is present (defaults to an empty object).

              if (isComponentDef(superDef) && superDef.data.animation) {
                // If super def is a Component, the `definition` is also a Component, since Directives can
                // not inherit Components (we throw an error above and cannot reach this code).
                var defData = definition.data;
                defData.animation = (defData.animation || []).concat(superDef.data.animation);
              }
            } // Run parent features


            var features = superDef.features;

            if (features) {
              for (var i = 0; i < features.length; i++) {
                var feature = features[i];

                if (feature && feature.ngInherit) {
                  feature(definition);
                } // If `InheritDefinitionFeature` is a part of the current `superDef`, it means that this
                // def already has all the necessary information inherited from its super class(es), so we
                // can stop merging fields from super classes. However we need to iterate through the
                // prototype chain to look for classes that might contain other "features" (like
                // NgOnChanges), which we should invoke for the original `definition`. We set the
                // `shouldInheritFields` flag to indicate that, essentially skipping fields inheritance
                // logic and only invoking functions from the "features" list.


                if (feature === ɵɵInheritDefinitionFeature) {
                  shouldInheritFields = false;
                }
              }
            }
          }

          superType = Object.getPrototypeOf(superType);
        }

        mergeHostAttrsAcrossInheritance(inheritanceChain);
      }
      /**
       * Merge the `hostAttrs` and `hostVars` from the inherited parent to the base class.
       *
       * @param inheritanceChain A list of `WritableDefs` starting at the top most type and listing
       * sub-types in order. For each type take the `hostAttrs` and `hostVars` and merge it with the child
       * type.
       */


      function mergeHostAttrsAcrossInheritance(inheritanceChain) {
        var hostVars = 0;
        var hostAttrs = null; // We process the inheritance order from the base to the leaves here.

        for (var i = inheritanceChain.length - 1; i >= 0; i--) {
          var def = inheritanceChain[i]; // For each `hostVars`, we need to add the superclass amount.

          def.hostVars = hostVars += def.hostVars; // for each `hostAttrs` we need to merge it with superclass.

          def.hostAttrs = mergeHostAttrs(def.hostAttrs, hostAttrs = mergeHostAttrs(hostAttrs, def.hostAttrs));
        }
      }

      function maybeUnwrapEmpty(value) {
        if (value === EMPTY_OBJ) {
          return {};
        } else if (value === EMPTY_ARRAY) {
          return [];
        } else {
          return value;
        }
      }

      function inheritViewQuery(definition, superViewQuery) {
        var prevViewQuery = definition.viewQuery;

        if (prevViewQuery) {
          definition.viewQuery = function (rf, ctx) {
            superViewQuery(rf, ctx);
            prevViewQuery(rf, ctx);
          };
        } else {
          definition.viewQuery = superViewQuery;
        }
      }

      function inheritContentQueries(definition, superContentQueries) {
        var prevContentQueries = definition.contentQueries;

        if (prevContentQueries) {
          definition.contentQueries = function (rf, ctx, directiveIndex) {
            superContentQueries(rf, ctx, directiveIndex);
            prevContentQueries(rf, ctx, directiveIndex);
          };
        } else {
          definition.contentQueries = superContentQueries;
        }
      }

      function inheritHostBindings(definition, superHostBindings) {
        var prevHostBindings = definition.hostBindings;

        if (prevHostBindings) {
          definition.hostBindings = function (rf, ctx) {
            superHostBindings(rf, ctx);
            prevHostBindings(rf, ctx);
          };
        } else {
          definition.hostBindings = superHostBindings;
        }
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Fields which exist on either directive or component definitions, and need to be copied from
       * parent to child classes by the `ɵɵCopyDefinitionFeature`.
       */


      var COPY_DIRECTIVE_FIELDS = [// The child class should use the providers of its parent.
      'providersResolver'];
      /**
       * Fields which exist only on component definitions, and need to be copied from parent to child
       * classes by the `ɵɵCopyDefinitionFeature`.
       *
       * The type here allows any field of `ComponentDef` which is not also a property of `DirectiveDef`,
       * since those should go in `COPY_DIRECTIVE_FIELDS` above.
       */

      var COPY_COMPONENT_FIELDS = [// The child class should use the template function of its parent, including all template
      // semantics.
      'template', 'decls', 'consts', 'vars', 'onPush', 'ngContentSelectors', // The child class should use the CSS styles of its parent, including all styling semantics.
      'styles', 'encapsulation', // The child class should be checked by the runtime in the same way as its parent.
      'schemas'];
      /**
       * Copies the fields not handled by the `ɵɵInheritDefinitionFeature` from the supertype of a
       * definition.
       *
       * This exists primarily to support ngcc migration of an existing View Engine pattern, where an
       * entire decorator is inherited from a parent to a child class. When ngcc detects this case, it
       * generates a skeleton definition on the child class, and applies this feature.
       *
       * The `ɵɵCopyDefinitionFeature` then copies any needed fields from the parent class' definition,
       * including things like the component template function.
       *
       * @param definition The definition of a child class which inherits from a parent class with its
       * own definition.
       *
       * @codeGenApi
       */

      function ɵɵCopyDefinitionFeature(definition) {
        var superType = getSuperType(definition.type);
        var superDef = undefined;

        if (isComponentDef(definition)) {
          // Don't use getComponentDef/getDirectiveDef. This logic relies on inheritance.
          superDef = superType.ɵcmp;
        } else {
          // Don't use getComponentDef/getDirectiveDef. This logic relies on inheritance.
          superDef = superType.ɵdir;
        } // Needed because `definition` fields are readonly.


        var defAny = definition; // Copy over any fields that apply to either directives or components.

        var _iterator50 = _createForOfIteratorHelper(COPY_DIRECTIVE_FIELDS),
            _step49;

        try {
          for (_iterator50.s(); !(_step49 = _iterator50.n()).done;) {
            var _field = _step49.value;
            defAny[_field] = superDef[_field];
          }
        } catch (err) {
          _iterator50.e(err);
        } finally {
          _iterator50.f();
        }

        if (isComponentDef(superDef)) {
          // Copy over any component-specific fields.
          var _iterator51 = _createForOfIteratorHelper(COPY_COMPONENT_FIELDS),
              _step50;

          try {
            for (_iterator51.s(); !(_step50 = _iterator51.n()).done;) {
              var field = _step50.value;
              defAny[field] = superDef[field];
            }
          } catch (err) {
            _iterator51.e(err);
          } finally {
            _iterator51.f();
          }
        }
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var _symbolIterator = null;

      function getSymbolIterator() {
        if (!_symbolIterator) {
          var _Symbol = _global['Symbol'];

          if (_Symbol && _Symbol.iterator) {
            _symbolIterator = _Symbol.iterator;
          } else {
            // es6-shim specific logic
            var keys = Object.getOwnPropertyNames(Map.prototype);

            for (var i = 0; i < keys.length; ++i) {
              var key = keys[i];

              if (key !== 'entries' && key !== 'size' && Map.prototype[key] === Map.prototype['entries']) {
                _symbolIterator = key;
              }
            }
          }
        }

        return _symbolIterator;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function devModeEqual(a, b) {
        var isListLikeIterableA = isListLikeIterable(a);
        var isListLikeIterableB = isListLikeIterable(b);

        if (isListLikeIterableA && isListLikeIterableB) {
          return areIterablesEqual(a, b, devModeEqual);
        } else {
          var isAObject = a && (typeof a === 'object' || typeof a === 'function');
          var isBObject = b && (typeof b === 'object' || typeof b === 'function');

          if (!isListLikeIterableA && isAObject && !isListLikeIterableB && isBObject) {
            return true;
          } else {
            return Object.is(a, b);
          }
        }
      }
      /**
       * Indicates that the result of a {@link Pipe} transformation has changed even though the
       * reference has not changed.
       *
       * Wrapped values are unwrapped automatically during the change detection, and the unwrapped value
       * is stored.
       *
       * Example:
       *
       * ```
       * if (this._latestValue === this._latestReturnedValue) {
       *    return this._latestReturnedValue;
       *  } else {
       *    this._latestReturnedValue = this._latestValue;
       *    return WrappedValue.wrap(this._latestValue); // this will force update
       *  }
       * ```
       *
       * @publicApi
       * @deprecated from v10 stop using. (No replacement, deemed unnecessary.)
       */


      var WrappedValue = /*#__PURE__*/function () {
        function WrappedValue(value) {
          _classCallCheck2(this, WrappedValue);

          this.wrapped = value;
        }
        /** Creates a wrapped value. */


        _createClass2(WrappedValue, null, [{
          key: "wrap",
          value: function wrap(value) {
            return new WrappedValue(value);
          }
          /**
           * Returns the underlying value of a wrapped value.
           * Returns the given `value` when it is not wrapped.
           **/

        }, {
          key: "unwrap",
          value: function unwrap(value) {
            return WrappedValue.isWrapped(value) ? value.wrapped : value;
          }
          /** Returns true if `value` is a wrapped value. */

        }, {
          key: "isWrapped",
          value: function isWrapped(value) {
            return value instanceof WrappedValue;
          }
        }]);

        return WrappedValue;
      }();

      function isListLikeIterable(obj) {
        if (!isJsObject(obj)) return false;
        return Array.isArray(obj) || !(obj instanceof Map) && // JS Map are iterables but return entries as [k, v]
        getSymbolIterator() in obj; // JS Iterable have a Symbol.iterator prop
      }

      function areIterablesEqual(a, b, comparator) {
        var iterator1 = a[getSymbolIterator()]();
        var iterator2 = b[getSymbolIterator()]();

        while (true) {
          var item1 = iterator1.next();
          var item2 = iterator2.next();
          if (item1.done && item2.done) return true;
          if (item1.done || item2.done) return false;
          if (!comparator(item1.value, item2.value)) return false;
        }
      }

      function iterateListLike(obj, fn) {
        if (Array.isArray(obj)) {
          for (var i = 0; i < obj.length; i++) {
            fn(obj[i]);
          }
        } else {
          var iterator = obj[getSymbolIterator()]();
          var item;

          while (!(item = iterator.next()).done) {
            fn(item.value);
          }
        }
      }

      function isJsObject(o) {
        return o !== null && (typeof o === 'function' || typeof o === 'object');
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */
      // TODO(misko): consider inlining

      /** Updates binding and returns the value. */


      function updateBinding(lView, bindingIndex, value) {
        return lView[bindingIndex] = value;
      }
      /** Gets the current binding value. */


      function getBinding(lView, bindingIndex) {
        ngDevMode && assertIndexInRange(lView, bindingIndex);
        ngDevMode && assertNotSame(lView[bindingIndex], NO_CHANGE, 'Stored value should never be NO_CHANGE.');
        return lView[bindingIndex];
      }
      /**
       * Updates binding if changed, then returns whether it was updated.
       *
       * This function also checks the `CheckNoChangesMode` and throws if changes are made.
       * Some changes (Objects/iterables) during `CheckNoChangesMode` are exempt to comply with VE
       * behavior.
       *
       * @param lView current `LView`
       * @param bindingIndex The binding in the `LView` to check
       * @param value New value to check against `lView[bindingIndex]`
       * @returns `true` if the bindings has changed. (Throws if binding has changed during
       *          `CheckNoChangesMode`)
       */


      function bindingUpdated(lView, bindingIndex, value) {
        ngDevMode && assertNotSame(value, NO_CHANGE, 'Incoming value should never be NO_CHANGE.');
        ngDevMode && assertLessThan(bindingIndex, lView.length, "Slot should have been initialized to NO_CHANGE");
        var oldValue = lView[bindingIndex];

        if (Object.is(oldValue, value)) {
          return false;
        } else {
          if (ngDevMode && isInCheckNoChangesMode()) {
            // View engine didn't report undefined values as changed on the first checkNoChanges pass
            // (before the change detection was run).
            var oldValueToCompare = oldValue !== NO_CHANGE ? oldValue : undefined;

            if (!devModeEqual(oldValueToCompare, value)) {
              var details = getExpressionChangedErrorDetails(lView, bindingIndex, oldValueToCompare, value);
              throwErrorIfNoChangesMode(oldValue === NO_CHANGE, details.oldValue, details.newValue, details.propName);
            } // There was a change, but the `devModeEqual` decided that the change is exempt from an error.
            // For this reason we exit as if no change. The early exit is needed to prevent the changed
            // value to be written into `LView` (If we would write the new value that we would not see it
            // as change on next CD.)


            return false;
          }

          lView[bindingIndex] = value;
          return true;
        }
      }
      /** Updates 2 bindings if changed, then returns whether either was updated. */


      function bindingUpdated2(lView, bindingIndex, exp1, exp2) {
        var different = bindingUpdated(lView, bindingIndex, exp1);
        return bindingUpdated(lView, bindingIndex + 1, exp2) || different;
      }
      /** Updates 3 bindings if changed, then returns whether any was updated. */


      function bindingUpdated3(lView, bindingIndex, exp1, exp2, exp3) {
        var different = bindingUpdated2(lView, bindingIndex, exp1, exp2);
        return bindingUpdated(lView, bindingIndex + 2, exp3) || different;
      }
      /** Updates 4 bindings if changed, then returns whether any was updated. */


      function bindingUpdated4(lView, bindingIndex, exp1, exp2, exp3, exp4) {
        var different = bindingUpdated2(lView, bindingIndex, exp1, exp2);
        return bindingUpdated2(lView, bindingIndex + 2, exp3, exp4) || different;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Updates the value of or removes a bound attribute on an Element.
       *
       * Used in the case of `[attr.title]="value"`
       *
       * @param name name The name of the attribute.
       * @param value value The attribute is removed when value is `null` or `undefined`.
       *                  Otherwise the attribute value is set to the stringified value.
       * @param sanitizer An optional function used to sanitize the value.
       * @param namespace Optional namespace to use when setting the attribute.
       *
       * @codeGenApi
       */


      function ɵɵattribute(name, value, sanitizer, namespace) {
        var lView = getLView();
        var bindingIndex = nextBindingIndex();

        if (bindingUpdated(lView, bindingIndex, value)) {
          var tView = getTView();
          var tNode = getSelectedTNode();
          elementAttributeInternal(tNode, lView, name, value, sanitizer, namespace);
          ngDevMode && storePropertyBindingMetadata(tView.data, tNode, 'attr.' + name, bindingIndex);
        }

        return ɵɵattribute;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Create interpolation bindings with a variable number of expressions.
       *
       * If there are 1 to 8 expressions `interpolation1()` to `interpolation8()` should be used instead.
       * Those are faster because there is no need to create an array of expressions and iterate over it.
       *
       * `values`:
       * - has static text at even indexes,
       * - has evaluated expressions at odd indexes.
       *
       * Returns the concatenated string when any of the arguments changes, `NO_CHANGE` otherwise.
       */


      function interpolationV(lView, values) {
        ngDevMode && assertLessThan(2, values.length, 'should have at least 3 values');
        ngDevMode && assertEqual(values.length % 2, 1, 'should have an odd number of values');
        var isBindingUpdated = false;
        var bindingIndex = getBindingIndex();

        for (var i = 1; i < values.length; i += 2) {
          // Check if bindings (odd indexes) have changed
          isBindingUpdated = bindingUpdated(lView, bindingIndex++, values[i]) || isBindingUpdated;
        }

        setBindingIndex(bindingIndex);

        if (!isBindingUpdated) {
          return NO_CHANGE;
        } // Build the updated content


        var content = values[0];

        for (var _i19 = 1; _i19 < values.length; _i19 += 2) {
          content += renderStringify(values[_i19]) + values[_i19 + 1];
        }

        return content;
      }
      /**
       * Creates an interpolation binding with 1 expression.
       *
       * @param prefix static value used for concatenation only.
       * @param v0 value checked for change.
       * @param suffix static value used for concatenation only.
       */


      function interpolation1(lView, prefix, v0, suffix) {
        var different = bindingUpdated(lView, nextBindingIndex(), v0);
        return different ? prefix + renderStringify(v0) + suffix : NO_CHANGE;
      }
      /**
       * Creates an interpolation binding with 2 expressions.
       */


      function interpolation2(lView, prefix, v0, i0, v1, suffix) {
        var bindingIndex = getBindingIndex();
        var different = bindingUpdated2(lView, bindingIndex, v0, v1);
        incrementBindingIndex(2);
        return different ? prefix + renderStringify(v0) + i0 + renderStringify(v1) + suffix : NO_CHANGE;
      }
      /**
       * Creates an interpolation binding with 3 expressions.
       */


      function interpolation3(lView, prefix, v0, i0, v1, i1, v2, suffix) {
        var bindingIndex = getBindingIndex();
        var different = bindingUpdated3(lView, bindingIndex, v0, v1, v2);
        incrementBindingIndex(3);
        return different ? prefix + renderStringify(v0) + i0 + renderStringify(v1) + i1 + renderStringify(v2) + suffix : NO_CHANGE;
      }
      /**
       * Create an interpolation binding with 4 expressions.
       */


      function interpolation4(lView, prefix, v0, i0, v1, i1, v2, i2, v3, suffix) {
        var bindingIndex = getBindingIndex();
        var different = bindingUpdated4(lView, bindingIndex, v0, v1, v2, v3);
        incrementBindingIndex(4);
        return different ? prefix + renderStringify(v0) + i0 + renderStringify(v1) + i1 + renderStringify(v2) + i2 + renderStringify(v3) + suffix : NO_CHANGE;
      }
      /**
       * Creates an interpolation binding with 5 expressions.
       */


      function interpolation5(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix) {
        var bindingIndex = getBindingIndex();
        var different = bindingUpdated4(lView, bindingIndex, v0, v1, v2, v3);
        different = bindingUpdated(lView, bindingIndex + 4, v4) || different;
        incrementBindingIndex(5);
        return different ? prefix + renderStringify(v0) + i0 + renderStringify(v1) + i1 + renderStringify(v2) + i2 + renderStringify(v3) + i3 + renderStringify(v4) + suffix : NO_CHANGE;
      }
      /**
       * Creates an interpolation binding with 6 expressions.
       */


      function interpolation6(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix) {
        var bindingIndex = getBindingIndex();
        var different = bindingUpdated4(lView, bindingIndex, v0, v1, v2, v3);
        different = bindingUpdated2(lView, bindingIndex + 4, v4, v5) || different;
        incrementBindingIndex(6);
        return different ? prefix + renderStringify(v0) + i0 + renderStringify(v1) + i1 + renderStringify(v2) + i2 + renderStringify(v3) + i3 + renderStringify(v4) + i4 + renderStringify(v5) + suffix : NO_CHANGE;
      }
      /**
       * Creates an interpolation binding with 7 expressions.
       */


      function interpolation7(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix) {
        var bindingIndex = getBindingIndex();
        var different = bindingUpdated4(lView, bindingIndex, v0, v1, v2, v3);
        different = bindingUpdated3(lView, bindingIndex + 4, v4, v5, v6) || different;
        incrementBindingIndex(7);
        return different ? prefix + renderStringify(v0) + i0 + renderStringify(v1) + i1 + renderStringify(v2) + i2 + renderStringify(v3) + i3 + renderStringify(v4) + i4 + renderStringify(v5) + i5 + renderStringify(v6) + suffix : NO_CHANGE;
      }
      /**
       * Creates an interpolation binding with 8 expressions.
       */


      function interpolation8(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix) {
        var bindingIndex = getBindingIndex();
        var different = bindingUpdated4(lView, bindingIndex, v0, v1, v2, v3);
        different = bindingUpdated4(lView, bindingIndex + 4, v4, v5, v6, v7) || different;
        incrementBindingIndex(8);
        return different ? prefix + renderStringify(v0) + i0 + renderStringify(v1) + i1 + renderStringify(v2) + i2 + renderStringify(v3) + i3 + renderStringify(v4) + i4 + renderStringify(v5) + i5 + renderStringify(v6) + i6 + renderStringify(v7) + suffix : NO_CHANGE;
      }
      /**
       *
       * Update an interpolated attribute on an element with single bound value surrounded by text.
       *
       * Used when the value passed to a property has 1 interpolated value in it:
       *
       * ```html
       * <div attr.title="prefix{{v0}}suffix"></div>
       * ```
       *
       * Its compiled representation is::
       *
       * ```ts
       * ɵɵattributeInterpolate1('title', 'prefix', v0, 'suffix');
       * ```
       *
       * @param attrName The name of the attribute to update
       * @param prefix Static value used for concatenation only.
       * @param v0 Value checked for change.
       * @param suffix Static value used for concatenation only.
       * @param sanitizer An optional sanitizer function
       * @returns itself, so that it may be chained.
       * @codeGenApi
       */


      function ɵɵattributeInterpolate1(attrName, prefix, v0, suffix, sanitizer, namespace) {
        var lView = getLView();
        var interpolatedValue = interpolation1(lView, prefix, v0, suffix);

        if (interpolatedValue !== NO_CHANGE) {
          var tNode = getSelectedTNode();
          elementAttributeInternal(tNode, lView, attrName, interpolatedValue, sanitizer, namespace);
          ngDevMode && storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - 1, prefix, suffix);
        }

        return ɵɵattributeInterpolate1;
      }
      /**
       *
       * Update an interpolated attribute on an element with 2 bound values surrounded by text.
       *
       * Used when the value passed to a property has 2 interpolated values in it:
       *
       * ```html
       * <div attr.title="prefix{{v0}}-{{v1}}suffix"></div>
       * ```
       *
       * Its compiled representation is::
       *
       * ```ts
       * ɵɵattributeInterpolate2('title', 'prefix', v0, '-', v1, 'suffix');
       * ```
       *
       * @param attrName The name of the attribute to update
       * @param prefix Static value used for concatenation only.
       * @param v0 Value checked for change.
       * @param i0 Static value used for concatenation only.
       * @param v1 Value checked for change.
       * @param suffix Static value used for concatenation only.
       * @param sanitizer An optional sanitizer function
       * @returns itself, so that it may be chained.
       * @codeGenApi
       */


      function ɵɵattributeInterpolate2(attrName, prefix, v0, i0, v1, suffix, sanitizer, namespace) {
        var lView = getLView();
        var interpolatedValue = interpolation2(lView, prefix, v0, i0, v1, suffix);

        if (interpolatedValue !== NO_CHANGE) {
          var tNode = getSelectedTNode();
          elementAttributeInternal(tNode, lView, attrName, interpolatedValue, sanitizer, namespace);
          ngDevMode && storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - 2, prefix, i0, suffix);
        }

        return ɵɵattributeInterpolate2;
      }
      /**
       *
       * Update an interpolated attribute on an element with 3 bound values surrounded by text.
       *
       * Used when the value passed to a property has 3 interpolated values in it:
       *
       * ```html
       * <div attr.title="prefix{{v0}}-{{v1}}-{{v2}}suffix"></div>
       * ```
       *
       * Its compiled representation is::
       *
       * ```ts
       * ɵɵattributeInterpolate3(
       * 'title', 'prefix', v0, '-', v1, '-', v2, 'suffix');
       * ```
       *
       * @param attrName The name of the attribute to update
       * @param prefix Static value used for concatenation only.
       * @param v0 Value checked for change.
       * @param i0 Static value used for concatenation only.
       * @param v1 Value checked for change.
       * @param i1 Static value used for concatenation only.
       * @param v2 Value checked for change.
       * @param suffix Static value used for concatenation only.
       * @param sanitizer An optional sanitizer function
       * @returns itself, so that it may be chained.
       * @codeGenApi
       */


      function ɵɵattributeInterpolate3(attrName, prefix, v0, i0, v1, i1, v2, suffix, sanitizer, namespace) {
        var lView = getLView();
        var interpolatedValue = interpolation3(lView, prefix, v0, i0, v1, i1, v2, suffix);

        if (interpolatedValue !== NO_CHANGE) {
          var tNode = getSelectedTNode();
          elementAttributeInternal(tNode, lView, attrName, interpolatedValue, sanitizer, namespace);
          ngDevMode && storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - 3, prefix, i0, i1, suffix);
        }

        return ɵɵattributeInterpolate3;
      }
      /**
       *
       * Update an interpolated attribute on an element with 4 bound values surrounded by text.
       *
       * Used when the value passed to a property has 4 interpolated values in it:
       *
       * ```html
       * <div attr.title="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}suffix"></div>
       * ```
       *
       * Its compiled representation is::
       *
       * ```ts
       * ɵɵattributeInterpolate4(
       * 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, 'suffix');
       * ```
       *
       * @param attrName The name of the attribute to update
       * @param prefix Static value used for concatenation only.
       * @param v0 Value checked for change.
       * @param i0 Static value used for concatenation only.
       * @param v1 Value checked for change.
       * @param i1 Static value used for concatenation only.
       * @param v2 Value checked for change.
       * @param i2 Static value used for concatenation only.
       * @param v3 Value checked for change.
       * @param suffix Static value used for concatenation only.
       * @param sanitizer An optional sanitizer function
       * @returns itself, so that it may be chained.
       * @codeGenApi
       */


      function ɵɵattributeInterpolate4(attrName, prefix, v0, i0, v1, i1, v2, i2, v3, suffix, sanitizer, namespace) {
        var lView = getLView();
        var interpolatedValue = interpolation4(lView, prefix, v0, i0, v1, i1, v2, i2, v3, suffix);

        if (interpolatedValue !== NO_CHANGE) {
          var tNode = getSelectedTNode();
          elementAttributeInternal(tNode, lView, attrName, interpolatedValue, sanitizer, namespace);
          ngDevMode && storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - 4, prefix, i0, i1, i2, suffix);
        }

        return ɵɵattributeInterpolate4;
      }
      /**
       *
       * Update an interpolated attribute on an element with 5 bound values surrounded by text.
       *
       * Used when the value passed to a property has 5 interpolated values in it:
       *
       * ```html
       * <div attr.title="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}suffix"></div>
       * ```
       *
       * Its compiled representation is::
       *
       * ```ts
       * ɵɵattributeInterpolate5(
       * 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, 'suffix');
       * ```
       *
       * @param attrName The name of the attribute to update
       * @param prefix Static value used for concatenation only.
       * @param v0 Value checked for change.
       * @param i0 Static value used for concatenation only.
       * @param v1 Value checked for change.
       * @param i1 Static value used for concatenation only.
       * @param v2 Value checked for change.
       * @param i2 Static value used for concatenation only.
       * @param v3 Value checked for change.
       * @param i3 Static value used for concatenation only.
       * @param v4 Value checked for change.
       * @param suffix Static value used for concatenation only.
       * @param sanitizer An optional sanitizer function
       * @returns itself, so that it may be chained.
       * @codeGenApi
       */


      function ɵɵattributeInterpolate5(attrName, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix, sanitizer, namespace) {
        var lView = getLView();
        var interpolatedValue = interpolation5(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix);

        if (interpolatedValue !== NO_CHANGE) {
          var tNode = getSelectedTNode();
          elementAttributeInternal(tNode, lView, attrName, interpolatedValue, sanitizer, namespace);
          ngDevMode && storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - 5, prefix, i0, i1, i2, i3, suffix);
        }

        return ɵɵattributeInterpolate5;
      }
      /**
       *
       * Update an interpolated attribute on an element with 6 bound values surrounded by text.
       *
       * Used when the value passed to a property has 6 interpolated values in it:
       *
       * ```html
       * <div attr.title="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}suffix"></div>
       * ```
       *
       * Its compiled representation is::
       *
       * ```ts
       * ɵɵattributeInterpolate6(
       *    'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, 'suffix');
       * ```
       *
       * @param attrName The name of the attribute to update
       * @param prefix Static value used for concatenation only.
       * @param v0 Value checked for change.
       * @param i0 Static value used for concatenation only.
       * @param v1 Value checked for change.
       * @param i1 Static value used for concatenation only.
       * @param v2 Value checked for change.
       * @param i2 Static value used for concatenation only.
       * @param v3 Value checked for change.
       * @param i3 Static value used for concatenation only.
       * @param v4 Value checked for change.
       * @param i4 Static value used for concatenation only.
       * @param v5 Value checked for change.
       * @param suffix Static value used for concatenation only.
       * @param sanitizer An optional sanitizer function
       * @returns itself, so that it may be chained.
       * @codeGenApi
       */


      function ɵɵattributeInterpolate6(attrName, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix, sanitizer, namespace) {
        var lView = getLView();
        var interpolatedValue = interpolation6(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix);

        if (interpolatedValue !== NO_CHANGE) {
          var tNode = getSelectedTNode();
          elementAttributeInternal(tNode, lView, attrName, interpolatedValue, sanitizer, namespace);
          ngDevMode && storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - 6, prefix, i0, i1, i2, i3, i4, suffix);
        }

        return ɵɵattributeInterpolate6;
      }
      /**
       *
       * Update an interpolated attribute on an element with 7 bound values surrounded by text.
       *
       * Used when the value passed to a property has 7 interpolated values in it:
       *
       * ```html
       * <div attr.title="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}suffix"></div>
       * ```
       *
       * Its compiled representation is::
       *
       * ```ts
       * ɵɵattributeInterpolate7(
       *    'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, 'suffix');
       * ```
       *
       * @param attrName The name of the attribute to update
       * @param prefix Static value used for concatenation only.
       * @param v0 Value checked for change.
       * @param i0 Static value used for concatenation only.
       * @param v1 Value checked for change.
       * @param i1 Static value used for concatenation only.
       * @param v2 Value checked for change.
       * @param i2 Static value used for concatenation only.
       * @param v3 Value checked for change.
       * @param i3 Static value used for concatenation only.
       * @param v4 Value checked for change.
       * @param i4 Static value used for concatenation only.
       * @param v5 Value checked for change.
       * @param i5 Static value used for concatenation only.
       * @param v6 Value checked for change.
       * @param suffix Static value used for concatenation only.
       * @param sanitizer An optional sanitizer function
       * @returns itself, so that it may be chained.
       * @codeGenApi
       */


      function ɵɵattributeInterpolate7(attrName, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix, sanitizer, namespace) {
        var lView = getLView();
        var interpolatedValue = interpolation7(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix);

        if (interpolatedValue !== NO_CHANGE) {
          var tNode = getSelectedTNode();
          elementAttributeInternal(tNode, lView, attrName, interpolatedValue, sanitizer, namespace);
          ngDevMode && storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - 7, prefix, i0, i1, i2, i3, i4, i5, suffix);
        }

        return ɵɵattributeInterpolate7;
      }
      /**
       *
       * Update an interpolated attribute on an element with 8 bound values surrounded by text.
       *
       * Used when the value passed to a property has 8 interpolated values in it:
       *
       * ```html
       * <div attr.title="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}suffix"></div>
       * ```
       *
       * Its compiled representation is::
       *
       * ```ts
       * ɵɵattributeInterpolate8(
       *  'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, 'suffix');
       * ```
       *
       * @param attrName The name of the attribute to update
       * @param prefix Static value used for concatenation only.
       * @param v0 Value checked for change.
       * @param i0 Static value used for concatenation only.
       * @param v1 Value checked for change.
       * @param i1 Static value used for concatenation only.
       * @param v2 Value checked for change.
       * @param i2 Static value used for concatenation only.
       * @param v3 Value checked for change.
       * @param i3 Static value used for concatenation only.
       * @param v4 Value checked for change.
       * @param i4 Static value used for concatenation only.
       * @param v5 Value checked for change.
       * @param i5 Static value used for concatenation only.
       * @param v6 Value checked for change.
       * @param i6 Static value used for concatenation only.
       * @param v7 Value checked for change.
       * @param suffix Static value used for concatenation only.
       * @param sanitizer An optional sanitizer function
       * @returns itself, so that it may be chained.
       * @codeGenApi
       */


      function ɵɵattributeInterpolate8(attrName, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix, sanitizer, namespace) {
        var lView = getLView();
        var interpolatedValue = interpolation8(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix);

        if (interpolatedValue !== NO_CHANGE) {
          var tNode = getSelectedTNode();
          elementAttributeInternal(tNode, lView, attrName, interpolatedValue, sanitizer, namespace);
          ngDevMode && storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - 8, prefix, i0, i1, i2, i3, i4, i5, i6, suffix);
        }

        return ɵɵattributeInterpolate8;
      }
      /**
       * Update an interpolated attribute on an element with 9 or more bound values surrounded by text.
       *
       * Used when the number of interpolated values exceeds 8.
       *
       * ```html
       * <div
       *  title="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}-{{v8}}-{{v9}}suffix"></div>
       * ```
       *
       * Its compiled representation is::
       *
       * ```ts
       * ɵɵattributeInterpolateV(
       *  'title', ['prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, '-', v9,
       *  'suffix']);
       * ```
       *
       * @param attrName The name of the attribute to update.
       * @param values The collection of values and the strings in-between those values, beginning with
       * a string prefix and ending with a string suffix.
       * (e.g. `['prefix', value0, '-', value1, '-', value2, ..., value99, 'suffix']`)
       * @param sanitizer An optional sanitizer function
       * @returns itself, so that it may be chained.
       * @codeGenApi
       */


      function ɵɵattributeInterpolateV(attrName, values, sanitizer, namespace) {
        var lView = getLView();
        var interpolated = interpolationV(lView, values);

        if (interpolated !== NO_CHANGE) {
          var tNode = getSelectedTNode();
          elementAttributeInternal(tNode, lView, attrName, interpolated, sanitizer, namespace);

          if (ngDevMode) {
            var interpolationInBetween = [values[0]]; // prefix

            for (var i = 2; i < values.length; i += 2) {
              interpolationInBetween.push(values[i]);
            }

            storePropertyBindingMetadata.apply(void 0, [getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - interpolationInBetween.length + 1].concat(interpolationInBetween));
          }
        }

        return ɵɵattributeInterpolateV;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function templateFirstCreatePass(index, tView, lView, templateFn, decls, vars, tagName, attrsIndex, localRefsIndex) {
        ngDevMode && assertFirstCreatePass(tView);
        ngDevMode && ngDevMode.firstCreatePass++;
        var tViewConsts = tView.consts; // TODO(pk): refactor getOrCreateTNode to have the "create" only version

        var tNode = getOrCreateTNode(tView, index, 4
        /* Container */
        , tagName || null, getConstant(tViewConsts, attrsIndex));
        resolveDirectives(tView, lView, tNode, getConstant(tViewConsts, localRefsIndex));
        registerPostOrderHooks(tView, tNode);
        var embeddedTView = tNode.tViews = createTView(2
        /* Embedded */
        , tNode, templateFn, decls, vars, tView.directiveRegistry, tView.pipeRegistry, null, tView.schemas, tViewConsts);

        if (tView.queries !== null) {
          tView.queries.template(tView, tNode);
          embeddedTView.queries = tView.queries.embeddedTView(tNode);
        }

        return tNode;
      }
      /**
       * Creates an LContainer for an ng-template (dynamically-inserted view), e.g.
       *
       * <ng-template #foo>
       *    <div></div>
       * </ng-template>
       *
       * @param index The index of the container in the data array
       * @param templateFn Inline template
       * @param decls The number of nodes, local refs, and pipes for this template
       * @param vars The number of bindings for this template
       * @param tagName The name of the container element, if applicable
       * @param attrsIndex Index of template attributes in the `consts` array.
       * @param localRefs Index of the local references in the `consts` array.
       * @param localRefExtractor A function which extracts local-refs values from the template.
       *        Defaults to the current element associated with the local-ref.
       *
       * @codeGenApi
       */


      function ɵɵtemplate(index, templateFn, decls, vars, tagName, attrsIndex, localRefsIndex, localRefExtractor) {
        var lView = getLView();
        var tView = getTView();
        var adjustedIndex = index + HEADER_OFFSET;
        var tNode = tView.firstCreatePass ? templateFirstCreatePass(adjustedIndex, tView, lView, templateFn, decls, vars, tagName, attrsIndex, localRefsIndex) : tView.data[adjustedIndex];
        setCurrentTNode(tNode, false);
        var comment = lView[RENDERER].createComment(ngDevMode ? 'container' : '');
        appendChild(tView, lView, comment, tNode);
        attachPatchData(comment, lView);
        addToViewTree(lView, lView[adjustedIndex] = createLContainer(comment, lView, comment, tNode));

        if (isDirectiveHost(tNode)) {
          createDirectivesInstances(tView, lView, tNode);
        }

        if (localRefsIndex != null) {
          saveResolvedLocalsInData(lView, tNode, localRefExtractor);
        }
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** Store a value in the `data` at a given `index`. */


      function store(tView, lView, index, value) {
        // We don't store any static data for local variables, so the first time
        // we see the template, we should store as null to avoid a sparse array
        if (index >= tView.data.length) {
          tView.data[index] = null;
          tView.blueprint[index] = null;
        }

        lView[index] = value;
      }
      /**
       * Retrieves a local reference from the current contextViewData.
       *
       * If the reference to retrieve is in a parent view, this instruction is used in conjunction
       * with a nextContext() call, which walks up the tree and updates the contextViewData instance.
       *
       * @param index The index of the local ref in contextViewData.
       *
       * @codeGenApi
       */


      function ɵɵreference(index) {
        var contextLView = getContextLView();
        return load(contextLView, HEADER_OFFSET + index);
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function ɵɵdirectiveInject(token) {
        var flags = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : InjectFlags.Default;
        var lView = getLView(); // Fall back to inject() if view hasn't been created. This situation can happen in tests
        // if inject utilities are used before bootstrapping.

        if (lView === null) {
          // Verify that we will not get into infinite loop.
          ngDevMode && assertInjectImplementationNot(ɵɵdirectiveInject);
          return ɵɵinject(token, flags);
        }

        var tNode = getCurrentTNode();
        return getOrCreateInjectable(tNode, lView, resolveForwardRef(token), flags);
      }
      /**
       * Facade for the attribute injection from DI.
       *
       * @codeGenApi
       */


      function ɵɵinjectAttribute(attrNameToInject) {
        return injectAttributeImpl(getCurrentTNode(), attrNameToInject);
      }
      /**
       * Throws an error indicating that a factory function could not be generated by the compiler for a
       * particular class.
       *
       * This instruction allows the actual error message to be optimized away when ngDevMode is turned
       * off, saving bytes of generated code while still providing a good experience in dev mode.
       *
       * The name of the class is not mentioned here, but will be in the generated factory function name
       * and thus in the stack trace.
       *
       * @codeGenApi
       */


      function ɵɵinvalidFactory() {
        var msg = ngDevMode ? "This constructor was not compatible with Dependency Injection." : 'invalid';
        throw new Error(msg);
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Update a property on a selected element.
       *
       * Operates on the element selected by index via the {@link select} instruction.
       *
       * If the property name also exists as an input property on one of the element's directives,
       * the component property will be set instead of the element property. This check must
       * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled
       *
       * @param propName Name of property. Because it is going to DOM, this is not subject to
       *        renaming as part of minification.
       * @param value New value to write.
       * @param sanitizer An optional function used to sanitize the value.
       * @returns This function returns itself so that it may be chained
       * (e.g. `property('name', ctx.name)('title', ctx.title)`)
       *
       * @codeGenApi
       */


      function ɵɵproperty(propName, value, sanitizer) {
        var lView = getLView();
        var bindingIndex = nextBindingIndex();

        if (bindingUpdated(lView, bindingIndex, value)) {
          var tView = getTView();
          var tNode = getSelectedTNode();
          elementPropertyInternal(tView, tNode, lView, propName, value, lView[RENDERER], sanitizer, false);
          ngDevMode && storePropertyBindingMetadata(tView.data, tNode, propName, bindingIndex);
        }

        return ɵɵproperty;
      }
      /**
       * Given `<div style="..." my-dir>` and `MyDir` with `@Input('style')` we need to write to
       * directive input.
       */


      function setDirectiveInputsWhichShadowsStyling(tView, tNode, lView, value, isClassBased) {
        var inputs = tNode.inputs;
        var property = isClassBased ? 'class' : 'style'; // We support both 'class' and `className` hence the fallback.

        setInputsForProperty(tView, lView, inputs[property], property, value);
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function elementStartFirstCreatePass(index, tView, lView, _native11, name, attrsIndex, localRefsIndex) {
        ngDevMode && assertFirstCreatePass(tView);
        ngDevMode && ngDevMode.firstCreatePass++;
        var tViewConsts = tView.consts;
        var attrs = getConstant(tViewConsts, attrsIndex);
        var tNode = getOrCreateTNode(tView, index, 2
        /* Element */
        , name, attrs);
        var hasDirectives = resolveDirectives(tView, lView, tNode, getConstant(tViewConsts, localRefsIndex));
        ngDevMode && logUnknownElementError(tView, _native11, tNode, hasDirectives);

        if (tNode.attrs !== null) {
          computeStaticStyling(tNode, tNode.attrs, false);
        }

        if (tNode.mergedAttrs !== null) {
          computeStaticStyling(tNode, tNode.mergedAttrs, true);
        }

        if (tView.queries !== null) {
          tView.queries.elementStart(tView, tNode);
        }

        return tNode;
      }
      /**
       * Create DOM element. The instruction must later be followed by `elementEnd()` call.
       *
       * @param index Index of the element in the LView array
       * @param name Name of the DOM Node
       * @param attrsIndex Index of the element's attributes in the `consts` array.
       * @param localRefsIndex Index of the element's local references in the `consts` array.
       *
       * Attributes and localRefs are passed as an array of strings where elements with an even index
       * hold an attribute name and elements with an odd index hold an attribute value, ex.:
       * ['id', 'warning5', 'class', 'alert']
       *
       * @codeGenApi
       */


      function ɵɵelementStart(index, name, attrsIndex, localRefsIndex) {
        var lView = getLView();
        var tView = getTView();
        var adjustedIndex = HEADER_OFFSET + index;
        ngDevMode && assertEqual(getBindingIndex(), tView.bindingStartIndex, 'elements should be created before any bindings');
        ngDevMode && assertIndexInRange(lView, adjustedIndex);
        var renderer = lView[RENDERER];

        var _native12 = lView[adjustedIndex] = createElementNode(renderer, name, getNamespace());

        var tNode = tView.firstCreatePass ? elementStartFirstCreatePass(adjustedIndex, tView, lView, _native12, name, attrsIndex, localRefsIndex) : tView.data[adjustedIndex];
        setCurrentTNode(tNode, true);
        var mergedAttrs = tNode.mergedAttrs;

        if (mergedAttrs !== null) {
          setUpAttributes(renderer, _native12, mergedAttrs);
        }

        var classes = tNode.classes;

        if (classes !== null) {
          writeDirectClass(renderer, _native12, classes);
        }

        var styles = tNode.styles;

        if (styles !== null) {
          writeDirectStyle(renderer, _native12, styles);
        }

        if ((tNode.flags & 64
        /* isDetached */
        ) !== 64
        /* isDetached */
        ) {
          // In the i18n case, the translation may have removed this element, so only add it if it is not
          // detached. See `TNodeType.Placeholder` and `LFrame.inI18n` for more context.
          appendChild(tView, lView, _native12, tNode);
        } // any immediate children of a component or template container must be pre-emptively
        // monkey-patched with the component view data so that the element can be inspected
        // later on using any element discovery utility methods (see `element_discovery.ts`)


        if (getElementDepthCount() === 0) {
          attachPatchData(_native12, lView);
        }

        increaseElementDepthCount();

        if (isDirectiveHost(tNode)) {
          createDirectivesInstances(tView, lView, tNode);
          executeContentQueries(tView, tNode, lView);
        }

        if (localRefsIndex !== null) {
          saveResolvedLocalsInData(lView, tNode);
        }
      }
      /**
       * Mark the end of the element.
       *
       * @codeGenApi
       */


      function ɵɵelementEnd() {
        var currentTNode = getCurrentTNode();
        ngDevMode && assertDefined(currentTNode, 'No parent node to close.');

        if (isCurrentTNodeParent()) {
          setCurrentTNodeAsNotParent();
        } else {
          ngDevMode && assertHasParent(getCurrentTNode());
          currentTNode = currentTNode.parent;
          setCurrentTNode(currentTNode, false);
        }

        var tNode = currentTNode;
        ngDevMode && assertTNodeType(tNode, 3
        /* AnyRNode */
        );
        decreaseElementDepthCount();
        var tView = getTView();

        if (tView.firstCreatePass) {
          registerPostOrderHooks(tView, currentTNode);

          if (isContentQueryHost(currentTNode)) {
            tView.queries.elementEnd(currentTNode);
          }
        }

        if (tNode.classesWithoutHost != null && hasClassInput(tNode)) {
          setDirectiveInputsWhichShadowsStyling(tView, tNode, getLView(), tNode.classesWithoutHost, true);
        }

        if (tNode.stylesWithoutHost != null && hasStyleInput(tNode)) {
          setDirectiveInputsWhichShadowsStyling(tView, tNode, getLView(), tNode.stylesWithoutHost, false);
        }
      }
      /**
       * Creates an empty element using {@link elementStart} and {@link elementEnd}
       *
       * @param index Index of the element in the data array
       * @param name Name of the DOM Node
       * @param attrsIndex Index of the element's attributes in the `consts` array.
       * @param localRefsIndex Index of the element's local references in the `consts` array.
       *
       * @codeGenApi
       */


      function ɵɵelement(index, name, attrsIndex, localRefsIndex) {
        ɵɵelementStart(index, name, attrsIndex, localRefsIndex);
        ɵɵelementEnd();
      }

      function logUnknownElementError(tView, element, tNode, hasDirectives) {
        var schemas = tView.schemas; // If `schemas` is set to `null`, that's an indication that this Component was compiled in AOT
        // mode where this check happens at compile time. In JIT mode, `schemas` is always present and
        // defined as an array (as an empty array in case `schemas` field is not defined) and we should
        // execute the check below.

        if (schemas === null) return;
        var tagName = tNode.value; // If the element matches any directive, it's considered as valid.

        if (!hasDirectives && tagName !== null) {
          // The element is unknown if it's an instance of HTMLUnknownElement or it isn't registered
          // as a custom element. Note that unknown elements with a dash in their name won't be instances
          // of HTMLUnknownElement in browsers that support web components.
          var isUnknown = // Note that we can't check for `typeof HTMLUnknownElement === 'function'`,
          // because while most browsers return 'function', IE returns 'object'.
          typeof HTMLUnknownElement !== 'undefined' && HTMLUnknownElement && element instanceof HTMLUnknownElement || typeof customElements !== 'undefined' && tagName.indexOf('-') > -1 && !customElements.get(tagName);

          if (isUnknown && !matchingSchemas(tView, tagName)) {
            var message = "'".concat(tagName, "' is not a known element:\n");
            message += "1. If '".concat(tagName, "' is an Angular component, then verify that it is part of this module.\n");

            if (tagName && tagName.indexOf('-') > -1) {
              message += "2. If '".concat(tagName, "' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.");
            } else {
              message += "2. To allow any element add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.";
            }

            console.error(formatRuntimeError("304"
            /* UNKNOWN_ELEMENT */
            , message));
          }
        }
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function elementContainerStartFirstCreatePass(index, tView, lView, attrsIndex, localRefsIndex) {
        ngDevMode && ngDevMode.firstCreatePass++;
        var tViewConsts = tView.consts;
        var attrs = getConstant(tViewConsts, attrsIndex);
        var tNode = getOrCreateTNode(tView, index, 8
        /* ElementContainer */
        , 'ng-container', attrs); // While ng-container doesn't necessarily support styling, we use the style context to identify
        // and execute directives on the ng-container.

        if (attrs !== null) {
          computeStaticStyling(tNode, attrs, true);
        }

        var localRefs = getConstant(tViewConsts, localRefsIndex);
        resolveDirectives(tView, lView, tNode, localRefs);

        if (tView.queries !== null) {
          tView.queries.elementStart(tView, tNode);
        }

        return tNode;
      }
      /**
       * Creates a logical container for other nodes (<ng-container>) backed by a comment node in the DOM.
       * The instruction must later be followed by `elementContainerEnd()` call.
       *
       * @param index Index of the element in the LView array
       * @param attrsIndex Index of the container attributes in the `consts` array.
       * @param localRefsIndex Index of the container's local references in the `consts` array.
       *
       * Even if this instruction accepts a set of attributes no actual attribute values are propagated to
       * the DOM (as a comment node can't have attributes). Attributes are here only for directive
       * matching purposes and setting initial inputs of directives.
       *
       * @codeGenApi
       */


      function ɵɵelementContainerStart(index, attrsIndex, localRefsIndex) {
        var lView = getLView();
        var tView = getTView();
        var adjustedIndex = index + HEADER_OFFSET;
        ngDevMode && assertIndexInRange(lView, adjustedIndex);
        ngDevMode && assertEqual(getBindingIndex(), tView.bindingStartIndex, 'element containers should be created before any bindings');
        var tNode = tView.firstCreatePass ? elementContainerStartFirstCreatePass(adjustedIndex, tView, lView, attrsIndex, localRefsIndex) : tView.data[adjustedIndex];
        setCurrentTNode(tNode, true);
        ngDevMode && ngDevMode.rendererCreateComment++;

        var _native13 = lView[adjustedIndex] = lView[RENDERER].createComment(ngDevMode ? 'ng-container' : '');

        appendChild(tView, lView, _native13, tNode);
        attachPatchData(_native13, lView);

        if (isDirectiveHost(tNode)) {
          createDirectivesInstances(tView, lView, tNode);
          executeContentQueries(tView, tNode, lView);
        }

        if (localRefsIndex != null) {
          saveResolvedLocalsInData(lView, tNode);
        }
      }
      /**
       * Mark the end of the <ng-container>.
       *
       * @codeGenApi
       */


      function ɵɵelementContainerEnd() {
        var currentTNode = getCurrentTNode();
        var tView = getTView();

        if (isCurrentTNodeParent()) {
          setCurrentTNodeAsNotParent();
        } else {
          ngDevMode && assertHasParent(currentTNode);
          currentTNode = currentTNode.parent;
          setCurrentTNode(currentTNode, false);
        }

        ngDevMode && assertTNodeType(currentTNode, 8
        /* ElementContainer */
        );

        if (tView.firstCreatePass) {
          registerPostOrderHooks(tView, currentTNode);

          if (isContentQueryHost(currentTNode)) {
            tView.queries.elementEnd(currentTNode);
          }
        }
      }
      /**
       * Creates an empty logical container using {@link elementContainerStart}
       * and {@link elementContainerEnd}
       *
       * @param index Index of the element in the LView array
       * @param attrsIndex Index of the container attributes in the `consts` array.
       * @param localRefsIndex Index of the container's local references in the `consts` array.
       *
       * @codeGenApi
       */


      function ɵɵelementContainer(index, attrsIndex, localRefsIndex) {
        ɵɵelementContainerStart(index, attrsIndex, localRefsIndex);
        ɵɵelementContainerEnd();
      }
      /**
       * Returns the current OpaqueViewState instance.
       *
       * Used in conjunction with the restoreView() instruction to save a snapshot
       * of the current view and restore it when listeners are invoked. This allows
       * walking the declaration view tree in listeners to get vars from parent views.
       *
       * @codeGenApi
       */


      function ɵɵgetCurrentView() {
        return getLView();
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Determine if the argument is shaped like a Promise
       */


      function isPromise(obj) {
        // allow any Promise/A+ compliant thenable.
        // It's up to the caller to ensure that obj.then conforms to the spec
        return !!obj && typeof obj.then === 'function';
      }
      /**
       * Determine if the argument is an Observable
       */


      function isObservable(obj) {
        // TODO: use isObservable once we update pass rxjs 6.1
        // https://github.com/ReactiveX/rxjs/blob/master/CHANGELOG.md#610-2018-05-03
        return !!obj && typeof obj.subscribe === 'function';
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Adds an event listener to the current node.
       *
       * If an output exists on one of the node's directives, it also subscribes to the output
       * and saves the subscription for later cleanup.
       *
       * @param eventName Name of the event
       * @param listenerFn The function to be called when event emits
       * @param useCapture Whether or not to use capture in event listener
       * @param eventTargetResolver Function that returns global target information in case this listener
       * should be attached to a global object like window, document or body
       *
       * @codeGenApi
       */


      function ɵɵlistener(eventName, listenerFn) {
        var useCapture = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
        var eventTargetResolver = arguments.length > 3 ? arguments[3] : undefined;
        var lView = getLView();
        var tView = getTView();
        var tNode = getCurrentTNode();
        listenerInternal(tView, lView, lView[RENDERER], tNode, eventName, listenerFn, useCapture, eventTargetResolver);
        return ɵɵlistener;
      }
      /**
       * Registers a synthetic host listener (e.g. `(@foo.start)`) on a component or directive.
       *
       * This instruction is for compatibility purposes and is designed to ensure that a
       * synthetic host listener (e.g. `@HostListener('@foo.start')`) properly gets rendered
       * in the component's renderer. Normally all host listeners are evaluated with the
       * parent component's renderer, but, in the case of animation @triggers, they need
       * to be evaluated with the sub component's renderer (because that's where the
       * animation triggers are defined).
       *
       * Do not use this instruction as a replacement for `listener`. This instruction
       * only exists to ensure compatibility with the ViewEngine's host binding behavior.
       *
       * @param eventName Name of the event
       * @param listenerFn The function to be called when event emits
       * @param useCapture Whether or not to use capture in event listener
       * @param eventTargetResolver Function that returns global target information in case this listener
       * should be attached to a global object like window, document or body
       *
       * @codeGenApi
       */


      function ɵɵsyntheticHostListener(eventName, listenerFn) {
        var useCapture = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
        var eventTargetResolver = arguments.length > 3 ? arguments[3] : undefined;
        var tNode = getCurrentTNode();
        var lView = getLView();
        var tView = getTView();
        var currentDef = getCurrentDirectiveDef(tView.data);
        var renderer = loadComponentRenderer(currentDef, tNode, lView);
        listenerInternal(tView, lView, renderer, tNode, eventName, listenerFn, useCapture, eventTargetResolver);
        return ɵɵsyntheticHostListener;
      }
      /**
       * A utility function that checks if a given element has already an event handler registered for an
       * event with a specified name. The TView.cleanup data structure is used to find out which events
       * are registered for a given element.
       */


      function findExistingListener(tView, lView, eventName, tNodeIdx) {
        var tCleanup = tView.cleanup;

        if (tCleanup != null) {
          for (var i = 0; i < tCleanup.length - 1; i += 2) {
            var cleanupEventName = tCleanup[i];

            if (cleanupEventName === eventName && tCleanup[i + 1] === tNodeIdx) {
              // We have found a matching event name on the same node but it might not have been
              // registered yet, so we must explicitly verify entries in the LView cleanup data
              // structures.
              var lCleanup = lView[CLEANUP];
              var listenerIdxInLCleanup = tCleanup[i + 2];
              return lCleanup.length > listenerIdxInLCleanup ? lCleanup[listenerIdxInLCleanup] : null;
            } // TView.cleanup can have a mix of 4-elements entries (for event handler cleanups) or
            // 2-element entries (for directive and queries destroy hooks). As such we can encounter
            // blocks of 4 or 2 items in the tView.cleanup and this is why we iterate over 2 elements
            // first and jump another 2 elements if we detect listeners cleanup (4 elements). Also check
            // documentation of TView.cleanup for more details of this data structure layout.


            if (typeof cleanupEventName === 'string') {
              i += 2;
            }
          }
        }

        return null;
      }

      function listenerInternal(tView, lView, renderer, tNode, eventName, listenerFn) {
        var useCapture = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : false;
        var eventTargetResolver = arguments.length > 7 ? arguments[7] : undefined;
        var isTNodeDirectiveHost = isDirectiveHost(tNode);
        var firstCreatePass = tView.firstCreatePass;
        var tCleanup = firstCreatePass && (tView.cleanup || (tView.cleanup = [])); // When the ɵɵlistener instruction was generated and is executed we know that there is either a
        // native listener or a directive output on this element. As such we we know that we will have to
        // register a listener and store its cleanup function on LView.

        var lCleanup = getLCleanup(lView);
        ngDevMode && assertTNodeType(tNode, 3
        /* AnyRNode */
        | 12
        /* AnyContainer */
        );
        var processOutputs = true; // add native event listener - applicable to elements only

        if (tNode.type & 3
        /* AnyRNode */
        ) {
          var _native14 = getNativeByTNode(tNode, lView);

          var resolved = eventTargetResolver ? eventTargetResolver(_native14) : EMPTY_OBJ;
          var target = resolved.target || _native14;
          var lCleanupIndex = lCleanup.length;
          var idxOrTargetGetter = eventTargetResolver ? function (_lView) {
            return eventTargetResolver(unwrapRNode(_lView[tNode.index])).target;
          } : tNode.index; // In order to match current behavior, native DOM event listeners must be added for all
          // events (including outputs).

          if (isProceduralRenderer(renderer)) {
            // There might be cases where multiple directives on the same element try to register an event
            // handler function for the same event. In this situation we want to avoid registration of
            // several native listeners as each registration would be intercepted by NgZone and
            // trigger change detection. This would mean that a single user action would result in several
            // change detections being invoked. To avoid this situation we want to have only one call to
            // native handler registration (for the same element and same type of event).
            //
            // In order to have just one native event handler in presence of multiple handler functions,
            // we just register a first handler function as a native event listener and then chain
            // (coalesce) other handler functions on top of the first native handler function.
            var existingListener = null; // Please note that the coalescing described here doesn't happen for events specifying an
            // alternative target (ex. (document:click)) - this is to keep backward compatibility with the
            // view engine.
            // Also, we don't have to search for existing listeners is there are no directives
            // matching on a given node as we can't register multiple event handlers for the same event in
            // a template (this would mean having duplicate attributes).

            if (!eventTargetResolver && isTNodeDirectiveHost) {
              existingListener = findExistingListener(tView, lView, eventName, tNode.index);
            }

            if (existingListener !== null) {
              // Attach a new listener to coalesced listeners list, maintaining the order in which
              // listeners are registered. For performance reasons, we keep a reference to the last
              // listener in that list (in `__ngLastListenerFn__` field), so we can avoid going through
              // the entire set each time we need to add a new listener.
              var lastListenerFn = existingListener.__ngLastListenerFn__ || existingListener;
              lastListenerFn.__ngNextListenerFn__ = listenerFn;
              existingListener.__ngLastListenerFn__ = listenerFn;
              processOutputs = false;
            } else {
              // The first argument of `listen` function in Procedural Renderer is:
              // - either a target name (as a string) in case of global target (window, document, body)
              // - or element reference (in all other cases)
              listenerFn = wrapListener(tNode, lView, listenerFn, false
              /** preventDefault */
              );
              var cleanupFn = renderer.listen(resolved.name || target, eventName, listenerFn);
              ngDevMode && ngDevMode.rendererAddEventListener++;
              lCleanup.push(listenerFn, cleanupFn);
              tCleanup && tCleanup.push(eventName, idxOrTargetGetter, lCleanupIndex, lCleanupIndex + 1);
            }
          } else {
            listenerFn = wrapListener(tNode, lView, listenerFn, true
            /** preventDefault */
            );
            target.addEventListener(eventName, listenerFn, useCapture);
            ngDevMode && ngDevMode.rendererAddEventListener++;
            lCleanup.push(listenerFn);
            tCleanup && tCleanup.push(eventName, idxOrTargetGetter, lCleanupIndex, useCapture);
          }
        } // subscribe to directive outputs


        var outputs = tNode.outputs;
        var props;

        if (processOutputs && outputs !== null && (props = outputs[eventName])) {
          var propsLength = props.length;

          if (propsLength) {
            for (var i = 0; i < propsLength; i += 2) {
              var index = props[i];
              ngDevMode && assertIndexInRange(lView, index);
              var minifiedName = props[i + 1];
              var directiveInstance = lView[index];
              var output = directiveInstance[minifiedName];

              if (ngDevMode && !isObservable(output)) {
                throw new Error("@Output ".concat(minifiedName, " not initialized in '").concat(directiveInstance.constructor.name, "'."));
              }

              var subscription = output.subscribe(listenerFn);
              var idx = lCleanup.length;
              lCleanup.push(listenerFn, subscription);
              tCleanup && tCleanup.push(eventName, tNode.index, idx, -(idx + 1));
            }
          }
        }
      }

      function executeListenerWithErrorHandling(lView, listenerFn, e) {
        try {
          // Only explicitly returning false from a listener should preventDefault
          return listenerFn(e) !== false;
        } catch (error) {
          handleError(lView, error);
          return false;
        }
      }
      /**
       * Wraps an event listener with a function that marks ancestors dirty and prevents default behavior,
       * if applicable.
       *
       * @param tNode The TNode associated with this listener
       * @param lView The LView that contains this listener
       * @param listenerFn The listener function to call
       * @param wrapWithPreventDefault Whether or not to prevent default behavior
       * (the procedural renderer does this already, so in those cases, we should skip)
       */


      function wrapListener(tNode, lView, listenerFn, wrapWithPreventDefault) {
        // Note: we are performing most of the work in the listener function itself
        // to optimize listener registration.
        return function wrapListenerIn_markDirtyAndPreventDefault(e) {
          // Ivy uses `Function` as a special token that allows us to unwrap the function
          // so that it can be invoked programmatically by `DebugNode.triggerEventHandler`.
          if (e === Function) {
            return listenerFn;
          } // In order to be backwards compatible with View Engine, events on component host nodes
          // must also mark the component view itself dirty (i.e. the view that it owns).


          var startView = tNode.flags & 2
          /* isComponentHost */
          ? getComponentLViewByIndex(tNode.index, lView) : lView; // See interfaces/view.ts for more on LViewFlags.ManualOnPush

          if ((lView[FLAGS] & 32
          /* ManualOnPush */
          ) === 0) {
            markViewDirty(startView);
          }

          var result = executeListenerWithErrorHandling(lView, listenerFn, e); // A just-invoked listener function might have coalesced listeners so we need to check for
          // their presence and invoke as needed.

          var nextListenerFn = wrapListenerIn_markDirtyAndPreventDefault.__ngNextListenerFn__;

          while (nextListenerFn) {
            // We should prevent default if any of the listeners explicitly return false
            result = executeListenerWithErrorHandling(lView, nextListenerFn, e) && result;
            nextListenerFn = nextListenerFn.__ngNextListenerFn__;
          }

          if (wrapWithPreventDefault && result === false) {
            e.preventDefault(); // Necessary for legacy browsers that don't support preventDefault (e.g. IE)

            e.returnValue = false;
          }

          return result;
        };
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Retrieves a context at the level specified and saves it as the global, contextViewData.
       * Will get the next level up if level is not specified.
       *
       * This is used to save contexts of parent views so they can be bound in embedded views, or
       * in conjunction with reference() to bind a ref from a parent view.
       *
       * @param level The relative level of the view from which to grab context compared to contextVewData
       * @returns context
       *
       * @codeGenApi
       */


      function ɵɵnextContext() {
        var level = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;
        return nextContextImpl(level);
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Checks a given node against matching projection slots and returns the
       * determined slot index. Returns "null" if no slot matched the given node.
       *
       * This function takes into account the parsed ngProjectAs selector from the
       * node's attributes. If present, it will check whether the ngProjectAs selector
       * matches any of the projection slot selectors.
       */


      function matchingProjectionSlotIndex(tNode, projectionSlots) {
        var wildcardNgContentIndex = null;
        var ngProjectAsAttrVal = getProjectAsAttrValue(tNode);

        for (var i = 0; i < projectionSlots.length; i++) {
          var slotValue = projectionSlots[i]; // The last wildcard projection slot should match all nodes which aren't matching
          // any selector. This is necessary to be backwards compatible with view engine.

          if (slotValue === '*') {
            wildcardNgContentIndex = i;
            continue;
          } // If we ran into an `ngProjectAs` attribute, we should match its parsed selector
          // to the list of selectors, otherwise we fall back to matching against the node.


          if (ngProjectAsAttrVal === null ? isNodeMatchingSelectorList(tNode, slotValue,
          /* isProjectionMode */
          true) : isSelectorInSelectorList(ngProjectAsAttrVal, slotValue)) {
            return i; // first matching selector "captures" a given node
          }
        }

        return wildcardNgContentIndex;
      }
      /**
       * Instruction to distribute projectable nodes among <ng-content> occurrences in a given template.
       * It takes all the selectors from the entire component's template and decides where
       * each projected node belongs (it re-distributes nodes among "buckets" where each "bucket" is
       * backed by a selector).
       *
       * This function requires CSS selectors to be provided in 2 forms: parsed (by a compiler) and text,
       * un-parsed form.
       *
       * The parsed form is needed for efficient matching of a node against a given CSS selector.
       * The un-parsed, textual form is needed for support of the ngProjectAs attribute.
       *
       * Having a CSS selector in 2 different formats is not ideal, but alternatives have even more
       * drawbacks:
       * - having only a textual form would require runtime parsing of CSS selectors;
       * - we can't have only a parsed as we can't re-construct textual form from it (as entered by a
       * template author).
       *
       * @param projectionSlots? A collection of projection slots. A projection slot can be based
       *        on a parsed CSS selectors or set to the wildcard selector ("*") in order to match
       *        all nodes which do not match any selector. If not specified, a single wildcard
       *        selector projection slot will be defined.
       *
       * @codeGenApi
       */


      function ɵɵprojectionDef(projectionSlots) {
        var componentNode = getLView()[DECLARATION_COMPONENT_VIEW][T_HOST];

        if (!componentNode.projection) {
          // If no explicit projection slots are defined, fall back to a single
          // projection slot with the wildcard selector.
          var numProjectionSlots = projectionSlots ? projectionSlots.length : 1;
          var projectionHeads = componentNode.projection = newArray(numProjectionSlots, null);
          var tails = projectionHeads.slice();
          var componentChild = componentNode.child;

          while (componentChild !== null) {
            var slotIndex = projectionSlots ? matchingProjectionSlotIndex(componentChild, projectionSlots) : 0;

            if (slotIndex !== null) {
              if (tails[slotIndex]) {
                tails[slotIndex].projectionNext = componentChild;
              } else {
                projectionHeads[slotIndex] = componentChild;
              }

              tails[slotIndex] = componentChild;
            }

            componentChild = componentChild.next;
          }
        }
      }
      /**
       * Inserts previously re-distributed projected nodes. This instruction must be preceded by a call
       * to the projectionDef instruction.
       *
       * @param nodeIndex
       * @param selectorIndex:
       *        - 0 when the selector is `*` (or unspecified as this is the default value),
       *        - 1 based index of the selector from the {@link projectionDef}
       *
       * @codeGenApi
       */


      function ɵɵprojection(nodeIndex) {
        var selectorIndex = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
        var attrs = arguments.length > 2 ? arguments[2] : undefined;
        var lView = getLView();
        var tView = getTView();
        var tProjectionNode = getOrCreateTNode(tView, HEADER_OFFSET + nodeIndex, 16
        /* Projection */
        , null, attrs || null); // We can't use viewData[HOST_NODE] because projection nodes can be nested in embedded views.

        if (tProjectionNode.projection === null) tProjectionNode.projection = selectorIndex; // `<ng-content>` has no content

        setCurrentTNodeAsNotParent();

        if ((tProjectionNode.flags & 64
        /* isDetached */
        ) !== 64
        /* isDetached */
        ) {
          // re-distribution of projectable nodes is stored on a component's view level
          applyProjection(tView, lView, tProjectionNode);
        }
      }
      /**
       *
       * Update an interpolated property on an element with a lone bound value
       *
       * Used when the value passed to a property has 1 interpolated value in it, an no additional text
       * surrounds that interpolated value:
       *
       * ```html
       * <div title="{{v0}}"></div>
       * ```
       *
       * Its compiled representation is::
       *
       * ```ts
       * ɵɵpropertyInterpolate('title', v0);
       * ```
       *
       * If the property name also exists as an input property on one of the element's directives,
       * the component property will be set instead of the element property. This check must
       * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.
       *
       * @param propName The name of the property to update
       * @param prefix Static value used for concatenation only.
       * @param v0 Value checked for change.
       * @param suffix Static value used for concatenation only.
       * @param sanitizer An optional sanitizer function
       * @returns itself, so that it may be chained.
       * @codeGenApi
       */


      function ɵɵpropertyInterpolate(propName, v0, sanitizer) {
        ɵɵpropertyInterpolate1(propName, '', v0, '', sanitizer);
        return ɵɵpropertyInterpolate;
      }
      /**
       *
       * Update an interpolated property on an element with single bound value surrounded by text.
       *
       * Used when the value passed to a property has 1 interpolated value in it:
       *
       * ```html
       * <div title="prefix{{v0}}suffix"></div>
       * ```
       *
       * Its compiled representation is::
       *
       * ```ts
       * ɵɵpropertyInterpolate1('title', 'prefix', v0, 'suffix');
       * ```
       *
       * If the property name also exists as an input property on one of the element's directives,
       * the component property will be set instead of the element property. This check must
       * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.
       *
       * @param propName The name of the property to update
       * @param prefix Static value used for concatenation only.
       * @param v0 Value checked for change.
       * @param suffix Static value used for concatenation only.
       * @param sanitizer An optional sanitizer function
       * @returns itself, so that it may be chained.
       * @codeGenApi
       */


      function ɵɵpropertyInterpolate1(propName, prefix, v0, suffix, sanitizer) {
        var lView = getLView();
        var interpolatedValue = interpolation1(lView, prefix, v0, suffix);

        if (interpolatedValue !== NO_CHANGE) {
          var tView = getTView();
          var tNode = getSelectedTNode();
          elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);
          ngDevMode && storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - 1, prefix, suffix);
        }

        return ɵɵpropertyInterpolate1;
      }
      /**
       *
       * Update an interpolated property on an element with 2 bound values surrounded by text.
       *
       * Used when the value passed to a property has 2 interpolated values in it:
       *
       * ```html
       * <div title="prefix{{v0}}-{{v1}}suffix"></div>
       * ```
       *
       * Its compiled representation is::
       *
       * ```ts
       * ɵɵpropertyInterpolate2('title', 'prefix', v0, '-', v1, 'suffix');
       * ```
       *
       * If the property name also exists as an input property on one of the element's directives,
       * the component property will be set instead of the element property. This check must
       * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.
       *
       * @param propName The name of the property to update
       * @param prefix Static value used for concatenation only.
       * @param v0 Value checked for change.
       * @param i0 Static value used for concatenation only.
       * @param v1 Value checked for change.
       * @param suffix Static value used for concatenation only.
       * @param sanitizer An optional sanitizer function
       * @returns itself, so that it may be chained.
       * @codeGenApi
       */


      function ɵɵpropertyInterpolate2(propName, prefix, v0, i0, v1, suffix, sanitizer) {
        var lView = getLView();
        var interpolatedValue = interpolation2(lView, prefix, v0, i0, v1, suffix);

        if (interpolatedValue !== NO_CHANGE) {
          var tView = getTView();
          var tNode = getSelectedTNode();
          elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);
          ngDevMode && storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - 2, prefix, i0, suffix);
        }

        return ɵɵpropertyInterpolate2;
      }
      /**
       *
       * Update an interpolated property on an element with 3 bound values surrounded by text.
       *
       * Used when the value passed to a property has 3 interpolated values in it:
       *
       * ```html
       * <div title="prefix{{v0}}-{{v1}}-{{v2}}suffix"></div>
       * ```
       *
       * Its compiled representation is::
       *
       * ```ts
       * ɵɵpropertyInterpolate3(
       * 'title', 'prefix', v0, '-', v1, '-', v2, 'suffix');
       * ```
       *
       * If the property name also exists as an input property on one of the element's directives,
       * the component property will be set instead of the element property. This check must
       * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.
       *
       * @param propName The name of the property to update
       * @param prefix Static value used for concatenation only.
       * @param v0 Value checked for change.
       * @param i0 Static value used for concatenation only.
       * @param v1 Value checked for change.
       * @param i1 Static value used for concatenation only.
       * @param v2 Value checked for change.
       * @param suffix Static value used for concatenation only.
       * @param sanitizer An optional sanitizer function
       * @returns itself, so that it may be chained.
       * @codeGenApi
       */


      function ɵɵpropertyInterpolate3(propName, prefix, v0, i0, v1, i1, v2, suffix, sanitizer) {
        var lView = getLView();
        var interpolatedValue = interpolation3(lView, prefix, v0, i0, v1, i1, v2, suffix);

        if (interpolatedValue !== NO_CHANGE) {
          var tView = getTView();
          var tNode = getSelectedTNode();
          elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);
          ngDevMode && storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - 3, prefix, i0, i1, suffix);
        }

        return ɵɵpropertyInterpolate3;
      }
      /**
       *
       * Update an interpolated property on an element with 4 bound values surrounded by text.
       *
       * Used when the value passed to a property has 4 interpolated values in it:
       *
       * ```html
       * <div title="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}suffix"></div>
       * ```
       *
       * Its compiled representation is::
       *
       * ```ts
       * ɵɵpropertyInterpolate4(
       * 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, 'suffix');
       * ```
       *
       * If the property name also exists as an input property on one of the element's directives,
       * the component property will be set instead of the element property. This check must
       * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.
       *
       * @param propName The name of the property to update
       * @param prefix Static value used for concatenation only.
       * @param v0 Value checked for change.
       * @param i0 Static value used for concatenation only.
       * @param v1 Value checked for change.
       * @param i1 Static value used for concatenation only.
       * @param v2 Value checked for change.
       * @param i2 Static value used for concatenation only.
       * @param v3 Value checked for change.
       * @param suffix Static value used for concatenation only.
       * @param sanitizer An optional sanitizer function
       * @returns itself, so that it may be chained.
       * @codeGenApi
       */


      function ɵɵpropertyInterpolate4(propName, prefix, v0, i0, v1, i1, v2, i2, v3, suffix, sanitizer) {
        var lView = getLView();
        var interpolatedValue = interpolation4(lView, prefix, v0, i0, v1, i1, v2, i2, v3, suffix);

        if (interpolatedValue !== NO_CHANGE) {
          var tView = getTView();
          var tNode = getSelectedTNode();
          elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);
          ngDevMode && storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - 4, prefix, i0, i1, i2, suffix);
        }

        return ɵɵpropertyInterpolate4;
      }
      /**
       *
       * Update an interpolated property on an element with 5 bound values surrounded by text.
       *
       * Used when the value passed to a property has 5 interpolated values in it:
       *
       * ```html
       * <div title="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}suffix"></div>
       * ```
       *
       * Its compiled representation is::
       *
       * ```ts
       * ɵɵpropertyInterpolate5(
       * 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, 'suffix');
       * ```
       *
       * If the property name also exists as an input property on one of the element's directives,
       * the component property will be set instead of the element property. This check must
       * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.
       *
       * @param propName The name of the property to update
       * @param prefix Static value used for concatenation only.
       * @param v0 Value checked for change.
       * @param i0 Static value used for concatenation only.
       * @param v1 Value checked for change.
       * @param i1 Static value used for concatenation only.
       * @param v2 Value checked for change.
       * @param i2 Static value used for concatenation only.
       * @param v3 Value checked for change.
       * @param i3 Static value used for concatenation only.
       * @param v4 Value checked for change.
       * @param suffix Static value used for concatenation only.
       * @param sanitizer An optional sanitizer function
       * @returns itself, so that it may be chained.
       * @codeGenApi
       */


      function ɵɵpropertyInterpolate5(propName, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix, sanitizer) {
        var lView = getLView();
        var interpolatedValue = interpolation5(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix);

        if (interpolatedValue !== NO_CHANGE) {
          var tView = getTView();
          var tNode = getSelectedTNode();
          elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);
          ngDevMode && storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - 5, prefix, i0, i1, i2, i3, suffix);
        }

        return ɵɵpropertyInterpolate5;
      }
      /**
       *
       * Update an interpolated property on an element with 6 bound values surrounded by text.
       *
       * Used when the value passed to a property has 6 interpolated values in it:
       *
       * ```html
       * <div title="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}suffix"></div>
       * ```
       *
       * Its compiled representation is::
       *
       * ```ts
       * ɵɵpropertyInterpolate6(
       *    'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, 'suffix');
       * ```
       *
       * If the property name also exists as an input property on one of the element's directives,
       * the component property will be set instead of the element property. This check must
       * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.
       *
       * @param propName The name of the property to update
       * @param prefix Static value used for concatenation only.
       * @param v0 Value checked for change.
       * @param i0 Static value used for concatenation only.
       * @param v1 Value checked for change.
       * @param i1 Static value used for concatenation only.
       * @param v2 Value checked for change.
       * @param i2 Static value used for concatenation only.
       * @param v3 Value checked for change.
       * @param i3 Static value used for concatenation only.
       * @param v4 Value checked for change.
       * @param i4 Static value used for concatenation only.
       * @param v5 Value checked for change.
       * @param suffix Static value used for concatenation only.
       * @param sanitizer An optional sanitizer function
       * @returns itself, so that it may be chained.
       * @codeGenApi
       */


      function ɵɵpropertyInterpolate6(propName, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix, sanitizer) {
        var lView = getLView();
        var interpolatedValue = interpolation6(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix);

        if (interpolatedValue !== NO_CHANGE) {
          var tView = getTView();
          var tNode = getSelectedTNode();
          elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);
          ngDevMode && storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - 6, prefix, i0, i1, i2, i3, i4, suffix);
        }

        return ɵɵpropertyInterpolate6;
      }
      /**
       *
       * Update an interpolated property on an element with 7 bound values surrounded by text.
       *
       * Used when the value passed to a property has 7 interpolated values in it:
       *
       * ```html
       * <div title="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}suffix"></div>
       * ```
       *
       * Its compiled representation is::
       *
       * ```ts
       * ɵɵpropertyInterpolate7(
       *    'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, 'suffix');
       * ```
       *
       * If the property name also exists as an input property on one of the element's directives,
       * the component property will be set instead of the element property. This check must
       * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.
       *
       * @param propName The name of the property to update
       * @param prefix Static value used for concatenation only.
       * @param v0 Value checked for change.
       * @param i0 Static value used for concatenation only.
       * @param v1 Value checked for change.
       * @param i1 Static value used for concatenation only.
       * @param v2 Value checked for change.
       * @param i2 Static value used for concatenation only.
       * @param v3 Value checked for change.
       * @param i3 Static value used for concatenation only.
       * @param v4 Value checked for change.
       * @param i4 Static value used for concatenation only.
       * @param v5 Value checked for change.
       * @param i5 Static value used for concatenation only.
       * @param v6 Value checked for change.
       * @param suffix Static value used for concatenation only.
       * @param sanitizer An optional sanitizer function
       * @returns itself, so that it may be chained.
       * @codeGenApi
       */


      function ɵɵpropertyInterpolate7(propName, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix, sanitizer) {
        var lView = getLView();
        var interpolatedValue = interpolation7(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix);

        if (interpolatedValue !== NO_CHANGE) {
          var tView = getTView();
          var tNode = getSelectedTNode();
          elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);
          ngDevMode && storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - 7, prefix, i0, i1, i2, i3, i4, i5, suffix);
        }

        return ɵɵpropertyInterpolate7;
      }
      /**
       *
       * Update an interpolated property on an element with 8 bound values surrounded by text.
       *
       * Used when the value passed to a property has 8 interpolated values in it:
       *
       * ```html
       * <div title="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}suffix"></div>
       * ```
       *
       * Its compiled representation is::
       *
       * ```ts
       * ɵɵpropertyInterpolate8(
       *  'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, 'suffix');
       * ```
       *
       * If the property name also exists as an input property on one of the element's directives,
       * the component property will be set instead of the element property. This check must
       * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.
       *
       * @param propName The name of the property to update
       * @param prefix Static value used for concatenation only.
       * @param v0 Value checked for change.
       * @param i0 Static value used for concatenation only.
       * @param v1 Value checked for change.
       * @param i1 Static value used for concatenation only.
       * @param v2 Value checked for change.
       * @param i2 Static value used for concatenation only.
       * @param v3 Value checked for change.
       * @param i3 Static value used for concatenation only.
       * @param v4 Value checked for change.
       * @param i4 Static value used for concatenation only.
       * @param v5 Value checked for change.
       * @param i5 Static value used for concatenation only.
       * @param v6 Value checked for change.
       * @param i6 Static value used for concatenation only.
       * @param v7 Value checked for change.
       * @param suffix Static value used for concatenation only.
       * @param sanitizer An optional sanitizer function
       * @returns itself, so that it may be chained.
       * @codeGenApi
       */


      function ɵɵpropertyInterpolate8(propName, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix, sanitizer) {
        var lView = getLView();
        var interpolatedValue = interpolation8(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix);

        if (interpolatedValue !== NO_CHANGE) {
          var tView = getTView();
          var tNode = getSelectedTNode();
          elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);
          ngDevMode && storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - 8, prefix, i0, i1, i2, i3, i4, i5, i6, suffix);
        }

        return ɵɵpropertyInterpolate8;
      }
      /**
       * Update an interpolated property on an element with 9 or more bound values surrounded by text.
       *
       * Used when the number of interpolated values exceeds 8.
       *
       * ```html
       * <div
       *  title="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}-{{v8}}-{{v9}}suffix"></div>
       * ```
       *
       * Its compiled representation is::
       *
       * ```ts
       * ɵɵpropertyInterpolateV(
       *  'title', ['prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, '-', v9,
       *  'suffix']);
       * ```
       *
       * If the property name also exists as an input property on one of the element's directives,
       * the component property will be set instead of the element property. This check must
       * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.
       *
       * @param propName The name of the property to update.
       * @param values The collection of values and the strings inbetween those values, beginning with a
       * string prefix and ending with a string suffix.
       * (e.g. `['prefix', value0, '-', value1, '-', value2, ..., value99, 'suffix']`)
       * @param sanitizer An optional sanitizer function
       * @returns itself, so that it may be chained.
       * @codeGenApi
       */


      function ɵɵpropertyInterpolateV(propName, values, sanitizer) {
        var lView = getLView();
        var interpolatedValue = interpolationV(lView, values);

        if (interpolatedValue !== NO_CHANGE) {
          var tView = getTView();
          var tNode = getSelectedTNode();
          elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);

          if (ngDevMode) {
            var interpolationInBetween = [values[0]]; // prefix

            for (var i = 2; i < values.length; i += 2) {
              interpolationInBetween.push(values[i]);
            }

            storePropertyBindingMetadata.apply(void 0, [tView.data, tNode, propName, getBindingIndex() - interpolationInBetween.length + 1].concat(interpolationInBetween));
          }
        }

        return ɵɵpropertyInterpolateV;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * This file contains reuseable "empty" symbols that can be used as default return values
       * in different parts of the rendering code. Because the same symbols are returned, this
       * allows for identity checks against these values to be consistently used by the framework
       * code.
       */


      var EMPTY_OBJ$1 = {};
      var EMPTY_ARRAY$3 = []; // freezing the values prevents any code from accidentally inserting new values in

      if ((typeof ngDevMode === 'undefined' || ngDevMode) && initNgDevMode()) {
        // These property accesses can be ignored because ngDevMode will be set to false
        // when optimizing code and the whole if statement will be dropped.
        // tslint:disable-next-line:no-toplevel-property-access
        Object.freeze(EMPTY_OBJ$1); // tslint:disable-next-line:no-toplevel-property-access

        Object.freeze(EMPTY_ARRAY$3);
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * NOTE: The word `styling` is used interchangeably as style or class styling.
       *
       * This file contains code to link styling instructions together so that they can be replayed in
       * priority order. The file exists because Ivy styling instruction execution order does not match
       * that of the priority order. The purpose of this code is to create a linked list so that the
       * instructions can be traversed in priority order when computing the styles.
       *
       * Assume we are dealing with the following code:
       * ```
       * @Component({
       *   template: `
       *     <my-cmp [style]=" {color: '#001'} "
       *             [style.color]=" #002 "
       *             dir-style-color-1
       *             dir-style-color-2> `
       * })
       * class ExampleComponent {
       *   static ngComp = ... {
       *     ...
       *     // Compiler ensures that `ɵɵstyleProp` is after `ɵɵstyleMap`
       *     ɵɵstyleMap({color: '#001'});
       *     ɵɵstyleProp('color', '#002');
       *     ...
       *   }
       * }
       *
       * @Directive({
       *   selector: `[dir-style-color-1]',
       * })
       * class Style1Directive {
       *   @HostBinding('style') style = {color: '#005'};
       *   @HostBinding('style.color') color = '#006';
       *
       *   static ngDir = ... {
       *     ...
       *     // Compiler ensures that `ɵɵstyleProp` is after `ɵɵstyleMap`
       *     ɵɵstyleMap({color: '#005'});
       *     ɵɵstyleProp('color', '#006');
       *     ...
       *   }
       * }
       *
       * @Directive({
       *   selector: `[dir-style-color-2]',
       * })
       * class Style2Directive {
       *   @HostBinding('style') style = {color: '#007'};
       *   @HostBinding('style.color') color = '#008';
       *
       *   static ngDir = ... {
       *     ...
       *     // Compiler ensures that `ɵɵstyleProp` is after `ɵɵstyleMap`
       *     ɵɵstyleMap({color: '#007'});
       *     ɵɵstyleProp('color', '#008');
       *     ...
       *   }
       * }
       *
       * @Directive({
       *   selector: `my-cmp',
       * })
       * class MyComponent {
       *   @HostBinding('style') style = {color: '#003'};
       *   @HostBinding('style.color') color = '#004';
       *
       *   static ngComp = ... {
       *     ...
       *     // Compiler ensures that `ɵɵstyleProp` is after `ɵɵstyleMap`
       *     ɵɵstyleMap({color: '#003'});
       *     ɵɵstyleProp('color', '#004');
       *     ...
       *   }
       * }
       * ```
       *
       * The Order of instruction execution is:
       *
       * NOTE: the comment binding location is for illustrative purposes only.
       *
       * ```
       * // Template: (ExampleComponent)
       *     ɵɵstyleMap({color: '#001'});   // Binding index: 10
       *     ɵɵstyleProp('color', '#002');  // Binding index: 12
       * // MyComponent
       *     ɵɵstyleMap({color: '#003'});   // Binding index: 20
       *     ɵɵstyleProp('color', '#004');  // Binding index: 22
       * // Style1Directive
       *     ɵɵstyleMap({color: '#005'});   // Binding index: 24
       *     ɵɵstyleProp('color', '#006');  // Binding index: 26
       * // Style2Directive
       *     ɵɵstyleMap({color: '#007'});   // Binding index: 28
       *     ɵɵstyleProp('color', '#008');  // Binding index: 30
       * ```
       *
       * The correct priority order of concatenation is:
       *
       * ```
       * // MyComponent
       *     ɵɵstyleMap({color: '#003'});   // Binding index: 20
       *     ɵɵstyleProp('color', '#004');  // Binding index: 22
       * // Style1Directive
       *     ɵɵstyleMap({color: '#005'});   // Binding index: 24
       *     ɵɵstyleProp('color', '#006');  // Binding index: 26
       * // Style2Directive
       *     ɵɵstyleMap({color: '#007'});   // Binding index: 28
       *     ɵɵstyleProp('color', '#008');  // Binding index: 30
       * // Template: (ExampleComponent)
       *     ɵɵstyleMap({color: '#001'});   // Binding index: 10
       *     ɵɵstyleProp('color', '#002');  // Binding index: 12
       * ```
       *
       * What color should be rendered?
       *
       * Once the items are correctly sorted in the list, the answer is simply the last item in the
       * concatenation list which is `#002`.
       *
       * To do so we keep a linked list of all of the bindings which pertain to this element.
       * Notice that the bindings are inserted in the order of execution, but the `TView.data` allows
       * us to traverse them in the order of priority.
       *
       * |Idx|`TView.data`|`LView`          | Notes
       * |---|------------|-----------------|--------------
       * |...|            |                 |
       * |10 |`null`      |`{color: '#001'}`| `ɵɵstyleMap('color', {color: '#001'})`
       * |11 |`30 | 12`   | ...             |
       * |12 |`color`     |`'#002'`         | `ɵɵstyleProp('color', '#002')`
       * |13 |`10 | 0`    | ...             |
       * |...|            |                 |
       * |20 |`null`      |`{color: '#003'}`| `ɵɵstyleMap('color', {color: '#003'})`
       * |21 |`0 | 22`    | ...             |
       * |22 |`color`     |`'#004'`         | `ɵɵstyleProp('color', '#004')`
       * |23 |`20 | 24`   | ...             |
       * |24 |`null`      |`{color: '#005'}`| `ɵɵstyleMap('color', {color: '#005'})`
       * |25 |`22 | 26`   | ...             |
       * |26 |`color`     |`'#006'`         | `ɵɵstyleProp('color', '#006')`
       * |27 |`24 | 28`   | ...             |
       * |28 |`null`      |`{color: '#007'}`| `ɵɵstyleMap('color', {color: '#007'})`
       * |29 |`26 | 30`   | ...             |
       * |30 |`color`     |`'#008'`         | `ɵɵstyleProp('color', '#008')`
       * |31 |`28 | 10`   | ...             |
       *
       * The above data structure allows us to re-concatenate the styling no matter which data binding
       * changes.
       *
       * NOTE: in addition to keeping track of next/previous index the `TView.data` also stores prev/next
       * duplicate bit. The duplicate bit if true says there either is a binding with the same name or
       * there is a map (which may contain the name). This information is useful in knowing if other
       * styles with higher priority need to be searched for overwrites.
       *
       * NOTE: See `should support example in 'tnode_linked_list.ts' documentation` in
       * `tnode_linked_list_spec.ts` for working example.
       */


      var __unused_const_as_closure_does_not_like_standalone_comment_blocks__;
      /**
       * Insert new `tStyleValue` at `TData` and link existing style bindings such that we maintain linked
       * list of styles and compute the duplicate flag.
       *
       * Note: this function is executed during `firstUpdatePass` only to populate the `TView.data`.
       *
       * The function works by keeping track of `tStylingRange` which contains two pointers pointing to
       * the head/tail of the template portion of the styles.
       *  - if `isHost === false` (we are template) then insertion is at tail of `TStylingRange`
       *  - if `isHost === true` (we are host binding) then insertion is at head of `TStylingRange`
       *
       * @param tData The `TData` to insert into.
       * @param tNode `TNode` associated with the styling element.
       * @param tStylingKey See `TStylingKey`.
       * @param index location of where `tStyleValue` should be stored (and linked into list.)
       * @param isHostBinding `true` if the insertion is for a `hostBinding`. (insertion is in front of
       *               template.)
       * @param isClassBinding True if the associated `tStylingKey` as a `class` styling.
       *                       `tNode.classBindings` should be used (or `tNode.styleBindings` otherwise.)
       */


      function insertTStylingBinding(tData, tNode, tStylingKeyWithStatic, index, isHostBinding, isClassBinding) {
        ngDevMode && assertFirstUpdatePass(getTView());
        var tBindings = isClassBinding ? tNode.classBindings : tNode.styleBindings;
        var tmplHead = getTStylingRangePrev(tBindings);
        var tmplTail = getTStylingRangeNext(tBindings);
        tData[index] = tStylingKeyWithStatic;
        var isKeyDuplicateOfStatic = false;
        var tStylingKey;

        if (Array.isArray(tStylingKeyWithStatic)) {
          // We are case when the `TStylingKey` contains static fields as well.
          var staticKeyValueArray = tStylingKeyWithStatic;
          tStylingKey = staticKeyValueArray[1]; // unwrap.
          // We need to check if our key is present in the static so that we can mark it as duplicate.

          if (tStylingKey === null || keyValueArrayIndexOf(staticKeyValueArray, tStylingKey) > 0) {
            // tStylingKey is present in the statics, need to mark it as duplicate.
            isKeyDuplicateOfStatic = true;
          }
        } else {
          tStylingKey = tStylingKeyWithStatic;
        }

        if (isHostBinding) {
          // We are inserting host bindings
          // If we don't have template bindings then `tail` is 0.
          var hasTemplateBindings = tmplTail !== 0; // This is important to know because that means that the `head` can't point to the first
          // template bindings (there are none.) Instead the head points to the tail of the template.

          if (hasTemplateBindings) {
            // template head's "prev" will point to last host binding or to 0 if no host bindings yet
            var previousNode = getTStylingRangePrev(tData[tmplHead + 1]);
            tData[index + 1] = toTStylingRange(previousNode, tmplHead); // if a host binding has already been registered, we need to update the next of that host
            // binding to point to this one

            if (previousNode !== 0) {
              // We need to update the template-tail value to point to us.
              tData[previousNode + 1] = setTStylingRangeNext(tData[previousNode + 1], index);
            } // The "previous" of the template binding head should point to this host binding


            tData[tmplHead + 1] = setTStylingRangePrev(tData[tmplHead + 1], index);
          } else {
            tData[index + 1] = toTStylingRange(tmplHead, 0); // if a host binding has already been registered, we need to update the next of that host
            // binding to point to this one

            if (tmplHead !== 0) {
              // We need to update the template-tail value to point to us.
              tData[tmplHead + 1] = setTStylingRangeNext(tData[tmplHead + 1], index);
            } // if we don't have template, the head points to template-tail, and needs to be advanced.


            tmplHead = index;
          }
        } else {
          // We are inserting in template section.
          // We need to set this binding's "previous" to the current template tail
          tData[index + 1] = toTStylingRange(tmplTail, 0);
          ngDevMode && assertEqual(tmplHead !== 0 && tmplTail === 0, false, 'Adding template bindings after hostBindings is not allowed.');

          if (tmplHead === 0) {
            tmplHead = index;
          } else {
            // We need to update the previous value "next" to point to this binding
            tData[tmplTail + 1] = setTStylingRangeNext(tData[tmplTail + 1], index);
          }

          tmplTail = index;
        } // Now we need to update / compute the duplicates.
        // Starting with our location search towards head (least priority)


        if (isKeyDuplicateOfStatic) {
          tData[index + 1] = setTStylingRangePrevDuplicate(tData[index + 1]);
        }

        markDuplicates(tData, tStylingKey, index, true, isClassBinding);
        markDuplicates(tData, tStylingKey, index, false, isClassBinding);
        markDuplicateOfResidualStyling(tNode, tStylingKey, tData, index, isClassBinding);
        tBindings = toTStylingRange(tmplHead, tmplTail);

        if (isClassBinding) {
          tNode.classBindings = tBindings;
        } else {
          tNode.styleBindings = tBindings;
        }
      }
      /**
       * Look into the residual styling to see if the current `tStylingKey` is duplicate of residual.
       *
       * @param tNode `TNode` where the residual is stored.
       * @param tStylingKey `TStylingKey` to store.
       * @param tData `TData` associated with the current `LView`.
       * @param index location of where `tStyleValue` should be stored (and linked into list.)
       * @param isClassBinding True if the associated `tStylingKey` as a `class` styling.
       *                       `tNode.classBindings` should be used (or `tNode.styleBindings` otherwise.)
       */


      function markDuplicateOfResidualStyling(tNode, tStylingKey, tData, index, isClassBinding) {
        var residual = isClassBinding ? tNode.residualClasses : tNode.residualStyles;

        if (residual != null
        /* or undefined */
        && typeof tStylingKey == 'string' && keyValueArrayIndexOf(residual, tStylingKey) >= 0) {
          // We have duplicate in the residual so mark ourselves as duplicate.
          tData[index + 1] = setTStylingRangeNextDuplicate(tData[index + 1]);
        }
      }
      /**
       * Marks `TStyleValue`s as duplicates if another style binding in the list has the same
       * `TStyleValue`.
       *
       * NOTE: this function is intended to be called twice once with `isPrevDir` set to `true` and once
       * with it set to `false` to search both the previous as well as next items in the list.
       *
       * No duplicate case
       * ```
       *   [style.color]
       *   [style.width.px] <<- index
       *   [style.height.px]
       * ```
       *
       * In the above case adding `[style.width.px]` to the existing `[style.color]` produces no
       * duplicates because `width` is not found in any other part of the linked list.
       *
       * Duplicate case
       * ```
       *   [style.color]
       *   [style.width.em]
       *   [style.width.px] <<- index
       * ```
       * In the above case adding `[style.width.px]` will produce a duplicate with `[style.width.em]`
       * because `width` is found in the chain.
       *
       * Map case 1
       * ```
       *   [style.width.px]
       *   [style.color]
       *   [style]  <<- index
       * ```
       * In the above case adding `[style]` will produce a duplicate with any other bindings because
       * `[style]` is a Map and as such is fully dynamic and could produce `color` or `width`.
       *
       * Map case 2
       * ```
       *   [style]
       *   [style.width.px]
       *   [style.color]  <<- index
       * ```
       * In the above case adding `[style.color]` will produce a duplicate because there is already a
       * `[style]` binding which is a Map and as such is fully dynamic and could produce `color` or
       * `width`.
       *
       * NOTE: Once `[style]` (Map) is added into the system all things are mapped as duplicates.
       * NOTE: We use `style` as example, but same logic is applied to `class`es as well.
       *
       * @param tData `TData` where the linked list is stored.
       * @param tStylingKey `TStylingKeyPrimitive` which contains the value to compare to other keys in
       *        the linked list.
       * @param index Starting location in the linked list to search from
       * @param isPrevDir Direction.
       *        - `true` for previous (lower priority);
       *        - `false` for next (higher priority).
       */


      function markDuplicates(tData, tStylingKey, index, isPrevDir, isClassBinding) {
        var tStylingAtIndex = tData[index + 1];
        var isMap = tStylingKey === null;
        var cursor = isPrevDir ? getTStylingRangePrev(tStylingAtIndex) : getTStylingRangeNext(tStylingAtIndex);
        var foundDuplicate = false; // We keep iterating as long as we have a cursor
        // AND either:
        // - we found what we are looking for, OR
        // - we are a map in which case we have to continue searching even after we find what we were
        //   looking for since we are a wild card and everything needs to be flipped to duplicate.

        while (cursor !== 0 && (foundDuplicate === false || isMap)) {
          ngDevMode && assertIndexInRange(tData, cursor);
          var tStylingValueAtCursor = tData[cursor];
          var tStyleRangeAtCursor = tData[cursor + 1];

          if (isStylingMatch(tStylingValueAtCursor, tStylingKey)) {
            foundDuplicate = true;
            tData[cursor + 1] = isPrevDir ? setTStylingRangeNextDuplicate(tStyleRangeAtCursor) : setTStylingRangePrevDuplicate(tStyleRangeAtCursor);
          }

          cursor = isPrevDir ? getTStylingRangePrev(tStyleRangeAtCursor) : getTStylingRangeNext(tStyleRangeAtCursor);
        }

        if (foundDuplicate) {
          // if we found a duplicate, than mark ourselves.
          tData[index + 1] = isPrevDir ? setTStylingRangePrevDuplicate(tStylingAtIndex) : setTStylingRangeNextDuplicate(tStylingAtIndex);
        }
      }
      /**
       * Determines if two `TStylingKey`s are a match.
       *
       * When computing whether a binding contains a duplicate, we need to compare if the instruction
       * `TStylingKey` has a match.
       *
       * Here are examples of `TStylingKey`s which match given `tStylingKeyCursor` is:
       * - `color`
       *    - `color`    // Match another color
       *    - `null`     // That means that `tStylingKey` is a `classMap`/`styleMap` instruction
       *    - `['', 'color', 'other', true]` // wrapped `color` so match
       *    - `['', null, 'other', true]`       // wrapped `null` so match
       *    - `['', 'width', 'color', 'value']` // wrapped static value contains a match on `'color'`
       * - `null`       // `tStylingKeyCursor` always match as it is `classMap`/`styleMap` instruction
       *
       * @param tStylingKeyCursor
       * @param tStylingKey
       */


      function isStylingMatch(tStylingKeyCursor, tStylingKey) {
        ngDevMode && assertNotEqual(Array.isArray(tStylingKey), true, 'Expected that \'tStylingKey\' has been unwrapped');

        if (tStylingKeyCursor === null || // If the cursor is `null` it means that we have map at that
        // location so we must assume that we have a match.
        tStylingKey == null || // If `tStylingKey` is `null` then it is a map therefor assume that it
        // contains a match.
        (Array.isArray(tStylingKeyCursor) ? tStylingKeyCursor[1] : tStylingKeyCursor) === tStylingKey // If the keys match explicitly than we are a match.
        ) {
          return true;
        } else if (Array.isArray(tStylingKeyCursor) && typeof tStylingKey === 'string') {
          // if we did not find a match, but `tStylingKeyCursor` is `KeyValueArray` that means cursor has
          // statics and we need to check those as well.
          return keyValueArrayIndexOf(tStylingKeyCursor, tStylingKey) >= 0; // see if we are matching the key
        }

        return false;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */
      // Global state of the parser. (This makes parser non-reentrant, but that is not an issue)


      var parserState = {
        textEnd: 0,
        key: 0,
        keyEnd: 0,
        value: 0,
        valueEnd: 0
      };
      /**
       * Retrieves the last parsed `key` of style.
       * @param text the text to substring the key from.
       */

      function getLastParsedKey(text) {
        return text.substring(parserState.key, parserState.keyEnd);
      }
      /**
       * Retrieves the last parsed `value` of style.
       * @param text the text to substring the key from.
       */


      function getLastParsedValue(text) {
        return text.substring(parserState.value, parserState.valueEnd);
      }
      /**
       * Initializes `className` string for parsing and parses the first token.
       *
       * This function is intended to be used in this format:
       * ```
       * for (let i = parseClassName(text); i >= 0; i = parseClassNameNext(text, i)) {
       *   const key = getLastParsedKey();
       *   ...
       * }
       * ```
       * @param text `className` to parse
       * @returns index where the next invocation of `parseClassNameNext` should resume.
       */


      function parseClassName(text) {
        resetParserState(text);
        return parseClassNameNext(text, consumeWhitespace(text, 0, parserState.textEnd));
      }
      /**
       * Parses next `className` token.
       *
       * This function is intended to be used in this format:
       * ```
       * for (let i = parseClassName(text); i >= 0; i = parseClassNameNext(text, i)) {
       *   const key = getLastParsedKey();
       *   ...
       * }
       * ```
       *
       * @param text `className` to parse
       * @param index where the parsing should resume.
       * @returns index where the next invocation of `parseClassNameNext` should resume.
       */


      function parseClassNameNext(text, index) {
        var end = parserState.textEnd;

        if (end === index) {
          return -1;
        }

        index = parserState.keyEnd = consumeClassToken(text, parserState.key = index, end);
        return consumeWhitespace(text, index, end);
      }
      /**
       * Initializes `cssText` string for parsing and parses the first key/values.
       *
       * This function is intended to be used in this format:
       * ```
       * for (let i = parseStyle(text); i >= 0; i = parseStyleNext(text, i))) {
       *   const key = getLastParsedKey();
       *   const value = getLastParsedValue();
       *   ...
       * }
       * ```
       * @param text `cssText` to parse
       * @returns index where the next invocation of `parseStyleNext` should resume.
       */


      function parseStyle(text) {
        resetParserState(text);
        return parseStyleNext(text, consumeWhitespace(text, 0, parserState.textEnd));
      }
      /**
       * Parses the next `cssText` key/values.
       *
       * This function is intended to be used in this format:
       * ```
       * for (let i = parseStyle(text); i >= 0; i = parseStyleNext(text, i))) {
       *   const key = getLastParsedKey();
       *   const value = getLastParsedValue();
       *   ...
       * }
       *
       * @param text `cssText` to parse
       * @param index where the parsing should resume.
       * @returns index where the next invocation of `parseStyleNext` should resume.
       */


      function parseStyleNext(text, startIndex) {
        var end = parserState.textEnd;
        var index = parserState.key = consumeWhitespace(text, startIndex, end);

        if (end === index) {
          // we reached an end so just quit
          return -1;
        }

        index = parserState.keyEnd = consumeStyleKey(text, index, end);
        index = consumeSeparator(text, index, end, 58
        /* COLON */
        );
        index = parserState.value = consumeWhitespace(text, index, end);
        index = parserState.valueEnd = consumeStyleValue(text, index, end);
        return consumeSeparator(text, index, end, 59
        /* SEMI_COLON */
        );
      }
      /**
       * Reset the global state of the styling parser.
       * @param text The styling text to parse.
       */


      function resetParserState(text) {
        parserState.key = 0;
        parserState.keyEnd = 0;
        parserState.value = 0;
        parserState.valueEnd = 0;
        parserState.textEnd = text.length;
      }
      /**
       * Returns index of next non-whitespace character.
       *
       * @param text Text to scan
       * @param startIndex Starting index of character where the scan should start.
       * @param endIndex Ending index of character where the scan should end.
       * @returns Index of next non-whitespace character (May be the same as `start` if no whitespace at
       *          that location.)
       */


      function consumeWhitespace(text, startIndex, endIndex) {
        while (startIndex < endIndex && text.charCodeAt(startIndex) <= 32
        /* SPACE */
        ) {
          startIndex++;
        }

        return startIndex;
      }
      /**
       * Returns index of last char in class token.
       *
       * @param text Text to scan
       * @param startIndex Starting index of character where the scan should start.
       * @param endIndex Ending index of character where the scan should end.
       * @returns Index after last char in class token.
       */


      function consumeClassToken(text, startIndex, endIndex) {
        while (startIndex < endIndex && text.charCodeAt(startIndex) > 32
        /* SPACE */
        ) {
          startIndex++;
        }

        return startIndex;
      }
      /**
       * Consumes all of the characters belonging to style key and token.
       *
       * @param text Text to scan
       * @param startIndex Starting index of character where the scan should start.
       * @param endIndex Ending index of character where the scan should end.
       * @returns Index after last style key character.
       */


      function consumeStyleKey(text, startIndex, endIndex) {
        var ch;

        while (startIndex < endIndex && ((ch = text.charCodeAt(startIndex)) === 45
        /* DASH */
        || ch === 95
        /* UNDERSCORE */
        || (ch & -33
        /* UPPER_CASE */
        ) >= 65
        /* A */
        && (ch & -33
        /* UPPER_CASE */
        ) <= 90
        /* Z */
        || ch >= 48
        /* ZERO */
        && ch <= 57
        /* NINE */
        )) {
          startIndex++;
        }

        return startIndex;
      }
      /**
       * Consumes all whitespace and the separator `:` after the style key.
       *
       * @param text Text to scan
       * @param startIndex Starting index of character where the scan should start.
       * @param endIndex Ending index of character where the scan should end.
       * @returns Index after separator and surrounding whitespace.
       */


      function consumeSeparator(text, startIndex, endIndex, separator) {
        startIndex = consumeWhitespace(text, startIndex, endIndex);

        if (startIndex < endIndex) {
          if (ngDevMode && text.charCodeAt(startIndex) !== separator) {
            malformedStyleError(text, String.fromCharCode(separator), startIndex);
          }

          startIndex++;
        }

        return startIndex;
      }
      /**
       * Consumes style value honoring `url()` and `""` text.
       *
       * @param text Text to scan
       * @param startIndex Starting index of character where the scan should start.
       * @param endIndex Ending index of character where the scan should end.
       * @returns Index after last style value character.
       */


      function consumeStyleValue(text, startIndex, endIndex) {
        var ch1 = -1; // 1st previous character

        var ch2 = -1; // 2nd previous character

        var ch3 = -1; // 3rd previous character

        var i = startIndex;
        var lastChIndex = i;

        while (i < endIndex) {
          var ch = text.charCodeAt(i++);

          if (ch === 59
          /* SEMI_COLON */
          ) {
            return lastChIndex;
          } else if (ch === 34
          /* DOUBLE_QUOTE */
          || ch === 39
          /* SINGLE_QUOTE */
          ) {
            lastChIndex = i = consumeQuotedText(text, ch, i, endIndex);
          } else if (startIndex === i - 4 && // We have seen only 4 characters so far "URL(" (Ignore "foo_URL()")
          ch3 === 85
          /* U */
          && ch2 === 82
          /* R */
          && ch1 === 76
          /* L */
          && ch === 40
          /* OPEN_PAREN */
          ) {
            lastChIndex = i = consumeQuotedText(text, 41
            /* CLOSE_PAREN */
            , i, endIndex);
          } else if (ch > 32
          /* SPACE */
          ) {
            // if we have a non-whitespace character then capture its location
            lastChIndex = i;
          }

          ch3 = ch2;
          ch2 = ch1;
          ch1 = ch & -33
          /* UPPER_CASE */
          ;
        }

        return lastChIndex;
      }
      /**
       * Consumes all of the quoted characters.
       *
       * @param text Text to scan
       * @param quoteCharCode CharCode of either `"` or `'` quote or `)` for `url(...)`.
       * @param startIndex Starting index of character where the scan should start.
       * @param endIndex Ending index of character where the scan should end.
       * @returns Index after quoted characters.
       */


      function consumeQuotedText(text, quoteCharCode, startIndex, endIndex) {
        var ch1 = -1; // 1st previous character

        var index = startIndex;

        while (index < endIndex) {
          var ch = text.charCodeAt(index++);

          if (ch == quoteCharCode && ch1 !== 92
          /* BACK_SLASH */
          ) {
            return index;
          }

          if (ch == 92
          /* BACK_SLASH */
          && ch1 === 92
          /* BACK_SLASH */
          ) {
            // two back slashes cancel each other out. For example `"\\"` should properly end the
            // quotation. (It should not assume that the last `"` is escaped.)
            ch1 = 0;
          } else {
            ch1 = ch;
          }
        }

        throw ngDevMode ? malformedStyleError(text, String.fromCharCode(quoteCharCode), endIndex) : new Error();
      }

      function malformedStyleError(text, expecting, index) {
        ngDevMode && assertEqual(typeof text === 'string', true, 'String expected here');
        throw throwError("Malformed style at location ".concat(index, " in string '") + text.substring(0, index) + '[>>' + text.substring(index, index + 1) + '<<]' + text.substr(index + 1) + "'. Expecting '".concat(expecting, "'."));
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Update a style binding on an element with the provided value.
       *
       * If the style value is falsy then it will be removed from the element
       * (or assigned a different value depending if there are any styles placed
       * on the element with `styleMap` or any static styles that are
       * present from when the element was created with `styling`).
       *
       * Note that the styling element is updated as part of `stylingApply`.
       *
       * @param prop A valid CSS property.
       * @param value New value to write (`null` or an empty string to remove).
       * @param suffix Optional suffix. Used with scalar values to add unit such as `px`.
       *
       * Note that this will apply the provided style value to the host element if this function is called
       * within a host binding function.
       *
       * @codeGenApi
       */


      function ɵɵstyleProp(prop, value, suffix) {
        checkStylingProperty(prop, value, suffix, false);
        return ɵɵstyleProp;
      }
      /**
       * Update a class binding on an element with the provided value.
       *
       * This instruction is meant to handle the `[class.foo]="exp"` case and,
       * therefore, the class binding itself must already be allocated using
       * `styling` within the creation block.
       *
       * @param prop A valid CSS class (only one).
       * @param value A true/false value which will turn the class on or off.
       *
       * Note that this will apply the provided class value to the host element if this function
       * is called within a host binding function.
       *
       * @codeGenApi
       */


      function ɵɵclassProp(className, value) {
        checkStylingProperty(className, value, null, true);
        return ɵɵclassProp;
      }
      /**
       * Update style bindings using an object literal on an element.
       *
       * This instruction is meant to apply styling via the `[style]="exp"` template bindings.
       * When styles are applied to the element they will then be updated with respect to
       * any styles/classes set via `styleProp`. If any styles are set to falsy
       * then they will be removed from the element.
       *
       * Note that the styling instruction will not be applied until `stylingApply` is called.
       *
       * @param styles A key/value style map of the styles that will be applied to the given element.
       *        Any missing styles (that have already been applied to the element beforehand) will be
       *        removed (unset) from the element's styling.
       *
       * Note that this will apply the provided styleMap value to the host element if this function
       * is called within a host binding.
       *
       * @codeGenApi
       */


      function ɵɵstyleMap(styles) {
        checkStylingMap(styleKeyValueArraySet, styleStringParser, styles, false);
      }
      /**
       * Parse text as style and add values to KeyValueArray.
       *
       * This code is pulled out to a separate function so that it can be tree shaken away if it is not
       * needed. It is only referenced from `ɵɵstyleMap`.
       *
       * @param keyValueArray KeyValueArray to add parsed values to.
       * @param text text to parse.
       */


      function styleStringParser(keyValueArray, text) {
        for (var i = parseStyle(text); i >= 0; i = parseStyleNext(text, i)) {
          styleKeyValueArraySet(keyValueArray, getLastParsedKey(text), getLastParsedValue(text));
        }
      }
      /**
       * Update class bindings using an object literal or class-string on an element.
       *
       * This instruction is meant to apply styling via the `[class]="exp"` template bindings.
       * When classes are applied to the element they will then be updated with
       * respect to any styles/classes set via `classProp`. If any
       * classes are set to falsy then they will be removed from the element.
       *
       * Note that the styling instruction will not be applied until `stylingApply` is called.
       * Note that this will the provided classMap value to the host element if this function is called
       * within a host binding.
       *
       * @param classes A key/value map or string of CSS classes that will be added to the
       *        given element. Any missing classes (that have already been applied to the element
       *        beforehand) will be removed (unset) from the element's list of CSS classes.
       *
       * @codeGenApi
       */


      function ɵɵclassMap(classes) {
        checkStylingMap(keyValueArraySet, classStringParser, classes, true);
      }
      /**
       * Parse text as class and add values to KeyValueArray.
       *
       * This code is pulled out to a separate function so that it can be tree shaken away if it is not
       * needed. It is only referenced from `ɵɵclassMap`.
       *
       * @param keyValueArray KeyValueArray to add parsed values to.
       * @param text text to parse.
       */


      function classStringParser(keyValueArray, text) {
        for (var i = parseClassName(text); i >= 0; i = parseClassNameNext(text, i)) {
          keyValueArraySet(keyValueArray, getLastParsedKey(text), true);
        }
      }
      /**
       * Common code between `ɵɵclassProp` and `ɵɵstyleProp`.
       *
       * @param prop property name.
       * @param value binding value.
       * @param suffix suffix for the property (e.g. `em` or `px`)
       * @param isClassBased `true` if `class` change (`false` if `style`)
       */


      function checkStylingProperty(prop, value, suffix, isClassBased) {
        var lView = getLView();
        var tView = getTView(); // Styling instructions use 2 slots per binding.
        // 1. one for the value / TStylingKey
        // 2. one for the intermittent-value / TStylingRange

        var bindingIndex = incrementBindingIndex(2);

        if (tView.firstUpdatePass) {
          stylingFirstUpdatePass(tView, prop, bindingIndex, isClassBased);
        }

        if (value !== NO_CHANGE && bindingUpdated(lView, bindingIndex, value)) {
          var tNode = tView.data[getSelectedIndex()];
          updateStyling(tView, tNode, lView, lView[RENDERER], prop, lView[bindingIndex + 1] = normalizeSuffix(value, suffix), isClassBased, bindingIndex);
        }
      }
      /**
       * Common code between `ɵɵclassMap` and `ɵɵstyleMap`.
       *
       * @param keyValueArraySet (See `keyValueArraySet` in "util/array_utils") Gets passed in as a
       *        function so that `style` can be processed. This is done for tree shaking purposes.
       * @param stringParser Parser used to parse `value` if `string`. (Passed in as `style` and `class`
       *        have different parsers.)
       * @param value bound value from application
       * @param isClassBased `true` if `class` change (`false` if `style`)
       */


      function checkStylingMap(keyValueArraySet, stringParser, value, isClassBased) {
        var tView = getTView();
        var bindingIndex = incrementBindingIndex(2);

        if (tView.firstUpdatePass) {
          stylingFirstUpdatePass(tView, null, bindingIndex, isClassBased);
        }

        var lView = getLView();

        if (value !== NO_CHANGE && bindingUpdated(lView, bindingIndex, value)) {
          // `getSelectedIndex()` should be here (rather than in instruction) so that it is guarded by the
          // if so as not to read unnecessarily.
          var tNode = tView.data[getSelectedIndex()];

          if (hasStylingInputShadow(tNode, isClassBased) && !isInHostBindings(tView, bindingIndex)) {
            if (ngDevMode) {
              // verify that if we are shadowing then `TData` is appropriately marked so that we skip
              // processing this binding in styling resolution.
              var tStylingKey = tView.data[bindingIndex];
              assertEqual(Array.isArray(tStylingKey) ? tStylingKey[1] : tStylingKey, false, 'Styling linked list shadow input should be marked as \'false\'');
            } // VE does not concatenate the static portion like we are doing here.
            // Instead VE just ignores the static completely if dynamic binding is present.
            // Because of locality we have already set the static portion because we don't know if there
            // is a dynamic portion until later. If we would ignore the static portion it would look like
            // the binding has removed it. This would confuse `[ngStyle]`/`[ngClass]` to do the wrong
            // thing as it would think that the static portion was removed. For this reason we
            // concatenate it so that `[ngStyle]`/`[ngClass]`  can continue to work on changed.


            var staticPrefix = isClassBased ? tNode.classesWithoutHost : tNode.stylesWithoutHost;
            ngDevMode && isClassBased === false && staticPrefix !== null && assertEqual(staticPrefix.endsWith(';'), true, 'Expecting static portion to end with \';\'');

            if (staticPrefix !== null) {
              // We want to make sure that falsy values of `value` become empty strings.
              value = concatStringsWithSpace(staticPrefix, value ? value : '');
            } // Given `<div [style] my-dir>` such that `my-dir` has `@Input('style')`.
            // This takes over the `[style]` binding. (Same for `[class]`)


            setDirectiveInputsWhichShadowsStyling(tView, tNode, lView, value, isClassBased);
          } else {
            updateStylingMap(tView, tNode, lView, lView[RENDERER], lView[bindingIndex + 1], lView[bindingIndex + 1] = toStylingKeyValueArray(keyValueArraySet, stringParser, value), isClassBased, bindingIndex);
          }
        }
      }
      /**
       * Determines when the binding is in `hostBindings` section
       *
       * @param tView Current `TView`
       * @param bindingIndex index of binding which we would like if it is in `hostBindings`
       */


      function isInHostBindings(tView, bindingIndex) {
        // All host bindings are placed after the expando section.
        return bindingIndex >= tView.expandoStartIndex;
      }
      /**
       * Collects the necessary information to insert the binding into a linked list of style bindings
       * using `insertTStylingBinding`.
       *
       * @param tView `TView` where the binding linked list will be stored.
       * @param tStylingKey Property/key of the binding.
       * @param bindingIndex Index of binding associated with the `prop`
       * @param isClassBased `true` if `class` change (`false` if `style`)
       */


      function stylingFirstUpdatePass(tView, tStylingKey, bindingIndex, isClassBased) {
        ngDevMode && assertFirstUpdatePass(tView);
        var tData = tView.data;

        if (tData[bindingIndex + 1] === null) {
          // The above check is necessary because we don't clear first update pass until first successful
          // (no exception) template execution. This prevents the styling instruction from double adding
          // itself to the list.
          // `getSelectedIndex()` should be here (rather than in instruction) so that it is guarded by the
          // if so as not to read unnecessarily.
          var tNode = tData[getSelectedIndex()];
          ngDevMode && assertDefined(tNode, 'TNode expected');
          var isHostBindings = isInHostBindings(tView, bindingIndex);

          if (hasStylingInputShadow(tNode, isClassBased) && tStylingKey === null && !isHostBindings) {
            // `tStylingKey === null` implies that we are either `[style]` or `[class]` binding.
            // If there is a directive which uses `@Input('style')` or `@Input('class')` than
            // we need to neutralize this binding since that directive is shadowing it.
            // We turn this into a noop by setting the key to `false`
            tStylingKey = false;
          }

          tStylingKey = wrapInStaticStylingKey(tData, tNode, tStylingKey, isClassBased);
          insertTStylingBinding(tData, tNode, tStylingKey, bindingIndex, isHostBindings, isClassBased);
        }
      }
      /**
       * Adds static styling information to the binding if applicable.
       *
       * The linked list of styles not only stores the list and keys, but also stores static styling
       * information on some of the keys. This function determines if the key should contain the styling
       * information and computes it.
       *
       * See `TStylingStatic` for more details.
       *
       * @param tData `TData` where the linked list is stored.
       * @param tNode `TNode` for which the styling is being computed.
       * @param stylingKey `TStylingKeyPrimitive` which may need to be wrapped into `TStylingKey`
       * @param isClassBased `true` if `class` (`false` if `style`)
       */


      function wrapInStaticStylingKey(tData, tNode, stylingKey, isClassBased) {
        var hostDirectiveDef = getCurrentDirectiveDef(tData);
        var residual = isClassBased ? tNode.residualClasses : tNode.residualStyles;

        if (hostDirectiveDef === null) {
          // We are in template node.
          // If template node already had styling instruction then it has already collected the static
          // styling and there is no need to collect them again. We know that we are the first styling
          // instruction because the `TNode.*Bindings` points to 0 (nothing has been inserted yet).
          var isFirstStylingInstructionInTemplate = (isClassBased ? tNode.classBindings : tNode.styleBindings) === 0;

          if (isFirstStylingInstructionInTemplate) {
            // It would be nice to be able to get the statics from `mergeAttrs`, however, at this point
            // they are already merged and it would not be possible to figure which property belongs where
            // in the priority.
            stylingKey = collectStylingFromDirectives(null, tData, tNode, stylingKey, isClassBased);
            stylingKey = collectStylingFromTAttrs(stylingKey, tNode.attrs, isClassBased); // We know that if we have styling binding in template we can't have residual.

            residual = null;
          }
        } else {
          // We are in host binding node and there was no binding instruction in template node.
          // This means that we need to compute the residual.
          var directiveStylingLast = tNode.directiveStylingLast;
          var isFirstStylingInstructionInHostBinding = directiveStylingLast === -1 || tData[directiveStylingLast] !== hostDirectiveDef;

          if (isFirstStylingInstructionInHostBinding) {
            stylingKey = collectStylingFromDirectives(hostDirectiveDef, tData, tNode, stylingKey, isClassBased);

            if (residual === null) {
              // - If `null` than either:
              //    - Template styling instruction already ran and it has consumed the static
              //      styling into its `TStylingKey` and so there is no need to update residual. Instead
              //      we need to update the `TStylingKey` associated with the first template node
              //      instruction. OR
              //    - Some other styling instruction ran and determined that there are no residuals
              var templateStylingKey = getTemplateHeadTStylingKey(tData, tNode, isClassBased);

              if (templateStylingKey !== undefined && Array.isArray(templateStylingKey)) {
                // Only recompute if `templateStylingKey` had static values. (If no static value found
                // then there is nothing to do since this operation can only produce less static keys, not
                // more.)
                templateStylingKey = collectStylingFromDirectives(null, tData, tNode, templateStylingKey[1]
                /* unwrap previous statics */
                , isClassBased);
                templateStylingKey = collectStylingFromTAttrs(templateStylingKey, tNode.attrs, isClassBased);
                setTemplateHeadTStylingKey(tData, tNode, isClassBased, templateStylingKey);
              }
            } else {
              // We only need to recompute residual if it is not `null`.
              // - If existing residual (implies there was no template styling). This means that some of
              //   the statics may have moved from the residual to the `stylingKey` and so we have to
              //   recompute.
              // - If `undefined` this is the first time we are running.
              residual = collectResidual(tData, tNode, isClassBased);
            }
          }
        }

        if (residual !== undefined) {
          isClassBased ? tNode.residualClasses = residual : tNode.residualStyles = residual;
        }

        return stylingKey;
      }
      /**
       * Retrieve the `TStylingKey` for the template styling instruction.
       *
       * This is needed since `hostBinding` styling instructions are inserted after the template
       * instruction. While the template instruction needs to update the residual in `TNode` the
       * `hostBinding` instructions need to update the `TStylingKey` of the template instruction because
       * the template instruction is downstream from the `hostBindings` instructions.
       *
       * @param tData `TData` where the linked list is stored.
       * @param tNode `TNode` for which the styling is being computed.
       * @param isClassBased `true` if `class` (`false` if `style`)
       * @return `TStylingKey` if found or `undefined` if not found.
       */


      function getTemplateHeadTStylingKey(tData, tNode, isClassBased) {
        var bindings = isClassBased ? tNode.classBindings : tNode.styleBindings;

        if (getTStylingRangeNext(bindings) === 0) {
          // There does not seem to be a styling instruction in the `template`.
          return undefined;
        }

        return tData[getTStylingRangePrev(bindings)];
      }
      /**
       * Update the `TStylingKey` of the first template instruction in `TNode`.
       *
       * Logically `hostBindings` styling instructions are of lower priority than that of the template.
       * However, they execute after the template styling instructions. This means that they get inserted
       * in front of the template styling instructions.
       *
       * If we have a template styling instruction and a new `hostBindings` styling instruction is
       * executed it means that it may need to steal static fields from the template instruction. This
       * method allows us to update the first template instruction `TStylingKey` with a new value.
       *
       * Assume:
       * ```
       * <div my-dir style="color: red" [style.color]="tmplExp"></div>
       *
       * @Directive({
       *   host: {
       *     'style': 'width: 100px',
       *     '[style.color]': 'dirExp',
       *   }
       * })
       * class MyDir {}
       * ```
       *
       * when `[style.color]="tmplExp"` executes it creates this data structure.
       * ```
       *  ['', 'color', 'color', 'red', 'width', '100px'],
       * ```
       *
       * The reason for this is that the template instruction does not know if there are styling
       * instructions and must assume that there are none and must collect all of the static styling.
       * (both
       * `color' and 'width`)
       *
       * When `'[style.color]': 'dirExp',` executes we need to insert a new data into the linked list.
       * ```
       *  ['', 'color', 'width', '100px'],  // newly inserted
       *  ['', 'color', 'color', 'red', 'width', '100px'], // this is wrong
       * ```
       *
       * Notice that the template statics is now wrong as it incorrectly contains `width` so we need to
       * update it like so:
       * ```
       *  ['', 'color', 'width', '100px'],
       *  ['', 'color', 'color', 'red'],    // UPDATE
       * ```
       *
       * @param tData `TData` where the linked list is stored.
       * @param tNode `TNode` for which the styling is being computed.
       * @param isClassBased `true` if `class` (`false` if `style`)
       * @param tStylingKey New `TStylingKey` which is replacing the old one.
       */


      function setTemplateHeadTStylingKey(tData, tNode, isClassBased, tStylingKey) {
        var bindings = isClassBased ? tNode.classBindings : tNode.styleBindings;
        ngDevMode && assertNotEqual(getTStylingRangeNext(bindings), 0, 'Expecting to have at least one template styling binding.');
        tData[getTStylingRangePrev(bindings)] = tStylingKey;
      }
      /**
       * Collect all static values after the current `TNode.directiveStylingLast` index.
       *
       * Collect the remaining styling information which has not yet been collected by an existing
       * styling instruction.
       *
       * @param tData `TData` where the `DirectiveDefs` are stored.
       * @param tNode `TNode` which contains the directive range.
       * @param isClassBased `true` if `class` (`false` if `style`)
       */


      function collectResidual(tData, tNode, isClassBased) {
        var residual = undefined;
        var directiveEnd = tNode.directiveEnd;
        ngDevMode && assertNotEqual(tNode.directiveStylingLast, -1, 'By the time this function gets called at least one hostBindings-node styling instruction must have executed.'); // We add `1 + tNode.directiveStart` because we need to skip the current directive (as we are
        // collecting things after the last `hostBindings` directive which had a styling instruction.)

        for (var i = 1 + tNode.directiveStylingLast; i < directiveEnd; i++) {
          var attrs = tData[i].hostAttrs;
          residual = collectStylingFromTAttrs(residual, attrs, isClassBased);
        }

        return collectStylingFromTAttrs(residual, tNode.attrs, isClassBased);
      }
      /**
       * Collect the static styling information with lower priority than `hostDirectiveDef`.
       *
       * (This is opposite of residual styling.)
       *
       * @param hostDirectiveDef `DirectiveDef` for which we want to collect lower priority static
       *        styling. (Or `null` if template styling)
       * @param tData `TData` where the linked list is stored.
       * @param tNode `TNode` for which the styling is being computed.
       * @param stylingKey Existing `TStylingKey` to update or wrap.
       * @param isClassBased `true` if `class` (`false` if `style`)
       */


      function collectStylingFromDirectives(hostDirectiveDef, tData, tNode, stylingKey, isClassBased) {
        // We need to loop because there can be directives which have `hostAttrs` but don't have
        // `hostBindings` so this loop catches up to the current directive..
        var currentDirective = null;
        var directiveEnd = tNode.directiveEnd;
        var directiveStylingLast = tNode.directiveStylingLast;

        if (directiveStylingLast === -1) {
          directiveStylingLast = tNode.directiveStart;
        } else {
          directiveStylingLast++;
        }

        while (directiveStylingLast < directiveEnd) {
          currentDirective = tData[directiveStylingLast];
          ngDevMode && assertDefined(currentDirective, 'expected to be defined');
          stylingKey = collectStylingFromTAttrs(stylingKey, currentDirective.hostAttrs, isClassBased);
          if (currentDirective === hostDirectiveDef) break;
          directiveStylingLast++;
        }

        if (hostDirectiveDef !== null) {
          // we only advance the styling cursor if we are collecting data from host bindings.
          // Template executes before host bindings and so if we would update the index,
          // host bindings would not get their statics.
          tNode.directiveStylingLast = directiveStylingLast;
        }

        return stylingKey;
      }
      /**
       * Convert `TAttrs` into `TStylingStatic`.
       *
       * @param stylingKey existing `TStylingKey` to update or wrap.
       * @param attrs `TAttributes` to process.
       * @param isClassBased `true` if `class` (`false` if `style`)
       */


      function collectStylingFromTAttrs(stylingKey, attrs, isClassBased) {
        var desiredMarker = isClassBased ? 1
        /* Classes */
        : 2
        /* Styles */
        ;
        var currentMarker = -1
        /* ImplicitAttributes */
        ;

        if (attrs !== null) {
          for (var i = 0; i < attrs.length; i++) {
            var item = attrs[i];

            if (typeof item === 'number') {
              currentMarker = item;
            } else {
              if (currentMarker === desiredMarker) {
                if (!Array.isArray(stylingKey)) {
                  stylingKey = stylingKey === undefined ? [] : ['', stylingKey];
                }

                keyValueArraySet(stylingKey, item, isClassBased ? true : attrs[++i]);
              }
            }
          }
        }

        return stylingKey === undefined ? null : stylingKey;
      }
      /**
       * Convert user input to `KeyValueArray`.
       *
       * This function takes user input which could be `string`, Object literal, or iterable and converts
       * it into a consistent representation. The output of this is `KeyValueArray` (which is an array
       * where
       * even indexes contain keys and odd indexes contain values for those keys).
       *
       * The advantage of converting to `KeyValueArray` is that we can perform diff in an input
       * independent
       * way.
       * (ie we can compare `foo bar` to `['bar', 'baz'] and determine a set of changes which need to be
       * applied)
       *
       * The fact that `KeyValueArray` is sorted is very important because it allows us to compute the
       * difference in linear fashion without the need to allocate any additional data.
       *
       * For example if we kept this as a `Map` we would have to iterate over previous `Map` to determine
       * which values need to be deleted, over the new `Map` to determine additions, and we would have to
       * keep additional `Map` to keep track of duplicates or items which have not yet been visited.
       *
       * @param keyValueArraySet (See `keyValueArraySet` in "util/array_utils") Gets passed in as a
       *        function so that `style` can be processed. This is done
       *        for tree shaking purposes.
       * @param stringParser The parser is passed in so that it will be tree shakable. See
       *        `styleStringParser` and `classStringParser`
       * @param value The value to parse/convert to `KeyValueArray`
       */


      function toStylingKeyValueArray(keyValueArraySet, stringParser, value) {
        if (value == null
        /*|| value === undefined */
        || value === '') return EMPTY_ARRAY$3;
        var styleKeyValueArray = [];
        var unwrappedValue = unwrapSafeValue(value);

        if (Array.isArray(unwrappedValue)) {
          for (var i = 0; i < unwrappedValue.length; i++) {
            keyValueArraySet(styleKeyValueArray, unwrappedValue[i], true);
          }
        } else if (typeof unwrappedValue === 'object') {
          for (var key in unwrappedValue) {
            if (unwrappedValue.hasOwnProperty(key)) {
              keyValueArraySet(styleKeyValueArray, key, unwrappedValue[key]);
            }
          }
        } else if (typeof unwrappedValue === 'string') {
          stringParser(styleKeyValueArray, unwrappedValue);
        } else {
          ngDevMode && throwError('Unsupported styling type ' + typeof unwrappedValue + ': ' + unwrappedValue);
        }

        return styleKeyValueArray;
      }
      /**
       * Set a `value` for a `key`.
       *
       * See: `keyValueArraySet` for details
       *
       * @param keyValueArray KeyValueArray to add to.
       * @param key Style key to add.
       * @param value The value to set.
       */


      function styleKeyValueArraySet(keyValueArray, key, value) {
        keyValueArraySet(keyValueArray, key, unwrapSafeValue(value));
      }
      /**
       * Update map based styling.
       *
       * Map based styling could be anything which contains more than one binding. For example `string`,
       * or object literal. Dealing with all of these types would complicate the logic so
       * instead this function expects that the complex input is first converted into normalized
       * `KeyValueArray`. The advantage of normalization is that we get the values sorted, which makes it
       * very cheap to compute deltas between the previous and current value.
       *
       * @param tView Associated `TView.data` contains the linked list of binding priorities.
       * @param tNode `TNode` where the binding is located.
       * @param lView `LView` contains the values associated with other styling binding at this `TNode`.
       * @param renderer Renderer to use if any updates.
       * @param oldKeyValueArray Previous value represented as `KeyValueArray`
       * @param newKeyValueArray Current value represented as `KeyValueArray`
       * @param isClassBased `true` if `class` (`false` if `style`)
       * @param bindingIndex Binding index of the binding.
       */


      function updateStylingMap(tView, tNode, lView, renderer, oldKeyValueArray, newKeyValueArray, isClassBased, bindingIndex) {
        if (oldKeyValueArray === NO_CHANGE) {
          // On first execution the oldKeyValueArray is NO_CHANGE => treat it as empty KeyValueArray.
          oldKeyValueArray = EMPTY_ARRAY$3;
        }

        var oldIndex = 0;
        var newIndex = 0;
        var oldKey = 0 < oldKeyValueArray.length ? oldKeyValueArray[0] : null;
        var newKey = 0 < newKeyValueArray.length ? newKeyValueArray[0] : null;

        while (oldKey !== null || newKey !== null) {
          ngDevMode && assertLessThan(oldIndex, 999, 'Are we stuck in infinite loop?');
          ngDevMode && assertLessThan(newIndex, 999, 'Are we stuck in infinite loop?');
          var oldValue = oldIndex < oldKeyValueArray.length ? oldKeyValueArray[oldIndex + 1] : undefined;
          var newValue = newIndex < newKeyValueArray.length ? newKeyValueArray[newIndex + 1] : undefined;
          var setKey = null;
          var setValue = undefined;

          if (oldKey === newKey) {
            // UPDATE: Keys are equal => new value is overwriting old value.
            oldIndex += 2;
            newIndex += 2;

            if (oldValue !== newValue) {
              setKey = newKey;
              setValue = newValue;
            }
          } else if (newKey === null || oldKey !== null && oldKey < newKey) {
            // DELETE: oldKey key is missing or we did not find the oldKey in the newValue
            // (because the keyValueArray is sorted and `newKey` is found later alphabetically).
            // `"background" < "color"` so we need to delete `"background"` because it is not found in the
            // new array.
            oldIndex += 2;
            setKey = oldKey;
          } else {
            // CREATE: newKey's is earlier alphabetically than oldKey's (or no oldKey) => we have new key.
            // `"color" > "background"` so we need to add `color` because it is in new array but not in
            // old array.
            ngDevMode && assertDefined(newKey, 'Expecting to have a valid key');
            newIndex += 2;
            setKey = newKey;
            setValue = newValue;
          }

          if (setKey !== null) {
            updateStyling(tView, tNode, lView, renderer, setKey, setValue, isClassBased, bindingIndex);
          }

          oldKey = oldIndex < oldKeyValueArray.length ? oldKeyValueArray[oldIndex] : null;
          newKey = newIndex < newKeyValueArray.length ? newKeyValueArray[newIndex] : null;
        }
      }
      /**
       * Update a simple (property name) styling.
       *
       * This function takes `prop` and updates the DOM to that value. The function takes the binding
       * value as well as binding priority into consideration to determine which value should be written
       * to DOM. (For example it may be determined that there is a higher priority overwrite which blocks
       * the DOM write, or if the value goes to `undefined` a lower priority overwrite may be consulted.)
       *
       * @param tView Associated `TView.data` contains the linked list of binding priorities.
       * @param tNode `TNode` where the binding is located.
       * @param lView `LView` contains the values associated with other styling binding at this `TNode`.
       * @param renderer Renderer to use if any updates.
       * @param prop Either style property name or a class name.
       * @param value Either style value for `prop` or `true`/`false` if `prop` is class.
       * @param isClassBased `true` if `class` (`false` if `style`)
       * @param bindingIndex Binding index of the binding.
       */


      function updateStyling(tView, tNode, lView, renderer, prop, value, isClassBased, bindingIndex) {
        if (!(tNode.type & 3
        /* AnyRNode */
        )) {
          // It is possible to have styling on non-elements (such as ng-container).
          // This is rare, but it does happen. In such a case, just ignore the binding.
          return;
        }

        var tData = tView.data;
        var tRange = tData[bindingIndex + 1];
        var higherPriorityValue = getTStylingRangeNextDuplicate(tRange) ? findStylingValue(tData, tNode, lView, prop, getTStylingRangeNext(tRange), isClassBased) : undefined;

        if (!isStylingValuePresent(higherPriorityValue)) {
          // We don't have a next duplicate, or we did not find a duplicate value.
          if (!isStylingValuePresent(value)) {
            // We should delete current value or restore to lower priority value.
            if (getTStylingRangePrevDuplicate(tRange)) {
              // We have a possible prev duplicate, let's retrieve it.
              value = findStylingValue(tData, null, lView, prop, bindingIndex, isClassBased);
            }
          }

          var rNode = getNativeByIndex(getSelectedIndex(), lView);
          applyStyling(renderer, isClassBased, rNode, prop, value);
        }
      }
      /**
       * Search for styling value with higher priority which is overwriting current value, or a
       * value of lower priority to which we should fall back if the value is `undefined`.
       *
       * When value is being applied at a location, related values need to be consulted.
       * - If there is a higher priority binding, we should be using that one instead.
       *   For example `<div  [style]="{color:exp1}" [style.color]="exp2">` change to `exp1`
       *   requires that we check `exp2` to see if it is set to value other than `undefined`.
       * - If there is a lower priority binding and we are changing to `undefined`
       *   For example `<div  [style]="{color:exp1}" [style.color]="exp2">` change to `exp2` to
       *   `undefined` requires that we check `exp1` (and static values) and use that as new value.
       *
       * NOTE: The styling stores two values.
       * 1. The raw value which came from the application is stored at `index + 0` location. (This value
       *    is used for dirty checking).
       * 2. The normalized value is stored at `index + 1`.
       *
       * @param tData `TData` used for traversing the priority.
       * @param tNode `TNode` to use for resolving static styling. Also controls search direction.
       *   - `TNode` search next and quit as soon as `isStylingValuePresent(value)` is true.
       *      If no value found consult `tNode.residualStyle`/`tNode.residualClass` for default value.
       *   - `null` search prev and go all the way to end. Return last value where
       *     `isStylingValuePresent(value)` is true.
       * @param lView `LView` used for retrieving the actual values.
       * @param prop Property which we are interested in.
       * @param index Starting index in the linked list of styling bindings where the search should start.
       * @param isClassBased `true` if `class` (`false` if `style`)
       */


      function findStylingValue(tData, tNode, lView, prop, index, isClassBased) {
        // `TNode` to use for resolving static styling. Also controls search direction.
        //   - `TNode` search next and quit as soon as `isStylingValuePresent(value)` is true.
        //      If no value found consult `tNode.residualStyle`/`tNode.residualClass` for default value.
        //   - `null` search prev and go all the way to end. Return last value where
        //     `isStylingValuePresent(value)` is true.
        var isPrevDirection = tNode === null;
        var value = undefined;

        while (index > 0) {
          var rawKey = tData[index];
          var containsStatics = Array.isArray(rawKey); // Unwrap the key if we contain static values.

          var key = containsStatics ? rawKey[1] : rawKey;
          var isStylingMap = key === null;
          var valueAtLViewIndex = lView[index + 1];

          if (valueAtLViewIndex === NO_CHANGE) {
            // In firstUpdatePass the styling instructions create a linked list of styling.
            // On subsequent passes it is possible for a styling instruction to try to read a binding
            // which
            // has not yet executed. In that case we will find `NO_CHANGE` and we should assume that
            // we have `undefined` (or empty array in case of styling-map instruction) instead. This
            // allows the resolution to apply the value (which may later be overwritten when the
            // binding actually executes.)
            valueAtLViewIndex = isStylingMap ? EMPTY_ARRAY$3 : undefined;
          }

          var currentValue = isStylingMap ? keyValueArrayGet(valueAtLViewIndex, prop) : key === prop ? valueAtLViewIndex : undefined;

          if (containsStatics && !isStylingValuePresent(currentValue)) {
            currentValue = keyValueArrayGet(rawKey, prop);
          }

          if (isStylingValuePresent(currentValue)) {
            value = currentValue;

            if (isPrevDirection) {
              return value;
            }
          }

          var tRange = tData[index + 1];
          index = isPrevDirection ? getTStylingRangePrev(tRange) : getTStylingRangeNext(tRange);
        }

        if (tNode !== null) {
          // in case where we are going in next direction AND we did not find anything, we need to
          // consult residual styling
          var residual = isClassBased ? tNode.residualClasses : tNode.residualStyles;

          if (residual != null
          /** OR residual !=== undefined */
          ) {
            value = keyValueArrayGet(residual, prop);
          }
        }

        return value;
      }
      /**
       * Determines if the binding value should be used (or if the value is 'undefined' and hence priority
       * resolution should be used.)
       *
       * @param value Binding style value.
       */


      function isStylingValuePresent(value) {
        // Currently only `undefined` value is considered non-binding. That is `undefined` says I don't
        // have an opinion as to what this binding should be and you should consult other bindings by
        // priority to determine the valid value.
        // This is extracted into a single function so that we have a single place to control this.
        return value !== undefined;
      }
      /**
       * Normalizes and/or adds a suffix to the value.
       *
       * If value is `null`/`undefined` no suffix is added
       * @param value
       * @param suffix
       */


      function normalizeSuffix(value, suffix) {
        if (value == null
        /** || value === undefined */
        ) {// do nothing
        } else if (typeof suffix === 'string') {
          value = value + suffix;
        } else if (typeof value === 'object') {
          value = stringify(unwrapSafeValue(value));
        }

        return value;
      }
      /**
       * Tests if the `TNode` has input shadow.
       *
       * An input shadow is when a directive steals (shadows) the input by using `@Input('style')` or
       * `@Input('class')` as input.
       *
       * @param tNode `TNode` which we would like to see if it has shadow.
       * @param isClassBased `true` if `class` (`false` if `style`)
       */


      function hasStylingInputShadow(tNode, isClassBased) {
        return (tNode.flags & (isClassBased ? 16
        /* hasClassInput */
        : 32
        /* hasStyleInput */
        )) !== 0;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Create static text node
       *
       * @param index Index of the node in the data array
       * @param value Static string value to write.
       *
       * @codeGenApi
       */


      function ɵɵtext(index) {
        var value = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
        var lView = getLView();
        var tView = getTView();
        var adjustedIndex = index + HEADER_OFFSET;
        ngDevMode && assertEqual(getBindingIndex(), tView.bindingStartIndex, 'text nodes should be created before any bindings');
        ngDevMode && assertIndexInRange(lView, adjustedIndex);
        var tNode = tView.firstCreatePass ? getOrCreateTNode(tView, adjustedIndex, 1
        /* Text */
        , value, null) : tView.data[adjustedIndex];
        var textNative = lView[adjustedIndex] = createTextNode(lView[RENDERER], value);
        appendChild(tView, lView, textNative, tNode); // Text nodes are self closing.

        setCurrentTNode(tNode, false);
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       *
       * Update text content with a lone bound value
       *
       * Used when a text node has 1 interpolated value in it, an no additional text
       * surrounds that interpolated value:
       *
       * ```html
       * <div>{{v0}}</div>
       * ```
       *
       * Its compiled representation is:
       *
       * ```ts
       * ɵɵtextInterpolate(v0);
       * ```
       * @returns itself, so that it may be chained.
       * @see textInterpolateV
       * @codeGenApi
       */


      function ɵɵtextInterpolate(v0) {
        ɵɵtextInterpolate1('', v0, '');
        return ɵɵtextInterpolate;
      }
      /**
       *
       * Update text content with single bound value surrounded by other text.
       *
       * Used when a text node has 1 interpolated value in it:
       *
       * ```html
       * <div>prefix{{v0}}suffix</div>
       * ```
       *
       * Its compiled representation is:
       *
       * ```ts
       * ɵɵtextInterpolate1('prefix', v0, 'suffix');
       * ```
       * @returns itself, so that it may be chained.
       * @see textInterpolateV
       * @codeGenApi
       */


      function ɵɵtextInterpolate1(prefix, v0, suffix) {
        var lView = getLView();
        var interpolated = interpolation1(lView, prefix, v0, suffix);

        if (interpolated !== NO_CHANGE) {
          textBindingInternal(lView, getSelectedIndex(), interpolated);
        }

        return ɵɵtextInterpolate1;
      }
      /**
       *
       * Update text content with 2 bound values surrounded by other text.
       *
       * Used when a text node has 2 interpolated values in it:
       *
       * ```html
       * <div>prefix{{v0}}-{{v1}}suffix</div>
       * ```
       *
       * Its compiled representation is:
       *
       * ```ts
       * ɵɵtextInterpolate2('prefix', v0, '-', v1, 'suffix');
       * ```
       * @returns itself, so that it may be chained.
       * @see textInterpolateV
       * @codeGenApi
       */


      function ɵɵtextInterpolate2(prefix, v0, i0, v1, suffix) {
        var lView = getLView();
        var interpolated = interpolation2(lView, prefix, v0, i0, v1, suffix);

        if (interpolated !== NO_CHANGE) {
          textBindingInternal(lView, getSelectedIndex(), interpolated);
        }

        return ɵɵtextInterpolate2;
      }
      /**
       *
       * Update text content with 3 bound values surrounded by other text.
       *
       * Used when a text node has 3 interpolated values in it:
       *
       * ```html
       * <div>prefix{{v0}}-{{v1}}-{{v2}}suffix</div>
       * ```
       *
       * Its compiled representation is:
       *
       * ```ts
       * ɵɵtextInterpolate3(
       * 'prefix', v0, '-', v1, '-', v2, 'suffix');
       * ```
       * @returns itself, so that it may be chained.
       * @see textInterpolateV
       * @codeGenApi
       */


      function ɵɵtextInterpolate3(prefix, v0, i0, v1, i1, v2, suffix) {
        var lView = getLView();
        var interpolated = interpolation3(lView, prefix, v0, i0, v1, i1, v2, suffix);

        if (interpolated !== NO_CHANGE) {
          textBindingInternal(lView, getSelectedIndex(), interpolated);
        }

        return ɵɵtextInterpolate3;
      }
      /**
       *
       * Update text content with 4 bound values surrounded by other text.
       *
       * Used when a text node has 4 interpolated values in it:
       *
       * ```html
       * <div>prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}suffix</div>
       * ```
       *
       * Its compiled representation is:
       *
       * ```ts
       * ɵɵtextInterpolate4(
       * 'prefix', v0, '-', v1, '-', v2, '-', v3, 'suffix');
       * ```
       * @returns itself, so that it may be chained.
       * @see ɵɵtextInterpolateV
       * @codeGenApi
       */


      function ɵɵtextInterpolate4(prefix, v0, i0, v1, i1, v2, i2, v3, suffix) {
        var lView = getLView();
        var interpolated = interpolation4(lView, prefix, v0, i0, v1, i1, v2, i2, v3, suffix);

        if (interpolated !== NO_CHANGE) {
          textBindingInternal(lView, getSelectedIndex(), interpolated);
        }

        return ɵɵtextInterpolate4;
      }
      /**
       *
       * Update text content with 5 bound values surrounded by other text.
       *
       * Used when a text node has 5 interpolated values in it:
       *
       * ```html
       * <div>prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}suffix</div>
       * ```
       *
       * Its compiled representation is:
       *
       * ```ts
       * ɵɵtextInterpolate5(
       * 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, 'suffix');
       * ```
       * @returns itself, so that it may be chained.
       * @see textInterpolateV
       * @codeGenApi
       */


      function ɵɵtextInterpolate5(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix) {
        var lView = getLView();
        var interpolated = interpolation5(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix);

        if (interpolated !== NO_CHANGE) {
          textBindingInternal(lView, getSelectedIndex(), interpolated);
        }

        return ɵɵtextInterpolate5;
      }
      /**
       *
       * Update text content with 6 bound values surrounded by other text.
       *
       * Used when a text node has 6 interpolated values in it:
       *
       * ```html
       * <div>prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}suffix</div>
       * ```
       *
       * Its compiled representation is:
       *
       * ```ts
       * ɵɵtextInterpolate6(
       *    'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, 'suffix');
       * ```
       *
       * @param i4 Static value used for concatenation only.
       * @param v5 Value checked for change. @returns itself, so that it may be chained.
       * @see textInterpolateV
       * @codeGenApi
       */


      function ɵɵtextInterpolate6(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix) {
        var lView = getLView();
        var interpolated = interpolation6(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix);

        if (interpolated !== NO_CHANGE) {
          textBindingInternal(lView, getSelectedIndex(), interpolated);
        }

        return ɵɵtextInterpolate6;
      }
      /**
       *
       * Update text content with 7 bound values surrounded by other text.
       *
       * Used when a text node has 7 interpolated values in it:
       *
       * ```html
       * <div>prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}suffix</div>
       * ```
       *
       * Its compiled representation is:
       *
       * ```ts
       * ɵɵtextInterpolate7(
       *    'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, 'suffix');
       * ```
       * @returns itself, so that it may be chained.
       * @see textInterpolateV
       * @codeGenApi
       */


      function ɵɵtextInterpolate7(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix) {
        var lView = getLView();
        var interpolated = interpolation7(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix);

        if (interpolated !== NO_CHANGE) {
          textBindingInternal(lView, getSelectedIndex(), interpolated);
        }

        return ɵɵtextInterpolate7;
      }
      /**
       *
       * Update text content with 8 bound values surrounded by other text.
       *
       * Used when a text node has 8 interpolated values in it:
       *
       * ```html
       * <div>prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}suffix</div>
       * ```
       *
       * Its compiled representation is:
       *
       * ```ts
       * ɵɵtextInterpolate8(
       *  'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, 'suffix');
       * ```
       * @returns itself, so that it may be chained.
       * @see textInterpolateV
       * @codeGenApi
       */


      function ɵɵtextInterpolate8(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix) {
        var lView = getLView();
        var interpolated = interpolation8(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix);

        if (interpolated !== NO_CHANGE) {
          textBindingInternal(lView, getSelectedIndex(), interpolated);
        }

        return ɵɵtextInterpolate8;
      }
      /**
       * Update text content with 9 or more bound values other surrounded by text.
       *
       * Used when the number of interpolated values exceeds 8.
       *
       * ```html
       * <div>prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}-{{v8}}-{{v9}}suffix</div>
       * ```
       *
       * Its compiled representation is:
       *
       * ```ts
       * ɵɵtextInterpolateV(
       *  ['prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, '-', v9,
       *  'suffix']);
       * ```
       *.
       * @param values The collection of values and the strings in between those values, beginning with
       * a string prefix and ending with a string suffix.
       * (e.g. `['prefix', value0, '-', value1, '-', value2, ..., value99, 'suffix']`)
       *
       * @returns itself, so that it may be chained.
       * @codeGenApi
       */


      function ɵɵtextInterpolateV(values) {
        var lView = getLView();
        var interpolated = interpolationV(lView, values);

        if (interpolated !== NO_CHANGE) {
          textBindingInternal(lView, getSelectedIndex(), interpolated);
        }

        return ɵɵtextInterpolateV;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       *
       * Update an interpolated class on an element with single bound value surrounded by text.
       *
       * Used when the value passed to a property has 1 interpolated value in it:
       *
       * ```html
       * <div class="prefix{{v0}}suffix"></div>
       * ```
       *
       * Its compiled representation is:
       *
       * ```ts
       * ɵɵclassMapInterpolate1('prefix', v0, 'suffix');
       * ```
       *
       * @param prefix Static value used for concatenation only.
       * @param v0 Value checked for change.
       * @param suffix Static value used for concatenation only.
       * @codeGenApi
       */


      function ɵɵclassMapInterpolate1(prefix, v0, suffix) {
        var lView = getLView();
        var interpolatedValue = interpolation1(lView, prefix, v0, suffix);
        checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);
      }
      /**
       *
       * Update an interpolated class on an element with 2 bound values surrounded by text.
       *
       * Used when the value passed to a property has 2 interpolated values in it:
       *
       * ```html
       * <div class="prefix{{v0}}-{{v1}}suffix"></div>
       * ```
       *
       * Its compiled representation is:
       *
       * ```ts
       * ɵɵclassMapInterpolate2('prefix', v0, '-', v1, 'suffix');
       * ```
       *
       * @param prefix Static value used for concatenation only.
       * @param v0 Value checked for change.
       * @param i0 Static value used for concatenation only.
       * @param v1 Value checked for change.
       * @param suffix Static value used for concatenation only.
       * @codeGenApi
       */


      function ɵɵclassMapInterpolate2(prefix, v0, i0, v1, suffix) {
        var lView = getLView();
        var interpolatedValue = interpolation2(lView, prefix, v0, i0, v1, suffix);
        checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);
      }
      /**
       *
       * Update an interpolated class on an element with 3 bound values surrounded by text.
       *
       * Used when the value passed to a property has 3 interpolated values in it:
       *
       * ```html
       * <div class="prefix{{v0}}-{{v1}}-{{v2}}suffix"></div>
       * ```
       *
       * Its compiled representation is:
       *
       * ```ts
       * ɵɵclassMapInterpolate3(
       * 'prefix', v0, '-', v1, '-', v2, 'suffix');
       * ```
       *
       * @param prefix Static value used for concatenation only.
       * @param v0 Value checked for change.
       * @param i0 Static value used for concatenation only.
       * @param v1 Value checked for change.
       * @param i1 Static value used for concatenation only.
       * @param v2 Value checked for change.
       * @param suffix Static value used for concatenation only.
       * @codeGenApi
       */


      function ɵɵclassMapInterpolate3(prefix, v0, i0, v1, i1, v2, suffix) {
        var lView = getLView();
        var interpolatedValue = interpolation3(lView, prefix, v0, i0, v1, i1, v2, suffix);
        checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);
      }
      /**
       *
       * Update an interpolated class on an element with 4 bound values surrounded by text.
       *
       * Used when the value passed to a property has 4 interpolated values in it:
       *
       * ```html
       * <div class="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}suffix"></div>
       * ```
       *
       * Its compiled representation is:
       *
       * ```ts
       * ɵɵclassMapInterpolate4(
       * 'prefix', v0, '-', v1, '-', v2, '-', v3, 'suffix');
       * ```
       *
       * @param prefix Static value used for concatenation only.
       * @param v0 Value checked for change.
       * @param i0 Static value used for concatenation only.
       * @param v1 Value checked for change.
       * @param i1 Static value used for concatenation only.
       * @param v2 Value checked for change.
       * @param i2 Static value used for concatenation only.
       * @param v3 Value checked for change.
       * @param suffix Static value used for concatenation only.
       * @codeGenApi
       */


      function ɵɵclassMapInterpolate4(prefix, v0, i0, v1, i1, v2, i2, v3, suffix) {
        var lView = getLView();
        var interpolatedValue = interpolation4(lView, prefix, v0, i0, v1, i1, v2, i2, v3, suffix);
        checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);
      }
      /**
       *
       * Update an interpolated class on an element with 5 bound values surrounded by text.
       *
       * Used when the value passed to a property has 5 interpolated values in it:
       *
       * ```html
       * <div class="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}suffix"></div>
       * ```
       *
       * Its compiled representation is:
       *
       * ```ts
       * ɵɵclassMapInterpolate5(
       * 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, 'suffix');
       * ```
       *
       * @param prefix Static value used for concatenation only.
       * @param v0 Value checked for change.
       * @param i0 Static value used for concatenation only.
       * @param v1 Value checked for change.
       * @param i1 Static value used for concatenation only.
       * @param v2 Value checked for change.
       * @param i2 Static value used for concatenation only.
       * @param v3 Value checked for change.
       * @param i3 Static value used for concatenation only.
       * @param v4 Value checked for change.
       * @param suffix Static value used for concatenation only.
       * @codeGenApi
       */


      function ɵɵclassMapInterpolate5(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix) {
        var lView = getLView();
        var interpolatedValue = interpolation5(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix);
        checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);
      }
      /**
       *
       * Update an interpolated class on an element with 6 bound values surrounded by text.
       *
       * Used when the value passed to a property has 6 interpolated values in it:
       *
       * ```html
       * <div class="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}suffix"></div>
       * ```
       *
       * Its compiled representation is:
       *
       * ```ts
       * ɵɵclassMapInterpolate6(
       *    'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, 'suffix');
       * ```
       *
       * @param prefix Static value used for concatenation only.
       * @param v0 Value checked for change.
       * @param i0 Static value used for concatenation only.
       * @param v1 Value checked for change.
       * @param i1 Static value used for concatenation only.
       * @param v2 Value checked for change.
       * @param i2 Static value used for concatenation only.
       * @param v3 Value checked for change.
       * @param i3 Static value used for concatenation only.
       * @param v4 Value checked for change.
       * @param i4 Static value used for concatenation only.
       * @param v5 Value checked for change.
       * @param suffix Static value used for concatenation only.
       * @codeGenApi
       */


      function ɵɵclassMapInterpolate6(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix) {
        var lView = getLView();
        var interpolatedValue = interpolation6(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix);
        checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);
      }
      /**
       *
       * Update an interpolated class on an element with 7 bound values surrounded by text.
       *
       * Used when the value passed to a property has 7 interpolated values in it:
       *
       * ```html
       * <div class="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}suffix"></div>
       * ```
       *
       * Its compiled representation is:
       *
       * ```ts
       * ɵɵclassMapInterpolate7(
       *    'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, 'suffix');
       * ```
       *
       * @param prefix Static value used for concatenation only.
       * @param v0 Value checked for change.
       * @param i0 Static value used for concatenation only.
       * @param v1 Value checked for change.
       * @param i1 Static value used for concatenation only.
       * @param v2 Value checked for change.
       * @param i2 Static value used for concatenation only.
       * @param v3 Value checked for change.
       * @param i3 Static value used for concatenation only.
       * @param v4 Value checked for change.
       * @param i4 Static value used for concatenation only.
       * @param v5 Value checked for change.
       * @param i5 Static value used for concatenation only.
       * @param v6 Value checked for change.
       * @param suffix Static value used for concatenation only.
       * @codeGenApi
       */


      function ɵɵclassMapInterpolate7(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix) {
        var lView = getLView();
        var interpolatedValue = interpolation7(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix);
        checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);
      }
      /**
       *
       * Update an interpolated class on an element with 8 bound values surrounded by text.
       *
       * Used when the value passed to a property has 8 interpolated values in it:
       *
       * ```html
       * <div class="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}suffix"></div>
       * ```
       *
       * Its compiled representation is:
       *
       * ```ts
       * ɵɵclassMapInterpolate8(
       *  'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, 'suffix');
       * ```
       *
       * @param prefix Static value used for concatenation only.
       * @param v0 Value checked for change.
       * @param i0 Static value used for concatenation only.
       * @param v1 Value checked for change.
       * @param i1 Static value used for concatenation only.
       * @param v2 Value checked for change.
       * @param i2 Static value used for concatenation only.
       * @param v3 Value checked for change.
       * @param i3 Static value used for concatenation only.
       * @param v4 Value checked for change.
       * @param i4 Static value used for concatenation only.
       * @param v5 Value checked for change.
       * @param i5 Static value used for concatenation only.
       * @param v6 Value checked for change.
       * @param i6 Static value used for concatenation only.
       * @param v7 Value checked for change.
       * @param suffix Static value used for concatenation only.
       * @codeGenApi
       */


      function ɵɵclassMapInterpolate8(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix) {
        var lView = getLView();
        var interpolatedValue = interpolation8(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix);
        checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);
      }
      /**
       * Update an interpolated class on an element with 9 or more bound values surrounded by text.
       *
       * Used when the number of interpolated values exceeds 8.
       *
       * ```html
       * <div
       *  class="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}-{{v8}}-{{v9}}suffix"></div>
       * ```
       *
       * Its compiled representation is:
       *
       * ```ts
       * ɵɵclassMapInterpolateV(
       *  ['prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, '-', v9,
       *  'suffix']);
       * ```
       *.
       * @param values The collection of values and the strings in-between those values, beginning with
       * a string prefix and ending with a string suffix.
       * (e.g. `['prefix', value0, '-', value1, '-', value2, ..., value99, 'suffix']`)
       * @codeGenApi
       */


      function ɵɵclassMapInterpolateV(values) {
        var lView = getLView();
        var interpolatedValue = interpolationV(lView, values);
        checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       *
       * Update an interpolated style on an element with single bound value surrounded by text.
       *
       * Used when the value passed to a property has 1 interpolated value in it:
       *
       * ```html
       * <div style="key: {{v0}}suffix"></div>
       * ```
       *
       * Its compiled representation is:
       *
       * ```ts
       * ɵɵstyleMapInterpolate1('key: ', v0, 'suffix');
       * ```
       *
       * @param prefix Static value used for concatenation only.
       * @param v0 Value checked for change.
       * @param suffix Static value used for concatenation only.
       * @codeGenApi
       */


      function ɵɵstyleMapInterpolate1(prefix, v0, suffix) {
        var lView = getLView();
        var interpolatedValue = interpolation1(lView, prefix, v0, suffix);
        ɵɵstyleMap(interpolatedValue);
      }
      /**
       *
       * Update an interpolated style on an element with 2 bound values surrounded by text.
       *
       * Used when the value passed to a property has 2 interpolated values in it:
       *
       * ```html
       * <div style="key: {{v0}}; key1: {{v1}}suffix"></div>
       * ```
       *
       * Its compiled representation is:
       *
       * ```ts
       * ɵɵstyleMapInterpolate2('key: ', v0, '; key1: ', v1, 'suffix');
       * ```
       *
       * @param prefix Static value used for concatenation only.
       * @param v0 Value checked for change.
       * @param i0 Static value used for concatenation only.
       * @param v1 Value checked for change.
       * @param suffix Static value used for concatenation only.
       * @codeGenApi
       */


      function ɵɵstyleMapInterpolate2(prefix, v0, i0, v1, suffix) {
        var lView = getLView();
        var interpolatedValue = interpolation2(lView, prefix, v0, i0, v1, suffix);
        ɵɵstyleMap(interpolatedValue);
      }
      /**
       *
       * Update an interpolated style on an element with 3 bound values surrounded by text.
       *
       * Used when the value passed to a property has 3 interpolated values in it:
       *
       * ```html
       * <div style="key: {{v0}}; key2: {{v1}}; key2: {{v2}}suffix"></div>
       * ```
       *
       * Its compiled representation is:
       *
       * ```ts
       * ɵɵstyleMapInterpolate3(
       *     'key: ', v0, '; key1: ', v1, '; key2: ', v2, 'suffix');
       * ```
       *
       * @param prefix Static value used for concatenation only.
       * @param v0 Value checked for change.
       * @param i0 Static value used for concatenation only.
       * @param v1 Value checked for change.
       * @param i1 Static value used for concatenation only.
       * @param v2 Value checked for change.
       * @param suffix Static value used for concatenation only.
       * @codeGenApi
       */


      function ɵɵstyleMapInterpolate3(prefix, v0, i0, v1, i1, v2, suffix) {
        var lView = getLView();
        var interpolatedValue = interpolation3(lView, prefix, v0, i0, v1, i1, v2, suffix);
        ɵɵstyleMap(interpolatedValue);
      }
      /**
       *
       * Update an interpolated style on an element with 4 bound values surrounded by text.
       *
       * Used when the value passed to a property has 4 interpolated values in it:
       *
       * ```html
       * <div style="key: {{v0}}; key1: {{v1}}; key2: {{v2}}; key3: {{v3}}suffix"></div>
       * ```
       *
       * Its compiled representation is:
       *
       * ```ts
       * ɵɵstyleMapInterpolate4(
       *     'key: ', v0, '; key1: ', v1, '; key2: ', v2, '; key3: ', v3, 'suffix');
       * ```
       *
       * @param prefix Static value used for concatenation only.
       * @param v0 Value checked for change.
       * @param i0 Static value used for concatenation only.
       * @param v1 Value checked for change.
       * @param i1 Static value used for concatenation only.
       * @param v2 Value checked for change.
       * @param i2 Static value used for concatenation only.
       * @param v3 Value checked for change.
       * @param suffix Static value used for concatenation only.
       * @codeGenApi
       */


      function ɵɵstyleMapInterpolate4(prefix, v0, i0, v1, i1, v2, i2, v3, suffix) {
        var lView = getLView();
        var interpolatedValue = interpolation4(lView, prefix, v0, i0, v1, i1, v2, i2, v3, suffix);
        ɵɵstyleMap(interpolatedValue);
      }
      /**
       *
       * Update an interpolated style on an element with 5 bound values surrounded by text.
       *
       * Used when the value passed to a property has 5 interpolated values in it:
       *
       * ```html
       * <div style="key: {{v0}}; key1: {{v1}}; key2: {{v2}}; key3: {{v3}}; key4: {{v4}}suffix"></div>
       * ```
       *
       * Its compiled representation is:
       *
       * ```ts
       * ɵɵstyleMapInterpolate5(
       *     'key: ', v0, '; key1: ', v1, '; key2: ', v2, '; key3: ', v3, '; key4: ', v4, 'suffix');
       * ```
       *
       * @param prefix Static value used for concatenation only.
       * @param v0 Value checked for change.
       * @param i0 Static value used for concatenation only.
       * @param v1 Value checked for change.
       * @param i1 Static value used for concatenation only.
       * @param v2 Value checked for change.
       * @param i2 Static value used for concatenation only.
       * @param v3 Value checked for change.
       * @param i3 Static value used for concatenation only.
       * @param v4 Value checked for change.
       * @param suffix Static value used for concatenation only.
       * @codeGenApi
       */


      function ɵɵstyleMapInterpolate5(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix) {
        var lView = getLView();
        var interpolatedValue = interpolation5(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix);
        ɵɵstyleMap(interpolatedValue);
      }
      /**
       *
       * Update an interpolated style on an element with 6 bound values surrounded by text.
       *
       * Used when the value passed to a property has 6 interpolated values in it:
       *
       * ```html
       * <div style="key: {{v0}}; key1: {{v1}}; key2: {{v2}}; key3: {{v3}}; key4: {{v4}};
       *             key5: {{v5}}suffix"></div>
       * ```
       *
       * Its compiled representation is:
       *
       * ```ts
       * ɵɵstyleMapInterpolate6(
       *    'key: ', v0, '; key1: ', v1, '; key2: ', v2, '; key3: ', v3, '; key4: ', v4, '; key5: ', v5,
       *    'suffix');
       * ```
       *
       * @param prefix Static value used for concatenation only.
       * @param v0 Value checked for change.
       * @param i0 Static value used for concatenation only.
       * @param v1 Value checked for change.
       * @param i1 Static value used for concatenation only.
       * @param v2 Value checked for change.
       * @param i2 Static value used for concatenation only.
       * @param v3 Value checked for change.
       * @param i3 Static value used for concatenation only.
       * @param v4 Value checked for change.
       * @param i4 Static value used for concatenation only.
       * @param v5 Value checked for change.
       * @param suffix Static value used for concatenation only.
       * @codeGenApi
       */


      function ɵɵstyleMapInterpolate6(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix) {
        var lView = getLView();
        var interpolatedValue = interpolation6(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix);
        ɵɵstyleMap(interpolatedValue);
      }
      /**
       *
       * Update an interpolated style on an element with 7 bound values surrounded by text.
       *
       * Used when the value passed to a property has 7 interpolated values in it:
       *
       * ```html
       * <div style="key: {{v0}}; key1: {{v1}}; key2: {{v2}}; key3: {{v3}}; key4: {{v4}}; key5: {{v5}};
       *             key6: {{v6}}suffix"></div>
       * ```
       *
       * Its compiled representation is:
       *
       * ```ts
       * ɵɵstyleMapInterpolate7(
       *    'key: ', v0, '; key1: ', v1, '; key2: ', v2, '; key3: ', v3, '; key4: ', v4, '; key5: ', v5,
       *    '; key6: ', v6, 'suffix');
       * ```
       *
       * @param prefix Static value used for concatenation only.
       * @param v0 Value checked for change.
       * @param i0 Static value used for concatenation only.
       * @param v1 Value checked for change.
       * @param i1 Static value used for concatenation only.
       * @param v2 Value checked for change.
       * @param i2 Static value used for concatenation only.
       * @param v3 Value checked for change.
       * @param i3 Static value used for concatenation only.
       * @param v4 Value checked for change.
       * @param i4 Static value used for concatenation only.
       * @param v5 Value checked for change.
       * @param i5 Static value used for concatenation only.
       * @param v6 Value checked for change.
       * @param suffix Static value used for concatenation only.
       * @codeGenApi
       */


      function ɵɵstyleMapInterpolate7(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix) {
        var lView = getLView();
        var interpolatedValue = interpolation7(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix);
        ɵɵstyleMap(interpolatedValue);
      }
      /**
       *
       * Update an interpolated style on an element with 8 bound values surrounded by text.
       *
       * Used when the value passed to a property has 8 interpolated values in it:
       *
       * ```html
       * <div style="key: {{v0}}; key1: {{v1}}; key2: {{v2}}; key3: {{v3}}; key4: {{v4}}; key5: {{v5}};
       *             key6: {{v6}}; key7: {{v7}}suffix"></div>
       * ```
       *
       * Its compiled representation is:
       *
       * ```ts
       * ɵɵstyleMapInterpolate8(
       *    'key: ', v0, '; key1: ', v1, '; key2: ', v2, '; key3: ', v3, '; key4: ', v4, '; key5: ', v5,
       *    '; key6: ', v6, '; key7: ', v7, 'suffix');
       * ```
       *
       * @param prefix Static value used for concatenation only.
       * @param v0 Value checked for change.
       * @param i0 Static value used for concatenation only.
       * @param v1 Value checked for change.
       * @param i1 Static value used for concatenation only.
       * @param v2 Value checked for change.
       * @param i2 Static value used for concatenation only.
       * @param v3 Value checked for change.
       * @param i3 Static value used for concatenation only.
       * @param v4 Value checked for change.
       * @param i4 Static value used for concatenation only.
       * @param v5 Value checked for change.
       * @param i5 Static value used for concatenation only.
       * @param v6 Value checked for change.
       * @param i6 Static value used for concatenation only.
       * @param v7 Value checked for change.
       * @param suffix Static value used for concatenation only.
       * @codeGenApi
       */


      function ɵɵstyleMapInterpolate8(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix) {
        var lView = getLView();
        var interpolatedValue = interpolation8(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix);
        ɵɵstyleMap(interpolatedValue);
      }
      /**
       * Update an interpolated style on an element with 9 or more bound values surrounded by text.
       *
       * Used when the number of interpolated values exceeds 8.
       *
       * ```html
       * <div
       *  class="key: {{v0}}; key1: {{v1}}; key2: {{v2}}; key3: {{v3}}; key4: {{v4}}; key5: {{v5}};
       *         key6: {{v6}}; key7: {{v7}}; key8: {{v8}}; key9: {{v9}}suffix"></div>
       * ```
       *
       * Its compiled representation is:
       *
       * ```ts
       * ɵɵstyleMapInterpolateV(
       *    ['key: ', v0, '; key1: ', v1, '; key2: ', v2, '; key3: ', v3, '; key4: ', v4, '; key5: ', v5,
       *     '; key6: ', v6, '; key7: ', v7, '; key8: ', v8, '; key9: ', v9, 'suffix']);
       * ```
       *.
       * @param values The collection of values and the strings in-between those values, beginning with
       * a string prefix and ending with a string suffix.
       * (e.g. `['prefix', value0, '; key2: ', value1, '; key2: ', value2, ..., value99, 'suffix']`)
       * @codeGenApi
       */


      function ɵɵstyleMapInterpolateV(values) {
        var lView = getLView();
        var interpolatedValue = interpolationV(lView, values);
        ɵɵstyleMap(interpolatedValue);
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       *
       * Update an interpolated style property on an element with single bound value surrounded by text.
       *
       * Used when the value passed to a property has 1 interpolated value in it:
       *
       * ```html
       * <div style.color="prefix{{v0}}suffix"></div>
       * ```
       *
       * Its compiled representation is:
       *
       * ```ts
       * ɵɵstylePropInterpolate1(0, 'prefix', v0, 'suffix');
       * ```
       *
       * @param styleIndex Index of style to update. This index value refers to the
       *        index of the style in the style bindings array that was passed into
       *        `styling`.
       * @param prefix Static value used for concatenation only.
       * @param v0 Value checked for change.
       * @param suffix Static value used for concatenation only.
       * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.
       * @returns itself, so that it may be chained.
       * @codeGenApi
       */


      function ɵɵstylePropInterpolate1(prop, prefix, v0, suffix, valueSuffix) {
        var lView = getLView();
        var interpolatedValue = interpolation1(lView, prefix, v0, suffix);
        checkStylingProperty(prop, interpolatedValue, valueSuffix, false);
        return ɵɵstylePropInterpolate1;
      }
      /**
       *
       * Update an interpolated style property on an element with 2 bound values surrounded by text.
       *
       * Used when the value passed to a property has 2 interpolated values in it:
       *
       * ```html
       * <div style.color="prefix{{v0}}-{{v1}}suffix"></div>
       * ```
       *
       * Its compiled representation is:
       *
       * ```ts
       * ɵɵstylePropInterpolate2(0, 'prefix', v0, '-', v1, 'suffix');
       * ```
       *
       * @param styleIndex Index of style to update. This index value refers to the
       *        index of the style in the style bindings array that was passed into
       *        `styling`.
       * @param prefix Static value used for concatenation only.
       * @param v0 Value checked for change.
       * @param i0 Static value used for concatenation only.
       * @param v1 Value checked for change.
       * @param suffix Static value used for concatenation only.
       * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.
       * @returns itself, so that it may be chained.
       * @codeGenApi
       */


      function ɵɵstylePropInterpolate2(prop, prefix, v0, i0, v1, suffix, valueSuffix) {
        var lView = getLView();
        var interpolatedValue = interpolation2(lView, prefix, v0, i0, v1, suffix);
        checkStylingProperty(prop, interpolatedValue, valueSuffix, false);
        return ɵɵstylePropInterpolate2;
      }
      /**
       *
       * Update an interpolated style property on an element with 3 bound values surrounded by text.
       *
       * Used when the value passed to a property has 3 interpolated values in it:
       *
       * ```html
       * <div style.color="prefix{{v0}}-{{v1}}-{{v2}}suffix"></div>
       * ```
       *
       * Its compiled representation is:
       *
       * ```ts
       * ɵɵstylePropInterpolate3(0, 'prefix', v0, '-', v1, '-', v2, 'suffix');
       * ```
       *
       * @param styleIndex Index of style to update. This index value refers to the
       *        index of the style in the style bindings array that was passed into
       *        `styling`.
       * @param prefix Static value used for concatenation only.
       * @param v0 Value checked for change.
       * @param i0 Static value used for concatenation only.
       * @param v1 Value checked for change.
       * @param i1 Static value used for concatenation only.
       * @param v2 Value checked for change.
       * @param suffix Static value used for concatenation only.
       * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.
       * @returns itself, so that it may be chained.
       * @codeGenApi
       */


      function ɵɵstylePropInterpolate3(prop, prefix, v0, i0, v1, i1, v2, suffix, valueSuffix) {
        var lView = getLView();
        var interpolatedValue = interpolation3(lView, prefix, v0, i0, v1, i1, v2, suffix);
        checkStylingProperty(prop, interpolatedValue, valueSuffix, false);
        return ɵɵstylePropInterpolate3;
      }
      /**
       *
       * Update an interpolated style property on an element with 4 bound values surrounded by text.
       *
       * Used when the value passed to a property has 4 interpolated values in it:
       *
       * ```html
       * <div style.color="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}suffix"></div>
       * ```
       *
       * Its compiled representation is:
       *
       * ```ts
       * ɵɵstylePropInterpolate4(0, 'prefix', v0, '-', v1, '-', v2, '-', v3, 'suffix');
       * ```
       *
       * @param styleIndex Index of style to update. This index value refers to the
       *        index of the style in the style bindings array that was passed into
       *        `styling`.
       * @param prefix Static value used for concatenation only.
       * @param v0 Value checked for change.
       * @param i0 Static value used for concatenation only.
       * @param v1 Value checked for change.
       * @param i1 Static value used for concatenation only.
       * @param v2 Value checked for change.
       * @param i2 Static value used for concatenation only.
       * @param v3 Value checked for change.
       * @param suffix Static value used for concatenation only.
       * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.
       * @returns itself, so that it may be chained.
       * @codeGenApi
       */


      function ɵɵstylePropInterpolate4(prop, prefix, v0, i0, v1, i1, v2, i2, v3, suffix, valueSuffix) {
        var lView = getLView();
        var interpolatedValue = interpolation4(lView, prefix, v0, i0, v1, i1, v2, i2, v3, suffix);
        checkStylingProperty(prop, interpolatedValue, valueSuffix, false);
        return ɵɵstylePropInterpolate4;
      }
      /**
       *
       * Update an interpolated style property on an element with 5 bound values surrounded by text.
       *
       * Used when the value passed to a property has 5 interpolated values in it:
       *
       * ```html
       * <div style.color="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}suffix"></div>
       * ```
       *
       * Its compiled representation is:
       *
       * ```ts
       * ɵɵstylePropInterpolate5(0, 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, 'suffix');
       * ```
       *
       * @param styleIndex Index of style to update. This index value refers to the
       *        index of the style in the style bindings array that was passed into
       *        `styling`.
       * @param prefix Static value used for concatenation only.
       * @param v0 Value checked for change.
       * @param i0 Static value used for concatenation only.
       * @param v1 Value checked for change.
       * @param i1 Static value used for concatenation only.
       * @param v2 Value checked for change.
       * @param i2 Static value used for concatenation only.
       * @param v3 Value checked for change.
       * @param i3 Static value used for concatenation only.
       * @param v4 Value checked for change.
       * @param suffix Static value used for concatenation only.
       * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.
       * @returns itself, so that it may be chained.
       * @codeGenApi
       */


      function ɵɵstylePropInterpolate5(prop, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix, valueSuffix) {
        var lView = getLView();
        var interpolatedValue = interpolation5(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix);
        checkStylingProperty(prop, interpolatedValue, valueSuffix, false);
        return ɵɵstylePropInterpolate5;
      }
      /**
       *
       * Update an interpolated style property on an element with 6 bound values surrounded by text.
       *
       * Used when the value passed to a property has 6 interpolated values in it:
       *
       * ```html
       * <div style.color="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}suffix"></div>
       * ```
       *
       * Its compiled representation is:
       *
       * ```ts
       * ɵɵstylePropInterpolate6(0, 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, 'suffix');
       * ```
       *
       * @param styleIndex Index of style to update. This index value refers to the
       *        index of the style in the style bindings array that was passed into
       *        `styling`.
       * @param prefix Static value used for concatenation only.
       * @param v0 Value checked for change.
       * @param i0 Static value used for concatenation only.
       * @param v1 Value checked for change.
       * @param i1 Static value used for concatenation only.
       * @param v2 Value checked for change.
       * @param i2 Static value used for concatenation only.
       * @param v3 Value checked for change.
       * @param i3 Static value used for concatenation only.
       * @param v4 Value checked for change.
       * @param i4 Static value used for concatenation only.
       * @param v5 Value checked for change.
       * @param suffix Static value used for concatenation only.
       * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.
       * @returns itself, so that it may be chained.
       * @codeGenApi
       */


      function ɵɵstylePropInterpolate6(prop, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix, valueSuffix) {
        var lView = getLView();
        var interpolatedValue = interpolation6(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix);
        checkStylingProperty(prop, interpolatedValue, valueSuffix, false);
        return ɵɵstylePropInterpolate6;
      }
      /**
       *
       * Update an interpolated style property on an element with 7 bound values surrounded by text.
       *
       * Used when the value passed to a property has 7 interpolated values in it:
       *
       * ```html
       * <div style.color="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}suffix"></div>
       * ```
       *
       * Its compiled representation is:
       *
       * ```ts
       * ɵɵstylePropInterpolate7(
       *    0, 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, 'suffix');
       * ```
       *
       * @param styleIndex Index of style to update. This index value refers to the
       *        index of the style in the style bindings array that was passed into
       *        `styling`.
       * @param prefix Static value used for concatenation only.
       * @param v0 Value checked for change.
       * @param i0 Static value used for concatenation only.
       * @param v1 Value checked for change.
       * @param i1 Static value used for concatenation only.
       * @param v2 Value checked for change.
       * @param i2 Static value used for concatenation only.
       * @param v3 Value checked for change.
       * @param i3 Static value used for concatenation only.
       * @param v4 Value checked for change.
       * @param i4 Static value used for concatenation only.
       * @param v5 Value checked for change.
       * @param i5 Static value used for concatenation only.
       * @param v6 Value checked for change.
       * @param suffix Static value used for concatenation only.
       * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.
       * @returns itself, so that it may be chained.
       * @codeGenApi
       */


      function ɵɵstylePropInterpolate7(prop, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix, valueSuffix) {
        var lView = getLView();
        var interpolatedValue = interpolation7(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix);
        checkStylingProperty(prop, interpolatedValue, valueSuffix, false);
        return ɵɵstylePropInterpolate7;
      }
      /**
       *
       * Update an interpolated style property on an element with 8 bound values surrounded by text.
       *
       * Used when the value passed to a property has 8 interpolated values in it:
       *
       * ```html
       * <div style.color="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}suffix"></div>
       * ```
       *
       * Its compiled representation is:
       *
       * ```ts
       * ɵɵstylePropInterpolate8(0, 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6,
       * '-', v7, 'suffix');
       * ```
       *
       * @param styleIndex Index of style to update. This index value refers to the
       *        index of the style in the style bindings array that was passed into
       *        `styling`.
       * @param prefix Static value used for concatenation only.
       * @param v0 Value checked for change.
       * @param i0 Static value used for concatenation only.
       * @param v1 Value checked for change.
       * @param i1 Static value used for concatenation only.
       * @param v2 Value checked for change.
       * @param i2 Static value used for concatenation only.
       * @param v3 Value checked for change.
       * @param i3 Static value used for concatenation only.
       * @param v4 Value checked for change.
       * @param i4 Static value used for concatenation only.
       * @param v5 Value checked for change.
       * @param i5 Static value used for concatenation only.
       * @param v6 Value checked for change.
       * @param i6 Static value used for concatenation only.
       * @param v7 Value checked for change.
       * @param suffix Static value used for concatenation only.
       * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.
       * @returns itself, so that it may be chained.
       * @codeGenApi
       */


      function ɵɵstylePropInterpolate8(prop, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix, valueSuffix) {
        var lView = getLView();
        var interpolatedValue = interpolation8(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix);
        checkStylingProperty(prop, interpolatedValue, valueSuffix, false);
        return ɵɵstylePropInterpolate8;
      }
      /**
       * Update an interpolated style property on an element with 9 or more bound values surrounded by
       * text.
       *
       * Used when the number of interpolated values exceeds 8.
       *
       * ```html
       * <div
       *  style.color="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}-{{v8}}-{{v9}}suffix">
       * </div>
       * ```
       *
       * Its compiled representation is:
       *
       * ```ts
       * ɵɵstylePropInterpolateV(
       *  0, ['prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, '-', v9,
       *  'suffix']);
       * ```
       *
       * @param styleIndex Index of style to update. This index value refers to the
       *        index of the style in the style bindings array that was passed into
       *        `styling`..
       * @param values The collection of values and the strings in-between those values, beginning with
       * a string prefix and ending with a string suffix.
       * (e.g. `['prefix', value0, '-', value1, '-', value2, ..., value99, 'suffix']`)
       * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.
       * @returns itself, so that it may be chained.
       * @codeGenApi
       */


      function ɵɵstylePropInterpolateV(prop, values, valueSuffix) {
        var lView = getLView();
        var interpolatedValue = interpolationV(lView, values);
        checkStylingProperty(prop, interpolatedValue, valueSuffix, false);
        return ɵɵstylePropInterpolateV;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Update a property on a host element. Only applies to native node properties, not inputs.
       *
       * Operates on the element selected by index via the {@link select} instruction.
       *
       * @param propName Name of property. Because it is going to DOM, this is not subject to
       *        renaming as part of minification.
       * @param value New value to write.
       * @param sanitizer An optional function used to sanitize the value.
       * @returns This function returns itself so that it may be chained
       * (e.g. `property('name', ctx.name)('title', ctx.title)`)
       *
       * @codeGenApi
       */


      function ɵɵhostProperty(propName, value, sanitizer) {
        var lView = getLView();
        var bindingIndex = nextBindingIndex();

        if (bindingUpdated(lView, bindingIndex, value)) {
          var tView = getTView();
          var tNode = getSelectedTNode();
          elementPropertyInternal(tView, tNode, lView, propName, value, lView[RENDERER], sanitizer, true);
          ngDevMode && storePropertyBindingMetadata(tView.data, tNode, propName, bindingIndex);
        }

        return ɵɵhostProperty;
      }
      /**
       * Updates a synthetic host binding (e.g. `[@foo]`) on a component or directive.
       *
       * This instruction is for compatibility purposes and is designed to ensure that a
       * synthetic host binding (e.g. `@HostBinding('@foo')`) properly gets rendered in
       * the component's renderer. Normally all host bindings are evaluated with the parent
       * component's renderer, but, in the case of animation @triggers, they need to be
       * evaluated with the sub component's renderer (because that's where the animation
       * triggers are defined).
       *
       * Do not use this instruction as a replacement for `elementProperty`. This instruction
       * only exists to ensure compatibility with the ViewEngine's host binding behavior.
       *
       * @param index The index of the element to update in the data array
       * @param propName Name of property. Because it is going to DOM, this is not subject to
       *        renaming as part of minification.
       * @param value New value to write.
       * @param sanitizer An optional function used to sanitize the value.
       *
       * @codeGenApi
       */


      function ɵɵsyntheticHostProperty(propName, value, sanitizer) {
        var lView = getLView();
        var bindingIndex = nextBindingIndex();

        if (bindingUpdated(lView, bindingIndex, value)) {
          var tView = getTView();
          var tNode = getSelectedTNode();
          var currentDef = getCurrentDirectiveDef(tView.data);
          var renderer = loadComponentRenderer(currentDef, tNode, lView);
          elementPropertyInternal(tView, tNode, lView, propName, value, renderer, sanitizer, true);
          ngDevMode && storePropertyBindingMetadata(tView.data, tNode, propName, bindingIndex);
        }

        return ɵɵsyntheticHostProperty;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * NOTE: changes to the `ngI18nClosureMode` name must be synced with `compiler-cli/src/tooling.ts`.
       */


      if (typeof ngI18nClosureMode === 'undefined') {
        // These property accesses can be ignored because ngI18nClosureMode will be set to false
        // when optimizing code and the whole if statement will be dropped.
        // Make sure to refer to ngI18nClosureMode as ['ngI18nClosureMode'] for closure.
        // NOTE: we need to have it in IIFE so that the tree-shaker is happy.
        (function () {
          // tslint:disable-next-line:no-toplevel-property-access
          _global['ngI18nClosureMode'] = // TODO(FW-1250): validate that this actually, you know, works.
          // tslint:disable-next-line:no-toplevel-property-access
          typeof goog !== 'undefined' && typeof goog.getMsg === 'function';
        })();
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */
      // THIS CODE IS GENERATED - DO NOT MODIFY
      // See angular/tools/gulp-tasks/cldr/extract.js


      var u = undefined;

      function plural(n) {
        var i = Math.floor(Math.abs(n)),
            v = n.toString().replace(/^[^.]*\.?/, '').length;
        if (i === 1 && v === 0) return 1;
        return 5;
      }

      var localeEn = ['en', [['a', 'p'], ['AM', 'PM'], u], [['AM', 'PM'], u, u], [['S', 'M', 'T', 'W', 'T', 'F', 'S'], ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'], ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa']], u, [['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']], u, [['B', 'A'], ['BC', 'AD'], ['Before Christ', 'Anno Domini']], 0, [6, 0], ['M/d/yy', 'MMM d, y', 'MMMM d, y', 'EEEE, MMMM d, y'], ['h:mm a', 'h:mm:ss a', 'h:mm:ss a z', 'h:mm:ss a zzzz'], ['{1}, {0}', u, '{1} \'at\' {0}', u], ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'], ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'USD', '$', 'US Dollar', {}, 'ltr', plural];
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * This const is used to store the locale data registered with `registerLocaleData`
       */

      var LOCALE_DATA = {};
      /**
       * Register locale data to be used internally by Angular. See the
       * ["I18n guide"](guide/i18n#i18n-pipes) to know how to import additional locale data.
       *
       * The signature `registerLocaleData(data: any, extraData?: any)` is deprecated since v5.1
       */

      function registerLocaleData(data, localeId, extraData) {
        if (typeof localeId !== 'string') {
          extraData = localeId;
          localeId = data[LocaleDataIndex.LocaleId];
        }

        localeId = localeId.toLowerCase().replace(/_/g, '-');
        LOCALE_DATA[localeId] = data;

        if (extraData) {
          LOCALE_DATA[localeId][LocaleDataIndex.ExtraData] = extraData;
        }
      }
      /**
       * Finds the locale data for a given locale.
       *
       * @param locale The locale code.
       * @returns The locale data.
       * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
       */


      function findLocaleData(locale) {
        var normalizedLocale = normalizeLocale(locale);
        var match = getLocaleData(normalizedLocale);

        if (match) {
          return match;
        } // let's try to find a parent locale


        var parentLocale = normalizedLocale.split('-')[0];
        match = getLocaleData(parentLocale);

        if (match) {
          return match;
        }

        if (parentLocale === 'en') {
          return localeEn;
        }

        throw new Error("Missing locale data for the locale \"".concat(locale, "\"."));
      }
      /**
       * Retrieves the default currency code for the given locale.
       *
       * The default is defined as the first currency which is still in use.
       *
       * @param locale The code of the locale whose currency code we want.
       * @returns The code of the default currency for the given locale.
       *
       */


      function getLocaleCurrencyCode(locale) {
        var data = findLocaleData(locale);
        return data[LocaleDataIndex.CurrencyCode] || null;
      }
      /**
       * Retrieves the plural function used by ICU expressions to determine the plural case to use
       * for a given locale.
       * @param locale A locale code for the locale format rules to use.
       * @returns The plural function for the locale.
       * @see `NgPlural`
       * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
       */


      function getLocalePluralCase(locale) {
        var data = findLocaleData(locale);
        return data[LocaleDataIndex.PluralCase];
      }
      /**
       * Helper function to get the given `normalizedLocale` from `LOCALE_DATA`
       * or from the global `ng.common.locale`.
       */


      function getLocaleData(normalizedLocale) {
        if (!(normalizedLocale in LOCALE_DATA)) {
          LOCALE_DATA[normalizedLocale] = _global.ng && _global.ng.common && _global.ng.common.locales && _global.ng.common.locales[normalizedLocale];
        }

        return LOCALE_DATA[normalizedLocale];
      }
      /**
       * Helper function to remove all the locale data from `LOCALE_DATA`.
       */


      function unregisterAllLocaleData() {
        LOCALE_DATA = {};
      }
      /**
       * Index of each type of locale data from the locale data array
       */


      var LocaleDataIndex;

      (function (LocaleDataIndex) {
        LocaleDataIndex[LocaleDataIndex["LocaleId"] = 0] = "LocaleId";
        LocaleDataIndex[LocaleDataIndex["DayPeriodsFormat"] = 1] = "DayPeriodsFormat";
        LocaleDataIndex[LocaleDataIndex["DayPeriodsStandalone"] = 2] = "DayPeriodsStandalone";
        LocaleDataIndex[LocaleDataIndex["DaysFormat"] = 3] = "DaysFormat";
        LocaleDataIndex[LocaleDataIndex["DaysStandalone"] = 4] = "DaysStandalone";
        LocaleDataIndex[LocaleDataIndex["MonthsFormat"] = 5] = "MonthsFormat";
        LocaleDataIndex[LocaleDataIndex["MonthsStandalone"] = 6] = "MonthsStandalone";
        LocaleDataIndex[LocaleDataIndex["Eras"] = 7] = "Eras";
        LocaleDataIndex[LocaleDataIndex["FirstDayOfWeek"] = 8] = "FirstDayOfWeek";
        LocaleDataIndex[LocaleDataIndex["WeekendRange"] = 9] = "WeekendRange";
        LocaleDataIndex[LocaleDataIndex["DateFormat"] = 10] = "DateFormat";
        LocaleDataIndex[LocaleDataIndex["TimeFormat"] = 11] = "TimeFormat";
        LocaleDataIndex[LocaleDataIndex["DateTimeFormat"] = 12] = "DateTimeFormat";
        LocaleDataIndex[LocaleDataIndex["NumberSymbols"] = 13] = "NumberSymbols";
        LocaleDataIndex[LocaleDataIndex["NumberFormats"] = 14] = "NumberFormats";
        LocaleDataIndex[LocaleDataIndex["CurrencyCode"] = 15] = "CurrencyCode";
        LocaleDataIndex[LocaleDataIndex["CurrencySymbol"] = 16] = "CurrencySymbol";
        LocaleDataIndex[LocaleDataIndex["CurrencyName"] = 17] = "CurrencyName";
        LocaleDataIndex[LocaleDataIndex["Currencies"] = 18] = "Currencies";
        LocaleDataIndex[LocaleDataIndex["Directionality"] = 19] = "Directionality";
        LocaleDataIndex[LocaleDataIndex["PluralCase"] = 20] = "PluralCase";
        LocaleDataIndex[LocaleDataIndex["ExtraData"] = 21] = "ExtraData";
      })(LocaleDataIndex || (LocaleDataIndex = {}));
      /**
       * Returns the canonical form of a locale name - lowercase with `_` replaced with `-`.
       */


      function normalizeLocale(locale) {
        return locale.toLowerCase().replace(/_/g, '-');
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var pluralMapping = ['zero', 'one', 'two', 'few', 'many'];
      /**
       * Returns the plural case based on the locale
       */

      function getPluralCase(value, locale) {
        var plural = getLocalePluralCase(locale)(parseInt(value, 10));
        var result = pluralMapping[plural];
        return result !== undefined ? result : 'other';
      }
      /**
       * The locale id that the application is using by default (for translations and ICU expressions).
       */


      var DEFAULT_LOCALE_ID = 'en-US';
      /**
       * USD currency code that the application uses by default for CurrencyPipe when no
       * DEFAULT_CURRENCY_CODE is provided.
       */

      var USD_CURRENCY_CODE = 'USD';
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Marks that the next string is an element name.
       *
       * See `I18nMutateOpCodes` documentation.
       */

      var ELEMENT_MARKER = {
        marker: 'element'
      };
      /**
       * Marks that the next string is comment text need for ICU.
       *
       * See `I18nMutateOpCodes` documentation.
       */

      var ICU_MARKER = {
        marker: 'ICU'
      };
      /**
       * See `I18nCreateOpCodes`
       */

      var I18nCreateOpCode;

      (function (I18nCreateOpCode) {
        /**
         * Number of bits to shift index so that it can be combined with the `APPEND_EAGERLY` and
         * `COMMENT`.
         */
        I18nCreateOpCode[I18nCreateOpCode["SHIFT"] = 2] = "SHIFT";
        /**
         * Should the node be appended to parent imedditatly after creation.
         */

        I18nCreateOpCode[I18nCreateOpCode["APPEND_EAGERLY"] = 1] = "APPEND_EAGERLY";
        /**
         * If set the node should be comment (rather than a text) node.
         */

        I18nCreateOpCode[I18nCreateOpCode["COMMENT"] = 2] = "COMMENT";
      })(I18nCreateOpCode || (I18nCreateOpCode = {})); // Note: This hack is necessary so we don't erroneously get a circular dependency
      // failure based on types.


      var unusedValueExportToPlacateAjd$6 = 1;
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * The locale id that the application is currently using (for translations and ICU expressions).
       * This is the ivy version of `LOCALE_ID` that was defined as an injection token for the view engine
       * but is now defined as a global value.
       */

      var LOCALE_ID = DEFAULT_LOCALE_ID;
      /**
       * Sets the locale id that will be used for translations and ICU expressions.
       * This is the ivy version of `LOCALE_ID` that was defined as an injection token for the view engine
       * but is now defined as a global value.
       *
       * @param localeId
       */

      function setLocaleId(localeId) {
        assertDefined(localeId, "Expected localeId to be defined");

        if (typeof localeId === 'string') {
          LOCALE_ID = localeId.toLowerCase().replace(/_/g, '-');
        }
      }
      /**
       * Gets the locale id that will be used for translations and ICU expressions.
       * This is the ivy version of `LOCALE_ID` that was defined as an injection token for the view engine
       * but is now defined as a global value.
       */


      function getLocaleId() {
        return LOCALE_ID;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Find a node in front of which `currentTNode` should be inserted (takes i18n into account).
       *
       * This method determines the `RNode` in front of which we should insert the `currentRNode`. This
       * takes `TNode.insertBeforeIndex` into account.
       *
       * @param parentTNode parent `TNode`
       * @param currentTNode current `TNode` (The node which we would like to insert into the DOM)
       * @param lView current `LView`
       */


      function getInsertInFrontOfRNodeWithI18n(parentTNode, currentTNode, lView) {
        var tNodeInsertBeforeIndex = currentTNode.insertBeforeIndex;
        var insertBeforeIndex = Array.isArray(tNodeInsertBeforeIndex) ? tNodeInsertBeforeIndex[0] : tNodeInsertBeforeIndex;

        if (insertBeforeIndex === null) {
          return getInsertInFrontOfRNodeWithNoI18n(parentTNode, currentTNode, lView);
        } else {
          ngDevMode && assertIndexInRange(lView, insertBeforeIndex);
          return unwrapRNode(lView[insertBeforeIndex]);
        }
      }
      /**
       * Process `TNode.insertBeforeIndex` by adding i18n text nodes.
       *
       * See `TNode.insertBeforeIndex`
       */


      function processI18nInsertBefore(renderer, childTNode, lView, childRNode, parentRElement) {
        var tNodeInsertBeforeIndex = childTNode.insertBeforeIndex;

        if (Array.isArray(tNodeInsertBeforeIndex)) {
          // An array indicates that there are i18n nodes that need to be added as children of this
          // `childRNode`. These i18n nodes were created before this `childRNode` was available and so
          // only now can be added. The first element of the array is the normal index where we should
          // insert the `childRNode`. Additional elements are the extra nodes to be added as children of
          // `childRNode`.
          ngDevMode && assertDomNode(childRNode);
          var i18nParent = childRNode;
          var anchorRNode = null;

          if (!(childTNode.type & 3
          /* AnyRNode */
          )) {
            anchorRNode = i18nParent;
            i18nParent = parentRElement;
          }

          if (i18nParent !== null && (childTNode.flags & 2
          /* isComponentHost */
          ) === 0) {
            for (var i = 1; i < tNodeInsertBeforeIndex.length; i++) {
              // No need to `unwrapRNode` because all of the indexes point to i18n text nodes.
              // see `assertDomNode` below.
              var i18nChild = lView[tNodeInsertBeforeIndex[i]];
              nativeInsertBefore(renderer, i18nParent, i18nChild, anchorRNode, false);
            }
          }
        }
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Add `tNode` to `previousTNodes` list and update relevant `TNode`s in `previousTNodes` list
       * `tNode.insertBeforeIndex`.
       *
       * Things to keep in mind:
       * 1. All i18n text nodes are encoded as `TNodeType.Element` and are created eagerly by the
       *    `ɵɵi18nStart` instruction.
       * 2. All `TNodeType.Placeholder` `TNodes` are elements which will be created later by
       *    `ɵɵelementStart` instruction.
       * 3. `ɵɵelementStart` instruction will create `TNode`s in the ascending `TNode.index` order. (So a
       *    smaller index `TNode` is guaranteed to be created before a larger one)
       *
       * We use the above three invariants to determine `TNode.insertBeforeIndex`.
       *
       * In an ideal world `TNode.insertBeforeIndex` would always be `TNode.next.index`. However,
       * this will not work because `TNode.next.index` may be larger than `TNode.index` which means that
       * the next node is not yet created and therefore we can't insert in front of it.
       *
       * Rule1: `TNode.insertBeforeIndex = null` if `TNode.next === null` (Initial condition, as we don't
       *        know if there will be further `TNode`s inserted after.)
       * Rule2: If `previousTNode` is created after the `tNode` being inserted, then
       *        `previousTNode.insertBeforeNode = tNode.index` (So when a new `tNode` is added we check
       *        previous to see if we can update its `insertBeforeTNode`)
       *
       * See `TNode.insertBeforeIndex` for more context.
       *
       * @param previousTNodes A list of previous TNodes so that we can easily traverse `TNode`s in
       *     reverse order. (If `TNode` would have `previous` this would not be necessary.)
       * @param newTNode A TNode to add to the `previousTNodes` list.
       */


      function addTNodeAndUpdateInsertBeforeIndex(previousTNodes, newTNode) {
        // Start with Rule1
        ngDevMode && assertEqual(newTNode.insertBeforeIndex, null, 'We expect that insertBeforeIndex is not set');
        previousTNodes.push(newTNode);

        if (previousTNodes.length > 1) {
          for (var i = previousTNodes.length - 2; i >= 0; i--) {
            var existingTNode = previousTNodes[i]; // Text nodes are created eagerly and so they don't need their `indexBeforeIndex` updated.
            // It is safe to ignore them.

            if (!isI18nText(existingTNode)) {
              if (isNewTNodeCreatedBefore(existingTNode, newTNode) && getInsertBeforeIndex(existingTNode) === null) {
                // If it was created before us in time, (and it does not yet have `insertBeforeIndex`)
                // then add the `insertBeforeIndex`.
                setInsertBeforeIndex(existingTNode, newTNode.index);
              }
            }
          }
        }
      }

      function isI18nText(tNode) {
        return !(tNode.type & 64
        /* Placeholder */
        );
      }

      function isNewTNodeCreatedBefore(existingTNode, newTNode) {
        return isI18nText(newTNode) || existingTNode.index > newTNode.index;
      }

      function getInsertBeforeIndex(tNode) {
        var index = tNode.insertBeforeIndex;
        return Array.isArray(index) ? index[0] : index;
      }

      function setInsertBeforeIndex(tNode, value) {
        var index = tNode.insertBeforeIndex;

        if (Array.isArray(index)) {
          // Array is stored if we have to insert child nodes. See `TNode.insertBeforeIndex`
          index[0] = value;
        } else {
          setI18nHandling(getInsertInFrontOfRNodeWithI18n, processI18nInsertBefore);
          tNode.insertBeforeIndex = value;
        }
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Retrieve `TIcu` at a given `index`.
       *
       * The `TIcu` can be stored either directly (if it is nested ICU) OR
       * it is stored inside tho `TIcuContainer` if it is top level ICU.
       *
       * The reason for this is that the top level ICU need a `TNode` so that they are part of the render
       * tree, but nested ICU's have no TNode, because we don't know ahead of time if the nested ICU is
       * expressed (parent ICU may have selected a case which does not contain it.)
       *
       * @param tView Current `TView`.
       * @param index Index where the value should be read from.
       */


      function getTIcu(tView, index) {
        var value = tView.data[index];
        if (value === null || typeof value === 'string') return null;

        if (ngDevMode && !(value.hasOwnProperty('tViews') || value.hasOwnProperty('currentCaseLViewIndex'))) {
          throwError('We expect to get \'null\'|\'TIcu\'|\'TIcuContainer\', but got: ' + value);
        } // Here the `value.hasOwnProperty('currentCaseLViewIndex')` is a polymorphic read as it can be
        // either TIcu or TIcuContainerNode. This is not ideal, but we still think it is OK because it
        // will be just two cases which fits into the browser inline cache (inline cache can take up to
        // 4)


        var tIcu = value.hasOwnProperty('currentCaseLViewIndex') ? value : value.value;
        ngDevMode && assertTIcu(tIcu);
        return tIcu;
      }
      /**
       * Store `TIcu` at a give `index`.
       *
       * The `TIcu` can be stored either directly (if it is nested ICU) OR
       * it is stored inside tho `TIcuContainer` if it is top level ICU.
       *
       * The reason for this is that the top level ICU need a `TNode` so that they are part of the render
       * tree, but nested ICU's have no TNode, because we don't know ahead of time if the nested ICU is
       * expressed (parent ICU may have selected a case which does not contain it.)
       *
       * @param tView Current `TView`.
       * @param index Index where the value should be stored at in `Tview.data`
       * @param tIcu The TIcu to store.
       */


      function setTIcu(tView, index, tIcu) {
        var tNode = tView.data[index];
        ngDevMode && assertEqual(tNode === null || tNode.hasOwnProperty('tViews'), true, 'We expect to get \'null\'|\'TIcuContainer\'');

        if (tNode === null) {
          tView.data[index] = tIcu;
        } else {
          ngDevMode && assertTNodeType(tNode, 32
          /* Icu */
          );
          tNode.value = tIcu;
        }
      }
      /**
       * Set `TNode.insertBeforeIndex` taking the `Array` into account.
       *
       * See `TNode.insertBeforeIndex`
       */


      function setTNodeInsertBeforeIndex(tNode, index) {
        ngDevMode && assertTNode(tNode);
        var insertBeforeIndex = tNode.insertBeforeIndex;

        if (insertBeforeIndex === null) {
          setI18nHandling(getInsertInFrontOfRNodeWithI18n, processI18nInsertBefore);
          insertBeforeIndex = tNode.insertBeforeIndex = [null
          /* may be updated to number later */
          , index];
        } else {
          assertEqual(Array.isArray(insertBeforeIndex), true, 'Expecting array here');
          insertBeforeIndex.push(index);
        }
      }
      /**
       * Create `TNode.type=TNodeType.Placeholder` node.
       *
       * See `TNodeType.Placeholder` for more information.
       */


      function createTNodePlaceholder(tView, previousTNodes, index) {
        var tNode = createTNodeAtIndex(tView, index, 64
        /* Placeholder */
        , null, null);
        addTNodeAndUpdateInsertBeforeIndex(previousTNodes, tNode);
        return tNode;
      }
      /**
       * Returns current ICU case.
       *
       * ICU cases are stored as index into the `TIcu.cases`.
       * At times it is necessary to communicate that the ICU case just switched and that next ICU update
       * should update all bindings regardless of the mask. In such a case the we store negative numbers
       * for cases which have just been switched. This function removes the negative flag.
       */


      function getCurrentICUCaseIndex(tIcu, lView) {
        var currentCase = lView[tIcu.currentCaseLViewIndex];
        return currentCase === null ? currentCase : currentCase < 0 ? ~currentCase : currentCase;
      }

      function getParentFromIcuCreateOpCode(mergedCode) {
        return mergedCode >>> 17
        /* SHIFT_PARENT */
        ;
      }

      function getRefFromIcuCreateOpCode(mergedCode) {
        return (mergedCode & 131070
        /* MASK_REF */
        ) >>> 1
        /* SHIFT_REF */
        ;
      }

      function getInstructionFromIcuCreateOpCode(mergedCode) {
        return mergedCode & 1
        /* MASK_INSTRUCTION */
        ;
      }

      function icuCreateOpCode(opCode, parentIdx, refIdx) {
        ngDevMode && assertGreaterThanOrEqual(parentIdx, 0, 'Missing parent index');
        ngDevMode && assertGreaterThan(refIdx, 0, 'Missing ref index');
        return opCode | parentIdx << 17
        /* SHIFT_PARENT */
        | refIdx << 1
        /* SHIFT_REF */
        ;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Keep track of which input bindings in `ɵɵi18nExp` have changed.
       *
       * This is used to efficiently update expressions in i18n only when the corresponding input has
       * changed.
       *
       * 1) Each bit represents which of the `ɵɵi18nExp` has changed.
       * 2) There are 32 bits allowed in JS.
       * 3) Bit 32 is special as it is shared for all changes past 32. (In other words if you have more
       * than 32 `ɵɵi18nExp` then all changes past 32nd `ɵɵi18nExp` will be mapped to same bit. This means
       * that we may end up changing more than we need to. But i18n expressions with 32 bindings is rare
       * so in practice it should not be an issue.)
       */


      var changeMask = 0;
      /**
       * Keeps track of which bit needs to be updated in `changeMask`
       *
       * This value gets incremented on every call to `ɵɵi18nExp`
       */

      var changeMaskCounter = 0;
      /**
       * Keep track of which input bindings in `ɵɵi18nExp` have changed.
       *
       * `setMaskBit` gets invoked by each call to `ɵɵi18nExp`.
       *
       * @param hasChange did `ɵɵi18nExp` detect a change.
       */

      function setMaskBit(hasChange) {
        if (hasChange) {
          changeMask = changeMask | 1 << Math.min(changeMaskCounter, 31);
        }

        changeMaskCounter++;
      }

      function applyI18n(tView, lView, index) {
        if (changeMaskCounter > 0) {
          ngDevMode && assertDefined(tView, "tView should be defined");
          var tI18n = tView.data[index]; // When `index` points to an `ɵɵi18nAttributes` then we have an array otherwise `TI18n`

          var updateOpCodes = Array.isArray(tI18n) ? tI18n : tI18n.update;
          var bindingsStartIndex = getBindingIndex() - changeMaskCounter - 1;
          applyUpdateOpCodes(tView, lView, updateOpCodes, bindingsStartIndex, changeMask);
        } // Reset changeMask & maskBit to default for the next update cycle


        changeMask = 0;
        changeMaskCounter = 0;
      }
      /**
       * Apply `I18nCreateOpCodes` op-codes as stored in `TI18n.create`.
       *
       * Creates text (and comment) nodes which are internationalized.
       *
       * @param lView Current lView
       * @param createOpCodes Set of op-codes to apply
       * @param parentRNode Parent node (so that direct children can be added eagerly) or `null` if it is
       *     a root node.
       * @param insertInFrontOf DOM node that should be used as an anchor.
       */


      function applyCreateOpCodes(lView, createOpCodes, parentRNode, insertInFrontOf) {
        var renderer = lView[RENDERER];

        for (var i = 0; i < createOpCodes.length; i++) {
          var opCode = createOpCodes[i++];
          var text = createOpCodes[i];
          var isComment = (opCode & I18nCreateOpCode.COMMENT) === I18nCreateOpCode.COMMENT;
          var appendNow = (opCode & I18nCreateOpCode.APPEND_EAGERLY) === I18nCreateOpCode.APPEND_EAGERLY;
          var index = opCode >>> I18nCreateOpCode.SHIFT;
          var rNode = lView[index];

          if (rNode === null) {
            // We only create new DOM nodes if they don't already exist: If ICU switches case back to a
            // case which was already instantiated, no need to create new DOM nodes.
            rNode = lView[index] = isComment ? renderer.createComment(text) : createTextNode(renderer, text);
          }

          if (appendNow && parentRNode !== null) {
            nativeInsertBefore(renderer, parentRNode, rNode, insertInFrontOf, false);
          }
        }
      }
      /**
       * Apply `I18nMutateOpCodes` OpCodes.
       *
       * @param tView Current `TView`
       * @param mutableOpCodes Mutable OpCodes to process
       * @param lView Current `LView`
       * @param anchorRNode place where the i18n node should be inserted.
       */


      function applyMutableOpCodes(tView, mutableOpCodes, lView, anchorRNode) {
        ngDevMode && assertDomNode(anchorRNode);
        var renderer = lView[RENDERER]; // `rootIdx` represents the node into which all inserts happen.

        var rootIdx = null; // `rootRNode` represents the real node into which we insert. This can be different from
        // `lView[rootIdx]` if we have projection.
        //  - null we don't have a parent (as can be the case in when we are inserting into a root of
        //    LView which has no parent.)
        //  - `RElement` The element representing the root after taking projection into account.

        var rootRNode;

        for (var i = 0; i < mutableOpCodes.length; i++) {
          var opCode = mutableOpCodes[i];

          if (typeof opCode == 'string') {
            var textNodeIndex = mutableOpCodes[++i];

            if (lView[textNodeIndex] === null) {
              ngDevMode && ngDevMode.rendererCreateTextNode++;
              ngDevMode && assertIndexInRange(lView, textNodeIndex);
              lView[textNodeIndex] = createTextNode(renderer, opCode);
            }
          } else if (typeof opCode == 'number') {
            switch (opCode & 1
            /* MASK_INSTRUCTION */
            ) {
              case 0
              /* AppendChild */
              :
                var parentIdx = getParentFromIcuCreateOpCode(opCode);

                if (rootIdx === null) {
                  // The first operation should save the `rootIdx` because the first operation
                  // must insert into the root. (Only subsequent operations can insert into a dynamic
                  // parent)
                  rootIdx = parentIdx;
                  rootRNode = nativeParentNode(renderer, anchorRNode);
                }

                var insertInFrontOf = void 0;
                var parentRNode = void 0;

                if (parentIdx === rootIdx) {
                  insertInFrontOf = anchorRNode;
                  parentRNode = rootRNode;
                } else {
                  insertInFrontOf = null;
                  parentRNode = unwrapRNode(lView[parentIdx]);
                } // FIXME(misko): Refactor with `processI18nText`


                if (parentRNode !== null) {
                  // This can happen if the `LView` we are adding to is not attached to a parent `LView`.
                  // In such a case there is no "root" we can attach to. This is fine, as we still need to
                  // create the elements. When the `LView` gets later added to a parent these "root" nodes
                  // get picked up and added.
                  ngDevMode && assertDomNode(parentRNode);
                  var refIdx = getRefFromIcuCreateOpCode(opCode);
                  ngDevMode && assertGreaterThan(refIdx, HEADER_OFFSET, 'Missing ref'); // `unwrapRNode` is not needed here as all of these point to RNodes as part of the i18n
                  // which can't have components.

                  var child = lView[refIdx];
                  ngDevMode && assertDomNode(child);
                  nativeInsertBefore(renderer, parentRNode, child, insertInFrontOf, false);
                  var tIcu = getTIcu(tView, refIdx);

                  if (tIcu !== null && typeof tIcu === 'object') {
                    // If we just added a comment node which has ICU then that ICU may have already been
                    // rendered and therefore we need to re-add it here.
                    ngDevMode && assertTIcu(tIcu);
                    var caseIndex = getCurrentICUCaseIndex(tIcu, lView);

                    if (caseIndex !== null) {
                      applyMutableOpCodes(tView, tIcu.create[caseIndex], lView, lView[tIcu.anchorIdx]);
                    }
                  }
                }

                break;

              case 1
              /* Attr */
              :
                var elementNodeIndex = opCode >>> 1
                /* SHIFT_REF */
                ;
                var attrName = mutableOpCodes[++i];
                var attrValue = mutableOpCodes[++i]; // This code is used for ICU expressions only, since we don't support
                // directives/components in ICUs, we don't need to worry about inputs here

                setElementAttribute(renderer, getNativeByIndex(elementNodeIndex, lView), null, null, attrName, attrValue, null);
                break;

              default:
                throw new Error("Unable to determine the type of mutate operation for \"".concat(opCode, "\""));
            }
          } else {
            switch (opCode) {
              case ICU_MARKER:
                var commentValue = mutableOpCodes[++i];
                var commentNodeIndex = mutableOpCodes[++i];

                if (lView[commentNodeIndex] === null) {
                  ngDevMode && assertEqual(typeof commentValue, 'string', "Expected \"".concat(commentValue, "\" to be a comment node value"));
                  ngDevMode && ngDevMode.rendererCreateComment++;
                  ngDevMode && assertIndexInExpandoRange(lView, commentNodeIndex);
                  var commentRNode = lView[commentNodeIndex] = createCommentNode(renderer, commentValue); // FIXME(misko): Attaching patch data is only needed for the root (Also add tests)

                  attachPatchData(commentRNode, lView);
                }

                break;

              case ELEMENT_MARKER:
                var tagName = mutableOpCodes[++i];
                var _elementNodeIndex = mutableOpCodes[++i];

                if (lView[_elementNodeIndex] === null) {
                  ngDevMode && assertEqual(typeof tagName, 'string', "Expected \"".concat(tagName, "\" to be an element node tag name"));
                  ngDevMode && ngDevMode.rendererCreateElement++;
                  ngDevMode && assertIndexInExpandoRange(lView, _elementNodeIndex);
                  var elementRNode = lView[_elementNodeIndex] = createElementNode(renderer, tagName, null); // FIXME(misko): Attaching patch data is only needed for the root (Also add tests)

                  attachPatchData(elementRNode, lView);
                }

                break;

              default:
                ngDevMode && throwError("Unable to determine the type of mutate operation for \"".concat(opCode, "\""));
            }
          }
        }
      }
      /**
       * Apply `I18nUpdateOpCodes` OpCodes
       *
       * @param tView Current `TView`
       * @param lView Current `LView`
       * @param updateOpCodes OpCodes to process
       * @param bindingsStartIndex Location of the first `ɵɵi18nApply`
       * @param changeMask Each bit corresponds to a `ɵɵi18nExp` (Counting backwards from
       *     `bindingsStartIndex`)
       */


      function applyUpdateOpCodes(tView, lView, updateOpCodes, bindingsStartIndex, changeMask) {
        for (var i = 0; i < updateOpCodes.length; i++) {
          // bit code to check if we should apply the next update
          var checkBit = updateOpCodes[i]; // Number of opCodes to skip until next set of update codes

          var skipCodes = updateOpCodes[++i];

          if (checkBit & changeMask) {
            // The value has been updated since last checked
            var value = '';

            for (var j = i + 1; j <= i + skipCodes; j++) {
              var opCode = updateOpCodes[j];

              if (typeof opCode == 'string') {
                value += opCode;
              } else if (typeof opCode == 'number') {
                if (opCode < 0) {
                  // Negative opCode represent `i18nExp` values offset.
                  value += renderStringify(lView[bindingsStartIndex - opCode]);
                } else {
                  var nodeIndex = opCode >>> 2
                  /* SHIFT_REF */
                  ;

                  switch (opCode & 3
                  /* MASK_OPCODE */
                  ) {
                    case 1
                    /* Attr */
                    :
                      var propName = updateOpCodes[++j];
                      var sanitizeFn = updateOpCodes[++j];
                      var tNodeOrTagName = tView.data[nodeIndex];
                      ngDevMode && assertDefined(tNodeOrTagName, 'Experting TNode or string');

                      if (typeof tNodeOrTagName === 'string') {
                        // IF we don't have a `TNode`, then we are an element in ICU (as ICU content does
                        // not have TNode), in which case we know that there are no directives, and hence
                        // we use attribute setting.
                        setElementAttribute(lView[RENDERER], lView[nodeIndex], null, tNodeOrTagName, propName, value, sanitizeFn);
                      } else {
                        elementPropertyInternal(tView, tNodeOrTagName, lView, propName, value, lView[RENDERER], sanitizeFn, false);
                      }

                      break;

                    case 0
                    /* Text */
                    :
                      var rText = lView[nodeIndex];
                      rText !== null && updateTextNode(lView[RENDERER], rText, value);
                      break;

                    case 2
                    /* IcuSwitch */
                    :
                      applyIcuSwitchCase(tView, getTIcu(tView, nodeIndex), lView, value);
                      break;

                    case 3
                    /* IcuUpdate */
                    :
                      applyIcuUpdateCase(tView, getTIcu(tView, nodeIndex), bindingsStartIndex, lView);
                      break;
                  }
                }
              }
            }
          } else {
            var _opCode = updateOpCodes[i + 1];

            if (_opCode > 0 && (_opCode & 3
            /* MASK_OPCODE */
            ) === 3
            /* IcuUpdate */
            ) {
              // Special case for the `icuUpdateCase`. It could be that the mask did not match, but
              // we still need to execute `icuUpdateCase` because the case has changed recently due to
              // previous `icuSwitchCase` instruction. (`icuSwitchCase` and `icuUpdateCase` always come in
              // pairs.)
              var _nodeIndex = _opCode >>> 2
              /* SHIFT_REF */
              ;

              var tIcu = getTIcu(tView, _nodeIndex);
              var currentIndex = lView[tIcu.currentCaseLViewIndex];

              if (currentIndex < 0) {
                applyIcuUpdateCase(tView, tIcu, bindingsStartIndex, lView);
              }
            }
          }

          i += skipCodes;
        }
      }
      /**
       * Apply OpCodes associated with updating an existing ICU.
       *
       * @param tView Current `TView`
       * @param tIcu Current `TIcu`
       * @param bindingsStartIndex Location of the first `ɵɵi18nApply`
       * @param lView Current `LView`
       */


      function applyIcuUpdateCase(tView, tIcu, bindingsStartIndex, lView) {
        ngDevMode && assertIndexInRange(lView, tIcu.currentCaseLViewIndex);
        var activeCaseIndex = lView[tIcu.currentCaseLViewIndex];

        if (activeCaseIndex !== null) {
          var mask = changeMask;

          if (activeCaseIndex < 0) {
            // Clear the flag.
            // Negative number means that the ICU was freshly created and we need to force the update.
            activeCaseIndex = lView[tIcu.currentCaseLViewIndex] = ~activeCaseIndex; // -1 is same as all bits on, which simulates creation since it marks all bits dirty

            mask = -1;
          }

          applyUpdateOpCodes(tView, lView, tIcu.update[activeCaseIndex], bindingsStartIndex, mask);
        }
      }
      /**
       * Apply OpCodes associated with switching a case on ICU.
       *
       * This involves tearing down existing case and than building up a new case.
       *
       * @param tView Current `TView`
       * @param tIcu Current `TIcu`
       * @param lView Current `LView`
       * @param value Value of the case to update to.
       */


      function applyIcuSwitchCase(tView, tIcu, lView, value) {
        // Rebuild a new case for this ICU
        var caseIndex = getCaseIndex(tIcu, value);
        var activeCaseIndex = getCurrentICUCaseIndex(tIcu, lView);

        if (activeCaseIndex !== caseIndex) {
          applyIcuSwitchCaseRemove(tView, tIcu, lView);
          lView[tIcu.currentCaseLViewIndex] = caseIndex === null ? null : ~caseIndex;

          if (caseIndex !== null) {
            // Add the nodes for the new case
            var anchorRNode = lView[tIcu.anchorIdx];

            if (anchorRNode) {
              ngDevMode && assertDomNode(anchorRNode);
              applyMutableOpCodes(tView, tIcu.create[caseIndex], lView, anchorRNode);
            }
          }
        }
      }
      /**
       * Apply OpCodes associated with tearing ICU case.
       *
       * This involves tearing down existing case and than building up a new case.
       *
       * @param tView Current `TView`
       * @param tIcu Current `TIcu`
       * @param lView Current `LView`
       */


      function applyIcuSwitchCaseRemove(tView, tIcu, lView) {
        var activeCaseIndex = getCurrentICUCaseIndex(tIcu, lView);

        if (activeCaseIndex !== null) {
          var removeCodes = tIcu.remove[activeCaseIndex];

          for (var i = 0; i < removeCodes.length; i++) {
            var nodeOrIcuIndex = removeCodes[i];

            if (nodeOrIcuIndex > 0) {
              // Positive numbers are `RNode`s.
              var rNode = getNativeByIndex(nodeOrIcuIndex, lView);
              rNode !== null && nativeRemoveNode(lView[RENDERER], rNode);
            } else {
              // Negative numbers are ICUs
              applyIcuSwitchCaseRemove(tView, getTIcu(tView, ~nodeOrIcuIndex), lView);
            }
          }
        }
      }
      /**
       * Returns the index of the current case of an ICU expression depending on the main binding value
       *
       * @param icuExpression
       * @param bindingValue The value of the main binding used by this ICU expression
       */


      function getCaseIndex(icuExpression, bindingValue) {
        var index = icuExpression.cases.indexOf(bindingValue);

        if (index === -1) {
          switch (icuExpression.type) {
            case 1
            /* plural */
            :
              {
                var resolvedCase = getPluralCase(bindingValue, getLocaleId());
                index = icuExpression.cases.indexOf(resolvedCase);

                if (index === -1 && resolvedCase !== 'other') {
                  index = icuExpression.cases.indexOf('other');
                }

                break;
              }

            case 0
            /* select */
            :
              {
                index = icuExpression.cases.indexOf('other');
                break;
              }
          }
        }

        return index === -1 ? null : index;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function loadIcuContainerVisitor() {
        var _stack = [];

        var _index = -1;

        var _lView;

        var _removes;
        /**
         * Retrieves a set of root nodes from `TIcu.remove`. Used by `TNodeType.ICUContainer`
         * to determine which root belong to the ICU.
         *
         * Example of usage.
         * ```
         * const nextRNode = icuContainerIteratorStart(tIcuContainerNode, lView);
         * let rNode: RNode|null;
         * while(rNode = nextRNode()) {
         *   console.log(rNode);
         * }
         * ```
         *
         * @param tIcuContainerNode Current `TIcuContainerNode`
         * @param lView `LView` where the `RNode`s should be looked up.
         */


        function icuContainerIteratorStart(tIcuContainerNode, lView) {
          _lView = lView;

          while (_stack.length) {
            _stack.pop();
          }

          ngDevMode && assertTNodeForLView(tIcuContainerNode, lView);
          enterIcu(tIcuContainerNode.value, lView);
          return icuContainerIteratorNext;
        }

        function enterIcu(tIcu, lView) {
          _index = 0;
          var currentCase = getCurrentICUCaseIndex(tIcu, lView);

          if (currentCase !== null) {
            ngDevMode && assertNumberInRange(currentCase, 0, tIcu.cases.length - 1);
            _removes = tIcu.remove[currentCase];
          } else {
            _removes = EMPTY_ARRAY;
          }
        }

        function icuContainerIteratorNext() {
          if (_index < _removes.length) {
            var removeOpCode = _removes[_index++];
            ngDevMode && assertNumber(removeOpCode, 'Expecting OpCode number');

            if (removeOpCode > 0) {
              var rNode = _lView[removeOpCode];
              ngDevMode && assertDomNode(rNode);
              return rNode;
            } else {
              _stack.push(_index, _removes); // ICUs are represented by negative indices


              var tIcuIndex = ~removeOpCode;
              var tIcu = _lView[TVIEW].data[tIcuIndex];
              ngDevMode && assertTIcu(tIcu);
              enterIcu(tIcu, _lView);
              return icuContainerIteratorNext();
            }
          } else {
            if (_stack.length === 0) {
              return null;
            } else {
              _removes = _stack.pop();
              _index = _stack.pop();
              return icuContainerIteratorNext();
            }
          }
        }

        return icuContainerIteratorStart;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Converts `I18nCreateOpCodes` array into a human readable format.
       *
       * This function is attached to the `I18nCreateOpCodes.debug` property if `ngDevMode` is enabled.
       * This function provides a human readable view of the opcodes. This is useful when debugging the
       * application as well as writing more readable tests.
       *
       * @param this `I18nCreateOpCodes` if attached as a method.
       * @param opcodes `I18nCreateOpCodes` if invoked as a function.
       */


      function i18nCreateOpCodesToString(opcodes) {
        var createOpCodes = opcodes || (Array.isArray(this) ? this : []);
        var lines = [];

        for (var i = 0; i < createOpCodes.length; i++) {
          var opCode = createOpCodes[i++];
          var text = createOpCodes[i];
          var isComment = (opCode & I18nCreateOpCode.COMMENT) === I18nCreateOpCode.COMMENT;
          var appendNow = (opCode & I18nCreateOpCode.APPEND_EAGERLY) === I18nCreateOpCode.APPEND_EAGERLY;
          var index = opCode >>> I18nCreateOpCode.SHIFT;
          lines.push("lView[".concat(index, "] = document.").concat(isComment ? 'createComment' : 'createText', "(").concat(JSON.stringify(text), ");"));

          if (appendNow) {
            lines.push("parent.appendChild(lView[".concat(index, "]);"));
          }
        }

        return lines;
      }
      /**
       * Converts `I18nUpdateOpCodes` array into a human readable format.
       *
       * This function is attached to the `I18nUpdateOpCodes.debug` property if `ngDevMode` is enabled.
       * This function provides a human readable view of the opcodes. This is useful when debugging the
       * application as well as writing more readable tests.
       *
       * @param this `I18nUpdateOpCodes` if attached as a method.
       * @param opcodes `I18nUpdateOpCodes` if invoked as a function.
       */


      function i18nUpdateOpCodesToString(opcodes) {
        var parser = new OpCodeParser(opcodes || (Array.isArray(this) ? this : []));
        var lines = [];

        function consumeOpCode(value) {
          var ref = value >>> 2
          /* SHIFT_REF */
          ;
          var opCode = value & 3
          /* MASK_OPCODE */
          ;

          switch (opCode) {
            case 0
            /* Text */
            :
              return "(lView[".concat(ref, "] as Text).textContent = $$$");

            case 1
            /* Attr */
            :
              var attrName = parser.consumeString();
              var sanitizationFn = parser.consumeFunction();

              var _value9 = sanitizationFn ? "(".concat(sanitizationFn, ")($$$)") : '$$$';

              return "(lView[".concat(ref, "] as Element).setAttribute('").concat(attrName, "', ").concat(_value9, ")");

            case 2
            /* IcuSwitch */
            :
              return "icuSwitchCase(".concat(ref, ", $$$)");

            case 3
            /* IcuUpdate */
            :
              return "icuUpdateCase(".concat(ref, ")");
          }

          throw new Error('unexpected OpCode');
        }

        while (parser.hasMore()) {
          var mask = parser.consumeNumber();
          var size = parser.consumeNumber();
          var end = parser.i + size;
          var statements = [];
          var statement = '';

          while (parser.i < end) {
            var value = parser.consumeNumberOrString();

            if (typeof value === 'string') {
              statement += value;
            } else if (value < 0) {
              // Negative numbers are ref indexes
              // Here `i` refers to current binding index. It is to signify that the value is relative,
              // rather than absolute.
              statement += '${lView[i' + value + ']}';
            } else {
              // Positive numbers are operations.
              var opCodeText = consumeOpCode(value);
              statements.push(opCodeText.replace('$$$', '`' + statement + '`') + ';');
              statement = '';
            }
          }

          lines.push("if (mask & 0b".concat(mask.toString(2), ") { ").concat(statements.join(' '), " }"));
        }

        return lines;
      }
      /**
       * Converts `I18nCreateOpCodes` array into a human readable format.
       *
       * This function is attached to the `I18nCreateOpCodes.debug` if `ngDevMode` is enabled. This
       * function provides a human readable view of the opcodes. This is useful when debugging the
       * application as well as writing more readable tests.
       *
       * @param this `I18nCreateOpCodes` if attached as a method.
       * @param opcodes `I18nCreateOpCodes` if invoked as a function.
       */


      function icuCreateOpCodesToString(opcodes) {
        var parser = new OpCodeParser(opcodes || (Array.isArray(this) ? this : []));
        var lines = [];

        function consumeOpCode(opCode) {
          var parent = getParentFromIcuCreateOpCode(opCode);
          var ref = getRefFromIcuCreateOpCode(opCode);

          switch (getInstructionFromIcuCreateOpCode(opCode)) {
            case 0
            /* AppendChild */
            :
              return "(lView[".concat(parent, "] as Element).appendChild(lView[").concat(lastRef, "])");

            case 1
            /* Attr */
            :
              return "(lView[".concat(ref, "] as Element).setAttribute(\"").concat(parser.consumeString(), "\", \"").concat(parser.consumeString(), "\")");
          }

          throw new Error('Unexpected OpCode: ' + getInstructionFromIcuCreateOpCode(opCode));
        }

        var lastRef = -1;

        while (parser.hasMore()) {
          var value = parser.consumeNumberStringOrMarker();

          if (value === ICU_MARKER) {
            var text = parser.consumeString();
            lastRef = parser.consumeNumber();
            lines.push("lView[".concat(lastRef, "] = document.createComment(\"").concat(text, "\")"));
          } else if (value === ELEMENT_MARKER) {
            var _text = parser.consumeString();

            lastRef = parser.consumeNumber();
            lines.push("lView[".concat(lastRef, "] = document.createElement(\"").concat(_text, "\")"));
          } else if (typeof value === 'string') {
            lastRef = parser.consumeNumber();
            lines.push("lView[".concat(lastRef, "] = document.createTextNode(\"").concat(value, "\")"));
          } else if (typeof value === 'number') {
            var line = consumeOpCode(value);
            line && lines.push(line);
          } else {
            throw new Error('Unexpected value');
          }
        }

        return lines;
      }
      /**
       * Converts `I18nRemoveOpCodes` array into a human readable format.
       *
       * This function is attached to the `I18nRemoveOpCodes.debug` if `ngDevMode` is enabled. This
       * function provides a human readable view of the opcodes. This is useful when debugging the
       * application as well as writing more readable tests.
       *
       * @param this `I18nRemoveOpCodes` if attached as a method.
       * @param opcodes `I18nRemoveOpCodes` if invoked as a function.
       */


      function i18nRemoveOpCodesToString(opcodes) {
        var removeCodes = opcodes || (Array.isArray(this) ? this : []);
        var lines = [];

        for (var i = 0; i < removeCodes.length; i++) {
          var nodeOrIcuIndex = removeCodes[i];

          if (nodeOrIcuIndex > 0) {
            // Positive numbers are `RNode`s.
            lines.push("remove(lView[".concat(nodeOrIcuIndex, "])"));
          } else {
            // Negative numbers are ICUs
            lines.push("removeNestedICU(".concat(~nodeOrIcuIndex, ")"));
          }
        }

        return lines;
      }

      var OpCodeParser = /*#__PURE__*/function () {
        function OpCodeParser(codes) {
          _classCallCheck2(this, OpCodeParser);

          this.i = 0;
          this.codes = codes;
        }

        _createClass2(OpCodeParser, [{
          key: "hasMore",
          value: function hasMore() {
            return this.i < this.codes.length;
          }
        }, {
          key: "consumeNumber",
          value: function consumeNumber() {
            var value = this.codes[this.i++];
            assertNumber(value, 'expecting number in OpCode');
            return value;
          }
        }, {
          key: "consumeString",
          value: function consumeString() {
            var value = this.codes[this.i++];
            assertString(value, 'expecting string in OpCode');
            return value;
          }
        }, {
          key: "consumeFunction",
          value: function consumeFunction() {
            var value = this.codes[this.i++];

            if (value === null || typeof value === 'function') {
              return value;
            }

            throw new Error('expecting function in OpCode');
          }
        }, {
          key: "consumeNumberOrString",
          value: function consumeNumberOrString() {
            var value = this.codes[this.i++];

            if (typeof value === 'string') {
              return value;
            }

            assertNumber(value, 'expecting number or string in OpCode');
            return value;
          }
        }, {
          key: "consumeNumberStringOrMarker",
          value: function consumeNumberStringOrMarker() {
            var value = this.codes[this.i++];

            if (typeof value === 'string' || typeof value === 'number' || value == ICU_MARKER || value == ELEMENT_MARKER) {
              return value;
            }

            assertNumber(value, 'expecting number, string, ICU_MARKER or ELEMENT_MARKER in OpCode');
            return value;
          }
        }]);

        return OpCodeParser;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var BINDING_REGEXP = /�(\d+):?\d*�/gi;
      var ICU_REGEXP = /({\s*�\d+:?\d*�\s*,\s*\S{6}\s*,[\s\S]*})/gi;
      var NESTED_ICU = /�(\d+)�/;
      var ICU_BLOCK_REGEXP = /^\s*(�\d+:?\d*�)\s*,\s*(select|plural)\s*,/;
      var MARKER = "\uFFFD";
      var SUBTEMPLATE_REGEXP = /�\/?\*(\d+:\d+)�/gi;
      var PH_REGEXP = /�(\/?[#*]\d+):?\d*�/gi;
      /**
       * Angular Dart introduced &ngsp; as a placeholder for non-removable space, see:
       * https://github.com/dart-lang/angular/blob/0bb611387d29d65b5af7f9d2515ab571fd3fbee4/_tests/test/compiler/preserve_whitespace_test.dart#L25-L32
       * In Angular Dart &ngsp; is converted to the 0xE500 PUA (Private Use Areas) unicode character
       * and later on replaced by a space. We are re-implementing the same idea here, since translations
       * might contain this special character.
       */

      var NGSP_UNICODE_REGEXP = /\uE500/g;

      function replaceNgsp(value) {
        return value.replace(NGSP_UNICODE_REGEXP, ' ');
      }
      /**
       * Create dynamic nodes from i18n translation block.
       *
       * - Text nodes are created synchronously
       * - TNodes are linked into tree lazily
       *
       * @param tView Current `TView`
       * @parentTNodeIndex index to the parent TNode of this i18n block
       * @param lView Current `LView`
       * @param index Index of `ɵɵi18nStart` instruction.
       * @param message Message to translate.
       * @param subTemplateIndex Index into the sub template of message translation. (ie in case of
       *     `ngIf`) (-1 otherwise)
       */


      function i18nStartFirstCreatePass(tView, parentTNodeIndex, lView, index, message, subTemplateIndex) {
        var rootTNode = getCurrentParentTNode();
        var createOpCodes = [];
        var updateOpCodes = [];
        var existingTNodeStack = [[]];

        if (ngDevMode) {
          attachDebugGetter(createOpCodes, i18nCreateOpCodesToString);
          attachDebugGetter(updateOpCodes, i18nUpdateOpCodesToString);
        }

        message = getTranslationForTemplate(message, subTemplateIndex);
        var msgParts = replaceNgsp(message).split(PH_REGEXP);

        for (var i = 0; i < msgParts.length; i++) {
          var value = msgParts[i];

          if ((i & 1) === 0) {
            // Even indexes are text (including bindings & ICU expressions)
            var parts = i18nParseTextIntoPartsAndICU(value);

            for (var j = 0; j < parts.length; j++) {
              var part = parts[j];

              if ((j & 1) === 0) {
                // `j` is odd therefore `part` is string
                var text = part;
                ngDevMode && assertString(text, 'Parsed ICU part should be string');

                if (text !== '') {
                  i18nStartFirstCreatePassProcessTextNode(tView, rootTNode, existingTNodeStack[0], createOpCodes, updateOpCodes, lView, text);
                }
              } else {
                // `j` is Even therefor `part` is an `ICUExpression`
                var icuExpression = part; // Verify that ICU expression has the right shape. Translations might contain invalid
                // constructions (while original messages were correct), so ICU parsing at runtime may
                // not succeed (thus `icuExpression` remains a string).
                // Note: we intentionally retain the error here by not using `ngDevMode`, because
                // the value can change based on the locale and users aren't guaranteed to hit
                // an invalid string while they're developing.

                if (typeof icuExpression !== 'object') {
                  throw new Error("Unable to parse ICU expression in \"".concat(message, "\" message."));
                }

                var icuContainerTNode = createTNodeAndAddOpCode(tView, rootTNode, existingTNodeStack[0], lView, createOpCodes, ngDevMode ? "ICU ".concat(index, ":").concat(icuExpression.mainBinding) : '', true);
                var icuNodeIndex = icuContainerTNode.index;
                ngDevMode && assertGreaterThanOrEqual(icuNodeIndex, HEADER_OFFSET, 'Index must be in absolute LView offset');
                icuStart(tView, lView, updateOpCodes, parentTNodeIndex, icuExpression, icuNodeIndex);
              }
            }
          } else {
            // Odd indexes are placeholders (elements and sub-templates)
            // At this point value is something like: '/#1:2' (originally coming from '�/#1:2�')
            var isClosing = value.charCodeAt(0) === 47
            /* SLASH */
            ;
            var type = value.charCodeAt(isClosing ? 1 : 0);
            ngDevMode && assertOneOf(type, 42
            /* STAR */
            , 35
            /* HASH */
            );

            var _index2 = HEADER_OFFSET + Number.parseInt(value.substring(isClosing ? 2 : 1));

            if (isClosing) {
              existingTNodeStack.shift();
              setCurrentTNode(getCurrentParentTNode(), false);
            } else {
              var tNode = createTNodePlaceholder(tView, existingTNodeStack[0], _index2);
              existingTNodeStack.unshift([]);
              setCurrentTNode(tNode, true);
            }
          }
        }

        tView.data[index] = {
          create: createOpCodes,
          update: updateOpCodes
        };
      }
      /**
       * Allocate space in i18n Range add create OpCode instruction to crete a text or comment node.
       *
       * @param tView Current `TView` needed to allocate space in i18n range.
       * @param rootTNode Root `TNode` of the i18n block. This node determines if the new TNode will be
       *     added as part of the `i18nStart` instruction or as part of the `TNode.insertBeforeIndex`.
       * @param existingTNodes internal state for `addTNodeAndUpdateInsertBeforeIndex`.
       * @param lView Current `LView` needed to allocate space in i18n range.
       * @param createOpCodes Array storing `I18nCreateOpCodes` where new opCodes will be added.
       * @param text Text to be added when the `Text` or `Comment` node will be created.
       * @param isICU true if a `Comment` node for ICU (instead of `Text`) node should be created.
       */


      function createTNodeAndAddOpCode(tView, rootTNode, existingTNodes, lView, createOpCodes, text, isICU) {
        var i18nNodeIdx = allocExpando(tView, lView, 1, null);
        var opCode = i18nNodeIdx << I18nCreateOpCode.SHIFT;
        var parentTNode = getCurrentParentTNode();

        if (rootTNode === parentTNode) {
          // FIXME(misko): A null `parentTNode` should represent when we fall of the `LView` boundary.
          // (there is no parent), but in some circumstances (because we are inconsistent about how we set
          // `previousOrParentTNode`) it could point to `rootTNode` So this is a work around.
          parentTNode = null;
        }

        if (parentTNode === null) {
          // If we don't have a parent that means that we can eagerly add nodes.
          // If we have a parent than these nodes can't be added now (as the parent has not been created
          // yet) and instead the `parentTNode` is responsible for adding it. See
          // `TNode.insertBeforeIndex`
          opCode |= I18nCreateOpCode.APPEND_EAGERLY;
        }

        if (isICU) {
          opCode |= I18nCreateOpCode.COMMENT;
          ensureIcuContainerVisitorLoaded(loadIcuContainerVisitor);
        }

        createOpCodes.push(opCode, text === null ? '' : text); // We store `{{?}}` so that when looking at debug `TNodeType.template` we can see where the
        // bindings are.

        var tNode = createTNodeAtIndex(tView, i18nNodeIdx, isICU ? 32
        /* Icu */
        : 1
        /* Text */
        , text === null ? ngDevMode ? '{{?}}' : '' : text, null);
        addTNodeAndUpdateInsertBeforeIndex(existingTNodes, tNode);
        var tNodeIdx = tNode.index;
        setCurrentTNode(tNode, false
        /* Text nodes are self closing */
        );

        if (parentTNode !== null && rootTNode !== parentTNode) {
          // We are a child of deeper node (rather than a direct child of `i18nStart` instruction.)
          // We have to make sure to add ourselves to the parent.
          setTNodeInsertBeforeIndex(parentTNode, tNodeIdx);
        }

        return tNode;
      }
      /**
       * Processes text node in i18n block.
       *
       * Text nodes can have:
       * - Create instruction in `createOpCodes` for creating the text node.
       * - Allocate spec for text node in i18n range of `LView`
       * - If contains binding:
       *    - bindings => allocate space in i18n range of `LView` to store the binding value.
       *    - populate `updateOpCodes` with update instructions.
       *
       * @param tView Current `TView`
       * @param rootTNode Root `TNode` of the i18n block. This node determines if the new TNode will
       *     be added as part of the `i18nStart` instruction or as part of the
       *     `TNode.insertBeforeIndex`.
       * @param existingTNodes internal state for `addTNodeAndUpdateInsertBeforeIndex`.
       * @param createOpCodes Location where the creation OpCodes will be stored.
       * @param lView Current `LView`
       * @param text The translated text (which may contain binding)
       */


      function i18nStartFirstCreatePassProcessTextNode(tView, rootTNode, existingTNodes, createOpCodes, updateOpCodes, lView, text) {
        var hasBinding = text.match(BINDING_REGEXP);
        var tNode = createTNodeAndAddOpCode(tView, rootTNode, existingTNodes, lView, createOpCodes, hasBinding ? null : text, false);

        if (hasBinding) {
          generateBindingUpdateOpCodes(updateOpCodes, text, tNode.index);
        }
      }
      /**
       * See `i18nAttributes` above.
       */


      function i18nAttributesFirstPass(tView, index, values) {
        var previousElement = getCurrentTNode();
        var previousElementIndex = previousElement.index;
        var updateOpCodes = [];

        if (ngDevMode) {
          attachDebugGetter(updateOpCodes, i18nUpdateOpCodesToString);
        }

        if (tView.firstCreatePass && tView.data[index] === null) {
          for (var i = 0; i < values.length; i += 2) {
            var attrName = values[i];
            var message = values[i + 1];

            if (message !== '') {
              // Check if attribute value contains an ICU and throw an error if that's the case.
              // ICUs in element attributes are not supported.
              // Note: we intentionally retain the error here by not using `ngDevMode`, because
              // the `value` can change based on the locale and users aren't guaranteed to hit
              // an invalid string while they're developing.
              if (ICU_REGEXP.test(message)) {
                throw new Error("ICU expressions are not supported in attributes. Message: \"".concat(message, "\"."));
              } // i18n attributes that hit this code path are guaranteed to have bindings, because
              // the compiler treats static i18n attributes as regular attribute bindings.


              generateBindingUpdateOpCodes(updateOpCodes, message, previousElementIndex, attrName);
            }
          }

          tView.data[index] = updateOpCodes;
        }
      }
      /**
       * Generate the OpCodes to update the bindings of a string.
       *
       * @param updateOpCodes Place where the update opcodes will be stored.
       * @param str The string containing the bindings.
       * @param destinationNode Index of the destination node which will receive the binding.
       * @param attrName Name of the attribute, if the string belongs to an attribute.
       * @param sanitizeFn Sanitization function used to sanitize the string after update, if necessary.
       */


      function generateBindingUpdateOpCodes(updateOpCodes, str, destinationNode, attrName) {
        var sanitizeFn = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null;
        ngDevMode && assertGreaterThanOrEqual(destinationNode, HEADER_OFFSET, 'Index must be in absolute LView offset');
        var maskIndex = updateOpCodes.length; // Location of mask

        var sizeIndex = maskIndex + 1; // location of size for skipping

        updateOpCodes.push(null, null); // Alloc space for mask and size

        var startIndex = maskIndex + 2; // location of first allocation.

        if (ngDevMode) {
          attachDebugGetter(updateOpCodes, i18nUpdateOpCodesToString);
        }

        var textParts = str.split(BINDING_REGEXP);
        var mask = 0;

        for (var j = 0; j < textParts.length; j++) {
          var textValue = textParts[j];

          if (j & 1) {
            // Odd indexes are bindings
            var bindingIndex = parseInt(textValue, 10);
            updateOpCodes.push(-1 - bindingIndex);
            mask = mask | toMaskBit(bindingIndex);
          } else if (textValue !== '') {
            // Even indexes are text
            updateOpCodes.push(textValue);
          }
        }

        updateOpCodes.push(destinationNode << 2
        /* SHIFT_REF */
        | (attrName ? 1
        /* Attr */
        : 0
        /* Text */
        ));

        if (attrName) {
          updateOpCodes.push(attrName, sanitizeFn);
        }

        updateOpCodes[maskIndex] = mask;
        updateOpCodes[sizeIndex] = updateOpCodes.length - startIndex;
        return mask;
      }
      /**
       * Convert binding index to mask bit.
       *
       * Each index represents a single bit on the bit-mask. Because bit-mask only has 32 bits, we make
       * the 32nd bit share all masks for all bindings higher than 32. Since it is extremely rare to
       * have more than 32 bindings this will be hit very rarely. The downside of hitting this corner
       * case is that we will execute binding code more often than necessary. (penalty of performance)
       */


      function toMaskBit(bindingIndex) {
        return 1 << Math.min(bindingIndex, 31);
      }

      function isRootTemplateMessage(subTemplateIndex) {
        return subTemplateIndex === -1;
      }
      /**
       * Removes everything inside the sub-templates of a message.
       */


      function removeInnerTemplateTranslation(message) {
        var match;
        var res = '';
        var index = 0;
        var inTemplate = false;
        var tagMatched;

        while ((match = SUBTEMPLATE_REGEXP.exec(message)) !== null) {
          if (!inTemplate) {
            res += message.substring(index, match.index + match[0].length);
            tagMatched = match[1];
            inTemplate = true;
          } else {
            if (match[0] === "".concat(MARKER, "/*").concat(tagMatched).concat(MARKER)) {
              index = match.index;
              inTemplate = false;
            }
          }
        }

        ngDevMode && assertEqual(inTemplate, false, "Tag mismatch: unable to find the end of the sub-template in the translation \"".concat(message, "\""));
        res += message.substr(index);
        return res;
      }
      /**
       * Extracts a part of a message and removes the rest.
       *
       * This method is used for extracting a part of the message associated with a template. A
       * translated message can span multiple templates.
       *
       * Example:
       * ```
       * <div i18n>Translate <span *ngIf>me</span>!</div>
       * ```
       *
       * @param message The message to crop
       * @param subTemplateIndex Index of the sub-template to extract. If undefined it returns the
       * external template and removes all sub-templates.
       */


      function getTranslationForTemplate(message, subTemplateIndex) {
        if (isRootTemplateMessage(subTemplateIndex)) {
          // We want the root template message, ignore all sub-templates
          return removeInnerTemplateTranslation(message);
        } else {
          // We want a specific sub-template
          var _start14 = message.indexOf(":".concat(subTemplateIndex).concat(MARKER)) + 2 + subTemplateIndex.toString().length;

          var end = message.search(new RegExp("".concat(MARKER, "\\/\\*\\d+:").concat(subTemplateIndex).concat(MARKER)));
          return removeInnerTemplateTranslation(message.substring(_start14, end));
        }
      }
      /**
       * Generate the OpCodes for ICU expressions.
       *
       * @param icuExpression
       * @param index Index where the anchor is stored and an optional `TIcuContainerNode`
       *   - `lView[anchorIdx]` points to a `Comment` node representing the anchor for the ICU.
       *   - `tView.data[anchorIdx]` points to the `TIcuContainerNode` if ICU is root (`null` otherwise)
       */


      function icuStart(tView, lView, updateOpCodes, parentIdx, icuExpression, anchorIdx) {
        ngDevMode && assertDefined(icuExpression, 'ICU expression must be defined');
        var bindingMask = 0;
        var tIcu = {
          type: icuExpression.type,
          currentCaseLViewIndex: allocExpando(tView, lView, 1, null),
          anchorIdx: anchorIdx,
          cases: [],
          create: [],
          remove: [],
          update: []
        };
        addUpdateIcuSwitch(updateOpCodes, icuExpression, anchorIdx);
        setTIcu(tView, anchorIdx, tIcu);
        var values = icuExpression.values;

        for (var i = 0; i < values.length; i++) {
          // Each value is an array of strings & other ICU expressions
          var valueArr = values[i];
          var nestedIcus = [];

          for (var j = 0; j < valueArr.length; j++) {
            var value = valueArr[j];

            if (typeof value !== 'string') {
              // It is an nested ICU expression
              var icuIndex = nestedIcus.push(value) - 1; // Replace nested ICU expression by a comment node

              valueArr[j] = "<!--\uFFFD".concat(icuIndex, "\uFFFD-->");
            }
          }

          bindingMask = parseIcuCase(tView, tIcu, lView, updateOpCodes, parentIdx, icuExpression.cases[i], valueArr.join(''), nestedIcus) | bindingMask;
        }

        if (bindingMask) {
          addUpdateIcuUpdate(updateOpCodes, bindingMask, anchorIdx);
        }
      }
      /**
       * Parses text containing an ICU expression and produces a JSON object for it.
       * Original code from closure library, modified for Angular.
       *
       * @param pattern Text containing an ICU expression that needs to be parsed.
       *
       */


      function parseICUBlock(pattern) {
        var cases = [];
        var values = [];
        var icuType = 1
        /* plural */
        ;
        var mainBinding = 0;
        pattern = pattern.replace(ICU_BLOCK_REGEXP, function (str, binding, type) {
          if (type === 'select') {
            icuType = 0
            /* select */
            ;
          } else {
            icuType = 1
            /* plural */
            ;
          }

          mainBinding = parseInt(binding.substr(1), 10);
          return '';
        });
        var parts = i18nParseTextIntoPartsAndICU(pattern); // Looking for (key block)+ sequence. One of the keys has to be "other".

        for (var pos = 0; pos < parts.length;) {
          var key = parts[pos++].trim();

          if (icuType === 1
          /* plural */
          ) {
            // Key can be "=x", we just want "x"
            key = key.replace(/\s*(?:=)?(\w+)\s*/, '$1');
          }

          if (key.length) {
            cases.push(key);
          }

          var blocks = i18nParseTextIntoPartsAndICU(parts[pos++]);

          if (cases.length > values.length) {
            values.push(blocks);
          }
        } // TODO(ocombe): support ICU expressions in attributes, see #21615


        return {
          type: icuType,
          mainBinding: mainBinding,
          cases: cases,
          values: values
        };
      }
      /**
       * Breaks pattern into strings and top level {...} blocks.
       * Can be used to break a message into text and ICU expressions, or to break an ICU expression
       * into keys and cases. Original code from closure library, modified for Angular.
       *
       * @param pattern (sub)Pattern to be broken.
       * @returns An `Array<string|IcuExpression>` where:
       *   - odd positions: `string` => text between ICU expressions
       *   - even positions: `ICUExpression` => ICU expression parsed into `ICUExpression` record.
       */


      function i18nParseTextIntoPartsAndICU(pattern) {
        if (!pattern) {
          return [];
        }

        var prevPos = 0;
        var braceStack = [];
        var results = [];
        var braces = /[{}]/g; // lastIndex doesn't get set to 0 so we have to.

        braces.lastIndex = 0;
        var match;

        while (match = braces.exec(pattern)) {
          var pos = match.index;

          if (match[0] == '}') {
            braceStack.pop();

            if (braceStack.length == 0) {
              // End of the block.
              var block = pattern.substring(prevPos, pos);

              if (ICU_BLOCK_REGEXP.test(block)) {
                results.push(parseICUBlock(block));
              } else {
                results.push(block);
              }

              prevPos = pos + 1;
            }
          } else {
            if (braceStack.length == 0) {
              var _substring = pattern.substring(prevPos, pos);

              results.push(_substring);
              prevPos = pos + 1;
            }

            braceStack.push('{');
          }
        }

        var substring = pattern.substring(prevPos);
        results.push(substring);
        return results;
      }
      /**
       * Parses a node, its children and its siblings, and generates the mutate & update OpCodes.
       *
       */


      function parseIcuCase(tView, tIcu, lView, updateOpCodes, parentIdx, caseName, unsafeCaseHtml, nestedIcus) {
        var create = [];
        var remove = [];
        var update = [];

        if (ngDevMode) {
          attachDebugGetter(create, icuCreateOpCodesToString);
          attachDebugGetter(remove, i18nRemoveOpCodesToString);
          attachDebugGetter(update, i18nUpdateOpCodesToString);
        }

        tIcu.cases.push(caseName);
        tIcu.create.push(create);
        tIcu.remove.push(remove);
        tIcu.update.push(update);
        var inertBodyHelper = getInertBodyHelper(getDocument());
        var inertBodyElement = inertBodyHelper.getInertBodyElement(unsafeCaseHtml);
        ngDevMode && assertDefined(inertBodyElement, 'Unable to generate inert body element');
        var inertRootNode = getTemplateContent(inertBodyElement) || inertBodyElement;

        if (inertRootNode) {
          return walkIcuTree(tView, tIcu, lView, updateOpCodes, create, remove, update, inertRootNode, parentIdx, nestedIcus, 0);
        } else {
          return 0;
        }
      }

      function walkIcuTree(tView, tIcu, lView, sharedUpdateOpCodes, create, remove, update, parentNode, parentIdx, nestedIcus, depth) {
        var bindingMask = 0;
        var currentNode = parentNode.firstChild;

        while (currentNode) {
          var newIndex = allocExpando(tView, lView, 1, null);

          switch (currentNode.nodeType) {
            case Node.ELEMENT_NODE:
              var element = currentNode;
              var tagName = element.tagName.toLowerCase();

              if (VALID_ELEMENTS.hasOwnProperty(tagName)) {
                addCreateNodeAndAppend(create, ELEMENT_MARKER, tagName, parentIdx, newIndex);
                tView.data[newIndex] = tagName;
                var elAttrs = element.attributes;

                for (var i = 0; i < elAttrs.length; i++) {
                  var attr = elAttrs.item(i);
                  var lowerAttrName = attr.name.toLowerCase();

                  var _hasBinding = !!attr.value.match(BINDING_REGEXP); // we assume the input string is safe, unless it's using a binding


                  if (_hasBinding) {
                    if (VALID_ATTRS.hasOwnProperty(lowerAttrName)) {
                      if (URI_ATTRS[lowerAttrName]) {
                        generateBindingUpdateOpCodes(update, attr.value, newIndex, attr.name, _sanitizeUrl);
                      } else if (SRCSET_ATTRS[lowerAttrName]) {
                        generateBindingUpdateOpCodes(update, attr.value, newIndex, attr.name, sanitizeSrcset);
                      } else {
                        generateBindingUpdateOpCodes(update, attr.value, newIndex, attr.name);
                      }
                    } else {
                      ngDevMode && console.warn("WARNING: ignoring unsafe attribute value " + "".concat(lowerAttrName, " on element ").concat(tagName, " (see http://g.co/ng/security#xss)"));
                    }
                  } else {
                    addCreateAttribute(create, newIndex, attr);
                  }
                } // Parse the children of this node (if any)


                bindingMask = walkIcuTree(tView, tIcu, lView, sharedUpdateOpCodes, create, remove, update, currentNode, newIndex, nestedIcus, depth + 1) | bindingMask;
                addRemoveNode(remove, newIndex, depth);
              }

              break;

            case Node.TEXT_NODE:
              var value = currentNode.textContent || '';
              var hasBinding = value.match(BINDING_REGEXP);
              addCreateNodeAndAppend(create, null, hasBinding ? '' : value, parentIdx, newIndex);
              addRemoveNode(remove, newIndex, depth);

              if (hasBinding) {
                bindingMask = generateBindingUpdateOpCodes(update, value, newIndex) | bindingMask;
              }

              break;

            case Node.COMMENT_NODE:
              // Check if the comment node is a placeholder for a nested ICU
              var isNestedIcu = NESTED_ICU.exec(currentNode.textContent || '');

              if (isNestedIcu) {
                var nestedIcuIndex = parseInt(isNestedIcu[1], 10);
                var icuExpression = nestedIcus[nestedIcuIndex]; // Create the comment node that will anchor the ICU expression

                addCreateNodeAndAppend(create, ICU_MARKER, ngDevMode ? "nested ICU ".concat(nestedIcuIndex) : '', parentIdx, newIndex);
                icuStart(tView, lView, sharedUpdateOpCodes, parentIdx, icuExpression, newIndex);
                addRemoveNestedIcu(remove, newIndex, depth);
              }

              break;
          }

          currentNode = currentNode.nextSibling;
        }

        return bindingMask;
      }

      function addRemoveNode(remove, index, depth) {
        if (depth === 0) {
          remove.push(index);
        }
      }

      function addRemoveNestedIcu(remove, index, depth) {
        if (depth === 0) {
          remove.push(~index); // remove ICU at `index`

          remove.push(index); // remove ICU comment at `index`
        }
      }

      function addUpdateIcuSwitch(update, icuExpression, index) {
        update.push(toMaskBit(icuExpression.mainBinding), 2, -1 - icuExpression.mainBinding, index << 2
        /* SHIFT_REF */
        | 2
        /* IcuSwitch */
        );
      }

      function addUpdateIcuUpdate(update, bindingMask, index) {
        update.push(bindingMask, 1, index << 2
        /* SHIFT_REF */
        | 3
        /* IcuUpdate */
        );
      }

      function addCreateNodeAndAppend(create, marker, text, appendToParentIdx, createAtIdx) {
        if (marker !== null) {
          create.push(marker);
        }

        create.push(text, createAtIdx, icuCreateOpCode(0
        /* AppendChild */
        , appendToParentIdx, createAtIdx));
      }

      function addCreateAttribute(create, newIndex, attr) {
        create.push(newIndex << 1
        /* SHIFT_REF */
        | 1
        /* Attr */
        , attr.name, attr.value);
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */
      // i18nPostprocess consts


      var ROOT_TEMPLATE_ID = 0;
      var PP_MULTI_VALUE_PLACEHOLDERS_REGEXP = /\[(�.+?�?)\]/;
      var PP_PLACEHOLDERS_REGEXP = /\[(�.+?�?)\]|(�\/?\*\d+:\d+�)/g;
      var PP_ICU_VARS_REGEXP = /({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g;
      var PP_ICU_PLACEHOLDERS_REGEXP = /{([A-Z0-9_]+)}/g;
      var PP_ICUS_REGEXP = /�I18N_EXP_(ICU(_\d+)?)�/g;
      var PP_CLOSE_TEMPLATE_REGEXP = /\/\*/;
      var PP_TEMPLATE_ID_REGEXP = /\d+\:(\d+)/;
      /**
       * Handles message string post-processing for internationalization.
       *
       * Handles message string post-processing by transforming it from intermediate
       * format (that might contain some markers that we need to replace) to the final
       * form, consumable by i18nStart instruction. Post processing steps include:
       *
       * 1. Resolve all multi-value cases (like [�*1:1��#2:1�|�#4:1�|�5�])
       * 2. Replace all ICU vars (like "VAR_PLURAL")
       * 3. Replace all placeholders used inside ICUs in a form of {PLACEHOLDER}
       * 4. Replace all ICU references with corresponding values (like �ICU_EXP_ICU_1�)
       *    in case multiple ICUs have the same placeholder name
       *
       * @param message Raw translation string for post processing
       * @param replacements Set of replacements that should be applied
       *
       * @returns Transformed string that can be consumed by i18nStart instruction
       *
       * @codeGenApi
       */

      function i18nPostprocess(message) {
        var replacements = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};

        /**
         * Step 1: resolve all multi-value placeholders like [�#5�|�*1:1��#2:1�|�#4:1�]
         *
         * Note: due to the way we process nested templates (BFS), multi-value placeholders are typically
         * grouped by templates, for example: [�#5�|�#6�|�#1:1�|�#3:2�] where �#5� and �#6� belong to root
         * template, �#1:1� belong to nested template with index 1 and �#1:2� - nested template with index
         * 3. However in real templates the order might be different: i.e. �#1:1� and/or �#3:2� may go in
         * front of �#6�. The post processing step restores the right order by keeping track of the
         * template id stack and looks for placeholders that belong to the currently active template.
         */
        var result = message;

        if (PP_MULTI_VALUE_PLACEHOLDERS_REGEXP.test(message)) {
          var matches = {};
          var templateIdsStack = [ROOT_TEMPLATE_ID];
          result = result.replace(PP_PLACEHOLDERS_REGEXP, function (m, phs, tmpl) {
            var content = phs || tmpl;
            var placeholders = matches[content] || [];

            if (!placeholders.length) {
              content.split('|').forEach(function (placeholder) {
                var match = placeholder.match(PP_TEMPLATE_ID_REGEXP);
                var templateId = match ? parseInt(match[1], 10) : ROOT_TEMPLATE_ID;
                var isCloseTemplateTag = PP_CLOSE_TEMPLATE_REGEXP.test(placeholder);
                placeholders.push([templateId, isCloseTemplateTag, placeholder]);
              });
              matches[content] = placeholders;
            }

            if (!placeholders.length) {
              throw new Error("i18n postprocess: unmatched placeholder - ".concat(content));
            }

            var currentTemplateId = templateIdsStack[templateIdsStack.length - 1];
            var idx = 0; // find placeholder index that matches current template id

            for (var i = 0; i < placeholders.length; i++) {
              if (placeholders[i][0] === currentTemplateId) {
                idx = i;
                break;
              }
            } // update template id stack based on the current tag extracted


            var _placeholders$idx = _slicedToArray(placeholders[idx], 3),
                templateId = _placeholders$idx[0],
                isCloseTemplateTag = _placeholders$idx[1],
                placeholder = _placeholders$idx[2];

            if (isCloseTemplateTag) {
              templateIdsStack.pop();
            } else if (currentTemplateId !== templateId) {
              templateIdsStack.push(templateId);
            } // remove processed tag from the list


            placeholders.splice(idx, 1);
            return placeholder;
          });
        } // return current result if no replacements specified


        if (!Object.keys(replacements).length) {
          return result;
        }
        /**
         * Step 2: replace all ICU vars (like "VAR_PLURAL")
         */


        result = result.replace(PP_ICU_VARS_REGEXP, function (match, start, key, _type, _idx, end) {
          return replacements.hasOwnProperty(key) ? "".concat(start).concat(replacements[key]).concat(end) : match;
        });
        /**
         * Step 3: replace all placeholders used inside ICUs in a form of {PLACEHOLDER}
         */

        result = result.replace(PP_ICU_PLACEHOLDERS_REGEXP, function (match, key) {
          return replacements.hasOwnProperty(key) ? replacements[key] : match;
        });
        /**
         * Step 4: replace all ICU references with corresponding values (like �ICU_EXP_ICU_1�) in case
         * multiple ICUs have the same placeholder name
         */

        result = result.replace(PP_ICUS_REGEXP, function (match, key) {
          if (replacements.hasOwnProperty(key)) {
            var list = replacements[key];

            if (!list.length) {
              throw new Error("i18n postprocess: unmatched ICU - ".concat(match, " with key: ").concat(key));
            }

            return list.shift();
          }

          return match;
        });
        return result;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Marks a block of text as translatable.
       *
       * The instructions `i18nStart` and `i18nEnd` mark the translation block in the template.
       * The translation `message` is the value which is locale specific. The translation string may
       * contain placeholders which associate inner elements and sub-templates within the translation.
       *
       * The translation `message` placeholders are:
       * - `�{index}(:{block})�`: *Binding Placeholder*: Marks a location where an expression will be
       *   interpolated into. The placeholder `index` points to the expression binding index. An optional
       *   `block` that matches the sub-template in which it was declared.
       * - `�#{index}(:{block})�`/`�/#{index}(:{block})�`: *Element Placeholder*:  Marks the beginning
       *   and end of DOM element that were embedded in the original translation block. The placeholder
       *   `index` points to the element index in the template instructions set. An optional `block` that
       *   matches the sub-template in which it was declared.
       * - `�*{index}:{block}�`/`�/*{index}:{block}�`: *Sub-template Placeholder*: Sub-templates must be
       *   split up and translated separately in each angular template function. The `index` points to the
       *   `template` instruction index. A `block` that matches the sub-template in which it was declared.
       *
       * @param index A unique index of the translation in the static block.
       * @param messageIndex An index of the translation message from the `def.consts` array.
       * @param subTemplateIndex Optional sub-template index in the `message`.
       *
       * @codeGenApi
       */


      function ɵɵi18nStart(index, messageIndex) {
        var subTemplateIndex = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : -1;
        var tView = getTView();
        var lView = getLView();
        var adjustedIndex = HEADER_OFFSET + index;
        ngDevMode && assertDefined(tView, "tView should be defined");
        var message = getConstant(tView.consts, messageIndex);
        var parentTNode = getCurrentParentTNode();

        if (tView.firstCreatePass) {
          i18nStartFirstCreatePass(tView, parentTNode === null ? 0 : parentTNode.index, lView, adjustedIndex, message, subTemplateIndex);
        }

        var tI18n = tView.data[adjustedIndex];
        var sameViewParentTNode = parentTNode === lView[T_HOST] ? null : parentTNode;
        var parentRNode = getClosestRElement(tView, sameViewParentTNode, lView); // If `parentTNode` is an `ElementContainer` than it has `<!--ng-container--->`.
        // When we do inserts we have to make sure to insert in front of `<!--ng-container--->`.

        var insertInFrontOf = parentTNode && parentTNode.type & 8
        /* ElementContainer */
        ? lView[parentTNode.index] : null;
        applyCreateOpCodes(lView, tI18n.create, parentRNode, insertInFrontOf);
        setInI18nBlock(true);
      }
      /**
       * Translates a translation block marked by `i18nStart` and `i18nEnd`. It inserts the text/ICU nodes
       * into the render tree, moves the placeholder nodes and removes the deleted nodes.
       *
       * @codeGenApi
       */


      function ɵɵi18nEnd() {
        setInI18nBlock(false);
      }
      /**
       *
       * Use this instruction to create a translation block that doesn't contain any placeholder.
       * It calls both {@link i18nStart} and {@link i18nEnd} in one instruction.
       *
       * The translation `message` is the value which is locale specific. The translation string may
       * contain placeholders which associate inner elements and sub-templates within the translation.
       *
       * The translation `message` placeholders are:
       * - `�{index}(:{block})�`: *Binding Placeholder*: Marks a location where an expression will be
       *   interpolated into. The placeholder `index` points to the expression binding index. An optional
       *   `block` that matches the sub-template in which it was declared.
       * - `�#{index}(:{block})�`/`�/#{index}(:{block})�`: *Element Placeholder*:  Marks the beginning
       *   and end of DOM element that were embedded in the original translation block. The placeholder
       *   `index` points to the element index in the template instructions set. An optional `block` that
       *   matches the sub-template in which it was declared.
       * - `�*{index}:{block}�`/`�/*{index}:{block}�`: *Sub-template Placeholder*: Sub-templates must be
       *   split up and translated separately in each angular template function. The `index` points to the
       *   `template` instruction index. A `block` that matches the sub-template in which it was declared.
       *
       * @param index A unique index of the translation in the static block.
       * @param messageIndex An index of the translation message from the `def.consts` array.
       * @param subTemplateIndex Optional sub-template index in the `message`.
       *
       * @codeGenApi
       */


      function ɵɵi18n(index, messageIndex, subTemplateIndex) {
        ɵɵi18nStart(index, messageIndex, subTemplateIndex);
        ɵɵi18nEnd();
      }
      /**
       * Marks a list of attributes as translatable.
       *
       * @param index A unique index in the static block
       * @param values
       *
       * @codeGenApi
       */


      function ɵɵi18nAttributes(index, attrsIndex) {
        var tView = getTView();
        ngDevMode && assertDefined(tView, "tView should be defined");
        var attrs = getConstant(tView.consts, attrsIndex);
        i18nAttributesFirstPass(tView, index + HEADER_OFFSET, attrs);
      }
      /**
       * Stores the values of the bindings during each update cycle in order to determine if we need to
       * update the translated nodes.
       *
       * @param value The binding's value
       * @returns This function returns itself so that it may be chained
       * (e.g. `i18nExp(ctx.name)(ctx.title)`)
       *
       * @codeGenApi
       */


      function ɵɵi18nExp(value) {
        var lView = getLView();
        setMaskBit(bindingUpdated(lView, nextBindingIndex(), value));
        return ɵɵi18nExp;
      }
      /**
       * Updates a translation block or an i18n attribute when the bindings have changed.
       *
       * @param index Index of either {@link i18nStart} (translation block) or {@link i18nAttributes}
       * (i18n attribute) on which it should update the content.
       *
       * @codeGenApi
       */


      function ɵɵi18nApply(index) {
        applyI18n(getTView(), getLView(), index + HEADER_OFFSET);
      }
      /**
       * Handles message string post-processing for internationalization.
       *
       * Handles message string post-processing by transforming it from intermediate
       * format (that might contain some markers that we need to replace) to the final
       * form, consumable by i18nStart instruction. Post processing steps include:
       *
       * 1. Resolve all multi-value cases (like [�*1:1��#2:1�|�#4:1�|�5�])
       * 2. Replace all ICU vars (like "VAR_PLURAL")
       * 3. Replace all placeholders used inside ICUs in a form of {PLACEHOLDER}
       * 4. Replace all ICU references with corresponding values (like �ICU_EXP_ICU_1�)
       *    in case multiple ICUs have the same placeholder name
       *
       * @param message Raw translation string for post processing
       * @param replacements Set of replacements that should be applied
       *
       * @returns Transformed string that can be consumed by i18nStart instruction
       *
       * @codeGenApi
       */


      function ɵɵi18nPostprocess(message) {
        var replacements = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
        return i18nPostprocess(message, replacements);
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Resolves the providers which are defined in the DirectiveDef.
       *
       * When inserting the tokens and the factories in their respective arrays, we can assume that
       * this method is called first for the component (if any), and then for other directives on the same
       * node.
       * As a consequence,the providers are always processed in that order:
       * 1) The view providers of the component
       * 2) The providers of the component
       * 3) The providers of the other directives
       * This matches the structure of the injectables arrays of a view (for each node).
       * So the tokens and the factories can be pushed at the end of the arrays, except
       * in one case for multi providers.
       *
       * @param def the directive definition
       * @param providers: Array of `providers`.
       * @param viewProviders: Array of `viewProviders`.
       */


      function providersResolver(def, providers, viewProviders) {
        var tView = getTView();

        if (tView.firstCreatePass) {
          var isComponent = isComponentDef(def); // The list of view providers is processed first, and the flags are updated

          resolveProvider$1(viewProviders, tView.data, tView.blueprint, isComponent, true); // Then, the list of providers is processed, and the flags are updated

          resolveProvider$1(providers, tView.data, tView.blueprint, isComponent, false);
        }
      }
      /**
       * Resolves a provider and publishes it to the DI system.
       */


      function resolveProvider$1(provider, tInjectables, lInjectablesBlueprint, isComponent, isViewProvider) {
        provider = resolveForwardRef(provider);

        if (Array.isArray(provider)) {
          // Recursively call `resolveProvider`
          // Recursion is OK in this case because this code will not be in hot-path once we implement
          // cloning of the initial state.
          for (var i = 0; i < provider.length; i++) {
            resolveProvider$1(provider[i], tInjectables, lInjectablesBlueprint, isComponent, isViewProvider);
          }
        } else {
          var tView = getTView();
          var lView = getLView();
          var token = isTypeProvider(provider) ? provider : resolveForwardRef(provider.provide);
          var providerFactory = providerToFactory(provider);
          var tNode = getCurrentTNode();
          var beginIndex = tNode.providerIndexes & 1048575
          /* ProvidersStartIndexMask */
          ;
          var endIndex = tNode.directiveStart;
          var cptViewProvidersCount = tNode.providerIndexes >> 20
          /* CptViewProvidersCountShift */
          ;

          if (isTypeProvider(provider) || !provider.multi) {
            // Single provider case: the factory is created and pushed immediately
            var factory = new NodeInjectorFactory(providerFactory, isViewProvider, ɵɵdirectiveInject);
            var existingFactoryIndex = indexOf(token, tInjectables, isViewProvider ? beginIndex : beginIndex + cptViewProvidersCount, endIndex);

            if (existingFactoryIndex === -1) {
              diPublicInInjector(getOrCreateNodeInjectorForNode(tNode, lView), tView, token);
              registerDestroyHooksIfSupported(tView, provider, tInjectables.length);
              tInjectables.push(token);
              tNode.directiveStart++;
              tNode.directiveEnd++;

              if (isViewProvider) {
                tNode.providerIndexes += 1048576
                /* CptViewProvidersCountShifter */
                ;
              }

              lInjectablesBlueprint.push(factory);
              lView.push(factory);
            } else {
              lInjectablesBlueprint[existingFactoryIndex] = factory;
              lView[existingFactoryIndex] = factory;
            }
          } else {
            // Multi provider case:
            // We create a multi factory which is going to aggregate all the values.
            // Since the output of such a factory depends on content or view injection,
            // we create two of them, which are linked together.
            //
            // The first one (for view providers) is always in the first block of the injectables array,
            // and the second one (for providers) is always in the second block.
            // This is important because view providers have higher priority. When a multi token
            // is being looked up, the view providers should be found first.
            // Note that it is not possible to have a multi factory in the third block (directive block).
            //
            // The algorithm to process multi providers is as follows:
            // 1) If the multi provider comes from the `viewProviders` of the component:
            //   a) If the special view providers factory doesn't exist, it is created and pushed.
            //   b) Else, the multi provider is added to the existing multi factory.
            // 2) If the multi provider comes from the `providers` of the component or of another
            // directive:
            //   a) If the multi factory doesn't exist, it is created and provider pushed into it.
            //      It is also linked to the multi factory for view providers, if it exists.
            //   b) Else, the multi provider is added to the existing multi factory.
            var existingProvidersFactoryIndex = indexOf(token, tInjectables, beginIndex + cptViewProvidersCount, endIndex);
            var existingViewProvidersFactoryIndex = indexOf(token, tInjectables, beginIndex, beginIndex + cptViewProvidersCount);
            var doesProvidersFactoryExist = existingProvidersFactoryIndex >= 0 && lInjectablesBlueprint[existingProvidersFactoryIndex];
            var doesViewProvidersFactoryExist = existingViewProvidersFactoryIndex >= 0 && lInjectablesBlueprint[existingViewProvidersFactoryIndex];

            if (isViewProvider && !doesViewProvidersFactoryExist || !isViewProvider && !doesProvidersFactoryExist) {
              // Cases 1.a and 2.a
              diPublicInInjector(getOrCreateNodeInjectorForNode(tNode, lView), tView, token);

              var _factory2 = multiFactory(isViewProvider ? multiViewProvidersFactoryResolver : multiProvidersFactoryResolver, lInjectablesBlueprint.length, isViewProvider, isComponent, providerFactory);

              if (!isViewProvider && doesViewProvidersFactoryExist) {
                lInjectablesBlueprint[existingViewProvidersFactoryIndex].providerFactory = _factory2;
              }

              registerDestroyHooksIfSupported(tView, provider, tInjectables.length, 0);
              tInjectables.push(token);
              tNode.directiveStart++;
              tNode.directiveEnd++;

              if (isViewProvider) {
                tNode.providerIndexes += 1048576
                /* CptViewProvidersCountShifter */
                ;
              }

              lInjectablesBlueprint.push(_factory2);
              lView.push(_factory2);
            } else {
              // Cases 1.b and 2.b
              var indexInFactory = multiFactoryAdd(lInjectablesBlueprint[isViewProvider ? existingViewProvidersFactoryIndex : existingProvidersFactoryIndex], providerFactory, !isViewProvider && isComponent);
              registerDestroyHooksIfSupported(tView, provider, existingProvidersFactoryIndex > -1 ? existingProvidersFactoryIndex : existingViewProvidersFactoryIndex, indexInFactory);
            }

            if (!isViewProvider && isComponent && doesViewProvidersFactoryExist) {
              lInjectablesBlueprint[existingViewProvidersFactoryIndex].componentProviders++;
            }
          }
        }
      }
      /**
       * Registers the `ngOnDestroy` hook of a provider, if the provider supports destroy hooks.
       * @param tView `TView` in which to register the hook.
       * @param provider Provider whose hook should be registered.
       * @param contextIndex Index under which to find the context for the hook when it's being invoked.
       * @param indexInFactory Only required for `multi` providers. Index of the provider in the multi
       * provider factory.
       */


      function registerDestroyHooksIfSupported(tView, provider, contextIndex, indexInFactory) {
        var providerIsTypeProvider = isTypeProvider(provider);

        if (providerIsTypeProvider || isClassProvider(provider)) {
          var prototype = (provider.useClass || provider).prototype;
          var ngOnDestroy = prototype.ngOnDestroy;

          if (ngOnDestroy) {
            var hooks = tView.destroyHooks || (tView.destroyHooks = []);

            if (!providerIsTypeProvider && provider.multi) {
              ngDevMode && assertDefined(indexInFactory, 'indexInFactory when registering multi factory destroy hook');
              var existingCallbacksIndex = hooks.indexOf(contextIndex);

              if (existingCallbacksIndex === -1) {
                hooks.push(contextIndex, [indexInFactory, ngOnDestroy]);
              } else {
                hooks[existingCallbacksIndex + 1].push(indexInFactory, ngOnDestroy);
              }
            } else {
              hooks.push(contextIndex, ngOnDestroy);
            }
          }
        }
      }
      /**
       * Add a factory in a multi factory.
       * @returns Index at which the factory was inserted.
       */


      function multiFactoryAdd(multiFactory, factory, isComponentProvider) {
        if (isComponentProvider) {
          multiFactory.componentProviders++;
        }

        return multiFactory.multi.push(factory) - 1;
      }
      /**
       * Returns the index of item in the array, but only in the begin to end range.
       */


      function indexOf(item, arr, begin, end) {
        for (var i = begin; i < end; i++) {
          if (arr[i] === item) return i;
        }

        return -1;
      }
      /**
       * Use this with `multi` `providers`.
       */


      function multiProvidersFactoryResolver(_, tData, lData, tNode) {
        return multiResolve(this.multi, []);
      }
      /**
       * Use this with `multi` `viewProviders`.
       *
       * This factory knows how to concatenate itself with the existing `multi` `providers`.
       */


      function multiViewProvidersFactoryResolver(_, tData, lView, tNode) {
        var factories = this.multi;
        var result;

        if (this.providerFactory) {
          var componentCount = this.providerFactory.componentProviders;
          var multiProviders = getNodeInjectable(lView, lView[TVIEW], this.providerFactory.index, tNode); // Copy the section of the array which contains `multi` `providers` from the component

          result = multiProviders.slice(0, componentCount); // Insert the `viewProvider` instances.

          multiResolve(factories, result); // Copy the section of the array which contains `multi` `providers` from other directives

          for (var i = componentCount; i < multiProviders.length; i++) {
            result.push(multiProviders[i]);
          }
        } else {
          result = []; // Insert the `viewProvider` instances.

          multiResolve(factories, result);
        }

        return result;
      }
      /**
       * Maps an array of factories into an array of values.
       */


      function multiResolve(factories, result) {
        for (var i = 0; i < factories.length; i++) {
          var factory = factories[i];
          result.push(factory());
        }

        return result;
      }
      /**
       * Creates a multi factory.
       */


      function multiFactory(factoryFn, index, isViewProvider, isComponent, f) {
        var factory = new NodeInjectorFactory(factoryFn, isViewProvider, ɵɵdirectiveInject);
        factory.multi = [];
        factory.index = index;
        factory.componentProviders = 0;
        multiFactoryAdd(factory, f, isComponent && !isViewProvider);
        return factory;
      }
      /**
       * This feature resolves the providers of a directive (or component),
       * and publish them into the DI system, making it visible to others for injection.
       *
       * For example:
       * ```ts
       * class ComponentWithProviders {
       *   constructor(private greeter: GreeterDE) {}
       *
       *   static ɵcmp = defineComponent({
       *     type: ComponentWithProviders,
       *     selectors: [['component-with-providers']],
       *    factory: () => new ComponentWithProviders(directiveInject(GreeterDE as any)),
       *    decls: 1,
       *    vars: 1,
       *    template: function(fs: RenderFlags, ctx: ComponentWithProviders) {
       *      if (fs & RenderFlags.Create) {
       *        ɵɵtext(0);
       *      }
       *      if (fs & RenderFlags.Update) {
       *        ɵɵtextInterpolate(ctx.greeter.greet());
       *      }
       *    },
       *    features: [ɵɵProvidersFeature([GreeterDE])]
       *  });
       * }
       * ```
       *
       * @param definition
       *
       * @codeGenApi
       */


      function ɵɵProvidersFeature(providers) {
        var viewProviders = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
        return function (definition) {
          definition.providersResolver = function (def, processProvidersFn) {
            return providersResolver(def, //
            processProvidersFn ? processProvidersFn(providers) : providers, //
            viewProviders);
          };
        };
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Represents a component created by a `ComponentFactory`.
       * Provides access to the component instance and related objects,
       * and provides the means of destroying the instance.
       *
       * @publicApi
       */


      var ComponentRef = function ComponentRef() {
        _classCallCheck2(this, ComponentRef);
      };
      /**
       * Base class for a factory that can create a component dynamically.
       * Instantiate a factory for a given type of component with `resolveComponentFactory()`.
       * Use the resulting `ComponentFactory.create()` method to create a component of that type.
       *
       * @see [Dynamic Components](guide/dynamic-component-loader)
       *
       * @publicApi
       */


      var ComponentFactory = function ComponentFactory() {
        _classCallCheck2(this, ComponentFactory);
      };
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function noComponentFactoryError(component) {
        var error = Error("No component factory found for ".concat(stringify(component), ". Did you add it to @NgModule.entryComponents?"));
        error[ERROR_COMPONENT] = component;
        return error;
      }

      var ERROR_COMPONENT = 'ngComponent';

      function getComponent$1(error) {
        return error[ERROR_COMPONENT];
      }

      var _NullComponentFactoryResolver = /*#__PURE__*/function () {
        function _NullComponentFactoryResolver() {
          _classCallCheck2(this, _NullComponentFactoryResolver);
        }

        _createClass2(_NullComponentFactoryResolver, [{
          key: "resolveComponentFactory",
          value: function resolveComponentFactory(component) {
            throw noComponentFactoryError(component);
          }
        }]);

        return _NullComponentFactoryResolver;
      }();
      /**
       * A simple registry that maps `Components` to generated `ComponentFactory` classes
       * that can be used to create instances of components.
       * Use to obtain the factory for a given component type,
       * then use the factory's `create()` method to create a component of that type.
       *
       * @see [Dynamic Components](guide/dynamic-component-loader)
       * @publicApi
       */


      var ComponentFactoryResolver = function ComponentFactoryResolver() {
        _classCallCheck2(this, ComponentFactoryResolver);
      };

      ComponentFactoryResolver.NULL = new _NullComponentFactoryResolver();

      var CodegenComponentFactoryResolver = /*#__PURE__*/function () {
        function CodegenComponentFactoryResolver(factories, _parent, _ngModule) {
          _classCallCheck2(this, CodegenComponentFactoryResolver);

          this._parent = _parent;
          this._ngModule = _ngModule;
          this._factories = new Map();

          for (var i = 0; i < factories.length; i++) {
            var factory = factories[i];

            this._factories.set(factory.componentType, factory);
          }
        }

        _createClass2(CodegenComponentFactoryResolver, [{
          key: "resolveComponentFactory",
          value: function resolveComponentFactory(component) {
            var factory = this._factories.get(component);

            if (!factory && this._parent) {
              factory = this._parent.resolveComponentFactory(component);
            }

            if (!factory) {
              throw noComponentFactoryError(component);
            }

            return new ComponentFactoryBoundToModule(factory, this._ngModule);
          }
        }]);

        return CodegenComponentFactoryResolver;
      }();

      var ComponentFactoryBoundToModule = /*#__PURE__*/function (_ComponentFactory) {
        _inherits2(ComponentFactoryBoundToModule, _ComponentFactory);

        var _super156 = _createSuper2(ComponentFactoryBoundToModule);

        function ComponentFactoryBoundToModule(factory, ngModule) {
          var _this409;

          _classCallCheck2(this, ComponentFactoryBoundToModule);

          _this409 = _super156.call(this);
          _this409.factory = factory;
          _this409.ngModule = ngModule;
          _this409.selector = factory.selector;
          _this409.componentType = factory.componentType;
          _this409.ngContentSelectors = factory.ngContentSelectors;
          _this409.inputs = factory.inputs;
          _this409.outputs = factory.outputs;
          return _this409;
        }

        _createClass2(ComponentFactoryBoundToModule, [{
          key: "create",
          value: function create(injector, projectableNodes, rootSelectorOrNode, ngModule) {
            return this.factory.create(injector, projectableNodes, rootSelectorOrNode, ngModule || this.ngModule);
          }
        }]);

        return ComponentFactoryBoundToModule;
      }(ComponentFactory);
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function noop() {// Do nothing.
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * A wrapper around a native element inside of a View.
       *
       * An `ElementRef` is backed by a render-specific element. In the browser, this is usually a DOM
       * element.
       *
       * @security Permitting direct access to the DOM can make your application more vulnerable to
       * XSS attacks. Carefully review any use of `ElementRef` in your code. For more detail, see the
       * [Security Guide](http://g.co/ng/security).
       *
       * @publicApi
       */
      // Note: We don't expose things like `Injector`, `ViewContainer`, ... here,
      // i.e. users have to ask for what they need. With that, we can build better analysis tools
      // and could do better codegen in the future.


      var ElementRef = function ElementRef(nativeElement) {
        _classCallCheck2(this, ElementRef);

        this.nativeElement = nativeElement;
      };
      /**
       * @internal
       * @nocollapse
       */


      ElementRef.__NG_ELEMENT_ID__ = function () {
        return SWITCH_ELEMENT_REF_FACTORY(ElementRef);
      };

      var SWITCH_ELEMENT_REF_FACTORY__POST_R3__ = injectElementRef;
      var SWITCH_ELEMENT_REF_FACTORY__PRE_R3__ = noop;
      var SWITCH_ELEMENT_REF_FACTORY = SWITCH_ELEMENT_REF_FACTORY__POST_R3__;
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      var Renderer2Interceptor = new InjectionToken('Renderer2Interceptor');
      /**
       * Creates and initializes a custom renderer that implements the `Renderer2` base class.
       *
       * @publicApi
       */

      var RendererFactory2 = function RendererFactory2() {
        _classCallCheck2(this, RendererFactory2);
      };
      /**
       * Flags for renderer-specific style modifiers.
       * @publicApi
       */


      var RendererStyleFlags2;

      (function (RendererStyleFlags2) {
        // TODO(misko): This needs to be refactored into a separate file so that it can be imported from
        // `node_manipulation.ts` Currently doing the import cause resolution order to change and fails
        // the tests. The work around is to have hard coded value in `node_manipulation.ts` for now.

        /**
         * Marks a style as important.
         */
        RendererStyleFlags2[RendererStyleFlags2["Important"] = 1] = "Important";
        /**
         * Marks a style as using dash case naming (this-is-dash-case).
         */

        RendererStyleFlags2[RendererStyleFlags2["DashCase"] = 2] = "DashCase";
      })(RendererStyleFlags2 || (RendererStyleFlags2 = {}));
      /**
       * Extend this base class to implement custom rendering. By default, Angular
       * renders a template into DOM. You can use custom rendering to intercept
       * rendering calls, or to render to something other than DOM.
       *
       * Create your custom renderer using `RendererFactory2`.
       *
       * Use a custom renderer to bypass Angular's templating and
       * make custom UI changes that can't be expressed declaratively.
       * For example if you need to set a property or an attribute whose name is
       * not statically known, use the `setProperty()` or
       * `setAttribute()` method.
       *
       * @publicApi
       */


      var Renderer2 = function Renderer2() {
        _classCallCheck2(this, Renderer2);
      };
      /**
       * @internal
       * @nocollapse
       */


      Renderer2.__NG_ELEMENT_ID__ = function () {
        return SWITCH_RENDERER2_FACTORY();
      };

      var SWITCH_RENDERER2_FACTORY__POST_R3__ = injectRenderer2;
      var SWITCH_RENDERER2_FACTORY__PRE_R3__ = noop;
      var SWITCH_RENDERER2_FACTORY = SWITCH_RENDERER2_FACTORY__POST_R3__;
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Sanitizer is used by the views to sanitize potentially dangerous values.
       *
       * @publicApi
       */

      var Sanitizer = function Sanitizer() {
        _classCallCheck2(this, Sanitizer);
      };
      /** @nocollapse */


      Sanitizer.ɵprov = ɵɵdefineInjectable({
        token: Sanitizer,
        providedIn: 'root',
        factory: function factory() {
          return null;
        }
      });
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @description Represents the version of Angular
       *
       * @publicApi
       */

      var Version = function Version(full) {
        _classCallCheck2(this, Version);

        this.full = full;
        this.major = full.split('.')[0];
        this.minor = full.split('.')[1];
        this.patch = full.split('.').slice(2).join('.');
      };
      /**
       * @publicApi
       */


      var VERSION = new Version('11.0.0');
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      var DefaultIterableDifferFactory = /*#__PURE__*/function () {
        function DefaultIterableDifferFactory() {
          _classCallCheck2(this, DefaultIterableDifferFactory);
        }

        _createClass2(DefaultIterableDifferFactory, [{
          key: "supports",
          value: function supports(obj) {
            return isListLikeIterable(obj);
          }
        }, {
          key: "create",
          value: function create(trackByFn) {
            return new DefaultIterableDiffer(trackByFn);
          }
        }]);

        return DefaultIterableDifferFactory;
      }();

      var trackByIdentity = function trackByIdentity(index, item) {
        return item;
      };

      var ɵ0$c = trackByIdentity;
      /**
       * @deprecated v4.0.0 - Should not be part of public API.
       * @publicApi
       */

      var DefaultIterableDiffer = /*#__PURE__*/function () {
        function DefaultIterableDiffer(trackByFn) {
          _classCallCheck2(this, DefaultIterableDiffer);

          this.length = 0; // Keeps track of the used records at any point in time (during & across `_check()` calls)

          this._linkedRecords = null; // Keeps track of the removed records at any point in time during `_check()` calls.

          this._unlinkedRecords = null;
          this._previousItHead = null;
          this._itHead = null;
          this._itTail = null;
          this._additionsHead = null;
          this._additionsTail = null;
          this._movesHead = null;
          this._movesTail = null;
          this._removalsHead = null;
          this._removalsTail = null; // Keeps track of records where custom track by is the same, but item identity has changed

          this._identityChangesHead = null;
          this._identityChangesTail = null;
          this._trackByFn = trackByFn || trackByIdentity;
        }

        _createClass2(DefaultIterableDiffer, [{
          key: "forEachItem",
          value: function forEachItem(fn) {
            var record;

            for (record = this._itHead; record !== null; record = record._next) {
              fn(record);
            }
          }
        }, {
          key: "forEachOperation",
          value: function forEachOperation(fn) {
            var nextIt = this._itHead;
            var nextRemove = this._removalsHead;
            var addRemoveOffset = 0;
            var moveOffsets = null;

            while (nextIt || nextRemove) {
              // Figure out which is the next record to process
              // Order: remove, add, move
              var record = !nextRemove || nextIt && nextIt.currentIndex < getPreviousIndex(nextRemove, addRemoveOffset, moveOffsets) ? nextIt : nextRemove;
              var adjPreviousIndex = getPreviousIndex(record, addRemoveOffset, moveOffsets);
              var currentIndex = record.currentIndex; // consume the item, and adjust the addRemoveOffset and update moveDistance if necessary

              if (record === nextRemove) {
                addRemoveOffset--;
                nextRemove = nextRemove._nextRemoved;
              } else {
                nextIt = nextIt._next;

                if (record.previousIndex == null) {
                  addRemoveOffset++;
                } else {
                  // INVARIANT:  currentIndex < previousIndex
                  if (!moveOffsets) moveOffsets = [];
                  var localMovePreviousIndex = adjPreviousIndex - addRemoveOffset;
                  var localCurrentIndex = currentIndex - addRemoveOffset;

                  if (localMovePreviousIndex != localCurrentIndex) {
                    for (var i = 0; i < localMovePreviousIndex; i++) {
                      var offset = i < moveOffsets.length ? moveOffsets[i] : moveOffsets[i] = 0;
                      var index = offset + i;

                      if (localCurrentIndex <= index && index < localMovePreviousIndex) {
                        moveOffsets[i] = offset + 1;
                      }
                    }

                    var previousIndex = record.previousIndex;
                    moveOffsets[previousIndex] = localCurrentIndex - localMovePreviousIndex;
                  }
                }
              }

              if (adjPreviousIndex !== currentIndex) {
                fn(record, adjPreviousIndex, currentIndex);
              }
            }
          }
        }, {
          key: "forEachPreviousItem",
          value: function forEachPreviousItem(fn) {
            var record;

            for (record = this._previousItHead; record !== null; record = record._nextPrevious) {
              fn(record);
            }
          }
        }, {
          key: "forEachAddedItem",
          value: function forEachAddedItem(fn) {
            var record;

            for (record = this._additionsHead; record !== null; record = record._nextAdded) {
              fn(record);
            }
          }
        }, {
          key: "forEachMovedItem",
          value: function forEachMovedItem(fn) {
            var record;

            for (record = this._movesHead; record !== null; record = record._nextMoved) {
              fn(record);
            }
          }
        }, {
          key: "forEachRemovedItem",
          value: function forEachRemovedItem(fn) {
            var record;

            for (record = this._removalsHead; record !== null; record = record._nextRemoved) {
              fn(record);
            }
          }
        }, {
          key: "forEachIdentityChange",
          value: function forEachIdentityChange(fn) {
            var record;

            for (record = this._identityChangesHead; record !== null; record = record._nextIdentityChange) {
              fn(record);
            }
          }
        }, {
          key: "diff",
          value: function diff(collection) {
            if (collection == null) collection = [];

            if (!isListLikeIterable(collection)) {
              throw new Error("Error trying to diff '".concat(stringify(collection), "'. Only arrays and iterables are allowed"));
            }

            if (this.check(collection)) {
              return this;
            } else {
              return null;
            }
          }
        }, {
          key: "onDestroy",
          value: function onDestroy() {}
        }, {
          key: "check",
          value: function check(collection) {
            var _this410 = this;

            this._reset();

            var record = this._itHead;
            var mayBeDirty = false;
            var index;
            var item;
            var itemTrackBy;

            if (Array.isArray(collection)) {
              this.length = collection.length;

              for (var _index3 = 0; _index3 < this.length; _index3++) {
                item = collection[_index3];
                itemTrackBy = this._trackByFn(_index3, item);

                if (record === null || !Object.is(record.trackById, itemTrackBy)) {
                  record = this._mismatch(record, item, itemTrackBy, _index3);
                  mayBeDirty = true;
                } else {
                  if (mayBeDirty) {
                    // TODO(misko): can we limit this to duplicates only?
                    record = this._verifyReinsertion(record, item, itemTrackBy, _index3);
                  }

                  if (!Object.is(record.item, item)) this._addIdentityChange(record, item);
                }

                record = record._next;
              }
            } else {
              index = 0;
              iterateListLike(collection, function (item) {
                itemTrackBy = _this410._trackByFn(index, item);

                if (record === null || !Object.is(record.trackById, itemTrackBy)) {
                  record = _this410._mismatch(record, item, itemTrackBy, index);
                  mayBeDirty = true;
                } else {
                  if (mayBeDirty) {
                    // TODO(misko): can we limit this to duplicates only?
                    record = _this410._verifyReinsertion(record, item, itemTrackBy, index);
                  }

                  if (!Object.is(record.item, item)) _this410._addIdentityChange(record, item);
                }

                record = record._next;
                index++;
              });
              this.length = index;
            }

            this._truncate(record);

            this.collection = collection;
            return this.isDirty;
          }
          /* CollectionChanges is considered dirty if it has any additions, moves, removals, or identity
           * changes.
           */

        }, {
          key: "isDirty",
          get: function get() {
            return this._additionsHead !== null || this._movesHead !== null || this._removalsHead !== null || this._identityChangesHead !== null;
          }
          /**
           * Reset the state of the change objects to show no changes. This means set previousKey to
           * currentKey, and clear all of the queues (additions, moves, removals).
           * Set the previousIndexes of moved and added items to their currentIndexes
           * Reset the list of additions, moves and removals
           *
           * @internal
           */

        }, {
          key: "_reset",
          value: function _reset() {
            if (this.isDirty) {
              var record;

              for (record = this._previousItHead = this._itHead; record !== null; record = record._next) {
                record._nextPrevious = record._next;
              }

              for (record = this._additionsHead; record !== null; record = record._nextAdded) {
                record.previousIndex = record.currentIndex;
              }

              this._additionsHead = this._additionsTail = null;

              for (record = this._movesHead; record !== null; record = record._nextMoved) {
                record.previousIndex = record.currentIndex;
              }

              this._movesHead = this._movesTail = null;
              this._removalsHead = this._removalsTail = null;
              this._identityChangesHead = this._identityChangesTail = null; // TODO(vicb): when assert gets supported
              // assert(!this.isDirty);
            }
          }
          /**
           * This is the core function which handles differences between collections.
           *
           * - `record` is the record which we saw at this position last time. If null then it is a new
           *   item.
           * - `item` is the current item in the collection
           * - `index` is the position of the item in the collection
           *
           * @internal
           */

        }, {
          key: "_mismatch",
          value: function _mismatch(record, item, itemTrackBy, index) {
            // The previous record after which we will append the current one.
            var previousRecord;

            if (record === null) {
              previousRecord = this._itTail;
            } else {
              previousRecord = record._prev; // Remove the record from the collection since we know it does not match the item.

              this._remove(record);
            } // Attempt to see if we have seen the item before.


            record = this._linkedRecords === null ? null : this._linkedRecords.get(itemTrackBy, index);

            if (record !== null) {
              // We have seen this before, we need to move it forward in the collection.
              // But first we need to check if identity changed, so we can update in view if necessary
              if (!Object.is(record.item, item)) this._addIdentityChange(record, item);

              this._moveAfter(record, previousRecord, index);
            } else {
              // Never seen it, check evicted list.
              record = this._unlinkedRecords === null ? null : this._unlinkedRecords.get(itemTrackBy, null);

              if (record !== null) {
                // It is an item which we have evicted earlier: reinsert it back into the list.
                // But first we need to check if identity changed, so we can update in view if necessary
                if (!Object.is(record.item, item)) this._addIdentityChange(record, item);

                this._reinsertAfter(record, previousRecord, index);
              } else {
                // It is a new item: add it.
                record = this._addAfter(new IterableChangeRecord_(item, itemTrackBy), previousRecord, index);
              }
            }

            return record;
          }
          /**
           * This check is only needed if an array contains duplicates. (Short circuit of nothing dirty)
           *
           * Use case: `[a, a]` => `[b, a, a]`
           *
           * If we did not have this check then the insertion of `b` would:
           *   1) evict first `a`
           *   2) insert `b` at `0` index.
           *   3) leave `a` at index `1` as is. <-- this is wrong!
           *   3) reinsert `a` at index 2. <-- this is wrong!
           *
           * The correct behavior is:
           *   1) evict first `a`
           *   2) insert `b` at `0` index.
           *   3) reinsert `a` at index 1.
           *   3) move `a` at from `1` to `2`.
           *
           *
           * Double check that we have not evicted a duplicate item. We need to check if the item type may
           * have already been removed:
           * The insertion of b will evict the first 'a'. If we don't reinsert it now it will be reinserted
           * at the end. Which will show up as the two 'a's switching position. This is incorrect, since a
           * better way to think of it is as insert of 'b' rather then switch 'a' with 'b' and then add 'a'
           * at the end.
           *
           * @internal
           */

        }, {
          key: "_verifyReinsertion",
          value: function _verifyReinsertion(record, item, itemTrackBy, index) {
            var reinsertRecord = this._unlinkedRecords === null ? null : this._unlinkedRecords.get(itemTrackBy, null);

            if (reinsertRecord !== null) {
              record = this._reinsertAfter(reinsertRecord, record._prev, index);
            } else if (record.currentIndex != index) {
              record.currentIndex = index;

              this._addToMoves(record, index);
            }

            return record;
          }
          /**
           * Get rid of any excess {@link IterableChangeRecord_}s from the previous collection
           *
           * - `record` The first excess {@link IterableChangeRecord_}.
           *
           * @internal
           */

        }, {
          key: "_truncate",
          value: function _truncate(record) {
            // Anything after that needs to be removed;
            while (record !== null) {
              var nextRecord = record._next;

              this._addToRemovals(this._unlink(record));

              record = nextRecord;
            }

            if (this._unlinkedRecords !== null) {
              this._unlinkedRecords.clear();
            }

            if (this._additionsTail !== null) {
              this._additionsTail._nextAdded = null;
            }

            if (this._movesTail !== null) {
              this._movesTail._nextMoved = null;
            }

            if (this._itTail !== null) {
              this._itTail._next = null;
            }

            if (this._removalsTail !== null) {
              this._removalsTail._nextRemoved = null;
            }

            if (this._identityChangesTail !== null) {
              this._identityChangesTail._nextIdentityChange = null;
            }
          }
          /** @internal */

        }, {
          key: "_reinsertAfter",
          value: function _reinsertAfter(record, prevRecord, index) {
            if (this._unlinkedRecords !== null) {
              this._unlinkedRecords.remove(record);
            }

            var prev = record._prevRemoved;
            var next = record._nextRemoved;

            if (prev === null) {
              this._removalsHead = next;
            } else {
              prev._nextRemoved = next;
            }

            if (next === null) {
              this._removalsTail = prev;
            } else {
              next._prevRemoved = prev;
            }

            this._insertAfter(record, prevRecord, index);

            this._addToMoves(record, index);

            return record;
          }
          /** @internal */

        }, {
          key: "_moveAfter",
          value: function _moveAfter(record, prevRecord, index) {
            this._unlink(record);

            this._insertAfter(record, prevRecord, index);

            this._addToMoves(record, index);

            return record;
          }
          /** @internal */

        }, {
          key: "_addAfter",
          value: function _addAfter(record, prevRecord, index) {
            this._insertAfter(record, prevRecord, index);

            if (this._additionsTail === null) {
              // TODO(vicb):
              // assert(this._additionsHead === null);
              this._additionsTail = this._additionsHead = record;
            } else {
              // TODO(vicb):
              // assert(_additionsTail._nextAdded === null);
              // assert(record._nextAdded === null);
              this._additionsTail = this._additionsTail._nextAdded = record;
            }

            return record;
          }
          /** @internal */

        }, {
          key: "_insertAfter",
          value: function _insertAfter(record, prevRecord, index) {
            // TODO(vicb):
            // assert(record != prevRecord);
            // assert(record._next === null);
            // assert(record._prev === null);
            var next = prevRecord === null ? this._itHead : prevRecord._next; // TODO(vicb):
            // assert(next != record);
            // assert(prevRecord != record);

            record._next = next;
            record._prev = prevRecord;

            if (next === null) {
              this._itTail = record;
            } else {
              next._prev = record;
            }

            if (prevRecord === null) {
              this._itHead = record;
            } else {
              prevRecord._next = record;
            }

            if (this._linkedRecords === null) {
              this._linkedRecords = new _DuplicateMap();
            }

            this._linkedRecords.put(record);

            record.currentIndex = index;
            return record;
          }
          /** @internal */

        }, {
          key: "_remove",
          value: function _remove(record) {
            return this._addToRemovals(this._unlink(record));
          }
          /** @internal */

        }, {
          key: "_unlink",
          value: function _unlink(record) {
            if (this._linkedRecords !== null) {
              this._linkedRecords.remove(record);
            }

            var prev = record._prev;
            var next = record._next; // TODO(vicb):
            // assert((record._prev = null) === null);
            // assert((record._next = null) === null);

            if (prev === null) {
              this._itHead = next;
            } else {
              prev._next = next;
            }

            if (next === null) {
              this._itTail = prev;
            } else {
              next._prev = prev;
            }

            return record;
          }
          /** @internal */

        }, {
          key: "_addToMoves",
          value: function _addToMoves(record, toIndex) {
            // TODO(vicb):
            // assert(record._nextMoved === null);
            if (record.previousIndex === toIndex) {
              return record;
            }

            if (this._movesTail === null) {
              // TODO(vicb):
              // assert(_movesHead === null);
              this._movesTail = this._movesHead = record;
            } else {
              // TODO(vicb):
              // assert(_movesTail._nextMoved === null);
              this._movesTail = this._movesTail._nextMoved = record;
            }

            return record;
          }
        }, {
          key: "_addToRemovals",
          value: function _addToRemovals(record) {
            if (this._unlinkedRecords === null) {
              this._unlinkedRecords = new _DuplicateMap();
            }

            this._unlinkedRecords.put(record);

            record.currentIndex = null;
            record._nextRemoved = null;

            if (this._removalsTail === null) {
              // TODO(vicb):
              // assert(_removalsHead === null);
              this._removalsTail = this._removalsHead = record;
              record._prevRemoved = null;
            } else {
              // TODO(vicb):
              // assert(_removalsTail._nextRemoved === null);
              // assert(record._nextRemoved === null);
              record._prevRemoved = this._removalsTail;
              this._removalsTail = this._removalsTail._nextRemoved = record;
            }

            return record;
          }
          /** @internal */

        }, {
          key: "_addIdentityChange",
          value: function _addIdentityChange(record, item) {
            record.item = item;

            if (this._identityChangesTail === null) {
              this._identityChangesTail = this._identityChangesHead = record;
            } else {
              this._identityChangesTail = this._identityChangesTail._nextIdentityChange = record;
            }

            return record;
          }
        }]);

        return DefaultIterableDiffer;
      }();

      var IterableChangeRecord_ = function IterableChangeRecord_(item, trackById) {
        _classCallCheck2(this, IterableChangeRecord_);

        this.item = item;
        this.trackById = trackById;
        this.currentIndex = null;
        this.previousIndex = null;
        /** @internal */

        this._nextPrevious = null;
        /** @internal */

        this._prev = null;
        /** @internal */

        this._next = null;
        /** @internal */

        this._prevDup = null;
        /** @internal */

        this._nextDup = null;
        /** @internal */

        this._prevRemoved = null;
        /** @internal */

        this._nextRemoved = null;
        /** @internal */

        this._nextAdded = null;
        /** @internal */

        this._nextMoved = null;
        /** @internal */

        this._nextIdentityChange = null;
      }; // A linked list of IterableChangeRecords with the same IterableChangeRecord_.item


      var _DuplicateItemRecordList = /*#__PURE__*/function () {
        function _DuplicateItemRecordList() {
          _classCallCheck2(this, _DuplicateItemRecordList);

          /** @internal */
          this._head = null;
          /** @internal */

          this._tail = null;
        }
        /**
         * Append the record to the list of duplicates.
         *
         * Note: by design all records in the list of duplicates hold the same value in record.item.
         */


        _createClass2(_DuplicateItemRecordList, [{
          key: "add",
          value: function add(record) {
            if (this._head === null) {
              this._head = this._tail = record;
              record._nextDup = null;
              record._prevDup = null;
            } else {
              // TODO(vicb):
              // assert(record.item ==  _head.item ||
              //       record.item is num && record.item.isNaN && _head.item is num && _head.item.isNaN);
              this._tail._nextDup = record;
              record._prevDup = this._tail;
              record._nextDup = null;
              this._tail = record;
            }
          } // Returns a IterableChangeRecord_ having IterableChangeRecord_.trackById == trackById and
          // IterableChangeRecord_.currentIndex >= atOrAfterIndex

        }, {
          key: "get",
          value: function get(trackById, atOrAfterIndex) {
            var record;

            for (record = this._head; record !== null; record = record._nextDup) {
              if ((atOrAfterIndex === null || atOrAfterIndex <= record.currentIndex) && Object.is(record.trackById, trackById)) {
                return record;
              }
            }

            return null;
          }
          /**
           * Remove one {@link IterableChangeRecord_} from the list of duplicates.
           *
           * Returns whether the list of duplicates is empty.
           */

        }, {
          key: "remove",
          value: function remove(record) {
            // TODO(vicb):
            // assert(() {
            //  // verify that the record being removed is in the list.
            //  for (IterableChangeRecord_ cursor = _head; cursor != null; cursor = cursor._nextDup) {
            //    if (identical(cursor, record)) return true;
            //  }
            //  return false;
            //});
            var prev = record._prevDup;
            var next = record._nextDup;

            if (prev === null) {
              this._head = next;
            } else {
              prev._nextDup = next;
            }

            if (next === null) {
              this._tail = prev;
            } else {
              next._prevDup = prev;
            }

            return this._head === null;
          }
        }]);

        return _DuplicateItemRecordList;
      }();

      var _DuplicateMap = /*#__PURE__*/function () {
        function _DuplicateMap() {
          _classCallCheck2(this, _DuplicateMap);

          this.map = new Map();
        }

        _createClass2(_DuplicateMap, [{
          key: "put",
          value: function put(record) {
            var key = record.trackById;
            var duplicates = this.map.get(key);

            if (!duplicates) {
              duplicates = new _DuplicateItemRecordList();
              this.map.set(key, duplicates);
            }

            duplicates.add(record);
          }
          /**
           * Retrieve the `value` using key. Because the IterableChangeRecord_ value may be one which we
           * have already iterated over, we use the `atOrAfterIndex` to pretend it is not there.
           *
           * Use case: `[a, b, c, a, a]` if we are at index `3` which is the second `a` then asking if we
           * have any more `a`s needs to return the second `a`.
           */

        }, {
          key: "get",
          value: function get(trackById, atOrAfterIndex) {
            var key = trackById;
            var recordList = this.map.get(key);
            return recordList ? recordList.get(trackById, atOrAfterIndex) : null;
          }
          /**
           * Removes a {@link IterableChangeRecord_} from the list of duplicates.
           *
           * The list of duplicates also is removed from the map if it gets empty.
           */

        }, {
          key: "remove",
          value: function remove(record) {
            var key = record.trackById;
            var recordList = this.map.get(key); // Remove the list of duplicates when it gets empty

            if (recordList.remove(record)) {
              this.map["delete"](key);
            }

            return record;
          }
        }, {
          key: "isEmpty",
          get: function get() {
            return this.map.size === 0;
          }
        }, {
          key: "clear",
          value: function clear() {
            this.map.clear();
          }
        }]);

        return _DuplicateMap;
      }();

      function getPreviousIndex(item, addRemoveOffset, moveOffsets) {
        var previousIndex = item.previousIndex;
        if (previousIndex === null) return previousIndex;
        var moveOffset = 0;

        if (moveOffsets && previousIndex < moveOffsets.length) {
          moveOffset = moveOffsets[previousIndex];
        }

        return previousIndex + addRemoveOffset + moveOffset;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var DefaultKeyValueDifferFactory = /*#__PURE__*/function () {
        function DefaultKeyValueDifferFactory() {
          _classCallCheck2(this, DefaultKeyValueDifferFactory);
        }

        _createClass2(DefaultKeyValueDifferFactory, [{
          key: "supports",
          value: function supports(obj) {
            return obj instanceof Map || isJsObject(obj);
          }
        }, {
          key: "create",
          value: function create() {
            return new DefaultKeyValueDiffer();
          }
        }]);

        return DefaultKeyValueDifferFactory;
      }();

      var DefaultKeyValueDiffer = /*#__PURE__*/function () {
        function DefaultKeyValueDiffer() {
          _classCallCheck2(this, DefaultKeyValueDiffer);

          this._records = new Map();
          this._mapHead = null; // _appendAfter is used in the check loop

          this._appendAfter = null;
          this._previousMapHead = null;
          this._changesHead = null;
          this._changesTail = null;
          this._additionsHead = null;
          this._additionsTail = null;
          this._removalsHead = null;
          this._removalsTail = null;
        }

        _createClass2(DefaultKeyValueDiffer, [{
          key: "isDirty",
          get: function get() {
            return this._additionsHead !== null || this._changesHead !== null || this._removalsHead !== null;
          }
        }, {
          key: "forEachItem",
          value: function forEachItem(fn) {
            var record;

            for (record = this._mapHead; record !== null; record = record._next) {
              fn(record);
            }
          }
        }, {
          key: "forEachPreviousItem",
          value: function forEachPreviousItem(fn) {
            var record;

            for (record = this._previousMapHead; record !== null; record = record._nextPrevious) {
              fn(record);
            }
          }
        }, {
          key: "forEachChangedItem",
          value: function forEachChangedItem(fn) {
            var record;

            for (record = this._changesHead; record !== null; record = record._nextChanged) {
              fn(record);
            }
          }
        }, {
          key: "forEachAddedItem",
          value: function forEachAddedItem(fn) {
            var record;

            for (record = this._additionsHead; record !== null; record = record._nextAdded) {
              fn(record);
            }
          }
        }, {
          key: "forEachRemovedItem",
          value: function forEachRemovedItem(fn) {
            var record;

            for (record = this._removalsHead; record !== null; record = record._nextRemoved) {
              fn(record);
            }
          }
        }, {
          key: "diff",
          value: function diff(map) {
            if (!map) {
              map = new Map();
            } else if (!(map instanceof Map || isJsObject(map))) {
              throw new Error("Error trying to diff '".concat(stringify(map), "'. Only maps and objects are allowed"));
            }

            return this.check(map) ? this : null;
          }
        }, {
          key: "onDestroy",
          value: function onDestroy() {}
          /**
           * Check the current state of the map vs the previous.
           * The algorithm is optimised for when the keys do no change.
           */

        }, {
          key: "check",
          value: function check(map) {
            var _this411 = this;

            this._reset();

            var insertBefore = this._mapHead;
            this._appendAfter = null;

            this._forEach(map, function (value, key) {
              if (insertBefore && insertBefore.key === key) {
                _this411._maybeAddToChanges(insertBefore, value);

                _this411._appendAfter = insertBefore;
                insertBefore = insertBefore._next;
              } else {
                var record = _this411._getOrCreateRecordForKey(key, value);

                insertBefore = _this411._insertBeforeOrAppend(insertBefore, record);
              }
            }); // Items remaining at the end of the list have been deleted


            if (insertBefore) {
              if (insertBefore._prev) {
                insertBefore._prev._next = null;
              }

              this._removalsHead = insertBefore;

              for (var record = insertBefore; record !== null; record = record._nextRemoved) {
                if (record === this._mapHead) {
                  this._mapHead = null;
                }

                this._records["delete"](record.key);

                record._nextRemoved = record._next;
                record.previousValue = record.currentValue;
                record.currentValue = null;
                record._prev = null;
                record._next = null;
              }
            } // Make sure tails have no next records from previous runs


            if (this._changesTail) this._changesTail._nextChanged = null;
            if (this._additionsTail) this._additionsTail._nextAdded = null;
            return this.isDirty;
          }
          /**
           * Inserts a record before `before` or append at the end of the list when `before` is null.
           *
           * Notes:
           * - This method appends at `this._appendAfter`,
           * - This method updates `this._appendAfter`,
           * - The return value is the new value for the insertion pointer.
           */

        }, {
          key: "_insertBeforeOrAppend",
          value: function _insertBeforeOrAppend(before, record) {
            if (before) {
              var prev = before._prev;
              record._next = before;
              record._prev = prev;
              before._prev = record;

              if (prev) {
                prev._next = record;
              }

              if (before === this._mapHead) {
                this._mapHead = record;
              }

              this._appendAfter = before;
              return before;
            }

            if (this._appendAfter) {
              this._appendAfter._next = record;
              record._prev = this._appendAfter;
            } else {
              this._mapHead = record;
            }

            this._appendAfter = record;
            return null;
          }
        }, {
          key: "_getOrCreateRecordForKey",
          value: function _getOrCreateRecordForKey(key, value) {
            if (this._records.has(key)) {
              var _record = this._records.get(key);

              this._maybeAddToChanges(_record, value);

              var prev = _record._prev;
              var next = _record._next;

              if (prev) {
                prev._next = next;
              }

              if (next) {
                next._prev = prev;
              }

              _record._next = null;
              _record._prev = null;
              return _record;
            }

            var record = new KeyValueChangeRecord_(key);

            this._records.set(key, record);

            record.currentValue = value;

            this._addToAdditions(record);

            return record;
          }
          /** @internal */

        }, {
          key: "_reset",
          value: function _reset() {
            if (this.isDirty) {
              var record; // let `_previousMapHead` contain the state of the map before the changes

              this._previousMapHead = this._mapHead;

              for (record = this._previousMapHead; record !== null; record = record._next) {
                record._nextPrevious = record._next;
              } // Update `record.previousValue` with the value of the item before the changes
              // We need to update all changed items (that's those which have been added and changed)


              for (record = this._changesHead; record !== null; record = record._nextChanged) {
                record.previousValue = record.currentValue;
              }

              for (record = this._additionsHead; record != null; record = record._nextAdded) {
                record.previousValue = record.currentValue;
              }

              this._changesHead = this._changesTail = null;
              this._additionsHead = this._additionsTail = null;
              this._removalsHead = null;
            }
          } // Add the record or a given key to the list of changes only when the value has actually changed

        }, {
          key: "_maybeAddToChanges",
          value: function _maybeAddToChanges(record, newValue) {
            if (!Object.is(newValue, record.currentValue)) {
              record.previousValue = record.currentValue;
              record.currentValue = newValue;

              this._addToChanges(record);
            }
          }
        }, {
          key: "_addToAdditions",
          value: function _addToAdditions(record) {
            if (this._additionsHead === null) {
              this._additionsHead = this._additionsTail = record;
            } else {
              this._additionsTail._nextAdded = record;
              this._additionsTail = record;
            }
          }
        }, {
          key: "_addToChanges",
          value: function _addToChanges(record) {
            if (this._changesHead === null) {
              this._changesHead = this._changesTail = record;
            } else {
              this._changesTail._nextChanged = record;
              this._changesTail = record;
            }
          }
          /** @internal */

        }, {
          key: "_forEach",
          value: function _forEach(obj, fn) {
            if (obj instanceof Map) {
              obj.forEach(fn);
            } else {
              Object.keys(obj).forEach(function (k) {
                return fn(obj[k], k);
              });
            }
          }
        }]);

        return DefaultKeyValueDiffer;
      }();

      var KeyValueChangeRecord_ = function KeyValueChangeRecord_(key) {
        _classCallCheck2(this, KeyValueChangeRecord_);

        this.key = key;
        this.previousValue = null;
        this.currentValue = null;
        /** @internal */

        this._nextPrevious = null;
        /** @internal */

        this._next = null;
        /** @internal */

        this._prev = null;
        /** @internal */

        this._nextAdded = null;
        /** @internal */

        this._nextRemoved = null;
        /** @internal */

        this._nextChanged = null;
      };
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * A repository of different iterable diffing strategies used by NgFor, NgClass, and others.
       *
       * @publicApi
       */


      var IterableDiffers = /*#__PURE__*/function () {
        function IterableDiffers(factories) {
          _classCallCheck2(this, IterableDiffers);

          this.factories = factories;
        }

        _createClass2(IterableDiffers, [{
          key: "find",
          value: function find(iterable) {
            var factory = this.factories.find(function (f) {
              return f.supports(iterable);
            });

            if (factory != null) {
              return factory;
            } else {
              throw new Error("Cannot find a differ supporting object '".concat(iterable, "' of type '").concat(getTypeNameForDebugging(iterable), "'"));
            }
          }
        }], [{
          key: "create",
          value: function create(factories, parent) {
            if (parent != null) {
              var copied = parent.factories.slice();
              factories = factories.concat(copied);
            }

            return new IterableDiffers(factories);
          }
          /**
           * Takes an array of {@link IterableDifferFactory} and returns a provider used to extend the
           * inherited {@link IterableDiffers} instance with the provided factories and return a new
           * {@link IterableDiffers} instance.
           *
           * @usageNotes
           * ### Example
           *
           * The following example shows how to extend an existing list of factories,
           * which will only be applied to the injector for this component and its children.
           * This step is all that's required to make a new {@link IterableDiffer} available.
           *
           * ```
           * @Component({
           *   viewProviders: [
           *     IterableDiffers.extend([new ImmutableListDiffer()])
           *   ]
           * })
           * ```
           */

        }, {
          key: "extend",
          value: function extend(factories) {
            return {
              provide: IterableDiffers,
              useFactory: function useFactory(parent) {
                if (!parent) {
                  // Typically would occur when calling IterableDiffers.extend inside of dependencies passed
                  // to
                  // bootstrap(), which would override default pipes instead of extending them.
                  throw new Error('Cannot extend IterableDiffers without a parent injector');
                }

                return IterableDiffers.create(factories, parent);
              },
              // Dependency technically isn't optional, but we can provide a better error message this way.
              deps: [[IterableDiffers, new SkipSelf(), new Optional()]]
            };
          }
        }]);

        return IterableDiffers;
      }();
      /** @nocollapse */


      IterableDiffers.ɵprov = ɵɵdefineInjectable({
        token: IterableDiffers,
        providedIn: 'root',
        factory: function factory() {
          return new IterableDiffers([new DefaultIterableDifferFactory()]);
        }
      });

      function getTypeNameForDebugging(type) {
        return type['name'] || typeof type;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * A repository of different Map diffing strategies used by NgClass, NgStyle, and others.
       *
       * @publicApi
       */


      var KeyValueDiffers = /*#__PURE__*/function () {
        function KeyValueDiffers(factories) {
          _classCallCheck2(this, KeyValueDiffers);

          this.factories = factories;
        }

        _createClass2(KeyValueDiffers, [{
          key: "find",
          value: function find(kv) {
            var factory = this.factories.find(function (f) {
              return f.supports(kv);
            });

            if (factory) {
              return factory;
            }

            throw new Error("Cannot find a differ supporting object '".concat(kv, "'"));
          }
        }], [{
          key: "create",
          value: function create(factories, parent) {
            if (parent) {
              var copied = parent.factories.slice();
              factories = factories.concat(copied);
            }

            return new KeyValueDiffers(factories);
          }
          /**
           * Takes an array of {@link KeyValueDifferFactory} and returns a provider used to extend the
           * inherited {@link KeyValueDiffers} instance with the provided factories and return a new
           * {@link KeyValueDiffers} instance.
           *
           * @usageNotes
           * ### Example
           *
           * The following example shows how to extend an existing list of factories,
           * which will only be applied to the injector for this component and its children.
           * This step is all that's required to make a new {@link KeyValueDiffer} available.
           *
           * ```
           * @Component({
           *   viewProviders: [
           *     KeyValueDiffers.extend([new ImmutableMapDiffer()])
           *   ]
           * })
           * ```
           */

        }, {
          key: "extend",
          value: function extend(factories) {
            return {
              provide: KeyValueDiffers,
              useFactory: function useFactory(parent) {
                if (!parent) {
                  // Typically would occur when calling KeyValueDiffers.extend inside of dependencies passed
                  // to bootstrap(), which would override default pipes instead of extending them.
                  throw new Error('Cannot extend KeyValueDiffers without a parent injector');
                }

                return KeyValueDiffers.create(factories, parent);
              },
              // Dependency technically isn't optional, but we can provide a better error message this way.
              deps: [[KeyValueDiffers, new SkipSelf(), new Optional()]]
            };
          }
        }]);

        return KeyValueDiffers;
      }();
      /** @nocollapse */


      KeyValueDiffers.ɵprov = ɵɵdefineInjectable({
        token: KeyValueDiffers,
        providedIn: 'root',
        factory: function factory() {
          return new KeyValueDiffers([new DefaultKeyValueDifferFactory()]);
        }
      });
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Structural diffing for `Object`s and `Map`s.
       */

      var keyValDiff = [new DefaultKeyValueDifferFactory()];
      /**
       * Structural diffing for `Iterable` types such as `Array`s.
       */

      var iterableDiff = [new DefaultIterableDifferFactory()];
      var defaultIterableDiffers = new IterableDiffers(iterableDiff);
      var defaultKeyValueDiffers = new KeyValueDiffers(keyValDiff);
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Represents an embedded template that can be used to instantiate embedded views.
       * To instantiate embedded views based on a template, use the `ViewContainerRef`
       * method `createEmbeddedView()`.
       *
       * Access a `TemplateRef` instance by placing a directive on an `<ng-template>`
       * element (or directive prefixed with `*`). The `TemplateRef` for the embedded view
       * is injected into the constructor of the directive,
       * using the `TemplateRef` token.
       *
       * You can also use a `Query` to find a `TemplateRef` associated with
       * a component or a directive.
       *
       * @see `ViewContainerRef`
       * @see [Navigate the Component Tree with DI](guide/dependency-injection-navtree)
       *
       * @publicApi
       */

      var TemplateRef = function TemplateRef() {
        _classCallCheck2(this, TemplateRef);
      };
      /**
       * @internal
       * @nocollapse
       */


      TemplateRef.__NG_ELEMENT_ID__ = function () {
        return SWITCH_TEMPLATE_REF_FACTORY(TemplateRef, ElementRef);
      };

      var SWITCH_TEMPLATE_REF_FACTORY__POST_R3__ = injectTemplateRef;
      var SWITCH_TEMPLATE_REF_FACTORY__PRE_R3__ = noop;
      var SWITCH_TEMPLATE_REF_FACTORY = SWITCH_TEMPLATE_REF_FACTORY__POST_R3__;
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Represents a container where one or more views can be attached to a component.
       *
       * Can contain *host views* (created by instantiating a
       * component with the `createComponent()` method), and *embedded views*
       * (created by instantiating a `TemplateRef` with the `createEmbeddedView()` method).
       *
       * A view container instance can contain other view containers,
       * creating a [view hierarchy](guide/glossary#view-tree).
       *
       * @see `ComponentRef`
       * @see `EmbeddedViewRef`
       *
       * @publicApi
       */

      var ViewContainerRef = function ViewContainerRef() {
        _classCallCheck2(this, ViewContainerRef);
      };
      /**
       * @internal
       * @nocollapse
       */


      ViewContainerRef.__NG_ELEMENT_ID__ = function () {
        return SWITCH_VIEW_CONTAINER_REF_FACTORY(ViewContainerRef, ElementRef);
      };

      var SWITCH_VIEW_CONTAINER_REF_FACTORY__POST_R3__ = injectViewContainerRef;
      var SWITCH_VIEW_CONTAINER_REF_FACTORY__PRE_R3__ = noop;
      var SWITCH_VIEW_CONTAINER_REF_FACTORY = SWITCH_VIEW_CONTAINER_REF_FACTORY__POST_R3__;
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      function expressionChangedAfterItHasBeenCheckedError(context, oldValue, currValue, isFirstCheck) {
        var msg = "ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '".concat(oldValue, "'. Current value: '").concat(currValue, "'.");

        if (isFirstCheck) {
          msg += " It seems like the view has been created after its parent and its children have been dirty checked." + " Has it been created in a change detection hook ?";
        }

        return viewDebugError(msg, context);
      }

      function viewWrappedDebugError(err, context) {
        if (!(err instanceof Error)) {
          // errors that are not Error instances don't have a stack,
          // so it is ok to wrap them into a new Error object...
          err = new Error(err.toString());
        }

        _addDebugContext(err, context);

        return err;
      }

      function viewDebugError(msg, context) {
        var err = new Error(msg);

        _addDebugContext(err, context);

        return err;
      }

      function _addDebugContext(err, context) {
        err[ERROR_DEBUG_CONTEXT] = context;
        err[ERROR_LOGGER] = context.logError.bind(context);
      }

      function isViewDebugError(err) {
        return !!getDebugContext(err);
      }

      function viewDestroyedError(action) {
        return new Error("ViewDestroyedError: Attempt to use a destroyed view: ".concat(action));
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */
      // Called before each cycle of a view's check to detect whether this is in the
      // initState for which we need to call ngOnInit, ngAfterContentInit or ngAfterViewInit
      // lifecycle methods. Returns true if this check cycle should call lifecycle
      // methods.


      function shiftInitState(view, priorInitState, newInitState) {
        // Only update the InitState if we are currently in the prior state.
        // For example, only move into CallingInit if we are in BeforeInit. Only
        // move into CallingContentInit if we are in CallingInit. Normally this will
        // always be true because of how checkCycle is called in checkAndUpdateView.
        // However, if checkAndUpdateView is called recursively or if an exception is
        // thrown while checkAndUpdateView is running, checkAndUpdateView starts over
        // from the beginning. This ensures the state is monotonically increasing,
        // terminating in the AfterInit state, which ensures the Init methods are called
        // at least once and only once.
        var state = view.state;
        var initState = state & 1792
        /* InitState_Mask */
        ;

        if (initState === priorInitState) {
          view.state = state & ~1792
          /* InitState_Mask */
          | newInitState;
          view.initIndex = -1;
          return true;
        }

        return initState === newInitState;
      } // Returns true if the lifecycle init method should be called for the node with
      // the given init index.


      function shouldCallLifecycleInitHook(view, initState, index) {
        if ((view.state & 1792
        /* InitState_Mask */
        ) === initState && view.initIndex <= index) {
          view.initIndex = index + 1;
          return true;
        }

        return false;
      }
      /**
       * Node instance data.
       *
       * We have a separate type per NodeType to save memory
       * (TextData | ElementData | ProviderData | PureExpressionData | QueryList<any>)
       *
       * To keep our code monomorphic,
       * we prohibit using `NodeData` directly but enforce the use of accessors (`asElementData`, ...).
       * This way, no usage site can get a `NodeData` from view.nodes and then use it for different
       * purposes.
       */


      var NodeData = function NodeData() {
        _classCallCheck2(this, NodeData);
      };
      /**
       * Accessor for view.nodes, enforcing that every usage site stays monomorphic.
       */


      function asTextData(view, index) {
        return view.nodes[index];
      }
      /**
       * Accessor for view.nodes, enforcing that every usage site stays monomorphic.
       */


      function asElementData(view, index) {
        return view.nodes[index];
      }
      /**
       * Accessor for view.nodes, enforcing that every usage site stays monomorphic.
       */


      function asProviderData(view, index) {
        return view.nodes[index];
      }
      /**
       * Accessor for view.nodes, enforcing that every usage site stays monomorphic.
       */


      function asPureExpressionData(view, index) {
        return view.nodes[index];
      }
      /**
       * Accessor for view.nodes, enforcing that every usage site stays monomorphic.
       */


      function asQueryList(view, index) {
        return view.nodes[index];
      }

      var DebugContext = function DebugContext() {
        _classCallCheck2(this, DebugContext);
      };
      /**
       * This object is used to prevent cycles in the source files and to have a place where
       * debug mode can hook it. It is lazily filled when `isDevMode` is known.
       */


      var Services = {
        setCurrentNode: undefined,
        createRootView: undefined,
        createEmbeddedView: undefined,
        createComponentView: undefined,
        createNgModuleRef: undefined,
        overrideProvider: undefined,
        overrideComponentView: undefined,
        clearOverrides: undefined,
        checkAndUpdateView: undefined,
        checkNoChangesView: undefined,
        destroyView: undefined,
        resolveDep: undefined,
        createDebugContext: undefined,
        handleEvent: undefined,
        updateDirectives: undefined,
        updateRenderer: undefined,
        dirtyParentQueries: undefined
      };
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      var NOOP = function NOOP() {};

      var _tokenKeyCache = new Map();

      function tokenKey(token) {
        var key = _tokenKeyCache.get(token);

        if (!key) {
          key = stringify(token) + '_' + _tokenKeyCache.size;

          _tokenKeyCache.set(token, key);
        }

        return key;
      }

      function unwrapValue(view, nodeIdx, bindingIdx, value) {
        if (WrappedValue.isWrapped(value)) {
          value = WrappedValue.unwrap(value);
          var globalBindingIdx = view.def.nodes[nodeIdx].bindingIndex + bindingIdx;
          var oldValue = WrappedValue.unwrap(view.oldValues[globalBindingIdx]);
          view.oldValues[globalBindingIdx] = new WrappedValue(oldValue);
        }

        return value;
      }

      var UNDEFINED_RENDERER_TYPE_ID = '$$undefined';
      var EMPTY_RENDERER_TYPE_ID = '$$empty'; // Attention: this function is called as top level function.
      // Putting any logic in here will destroy closure tree shaking!

      function createRendererType2(values) {
        return {
          id: UNDEFINED_RENDERER_TYPE_ID,
          styles: values.styles,
          encapsulation: values.encapsulation,
          data: values.data
        };
      }

      var _renderCompCount$1 = 0;

      function resolveRendererType2(type) {
        if (type && type.id === UNDEFINED_RENDERER_TYPE_ID) {
          // first time we see this RendererType2. Initialize it...
          var isFilled = type.encapsulation != null && type.encapsulation !== ViewEncapsulation$1.None || type.styles.length || Object.keys(type.data).length;

          if (isFilled) {
            type.id = "c".concat(_renderCompCount$1++);
          } else {
            type.id = EMPTY_RENDERER_TYPE_ID;
          }
        }

        if (type && type.id === EMPTY_RENDERER_TYPE_ID) {
          type = null;
        }

        return type || null;
      }

      function checkBinding(view, def, bindingIdx, value) {
        var oldValues = view.oldValues;

        if (view.state & 2
        /* FirstCheck */
        || !Object.is(oldValues[def.bindingIndex + bindingIdx], value)) {
          return true;
        }

        return false;
      }

      function checkAndUpdateBinding(view, def, bindingIdx, value) {
        if (checkBinding(view, def, bindingIdx, value)) {
          view.oldValues[def.bindingIndex + bindingIdx] = value;
          return true;
        }

        return false;
      }

      function checkBindingNoChanges(view, def, bindingIdx, value) {
        var oldValue = view.oldValues[def.bindingIndex + bindingIdx];

        if (view.state & 1
        /* BeforeFirstCheck */
        || !devModeEqual(oldValue, value)) {
          var bindingName = def.bindings[bindingIdx].name;
          throw expressionChangedAfterItHasBeenCheckedError(Services.createDebugContext(view, def.nodeIndex), "".concat(bindingName, ": ").concat(oldValue), "".concat(bindingName, ": ").concat(value), (view.state & 1
          /* BeforeFirstCheck */
          ) !== 0);
        }
      }

      function markParentViewsForCheck(view) {
        var currView = view;

        while (currView) {
          if (currView.def.flags & 2
          /* OnPush */
          ) {
            currView.state |= 8
            /* ChecksEnabled */
            ;
          }

          currView = currView.viewContainerParent || currView.parent;
        }
      }

      function markParentViewsForCheckProjectedViews(view, endView) {
        var currView = view;

        while (currView && currView !== endView) {
          currView.state |= 64
          /* CheckProjectedViews */
          ;
          currView = currView.viewContainerParent || currView.parent;
        }
      }

      function dispatchEvent(view, nodeIndex, eventName, event) {
        try {
          var nodeDef = view.def.nodes[nodeIndex];
          var startView = nodeDef.flags & 33554432
          /* ComponentView */
          ? asElementData(view, nodeIndex).componentView : view;
          markParentViewsForCheck(startView);
          return Services.handleEvent(view, nodeIndex, eventName, event);
        } catch (e) {
          // Attention: Don't rethrow, as it would cancel Observable subscriptions!
          view.root.errorHandler.handleError(e);
        }
      }

      function declaredViewContainer(view) {
        if (view.parent) {
          var parentView = view.parent;
          return asElementData(parentView, view.parentNodeDef.nodeIndex);
        }

        return null;
      }
      /**
       * for component views, this is the host element.
       * for embedded views, this is the index of the parent node
       * that contains the view container.
       */


      function viewParentEl(view) {
        var parentView = view.parent;

        if (parentView) {
          return view.parentNodeDef.parent;
        } else {
          return null;
        }
      }

      function renderNode(view, def) {
        switch (def.flags & 201347067
        /* Types */
        ) {
          case 1
          /* TypeElement */
          :
            return asElementData(view, def.nodeIndex).renderElement;

          case 2
          /* TypeText */
          :
            return asTextData(view, def.nodeIndex).renderText;
        }
      }

      function elementEventFullName(target, name) {
        return target ? "".concat(target, ":").concat(name) : name;
      }

      function isComponentView(view) {
        return !!view.parent && !!(view.parentNodeDef.flags & 32768
        /* Component */
        );
      }

      function isEmbeddedView(view) {
        return !!view.parent && !(view.parentNodeDef.flags & 32768
        /* Component */
        );
      }

      function filterQueryId(queryId) {
        return 1 << queryId % 32;
      }

      function splitMatchedQueriesDsl(matchedQueriesDsl) {
        var matchedQueries = {};
        var matchedQueryIds = 0;
        var references = {};

        if (matchedQueriesDsl) {
          matchedQueriesDsl.forEach(function (_ref55) {
            var _ref56 = _slicedToArray(_ref55, 2),
                queryId = _ref56[0],
                valueType = _ref56[1];

            if (typeof queryId === 'number') {
              matchedQueries[queryId] = valueType;
              matchedQueryIds |= filterQueryId(queryId);
            } else {
              references[queryId] = valueType;
            }
          });
        }

        return {
          matchedQueries: matchedQueries,
          references: references,
          matchedQueryIds: matchedQueryIds
        };
      }

      function splitDepsDsl(deps, sourceName) {
        return deps.map(function (value) {
          var token;
          var flags;

          if (Array.isArray(value)) {
            var _value10 = _slicedToArray(value, 2);

            flags = _value10[0];
            token = _value10[1];
          } else {
            flags = 0
            /* None */
            ;
            token = value;
          }

          if (token && (typeof token === 'function' || typeof token === 'object') && sourceName) {
            Object.defineProperty(token, SOURCE, {
              value: sourceName,
              configurable: true
            });
          }

          return {
            flags: flags,
            token: token,
            tokenKey: tokenKey(token)
          };
        });
      }

      function getParentRenderElement(view, renderHost, def) {
        var renderParent = def.renderParent;

        if (renderParent) {
          if ((renderParent.flags & 1
          /* TypeElement */
          ) === 0 || (renderParent.flags & 33554432
          /* ComponentView */
          ) === 0 || renderParent.element.componentRendererType && (renderParent.element.componentRendererType.encapsulation === ViewEncapsulation$1.ShadowDom || // TODO(FW-2290): remove the `encapsulation === 1` fallback logic in v12.
          renderParent.element.componentRendererType.encapsulation === 1)) {
            // only children of non components, or children of components with native encapsulation should
            // be attached.
            return asElementData(view, def.renderParent.nodeIndex).renderElement;
          }
        } else {
          return renderHost;
        }
      }

      var DEFINITION_CACHE = new WeakMap();

      function resolveDefinition(factory) {
        var value = DEFINITION_CACHE.get(factory);

        if (!value) {
          value = factory(function () {
            return NOOP;
          });
          value.factory = factory;
          DEFINITION_CACHE.set(factory, value);
        }

        return value;
      }

      function rootRenderNodes(view) {
        var renderNodes = [];
        visitRootRenderNodes(view, 0
        /* Collect */
        , undefined, undefined, renderNodes);
        return renderNodes;
      }

      function visitRootRenderNodes(view, action, parentNode, nextSibling, target) {
        // We need to re-compute the parent node in case the nodes have been moved around manually
        if (action === 3
        /* RemoveChild */
        ) {
          parentNode = view.renderer.parentNode(renderNode(view, view.def.lastRenderRootNode));
        }

        visitSiblingRenderNodes(view, action, 0, view.def.nodes.length - 1, parentNode, nextSibling, target);
      }

      function visitSiblingRenderNodes(view, action, startIndex, endIndex, parentNode, nextSibling, target) {
        for (var i = startIndex; i <= endIndex; i++) {
          var nodeDef = view.def.nodes[i];

          if (nodeDef.flags & (1
          /* TypeElement */
          | 2
          /* TypeText */
          | 8
          /* TypeNgContent */
          )) {
            visitRenderNode(view, nodeDef, action, parentNode, nextSibling, target);
          } // jump to next sibling


          i += nodeDef.childCount;
        }
      }

      function visitProjectedRenderNodes(view, ngContentIndex, action, parentNode, nextSibling, target) {
        var compView = view;

        while (compView && !isComponentView(compView)) {
          compView = compView.parent;
        }

        var hostView = compView.parent;
        var hostElDef = viewParentEl(compView);
        var startIndex = hostElDef.nodeIndex + 1;
        var endIndex = hostElDef.nodeIndex + hostElDef.childCount;

        for (var i = startIndex; i <= endIndex; i++) {
          var nodeDef = hostView.def.nodes[i];

          if (nodeDef.ngContentIndex === ngContentIndex) {
            visitRenderNode(hostView, nodeDef, action, parentNode, nextSibling, target);
          } // jump to next sibling


          i += nodeDef.childCount;
        }

        if (!hostView.parent) {
          // a root view
          var projectedNodes = view.root.projectableNodes[ngContentIndex];

          if (projectedNodes) {
            for (var _i20 = 0; _i20 < projectedNodes.length; _i20++) {
              execRenderNodeAction(view, projectedNodes[_i20], action, parentNode, nextSibling, target);
            }
          }
        }
      }

      function visitRenderNode(view, nodeDef, action, parentNode, nextSibling, target) {
        if (nodeDef.flags & 8
        /* TypeNgContent */
        ) {
          visitProjectedRenderNodes(view, nodeDef.ngContent.index, action, parentNode, nextSibling, target);
        } else {
          var rn = renderNode(view, nodeDef);

          if (action === 3
          /* RemoveChild */
          && nodeDef.flags & 33554432
          /* ComponentView */
          && nodeDef.bindingFlags & 48
          /* CatSyntheticProperty */
          ) {
            // Note: we might need to do both actions.
            if (nodeDef.bindingFlags & 16
            /* SyntheticProperty */
            ) {
              execRenderNodeAction(view, rn, action, parentNode, nextSibling, target);
            }

            if (nodeDef.bindingFlags & 32
            /* SyntheticHostProperty */
            ) {
              var compView = asElementData(view, nodeDef.nodeIndex).componentView;
              execRenderNodeAction(compView, rn, action, parentNode, nextSibling, target);
            }
          } else {
            execRenderNodeAction(view, rn, action, parentNode, nextSibling, target);
          }

          if (nodeDef.flags & 16777216
          /* EmbeddedViews */
          ) {
            var embeddedViews = asElementData(view, nodeDef.nodeIndex).viewContainer._embeddedViews;

            for (var k = 0; k < embeddedViews.length; k++) {
              visitRootRenderNodes(embeddedViews[k], action, parentNode, nextSibling, target);
            }
          }

          if (nodeDef.flags & 1
          /* TypeElement */
          && !nodeDef.element.name) {
            visitSiblingRenderNodes(view, action, nodeDef.nodeIndex + 1, nodeDef.nodeIndex + nodeDef.childCount, parentNode, nextSibling, target);
          }
        }
      }

      function execRenderNodeAction(view, renderNode, action, parentNode, nextSibling, target) {
        var renderer = view.renderer;

        switch (action) {
          case 1
          /* AppendChild */
          :
            renderer.appendChild(parentNode, renderNode);
            break;

          case 2
          /* InsertBefore */
          :
            renderer.insertBefore(parentNode, renderNode, nextSibling);
            break;

          case 3
          /* RemoveChild */
          :
            renderer.removeChild(parentNode, renderNode);
            break;

          case 0
          /* Collect */
          :
            target.push(renderNode);
            break;
        }
      }

      var NS_PREFIX_RE = /^:([^:]+):(.+)$/;

      function splitNamespace(name) {
        if (name[0] === ':') {
          var match = name.match(NS_PREFIX_RE);
          return [match[1], match[2]];
        }

        return ['', name];
      }

      function calcBindingFlags(bindings) {
        var flags = 0;

        for (var i = 0; i < bindings.length; i++) {
          flags |= bindings[i].flags;
        }

        return flags;
      }

      function interpolate(valueCount, constAndInterp) {
        var result = '';

        for (var i = 0; i < valueCount * 2; i = i + 2) {
          result = result + constAndInterp[i] + _toStringWithNull(constAndInterp[i + 1]);
        }

        return result + constAndInterp[valueCount * 2];
      }

      function inlineInterpolate(valueCount, c0, a1, c1, a2, c2, a3, c3, a4, c4, a5, c5, a6, c6, a7, c7, a8, c8, a9, c9) {
        switch (valueCount) {
          case 1:
            return c0 + _toStringWithNull(a1) + c1;

          case 2:
            return c0 + _toStringWithNull(a1) + c1 + _toStringWithNull(a2) + c2;

          case 3:
            return c0 + _toStringWithNull(a1) + c1 + _toStringWithNull(a2) + c2 + _toStringWithNull(a3) + c3;

          case 4:
            return c0 + _toStringWithNull(a1) + c1 + _toStringWithNull(a2) + c2 + _toStringWithNull(a3) + c3 + _toStringWithNull(a4) + c4;

          case 5:
            return c0 + _toStringWithNull(a1) + c1 + _toStringWithNull(a2) + c2 + _toStringWithNull(a3) + c3 + _toStringWithNull(a4) + c4 + _toStringWithNull(a5) + c5;

          case 6:
            return c0 + _toStringWithNull(a1) + c1 + _toStringWithNull(a2) + c2 + _toStringWithNull(a3) + c3 + _toStringWithNull(a4) + c4 + _toStringWithNull(a5) + c5 + _toStringWithNull(a6) + c6;

          case 7:
            return c0 + _toStringWithNull(a1) + c1 + _toStringWithNull(a2) + c2 + _toStringWithNull(a3) + c3 + _toStringWithNull(a4) + c4 + _toStringWithNull(a5) + c5 + _toStringWithNull(a6) + c6 + _toStringWithNull(a7) + c7;

          case 8:
            return c0 + _toStringWithNull(a1) + c1 + _toStringWithNull(a2) + c2 + _toStringWithNull(a3) + c3 + _toStringWithNull(a4) + c4 + _toStringWithNull(a5) + c5 + _toStringWithNull(a6) + c6 + _toStringWithNull(a7) + c7 + _toStringWithNull(a8) + c8;

          case 9:
            return c0 + _toStringWithNull(a1) + c1 + _toStringWithNull(a2) + c2 + _toStringWithNull(a3) + c3 + _toStringWithNull(a4) + c4 + _toStringWithNull(a5) + c5 + _toStringWithNull(a6) + c6 + _toStringWithNull(a7) + c7 + _toStringWithNull(a8) + c8 + _toStringWithNull(a9) + c9;

          default:
            throw new Error("Does not support more than 9 expressions");
        }
      }

      function _toStringWithNull(v) {
        return v != null ? v.toString() : '';
      }

      var EMPTY_ARRAY$4 = [];
      var EMPTY_MAP = {};
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      var UNDEFINED_VALUE = {};
      var InjectorRefTokenKey = tokenKey(Injector);
      var INJECTORRefTokenKey = tokenKey(INJECTOR);
      var NgModuleRefTokenKey = tokenKey(NgModuleRef);

      function moduleProvideDef(flags, token, value, deps) {
        // Need to resolve forwardRefs as e.g. for `useValue` we
        // lowered the expression and then stopped evaluating it,
        // i.e. also didn't unwrap it.
        value = resolveForwardRef(value);
        var depDefs = splitDepsDsl(deps, stringify(token));
        return {
          // will bet set by the module definition
          index: -1,
          deps: depDefs,
          flags: flags,
          token: token,
          value: value
        };
      }

      function moduleDef(providers) {
        var providersByKey = {};
        var modules = [];
        var scope = null;

        for (var i = 0; i < providers.length; i++) {
          var provider = providers[i];

          if (provider.token === INJECTOR_SCOPE) {
            scope = provider.value;
          }

          if (provider.flags & 1073741824
          /* TypeNgModule */
          ) {
            modules.push(provider.token);
          }

          provider.index = i;
          providersByKey[tokenKey(provider.token)] = provider;
        }

        return {
          // Will be filled later...
          factory: null,
          providersByKey: providersByKey,
          providers: providers,
          modules: modules,
          scope: scope
        };
      }

      function initNgModule(data) {
        var def = data._def;
        var providers = data._providers = newArray(def.providers.length);

        for (var i = 0; i < def.providers.length; i++) {
          var provDef = def.providers[i];

          if (!(provDef.flags & 4096
          /* LazyProvider */
          )) {
            // Make sure the provider has not been already initialized outside this loop.
            if (providers[i] === undefined) {
              providers[i] = _createProviderInstance(data, provDef);
            }
          }
        }
      }

      function resolveNgModuleDep(data, depDef) {
        var notFoundValue = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : Injector.THROW_IF_NOT_FOUND;
        var former = setCurrentInjector(data);

        try {
          if (depDef.flags & 8
          /* Value */
          ) {
            return depDef.token;
          }

          if (depDef.flags & 2
          /* Optional */
          ) {
            notFoundValue = null;
          }

          if (depDef.flags & 1
          /* SkipSelf */
          ) {
            return data._parent.get(depDef.token, notFoundValue);
          }

          var _tokenKey = depDef.tokenKey;

          switch (_tokenKey) {
            case InjectorRefTokenKey:
            case INJECTORRefTokenKey:
            case NgModuleRefTokenKey:
              return data;
          }

          var _providerDef2 = data._def.providersByKey[_tokenKey];
          var injectableDef;

          if (_providerDef2) {
            var providerInstance = data._providers[_providerDef2.index];

            if (providerInstance === undefined) {
              providerInstance = data._providers[_providerDef2.index] = _createProviderInstance(data, _providerDef2);
            }

            return providerInstance === UNDEFINED_VALUE ? undefined : providerInstance;
          } else if ((injectableDef = getInjectableDef(depDef.token)) && targetsModule(data, injectableDef)) {
            var index = data._providers.length;
            data._def.providers[index] = data._def.providersByKey[depDef.tokenKey] = {
              flags: 1024
              /* TypeFactoryProvider */
              | 4096
              /* LazyProvider */
              ,
              value: injectableDef.factory,
              deps: [],
              index: index,
              token: depDef.token
            };
            data._providers[index] = UNDEFINED_VALUE;
            return data._providers[index] = _createProviderInstance(data, data._def.providersByKey[depDef.tokenKey]);
          } else if (depDef.flags & 4
          /* Self */
          ) {
            return notFoundValue;
          }

          return data._parent.get(depDef.token, notFoundValue);
        } finally {
          setCurrentInjector(former);
        }
      }

      function moduleTransitivelyPresent(ngModule, scope) {
        return ngModule._def.modules.indexOf(scope) > -1;
      }

      function targetsModule(ngModule, def) {
        var providedIn = def.providedIn;
        return providedIn != null && (providedIn === 'any' || providedIn === ngModule._def.scope || moduleTransitivelyPresent(ngModule, providedIn));
      }

      function _createProviderInstance(ngModule, providerDef) {
        var injectable;

        switch (providerDef.flags & 201347067
        /* Types */
        ) {
          case 512
          /* TypeClassProvider */
          :
            injectable = _createClass(ngModule, providerDef.value, providerDef.deps);
            break;

          case 1024
          /* TypeFactoryProvider */
          :
            injectable = _callFactory(ngModule, providerDef.value, providerDef.deps);
            break;

          case 2048
          /* TypeUseExistingProvider */
          :
            injectable = resolveNgModuleDep(ngModule, providerDef.deps[0]);
            break;

          case 256
          /* TypeValueProvider */
          :
            injectable = providerDef.value;
            break;
        } // The read of `ngOnDestroy` here is slightly expensive as it's megamorphic, so it should be
        // avoided if possible. The sequence of checks here determines whether ngOnDestroy needs to be
        // checked. It might not if the `injectable` isn't an object or if NodeFlags.OnDestroy is already
        // set (ngOnDestroy was detected statically).


        if (injectable !== UNDEFINED_VALUE && injectable !== null && typeof injectable === 'object' && !(providerDef.flags & 131072
        /* OnDestroy */
        ) && typeof injectable.ngOnDestroy === 'function') {
          providerDef.flags |= 131072
          /* OnDestroy */
          ;
        }

        return injectable === undefined ? UNDEFINED_VALUE : injectable;
      }

      function _createClass(ngModule, ctor, deps) {
        var len = deps.length;

        switch (len) {
          case 0:
            return new ctor();

          case 1:
            return new ctor(resolveNgModuleDep(ngModule, deps[0]));

          case 2:
            return new ctor(resolveNgModuleDep(ngModule, deps[0]), resolveNgModuleDep(ngModule, deps[1]));

          case 3:
            return new ctor(resolveNgModuleDep(ngModule, deps[0]), resolveNgModuleDep(ngModule, deps[1]), resolveNgModuleDep(ngModule, deps[2]));

          default:
            var depValues = [];

            for (var i = 0; i < len; i++) {
              depValues[i] = resolveNgModuleDep(ngModule, deps[i]);
            }

            return _construct2(ctor, depValues);
        }
      }

      function _callFactory(ngModule, factory, deps) {
        var len = deps.length;

        switch (len) {
          case 0:
            return factory();

          case 1:
            return factory(resolveNgModuleDep(ngModule, deps[0]));

          case 2:
            return factory(resolveNgModuleDep(ngModule, deps[0]), resolveNgModuleDep(ngModule, deps[1]));

          case 3:
            return factory(resolveNgModuleDep(ngModule, deps[0]), resolveNgModuleDep(ngModule, deps[1]), resolveNgModuleDep(ngModule, deps[2]));

          default:
            var depValues = [];

            for (var i = 0; i < len; i++) {
              depValues[i] = resolveNgModuleDep(ngModule, deps[i]);
            }

            return factory.apply(void 0, depValues);
        }
      }

      function callNgModuleLifecycle(ngModule, lifecycles) {
        var def = ngModule._def;
        var destroyed = new Set();

        for (var i = 0; i < def.providers.length; i++) {
          var provDef = def.providers[i];

          if (provDef.flags & 131072
          /* OnDestroy */
          ) {
            var instance = ngModule._providers[i];

            if (instance && instance !== UNDEFINED_VALUE) {
              var onDestroy = instance.ngOnDestroy;

              if (typeof onDestroy === 'function' && !destroyed.has(instance)) {
                onDestroy.apply(instance);
                destroyed.add(instance);
              }
            }
          }
        }
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function attachEmbeddedView(parentView, elementData, viewIndex, view) {
        var embeddedViews = elementData.viewContainer._embeddedViews;

        if (viewIndex === null || viewIndex === undefined) {
          viewIndex = embeddedViews.length;
        }

        view.viewContainerParent = parentView;
        addToArray(embeddedViews, viewIndex, view);
        attachProjectedView(elementData, view);
        Services.dirtyParentQueries(view);
        var prevView = viewIndex > 0 ? embeddedViews[viewIndex - 1] : null;
        renderAttachEmbeddedView(elementData, prevView, view);
      }

      function attachProjectedView(vcElementData, view) {
        var dvcElementData = declaredViewContainer(view);

        if (!dvcElementData || dvcElementData === vcElementData || view.state & 16
        /* IsProjectedView */
        ) {
          return;
        } // Note: For performance reasons, we
        // - add a view to template._projectedViews only 1x throughout its lifetime,
        //   and remove it not until the view is destroyed.
        //   (hard, as when a parent view is attached/detached we would need to attach/detach all
        //    nested projected views as well, even across component boundaries).
        // - don't track the insertion order of views in the projected views array
        //   (hard, as when the views of the same template are inserted different view containers)


        view.state |= 16
        /* IsProjectedView */
        ;
        var projectedViews = dvcElementData.template._projectedViews;

        if (!projectedViews) {
          projectedViews = dvcElementData.template._projectedViews = [];
        }

        projectedViews.push(view); // Note: we are changing the NodeDef here as we cannot calculate
        // the fact whether a template is used for projection during compilation.

        markNodeAsProjectedTemplate(view.parent.def, view.parentNodeDef);
      }

      function markNodeAsProjectedTemplate(viewDef, nodeDef) {
        if (nodeDef.flags & 4
        /* ProjectedTemplate */
        ) {
          return;
        }

        viewDef.nodeFlags |= 4
        /* ProjectedTemplate */
        ;
        nodeDef.flags |= 4
        /* ProjectedTemplate */
        ;
        var parentNodeDef = nodeDef.parent;

        while (parentNodeDef) {
          parentNodeDef.childFlags |= 4
          /* ProjectedTemplate */
          ;
          parentNodeDef = parentNodeDef.parent;
        }
      }

      function detachEmbeddedView(elementData, viewIndex) {
        var embeddedViews = elementData.viewContainer._embeddedViews;

        if (viewIndex == null || viewIndex >= embeddedViews.length) {
          viewIndex = embeddedViews.length - 1;
        }

        if (viewIndex < 0) {
          return null;
        }

        var view = embeddedViews[viewIndex];
        view.viewContainerParent = null;
        removeFromArray(embeddedViews, viewIndex); // See attachProjectedView for why we don't update projectedViews here.

        Services.dirtyParentQueries(view);
        renderDetachView$1(view);
        return view;
      }

      function detachProjectedView(view) {
        if (!(view.state & 16
        /* IsProjectedView */
        )) {
          return;
        }

        var dvcElementData = declaredViewContainer(view);

        if (dvcElementData) {
          var projectedViews = dvcElementData.template._projectedViews;

          if (projectedViews) {
            removeFromArray(projectedViews, projectedViews.indexOf(view));
            Services.dirtyParentQueries(view);
          }
        }
      }

      function moveEmbeddedView(elementData, oldViewIndex, newViewIndex) {
        var embeddedViews = elementData.viewContainer._embeddedViews;
        var view = embeddedViews[oldViewIndex];
        removeFromArray(embeddedViews, oldViewIndex);

        if (newViewIndex == null) {
          newViewIndex = embeddedViews.length;
        }

        addToArray(embeddedViews, newViewIndex, view); // Note: Don't need to change projectedViews as the order in there
        // as always invalid...

        Services.dirtyParentQueries(view);
        renderDetachView$1(view);
        var prevView = newViewIndex > 0 ? embeddedViews[newViewIndex - 1] : null;
        renderAttachEmbeddedView(elementData, prevView, view);
        return view;
      }

      function renderAttachEmbeddedView(elementData, prevView, view) {
        var prevRenderNode = prevView ? renderNode(prevView, prevView.def.lastRenderRootNode) : elementData.renderElement;
        var parentNode = view.renderer.parentNode(prevRenderNode);
        var nextSibling = view.renderer.nextSibling(prevRenderNode); // Note: We can't check if `nextSibling` is present, as on WebWorkers it will always be!
        // However, browsers automatically do `appendChild` when there is no `nextSibling`.

        visitRootRenderNodes(view, 2
        /* InsertBefore */
        , parentNode, nextSibling, undefined);
      }

      function renderDetachView$1(view) {
        visitRootRenderNodes(view, 3
        /* RemoveChild */
        , null, null, undefined);
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var EMPTY_CONTEXT = {}; // Attention: this function is called as top level function.
      // Putting any logic in here will destroy closure tree shaking!

      function createComponentFactory(selector, componentType, viewDefFactory, inputs, outputs, ngContentSelectors) {
        return new ComponentFactory_(selector, componentType, viewDefFactory, inputs, outputs, ngContentSelectors);
      }

      function getComponentViewDefinitionFactory(componentFactory) {
        return componentFactory.viewDefFactory;
      }

      var ComponentFactory_ = /*#__PURE__*/function (_ComponentFactory2) {
        _inherits2(ComponentFactory_, _ComponentFactory2);

        var _super157 = _createSuper2(ComponentFactory_);

        function ComponentFactory_(selector, componentType, viewDefFactory, _inputs, _outputs, ngContentSelectors) {
          var _this412;

          _classCallCheck2(this, ComponentFactory_);

          // Attention: this ctor is called as top level function.
          // Putting any logic in here will destroy closure tree shaking!
          _this412 = _super157.call(this);
          _this412.selector = selector;
          _this412.componentType = componentType;
          _this412._inputs = _inputs;
          _this412._outputs = _outputs;
          _this412.ngContentSelectors = ngContentSelectors;
          _this412.viewDefFactory = viewDefFactory;
          return _this412;
        }

        _createClass2(ComponentFactory_, [{
          key: "inputs",
          get: function get() {
            var inputsArr = [];
            var inputs = this._inputs;

            for (var propName in inputs) {
              var templateName = inputs[propName];
              inputsArr.push({
                propName: propName,
                templateName: templateName
              });
            }

            return inputsArr;
          }
        }, {
          key: "outputs",
          get: function get() {
            var outputsArr = [];

            for (var propName in this._outputs) {
              var templateName = this._outputs[propName];
              outputsArr.push({
                propName: propName,
                templateName: templateName
              });
            }

            return outputsArr;
          }
          /**
           * Creates a new component.
           */

        }, {
          key: "create",
          value: function create(injector, projectableNodes, rootSelectorOrNode, ngModule) {
            if (!ngModule) {
              throw new Error('ngModule should be provided');
            }

            var viewDef = resolveDefinition(this.viewDefFactory);
            var componentNodeIndex = viewDef.nodes[0].element.componentProvider.nodeIndex;
            var view = Services.createRootView(injector, projectableNodes || [], rootSelectorOrNode, viewDef, ngModule, EMPTY_CONTEXT);
            var component = asProviderData(view, componentNodeIndex).instance;

            if (rootSelectorOrNode) {
              view.renderer.setAttribute(asElementData(view, 0).renderElement, 'ng-version', VERSION.full);
            }

            return new ComponentRef_(view, new ViewRef_(view), component);
          }
        }]);

        return ComponentFactory_;
      }(ComponentFactory);

      var ComponentRef_ = /*#__PURE__*/function (_ComponentRef) {
        _inherits2(ComponentRef_, _ComponentRef);

        var _super158 = _createSuper2(ComponentRef_);

        function ComponentRef_(_view, _viewRef, _component) {
          var _this413;

          _classCallCheck2(this, ComponentRef_);

          _this413 = _super158.call(this);
          _this413._view = _view;
          _this413._viewRef = _viewRef;
          _this413._component = _component;
          _this413._elDef = _this413._view.def.nodes[0];
          _this413.hostView = _viewRef;
          _this413.changeDetectorRef = _viewRef;
          _this413.instance = _component;
          return _this413;
        }

        _createClass2(ComponentRef_, [{
          key: "location",
          get: function get() {
            return new ElementRef(asElementData(this._view, this._elDef.nodeIndex).renderElement);
          }
        }, {
          key: "injector",
          get: function get() {
            return new Injector_(this._view, this._elDef);
          }
        }, {
          key: "componentType",
          get: function get() {
            return this._component.constructor;
          }
        }, {
          key: "destroy",
          value: function destroy() {
            this._viewRef.destroy();
          }
        }, {
          key: "onDestroy",
          value: function onDestroy(callback) {
            this._viewRef.onDestroy(callback);
          }
        }]);

        return ComponentRef_;
      }(ComponentRef);

      function createViewContainerData(view, elDef, elData) {
        return new ViewContainerRef_(view, elDef, elData);
      }

      var ViewContainerRef_ = /*#__PURE__*/function () {
        function ViewContainerRef_(_view, _elDef, _data) {
          _classCallCheck2(this, ViewContainerRef_);

          this._view = _view;
          this._elDef = _elDef;
          this._data = _data;
          /**
           * @internal
           */

          this._embeddedViews = [];
        }

        _createClass2(ViewContainerRef_, [{
          key: "element",
          get: function get() {
            return new ElementRef(this._data.renderElement);
          }
        }, {
          key: "injector",
          get: function get() {
            return new Injector_(this._view, this._elDef);
          }
          /** @deprecated No replacement */

        }, {
          key: "parentInjector",
          get: function get() {
            var view = this._view;
            var elDef = this._elDef.parent;

            while (!elDef && view) {
              elDef = viewParentEl(view);
              view = view.parent;
            }

            return view ? new Injector_(view, elDef) : new Injector_(this._view, null);
          }
        }, {
          key: "clear",
          value: function clear() {
            var len = this._embeddedViews.length;

            for (var i = len - 1; i >= 0; i--) {
              var view = detachEmbeddedView(this._data, i);
              Services.destroyView(view);
            }
          }
        }, {
          key: "get",
          value: function get(index) {
            var view = this._embeddedViews[index];

            if (view) {
              var ref = new ViewRef_(view);
              ref.attachToViewContainerRef(this);
              return ref;
            }

            return null;
          }
        }, {
          key: "length",
          get: function get() {
            return this._embeddedViews.length;
          }
        }, {
          key: "createEmbeddedView",
          value: function createEmbeddedView(templateRef, context, index) {
            var viewRef = templateRef.createEmbeddedView(context || {});
            this.insert(viewRef, index);
            return viewRef;
          }
        }, {
          key: "createComponent",
          value: function createComponent(componentFactory, index, injector, projectableNodes, ngModuleRef) {
            var contextInjector = injector || this.parentInjector;

            if (!ngModuleRef && !(componentFactory instanceof ComponentFactoryBoundToModule)) {
              ngModuleRef = contextInjector.get(NgModuleRef);
            }

            var componentRef = componentFactory.create(contextInjector, projectableNodes, undefined, ngModuleRef);
            this.insert(componentRef.hostView, index);
            return componentRef;
          }
        }, {
          key: "insert",
          value: function insert(viewRef, index) {
            if (viewRef.destroyed) {
              throw new Error('Cannot insert a destroyed View in a ViewContainer!');
            }

            var viewRef_ = viewRef;
            var viewData = viewRef_._view;
            attachEmbeddedView(this._view, this._data, index, viewData);
            viewRef_.attachToViewContainerRef(this);
            return viewRef;
          }
        }, {
          key: "move",
          value: function move(viewRef, currentIndex) {
            if (viewRef.destroyed) {
              throw new Error('Cannot move a destroyed View in a ViewContainer!');
            }

            var previousIndex = this._embeddedViews.indexOf(viewRef._view);

            moveEmbeddedView(this._data, previousIndex, currentIndex);
            return viewRef;
          }
        }, {
          key: "indexOf",
          value: function indexOf(viewRef) {
            return this._embeddedViews.indexOf(viewRef._view);
          }
        }, {
          key: "remove",
          value: function remove(index) {
            var viewData = detachEmbeddedView(this._data, index);

            if (viewData) {
              Services.destroyView(viewData);
            }
          }
        }, {
          key: "detach",
          value: function detach(index) {
            var view = detachEmbeddedView(this._data, index);
            return view ? new ViewRef_(view) : null;
          }
        }]);

        return ViewContainerRef_;
      }();

      function createChangeDetectorRef(view) {
        return new ViewRef_(view);
      }

      var ViewRef_ = /*#__PURE__*/function () {
        function ViewRef_(_view) {
          _classCallCheck2(this, ViewRef_);

          this._view = _view;
          this._viewContainerRef = null;
          this._appRef = null;
        }

        _createClass2(ViewRef_, [{
          key: "rootNodes",
          get: function get() {
            return rootRenderNodes(this._view);
          }
        }, {
          key: "context",
          get: function get() {
            return this._view.context;
          }
        }, {
          key: "destroyed",
          get: function get() {
            return (this._view.state & 128
            /* Destroyed */
            ) !== 0;
          }
        }, {
          key: "markForCheck",
          value: function markForCheck() {
            markParentViewsForCheck(this._view);
          }
        }, {
          key: "detach",
          value: function detach() {
            this._view.state &= ~4
            /* Attached */
            ;
          }
        }, {
          key: "detectChanges",
          value: function detectChanges() {
            var fs = this._view.root.rendererFactory;

            if (fs.begin) {
              fs.begin();
            }

            try {
              Services.checkAndUpdateView(this._view);
            } finally {
              if (fs.end) {
                fs.end();
              }
            }
          }
        }, {
          key: "checkNoChanges",
          value: function checkNoChanges() {
            Services.checkNoChangesView(this._view);
          }
        }, {
          key: "reattach",
          value: function reattach() {
            this._view.state |= 4
            /* Attached */
            ;
          }
        }, {
          key: "onDestroy",
          value: function onDestroy(callback) {
            if (!this._view.disposables) {
              this._view.disposables = [];
            }

            this._view.disposables.push(callback);
          }
        }, {
          key: "destroy",
          value: function destroy() {
            if (this._appRef) {
              this._appRef.detachView(this);
            } else if (this._viewContainerRef) {
              this._viewContainerRef.detach(this._viewContainerRef.indexOf(this));
            }

            Services.destroyView(this._view);
          }
        }, {
          key: "detachFromAppRef",
          value: function detachFromAppRef() {
            this._appRef = null;
            renderDetachView$1(this._view);
            Services.dirtyParentQueries(this._view);
          }
        }, {
          key: "attachToAppRef",
          value: function attachToAppRef(appRef) {
            if (this._viewContainerRef) {
              throw new Error('This view is already attached to a ViewContainer!');
            }

            this._appRef = appRef;
          }
        }, {
          key: "attachToViewContainerRef",
          value: function attachToViewContainerRef(vcRef) {
            if (this._appRef) {
              throw new Error('This view is already attached directly to the ApplicationRef!');
            }

            this._viewContainerRef = vcRef;
          }
        }]);

        return ViewRef_;
      }();

      function createTemplateData(view, def) {
        return new TemplateRef_(view, def);
      }

      var TemplateRef_ = /*#__PURE__*/function (_TemplateRef) {
        _inherits2(TemplateRef_, _TemplateRef);

        var _super159 = _createSuper2(TemplateRef_);

        function TemplateRef_(_parentView, _def) {
          var _this414;

          _classCallCheck2(this, TemplateRef_);

          _this414 = _super159.call(this);
          _this414._parentView = _parentView;
          _this414._def = _def;
          return _this414;
        }

        _createClass2(TemplateRef_, [{
          key: "createEmbeddedView",
          value: function createEmbeddedView(context) {
            return new ViewRef_(Services.createEmbeddedView(this._parentView, this._def, this._def.element.template, context));
          }
        }, {
          key: "elementRef",
          get: function get() {
            return new ElementRef(asElementData(this._parentView, this._def.nodeIndex).renderElement);
          }
        }]);

        return TemplateRef_;
      }(TemplateRef);

      function createInjector$1(view, elDef) {
        return new Injector_(view, elDef);
      }

      var Injector_ = /*#__PURE__*/function () {
        function Injector_(view, elDef) {
          _classCallCheck2(this, Injector_);

          this.view = view;
          this.elDef = elDef;
        }

        _createClass2(Injector_, [{
          key: "get",
          value: function get(token) {
            var notFoundValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Injector.THROW_IF_NOT_FOUND;
            var allowPrivateServices = this.elDef ? (this.elDef.flags & 33554432
            /* ComponentView */
            ) !== 0 : false;
            return Services.resolveDep(this.view, this.elDef, allowPrivateServices, {
              flags: 0
              /* None */
              ,
              token: token,
              tokenKey: tokenKey(token)
            }, notFoundValue);
          }
        }]);

        return Injector_;
      }();

      function nodeValue(view, index) {
        var def = view.def.nodes[index];

        if (def.flags & 1
        /* TypeElement */
        ) {
          var elData = asElementData(view, def.nodeIndex);
          return def.element.template ? elData.template : elData.renderElement;
        } else if (def.flags & 2
        /* TypeText */
        ) {
          return asTextData(view, def.nodeIndex).renderText;
        } else if (def.flags & (20224
        /* CatProvider */
        | 16
        /* TypePipe */
        )) {
          return asProviderData(view, def.nodeIndex).instance;
        }

        throw new Error("Illegal state: read nodeValue for node index ".concat(index));
      }

      function createNgModuleRef(moduleType, parent, bootstrapComponents, def) {
        return new NgModuleRef_(moduleType, parent, bootstrapComponents, def);
      }

      var NgModuleRef_ = /*#__PURE__*/function () {
        function NgModuleRef_(_moduleType, _parent, _bootstrapComponents, _def) {
          _classCallCheck2(this, NgModuleRef_);

          this._moduleType = _moduleType;
          this._parent = _parent;
          this._bootstrapComponents = _bootstrapComponents;
          this._def = _def;
          this._destroyListeners = [];
          this._destroyed = false;
          this.injector = this;
          initNgModule(this);
        }

        _createClass2(NgModuleRef_, [{
          key: "get",
          value: function get(token) {
            var notFoundValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Injector.THROW_IF_NOT_FOUND;
            var injectFlags = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : InjectFlags.Default;
            var flags = 0
            /* None */
            ;

            if (injectFlags & InjectFlags.SkipSelf) {
              flags |= 1
              /* SkipSelf */
              ;
            } else if (injectFlags & InjectFlags.Self) {
              flags |= 4
              /* Self */
              ;
            }

            return resolveNgModuleDep(this, {
              token: token,
              tokenKey: tokenKey(token),
              flags: flags
            }, notFoundValue);
          }
        }, {
          key: "instance",
          get: function get() {
            return this.get(this._moduleType);
          }
        }, {
          key: "componentFactoryResolver",
          get: function get() {
            return this.get(ComponentFactoryResolver);
          }
        }, {
          key: "destroy",
          value: function destroy() {
            if (this._destroyed) {
              throw new Error("The ng module ".concat(stringify(this.instance.constructor), " has already been destroyed."));
            }

            this._destroyed = true;
            callNgModuleLifecycle(this, 131072
            /* OnDestroy */
            );

            this._destroyListeners.forEach(function (listener) {
              return listener();
            });
          }
        }, {
          key: "onDestroy",
          value: function onDestroy(callback) {
            this._destroyListeners.push(callback);
          }
        }]);

        return NgModuleRef_;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var Renderer2TokenKey = tokenKey(Renderer2);
      var ElementRefTokenKey = tokenKey(ElementRef);
      var ViewContainerRefTokenKey = tokenKey(ViewContainerRef);
      var TemplateRefTokenKey = tokenKey(TemplateRef);
      var ChangeDetectorRefTokenKey = tokenKey(ChangeDetectorRef);
      var InjectorRefTokenKey$1 = tokenKey(Injector);
      var INJECTORRefTokenKey$1 = tokenKey(INJECTOR);

      function directiveDef(checkIndex, flags, matchedQueries, childCount, ctor, deps, props, outputs) {
        var bindings = [];

        if (props) {
          for (var prop in props) {
            var _props$prop = _slicedToArray(props[prop], 2),
                bindingIndex = _props$prop[0],
                nonMinifiedName = _props$prop[1];

            bindings[bindingIndex] = {
              flags: 8
              /* TypeProperty */
              ,
              name: prop,
              nonMinifiedName: nonMinifiedName,
              ns: null,
              securityContext: null,
              suffix: null
            };
          }
        }

        var outputDefs = [];

        if (outputs) {
          for (var propName in outputs) {
            outputDefs.push({
              type: 1
              /* DirectiveOutput */
              ,
              propName: propName,
              target: null,
              eventName: outputs[propName]
            });
          }
        }

        flags |= 16384
        /* TypeDirective */
        ;
        return _def(checkIndex, flags, matchedQueries, childCount, ctor, ctor, deps, bindings, outputDefs);
      }

      function pipeDef(flags, ctor, deps) {
        flags |= 16
        /* TypePipe */
        ;
        return _def(-1, flags, null, 0, ctor, ctor, deps);
      }

      function providerDef(flags, matchedQueries, token, value, deps) {
        return _def(-1, flags, matchedQueries, 0, token, value, deps);
      }

      function _def(checkIndex, flags, matchedQueriesDsl, childCount, token, value, deps, bindings, outputs) {
        var _splitMatchedQueriesD = splitMatchedQueriesDsl(matchedQueriesDsl),
            matchedQueries = _splitMatchedQueriesD.matchedQueries,
            references = _splitMatchedQueriesD.references,
            matchedQueryIds = _splitMatchedQueriesD.matchedQueryIds;

        if (!outputs) {
          outputs = [];
        }

        if (!bindings) {
          bindings = [];
        } // Need to resolve forwardRefs as e.g. for `useValue` we
        // lowered the expression and then stopped evaluating it,
        // i.e. also didn't unwrap it.


        value = resolveForwardRef(value);
        var depDefs = splitDepsDsl(deps, stringify(token));
        return {
          // will bet set by the view definition
          nodeIndex: -1,
          parent: null,
          renderParent: null,
          bindingIndex: -1,
          outputIndex: -1,
          // regular values
          checkIndex: checkIndex,
          flags: flags,
          childFlags: 0,
          directChildFlags: 0,
          childMatchedQueries: 0,
          matchedQueries: matchedQueries,
          matchedQueryIds: matchedQueryIds,
          references: references,
          ngContentIndex: -1,
          childCount: childCount,
          bindings: bindings,
          bindingFlags: calcBindingFlags(bindings),
          outputs: outputs,
          element: null,
          provider: {
            token: token,
            value: value,
            deps: depDefs
          },
          text: null,
          query: null,
          ngContent: null
        };
      }

      function createProviderInstance(view, def) {
        return _createProviderInstance$1(view, def);
      }

      function createPipeInstance(view, def) {
        // deps are looked up from component.
        var compView = view;

        while (compView.parent && !isComponentView(compView)) {
          compView = compView.parent;
        } // pipes can see the private services of the component


        var allowPrivateServices = true; // pipes are always eager and classes!

        return createClass(compView.parent, viewParentEl(compView), allowPrivateServices, def.provider.value, def.provider.deps);
      }

      function createDirectiveInstance(view, def) {
        // components can see other private services, other directives can't.
        var allowPrivateServices = (def.flags & 32768
        /* Component */
        ) > 0; // directives are always eager and classes!

        var instance = createClass(view, def.parent, allowPrivateServices, def.provider.value, def.provider.deps);

        if (def.outputs.length) {
          for (var i = 0; i < def.outputs.length; i++) {
            var output = def.outputs[i];
            var outputObservable = instance[output.propName];

            if (isObservable(outputObservable)) {
              var subscription = outputObservable.subscribe(eventHandlerClosure(view, def.parent.nodeIndex, output.eventName));
              view.disposables[def.outputIndex + i] = subscription.unsubscribe.bind(subscription);
            } else {
              throw new Error("@Output ".concat(output.propName, " not initialized in '").concat(instance.constructor.name, "'."));
            }
          }
        }

        return instance;
      }

      function eventHandlerClosure(view, index, eventName) {
        return function (event) {
          return dispatchEvent(view, index, eventName, event);
        };
      }

      function checkAndUpdateDirectiveInline(view, def, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9) {
        var providerData = asProviderData(view, def.nodeIndex);
        var directive = providerData.instance;
        var changed = false;
        var changes = undefined;
        var bindLen = def.bindings.length;

        if (bindLen > 0 && checkBinding(view, def, 0, v0)) {
          changed = true;
          changes = updateProp(view, providerData, def, 0, v0, changes);
        }

        if (bindLen > 1 && checkBinding(view, def, 1, v1)) {
          changed = true;
          changes = updateProp(view, providerData, def, 1, v1, changes);
        }

        if (bindLen > 2 && checkBinding(view, def, 2, v2)) {
          changed = true;
          changes = updateProp(view, providerData, def, 2, v2, changes);
        }

        if (bindLen > 3 && checkBinding(view, def, 3, v3)) {
          changed = true;
          changes = updateProp(view, providerData, def, 3, v3, changes);
        }

        if (bindLen > 4 && checkBinding(view, def, 4, v4)) {
          changed = true;
          changes = updateProp(view, providerData, def, 4, v4, changes);
        }

        if (bindLen > 5 && checkBinding(view, def, 5, v5)) {
          changed = true;
          changes = updateProp(view, providerData, def, 5, v5, changes);
        }

        if (bindLen > 6 && checkBinding(view, def, 6, v6)) {
          changed = true;
          changes = updateProp(view, providerData, def, 6, v6, changes);
        }

        if (bindLen > 7 && checkBinding(view, def, 7, v7)) {
          changed = true;
          changes = updateProp(view, providerData, def, 7, v7, changes);
        }

        if (bindLen > 8 && checkBinding(view, def, 8, v8)) {
          changed = true;
          changes = updateProp(view, providerData, def, 8, v8, changes);
        }

        if (bindLen > 9 && checkBinding(view, def, 9, v9)) {
          changed = true;
          changes = updateProp(view, providerData, def, 9, v9, changes);
        }

        if (changes) {
          directive.ngOnChanges(changes);
        }

        if (def.flags & 65536
        /* OnInit */
        && shouldCallLifecycleInitHook(view, 256
        /* InitState_CallingOnInit */
        , def.nodeIndex)) {
          directive.ngOnInit();
        }

        if (def.flags & 262144
        /* DoCheck */
        ) {
          directive.ngDoCheck();
        }

        return changed;
      }

      function checkAndUpdateDirectiveDynamic(view, def, values) {
        var providerData = asProviderData(view, def.nodeIndex);
        var directive = providerData.instance;
        var changed = false;
        var changes = undefined;

        for (var i = 0; i < values.length; i++) {
          if (checkBinding(view, def, i, values[i])) {
            changed = true;
            changes = updateProp(view, providerData, def, i, values[i], changes);
          }
        }

        if (changes) {
          directive.ngOnChanges(changes);
        }

        if (def.flags & 65536
        /* OnInit */
        && shouldCallLifecycleInitHook(view, 256
        /* InitState_CallingOnInit */
        , def.nodeIndex)) {
          directive.ngOnInit();
        }

        if (def.flags & 262144
        /* DoCheck */
        ) {
          directive.ngDoCheck();
        }

        return changed;
      }

      function _createProviderInstance$1(view, def) {
        // private services can see other private services
        var allowPrivateServices = (def.flags & 8192
        /* PrivateProvider */
        ) > 0;
        var providerDef = def.provider;

        switch (def.flags & 201347067
        /* Types */
        ) {
          case 512
          /* TypeClassProvider */
          :
            return createClass(view, def.parent, allowPrivateServices, providerDef.value, providerDef.deps);

          case 1024
          /* TypeFactoryProvider */
          :
            return callFactory(view, def.parent, allowPrivateServices, providerDef.value, providerDef.deps);

          case 2048
          /* TypeUseExistingProvider */
          :
            return resolveDep(view, def.parent, allowPrivateServices, providerDef.deps[0]);

          case 256
          /* TypeValueProvider */
          :
            return providerDef.value;
        }
      }

      function createClass(view, elDef, allowPrivateServices, ctor, deps) {
        var len = deps.length;

        switch (len) {
          case 0:
            return new ctor();

          case 1:
            return new ctor(resolveDep(view, elDef, allowPrivateServices, deps[0]));

          case 2:
            return new ctor(resolveDep(view, elDef, allowPrivateServices, deps[0]), resolveDep(view, elDef, allowPrivateServices, deps[1]));

          case 3:
            return new ctor(resolveDep(view, elDef, allowPrivateServices, deps[0]), resolveDep(view, elDef, allowPrivateServices, deps[1]), resolveDep(view, elDef, allowPrivateServices, deps[2]));

          default:
            var depValues = [];

            for (var i = 0; i < len; i++) {
              depValues.push(resolveDep(view, elDef, allowPrivateServices, deps[i]));
            }

            return _construct2(ctor, depValues);
        }
      }

      function callFactory(view, elDef, allowPrivateServices, factory, deps) {
        var len = deps.length;

        switch (len) {
          case 0:
            return factory();

          case 1:
            return factory(resolveDep(view, elDef, allowPrivateServices, deps[0]));

          case 2:
            return factory(resolveDep(view, elDef, allowPrivateServices, deps[0]), resolveDep(view, elDef, allowPrivateServices, deps[1]));

          case 3:
            return factory(resolveDep(view, elDef, allowPrivateServices, deps[0]), resolveDep(view, elDef, allowPrivateServices, deps[1]), resolveDep(view, elDef, allowPrivateServices, deps[2]));

          default:
            var depValues = [];

            for (var i = 0; i < len; i++) {
              depValues.push(resolveDep(view, elDef, allowPrivateServices, deps[i]));
            }

            return factory.apply(void 0, depValues);
        }
      } // This default value is when checking the hierarchy for a token.
      //
      // It means both:
      // - the token is not provided by the current injector,
      // - only the element injectors should be checked (ie do not check module injectors
      //
      //          mod1
      //         /
      //       el1   mod2
      //         \  /
      //         el2
      //
      // When requesting el2.injector.get(token), we should check in the following order and return the
      // first found value:
      // - el2.injector.get(token, default)
      // - el1.injector.get(token, NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR) -> do not check the module
      // - mod2.injector.get(token, default)


      var NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR = {};

      function resolveDep(view, elDef, allowPrivateServices, depDef) {
        var notFoundValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : Injector.THROW_IF_NOT_FOUND;

        if (depDef.flags & 8
        /* Value */
        ) {
          return depDef.token;
        }

        var startView = view;

        if (depDef.flags & 2
        /* Optional */
        ) {
          notFoundValue = null;
        }

        var tokenKey = depDef.tokenKey;

        if (tokenKey === ChangeDetectorRefTokenKey) {
          // directives on the same element as a component should be able to control the change detector
          // of that component as well.
          allowPrivateServices = !!(elDef && elDef.element.componentView);
        }

        if (elDef && depDef.flags & 1
        /* SkipSelf */
        ) {
          allowPrivateServices = false;
          elDef = elDef.parent;
        }

        var searchView = view;

        while (searchView) {
          if (elDef) {
            switch (tokenKey) {
              case Renderer2TokenKey:
                {
                  var compView = findCompView(searchView, elDef, allowPrivateServices);
                  return compView.renderer;
                }

              case ElementRefTokenKey:
                return new ElementRef(asElementData(searchView, elDef.nodeIndex).renderElement);

              case ViewContainerRefTokenKey:
                return asElementData(searchView, elDef.nodeIndex).viewContainer;

              case TemplateRefTokenKey:
                {
                  if (elDef.element.template) {
                    return asElementData(searchView, elDef.nodeIndex).template;
                  }

                  break;
                }

              case ChangeDetectorRefTokenKey:
                {
                  var cdView = findCompView(searchView, elDef, allowPrivateServices);
                  return createChangeDetectorRef(cdView);
                }

              case InjectorRefTokenKey$1:
              case INJECTORRefTokenKey$1:
                return createInjector$1(searchView, elDef);

              default:
                var _providerDef3 = (allowPrivateServices ? elDef.element.allProviders : elDef.element.publicProviders)[tokenKey];

                if (_providerDef3) {
                  var providerData = asProviderData(searchView, _providerDef3.nodeIndex);

                  if (!providerData) {
                    providerData = {
                      instance: _createProviderInstance$1(searchView, _providerDef3)
                    };
                    searchView.nodes[_providerDef3.nodeIndex] = providerData;
                  }

                  return providerData.instance;
                }

            }
          }

          allowPrivateServices = isComponentView(searchView);
          elDef = viewParentEl(searchView);
          searchView = searchView.parent;

          if (depDef.flags & 4
          /* Self */
          ) {
            searchView = null;
          }
        }

        var value = startView.root.injector.get(depDef.token, NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR);

        if (value !== NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR || notFoundValue === NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR) {
          // Return the value from the root element injector when
          // - it provides it
          //   (value !== NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR)
          // - the module injector should not be checked
          //   (notFoundValue === NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR)
          return value;
        }

        return startView.root.ngModule.injector.get(depDef.token, notFoundValue);
      }

      function findCompView(view, elDef, allowPrivateServices) {
        var compView;

        if (allowPrivateServices) {
          compView = asElementData(view, elDef.nodeIndex).componentView;
        } else {
          compView = view;

          while (compView.parent && !isComponentView(compView)) {
            compView = compView.parent;
          }
        }

        return compView;
      }

      function updateProp(view, providerData, def, bindingIdx, value, changes) {
        if (def.flags & 32768
        /* Component */
        ) {
          var compView = asElementData(view, def.parent.nodeIndex).componentView;

          if (compView.def.flags & 2
          /* OnPush */
          ) {
            compView.state |= 8
            /* ChecksEnabled */
            ;
          }
        }

        var binding = def.bindings[bindingIdx];
        var propName = binding.name; // Note: This is still safe with Closure Compiler as
        // the user passed in the property name as an object has to `providerDef`,
        // so Closure Compiler will have renamed the property correctly already.

        providerData.instance[propName] = value;

        if (def.flags & 524288
        /* OnChanges */
        ) {
          changes = changes || {};
          var oldValue = WrappedValue.unwrap(view.oldValues[def.bindingIndex + bindingIdx]);
          var _binding = def.bindings[bindingIdx];
          changes[_binding.nonMinifiedName] = new SimpleChange(oldValue, value, (view.state & 2
          /* FirstCheck */
          ) !== 0);
        }

        view.oldValues[def.bindingIndex + bindingIdx] = value;
        return changes;
      } // This function calls the ngAfterContentCheck, ngAfterContentInit,
      // ngAfterViewCheck, and ngAfterViewInit lifecycle hooks (depending on the node
      // flags in lifecycle). Unlike ngDoCheck, ngOnChanges and ngOnInit, which are
      // called during a pre-order traversal of the view tree (that is calling the
      // parent hooks before the child hooks) these events are sent in using a
      // post-order traversal of the tree (children before parents). This changes the
      // meaning of initIndex in the view state. For ngOnInit, initIndex tracks the
      // expected nodeIndex which a ngOnInit should be called. When sending
      // ngAfterContentInit and ngAfterViewInit it is the expected count of
      // ngAfterContentInit or ngAfterViewInit methods that have been called. This
      // ensure that despite being called recursively or after picking up after an
      // exception, the ngAfterContentInit or ngAfterViewInit will be called on the
      // correct nodes. Consider for example, the following (where E is an element
      // and D is a directive)
      //  Tree:       pre-order index  post-order index
      //    E1        0                6
      //      E2      1                1
      //       D3     2                0
      //      E4      3                5
      //       E5     4                4
      //        E6    5                2
      //        E7    6                3
      // As can be seen, the post-order index has an unclear relationship to the
      // pre-order index (postOrderIndex === preOrderIndex - parentCount +
      // childCount). Since number of calls to ngAfterContentInit and ngAfterViewInit
      // are stable (will be the same for the same view regardless of exceptions or
      // recursion) we just need to count them which will roughly correspond to the
      // post-order index (it skips elements and directives that do not have
      // lifecycle hooks).
      //
      // For example, if an exception is raised in the E6.onAfterViewInit() the
      // initIndex is left at 3 (by shouldCallLifecycleInitHook() which set it to
      // initIndex + 1). When checkAndUpdateView() is called again D3, E2 and E6 will
      // not have their ngAfterViewInit() called but, starting with E7, the rest of
      // the view will begin getting ngAfterViewInit() called until a check and
      // pass is complete.
      //
      // This algorthim also handles recursion. Consider if E4's ngAfterViewInit()
      // indirectly calls E1's ChangeDetectorRef.detectChanges(). The expected
      // initIndex is set to 6, the recusive checkAndUpdateView() starts walk again.
      // D3, E2, E6, E7, E5 and E4 are skipped, ngAfterViewInit() is called on E1.
      // When the recursion returns the initIndex will be 7 so E1 is skipped as it
      // has already been called in the recursively called checkAnUpdateView().


      function callLifecycleHooksChildrenFirst(view, lifecycles) {
        if (!(view.def.nodeFlags & lifecycles)) {
          return;
        }

        var nodes = view.def.nodes;
        var initIndex = 0;

        for (var i = 0; i < nodes.length; i++) {
          var nodeDef = nodes[i];
          var parent = nodeDef.parent;

          if (!parent && nodeDef.flags & lifecycles) {
            // matching root node (e.g. a pipe)
            callProviderLifecycles(view, i, nodeDef.flags & lifecycles, initIndex++);
          }

          if ((nodeDef.childFlags & lifecycles) === 0) {
            // no child matches one of the lifecycles
            i += nodeDef.childCount;
          }

          while (parent && parent.flags & 1
          /* TypeElement */
          && i === parent.nodeIndex + parent.childCount) {
            // last child of an element
            if (parent.directChildFlags & lifecycles) {
              initIndex = callElementProvidersLifecycles(view, parent, lifecycles, initIndex);
            }

            parent = parent.parent;
          }
        }
      }

      function callElementProvidersLifecycles(view, elDef, lifecycles, initIndex) {
        for (var i = elDef.nodeIndex + 1; i <= elDef.nodeIndex + elDef.childCount; i++) {
          var nodeDef = view.def.nodes[i];

          if (nodeDef.flags & lifecycles) {
            callProviderLifecycles(view, i, nodeDef.flags & lifecycles, initIndex++);
          } // only visit direct children


          i += nodeDef.childCount;
        }

        return initIndex;
      }

      function callProviderLifecycles(view, index, lifecycles, initIndex) {
        var providerData = asProviderData(view, index);

        if (!providerData) {
          return;
        }

        var provider = providerData.instance;

        if (!provider) {
          return;
        }

        Services.setCurrentNode(view, index);

        if (lifecycles & 1048576
        /* AfterContentInit */
        && shouldCallLifecycleInitHook(view, 512
        /* InitState_CallingAfterContentInit */
        , initIndex)) {
          provider.ngAfterContentInit();
        }

        if (lifecycles & 2097152
        /* AfterContentChecked */
        ) {
          provider.ngAfterContentChecked();
        }

        if (lifecycles & 4194304
        /* AfterViewInit */
        && shouldCallLifecycleInitHook(view, 768
        /* InitState_CallingAfterViewInit */
        , initIndex)) {
          provider.ngAfterViewInit();
        }

        if (lifecycles & 8388608
        /* AfterViewChecked */
        ) {
          provider.ngAfterViewChecked();
        }

        if (lifecycles & 131072
        /* OnDestroy */
        ) {
          provider.ngOnDestroy();
        }
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var ComponentFactoryResolver$1 = /*#__PURE__*/function (_ComponentFactoryReso) {
        _inherits2(ComponentFactoryResolver$1, _ComponentFactoryReso);

        var _super160 = _createSuper2(ComponentFactoryResolver$1);

        /**
         * @param ngModule The NgModuleRef to which all resolved factories are bound.
         */
        function ComponentFactoryResolver$1(ngModule) {
          var _this415;

          _classCallCheck2(this, ComponentFactoryResolver$1);

          _this415 = _super160.call(this);
          _this415.ngModule = ngModule;
          return _this415;
        }

        _createClass2(ComponentFactoryResolver$1, [{
          key: "resolveComponentFactory",
          value: function resolveComponentFactory(component) {
            ngDevMode && assertComponentType(component);
            var componentDef = getComponentDef(component);
            return new ComponentFactory$1(componentDef, this.ngModule);
          }
        }]);

        return ComponentFactoryResolver$1;
      }(ComponentFactoryResolver);

      function toRefArray(map) {
        var array = [];

        for (var nonMinified in map) {
          if (map.hasOwnProperty(nonMinified)) {
            var minified = map[nonMinified];
            array.push({
              propName: minified,
              templateName: nonMinified
            });
          }
        }

        return array;
      }

      function getNamespace$1(elementName) {
        var name = elementName.toLowerCase();
        return name === 'svg' ? SVG_NAMESPACE : name === 'math' ? MATH_ML_NAMESPACE : null;
      }
      /**
       * A change detection scheduler token for {@link RootContext}. This token is the default value used
       * for the default `RootContext` found in the {@link ROOT_CONTEXT} token.
       */


      var SCHEDULER = new InjectionToken('SCHEDULER_TOKEN', {
        providedIn: 'root',
        factory: function factory() {
          return defaultScheduler;
        }
      });

      function createChainedInjector(rootViewInjector, moduleInjector) {
        return {
          get: function get(token, notFoundValue, flags) {
            var value = rootViewInjector.get(token, NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR, flags);

            if (value !== NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR || notFoundValue === NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR) {
              // Return the value from the root element injector when
              // - it provides it
              //   (value !== NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR)
              // - the module injector should not be checked
              //   (notFoundValue === NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR)
              return value;
            }

            return moduleInjector.get(token, notFoundValue, flags);
          }
        };
      }
      /**
       * Render3 implementation of {@link viewEngine_ComponentFactory}.
       */


      var ComponentFactory$1 = /*#__PURE__*/function (_ComponentFactory3) {
        _inherits2(ComponentFactory$1, _ComponentFactory3);

        var _super161 = _createSuper2(ComponentFactory$1);

        /**
         * @param componentDef The component definition.
         * @param ngModule The NgModuleRef to which the factory is bound.
         */
        function ComponentFactory$1(componentDef, ngModule) {
          var _this416;

          _classCallCheck2(this, ComponentFactory$1);

          _this416 = _super161.call(this);
          _this416.componentDef = componentDef;
          _this416.ngModule = ngModule;
          _this416.componentType = componentDef.type;
          _this416.selector = stringifyCSSSelectorList(componentDef.selectors);
          _this416.ngContentSelectors = componentDef.ngContentSelectors ? componentDef.ngContentSelectors : [];
          _this416.isBoundToModule = !!ngModule;
          return _this416;
        }

        _createClass2(ComponentFactory$1, [{
          key: "inputs",
          get: function get() {
            return toRefArray(this.componentDef.inputs);
          }
        }, {
          key: "outputs",
          get: function get() {
            return toRefArray(this.componentDef.outputs);
          }
        }, {
          key: "create",
          value: function create(injector, projectableNodes, rootSelectorOrNode, ngModule) {
            ngModule = ngModule || this.ngModule;
            var rootViewInjector = ngModule ? createChainedInjector(injector, ngModule.injector) : injector;
            var rendererFactory = rootViewInjector.get(RendererFactory2, domRendererFactory3);
            var sanitizer = rootViewInjector.get(Sanitizer, null);
            var hostRenderer = rendererFactory.createRenderer(null, this.componentDef); // Determine a tag name used for creating host elements when this component is created
            // dynamically. Default to 'div' if this component did not specify any tag name in its selector.

            var elementName = this.componentDef.selectors[0][0] || 'div';
            var hostRNode = rootSelectorOrNode ? locateHostElement(hostRenderer, rootSelectorOrNode, this.componentDef.encapsulation) : createElementNode(rendererFactory.createRenderer(null, this.componentDef), elementName, getNamespace$1(elementName));
            var rootFlags = this.componentDef.onPush ? 64
            /* Dirty */
            | 512
            /* IsRoot */
            : 16
            /* CheckAlways */
            | 512
            /* IsRoot */
            ;
            var rootContext = createRootContext(); // Create the root view. Uses empty TView and ContentTemplate.

            var rootTView = createTView(0
            /* Root */
            , null, null, 1, 0, null, null, null, null, null);
            var rootLView = createLView(null, rootTView, rootContext, rootFlags, null, null, rendererFactory, hostRenderer, sanitizer, rootViewInjector); // rootView is the parent when bootstrapping
            // TODO(misko): it looks like we are entering view here but we don't really need to as
            // `renderView` does that. However as the code is written it is needed because
            // `createRootComponentView` and `createRootComponent` both read global state. Fixing those
            // issues would allow us to drop this.

            enterView(rootLView);
            var component;
            var tElementNode;

            try {
              var componentView = createRootComponentView(hostRNode, this.componentDef, rootLView, rendererFactory, hostRenderer);

              if (hostRNode) {
                if (rootSelectorOrNode) {
                  setUpAttributes(hostRenderer, hostRNode, ['ng-version', VERSION.full]);
                } else {
                  // If host element is created as a part of this function call (i.e. `rootSelectorOrNode`
                  // is not defined), also apply attributes and classes extracted from component selector.
                  // Extract attributes and classes from the first selector only to match VE behavior.
                  var _extractAttrsAndClass = extractAttrsAndClassesFromSelector(this.componentDef.selectors[0]),
                      attrs = _extractAttrsAndClass.attrs,
                      classes = _extractAttrsAndClass.classes;

                  if (attrs) {
                    setUpAttributes(hostRenderer, hostRNode, attrs);
                  }

                  if (classes && classes.length > 0) {
                    writeDirectClass(hostRenderer, hostRNode, classes.join(' '));
                  }
                }
              }

              tElementNode = getTNode(rootTView, HEADER_OFFSET);

              if (projectableNodes !== undefined) {
                var projection = tElementNode.projection = [];

                for (var i = 0; i < this.ngContentSelectors.length; i++) {
                  var nodesforSlot = projectableNodes[i]; // Projectable nodes can be passed as array of arrays or an array of iterables (ngUpgrade
                  // case). Here we do normalize passed data structure to be an array of arrays to avoid
                  // complex checks down the line.
                  // We also normalize the length of the passed in projectable nodes (to match the number of
                  // <ng-container> slots defined by a component).

                  projection.push(nodesforSlot != null ? Array.from(nodesforSlot) : null);
                }
              } // TODO: should LifecycleHooksFeature and other host features be generated by the compiler and
              // executed here?
              // Angular 5 reference: https://stackblitz.com/edit/lifecycle-hooks-vcref


              component = createRootComponent(componentView, this.componentDef, rootLView, rootContext, [LifecycleHooksFeature]);
              renderView(rootTView, rootLView, null);
            } finally {
              leaveView();
            }

            return new ComponentRef$1(this.componentType, component, createElementRef(ElementRef, tElementNode, rootLView), rootLView, tElementNode);
          }
        }]);

        return ComponentFactory$1;
      }(ComponentFactory);

      var componentFactoryResolver = new ComponentFactoryResolver$1();
      /**
       * Creates a ComponentFactoryResolver and stores it on the injector. Or, if the
       * ComponentFactoryResolver
       * already exists, retrieves the existing ComponentFactoryResolver.
       *
       * @returns The ComponentFactoryResolver instance to use
       */

      function injectComponentFactoryResolver() {
        return componentFactoryResolver;
      }
      /**
       * Represents an instance of a Component created via a {@link ComponentFactory}.
       *
       * `ComponentRef` provides access to the Component Instance as well other objects related to this
       * Component Instance and allows you to destroy the Component Instance via the {@link #destroy}
       * method.
       *
       */


      var ComponentRef$1 = /*#__PURE__*/function (_ComponentRef2) {
        _inherits2(ComponentRef$1, _ComponentRef2);

        var _super162 = _createSuper2(ComponentRef$1);

        function ComponentRef$1(componentType, instance, location, _rootLView, _tNode) {
          var _this417;

          _classCallCheck2(this, ComponentRef$1);

          _this417 = _super162.call(this);
          _this417.location = location;
          _this417._rootLView = _rootLView;
          _this417._tNode = _tNode;
          _this417.destroyCbs = [];
          _this417.instance = instance;
          _this417.hostView = _this417.changeDetectorRef = new RootViewRef(_rootLView);
          _this417.componentType = componentType;
          return _this417;
        }

        _createClass2(ComponentRef$1, [{
          key: "injector",
          get: function get() {
            return new NodeInjector(this._tNode, this._rootLView);
          }
        }, {
          key: "destroy",
          value: function destroy() {
            if (this.destroyCbs) {
              this.destroyCbs.forEach(function (fn) {
                return fn();
              });
              this.destroyCbs = null;
              !this.hostView.destroyed && this.hostView.destroy();
            }
          }
        }, {
          key: "onDestroy",
          value: function onDestroy(callback) {
            if (this.destroyCbs) {
              this.destroyCbs.push(callback);
            }
          }
        }]);

        return ComponentRef$1;
      }(ComponentRef);
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Adds decorator, constructor, and property metadata to a given type via static metadata fields
       * on the type.
       *
       * These metadata fields can later be read with Angular's `ReflectionCapabilities` API.
       *
       * Calls to `setClassMetadata` can be marked as pure, resulting in the metadata assignments being
       * tree-shaken away during production builds.
       */


      function setClassMetadata(type, decorators, ctorParameters, propDecorators) {
        return noSideEffects(function () {
          var clazz = type;

          if (decorators !== null) {
            if (clazz.hasOwnProperty('decorators') && clazz.decorators !== undefined) {
              var _clazz$decorators;

              (_clazz$decorators = clazz.decorators).push.apply(_clazz$decorators, _toConsumableArray(decorators));
            } else {
              clazz.decorators = decorators;
            }
          }

          if (ctorParameters !== null) {
            // Rather than merging, clobber the existing parameters. If other projects exist which
            // use tsickle-style annotations and reflect over them in the same way, this could
            // cause issues, but that is vanishingly unlikely.
            clazz.ctorParameters = ctorParameters;
          }

          if (propDecorators !== null) {
            // The property decorator objects are merged as it is possible different fields have
            // different decorator types. Decorators on individual fields are not merged, as it's
            // also incredibly unlikely that a field will be decorated both with an Angular
            // decorator and a non-Angular decorator that's also been downleveled.
            if (clazz.hasOwnProperty('propDecorators') && clazz.propDecorators !== undefined) {
              clazz.propDecorators = Object.assign(Object.assign({}, clazz.propDecorators), propDecorators);
            } else {
              clazz.propDecorators = propDecorators;
            }
          }
        });
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Map of module-id to the corresponding NgModule.
       * - In pre Ivy we track NgModuleFactory,
       * - In post Ivy we track the NgModuleType
       */


      var modules = new Map();
      /**
       * Registers a loaded module. Should only be called from generated NgModuleFactory code.
       * @publicApi
       */

      function registerModuleFactory(id, factory) {
        var existing = modules.get(id);
        assertSameOrNotExisting(id, existing && existing.moduleType, factory.moduleType);
        modules.set(id, factory);
      }

      function assertSameOrNotExisting(id, type, incoming) {
        if (type && type !== incoming) {
          throw new Error("Duplicate module registered for ".concat(id, " - ").concat(stringify(type), " vs ").concat(stringify(type.name)));
        }
      }

      function registerNgModuleType(ngModuleType) {
        var visited = new Set();
        recurse(ngModuleType);

        function recurse(ngModuleType) {
          // The imports array of an NgModule must refer to other NgModules,
          // so an error is thrown if no module definition is available.
          var def = getNgModuleDef(ngModuleType,
          /* throwNotFound */
          true);
          var id = def.id;

          if (id !== null) {
            var existing = modules.get(id);
            assertSameOrNotExisting(id, existing, ngModuleType);
            modules.set(id, ngModuleType);
          }

          var imports = maybeUnwrapFn(def.imports);

          var _iterator52 = _createForOfIteratorHelper(imports),
              _step51;

          try {
            for (_iterator52.s(); !(_step51 = _iterator52.n()).done;) {
              var i = _step51.value;

              if (!visited.has(i)) {
                visited.add(i);
                recurse(i);
              }
            }
          } catch (err) {
            _iterator52.e(err);
          } finally {
            _iterator52.f();
          }
        }
      }

      function clearModulesForTest() {
        modules.clear();
      }

      function getRegisteredNgModuleType(id) {
        return modules.get(id) || autoRegisterModuleById[id];
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var NgModuleRef$1 = /*#__PURE__*/function (_NgModuleRef) {
        _inherits2(NgModuleRef$1, _NgModuleRef);

        var _super163 = _createSuper2(NgModuleRef$1);

        function NgModuleRef$1(ngModuleType, _parent) {
          var _this418;

          _classCallCheck2(this, NgModuleRef$1);

          _this418 = _super163.call(this);
          _this418._parent = _parent; // tslint:disable-next-line:require-internal-with-underscore

          _this418._bootstrapComponents = [];
          _this418.injector = _assertThisInitialized2(_this418);
          _this418.destroyCbs = []; // When bootstrapping a module we have a dependency graph that looks like this:
          // ApplicationRef -> ComponentFactoryResolver -> NgModuleRef. The problem is that if the
          // module being resolved tries to inject the ComponentFactoryResolver, it'll create a
          // circular dependency which will result in a runtime error, because the injector doesn't
          // exist yet. We work around the issue by creating the ComponentFactoryResolver ourselves
          // and providing it, rather than letting the injector resolve it.

          _this418.componentFactoryResolver = new ComponentFactoryResolver$1(_assertThisInitialized2(_this418));
          var ngModuleDef = getNgModuleDef(ngModuleType);
          ngDevMode && assertDefined(ngModuleDef, "NgModule '".concat(stringify(ngModuleType), "' is not a subtype of 'NgModuleType'."));
          var ngLocaleIdDef = getNgLocaleIdDef(ngModuleType);
          ngLocaleIdDef && setLocaleId(ngLocaleIdDef);
          _this418._bootstrapComponents = maybeUnwrapFn(ngModuleDef.bootstrap);
          _this418._r3Injector = createInjectorWithoutInjectorInstances(ngModuleType, _parent, [{
            provide: NgModuleRef,
            useValue: _assertThisInitialized2(_this418)
          }, {
            provide: ComponentFactoryResolver,
            useValue: _this418.componentFactoryResolver
          }], stringify(ngModuleType)); // We need to resolve the injector types separately from the injector creation, because
          // the module might be trying to use this ref in its contructor for DI which will cause a
          // circular error that will eventually error out, because the injector isn't created yet.

          _this418._r3Injector._resolveInjectorDefTypes();

          _this418.instance = _this418.get(ngModuleType);
          return _this418;
        }

        _createClass2(NgModuleRef$1, [{
          key: "get",
          value: function get(token) {
            var notFoundValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Injector.THROW_IF_NOT_FOUND;
            var injectFlags = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : InjectFlags.Default;

            if (token === Injector || token === NgModuleRef || token === INJECTOR) {
              return this;
            }

            return this._r3Injector.get(token, notFoundValue, injectFlags);
          }
        }, {
          key: "destroy",
          value: function destroy() {
            ngDevMode && assertDefined(this.destroyCbs, 'NgModule already destroyed');
            var injector = this._r3Injector;
            !injector.destroyed && injector.destroy();
            this.destroyCbs.forEach(function (fn) {
              return fn();
            });
            this.destroyCbs = null;
          }
        }, {
          key: "onDestroy",
          value: function onDestroy(callback) {
            ngDevMode && assertDefined(this.destroyCbs, 'NgModule already destroyed');
            this.destroyCbs.push(callback);
          }
        }]);

        return NgModuleRef$1;
      }(NgModuleRef);

      var NgModuleFactory$1 = /*#__PURE__*/function (_NgModuleFactory) {
        _inherits2(NgModuleFactory$1, _NgModuleFactory);

        var _super164 = _createSuper2(NgModuleFactory$1);

        function NgModuleFactory$1(moduleType) {
          var _this419;

          _classCallCheck2(this, NgModuleFactory$1);

          _this419 = _super164.call(this);
          _this419.moduleType = moduleType;
          var ngModuleDef = getNgModuleDef(moduleType);

          if (ngModuleDef !== null) {
            // Register the NgModule with Angular's module registry. The location (and hence timing) of
            // this call is critical to ensure this works correctly (modules get registered when expected)
            // without bloating bundles (modules are registered when otherwise not referenced).
            //
            // In View Engine, registration occurs in the .ngfactory.js file as a side effect. This has
            // several practical consequences:
            //
            // - If an .ngfactory file is not imported from, the module won't be registered (and can be
            //   tree shaken).
            // - If an .ngfactory file is imported from, the module will be registered even if an instance
            //   is not actually created (via `create` below).
            // - Since an .ngfactory file in View Engine references the .ngfactory files of the NgModule's
            //   imports,
            //
            // In Ivy, things are a bit different. .ngfactory files still exist for compatibility, but are
            // not a required API to use - there are other ways to obtain an NgModuleFactory for a given
            // NgModule. Thus, relying on a side effect in the .ngfactory file is not sufficient. Instead,
            // the side effect of registration is added here, in the constructor of NgModuleFactory,
            // ensuring no matter how a factory is created, the module is registered correctly.
            //
            // An alternative would be to include the registration side effect inline following the actual
            // NgModule definition. This also has the correct timing, but breaks tree-shaking - modules
            // will be registered and retained even if they're otherwise never referenced.
            registerNgModuleType(moduleType);
          }

          return _this419;
        }

        _createClass2(NgModuleFactory$1, [{
          key: "create",
          value: function create(parentInjector) {
            return new NgModuleRef$1(this.moduleType, parentInjector);
          }
        }]);

        return NgModuleFactory$1;
      }(NgModuleFactory);
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Bindings for pure functions are stored after regular bindings.
       *
       * |-------decls------|---------vars---------|                 |----- hostVars (dir1) ------|
       * ------------------------------------------------------------------------------------------
       * | nodes/refs/pipes | bindings | fn slots  | injector | dir1 | host bindings | host slots |
       * ------------------------------------------------------------------------------------------
       *                    ^                      ^
       *      TView.bindingStartIndex      TView.expandoStartIndex
       *
       * Pure function instructions are given an offset from the binding root. Adding the offset to the
       * binding root gives the first index where the bindings are stored. In component views, the binding
       * root is the bindingStartIndex. In host bindings, the binding root is the expandoStartIndex +
       * any directive instances + any hostVars in directives evaluated before it.
       *
       * See VIEW_DATA.md for more information about host binding resolution.
       */

      /**
       * If the value hasn't been saved, calls the pure function to store and return the
       * value. If it has been saved, returns the saved value.
       *
       * @param slotOffset the offset from binding root to the reserved slot
       * @param pureFn Function that returns a value
       * @param thisArg Optional calling context of pureFn
       * @returns value
       *
       * @codeGenApi
       */


      function ɵɵpureFunction0(slotOffset, pureFn, thisArg) {
        var bindingIndex = getBindingRoot() + slotOffset;
        var lView = getLView();
        return lView[bindingIndex] === NO_CHANGE ? updateBinding(lView, bindingIndex, thisArg ? pureFn.call(thisArg) : pureFn()) : getBinding(lView, bindingIndex);
      }
      /**
       * If the value of the provided exp has changed, calls the pure function to return
       * an updated value. Or if the value has not changed, returns cached value.
       *
       * @param slotOffset the offset from binding root to the reserved slot
       * @param pureFn Function that returns an updated value
       * @param exp Updated expression value
       * @param thisArg Optional calling context of pureFn
       * @returns Updated or cached value
       *
       * @codeGenApi
       */


      function ɵɵpureFunction1(slotOffset, pureFn, exp, thisArg) {
        return pureFunction1Internal(getLView(), getBindingRoot(), slotOffset, pureFn, exp, thisArg);
      }
      /**
       * If the value of any provided exp has changed, calls the pure function to return
       * an updated value. Or if no values have changed, returns cached value.
       *
       * @param slotOffset the offset from binding root to the reserved slot
       * @param pureFn
       * @param exp1
       * @param exp2
       * @param thisArg Optional calling context of pureFn
       * @returns Updated or cached value
       *
       * @codeGenApi
       */


      function ɵɵpureFunction2(slotOffset, pureFn, exp1, exp2, thisArg) {
        return pureFunction2Internal(getLView(), getBindingRoot(), slotOffset, pureFn, exp1, exp2, thisArg);
      }
      /**
       * If the value of any provided exp has changed, calls the pure function to return
       * an updated value. Or if no values have changed, returns cached value.
       *
       * @param slotOffset the offset from binding root to the reserved slot
       * @param pureFn
       * @param exp1
       * @param exp2
       * @param exp3
       * @param thisArg Optional calling context of pureFn
       * @returns Updated or cached value
       *
       * @codeGenApi
       */


      function ɵɵpureFunction3(slotOffset, pureFn, exp1, exp2, exp3, thisArg) {
        return pureFunction3Internal(getLView(), getBindingRoot(), slotOffset, pureFn, exp1, exp2, exp3, thisArg);
      }
      /**
       * If the value of any provided exp has changed, calls the pure function to return
       * an updated value. Or if no values have changed, returns cached value.
       *
       * @param slotOffset the offset from binding root to the reserved slot
       * @param pureFn
       * @param exp1
       * @param exp2
       * @param exp3
       * @param exp4
       * @param thisArg Optional calling context of pureFn
       * @returns Updated or cached value
       *
       * @codeGenApi
       */


      function ɵɵpureFunction4(slotOffset, pureFn, exp1, exp2, exp3, exp4, thisArg) {
        return pureFunction4Internal(getLView(), getBindingRoot(), slotOffset, pureFn, exp1, exp2, exp3, exp4, thisArg);
      }
      /**
       * If the value of any provided exp has changed, calls the pure function to return
       * an updated value. Or if no values have changed, returns cached value.
       *
       * @param slotOffset the offset from binding root to the reserved slot
       * @param pureFn
       * @param exp1
       * @param exp2
       * @param exp3
       * @param exp4
       * @param exp5
       * @param thisArg Optional calling context of pureFn
       * @returns Updated or cached value
       *
       * @codeGenApi
       */


      function ɵɵpureFunction5(slotOffset, pureFn, exp1, exp2, exp3, exp4, exp5, thisArg) {
        var bindingIndex = getBindingRoot() + slotOffset;
        var lView = getLView();
        var different = bindingUpdated4(lView, bindingIndex, exp1, exp2, exp3, exp4);
        return bindingUpdated(lView, bindingIndex + 4, exp5) || different ? updateBinding(lView, bindingIndex + 5, thisArg ? pureFn.call(thisArg, exp1, exp2, exp3, exp4, exp5) : pureFn(exp1, exp2, exp3, exp4, exp5)) : getBinding(lView, bindingIndex + 5);
      }
      /**
       * If the value of any provided exp has changed, calls the pure function to return
       * an updated value. Or if no values have changed, returns cached value.
       *
       * @param slotOffset the offset from binding root to the reserved slot
       * @param pureFn
       * @param exp1
       * @param exp2
       * @param exp3
       * @param exp4
       * @param exp5
       * @param exp6
       * @param thisArg Optional calling context of pureFn
       * @returns Updated or cached value
       *
       * @codeGenApi
       */


      function ɵɵpureFunction6(slotOffset, pureFn, exp1, exp2, exp3, exp4, exp5, exp6, thisArg) {
        var bindingIndex = getBindingRoot() + slotOffset;
        var lView = getLView();
        var different = bindingUpdated4(lView, bindingIndex, exp1, exp2, exp3, exp4);
        return bindingUpdated2(lView, bindingIndex + 4, exp5, exp6) || different ? updateBinding(lView, bindingIndex + 6, thisArg ? pureFn.call(thisArg, exp1, exp2, exp3, exp4, exp5, exp6) : pureFn(exp1, exp2, exp3, exp4, exp5, exp6)) : getBinding(lView, bindingIndex + 6);
      }
      /**
       * If the value of any provided exp has changed, calls the pure function to return
       * an updated value. Or if no values have changed, returns cached value.
       *
       * @param slotOffset the offset from binding root to the reserved slot
       * @param pureFn
       * @param exp1
       * @param exp2
       * @param exp3
       * @param exp4
       * @param exp5
       * @param exp6
       * @param exp7
       * @param thisArg Optional calling context of pureFn
       * @returns Updated or cached value
       *
       * @codeGenApi
       */


      function ɵɵpureFunction7(slotOffset, pureFn, exp1, exp2, exp3, exp4, exp5, exp6, exp7, thisArg) {
        var bindingIndex = getBindingRoot() + slotOffset;
        var lView = getLView();
        var different = bindingUpdated4(lView, bindingIndex, exp1, exp2, exp3, exp4);
        return bindingUpdated3(lView, bindingIndex + 4, exp5, exp6, exp7) || different ? updateBinding(lView, bindingIndex + 7, thisArg ? pureFn.call(thisArg, exp1, exp2, exp3, exp4, exp5, exp6, exp7) : pureFn(exp1, exp2, exp3, exp4, exp5, exp6, exp7)) : getBinding(lView, bindingIndex + 7);
      }
      /**
       * If the value of any provided exp has changed, calls the pure function to return
       * an updated value. Or if no values have changed, returns cached value.
       *
       * @param slotOffset the offset from binding root to the reserved slot
       * @param pureFn
       * @param exp1
       * @param exp2
       * @param exp3
       * @param exp4
       * @param exp5
       * @param exp6
       * @param exp7
       * @param exp8
       * @param thisArg Optional calling context of pureFn
       * @returns Updated or cached value
       *
       * @codeGenApi
       */


      function ɵɵpureFunction8(slotOffset, pureFn, exp1, exp2, exp3, exp4, exp5, exp6, exp7, exp8, thisArg) {
        var bindingIndex = getBindingRoot() + slotOffset;
        var lView = getLView();
        var different = bindingUpdated4(lView, bindingIndex, exp1, exp2, exp3, exp4);
        return bindingUpdated4(lView, bindingIndex + 4, exp5, exp6, exp7, exp8) || different ? updateBinding(lView, bindingIndex + 8, thisArg ? pureFn.call(thisArg, exp1, exp2, exp3, exp4, exp5, exp6, exp7, exp8) : pureFn(exp1, exp2, exp3, exp4, exp5, exp6, exp7, exp8)) : getBinding(lView, bindingIndex + 8);
      }
      /**
       * pureFunction instruction that can support any number of bindings.
       *
       * If the value of any provided exp has changed, calls the pure function to return
       * an updated value. Or if no values have changed, returns cached value.
       *
       * @param slotOffset the offset from binding root to the reserved slot
       * @param pureFn A pure function that takes binding values and builds an object or array
       * containing those values.
       * @param exps An array of binding values
       * @param thisArg Optional calling context of pureFn
       * @returns Updated or cached value
       *
       * @codeGenApi
       */


      function ɵɵpureFunctionV(slotOffset, pureFn, exps, thisArg) {
        return pureFunctionVInternal(getLView(), getBindingRoot(), slotOffset, pureFn, exps, thisArg);
      }
      /**
       * Results of a pure function invocation are stored in LView in a dedicated slot that is initialized
       * to NO_CHANGE. In rare situations a pure pipe might throw an exception on the very first
       * invocation and not produce any valid results. In this case LView would keep holding the NO_CHANGE
       * value. The NO_CHANGE is not something that we can use in expressions / bindings thus we convert
       * it to `undefined`.
       */


      function getPureFunctionReturnValue(lView, returnValueIndex) {
        ngDevMode && assertIndexInRange(lView, returnValueIndex);
        var lastReturnValue = lView[returnValueIndex];
        return lastReturnValue === NO_CHANGE ? undefined : lastReturnValue;
      }
      /**
       * If the value of the provided exp has changed, calls the pure function to return
       * an updated value. Or if the value has not changed, returns cached value.
       *
       * @param lView LView in which the function is being executed.
       * @param bindingRoot Binding root index.
       * @param slotOffset the offset from binding root to the reserved slot
       * @param pureFn Function that returns an updated value
       * @param exp Updated expression value
       * @param thisArg Optional calling context of pureFn
       * @returns Updated or cached value
       */


      function pureFunction1Internal(lView, bindingRoot, slotOffset, pureFn, exp, thisArg) {
        var bindingIndex = bindingRoot + slotOffset;
        return bindingUpdated(lView, bindingIndex, exp) ? updateBinding(lView, bindingIndex + 1, thisArg ? pureFn.call(thisArg, exp) : pureFn(exp)) : getPureFunctionReturnValue(lView, bindingIndex + 1);
      }
      /**
       * If the value of any provided exp has changed, calls the pure function to return
       * an updated value. Or if no values have changed, returns cached value.
       *
       * @param lView LView in which the function is being executed.
       * @param bindingRoot Binding root index.
       * @param slotOffset the offset from binding root to the reserved slot
       * @param pureFn
       * @param exp1
       * @param exp2
       * @param thisArg Optional calling context of pureFn
       * @returns Updated or cached value
       */


      function pureFunction2Internal(lView, bindingRoot, slotOffset, pureFn, exp1, exp2, thisArg) {
        var bindingIndex = bindingRoot + slotOffset;
        return bindingUpdated2(lView, bindingIndex, exp1, exp2) ? updateBinding(lView, bindingIndex + 2, thisArg ? pureFn.call(thisArg, exp1, exp2) : pureFn(exp1, exp2)) : getPureFunctionReturnValue(lView, bindingIndex + 2);
      }
      /**
       * If the value of any provided exp has changed, calls the pure function to return
       * an updated value. Or if no values have changed, returns cached value.
       *
       * @param lView LView in which the function is being executed.
       * @param bindingRoot Binding root index.
       * @param slotOffset the offset from binding root to the reserved slot
       * @param pureFn
       * @param exp1
       * @param exp2
       * @param exp3
       * @param thisArg Optional calling context of pureFn
       * @returns Updated or cached value
       */


      function pureFunction3Internal(lView, bindingRoot, slotOffset, pureFn, exp1, exp2, exp3, thisArg) {
        var bindingIndex = bindingRoot + slotOffset;
        return bindingUpdated3(lView, bindingIndex, exp1, exp2, exp3) ? updateBinding(lView, bindingIndex + 3, thisArg ? pureFn.call(thisArg, exp1, exp2, exp3) : pureFn(exp1, exp2, exp3)) : getPureFunctionReturnValue(lView, bindingIndex + 3);
      }
      /**
       * If the value of any provided exp has changed, calls the pure function to return
       * an updated value. Or if no values have changed, returns cached value.
       *
       * @param lView LView in which the function is being executed.
       * @param bindingRoot Binding root index.
       * @param slotOffset the offset from binding root to the reserved slot
       * @param pureFn
       * @param exp1
       * @param exp2
       * @param exp3
       * @param exp4
       * @param thisArg Optional calling context of pureFn
       * @returns Updated or cached value
       *
       */


      function pureFunction4Internal(lView, bindingRoot, slotOffset, pureFn, exp1, exp2, exp3, exp4, thisArg) {
        var bindingIndex = bindingRoot + slotOffset;
        return bindingUpdated4(lView, bindingIndex, exp1, exp2, exp3, exp4) ? updateBinding(lView, bindingIndex + 4, thisArg ? pureFn.call(thisArg, exp1, exp2, exp3, exp4) : pureFn(exp1, exp2, exp3, exp4)) : getPureFunctionReturnValue(lView, bindingIndex + 4);
      }
      /**
       * pureFunction instruction that can support any number of bindings.
       *
       * If the value of any provided exp has changed, calls the pure function to return
       * an updated value. Or if no values have changed, returns cached value.
       *
       * @param lView LView in which the function is being executed.
       * @param bindingRoot Binding root index.
       * @param slotOffset the offset from binding root to the reserved slot
       * @param pureFn A pure function that takes binding values and builds an object or array
       * containing those values.
       * @param exps An array of binding values
       * @param thisArg Optional calling context of pureFn
       * @returns Updated or cached value
       */


      function pureFunctionVInternal(lView, bindingRoot, slotOffset, pureFn, exps, thisArg) {
        var bindingIndex = bindingRoot + slotOffset;
        var different = false;

        for (var i = 0; i < exps.length; i++) {
          bindingUpdated(lView, bindingIndex++, exps[i]) && (different = true);
        }

        return different ? updateBinding(lView, bindingIndex, pureFn.apply(thisArg, exps)) : getPureFunctionReturnValue(lView, bindingIndex);
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Create a pipe.
       *
       * @param index Pipe index where the pipe will be stored.
       * @param pipeName The name of the pipe
       * @returns T the instance of the pipe.
       *
       * @codeGenApi
       */


      function ɵɵpipe(index, pipeName) {
        var tView = getTView();
        var pipeDef;
        var adjustedIndex = index + HEADER_OFFSET;

        if (tView.firstCreatePass) {
          pipeDef = getPipeDef$1(pipeName, tView.pipeRegistry);
          tView.data[adjustedIndex] = pipeDef;

          if (pipeDef.onDestroy) {
            (tView.destroyHooks || (tView.destroyHooks = [])).push(adjustedIndex, pipeDef.onDestroy);
          }
        } else {
          pipeDef = tView.data[adjustedIndex];
        }

        var pipeFactory = pipeDef.factory || (pipeDef.factory = getFactoryDef(pipeDef.type, true));
        var previousInjectImplementation = setInjectImplementation(ɵɵdirectiveInject);

        try {
          // DI for pipes is supposed to behave like directives when placed on a component
          // host node, which means that we have to disable access to `viewProviders`.
          var previousIncludeViewProviders = setIncludeViewProviders(false);
          var pipeInstance = pipeFactory();
          setIncludeViewProviders(previousIncludeViewProviders);
          store(tView, getLView(), adjustedIndex, pipeInstance);
          return pipeInstance;
        } finally {
          // we have to restore the injector implementation in finally, just in case the creation of the
          // pipe throws an error.
          setInjectImplementation(previousInjectImplementation);
        }
      }
      /**
       * Searches the pipe registry for a pipe with the given name. If one is found,
       * returns the pipe. Otherwise, an error is thrown because the pipe cannot be resolved.
       *
       * @param name Name of pipe to resolve
       * @param registry Full list of available pipes
       * @returns Matching PipeDef
       */


      function getPipeDef$1(name, registry) {
        if (registry) {
          for (var i = registry.length - 1; i >= 0; i--) {
            var _pipeDef = registry[i];

            if (name === _pipeDef.name) {
              return _pipeDef;
            }
          }
        }

        throw new RuntimeError("302"
        /* PIPE_NOT_FOUND */
        , "The pipe '".concat(name, "' could not be found!"));
      }
      /**
       * Invokes a pipe with 1 arguments.
       *
       * This instruction acts as a guard to {@link PipeTransform#transform} invoking
       * the pipe only when an input to the pipe changes.
       *
       * @param index Pipe index where the pipe was stored on creation.
       * @param slotOffset the offset in the reserved slot space
       * @param v1 1st argument to {@link PipeTransform#transform}.
       *
       * @codeGenApi
       */


      function ɵɵpipeBind1(index, slotOffset, v1) {
        var adjustedIndex = index + HEADER_OFFSET;
        var lView = getLView();
        var pipeInstance = load(lView, adjustedIndex);
        return unwrapValue$1(lView, isPure(lView, adjustedIndex) ? pureFunction1Internal(lView, getBindingRoot(), slotOffset, pipeInstance.transform, v1, pipeInstance) : pipeInstance.transform(v1));
      }
      /**
       * Invokes a pipe with 2 arguments.
       *
       * This instruction acts as a guard to {@link PipeTransform#transform} invoking
       * the pipe only when an input to the pipe changes.
       *
       * @param index Pipe index where the pipe was stored on creation.
       * @param slotOffset the offset in the reserved slot space
       * @param v1 1st argument to {@link PipeTransform#transform}.
       * @param v2 2nd argument to {@link PipeTransform#transform}.
       *
       * @codeGenApi
       */


      function ɵɵpipeBind2(index, slotOffset, v1, v2) {
        var adjustedIndex = index + HEADER_OFFSET;
        var lView = getLView();
        var pipeInstance = load(lView, adjustedIndex);
        return unwrapValue$1(lView, isPure(lView, adjustedIndex) ? pureFunction2Internal(lView, getBindingRoot(), slotOffset, pipeInstance.transform, v1, v2, pipeInstance) : pipeInstance.transform(v1, v2));
      }
      /**
       * Invokes a pipe with 3 arguments.
       *
       * This instruction acts as a guard to {@link PipeTransform#transform} invoking
       * the pipe only when an input to the pipe changes.
       *
       * @param index Pipe index where the pipe was stored on creation.
       * @param slotOffset the offset in the reserved slot space
       * @param v1 1st argument to {@link PipeTransform#transform}.
       * @param v2 2nd argument to {@link PipeTransform#transform}.
       * @param v3 4rd argument to {@link PipeTransform#transform}.
       *
       * @codeGenApi
       */


      function ɵɵpipeBind3(index, slotOffset, v1, v2, v3) {
        var adjustedIndex = index + HEADER_OFFSET;
        var lView = getLView();
        var pipeInstance = load(lView, adjustedIndex);
        return unwrapValue$1(lView, isPure(lView, adjustedIndex) ? pureFunction3Internal(lView, getBindingRoot(), slotOffset, pipeInstance.transform, v1, v2, v3, pipeInstance) : pipeInstance.transform(v1, v2, v3));
      }
      /**
       * Invokes a pipe with 4 arguments.
       *
       * This instruction acts as a guard to {@link PipeTransform#transform} invoking
       * the pipe only when an input to the pipe changes.
       *
       * @param index Pipe index where the pipe was stored on creation.
       * @param slotOffset the offset in the reserved slot space
       * @param v1 1st argument to {@link PipeTransform#transform}.
       * @param v2 2nd argument to {@link PipeTransform#transform}.
       * @param v3 3rd argument to {@link PipeTransform#transform}.
       * @param v4 4th argument to {@link PipeTransform#transform}.
       *
       * @codeGenApi
       */


      function ɵɵpipeBind4(index, slotOffset, v1, v2, v3, v4) {
        var adjustedIndex = index + HEADER_OFFSET;
        var lView = getLView();
        var pipeInstance = load(lView, adjustedIndex);
        return unwrapValue$1(lView, isPure(lView, adjustedIndex) ? pureFunction4Internal(lView, getBindingRoot(), slotOffset, pipeInstance.transform, v1, v2, v3, v4, pipeInstance) : pipeInstance.transform(v1, v2, v3, v4));
      }
      /**
       * Invokes a pipe with variable number of arguments.
       *
       * This instruction acts as a guard to {@link PipeTransform#transform} invoking
       * the pipe only when an input to the pipe changes.
       *
       * @param index Pipe index where the pipe was stored on creation.
       * @param slotOffset the offset in the reserved slot space
       * @param values Array of arguments to pass to {@link PipeTransform#transform} method.
       *
       * @codeGenApi
       */


      function ɵɵpipeBindV(index, slotOffset, values) {
        var adjustedIndex = index + HEADER_OFFSET;
        var lView = getLView();
        var pipeInstance = load(lView, adjustedIndex);
        return unwrapValue$1(lView, isPure(lView, adjustedIndex) ? pureFunctionVInternal(lView, getBindingRoot(), slotOffset, pipeInstance.transform, values, pipeInstance) : pipeInstance.transform.apply(pipeInstance, values));
      }

      function isPure(lView, index) {
        return lView[TVIEW].data[index].pure;
      }
      /**
       * Unwrap the output of a pipe transformation.
       * In order to trick change detection into considering that the new value is always different from
       * the old one, the old value is overwritten by NO_CHANGE.
       *
       * @param newValue the pipe transformation output.
       */


      function unwrapValue$1(lView, newValue) {
        if (WrappedValue.isWrapped(newValue)) {
          newValue = WrappedValue.unwrap(newValue); // The NO_CHANGE value needs to be written at the index where the impacted binding value is
          // stored

          var bindingToInvalidateIdx = getBindingIndex();
          lView[bindingToInvalidateIdx] = NO_CHANGE;
        }

        return newValue;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var EventEmitter_ = /*#__PURE__*/function (_rxjs__WEBPACK_IMPORT) {
        _inherits2(EventEmitter_, _rxjs__WEBPACK_IMPORT);

        var _super165 = _createSuper2(EventEmitter_);

        function EventEmitter_() {
          var _this420;

          var isAsync = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;

          _classCallCheck2(this, EventEmitter_);

          _this420 = _super165.call(this);
          _this420.__isAsync = isAsync;
          return _this420;
        }

        _createClass2(EventEmitter_, [{
          key: "emit",
          value: function emit(value) {
            _get2(_getPrototypeOf2(EventEmitter_.prototype), "next", this).call(this, value);
          }
        }, {
          key: "subscribe",
          value: function subscribe(generatorOrNext, error, complete) {
            var schedulerFn;

            var errorFn = function errorFn(err) {
              return null;
            };

            var completeFn = function completeFn() {
              return null;
            };

            if (generatorOrNext && typeof generatorOrNext === 'object') {
              schedulerFn = this.__isAsync ? function (value) {
                setTimeout(function () {
                  return generatorOrNext.next(value);
                });
              } : function (value) {
                generatorOrNext.next(value);
              };

              if (generatorOrNext.error) {
                errorFn = this.__isAsync ? function (err) {
                  setTimeout(function () {
                    return generatorOrNext.error(err);
                  });
                } : function (err) {
                  generatorOrNext.error(err);
                };
              }

              if (generatorOrNext.complete) {
                completeFn = this.__isAsync ? function () {
                  setTimeout(function () {
                    return generatorOrNext.complete();
                  });
                } : function () {
                  generatorOrNext.complete();
                };
              }
            } else {
              schedulerFn = this.__isAsync ? function (value) {
                setTimeout(function () {
                  return generatorOrNext(value);
                });
              } : function (value) {
                generatorOrNext(value);
              };

              if (error) {
                errorFn = this.__isAsync ? function (err) {
                  setTimeout(function () {
                    return error(err);
                  });
                } : function (err) {
                  error(err);
                };
              }

              if (complete) {
                completeFn = this.__isAsync ? function () {
                  setTimeout(function () {
                    return complete();
                  });
                } : function () {
                  complete();
                };
              }
            }

            var sink = _get2(_getPrototypeOf2(EventEmitter_.prototype), "subscribe", this).call(this, schedulerFn, errorFn, completeFn);

            if (generatorOrNext instanceof rxjs__WEBPACK_IMPORTED_MODULE_0__["Subscription"]) {
              generatorOrNext.add(sink);
            }

            return sink;
          }
        }]);

        return EventEmitter_;
      }(rxjs__WEBPACK_IMPORTED_MODULE_0__["Subject"]);
      /**
       * @publicApi
       */


      var EventEmitter = EventEmitter_;
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      function symbolIterator() {
        return this._results[getSymbolIterator()]();
      }
      /**
       * An unmodifiable list of items that Angular keeps up to date when the state
       * of the application changes.
       *
       * The type of object that {@link ViewChildren}, {@link ContentChildren}, and {@link QueryList}
       * provide.
       *
       * Implements an iterable interface, therefore it can be used in both ES6
       * javascript `for (var i of items)` loops as well as in Angular templates with
       * `*ngFor="let i of myList"`.
       *
       * Changes can be observed by subscribing to the changes `Observable`.
       *
       * NOTE: In the future this class will implement an `Observable` interface.
       *
       * @usageNotes
       * ### Example
       * ```typescript
       * @Component({...})
       * class Container {
       *   @ViewChildren(Item) items:QueryList<Item>;
       * }
       * ```
       *
       * @publicApi
       */


      var QueryList = /*#__PURE__*/function () {
        function QueryList() {
          _classCallCheck2(this, QueryList);

          this.dirty = true;
          this._results = [];
          this.changes = new EventEmitter();
          this.length = 0; // This function should be declared on the prototype, but doing so there will cause the class
          // declaration to have side-effects and become not tree-shakable. For this reason we do it in
          // the constructor.
          // [getSymbolIterator()](): Iterator<T> { ... }

          var symbol = getSymbolIterator();
          var proto = QueryList.prototype;
          if (!proto[symbol]) proto[symbol] = symbolIterator;
        }
        /**
         * See
         * [Array.map](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map)
         */


        _createClass2(QueryList, [{
          key: "map",
          value: function map(fn) {
            return this._results.map(fn);
          }
          /**
           * See
           * [Array.filter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter)
           */

        }, {
          key: "filter",
          value: function filter(fn) {
            return this._results.filter(fn);
          }
          /**
           * See
           * [Array.find](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find)
           */

        }, {
          key: "find",
          value: function find(fn) {
            return this._results.find(fn);
          }
          /**
           * See
           * [Array.reduce](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce)
           */

        }, {
          key: "reduce",
          value: function reduce(fn, init) {
            return this._results.reduce(fn, init);
          }
          /**
           * See
           * [Array.forEach](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach)
           */

        }, {
          key: "forEach",
          value: function forEach(fn) {
            this._results.forEach(fn);
          }
          /**
           * See
           * [Array.some](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/some)
           */

        }, {
          key: "some",
          value: function some(fn) {
            return this._results.some(fn);
          }
          /**
           * Returns a copy of the internal results list as an Array.
           */

        }, {
          key: "toArray",
          value: function toArray() {
            return this._results.slice();
          }
        }, {
          key: "toString",
          value: function toString() {
            return this._results.toString();
          }
          /**
           * Updates the stored data of the query list, and resets the `dirty` flag to `false`, so that
           * on change detection, it will not notify of changes to the queries, unless a new change
           * occurs.
           *
           * @param resultsTree The query results to store
           */

        }, {
          key: "reset",
          value: function reset(resultsTree) {
            this._results = flatten(resultsTree);
            this.dirty = false;
            this.length = this._results.length;
            this.last = this._results[this.length - 1];
            this.first = this._results[0];
          }
          /**
           * Triggers a change event by emitting on the `changes` {@link EventEmitter}.
           */

        }, {
          key: "notifyOnChanges",
          value: function notifyOnChanges() {
            this.changes.emit(this);
          }
          /** internal */

        }, {
          key: "setDirty",
          value: function setDirty() {
            this.dirty = true;
          }
          /** internal */

        }, {
          key: "destroy",
          value: function destroy() {
            this.changes.complete();
            this.changes.unsubscribe();
          }
        }]);

        return QueryList;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */
      // Note: This hack is necessary so we don't erroneously get a circular dependency
      // failure based on types.


      var unusedValueExportToPlacateAjd$7 = 1;
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */
      // Note: This hack is necessary so we don't erroneously get a circular dependency
      // failure based on types.

      var unusedValueExportToPlacateAjd$8 = 1;
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      var unusedValueToPlacateAjd$2 = unusedValueExportToPlacateAjd$7 + unusedValueExportToPlacateAjd$3 + unusedValueExportToPlacateAjd$4 + unusedValueExportToPlacateAjd$8;

      var LQuery_ = /*#__PURE__*/function () {
        function LQuery_(queryList) {
          _classCallCheck2(this, LQuery_);

          this.queryList = queryList;
          this.matches = null;
        }

        _createClass2(LQuery_, [{
          key: "clone",
          value: function clone() {
            return new LQuery_(this.queryList);
          }
        }, {
          key: "setDirty",
          value: function setDirty() {
            this.queryList.setDirty();
          }
        }]);

        return LQuery_;
      }();

      var LQueries_ = /*#__PURE__*/function () {
        function LQueries_() {
          var queries = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];

          _classCallCheck2(this, LQueries_);

          this.queries = queries;
        }

        _createClass2(LQueries_, [{
          key: "createEmbeddedView",
          value: function createEmbeddedView(tView) {
            var tQueries = tView.queries;

            if (tQueries !== null) {
              var noOfInheritedQueries = tView.contentQueries !== null ? tView.contentQueries[0] : tQueries.length;
              var viewLQueries = []; // An embedded view has queries propagated from a declaration view at the beginning of the
              // TQueries collection and up until a first content query declared in the embedded view. Only
              // propagated LQueries are created at this point (LQuery corresponding to declared content
              // queries will be instantiated from the content query instructions for each directive).

              for (var i = 0; i < noOfInheritedQueries; i++) {
                var tQuery = tQueries.getByIndex(i);
                var parentLQuery = this.queries[tQuery.indexInDeclarationView];
                viewLQueries.push(parentLQuery.clone());
              }

              return new LQueries_(viewLQueries);
            }

            return null;
          }
        }, {
          key: "insertView",
          value: function insertView(tView) {
            this.dirtyQueriesWithMatches(tView);
          }
        }, {
          key: "detachView",
          value: function detachView(tView) {
            this.dirtyQueriesWithMatches(tView);
          }
        }, {
          key: "dirtyQueriesWithMatches",
          value: function dirtyQueriesWithMatches(tView) {
            for (var i = 0; i < this.queries.length; i++) {
              if (getTQuery(tView, i).matches !== null) {
                this.queries[i].setDirty();
              }
            }
          }
        }]);

        return LQueries_;
      }();

      var TQueryMetadata_ = function TQueryMetadata_(predicate, descendants, isStatic) {
        var read = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;

        _classCallCheck2(this, TQueryMetadata_);

        this.predicate = predicate;
        this.descendants = descendants;
        this.isStatic = isStatic;
        this.read = read;
      };

      var TQueries_ = /*#__PURE__*/function () {
        function TQueries_() {
          var queries = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];

          _classCallCheck2(this, TQueries_);

          this.queries = queries;
        }

        _createClass2(TQueries_, [{
          key: "elementStart",
          value: function elementStart(tView, tNode) {
            ngDevMode && assertFirstCreatePass(tView, 'Queries should collect results on the first template pass only');

            for (var i = 0; i < this.queries.length; i++) {
              this.queries[i].elementStart(tView, tNode);
            }
          }
        }, {
          key: "elementEnd",
          value: function elementEnd(tNode) {
            for (var i = 0; i < this.queries.length; i++) {
              this.queries[i].elementEnd(tNode);
            }
          }
        }, {
          key: "embeddedTView",
          value: function embeddedTView(tNode) {
            var queriesForTemplateRef = null;

            for (var i = 0; i < this.length; i++) {
              var childQueryIndex = queriesForTemplateRef !== null ? queriesForTemplateRef.length : 0;
              var tqueryClone = this.getByIndex(i).embeddedTView(tNode, childQueryIndex);

              if (tqueryClone) {
                tqueryClone.indexInDeclarationView = i;

                if (queriesForTemplateRef !== null) {
                  queriesForTemplateRef.push(tqueryClone);
                } else {
                  queriesForTemplateRef = [tqueryClone];
                }
              }
            }

            return queriesForTemplateRef !== null ? new TQueries_(queriesForTemplateRef) : null;
          }
        }, {
          key: "template",
          value: function template(tView, tNode) {
            ngDevMode && assertFirstCreatePass(tView, 'Queries should collect results on the first template pass only');

            for (var i = 0; i < this.queries.length; i++) {
              this.queries[i].template(tView, tNode);
            }
          }
        }, {
          key: "getByIndex",
          value: function getByIndex(index) {
            ngDevMode && assertIndexInRange(this.queries, index);
            return this.queries[index];
          }
        }, {
          key: "length",
          get: function get() {
            return this.queries.length;
          }
        }, {
          key: "track",
          value: function track(tquery) {
            this.queries.push(tquery);
          }
        }]);

        return TQueries_;
      }();

      var TQuery_ = /*#__PURE__*/function () {
        function TQuery_(metadata) {
          var nodeIndex = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : -1;

          _classCallCheck2(this, TQuery_);

          this.metadata = metadata;
          this.matches = null;
          this.indexInDeclarationView = -1;
          this.crossesNgTemplate = false;
          /**
           * A flag indicating if a given query still applies to nodes it is crossing. We use this flag
           * (alongside with _declarationNodeIndex) to know when to stop applying content queries to
           * elements in a template.
           */

          this._appliesToNextNode = true;
          this._declarationNodeIndex = nodeIndex;
        }

        _createClass2(TQuery_, [{
          key: "elementStart",
          value: function elementStart(tView, tNode) {
            if (this.isApplyingToNode(tNode)) {
              this.matchTNode(tView, tNode);
            }
          }
        }, {
          key: "elementEnd",
          value: function elementEnd(tNode) {
            if (this._declarationNodeIndex === tNode.index) {
              this._appliesToNextNode = false;
            }
          }
        }, {
          key: "template",
          value: function template(tView, tNode) {
            this.elementStart(tView, tNode);
          }
        }, {
          key: "embeddedTView",
          value: function embeddedTView(tNode, childQueryIndex) {
            if (this.isApplyingToNode(tNode)) {
              this.crossesNgTemplate = true; // A marker indicating a `<ng-template>` element (a placeholder for query results from
              // embedded views created based on this `<ng-template>`).

              this.addMatch(-tNode.index, childQueryIndex);
              return new TQuery_(this.metadata);
            }

            return null;
          }
        }, {
          key: "isApplyingToNode",
          value: function isApplyingToNode(tNode) {
            if (this._appliesToNextNode && this.metadata.descendants === false) {
              var declarationNodeIdx = this._declarationNodeIndex;
              var parent = tNode.parent; // Determine if a given TNode is a "direct" child of a node on which a content query was
              // declared (only direct children of query's host node can match with the descendants: false
              // option). There are 3 main use-case / conditions to consider here:
              // - <needs-target><i #target></i></needs-target>: here <i #target> parent node is a query
              // host node;
              // - <needs-target><ng-template [ngIf]="true"><i #target></i></ng-template></needs-target>:
              // here <i #target> parent node is null;
              // - <needs-target><ng-container><i #target></i></ng-container></needs-target>: here we need
              // to go past `<ng-container>` to determine <i #target> parent node (but we shouldn't traverse
              // up past the query's host node!).

              while (parent !== null && parent.type & 8
              /* ElementContainer */
              && parent.index !== declarationNodeIdx) {
                parent = parent.parent;
              }

              return declarationNodeIdx === (parent !== null ? parent.index : -1);
            }

            return this._appliesToNextNode;
          }
        }, {
          key: "matchTNode",
          value: function matchTNode(tView, tNode) {
            var predicate = this.metadata.predicate;

            if (Array.isArray(predicate)) {
              for (var i = 0; i < predicate.length; i++) {
                var name = predicate[i];
                this.matchTNodeWithReadOption(tView, tNode, getIdxOfMatchingSelector(tNode, name)); // Also try matching the name to a provider since strings can be used as DI tokens too.

                this.matchTNodeWithReadOption(tView, tNode, locateDirectiveOrProvider(tNode, tView, name, false, false));
              }
            } else {
              if (predicate === TemplateRef) {
                if (tNode.type & 4
                /* Container */
                ) {
                  this.matchTNodeWithReadOption(tView, tNode, -1);
                }
              } else {
                this.matchTNodeWithReadOption(tView, tNode, locateDirectiveOrProvider(tNode, tView, predicate, false, false));
              }
            }
          }
        }, {
          key: "matchTNodeWithReadOption",
          value: function matchTNodeWithReadOption(tView, tNode, nodeMatchIdx) {
            if (nodeMatchIdx !== null) {
              var read = this.metadata.read;

              if (read !== null) {
                if (read === ElementRef || read === ViewContainerRef || read === TemplateRef && tNode.type & 4
                /* Container */
                ) {
                  this.addMatch(tNode.index, -2);
                } else {
                  var directiveOrProviderIdx = locateDirectiveOrProvider(tNode, tView, read, false, false);

                  if (directiveOrProviderIdx !== null) {
                    this.addMatch(tNode.index, directiveOrProviderIdx);
                  }
                }
              } else {
                this.addMatch(tNode.index, nodeMatchIdx);
              }
            }
          }
        }, {
          key: "addMatch",
          value: function addMatch(tNodeIdx, matchIdx) {
            if (this.matches === null) {
              this.matches = [tNodeIdx, matchIdx];
            } else {
              this.matches.push(tNodeIdx, matchIdx);
            }
          }
        }]);

        return TQuery_;
      }();
      /**
       * Iterates over local names for a given node and returns directive index
       * (or -1 if a local name points to an element).
       *
       * @param tNode static data of a node to check
       * @param selector selector to match
       * @returns directive index, -1 or null if a selector didn't match any of the local names
       */


      function getIdxOfMatchingSelector(tNode, selector) {
        var localNames = tNode.localNames;

        if (localNames !== null) {
          for (var i = 0; i < localNames.length; i += 2) {
            if (localNames[i] === selector) {
              return localNames[i + 1];
            }
          }
        }

        return null;
      }

      function createResultByTNodeType(tNode, currentView) {
        if (tNode.type & (3
        /* AnyRNode */
        | 8
        /* ElementContainer */
        )) {
          return createElementRef(ElementRef, tNode, currentView);
        } else if (tNode.type & 4
        /* Container */
        ) {
          return createTemplateRef(TemplateRef, ElementRef, tNode, currentView);
        }

        return null;
      }

      function createResultForNode(lView, tNode, matchingIdx, read) {
        if (matchingIdx === -1) {
          // if read token and / or strategy is not specified, detect it using appropriate tNode type
          return createResultByTNodeType(tNode, lView);
        } else if (matchingIdx === -2) {
          // read a special token from a node injector
          return createSpecialToken(lView, tNode, read);
        } else {
          // read a token
          return getNodeInjectable(lView, lView[TVIEW], matchingIdx, tNode);
        }
      }

      function createSpecialToken(lView, tNode, read) {
        if (read === ElementRef) {
          return createElementRef(ElementRef, tNode, lView);
        } else if (read === TemplateRef) {
          return createTemplateRef(TemplateRef, ElementRef, tNode, lView);
        } else if (read === ViewContainerRef) {
          ngDevMode && assertTNodeType(tNode, 3
          /* AnyRNode */
          | 12
          /* AnyContainer */
          );
          return createContainerRef(ViewContainerRef, ElementRef, tNode, lView);
        } else {
          ngDevMode && throwError("Special token to read should be one of ElementRef, TemplateRef or ViewContainerRef but got ".concat(stringify(read), "."));
        }
      }
      /**
       * A helper function that creates query results for a given view. This function is meant to do the
       * processing once and only once for a given view instance (a set of results for a given view
       * doesn't change).
       */


      function materializeViewResults(tView, lView, tQuery, queryIndex) {
        var lQuery = lView[QUERIES].queries[queryIndex];

        if (lQuery.matches === null) {
          var tViewData = tView.data;
          var tQueryMatches = tQuery.matches;
          var result = [];

          for (var i = 0; i < tQueryMatches.length; i += 2) {
            var matchedNodeIdx = tQueryMatches[i];

            if (matchedNodeIdx < 0) {
              // we at the <ng-template> marker which might have results in views created based on this
              // <ng-template> - those results will be in separate views though, so here we just leave
              // null as a placeholder
              result.push(null);
            } else {
              ngDevMode && assertIndexInRange(tViewData, matchedNodeIdx);
              var tNode = tViewData[matchedNodeIdx];
              result.push(createResultForNode(lView, tNode, tQueryMatches[i + 1], tQuery.metadata.read));
            }
          }

          lQuery.matches = result;
        }

        return lQuery.matches;
      }
      /**
       * A helper function that collects (already materialized) query results from a tree of views,
       * starting with a provided LView.
       */


      function collectQueryResults(tView, lView, queryIndex, result) {
        var tQuery = tView.queries.getByIndex(queryIndex);
        var tQueryMatches = tQuery.matches;

        if (tQueryMatches !== null) {
          var lViewResults = materializeViewResults(tView, lView, tQuery, queryIndex);

          for (var i = 0; i < tQueryMatches.length; i += 2) {
            var tNodeIdx = tQueryMatches[i];

            if (tNodeIdx > 0) {
              result.push(lViewResults[i / 2]);
            } else {
              var childQueryIndex = tQueryMatches[i + 1];
              var declarationLContainer = lView[-tNodeIdx];
              ngDevMode && assertLContainer(declarationLContainer); // collect matches for views inserted in this container

              for (var _i21 = CONTAINER_HEADER_OFFSET; _i21 < declarationLContainer.length; _i21++) {
                var embeddedLView = declarationLContainer[_i21];

                if (embeddedLView[DECLARATION_LCONTAINER] === embeddedLView[PARENT]) {
                  collectQueryResults(embeddedLView[TVIEW], embeddedLView, childQueryIndex, result);
                }
              } // collect matches for views created from this declaration container and inserted into
              // different containers


              if (declarationLContainer[MOVED_VIEWS] !== null) {
                var embeddedLViews = declarationLContainer[MOVED_VIEWS];

                for (var _i22 = 0; _i22 < embeddedLViews.length; _i22++) {
                  var _embeddedLView = embeddedLViews[_i22];
                  collectQueryResults(_embeddedLView[TVIEW], _embeddedLView, childQueryIndex, result);
                }
              }
            }
          }
        }

        return result;
      }
      /**
       * Refreshes a query by combining matches from all active views and removing matches from deleted
       * views.
       *
       * @returns `true` if a query got dirty during change detection or if this is a static query
       * resolving in creation mode, `false` otherwise.
       *
       * @codeGenApi
       */


      function ɵɵqueryRefresh(queryList) {
        var lView = getLView();
        var tView = getTView();
        var queryIndex = getCurrentQueryIndex();
        setCurrentQueryIndex(queryIndex + 1);
        var tQuery = getTQuery(tView, queryIndex);

        if (queryList.dirty && isCreationMode(lView) === tQuery.metadata.isStatic) {
          if (tQuery.matches === null) {
            queryList.reset([]);
          } else {
            var result = tQuery.crossesNgTemplate ? collectQueryResults(tView, lView, queryIndex, []) : materializeViewResults(tView, lView, tQuery, queryIndex);
            queryList.reset(result);
            queryList.notifyOnChanges();
          }

          return true;
        }

        return false;
      }
      /**
       * Creates new QueryList for a static view query.
       *
       * @param predicate The type for which the query will search
       * @param descend Whether or not to descend into children
       * @param read What to save in the query
       *
       * @codeGenApi
       */


      function ɵɵstaticViewQuery(predicate, descend, read) {
        viewQueryInternal(getTView(), getLView(), predicate, descend, read, true);
      }
      /**
       * Creates new QueryList, stores the reference in LView and returns QueryList.
       *
       * @param predicate The type for which the query will search
       * @param descend Whether or not to descend into children
       * @param read What to save in the query
       *
       * @codeGenApi
       */


      function ɵɵviewQuery(predicate, descend, read) {
        viewQueryInternal(getTView(), getLView(), predicate, descend, read, false);
      }

      function viewQueryInternal(tView, lView, predicate, descend, read, isStatic) {
        if (tView.firstCreatePass) {
          createTQuery(tView, new TQueryMetadata_(predicate, descend, isStatic, read), -1);

          if (isStatic) {
            tView.staticViewQueries = true;
          }
        }

        createLQuery(tView, lView);
      }
      /**
       * Registers a QueryList, associated with a content query, for later refresh (part of a view
       * refresh).
       *
       * @param directiveIndex Current directive index
       * @param predicate The type for which the query will search
       * @param descend Whether or not to descend into children
       * @param read What to save in the query
       * @returns QueryList<T>
       *
       * @codeGenApi
       */


      function ɵɵcontentQuery(directiveIndex, predicate, descend, read) {
        contentQueryInternal(getTView(), getLView(), predicate, descend, read, false, getCurrentTNode(), directiveIndex);
      }
      /**
       * Registers a QueryList, associated with a static content query, for later refresh
       * (part of a view refresh).
       *
       * @param directiveIndex Current directive index
       * @param predicate The type for which the query will search
       * @param descend Whether or not to descend into children
       * @param read What to save in the query
       * @returns QueryList<T>
       *
       * @codeGenApi
       */


      function ɵɵstaticContentQuery(directiveIndex, predicate, descend, read) {
        contentQueryInternal(getTView(), getLView(), predicate, descend, read, true, getCurrentTNode(), directiveIndex);
      }

      function contentQueryInternal(tView, lView, predicate, descend, read, isStatic, tNode, directiveIndex) {
        if (tView.firstCreatePass) {
          createTQuery(tView, new TQueryMetadata_(predicate, descend, isStatic, read), tNode.index);
          saveContentQueryAndDirectiveIndex(tView, directiveIndex);

          if (isStatic) {
            tView.staticContentQueries = true;
          }
        }

        createLQuery(tView, lView);
      }
      /**
       * Loads a QueryList corresponding to the current view or content query.
       *
       * @codeGenApi
       */


      function ɵɵloadQuery() {
        return loadQueryInternal(getLView(), getCurrentQueryIndex());
      }

      function loadQueryInternal(lView, queryIndex) {
        ngDevMode && assertDefined(lView[QUERIES], 'LQueries should be defined when trying to load a query');
        ngDevMode && assertIndexInRange(lView[QUERIES].queries, queryIndex);
        return lView[QUERIES].queries[queryIndex].queryList;
      }

      function createLQuery(tView, lView) {
        var queryList = new QueryList();
        storeCleanupWithContext(tView, lView, queryList, queryList.destroy);
        if (lView[QUERIES] === null) lView[QUERIES] = new LQueries_();
        lView[QUERIES].queries.push(new LQuery_(queryList));
      }

      function createTQuery(tView, metadata, nodeIndex) {
        if (tView.queries === null) tView.queries = new TQueries_();
        tView.queries.track(new TQuery_(metadata, nodeIndex));
      }

      function saveContentQueryAndDirectiveIndex(tView, directiveIndex) {
        var tViewContentQueries = tView.contentQueries || (tView.contentQueries = []);
        var lastSavedDirectiveIndex = tViewContentQueries.length ? tViewContentQueries[tViewContentQueries.length - 1] : -1;

        if (directiveIndex !== lastSavedDirectiveIndex) {
          tViewContentQueries.push(tView.queries.length - 1, directiveIndex);
        }
      }

      function getTQuery(tView, index) {
        ngDevMode && assertDefined(tView.queries, 'TQueries must be defined to retrieve a TQuery');
        return tView.queries.getByIndex(index);
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Retrieves `TemplateRef` instance from `Injector` when a local reference is placed on the
       * `<ng-template>` element.
       *
       * @codeGenApi
       */


      function ɵɵtemplateRefExtractor(tNode, currentView) {
        return createTemplateRef(TemplateRef, ElementRef, tNode, currentView);
      }
      /**
       * Returns the appropriate `ChangeDetectorRef` for a pipe.
       *
       * @codeGenApi
       */


      function ɵɵinjectPipeChangeDetectorRef() {
        var flags = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : InjectFlags.Default;
        var value = injectChangeDetectorRef(true);

        if (value == null && !(flags & InjectFlags.Optional)) {
          throwProviderNotFoundError('ChangeDetectorRef');
        } else {
          return value;
        }
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var ɵ0$d = function ɵ0$d() {
        return {
          'ɵɵattribute': ɵɵattribute,
          'ɵɵattributeInterpolate1': ɵɵattributeInterpolate1,
          'ɵɵattributeInterpolate2': ɵɵattributeInterpolate2,
          'ɵɵattributeInterpolate3': ɵɵattributeInterpolate3,
          'ɵɵattributeInterpolate4': ɵɵattributeInterpolate4,
          'ɵɵattributeInterpolate5': ɵɵattributeInterpolate5,
          'ɵɵattributeInterpolate6': ɵɵattributeInterpolate6,
          'ɵɵattributeInterpolate7': ɵɵattributeInterpolate7,
          'ɵɵattributeInterpolate8': ɵɵattributeInterpolate8,
          'ɵɵattributeInterpolateV': ɵɵattributeInterpolateV,
          'ɵɵdefineComponent': ɵɵdefineComponent,
          'ɵɵdefineDirective': ɵɵdefineDirective,
          'ɵɵdefineInjectable': ɵɵdefineInjectable,
          'ɵɵdefineInjector': ɵɵdefineInjector,
          'ɵɵdefineNgModule': ɵɵdefineNgModule,
          'ɵɵdefinePipe': ɵɵdefinePipe,
          'ɵɵdirectiveInject': ɵɵdirectiveInject,
          'ɵɵgetFactoryOf': ɵɵgetFactoryOf,
          'ɵɵgetInheritedFactory': ɵɵgetInheritedFactory,
          'ɵɵinject': ɵɵinject,
          'ɵɵinjectAttribute': ɵɵinjectAttribute,
          'ɵɵinvalidFactory': ɵɵinvalidFactory,
          'ɵɵinvalidFactoryDep': ɵɵinvalidFactoryDep,
          'ɵɵinjectPipeChangeDetectorRef': ɵɵinjectPipeChangeDetectorRef,
          'ɵɵtemplateRefExtractor': ɵɵtemplateRefExtractor,
          'ɵɵNgOnChangesFeature': ɵɵNgOnChangesFeature,
          'ɵɵProvidersFeature': ɵɵProvidersFeature,
          'ɵɵCopyDefinitionFeature': ɵɵCopyDefinitionFeature,
          'ɵɵInheritDefinitionFeature': ɵɵInheritDefinitionFeature,
          'ɵɵnextContext': ɵɵnextContext,
          'ɵɵnamespaceHTML': ɵɵnamespaceHTML,
          'ɵɵnamespaceMathML': ɵɵnamespaceMathML,
          'ɵɵnamespaceSVG': ɵɵnamespaceSVG,
          'ɵɵenableBindings': ɵɵenableBindings,
          'ɵɵdisableBindings': ɵɵdisableBindings,
          'ɵɵelementStart': ɵɵelementStart,
          'ɵɵelementEnd': ɵɵelementEnd,
          'ɵɵelement': ɵɵelement,
          'ɵɵelementContainerStart': ɵɵelementContainerStart,
          'ɵɵelementContainerEnd': ɵɵelementContainerEnd,
          'ɵɵelementContainer': ɵɵelementContainer,
          'ɵɵpureFunction0': ɵɵpureFunction0,
          'ɵɵpureFunction1': ɵɵpureFunction1,
          'ɵɵpureFunction2': ɵɵpureFunction2,
          'ɵɵpureFunction3': ɵɵpureFunction3,
          'ɵɵpureFunction4': ɵɵpureFunction4,
          'ɵɵpureFunction5': ɵɵpureFunction5,
          'ɵɵpureFunction6': ɵɵpureFunction6,
          'ɵɵpureFunction7': ɵɵpureFunction7,
          'ɵɵpureFunction8': ɵɵpureFunction8,
          'ɵɵpureFunctionV': ɵɵpureFunctionV,
          'ɵɵgetCurrentView': ɵɵgetCurrentView,
          'ɵɵrestoreView': ɵɵrestoreView,
          'ɵɵlistener': ɵɵlistener,
          'ɵɵprojection': ɵɵprojection,
          'ɵɵsyntheticHostProperty': ɵɵsyntheticHostProperty,
          'ɵɵsyntheticHostListener': ɵɵsyntheticHostListener,
          'ɵɵpipeBind1': ɵɵpipeBind1,
          'ɵɵpipeBind2': ɵɵpipeBind2,
          'ɵɵpipeBind3': ɵɵpipeBind3,
          'ɵɵpipeBind4': ɵɵpipeBind4,
          'ɵɵpipeBindV': ɵɵpipeBindV,
          'ɵɵprojectionDef': ɵɵprojectionDef,
          'ɵɵhostProperty': ɵɵhostProperty,
          'ɵɵproperty': ɵɵproperty,
          'ɵɵpropertyInterpolate': ɵɵpropertyInterpolate,
          'ɵɵpropertyInterpolate1': ɵɵpropertyInterpolate1,
          'ɵɵpropertyInterpolate2': ɵɵpropertyInterpolate2,
          'ɵɵpropertyInterpolate3': ɵɵpropertyInterpolate3,
          'ɵɵpropertyInterpolate4': ɵɵpropertyInterpolate4,
          'ɵɵpropertyInterpolate5': ɵɵpropertyInterpolate5,
          'ɵɵpropertyInterpolate6': ɵɵpropertyInterpolate6,
          'ɵɵpropertyInterpolate7': ɵɵpropertyInterpolate7,
          'ɵɵpropertyInterpolate8': ɵɵpropertyInterpolate8,
          'ɵɵpropertyInterpolateV': ɵɵpropertyInterpolateV,
          'ɵɵpipe': ɵɵpipe,
          'ɵɵqueryRefresh': ɵɵqueryRefresh,
          'ɵɵviewQuery': ɵɵviewQuery,
          'ɵɵstaticViewQuery': ɵɵstaticViewQuery,
          'ɵɵstaticContentQuery': ɵɵstaticContentQuery,
          'ɵɵloadQuery': ɵɵloadQuery,
          'ɵɵcontentQuery': ɵɵcontentQuery,
          'ɵɵreference': ɵɵreference,
          'ɵɵclassMap': ɵɵclassMap,
          'ɵɵclassMapInterpolate1': ɵɵclassMapInterpolate1,
          'ɵɵclassMapInterpolate2': ɵɵclassMapInterpolate2,
          'ɵɵclassMapInterpolate3': ɵɵclassMapInterpolate3,
          'ɵɵclassMapInterpolate4': ɵɵclassMapInterpolate4,
          'ɵɵclassMapInterpolate5': ɵɵclassMapInterpolate5,
          'ɵɵclassMapInterpolate6': ɵɵclassMapInterpolate6,
          'ɵɵclassMapInterpolate7': ɵɵclassMapInterpolate7,
          'ɵɵclassMapInterpolate8': ɵɵclassMapInterpolate8,
          'ɵɵclassMapInterpolateV': ɵɵclassMapInterpolateV,
          'ɵɵstyleMap': ɵɵstyleMap,
          'ɵɵstyleMapInterpolate1': ɵɵstyleMapInterpolate1,
          'ɵɵstyleMapInterpolate2': ɵɵstyleMapInterpolate2,
          'ɵɵstyleMapInterpolate3': ɵɵstyleMapInterpolate3,
          'ɵɵstyleMapInterpolate4': ɵɵstyleMapInterpolate4,
          'ɵɵstyleMapInterpolate5': ɵɵstyleMapInterpolate5,
          'ɵɵstyleMapInterpolate6': ɵɵstyleMapInterpolate6,
          'ɵɵstyleMapInterpolate7': ɵɵstyleMapInterpolate7,
          'ɵɵstyleMapInterpolate8': ɵɵstyleMapInterpolate8,
          'ɵɵstyleMapInterpolateV': ɵɵstyleMapInterpolateV,
          'ɵɵstyleProp': ɵɵstyleProp,
          'ɵɵstylePropInterpolate1': ɵɵstylePropInterpolate1,
          'ɵɵstylePropInterpolate2': ɵɵstylePropInterpolate2,
          'ɵɵstylePropInterpolate3': ɵɵstylePropInterpolate3,
          'ɵɵstylePropInterpolate4': ɵɵstylePropInterpolate4,
          'ɵɵstylePropInterpolate5': ɵɵstylePropInterpolate5,
          'ɵɵstylePropInterpolate6': ɵɵstylePropInterpolate6,
          'ɵɵstylePropInterpolate7': ɵɵstylePropInterpolate7,
          'ɵɵstylePropInterpolate8': ɵɵstylePropInterpolate8,
          'ɵɵstylePropInterpolateV': ɵɵstylePropInterpolateV,
          'ɵɵclassProp': ɵɵclassProp,
          'ɵɵadvance': ɵɵadvance,
          'ɵɵtemplate': ɵɵtemplate,
          'ɵɵtext': ɵɵtext,
          'ɵɵtextInterpolate': ɵɵtextInterpolate,
          'ɵɵtextInterpolate1': ɵɵtextInterpolate1,
          'ɵɵtextInterpolate2': ɵɵtextInterpolate2,
          'ɵɵtextInterpolate3': ɵɵtextInterpolate3,
          'ɵɵtextInterpolate4': ɵɵtextInterpolate4,
          'ɵɵtextInterpolate5': ɵɵtextInterpolate5,
          'ɵɵtextInterpolate6': ɵɵtextInterpolate6,
          'ɵɵtextInterpolate7': ɵɵtextInterpolate7,
          'ɵɵtextInterpolate8': ɵɵtextInterpolate8,
          'ɵɵtextInterpolateV': ɵɵtextInterpolateV,
          'ɵɵi18n': ɵɵi18n,
          'ɵɵi18nAttributes': ɵɵi18nAttributes,
          'ɵɵi18nExp': ɵɵi18nExp,
          'ɵɵi18nStart': ɵɵi18nStart,
          'ɵɵi18nEnd': ɵɵi18nEnd,
          'ɵɵi18nApply': ɵɵi18nApply,
          'ɵɵi18nPostprocess': ɵɵi18nPostprocess,
          'ɵɵresolveWindow': ɵɵresolveWindow,
          'ɵɵresolveDocument': ɵɵresolveDocument,
          'ɵɵresolveBody': ɵɵresolveBody,
          'ɵɵsetComponentScope': ɵɵsetComponentScope,
          'ɵɵsetNgModuleScope': ɵɵsetNgModuleScope,
          'ɵɵsanitizeHtml': ɵɵsanitizeHtml,
          'ɵɵsanitizeStyle': ɵɵsanitizeStyle,
          'ɵɵsanitizeResourceUrl': ɵɵsanitizeResourceUrl,
          'ɵɵsanitizeScript': ɵɵsanitizeScript,
          'ɵɵsanitizeUrl': ɵɵsanitizeUrl,
          'ɵɵsanitizeUrlOrResourceUrl': ɵɵsanitizeUrlOrResourceUrl,
          'ɵɵtrustConstantHtml': ɵɵtrustConstantHtml,
          'ɵɵtrustConstantScript': ɵɵtrustConstantScript,
          'ɵɵtrustConstantResourceUrl': ɵɵtrustConstantResourceUrl
        };
      };
      /**
       * A mapping of the @angular/core API surface used in generated expressions to the actual symbols.
       *
       * This should be kept up to date with the public exports of @angular/core.
       */


      var angularCoreEnv = ɵ0$d();
      var jitOptions = null;

      function setJitOptions(options) {
        if (jitOptions !== null) {
          if (options.defaultEncapsulation !== jitOptions.defaultEncapsulation) {
            ngDevMode && console.error('Provided value for `defaultEncapsulation` can not be changed once it has been set.');
            return;
          }

          if (options.preserveWhitespaces !== jitOptions.preserveWhitespaces) {
            ngDevMode && console.error('Provided value for `preserveWhitespaces` can not be changed once it has been set.');
            return;
          }
        }

        jitOptions = options;
      }

      function getJitOptions() {
        return jitOptions;
      }

      function resetJitOptions() {
        jitOptions = null;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var EMPTY_ARRAY$5 = [];
      var moduleQueue = [];
      /**
       * Enqueues moduleDef to be checked later to see if scope can be set on its
       * component declarations.
       */

      function enqueueModuleForDelayedScoping(moduleType, ngModule) {
        moduleQueue.push({
          moduleType: moduleType,
          ngModule: ngModule
        });
      }

      var flushingModuleQueue = false;
      /**
       * Loops over queued module definitions, if a given module definition has all of its
       * declarations resolved, it dequeues that module definition and sets the scope on
       * its declarations.
       */

      function flushModuleScopingQueueAsMuchAsPossible() {
        if (!flushingModuleQueue) {
          flushingModuleQueue = true;

          try {
            for (var i = moduleQueue.length - 1; i >= 0; i--) {
              var _moduleQueue$i = moduleQueue[i],
                  moduleType = _moduleQueue$i.moduleType,
                  ngModule = _moduleQueue$i.ngModule;

              if (ngModule.declarations && ngModule.declarations.every(isResolvedDeclaration)) {
                // dequeue
                moduleQueue.splice(i, 1);
                setScopeOnDeclaredComponents(moduleType, ngModule);
              }
            }
          } finally {
            flushingModuleQueue = false;
          }
        }
      }
      /**
       * Returns truthy if a declaration has resolved. If the declaration happens to be
       * an array of declarations, it will recurse to check each declaration in that array
       * (which may also be arrays).
       */


      function isResolvedDeclaration(declaration) {
        if (Array.isArray(declaration)) {
          return declaration.every(isResolvedDeclaration);
        }

        return !!resolveForwardRef(declaration);
      }
      /**
       * Compiles a module in JIT mode.
       *
       * This function automatically gets called when a class has a `@NgModule` decorator.
       */


      function compileNgModule(moduleType) {
        var ngModule = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
        compileNgModuleDefs(moduleType, ngModule); // Because we don't know if all declarations have resolved yet at the moment the
        // NgModule decorator is executing, we're enqueueing the setting of module scope
        // on its declarations to be run at a later time when all declarations for the module,
        // including forward refs, have resolved.

        enqueueModuleForDelayedScoping(moduleType, ngModule);
      }
      /**
       * Compiles and adds the `ɵmod` and `ɵinj` properties to the module class.
       *
       * It's possible to compile a module via this API which will allow duplicate declarations in its
       * root.
       */


      function compileNgModuleDefs(moduleType, ngModule) {
        var allowDuplicateDeclarationsInRoot = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
        ngDevMode && assertDefined(moduleType, 'Required value moduleType');
        ngDevMode && assertDefined(ngModule, 'Required value ngModule');
        var declarations = flatten(ngModule.declarations || EMPTY_ARRAY$5);
        var ngModuleDef = null;
        Object.defineProperty(moduleType, NG_MOD_DEF, {
          configurable: true,
          get: function get() {
            if (ngModuleDef === null) {
              if (ngDevMode && ngModule.imports && ngModule.imports.indexOf(moduleType) > -1) {
                // We need to assert this immediately, because allowing it to continue will cause it to
                // go into an infinite loop before we've reached the point where we throw all the errors.
                throw new Error("'".concat(stringifyForError(moduleType), "' module can't import itself"));
              }

              ngModuleDef = getCompilerFacade().compileNgModule(angularCoreEnv, "ng:///".concat(moduleType.name, "/\u0275mod.js"), {
                type: moduleType,
                bootstrap: flatten(ngModule.bootstrap || EMPTY_ARRAY$5).map(resolveForwardRef),
                declarations: declarations.map(resolveForwardRef),
                imports: flatten(ngModule.imports || EMPTY_ARRAY$5).map(resolveForwardRef).map(expandModuleWithProviders),
                exports: flatten(ngModule.exports || EMPTY_ARRAY$5).map(resolveForwardRef).map(expandModuleWithProviders),
                schemas: ngModule.schemas ? flatten(ngModule.schemas) : null,
                id: ngModule.id || null
              }); // Set `schemas` on ngModuleDef to an empty array in JIT mode to indicate that runtime
              // should verify that there are no unknown elements in a template. In AOT mode, that check
              // happens at compile time and `schemas` information is not present on Component and Module
              // defs after compilation (so the check doesn't happen the second time at runtime).

              if (!ngModuleDef.schemas) {
                ngModuleDef.schemas = [];
              }
            }

            return ngModuleDef;
          }
        });
        var ngInjectorDef = null;
        Object.defineProperty(moduleType, NG_INJ_DEF, {
          get: function get() {
            if (ngInjectorDef === null) {
              ngDevMode && verifySemanticsOfNgModuleDef(moduleType, allowDuplicateDeclarationsInRoot);
              var meta = {
                name: moduleType.name,
                type: moduleType,
                deps: reflectDependencies(moduleType),
                providers: ngModule.providers || EMPTY_ARRAY$5,
                imports: [(ngModule.imports || EMPTY_ARRAY$5).map(resolveForwardRef), (ngModule.exports || EMPTY_ARRAY$5).map(resolveForwardRef)]
              };
              ngInjectorDef = getCompilerFacade().compileInjector(angularCoreEnv, "ng:///".concat(moduleType.name, "/\u0275inj.js"), meta);
            }

            return ngInjectorDef;
          },
          // Make the property configurable in dev mode to allow overriding in tests
          configurable: !!ngDevMode
        });
      }

      function verifySemanticsOfNgModuleDef(moduleType, allowDuplicateDeclarationsInRoot, importingModule) {
        if (verifiedNgModule.get(moduleType)) return;
        verifiedNgModule.set(moduleType, true);
        moduleType = resolveForwardRef(moduleType);
        var ngModuleDef;

        if (importingModule) {
          ngModuleDef = getNgModuleDef(moduleType);

          if (!ngModuleDef) {
            throw new Error("Unexpected value '".concat(moduleType.name, "' imported by the module '").concat(importingModule.name, "'. Please add an @NgModule annotation."));
          }
        } else {
          ngModuleDef = getNgModuleDef(moduleType, true);
        }

        var errors = [];
        var declarations = maybeUnwrapFn(ngModuleDef.declarations);
        var imports = maybeUnwrapFn(ngModuleDef.imports);
        flatten(imports).map(unwrapModuleWithProvidersImports).forEach(function (mod) {
          verifySemanticsOfNgModuleImport(mod, moduleType);
          verifySemanticsOfNgModuleDef(mod, false, moduleType);
        });
        var exports = maybeUnwrapFn(ngModuleDef.exports);
        declarations.forEach(verifyDeclarationsHaveDefinitions);
        declarations.forEach(verifyDirectivesHaveSelector);
        var combinedDeclarations = [].concat(_toConsumableArray(declarations.map(resolveForwardRef)), _toConsumableArray(flatten(imports.map(computeCombinedExports)).map(resolveForwardRef)));
        exports.forEach(verifyExportsAreDeclaredOrReExported);
        declarations.forEach(function (decl) {
          return verifyDeclarationIsUnique(decl, allowDuplicateDeclarationsInRoot);
        });
        declarations.forEach(verifyComponentEntryComponentsIsPartOfNgModule);
        var ngModule = getAnnotation(moduleType, 'NgModule');

        if (ngModule) {
          ngModule.imports && flatten(ngModule.imports).map(unwrapModuleWithProvidersImports).forEach(function (mod) {
            verifySemanticsOfNgModuleImport(mod, moduleType);
            verifySemanticsOfNgModuleDef(mod, false, moduleType);
          });
          ngModule.bootstrap && deepForEach(ngModule.bootstrap, verifyCorrectBootstrapType);
          ngModule.bootstrap && deepForEach(ngModule.bootstrap, verifyComponentIsPartOfNgModule);
          ngModule.entryComponents && deepForEach(ngModule.entryComponents, verifyComponentIsPartOfNgModule);
        } // Throw Error if any errors were detected.


        if (errors.length) {
          throw new Error(errors.join('\n'));
        } ////////////////////////////////////////////////////////////////////////////////////////////////


        function verifyDeclarationsHaveDefinitions(type) {
          type = resolveForwardRef(type);
          var def = getComponentDef(type) || getDirectiveDef(type) || getPipeDef(type);

          if (!def) {
            errors.push("Unexpected value '".concat(stringifyForError(type), "' declared by the module '").concat(stringifyForError(moduleType), "'. Please add a @Pipe/@Directive/@Component annotation."));
          }
        }

        function verifyDirectivesHaveSelector(type) {
          type = resolveForwardRef(type);
          var def = getDirectiveDef(type);

          if (!getComponentDef(type) && def && def.selectors.length == 0) {
            errors.push("Directive ".concat(stringifyForError(type), " has no selector, please add it!"));
          }
        }

        function verifyExportsAreDeclaredOrReExported(type) {
          type = resolveForwardRef(type);
          var kind = getComponentDef(type) && 'component' || getDirectiveDef(type) && 'directive' || getPipeDef(type) && 'pipe';

          if (kind) {
            // only checked if we are declared as Component, Directive, or Pipe
            // Modules don't need to be declared or imported.
            if (combinedDeclarations.lastIndexOf(type) === -1) {
              // We are exporting something which we don't explicitly declare or import.
              errors.push("Can't export ".concat(kind, " ").concat(stringifyForError(type), " from ").concat(stringifyForError(moduleType), " as it was neither declared nor imported!"));
            }
          }
        }

        function verifyDeclarationIsUnique(type, suppressErrors) {
          type = resolveForwardRef(type);
          var existingModule = ownerNgModule.get(type);

          if (existingModule && existingModule !== moduleType) {
            if (!suppressErrors) {
              var _modules = [existingModule, moduleType].map(stringifyForError).sort();

              errors.push("Type ".concat(stringifyForError(type), " is part of the declarations of 2 modules: ").concat(_modules[0], " and ").concat(_modules[1], "! ") + "Please consider moving ".concat(stringifyForError(type), " to a higher module that imports ").concat(_modules[0], " and ").concat(_modules[1], ". ") + "You can also create a new NgModule that exports and includes ".concat(stringifyForError(type), " then import that NgModule in ").concat(_modules[0], " and ").concat(_modules[1], "."));
            }
          } else {
            // Mark type as having owner.
            ownerNgModule.set(type, moduleType);
          }
        }

        function verifyComponentIsPartOfNgModule(type) {
          type = resolveForwardRef(type);
          var existingModule = ownerNgModule.get(type);

          if (!existingModule) {
            errors.push("Component ".concat(stringifyForError(type), " is not part of any NgModule or the module has not been imported into your module."));
          }
        }

        function verifyCorrectBootstrapType(type) {
          type = resolveForwardRef(type);

          if (!getComponentDef(type)) {
            errors.push("".concat(stringifyForError(type), " cannot be used as an entry component."));
          }
        }

        function verifyComponentEntryComponentsIsPartOfNgModule(type) {
          type = resolveForwardRef(type);

          if (getComponentDef(type)) {
            // We know we are component
            var component = getAnnotation(type, 'Component');

            if (component && component.entryComponents) {
              deepForEach(component.entryComponents, verifyComponentIsPartOfNgModule);
            }
          }
        }

        function verifySemanticsOfNgModuleImport(type, importingModule) {
          type = resolveForwardRef(type);

          if (getComponentDef(type) || getDirectiveDef(type)) {
            throw new Error("Unexpected directive '".concat(type.name, "' imported by the module '").concat(importingModule.name, "'. Please add an @NgModule annotation."));
          }

          if (getPipeDef(type)) {
            throw new Error("Unexpected pipe '".concat(type.name, "' imported by the module '").concat(importingModule.name, "'. Please add an @NgModule annotation."));
          }
        }
      }

      function unwrapModuleWithProvidersImports(typeOrWithProviders) {
        typeOrWithProviders = resolveForwardRef(typeOrWithProviders);
        return typeOrWithProviders.ngModule || typeOrWithProviders;
      }

      function getAnnotation(type, name) {
        var annotation = null;
        collect(type.__annotations__);
        collect(type.decorators);
        return annotation;

        function collect(annotations) {
          if (annotations) {
            annotations.forEach(readAnnotation);
          }
        }

        function readAnnotation(decorator) {
          if (!annotation) {
            var proto = Object.getPrototypeOf(decorator);

            if (proto.ngMetadataName == name) {
              annotation = decorator;
            } else if (decorator.type) {
              var _proto = Object.getPrototypeOf(decorator.type);

              if (_proto.ngMetadataName == name) {
                annotation = decorator.args[0];
              }
            }
          }
        }
      }
      /**
       * Keep track of compiled components. This is needed because in tests we often want to compile the
       * same component with more than one NgModule. This would cause an error unless we reset which
       * NgModule the component belongs to. We keep the list of compiled components here so that the
       * TestBed can reset it later.
       */


      var ownerNgModule = new Map();
      var verifiedNgModule = new Map();

      function resetCompiledComponents() {
        ownerNgModule = new Map();
        verifiedNgModule = new Map();
        moduleQueue.length = 0;
      }
      /**
       * Computes the combined declarations of explicit declarations, as well as declarations inherited by
       * traversing the exports of imported modules.
       * @param type
       */


      function computeCombinedExports(type) {
        type = resolveForwardRef(type);
        var ngModuleDef = getNgModuleDef(type, true);
        return _toConsumableArray(flatten(maybeUnwrapFn(ngModuleDef.exports).map(function (type) {
          var ngModuleDef = getNgModuleDef(type);

          if (ngModuleDef) {
            verifySemanticsOfNgModuleDef(type, false);
            return computeCombinedExports(type);
          } else {
            return type;
          }
        })));
      }
      /**
       * Some declared components may be compiled asynchronously, and thus may not have their
       * ɵcmp set yet. If this is the case, then a reference to the module is written into
       * the `ngSelectorScope` property of the declared type.
       */


      function setScopeOnDeclaredComponents(moduleType, ngModule) {
        var declarations = flatten(ngModule.declarations || EMPTY_ARRAY$5);
        var transitiveScopes = transitiveScopesFor(moduleType);
        declarations.forEach(function (declaration) {
          if (declaration.hasOwnProperty(NG_COMP_DEF)) {
            // A `ɵcmp` field exists - go ahead and patch the component directly.
            var component = declaration;
            var componentDef = getComponentDef(component);
            patchComponentDefWithScope(componentDef, transitiveScopes);
          } else if (!declaration.hasOwnProperty(NG_DIR_DEF) && !declaration.hasOwnProperty(NG_PIPE_DEF)) {
            // Set `ngSelectorScope` for future reference when the component compilation finishes.
            declaration.ngSelectorScope = moduleType;
          }
        });
      }
      /**
       * Patch the definition of a component with directives and pipes from the compilation scope of
       * a given module.
       */


      function patchComponentDefWithScope(componentDef, transitiveScopes) {
        componentDef.directiveDefs = function () {
          return Array.from(transitiveScopes.compilation.directives).map(function (dir) {
            return dir.hasOwnProperty(NG_COMP_DEF) ? getComponentDef(dir) : getDirectiveDef(dir);
          }).filter(function (def) {
            return !!def;
          });
        };

        componentDef.pipeDefs = function () {
          return Array.from(transitiveScopes.compilation.pipes).map(function (pipe) {
            return getPipeDef(pipe);
          });
        };

        componentDef.schemas = transitiveScopes.schemas; // Since we avoid Components/Directives/Pipes recompiling in case there are no overrides, we
        // may face a problem where previously compiled defs available to a given Component/Directive
        // are cached in TView and may become stale (in case any of these defs gets recompiled). In
        // order to avoid this problem, we force fresh TView to be created.

        componentDef.tView = null;
      }
      /**
       * Compute the pair of transitive scopes (compilation scope and exported scope) for a given module.
       *
       * This operation is memoized and the result is cached on the module's definition. This function can
       * be called on modules with components that have not fully compiled yet, but the result should not
       * be used until they have.
       *
       * @param moduleType module that transitive scope should be calculated for.
       */


      function transitiveScopesFor(moduleType) {
        if (!isNgModule(moduleType)) {
          throw new Error("".concat(moduleType.name, " does not have a module def (\u0275mod property)"));
        }

        var def = getNgModuleDef(moduleType);

        if (def.transitiveCompileScopes !== null) {
          return def.transitiveCompileScopes;
        }

        var scopes = {
          schemas: def.schemas || null,
          compilation: {
            directives: new Set(),
            pipes: new Set()
          },
          exported: {
            directives: new Set(),
            pipes: new Set()
          }
        };
        maybeUnwrapFn(def.imports).forEach(function (imported) {
          var importedType = imported;

          if (!isNgModule(importedType)) {
            throw new Error("Importing ".concat(importedType.name, " which does not have a \u0275mod property"));
          } // When this module imports another, the imported module's exported directives and pipes are
          // added to the compilation scope of this module.


          var importedScope = transitiveScopesFor(importedType);
          importedScope.exported.directives.forEach(function (entry) {
            return scopes.compilation.directives.add(entry);
          });
          importedScope.exported.pipes.forEach(function (entry) {
            return scopes.compilation.pipes.add(entry);
          });
        });
        maybeUnwrapFn(def.declarations).forEach(function (declared) {
          var declaredWithDefs = declared;

          if (getPipeDef(declaredWithDefs)) {
            scopes.compilation.pipes.add(declared);
          } else {
            // Either declared has a ɵcmp or ɵdir, or it's a component which hasn't
            // had its template compiled yet. In either case, it gets added to the compilation's
            // directives.
            scopes.compilation.directives.add(declared);
          }
        });
        maybeUnwrapFn(def.exports).forEach(function (exported) {
          var exportedType = exported; // Either the type is a module, a pipe, or a component/directive (which may not have a
          // ɵcmp as it might be compiled asynchronously).

          if (isNgModule(exportedType)) {
            // When this module exports another, the exported module's exported directives and pipes are
            // added to both the compilation and exported scopes of this module.
            var exportedScope = transitiveScopesFor(exportedType);
            exportedScope.exported.directives.forEach(function (entry) {
              scopes.compilation.directives.add(entry);
              scopes.exported.directives.add(entry);
            });
            exportedScope.exported.pipes.forEach(function (entry) {
              scopes.compilation.pipes.add(entry);
              scopes.exported.pipes.add(entry);
            });
          } else if (getPipeDef(exportedType)) {
            scopes.exported.pipes.add(exportedType);
          } else {
            scopes.exported.directives.add(exportedType);
          }
        });
        def.transitiveCompileScopes = scopes;
        return scopes;
      }

      function expandModuleWithProviders(value) {
        if (isModuleWithProviders(value)) {
          return value.ngModule;
        }

        return value;
      }

      function isModuleWithProviders(value) {
        return value.ngModule !== undefined;
      }

      function isNgModule(value) {
        return !!getNgModuleDef(value);
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Keep track of the compilation depth to avoid reentrancy issues during JIT compilation. This
       * matters in the following scenario:
       *
       * Consider a component 'A' that extends component 'B', both declared in module 'M'. During
       * the compilation of 'A' the definition of 'B' is requested to capture the inheritance chain,
       * potentially triggering compilation of 'B'. If this nested compilation were to trigger
       * `flushModuleScopingQueueAsMuchAsPossible` it may happen that module 'M' is still pending in the
       * queue, resulting in 'A' and 'B' to be patched with the NgModule scope. As the compilation of
       * 'A' is still in progress, this would introduce a circular dependency on its compilation. To avoid
       * this issue, the module scope queue is only flushed for compilations at the depth 0, to ensure
       * all compilations have finished.
       */


      var compilationDepth = 0;
      /**
       * Compile an Angular component according to its decorator metadata, and patch the resulting
       * component def (ɵcmp) onto the component type.
       *
       * Compilation may be asynchronous (due to the need to resolve URLs for the component template or
       * other resources, for example). In the event that compilation is not immediate, `compileComponent`
       * will enqueue resource resolution into a global queue and will fail to return the `ɵcmp`
       * until the global queue has been resolved with a call to `resolveComponentResources`.
       */

      function compileComponent(type, metadata) {
        // Initialize ngDevMode. This must be the first statement in compileComponent.
        // See the `initNgDevMode` docstring for more information.
        (typeof ngDevMode === 'undefined' || ngDevMode) && initNgDevMode();
        var ngComponentDef = null; // Metadata may have resources which need to be resolved.

        maybeQueueResolutionOfComponentResources(type, metadata); // Note that we're using the same function as `Directive`, because that's only subset of metadata
        // that we need to create the ngFactoryDef. We're avoiding using the component metadata
        // because we'd have to resolve the asynchronous templates.

        addDirectiveFactoryDef(type, metadata);
        Object.defineProperty(type, NG_COMP_DEF, {
          get: function get() {
            if (ngComponentDef === null) {
              var compiler = getCompilerFacade();

              if (componentNeedsResolution(metadata)) {
                var error = ["Component '".concat(type.name, "' is not resolved:")];

                if (metadata.templateUrl) {
                  error.push(" - templateUrl: ".concat(metadata.templateUrl));
                }

                if (metadata.styleUrls && metadata.styleUrls.length) {
                  error.push(" - styleUrls: ".concat(JSON.stringify(metadata.styleUrls)));
                }

                error.push("Did you run and wait for 'resolveComponentResources()'?");
                throw new Error(error.join('\n'));
              } // This const was called `jitOptions` previously but had to be renamed to `options` because
              // of a bug with Terser that caused optimized JIT builds to throw a `ReferenceError`.
              // This bug was investigated in https://github.com/angular/angular-cli/issues/17264.
              // We should not rename it back until https://github.com/terser/terser/issues/615 is fixed.


              var options = getJitOptions();
              var preserveWhitespaces = metadata.preserveWhitespaces;

              if (preserveWhitespaces === undefined) {
                if (options !== null && options.preserveWhitespaces !== undefined) {
                  preserveWhitespaces = options.preserveWhitespaces;
                } else {
                  preserveWhitespaces = false;
                }
              }

              var encapsulation = metadata.encapsulation;

              if (encapsulation === undefined) {
                if (options !== null && options.defaultEncapsulation !== undefined) {
                  encapsulation = options.defaultEncapsulation;
                } else {
                  encapsulation = ViewEncapsulation$1.Emulated;
                }
              }

              var templateUrl = metadata.templateUrl || "ng:///".concat(type.name, "/template.html");
              var meta = Object.assign(Object.assign({}, directiveMetadata(type, metadata)), {
                typeSourceSpan: compiler.createParseSourceSpan('Component', type.name, templateUrl),
                template: metadata.template || '',
                preserveWhitespaces: preserveWhitespaces,
                styles: metadata.styles || EMPTY_ARRAY,
                animations: metadata.animations,
                directives: [],
                changeDetection: metadata.changeDetection,
                pipes: new Map(),
                encapsulation: encapsulation,
                interpolation: metadata.interpolation,
                viewProviders: metadata.viewProviders || null
              });
              compilationDepth++;

              try {
                if (meta.usesInheritance) {
                  addDirectiveDefToUndecoratedParents(type);
                }

                ngComponentDef = compiler.compileComponent(angularCoreEnv, templateUrl, meta);
              } finally {
                // Ensure that the compilation depth is decremented even when the compilation failed.
                compilationDepth--;
              }

              if (compilationDepth === 0) {
                // When NgModule decorator executed, we enqueued the module definition such that
                // it would only dequeue and add itself as module scope to all of its declarations,
                // but only if  if all of its declarations had resolved. This call runs the check
                // to see if any modules that are in the queue can be dequeued and add scope to
                // their declarations.
                flushModuleScopingQueueAsMuchAsPossible();
              } // If component compilation is async, then the @NgModule annotation which declares the
              // component may execute and set an ngSelectorScope property on the component type. This
              // allows the component to patch itself with directiveDefs from the module after it
              // finishes compiling.


              if (hasSelectorScope(type)) {
                var scopes = transitiveScopesFor(type.ngSelectorScope);
                patchComponentDefWithScope(ngComponentDef, scopes);
              }
            }

            return ngComponentDef;
          },
          // Make the property configurable in dev mode to allow overriding in tests
          configurable: !!ngDevMode
        });
      }

      function hasSelectorScope(component) {
        return component.ngSelectorScope !== undefined;
      }
      /**
       * Compile an Angular directive according to its decorator metadata, and patch the resulting
       * directive def onto the component type.
       *
       * In the event that compilation is not immediate, `compileDirective` will return a `Promise` which
       * will resolve when compilation completes and the directive becomes usable.
       */


      function compileDirective(type, directive) {
        var ngDirectiveDef = null;
        addDirectiveFactoryDef(type, directive || {});
        Object.defineProperty(type, NG_DIR_DEF, {
          get: function get() {
            if (ngDirectiveDef === null) {
              // `directive` can be null in the case of abstract directives as a base class
              // that use `@Directive()` with no selector. In that case, pass empty object to the
              // `directiveMetadata` function instead of null.
              var meta = getDirectiveMetadata(type, directive || {});
              ngDirectiveDef = getCompilerFacade().compileDirective(angularCoreEnv, meta.sourceMapUrl, meta.metadata);
            }

            return ngDirectiveDef;
          },
          // Make the property configurable in dev mode to allow overriding in tests
          configurable: !!ngDevMode
        });
      }

      function getDirectiveMetadata(type, metadata) {
        var name = type && type.name;
        var sourceMapUrl = "ng:///".concat(name, "/\u0275dir.js");
        var compiler = getCompilerFacade();
        var facade = directiveMetadata(type, metadata);
        facade.typeSourceSpan = compiler.createParseSourceSpan('Directive', name, sourceMapUrl);

        if (facade.usesInheritance) {
          addDirectiveDefToUndecoratedParents(type);
        }

        return {
          metadata: facade,
          sourceMapUrl: sourceMapUrl
        };
      }

      function addDirectiveFactoryDef(type, metadata) {
        var ngFactoryDef = null;
        Object.defineProperty(type, NG_FACTORY_DEF, {
          get: function get() {
            if (ngFactoryDef === null) {
              var meta = getDirectiveMetadata(type, metadata);
              var compiler = getCompilerFacade();
              ngFactoryDef = compiler.compileFactory(angularCoreEnv, "ng:///".concat(type.name, "/\u0275fac.js"), Object.assign(Object.assign({}, meta.metadata), {
                injectFn: 'directiveInject',
                target: compiler.R3FactoryTarget.Directive
              }));
            }

            return ngFactoryDef;
          },
          // Make the property configurable in dev mode to allow overriding in tests
          configurable: !!ngDevMode
        });
      }

      function extendsDirectlyFromObject(type) {
        return Object.getPrototypeOf(type.prototype) === Object.prototype;
      }
      /**
       * Extract the `R3DirectiveMetadata` for a particular directive (either a `Directive` or a
       * `Component`).
       */


      function directiveMetadata(type, metadata) {
        // Reflect inputs and outputs.
        var reflect = getReflect();
        var propMetadata = reflect.ownPropMetadata(type);
        return {
          name: type.name,
          type: type,
          typeArgumentCount: 0,
          selector: metadata.selector !== undefined ? metadata.selector : null,
          deps: reflectDependencies(type),
          host: metadata.host || EMPTY_OBJ,
          propMetadata: propMetadata,
          inputs: metadata.inputs || EMPTY_ARRAY,
          outputs: metadata.outputs || EMPTY_ARRAY,
          queries: extractQueriesMetadata(type, propMetadata, isContentQuery),
          lifecycle: {
            usesOnChanges: reflect.hasLifecycleHook(type, 'ngOnChanges')
          },
          typeSourceSpan: null,
          usesInheritance: !extendsDirectlyFromObject(type),
          exportAs: extractExportAs(metadata.exportAs),
          providers: metadata.providers || null,
          viewQueries: extractQueriesMetadata(type, propMetadata, isViewQuery)
        };
      }
      /**
       * Adds a directive definition to all parent classes of a type that don't have an Angular decorator.
       */


      function addDirectiveDefToUndecoratedParents(type) {
        var objPrototype = Object.prototype;
        var parent = Object.getPrototypeOf(type.prototype).constructor; // Go up the prototype until we hit `Object`.

        while (parent && parent !== objPrototype) {
          // Since inheritance works if the class was annotated already, we only need to add
          // the def if there are no annotations and the def hasn't been created already.
          if (!getDirectiveDef(parent) && !getComponentDef(parent) && shouldAddAbstractDirective(parent)) {
            compileDirective(parent, null);
          }

          parent = Object.getPrototypeOf(parent);
        }
      }

      function convertToR3QueryPredicate(selector) {
        return typeof selector === 'string' ? splitByComma(selector) : resolveForwardRef(selector);
      }

      function convertToR3QueryMetadata(propertyName, ann) {
        return {
          propertyName: propertyName,
          predicate: convertToR3QueryPredicate(ann.selector),
          descendants: ann.descendants,
          first: ann.first,
          read: ann.read ? ann.read : null,
          "static": !!ann["static"]
        };
      }

      function extractQueriesMetadata(type, propMetadata, isQueryAnn) {
        var queriesMeta = [];

        var _loop5 = function _loop5(field) {
          if (propMetadata.hasOwnProperty(field)) {
            var annotations = propMetadata[field];
            annotations.forEach(function (ann) {
              if (isQueryAnn(ann)) {
                if (!ann.selector) {
                  throw new Error("Can't construct a query for the property \"".concat(field, "\" of ") + "\"".concat(stringifyForError(type), "\" since the query selector wasn't defined."));
                }

                if (annotations.some(isInputAnnotation)) {
                  throw new Error("Cannot combine @Input decorators with query decorators");
                }

                queriesMeta.push(convertToR3QueryMetadata(field, ann));
              }
            });
          }
        };

        for (var field in propMetadata) {
          _loop5(field);
        }

        return queriesMeta;
      }

      function extractExportAs(exportAs) {
        return exportAs === undefined ? null : splitByComma(exportAs);
      }

      function isContentQuery(value) {
        var name = value.ngMetadataName;
        return name === 'ContentChild' || name === 'ContentChildren';
      }

      function isViewQuery(value) {
        var name = value.ngMetadataName;
        return name === 'ViewChild' || name === 'ViewChildren';
      }

      function isInputAnnotation(value) {
        return value.ngMetadataName === 'Input';
      }

      function splitByComma(value) {
        return value.split(',').map(function (piece) {
          return piece.trim();
        });
      }

      var LIFECYCLE_HOOKS = ['ngOnChanges', 'ngOnInit', 'ngOnDestroy', 'ngDoCheck', 'ngAfterViewInit', 'ngAfterViewChecked', 'ngAfterContentInit', 'ngAfterContentChecked'];

      function shouldAddAbstractDirective(type) {
        var reflect = getReflect();

        if (LIFECYCLE_HOOKS.some(function (hookName) {
          return reflect.hasLifecycleHook(type, hookName);
        })) {
          return true;
        }

        var propMetadata = reflect.propMetadata(type);

        for (var field in propMetadata) {
          var annotations = propMetadata[field];

          for (var i = 0; i < annotations.length; i++) {
            var current = annotations[i];
            var metadataName = current.ngMetadataName;

            if (isInputAnnotation(current) || isContentQuery(current) || isViewQuery(current) || metadataName === 'Output' || metadataName === 'HostBinding' || metadataName === 'HostListener') {
              return true;
            }
          }
        }

        return false;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function compilePipe(type, meta) {
        var ngPipeDef = null;
        var ngFactoryDef = null;
        Object.defineProperty(type, NG_FACTORY_DEF, {
          get: function get() {
            if (ngFactoryDef === null) {
              var metadata = getPipeMetadata(type, meta);
              var compiler = getCompilerFacade();
              ngFactoryDef = compiler.compileFactory(angularCoreEnv, "ng:///".concat(metadata.name, "/\u0275fac.js"), Object.assign(Object.assign({}, metadata), {
                injectFn: 'directiveInject',
                target: compiler.R3FactoryTarget.Pipe
              }));
            }

            return ngFactoryDef;
          },
          // Make the property configurable in dev mode to allow overriding in tests
          configurable: !!ngDevMode
        });
        Object.defineProperty(type, NG_PIPE_DEF, {
          get: function get() {
            if (ngPipeDef === null) {
              var metadata = getPipeMetadata(type, meta);
              ngPipeDef = getCompilerFacade().compilePipe(angularCoreEnv, "ng:///".concat(metadata.name, "/\u0275pipe.js"), metadata);
            }

            return ngPipeDef;
          },
          // Make the property configurable in dev mode to allow overriding in tests
          configurable: !!ngDevMode
        });
      }

      function getPipeMetadata(type, meta) {
        return {
          type: type,
          typeArgumentCount: 0,
          name: type.name,
          deps: reflectDependencies(type),
          pipeName: meta.name,
          pure: meta.pure !== undefined ? meta.pure : true
        };
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var ɵ0$e = function ɵ0$e() {
        var dir = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
        return dir;
      },
          ɵ1$3 = function ɵ1$3(type, meta) {
        return SWITCH_COMPILE_DIRECTIVE(type, meta);
      };
      /**
       * Type of the Directive metadata.
       *
       * @publicApi
       */


      var Directive = makeDecorator('Directive', ɵ0$e, undefined, undefined, ɵ1$3);

      var ɵ2$1 = function ɵ2$1() {
        var c = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
        return Object.assign({
          changeDetection: ChangeDetectionStrategy.Default
        }, c);
      },
          ɵ3$1 = function ɵ3$1(type, meta) {
        return SWITCH_COMPILE_COMPONENT(type, meta);
      };
      /**
       * Component decorator and metadata.
       *
       * @Annotation
       * @publicApi
       */


      var Component = makeDecorator('Component', ɵ2$1, Directive, undefined, ɵ3$1);

      var ɵ4 = function ɵ4(p) {
        return Object.assign({
          pure: true
        }, p);
      },
          ɵ5 = function ɵ5(type, meta) {
        return SWITCH_COMPILE_PIPE(type, meta);
      };
      /**
       * @Annotation
       * @publicApi
       */


      var Pipe = makeDecorator('Pipe', ɵ4, undefined, undefined, ɵ5);

      var ɵ6 = function ɵ6(bindingPropertyName) {
        return {
          bindingPropertyName: bindingPropertyName
        };
      };
      /**
       * @Annotation
       * @publicApi
       */


      var Input = makePropDecorator('Input', ɵ6);

      var ɵ7 = function ɵ7(bindingPropertyName) {
        return {
          bindingPropertyName: bindingPropertyName
        };
      };
      /**
       * @Annotation
       * @publicApi
       */


      var Output = makePropDecorator('Output', ɵ7);

      var ɵ8 = function ɵ8(hostPropertyName) {
        return {
          hostPropertyName: hostPropertyName
        };
      };
      /**
       * @Annotation
       * @publicApi
       */


      var HostBinding = makePropDecorator('HostBinding', ɵ8);

      var ɵ9 = function ɵ9(eventName, args) {
        return {
          eventName: eventName,
          args: args
        };
      };
      /**
       * Decorator that binds a DOM event to a host listener and supplies configuration metadata.
       * Angular invokes the supplied handler method when the host element emits the specified event,
       * and updates the bound element with the result.
       *
       * If the handler method returns false, applies `preventDefault` on the bound element.
       *
       * @usageNotes
       *
       * The following example declares a directive
       * that attaches a click listener to a button and counts clicks.
       *
       * ```ts
       * @Directive({selector: 'button[counting]'})
       * class CountClicks {
       *   numberOfClicks = 0;
       *
       *   @HostListener('click', ['$event.target'])
       *   onClick(btn) {
       *     console.log('button', btn, 'number of clicks:', this.numberOfClicks++);
       *  }
       * }
       *
       * @Component({
       *   selector: 'app',
       *   template: '<button counting>Increment</button>',
       * })
       * class App {}
       *
       * ```
       *
       * The following example registers another DOM event handler that listens for key-press events.
       * ``` ts
       * import { HostListener, Component } from "@angular/core";
       *
       * @Component({
       *   selector: 'app',
       *   template: `<h1>Hello, you have pressed keys {{counter}} number of times!</h1> Press any key to
       * increment the counter.
       *   <button (click)="resetCounter()">Reset Counter</button>`
       * })
       * class AppComponent {
       *   counter = 0;
       *   @HostListener('window:keydown', ['$event'])
       *   handleKeyDown(event: KeyboardEvent) {
       *     this.counter++;
       *   }
       *   resetCounter() {
       *     this.counter = 0;
       *   }
       * }
       * ```
       *
       * @Annotation
       * @publicApi
       */


      var HostListener = makePropDecorator('HostListener', ɵ9);
      var SWITCH_COMPILE_COMPONENT__POST_R3__ = compileComponent;
      var SWITCH_COMPILE_DIRECTIVE__POST_R3__ = compileDirective;
      var SWITCH_COMPILE_PIPE__POST_R3__ = compilePipe;
      var SWITCH_COMPILE_COMPONENT__PRE_R3__ = noop;
      var SWITCH_COMPILE_DIRECTIVE__PRE_R3__ = noop;
      var SWITCH_COMPILE_PIPE__PRE_R3__ = noop;
      var SWITCH_COMPILE_COMPONENT = SWITCH_COMPILE_COMPONENT__POST_R3__;
      var SWITCH_COMPILE_DIRECTIVE = SWITCH_COMPILE_DIRECTIVE__POST_R3__;
      var SWITCH_COMPILE_PIPE = SWITCH_COMPILE_PIPE__POST_R3__;
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      var ɵ0$f = function ɵ0$f(ngModule) {
        return ngModule;
      },
          ɵ1$4 =
      /**
       * Decorator that marks the following class as an NgModule, and supplies
       * configuration metadata for it.
       *
       * * The `declarations` and `entryComponents` options configure the compiler
       * with information about what belongs to the NgModule.
       * * The `providers` options configures the NgModule's injector to provide
       * dependencies the NgModule members.
       * * The `imports` and `exports` options bring in members from other modules, and make
       * this module's members available to others.
       */
      function ɵ1$4(type, meta) {
        return SWITCH_COMPILE_NGMODULE(type, meta);
      };
      /**
       * @Annotation
       * @publicApi
       */


      var NgModule = makeDecorator('NgModule', ɵ0$f, undefined, undefined, ɵ1$4);

      function preR3NgModuleCompile(moduleType, metadata) {
        var imports = metadata && metadata.imports || [];

        if (metadata && metadata.exports) {
          imports = [].concat(_toConsumableArray(imports), [metadata.exports]);
        }

        moduleType.ɵinj = ɵɵdefineInjector({
          factory: convertInjectableProviderToFactory(moduleType, {
            useClass: moduleType
          }),
          providers: metadata && metadata.providers,
          imports: imports
        });
      }

      var SWITCH_COMPILE_NGMODULE__POST_R3__ = compileNgModule;
      var SWITCH_COMPILE_NGMODULE__PRE_R3__ = preR3NgModuleCompile;
      var SWITCH_COMPILE_NGMODULE = SWITCH_COMPILE_NGMODULE__POST_R3__;
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * A [DI token](guide/glossary#di-token "DI token definition") that you can use to provide
       * one or more initialization functions.
       *
       * The provided functions are injected at application startup and executed during
       * app initialization. If any of these functions returns a Promise, initialization
       * does not complete until the Promise is resolved.
       *
       * You can, for example, create a factory function that loads language data
       * or an external configuration, and provide that function to the `APP_INITIALIZER` token.
       * The function is executed during the application bootstrap process,
       * and the needed data is available on startup.
       *
       * @see `ApplicationInitStatus`
       *
       * @publicApi
       */

      var APP_INITIALIZER = new InjectionToken('Application Initializer');
      /**
       * A class that reflects the state of running {@link APP_INITIALIZER} functions.
       *
       * @publicApi
       */

      var ApplicationInitStatus = /*#__PURE__*/function () {
        function ApplicationInitStatus(appInits) {
          var _this421 = this;

          _classCallCheck2(this, ApplicationInitStatus);

          this.appInits = appInits;
          this.initialized = false;
          this.done = false;
          this.donePromise = new Promise(function (res, rej) {
            _this421.resolve = res;
            _this421.reject = rej;
          });
        }
        /** @internal */


        _createClass2(ApplicationInitStatus, [{
          key: "runInitializers",
          value: function runInitializers() {
            var _this422 = this;

            if (this.initialized) {
              return;
            }

            var asyncInitPromises = [];

            var complete = function complete() {
              _this422.done = true;

              _this422.resolve();
            };

            if (this.appInits) {
              for (var i = 0; i < this.appInits.length; i++) {
                var initResult = this.appInits[i]();

                if (isPromise(initResult)) {
                  asyncInitPromises.push(initResult);
                }
              }
            }

            Promise.all(asyncInitPromises).then(function () {
              complete();
            })["catch"](function (e) {
              _this422.reject(e);
            });

            if (asyncInitPromises.length === 0) {
              complete();
            }

            this.initialized = true;
          }
        }]);

        return ApplicationInitStatus;
      }();

      ApplicationInitStatus.ɵfac = function ApplicationInitStatus_Factory(t) {
        return new (t || ApplicationInitStatus)(ɵɵinject(APP_INITIALIZER, 8));
      };

      ApplicationInitStatus.ɵprov = ɵɵdefineInjectable({
        token: ApplicationInitStatus,
        factory: ApplicationInitStatus.ɵfac
      });

      ApplicationInitStatus.ctorParameters = function () {
        return [{
          type: Array,
          decorators: [{
            type: Inject,
            args: [APP_INITIALIZER]
          }, {
            type: Optional
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        setClassMetadata(ApplicationInitStatus, [{
          type: Injectable
        }], function () {
          return [{
            type: Array,
            decorators: [{
              type: Inject,
              args: [APP_INITIALIZER]
            }, {
              type: Optional
            }]
          }];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * A [DI token](guide/glossary#di-token "DI token definition") representing a unique string ID, used
       * primarily for prefixing application attributes and CSS styles when
       * {@link ViewEncapsulation#Emulated ViewEncapsulation.Emulated} is being used.
       *
       * BY default, the value is randomly generated and assigned to the application by Angular.
       * To provide a custom ID value, use a DI provider <!-- TODO: provider --> to configure
       * the root {@link Injector} that uses this token.
       *
       * @publicApi
       */


      var APP_ID = new InjectionToken('AppId');

      function _appIdRandomProviderFactory() {
        return "".concat(_randomChar()).concat(_randomChar()).concat(_randomChar());
      }
      /**
       * Providers that generate a random `APP_ID_TOKEN`.
       * @publicApi
       */


      var APP_ID_RANDOM_PROVIDER = {
        provide: APP_ID,
        useFactory: _appIdRandomProviderFactory,
        deps: []
      };

      function _randomChar() {
        return String.fromCharCode(97 + Math.floor(Math.random() * 25));
      }
      /**
       * A function that is executed when a platform is initialized.
       * @publicApi
       */


      var PLATFORM_INITIALIZER = new InjectionToken('Platform Initializer');
      /**
       * A token that indicates an opaque platform ID.
       * @publicApi
       */

      var PLATFORM_ID = new InjectionToken('Platform ID');
      /**
       * A [DI token](guide/glossary#di-token "DI token definition") that provides a set of callbacks to
       * be called for every component that is bootstrapped.
       *
       * Each callback must take a `ComponentRef` instance and return nothing.
       *
       * `(componentRef: ComponentRef) => void`
       *
       * @publicApi
       */

      var APP_BOOTSTRAP_LISTENER = new InjectionToken('appBootstrapListener');
      /**
       * A [DI token](guide/glossary#di-token "DI token definition") that indicates the root directory of
       * the application
       * @publicApi
       */

      var PACKAGE_ROOT_URL = new InjectionToken('Application Packages Root URL');
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      var Console = /*#__PURE__*/function () {
        function Console() {
          _classCallCheck2(this, Console);
        }

        _createClass2(Console, [{
          key: "log",
          value: function log(message) {
            // tslint:disable-next-line:no-console
            console.log(message);
          } // Note: for reporting errors use `DOM.logError()` as it is platform specific

        }, {
          key: "warn",
          value: function warn(message) {
            // tslint:disable-next-line:no-console
            console.warn(message);
          }
        }]);

        return Console;
      }();

      Console.ɵfac = function Console_Factory(t) {
        return new (t || Console)();
      };

      Console.ɵprov = ɵɵdefineInjectable({
        token: Console,
        factory: Console.ɵfac
      });
      /*@__PURE__*/

      (function () {
        setClassMetadata(Console, [{
          type: Injectable
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Provide this token to set the locale of your application.
       * It is used for i18n extraction, by i18n pipes (DatePipe, I18nPluralPipe, CurrencyPipe,
       * DecimalPipe and PercentPipe) and by ICU expressions.
       *
       * See the [i18n guide](guide/i18n#setting-up-locale) for more information.
       *
       * @usageNotes
       * ### Example
       *
       * ```typescript
       * import { LOCALE_ID } from '@angular/core';
       * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
       * import { AppModule } from './app/app.module';
       *
       * platformBrowserDynamic().bootstrapModule(AppModule, {
       *   providers: [{provide: LOCALE_ID, useValue: 'en-US' }]
       * });
       * ```
       *
       * @publicApi
       */


      var LOCALE_ID$1 = new InjectionToken('LocaleId');
      /**
       * Provide this token to set the default currency code your application uses for
       * CurrencyPipe when there is no currency code passed into it. This is only used by
       * CurrencyPipe and has no relation to locale currency. Defaults to USD if not configured.
       *
       * See the [i18n guide](guide/i18n#setting-up-locale) for more information.
       *
       * <div class="alert is-helpful">
       *
       * **Deprecation notice:**
       *
       * The default currency code is currently always `USD` but this is deprecated from v9.
       *
       * **In v10 the default currency code will be taken from the current locale.**
       *
       * If you need the previous behavior then set it by creating a `DEFAULT_CURRENCY_CODE` provider in
       * your application `NgModule`:
       *
       * ```ts
       * {provide: DEFAULT_CURRENCY_CODE, useValue: 'USD'}
       * ```
       *
       * </div>
       *
       * @usageNotes
       * ### Example
       *
       * ```typescript
       * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
       * import { AppModule } from './app/app.module';
       *
       * platformBrowserDynamic().bootstrapModule(AppModule, {
       *   providers: [{provide: DEFAULT_CURRENCY_CODE, useValue: 'EUR' }]
       * });
       * ```
       *
       * @publicApi
       */

      var DEFAULT_CURRENCY_CODE = new InjectionToken('DefaultCurrencyCode');
      /**
       * Use this token at bootstrap to provide the content of your translation file (`xtb`,
       * `xlf` or `xlf2`) when you want to translate your application in another language.
       *
       * See the [i18n guide](guide/i18n#merge) for more information.
       *
       * @usageNotes
       * ### Example
       *
       * ```typescript
       * import { TRANSLATIONS } from '@angular/core';
       * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
       * import { AppModule } from './app/app.module';
       *
       * // content of your translation file
       * const translations = '....';
       *
       * platformBrowserDynamic().bootstrapModule(AppModule, {
       *   providers: [{provide: TRANSLATIONS, useValue: translations }]
       * });
       * ```
       *
       * @publicApi
       */

      var TRANSLATIONS = new InjectionToken('Translations');
      /**
       * Provide this token at bootstrap to set the format of your {@link TRANSLATIONS}: `xtb`,
       * `xlf` or `xlf2`.
       *
       * See the [i18n guide](guide/i18n#merge) for more information.
       *
       * @usageNotes
       * ### Example
       *
       * ```typescript
       * import { TRANSLATIONS_FORMAT } from '@angular/core';
       * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
       * import { AppModule } from './app/app.module';
       *
       * platformBrowserDynamic().bootstrapModule(AppModule, {
       *   providers: [{provide: TRANSLATIONS_FORMAT, useValue: 'xlf' }]
       * });
       * ```
       *
       * @publicApi
       */

      var TRANSLATIONS_FORMAT = new InjectionToken('TranslationsFormat');
      /**
       * Use this enum at bootstrap as an option of `bootstrapModule` to define the strategy
       * that the compiler should use in case of missing translations:
       * - Error: throw if you have missing translations.
       * - Warning (default): show a warning in the console and/or shell.
       * - Ignore: do nothing.
       *
       * See the [i18n guide](guide/i18n#missing-translation) for more information.
       *
       * @usageNotes
       * ### Example
       * ```typescript
       * import { MissingTranslationStrategy } from '@angular/core';
       * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
       * import { AppModule } from './app/app.module';
       *
       * platformBrowserDynamic().bootstrapModule(AppModule, {
       *   missingTranslation: MissingTranslationStrategy.Error
       * });
       * ```
       *
       * @publicApi
       */

      var MissingTranslationStrategy;

      (function (MissingTranslationStrategy) {
        MissingTranslationStrategy[MissingTranslationStrategy["Error"] = 0] = "Error";
        MissingTranslationStrategy[MissingTranslationStrategy["Warning"] = 1] = "Warning";
        MissingTranslationStrategy[MissingTranslationStrategy["Ignore"] = 2] = "Ignore";
      })(MissingTranslationStrategy || (MissingTranslationStrategy = {}));
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var SWITCH_IVY_ENABLED__POST_R3__ = true;
      var SWITCH_IVY_ENABLED__PRE_R3__ = false;
      var ivyEnabled = SWITCH_IVY_ENABLED__POST_R3__;
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Combination of NgModuleFactory and ComponentFactorys.
       *
       * @publicApi
       */

      var ModuleWithComponentFactories = function ModuleWithComponentFactories(ngModuleFactory, componentFactories) {
        _classCallCheck2(this, ModuleWithComponentFactories);

        this.ngModuleFactory = ngModuleFactory;
        this.componentFactories = componentFactories;
      };

      function _throwError() {
        throw new Error("Runtime compiler is not loaded");
      }

      var Compiler_compileModuleSync__PRE_R3__ = _throwError;

      var Compiler_compileModuleSync__POST_R3__ = function Compiler_compileModuleSync__POST_R3__(moduleType) {
        return new NgModuleFactory$1(moduleType);
      };

      var Compiler_compileModuleSync = Compiler_compileModuleSync__POST_R3__;
      var Compiler_compileModuleAsync__PRE_R3__ = _throwError;

      var Compiler_compileModuleAsync__POST_R3__ = function Compiler_compileModuleAsync__POST_R3__(moduleType) {
        return Promise.resolve(Compiler_compileModuleSync__POST_R3__(moduleType));
      };

      var Compiler_compileModuleAsync = Compiler_compileModuleAsync__POST_R3__;
      var Compiler_compileModuleAndAllComponentsSync__PRE_R3__ = _throwError;

      var Compiler_compileModuleAndAllComponentsSync__POST_R3__ = function Compiler_compileModuleAndAllComponentsSync__POST_R3__(moduleType) {
        var ngModuleFactory = Compiler_compileModuleSync__POST_R3__(moduleType);
        var moduleDef = getNgModuleDef(moduleType);
        var componentFactories = maybeUnwrapFn(moduleDef.declarations).reduce(function (factories, declaration) {
          var componentDef = getComponentDef(declaration);
          componentDef && factories.push(new ComponentFactory$1(componentDef));
          return factories;
        }, []);
        return new ModuleWithComponentFactories(ngModuleFactory, componentFactories);
      };

      var Compiler_compileModuleAndAllComponentsSync = Compiler_compileModuleAndAllComponentsSync__POST_R3__;
      var Compiler_compileModuleAndAllComponentsAsync__PRE_R3__ = _throwError;

      var Compiler_compileModuleAndAllComponentsAsync__POST_R3__ = function Compiler_compileModuleAndAllComponentsAsync__POST_R3__(moduleType) {
        return Promise.resolve(Compiler_compileModuleAndAllComponentsSync__POST_R3__(moduleType));
      };

      var Compiler_compileModuleAndAllComponentsAsync = Compiler_compileModuleAndAllComponentsAsync__POST_R3__;
      /**
       * Low-level service for running the angular compiler during runtime
       * to create {@link ComponentFactory}s, which
       * can later be used to create and render a Component instance.
       *
       * Each `@NgModule` provides an own `Compiler` to its injector,
       * that will use the directives/pipes of the ng module for compilation
       * of components.
       *
       * @publicApi
       */

      var Compiler = /*#__PURE__*/function () {
        function Compiler() {
          _classCallCheck2(this, Compiler);

          /**
           * Compiles the given NgModule and all of its components. All templates of the components listed
           * in `entryComponents` have to be inlined.
           */
          this.compileModuleSync = Compiler_compileModuleSync;
          /**
           * Compiles the given NgModule and all of its components
           */

          this.compileModuleAsync = Compiler_compileModuleAsync;
          /**
           * Same as {@link #compileModuleSync} but also creates ComponentFactories for all components.
           */

          this.compileModuleAndAllComponentsSync = Compiler_compileModuleAndAllComponentsSync;
          /**
           * Same as {@link #compileModuleAsync} but also creates ComponentFactories for all components.
           */

          this.compileModuleAndAllComponentsAsync = Compiler_compileModuleAndAllComponentsAsync;
        }
        /**
         * Clears all caches.
         */


        _createClass2(Compiler, [{
          key: "clearCache",
          value: function clearCache() {}
          /**
           * Clears the cache for the given component/ngModule.
           */

        }, {
          key: "clearCacheFor",
          value: function clearCacheFor(type) {}
          /**
           * Returns the id for a given NgModule, if one is defined and known to the compiler.
           */

        }, {
          key: "getModuleId",
          value: function getModuleId(moduleType) {
            return undefined;
          }
        }]);

        return Compiler;
      }();

      Compiler.ɵfac = function Compiler_Factory(t) {
        return new (t || Compiler)();
      };

      Compiler.ɵprov = ɵɵdefineInjectable({
        token: Compiler,
        factory: Compiler.ɵfac
      });
      /*@__PURE__*/

      (function () {
        setClassMetadata(Compiler, [{
          type: Injectable
        }], function () {
          return [];
        }, null);
      })();
      /**
       * Token to provide CompilerOptions in the platform injector.
       *
       * @publicApi
       */


      var COMPILER_OPTIONS = new InjectionToken('compilerOptions');
      /**
       * A factory for creating a Compiler
       *
       * @publicApi
       */

      var CompilerFactory = function CompilerFactory() {
        _classCallCheck2(this, CompilerFactory);
      };
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var promise = function () {
        return Promise.resolve(0);
      }();

      function scheduleMicroTask(fn) {
        if (typeof Zone === 'undefined') {
          // use promise to schedule microTask instead of use Zone
          promise.then(function () {
            fn && fn.apply(null, null);
          });
        } else {
          Zone.current.scheduleMicroTask('scheduleMicrotask', fn);
        }
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function getNativeRequestAnimationFrame() {
        var nativeRequestAnimationFrame = _global['requestAnimationFrame'];
        var nativeCancelAnimationFrame = _global['cancelAnimationFrame'];

        if (typeof Zone !== 'undefined' && nativeRequestAnimationFrame && nativeCancelAnimationFrame) {
          // use unpatched version of requestAnimationFrame(native delegate) if possible
          // to avoid another Change detection
          var unpatchedRequestAnimationFrame = nativeRequestAnimationFrame[Zone.__symbol__('OriginalDelegate')];

          if (unpatchedRequestAnimationFrame) {
            nativeRequestAnimationFrame = unpatchedRequestAnimationFrame;
          }

          var unpatchedCancelAnimationFrame = nativeCancelAnimationFrame[Zone.__symbol__('OriginalDelegate')];

          if (unpatchedCancelAnimationFrame) {
            nativeCancelAnimationFrame = unpatchedCancelAnimationFrame;
          }
        }

        return {
          nativeRequestAnimationFrame: nativeRequestAnimationFrame,
          nativeCancelAnimationFrame: nativeCancelAnimationFrame
        };
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * An injectable service for executing work inside or outside of the Angular zone.
       *
       * The most common use of this service is to optimize performance when starting a work consisting of
       * one or more asynchronous tasks that don't require UI updates or error handling to be handled by
       * Angular. Such tasks can be kicked off via {@link #runOutsideAngular} and if needed, these tasks
       * can reenter the Angular zone via {@link #run}.
       *
       * <!-- TODO: add/fix links to:
       *   - docs explaining zones and the use of zones in Angular and change-detection
       *   - link to runOutsideAngular/run (throughout this file!)
       *   -->
       *
       * @usageNotes
       * ### Example
       *
       * ```
       * import {Component, NgZone} from '@angular/core';
       * import {NgIf} from '@angular/common';
       *
       * @Component({
       *   selector: 'ng-zone-demo',
       *   template: `
       *     <h2>Demo: NgZone</h2>
       *
       *     <p>Progress: {{progress}}%</p>
       *     <p *ngIf="progress >= 100">Done processing {{label}} of Angular zone!</p>
       *
       *     <button (click)="processWithinAngularZone()">Process within Angular zone</button>
       *     <button (click)="processOutsideOfAngularZone()">Process outside of Angular zone</button>
       *   `,
       * })
       * export class NgZoneDemo {
       *   progress: number = 0;
       *   label: string;
       *
       *   constructor(private _ngZone: NgZone) {}
       *
       *   // Loop inside the Angular zone
       *   // so the UI DOES refresh after each setTimeout cycle
       *   processWithinAngularZone() {
       *     this.label = 'inside';
       *     this.progress = 0;
       *     this._increaseProgress(() => console.log('Inside Done!'));
       *   }
       *
       *   // Loop outside of the Angular zone
       *   // so the UI DOES NOT refresh after each setTimeout cycle
       *   processOutsideOfAngularZone() {
       *     this.label = 'outside';
       *     this.progress = 0;
       *     this._ngZone.runOutsideAngular(() => {
       *       this._increaseProgress(() => {
       *         // reenter the Angular zone and display done
       *         this._ngZone.run(() => { console.log('Outside Done!'); });
       *       });
       *     });
       *   }
       *
       *   _increaseProgress(doneCallback: () => void) {
       *     this.progress += 1;
       *     console.log(`Current progress: ${this.progress}%`);
       *
       *     if (this.progress < 100) {
       *       window.setTimeout(() => this._increaseProgress(doneCallback), 10);
       *     } else {
       *       doneCallback();
       *     }
       *   }
       * }
       * ```
       *
       * @publicApi
       */


      var NgZone = /*#__PURE__*/function () {
        function NgZone(_ref57) {
          var _ref57$enableLongStac = _ref57.enableLongStackTrace,
              enableLongStackTrace = _ref57$enableLongStac === void 0 ? false : _ref57$enableLongStac,
              _ref57$shouldCoalesce = _ref57.shouldCoalesceEventChangeDetection,
              shouldCoalesceEventChangeDetection = _ref57$shouldCoalesce === void 0 ? false : _ref57$shouldCoalesce;

          _classCallCheck2(this, NgZone);

          this.hasPendingMacrotasks = false;
          this.hasPendingMicrotasks = false;
          /**
           * Whether there are no outstanding microtasks or macrotasks.
           */

          this.isStable = true;
          /**
           * Notifies when code enters Angular Zone. This gets fired first on VM Turn.
           */

          this.onUnstable = new EventEmitter(false);
          /**
           * Notifies when there is no more microtasks enqueued in the current VM Turn.
           * This is a hint for Angular to do change detection, which may enqueue more microtasks.
           * For this reason this event can fire multiple times per VM Turn.
           */

          this.onMicrotaskEmpty = new EventEmitter(false);
          /**
           * Notifies when the last `onMicrotaskEmpty` has run and there are no more microtasks, which
           * implies we are about to relinquish VM turn.
           * This event gets called just once.
           */

          this.onStable = new EventEmitter(false);
          /**
           * Notifies that an error has been delivered.
           */

          this.onError = new EventEmitter(false);

          if (typeof Zone == 'undefined') {
            throw new Error("In this configuration Angular requires Zone.js");
          }

          Zone.assertZonePatched();
          var self = this;
          self._nesting = 0;
          self._outer = self._inner = Zone.current;

          if (Zone['wtfZoneSpec']) {
            self._inner = self._inner.fork(Zone['wtfZoneSpec']);
          }

          if (Zone['TaskTrackingZoneSpec']) {
            self._inner = self._inner.fork(new Zone['TaskTrackingZoneSpec']());
          }

          if (enableLongStackTrace && Zone['longStackTraceZoneSpec']) {
            self._inner = self._inner.fork(Zone['longStackTraceZoneSpec']);
          }

          self.shouldCoalesceEventChangeDetection = shouldCoalesceEventChangeDetection;
          self.lastRequestAnimationFrameId = -1;
          self.nativeRequestAnimationFrame = getNativeRequestAnimationFrame().nativeRequestAnimationFrame;
          forkInnerZoneWithAngularBehavior(self);
        }

        _createClass2(NgZone, [{
          key: "run",
          value:
          /**
           * Executes the `fn` function synchronously within the Angular zone and returns value returned by
           * the function.
           *
           * Running functions via `run` allows you to reenter Angular zone from a task that was executed
           * outside of the Angular zone (typically started via {@link #runOutsideAngular}).
           *
           * Any future tasks or microtasks scheduled from within this function will continue executing from
           * within the Angular zone.
           *
           * If a synchronous error happens it will be rethrown and not reported via `onError`.
           */
          function run(fn, applyThis, applyArgs) {
            return this._inner.run(fn, applyThis, applyArgs);
          }
          /**
           * Executes the `fn` function synchronously within the Angular zone as a task and returns value
           * returned by the function.
           *
           * Running functions via `run` allows you to reenter Angular zone from a task that was executed
           * outside of the Angular zone (typically started via {@link #runOutsideAngular}).
           *
           * Any future tasks or microtasks scheduled from within this function will continue executing from
           * within the Angular zone.
           *
           * If a synchronous error happens it will be rethrown and not reported via `onError`.
           */

        }, {
          key: "runTask",
          value: function runTask(fn, applyThis, applyArgs, name) {
            var zone = this._inner;
            var task = zone.scheduleEventTask('NgZoneEvent: ' + name, fn, EMPTY_PAYLOAD, noop$1, noop$1);

            try {
              return zone.runTask(task, applyThis, applyArgs);
            } finally {
              zone.cancelTask(task);
            }
          }
          /**
           * Same as `run`, except that synchronous errors are caught and forwarded via `onError` and not
           * rethrown.
           */

        }, {
          key: "runGuarded",
          value: function runGuarded(fn, applyThis, applyArgs) {
            return this._inner.runGuarded(fn, applyThis, applyArgs);
          }
          /**
           * Executes the `fn` function synchronously in Angular's parent zone and returns value returned by
           * the function.
           *
           * Running functions via {@link #runOutsideAngular} allows you to escape Angular's zone and do
           * work that
           * doesn't trigger Angular change-detection or is subject to Angular's error handling.
           *
           * Any future tasks or microtasks scheduled from within this function will continue executing from
           * outside of the Angular zone.
           *
           * Use {@link #run} to reenter the Angular zone and do work that updates the application model.
           */

        }, {
          key: "runOutsideAngular",
          value: function runOutsideAngular(fn) {
            return this._outer.run(fn);
          }
        }], [{
          key: "isInAngularZone",
          value: function isInAngularZone() {
            return Zone.current.get('isAngularZone') === true;
          }
        }, {
          key: "assertInAngularZone",
          value: function assertInAngularZone() {
            if (!NgZone.isInAngularZone()) {
              throw new Error('Expected to be in Angular Zone, but it is not!');
            }
          }
        }, {
          key: "assertNotInAngularZone",
          value: function assertNotInAngularZone() {
            if (NgZone.isInAngularZone()) {
              throw new Error('Expected to not be in Angular Zone, but it is!');
            }
          }
        }]);

        return NgZone;
      }();

      function noop$1() {}

      var EMPTY_PAYLOAD = {};

      function checkStable(zone) {
        if (zone._nesting == 0 && !zone.hasPendingMicrotasks && !zone.isStable) {
          try {
            zone._nesting++;
            zone.onMicrotaskEmpty.emit(null);
          } finally {
            zone._nesting--;

            if (!zone.hasPendingMicrotasks) {
              try {
                zone.runOutsideAngular(function () {
                  return zone.onStable.emit(null);
                });
              } finally {
                zone.isStable = true;
              }
            }
          }
        }
      }

      function delayChangeDetectionForEvents(zone) {
        if (zone.lastRequestAnimationFrameId !== -1) {
          return;
        }

        zone.lastRequestAnimationFrameId = zone.nativeRequestAnimationFrame.call(_global, function () {
          // This is a work around for https://github.com/angular/angular/issues/36839.
          // The core issue is that when event coalescing is enabled it is possible for microtasks
          // to get flushed too early (As is the case with `Promise.then`) between the
          // coalescing eventTasks.
          //
          // To workaround this we schedule a "fake" eventTask before we process the
          // coalescing eventTasks. The benefit of this is that the "fake" container eventTask
          //  will prevent the microtasks queue from getting drained in between the coalescing
          // eventTask execution.
          if (!zone.fakeTopEventTask) {
            zone.fakeTopEventTask = Zone.root.scheduleEventTask('fakeTopEventTask', function () {
              zone.lastRequestAnimationFrameId = -1;
              updateMicroTaskStatus(zone);
              checkStable(zone);
            }, undefined, function () {}, function () {});
          }

          zone.fakeTopEventTask.invoke();
        });
        updateMicroTaskStatus(zone);
      }

      function forkInnerZoneWithAngularBehavior(zone) {
        var delayChangeDetectionForEventsDelegate = function delayChangeDetectionForEventsDelegate() {
          delayChangeDetectionForEvents(zone);
        };

        var maybeDelayChangeDetection = !!zone.shouldCoalesceEventChangeDetection && zone.nativeRequestAnimationFrame && delayChangeDetectionForEventsDelegate;
        zone._inner = zone._inner.fork({
          name: 'angular',
          properties: {
            'isAngularZone': true,
            'maybeDelayChangeDetection': maybeDelayChangeDetection
          },
          onInvokeTask: function onInvokeTask(delegate, current, target, task, applyThis, applyArgs) {
            try {
              onEnter(zone);
              return delegate.invokeTask(target, task, applyThis, applyArgs);
            } finally {
              if (maybeDelayChangeDetection && task.type === 'eventTask') {
                maybeDelayChangeDetection();
              }

              onLeave(zone);
            }
          },
          onInvoke: function onInvoke(delegate, current, target, callback, applyThis, applyArgs, source) {
            try {
              onEnter(zone);
              return delegate.invoke(target, callback, applyThis, applyArgs, source);
            } finally {
              onLeave(zone);
            }
          },
          onHasTask: function onHasTask(delegate, current, target, hasTaskState) {
            delegate.hasTask(target, hasTaskState);

            if (current === target) {
              // We are only interested in hasTask events which originate from our zone
              // (A child hasTask event is not interesting to us)
              if (hasTaskState.change == 'microTask') {
                zone._hasPendingMicrotasks = hasTaskState.microTask;
                updateMicroTaskStatus(zone);
                checkStable(zone);
              } else if (hasTaskState.change == 'macroTask') {
                zone.hasPendingMacrotasks = hasTaskState.macroTask;
              }
            }
          },
          onHandleError: function onHandleError(delegate, current, target, error) {
            delegate.handleError(target, error);
            zone.runOutsideAngular(function () {
              return zone.onError.emit(error);
            });
            return false;
          }
        });
      }

      function updateMicroTaskStatus(zone) {
        if (zone._hasPendingMicrotasks || zone.shouldCoalesceEventChangeDetection && zone.lastRequestAnimationFrameId !== -1) {
          zone.hasPendingMicrotasks = true;
        } else {
          zone.hasPendingMicrotasks = false;
        }
      }

      function onEnter(zone) {
        zone._nesting++;

        if (zone.isStable) {
          zone.isStable = false;
          zone.onUnstable.emit(null);
        }
      }

      function onLeave(zone) {
        zone._nesting--;
        checkStable(zone);
      }
      /**
       * Provides a noop implementation of `NgZone` which does nothing. This zone requires explicit calls
       * to framework to perform rendering.
       */


      var NoopNgZone = /*#__PURE__*/function () {
        function NoopNgZone() {
          _classCallCheck2(this, NoopNgZone);

          this.hasPendingMicrotasks = false;
          this.hasPendingMacrotasks = false;
          this.isStable = true;
          this.onUnstable = new EventEmitter();
          this.onMicrotaskEmpty = new EventEmitter();
          this.onStable = new EventEmitter();
          this.onError = new EventEmitter();
        }

        _createClass2(NoopNgZone, [{
          key: "run",
          value: function run(fn, applyThis, applyArgs) {
            return fn.apply(applyThis, applyArgs);
          }
        }, {
          key: "runGuarded",
          value: function runGuarded(fn, applyThis, applyArgs) {
            return fn.apply(applyThis, applyArgs);
          }
        }, {
          key: "runOutsideAngular",
          value: function runOutsideAngular(fn) {
            return fn();
          }
        }, {
          key: "runTask",
          value: function runTask(fn, applyThis, applyArgs, name) {
            return fn.apply(applyThis, applyArgs);
          }
        }]);

        return NoopNgZone;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * The Testability service provides testing hooks that can be accessed from
       * the browser and by services such as Protractor. Each bootstrapped Angular
       * application on the page will have an instance of Testability.
       * @publicApi
       */


      var Testability = /*#__PURE__*/function () {
        function Testability(_ngZone) {
          var _this423 = this;

          _classCallCheck2(this, Testability);

          this._ngZone = _ngZone;
          this._pendingCount = 0;
          this._isZoneStable = true;
          /**
           * Whether any work was done since the last 'whenStable' callback. This is
           * useful to detect if this could have potentially destabilized another
           * component while it is stabilizing.
           * @internal
           */

          this._didWork = false;
          this._callbacks = [];
          this.taskTrackingZone = null;

          this._watchAngularEvents();

          _ngZone.run(function () {
            _this423.taskTrackingZone = typeof Zone == 'undefined' ? null : Zone.current.get('TaskTrackingZone');
          });
        }

        _createClass2(Testability, [{
          key: "_watchAngularEvents",
          value: function _watchAngularEvents() {
            var _this424 = this;

            this._ngZone.onUnstable.subscribe({
              next: function next() {
                _this424._didWork = true;
                _this424._isZoneStable = false;
              }
            });

            this._ngZone.runOutsideAngular(function () {
              _this424._ngZone.onStable.subscribe({
                next: function next() {
                  NgZone.assertNotInAngularZone();
                  scheduleMicroTask(function () {
                    _this424._isZoneStable = true;

                    _this424._runCallbacksIfReady();
                  });
                }
              });
            });
          }
          /**
           * Increases the number of pending request
           * @deprecated pending requests are now tracked with zones.
           */

        }, {
          key: "increasePendingRequestCount",
          value: function increasePendingRequestCount() {
            this._pendingCount += 1;
            this._didWork = true;
            return this._pendingCount;
          }
          /**
           * Decreases the number of pending request
           * @deprecated pending requests are now tracked with zones
           */

        }, {
          key: "decreasePendingRequestCount",
          value: function decreasePendingRequestCount() {
            this._pendingCount -= 1;

            if (this._pendingCount < 0) {
              throw new Error('pending async requests below zero');
            }

            this._runCallbacksIfReady();

            return this._pendingCount;
          }
          /**
           * Whether an associated application is stable
           */

        }, {
          key: "isStable",
          value: function isStable() {
            return this._isZoneStable && this._pendingCount === 0 && !this._ngZone.hasPendingMacrotasks;
          }
        }, {
          key: "_runCallbacksIfReady",
          value: function _runCallbacksIfReady() {
            var _this425 = this;

            if (this.isStable()) {
              // Schedules the call backs in a new frame so that it is always async.
              scheduleMicroTask(function () {
                while (_this425._callbacks.length !== 0) {
                  var cb = _this425._callbacks.pop();

                  clearTimeout(cb.timeoutId);
                  cb.doneCb(_this425._didWork);
                }

                _this425._didWork = false;
              });
            } else {
              // Still not stable, send updates.
              var pending = this.getPendingTasks();
              this._callbacks = this._callbacks.filter(function (cb) {
                if (cb.updateCb && cb.updateCb(pending)) {
                  clearTimeout(cb.timeoutId);
                  return false;
                }

                return true;
              });
              this._didWork = true;
            }
          }
        }, {
          key: "getPendingTasks",
          value: function getPendingTasks() {
            if (!this.taskTrackingZone) {
              return [];
            } // Copy the tasks data so that we don't leak tasks.


            return this.taskTrackingZone.macroTasks.map(function (t) {
              return {
                source: t.source,
                // From TaskTrackingZone:
                // https://github.com/angular/zone.js/blob/master/lib/zone-spec/task-tracking.ts#L40
                creationLocation: t.creationLocation,
                data: t.data
              };
            });
          }
        }, {
          key: "addCallback",
          value: function addCallback(cb, timeout, updateCb) {
            var _this426 = this;

            var timeoutId = -1;

            if (timeout && timeout > 0) {
              timeoutId = setTimeout(function () {
                _this426._callbacks = _this426._callbacks.filter(function (cb) {
                  return cb.timeoutId !== timeoutId;
                });
                cb(_this426._didWork, _this426.getPendingTasks());
              }, timeout);
            }

            this._callbacks.push({
              doneCb: cb,
              timeoutId: timeoutId,
              updateCb: updateCb
            });
          }
          /**
           * Wait for the application to be stable with a timeout. If the timeout is reached before that
           * happens, the callback receives a list of the macro tasks that were pending, otherwise null.
           *
           * @param doneCb The callback to invoke when Angular is stable or the timeout expires
           *    whichever comes first.
           * @param timeout Optional. The maximum time to wait for Angular to become stable. If not
           *    specified, whenStable() will wait forever.
           * @param updateCb Optional. If specified, this callback will be invoked whenever the set of
           *    pending macrotasks changes. If this callback returns true doneCb will not be invoked
           *    and no further updates will be issued.
           */

        }, {
          key: "whenStable",
          value: function whenStable(doneCb, timeout, updateCb) {
            if (updateCb && !this.taskTrackingZone) {
              throw new Error('Task tracking zone is required when passing an update callback to ' + 'whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');
            } // These arguments are 'Function' above to keep the public API simple.


            this.addCallback(doneCb, timeout, updateCb);

            this._runCallbacksIfReady();
          }
          /**
           * Get the number of pending requests
           * @deprecated pending requests are now tracked with zones
           */

        }, {
          key: "getPendingRequestCount",
          value: function getPendingRequestCount() {
            return this._pendingCount;
          }
          /**
           * Find providers by name
           * @param using The root element to search from
           * @param provider The name of binding variable
           * @param exactMatch Whether using exactMatch
           */

        }, {
          key: "findProviders",
          value: function findProviders(using, provider, exactMatch) {
            // TODO(juliemr): implement.
            return [];
          }
        }]);

        return Testability;
      }();

      Testability.ɵfac = function Testability_Factory(t) {
        return new (t || Testability)(ɵɵinject(NgZone));
      };

      Testability.ɵprov = ɵɵdefineInjectable({
        token: Testability,
        factory: Testability.ɵfac
      });

      Testability.ctorParameters = function () {
        return [{
          type: NgZone
        }];
      };
      /*@__PURE__*/


      (function () {
        setClassMetadata(Testability, [{
          type: Injectable
        }], function () {
          return [{
            type: NgZone
          }];
        }, null);
      })();
      /**
       * A global registry of {@link Testability} instances for specific elements.
       * @publicApi
       */


      var TestabilityRegistry = /*#__PURE__*/function () {
        function TestabilityRegistry() {
          _classCallCheck2(this, TestabilityRegistry);

          /** @internal */
          this._applications = new Map();

          _testabilityGetter.addToWindow(this);
        }
        /**
         * Registers an application with a testability hook so that it can be tracked
         * @param token token of application, root element
         * @param testability Testability hook
         */


        _createClass2(TestabilityRegistry, [{
          key: "registerApplication",
          value: function registerApplication(token, testability) {
            this._applications.set(token, testability);
          }
          /**
           * Unregisters an application.
           * @param token token of application, root element
           */

        }, {
          key: "unregisterApplication",
          value: function unregisterApplication(token) {
            this._applications["delete"](token);
          }
          /**
           * Unregisters all applications
           */

        }, {
          key: "unregisterAllApplications",
          value: function unregisterAllApplications() {
            this._applications.clear();
          }
          /**
           * Get a testability hook associated with the application
           * @param elem root element
           */

        }, {
          key: "getTestability",
          value: function getTestability(elem) {
            return this._applications.get(elem) || null;
          }
          /**
           * Get all registered testabilities
           */

        }, {
          key: "getAllTestabilities",
          value: function getAllTestabilities() {
            return Array.from(this._applications.values());
          }
          /**
           * Get all registered applications(root elements)
           */

        }, {
          key: "getAllRootElements",
          value: function getAllRootElements() {
            return Array.from(this._applications.keys());
          }
          /**
           * Find testability of a node in the Tree
           * @param elem node
           * @param findInAncestors whether finding testability in ancestors if testability was not found in
           * current node
           */

        }, {
          key: "findTestabilityInTree",
          value: function findTestabilityInTree(elem) {
            var findInAncestors = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
            return _testabilityGetter.findTestabilityInTree(this, elem, findInAncestors);
          }
        }]);

        return TestabilityRegistry;
      }();

      TestabilityRegistry.ɵfac = function TestabilityRegistry_Factory(t) {
        return new (t || TestabilityRegistry)();
      };

      TestabilityRegistry.ɵprov = ɵɵdefineInjectable({
        token: TestabilityRegistry,
        factory: TestabilityRegistry.ɵfac
      });

      TestabilityRegistry.ctorParameters = function () {
        return [];
      };
      /*@__PURE__*/


      (function () {
        setClassMetadata(TestabilityRegistry, [{
          type: Injectable
        }], function () {
          return [];
        }, null);
      })();

      var _NoopGetTestability = /*#__PURE__*/function () {
        function _NoopGetTestability() {
          _classCallCheck2(this, _NoopGetTestability);
        }

        _createClass2(_NoopGetTestability, [{
          key: "addToWindow",
          value: function addToWindow(registry) {}
        }, {
          key: "findTestabilityInTree",
          value: function findTestabilityInTree(registry, elem, findInAncestors) {
            return null;
          }
        }]);

        return _NoopGetTestability;
      }();
      /**
       * Set the {@link GetTestability} implementation used by the Angular testing framework.
       * @publicApi
       */


      function setTestabilityGetter(getter) {
        _testabilityGetter = getter;
      }

      var _testabilityGetter = new _NoopGetTestability();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var _platform;

      var compileNgModuleFactory = compileNgModuleFactory__POST_R3__;

      function compileNgModuleFactory__PRE_R3__(injector, options, moduleType) {
        var compilerFactory = injector.get(CompilerFactory);
        var compiler = compilerFactory.createCompiler([options]);
        return compiler.compileModuleAsync(moduleType);
      }

      function compileNgModuleFactory__POST_R3__(injector, options, moduleType) {
        ngDevMode && assertNgModuleType(moduleType);
        var moduleFactory = new NgModuleFactory$1(moduleType); // All of the logic below is irrelevant for AOT-compiled code.

        if (typeof ngJitMode !== 'undefined' && !ngJitMode) {
          return Promise.resolve(moduleFactory);
        }

        var compilerOptions = injector.get(COMPILER_OPTIONS, []).concat(options); // Configure the compiler to use the provided options. This call may fail when multiple modules
        // are bootstrapped with incompatible options, as a component can only be compiled according to
        // a single set of options.

        setJitOptions({
          defaultEncapsulation: _lastDefined(compilerOptions.map(function (opts) {
            return opts.defaultEncapsulation;
          })),
          preserveWhitespaces: _lastDefined(compilerOptions.map(function (opts) {
            return opts.preserveWhitespaces;
          }))
        });

        if (isComponentResourceResolutionQueueEmpty()) {
          return Promise.resolve(moduleFactory);
        }

        var compilerProviders = _mergeArrays(compilerOptions.map(function (o) {
          return o.providers;
        })); // In case there are no compiler providers, we just return the module factory as
        // there won't be any resource loader. This can happen with Ivy, because AOT compiled
        // modules can be still passed through "bootstrapModule". In that case we shouldn't
        // unnecessarily require the JIT compiler.


        if (compilerProviders.length === 0) {
          return Promise.resolve(moduleFactory);
        }

        var compiler = getCompilerFacade();
        var compilerInjector = Injector.create({
          providers: compilerProviders
        });
        var resourceLoader = compilerInjector.get(compiler.ResourceLoader); // The resource loader can also return a string while the "resolveComponentResources"
        // always expects a promise. Therefore we need to wrap the returned value in a promise.

        return resolveComponentResources(function (url) {
          return Promise.resolve(resourceLoader.get(url));
        }).then(function () {
          return moduleFactory;
        });
      } // the `window.ng` global utilities are only available in non-VE versions of
      // Angular. The function switch below will make sure that the code is not
      // included into Angular when PRE mode is active.


      function publishDefaultGlobalUtils__PRE_R3__() {}

      function publishDefaultGlobalUtils__POST_R3__() {
        ngDevMode && publishDefaultGlobalUtils();
      }

      var publishDefaultGlobalUtils$1 = publishDefaultGlobalUtils__POST_R3__;
      var isBoundToModule = isBoundToModule__POST_R3__;

      function isBoundToModule__PRE_R3__(cf) {
        return cf instanceof ComponentFactoryBoundToModule;
      }

      function isBoundToModule__POST_R3__(cf) {
        return cf.isBoundToModule;
      }

      var ALLOW_MULTIPLE_PLATFORMS = new InjectionToken('AllowMultipleToken');
      /**
       * A token for third-party components that can register themselves with NgProbe.
       *
       * @publicApi
       */

      var NgProbeToken = function NgProbeToken(name, token) {
        _classCallCheck2(this, NgProbeToken);

        this.name = name;
        this.token = token;
      };
      /**
       * Creates a platform.
       * Platforms must be created on launch using this function.
       *
       * @publicApi
       */


      function createPlatform(injector) {
        if (_platform && !_platform.destroyed && !_platform.injector.get(ALLOW_MULTIPLE_PLATFORMS, false)) {
          throw new Error('There can be only one platform. Destroy the previous one to create a new one.');
        }

        publishDefaultGlobalUtils$1();
        _platform = injector.get(PlatformRef);
        var inits = injector.get(PLATFORM_INITIALIZER, null);
        if (inits) inits.forEach(function (init) {
          return init();
        });
        return _platform;
      }
      /**
       * Creates a factory for a platform. Can be used to provide or override `Providers` specific to
       * your applciation's runtime needs, such as `PLATFORM_INITIALIZER` and `PLATFORM_ID`.
       * @param parentPlatformFactory Another platform factory to modify. Allows you to compose factories
       * to build up configurations that might be required by different libraries or parts of the
       * application.
       * @param name Identifies the new platform factory.
       * @param providers A set of dependency providers for platforms created with the new factory.
       *
       * @publicApi
       */


      function createPlatformFactory(parentPlatformFactory, name) {
        var providers = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
        var desc = "Platform: ".concat(name);
        var marker = new InjectionToken(desc);
        return function () {
          var extraProviders = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
          var platform = getPlatform();

          if (!platform || platform.injector.get(ALLOW_MULTIPLE_PLATFORMS, false)) {
            if (parentPlatformFactory) {
              parentPlatformFactory(providers.concat(extraProviders).concat({
                provide: marker,
                useValue: true
              }));
            } else {
              var injectedProviders = providers.concat(extraProviders).concat({
                provide: marker,
                useValue: true
              }, {
                provide: INJECTOR_SCOPE,
                useValue: 'platform'
              });
              createPlatform(Injector.create({
                providers: injectedProviders,
                name: desc
              }));
            }
          }

          return assertPlatform(marker);
        };
      }
      /**
       * Checks that there is currently a platform that contains the given token as a provider.
       *
       * @publicApi
       */


      function assertPlatform(requiredToken) {
        var platform = getPlatform();

        if (!platform) {
          throw new Error('No platform exists!');
        }

        if (!platform.injector.get(requiredToken, null)) {
          throw new Error('A platform with a different configuration has been created. Please destroy it first.');
        }

        return platform;
      }
      /**
       * Destroys the current Angular platform and all Angular applications on the page.
       * Destroys all modules and listeners registered with the platform.
       *
       * @publicApi
       */


      function destroyPlatform() {
        if (_platform && !_platform.destroyed) {
          _platform.destroy();
        }
      }
      /**
       * Returns the current platform.
       *
       * @publicApi
       */


      function getPlatform() {
        return _platform && !_platform.destroyed ? _platform : null;
      }
      /**
       * The Angular platform is the entry point for Angular on a web page.
       * Each page has exactly one platform. Services (such as reflection) which are common
       * to every Angular application running on the page are bound in its scope.
       * A page's platform is initialized implicitly when a platform is created using a platform
       * factory such as `PlatformBrowser`, or explicitly by calling the `createPlatform()` function.
       *
       * @publicApi
       */


      var PlatformRef = /*#__PURE__*/function () {
        /** @internal */
        function PlatformRef(_injector) {
          _classCallCheck2(this, PlatformRef);

          this._injector = _injector;
          this._modules = [];
          this._destroyListeners = [];
          this._destroyed = false;
        }
        /**
         * Creates an instance of an `@NgModule` for the given platform for offline compilation.
         *
         * @usageNotes
         *
         * The following example creates the NgModule for a browser platform.
         *
         * ```typescript
         * my_module.ts:
         *
         * @NgModule({
         *   imports: [BrowserModule]
         * })
         * class MyModule {}
         *
         * main.ts:
         * import {MyModuleNgFactory} from './my_module.ngfactory';
         * import {platformBrowser} from '@angular/platform-browser';
         *
         * let moduleRef = platformBrowser().bootstrapModuleFactory(MyModuleNgFactory);
         * ```
         */


        _createClass2(PlatformRef, [{
          key: "bootstrapModuleFactory",
          value: function bootstrapModuleFactory(moduleFactory, options) {
            var _this427 = this;

            // Note: We need to create the NgZone _before_ we instantiate the module,
            // as instantiating the module creates some providers eagerly.
            // So we create a mini parent injector that just contains the new NgZone and
            // pass that as parent to the NgModuleFactory.
            var ngZoneOption = options ? options.ngZone : undefined;
            var ngZoneEventCoalescing = options && options.ngZoneEventCoalescing || false;
            var ngZone = getNgZone(ngZoneOption, ngZoneEventCoalescing);
            var providers = [{
              provide: NgZone,
              useValue: ngZone
            }]; // Attention: Don't use ApplicationRef.run here,
            // as we want to be sure that all possible constructor calls are inside `ngZone.run`!

            return ngZone.run(function () {
              var ngZoneInjector = Injector.create({
                providers: providers,
                parent: _this427.injector,
                name: moduleFactory.moduleType.name
              });
              var moduleRef = moduleFactory.create(ngZoneInjector);
              var exceptionHandler = moduleRef.injector.get(ErrorHandler, null);

              if (!exceptionHandler) {
                throw new Error('No ErrorHandler. Is platform module (BrowserModule) included?');
              }

              moduleRef.onDestroy(function () {
                return remove(_this427._modules, moduleRef);
              });
              ngZone.runOutsideAngular(function () {
                return ngZone.onError.subscribe({
                  next: function next(error) {
                    exceptionHandler.handleError(error);
                  }
                });
              });
              return _callAndReportToErrorHandler(exceptionHandler, ngZone, function () {
                var initStatus = moduleRef.injector.get(ApplicationInitStatus);
                initStatus.runInitializers();
                return initStatus.donePromise.then(function () {
                  if (ivyEnabled) {
                    // If the `LOCALE_ID` provider is defined at bootstrap then we set the value for ivy
                    var localeId = moduleRef.injector.get(LOCALE_ID$1, DEFAULT_LOCALE_ID);
                    setLocaleId(localeId || DEFAULT_LOCALE_ID);
                  }

                  _this427._moduleDoBootstrap(moduleRef);

                  return moduleRef;
                });
              });
            });
          }
          /**
           * Creates an instance of an `@NgModule` for a given platform using the given runtime compiler.
           *
           * @usageNotes
           * ### Simple Example
           *
           * ```typescript
           * @NgModule({
           *   imports: [BrowserModule]
           * })
           * class MyModule {}
           *
           * let moduleRef = platformBrowser().bootstrapModule(MyModule);
           * ```
           *
           */

        }, {
          key: "bootstrapModule",
          value: function bootstrapModule(moduleType) {
            var _this428 = this;

            var compilerOptions = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
            var options = optionsReducer({}, compilerOptions);
            return compileNgModuleFactory(this.injector, options, moduleType).then(function (moduleFactory) {
              return _this428.bootstrapModuleFactory(moduleFactory, options);
            });
          }
        }, {
          key: "_moduleDoBootstrap",
          value: function _moduleDoBootstrap(moduleRef) {
            var appRef = moduleRef.injector.get(ApplicationRef);

            if (moduleRef._bootstrapComponents.length > 0) {
              moduleRef._bootstrapComponents.forEach(function (f) {
                return appRef.bootstrap(f);
              });
            } else if (moduleRef.instance.ngDoBootstrap) {
              moduleRef.instance.ngDoBootstrap(appRef);
            } else {
              throw new Error("The module ".concat(stringify(moduleRef.instance.constructor), " was bootstrapped, but it does not declare \"@NgModule.bootstrap\" components nor a \"ngDoBootstrap\" method. ") + "Please define one of these.");
            }

            this._modules.push(moduleRef);
          }
          /**
           * Registers a listener to be called when the platform is destroyed.
           */

        }, {
          key: "onDestroy",
          value: function onDestroy(callback) {
            this._destroyListeners.push(callback);
          }
          /**
           * Retrieves the platform {@link Injector}, which is the parent injector for
           * every Angular application on the page and provides singleton providers.
           */

        }, {
          key: "injector",
          get: function get() {
            return this._injector;
          }
          /**
           * Destroys the current Angular platform and all Angular applications on the page.
           * Destroys all modules and listeners registered with the platform.
           */

        }, {
          key: "destroy",
          value: function destroy() {
            if (this._destroyed) {
              throw new Error('The platform has already been destroyed!');
            }

            this._modules.slice().forEach(function (module) {
              return module.destroy();
            });

            this._destroyListeners.forEach(function (listener) {
              return listener();
            });

            this._destroyed = true;
          }
        }, {
          key: "destroyed",
          get: function get() {
            return this._destroyed;
          }
        }]);

        return PlatformRef;
      }();

      PlatformRef.ɵfac = function PlatformRef_Factory(t) {
        return new (t || PlatformRef)(ɵɵinject(Injector));
      };

      PlatformRef.ɵprov = ɵɵdefineInjectable({
        token: PlatformRef,
        factory: PlatformRef.ɵfac
      });

      PlatformRef.ctorParameters = function () {
        return [{
          type: Injector
        }];
      };
      /*@__PURE__*/


      (function () {
        setClassMetadata(PlatformRef, [{
          type: Injectable
        }], function () {
          return [{
            type: Injector
          }];
        }, null);
      })();

      function getNgZone(ngZoneOption, ngZoneEventCoalescing) {
        var ngZone;

        if (ngZoneOption === 'noop') {
          ngZone = new NoopNgZone();
        } else {
          ngZone = (ngZoneOption === 'zone.js' ? undefined : ngZoneOption) || new NgZone({
            enableLongStackTrace: isDevMode(),
            shouldCoalesceEventChangeDetection: ngZoneEventCoalescing
          });
        }

        return ngZone;
      }

      function _callAndReportToErrorHandler(errorHandler, ngZone, callback) {
        try {
          var result = callback();

          if (isPromise(result)) {
            return result["catch"](function (e) {
              ngZone.runOutsideAngular(function () {
                return errorHandler.handleError(e);
              }); // rethrow as the exception handler might not do it

              throw e;
            });
          }

          return result;
        } catch (e) {
          ngZone.runOutsideAngular(function () {
            return errorHandler.handleError(e);
          }); // rethrow as the exception handler might not do it

          throw e;
        }
      }

      function optionsReducer(dst, objs) {
        if (Array.isArray(objs)) {
          dst = objs.reduce(optionsReducer, dst);
        } else {
          dst = Object.assign(Object.assign({}, dst), objs);
        }

        return dst;
      }
      /**
       * A reference to an Angular application running on a page.
       *
       * @usageNotes
       *
       * {@a is-stable-examples}
       * ### isStable examples and caveats
       *
       * Note two important points about `isStable`, demonstrated in the examples below:
       * - the application will never be stable if you start any kind
       * of recurrent asynchronous task when the application starts
       * (for example for a polling process, started with a `setInterval`, a `setTimeout`
       * or using RxJS operators like `interval`);
       * - the `isStable` Observable runs outside of the Angular zone.
       *
       * Let's imagine that you start a recurrent task
       * (here incrementing a counter, using RxJS `interval`),
       * and at the same time subscribe to `isStable`.
       *
       * ```
       * constructor(appRef: ApplicationRef) {
       *   appRef.isStable.pipe(
       *      filter(stable => stable)
       *   ).subscribe(() => console.log('App is stable now');
       *   interval(1000).subscribe(counter => console.log(counter));
       * }
       * ```
       * In this example, `isStable` will never emit `true`,
       * and the trace "App is stable now" will never get logged.
       *
       * If you want to execute something when the app is stable,
       * you have to wait for the application to be stable
       * before starting your polling process.
       *
       * ```
       * constructor(appRef: ApplicationRef) {
       *   appRef.isStable.pipe(
       *     first(stable => stable),
       *     tap(stable => console.log('App is stable now')),
       *     switchMap(() => interval(1000))
       *   ).subscribe(counter => console.log(counter));
       * }
       * ```
       * In this example, the trace "App is stable now" will be logged
       * and then the counter starts incrementing every second.
       *
       * Note also that this Observable runs outside of the Angular zone,
       * which means that the code in the subscription
       * to this Observable will not trigger the change detection.
       *
       * Let's imagine that instead of logging the counter value,
       * you update a field of your component
       * and display it in its template.
       *
       * ```
       * constructor(appRef: ApplicationRef) {
       *   appRef.isStable.pipe(
       *     first(stable => stable),
       *     switchMap(() => interval(1000))
       *   ).subscribe(counter => this.value = counter);
       * }
       * ```
       * As the `isStable` Observable runs outside the zone,
       * the `value` field will be updated properly,
       * but the template will not be refreshed!
       *
       * You'll have to manually trigger the change detection to update the template.
       *
       * ```
       * constructor(appRef: ApplicationRef, cd: ChangeDetectorRef) {
       *   appRef.isStable.pipe(
       *     first(stable => stable),
       *     switchMap(() => interval(1000))
       *   ).subscribe(counter => {
       *     this.value = counter;
       *     cd.detectChanges();
       *   });
       * }
       * ```
       *
       * Or make the subscription callback run inside the zone.
       *
       * ```
       * constructor(appRef: ApplicationRef, zone: NgZone) {
       *   appRef.isStable.pipe(
       *     first(stable => stable),
       *     switchMap(() => interval(1000))
       *   ).subscribe(counter => zone.run(() => this.value = counter));
       * }
       * ```
       *
       * @publicApi
       */


      var ApplicationRef = /*#__PURE__*/function () {
        /** @internal */
        function ApplicationRef(_zone, _console, _injector, _exceptionHandler, _componentFactoryResolver, _initStatus) {
          var _this429 = this;

          _classCallCheck2(this, ApplicationRef);

          this._zone = _zone;
          this._console = _console;
          this._injector = _injector;
          this._exceptionHandler = _exceptionHandler;
          this._componentFactoryResolver = _componentFactoryResolver;
          this._initStatus = _initStatus;
          /** @internal */

          this._bootstrapListeners = [];
          this._views = [];
          this._runningTick = false;
          this._enforceNoNewChanges = false;
          this._stable = true;
          /**
           * Get a list of component types registered to this application.
           * This list is populated even before the component is created.
           */

          this.componentTypes = [];
          /**
           * Get a list of components registered to this application.
           */

          this.components = [];
          this._enforceNoNewChanges = isDevMode();

          this._zone.onMicrotaskEmpty.subscribe({
            next: function next() {
              _this429._zone.run(function () {
                _this429.tick();
              });
            }
          });

          var isCurrentlyStable = new rxjs__WEBPACK_IMPORTED_MODULE_0__["Observable"](function (observer) {
            _this429._stable = _this429._zone.isStable && !_this429._zone.hasPendingMacrotasks && !_this429._zone.hasPendingMicrotasks;

            _this429._zone.runOutsideAngular(function () {
              observer.next(_this429._stable);
              observer.complete();
            });
          });
          var isStable = new rxjs__WEBPACK_IMPORTED_MODULE_0__["Observable"](function (observer) {
            // Create the subscription to onStable outside the Angular Zone so that
            // the callback is run outside the Angular Zone.
            var stableSub;

            _this429._zone.runOutsideAngular(function () {
              stableSub = _this429._zone.onStable.subscribe(function () {
                NgZone.assertNotInAngularZone(); // Check whether there are no pending macro/micro tasks in the next tick
                // to allow for NgZone to update the state.

                scheduleMicroTask(function () {
                  if (!_this429._stable && !_this429._zone.hasPendingMacrotasks && !_this429._zone.hasPendingMicrotasks) {
                    _this429._stable = true;
                    observer.next(true);
                  }
                });
              });
            });

            var unstableSub = _this429._zone.onUnstable.subscribe(function () {
              NgZone.assertInAngularZone();

              if (_this429._stable) {
                _this429._stable = false;

                _this429._zone.runOutsideAngular(function () {
                  observer.next(false);
                });
              }
            });

            return function () {
              stableSub.unsubscribe();
              unstableSub.unsubscribe();
            };
          });
          this.isStable = Object(rxjs__WEBPACK_IMPORTED_MODULE_0__["merge"])(isCurrentlyStable, isStable.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["share"])()));
        }
        /**
         * Bootstrap a new component at the root level of the application.
         *
         * @usageNotes
         * ### Bootstrap process
         *
         * When bootstrapping a new root component into an application, Angular mounts the
         * specified application component onto DOM elements identified by the componentType's
         * selector and kicks off automatic change detection to finish initializing the component.
         *
         * Optionally, a component can be mounted onto a DOM element that does not match the
         * componentType's selector.
         *
         * ### Example
         * {@example core/ts/platform/platform.ts region='longform'}
         */


        _createClass2(ApplicationRef, [{
          key: "bootstrap",
          value: function bootstrap(componentOrFactory, rootSelectorOrNode) {
            var _this430 = this;

            if (!this._initStatus.done) {
              throw new Error('Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.');
            }

            var componentFactory;

            if (componentOrFactory instanceof ComponentFactory) {
              componentFactory = componentOrFactory;
            } else {
              componentFactory = this._componentFactoryResolver.resolveComponentFactory(componentOrFactory);
            }

            this.componentTypes.push(componentFactory.componentType); // Create a factory associated with the current module if it's not bound to some other

            var ngModule = isBoundToModule(componentFactory) ? undefined : this._injector.get(NgModuleRef);
            var selectorOrNode = rootSelectorOrNode || componentFactory.selector;
            var compRef = componentFactory.create(Injector.NULL, [], selectorOrNode, ngModule);
            compRef.onDestroy(function () {
              _this430._unloadComponent(compRef);
            });
            var testability = compRef.injector.get(Testability, null);

            if (testability) {
              compRef.injector.get(TestabilityRegistry).registerApplication(compRef.location.nativeElement, testability);
            }

            this._loadComponent(compRef);

            if (isDevMode()) {
              this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode.");
            }

            return compRef;
          }
          /**
           * Invoke this method to explicitly process change detection and its side-effects.
           *
           * In development mode, `tick()` also performs a second change detection cycle to ensure that no
           * further changes are detected. If additional changes are picked up during this second cycle,
           * bindings in the app have side-effects that cannot be resolved in a single change detection
           * pass.
           * In this case, Angular throws an error, since an Angular application can only have one change
           * detection pass during which all change detection must complete.
           */

        }, {
          key: "tick",
          value: function tick() {
            var _this431 = this;

            if (this._runningTick) {
              throw new Error('ApplicationRef.tick is called recursively');
            }

            try {
              this._runningTick = true;

              var _iterator53 = _createForOfIteratorHelper(this._views),
                  _step52;

              try {
                for (_iterator53.s(); !(_step52 = _iterator53.n()).done;) {
                  var _view3 = _step52.value;

                  _view3.detectChanges();
                }
              } catch (err) {
                _iterator53.e(err);
              } finally {
                _iterator53.f();
              }

              if (this._enforceNoNewChanges) {
                var _iterator54 = _createForOfIteratorHelper(this._views),
                    _step53;

                try {
                  for (_iterator54.s(); !(_step53 = _iterator54.n()).done;) {
                    var view = _step53.value;
                    view.checkNoChanges();
                  }
                } catch (err) {
                  _iterator54.e(err);
                } finally {
                  _iterator54.f();
                }
              }
            } catch (e) {
              // Attention: Don't rethrow as it could cancel subscriptions to Observables!
              this._zone.runOutsideAngular(function () {
                return _this431._exceptionHandler.handleError(e);
              });
            } finally {
              this._runningTick = false;
            }
          }
          /**
           * Attaches a view so that it will be dirty checked.
           * The view will be automatically detached when it is destroyed.
           * This will throw if the view is already attached to a ViewContainer.
           */

        }, {
          key: "attachView",
          value: function attachView(viewRef) {
            var view = viewRef;

            this._views.push(view);

            view.attachToAppRef(this);
          }
          /**
           * Detaches a view from dirty checking again.
           */

        }, {
          key: "detachView",
          value: function detachView(viewRef) {
            var view = viewRef;
            remove(this._views, view);
            view.detachFromAppRef();
          }
        }, {
          key: "_loadComponent",
          value: function _loadComponent(componentRef) {
            this.attachView(componentRef.hostView);
            this.tick();
            this.components.push(componentRef); // Get the listeners lazily to prevent DI cycles.

            var listeners = this._injector.get(APP_BOOTSTRAP_LISTENER, []).concat(this._bootstrapListeners);

            listeners.forEach(function (listener) {
              return listener(componentRef);
            });
          }
        }, {
          key: "_unloadComponent",
          value: function _unloadComponent(componentRef) {
            this.detachView(componentRef.hostView);
            remove(this.components, componentRef);
          }
          /** @internal */

        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            // TODO(alxhub): Dispose of the NgZone.
            this._views.slice().forEach(function (view) {
              return view.destroy();
            });
          }
          /**
           * Returns the number of attached views.
           */

        }, {
          key: "viewCount",
          get: function get() {
            return this._views.length;
          }
        }]);

        return ApplicationRef;
      }();

      ApplicationRef.ɵfac = function ApplicationRef_Factory(t) {
        return new (t || ApplicationRef)(ɵɵinject(NgZone), ɵɵinject(Console), ɵɵinject(Injector), ɵɵinject(ErrorHandler), ɵɵinject(ComponentFactoryResolver), ɵɵinject(ApplicationInitStatus));
      };

      ApplicationRef.ɵprov = ɵɵdefineInjectable({
        token: ApplicationRef,
        factory: ApplicationRef.ɵfac
      });

      ApplicationRef.ctorParameters = function () {
        return [{
          type: NgZone
        }, {
          type: Console
        }, {
          type: Injector
        }, {
          type: ErrorHandler
        }, {
          type: ComponentFactoryResolver
        }, {
          type: ApplicationInitStatus
        }];
      };
      /*@__PURE__*/


      (function () {
        setClassMetadata(ApplicationRef, [{
          type: Injectable
        }], function () {
          return [{
            type: NgZone
          }, {
            type: Console
          }, {
            type: Injector
          }, {
            type: ErrorHandler
          }, {
            type: ComponentFactoryResolver
          }, {
            type: ApplicationInitStatus
          }];
        }, null);
      })();

      function remove(list, el) {
        var index = list.indexOf(el);

        if (index > -1) {
          list.splice(index, 1);
        }
      }

      function _lastDefined(args) {
        for (var i = args.length - 1; i >= 0; i--) {
          if (args[i] !== undefined) {
            return args[i];
          }
        }

        return undefined;
      }

      function _mergeArrays(parts) {
        var result = [];
        parts.forEach(function (part) {
          return part && result.push.apply(result, _toConsumableArray(part));
        });
        return result;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Used to load ng module factories.
       *
       * @publicApi
       * @deprecated the `string` form of `loadChildren` is deprecated, and `NgModuleFactoryLoader` is
       * part of its implementation. See `LoadChildren` for more details.
       */


      var NgModuleFactoryLoader = function NgModuleFactoryLoader() {
        _classCallCheck2(this, NgModuleFactoryLoader);
      };

      function getModuleFactory__PRE_R3__(id) {
        var factory = getRegisteredNgModuleType(id);
        if (!factory) throw noModuleError(id);
        return factory;
      }

      function getModuleFactory__POST_R3__(id) {
        var type = getRegisteredNgModuleType(id);
        if (!type) throw noModuleError(id);
        return new NgModuleFactory$1(type);
      }
      /**
       * Returns the NgModuleFactory with the given id, if it exists and has been loaded.
       * Factories for modules that do not specify an `id` cannot be retrieved. Throws if the module
       * cannot be found.
       * @publicApi
       */


      var getModuleFactory = getModuleFactory__POST_R3__;

      function noModuleError(id) {
        return new Error("No module with ID ".concat(id, " loaded"));
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var _SEPARATOR = '#';
      var FACTORY_CLASS_SUFFIX = 'NgFactory';
      /**
       * Configuration for SystemJsNgModuleLoader.
       * token.
       *
       * @publicApi
       * @deprecated the `string` form of `loadChildren` is deprecated, and `SystemJsNgModuleLoaderConfig`
       * is part of its implementation. See `LoadChildren` for more details.
       */

      var SystemJsNgModuleLoaderConfig = function SystemJsNgModuleLoaderConfig() {
        _classCallCheck2(this, SystemJsNgModuleLoaderConfig);
      };

      var DEFAULT_CONFIG = {
        factoryPathPrefix: '',
        factoryPathSuffix: '.ngfactory'
      };
      /**
       * NgModuleFactoryLoader that uses SystemJS to load NgModuleFactory
       * @publicApi
       * @deprecated the `string` form of `loadChildren` is deprecated, and `SystemJsNgModuleLoader` is
       * part of its implementation. See `LoadChildren` for more details.
       */

      var SystemJsNgModuleLoader = /*#__PURE__*/function () {
        function SystemJsNgModuleLoader(_compiler, config) {
          _classCallCheck2(this, SystemJsNgModuleLoader);

          this._compiler = _compiler;
          this._config = config || DEFAULT_CONFIG;
        }

        _createClass2(SystemJsNgModuleLoader, [{
          key: "load",
          value: function load(path) {
            var legacyOfflineMode = !ivyEnabled && this._compiler instanceof Compiler;
            return legacyOfflineMode ? this.loadFactory(path) : this.loadAndCompile(path);
          }
        }, {
          key: "loadAndCompile",
          value: function loadAndCompile(path) {
            var _this432 = this;

            var _path$split = path.split(_SEPARATOR),
                _path$split2 = _slicedToArray(_path$split, 2),
                module = _path$split2[0],
                exportName = _path$split2[1];

            if (exportName === undefined) {
              exportName = 'default';
            }

            return __webpack_require__("zn8P")(module).then(function (module) {
              return module[exportName];
            }).then(function (type) {
              return checkNotEmpty(type, module, exportName);
            }).then(function (type) {
              return _this432._compiler.compileModuleAsync(type);
            });
          }
        }, {
          key: "loadFactory",
          value: function loadFactory(path) {
            var _path$split3 = path.split(_SEPARATOR),
                _path$split4 = _slicedToArray(_path$split3, 2),
                module = _path$split4[0],
                exportName = _path$split4[1];

            var factoryClassSuffix = FACTORY_CLASS_SUFFIX;

            if (exportName === undefined) {
              exportName = 'default';
              factoryClassSuffix = '';
            }

            return __webpack_require__("zn8P")(this._config.factoryPathPrefix + module + this._config.factoryPathSuffix).then(function (module) {
              return module[exportName + factoryClassSuffix];
            }).then(function (factory) {
              return checkNotEmpty(factory, module, exportName);
            });
          }
        }]);

        return SystemJsNgModuleLoader;
      }();

      SystemJsNgModuleLoader.ɵfac = function SystemJsNgModuleLoader_Factory(t) {
        return new (t || SystemJsNgModuleLoader)(ɵɵinject(Compiler), ɵɵinject(SystemJsNgModuleLoaderConfig, 8));
      };

      SystemJsNgModuleLoader.ɵprov = ɵɵdefineInjectable({
        token: SystemJsNgModuleLoader,
        factory: SystemJsNgModuleLoader.ɵfac
      });

      SystemJsNgModuleLoader.ctorParameters = function () {
        return [{
          type: Compiler
        }, {
          type: SystemJsNgModuleLoaderConfig,
          decorators: [{
            type: Optional
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        setClassMetadata(SystemJsNgModuleLoader, [{
          type: Injectable
        }], function () {
          return [{
            type: Compiler
          }, {
            type: SystemJsNgModuleLoaderConfig,
            decorators: [{
              type: Optional
            }]
          }];
        }, null);
      })();

      function checkNotEmpty(value, modulePath, exportName) {
        if (!value) {
          throw new Error("Cannot find '".concat(exportName, "' in '").concat(modulePath, "'"));
        }

        return value;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Represents an Angular [view](guide/glossary#view "Definition").
       *
       * @see {@link ChangeDetectorRef#usage-notes Change detection usage}
       *
       * @publicApi
       */


      var ViewRef$1 = /*#__PURE__*/function (_ChangeDetectorRef) {
        _inherits2(ViewRef$1, _ChangeDetectorRef);

        var _super166 = _createSuper2(ViewRef$1);

        function ViewRef$1() {
          _classCallCheck2(this, ViewRef$1);

          return _super166.apply(this, arguments);
        }

        return ViewRef$1;
      }(ChangeDetectorRef);
      /**
       * Represents an Angular [view](guide/glossary#view) in a view container.
       * An [embedded view](guide/glossary#view-tree) can be referenced from a component
       * other than the hosting component whose template defines it, or it can be defined
       * independently by a `TemplateRef`.
       *
       * Properties of elements in a view can change, but the structure (number and order) of elements in
       * a view cannot. Change the structure of elements by inserting, moving, or
       * removing nested views in a view container.
       *
       * @see `ViewContainerRef`
       *
       * @usageNotes
       *
       * The following template breaks down into two separate `TemplateRef` instances,
       * an outer one and an inner one.
       *
       * ```
       * Count: {{items.length}}
       * <ul>
       *   <li *ngFor="let  item of items">{{item}}</li>
       * </ul>
       * ```
       *
       * This is the outer `TemplateRef`:
       *
       * ```
       * Count: {{items.length}}
       * <ul>
       *   <ng-template ngFor let-item [ngForOf]="items"></ng-template>
       * </ul>
       * ```
       *
       * This is the inner `TemplateRef`:
       *
       * ```
       *   <li>{{item}}</li>
       * ```
       *
       * The outer and inner `TemplateRef` instances are assembled into views as follows:
       *
       * ```
       * <!-- ViewRef: outer-0 -->
       * Count: 2
       * <ul>
       *   <ng-template view-container-ref></ng-template>
       *   <!-- ViewRef: inner-1 --><li>first</li><!-- /ViewRef: inner-1 -->
       *   <!-- ViewRef: inner-2 --><li>second</li><!-- /ViewRef: inner-2 -->
       * </ul>
       * <!-- /ViewRef: outer-0 -->
       * ```
       * @publicApi
       */


      var EmbeddedViewRef = /*#__PURE__*/function (_ViewRef$) {
        _inherits2(EmbeddedViewRef, _ViewRef$);

        var _super167 = _createSuper2(EmbeddedViewRef);

        function EmbeddedViewRef() {
          _classCallCheck2(this, EmbeddedViewRef);

          return _super167.apply(this, arguments);
        }

        return EmbeddedViewRef;
      }(ViewRef$1);
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @publicApi
       */


      var DebugEventListener = function DebugEventListener(name, callback) {
        _classCallCheck2(this, DebugEventListener);

        this.name = name;
        this.callback = callback;
      };

      var DebugNode__PRE_R3__ = /*#__PURE__*/function () {
        function DebugNode__PRE_R3__(nativeNode, parent, _debugContext) {
          _classCallCheck2(this, DebugNode__PRE_R3__);

          this.listeners = [];
          this.parent = null;
          this._debugContext = _debugContext;
          this.nativeNode = nativeNode;

          if (parent && parent instanceof DebugElement__PRE_R3__) {
            parent.addChild(this);
          }
        }

        _createClass2(DebugNode__PRE_R3__, [{
          key: "injector",
          get: function get() {
            return this._debugContext.injector;
          }
        }, {
          key: "componentInstance",
          get: function get() {
            return this._debugContext.component;
          }
        }, {
          key: "context",
          get: function get() {
            return this._debugContext.context;
          }
        }, {
          key: "references",
          get: function get() {
            return this._debugContext.references;
          }
        }, {
          key: "providerTokens",
          get: function get() {
            return this._debugContext.providerTokens;
          }
        }]);

        return DebugNode__PRE_R3__;
      }();

      var DebugElement__PRE_R3__ = /*#__PURE__*/function (_DebugNode__PRE_R3__) {
        _inherits2(DebugElement__PRE_R3__, _DebugNode__PRE_R3__);

        var _super168 = _createSuper2(DebugElement__PRE_R3__);

        function DebugElement__PRE_R3__(nativeNode, parent, _debugContext) {
          var _this433;

          _classCallCheck2(this, DebugElement__PRE_R3__);

          _this433 = _super168.call(this, nativeNode, parent, _debugContext);
          _this433.properties = {};
          _this433.attributes = {};
          _this433.classes = {};
          _this433.styles = {};
          _this433.childNodes = [];
          _this433.nativeElement = nativeNode;
          return _this433;
        }

        _createClass2(DebugElement__PRE_R3__, [{
          key: "addChild",
          value: function addChild(child) {
            if (child) {
              this.childNodes.push(child);
              child.parent = this;
            }
          }
        }, {
          key: "removeChild",
          value: function removeChild(child) {
            var childIndex = this.childNodes.indexOf(child);

            if (childIndex !== -1) {
              child.parent = null;
              this.childNodes.splice(childIndex, 1);
            }
          }
        }, {
          key: "insertChildrenAfter",
          value: function insertChildrenAfter(child, newChildren) {
            var _this434 = this;

            var siblingIndex = this.childNodes.indexOf(child);

            if (siblingIndex !== -1) {
              var _this$childNodes;

              (_this$childNodes = this.childNodes).splice.apply(_this$childNodes, [siblingIndex + 1, 0].concat(_toConsumableArray(newChildren)));

              newChildren.forEach(function (c) {
                if (c.parent) {
                  c.parent.removeChild(c);
                }

                child.parent = _this434;
              });
            }
          }
        }, {
          key: "insertBefore",
          value: function insertBefore(refChild, newChild) {
            var refIndex = this.childNodes.indexOf(refChild);

            if (refIndex === -1) {
              this.addChild(newChild);
            } else {
              if (newChild.parent) {
                newChild.parent.removeChild(newChild);
              }

              newChild.parent = this;
              this.childNodes.splice(refIndex, 0, newChild);
            }
          }
        }, {
          key: "query",
          value: function query(predicate) {
            var results = this.queryAll(predicate);
            return results[0] || null;
          }
        }, {
          key: "queryAll",
          value: function queryAll(predicate) {
            var matches = [];

            _queryElementChildren(this, predicate, matches);

            return matches;
          }
        }, {
          key: "queryAllNodes",
          value: function queryAllNodes(predicate) {
            var matches = [];

            _queryNodeChildren(this, predicate, matches);

            return matches;
          }
        }, {
          key: "children",
          get: function get() {
            return this.childNodes //
            .filter(function (node) {
              return node instanceof DebugElement__PRE_R3__;
            });
          }
        }, {
          key: "triggerEventHandler",
          value: function triggerEventHandler(eventName, eventObj) {
            this.listeners.forEach(function (listener) {
              if (listener.name == eventName) {
                listener.callback(eventObj);
              }
            });
          }
        }]);

        return DebugElement__PRE_R3__;
      }(DebugNode__PRE_R3__);
      /**
       * @publicApi
       */


      function asNativeElements(debugEls) {
        return debugEls.map(function (el) {
          return el.nativeElement;
        });
      }

      function _queryElementChildren(element, predicate, matches) {
        element.childNodes.forEach(function (node) {
          if (node instanceof DebugElement__PRE_R3__) {
            if (predicate(node)) {
              matches.push(node);
            }

            _queryElementChildren(node, predicate, matches);
          }
        });
      }

      function _queryNodeChildren(parentNode, predicate, matches) {
        if (parentNode instanceof DebugElement__PRE_R3__) {
          parentNode.childNodes.forEach(function (node) {
            if (predicate(node)) {
              matches.push(node);
            }

            if (node instanceof DebugElement__PRE_R3__) {
              _queryNodeChildren(node, predicate, matches);
            }
          });
        }
      }

      var DebugNode__POST_R3__ = /*#__PURE__*/function () {
        function DebugNode__POST_R3__(nativeNode) {
          _classCallCheck2(this, DebugNode__POST_R3__);

          this.nativeNode = nativeNode;
        }

        _createClass2(DebugNode__POST_R3__, [{
          key: "parent",
          get: function get() {
            var parent = this.nativeNode.parentNode;
            return parent ? new DebugElement__POST_R3__(parent) : null;
          }
        }, {
          key: "injector",
          get: function get() {
            return getInjector(this.nativeNode);
          }
        }, {
          key: "componentInstance",
          get: function get() {
            var nativeElement = this.nativeNode;
            return nativeElement && (getComponent(nativeElement) || getOwningComponent(nativeElement));
          }
        }, {
          key: "context",
          get: function get() {
            return getComponent(this.nativeNode) || getContext(this.nativeNode);
          }
        }, {
          key: "listeners",
          get: function get() {
            return getListeners(this.nativeNode).filter(function (listener) {
              return listener.type === 'dom';
            });
          }
        }, {
          key: "references",
          get: function get() {
            return getLocalRefs(this.nativeNode);
          }
        }, {
          key: "providerTokens",
          get: function get() {
            return getInjectionTokens(this.nativeNode);
          }
        }]);

        return DebugNode__POST_R3__;
      }();

      var DebugElement__POST_R3__ = /*#__PURE__*/function (_DebugNode__POST_R3__) {
        _inherits2(DebugElement__POST_R3__, _DebugNode__POST_R3__);

        var _super169 = _createSuper2(DebugElement__POST_R3__);

        function DebugElement__POST_R3__(nativeNode) {
          _classCallCheck2(this, DebugElement__POST_R3__);

          ngDevMode && assertDomNode(nativeNode);
          return _super169.call(this, nativeNode);
        }

        _createClass2(DebugElement__POST_R3__, [{
          key: "nativeElement",
          get: function get() {
            return this.nativeNode.nodeType == Node.ELEMENT_NODE ? this.nativeNode : null;
          }
        }, {
          key: "name",
          get: function get() {
            try {
              var context = loadLContext(this.nativeNode);
              var lView = context.lView;
              var tData = lView[TVIEW].data;
              var tNode = tData[context.nodeIndex];
              return tNode.value;
            } catch (e) {
              return this.nativeNode.nodeName;
            }
          }
          /**
           *  Gets a map of property names to property values for an element.
           *
           *  This map includes:
           *  - Regular property bindings (e.g. `[id]="id"`)
           *  - Host property bindings (e.g. `host: { '[id]': "id" }`)
           *  - Interpolated property bindings (e.g. `id="{{ value }}")
           *
           *  It does not include:
           *  - input property bindings (e.g. `[myCustomInput]="value"`)
           *  - attribute bindings (e.g. `[attr.role]="menu"`)
           */

        }, {
          key: "properties",
          get: function get() {
            var context = loadLContext(this.nativeNode, false);

            if (context == null) {
              return {};
            }

            var lView = context.lView;
            var tData = lView[TVIEW].data;
            var tNode = tData[context.nodeIndex];
            var properties = {}; // Collect properties from the DOM.

            copyDomProperties(this.nativeElement, properties); // Collect properties from the bindings. This is needed for animation renderer which has
            // synthetic properties which don't get reflected into the DOM.

            collectPropertyBindings(properties, tNode, lView, tData);
            return properties;
          }
        }, {
          key: "attributes",
          get: function get() {
            var attributes = {};
            var element = this.nativeElement;

            if (!element) {
              return attributes;
            }

            var context = loadLContext(element, false);

            if (context == null) {
              return {};
            }

            var lView = context.lView;
            var tNodeAttrs = lView[TVIEW].data[context.nodeIndex].attrs;
            var lowercaseTNodeAttrs = []; // For debug nodes we take the element's attribute directly from the DOM since it allows us
            // to account for ones that weren't set via bindings (e.g. ViewEngine keeps track of the ones
            // that are set through `Renderer2`). The problem is that the browser will lowercase all names,
            // however since we have the attributes already on the TNode, we can preserve the case by going
            // through them once, adding them to the `attributes` map and putting their lower-cased name
            // into an array. Afterwards when we're going through the native DOM attributes, we can check
            // whether we haven't run into an attribute already through the TNode.

            if (tNodeAttrs) {
              var i = 0;

              while (i < tNodeAttrs.length) {
                var attrName = tNodeAttrs[i]; // Stop as soon as we hit a marker. We only care about the regular attributes. Everything
                // else will be handled below when we read the final attributes off the DOM.

                if (typeof attrName !== 'string') break;
                var attrValue = tNodeAttrs[i + 1];
                attributes[attrName] = attrValue;
                lowercaseTNodeAttrs.push(attrName.toLowerCase());
                i += 2;
              }
            }

            var eAttrs = element.attributes;

            for (var _i23 = 0; _i23 < eAttrs.length; _i23++) {
              var attr = eAttrs[_i23];
              var lowercaseName = attr.name.toLowerCase(); // Make sure that we don't assign the same attribute both in its
              // case-sensitive form and the lower-cased one from the browser.

              if (lowercaseTNodeAttrs.indexOf(lowercaseName) === -1) {
                // Save the lowercase name to align the behavior between browsers.
                // IE preserves the case, while all other browser convert it to lower case.
                attributes[lowercaseName] = attr.value;
              }
            }

            return attributes;
          }
        }, {
          key: "styles",
          get: function get() {
            if (this.nativeElement && this.nativeElement.style) {
              return this.nativeElement.style;
            }

            return {};
          }
        }, {
          key: "classes",
          get: function get() {
            var result = {};
            var element = this.nativeElement; // SVG elements return an `SVGAnimatedString` instead of a plain string for the `className`.

            var className = element.className;
            var classes = className && typeof className !== 'string' ? className.baseVal.split(' ') : className.split(' ');
            classes.forEach(function (value) {
              return result[value] = true;
            });
            return result;
          }
        }, {
          key: "childNodes",
          get: function get() {
            var childNodes = this.nativeNode.childNodes;
            var children = [];

            for (var i = 0; i < childNodes.length; i++) {
              var element = childNodes[i];
              children.push(getDebugNode__POST_R3__(element));
            }

            return children;
          }
        }, {
          key: "children",
          get: function get() {
            var nativeElement = this.nativeElement;
            if (!nativeElement) return [];
            var childNodes = nativeElement.children;
            var children = [];

            for (var i = 0; i < childNodes.length; i++) {
              var element = childNodes[i];
              children.push(getDebugNode__POST_R3__(element));
            }

            return children;
          }
        }, {
          key: "query",
          value: function query(predicate) {
            var results = this.queryAll(predicate);
            return results[0] || null;
          }
        }, {
          key: "queryAll",
          value: function queryAll(predicate) {
            var matches = [];

            _queryAllR3(this, predicate, matches, true);

            return matches;
          }
        }, {
          key: "queryAllNodes",
          value: function queryAllNodes(predicate) {
            var matches = [];

            _queryAllR3(this, predicate, matches, false);

            return matches;
          }
        }, {
          key: "triggerEventHandler",
          value: function triggerEventHandler(eventName, eventObj) {
            var node = this.nativeNode;
            var invokedListeners = [];
            this.listeners.forEach(function (listener) {
              if (listener.name === eventName) {
                var callback = listener.callback;
                callback.call(node, eventObj);
                invokedListeners.push(callback);
              }
            }); // We need to check whether `eventListeners` exists, because it's something
            // that Zone.js only adds to `EventTarget` in browser environments.

            if (typeof node.eventListeners === 'function') {
              // Note that in Ivy we wrap event listeners with a call to `event.preventDefault` in some
              // cases. We use '__ngUnwrap__' as a special token that gives us access to the actual event
              // listener.
              node.eventListeners(eventName).forEach(function (listener) {
                // In order to ensure that we can detect the special __ngUnwrap__ token described above, we
                // use `toString` on the listener and see if it contains the token. We use this approach to
                // ensure that it still worked with compiled code since it cannot remove or rename string
                // literals. We also considered using a special function name (i.e. if(listener.name ===
                // special)) but that was more cumbersome and we were also concerned the compiled code could
                // strip the name, turning the condition in to ("" === "") and always returning true.
                if (listener.toString().indexOf('__ngUnwrap__') !== -1) {
                  var unwrappedListener = listener('__ngUnwrap__');
                  return invokedListeners.indexOf(unwrappedListener) === -1 && unwrappedListener.call(node, eventObj);
                }
              });
            }
          }
        }]);

        return DebugElement__POST_R3__;
      }(DebugNode__POST_R3__);

      function copyDomProperties(element, properties) {
        if (element) {
          // Skip own properties (as those are patched)
          var obj = Object.getPrototypeOf(element);
          var NodePrototype = Node.prototype;

          while (obj !== null && obj !== NodePrototype) {
            var descriptors = Object.getOwnPropertyDescriptors(obj);

            for (var key in descriptors) {
              if (!key.startsWith('__') && !key.startsWith('on')) {
                // don't include properties starting with `__` and `on`.
                // `__` are patched values which should not be included.
                // `on` are listeners which also should not be included.
                var value = element[key];

                if (isPrimitiveValue(value)) {
                  properties[key] = value;
                }
              }
            }

            obj = Object.getPrototypeOf(obj);
          }
        }
      }

      function isPrimitiveValue(value) {
        return typeof value === 'string' || typeof value === 'boolean' || typeof value === 'number' || value === null;
      }

      function _queryAllR3(parentElement, predicate, matches, elementsOnly) {
        var context = loadLContext(parentElement.nativeNode, false);

        if (context !== null) {
          var parentTNode = context.lView[TVIEW].data[context.nodeIndex];

          _queryNodeChildrenR3(parentTNode, context.lView, predicate, matches, elementsOnly, parentElement.nativeNode);
        } else {
          // If the context is null, then `parentElement` was either created with Renderer2 or native DOM
          // APIs.
          _queryNativeNodeDescendants(parentElement.nativeNode, predicate, matches, elementsOnly);
        }
      }
      /**
       * Recursively match the current TNode against the predicate, and goes on with the next ones.
       *
       * @param tNode the current TNode
       * @param lView the LView of this TNode
       * @param predicate the predicate to match
       * @param matches the list of positive matches
       * @param elementsOnly whether only elements should be searched
       * @param rootNativeNode the root native node on which predicate should not be matched
       */


      function _queryNodeChildrenR3(tNode, lView, predicate, matches, elementsOnly, rootNativeNode) {
        ngDevMode && assertTNodeForLView(tNode, lView);
        var nativeNode = getNativeByTNodeOrNull(tNode, lView); // For each type of TNode, specific logic is executed.

        if (tNode.type & (3
        /* AnyRNode */
        | 8
        /* ElementContainer */
        )) {
          // Case 1: the TNode is an element
          // The native node has to be checked.
          _addQueryMatchR3(nativeNode, predicate, matches, elementsOnly, rootNativeNode);

          if (isComponentHost(tNode)) {
            // If the element is the host of a component, then all nodes in its view have to be processed.
            // Note: the component's content (tNode.child) will be processed from the insertion points.
            var componentView = getComponentLViewByIndex(tNode.index, lView);

            if (componentView && componentView[TVIEW].firstChild) {
              _queryNodeChildrenR3(componentView[TVIEW].firstChild, componentView, predicate, matches, elementsOnly, rootNativeNode);
            }
          } else {
            if (tNode.child) {
              // Otherwise, its children have to be processed.
              _queryNodeChildrenR3(tNode.child, lView, predicate, matches, elementsOnly, rootNativeNode);
            } // We also have to query the DOM directly in order to catch elements inserted through
            // Renderer2. Note that this is __not__ optimal, because we're walking similar trees multiple
            // times. ViewEngine could do it more efficiently, because all the insertions go through
            // Renderer2, however that's not the case in Ivy. This approach is being used because:
            // 1. Matching the ViewEngine behavior would mean potentially introducing a depedency
            //    from `Renderer2` to Ivy which could bring Ivy code into ViewEngine.
            // 2. We would have to make `Renderer3` "know" about debug nodes.
            // 3. It allows us to capture nodes that were inserted directly via the DOM.


            nativeNode && _queryNativeNodeDescendants(nativeNode, predicate, matches, elementsOnly);
          } // In all cases, if a dynamic container exists for this node, each view inside it has to be
          // processed.


          var nodeOrContainer = lView[tNode.index];

          if (isLContainer(nodeOrContainer)) {
            _queryNodeChildrenInContainerR3(nodeOrContainer, predicate, matches, elementsOnly, rootNativeNode);
          }
        } else if (tNode.type & 4
        /* Container */
        ) {
          // Case 2: the TNode is a container
          // The native node has to be checked.
          var lContainer = lView[tNode.index];

          _addQueryMatchR3(lContainer[NATIVE], predicate, matches, elementsOnly, rootNativeNode); // Each view inside the container has to be processed.


          _queryNodeChildrenInContainerR3(lContainer, predicate, matches, elementsOnly, rootNativeNode);
        } else if (tNode.type & 16
        /* Projection */
        ) {
          // Case 3: the TNode is a projection insertion point (i.e. a <ng-content>).
          // The nodes projected at this location all need to be processed.
          var _componentView = lView[DECLARATION_COMPONENT_VIEW];
          var componentHost = _componentView[T_HOST];
          var head = componentHost.projection[tNode.projection];

          if (Array.isArray(head)) {
            var _iterator55 = _createForOfIteratorHelper(head),
                _step54;

            try {
              for (_iterator55.s(); !(_step54 = _iterator55.n()).done;) {
                var _nativeNode2 = _step54.value;

                _addQueryMatchR3(_nativeNode2, predicate, matches, elementsOnly, rootNativeNode);
              }
            } catch (err) {
              _iterator55.e(err);
            } finally {
              _iterator55.f();
            }
          } else if (head) {
            var nextLView = _componentView[PARENT];
            var nextTNode = nextLView[TVIEW].data[head.index];

            _queryNodeChildrenR3(nextTNode, nextLView, predicate, matches, elementsOnly, rootNativeNode);
          }
        } else if (tNode.child) {
          // Case 4: the TNode is a view.
          _queryNodeChildrenR3(tNode.child, lView, predicate, matches, elementsOnly, rootNativeNode);
        } // We don't want to go to the next sibling of the root node.


        if (rootNativeNode !== nativeNode) {
          // To determine the next node to be processed, we need to use the next or the projectionNext
          // link, depending on whether the current node has been projected.
          var _nextTNode = tNode.flags & 4
          /* isProjected */
          ? tNode.projectionNext : tNode.next;

          if (_nextTNode) {
            _queryNodeChildrenR3(_nextTNode, lView, predicate, matches, elementsOnly, rootNativeNode);
          }
        }
      }
      /**
       * Process all TNodes in a given container.
       *
       * @param lContainer the container to be processed
       * @param predicate the predicate to match
       * @param matches the list of positive matches
       * @param elementsOnly whether only elements should be searched
       * @param rootNativeNode the root native node on which predicate should not be matched
       */


      function _queryNodeChildrenInContainerR3(lContainer, predicate, matches, elementsOnly, rootNativeNode) {
        for (var i = CONTAINER_HEADER_OFFSET; i < lContainer.length; i++) {
          var childView = lContainer[i];
          var firstChild = childView[TVIEW].firstChild;

          if (firstChild) {
            _queryNodeChildrenR3(firstChild, childView, predicate, matches, elementsOnly, rootNativeNode);
          }
        }
      }
      /**
       * Match the current native node against the predicate.
       *
       * @param nativeNode the current native node
       * @param predicate the predicate to match
       * @param matches the list of positive matches
       * @param elementsOnly whether only elements should be searched
       * @param rootNativeNode the root native node on which predicate should not be matched
       */


      function _addQueryMatchR3(nativeNode, predicate, matches, elementsOnly, rootNativeNode) {
        if (rootNativeNode !== nativeNode) {
          var debugNode = getDebugNode$1(nativeNode);

          if (!debugNode) {
            return;
          } // Type of the "predicate and "matches" array are set based on the value of
          // the "elementsOnly" parameter. TypeScript is not able to properly infer these
          // types with generics, so we manually cast the parameters accordingly.


          if (elementsOnly && debugNode instanceof DebugElement__POST_R3__ && predicate(debugNode) && matches.indexOf(debugNode) === -1) {
            matches.push(debugNode);
          } else if (!elementsOnly && predicate(debugNode) && matches.indexOf(debugNode) === -1) {
            matches.push(debugNode);
          }
        }
      }
      /**
       * Match all the descendants of a DOM node against a predicate.
       *
       * @param nativeNode the current native node
       * @param predicate the predicate to match
       * @param matches the list where matches are stored
       * @param elementsOnly whether only elements should be searched
       */


      function _queryNativeNodeDescendants(parentNode, predicate, matches, elementsOnly) {
        var nodes = parentNode.childNodes;
        var length = nodes.length;

        for (var i = 0; i < length; i++) {
          var node = nodes[i];
          var debugNode = getDebugNode$1(node);

          if (debugNode) {
            if (elementsOnly && debugNode instanceof DebugElement__POST_R3__ && predicate(debugNode) && matches.indexOf(debugNode) === -1) {
              matches.push(debugNode);
            } else if (!elementsOnly && predicate(debugNode) && matches.indexOf(debugNode) === -1) {
              matches.push(debugNode);
            }

            _queryNativeNodeDescendants(node, predicate, matches, elementsOnly);
          }
        }
      }
      /**
       * Iterates through the property bindings for a given node and generates
       * a map of property names to values. This map only contains property bindings
       * defined in templates, not in host bindings.
       */


      function collectPropertyBindings(properties, tNode, lView, tData) {
        var bindingIndexes = tNode.propertyBindings;

        if (bindingIndexes !== null) {
          for (var i = 0; i < bindingIndexes.length; i++) {
            var bindingIndex = bindingIndexes[i];
            var propMetadata = tData[bindingIndex];
            var metadataParts = propMetadata.split(INTERPOLATION_DELIMITER);
            var propertyName = metadataParts[0];

            if (metadataParts.length > 1) {
              var value = metadataParts[1];

              for (var j = 1; j < metadataParts.length - 1; j++) {
                value += renderStringify(lView[bindingIndex + j - 1]) + metadataParts[j + 1];
              }

              properties[propertyName] = value;
            } else {
              properties[propertyName] = lView[bindingIndex];
            }
          }
        }
      } // Need to keep the nodes in a global Map so that multiple angular apps are supported.


      var _nativeNodeToDebugNode = new Map();

      function getDebugNode__PRE_R3__(nativeNode) {
        return _nativeNodeToDebugNode.get(nativeNode) || null;
      }

      var NG_DEBUG_PROPERTY = '__ng_debug__';

      function getDebugNode__POST_R3__(nativeNode) {
        if (nativeNode instanceof Node) {
          if (!nativeNode.hasOwnProperty(NG_DEBUG_PROPERTY)) {
            nativeNode[NG_DEBUG_PROPERTY] = nativeNode.nodeType == Node.ELEMENT_NODE ? new DebugElement__POST_R3__(nativeNode) : new DebugNode__POST_R3__(nativeNode);
          }

          return nativeNode[NG_DEBUG_PROPERTY];
        }

        return null;
      }
      /**
       * @publicApi
       */


      var getDebugNode$1 = getDebugNode__POST_R3__;

      function getDebugNodeR2__PRE_R3__(nativeNode) {
        return getDebugNode__PRE_R3__(nativeNode);
      }

      function getDebugNodeR2__POST_R3__(_nativeNode) {
        return null;
      }

      var getDebugNodeR2 = getDebugNodeR2__POST_R3__;

      function getAllDebugNodes() {
        return Array.from(_nativeNodeToDebugNode.values());
      }

      function indexDebugNode(node) {
        _nativeNodeToDebugNode.set(node.nativeNode, node);
      }

      function removeDebugNodeFromIndex(node) {
        _nativeNodeToDebugNode["delete"](node.nativeNode);
      }
      /**
       * @publicApi
       */


      var DebugNode = DebugNode__POST_R3__;
      /**
       * @publicApi
       */

      var DebugElement = DebugElement__POST_R3__;
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      var _CORE_PLATFORM_PROVIDERS = [// Set a default platform name for platforms that don't set it explicitly.
      {
        provide: PLATFORM_ID,
        useValue: 'unknown'
      }, {
        provide: PlatformRef,
        deps: [Injector]
      }, {
        provide: TestabilityRegistry,
        deps: []
      }, {
        provide: Console,
        deps: []
      }];
      /**
       * This platform has to be included in any other platform
       *
       * @publicApi
       */

      var platformCore = createPlatformFactory(null, 'core', _CORE_PLATFORM_PROVIDERS);
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      function _iterableDiffersFactory() {
        return defaultIterableDiffers;
      }

      function _keyValueDiffersFactory() {
        return defaultKeyValueDiffers;
      }

      function _localeFactory(locale) {
        locale = locale || getGlobalLocale();

        if (ivyEnabled) {
          setLocaleId(locale);
        }

        return locale;
      }
      /**
       * Work out the locale from the potential global properties.
       *
       * * Closure Compiler: use `goog.LOCALE`.
       * * Ivy enabled: use `$localize.locale`
       */


      function getGlobalLocale() {
        if (typeof ngI18nClosureMode !== 'undefined' && ngI18nClosureMode && typeof goog !== 'undefined' && goog.LOCALE !== 'en') {
          // * The default `goog.LOCALE` value is `en`, while Angular used `en-US`.
          // * In order to preserve backwards compatibility, we use Angular default value over
          //   Closure Compiler's one.
          return goog.LOCALE;
        } else {
          // KEEP `typeof $localize !== 'undefined' && $localize.locale` IN SYNC WITH THE LOCALIZE
          // COMPILE-TIME INLINER.
          //
          // * During compile time inlining of translations the expression will be replaced
          //   with a string literal that is the current locale. Other forms of this expression are not
          //   guaranteed to be replaced.
          //
          // * During runtime translation evaluation, the developer is required to set `$localize.locale`
          //   if required, or just to provide their own `LOCALE_ID` provider.
          return ivyEnabled && typeof $localize !== 'undefined' && $localize.locale || DEFAULT_LOCALE_ID;
        }
      }

      var ɵ0$g = USD_CURRENCY_CODE;
      /**
       * A built-in [dependency injection token](guide/glossary#di-token)
       * that is used to configure the root injector for bootstrapping.
       */

      var APPLICATION_MODULE_PROVIDERS = [{
        provide: ApplicationRef,
        useClass: ApplicationRef,
        deps: [NgZone, Console, Injector, ErrorHandler, ComponentFactoryResolver, ApplicationInitStatus]
      }, {
        provide: SCHEDULER,
        deps: [NgZone],
        useFactory: zoneSchedulerFactory
      }, {
        provide: ApplicationInitStatus,
        useClass: ApplicationInitStatus,
        deps: [[new Optional(), APP_INITIALIZER]]
      }, {
        provide: Compiler,
        useClass: Compiler,
        deps: []
      }, APP_ID_RANDOM_PROVIDER, {
        provide: IterableDiffers,
        useFactory: _iterableDiffersFactory,
        deps: []
      }, {
        provide: KeyValueDiffers,
        useFactory: _keyValueDiffersFactory,
        deps: []
      }, {
        provide: LOCALE_ID$1,
        useFactory: _localeFactory,
        deps: [[new Inject(LOCALE_ID$1), new Optional(), new SkipSelf()]]
      }, {
        provide: DEFAULT_CURRENCY_CODE,
        useValue: ɵ0$g
      }];
      /**
       * Schedule work at next available slot.
       *
       * In Ivy this is just `requestAnimationFrame`. For compatibility reasons when bootstrapped
       * using `platformRef.bootstrap` we need to use `NgZone.onStable` as the scheduling mechanism.
       * This overrides the scheduling mechanism in Ivy to `NgZone.onStable`.
       *
       * @param ngZone NgZone to use for scheduling.
       */

      function zoneSchedulerFactory(ngZone) {
        var queue = [];
        ngZone.onStable.subscribe(function () {
          while (queue.length) {
            queue.pop()();
          }
        });
        return function (fn) {
          queue.push(fn);
        };
      }
      /**
       * Configures the root injector for an app with
       * providers of `@angular/core` dependencies that `ApplicationRef` needs
       * to bootstrap components.
       *
       * Re-exported by `BrowserModule`, which is included automatically in the root
       * `AppModule` when you create a new app with the CLI `new` command.
       *
       * @publicApi
       */


      var ApplicationModule = // Inject ApplicationRef to make it eager...
      function ApplicationModule(appRef) {
        _classCallCheck2(this, ApplicationModule);
      };

      ApplicationModule.ɵmod = ɵɵdefineNgModule({
        type: ApplicationModule
      });
      ApplicationModule.ɵinj = ɵɵdefineInjector({
        factory: function ApplicationModule_Factory(t) {
          return new (t || ApplicationModule)(ɵɵinject(ApplicationRef));
        },
        providers: APPLICATION_MODULE_PROVIDERS
      });

      ApplicationModule.ctorParameters = function () {
        return [{
          type: ApplicationRef
        }];
      };
      /*@__PURE__*/


      (function () {
        setClassMetadata(ApplicationModule, [{
          type: NgModule,
          args: [{
            providers: APPLICATION_MODULE_PROVIDERS
          }]
        }], function () {
          return [{
            type: ApplicationRef
          }];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function anchorDef(flags, matchedQueriesDsl, ngContentIndex, childCount, handleEvent, templateFactory) {
        flags |= 1
        /* TypeElement */
        ;

        var _splitMatchedQueriesD2 = splitMatchedQueriesDsl(matchedQueriesDsl),
            matchedQueries = _splitMatchedQueriesD2.matchedQueries,
            references = _splitMatchedQueriesD2.references,
            matchedQueryIds = _splitMatchedQueriesD2.matchedQueryIds;

        var template = templateFactory ? resolveDefinition(templateFactory) : null;
        return {
          // will bet set by the view definition
          nodeIndex: -1,
          parent: null,
          renderParent: null,
          bindingIndex: -1,
          outputIndex: -1,
          // regular values
          flags: flags,
          checkIndex: -1,
          childFlags: 0,
          directChildFlags: 0,
          childMatchedQueries: 0,
          matchedQueries: matchedQueries,
          matchedQueryIds: matchedQueryIds,
          references: references,
          ngContentIndex: ngContentIndex,
          childCount: childCount,
          bindings: [],
          bindingFlags: 0,
          outputs: [],
          element: {
            ns: null,
            name: null,
            attrs: null,
            template: template,
            componentProvider: null,
            componentView: null,
            componentRendererType: null,
            publicProviders: null,
            allProviders: null,
            handleEvent: handleEvent || NOOP
          },
          provider: null,
          text: null,
          query: null,
          ngContent: null
        };
      }

      function elementDef(checkIndex, flags, matchedQueriesDsl, ngContentIndex, childCount, namespaceAndName) {
        var fixedAttrs = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : [];
        var bindings = arguments.length > 7 ? arguments[7] : undefined;
        var outputs = arguments.length > 8 ? arguments[8] : undefined;
        var handleEvent = arguments.length > 9 ? arguments[9] : undefined;
        var componentView = arguments.length > 10 ? arguments[10] : undefined;
        var componentRendererType = arguments.length > 11 ? arguments[11] : undefined;

        if (!handleEvent) {
          handleEvent = NOOP;
        }

        var _splitMatchedQueriesD3 = splitMatchedQueriesDsl(matchedQueriesDsl),
            matchedQueries = _splitMatchedQueriesD3.matchedQueries,
            references = _splitMatchedQueriesD3.references,
            matchedQueryIds = _splitMatchedQueriesD3.matchedQueryIds;

        var ns = null;
        var name = null;

        if (namespaceAndName) {
          var _splitNamespace = splitNamespace(namespaceAndName);

          var _splitNamespace2 = _slicedToArray(_splitNamespace, 2);

          ns = _splitNamespace2[0];
          name = _splitNamespace2[1];
        }

        bindings = bindings || [];
        var bindingDefs = [];

        for (var i = 0; i < bindings.length; i++) {
          var _bindings$i = _slicedToArray(bindings[i], 3),
              bindingFlags = _bindings$i[0],
              _namespaceAndName = _bindings$i[1],
              suffixOrSecurityContext = _bindings$i[2];

          var _splitNamespace3 = splitNamespace(_namespaceAndName),
              _splitNamespace4 = _slicedToArray(_splitNamespace3, 2),
              _ns = _splitNamespace4[0],
              _name2 = _splitNamespace4[1];

          var securityContext = undefined;
          var suffix = undefined;

          switch (bindingFlags & 15
          /* Types */
          ) {
            case 4
            /* TypeElementStyle */
            :
              suffix = suffixOrSecurityContext;
              break;

            case 1
            /* TypeElementAttribute */
            :
            case 8
            /* TypeProperty */
            :
              securityContext = suffixOrSecurityContext;
              break;
          }

          bindingDefs[i] = {
            flags: bindingFlags,
            ns: _ns,
            name: _name2,
            nonMinifiedName: _name2,
            securityContext: securityContext,
            suffix: suffix
          };
        }

        outputs = outputs || [];
        var outputDefs = [];

        for (var _i24 = 0; _i24 < outputs.length; _i24++) {
          var _outputs$_i = _slicedToArray(outputs[_i24], 2),
              target = _outputs$_i[0],
              eventName = _outputs$_i[1];

          outputDefs[_i24] = {
            type: 0
            /* ElementOutput */
            ,
            target: target,
            eventName: eventName,
            propName: null
          };
        }

        fixedAttrs = fixedAttrs || [];
        var attrs = fixedAttrs.map(function (_ref58) {
          var _ref59 = _slicedToArray(_ref58, 2),
              namespaceAndName = _ref59[0],
              value = _ref59[1];

          var _splitNamespace5 = splitNamespace(namespaceAndName),
              _splitNamespace6 = _slicedToArray(_splitNamespace5, 2),
              ns = _splitNamespace6[0],
              name = _splitNamespace6[1];

          return [ns, name, value];
        });
        componentRendererType = resolveRendererType2(componentRendererType);

        if (componentView) {
          flags |= 33554432
          /* ComponentView */
          ;
        }

        flags |= 1
        /* TypeElement */
        ;
        return {
          // will bet set by the view definition
          nodeIndex: -1,
          parent: null,
          renderParent: null,
          bindingIndex: -1,
          outputIndex: -1,
          // regular values
          checkIndex: checkIndex,
          flags: flags,
          childFlags: 0,
          directChildFlags: 0,
          childMatchedQueries: 0,
          matchedQueries: matchedQueries,
          matchedQueryIds: matchedQueryIds,
          references: references,
          ngContentIndex: ngContentIndex,
          childCount: childCount,
          bindings: bindingDefs,
          bindingFlags: calcBindingFlags(bindingDefs),
          outputs: outputDefs,
          element: {
            ns: ns,
            name: name,
            attrs: attrs,
            template: null,
            // will bet set by the view definition
            componentProvider: null,
            componentView: componentView || null,
            componentRendererType: componentRendererType,
            publicProviders: null,
            allProviders: null,
            handleEvent: handleEvent || NOOP
          },
          provider: null,
          text: null,
          query: null,
          ngContent: null
        };
      }

      function createElement(view, renderHost, def) {
        var elDef = def.element;
        var rootSelectorOrNode = view.root.selectorOrNode;
        var renderer = view.renderer;
        var el;

        if (view.parent || !rootSelectorOrNode) {
          if (elDef.name) {
            el = renderer.createElement(elDef.name, elDef.ns);
          } else {
            el = renderer.createComment('');
          }

          var parentEl = getParentRenderElement(view, renderHost, def);

          if (parentEl) {
            renderer.appendChild(parentEl, el);
          }
        } else {
          // when using native Shadow DOM, do not clear the root element contents to allow slot projection
          var preserveContent = !!elDef.componentRendererType && elDef.componentRendererType.encapsulation === ViewEncapsulation$1.ShadowDom;
          el = renderer.selectRootElement(rootSelectorOrNode, preserveContent);
        }

        if (elDef.attrs) {
          for (var i = 0; i < elDef.attrs.length; i++) {
            var _elDef$attrs$i = _slicedToArray(elDef.attrs[i], 3),
                ns = _elDef$attrs$i[0],
                name = _elDef$attrs$i[1],
                value = _elDef$attrs$i[2];

            renderer.setAttribute(el, name, value, ns);
          }
        }

        return el;
      }

      function listenToElementOutputs(view, compView, def, el) {
        for (var i = 0; i < def.outputs.length; i++) {
          var output = def.outputs[i];
          var handleEventClosure = renderEventHandlerClosure(view, def.nodeIndex, elementEventFullName(output.target, output.eventName));
          var listenTarget = output.target;
          var listenerView = view;

          if (output.target === 'component') {
            listenTarget = null;
            listenerView = compView;
          }

          var disposable = listenerView.renderer.listen(listenTarget || el, output.eventName, handleEventClosure);
          view.disposables[def.outputIndex + i] = disposable;
        }
      }

      function renderEventHandlerClosure(view, index, eventName) {
        return function (event) {
          return dispatchEvent(view, index, eventName, event);
        };
      }

      function checkAndUpdateElementInline(view, def, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9) {
        var bindLen = def.bindings.length;
        var changed = false;
        if (bindLen > 0 && checkAndUpdateElementValue(view, def, 0, v0)) changed = true;
        if (bindLen > 1 && checkAndUpdateElementValue(view, def, 1, v1)) changed = true;
        if (bindLen > 2 && checkAndUpdateElementValue(view, def, 2, v2)) changed = true;
        if (bindLen > 3 && checkAndUpdateElementValue(view, def, 3, v3)) changed = true;
        if (bindLen > 4 && checkAndUpdateElementValue(view, def, 4, v4)) changed = true;
        if (bindLen > 5 && checkAndUpdateElementValue(view, def, 5, v5)) changed = true;
        if (bindLen > 6 && checkAndUpdateElementValue(view, def, 6, v6)) changed = true;
        if (bindLen > 7 && checkAndUpdateElementValue(view, def, 7, v7)) changed = true;
        if (bindLen > 8 && checkAndUpdateElementValue(view, def, 8, v8)) changed = true;
        if (bindLen > 9 && checkAndUpdateElementValue(view, def, 9, v9)) changed = true;
        return changed;
      }

      function checkAndUpdateElementDynamic(view, def, values) {
        var changed = false;

        for (var i = 0; i < values.length; i++) {
          if (checkAndUpdateElementValue(view, def, i, values[i])) changed = true;
        }

        return changed;
      }

      function checkAndUpdateElementValue(view, def, bindingIdx, value) {
        if (!checkAndUpdateBinding(view, def, bindingIdx, value)) {
          return false;
        }

        var binding = def.bindings[bindingIdx];
        var elData = asElementData(view, def.nodeIndex);
        var renderNode = elData.renderElement;
        var name = binding.name;

        switch (binding.flags & 15
        /* Types */
        ) {
          case 1
          /* TypeElementAttribute */
          :
            setElementAttribute$1(view, binding, renderNode, binding.ns, name, value);
            break;

          case 2
          /* TypeElementClass */
          :
            setElementClass(view, renderNode, name, value);
            break;

          case 4
          /* TypeElementStyle */
          :
            setElementStyle(view, binding, renderNode, name, value);
            break;

          case 8
          /* TypeProperty */
          :
            var bindView = def.flags & 33554432
            /* ComponentView */
            && binding.flags & 32
            /* SyntheticHostProperty */
            ? elData.componentView : view;
            setElementProperty(bindView, binding, renderNode, name, value);
            break;
        }

        return true;
      }

      function setElementAttribute$1(view, binding, renderNode, ns, name, value) {
        var securityContext = binding.securityContext;
        var renderValue = securityContext ? view.root.sanitizer.sanitize(securityContext, value) : value;
        renderValue = renderValue != null ? renderValue.toString() : null;
        var renderer = view.renderer;

        if (value != null) {
          renderer.setAttribute(renderNode, name, renderValue, ns);
        } else {
          renderer.removeAttribute(renderNode, name, ns);
        }
      }

      function setElementClass(view, renderNode, name, value) {
        var renderer = view.renderer;

        if (value) {
          renderer.addClass(renderNode, name);
        } else {
          renderer.removeClass(renderNode, name);
        }
      }

      function setElementStyle(view, binding, renderNode, name, value) {
        var renderValue = view.root.sanitizer.sanitize(SecurityContext.STYLE, value);

        if (renderValue != null) {
          renderValue = renderValue.toString();
          var unit = binding.suffix;

          if (unit != null) {
            renderValue = renderValue + unit;
          }
        } else {
          renderValue = null;
        }

        var renderer = view.renderer;

        if (renderValue != null) {
          renderer.setStyle(renderNode, name, renderValue);
        } else {
          renderer.removeStyle(renderNode, name);
        }
      }

      function setElementProperty(view, binding, renderNode, name, value) {
        var securityContext = binding.securityContext;
        var renderValue = securityContext ? view.root.sanitizer.sanitize(securityContext, value) : value;
        view.renderer.setProperty(renderNode, name, renderValue);
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function queryDef(flags, id, bindings) {
        var bindingDefs = [];

        for (var propName in bindings) {
          var bindingType = bindings[propName];
          bindingDefs.push({
            propName: propName,
            bindingType: bindingType
          });
        }

        return {
          // will bet set by the view definition
          nodeIndex: -1,
          parent: null,
          renderParent: null,
          bindingIndex: -1,
          outputIndex: -1,
          // regular values
          // TODO(vicb): check
          checkIndex: -1,
          flags: flags,
          childFlags: 0,
          directChildFlags: 0,
          childMatchedQueries: 0,
          ngContentIndex: -1,
          matchedQueries: {},
          matchedQueryIds: 0,
          references: {},
          childCount: 0,
          bindings: [],
          bindingFlags: 0,
          outputs: [],
          element: null,
          provider: null,
          text: null,
          query: {
            id: id,
            filterId: filterQueryId(id),
            bindings: bindingDefs
          },
          ngContent: null
        };
      }

      function createQuery() {
        return new QueryList();
      }

      function dirtyParentQueries(view) {
        var queryIds = view.def.nodeMatchedQueries;

        while (view.parent && isEmbeddedView(view)) {
          var tplDef = view.parentNodeDef;
          view = view.parent; // content queries

          var end = tplDef.nodeIndex + tplDef.childCount;

          for (var i = 0; i <= end; i++) {
            var nodeDef = view.def.nodes[i];

            if (nodeDef.flags & 67108864
            /* TypeContentQuery */
            && nodeDef.flags & 536870912
            /* DynamicQuery */
            && (nodeDef.query.filterId & queryIds) === nodeDef.query.filterId) {
              asQueryList(view, i).setDirty();
            }

            if (nodeDef.flags & 1
            /* TypeElement */
            && i + nodeDef.childCount < tplDef.nodeIndex || !(nodeDef.childFlags & 67108864
            /* TypeContentQuery */
            ) || !(nodeDef.childFlags & 536870912
            /* DynamicQuery */
            )) {
              // skip elements that don't contain the template element or no query.
              i += nodeDef.childCount;
            }
          }
        } // view queries


        if (view.def.nodeFlags & 134217728
        /* TypeViewQuery */
        ) {
          for (var _i25 = 0; _i25 < view.def.nodes.length; _i25++) {
            var _nodeDef = view.def.nodes[_i25];

            if (_nodeDef.flags & 134217728
            /* TypeViewQuery */
            && _nodeDef.flags & 536870912
            /* DynamicQuery */
            ) {
              asQueryList(view, _i25).setDirty();
            } // only visit the root nodes


            _i25 += _nodeDef.childCount;
          }
        }
      }

      function checkAndUpdateQuery(view, nodeDef) {
        var queryList = asQueryList(view, nodeDef.nodeIndex);

        if (!queryList.dirty) {
          return;
        }

        var directiveInstance;
        var newValues = undefined;

        if (nodeDef.flags & 67108864
        /* TypeContentQuery */
        ) {
          var _elementDef = nodeDef.parent.parent;
          newValues = calcQueryValues(view, _elementDef.nodeIndex, _elementDef.nodeIndex + _elementDef.childCount, nodeDef.query, []);
          directiveInstance = asProviderData(view, nodeDef.parent.nodeIndex).instance;
        } else if (nodeDef.flags & 134217728
        /* TypeViewQuery */
        ) {
          newValues = calcQueryValues(view, 0, view.def.nodes.length - 1, nodeDef.query, []);
          directiveInstance = view.component;
        }

        queryList.reset(newValues);
        var bindings = nodeDef.query.bindings;
        var notify = false;

        for (var i = 0; i < bindings.length; i++) {
          var binding = bindings[i];
          var boundValue = void 0;

          switch (binding.bindingType) {
            case 0
            /* First */
            :
              boundValue = queryList.first;
              break;

            case 1
            /* All */
            :
              boundValue = queryList;
              notify = true;
              break;
          }

          directiveInstance[binding.propName] = boundValue;
        }

        if (notify) {
          queryList.notifyOnChanges();
        }
      }

      function calcQueryValues(view, startIndex, endIndex, queryDef, values) {
        for (var i = startIndex; i <= endIndex; i++) {
          var nodeDef = view.def.nodes[i];
          var valueType = nodeDef.matchedQueries[queryDef.id];

          if (valueType != null) {
            values.push(getQueryValue(view, nodeDef, valueType));
          }

          if (nodeDef.flags & 1
          /* TypeElement */
          && nodeDef.element.template && (nodeDef.element.template.nodeMatchedQueries & queryDef.filterId) === queryDef.filterId) {
            var elementData = asElementData(view, i); // check embedded views that were attached at the place of their template,
            // but process child nodes first if some match the query (see issue #16568)

            if ((nodeDef.childMatchedQueries & queryDef.filterId) === queryDef.filterId) {
              calcQueryValues(view, i + 1, i + nodeDef.childCount, queryDef, values);
              i += nodeDef.childCount;
            }

            if (nodeDef.flags & 16777216
            /* EmbeddedViews */
            ) {
              var embeddedViews = elementData.viewContainer._embeddedViews;

              for (var k = 0; k < embeddedViews.length; k++) {
                var embeddedView = embeddedViews[k];
                var dvc = declaredViewContainer(embeddedView);

                if (dvc && dvc === elementData) {
                  calcQueryValues(embeddedView, 0, embeddedView.def.nodes.length - 1, queryDef, values);
                }
              }
            }

            var projectedViews = elementData.template._projectedViews;

            if (projectedViews) {
              for (var _k = 0; _k < projectedViews.length; _k++) {
                var projectedView = projectedViews[_k];
                calcQueryValues(projectedView, 0, projectedView.def.nodes.length - 1, queryDef, values);
              }
            }
          }

          if ((nodeDef.childMatchedQueries & queryDef.filterId) !== queryDef.filterId) {
            // if no child matches the query, skip the children.
            i += nodeDef.childCount;
          }
        }

        return values;
      }

      function getQueryValue(view, nodeDef, queryValueType) {
        if (queryValueType != null) {
          // a match
          switch (queryValueType) {
            case 1
            /* RenderElement */
            :
              return asElementData(view, nodeDef.nodeIndex).renderElement;

            case 0
            /* ElementRef */
            :
              return new ElementRef(asElementData(view, nodeDef.nodeIndex).renderElement);

            case 2
            /* TemplateRef */
            :
              return asElementData(view, nodeDef.nodeIndex).template;

            case 3
            /* ViewContainerRef */
            :
              return asElementData(view, nodeDef.nodeIndex).viewContainer;

            case 4
            /* Provider */
            :
              return asProviderData(view, nodeDef.nodeIndex).instance;
          }
        }
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function ngContentDef(ngContentIndex, index) {
        return {
          // will bet set by the view definition
          nodeIndex: -1,
          parent: null,
          renderParent: null,
          bindingIndex: -1,
          outputIndex: -1,
          // regular values
          checkIndex: -1,
          flags: 8
          /* TypeNgContent */
          ,
          childFlags: 0,
          directChildFlags: 0,
          childMatchedQueries: 0,
          matchedQueries: {},
          matchedQueryIds: 0,
          references: {},
          ngContentIndex: ngContentIndex,
          childCount: 0,
          bindings: [],
          bindingFlags: 0,
          outputs: [],
          element: null,
          provider: null,
          text: null,
          query: null,
          ngContent: {
            index: index
          }
        };
      }

      function appendNgContent(view, renderHost, def) {
        var parentEl = getParentRenderElement(view, renderHost, def);

        if (!parentEl) {
          // Nothing to do if there is no parent element.
          return;
        }

        var ngContentIndex = def.ngContent.index;
        visitProjectedRenderNodes(view, ngContentIndex, 1
        /* AppendChild */
        , parentEl, null, undefined);
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function purePipeDef(checkIndex, argCount) {
        // argCount + 1 to include the pipe as first arg
        return _pureExpressionDef(128
        /* TypePurePipe */
        , checkIndex, newArray(argCount + 1));
      }

      function pureArrayDef(checkIndex, argCount) {
        return _pureExpressionDef(32
        /* TypePureArray */
        , checkIndex, newArray(argCount));
      }

      function pureObjectDef(checkIndex, propToIndex) {
        var keys = Object.keys(propToIndex);
        var nbKeys = keys.length;
        var propertyNames = [];

        for (var i = 0; i < nbKeys; i++) {
          var key = keys[i];
          var index = propToIndex[key];
          propertyNames.push(key);
        }

        return _pureExpressionDef(64
        /* TypePureObject */
        , checkIndex, propertyNames);
      }

      function _pureExpressionDef(flags, checkIndex, propertyNames) {
        var bindings = [];

        for (var i = 0; i < propertyNames.length; i++) {
          var prop = propertyNames[i];
          bindings.push({
            flags: 8
            /* TypeProperty */
            ,
            name: prop,
            ns: null,
            nonMinifiedName: prop,
            securityContext: null,
            suffix: null
          });
        }

        return {
          // will bet set by the view definition
          nodeIndex: -1,
          parent: null,
          renderParent: null,
          bindingIndex: -1,
          outputIndex: -1,
          // regular values
          checkIndex: checkIndex,
          flags: flags,
          childFlags: 0,
          directChildFlags: 0,
          childMatchedQueries: 0,
          matchedQueries: {},
          matchedQueryIds: 0,
          references: {},
          ngContentIndex: -1,
          childCount: 0,
          bindings: bindings,
          bindingFlags: calcBindingFlags(bindings),
          outputs: [],
          element: null,
          provider: null,
          text: null,
          query: null,
          ngContent: null
        };
      }

      function createPureExpression(view, def) {
        return {
          value: undefined
        };
      }

      function checkAndUpdatePureExpressionInline(view, def, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9) {
        var bindings = def.bindings;
        var changed = false;
        var bindLen = bindings.length;
        if (bindLen > 0 && checkAndUpdateBinding(view, def, 0, v0)) changed = true;
        if (bindLen > 1 && checkAndUpdateBinding(view, def, 1, v1)) changed = true;
        if (bindLen > 2 && checkAndUpdateBinding(view, def, 2, v2)) changed = true;
        if (bindLen > 3 && checkAndUpdateBinding(view, def, 3, v3)) changed = true;
        if (bindLen > 4 && checkAndUpdateBinding(view, def, 4, v4)) changed = true;
        if (bindLen > 5 && checkAndUpdateBinding(view, def, 5, v5)) changed = true;
        if (bindLen > 6 && checkAndUpdateBinding(view, def, 6, v6)) changed = true;
        if (bindLen > 7 && checkAndUpdateBinding(view, def, 7, v7)) changed = true;
        if (bindLen > 8 && checkAndUpdateBinding(view, def, 8, v8)) changed = true;
        if (bindLen > 9 && checkAndUpdateBinding(view, def, 9, v9)) changed = true;

        if (changed) {
          var data = asPureExpressionData(view, def.nodeIndex);
          var value;

          switch (def.flags & 201347067
          /* Types */
          ) {
            case 32
            /* TypePureArray */
            :
              value = [];
              if (bindLen > 0) value.push(v0);
              if (bindLen > 1) value.push(v1);
              if (bindLen > 2) value.push(v2);
              if (bindLen > 3) value.push(v3);
              if (bindLen > 4) value.push(v4);
              if (bindLen > 5) value.push(v5);
              if (bindLen > 6) value.push(v6);
              if (bindLen > 7) value.push(v7);
              if (bindLen > 8) value.push(v8);
              if (bindLen > 9) value.push(v9);
              break;

            case 64
            /* TypePureObject */
            :
              value = {};
              if (bindLen > 0) value[bindings[0].name] = v0;
              if (bindLen > 1) value[bindings[1].name] = v1;
              if (bindLen > 2) value[bindings[2].name] = v2;
              if (bindLen > 3) value[bindings[3].name] = v3;
              if (bindLen > 4) value[bindings[4].name] = v4;
              if (bindLen > 5) value[bindings[5].name] = v5;
              if (bindLen > 6) value[bindings[6].name] = v6;
              if (bindLen > 7) value[bindings[7].name] = v7;
              if (bindLen > 8) value[bindings[8].name] = v8;
              if (bindLen > 9) value[bindings[9].name] = v9;
              break;

            case 128
            /* TypePurePipe */
            :
              var pipe = v0;

              switch (bindLen) {
                case 1:
                  value = pipe.transform(v0);
                  break;

                case 2:
                  value = pipe.transform(v1);
                  break;

                case 3:
                  value = pipe.transform(v1, v2);
                  break;

                case 4:
                  value = pipe.transform(v1, v2, v3);
                  break;

                case 5:
                  value = pipe.transform(v1, v2, v3, v4);
                  break;

                case 6:
                  value = pipe.transform(v1, v2, v3, v4, v5);
                  break;

                case 7:
                  value = pipe.transform(v1, v2, v3, v4, v5, v6);
                  break;

                case 8:
                  value = pipe.transform(v1, v2, v3, v4, v5, v6, v7);
                  break;

                case 9:
                  value = pipe.transform(v1, v2, v3, v4, v5, v6, v7, v8);
                  break;

                case 10:
                  value = pipe.transform(v1, v2, v3, v4, v5, v6, v7, v8, v9);
                  break;
              }

              break;
          }

          data.value = value;
        }

        return changed;
      }

      function checkAndUpdatePureExpressionDynamic(view, def, values) {
        var bindings = def.bindings;
        var changed = false;

        for (var i = 0; i < values.length; i++) {
          // Note: We need to loop over all values, so that
          // the old values are updates as well!
          if (checkAndUpdateBinding(view, def, i, values[i])) {
            changed = true;
          }
        }

        if (changed) {
          var data = asPureExpressionData(view, def.nodeIndex);
          var value;

          switch (def.flags & 201347067
          /* Types */
          ) {
            case 32
            /* TypePureArray */
            :
              value = values;
              break;

            case 64
            /* TypePureObject */
            :
              value = {};

              for (var _i26 = 0; _i26 < values.length; _i26++) {
                value[bindings[_i26].name] = values[_i26];
              }

              break;

            case 128
            /* TypePurePipe */
            :
              var pipe = values[0];
              var params = values.slice(1);
              value = pipe.transform.apply(pipe, _toConsumableArray(params));
              break;
          }

          data.value = value;
        }

        return changed;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function textDef(checkIndex, ngContentIndex, staticText) {
        var bindings = [];

        for (var i = 1; i < staticText.length; i++) {
          bindings[i - 1] = {
            flags: 8
            /* TypeProperty */
            ,
            name: null,
            ns: null,
            nonMinifiedName: null,
            securityContext: null,
            suffix: staticText[i]
          };
        }

        return {
          // will bet set by the view definition
          nodeIndex: -1,
          parent: null,
          renderParent: null,
          bindingIndex: -1,
          outputIndex: -1,
          // regular values
          checkIndex: checkIndex,
          flags: 2
          /* TypeText */
          ,
          childFlags: 0,
          directChildFlags: 0,
          childMatchedQueries: 0,
          matchedQueries: {},
          matchedQueryIds: 0,
          references: {},
          ngContentIndex: ngContentIndex,
          childCount: 0,
          bindings: bindings,
          bindingFlags: 8
          /* TypeProperty */
          ,
          outputs: [],
          element: null,
          provider: null,
          text: {
            prefix: staticText[0]
          },
          query: null,
          ngContent: null
        };
      }

      function createText(view, renderHost, def) {
        var renderNode;
        var renderer = view.renderer;
        renderNode = renderer.createText(def.text.prefix);
        var parentEl = getParentRenderElement(view, renderHost, def);

        if (parentEl) {
          renderer.appendChild(parentEl, renderNode);
        }

        return {
          renderText: renderNode
        };
      }

      function checkAndUpdateTextInline(view, def, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9) {
        var changed = false;
        var bindings = def.bindings;
        var bindLen = bindings.length;
        if (bindLen > 0 && checkAndUpdateBinding(view, def, 0, v0)) changed = true;
        if (bindLen > 1 && checkAndUpdateBinding(view, def, 1, v1)) changed = true;
        if (bindLen > 2 && checkAndUpdateBinding(view, def, 2, v2)) changed = true;
        if (bindLen > 3 && checkAndUpdateBinding(view, def, 3, v3)) changed = true;
        if (bindLen > 4 && checkAndUpdateBinding(view, def, 4, v4)) changed = true;
        if (bindLen > 5 && checkAndUpdateBinding(view, def, 5, v5)) changed = true;
        if (bindLen > 6 && checkAndUpdateBinding(view, def, 6, v6)) changed = true;
        if (bindLen > 7 && checkAndUpdateBinding(view, def, 7, v7)) changed = true;
        if (bindLen > 8 && checkAndUpdateBinding(view, def, 8, v8)) changed = true;
        if (bindLen > 9 && checkAndUpdateBinding(view, def, 9, v9)) changed = true;

        if (changed) {
          var value = def.text.prefix;
          if (bindLen > 0) value += _addInterpolationPart(v0, bindings[0]);
          if (bindLen > 1) value += _addInterpolationPart(v1, bindings[1]);
          if (bindLen > 2) value += _addInterpolationPart(v2, bindings[2]);
          if (bindLen > 3) value += _addInterpolationPart(v3, bindings[3]);
          if (bindLen > 4) value += _addInterpolationPart(v4, bindings[4]);
          if (bindLen > 5) value += _addInterpolationPart(v5, bindings[5]);
          if (bindLen > 6) value += _addInterpolationPart(v6, bindings[6]);
          if (bindLen > 7) value += _addInterpolationPart(v7, bindings[7]);
          if (bindLen > 8) value += _addInterpolationPart(v8, bindings[8]);
          if (bindLen > 9) value += _addInterpolationPart(v9, bindings[9]);
          var _renderNode = asTextData(view, def.nodeIndex).renderText;
          view.renderer.setValue(_renderNode, value);
        }

        return changed;
      }

      function checkAndUpdateTextDynamic(view, def, values) {
        var bindings = def.bindings;
        var changed = false;

        for (var i = 0; i < values.length; i++) {
          // Note: We need to loop over all values, so that
          // the old values are updates as well!
          if (checkAndUpdateBinding(view, def, i, values[i])) {
            changed = true;
          }
        }

        if (changed) {
          var value = '';

          for (var _i27 = 0; _i27 < values.length; _i27++) {
            value = value + _addInterpolationPart(values[_i27], bindings[_i27]);
          }

          value = def.text.prefix + value;
          var _renderNode2 = asTextData(view, def.nodeIndex).renderText;
          view.renderer.setValue(_renderNode2, value);
        }

        return changed;
      }

      function _addInterpolationPart(value, binding) {
        var valueStr = value != null ? value.toString() : '';
        return valueStr + binding.suffix;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function viewDef(flags, nodes, updateDirectives, updateRenderer) {
        // clone nodes and set auto calculated values
        var viewBindingCount = 0;
        var viewDisposableCount = 0;
        var viewNodeFlags = 0;
        var viewRootNodeFlags = 0;
        var viewMatchedQueries = 0;
        var currentParent = null;
        var currentRenderParent = null;
        var currentElementHasPublicProviders = false;
        var currentElementHasPrivateProviders = false;
        var lastRenderRootNode = null;

        for (var i = 0; i < nodes.length; i++) {
          var node = nodes[i];
          node.nodeIndex = i;
          node.parent = currentParent;
          node.bindingIndex = viewBindingCount;
          node.outputIndex = viewDisposableCount;
          node.renderParent = currentRenderParent;
          viewNodeFlags |= node.flags;
          viewMatchedQueries |= node.matchedQueryIds;

          if (node.element) {
            var elDef = node.element;
            elDef.publicProviders = currentParent ? currentParent.element.publicProviders : Object.create(null);
            elDef.allProviders = elDef.publicProviders; // Note: We assume that all providers of an element are before any child element!

            currentElementHasPublicProviders = false;
            currentElementHasPrivateProviders = false;

            if (node.element.template) {
              viewMatchedQueries |= node.element.template.nodeMatchedQueries;
            }
          }

          validateNode(currentParent, node, nodes.length);
          viewBindingCount += node.bindings.length;
          viewDisposableCount += node.outputs.length;

          if (!currentRenderParent && node.flags & 3
          /* CatRenderNode */
          ) {
            lastRenderRootNode = node;
          }

          if (node.flags & 20224
          /* CatProvider */
          ) {
            if (!currentElementHasPublicProviders) {
              currentElementHasPublicProviders = true; // Use prototypical inheritance to not get O(n^2) complexity...

              currentParent.element.publicProviders = Object.create(currentParent.element.publicProviders);
              currentParent.element.allProviders = currentParent.element.publicProviders;
            }

            var isPrivateService = (node.flags & 8192
            /* PrivateProvider */
            ) !== 0;
            var isComponent = (node.flags & 32768
            /* Component */
            ) !== 0;

            if (!isPrivateService || isComponent) {
              currentParent.element.publicProviders[tokenKey(node.provider.token)] = node;
            } else {
              if (!currentElementHasPrivateProviders) {
                currentElementHasPrivateProviders = true; // Use prototypical inheritance to not get O(n^2) complexity...

                currentParent.element.allProviders = Object.create(currentParent.element.publicProviders);
              }

              currentParent.element.allProviders[tokenKey(node.provider.token)] = node;
            }

            if (isComponent) {
              currentParent.element.componentProvider = node;
            }
          }

          if (currentParent) {
            currentParent.childFlags |= node.flags;
            currentParent.directChildFlags |= node.flags;
            currentParent.childMatchedQueries |= node.matchedQueryIds;

            if (node.element && node.element.template) {
              currentParent.childMatchedQueries |= node.element.template.nodeMatchedQueries;
            }
          } else {
            viewRootNodeFlags |= node.flags;
          }

          if (node.childCount > 0) {
            currentParent = node;

            if (!isNgContainer(node)) {
              currentRenderParent = node;
            }
          } else {
            // When the current node has no children, check if it is the last children of its parent.
            // When it is, propagate the flags up.
            // The loop is required because an element could be the last transitive children of several
            // elements. We loop to either the root or the highest opened element (= with remaining
            // children)
            while (currentParent && i === currentParent.nodeIndex + currentParent.childCount) {
              var newParent = currentParent.parent;

              if (newParent) {
                newParent.childFlags |= currentParent.childFlags;
                newParent.childMatchedQueries |= currentParent.childMatchedQueries;
              }

              currentParent = newParent; // We also need to update the render parent & account for ng-container

              if (currentParent && isNgContainer(currentParent)) {
                currentRenderParent = currentParent.renderParent;
              } else {
                currentRenderParent = currentParent;
              }
            }
          }
        }

        var handleEvent = function handleEvent(view, nodeIndex, eventName, event) {
          return nodes[nodeIndex].element.handleEvent(view, eventName, event);
        };

        return {
          // Will be filled later...
          factory: null,
          nodeFlags: viewNodeFlags,
          rootNodeFlags: viewRootNodeFlags,
          nodeMatchedQueries: viewMatchedQueries,
          flags: flags,
          nodes: nodes,
          updateDirectives: updateDirectives || NOOP,
          updateRenderer: updateRenderer || NOOP,
          handleEvent: handleEvent,
          bindingCount: viewBindingCount,
          outputCount: viewDisposableCount,
          lastRenderRootNode: lastRenderRootNode
        };
      }

      function isNgContainer(node) {
        return (node.flags & 1
        /* TypeElement */
        ) !== 0 && node.element.name === null;
      }

      function validateNode(parent, node, nodeCount) {
        var template = node.element && node.element.template;

        if (template) {
          if (!template.lastRenderRootNode) {
            throw new Error("Illegal State: Embedded templates without nodes are not allowed!");
          }

          if (template.lastRenderRootNode && template.lastRenderRootNode.flags & 16777216
          /* EmbeddedViews */
          ) {
            throw new Error("Illegal State: Last root node of a template can't have embedded views, at index ".concat(node.nodeIndex, "!"));
          }
        }

        if (node.flags & 20224
        /* CatProvider */
        ) {
          var parentFlags = parent ? parent.flags : 0;

          if ((parentFlags & 1
          /* TypeElement */
          ) === 0) {
            throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index ".concat(node.nodeIndex, "!"));
          }
        }

        if (node.query) {
          if (node.flags & 67108864
          /* TypeContentQuery */
          && (!parent || (parent.flags & 16384
          /* TypeDirective */
          ) === 0)) {
            throw new Error("Illegal State: Content Query nodes need to be children of directives, at index ".concat(node.nodeIndex, "!"));
          }

          if (node.flags & 134217728
          /* TypeViewQuery */
          && parent) {
            throw new Error("Illegal State: View Query nodes have to be top level nodes, at index ".concat(node.nodeIndex, "!"));
          }
        }

        if (node.childCount) {
          var parentEnd = parent ? parent.nodeIndex + parent.childCount : nodeCount - 1;

          if (node.nodeIndex <= parentEnd && node.nodeIndex + node.childCount > parentEnd) {
            throw new Error("Illegal State: childCount of node leads outside of parent, at index ".concat(node.nodeIndex, "!"));
          }
        }
      }

      function createEmbeddedView(parent, anchorDef, viewDef, context) {
        // embedded views are seen as siblings to the anchor, so we need
        // to get the parent of the anchor and use it as parentIndex.
        var view = createView(parent.root, parent.renderer, parent, anchorDef, viewDef);
        initView(view, parent.component, context);
        createViewNodes(view);
        return view;
      }

      function createRootView(root, def, context) {
        var view = createView(root, root.renderer, null, null, def);
        initView(view, context, context);
        createViewNodes(view);
        return view;
      }

      function createComponentView(parentView, nodeDef, viewDef, hostElement) {
        var rendererType = nodeDef.element.componentRendererType;
        var compRenderer;

        if (!rendererType) {
          compRenderer = parentView.root.renderer;
        } else {
          compRenderer = parentView.root.rendererFactory.createRenderer(hostElement, rendererType);
        }

        return createView(parentView.root, compRenderer, parentView, nodeDef.element.componentProvider, viewDef);
      }

      function createView(root, renderer, parent, parentNodeDef, def) {
        var nodes = new Array(def.nodes.length);
        var disposables = def.outputCount ? new Array(def.outputCount) : null;
        var view = {
          def: def,
          parent: parent,
          viewContainerParent: null,
          parentNodeDef: parentNodeDef,
          context: null,
          component: null,
          nodes: nodes,
          state: 13
          /* CatInit */
          ,
          root: root,
          renderer: renderer,
          oldValues: new Array(def.bindingCount),
          disposables: disposables,
          initIndex: -1
        };
        return view;
      }

      function initView(view, component, context) {
        view.component = component;
        view.context = context;
      }

      function createViewNodes(view) {
        var renderHost;

        if (isComponentView(view)) {
          var hostDef = view.parentNodeDef;
          renderHost = asElementData(view.parent, hostDef.parent.nodeIndex).renderElement;
        }

        var def = view.def;
        var nodes = view.nodes;

        for (var i = 0; i < def.nodes.length; i++) {
          var nodeDef = def.nodes[i];
          Services.setCurrentNode(view, i);
          var nodeData = void 0;

          switch (nodeDef.flags & 201347067
          /* Types */
          ) {
            case 1
            /* TypeElement */
            :
              var el = createElement(view, renderHost, nodeDef);
              var componentView = undefined;

              if (nodeDef.flags & 33554432
              /* ComponentView */
              ) {
                var compViewDef = resolveDefinition(nodeDef.element.componentView);
                componentView = Services.createComponentView(view, nodeDef, compViewDef, el);
              }

              listenToElementOutputs(view, componentView, nodeDef, el);
              nodeData = {
                renderElement: el,
                componentView: componentView,
                viewContainer: null,
                template: nodeDef.element.template ? createTemplateData(view, nodeDef) : undefined
              };

              if (nodeDef.flags & 16777216
              /* EmbeddedViews */
              ) {
                nodeData.viewContainer = createViewContainerData(view, nodeDef, nodeData);
              }

              break;

            case 2
            /* TypeText */
            :
              nodeData = createText(view, renderHost, nodeDef);
              break;

            case 512
            /* TypeClassProvider */
            :
            case 1024
            /* TypeFactoryProvider */
            :
            case 2048
            /* TypeUseExistingProvider */
            :
            case 256
            /* TypeValueProvider */
            :
              {
                nodeData = nodes[i];

                if (!nodeData && !(nodeDef.flags & 4096
                /* LazyProvider */
                )) {
                  var instance = createProviderInstance(view, nodeDef);
                  nodeData = {
                    instance: instance
                  };
                }

                break;
              }

            case 16
            /* TypePipe */
            :
              {
                var _instance = createPipeInstance(view, nodeDef);

                nodeData = {
                  instance: _instance
                };
                break;
              }

            case 16384
            /* TypeDirective */
            :
              {
                nodeData = nodes[i];

                if (!nodeData) {
                  var _instance2 = createDirectiveInstance(view, nodeDef);

                  nodeData = {
                    instance: _instance2
                  };
                }

                if (nodeDef.flags & 32768
                /* Component */
                ) {
                  var compView = asElementData(view, nodeDef.parent.nodeIndex).componentView;
                  initView(compView, nodeData.instance, nodeData.instance);
                }

                break;
              }

            case 32
            /* TypePureArray */
            :
            case 64
            /* TypePureObject */
            :
            case 128
            /* TypePurePipe */
            :
              nodeData = createPureExpression(view, nodeDef);
              break;

            case 67108864
            /* TypeContentQuery */
            :
            case 134217728
            /* TypeViewQuery */
            :
              nodeData = createQuery();
              break;

            case 8
            /* TypeNgContent */
            :
              appendNgContent(view, renderHost, nodeDef); // no runtime data needed for NgContent...

              nodeData = undefined;
              break;
          }

          nodes[i] = nodeData;
        } // Create the ViewData.nodes of component views after we created everything else,
        // so that e.g. ng-content works


        execComponentViewsAction(view, ViewAction.CreateViewNodes); // fill static content and view queries

        execQueriesAction(view, 67108864
        /* TypeContentQuery */
        | 134217728
        /* TypeViewQuery */
        , 268435456
        /* StaticQuery */
        , 0
        /* CheckAndUpdate */
        );
      }

      function checkNoChangesView(view) {
        markProjectedViewsForCheck(view);
        Services.updateDirectives(view, 1
        /* CheckNoChanges */
        );
        execEmbeddedViewsAction(view, ViewAction.CheckNoChanges);
        Services.updateRenderer(view, 1
        /* CheckNoChanges */
        );
        execComponentViewsAction(view, ViewAction.CheckNoChanges); // Note: We don't check queries for changes as we didn't do this in v2.x.
        // TODO(tbosch): investigate if we can enable the check again in v5.x with a nicer error message.

        view.state &= ~(64
        /* CheckProjectedViews */
        | 32
        /* CheckProjectedView */
        );
      }

      function checkAndUpdateView(view) {
        if (view.state & 1
        /* BeforeFirstCheck */
        ) {
          view.state &= ~1
          /* BeforeFirstCheck */
          ;
          view.state |= 2
          /* FirstCheck */
          ;
        } else {
          view.state &= ~2
          /* FirstCheck */
          ;
        }

        shiftInitState(view, 0
        /* InitState_BeforeInit */
        , 256
        /* InitState_CallingOnInit */
        );
        markProjectedViewsForCheck(view);
        Services.updateDirectives(view, 0
        /* CheckAndUpdate */
        );
        execEmbeddedViewsAction(view, ViewAction.CheckAndUpdate);
        execQueriesAction(view, 67108864
        /* TypeContentQuery */
        , 536870912
        /* DynamicQuery */
        , 0
        /* CheckAndUpdate */
        );
        var callInit = shiftInitState(view, 256
        /* InitState_CallingOnInit */
        , 512
        /* InitState_CallingAfterContentInit */
        );
        callLifecycleHooksChildrenFirst(view, 2097152
        /* AfterContentChecked */
        | (callInit ? 1048576
        /* AfterContentInit */
        : 0));
        Services.updateRenderer(view, 0
        /* CheckAndUpdate */
        );
        execComponentViewsAction(view, ViewAction.CheckAndUpdate);
        execQueriesAction(view, 134217728
        /* TypeViewQuery */
        , 536870912
        /* DynamicQuery */
        , 0
        /* CheckAndUpdate */
        );
        callInit = shiftInitState(view, 512
        /* InitState_CallingAfterContentInit */
        , 768
        /* InitState_CallingAfterViewInit */
        );
        callLifecycleHooksChildrenFirst(view, 8388608
        /* AfterViewChecked */
        | (callInit ? 4194304
        /* AfterViewInit */
        : 0));

        if (view.def.flags & 2
        /* OnPush */
        ) {
          view.state &= ~8
          /* ChecksEnabled */
          ;
        }

        view.state &= ~(64
        /* CheckProjectedViews */
        | 32
        /* CheckProjectedView */
        );
        shiftInitState(view, 768
        /* InitState_CallingAfterViewInit */
        , 1024
        /* InitState_AfterInit */
        );
      }

      function checkAndUpdateNode(view, nodeDef, argStyle, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9) {
        if (argStyle === 0
        /* Inline */
        ) {
          return checkAndUpdateNodeInline(view, nodeDef, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9);
        } else {
          return checkAndUpdateNodeDynamic(view, nodeDef, v0);
        }
      }

      function markProjectedViewsForCheck(view) {
        var def = view.def;

        if (!(def.nodeFlags & 4
        /* ProjectedTemplate */
        )) {
          return;
        }

        for (var i = 0; i < def.nodes.length; i++) {
          var nodeDef = def.nodes[i];

          if (nodeDef.flags & 4
          /* ProjectedTemplate */
          ) {
            var projectedViews = asElementData(view, i).template._projectedViews;

            if (projectedViews) {
              for (var _i28 = 0; _i28 < projectedViews.length; _i28++) {
                var projectedView = projectedViews[_i28];
                projectedView.state |= 32
                /* CheckProjectedView */
                ;
                markParentViewsForCheckProjectedViews(projectedView, view);
              }
            }
          } else if ((nodeDef.childFlags & 4
          /* ProjectedTemplate */
          ) === 0) {
            // a parent with leafs
            // no child is a component,
            // then skip the children
            i += nodeDef.childCount;
          }
        }
      }

      function checkAndUpdateNodeInline(view, nodeDef, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9) {
        switch (nodeDef.flags & 201347067
        /* Types */
        ) {
          case 1
          /* TypeElement */
          :
            return checkAndUpdateElementInline(view, nodeDef, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9);

          case 2
          /* TypeText */
          :
            return checkAndUpdateTextInline(view, nodeDef, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9);

          case 16384
          /* TypeDirective */
          :
            return checkAndUpdateDirectiveInline(view, nodeDef, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9);

          case 32
          /* TypePureArray */
          :
          case 64
          /* TypePureObject */
          :
          case 128
          /* TypePurePipe */
          :
            return checkAndUpdatePureExpressionInline(view, nodeDef, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9);

          default:
            throw 'unreachable';
        }
      }

      function checkAndUpdateNodeDynamic(view, nodeDef, values) {
        switch (nodeDef.flags & 201347067
        /* Types */
        ) {
          case 1
          /* TypeElement */
          :
            return checkAndUpdateElementDynamic(view, nodeDef, values);

          case 2
          /* TypeText */
          :
            return checkAndUpdateTextDynamic(view, nodeDef, values);

          case 16384
          /* TypeDirective */
          :
            return checkAndUpdateDirectiveDynamic(view, nodeDef, values);

          case 32
          /* TypePureArray */
          :
          case 64
          /* TypePureObject */
          :
          case 128
          /* TypePurePipe */
          :
            return checkAndUpdatePureExpressionDynamic(view, nodeDef, values);

          default:
            throw 'unreachable';
        }
      }

      function checkNoChangesNode(view, nodeDef, argStyle, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9) {
        if (argStyle === 0
        /* Inline */
        ) {
          checkNoChangesNodeInline(view, nodeDef, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9);
        } else {
          checkNoChangesNodeDynamic(view, nodeDef, v0);
        } // Returning false is ok here as we would have thrown in case of a change.


        return false;
      }

      function checkNoChangesNodeInline(view, nodeDef, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9) {
        var bindLen = nodeDef.bindings.length;
        if (bindLen > 0) checkBindingNoChanges(view, nodeDef, 0, v0);
        if (bindLen > 1) checkBindingNoChanges(view, nodeDef, 1, v1);
        if (bindLen > 2) checkBindingNoChanges(view, nodeDef, 2, v2);
        if (bindLen > 3) checkBindingNoChanges(view, nodeDef, 3, v3);
        if (bindLen > 4) checkBindingNoChanges(view, nodeDef, 4, v4);
        if (bindLen > 5) checkBindingNoChanges(view, nodeDef, 5, v5);
        if (bindLen > 6) checkBindingNoChanges(view, nodeDef, 6, v6);
        if (bindLen > 7) checkBindingNoChanges(view, nodeDef, 7, v7);
        if (bindLen > 8) checkBindingNoChanges(view, nodeDef, 8, v8);
        if (bindLen > 9) checkBindingNoChanges(view, nodeDef, 9, v9);
      }

      function checkNoChangesNodeDynamic(view, nodeDef, values) {
        for (var i = 0; i < values.length; i++) {
          checkBindingNoChanges(view, nodeDef, i, values[i]);
        }
      }
      /**
       * Workaround https://github.com/angular/tsickle/issues/497
       * @suppress {misplacedTypeAnnotation}
       */


      function checkNoChangesQuery(view, nodeDef) {
        var queryList = asQueryList(view, nodeDef.nodeIndex);

        if (queryList.dirty) {
          throw expressionChangedAfterItHasBeenCheckedError(Services.createDebugContext(view, nodeDef.nodeIndex), "Query ".concat(nodeDef.query.id, " not dirty"), "Query ".concat(nodeDef.query.id, " dirty"), (view.state & 1
          /* BeforeFirstCheck */
          ) !== 0);
        }
      }

      function destroyView(view) {
        if (view.state & 128
        /* Destroyed */
        ) {
          return;
        }

        execEmbeddedViewsAction(view, ViewAction.Destroy);
        execComponentViewsAction(view, ViewAction.Destroy);
        callLifecycleHooksChildrenFirst(view, 131072
        /* OnDestroy */
        );

        if (view.disposables) {
          for (var i = 0; i < view.disposables.length; i++) {
            view.disposables[i]();
          }
        }

        detachProjectedView(view);

        if (view.renderer.destroyNode) {
          destroyViewNodes(view);
        }

        if (isComponentView(view)) {
          view.renderer.destroy();
        }

        view.state |= 128
        /* Destroyed */
        ;
      }

      function destroyViewNodes(view) {
        var len = view.def.nodes.length;

        for (var i = 0; i < len; i++) {
          var def = view.def.nodes[i];

          if (def.flags & 1
          /* TypeElement */
          ) {
            view.renderer.destroyNode(asElementData(view, i).renderElement);
          } else if (def.flags & 2
          /* TypeText */
          ) {
            view.renderer.destroyNode(asTextData(view, i).renderText);
          } else if (def.flags & 67108864
          /* TypeContentQuery */
          || def.flags & 134217728
          /* TypeViewQuery */
          ) {
            asQueryList(view, i).destroy();
          }
        }
      }

      var ViewAction;

      (function (ViewAction) {
        ViewAction[ViewAction["CreateViewNodes"] = 0] = "CreateViewNodes";
        ViewAction[ViewAction["CheckNoChanges"] = 1] = "CheckNoChanges";
        ViewAction[ViewAction["CheckNoChangesProjectedViews"] = 2] = "CheckNoChangesProjectedViews";
        ViewAction[ViewAction["CheckAndUpdate"] = 3] = "CheckAndUpdate";
        ViewAction[ViewAction["CheckAndUpdateProjectedViews"] = 4] = "CheckAndUpdateProjectedViews";
        ViewAction[ViewAction["Destroy"] = 5] = "Destroy";
      })(ViewAction || (ViewAction = {}));

      function execComponentViewsAction(view, action) {
        var def = view.def;

        if (!(def.nodeFlags & 33554432
        /* ComponentView */
        )) {
          return;
        }

        for (var i = 0; i < def.nodes.length; i++) {
          var nodeDef = def.nodes[i];

          if (nodeDef.flags & 33554432
          /* ComponentView */
          ) {
            // a leaf
            callViewAction(asElementData(view, i).componentView, action);
          } else if ((nodeDef.childFlags & 33554432
          /* ComponentView */
          ) === 0) {
            // a parent with leafs
            // no child is a component,
            // then skip the children
            i += nodeDef.childCount;
          }
        }
      }

      function execEmbeddedViewsAction(view, action) {
        var def = view.def;

        if (!(def.nodeFlags & 16777216
        /* EmbeddedViews */
        )) {
          return;
        }

        for (var i = 0; i < def.nodes.length; i++) {
          var nodeDef = def.nodes[i];

          if (nodeDef.flags & 16777216
          /* EmbeddedViews */
          ) {
            // a leaf
            var embeddedViews = asElementData(view, i).viewContainer._embeddedViews;

            for (var k = 0; k < embeddedViews.length; k++) {
              callViewAction(embeddedViews[k], action);
            }
          } else if ((nodeDef.childFlags & 16777216
          /* EmbeddedViews */
          ) === 0) {
            // a parent with leafs
            // no child is a component,
            // then skip the children
            i += nodeDef.childCount;
          }
        }
      }

      function callViewAction(view, action) {
        var viewState = view.state;

        switch (action) {
          case ViewAction.CheckNoChanges:
            if ((viewState & 128
            /* Destroyed */
            ) === 0) {
              if ((viewState & 12
              /* CatDetectChanges */
              ) === 12
              /* CatDetectChanges */
              ) {
                checkNoChangesView(view);
              } else if (viewState & 64
              /* CheckProjectedViews */
              ) {
                execProjectedViewsAction(view, ViewAction.CheckNoChangesProjectedViews);
              }
            }

            break;

          case ViewAction.CheckNoChangesProjectedViews:
            if ((viewState & 128
            /* Destroyed */
            ) === 0) {
              if (viewState & 32
              /* CheckProjectedView */
              ) {
                checkNoChangesView(view);
              } else if (viewState & 64
              /* CheckProjectedViews */
              ) {
                execProjectedViewsAction(view, action);
              }
            }

            break;

          case ViewAction.CheckAndUpdate:
            if ((viewState & 128
            /* Destroyed */
            ) === 0) {
              if ((viewState & 12
              /* CatDetectChanges */
              ) === 12
              /* CatDetectChanges */
              ) {
                checkAndUpdateView(view);
              } else if (viewState & 64
              /* CheckProjectedViews */
              ) {
                execProjectedViewsAction(view, ViewAction.CheckAndUpdateProjectedViews);
              }
            }

            break;

          case ViewAction.CheckAndUpdateProjectedViews:
            if ((viewState & 128
            /* Destroyed */
            ) === 0) {
              if (viewState & 32
              /* CheckProjectedView */
              ) {
                checkAndUpdateView(view);
              } else if (viewState & 64
              /* CheckProjectedViews */
              ) {
                execProjectedViewsAction(view, action);
              }
            }

            break;

          case ViewAction.Destroy:
            // Note: destroyView recurses over all views,
            // so we don't need to special case projected views here.
            destroyView(view);
            break;

          case ViewAction.CreateViewNodes:
            createViewNodes(view);
            break;
        }
      }

      function execProjectedViewsAction(view, action) {
        execEmbeddedViewsAction(view, action);
        execComponentViewsAction(view, action);
      }

      function execQueriesAction(view, queryFlags, staticDynamicQueryFlag, checkType) {
        if (!(view.def.nodeFlags & queryFlags) || !(view.def.nodeFlags & staticDynamicQueryFlag)) {
          return;
        }

        var nodeCount = view.def.nodes.length;

        for (var i = 0; i < nodeCount; i++) {
          var nodeDef = view.def.nodes[i];

          if (nodeDef.flags & queryFlags && nodeDef.flags & staticDynamicQueryFlag) {
            Services.setCurrentNode(view, nodeDef.nodeIndex);

            switch (checkType) {
              case 0
              /* CheckAndUpdate */
              :
                checkAndUpdateQuery(view, nodeDef);
                break;

              case 1
              /* CheckNoChanges */
              :
                checkNoChangesQuery(view, nodeDef);
                break;
            }
          }

          if (!(nodeDef.childFlags & queryFlags) || !(nodeDef.childFlags & staticDynamicQueryFlag)) {
            // no child has a matching query
            // then skip the children
            i += nodeDef.childCount;
          }
        }
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var initialized = false;

      function initServicesIfNeeded() {
        if (initialized) {
          return;
        }

        initialized = true;
        var services = isDevMode() ? createDebugServices() : createProdServices();
        Services.setCurrentNode = services.setCurrentNode;
        Services.createRootView = services.createRootView;
        Services.createEmbeddedView = services.createEmbeddedView;
        Services.createComponentView = services.createComponentView;
        Services.createNgModuleRef = services.createNgModuleRef;
        Services.overrideProvider = services.overrideProvider;
        Services.overrideComponentView = services.overrideComponentView;
        Services.clearOverrides = services.clearOverrides;
        Services.checkAndUpdateView = services.checkAndUpdateView;
        Services.checkNoChangesView = services.checkNoChangesView;
        Services.destroyView = services.destroyView;
        Services.resolveDep = resolveDep;
        Services.createDebugContext = services.createDebugContext;
        Services.handleEvent = services.handleEvent;
        Services.updateDirectives = services.updateDirectives;
        Services.updateRenderer = services.updateRenderer;
        Services.dirtyParentQueries = dirtyParentQueries;
      }

      function createProdServices() {
        return {
          setCurrentNode: function setCurrentNode() {},
          createRootView: createProdRootView,
          createEmbeddedView: createEmbeddedView,
          createComponentView: createComponentView,
          createNgModuleRef: createNgModuleRef,
          overrideProvider: NOOP,
          overrideComponentView: NOOP,
          clearOverrides: NOOP,
          checkAndUpdateView: checkAndUpdateView,
          checkNoChangesView: checkNoChangesView,
          destroyView: destroyView,
          createDebugContext: function createDebugContext(view, nodeIndex) {
            return new DebugContext_(view, nodeIndex);
          },
          handleEvent: function handleEvent(view, nodeIndex, eventName, event) {
            return view.def.handleEvent(view, nodeIndex, eventName, event);
          },
          updateDirectives: function updateDirectives(view, checkType) {
            return view.def.updateDirectives(checkType === 0
            /* CheckAndUpdate */
            ? prodCheckAndUpdateNode : prodCheckNoChangesNode, view);
          },
          updateRenderer: function updateRenderer(view, checkType) {
            return view.def.updateRenderer(checkType === 0
            /* CheckAndUpdate */
            ? prodCheckAndUpdateNode : prodCheckNoChangesNode, view);
          }
        };
      }

      function createDebugServices() {
        return {
          setCurrentNode: debugSetCurrentNode,
          createRootView: debugCreateRootView,
          createEmbeddedView: debugCreateEmbeddedView,
          createComponentView: debugCreateComponentView,
          createNgModuleRef: debugCreateNgModuleRef,
          overrideProvider: debugOverrideProvider,
          overrideComponentView: debugOverrideComponentView,
          clearOverrides: debugClearOverrides,
          checkAndUpdateView: debugCheckAndUpdateView,
          checkNoChangesView: debugCheckNoChangesView,
          destroyView: debugDestroyView,
          createDebugContext: function createDebugContext(view, nodeIndex) {
            return new DebugContext_(view, nodeIndex);
          },
          handleEvent: debugHandleEvent,
          updateDirectives: debugUpdateDirectives,
          updateRenderer: debugUpdateRenderer
        };
      }

      function createProdRootView(elInjector, projectableNodes, rootSelectorOrNode, def, ngModule, context) {
        var rendererFactory = ngModule.injector.get(RendererFactory2);
        return createRootView(createRootData(elInjector, ngModule, rendererFactory, projectableNodes, rootSelectorOrNode), def, context);
      }

      function debugCreateRootView(elInjector, projectableNodes, rootSelectorOrNode, def, ngModule, context) {
        var rendererFactory = ngModule.injector.get(RendererFactory2);
        var root = createRootData(elInjector, ngModule, new DebugRendererFactory2(rendererFactory), projectableNodes, rootSelectorOrNode);
        var defWithOverride = applyProviderOverridesToView(def);
        return callWithDebugContext(DebugAction.create, createRootView, null, [root, defWithOverride, context]);
      }

      function createRootData(elInjector, ngModule, rendererFactory, projectableNodes, rootSelectorOrNode) {
        var sanitizer = ngModule.injector.get(Sanitizer);
        var errorHandler = ngModule.injector.get(ErrorHandler);
        var renderer = rendererFactory.createRenderer(null, null);
        return {
          ngModule: ngModule,
          injector: elInjector,
          projectableNodes: projectableNodes,
          selectorOrNode: rootSelectorOrNode,
          sanitizer: sanitizer,
          rendererFactory: rendererFactory,
          renderer: renderer,
          errorHandler: errorHandler
        };
      }

      function debugCreateEmbeddedView(parentView, anchorDef, viewDef, context) {
        var defWithOverride = applyProviderOverridesToView(viewDef);
        return callWithDebugContext(DebugAction.create, createEmbeddedView, null, [parentView, anchorDef, defWithOverride, context]);
      }

      function debugCreateComponentView(parentView, nodeDef, viewDef, hostElement) {
        var overrideComponentView = viewDefOverrides.get(nodeDef.element.componentProvider.provider.token);

        if (overrideComponentView) {
          viewDef = overrideComponentView;
        } else {
          viewDef = applyProviderOverridesToView(viewDef);
        }

        return callWithDebugContext(DebugAction.create, createComponentView, null, [parentView, nodeDef, viewDef, hostElement]);
      }

      function debugCreateNgModuleRef(moduleType, parentInjector, bootstrapComponents, def) {
        var defWithOverride = applyProviderOverridesToNgModule(def);
        return createNgModuleRef(moduleType, parentInjector, bootstrapComponents, defWithOverride);
      }

      var providerOverrides = new Map();
      var providerOverridesWithScope = new Map();
      var viewDefOverrides = new Map();

      function debugOverrideProvider(override) {
        providerOverrides.set(override.token, override);
        var injectableDef;

        if (typeof override.token === 'function' && (injectableDef = getInjectableDef(override.token)) && typeof injectableDef.providedIn === 'function') {
          providerOverridesWithScope.set(override.token, override);
        }
      }

      function debugOverrideComponentView(comp, compFactory) {
        var hostViewDef = resolveDefinition(getComponentViewDefinitionFactory(compFactory));
        var compViewDef = resolveDefinition(hostViewDef.nodes[0].element.componentView);
        viewDefOverrides.set(comp, compViewDef);
      }

      function debugClearOverrides() {
        providerOverrides.clear();
        providerOverridesWithScope.clear();
        viewDefOverrides.clear();
      } // Notes about the algorithm:
      // 1) Locate the providers of an element and check if one of them was overwritten
      // 2) Change the providers of that element
      //
      // We only create new datastructures if we need to, to keep perf impact
      // reasonable.


      function applyProviderOverridesToView(def) {
        if (providerOverrides.size === 0) {
          return def;
        }

        var elementIndicesWithOverwrittenProviders = findElementIndicesWithOverwrittenProviders(def);

        if (elementIndicesWithOverwrittenProviders.length === 0) {
          return def;
        } // clone the whole view definition,
        // as it maintains references between the nodes that are hard to update.


        def = def.factory(function () {
          return NOOP;
        });

        for (var i = 0; i < elementIndicesWithOverwrittenProviders.length; i++) {
          applyProviderOverridesToElement(def, elementIndicesWithOverwrittenProviders[i]);
        }

        return def;

        function findElementIndicesWithOverwrittenProviders(def) {
          var elIndicesWithOverwrittenProviders = [];
          var lastElementDef = null;

          for (var _i29 = 0; _i29 < def.nodes.length; _i29++) {
            var nodeDef = def.nodes[_i29];

            if (nodeDef.flags & 1
            /* TypeElement */
            ) {
              lastElementDef = nodeDef;
            }

            if (lastElementDef && nodeDef.flags & 3840
            /* CatProviderNoDirective */
            && providerOverrides.has(nodeDef.provider.token)) {
              elIndicesWithOverwrittenProviders.push(lastElementDef.nodeIndex);
              lastElementDef = null;
            }
          }

          return elIndicesWithOverwrittenProviders;
        }

        function applyProviderOverridesToElement(viewDef, elIndex) {
          for (var _i30 = elIndex + 1; _i30 < viewDef.nodes.length; _i30++) {
            var nodeDef = viewDef.nodes[_i30];

            if (nodeDef.flags & 1
            /* TypeElement */
            ) {
              // stop at the next element
              return;
            }

            if (nodeDef.flags & 3840
            /* CatProviderNoDirective */
            ) {
              var provider = nodeDef.provider;
              var override = providerOverrides.get(provider.token);

              if (override) {
                nodeDef.flags = nodeDef.flags & ~3840
                /* CatProviderNoDirective */
                | override.flags;
                provider.deps = splitDepsDsl(override.deps);
                provider.value = override.value;
              }
            }
          }
        }
      } // Notes about the algorithm:
      // We only create new datastructures if we need to, to keep perf impact
      // reasonable.


      function applyProviderOverridesToNgModule(def) {
        var _calcHasOverrides = calcHasOverrides(def),
            hasOverrides = _calcHasOverrides.hasOverrides,
            hasDeprecatedOverrides = _calcHasOverrides.hasDeprecatedOverrides;

        if (!hasOverrides) {
          return def;
        } // clone the whole view definition,
        // as it maintains references between the nodes that are hard to update.


        def = def.factory(function () {
          return NOOP;
        });
        applyProviderOverrides(def);
        return def;

        function calcHasOverrides(def) {
          var hasOverrides = false;
          var hasDeprecatedOverrides = false;

          if (providerOverrides.size === 0) {
            return {
              hasOverrides: hasOverrides,
              hasDeprecatedOverrides: hasDeprecatedOverrides
            };
          }

          def.providers.forEach(function (node) {
            var override = providerOverrides.get(node.token);

            if (node.flags & 3840
            /* CatProviderNoDirective */
            && override) {
              hasOverrides = true;
              hasDeprecatedOverrides = hasDeprecatedOverrides || override.deprecatedBehavior;
            }
          });
          def.modules.forEach(function (module) {
            providerOverridesWithScope.forEach(function (override, token) {
              if (getInjectableDef(token).providedIn === module) {
                hasOverrides = true;
                hasDeprecatedOverrides = hasDeprecatedOverrides || override.deprecatedBehavior;
              }
            });
          });
          return {
            hasOverrides: hasOverrides,
            hasDeprecatedOverrides: hasDeprecatedOverrides
          };
        }

        function applyProviderOverrides(def) {
          for (var i = 0; i < def.providers.length; i++) {
            var provider = def.providers[i];

            if (hasDeprecatedOverrides) {
              // We had a bug where me made
              // all providers lazy. Keep this logic behind a flag
              // for migrating existing users.
              provider.flags |= 4096
              /* LazyProvider */
              ;
            }

            var override = providerOverrides.get(provider.token);

            if (override) {
              provider.flags = provider.flags & ~3840
              /* CatProviderNoDirective */
              | override.flags;
              provider.deps = splitDepsDsl(override.deps);
              provider.value = override.value;
            }
          }

          if (providerOverridesWithScope.size > 0) {
            var moduleSet = new Set(def.modules);
            providerOverridesWithScope.forEach(function (override, token) {
              if (moduleSet.has(getInjectableDef(token).providedIn)) {
                var _provider = {
                  token: token,
                  flags: override.flags | (hasDeprecatedOverrides ? 4096
                  /* LazyProvider */
                  : 0
                  /* None */
                  ),
                  deps: splitDepsDsl(override.deps),
                  value: override.value,
                  index: def.providers.length
                };
                def.providers.push(_provider);
                def.providersByKey[tokenKey(token)] = _provider;
              }
            });
          }
        }
      }

      function prodCheckAndUpdateNode(view, checkIndex, argStyle, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9) {
        var nodeDef = view.def.nodes[checkIndex];
        checkAndUpdateNode(view, nodeDef, argStyle, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9);
        return nodeDef.flags & 224
        /* CatPureExpression */
        ? asPureExpressionData(view, checkIndex).value : undefined;
      }

      function prodCheckNoChangesNode(view, checkIndex, argStyle, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9) {
        var nodeDef = view.def.nodes[checkIndex];
        checkNoChangesNode(view, nodeDef, argStyle, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9);
        return nodeDef.flags & 224
        /* CatPureExpression */
        ? asPureExpressionData(view, checkIndex).value : undefined;
      }

      function debugCheckAndUpdateView(view) {
        return callWithDebugContext(DebugAction.detectChanges, checkAndUpdateView, null, [view]);
      }

      function debugCheckNoChangesView(view) {
        return callWithDebugContext(DebugAction.checkNoChanges, checkNoChangesView, null, [view]);
      }

      function debugDestroyView(view) {
        return callWithDebugContext(DebugAction.destroy, destroyView, null, [view]);
      }

      var DebugAction;

      (function (DebugAction) {
        DebugAction[DebugAction["create"] = 0] = "create";
        DebugAction[DebugAction["detectChanges"] = 1] = "detectChanges";
        DebugAction[DebugAction["checkNoChanges"] = 2] = "checkNoChanges";
        DebugAction[DebugAction["destroy"] = 3] = "destroy";
        DebugAction[DebugAction["handleEvent"] = 4] = "handleEvent";
      })(DebugAction || (DebugAction = {}));

      var _currentAction;

      var _currentView;

      var _currentNodeIndex;

      function debugSetCurrentNode(view, nodeIndex) {
        _currentView = view;
        _currentNodeIndex = nodeIndex;
      }

      function debugHandleEvent(view, nodeIndex, eventName, event) {
        debugSetCurrentNode(view, nodeIndex);
        return callWithDebugContext(DebugAction.handleEvent, view.def.handleEvent, null, [view, nodeIndex, eventName, event]);
      }

      function debugUpdateDirectives(view, checkType) {
        if (view.state & 128
        /* Destroyed */
        ) {
          throw viewDestroyedError(DebugAction[_currentAction]);
        }

        debugSetCurrentNode(view, nextDirectiveWithBinding(view, 0));
        return view.def.updateDirectives(debugCheckDirectivesFn, view);

        function debugCheckDirectivesFn(view, nodeIndex, argStyle) {
          var nodeDef = view.def.nodes[nodeIndex];

          for (var _len28 = arguments.length, values = new Array(_len28 > 3 ? _len28 - 3 : 0), _key29 = 3; _key29 < _len28; _key29++) {
            values[_key29 - 3] = arguments[_key29];
          }

          if (checkType === 0
          /* CheckAndUpdate */
          ) {
            debugCheckAndUpdateNode(view, nodeDef, argStyle, values);
          } else {
            debugCheckNoChangesNode(view, nodeDef, argStyle, values);
          }

          if (nodeDef.flags & 16384
          /* TypeDirective */
          ) {
            debugSetCurrentNode(view, nextDirectiveWithBinding(view, nodeIndex));
          }

          return nodeDef.flags & 224
          /* CatPureExpression */
          ? asPureExpressionData(view, nodeDef.nodeIndex).value : undefined;
        }
      }

      function debugUpdateRenderer(view, checkType) {
        if (view.state & 128
        /* Destroyed */
        ) {
          throw viewDestroyedError(DebugAction[_currentAction]);
        }

        debugSetCurrentNode(view, nextRenderNodeWithBinding(view, 0));
        return view.def.updateRenderer(debugCheckRenderNodeFn, view);

        function debugCheckRenderNodeFn(view, nodeIndex, argStyle) {
          var nodeDef = view.def.nodes[nodeIndex];

          for (var _len29 = arguments.length, values = new Array(_len29 > 3 ? _len29 - 3 : 0), _key30 = 3; _key30 < _len29; _key30++) {
            values[_key30 - 3] = arguments[_key30];
          }

          if (checkType === 0
          /* CheckAndUpdate */
          ) {
            debugCheckAndUpdateNode(view, nodeDef, argStyle, values);
          } else {
            debugCheckNoChangesNode(view, nodeDef, argStyle, values);
          }

          if (nodeDef.flags & 3
          /* CatRenderNode */
          ) {
            debugSetCurrentNode(view, nextRenderNodeWithBinding(view, nodeIndex));
          }

          return nodeDef.flags & 224
          /* CatPureExpression */
          ? asPureExpressionData(view, nodeDef.nodeIndex).value : undefined;
        }
      }

      function debugCheckAndUpdateNode(view, nodeDef, argStyle, givenValues) {
        var changed = checkAndUpdateNode.apply(void 0, [view, nodeDef, argStyle].concat(_toConsumableArray(givenValues)));

        if (changed) {
          var values = argStyle === 1
          /* Dynamic */
          ? givenValues[0] : givenValues;

          if (nodeDef.flags & 16384
          /* TypeDirective */
          ) {
            var bindingValues = {};

            for (var i = 0; i < nodeDef.bindings.length; i++) {
              var binding = nodeDef.bindings[i];
              var value = values[i];

              if (binding.flags & 8
              /* TypeProperty */
              ) {
                bindingValues[normalizeDebugBindingName(binding.nonMinifiedName)] = normalizeDebugBindingValue(value);
              }
            }

            var elDef = nodeDef.parent;
            var el = asElementData(view, elDef.nodeIndex).renderElement;

            if (!elDef.element.name) {
              // a comment.
              view.renderer.setValue(el, "bindings=".concat(JSON.stringify(bindingValues, null, 2)));
            } else {
              // a regular element.
              for (var attr in bindingValues) {
                var _value11 = bindingValues[attr];

                if (_value11 != null) {
                  view.renderer.setAttribute(el, attr, _value11);
                } else {
                  view.renderer.removeAttribute(el, attr);
                }
              }
            }
          }
        }
      }

      function debugCheckNoChangesNode(view, nodeDef, argStyle, values) {
        checkNoChangesNode.apply(void 0, [view, nodeDef, argStyle].concat(_toConsumableArray(values)));
      }

      function nextDirectiveWithBinding(view, nodeIndex) {
        for (var i = nodeIndex; i < view.def.nodes.length; i++) {
          var nodeDef = view.def.nodes[i];

          if (nodeDef.flags & 16384
          /* TypeDirective */
          && nodeDef.bindings && nodeDef.bindings.length) {
            return i;
          }
        }

        return null;
      }

      function nextRenderNodeWithBinding(view, nodeIndex) {
        for (var i = nodeIndex; i < view.def.nodes.length; i++) {
          var nodeDef = view.def.nodes[i];

          if (nodeDef.flags & 3
          /* CatRenderNode */
          && nodeDef.bindings && nodeDef.bindings.length) {
            return i;
          }
        }

        return null;
      }

      var DebugContext_ = /*#__PURE__*/function () {
        function DebugContext_(view, nodeIndex) {
          _classCallCheck2(this, DebugContext_);

          this.view = view;
          this.nodeIndex = nodeIndex;

          if (nodeIndex == null) {
            this.nodeIndex = nodeIndex = 0;
          }

          this.nodeDef = view.def.nodes[nodeIndex];
          var elDef = this.nodeDef;
          var elView = view;

          while (elDef && (elDef.flags & 1
          /* TypeElement */
          ) === 0) {
            elDef = elDef.parent;
          }

          if (!elDef) {
            while (!elDef && elView) {
              elDef = viewParentEl(elView);
              elView = elView.parent;
            }
          }

          this.elDef = elDef;
          this.elView = elView;
        }

        _createClass2(DebugContext_, [{
          key: "elOrCompView",
          get: function get() {
            // Has to be done lazily as we use the DebugContext also during creation of elements...
            return asElementData(this.elView, this.elDef.nodeIndex).componentView || this.view;
          }
        }, {
          key: "injector",
          get: function get() {
            return createInjector$1(this.elView, this.elDef);
          }
        }, {
          key: "component",
          get: function get() {
            return this.elOrCompView.component;
          }
        }, {
          key: "context",
          get: function get() {
            return this.elOrCompView.context;
          }
        }, {
          key: "providerTokens",
          get: function get() {
            var tokens = [];

            if (this.elDef) {
              for (var i = this.elDef.nodeIndex + 1; i <= this.elDef.nodeIndex + this.elDef.childCount; i++) {
                var childDef = this.elView.def.nodes[i];

                if (childDef.flags & 20224
                /* CatProvider */
                ) {
                  tokens.push(childDef.provider.token);
                }

                i += childDef.childCount;
              }
            }

            return tokens;
          }
        }, {
          key: "references",
          get: function get() {
            var references = {};

            if (this.elDef) {
              collectReferences(this.elView, this.elDef, references);

              for (var i = this.elDef.nodeIndex + 1; i <= this.elDef.nodeIndex + this.elDef.childCount; i++) {
                var childDef = this.elView.def.nodes[i];

                if (childDef.flags & 20224
                /* CatProvider */
                ) {
                  collectReferences(this.elView, childDef, references);
                }

                i += childDef.childCount;
              }
            }

            return references;
          }
        }, {
          key: "componentRenderElement",
          get: function get() {
            var elData = findHostElement(this.elOrCompView);
            return elData ? elData.renderElement : undefined;
          }
        }, {
          key: "renderNode",
          get: function get() {
            return this.nodeDef.flags & 2
            /* TypeText */
            ? renderNode(this.view, this.nodeDef) : renderNode(this.elView, this.elDef);
          }
        }, {
          key: "logError",
          value: function logError(console) {
            for (var _len30 = arguments.length, values = new Array(_len30 > 1 ? _len30 - 1 : 0), _key31 = 1; _key31 < _len30; _key31++) {
              values[_key31 - 1] = arguments[_key31];
            }

            var logViewDef;
            var logNodeIndex;

            if (this.nodeDef.flags & 2
            /* TypeText */
            ) {
              logViewDef = this.view.def;
              logNodeIndex = this.nodeDef.nodeIndex;
            } else {
              logViewDef = this.elView.def;
              logNodeIndex = this.elDef.nodeIndex;
            } // Note: we only generate a log function for text and element nodes
            // to make the generated code as small as possible.


            var renderNodeIndex = getRenderNodeIndex(logViewDef, logNodeIndex);
            var currRenderNodeIndex = -1;

            var nodeLogger = function nodeLogger() {
              currRenderNodeIndex++;

              if (currRenderNodeIndex === renderNodeIndex) {
                var _console$error;

                return (_console$error = console.error).bind.apply(_console$error, [console].concat(values));
              } else {
                return NOOP;
              }
            };

            logViewDef.factory(nodeLogger);

            if (currRenderNodeIndex < renderNodeIndex) {
              console.error('Illegal state: the ViewDefinitionFactory did not call the logger!');
              console.error.apply(console, values);
            }
          }
        }]);

        return DebugContext_;
      }();

      function getRenderNodeIndex(viewDef, nodeIndex) {
        var renderNodeIndex = -1;

        for (var i = 0; i <= nodeIndex; i++) {
          var nodeDef = viewDef.nodes[i];

          if (nodeDef.flags & 3
          /* CatRenderNode */
          ) {
            renderNodeIndex++;
          }
        }

        return renderNodeIndex;
      }

      function findHostElement(view) {
        while (view && !isComponentView(view)) {
          view = view.parent;
        }

        if (view.parent) {
          return asElementData(view.parent, viewParentEl(view).nodeIndex);
        }

        return null;
      }

      function collectReferences(view, nodeDef, references) {
        for (var refName in nodeDef.references) {
          references[refName] = getQueryValue(view, nodeDef, nodeDef.references[refName]);
        }
      }

      function callWithDebugContext(action, fn, self, args) {
        var oldAction = _currentAction;
        var oldView = _currentView;
        var oldNodeIndex = _currentNodeIndex;

        try {
          _currentAction = action;
          var result = fn.apply(self, args);
          _currentView = oldView;
          _currentNodeIndex = oldNodeIndex;
          _currentAction = oldAction;
          return result;
        } catch (e) {
          if (isViewDebugError(e) || !_currentView) {
            throw e;
          }

          throw viewWrappedDebugError(e, getCurrentDebugContext());
        }
      }

      function getCurrentDebugContext() {
        return _currentView ? new DebugContext_(_currentView, _currentNodeIndex) : null;
      }

      var DebugRendererFactory2 = /*#__PURE__*/function () {
        function DebugRendererFactory2(delegate) {
          _classCallCheck2(this, DebugRendererFactory2);

          this.delegate = delegate;
        }

        _createClass2(DebugRendererFactory2, [{
          key: "createRenderer",
          value: function createRenderer(element, renderData) {
            return new DebugRenderer2(this.delegate.createRenderer(element, renderData));
          }
        }, {
          key: "begin",
          value: function begin() {
            if (this.delegate.begin) {
              this.delegate.begin();
            }
          }
        }, {
          key: "end",
          value: function end() {
            if (this.delegate.end) {
              this.delegate.end();
            }
          }
        }, {
          key: "whenRenderingDone",
          value: function whenRenderingDone() {
            if (this.delegate.whenRenderingDone) {
              return this.delegate.whenRenderingDone();
            }

            return Promise.resolve(null);
          }
        }]);

        return DebugRendererFactory2;
      }();

      var DebugRenderer2 = /*#__PURE__*/function () {
        function DebugRenderer2(delegate) {
          _classCallCheck2(this, DebugRenderer2);

          this.delegate = delegate;
          /**
           * Factory function used to create a `DebugContext` when a node is created.
           *
           * The `DebugContext` allows to retrieve information about the nodes that are useful in tests.
           *
           * The factory is configurable so that the `DebugRenderer2` could instantiate either a View Engine
           * or a Render context.
           */

          this.debugContextFactory = getCurrentDebugContext;
          this.data = this.delegate.data;
        }

        _createClass2(DebugRenderer2, [{
          key: "createDebugContext",
          value: function createDebugContext(nativeElement) {
            return this.debugContextFactory(nativeElement);
          }
        }, {
          key: "destroyNode",
          value: function destroyNode(node) {
            var debugNode = getDebugNode$1(node);
            removeDebugNodeFromIndex(debugNode);

            if (debugNode instanceof DebugNode__PRE_R3__) {
              debugNode.listeners.length = 0;
            }

            if (this.delegate.destroyNode) {
              this.delegate.destroyNode(node);
            }
          }
        }, {
          key: "destroy",
          value: function destroy() {
            this.delegate.destroy();
          }
        }, {
          key: "createElement",
          value: function createElement(name, namespace) {
            var el = this.delegate.createElement(name, namespace);
            var debugCtx = this.createDebugContext(el);

            if (debugCtx) {
              var debugEl = new DebugElement__PRE_R3__(el, null, debugCtx);
              debugEl.name = name;
              indexDebugNode(debugEl);
            }

            return el;
          }
        }, {
          key: "createComment",
          value: function createComment(value) {
            var comment = this.delegate.createComment(value);
            var debugCtx = this.createDebugContext(comment);

            if (debugCtx) {
              indexDebugNode(new DebugNode__PRE_R3__(comment, null, debugCtx));
            }

            return comment;
          }
        }, {
          key: "createText",
          value: function createText(value) {
            var text = this.delegate.createText(value);
            var debugCtx = this.createDebugContext(text);

            if (debugCtx) {
              indexDebugNode(new DebugNode__PRE_R3__(text, null, debugCtx));
            }

            return text;
          }
        }, {
          key: "appendChild",
          value: function appendChild(parent, newChild) {
            var debugEl = getDebugNode$1(parent);
            var debugChildEl = getDebugNode$1(newChild);

            if (debugEl && debugChildEl && debugEl instanceof DebugElement__PRE_R3__) {
              debugEl.addChild(debugChildEl);
            }

            this.delegate.appendChild(parent, newChild);
          }
        }, {
          key: "insertBefore",
          value: function insertBefore(parent, newChild, refChild, isMove) {
            var debugEl = getDebugNode$1(parent);
            var debugChildEl = getDebugNode$1(newChild);
            var debugRefEl = getDebugNode$1(refChild);

            if (debugEl && debugChildEl && debugEl instanceof DebugElement__PRE_R3__) {
              debugEl.insertBefore(debugRefEl, debugChildEl);
            }

            this.delegate.insertBefore(parent, newChild, refChild, isMove);
          }
        }, {
          key: "removeChild",
          value: function removeChild(parent, oldChild) {
            var debugEl = getDebugNode$1(parent);
            var debugChildEl = getDebugNode$1(oldChild);

            if (debugEl && debugChildEl && debugEl instanceof DebugElement__PRE_R3__) {
              debugEl.removeChild(debugChildEl);
            }

            this.delegate.removeChild(parent, oldChild);
          }
        }, {
          key: "selectRootElement",
          value: function selectRootElement(selectorOrNode, preserveContent) {
            var el = this.delegate.selectRootElement(selectorOrNode, preserveContent);
            var debugCtx = getCurrentDebugContext();

            if (debugCtx) {
              indexDebugNode(new DebugElement__PRE_R3__(el, null, debugCtx));
            }

            return el;
          }
        }, {
          key: "setAttribute",
          value: function setAttribute(el, name, value, namespace) {
            var debugEl = getDebugNode$1(el);

            if (debugEl && debugEl instanceof DebugElement__PRE_R3__) {
              var fullName = namespace ? namespace + ':' + name : name;
              debugEl.attributes[fullName] = value;
            }

            this.delegate.setAttribute(el, name, value, namespace);
          }
        }, {
          key: "removeAttribute",
          value: function removeAttribute(el, name, namespace) {
            var debugEl = getDebugNode$1(el);

            if (debugEl && debugEl instanceof DebugElement__PRE_R3__) {
              var fullName = namespace ? namespace + ':' + name : name;
              debugEl.attributes[fullName] = null;
            }

            this.delegate.removeAttribute(el, name, namespace);
          }
        }, {
          key: "addClass",
          value: function addClass(el, name) {
            var debugEl = getDebugNode$1(el);

            if (debugEl && debugEl instanceof DebugElement__PRE_R3__) {
              debugEl.classes[name] = true;
            }

            this.delegate.addClass(el, name);
          }
        }, {
          key: "removeClass",
          value: function removeClass(el, name) {
            var debugEl = getDebugNode$1(el);

            if (debugEl && debugEl instanceof DebugElement__PRE_R3__) {
              debugEl.classes[name] = false;
            }

            this.delegate.removeClass(el, name);
          }
        }, {
          key: "setStyle",
          value: function setStyle(el, style, value, flags) {
            var debugEl = getDebugNode$1(el);

            if (debugEl && debugEl instanceof DebugElement__PRE_R3__) {
              debugEl.styles[style] = value;
            }

            this.delegate.setStyle(el, style, value, flags);
          }
        }, {
          key: "removeStyle",
          value: function removeStyle(el, style, flags) {
            var debugEl = getDebugNode$1(el);

            if (debugEl && debugEl instanceof DebugElement__PRE_R3__) {
              debugEl.styles[style] = null;
            }

            this.delegate.removeStyle(el, style, flags);
          }
        }, {
          key: "setProperty",
          value: function setProperty(el, name, value) {
            var debugEl = getDebugNode$1(el);

            if (debugEl && debugEl instanceof DebugElement__PRE_R3__) {
              debugEl.properties[name] = value;
            }

            this.delegate.setProperty(el, name, value);
          }
        }, {
          key: "listen",
          value: function listen(target, eventName, callback) {
            if (typeof target !== 'string') {
              var debugEl = getDebugNode$1(target);

              if (debugEl) {
                debugEl.listeners.push(new DebugEventListener(eventName, callback));
              }
            }

            return this.delegate.listen(target, eventName, callback);
          }
        }, {
          key: "parentNode",
          value: function parentNode(node) {
            return this.delegate.parentNode(node);
          }
        }, {
          key: "nextSibling",
          value: function nextSibling(node) {
            return this.delegate.nextSibling(node);
          }
        }, {
          key: "setValue",
          value: function setValue(node, value) {
            return this.delegate.setValue(node, value);
          }
        }]);

        return DebugRenderer2;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function overrideProvider(override) {
        initServicesIfNeeded();
        return Services.overrideProvider(override);
      }

      function overrideComponentView(comp, componentFactory) {
        initServicesIfNeeded();
        return Services.overrideComponentView(comp, componentFactory);
      }

      function clearOverrides() {
        initServicesIfNeeded();
        return Services.clearOverrides();
      } // Attention: this function is called as top level function.
      // Putting any logic in here will destroy closure tree shaking!


      function createNgModuleFactory(ngModuleType, bootstrapComponents, defFactory) {
        return new NgModuleFactory_(ngModuleType, bootstrapComponents, defFactory);
      }

      function cloneNgModuleDefinition(def) {
        var providers = Array.from(def.providers);
        var modules = Array.from(def.modules);
        var providersByKey = {};

        for (var key in def.providersByKey) {
          providersByKey[key] = def.providersByKey[key];
        }

        return {
          factory: def.factory,
          scope: def.scope,
          providers: providers,
          modules: modules,
          providersByKey: providersByKey
        };
      }

      var NgModuleFactory_ = /*#__PURE__*/function (_NgModuleFactory2) {
        _inherits2(NgModuleFactory_, _NgModuleFactory2);

        var _super170 = _createSuper2(NgModuleFactory_);

        function NgModuleFactory_(moduleType, _bootstrapComponents, _ngModuleDefFactory) {
          var _this435;

          _classCallCheck2(this, NgModuleFactory_);

          // Attention: this ctor is called as top level function.
          // Putting any logic in here will destroy closure tree shaking!
          _this435 = _super170.call(this);
          _this435.moduleType = moduleType;
          _this435._bootstrapComponents = _bootstrapComponents;
          _this435._ngModuleDefFactory = _ngModuleDefFactory;
          return _this435;
        }

        _createClass2(NgModuleFactory_, [{
          key: "create",
          value: function create(parentInjector) {
            initServicesIfNeeded(); // Clone the NgModuleDefinition so that any tree shakeable provider definition
            // added to this instance of the NgModuleRef doesn't affect the cached copy.
            // See https://github.com/angular/angular/issues/25018.

            var def = cloneNgModuleDefinition(resolveDefinition(this._ngModuleDefFactory));
            return Services.createNgModuleRef(this.moduleType, parentInjector || Injector.NULL, this._bootstrapComponents, def);
          }
        }]);

        return NgModuleFactory_;
      }(NgModuleFactory);
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */
      // clang-format on

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      if (typeof ngDevMode !== 'undefined' && ngDevMode) {
        // This helper is to give a reasonable error message to people upgrading to v9 that have not yet
        // installed `@angular/localize` in their app.
        // tslint:disable-next-line: no-toplevel-property-access
        _global.$localize = _global.$localize || function () {
          throw new Error('It looks like your application or one of its dependencies is using i18n.\n' + 'Angular 9 introduced a global `$localize()` function that needs to be loaded.\n' + 'Please run `ng add @angular/localize` from the Angular CLI.\n' + '(For non-CLI projects, add `import \'@angular/localize/init\';` to your `polyfills.ts` file.\n' + 'For server-side rendering applications add the import to your `main.server.ts` file.)');
        };
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */
      // This file only reexports content of the `src` folder. Keep it that way.

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Generated bundle index. Do not edit.
       */
      //# sourceMappingURL=core.js.map

      /***/

    },

    /***/
    "8iJe": function iJe(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return lastDayOfDecade;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name lastDayOfDecade
       * @category Decade Helpers
       * @summary Return the last day of a decade for the given date.
       *
       * @description
       * Return the last day of a decade for the given date.
       *
       * ### 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 {Date|Number} date - the original date
       * @returns {Date} the last day of a decade
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // The last day of a decade for 21 December 2012 21:12:00:
       * var result = lastDayOfDecade(new Date(2012, 11, 21, 21, 12, 00))
       * //=> Wed Dec 31 2019 00:00:00
       */


      function lastDayOfDecade(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);
        var year = date.getFullYear();
        var decade = 9 + Math.floor(year / 10) * 10;
        date.setFullYear(decade + 1, 0, 0);
        date.setHours(0, 0, 0, 0);
        return date;
      }
      /***/

    },

    /***/
    "8mBD": function mBD(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Portuguese [pt]
      //! author : Jefferson : https://github.com/jalex79
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var pt = moment.defineLocale('pt', {
          months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split('_'),
          monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
          weekdays: 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split('_'),
          weekdaysShort: 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
          weekdaysMin: 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'),
          weekdaysParseExact: true,
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D [de] MMMM [de] YYYY',
            LLL: 'D [de] MMMM [de] YYYY HH:mm',
            LLLL: 'dddd, D [de] MMMM [de] YYYY HH:mm'
          },
          calendar: {
            sameDay: '[Hoje às] LT',
            nextDay: '[Amanhã às] LT',
            nextWeek: 'dddd [às] LT',
            lastDay: '[Ontem às] LT',
            lastWeek: function lastWeek() {
              return this.day() === 0 || this.day() === 6 ? '[Último] dddd [às] LT' // Saturday + Sunday
              : '[Última] dddd [às] LT'; // Monday - Friday
            },
            sameElse: 'L'
          },
          relativeTime: {
            future: 'em %s',
            past: 'há %s',
            s: 'segundos',
            ss: '%d segundos',
            m: 'um minuto',
            mm: '%d minutos',
            h: 'uma hora',
            hh: '%d horas',
            d: 'um dia',
            dd: '%d dias',
            w: 'uma semana',
            ww: '%d semanas',
            M: 'um mês',
            MM: '%d meses',
            y: 'um ano',
            yy: '%d anos'
          },
          dayOfMonthOrdinalParse: /\d{1,2}º/,
          ordinal: '%dº',
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return pt;
      });
      /***/

    },

    /***/
    "8sFK": function sFK(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "AutofillMonitor", function () {
        return AutofillMonitor;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CdkAutofill", function () {
        return CdkAutofill;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CdkTextareaAutosize", function () {
        return CdkTextareaAutosize;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TextFieldModule", function () {
        return TextFieldModule;
      });
      /* harmony import */


      var _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/cdk/platform */
      "SCoL");
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /* harmony import */


      var _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! @angular/cdk/coercion */
      "8LU1");
      /* harmony import */


      var rxjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! rxjs */
      "qCKp");
      /* harmony import */


      var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! rxjs/operators */
      "kU1M");
      /* harmony import */


      var _angular_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! @angular/common */
      "SVse");
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** Options to pass to the animationstart listener. */


      var listenerOptions = Object(_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_0__["normalizePassiveListenerOptions"])({
        passive: true
      });
      /**
       * An injectable service that can be used to monitor the autofill state of an input.
       * Based on the following blog post:
       * https://medium.com/@brunn/detecting-autofilled-fields-in-javascript-aed598d25da7
       */

      var AutofillMonitor = /*#__PURE__*/function () {
        function AutofillMonitor(_platform, _ngZone) {
          _classCallCheck2(this, AutofillMonitor);

          this._platform = _platform;
          this._ngZone = _ngZone;
          this._monitoredElements = new Map();
        }

        _createClass2(AutofillMonitor, [{
          key: "monitor",
          value: function monitor(elementOrRef) {
            var _this436 = this;

            if (!this._platform.isBrowser) {
              return rxjs__WEBPACK_IMPORTED_MODULE_3__["EMPTY"];
            }

            var element = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__["coerceElement"])(elementOrRef);

            var info = this._monitoredElements.get(element);

            if (info) {
              return info.subject;
            }

            var result = new rxjs__WEBPACK_IMPORTED_MODULE_3__["Subject"]();
            var cssClass = 'cdk-text-field-autofilled';

            var listener = function listener(event) {
              // Animation events fire on initial element render, we check for the presence of the autofill
              // CSS class to make sure this is a real change in state, not just the initial render before
              // we fire off events.
              if (event.animationName === 'cdk-text-field-autofill-start' && !element.classList.contains(cssClass)) {
                element.classList.add(cssClass);

                _this436._ngZone.run(function () {
                  return result.next({
                    target: event.target,
                    isAutofilled: true
                  });
                });
              } else if (event.animationName === 'cdk-text-field-autofill-end' && element.classList.contains(cssClass)) {
                element.classList.remove(cssClass);

                _this436._ngZone.run(function () {
                  return result.next({
                    target: event.target,
                    isAutofilled: false
                  });
                });
              }
            };

            this._ngZone.runOutsideAngular(function () {
              element.addEventListener('animationstart', listener, listenerOptions);
              element.classList.add('cdk-text-field-autofill-monitored');
            });

            this._monitoredElements.set(element, {
              subject: result,
              unlisten: function unlisten() {
                element.removeEventListener('animationstart', listener, listenerOptions);
              }
            });

            return result;
          }
        }, {
          key: "stopMonitoring",
          value: function stopMonitoring(elementOrRef) {
            var element = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__["coerceElement"])(elementOrRef);

            var info = this._monitoredElements.get(element);

            if (info) {
              info.unlisten();
              info.subject.complete();
              element.classList.remove('cdk-text-field-autofill-monitored');
              element.classList.remove('cdk-text-field-autofilled');

              this._monitoredElements["delete"](element);
            }
          }
        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            var _this437 = this;

            this._monitoredElements.forEach(function (_info, element) {
              return _this437.stopMonitoring(element);
            });
          }
        }]);

        return AutofillMonitor;
      }();

      AutofillMonitor.ɵfac = function AutofillMonitor_Factory(t) {
        return new (t || AutofillMonitor)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_0__["Platform"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]));
      };

      AutofillMonitor.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"])({
        factory: function AutofillMonitor_Factory() {
          return new AutofillMonitor(Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_0__["Platform"]), Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]));
        },
        token: AutofillMonitor,
        providedIn: "root"
      });

      AutofillMonitor.ctorParameters = function () {
        return [{
          type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_0__["Platform"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AutofillMonitor, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"],
          args: [{
            providedIn: 'root'
          }]
        }], function () {
          return [{
            type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_0__["Platform"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]
          }];
        }, null);
      })();
      /** A directive that can be used to monitor the autofill state of an input. */


      var CdkAutofill = /*#__PURE__*/function () {
        function CdkAutofill(_elementRef, _autofillMonitor) {
          _classCallCheck2(this, CdkAutofill);

          this._elementRef = _elementRef;
          this._autofillMonitor = _autofillMonitor;
          /** Emits when the autofill state of the element changes. */

          this.cdkAutofill = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
        }

        _createClass2(CdkAutofill, [{
          key: "ngOnInit",
          value: function ngOnInit() {
            var _this438 = this;

            this._autofillMonitor.monitor(this._elementRef).subscribe(function (event) {
              return _this438.cdkAutofill.emit(event);
            });
          }
        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            this._autofillMonitor.stopMonitoring(this._elementRef);
          }
        }]);

        return CdkAutofill;
      }();

      CdkAutofill.ɵfac = function CdkAutofill_Factory(t) {
        return new (t || CdkAutofill)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](AutofillMonitor));
      };

      CdkAutofill.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineDirective"]({
        type: CdkAutofill,
        selectors: [["", "cdkAutofill", ""]],
        outputs: {
          cdkAutofill: "cdkAutofill"
        }
      });

      CdkAutofill.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]
        }, {
          type: AutofillMonitor
        }];
      };

      CdkAutofill.propDecorators = {
        cdkAutofill: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](CdkAutofill, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Directive"],
          args: [{
            selector: '[cdkAutofill]'
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]
          }, {
            type: AutofillMonitor
          }];
        }, {
          cdkAutofill: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
          }]
        });
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** Directive to automatically resize a textarea to fit its content. */


      var CdkTextareaAutosize = /*#__PURE__*/function () {
        function CdkTextareaAutosize(_elementRef, _platform, _ngZone,
        /** @breaking-change 11.0.0 make document required */
        document) {
          _classCallCheck2(this, CdkTextareaAutosize);

          this._elementRef = _elementRef;
          this._platform = _platform;
          this._ngZone = _ngZone;
          this._destroyed = new rxjs__WEBPACK_IMPORTED_MODULE_3__["Subject"]();
          this._enabled = true;
          /**
           * Value of minRows as of last resize. If the minRows has decreased, the
           * height of the textarea needs to be recomputed to reflect the new minimum. The maxHeight
           * does not have the same problem because it does not affect the textarea's scrollHeight.
           */

          this._previousMinRows = -1;
          this._document = document;
          this._textareaElement = this._elementRef.nativeElement;
          this._measuringClass = _platform.FIREFOX ? 'cdk-textarea-autosize-measuring-firefox' : 'cdk-textarea-autosize-measuring';
        }
        /** Minimum amount of rows in the textarea. */


        _createClass2(CdkTextareaAutosize, [{
          key: "minRows",
          get: function get() {
            return this._minRows;
          },
          set: function set(value) {
            this._minRows = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__["coerceNumberProperty"])(value);

            this._setMinHeight();
          }
          /** Maximum amount of rows in the textarea. */

        }, {
          key: "maxRows",
          get: function get() {
            return this._maxRows;
          },
          set: function set(value) {
            this._maxRows = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__["coerceNumberProperty"])(value);

            this._setMaxHeight();
          }
          /** Whether autosizing is enabled or not */

        }, {
          key: "enabled",
          get: function get() {
            return this._enabled;
          },
          set: function set(value) {
            value = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__["coerceBooleanProperty"])(value); // Only act if the actual value changed. This specifically helps to not run
            // resizeToFitContent too early (i.e. before ngAfterViewInit)

            if (this._enabled !== value) {
              (this._enabled = value) ? this.resizeToFitContent(true) : this.reset();
            }
          }
          /** Sets the minimum height of the textarea as determined by minRows. */

        }, {
          key: "_setMinHeight",
          value: function _setMinHeight() {
            var minHeight = this.minRows && this._cachedLineHeight ? "".concat(this.minRows * this._cachedLineHeight, "px") : null;

            if (minHeight) {
              this._textareaElement.style.minHeight = minHeight;
            }
          }
          /** Sets the maximum height of the textarea as determined by maxRows. */

        }, {
          key: "_setMaxHeight",
          value: function _setMaxHeight() {
            var maxHeight = this.maxRows && this._cachedLineHeight ? "".concat(this.maxRows * this._cachedLineHeight, "px") : null;

            if (maxHeight) {
              this._textareaElement.style.maxHeight = maxHeight;
            }
          }
        }, {
          key: "ngAfterViewInit",
          value: function ngAfterViewInit() {
            var _this439 = this;

            if (this._platform.isBrowser) {
              // Remember the height which we started with in case autosizing is disabled
              this._initialHeight = this._textareaElement.style.height;
              this.resizeToFitContent();

              this._ngZone.runOutsideAngular(function () {
                var window = _this439._getWindow();

                Object(rxjs__WEBPACK_IMPORTED_MODULE_3__["fromEvent"])(window, 'resize').pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["auditTime"])(16), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["takeUntil"])(_this439._destroyed)).subscribe(function () {
                  return _this439.resizeToFitContent(true);
                });
              });
            }
          }
        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            this._destroyed.next();

            this._destroyed.complete();
          }
          /**
           * Cache the height of a single-row textarea if it has not already been cached.
           *
           * We need to know how large a single "row" of a textarea is in order to apply minRows and
           * maxRows. For the initial version, we will assume that the height of a single line in the
           * textarea does not ever change.
           */

        }, {
          key: "_cacheTextareaLineHeight",
          value: function _cacheTextareaLineHeight() {
            if (this._cachedLineHeight) {
              return;
            } // Use a clone element because we have to override some styles.


            var textareaClone = this._textareaElement.cloneNode(false);

            textareaClone.rows = 1; // Use `position: absolute` so that this doesn't cause a browser layout and use
            // `visibility: hidden` so that nothing is rendered. Clear any other styles that
            // would affect the height.

            textareaClone.style.position = 'absolute';
            textareaClone.style.visibility = 'hidden';
            textareaClone.style.border = 'none';
            textareaClone.style.padding = '0';
            textareaClone.style.height = '';
            textareaClone.style.minHeight = '';
            textareaClone.style.maxHeight = ''; // In Firefox it happens that textarea elements are always bigger than the specified amount
            // of rows. This is because Firefox tries to add extra space for the horizontal scrollbar.
            // As a workaround that removes the extra space for the scrollbar, we can just set overflow
            // to hidden. This ensures that there is no invalid calculation of the line height.
            // See Firefox bug report: https://bugzilla.mozilla.org/show_bug.cgi?id=33654

            textareaClone.style.overflow = 'hidden';

            this._textareaElement.parentNode.appendChild(textareaClone);

            this._cachedLineHeight = textareaClone.clientHeight;

            this._textareaElement.parentNode.removeChild(textareaClone); // Min and max heights have to be re-calculated if the cached line height changes


            this._setMinHeight();

            this._setMaxHeight();
          }
        }, {
          key: "ngDoCheck",
          value: function ngDoCheck() {
            if (this._platform.isBrowser) {
              this.resizeToFitContent();
            }
          }
          /**
           * Resize the textarea to fit its content.
           * @param force Whether to force a height recalculation. By default the height will be
           *    recalculated only if the value changed since the last call.
           */

        }, {
          key: "resizeToFitContent",
          value: function resizeToFitContent() {
            var _this440 = this;

            var force = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;

            // If autosizing is disabled, just skip everything else
            if (!this._enabled) {
              return;
            }

            this._cacheTextareaLineHeight(); // If we haven't determined the line-height yet, we know we're still hidden and there's no point
            // in checking the height of the textarea.


            if (!this._cachedLineHeight) {
              return;
            }

            var textarea = this._elementRef.nativeElement;
            var value = textarea.value; // Only resize if the value or minRows have changed since these calculations can be expensive.

            if (!force && this._minRows === this._previousMinRows && value === this._previousValue) {
              return;
            }

            var placeholderText = textarea.placeholder; // Reset the textarea height to auto in order to shrink back to its default size.
            // Also temporarily force overflow:hidden, so scroll bars do not interfere with calculations.
            // Long placeholders that are wider than the textarea width may lead to a bigger scrollHeight
            // value. To ensure that the scrollHeight is not bigger than the content, the placeholders
            // need to be removed temporarily.

            textarea.classList.add(this._measuringClass);
            textarea.placeholder = ''; // The measuring class includes a 2px padding to workaround an issue with Chrome,
            // so we account for that extra space here by subtracting 4 (2px top + 2px bottom).

            var height = textarea.scrollHeight - 4; // Use the scrollHeight to know how large the textarea *would* be if fit its entire value.

            textarea.style.height = "".concat(height, "px");
            textarea.classList.remove(this._measuringClass);
            textarea.placeholder = placeholderText;

            this._ngZone.runOutsideAngular(function () {
              if (typeof requestAnimationFrame !== 'undefined') {
                requestAnimationFrame(function () {
                  return _this440._scrollToCaretPosition(textarea);
                });
              } else {
                setTimeout(function () {
                  return _this440._scrollToCaretPosition(textarea);
                });
              }
            });

            this._previousValue = value;
            this._previousMinRows = this._minRows;
          }
          /**
           * Resets the textarea to its original size
           */

        }, {
          key: "reset",
          value: function reset() {
            // Do not try to change the textarea, if the initialHeight has not been determined yet
            // This might potentially remove styles when reset() is called before ngAfterViewInit
            if (this._initialHeight !== undefined) {
              this._textareaElement.style.height = this._initialHeight;
            }
          } // In Ivy the `host` metadata will be merged, whereas in ViewEngine it is overridden. In order
          // to avoid double event listeners, we need to use `HostListener`. Once Ivy is the default, we
          // can move this back into `host`.
          // tslint:disable:no-host-decorator-in-concrete

        }, {
          key: "_noopInputHandler",
          value: function _noopInputHandler() {// no-op handler that ensures we're running change detection on input events.
          }
          /** Access injected document if available or fallback to global document reference */

        }, {
          key: "_getDocument",
          value: function _getDocument() {
            return this._document || document;
          }
          /** Use defaultView of injected document if available or fallback to global window reference */

        }, {
          key: "_getWindow",
          value: function _getWindow() {
            var doc = this._getDocument();

            return doc.defaultView || window;
          }
          /**
           * Scrolls a textarea to the caret position. On Firefox resizing the textarea will
           * prevent it from scrolling to the caret position. We need to re-set the selection
           * in order for it to scroll to the proper position.
           */

        }, {
          key: "_scrollToCaretPosition",
          value: function _scrollToCaretPosition(textarea) {
            var selectionStart = textarea.selectionStart,
                selectionEnd = textarea.selectionEnd;

            var document = this._getDocument(); // IE will throw an "Unspecified error" if we try to set the selection range after the
            // element has been removed from the DOM. Assert that the directive hasn't been destroyed
            // between the time we requested the animation frame and when it was executed.
            // Also note that we have to assert that the textarea is focused before we set the
            // selection range. Setting the selection range on a non-focused textarea will cause
            // it to receive focus on IE and Edge.


            if (!this._destroyed.isStopped && document.activeElement === textarea) {
              textarea.setSelectionRange(selectionStart, selectionEnd);
            }
          }
        }]);

        return CdkTextareaAutosize;
      }();

      CdkTextareaAutosize.ɵfac = function CdkTextareaAutosize_Factory(t) {
        return new (t || CdkTextareaAutosize)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_0__["Platform"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_common__WEBPACK_IMPORTED_MODULE_5__["DOCUMENT"], 8));
      };

      CdkTextareaAutosize.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineDirective"]({
        type: CdkTextareaAutosize,
        selectors: [["textarea", "cdkTextareaAutosize", ""]],
        hostAttrs: ["rows", "1", 1, "cdk-textarea-autosize"],
        hostBindings: function CdkTextareaAutosize_HostBindings(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("input", function CdkTextareaAutosize_input_HostBindingHandler() {
              return ctx._noopInputHandler();
            });
          }
        },
        inputs: {
          minRows: ["cdkAutosizeMinRows", "minRows"],
          maxRows: ["cdkAutosizeMaxRows", "maxRows"],
          enabled: ["cdkTextareaAutosize", "enabled"]
        },
        exportAs: ["cdkTextareaAutosize"]
      });

      CdkTextareaAutosize.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]
        }, {
          type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_0__["Platform"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
            args: [_angular_common__WEBPACK_IMPORTED_MODULE_5__["DOCUMENT"]]
          }]
        }];
      };

      CdkTextareaAutosize.propDecorators = {
        minRows: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
          args: ['cdkAutosizeMinRows']
        }],
        maxRows: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
          args: ['cdkAutosizeMaxRows']
        }],
        enabled: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
          args: ['cdkTextareaAutosize']
        }],
        _noopInputHandler: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["HostListener"],
          args: ['input']
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](CdkTextareaAutosize, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Directive"],
          args: [{
            selector: 'textarea[cdkTextareaAutosize]',
            exportAs: 'cdkTextareaAutosize',
            host: {
              'class': 'cdk-textarea-autosize',
              // Textarea elements that have the directive applied should have a single row by default.
              // Browsers normally show two rows by default and therefore this limits the minRows binding.
              'rows': '1'
            }
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]
          }, {
            type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_0__["Platform"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
              args: [_angular_common__WEBPACK_IMPORTED_MODULE_5__["DOCUMENT"]]
            }]
          }];
        }, {
          minRows: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
            args: ['cdkAutosizeMinRows']
          }],
          maxRows: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
            args: ['cdkAutosizeMaxRows']
          }],
          enabled: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
            args: ['cdkTextareaAutosize']
          }],
          // In Ivy the `host` metadata will be merged, whereas in ViewEngine it is overridden. In order
          // to avoid double event listeners, we need to use `HostListener`. Once Ivy is the default, we
          // can move this back into `host`.
          // tslint:disable:no-host-decorator-in-concrete
          _noopInputHandler: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["HostListener"],
            args: ['input']
          }]
        });
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var TextFieldModule = function TextFieldModule() {
        _classCallCheck2(this, TextFieldModule);
      };

      TextFieldModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineNgModule"]({
        type: TextFieldModule
      });
      TextFieldModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjector"]({
        factory: function TextFieldModule_Factory(t) {
          return new (t || TextFieldModule)();
        },
        imports: [[_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_0__["PlatformModule"]]]
      });

      (function () {
        (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsetNgModuleScope"](TextFieldModule, {
          declarations: function declarations() {
            return [CdkAutofill, CdkTextareaAutosize];
          },
          imports: function imports() {
            return [_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_0__["PlatformModule"]];
          },
          exports: function exports() {
            return [CdkAutofill, CdkTextareaAutosize];
          }
        });
      })();
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](TextFieldModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"],
          args: [{
            declarations: [CdkAutofill, CdkTextareaAutosize],
            imports: [_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_0__["PlatformModule"]],
            exports: [CdkAutofill, CdkTextareaAutosize]
          }]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Generated bundle index. Do not edit.
       */
      //# sourceMappingURL=text-field.js.map

      /***/

    },

    /***/
    "9/EM": function EM(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return addDays;
      });
      /* harmony import */


      var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../_lib/toInteger/index.js */
      "/h9T");
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name addDays
       * @category Day Helpers
       * @summary Add the specified number of days to the given date.
       *
       * @description
       * Add the specified number of days to the given date.
       *
       * ### 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 {Date|Number} date - the date to be changed
       * @param {Number} amount - the amount of days to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
       * @returns {Date} the new date with the days added
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // Add 10 days to 1 September 2014:
       * var result = addDays(new Date(2014, 8, 1), 10)
       * //=> Thu Sep 11 2014 00:00:00
       */


      function addDays(dirtyDate, dirtyAmount) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(2, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate);
        var amount = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyAmount);

        if (isNaN(amount)) {
          return new Date(NaN);
        }

        if (!amount) {
          // If 0 days, no-op to avoid changing times in the hour before end of DST
          return date;
        }

        date.setDate(date.getDate() + amount);
        return date;
      }
      /***/

    },

    /***/
    "9M8c": function M8c(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "bufferCount", function () {
        return bufferCount;
      });
      /* harmony import */


      var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Subscriber */
      "7o/Q");

      function bufferCount(bufferSize) {
        var startBufferEvery = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
        return function bufferCountOperatorFunction(source) {
          return source.lift(new BufferCountOperator(bufferSize, startBufferEvery));
        };
      }

      var BufferCountOperator = /*#__PURE__*/function () {
        function BufferCountOperator(bufferSize, startBufferEvery) {
          _classCallCheck2(this, BufferCountOperator);

          this.bufferSize = bufferSize;
          this.startBufferEvery = startBufferEvery;

          if (!startBufferEvery || bufferSize === startBufferEvery) {
            this.subscriberClass = BufferCountSubscriber;
          } else {
            this.subscriberClass = BufferSkipCountSubscriber;
          }
        }

        _createClass2(BufferCountOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            return source.subscribe(new this.subscriberClass(subscriber, this.bufferSize, this.startBufferEvery));
          }
        }]);

        return BufferCountOperator;
      }();

      var BufferCountSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_9) {
        _inherits2(BufferCountSubscriber, _Subscriber__WEBPACK_9);

        var _super171 = _createSuper2(BufferCountSubscriber);

        function BufferCountSubscriber(destination, bufferSize) {
          var _this441;

          _classCallCheck2(this, BufferCountSubscriber);

          _this441 = _super171.call(this, destination);
          _this441.bufferSize = bufferSize;
          _this441.buffer = [];
          return _this441;
        }

        _createClass2(BufferCountSubscriber, [{
          key: "_next",
          value: function _next(value) {
            var buffer = this.buffer;
            buffer.push(value);

            if (buffer.length == this.bufferSize) {
              this.destination.next(buffer);
              this.buffer = [];
            }
          }
        }, {
          key: "_complete",
          value: function _complete() {
            var buffer = this.buffer;

            if (buffer.length > 0) {
              this.destination.next(buffer);
            }

            _get2(_getPrototypeOf2(BufferCountSubscriber.prototype), "_complete", this).call(this);
          }
        }]);

        return BufferCountSubscriber;
      }(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]);

      var BufferSkipCountSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_10) {
        _inherits2(BufferSkipCountSubscriber, _Subscriber__WEBPACK_10);

        var _super172 = _createSuper2(BufferSkipCountSubscriber);

        function BufferSkipCountSubscriber(destination, bufferSize, startBufferEvery) {
          var _this442;

          _classCallCheck2(this, BufferSkipCountSubscriber);

          _this442 = _super172.call(this, destination);
          _this442.bufferSize = bufferSize;
          _this442.startBufferEvery = startBufferEvery;
          _this442.buffers = [];
          _this442.count = 0;
          return _this442;
        }

        _createClass2(BufferSkipCountSubscriber, [{
          key: "_next",
          value: function _next(value) {
            var bufferSize = this.bufferSize,
                startBufferEvery = this.startBufferEvery,
                buffers = this.buffers,
                count = this.count;
            this.count++;

            if (count % startBufferEvery === 0) {
              buffers.push([]);
            }

            for (var i = buffers.length; i--;) {
              var buffer = buffers[i];
              buffer.push(value);

              if (buffer.length === bufferSize) {
                buffers.splice(i, 1);
                this.destination.next(buffer);
              }
            }
          }
        }, {
          key: "_complete",
          value: function _complete() {
            var buffers = this.buffers,
                destination = this.destination;

            while (buffers.length > 0) {
              var buffer = buffers.shift();

              if (buffer.length > 0) {
                destination.next(buffer);
              }
            }

            _get2(_getPrototypeOf2(BufferSkipCountSubscriber.prototype), "_complete", this).call(this);
          }
        }]);

        return BufferSkipCountSubscriber;
      }(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]); //# sourceMappingURL=bufferCount.js.map

      /***/

    },

    /***/
    "9OqN": function OqN(module, exports, __webpack_require__) {
      ;

      (function (root, factory, undef) {
        if (true) {
          // CommonJS
          module.exports = exports = factory(__webpack_require__(
          /*! ./core */
          "Ib8C"), __webpack_require__(
          /*! ./cipher-core */
          "OLod"));
        } else {}
      })(this, function (CryptoJS) {
        /**
         * Counter block mode.
         */
        CryptoJS.mode.CTR = function () {
          var CTR = CryptoJS.lib.BlockCipherMode.extend();
          var Encryptor = CTR.Encryptor = CTR.extend({
            processBlock: function processBlock(words, offset) {
              // Shortcuts
              var cipher = this._cipher;
              var blockSize = cipher.blockSize;
              var iv = this._iv;
              var counter = this._counter; // Generate keystream

              if (iv) {
                counter = this._counter = iv.slice(0); // Remove IV for subsequent blocks

                this._iv = undefined;
              }

              var keystream = counter.slice(0);
              cipher.encryptBlock(keystream, 0); // Increment counter

              counter[blockSize - 1] = counter[blockSize - 1] + 1 | 0; // Encrypt

              for (var i = 0; i < blockSize; i++) {
                words[offset + i] ^= keystream[i];
              }
            }
          });
          CTR.Decryptor = Encryptor;
          return CTR;
        }();

        return CryptoJS.mode.CTR;
      });
      /***/

    },

    /***/
    "9T1D": function T1D(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return isLeapYear;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name isLeapYear
       * @category Year Helpers
       * @summary Is the given date in the leap year?
       *
       * @description
       * Is the given date in the leap year?
       *
       * ### 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 {Date|Number} date - the date to check
       * @returns {Boolean} the date is in the leap year
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // Is 1 September 2012 in the leap year?
       * var result = isLeapYear(new Date(2012, 8, 1))
       * //=> true
       */


      function isLeapYear(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);
        var year = date.getFullYear();
        return year % 400 === 0 || year % 4 === 0 && year % 100 !== 0;
      }
      /***/

    },

    /***/
    "9b/N": function bN(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CdkObserveContent", function () {
        return CdkObserveContent;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ContentObserver", function () {
        return ContentObserver;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MutationObserverFactory", function () {
        return MutationObserverFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ObserversModule", function () {
        return ObserversModule;
      });
      /* harmony import */


      var _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/cdk/coercion */
      "8LU1");
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /* harmony import */


      var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! rxjs */
      "qCKp");
      /* harmony import */


      var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! rxjs/operators */
      "kU1M");
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Factory that creates a new MutationObserver and allows us to stub it out in unit tests.
       * @docs-private
       */


      var MutationObserverFactory = /*#__PURE__*/function () {
        function MutationObserverFactory() {
          _classCallCheck2(this, MutationObserverFactory);
        }

        _createClass2(MutationObserverFactory, [{
          key: "create",
          value: function create(callback) {
            return typeof MutationObserver === 'undefined' ? null : new MutationObserver(callback);
          }
        }]);

        return MutationObserverFactory;
      }();

      MutationObserverFactory.ɵfac = function MutationObserverFactory_Factory(t) {
        return new (t || MutationObserverFactory)();
      };

      MutationObserverFactory.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"])({
        factory: function MutationObserverFactory_Factory() {
          return new MutationObserverFactory();
        },
        token: MutationObserverFactory,
        providedIn: "root"
      });
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](MutationObserverFactory, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"],
          args: [{
            providedIn: 'root'
          }]
        }], null, null);
      })();
      /** An injectable service that allows watching elements for changes to their content. */


      var ContentObserver = /*#__PURE__*/function () {
        function ContentObserver(_mutationObserverFactory) {
          _classCallCheck2(this, ContentObserver);

          this._mutationObserverFactory = _mutationObserverFactory;
          /** Keeps track of the existing MutationObservers so they can be reused. */

          this._observedElements = new Map();
        }

        _createClass2(ContentObserver, [{
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            var _this443 = this;

            this._observedElements.forEach(function (_, element) {
              return _this443._cleanupObserver(element);
            });
          }
        }, {
          key: "observe",
          value: function observe(elementOrRef) {
            var _this444 = this;

            var element = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_0__["coerceElement"])(elementOrRef);
            return new rxjs__WEBPACK_IMPORTED_MODULE_2__["Observable"](function (observer) {
              var stream = _this444._observeElement(element);

              var subscription = stream.subscribe(observer);
              return function () {
                subscription.unsubscribe();

                _this444._unobserveElement(element);
              };
            });
          }
          /**
           * Observes the given element by using the existing MutationObserver if available, or creating a
           * new one if not.
           */

        }, {
          key: "_observeElement",
          value: function _observeElement(element) {
            if (!this._observedElements.has(element)) {
              var stream = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();

              var observer = this._mutationObserverFactory.create(function (mutations) {
                return stream.next(mutations);
              });

              if (observer) {
                observer.observe(element, {
                  characterData: true,
                  childList: true,
                  subtree: true
                });
              }

              this._observedElements.set(element, {
                observer: observer,
                stream: stream,
                count: 1
              });
            } else {
              this._observedElements.get(element).count++;
            }

            return this._observedElements.get(element).stream;
          }
          /**
           * Un-observes the given element and cleans up the underlying MutationObserver if nobody else is
           * observing this element.
           */

        }, {
          key: "_unobserveElement",
          value: function _unobserveElement(element) {
            if (this._observedElements.has(element)) {
              this._observedElements.get(element).count--;

              if (!this._observedElements.get(element).count) {
                this._cleanupObserver(element);
              }
            }
          }
          /** Clean up the underlying MutationObserver for the specified element. */

        }, {
          key: "_cleanupObserver",
          value: function _cleanupObserver(element) {
            if (this._observedElements.has(element)) {
              var _this$_observedElemen = this._observedElements.get(element),
                  observer = _this$_observedElemen.observer,
                  stream = _this$_observedElemen.stream;

              if (observer) {
                observer.disconnect();
              }

              stream.complete();

              this._observedElements["delete"](element);
            }
          }
        }]);

        return ContentObserver;
      }();

      ContentObserver.ɵfac = function ContentObserver_Factory(t) {
        return new (t || ContentObserver)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](MutationObserverFactory));
      };

      ContentObserver.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"])({
        factory: function ContentObserver_Factory() {
          return new ContentObserver(Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(MutationObserverFactory));
        },
        token: ContentObserver,
        providedIn: "root"
      });

      ContentObserver.ctorParameters = function () {
        return [{
          type: MutationObserverFactory
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](ContentObserver, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"],
          args: [{
            providedIn: 'root'
          }]
        }], function () {
          return [{
            type: MutationObserverFactory
          }];
        }, null);
      })();
      /**
       * Directive that triggers a callback whenever the content of
       * its associated element has changed.
       */


      var CdkObserveContent = /*#__PURE__*/function () {
        function CdkObserveContent(_contentObserver, _elementRef, _ngZone) {
          _classCallCheck2(this, CdkObserveContent);

          this._contentObserver = _contentObserver;
          this._elementRef = _elementRef;
          this._ngZone = _ngZone;
          /** Event emitted for each change in the element's content. */

          this.event = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
          this._disabled = false;
          this._currentSubscription = null;
        }
        /**
         * Whether observing content is disabled. This option can be used
         * to disconnect the underlying MutationObserver until it is needed.
         */


        _createClass2(CdkObserveContent, [{
          key: "disabled",
          get: function get() {
            return this._disabled;
          },
          set: function set(value) {
            this._disabled = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_0__["coerceBooleanProperty"])(value);
            this._disabled ? this._unsubscribe() : this._subscribe();
          }
          /** Debounce interval for emitting the changes. */

        }, {
          key: "debounce",
          get: function get() {
            return this._debounce;
          },
          set: function set(value) {
            this._debounce = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_0__["coerceNumberProperty"])(value);

            this._subscribe();
          }
        }, {
          key: "ngAfterContentInit",
          value: function ngAfterContentInit() {
            if (!this._currentSubscription && !this.disabled) {
              this._subscribe();
            }
          }
        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            this._unsubscribe();
          }
        }, {
          key: "_subscribe",
          value: function _subscribe() {
            var _this445 = this;

            this._unsubscribe();

            var stream = this._contentObserver.observe(this._elementRef); // TODO(mmalerba): We shouldn't be emitting on this @Output() outside the zone.
            // Consider brining it back inside the zone next time we're making breaking changes.
            // Bringing it back inside can cause things like infinite change detection loops and changed
            // after checked errors if people's code isn't handling it properly.


            this._ngZone.runOutsideAngular(function () {
              _this445._currentSubscription = (_this445.debounce ? stream.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["debounceTime"])(_this445.debounce)) : stream).subscribe(_this445.event);
            });
          }
        }, {
          key: "_unsubscribe",
          value: function _unsubscribe() {
            if (this._currentSubscription) {
              this._currentSubscription.unsubscribe();
            }
          }
        }]);

        return CdkObserveContent;
      }();

      CdkObserveContent.ɵfac = function CdkObserveContent_Factory(t) {
        return new (t || CdkObserveContent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ContentObserver), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]));
      };

      CdkObserveContent.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineDirective"]({
        type: CdkObserveContent,
        selectors: [["", "cdkObserveContent", ""]],
        inputs: {
          disabled: ["cdkObserveContentDisabled", "disabled"],
          debounce: "debounce"
        },
        outputs: {
          event: "cdkObserveContent"
        },
        exportAs: ["cdkObserveContent"]
      });

      CdkObserveContent.ctorParameters = function () {
        return [{
          type: ContentObserver
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]
        }];
      };

      CdkObserveContent.propDecorators = {
        event: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"],
          args: ['cdkObserveContent']
        }],
        disabled: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
          args: ['cdkObserveContentDisabled']
        }],
        debounce: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](CdkObserveContent, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Directive"],
          args: [{
            selector: '[cdkObserveContent]',
            exportAs: 'cdkObserveContent'
          }]
        }], function () {
          return [{
            type: ContentObserver
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]
          }];
        }, {
          event: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"],
            args: ['cdkObserveContent']
          }],
          disabled: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
            args: ['cdkObserveContentDisabled']
          }],
          debounce: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
          }]
        });
      })();

      var ObserversModule = function ObserversModule() {
        _classCallCheck2(this, ObserversModule);
      };

      ObserversModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineNgModule"]({
        type: ObserversModule
      });
      ObserversModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjector"]({
        factory: function ObserversModule_Factory(t) {
          return new (t || ObserversModule)();
        },
        providers: [MutationObserverFactory]
      });

      (function () {
        (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsetNgModuleScope"](ObserversModule, {
          declarations: [CdkObserveContent],
          exports: [CdkObserveContent]
        });
      })();
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](ObserversModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"],
          args: [{
            exports: [CdkObserveContent],
            declarations: [CdkObserveContent],
            providers: [MutationObserverFactory]
          }]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Generated bundle index. Do not edit.
       */
      //# sourceMappingURL=observers.js.map

      /***/

    },

    /***/
    "9gLZ": function gLZ(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "BidiModule", function () {
        return BidiModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "DIR_DOCUMENT", function () {
        return DIR_DOCUMENT;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Dir", function () {
        return Dir;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Directionality", function () {
        return Directionality;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_material_src_cdk_bidi_bidi_a", function () {
        return DIR_DOCUMENT_FACTORY;
      });
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /* harmony import */


      var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/common */
      "SVse");
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Injection token used to inject the document into Directionality.
       * This is used so that the value can be faked in tests.
       *
       * We can't use the real document in tests because changing the real `dir` causes geometry-based
       * tests in Safari to fail.
       *
       * We also can't re-provide the DOCUMENT token from platform-brower because the unit tests
       * themselves use things like `querySelector` in test code.
       *
       * This token is defined in a separate file from Directionality as a workaround for
       * https://github.com/angular/angular/issues/22559
       *
       * @docs-private
       */


      var DIR_DOCUMENT = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('cdk-dir-doc', {
        providedIn: 'root',
        factory: DIR_DOCUMENT_FACTORY
      });
      /** @docs-private */

      function DIR_DOCUMENT_FACTORY() {
        return Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["inject"])(_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"]);
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * The directionality (LTR / RTL) context for the application (or a subtree of it).
       * Exposes the current direction and a stream of direction changes.
       */


      var Directionality = /*#__PURE__*/function () {
        function Directionality(_document) {
          _classCallCheck2(this, Directionality);

          /** The current 'ltr' or 'rtl' value. */
          this.value = 'ltr';
          /** Stream that emits whenever the 'ltr' / 'rtl' state changes. */

          this.change = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();

          if (_document) {
            // TODO: handle 'auto' value -
            // We still need to account for dir="auto".
            // It looks like HTMLElemenet.dir is also "auto" when that's set to the attribute,
            // but getComputedStyle return either "ltr" or "rtl". avoiding getComputedStyle for now
            var bodyDir = _document.body ? _document.body.dir : null;
            var htmlDir = _document.documentElement ? _document.documentElement.dir : null;
            var value = bodyDir || htmlDir;
            this.value = value === 'ltr' || value === 'rtl' ? value : 'ltr';
          }
        }

        _createClass2(Directionality, [{
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            this.change.complete();
          }
        }]);

        return Directionality;
      }();

      Directionality.ɵfac = function Directionality_Factory(t) {
        return new (t || Directionality)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](DIR_DOCUMENT, 8));
      };

      Directionality.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({
        factory: function Directionality_Factory() {
          return new Directionality(Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(DIR_DOCUMENT, 8));
        },
        token: Directionality,
        providedIn: "root"
      });

      Directionality.ctorParameters = function () {
        return [{
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [DIR_DOCUMENT]
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](Directionality, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
          args: [{
            providedIn: 'root'
          }]
        }], function () {
          return [{
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [DIR_DOCUMENT]
            }]
          }];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Directive to listen for changes of direction of part of the DOM.
       *
       * Provides itself as Directionality such that descendant directives only need to ever inject
       * Directionality to get the closest direction.
       */


      var Dir = /*#__PURE__*/function () {
        function Dir() {
          _classCallCheck2(this, Dir);

          /** Normalized direction that accounts for invalid/unsupported values. */
          this._dir = 'ltr';
          /** Whether the `value` has been set to its initial value. */

          this._isInitialized = false;
          /** Event emitted when the direction changes. */

          this.change = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        }
        /** @docs-private */


        _createClass2(Dir, [{
          key: "dir",
          get: function get() {
            return this._dir;
          },
          set: function set(value) {
            var old = this._dir;
            var normalizedValue = value ? value.toLowerCase() : value;
            this._rawDir = value;
            this._dir = normalizedValue === 'ltr' || normalizedValue === 'rtl' ? normalizedValue : 'ltr';

            if (old !== this._dir && this._isInitialized) {
              this.change.emit(this._dir);
            }
          }
          /** Current layout direction of the element. */

        }, {
          key: "value",
          get: function get() {
            return this.dir;
          }
          /** Initialize once default value has been set. */

        }, {
          key: "ngAfterContentInit",
          value: function ngAfterContentInit() {
            this._isInitialized = true;
          }
        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            this.change.complete();
          }
        }]);

        return Dir;
      }();

      Dir.ɵfac = function Dir_Factory(t) {
        return new (t || Dir)();
      };

      Dir.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: Dir,
        selectors: [["", "dir", ""]],
        hostVars: 1,
        hostBindings: function Dir_HostBindings(rf, ctx) {
          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("dir", ctx._rawDir);
          }
        },
        inputs: {
          dir: "dir"
        },
        outputs: {
          change: "dirChange"
        },
        exportAs: ["dir"],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([{
          provide: Directionality,
          useExisting: Dir
        }])]
      });
      Dir.propDecorators = {
        change: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"],
          args: ['dirChange']
        }],
        dir: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](Dir, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
          args: [{
            selector: '[dir]',
            providers: [{
              provide: Directionality,
              useExisting: Dir
            }],
            host: {
              '[attr.dir]': '_rawDir'
            },
            exportAs: 'dir'
          }]
        }], function () {
          return [];
        }, {
          change: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"],
            args: ['dirChange']
          }],
          dir: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }]
        });
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var BidiModule = function BidiModule() {
        _classCallCheck2(this, BidiModule);
      };

      BidiModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
        type: BidiModule
      });
      BidiModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
        factory: function BidiModule_Factory(t) {
          return new (t || BidiModule)();
        }
      });

      (function () {
        (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](BidiModule, {
          declarations: [Dir],
          exports: [Dir]
        });
      })();
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](BidiModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
          args: [{
            exports: [Dir],
            declarations: [Dir]
          }]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Generated bundle index. Do not edit.
       */
      //# sourceMappingURL=bidi.js.map

      /***/

    },

    /***/
    "9ig3": function ig3(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return startOfMonth;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name startOfMonth
       * @category Month Helpers
       * @summary Return the start of a month for the given date.
       *
       * @description
       * Return the start of a month for the given date.
       * The result will be in the local timezone.
       *
       * ### 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 {Date|Number} date - the original date
       * @returns {Date} the start of a month
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // The start of a month for 2 September 2014 11:55:00:
       * var result = startOfMonth(new Date(2014, 8, 2, 11, 55, 0))
       * //=> Mon Sep 01 2014 00:00:00
       */


      function startOfMonth(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);
        date.setDate(1);
        date.setHours(0, 0, 0, 0);
        return date;
      }
      /***/

    },

    /***/
    "9ihq": function ihq(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "elementAt", function () {
        return elementAt;
      });
      /* harmony import */


      var _util_ArgumentOutOfRangeError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../util/ArgumentOutOfRangeError */
      "4I5i");
      /* harmony import */


      var _filter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ./filter */
      "pLZG");
      /* harmony import */


      var _throwIfEmpty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ./throwIfEmpty */
      "XDbj");
      /* harmony import */


      var _defaultIfEmpty__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ./defaultIfEmpty */
      "xbPD");
      /* harmony import */


      var _take__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! ./take */
      "IzEk");

      function elementAt(index, defaultValue) {
        if (index < 0) {
          throw new _util_ArgumentOutOfRangeError__WEBPACK_IMPORTED_MODULE_0__["ArgumentOutOfRangeError"]();
        }

        var hasDefaultValue = arguments.length >= 2;
        return function (source) {
          return source.pipe(Object(_filter__WEBPACK_IMPORTED_MODULE_1__["filter"])(function (v, i) {
            return i === index;
          }), Object(_take__WEBPACK_IMPORTED_MODULE_4__["take"])(1), hasDefaultValue ? Object(_defaultIfEmpty__WEBPACK_IMPORTED_MODULE_3__["defaultIfEmpty"])(defaultValue) : Object(_throwIfEmpty__WEBPACK_IMPORTED_MODULE_2__["throwIfEmpty"])(function () {
            return new _util_ArgumentOutOfRangeError__WEBPACK_IMPORTED_MODULE_0__["ArgumentOutOfRangeError"]();
          }));
        };
      } //# sourceMappingURL=elementAt.js.map

      /***/

    },

    /***/
    "9ppp": function ppp(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ObjectUnsubscribedError", function () {
        return ObjectUnsubscribedError;
      });

      var ObjectUnsubscribedErrorImpl = function () {
        function ObjectUnsubscribedErrorImpl() {
          Error.call(this);
          this.message = 'object unsubscribed';
          this.name = 'ObjectUnsubscribedError';
          return this;
        }

        ObjectUnsubscribedErrorImpl.prototype = Object.create(Error.prototype);
        return ObjectUnsubscribedErrorImpl;
      }();

      var ObjectUnsubscribedError = ObjectUnsubscribedErrorImpl; //# sourceMappingURL=ObjectUnsubscribedError.js.map

      /***/
    },

    /***/
    "9rRi": function rRi(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Scottish Gaelic [gd]
      //! author : Jon Ashdown : https://github.com/jonashdown
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var months = ['Am Faoilleach', 'An Gearran', 'Am Màrt', 'An Giblean', 'An Cèitean', 'An t-Ògmhios', 'An t-Iuchar', 'An Lùnastal', 'An t-Sultain', 'An Dàmhair', 'An t-Samhain', 'An Dùbhlachd'],
            monthsShort = ['Faoi', 'Gear', 'Màrt', 'Gibl', 'Cèit', 'Ògmh', 'Iuch', 'Lùn', 'Sult', 'Dàmh', 'Samh', 'Dùbh'],
            weekdays = ['Didòmhnaich', 'Diluain', 'Dimàirt', 'Diciadain', 'Diardaoin', 'Dihaoine', 'Disathairne'],
            weekdaysShort = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'],
            weekdaysMin = ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'];
        var gd = moment.defineLocale('gd', {
          months: months,
          monthsShort: monthsShort,
          monthsParseExact: true,
          weekdays: weekdays,
          weekdaysShort: weekdaysShort,
          weekdaysMin: weekdaysMin,
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd, D MMMM YYYY HH:mm'
          },
          calendar: {
            sameDay: '[An-diugh aig] LT',
            nextDay: '[A-màireach aig] LT',
            nextWeek: 'dddd [aig] LT',
            lastDay: '[An-dè aig] LT',
            lastWeek: 'dddd [seo chaidh] [aig] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'ann an %s',
            past: 'bho chionn %s',
            s: 'beagan diogan',
            ss: '%d diogan',
            m: 'mionaid',
            mm: '%d mionaidean',
            h: 'uair',
            hh: '%d uairean',
            d: 'latha',
            dd: '%d latha',
            M: 'mìos',
            MM: '%d mìosan',
            y: 'bliadhna',
            yy: '%d bliadhna'
          },
          dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/,
          ordinal: function ordinal(number) {
            var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
            return number + output;
          },
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return gd;
      });
      /***/

    },

    /***/
    "A+xa": function AXa(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Chuvash [cv]
      //! author : Anatoly Mironov : https://github.com/mirontoli
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var cv = moment.defineLocale('cv', {
          months: 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split('_'),
          monthsShort: 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'),
          weekdays: 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split('_'),
          weekdaysShort: 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'),
          weekdaysMin: 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'),
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD-MM-YYYY',
            LL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]',
            LLL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
            LLLL: 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm'
          },
          calendar: {
            sameDay: '[Паян] LT [сехетре]',
            nextDay: '[Ыран] LT [сехетре]',
            lastDay: '[Ӗнер] LT [сехетре]',
            nextWeek: '[Ҫитес] dddd LT [сехетре]',
            lastWeek: '[Иртнӗ] dddd LT [сехетре]',
            sameElse: 'L'
          },
          relativeTime: {
            future: function future(output) {
              var affix = /сехет$/i.exec(output) ? 'рен' : /ҫул$/i.exec(output) ? 'тан' : 'ран';
              return output + affix;
            },
            past: '%s каялла',
            s: 'пӗр-ик ҫеккунт',
            ss: '%d ҫеккунт',
            m: 'пӗр минут',
            mm: '%d минут',
            h: 'пӗр сехет',
            hh: '%d сехет',
            d: 'пӗр кун',
            dd: '%d кун',
            M: 'пӗр уйӑх',
            MM: '%d уйӑх',
            y: 'пӗр ҫул',
            yy: '%d ҫул'
          },
          dayOfMonthOrdinalParse: /\d{1,2}-мӗш/,
          ordinal: '%d-мӗш',
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 7 // The week that contains Jan 7th is the first week of the year.

          }
        });
        return cv;
      });
      /***/

    },

    /***/
    "A3iJ": function A3iJ(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "partition", function () {
        return partition;
      });
      /* harmony import */


      var _util_not__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../util/not */
      "F97/");
      /* harmony import */


      var _filter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ./filter */
      "pLZG");

      function partition(predicate, thisArg) {
        return function (source) {
          return [Object(_filter__WEBPACK_IMPORTED_MODULE_1__["filter"])(predicate, thisArg)(source), Object(_filter__WEBPACK_IMPORTED_MODULE_1__["filter"])(Object(_util_not__WEBPACK_IMPORTED_MODULE_0__["not"])(predicate, thisArg))(source)];
        };
      } //# sourceMappingURL=partition.js.map

      /***/

    },

    /***/
    "AF4N": function AF4N(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return differenceInCalendarYears;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name differenceInCalendarYears
       * @category Year Helpers
       * @summary Get the number of calendar years between the given dates.
       *
       * @description
       * Get the number of calendar years between the given dates.
       *
       * ### 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 {Date|Number} dateLeft - the later date
       * @param {Date|Number} dateRight - the earlier date
       * @returns {Number} the number of calendar years
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // How many calendar years are between 31 December 2013 and 11 February 2015?
       * var result = differenceInCalendarYears(
       *   new Date(2015, 1, 11),
       *   new Date(2013, 11, 31)
       * )
       * //=> 2
       */


      function differenceInCalendarYears(dirtyDateLeft, dirtyDateRight) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(2, arguments);
        var dateLeft = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateLeft);
        var dateRight = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateRight);
        return dateLeft.getFullYear() - dateRight.getFullYear();
      }
      /***/

    },

    /***/
    "ALsQ": function ALsQ(module, exports, __webpack_require__) {
      ;

      (function (root, factory, undef) {
        if (true) {
          // CommonJS
          module.exports = exports = factory(__webpack_require__(
          /*! ./core */
          "Ib8C"), __webpack_require__(
          /*! ./cipher-core */
          "OLod"));
        } else {}
      })(this, function (CryptoJS) {
        /**
         * Cipher Feedback block mode.
         */
        CryptoJS.mode.CFB = function () {
          var CFB = CryptoJS.lib.BlockCipherMode.extend();
          CFB.Encryptor = CFB.extend({
            processBlock: function processBlock(words, offset) {
              // Shortcuts
              var cipher = this._cipher;
              var blockSize = cipher.blockSize;
              generateKeystreamAndEncrypt.call(this, words, offset, blockSize, cipher); // Remember this block to use with next block

              this._prevBlock = words.slice(offset, offset + blockSize);
            }
          });
          CFB.Decryptor = CFB.extend({
            processBlock: function processBlock(words, offset) {
              // Shortcuts
              var cipher = this._cipher;
              var blockSize = cipher.blockSize; // Remember this block to use with next block

              var thisBlock = words.slice(offset, offset + blockSize);
              generateKeystreamAndEncrypt.call(this, words, offset, blockSize, cipher); // This block becomes the previous block

              this._prevBlock = thisBlock;
            }
          });

          function generateKeystreamAndEncrypt(words, offset, blockSize, cipher) {
            var keystream; // Shortcut

            var iv = this._iv; // Generate keystream

            if (iv) {
              keystream = iv.slice(0); // Remove IV for subsequent blocks

              this._iv = undefined;
            } else {
              keystream = this._prevBlock;
            }

            cipher.encryptBlock(keystream, 0); // Encrypt

            for (var i = 0; i < blockSize; i++) {
              words[offset + i] ^= keystream[i];
            }
          }

          return CFB;
        }();

        return CryptoJS.mode.CFB;
      });
      /***/

    },

    /***/
    "AQ68": function AQ68(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Uzbek Latin [uz-latn]
      //! author : Rasulbek Mirzayev : github.com/Rasulbeeek
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var uzLatn = moment.defineLocale('uz-latn', {
          months: 'Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr'.split('_'),
          monthsShort: 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split('_'),
          weekdays: 'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split('_'),
          weekdaysShort: 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'),
          weekdaysMin: 'Ya_Du_Se_Cho_Pa_Ju_Sha'.split('_'),
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'D MMMM YYYY, dddd HH:mm'
          },
          calendar: {
            sameDay: '[Bugun soat] LT [da]',
            nextDay: '[Ertaga] LT [da]',
            nextWeek: 'dddd [kuni soat] LT [da]',
            lastDay: '[Kecha soat] LT [da]',
            lastWeek: "[O'tgan] dddd [kuni soat] LT [da]",
            sameElse: 'L'
          },
          relativeTime: {
            future: 'Yaqin %s ichida',
            past: 'Bir necha %s oldin',
            s: 'soniya',
            ss: '%d soniya',
            m: 'bir daqiqa',
            mm: '%d daqiqa',
            h: 'bir soat',
            hh: '%d soat',
            d: 'bir kun',
            dd: '%d kun',
            M: 'bir oy',
            MM: '%d oy',
            y: 'bir yil',
            yy: '%d yil'
          },
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 7 // The week that contains Jan 7th is the first week of the year.

          }
        });
        return uzLatn;
      });
      /***/

    },

    /***/
    "AWcS": function AWcS(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return isThisSecond;
      });
      /* harmony import */


      var _isSameSecond_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../isSameSecond/index.js */
      "B3eN");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name isThisSecond
       * @category Second Helpers
       * @summary Is the given date in the same second as the current date?
       * @pure false
       *
       * @description
       * Is the given date in the same second as the current date?
       *
       * > ⚠️ Please note that this function is not present in the FP submodule as
       * > it uses `Date.now()` internally hence impure and can't be safely curried.
       *
       * ### 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 {Date|Number} date - the date to check
       * @returns {Boolean} the date is in this second
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // If now is 25 September 2014 18:30:15.500,
       * // is 25 September 2014 18:30:15.000 in this second?
       * var result = isThisSecond(new Date(2014, 8, 25, 18, 30, 15))
       * //=> true
       */


      function isThisSecond(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        return Object(_isSameSecond_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Date.now(), dirtyDate);
      }
      /***/

    },

    /***/
    "AXJd": function AXJd(module, exports, __webpack_require__) {
      "use strict";
      /**
       * angular2-cookie - Implementation of Angular 1.x $cookies service to Angular 2
       * @version v1.2.6
       * @link https://github.com/salemdar/angular2-cookie#readme
       * @license MIT
       */

      var __decorate = this && this.__decorate || function (decorators, target, key, desc) {
        var c = arguments.length,
            r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
            d;
        if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
          if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
        }
        return c > 3 && r && Object.defineProperty(target, key, r), r;
      };

      var __metadata = this && this.__metadata || function (k, v) {
        if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
      };

      var __param = this && this.__param || function (paramIndex, decorator) {
        return function (target, key) {
          decorator(target, key, paramIndex);
        };
      };

      var core_1 = __webpack_require__(
      /*! @angular/core */
      "8Y7J");

      var base_cookie_options_1 = __webpack_require__(
      /*! ./base-cookie-options */
      "mRR+");

      var CookieService = function () {
        function CookieService(_defaultOptions) {
          this._defaultOptions = _defaultOptions;
        }

        Object.defineProperty(CookieService.prototype, "cookieString", {
          get: function get() {
            return document.cookie || '';
          },
          set: function set(val) {
            document.cookie = val;
          },
          enumerable: true,
          configurable: true
        });
        /**
         * @name CookieService#get
         *
         * @description
         * Returns the value of given cookie key.
         *
         * @param {string} key Id to use for lookup.
         * @returns {string} Raw cookie value.
         */

        CookieService.prototype.get = function (key) {
          return this._cookieReader()[key];
        };
        /**
         * @name CookieService#getObject
         *
         * @description
         * Returns the deserialized value of given cookie key.
         *
         * @param {string} key Id to use for lookup.
         * @returns {Object} Deserialized cookie value.
         */


        CookieService.prototype.getObject = function (key) {
          var value = this.get(key);
          return value ? JSON.parse(value) : value;
        };
        /**
         * @name CookieService#getAll
         *
         * @description
         * Returns a key value object with all the cookies.
         *
         * @returns {Object} All cookies
         */


        CookieService.prototype.getAll = function () {
          return this._cookieReader();
        };
        /**
         * @name CookieService#put
         *
         * @description
         * Sets a value for given cookie key.
         *
         * @param {string} key Id for the `value`.
         * @param {string} value Raw value to be stored.
         * @param {CookieOptionsArgs} options (Optional) Options object.
         */


        CookieService.prototype.put = function (key, value, options) {
          this._cookieWriter()(key, value, options);
        };
        /**
         * @name CookieService#putObject
         *
         * @description
         * Serializes and sets a value for given cookie key.
         *
         * @param {string} key Id for the `value`.
         * @param {Object} value Value to be stored.
         * @param {CookieOptionsArgs} options (Optional) Options object.
         */


        CookieService.prototype.putObject = function (key, value, options) {
          this.put(key, JSON.stringify(value), options);
        };
        /**
         * @name CookieService#remove
         *
         * @description
         * Remove given cookie.
         *
         * @param {string} key Id of the key-value pair to delete.
         * @param {CookieOptionsArgs} options (Optional) Options object.
         */


        CookieService.prototype.remove = function (key, options) {
          this._cookieWriter()(key, undefined, options);
        };
        /**
         * @name CookieService#removeAll
         *
         * @description
         * Remove all cookies.
         */


        CookieService.prototype.removeAll = function () {
          var _this = this;

          var cookies = this.getAll();
          Object.keys(cookies).forEach(function (key) {
            _this.remove(key);
          });
        };

        CookieService.prototype._cookieReader = function () {
          var lastCookies = {};
          var lastCookieString = '';
          var that = this;
          var cookieArray, cookie, i, index, name;
          var currentCookieString = this.cookieString;

          if (currentCookieString !== lastCookieString) {
            lastCookieString = currentCookieString;
            cookieArray = lastCookieString.split('; ');
            lastCookies = {};

            for (i = 0; i < cookieArray.length; i++) {
              cookie = cookieArray[i];
              index = cookie.indexOf('=');

              if (index > 0) {
                name = that._safeDecodeURIComponent(cookie.substring(0, index)); // the first value that is seen for a cookie is the most
                // specific one.  values for the same cookie name that
                // follow are for less specific paths.

                if (this.isBlank(lastCookies[name])) {
                  lastCookies[name] = that._safeDecodeURIComponent(cookie.substring(index + 1));
                }
              }
            }
          }

          return lastCookies;
        };

        CookieService.prototype._cookieWriter = function () {
          var that = this;
          return function (name, value, options) {
            that.cookieString = that._buildCookieString(name, value, options);
          };
        };

        CookieService.prototype._safeDecodeURIComponent = function (str) {
          try {
            return decodeURIComponent(str);
          } catch (e) {
            return str;
          }
        };

        CookieService.prototype._buildCookieString = function (name, value, options) {
          var cookiePath = '/';
          var path, expires;
          var defaultOpts = this._defaultOptions || new base_cookie_options_1.CookieOptions({
            path: cookiePath
          });

          var opts = this._mergeOptions(defaultOpts, options);

          expires = opts.expires;

          if (this.isBlank(value)) {
            expires = 'Thu, 01 Jan 1970 00:00:00 GMT';
            value = '';
          }

          if (this.isString(expires)) {
            expires = new Date(expires);
          }

          var str = encodeURIComponent(name) + '=' + encodeURIComponent(value);
          str += opts.path ? ';path=' + opts.path : '';
          str += opts.domain ? ';domain=' + opts.domain : '';
          str += expires ? ';expires=' + expires.toUTCString() : '';
          str += opts.secure ? ';secure' : ''; // per http://www.ietf.org/rfc/rfc2109.txt browser must allow at minimum:
          // - 300 cookies
          // - 20 cookies per unique domain
          // - 4096 bytes per cookie

          var cookieLength = str.length + 1;

          if (cookieLength > 4096) {
            console.log("Cookie '" + name + "' possibly not set or overflowed because it was too \n      large (" + cookieLength + " > 4096 bytes)!");
          }

          return str;
        };

        CookieService.prototype._mergeOptions = function (defaultOpts, providedOpts) {
          var newOpts = defaultOpts;

          if (this.isPresent(providedOpts)) {
            return newOpts.merge(new base_cookie_options_1.CookieOptions(providedOpts));
          }

          return newOpts;
        };

        CookieService.prototype.isBlank = function (obj) {
          return obj === undefined || obj === null;
        };

        CookieService.prototype.isPresent = function (obj) {
          return obj !== undefined && obj !== null;
        };

        CookieService.prototype.isString = function (obj) {
          return typeof obj === 'string';
        };

        CookieService = __decorate([core_1.Injectable(), __param(0, core_1.Optional()), __metadata('design:paramtypes', [base_cookie_options_1.CookieOptions])], CookieService);
        return CookieService;
      }();

      exports.CookieService = CookieService; //# sourceMappingURL=cookies.service.js.map

      /***/
    },

    /***/
    "AkX2": function AkX2(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return differenceInMonths;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _differenceInCalendarMonths_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../differenceInCalendarMonths/index.js */
      "pvlY");
      /* harmony import */


      var _compareAsc_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../compareAsc/index.js */
      "JhOC");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name differenceInMonths
       * @category Month Helpers
       * @summary Get the number of full months between the given dates.
       *
       * @description
       * Get the number of full months between the given dates.
       *
       * ### 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 {Date|Number} dateLeft - the later date
       * @param {Date|Number} dateRight - the earlier date
       * @returns {Number} the number of full months
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // How many full months are between 31 January 2014 and 1 September 2014?
       * var result = differenceInMonths(new Date(2014, 8, 1), new Date(2014, 0, 31))
       * //=> 7
       */


      function differenceInMonths(dirtyDateLeft, dirtyDateRight) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(2, arguments);
        var dateLeft = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateLeft);
        var dateRight = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateRight);
        var sign = Object(_compareAsc_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(dateLeft, dateRight);
        var difference = Math.abs(Object(_differenceInCalendarMonths_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dateLeft, dateRight));
        dateLeft.setMonth(dateLeft.getMonth() - sign * difference); // Math.abs(diff in full months - diff in calendar months) === 1 if last calendar month is not full
        // If so, result must be decreased by 1 in absolute value

        var isLastMonthNotFull = Object(_compareAsc_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(dateLeft, dateRight) === -sign;
        var result = sign * (difference - isLastMonthNotFull); // Prevent negative zero

        return result === 0 ? 0 : result;
      }
      /***/

    },

    /***/
    "AvvY": function AvvY(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Malayalam [ml]
      //! author : Floyd Pink : https://github.com/floydpink
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var ml = moment.defineLocale('ml', {
          months: 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split('_'),
          monthsShort: 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split('_'),
          monthsParseExact: true,
          weekdays: 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split('_'),
          weekdaysShort: 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'),
          weekdaysMin: 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'),
          longDateFormat: {
            LT: 'A h:mm -നു',
            LTS: 'A h:mm:ss -നു',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY, A h:mm -നു',
            LLLL: 'dddd, D MMMM YYYY, A h:mm -നു'
          },
          calendar: {
            sameDay: '[ഇന്ന്] LT',
            nextDay: '[നാളെ] LT',
            nextWeek: 'dddd, LT',
            lastDay: '[ഇന്നലെ] LT',
            lastWeek: '[കഴിഞ്ഞ] dddd, LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: '%s കഴിഞ്ഞ്',
            past: '%s മുൻപ്',
            s: 'അൽപ നിമിഷങ്ങൾ',
            ss: '%d സെക്കൻഡ്',
            m: 'ഒരു മിനിറ്റ്',
            mm: '%d മിനിറ്റ്',
            h: 'ഒരു മണിക്കൂർ',
            hh: '%d മണിക്കൂർ',
            d: 'ഒരു ദിവസം',
            dd: '%d ദിവസം',
            M: 'ഒരു മാസം',
            MM: '%d മാസം',
            y: 'ഒരു വർഷം',
            yy: '%d വർഷം'
          },
          meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,
          meridiemHour: function meridiemHour(hour, meridiem) {
            if (hour === 12) {
              hour = 0;
            }

            if (meridiem === 'രാത്രി' && hour >= 4 || meridiem === 'ഉച്ച കഴിഞ്ഞ്' || meridiem === 'വൈകുന്നേരം') {
              return hour + 12;
            } else {
              return hour;
            }
          },
          meridiem: function meridiem(hour, minute, isLower) {
            if (hour < 4) {
              return 'രാത്രി';
            } else if (hour < 12) {
              return 'രാവിലെ';
            } else if (hour < 17) {
              return 'ഉച്ച കഴിഞ്ഞ്';
            } else if (hour < 20) {
              return 'വൈകുന്നേരം';
            } else {
              return 'രാത്രി';
            }
          }
        });
        return ml;
      });
      /***/

    },

    /***/
    "B3eN": function B3eN(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return isSameSecond;
      });
      /* harmony import */


      var _startOfSecond_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../startOfSecond/index.js */
      "WJMa");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name isSameSecond
       * @category Second Helpers
       * @summary Are the given dates in the same second?
       *
       * @description
       * Are the given dates in the same second?
       *
       * ### 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 {Date|Number} dateLeft - the first date to check
       * @param {Date|Number} dateRight - the second date to check
       * @returns {Boolean} the dates are in the same second
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // Are 4 September 2014 06:30:15.000 and 4 September 2014 06:30.15.500
       * // in the same second?
       * var result = isSameSecond(
       *   new Date(2014, 8, 4, 6, 30, 15),
       *   new Date(2014, 8, 4, 6, 30, 15, 500)
       * )
       * //=> true
       */


      function isSameSecond(dirtyDateLeft, dirtyDateRight) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(2, arguments);
        var dateLeftStartOfSecond = Object(_startOfSecond_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateLeft);
        var dateRightStartOfSecond = Object(_startOfSecond_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateRight);
        return dateLeftStartOfSecond.getTime() === dateRightStartOfSecond.getTime();
      }
      /***/

    },

    /***/
    "B55N": function B55N(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Japanese [ja]
      //! author : LI Long : https://github.com/baryon
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var ja = moment.defineLocale('ja', {
          eras: [{
            since: '2019-05-01',
            offset: 1,
            name: '令和',
            narrow: '㋿',
            abbr: 'R'
          }, {
            since: '1989-01-08',
            until: '2019-04-30',
            offset: 1,
            name: '平成',
            narrow: '㍻',
            abbr: 'H'
          }, {
            since: '1926-12-25',
            until: '1989-01-07',
            offset: 1,
            name: '昭和',
            narrow: '㍼',
            abbr: 'S'
          }, {
            since: '1912-07-30',
            until: '1926-12-24',
            offset: 1,
            name: '大正',
            narrow: '㍽',
            abbr: 'T'
          }, {
            since: '1873-01-01',
            until: '1912-07-29',
            offset: 6,
            name: '明治',
            narrow: '㍾',
            abbr: 'M'
          }, {
            since: '0001-01-01',
            until: '1873-12-31',
            offset: 1,
            name: '西暦',
            narrow: 'AD',
            abbr: 'AD'
          }, {
            since: '0000-12-31',
            until: -Infinity,
            offset: 1,
            name: '紀元前',
            narrow: 'BC',
            abbr: 'BC'
          }],
          eraYearOrdinalRegex: /(元|\d+)年/,
          eraYearOrdinalParse: function eraYearOrdinalParse(input, match) {
            return match[1] === '元' ? 1 : parseInt(match[1] || input, 10);
          },
          months: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
          monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
          weekdays: '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'),
          weekdaysShort: '日_月_火_水_木_金_土'.split('_'),
          weekdaysMin: '日_月_火_水_木_金_土'.split('_'),
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'YYYY/MM/DD',
            LL: 'YYYY年M月D日',
            LLL: 'YYYY年M月D日 HH:mm',
            LLLL: 'YYYY年M月D日 dddd HH:mm',
            l: 'YYYY/MM/DD',
            ll: 'YYYY年M月D日',
            lll: 'YYYY年M月D日 HH:mm',
            llll: 'YYYY年M月D日(ddd) HH:mm'
          },
          meridiemParse: /午前|午後/i,
          isPM: function isPM(input) {
            return input === '午後';
          },
          meridiem: function meridiem(hour, minute, isLower) {
            if (hour < 12) {
              return '午前';
            } else {
              return '午後';
            }
          },
          calendar: {
            sameDay: '[今日] LT',
            nextDay: '[明日] LT',
            nextWeek: function nextWeek(now) {
              if (now.week() !== this.week()) {
                return '[来週]dddd LT';
              } else {
                return 'dddd LT';
              }
            },
            lastDay: '[昨日] LT',
            lastWeek: function lastWeek(now) {
              if (this.week() !== now.week()) {
                return '[先週]dddd LT';
              } else {
                return 'dddd LT';
              }
            },
            sameElse: 'L'
          },
          dayOfMonthOrdinalParse: /\d{1,2}日/,
          ordinal: function ordinal(number, period) {
            switch (period) {
              case 'y':
                return number === 1 ? '元年' : number + '年';

              case 'd':
              case 'D':
              case 'DDD':
                return number + '日';

              default:
                return number;
            }
          },
          relativeTime: {
            future: '%s後',
            past: '%s前',
            s: '数秒',
            ss: '%d秒',
            m: '1分',
            mm: '%d分',
            h: '1時間',
            hh: '%d時間',
            d: '1日',
            dd: '%d日',
            M: '1ヶ月',
            MM: '%dヶ月',
            y: '1年',
            yy: '%d年'
          }
        });
        return ja;
      });
      /***/

    },

    /***/
    "BFxc": function BFxc(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "takeLast", function () {
        return takeLast;
      });
      /* harmony import */


      var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Subscriber */
      "7o/Q");
      /* harmony import */


      var _util_ArgumentOutOfRangeError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../util/ArgumentOutOfRangeError */
      "4I5i");
      /* harmony import */


      var _observable_empty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../observable/empty */
      "EY2u");

      function takeLast(count) {
        return function takeLastOperatorFunction(source) {
          if (count === 0) {
            return Object(_observable_empty__WEBPACK_IMPORTED_MODULE_2__["empty"])();
          } else {
            return source.lift(new TakeLastOperator(count));
          }
        };
      }

      var TakeLastOperator = /*#__PURE__*/function () {
        function TakeLastOperator(total) {
          _classCallCheck2(this, TakeLastOperator);

          this.total = total;

          if (this.total < 0) {
            throw new _util_ArgumentOutOfRangeError__WEBPACK_IMPORTED_MODULE_1__["ArgumentOutOfRangeError"]();
          }
        }

        _createClass2(TakeLastOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            return source.subscribe(new TakeLastSubscriber(subscriber, this.total));
          }
        }]);

        return TakeLastOperator;
      }();

      var TakeLastSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_11) {
        _inherits2(TakeLastSubscriber, _Subscriber__WEBPACK_11);

        var _super173 = _createSuper2(TakeLastSubscriber);

        function TakeLastSubscriber(destination, total) {
          var _this446;

          _classCallCheck2(this, TakeLastSubscriber);

          _this446 = _super173.call(this, destination);
          _this446.total = total;
          _this446.ring = new Array();
          _this446.count = 0;
          return _this446;
        }

        _createClass2(TakeLastSubscriber, [{
          key: "_next",
          value: function _next(value) {
            var ring = this.ring;
            var total = this.total;
            var count = this.count++;

            if (ring.length < total) {
              ring.push(value);
            } else {
              var index = count % total;
              ring[index] = value;
            }
          }
        }, {
          key: "_complete",
          value: function _complete() {
            var destination = this.destination;
            var count = this.count;

            if (count > 0) {
              var total = this.count >= this.total ? this.total : this.count;
              var ring = this.ring;

              for (var i = 0; i < total; i++) {
                var idx = count++ % total;
                destination.next(ring[idx]);
              }
            }

            destination.complete();
          }
        }]);

        return TakeLastSubscriber;
      }(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]); //# sourceMappingURL=takeLast.js.map

      /***/

    },

    /***/
    "BKKT": function BKKT(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return getISOWeekYear;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _startOfISOWeek_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../startOfISOWeek/index.js */
      "1dmy");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name getISOWeekYear
       * @category ISO Week-Numbering Year Helpers
       * @summary Get the ISO week-numbering year of the given date.
       *
       * @description
       * Get the ISO week-numbering year of the given date,
       * which always starts 3 days before the year's first Thursday.
       *
       * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
       *
       * ### 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).
       *
       * - The function was renamed from `getISOYear` to `getISOWeekYear`.
       *   "ISO week year" is short for [ISO week-numbering year](https://en.wikipedia.org/wiki/ISO_week_date).
       *   This change makes the name consistent with
       *   locale-dependent week-numbering year helpers, e.g., `getWeekYear`.
       *
       * @param {Date|Number} date - the given date
       * @returns {Number} the ISO week-numbering year
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // Which ISO-week numbering year is 2 January 2005?
       * var result = getISOWeekYear(new Date(2005, 0, 2))
       * //=> 2004
       */


      function getISOWeekYear(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(1, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);
        var year = date.getFullYear();
        var fourthOfJanuaryOfNextYear = new Date(0);
        fourthOfJanuaryOfNextYear.setFullYear(year + 1, 0, 4);
        fourthOfJanuaryOfNextYear.setHours(0, 0, 0, 0);
        var startOfNextYear = Object(_startOfISOWeek_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(fourthOfJanuaryOfNextYear);
        var fourthOfJanuaryOfThisYear = new Date(0);
        fourthOfJanuaryOfThisYear.setFullYear(year, 0, 4);
        fourthOfJanuaryOfThisYear.setHours(0, 0, 0, 0);
        var startOfThisYear = Object(_startOfISOWeek_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(fourthOfJanuaryOfThisYear);

        if (date.getTime() >= startOfNextYear.getTime()) {
          return year + 1;
        } else if (date.getTime() >= startOfThisYear.getTime()) {
          return year;
        } else {
          return year - 1;
        }
      }
      /***/

    },

    /***/
    "BSbQ": function BSbQ(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatDivider", function () {
        return MatDivider;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatDividerModule", function () {
        return MatDividerModule;
      });
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /* harmony import */


      var _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/cdk/coercion */
      "8LU1");
      /* harmony import */


      var _angular_material_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! @angular/material/core */
      "UhP/");
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var MatDivider = /*#__PURE__*/function () {
        function MatDivider() {
          _classCallCheck2(this, MatDivider);

          this._vertical = false;
          this._inset = false;
        }
        /** Whether the divider is vertically aligned. */


        _createClass2(MatDivider, [{
          key: "vertical",
          get: function get() {
            return this._vertical;
          },
          set: function set(value) {
            this._vertical = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_1__["coerceBooleanProperty"])(value);
          }
          /** Whether the divider is an inset divider. */

        }, {
          key: "inset",
          get: function get() {
            return this._inset;
          },
          set: function set(value) {
            this._inset = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_1__["coerceBooleanProperty"])(value);
          }
        }]);

        return MatDivider;
      }();

      MatDivider.ɵfac = function MatDivider_Factory(t) {
        return new (t || MatDivider)();
      };

      MatDivider.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
        type: MatDivider,
        selectors: [["mat-divider"]],
        hostAttrs: ["role", "separator", 1, "mat-divider"],
        hostVars: 7,
        hostBindings: function MatDivider_HostBindings(rf, ctx) {
          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("aria-orientation", ctx.vertical ? "vertical" : "horizontal");

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("mat-divider-vertical", ctx.vertical)("mat-divider-horizontal", !ctx.vertical)("mat-divider-inset", ctx.inset);
          }
        },
        inputs: {
          vertical: "vertical",
          inset: "inset"
        },
        decls: 0,
        vars: 0,
        template: function MatDivider_Template(rf, ctx) {},
        styles: [".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],
        encapsulation: 2,
        changeDetection: 0
      });
      MatDivider.propDecorators = {
        vertical: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }],
        inset: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatDivider, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
          args: [{
            selector: 'mat-divider',
            host: {
              'role': 'separator',
              '[attr.aria-orientation]': 'vertical ? "vertical" : "horizontal"',
              '[class.mat-divider-vertical]': 'vertical',
              '[class.mat-divider-horizontal]': '!vertical',
              '[class.mat-divider-inset]': 'inset',
              'class': 'mat-divider'
            },
            template: '',
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush,
            styles: [".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"]
          }]
        }], function () {
          return [];
        }, {
          vertical: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }],
          inset: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }]
        });
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var MatDividerModule = function MatDividerModule() {
        _classCallCheck2(this, MatDividerModule);
      };

      MatDividerModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
        type: MatDividerModule
      });
      MatDividerModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
        factory: function MatDividerModule_Factory(t) {
          return new (t || MatDividerModule)();
        },
        imports: [[_angular_material_core__WEBPACK_IMPORTED_MODULE_2__["MatCommonModule"]], _angular_material_core__WEBPACK_IMPORTED_MODULE_2__["MatCommonModule"]]
      });

      (function () {
        (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](MatDividerModule, {
          declarations: function declarations() {
            return [MatDivider];
          },
          imports: function imports() {
            return [_angular_material_core__WEBPACK_IMPORTED_MODULE_2__["MatCommonModule"]];
          },
          exports: function exports() {
            return [MatDivider, _angular_material_core__WEBPACK_IMPORTED_MODULE_2__["MatCommonModule"]];
          }
        });
      })();
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatDividerModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
          args: [{
            imports: [_angular_material_core__WEBPACK_IMPORTED_MODULE_2__["MatCommonModule"]],
            exports: [MatDivider, _angular_material_core__WEBPACK_IMPORTED_MODULE_2__["MatCommonModule"]],
            declarations: [MatDivider]
          }]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Generated bundle index. Do not edit.
       */
      //# sourceMappingURL=divider.js.map

      /***/

    },

    /***/
    "BTe0": function BTe0(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MAT_PROGRESS_BAR_LOCATION", function () {
        return MAT_PROGRESS_BAR_LOCATION;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MAT_PROGRESS_BAR_LOCATION_FACTORY", function () {
        return MAT_PROGRESS_BAR_LOCATION_FACTORY;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatProgressBar", function () {
        return MatProgressBar;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatProgressBarModule", function () {
        return MatProgressBarModule;
      });
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /* harmony import */


      var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/common */
      "SVse");
      /* harmony import */


      var _angular_material_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! @angular/material/core */
      "UhP/");
      /* harmony import */


      var _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! @angular/cdk/coercion */
      "8LU1");
      /* harmony import */


      var _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! @angular/platform-browser/animations */
      "omvX");
      /* harmony import */


      var rxjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! rxjs */
      "qCKp");
      /* harmony import */


      var rxjs_operators__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
      /*! rxjs/operators */
      "kU1M");
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */
      // Boilerplate for applying mixins to MatProgressBar.

      /** @docs-private */


      var _c0 = ["primaryValueBar"];

      var MatProgressBarBase = function MatProgressBarBase(_elementRef) {
        _classCallCheck2(this, MatProgressBarBase);

        this._elementRef = _elementRef;
      };

      var _MatProgressBarMixinBase = Object(_angular_material_core__WEBPACK_IMPORTED_MODULE_2__["mixinColor"])(MatProgressBarBase, 'primary');
      /**
       * Injection token used to provide the current location to `MatProgressBar`.
       * Used to handle server-side rendering and to stub out during unit tests.
       * @docs-private
       */


      var MAT_PROGRESS_BAR_LOCATION = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('mat-progress-bar-location', {
        providedIn: 'root',
        factory: MAT_PROGRESS_BAR_LOCATION_FACTORY
      });
      /** @docs-private */

      function MAT_PROGRESS_BAR_LOCATION_FACTORY() {
        var _document = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["inject"])(_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"]);

        var _location = _document ? _document.location : null;

        return {
          // Note that this needs to be a function, rather than a property, because Angular
          // will only resolve it once, but we want the current path on each call.
          getPathname: function getPathname() {
            return _location ? _location.pathname + _location.search : '';
          }
        };
      }
      /** Counter used to generate unique IDs for progress bars. */


      var progressbarId = 0;
      /**
       * `<mat-progress-bar>` component.
       */

      var MatProgressBar = /*#__PURE__*/function (_MatProgressBarMixinB) {
        _inherits2(MatProgressBar, _MatProgressBarMixinB);

        var _super174 = _createSuper2(MatProgressBar);

        function MatProgressBar(_elementRef, _ngZone, _animationMode,
        /**
         * @deprecated `location` parameter to be made required.
         * @breaking-change 8.0.0
         */
        location) {
          var _this447;

          _classCallCheck2(this, MatProgressBar);

          _this447 = _super174.call(this, _elementRef);
          _this447._elementRef = _elementRef;
          _this447._ngZone = _ngZone;
          _this447._animationMode = _animationMode;
          /** Flag that indicates whether NoopAnimations mode is set to true. */

          _this447._isNoopAnimation = false;
          _this447._value = 0;
          _this447._bufferValue = 0;
          /**
           * Event emitted when animation of the primary progress bar completes. This event will not
           * be emitted when animations are disabled, nor will it be emitted for modes with continuous
           * animations (indeterminate and query).
           */

          _this447.animationEnd = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
          /** Reference to animation end subscription to be unsubscribed on destroy. */

          _this447._animationEndSubscription = rxjs__WEBPACK_IMPORTED_MODULE_5__["Subscription"].EMPTY;
          /**
           * Mode of the progress bar.
           *
           * Input must be one of these values: determinate, indeterminate, buffer, query, defaults to
           * 'determinate'.
           * Mirrored to mode attribute.
           */

          _this447.mode = 'determinate';
          /** ID of the progress bar. */

          _this447.progressbarId = "mat-progress-bar-".concat(progressbarId++); // We need to prefix the SVG reference with the current path, otherwise they won't work
          // in Safari if the page has a `<base>` tag. Note that we need quotes inside the `url()`,
          // because named route URLs can contain parentheses (see #12338). Also we don't use since
          // we can't tell the difference between whether
          // the consumer is using the hash location strategy or not, because `Location` normalizes
          // both `/#/foo/bar` and `/foo/bar` to the same thing.

          var path = location ? location.getPathname().split('#')[0] : '';
          _this447._rectangleFillValue = "url('".concat(path, "#").concat(_this447.progressbarId, "')");
          _this447._isNoopAnimation = _animationMode === 'NoopAnimations';
          return _this447;
        }
        /** Value of the progress bar. Defaults to zero. Mirrored to aria-valuenow. */


        _createClass2(MatProgressBar, [{
          key: "value",
          get: function get() {
            return this._value;
          },
          set: function set(v) {
            this._value = clamp(Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_3__["coerceNumberProperty"])(v) || 0);
          }
          /** Buffer value of the progress bar. Defaults to zero. */

        }, {
          key: "bufferValue",
          get: function get() {
            return this._bufferValue;
          },
          set: function set(v) {
            this._bufferValue = clamp(v || 0);
          }
          /** Gets the current transform value for the progress bar's primary indicator. */

        }, {
          key: "_primaryTransform",
          value: function _primaryTransform() {
            // We use a 3d transform to work around some rendering issues in iOS Safari. See #19328.
            var scale = this.value / 100;
            return {
              transform: "scale3d(".concat(scale, ", 1, 1)")
            };
          }
          /**
           * Gets the current transform value for the progress bar's buffer indicator. Only used if the
           * progress mode is set to buffer, otherwise returns an undefined, causing no transformation.
           */

        }, {
          key: "_bufferTransform",
          value: function _bufferTransform() {
            if (this.mode === 'buffer') {
              // We use a 3d transform to work around some rendering issues in iOS Safari. See #19328.
              var scale = this.bufferValue / 100;
              return {
                transform: "scale3d(".concat(scale, ", 1, 1)")
              };
            }

            return null;
          }
        }, {
          key: "ngAfterViewInit",
          value: function ngAfterViewInit() {
            var _this448 = this;

            // Run outside angular so change detection didn't get triggered on every transition end
            // instead only on the animation that we care about (primary value bar's transitionend)
            this._ngZone.runOutsideAngular(function () {
              var element = _this448._primaryValueBar.nativeElement;
              _this448._animationEndSubscription = Object(rxjs__WEBPACK_IMPORTED_MODULE_5__["fromEvent"])(element, 'transitionend').pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_6__["filter"])(function (e) {
                return e.target === element;
              })).subscribe(function () {
                if (_this448.mode === 'determinate' || _this448.mode === 'buffer') {
                  _this448._ngZone.run(function () {
                    return _this448.animationEnd.next({
                      value: _this448.value
                    });
                  });
                }
              });
            });
          }
        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            this._animationEndSubscription.unsubscribe();
          }
        }]);

        return MatProgressBar;
      }(_MatProgressBarMixinBase);

      MatProgressBar.ɵfac = function MatProgressBar_Factory(t) {
        return new (t || MatProgressBar)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_4__["ANIMATION_MODULE_TYPE"], 8), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](MAT_PROGRESS_BAR_LOCATION, 8));
      };

      MatProgressBar.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
        type: MatProgressBar,
        selectors: [["mat-progress-bar"]],
        viewQuery: function MatProgressBar_Query(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵviewQuery"](_c0, true);
          }

          if (rf & 2) {
            var _t;

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx._primaryValueBar = _t.first);
          }
        },
        hostAttrs: ["role", "progressbar", "aria-valuemin", "0", "aria-valuemax", "100", 1, "mat-progress-bar"],
        hostVars: 4,
        hostBindings: function MatProgressBar_HostBindings(rf, ctx) {
          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("aria-valuenow", ctx.mode === "indeterminate" || ctx.mode === "query" ? null : ctx.value)("mode", ctx.mode);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("_mat-animation-noopable", ctx._isNoopAnimation);
          }
        },
        inputs: {
          color: "color",
          mode: "mode",
          value: "value",
          bufferValue: "bufferValue"
        },
        outputs: {
          animationEnd: "animationEnd"
        },
        exportAs: ["matProgressBar"],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]],
        decls: 9,
        vars: 4,
        consts: [["width", "100%", "height", "4", "focusable", "false", 1, "mat-progress-bar-background", "mat-progress-bar-element"], ["x", "4", "y", "0", "width", "8", "height", "4", "patternUnits", "userSpaceOnUse", 3, "id"], ["cx", "2", "cy", "2", "r", "2"], ["width", "100%", "height", "100%"], [1, "mat-progress-bar-buffer", "mat-progress-bar-element", 3, "ngStyle"], [1, "mat-progress-bar-primary", "mat-progress-bar-fill", "mat-progress-bar-element", 3, "ngStyle"], ["primaryValueBar", ""], [1, "mat-progress-bar-secondary", "mat-progress-bar-fill", "mat-progress-bar-element"]],
        template: function MatProgressBar_Template(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnamespaceSVG"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "svg", 0);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "defs");

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "pattern", 1);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "circle", 2);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "rect", 3);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnamespaceHTML"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](5, "div", 4);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](6, "div", 5, 6);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](8, "div", 7);
          }

          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("id", ctx.progressbarId);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("fill", ctx._rectangleFillValue);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngStyle", ctx._bufferTransform());

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngStyle", ctx._primaryTransform());
          }
        },
        directives: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["NgStyle"]],
        styles: [".mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}._mat-animation-noopable.mat-progress-bar{transition:none;animation:none}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:\"\";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}\n"],
        encapsulation: 2,
        changeDetection: 0
      });

      MatProgressBar.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"]
        }, {
          type: String,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_4__["ANIMATION_MODULE_TYPE"]]
          }]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [MAT_PROGRESS_BAR_LOCATION]
          }]
        }];
      };

      MatProgressBar.propDecorators = {
        value: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }],
        bufferValue: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }],
        _primaryValueBar: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"],
          args: ['primaryValueBar']
        }],
        animationEnd: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
        }],
        mode: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatProgressBar, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
          args: [{
            selector: 'mat-progress-bar',
            exportAs: 'matProgressBar',
            host: {
              'role': 'progressbar',
              'aria-valuemin': '0',
              'aria-valuemax': '100',
              '[attr.aria-valuenow]': '(mode === "indeterminate" || mode === "query") ? null : value',
              '[attr.mode]': 'mode',
              'class': 'mat-progress-bar',
              '[class._mat-animation-noopable]': '_isNoopAnimation'
            },
            inputs: ['color'],
            template: "<!--\n  The background div is named as such because it appears below the other divs and is not sized based\n  on values.\n-->\n<svg width=\"100%\" height=\"4\" focusable=\"false\" class=\"mat-progress-bar-background mat-progress-bar-element\">\n  <defs>\n    <pattern [id]=\"progressbarId\" x=\"4\" y=\"0\" width=\"8\" height=\"4\" patternUnits=\"userSpaceOnUse\">\n      <circle cx=\"2\" cy=\"2\" r=\"2\"/>\n    </pattern>\n  </defs>\n  <rect [attr.fill]=\"_rectangleFillValue\" width=\"100%\" height=\"100%\"/>\n</svg>\n<div class=\"mat-progress-bar-buffer mat-progress-bar-element\" [ngStyle]=\"_bufferTransform()\"></div>\n<div class=\"mat-progress-bar-primary mat-progress-bar-fill mat-progress-bar-element\" [ngStyle]=\"_primaryTransform()\" #primaryValueBar></div>\n<div class=\"mat-progress-bar-secondary mat-progress-bar-fill mat-progress-bar-element\"></div>\n",
            changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [".mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}._mat-animation-noopable.mat-progress-bar{transition:none;animation:none}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:\"\";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}\n"]
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"]
          }, {
            type: String,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_4__["ANIMATION_MODULE_TYPE"]]
            }]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [MAT_PROGRESS_BAR_LOCATION]
            }]
          }];
        }, {
          animationEnd: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
          }],
          mode: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }],
          value: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }],
          bufferValue: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }],
          _primaryValueBar: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"],
            args: ['primaryValueBar']
          }]
        });
      })();
      /** Clamps a value to be between two numbers, by default 0 and 100. */


      function clamp(v) {
        var min = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
        var max = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 100;
        return Math.max(min, Math.min(max, v));
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var MatProgressBarModule = function MatProgressBarModule() {
        _classCallCheck2(this, MatProgressBarModule);
      };

      MatProgressBarModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
        type: MatProgressBarModule
      });
      MatProgressBarModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
        factory: function MatProgressBarModule_Factory(t) {
          return new (t || MatProgressBarModule)();
        },
        imports: [[_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_2__["MatCommonModule"]], _angular_material_core__WEBPACK_IMPORTED_MODULE_2__["MatCommonModule"]]
      });

      (function () {
        (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](MatProgressBarModule, {
          declarations: function declarations() {
            return [MatProgressBar];
          },
          imports: function imports() {
            return [_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_2__["MatCommonModule"]];
          },
          exports: function exports() {
            return [MatProgressBar, _angular_material_core__WEBPACK_IMPORTED_MODULE_2__["MatCommonModule"]];
          }
        });
      })();
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatProgressBarModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
          args: [{
            imports: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_2__["MatCommonModule"]],
            exports: [MatProgressBar, _angular_material_core__WEBPACK_IMPORTED_MODULE_2__["MatCommonModule"]],
            declarations: [MatProgressBar]
          }]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Generated bundle index. Do not edit.
       */
      //# sourceMappingURL=progress-bar.js.map

      /***/

    },

    /***/
    "BVg3": function BVg3(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Icelandic [is]
      //! author : Hinrik Örn Sigurðsson : https://github.com/hinrik
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        function plural(n) {
          if (n % 100 === 11) {
            return true;
          } else if (n % 10 === 1) {
            return false;
          }

          return true;
        }

        function translate(number, withoutSuffix, key, isFuture) {
          var result = number + ' ';

          switch (key) {
            case 's':
              return withoutSuffix || isFuture ? 'nokkrar sekúndur' : 'nokkrum sekúndum';

            case 'ss':
              if (plural(number)) {
                return result + (withoutSuffix || isFuture ? 'sekúndur' : 'sekúndum');
              }

              return result + 'sekúnda';

            case 'm':
              return withoutSuffix ? 'mínúta' : 'mínútu';

            case 'mm':
              if (plural(number)) {
                return result + (withoutSuffix || isFuture ? 'mínútur' : 'mínútum');
              } else if (withoutSuffix) {
                return result + 'mínúta';
              }

              return result + 'mínútu';

            case 'hh':
              if (plural(number)) {
                return result + (withoutSuffix || isFuture ? 'klukkustundir' : 'klukkustundum');
              }

              return result + 'klukkustund';

            case 'd':
              if (withoutSuffix) {
                return 'dagur';
              }

              return isFuture ? 'dag' : 'degi';

            case 'dd':
              if (plural(number)) {
                if (withoutSuffix) {
                  return result + 'dagar';
                }

                return result + (isFuture ? 'daga' : 'dögum');
              } else if (withoutSuffix) {
                return result + 'dagur';
              }

              return result + (isFuture ? 'dag' : 'degi');

            case 'M':
              if (withoutSuffix) {
                return 'mánuður';
              }

              return isFuture ? 'mánuð' : 'mánuði';

            case 'MM':
              if (plural(number)) {
                if (withoutSuffix) {
                  return result + 'mánuðir';
                }

                return result + (isFuture ? 'mánuði' : 'mánuðum');
              } else if (withoutSuffix) {
                return result + 'mánuður';
              }

              return result + (isFuture ? 'mánuð' : 'mánuði');

            case 'y':
              return withoutSuffix || isFuture ? 'ár' : 'ári';

            case 'yy':
              if (plural(number)) {
                return result + (withoutSuffix || isFuture ? 'ár' : 'árum');
              }

              return result + (withoutSuffix || isFuture ? 'ár' : 'ári');
          }
        }

        var is = moment.defineLocale('is', {
          months: 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split('_'),
          monthsShort: 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'),
          weekdays: 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split('_'),
          weekdaysShort: 'sun_mán_þri_mið_fim_fös_lau'.split('_'),
          weekdaysMin: 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'),
          longDateFormat: {
            LT: 'H:mm',
            LTS: 'H:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'D. MMMM YYYY',
            LLL: 'D. MMMM YYYY [kl.] H:mm',
            LLLL: 'dddd, D. MMMM YYYY [kl.] H:mm'
          },
          calendar: {
            sameDay: '[í dag kl.] LT',
            nextDay: '[á morgun kl.] LT',
            nextWeek: 'dddd [kl.] LT',
            lastDay: '[í gær kl.] LT',
            lastWeek: '[síðasta] dddd [kl.] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'eftir %s',
            past: 'fyrir %s síðan',
            s: translate,
            ss: translate,
            m: translate,
            mm: translate,
            h: 'klukkustund',
            hh: translate,
            d: translate,
            dd: translate,
            M: translate,
            MM: translate,
            y: translate,
            yy: translate
          },
          dayOfMonthOrdinalParse: /\d{1,2}\./,
          ordinal: '%d.',
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return is;
      });
      /***/

    },

    /***/
    "Bp6I": function Bp6I(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return differenceInYears;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _differenceInCalendarYears_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../differenceInCalendarYears/index.js */
      "AF4N");
      /* harmony import */


      var _compareAsc_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../compareAsc/index.js */
      "JhOC");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name differenceInYears
       * @category Year Helpers
       * @summary Get the number of full years between the given dates.
       *
       * @description
       * Get the number of full years between the given dates.
       *
       * ### 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 {Date|Number} dateLeft - the later date
       * @param {Date|Number} dateRight - the earlier date
       * @returns {Number} the number of full years
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // How many full years are between 31 December 2013 and 11 February 2015?
       * var result = differenceInYears(new Date(2015, 1, 11), new Date(2013, 11, 31))
       * //=> 1
       */


      function differenceInYears(dirtyDateLeft, dirtyDateRight) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(2, arguments);
        var dateLeft = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateLeft);
        var dateRight = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateRight);
        var sign = Object(_compareAsc_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(dateLeft, dateRight);
        var difference = Math.abs(Object(_differenceInCalendarYears_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dateLeft, dateRight)); // Set both dates to a valid leap year for accurate comparison when dealing
        // with leap days

        dateLeft.setFullYear('1584');
        dateRight.setFullYear('1584'); // Math.abs(diff in full years - diff in calendar years) === 1 if last calendar year is not full
        // If so, result must be decreased by 1 in absolute value

        var isLastYearNotFull = Object(_compareAsc_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(dateLeft, dateRight) === -sign;
        var result = sign * (difference - isLastYearNotFull); // Prevent negative zero

        return result === 0 ? 0 : result;
      }
      /***/

    },

    /***/
    "ByF4": function ByF4(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Faroese [fo]
      //! author : Ragnar Johannesen : https://github.com/ragnar123
      //! author : Kristian Sakarisson : https://github.com/sakarisson
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var fo = moment.defineLocale('fo', {
          months: 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
          monthsShort: 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
          weekdays: 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split('_'),
          weekdaysShort: 'sun_mán_týs_mik_hós_frí_ley'.split('_'),
          weekdaysMin: 'su_má_tý_mi_hó_fr_le'.split('_'),
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd D. MMMM, YYYY HH:mm'
          },
          calendar: {
            sameDay: '[Í dag kl.] LT',
            nextDay: '[Í morgin kl.] LT',
            nextWeek: 'dddd [kl.] LT',
            lastDay: '[Í gjár kl.] LT',
            lastWeek: '[síðstu] dddd [kl] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'um %s',
            past: '%s síðani',
            s: 'fá sekund',
            ss: '%d sekundir',
            m: 'ein minuttur',
            mm: '%d minuttir',
            h: 'ein tími',
            hh: '%d tímar',
            d: 'ein dagur',
            dd: '%d dagar',
            M: 'ein mánaður',
            MM: '%d mánaðir',
            y: 'eitt ár',
            yy: '%d ár'
          },
          dayOfMonthOrdinalParse: /\d{1,2}\./,
          ordinal: '%d.',
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return fo;
      });
      /***/

    },

    /***/
    "CMyj": function CMyj(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "isIterable", function () {
        return isIterable;
      });
      /* harmony import */


      var _symbol_iterator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../symbol/iterator */
      "Lhse");

      function isIterable(input) {
        return input && typeof input[_symbol_iterator__WEBPACK_IMPORTED_MODULE_0__["iterator"]] === 'function';
      } //# sourceMappingURL=isIterable.js.map

      /***/

    },

    /***/
    "CRDf": function CRDf(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "subscribeToObservable", function () {
        return subscribeToObservable;
      });
      /* harmony import */


      var _symbol_observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../symbol/observable */
      "kJWO");

      var subscribeToObservable = function subscribeToObservable(obj) {
        return function (subscriber) {
          var obs = obj[_symbol_observable__WEBPACK_IMPORTED_MODULE_0__["observable"]]();

          if (typeof obs.subscribe !== 'function') {
            throw new TypeError('Provided object does not correctly implement Symbol.observable');
          } else {
            return obs.subscribe(subscriber);
          }
        };
      }; //# sourceMappingURL=subscribeToObservable.js.map

      /***/

    },

    /***/
    "CeGm": function CeGm(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatCommonModuleNgFactory", function () {
        return MatCommonModuleNgFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NativeDateModuleNgFactory", function () {
        return NativeDateModuleNgFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatNativeDateModuleNgFactory", function () {
        return MatNativeDateModuleNgFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatLineModuleNgFactory", function () {
        return MatLineModuleNgFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatOptionModuleNgFactory", function () {
        return MatOptionModuleNgFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatRippleModuleNgFactory", function () {
        return MatRippleModuleNgFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatPseudoCheckboxModuleNgFactory", function () {
        return MatPseudoCheckboxModuleNgFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "RenderType_MatOption", function () {
        return RenderType_MatOption;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "View_MatOption_0", function () {
        return View_MatOption_0;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "View_MatOption_Host_0", function () {
        return View_MatOption_Host_0;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatOptionNgFactory", function () {
        return MatOptionNgFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "RenderType_MatOptgroup", function () {
        return RenderType_MatOptgroup;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "View_MatOptgroup_0", function () {
        return View_MatOptgroup_0;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "View_MatOptgroup_Host_0", function () {
        return View_MatOptgroup_Host_0;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatOptgroupNgFactory", function () {
        return MatOptgroupNgFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "RenderType_MatPseudoCheckbox", function () {
        return RenderType_MatPseudoCheckbox;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "View_MatPseudoCheckbox_0", function () {
        return View_MatPseudoCheckbox_0;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "View_MatPseudoCheckbox_Host_0", function () {
        return View_MatPseudoCheckbox_Host_0;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatPseudoCheckboxNgFactory", function () {
        return MatPseudoCheckboxNgFactory;
      });
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /* harmony import */


      var _angular_material_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/material/core */
      "UhP/");
      /* harmony import */


      var _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! @angular/cdk/bidi */
      "9gLZ");
      /* harmony import */


      var _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! @angular/cdk/a11y */
      "YEUz");
      /* harmony import */


      var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! @angular/common */
      "SVse");
      /* harmony import */


      var _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! @angular/cdk/platform */
      "SCoL");
      /* harmony import */


      var _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
      /*! @angular/platform-browser/animations */
      "omvX");
      /**
       * @fileoverview This file was generated by the Angular template compiler. Do not edit.
       *
       * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes,extraRequire}
       * tslint:disable
       */


      var MatCommonModuleNgFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵcmf"](_angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatCommonModule"], [], function (_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmod"]([_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](512, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵCodegenComponentFactoryResolver"], [[8, []], [3, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"]], _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModuleRef"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_2__["BidiModule"], _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_2__["BidiModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatCommonModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatCommonModule"], [_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_3__["HighContrastModeDetector"], [2, _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MATERIAL_SANITY_CHECKS"]], _angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"]])]);
      });

      var NativeDateModuleNgFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵcmf"](_angular_material_core__WEBPACK_IMPORTED_MODULE_1__["NativeDateModule"], [], function (_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmod"]([_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](512, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵCodegenComponentFactoryResolver"], [[8, []], [3, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"]], _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModuleRef"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](4608, _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["DateAdapter"], _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["NativeDateAdapter"], [[2, _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MAT_DATE_LOCALE"]], _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_5__["Platform"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_5__["PlatformModule"], _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_5__["PlatformModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["NativeDateModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["NativeDateModule"], [])]);
      });

      var MatNativeDateModuleNgFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵcmf"](_angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatNativeDateModule"], [], function (_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmod"]([_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](512, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵCodegenComponentFactoryResolver"], [[8, []], [3, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"]], _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModuleRef"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](4608, _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["DateAdapter"], _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["NativeDateAdapter"], [[2, _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MAT_DATE_LOCALE"]], _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_5__["Platform"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_5__["PlatformModule"], _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_5__["PlatformModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["NativeDateModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["NativeDateModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatNativeDateModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatNativeDateModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](256, _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MAT_DATE_FORMATS"], _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MAT_NATIVE_DATE_FORMATS"], [])]);
      });

      var MatLineModuleNgFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵcmf"](_angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatLineModule"], [], function (_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmod"]([_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](512, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵCodegenComponentFactoryResolver"], [[8, []], [3, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"]], _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModuleRef"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_2__["BidiModule"], _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_2__["BidiModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatCommonModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatCommonModule"], [_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_3__["HighContrastModeDetector"], [2, _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MATERIAL_SANITY_CHECKS"]], _angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatLineModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatLineModule"], [])]);
      });

      var MatOptionModuleNgFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵcmf"](_angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatOptionModule"], [], function (_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmod"]([_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](512, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵCodegenComponentFactoryResolver"], [[8, []], [3, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"]], _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModuleRef"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](4608, _angular_common__WEBPACK_IMPORTED_MODULE_4__["NgLocalization"], _angular_common__WEBPACK_IMPORTED_MODULE_4__["NgLocaleLocalization"], [_angular_core__WEBPACK_IMPORTED_MODULE_0__["LOCALE_ID"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_2__["BidiModule"], _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_2__["BidiModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatCommonModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatCommonModule"], [_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_3__["HighContrastModeDetector"], [2, _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MATERIAL_SANITY_CHECKS"]], _angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_5__["PlatformModule"], _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_5__["PlatformModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatRippleModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatRippleModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_common__WEBPACK_IMPORTED_MODULE_4__["CommonModule"], _angular_common__WEBPACK_IMPORTED_MODULE_4__["CommonModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatPseudoCheckboxModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatPseudoCheckboxModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatOptionModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatOptionModule"], [])]);
      });

      var MatRippleModuleNgFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵcmf"](_angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatRippleModule"], [], function (_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmod"]([_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](512, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵCodegenComponentFactoryResolver"], [[8, []], [3, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"]], _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModuleRef"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_2__["BidiModule"], _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_2__["BidiModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatCommonModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatCommonModule"], [_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_3__["HighContrastModeDetector"], [2, _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MATERIAL_SANITY_CHECKS"]], _angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_5__["PlatformModule"], _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_5__["PlatformModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatRippleModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatRippleModule"], [])]);
      });

      var MatPseudoCheckboxModuleNgFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵcmf"](_angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatPseudoCheckboxModule"], [], function (_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmod"]([_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](512, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵCodegenComponentFactoryResolver"], [[8, []], [3, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"]], _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModuleRef"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatPseudoCheckboxModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatPseudoCheckboxModule"], [])]);
      });

      var styles_MatOption = [".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.cdk-high-contrast-active .mat-option .mat-option-ripple{opacity:.5}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"];

      var RenderType_MatOption = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵcrt"]({
        encapsulation: 2,
        styles: styles_MatOption,
        data: {}
      });

      function View_MatOption_1(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](0, 0, null, null, 1, "mat-pseudo-checkbox", [["class", "mat-option-pseudo-checkbox mat-pseudo-checkbox"]], [[2, "mat-pseudo-checkbox-indeterminate", null], [2, "mat-pseudo-checkbox-checked", null], [2, "mat-pseudo-checkbox-disabled", null], [2, "_mat-animation-noopable", null]], null, null, View_MatPseudoCheckbox_0, RenderType_MatPseudoCheckbox)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](1, 49152, null, 0, _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatPseudoCheckbox"], [[2, _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_6__["ANIMATION_MODULE_TYPE"]]], {
          state: [0, "state"],
          disabled: [1, "disabled"]
        }, null)], function (_ck, _v) {
          var _co = _v.component;
          var currVal_4 = _co.selected ? "checked" : "unchecked";
          var currVal_5 = _co.disabled;

          _ck(_v, 1, 0, currVal_4, currVal_5);
        }, function (_ck, _v) {
          var currVal_0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1).state === "indeterminate";
          var currVal_1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1).state === "checked";

          var currVal_2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1).disabled;

          var currVal_3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1)._animationMode === "NoopAnimations";

          _ck(_v, 0, 0, currVal_0, currVal_1, currVal_2, currVal_3);
        });
      }

      function View_MatOption_0(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](2, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵand"](16777216, null, null, 1, null, View_MatOption_1)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](1, 16384, null, 0, _angular_common__WEBPACK_IMPORTED_MODULE_4__["NgIf"], [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]], {
          ngIf: [0, "ngIf"]
        }, null), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](2, 0, null, null, 1, "span", [["class", "mat-option-text"]], null, null, null, null, null)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵncd"](null, 0), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](4, 0, null, null, 1, "div", [["class", "mat-option-ripple mat-ripple"], ["mat-ripple", ""]], [[2, "mat-ripple-unbounded", null]], null, null, null, null)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](5, 212992, null, 0, _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatRipple"], [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"], _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_5__["Platform"], [2, _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MAT_RIPPLE_GLOBAL_OPTIONS"]], [2, _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_6__["ANIMATION_MODULE_TYPE"]]], {
          disabled: [0, "disabled"],
          trigger: [1, "trigger"]
        }, null)], function (_ck, _v) {
          var _co = _v.component;
          var currVal_0 = _co.multiple;

          _ck(_v, 1, 0, currVal_0);

          var currVal_2 = _co.disabled || _co.disableRipple;

          var currVal_3 = _co._getHostElement();

          _ck(_v, 5, 0, currVal_2, currVal_3);
        }, function (_ck, _v) {
          var currVal_1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 5).unbounded;

          _ck(_v, 4, 0, currVal_1);
        });
      }

      function View_MatOption_Host_0(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](0, 0, null, null, 1, "mat-option", [["class", "mat-option mat-focus-indicator"], ["role", "option"]], [[1, "tabindex", 0], [2, "mat-selected", null], [2, "mat-option-multiple", null], [2, "mat-active", null], [8, "id", 0], [1, "aria-selected", 0], [1, "aria-disabled", 0], [2, "mat-option-disabled", null]], [[null, "click"], [null, "keydown"]], function (_v, en, $event) {
          var ad = true;

          if ("click" === en) {
            var pd_0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1)._selectViaInteraction() !== false;
            ad = pd_0 && ad;
          }

          if ("keydown" === en) {
            var pd_1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1)._handleKeydown($event) !== false;
            ad = pd_1 && ad;
          }

          return ad;
        }, View_MatOption_0, RenderType_MatOption)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](1, 8568832, null, 0, _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatOption"], [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"], [2, _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MAT_OPTION_PARENT_COMPONENT"]], [2, _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MAT_OPTGROUP"]]], null, null)], null, function (_ck, _v) {
          var currVal_0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1)._getTabIndex();

          var currVal_1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1).selected;

          var currVal_2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1).multiple;

          var currVal_3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1).active;

          var currVal_4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1).id;

          var currVal_5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1)._getAriaSelected();

          var currVal_6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1).disabled.toString();

          var currVal_7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1).disabled;

          _ck(_v, 0, 0, currVal_0, currVal_1, currVal_2, currVal_3, currVal_4, currVal_5, currVal_6, currVal_7);
        });
      }

      var MatOptionNgFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵccf"]("mat-option", _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatOption"], View_MatOption_Host_0, {
        value: "value",
        id: "id",
        disabled: "disabled"
      }, {
        onSelectionChange: "onSelectionChange"
      }, ["*"]);

      var styles_MatOptgroup = [".mat-optgroup-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}\n"];

      var RenderType_MatOptgroup = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵcrt"]({
        encapsulation: 2,
        styles: styles_MatOptgroup,
        data: {}
      });

      function View_MatOptgroup_0(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](2, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](0, 0, null, null, 2, "label", [["class", "mat-optgroup-label"]], [[8, "id", 0]], null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵted"](1, null, ["", " "])), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵncd"](null, 0), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵncd"](null, 1)], null, function (_ck, _v) {
          var _co = _v.component;
          var currVal_0 = _co._labelId;

          _ck(_v, 0, 0, currVal_0);

          var currVal_1 = _co.label;

          _ck(_v, 1, 0, currVal_1);
        });
      }

      function View_MatOptgroup_Host_0(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](0, 0, null, null, 2, "mat-optgroup", [["class", "mat-optgroup"], ["role", "group"]], [[2, "mat-optgroup-disabled", null], [1, "aria-disabled", 0], [1, "aria-labelledby", 0]], null, null, View_MatOptgroup_0, RenderType_MatOptgroup)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵprd"](6144, null, _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MAT_OPTGROUP"], null, [_angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatOptgroup"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](2, 49152, null, 0, _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatOptgroup"], [], null, null)], null, function (_ck, _v) {
          var currVal_0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 2).disabled;

          var currVal_1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 2).disabled.toString();

          var currVal_2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 2)._labelId;

          _ck(_v, 0, 0, currVal_0, currVal_1, currVal_2);
        });
      }

      var MatOptgroupNgFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵccf"]("mat-optgroup", _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatOptgroup"], View_MatOptgroup_Host_0, {
        disabled: "disabled",
        label: "label"
      }, {}, ["*", "mat-option, ng-container"]);

      var styles_MatPseudoCheckbox = [".mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:\"\";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n"];

      var RenderType_MatPseudoCheckbox = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵcrt"]({
        encapsulation: 2,
        styles: styles_MatPseudoCheckbox,
        data: {}
      });

      function View_MatPseudoCheckbox_0(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](2, [], null, null);
      }

      function View_MatPseudoCheckbox_Host_0(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](0, 0, null, null, 1, "mat-pseudo-checkbox", [["class", "mat-pseudo-checkbox"]], [[2, "mat-pseudo-checkbox-indeterminate", null], [2, "mat-pseudo-checkbox-checked", null], [2, "mat-pseudo-checkbox-disabled", null], [2, "_mat-animation-noopable", null]], null, null, View_MatPseudoCheckbox_0, RenderType_MatPseudoCheckbox)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](1, 49152, null, 0, _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatPseudoCheckbox"], [[2, _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_6__["ANIMATION_MODULE_TYPE"]]], null, null)], null, function (_ck, _v) {
          var currVal_0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1).state === "indeterminate";
          var currVal_1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1).state === "checked";

          var currVal_2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1).disabled;

          var currVal_3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1)._animationMode === "NoopAnimations";

          _ck(_v, 0, 0, currVal_0, currVal_1, currVal_2, currVal_3);
        });
      }

      var MatPseudoCheckboxNgFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵccf"]("mat-pseudo-checkbox", _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatPseudoCheckbox"], View_MatPseudoCheckbox_Host_0, {
        state: "state",
        disabled: "disabled"
      }, {}, []);
      /***/

    },

    /***/
    "Cfvw": function Cfvw(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "from", function () {
        return from;
      });
      /* harmony import */


      var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Observable */
      "HDdC");
      /* harmony import */


      var _util_subscribeTo__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../util/subscribeTo */
      "SeVD");
      /* harmony import */


      var _scheduled_scheduled__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../scheduled/scheduled */
      "7HRe");

      function from(input, scheduler) {
        if (!scheduler) {
          if (input instanceof _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]) {
            return input;
          }

          return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](Object(_util_subscribeTo__WEBPACK_IMPORTED_MODULE_1__["subscribeTo"])(input));
        } else {
          return Object(_scheduled_scheduled__WEBPACK_IMPORTED_MODULE_2__["scheduled"])(input, scheduler);
        }
      } //# sourceMappingURL=from.js.map

      /***/

    },

    /***/
    "CjzT": function CjzT(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Spanish (Dominican Republic) [es-do]
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),
            _monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
            monthsParse = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i],
            monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;

        var esDo = moment.defineLocale('es-do', {
          months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
          monthsShort: function monthsShort(m, format) {
            if (!m) {
              return monthsShortDot;
            } else if (/-MMM-/.test(format)) {
              return _monthsShort[m.month()];
            } else {
              return monthsShortDot[m.month()];
            }
          },
          monthsRegex: monthsRegex,
          monthsShortRegex: monthsRegex,
          monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
          monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
          monthsParse: monthsParse,
          longMonthsParse: monthsParse,
          shortMonthsParse: monthsParse,
          weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
          weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
          weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
          weekdaysParseExact: true,
          longDateFormat: {
            LT: 'h:mm A',
            LTS: 'h:mm:ss A',
            L: 'DD/MM/YYYY',
            LL: 'D [de] MMMM [de] YYYY',
            LLL: 'D [de] MMMM [de] YYYY h:mm A',
            LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A'
          },
          calendar: {
            sameDay: function sameDay() {
              return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
            },
            nextDay: function nextDay() {
              return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
            },
            nextWeek: function nextWeek() {
              return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
            },
            lastDay: function lastDay() {
              return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
            },
            lastWeek: function lastWeek() {
              return '[el] dddd [pasado a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
            },
            sameElse: 'L'
          },
          relativeTime: {
            future: 'en %s',
            past: 'hace %s',
            s: 'unos segundos',
            ss: '%d segundos',
            m: 'un minuto',
            mm: '%d minutos',
            h: 'una hora',
            hh: '%d horas',
            d: 'un día',
            dd: '%d días',
            w: 'una semana',
            ww: '%d semanas',
            M: 'un mes',
            MM: '%d meses',
            y: 'un año',
            yy: '%d años'
          },
          dayOfMonthOrdinalParse: /\d{1,2}º/,
          ordinal: '%dº',
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return esDo;
      });
      /***/

    },

    /***/
    "CoRJ": function CoRJ(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Arabic (Morocco) [ar-ma]
      //! author : ElFadili Yassine : https://github.com/ElFadiliY
      //! author : Abdel Said : https://github.com/abdelsaid
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var arMa = moment.defineLocale('ar-ma', {
          months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
          monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
          weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
          weekdaysShort: 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
          weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
          weekdaysParseExact: true,
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd D MMMM YYYY HH:mm'
          },
          calendar: {
            sameDay: '[اليوم على الساعة] LT',
            nextDay: '[غدا على الساعة] LT',
            nextWeek: 'dddd [على الساعة] LT',
            lastDay: '[أمس على الساعة] LT',
            lastWeek: 'dddd [على الساعة] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'في %s',
            past: 'منذ %s',
            s: 'ثوان',
            ss: '%d ثانية',
            m: 'دقيقة',
            mm: '%d دقائق',
            h: 'ساعة',
            hh: '%d ساعات',
            d: 'يوم',
            dd: '%d أيام',
            M: 'شهر',
            MM: '%d أشهر',
            y: 'سنة',
            yy: '%d سنوات'
          },
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return arMa;
      });
      /***/

    },

    /***/
    "CqXF": function CqXF(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "mapTo", function () {
        return mapTo;
      });
      /* harmony import */


      var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Subscriber */
      "7o/Q");

      function mapTo(value) {
        return function (source) {
          return source.lift(new MapToOperator(value));
        };
      }

      var MapToOperator = /*#__PURE__*/function () {
        function MapToOperator(value) {
          _classCallCheck2(this, MapToOperator);

          this.value = value;
        }

        _createClass2(MapToOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            return source.subscribe(new MapToSubscriber(subscriber, this.value));
          }
        }]);

        return MapToOperator;
      }();

      var MapToSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_12) {
        _inherits2(MapToSubscriber, _Subscriber__WEBPACK_12);

        var _super175 = _createSuper2(MapToSubscriber);

        function MapToSubscriber(destination, value) {
          var _this449;

          _classCallCheck2(this, MapToSubscriber);

          _this449 = _super175.call(this, destination);
          _this449.value = value;
          return _this449;
        }

        _createClass2(MapToSubscriber, [{
          key: "_next",
          value: function _next(x) {
            this.destination.next(this.value);
          }
        }]);

        return MapToSubscriber;
      }(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]); //# sourceMappingURL=mapTo.js.map

      /***/

    },

    /***/
    "CtHx": function CtHx(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ArrayDataSource", function () {
        return ArrayDataSource;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "DataSource", function () {
        return DataSource;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "SelectionModel", function () {
        return SelectionModel;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "UniqueSelectionDispatcher", function () {
        return UniqueSelectionDispatcher;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "_DisposeViewRepeaterStrategy", function () {
        return _DisposeViewRepeaterStrategy;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "_RecycleViewRepeaterStrategy", function () {
        return _RecycleViewRepeaterStrategy;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "_VIEW_REPEATER_STRATEGY", function () {
        return _VIEW_REPEATER_STRATEGY;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "getMultipleValuesInSingleSelectionError", function () {
        return getMultipleValuesInSingleSelectionError;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "isDataSource", function () {
        return isDataSource;
      });
      /* harmony import */


      var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! rxjs */
      "qCKp");
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var DataSource = function DataSource() {
        _classCallCheck2(this, DataSource);
      };
      /** Checks whether an object is a data source. */


      function isDataSource(value) {
        // Check if the value is a DataSource by observing if it has a connect function. Cannot
        // be checked as an `instanceof DataSource` since people could create their own sources
        // that match the interface, but don't extend DataSource.
        return value && typeof value.connect === 'function';
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** DataSource wrapper for a native array. */


      var ArrayDataSource = /*#__PURE__*/function (_DataSource) {
        _inherits2(ArrayDataSource, _DataSource);

        var _super176 = _createSuper2(ArrayDataSource);

        function ArrayDataSource(_data) {
          var _this450;

          _classCallCheck2(this, ArrayDataSource);

          _this450 = _super176.call(this);
          _this450._data = _data;
          return _this450;
        }

        _createClass2(ArrayDataSource, [{
          key: "connect",
          value: function connect() {
            return Object(rxjs__WEBPACK_IMPORTED_MODULE_0__["isObservable"])(this._data) ? this._data : Object(rxjs__WEBPACK_IMPORTED_MODULE_0__["of"])(this._data);
          }
        }, {
          key: "disconnect",
          value: function disconnect() {}
        }]);

        return ArrayDataSource;
      }(DataSource);
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * A repeater that destroys views when they are removed from a
       * {@link ViewContainerRef}. When new items are inserted into the container,
       * the repeater will always construct a new embedded view for each item.
       *
       * @template T The type for the embedded view's $implicit property.
       * @template R The type for the item in each IterableDiffer change record.
       * @template C The type for the context passed to each embedded view.
       */


      var _DisposeViewRepeaterStrategy = /*#__PURE__*/function () {
        function _DisposeViewRepeaterStrategy() {
          _classCallCheck2(this, _DisposeViewRepeaterStrategy);
        }

        _createClass2(_DisposeViewRepeaterStrategy, [{
          key: "applyChanges",
          value: function applyChanges(changes, viewContainerRef, itemContextFactory, itemValueResolver, itemViewChanged) {
            changes.forEachOperation(function (record, adjustedPreviousIndex, currentIndex) {
              var view;
              var operation;

              if (record.previousIndex == null) {
                var insertContext = itemContextFactory(record, adjustedPreviousIndex, currentIndex);
                view = viewContainerRef.createEmbeddedView(insertContext.templateRef, insertContext.context, insertContext.index);
                operation = 1
                /* INSERTED */
                ;
              } else if (currentIndex == null) {
                viewContainerRef.remove(adjustedPreviousIndex);
                operation = 3
                /* REMOVED */
                ;
              } else {
                view = viewContainerRef.get(adjustedPreviousIndex);
                viewContainerRef.move(view, currentIndex);
                operation = 2
                /* MOVED */
                ;
              }

              if (itemViewChanged) {
                itemViewChanged({
                  context: view === null || view === void 0 ? void 0 : view.context,
                  operation: operation,
                  record: record
                });
              }
            });
          }
        }, {
          key: "detach",
          value: function detach() {}
        }]);

        return _DisposeViewRepeaterStrategy;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * A repeater that caches views when they are removed from a
       * {@link ViewContainerRef}. When new items are inserted into the container,
       * the repeater will reuse one of the cached views instead of creating a new
       * embedded view. Recycling cached views reduces the quantity of expensive DOM
       * inserts.
       *
       * @template T The type for the embedded view's $implicit property.
       * @template R The type for the item in each IterableDiffer change record.
       * @template C The type for the context passed to each embedded view.
       */


      var _RecycleViewRepeaterStrategy = /*#__PURE__*/function () {
        function _RecycleViewRepeaterStrategy() {
          _classCallCheck2(this, _RecycleViewRepeaterStrategy);

          /**
           * The size of the cache used to store unused views.
           * Setting the cache size to `0` will disable caching. Defaults to 20 views.
           */
          this.viewCacheSize = 20;
          /**
           * View cache that stores embedded view instances that have been previously stamped out,
           * but don't are not currently rendered. The view repeater will reuse these views rather than
           * creating brand new ones.
           *
           * TODO(michaeljamesparsons) Investigate whether using a linked list would improve performance.
           */

          this._viewCache = [];
        }
        /** Apply changes to the DOM. */


        _createClass2(_RecycleViewRepeaterStrategy, [{
          key: "applyChanges",
          value: function applyChanges(changes, viewContainerRef, itemContextFactory, itemValueResolver, itemViewChanged) {
            var _this451 = this;

            // Rearrange the views to put them in the right location.
            changes.forEachOperation(function (record, adjustedPreviousIndex, currentIndex) {
              var view;
              var operation;

              if (record.previousIndex == null) {
                // Item added.
                var viewArgsFactory = function viewArgsFactory() {
                  return itemContextFactory(record, adjustedPreviousIndex, currentIndex);
                };

                view = _this451._insertView(viewArgsFactory, currentIndex, viewContainerRef, itemValueResolver(record));
                operation = view ? 1
                /* INSERTED */
                : 0
                /* REPLACED */
                ;
              } else if (currentIndex == null) {
                // Item removed.
                _this451._detachAndCacheView(adjustedPreviousIndex, viewContainerRef);

                operation = 3
                /* REMOVED */
                ;
              } else {
                // Item moved.
                view = _this451._moveView(adjustedPreviousIndex, currentIndex, viewContainerRef, itemValueResolver(record));
                operation = 2
                /* MOVED */
                ;
              }

              if (itemViewChanged) {
                itemViewChanged({
                  context: view === null || view === void 0 ? void 0 : view.context,
                  operation: operation,
                  record: record
                });
              }
            });
          }
        }, {
          key: "detach",
          value: function detach() {
            var _iterator56 = _createForOfIteratorHelper(this._viewCache),
                _step55;

            try {
              for (_iterator56.s(); !(_step55 = _iterator56.n()).done;) {
                var view = _step55.value;
                view.destroy();
              }
            } catch (err) {
              _iterator56.e(err);
            } finally {
              _iterator56.f();
            }
          }
          /**
           * Inserts a view for a new item, either from the cache or by creating a new
           * one. Returns `undefined` if the item was inserted into a cached view.
           */

        }, {
          key: "_insertView",
          value: function _insertView(viewArgsFactory, currentIndex, viewContainerRef, value) {
            var cachedView = this._insertViewFromCache(currentIndex, viewContainerRef);

            if (cachedView) {
              cachedView.context.$implicit = value;
              return undefined;
            }

            var viewArgs = viewArgsFactory();
            return viewContainerRef.createEmbeddedView(viewArgs.templateRef, viewArgs.context, viewArgs.index);
          }
          /** Detaches the view at the given index and inserts into the view cache. */

        }, {
          key: "_detachAndCacheView",
          value: function _detachAndCacheView(index, viewContainerRef) {
            var detachedView = this._detachView(index, viewContainerRef);

            this._maybeCacheView(detachedView, viewContainerRef);
          }
          /** Moves view at the previous index to the current index. */

        }, {
          key: "_moveView",
          value: function _moveView(adjustedPreviousIndex, currentIndex, viewContainerRef, value) {
            var view = viewContainerRef.get(adjustedPreviousIndex);
            viewContainerRef.move(view, currentIndex);
            view.context.$implicit = value;
            return view;
          }
          /**
           * Cache the given detached view. If the cache is full, the view will be
           * destroyed.
           */

        }, {
          key: "_maybeCacheView",
          value: function _maybeCacheView(view, viewContainerRef) {
            if (this._viewCache.length < this.viewCacheSize) {
              this._viewCache.push(view);
            } else {
              var index = viewContainerRef.indexOf(view); // The host component could remove views from the container outside of
              // the view repeater. It's unlikely this will occur, but just in case,
              // destroy the view on its own, otherwise destroy it through the
              // container to ensure that all the references are removed.

              if (index === -1) {
                view.destroy();
              } else {
                viewContainerRef.remove(index);
              }
            }
          }
          /** Inserts a recycled view from the cache at the given index. */

        }, {
          key: "_insertViewFromCache",
          value: function _insertViewFromCache(index, viewContainerRef) {
            var cachedView = this._viewCache.pop();

            if (cachedView) {
              viewContainerRef.insert(cachedView, index);
            }

            return cachedView || null;
          }
          /** Detaches the embedded view at the given index. */

        }, {
          key: "_detachView",
          value: function _detachView(index, viewContainerRef) {
            return viewContainerRef.detach(index);
          }
        }]);

        return _RecycleViewRepeaterStrategy;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Class to be used to power selecting one or more options from a list.
       */


      var SelectionModel = /*#__PURE__*/function () {
        function SelectionModel() {
          var _this452 = this;

          var _multiple = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;

          var initiallySelectedValues = arguments.length > 1 ? arguments[1] : undefined;

          var _emitChanges = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;

          _classCallCheck2(this, SelectionModel);

          this._multiple = _multiple;
          this._emitChanges = _emitChanges;
          /** Currently-selected values. */

          this._selection = new Set();
          /** Keeps track of the deselected options that haven't been emitted by the change event. */

          this._deselectedToEmit = [];
          /** Keeps track of the selected options that haven't been emitted by the change event. */

          this._selectedToEmit = [];
          /** Event emitted when the value has changed. */

          this.changed = new rxjs__WEBPACK_IMPORTED_MODULE_0__["Subject"]();

          if (initiallySelectedValues && initiallySelectedValues.length) {
            if (_multiple) {
              initiallySelectedValues.forEach(function (value) {
                return _this452._markSelected(value);
              });
            } else {
              this._markSelected(initiallySelectedValues[0]);
            } // Clear the array in order to avoid firing the change event for preselected values.


            this._selectedToEmit.length = 0;
          }
        }
        /** Selected values. */


        _createClass2(SelectionModel, [{
          key: "selected",
          get: function get() {
            if (!this._selected) {
              this._selected = Array.from(this._selection.values());
            }

            return this._selected;
          }
          /**
           * Selects a value or an array of values.
           */

        }, {
          key: "select",
          value: function select() {
            var _this453 = this;

            for (var _len31 = arguments.length, values = new Array(_len31), _key32 = 0; _key32 < _len31; _key32++) {
              values[_key32] = arguments[_key32];
            }

            this._verifyValueAssignment(values);

            values.forEach(function (value) {
              return _this453._markSelected(value);
            });

            this._emitChangeEvent();
          }
          /**
           * Deselects a value or an array of values.
           */

        }, {
          key: "deselect",
          value: function deselect() {
            var _this454 = this;

            for (var _len32 = arguments.length, values = new Array(_len32), _key33 = 0; _key33 < _len32; _key33++) {
              values[_key33] = arguments[_key33];
            }

            this._verifyValueAssignment(values);

            values.forEach(function (value) {
              return _this454._unmarkSelected(value);
            });

            this._emitChangeEvent();
          }
          /**
           * Toggles a value between selected and deselected.
           */

        }, {
          key: "toggle",
          value: function toggle(value) {
            this.isSelected(value) ? this.deselect(value) : this.select(value);
          }
          /**
           * Clears all of the selected values.
           */

        }, {
          key: "clear",
          value: function clear() {
            this._unmarkAll();

            this._emitChangeEvent();
          }
          /**
           * Determines whether a value is selected.
           */

        }, {
          key: "isSelected",
          value: function isSelected(value) {
            return this._selection.has(value);
          }
          /**
           * Determines whether the model does not have a value.
           */

        }, {
          key: "isEmpty",
          value: function isEmpty() {
            return this._selection.size === 0;
          }
          /**
           * Determines whether the model has a value.
           */

        }, {
          key: "hasValue",
          value: function hasValue() {
            return !this.isEmpty();
          }
          /**
           * Sorts the selected values based on a predicate function.
           */

        }, {
          key: "sort",
          value: function sort(predicate) {
            if (this._multiple && this.selected) {
              this._selected.sort(predicate);
            }
          }
          /**
           * Gets whether multiple values can be selected.
           */

        }, {
          key: "isMultipleSelection",
          value: function isMultipleSelection() {
            return this._multiple;
          }
          /** Emits a change event and clears the records of selected and deselected values. */

        }, {
          key: "_emitChangeEvent",
          value: function _emitChangeEvent() {
            // Clear the selected values so they can be re-cached.
            this._selected = null;

            if (this._selectedToEmit.length || this._deselectedToEmit.length) {
              this.changed.next({
                source: this,
                added: this._selectedToEmit,
                removed: this._deselectedToEmit
              });
              this._deselectedToEmit = [];
              this._selectedToEmit = [];
            }
          }
          /** Selects a value. */

        }, {
          key: "_markSelected",
          value: function _markSelected(value) {
            if (!this.isSelected(value)) {
              if (!this._multiple) {
                this._unmarkAll();
              }

              this._selection.add(value);

              if (this._emitChanges) {
                this._selectedToEmit.push(value);
              }
            }
          }
          /** Deselects a value. */

        }, {
          key: "_unmarkSelected",
          value: function _unmarkSelected(value) {
            if (this.isSelected(value)) {
              this._selection["delete"](value);

              if (this._emitChanges) {
                this._deselectedToEmit.push(value);
              }
            }
          }
          /** Clears out the selected values. */

        }, {
          key: "_unmarkAll",
          value: function _unmarkAll() {
            var _this455 = this;

            if (!this.isEmpty()) {
              this._selection.forEach(function (value) {
                return _this455._unmarkSelected(value);
              });
            }
          }
          /**
           * Verifies the value assignment and throws an error if the specified value array is
           * including multiple values while the selection model is not supporting multiple values.
           */

        }, {
          key: "_verifyValueAssignment",
          value: function _verifyValueAssignment(values) {
            if (values.length > 1 && !this._multiple && (typeof ngDevMode === 'undefined' || ngDevMode)) {
              throw getMultipleValuesInSingleSelectionError();
            }
          }
        }]);

        return SelectionModel;
      }();
      /**
       * Returns an error that reports that multiple values are passed into a selection model
       * with a single value.
       * @docs-private
       */


      function getMultipleValuesInSingleSelectionError() {
        return Error('Cannot pass multiple values into SelectionModel with single-value mode.');
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Class to coordinate unique selection based on name.
       * Intended to be consumed as an Angular service.
       * This service is needed because native radio change events are only fired on the item currently
       * being selected, and we still need to uncheck the previous selection.
       *
       * This service does not *store* any IDs and names because they may change at any time, so it is
       * less error-prone if they are simply passed through when the events occur.
       */


      var UniqueSelectionDispatcher = /*#__PURE__*/function () {
        function UniqueSelectionDispatcher() {
          _classCallCheck2(this, UniqueSelectionDispatcher);

          this._listeners = [];
        }
        /**
         * Notify other items that selection for the given name has been set.
         * @param id ID of the item.
         * @param name Name of the item.
         */


        _createClass2(UniqueSelectionDispatcher, [{
          key: "notify",
          value: function notify(id, name) {
            var _iterator57 = _createForOfIteratorHelper(this._listeners),
                _step56;

            try {
              for (_iterator57.s(); !(_step56 = _iterator57.n()).done;) {
                var listener = _step56.value;
                listener(id, name);
              }
            } catch (err) {
              _iterator57.e(err);
            } finally {
              _iterator57.f();
            }
          }
          /**
           * Listen for future changes to item selection.
           * @return Function used to deregister listener
           */

        }, {
          key: "listen",
          value: function listen(listener) {
            var _this456 = this;

            this._listeners.push(listener);

            return function () {
              _this456._listeners = _this456._listeners.filter(function (registered) {
                return listener !== registered;
              });
            };
          }
        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            this._listeners = [];
          }
        }]);

        return UniqueSelectionDispatcher;
      }();

      UniqueSelectionDispatcher.ɵfac = function UniqueSelectionDispatcher_Factory(t) {
        return new (t || UniqueSelectionDispatcher)();
      };

      UniqueSelectionDispatcher.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"])({
        factory: function UniqueSelectionDispatcher_Factory() {
          return new UniqueSelectionDispatcher();
        },
        token: UniqueSelectionDispatcher,
        providedIn: "root"
      });
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](UniqueSelectionDispatcher, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"],
          args: [{
            providedIn: 'root'
          }]
        }], function () {
          return [];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Injection token for {@link _ViewRepeater}. This token is for use by Angular Material only.
       * @docs-private
       */


      var _VIEW_REPEATER_STRATEGY = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["InjectionToken"]('_ViewRepeater');
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Generated bundle index. Do not edit.
       */
      //# sourceMappingURL=collections.js.map

      /***/

    },

    /***/
    "Ctv7": function Ctv7(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return addSeconds;
      });
      /* harmony import */


      var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../_lib/toInteger/index.js */
      "/h9T");
      /* harmony import */


      var _addMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../addMilliseconds/index.js */
      "pl0G");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name addSeconds
       * @category Second Helpers
       * @summary Add the specified number of seconds to the given date.
       *
       * @description
       * Add the specified number of seconds to the given date.
       *
       * ### 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 {Date|Number} date - the date to be changed
       * @param {Number} amount - the amount of seconds to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
       * @returns {Date} the new date with the seconds added
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // Add 30 seconds to 10 July 2014 12:45:00:
       * var result = addSeconds(new Date(2014, 6, 10, 12, 45, 0), 30)
       * //=> Thu Jul 10 2014 12:45:30
       */


      function addSeconds(dirtyDate, dirtyAmount) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(2, arguments);
        var amount = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyAmount);
        return Object(_addMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate, amount * 1000);
      }
      /***/

    },

    /***/
    "CxvL": function CxvL(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return startOfHour;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name startOfHour
       * @category Hour Helpers
       * @summary Return the start of an hour for the given date.
       *
       * @description
       * Return the start of an hour for the given date.
       * The result will be in the local timezone.
       *
       * ### 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 {Date|Number} date - the original date
       * @returns {Date} the start of an hour
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // The start of an hour for 2 September 2014 11:55:00:
       * var result = startOfHour(new Date(2014, 8, 2, 11, 55))
       * //=> Tue Sep 02 2014 11:00:00
       */


      function startOfHour(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);
        date.setMinutes(0, 0, 0);
        return date;
      }
      /***/

    },

    /***/
    "D+pV": function DPV(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return getDecade;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name getDecade
       * @category Decade Helpers
       * @summary Get the decade of the given date.
       *
       * @description
       * Get the decade of the given date.
       *
       * ### 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 {Date|Number} date - the given date
       * @returns {Number} the year of decade
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // Which decade belongs 27 November 1942?
       * var result = getDecade(new Date(1942, 10, 27))
       * //=> 1940
       */


      function getDecade(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);
        var year = date.getFullYear();
        var decade = Math.floor(year / 10) * 10;
        return decade;
      }
      /***/

    },

    /***/
    "D/JM": function DJM(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Basque [eu]
      //! author : Eneko Illarramendi : https://github.com/eillarra
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var eu = moment.defineLocale('eu', {
          months: 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split('_'),
          monthsShort: 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split('_'),
          monthsParseExact: true,
          weekdays: 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split('_'),
          weekdaysShort: 'ig._al._ar._az._og._ol._lr.'.split('_'),
          weekdaysMin: 'ig_al_ar_az_og_ol_lr'.split('_'),
          weekdaysParseExact: true,
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'YYYY-MM-DD',
            LL: 'YYYY[ko] MMMM[ren] D[a]',
            LLL: 'YYYY[ko] MMMM[ren] D[a] HH:mm',
            LLLL: 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm',
            l: 'YYYY-M-D',
            ll: 'YYYY[ko] MMM D[a]',
            lll: 'YYYY[ko] MMM D[a] HH:mm',
            llll: 'ddd, YYYY[ko] MMM D[a] HH:mm'
          },
          calendar: {
            sameDay: '[gaur] LT[etan]',
            nextDay: '[bihar] LT[etan]',
            nextWeek: 'dddd LT[etan]',
            lastDay: '[atzo] LT[etan]',
            lastWeek: '[aurreko] dddd LT[etan]',
            sameElse: 'L'
          },
          relativeTime: {
            future: '%s barru',
            past: 'duela %s',
            s: 'segundo batzuk',
            ss: '%d segundo',
            m: 'minutu bat',
            mm: '%d minutu',
            h: 'ordu bat',
            hh: '%d ordu',
            d: 'egun bat',
            dd: '%d egun',
            M: 'hilabete bat',
            MM: '%d hilabete',
            y: 'urte bat',
            yy: '%d urte'
          },
          dayOfMonthOrdinalParse: /\d{1,2}\./,
          ordinal: '%d.',
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 7 // The week that contains Jan 7th is the first week of the year.

          }
        });
        return eu;
      });
      /***/

    },

    /***/
    "D0XW": function D0XW(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "asyncScheduler", function () {
        return asyncScheduler;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "async", function () {
        return async;
      });
      /* harmony import */


      var _AsyncAction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ./AsyncAction */
      "3N8a");
      /* harmony import */


      var _AsyncScheduler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ./AsyncScheduler */
      "IjjT");

      var asyncScheduler = new _AsyncScheduler__WEBPACK_IMPORTED_MODULE_1__["AsyncScheduler"](_AsyncAction__WEBPACK_IMPORTED_MODULE_0__["AsyncAction"]);
      var async = asyncScheduler; //# sourceMappingURL=async.js.map

      /***/
    },

    /***/
    "D0ch": function D0ch(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return isMatch;
      });
      /* harmony import */


      var _parse_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../parse/index.js */
      "LPPQ");
      /* harmony import */


      var _isValid_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../isValid/index.js */
      "Se/U");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name isMatch
       * @category Common Helpers
       * @summary validates the date string against given formats
       *
       * @description
       * Return the true if given date is string correct against the given format else
       * will return false.
       *
       * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries.
       * > See: https://git.io/fxCyr
       *
       * The characters in the format string wrapped between two single quotes characters (') are escaped.
       * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.
       *
       * Format of the format string is based on Unicode Technical Standard #35:
       * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
       * with a few additions (see note 5 below the table).
       *
       * Not all tokens are compatible. Combinations that don't make sense or could lead to bugs are prohibited
       * and will throw `RangeError`. For example usage of 24-hour format token with AM/PM token will throw an exception:
       *
       * ```javascript
       * isMatch('23 AM', 'HH a')
       * //=> RangeError: The format string mustn't contain `HH` and `a` at the same time
       * ```
       *
       * See the compatibility table: https://docs.google.com/spreadsheets/d/e/2PACX-1vQOPU3xUhplll6dyoMmVUXHKl_8CRDs6_ueLmex3SoqwhuolkuN3O05l4rqx5h1dKX8eb46Ul-CCSrq/pubhtml?gid=0&single=true
       *
       * Accepted format string patterns:
       * | Unit                            |Prior| Pattern | Result examples                   | Notes |
       * |---------------------------------|-----|---------|-----------------------------------|-------|
       * | Era                             | 140 | G..GGG  | AD, BC                            |       |
       * |                                 |     | GGGG    | Anno Domini, Before Christ        | 2     |
       * |                                 |     | GGGGG   | A, B                              |       |
       * | Calendar year                   | 130 | y       | 44, 1, 1900, 2017, 9999           | 4     |
       * |                                 |     | yo      | 44th, 1st, 1900th, 9999999th      | 4,5   |
       * |                                 |     | yy      | 44, 01, 00, 17                    | 4     |
       * |                                 |     | yyy     | 044, 001, 123, 999                | 4     |
       * |                                 |     | yyyy    | 0044, 0001, 1900, 2017            | 4     |
       * |                                 |     | yyyyy   | ...                               | 2,4   |
       * | Local week-numbering year       | 130 | Y       | 44, 1, 1900, 2017, 9000           | 4     |
       * |                                 |     | Yo      | 44th, 1st, 1900th, 9999999th      | 4,5   |
       * |                                 |     | YY      | 44, 01, 00, 17                    | 4,6   |
       * |                                 |     | YYY     | 044, 001, 123, 999                | 4     |
       * |                                 |     | YYYY    | 0044, 0001, 1900, 2017            | 4,6   |
       * |                                 |     | YYYYY   | ...                               | 2,4   |
       * | ISO week-numbering year         | 130 | R       | -43, 1, 1900, 2017, 9999, -9999   | 4,5   |
       * |                                 |     | RR      | -43, 01, 00, 17                   | 4,5   |
       * |                                 |     | RRR     | -043, 001, 123, 999, -999         | 4,5   |
       * |                                 |     | RRRR    | -0043, 0001, 2017, 9999, -9999    | 4,5   |
       * |                                 |     | RRRRR   | ...                               | 2,4,5 |
       * | Extended year                   | 130 | u       | -43, 1, 1900, 2017, 9999, -999    | 4     |
       * |                                 |     | uu      | -43, 01, 99, -99                  | 4     |
       * |                                 |     | uuu     | -043, 001, 123, 999, -999         | 4     |
       * |                                 |     | uuuu    | -0043, 0001, 2017, 9999, -9999    | 4     |
       * |                                 |     | uuuuu   | ...                               | 2,4   |
       * | Quarter (formatting)            | 120 | Q       | 1, 2, 3, 4                        |       |
       * |                                 |     | Qo      | 1st, 2nd, 3rd, 4th                | 5     |
       * |                                 |     | QQ      | 01, 02, 03, 04                    |       |
       * |                                 |     | QQQ     | Q1, Q2, Q3, Q4                    |       |
       * |                                 |     | QQQQ    | 1st quarter, 2nd quarter, ...     | 2     |
       * |                                 |     | QQQQQ   | 1, 2, 3, 4                        | 4     |
       * | Quarter (stand-alone)           | 120 | q       | 1, 2, 3, 4                        |       |
       * |                                 |     | qo      | 1st, 2nd, 3rd, 4th                | 5     |
       * |                                 |     | qq      | 01, 02, 03, 04                    |       |
       * |                                 |     | qqq     | Q1, Q2, Q3, Q4                    |       |
       * |                                 |     | qqqq    | 1st quarter, 2nd quarter, ...     | 2     |
       * |                                 |     | qqqqq   | 1, 2, 3, 4                        | 3     |
       * | Month (formatting)              | 110 | M       | 1, 2, ..., 12                     |       |
       * |                                 |     | Mo      | 1st, 2nd, ..., 12th               | 5     |
       * |                                 |     | MM      | 01, 02, ..., 12                   |       |
       * |                                 |     | MMM     | Jan, Feb, ..., Dec                |       |
       * |                                 |     | MMMM    | January, February, ..., December  | 2     |
       * |                                 |     | MMMMM   | J, F, ..., D                      |       |
       * | Month (stand-alone)             | 110 | L       | 1, 2, ..., 12                     |       |
       * |                                 |     | Lo      | 1st, 2nd, ..., 12th               | 5     |
       * |                                 |     | LL      | 01, 02, ..., 12                   |       |
       * |                                 |     | LLL     | Jan, Feb, ..., Dec                |       |
       * |                                 |     | LLLL    | January, February, ..., December  | 2     |
       * |                                 |     | LLLLL   | J, F, ..., D                      |       |
       * | Local week of year              | 100 | w       | 1, 2, ..., 53                     |       |
       * |                                 |     | wo      | 1st, 2nd, ..., 53th               | 5     |
       * |                                 |     | ww      | 01, 02, ..., 53                   |       |
       * | ISO week of year                | 100 | I       | 1, 2, ..., 53                     | 5     |
       * |                                 |     | Io      | 1st, 2nd, ..., 53th               | 5     |
       * |                                 |     | II      | 01, 02, ..., 53                   | 5     |
       * | Day of month                    |  90 | d       | 1, 2, ..., 31                     |       |
       * |                                 |     | do      | 1st, 2nd, ..., 31st               | 5     |
       * |                                 |     | dd      | 01, 02, ..., 31                   |       |
       * | Day of year                     |  90 | D       | 1, 2, ..., 365, 366               | 7     |
       * |                                 |     | Do      | 1st, 2nd, ..., 365th, 366th       | 5     |
       * |                                 |     | DD      | 01, 02, ..., 365, 366             | 7     |
       * |                                 |     | DDD     | 001, 002, ..., 365, 366           |       |
       * |                                 |     | DDDD    | ...                               | 2     |
       * | Day of week (formatting)        |  90 | E..EEE  | Mon, Tue, Wed, ..., Su            |       |
       * |                                 |     | EEEE    | Monday, Tuesday, ..., Sunday      | 2     |
       * |                                 |     | EEEEE   | M, T, W, T, F, S, S               |       |
       * |                                 |     | EEEEEE  | Mo, Tu, We, Th, Fr, Su, Sa        |       |
       * | ISO day of week (formatting)    |  90 | i       | 1, 2, 3, ..., 7                   | 5     |
       * |                                 |     | io      | 1st, 2nd, ..., 7th                | 5     |
       * |                                 |     | ii      | 01, 02, ..., 07                   | 5     |
       * |                                 |     | iii     | Mon, Tue, Wed, ..., Su            | 5     |
       * |                                 |     | iiii    | Monday, Tuesday, ..., Sunday      | 2,5   |
       * |                                 |     | iiiii   | M, T, W, T, F, S, S               | 5     |
       * |                                 |     | iiiiii  | Mo, Tu, We, Th, Fr, Su, Sa        | 5     |
       * | Local day of week (formatting)  |  90 | e       | 2, 3, 4, ..., 1                   |       |
       * |                                 |     | eo      | 2nd, 3rd, ..., 1st                | 5     |
       * |                                 |     | ee      | 02, 03, ..., 01                   |       |
       * |                                 |     | eee     | Mon, Tue, Wed, ..., Su            |       |
       * |                                 |     | eeee    | Monday, Tuesday, ..., Sunday      | 2     |
       * |                                 |     | eeeee   | M, T, W, T, F, S, S               |       |
       * |                                 |     | eeeeee  | Mo, Tu, We, Th, Fr, Su, Sa        |       |
       * | Local day of week (stand-alone) |  90 | c       | 2, 3, 4, ..., 1                   |       |
       * |                                 |     | co      | 2nd, 3rd, ..., 1st                | 5     |
       * |                                 |     | cc      | 02, 03, ..., 01                   |       |
       * |                                 |     | ccc     | Mon, Tue, Wed, ..., Su            |       |
       * |                                 |     | cccc    | Monday, Tuesday, ..., Sunday      | 2     |
       * |                                 |     | ccccc   | M, T, W, T, F, S, S               |       |
       * |                                 |     | cccccc  | Mo, Tu, We, Th, Fr, Su, Sa        |       |
       * | AM, PM                          |  80 | a..aaa  | AM, PM                            |       |
       * |                                 |     | aaaa    | a.m., p.m.                        | 2     |
       * |                                 |     | aaaaa   | a, p                              |       |
       * | AM, PM, noon, midnight          |  80 | b..bbb  | AM, PM, noon, midnight            |       |
       * |                                 |     | bbbb    | a.m., p.m., noon, midnight        | 2     |
       * |                                 |     | bbbbb   | a, p, n, mi                       |       |
       * | Flexible day period             |  80 | B..BBB  | at night, in the morning, ...     |       |
       * |                                 |     | BBBB    | at night, in the morning, ...     | 2     |
       * |                                 |     | BBBBB   | at night, in the morning, ...     |       |
       * | Hour [1-12]                     |  70 | h       | 1, 2, ..., 11, 12                 |       |
       * |                                 |     | ho      | 1st, 2nd, ..., 11th, 12th         | 5     |
       * |                                 |     | hh      | 01, 02, ..., 11, 12               |       |
       * | Hour [0-23]                     |  70 | H       | 0, 1, 2, ..., 23                  |       |
       * |                                 |     | Ho      | 0th, 1st, 2nd, ..., 23rd          | 5     |
       * |                                 |     | HH      | 00, 01, 02, ..., 23               |       |
       * | Hour [0-11]                     |  70 | K       | 1, 2, ..., 11, 0                  |       |
       * |                                 |     | Ko      | 1st, 2nd, ..., 11th, 0th          | 5     |
       * |                                 |     | KK      | 01, 02, ..., 11, 00               |       |
       * | Hour [1-24]                     |  70 | k       | 24, 1, 2, ..., 23                 |       |
       * |                                 |     | ko      | 24th, 1st, 2nd, ..., 23rd         | 5     |
       * |                                 |     | kk      | 24, 01, 02, ..., 23               |       |
       * | Minute                          |  60 | m       | 0, 1, ..., 59                     |       |
       * |                                 |     | mo      | 0th, 1st, ..., 59th               | 5     |
       * |                                 |     | mm      | 00, 01, ..., 59                   |       |
       * | Second                          |  50 | s       | 0, 1, ..., 59                     |       |
       * |                                 |     | so      | 0th, 1st, ..., 59th               | 5     |
       * |                                 |     | ss      | 00, 01, ..., 59                   |       |
       * | Seconds timestamp               |  40 | t       | 512969520                         |       |
       * |                                 |     | tt      | ...                               | 2     |
       * | Fraction of second              |  30 | S       | 0, 1, ..., 9                      |       |
       * |                                 |     | SS      | 00, 01, ..., 99                   |       |
       * |                                 |     | SSS     | 000, 0001, ..., 999               |       |
       * |                                 |     | SSSS    | ...                               | 2     |
       * | Milliseconds timestamp          |  20 | T       | 512969520900                      |       |
       * |                                 |     | TT      | ...                               | 2     |
       * | Timezone (ISO-8601 w/ Z)        |  10 | X       | -08, +0530, Z                     |       |
       * |                                 |     | XX      | -0800, +0530, Z                   |       |
       * |                                 |     | XXX     | -08:00, +05:30, Z                 |       |
       * |                                 |     | XXXX    | -0800, +0530, Z, +123456          | 2     |
       * |                                 |     | XXXXX   | -08:00, +05:30, Z, +12:34:56      |       |
       * | Timezone (ISO-8601 w/o Z)       |  10 | x       | -08, +0530, +00                   |       |
       * |                                 |     | xx      | -0800, +0530, +0000               |       |
       * |                                 |     | xxx     | -08:00, +05:30, +00:00            | 2     |
       * |                                 |     | xxxx    | -0800, +0530, +0000, +123456      |       |
       * |                                 |     | xxxxx   | -08:00, +05:30, +00:00, +12:34:56 |       |
       * | Long localized date             |  NA | P       | 05/29/1453                        | 5,8   |
       * |                                 |     | PP      | May 29, 1453                      |       |
       * |                                 |     | PPP     | May 29th, 1453                    |       |
       * |                                 |     | PPPP    | Sunday, May 29th, 1453            | 2,5,8 |
       * | Long localized time             |  NA | p       | 12:00 AM                          | 5,8   |
       * |                                 |     | pp      | 12:00:00 AM                       |       |
       * | Combination of date and time    |  NA | Pp      | 05/29/1453, 12:00 AM              |       |
       * |                                 |     | PPpp    | May 29, 1453, 12:00:00 AM         |       |
       * |                                 |     | PPPpp   | May 29th, 1453 at ...             |       |
       * |                                 |     | PPPPpp  | Sunday, May 29th, 1453 at ...     | 2,5,8 |
       * Notes:
       * 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale
       *    are the same as "stand-alone" units, but are different in some languages.
       *    "Formatting" units are declined according to the rules of the language
       *    in the context of a date. "Stand-alone" units are always nominative singular.
       *    In `format` function, they will produce different result:
       *
       *    `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'`
       *
       *    `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'`
       *
       *    `isMatch` will try to match both formatting and stand-alone units interchangably.
       *
       * 2. Any sequence of the identical letters is a pattern, unless it is escaped by
       *    the single quote characters (see below).
       *    If the sequence is longer than listed in table:
       *    - for numerical units (`yyyyyyyy`) `isMatch` will try to match a number
       *      as wide as the sequence
       *    - for text units (`MMMMMMMM`) `isMatch` will try to match the widest variation of the unit.
       *      These variations are marked with "2" in the last column of the table.
       *
       * 3. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales.
       *    These tokens represent the shortest form of the quarter.
       *
       * 4. The main difference between `y` and `u` patterns are B.C. years:
       *
       *    | Year | `y` | `u` |
       *    |------|-----|-----|
       *    | AC 1 |   1 |   1 |
       *    | BC 1 |   1 |   0 |
       *    | BC 2 |   2 |  -1 |
       *
       *    Also `yy` will try to guess the century of two digit year by proximity with `referenceDate`:
       *
       *    `isMatch('50', 'yy') //=> true`
       *
       *    `isMatch('75', 'yy') //=> true`
       *
       *    while `uu` will use the year as is:
       *
       *    `isMatch('50', 'uu') //=> true`
       *
       *    `isMatch('75', 'uu') //=> true`
       *
       *    The same difference is true for local and ISO week-numbering years (`Y` and `R`),
       *    except local week-numbering years are dependent on `options.weekStartsOn`
       *    and `options.firstWeekContainsDate` (compare [setISOWeekYear]{@link https://date-fns.org/docs/setISOWeekYear}
       *    and [setWeekYear]{@link https://date-fns.org/docs/setWeekYear}).
       *
       * 5. These patterns are not in the Unicode Technical Standard #35:
       *    - `i`: ISO day of week
       *    - `I`: ISO week of year
       *    - `R`: ISO week-numbering year
       *    - `o`: ordinal number modifier
       *    - `P`: long localized date
       *    - `p`: long localized time
       *
       * 6. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.
       *    You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://git.io/fxCyr
       *
       * 7. `D` and `DD` tokens represent days of the year but they are ofthen confused with days of the month.
       *    You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://git.io/fxCyr
       *
       * 8. `P+` tokens do not have a defined priority since they are merely aliases to other tokens based
       *    on the given locale.
       *
       *    using `en-US` locale: `P` => `MM/dd/yyyy`
       *    using `en-US` locale: `p` => `hh:mm a`
       *    using `pt-BR` locale: `P` => `dd/MM/yyyy`
       *    using `pt-BR` locale: `p` => `HH:mm`
       *
       * Values will be checked in the descending order of its unit's priority.
       * Units of an equal priority overwrite each other in the order of appearance.
       *
       * If no values of higher priority are matched (e.g. when matching string 'January 1st' without a year),
       * the values will be taken from today's using `new Date()` date which works as a context of parsing.
       *
       * The result may vary by locale.
       *
       * If `formatString` matches with `dateString` but does not provides tokens, `referenceDate` will be returned.
       *
       *
       *
       * @param {String} dateString - the date string to verify
       * @param {String} formatString - the string of tokens
       * @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)
       * @param {1|2|3|4|5|6|7} [options.firstWeekContainsDate=1] - the day of January, which is always in the first week of the year
       * @param {Boolean} [options.useAdditionalWeekYearTokens=false] - if true, allows usage of the week-numbering year tokens `YY` and `YYYY`;
       *   see: https://git.io/fxCyr
       * @param {Boolean} [options.useAdditionalDayOfYearTokens=false] - if true, allows usage of the day of year tokens `D` and `DD`;
       *   see: https://git.io/fxCyr
       * @returns {Boolean}
       * @throws {TypeError} 2 arguments required
       * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6
       * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7
       * @throws {RangeError} `options.locale` must contain `match` property
       * @throws {RangeError} use `yyyy` instead of `YYYY` for formatting years; see: https://git.io/fxCyr
       * @throws {RangeError} use `yy` instead of `YY` for formatting years; see: https://git.io/fxCyr
       * @throws {RangeError} use `d` instead of `D` for formatting days of the month; see: https://git.io/fxCyr
       * @throws {RangeError} use `dd` instead of `DD` for formatting days of the month; see: https://git.io/fxCyr
       * @throws {RangeError} format string contains an unescaped latin alphabet character
       *
       * @example
       * // Match 11 February 2014 from middle-endian format:
       * var result = isMatch('02/11/2014', 'MM/dd/yyyy')
       * //=> true
       *
       * @example
       * // Match 28th of February in Esperanto locale in the context of 2010 year:
       * import eo from 'date-fns/locale/eo'
       * var result = isMatch('28-a de februaro', "do 'de' MMMM", {
       *   locale: eo
       * })
       * //=> true
       */


      function isMatch(dateString, formatString, dirtyOptions) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(2, arguments);
        return Object(_isValid_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(Object(_parse_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dateString, formatString, new Date(), dirtyOptions));
      }
      /***/

    },

    /***/
    "DG9o": function DG9o(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony import */


      var _lightFormatters_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../lightFormatters/index.js */
      "YIOq");
      /* harmony import */


      var _lib_getUTCDayOfYear_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../../../_lib/getUTCDayOfYear/index.js */
      "Hnpn");
      /* harmony import */


      var _lib_getUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../../../_lib/getUTCISOWeek/index.js */
      "lgZR");
      /* harmony import */


      var _lib_getUTCISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../../../_lib/getUTCISOWeekYear/index.js */
      "gr1v");
      /* harmony import */


      var _lib_getUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! ../../../_lib/getUTCWeek/index.js */
      "ErpD");
      /* harmony import */


      var _lib_getUTCWeekYear_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! ../../../_lib/getUTCWeekYear/index.js */
      "Szzx");
      /* harmony import */


      var _addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
      /*! ../../addLeadingZeros/index.js */
      "+7QN");

      var dayPeriodEnum = {
        am: 'am',
        pm: 'pm',
        midnight: 'midnight',
        noon: 'noon',
        morning: 'morning',
        afternoon: 'afternoon',
        evening: 'evening',
        night: 'night'
        /*
         * |     | Unit                           |     | Unit                           |
         * |-----|--------------------------------|-----|--------------------------------|
         * |  a  | AM, PM                         |  A* | Milliseconds in day            |
         * |  b  | AM, PM, noon, midnight         |  B  | Flexible day period            |
         * |  c  | Stand-alone local day of week  |  C* | Localized hour w/ day period   |
         * |  d  | Day of month                   |  D  | Day of year                    |
         * |  e  | Local day of week              |  E  | Day of week                    |
         * |  f  |                                |  F* | Day of week in month           |
         * |  g* | Modified Julian day            |  G  | Era                            |
         * |  h  | Hour [1-12]                    |  H  | Hour [0-23]                    |
         * |  i! | ISO day of week                |  I! | ISO week of year               |
         * |  j* | Localized hour w/ day period   |  J* | Localized hour w/o day period  |
         * |  k  | Hour [1-24]                    |  K  | Hour [0-11]                    |
         * |  l* | (deprecated)                   |  L  | Stand-alone month              |
         * |  m  | Minute                         |  M  | Month                          |
         * |  n  |                                |  N  |                                |
         * |  o! | Ordinal number modifier        |  O  | Timezone (GMT)                 |
         * |  p! | Long localized time            |  P! | Long localized date            |
         * |  q  | Stand-alone quarter            |  Q  | Quarter                        |
         * |  r* | Related Gregorian year         |  R! | ISO week-numbering year        |
         * |  s  | Second                         |  S  | Fraction of second             |
         * |  t! | Seconds timestamp              |  T! | Milliseconds timestamp         |
         * |  u  | Extended year                  |  U* | Cyclic year                    |
         * |  v* | Timezone (generic non-locat.)  |  V* | Timezone (location)            |
         * |  w  | Local week of year             |  W* | Week of month                  |
         * |  x  | Timezone (ISO-8601 w/o Z)      |  X  | Timezone (ISO-8601)            |
         * |  y  | Year (abs)                     |  Y  | Local week-numbering year      |
         * |  z  | Timezone (specific non-locat.) |  Z* | Timezone (aliases)             |
         *
         * Letters marked by * are not implemented but reserved by Unicode standard.
         *
         * Letters marked by ! are non-standard, but implemented by date-fns:
         * - `o` modifies the previous token to turn it into an ordinal (see `format` docs)
         * - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days,
         *   i.e. 7 for Sunday, 1 for Monday, etc.
         * - `I` is ISO week of year, as opposed to `w` which is local week of year.
         * - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year.
         *   `R` is supposed to be used in conjunction with `I` and `i`
         *   for universal ISO week-numbering date, whereas
         *   `Y` is supposed to be used in conjunction with `w` and `e`
         *   for week-numbering date specific to the locale.
         * - `P` is long localized date format
         * - `p` is long localized time format
         */

      };
      var formatters = {
        // Era
        G: function G(date, token, localize) {
          var era = date.getUTCFullYear() > 0 ? 1 : 0;

          switch (token) {
            // AD, BC
            case 'G':
            case 'GG':
            case 'GGG':
              return localize.era(era, {
                width: 'abbreviated'
              });
            // A, B

            case 'GGGGG':
              return localize.era(era, {
                width: 'narrow'
              });
            // Anno Domini, Before Christ

            case 'GGGG':
            default:
              return localize.era(era, {
                width: 'wide'
              });
          }
        },
        // Year
        y: function y(date, token, localize) {
          // Ordinal number
          if (token === 'yo') {
            var signedYear = date.getUTCFullYear(); // Returns 1 for 1 BC (which is year 0 in JavaScript)

            var year = signedYear > 0 ? signedYear : 1 - signedYear;
            return localize.ordinalNumber(year, {
              unit: 'year'
            });
          }

          return _lightFormatters_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].y(date, token);
        },
        // Local week-numbering year
        Y: function Y(date, token, localize, options) {
          var signedWeekYear = Object(_lib_getUTCWeekYear_index_js__WEBPACK_IMPORTED_MODULE_5__["default"])(date, options); // Returns 1 for 1 BC (which is year 0 in JavaScript)

          var weekYear = signedWeekYear > 0 ? signedWeekYear : 1 - signedWeekYear; // Two digit year

          if (token === 'YY') {
            var twoDigitYear = weekYear % 100;
            return Object(_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_6__["default"])(twoDigitYear, 2);
          } // Ordinal number


          if (token === 'Yo') {
            return localize.ordinalNumber(weekYear, {
              unit: 'year'
            });
          } // Padding


          return Object(_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_6__["default"])(weekYear, token.length);
        },
        // ISO week-numbering year
        R: function R(date, token) {
          var isoWeekYear = Object(_lib_getUTCISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(date); // Padding

          return Object(_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_6__["default"])(isoWeekYear, token.length);
        },
        // Extended year. This is a single number designating the year of this calendar system.
        // The main difference between `y` and `u` localizers are B.C. years:
        // | Year | `y` | `u` |
        // |------|-----|-----|
        // | AC 1 |   1 |   1 |
        // | BC 1 |   1 |   0 |
        // | BC 2 |   2 |  -1 |
        // Also `yy` always returns the last two digits of a year,
        // while `uu` pads single digit years to 2 characters and returns other years unchanged.
        u: function u(date, token) {
          var year = date.getUTCFullYear();
          return Object(_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_6__["default"])(year, token.length);
        },
        // Quarter
        Q: function Q(date, token, localize) {
          var quarter = Math.ceil((date.getUTCMonth() + 1) / 3);

          switch (token) {
            // 1, 2, 3, 4
            case 'Q':
              return String(quarter);
            // 01, 02, 03, 04

            case 'QQ':
              return Object(_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_6__["default"])(quarter, 2);
            // 1st, 2nd, 3rd, 4th

            case 'Qo':
              return localize.ordinalNumber(quarter, {
                unit: 'quarter'
              });
            // Q1, Q2, Q3, Q4

            case 'QQQ':
              return localize.quarter(quarter, {
                width: 'abbreviated',
                context: 'formatting'
              });
            // 1, 2, 3, 4 (narrow quarter; could be not numerical)

            case 'QQQQQ':
              return localize.quarter(quarter, {
                width: 'narrow',
                context: 'formatting'
              });
            // 1st quarter, 2nd quarter, ...

            case 'QQQQ':
            default:
              return localize.quarter(quarter, {
                width: 'wide',
                context: 'formatting'
              });
          }
        },
        // Stand-alone quarter
        q: function q(date, token, localize) {
          var quarter = Math.ceil((date.getUTCMonth() + 1) / 3);

          switch (token) {
            // 1, 2, 3, 4
            case 'q':
              return String(quarter);
            // 01, 02, 03, 04

            case 'qq':
              return Object(_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_6__["default"])(quarter, 2);
            // 1st, 2nd, 3rd, 4th

            case 'qo':
              return localize.ordinalNumber(quarter, {
                unit: 'quarter'
              });
            // Q1, Q2, Q3, Q4

            case 'qqq':
              return localize.quarter(quarter, {
                width: 'abbreviated',
                context: 'standalone'
              });
            // 1, 2, 3, 4 (narrow quarter; could be not numerical)

            case 'qqqqq':
              return localize.quarter(quarter, {
                width: 'narrow',
                context: 'standalone'
              });
            // 1st quarter, 2nd quarter, ...

            case 'qqqq':
            default:
              return localize.quarter(quarter, {
                width: 'wide',
                context: 'standalone'
              });
          }
        },
        // Month
        M: function M(date, token, localize) {
          var month = date.getUTCMonth();

          switch (token) {
            case 'M':
            case 'MM':
              return _lightFormatters_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].M(date, token);
            // 1st, 2nd, ..., 12th

            case 'Mo':
              return localize.ordinalNumber(month + 1, {
                unit: 'month'
              });
            // Jan, Feb, ..., Dec

            case 'MMM':
              return localize.month(month, {
                width: 'abbreviated',
                context: 'formatting'
              });
            // J, F, ..., D

            case 'MMMMM':
              return localize.month(month, {
                width: 'narrow',
                context: 'formatting'
              });
            // January, February, ..., December

            case 'MMMM':
            default:
              return localize.month(month, {
                width: 'wide',
                context: 'formatting'
              });
          }
        },
        // Stand-alone month
        L: function L(date, token, localize) {
          var month = date.getUTCMonth();

          switch (token) {
            // 1, 2, ..., 12
            case 'L':
              return String(month + 1);
            // 01, 02, ..., 12

            case 'LL':
              return Object(_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_6__["default"])(month + 1, 2);
            // 1st, 2nd, ..., 12th

            case 'Lo':
              return localize.ordinalNumber(month + 1, {
                unit: 'month'
              });
            // Jan, Feb, ..., Dec

            case 'LLL':
              return localize.month(month, {
                width: 'abbreviated',
                context: 'standalone'
              });
            // J, F, ..., D

            case 'LLLLL':
              return localize.month(month, {
                width: 'narrow',
                context: 'standalone'
              });
            // January, February, ..., December

            case 'LLLL':
            default:
              return localize.month(month, {
                width: 'wide',
                context: 'standalone'
              });
          }
        },
        // Local week of year
        w: function w(date, token, localize, options) {
          var week = Object(_lib_getUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_4__["default"])(date, options);

          if (token === 'wo') {
            return localize.ordinalNumber(week, {
              unit: 'week'
            });
          }

          return Object(_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_6__["default"])(week, token.length);
        },
        // ISO week of year
        I: function I(date, token, localize) {
          var isoWeek = Object(_lib_getUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(date);

          if (token === 'Io') {
            return localize.ordinalNumber(isoWeek, {
              unit: 'week'
            });
          }

          return Object(_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_6__["default"])(isoWeek, token.length);
        },
        // Day of the month
        d: function d(date, token, localize) {
          if (token === 'do') {
            return localize.ordinalNumber(date.getUTCDate(), {
              unit: 'date'
            });
          }

          return _lightFormatters_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].d(date, token);
        },
        // Day of year
        D: function D(date, token, localize) {
          var dayOfYear = Object(_lib_getUTCDayOfYear_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(date);

          if (token === 'Do') {
            return localize.ordinalNumber(dayOfYear, {
              unit: 'dayOfYear'
            });
          }

          return Object(_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_6__["default"])(dayOfYear, token.length);
        },
        // Day of week
        E: function E(date, token, localize) {
          var dayOfWeek = date.getUTCDay();

          switch (token) {
            // Tue
            case 'E':
            case 'EE':
            case 'EEE':
              return localize.day(dayOfWeek, {
                width: 'abbreviated',
                context: 'formatting'
              });
            // T

            case 'EEEEE':
              return localize.day(dayOfWeek, {
                width: 'narrow',
                context: 'formatting'
              });
            // Tu

            case 'EEEEEE':
              return localize.day(dayOfWeek, {
                width: 'short',
                context: 'formatting'
              });
            // Tuesday

            case 'EEEE':
            default:
              return localize.day(dayOfWeek, {
                width: 'wide',
                context: 'formatting'
              });
          }
        },
        // Local day of week
        e: function e(date, token, localize, options) {
          var dayOfWeek = date.getUTCDay();
          var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;

          switch (token) {
            // Numerical value (Nth day of week with current locale or weekStartsOn)
            case 'e':
              return String(localDayOfWeek);
            // Padded numerical value

            case 'ee':
              return Object(_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_6__["default"])(localDayOfWeek, 2);
            // 1st, 2nd, ..., 7th

            case 'eo':
              return localize.ordinalNumber(localDayOfWeek, {
                unit: 'day'
              });

            case 'eee':
              return localize.day(dayOfWeek, {
                width: 'abbreviated',
                context: 'formatting'
              });
            // T

            case 'eeeee':
              return localize.day(dayOfWeek, {
                width: 'narrow',
                context: 'formatting'
              });
            // Tu

            case 'eeeeee':
              return localize.day(dayOfWeek, {
                width: 'short',
                context: 'formatting'
              });
            // Tuesday

            case 'eeee':
            default:
              return localize.day(dayOfWeek, {
                width: 'wide',
                context: 'formatting'
              });
          }
        },
        // Stand-alone local day of week
        c: function c(date, token, localize, options) {
          var dayOfWeek = date.getUTCDay();
          var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;

          switch (token) {
            // Numerical value (same as in `e`)
            case 'c':
              return String(localDayOfWeek);
            // Padded numerical value

            case 'cc':
              return Object(_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_6__["default"])(localDayOfWeek, token.length);
            // 1st, 2nd, ..., 7th

            case 'co':
              return localize.ordinalNumber(localDayOfWeek, {
                unit: 'day'
              });

            case 'ccc':
              return localize.day(dayOfWeek, {
                width: 'abbreviated',
                context: 'standalone'
              });
            // T

            case 'ccccc':
              return localize.day(dayOfWeek, {
                width: 'narrow',
                context: 'standalone'
              });
            // Tu

            case 'cccccc':
              return localize.day(dayOfWeek, {
                width: 'short',
                context: 'standalone'
              });
            // Tuesday

            case 'cccc':
            default:
              return localize.day(dayOfWeek, {
                width: 'wide',
                context: 'standalone'
              });
          }
        },
        // ISO day of week
        i: function i(date, token, localize) {
          var dayOfWeek = date.getUTCDay();
          var isoDayOfWeek = dayOfWeek === 0 ? 7 : dayOfWeek;

          switch (token) {
            // 2
            case 'i':
              return String(isoDayOfWeek);
            // 02

            case 'ii':
              return Object(_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_6__["default"])(isoDayOfWeek, token.length);
            // 2nd

            case 'io':
              return localize.ordinalNumber(isoDayOfWeek, {
                unit: 'day'
              });
            // Tue

            case 'iii':
              return localize.day(dayOfWeek, {
                width: 'abbreviated',
                context: 'formatting'
              });
            // T

            case 'iiiii':
              return localize.day(dayOfWeek, {
                width: 'narrow',
                context: 'formatting'
              });
            // Tu

            case 'iiiiii':
              return localize.day(dayOfWeek, {
                width: 'short',
                context: 'formatting'
              });
            // Tuesday

            case 'iiii':
            default:
              return localize.day(dayOfWeek, {
                width: 'wide',
                context: 'formatting'
              });
          }
        },
        // AM or PM
        a: function a(date, token, localize) {
          var hours = date.getUTCHours();
          var dayPeriodEnumValue = hours / 12 >= 1 ? 'pm' : 'am';

          switch (token) {
            case 'a':
            case 'aa':
            case 'aaa':
              return localize.dayPeriod(dayPeriodEnumValue, {
                width: 'abbreviated',
                context: 'formatting'
              });

            case 'aaaaa':
              return localize.dayPeriod(dayPeriodEnumValue, {
                width: 'narrow',
                context: 'formatting'
              });

            case 'aaaa':
            default:
              return localize.dayPeriod(dayPeriodEnumValue, {
                width: 'wide',
                context: 'formatting'
              });
          }
        },
        // AM, PM, midnight, noon
        b: function b(date, token, localize) {
          var hours = date.getUTCHours();
          var dayPeriodEnumValue;

          if (hours === 12) {
            dayPeriodEnumValue = dayPeriodEnum.noon;
          } else if (hours === 0) {
            dayPeriodEnumValue = dayPeriodEnum.midnight;
          } else {
            dayPeriodEnumValue = hours / 12 >= 1 ? 'pm' : 'am';
          }

          switch (token) {
            case 'b':
            case 'bb':
            case 'bbb':
              return localize.dayPeriod(dayPeriodEnumValue, {
                width: 'abbreviated',
                context: 'formatting'
              });

            case 'bbbbb':
              return localize.dayPeriod(dayPeriodEnumValue, {
                width: 'narrow',
                context: 'formatting'
              });

            case 'bbbb':
            default:
              return localize.dayPeriod(dayPeriodEnumValue, {
                width: 'wide',
                context: 'formatting'
              });
          }
        },
        // in the morning, in the afternoon, in the evening, at night
        B: function B(date, token, localize) {
          var hours = date.getUTCHours();
          var dayPeriodEnumValue;

          if (hours >= 17) {
            dayPeriodEnumValue = dayPeriodEnum.evening;
          } else if (hours >= 12) {
            dayPeriodEnumValue = dayPeriodEnum.afternoon;
          } else if (hours >= 4) {
            dayPeriodEnumValue = dayPeriodEnum.morning;
          } else {
            dayPeriodEnumValue = dayPeriodEnum.night;
          }

          switch (token) {
            case 'B':
            case 'BB':
            case 'BBB':
              return localize.dayPeriod(dayPeriodEnumValue, {
                width: 'abbreviated',
                context: 'formatting'
              });

            case 'BBBBB':
              return localize.dayPeriod(dayPeriodEnumValue, {
                width: 'narrow',
                context: 'formatting'
              });

            case 'BBBB':
            default:
              return localize.dayPeriod(dayPeriodEnumValue, {
                width: 'wide',
                context: 'formatting'
              });
          }
        },
        // Hour [1-12]
        h: function h(date, token, localize) {
          if (token === 'ho') {
            var hours = date.getUTCHours() % 12;
            if (hours === 0) hours = 12;
            return localize.ordinalNumber(hours, {
              unit: 'hour'
            });
          }

          return _lightFormatters_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].h(date, token);
        },
        // Hour [0-23]
        H: function H(date, token, localize) {
          if (token === 'Ho') {
            return localize.ordinalNumber(date.getUTCHours(), {
              unit: 'hour'
            });
          }

          return _lightFormatters_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].H(date, token);
        },
        // Hour [0-11]
        K: function K(date, token, localize) {
          var hours = date.getUTCHours() % 12;

          if (token === 'Ko') {
            return localize.ordinalNumber(hours, {
              unit: 'hour'
            });
          }

          return Object(_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_6__["default"])(hours, token.length);
        },
        // Hour [1-24]
        k: function k(date, token, localize) {
          var hours = date.getUTCHours();
          if (hours === 0) hours = 24;

          if (token === 'ko') {
            return localize.ordinalNumber(hours, {
              unit: 'hour'
            });
          }

          return Object(_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_6__["default"])(hours, token.length);
        },
        // Minute
        m: function m(date, token, localize) {
          if (token === 'mo') {
            return localize.ordinalNumber(date.getUTCMinutes(), {
              unit: 'minute'
            });
          }

          return _lightFormatters_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].m(date, token);
        },
        // Second
        s: function s(date, token, localize) {
          if (token === 'so') {
            return localize.ordinalNumber(date.getUTCSeconds(), {
              unit: 'second'
            });
          }

          return _lightFormatters_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].s(date, token);
        },
        // Fraction of second
        S: function S(date, token) {
          return _lightFormatters_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].S(date, token);
        },
        // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
        X: function X(date, token, _localize, options) {
          var originalDate = options._originalDate || date;
          var timezoneOffset = originalDate.getTimezoneOffset();

          if (timezoneOffset === 0) {
            return 'Z';
          }

          switch (token) {
            // Hours and optional minutes
            case 'X':
              return formatTimezoneWithOptionalMinutes(timezoneOffset);
            // Hours, minutes and optional seconds without `:` delimiter
            // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
            // so this token always has the same output as `XX`

            case 'XXXX':
            case 'XX':
              // Hours and minutes without `:` delimiter
              return formatTimezone(timezoneOffset);
            // Hours, minutes and optional seconds with `:` delimiter
            // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
            // so this token always has the same output as `XXX`

            case 'XXXXX':
            case 'XXX': // Hours and minutes with `:` delimiter

            default:
              return formatTimezone(timezoneOffset, ':');
          }
        },
        // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
        x: function x(date, token, _localize, options) {
          var originalDate = options._originalDate || date;
          var timezoneOffset = originalDate.getTimezoneOffset();

          switch (token) {
            // Hours and optional minutes
            case 'x':
              return formatTimezoneWithOptionalMinutes(timezoneOffset);
            // Hours, minutes and optional seconds without `:` delimiter
            // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
            // so this token always has the same output as `xx`

            case 'xxxx':
            case 'xx':
              // Hours and minutes without `:` delimiter
              return formatTimezone(timezoneOffset);
            // Hours, minutes and optional seconds with `:` delimiter
            // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
            // so this token always has the same output as `xxx`

            case 'xxxxx':
            case 'xxx': // Hours and minutes with `:` delimiter

            default:
              return formatTimezone(timezoneOffset, ':');
          }
        },
        // Timezone (GMT)
        O: function O(date, token, _localize, options) {
          var originalDate = options._originalDate || date;
          var timezoneOffset = originalDate.getTimezoneOffset();

          switch (token) {
            // Short
            case 'O':
            case 'OO':
            case 'OOO':
              return 'GMT' + formatTimezoneShort(timezoneOffset, ':');
            // Long

            case 'OOOO':
            default:
              return 'GMT' + formatTimezone(timezoneOffset, ':');
          }
        },
        // Timezone (specific non-location)
        z: function z(date, token, _localize, options) {
          var originalDate = options._originalDate || date;
          var timezoneOffset = originalDate.getTimezoneOffset();

          switch (token) {
            // Short
            case 'z':
            case 'zz':
            case 'zzz':
              return 'GMT' + formatTimezoneShort(timezoneOffset, ':');
            // Long

            case 'zzzz':
            default:
              return 'GMT' + formatTimezone(timezoneOffset, ':');
          }
        },
        // Seconds timestamp
        t: function t(date, token, _localize, options) {
          var originalDate = options._originalDate || date;
          var timestamp = Math.floor(originalDate.getTime() / 1000);
          return Object(_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_6__["default"])(timestamp, token.length);
        },
        // Milliseconds timestamp
        T: function T(date, token, _localize, options) {
          var originalDate = options._originalDate || date;
          var timestamp = originalDate.getTime();
          return Object(_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_6__["default"])(timestamp, token.length);
        }
      };

      function formatTimezoneShort(offset, dirtyDelimiter) {
        var sign = offset > 0 ? '-' : '+';
        var absOffset = Math.abs(offset);
        var hours = Math.floor(absOffset / 60);
        var minutes = absOffset % 60;

        if (minutes === 0) {
          return sign + String(hours);
        }

        var delimiter = dirtyDelimiter || '';
        return sign + String(hours) + delimiter + Object(_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_6__["default"])(minutes, 2);
      }

      function formatTimezoneWithOptionalMinutes(offset, dirtyDelimiter) {
        if (offset % 60 === 0) {
          var sign = offset > 0 ? '-' : '+';
          return sign + Object(_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_6__["default"])(Math.abs(offset) / 60, 2);
        }

        return formatTimezone(offset, dirtyDelimiter);
      }

      function formatTimezone(offset, dirtyDelimiter) {
        var delimiter = dirtyDelimiter || '';
        var sign = offset > 0 ? '-' : '+';
        var absOffset = Math.abs(offset);
        var hours = Object(_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_6__["default"])(Math.floor(absOffset / 60), 2);
        var minutes = Object(_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_6__["default"])(absOffset % 60, 2);
        return sign + hours + delimiter + minutes;
      }
      /* harmony default export */


      __webpack_exports__["default"] = formatters;
      /***/
    },

    /***/
    "DH7j": function DH7j(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "isArray", function () {
        return isArray;
      });

      var isArray = function () {
        return Array.isArray || function (x) {
          return x && typeof x.length === 'number';
        };
      }(); //# sourceMappingURL=isArray.js.map

      /***/

    },

    /***/
    "DKr+": function DKr(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Konkani Latin script [gom-latn]
      //! author : The Discoverer : https://github.com/WikiDiscoverer
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        function processRelativeTime(number, withoutSuffix, key, isFuture) {
          var format = {
            s: ['thoddea sekondamni', 'thodde sekond'],
            ss: [number + ' sekondamni', number + ' sekond'],
            m: ['eka mintan', 'ek minut'],
            mm: [number + ' mintamni', number + ' mintam'],
            h: ['eka voran', 'ek vor'],
            hh: [number + ' voramni', number + ' voram'],
            d: ['eka disan', 'ek dis'],
            dd: [number + ' disamni', number + ' dis'],
            M: ['eka mhoinean', 'ek mhoino'],
            MM: [number + ' mhoineamni', number + ' mhoine'],
            y: ['eka vorsan', 'ek voros'],
            yy: [number + ' vorsamni', number + ' vorsam']
          };
          return isFuture ? format[key][0] : format[key][1];
        }

        var gomLatn = moment.defineLocale('gom-latn', {
          months: {
            standalone: 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split('_'),
            format: 'Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea'.split('_'),
            isFormat: /MMMM(\s)+D[oD]?/
          },
          monthsShort: 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split('_'),
          monthsParseExact: true,
          weekdays: "Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split('_'),
          weekdaysShort: 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'),
          weekdaysMin: 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'),
          weekdaysParseExact: true,
          longDateFormat: {
            LT: 'A h:mm [vazta]',
            LTS: 'A h:mm:ss [vazta]',
            L: 'DD-MM-YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY A h:mm [vazta]',
            LLLL: 'dddd, MMMM Do, YYYY, A h:mm [vazta]',
            llll: 'ddd, D MMM YYYY, A h:mm [vazta]'
          },
          calendar: {
            sameDay: '[Aiz] LT',
            nextDay: '[Faleam] LT',
            nextWeek: '[Fuddlo] dddd[,] LT',
            lastDay: '[Kal] LT',
            lastWeek: '[Fattlo] dddd[,] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: '%s',
            past: '%s adim',
            s: processRelativeTime,
            ss: processRelativeTime,
            m: processRelativeTime,
            mm: processRelativeTime,
            h: processRelativeTime,
            hh: processRelativeTime,
            d: processRelativeTime,
            dd: processRelativeTime,
            M: processRelativeTime,
            MM: processRelativeTime,
            y: processRelativeTime,
            yy: processRelativeTime
          },
          dayOfMonthOrdinalParse: /\d{1,2}(er)/,
          ordinal: function ordinal(number, period) {
            switch (period) {
              // the ordinal 'er' only applies to day of the month
              case 'D':
                return number + 'er';

              default:
              case 'M':
              case 'Q':
              case 'DDD':
              case 'd':
              case 'w':
              case 'W':
                return number;
            }
          },
          week: {
            dow: 0,
            // Sunday is the first day of the week
            doy: 3 // The week that contains Jan 4th is the first week of the year (7 + 0 - 4)

          },
          meridiemParse: /rati|sokallim|donparam|sanje/,
          meridiemHour: function meridiemHour(hour, meridiem) {
            if (hour === 12) {
              hour = 0;
            }

            if (meridiem === 'rati') {
              return hour < 4 ? hour : hour + 12;
            } else if (meridiem === 'sokallim') {
              return hour;
            } else if (meridiem === 'donparam') {
              return hour > 12 ? hour : hour + 12;
            } else if (meridiem === 'sanje') {
              return hour + 12;
            }
          },
          meridiem: function meridiem(hour, minute, isLower) {
            if (hour < 4) {
              return 'rati';
            } else if (hour < 12) {
              return 'sokallim';
            } else if (hour < 16) {
              return 'donparam';
            } else if (hour < 20) {
              return 'sanje';
            } else {
              return 'rati';
            }
          }
        });
        return gomLatn;
      });
      /***/

    },

    /***/
    "DQLy": function DQLy(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵngrx_modules_store_store_c", function () {
        return ACTIONS_SUBJECT_PROVIDERS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵngrx_modules_store_store_d", function () {
        return REDUCER_MANAGER_PROVIDERS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵngrx_modules_store_store_bd", function () {
        return _runtimeChecksFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵngrx_modules_store_store_z", function () {
        return createActiveRuntimeChecks;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵngrx_modules_store_store_bb", function () {
        return createImmutabilityCheckMetaReducer;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵngrx_modules_store_store_ba", function () {
        return createSerializationCheckMetaReducer;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵngrx_modules_store_store_bc", function () {
        return provideRuntimeChecks;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵngrx_modules_store_store_e", function () {
        return SCANNED_ACTIONS_SUBJECT_PROVIDERS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵngrx_modules_store_store_f", function () {
        return isEqualCheck;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵngrx_modules_store_store_g", function () {
        return STATE_PROVIDERS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵngrx_modules_store_store_b", function () {
        return STORE_PROVIDERS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵngrx_modules_store_store_x", function () {
        return _concatMetaReducers;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵngrx_modules_store_store_v", function () {
        return _createFeatureReducers;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵngrx_modules_store_store_u", function () {
        return _createFeatureStore;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵngrx_modules_store_store_t", function () {
        return _createStoreReducers;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵngrx_modules_store_store_w", function () {
        return _initialStateFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵngrx_modules_store_store_y", function () {
        return _provideForRootGuard;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵngrx_modules_store_store_s", function () {
        return _ACTIVE_RUNTIME_CHECKS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵngrx_modules_store_store_n", function () {
        return _FEATURE_CONFIGS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵngrx_modules_store_store_m", function () {
        return _FEATURE_REDUCERS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵngrx_modules_store_store_p", function () {
        return _FEATURE_REDUCERS_TOKEN;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵngrx_modules_store_store_k", function () {
        return _INITIAL_REDUCERS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵngrx_modules_store_store_i", function () {
        return _INITIAL_STATE;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵngrx_modules_store_store_j", function () {
        return _REDUCER_FACTORY;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵngrx_modules_store_store_q", function () {
        return _RESOLVED_META_REDUCERS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵngrx_modules_store_store_h", function () {
        return _ROOT_STORE_GUARD;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵngrx_modules_store_store_o", function () {
        return _STORE_FEATURES;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵngrx_modules_store_store_l", function () {
        return _STORE_REDUCERS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵngrx_modules_store_store_r", function () {
        return _USER_RUNTIME_CHECKS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "createAction", function () {
        return createAction;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "props", function () {
        return props;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "union", function () {
        return union;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Store", function () {
        return Store;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "select", function () {
        return _select2;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "combineReducers", function () {
        return combineReducers;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "compose", function () {
        return compose;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "createReducerFactory", function () {
        return createReducerFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ActionsSubject", function () {
        return ActionsSubject;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "INIT", function () {
        return INIT;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ReducerManager", function () {
        return ReducerManager;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ReducerObservable", function () {
        return ReducerObservable;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ReducerManagerDispatcher", function () {
        return ReducerManagerDispatcher;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "UPDATE", function () {
        return UPDATE;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ScannedActionsSubject", function () {
        return ScannedActionsSubject;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "createSelector", function () {
        return createSelector;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "createSelectorFactory", function () {
        return createSelectorFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "createFeatureSelector", function () {
        return createFeatureSelector;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "defaultMemoize", function () {
        return defaultMemoize;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "defaultStateFn", function () {
        return defaultStateFn;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "resultMemoize", function () {
        return resultMemoize;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "State", function () {
        return State;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "StateObservable", function () {
        return StateObservable;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "reduceState", function () {
        return reduceState;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "INITIAL_STATE", function () {
        return INITIAL_STATE;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "REDUCER_FACTORY", function () {
        return REDUCER_FACTORY;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "INITIAL_REDUCERS", function () {
        return INITIAL_REDUCERS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "STORE_FEATURES", function () {
        return STORE_FEATURES;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "META_REDUCERS", function () {
        return META_REDUCERS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "FEATURE_REDUCERS", function () {
        return FEATURE_REDUCERS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "USER_PROVIDED_META_REDUCERS", function () {
        return USER_PROVIDED_META_REDUCERS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "USER_RUNTIME_CHECKS", function () {
        return USER_RUNTIME_CHECKS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "StoreModule", function () {
        return StoreModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "StoreRootModule", function () {
        return StoreRootModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "StoreFeatureModule", function () {
        return StoreFeatureModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "on", function () {
        return on;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "createReducer", function () {
        return createReducer;
      });
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /* harmony import */


      var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! rxjs */
      "qCKp");
      /* harmony import */


      var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! rxjs/operators */
      "kU1M");
      /**
       * @license NgRx 8.6.0
       * (c) 2015-2018 Brandon Roberts, Mike Ryan, Rob Wormald, Victor Savkin
       * License: MIT
       */

      /**
       * @fileoverview added by tsickle
       * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * \@description
       * Creates a configured `Creator` function that, when called, returns an object in the shape of the `Action` interface.
       *
       * Action creators reduce the explicitness of class-based action creators.
       *
       * \@usageNotes
       *
       * **Declaring an action creator**
       *
       * Without additional metadata:
       * ```ts
       * export const increment = createAction('[Counter] Increment');
       * ```
       * With additional metadata:
       * ```ts
       * export const loginSuccess = createAction(
       *   '[Auth/API] Login Success',
       *   props<{ user: User }>()
       * );
       * ```
       * With a function:
       * ```ts
       * export const loginSuccess = createAction(
       *   '[Auth/API] Login Success',
       *   (response: Response) => response.user
       * );
       * ```
       *
       * **Dispatching an action**
       *
       * Without additional metadata:
       * ```ts
       * store.dispatch(increment());
       * ```
       * With additional metadata:
       * ```ts
       * store.dispatch(loginSuccess({ user: newUser }));
       * ```
       *
       * **Referencing an action in a reducer**
       *
       * Using a switch statement:
       * ```ts
       * switch (action.type) {
       *   // ...
       *   case AuthApiActions.loginSuccess.type: {
       *     return {
       *       ...state,
       *       user: action.user
       *     };
       *   }
       * }
       * ```
       * Using a reducer creator:
       * ```ts
       * on(AuthApiActions.loginSuccess, (state, { user }) => ({ ...state, user }))
       * ```
       *
       *  **Referencing an action in an effect**
       * ```ts
       * effectName$ = createEffect(
       *   () => this.actions$.pipe(
       *     ofType(AuthApiActions.loginSuccess),
       *     // ...
       *   )
       * );
       * ```
       * @template T, C
       * @param {?} type Describes the action that will be dispatched
       * @param {?=} config Additional metadata needed for the handling of the action.  See {\@link createAction#usage-notes Usage Notes}.
       *
       * @return {?}
       */


      function createAction(type, config) {
        if (typeof config === 'function') {
          return defineType(type,
          /**
          * @param {...?} args
          * @return {?}
          */
          function () {
            return Object.assign({}, config.apply(void 0, arguments), {
              type: type
            });
          });
        }
        /** @type {?} */


        var as = config ? config._as : 'empty';

        switch (as) {
          case 'empty':
            return defineType(type,
            /**
            * @return {?}
            */
            function () {
              return {
                type: type
              };
            });

          case 'props':
            return defineType(type,
            /**
            * @param {?} props
            * @return {?}
            */
            function (props) {
              return Object.assign({}, props, {
                type: type
              });
            });

          default:
            throw new Error('Unexpected config.');
        }
      }
      /**
       * @template P
       * @return {?}
       */


      function props() {
        // the return type does not match TypePropertyIsNotAllowed, so double casting
        // is used.
        return {
          _as: 'props',
          _p: undefined
        };
      }
      /**
       * @template C
       * @param {?} creators
       * @return {?}
       */


      function union(creators) {
        return undefined;
      }
      /**
       * @param {?} type
       * @param {?} creator
       * @return {?}
       */


      function defineType(type, creator) {
        return Object.defineProperty(creator, 'type', {
          value: type,
          writable: false
        });
      }
      /**
       * @fileoverview added by tsickle
       * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /** @type {?} */


      var INIT = '@ngrx/store/init';

      var ActionsSubject = /*#__PURE__*/function (_rxjs__WEBPACK_IMPORT2) {
        _inherits2(ActionsSubject, _rxjs__WEBPACK_IMPORT2);

        var _super177 = _createSuper2(ActionsSubject);

        function ActionsSubject() {
          _classCallCheck2(this, ActionsSubject);

          return _super177.call(this, {
            type: INIT
          });
        }
        /**
         * @param {?} action
         * @return {?}
         */


        _createClass2(ActionsSubject, [{
          key: "next",
          value: function next(action) {
            if (typeof action === 'function') {
              throw new TypeError("\n        Dispatch expected an object, instead it received a function.\n        If you're using the createAction function, make sure to invoke the function\n        before dispatching the action. For example, someAction should be someAction().");
            } else if (typeof action === 'undefined') {
              throw new TypeError("Actions must be objects");
            } else if (typeof action.type === 'undefined') {
              throw new TypeError("Actions must have a type property");
            }

            _get2(_getPrototypeOf2(ActionsSubject.prototype), "next", this).call(this, action);
          }
          /**
           * @return {?}
           */

        }, {
          key: "complete",
          value: function complete() {
            /* noop */
          }
          /**
           * @return {?}
           */

        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            _get2(_getPrototypeOf2(ActionsSubject.prototype), "complete", this).call(this);
          }
        }]);

        return ActionsSubject;
      }(rxjs__WEBPACK_IMPORTED_MODULE_1__["BehaviorSubject"]);

      ActionsSubject.ɵfac = function ActionsSubject_Factory(t) {
        return new (t || ActionsSubject)();
      };

      ActionsSubject.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
        token: ActionsSubject,
        factory: ActionsSubject.ɵfac
      });
      /** @nocollapse */

      ActionsSubject.ctorParameters = function () {
        return [];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ActionsSubject, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
        }], function () {
          return [];
        }, null);
      })();
      /** @type {?} */


      var ACTIONS_SUBJECT_PROVIDERS = [ActionsSubject];
      /**
       * @fileoverview added by tsickle
       * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /** @type {?} */

      var _ROOT_STORE_GUARD = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('@ngrx/store Internal Root Guard');
      /** @type {?} */


      var _INITIAL_STATE = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('@ngrx/store Internal Initial State');
      /** @type {?} */


      var INITIAL_STATE = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('@ngrx/store Initial State');
      /** @type {?} */

      var REDUCER_FACTORY = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('@ngrx/store Reducer Factory');
      /** @type {?} */

      var _REDUCER_FACTORY = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('@ngrx/store Internal Reducer Factory Provider');
      /** @type {?} */


      var INITIAL_REDUCERS = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('@ngrx/store Initial Reducers');
      /** @type {?} */

      var _INITIAL_REDUCERS = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('@ngrx/store Internal Initial Reducers');
      /** @type {?} */


      var STORE_FEATURES = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('@ngrx/store Store Features');
      /** @type {?} */

      var _STORE_REDUCERS = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('@ngrx/store Internal Store Reducers');
      /** @type {?} */


      var _FEATURE_REDUCERS = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('@ngrx/store Internal Feature Reducers');
      /** @type {?} */


      var _FEATURE_CONFIGS = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('@ngrx/store Internal Feature Configs');
      /** @type {?} */


      var _STORE_FEATURES = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('@ngrx/store Internal Store Features');
      /** @type {?} */


      var _FEATURE_REDUCERS_TOKEN = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('@ngrx/store Internal Feature Reducers Token');
      /** @type {?} */


      var FEATURE_REDUCERS = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('@ngrx/store Feature Reducers');
      /**
       * User-defined meta reducers from StoreModule.forRoot()
       * @type {?}
       */

      var USER_PROVIDED_META_REDUCERS = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('@ngrx/store User Provided Meta Reducers');
      /**
       * Meta reducers defined either internally by \@ngrx/store or by library authors
       * @type {?}
       */

      var META_REDUCERS = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('@ngrx/store Meta Reducers');
      /**
       * Concats the user provided meta reducers and the meta reducers provided on the multi
       * injection token
       * @type {?}
       */

      var _RESOLVED_META_REDUCERS = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('@ngrx/store Internal Resolved Meta Reducers');
      /**
       * Runtime checks defined by the user via an InjectionToken
       * Defaults to `_USER_RUNTIME_CHECKS`
       * @type {?}
       */


      var USER_RUNTIME_CHECKS = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('@ngrx/store User Runtime Checks Config');
      /**
       * Runtime checks defined by the user via forRoot()
       * @type {?}
       */

      var _USER_RUNTIME_CHECKS = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('@ngrx/store Internal User Runtime Checks Config');
      /**
       * Runtime checks currently in use
       * @type {?}
       */


      var _ACTIVE_RUNTIME_CHECKS = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('@ngrx/store Internal Runtime Checks');
      /**
       * @fileoverview added by tsickle
       * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * @param {?} reducers
       * @param {?=} initialState
       * @return {?}
       */


      function combineReducers(reducers) {
        var initialState = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};

        /** @type {?} */
        var reducerKeys = Object.keys(reducers);
        /** @type {?} */

        var finalReducers = {};

        for (var i = 0; i < reducerKeys.length; i++) {
          /** @type {?} */
          var key = reducerKeys[i];

          if (typeof reducers[key] === 'function') {
            finalReducers[key] = reducers[key];
          }
        }
        /** @type {?} */


        var finalReducerKeys = Object.keys(finalReducers);
        return (
          /**
          * @param {?} state
          * @param {?} action
          * @return {?}
          */
          function combination(state, action) {
            state = state === undefined ? initialState : state;
            /** @type {?} */

            var hasChanged = false;
            /** @type {?} */

            var nextState = {};

            for (var _i31 = 0; _i31 < finalReducerKeys.length; _i31++) {
              /** @type {?} */
              var _key34 = finalReducerKeys[_i31];
              /** @type {?} */

              var reducer = finalReducers[_key34];
              /** @type {?} */

              var previousStateForKey = state[_key34];
              /** @type {?} */

              var nextStateForKey = reducer(previousStateForKey, action);
              nextState[_key34] = nextStateForKey;
              hasChanged = hasChanged || nextStateForKey !== previousStateForKey;
            }

            return hasChanged ? nextState : state;
          }
        );
      }
      /**
       * @template T
       * @param {?} object
       * @param {?} keyToRemove
       * @return {?}
       */


      function omit(object, keyToRemove) {
        return Object.keys(object).filter(
        /**
        * @param {?} key
        * @return {?}
        */
        function (key) {
          return key !== keyToRemove;
        }).reduce(
        /**
        * @param {?} result
        * @param {?} key
        * @return {?}
        */
        function (result, key) {
          return Object.assign(result, _defineProperty({}, key, object[key]));
        }, {});
      }
      /**
       * @param {...?} functions
       * @return {?}
       */


      function compose() {
        for (var _len33 = arguments.length, functions = new Array(_len33), _key35 = 0; _key35 < _len33; _key35++) {
          functions[_key35] = arguments[_key35];
        }

        return (
          /**
          * @param {?} arg
          * @return {?}
          */
          function (arg) {
            if (functions.length === 0) {
              return arg;
            }
            /** @type {?} */


            var last = functions[functions.length - 1];
            /** @type {?} */

            var rest = functions.slice(0, -1);
            return rest.reduceRight(
            /**
            * @param {?} composed
            * @param {?} fn
            * @return {?}
            */
            function (composed, fn) {
              return fn(composed);
            }, last(arg));
          }
        );
      }
      /**
       * @template T, V
       * @param {?} reducerFactory
       * @param {?=} metaReducers
       * @return {?}
       */


      function createReducerFactory(reducerFactory, metaReducers) {
        if (Array.isArray(metaReducers) && metaReducers.length > 0) {
          reducerFactory = compose.apply(null, [].concat(_toConsumableArray(metaReducers), [reducerFactory]));
        }

        return (
          /**
          * @param {?} reducers
          * @param {?=} initialState
          * @return {?}
          */
          function (reducers, initialState) {
            /** @type {?} */
            var reducer = reducerFactory(reducers);
            return (
              /**
              * @param {?} state
              * @param {?} action
              * @return {?}
              */
              function (state, action) {
                state = state === undefined ? initialState : state;
                return reducer(state, action);
              }
            );
          }
        );
      }
      /**
       * @template T, V
       * @param {?=} metaReducers
       * @return {?}
       */


      function createFeatureReducerFactory(metaReducers) {
        /** @type {?} */
        var reducerFactory = Array.isArray(metaReducers) && metaReducers.length > 0 ? compose.apply(void 0, _toConsumableArray(metaReducers)) :
        /**
        * @param {?} r
        * @return {?}
        */
        function (r) {
          return r;
        };
        return (
          /**
          * @param {?} reducer
          * @param {?=} initialState
          * @return {?}
          */
          function (reducer, initialState) {
            reducer = reducerFactory(reducer);
            return (
              /**
              * @param {?} state
              * @param {?} action
              * @return {?}
              */
              function (state, action) {
                state = state === undefined ? initialState : state;
                return reducer(state, action);
              }
            );
          }
        );
      }
      /**
       * @fileoverview added by tsickle
       * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * @abstract
       */


      var ReducerObservable = /*#__PURE__*/function (_rxjs__WEBPACK_IMPORT3) {
        _inherits2(ReducerObservable, _rxjs__WEBPACK_IMPORT3);

        var _super178 = _createSuper2(ReducerObservable);

        function ReducerObservable() {
          _classCallCheck2(this, ReducerObservable);

          return _super178.apply(this, arguments);
        }

        return ReducerObservable;
      }(rxjs__WEBPACK_IMPORTED_MODULE_1__["Observable"]);
      /**
       * @abstract
       */


      var ReducerManagerDispatcher = /*#__PURE__*/function (_ActionsSubject) {
        _inherits2(ReducerManagerDispatcher, _ActionsSubject);

        var _super179 = _createSuper2(ReducerManagerDispatcher);

        function ReducerManagerDispatcher() {
          _classCallCheck2(this, ReducerManagerDispatcher);

          return _super179.apply(this, arguments);
        }

        return ReducerManagerDispatcher;
      }(ActionsSubject);
      /** @type {?} */


      var UPDATE = '@ngrx/store/update-reducers';

      var ReducerManager = /*#__PURE__*/function (_rxjs__WEBPACK_IMPORT4) {
        _inherits2(ReducerManager, _rxjs__WEBPACK_IMPORT4);

        var _super180 = _createSuper2(ReducerManager);

        /**
         * @param {?} dispatcher
         * @param {?} initialState
         * @param {?} reducers
         * @param {?} reducerFactory
         */
        function ReducerManager(dispatcher, initialState, reducers, reducerFactory) {
          var _this457;

          _classCallCheck2(this, ReducerManager);

          _this457 = _super180.call(this, reducerFactory(reducers, initialState));
          _this457.dispatcher = dispatcher;
          _this457.initialState = initialState;
          _this457.reducers = reducers;
          _this457.reducerFactory = reducerFactory;
          return _this457;
        }
        /**
         * @param {?} feature
         * @return {?}
         */


        _createClass2(ReducerManager, [{
          key: "addFeature",
          value: function addFeature(feature) {
            this.addFeatures([feature]);
          }
          /**
           * @param {?} features
           * @return {?}
           */

        }, {
          key: "addFeatures",
          value: function addFeatures(features) {
            /** @type {?} */
            var reducers = features.reduce(
            /**
            * @param {?} reducerDict
            * @param {?} __1
            * @return {?}
            */
            function (reducerDict, _ref60) {
              var reducers = _ref60.reducers,
                  reducerFactory = _ref60.reducerFactory,
                  metaReducers = _ref60.metaReducers,
                  initialState = _ref60.initialState,
                  key = _ref60.key;

              /** @type {?} */
              var reducer = typeof reducers === 'function' ? createFeatureReducerFactory(metaReducers)(reducers, initialState) : createReducerFactory(reducerFactory, metaReducers)(reducers, initialState);
              reducerDict[key] = reducer;
              return reducerDict;
            }, {});
            this.addReducers(reducers);
          }
          /**
           * @param {?} feature
           * @return {?}
           */

        }, {
          key: "removeFeature",
          value: function removeFeature(feature) {
            this.removeFeatures([feature]);
          }
          /**
           * @param {?} features
           * @return {?}
           */

        }, {
          key: "removeFeatures",
          value: function removeFeatures(features) {
            this.removeReducers(features.map(
            /**
            * @param {?} p
            * @return {?}
            */
            function (p) {
              return p.key;
            }));
          }
          /**
           * @param {?} key
           * @param {?} reducer
           * @return {?}
           */

        }, {
          key: "addReducer",
          value: function addReducer(key, reducer) {
            this.addReducers(_defineProperty({}, key, reducer));
          }
          /**
           * @param {?} reducers
           * @return {?}
           */

        }, {
          key: "addReducers",
          value: function addReducers(reducers) {
            this.reducers = Object.assign({}, this.reducers, reducers);
            this.updateReducers(Object.keys(reducers));
          }
          /**
           * @param {?} featureKey
           * @return {?}
           */

        }, {
          key: "removeReducer",
          value: function removeReducer(featureKey) {
            this.removeReducers([featureKey]);
          }
          /**
           * @param {?} featureKeys
           * @return {?}
           */

        }, {
          key: "removeReducers",
          value: function removeReducers(featureKeys) {
            var _this458 = this;

            featureKeys.forEach(
            /**
            * @param {?} key
            * @return {?}
            */
            function (key) {
              _this458.reducers = omit(_this458.reducers, key)
              /*TODO(#823)*/
              ;
            });
            this.updateReducers(featureKeys);
          }
          /**
           * @private
           * @param {?} featureKeys
           * @return {?}
           */

        }, {
          key: "updateReducers",
          value: function updateReducers(featureKeys) {
            this.next(this.reducerFactory(this.reducers, this.initialState));
            this.dispatcher.next({
              type: UPDATE,
              features: featureKeys
            });
          }
          /**
           * @return {?}
           */

        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            this.complete();
          }
        }]);

        return ReducerManager;
      }(rxjs__WEBPACK_IMPORTED_MODULE_1__["BehaviorSubject"]);

      ReducerManager.ɵfac = function ReducerManager_Factory(t) {
        return new (t || ReducerManager)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](ReducerManagerDispatcher), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](INITIAL_STATE), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](INITIAL_REDUCERS), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](REDUCER_FACTORY));
      };

      ReducerManager.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
        token: ReducerManager,
        factory: ReducerManager.ɵfac
      });
      /** @nocollapse */

      ReducerManager.ctorParameters = function () {
        return [{
          type: ReducerManagerDispatcher
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [INITIAL_STATE]
          }]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [INITIAL_REDUCERS]
          }]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [REDUCER_FACTORY]
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ReducerManager, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
        }], function () {
          return [{
            type: ReducerManagerDispatcher
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [INITIAL_STATE]
            }]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [INITIAL_REDUCERS]
            }]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [REDUCER_FACTORY]
            }]
          }];
        }, null);
      })();
      /** @type {?} */


      var REDUCER_MANAGER_PROVIDERS = [ReducerManager, {
        provide: ReducerObservable,
        useExisting: ReducerManager
      }, {
        provide: ReducerManagerDispatcher,
        useExisting: ActionsSubject
      }];
      /**
       * @fileoverview added by tsickle
       * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      var ScannedActionsSubject = /*#__PURE__*/function (_rxjs__WEBPACK_IMPORT5) {
        _inherits2(ScannedActionsSubject, _rxjs__WEBPACK_IMPORT5);

        var _super181 = _createSuper2(ScannedActionsSubject);

        function ScannedActionsSubject() {
          _classCallCheck2(this, ScannedActionsSubject);

          return _super181.apply(this, arguments);
        }

        _createClass2(ScannedActionsSubject, [{
          key: "ngOnDestroy",
          value:
          /**
           * @return {?}
           */
          function ngOnDestroy() {
            this.complete();
          }
        }]);

        return ScannedActionsSubject;
      }(rxjs__WEBPACK_IMPORTED_MODULE_1__["Subject"]);

      ScannedActionsSubject.ɵfac = function ScannedActionsSubject_Factory(t) {
        return ɵScannedActionsSubject_BaseFactory(t || ScannedActionsSubject);
      };

      ScannedActionsSubject.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
        token: ScannedActionsSubject,
        factory: ScannedActionsSubject.ɵfac
      });

      var ɵScannedActionsSubject_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](ScannedActionsSubject);
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ScannedActionsSubject, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
        }], null, null);
      })();
      /** @type {?} */


      var SCANNED_ACTIONS_SUBJECT_PROVIDERS = [ScannedActionsSubject];
      /**
       * @fileoverview added by tsickle
       * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * @abstract
       */

      var StateObservable = /*#__PURE__*/function (_rxjs__WEBPACK_IMPORT6) {
        _inherits2(StateObservable, _rxjs__WEBPACK_IMPORT6);

        var _super182 = _createSuper2(StateObservable);

        function StateObservable() {
          _classCallCheck2(this, StateObservable);

          return _super182.apply(this, arguments);
        }

        return StateObservable;
      }(rxjs__WEBPACK_IMPORTED_MODULE_1__["Observable"]);
      /**
       * @template T
       */


      var State = /*#__PURE__*/function (_rxjs__WEBPACK_IMPORT7) {
        _inherits2(State, _rxjs__WEBPACK_IMPORT7);

        var _super183 = _createSuper2(State);

        /**
         * @param {?} actions$
         * @param {?} reducer$
         * @param {?} scannedActions
         * @param {?} initialState
         */
        function State(actions$, reducer$, scannedActions, initialState) {
          var _this459;

          _classCallCheck2(this, State);

          _this459 = _super183.call(this, initialState);
          /** @type {?} */

          var actionsOnQueue$ = actions$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["observeOn"])(rxjs__WEBPACK_IMPORTED_MODULE_1__["queueScheduler"]));
          /** @type {?} */

          var withLatestReducer$ = actionsOnQueue$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["withLatestFrom"])(reducer$));
          /** @type {?} */

          var seed = {
            state: initialState
          };
          /** @type {?} */

          var stateAndAction$ = withLatestReducer$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["scan"])(reduceState, seed));
          _this459.stateSubscription = stateAndAction$.subscribe(
          /**
          * @param {?} __0
          * @return {?}
          */
          function (_ref61) {
            var state = _ref61.state,
                action = _ref61.action;

            _this459.next(state);

            scannedActions.next(action);
          });
          return _this459;
        }
        /**
         * @return {?}
         */


        _createClass2(State, [{
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            this.stateSubscription.unsubscribe();
            this.complete();
          }
        }]);

        return State;
      }(rxjs__WEBPACK_IMPORTED_MODULE_1__["BehaviorSubject"]);

      State.ɵfac = function State_Factory(t) {
        return new (t || State)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](ActionsSubject), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](ReducerObservable), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](ScannedActionsSubject), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](INITIAL_STATE));
      };

      State.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
        token: State,
        factory: State.ɵfac
      });
      State.INIT = INIT;
      /** @nocollapse */

      State.ctorParameters = function () {
        return [{
          type: ActionsSubject
        }, {
          type: ReducerObservable
        }, {
          type: ScannedActionsSubject
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [INITIAL_STATE]
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](State, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
        }], function () {
          return [{
            type: ActionsSubject
          }, {
            type: ReducerObservable
          }, {
            type: ScannedActionsSubject
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [INITIAL_STATE]
            }]
          }];
        }, null);
      })();
      /**
       * @template T, V
       * @param {?=} stateActionPair
       * @param {?=} __1
       * @return {?}
       */


      function reduceState() {
        var stateActionPair = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
          state: undefined
        };

        var _ref62 = arguments.length > 1 ? arguments[1] : undefined,
            _ref63 = _slicedToArray(_ref62, 2),
            action = _ref63[0],
            reducer = _ref63[1];

        var state = stateActionPair.state;
        return {
          state: reducer(state, action),
          action: action
        };
      }
      /** @type {?} */


      var STATE_PROVIDERS = [State, {
        provide: StateObservable,
        useExisting: State
      }];
      /**
       * @fileoverview added by tsickle
       * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * @template T
       */

      var Store = /*#__PURE__*/function (_rxjs__WEBPACK_IMPORT8) {
        _inherits2(Store, _rxjs__WEBPACK_IMPORT8);

        var _super184 = _createSuper2(Store);

        /**
         * @param {?} state$
         * @param {?} actionsObserver
         * @param {?} reducerManager
         */
        function Store(state$, actionsObserver, reducerManager) {
          var _this460;

          _classCallCheck2(this, Store);

          _this460 = _super184.call(this);
          _this460.actionsObserver = actionsObserver;
          _this460.reducerManager = reducerManager;
          _this460.source = state$;
          return _this460;
        }
        /**
         * @template Props, K
         * @param {?} pathOrMapFn
         * @param {...?} paths
         * @return {?}
         */


        _createClass2(Store, [{
          key: "select",
          value: function select(pathOrMapFn) {
            for (var _len34 = arguments.length, paths = new Array(_len34 > 1 ? _len34 - 1 : 0), _key36 = 1; _key36 < _len34; _key36++) {
              paths[_key36 - 1] = arguments[_key36];
            }

            return _select2.call.apply(_select2, [null, pathOrMapFn].concat(paths))(this);
          }
          /**
           * @template R
           * @param {?} operator
           * @return {?}
           */

        }, {
          key: "lift",
          value: function lift(operator) {
            /** @type {?} */
            var store = new Store(this, this.actionsObserver, this.reducerManager);
            store.operator = operator;
            return store;
          }
          /**
           * @template V
           * @param {?} action
           * @return {?}
           */

        }, {
          key: "dispatch",
          value: function dispatch(action) {
            this.actionsObserver.next(action);
          }
          /**
           * @param {?} action
           * @return {?}
           */

        }, {
          key: "next",
          value: function next(action) {
            this.actionsObserver.next(action);
          }
          /**
           * @param {?} err
           * @return {?}
           */

        }, {
          key: "error",
          value: function error(err) {
            this.actionsObserver.error(err);
          }
          /**
           * @return {?}
           */

        }, {
          key: "complete",
          value: function complete() {
            this.actionsObserver.complete();
          }
          /**
           * @template State, Actions
           * @param {?} key
           * @param {?} reducer
           * @return {?}
           */

        }, {
          key: "addReducer",
          value: function addReducer(key, reducer) {
            this.reducerManager.addReducer(key, reducer);
          }
          /**
           * @template Key
           * @param {?} key
           * @return {?}
           */

        }, {
          key: "removeReducer",
          value: function removeReducer(key) {
            this.reducerManager.removeReducer(key);
          }
        }]);

        return Store;
      }(rxjs__WEBPACK_IMPORTED_MODULE_1__["Observable"]);

      Store.ɵfac = function Store_Factory(t) {
        return new (t || Store)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](StateObservable), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](ActionsSubject), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](ReducerManager));
      };

      Store.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
        token: Store,
        factory: Store.ɵfac
      });
      /** @nocollapse */

      Store.ctorParameters = function () {
        return [{
          type: StateObservable
        }, {
          type: ActionsSubject
        }, {
          type: ReducerManager
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](Store, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
        }], function () {
          return [{
            type: StateObservable
          }, {
            type: ActionsSubject
          }, {
            type: ReducerManager
          }];
        }, null);
      })();
      /** @type {?} */


      var STORE_PROVIDERS = [Store];
      /**
       * @template T, Props, K
       * @param {?} pathOrMapFn
       * @param {?=} propsOrPath
       * @param {...?} paths
       * @return {?}
       */

      function _select2(pathOrMapFn, propsOrPath) {
        for (var _len35 = arguments.length, paths = new Array(_len35 > 2 ? _len35 - 2 : 0), _key37 = 2; _key37 < _len35; _key37++) {
          paths[_key37 - 2] = arguments[_key37];
        }

        return (
          /**
          * @param {?} source$
          * @return {?}
          */
          function selectOperator(source$) {
            /** @type {?} */
            var mapped$;

            if (typeof pathOrMapFn === 'string') {
              /** @type {?} */
              var pathSlices = [propsOrPath].concat(paths).filter(Boolean);
              mapped$ = source$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["pluck"]).apply(void 0, [pathOrMapFn].concat(_toConsumableArray(pathSlices))));
            } else if (typeof pathOrMapFn === 'function') {
              mapped$ = source$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])(
              /**
              * @param {?} source
              * @return {?}
              */
              function (source) {
                return pathOrMapFn(source, propsOrPath);
              }));
            } else {
              throw new TypeError("Unexpected type '".concat(typeof pathOrMapFn, "' in select operator,") + " expected 'string' or 'function'");
            }

            return mapped$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["distinctUntilChanged"])());
          }
        );
      }
      /**
       * @fileoverview added by tsickle
       * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * @param {?} a
       * @param {?} b
       * @return {?}
       */


      function isEqualCheck(a, b) {
        return a === b;
      }
      /**
       * @param {?} args
       * @param {?} lastArguments
       * @param {?} comparator
       * @return {?}
       */


      function isArgumentsChanged(args, lastArguments, comparator) {
        for (var i = 0; i < args.length; i++) {
          if (!comparator(args[i], lastArguments[i])) {
            return true;
          }
        }

        return false;
      }
      /**
       * @param {?} projectionFn
       * @param {?} isResultEqual
       * @return {?}
       */


      function resultMemoize(projectionFn, isResultEqual) {
        return defaultMemoize(projectionFn, isEqualCheck, isResultEqual);
      }
      /**
       * @param {?} projectionFn
       * @param {?=} isArgumentsEqual
       * @param {?=} isResultEqual
       * @return {?}
       */


      function defaultMemoize(projectionFn) {
        var isArgumentsEqual = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : isEqualCheck;
        var isResultEqual = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : isEqualCheck;

        /** @type {?} */
        var lastArguments = null; // tslint:disable-next-line:no-any anything could be the result.

        /** @type {?} */

        var lastResult = null;
        /** @type {?} */

        var overrideResult;
        /**
         * @return {?}
         */

        function reset() {
          lastArguments = null;
          lastResult = null;
        }
        /**
         * @param {?=} result
         * @return {?}
         */


        function setResult() {
          var result = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;
          overrideResult = result;
        } // tslint:disable-next-line:no-any anything could be the result.

        /**
         * @return {?}
         */


        function memoized() {
          if (overrideResult !== undefined) {
            return overrideResult;
          }

          if (!lastArguments) {
            lastResult = projectionFn.apply(null, arguments);
            lastArguments = arguments;
            return lastResult;
          }

          if (!isArgumentsChanged(arguments, lastArguments, isArgumentsEqual)) {
            return lastResult;
          }
          /** @type {?} */


          var newResult = projectionFn.apply(null, arguments);
          lastArguments = arguments;

          if (isResultEqual(lastResult, newResult)) {
            return lastResult;
          }

          lastResult = newResult;
          return newResult;
        }

        return {
          memoized: memoized,
          reset: reset,
          setResult: setResult
        };
      }
      /**
       * @param {...?} input
       * @return {?}
       */


      function createSelector() {
        return createSelectorFactory(defaultMemoize).apply(void 0, arguments);
      }
      /**
       * @param {?} state
       * @param {?} selectors
       * @param {?} props
       * @param {?} memoizedProjector
       * @return {?}
       */


      function defaultStateFn(state, selectors, props, memoizedProjector) {
        if (props === undefined) {
          /** @type {?} */
          var _args3 = selectors.map(
          /**
          * @param {?} fn
          * @return {?}
          */
          function (fn) {
            return fn(state);
          });

          return memoizedProjector.memoized.apply(null, _args3);
        }
        /** @type {?} */


        var args = selectors.map(
        /**
        * @param {?} fn
        * @return {?}
        */
        function (fn) {
          return fn(state, props);
        });
        return memoizedProjector.memoized.apply(null, [].concat(_toConsumableArray(args), [props]));
      }
      /**
       * @param {?} memoize
       * @param {?=} options
       * @return {?}
       */


      function createSelectorFactory(memoize) {
        var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
          stateFn: defaultStateFn
        };
        return (
          /**
          * @param {...?} input
          * @return {?}
          */
          function () {
            for (var _len36 = arguments.length, input = new Array(_len36), _key38 = 0; _key38 < _len36; _key38++) {
              input[_key38] = arguments[_key38];
            }

            /** @type {?} */
            var args = input;

            if (Array.isArray(args[0])) {
              var _args4 = args,
                  _args5 = _toArray(_args4),
                  head = _args5[0],
                  tail = _args5.slice(1);

              args = [].concat(_toConsumableArray(head), _toConsumableArray(tail));
            }
            /** @type {?} */


            var selectors = args.slice(0, args.length - 1);
            /** @type {?} */

            var projector = args[args.length - 1];
            /** @type {?} */

            var memoizedSelectors = selectors.filter(
            /**
            * @param {?} selector
            * @return {?}
            */
            function (selector) {
              return selector.release && typeof selector.release === 'function';
            });
            /** @type {?} */

            var memoizedProjector = memoize(
            /**
            * @param {...?} selectors
            * @return {?}
            */
            function () {
              for (var _len37 = arguments.length, selectors = new Array(_len37), _key39 = 0; _key39 < _len37; _key39++) {
                selectors[_key39] = arguments[_key39];
              }

              return projector.apply(null, selectors);
            });
            /** @type {?} */

            var memoizedState = defaultMemoize(
            /**
            * @param {?} state
            * @param {?} props
            * @return {?}
            */
            function (state, props) {
              return options.stateFn.apply(null, [state, selectors, props, memoizedProjector]);
            });
            /**
             * @return {?}
             */

            function release() {
              memoizedState.reset();
              memoizedProjector.reset();
              memoizedSelectors.forEach(
              /**
              * @param {?} selector
              * @return {?}
              */
              function (selector) {
                return selector.release();
              });
            }

            return Object.assign(memoizedState.memoized, {
              release: release,
              projector: memoizedProjector.memoized,
              setResult: memoizedState.setResult
            });
          }
        );
      }
      /**
       * @param {?} featureName
       * @return {?}
       */


      function createFeatureSelector(featureName) {
        return createSelector(
        /**
        * @param {?} state
        * @return {?}
        */
        function (state) {
          /** @type {?} */
          var featureState = state[featureName];

          if (Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["isDevMode"])() && !(featureName in state)) {
            console.warn("@ngrx/store: The feature name \"".concat(featureName, "\" does ") + 'not exist in the state, therefore createFeatureSelector ' + 'cannot access it.  Be sure it is imported in a loaded module ' + "using StoreModule.forRoot('".concat(featureName, "', ...) or ") + "StoreModule.forFeature('".concat(featureName, "', ...).  If the default ") + 'state is intended to be undefined, as is the case with router ' + 'state, this development-only warning message can be ignored.');
          }

          return featureState;
        },
        /**
        * @param {?} featureState
        * @return {?}
        */
        function (featureState) {
          return featureState;
        });
      }
      /**
       * @fileoverview added by tsickle
       * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * @param {?} target
       * @return {?}
       */


      function isUndefined(target) {
        return target === undefined;
      }
      /**
       * @param {?} target
       * @return {?}
       */


      function isNull(target) {
        return target === null;
      }
      /**
       * @param {?} target
       * @return {?}
       */


      function isArray(target) {
        return Array.isArray(target);
      }
      /**
       * @param {?} target
       * @return {?}
       */


      function isString(target) {
        return typeof target === 'string';
      }
      /**
       * @param {?} target
       * @return {?}
       */


      function isBoolean(target) {
        return typeof target === 'boolean';
      }
      /**
       * @param {?} target
       * @return {?}
       */


      function isNumber(target) {
        return typeof target === 'number';
      }
      /**
       * @param {?} target
       * @return {?}
       */


      function isObjectLike(target) {
        return typeof target === 'object' && target !== null;
      }
      /**
       * @param {?} target
       * @return {?}
       */


      function isObject(target) {
        return isObjectLike(target) && !isArray(target);
      }
      /**
       * @param {?} target
       * @return {?}
       */


      function isPlainObject(target) {
        if (!isObject(target)) {
          return false;
        }
        /** @type {?} */


        var targetPrototype = Object.getPrototypeOf(target);
        return targetPrototype === Object.prototype || targetPrototype === null;
      }
      /**
       * @param {?} target
       * @return {?}
       */


      function isFunction(target) {
        return typeof target === 'function';
      }
      /**
       * @param {?} target
       * @param {?} propertyName
       * @return {?}
       */


      function hasOwnProperty(target, propertyName) {
        return Object.prototype.hasOwnProperty.call(target, propertyName);
      }
      /**
       * @fileoverview added by tsickle
       * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * @param {?} reducer
       * @param {?} checks
       * @return {?}
       */


      function immutabilityCheckMetaReducer(reducer, checks) {
        return (
          /**
          * @param {?} state
          * @param {?} action
          * @return {?}
          */
          function (state, action) {
            /** @type {?} */
            var act = checks.action ? freeze(action) : action;
            /** @type {?} */

            var nextState = reducer(state, act);
            return checks.state ? freeze(nextState) : nextState;
          }
        );
      }
      /**
       * @param {?} target
       * @return {?}
       */


      function freeze(target) {
        Object.freeze(target);
        /** @type {?} */

        var targetIsFunction = isFunction(target);
        Object.getOwnPropertyNames(target).forEach(
        /**
        * @param {?} prop
        * @return {?}
        */
        function (prop) {
          if (hasOwnProperty(target, prop) && (targetIsFunction ? prop !== 'caller' && prop !== 'callee' && prop !== 'arguments' : true)) {
            /** @type {?} */
            var propValue = target[prop];

            if ((isObjectLike(propValue) || isFunction(propValue)) && !Object.isFrozen(propValue)) {
              freeze(propValue);
            }
          }
        });
        return target;
      }
      /**
       * @fileoverview added by tsickle
       * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * @param {?} reducer
       * @param {?} checks
       * @return {?}
       */


      function serializationCheckMetaReducer(reducer, checks) {
        return (
          /**
          * @param {?} state
          * @param {?} action
          * @return {?}
          */
          function (state, action) {
            if (checks.action) {
              /** @type {?} */
              var unserializableAction = getUnserializable(action);
              throwIfUnserializable(unserializableAction, 'action');
            }
            /** @type {?} */


            var nextState = reducer(state, action);

            if (checks.state) {
              /** @type {?} */
              var unserializableState = getUnserializable(nextState);
              throwIfUnserializable(unserializableState, 'state');
            }

            return nextState;
          }
        );
      }
      /**
       * @param {?=} target
       * @param {?=} path
       * @return {?}
       */


      function getUnserializable(target) {
        var path = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];

        // Guard against undefined and null, e.g. a reducer that returns undefined
        if ((isUndefined(target) || isNull(target)) && path.length === 0) {
          return {
            path: ['root'],
            value: target
          };
        }
        /** @type {?} */


        var keys = Object.keys(target);
        return keys.reduce(
        /**
        * @param {?} result
        * @param {?} key
        * @return {?}
        */
        function (result, key) {
          if (result) {
            return result;
          }
          /** @type {?} */


          var value = target[key];

          if (isUndefined(value) || isNull(value) || isNumber(value) || isBoolean(value) || isString(value) || isArray(value)) {
            return false;
          }

          if (isPlainObject(value)) {
            return getUnserializable(value, [].concat(_toConsumableArray(path), [key]));
          }

          return {
            path: [].concat(_toConsumableArray(path), [key]),
            value: value
          };
        }, false);
      }
      /**
       * @param {?} unserializable
       * @param {?} context
       * @return {?}
       */


      function throwIfUnserializable(unserializable, context) {
        if (unserializable === false) {
          return;
        }
        /** @type {?} */


        var unserializablePath = unserializable.path.join('.');
        /** @type {?} */

        var error = new Error("Detected unserializable ".concat(context, " at \"").concat(unserializablePath, "\""));
        error.value = unserializable.value;
        error.unserializablePath = unserializablePath;
        throw error;
      }
      /**
       * @fileoverview added by tsickle
       * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * @fileoverview added by tsickle
       * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * @param {?=} runtimeChecks
       * @return {?}
       */


      function createActiveRuntimeChecks(runtimeChecks) {
        if (Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["isDevMode"])()) {
          if (runtimeChecks === undefined) {
            console.warn('@ngrx/store: runtime checks are currently opt-in but will be the default in the next major version with the possibility to opt-out, see https://ngrx.io/guide/migration/v8 for more information.');
          }

          return Object.assign({
            strictStateSerializability: false,
            strictActionSerializability: false,
            strictStateImmutability: false,
            strictActionImmutability: false
          }, runtimeChecks);
        }

        return {
          strictStateSerializability: false,
          strictActionSerializability: false,
          strictStateImmutability: false,
          strictActionImmutability: false
        };
      }
      /**
       * @param {?} __0
       * @return {?}
       */


      function createSerializationCheckMetaReducer(_ref64) {
        var strictActionSerializability = _ref64.strictActionSerializability,
            strictStateSerializability = _ref64.strictStateSerializability;
        return (
          /**
          * @param {?} reducer
          * @return {?}
          */
          function (reducer) {
            return strictActionSerializability || strictStateSerializability ? serializationCheckMetaReducer(reducer, {
              action: strictActionSerializability,
              state: strictStateSerializability
            }) : reducer;
          }
        );
      }
      /**
       * @param {?} __0
       * @return {?}
       */


      function createImmutabilityCheckMetaReducer(_ref65) {
        var strictActionImmutability = _ref65.strictActionImmutability,
            strictStateImmutability = _ref65.strictStateImmutability;
        return (
          /**
          * @param {?} reducer
          * @return {?}
          */
          function (reducer) {
            return strictActionImmutability || strictStateImmutability ? immutabilityCheckMetaReducer(reducer, {
              action: strictActionImmutability,
              state: strictStateImmutability
            }) : reducer;
          }
        );
      }
      /**
       * @param {?=} runtimeChecks
       * @return {?}
       */


      function provideRuntimeChecks(runtimeChecks) {
        return [{
          provide: _USER_RUNTIME_CHECKS,
          useValue: runtimeChecks
        }, {
          provide: USER_RUNTIME_CHECKS,
          useFactory: _runtimeChecksFactory,
          deps: [_USER_RUNTIME_CHECKS]
        }, {
          provide: _ACTIVE_RUNTIME_CHECKS,
          deps: [USER_RUNTIME_CHECKS],
          useFactory: createActiveRuntimeChecks
        }, {
          provide: META_REDUCERS,
          multi: true,
          deps: [_ACTIVE_RUNTIME_CHECKS],
          useFactory: createImmutabilityCheckMetaReducer
        }, {
          provide: META_REDUCERS,
          multi: true,
          deps: [_ACTIVE_RUNTIME_CHECKS],
          useFactory: createSerializationCheckMetaReducer
        }];
      }
      /**
       * @param {?} runtimeChecks
       * @return {?}
       */


      function _runtimeChecksFactory(runtimeChecks) {
        return runtimeChecks;
      }
      /**
       * @fileoverview added by tsickle
       * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */


      var StoreRootModule =
      /**
       * @param {?} actions$
       * @param {?} reducer$
       * @param {?} scannedActions$
       * @param {?} store
       * @param {?} guard
       */
      function StoreRootModule(actions$, reducer$, scannedActions$, store, guard) {
        _classCallCheck2(this, StoreRootModule);
      };

      StoreRootModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
        type: StoreRootModule
      });
      StoreRootModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
        factory: function StoreRootModule_Factory(t) {
          return new (t || StoreRootModule)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](ActionsSubject), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](ReducerObservable), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](ScannedActionsSubject), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](Store), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_ROOT_STORE_GUARD, 8));
        }
      });
      /** @nocollapse */

      StoreRootModule.ctorParameters = function () {
        return [{
          type: ActionsSubject
        }, {
          type: ReducerObservable
        }, {
          type: ScannedActionsSubject
        }, {
          type: Store
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [_ROOT_STORE_GUARD]
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](StoreRootModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
          args: [{}]
        }], function () {
          return [{
            type: ActionsSubject
          }, {
            type: ReducerObservable
          }, {
            type: ScannedActionsSubject
          }, {
            type: Store
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [_ROOT_STORE_GUARD]
            }]
          }];
        }, null);
      })();

      var StoreFeatureModule = /*#__PURE__*/function () {
        /**
         * @param {?} features
         * @param {?} featureReducers
         * @param {?} reducerManager
         * @param {?} root
         */
        function StoreFeatureModule(features, featureReducers, reducerManager, root) {
          _classCallCheck2(this, StoreFeatureModule);

          this.features = features;
          this.featureReducers = featureReducers;
          this.reducerManager = reducerManager;
          /** @type {?} */

          var feats = features.map(
          /**
          * @param {?} feature
          * @param {?} index
          * @return {?}
          */
          function (feature, index) {
            /** @type {?} */
            var featureReducerCollection = featureReducers.shift();
            /** @type {?} */

            var reducers = featureReducerCollection
            /*TODO(#823)*/
            [index];
            return Object.assign({}, feature, {
              reducers: reducers,
              initialState: _initialStateFactory(feature.initialState)
            });
          });
          reducerManager.addFeatures(feats);
        }
        /**
         * @return {?}
         */


        _createClass2(StoreFeatureModule, [{
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            this.reducerManager.removeFeatures(this.features);
          }
        }]);

        return StoreFeatureModule;
      }();

      StoreFeatureModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
        type: StoreFeatureModule
      });
      StoreFeatureModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
        factory: function StoreFeatureModule_Factory(t) {
          return new (t || StoreFeatureModule)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_STORE_FEATURES), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](FEATURE_REDUCERS), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](ReducerManager), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](StoreRootModule));
        }
      });
      /** @nocollapse */

      StoreFeatureModule.ctorParameters = function () {
        return [{
          type: Array,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [_STORE_FEATURES]
          }]
        }, {
          type: Array,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [FEATURE_REDUCERS]
          }]
        }, {
          type: ReducerManager
        }, {
          type: StoreRootModule
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](StoreFeatureModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
          args: [{}]
        }], function () {
          return [{
            type: Array,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [_STORE_FEATURES]
            }]
          }, {
            type: Array,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [FEATURE_REDUCERS]
            }]
          }, {
            type: ReducerManager
          }, {
            type: StoreRootModule
          }];
        }, null);
      })();

      var StoreModule = /*#__PURE__*/function () {
        function StoreModule() {
          _classCallCheck2(this, StoreModule);
        }

        _createClass2(StoreModule, null, [{
          key: "forRoot",
          value:
          /**
           * @param {?} reducers
           * @param {?=} config
           * @return {?}
           */
          function forRoot(reducers) {
            var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
            return {
              ngModule: StoreRootModule,
              providers: [{
                provide: _ROOT_STORE_GUARD,
                useFactory: _provideForRootGuard,
                deps: [[Store, new _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"](), new _angular_core__WEBPACK_IMPORTED_MODULE_0__["SkipSelf"]()]]
              }, {
                provide: _INITIAL_STATE,
                useValue: config.initialState
              }, {
                provide: INITIAL_STATE,
                useFactory: _initialStateFactory,
                deps: [_INITIAL_STATE]
              }, {
                provide: _INITIAL_REDUCERS,
                useValue: reducers
              }, {
                provide: _STORE_REDUCERS,
                useExisting: reducers instanceof _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"] ? reducers : _INITIAL_REDUCERS
              }, {
                provide: INITIAL_REDUCERS,
                deps: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injector"], _INITIAL_REDUCERS, [new _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"](_STORE_REDUCERS)]],
                useFactory: _createStoreReducers
              }, {
                provide: USER_PROVIDED_META_REDUCERS,
                useValue: config.metaReducers ? config.metaReducers : []
              }, {
                provide: _RESOLVED_META_REDUCERS,
                deps: [META_REDUCERS, USER_PROVIDED_META_REDUCERS],
                useFactory: _concatMetaReducers
              }, {
                provide: _REDUCER_FACTORY,
                useValue: config.reducerFactory ? config.reducerFactory : combineReducers
              }, {
                provide: REDUCER_FACTORY,
                deps: [_REDUCER_FACTORY, _RESOLVED_META_REDUCERS],
                useFactory: createReducerFactory
              }, ACTIONS_SUBJECT_PROVIDERS, REDUCER_MANAGER_PROVIDERS, SCANNED_ACTIONS_SUBJECT_PROVIDERS, STATE_PROVIDERS, STORE_PROVIDERS, provideRuntimeChecks(config.runtimeChecks)]
            };
          }
          /**
           * @param {?} featureName
           * @param {?} reducers
           * @param {?=} config
           * @return {?}
           */

        }, {
          key: "forFeature",
          value: function forFeature(featureName, reducers) {
            var config = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
            return {
              ngModule: StoreFeatureModule,
              providers: [{
                provide: _FEATURE_CONFIGS,
                multi: true,
                useValue: config
              }, {
                provide: STORE_FEATURES,
                multi: true,
                useValue: {
                  key: featureName,
                  reducerFactory: !(config instanceof _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]) && config.reducerFactory ? config.reducerFactory : combineReducers,
                  metaReducers: !(config instanceof _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]) && config.metaReducers ? config.metaReducers : [],
                  initialState: !(config instanceof _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]) && config.initialState ? config.initialState : undefined
                }
              }, {
                provide: _STORE_FEATURES,
                deps: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injector"], _FEATURE_CONFIGS, STORE_FEATURES],
                useFactory: _createFeatureStore
              }, {
                provide: _FEATURE_REDUCERS,
                multi: true,
                useValue: reducers
              }, {
                provide: _FEATURE_REDUCERS_TOKEN,
                multi: true,
                useExisting: reducers instanceof _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"] ? reducers : _FEATURE_REDUCERS
              }, {
                provide: FEATURE_REDUCERS,
                multi: true,
                deps: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injector"], _FEATURE_REDUCERS, [new _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"](_FEATURE_REDUCERS_TOKEN)]],
                useFactory: _createFeatureReducers
              }]
            };
          }
        }]);

        return StoreModule;
      }();

      StoreModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
        type: StoreModule
      });
      StoreModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
        factory: function StoreModule_Factory(t) {
          return new (t || StoreModule)();
        }
      });
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](StoreModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
          args: [{}]
        }], null, null);
      })();
      /**
       * @param {?} injector
       * @param {?} reducers
       * @return {?}
       */


      function _createStoreReducers(injector, reducers) {
        return reducers instanceof _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"] ? injector.get(reducers) : reducers;
      }
      /**
       * @param {?} injector
       * @param {?} configs
       * @param {?} featureStores
       * @return {?}
       */


      function _createFeatureStore(injector, configs, featureStores) {
        return featureStores.map(
        /**
        * @param {?} feat
        * @param {?} index
        * @return {?}
        */
        function (feat, index) {
          if (configs[index] instanceof _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]) {
            /** @type {?} */
            var conf = injector.get(configs[index]);
            return {
              key: feat.key,
              reducerFactory: conf.reducerFactory ? conf.reducerFactory : combineReducers,
              metaReducers: conf.metaReducers ? conf.metaReducers : [],
              initialState: conf.initialState
            };
          }

          return feat;
        });
      }
      /**
       * @param {?} injector
       * @param {?} reducerCollection
       * @return {?}
       */


      function _createFeatureReducers(injector, reducerCollection) {
        /** @type {?} */
        var reducers = reducerCollection.map(
        /**
        * @param {?} reducer
        * @return {?}
        */
        function (reducer) {
          return reducer instanceof _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"] ? injector.get(reducer) : reducer;
        });
        return reducers;
      }
      /**
       * @param {?} initialState
       * @return {?}
       */


      function _initialStateFactory(initialState) {
        if (typeof initialState === 'function') {
          return initialState();
        }

        return initialState;
      }
      /**
       * @param {?} metaReducers
       * @param {?} userProvidedMetaReducers
       * @return {?}
       */


      function _concatMetaReducers(metaReducers, userProvidedMetaReducers) {
        return metaReducers.concat(userProvidedMetaReducers);
      }
      /**
       * @param {?} store
       * @return {?}
       */


      function _provideForRootGuard(store) {
        if (store) {
          throw new TypeError("StoreModule.forRoot() called twice. Feature modules should use StoreModule.forFeature() instead.");
        }

        return 'guarded';
      }
      /**
       * @fileoverview added by tsickle
       * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * \@description
       * Associates actions with a given state change function.
       * A state change function must be provided as the last parameter.
       *
       * @param {...?} args `ActionCreator`'s followed by a state change function.
       *
       * **To maintain type-safety**: pass 10 or less `ActionCreator`'s.
       * @return {?} an association of action types with a state change function.
       */


      function on() {
        for (var _len38 = arguments.length, args = new Array(_len38), _key40 = 0; _key40 < _len38; _key40++) {
          args[_key40] = arguments[_key40];
        }

        /** @type {?} */
        var reducer = args.pop();
        /** @type {?} */

        var types = args.reduce(
        /**
        * @param {?} result
        * @param {?} creator
        * @return {?}
        */
        function (result, creator) {
          return [].concat(_toConsumableArray(result), [creator.type]);
        }, []);
        return {
          reducer: reducer,
          types: types
        };
      }
      /**
       * \@description
       * Creates a reducer function to handle state transitions.
       *
       * Reducer creators reduce the explicitness of reducer functions with switch statements.
       *
       * \@usageNotes
       *
       * - Must be used with `ActionCreator`'s (returned by `createAction`).  Cannot be used with class-based action creators.
       * - An action can be associated with multiple state change functions. In this case the functions will be executed in the specified order.
       * - The returned `ActionReducer` should additionally be returned from an exported `reducer` function.
       * This is because [function calls are not supported](https://angular.io/guide/aot-compiler#function-calls-are-not-supported) by the AOT compiler.
       *
       * **Declaring a reducer creator with an exported reducer function**
       *
       * ```ts
       * const featureReducer = createReducer(
       *   initialState,
       *   on(
       *     featureActions.actionOne,
       *     featureActions.actionTwo,
       *     (state, { updatedValue }) => ({ ...state, prop: updatedValue })
       *   ),
       *   on(featureActions.actionThree, () => initialState);
       * );
       *
       * export function reducer(state: State | undefined, action: Action) {
       *   return featureReducer(state, action);
       * }
       * ```
       * @template S, A
       * @param {?} initialState Provides a state value if the current state is `undefined`, as it is initially.
       * @param {...?} ons Associations between actions and state changes.
       * @return {?} A reducer function.
       *
       */


      function createReducer(initialState) {
        /** @type {?} */
        var map = new Map();

        for (var _len39 = arguments.length, ons = new Array(_len39 > 1 ? _len39 - 1 : 0), _key41 = 1; _key41 < _len39; _key41++) {
          ons[_key41 - 1] = arguments[_key41];
        }

        var _loop6 = function _loop6() {
          var on = _ons[_i32];

          var _iterator58 = _createForOfIteratorHelper(on.types),
              _step57;

          try {
            for (_iterator58.s(); !(_step57 = _iterator58.n()).done;) {
              var type = _step57.value;

              if (map.has(type)) {
                (function () {
                  /** @type {?} */
                  var existingReducer = map.get(type);
                  /** @type {?} */

                  var newReducer =
                  /**
                  * @param {?} state
                  * @param {?} action
                  * @return {?}
                  */
                  function newReducer(state, action) {
                    return on.reducer(existingReducer(state, action), action);
                  };

                  map.set(type, newReducer);
                })();
              } else {
                map.set(type, on.reducer);
              }
            }
          } catch (err) {
            _iterator58.e(err);
          } finally {
            _iterator58.f();
          }
        };

        for (var _i32 = 0, _ons = ons; _i32 < _ons.length; _i32++) {
          _loop6();
        }

        return (
          /**
          * @param {?=} state
          * @param {?=} action
          * @return {?}
          */
          function () {
            var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initialState;
            var action = arguments.length > 1 ? arguments[1] : undefined;

            /** @type {?} */
            var reducer = map.get(action.type);
            return reducer ? reducer(state, action) : state;
          }
        );
      }
      /**
       * @fileoverview added by tsickle
       * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * @fileoverview added by tsickle
       * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * @fileoverview added by tsickle
       * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * Generated bundle index. Do not edit.
       */
      //# sourceMappingURL=store.js.map

      /***/

    },

    /***/
    "DX7i": function DX7i(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return isLastDayOfMonth;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _endOfDay_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../endOfDay/index.js */
      "piIK");
      /* harmony import */


      var _endOfMonth_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../endOfMonth/index.js */
      "jKzE");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name isLastDayOfMonth
       * @category Month Helpers
       * @summary Is the given date the last day of a month?
       *
       * @description
       * Is the given date the last day of a month?
       *
       * ### 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 {Date|Number} date - the date to check
       * @returns {Boolean} the date is the last day of a month
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // Is 28 February 2014 the last day of a month?
       * var result = isLastDayOfMonth(new Date(2014, 1, 28))
       * //=> true
       */


      function isLastDayOfMonth(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(1, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);
        return Object(_endOfDay_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(date).getTime() === Object(_endOfMonth_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(date).getTime();
      }
      /***/

    },

    /***/
    "Da6A": function Da6A(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return addHours;
      });
      /* harmony import */


      var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../_lib/toInteger/index.js */
      "/h9T");
      /* harmony import */


      var _addMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../addMilliseconds/index.js */
      "pl0G");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");

      var MILLISECONDS_IN_HOUR = 3600000;
      /**
       * @name addHours
       * @category Hour Helpers
       * @summary Add the specified number of hours to the given date.
       *
       * @description
       * Add the specified number of hours to the given date.
       *
       * ### 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 {Date|Number} date - the date to be changed
       * @param {Number} amount - the amount of hours to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
       * @returns {Date} the new date with the hours added
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // Add 2 hours to 10 July 2014 23:00:00:
       * var result = addHours(new Date(2014, 6, 10, 23, 0), 2)
       * //=> Fri Jul 11 2014 01:00:00
       */

      function addHours(dirtyDate, dirtyAmount) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(2, arguments);
        var amount = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyAmount);
        return Object(_addMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate, amount * MILLISECONDS_IN_HOUR);
      }
      /***/

    },

    /***/
    "DejY": function DejY(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MAT_MOMENT_DATE_ADAPTER_OPTIONS", function () {
        return MAT_MOMENT_DATE_ADAPTER_OPTIONS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MAT_MOMENT_DATE_ADAPTER_OPTIONS_FACTORY", function () {
        return MAT_MOMENT_DATE_ADAPTER_OPTIONS_FACTORY;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MAT_MOMENT_DATE_FORMATS", function () {
        return MAT_MOMENT_DATE_FORMATS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatMomentDateModule", function () {
        return MatMomentDateModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MomentDateAdapter", function () {
        return MomentDateAdapter;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MomentDateModule", function () {
        return MomentDateModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵ0", function () {
        return ɵ0;
      });
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /* harmony import */


      var _angular_material_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/material/core */
      "UhP/");
      /* harmony import */


      var moment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! moment */
      "wd/R");
      /* harmony import */


      var moment__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_2__);
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var moment = moment__WEBPACK_IMPORTED_MODULE_2___default.a || moment__WEBPACK_IMPORTED_MODULE_2__;
      /** InjectionToken for moment date adapter to configure options. */

      var MAT_MOMENT_DATE_ADAPTER_OPTIONS = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('MAT_MOMENT_DATE_ADAPTER_OPTIONS', {
        providedIn: 'root',
        factory: MAT_MOMENT_DATE_ADAPTER_OPTIONS_FACTORY
      });
      /** @docs-private */

      function MAT_MOMENT_DATE_ADAPTER_OPTIONS_FACTORY() {
        return {
          useUtc: false
        };
      }
      /** Creates an array and fills it with values. */


      function range(length, valueFunction) {
        var valuesArray = Array(length);

        for (var i = 0; i < length; i++) {
          valuesArray[i] = valueFunction(i);
        }

        return valuesArray;
      }
      /** Adapts Moment.js Dates for use with Angular Material. */


      var MomentDateAdapter = /*#__PURE__*/function (_angular_material_cor) {
        _inherits2(MomentDateAdapter, _angular_material_cor);

        var _super185 = _createSuper2(MomentDateAdapter);

        function MomentDateAdapter(dateLocale, _options) {
          var _this461;

          _classCallCheck2(this, MomentDateAdapter);

          _this461 = _super185.call(this);
          _this461._options = _options;

          _this461.setLocale(dateLocale || moment.locale());

          return _this461;
        }

        _createClass2(MomentDateAdapter, [{
          key: "setLocale",
          value: function setLocale(locale) {
            var _this462 = this;

            _get2(_getPrototypeOf2(MomentDateAdapter.prototype), "setLocale", this).call(this, locale);

            var momentLocaleData = moment.localeData(locale);
            this._localeData = {
              firstDayOfWeek: momentLocaleData.firstDayOfWeek(),
              longMonths: momentLocaleData.months(),
              shortMonths: momentLocaleData.monthsShort(),
              dates: range(31, function (i) {
                return _this462.createDate(2017, 0, i + 1).format('D');
              }),
              longDaysOfWeek: momentLocaleData.weekdays(),
              shortDaysOfWeek: momentLocaleData.weekdaysShort(),
              narrowDaysOfWeek: momentLocaleData.weekdaysMin()
            };
          }
        }, {
          key: "getYear",
          value: function getYear(date) {
            return this.clone(date).year();
          }
        }, {
          key: "getMonth",
          value: function getMonth(date) {
            return this.clone(date).month();
          }
        }, {
          key: "getDate",
          value: function getDate(date) {
            return this.clone(date).date();
          }
        }, {
          key: "getDayOfWeek",
          value: function getDayOfWeek(date) {
            return this.clone(date).day();
          }
        }, {
          key: "getMonthNames",
          value: function getMonthNames(style) {
            // Moment.js doesn't support narrow month names, so we just use short if narrow is requested.
            return style == 'long' ? this._localeData.longMonths : this._localeData.shortMonths;
          }
        }, {
          key: "getDateNames",
          value: function getDateNames() {
            return this._localeData.dates;
          }
        }, {
          key: "getDayOfWeekNames",
          value: function getDayOfWeekNames(style) {
            if (style == 'long') {
              return this._localeData.longDaysOfWeek;
            }

            if (style == 'short') {
              return this._localeData.shortDaysOfWeek;
            }

            return this._localeData.narrowDaysOfWeek;
          }
        }, {
          key: "getYearName",
          value: function getYearName(date) {
            return this.clone(date).format('YYYY');
          }
        }, {
          key: "getFirstDayOfWeek",
          value: function getFirstDayOfWeek() {
            return this._localeData.firstDayOfWeek;
          }
        }, {
          key: "getNumDaysInMonth",
          value: function getNumDaysInMonth(date) {
            return this.clone(date).daysInMonth();
          }
        }, {
          key: "clone",
          value: function clone(date) {
            return date.clone().locale(this.locale);
          }
        }, {
          key: "createDate",
          value: function createDate(year, month, date) {
            // Moment.js will create an invalid date if any of the components are out of bounds, but we
            // explicitly check each case so we can throw more descriptive errors.
            if (typeof ngDevMode === 'undefined' || ngDevMode) {
              if (month < 0 || month > 11) {
                throw Error("Invalid month index \"".concat(month, "\". Month index has to be between 0 and 11."));
              }

              if (date < 1) {
                throw Error("Invalid date \"".concat(date, "\". Date has to be greater than 0."));
              }
            }

            var result = this._createMoment({
              year: year,
              month: month,
              date: date
            }).locale(this.locale); // If the result isn't valid, the date must have been out of bounds for this month.


            if (!result.isValid() && (typeof ngDevMode === 'undefined' || ngDevMode)) {
              throw Error("Invalid date \"".concat(date, "\" for month with index \"").concat(month, "\"."));
            }

            return result;
          }
        }, {
          key: "today",
          value: function today() {
            return this._createMoment().locale(this.locale);
          }
        }, {
          key: "parse",
          value: function parse(value, parseFormat) {
            if (value && typeof value == 'string') {
              return this._createMoment(value, parseFormat, this.locale);
            }

            return value ? this._createMoment(value).locale(this.locale) : null;
          }
        }, {
          key: "format",
          value: function format(date, displayFormat) {
            date = this.clone(date);

            if (!this.isValid(date) && (typeof ngDevMode === 'undefined' || ngDevMode)) {
              throw Error('MomentDateAdapter: Cannot format invalid date.');
            }

            return date.format(displayFormat);
          }
        }, {
          key: "addCalendarYears",
          value: function addCalendarYears(date, years) {
            return this.clone(date).add({
              years: years
            });
          }
        }, {
          key: "addCalendarMonths",
          value: function addCalendarMonths(date, months) {
            return this.clone(date).add({
              months: months
            });
          }
        }, {
          key: "addCalendarDays",
          value: function addCalendarDays(date, days) {
            return this.clone(date).add({
              days: days
            });
          }
        }, {
          key: "toIso8601",
          value: function toIso8601(date) {
            return this.clone(date).format();
          }
          /**
           * Returns the given value if given a valid Moment or null. Deserializes valid ISO 8601 strings
           * (https://www.ietf.org/rfc/rfc3339.txt) and valid Date objects into valid Moments and empty
           * string into null. Returns an invalid date for all other values.
           */

        }, {
          key: "deserialize",
          value: function deserialize(value) {
            var date;

            if (value instanceof Date) {
              date = this._createMoment(value).locale(this.locale);
            } else if (this.isDateInstance(value)) {
              // Note: assumes that cloning also sets the correct locale.
              return this.clone(value);
            }

            if (typeof value === 'string') {
              if (!value) {
                return null;
              }

              date = this._createMoment(value, moment.ISO_8601).locale(this.locale);
            }

            if (date && this.isValid(date)) {
              return this._createMoment(date).locale(this.locale);
            }

            return _get2(_getPrototypeOf2(MomentDateAdapter.prototype), "deserialize", this).call(this, value);
          }
        }, {
          key: "isDateInstance",
          value: function isDateInstance(obj) {
            return moment.isMoment(obj);
          }
        }, {
          key: "isValid",
          value: function isValid(date) {
            return this.clone(date).isValid();
          }
        }, {
          key: "invalid",
          value: function invalid() {
            return moment.invalid();
          }
          /** Creates a Moment instance while respecting the current UTC settings. */

        }, {
          key: "_createMoment",
          value: function _createMoment(date, format, locale) {
            var _ref66 = this._options || {},
                strict = _ref66.strict,
                useUtc = _ref66.useUtc;

            return useUtc ? moment.utc(date, format, locale, strict) : moment(date, format, locale, strict);
          }
        }]);

        return MomentDateAdapter;
      }(_angular_material_core__WEBPACK_IMPORTED_MODULE_1__["DateAdapter"]);

      MomentDateAdapter.ɵfac = function MomentDateAdapter_Factory(t) {
        return new (t || MomentDateAdapter)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MAT_DATE_LOCALE"], 8), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](MAT_MOMENT_DATE_ADAPTER_OPTIONS, 8));
      };

      MomentDateAdapter.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
        token: MomentDateAdapter,
        factory: MomentDateAdapter.ɵfac
      });

      MomentDateAdapter.ctorParameters = function () {
        return [{
          type: String,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [_angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MAT_DATE_LOCALE"]]
          }]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [MAT_MOMENT_DATE_ADAPTER_OPTIONS]
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MomentDateAdapter, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
        }], function () {
          return [{
            type: String,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [_angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MAT_DATE_LOCALE"]]
            }]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [MAT_MOMENT_DATE_ADAPTER_OPTIONS]
            }]
          }];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var MAT_MOMENT_DATE_FORMATS = {
        parse: {
          dateInput: 'l'
        },
        display: {
          dateInput: 'l',
          monthYearLabel: 'MMM YYYY',
          dateA11yLabel: 'LL',
          monthYearA11yLabel: 'MMMM YYYY'
        }
      };
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      var MomentDateModule = function MomentDateModule() {
        _classCallCheck2(this, MomentDateModule);
      };

      MomentDateModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
        type: MomentDateModule
      });
      MomentDateModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
        factory: function MomentDateModule_Factory(t) {
          return new (t || MomentDateModule)();
        },
        providers: [{
          provide: _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["DateAdapter"],
          useClass: MomentDateAdapter,
          deps: [_angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MAT_DATE_LOCALE"], MAT_MOMENT_DATE_ADAPTER_OPTIONS]
        }]
      });
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MomentDateModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
          args: [{
            providers: [{
              provide: _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["DateAdapter"],
              useClass: MomentDateAdapter,
              deps: [_angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MAT_DATE_LOCALE"], MAT_MOMENT_DATE_ADAPTER_OPTIONS]
            }]
          }]
        }], null, null);
      })();

      var ɵ0 = MAT_MOMENT_DATE_FORMATS;

      var MatMomentDateModule = function MatMomentDateModule() {
        _classCallCheck2(this, MatMomentDateModule);
      };

      MatMomentDateModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
        type: MatMomentDateModule
      });
      MatMomentDateModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
        factory: function MatMomentDateModule_Factory(t) {
          return new (t || MatMomentDateModule)();
        },
        providers: [{
          provide: _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MAT_DATE_FORMATS"],
          useValue: ɵ0
        }],
        imports: [[MomentDateModule]]
      });

      (function () {
        (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](MatMomentDateModule, {
          imports: [MomentDateModule]
        });
      })();
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatMomentDateModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
          args: [{
            imports: [MomentDateModule],
            providers: [{
              provide: _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MAT_DATE_FORMATS"],
              useValue: ɵ0
            }]
          }]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Generated bundle index. Do not edit.
       */
      //# sourceMappingURL=material-moment-adapter.js.map

      /***/

    },

    /***/
    "Dkky": function Dkky(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : French (Switzerland) [fr-ch]
      //! author : Gaspard Bucher : https://github.com/gaspard
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var frCh = moment.defineLocale('fr-ch', {
          months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
          monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
          monthsParseExact: true,
          weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
          weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
          weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
          weekdaysParseExact: true,
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd D MMMM YYYY HH:mm'
          },
          calendar: {
            sameDay: '[Aujourd’hui à] LT',
            nextDay: '[Demain à] LT',
            nextWeek: 'dddd [à] LT',
            lastDay: '[Hier à] LT',
            lastWeek: 'dddd [dernier à] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'dans %s',
            past: 'il y a %s',
            s: 'quelques secondes',
            ss: '%d secondes',
            m: 'une minute',
            mm: '%d minutes',
            h: 'une heure',
            hh: '%d heures',
            d: 'un jour',
            dd: '%d jours',
            M: 'un mois',
            MM: '%d mois',
            y: 'un an',
            yy: '%d ans'
          },
          dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
          ordinal: function ordinal(number, period) {
            switch (period) {
              // Words with masculine grammatical gender: mois, trimestre, jour
              default:
              case 'M':
              case 'Q':
              case 'D':
              case 'DDD':
              case 'd':
                return number + (number === 1 ? 'er' : 'e');
              // Words with feminine grammatical gender: semaine

              case 'w':
              case 'W':
                return number + (number === 1 ? 're' : 'e');
            }
          },
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return frCh;
      });
      /***/

    },

    /***/
    "Dmvi": function Dmvi(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : English (Australia) [en-au]
      //! author : Jared Morse : https://github.com/jarcoal
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var enAu = moment.defineLocale('en-au', {
          months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
          monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
          weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
          weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
          weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
          longDateFormat: {
            LT: 'h:mm A',
            LTS: 'h:mm:ss A',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY h:mm A',
            LLLL: 'dddd, D MMMM YYYY h:mm A'
          },
          calendar: {
            sameDay: '[Today at] LT',
            nextDay: '[Tomorrow at] LT',
            nextWeek: 'dddd [at] LT',
            lastDay: '[Yesterday at] LT',
            lastWeek: '[Last] dddd [at] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'in %s',
            past: '%s ago',
            s: 'a few seconds',
            ss: '%d seconds',
            m: 'a minute',
            mm: '%d minutes',
            h: 'an hour',
            hh: '%d hours',
            d: 'a day',
            dd: '%d days',
            M: 'a month',
            MM: '%d months',
            y: 'a year',
            yy: '%d years'
          },
          dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
          ordinal: function ordinal(number) {
            var b = number % 10,
                output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';
            return number + output;
          },
          week: {
            dow: 0,
            // Sunday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return enAu;
      });
      /***/

    },

    /***/
    "DoHr": function DoHr(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Turkish [tr]
      //! authors : Erhan Gundogan : https://github.com/erhangundogan,
      //!           Burak Yiğit Kaya: https://github.com/BYK
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var suffixes = {
          1: "'inci",
          5: "'inci",
          8: "'inci",
          70: "'inci",
          80: "'inci",
          2: "'nci",
          7: "'nci",
          20: "'nci",
          50: "'nci",
          3: "'üncü",
          4: "'üncü",
          100: "'üncü",
          6: "'ncı",
          9: "'uncu",
          10: "'uncu",
          30: "'uncu",
          60: "'ıncı",
          90: "'ıncı"
        };
        var tr = moment.defineLocale('tr', {
          months: 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split('_'),
          monthsShort: 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'),
          weekdays: 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split('_'),
          weekdaysShort: 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'),
          weekdaysMin: 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'),
          meridiem: function meridiem(hours, minutes, isLower) {
            if (hours < 12) {
              return isLower ? 'öö' : 'ÖÖ';
            } else {
              return isLower ? 'ös' : 'ÖS';
            }
          },
          meridiemParse: /öö|ÖÖ|ös|ÖS/,
          isPM: function isPM(input) {
            return input === 'ös' || input === 'ÖS';
          },
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd, D MMMM YYYY HH:mm'
          },
          calendar: {
            sameDay: '[bugün saat] LT',
            nextDay: '[yarın saat] LT',
            nextWeek: '[gelecek] dddd [saat] LT',
            lastDay: '[dün] LT',
            lastWeek: '[geçen] dddd [saat] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: '%s sonra',
            past: '%s önce',
            s: 'birkaç saniye',
            ss: '%d saniye',
            m: 'bir dakika',
            mm: '%d dakika',
            h: 'bir saat',
            hh: '%d saat',
            d: 'bir gün',
            dd: '%d gün',
            w: 'bir hafta',
            ww: '%d hafta',
            M: 'bir ay',
            MM: '%d ay',
            y: 'bir yıl',
            yy: '%d yıl'
          },
          ordinal: function ordinal(number, period) {
            switch (period) {
              case 'd':
              case 'D':
              case 'Do':
              case 'DD':
                return number;

              default:
                if (number === 0) {
                  // special case for zero
                  return number + "'ıncı";
                }

                var a = number % 10,
                    b = number % 100 - a,
                    c = number >= 100 ? 100 : null;
                return number + (suffixes[a] || suffixes[b] || suffixes[c]);
            }
          },
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 7 // The week that contains Jan 7th is the first week of the year.

          }
        });
        return tr;
      });
      /***/

    },

    /***/
    "Dq2l": function Dq2l(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return getDayOfYear;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _startOfYear_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../startOfYear/index.js */
      "1unF");
      /* harmony import */


      var _differenceInCalendarDays_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../differenceInCalendarDays/index.js */
      "gXqy");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name getDayOfYear
       * @category Day Helpers
       * @summary Get the day of the year of the given date.
       *
       * @description
       * Get the day of the year of the given date.
       *
       * ### 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 {Date|Number} date - the given date
       * @returns {Number} the day of year
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // Which day of the year is 2 July 2014?
       * var result = getDayOfYear(new Date(2014, 6, 2))
       * //=> 183
       */


      function getDayOfYear(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(1, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);
        var diff = Object(_differenceInCalendarDays_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(date, Object(_startOfYear_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(date));
        var dayOfYear = diff + 1;
        return dayOfYear;
      }
      /***/

    },

    /***/
    "DxQv": function DxQv(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Danish [da]
      //! author : Ulrik Nielsen : https://github.com/mrbase
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var da = moment.defineLocale('da', {
          months: 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split('_'),
          monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
          weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
          weekdaysShort: 'søn_man_tir_ons_tor_fre_lør'.split('_'),
          weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'D. MMMM YYYY',
            LLL: 'D. MMMM YYYY HH:mm',
            LLLL: 'dddd [d.] D. MMMM YYYY [kl.] HH:mm'
          },
          calendar: {
            sameDay: '[i dag kl.] LT',
            nextDay: '[i morgen kl.] LT',
            nextWeek: 'på dddd [kl.] LT',
            lastDay: '[i går kl.] LT',
            lastWeek: '[i] dddd[s kl.] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'om %s',
            past: '%s siden',
            s: 'få sekunder',
            ss: '%d sekunder',
            m: 'et minut',
            mm: '%d minutter',
            h: 'en time',
            hh: '%d timer',
            d: 'en dag',
            dd: '%d dage',
            M: 'en måned',
            MM: '%d måneder',
            y: 'et år',
            yy: '%d år'
          },
          dayOfMonthOrdinalParse: /\d{1,2}\./,
          ordinal: '%d.',
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return da;
      });
      /***/

    },

    /***/
    "Dxy4": function Dxy4(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatAnchor", function () {
        return MatAnchor;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatButton", function () {
        return MatButton;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatButtonModule", function () {
        return MatButtonModule;
      });
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /* harmony import */


      var _angular_material_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/material/core */
      "UhP/");
      /* harmony import */


      var _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! @angular/cdk/a11y */
      "YEUz");
      /* harmony import */


      var _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! @angular/platform-browser/animations */
      "omvX");
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** Default color palette for round buttons (mat-fab and mat-mini-fab) */


      var _c0 = ["mat-button", ""];
      var _c1 = ["*"];
      var _c2 = ".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n";
      var DEFAULT_ROUND_BUTTON_COLOR = 'accent';
      /**
       * List of classes to add to MatButton instances based on host attributes to
       * style as different variants.
       */

      var BUTTON_HOST_ATTRIBUTES = ['mat-button', 'mat-flat-button', 'mat-icon-button', 'mat-raised-button', 'mat-stroked-button', 'mat-mini-fab', 'mat-fab']; // Boilerplate for applying mixins to MatButton.

      /** @docs-private */

      var MatButtonBase = function MatButtonBase(_elementRef) {
        _classCallCheck2(this, MatButtonBase);

        this._elementRef = _elementRef;
      };

      var _MatButtonMixinBase = Object(_angular_material_core__WEBPACK_IMPORTED_MODULE_1__["mixinColor"])(Object(_angular_material_core__WEBPACK_IMPORTED_MODULE_1__["mixinDisabled"])(Object(_angular_material_core__WEBPACK_IMPORTED_MODULE_1__["mixinDisableRipple"])(MatButtonBase)));
      /**
       * Material design button.
       */


      var MatButton = /*#__PURE__*/function (_MatButtonMixinBase2) {
        _inherits2(MatButton, _MatButtonMixinBase2);

        var _super186 = _createSuper2(MatButton);

        function MatButton(elementRef, _focusMonitor, _animationMode) {
          var _this463;

          _classCallCheck2(this, MatButton);

          _this463 = _super186.call(this, elementRef);
          _this463._focusMonitor = _focusMonitor;
          _this463._animationMode = _animationMode;
          /** Whether the button is round. */

          _this463.isRoundButton = _this463._hasHostAttributes('mat-fab', 'mat-mini-fab');
          /** Whether the button is icon button. */

          _this463.isIconButton = _this463._hasHostAttributes('mat-icon-button'); // For each of the variant selectors that is present in the button's host
          // attributes, add the correct corresponding class.

          var _iterator59 = _createForOfIteratorHelper(BUTTON_HOST_ATTRIBUTES),
              _step58;

          try {
            for (_iterator59.s(); !(_step58 = _iterator59.n()).done;) {
              var attr = _step58.value;

              if (_this463._hasHostAttributes(attr)) {
                _this463._getHostElement().classList.add(attr);
              }
            } // Add a class that applies to all buttons. This makes it easier to target if somebody
            // wants to target all Material buttons. We do it here rather than `host` to ensure that
            // the class is applied to derived classes.

          } catch (err) {
            _iterator59.e(err);
          } finally {
            _iterator59.f();
          }

          elementRef.nativeElement.classList.add('mat-button-base');

          if (_this463.isRoundButton) {
            _this463.color = DEFAULT_ROUND_BUTTON_COLOR;
          }

          return _this463;
        }

        _createClass2(MatButton, [{
          key: "ngAfterViewInit",
          value: function ngAfterViewInit() {
            this._focusMonitor.monitor(this._elementRef, true);
          }
        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            this._focusMonitor.stopMonitoring(this._elementRef);
          }
          /** Focuses the button. */

        }, {
          key: "focus",
          value: function focus() {
            var origin = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'program';
            var options = arguments.length > 1 ? arguments[1] : undefined;

            this._focusMonitor.focusVia(this._getHostElement(), origin, options);
          }
        }, {
          key: "_getHostElement",
          value: function _getHostElement() {
            return this._elementRef.nativeElement;
          }
        }, {
          key: "_isRippleDisabled",
          value: function _isRippleDisabled() {
            return this.disableRipple || this.disabled;
          }
          /** Gets whether the button has one of the given attributes. */

        }, {
          key: "_hasHostAttributes",
          value: function _hasHostAttributes() {
            var _this464 = this;

            for (var _len40 = arguments.length, attributes = new Array(_len40), _key42 = 0; _key42 < _len40; _key42++) {
              attributes[_key42] = arguments[_key42];
            }

            return attributes.some(function (attribute) {
              return _this464._getHostElement().hasAttribute(attribute);
            });
          }
        }]);

        return MatButton;
      }(_MatButtonMixinBase);

      MatButton.ɵfac = function MatButton_Factory(t) {
        return new (t || MatButton)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_2__["FocusMonitor"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_3__["ANIMATION_MODULE_TYPE"], 8));
      };

      MatButton.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
        type: MatButton,
        selectors: [["button", "mat-button", ""], ["button", "mat-raised-button", ""], ["button", "mat-icon-button", ""], ["button", "mat-fab", ""], ["button", "mat-mini-fab", ""], ["button", "mat-stroked-button", ""], ["button", "mat-flat-button", ""]],
        viewQuery: function MatButton_Query(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵviewQuery"](_angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatRipple"], true);
          }

          if (rf & 2) {
            var _t;

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.ripple = _t.first);
          }
        },
        hostAttrs: [1, "mat-focus-indicator"],
        hostVars: 5,
        hostBindings: function MatButton_HostBindings(rf, ctx) {
          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("disabled", ctx.disabled || null);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("_mat-animation-noopable", ctx._animationMode === "NoopAnimations")("mat-button-disabled", ctx.disabled);
          }
        },
        inputs: {
          disabled: "disabled",
          disableRipple: "disableRipple",
          color: "color"
        },
        exportAs: ["matButton"],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]],
        attrs: _c0,
        ngContentSelectors: _c1,
        decls: 4,
        vars: 5,
        consts: [[1, "mat-button-wrapper"], ["matRipple", "", 1, "mat-button-ripple", 3, "matRippleDisabled", "matRippleCentered", "matRippleTrigger"], [1, "mat-button-focus-overlay"]],
        template: function MatButton_Template(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojectionDef"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 0);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojection"](1);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "span", 1);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "span", 2);
          }

          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("mat-button-ripple-round", ctx.isRoundButton || ctx.isIconButton);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("matRippleDisabled", ctx._isRippleDisabled())("matRippleCentered", ctx.isIconButton)("matRippleTrigger", ctx._getHostElement());
          }
        },
        directives: [_angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatRipple"]],
        styles: [_c2],
        encapsulation: 2,
        changeDetection: 0
      });

      MatButton.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
        }, {
          type: _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_2__["FocusMonitor"]
        }, {
          type: String,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_3__["ANIMATION_MODULE_TYPE"]]
          }]
        }];
      };

      MatButton.propDecorators = {
        ripple: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"],
          args: [_angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatRipple"]]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatButton, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
          args: [{
            selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button],\n             button[mat-fab], button[mat-mini-fab], button[mat-stroked-button],\n             button[mat-flat-button]",
            exportAs: 'matButton',
            host: {
              '[attr.disabled]': 'disabled || null',
              '[class._mat-animation-noopable]': '_animationMode === "NoopAnimations"',
              // Add a class for disabled button styling instead of the using attribute
              // selector or pseudo-selector.  This allows users to create focusabled
              // disabled buttons without recreating the styles.
              '[class.mat-button-disabled]': 'disabled',
              'class': 'mat-focus-indicator'
            },
            template: "<span class=\"mat-button-wrapper\"><ng-content></ng-content></span>\n<span matRipple class=\"mat-button-ripple\"\n      [class.mat-button-ripple-round]=\"isRoundButton || isIconButton\"\n      [matRippleDisabled]=\"_isRippleDisabled()\"\n      [matRippleCentered]=\"isIconButton\"\n      [matRippleTrigger]=\"_getHostElement()\"></span>\n<span class=\"mat-button-focus-overlay\"></span>\n",
            inputs: ['disabled', 'disableRipple', 'color'],
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush,
            styles: [".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"]
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
          }, {
            type: _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_2__["FocusMonitor"]
          }, {
            type: String,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_3__["ANIMATION_MODULE_TYPE"]]
            }]
          }];
        }, {
          ripple: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"],
            args: [_angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatRipple"]]
          }]
        });
      })();
      /**
       * Material design anchor button.
       */


      var MatAnchor = /*#__PURE__*/function (_MatButton) {
        _inherits2(MatAnchor, _MatButton);

        var _super187 = _createSuper2(MatAnchor);

        function MatAnchor(focusMonitor, elementRef, animationMode) {
          _classCallCheck2(this, MatAnchor);

          return _super187.call(this, elementRef, focusMonitor, animationMode);
        }

        _createClass2(MatAnchor, [{
          key: "_haltDisabledEvents",
          value: function _haltDisabledEvents(event) {
            // A disabled button shouldn't apply any actions
            if (this.disabled) {
              event.preventDefault();
              event.stopImmediatePropagation();
            }
          }
        }]);

        return MatAnchor;
      }(MatButton);

      MatAnchor.ɵfac = function MatAnchor_Factory(t) {
        return new (t || MatAnchor)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_2__["FocusMonitor"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_3__["ANIMATION_MODULE_TYPE"], 8));
      };

      MatAnchor.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
        type: MatAnchor,
        selectors: [["a", "mat-button", ""], ["a", "mat-raised-button", ""], ["a", "mat-icon-button", ""], ["a", "mat-fab", ""], ["a", "mat-mini-fab", ""], ["a", "mat-stroked-button", ""], ["a", "mat-flat-button", ""]],
        hostAttrs: [1, "mat-focus-indicator"],
        hostVars: 7,
        hostBindings: function MatAnchor_HostBindings(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function MatAnchor_click_HostBindingHandler($event) {
              return ctx._haltDisabledEvents($event);
            });
          }

          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("tabindex", ctx.disabled ? -1 : ctx.tabIndex || 0)("disabled", ctx.disabled || null)("aria-disabled", ctx.disabled.toString());

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("_mat-animation-noopable", ctx._animationMode === "NoopAnimations")("mat-button-disabled", ctx.disabled);
          }
        },
        inputs: {
          disabled: "disabled",
          disableRipple: "disableRipple",
          color: "color",
          tabIndex: "tabIndex"
        },
        exportAs: ["matButton", "matAnchor"],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]],
        attrs: _c0,
        ngContentSelectors: _c1,
        decls: 4,
        vars: 5,
        consts: [[1, "mat-button-wrapper"], ["matRipple", "", 1, "mat-button-ripple", 3, "matRippleDisabled", "matRippleCentered", "matRippleTrigger"], [1, "mat-button-focus-overlay"]],
        template: function MatAnchor_Template(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojectionDef"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 0);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojection"](1);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "span", 1);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "span", 2);
          }

          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("mat-button-ripple-round", ctx.isRoundButton || ctx.isIconButton);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("matRippleDisabled", ctx._isRippleDisabled())("matRippleCentered", ctx.isIconButton)("matRippleTrigger", ctx._getHostElement());
          }
        },
        directives: [_angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatRipple"]],
        styles: [_c2],
        encapsulation: 2,
        changeDetection: 0
      });

      MatAnchor.ctorParameters = function () {
        return [{
          type: _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_2__["FocusMonitor"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
        }, {
          type: String,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_3__["ANIMATION_MODULE_TYPE"]]
          }]
        }];
      };

      MatAnchor.propDecorators = {
        tabIndex: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatAnchor, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
          args: [{
            selector: "a[mat-button], a[mat-raised-button], a[mat-icon-button], a[mat-fab],\n             a[mat-mini-fab], a[mat-stroked-button], a[mat-flat-button]",
            exportAs: 'matButton, matAnchor',
            host: {
              // Note that we ignore the user-specified tabindex when it's disabled for
              // consistency with the `mat-button` applied on native buttons where even
              // though they have an index, they're not tabbable.
              '[attr.tabindex]': 'disabled ? -1 : (tabIndex || 0)',
              '[attr.disabled]': 'disabled || null',
              '[attr.aria-disabled]': 'disabled.toString()',
              '(click)': '_haltDisabledEvents($event)',
              '[class._mat-animation-noopable]': '_animationMode === "NoopAnimations"',
              '[class.mat-button-disabled]': 'disabled',
              'class': 'mat-focus-indicator'
            },
            inputs: ['disabled', 'disableRipple', 'color'],
            template: "<span class=\"mat-button-wrapper\"><ng-content></ng-content></span>\n<span matRipple class=\"mat-button-ripple\"\n      [class.mat-button-ripple-round]=\"isRoundButton || isIconButton\"\n      [matRippleDisabled]=\"_isRippleDisabled()\"\n      [matRippleCentered]=\"isIconButton\"\n      [matRippleTrigger]=\"_getHostElement()\"></span>\n<span class=\"mat-button-focus-overlay\"></span>\n",
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush,
            styles: [".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"]
          }]
        }], function () {
          return [{
            type: _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_2__["FocusMonitor"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
          }, {
            type: String,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_3__["ANIMATION_MODULE_TYPE"]]
            }]
          }];
        }, {
          tabIndex: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }]
        });
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var MatButtonModule = function MatButtonModule() {
        _classCallCheck2(this, MatButtonModule);
      };

      MatButtonModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
        type: MatButtonModule
      });
      MatButtonModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
        factory: function MatButtonModule_Factory(t) {
          return new (t || MatButtonModule)();
        },
        imports: [[_angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatRippleModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatCommonModule"]], _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatCommonModule"]]
      });

      (function () {
        (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](MatButtonModule, {
          declarations: function declarations() {
            return [MatButton, MatAnchor];
          },
          imports: function imports() {
            return [_angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatRippleModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatCommonModule"]];
          },
          exports: function exports() {
            return [MatButton, MatAnchor, _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatCommonModule"]];
          }
        });
      })();
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatButtonModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
          args: [{
            imports: [_angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatRippleModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatCommonModule"]],
            exports: [MatButton, MatAnchor, _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatCommonModule"]],
            declarations: [MatButton, MatAnchor]
          }]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Generated bundle index. Do not edit.
       */
      //# sourceMappingURL=button.js.map

      /***/

    },

    /***/
    "Dzi0": function Dzi0(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Tagalog (Philippines) [tl-ph]
      //! author : Dan Hagman : https://github.com/hagmandan
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var tlPh = moment.defineLocale('tl-ph', {
          months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split('_'),
          monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),
          weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split('_'),
          weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),
          weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'MM/D/YYYY',
            LL: 'MMMM D, YYYY',
            LLL: 'MMMM D, YYYY HH:mm',
            LLLL: 'dddd, MMMM DD, YYYY HH:mm'
          },
          calendar: {
            sameDay: 'LT [ngayong araw]',
            nextDay: '[Bukas ng] LT',
            nextWeek: 'LT [sa susunod na] dddd',
            lastDay: 'LT [kahapon]',
            lastWeek: 'LT [noong nakaraang] dddd',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'sa loob ng %s',
            past: '%s ang nakalipas',
            s: 'ilang segundo',
            ss: '%d segundo',
            m: 'isang minuto',
            mm: '%d minuto',
            h: 'isang oras',
            hh: '%d oras',
            d: 'isang araw',
            dd: '%d araw',
            M: 'isang buwan',
            MM: '%d buwan',
            y: 'isang taon',
            yy: '%d taon'
          },
          dayOfMonthOrdinalParse: /\d{1,2}/,
          ordinal: function ordinal(number) {
            return number;
          },
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return tlPh;
      });
      /***/

    },

    /***/
    "E+lV": function ELV(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Serbian Cyrillic [sr-cyrl]
      //! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
      //! author : Stefan Crnjaković <stefan@hotmail.rs> : https://github.com/crnjakovic
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var translator = {
          words: {
            //Different grammatical cases
            ss: ['секунда', 'секунде', 'секунди'],
            m: ['један минут', 'једне минуте'],
            mm: ['минут', 'минуте', 'минута'],
            h: ['један сат', 'једног сата'],
            hh: ['сат', 'сата', 'сати'],
            dd: ['дан', 'дана', 'дана'],
            MM: ['месец', 'месеца', 'месеци'],
            yy: ['година', 'године', 'година']
          },
          correctGrammaticalCase: function correctGrammaticalCase(number, wordKey) {
            return number === 1 ? wordKey[0] : number >= 2 && number <= 4 ? wordKey[1] : wordKey[2];
          },
          translate: function translate(number, withoutSuffix, key) {
            var wordKey = translator.words[key];

            if (key.length === 1) {
              return withoutSuffix ? wordKey[0] : wordKey[1];
            } else {
              return number + ' ' + translator.correctGrammaticalCase(number, wordKey);
            }
          }
        };
        var srCyrl = moment.defineLocale('sr-cyrl', {
          months: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split('_'),
          monthsShort: 'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split('_'),
          monthsParseExact: true,
          weekdays: 'недеља_понедељак_уторак_среда_четвртак_петак_субота'.split('_'),
          weekdaysShort: 'нед._пон._уто._сре._чет._пет._суб.'.split('_'),
          weekdaysMin: 'не_по_ут_ср_че_пе_су'.split('_'),
          weekdaysParseExact: true,
          longDateFormat: {
            LT: 'H:mm',
            LTS: 'H:mm:ss',
            L: 'D. M. YYYY.',
            LL: 'D. MMMM YYYY.',
            LLL: 'D. MMMM YYYY. H:mm',
            LLLL: 'dddd, D. MMMM YYYY. H:mm'
          },
          calendar: {
            sameDay: '[данас у] LT',
            nextDay: '[сутра у] LT',
            nextWeek: function nextWeek() {
              switch (this.day()) {
                case 0:
                  return '[у] [недељу] [у] LT';

                case 3:
                  return '[у] [среду] [у] LT';

                case 6:
                  return '[у] [суботу] [у] LT';

                case 1:
                case 2:
                case 4:
                case 5:
                  return '[у] dddd [у] LT';
              }
            },
            lastDay: '[јуче у] LT',
            lastWeek: function lastWeek() {
              var lastWeekDays = ['[прошле] [недеље] [у] LT', '[прошлог] [понедељка] [у] LT', '[прошлог] [уторка] [у] LT', '[прошле] [среде] [у] LT', '[прошлог] [четвртка] [у] LT', '[прошлог] [петка] [у] LT', '[прошле] [суботе] [у] LT'];
              return lastWeekDays[this.day()];
            },
            sameElse: 'L'
          },
          relativeTime: {
            future: 'за %s',
            past: 'пре %s',
            s: 'неколико секунди',
            ss: translator.translate,
            m: translator.translate,
            mm: translator.translate,
            h: translator.translate,
            hh: translator.translate,
            d: 'дан',
            dd: translator.translate,
            M: 'месец',
            MM: translator.translate,
            y: 'годину',
            yy: translator.translate
          },
          dayOfMonthOrdinalParse: /\d{1,2}\./,
          ordinal: '%d.',
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 7 // The week that contains Jan 1st is the first week of the year.

          }
        });
        return srCyrl;
      });
      /***/

    },

    /***/
    "E4JC": function E4JC(module, exports, __webpack_require__) {
      ;

      (function (root, factory, undef) {
        if (true) {
          // CommonJS
          module.exports = exports = factory(__webpack_require__(
          /*! ./core */
          "Ib8C"), __webpack_require__(
          /*! ./enc-base64 */
          "ETIr"), __webpack_require__(
          /*! ./md5 */
          "cv67"), __webpack_require__(
          /*! ./evpkdf */
          "K3mO"), __webpack_require__(
          /*! ./cipher-core */
          "OLod"));
        } else {}
      })(this, function (CryptoJS) {
        (function () {
          // Shortcuts
          var C = CryptoJS;
          var C_lib = C.lib;
          var StreamCipher = C_lib.StreamCipher;
          var C_algo = C.algo; // Reusable objects

          var S = [];
          var C_ = [];
          var G = [];
          /**
           * Rabbit stream cipher algorithm
           */

          var Rabbit = C_algo.Rabbit = StreamCipher.extend({
            _doReset: function _doReset() {
              // Shortcuts
              var K = this._key.words;
              var iv = this.cfg.iv; // Swap endian

              for (var i = 0; i < 4; i++) {
                K[i] = (K[i] << 8 | K[i] >>> 24) & 0x00ff00ff | (K[i] << 24 | K[i] >>> 8) & 0xff00ff00;
              } // Generate initial state values


              var X = this._X = [K[0], K[3] << 16 | K[2] >>> 16, K[1], K[0] << 16 | K[3] >>> 16, K[2], K[1] << 16 | K[0] >>> 16, K[3], K[2] << 16 | K[1] >>> 16]; // Generate initial counter values

              var C = this._C = [K[2] << 16 | K[2] >>> 16, K[0] & 0xffff0000 | K[1] & 0x0000ffff, K[3] << 16 | K[3] >>> 16, K[1] & 0xffff0000 | K[2] & 0x0000ffff, K[0] << 16 | K[0] >>> 16, K[2] & 0xffff0000 | K[3] & 0x0000ffff, K[1] << 16 | K[1] >>> 16, K[3] & 0xffff0000 | K[0] & 0x0000ffff]; // Carry bit

              this._b = 0; // Iterate the system four times

              for (var i = 0; i < 4; i++) {
                nextState.call(this);
              } // Modify the counters


              for (var i = 0; i < 8; i++) {
                C[i] ^= X[i + 4 & 7];
              } // IV setup


              if (iv) {
                // Shortcuts
                var IV = iv.words;
                var IV_0 = IV[0];
                var IV_1 = IV[1]; // Generate four subvectors

                var i0 = (IV_0 << 8 | IV_0 >>> 24) & 0x00ff00ff | (IV_0 << 24 | IV_0 >>> 8) & 0xff00ff00;
                var i2 = (IV_1 << 8 | IV_1 >>> 24) & 0x00ff00ff | (IV_1 << 24 | IV_1 >>> 8) & 0xff00ff00;
                var i1 = i0 >>> 16 | i2 & 0xffff0000;
                var i3 = i2 << 16 | i0 & 0x0000ffff; // Modify counter values

                C[0] ^= i0;
                C[1] ^= i1;
                C[2] ^= i2;
                C[3] ^= i3;
                C[4] ^= i0;
                C[5] ^= i1;
                C[6] ^= i2;
                C[7] ^= i3; // Iterate the system four times

                for (var i = 0; i < 4; i++) {
                  nextState.call(this);
                }
              }
            },
            _doProcessBlock: function _doProcessBlock(M, offset) {
              // Shortcut
              var X = this._X; // Iterate the system

              nextState.call(this); // Generate four keystream words

              S[0] = X[0] ^ X[5] >>> 16 ^ X[3] << 16;
              S[1] = X[2] ^ X[7] >>> 16 ^ X[5] << 16;
              S[2] = X[4] ^ X[1] >>> 16 ^ X[7] << 16;
              S[3] = X[6] ^ X[3] >>> 16 ^ X[1] << 16;

              for (var i = 0; i < 4; i++) {
                // Swap endian
                S[i] = (S[i] << 8 | S[i] >>> 24) & 0x00ff00ff | (S[i] << 24 | S[i] >>> 8) & 0xff00ff00; // Encrypt

                M[offset + i] ^= S[i];
              }
            },
            blockSize: 128 / 32,
            ivSize: 64 / 32
          });

          function nextState() {
            // Shortcuts
            var X = this._X;
            var C = this._C; // Save old counter values

            for (var i = 0; i < 8; i++) {
              C_[i] = C[i];
            } // Calculate new counter values


            C[0] = C[0] + 0x4d34d34d + this._b | 0;
            C[1] = C[1] + 0xd34d34d3 + (C[0] >>> 0 < C_[0] >>> 0 ? 1 : 0) | 0;
            C[2] = C[2] + 0x34d34d34 + (C[1] >>> 0 < C_[1] >>> 0 ? 1 : 0) | 0;
            C[3] = C[3] + 0x4d34d34d + (C[2] >>> 0 < C_[2] >>> 0 ? 1 : 0) | 0;
            C[4] = C[4] + 0xd34d34d3 + (C[3] >>> 0 < C_[3] >>> 0 ? 1 : 0) | 0;
            C[5] = C[5] + 0x34d34d34 + (C[4] >>> 0 < C_[4] >>> 0 ? 1 : 0) | 0;
            C[6] = C[6] + 0x4d34d34d + (C[5] >>> 0 < C_[5] >>> 0 ? 1 : 0) | 0;
            C[7] = C[7] + 0xd34d34d3 + (C[6] >>> 0 < C_[6] >>> 0 ? 1 : 0) | 0;
            this._b = C[7] >>> 0 < C_[7] >>> 0 ? 1 : 0; // Calculate the g-values

            for (var i = 0; i < 8; i++) {
              var gx = X[i] + C[i]; // Construct high and low argument for squaring

              var ga = gx & 0xffff;
              var gb = gx >>> 16; // Calculate high and low result of squaring

              var gh = ((ga * ga >>> 17) + ga * gb >>> 15) + gb * gb;
              var gl = ((gx & 0xffff0000) * gx | 0) + ((gx & 0x0000ffff) * gx | 0); // High XOR low

              G[i] = gh ^ gl;
            } // Calculate new state values


            X[0] = G[0] + (G[7] << 16 | G[7] >>> 16) + (G[6] << 16 | G[6] >>> 16) | 0;
            X[1] = G[1] + (G[0] << 8 | G[0] >>> 24) + G[7] | 0;
            X[2] = G[2] + (G[1] << 16 | G[1] >>> 16) + (G[0] << 16 | G[0] >>> 16) | 0;
            X[3] = G[3] + (G[2] << 8 | G[2] >>> 24) + G[1] | 0;
            X[4] = G[4] + (G[3] << 16 | G[3] >>> 16) + (G[2] << 16 | G[2] >>> 16) | 0;
            X[5] = G[5] + (G[4] << 8 | G[4] >>> 24) + G[3] | 0;
            X[6] = G[6] + (G[5] << 16 | G[5] >>> 16) + (G[4] << 16 | G[4] >>> 16) | 0;
            X[7] = G[7] + (G[6] << 8 | G[6] >>> 24) + G[5] | 0;
          }
          /**
           * Shortcut functions to the cipher's object interface.
           *
           * @example
           *
           *     var ciphertext = CryptoJS.Rabbit.encrypt(message, key, cfg);
           *     var plaintext  = CryptoJS.Rabbit.decrypt(ciphertext, key, cfg);
           */


          C.Rabbit = StreamCipher._createHelper(Rabbit);
        })();

        return CryptoJS.Rabbit;
      });
      /***/

    },

    /***/
    "ELcG": function ELcG(module, exports, __webpack_require__) {
      ;

      (function (root, factory) {
        if (true) {
          // CommonJS
          module.exports = exports = factory(__webpack_require__(
          /*! ./core */
          "Ib8C"));
        } else {}
      })(this, function (CryptoJS) {
        /** @preserve
        (c) 2012 by Cédric Mesnil. All rights reserved.
        	Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
        	    - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
            - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
        	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
        */
        (function (Math) {
          // Shortcuts
          var C = CryptoJS;
          var C_lib = C.lib;
          var WordArray = C_lib.WordArray;
          var Hasher = C_lib.Hasher;
          var C_algo = C.algo; // Constants table

          var _zl = WordArray.create([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8, 3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12, 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2, 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13]);

          var _zr = WordArray.create([5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12, 6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2, 15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13, 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, 14, 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11]);

          var _sl = WordArray.create([11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8, 7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12, 11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5, 11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, 5, 12, 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6]);

          var _sr = WordArray.create([8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6, 9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11, 9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5, 15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, 5, 15, 8, 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11]);

          var _hl = WordArray.create([0x00000000, 0x5A827999, 0x6ED9EBA1, 0x8F1BBCDC, 0xA953FD4E]);

          var _hr = WordArray.create([0x50A28BE6, 0x5C4DD124, 0x6D703EF3, 0x7A6D76E9, 0x00000000]);
          /**
           * RIPEMD160 hash algorithm.
           */


          var RIPEMD160 = C_algo.RIPEMD160 = Hasher.extend({
            _doReset: function _doReset() {
              this._hash = WordArray.create([0x67452301, 0xEFCDAB89, 0x98BADCFE, 0x10325476, 0xC3D2E1F0]);
            },
            _doProcessBlock: function _doProcessBlock(M, offset) {
              // Swap endian
              for (var i = 0; i < 16; i++) {
                // Shortcuts
                var offset_i = offset + i;
                var M_offset_i = M[offset_i]; // Swap

                M[offset_i] = (M_offset_i << 8 | M_offset_i >>> 24) & 0x00ff00ff | (M_offset_i << 24 | M_offset_i >>> 8) & 0xff00ff00;
              } // Shortcut


              var H = this._hash.words;
              var hl = _hl.words;
              var hr = _hr.words;
              var zl = _zl.words;
              var zr = _zr.words;
              var sl = _sl.words;
              var sr = _sr.words; // Working variables

              var al, bl, cl, dl, el;
              var ar, br, cr, dr, er;
              ar = al = H[0];
              br = bl = H[1];
              cr = cl = H[2];
              dr = dl = H[3];
              er = el = H[4]; // Computation

              var t;

              for (var i = 0; i < 80; i += 1) {
                t = al + M[offset + zl[i]] | 0;

                if (i < 16) {
                  t += f1(bl, cl, dl) + hl[0];
                } else if (i < 32) {
                  t += f2(bl, cl, dl) + hl[1];
                } else if (i < 48) {
                  t += f3(bl, cl, dl) + hl[2];
                } else if (i < 64) {
                  t += f4(bl, cl, dl) + hl[3];
                } else {
                  // if (i<80) {
                  t += f5(bl, cl, dl) + hl[4];
                }

                t = t | 0;
                t = rotl(t, sl[i]);
                t = t + el | 0;
                al = el;
                el = dl;
                dl = rotl(cl, 10);
                cl = bl;
                bl = t;
                t = ar + M[offset + zr[i]] | 0;

                if (i < 16) {
                  t += f5(br, cr, dr) + hr[0];
                } else if (i < 32) {
                  t += f4(br, cr, dr) + hr[1];
                } else if (i < 48) {
                  t += f3(br, cr, dr) + hr[2];
                } else if (i < 64) {
                  t += f2(br, cr, dr) + hr[3];
                } else {
                  // if (i<80) {
                  t += f1(br, cr, dr) + hr[4];
                }

                t = t | 0;
                t = rotl(t, sr[i]);
                t = t + er | 0;
                ar = er;
                er = dr;
                dr = rotl(cr, 10);
                cr = br;
                br = t;
              } // Intermediate hash value


              t = H[1] + cl + dr | 0;
              H[1] = H[2] + dl + er | 0;
              H[2] = H[3] + el + ar | 0;
              H[3] = H[4] + al + br | 0;
              H[4] = H[0] + bl + cr | 0;
              H[0] = t;
            },
            _doFinalize: function _doFinalize() {
              // Shortcuts
              var data = this._data;
              var dataWords = data.words;
              var nBitsTotal = this._nDataBytes * 8;
              var nBitsLeft = data.sigBytes * 8; // Add padding

              dataWords[nBitsLeft >>> 5] |= 0x80 << 24 - nBitsLeft % 32;
              dataWords[(nBitsLeft + 64 >>> 9 << 4) + 14] = (nBitsTotal << 8 | nBitsTotal >>> 24) & 0x00ff00ff | (nBitsTotal << 24 | nBitsTotal >>> 8) & 0xff00ff00;
              data.sigBytes = (dataWords.length + 1) * 4; // Hash final blocks

              this._process(); // Shortcuts


              var hash = this._hash;
              var H = hash.words; // Swap endian

              for (var i = 0; i < 5; i++) {
                // Shortcut
                var H_i = H[i]; // Swap

                H[i] = (H_i << 8 | H_i >>> 24) & 0x00ff00ff | (H_i << 24 | H_i >>> 8) & 0xff00ff00;
              } // Return final computed hash


              return hash;
            },
            clone: function clone() {
              var clone = Hasher.clone.call(this);
              clone._hash = this._hash.clone();
              return clone;
            }
          });

          function f1(x, y, z) {
            return x ^ y ^ z;
          }

          function f2(x, y, z) {
            return x & y | ~x & z;
          }

          function f3(x, y, z) {
            return (x | ~y) ^ z;
          }

          function f4(x, y, z) {
            return x & z | y & ~z;
          }

          function f5(x, y, z) {
            return x ^ (y | ~z);
          }

          function rotl(x, n) {
            return x << n | x >>> 32 - n;
          }
          /**
           * Shortcut function to the hasher's object interface.
           *
           * @param {WordArray|string} message The message to hash.
           *
           * @return {WordArray} The hash.
           *
           * @static
           *
           * @example
           *
           *     var hash = CryptoJS.RIPEMD160('message');
           *     var hash = CryptoJS.RIPEMD160(wordArray);
           */


          C.RIPEMD160 = Hasher._createHelper(RIPEMD160);
          /**
           * Shortcut function to the HMAC's object interface.
           *
           * @param {WordArray|string} message The message to hash.
           * @param {WordArray|string} key The secret key.
           *
           * @return {WordArray} The HMAC.
           *
           * @static
           *
           * @example
           *
           *     var hmac = CryptoJS.HmacRIPEMD160(message, key);
           */

          C.HmacRIPEMD160 = Hasher._createHmacHelper(RIPEMD160);
        })(Math);

        return CryptoJS.RIPEMD160;
      });
      /***/

    },

    /***/
    "EOgW": function EOgW(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Thai [th]
      //! author : Kridsada Thanabulpong : https://github.com/sirn
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var th = moment.defineLocale('th', {
          months: 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split('_'),
          monthsShort: 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split('_'),
          monthsParseExact: true,
          weekdays: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'),
          weekdaysShort: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'),
          // yes, three characters difference
          weekdaysMin: 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'),
          weekdaysParseExact: true,
          longDateFormat: {
            LT: 'H:mm',
            LTS: 'H:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY เวลา H:mm',
            LLLL: 'วันddddที่ D MMMM YYYY เวลา H:mm'
          },
          meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/,
          isPM: function isPM(input) {
            return input === 'หลังเที่ยง';
          },
          meridiem: function meridiem(hour, minute, isLower) {
            if (hour < 12) {
              return 'ก่อนเที่ยง';
            } else {
              return 'หลังเที่ยง';
            }
          },
          calendar: {
            sameDay: '[วันนี้ เวลา] LT',
            nextDay: '[พรุ่งนี้ เวลา] LT',
            nextWeek: 'dddd[หน้า เวลา] LT',
            lastDay: '[เมื่อวานนี้ เวลา] LT',
            lastWeek: '[วัน]dddd[ที่แล้ว เวลา] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'อีก %s',
            past: '%sที่แล้ว',
            s: 'ไม่กี่วินาที',
            ss: '%d วินาที',
            m: '1 นาที',
            mm: '%d นาที',
            h: '1 ชั่วโมง',
            hh: '%d ชั่วโมง',
            d: '1 วัน',
            dd: '%d วัน',
            w: '1 สัปดาห์',
            ww: '%d สัปดาห์',
            M: '1 เดือน',
            MM: '%d เดือน',
            y: '1 ปี',
            yy: '%d ปี'
          }
        });
        return th;
      });
      /***/

    },

    /***/
    "EQ5u": function EQ5u(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ConnectableObservable", function () {
        return ConnectableObservable;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "connectableObservableDescriptor", function () {
        return connectableObservableDescriptor;
      });
      /* harmony import */


      var _Subject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Subject */
      "XNiG");
      /* harmony import */


      var _Observable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../Observable */
      "HDdC");
      /* harmony import */


      var _Subscriber__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../Subscriber */
      "7o/Q");
      /* harmony import */


      var _Subscription__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../Subscription */
      "quSY");
      /* harmony import */


      var _operators_refCount__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! ../operators/refCount */
      "x+ZX");

      var ConnectableObservable = /*#__PURE__*/function (_Observable__WEBPACK_) {
        _inherits2(ConnectableObservable, _Observable__WEBPACK_);

        var _super188 = _createSuper2(ConnectableObservable);

        function ConnectableObservable(source, subjectFactory) {
          var _this465;

          _classCallCheck2(this, ConnectableObservable);

          _this465 = _super188.call(this);
          _this465.source = source;
          _this465.subjectFactory = subjectFactory;
          _this465._refCount = 0;
          _this465._isComplete = false;
          return _this465;
        }

        _createClass2(ConnectableObservable, [{
          key: "_subscribe",
          value: function _subscribe(subscriber) {
            return this.getSubject().subscribe(subscriber);
          }
        }, {
          key: "getSubject",
          value: function getSubject() {
            var subject = this._subject;

            if (!subject || subject.isStopped) {
              this._subject = this.subjectFactory();
            }

            return this._subject;
          }
        }, {
          key: "connect",
          value: function connect() {
            var connection = this._connection;

            if (!connection) {
              this._isComplete = false;
              connection = this._connection = new _Subscription__WEBPACK_IMPORTED_MODULE_3__["Subscription"]();
              connection.add(this.source.subscribe(new ConnectableSubscriber(this.getSubject(), this)));

              if (connection.closed) {
                this._connection = null;
                connection = _Subscription__WEBPACK_IMPORTED_MODULE_3__["Subscription"].EMPTY;
              }
            }

            return connection;
          }
        }, {
          key: "refCount",
          value: function refCount() {
            return Object(_operators_refCount__WEBPACK_IMPORTED_MODULE_4__["refCount"])()(this);
          }
        }]);

        return ConnectableObservable;
      }(_Observable__WEBPACK_IMPORTED_MODULE_1__["Observable"]);

      var connectableObservableDescriptor = function () {
        var connectableProto = ConnectableObservable.prototype;
        return {
          operator: {
            value: null
          },
          _refCount: {
            value: 0,
            writable: true
          },
          _subject: {
            value: null,
            writable: true
          },
          _connection: {
            value: null,
            writable: true
          },
          _subscribe: {
            value: connectableProto._subscribe
          },
          _isComplete: {
            value: connectableProto._isComplete,
            writable: true
          },
          getSubject: {
            value: connectableProto.getSubject
          },
          connect: {
            value: connectableProto.connect
          },
          refCount: {
            value: connectableProto.refCount
          }
        };
      }();

      var ConnectableSubscriber = /*#__PURE__*/function (_Subject__WEBPACK_IMP2) {
        _inherits2(ConnectableSubscriber, _Subject__WEBPACK_IMP2);

        var _super189 = _createSuper2(ConnectableSubscriber);

        function ConnectableSubscriber(destination, connectable) {
          var _this466;

          _classCallCheck2(this, ConnectableSubscriber);

          _this466 = _super189.call(this, destination);
          _this466.connectable = connectable;
          return _this466;
        }

        _createClass2(ConnectableSubscriber, [{
          key: "_error",
          value: function _error(err) {
            this._unsubscribe();

            _get2(_getPrototypeOf2(ConnectableSubscriber.prototype), "_error", this).call(this, err);
          }
        }, {
          key: "_complete",
          value: function _complete() {
            this.connectable._isComplete = true;

            this._unsubscribe();

            _get2(_getPrototypeOf2(ConnectableSubscriber.prototype), "_complete", this).call(this);
          }
        }, {
          key: "_unsubscribe",
          value: function _unsubscribe() {
            var connectable = this.connectable;

            if (connectable) {
              this.connectable = null;
              var connection = connectable._connection;
              connectable._refCount = 0;
              connectable._subject = null;
              connectable._connection = null;

              if (connection) {
                connection.unsubscribe();
              }
            }
          }
        }]);

        return ConnectableSubscriber;
      }(_Subject__WEBPACK_IMPORTED_MODULE_0__["SubjectSubscriber"]);

      var RefCountOperator = /*#__PURE__*/function () {
        function RefCountOperator(connectable) {
          _classCallCheck2(this, RefCountOperator);

          this.connectable = connectable;
        }

        _createClass2(RefCountOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            var connectable = this.connectable;
            connectable._refCount++;
            var refCounter = new RefCountSubscriber(subscriber, connectable);
            var subscription = source.subscribe(refCounter);

            if (!refCounter.closed) {
              refCounter.connection = connectable.connect();
            }

            return subscription;
          }
        }]);

        return RefCountOperator;
      }();

      var RefCountSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_13) {
        _inherits2(RefCountSubscriber, _Subscriber__WEBPACK_13);

        var _super190 = _createSuper2(RefCountSubscriber);

        function RefCountSubscriber(destination, connectable) {
          var _this467;

          _classCallCheck2(this, RefCountSubscriber);

          _this467 = _super190.call(this, destination);
          _this467.connectable = connectable;
          return _this467;
        }

        _createClass2(RefCountSubscriber, [{
          key: "_unsubscribe",
          value: function _unsubscribe() {
            var connectable = this.connectable;

            if (!connectable) {
              this.connection = null;
              return;
            }

            this.connectable = null;
            var refCount = connectable._refCount;

            if (refCount <= 0) {
              this.connection = null;
              return;
            }

            connectable._refCount = refCount - 1;

            if (refCount > 1) {
              this.connection = null;
              return;
            }

            var connection = this.connection;
            var sharedConnection = connectable._connection;
            this.connection = null;

            if (sharedConnection && (!connection || sharedConnection === connection)) {
              sharedConnection.unsubscribe();
            }
          }
        }]);

        return RefCountSubscriber;
      }(_Subscriber__WEBPACK_IMPORTED_MODULE_2__["Subscriber"]); //# sourceMappingURL=ConnectableObservable.js.map

      /***/

    },

    /***/
    "ETIr": function ETIr(module, exports, __webpack_require__) {
      ;

      (function (root, factory) {
        if (true) {
          // CommonJS
          module.exports = exports = factory(__webpack_require__(
          /*! ./core */
          "Ib8C"));
        } else {}
      })(this, function (CryptoJS) {
        (function () {
          // Shortcuts
          var C = CryptoJS;
          var C_lib = C.lib;
          var WordArray = C_lib.WordArray;
          var C_enc = C.enc;
          /**
           * Base64 encoding strategy.
           */

          var Base64 = C_enc.Base64 = {
            /**
             * Converts a word array to a Base64 string.
             *
             * @param {WordArray} wordArray The word array.
             *
             * @return {string} The Base64 string.
             *
             * @static
             *
             * @example
             *
             *     var base64String = CryptoJS.enc.Base64.stringify(wordArray);
             */
            stringify: function stringify(wordArray) {
              // Shortcuts
              var words = wordArray.words;
              var sigBytes = wordArray.sigBytes;
              var map = this._map; // Clamp excess bits

              wordArray.clamp(); // Convert

              var base64Chars = [];

              for (var i = 0; i < sigBytes; i += 3) {
                var byte1 = words[i >>> 2] >>> 24 - i % 4 * 8 & 0xff;
                var byte2 = words[i + 1 >>> 2] >>> 24 - (i + 1) % 4 * 8 & 0xff;
                var byte3 = words[i + 2 >>> 2] >>> 24 - (i + 2) % 4 * 8 & 0xff;
                var triplet = byte1 << 16 | byte2 << 8 | byte3;

                for (var j = 0; j < 4 && i + j * 0.75 < sigBytes; j++) {
                  base64Chars.push(map.charAt(triplet >>> 6 * (3 - j) & 0x3f));
                }
              } // Add padding


              var paddingChar = map.charAt(64);

              if (paddingChar) {
                while (base64Chars.length % 4) {
                  base64Chars.push(paddingChar);
                }
              }

              return base64Chars.join('');
            },

            /**
             * Converts a Base64 string to a word array.
             *
             * @param {string} base64Str The Base64 string.
             *
             * @return {WordArray} The word array.
             *
             * @static
             *
             * @example
             *
             *     var wordArray = CryptoJS.enc.Base64.parse(base64String);
             */
            parse: function parse(base64Str) {
              // Shortcuts
              var base64StrLength = base64Str.length;
              var map = this._map;
              var reverseMap = this._reverseMap;

              if (!reverseMap) {
                reverseMap = this._reverseMap = [];

                for (var j = 0; j < map.length; j++) {
                  reverseMap[map.charCodeAt(j)] = j;
                }
              } // Ignore padding


              var paddingChar = map.charAt(64);

              if (paddingChar) {
                var paddingIndex = base64Str.indexOf(paddingChar);

                if (paddingIndex !== -1) {
                  base64StrLength = paddingIndex;
                }
              } // Convert


              return parseLoop(base64Str, base64StrLength, reverseMap);
            },
            _map: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='
          };

          function parseLoop(base64Str, base64StrLength, reverseMap) {
            var words = [];
            var nBytes = 0;

            for (var i = 0; i < base64StrLength; i++) {
              if (i % 4) {
                var bits1 = reverseMap[base64Str.charCodeAt(i - 1)] << i % 4 * 2;
                var bits2 = reverseMap[base64Str.charCodeAt(i)] >>> 6 - i % 4 * 2;
                var bitsCombined = bits1 | bits2;
                words[nBytes >>> 2] |= bitsCombined << 24 - nBytes % 4 * 8;
                nBytes++;
              }
            }

            return WordArray.create(words, nBytes);
          }
        })();

        return CryptoJS.enc.Base64;
      });
      /***/

    },

    /***/
    "EY2u": function EY2u(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "EMPTY", function () {
        return EMPTY;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "empty", function () {
        return empty;
      });
      /* harmony import */


      var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Observable */
      "HDdC");

      var EMPTY = new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](function (subscriber) {
        return subscriber.complete();
      });

      function empty(scheduler) {
        return scheduler ? emptyScheduled(scheduler) : EMPTY;
      }

      function emptyScheduled(scheduler) {
        return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](function (subscriber) {
          return scheduler.schedule(function () {
            return subscriber.complete();
          });
        });
      } //# sourceMappingURL=empty.js.map

      /***/

    },

    /***/
    "EhJz": function EhJz(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return isAfter;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name isAfter
       * @category Common Helpers
       * @summary Is the first date after the second one?
       *
       * @description
       * Is the first date after the second one?
       *
       * ### 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 {Date|Number} date - the date that should be after the other one to return true
       * @param {Date|Number} dateToCompare - the date to compare with
       * @returns {Boolean} the first date is after the second date
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // Is 10 July 1989 after 11 February 1987?
       * var result = isAfter(new Date(1989, 6, 10), new Date(1987, 1, 11))
       * //=> true
       */


      function isAfter(dirtyDate, dirtyDateToCompare) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(2, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);
        var dateToCompare = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateToCompare);
        return date.getTime() > dateToCompare.getTime();
      }
      /***/

    },

    /***/
    "EkTD": function EkTD(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return eachWeekendOfYear;
      });
      /* harmony import */


      var _eachWeekendOfInterval_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../eachWeekendOfInterval/index.js */
      "YdWM");
      /* harmony import */


      var _startOfYear_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../startOfYear/index.js */
      "1unF");
      /* harmony import */


      var _endOfYear_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../endOfYear/index.js */
      "Gqtg");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name eachWeekendOfYear
       * @category Year Helpers
       * @summary List all the Saturdays and Sundays in the year.
       *
       * @description
       * Get all the Saturdays and Sundays in the year.
       *
       * @param {Date|Number} date - the given year
       * @returns {Date[]} an array containing all the Saturdays and Sundays
       * @throws {TypeError} 1 argument required
       * @throws {RangeError} The passed date is invalid
       *
       * @example
       * // Lists all Saturdays and Sundays in the year
       * var result = eachWeekendOfYear(new Date(2020, 1, 1))
       * //=> [
       * //   Sat Jan 03 2020 00:00:00,
       * //   Sun Jan 04 2020 00:00:00,
       * //   ...
       * //   Sun Dec 27 2020 00:00:00
       * // ]
       * ]
       */


      function eachWeekendOfYear(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(1, arguments);
        var startDate = Object(_startOfYear_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate);
        if (isNaN(startDate)) throw new RangeError('The passed date is invalid');
        var endDate = Object(_endOfYear_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(dirtyDate);
        return Object(_eachWeekendOfInterval_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])({
          start: startDate,
          end: endDate
        });
      }
      /***/

    },

    /***/
    "ErpD": function ErpD(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return getUTCWeek;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _startOfUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../startOfUTCWeek/index.js */
      "1vjI");
      /* harmony import */


      var _startOfUTCWeekYear_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../startOfUTCWeekYear/index.js */
      "oADU");
      /* harmony import */


      var _requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../requiredArgs/index.js */
      "jIYg");

      var MILLISECONDS_IN_WEEK = 604800000; // This function will be a part of public API when UTC function will be implemented.
      // See issue: https://github.com/date-fns/date-fns/issues/376

      function getUTCWeek(dirtyDate, options) {
        Object(_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(1, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);
        var diff = Object(_startOfUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(date, options).getTime() - Object(_startOfUTCWeekYear_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(date, options).getTime(); // Round the number of days to the nearest integer
        // because the number of milliseconds in a week is not constant
        // (e.g. it's different in the week of the daylight saving time clock shift)

        return Math.round(diff / MILLISECONDS_IN_WEEK) + 1;
      }
      /***/

    },

    /***/
    "F+F2": function FF2(module, exports, __webpack_require__) {
      ;

      (function (root, factory) {
        if (true) {
          // CommonJS
          module.exports = exports = factory(__webpack_require__(
          /*! ./core */
          "Ib8C"));
        } else {}
      })(this, function (CryptoJS) {
        (function () {
          // Check if typed arrays are supported
          if (typeof ArrayBuffer != 'function') {
            return;
          } // Shortcuts


          var C = CryptoJS;
          var C_lib = C.lib;
          var WordArray = C_lib.WordArray; // Reference original init

          var superInit = WordArray.init; // Augment WordArray.init to handle typed arrays

          var subInit = WordArray.init = function (typedArray) {
            // Convert buffers to uint8
            if (typedArray instanceof ArrayBuffer) {
              typedArray = new Uint8Array(typedArray);
            } // Convert other array views to uint8


            if (typedArray instanceof Int8Array || typeof Uint8ClampedArray !== "undefined" && typedArray instanceof Uint8ClampedArray || typedArray instanceof Int16Array || typedArray instanceof Uint16Array || typedArray instanceof Int32Array || typedArray instanceof Uint32Array || typedArray instanceof Float32Array || typedArray instanceof Float64Array) {
              typedArray = new Uint8Array(typedArray.buffer, typedArray.byteOffset, typedArray.byteLength);
            } // Handle Uint8Array


            if (typedArray instanceof Uint8Array) {
              // Shortcut
              var typedArrayByteLength = typedArray.byteLength; // Extract bytes

              var words = [];

              for (var i = 0; i < typedArrayByteLength; i++) {
                words[i >>> 2] |= typedArray[i] << 24 - i % 4 * 8;
              } // Initialize this word array


              superInit.call(this, words, typedArrayByteLength);
            } else {
              // Else call normal init
              superInit.apply(this, arguments);
            }
          };

          subInit.prototype = WordArray;
        })();

        return CryptoJS.lib.WordArray;
      });
      /***/

    },

    /***/
    "F97/": function F97(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "not", function () {
        return not;
      });

      function not(pred, thisArg) {
        function notPred() {
          return !notPred.pred.apply(notPred.thisArg, arguments);
        }

        notPred.pred = pred;
        notPred.thisArg = thisArg;
        return notPred;
      } //# sourceMappingURL=not.js.map

      /***/

    },

    /***/
    "F9ui": function F9ui(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatListModuleNgFactory", function () {
        return MatListModuleNgFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "RenderType_MatNavList", function () {
        return RenderType_MatNavList;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "View_MatNavList_0", function () {
        return View_MatNavList_0;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "View_MatNavList_Host_0", function () {
        return View_MatNavList_Host_0;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatNavListNgFactory", function () {
        return MatNavListNgFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "RenderType_MatList", function () {
        return RenderType_MatList;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "View_MatList_0", function () {
        return View_MatList_0;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "View_MatList_Host_0", function () {
        return View_MatList_Host_0;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatListNgFactory", function () {
        return MatListNgFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "RenderType_MatListItem", function () {
        return RenderType_MatListItem;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "View_MatListItem_0", function () {
        return View_MatListItem_0;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "View_MatListItem_Host_0", function () {
        return View_MatListItem_Host_0;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatListItemNgFactory", function () {
        return MatListItemNgFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "RenderType_MatListOption", function () {
        return RenderType_MatListOption;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "View_MatListOption_0", function () {
        return View_MatListOption_0;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "View_MatListOption_Host_0", function () {
        return View_MatListOption_Host_0;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatListOptionNgFactory", function () {
        return MatListOptionNgFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "RenderType_MatSelectionList", function () {
        return RenderType_MatSelectionList;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "View_MatSelectionList_0", function () {
        return View_MatSelectionList_0;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "View_MatSelectionList_Host_0", function () {
        return View_MatSelectionList_Host_0;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatSelectionListNgFactory", function () {
        return MatSelectionListNgFactory;
      });
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /* harmony import */


      var _angular_material_list__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/material/list */
      "SqCe");
      /* harmony import */


      var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! @angular/common */
      "SVse");
      /* harmony import */


      var _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! @angular/cdk/bidi */
      "9gLZ");
      /* harmony import */


      var _angular_material_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! @angular/material/core */
      "UhP/");
      /* harmony import */


      var _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! @angular/cdk/a11y */
      "YEUz");
      /* harmony import */


      var _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
      /*! @angular/cdk/platform */
      "SCoL");
      /* harmony import */


      var _angular_material_divider__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
      /*! @angular/material/divider */
      "BSbQ");
      /* harmony import */


      var _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
      /*! @angular/platform-browser/animations */
      "omvX");
      /* harmony import */


      var _core_index_ngfactory__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
      /*! ../core/index.ngfactory */
      "CeGm");
      /* harmony import */


      var _angular_forms__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(
      /*! @angular/forms */
      "s7LF");
      /**
       * @fileoverview This file was generated by the Angular template compiler. Do not edit.
       *
       * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes,extraRequire}
       * tslint:disable
       */


      var MatListModuleNgFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵcmf"](_angular_material_list__WEBPACK_IMPORTED_MODULE_1__["MatListModule"], [], function (_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmod"]([_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](512, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵCodegenComponentFactoryResolver"], [[8, []], [3, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"]], _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModuleRef"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](4608, _angular_common__WEBPACK_IMPORTED_MODULE_2__["NgLocalization"], _angular_common__WEBPACK_IMPORTED_MODULE_2__["NgLocaleLocalization"], [_angular_core__WEBPACK_IMPORTED_MODULE_0__["LOCALE_ID"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_3__["BidiModule"], _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_3__["BidiModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_material_core__WEBPACK_IMPORTED_MODULE_4__["MatCommonModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_4__["MatCommonModule"], [_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_5__["HighContrastModeDetector"], [2, _angular_material_core__WEBPACK_IMPORTED_MODULE_4__["MATERIAL_SANITY_CHECKS"]], _angular_common__WEBPACK_IMPORTED_MODULE_2__["DOCUMENT"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_material_core__WEBPACK_IMPORTED_MODULE_4__["MatLineModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_4__["MatLineModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_6__["PlatformModule"], _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_6__["PlatformModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_material_core__WEBPACK_IMPORTED_MODULE_4__["MatRippleModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_4__["MatRippleModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_material_core__WEBPACK_IMPORTED_MODULE_4__["MatPseudoCheckboxModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_4__["MatPseudoCheckboxModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"], _angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_material_divider__WEBPACK_IMPORTED_MODULE_7__["MatDividerModule"], _angular_material_divider__WEBPACK_IMPORTED_MODULE_7__["MatDividerModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_material_list__WEBPACK_IMPORTED_MODULE_1__["MatListModule"], _angular_material_list__WEBPACK_IMPORTED_MODULE_1__["MatListModule"], [])]);
      });

      var styles_MatNavList = [".mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:\"\";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n"];

      var RenderType_MatNavList = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵcrt"]({
        encapsulation: 2,
        styles: styles_MatNavList,
        data: {}
      });

      function View_MatNavList_0(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](2, [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵncd"](null, 0)], null, null);
      }

      function View_MatNavList_Host_0(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](0, 0, null, null, 2, "mat-nav-list", [["class", "mat-nav-list mat-list-base"], ["role", "navigation"]], null, null, null, View_MatNavList_0, RenderType_MatNavList)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵprd"](6144, null, _angular_material_list__WEBPACK_IMPORTED_MODULE_1__["MAT_NAV_LIST"], null, [_angular_material_list__WEBPACK_IMPORTED_MODULE_1__["MatNavList"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](2, 704512, null, 0, _angular_material_list__WEBPACK_IMPORTED_MODULE_1__["MatNavList"], [], null, null)], null, null);
      }

      var MatNavListNgFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵccf"]("mat-nav-list", _angular_material_list__WEBPACK_IMPORTED_MODULE_1__["MatNavList"], View_MatNavList_Host_0, {
        disableRipple: "disableRipple",
        disabled: "disabled"
      }, {}, ["*"]);

      var styles_MatList = [".mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:\"\";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n"];

      var RenderType_MatList = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵcrt"]({
        encapsulation: 2,
        styles: styles_MatList,
        data: {}
      });

      function View_MatList_0(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](2, [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵncd"](null, 0)], null, null);
      }

      function View_MatList_Host_0(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](0, 0, null, null, 2, "mat-list", [["class", "mat-list mat-list-base"]], null, null, null, View_MatList_0, RenderType_MatList)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵprd"](6144, null, _angular_material_list__WEBPACK_IMPORTED_MODULE_1__["MAT_LIST"], null, [_angular_material_list__WEBPACK_IMPORTED_MODULE_1__["MatList"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](2, 704512, null, 0, _angular_material_list__WEBPACK_IMPORTED_MODULE_1__["MatList"], [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]], null, null)], null, null);
      }

      var MatListNgFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵccf"]("mat-list, mat-action-list", _angular_material_list__WEBPACK_IMPORTED_MODULE_1__["MatList"], View_MatList_Host_0, {
        disableRipple: "disableRipple",
        disabled: "disabled"
      }, {}, ["*"]);

      var styles_MatListItem = [];

      var RenderType_MatListItem = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵcrt"]({
        encapsulation: 2,
        styles: styles_MatListItem,
        data: {}
      });

      function View_MatListItem_0(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](2, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](0, 0, null, null, 6, "div", [["class", "mat-list-item-content"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](1, 0, null, null, 1, "div", [["class", "mat-list-item-ripple mat-ripple"], ["mat-ripple", ""]], [[2, "mat-ripple-unbounded", null]], null, null, null, null)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](2, 212992, null, 0, _angular_material_core__WEBPACK_IMPORTED_MODULE_4__["MatRipple"], [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"], _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_6__["Platform"], [2, _angular_material_core__WEBPACK_IMPORTED_MODULE_4__["MAT_RIPPLE_GLOBAL_OPTIONS"]], [2, _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_8__["ANIMATION_MODULE_TYPE"]]], {
          disabled: [0, "disabled"],
          trigger: [1, "trigger"]
        }, null), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵncd"](null, 0), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](4, 0, null, null, 1, "div", [["class", "mat-list-text"]], null, null, null, null, null)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵncd"](null, 1), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵncd"](null, 2)], function (_ck, _v) {
          var _co = _v.component;

          var currVal_1 = _co._isRippleDisabled();

          var currVal_2 = _co._getHostElement();

          _ck(_v, 2, 0, currVal_1, currVal_2);
        }, function (_ck, _v) {
          var currVal_0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 2).unbounded;

          _ck(_v, 1, 0, currVal_0);
        });
      }

      function View_MatListItem_Host_0(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](0, 0, null, null, 4, "mat-list-item", [["class", "mat-list-item mat-focus-indicator"]], [[2, "mat-list-item-disabled", null], [2, "mat-list-item-avatar", null], [2, "mat-list-item-with-avatar", null]], null, null, View_MatListItem_0, RenderType_MatListItem)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](1, 1228800, null, 3, _angular_material_list__WEBPACK_IMPORTED_MODULE_1__["MatListItem"], [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"], [2, _angular_material_list__WEBPACK_IMPORTED_MODULE_1__["MAT_NAV_LIST"]], [2, _angular_material_list__WEBPACK_IMPORTED_MODULE_1__["MAT_LIST"]]], null, null), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵqud"](603979776, 1, {
          _lines: 1
        }), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵqud"](603979776, 2, {
          _avatar: 0
        }), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵqud"](603979776, 3, {
          _icon: 0
        })], null, function (_ck, _v) {
          var currVal_0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1).disabled;

          var currVal_1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1)._avatar || _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1)._icon;

          var currVal_2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1)._avatar || _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1)._icon;

          _ck(_v, 0, 0, currVal_0, currVal_1, currVal_2);
        });
      }

      var MatListItemNgFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵccf"]("mat-list-item, a[mat-list-item], button[mat-list-item]", _angular_material_list__WEBPACK_IMPORTED_MODULE_1__["MatListItem"], View_MatListItem_Host_0, {
        disableRipple: "disableRipple",
        disabled: "disabled"
      }, {}, ["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]", "[mat-line], [matLine]", "*"]);

      var styles_MatListOption = [];

      var RenderType_MatListOption = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵcrt"]({
        encapsulation: 2,
        styles: styles_MatListOption,
        data: {}
      });

      function View_MatListOption_1(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](0, 0, null, null, 1, "mat-pseudo-checkbox", [["class", "mat-pseudo-checkbox"]], [[2, "mat-pseudo-checkbox-indeterminate", null], [2, "mat-pseudo-checkbox-checked", null], [2, "mat-pseudo-checkbox-disabled", null], [2, "_mat-animation-noopable", null]], null, null, _core_index_ngfactory__WEBPACK_IMPORTED_MODULE_9__["View_MatPseudoCheckbox_0"], _core_index_ngfactory__WEBPACK_IMPORTED_MODULE_9__["RenderType_MatPseudoCheckbox"])), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](1, 49152, null, 0, _angular_material_core__WEBPACK_IMPORTED_MODULE_4__["MatPseudoCheckbox"], [[2, _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_8__["ANIMATION_MODULE_TYPE"]]], {
          state: [0, "state"],
          disabled: [1, "disabled"]
        }, null)], function (_ck, _v) {
          var _co = _v.component;
          var currVal_4 = _co.selected ? "checked" : "unchecked";
          var currVal_5 = _co.disabled;

          _ck(_v, 1, 0, currVal_4, currVal_5);
        }, function (_ck, _v) {
          var currVal_0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1).state === "indeterminate";
          var currVal_1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1).state === "checked";

          var currVal_2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1).disabled;

          var currVal_3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1)._animationMode === "NoopAnimations";

          _ck(_v, 0, 0, currVal_0, currVal_1, currVal_2, currVal_3);
        });
      }

      function View_MatListOption_0(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](2, [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵqud"](671088640, 1, {
          _text: 0
        }), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](1, 0, null, null, 7, "div", [["class", "mat-list-item-content"]], [[2, "mat-list-item-content-reverse", null]], null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](2, 0, null, null, 1, "div", [["class", "mat-list-item-ripple mat-ripple"], ["mat-ripple", ""]], [[2, "mat-ripple-unbounded", null]], null, null, null, null)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](3, 212992, null, 0, _angular_material_core__WEBPACK_IMPORTED_MODULE_4__["MatRipple"], [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"], _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_6__["Platform"], [2, _angular_material_core__WEBPACK_IMPORTED_MODULE_4__["MAT_RIPPLE_GLOBAL_OPTIONS"]], [2, _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_8__["ANIMATION_MODULE_TYPE"]]], {
          disabled: [0, "disabled"],
          trigger: [1, "trigger"]
        }, null), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵand"](16777216, null, null, 1, null, View_MatListOption_1)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](5, 16384, null, 0, _angular_common__WEBPACK_IMPORTED_MODULE_2__["NgIf"], [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]], {
          ngIf: [0, "ngIf"]
        }, null), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](6, 0, [[1, 0], ["text", 1]], null, 1, "div", [["class", "mat-list-text"]], null, null, null, null, null)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵncd"](null, 0), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵncd"](null, 1)], function (_ck, _v) {
          var _co = _v.component;

          var currVal_2 = _co._isRippleDisabled();

          var currVal_3 = _co._getHostElement();

          _ck(_v, 3, 0, currVal_2, currVal_3);

          var currVal_4 = _co.selectionList.multiple;

          _ck(_v, 5, 0, currVal_4);
        }, function (_ck, _v) {
          var _co = _v.component;
          var currVal_0 = _co.checkboxPosition == "after";

          _ck(_v, 1, 0, currVal_0);

          var currVal_1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 3).unbounded;

          _ck(_v, 2, 0, currVal_1);
        });
      }

      function View_MatListOption_Host_0(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](0, 0, null, null, 4, "mat-list-option", [["class", "mat-list-item mat-list-option mat-focus-indicator"], ["role", "option"]], [[2, "mat-list-item-disabled", null], [2, "mat-list-item-with-avatar", null], [2, "mat-primary", null], [2, "mat-accent", null], [2, "mat-warn", null], [2, "mat-list-single-selected-option", null], [1, "aria-selected", 0], [1, "aria-disabled", 0], [1, "tabindex", 0]], [[null, "focus"], [null, "blur"], [null, "click"]], function (_v, en, $event) {
          var ad = true;

          if ("focus" === en) {
            var pd_0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1)._handleFocus() !== false;
            ad = pd_0 && ad;
          }

          if ("blur" === en) {
            var pd_1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1)._handleBlur() !== false;
            ad = pd_1 && ad;
          }

          if ("click" === en) {
            var pd_2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1)._handleClick() !== false;
            ad = pd_2 && ad;
          }

          return ad;
        }, View_MatListOption_0, RenderType_MatListOption)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](1, 1294336, null, 3, _angular_material_list__WEBPACK_IMPORTED_MODULE_1__["MatListOption"], [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"], _angular_material_list__WEBPACK_IMPORTED_MODULE_1__["MatSelectionList"]], null, null), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵqud"](603979776, 1, {
          _avatar: 0
        }), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵqud"](603979776, 2, {
          _icon: 0
        }), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵqud"](603979776, 3, {
          _lines: 1
        })], function (_ck, _v) {
          _ck(_v, 1, 0);
        }, function (_ck, _v) {
          var currVal_0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1).disabled;

          var currVal_1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1)._avatar || _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1)._icon;

          var currVal_2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1).color === "primary";
          var currVal_3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1).color !== "primary" && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1).color !== "warn";
          var currVal_4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1).color === "warn";
          var currVal_5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1).selected && !_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1).selectionList.multiple;

          var currVal_6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1).selected;

          var currVal_7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1).disabled;

          var currVal_8 = -1;

          _ck(_v, 0, 0, currVal_0, currVal_1, currVal_2, currVal_3, currVal_4, currVal_5, currVal_6, currVal_7, currVal_8);
        });
      }

      var MatListOptionNgFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵccf"]("mat-list-option", _angular_material_list__WEBPACK_IMPORTED_MODULE_1__["MatListOption"], View_MatListOption_Host_0, {
        disableRipple: "disableRipple",
        checkboxPosition: "checkboxPosition",
        color: "color",
        value: "value",
        disabled: "disabled",
        selected: "selected"
      }, {}, ["*", "[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]"]);

      var styles_MatSelectionList = [".mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:\"\";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n"];

      var RenderType_MatSelectionList = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵcrt"]({
        encapsulation: 2,
        styles: styles_MatSelectionList,
        data: {}
      });

      function View_MatSelectionList_0(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](2, [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵncd"](null, 0)], null, null);
      }

      function View_MatSelectionList_Host_0(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](0, 0, null, null, 3, "mat-selection-list", [["class", "mat-selection-list mat-list-base"], ["role", "listbox"]], [[1, "aria-multiselectable", 0], [1, "aria-disabled", 0], [1, "tabindex", 0]], [[null, "keydown"]], function (_v, en, $event) {
          var ad = true;

          if ("keydown" === en) {
            var pd_0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 2)._keydown($event) !== false;
            ad = pd_0 && ad;
          }

          return ad;
        }, View_MatSelectionList_0, RenderType_MatSelectionList)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵprd"](5120, null, _angular_forms__WEBPACK_IMPORTED_MODULE_10__["NG_VALUE_ACCESSOR"], function (p0_0) {
          return [p0_0];
        }, [_angular_material_list__WEBPACK_IMPORTED_MODULE_1__["MatSelectionList"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](2, 1753088, null, 1, _angular_material_list__WEBPACK_IMPORTED_MODULE_1__["MatSelectionList"], [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"], [8, null], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"], _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_5__["FocusMonitor"]], null, null), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵqud"](603979776, 1, {
          options: 1
        })], null, function (_ck, _v) {
          var currVal_0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 2).multiple;

          var currVal_1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 2).disabled.toString();

          var currVal_2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 2)._tabIndex;

          _ck(_v, 0, 0, currVal_0, currVal_1, currVal_2);
        });
      }

      var MatSelectionListNgFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵccf"]("mat-selection-list", _angular_material_list__WEBPACK_IMPORTED_MODULE_1__["MatSelectionList"], View_MatSelectionList_Host_0, {
        disableRipple: "disableRipple",
        tabIndex: "tabIndex",
        color: "color",
        compareWith: "compareWith",
        disabled: "disabled",
        multiple: "multiple"
      }, {
        selectionChange: "selectionChange"
      }, ["*"]);
      /***/

    },

    /***/
    "FD9M": function FD9M(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "bufferToggle", function () {
        return bufferToggle;
      });
      /* harmony import */


      var _Subscription__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Subscription */
      "quSY");
      /* harmony import */


      var _util_subscribeToResult__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../util/subscribeToResult */
      "ZUHj");
      /* harmony import */


      var _OuterSubscriber__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../OuterSubscriber */
      "l7GE");

      function bufferToggle(openings, closingSelector) {
        return function bufferToggleOperatorFunction(source) {
          return source.lift(new BufferToggleOperator(openings, closingSelector));
        };
      }

      var BufferToggleOperator = /*#__PURE__*/function () {
        function BufferToggleOperator(openings, closingSelector) {
          _classCallCheck2(this, BufferToggleOperator);

          this.openings = openings;
          this.closingSelector = closingSelector;
        }

        _createClass2(BufferToggleOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            return source.subscribe(new BufferToggleSubscriber(subscriber, this.openings, this.closingSelector));
          }
        }]);

        return BufferToggleOperator;
      }();

      var BufferToggleSubscriber = /*#__PURE__*/function (_OuterSubscriber__WEB) {
        _inherits2(BufferToggleSubscriber, _OuterSubscriber__WEB);

        var _super191 = _createSuper2(BufferToggleSubscriber);

        function BufferToggleSubscriber(destination, openings, closingSelector) {
          var _this468;

          _classCallCheck2(this, BufferToggleSubscriber);

          _this468 = _super191.call(this, destination);
          _this468.closingSelector = closingSelector;
          _this468.contexts = [];

          _this468.add(Object(_util_subscribeToResult__WEBPACK_IMPORTED_MODULE_1__["subscribeToResult"])(_assertThisInitialized2(_this468), openings));

          return _this468;
        }

        _createClass2(BufferToggleSubscriber, [{
          key: "_next",
          value: function _next(value) {
            var contexts = this.contexts;
            var len = contexts.length;

            for (var i = 0; i < len; i++) {
              contexts[i].buffer.push(value);
            }
          }
        }, {
          key: "_error",
          value: function _error(err) {
            var contexts = this.contexts;

            while (contexts.length > 0) {
              var context = contexts.shift();
              context.subscription.unsubscribe();
              context.buffer = null;
              context.subscription = null;
            }

            this.contexts = null;

            _get2(_getPrototypeOf2(BufferToggleSubscriber.prototype), "_error", this).call(this, err);
          }
        }, {
          key: "_complete",
          value: function _complete() {
            var contexts = this.contexts;

            while (contexts.length > 0) {
              var context = contexts.shift();
              this.destination.next(context.buffer);
              context.subscription.unsubscribe();
              context.buffer = null;
              context.subscription = null;
            }

            this.contexts = null;

            _get2(_getPrototypeOf2(BufferToggleSubscriber.prototype), "_complete", this).call(this);
          }
        }, {
          key: "notifyNext",
          value: function notifyNext(outerValue, innerValue) {
            outerValue ? this.closeBuffer(outerValue) : this.openBuffer(innerValue);
          }
        }, {
          key: "notifyComplete",
          value: function notifyComplete(innerSub) {
            this.closeBuffer(innerSub.context);
          }
        }, {
          key: "openBuffer",
          value: function openBuffer(value) {
            try {
              var closingSelector = this.closingSelector;
              var closingNotifier = closingSelector.call(this, value);

              if (closingNotifier) {
                this.trySubscribe(closingNotifier);
              }
            } catch (err) {
              this._error(err);
            }
          }
        }, {
          key: "closeBuffer",
          value: function closeBuffer(context) {
            var contexts = this.contexts;

            if (contexts && context) {
              var buffer = context.buffer,
                  subscription = context.subscription;
              this.destination.next(buffer);
              contexts.splice(contexts.indexOf(context), 1);
              this.remove(subscription);
              subscription.unsubscribe();
            }
          }
        }, {
          key: "trySubscribe",
          value: function trySubscribe(closingNotifier) {
            var contexts = this.contexts;
            var buffer = [];
            var subscription = new _Subscription__WEBPACK_IMPORTED_MODULE_0__["Subscription"]();
            var context = {
              buffer: buffer,
              subscription: subscription
            };
            contexts.push(context);
            var innerSubscription = Object(_util_subscribeToResult__WEBPACK_IMPORTED_MODULE_1__["subscribeToResult"])(this, closingNotifier, context);

            if (!innerSubscription || innerSubscription.closed) {
              this.closeBuffer(context);
            } else {
              innerSubscription.context = context;
              this.add(innerSubscription);
              subscription.add(innerSubscription);
            }
          }
        }]);

        return BufferToggleSubscriber;
      }(_OuterSubscriber__WEBPACK_IMPORTED_MODULE_2__["OuterSubscriber"]); //# sourceMappingURL=bufferToggle.js.map

      /***/

    },

    /***/
    "FQpF": function FQpF(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "expand", function () {
        return expand;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ExpandOperator", function () {
        return ExpandOperator;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ExpandSubscriber", function () {
        return ExpandSubscriber;
      });
      /* harmony import */


      var _innerSubscribe__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../innerSubscribe */
      "zx2A");

      function expand(project) {
        var concurrent = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Number.POSITIVE_INFINITY;
        var scheduler = arguments.length > 2 ? arguments[2] : undefined;
        concurrent = (concurrent || 0) < 1 ? Number.POSITIVE_INFINITY : concurrent;
        return function (source) {
          return source.lift(new ExpandOperator(project, concurrent, scheduler));
        };
      }

      var ExpandOperator = /*#__PURE__*/function () {
        function ExpandOperator(project, concurrent, scheduler) {
          _classCallCheck2(this, ExpandOperator);

          this.project = project;
          this.concurrent = concurrent;
          this.scheduler = scheduler;
        }

        _createClass2(ExpandOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            return source.subscribe(new ExpandSubscriber(subscriber, this.project, this.concurrent, this.scheduler));
          }
        }]);

        return ExpandOperator;
      }();

      var ExpandSubscriber = /*#__PURE__*/function (_innerSubscribe__WEBP7) {
        _inherits2(ExpandSubscriber, _innerSubscribe__WEBP7);

        var _super192 = _createSuper2(ExpandSubscriber);

        function ExpandSubscriber(destination, project, concurrent, scheduler) {
          var _this469;

          _classCallCheck2(this, ExpandSubscriber);

          _this469 = _super192.call(this, destination);
          _this469.project = project;
          _this469.concurrent = concurrent;
          _this469.scheduler = scheduler;
          _this469.index = 0;
          _this469.active = 0;
          _this469.hasCompleted = false;

          if (concurrent < Number.POSITIVE_INFINITY) {
            _this469.buffer = [];
          }

          return _this469;
        }

        _createClass2(ExpandSubscriber, [{
          key: "_next",
          value: function _next(value) {
            var destination = this.destination;

            if (destination.closed) {
              this._complete();

              return;
            }

            var index = this.index++;

            if (this.active < this.concurrent) {
              destination.next(value);

              try {
                var project = this.project;
                var result = project(value, index);

                if (!this.scheduler) {
                  this.subscribeToProjection(result, value, index);
                } else {
                  var state = {
                    subscriber: this,
                    result: result,
                    value: value,
                    index: index
                  };
                  var _destination = this.destination;

                  _destination.add(this.scheduler.schedule(ExpandSubscriber.dispatch, 0, state));
                }
              } catch (e) {
                destination.error(e);
              }
            } else {
              this.buffer.push(value);
            }
          }
        }, {
          key: "subscribeToProjection",
          value: function subscribeToProjection(result, value, index) {
            this.active++;
            var destination = this.destination;
            destination.add(Object(_innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["innerSubscribe"])(result, new _innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["SimpleInnerSubscriber"](this)));
          }
        }, {
          key: "_complete",
          value: function _complete() {
            this.hasCompleted = true;

            if (this.hasCompleted && this.active === 0) {
              this.destination.complete();
            }

            this.unsubscribe();
          }
        }, {
          key: "notifyNext",
          value: function notifyNext(innerValue) {
            this._next(innerValue);
          }
        }, {
          key: "notifyComplete",
          value: function notifyComplete() {
            var buffer = this.buffer;
            this.active--;

            if (buffer && buffer.length > 0) {
              this._next(buffer.shift());
            }

            if (this.hasCompleted && this.active === 0) {
              this.destination.complete();
            }
          }
        }], [{
          key: "dispatch",
          value: function dispatch(arg) {
            var subscriber = arg.subscriber,
                result = arg.result,
                value = arg.value,
                index = arg.index;
            subscriber.subscribeToProjection(result, value, index);
          }
        }]);

        return ExpandSubscriber;
      }(_innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["SimpleOuterSubscriber"]); //# sourceMappingURL=expand.js.map

      /***/

    },

    /***/
    "FVam": function FVam(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return formatDistance;
      });
      /* harmony import */


      var _compareAsc_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../compareAsc/index.js */
      "JhOC");
      /* harmony import */


      var _differenceInMonths_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../differenceInMonths/index.js */
      "AkX2");
      /* harmony import */


      var _differenceInSeconds_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../differenceInSeconds/index.js */
      "qVkf");
      /* harmony import */


      var _locale_en_US_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../locale/en-US/index.js */
      "iSMj");
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_cloneObject_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! ../_lib/cloneObject/index.js */
      "emD/");
      /* harmony import */


      var _lib_getTimezoneOffsetInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
      /*! ../_lib/getTimezoneOffsetInMilliseconds/index.js */
      "JCDJ");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");

      var MINUTES_IN_DAY = 1440;
      var MINUTES_IN_ALMOST_TWO_DAYS = 2520;
      var MINUTES_IN_MONTH = 43200;
      var MINUTES_IN_TWO_MONTHS = 86400;
      /**
       * @name formatDistance
       * @category Common Helpers
       * @summary Return the distance between the given dates in words.
       *
       * @description
       * Return the distance between the given dates in words.
       *
       * | Distance between dates                                            | Result              |
       * |-------------------------------------------------------------------|---------------------|
       * | 0 ... 30 secs                                                     | less than a minute  |
       * | 30 secs ... 1 min 30 secs                                         | 1 minute            |
       * | 1 min 30 secs ... 44 mins 30 secs                                 | [2..44] minutes     |
       * | 44 mins ... 30 secs ... 89 mins 30 secs                           | about 1 hour        |
       * | 89 mins 30 secs ... 23 hrs 59 mins 30 secs                        | about [2..24] hours |
       * | 23 hrs 59 mins 30 secs ... 41 hrs 59 mins 30 secs                 | 1 day               |
       * | 41 hrs 59 mins 30 secs ... 29 days 23 hrs 59 mins 30 secs         | [2..30] days        |
       * | 29 days 23 hrs 59 mins 30 secs ... 44 days 23 hrs 59 mins 30 secs | about 1 month       |
       * | 44 days 23 hrs 59 mins 30 secs ... 59 days 23 hrs 59 mins 30 secs | about 2 months      |
       * | 59 days 23 hrs 59 mins 30 secs ... 1 yr                           | [2..12] months      |
       * | 1 yr ... 1 yr 3 months                                            | about 1 year        |
       * | 1 yr 3 months ... 1 yr 9 month s                                  | over 1 year         |
       * | 1 yr 9 months ... 2 yrs                                           | almost 2 years      |
       * | N yrs ... N yrs 3 months                                          | about N years       |
       * | N yrs 3 months ... N yrs 9 months                                 | over N years        |
       * | N yrs 9 months ... N+1 yrs                                        | almost N+1 years    |
       *
       * With `options.includeSeconds == true`:
       * | Distance between dates | Result               |
       * |------------------------|----------------------|
       * | 0 secs ... 5 secs      | less than 5 seconds  |
       * | 5 secs ... 10 secs     | less than 10 seconds |
       * | 10 secs ... 20 secs    | less than 20 seconds |
       * | 20 secs ... 40 secs    | half a minute        |
       * | 40 secs ... 60 secs    | less than a minute   |
       * | 60 secs ... 90 secs    | 1 minute             |
       *
       * ### 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).
       *
       * - The function was renamed from `distanceInWords ` to `formatDistance`
       *   to make its name consistent with `format` and `formatRelative`.
       *
       * - The order of arguments is swapped to make the function
       *   consistent with `differenceIn...` functions.
       *
       *   ```javascript
       *   // Before v2.0.0
       *
       *   distanceInWords(
       *     new Date(1986, 3, 4, 10, 32, 0),
       *     new Date(1986, 3, 4, 11, 32, 0),
       *     { addSuffix: true }
       *   ) //=> 'in about 1 hour'
       *
       *   // v2.0.0 onward
       *
       *   formatDistance(
       *     new Date(1986, 3, 4, 11, 32, 0),
       *     new Date(1986, 3, 4, 10, 32, 0),
       *     { addSuffix: true }
       *   ) //=> 'in about 1 hour'
       *   ```
       *
       * @param {Date|Number} date - the date
       * @param {Date|Number} baseDate - the date to compare with
       * @param {Object} [options] - an object with options.
       * @param {Boolean} [options.includeSeconds=false] - distances less than a minute are more detailed
       * @param {Boolean} [options.addSuffix=false] - result indicates if the second date is earlier or later than the first
       * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}
       * @returns {String} the distance in words
       * @throws {TypeError} 2 arguments required
       * @throws {RangeError} `date` must not be Invalid Date
       * @throws {RangeError} `baseDate` must not be Invalid Date
       * @throws {RangeError} `options.locale` must contain `formatDistance` property
       *
       * @example
       * // What is the distance between 2 July 2014 and 1 January 2015?
       * var result = formatDistance(new Date(2014, 6, 2), new Date(2015, 0, 1))
       * //=> '6 months'
       *
       * @example
       * // What is the distance between 1 January 2015 00:00:15
       * // and 1 January 2015 00:00:00, including seconds?
       * var result = formatDistance(
       *   new Date(2015, 0, 1, 0, 0, 15),
       *   new Date(2015, 0, 1, 0, 0, 0),
       *   { includeSeconds: true }
       * )
       * //=> 'less than 20 seconds'
       *
       * @example
       * // What is the distance from 1 January 2016
       * // to 1 January 2015, with a suffix?
       * var result = formatDistance(new Date(2015, 0, 1), new Date(2016, 0, 1), {
       *   addSuffix: true
       * })
       * //=> 'about 1 year ago'
       *
       * @example
       * // What is the distance between 1 August 2016 and 1 January 2015 in Esperanto?
       * import { eoLocale } from 'date-fns/locale/eo'
       * var result = formatDistance(new Date(2016, 7, 1), new Date(2015, 0, 1), {
       *   locale: eoLocale
       * })
       * //=> 'pli ol 1 jaro'
       */

      function formatDistance(dirtyDate, dirtyBaseDate, dirtyOptions) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_7__["default"])(2, arguments);
        var options = dirtyOptions || {};
        var locale = options.locale || _locale_en_US_index_js__WEBPACK_IMPORTED_MODULE_3__["default"];

        if (!locale.formatDistance) {
          throw new RangeError('locale must contain formatDistance property');
        }

        var comparison = Object(_compareAsc_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate, dirtyBaseDate);

        if (isNaN(comparison)) {
          throw new RangeError('Invalid time value');
        }

        var localizeOptions = Object(_lib_cloneObject_index_js__WEBPACK_IMPORTED_MODULE_5__["default"])(options);
        localizeOptions.addSuffix = Boolean(options.addSuffix);
        localizeOptions.comparison = comparison;
        var dateLeft;
        var dateRight;

        if (comparison > 0) {
          dateLeft = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_4__["default"])(dirtyBaseDate);
          dateRight = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_4__["default"])(dirtyDate);
        } else {
          dateLeft = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_4__["default"])(dirtyDate);
          dateRight = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_4__["default"])(dirtyBaseDate);
        }

        var seconds = Object(_differenceInSeconds_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(dateRight, dateLeft);
        var offsetInSeconds = (Object(_lib_getTimezoneOffsetInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_6__["default"])(dateRight) - Object(_lib_getTimezoneOffsetInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_6__["default"])(dateLeft)) / 1000;
        var minutes = Math.round((seconds - offsetInSeconds) / 60);
        var months; // 0 up to 2 mins

        if (minutes < 2) {
          if (options.includeSeconds) {
            if (seconds < 5) {
              return locale.formatDistance('lessThanXSeconds', 5, localizeOptions);
            } else if (seconds < 10) {
              return locale.formatDistance('lessThanXSeconds', 10, localizeOptions);
            } else if (seconds < 20) {
              return locale.formatDistance('lessThanXSeconds', 20, localizeOptions);
            } else if (seconds < 40) {
              return locale.formatDistance('halfAMinute', null, localizeOptions);
            } else if (seconds < 60) {
              return locale.formatDistance('lessThanXMinutes', 1, localizeOptions);
            } else {
              return locale.formatDistance('xMinutes', 1, localizeOptions);
            }
          } else {
            if (minutes === 0) {
              return locale.formatDistance('lessThanXMinutes', 1, localizeOptions);
            } else {
              return locale.formatDistance('xMinutes', minutes, localizeOptions);
            }
          } // 2 mins up to 0.75 hrs

        } else if (minutes < 45) {
          return locale.formatDistance('xMinutes', minutes, localizeOptions); // 0.75 hrs up to 1.5 hrs
        } else if (minutes < 90) {
          return locale.formatDistance('aboutXHours', 1, localizeOptions); // 1.5 hrs up to 24 hrs
        } else if (minutes < MINUTES_IN_DAY) {
          var hours = Math.round(minutes / 60);
          return locale.formatDistance('aboutXHours', hours, localizeOptions); // 1 day up to 1.75 days
        } else if (minutes < MINUTES_IN_ALMOST_TWO_DAYS) {
          return locale.formatDistance('xDays', 1, localizeOptions); // 1.75 days up to 30 days
        } else if (minutes < MINUTES_IN_MONTH) {
          var days = Math.round(minutes / MINUTES_IN_DAY);
          return locale.formatDistance('xDays', days, localizeOptions); // 1 month up to 2 months
        } else if (minutes < MINUTES_IN_TWO_MONTHS) {
          months = Math.round(minutes / MINUTES_IN_MONTH);
          return locale.formatDistance('aboutXMonths', months, localizeOptions);
        }

        months = Object(_differenceInMonths_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dateRight, dateLeft); // 2 months up to 12 months

        if (months < 12) {
          var nearestMonth = Math.round(minutes / MINUTES_IN_MONTH);
          return locale.formatDistance('xMonths', nearestMonth, localizeOptions); // 1 year up to max Date
        } else {
          var monthsSinceStartOfYear = months % 12;
          var years = Math.floor(months / 12); // N years up to 1 years 3 months

          if (monthsSinceStartOfYear < 3) {
            return locale.formatDistance('aboutXYears', years, localizeOptions); // N years 3 months up to N years 9 months
          } else if (monthsSinceStartOfYear < 9) {
            return locale.formatDistance('overXYears', years, localizeOptions); // N years 9 months up to N year 12 months
          } else {
            return locale.formatDistance('almostXYears', years + 1, localizeOptions);
          }
        }
      }
      /***/

    },

    /***/
    "FZB8": function FZB8(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "min", function () {
        return min;
      });
      /* harmony import */


      var _reduce__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ./reduce */
      "128B");

      function min(comparer) {
        var min = typeof comparer === 'function' ? function (x, y) {
          return comparer(x, y) < 0 ? x : y;
        } : function (x, y) {
          return x < y ? x : y;
        };
        return Object(_reduce__WEBPACK_IMPORTED_MODULE_0__["reduce"])(min);
      } //# sourceMappingURL=min.js.map

      /***/

    },

    /***/
    "Fj4L": function Fj4L(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "storeFreeze", function () {
        return storeFreeze;
      });

      var deepFreeze = __webpack_require__(
      /*! deep-freeze-strict */
      "mz7f");

      function storeFreeze(reducer) {
        return function freeze(state, action) {
          state = state || {};
          deepFreeze(state); // guard against trying to freeze null or undefined types

          if (action.payload) {
            deepFreeze(action.payload);
          }

          var nextState = reducer(state, action);
          deepFreeze(nextState);
          return nextState;
        };
      } //# sourceMappingURL=index.js.map

      /***/

    },

    /***/
    "Fnuy": function Fnuy(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Occitan, lengadocian dialecte [oc-lnc]
      //! author : Quentin PAGÈS : https://github.com/Quenty31
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var ocLnc = moment.defineLocale('oc-lnc', {
          months: {
            standalone: 'genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre'.split('_'),
            format: "de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split('_'),
            isFormat: /D[oD]?(\s)+MMMM/
          },
          monthsShort: 'gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.'.split('_'),
          monthsParseExact: true,
          weekdays: 'dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte'.split('_'),
          weekdaysShort: 'dg._dl._dm._dc._dj._dv._ds.'.split('_'),
          weekdaysMin: 'dg_dl_dm_dc_dj_dv_ds'.split('_'),
          weekdaysParseExact: true,
          longDateFormat: {
            LT: 'H:mm',
            LTS: 'H:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM [de] YYYY',
            ll: 'D MMM YYYY',
            LLL: 'D MMMM [de] YYYY [a] H:mm',
            lll: 'D MMM YYYY, H:mm',
            LLLL: 'dddd D MMMM [de] YYYY [a] H:mm',
            llll: 'ddd D MMM YYYY, H:mm'
          },
          calendar: {
            sameDay: '[uèi a] LT',
            nextDay: '[deman a] LT',
            nextWeek: 'dddd [a] LT',
            lastDay: '[ièr a] LT',
            lastWeek: 'dddd [passat a] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: "d'aquí %s",
            past: 'fa %s',
            s: 'unas segondas',
            ss: '%d segondas',
            m: 'una minuta',
            mm: '%d minutas',
            h: 'una ora',
            hh: '%d oras',
            d: 'un jorn',
            dd: '%d jorns',
            M: 'un mes',
            MM: '%d meses',
            y: 'un an',
            yy: '%d ans'
          },
          dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
          ordinal: function ordinal(number, period) {
            var output = number === 1 ? 'r' : number === 2 ? 'n' : number === 3 ? 'r' : number === 4 ? 't' : 'è';

            if (period === 'w' || period === 'W') {
              output = 'a';
            }

            return number + output;
          },
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4
          }
        });
        return ocLnc;
      });
      /***/

    },

    /***/
    "Fwbw": function Fwbw(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return lastDayOfQuarter;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name lastDayOfQuarter
       * @category Quarter Helpers
       * @summary Return the last day of a year quarter for the given date.
       *
       * @description
       * Return the last day of a year quarter for the given date.
       * The result will be in the local timezone.
       *
       * ### 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 {Date|Number} date - the original date
       * @param {Object} [options] - an object with options.
       * @param {0|1|2} [options.additionalDigits=2] - passed to `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate}
       * @returns {Date} the last day of a quarter
       * @throws {TypeError} 1 argument required
       * @throws {RangeError} `options.additionalDigits` must be 0, 1 or 2
       *
       * @example
       * // The last day of a quarter for 2 September 2014 11:55:00:
       * var result = lastDayOfQuarter(new Date(2014, 8, 2, 11, 55, 0))
       * //=> Tue Sep 30 2014 00:00:00
       */


      function lastDayOfQuarter(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);
        var currentMonth = date.getMonth();
        var month = currentMonth - currentMonth % 3 + 3;
        date.setMonth(month, 0);
        date.setHours(0, 0, 0, 0);
        return date;
      }
      /***/

    },

    /***/
    "G0Uy": function G0Uy(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Maltese (Malta) [mt]
      //! author : Alessandro Maruccia : https://github.com/alesma
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var mt = moment.defineLocale('mt', {
          months: 'Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru'.split('_'),
          monthsShort: 'Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ'.split('_'),
          weekdays: 'Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt'.split('_'),
          weekdaysShort: 'Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib'.split('_'),
          weekdaysMin: 'Ħa_Tn_Tl_Er_Ħa_Ġi_Si'.split('_'),
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd, D MMMM YYYY HH:mm'
          },
          calendar: {
            sameDay: '[Illum fil-]LT',
            nextDay: '[Għada fil-]LT',
            nextWeek: 'dddd [fil-]LT',
            lastDay: '[Il-bieraħ fil-]LT',
            lastWeek: 'dddd [li għadda] [fil-]LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'f’ %s',
            past: '%s ilu',
            s: 'ftit sekondi',
            ss: '%d sekondi',
            m: 'minuta',
            mm: '%d minuti',
            h: 'siegħa',
            hh: '%d siegħat',
            d: 'ġurnata',
            dd: '%d ġranet',
            M: 'xahar',
            MM: '%d xhur',
            y: 'sena',
            yy: '%d sni'
          },
          dayOfMonthOrdinalParse: /\d{1,2}º/,
          ordinal: '%dº',
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return mt;
      });
      /***/

    },

    /***/
    "G6Tw": function G6Tw(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return isSameDay;
      });
      /* harmony import */


      var _startOfDay_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../startOfDay/index.js */
      "M34a");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name isSameDay
       * @category Day Helpers
       * @summary Are the given dates in the same day?
       *
       * @description
       * Are the given dates in the same day?
       *
       * ### 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 {Date|Number} dateLeft - the first date to check
       * @param {Date|Number} dateRight - the second date to check
       * @returns {Boolean} the dates are in the same day
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // Are 4 September 06:00:00 and 4 September 18:00:00 in the same day?
       * var result = isSameDay(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 18, 0))
       * //=> true
       */


      function isSameDay(dirtyDateLeft, dirtyDateRight) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(2, arguments);
        var dateLeftStartOfDay = Object(_startOfDay_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateLeft);
        var dateRightStartOfDay = Object(_startOfDay_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateRight);
        return dateLeftStartOfDay.getTime() === dateRightStartOfDay.getTime();
      }
      /***/

    },

    /***/
    "G8D+": function G8D(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "InMemoryWebApiModule", function () {
        return InMemoryWebApiModule;
      });
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /* harmony import */


      var _angular_common_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/common/http */
      "IheW");
      /* harmony import */


      var _interfaces__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ./interfaces */
      "JVVJ");
      /* harmony import */


      var _http_client_in_memory_web_api_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ./http-client-in-memory-web-api.module */
      "a1A6"); ////// For apps with both Http and HttpClient ////


      var __decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
        var c = arguments.length,
            r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
            d;
        if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
          if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
        }
        return c > 3 && r && Object.defineProperty(target, key, r), r;
      };

      var InMemoryWebApiModule = function () {
        function InMemoryWebApiModule() {}

        InMemoryWebApiModule_1 = InMemoryWebApiModule;
        /**
        *  Redirect BOTH Angular `Http` and `HttpClient` XHR calls
        *  to in-memory data store that implements `InMemoryDbService`.
        *  with class that implements InMemoryDbService and creates an in-memory database.
        *
        *  Usually imported in the root application module.
        *  Can import in a lazy feature module too, which will shadow modules loaded earlier
        *
        * @param {Type} dbCreator - Class that creates seed data for in-memory database. Must implement InMemoryDbService.
        * @param {InMemoryBackendConfigArgs} [options]
        *
        * @example
        * InMemoryWebApiModule.forRoot(dbCreator);
        * InMemoryWebApiModule.forRoot(dbCreator, {useValue: {delay:600}});
        */

        InMemoryWebApiModule.forRoot = function (dbCreator, options) {
          return {
            ngModule: InMemoryWebApiModule_1,
            providers: [{
              provide: _interfaces__WEBPACK_IMPORTED_MODULE_2__["InMemoryDbService"],
              useClass: dbCreator
            }, {
              provide: _interfaces__WEBPACK_IMPORTED_MODULE_2__["InMemoryBackendConfig"],
              useValue: options
            }, {
              provide: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpBackend"],
              useFactory: _http_client_in_memory_web_api_module__WEBPACK_IMPORTED_MODULE_3__["httpClientInMemBackendServiceFactory"],
              deps: [_interfaces__WEBPACK_IMPORTED_MODULE_2__["InMemoryDbService"], _interfaces__WEBPACK_IMPORTED_MODULE_2__["InMemoryBackendConfig"], _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["XhrFactory"]]
            }]
          };
        };
        /**
         *
         * Enable and configure the in-memory web api in a lazy-loaded feature module.
         * Same as `forRoot`.
         * This is a feel-good method so you can follow the Angular style guide for lazy-loaded modules.
         */


        InMemoryWebApiModule.forFeature = function (dbCreator, options) {
          return InMemoryWebApiModule_1.forRoot(dbCreator, options);
        };

        var InMemoryWebApiModule_1;
        InMemoryWebApiModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
          type: InMemoryWebApiModule
        });
        InMemoryWebApiModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
          factory: function InMemoryWebApiModule_Factory(t) {
            return new (t || InMemoryWebApiModule)();
          }
        });
        /*@__PURE__*/

        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](InMemoryWebApiModule, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
            args: [{}]
          }], function () {
            return [];
          }, null);
        })();

        return InMemoryWebApiModule;
      }(); //# sourceMappingURL=in-memory-web-api.module.js.map

      /***/

    },

    /***/
    "GJmQ": function GJmQ(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "takeWhile", function () {
        return takeWhile;
      });
      /* harmony import */


      var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Subscriber */
      "7o/Q");

      function takeWhile(predicate) {
        var inclusive = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
        return function (source) {
          return source.lift(new TakeWhileOperator(predicate, inclusive));
        };
      }

      var TakeWhileOperator = /*#__PURE__*/function () {
        function TakeWhileOperator(predicate, inclusive) {
          _classCallCheck2(this, TakeWhileOperator);

          this.predicate = predicate;
          this.inclusive = inclusive;
        }

        _createClass2(TakeWhileOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            return source.subscribe(new TakeWhileSubscriber(subscriber, this.predicate, this.inclusive));
          }
        }]);

        return TakeWhileOperator;
      }();

      var TakeWhileSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_14) {
        _inherits2(TakeWhileSubscriber, _Subscriber__WEBPACK_14);

        var _super193 = _createSuper2(TakeWhileSubscriber);

        function TakeWhileSubscriber(destination, predicate, inclusive) {
          var _this470;

          _classCallCheck2(this, TakeWhileSubscriber);

          _this470 = _super193.call(this, destination);
          _this470.predicate = predicate;
          _this470.inclusive = inclusive;
          _this470.index = 0;
          return _this470;
        }

        _createClass2(TakeWhileSubscriber, [{
          key: "_next",
          value: function _next(value) {
            var destination = this.destination;
            var result;

            try {
              result = this.predicate(value, this.index++);
            } catch (err) {
              destination.error(err);
              return;
            }

            this.nextOrComplete(value, result);
          }
        }, {
          key: "nextOrComplete",
          value: function nextOrComplete(value, predicateResult) {
            var destination = this.destination;

            if (Boolean(predicateResult)) {
              destination.next(value);
            } else {
              if (this.inclusive) {
                destination.next(value);
              }

              destination.complete();
            }
          }
        }]);

        return TakeWhileSubscriber;
      }(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]); //# sourceMappingURL=takeWhile.js.map

      /***/

    },

    /***/
    "GP2A": function GP2A(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return addISOWeekYears;
      });
      /* harmony import */


      var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../_lib/toInteger/index.js */
      "/h9T");
      /* harmony import */


      var _getISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../getISOWeekYear/index.js */
      "BKKT");
      /* harmony import */


      var _setISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../setISOWeekYear/index.js */
      "7DTD");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name addISOWeekYears
       * @category ISO Week-Numbering Year Helpers
       * @summary Add the specified number of ISO week-numbering years to the given date.
       *
       * @description
       * Add the specified number of ISO week-numbering years to the given date.
       *
       * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
       *
       * ### 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).
       *
       * - The function was renamed from `addISOYears` to `addISOWeekYears`.
       *   "ISO week year" is short for [ISO week-numbering year](https://en.wikipedia.org/wiki/ISO_week_date).
       *   This change makes the name consistent with
       *   locale-dependent week-numbering year helpers, e.g., `addWeekYears`.
       *
       * @param {Date|Number} date - the date to be changed
       * @param {Number} amount - the amount of ISO week-numbering years to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
       * @returns {Date} the new date with the ISO week-numbering years added
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // Add 5 ISO week-numbering years to 2 July 2010:
       * var result = addISOWeekYears(new Date(2010, 6, 2), 5)
       * //=> Fri Jun 26 2015 00:00:00
       */


      function addISOWeekYears(dirtyDate, dirtyAmount) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(2, arguments);
        var amount = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyAmount);
        return Object(_setISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(dirtyDate, Object(_getISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate) + amount);
      }
      /***/

    },

    /***/
    "GRuw": function GRuw(module, exports, __webpack_require__) {
      ;

      (function (root, factory, undef) {
        if (true) {
          // CommonJS
          module.exports = exports = factory(__webpack_require__(
          /*! ./core */
          "Ib8C"), __webpack_require__(
          /*! ./sha256 */
          "lPiR"));
        } else {}
      })(this, function (CryptoJS) {
        (function () {
          // Shortcuts
          var C = CryptoJS;
          var C_lib = C.lib;
          var WordArray = C_lib.WordArray;
          var C_algo = C.algo;
          var SHA256 = C_algo.SHA256;
          /**
           * SHA-224 hash algorithm.
           */

          var SHA224 = C_algo.SHA224 = SHA256.extend({
            _doReset: function _doReset() {
              this._hash = new WordArray.init([0xc1059ed8, 0x367cd507, 0x3070dd17, 0xf70e5939, 0xffc00b31, 0x68581511, 0x64f98fa7, 0xbefa4fa4]);
            },
            _doFinalize: function _doFinalize() {
              var hash = SHA256._doFinalize.call(this);

              hash.sigBytes -= 4;
              return hash;
            }
          });
          /**
           * Shortcut function to the hasher's object interface.
           *
           * @param {WordArray|string} message The message to hash.
           *
           * @return {WordArray} The hash.
           *
           * @static
           *
           * @example
           *
           *     var hash = CryptoJS.SHA224('message');
           *     var hash = CryptoJS.SHA224(wordArray);
           */

          C.SHA224 = SHA256._createHelper(SHA224);
          /**
           * Shortcut function to the HMAC's object interface.
           *
           * @param {WordArray|string} message The message to hash.
           * @param {WordArray|string} key The secret key.
           *
           * @return {WordArray} The HMAC.
           *
           * @static
           *
           * @example
           *
           *     var hmac = CryptoJS.HmacSHA224(message, key);
           */

          C.HmacSHA224 = SHA256._createHmacHelper(SHA224);
        })();

        return CryptoJS.SHA224;
      });
      /***/

    },

    /***/
    "GS7A": function GS7A(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "AUTO_STYLE", function () {
        return AUTO_STYLE;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "AnimationBuilder", function () {
        return AnimationBuilder;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "AnimationFactory", function () {
        return AnimationFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NoopAnimationPlayer", function () {
        return NoopAnimationPlayer;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "animate", function () {
        return animate;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "animateChild", function () {
        return animateChild;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "animation", function () {
        return animation;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "group", function () {
        return group;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "keyframes", function () {
        return keyframes;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "query", function () {
        return query;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "sequence", function () {
        return sequence;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "stagger", function () {
        return stagger;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "state", function () {
        return state;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "style", function () {
        return style;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "transition", function () {
        return transition;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "trigger", function () {
        return trigger;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "useAnimation", function () {
        return useAnimation;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵAnimationGroupPlayer", function () {
        return AnimationGroupPlayer;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵPRE_STYLE", function () {
        return ɵPRE_STYLE;
      });
      /**
       * @license Angular v11.0.0
       * (c) 2010-2020 Google LLC. https://angular.io/
       * License: MIT
       */

      /**
       * An injectable service that produces an animation sequence programmatically within an
       * Angular component or directive.
       * Provided by the `BrowserAnimationsModule` or `NoopAnimationsModule`.
       *
       * @usageNotes
       *
       * To use this service, add it to your component or directive as a dependency.
       * The service is instantiated along with your component.
       *
       * Apps do not typically need to create their own animation players, but if you
       * do need to, follow these steps:
       *
       * 1. Use the `build()` method to create a programmatic animation using the
       * `animate()` function. The method returns an `AnimationFactory` instance.
       *
       * 2. Use the factory object to create an `AnimationPlayer` and attach it to a DOM element.
       *
       * 3. Use the player object to control the animation programmatically.
       *
       * For example:
       *
       * ```ts
       * // import the service from BrowserAnimationsModule
       * import {AnimationBuilder} from '@angular/animations';
       * // require the service as a dependency
       * class MyCmp {
       *   constructor(private _builder: AnimationBuilder) {}
       *
       *   makeAnimation(element: any) {
       *     // first define a reusable animation
       *     const myAnimation = this._builder.build([
       *       style({ width: 0 }),
       *       animate(1000, style({ width: '100px' }))
       *     ]);
       *
       *     // use the returned factory object to create a player
       *     const player = myAnimation.create(element);
       *
       *     player.play();
       *   }
       * }
       * ```
       *
       * @publicApi
       */


      var AnimationBuilder = function AnimationBuilder() {
        _classCallCheck2(this, AnimationBuilder);
      };
      /**
       * A factory object returned from the `AnimationBuilder`.`build()` method.
       *
       * @publicApi
       */


      var AnimationFactory = function AnimationFactory() {
        _classCallCheck2(this, AnimationFactory);
      };
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Specifies automatic styling.
       *
       * @publicApi
       */


      var AUTO_STYLE = '*';
      /**
       * Creates a named animation trigger, containing a  list of `state()`
       * and `transition()` entries to be evaluated when the expression
       * bound to the trigger changes.
       *
       * @param name An identifying string.
       * @param definitions  An animation definition object, containing an array of `state()`
       * and `transition()` declarations.
       *
       * @return An object that encapsulates the trigger data.
       *
       * @usageNotes
       * Define an animation trigger in the `animations` section of `@Component` metadata.
       * In the template, reference the trigger by name and bind it to a trigger expression that
       * evaluates to a defined animation state, using the following format:
       *
       * `[@triggerName]="expression"`
       *
       * Animation trigger bindings convert all values to strings, and then match the
       * previous and current values against any linked transitions.
       * Booleans can be specified as `1` or `true` and `0` or `false`.
       *
       * ### Usage Example
       *
       * The following example creates an animation trigger reference based on the provided
       * name value.
       * The provided animation value is expected to be an array consisting of state and
       * transition declarations.
       *
       * ```typescript
       * @Component({
       *   selector: "my-component",
       *   templateUrl: "my-component-tpl.html",
       *   animations: [
       *     trigger("myAnimationTrigger", [
       *       state(...),
       *       state(...),
       *       transition(...),
       *       transition(...)
       *     ])
       *   ]
       * })
       * class MyComponent {
       *   myStatusExp = "something";
       * }
       * ```
       *
       * The template associated with this component makes use of the defined trigger
       * by binding to an element within its template code.
       *
       * ```html
       * <!-- somewhere inside of my-component-tpl.html -->
       * <div [@myAnimationTrigger]="myStatusExp">...</div>
       * ```
       *
       * ### Using an inline function
       * The `transition` animation method also supports reading an inline function which can decide
       * if its associated animation should be run.
       *
       * ```typescript
       * // this method is run each time the `myAnimationTrigger` trigger value changes.
       * function myInlineMatcherFn(fromState: string, toState: string, element: any, params: {[key:
       string]: any}): boolean {
       *   // notice that `element` and `params` are also available here
       *   return toState == 'yes-please-animate';
       * }
       *
       * @Component({
       *   selector: 'my-component',
       *   templateUrl: 'my-component-tpl.html',
       *   animations: [
       *     trigger('myAnimationTrigger', [
       *       transition(myInlineMatcherFn, [
       *         // the animation sequence code
       *       ]),
       *     ])
       *   ]
       * })
       * class MyComponent {
       *   myStatusExp = "yes-please-animate";
       * }
       * ```
       *
       * ### Disabling Animations
       * When true, the special animation control binding `@.disabled` binding prevents
       * all animations from rendering.
       * Place the  `@.disabled` binding on an element to disable
       * animations on the element itself, as well as any inner animation triggers
       * within the element.
       *
       * The following example shows how to use this feature:
       *
       * ```typescript
       * @Component({
       *   selector: 'my-component',
       *   template: `
       *     <div [@.disabled]="isDisabled">
       *       <div [@childAnimation]="exp"></div>
       *     </div>
       *   `,
       *   animations: [
       *     trigger("childAnimation", [
       *       // ...
       *     ])
       *   ]
       * })
       * class MyComponent {
       *   isDisabled = true;
       *   exp = '...';
       * }
       * ```
       *
       * When `@.disabled` is true, it prevents the `@childAnimation` trigger from animating,
       * along with any inner animations.
       *
       * ### Disable animations application-wide
       * When an area of the template is set to have animations disabled,
       * **all** inner components have their animations disabled as well.
       * This means that you can disable all animations for an app
       * by placing a host binding set on `@.disabled` on the topmost Angular component.
       *
       * ```typescript
       * import {Component, HostBinding} from '@angular/core';
       *
       * @Component({
       *   selector: 'app-component',
       *   templateUrl: 'app.component.html',
       * })
       * class AppComponent {
       *   @HostBinding('@.disabled')
       *   public animationsDisabled = true;
       * }
       * ```
       *
       * ### Overriding disablement of inner animations
       * Despite inner animations being disabled, a parent animation can `query()`
       * for inner elements located in disabled areas of the template and still animate
       * them if needed. This is also the case for when a sub animation is
       * queried by a parent and then later animated using `animateChild()`.
       *
       * ### Detecting when an animation is disabled
       * If a region of the DOM (or the entire application) has its animations disabled, the animation
       * trigger callbacks still fire, but for zero seconds. When the callback fires, it provides
       * an instance of an `AnimationEvent`. If animations are disabled,
       * the `.disabled` flag on the event is true.
       *
       * @publicApi
       */

      function trigger(name, definitions) {
        return {
          type: 7
          /* Trigger */
          ,
          name: name,
          definitions: definitions,
          options: {}
        };
      }
      /**
       * Defines an animation step that combines styling information with timing information.
       *
       * @param timings Sets `AnimateTimings` for the parent animation.
       * A string in the format "duration [delay] [easing]".
       *  - Duration and delay are expressed as a number and optional time unit,
       * such as "1s" or "10ms" for one second and 10 milliseconds, respectively.
       * The default unit is milliseconds.
       *  - The easing value controls how the animation accelerates and decelerates
       * during its runtime. Value is one of  `ease`, `ease-in`, `ease-out`,
       * `ease-in-out`, or a `cubic-bezier()` function call.
       * If not supplied, no easing is applied.
       *
       * For example, the string "1s 100ms ease-out" specifies a duration of
       * 1000 milliseconds, and delay of 100 ms, and the "ease-out" easing style,
       * which decelerates near the end of the duration.
       * @param styles Sets AnimationStyles for the parent animation.
       * A function call to either `style()` or `keyframes()`
       * that returns a collection of CSS style entries to be applied to the parent animation.
       * When null, uses the styles from the destination state.
       * This is useful when describing an animation step that will complete an animation;
       * see "Animating to the final state" in `transitions()`.
       * @returns An object that encapsulates the animation step.
       *
       * @usageNotes
       * Call within an animation `sequence()`, `{@link animations/group group()}`, or
       * `transition()` call to specify an animation step
       * that applies given style data to the parent animation for a given amount of time.
       *
       * ### Syntax Examples
       * **Timing examples**
       *
       * The following examples show various `timings` specifications.
       * - `animate(500)` : Duration is 500 milliseconds.
       * - `animate("1s")` : Duration is 1000 milliseconds.
       * - `animate("100ms 0.5s")` : Duration is 100 milliseconds, delay is 500 milliseconds.
       * - `animate("5s ease-in")` : Duration is 5000 milliseconds, easing in.
       * - `animate("5s 10ms cubic-bezier(.17,.67,.88,.1)")` : Duration is 5000 milliseconds, delay is 10
       * milliseconds, easing according to a bezier curve.
       *
       * **Style examples**
       *
       * The following example calls `style()` to set a single CSS style.
       * ```typescript
       * animate(500, style({ background: "red" }))
       * ```
       * The following example calls `keyframes()` to set a CSS style
       * to different values for successive keyframes.
       * ```typescript
       * animate(500, keyframes(
       *  [
       *   style({ background: "blue" })),
       *   style({ background: "red" }))
       *  ])
       * ```
       *
       * @publicApi
       */


      function animate(timings) {
        var styles = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
        return {
          type: 4
          /* Animate */
          ,
          styles: styles,
          timings: timings
        };
      }
      /**
       * @description Defines a list of animation steps to be run in parallel.
       *
       * @param steps An array of animation step objects.
       * - When steps are defined by `style()` or `animate()`
       * function calls, each call within the group is executed instantly.
       * - To specify offset styles to be applied at a later time, define steps with
       * `keyframes()`, or use `animate()` calls with a delay value.
       * For example:
       *
       * ```typescript
       * group([
       *   animate("1s", style({ background: "black" })),
       *   animate("2s", style({ color: "white" }))
       * ])
       * ```
       *
       * @param options An options object containing a delay and
       * developer-defined parameters that provide styling defaults and
       * can be overridden on invocation.
       *
       * @return An object that encapsulates the group data.
       *
       * @usageNotes
       * Grouped animations are useful when a series of styles must be
       * animated at different starting times and closed off at different ending times.
       *
       * When called within a `sequence()` or a
       * `transition()` call, does not continue to the next
       * instruction until all of the inner animation steps have completed.
       *
       * @publicApi
       */


      function group(steps) {
        var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
        return {
          type: 3
          /* Group */
          ,
          steps: steps,
          options: options
        };
      }
      /**
       * Defines a list of animation steps to be run sequentially, one by one.
       *
       * @param steps An array of animation step objects.
       * - Steps defined by `style()` calls apply the styling data immediately.
       * - Steps defined by `animate()` calls apply the styling data over time
       *   as specified by the timing data.
       *
       * ```typescript
       * sequence([
       *   style({ opacity: 0 }),
       *   animate("1s", style({ opacity: 1 }))
       * ])
       * ```
       *
       * @param options An options object containing a delay and
       * developer-defined parameters that provide styling defaults and
       * can be overridden on invocation.
       *
       * @return An object that encapsulates the sequence data.
       *
       * @usageNotes
       * When you pass an array of steps to a
       * `transition()` call, the steps run sequentially by default.
       * Compare this to the `{@link animations/group group()}` call, which runs animation steps in
       *parallel.
       *
       * When a sequence is used within a `{@link animations/group group()}` or a `transition()` call,
       * execution continues to the next instruction only after each of the inner animation
       * steps have completed.
       *
       * @publicApi
       **/


      function sequence(steps) {
        var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
        return {
          type: 2
          /* Sequence */
          ,
          steps: steps,
          options: options
        };
      }
      /**
       * Declares a key/value object containing CSS properties/styles that
       * can then be used for an animation `state`, within an animation `sequence`,
       * or as styling data for calls to `animate()` and `keyframes()`.
       *
       * @param tokens A set of CSS styles or HTML styles associated with an animation state.
       * The value can be any of the following:
       * - A key-value style pair associating a CSS property with a value.
       * - An array of key-value style pairs.
       * - An asterisk (*), to use auto-styling, where styles are derived from the element
       * being animated and applied to the animation when it starts.
       *
       * Auto-styling can be used to define a state that depends on layout or other
       * environmental factors.
       *
       * @return An object that encapsulates the style data.
       *
       * @usageNotes
       * The following examples create animation styles that collect a set of
       * CSS property values:
       *
       * ```typescript
       * // string values for CSS properties
       * style({ background: "red", color: "blue" })
       *
       * // numerical pixel values
       * style({ width: 100, height: 0 })
       * ```
       *
       * The following example uses auto-styling to allow a component to animate from
       * a height of 0 up to the height of the parent element:
       *
       * ```
       * style({ height: 0 }),
       * animate("1s", style({ height: "*" }))
       * ```
       *
       * @publicApi
       **/


      function style(tokens) {
        return {
          type: 6
          /* Style */
          ,
          styles: tokens,
          offset: null
        };
      }
      /**
       * Declares an animation state within a trigger attached to an element.
       *
       * @param name One or more names for the defined state in a comma-separated string.
       * The following reserved state names can be supplied to define a style for specific use
       * cases:
       *
       * - `void` You can associate styles with this name to be used when
       * the element is detached from the application. For example, when an `ngIf` evaluates
       * to false, the state of the associated element is void.
       *  - `*` (asterisk) Indicates the default state. You can associate styles with this name
       * to be used as the fallback when the state that is being animated is not declared
       * within the trigger.
       *
       * @param styles A set of CSS styles associated with this state, created using the
       * `style()` function.
       * This set of styles persists on the element once the state has been reached.
       * @param options Parameters that can be passed to the state when it is invoked.
       * 0 or more key-value pairs.
       * @return An object that encapsulates the new state data.
       *
       * @usageNotes
       * Use the `trigger()` function to register states to an animation trigger.
       * Use the `transition()` function to animate between states.
       * When a state is active within a component, its associated styles persist on the element,
       * even when the animation ends.
       *
       * @publicApi
       **/


      function state(name, styles, options) {
        return {
          type: 0
          /* State */
          ,
          name: name,
          styles: styles,
          options: options
        };
      }
      /**
       * Defines a set of animation styles, associating each style with an optional `offset` value.
       *
       * @param steps A set of animation styles with optional offset data.
       * The optional `offset` value for a style specifies a percentage of the total animation
       * time at which that style is applied.
       * @returns An object that encapsulates the keyframes data.
       *
       * @usageNotes
       * Use with the `animate()` call. Instead of applying animations
       * from the current state
       * to the destination state, keyframes describe how each style entry is applied and at what point
       * within the animation arc.
       * Compare [CSS Keyframe Animations](https://www.w3schools.com/css/css3_animations.asp).
       *
       * ### Usage
       *
       * In the following example, the offset values describe
       * when each `backgroundColor` value is applied. The color is red at the start, and changes to
       * blue when 20% of the total time has elapsed.
       *
       * ```typescript
       * // the provided offset values
       * animate("5s", keyframes([
       *   style({ backgroundColor: "red", offset: 0 }),
       *   style({ backgroundColor: "blue", offset: 0.2 }),
       *   style({ backgroundColor: "orange", offset: 0.3 }),
       *   style({ backgroundColor: "black", offset: 1 })
       * ]))
       * ```
       *
       * If there are no `offset` values specified in the style entries, the offsets
       * are calculated automatically.
       *
       * ```typescript
       * animate("5s", keyframes([
       *   style({ backgroundColor: "red" }) // offset = 0
       *   style({ backgroundColor: "blue" }) // offset = 0.33
       *   style({ backgroundColor: "orange" }) // offset = 0.66
       *   style({ backgroundColor: "black" }) // offset = 1
       * ]))
       *```
      
       * @publicApi
       */


      function keyframes(steps) {
        return {
          type: 5
          /* Keyframes */
          ,
          steps: steps
        };
      }
      /**
       * Declares an animation transition as a sequence of animation steps to run when a given
       * condition is satisfied. The condition is a Boolean expression or function that compares
       * the previous and current animation states, and returns true if this transition should occur.
       * When the state criteria of a defined transition are met, the associated animation is
       * triggered.
       *
       * @param stateChangeExpr A Boolean expression or function that compares the previous and current
       * animation states, and returns true if this transition should occur. Note that  "true" and "false"
       * match 1 and 0, respectively. An expression is evaluated each time a state change occurs in the
       * animation trigger element.
       * The animation steps run when the expression evaluates to true.
       *
       * - A state-change string takes the form "state1 => state2", where each side is a defined animation
       * state, or an asterix (*) to refer to a dynamic start or end state.
       *   - The expression string can contain multiple comma-separated statements;
       * for example "state1 => state2, state3 => state4".
       *   - Special values `:enter` and `:leave` initiate a transition on the entry and exit states,
       * equivalent to  "void => *"  and "* => void".
       *   - Special values `:increment` and `:decrement` initiate a transition when a numeric value has
       * increased or decreased in value.
       * - A function is executed each time a state change occurs in the animation trigger element.
       * The animation steps run when the function returns true.
       *
       * @param steps One or more animation objects, as returned by the `animate()` or
       * `sequence()` function, that form a transformation from one state to another.
       * A sequence is used by default when you pass an array.
       * @param options An options object that can contain a delay value for the start of the animation,
       * and additional developer-defined parameters. Provided values for additional parameters are used
       * as defaults, and override values can be passed to the caller on invocation.
       * @returns An object that encapsulates the transition data.
       *
       * @usageNotes
       * The template associated with a component binds an animation trigger to an element.
       *
       * ```HTML
       * <!-- somewhere inside of my-component-tpl.html -->
       * <div [@myAnimationTrigger]="myStatusExp">...</div>
       * ```
       *
       * All transitions are defined within an animation trigger,
       * along with named states that the transitions change to and from.
       *
       * ```typescript
       * trigger("myAnimationTrigger", [
       *  // define states
       *  state("on", style({ background: "green" })),
       *  state("off", style({ background: "grey" })),
       *  ...]
       * ```
       *
       * Note that when you call the `sequence()` function within a `{@link animations/group group()}`
       * or a `transition()` call, execution does not continue to the next instruction
       * until each of the inner animation steps have completed.
       *
       * ### Syntax examples
       *
       * The following examples define transitions between the two defined states (and default states),
       * using various options:
       *
       * ```typescript
       * // Transition occurs when the state value
       * // bound to "myAnimationTrigger" changes from "on" to "off"
       * transition("on => off", animate(500))
       * // Run the same animation for both directions
       * transition("on <=> off", animate(500))
       * // Define multiple state-change pairs separated by commas
       * transition("on => off, off => void", animate(500))
       * ```
       *
       * ### Special values for state-change expressions
       *
       * - Catch-all state change for when an element is inserted into the page and the
       * destination state is unknown:
       *
       * ```typescript
       * transition("void => *", [
       *  style({ opacity: 0 }),
       *  animate(500)
       *  ])
       * ```
       *
       * - Capture a state change between any states:
       *
       *  `transition("* => *", animate("1s 0s"))`
       *
       * - Entry and exit transitions:
       *
       * ```typescript
       * transition(":enter", [
       *   style({ opacity: 0 }),
       *   animate(500, style({ opacity: 1 }))
       *   ]),
       * transition(":leave", [
       *   animate(500, style({ opacity: 0 }))
       *   ])
       * ```
       *
       * - Use `:increment` and `:decrement` to initiate transitions:
       *
       * ```typescript
       * transition(":increment", group([
       *  query(':enter', [
       *     style({ left: '100%' }),
       *     animate('0.5s ease-out', style('*'))
       *   ]),
       *  query(':leave', [
       *     animate('0.5s ease-out', style({ left: '-100%' }))
       *  ])
       * ]))
       *
       * transition(":decrement", group([
       *  query(':enter', [
       *     style({ left: '100%' }),
       *     animate('0.5s ease-out', style('*'))
       *   ]),
       *  query(':leave', [
       *     animate('0.5s ease-out', style({ left: '-100%' }))
       *  ])
       * ]))
       * ```
       *
       * ### State-change functions
       *
       * Here is an example of a `fromState` specified as a state-change function that invokes an
       * animation when true:
       *
       * ```typescript
       * transition((fromState, toState) =>
       *  {
       *   return fromState == "off" && toState == "on";
       *  },
       *  animate("1s 0s"))
       * ```
       *
       * ### Animating to the final state
       *
       * If the final step in a transition is a call to `animate()` that uses a timing value
       * with no style data, that step is automatically considered the final animation arc,
       * for the element to reach the final state. Angular automatically adds or removes
       * CSS styles to ensure that the element is in the correct final state.
       *
       * The following example defines a transition that starts by hiding the element,
       * then makes sure that it animates properly to whatever state is currently active for trigger:
       *
       * ```typescript
       * transition("void => *", [
       *   style({ opacity: 0 }),
       *   animate(500)
       *  ])
       * ```
       * ### Boolean value matching
       * If a trigger binding value is a Boolean, it can be matched using a transition expression
       * that compares true and false or 1 and 0. For example:
       *
       * ```
       * // in the template
       * <div [@openClose]="open ? true : false">...</div>
       * // in the component metadata
       * trigger('openClose', [
       *   state('true', style({ height: '*' })),
       *   state('false', style({ height: '0px' })),
       *   transition('false <=> true', animate(500))
       * ])
       * ```
       *
       * @publicApi
       **/


      function transition(stateChangeExpr, steps) {
        var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
        return {
          type: 1
          /* Transition */
          ,
          expr: stateChangeExpr,
          animation: steps,
          options: options
        };
      }
      /**
       * Produces a reusable animation that can be invoked in another animation or sequence,
       * by calling the `useAnimation()` function.
       *
       * @param steps One or more animation objects, as returned by the `animate()`
       * or `sequence()` function, that form a transformation from one state to another.
       * A sequence is used by default when you pass an array.
       * @param options An options object that can contain a delay value for the start of the
       * animation, and additional developer-defined parameters.
       * Provided values for additional parameters are used as defaults,
       * and override values can be passed to the caller on invocation.
       * @returns An object that encapsulates the animation data.
       *
       * @usageNotes
       * The following example defines a reusable animation, providing some default parameter
       * values.
       *
       * ```typescript
       * var fadeAnimation = animation([
       *   style({ opacity: '{{ start }}' }),
       *   animate('{{ time }}',
       *   style({ opacity: '{{ end }}'}))
       *   ],
       *   { params: { time: '1000ms', start: 0, end: 1 }});
       * ```
       *
       * The following invokes the defined animation with a call to `useAnimation()`,
       * passing in override parameter values.
       *
       * ```js
       * useAnimation(fadeAnimation, {
       *   params: {
       *     time: '2s',
       *     start: 1,
       *     end: 0
       *   }
       * })
       * ```
       *
       * If any of the passed-in parameter values are missing from this call,
       * the default values are used. If one or more parameter values are missing before a step is
       * animated, `useAnimation()` throws an error.
       *
       * @publicApi
       */


      function animation(steps) {
        var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
        return {
          type: 8
          /* Reference */
          ,
          animation: steps,
          options: options
        };
      }
      /**
       * Executes a queried inner animation element within an animation sequence.
       *
       * @param options An options object that can contain a delay value for the start of the
       * animation, and additional override values for developer-defined parameters.
       * @return An object that encapsulates the child animation data.
       *
       * @usageNotes
       * Each time an animation is triggered in Angular, the parent animation
       * has priority and any child animations are blocked. In order
       * for a child animation to run, the parent animation must query each of the elements
       * containing child animations, and run them using this function.
       *
       * Note that this feature is designed to be used with `query()` and it will only work
       * with animations that are assigned using the Angular animation library. CSS keyframes
       * and transitions are not handled by this API.
       *
       * @publicApi
       */


      function animateChild() {
        var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
        return {
          type: 9
          /* AnimateChild */
          ,
          options: options
        };
      }
      /**
       * Starts a reusable animation that is created using the `animation()` function.
       *
       * @param animation The reusable animation to start.
       * @param options An options object that can contain a delay value for the start of
       * the animation, and additional override values for developer-defined parameters.
       * @return An object that contains the animation parameters.
       *
       * @publicApi
       */


      function useAnimation(animation) {
        var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
        return {
          type: 10
          /* AnimateRef */
          ,
          animation: animation,
          options: options
        };
      }
      /**
       * Finds one or more inner elements within the current element that is
       * being animated within a sequence. Use with `animate()`.
       *
       * @param selector The element to query, or a set of elements that contain Angular-specific
       * characteristics, specified with one or more of the following tokens.
       *  - `query(":enter")` or `query(":leave")` : Query for newly inserted/removed elements.
       *  - `query(":animating")` : Query all currently animating elements.
       *  - `query("@triggerName")` : Query elements that contain an animation trigger.
       *  - `query("@*")` : Query all elements that contain an animation triggers.
       *  - `query(":self")` : Include the current element into the animation sequence.
       *
       * @param animation One or more animation steps to apply to the queried element or elements.
       * An array is treated as an animation sequence.
       * @param options An options object. Use the 'limit' field to limit the total number of
       * items to collect.
       * @return An object that encapsulates the query data.
       *
       * @usageNotes
       * Tokens can be merged into a combined query selector string. For example:
       *
       * ```typescript
       *  query(':self, .record:enter, .record:leave, @subTrigger', [...])
       * ```
       *
       * The `query()` function collects multiple elements and works internally by using
       * `element.querySelectorAll`. Use the `limit` field of an options object to limit
       * the total number of items to be collected. For example:
       *
       * ```js
       * query('div', [
       *   animate(...),
       *   animate(...)
       * ], { limit: 1 })
       * ```
       *
       * By default, throws an error when zero items are found. Set the
       * `optional` flag to ignore this error. For example:
       *
       * ```js
       * query('.some-element-that-may-not-be-there', [
       *   animate(...),
       *   animate(...)
       * ], { optional: true })
       * ```
       *
       * ### Usage Example
       *
       * The following example queries for inner elements and animates them
       * individually using `animate()`.
       *
       * ```typescript
       * @Component({
       *   selector: 'inner',
       *   template: `
       *     <div [@queryAnimation]="exp">
       *       <h1>Title</h1>
       *       <div class="content">
       *         Blah blah blah
       *       </div>
       *     </div>
       *   `,
       *   animations: [
       *    trigger('queryAnimation', [
       *      transition('* => goAnimate', [
       *        // hide the inner elements
       *        query('h1', style({ opacity: 0 })),
       *        query('.content', style({ opacity: 0 })),
       *
       *        // animate the inner elements in, one by one
       *        query('h1', animate(1000, style({ opacity: 1 }))),
       *        query('.content', animate(1000, style({ opacity: 1 }))),
       *      ])
       *    ])
       *  ]
       * })
       * class Cmp {
       *   exp = '';
       *
       *   goAnimate() {
       *     this.exp = 'goAnimate';
       *   }
       * }
       * ```
       *
       * @publicApi
       */


      function query(selector, animation) {
        var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
        return {
          type: 11
          /* Query */
          ,
          selector: selector,
          animation: animation,
          options: options
        };
      }
      /**
       * Use within an animation `query()` call to issue a timing gap after
       * each queried item is animated.
       *
       * @param timings A delay value.
       * @param animation One ore more animation steps.
       * @returns An object that encapsulates the stagger data.
       *
       * @usageNotes
       * In the following example, a container element wraps a list of items stamped out
       * by an `ngFor`. The container element contains an animation trigger that will later be set
       * to query for each of the inner items.
       *
       * Each time items are added, the opacity fade-in animation runs,
       * and each removed item is faded out.
       * When either of these animations occur, the stagger effect is
       * applied after each item's animation is started.
       *
       * ```html
       * <!-- list.component.html -->
       * <button (click)="toggle()">Show / Hide Items</button>
       * <hr />
       * <div [@listAnimation]="items.length">
       *   <div *ngFor="let item of items">
       *     {{ item }}
       *   </div>
       * </div>
       * ```
       *
       * Here is the component code:
       *
       * ```typescript
       * import {trigger, transition, style, animate, query, stagger} from '@angular/animations';
       * @Component({
       *   templateUrl: 'list.component.html',
       *   animations: [
       *     trigger('listAnimation', [
       *     ...
       *     ])
       *   ]
       * })
       * class ListComponent {
       *   items = [];
       *
       *   showItems() {
       *     this.items = [0,1,2,3,4];
       *   }
       *
       *   hideItems() {
       *     this.items = [];
       *   }
       *
       *   toggle() {
       *     this.items.length ? this.hideItems() : this.showItems();
       *    }
       *  }
       * ```
       *
       * Here is the animation trigger code:
       *
       * ```typescript
       * trigger('listAnimation', [
       *   transition('* => *', [ // each time the binding value changes
       *     query(':leave', [
       *       stagger(100, [
       *         animate('0.5s', style({ opacity: 0 }))
       *       ])
       *     ]),
       *     query(':enter', [
       *       style({ opacity: 0 }),
       *       stagger(100, [
       *         animate('0.5s', style({ opacity: 1 }))
       *       ])
       *     ])
       *   ])
       * ])
       * ```
       *
       * @publicApi
       */


      function stagger(timings, animation) {
        return {
          type: 12
          /* Stagger */
          ,
          timings: timings,
          animation: animation
        };
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function scheduleMicroTask(cb) {
        Promise.resolve(null).then(cb);
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * An empty programmatic controller for reusable animations.
       * Used internally when animations are disabled, to avoid
       * checking for the null case when an animation player is expected.
       *
       * @see `animate()`
       * @see `AnimationPlayer`
       * @see `GroupPlayer`
       *
       * @publicApi
       */


      var NoopAnimationPlayer = /*#__PURE__*/function () {
        function NoopAnimationPlayer() {
          var duration = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
          var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;

          _classCallCheck2(this, NoopAnimationPlayer);

          this._onDoneFns = [];
          this._onStartFns = [];
          this._onDestroyFns = [];
          this._started = false;
          this._destroyed = false;
          this._finished = false;
          this.parentPlayer = null;
          this.totalTime = duration + delay;
        }

        _createClass2(NoopAnimationPlayer, [{
          key: "_onFinish",
          value: function _onFinish() {
            if (!this._finished) {
              this._finished = true;

              this._onDoneFns.forEach(function (fn) {
                return fn();
              });

              this._onDoneFns = [];
            }
          }
        }, {
          key: "onStart",
          value: function onStart(fn) {
            this._onStartFns.push(fn);
          }
        }, {
          key: "onDone",
          value: function onDone(fn) {
            this._onDoneFns.push(fn);
          }
        }, {
          key: "onDestroy",
          value: function onDestroy(fn) {
            this._onDestroyFns.push(fn);
          }
        }, {
          key: "hasStarted",
          value: function hasStarted() {
            return this._started;
          }
        }, {
          key: "init",
          value: function init() {}
        }, {
          key: "play",
          value: function play() {
            if (!this.hasStarted()) {
              this._onStart();

              this.triggerMicrotask();
            }

            this._started = true;
          }
          /** @internal */

        }, {
          key: "triggerMicrotask",
          value: function triggerMicrotask() {
            var _this471 = this;

            scheduleMicroTask(function () {
              return _this471._onFinish();
            });
          }
        }, {
          key: "_onStart",
          value: function _onStart() {
            this._onStartFns.forEach(function (fn) {
              return fn();
            });

            this._onStartFns = [];
          }
        }, {
          key: "pause",
          value: function pause() {}
        }, {
          key: "restart",
          value: function restart() {}
        }, {
          key: "finish",
          value: function finish() {
            this._onFinish();
          }
        }, {
          key: "destroy",
          value: function destroy() {
            if (!this._destroyed) {
              this._destroyed = true;

              if (!this.hasStarted()) {
                this._onStart();
              }

              this.finish();

              this._onDestroyFns.forEach(function (fn) {
                return fn();
              });

              this._onDestroyFns = [];
            }
          }
        }, {
          key: "reset",
          value: function reset() {}
        }, {
          key: "setPosition",
          value: function setPosition(position) {}
        }, {
          key: "getPosition",
          value: function getPosition() {
            return 0;
          }
          /** @internal */

        }, {
          key: "triggerCallback",
          value: function triggerCallback(phaseName) {
            var methods = phaseName == 'start' ? this._onStartFns : this._onDoneFns;
            methods.forEach(function (fn) {
              return fn();
            });
            methods.length = 0;
          }
        }]);

        return NoopAnimationPlayer;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * A programmatic controller for a group of reusable animations.
       * Used internally to control animations.
       *
       * @see `AnimationPlayer`
       * @see `{@link animations/group group()}`
       *
       */


      var AnimationGroupPlayer = /*#__PURE__*/function () {
        function AnimationGroupPlayer(_players) {
          var _this472 = this;

          _classCallCheck2(this, AnimationGroupPlayer);

          this._onDoneFns = [];
          this._onStartFns = [];
          this._finished = false;
          this._started = false;
          this._destroyed = false;
          this._onDestroyFns = [];
          this.parentPlayer = null;
          this.totalTime = 0;
          this.players = _players;
          var doneCount = 0;
          var destroyCount = 0;
          var startCount = 0;
          var total = this.players.length;

          if (total == 0) {
            scheduleMicroTask(function () {
              return _this472._onFinish();
            });
          } else {
            this.players.forEach(function (player) {
              player.onDone(function () {
                if (++doneCount == total) {
                  _this472._onFinish();
                }
              });
              player.onDestroy(function () {
                if (++destroyCount == total) {
                  _this472._onDestroy();
                }
              });
              player.onStart(function () {
                if (++startCount == total) {
                  _this472._onStart();
                }
              });
            });
          }

          this.totalTime = this.players.reduce(function (time, player) {
            return Math.max(time, player.totalTime);
          }, 0);
        }

        _createClass2(AnimationGroupPlayer, [{
          key: "_onFinish",
          value: function _onFinish() {
            if (!this._finished) {
              this._finished = true;

              this._onDoneFns.forEach(function (fn) {
                return fn();
              });

              this._onDoneFns = [];
            }
          }
        }, {
          key: "init",
          value: function init() {
            this.players.forEach(function (player) {
              return player.init();
            });
          }
        }, {
          key: "onStart",
          value: function onStart(fn) {
            this._onStartFns.push(fn);
          }
        }, {
          key: "_onStart",
          value: function _onStart() {
            if (!this.hasStarted()) {
              this._started = true;

              this._onStartFns.forEach(function (fn) {
                return fn();
              });

              this._onStartFns = [];
            }
          }
        }, {
          key: "onDone",
          value: function onDone(fn) {
            this._onDoneFns.push(fn);
          }
        }, {
          key: "onDestroy",
          value: function onDestroy(fn) {
            this._onDestroyFns.push(fn);
          }
        }, {
          key: "hasStarted",
          value: function hasStarted() {
            return this._started;
          }
        }, {
          key: "play",
          value: function play() {
            if (!this.parentPlayer) {
              this.init();
            }

            this._onStart();

            this.players.forEach(function (player) {
              return player.play();
            });
          }
        }, {
          key: "pause",
          value: function pause() {
            this.players.forEach(function (player) {
              return player.pause();
            });
          }
        }, {
          key: "restart",
          value: function restart() {
            this.players.forEach(function (player) {
              return player.restart();
            });
          }
        }, {
          key: "finish",
          value: function finish() {
            this._onFinish();

            this.players.forEach(function (player) {
              return player.finish();
            });
          }
        }, {
          key: "destroy",
          value: function destroy() {
            this._onDestroy();
          }
        }, {
          key: "_onDestroy",
          value: function _onDestroy() {
            if (!this._destroyed) {
              this._destroyed = true;

              this._onFinish();

              this.players.forEach(function (player) {
                return player.destroy();
              });

              this._onDestroyFns.forEach(function (fn) {
                return fn();
              });

              this._onDestroyFns = [];
            }
          }
        }, {
          key: "reset",
          value: function reset() {
            this.players.forEach(function (player) {
              return player.reset();
            });
            this._destroyed = false;
            this._finished = false;
            this._started = false;
          }
        }, {
          key: "setPosition",
          value: function setPosition(p) {
            var timeAtPosition = p * this.totalTime;
            this.players.forEach(function (player) {
              var position = player.totalTime ? Math.min(1, timeAtPosition / player.totalTime) : 1;
              player.setPosition(position);
            });
          }
        }, {
          key: "getPosition",
          value: function getPosition() {
            var min = 0;
            this.players.forEach(function (player) {
              var p = player.getPosition();
              min = Math.min(p, min);
            });
            return min;
          }
        }, {
          key: "beforeDestroy",
          value: function beforeDestroy() {
            this.players.forEach(function (player) {
              if (player.beforeDestroy) {
                player.beforeDestroy();
              }
            });
          }
          /** @internal */

        }, {
          key: "triggerCallback",
          value: function triggerCallback(phaseName) {
            var methods = phaseName == 'start' ? this._onStartFns : this._onDoneFns;
            methods.forEach(function (fn) {
              return fn();
            });
            methods.length = 0;
          }
        }]);

        return AnimationGroupPlayer;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var ɵPRE_STYLE = '!';
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Generated bundle index. Do not edit.
       */
      //# sourceMappingURL=animations.js.map

      /***/
    },

    /***/
    "GXRp": function GXRp(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "BaseCdkCell", function () {
        return BaseCdkCell;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "BaseRowDef", function () {
        return BaseRowDef;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CDK_ROW_TEMPLATE", function () {
        return CDK_ROW_TEMPLATE;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CDK_TABLE", function () {
        return CDK_TABLE;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CDK_TABLE_TEMPLATE", function () {
        return CDK_TABLE_TEMPLATE;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CdkCell", function () {
        return CdkCell;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CdkCellDef", function () {
        return CdkCellDef;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CdkCellOutlet", function () {
        return CdkCellOutlet;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CdkColumnDef", function () {
        return CdkColumnDef;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CdkFooterCell", function () {
        return CdkFooterCell;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CdkFooterCellDef", function () {
        return CdkFooterCellDef;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CdkFooterRow", function () {
        return CdkFooterRow;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CdkFooterRowDef", function () {
        return CdkFooterRowDef;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CdkHeaderCell", function () {
        return CdkHeaderCell;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CdkHeaderCellDef", function () {
        return CdkHeaderCellDef;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CdkHeaderRow", function () {
        return CdkHeaderRow;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CdkHeaderRowDef", function () {
        return CdkHeaderRowDef;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CdkNoDataRow", function () {
        return CdkNoDataRow;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CdkRow", function () {
        return CdkRow;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CdkRowDef", function () {
        return CdkRowDef;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CdkTable", function () {
        return CdkTable;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CdkTableModule", function () {
        return CdkTableModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CdkTextColumn", function () {
        return CdkTextColumn;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "DataRowOutlet", function () {
        return DataRowOutlet;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "FooterRowOutlet", function () {
        return FooterRowOutlet;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "HeaderRowOutlet", function () {
        return HeaderRowOutlet;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NoDataRowOutlet", function () {
        return NoDataRowOutlet;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "STICKY_DIRECTIONS", function () {
        return STICKY_DIRECTIONS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "StickyStyler", function () {
        return StickyStyler;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TEXT_COLUMN_OPTIONS", function () {
        return TEXT_COLUMN_OPTIONS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "_COALESCED_STYLE_SCHEDULER", function () {
        return _COALESCED_STYLE_SCHEDULER;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "_CoalescedStyleScheduler", function () {
        return _CoalescedStyleScheduler;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "_Schedule", function () {
        return _Schedule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "mixinHasStickyInput", function () {
        return mixinHasStickyInput;
      });
      /* harmony import */


      var _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/cdk/bidi */
      "9gLZ");
      /* harmony import */


      var _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/cdk/coercion */
      "8LU1");
      /* harmony import */


      var _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! @angular/cdk/collections */
      "CtHx");
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /* harmony import */


      var _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! @angular/cdk/platform */
      "SCoL");
      /* harmony import */


      var _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! @angular/cdk/scrolling */
      "7KAL");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "DataSource", function () {
        return _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_2__["DataSource"];
      });
      /* harmony import */


      var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
      /*! @angular/common */
      "SVse");
      /* harmony import */


      var rxjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
      /*! rxjs */
      "qCKp");
      /* harmony import */


      var rxjs_operators__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
      /*! rxjs/operators */
      "kU1M");

      var _c0 = [[["caption"]], [["colgroup"], ["col"]]];
      var _c1 = ["caption", "colgroup, col"];

      function CdkTextColumn_th_1_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "th", 3);

          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1);

          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
        }

        if (rf & 2) {
          var ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();

          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵstyleProp"]("text-align", ctx_r0.justify);

          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);

          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", ctx_r0.headerText, " ");
        }
      }

      function CdkTextColumn_td_2_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "td", 4);

          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](1);

          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
        }

        if (rf & 2) {
          var data_r2 = ctx.$implicit;

          var ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();

          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵstyleProp"]("text-align", ctx_r1.justify);

          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);

          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", ctx_r1.dataAccessor(data_r2, ctx_r1.name), " ");
        }
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Mixin to provide a directive with a function that checks if the sticky input has been
       * changed since the last time the function was called. Essentially adds a dirty-check to the
       * sticky value.
       * @docs-private
       */


      function mixinHasStickyInput(base) {
        return /*#__PURE__*/function (_base) {
          _inherits2(_class2, _base);

          var _super194 = _createSuper2(_class2);

          function _class2() {
            var _this473;

            _classCallCheck2(this, _class2);

            for (var _len41 = arguments.length, args = new Array(_len41), _key43 = 0; _key43 < _len41; _key43++) {
              args[_key43] = arguments[_key43];
            }

            _this473 = _super194.call.apply(_super194, [this].concat(args));
            _this473._sticky = false;
            /** Whether the sticky input has changed since it was last checked. */

            _this473._hasStickyChanged = false;
            return _this473;
          }
          /** Whether sticky positioning should be applied. */


          _createClass2(_class2, [{
            key: "sticky",
            get: function get() {
              return this._sticky;
            },
            set: function set(v) {
              var prevValue = this._sticky;
              this._sticky = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_1__["coerceBooleanProperty"])(v);
              this._hasStickyChanged = prevValue !== this._sticky;
            }
            /** Whether the sticky value has changed since this was last called. */

          }, {
            key: "hasStickyChanged",
            value: function hasStickyChanged() {
              var hasStickyChanged = this._hasStickyChanged;
              this._hasStickyChanged = false;
              return hasStickyChanged;
            }
            /** Resets the dirty check for cases where the sticky state has been used without checking. */

          }, {
            key: "resetStickyChanged",
            value: function resetStickyChanged() {
              this._hasStickyChanged = false;
            }
          }]);

          return _class2;
        }(base);
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Used to provide a table to some of the sub-components without causing a circular dependency.
       * @docs-private
       */


      var CDK_TABLE = new _angular_core__WEBPACK_IMPORTED_MODULE_3__["InjectionToken"]('CDK_TABLE');
      /** Injection token that can be used to specify the text column options. */

      var TEXT_COLUMN_OPTIONS = new _angular_core__WEBPACK_IMPORTED_MODULE_3__["InjectionToken"]('text-column-options');
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Cell definition for a CDK table.
       * Captures the template of a column's data row cell as well as cell-specific properties.
       */

      var CdkCellDef = function CdkCellDef(
      /** @docs-private */
      template) {
        _classCallCheck2(this, CdkCellDef);

        this.template = template;
      };

      CdkCellDef.ɵfac = function CdkCellDef_Factory(t) {
        return new (t || CdkCellDef)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["TemplateRef"]));
      };

      CdkCellDef.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineDirective"]({
        type: CdkCellDef,
        selectors: [["", "cdkCellDef", ""]]
      });

      CdkCellDef.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["TemplateRef"]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](CdkCellDef, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Directive"],
          args: [{
            selector: '[cdkCellDef]'
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["TemplateRef"]
          }];
        }, null);
      })();
      /**
       * Header cell definition for a CDK table.
       * Captures the template of a column's header cell and as well as cell-specific properties.
       */


      var CdkHeaderCellDef = function CdkHeaderCellDef(
      /** @docs-private */
      template) {
        _classCallCheck2(this, CdkHeaderCellDef);

        this.template = template;
      };

      CdkHeaderCellDef.ɵfac = function CdkHeaderCellDef_Factory(t) {
        return new (t || CdkHeaderCellDef)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["TemplateRef"]));
      };

      CdkHeaderCellDef.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineDirective"]({
        type: CdkHeaderCellDef,
        selectors: [["", "cdkHeaderCellDef", ""]]
      });

      CdkHeaderCellDef.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["TemplateRef"]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](CdkHeaderCellDef, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Directive"],
          args: [{
            selector: '[cdkHeaderCellDef]'
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["TemplateRef"]
          }];
        }, null);
      })();
      /**
       * Footer cell definition for a CDK table.
       * Captures the template of a column's footer cell and as well as cell-specific properties.
       */


      var CdkFooterCellDef = function CdkFooterCellDef(
      /** @docs-private */
      template) {
        _classCallCheck2(this, CdkFooterCellDef);

        this.template = template;
      };

      CdkFooterCellDef.ɵfac = function CdkFooterCellDef_Factory(t) {
        return new (t || CdkFooterCellDef)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["TemplateRef"]));
      };

      CdkFooterCellDef.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineDirective"]({
        type: CdkFooterCellDef,
        selectors: [["", "cdkFooterCellDef", ""]]
      });

      CdkFooterCellDef.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["TemplateRef"]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](CdkFooterCellDef, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Directive"],
          args: [{
            selector: '[cdkFooterCellDef]'
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["TemplateRef"]
          }];
        }, null);
      })(); // Boilerplate for applying mixins to CdkColumnDef.

      /** @docs-private */


      var CdkColumnDefBase = function CdkColumnDefBase() {
        _classCallCheck2(this, CdkColumnDefBase);
      };

      var _CdkColumnDefBase = mixinHasStickyInput(CdkColumnDefBase);
      /**
       * Column definition for the CDK table.
       * Defines a set of cells available for a table column.
       */


      var CdkColumnDef = /*#__PURE__*/function (_CdkColumnDefBase2) {
        _inherits2(CdkColumnDef, _CdkColumnDefBase2);

        var _super195 = _createSuper2(CdkColumnDef);

        function CdkColumnDef(_table) {
          var _this474;

          _classCallCheck2(this, CdkColumnDef);

          _this474 = _super195.call(this);
          _this474._table = _table;
          _this474._stickyEnd = false;
          return _this474;
        }
        /** Unique name for this column. */


        _createClass2(CdkColumnDef, [{
          key: "name",
          get: function get() {
            return this._name;
          },
          set: function set(name) {
            this._setNameInput(name);
          }
          /**
           * Whether this column should be sticky positioned on the end of the row. Should make sure
           * that it mimics the `CanStick` mixin such that `_hasStickyChanged` is set to true if the value
           * has been changed.
           */

        }, {
          key: "stickyEnd",
          get: function get() {
            return this._stickyEnd;
          },
          set: function set(v) {
            var prevValue = this._stickyEnd;
            this._stickyEnd = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_1__["coerceBooleanProperty"])(v);
            this._hasStickyChanged = prevValue !== this._stickyEnd;
          }
          /**
           * Overridable method that sets the css classes that will be added to every cell in this
           * column.
           * In the future, columnCssClassName will change from type string[] to string and this
           * will set a single string value.
           * @docs-private
           */

        }, {
          key: "_updateColumnCssClassName",
          value: function _updateColumnCssClassName() {
            this._columnCssClassName = ["cdk-column-".concat(this.cssClassFriendlyName)];
          }
          /**
           * This has been extracted to a util because of TS 4 and VE.
           * View Engine doesn't support property rename inheritance.
           * TS 4.0 doesn't allow properties to override accessors or vice-versa.
           * @docs-private
           */

        }, {
          key: "_setNameInput",
          value: function _setNameInput(value) {
            // If the directive is set without a name (updated programatically), then this setter will
            // trigger with an empty string and should not overwrite the programatically set value.
            if (value) {
              this._name = value;
              this.cssClassFriendlyName = value.replace(/[^a-z0-9_-]/ig, '-');

              this._updateColumnCssClassName();
            }
          }
        }]);

        return CdkColumnDef;
      }(_CdkColumnDefBase);

      CdkColumnDef.ɵfac = function CdkColumnDef_Factory(t) {
        return new (t || CdkColumnDef)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](CDK_TABLE, 8));
      };

      CdkColumnDef.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineDirective"]({
        type: CdkColumnDef,
        selectors: [["", "cdkColumnDef", ""]],
        contentQueries: function CdkColumnDef_ContentQueries(rf, ctx, dirIndex) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵcontentQuery"](dirIndex, CdkCellDef, true);

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵcontentQuery"](dirIndex, CdkHeaderCellDef, true);

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵcontentQuery"](dirIndex, CdkFooterCellDef, true);
          }

          if (rf & 2) {
            var _t;

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵloadQuery"]()) && (ctx.cell = _t.first);
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵloadQuery"]()) && (ctx.headerCell = _t.first);
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵloadQuery"]()) && (ctx.footerCell = _t.first);
          }
        },
        inputs: {
          sticky: "sticky",
          name: ["cdkColumnDef", "name"],
          stickyEnd: "stickyEnd"
        },
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵProvidersFeature"]([{
          provide: 'MAT_SORT_HEADER_COLUMN_DEF',
          useExisting: CdkColumnDef
        }]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵInheritDefinitionFeature"]]
      });

      CdkColumnDef.ctorParameters = function () {
        return [{
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"],
            args: [CDK_TABLE]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"]
          }]
        }];
      };

      CdkColumnDef.propDecorators = {
        name: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"],
          args: ['cdkColumnDef']
        }],
        stickyEnd: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"],
          args: ['stickyEnd']
        }],
        cell: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ContentChild"],
          args: [CdkCellDef]
        }],
        headerCell: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ContentChild"],
          args: [CdkHeaderCellDef]
        }],
        footerCell: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ContentChild"],
          args: [CdkFooterCellDef]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](CdkColumnDef, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Directive"],
          args: [{
            selector: '[cdkColumnDef]',
            inputs: ['sticky'],
            providers: [{
              provide: 'MAT_SORT_HEADER_COLUMN_DEF',
              useExisting: CdkColumnDef
            }]
          }]
        }], function () {
          return [{
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"],
              args: [CDK_TABLE]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"]
            }]
          }];
        }, {
          name: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"],
            args: ['cdkColumnDef']
          }],
          stickyEnd: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"],
            args: ['stickyEnd']
          }],
          cell: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ContentChild"],
            args: [CdkCellDef]
          }],
          headerCell: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ContentChild"],
            args: [CdkHeaderCellDef]
          }],
          footerCell: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ContentChild"],
            args: [CdkFooterCellDef]
          }]
        });
      })();
      /** Base class for the cells. Adds a CSS classname that identifies the column it renders in. */


      var BaseCdkCell = function BaseCdkCell(columnDef, elementRef) {
        _classCallCheck2(this, BaseCdkCell);

        // If IE 11 is dropped before we switch to setting a single class name, change to multi param
        // with destructuring.
        var classList = elementRef.nativeElement.classList;

        var _iterator60 = _createForOfIteratorHelper(columnDef._columnCssClassName),
            _step59;

        try {
          for (_iterator60.s(); !(_step59 = _iterator60.n()).done;) {
            var className = _step59.value;
            classList.add(className);
          }
        } catch (err) {
          _iterator60.e(err);
        } finally {
          _iterator60.f();
        }
      };
      /** Header cell template container that adds the right classes and role. */


      var CdkHeaderCell = /*#__PURE__*/function (_BaseCdkCell) {
        _inherits2(CdkHeaderCell, _BaseCdkCell);

        var _super196 = _createSuper2(CdkHeaderCell);

        function CdkHeaderCell(columnDef, elementRef) {
          _classCallCheck2(this, CdkHeaderCell);

          return _super196.call(this, columnDef, elementRef);
        }

        return CdkHeaderCell;
      }(BaseCdkCell);

      CdkHeaderCell.ɵfac = function CdkHeaderCell_Factory(t) {
        return new (t || CdkHeaderCell)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](CdkColumnDef), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]));
      };

      CdkHeaderCell.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineDirective"]({
        type: CdkHeaderCell,
        selectors: [["cdk-header-cell"], ["th", "cdk-header-cell", ""]],
        hostAttrs: ["role", "columnheader", 1, "cdk-header-cell"],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵInheritDefinitionFeature"]]
      });

      CdkHeaderCell.ctorParameters = function () {
        return [{
          type: CdkColumnDef
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](CdkHeaderCell, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Directive"],
          args: [{
            selector: 'cdk-header-cell, th[cdk-header-cell]',
            host: {
              'class': 'cdk-header-cell',
              'role': 'columnheader'
            }
          }]
        }], function () {
          return [{
            type: CdkColumnDef
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]
          }];
        }, null);
      })();
      /** Footer cell template container that adds the right classes and role. */


      var CdkFooterCell = /*#__PURE__*/function (_BaseCdkCell2) {
        _inherits2(CdkFooterCell, _BaseCdkCell2);

        var _super197 = _createSuper2(CdkFooterCell);

        function CdkFooterCell(columnDef, elementRef) {
          _classCallCheck2(this, CdkFooterCell);

          return _super197.call(this, columnDef, elementRef);
        }

        return CdkFooterCell;
      }(BaseCdkCell);

      CdkFooterCell.ɵfac = function CdkFooterCell_Factory(t) {
        return new (t || CdkFooterCell)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](CdkColumnDef), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]));
      };

      CdkFooterCell.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineDirective"]({
        type: CdkFooterCell,
        selectors: [["cdk-footer-cell"], ["td", "cdk-footer-cell", ""]],
        hostAttrs: ["role", "gridcell", 1, "cdk-footer-cell"],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵInheritDefinitionFeature"]]
      });

      CdkFooterCell.ctorParameters = function () {
        return [{
          type: CdkColumnDef
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](CdkFooterCell, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Directive"],
          args: [{
            selector: 'cdk-footer-cell, td[cdk-footer-cell]',
            host: {
              'class': 'cdk-footer-cell',
              'role': 'gridcell'
            }
          }]
        }], function () {
          return [{
            type: CdkColumnDef
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]
          }];
        }, null);
      })();
      /** Cell template container that adds the right classes and role. */


      var CdkCell = /*#__PURE__*/function (_BaseCdkCell3) {
        _inherits2(CdkCell, _BaseCdkCell3);

        var _super198 = _createSuper2(CdkCell);

        function CdkCell(columnDef, elementRef) {
          _classCallCheck2(this, CdkCell);

          return _super198.call(this, columnDef, elementRef);
        }

        return CdkCell;
      }(BaseCdkCell);

      CdkCell.ɵfac = function CdkCell_Factory(t) {
        return new (t || CdkCell)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](CdkColumnDef), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]));
      };

      CdkCell.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineDirective"]({
        type: CdkCell,
        selectors: [["cdk-cell"], ["td", "cdk-cell", ""]],
        hostAttrs: ["role", "gridcell", 1, "cdk-cell"],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵInheritDefinitionFeature"]]
      });

      CdkCell.ctorParameters = function () {
        return [{
          type: CdkColumnDef
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](CdkCell, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Directive"],
          args: [{
            selector: 'cdk-cell, td[cdk-cell]',
            host: {
              'class': 'cdk-cell',
              'role': 'gridcell'
            }
          }]
        }], function () {
          return [{
            type: CdkColumnDef
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]
          }];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @docs-private
       */


      var _Schedule = function _Schedule() {
        _classCallCheck2(this, _Schedule);

        this.tasks = [];
        this.endTasks = [];
      };
      /** Injection token used to provide a coalesced style scheduler. */


      var _COALESCED_STYLE_SCHEDULER = new _angular_core__WEBPACK_IMPORTED_MODULE_3__["InjectionToken"]('_COALESCED_STYLE_SCHEDULER');
      /**
       * Allows grouping up CSSDom mutations after the current execution context.
       * This can significantly improve performance when separate consecutive functions are
       * reading from the CSSDom and then mutating it.
       *
       * @docs-private
       */


      var _CoalescedStyleScheduler = /*#__PURE__*/function () {
        function _CoalescedStyleScheduler(_ngZone) {
          _classCallCheck2(this, _CoalescedStyleScheduler);

          this._ngZone = _ngZone;
          this._currentSchedule = null;
          this._destroyed = new rxjs__WEBPACK_IMPORTED_MODULE_7__["Subject"]();
        }
        /**
         * Schedules the specified task to run at the end of the current VM turn.
         */


        _createClass2(_CoalescedStyleScheduler, [{
          key: "schedule",
          value: function schedule(task) {
            this._createScheduleIfNeeded();

            this._currentSchedule.tasks.push(task);
          }
          /**
           * Schedules the specified task to run after other scheduled tasks at the end of the current
           * VM turn.
           */

        }, {
          key: "scheduleEnd",
          value: function scheduleEnd(task) {
            this._createScheduleIfNeeded();

            this._currentSchedule.endTasks.push(task);
          }
          /** Prevent any further tasks from running. */

        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            this._destroyed.next();

            this._destroyed.complete();
          }
        }, {
          key: "_createScheduleIfNeeded",
          value: function _createScheduleIfNeeded() {
            var _this475 = this;

            if (this._currentSchedule) {
              return;
            }

            this._currentSchedule = new _Schedule();

            this._getScheduleObservable().pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_8__["takeUntil"])(this._destroyed)).subscribe(function () {
              while (_this475._currentSchedule.tasks.length || _this475._currentSchedule.endTasks.length) {
                var schedule = _this475._currentSchedule; // Capture new tasks scheduled by the current set of tasks.

                _this475._currentSchedule = new _Schedule();

                var _iterator61 = _createForOfIteratorHelper(schedule.tasks),
                    _step60;

                try {
                  for (_iterator61.s(); !(_step60 = _iterator61.n()).done;) {
                    var task = _step60.value;
                    task();
                  }
                } catch (err) {
                  _iterator61.e(err);
                } finally {
                  _iterator61.f();
                }

                var _iterator62 = _createForOfIteratorHelper(schedule.endTasks),
                    _step61;

                try {
                  for (_iterator62.s(); !(_step61 = _iterator62.n()).done;) {
                    var _task = _step61.value;

                    _task();
                  }
                } catch (err) {
                  _iterator62.e(err);
                } finally {
                  _iterator62.f();
                }
              }

              _this475._currentSchedule = null;
            });
          }
        }, {
          key: "_getScheduleObservable",
          value: function _getScheduleObservable() {
            // Use onStable when in the context of an ongoing change detection cycle so that we
            // do not accidentally trigger additional cycles.
            return this._ngZone.isStable ? Object(rxjs__WEBPACK_IMPORTED_MODULE_7__["from"])(Promise.resolve(undefined)) : this._ngZone.onStable.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_8__["take"])(1));
          }
        }]);

        return _CoalescedStyleScheduler;
      }();

      _CoalescedStyleScheduler.ɵfac = function _CoalescedStyleScheduler_Factory(t) {
        return new (t || _CoalescedStyleScheduler)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["NgZone"]));
      };

      _CoalescedStyleScheduler.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineInjectable"]({
        token: _CoalescedStyleScheduler,
        factory: _CoalescedStyleScheduler.ɵfac
      });

      _CoalescedStyleScheduler.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["NgZone"]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](_CoalescedStyleScheduler, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Injectable"]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["NgZone"]
          }];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * The row template that can be used by the mat-table. Should not be used outside of the
       * material library.
       */


      var CDK_ROW_TEMPLATE = "<ng-container cdkCellOutlet></ng-container>";
      /**
       * Base class for the CdkHeaderRowDef and CdkRowDef that handles checking their columns inputs
       * for changes and notifying the table.
       */

      var BaseRowDef = /*#__PURE__*/function () {
        function BaseRowDef(
        /** @docs-private */
        template, _differs) {
          _classCallCheck2(this, BaseRowDef);

          this.template = template;
          this._differs = _differs;
        }

        _createClass2(BaseRowDef, [{
          key: "ngOnChanges",
          value: function ngOnChanges(changes) {
            // Create a new columns differ if one does not yet exist. Initialize it based on initial value
            // of the columns property or an empty array if none is provided.
            if (!this._columnsDiffer) {
              var columns = changes['columns'] && changes['columns'].currentValue || [];
              this._columnsDiffer = this._differs.find(columns).create();

              this._columnsDiffer.diff(columns);
            }
          }
          /**
           * Returns the difference between the current columns and the columns from the last diff, or null
           * if there is no difference.
           */

        }, {
          key: "getColumnsDiff",
          value: function getColumnsDiff() {
            return this._columnsDiffer.diff(this.columns);
          }
          /** Gets this row def's relevant cell template from the provided column def. */

        }, {
          key: "extractCellTemplate",
          value: function extractCellTemplate(column) {
            if (this instanceof CdkHeaderRowDef) {
              return column.headerCell.template;
            }

            if (this instanceof CdkFooterRowDef) {
              return column.footerCell.template;
            } else {
              return column.cell.template;
            }
          }
        }]);

        return BaseRowDef;
      }();

      BaseRowDef.ɵfac = function BaseRowDef_Factory(t) {
        return new (t || BaseRowDef)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["TemplateRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["IterableDiffers"]));
      };

      BaseRowDef.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineDirective"]({
        type: BaseRowDef,
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵNgOnChangesFeature"]]
      });

      BaseRowDef.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["TemplateRef"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["IterableDiffers"]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](BaseRowDef, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Directive"]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["TemplateRef"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["IterableDiffers"]
          }];
        }, null);
      })(); // Boilerplate for applying mixins to CdkHeaderRowDef.

      /** @docs-private */


      var CdkHeaderRowDefBase = /*#__PURE__*/function (_BaseRowDef) {
        _inherits2(CdkHeaderRowDefBase, _BaseRowDef);

        var _super199 = _createSuper2(CdkHeaderRowDefBase);

        function CdkHeaderRowDefBase() {
          _classCallCheck2(this, CdkHeaderRowDefBase);

          return _super199.apply(this, arguments);
        }

        return CdkHeaderRowDefBase;
      }(BaseRowDef);

      var _CdkHeaderRowDefBase = mixinHasStickyInput(CdkHeaderRowDefBase);
      /**
       * Header row definition for the CDK table.
       * Captures the header row's template and other header properties such as the columns to display.
       */


      var CdkHeaderRowDef = /*#__PURE__*/function (_CdkHeaderRowDefBase2) {
        _inherits2(CdkHeaderRowDef, _CdkHeaderRowDefBase2);

        var _super200 = _createSuper2(CdkHeaderRowDef);

        function CdkHeaderRowDef(template, _differs, _table) {
          var _this476;

          _classCallCheck2(this, CdkHeaderRowDef);

          _this476 = _super200.call(this, template, _differs);
          _this476._table = _table;
          return _this476;
        } // Prerender fails to recognize that ngOnChanges in a part of this class through inheritance.
        // Explicitly define it so that the method is called as part of the Angular lifecycle.


        _createClass2(CdkHeaderRowDef, [{
          key: "ngOnChanges",
          value: function ngOnChanges(changes) {
            _get2(_getPrototypeOf2(CdkHeaderRowDef.prototype), "ngOnChanges", this).call(this, changes);
          }
        }]);

        return CdkHeaderRowDef;
      }(_CdkHeaderRowDefBase);

      CdkHeaderRowDef.ɵfac = function CdkHeaderRowDef_Factory(t) {
        return new (t || CdkHeaderRowDef)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["TemplateRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["IterableDiffers"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](CDK_TABLE, 8));
      };

      CdkHeaderRowDef.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineDirective"]({
        type: CdkHeaderRowDef,
        selectors: [["", "cdkHeaderRowDef", ""]],
        inputs: {
          columns: ["cdkHeaderRowDef", "columns"],
          sticky: ["cdkHeaderRowDefSticky", "sticky"]
        },
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵInheritDefinitionFeature"], _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵNgOnChangesFeature"]]
      });

      CdkHeaderRowDef.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["TemplateRef"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["IterableDiffers"]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"],
            args: [CDK_TABLE]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"]
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](CdkHeaderRowDef, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Directive"],
          args: [{
            selector: '[cdkHeaderRowDef]',
            inputs: ['columns: cdkHeaderRowDef', 'sticky: cdkHeaderRowDefSticky']
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["TemplateRef"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["IterableDiffers"]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"],
              args: [CDK_TABLE]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"]
            }]
          }];
        }, null);
      })(); // Boilerplate for applying mixins to CdkFooterRowDef.

      /** @docs-private */


      var CdkFooterRowDefBase = /*#__PURE__*/function (_BaseRowDef2) {
        _inherits2(CdkFooterRowDefBase, _BaseRowDef2);

        var _super201 = _createSuper2(CdkFooterRowDefBase);

        function CdkFooterRowDefBase() {
          _classCallCheck2(this, CdkFooterRowDefBase);

          return _super201.apply(this, arguments);
        }

        return CdkFooterRowDefBase;
      }(BaseRowDef);

      var _CdkFooterRowDefBase = mixinHasStickyInput(CdkFooterRowDefBase);
      /**
       * Footer row definition for the CDK table.
       * Captures the footer row's template and other footer properties such as the columns to display.
       */


      var CdkFooterRowDef = /*#__PURE__*/function (_CdkFooterRowDefBase2) {
        _inherits2(CdkFooterRowDef, _CdkFooterRowDefBase2);

        var _super202 = _createSuper2(CdkFooterRowDef);

        function CdkFooterRowDef(template, _differs, _table) {
          var _this477;

          _classCallCheck2(this, CdkFooterRowDef);

          _this477 = _super202.call(this, template, _differs);
          _this477._table = _table;
          return _this477;
        } // Prerender fails to recognize that ngOnChanges in a part of this class through inheritance.
        // Explicitly define it so that the method is called as part of the Angular lifecycle.


        _createClass2(CdkFooterRowDef, [{
          key: "ngOnChanges",
          value: function ngOnChanges(changes) {
            _get2(_getPrototypeOf2(CdkFooterRowDef.prototype), "ngOnChanges", this).call(this, changes);
          }
        }]);

        return CdkFooterRowDef;
      }(_CdkFooterRowDefBase);

      CdkFooterRowDef.ɵfac = function CdkFooterRowDef_Factory(t) {
        return new (t || CdkFooterRowDef)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["TemplateRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["IterableDiffers"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](CDK_TABLE, 8));
      };

      CdkFooterRowDef.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineDirective"]({
        type: CdkFooterRowDef,
        selectors: [["", "cdkFooterRowDef", ""]],
        inputs: {
          columns: ["cdkFooterRowDef", "columns"],
          sticky: ["cdkFooterRowDefSticky", "sticky"]
        },
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵInheritDefinitionFeature"], _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵNgOnChangesFeature"]]
      });

      CdkFooterRowDef.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["TemplateRef"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["IterableDiffers"]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"],
            args: [CDK_TABLE]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"]
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](CdkFooterRowDef, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Directive"],
          args: [{
            selector: '[cdkFooterRowDef]',
            inputs: ['columns: cdkFooterRowDef', 'sticky: cdkFooterRowDefSticky']
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["TemplateRef"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["IterableDiffers"]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"],
              args: [CDK_TABLE]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"]
            }]
          }];
        }, null);
      })();
      /**
       * Data row definition for the CDK table.
       * Captures the header row's template and other row properties such as the columns to display and
       * a when predicate that describes when this row should be used.
       */


      var CdkRowDef = /*#__PURE__*/function (_BaseRowDef3) {
        _inherits2(CdkRowDef, _BaseRowDef3);

        var _super203 = _createSuper2(CdkRowDef);

        // TODO(andrewseguin): Add an input for providing a switch function to determine
        //   if this template should be used.
        function CdkRowDef(template, _differs, _table) {
          var _this478;

          _classCallCheck2(this, CdkRowDef);

          _this478 = _super203.call(this, template, _differs);
          _this478._table = _table;
          return _this478;
        }

        return CdkRowDef;
      }(BaseRowDef);

      CdkRowDef.ɵfac = function CdkRowDef_Factory(t) {
        return new (t || CdkRowDef)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["TemplateRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["IterableDiffers"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](CDK_TABLE, 8));
      };

      CdkRowDef.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineDirective"]({
        type: CdkRowDef,
        selectors: [["", "cdkRowDef", ""]],
        inputs: {
          columns: ["cdkRowDefColumns", "columns"],
          when: ["cdkRowDefWhen", "when"]
        },
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵInheritDefinitionFeature"]]
      });

      CdkRowDef.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["TemplateRef"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["IterableDiffers"]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"],
            args: [CDK_TABLE]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"]
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](CdkRowDef, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Directive"],
          args: [{
            selector: '[cdkRowDef]',
            inputs: ['columns: cdkRowDefColumns', 'when: cdkRowDefWhen']
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["TemplateRef"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["IterableDiffers"]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"],
              args: [CDK_TABLE]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"]
            }]
          }];
        }, null);
      })();
      /**
       * Outlet for rendering cells inside of a row or header row.
       * @docs-private
       */


      var CdkCellOutlet = /*#__PURE__*/function () {
        function CdkCellOutlet(_viewContainer) {
          _classCallCheck2(this, CdkCellOutlet);

          this._viewContainer = _viewContainer;
          CdkCellOutlet.mostRecentCellOutlet = this;
        }

        _createClass2(CdkCellOutlet, [{
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            // If this was the last outlet being rendered in the view, remove the reference
            // from the static property after it has been destroyed to avoid leaking memory.
            if (CdkCellOutlet.mostRecentCellOutlet === this) {
              CdkCellOutlet.mostRecentCellOutlet = null;
            }
          }
        }]);

        return CdkCellOutlet;
      }();

      CdkCellOutlet.ɵfac = function CdkCellOutlet_Factory(t) {
        return new (t || CdkCellOutlet)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewContainerRef"]));
      };

      CdkCellOutlet.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineDirective"]({
        type: CdkCellOutlet,
        selectors: [["", "cdkCellOutlet", ""]]
      });
      /**
       * Static property containing the latest constructed instance of this class.
       * Used by the CDK table when each CdkHeaderRow and CdkRow component is created using
       * createEmbeddedView. After one of these components are created, this property will provide
       * a handle to provide that component's cells and context. After init, the CdkCellOutlet will
       * construct the cells with the provided context.
       */

      CdkCellOutlet.mostRecentCellOutlet = null;

      CdkCellOutlet.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewContainerRef"]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](CdkCellOutlet, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Directive"],
          args: [{
            selector: '[cdkCellOutlet]'
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewContainerRef"]
          }];
        }, null);
      })();
      /** Header template container that contains the cell outlet. Adds the right class and role. */


      var CdkHeaderRow = function CdkHeaderRow() {
        _classCallCheck2(this, CdkHeaderRow);
      };

      CdkHeaderRow.ɵfac = function CdkHeaderRow_Factory(t) {
        return new (t || CdkHeaderRow)();
      };

      CdkHeaderRow.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({
        type: CdkHeaderRow,
        selectors: [["cdk-header-row"], ["tr", "cdk-header-row", ""]],
        hostAttrs: ["role", "row", 1, "cdk-header-row"],
        decls: 1,
        vars: 0,
        consts: [["cdkCellOutlet", ""]],
        template: function CdkHeaderRow_Template(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainer"](0, 0);
          }
        },
        directives: [CdkCellOutlet],
        encapsulation: 2
      });
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](CdkHeaderRow, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Component"],
          args: [{
            selector: 'cdk-header-row, tr[cdk-header-row]',
            template: CDK_ROW_TEMPLATE,
            host: {
              'class': 'cdk-header-row',
              'role': 'row'
            },
            // See note on CdkTable for explanation on why this uses the default change detection strategy.
            // tslint:disable-next-line:validate-decorators
            changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ChangeDetectionStrategy"].Default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewEncapsulation"].None
          }]
        }], null, null);
      })();
      /** Footer template container that contains the cell outlet. Adds the right class and role. */


      var CdkFooterRow = function CdkFooterRow() {
        _classCallCheck2(this, CdkFooterRow);
      };

      CdkFooterRow.ɵfac = function CdkFooterRow_Factory(t) {
        return new (t || CdkFooterRow)();
      };

      CdkFooterRow.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({
        type: CdkFooterRow,
        selectors: [["cdk-footer-row"], ["tr", "cdk-footer-row", ""]],
        hostAttrs: ["role", "row", 1, "cdk-footer-row"],
        decls: 1,
        vars: 0,
        consts: [["cdkCellOutlet", ""]],
        template: function CdkFooterRow_Template(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainer"](0, 0);
          }
        },
        directives: [CdkCellOutlet],
        encapsulation: 2
      });
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](CdkFooterRow, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Component"],
          args: [{
            selector: 'cdk-footer-row, tr[cdk-footer-row]',
            template: CDK_ROW_TEMPLATE,
            host: {
              'class': 'cdk-footer-row',
              'role': 'row'
            },
            // See note on CdkTable for explanation on why this uses the default change detection strategy.
            // tslint:disable-next-line:validate-decorators
            changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ChangeDetectionStrategy"].Default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewEncapsulation"].None
          }]
        }], null, null);
      })();
      /** Data row template container that contains the cell outlet. Adds the right class and role. */


      var CdkRow = function CdkRow() {
        _classCallCheck2(this, CdkRow);
      };

      CdkRow.ɵfac = function CdkRow_Factory(t) {
        return new (t || CdkRow)();
      };

      CdkRow.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({
        type: CdkRow,
        selectors: [["cdk-row"], ["tr", "cdk-row", ""]],
        hostAttrs: ["role", "row", 1, "cdk-row"],
        decls: 1,
        vars: 0,
        consts: [["cdkCellOutlet", ""]],
        template: function CdkRow_Template(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainer"](0, 0);
          }
        },
        directives: [CdkCellOutlet],
        encapsulation: 2
      });
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](CdkRow, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Component"],
          args: [{
            selector: 'cdk-row, tr[cdk-row]',
            template: CDK_ROW_TEMPLATE,
            host: {
              'class': 'cdk-row',
              'role': 'row'
            },
            // See note on CdkTable for explanation on why this uses the default change detection strategy.
            // tslint:disable-next-line:validate-decorators
            changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ChangeDetectionStrategy"].Default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewEncapsulation"].None
          }]
        }], null, null);
      })();
      /** Row that can be used to display a message when no data is shown in the table. */


      var CdkNoDataRow = function CdkNoDataRow(templateRef) {
        _classCallCheck2(this, CdkNoDataRow);

        this.templateRef = templateRef;
      };

      CdkNoDataRow.ɵfac = function CdkNoDataRow_Factory(t) {
        return new (t || CdkNoDataRow)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["TemplateRef"]));
      };

      CdkNoDataRow.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineDirective"]({
        type: CdkNoDataRow,
        selectors: [["ng-template", "cdkNoDataRow", ""]]
      });

      CdkNoDataRow.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["TemplateRef"]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](CdkNoDataRow, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Directive"],
          args: [{
            selector: 'ng-template[cdkNoDataRow]'
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["TemplateRef"]
          }];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * List of all possible directions that can be used for sticky positioning.
       * @docs-private
       */


      var STICKY_DIRECTIONS = ['top', 'bottom', 'left', 'right'];
      /**
       * Applies and removes sticky positioning styles to the `CdkTable` rows and columns cells.
       * @docs-private
       */

      var StickyStyler = /*#__PURE__*/function () {
        /**
         * @param _isNativeHtmlTable Whether the sticky logic should be based on a table
         *     that uses the native `<table>` element.
         * @param _stickCellCss The CSS class that will be applied to every row/cell that has
         *     sticky positioning applied.
         * @param direction The directionality context of the table (ltr/rtl); affects column positioning
         *     by reversing left/right positions.
         * @param _isBrowser Whether the table is currently being rendered on the server or the client.
         * @param _needsPositionStickyOnElement Whether we need to specify position: sticky on cells
         *     using inline styles. If false, it is assumed that position: sticky is included in
         *     the component stylesheet for _stickCellCss.
         */
        function StickyStyler(_isNativeHtmlTable, _stickCellCss, direction,
        /**
         * @deprecated `_coalescedStyleScheduler` parameter to become required.
         * @breaking-change 11.0.0
         */
        _coalescedStyleScheduler) {
          var _isBrowser = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;

          var _needsPositionStickyOnElement = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : true;

          _classCallCheck2(this, StickyStyler);

          this._isNativeHtmlTable = _isNativeHtmlTable;
          this._stickCellCss = _stickCellCss;
          this.direction = direction;
          this._coalescedStyleScheduler = _coalescedStyleScheduler;
          this._isBrowser = _isBrowser;
          this._needsPositionStickyOnElement = _needsPositionStickyOnElement;
          this._cachedCellWidths = [];
        }
        /**
         * Clears the sticky positioning styles from the row and its cells by resetting the `position`
         * style, setting the zIndex to 0, and unsetting each provided sticky direction.
         * @param rows The list of rows that should be cleared from sticking in the provided directions
         * @param stickyDirections The directions that should no longer be set as sticky on the rows.
         */


        _createClass2(StickyStyler, [{
          key: "clearStickyPositioning",
          value: function clearStickyPositioning(rows, stickyDirections) {
            var _this479 = this;

            var elementsToClear = [];

            var _iterator63 = _createForOfIteratorHelper(rows),
                _step62;

            try {
              for (_iterator63.s(); !(_step62 = _iterator63.n()).done;) {
                var row = _step62.value;

                // If the row isn't an element (e.g. if it's an `ng-container`),
                // it won't have inline styles or `children` so we skip it.
                if (row.nodeType !== row.ELEMENT_NODE) {
                  continue;
                }

                elementsToClear.push(row);

                for (var i = 0; i < row.children.length; i++) {
                  elementsToClear.push(row.children[i]);
                }
              } // Coalesce with sticky row/column updates (and potentially other changes like column resize).

            } catch (err) {
              _iterator63.e(err);
            } finally {
              _iterator63.f();
            }

            this._scheduleStyleChanges(function () {
              var _iterator64 = _createForOfIteratorHelper(elementsToClear),
                  _step63;

              try {
                for (_iterator64.s(); !(_step63 = _iterator64.n()).done;) {
                  var element = _step63.value;

                  _this479._removeStickyStyle(element, stickyDirections);
                }
              } catch (err) {
                _iterator64.e(err);
              } finally {
                _iterator64.f();
              }
            });
          }
          /**
           * Applies sticky left and right positions to the cells of each row according to the sticky
           * states of the rendered column definitions.
           * @param rows The rows that should have its set of cells stuck according to the sticky states.
           * @param stickyStartStates A list of boolean states where each state represents whether the cell
           *     in this index position should be stuck to the start of the row.
           * @param stickyEndStates A list of boolean states where each state represents whether the cell
           *     in this index position should be stuck to the end of the row.
           * @param recalculateCellWidths Whether the sticky styler should recalculate the width of each
           *     column cell. If `false` cached widths will be used instead.
           */

        }, {
          key: "updateStickyColumns",
          value: function updateStickyColumns(rows, stickyStartStates, stickyEndStates) {
            var _this480 = this;

            var recalculateCellWidths = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;

            if (!rows.length || !this._isBrowser || !(stickyStartStates.some(function (state) {
              return state;
            }) || stickyEndStates.some(function (state) {
              return state;
            }))) {
              return;
            }

            var firstRow = rows[0];
            var numCells = firstRow.children.length;

            var cellWidths = this._getCellWidths(firstRow, recalculateCellWidths);

            var startPositions = this._getStickyStartColumnPositions(cellWidths, stickyStartStates);

            var endPositions = this._getStickyEndColumnPositions(cellWidths, stickyEndStates); // Coalesce with sticky row updates (and potentially other changes like column resize).


            this._scheduleStyleChanges(function () {
              var isRtl = _this480.direction === 'rtl';
              var start = isRtl ? 'right' : 'left';
              var end = isRtl ? 'left' : 'right';

              var _iterator65 = _createForOfIteratorHelper(rows),
                  _step64;

              try {
                for (_iterator65.s(); !(_step64 = _iterator65.n()).done;) {
                  var row = _step64.value;

                  for (var i = 0; i < numCells; i++) {
                    var cell = row.children[i];

                    if (stickyStartStates[i]) {
                      _this480._addStickyStyle(cell, start, startPositions[i]);
                    }

                    if (stickyEndStates[i]) {
                      _this480._addStickyStyle(cell, end, endPositions[i]);
                    }
                  }
                }
              } catch (err) {
                _iterator65.e(err);
              } finally {
                _iterator65.f();
              }
            });
          }
          /**
           * Applies sticky positioning to the row's cells if using the native table layout, and to the
           * row itself otherwise.
           * @param rowsToStick The list of rows that should be stuck according to their corresponding
           *     sticky state and to the provided top or bottom position.
           * @param stickyStates A list of boolean states where each state represents whether the row
           *     should be stuck in the particular top or bottom position.
           * @param position The position direction in which the row should be stuck if that row should be
           *     sticky.
           *
           */

        }, {
          key: "stickRows",
          value: function stickRows(rowsToStick, stickyStates, position) {
            var _this481 = this;

            // Since we can't measure the rows on the server, we can't stick the rows properly.
            if (!this._isBrowser) {
              return;
            } // If positioning the rows to the bottom, reverse their order when evaluating the sticky
            // position such that the last row stuck will be "bottom: 0px" and so on. Note that the
            // sticky states need to be reversed as well.


            var rows = position === 'bottom' ? rowsToStick.slice().reverse() : rowsToStick;
            var states = position === 'bottom' ? stickyStates.slice().reverse() : stickyStates; // Measure row heights all at once before adding sticky styles to reduce layout thrashing.

            var stickyHeights = [];
            var elementsToStick = [];

            for (var rowIndex = 0, stickyHeight = 0; rowIndex < rows.length; rowIndex++) {
              stickyHeights[rowIndex] = stickyHeight;

              if (!states[rowIndex]) {
                continue;
              }

              var row = rows[rowIndex];
              elementsToStick[rowIndex] = this._isNativeHtmlTable ? Array.from(row.children) : [row];

              if (rowIndex !== rows.length - 1) {
                stickyHeight += row.getBoundingClientRect().height;
              }
            } // Coalesce with other sticky row updates (top/bottom), sticky columns updates
            // (and potentially other changes like column resize).


            this._scheduleStyleChanges(function () {
              for (var _rowIndex = 0; _rowIndex < rows.length; _rowIndex++) {
                if (!states[_rowIndex]) {
                  continue;
                }

                var height = stickyHeights[_rowIndex];

                var _iterator66 = _createForOfIteratorHelper(elementsToStick[_rowIndex]),
                    _step65;

                try {
                  for (_iterator66.s(); !(_step65 = _iterator66.n()).done;) {
                    var element = _step65.value;

                    _this481._addStickyStyle(element, position, height);
                  }
                } catch (err) {
                  _iterator66.e(err);
                } finally {
                  _iterator66.f();
                }
              }
            });
          }
          /**
           * When using the native table in Safari, sticky footer cells do not stick. The only way to stick
           * footer rows is to apply sticky styling to the tfoot container. This should only be done if
           * all footer rows are sticky. If not all footer rows are sticky, remove sticky positioning from
           * the tfoot element.
           */

        }, {
          key: "updateStickyFooterContainer",
          value: function updateStickyFooterContainer(tableElement, stickyStates) {
            var _this482 = this;

            if (!this._isNativeHtmlTable) {
              return;
            }

            var tfoot = tableElement.querySelector('tfoot'); // Coalesce with other sticky updates (and potentially other changes like column resize).

            this._scheduleStyleChanges(function () {
              if (stickyStates.some(function (state) {
                return !state;
              })) {
                _this482._removeStickyStyle(tfoot, ['bottom']);
              } else {
                _this482._addStickyStyle(tfoot, 'bottom', 0);
              }
            });
          }
          /**
           * Removes the sticky style on the element by removing the sticky cell CSS class, re-evaluating
           * the zIndex, removing each of the provided sticky directions, and removing the
           * sticky position if there are no more directions.
           */

        }, {
          key: "_removeStickyStyle",
          value: function _removeStickyStyle(element, stickyDirections) {
            var _iterator67 = _createForOfIteratorHelper(stickyDirections),
                _step66;

            try {
              for (_iterator67.s(); !(_step66 = _iterator67.n()).done;) {
                var dir = _step66.value;
                element.style[dir] = '';
              } // If the element no longer has any more sticky directions, remove sticky positioning and
              // the sticky CSS class.
              // Short-circuit checking element.style[dir] for stickyDirections as they
              // were already removed above.

            } catch (err) {
              _iterator67.e(err);
            } finally {
              _iterator67.f();
            }

            var hasDirection = STICKY_DIRECTIONS.some(function (dir) {
              return stickyDirections.indexOf(dir) === -1 && element.style[dir];
            });

            if (hasDirection) {
              element.style.zIndex = this._getCalculatedZIndex(element);
            } else {
              // When not hasDirection, _getCalculatedZIndex will always return ''.
              element.style.zIndex = '';

              if (this._needsPositionStickyOnElement) {
                element.style.position = '';
              }

              element.classList.remove(this._stickCellCss);
            }
          }
          /**
           * Adds the sticky styling to the element by adding the sticky style class, changing position
           * to be sticky (and -webkit-sticky), setting the appropriate zIndex, and adding a sticky
           * direction and value.
           */

        }, {
          key: "_addStickyStyle",
          value: function _addStickyStyle(element, dir, dirValue) {
            element.classList.add(this._stickCellCss);
            element.style[dir] = "".concat(dirValue, "px");
            element.style.zIndex = this._getCalculatedZIndex(element);

            if (this._needsPositionStickyOnElement) {
              element.style.cssText += 'position: -webkit-sticky; position: sticky; ';
            }
          }
          /**
           * Calculate what the z-index should be for the element, depending on what directions (top,
           * bottom, left, right) have been set. It should be true that elements with a top direction
           * should have the highest index since these are elements like a table header. If any of those
           * elements are also sticky in another direction, then they should appear above other elements
           * that are only sticky top (e.g. a sticky column on a sticky header). Bottom-sticky elements
           * (e.g. footer rows) should then be next in the ordering such that they are below the header
           * but above any non-sticky elements. Finally, left/right sticky elements (e.g. sticky columns)
           * should minimally increment so that they are above non-sticky elements but below top and bottom
           * elements.
           */

        }, {
          key: "_getCalculatedZIndex",
          value: function _getCalculatedZIndex(element) {
            var zIndexIncrements = {
              top: 100,
              bottom: 10,
              left: 1,
              right: 1
            };
            var zIndex = 0; // Use `Iterable` instead of `Array` because TypeScript, as of 3.6.3,
            // loses the array generic type in the `for of`. But we *also* have to use `Array` because
            // typescript won't iterate over an `Iterable` unless you compile with `--downlevelIteration`

            var _iterator68 = _createForOfIteratorHelper(STICKY_DIRECTIONS),
                _step67;

            try {
              for (_iterator68.s(); !(_step67 = _iterator68.n()).done;) {
                var dir = _step67.value;

                if (element.style[dir]) {
                  zIndex += zIndexIncrements[dir];
                }
              }
            } catch (err) {
              _iterator68.e(err);
            } finally {
              _iterator68.f();
            }

            return zIndex ? "".concat(zIndex) : '';
          }
          /** Gets the widths for each cell in the provided row. */

        }, {
          key: "_getCellWidths",
          value: function _getCellWidths(row) {
            var recalculateCellWidths = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;

            if (!recalculateCellWidths && this._cachedCellWidths.length) {
              return this._cachedCellWidths;
            }

            var cellWidths = [];
            var firstRowCells = row.children;

            for (var i = 0; i < firstRowCells.length; i++) {
              var cell = firstRowCells[i];
              cellWidths.push(cell.getBoundingClientRect().width);
            }

            this._cachedCellWidths = cellWidths;
            return cellWidths;
          }
          /**
           * Determines the left and right positions of each sticky column cell, which will be the
           * accumulation of all sticky column cell widths to the left and right, respectively.
           * Non-sticky cells do not need to have a value set since their positions will not be applied.
           */

        }, {
          key: "_getStickyStartColumnPositions",
          value: function _getStickyStartColumnPositions(widths, stickyStates) {
            var positions = [];
            var nextPosition = 0;

            for (var i = 0; i < widths.length; i++) {
              if (stickyStates[i]) {
                positions[i] = nextPosition;
                nextPosition += widths[i];
              }
            }

            return positions;
          }
          /**
           * Determines the left and right positions of each sticky column cell, which will be the
           * accumulation of all sticky column cell widths to the left and right, respectively.
           * Non-sticky cells do not need to have a value set since their positions will not be applied.
           */

        }, {
          key: "_getStickyEndColumnPositions",
          value: function _getStickyEndColumnPositions(widths, stickyStates) {
            var positions = [];
            var nextPosition = 0;

            for (var i = widths.length; i > 0; i--) {
              if (stickyStates[i]) {
                positions[i] = nextPosition;
                nextPosition += widths[i];
              }
            }

            return positions;
          }
          /**
           * Schedules styles to be applied when the style scheduler deems appropriate.
           * @breaking-change 11.0.0 This method can be removed in favor of calling
           * `CoalescedStyleScheduler.schedule` directly once the scheduler is a required parameter.
           */

        }, {
          key: "_scheduleStyleChanges",
          value: function _scheduleStyleChanges(changes) {
            if (this._coalescedStyleScheduler) {
              this._coalescedStyleScheduler.schedule(changes);
            } else {
              changes();
            }
          }
        }]);

        return StickyStyler;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Returns an error to be thrown when attempting to find an unexisting column.
       * @param id Id whose lookup failed.
       * @docs-private
       */


      function getTableUnknownColumnError(id) {
        return Error("Could not find column with id \"".concat(id, "\"."));
      }
      /**
       * Returns an error to be thrown when two column definitions have the same name.
       * @docs-private
       */


      function getTableDuplicateColumnNameError(name) {
        return Error("Duplicate column definition name provided: \"".concat(name, "\"."));
      }
      /**
       * Returns an error to be thrown when there are multiple rows that are missing a when function.
       * @docs-private
       */


      function getTableMultipleDefaultRowDefsError() {
        return Error("There can only be one default row without a when predicate function.");
      }
      /**
       * Returns an error to be thrown when there are no matching row defs for a particular set of data.
       * @docs-private
       */


      function getTableMissingMatchingRowDefError(data) {
        return Error("Could not find a matching row definition for the" + "provided row data: ".concat(JSON.stringify(data)));
      }
      /**
       * Returns an error to be thrown when there is no row definitions present in the content.
       * @docs-private
       */


      function getTableMissingRowDefsError() {
        return Error('Missing definitions for header, footer, and row; ' + 'cannot determine which columns should be rendered.');
      }
      /**
       * Returns an error to be thrown when the data source does not match the compatible types.
       * @docs-private
       */


      function getTableUnknownDataSourceError() {
        return Error("Provided data source did not match an array, Observable, or DataSource");
      }
      /**
       * Returns an error to be thrown when the text column cannot find a parent table to inject.
       * @docs-private
       */


      function getTableTextColumnMissingParentTableError() {
        return Error("Text column could not find a parent table for registration.");
      }
      /**
       * Returns an error to be thrown when a table text column doesn't have a name.
       * @docs-private
       */


      function getTableTextColumnMissingNameError() {
        return Error("Table text column must have a name.");
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Provides a handle for the table to grab the view container's ng-container to insert data rows.
       * @docs-private
       */


      var DataRowOutlet = function DataRowOutlet(viewContainer, elementRef) {
        _classCallCheck2(this, DataRowOutlet);

        this.viewContainer = viewContainer;
        this.elementRef = elementRef;
      };

      DataRowOutlet.ɵfac = function DataRowOutlet_Factory(t) {
        return new (t || DataRowOutlet)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewContainerRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]));
      };

      DataRowOutlet.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineDirective"]({
        type: DataRowOutlet,
        selectors: [["", "rowOutlet", ""]]
      });

      DataRowOutlet.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewContainerRef"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](DataRowOutlet, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Directive"],
          args: [{
            selector: '[rowOutlet]'
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewContainerRef"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]
          }];
        }, null);
      })();
      /**
       * Provides a handle for the table to grab the view container's ng-container to insert the header.
       * @docs-private
       */


      var HeaderRowOutlet = function HeaderRowOutlet(viewContainer, elementRef) {
        _classCallCheck2(this, HeaderRowOutlet);

        this.viewContainer = viewContainer;
        this.elementRef = elementRef;
      };

      HeaderRowOutlet.ɵfac = function HeaderRowOutlet_Factory(t) {
        return new (t || HeaderRowOutlet)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewContainerRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]));
      };

      HeaderRowOutlet.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineDirective"]({
        type: HeaderRowOutlet,
        selectors: [["", "headerRowOutlet", ""]]
      });

      HeaderRowOutlet.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewContainerRef"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](HeaderRowOutlet, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Directive"],
          args: [{
            selector: '[headerRowOutlet]'
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewContainerRef"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]
          }];
        }, null);
      })();
      /**
       * Provides a handle for the table to grab the view container's ng-container to insert the footer.
       * @docs-private
       */


      var FooterRowOutlet = function FooterRowOutlet(viewContainer, elementRef) {
        _classCallCheck2(this, FooterRowOutlet);

        this.viewContainer = viewContainer;
        this.elementRef = elementRef;
      };

      FooterRowOutlet.ɵfac = function FooterRowOutlet_Factory(t) {
        return new (t || FooterRowOutlet)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewContainerRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]));
      };

      FooterRowOutlet.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineDirective"]({
        type: FooterRowOutlet,
        selectors: [["", "footerRowOutlet", ""]]
      });

      FooterRowOutlet.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewContainerRef"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](FooterRowOutlet, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Directive"],
          args: [{
            selector: '[footerRowOutlet]'
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewContainerRef"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]
          }];
        }, null);
      })();
      /**
       * Provides a handle for the table to grab the view
       * container's ng-container to insert the no data row.
       * @docs-private
       */


      var NoDataRowOutlet = function NoDataRowOutlet(viewContainer, elementRef) {
        _classCallCheck2(this, NoDataRowOutlet);

        this.viewContainer = viewContainer;
        this.elementRef = elementRef;
      };

      NoDataRowOutlet.ɵfac = function NoDataRowOutlet_Factory(t) {
        return new (t || NoDataRowOutlet)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewContainerRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]));
      };

      NoDataRowOutlet.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineDirective"]({
        type: NoDataRowOutlet,
        selectors: [["", "noDataRowOutlet", ""]]
      });

      NoDataRowOutlet.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewContainerRef"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](NoDataRowOutlet, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Directive"],
          args: [{
            selector: '[noDataRowOutlet]'
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewContainerRef"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]
          }];
        }, null);
      })();
      /**
       * The table template that can be used by the mat-table. Should not be used outside of the
       * material library.
       * @docs-private
       */


      var CDK_TABLE_TEMPLATE = // Note that according to MDN, the `caption` element has to be projected as the **first**
      // element in the table. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/caption
      "\n  <ng-content select=\"caption\"></ng-content>\n  <ng-content select=\"colgroup, col\"></ng-content>\n  <ng-container headerRowOutlet></ng-container>\n  <ng-container rowOutlet></ng-container>\n  <ng-container noDataRowOutlet></ng-container>\n  <ng-container footerRowOutlet></ng-container>\n";
      /**
       * Class used to conveniently type the embedded view ref for rows with a context.
       * @docs-private
       */

      var RowViewRef = /*#__PURE__*/function (_angular_core__WEBPAC) {
        _inherits2(RowViewRef, _angular_core__WEBPAC);

        var _super204 = _createSuper2(RowViewRef);

        function RowViewRef() {
          _classCallCheck2(this, RowViewRef);

          return _super204.apply(this, arguments);
        }

        return RowViewRef;
      }(_angular_core__WEBPACK_IMPORTED_MODULE_3__["EmbeddedViewRef"]);
      /**
       * A data table that can render a header row, data rows, and a footer row.
       * Uses the dataSource input to determine the data to be rendered. The data can be provided either
       * as a data array, an Observable stream that emits the data array to render, or a DataSource with a
       * connect function that will return an Observable stream that emits the data array to render.
       */


      var CdkTable = /*#__PURE__*/function () {
        function CdkTable(_differs, _changeDetectorRef, _elementRef, role, _dir, _document, _platform,
        /**
         * @deprecated `_coalescedStyleScheduler`, `_viewRepeater` and `_viewportRuler`
         *    parameters to become required.
         * @breaking-change 11.0.0
         */
        _viewRepeater, _coalescedStyleScheduler, // Optional for backwards compatibility. The viewport ruler is provided in root. Therefore,
        // this property will never be null.
        // tslint:disable-next-line: lightweight-tokens
        _viewportRuler) {
          _classCallCheck2(this, CdkTable);

          this._differs = _differs;
          this._changeDetectorRef = _changeDetectorRef;
          this._elementRef = _elementRef;
          this._dir = _dir;
          this._platform = _platform;
          this._viewRepeater = _viewRepeater;
          this._coalescedStyleScheduler = _coalescedStyleScheduler;
          this._viewportRuler = _viewportRuler;
          /** Subject that emits when the component has been destroyed. */

          this._onDestroy = new rxjs__WEBPACK_IMPORTED_MODULE_7__["Subject"]();
          /**
           * Map of all the user's defined columns (header, data, and footer cell template) identified by
           * name. Collection populated by the column definitions gathered by `ContentChildren` as well as
           * any custom column definitions added to `_customColumnDefs`.
           */

          this._columnDefsByName = new Map();
          /**
           * Column definitions that were defined outside of the direct content children of the table.
           * These will be defined when, e.g., creating a wrapper around the cdkTable that has
           * column definitions as *its* content child.
           */

          this._customColumnDefs = new Set();
          /**
           * Data row definitions that were defined outside of the direct content children of the table.
           * These will be defined when, e.g., creating a wrapper around the cdkTable that has
           * built-in data rows as *its* content child.
           */

          this._customRowDefs = new Set();
          /**
           * Header row definitions that were defined outside of the direct content children of the table.
           * These will be defined when, e.g., creating a wrapper around the cdkTable that has
           * built-in header rows as *its* content child.
           */

          this._customHeaderRowDefs = new Set();
          /**
           * Footer row definitions that were defined outside of the direct content children of the table.
           * These will be defined when, e.g., creating a wrapper around the cdkTable that has a
           * built-in footer row as *its* content child.
           */

          this._customFooterRowDefs = new Set();
          /**
           * Whether the header row definition has been changed. Triggers an update to the header row after
           * content is checked. Initialized as true so that the table renders the initial set of rows.
           */

          this._headerRowDefChanged = true;
          /**
           * Whether the footer row definition has been changed. Triggers an update to the footer row after
           * content is checked. Initialized as true so that the table renders the initial set of rows.
           */

          this._footerRowDefChanged = true;
          /**
           * Whether the sticky column styles need to be updated. Set to `true` when the visible columns
           * change.
           */

          this._stickyColumnStylesNeedReset = true;
          /**
           * Whether the sticky styler should recalculate cell widths when applying sticky styles. If
           * `false`, cached values will be used instead. This is only applicable to tables with
           * {@link fixedLayout} enabled. For other tables, cell widths will always be recalculated.
           */

          this._forceRecalculateCellWidths = true;
          /**
           * Cache of the latest rendered `RenderRow` objects as a map for easy retrieval when constructing
           * a new list of `RenderRow` objects for rendering rows. Since the new list is constructed with
           * the cached `RenderRow` objects when possible, the row identity is preserved when the data
           * and row template matches, which allows the `IterableDiffer` to check rows by reference
           * and understand which rows are added/moved/removed.
           *
           * Implemented as a map of maps where the first key is the `data: T` object and the second is the
           * `CdkRowDef<T>` object. With the two keys, the cache points to a `RenderRow<T>` object that
           * contains an array of created pairs. The array is necessary to handle cases where the data
           * array contains multiple duplicate data objects and each instantiated `RenderRow` must be
           * stored.
           */

          this._cachedRenderRowsMap = new Map();
          /**
           * CSS class added to any row or cell that has sticky positioning applied. May be overriden by
           * table subclasses.
           */

          this.stickyCssClass = 'cdk-table-sticky';
          /**
           * Whether to manually add positon: sticky to all sticky cell elements. Not needed if
           * the position is set in a selector associated with the value of stickyCssClass. May be
           * overridden by table subclasses
           */

          this.needsPositionStickyOnElement = true;
          /** Whether the no data row is currently showing anything. */

          this._isShowingNoDataRow = false;
          this._multiTemplateDataRows = false;
          this._fixedLayout = false; // TODO(andrewseguin): Remove max value as the end index
          //   and instead calculate the view on init and scroll.

          /**
           * Stream containing the latest information on what rows are being displayed on screen.
           * Can be used by the data source to as a heuristic of what data should be provided.
           *
           * @docs-private
           */

          this.viewChange = new rxjs__WEBPACK_IMPORTED_MODULE_7__["BehaviorSubject"]({
            start: 0,
            end: Number.MAX_VALUE
          });

          if (!role) {
            this._elementRef.nativeElement.setAttribute('role', 'grid');
          }

          this._document = _document;
          this._isNativeHtmlTable = this._elementRef.nativeElement.nodeName === 'TABLE';
        }
        /**
         * Tracking function that will be used to check the differences in data changes. Used similarly
         * to `ngFor` `trackBy` function. Optimize row operations by identifying a row based on its data
         * relative to the function to know if a row should be added/removed/moved.
         * Accepts a function that takes two parameters, `index` and `item`.
         */


        _createClass2(CdkTable, [{
          key: "trackBy",
          get: function get() {
            return this._trackByFn;
          },
          set: function set(fn) {
            if ((typeof ngDevMode === 'undefined' || ngDevMode) && fn != null && typeof fn !== 'function') {
              console.warn("trackBy must be a function, but received ".concat(JSON.stringify(fn), "."));
            }

            this._trackByFn = fn;
          }
          /**
           * The table's source of data, which can be provided in three ways (in order of complexity):
           *   - Simple data array (each object represents one table row)
           *   - Stream that emits a data array each time the array changes
           *   - `DataSource` object that implements the connect/disconnect interface.
           *
           * If a data array is provided, the table must be notified when the array's objects are
           * added, removed, or moved. This can be done by calling the `renderRows()` function which will
           * render the diff since the last table render. If the data array reference is changed, the table
           * will automatically trigger an update to the rows.
           *
           * When providing an Observable stream, the table will trigger an update automatically when the
           * stream emits a new array of data.
           *
           * Finally, when providing a `DataSource` object, the table will use the Observable stream
           * provided by the connect function and trigger updates when that stream emits new data array
           * values. During the table's ngOnDestroy or when the data source is removed from the table, the
           * table will call the DataSource's `disconnect` function (may be useful for cleaning up any
           * subscriptions registered during the connect process).
           */

        }, {
          key: "dataSource",
          get: function get() {
            return this._dataSource;
          },
          set: function set(dataSource) {
            if (this._dataSource !== dataSource) {
              this._switchDataSource(dataSource);
            }
          }
          /**
           * Whether to allow multiple rows per data object by evaluating which rows evaluate their 'when'
           * predicate to true. If `multiTemplateDataRows` is false, which is the default value, then each
           * dataobject will render the first row that evaluates its when predicate to true, in the order
           * defined in the table, or otherwise the default row which does not have a when predicate.
           */

        }, {
          key: "multiTemplateDataRows",
          get: function get() {
            return this._multiTemplateDataRows;
          },
          set: function set(v) {
            this._multiTemplateDataRows = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_1__["coerceBooleanProperty"])(v); // In Ivy if this value is set via a static attribute (e.g. <table multiTemplateDataRows>),
            // this setter will be invoked before the row outlet has been defined hence the null check.

            if (this._rowOutlet && this._rowOutlet.viewContainer.length) {
              this._forceRenderDataRows();

              this.updateStickyColumnStyles();
            }
          }
          /**
           * Whether to use a fixed table layout. Enabling this option will enforce consistent column widths
           * and optimize rendering sticky styles for native tables. No-op for flex tables.
           */

        }, {
          key: "fixedLayout",
          get: function get() {
            return this._fixedLayout;
          },
          set: function set(v) {
            this._fixedLayout = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_1__["coerceBooleanProperty"])(v); // Toggling `fixedLayout` may change column widths. Sticky column styles should be recalculated.

            this._forceRecalculateCellWidths = true;
            this._stickyColumnStylesNeedReset = true;
          }
        }, {
          key: "ngOnInit",
          value: function ngOnInit() {
            var _this483 = this;

            this._setupStickyStyler();

            if (this._isNativeHtmlTable) {
              this._applyNativeTableSections();
            } // Set up the trackBy function so that it uses the `RenderRow` as its identity by default. If
            // the user has provided a custom trackBy, return the result of that function as evaluated
            // with the values of the `RenderRow`'s data and index.


            this._dataDiffer = this._differs.find([]).create(function (_i, dataRow) {
              return _this483.trackBy ? _this483.trackBy(dataRow.dataIndex, dataRow.data) : dataRow;
            }); // Table cell dimensions may change after resizing the window. Signal the sticky styler to
            // refresh its cache of cell widths the next time sticky styles are updated.
            // @breaking-change 11.0.0 Remove null check for _viewportRuler once it's a required parameter.

            if (this._viewportRuler) {
              this._viewportRuler.change().pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_8__["takeUntil"])(this._onDestroy)).subscribe(function () {
                _this483._forceRecalculateCellWidths = true;
              });
            }
          }
        }, {
          key: "ngAfterContentChecked",
          value: function ngAfterContentChecked() {
            // Cache the row and column definitions gathered by ContentChildren and programmatic injection.
            this._cacheRowDefs();

            this._cacheColumnDefs(); // Make sure that the user has at least added header, footer, or data row def.


            if (!this._headerRowDefs.length && !this._footerRowDefs.length && !this._rowDefs.length && (typeof ngDevMode === 'undefined' || ngDevMode)) {
              throw getTableMissingRowDefsError();
            } // Render updates if the list of columns have been changed for the header, row, or footer defs.


            var columnsChanged = this._renderUpdatedColumns();

            var rowDefsChanged = columnsChanged || this._headerRowDefChanged || this._footerRowDefChanged; // Ensure sticky column styles are reset if set to `true` elsewhere.

            this._stickyColumnStylesNeedReset = this._stickyColumnStylesNeedReset || rowDefsChanged;
            this._forceRecalculateCellWidths = rowDefsChanged; // If the header row definition has been changed, trigger a render to the header row.

            if (this._headerRowDefChanged) {
              this._forceRenderHeaderRows();

              this._headerRowDefChanged = false;
            } // If the footer row definition has been changed, trigger a render to the footer row.


            if (this._footerRowDefChanged) {
              this._forceRenderFooterRows();

              this._footerRowDefChanged = false;
            } // If there is a data source and row definitions, connect to the data source unless a
            // connection has already been made.


            if (this.dataSource && this._rowDefs.length > 0 && !this._renderChangeSubscription) {
              this._observeRenderChanges();
            } else if (this._stickyColumnStylesNeedReset) {
              // In the above case, _observeRenderChanges will result in updateStickyColumnStyles being
              // called when it row data arrives. Otherwise, we need to call it proactively.
              this.updateStickyColumnStyles();
            }

            this._checkStickyStates();
          }
        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            this._rowOutlet.viewContainer.clear();

            this._noDataRowOutlet.viewContainer.clear();

            this._headerRowOutlet.viewContainer.clear();

            this._footerRowOutlet.viewContainer.clear();

            this._cachedRenderRowsMap.clear();

            this._onDestroy.next();

            this._onDestroy.complete();

            if (Object(_angular_cdk_collections__WEBPACK_IMPORTED_MODULE_2__["isDataSource"])(this.dataSource)) {
              this.dataSource.disconnect(this);
            }
          }
          /**
           * Renders rows based on the table's latest set of data, which was either provided directly as an
           * input or retrieved through an Observable stream (directly or from a DataSource).
           * Checks for differences in the data since the last diff to perform only the necessary
           * changes (add/remove/move rows).
           *
           * If the table's data source is a DataSource or Observable, this will be invoked automatically
           * each time the provided Observable stream emits a new data array. Otherwise if your data is
           * an array, this function will need to be called to render any changes.
           */

        }, {
          key: "renderRows",
          value: function renderRows() {
            var _this484 = this;

            this._renderRows = this._getAllRenderRows();

            var changes = this._dataDiffer.diff(this._renderRows);

            if (!changes) {
              this._updateNoDataRow();

              return;
            }

            var viewContainer = this._rowOutlet.viewContainer; // @breaking-change 11.0.0 Remove null check for `_viewRepeater` and the
            // `else` clause once `_viewRepeater` is turned into a required parameter.

            if (this._viewRepeater) {
              this._viewRepeater.applyChanges(changes, viewContainer, function (record, _adjustedPreviousIndex, currentIndex) {
                return _this484._getEmbeddedViewArgs(record.item, currentIndex);
              }, function (record) {
                return record.item.data;
              }, function (change) {
                if (change.operation === 1
                /* INSERTED */
                && change.context) {
                  _this484._renderCellTemplateForItem(change.record.item.rowDef, change.context);
                }
              });
            } else {
              changes.forEachOperation(function (record, prevIndex, currentIndex) {
                if (record.previousIndex == null) {
                  var renderRow = record.item;
                  var rowDef = renderRow.rowDef;
                  var context = {
                    $implicit: renderRow.data
                  };

                  _this484._renderRow(_this484._rowOutlet, rowDef, currentIndex, context);
                } else if (currentIndex == null) {
                  viewContainer.remove(prevIndex);
                } else {
                  var view = viewContainer.get(prevIndex);
                  viewContainer.move(view, currentIndex);
                }
              });
            } // Update the meta context of a row's context data (index, count, first, last, ...)


            this._updateRowIndexContext(); // Update rows that did not get added/removed/moved but may have had their identity changed,
            // e.g. if trackBy matched data on some property but the actual data reference changed.


            changes.forEachIdentityChange(function (record) {
              var rowView = viewContainer.get(record.currentIndex);
              rowView.context.$implicit = record.item.data;
            });

            this._updateNoDataRow();

            this.updateStickyColumnStyles();
          }
          /** Adds a column definition that was not included as part of the content children. */

        }, {
          key: "addColumnDef",
          value: function addColumnDef(columnDef) {
            this._customColumnDefs.add(columnDef);
          }
          /** Removes a column definition that was not included as part of the content children. */

        }, {
          key: "removeColumnDef",
          value: function removeColumnDef(columnDef) {
            this._customColumnDefs["delete"](columnDef);
          }
          /** Adds a row definition that was not included as part of the content children. */

        }, {
          key: "addRowDef",
          value: function addRowDef(rowDef) {
            this._customRowDefs.add(rowDef);
          }
          /** Removes a row definition that was not included as part of the content children. */

        }, {
          key: "removeRowDef",
          value: function removeRowDef(rowDef) {
            this._customRowDefs["delete"](rowDef);
          }
          /** Adds a header row definition that was not included as part of the content children. */

        }, {
          key: "addHeaderRowDef",
          value: function addHeaderRowDef(headerRowDef) {
            this._customHeaderRowDefs.add(headerRowDef);

            this._headerRowDefChanged = true;
          }
          /** Removes a header row definition that was not included as part of the content children. */

        }, {
          key: "removeHeaderRowDef",
          value: function removeHeaderRowDef(headerRowDef) {
            this._customHeaderRowDefs["delete"](headerRowDef);

            this._headerRowDefChanged = true;
          }
          /** Adds a footer row definition that was not included as part of the content children. */

        }, {
          key: "addFooterRowDef",
          value: function addFooterRowDef(footerRowDef) {
            this._customFooterRowDefs.add(footerRowDef);

            this._footerRowDefChanged = true;
          }
          /** Removes a footer row definition that was not included as part of the content children. */

        }, {
          key: "removeFooterRowDef",
          value: function removeFooterRowDef(footerRowDef) {
            this._customFooterRowDefs["delete"](footerRowDef);

            this._footerRowDefChanged = true;
          }
          /** Sets a no data row definition that was not included as a part of the content children. */

        }, {
          key: "setNoDataRow",
          value: function setNoDataRow(noDataRow) {
            this._customNoDataRow = noDataRow;
          }
          /**
           * Updates the header sticky styles. First resets all applied styles with respect to the cells
           * sticking to the top. Then, evaluating which cells need to be stuck to the top. This is
           * automatically called when the header row changes its displayed set of columns, or if its
           * sticky input changes. May be called manually for cases where the cell content changes outside
           * of these events.
           */

        }, {
          key: "updateStickyHeaderRowStyles",
          value: function updateStickyHeaderRowStyles() {
            var headerRows = this._getRenderedRows(this._headerRowOutlet);

            var tableElement = this._elementRef.nativeElement; // Hide the thead element if there are no header rows. This is necessary to satisfy
            // overzealous a11y checkers that fail because the `rowgroup` element does not contain
            // required child `row`.

            var thead = tableElement.querySelector('thead');

            if (thead) {
              thead.style.display = headerRows.length ? '' : 'none';
            }

            var stickyStates = this._headerRowDefs.map(function (def) {
              return def.sticky;
            });

            this._stickyStyler.clearStickyPositioning(headerRows, ['top']);

            this._stickyStyler.stickRows(headerRows, stickyStates, 'top'); // Reset the dirty state of the sticky input change since it has been used.


            this._headerRowDefs.forEach(function (def) {
              return def.resetStickyChanged();
            });
          }
          /**
           * Updates the footer sticky styles. First resets all applied styles with respect to the cells
           * sticking to the bottom. Then, evaluating which cells need to be stuck to the bottom. This is
           * automatically called when the footer row changes its displayed set of columns, or if its
           * sticky input changes. May be called manually for cases where the cell content changes outside
           * of these events.
           */

        }, {
          key: "updateStickyFooterRowStyles",
          value: function updateStickyFooterRowStyles() {
            var footerRows = this._getRenderedRows(this._footerRowOutlet);

            var tableElement = this._elementRef.nativeElement; // Hide the tfoot element if there are no footer rows. This is necessary to satisfy
            // overzealous a11y checkers that fail because the `rowgroup` element does not contain
            // required child `row`.

            var tfoot = tableElement.querySelector('tfoot');

            if (tfoot) {
              tfoot.style.display = footerRows.length ? '' : 'none';
            }

            var stickyStates = this._footerRowDefs.map(function (def) {
              return def.sticky;
            });

            this._stickyStyler.clearStickyPositioning(footerRows, ['bottom']);

            this._stickyStyler.stickRows(footerRows, stickyStates, 'bottom');

            this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement, stickyStates); // Reset the dirty state of the sticky input change since it has been used.


            this._footerRowDefs.forEach(function (def) {
              return def.resetStickyChanged();
            });
          }
          /**
           * Updates the column sticky styles. First resets all applied styles with respect to the cells
           * sticking to the left and right. Then sticky styles are added for the left and right according
           * to the column definitions for each cell in each row. This is automatically called when
           * the data source provides a new set of data or when a column definition changes its sticky
           * input. May be called manually for cases where the cell content changes outside of these events.
           */

        }, {
          key: "updateStickyColumnStyles",
          value: function updateStickyColumnStyles() {
            var _this485 = this;

            var headerRows = this._getRenderedRows(this._headerRowOutlet);

            var dataRows = this._getRenderedRows(this._rowOutlet);

            var footerRows = this._getRenderedRows(this._footerRowOutlet); // For tables not using a fixed layout, the column widths may change when new rows are rendered.
            // In a table using a fixed layout, row content won't affect column width, so sticky styles
            // don't need to be cleared unless either the sticky column config changes or one of the row
            // defs change.


            if (this._isNativeHtmlTable && !this._fixedLayout || this._stickyColumnStylesNeedReset) {
              // Clear the left and right positioning from all columns in the table across all rows since
              // sticky columns span across all table sections (header, data, footer)
              this._stickyStyler.clearStickyPositioning([].concat(_toConsumableArray(headerRows), _toConsumableArray(dataRows), _toConsumableArray(footerRows)), ['left', 'right']);

              this._stickyColumnStylesNeedReset = false;
            } // Update the sticky styles for each header row depending on the def's sticky state


            headerRows.forEach(function (headerRow, i) {
              _this485._addStickyColumnStyles([headerRow], _this485._headerRowDefs[i]);
            }); // Update the sticky styles for each data row depending on its def's sticky state

            this._rowDefs.forEach(function (rowDef) {
              // Collect all the rows rendered with this row definition.
              var rows = [];

              for (var i = 0; i < dataRows.length; i++) {
                if (_this485._renderRows[i].rowDef === rowDef) {
                  rows.push(dataRows[i]);
                }
              }

              _this485._addStickyColumnStyles(rows, rowDef);
            }); // Update the sticky styles for each footer row depending on the def's sticky state


            footerRows.forEach(function (footerRow, i) {
              _this485._addStickyColumnStyles([footerRow], _this485._footerRowDefs[i]);
            }); // Reset the dirty state of the sticky input change since it has been used.

            Array.from(this._columnDefsByName.values()).forEach(function (def) {
              return def.resetStickyChanged();
            });
          }
          /**
           * Get the list of RenderRow objects to render according to the current list of data and defined
           * row definitions. If the previous list already contained a particular pair, it should be reused
           * so that the differ equates their references.
           */

        }, {
          key: "_getAllRenderRows",
          value: function _getAllRenderRows() {
            var renderRows = []; // Store the cache and create a new one. Any re-used RenderRow objects will be moved into the
            // new cache while unused ones can be picked up by garbage collection.

            var prevCachedRenderRows = this._cachedRenderRowsMap;
            this._cachedRenderRowsMap = new Map(); // For each data object, get the list of rows that should be rendered, represented by the
            // respective `RenderRow` object which is the pair of `data` and `CdkRowDef`.

            for (var i = 0; i < this._data.length; i++) {
              var data = this._data[i];

              var renderRowsForData = this._getRenderRowsForData(data, i, prevCachedRenderRows.get(data));

              if (!this._cachedRenderRowsMap.has(data)) {
                this._cachedRenderRowsMap.set(data, new WeakMap());
              }

              for (var j = 0; j < renderRowsForData.length; j++) {
                var renderRow = renderRowsForData[j];

                var cache = this._cachedRenderRowsMap.get(renderRow.data);

                if (cache.has(renderRow.rowDef)) {
                  cache.get(renderRow.rowDef).push(renderRow);
                } else {
                  cache.set(renderRow.rowDef, [renderRow]);
                }

                renderRows.push(renderRow);
              }
            }

            return renderRows;
          }
          /**
           * Gets a list of `RenderRow<T>` for the provided data object and any `CdkRowDef` objects that
           * should be rendered for this data. Reuses the cached RenderRow objects if they match the same
           * `(T, CdkRowDef)` pair.
           */

        }, {
          key: "_getRenderRowsForData",
          value: function _getRenderRowsForData(data, dataIndex, cache) {
            var rowDefs = this._getRowDefs(data, dataIndex);

            return rowDefs.map(function (rowDef) {
              var cachedRenderRows = cache && cache.has(rowDef) ? cache.get(rowDef) : [];

              if (cachedRenderRows.length) {
                var dataRow = cachedRenderRows.shift();
                dataRow.dataIndex = dataIndex;
                return dataRow;
              } else {
                return {
                  data: data,
                  rowDef: rowDef,
                  dataIndex: dataIndex
                };
              }
            });
          }
          /** Update the map containing the content's column definitions. */

        }, {
          key: "_cacheColumnDefs",
          value: function _cacheColumnDefs() {
            var _this486 = this;

            this._columnDefsByName.clear();

            var columnDefs = mergeArrayAndSet(this._getOwnDefs(this._contentColumnDefs), this._customColumnDefs);
            columnDefs.forEach(function (columnDef) {
              if (_this486._columnDefsByName.has(columnDef.name) && (typeof ngDevMode === 'undefined' || ngDevMode)) {
                throw getTableDuplicateColumnNameError(columnDef.name);
              }

              _this486._columnDefsByName.set(columnDef.name, columnDef);
            });
          }
          /** Update the list of all available row definitions that can be used. */

        }, {
          key: "_cacheRowDefs",
          value: function _cacheRowDefs() {
            this._headerRowDefs = mergeArrayAndSet(this._getOwnDefs(this._contentHeaderRowDefs), this._customHeaderRowDefs);
            this._footerRowDefs = mergeArrayAndSet(this._getOwnDefs(this._contentFooterRowDefs), this._customFooterRowDefs);
            this._rowDefs = mergeArrayAndSet(this._getOwnDefs(this._contentRowDefs), this._customRowDefs); // After all row definitions are determined, find the row definition to be considered default.

            var defaultRowDefs = this._rowDefs.filter(function (def) {
              return !def.when;
            });

            if (!this.multiTemplateDataRows && defaultRowDefs.length > 1 && (typeof ngDevMode === 'undefined' || ngDevMode)) {
              throw getTableMultipleDefaultRowDefsError();
            }

            this._defaultRowDef = defaultRowDefs[0];
          }
          /**
           * Check if the header, data, or footer rows have changed what columns they want to display or
           * whether the sticky states have changed for the header or footer. If there is a diff, then
           * re-render that section.
           */

        }, {
          key: "_renderUpdatedColumns",
          value: function _renderUpdatedColumns() {
            var columnsDiffReducer = function columnsDiffReducer(acc, def) {
              return acc || !!def.getColumnsDiff();
            }; // Force re-render data rows if the list of column definitions have changed.


            var dataColumnsChanged = this._rowDefs.reduce(columnsDiffReducer, false);

            if (dataColumnsChanged) {
              this._forceRenderDataRows();
            } // Force re-render header/footer rows if the list of column definitions have changed.


            var headerColumnsChanged = this._headerRowDefs.reduce(columnsDiffReducer, false);

            if (headerColumnsChanged) {
              this._forceRenderHeaderRows();
            }

            var footerColumnsChanged = this._footerRowDefs.reduce(columnsDiffReducer, false);

            if (footerColumnsChanged) {
              this._forceRenderFooterRows();
            }

            return dataColumnsChanged || headerColumnsChanged || footerColumnsChanged;
          }
          /**
           * Switch to the provided data source by resetting the data and unsubscribing from the current
           * render change subscription if one exists. If the data source is null, interpret this by
           * clearing the row outlet. Otherwise start listening for new data.
           */

        }, {
          key: "_switchDataSource",
          value: function _switchDataSource(dataSource) {
            this._data = [];

            if (Object(_angular_cdk_collections__WEBPACK_IMPORTED_MODULE_2__["isDataSource"])(this.dataSource)) {
              this.dataSource.disconnect(this);
            } // Stop listening for data from the previous data source.


            if (this._renderChangeSubscription) {
              this._renderChangeSubscription.unsubscribe();

              this._renderChangeSubscription = null;
            }

            if (!dataSource) {
              if (this._dataDiffer) {
                this._dataDiffer.diff([]);
              }

              this._rowOutlet.viewContainer.clear();
            }

            this._dataSource = dataSource;
          }
          /** Set up a subscription for the data provided by the data source. */

        }, {
          key: "_observeRenderChanges",
          value: function _observeRenderChanges() {
            var _this487 = this;

            // If no data source has been set, there is nothing to observe for changes.
            if (!this.dataSource) {
              return;
            }

            var dataStream;

            if (Object(_angular_cdk_collections__WEBPACK_IMPORTED_MODULE_2__["isDataSource"])(this.dataSource)) {
              dataStream = this.dataSource.connect(this);
            } else if (Object(rxjs__WEBPACK_IMPORTED_MODULE_7__["isObservable"])(this.dataSource)) {
              dataStream = this.dataSource;
            } else if (Array.isArray(this.dataSource)) {
              dataStream = Object(rxjs__WEBPACK_IMPORTED_MODULE_7__["of"])(this.dataSource);
            }

            if (dataStream === undefined && (typeof ngDevMode === 'undefined' || ngDevMode)) {
              throw getTableUnknownDataSourceError();
            }

            this._renderChangeSubscription = dataStream.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_8__["takeUntil"])(this._onDestroy)).subscribe(function (data) {
              _this487._data = data || [];

              _this487.renderRows();
            });
          }
          /**
           * Clears any existing content in the header row outlet and creates a new embedded view
           * in the outlet using the header row definition.
           */

        }, {
          key: "_forceRenderHeaderRows",
          value: function _forceRenderHeaderRows() {
            var _this488 = this;

            // Clear the header row outlet if any content exists.
            if (this._headerRowOutlet.viewContainer.length > 0) {
              this._headerRowOutlet.viewContainer.clear();
            }

            this._headerRowDefs.forEach(function (def, i) {
              return _this488._renderRow(_this488._headerRowOutlet, def, i);
            });

            this.updateStickyHeaderRowStyles();
          }
          /**
           * Clears any existing content in the footer row outlet and creates a new embedded view
           * in the outlet using the footer row definition.
           */

        }, {
          key: "_forceRenderFooterRows",
          value: function _forceRenderFooterRows() {
            var _this489 = this;

            // Clear the footer row outlet if any content exists.
            if (this._footerRowOutlet.viewContainer.length > 0) {
              this._footerRowOutlet.viewContainer.clear();
            }

            this._footerRowDefs.forEach(function (def, i) {
              return _this489._renderRow(_this489._footerRowOutlet, def, i);
            });

            this.updateStickyFooterRowStyles();
          }
          /** Adds the sticky column styles for the rows according to the columns' stick states. */

        }, {
          key: "_addStickyColumnStyles",
          value: function _addStickyColumnStyles(rows, rowDef) {
            var _this490 = this;

            var columnDefs = Array.from(rowDef.columns || []).map(function (columnName) {
              var columnDef = _this490._columnDefsByName.get(columnName);

              if (!columnDef && (typeof ngDevMode === 'undefined' || ngDevMode)) {
                throw getTableUnknownColumnError(columnName);
              }

              return columnDef;
            });
            var stickyStartStates = columnDefs.map(function (columnDef) {
              return columnDef.sticky;
            });
            var stickyEndStates = columnDefs.map(function (columnDef) {
              return columnDef.stickyEnd;
            });

            this._stickyStyler.updateStickyColumns(rows, stickyStartStates, stickyEndStates, !this._fixedLayout || this._forceRecalculateCellWidths);
          }
          /** Gets the list of rows that have been rendered in the row outlet. */

        }, {
          key: "_getRenderedRows",
          value: function _getRenderedRows(rowOutlet) {
            var renderedRows = [];

            for (var i = 0; i < rowOutlet.viewContainer.length; i++) {
              var viewRef = rowOutlet.viewContainer.get(i);
              renderedRows.push(viewRef.rootNodes[0]);
            }

            return renderedRows;
          }
          /**
           * Get the matching row definitions that should be used for this row data. If there is only
           * one row definition, it is returned. Otherwise, find the row definitions that has a when
           * predicate that returns true with the data. If none return true, return the default row
           * definition.
           */

        }, {
          key: "_getRowDefs",
          value: function _getRowDefs(data, dataIndex) {
            if (this._rowDefs.length == 1) {
              return [this._rowDefs[0]];
            }

            var rowDefs = [];

            if (this.multiTemplateDataRows) {
              rowDefs = this._rowDefs.filter(function (def) {
                return !def.when || def.when(dataIndex, data);
              });
            } else {
              var rowDef = this._rowDefs.find(function (def) {
                return def.when && def.when(dataIndex, data);
              }) || this._defaultRowDef;

              if (rowDef) {
                rowDefs.push(rowDef);
              }
            }

            if (!rowDefs.length && (typeof ngDevMode === 'undefined' || ngDevMode)) {
              throw getTableMissingMatchingRowDefError(data);
            }

            return rowDefs;
          }
        }, {
          key: "_getEmbeddedViewArgs",
          value: function _getEmbeddedViewArgs(renderRow, index) {
            var rowDef = renderRow.rowDef;
            var context = {
              $implicit: renderRow.data
            };
            return {
              templateRef: rowDef.template,
              context: context,
              index: index
            };
          }
          /**
           * Creates a new row template in the outlet and fills it with the set of cell templates.
           * Optionally takes a context to provide to the row and cells, as well as an optional index
           * of where to place the new row template in the outlet.
           */

        }, {
          key: "_renderRow",
          value: function _renderRow(outlet, rowDef, index) {
            var context = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
            // TODO(andrewseguin): enforce that one outlet was instantiated from createEmbeddedView
            var view = outlet.viewContainer.createEmbeddedView(rowDef.template, context, index);

            this._renderCellTemplateForItem(rowDef, context);

            return view;
          }
        }, {
          key: "_renderCellTemplateForItem",
          value: function _renderCellTemplateForItem(rowDef, context) {
            var _iterator69 = _createForOfIteratorHelper(this._getCellTemplates(rowDef)),
                _step68;

            try {
              for (_iterator69.s(); !(_step68 = _iterator69.n()).done;) {
                var cellTemplate = _step68.value;

                if (CdkCellOutlet.mostRecentCellOutlet) {
                  CdkCellOutlet.mostRecentCellOutlet._viewContainer.createEmbeddedView(cellTemplate, context);
                }
              }
            } catch (err) {
              _iterator69.e(err);
            } finally {
              _iterator69.f();
            }

            this._changeDetectorRef.markForCheck();
          }
          /**
           * Updates the index-related context for each row to reflect any changes in the index of the rows,
           * e.g. first/last/even/odd.
           */

        }, {
          key: "_updateRowIndexContext",
          value: function _updateRowIndexContext() {
            var viewContainer = this._rowOutlet.viewContainer;

            for (var renderIndex = 0, count = viewContainer.length; renderIndex < count; renderIndex++) {
              var viewRef = viewContainer.get(renderIndex);
              var context = viewRef.context;
              context.count = count;
              context.first = renderIndex === 0;
              context.last = renderIndex === count - 1;
              context.even = renderIndex % 2 === 0;
              context.odd = !context.even;

              if (this.multiTemplateDataRows) {
                context.dataIndex = this._renderRows[renderIndex].dataIndex;
                context.renderIndex = renderIndex;
              } else {
                context.index = this._renderRows[renderIndex].dataIndex;
              }
            }
          }
          /** Gets the column definitions for the provided row def. */

        }, {
          key: "_getCellTemplates",
          value: function _getCellTemplates(rowDef) {
            var _this491 = this;

            if (!rowDef || !rowDef.columns) {
              return [];
            }

            return Array.from(rowDef.columns, function (columnId) {
              var column = _this491._columnDefsByName.get(columnId);

              if (!column && (typeof ngDevMode === 'undefined' || ngDevMode)) {
                throw getTableUnknownColumnError(columnId);
              }

              return rowDef.extractCellTemplate(column);
            });
          }
          /** Adds native table sections (e.g. tbody) and moves the row outlets into them. */

        }, {
          key: "_applyNativeTableSections",
          value: function _applyNativeTableSections() {
            var documentFragment = this._document.createDocumentFragment();

            var sections = [{
              tag: 'thead',
              outlets: [this._headerRowOutlet]
            }, {
              tag: 'tbody',
              outlets: [this._rowOutlet, this._noDataRowOutlet]
            }, {
              tag: 'tfoot',
              outlets: [this._footerRowOutlet]
            }];

            for (var _i33 = 0, _sections = sections; _i33 < _sections.length; _i33++) {
              var section = _sections[_i33];

              var element = this._document.createElement(section.tag);

              element.setAttribute('role', 'rowgroup');

              var _iterator70 = _createForOfIteratorHelper(section.outlets),
                  _step69;

              try {
                for (_iterator70.s(); !(_step69 = _iterator70.n()).done;) {
                  var outlet = _step69.value;
                  element.appendChild(outlet.elementRef.nativeElement);
                }
              } catch (err) {
                _iterator70.e(err);
              } finally {
                _iterator70.f();
              }

              documentFragment.appendChild(element);
            } // Use a DocumentFragment so we don't hit the DOM on each iteration.


            this._elementRef.nativeElement.appendChild(documentFragment);
          }
          /**
           * Forces a re-render of the data rows. Should be called in cases where there has been an input
           * change that affects the evaluation of which rows should be rendered, e.g. toggling
           * `multiTemplateDataRows` or adding/removing row definitions.
           */

        }, {
          key: "_forceRenderDataRows",
          value: function _forceRenderDataRows() {
            this._dataDiffer.diff([]);

            this._rowOutlet.viewContainer.clear();

            this.renderRows();
          }
          /**
           * Checks if there has been a change in sticky states since last check and applies the correct
           * sticky styles. Since checking resets the "dirty" state, this should only be performed once
           * during a change detection and after the inputs are settled (after content check).
           */

        }, {
          key: "_checkStickyStates",
          value: function _checkStickyStates() {
            var stickyCheckReducer = function stickyCheckReducer(acc, d) {
              return acc || d.hasStickyChanged();
            }; // Note that the check needs to occur for every definition since it notifies the definition
            // that it can reset its dirty state. Using another operator like `some` may short-circuit
            // remaining definitions and leave them in an unchecked state.


            if (this._headerRowDefs.reduce(stickyCheckReducer, false)) {
              this.updateStickyHeaderRowStyles();
            }

            if (this._footerRowDefs.reduce(stickyCheckReducer, false)) {
              this.updateStickyFooterRowStyles();
            }

            if (Array.from(this._columnDefsByName.values()).reduce(stickyCheckReducer, false)) {
              this._stickyColumnStylesNeedReset = true;
              this.updateStickyColumnStyles();
            }
          }
          /**
           * Creates the sticky styler that will be used for sticky rows and columns. Listens
           * for directionality changes and provides the latest direction to the styler. Re-applies column
           * stickiness when directionality changes.
           */

        }, {
          key: "_setupStickyStyler",
          value: function _setupStickyStyler() {
            var _this492 = this;

            var direction = this._dir ? this._dir.value : 'ltr';
            this._stickyStyler = new StickyStyler(this._isNativeHtmlTable, this.stickyCssClass, direction, this._coalescedStyleScheduler, this._platform.isBrowser, this.needsPositionStickyOnElement);
            (this._dir ? this._dir.change : Object(rxjs__WEBPACK_IMPORTED_MODULE_7__["of"])()).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_8__["takeUntil"])(this._onDestroy)).subscribe(function (value) {
              _this492._stickyStyler.direction = value;

              _this492.updateStickyColumnStyles();
            });
          }
          /** Filters definitions that belong to this table from a QueryList. */

        }, {
          key: "_getOwnDefs",
          value: function _getOwnDefs(items) {
            var _this493 = this;

            return items.filter(function (item) {
              return !item._table || item._table === _this493;
            });
          }
          /** Creates or removes the no data row, depending on whether any data is being shown. */

        }, {
          key: "_updateNoDataRow",
          value: function _updateNoDataRow() {
            var noDataRow = this._customNoDataRow || this._noDataRow;

            if (noDataRow) {
              var shouldShow = this._rowOutlet.viewContainer.length === 0;

              if (shouldShow !== this._isShowingNoDataRow) {
                var container = this._noDataRowOutlet.viewContainer;
                shouldShow ? container.createEmbeddedView(noDataRow.templateRef) : container.clear();
                this._isShowingNoDataRow = shouldShow;
              }
            }
          }
        }]);

        return CdkTable;
      }();

      CdkTable.ɵfac = function CdkTable_Factory(t) {
        return new (t || CdkTable)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["IterableDiffers"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinjectAttribute"]('role'), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_0__["Directionality"], 8), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_common__WEBPACK_IMPORTED_MODULE_6__["DOCUMENT"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__["Platform"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_cdk_collections__WEBPACK_IMPORTED_MODULE_2__["_VIEW_REPEATER_STRATEGY"], 8), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_COALESCED_STYLE_SCHEDULER, 8), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_5__["ViewportRuler"], 8));
      };

      CdkTable.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({
        type: CdkTable,
        selectors: [["cdk-table"], ["table", "cdk-table", ""]],
        contentQueries: function CdkTable_ContentQueries(rf, ctx, dirIndex) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵcontentQuery"](dirIndex, CdkNoDataRow, true);

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵcontentQuery"](dirIndex, CdkColumnDef, true);

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵcontentQuery"](dirIndex, CdkRowDef, true);

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵcontentQuery"](dirIndex, CdkHeaderRowDef, true);

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵcontentQuery"](dirIndex, CdkFooterRowDef, true);
          }

          if (rf & 2) {
            var _t;

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵloadQuery"]()) && (ctx._noDataRow = _t.first);
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵloadQuery"]()) && (ctx._contentColumnDefs = _t);
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵloadQuery"]()) && (ctx._contentRowDefs = _t);
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵloadQuery"]()) && (ctx._contentHeaderRowDefs = _t);
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵloadQuery"]()) && (ctx._contentFooterRowDefs = _t);
          }
        },
        viewQuery: function CdkTable_Query(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵstaticViewQuery"](DataRowOutlet, true);

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵstaticViewQuery"](HeaderRowOutlet, true);

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵstaticViewQuery"](FooterRowOutlet, true);

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵstaticViewQuery"](NoDataRowOutlet, true);
          }

          if (rf & 2) {
            var _t;

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵloadQuery"]()) && (ctx._rowOutlet = _t.first);
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵloadQuery"]()) && (ctx._headerRowOutlet = _t.first);
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵloadQuery"]()) && (ctx._footerRowOutlet = _t.first);
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵloadQuery"]()) && (ctx._noDataRowOutlet = _t.first);
          }
        },
        hostAttrs: [1, "cdk-table"],
        hostVars: 2,
        hostBindings: function CdkTable_HostBindings(rf, ctx) {
          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵclassProp"]("cdk-table-fixed-layout", ctx.fixedLayout);
          }
        },
        inputs: {
          trackBy: "trackBy",
          dataSource: "dataSource",
          multiTemplateDataRows: "multiTemplateDataRows",
          fixedLayout: "fixedLayout"
        },
        exportAs: ["cdkTable"],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵProvidersFeature"]([{
          provide: CDK_TABLE,
          useExisting: CdkTable
        }, {
          provide: _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_2__["_VIEW_REPEATER_STRATEGY"],
          useClass: _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_2__["_DisposeViewRepeaterStrategy"]
        }, {
          provide: _COALESCED_STYLE_SCHEDULER,
          useClass: _CoalescedStyleScheduler
        }])],
        ngContentSelectors: _c1,
        decls: 6,
        vars: 0,
        consts: [["headerRowOutlet", ""], ["rowOutlet", ""], ["noDataRowOutlet", ""], ["footerRowOutlet", ""]],
        template: function CdkTable_Template(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵprojectionDef"](_c0);

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵprojection"](0);

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵprojection"](1, 1);

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainer"](2, 0);

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainer"](3, 1);

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainer"](4, 2);

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainer"](5, 3);
          }
        },
        directives: [HeaderRowOutlet, DataRowOutlet, NoDataRowOutlet, FooterRowOutlet],
        styles: [".cdk-table-fixed-layout{table-layout:fixed}\n"],
        encapsulation: 2
      });

      CdkTable.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["IterableDiffers"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ChangeDetectorRef"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]
        }, {
          type: String,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Attribute"],
            args: ['role']
          }]
        }, {
          type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_0__["Directionality"],
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"]
          }]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"],
            args: [_angular_common__WEBPACK_IMPORTED_MODULE_6__["DOCUMENT"]]
          }]
        }, {
          type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__["Platform"]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"],
            args: [_angular_cdk_collections__WEBPACK_IMPORTED_MODULE_2__["_VIEW_REPEATER_STRATEGY"]]
          }]
        }, {
          type: _CoalescedStyleScheduler,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"],
            args: [_COALESCED_STYLE_SCHEDULER]
          }]
        }, {
          type: _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_5__["ViewportRuler"],
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"]
          }]
        }];
      };

      CdkTable.propDecorators = {
        trackBy: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
        }],
        dataSource: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
        }],
        multiTemplateDataRows: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
        }],
        fixedLayout: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
        }],
        _rowOutlet: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewChild"],
          args: [DataRowOutlet, {
            "static": true
          }]
        }],
        _headerRowOutlet: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewChild"],
          args: [HeaderRowOutlet, {
            "static": true
          }]
        }],
        _footerRowOutlet: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewChild"],
          args: [FooterRowOutlet, {
            "static": true
          }]
        }],
        _noDataRowOutlet: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewChild"],
          args: [NoDataRowOutlet, {
            "static": true
          }]
        }],
        _contentColumnDefs: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ContentChildren"],
          args: [CdkColumnDef, {
            descendants: true
          }]
        }],
        _contentRowDefs: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ContentChildren"],
          args: [CdkRowDef, {
            descendants: true
          }]
        }],
        _contentHeaderRowDefs: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ContentChildren"],
          args: [CdkHeaderRowDef, {
            descendants: true
          }]
        }],
        _contentFooterRowDefs: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ContentChildren"],
          args: [CdkFooterRowDef, {
            descendants: true
          }]
        }],
        _noDataRow: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ContentChild"],
          args: [CdkNoDataRow]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](CdkTable, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Component"],
          args: [{
            selector: 'cdk-table, table[cdk-table]',
            exportAs: 'cdkTable',
            template: CDK_TABLE_TEMPLATE,
            host: {
              'class': 'cdk-table',
              '[class.cdk-table-fixed-layout]': 'fixedLayout'
            },
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewEncapsulation"].None,
            // The "OnPush" status for the `MatTable` component is effectively a noop, so we are removing it.
            // The view for `MatTable` consists entirely of templates declared in other views. As they are
            // declared elsewhere, they are checked when their declaration points are checked.
            // tslint:disable-next-line:validate-decorators
            changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ChangeDetectionStrategy"].Default,
            providers: [{
              provide: CDK_TABLE,
              useExisting: CdkTable
            }, {
              provide: _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_2__["_VIEW_REPEATER_STRATEGY"],
              useClass: _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_2__["_DisposeViewRepeaterStrategy"]
            }, {
              provide: _COALESCED_STYLE_SCHEDULER,
              useClass: _CoalescedStyleScheduler
            }],
            styles: [".cdk-table-fixed-layout{table-layout:fixed}\n"]
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["IterableDiffers"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ChangeDetectorRef"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]
          }, {
            type: String,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Attribute"],
              args: ['role']
            }]
          }, {
            type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_0__["Directionality"],
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"]
            }]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"],
              args: [_angular_common__WEBPACK_IMPORTED_MODULE_6__["DOCUMENT"]]
            }]
          }, {
            type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__["Platform"]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"],
              args: [_angular_cdk_collections__WEBPACK_IMPORTED_MODULE_2__["_VIEW_REPEATER_STRATEGY"]]
            }]
          }, {
            type: _CoalescedStyleScheduler,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"],
              args: [_COALESCED_STYLE_SCHEDULER]
            }]
          }, {
            type: _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_5__["ViewportRuler"],
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"]
            }]
          }];
        }, {
          trackBy: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
          }],
          dataSource: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
          }],
          multiTemplateDataRows: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
          }],
          fixedLayout: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
          }],
          _rowOutlet: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewChild"],
            args: [DataRowOutlet, {
              "static": true
            }]
          }],
          _headerRowOutlet: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewChild"],
            args: [HeaderRowOutlet, {
              "static": true
            }]
          }],
          _footerRowOutlet: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewChild"],
            args: [FooterRowOutlet, {
              "static": true
            }]
          }],
          _noDataRowOutlet: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewChild"],
            args: [NoDataRowOutlet, {
              "static": true
            }]
          }],
          _contentColumnDefs: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ContentChildren"],
            args: [CdkColumnDef, {
              descendants: true
            }]
          }],
          _contentRowDefs: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ContentChildren"],
            args: [CdkRowDef, {
              descendants: true
            }]
          }],
          _contentHeaderRowDefs: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ContentChildren"],
            args: [CdkHeaderRowDef, {
              descendants: true
            }]
          }],
          _contentFooterRowDefs: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ContentChildren"],
            args: [CdkFooterRowDef, {
              descendants: true
            }]
          }],
          _noDataRow: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ContentChild"],
            args: [CdkNoDataRow]
          }]
        });
      })();
      /** Utility function that gets a merged list of the entries in an array and values of a Set. */


      function mergeArrayAndSet(array, set) {
        return array.concat(Array.from(set));
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Column that simply shows text content for the header and row cells. Assumes that the table
       * is using the native table implementation (`<table>`).
       *
       * By default, the name of this column will be the header text and data property accessor.
       * The header text can be overridden with the `headerText` input. Cell values can be overridden with
       * the `dataAccessor` input. Change the text justification to the start or end using the `justify`
       * input.
       */


      var CdkTextColumn = /*#__PURE__*/function () {
        function CdkTextColumn( // `CdkTextColumn` is always requiring a table, but we just assert it manually
        // for better error reporting.
        // tslint:disable-next-line: lightweight-tokens
        _table, _options) {
          _classCallCheck2(this, CdkTextColumn);

          this._table = _table;
          this._options = _options;
          /** Alignment of the cell values. */

          this.justify = 'start';
          this._options = _options || {};
        }
        /** Column name that should be used to reference this column. */


        _createClass2(CdkTextColumn, [{
          key: "name",
          get: function get() {
            return this._name;
          },
          set: function set(name) {
            this._name = name; // With Ivy, inputs can be initialized before static query results are
            // available. In that case, we defer the synchronization until "ngOnInit" fires.

            this._syncColumnDefName();
          }
        }, {
          key: "ngOnInit",
          value: function ngOnInit() {
            this._syncColumnDefName();

            if (this.headerText === undefined) {
              this.headerText = this._createDefaultHeaderText();
            }

            if (!this.dataAccessor) {
              this.dataAccessor = this._options.defaultDataAccessor || function (data, name) {
                return data[name];
              };
            }

            if (this._table) {
              // Provide the cell and headerCell directly to the table with the static `ViewChild` query,
              // since the columnDef will not pick up its content by the time the table finishes checking
              // its content and initializing the rows.
              this.columnDef.cell = this.cell;
              this.columnDef.headerCell = this.headerCell;

              this._table.addColumnDef(this.columnDef);
            } else if (typeof ngDevMode === 'undefined' || ngDevMode) {
              throw getTableTextColumnMissingParentTableError();
            }
          }
        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            if (this._table) {
              this._table.removeColumnDef(this.columnDef);
            }
          }
          /**
           * Creates a default header text. Use the options' header text transformation function if one
           * has been provided. Otherwise simply capitalize the column name.
           */

        }, {
          key: "_createDefaultHeaderText",
          value: function _createDefaultHeaderText() {
            var name = this.name;

            if (!name && (typeof ngDevMode === 'undefined' || ngDevMode)) {
              throw getTableTextColumnMissingNameError();
            }

            if (this._options && this._options.defaultHeaderTextTransform) {
              return this._options.defaultHeaderTextTransform(name);
            }

            return name[0].toUpperCase() + name.slice(1);
          }
          /** Synchronizes the column definition name with the text column name. */

        }, {
          key: "_syncColumnDefName",
          value: function _syncColumnDefName() {
            if (this.columnDef) {
              this.columnDef.name = this.name;
            }
          }
        }]);

        return CdkTextColumn;
      }();

      CdkTextColumn.ɵfac = function CdkTextColumn_Factory(t) {
        return new (t || CdkTextColumn)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](CdkTable, 8), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](TEXT_COLUMN_OPTIONS, 8));
      };

      CdkTextColumn.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({
        type: CdkTextColumn,
        selectors: [["cdk-text-column"]],
        viewQuery: function CdkTextColumn_Query(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵstaticViewQuery"](CdkColumnDef, true);

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵstaticViewQuery"](CdkCellDef, true);

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵstaticViewQuery"](CdkHeaderCellDef, true);
          }

          if (rf & 2) {
            var _t;

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵloadQuery"]()) && (ctx.columnDef = _t.first);
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵloadQuery"]()) && (ctx.cell = _t.first);
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵloadQuery"]()) && (ctx.headerCell = _t.first);
          }
        },
        inputs: {
          justify: "justify",
          name: "name",
          headerText: "headerText",
          dataAccessor: "dataAccessor"
        },
        decls: 3,
        vars: 0,
        consts: [["cdkColumnDef", ""], ["cdk-header-cell", "", 3, "text-align", 4, "cdkHeaderCellDef"], ["cdk-cell", "", 3, "text-align", 4, "cdkCellDef"], ["cdk-header-cell", ""], ["cdk-cell", ""]],
        template: function CdkTextColumn_Template(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerStart"](0, 0);

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](1, CdkTextColumn_th_1_Template, 2, 3, "th", 1);

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](2, CdkTextColumn_td_2_Template, 2, 3, "td", 2);

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerEnd"]();
          }
        },
        directives: [CdkColumnDef, CdkHeaderCellDef, CdkCellDef, CdkHeaderCell, CdkCell],
        encapsulation: 2
      });

      CdkTextColumn.ctorParameters = function () {
        return [{
          type: CdkTable,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"]
          }]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"],
            args: [TEXT_COLUMN_OPTIONS]
          }]
        }];
      };

      CdkTextColumn.propDecorators = {
        name: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
        }],
        headerText: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
        }],
        dataAccessor: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
        }],
        justify: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
        }],
        columnDef: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewChild"],
          args: [CdkColumnDef, {
            "static": true
          }]
        }],
        cell: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewChild"],
          args: [CdkCellDef, {
            "static": true
          }]
        }],
        headerCell: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewChild"],
          args: [CdkHeaderCellDef, {
            "static": true
          }]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](CdkTextColumn, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Component"],
          args: [{
            selector: 'cdk-text-column',
            template: "\n    <ng-container cdkColumnDef>\n      <th cdk-header-cell *cdkHeaderCellDef [style.text-align]=\"justify\">\n        {{headerText}}\n      </th>\n      <td cdk-cell *cdkCellDef=\"let data\" [style.text-align]=\"justify\">\n        {{dataAccessor(data, name)}}\n      </td>\n    </ng-container>\n  ",
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewEncapsulation"].None,
            // Change detection is intentionally not set to OnPush. This component's template will be provided
            // to the table to be inserted into its view. This is problematic when change detection runs since
            // the bindings in this template will be evaluated _after_ the table's view is evaluated, which
            // mean's the template in the table's view will not have the updated value (and in fact will cause
            // an ExpressionChangedAfterItHasBeenCheckedError).
            // tslint:disable-next-line:validate-decorators
            changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ChangeDetectionStrategy"].Default
          }]
        }], function () {
          return [{
            type: CdkTable,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"]
            }]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"],
              args: [TEXT_COLUMN_OPTIONS]
            }]
          }];
        }, {
          justify: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
          }],
          name: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
          }],
          headerText: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
          }],
          dataAccessor: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
          }],
          columnDef: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewChild"],
            args: [CdkColumnDef, {
              "static": true
            }]
          }],
          cell: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewChild"],
            args: [CdkCellDef, {
              "static": true
            }]
          }],
          headerCell: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewChild"],
            args: [CdkHeaderCellDef, {
              "static": true
            }]
          }]
        });
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var EXPORTED_DECLARATIONS = [CdkTable, CdkRowDef, CdkCellDef, CdkCellOutlet, CdkHeaderCellDef, CdkFooterCellDef, CdkColumnDef, CdkCell, CdkRow, CdkHeaderCell, CdkFooterCell, CdkHeaderRow, CdkHeaderRowDef, CdkFooterRow, CdkFooterRowDef, DataRowOutlet, HeaderRowOutlet, FooterRowOutlet, CdkTextColumn, CdkNoDataRow, NoDataRowOutlet];

      var CdkTableModule = function CdkTableModule() {
        _classCallCheck2(this, CdkTableModule);
      };

      CdkTableModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineNgModule"]({
        type: CdkTableModule
      });
      CdkTableModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineInjector"]({
        factory: function CdkTableModule_Factory(t) {
          return new (t || CdkTableModule)();
        },
        imports: [[_angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_5__["ScrollingModule"]]]
      });

      (function () {
        (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵsetNgModuleScope"](CdkTableModule, {
          declarations: function declarations() {
            return [CdkTable, CdkRowDef, CdkCellDef, CdkCellOutlet, CdkHeaderCellDef, CdkFooterCellDef, CdkColumnDef, CdkCell, CdkRow, CdkHeaderCell, CdkFooterCell, CdkHeaderRow, CdkHeaderRowDef, CdkFooterRow, CdkFooterRowDef, DataRowOutlet, HeaderRowOutlet, FooterRowOutlet, CdkTextColumn, CdkNoDataRow, NoDataRowOutlet];
          },
          imports: function imports() {
            return [_angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_5__["ScrollingModule"]];
          },
          exports: function exports() {
            return [CdkTable, CdkRowDef, CdkCellDef, CdkCellOutlet, CdkHeaderCellDef, CdkFooterCellDef, CdkColumnDef, CdkCell, CdkRow, CdkHeaderCell, CdkFooterCell, CdkHeaderRow, CdkHeaderRowDef, CdkFooterRow, CdkFooterRowDef, DataRowOutlet, HeaderRowOutlet, FooterRowOutlet, CdkTextColumn, CdkNoDataRow, NoDataRowOutlet];
          }
        });
      })();
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](CdkTableModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["NgModule"],
          args: [{
            exports: EXPORTED_DECLARATIONS,
            declarations: EXPORTED_DECLARATIONS,
            imports: [_angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_5__["ScrollingModule"]]
          }]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Generated bundle index. Do not edit.
       */
      //# sourceMappingURL=table.js.map

      /***/

    },

    /***/
    "Gi4w": function Gi4w(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "every", function () {
        return every;
      });
      /* harmony import */


      var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Subscriber */
      "7o/Q");

      function every(predicate, thisArg) {
        return function (source) {
          return source.lift(new EveryOperator(predicate, thisArg, source));
        };
      }

      var EveryOperator = /*#__PURE__*/function () {
        function EveryOperator(predicate, thisArg, source) {
          _classCallCheck2(this, EveryOperator);

          this.predicate = predicate;
          this.thisArg = thisArg;
          this.source = source;
        }

        _createClass2(EveryOperator, [{
          key: "call",
          value: function call(observer, source) {
            return source.subscribe(new EverySubscriber(observer, this.predicate, this.thisArg, this.source));
          }
        }]);

        return EveryOperator;
      }();

      var EverySubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_15) {
        _inherits2(EverySubscriber, _Subscriber__WEBPACK_15);

        var _super205 = _createSuper2(EverySubscriber);

        function EverySubscriber(destination, predicate, thisArg, source) {
          var _this494;

          _classCallCheck2(this, EverySubscriber);

          _this494 = _super205.call(this, destination);
          _this494.predicate = predicate;
          _this494.thisArg = thisArg;
          _this494.source = source;
          _this494.index = 0;
          _this494.thisArg = thisArg || _assertThisInitialized2(_this494);
          return _this494;
        }

        _createClass2(EverySubscriber, [{
          key: "notifyComplete",
          value: function notifyComplete(everyValueMatch) {
            this.destination.next(everyValueMatch);
            this.destination.complete();
          }
        }, {
          key: "_next",
          value: function _next(value) {
            var result = false;

            try {
              result = this.predicate.call(this.thisArg, value, this.index++, this.source);
            } catch (err) {
              this.destination.error(err);
              return;
            }

            if (!result) {
              this.notifyComplete(false);
            }
          }
        }, {
          key: "_complete",
          value: function _complete() {
            this.notifyComplete(true);
          }
        }]);

        return EverySubscriber;
      }(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]); //# sourceMappingURL=every.js.map

      /***/

    },

    /***/
    "GjHo": function GjHo(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "zip", function () {
        return zip;
      });
      /* harmony import */


      var _observable_zip__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../observable/zip */
      "1uah");

      function zip() {
        for (var _len42 = arguments.length, observables = new Array(_len42), _key44 = 0; _key44 < _len42; _key44++) {
          observables[_key44] = arguments[_key44];
        }

        return function zipOperatorFunction(source) {
          return source.lift.call(Object(_observable_zip__WEBPACK_IMPORTED_MODULE_0__["zip"]).apply(void 0, [source].concat(observables)));
        };
      } //# sourceMappingURL=zip.js.map

      /***/

    },

    /***/
    "GobQ": function GobQ(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return getDay;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name getDay
       * @category Weekday Helpers
       * @summary Get the day of the week of the given date.
       *
       * @description
       * Get the day of the week of the given date.
       *
       * ### 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 {Date|Number} date - the given date
       * @returns {0|1|2|3|4|5|6} the day of week, 0 represents Sunday
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // Which day of the week is 29 February 2012?
       * var result = getDay(new Date(2012, 1, 29))
       * //=> 3
       */


      function getDay(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);
        var day = date.getDay();
        return day;
      }
      /***/

    },

    /***/
    "Gqsl": function Gqsl(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "repeatWhen", function () {
        return repeatWhen;
      });
      /* harmony import */


      var _Subject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Subject */
      "XNiG");
      /* harmony import */


      var _innerSubscribe__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../innerSubscribe */
      "zx2A");

      function repeatWhen(notifier) {
        return function (source) {
          return source.lift(new RepeatWhenOperator(notifier));
        };
      }

      var RepeatWhenOperator = /*#__PURE__*/function () {
        function RepeatWhenOperator(notifier) {
          _classCallCheck2(this, RepeatWhenOperator);

          this.notifier = notifier;
        }

        _createClass2(RepeatWhenOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            return source.subscribe(new RepeatWhenSubscriber(subscriber, this.notifier, source));
          }
        }]);

        return RepeatWhenOperator;
      }();

      var RepeatWhenSubscriber = /*#__PURE__*/function (_innerSubscribe__WEBP8) {
        _inherits2(RepeatWhenSubscriber, _innerSubscribe__WEBP8);

        var _super206 = _createSuper2(RepeatWhenSubscriber);

        function RepeatWhenSubscriber(destination, notifier, source) {
          var _this495;

          _classCallCheck2(this, RepeatWhenSubscriber);

          _this495 = _super206.call(this, destination);
          _this495.notifier = notifier;
          _this495.source = source;
          _this495.sourceIsBeingSubscribedTo = true;
          return _this495;
        }

        _createClass2(RepeatWhenSubscriber, [{
          key: "notifyNext",
          value: function notifyNext() {
            this.sourceIsBeingSubscribedTo = true;
            this.source.subscribe(this);
          }
        }, {
          key: "notifyComplete",
          value: function notifyComplete() {
            if (this.sourceIsBeingSubscribedTo === false) {
              return _get2(_getPrototypeOf2(RepeatWhenSubscriber.prototype), "complete", this).call(this);
            }
          }
        }, {
          key: "complete",
          value: function complete() {
            this.sourceIsBeingSubscribedTo = false;

            if (!this.isStopped) {
              if (!this.retries) {
                this.subscribeToRetries();
              }

              if (!this.retriesSubscription || this.retriesSubscription.closed) {
                return _get2(_getPrototypeOf2(RepeatWhenSubscriber.prototype), "complete", this).call(this);
              }

              this._unsubscribeAndRecycle();

              this.notifications.next(undefined);
            }
          }
        }, {
          key: "_unsubscribe",
          value: function _unsubscribe() {
            var notifications = this.notifications,
                retriesSubscription = this.retriesSubscription;

            if (notifications) {
              notifications.unsubscribe();
              this.notifications = undefined;
            }

            if (retriesSubscription) {
              retriesSubscription.unsubscribe();
              this.retriesSubscription = undefined;
            }

            this.retries = undefined;
          }
        }, {
          key: "_unsubscribeAndRecycle",
          value: function _unsubscribeAndRecycle() {
            var _unsubscribe = this._unsubscribe;
            this._unsubscribe = null;

            _get2(_getPrototypeOf2(RepeatWhenSubscriber.prototype), "_unsubscribeAndRecycle", this).call(this);

            this._unsubscribe = _unsubscribe;
            return this;
          }
        }, {
          key: "subscribeToRetries",
          value: function subscribeToRetries() {
            this.notifications = new _Subject__WEBPACK_IMPORTED_MODULE_0__["Subject"]();
            var retries;

            try {
              var notifier = this.notifier;
              retries = notifier(this.notifications);
            } catch (e) {
              return _get2(_getPrototypeOf2(RepeatWhenSubscriber.prototype), "complete", this).call(this);
            }

            this.retries = retries;
            this.retriesSubscription = Object(_innerSubscribe__WEBPACK_IMPORTED_MODULE_1__["innerSubscribe"])(retries, new _innerSubscribe__WEBPACK_IMPORTED_MODULE_1__["SimpleInnerSubscriber"](this));
          }
        }]);

        return RepeatWhenSubscriber;
      }(_innerSubscribe__WEBPACK_IMPORTED_MODULE_1__["SimpleOuterSubscriber"]); //# sourceMappingURL=repeatWhen.js.map

      /***/

    },

    /***/
    "Gqtg": function Gqtg(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return endOfYear;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name endOfYear
       * @category Year Helpers
       * @summary Return the end of a year for the given date.
       *
       * @description
       * Return the end of a year for the given date.
       * The result will be in the local timezone.
       *
       * ### 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 {Date|Number} date - the original date
       * @returns {Date} the end of a year
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // The end of a year for 2 September 2014 11:55:00:
       * var result = endOfYear(new Date(2014, 8, 2, 11, 55, 00))
       * //=> Wed Dec 31 2014 23:59:59.999
       */


      function endOfYear(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);
        var year = date.getFullYear();
        date.setFullYear(year + 1, 0, 0);
        date.setHours(23, 59, 59, 999);
        return date;
      }
      /***/

    },

    /***/
    "GxZL": function GxZL(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return isSaturday;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name isSaturday
       * @category Weekday Helpers
       * @summary Is the given date Saturday?
       *
       * @description
       * Is the given date Saturday?
       *
       * ### 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 {Date|Number} date - the date to check
       * @returns {Boolean} the date is Saturday
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // Is 27 September 2014 Saturday?
       * var result = isSaturday(new Date(2014, 8, 27))
       * //=> true
       */


      function isSaturday(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        return Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate).getDay() === 6;
      }
      /***/

    },

    /***/
    "GyhO": function GyhO(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "concat", function () {
        return concat;
      });
      /* harmony import */


      var _of__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ./of */
      "LRne");
      /* harmony import */


      var _operators_concatAll__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../operators/concatAll */
      "0EUg");

      function concat() {
        return Object(_operators_concatAll__WEBPACK_IMPORTED_MODULE_1__["concatAll"])()(Object(_of__WEBPACK_IMPORTED_MODULE_0__["of"]).apply(void 0, arguments));
      } //# sourceMappingURL=concat.js.map

      /***/

    },

    /***/
    "H3DK": function H3DK(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatFormFieldModuleNgFactory", function () {
        return MatFormFieldModuleNgFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "RenderType_MatFormField", function () {
        return RenderType_MatFormField;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "View_MatFormField_0", function () {
        return View_MatFormField_0;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "View_MatFormField_Host_0", function () {
        return View_MatFormField_Host_0;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatFormFieldNgFactory", function () {
        return MatFormFieldNgFactory;
      });
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /* harmony import */


      var _angular_material_form_field__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/material/form-field */
      "Q2Ze");
      /* harmony import */


      var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! @angular/common */
      "SVse");
      /* harmony import */


      var _angular_cdk_observers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! @angular/cdk/observers */
      "9b/N");
      /* harmony import */


      var _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! @angular/cdk/bidi */
      "9gLZ");
      /* harmony import */


      var _angular_material_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! @angular/material/core */
      "UhP/");
      /* harmony import */


      var _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
      /*! @angular/cdk/a11y */
      "YEUz");
      /* harmony import */


      var _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
      /*! @angular/cdk/platform */
      "SCoL");
      /* harmony import */


      var _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
      /*! @angular/platform-browser/animations */
      "omvX");
      /**
       * @fileoverview This file was generated by the Angular template compiler. Do not edit.
       *
       * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes,extraRequire}
       * tslint:disable
       */


      var MatFormFieldModuleNgFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵcmf"](_angular_material_form_field__WEBPACK_IMPORTED_MODULE_1__["MatFormFieldModule"], [], function (_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmod"]([_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](512, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵCodegenComponentFactoryResolver"], [[8, []], [3, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"]], _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModuleRef"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](4608, _angular_common__WEBPACK_IMPORTED_MODULE_2__["NgLocalization"], _angular_common__WEBPACK_IMPORTED_MODULE_2__["NgLocaleLocalization"], [_angular_core__WEBPACK_IMPORTED_MODULE_0__["LOCALE_ID"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](4608, _angular_cdk_observers__WEBPACK_IMPORTED_MODULE_3__["MutationObserverFactory"], _angular_cdk_observers__WEBPACK_IMPORTED_MODULE_3__["MutationObserverFactory"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"], _angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_4__["BidiModule"], _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_4__["BidiModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_material_core__WEBPACK_IMPORTED_MODULE_5__["MatCommonModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_5__["MatCommonModule"], [_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_6__["HighContrastModeDetector"], [2, _angular_material_core__WEBPACK_IMPORTED_MODULE_5__["MATERIAL_SANITY_CHECKS"]], _angular_common__WEBPACK_IMPORTED_MODULE_2__["DOCUMENT"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_cdk_observers__WEBPACK_IMPORTED_MODULE_3__["ObserversModule"], _angular_cdk_observers__WEBPACK_IMPORTED_MODULE_3__["ObserversModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_material_form_field__WEBPACK_IMPORTED_MODULE_1__["MatFormFieldModule"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_1__["MatFormFieldModule"], [])]);
      });

      var styles_MatFormField = [".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:scaleX(1);transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n", ".mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:\"\";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n", ".mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element::-ms-clear,.mat-input-element::-ms-reveal{display:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:\" \";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-ms-expand{display:none}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}select.mat-input-element::-ms-value{color:inherit;background:none}.mat-focused .cdk-high-contrast-active select.mat-input-element::-ms-value{color:inherit}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:\"\";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n", ".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px);-ms-transform:none}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n", ".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n", ".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"];

      var RenderType_MatFormField = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵcrt"]({
        encapsulation: 2,
        styles: styles_MatFormField,
        data: {
          "animation": [{
            type: 7,
            name: "transitionMessages",
            definitions: [{
              type: 0,
              name: "enter",
              styles: {
                type: 6,
                styles: {
                  opacity: 1,
                  transform: "translateY(0%)"
                },
                offset: null
              },
              options: undefined
            }, {
              type: 1,
              expr: "void => enter",
              animation: [{
                type: 6,
                styles: {
                  opacity: 0,
                  transform: "translateY(-100%)"
                },
                offset: null
              }, {
                type: 4,
                styles: null,
                timings: "300ms cubic-bezier(0.55, 0, 0.55, 0.2)"
              }],
              options: null
            }],
            options: {}
          }]
        }
      });

      function View_MatFormField_1(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](0, 0, null, null, 8, null, null, null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](1, 0, null, null, 3, "div", [["class", "mat-form-field-outline"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](2, 0, null, null, 0, "div", [["class", "mat-form-field-outline-start"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](3, 0, null, null, 0, "div", [["class", "mat-form-field-outline-gap"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](4, 0, null, null, 0, "div", [["class", "mat-form-field-outline-end"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](5, 0, null, null, 3, "div", [["class", "mat-form-field-outline mat-form-field-outline-thick"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](6, 0, null, null, 0, "div", [["class", "mat-form-field-outline-start"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](7, 0, null, null, 0, "div", [["class", "mat-form-field-outline-gap"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](8, 0, null, null, 0, "div", [["class", "mat-form-field-outline-end"]], null, null, null, null, null))], null, null);
      }

      function View_MatFormField_2(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](0, 0, null, null, 1, "div", [["class", "mat-form-field-prefix"]], null, null, null, null, null)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵncd"](null, 0)], null, null);
      }

      function View_MatFormField_4(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](0, 0, null, null, 3, null, null, null, null, null, null, null)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵncd"](null, 2), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](2, 0, null, null, 1, "span", [], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵted"](3, null, ["", ""]))], null, function (_ck, _v) {
          var _co = _v.component;
          var currVal_0 = _co._control.placeholder;

          _ck(_v, 3, 0, currVal_0);
        });
      }

      function View_MatFormField_5(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](0, [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵncd"](null, 3), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵand"](0, null, null, 0))], null, null);
      }

      function View_MatFormField_6(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](0, 0, null, null, 1, "span", [["aria-hidden", "true"], ["class", "mat-placeholder-required mat-form-field-required-marker"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵted"](-1, null, [" *"]))], null, null);
      }

      function View_MatFormField_3(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](0, 0, [[4, 0], ["label", 1]], null, 8, "label", [["class", "mat-form-field-label"]], [[8, "id", 0], [1, "for", 0], [1, "aria-owns", 0], [2, "mat-empty", null], [2, "mat-form-field-empty", null], [2, "mat-accent", null], [2, "mat-warn", null]], [[null, "cdkObserveContent"]], function (_v, en, $event) {
          var ad = true;
          var _co = _v.component;

          if ("cdkObserveContent" === en) {
            var pd_0 = _co.updateOutlineGap() !== false;
            ad = pd_0 && ad;
          }

          return ad;
        }, null, null)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](1, 16384, null, 0, _angular_common__WEBPACK_IMPORTED_MODULE_2__["NgSwitch"], [], {
          ngSwitch: [0, "ngSwitch"]
        }, null), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](2, 1196032, null, 0, _angular_cdk_observers__WEBPACK_IMPORTED_MODULE_3__["CdkObserveContent"], [_angular_cdk_observers__WEBPACK_IMPORTED_MODULE_3__["ContentObserver"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"]], {
          disabled: [0, "disabled"]
        }, {
          event: "cdkObserveContent"
        }), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵand"](16777216, null, null, 1, null, View_MatFormField_4)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](4, 278528, null, 0, _angular_common__WEBPACK_IMPORTED_MODULE_2__["NgSwitchCase"], [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"], _angular_common__WEBPACK_IMPORTED_MODULE_2__["NgSwitch"]], {
          ngSwitchCase: [0, "ngSwitchCase"]
        }, null), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵand"](16777216, null, null, 1, null, View_MatFormField_5)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](6, 278528, null, 0, _angular_common__WEBPACK_IMPORTED_MODULE_2__["NgSwitchCase"], [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"], _angular_common__WEBPACK_IMPORTED_MODULE_2__["NgSwitch"]], {
          ngSwitchCase: [0, "ngSwitchCase"]
        }, null), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵand"](16777216, null, null, 1, null, View_MatFormField_6)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](8, 16384, null, 0, _angular_common__WEBPACK_IMPORTED_MODULE_2__["NgIf"], [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]], {
          ngIf: [0, "ngIf"]
        }, null)], function (_ck, _v) {
          var _co = _v.component;

          var currVal_7 = _co._hasLabel();

          _ck(_v, 1, 0, currVal_7);

          var currVal_8 = _co.appearance != "outline";

          _ck(_v, 2, 0, currVal_8);

          var currVal_9 = false;

          _ck(_v, 4, 0, currVal_9);

          var currVal_10 = true;

          _ck(_v, 6, 0, currVal_10);

          var currVal_11 = !_co.hideRequiredMarker && _co._control.required && !_co._control.disabled;

          _ck(_v, 8, 0, currVal_11);
        }, function (_ck, _v) {
          var _co = _v.component;
          var currVal_0 = _co._labelId;
          var currVal_1 = _co._control.id;
          var currVal_2 = _co._control.id;
          var currVal_3 = _co._control.empty && !_co._shouldAlwaysFloat();
          var currVal_4 = _co._control.empty && !_co._shouldAlwaysFloat();
          var currVal_5 = _co.color == "accent";
          var currVal_6 = _co.color == "warn";

          _ck(_v, 0, 0, currVal_0, currVal_1, currVal_2, currVal_3, currVal_4, currVal_5, currVal_6);
        });
      }

      function View_MatFormField_7(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](0, 0, null, null, 1, "div", [["class", "mat-form-field-suffix"]], null, null, null, null, null)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵncd"](null, 4)], null, null);
      }

      function View_MatFormField_8(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](0, 0, [[1, 0], ["underline", 1]], null, 1, "div", [["class", "mat-form-field-underline"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](1, 0, null, null, 0, "span", [["class", "mat-form-field-ripple"]], [[2, "mat-accent", null], [2, "mat-warn", null]], null, null, null, null))], null, function (_ck, _v) {
          var _co = _v.component;
          var currVal_0 = _co.color == "accent";
          var currVal_1 = _co.color == "warn";

          _ck(_v, 1, 0, currVal_0, currVal_1);
        });
      }

      function View_MatFormField_9(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](0, 0, null, null, 1, "div", [], [[24, "@transitionMessages", 0]], null, null, null, null)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵncd"](null, 5)], null, function (_ck, _v) {
          var _co = _v.component;
          var currVal_0 = _co._subscriptAnimationState;

          _ck(_v, 0, 0, currVal_0);
        });
      }

      function View_MatFormField_11(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](0, 0, null, null, 1, "div", [["class", "mat-hint"]], [[8, "id", 0]], null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵted"](1, null, ["", ""]))], null, function (_ck, _v) {
          var _co = _v.component;
          var currVal_0 = _co._hintLabelId;

          _ck(_v, 0, 0, currVal_0);

          var currVal_1 = _co.hintLabel;

          _ck(_v, 1, 0, currVal_1);
        });
      }

      function View_MatFormField_10(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](0, 0, null, null, 5, "div", [["class", "mat-form-field-hint-wrapper"]], [[24, "@transitionMessages", 0]], null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵand"](16777216, null, null, 1, null, View_MatFormField_11)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](2, 16384, null, 0, _angular_common__WEBPACK_IMPORTED_MODULE_2__["NgIf"], [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]], {
          ngIf: [0, "ngIf"]
        }, null), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵncd"](null, 6), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](4, 0, null, null, 0, "div", [["class", "mat-form-field-hint-spacer"]], null, null, null, null, null)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵncd"](null, 7)], function (_ck, _v) {
          var _co = _v.component;
          var currVal_1 = _co.hintLabel;

          _ck(_v, 2, 0, currVal_1);
        }, function (_ck, _v) {
          var _co = _v.component;
          var currVal_0 = _co._subscriptAnimationState;

          _ck(_v, 0, 0, currVal_0);
        });
      }

      function View_MatFormField_0(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](2, [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵqud"](671088640, 1, {
          underlineRef: 0
        }), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵqud"](402653184, 2, {
          _connectionContainerRef: 0
        }), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵqud"](671088640, 3, {
          _inputContainerRef: 0
        }), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵqud"](671088640, 4, {
          _label: 0
        }), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](4, 0, null, null, 20, "div", [["class", "mat-form-field-wrapper"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](5, 0, [[2, 0], ["connectionContainer", 1]], null, 11, "div", [["class", "mat-form-field-flex"]], null, [[null, "click"]], function (_v, en, $event) {
          var ad = true;
          var _co = _v.component;

          if ("click" === en) {
            var pd_0 = (_co._control.onContainerClick && _co._control.onContainerClick($event)) !== false;
            ad = pd_0 && ad;
          }

          return ad;
        }, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵand"](16777216, null, null, 1, null, View_MatFormField_1)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](7, 16384, null, 0, _angular_common__WEBPACK_IMPORTED_MODULE_2__["NgIf"], [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]], {
          ngIf: [0, "ngIf"]
        }, null), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵand"](16777216, null, null, 1, null, View_MatFormField_2)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](9, 16384, null, 0, _angular_common__WEBPACK_IMPORTED_MODULE_2__["NgIf"], [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]], {
          ngIf: [0, "ngIf"]
        }, null), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](10, 0, [[3, 0], ["inputContainer", 1]], null, 4, "div", [["class", "mat-form-field-infix"]], null, null, null, null, null)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵncd"](null, 1), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](12, 0, null, null, 2, "span", [["class", "mat-form-field-label-wrapper"]], null, null, null, null, null)), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵand"](16777216, null, null, 1, null, View_MatFormField_3)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](14, 16384, null, 0, _angular_common__WEBPACK_IMPORTED_MODULE_2__["NgIf"], [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]], {
          ngIf: [0, "ngIf"]
        }, null), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵand"](16777216, null, null, 1, null, View_MatFormField_7)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](16, 16384, null, 0, _angular_common__WEBPACK_IMPORTED_MODULE_2__["NgIf"], [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]], {
          ngIf: [0, "ngIf"]
        }, null), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵand"](16777216, null, null, 1, null, View_MatFormField_8)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](18, 16384, null, 0, _angular_common__WEBPACK_IMPORTED_MODULE_2__["NgIf"], [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]], {
          ngIf: [0, "ngIf"]
        }, null), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](19, 0, null, null, 5, "div", [["class", "mat-form-field-subscript-wrapper"]], null, null, null, null, null)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](20, 16384, null, 0, _angular_common__WEBPACK_IMPORTED_MODULE_2__["NgSwitch"], [], {
          ngSwitch: [0, "ngSwitch"]
        }, null), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵand"](16777216, null, null, 1, null, View_MatFormField_9)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](22, 278528, null, 0, _angular_common__WEBPACK_IMPORTED_MODULE_2__["NgSwitchCase"], [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"], _angular_common__WEBPACK_IMPORTED_MODULE_2__["NgSwitch"]], {
          ngSwitchCase: [0, "ngSwitchCase"]
        }, null), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵand"](16777216, null, null, 1, null, View_MatFormField_10)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](24, 278528, null, 0, _angular_common__WEBPACK_IMPORTED_MODULE_2__["NgSwitchCase"], [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"], _angular_common__WEBPACK_IMPORTED_MODULE_2__["NgSwitch"]], {
          ngSwitchCase: [0, "ngSwitchCase"]
        }, null)], function (_ck, _v) {
          var _co = _v.component;
          var currVal_0 = _co.appearance == "outline";

          _ck(_v, 7, 0, currVal_0);

          var currVal_1 = _co._prefixChildren.length;

          _ck(_v, 9, 0, currVal_1);

          var currVal_2 = _co._hasFloatingLabel();

          _ck(_v, 14, 0, currVal_2);

          var currVal_3 = _co._suffixChildren.length;

          _ck(_v, 16, 0, currVal_3);

          var currVal_4 = _co.appearance != "outline";

          _ck(_v, 18, 0, currVal_4);

          var currVal_5 = _co._getDisplayedMessages();

          _ck(_v, 20, 0, currVal_5);

          var currVal_6 = "error";

          _ck(_v, 22, 0, currVal_6);

          var currVal_7 = "hint";

          _ck(_v, 24, 0, currVal_7);
        }, null);
      }

      function View_MatFormField_Host_0(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](0, 0, null, null, 11, "mat-form-field", [["class", "mat-form-field"]], [[2, "mat-form-field-appearance-standard", null], [2, "mat-form-field-appearance-fill", null], [2, "mat-form-field-appearance-outline", null], [2, "mat-form-field-appearance-legacy", null], [2, "mat-form-field-invalid", null], [2, "mat-form-field-can-float", null], [2, "mat-form-field-should-float", null], [2, "mat-form-field-has-label", null], [2, "mat-form-field-hide-placeholder", null], [2, "mat-form-field-disabled", null], [2, "mat-form-field-autofilled", null], [2, "mat-focused", null], [2, "mat-accent", null], [2, "mat-warn", null], [2, "ng-untouched", null], [2, "ng-touched", null], [2, "ng-pristine", null], [2, "ng-dirty", null], [2, "ng-valid", null], [2, "ng-invalid", null], [2, "ng-pending", null], [2, "_mat-animation-noopable", null]], null, null, View_MatFormField_0, RenderType_MatFormField)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵprd"](6144, null, _angular_material_form_field__WEBPACK_IMPORTED_MODULE_1__["MAT_FORM_FIELD"], null, [_angular_material_form_field__WEBPACK_IMPORTED_MODULE_1__["MatFormField"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](2, 7520256, null, 9, _angular_material_form_field__WEBPACK_IMPORTED_MODULE_1__["MatFormField"], [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"], [2, _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_4__["Directionality"]], [2, _angular_material_form_field__WEBPACK_IMPORTED_MODULE_1__["MAT_FORM_FIELD_DEFAULT_OPTIONS"]], _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_7__["Platform"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"], [2, _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_8__["ANIMATION_MODULE_TYPE"]]], null, null), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵqud"](603979776, 1, {
          _controlNonStatic: 0
        }), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵqud"](335544320, 2, {
          _controlStatic: 0
        }), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵqud"](603979776, 3, {
          _labelChildNonStatic: 0
        }), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵqud"](335544320, 4, {
          _labelChildStatic: 0
        }), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵqud"](603979776, 5, {
          _placeholderChild: 0
        }), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵqud"](603979776, 6, {
          _errorChildren: 1
        }), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵqud"](603979776, 7, {
          _hintChildren: 1
        }), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵqud"](603979776, 8, {
          _prefixChildren: 1
        }), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵqud"](603979776, 9, {
          _suffixChildren: 1
        })], null, function (_ck, _v) {
          var currVal_0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 2).appearance == "standard";
          var currVal_1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 2).appearance == "fill";
          var currVal_2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 2).appearance == "outline";
          var currVal_3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 2).appearance == "legacy";

          var currVal_4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 2)._control.errorState;

          var currVal_5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 2)._canLabelFloat();

          var currVal_6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 2)._shouldLabelFloat();

          var currVal_7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 2)._hasFloatingLabel();

          var currVal_8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 2)._hideControlPlaceholder();

          var currVal_9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 2)._control.disabled;

          var currVal_10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 2)._control.autofilled;

          var currVal_11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 2)._control.focused;

          var currVal_12 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 2).color == "accent";
          var currVal_13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 2).color == "warn";

          var currVal_14 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 2)._shouldForward("untouched");

          var currVal_15 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 2)._shouldForward("touched");

          var currVal_16 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 2)._shouldForward("pristine");

          var currVal_17 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 2)._shouldForward("dirty");

          var currVal_18 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 2)._shouldForward("valid");

          var currVal_19 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 2)._shouldForward("invalid");

          var currVal_20 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 2)._shouldForward("pending");

          var currVal_21 = !_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 2)._animationsEnabled;

          _ck(_v, 0, 1, [currVal_0, currVal_1, currVal_2, currVal_3, currVal_4, currVal_5, currVal_6, currVal_7, currVal_8, currVal_9, currVal_10, currVal_11, currVal_12, currVal_13, currVal_14, currVal_15, currVal_16, currVal_17, currVal_18, currVal_19, currVal_20, currVal_21]);
        });
      }

      var MatFormFieldNgFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵccf"]("mat-form-field", _angular_material_form_field__WEBPACK_IMPORTED_MODULE_1__["MatFormField"], View_MatFormField_Host_0, {
        color: "color",
        appearance: "appearance",
        hideRequiredMarker: "hideRequiredMarker",
        hintLabel: "hintLabel",
        floatLabel: "floatLabel"
      }, {}, ["[matPrefix]", "*", "mat-placeholder", "mat-label", "[matSuffix]", "mat-error", "mat-hint:not([align='end'])", "mat-hint[align='end']"]);
      /***/

    },

    /***/
    "H6X/": function H6X(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return isThursday;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name isThursday
       * @category Weekday Helpers
       * @summary Is the given date Thursday?
       *
       * @description
       * Is the given date Thursday?
       *
       * ### 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 {Date|Number} date - the date to check
       * @returns {Boolean} the date is Thursday
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // Is 25 September 2014 Thursday?
       * var result = isThursday(new Date(2014, 8, 25))
       * //=> true
       */


      function isThursday(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        return Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate).getDay() === 4;
      }
      /***/

    },

    /***/
    "H8ED": function H8ED(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Belarusian [be]
      //! author : Dmitry Demidov : https://github.com/demidov91
      //! author: Praleska: http://praleska.pro/
      //! Author : Menelion Elensúle : https://github.com/Oire
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        function plural(word, num) {
          var forms = word.split('_');
          return num % 10 === 1 && num % 100 !== 11 ? forms[0] : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2];
        }

        function relativeTimeWithPlural(number, withoutSuffix, key) {
          var format = {
            ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',
            mm: withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін',
            hh: withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін',
            dd: 'дзень_дні_дзён',
            MM: 'месяц_месяцы_месяцаў',
            yy: 'год_гады_гадоў'
          };

          if (key === 'm') {
            return withoutSuffix ? 'хвіліна' : 'хвіліну';
          } else if (key === 'h') {
            return withoutSuffix ? 'гадзіна' : 'гадзіну';
          } else {
            return number + ' ' + plural(format[key], +number);
          }
        }

        var be = moment.defineLocale('be', {
          months: {
            format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split('_'),
            standalone: 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split('_')
          },
          monthsShort: 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split('_'),
          weekdays: {
            format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split('_'),
            standalone: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split('_'),
            isFormat: /\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/
          },
          weekdaysShort: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
          weekdaysMin: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'D MMMM YYYY г.',
            LLL: 'D MMMM YYYY г., HH:mm',
            LLLL: 'dddd, D MMMM YYYY г., HH:mm'
          },
          calendar: {
            sameDay: '[Сёння ў] LT',
            nextDay: '[Заўтра ў] LT',
            lastDay: '[Учора ў] LT',
            nextWeek: function nextWeek() {
              return '[У] dddd [ў] LT';
            },
            lastWeek: function lastWeek() {
              switch (this.day()) {
                case 0:
                case 3:
                case 5:
                case 6:
                  return '[У мінулую] dddd [ў] LT';

                case 1:
                case 2:
                case 4:
                  return '[У мінулы] dddd [ў] LT';
              }
            },
            sameElse: 'L'
          },
          relativeTime: {
            future: 'праз %s',
            past: '%s таму',
            s: 'некалькі секунд',
            m: relativeTimeWithPlural,
            mm: relativeTimeWithPlural,
            h: relativeTimeWithPlural,
            hh: relativeTimeWithPlural,
            d: 'дзень',
            dd: relativeTimeWithPlural,
            M: 'месяц',
            MM: relativeTimeWithPlural,
            y: 'год',
            yy: relativeTimeWithPlural
          },
          meridiemParse: /ночы|раніцы|дня|вечара/,
          isPM: function isPM(input) {
            return /^(дня|вечара)$/.test(input);
          },
          meridiem: function meridiem(hour, minute, isLower) {
            if (hour < 4) {
              return 'ночы';
            } else if (hour < 12) {
              return 'раніцы';
            } else if (hour < 17) {
              return 'дня';
            } else {
              return 'вечара';
            }
          },
          dayOfMonthOrdinalParse: /\d{1,2}-(і|ы|га)/,
          ordinal: function ordinal(number, period) {
            switch (period) {
              case 'M':
              case 'd':
              case 'DDD':
              case 'w':
              case 'W':
                return (number % 10 === 2 || number % 10 === 3) && number % 100 !== 12 && number % 100 !== 13 ? number + '-і' : number + '-ы';

              case 'D':
                return number + '-га';

              default:
                return number;
            }
          },
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 7 // The week that contains Jan 7th is the first week of the year.

          }
        });
        return be;
      });
      /***/

    },

    /***/
    "HDdC": function HDdC(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Observable", function () {
        return Observable;
      });
      /* harmony import */


      var _util_canReportError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ./util/canReportError */
      "8Qeq");
      /* harmony import */


      var _util_toSubscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ./util/toSubscriber */
      "WyKG");
      /* harmony import */


      var _symbol_observable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ./symbol/observable */
      "kJWO");
      /* harmony import */


      var _util_pipe__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ./util/pipe */
      "mCNh");
      /* harmony import */


      var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! ./config */
      "2fFW");

      var Observable = /*#__PURE__*/function (_symbol_observable__W) {
        function Observable(subscribe) {
          _classCallCheck2(this, Observable);

          this._isScalar = false;

          if (subscribe) {
            this._subscribe = subscribe;
          }
        }

        _createClass2(Observable, [{
          key: "lift",
          value: function lift(operator) {
            var observable = new Observable();
            observable.source = this;
            observable.operator = operator;
            return observable;
          }
        }, {
          key: "subscribe",
          value: function subscribe(observerOrNext, error, complete) {
            var operator = this.operator;
            var sink = Object(_util_toSubscriber__WEBPACK_IMPORTED_MODULE_1__["toSubscriber"])(observerOrNext, error, complete);

            if (operator) {
              sink.add(operator.call(sink, this.source));
            } else {
              sink.add(this.source || _config__WEBPACK_IMPORTED_MODULE_4__["config"].useDeprecatedSynchronousErrorHandling && !sink.syncErrorThrowable ? this._subscribe(sink) : this._trySubscribe(sink));
            }

            if (_config__WEBPACK_IMPORTED_MODULE_4__["config"].useDeprecatedSynchronousErrorHandling) {
              if (sink.syncErrorThrowable) {
                sink.syncErrorThrowable = false;

                if (sink.syncErrorThrown) {
                  throw sink.syncErrorValue;
                }
              }
            }

            return sink;
          }
        }, {
          key: "_trySubscribe",
          value: function _trySubscribe(sink) {
            try {
              return this._subscribe(sink);
            } catch (err) {
              if (_config__WEBPACK_IMPORTED_MODULE_4__["config"].useDeprecatedSynchronousErrorHandling) {
                sink.syncErrorThrown = true;
                sink.syncErrorValue = err;
              }

              if (Object(_util_canReportError__WEBPACK_IMPORTED_MODULE_0__["canReportError"])(sink)) {
                sink.error(err);
              } else {
                console.warn(err);
              }
            }
          }
        }, {
          key: "forEach",
          value: function forEach(next, promiseCtor) {
            var _this496 = this;

            promiseCtor = getPromiseCtor(promiseCtor);
            return new promiseCtor(function (resolve, reject) {
              var subscription;
              subscription = _this496.subscribe(function (value) {
                try {
                  next(value);
                } catch (err) {
                  reject(err);

                  if (subscription) {
                    subscription.unsubscribe();
                  }
                }
              }, reject, resolve);
            });
          }
        }, {
          key: "_subscribe",
          value: function _subscribe(subscriber) {
            var source = this.source;
            return source && source.subscribe(subscriber);
          }
        }, {
          key: _symbol_observable__W,
          value: function value() {
            return this;
          }
        }, {
          key: "pipe",
          value: function pipe() {
            for (var _len43 = arguments.length, operations = new Array(_len43), _key45 = 0; _key45 < _len43; _key45++) {
              operations[_key45] = arguments[_key45];
            }

            if (operations.length === 0) {
              return this;
            }

            return Object(_util_pipe__WEBPACK_IMPORTED_MODULE_3__["pipeFromArray"])(operations)(this);
          }
        }, {
          key: "toPromise",
          value: function toPromise(promiseCtor) {
            var _this497 = this;

            promiseCtor = getPromiseCtor(promiseCtor);
            return new promiseCtor(function (resolve, reject) {
              var value;

              _this497.subscribe(function (x) {
                return value = x;
              }, function (err) {
                return reject(err);
              }, function () {
                return resolve(value);
              });
            });
          }
        }]);

        return Observable;
      }(_symbol_observable__WEBPACK_IMPORTED_MODULE_2__["observable"]);

      Observable.create = function (subscribe) {
        return new Observable(subscribe);
      };

      function getPromiseCtor(promiseCtor) {
        if (!promiseCtor) {
          promiseCtor = _config__WEBPACK_IMPORTED_MODULE_4__["config"].Promise || Promise;
        }

        if (!promiseCtor) {
          throw new Error('no Promise impl found');
        }

        return promiseCtor;
      } //# sourceMappingURL=Observable.js.map

      /***/

    },

    /***/
    "HM39": function HM39(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return formatDistanceToNowStrict;
      });
      /* harmony import */


      var _formatDistanceStrict_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../formatDistanceStrict/index.js */
      "0UaF");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name formatDistanceToNowStrict
       * @category Common Helpers
       * @summary Return the distance between the given date and now in words.
       * @pure false
       *
       * @description
       * Return the distance between the given dates in words, using strict units.
       * This is like `formatDistance`, but does not use helpers like 'almost', 'over',
       * 'less than' and the like.
       *
       * | Distance between dates | Result              |
       * |------------------------|---------------------|
       * | 0 ... 59 secs          | [0..59] seconds     |
       * | 1 ... 59 mins          | [1..59] minutes     |
       * | 1 ... 23 hrs           | [1..23] hours       |
       * | 1 ... 29 days          | [1..29] days        |
       * | 1 ... 11 months        | [1..11] months      |
       * | 1 ... N years          | [1..N]  years       |
       *
       * @param {Date|Number} date - the given date
       * @param {Object} [options] - an object with options.
       * @param {Boolean} [options.addSuffix=false] - result indicates if the second date is earlier or later than the first
       * @param {'second'|'minute'|'hour'|'day'|'month'|'year'} [options.unit] - if specified, will force a unit
       * @param {'floor'|'ceil'|'round'} [options.roundingMethod='round'] - which way to round partial units
       * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}
       * @returns {String} the distance in words
       * @throws {TypeError} 1 argument required
       * @throws {RangeError} `date` must not be Invalid Date
       * @throws {RangeError} `options.locale` must contain `formatDistance` property
       *
       * @example
       * // If today is 1 January 2015, what is the distance to 2 July 2014?
       * var result = formatDistanceToNowStrict(
       *   new Date(2014, 6, 2)
       * )
       * //=> '6 months'
       *
       * @example
       * // If now is 1 January 2015 00:00:00,
       * // what is the distance to 1 January 2015 00:00:15, including seconds?
       * var result = formatDistanceToNowStrict(
       *   new Date(2015, 0, 1, 0, 0, 15)
       * )
       * //=> '20 seconds'
       *
       * @example
       * // If today is 1 January 2015,
       * // what is the distance to 1 January 2016, with a suffix?
       * var result = formatDistanceToNowStrict(
       *   new Date(2016, 0, 1),
       *   {addSuffix: true}
       * )
       * //=> 'in 1 year'
       *
       * @example
       * // If today is 28 January 2015,
       * // what is the distance to 1 January 2015, in months, rounded up??
       * var result = formatDistanceToNowStrict(new Date(2015, 0, 1), {
       *   unit: 'month',
       *   roundingMethod: 'ceil'
       * })
       * //=> '1 month'
       *
       * @example
       * // If today is 1 January 2015,
       * // what is the distance to 1 August 2016 in Esperanto?
       * var eoLocale = require('date-fns/locale/eo')
       * var result = formatDistanceToNowStrict(
       *   new Date(2016, 7, 1),
       *   {locale: eoLocale}
       * )
       * //=> '1 jaro'
       */


      function formatDistanceToNowStrict(dirtyDate, dirtyOptions) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        return Object(_formatDistanceStrict_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate, Date.now(), dirtyOptions);
      }
      /***/

    },

    /***/
    "HP3h": function HP3h(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Arabic (Lybia) [ar-ly]
      //! author : Ali Hmer: https://github.com/kikoanis
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var symbolMap = {
          1: '1',
          2: '2',
          3: '3',
          4: '4',
          5: '5',
          6: '6',
          7: '7',
          8: '8',
          9: '9',
          0: '0'
        },
            pluralForm = function pluralForm(n) {
          return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;
        },
            plurals = {
          s: ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],
          m: ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],
          h: ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],
          d: ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],
          M: ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],
          y: ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']
        },
            pluralize = function pluralize(u) {
          return function (number, withoutSuffix, string, isFuture) {
            var f = pluralForm(number),
                str = plurals[u][pluralForm(number)];

            if (f === 2) {
              str = str[withoutSuffix ? 0 : 1];
            }

            return str.replace(/%d/i, number);
          };
        },
            months = ['يناير', 'فبراير', 'مارس', 'أبريل', 'مايو', 'يونيو', 'يوليو', 'أغسطس', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر'];

        var arLy = moment.defineLocale('ar-ly', {
          months: months,
          monthsShort: months,
          weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
          weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
          weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
          weekdaysParseExact: true,
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: "D/\u200FM/\u200FYYYY",
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd D MMMM YYYY HH:mm'
          },
          meridiemParse: /ص|م/,
          isPM: function isPM(input) {
            return 'م' === input;
          },
          meridiem: function meridiem(hour, minute, isLower) {
            if (hour < 12) {
              return 'ص';
            } else {
              return 'م';
            }
          },
          calendar: {
            sameDay: '[اليوم عند الساعة] LT',
            nextDay: '[غدًا عند الساعة] LT',
            nextWeek: 'dddd [عند الساعة] LT',
            lastDay: '[أمس عند الساعة] LT',
            lastWeek: 'dddd [عند الساعة] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'بعد %s',
            past: 'منذ %s',
            s: pluralize('s'),
            ss: pluralize('s'),
            m: pluralize('m'),
            mm: pluralize('m'),
            h: pluralize('h'),
            hh: pluralize('h'),
            d: pluralize('d'),
            dd: pluralize('d'),
            M: pluralize('M'),
            MM: pluralize('M'),
            y: pluralize('y'),
            yy: pluralize('y')
          },
          preparse: function preparse(string) {
            return string.replace(/،/g, ',');
          },
          postformat: function postformat(string) {
            return string.replace(/\d/g, function (match) {
              return symbolMap[match];
            }).replace(/,/g, '،');
          },
          week: {
            dow: 6,
            // Saturday is the first day of the week.
            doy: 12 // The week that contains Jan 12th is the first week of the year.

          }
        });
        return arLy;
      });
      /***/

    },

    /***/
    "HZtn": function HZtn(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return isPast;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name isPast
       * @category Common Helpers
       * @summary Is the given date in the past?
       * @pure false
       *
       * @description
       * Is the given date in the past?
       *
       * > ⚠️ Please note that this function is not present in the FP submodule as
       * > it uses `Date.now()` internally hence impure and can't be safely curried.
       *
       * ### 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 {Date|Number} date - the date to check
       * @returns {Boolean} the date is in the past
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // If today is 6 October 2014, is 2 July 2014 in the past?
       * var result = isPast(new Date(2014, 6, 2))
       * //=> true
       */


      function isPast(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        return Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate).getTime() < Date.now();
      }
      /***/

    },

    /***/
    "Havk": function Havk(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return differenceInCalendarISOWeeks;
      });
      /* harmony import */


      var _lib_getTimezoneOffsetInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../_lib/getTimezoneOffsetInMilliseconds/index.js */
      "JCDJ");
      /* harmony import */


      var _startOfISOWeek_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../startOfISOWeek/index.js */
      "1dmy");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");

      var MILLISECONDS_IN_WEEK = 604800000;
      /**
       * @name differenceInCalendarISOWeeks
       * @category ISO Week Helpers
       * @summary Get the number of calendar ISO weeks between the given dates.
       *
       * @description
       * Get the number of calendar ISO weeks between the given dates.
       *
       * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
       *
       * ### 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 {Date|Number} dateLeft - the later date
       * @param {Date|Number} dateRight - the earlier date
       * @returns {Number} the number of calendar ISO weeks
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // How many calendar ISO weeks are between 6 July 2014 and 21 July 2014?
       * var result = differenceInCalendarISOWeeks(
       *   new Date(2014, 6, 21),
       *   new Date(2014, 6, 6)
       * )
       * //=> 3
       */

      function differenceInCalendarISOWeeks(dirtyDateLeft, dirtyDateRight) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(2, arguments);
        var startOfISOWeekLeft = Object(_startOfISOWeek_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDateLeft);
        var startOfISOWeekRight = Object(_startOfISOWeek_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDateRight);
        var timestampLeft = startOfISOWeekLeft.getTime() - Object(_lib_getTimezoneOffsetInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(startOfISOWeekLeft);
        var timestampRight = startOfISOWeekRight.getTime() - Object(_lib_getTimezoneOffsetInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(startOfISOWeekRight); // Round the number of days to the nearest integer
        // because the number of milliseconds in a week is not constant
        // (e.g. it's different in the week of the daylight saving time clock shift)

        return Math.round((timestampLeft - timestampRight) / MILLISECONDS_IN_WEEK);
      }
      /***/

    },

    /***/
    "HeVh": function HeVh(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "BreakpointObserver", function () {
        return BreakpointObserver;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Breakpoints", function () {
        return Breakpoints;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "LayoutModule", function () {
        return LayoutModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MediaMatcher", function () {
        return MediaMatcher;
      });
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /* harmony import */


      var _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/cdk/coercion */
      "8LU1");
      /* harmony import */


      var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! rxjs */
      "qCKp");
      /* harmony import */


      var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! rxjs/operators */
      "kU1M");
      /* harmony import */


      var _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! @angular/cdk/platform */
      "SCoL");
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var LayoutModule = function LayoutModule() {
        _classCallCheck2(this, LayoutModule);
      };

      LayoutModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
        type: LayoutModule
      });
      LayoutModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
        factory: function LayoutModule_Factory(t) {
          return new (t || LayoutModule)();
        }
      });
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](LayoutModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
          args: [{}]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** Global registry for all dynamically-created, injected media queries. */


      var mediaQueriesForWebkitCompatibility = new Set();
      /** Style tag that holds all of the dynamically-created media queries. */

      var mediaQueryStyleNode;
      /** A utility for calling matchMedia queries. */

      var MediaMatcher = /*#__PURE__*/function () {
        function MediaMatcher(_platform) {
          _classCallCheck2(this, MediaMatcher);

          this._platform = _platform;
          this._matchMedia = this._platform.isBrowser && window.matchMedia ? // matchMedia is bound to the window scope intentionally as it is an illegal invocation to
          // call it from a different scope.
          window.matchMedia.bind(window) : noopMatchMedia;
        }
        /**
         * Evaluates the given media query and returns the native MediaQueryList from which results
         * can be retrieved.
         * Confirms the layout engine will trigger for the selector query provided and returns the
         * MediaQueryList for the query provided.
         */


        _createClass2(MediaMatcher, [{
          key: "matchMedia",
          value: function matchMedia(query) {
            if (this._platform.WEBKIT) {
              createEmptyStyleRule(query);
            }

            return this._matchMedia(query);
          }
        }]);

        return MediaMatcher;
      }();

      MediaMatcher.ɵfac = function MediaMatcher_Factory(t) {
        return new (t || MediaMatcher)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__["Platform"]));
      };

      MediaMatcher.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({
        factory: function MediaMatcher_Factory() {
          return new MediaMatcher(Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__["Platform"]));
        },
        token: MediaMatcher,
        providedIn: "root"
      });

      MediaMatcher.ctorParameters = function () {
        return [{
          type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__["Platform"]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MediaMatcher, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
          args: [{
            providedIn: 'root'
          }]
        }], function () {
          return [{
            type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__["Platform"]
          }];
        }, null);
      })();
      /**
       * For Webkit engines that only trigger the MediaQueryListListener when
       * there is at least one CSS selector for the respective media query.
       */


      function createEmptyStyleRule(query) {
        if (mediaQueriesForWebkitCompatibility.has(query)) {
          return;
        }

        try {
          if (!mediaQueryStyleNode) {
            mediaQueryStyleNode = document.createElement('style');
            mediaQueryStyleNode.setAttribute('type', 'text/css');
            document.head.appendChild(mediaQueryStyleNode);
          }

          if (mediaQueryStyleNode.sheet) {
            mediaQueryStyleNode.sheet.insertRule("@media ".concat(query, " {.fx-query-test{ }}"), 0);
            mediaQueriesForWebkitCompatibility.add(query);
          }
        } catch (e) {
          console.error(e);
        }
      }
      /** No-op matchMedia replacement for non-browser platforms. */


      function noopMatchMedia(query) {
        // Use `as any` here to avoid adding additional necessary properties for
        // the noop matcher.
        return {
          matches: query === 'all' || query === '',
          media: query,
          addListener: function addListener() {},
          removeListener: function removeListener() {}
        };
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** Utility for checking the matching state of @media queries. */


      var BreakpointObserver = /*#__PURE__*/function () {
        function BreakpointObserver(_mediaMatcher, _zone) {
          _classCallCheck2(this, BreakpointObserver);

          this._mediaMatcher = _mediaMatcher;
          this._zone = _zone;
          /**  A map of all media queries currently being listened for. */

          this._queries = new Map();
          /** A subject for all other observables to takeUntil based on. */

          this._destroySubject = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
        }
        /** Completes the active subject, signalling to all other observables to complete. */


        _createClass2(BreakpointObserver, [{
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            this._destroySubject.next();

            this._destroySubject.complete();
          }
          /**
           * Whether one or more media queries match the current viewport size.
           * @param value One or more media queries to check.
           * @returns Whether any of the media queries match.
           */

        }, {
          key: "isMatched",
          value: function isMatched(value) {
            var _this498 = this;

            var queries = splitQueries(Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_1__["coerceArray"])(value));
            return queries.some(function (mediaQuery) {
              return _this498._registerQuery(mediaQuery).mql.matches;
            });
          }
          /**
           * Gets an observable of results for the given queries that will emit new results for any changes
           * in matching of the given queries.
           * @param value One or more media queries to check.
           * @returns A stream of matches for the given queries.
           */

        }, {
          key: "observe",
          value: function observe(value) {
            var _this499 = this;

            var queries = splitQueries(Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_1__["coerceArray"])(value));
            var observables = queries.map(function (query) {
              return _this499._registerQuery(query).observable;
            });
            var stateObservable = Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["combineLatest"])(observables); // Emit the first state immediately, and then debounce the subsequent emissions.

            stateObservable = Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["concat"])(stateObservable.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["take"])(1)), stateObservable.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["skip"])(1), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["debounceTime"])(0)));
            return stateObservable.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(function (breakpointStates) {
              var response = {
                matches: false,
                breakpoints: {}
              };
              breakpointStates.forEach(function (_ref67) {
                var matches = _ref67.matches,
                    query = _ref67.query;
                response.matches = response.matches || matches;
                response.breakpoints[query] = matches;
              });
              return response;
            }));
          }
          /** Registers a specific query to be listened for. */

        }, {
          key: "_registerQuery",
          value: function _registerQuery(query) {
            var _this500 = this;

            // Only set up a new MediaQueryList if it is not already being listened for.
            if (this._queries.has(query)) {
              return this._queries.get(query);
            }

            var mql = this._mediaMatcher.matchMedia(query); // Create callback for match changes and add it is as a listener.


            var queryObservable = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Observable"](function (observer) {
              // Listener callback methods are wrapped to be placed back in ngZone. Callbacks must be placed
              // back into the zone because matchMedia is only included in Zone.js by loading the
              // webapis-media-query.js file alongside the zone.js file.  Additionally, some browsers do not
              // have MediaQueryList inherit from EventTarget, which causes inconsistencies in how Zone.js
              // patches it.
              var handler = function handler(e) {
                return _this500._zone.run(function () {
                  return observer.next(e);
                });
              };

              mql.addListener(handler);
              return function () {
                mql.removeListener(handler);
              };
            }).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["startWith"])(mql), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(function (_ref68) {
              var matches = _ref68.matches;
              return {
                query: query,
                matches: matches
              };
            }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["takeUntil"])(this._destroySubject)); // Add the MediaQueryList to the set of queries.

            var output = {
              observable: queryObservable,
              mql: mql
            };

            this._queries.set(query, output);

            return output;
          }
        }]);

        return BreakpointObserver;
      }();

      BreakpointObserver.ɵfac = function BreakpointObserver_Factory(t) {
        return new (t || BreakpointObserver)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](MediaMatcher), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"]));
      };

      BreakpointObserver.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({
        factory: function BreakpointObserver_Factory() {
          return new BreakpointObserver(Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(MediaMatcher), Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"]));
        },
        token: BreakpointObserver,
        providedIn: "root"
      });

      BreakpointObserver.ctorParameters = function () {
        return [{
          type: MediaMatcher
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](BreakpointObserver, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
          args: [{
            providedIn: 'root'
          }]
        }], function () {
          return [{
            type: MediaMatcher
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"]
          }];
        }, null);
      })();
      /**
       * Split each query string into separate query strings if two queries are provided as comma
       * separated.
       */


      function splitQueries(queries) {
        return queries.map(function (query) {
          return query.split(',');
        }).reduce(function (a1, a2) {
          return a1.concat(a2);
        }).map(function (query) {
          return query.trim();
        });
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */
      // PascalCase is being used as Breakpoints is used like an enum.
      // tslint:disable-next-line:variable-name


      var Breakpoints = {
        XSmall: '(max-width: 599.98px)',
        Small: '(min-width: 600px) and (max-width: 959.98px)',
        Medium: '(min-width: 960px) and (max-width: 1279.98px)',
        Large: '(min-width: 1280px) and (max-width: 1919.98px)',
        XLarge: '(min-width: 1920px)',
        Handset: '(max-width: 599.98px) and (orientation: portrait), ' + '(max-width: 959.98px) and (orientation: landscape)',
        Tablet: '(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), ' + '(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)',
        Web: '(min-width: 840px) and (orientation: portrait), ' + '(min-width: 1280px) and (orientation: landscape)',
        HandsetPortrait: '(max-width: 599.98px) and (orientation: portrait)',
        TabletPortrait: '(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)',
        WebPortrait: '(min-width: 840px) and (orientation: portrait)',
        HandsetLandscape: '(max-width: 959.98px) and (orientation: landscape)',
        TabletLandscape: '(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)',
        WebLandscape: '(min-width: 1280px) and (orientation: landscape)'
      };
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Generated bundle index. Do not edit.
       */
      //# sourceMappingURL=layout.js.map

      /***/
    },

    /***/
    "Hh5Z": function Hh5Z(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "QueueScheduler", function () {
        return QueueScheduler;
      });
      /* harmony import */


      var _AsyncScheduler__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ./AsyncScheduler */
      "IjjT");

      var QueueScheduler = /*#__PURE__*/function (_AsyncScheduler__WEBP) {
        _inherits2(QueueScheduler, _AsyncScheduler__WEBP);

        var _super207 = _createSuper2(QueueScheduler);

        function QueueScheduler() {
          _classCallCheck2(this, QueueScheduler);

          return _super207.apply(this, arguments);
        }

        return QueueScheduler;
      }(_AsyncScheduler__WEBPACK_IMPORTED_MODULE_0__["AsyncScheduler"]); //# sourceMappingURL=QueueScheduler.js.map

      /***/

    },

    /***/
    "Hkhx": function Hkhx(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "onErrorResumeNext", function () {
        return onErrorResumeNext;
      });
      /* harmony import */


      var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Observable */
      "HDdC");
      /* harmony import */


      var _from__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ./from */
      "Cfvw");
      /* harmony import */


      var _util_isArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../util/isArray */
      "DH7j");
      /* harmony import */


      var _empty__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ./empty */
      "EY2u");

      function onErrorResumeNext() {
        for (var _len44 = arguments.length, sources = new Array(_len44), _key46 = 0; _key46 < _len44; _key46++) {
          sources[_key46] = arguments[_key46];
        }

        if (sources.length === 0) {
          return _empty__WEBPACK_IMPORTED_MODULE_3__["EMPTY"];
        }

        var first = sources[0],
            remainder = sources.slice(1);

        if (sources.length === 1 && Object(_util_isArray__WEBPACK_IMPORTED_MODULE_2__["isArray"])(first)) {
          return onErrorResumeNext.apply(void 0, _toConsumableArray(first));
        }

        return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](function (subscriber) {
          var subNext = function subNext() {
            return subscriber.add(onErrorResumeNext.apply(void 0, _toConsumableArray(remainder)).subscribe(subscriber));
          };

          return Object(_from__WEBPACK_IMPORTED_MODULE_1__["from"])(first).subscribe({
            next: function next(value) {
              subscriber.next(value);
            },
            error: subNext,
            complete: subNext
          });
        });
      } //# sourceMappingURL=onErrorResumeNext.js.map

      /***/

    },

    /***/
    "Hnpn": function Hnpn(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return getUTCDayOfYear;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../requiredArgs/index.js */
      "jIYg");

      var MILLISECONDS_IN_DAY = 86400000; // This function will be a part of public API when UTC function will be implemented.
      // See issue: https://github.com/date-fns/date-fns/issues/376

      function getUTCDayOfYear(dirtyDate) {
        Object(_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);
        var timestamp = date.getTime();
        date.setUTCMonth(0, 1);
        date.setUTCHours(0, 0, 0, 0);
        var startOfYearTimestamp = date.getTime();
        var difference = timestamp - startOfYearTimestamp;
        return Math.floor(difference / MILLISECONDS_IN_DAY) + 1;
      }
      /***/

    },

    /***/
    "HrJb": function HrJb(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "count", function () {
        return count;
      });
      /* harmony import */


      var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Subscriber */
      "7o/Q");

      function count(predicate) {
        return function (source) {
          return source.lift(new CountOperator(predicate, source));
        };
      }

      var CountOperator = /*#__PURE__*/function () {
        function CountOperator(predicate, source) {
          _classCallCheck2(this, CountOperator);

          this.predicate = predicate;
          this.source = source;
        }

        _createClass2(CountOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            return source.subscribe(new CountSubscriber(subscriber, this.predicate, this.source));
          }
        }]);

        return CountOperator;
      }();

      var CountSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_16) {
        _inherits2(CountSubscriber, _Subscriber__WEBPACK_16);

        var _super208 = _createSuper2(CountSubscriber);

        function CountSubscriber(destination, predicate, source) {
          var _this501;

          _classCallCheck2(this, CountSubscriber);

          _this501 = _super208.call(this, destination);
          _this501.predicate = predicate;
          _this501.source = source;
          _this501.count = 0;
          _this501.index = 0;
          return _this501;
        }

        _createClass2(CountSubscriber, [{
          key: "_next",
          value: function _next(value) {
            if (this.predicate) {
              this._tryPredicate(value);
            } else {
              this.count++;
            }
          }
        }, {
          key: "_tryPredicate",
          value: function _tryPredicate(value) {
            var result;

            try {
              result = this.predicate(value, this.index++, this.source);
            } catch (err) {
              this.destination.error(err);
              return;
            }

            if (result) {
              this.count++;
            }
          }
        }, {
          key: "_complete",
          value: function _complete() {
            this.destination.next(this.count);
            this.destination.complete();
          }
        }]);

        return CountSubscriber;
      }(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]); //# sourceMappingURL=count.js.map

      /***/

    },

    /***/
    "Ht+U": function HtU(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "A", function () {
        return A;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ALT", function () {
        return ALT;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "APOSTROPHE", function () {
        return APOSTROPHE;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "AT_SIGN", function () {
        return AT_SIGN;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "B", function () {
        return B;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "BACKSLASH", function () {
        return BACKSLASH;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "BACKSPACE", function () {
        return BACKSPACE;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "C", function () {
        return C;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CAPS_LOCK", function () {
        return CAPS_LOCK;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CLOSE_SQUARE_BRACKET", function () {
        return CLOSE_SQUARE_BRACKET;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "COMMA", function () {
        return COMMA;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CONTEXT_MENU", function () {
        return CONTEXT_MENU;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CONTROL", function () {
        return CONTROL;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "D", function () {
        return D;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "DASH", function () {
        return DASH;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "DELETE", function () {
        return DELETE;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "DOWN_ARROW", function () {
        return DOWN_ARROW;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "E", function () {
        return E;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "EIGHT", function () {
        return EIGHT;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "END", function () {
        return END;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ENTER", function () {
        return ENTER;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "EQUALS", function () {
        return EQUALS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ESCAPE", function () {
        return ESCAPE;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "F", function () {
        return F;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "F1", function () {
        return F1;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "F10", function () {
        return F10;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "F11", function () {
        return F11;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "F12", function () {
        return F12;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "F2", function () {
        return F2;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "F3", function () {
        return F3;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "F4", function () {
        return F4;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "F5", function () {
        return F5;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "F6", function () {
        return F6;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "F7", function () {
        return F7;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "F8", function () {
        return F8;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "F9", function () {
        return F9;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "FF_EQUALS", function () {
        return FF_EQUALS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "FF_MINUS", function () {
        return FF_MINUS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "FF_MUTE", function () {
        return FF_MUTE;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "FF_SEMICOLON", function () {
        return FF_SEMICOLON;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "FF_VOLUME_DOWN", function () {
        return FF_VOLUME_DOWN;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "FF_VOLUME_UP", function () {
        return FF_VOLUME_UP;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "FIRST_MEDIA", function () {
        return FIRST_MEDIA;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "FIVE", function () {
        return FIVE;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "FOUR", function () {
        return FOUR;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "G", function () {
        return G;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "H", function () {
        return H;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "HOME", function () {
        return HOME;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "I", function () {
        return I;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "INSERT", function () {
        return INSERT;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "J", function () {
        return J;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "K", function () {
        return K;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "L", function () {
        return L;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "LAST_MEDIA", function () {
        return LAST_MEDIA;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "LEFT_ARROW", function () {
        return LEFT_ARROW;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "M", function () {
        return M;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MAC_ENTER", function () {
        return MAC_ENTER;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MAC_META", function () {
        return MAC_META;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MAC_WK_CMD_LEFT", function () {
        return MAC_WK_CMD_LEFT;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MAC_WK_CMD_RIGHT", function () {
        return MAC_WK_CMD_RIGHT;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "META", function () {
        return META;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MUTE", function () {
        return MUTE;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "N", function () {
        return N;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NINE", function () {
        return NINE;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NUMPAD_DIVIDE", function () {
        return NUMPAD_DIVIDE;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NUMPAD_EIGHT", function () {
        return NUMPAD_EIGHT;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NUMPAD_FIVE", function () {
        return NUMPAD_FIVE;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NUMPAD_FOUR", function () {
        return NUMPAD_FOUR;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NUMPAD_MINUS", function () {
        return NUMPAD_MINUS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NUMPAD_MULTIPLY", function () {
        return NUMPAD_MULTIPLY;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NUMPAD_NINE", function () {
        return NUMPAD_NINE;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NUMPAD_ONE", function () {
        return NUMPAD_ONE;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NUMPAD_PERIOD", function () {
        return NUMPAD_PERIOD;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NUMPAD_PLUS", function () {
        return NUMPAD_PLUS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NUMPAD_SEVEN", function () {
        return NUMPAD_SEVEN;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NUMPAD_SIX", function () {
        return NUMPAD_SIX;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NUMPAD_THREE", function () {
        return NUMPAD_THREE;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NUMPAD_TWO", function () {
        return NUMPAD_TWO;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NUMPAD_ZERO", function () {
        return NUMPAD_ZERO;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NUM_CENTER", function () {
        return NUM_CENTER;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NUM_LOCK", function () {
        return NUM_LOCK;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "O", function () {
        return O;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ONE", function () {
        return ONE;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "OPEN_SQUARE_BRACKET", function () {
        return OPEN_SQUARE_BRACKET;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "P", function () {
        return P;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "PAGE_DOWN", function () {
        return PAGE_DOWN;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "PAGE_UP", function () {
        return PAGE_UP;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "PAUSE", function () {
        return PAUSE;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "PLUS_SIGN", function () {
        return PLUS_SIGN;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "PRINT_SCREEN", function () {
        return PRINT_SCREEN;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Q", function () {
        return Q;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "QUESTION_MARK", function () {
        return QUESTION_MARK;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "R", function () {
        return R;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "RIGHT_ARROW", function () {
        return RIGHT_ARROW;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "S", function () {
        return S;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "SCROLL_LOCK", function () {
        return SCROLL_LOCK;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "SEMICOLON", function () {
        return SEMICOLON;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "SEVEN", function () {
        return SEVEN;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "SHIFT", function () {
        return SHIFT;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "SINGLE_QUOTE", function () {
        return SINGLE_QUOTE;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "SIX", function () {
        return SIX;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "SLASH", function () {
        return SLASH;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "SPACE", function () {
        return SPACE;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "T", function () {
        return T;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TAB", function () {
        return TAB;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "THREE", function () {
        return THREE;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TILDE", function () {
        return TILDE;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TWO", function () {
        return TWO;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "U", function () {
        return U;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "UP_ARROW", function () {
        return UP_ARROW;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "V", function () {
        return V;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "VOLUME_DOWN", function () {
        return VOLUME_DOWN;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "VOLUME_UP", function () {
        return VOLUME_UP;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "W", function () {
        return W;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "X", function () {
        return X;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Y", function () {
        return Y;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Z", function () {
        return Z;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ZERO", function () {
        return ZERO;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "hasModifierKey", function () {
        return hasModifierKey;
      });
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var MAC_ENTER = 3;
      var BACKSPACE = 8;
      var TAB = 9;
      var NUM_CENTER = 12;
      var ENTER = 13;
      var SHIFT = 16;
      var CONTROL = 17;
      var ALT = 18;
      var PAUSE = 19;
      var CAPS_LOCK = 20;
      var ESCAPE = 27;
      var SPACE = 32;
      var PAGE_UP = 33;
      var PAGE_DOWN = 34;
      var END = 35;
      var HOME = 36;
      var LEFT_ARROW = 37;
      var UP_ARROW = 38;
      var RIGHT_ARROW = 39;
      var DOWN_ARROW = 40;
      var PLUS_SIGN = 43;
      var PRINT_SCREEN = 44;
      var INSERT = 45;
      var DELETE = 46;
      var ZERO = 48;
      var ONE = 49;
      var TWO = 50;
      var THREE = 51;
      var FOUR = 52;
      var FIVE = 53;
      var SIX = 54;
      var SEVEN = 55;
      var EIGHT = 56;
      var NINE = 57;
      var FF_SEMICOLON = 59; // Firefox (Gecko) fires this for semicolon instead of 186

      var FF_EQUALS = 61; // Firefox (Gecko) fires this for equals instead of 187

      var QUESTION_MARK = 63;
      var AT_SIGN = 64;
      var A = 65;
      var B = 66;
      var C = 67;
      var D = 68;
      var E = 69;
      var F = 70;
      var G = 71;
      var H = 72;
      var I = 73;
      var J = 74;
      var K = 75;
      var L = 76;
      var M = 77;
      var N = 78;
      var O = 79;
      var P = 80;
      var Q = 81;
      var R = 82;
      var S = 83;
      var T = 84;
      var U = 85;
      var V = 86;
      var W = 87;
      var X = 88;
      var Y = 89;
      var Z = 90;
      var META = 91; // WIN_KEY_LEFT

      var MAC_WK_CMD_LEFT = 91;
      var MAC_WK_CMD_RIGHT = 93;
      var CONTEXT_MENU = 93;
      var NUMPAD_ZERO = 96;
      var NUMPAD_ONE = 97;
      var NUMPAD_TWO = 98;
      var NUMPAD_THREE = 99;
      var NUMPAD_FOUR = 100;
      var NUMPAD_FIVE = 101;
      var NUMPAD_SIX = 102;
      var NUMPAD_SEVEN = 103;
      var NUMPAD_EIGHT = 104;
      var NUMPAD_NINE = 105;
      var NUMPAD_MULTIPLY = 106;
      var NUMPAD_PLUS = 107;
      var NUMPAD_MINUS = 109;
      var NUMPAD_PERIOD = 110;
      var NUMPAD_DIVIDE = 111;
      var F1 = 112;
      var F2 = 113;
      var F3 = 114;
      var F4 = 115;
      var F5 = 116;
      var F6 = 117;
      var F7 = 118;
      var F8 = 119;
      var F9 = 120;
      var F10 = 121;
      var F11 = 122;
      var F12 = 123;
      var NUM_LOCK = 144;
      var SCROLL_LOCK = 145;
      var FIRST_MEDIA = 166;
      var FF_MINUS = 173;
      var MUTE = 173; // Firefox (Gecko) fires 181 for MUTE

      var VOLUME_DOWN = 174; // Firefox (Gecko) fires 182 for VOLUME_DOWN

      var VOLUME_UP = 175; // Firefox (Gecko) fires 183 for VOLUME_UP

      var FF_MUTE = 181;
      var FF_VOLUME_DOWN = 182;
      var LAST_MEDIA = 183;
      var FF_VOLUME_UP = 183;
      var SEMICOLON = 186; // Firefox (Gecko) fires 59 for SEMICOLON

      var EQUALS = 187; // Firefox (Gecko) fires 61 for EQUALS

      var COMMA = 188;
      var DASH = 189; // Firefox (Gecko) fires 173 for DASH/MINUS

      var SLASH = 191;
      var APOSTROPHE = 192;
      var TILDE = 192;
      var OPEN_SQUARE_BRACKET = 219;
      var BACKSLASH = 220;
      var CLOSE_SQUARE_BRACKET = 221;
      var SINGLE_QUOTE = 222;
      var MAC_META = 224;
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Checks whether a modifier key is pressed.
       * @param event Event to be checked.
       */

      function hasModifierKey(event) {
        for (var _len45 = arguments.length, modifiers = new Array(_len45 > 1 ? _len45 - 1 : 0), _key47 = 1; _key47 < _len45; _key47++) {
          modifiers[_key47 - 1] = arguments[_key47];
        }

        if (modifiers.length) {
          return modifiers.some(function (modifier) {
            return event[modifier];
          });
        }

        return event.altKey || event.shiftKey || event.ctrlKey || event.metaKey;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Generated bundle index. Do not edit.
       */
      //# sourceMappingURL=keycodes.js.map

      /***/

    },

    /***/
    "I55L": function I55L(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "isArrayLike", function () {
        return isArrayLike;
      });

      var isArrayLike = function isArrayLike(x) {
        return x && typeof x.length === 'number' && typeof x !== 'function';
      }; //# sourceMappingURL=isArrayLike.js.map

      /***/

    },

    /***/
    "IAdc": function IAdc(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "toArray", function () {
        return toArray;
      });
      /* harmony import */


      var _reduce__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ./reduce */
      "128B");

      function toArrayReducer(arr, item, index) {
        if (index === 0) {
          return [item];
        }

        arr.push(item);
        return arr;
      }

      function toArray() {
        return Object(_reduce__WEBPACK_IMPORTED_MODULE_0__["reduce"])(toArrayReducer, []);
      } //# sourceMappingURL=toArray.js.map

      /***/

    },

    /***/
    "IBtZ": function IBtZ(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Georgian [ka]
      //! author : Irakli Janiashvili : https://github.com/IrakliJani
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var ka = moment.defineLocale('ka', {
          months: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split('_'),
          monthsShort: 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'),
          weekdays: {
            standalone: 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split('_'),
            format: 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split('_'),
            isFormat: /(წინა|შემდეგ)/
          },
          weekdaysShort: 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'),
          weekdaysMin: 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'),
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd, D MMMM YYYY HH:mm'
          },
          calendar: {
            sameDay: '[დღეს] LT[-ზე]',
            nextDay: '[ხვალ] LT[-ზე]',
            lastDay: '[გუშინ] LT[-ზე]',
            nextWeek: '[შემდეგ] dddd LT[-ზე]',
            lastWeek: '[წინა] dddd LT-ზე',
            sameElse: 'L'
          },
          relativeTime: {
            future: function future(s) {
              return s.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/, function ($0, $1, $2) {
                return $2 === 'ი' ? $1 + 'ში' : $1 + $2 + 'ში';
              });
            },
            past: function past(s) {
              if (/(წამი|წუთი|საათი|დღე|თვე)/.test(s)) {
                return s.replace(/(ი|ე)$/, 'ის წინ');
              }

              if (/წელი/.test(s)) {
                return s.replace(/წელი$/, 'წლის წინ');
              }

              return s;
            },
            s: 'რამდენიმე წამი',
            ss: '%d წამი',
            m: 'წუთი',
            mm: '%d წუთი',
            h: 'საათი',
            hh: '%d საათი',
            d: 'დღე',
            dd: '%d დღე',
            M: 'თვე',
            MM: '%d თვე',
            y: 'წელი',
            yy: '%d წელი'
          },
          dayOfMonthOrdinalParse: /0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,
          ordinal: function ordinal(number) {
            if (number === 0) {
              return number;
            }

            if (number === 1) {
              return number + '-ლი';
            }

            if (number < 20 || number <= 100 && number % 20 === 0 || number % 100 === 0) {
              return 'მე-' + number;
            }

            return number + '-ე';
          },
          week: {
            dow: 1,
            doy: 7
          }
        });
        return ka;
      });
      /***/

    },

    /***/
    "IIV6": function IIV6(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return endOfMinute;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name endOfMinute
       * @category Minute Helpers
       * @summary Return the end of a minute for the given date.
       *
       * @description
       * Return the end of a minute for the given date.
       * The result will be in the local timezone.
       *
       * ### 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 {Date|Number} date - the original date
       * @returns {Date} the end of a minute
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // The end of a minute for 1 December 2014 22:15:45.400:
       * var result = endOfMinute(new Date(2014, 11, 1, 22, 15, 45, 400))
       * //=> Mon Dec 01 2014 22:15:59.999
       */


      function endOfMinute(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);
        date.setSeconds(59, 999);
        return date;
      }
      /***/

    },

    /***/
    "ILtH": function ILtH(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return roundToNearestMinutes;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/toInteger/index.js */
      "/h9T");
      /**
       * @name roundToNearestMinutes
       * @category Minute Helpers
       * @summary Rounds the given date to the nearest minute
       *
       * @description
       * Rounds the given date to the nearest minute (or number of minutes).
       * Rounds up when the given date is exactly between the nearest round minutes.
       *
       * ### 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 {Date|Number} date - the date to round
       * @param {Object} [options] - an object with options.
       * @param {Number} [options.nearestTo=1] - nearest number of minutes to round to. E.g. `15` to round to quarter hours.
       * @returns {Date} the new date rounded to the closest minute
       * @throws {TypeError} 1 argument required
       * @throws {RangeError} `options.nearestTo` must be between 1 and 30
       *
       * @example
       * // Round 10 July 2014 12:12:34 to nearest minute:
       * var result = roundToNearestMinutes(new Date(2014, 6, 10, 12, 12, 34))
       * //=> Thu Jul 10 2014 12:13:00
       *
       * @example
       * // Round 10 July 2014 12:07:30 to nearest quarter hour:
       * var result = roundToNearestMinutes(new Date(2014, 6, 10, 12, 12, 34), { nearestTo: 15 })
       * // rounds up because given date is exactly between 12:00:00 and 12:15:00
       * //=> Thu Jul 10 2014 12:15:00
       */


      function roundToNearestMinutes(dirtyDate, options) {
        if (arguments.length < 1) {
          throw new TypeError('1 argument required, but only none provided present');
        }

        var nearestTo = options && 'nearestTo' in options ? Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(options.nearestTo) : 1;

        if (nearestTo < 1 || nearestTo > 30) {
          throw new RangeError('`options.nearestTo` must be between 1 and 30');
        }

        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);
        var seconds = date.getSeconds(); // relevant if nearestTo is 1, which is the default case

        var minutes = date.getMinutes() + seconds / 60;
        var roundedMinutes = Math.floor(minutes / nearestTo) * nearestTo;
        var remainderMinutes = minutes % nearestTo;
        var addedMinutes = Math.round(remainderMinutes / nearestTo) * nearestTo;
        return new Date(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), roundedMinutes + addedMinutes);
      }
      /***/

    },

    /***/
    "IYaI": function IYaI(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return addMinutes;
      });
      /* harmony import */


      var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../_lib/toInteger/index.js */
      "/h9T");
      /* harmony import */


      var _addMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../addMilliseconds/index.js */
      "pl0G");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");

      var MILLISECONDS_IN_MINUTE = 60000;
      /**
       * @name addMinutes
       * @category Minute Helpers
       * @summary Add the specified number of minutes to the given date.
       *
       * @description
       * Add the specified number of minutes to the given date.
       *
       * ### 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 {Date|Number} date - the date to be changed
       * @param {Number} amount - the amount of minutes to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
       * @returns {Date} the new date with the minutes added
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // Add 30 minutes to 10 July 2014 12:00:00:
       * var result = addMinutes(new Date(2014, 6, 10, 12, 0), 30)
       * //=> Thu Jul 10 2014 12:30:00
       */

      function addMinutes(dirtyDate, dirtyAmount) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(2, arguments);
        var amount = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyAmount);
        return Object(_addMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate, amount * MILLISECONDS_IN_MINUTE);
      }
      /***/

    },

    /***/
    "Ib5w": function Ib5w(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);

      function dateLongFormatter(pattern, formatLong) {
        switch (pattern) {
          case 'P':
            return formatLong.date({
              width: 'short'
            });

          case 'PP':
            return formatLong.date({
              width: 'medium'
            });

          case 'PPP':
            return formatLong.date({
              width: 'long'
            });

          case 'PPPP':
          default:
            return formatLong.date({
              width: 'full'
            });
        }
      }

      function timeLongFormatter(pattern, formatLong) {
        switch (pattern) {
          case 'p':
            return formatLong.time({
              width: 'short'
            });

          case 'pp':
            return formatLong.time({
              width: 'medium'
            });

          case 'ppp':
            return formatLong.time({
              width: 'long'
            });

          case 'pppp':
          default:
            return formatLong.time({
              width: 'full'
            });
        }
      }

      function dateTimeLongFormatter(pattern, formatLong) {
        var matchResult = pattern.match(/(P+)(p+)?/);
        var datePattern = matchResult[1];
        var timePattern = matchResult[2];

        if (!timePattern) {
          return dateLongFormatter(pattern, formatLong);
        }

        var dateTimeFormat;

        switch (datePattern) {
          case 'P':
            dateTimeFormat = formatLong.dateTime({
              width: 'short'
            });
            break;

          case 'PP':
            dateTimeFormat = formatLong.dateTime({
              width: 'medium'
            });
            break;

          case 'PPP':
            dateTimeFormat = formatLong.dateTime({
              width: 'long'
            });
            break;

          case 'PPPP':
          default:
            dateTimeFormat = formatLong.dateTime({
              width: 'full'
            });
            break;
        }

        return dateTimeFormat.replace('{{date}}', dateLongFormatter(datePattern, formatLong)).replace('{{time}}', timeLongFormatter(timePattern, formatLong));
      }

      var longFormatters = {
        p: timeLongFormatter,
        P: dateTimeLongFormatter
      };
      /* harmony default export */

      __webpack_exports__["default"] = longFormatters;
      /***/
    },

    /***/
    "Ib8C": function Ib8C(module, exports, __webpack_require__) {
      ;

      (function (root, factory) {
        if (true) {
          // CommonJS
          module.exports = exports = factory();
        } else {}
      })(this, function () {
        /*globals window, global, require*/

        /**
         * CryptoJS core components.
         */
        var CryptoJS = CryptoJS || function (Math, undefined) {
          var crypto; // Native crypto from window (Browser)

          if (typeof window !== 'undefined' && window.crypto) {
            crypto = window.crypto;
          } // Native crypto in web worker (Browser)


          if (typeof self !== 'undefined' && self.crypto) {
            crypto = self.crypto;
          } // Native crypto from worker


          if (typeof globalThis !== 'undefined' && globalThis.crypto) {
            crypto = globalThis.crypto;
          } // Native (experimental IE 11) crypto from window (Browser)


          if (!crypto && typeof window !== 'undefined' && window.msCrypto) {
            crypto = window.msCrypto;
          } // Native crypto from global (NodeJS)


          if (!crypto && typeof global !== 'undefined' && global.crypto) {
            crypto = global.crypto;
          } // Native crypto import via require (NodeJS)


          if (!crypto && "function" === 'function') {
            try {
              crypto = __webpack_require__(
              /*! crypto */
              1);
            } catch (err) {}
          }
          /*
           * Cryptographically secure pseudorandom number generator
           *
           * As Math.random() is cryptographically not safe to use
           */


          var cryptoSecureRandomInt = function cryptoSecureRandomInt() {
            if (crypto) {
              // Use getRandomValues method (Browser)
              if (typeof crypto.getRandomValues === 'function') {
                try {
                  return crypto.getRandomValues(new Uint32Array(1))[0];
                } catch (err) {}
              } // Use randomBytes method (NodeJS)


              if (typeof crypto.randomBytes === 'function') {
                try {
                  return crypto.randomBytes(4).readInt32LE();
                } catch (err) {}
              }
            }

            throw new Error('Native crypto module could not be used to get secure random number.');
          };
          /*
           * Local polyfill of Object.create
            */


          var create = Object.create || function () {
            function F() {}

            return function (obj) {
              var subtype;
              F.prototype = obj;
              subtype = new F();
              F.prototype = null;
              return subtype;
            };
          }();
          /**
           * CryptoJS namespace.
           */


          var C = {};
          /**
           * Library namespace.
           */

          var C_lib = C.lib = {};
          /**
           * Base object for prototypal inheritance.
           */

          var Base = C_lib.Base = function () {
            return {
              /**
               * Creates a new object that inherits from this object.
               *
               * @param {Object} overrides Properties to copy into the new object.
               *
               * @return {Object} The new object.
               *
               * @static
               *
               * @example
               *
               *     var MyType = CryptoJS.lib.Base.extend({
               *         field: 'value',
               *
               *         method: function () {
               *         }
               *     });
               */
              extend: function extend(overrides) {
                // Spawn
                var subtype = create(this); // Augment

                if (overrides) {
                  subtype.mixIn(overrides);
                } // Create default initializer


                if (!subtype.hasOwnProperty('init') || this.init === subtype.init) {
                  subtype.init = function () {
                    subtype.$super.init.apply(this, arguments);
                  };
                } // Initializer's prototype is the subtype object


                subtype.init.prototype = subtype; // Reference supertype

                subtype.$super = this;
                return subtype;
              },

              /**
               * Extends this object and runs the init method.
               * Arguments to create() will be passed to init().
               *
               * @return {Object} The new object.
               *
               * @static
               *
               * @example
               *
               *     var instance = MyType.create();
               */
              create: function create() {
                var instance = this.extend();
                instance.init.apply(instance, arguments);
                return instance;
              },

              /**
               * Initializes a newly created object.
               * Override this method to add some logic when your objects are created.
               *
               * @example
               *
               *     var MyType = CryptoJS.lib.Base.extend({
               *         init: function () {
               *             // ...
               *         }
               *     });
               */
              init: function init() {},

              /**
               * Copies properties into this object.
               *
               * @param {Object} properties The properties to mix in.
               *
               * @example
               *
               *     MyType.mixIn({
               *         field: 'value'
               *     });
               */
              mixIn: function mixIn(properties) {
                for (var propertyName in properties) {
                  if (properties.hasOwnProperty(propertyName)) {
                    this[propertyName] = properties[propertyName];
                  }
                } // IE won't copy toString using the loop above


                if (properties.hasOwnProperty('toString')) {
                  this.toString = properties.toString;
                }
              },

              /**
               * Creates a copy of this object.
               *
               * @return {Object} The clone.
               *
               * @example
               *
               *     var clone = instance.clone();
               */
              clone: function clone() {
                return this.init.prototype.extend(this);
              }
            };
          }();
          /**
           * An array of 32-bit words.
           *
           * @property {Array} words The array of 32-bit words.
           * @property {number} sigBytes The number of significant bytes in this word array.
           */


          var WordArray = C_lib.WordArray = Base.extend({
            /**
             * Initializes a newly created word array.
             *
             * @param {Array} words (Optional) An array of 32-bit words.
             * @param {number} sigBytes (Optional) The number of significant bytes in the words.
             *
             * @example
             *
             *     var wordArray = CryptoJS.lib.WordArray.create();
             *     var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607]);
             *     var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6);
             */
            init: function init(words, sigBytes) {
              words = this.words = words || [];

              if (sigBytes != undefined) {
                this.sigBytes = sigBytes;
              } else {
                this.sigBytes = words.length * 4;
              }
            },

            /**
             * Converts this word array to a string.
             *
             * @param {Encoder} encoder (Optional) The encoding strategy to use. Default: CryptoJS.enc.Hex
             *
             * @return {string} The stringified word array.
             *
             * @example
             *
             *     var string = wordArray + '';
             *     var string = wordArray.toString();
             *     var string = wordArray.toString(CryptoJS.enc.Utf8);
             */
            toString: function toString(encoder) {
              return (encoder || Hex).stringify(this);
            },

            /**
             * Concatenates a word array to this word array.
             *
             * @param {WordArray} wordArray The word array to append.
             *
             * @return {WordArray} This word array.
             *
             * @example
             *
             *     wordArray1.concat(wordArray2);
             */
            concat: function concat(wordArray) {
              // Shortcuts
              var thisWords = this.words;
              var thatWords = wordArray.words;
              var thisSigBytes = this.sigBytes;
              var thatSigBytes = wordArray.sigBytes; // Clamp excess bits

              this.clamp(); // Concat

              if (thisSigBytes % 4) {
                // Copy one byte at a time
                for (var i = 0; i < thatSigBytes; i++) {
                  var thatByte = thatWords[i >>> 2] >>> 24 - i % 4 * 8 & 0xff;
                  thisWords[thisSigBytes + i >>> 2] |= thatByte << 24 - (thisSigBytes + i) % 4 * 8;
                }
              } else {
                // Copy one word at a time
                for (var j = 0; j < thatSigBytes; j += 4) {
                  thisWords[thisSigBytes + j >>> 2] = thatWords[j >>> 2];
                }
              }

              this.sigBytes += thatSigBytes; // Chainable

              return this;
            },

            /**
             * Removes insignificant bits.
             *
             * @example
             *
             *     wordArray.clamp();
             */
            clamp: function clamp() {
              // Shortcuts
              var words = this.words;
              var sigBytes = this.sigBytes; // Clamp

              words[sigBytes >>> 2] &= 0xffffffff << 32 - sigBytes % 4 * 8;
              words.length = Math.ceil(sigBytes / 4);
            },

            /**
             * Creates a copy of this word array.
             *
             * @return {WordArray} The clone.
             *
             * @example
             *
             *     var clone = wordArray.clone();
             */
            clone: function clone() {
              var clone = Base.clone.call(this);
              clone.words = this.words.slice(0);
              return clone;
            },

            /**
             * Creates a word array filled with random bytes.
             *
             * @param {number} nBytes The number of random bytes to generate.
             *
             * @return {WordArray} The random word array.
             *
             * @static
             *
             * @example
             *
             *     var wordArray = CryptoJS.lib.WordArray.random(16);
             */
            random: function random(nBytes) {
              var words = [];

              for (var i = 0; i < nBytes; i += 4) {
                words.push(cryptoSecureRandomInt());
              }

              return new WordArray.init(words, nBytes);
            }
          });
          /**
           * Encoder namespace.
           */

          var C_enc = C.enc = {};
          /**
           * Hex encoding strategy.
           */

          var Hex = C_enc.Hex = {
            /**
             * Converts a word array to a hex string.
             *
             * @param {WordArray} wordArray The word array.
             *
             * @return {string} The hex string.
             *
             * @static
             *
             * @example
             *
             *     var hexString = CryptoJS.enc.Hex.stringify(wordArray);
             */
            stringify: function stringify(wordArray) {
              // Shortcuts
              var words = wordArray.words;
              var sigBytes = wordArray.sigBytes; // Convert

              var hexChars = [];

              for (var i = 0; i < sigBytes; i++) {
                var bite = words[i >>> 2] >>> 24 - i % 4 * 8 & 0xff;
                hexChars.push((bite >>> 4).toString(16));
                hexChars.push((bite & 0x0f).toString(16));
              }

              return hexChars.join('');
            },

            /**
             * Converts a hex string to a word array.
             *
             * @param {string} hexStr The hex string.
             *
             * @return {WordArray} The word array.
             *
             * @static
             *
             * @example
             *
             *     var wordArray = CryptoJS.enc.Hex.parse(hexString);
             */
            parse: function parse(hexStr) {
              // Shortcut
              var hexStrLength = hexStr.length; // Convert

              var words = [];

              for (var i = 0; i < hexStrLength; i += 2) {
                words[i >>> 3] |= parseInt(hexStr.substr(i, 2), 16) << 24 - i % 8 * 4;
              }

              return new WordArray.init(words, hexStrLength / 2);
            }
          };
          /**
           * Latin1 encoding strategy.
           */

          var Latin1 = C_enc.Latin1 = {
            /**
             * Converts a word array to a Latin1 string.
             *
             * @param {WordArray} wordArray The word array.
             *
             * @return {string} The Latin1 string.
             *
             * @static
             *
             * @example
             *
             *     var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);
             */
            stringify: function stringify(wordArray) {
              // Shortcuts
              var words = wordArray.words;
              var sigBytes = wordArray.sigBytes; // Convert

              var latin1Chars = [];

              for (var i = 0; i < sigBytes; i++) {
                var bite = words[i >>> 2] >>> 24 - i % 4 * 8 & 0xff;
                latin1Chars.push(String.fromCharCode(bite));
              }

              return latin1Chars.join('');
            },

            /**
             * Converts a Latin1 string to a word array.
             *
             * @param {string} latin1Str The Latin1 string.
             *
             * @return {WordArray} The word array.
             *
             * @static
             *
             * @example
             *
             *     var wordArray = CryptoJS.enc.Latin1.parse(latin1String);
             */
            parse: function parse(latin1Str) {
              // Shortcut
              var latin1StrLength = latin1Str.length; // Convert

              var words = [];

              for (var i = 0; i < latin1StrLength; i++) {
                words[i >>> 2] |= (latin1Str.charCodeAt(i) & 0xff) << 24 - i % 4 * 8;
              }

              return new WordArray.init(words, latin1StrLength);
            }
          };
          /**
           * UTF-8 encoding strategy.
           */

          var Utf8 = C_enc.Utf8 = {
            /**
             * Converts a word array to a UTF-8 string.
             *
             * @param {WordArray} wordArray The word array.
             *
             * @return {string} The UTF-8 string.
             *
             * @static
             *
             * @example
             *
             *     var utf8String = CryptoJS.enc.Utf8.stringify(wordArray);
             */
            stringify: function stringify(wordArray) {
              try {
                return decodeURIComponent(escape(Latin1.stringify(wordArray)));
              } catch (e) {
                throw new Error('Malformed UTF-8 data');
              }
            },

            /**
             * Converts a UTF-8 string to a word array.
             *
             * @param {string} utf8Str The UTF-8 string.
             *
             * @return {WordArray} The word array.
             *
             * @static
             *
             * @example
             *
             *     var wordArray = CryptoJS.enc.Utf8.parse(utf8String);
             */
            parse: function parse(utf8Str) {
              return Latin1.parse(unescape(encodeURIComponent(utf8Str)));
            }
          };
          /**
           * Abstract buffered block algorithm template.
           *
           * The property blockSize must be implemented in a concrete subtype.
           *
           * @property {number} _minBufferSize The number of blocks that should be kept unprocessed in the buffer. Default: 0
           */

          var BufferedBlockAlgorithm = C_lib.BufferedBlockAlgorithm = Base.extend({
            /**
             * Resets this block algorithm's data buffer to its initial state.
             *
             * @example
             *
             *     bufferedBlockAlgorithm.reset();
             */
            reset: function reset() {
              // Initial values
              this._data = new WordArray.init();
              this._nDataBytes = 0;
            },

            /**
             * Adds new data to this block algorithm's buffer.
             *
             * @param {WordArray|string} data The data to append. Strings are converted to a WordArray using UTF-8.
             *
             * @example
             *
             *     bufferedBlockAlgorithm._append('data');
             *     bufferedBlockAlgorithm._append(wordArray);
             */
            _append: function _append(data) {
              // Convert string to WordArray, else assume WordArray already
              if (typeof data == 'string') {
                data = Utf8.parse(data);
              } // Append


              this._data.concat(data);

              this._nDataBytes += data.sigBytes;
            },

            /**
             * Processes available data blocks.
             *
             * This method invokes _doProcessBlock(offset), which must be implemented by a concrete subtype.
             *
             * @param {boolean} doFlush Whether all blocks and partial blocks should be processed.
             *
             * @return {WordArray} The processed data.
             *
             * @example
             *
             *     var processedData = bufferedBlockAlgorithm._process();
             *     var processedData = bufferedBlockAlgorithm._process(!!'flush');
             */
            _process: function _process(doFlush) {
              var processedWords; // Shortcuts

              var data = this._data;
              var dataWords = data.words;
              var dataSigBytes = data.sigBytes;
              var blockSize = this.blockSize;
              var blockSizeBytes = blockSize * 4; // Count blocks ready

              var nBlocksReady = dataSigBytes / blockSizeBytes;

              if (doFlush) {
                // Round up to include partial blocks
                nBlocksReady = Math.ceil(nBlocksReady);
              } else {
                // Round down to include only full blocks,
                // less the number of blocks that must remain in the buffer
                nBlocksReady = Math.max((nBlocksReady | 0) - this._minBufferSize, 0);
              } // Count words ready


              var nWordsReady = nBlocksReady * blockSize; // Count bytes ready

              var nBytesReady = Math.min(nWordsReady * 4, dataSigBytes); // Process blocks

              if (nWordsReady) {
                for (var offset = 0; offset < nWordsReady; offset += blockSize) {
                  // Perform concrete-algorithm logic
                  this._doProcessBlock(dataWords, offset);
                } // Remove processed words


                processedWords = dataWords.splice(0, nWordsReady);
                data.sigBytes -= nBytesReady;
              } // Return processed words


              return new WordArray.init(processedWords, nBytesReady);
            },

            /**
             * Creates a copy of this object.
             *
             * @return {Object} The clone.
             *
             * @example
             *
             *     var clone = bufferedBlockAlgorithm.clone();
             */
            clone: function clone() {
              var clone = Base.clone.call(this);
              clone._data = this._data.clone();
              return clone;
            },
            _minBufferSize: 0
          });
          /**
           * Abstract hasher template.
           *
           * @property {number} blockSize The number of 32-bit words this hasher operates on. Default: 16 (512 bits)
           */

          var Hasher = C_lib.Hasher = BufferedBlockAlgorithm.extend({
            /**
             * Configuration options.
             */
            cfg: Base.extend(),

            /**
             * Initializes a newly created hasher.
             *
             * @param {Object} cfg (Optional) The configuration options to use for this hash computation.
             *
             * @example
             *
             *     var hasher = CryptoJS.algo.SHA256.create();
             */
            init: function init(cfg) {
              // Apply config defaults
              this.cfg = this.cfg.extend(cfg); // Set initial values

              this.reset();
            },

            /**
             * Resets this hasher to its initial state.
             *
             * @example
             *
             *     hasher.reset();
             */
            reset: function reset() {
              // Reset data buffer
              BufferedBlockAlgorithm.reset.call(this); // Perform concrete-hasher logic

              this._doReset();
            },

            /**
             * Updates this hasher with a message.
             *
             * @param {WordArray|string} messageUpdate The message to append.
             *
             * @return {Hasher} This hasher.
             *
             * @example
             *
             *     hasher.update('message');
             *     hasher.update(wordArray);
             */
            update: function update(messageUpdate) {
              // Append
              this._append(messageUpdate); // Update the hash


              this._process(); // Chainable


              return this;
            },

            /**
             * Finalizes the hash computation.
             * Note that the finalize operation is effectively a destructive, read-once operation.
             *
             * @param {WordArray|string} messageUpdate (Optional) A final message update.
             *
             * @return {WordArray} The hash.
             *
             * @example
             *
             *     var hash = hasher.finalize();
             *     var hash = hasher.finalize('message');
             *     var hash = hasher.finalize(wordArray);
             */
            finalize: function finalize(messageUpdate) {
              // Final message update
              if (messageUpdate) {
                this._append(messageUpdate);
              } // Perform concrete-hasher logic


              var hash = this._doFinalize();

              return hash;
            },
            blockSize: 512 / 32,

            /**
             * Creates a shortcut function to a hasher's object interface.
             *
             * @param {Hasher} hasher The hasher to create a helper for.
             *
             * @return {Function} The shortcut function.
             *
             * @static
             *
             * @example
             *
             *     var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256);
             */
            _createHelper: function _createHelper(hasher) {
              return function (message, cfg) {
                return new hasher.init(cfg).finalize(message);
              };
            },

            /**
             * Creates a shortcut function to the HMAC's object interface.
             *
             * @param {Hasher} hasher The hasher to use in this HMAC helper.
             *
             * @return {Function} The shortcut function.
             *
             * @static
             *
             * @example
             *
             *     var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256);
             */
            _createHmacHelper: function _createHmacHelper(hasher) {
              return function (message, key) {
                return new C_algo.HMAC.init(hasher, key).finalize(message);
              };
            }
          });
          /**
           * Algorithm namespace.
           */

          var C_algo = C.algo = {};
          return C;
        }(Math);

        return CryptoJS;
      });
      /***/

    },

    /***/
    "IheW": function IheW(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "HTTP_INTERCEPTORS", function () {
        return HTTP_INTERCEPTORS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "HttpBackend", function () {
        return HttpBackend;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "HttpClient", function () {
        return HttpClient;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "HttpClientJsonpModule", function () {
        return HttpClientJsonpModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "HttpClientModule", function () {
        return HttpClientModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "HttpClientXsrfModule", function () {
        return HttpClientXsrfModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "HttpErrorResponse", function () {
        return HttpErrorResponse;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "HttpEventType", function () {
        return HttpEventType;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "HttpHandler", function () {
        return HttpHandler;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "HttpHeaderResponse", function () {
        return HttpHeaderResponse;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "HttpHeaders", function () {
        return HttpHeaders;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "HttpParams", function () {
        return HttpParams;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "HttpRequest", function () {
        return HttpRequest;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "HttpResponse", function () {
        return HttpResponse;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "HttpResponseBase", function () {
        return HttpResponseBase;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "HttpUrlEncodingCodec", function () {
        return HttpUrlEncodingCodec;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "HttpXhrBackend", function () {
        return HttpXhrBackend;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "HttpXsrfTokenExtractor", function () {
        return HttpXsrfTokenExtractor;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "JsonpClientBackend", function () {
        return JsonpClientBackend;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "JsonpInterceptor", function () {
        return JsonpInterceptor;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "XhrFactory", function () {
        return XhrFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵHttpInterceptingHandler", function () {
        return HttpInterceptingHandler;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_common_http_http_a", function () {
        return NoopInterceptor;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_common_http_http_b", function () {
        return JsonpCallbackContext;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_common_http_http_c", function () {
        return jsonpCallbackContext;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_common_http_http_d", function () {
        return BrowserXhr;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_common_http_http_e", function () {
        return XSRF_COOKIE_NAME;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_common_http_http_f", function () {
        return XSRF_HEADER_NAME;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_common_http_http_g", function () {
        return HttpXsrfCookieExtractor;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_common_http_http_h", function () {
        return HttpXsrfInterceptor;
      });
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /* harmony import */


      var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! rxjs */
      "qCKp");
      /* harmony import */


      var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! rxjs/operators */
      "kU1M");
      /* harmony import */


      var _angular_common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! @angular/common */
      "SVse");
      /**
       * @license Angular v11.0.0
       * (c) 2010-2020 Google LLC. https://angular.io/
       * License: MIT
       */

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Transforms an `HttpRequest` into a stream of `HttpEvent`s, one of which will likely be a
       * `HttpResponse`.
       *
       * `HttpHandler` is injectable. When injected, the handler instance dispatches requests to the
       * first interceptor in the chain, which dispatches to the second, etc, eventually reaching the
       * `HttpBackend`.
       *
       * In an `HttpInterceptor`, the `HttpHandler` parameter is the next interceptor in the chain.
       *
       * @publicApi
       */


      var HttpHandler = function HttpHandler() {
        _classCallCheck2(this, HttpHandler);
      };
      /**
       * A final `HttpHandler` which will dispatch the request via browser HTTP APIs to a backend.
       *
       * Interceptors sit between the `HttpClient` interface and the `HttpBackend`.
       *
       * When injected, `HttpBackend` dispatches requests directly to the backend, without going
       * through the interceptor chain.
       *
       * @publicApi
       */


      var HttpBackend = function HttpBackend() {
        _classCallCheck2(this, HttpBackend);
      };
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Represents the header configuration options for an HTTP request.
       * Instances are immutable. Modifying methods return a cloned
       * instance with the change. The original object is never changed.
       *
       * @publicApi
       */


      var HttpHeaders = /*#__PURE__*/function () {
        /**  Constructs a new HTTP header object with the given values.*/
        function HttpHeaders(headers) {
          var _this502 = this;

          _classCallCheck2(this, HttpHeaders);

          /**
           * Internal map of lowercased header names to the normalized
           * form of the name (the form seen first).
           */
          this.normalizedNames = new Map();
          /**
           * Queued updates to be materialized the next initialization.
           */

          this.lazyUpdate = null;

          if (!headers) {
            this.headers = new Map();
          } else if (typeof headers === 'string') {
            this.lazyInit = function () {
              _this502.headers = new Map();
              headers.split('\n').forEach(function (line) {
                var index = line.indexOf(':');

                if (index > 0) {
                  var name = line.slice(0, index);
                  var key = name.toLowerCase();
                  var value = line.slice(index + 1).trim();

                  _this502.maybeSetNormalizedName(name, key);

                  if (_this502.headers.has(key)) {
                    _this502.headers.get(key).push(value);
                  } else {
                    _this502.headers.set(key, [value]);
                  }
                }
              });
            };
          } else {
            this.lazyInit = function () {
              _this502.headers = new Map();
              Object.keys(headers).forEach(function (name) {
                var values = headers[name];
                var key = name.toLowerCase();

                if (typeof values === 'string') {
                  values = [values];
                }

                if (values.length > 0) {
                  _this502.headers.set(key, values);

                  _this502.maybeSetNormalizedName(name, key);
                }
              });
            };
          }
        }
        /**
         * Checks for existence of a given header.
         *
         * @param name The header name to check for existence.
         *
         * @returns True if the header exists, false otherwise.
         */


        _createClass2(HttpHeaders, [{
          key: "has",
          value: function has(name) {
            this.init();
            return this.headers.has(name.toLowerCase());
          }
          /**
           * Retrieves the first value of a given header.
           *
           * @param name The header name.
           *
           * @returns The value string if the header exists, null otherwise
           */

        }, {
          key: "get",
          value: function get(name) {
            this.init();
            var values = this.headers.get(name.toLowerCase());
            return values && values.length > 0 ? values[0] : null;
          }
          /**
           * Retrieves the names of the headers.
           *
           * @returns A list of header names.
           */

        }, {
          key: "keys",
          value: function keys() {
            this.init();
            return Array.from(this.normalizedNames.values());
          }
          /**
           * Retrieves a list of values for a given header.
           *
           * @param name The header name from which to retrieve values.
           *
           * @returns A string of values if the header exists, null otherwise.
           */

        }, {
          key: "getAll",
          value: function getAll(name) {
            this.init();
            return this.headers.get(name.toLowerCase()) || null;
          }
          /**
           * Appends a new value to the existing set of values for a header
           * and returns them in a clone of the original instance.
           *
           * @param name The header name for which to append the values.
           * @param value The value to append.
           *
           * @returns A clone of the HTTP headers object with the value appended to the given header.
           */

        }, {
          key: "append",
          value: function append(name, value) {
            return this.clone({
              name: name,
              value: value,
              op: 'a'
            });
          }
          /**
           * Sets or modifies a value for a given header in a clone of the original instance.
           * If the header already exists, its value is replaced with the given value
           * in the returned object.
           *
           * @param name The header name.
           * @param value The value or values to set or overide for the given header.
           *
           * @returns A clone of the HTTP headers object with the newly set header value.
           */

        }, {
          key: "set",
          value: function set(name, value) {
            return this.clone({
              name: name,
              value: value,
              op: 's'
            });
          }
          /**
           * Deletes values for a given header in a clone of the original instance.
           *
           * @param name The header name.
           * @param value The value or values to delete for the given header.
           *
           * @returns A clone of the HTTP headers object with the given value deleted.
           */

        }, {
          key: "delete",
          value: function _delete(name, value) {
            return this.clone({
              name: name,
              value: value,
              op: 'd'
            });
          }
        }, {
          key: "maybeSetNormalizedName",
          value: function maybeSetNormalizedName(name, lcName) {
            if (!this.normalizedNames.has(lcName)) {
              this.normalizedNames.set(lcName, name);
            }
          }
        }, {
          key: "init",
          value: function init() {
            var _this503 = this;

            if (!!this.lazyInit) {
              if (this.lazyInit instanceof HttpHeaders) {
                this.copyFrom(this.lazyInit);
              } else {
                this.lazyInit();
              }

              this.lazyInit = null;

              if (!!this.lazyUpdate) {
                this.lazyUpdate.forEach(function (update) {
                  return _this503.applyUpdate(update);
                });
                this.lazyUpdate = null;
              }
            }
          }
        }, {
          key: "copyFrom",
          value: function copyFrom(other) {
            var _this504 = this;

            other.init();
            Array.from(other.headers.keys()).forEach(function (key) {
              _this504.headers.set(key, other.headers.get(key));

              _this504.normalizedNames.set(key, other.normalizedNames.get(key));
            });
          }
        }, {
          key: "clone",
          value: function clone(update) {
            var clone = new HttpHeaders();
            clone.lazyInit = !!this.lazyInit && this.lazyInit instanceof HttpHeaders ? this.lazyInit : this;
            clone.lazyUpdate = (this.lazyUpdate || []).concat([update]);
            return clone;
          }
        }, {
          key: "applyUpdate",
          value: function applyUpdate(update) {
            var key = update.name.toLowerCase();

            switch (update.op) {
              case 'a':
              case 's':
                var value = update.value;

                if (typeof value === 'string') {
                  value = [value];
                }

                if (value.length === 0) {
                  return;
                }

                this.maybeSetNormalizedName(update.name, key);
                var base = (update.op === 'a' ? this.headers.get(key) : undefined) || [];
                base.push.apply(base, _toConsumableArray(value));
                this.headers.set(key, base);
                break;

              case 'd':
                var toDelete = update.value;

                if (!toDelete) {
                  this.headers["delete"](key);
                  this.normalizedNames["delete"](key);
                } else {
                  var existing = this.headers.get(key);

                  if (!existing) {
                    return;
                  }

                  existing = existing.filter(function (value) {
                    return toDelete.indexOf(value) === -1;
                  });

                  if (existing.length === 0) {
                    this.headers["delete"](key);
                    this.normalizedNames["delete"](key);
                  } else {
                    this.headers.set(key, existing);
                  }
                }

                break;
            }
          }
          /**
           * @internal
           */

        }, {
          key: "forEach",
          value: function forEach(fn) {
            var _this505 = this;

            this.init();
            Array.from(this.normalizedNames.keys()).forEach(function (key) {
              return fn(_this505.normalizedNames.get(key), _this505.headers.get(key));
            });
          }
        }]);

        return HttpHeaders;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Provides encoding and decoding of URL parameter and query-string values.
       *
       * Serializes and parses URL parameter keys and values to encode and decode them.
       * If you pass URL query parameters without encoding,
       * the query parameters can be misinterpreted at the receiving end.
       *
       *
       * @publicApi
       */


      var HttpUrlEncodingCodec = /*#__PURE__*/function () {
        function HttpUrlEncodingCodec() {
          _classCallCheck2(this, HttpUrlEncodingCodec);
        }

        _createClass2(HttpUrlEncodingCodec, [{
          key: "encodeKey",
          value:
          /**
           * Encodes a key name for a URL parameter or query-string.
           * @param key The key name.
           * @returns The encoded key name.
           */
          function encodeKey(key) {
            return standardEncoding(key);
          }
          /**
           * Encodes the value of a URL parameter or query-string.
           * @param value The value.
           * @returns The encoded value.
           */

        }, {
          key: "encodeValue",
          value: function encodeValue(value) {
            return standardEncoding(value);
          }
          /**
           * Decodes an encoded URL parameter or query-string key.
           * @param key The encoded key name.
           * @returns The decoded key name.
           */

        }, {
          key: "decodeKey",
          value: function decodeKey(key) {
            return decodeURIComponent(key);
          }
          /**
           * Decodes an encoded URL parameter or query-string value.
           * @param value The encoded value.
           * @returns The decoded value.
           */

        }, {
          key: "decodeValue",
          value: function decodeValue(value) {
            return decodeURIComponent(value);
          }
        }]);

        return HttpUrlEncodingCodec;
      }();

      function paramParser(rawParams, codec) {
        var map = new Map();

        if (rawParams.length > 0) {
          var params = rawParams.split('&');
          params.forEach(function (param) {
            var eqIdx = param.indexOf('=');

            var _ref69 = eqIdx == -1 ? [codec.decodeKey(param), ''] : [codec.decodeKey(param.slice(0, eqIdx)), codec.decodeValue(param.slice(eqIdx + 1))],
                _ref70 = _slicedToArray(_ref69, 2),
                key = _ref70[0],
                val = _ref70[1];

            var list = map.get(key) || [];
            list.push(val);
            map.set(key, list);
          });
        }

        return map;
      }

      function standardEncoding(v) {
        return encodeURIComponent(v).replace(/%40/gi, '@').replace(/%3A/gi, ':').replace(/%24/gi, '$').replace(/%2C/gi, ',').replace(/%3B/gi, ';').replace(/%2B/gi, '+').replace(/%3D/gi, '=').replace(/%3F/gi, '?').replace(/%2F/gi, '/');
      }
      /**
       * An HTTP request/response body that represents serialized parameters,
       * per the MIME type `application/x-www-form-urlencoded`.
       *
       * This class is immutable; all mutation operations return a new instance.
       *
       * @publicApi
       */


      var HttpParams = /*#__PURE__*/function () {
        function HttpParams() {
          var _this506 = this;

          var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};

          _classCallCheck2(this, HttpParams);

          this.updates = null;
          this.cloneFrom = null;
          this.encoder = options.encoder || new HttpUrlEncodingCodec();

          if (!!options.fromString) {
            if (!!options.fromObject) {
              throw new Error("Cannot specify both fromString and fromObject.");
            }

            this.map = paramParser(options.fromString, this.encoder);
          } else if (!!options.fromObject) {
            this.map = new Map();
            Object.keys(options.fromObject).forEach(function (key) {
              var value = options.fromObject[key];

              _this506.map.set(key, Array.isArray(value) ? value : [value]);
            });
          } else {
            this.map = null;
          }
        }
        /**
         * Reports whether the body includes one or more values for a given parameter.
         * @param param The parameter name.
         * @returns True if the parameter has one or more values,
         * false if it has no value or is not present.
         */


        _createClass2(HttpParams, [{
          key: "has",
          value: function has(param) {
            this.init();
            return this.map.has(param);
          }
          /**
           * Retrieves the first value for a parameter.
           * @param param The parameter name.
           * @returns The first value of the given parameter,
           * or `null` if the parameter is not present.
           */

        }, {
          key: "get",
          value: function get(param) {
            this.init();
            var res = this.map.get(param);
            return !!res ? res[0] : null;
          }
          /**
           * Retrieves all values for a  parameter.
           * @param param The parameter name.
           * @returns All values in a string array,
           * or `null` if the parameter not present.
           */

        }, {
          key: "getAll",
          value: function getAll(param) {
            this.init();
            return this.map.get(param) || null;
          }
          /**
           * Retrieves all the parameters for this body.
           * @returns The parameter names in a string array.
           */

        }, {
          key: "keys",
          value: function keys() {
            this.init();
            return Array.from(this.map.keys());
          }
          /**
           * Appends a new value to existing values for a parameter.
           * @param param The parameter name.
           * @param value The new value to add.
           * @return A new body with the appended value.
           */

        }, {
          key: "append",
          value: function append(param, value) {
            return this.clone({
              param: param,
              value: value,
              op: 'a'
            });
          }
          /**
           * Replaces the value for a parameter.
           * @param param The parameter name.
           * @param value The new value.
           * @return A new body with the new value.
           */

        }, {
          key: "set",
          value: function set(param, value) {
            return this.clone({
              param: param,
              value: value,
              op: 's'
            });
          }
          /**
           * Removes a given value or all values from a parameter.
           * @param param The parameter name.
           * @param value The value to remove, if provided.
           * @return A new body with the given value removed, or with all values
           * removed if no value is specified.
           */

        }, {
          key: "delete",
          value: function _delete(param, value) {
            return this.clone({
              param: param,
              value: value,
              op: 'd'
            });
          }
          /**
           * Serializes the body to an encoded string, where key-value pairs (separated by `=`) are
           * separated by `&`s.
           */

        }, {
          key: "toString",
          value: function toString() {
            var _this507 = this;

            this.init();
            return this.keys().map(function (key) {
              var eKey = _this507.encoder.encodeKey(key); // `a: ['1']` produces `'a=1'`
              // `b: []` produces `''`
              // `c: ['1', '2']` produces `'c=1&c=2'`


              return _this507.map.get(key).map(function (value) {
                return eKey + '=' + _this507.encoder.encodeValue(value);
              }).join('&');
            }) // filter out empty values because `b: []` produces `''`
            // which results in `a=1&&c=1&c=2` instead of `a=1&c=1&c=2` if we don't
            .filter(function (param) {
              return param !== '';
            }).join('&');
          }
        }, {
          key: "clone",
          value: function clone(update) {
            var clone = new HttpParams({
              encoder: this.encoder
            });
            clone.cloneFrom = this.cloneFrom || this;
            clone.updates = (this.updates || []).concat([update]);
            return clone;
          }
        }, {
          key: "init",
          value: function init() {
            var _this508 = this;

            if (this.map === null) {
              this.map = new Map();
            }

            if (this.cloneFrom !== null) {
              this.cloneFrom.init();
              this.cloneFrom.keys().forEach(function (key) {
                return _this508.map.set(key, _this508.cloneFrom.map.get(key));
              });
              this.updates.forEach(function (update) {
                switch (update.op) {
                  case 'a':
                  case 's':
                    var base = (update.op === 'a' ? _this508.map.get(update.param) : undefined) || [];
                    base.push(update.value);

                    _this508.map.set(update.param, base);

                    break;

                  case 'd':
                    if (update.value !== undefined) {
                      var _base2 = _this508.map.get(update.param) || [];

                      var idx = _base2.indexOf(update.value);

                      if (idx !== -1) {
                        _base2.splice(idx, 1);
                      }

                      if (_base2.length > 0) {
                        _this508.map.set(update.param, _base2);
                      } else {
                        _this508.map["delete"](update.param);
                      }
                    } else {
                      _this508.map["delete"](update.param);

                      break;
                    }

                }
              });
              this.cloneFrom = this.updates = null;
            }
          }
        }]);

        return HttpParams;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Determine whether the given HTTP method may include a body.
       */


      function mightHaveBody(method) {
        switch (method) {
          case 'DELETE':
          case 'GET':
          case 'HEAD':
          case 'OPTIONS':
          case 'JSONP':
            return false;

          default:
            return true;
        }
      }
      /**
       * Safely assert whether the given value is an ArrayBuffer.
       *
       * In some execution environments ArrayBuffer is not defined.
       */


      function isArrayBuffer(value) {
        return typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer;
      }
      /**
       * Safely assert whether the given value is a Blob.
       *
       * In some execution environments Blob is not defined.
       */


      function isBlob(value) {
        return typeof Blob !== 'undefined' && value instanceof Blob;
      }
      /**
       * Safely assert whether the given value is a FormData instance.
       *
       * In some execution environments FormData is not defined.
       */


      function isFormData(value) {
        return typeof FormData !== 'undefined' && value instanceof FormData;
      }
      /**
       * An outgoing HTTP request with an optional typed body.
       *
       * `HttpRequest` represents an outgoing request, including URL, method,
       * headers, body, and other request configuration options. Instances should be
       * assumed to be immutable. To modify a `HttpRequest`, the `clone`
       * method should be used.
       *
       * @publicApi
       */


      var HttpRequest = /*#__PURE__*/function () {
        function HttpRequest(method, url, third, fourth) {
          _classCallCheck2(this, HttpRequest);

          this.url = url;
          /**
           * The request body, or `null` if one isn't set.
           *
           * Bodies are not enforced to be immutable, as they can include a reference to any
           * user-defined data type. However, interceptors should take care to preserve
           * idempotence by treating them as such.
           */

          this.body = null;
          /**
           * Whether this request should be made in a way that exposes progress events.
           *
           * Progress events are expensive (change detection runs on each event) and so
           * they should only be requested if the consumer intends to monitor them.
           */

          this.reportProgress = false;
          /**
           * Whether this request should be sent with outgoing credentials (cookies).
           */

          this.withCredentials = false;
          /**
           * The expected response type of the server.
           *
           * This is used to parse the response appropriately before returning it to
           * the requestee.
           */

          this.responseType = 'json';
          this.method = method.toUpperCase(); // Next, need to figure out which argument holds the HttpRequestInit
          // options, if any.

          var options; // Check whether a body argument is expected. The only valid way to omit
          // the body argument is to use a known no-body method like GET.

          if (mightHaveBody(this.method) || !!fourth) {
            // Body is the third argument, options are the fourth.
            this.body = third !== undefined ? third : null;
            options = fourth;
          } else {
            // No body required, options are the third argument. The body stays null.
            options = third;
          } // If options have been passed, interpret them.


          if (options) {
            // Normalize reportProgress and withCredentials.
            this.reportProgress = !!options.reportProgress;
            this.withCredentials = !!options.withCredentials; // Override default response type of 'json' if one is provided.

            if (!!options.responseType) {
              this.responseType = options.responseType;
            } // Override headers if they're provided.


            if (!!options.headers) {
              this.headers = options.headers;
            }

            if (!!options.params) {
              this.params = options.params;
            }
          } // If no headers have been passed in, construct a new HttpHeaders instance.


          if (!this.headers) {
            this.headers = new HttpHeaders();
          } // If no parameters have been passed in, construct a new HttpUrlEncodedParams instance.


          if (!this.params) {
            this.params = new HttpParams();
            this.urlWithParams = url;
          } else {
            // Encode the parameters to a string in preparation for inclusion in the URL.
            var params = this.params.toString();

            if (params.length === 0) {
              // No parameters, the visible URL is just the URL given at creation time.
              this.urlWithParams = url;
            } else {
              // Does the URL already have query parameters? Look for '?'.
              var qIdx = url.indexOf('?'); // There are 3 cases to handle:
              // 1) No existing parameters -> append '?' followed by params.
              // 2) '?' exists and is followed by existing query string ->
              //    append '&' followed by params.
              // 3) '?' exists at the end of the url -> append params directly.
              // This basically amounts to determining the character, if any, with
              // which to join the URL and parameters.

              var sep = qIdx === -1 ? '?' : qIdx < url.length - 1 ? '&' : '';
              this.urlWithParams = url + sep + params;
            }
          }
        }
        /**
         * Transform the free-form body into a serialized format suitable for
         * transmission to the server.
         */


        _createClass2(HttpRequest, [{
          key: "serializeBody",
          value: function serializeBody() {
            // If no body is present, no need to serialize it.
            if (this.body === null) {
              return null;
            } // Check whether the body is already in a serialized form. If so,
            // it can just be returned directly.


            if (isArrayBuffer(this.body) || isBlob(this.body) || isFormData(this.body) || typeof this.body === 'string') {
              return this.body;
            } // Check whether the body is an instance of HttpUrlEncodedParams.


            if (this.body instanceof HttpParams) {
              return this.body.toString();
            } // Check whether the body is an object or array, and serialize with JSON if so.


            if (typeof this.body === 'object' || typeof this.body === 'boolean' || Array.isArray(this.body)) {
              return JSON.stringify(this.body);
            } // Fall back on toString() for everything else.


            return this.body.toString();
          }
          /**
           * Examine the body and attempt to infer an appropriate MIME type
           * for it.
           *
           * If no such type can be inferred, this method will return `null`.
           */

        }, {
          key: "detectContentTypeHeader",
          value: function detectContentTypeHeader() {
            // An empty body has no content type.
            if (this.body === null) {
              return null;
            } // FormData bodies rely on the browser's content type assignment.


            if (isFormData(this.body)) {
              return null;
            } // Blobs usually have their own content type. If it doesn't, then
            // no type can be inferred.


            if (isBlob(this.body)) {
              return this.body.type || null;
            } // Array buffers have unknown contents and thus no type can be inferred.


            if (isArrayBuffer(this.body)) {
              return null;
            } // Technically, strings could be a form of JSON data, but it's safe enough
            // to assume they're plain strings.


            if (typeof this.body === 'string') {
              return 'text/plain';
            } // `HttpUrlEncodedParams` has its own content-type.


            if (this.body instanceof HttpParams) {
              return 'application/x-www-form-urlencoded;charset=UTF-8';
            } // Arrays, objects, and numbers will be encoded as JSON.


            if (typeof this.body === 'object' || typeof this.body === 'number' || Array.isArray(this.body)) {
              return 'application/json';
            } // No type could be inferred.


            return null;
          }
        }, {
          key: "clone",
          value: function clone() {
            var update = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
            // For method, url, and responseType, take the current value unless
            // it is overridden in the update hash.
            var method = update.method || this.method;
            var url = update.url || this.url;
            var responseType = update.responseType || this.responseType; // The body is somewhat special - a `null` value in update.body means
            // whatever current body is present is being overridden with an empty
            // body, whereas an `undefined` value in update.body implies no
            // override.

            var body = update.body !== undefined ? update.body : this.body; // Carefully handle the boolean options to differentiate between
            // `false` and `undefined` in the update args.

            var withCredentials = update.withCredentials !== undefined ? update.withCredentials : this.withCredentials;
            var reportProgress = update.reportProgress !== undefined ? update.reportProgress : this.reportProgress; // Headers and params may be appended to if `setHeaders` or
            // `setParams` are used.

            var headers = update.headers || this.headers;
            var params = update.params || this.params; // Check whether the caller has asked to add headers.

            if (update.setHeaders !== undefined) {
              // Set every requested header.
              headers = Object.keys(update.setHeaders).reduce(function (headers, name) {
                return headers.set(name, update.setHeaders[name]);
              }, headers);
            } // Check whether the caller has asked to set params.


            if (update.setParams) {
              // Set every requested param.
              params = Object.keys(update.setParams).reduce(function (params, param) {
                return params.set(param, update.setParams[param]);
              }, params);
            } // Finally, construct the new HttpRequest using the pieces from above.


            return new HttpRequest(method, url, body, {
              params: params,
              headers: headers,
              reportProgress: reportProgress,
              responseType: responseType,
              withCredentials: withCredentials
            });
          }
        }]);

        return HttpRequest;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Type enumeration for the different kinds of `HttpEvent`.
       *
       * @publicApi
       */


      var HttpEventType;

      (function (HttpEventType) {
        /**
         * The request was sent out over the wire.
         */
        HttpEventType[HttpEventType["Sent"] = 0] = "Sent";
        /**
         * An upload progress event was received.
         */

        HttpEventType[HttpEventType["UploadProgress"] = 1] = "UploadProgress";
        /**
         * The response status code and headers were received.
         */

        HttpEventType[HttpEventType["ResponseHeader"] = 2] = "ResponseHeader";
        /**
         * A download progress event was received.
         */

        HttpEventType[HttpEventType["DownloadProgress"] = 3] = "DownloadProgress";
        /**
         * The full response including the body was received.
         */

        HttpEventType[HttpEventType["Response"] = 4] = "Response";
        /**
         * A custom event from an interceptor or a backend.
         */

        HttpEventType[HttpEventType["User"] = 5] = "User";
      })(HttpEventType || (HttpEventType = {}));
      /**
       * Base class for both `HttpResponse` and `HttpHeaderResponse`.
       *
       * @publicApi
       */


      var HttpResponseBase =
      /**
       * Super-constructor for all responses.
       *
       * The single parameter accepted is an initialization hash. Any properties
       * of the response passed there will override the default values.
       */
      function HttpResponseBase(init) {
        var defaultStatus = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 200;
        var defaultStatusText = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'OK';

        _classCallCheck2(this, HttpResponseBase);

        // If the hash has values passed, use them to initialize the response.
        // Otherwise use the default values.
        this.headers = init.headers || new HttpHeaders();
        this.status = init.status !== undefined ? init.status : defaultStatus;
        this.statusText = init.statusText || defaultStatusText;
        this.url = init.url || null; // Cache the ok value to avoid defining a getter.

        this.ok = this.status >= 200 && this.status < 300;
      };
      /**
       * A partial HTTP response which only includes the status and header data,
       * but no response body.
       *
       * `HttpHeaderResponse` is a `HttpEvent` available on the response
       * event stream, only when progress events are requested.
       *
       * @publicApi
       */


      var HttpHeaderResponse = /*#__PURE__*/function (_HttpResponseBase) {
        _inherits2(HttpHeaderResponse, _HttpResponseBase);

        var _super209 = _createSuper2(HttpHeaderResponse);

        /**
         * Create a new `HttpHeaderResponse` with the given parameters.
         */
        function HttpHeaderResponse() {
          var _this509;

          var init = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};

          _classCallCheck2(this, HttpHeaderResponse);

          _this509 = _super209.call(this, init);
          _this509.type = HttpEventType.ResponseHeader;
          return _this509;
        }
        /**
         * Copy this `HttpHeaderResponse`, overriding its contents with the
         * given parameter hash.
         */


        _createClass2(HttpHeaderResponse, [{
          key: "clone",
          value: function clone() {
            var update = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
            // Perform a straightforward initialization of the new HttpHeaderResponse,
            // overriding the current parameters with new ones if given.
            return new HttpHeaderResponse({
              headers: update.headers || this.headers,
              status: update.status !== undefined ? update.status : this.status,
              statusText: update.statusText || this.statusText,
              url: update.url || this.url || undefined
            });
          }
        }]);

        return HttpHeaderResponse;
      }(HttpResponseBase);
      /**
       * A full HTTP response, including a typed response body (which may be `null`
       * if one was not returned).
       *
       * `HttpResponse` is a `HttpEvent` available on the response event
       * stream.
       *
       * @publicApi
       */


      var HttpResponse = /*#__PURE__*/function (_HttpResponseBase2) {
        _inherits2(HttpResponse, _HttpResponseBase2);

        var _super210 = _createSuper2(HttpResponse);

        /**
         * Construct a new `HttpResponse`.
         */
        function HttpResponse() {
          var _this510;

          var init = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};

          _classCallCheck2(this, HttpResponse);

          _this510 = _super210.call(this, init);
          _this510.type = HttpEventType.Response;
          _this510.body = init.body !== undefined ? init.body : null;
          return _this510;
        }

        _createClass2(HttpResponse, [{
          key: "clone",
          value: function clone() {
            var update = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
            return new HttpResponse({
              body: update.body !== undefined ? update.body : this.body,
              headers: update.headers || this.headers,
              status: update.status !== undefined ? update.status : this.status,
              statusText: update.statusText || this.statusText,
              url: update.url || this.url || undefined
            });
          }
        }]);

        return HttpResponse;
      }(HttpResponseBase);
      /**
       * A response that represents an error or failure, either from a
       * non-successful HTTP status, an error while executing the request,
       * or some other failure which occurred during the parsing of the response.
       *
       * Any error returned on the `Observable` response stream will be
       * wrapped in an `HttpErrorResponse` to provide additional context about
       * the state of the HTTP layer when the error occurred. The error property
       * will contain either a wrapped Error object or the error response returned
       * from the server.
       *
       * @publicApi
       */


      var HttpErrorResponse = /*#__PURE__*/function (_HttpResponseBase3) {
        _inherits2(HttpErrorResponse, _HttpResponseBase3);

        var _super211 = _createSuper2(HttpErrorResponse);

        function HttpErrorResponse(init) {
          var _this511;

          _classCallCheck2(this, HttpErrorResponse);

          // Initialize with a default status of 0 / Unknown Error.
          _this511 = _super211.call(this, init, 0, 'Unknown Error');
          _this511.name = 'HttpErrorResponse';
          /**
           * Errors are never okay, even when the status code is in the 2xx success range.
           */

          _this511.ok = false; // If the response was successful, then this was a parse error. Otherwise, it was
          // a protocol-level failure of some sort. Either the request failed in transit
          // or the server returned an unsuccessful status code.

          if (_this511.status >= 200 && _this511.status < 300) {
            _this511.message = "Http failure during parsing for ".concat(init.url || '(unknown url)');
          } else {
            _this511.message = "Http failure response for ".concat(init.url || '(unknown url)', ": ").concat(init.status, " ").concat(init.statusText);
          }

          _this511.error = init.error || null;
          return _this511;
        }

        return HttpErrorResponse;
      }(HttpResponseBase);
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Constructs an instance of `HttpRequestOptions<T>` from a source `HttpMethodOptions` and
       * the given `body`. This function clones the object and adds the body.
       *
       * Note that the `responseType` *options* value is a String that identifies the
       * single data type of the response.
       * A single overload version of the method handles each response type.
       * The value of `responseType` cannot be a union, as the combined signature could imply.
       *
       */


      function addBody(options, body) {
        return {
          body: body,
          headers: options.headers,
          observe: options.observe,
          params: options.params,
          reportProgress: options.reportProgress,
          responseType: options.responseType,
          withCredentials: options.withCredentials
        };
      }
      /**
       * Performs HTTP requests.
       * This service is available as an injectable class, with methods to perform HTTP requests.
       * Each request method has multiple signatures, and the return type varies based on
       * the signature that is called (mainly the values of `observe` and `responseType`).
       *
       * Note that the `responseType` *options* value is a String that identifies the
       * single data type of the response.
       * A single overload version of the method handles each response type.
       * The value of `responseType` cannot be a union, as the combined signature could imply.
      
       *
       * @usageNotes
       * Sample HTTP requests for the [Tour of Heroes](/tutorial/toh-pt0) application.
       *
       * ### HTTP Request Example
       *
       * ```
       *  // GET heroes whose name contains search term
       * searchHeroes(term: string): observable<Hero[]>{
       *
       *  const params = new HttpParams({fromString: 'name=term'});
       *    return this.httpClient.request('GET', this.heroesUrl, {responseType:'json', params});
       * }
       * ```
       * ### JSONP Example
       * ```
       * requestJsonp(url, callback = 'callback') {
       *  return this.httpClient.jsonp(this.heroesURL, callback);
       * }
       * ```
       *
       * ### PATCH Example
       * ```
       * // PATCH one of the heroes' name
       * patchHero (id: number, heroName: string): Observable<{}> {
       * const url = `${this.heroesUrl}/${id}`;   // PATCH api/heroes/42
       *  return this.httpClient.patch(url, {name: heroName}, httpOptions)
       *    .pipe(catchError(this.handleError('patchHero')));
       * }
       * ```
       *
       * @see [HTTP Guide](guide/http)
       *
       * @publicApi
       */


      var HttpClient = /*#__PURE__*/function () {
        function HttpClient(handler) {
          _classCallCheck2(this, HttpClient);

          this.handler = handler;
        }
        /**
         * Constructs an observable for a generic HTTP request that, when subscribed,
         * fires the request through the chain of registered interceptors and on to the
         * server.
         *
         * You can pass an `HttpRequest` directly as the only parameter. In this case,
         * the call returns an observable of the raw `HttpEvent` stream.
         *
         * Alternatively you can pass an HTTP method as the first parameter,
         * a URL string as the second, and an options hash containing the request body as the third.
         * See `addBody()`. In this case, the specified `responseType` and `observe` options determine the
         * type of returned observable.
         *   * The `responseType` value determines how a successful response body is parsed.
         *   * If `responseType` is the default `json`, you can pass a type interface for the resulting
         * object as a type parameter to the call.
         *
         * The `observe` value determines the return type, according to what you are interested in
         * observing.
         *   * An `observe` value of events returns an observable of the raw `HttpEvent` stream, including
         * progress events by default.
         *   * An `observe` value of response returns an observable of `HttpResponse<T>`,
         * where the `T` parameter depends on the `responseType` and any optionally provided type
         * parameter.
         *   * An `observe` value of body returns an observable of `<T>` with the same `T` body type.
         *
         */


        _createClass2(HttpClient, [{
          key: "request",
          value: function request(first, url) {
            var _this512 = this;

            var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
            var req; // First, check whether the primary argument is an instance of `HttpRequest`.

            if (first instanceof HttpRequest) {
              // It is. The other arguments must be undefined (per the signatures) and can be
              // ignored.
              req = first;
            } else {
              // It's a string, so it represents a URL. Construct a request based on it,
              // and incorporate the remaining arguments (assuming `GET` unless a method is
              // provided.
              // Figure out the headers.
              var headers = undefined;

              if (options.headers instanceof HttpHeaders) {
                headers = options.headers;
              } else {
                headers = new HttpHeaders(options.headers);
              } // Sort out parameters.


              var params = undefined;

              if (!!options.params) {
                if (options.params instanceof HttpParams) {
                  params = options.params;
                } else {
                  params = new HttpParams({
                    fromObject: options.params
                  });
                }
              } // Construct the request.


              req = new HttpRequest(first, url, options.body !== undefined ? options.body : null, {
                headers: headers,
                params: params,
                reportProgress: options.reportProgress,
                // By default, JSON is assumed to be returned for all calls.
                responseType: options.responseType || 'json',
                withCredentials: options.withCredentials
              });
            } // Start with an Observable.of() the initial request, and run the handler (which
            // includes all interceptors) inside a concatMap(). This way, the handler runs
            // inside an Observable chain, which causes interceptors to be re-run on every
            // subscription (this also makes retries re-run the handler, including interceptors).


            var events$ = Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["of"])(req).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["concatMap"])(function (req) {
              return _this512.handler.handle(req);
            })); // If coming via the API signature which accepts a previously constructed HttpRequest,
            // the only option is to get the event stream. Otherwise, return the event stream if
            // that is what was requested.

            if (first instanceof HttpRequest || options.observe === 'events') {
              return events$;
            } // The requested stream contains either the full response or the body. In either
            // case, the first step is to filter the event stream to extract a stream of
            // responses(s).


            var res$ = events$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["filter"])(function (event) {
              return event instanceof HttpResponse;
            })); // Decide which stream to return.

            switch (options.observe || 'body') {
              case 'body':
                // The requested stream is the body. Map the response stream to the response
                // body. This could be done more simply, but a misbehaving interceptor might
                // transform the response body into a different format and ignore the requested
                // responseType. Guard against this by validating that the response is of the
                // requested type.
                switch (req.responseType) {
                  case 'arraybuffer':
                    return res$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])(function (res) {
                      // Validate that the body is an ArrayBuffer.
                      if (res.body !== null && !(res.body instanceof ArrayBuffer)) {
                        throw new Error('Response is not an ArrayBuffer.');
                      }

                      return res.body;
                    }));

                  case 'blob':
                    return res$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])(function (res) {
                      // Validate that the body is a Blob.
                      if (res.body !== null && !(res.body instanceof Blob)) {
                        throw new Error('Response is not a Blob.');
                      }

                      return res.body;
                    }));

                  case 'text':
                    return res$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])(function (res) {
                      // Validate that the body is a string.
                      if (res.body !== null && typeof res.body !== 'string') {
                        throw new Error('Response is not a string.');
                      }

                      return res.body;
                    }));

                  case 'json':
                  default:
                    // No validation needed for JSON responses, as they can be of any type.
                    return res$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])(function (res) {
                      return res.body;
                    }));
                }

              case 'response':
                // The response stream was requested directly, so return it.
                return res$;

              default:
                // Guard against new future observe types being added.
                throw new Error("Unreachable: unhandled observe type ".concat(options.observe, "}"));
            }
          }
          /**
           * Constructs an observable that, when subscribed, causes the configured
           * `DELETE` request to execute on the server. See the individual overloads for
           * details on the return type.
           *
           * @param url     The endpoint URL.
           * @param options The HTTP options to send with the request.
           *
           */

        }, {
          key: "delete",
          value: function _delete(url) {
            var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
            return this.request('DELETE', url, options);
          }
          /**
           * Constructs an observable that, when subscribed, causes the configured
           * `GET` request to execute on the server. See the individual overloads for
           * details on the return type.
           */

        }, {
          key: "get",
          value: function get(url) {
            var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
            return this.request('GET', url, options);
          }
          /**
           * Constructs an observable that, when subscribed, causes the configured
           * `HEAD` request to execute on the server. The `HEAD` method returns
           * meta information about the resource without transferring the
           * resource itself. See the individual overloads for
           * details on the return type.
           */

        }, {
          key: "head",
          value: function head(url) {
            var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
            return this.request('HEAD', url, options);
          }
          /**
           * Constructs an `Observable` that, when subscribed, causes a request with the special method
           * `JSONP` to be dispatched via the interceptor pipeline.
           * The [JSONP pattern](https://en.wikipedia.org/wiki/JSONP) works around limitations of certain
           * API endpoints that don't support newer,
           * and preferable [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) protocol.
           * JSONP treats the endpoint API as a JavaScript file and tricks the browser to process the
           * requests even if the API endpoint is not located on the same domain (origin) as the client-side
           * application making the request.
           * The endpoint API must support JSONP callback for JSONP requests to work.
           * The resource API returns the JSON response wrapped in a callback function.
           * You can pass the callback function name as one of the query parameters.
           * Note that JSONP requests can only be used with `GET` requests.
           *
           * @param url The resource URL.
           * @param callbackParam The callback function name.
           *
           */

        }, {
          key: "jsonp",
          value: function jsonp(url, callbackParam) {
            return this.request('JSONP', url, {
              params: new HttpParams().append(callbackParam, 'JSONP_CALLBACK'),
              observe: 'body',
              responseType: 'json'
            });
          }
          /**
           * Constructs an `Observable` that, when subscribed, causes the configured
           * `OPTIONS` request to execute on the server. This method allows the client
           * to determine the supported HTTP methods and other capabilites of an endpoint,
           * without implying a resource action. See the individual overloads for
           * details on the return type.
           */

        }, {
          key: "options",
          value: function options(url) {
            var _options2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};

            return this.request('OPTIONS', url, _options2);
          }
          /**
           * Constructs an observable that, when subscribed, causes the configured
           * `PATCH` request to execute on the server. See the individual overloads for
           * details on the return type.
           */

        }, {
          key: "patch",
          value: function patch(url, body) {
            var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
            return this.request('PATCH', url, addBody(options, body));
          }
          /**
           * Constructs an observable that, when subscribed, causes the configured
           * `POST` request to execute on the server. The server responds with the location of
           * the replaced resource. See the individual overloads for
           * details on the return type.
           */

        }, {
          key: "post",
          value: function post(url, body) {
            var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
            return this.request('POST', url, addBody(options, body));
          }
          /**
           * Constructs an observable that, when subscribed, causes the configured
           * `PUT` request to execute on the server. The `PUT` method replaces an existing resource
           * with a new set of values.
           * See the individual overloads for details on the return type.
           */

        }, {
          key: "put",
          value: function put(url, body) {
            var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
            return this.request('PUT', url, addBody(options, body));
          }
        }]);

        return HttpClient;
      }();

      HttpClient.ɵfac = function HttpClient_Factory(t) {
        return new (t || HttpClient)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](HttpHandler));
      };

      HttpClient.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
        token: HttpClient,
        factory: HttpClient.ɵfac
      });

      HttpClient.ctorParameters = function () {
        return [{
          type: HttpHandler
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](HttpClient, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
        }], function () {
          return [{
            type: HttpHandler
          }];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * `HttpHandler` which applies an `HttpInterceptor` to an `HttpRequest`.
       *
       *
       */


      var HttpInterceptorHandler = /*#__PURE__*/function () {
        function HttpInterceptorHandler(next, interceptor) {
          _classCallCheck2(this, HttpInterceptorHandler);

          this.next = next;
          this.interceptor = interceptor;
        }

        _createClass2(HttpInterceptorHandler, [{
          key: "handle",
          value: function handle(req) {
            return this.interceptor.intercept(req, this.next);
          }
        }]);

        return HttpInterceptorHandler;
      }();
      /**
       * A multi-provider token that represents the array of registered
       * `HttpInterceptor` objects.
       *
       * @publicApi
       */


      var HTTP_INTERCEPTORS = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('HTTP_INTERCEPTORS');

      var NoopInterceptor = /*#__PURE__*/function () {
        function NoopInterceptor() {
          _classCallCheck2(this, NoopInterceptor);
        }

        _createClass2(NoopInterceptor, [{
          key: "intercept",
          value: function intercept(req, next) {
            return next.handle(req);
          }
        }]);

        return NoopInterceptor;
      }();

      NoopInterceptor.ɵfac = function NoopInterceptor_Factory(t) {
        return new (t || NoopInterceptor)();
      };

      NoopInterceptor.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
        token: NoopInterceptor,
        factory: NoopInterceptor.ɵfac
      });
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NoopInterceptor, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */
      // Every request made through JSONP needs a callback name that's unique across the
      // whole page. Each request is assigned an id and the callback name is constructed
      // from that. The next id to be assigned is tracked in a global variable here that
      // is shared among all applications on the page.


      var nextRequestId = 0; // Error text given when a JSONP script is injected, but doesn't invoke the callback
      // passed in its URL.

      var JSONP_ERR_NO_CALLBACK = 'JSONP injected script did not invoke callback.'; // Error text given when a request is passed to the JsonpClientBackend that doesn't
      // have a request method JSONP.

      var JSONP_ERR_WRONG_METHOD = 'JSONP requests must use JSONP request method.';
      var JSONP_ERR_WRONG_RESPONSE_TYPE = 'JSONP requests must use Json response type.';
      /**
       * DI token/abstract type representing a map of JSONP callbacks.
       *
       * In the browser, this should always be the `window` object.
       *
       *
       */

      var JsonpCallbackContext = function JsonpCallbackContext() {
        _classCallCheck2(this, JsonpCallbackContext);
      };
      /**
       * Processes an `HttpRequest` with the JSONP method,
       * by performing JSONP style requests.
       * @see `HttpHandler`
       * @see `HttpXhrBackend`
       *
       * @publicApi
       */


      var JsonpClientBackend = /*#__PURE__*/function () {
        function JsonpClientBackend(callbackMap, document) {
          _classCallCheck2(this, JsonpClientBackend);

          this.callbackMap = callbackMap;
          this.document = document;
        }
        /**
         * Get the name of the next callback method, by incrementing the global `nextRequestId`.
         */


        _createClass2(JsonpClientBackend, [{
          key: "nextCallback",
          value: function nextCallback() {
            return "ng_jsonp_callback_".concat(nextRequestId++);
          }
          /**
           * Processes a JSONP request and returns an event stream of the results.
           * @param req The request object.
           * @returns An observable of the response events.
           *
           */

        }, {
          key: "handle",
          value: function handle(req) {
            var _this513 = this;

            // Firstly, check both the method and response type. If either doesn't match
            // then the request was improperly routed here and cannot be handled.
            if (req.method !== 'JSONP') {
              throw new Error(JSONP_ERR_WRONG_METHOD);
            } else if (req.responseType !== 'json') {
              throw new Error(JSONP_ERR_WRONG_RESPONSE_TYPE);
            } // Everything else happens inside the Observable boundary.


            return new rxjs__WEBPACK_IMPORTED_MODULE_1__["Observable"](function (observer) {
              // The first step to make a request is to generate the callback name, and replace the
              // callback placeholder in the URL with the name. Care has to be taken here to ensure
              // a trailing &, if matched, gets inserted back into the URL in the correct place.
              var callback = _this513.nextCallback();

              var url = req.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/, "=".concat(callback, "$1")); // Construct the <script> tag and point it at the URL.

              var node = _this513.document.createElement('script');

              node.src = url; // A JSONP request requires waiting for multiple callbacks. These variables
              // are closed over and track state across those callbacks.
              // The response object, if one has been received, or null otherwise.

              var body = null; // Whether the response callback has been called.

              var finished = false; // Whether the request has been cancelled (and thus any other callbacks)
              // should be ignored.

              var cancelled = false; // Set the response callback in this.callbackMap (which will be the window
              // object in the browser. The script being loaded via the <script> tag will
              // eventually call this callback.

              _this513.callbackMap[callback] = function (data) {
                // Data has been received from the JSONP script. Firstly, delete this callback.
                delete _this513.callbackMap[callback]; // Next, make sure the request wasn't cancelled in the meantime.

                if (cancelled) {
                  return;
                } // Set state to indicate data was received.


                body = data;
                finished = true;
              }; // cleanup() is a utility closure that removes the <script> from the page and
              // the response callback from the window. This logic is used in both the
              // success, error, and cancellation paths, so it's extracted out for convenience.


              var cleanup = function cleanup() {
                // Remove the <script> tag if it's still on the page.
                if (node.parentNode) {
                  node.parentNode.removeChild(node);
                } // Remove the response callback from the callbackMap (window object in the
                // browser).


                delete _this513.callbackMap[callback];
              }; // onLoad() is the success callback which runs after the response callback
              // if the JSONP script loads successfully. The event itself is unimportant.
              // If something went wrong, onLoad() may run without the response callback
              // having been invoked.


              var onLoad = function onLoad(event) {
                // Do nothing if the request has been cancelled.
                if (cancelled) {
                  return;
                } // Cleanup the page.


                cleanup(); // Check whether the response callback has run.

                if (!finished) {
                  // It hasn't, something went wrong with the request. Return an error via
                  // the Observable error path. All JSONP errors have status 0.
                  observer.error(new HttpErrorResponse({
                    url: url,
                    status: 0,
                    statusText: 'JSONP Error',
                    error: new Error(JSONP_ERR_NO_CALLBACK)
                  }));
                  return;
                } // Success. body either contains the response body or null if none was
                // returned.


                observer.next(new HttpResponse({
                  body: body,
                  status: 200,
                  statusText: 'OK',
                  url: url
                })); // Complete the stream, the response is over.

                observer.complete();
              }; // onError() is the error callback, which runs if the script returned generates
              // a Javascript error. It emits the error via the Observable error channel as
              // a HttpErrorResponse.


              var onError = function onError(error) {
                // If the request was already cancelled, no need to emit anything.
                if (cancelled) {
                  return;
                }

                cleanup(); // Wrap the error in a HttpErrorResponse.

                observer.error(new HttpErrorResponse({
                  error: error,
                  status: 0,
                  statusText: 'JSONP Error',
                  url: url
                }));
              }; // Subscribe to both the success (load) and error events on the <script> tag,
              // and add it to the page.


              node.addEventListener('load', onLoad);
              node.addEventListener('error', onError);

              _this513.document.body.appendChild(node); // The request has now been successfully sent.


              observer.next({
                type: HttpEventType.Sent
              }); // Cancellation handler.

              return function () {
                // Track the cancellation so event listeners won't do anything even if already scheduled.
                cancelled = true; // Remove the event listeners so they won't run if the events later fire.

                node.removeEventListener('load', onLoad);
                node.removeEventListener('error', onError); // And finally, clean up the page.

                cleanup();
              };
            });
          }
        }]);

        return JsonpClientBackend;
      }();

      JsonpClientBackend.ɵfac = function JsonpClientBackend_Factory(t) {
        return new (t || JsonpClientBackend)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](JsonpCallbackContext), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_3__["DOCUMENT"]));
      };

      JsonpClientBackend.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
        token: JsonpClientBackend,
        factory: JsonpClientBackend.ɵfac
      });

      JsonpClientBackend.ctorParameters = function () {
        return [{
          type: JsonpCallbackContext
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [_angular_common__WEBPACK_IMPORTED_MODULE_3__["DOCUMENT"]]
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](JsonpClientBackend, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
        }], function () {
          return [{
            type: JsonpCallbackContext
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [_angular_common__WEBPACK_IMPORTED_MODULE_3__["DOCUMENT"]]
            }]
          }];
        }, null);
      })();
      /**
       * Identifies requests with the method JSONP and
       * shifts them to the `JsonpClientBackend`.
       *
       * @see `HttpInterceptor`
       *
       * @publicApi
       */


      var JsonpInterceptor = /*#__PURE__*/function () {
        function JsonpInterceptor(jsonp) {
          _classCallCheck2(this, JsonpInterceptor);

          this.jsonp = jsonp;
        }
        /**
         * Identifies and handles a given JSONP request.
         * @param req The outgoing request object to handle.
         * @param next The next interceptor in the chain, or the backend
         * if no interceptors remain in the chain.
         * @returns An observable of the event stream.
         */


        _createClass2(JsonpInterceptor, [{
          key: "intercept",
          value: function intercept(req, next) {
            if (req.method === 'JSONP') {
              return this.jsonp.handle(req);
            } // Fall through for normal HTTP requests.


            return next.handle(req);
          }
        }]);

        return JsonpInterceptor;
      }();

      JsonpInterceptor.ɵfac = function JsonpInterceptor_Factory(t) {
        return new (t || JsonpInterceptor)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](JsonpClientBackend));
      };

      JsonpInterceptor.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
        token: JsonpInterceptor,
        factory: JsonpInterceptor.ɵfac
      });

      JsonpInterceptor.ctorParameters = function () {
        return [{
          type: JsonpClientBackend
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](JsonpInterceptor, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
        }], function () {
          return [{
            type: JsonpClientBackend
          }];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var XSSI_PREFIX = /^\)\]\}',?\n/;
      /**
       * Determine an appropriate URL for the response, by checking either
       * XMLHttpRequest.responseURL or the X-Request-URL header.
       */

      function getResponseUrl(xhr) {
        if ('responseURL' in xhr && xhr.responseURL) {
          return xhr.responseURL;
        }

        if (/^X-Request-URL:/m.test(xhr.getAllResponseHeaders())) {
          return xhr.getResponseHeader('X-Request-URL');
        }

        return null;
      }
      /**
       * A wrapper around the `XMLHttpRequest` constructor.
       *
       * @publicApi
       */


      var XhrFactory = function XhrFactory() {
        _classCallCheck2(this, XhrFactory);
      };
      /**
       * A factory for `HttpXhrBackend` that uses the `XMLHttpRequest` browser API.
       *
       */


      var BrowserXhr = /*#__PURE__*/function () {
        function BrowserXhr() {
          _classCallCheck2(this, BrowserXhr);
        }

        _createClass2(BrowserXhr, [{
          key: "build",
          value: function build() {
            return new XMLHttpRequest();
          }
        }]);

        return BrowserXhr;
      }();

      BrowserXhr.ɵfac = function BrowserXhr_Factory(t) {
        return new (t || BrowserXhr)();
      };

      BrowserXhr.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
        token: BrowserXhr,
        factory: BrowserXhr.ɵfac
      });

      BrowserXhr.ctorParameters = function () {
        return [];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](BrowserXhr, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
        }], function () {
          return [];
        }, null);
      })();
      /**
       * Uses `XMLHttpRequest` to send requests to a backend server.
       * @see `HttpHandler`
       * @see `JsonpClientBackend`
       *
       * @publicApi
       */


      var HttpXhrBackend = /*#__PURE__*/function () {
        function HttpXhrBackend(xhrFactory) {
          _classCallCheck2(this, HttpXhrBackend);

          this.xhrFactory = xhrFactory;
        }
        /**
         * Processes a request and returns a stream of response events.
         * @param req The request object.
         * @returns An observable of the response events.
         */


        _createClass2(HttpXhrBackend, [{
          key: "handle",
          value: function handle(req) {
            var _this514 = this;

            // Quick check to give a better error message when a user attempts to use
            // HttpClient.jsonp() without installing the HttpClientJsonpModule
            if (req.method === 'JSONP') {
              throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");
            } // Everything happens on Observable subscription.


            return new rxjs__WEBPACK_IMPORTED_MODULE_1__["Observable"](function (observer) {
              // Start by setting up the XHR object with request method, URL, and withCredentials flag.
              var xhr = _this514.xhrFactory.build();

              xhr.open(req.method, req.urlWithParams);

              if (!!req.withCredentials) {
                xhr.withCredentials = true;
              } // Add all the requested headers.


              req.headers.forEach(function (name, values) {
                return xhr.setRequestHeader(name, values.join(','));
              }); // Add an Accept header if one isn't present already.

              if (!req.headers.has('Accept')) {
                xhr.setRequestHeader('Accept', 'application/json, text/plain, */*');
              } // Auto-detect the Content-Type header if one isn't present already.


              if (!req.headers.has('Content-Type')) {
                var detectedType = req.detectContentTypeHeader(); // Sometimes Content-Type detection fails.

                if (detectedType !== null) {
                  xhr.setRequestHeader('Content-Type', detectedType);
                }
              } // Set the responseType if one was requested.


              if (req.responseType) {
                var responseType = req.responseType.toLowerCase(); // JSON responses need to be processed as text. This is because if the server
                // returns an XSSI-prefixed JSON response, the browser will fail to parse it,
                // xhr.response will be null, and xhr.responseText cannot be accessed to
                // retrieve the prefixed JSON data in order to strip the prefix. Thus, all JSON
                // is parsed by first requesting text and then applying JSON.parse.

                xhr.responseType = responseType !== 'json' ? responseType : 'text';
              } // Serialize the request body if one is present. If not, this will be set to null.


              var reqBody = req.serializeBody(); // If progress events are enabled, response headers will be delivered
              // in two events - the HttpHeaderResponse event and the full HttpResponse
              // event. However, since response headers don't change in between these
              // two events, it doesn't make sense to parse them twice. So headerResponse
              // caches the data extracted from the response whenever it's first parsed,
              // to ensure parsing isn't duplicated.

              var headerResponse = null; // partialFromXhr extracts the HttpHeaderResponse from the current XMLHttpRequest
              // state, and memoizes it into headerResponse.

              var partialFromXhr = function partialFromXhr() {
                if (headerResponse !== null) {
                  return headerResponse;
                } // Read status and normalize an IE9 bug (http://bugs.jquery.com/ticket/1450).


                var status = xhr.status === 1223 ? 204 : xhr.status;
                var statusText = xhr.statusText || 'OK'; // Parse headers from XMLHttpRequest - this step is lazy.

                var headers = new HttpHeaders(xhr.getAllResponseHeaders()); // Read the response URL from the XMLHttpResponse instance and fall back on the
                // request URL.

                var url = getResponseUrl(xhr) || req.url; // Construct the HttpHeaderResponse and memoize it.

                headerResponse = new HttpHeaderResponse({
                  headers: headers,
                  status: status,
                  statusText: statusText,
                  url: url
                });
                return headerResponse;
              }; // Next, a few closures are defined for the various events which XMLHttpRequest can
              // emit. This allows them to be unregistered as event listeners later.
              // First up is the load event, which represents a response being fully available.


              var onLoad = function onLoad() {
                // Read response state from the memoized partial data.
                var _partialFromXhr = partialFromXhr(),
                    headers = _partialFromXhr.headers,
                    status = _partialFromXhr.status,
                    statusText = _partialFromXhr.statusText,
                    url = _partialFromXhr.url; // The body will be read out if present.


                var body = null;

                if (status !== 204) {
                  // Use XMLHttpRequest.response if set, responseText otherwise.
                  body = typeof xhr.response === 'undefined' ? xhr.responseText : xhr.response;
                } // Normalize another potential bug (this one comes from CORS).


                if (status === 0) {
                  status = !!body ? 200 : 0;
                } // ok determines whether the response will be transmitted on the event or
                // error channel. Unsuccessful status codes (not 2xx) will always be errors,
                // but a successful status code can still result in an error if the user
                // asked for JSON data and the body cannot be parsed as such.


                var ok = status >= 200 && status < 300; // Check whether the body needs to be parsed as JSON (in many cases the browser
                // will have done that already).

                if (req.responseType === 'json' && typeof body === 'string') {
                  // Save the original body, before attempting XSSI prefix stripping.
                  var originalBody = body;
                  body = body.replace(XSSI_PREFIX, '');

                  try {
                    // Attempt the parse. If it fails, a parse error should be delivered to the user.
                    body = body !== '' ? JSON.parse(body) : null;
                  } catch (error) {
                    // Since the JSON.parse failed, it's reasonable to assume this might not have been a
                    // JSON response. Restore the original body (including any XSSI prefix) to deliver
                    // a better error response.
                    body = originalBody; // If this was an error request to begin with, leave it as a string, it probably
                    // just isn't JSON. Otherwise, deliver the parsing error to the user.

                    if (ok) {
                      // Even though the response status was 2xx, this is still an error.
                      ok = false; // The parse error contains the text of the body that failed to parse.

                      body = {
                        error: error,
                        text: body
                      };
                    }
                  }
                }

                if (ok) {
                  // A successful response is delivered on the event stream.
                  observer.next(new HttpResponse({
                    body: body,
                    headers: headers,
                    status: status,
                    statusText: statusText,
                    url: url || undefined
                  })); // The full body has been received and delivered, no further events
                  // are possible. This request is complete.

                  observer.complete();
                } else {
                  // An unsuccessful request is delivered on the error channel.
                  observer.error(new HttpErrorResponse({
                    // The error in this case is the response body (error from the server).
                    error: body,
                    headers: headers,
                    status: status,
                    statusText: statusText,
                    url: url || undefined
                  }));
                }
              }; // The onError callback is called when something goes wrong at the network level.
              // Connection timeout, DNS error, offline, etc. These are actual errors, and are
              // transmitted on the error channel.


              var onError = function onError(error) {
                var _partialFromXhr2 = partialFromXhr(),
                    url = _partialFromXhr2.url;

                var res = new HttpErrorResponse({
                  error: error,
                  status: xhr.status || 0,
                  statusText: xhr.statusText || 'Unknown Error',
                  url: url || undefined
                });
                observer.error(res);
              }; // The sentHeaders flag tracks whether the HttpResponseHeaders event
              // has been sent on the stream. This is necessary to track if progress
              // is enabled since the event will be sent on only the first download
              // progerss event.


              var sentHeaders = false; // The download progress event handler, which is only registered if
              // progress events are enabled.

              var onDownProgress = function onDownProgress(event) {
                // Send the HttpResponseHeaders event if it hasn't been sent already.
                if (!sentHeaders) {
                  observer.next(partialFromXhr());
                  sentHeaders = true;
                } // Start building the download progress event to deliver on the response
                // event stream.


                var progressEvent = {
                  type: HttpEventType.DownloadProgress,
                  loaded: event.loaded
                }; // Set the total number of bytes in the event if it's available.

                if (event.lengthComputable) {
                  progressEvent.total = event.total;
                } // If the request was for text content and a partial response is
                // available on XMLHttpRequest, include it in the progress event
                // to allow for streaming reads.


                if (req.responseType === 'text' && !!xhr.responseText) {
                  progressEvent.partialText = xhr.responseText;
                } // Finally, fire the event.


                observer.next(progressEvent);
              }; // The upload progress event handler, which is only registered if
              // progress events are enabled.


              var onUpProgress = function onUpProgress(event) {
                // Upload progress events are simpler. Begin building the progress
                // event.
                var progress = {
                  type: HttpEventType.UploadProgress,
                  loaded: event.loaded
                }; // If the total number of bytes being uploaded is available, include
                // it.

                if (event.lengthComputable) {
                  progress.total = event.total;
                } // Send the event.


                observer.next(progress);
              }; // By default, register for load and error events.


              xhr.addEventListener('load', onLoad);
              xhr.addEventListener('error', onError); // Progress events are only enabled if requested.

              if (req.reportProgress) {
                // Download progress is always enabled if requested.
                xhr.addEventListener('progress', onDownProgress); // Upload progress depends on whether there is a body to upload.

                if (reqBody !== null && xhr.upload) {
                  xhr.upload.addEventListener('progress', onUpProgress);
                }
              } // Fire the request, and notify the event stream that it was fired.


              xhr.send(reqBody);
              observer.next({
                type: HttpEventType.Sent
              }); // This is the return from the Observable function, which is the
              // request cancellation handler.

              return function () {
                // On a cancellation, remove all registered event listeners.
                xhr.removeEventListener('error', onError);
                xhr.removeEventListener('load', onLoad);

                if (req.reportProgress) {
                  xhr.removeEventListener('progress', onDownProgress);

                  if (reqBody !== null && xhr.upload) {
                    xhr.upload.removeEventListener('progress', onUpProgress);
                  }
                } // Finally, abort the in-flight request.


                if (xhr.readyState !== xhr.DONE) {
                  xhr.abort();
                }
              };
            });
          }
        }]);

        return HttpXhrBackend;
      }();

      HttpXhrBackend.ɵfac = function HttpXhrBackend_Factory(t) {
        return new (t || HttpXhrBackend)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](XhrFactory));
      };

      HttpXhrBackend.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
        token: HttpXhrBackend,
        factory: HttpXhrBackend.ɵfac
      });

      HttpXhrBackend.ctorParameters = function () {
        return [{
          type: XhrFactory
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](HttpXhrBackend, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
        }], function () {
          return [{
            type: XhrFactory
          }];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var XSRF_COOKIE_NAME = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('XSRF_COOKIE_NAME');
      var XSRF_HEADER_NAME = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('XSRF_HEADER_NAME');
      /**
       * Retrieves the current XSRF token to use with the next outgoing request.
       *
       * @publicApi
       */

      var HttpXsrfTokenExtractor = function HttpXsrfTokenExtractor() {
        _classCallCheck2(this, HttpXsrfTokenExtractor);
      };
      /**
       * `HttpXsrfTokenExtractor` which retrieves the token from a cookie.
       */


      var HttpXsrfCookieExtractor = /*#__PURE__*/function () {
        function HttpXsrfCookieExtractor(doc, platform, cookieName) {
          _classCallCheck2(this, HttpXsrfCookieExtractor);

          this.doc = doc;
          this.platform = platform;
          this.cookieName = cookieName;
          this.lastCookieString = '';
          this.lastToken = null;
          /**
           * @internal for testing
           */

          this.parseCount = 0;
        }

        _createClass2(HttpXsrfCookieExtractor, [{
          key: "getToken",
          value: function getToken() {
            if (this.platform === 'server') {
              return null;
            }

            var cookieString = this.doc.cookie || '';

            if (cookieString !== this.lastCookieString) {
              this.parseCount++;
              this.lastToken = Object(_angular_common__WEBPACK_IMPORTED_MODULE_3__["ɵparseCookieValue"])(cookieString, this.cookieName);
              this.lastCookieString = cookieString;
            }

            return this.lastToken;
          }
        }]);

        return HttpXsrfCookieExtractor;
      }();

      HttpXsrfCookieExtractor.ɵfac = function HttpXsrfCookieExtractor_Factory(t) {
        return new (t || HttpXsrfCookieExtractor)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_3__["DOCUMENT"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["PLATFORM_ID"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](XSRF_COOKIE_NAME));
      };

      HttpXsrfCookieExtractor.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
        token: HttpXsrfCookieExtractor,
        factory: HttpXsrfCookieExtractor.ɵfac
      });

      HttpXsrfCookieExtractor.ctorParameters = function () {
        return [{
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [_angular_common__WEBPACK_IMPORTED_MODULE_3__["DOCUMENT"]]
          }]
        }, {
          type: String,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["PLATFORM_ID"]]
          }]
        }, {
          type: String,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [XSRF_COOKIE_NAME]
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](HttpXsrfCookieExtractor, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
        }], function () {
          return [{
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [_angular_common__WEBPACK_IMPORTED_MODULE_3__["DOCUMENT"]]
            }]
          }, {
            type: String,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["PLATFORM_ID"]]
            }]
          }, {
            type: String,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [XSRF_COOKIE_NAME]
            }]
          }];
        }, null);
      })();
      /**
       * `HttpInterceptor` which adds an XSRF token to eligible outgoing requests.
       */


      var HttpXsrfInterceptor = /*#__PURE__*/function () {
        function HttpXsrfInterceptor(tokenService, headerName) {
          _classCallCheck2(this, HttpXsrfInterceptor);

          this.tokenService = tokenService;
          this.headerName = headerName;
        }

        _createClass2(HttpXsrfInterceptor, [{
          key: "intercept",
          value: function intercept(req, next) {
            var lcUrl = req.url.toLowerCase(); // Skip both non-mutating requests and absolute URLs.
            // Non-mutating requests don't require a token, and absolute URLs require special handling
            // anyway as the cookie set
            // on our origin is not the same as the token expected by another origin.

            if (req.method === 'GET' || req.method === 'HEAD' || lcUrl.startsWith('http://') || lcUrl.startsWith('https://')) {
              return next.handle(req);
            }

            var token = this.tokenService.getToken(); // Be careful not to overwrite an existing header of the same name.

            if (token !== null && !req.headers.has(this.headerName)) {
              req = req.clone({
                headers: req.headers.set(this.headerName, token)
              });
            }

            return next.handle(req);
          }
        }]);

        return HttpXsrfInterceptor;
      }();

      HttpXsrfInterceptor.ɵfac = function HttpXsrfInterceptor_Factory(t) {
        return new (t || HttpXsrfInterceptor)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](HttpXsrfTokenExtractor), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](XSRF_HEADER_NAME));
      };

      HttpXsrfInterceptor.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
        token: HttpXsrfInterceptor,
        factory: HttpXsrfInterceptor.ɵfac
      });

      HttpXsrfInterceptor.ctorParameters = function () {
        return [{
          type: HttpXsrfTokenExtractor
        }, {
          type: String,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [XSRF_HEADER_NAME]
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](HttpXsrfInterceptor, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
        }], function () {
          return [{
            type: HttpXsrfTokenExtractor
          }, {
            type: String,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [XSRF_HEADER_NAME]
            }]
          }];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * An injectable `HttpHandler` that applies multiple interceptors
       * to a request before passing it to the given `HttpBackend`.
       *
       * The interceptors are loaded lazily from the injector, to allow
       * interceptors to themselves inject classes depending indirectly
       * on `HttpInterceptingHandler` itself.
       * @see `HttpInterceptor`
       */


      var HttpInterceptingHandler = /*#__PURE__*/function () {
        function HttpInterceptingHandler(backend, injector) {
          _classCallCheck2(this, HttpInterceptingHandler);

          this.backend = backend;
          this.injector = injector;
          this.chain = null;
        }

        _createClass2(HttpInterceptingHandler, [{
          key: "handle",
          value: function handle(req) {
            if (this.chain === null) {
              var interceptors = this.injector.get(HTTP_INTERCEPTORS, []);
              this.chain = interceptors.reduceRight(function (next, interceptor) {
                return new HttpInterceptorHandler(next, interceptor);
              }, this.backend);
            }

            return this.chain.handle(req);
          }
        }]);

        return HttpInterceptingHandler;
      }();

      HttpInterceptingHandler.ɵfac = function HttpInterceptingHandler_Factory(t) {
        return new (t || HttpInterceptingHandler)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](HttpBackend), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injector"]));
      };

      HttpInterceptingHandler.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
        token: HttpInterceptingHandler,
        factory: HttpInterceptingHandler.ɵfac
      });

      HttpInterceptingHandler.ctorParameters = function () {
        return [{
          type: HttpBackend
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injector"]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](HttpInterceptingHandler, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
        }], function () {
          return [{
            type: HttpBackend
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injector"]
          }];
        }, null);
      })();
      /**
       * Constructs an `HttpHandler` that applies interceptors
       * to a request before passing it to the given `HttpBackend`.
       *
       * Use as a factory function within `HttpClientModule`.
       *
       *
       */


      function interceptingHandler(backend) {
        var interceptors = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];

        if (!interceptors) {
          return backend;
        }

        return interceptors.reduceRight(function (next, interceptor) {
          return new HttpInterceptorHandler(next, interceptor);
        }, backend);
      }
      /**
       * Factory function that determines where to store JSONP callbacks.
       *
       * Ordinarily JSONP callbacks are stored on the `window` object, but this may not exist
       * in test environments. In that case, callbacks are stored on an anonymous object instead.
       *
       *
       */


      function jsonpCallbackContext() {
        if (typeof window === 'object') {
          return window;
        }

        return {};
      }
      /**
       * Configures XSRF protection support for outgoing requests.
       *
       * For a server that supports a cookie-based XSRF protection system,
       * use directly to configure XSRF protection with the correct
       * cookie and header names.
       *
       * If no names are supplied, the default cookie name is `XSRF-TOKEN`
       * and the default header name is `X-XSRF-TOKEN`.
       *
       * @publicApi
       */


      var HttpClientXsrfModule = /*#__PURE__*/function () {
        function HttpClientXsrfModule() {
          _classCallCheck2(this, HttpClientXsrfModule);
        }

        _createClass2(HttpClientXsrfModule, null, [{
          key: "disable",
          value:
          /**
           * Disable the default XSRF protection.
           */
          function disable() {
            return {
              ngModule: HttpClientXsrfModule,
              providers: [{
                provide: HttpXsrfInterceptor,
                useClass: NoopInterceptor
              }]
            };
          }
          /**
           * Configure XSRF protection.
           * @param options An object that can specify either or both
           * cookie name or header name.
           * - Cookie name default is `XSRF-TOKEN`.
           * - Header name default is `X-XSRF-TOKEN`.
           *
           */

        }, {
          key: "withOptions",
          value: function withOptions() {
            var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
            return {
              ngModule: HttpClientXsrfModule,
              providers: [options.cookieName ? {
                provide: XSRF_COOKIE_NAME,
                useValue: options.cookieName
              } : [], options.headerName ? {
                provide: XSRF_HEADER_NAME,
                useValue: options.headerName
              } : []]
            };
          }
        }]);

        return HttpClientXsrfModule;
      }();

      HttpClientXsrfModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
        type: HttpClientXsrfModule
      });
      HttpClientXsrfModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
        factory: function HttpClientXsrfModule_Factory(t) {
          return new (t || HttpClientXsrfModule)();
        },
        providers: [HttpXsrfInterceptor, {
          provide: HTTP_INTERCEPTORS,
          useExisting: HttpXsrfInterceptor,
          multi: true
        }, {
          provide: HttpXsrfTokenExtractor,
          useClass: HttpXsrfCookieExtractor
        }, {
          provide: XSRF_COOKIE_NAME,
          useValue: 'XSRF-TOKEN'
        }, {
          provide: XSRF_HEADER_NAME,
          useValue: 'X-XSRF-TOKEN'
        }]
      });
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](HttpClientXsrfModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
          args: [{
            providers: [HttpXsrfInterceptor, {
              provide: HTTP_INTERCEPTORS,
              useExisting: HttpXsrfInterceptor,
              multi: true
            }, {
              provide: HttpXsrfTokenExtractor,
              useClass: HttpXsrfCookieExtractor
            }, {
              provide: XSRF_COOKIE_NAME,
              useValue: 'XSRF-TOKEN'
            }, {
              provide: XSRF_HEADER_NAME,
              useValue: 'X-XSRF-TOKEN'
            }]
          }]
        }], null, null);
      })();
      /**
       * Configures the [dependency injector](guide/glossary#injector) for `HttpClient`
       * with supporting services for XSRF. Automatically imported by `HttpClientModule`.
       *
       * You can add interceptors to the chain behind `HttpClient` by binding them to the
       * multiprovider for built-in [DI token](guide/glossary#di-token) `HTTP_INTERCEPTORS`.
       *
       * @publicApi
       */


      var HttpClientModule = function HttpClientModule() {
        _classCallCheck2(this, HttpClientModule);
      };

      HttpClientModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
        type: HttpClientModule
      });
      HttpClientModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
        factory: function HttpClientModule_Factory(t) {
          return new (t || HttpClientModule)();
        },
        providers: [HttpClient, {
          provide: HttpHandler,
          useClass: HttpInterceptingHandler
        }, HttpXhrBackend, {
          provide: HttpBackend,
          useExisting: HttpXhrBackend
        }, BrowserXhr, {
          provide: XhrFactory,
          useExisting: BrowserXhr
        }],
        imports: [[HttpClientXsrfModule.withOptions({
          cookieName: 'XSRF-TOKEN',
          headerName: 'X-XSRF-TOKEN'
        })]]
      });

      (function () {
        (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](HttpClientModule, {
          imports: [HttpClientXsrfModule]
        });
      })();
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](HttpClientModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
          args: [{
            /**
             * Optional configuration for XSRF protection.
             */
            imports: [HttpClientXsrfModule.withOptions({
              cookieName: 'XSRF-TOKEN',
              headerName: 'X-XSRF-TOKEN'
            })],

            /**
             * Configures the [dependency injector](guide/glossary#injector) where it is imported
             * with supporting services for HTTP communications.
             */
            providers: [HttpClient, {
              provide: HttpHandler,
              useClass: HttpInterceptingHandler
            }, HttpXhrBackend, {
              provide: HttpBackend,
              useExisting: HttpXhrBackend
            }, BrowserXhr, {
              provide: XhrFactory,
              useExisting: BrowserXhr
            }]
          }]
        }], null, null);
      })();
      /**
       * Configures the [dependency injector](guide/glossary#injector) for `HttpClient`
       * with supporting services for JSONP.
       * Without this module, Jsonp requests reach the backend
       * with method JSONP, where they are rejected.
       *
       * You can add interceptors to the chain behind `HttpClient` by binding them to the
       * multiprovider for built-in [DI token](guide/glossary#di-token) `HTTP_INTERCEPTORS`.
       *
       * @publicApi
       */


      var HttpClientJsonpModule = function HttpClientJsonpModule() {
        _classCallCheck2(this, HttpClientJsonpModule);
      };

      HttpClientJsonpModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
        type: HttpClientJsonpModule
      });
      HttpClientJsonpModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
        factory: function HttpClientJsonpModule_Factory(t) {
          return new (t || HttpClientJsonpModule)();
        },
        providers: [JsonpClientBackend, {
          provide: JsonpCallbackContext,
          useFactory: jsonpCallbackContext
        }, {
          provide: HTTP_INTERCEPTORS,
          useClass: JsonpInterceptor,
          multi: true
        }]
      });
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](HttpClientJsonpModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
          args: [{
            providers: [JsonpClientBackend, {
              provide: JsonpCallbackContext,
              useFactory: jsonpCallbackContext
            }, {
              provide: HTTP_INTERCEPTORS,
              useClass: JsonpInterceptor,
              multi: true
            }]
          }]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Generated bundle index. Do not edit.
       */
      //# sourceMappingURL=http.js.map

      /***/

    },

    /***/
    "IjAw": function IjAw(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return add;
      });
      /* harmony import */


      var _addDays_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../addDays/index.js */
      "9/EM");
      /* harmony import */


      var _addMonths_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../addMonths/index.js */
      "dLU1");
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /* harmony import */


      var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! ../_lib/toInteger/index.js */
      "/h9T");
      /**
       * @name add
       * @category Common Helpers
       * @summary Add the specified years, months, weeks, days, hours, minutes and seconds to the given date.
       *
       * @description
       * Add the specified years, months, weeks, days, hours, minutes and seconds to the given date.
       *
       * @param {Date|Number} date - the date to be changed
       * @param {Duration} duration - the object with years, months, weeks, days, hours, minutes and seconds to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
       *
       * | Key            | Description                        |
       * |----------------|------------------------------------|
       * | years          | Amount of years to be added        |
       * | months         | Amount of months to be added       |
       * | weeks          | Amount of weeks to be added       |
       * | days           | Amount of days to be added         |
       * | hours          | Amount of hours to be added        |
       * | minutes        | Amount of minutes to be added      |
       * | seconds        | Amount of seconds to be added      |
       *
       * All values default to 0
       *
       * @returns {Date} the new date with the seconds added
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // Add the following duration to 1 September 2014, 10:19:50
       * var result = add(new Date(2014, 8, 1, 10, 19, 50), {
       *   years: 2,
       *   months: 9,
       *   weeks: 1,
       *   days: 7,
       *   hours: 5,
       *   minutes: 9,
       *   seconds: 30,
       * })
       * //=> Thu Jun 15 2017 15:29:20
       */


      function add(dirtyDate, duration) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(2, arguments);
        if (!duration || typeof duration !== 'object') return new Date(NaN);
        var years = 'years' in duration ? Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_4__["default"])(duration.years) : 0;
        var months = 'months' in duration ? Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_4__["default"])(duration.months) : 0;
        var weeks = 'weeks' in duration ? Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_4__["default"])(duration.weeks) : 0;
        var days = 'days' in duration ? Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_4__["default"])(duration.days) : 0;
        var hours = 'hours' in duration ? Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_4__["default"])(duration.hours) : 0;
        var minutes = 'minutes' in duration ? Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_4__["default"])(duration.minutes) : 0;
        var seconds = 'seconds' in duration ? Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_4__["default"])(duration.seconds) : 0; // Add years and months

        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(dirtyDate);
        var dateWithMonths = months || years ? Object(_addMonths_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(date, months + years * 12) : date; // Add weeks and days

        var dateWithDays = days || weeks ? Object(_addDays_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dateWithMonths, days + weeks * 7) : dateWithMonths; // Add days, hours, minutes and seconds

        var minutesToAdd = minutes + hours * 60;
        var secondsToAdd = seconds + minutesToAdd * 60;
        var msToAdd = secondsToAdd * 1000;
        var finalDate = new Date(dateWithDays.getTime() + msToAdd);
        return finalDate;
      }
      /***/

    },

    /***/
    "IjjT": function IjjT(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "AsyncScheduler", function () {
        return AsyncScheduler;
      });
      /* harmony import */


      var _Scheduler__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Scheduler */
      "Y/cZ");

      var AsyncScheduler = /*#__PURE__*/function (_Scheduler__WEBPACK_I) {
        _inherits2(AsyncScheduler, _Scheduler__WEBPACK_I);

        var _super212 = _createSuper2(AsyncScheduler);

        function AsyncScheduler(SchedulerAction) {
          var _this515;

          var now = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _Scheduler__WEBPACK_IMPORTED_MODULE_0__["Scheduler"].now;

          _classCallCheck2(this, AsyncScheduler);

          _this515 = _super212.call(this, SchedulerAction, function () {
            if (AsyncScheduler.delegate && AsyncScheduler.delegate !== _assertThisInitialized2(_this515)) {
              return AsyncScheduler.delegate.now();
            } else {
              return now();
            }
          });
          _this515.actions = [];
          _this515.active = false;
          _this515.scheduled = undefined;
          return _this515;
        }

        _createClass2(AsyncScheduler, [{
          key: "schedule",
          value: function schedule(work) {
            var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
            var state = arguments.length > 2 ? arguments[2] : undefined;

            if (AsyncScheduler.delegate && AsyncScheduler.delegate !== this) {
              return AsyncScheduler.delegate.schedule(work, delay, state);
            } else {
              return _get2(_getPrototypeOf2(AsyncScheduler.prototype), "schedule", this).call(this, work, delay, state);
            }
          }
        }, {
          key: "flush",
          value: function flush(action) {
            var actions = this.actions;

            if (this.active) {
              actions.push(action);
              return;
            }

            var error;
            this.active = true;

            do {
              if (error = action.execute(action.state, action.delay)) {
                break;
              }
            } while (action = actions.shift());

            this.active = false;

            if (error) {
              while (action = actions.shift()) {
                action.unsubscribe();
              }

              throw error;
            }
          }
        }]);

        return AsyncScheduler;
      }(_Scheduler__WEBPACK_IMPORTED_MODULE_0__["Scheduler"]); //# sourceMappingURL=AsyncScheduler.js.map

      /***/

    },

    /***/
    "Ivi+": function Ivi(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Korean [ko]
      //! author : Kyungwook, Park : https://github.com/kyungw00k
      //! author : Jeeeyul Lee <jeeeyul@gmail.com>
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var ko = moment.defineLocale('ko', {
          months: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
          monthsShort: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
          weekdays: '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'),
          weekdaysShort: '일_월_화_수_목_금_토'.split('_'),
          weekdaysMin: '일_월_화_수_목_금_토'.split('_'),
          longDateFormat: {
            LT: 'A h:mm',
            LTS: 'A h:mm:ss',
            L: 'YYYY.MM.DD.',
            LL: 'YYYY년 MMMM D일',
            LLL: 'YYYY년 MMMM D일 A h:mm',
            LLLL: 'YYYY년 MMMM D일 dddd A h:mm',
            l: 'YYYY.MM.DD.',
            ll: 'YYYY년 MMMM D일',
            lll: 'YYYY년 MMMM D일 A h:mm',
            llll: 'YYYY년 MMMM D일 dddd A h:mm'
          },
          calendar: {
            sameDay: '오늘 LT',
            nextDay: '내일 LT',
            nextWeek: 'dddd LT',
            lastDay: '어제 LT',
            lastWeek: '지난주 dddd LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: '%s 후',
            past: '%s 전',
            s: '몇 초',
            ss: '%d초',
            m: '1분',
            mm: '%d분',
            h: '한 시간',
            hh: '%d시간',
            d: '하루',
            dd: '%d일',
            M: '한 달',
            MM: '%d달',
            y: '일 년',
            yy: '%d년'
          },
          dayOfMonthOrdinalParse: /\d{1,2}(일|월|주)/,
          ordinal: function ordinal(number, period) {
            switch (period) {
              case 'd':
              case 'D':
              case 'DDD':
                return number + '일';

              case 'M':
                return number + '월';

              case 'w':
              case 'W':
                return number + '주';

              default:
                return number;
            }
          },
          meridiemParse: /오전|오후/,
          isPM: function isPM(token) {
            return token === '오후';
          },
          meridiem: function meridiem(hour, minute, isUpper) {
            return hour < 12 ? '오전' : '오후';
          }
        });
        return ko;
      });
      /***/

    },

    /***/
    "IzEk": function IzEk(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "take", function () {
        return take;
      });
      /* harmony import */


      var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Subscriber */
      "7o/Q");
      /* harmony import */


      var _util_ArgumentOutOfRangeError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../util/ArgumentOutOfRangeError */
      "4I5i");
      /* harmony import */


      var _observable_empty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../observable/empty */
      "EY2u");

      function take(count) {
        return function (source) {
          if (count === 0) {
            return Object(_observable_empty__WEBPACK_IMPORTED_MODULE_2__["empty"])();
          } else {
            return source.lift(new TakeOperator(count));
          }
        };
      }

      var TakeOperator = /*#__PURE__*/function () {
        function TakeOperator(total) {
          _classCallCheck2(this, TakeOperator);

          this.total = total;

          if (this.total < 0) {
            throw new _util_ArgumentOutOfRangeError__WEBPACK_IMPORTED_MODULE_1__["ArgumentOutOfRangeError"]();
          }
        }

        _createClass2(TakeOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            return source.subscribe(new TakeSubscriber(subscriber, this.total));
          }
        }]);

        return TakeOperator;
      }();

      var TakeSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_17) {
        _inherits2(TakeSubscriber, _Subscriber__WEBPACK_17);

        var _super213 = _createSuper2(TakeSubscriber);

        function TakeSubscriber(destination, total) {
          var _this516;

          _classCallCheck2(this, TakeSubscriber);

          _this516 = _super213.call(this, destination);
          _this516.total = total;
          _this516.count = 0;
          return _this516;
        }

        _createClass2(TakeSubscriber, [{
          key: "_next",
          value: function _next(value) {
            var total = this.total;
            var count = ++this.count;

            if (count <= total) {
              this.destination.next(value);

              if (count === total) {
                this.destination.complete();
                this.unsubscribe();
              }
            }
          }
        }]);

        return TakeSubscriber;
      }(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]); //# sourceMappingURL=take.js.map

      /***/

    },

    /***/
    "J9JN": function J9JN(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony import */


      var _lib_buildLocalizeFn_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../../../_lib/buildLocalizeFn/index.js */
      "ku8+");

      var eraValues = {
        narrow: ['B', 'A'],
        abbreviated: ['BC', 'AD'],
        wide: ['Before Christ', 'Anno Domini']
      };
      var quarterValues = {
        narrow: ['1', '2', '3', '4'],
        abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'],
        wide: ['1st quarter', '2nd quarter', '3rd quarter', '4th quarter'] // Note: in English, the names of days of the week and months are capitalized.
        // If you are making a new locale based on this one, check if the same is true for the language you're working on.
        // Generally, formatted dates should look like they are in the middle of a sentence,
        // e.g. in Spanish language the weekdays and months should be in the lowercase.

      };
      var monthValues = {
        narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'],
        abbreviated: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
        wide: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
      };
      var dayValues = {
        narrow: ['S', 'M', 'T', 'W', 'T', 'F', 'S'],
        "short": ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
        abbreviated: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
        wide: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']
      };
      var dayPeriodValues = {
        narrow: {
          am: 'a',
          pm: 'p',
          midnight: 'mi',
          noon: 'n',
          morning: 'morning',
          afternoon: 'afternoon',
          evening: 'evening',
          night: 'night'
        },
        abbreviated: {
          am: 'AM',
          pm: 'PM',
          midnight: 'midnight',
          noon: 'noon',
          morning: 'morning',
          afternoon: 'afternoon',
          evening: 'evening',
          night: 'night'
        },
        wide: {
          am: 'a.m.',
          pm: 'p.m.',
          midnight: 'midnight',
          noon: 'noon',
          morning: 'morning',
          afternoon: 'afternoon',
          evening: 'evening',
          night: 'night'
        }
      };
      var formattingDayPeriodValues = {
        narrow: {
          am: 'a',
          pm: 'p',
          midnight: 'mi',
          noon: 'n',
          morning: 'in the morning',
          afternoon: 'in the afternoon',
          evening: 'in the evening',
          night: 'at night'
        },
        abbreviated: {
          am: 'AM',
          pm: 'PM',
          midnight: 'midnight',
          noon: 'noon',
          morning: 'in the morning',
          afternoon: 'in the afternoon',
          evening: 'in the evening',
          night: 'at night'
        },
        wide: {
          am: 'a.m.',
          pm: 'p.m.',
          midnight: 'midnight',
          noon: 'noon',
          morning: 'in the morning',
          afternoon: 'in the afternoon',
          evening: 'in the evening',
          night: 'at night'
        }
      };

      function ordinalNumber(dirtyNumber, _dirtyOptions) {
        var number = Number(dirtyNumber); // If ordinal numbers depend on context, for example,
        // if they are different for different grammatical genders,
        // use `options.unit`:
        //
        //   var options = dirtyOptions || {}
        //   var unit = String(options.unit)
        //
        // where `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear',
        // 'day', 'hour', 'minute', 'second'

        var rem100 = number % 100;

        if (rem100 > 20 || rem100 < 10) {
          switch (rem100 % 10) {
            case 1:
              return number + 'st';

            case 2:
              return number + 'nd';

            case 3:
              return number + 'rd';
          }
        }

        return number + 'th';
      }

      var localize = {
        ordinalNumber: ordinalNumber,
        era: Object(_lib_buildLocalizeFn_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])({
          values: eraValues,
          defaultWidth: 'wide'
        }),
        quarter: Object(_lib_buildLocalizeFn_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])({
          values: quarterValues,
          defaultWidth: 'wide',
          argumentCallback: function argumentCallback(quarter) {
            return Number(quarter) - 1;
          }
        }),
        month: Object(_lib_buildLocalizeFn_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])({
          values: monthValues,
          defaultWidth: 'wide'
        }),
        day: Object(_lib_buildLocalizeFn_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])({
          values: dayValues,
          defaultWidth: 'wide'
        }),
        dayPeriod: Object(_lib_buildLocalizeFn_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])({
          values: dayPeriodValues,
          defaultWidth: 'wide',
          formattingValues: formattingDayPeriodValues,
          defaultFormattingWidth: 'wide'
        })
      };
      /* harmony default export */

      __webpack_exports__["default"] = localize;
      /***/
    },

    /***/
    "JCDJ": function JCDJ(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return getTimezoneOffsetInMilliseconds;
      });

      var MILLISECONDS_IN_MINUTE = 60000;

      function getDateMillisecondsPart(date) {
        return date.getTime() % MILLISECONDS_IN_MINUTE;
      }
      /**
       * Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds.
       * They usually appear for dates that denote time before the timezones were introduced
       * (e.g. for 'Europe/Prague' timezone the offset is GMT+00:57:44 before 1 October 1891
       * and GMT+01:00:00 after that date)
       *
       * Date#getTimezoneOffset returns the offset in minutes and would return 57 for the example above,
       * which would lead to incorrect calculations.
       *
       * This function returns the timezone offset in milliseconds that takes seconds in account.
       */


      function getTimezoneOffsetInMilliseconds(dirtyDate) {
        var date = new Date(dirtyDate.getTime());
        var baseTimezoneOffset = Math.ceil(date.getTimezoneOffset());
        date.setSeconds(0, 0);
        var hasNegativeUTCOffset = baseTimezoneOffset > 0;
        var millisecondsPartOfTimezoneOffset = hasNegativeUTCOffset ? (MILLISECONDS_IN_MINUTE + getDateMillisecondsPart(date)) % MILLISECONDS_IN_MINUTE : getDateMillisecondsPart(date);
        return baseTimezoneOffset * MILLISECONDS_IN_MINUTE + millisecondsPartOfTimezoneOffset;
      }
      /***/

    },

    /***/
    "JCF/": function JCF(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Kurdish [ku]
      //! author : Shahram Mebashar : https://github.com/ShahramMebashar
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var symbolMap = {
          1: '١',
          2: '٢',
          3: '٣',
          4: '٤',
          5: '٥',
          6: '٦',
          7: '٧',
          8: '٨',
          9: '٩',
          0: '٠'
        },
            numberMap = {
          '١': '1',
          '٢': '2',
          '٣': '3',
          '٤': '4',
          '٥': '5',
          '٦': '6',
          '٧': '7',
          '٨': '8',
          '٩': '9',
          '٠': '0'
        },
            months = ['کانونی دووەم', 'شوبات', 'ئازار', 'نیسان', 'ئایار', 'حوزەیران', 'تەمموز', 'ئاب', 'ئەیلوول', 'تشرینی یەكەم', 'تشرینی دووەم', 'كانونی یەکەم'];
        var ku = moment.defineLocale('ku', {
          months: months,
          monthsShort: months,
          weekdays: 'یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌'.split('_'),
          weekdaysShort: 'یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌'.split('_'),
          weekdaysMin: 'ی_د_س_چ_پ_ه_ش'.split('_'),
          weekdaysParseExact: true,
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd, D MMMM YYYY HH:mm'
          },
          meridiemParse: /ئێواره‌|به‌یانی/,
          isPM: function isPM(input) {
            return /ئێواره‌/.test(input);
          },
          meridiem: function meridiem(hour, minute, isLower) {
            if (hour < 12) {
              return 'به‌یانی';
            } else {
              return 'ئێواره‌';
            }
          },
          calendar: {
            sameDay: '[ئه‌مرۆ كاتژمێر] LT',
            nextDay: '[به‌یانی كاتژمێر] LT',
            nextWeek: 'dddd [كاتژمێر] LT',
            lastDay: '[دوێنێ كاتژمێر] LT',
            lastWeek: 'dddd [كاتژمێر] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'له‌ %s',
            past: '%s',
            s: 'چه‌ند چركه‌یه‌ك',
            ss: 'چركه‌ %d',
            m: 'یه‌ك خوله‌ك',
            mm: '%d خوله‌ك',
            h: 'یه‌ك كاتژمێر',
            hh: '%d كاتژمێر',
            d: 'یه‌ك ڕۆژ',
            dd: '%d ڕۆژ',
            M: 'یه‌ك مانگ',
            MM: '%d مانگ',
            y: 'یه‌ك ساڵ',
            yy: '%d ساڵ'
          },
          preparse: function preparse(string) {
            return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
              return numberMap[match];
            }).replace(/،/g, ',');
          },
          postformat: function postformat(string) {
            return string.replace(/\d/g, function (match) {
              return symbolMap[match];
            }).replace(/,/g, '،');
          },
          week: {
            dow: 6,
            // Saturday is the first day of the week.
            doy: 12 // The week that contains Jan 12th is the first week of the year.

          }
        });
        return ku;
      });
      /***/

    },

    /***/
    "JIr8": function JIr8(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "catchError", function () {
        return catchError;
      });
      /* harmony import */


      var _innerSubscribe__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../innerSubscribe */
      "zx2A");

      function catchError(selector) {
        return function catchErrorOperatorFunction(source) {
          var operator = new CatchOperator(selector);
          var caught = source.lift(operator);
          return operator.caught = caught;
        };
      }

      var CatchOperator = /*#__PURE__*/function () {
        function CatchOperator(selector) {
          _classCallCheck2(this, CatchOperator);

          this.selector = selector;
        }

        _createClass2(CatchOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            return source.subscribe(new CatchSubscriber(subscriber, this.selector, this.caught));
          }
        }]);

        return CatchOperator;
      }();

      var CatchSubscriber = /*#__PURE__*/function (_innerSubscribe__WEBP9) {
        _inherits2(CatchSubscriber, _innerSubscribe__WEBP9);

        var _super214 = _createSuper2(CatchSubscriber);

        function CatchSubscriber(destination, selector, caught) {
          var _this517;

          _classCallCheck2(this, CatchSubscriber);

          _this517 = _super214.call(this, destination);
          _this517.selector = selector;
          _this517.caught = caught;
          return _this517;
        }

        _createClass2(CatchSubscriber, [{
          key: "error",
          value: function error(err) {
            if (!this.isStopped) {
              var result;

              try {
                result = this.selector(err, this.caught);
              } catch (err2) {
                _get2(_getPrototypeOf2(CatchSubscriber.prototype), "error", this).call(this, err2);

                return;
              }

              this._unsubscribeAndRecycle();

              var innerSubscriber = new _innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["SimpleInnerSubscriber"](this);
              this.add(innerSubscriber);
              var innerSubscription = Object(_innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["innerSubscribe"])(result, innerSubscriber);

              if (innerSubscription !== innerSubscriber) {
                this.add(innerSubscription);
              }
            }
          }
        }]);

        return CatchSubscriber;
      }(_innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["SimpleOuterSubscriber"]); //# sourceMappingURL=catchError.js.map

      /***/

    },

    /***/
    "JO1+": function JO1(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return isSameWeek;
      });
      /* harmony import */


      var _startOfWeek_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../startOfWeek/index.js */
      "aetl");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name isSameWeek
       * @category Week Helpers
       * @summary Are the given dates in the same week?
       *
       * @description
       * Are the given dates in the same week?
       *
       * ### 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 {Date|Number} dateLeft - the first date to check
       * @param {Date|Number} dateRight - the second date to check
       * @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 {Boolean} the dates are in the same week
       * @throws {TypeError} 2 arguments required
       * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6
       *
       * @example
       * // Are 31 August 2014 and 4 September 2014 in the same week?
       * var result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4))
       * //=> true
       *
       * @example
       * // If week starts with Monday,
       * // are 31 August 2014 and 4 September 2014 in the same week?
       * var result = isSameWeek(new Date(2014, 7, 31), new Date(2014, 8, 4), {
       *   weekStartsOn: 1
       * })
       * //=> false
       */


      function isSameWeek(dirtyDateLeft, dirtyDateRight, dirtyOptions) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(2, arguments);
        var dateLeftStartOfWeek = Object(_startOfWeek_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateLeft, dirtyOptions);
        var dateRightStartOfWeek = Object(_startOfWeek_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateRight, dirtyOptions);
        return dateLeftStartOfWeek.getTime() === dateRightStartOfWeek.getTime();
      }
      /***/

    },

    /***/
    "JVSJ": function JVSJ(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Bosnian [bs]
      //! author : Nedim Cholich : https://github.com/frontyard
      //! based on (hr) translation by Bojan Marković
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        function translate(number, withoutSuffix, key) {
          var result = number + ' ';

          switch (key) {
            case 'ss':
              if (number === 1) {
                result += 'sekunda';
              } else if (number === 2 || number === 3 || number === 4) {
                result += 'sekunde';
              } else {
                result += 'sekundi';
              }

              return result;

            case 'm':
              return withoutSuffix ? 'jedna minuta' : 'jedne minute';

            case 'mm':
              if (number === 1) {
                result += 'minuta';
              } else if (number === 2 || number === 3 || number === 4) {
                result += 'minute';
              } else {
                result += 'minuta';
              }

              return result;

            case 'h':
              return withoutSuffix ? 'jedan sat' : 'jednog sata';

            case 'hh':
              if (number === 1) {
                result += 'sat';
              } else if (number === 2 || number === 3 || number === 4) {
                result += 'sata';
              } else {
                result += 'sati';
              }

              return result;

            case 'dd':
              if (number === 1) {
                result += 'dan';
              } else {
                result += 'dana';
              }

              return result;

            case 'MM':
              if (number === 1) {
                result += 'mjesec';
              } else if (number === 2 || number === 3 || number === 4) {
                result += 'mjeseca';
              } else {
                result += 'mjeseci';
              }

              return result;

            case 'yy':
              if (number === 1) {
                result += 'godina';
              } else if (number === 2 || number === 3 || number === 4) {
                result += 'godine';
              } else {
                result += 'godina';
              }

              return result;
          }
        }

        var bs = moment.defineLocale('bs', {
          months: 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split('_'),
          monthsShort: 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split('_'),
          monthsParseExact: true,
          weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
          weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
          weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
          weekdaysParseExact: true,
          longDateFormat: {
            LT: 'H:mm',
            LTS: 'H:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'D. MMMM YYYY',
            LLL: 'D. MMMM YYYY H:mm',
            LLLL: 'dddd, D. MMMM YYYY H:mm'
          },
          calendar: {
            sameDay: '[danas u] LT',
            nextDay: '[sutra u] LT',
            nextWeek: function nextWeek() {
              switch (this.day()) {
                case 0:
                  return '[u] [nedjelju] [u] LT';

                case 3:
                  return '[u] [srijedu] [u] LT';

                case 6:
                  return '[u] [subotu] [u] LT';

                case 1:
                case 2:
                case 4:
                case 5:
                  return '[u] dddd [u] LT';
              }
            },
            lastDay: '[jučer u] LT',
            lastWeek: function lastWeek() {
              switch (this.day()) {
                case 0:
                case 3:
                  return '[prošlu] dddd [u] LT';

                case 6:
                  return '[prošle] [subote] [u] LT';

                case 1:
                case 2:
                case 4:
                case 5:
                  return '[prošli] dddd [u] LT';
              }
            },
            sameElse: 'L'
          },
          relativeTime: {
            future: 'za %s',
            past: 'prije %s',
            s: 'par sekundi',
            ss: translate,
            m: translate,
            mm: translate,
            h: translate,
            hh: translate,
            d: 'dan',
            dd: translate,
            M: 'mjesec',
            MM: translate,
            y: 'godinu',
            yy: translate
          },
          dayOfMonthOrdinalParse: /\d{1,2}\./,
          ordinal: '%d.',
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 7 // The week that contains Jan 7th is the first week of the year.

          }
        });
        return bs;
      });
      /***/

    },

    /***/
    "JVVJ": function JVVJ(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "InMemoryDbService", function () {
        return InMemoryDbService;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "InMemoryBackendConfigArgs", function () {
        return InMemoryBackendConfigArgs;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "InMemoryBackendConfig", function () {
        return InMemoryBackendConfig;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "parseUri", function () {
        return parseUri;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "removeTrailingSlash", function () {
        return removeTrailingSlash;
      });
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");

      var __decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
        var c = arguments.length,
            r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
            d;
        if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
          if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
        }
        return c > 3 && r && Object.defineProperty(target, key, r), r;
      };

      var __metadata = undefined && undefined.__metadata || function (k, v) {
        if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
      };
      /**
      * Interface for a class that creates an in-memory database
      *
      * Its `createDb` method creates a hash of named collections that represents the database
      *
      * For maximum flexibility, the service may define HTTP method overrides.
      * Such methods must match the spelling of an HTTP method in lower case (e.g, "get").
      * If a request has a matching method, it will be called as in
      * `get(info: requestInfo, db: {})` where `db` is the database object described above.
      */


      var InMemoryDbService = function () {
        function InMemoryDbService() {}

        return InMemoryDbService;
      }();
      /**
      * Interface for InMemoryBackend configuration options
      */


      var InMemoryBackendConfigArgs = function () {
        function InMemoryBackendConfigArgs() {}

        return InMemoryBackendConfigArgs;
      }(); /////////////////////////////////

      /**
      *  InMemoryBackendService configuration options
      *  Usage:
      *    InMemoryWebApiModule.forRoot(InMemHeroService, {delay: 600})
      *
      *  or if providing separately:
      *    provide(InMemoryBackendConfig, {useValue: {delay: 600}}),
      */


      var InMemoryBackendConfig = function () {
        function InMemoryBackendConfig(config) {
          if (config === void 0) {
            config = {};
          }

          Object.assign(this, {
            // default config:
            caseSensitiveSearch: false,
            dataEncapsulation: false,
            delay: 500,
            delete404: false,
            passThruUnknownUrl: false,
            post204: true,
            post409: false,
            put204: true,
            put404: false,
            apiBase: undefined,
            host: undefined,
            rootPath: undefined // default value is actually set in InMemoryBackendService ctor

          }, config);
        }

        InMemoryBackendConfig = __decorate([__metadata("design:paramtypes", [InMemoryBackendConfigArgs])], InMemoryBackendConfig);

        InMemoryBackendConfig.ɵfac = function InMemoryBackendConfig_Factory(t) {
          return new (t || InMemoryBackendConfig)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](InMemoryBackendConfigArgs));
        };

        InMemoryBackendConfig.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
          token: InMemoryBackendConfig,
          factory: function factory(t) {
            return InMemoryBackendConfig.ɵfac(t);
          }
        });
        /*@__PURE__*/

        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](InMemoryBackendConfig, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
          }], function () {
            return [{
              type: InMemoryBackendConfigArgs
            }];
          }, null);
        })();

        return InMemoryBackendConfig;
      }();
      /** Return information (UriInfo) about a URI  */


      function parseUri(str) {
        // Adapted from parseuri package - http://blog.stevenlevithan.com/archives/parseuri
        // tslint:disable-next-line:max-line-length
        var URL_REGEX = /^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/;
        var m = URL_REGEX.exec(str);
        var uri = {
          source: '',
          protocol: '',
          authority: '',
          userInfo: '',
          user: '',
          password: '',
          host: '',
          port: '',
          relative: '',
          path: '',
          directory: '',
          file: '',
          query: '',
          anchor: ''
        };
        var keys = Object.keys(uri);
        var i = keys.length;

        while (i--) {
          uri[keys[i]] = m[i] || '';
        }

        return uri;
      }

      function removeTrailingSlash(path) {
        return path.replace(/\/$/, '');
      } //# sourceMappingURL=interfaces.js.map

      /***/

    },

    /***/
    "JX91": function JX91(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "startWith", function () {
        return startWith;
      });
      /* harmony import */


      var _observable_concat__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../observable/concat */
      "GyhO");
      /* harmony import */


      var _util_isScheduler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../util/isScheduler */
      "z+Ro");

      function startWith() {
        for (var _len46 = arguments.length, array = new Array(_len46), _key48 = 0; _key48 < _len46; _key48++) {
          array[_key48] = arguments[_key48];
        }

        var scheduler = array[array.length - 1];

        if (Object(_util_isScheduler__WEBPACK_IMPORTED_MODULE_1__["isScheduler"])(scheduler)) {
          array.pop();
          return function (source) {
            return Object(_observable_concat__WEBPACK_IMPORTED_MODULE_0__["concat"])(array, source, scheduler);
          };
        } else {
          return function (source) {
            return Object(_observable_concat__WEBPACK_IMPORTED_MODULE_0__["concat"])(array, source);
          };
        }
      } //# sourceMappingURL=startWith.js.map

      /***/

    },

    /***/
    "JbbM": function JbbM(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return intervalToDuration;
      });
      /* harmony import */


      var _compareAsc_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../compareAsc/index.js */
      "JhOC");
      /* harmony import */


      var _differenceInYears_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../differenceInYears/index.js */
      "Bp6I");
      /* harmony import */


      var _differenceInMonths_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../differenceInMonths/index.js */
      "AkX2");
      /* harmony import */


      var _differenceInDays_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../differenceInDays/index.js */
      "NoME");
      /* harmony import */


      var _differenceInHours_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! ../differenceInHours/index.js */
      "moCM");
      /* harmony import */


      var _differenceInMinutes_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! ../differenceInMinutes/index.js */
      "jG/O");
      /* harmony import */


      var _differenceInSeconds_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
      /*! ../differenceInSeconds/index.js */
      "qVkf");
      /* harmony import */


      var _isValid_index_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
      /*! ../isValid/index.js */
      "Se/U");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _sub_index_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(
      /*! ../sub/index.js */
      "7wYy");
      /**
       * @name intervalToDuration
       * @category Common Helpers
       * @summary Convert interval to duration
       *
       * @description
       * Convert a interval object to a duration object.
       *
       * @param {Interval} interval - the interval to convert to duration
       *
       * @returns {Duration} The duration Object
       * @throws {TypeError} Requires 2 arguments
       * @throws {RangeError} `start` must not be Invalid Date
       * @throws {RangeError} `end` must not be Invalid Date
       *
       * @example
       * // Get the duration between January 15, 1929 and April 4, 1968.
       * intervalToDuration({
       *   start: new Date(1929, 0, 15, 12, 0, 0),
       *   end: new Date(1968, 3, 4, 19, 5, 0)
       * })
       * // => { years: 39, months: 2, days: 20, hours: 7, minutes: 5, seconds: 0 }
       */


      function intervalToDuration(_ref) {
        var start = _ref.start,
            end = _ref.end;
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_8__["default"])(1, arguments);
        var dateLeft = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_9__["default"])(start);
        var dateRight = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_9__["default"])(end);

        if (!Object(_isValid_index_js__WEBPACK_IMPORTED_MODULE_7__["default"])(dateLeft)) {
          throw new RangeError('Start Date is invalid');
        }

        if (!Object(_isValid_index_js__WEBPACK_IMPORTED_MODULE_7__["default"])(dateRight)) {
          throw new RangeError('End Date is invalid');
        }

        var duration = {
          years: 0,
          months: 0,
          days: 0,
          hours: 0,
          minutes: 0,
          seconds: 0
        };
        var sign = Object(_compareAsc_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dateLeft, dateRight);
        duration.years = Math.abs(Object(_differenceInYears_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dateLeft, dateRight));
        var remainingMonths = Object(_sub_index_js__WEBPACK_IMPORTED_MODULE_10__["default"])(dateLeft, {
          years: sign * duration.years
        });
        duration.months = Math.abs(Object(_differenceInMonths_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(remainingMonths, dateRight));
        var remainingDays = Object(_sub_index_js__WEBPACK_IMPORTED_MODULE_10__["default"])(remainingMonths, {
          months: sign * duration.months
        });
        duration.days = Math.abs(Object(_differenceInDays_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(remainingDays, dateRight));
        var remainingHours = Object(_sub_index_js__WEBPACK_IMPORTED_MODULE_10__["default"])(remainingDays, {
          days: sign * duration.days
        });
        duration.hours = Math.abs(Object(_differenceInHours_index_js__WEBPACK_IMPORTED_MODULE_4__["default"])(remainingHours, dateRight));
        var remainingMinutes = Object(_sub_index_js__WEBPACK_IMPORTED_MODULE_10__["default"])(remainingHours, {
          hours: sign * duration.hours
        });
        duration.minutes = Math.abs(Object(_differenceInMinutes_index_js__WEBPACK_IMPORTED_MODULE_5__["default"])(remainingMinutes, dateRight));
        var remainingSeconds = Object(_sub_index_js__WEBPACK_IMPORTED_MODULE_10__["default"])(remainingMinutes, {
          minutes: sign * duration.minutes
        });
        duration.seconds = Math.abs(Object(_differenceInSeconds_index_js__WEBPACK_IMPORTED_MODULE_6__["default"])(remainingSeconds, dateRight));
        return duration;
      }
      /***/

    },

    /***/
    "JhOC": function JhOC(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return compareAsc;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name compareAsc
       * @category Common Helpers
       * @summary Compare the two dates and return -1, 0 or 1.
       *
       * @description
       * Compare the two dates and return 1 if the first date is after the second,
       * -1 if the first date is before the second or 0 if dates are equal.
       *
       * ### 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 {Date|Number} dateLeft - the first date to compare
       * @param {Date|Number} dateRight - the second date to compare
       * @returns {Number} the result of the comparison
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // Compare 11 February 1987 and 10 July 1989:
       * var result = compareAsc(new Date(1987, 1, 11), new Date(1989, 6, 10))
       * //=> -1
       *
       * @example
       * // Sort the array of dates:
       * var result = [
       *   new Date(1995, 6, 2),
       *   new Date(1987, 1, 11),
       *   new Date(1989, 6, 10)
       * ].sort(compareAsc)
       * //=> [
       * //   Wed Feb 11 1987 00:00:00,
       * //   Mon Jul 10 1989 00:00:00,
       * //   Sun Jul 02 1995 00:00:00
       * // ]
       */


      function compareAsc(dirtyDateLeft, dirtyDateRight) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(2, arguments);
        var dateLeft = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateLeft);
        var dateRight = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateRight);
        var diff = dateLeft.getTime() - dateRight.getTime();

        if (diff < 0) {
          return -1;
        } else if (diff > 0) {
          return 1; // Return 0 if diff is 0; return NaN if diff is NaN
        } else {
          return diff;
        }
      }
      /***/

    },

    /***/
    "JmF6": function JmF6(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "zipAll", function () {
        return zipAll;
      });
      /* harmony import */


      var _observable_zip__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../observable/zip */
      "1uah");

      function zipAll(project) {
        return function (source) {
          return source.lift(new _observable_zip__WEBPACK_IMPORTED_MODULE_0__["ZipOperator"](project));
        };
      } //# sourceMappingURL=zipAll.js.map

      /***/

    },

    /***/
    "JvlW": function JvlW(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Lithuanian [lt]
      //! author : Mindaugas Mozūras : https://github.com/mmozuras
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var units = {
          ss: 'sekundė_sekundžių_sekundes',
          m: 'minutė_minutės_minutę',
          mm: 'minutės_minučių_minutes',
          h: 'valanda_valandos_valandą',
          hh: 'valandos_valandų_valandas',
          d: 'diena_dienos_dieną',
          dd: 'dienos_dienų_dienas',
          M: 'mėnuo_mėnesio_mėnesį',
          MM: 'mėnesiai_mėnesių_mėnesius',
          y: 'metai_metų_metus',
          yy: 'metai_metų_metus'
        };

        function translateSeconds(number, withoutSuffix, key, isFuture) {
          if (withoutSuffix) {
            return 'kelios sekundės';
          } else {
            return isFuture ? 'kelių sekundžių' : 'kelias sekundes';
          }
        }

        function translateSingular(number, withoutSuffix, key, isFuture) {
          return withoutSuffix ? forms(key)[0] : isFuture ? forms(key)[1] : forms(key)[2];
        }

        function special(number) {
          return number % 10 === 0 || number > 10 && number < 20;
        }

        function forms(key) {
          return units[key].split('_');
        }

        function translate(number, withoutSuffix, key, isFuture) {
          var result = number + ' ';

          if (number === 1) {
            return result + translateSingular(number, withoutSuffix, key[0], isFuture);
          } else if (withoutSuffix) {
            return result + (special(number) ? forms(key)[1] : forms(key)[0]);
          } else {
            if (isFuture) {
              return result + forms(key)[1];
            } else {
              return result + (special(number) ? forms(key)[1] : forms(key)[2]);
            }
          }
        }

        var lt = moment.defineLocale('lt', {
          months: {
            format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split('_'),
            standalone: 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split('_'),
            isFormat: /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/
          },
          monthsShort: 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'),
          weekdays: {
            format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split('_'),
            standalone: 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split('_'),
            isFormat: /dddd HH:mm/
          },
          weekdaysShort: 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'),
          weekdaysMin: 'S_P_A_T_K_Pn_Š'.split('_'),
          weekdaysParseExact: true,
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'YYYY-MM-DD',
            LL: 'YYYY [m.] MMMM D [d.]',
            LLL: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
            LLLL: 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]',
            l: 'YYYY-MM-DD',
            ll: 'YYYY [m.] MMMM D [d.]',
            lll: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
            llll: 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]'
          },
          calendar: {
            sameDay: '[Šiandien] LT',
            nextDay: '[Rytoj] LT',
            nextWeek: 'dddd LT',
            lastDay: '[Vakar] LT',
            lastWeek: '[Praėjusį] dddd LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'po %s',
            past: 'prieš %s',
            s: translateSeconds,
            ss: translate,
            m: translateSingular,
            mm: translate,
            h: translateSingular,
            hh: translate,
            d: translateSingular,
            dd: translate,
            M: translateSingular,
            MM: translate,
            y: translateSingular,
            yy: translate
          },
          dayOfMonthOrdinalParse: /\d{1,2}-oji/,
          ordinal: function ordinal(number) {
            return number + '-oji';
          },
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return lt;
      });
      /***/

    },

    /***/
    "K/tc": function KTc(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Afrikaans [af]
      //! author : Werner Mollentze : https://github.com/wernerm
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var af = moment.defineLocale('af', {
          months: 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split('_'),
          monthsShort: 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'),
          weekdays: 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split('_'),
          weekdaysShort: 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'),
          weekdaysMin: 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'),
          meridiemParse: /vm|nm/i,
          isPM: function isPM(input) {
            return /^nm$/i.test(input);
          },
          meridiem: function meridiem(hours, minutes, isLower) {
            if (hours < 12) {
              return isLower ? 'vm' : 'VM';
            } else {
              return isLower ? 'nm' : 'NM';
            }
          },
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd, D MMMM YYYY HH:mm'
          },
          calendar: {
            sameDay: '[Vandag om] LT',
            nextDay: '[Môre om] LT',
            nextWeek: 'dddd [om] LT',
            lastDay: '[Gister om] LT',
            lastWeek: '[Laas] dddd [om] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'oor %s',
            past: '%s gelede',
            s: "'n paar sekondes",
            ss: '%d sekondes',
            m: "'n minuut",
            mm: '%d minute',
            h: "'n uur",
            hh: '%d ure',
            d: "'n dag",
            dd: '%d dae',
            M: "'n maand",
            MM: '%d maande',
            y: "'n jaar",
            yy: '%d jaar'
          },
          dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
          ordinal: function ordinal(number) {
            return number + (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de'); // Thanks to Joris Röling : https://github.com/jjupiter
          },
          week: {
            dow: 1,
            // Maandag is die eerste dag van die week.
            doy: 4 // Die week wat die 4de Januarie bevat is die eerste week van die jaar.

          }
        });
        return af;
      });
      /***/

    },

    /***/
    "K0NO": function K0NO(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatTableModuleNgFactory", function () {
        return MatTableModuleNgFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "RenderType_MatTable", function () {
        return RenderType_MatTable;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "View_MatTable_0", function () {
        return View_MatTable_0;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "View_MatTable_Host_0", function () {
        return View_MatTable_Host_0;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatTableNgFactory", function () {
        return MatTableNgFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "RenderType_MatHeaderRow", function () {
        return RenderType_MatHeaderRow;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "View_MatHeaderRow_0", function () {
        return View_MatHeaderRow_0;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "View_MatHeaderRow_Host_0", function () {
        return View_MatHeaderRow_Host_0;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatHeaderRowNgFactory", function () {
        return MatHeaderRowNgFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "RenderType_MatFooterRow", function () {
        return RenderType_MatFooterRow;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "View_MatFooterRow_0", function () {
        return View_MatFooterRow_0;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "View_MatFooterRow_Host_0", function () {
        return View_MatFooterRow_Host_0;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatFooterRowNgFactory", function () {
        return MatFooterRowNgFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "RenderType_MatRow", function () {
        return RenderType_MatRow;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "View_MatRow_0", function () {
        return View_MatRow_0;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "View_MatRow_Host_0", function () {
        return View_MatRow_Host_0;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatRowNgFactory", function () {
        return MatRowNgFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "RenderType_MatTextColumn", function () {
        return RenderType_MatTextColumn;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "View_MatTextColumn_0", function () {
        return View_MatTextColumn_0;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "View_MatTextColumn_Host_0", function () {
        return View_MatTextColumn_Host_0;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatTextColumnNgFactory", function () {
        return MatTextColumnNgFactory;
      });
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /* harmony import */


      var _angular_material_table__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/material/table */
      "OaSA");
      /* harmony import */


      var _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! @angular/cdk/bidi */
      "9gLZ");
      /* harmony import */


      var _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! @angular/cdk/platform */
      "SCoL");
      /* harmony import */


      var _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! @angular/cdk/scrolling */
      "7KAL");
      /* harmony import */


      var _angular_cdk_table__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! @angular/cdk/table */
      "GXRp");
      /* harmony import */


      var _angular_material_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
      /*! @angular/material/core */
      "UhP/");
      /* harmony import */


      var _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
      /*! @angular/cdk/a11y */
      "YEUz");
      /* harmony import */


      var _angular_common__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
      /*! @angular/common */
      "SVse");
      /* harmony import */


      var _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
      /*! @angular/cdk/collections */
      "CtHx");
      /**
       * @fileoverview This file was generated by the Angular template compiler. Do not edit.
       *
       * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes,extraRequire}
       * tslint:disable
       */


      var MatTableModuleNgFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵcmf"](_angular_material_table__WEBPACK_IMPORTED_MODULE_1__["MatTableModule"], [], function (_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmod"]([_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](512, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵCodegenComponentFactoryResolver"], [[8, []], [3, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"]], _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModuleRef"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_2__["BidiModule"], _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_2__["BidiModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_3__["PlatformModule"], _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_3__["PlatformModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_4__["CdkScrollableModule"], _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_4__["CdkScrollableModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_4__["ScrollingModule"], _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_4__["ScrollingModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_cdk_table__WEBPACK_IMPORTED_MODULE_5__["CdkTableModule"], _angular_cdk_table__WEBPACK_IMPORTED_MODULE_5__["CdkTableModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_material_core__WEBPACK_IMPORTED_MODULE_6__["MatCommonModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_6__["MatCommonModule"], [_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_7__["HighContrastModeDetector"], [2, _angular_material_core__WEBPACK_IMPORTED_MODULE_6__["MATERIAL_SANITY_CHECKS"]], _angular_common__WEBPACK_IMPORTED_MODULE_8__["DOCUMENT"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_material_table__WEBPACK_IMPORTED_MODULE_1__["MatTableModule"], _angular_material_table__WEBPACK_IMPORTED_MODULE_1__["MatTableModule"], [])]);
      });

      var styles_MatTable = ["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:\"\"}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky;position:sticky}.mat-table-fixed-layout{table-layout:fixed}\n"];

      var RenderType_MatTable = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵcrt"]({
        encapsulation: 2,
        styles: styles_MatTable,
        data: {}
      });

      function View_MatTable_0(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](0, [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵqud"](402653184, 1, {
          _rowOutlet: 0
        }), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵqud"](402653184, 2, {
          _headerRowOutlet: 0
        }), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵqud"](402653184, 3, {
          _footerRowOutlet: 0
        }), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵqud"](402653184, 4, {
          _noDataRowOutlet: 0
        }), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵncd"](null, 0), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵncd"](null, 1), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](6, 16777216, null, null, 1, null, null, null, null, null, null, null)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](7, 16384, [[2, 4]], 0, _angular_cdk_table__WEBPACK_IMPORTED_MODULE_5__["HeaderRowOutlet"], [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]], null, null), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](8, 16777216, null, null, 1, null, null, null, null, null, null, null)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](9, 16384, [[1, 4]], 0, _angular_cdk_table__WEBPACK_IMPORTED_MODULE_5__["DataRowOutlet"], [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]], null, null), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](10, 16777216, null, null, 1, null, null, null, null, null, null, null)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](11, 16384, [[4, 4]], 0, _angular_cdk_table__WEBPACK_IMPORTED_MODULE_5__["NoDataRowOutlet"], [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]], null, null), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](12, 16777216, null, null, 1, null, null, null, null, null, null, null)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](13, 16384, [[3, 4]], 0, _angular_cdk_table__WEBPACK_IMPORTED_MODULE_5__["FooterRowOutlet"], [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]], null, null)], null, null);
      }

      function View_MatTable_Host_0(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](0, 0, null, null, 10, "mat-table", [["class", "mat-table"]], [[2, "mat-table-fixed-layout", null]], null, null, View_MatTable_0, RenderType_MatTable)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵprd"](6144, null, _angular_cdk_table__WEBPACK_IMPORTED_MODULE_5__["CdkTable"], null, [_angular_material_table__WEBPACK_IMPORTED_MODULE_1__["MatTable"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵprd"](6144, null, _angular_cdk_table__WEBPACK_IMPORTED_MODULE_5__["CDK_TABLE"], null, [_angular_material_table__WEBPACK_IMPORTED_MODULE_1__["MatTable"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵprd"](512, null, _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_9__["_VIEW_REPEATER_STRATEGY"], _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_9__["_DisposeViewRepeaterStrategy"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵprd"](512, null, _angular_cdk_table__WEBPACK_IMPORTED_MODULE_5__["_COALESCED_STYLE_SCHEDULER"], _angular_cdk_table__WEBPACK_IMPORTED_MODULE_5__["_CoalescedStyleScheduler"], [_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](5, 2342912, null, 5, _angular_material_table__WEBPACK_IMPORTED_MODULE_1__["MatTable"], [_angular_core__WEBPACK_IMPORTED_MODULE_0__["IterableDiffers"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"], [8, null], [2, _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_2__["Directionality"]], _angular_common__WEBPACK_IMPORTED_MODULE_8__["DOCUMENT"], _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_3__["Platform"], [2, _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_9__["_VIEW_REPEATER_STRATEGY"]], [2, _angular_cdk_table__WEBPACK_IMPORTED_MODULE_5__["_COALESCED_STYLE_SCHEDULER"]], [2, _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_4__["ViewportRuler"]]], null, null), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵqud"](603979776, 1, {
          _contentColumnDefs: 1
        }), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵqud"](603979776, 2, {
          _contentRowDefs: 1
        }), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵqud"](603979776, 3, {
          _contentHeaderRowDefs: 1
        }), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵqud"](603979776, 4, {
          _contentFooterRowDefs: 1
        }), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵqud"](603979776, 5, {
          _noDataRow: 0
        })], function (_ck, _v) {
          _ck(_v, 5, 0);
        }, function (_ck, _v) {
          var currVal_0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 5).fixedLayout;

          _ck(_v, 0, 0, currVal_0);
        });
      }

      var MatTableNgFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵccf"]("mat-table, table[mat-table]", _angular_material_table__WEBPACK_IMPORTED_MODULE_1__["MatTable"], View_MatTable_Host_0, {
        trackBy: "trackBy",
        dataSource: "dataSource",
        multiTemplateDataRows: "multiTemplateDataRows",
        fixedLayout: "fixedLayout"
      }, {}, ["caption", "colgroup, col"]);

      var styles_MatHeaderRow = [];

      var RenderType_MatHeaderRow = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵcrt"]({
        encapsulation: 2,
        styles: styles_MatHeaderRow,
        data: {}
      });

      function View_MatHeaderRow_0(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](0, 16777216, null, null, 1, null, null, null, null, null, null, null)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](1, 147456, null, 0, _angular_cdk_table__WEBPACK_IMPORTED_MODULE_5__["CdkCellOutlet"], [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"]], null, null)], null, null);
      }

      function View_MatHeaderRow_Host_0(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](0, 0, null, null, 2, "mat-header-row", [["class", "mat-header-row"], ["role", "row"]], null, null, null, View_MatHeaderRow_0, RenderType_MatHeaderRow)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵprd"](6144, null, _angular_cdk_table__WEBPACK_IMPORTED_MODULE_5__["CdkHeaderRow"], null, [_angular_material_table__WEBPACK_IMPORTED_MODULE_1__["MatHeaderRow"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](2, 49152, null, 0, _angular_material_table__WEBPACK_IMPORTED_MODULE_1__["MatHeaderRow"], [], null, null)], null, null);
      }

      var MatHeaderRowNgFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵccf"]("mat-header-row, tr[mat-header-row]", _angular_material_table__WEBPACK_IMPORTED_MODULE_1__["MatHeaderRow"], View_MatHeaderRow_Host_0, {}, {}, []);

      var styles_MatFooterRow = [];

      var RenderType_MatFooterRow = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵcrt"]({
        encapsulation: 2,
        styles: styles_MatFooterRow,
        data: {}
      });

      function View_MatFooterRow_0(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](0, 16777216, null, null, 1, null, null, null, null, null, null, null)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](1, 147456, null, 0, _angular_cdk_table__WEBPACK_IMPORTED_MODULE_5__["CdkCellOutlet"], [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"]], null, null)], null, null);
      }

      function View_MatFooterRow_Host_0(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](0, 0, null, null, 2, "mat-footer-row", [["class", "mat-footer-row"], ["role", "row"]], null, null, null, View_MatFooterRow_0, RenderType_MatFooterRow)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵprd"](6144, null, _angular_cdk_table__WEBPACK_IMPORTED_MODULE_5__["CdkFooterRow"], null, [_angular_material_table__WEBPACK_IMPORTED_MODULE_1__["MatFooterRow"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](2, 49152, null, 0, _angular_material_table__WEBPACK_IMPORTED_MODULE_1__["MatFooterRow"], [], null, null)], null, null);
      }

      var MatFooterRowNgFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵccf"]("mat-footer-row, tr[mat-footer-row]", _angular_material_table__WEBPACK_IMPORTED_MODULE_1__["MatFooterRow"], View_MatFooterRow_Host_0, {}, {}, []);

      var styles_MatRow = [];

      var RenderType_MatRow = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵcrt"]({
        encapsulation: 2,
        styles: styles_MatRow,
        data: {}
      });

      function View_MatRow_0(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](0, 16777216, null, null, 1, null, null, null, null, null, null, null)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](1, 147456, null, 0, _angular_cdk_table__WEBPACK_IMPORTED_MODULE_5__["CdkCellOutlet"], [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"]], null, null)], null, null);
      }

      function View_MatRow_Host_0(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](0, 0, null, null, 2, "mat-row", [["class", "mat-row"], ["role", "row"]], null, null, null, View_MatRow_0, RenderType_MatRow)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵprd"](6144, null, _angular_cdk_table__WEBPACK_IMPORTED_MODULE_5__["CdkRow"], null, [_angular_material_table__WEBPACK_IMPORTED_MODULE_1__["MatRow"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](2, 49152, null, 0, _angular_material_table__WEBPACK_IMPORTED_MODULE_1__["MatRow"], [], null, null)], null, null);
      }

      var MatRowNgFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵccf"]("mat-row, tr[mat-row]", _angular_material_table__WEBPACK_IMPORTED_MODULE_1__["MatRow"], View_MatRow_Host_0, {}, {}, []);

      var styles_MatTextColumn = [];

      var RenderType_MatTextColumn = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵcrt"]({
        encapsulation: 2,
        styles: styles_MatTextColumn,
        data: {}
      });

      function View_MatTextColumn_1(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](0, 0, null, null, 2, "th", [["class", "mat-header-cell"], ["mat-header-cell", ""], ["role", "columnheader"]], [[4, "text-align", null]], null, null, null, null)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](1, 16384, null, 0, _angular_material_table__WEBPACK_IMPORTED_MODULE_1__["MatHeaderCell"], [_angular_cdk_table__WEBPACK_IMPORTED_MODULE_5__["CdkColumnDef"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]], null, null), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵted"](2, null, [" ", " "]))], null, function (_ck, _v) {
          var _co = _v.component;
          var currVal_0 = _co.justify;

          _ck(_v, 0, 0, currVal_0);

          var currVal_1 = _co.headerText;

          _ck(_v, 2, 0, currVal_1);
        });
      }

      function View_MatTextColumn_2(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](0, 0, null, null, 2, "td", [["class", "mat-cell"], ["mat-cell", ""], ["role", "gridcell"]], [[4, "text-align", null]], null, null, null, null)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](1, 16384, null, 0, _angular_material_table__WEBPACK_IMPORTED_MODULE_1__["MatCell"], [_angular_cdk_table__WEBPACK_IMPORTED_MODULE_5__["CdkColumnDef"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]], null, null), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵted"](2, null, [" ", " "]))], null, function (_ck, _v) {
          var _co = _v.component;
          var currVal_0 = _co.justify;

          _ck(_v, 0, 0, currVal_0);

          var currVal_1 = _co.dataAccessor(_v.context.$implicit, _co.name);

          _ck(_v, 2, 0, currVal_1);
        });
      }

      function View_MatTextColumn_0(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](0, [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵqud"](402653184, 1, {
          columnDef: 0
        }), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵqud"](402653184, 2, {
          cell: 0
        }), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵqud"](402653184, 3, {
          headerCell: 0
        }), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](3, 0, null, null, 12, null, null, null, null, null, null, null)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵprd"](6144, null, "MAT_SORT_HEADER_COLUMN_DEF", null, [_angular_material_table__WEBPACK_IMPORTED_MODULE_1__["MatColumnDef"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](5, 16384, null, 3, _angular_material_table__WEBPACK_IMPORTED_MODULE_1__["MatColumnDef"], [[2, _angular_cdk_table__WEBPACK_IMPORTED_MODULE_5__["CDK_TABLE"]]], {
          name: [0, "name"]
        }, null), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵqud"](603979776, 4, {
          cell: 0
        }), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵqud"](603979776, 5, {
          headerCell: 0
        }), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵqud"](603979776, 6, {
          footerCell: 0
        }), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵprd"](2048, [[1, 4]], _angular_cdk_table__WEBPACK_IMPORTED_MODULE_5__["CdkColumnDef"], null, [_angular_material_table__WEBPACK_IMPORTED_MODULE_1__["MatColumnDef"]]), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵand"](0, null, null, 2, null, View_MatTextColumn_1)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](11, 16384, null, 0, _angular_material_table__WEBPACK_IMPORTED_MODULE_1__["MatHeaderCellDef"], [_angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]], null, null), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵprd"](2048, [[5, 4], [3, 4]], _angular_cdk_table__WEBPACK_IMPORTED_MODULE_5__["CdkHeaderCellDef"], null, [_angular_material_table__WEBPACK_IMPORTED_MODULE_1__["MatHeaderCellDef"]]), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵand"](0, null, null, 2, null, View_MatTextColumn_2)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](14, 16384, null, 0, _angular_material_table__WEBPACK_IMPORTED_MODULE_1__["MatCellDef"], [_angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]], null, null), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵprd"](2048, [[4, 4], [2, 4]], _angular_cdk_table__WEBPACK_IMPORTED_MODULE_5__["CdkCellDef"], null, [_angular_material_table__WEBPACK_IMPORTED_MODULE_1__["MatCellDef"]])], function (_ck, _v) {
          var currVal_0 = "";

          _ck(_v, 5, 0, currVal_0);
        }, null);
      }

      function View_MatTextColumn_Host_0(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](0, 0, null, null, 1, "mat-text-column", [], null, null, null, View_MatTextColumn_0, RenderType_MatTextColumn)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](1, 245760, null, 0, _angular_material_table__WEBPACK_IMPORTED_MODULE_1__["MatTextColumn"], [[2, _angular_cdk_table__WEBPACK_IMPORTED_MODULE_5__["CdkTable"]], [2, _angular_cdk_table__WEBPACK_IMPORTED_MODULE_5__["TEXT_COLUMN_OPTIONS"]]], null, null)], function (_ck, _v) {
          _ck(_v, 1, 0);
        }, null);
      }

      var MatTextColumnNgFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵccf"]("mat-text-column", _angular_material_table__WEBPACK_IMPORTED_MODULE_1__["MatTextColumn"], View_MatTextColumn_Host_0, {
        name: "name",
        headerText: "headerText",
        dataAccessor: "dataAccessor",
        justify: "justify"
      }, {}, []);
      /***/

    },

    /***/
    "K3mO": function K3mO(module, exports, __webpack_require__) {
      ;

      (function (root, factory, undef) {
        if (true) {
          // CommonJS
          module.exports = exports = factory(__webpack_require__(
          /*! ./core */
          "Ib8C"), __webpack_require__(
          /*! ./sha1 */
          "3y9D"), __webpack_require__(
          /*! ./hmac */
          "WYAk"));
        } else {}
      })(this, function (CryptoJS) {
        (function () {
          // Shortcuts
          var C = CryptoJS;
          var C_lib = C.lib;
          var Base = C_lib.Base;
          var WordArray = C_lib.WordArray;
          var C_algo = C.algo;
          var MD5 = C_algo.MD5;
          /**
           * This key derivation function is meant to conform with EVP_BytesToKey.
           * www.openssl.org/docs/crypto/EVP_BytesToKey.html
           */

          var EvpKDF = C_algo.EvpKDF = Base.extend({
            /**
             * Configuration options.
             *
             * @property {number} keySize The key size in words to generate. Default: 4 (128 bits)
             * @property {Hasher} hasher The hash algorithm to use. Default: MD5
             * @property {number} iterations The number of iterations to perform. Default: 1
             */
            cfg: Base.extend({
              keySize: 128 / 32,
              hasher: MD5,
              iterations: 1
            }),

            /**
             * Initializes a newly created key derivation function.
             *
             * @param {Object} cfg (Optional) The configuration options to use for the derivation.
             *
             * @example
             *
             *     var kdf = CryptoJS.algo.EvpKDF.create();
             *     var kdf = CryptoJS.algo.EvpKDF.create({ keySize: 8 });
             *     var kdf = CryptoJS.algo.EvpKDF.create({ keySize: 8, iterations: 1000 });
             */
            init: function init(cfg) {
              this.cfg = this.cfg.extend(cfg);
            },

            /**
             * Derives a key from a password.
             *
             * @param {WordArray|string} password The password.
             * @param {WordArray|string} salt A salt.
             *
             * @return {WordArray} The derived key.
             *
             * @example
             *
             *     var key = kdf.compute(password, salt);
             */
            compute: function compute(password, salt) {
              var block; // Shortcut

              var cfg = this.cfg; // Init hasher

              var hasher = cfg.hasher.create(); // Initial values

              var derivedKey = WordArray.create(); // Shortcuts

              var derivedKeyWords = derivedKey.words;
              var keySize = cfg.keySize;
              var iterations = cfg.iterations; // Generate key

              while (derivedKeyWords.length < keySize) {
                if (block) {
                  hasher.update(block);
                }

                block = hasher.update(password).finalize(salt);
                hasher.reset(); // Iterations

                for (var i = 1; i < iterations; i++) {
                  block = hasher.finalize(block);
                  hasher.reset();
                }

                derivedKey.concat(block);
              }

              derivedKey.sigBytes = keySize * 4;
              return derivedKey;
            }
          });
          /**
           * Derives a key from a password.
           *
           * @param {WordArray|string} password The password.
           * @param {WordArray|string} salt A salt.
           * @param {Object} cfg (Optional) The configuration options to use for this computation.
           *
           * @return {WordArray} The derived key.
           *
           * @static
           *
           * @example
           *
           *     var key = CryptoJS.EvpKDF(password, salt);
           *     var key = CryptoJS.EvpKDF(password, salt, { keySize: 8 });
           *     var key = CryptoJS.EvpKDF(password, salt, { keySize: 8, iterations: 1000 });
           */

          C.EvpKDF = function (password, salt, cfg) {
            return EvpKDF.create(cfg).compute(password, salt);
          };
        })();

        return CryptoJS.EvpKDF;
      });
      /***/

    },

    /***/
    "K7De": function K7De(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "findIndex", function () {
        return findIndex;
      });
      /* harmony import */


      var _operators_find__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../operators/find */
      "cBqT");

      function findIndex(predicate, thisArg) {
        return function (source) {
          return source.lift(new _operators_find__WEBPACK_IMPORTED_MODULE_0__["FindValueOperator"](predicate, source, true, thisArg));
        };
      } //# sourceMappingURL=findIndex.js.map

      /***/

    },

    /***/
    "KSF8": function KSF8(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Vietnamese [vi]
      //! author : Bang Nguyen : https://github.com/bangnk
      //! author : Chien Kira : https://github.com/chienkira
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var vi = moment.defineLocale('vi', {
          months: 'tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12'.split('_'),
          monthsShort: 'Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12'.split('_'),
          monthsParseExact: true,
          weekdays: 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split('_'),
          weekdaysShort: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
          weekdaysMin: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
          weekdaysParseExact: true,
          meridiemParse: /sa|ch/i,
          isPM: function isPM(input) {
            return /^ch$/i.test(input);
          },
          meridiem: function meridiem(hours, minutes, isLower) {
            if (hours < 12) {
              return isLower ? 'sa' : 'SA';
            } else {
              return isLower ? 'ch' : 'CH';
            }
          },
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM [năm] YYYY',
            LLL: 'D MMMM [năm] YYYY HH:mm',
            LLLL: 'dddd, D MMMM [năm] YYYY HH:mm',
            l: 'DD/M/YYYY',
            ll: 'D MMM YYYY',
            lll: 'D MMM YYYY HH:mm',
            llll: 'ddd, D MMM YYYY HH:mm'
          },
          calendar: {
            sameDay: '[Hôm nay lúc] LT',
            nextDay: '[Ngày mai lúc] LT',
            nextWeek: 'dddd [tuần tới lúc] LT',
            lastDay: '[Hôm qua lúc] LT',
            lastWeek: 'dddd [tuần trước lúc] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: '%s tới',
            past: '%s trước',
            s: 'vài giây',
            ss: '%d giây',
            m: 'một phút',
            mm: '%d phút',
            h: 'một giờ',
            hh: '%d giờ',
            d: 'một ngày',
            dd: '%d ngày',
            w: 'một tuần',
            ww: '%d tuần',
            M: 'một tháng',
            MM: '%d tháng',
            y: 'một năm',
            yy: '%d năm'
          },
          dayOfMonthOrdinalParse: /\d{1,2}/,
          ordinal: function ordinal(number) {
            return number;
          },
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return vi;
      });
      /***/

    },

    /***/
    "KTz0": function KTz0(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Montenegrin [me]
      //! author : Miodrag Nikač <miodrag@restartit.me> : https://github.com/miodragnikac
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var translator = {
          words: {
            //Different grammatical cases
            ss: ['sekund', 'sekunda', 'sekundi'],
            m: ['jedan minut', 'jednog minuta'],
            mm: ['minut', 'minuta', 'minuta'],
            h: ['jedan sat', 'jednog sata'],
            hh: ['sat', 'sata', 'sati'],
            dd: ['dan', 'dana', 'dana'],
            MM: ['mjesec', 'mjeseca', 'mjeseci'],
            yy: ['godina', 'godine', 'godina']
          },
          correctGrammaticalCase: function correctGrammaticalCase(number, wordKey) {
            return number === 1 ? wordKey[0] : number >= 2 && number <= 4 ? wordKey[1] : wordKey[2];
          },
          translate: function translate(number, withoutSuffix, key) {
            var wordKey = translator.words[key];

            if (key.length === 1) {
              return withoutSuffix ? wordKey[0] : wordKey[1];
            } else {
              return number + ' ' + translator.correctGrammaticalCase(number, wordKey);
            }
          }
        };
        var me = moment.defineLocale('me', {
          months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'),
          monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),
          monthsParseExact: true,
          weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
          weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
          weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
          weekdaysParseExact: true,
          longDateFormat: {
            LT: 'H:mm',
            LTS: 'H:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'D. MMMM YYYY',
            LLL: 'D. MMMM YYYY H:mm',
            LLLL: 'dddd, D. MMMM YYYY H:mm'
          },
          calendar: {
            sameDay: '[danas u] LT',
            nextDay: '[sjutra u] LT',
            nextWeek: function nextWeek() {
              switch (this.day()) {
                case 0:
                  return '[u] [nedjelju] [u] LT';

                case 3:
                  return '[u] [srijedu] [u] LT';

                case 6:
                  return '[u] [subotu] [u] LT';

                case 1:
                case 2:
                case 4:
                case 5:
                  return '[u] dddd [u] LT';
              }
            },
            lastDay: '[juče u] LT',
            lastWeek: function lastWeek() {
              var lastWeekDays = ['[prošle] [nedjelje] [u] LT', '[prošlog] [ponedjeljka] [u] LT', '[prošlog] [utorka] [u] LT', '[prošle] [srijede] [u] LT', '[prošlog] [četvrtka] [u] LT', '[prošlog] [petka] [u] LT', '[prošle] [subote] [u] LT'];
              return lastWeekDays[this.day()];
            },
            sameElse: 'L'
          },
          relativeTime: {
            future: 'za %s',
            past: 'prije %s',
            s: 'nekoliko sekundi',
            ss: translator.translate,
            m: translator.translate,
            mm: translator.translate,
            h: translator.translate,
            hh: translator.translate,
            d: 'dan',
            dd: translator.translate,
            M: 'mjesec',
            MM: translator.translate,
            y: 'godinu',
            yy: translator.translate
          },
          dayOfMonthOrdinalParse: /\d{1,2}\./,
          ordinal: '%d.',
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 7 // The week that contains Jan 7th is the first week of the year.

          }
        });
        return me;
      });
      /***/

    },

    /***/
    "Kj3r": function Kj3r(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "debounceTime", function () {
        return debounceTime;
      });
      /* harmony import */


      var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Subscriber */
      "7o/Q");
      /* harmony import */


      var _scheduler_async__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../scheduler/async */
      "D0XW");

      function debounceTime(dueTime) {
        var scheduler = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _scheduler_async__WEBPACK_IMPORTED_MODULE_1__["async"];
        return function (source) {
          return source.lift(new DebounceTimeOperator(dueTime, scheduler));
        };
      }

      var DebounceTimeOperator = /*#__PURE__*/function () {
        function DebounceTimeOperator(dueTime, scheduler) {
          _classCallCheck2(this, DebounceTimeOperator);

          this.dueTime = dueTime;
          this.scheduler = scheduler;
        }

        _createClass2(DebounceTimeOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            return source.subscribe(new DebounceTimeSubscriber(subscriber, this.dueTime, this.scheduler));
          }
        }]);

        return DebounceTimeOperator;
      }();

      var DebounceTimeSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_18) {
        _inherits2(DebounceTimeSubscriber, _Subscriber__WEBPACK_18);

        var _super215 = _createSuper2(DebounceTimeSubscriber);

        function DebounceTimeSubscriber(destination, dueTime, scheduler) {
          var _this518;

          _classCallCheck2(this, DebounceTimeSubscriber);

          _this518 = _super215.call(this, destination);
          _this518.dueTime = dueTime;
          _this518.scheduler = scheduler;
          _this518.debouncedSubscription = null;
          _this518.lastValue = null;
          _this518.hasValue = false;
          return _this518;
        }

        _createClass2(DebounceTimeSubscriber, [{
          key: "_next",
          value: function _next(value) {
            this.clearDebounce();
            this.lastValue = value;
            this.hasValue = true;
            this.add(this.debouncedSubscription = this.scheduler.schedule(dispatchNext, this.dueTime, this));
          }
        }, {
          key: "_complete",
          value: function _complete() {
            this.debouncedNext();
            this.destination.complete();
          }
        }, {
          key: "debouncedNext",
          value: function debouncedNext() {
            this.clearDebounce();

            if (this.hasValue) {
              var lastValue = this.lastValue;
              this.lastValue = null;
              this.hasValue = false;
              this.destination.next(lastValue);
            }
          }
        }, {
          key: "clearDebounce",
          value: function clearDebounce() {
            var debouncedSubscription = this.debouncedSubscription;

            if (debouncedSubscription !== null) {
              this.remove(debouncedSubscription);
              debouncedSubscription.unsubscribe();
              this.debouncedSubscription = null;
            }
          }
        }]);

        return DebounceTimeSubscriber;
      }(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]);

      function dispatchNext(subscriber) {
        subscriber.debouncedNext();
      } //# sourceMappingURL=debounceTime.js.map

      /***/

    },

    /***/
    "KmYQ": function KmYQ(module, exports, __webpack_require__) {
      ;

      (function (root, factory, undef) {
        if (true) {
          // CommonJS
          module.exports = exports = factory(__webpack_require__(
          /*! ./core */
          "Ib8C"), __webpack_require__(
          /*! ./cipher-core */
          "OLod"));
        } else {}
      })(this, function (CryptoJS) {
        /**
         * Zero padding strategy.
         */
        CryptoJS.pad.ZeroPadding = {
          pad: function pad(data, blockSize) {
            // Shortcut
            var blockSizeBytes = blockSize * 4; // Pad

            data.clamp();
            data.sigBytes += blockSizeBytes - (data.sigBytes % blockSizeBytes || blockSizeBytes);
          },
          unpad: function unpad(data) {
            // Shortcut
            var dataWords = data.words; // Unpad

            var i = data.sigBytes - 1;

            for (var i = data.sigBytes - 1; i >= 0; i--) {
              if (dataWords[i >>> 2] >>> 24 - i % 4 * 8 & 0xff) {
                data.sigBytes = i + 1;
                break;
              }
            }
          }
        };
        return CryptoJS.pad.ZeroPadding;
      });
      /***/

    },

    /***/
    "Kqap": function Kqap(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "scan", function () {
        return scan;
      });
      /* harmony import */


      var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Subscriber */
      "7o/Q");

      function scan(accumulator, seed) {
        var hasSeed = false;

        if (arguments.length >= 2) {
          hasSeed = true;
        }

        return function scanOperatorFunction(source) {
          return source.lift(new ScanOperator(accumulator, seed, hasSeed));
        };
      }

      var ScanOperator = /*#__PURE__*/function () {
        function ScanOperator(accumulator, seed) {
          var hasSeed = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;

          _classCallCheck2(this, ScanOperator);

          this.accumulator = accumulator;
          this.seed = seed;
          this.hasSeed = hasSeed;
        }

        _createClass2(ScanOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            return source.subscribe(new ScanSubscriber(subscriber, this.accumulator, this.seed, this.hasSeed));
          }
        }]);

        return ScanOperator;
      }();

      var ScanSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_19) {
        _inherits2(ScanSubscriber, _Subscriber__WEBPACK_19);

        var _super216 = _createSuper2(ScanSubscriber);

        function ScanSubscriber(destination, accumulator, _seed, hasSeed) {
          var _this519;

          _classCallCheck2(this, ScanSubscriber);

          _this519 = _super216.call(this, destination);
          _this519.accumulator = accumulator;
          _this519._seed = _seed;
          _this519.hasSeed = hasSeed;
          _this519.index = 0;
          return _this519;
        }

        _createClass2(ScanSubscriber, [{
          key: "seed",
          get: function get() {
            return this._seed;
          },
          set: function set(value) {
            this.hasSeed = true;
            this._seed = value;
          }
        }, {
          key: "_next",
          value: function _next(value) {
            if (!this.hasSeed) {
              this.seed = value;
              this.destination.next(value);
            } else {
              return this._tryNext(value);
            }
          }
        }, {
          key: "_tryNext",
          value: function _tryNext(value) {
            var index = this.index++;
            var result;

            try {
              result = this.accumulator(this.seed, value, index);
            } catch (err) {
              this.destination.error(err);
            }

            this.seed = result;
            this.destination.next(result);
          }
        }]);

        return ScanSubscriber;
      }(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]); //# sourceMappingURL=scan.js.map

      /***/

    },

    /***/
    "KqfI": function KqfI(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "noop", function () {
        return noop;
      });

      function noop() {} //# sourceMappingURL=noop.js.map

      /***/

    },

    /***/
    "L67P": function L67P(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "HttpClientBackendService", function () {
        return HttpClientBackendService;
      });
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /* harmony import */


      var _interfaces__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ./interfaces */
      "JVVJ");
      /* harmony import */


      var _angular_common_http__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! @angular/common/http */
      "IheW");
      /* harmony import */


      var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! rxjs/operators */
      "kU1M");
      /* harmony import */


      var _http_status_codes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! ./http-status-codes */
      "s2lA");
      /* harmony import */


      var _backend_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! ./backend.service */
      "8XTV");

      var __extends = undefined && undefined.__extends || function () {
        var _extendStatics = function extendStatics(d, b) {
          _extendStatics = Object.setPrototypeOf || {
            __proto__: []
          } instanceof Array && function (d, b) {
            d.__proto__ = b;
          } || function (d, b) {
            for (var p in b) {
              if (b.hasOwnProperty(p)) d[p] = b[p];
            }
          };

          return _extendStatics(d, b);
        };

        return function (d, b) {
          _extendStatics(d, b);

          function __() {
            this.constructor = d;
          }

          d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
        };
      }();

      var __decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
        var c = arguments.length,
            r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
            d;
        if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
          if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
        }
        return c > 3 && r && Object.defineProperty(target, key, r), r;
      };

      var __metadata = undefined && undefined.__metadata || function (k, v) {
        if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
      };

      var __param = undefined && undefined.__param || function (paramIndex, decorator) {
        return function (target, key) {
          decorator(target, key, paramIndex);
        };
      };
      /**
       * For Angular `HttpClient` simulate the behavior of a RESTy web api
       * backed by the simple in-memory data store provided by the injected `InMemoryDbService`.
       * Conforms mostly to behavior described here:
       * http://www.restapitutorial.com/lessons/httpmethods.html
       *
       * ### Usage
       *
       * Create an in-memory data store class that implements `InMemoryDbService`.
       * Call `config` static method with this service class and optional configuration object:
       * ```
       * // other imports
       * import { HttpClientModule } from '@angular/common/http';
       * import { HttpClientInMemoryWebApiModule } from 'angular-in-memory-web-api';
       *
       * import { InMemHeroService, inMemConfig } from '../api/in-memory-hero.service';
       * @NgModule({
       *  imports: [
       *    HttpModule,
       *    HttpClientInMemoryWebApiModule.forRoot(InMemHeroService, inMemConfig),
       *    ...
       *  ],
       *  ...
       * })
       * export class AppModule { ... }
       * ```
       */


      var HttpClientBackendService = function (_super) {
        __extends(HttpClientBackendService, _super);

        function HttpClientBackendService(inMemDbService, config, xhrFactory) {
          var _this = _super.call(this, inMemDbService, config) || this;

          _this.xhrFactory = xhrFactory;
          return _this;
        }

        HttpClientBackendService.prototype.handle = function (req) {
          try {
            return this.handleRequest(req);
          } catch (error) {
            var err = error.message || error;
            var resOptions_1 = this.createErrorResponseOptions(req.url, _http_status_codes__WEBPACK_IMPORTED_MODULE_4__["STATUS"].INTERNAL_SERVER_ERROR, "" + err);
            return this.createResponse$(function () {
              return resOptions_1;
            });
          }
        }; ////  protected overrides /////


        HttpClientBackendService.prototype.getJsonBody = function (req) {
          return req.body;
        };

        HttpClientBackendService.prototype.getRequestMethod = function (req) {
          return (req.method || 'get').toLowerCase();
        };

        HttpClientBackendService.prototype.createHeaders = function (headers) {
          return new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpHeaders"](headers);
        };

        HttpClientBackendService.prototype.createQueryMap = function (search) {
          var map = new Map();

          if (search) {
            var params_1 = new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpParams"]({
              fromString: search
            });
            params_1.keys().forEach(function (p) {
              return map.set(p, params_1.getAll(p));
            });
          }

          return map;
        };

        HttpClientBackendService.prototype.createResponse$fromResponseOptions$ = function (resOptions$) {
          return resOptions$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(function (opts) {
            return new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpResponse"](opts);
          }));
        };

        HttpClientBackendService.prototype.createPassThruBackend = function () {
          try {
            return new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpXhrBackend"](this.xhrFactory);
          } catch (ex) {
            ex.message = 'Cannot create passThru404 backend; ' + (ex.message || '');
            throw ex;
          }
        };

        HttpClientBackendService = __decorate([__param(1, Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"])(_interfaces__WEBPACK_IMPORTED_MODULE_1__["InMemoryBackendConfig"])), __param(1, Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"])()), __metadata("design:paramtypes", [_interfaces__WEBPACK_IMPORTED_MODULE_1__["InMemoryDbService"], _interfaces__WEBPACK_IMPORTED_MODULE_1__["InMemoryBackendConfigArgs"], _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["XhrFactory"]])], HttpClientBackendService);

        HttpClientBackendService.ɵfac = function HttpClientBackendService_Factory(t) {
          return new (t || HttpClientBackendService)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_interfaces__WEBPACK_IMPORTED_MODULE_1__["InMemoryDbService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_interfaces__WEBPACK_IMPORTED_MODULE_1__["InMemoryBackendConfig"], 8), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_2__["XhrFactory"]));
        };

        HttpClientBackendService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
          token: HttpClientBackendService,
          factory: function factory(t) {
            return HttpClientBackendService.ɵfac(t);
          }
        });
        /*@__PURE__*/

        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](HttpClientBackendService, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
          }], function () {
            return [{
              type: _interfaces__WEBPACK_IMPORTED_MODULE_1__["InMemoryDbService"]
            }, {
              type: _interfaces__WEBPACK_IMPORTED_MODULE_1__["InMemoryBackendConfigArgs"],
              decorators: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
                args: [_interfaces__WEBPACK_IMPORTED_MODULE_1__["InMemoryBackendConfig"]]
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
              }]
            }, {
              type: _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["XhrFactory"]
            }];
          }, null);
        })();

        return HttpClientBackendService;
      }(_backend_service__WEBPACK_IMPORTED_MODULE_5__["BackendService"]); //# sourceMappingURL=http-client-backend.service.js.map

      /***/

    },

    /***/
    "L8hi": function L8hi(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return endOfWeek;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/toInteger/index.js */
      "/h9T");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name endOfWeek
       * @category Week Helpers
       * @summary Return the end of a week for the given date.
       *
       * @description
       * Return the end of a week for the given date.
       * The result will be in the local timezone.
       *
       * ### 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 {Date|Number} date - the original date
       * @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 end of a week
       * @throws {TypeError} 1 argument required
       * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6
       *
       * @example
       * // The end of a week for 2 September 2014 11:55:00:
       * var result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0))
       * //=> Sat Sep 06 2014 23:59:59.999
       *
       * @example
       * // If the week starts on Monday, the end of the week for 2 September 2014 11:55:00:
       * var result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })
       * //=> Sun Sep 07 2014 23:59:59.999
       */


      function endOfWeek(dirtyDate, dirtyOptions) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(1, arguments);
        var options = dirtyOptions || {};
        var locale = options.locale;
        var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn;
        var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(localeWeekStartsOn);
        var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN

        if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
          throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
        }

        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);
        var day = date.getDay();
        var diff = (day < weekStartsOn ? -7 : 0) + 6 - (day - weekStartsOn);
        date.setDate(date.getDate() + diff);
        date.setHours(23, 59, 59, 999);
        return date;
      }
      /***/

    },

    /***/
    "LPPQ": function LPPQ(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return parse;
      });
      /* harmony import */


      var _locale_en_US_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../locale/en-US/index.js */
      "iSMj");
      /* harmony import */


      var _subMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../subMilliseconds/index.js */
      "g9KO");
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_assign_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../_lib/assign/index.js */
      "+LmI");
      /* harmony import */


      var _lib_format_longFormatters_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! ../_lib/format/longFormatters/index.js */
      "Ib5w");
      /* harmony import */


      var _lib_getTimezoneOffsetInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! ../_lib/getTimezoneOffsetInMilliseconds/index.js */
      "JCDJ");
      /* harmony import */


      var _lib_protectedTokens_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
      /*! ../_lib/protectedTokens/index.js */
      "3REe");
      /* harmony import */


      var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
      /*! ../_lib/toInteger/index.js */
      "/h9T");
      /* harmony import */


      var _lib_parsers_index_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
      /*! ./_lib/parsers/index.js */
      "Rngw");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");

      var TIMEZONE_UNIT_PRIORITY = 10; // This RegExp consists of three parts separated by `|`:
      // - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token
      //   (one of the certain letters followed by `o`)
      // - (\w)\1* matches any sequences of the same letter
      // - '' matches two quote characters in a row
      // - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('),
      //   except a single quote symbol, which ends the sequence.
      //   Two quote characters do not end the sequence.
      //   If there is no matching single quote
      //   then the sequence will continue until the end of the string.
      // - . matches any single character unmatched by previous parts of the RegExps

      var formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g; // This RegExp catches symbols escaped by quotes, and also
      // sequences of symbols P, p, and the combinations like `PPPPPPPppppp`

      var longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;
      var escapedStringRegExp = /^'([^]*?)'?$/;
      var doubleQuoteRegExp = /''/g;
      var notWhitespaceRegExp = /\S/;
      var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
      /**
       * @name parse
       * @category Common Helpers
       * @summary Parse the date.
       *
       * @description
       * Return the date parsed from string using the given format string.
       *
       * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries.
       * > See: https://git.io/fxCyr
       *
       * The characters in the format string wrapped between two single quotes characters (') are escaped.
       * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.
       *
       * Format of the format string is based on Unicode Technical Standard #35:
       * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
       * with a few additions (see note 5 below the table).
       *
       * Not all tokens are compatible. Combinations that don't make sense or could lead to bugs are prohibited
       * and will throw `RangeError`. For example usage of 24-hour format token with AM/PM token will throw an exception:
       *
       * ```javascript
       * parse('23 AM', 'HH a', new Date())
       * //=> RangeError: The format string mustn't contain `HH` and `a` at the same time
       * ```
       *
       * See the compatibility table: https://docs.google.com/spreadsheets/d/e/2PACX-1vQOPU3xUhplll6dyoMmVUXHKl_8CRDs6_ueLmex3SoqwhuolkuN3O05l4rqx5h1dKX8eb46Ul-CCSrq/pubhtml?gid=0&single=true
       *
       * Accepted format string patterns:
       * | Unit                            |Prior| Pattern | Result examples                   | Notes |
       * |---------------------------------|-----|---------|-----------------------------------|-------|
       * | Era                             | 140 | G..GGG  | AD, BC                            |       |
       * |                                 |     | GGGG    | Anno Domini, Before Christ        | 2     |
       * |                                 |     | GGGGG   | A, B                              |       |
       * | Calendar year                   | 130 | y       | 44, 1, 1900, 2017, 9999           | 4     |
       * |                                 |     | yo      | 44th, 1st, 1900th, 9999999th      | 4,5   |
       * |                                 |     | yy      | 44, 01, 00, 17                    | 4     |
       * |                                 |     | yyy     | 044, 001, 123, 999                | 4     |
       * |                                 |     | yyyy    | 0044, 0001, 1900, 2017            | 4     |
       * |                                 |     | yyyyy   | ...                               | 2,4   |
       * | Local week-numbering year       | 130 | Y       | 44, 1, 1900, 2017, 9000           | 4     |
       * |                                 |     | Yo      | 44th, 1st, 1900th, 9999999th      | 4,5   |
       * |                                 |     | YY      | 44, 01, 00, 17                    | 4,6   |
       * |                                 |     | YYY     | 044, 001, 123, 999                | 4     |
       * |                                 |     | YYYY    | 0044, 0001, 1900, 2017            | 4,6   |
       * |                                 |     | YYYYY   | ...                               | 2,4   |
       * | ISO week-numbering year         | 130 | R       | -43, 1, 1900, 2017, 9999, -9999   | 4,5   |
       * |                                 |     | RR      | -43, 01, 00, 17                   | 4,5   |
       * |                                 |     | RRR     | -043, 001, 123, 999, -999         | 4,5   |
       * |                                 |     | RRRR    | -0043, 0001, 2017, 9999, -9999    | 4,5   |
       * |                                 |     | RRRRR   | ...                               | 2,4,5 |
       * | Extended year                   | 130 | u       | -43, 1, 1900, 2017, 9999, -999    | 4     |
       * |                                 |     | uu      | -43, 01, 99, -99                  | 4     |
       * |                                 |     | uuu     | -043, 001, 123, 999, -999         | 4     |
       * |                                 |     | uuuu    | -0043, 0001, 2017, 9999, -9999    | 4     |
       * |                                 |     | uuuuu   | ...                               | 2,4   |
       * | Quarter (formatting)            | 120 | Q       | 1, 2, 3, 4                        |       |
       * |                                 |     | Qo      | 1st, 2nd, 3rd, 4th                | 5     |
       * |                                 |     | QQ      | 01, 02, 03, 04                    |       |
       * |                                 |     | QQQ     | Q1, Q2, Q3, Q4                    |       |
       * |                                 |     | QQQQ    | 1st quarter, 2nd quarter, ...     | 2     |
       * |                                 |     | QQQQQ   | 1, 2, 3, 4                        | 4     |
       * | Quarter (stand-alone)           | 120 | q       | 1, 2, 3, 4                        |       |
       * |                                 |     | qo      | 1st, 2nd, 3rd, 4th                | 5     |
       * |                                 |     | qq      | 01, 02, 03, 04                    |       |
       * |                                 |     | qqq     | Q1, Q2, Q3, Q4                    |       |
       * |                                 |     | qqqq    | 1st quarter, 2nd quarter, ...     | 2     |
       * |                                 |     | qqqqq   | 1, 2, 3, 4                        | 3     |
       * | Month (formatting)              | 110 | M       | 1, 2, ..., 12                     |       |
       * |                                 |     | Mo      | 1st, 2nd, ..., 12th               | 5     |
       * |                                 |     | MM      | 01, 02, ..., 12                   |       |
       * |                                 |     | MMM     | Jan, Feb, ..., Dec                |       |
       * |                                 |     | MMMM    | January, February, ..., December  | 2     |
       * |                                 |     | MMMMM   | J, F, ..., D                      |       |
       * | Month (stand-alone)             | 110 | L       | 1, 2, ..., 12                     |       |
       * |                                 |     | Lo      | 1st, 2nd, ..., 12th               | 5     |
       * |                                 |     | LL      | 01, 02, ..., 12                   |       |
       * |                                 |     | LLL     | Jan, Feb, ..., Dec                |       |
       * |                                 |     | LLLL    | January, February, ..., December  | 2     |
       * |                                 |     | LLLLL   | J, F, ..., D                      |       |
       * | Local week of year              | 100 | w       | 1, 2, ..., 53                     |       |
       * |                                 |     | wo      | 1st, 2nd, ..., 53th               | 5     |
       * |                                 |     | ww      | 01, 02, ..., 53                   |       |
       * | ISO week of year                | 100 | I       | 1, 2, ..., 53                     | 5     |
       * |                                 |     | Io      | 1st, 2nd, ..., 53th               | 5     |
       * |                                 |     | II      | 01, 02, ..., 53                   | 5     |
       * | Day of month                    |  90 | d       | 1, 2, ..., 31                     |       |
       * |                                 |     | do      | 1st, 2nd, ..., 31st               | 5     |
       * |                                 |     | dd      | 01, 02, ..., 31                   |       |
       * | Day of year                     |  90 | D       | 1, 2, ..., 365, 366               | 7     |
       * |                                 |     | Do      | 1st, 2nd, ..., 365th, 366th       | 5     |
       * |                                 |     | DD      | 01, 02, ..., 365, 366             | 7     |
       * |                                 |     | DDD     | 001, 002, ..., 365, 366           |       |
       * |                                 |     | DDDD    | ...                               | 2     |
       * | Day of week (formatting)        |  90 | E..EEE  | Mon, Tue, Wed, ..., Sun           |       |
       * |                                 |     | EEEE    | Monday, Tuesday, ..., Sunday      | 2     |
       * |                                 |     | EEEEE   | M, T, W, T, F, S, S               |       |
       * |                                 |     | EEEEEE  | Mo, Tu, We, Th, Fr, Su, Sa        |       |
       * | ISO day of week (formatting)    |  90 | i       | 1, 2, 3, ..., 7                   | 5     |
       * |                                 |     | io      | 1st, 2nd, ..., 7th                | 5     |
       * |                                 |     | ii      | 01, 02, ..., 07                   | 5     |
       * |                                 |     | iii     | Mon, Tue, Wed, ..., Sun           | 5     |
       * |                                 |     | iiii    | Monday, Tuesday, ..., Sunday      | 2,5   |
       * |                                 |     | iiiii   | M, T, W, T, F, S, S               | 5     |
       * |                                 |     | iiiiii  | Mo, Tu, We, Th, Fr, Su, Sa        | 5     |
       * | Local day of week (formatting)  |  90 | e       | 2, 3, 4, ..., 1                   |       |
       * |                                 |     | eo      | 2nd, 3rd, ..., 1st                | 5     |
       * |                                 |     | ee      | 02, 03, ..., 01                   |       |
       * |                                 |     | eee     | Mon, Tue, Wed, ..., Sun           |       |
       * |                                 |     | eeee    | Monday, Tuesday, ..., Sunday      | 2     |
       * |                                 |     | eeeee   | M, T, W, T, F, S, S               |       |
       * |                                 |     | eeeeee  | Mo, Tu, We, Th, Fr, Su, Sa        |       |
       * | Local day of week (stand-alone) |  90 | c       | 2, 3, 4, ..., 1                   |       |
       * |                                 |     | co      | 2nd, 3rd, ..., 1st                | 5     |
       * |                                 |     | cc      | 02, 03, ..., 01                   |       |
       * |                                 |     | ccc     | Mon, Tue, Wed, ..., Sun           |       |
       * |                                 |     | cccc    | Monday, Tuesday, ..., Sunday      | 2     |
       * |                                 |     | ccccc   | M, T, W, T, F, S, S               |       |
       * |                                 |     | cccccc  | Mo, Tu, We, Th, Fr, Su, Sa        |       |
       * | AM, PM                          |  80 | a..aaa  | AM, PM                            |       |
       * |                                 |     | aaaa    | a.m., p.m.                        | 2     |
       * |                                 |     | aaaaa   | a, p                              |       |
       * | AM, PM, noon, midnight          |  80 | b..bbb  | AM, PM, noon, midnight            |       |
       * |                                 |     | bbbb    | a.m., p.m., noon, midnight        | 2     |
       * |                                 |     | bbbbb   | a, p, n, mi                       |       |
       * | Flexible day period             |  80 | B..BBB  | at night, in the morning, ...     |       |
       * |                                 |     | BBBB    | at night, in the morning, ...     | 2     |
       * |                                 |     | BBBBB   | at night, in the morning, ...     |       |
       * | Hour [1-12]                     |  70 | h       | 1, 2, ..., 11, 12                 |       |
       * |                                 |     | ho      | 1st, 2nd, ..., 11th, 12th         | 5     |
       * |                                 |     | hh      | 01, 02, ..., 11, 12               |       |
       * | Hour [0-23]                     |  70 | H       | 0, 1, 2, ..., 23                  |       |
       * |                                 |     | Ho      | 0th, 1st, 2nd, ..., 23rd          | 5     |
       * |                                 |     | HH      | 00, 01, 02, ..., 23               |       |
       * | Hour [0-11]                     |  70 | K       | 1, 2, ..., 11, 0                  |       |
       * |                                 |     | Ko      | 1st, 2nd, ..., 11th, 0th          | 5     |
       * |                                 |     | KK      | 01, 02, ..., 11, 00               |       |
       * | Hour [1-24]                     |  70 | k       | 24, 1, 2, ..., 23                 |       |
       * |                                 |     | ko      | 24th, 1st, 2nd, ..., 23rd         | 5     |
       * |                                 |     | kk      | 24, 01, 02, ..., 23               |       |
       * | Minute                          |  60 | m       | 0, 1, ..., 59                     |       |
       * |                                 |     | mo      | 0th, 1st, ..., 59th               | 5     |
       * |                                 |     | mm      | 00, 01, ..., 59                   |       |
       * | Second                          |  50 | s       | 0, 1, ..., 59                     |       |
       * |                                 |     | so      | 0th, 1st, ..., 59th               | 5     |
       * |                                 |     | ss      | 00, 01, ..., 59                   |       |
       * | Seconds timestamp               |  40 | t       | 512969520                         |       |
       * |                                 |     | tt      | ...                               | 2     |
       * | Fraction of second              |  30 | S       | 0, 1, ..., 9                      |       |
       * |                                 |     | SS      | 00, 01, ..., 99                   |       |
       * |                                 |     | SSS     | 000, 0001, ..., 999               |       |
       * |                                 |     | SSSS    | ...                               | 2     |
       * | Milliseconds timestamp          |  20 | T       | 512969520900                      |       |
       * |                                 |     | TT      | ...                               | 2     |
       * | Timezone (ISO-8601 w/ Z)        |  10 | X       | -08, +0530, Z                     |       |
       * |                                 |     | XX      | -0800, +0530, Z                   |       |
       * |                                 |     | XXX     | -08:00, +05:30, Z                 |       |
       * |                                 |     | XXXX    | -0800, +0530, Z, +123456          | 2     |
       * |                                 |     | XXXXX   | -08:00, +05:30, Z, +12:34:56      |       |
       * | Timezone (ISO-8601 w/o Z)       |  10 | x       | -08, +0530, +00                   |       |
       * |                                 |     | xx      | -0800, +0530, +0000               |       |
       * |                                 |     | xxx     | -08:00, +05:30, +00:00            | 2     |
       * |                                 |     | xxxx    | -0800, +0530, +0000, +123456      |       |
       * |                                 |     | xxxxx   | -08:00, +05:30, +00:00, +12:34:56 |       |
       * | Long localized date             |  NA | P       | 05/29/1453                        | 5,8   |
       * |                                 |     | PP      | May 29, 1453                      |       |
       * |                                 |     | PPP     | May 29th, 1453                    |       |
       * |                                 |     | PPPP    | Sunday, May 29th, 1453            | 2,5,8 |
       * | Long localized time             |  NA | p       | 12:00 AM                          | 5,8   |
       * |                                 |     | pp      | 12:00:00 AM                       |       |
       * | Combination of date and time    |  NA | Pp      | 05/29/1453, 12:00 AM              |       |
       * |                                 |     | PPpp    | May 29, 1453, 12:00:00 AM         |       |
       * |                                 |     | PPPpp   | May 29th, 1453 at ...             |       |
       * |                                 |     | PPPPpp  | Sunday, May 29th, 1453 at ...     | 2,5,8 |
       * Notes:
       * 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale
       *    are the same as "stand-alone" units, but are different in some languages.
       *    "Formatting" units are declined according to the rules of the language
       *    in the context of a date. "Stand-alone" units are always nominative singular.
       *    In `format` function, they will produce different result:
       *
       *    `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'`
       *
       *    `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'`
       *
       *    `parse` will try to match both formatting and stand-alone units interchangably.
       *
       * 2. Any sequence of the identical letters is a pattern, unless it is escaped by
       *    the single quote characters (see below).
       *    If the sequence is longer than listed in table:
       *    - for numerical units (`yyyyyyyy`) `parse` will try to match a number
       *      as wide as the sequence
       *    - for text units (`MMMMMMMM`) `parse` will try to match the widest variation of the unit.
       *      These variations are marked with "2" in the last column of the table.
       *
       * 3. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales.
       *    These tokens represent the shortest form of the quarter.
       *
       * 4. The main difference between `y` and `u` patterns are B.C. years:
       *
       *    | Year | `y` | `u` |
       *    |------|-----|-----|
       *    | AC 1 |   1 |   1 |
       *    | BC 1 |   1 |   0 |
       *    | BC 2 |   2 |  -1 |
       *
       *    Also `yy` will try to guess the century of two digit year by proximity with `referenceDate`:
       *
       *    `parse('50', 'yy', new Date(2018, 0, 1)) //=> Sat Jan 01 2050 00:00:00`
       *
       *    `parse('75', 'yy', new Date(2018, 0, 1)) //=> Wed Jan 01 1975 00:00:00`
       *
       *    while `uu` will just assign the year as is:
       *
       *    `parse('50', 'uu', new Date(2018, 0, 1)) //=> Sat Jan 01 0050 00:00:00`
       *
       *    `parse('75', 'uu', new Date(2018, 0, 1)) //=> Tue Jan 01 0075 00:00:00`
       *
       *    The same difference is true for local and ISO week-numbering years (`Y` and `R`),
       *    except local week-numbering years are dependent on `options.weekStartsOn`
       *    and `options.firstWeekContainsDate` (compare [setISOWeekYear]{@link https://date-fns.org/docs/setISOWeekYear}
       *    and [setWeekYear]{@link https://date-fns.org/docs/setWeekYear}).
       *
       * 5. These patterns are not in the Unicode Technical Standard #35:
       *    - `i`: ISO day of week
       *    - `I`: ISO week of year
       *    - `R`: ISO week-numbering year
       *    - `o`: ordinal number modifier
       *    - `P`: long localized date
       *    - `p`: long localized time
       *
       * 6. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.
       *    You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://git.io/fxCyr
       *
       * 7. `D` and `DD` tokens represent days of the year but they are ofthen confused with days of the month.
       *    You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://git.io/fxCyr
       *
       * 8. `P+` tokens do not have a defined priority since they are merely aliases to other tokens based
       *    on the given locale.
       *
       *    using `en-US` locale: `P` => `MM/dd/yyyy`
       *    using `en-US` locale: `p` => `hh:mm a`
       *    using `pt-BR` locale: `P` => `dd/MM/yyyy`
       *    using `pt-BR` locale: `p` => `HH:mm`
       *
       * Values will be assigned to the date in the descending order of its unit's priority.
       * Units of an equal priority overwrite each other in the order of appearance.
       *
       * If no values of higher priority are parsed (e.g. when parsing string 'January 1st' without a year),
       * the values will be taken from 3rd argument `referenceDate` which works as a context of parsing.
       *
       * `referenceDate` must be passed for correct work of the function.
       * If you're not sure which `referenceDate` to supply, create a new instance of Date:
       * `parse('02/11/2014', 'MM/dd/yyyy', new Date())`
       * In this case parsing will be done in the context of the current date.
       * If `referenceDate` is `Invalid Date` or a value not convertible to valid `Date`,
       * then `Invalid Date` will be returned.
       *
       * The result may vary by locale.
       *
       * If `formatString` matches with `dateString` but does not provides tokens, `referenceDate` will be returned.
       *
       * If parsing failed, `Invalid Date` will be returned.
       * Invalid Date is a Date, whose time value is NaN.
       * Time value of Date: http://es5.github.io/#x15.9.1.1
       *
       * ### 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).
       *
       * - Old `parse` was renamed to `toDate`.
       *   Now `parse` is a new function which parses a string using a provided format.
       *
       *   ```javascript
       *   // Before v2.0.0
       *   parse('2016-01-01')
       *
       *   // v2.0.0 onward
       *   toDate('2016-01-01')
       *   parse('2016-01-01', 'yyyy-MM-dd', new Date())
       *   ```
       *
       * @param {String} dateString - the string to parse
       * @param {String} formatString - the string of tokens
       * @param {Date|Number} referenceDate - defines values missing from the parsed dateString
       * @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)
       * @param {1|2|3|4|5|6|7} [options.firstWeekContainsDate=1] - the day of January, which is always in the first week of the year
       * @param {Boolean} [options.useAdditionalWeekYearTokens=false] - if true, allows usage of the week-numbering year tokens `YY` and `YYYY`;
       *   see: https://git.io/fxCyr
       * @param {Boolean} [options.useAdditionalDayOfYearTokens=false] - if true, allows usage of the day of year tokens `D` and `DD`;
       *   see: https://git.io/fxCyr
       * @returns {Date} the parsed date
       * @throws {TypeError} 3 arguments required
       * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6
       * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7
       * @throws {RangeError} `options.locale` must contain `match` property
       * @throws {RangeError} use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://git.io/fxCyr
       * @throws {RangeError} use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://git.io/fxCyr
       * @throws {RangeError} use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://git.io/fxCyr
       * @throws {RangeError} use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://git.io/fxCyr
       * @throws {RangeError} format string contains an unescaped latin alphabet character
       *
       * @example
       * // Parse 11 February 2014 from middle-endian format:
       * var result = parse('02/11/2014', 'MM/dd/yyyy', new Date())
       * //=> Tue Feb 11 2014 00:00:00
       *
       * @example
       * // Parse 28th of February in Esperanto locale in the context of 2010 year:
       * import eo from 'date-fns/locale/eo'
       * var result = parse('28-a de februaro', "do 'de' MMMM", new Date(2010, 0, 1), {
       *   locale: eo
       * })
       * //=> Sun Feb 28 2010 00:00:00
       */

      function parse(dirtyDateString, dirtyFormatString, dirtyReferenceDate, dirtyOptions) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_9__["default"])(3, arguments);
        var dateString = String(dirtyDateString);
        var formatString = String(dirtyFormatString);
        var options = dirtyOptions || {};
        var locale = options.locale || _locale_en_US_index_js__WEBPACK_IMPORTED_MODULE_0__["default"];

        if (!locale.match) {
          throw new RangeError('locale must contain match property');
        }

        var localeFirstWeekContainsDate = locale.options && locale.options.firstWeekContainsDate;
        var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_7__["default"])(localeFirstWeekContainsDate);
        var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_7__["default"])(options.firstWeekContainsDate); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN

        if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
          throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');
        }

        var localeWeekStartsOn = locale.options && locale.options.weekStartsOn;
        var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_7__["default"])(localeWeekStartsOn);
        var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_7__["default"])(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN

        if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
          throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
        }

        if (formatString === '') {
          if (dateString === '') {
            return Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(dirtyReferenceDate);
          } else {
            return new Date(NaN);
          }
        }

        var subFnOptions = {
          firstWeekContainsDate: firstWeekContainsDate,
          weekStartsOn: weekStartsOn,
          locale: locale // If timezone isn't specified, it will be set to the system timezone

        };
        var setters = [{
          priority: TIMEZONE_UNIT_PRIORITY,
          subPriority: -1,
          set: dateToSystemTimezone,
          index: 0
        }];
        var i;
        var tokens = formatString.match(longFormattingTokensRegExp).map(function (substring) {
          var firstCharacter = substring[0];

          if (firstCharacter === 'p' || firstCharacter === 'P') {
            var longFormatter = _lib_format_longFormatters_index_js__WEBPACK_IMPORTED_MODULE_4__["default"][firstCharacter];
            return longFormatter(substring, locale.formatLong, subFnOptions);
          }

          return substring;
        }).join('').match(formattingTokensRegExp);
        var usedTokens = [];

        for (i = 0; i < tokens.length; i++) {
          var token = tokens[i];

          if (!options.useAdditionalWeekYearTokens && Object(_lib_protectedTokens_index_js__WEBPACK_IMPORTED_MODULE_6__["isProtectedWeekYearToken"])(token)) {
            Object(_lib_protectedTokens_index_js__WEBPACK_IMPORTED_MODULE_6__["throwProtectedError"])(token, formatString, dirtyDateString);
          }

          if (!options.useAdditionalDayOfYearTokens && Object(_lib_protectedTokens_index_js__WEBPACK_IMPORTED_MODULE_6__["isProtectedDayOfYearToken"])(token)) {
            Object(_lib_protectedTokens_index_js__WEBPACK_IMPORTED_MODULE_6__["throwProtectedError"])(token, formatString, dirtyDateString);
          }

          var firstCharacter = token[0];
          var parser = _lib_parsers_index_js__WEBPACK_IMPORTED_MODULE_8__["default"][firstCharacter];

          if (parser) {
            var incompatibleTokens = parser.incompatibleTokens;

            if (Array.isArray(incompatibleTokens)) {
              var incompatibleToken = void 0;

              for (var _i = 0; _i < usedTokens.length; _i++) {
                var usedToken = usedTokens[_i].token;

                if (incompatibleTokens.indexOf(usedToken) !== -1 || usedToken === firstCharacter) {
                  incompatibleToken = usedTokens[_i];
                  break;
                }
              }

              if (incompatibleToken) {
                throw new RangeError("The format string mustn't contain `".concat(incompatibleToken.fullToken, "` and `").concat(token, "` at the same time"));
              }
            } else if (parser.incompatibleTokens === '*' && usedTokens.length) {
              throw new RangeError("The format string mustn't contain `".concat(token, "` and any other token at the same time"));
            }

            usedTokens.push({
              token: firstCharacter,
              fullToken: token
            });
            var parseResult = parser.parse(dateString, token, locale.match, subFnOptions);

            if (!parseResult) {
              return new Date(NaN);
            }

            setters.push({
              priority: parser.priority,
              subPriority: parser.subPriority || 0,
              set: parser.set,
              validate: parser.validate,
              value: parseResult.value,
              index: setters.length
            });
            dateString = parseResult.rest;
          } else {
            if (firstCharacter.match(unescapedLatinCharacterRegExp)) {
              throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`');
            } // Replace two single quote characters with one single quote character


            if (token === "''") {
              token = "'";
            } else if (firstCharacter === "'") {
              token = cleanEscapedString(token);
            } // Cut token from string, or, if string doesn't match the token, return Invalid Date


            if (dateString.indexOf(token) === 0) {
              dateString = dateString.slice(token.length);
            } else {
              return new Date(NaN);
            }
          }
        } // Check if the remaining input contains something other than whitespace


        if (dateString.length > 0 && notWhitespaceRegExp.test(dateString)) {
          return new Date(NaN);
        }

        var uniquePrioritySetters = setters.map(function (setter) {
          return setter.priority;
        }).sort(function (a, b) {
          return b - a;
        }).filter(function (priority, index, array) {
          return array.indexOf(priority) === index;
        }).map(function (priority) {
          return setters.filter(function (setter) {
            return setter.priority === priority;
          }).sort(function (a, b) {
            return b.subPriority - a.subPriority;
          });
        }).map(function (setterArray) {
          return setterArray[0];
        });
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(dirtyReferenceDate);

        if (isNaN(date)) {
          return new Date(NaN);
        } // Convert the date in system timezone to the same date in UTC+00:00 timezone.
        // This ensures that when UTC functions will be implemented, locales will be compatible with them.
        // See an issue about UTC functions: https://github.com/date-fns/date-fns/issues/37


        var utcDate = Object(_subMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(date, Object(_lib_getTimezoneOffsetInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_5__["default"])(date));
        var flags = {};

        for (i = 0; i < uniquePrioritySetters.length; i++) {
          var setter = uniquePrioritySetters[i];

          if (setter.validate && !setter.validate(utcDate, setter.value, subFnOptions)) {
            return new Date(NaN);
          }

          var result = setter.set(utcDate, flags, setter.value, subFnOptions); // Result is tuple (date, flags)

          if (result[0]) {
            utcDate = result[0];
            Object(_lib_assign_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(flags, result[1]); // Result is date
          } else {
            utcDate = result;
          }
        }

        return utcDate;
      }

      function dateToSystemTimezone(date, flags) {
        if (flags.timestampIsSet) {
          return date;
        }

        var convertedDate = new Date(0);
        convertedDate.setFullYear(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate());
        convertedDate.setHours(date.getUTCHours(), date.getUTCMinutes(), date.getUTCSeconds(), date.getUTCMilliseconds());
        return convertedDate;
      }

      function cleanEscapedString(input) {
        return input.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp, "'");
      }
      /***/

    },

    /***/
    "LRne": function LRne(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "of", function () {
        return of;
      });
      /* harmony import */


      var _util_isScheduler__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../util/isScheduler */
      "z+Ro");
      /* harmony import */


      var _fromArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ./fromArray */
      "yCtX");
      /* harmony import */


      var _scheduled_scheduleArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../scheduled/scheduleArray */
      "jZKg");

      function of() {
        for (var _len47 = arguments.length, args = new Array(_len47), _key49 = 0; _key49 < _len47; _key49++) {
          args[_key49] = arguments[_key49];
        }

        var scheduler = args[args.length - 1];

        if (Object(_util_isScheduler__WEBPACK_IMPORTED_MODULE_0__["isScheduler"])(scheduler)) {
          args.pop();
          return Object(_scheduled_scheduleArray__WEBPACK_IMPORTED_MODULE_2__["scheduleArray"])(args, scheduler);
        } else {
          return Object(_fromArray__WEBPACK_IMPORTED_MODULE_1__["fromArray"])(args);
        }
      } //# sourceMappingURL=of.js.map

      /***/

    },

    /***/
    "Lhse": function Lhse(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "getSymbolIterator", function () {
        return getSymbolIterator;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "iterator", function () {
        return iterator;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "$$iterator", function () {
        return $$iterator;
      });

      function getSymbolIterator() {
        if (typeof Symbol !== 'function' || !Symbol.iterator) {
          return '@@iterator';
        }

        return Symbol.iterator;
      }

      var iterator = getSymbolIterator();
      var $$iterator = iterator; //# sourceMappingURL=iterator.js.map

      /***/
    },

    /***/
    "Loxo": function Loxo(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Uzbek [uz]
      //! author : Sardor Muminov : https://github.com/muminoff
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var uz = moment.defineLocale('uz', {
          months: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split('_'),
          monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
          weekdays: 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'),
          weekdaysShort: 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'),
          weekdaysMin: 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'),
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'D MMMM YYYY, dddd HH:mm'
          },
          calendar: {
            sameDay: '[Бугун соат] LT [да]',
            nextDay: '[Эртага] LT [да]',
            nextWeek: 'dddd [куни соат] LT [да]',
            lastDay: '[Кеча соат] LT [да]',
            lastWeek: '[Утган] dddd [куни соат] LT [да]',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'Якин %s ичида',
            past: 'Бир неча %s олдин',
            s: 'фурсат',
            ss: '%d фурсат',
            m: 'бир дакика',
            mm: '%d дакика',
            h: 'бир соат',
            hh: '%d соат',
            d: 'бир кун',
            dd: '%d кун',
            M: 'бир ой',
            MM: '%d ой',
            y: 'бир йил',
            yy: '%d йил'
          },
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 7 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return uz;
      });
      /***/

    },

    /***/
    "LvDl": function LvDl(module, exports, __webpack_require__) {
      /* WEBPACK VAR INJECTION */
      (function (module) {
        var __WEBPACK_AMD_DEFINE_RESULT__;
        /**
        * @license
        * Lodash <https://lodash.com/>
        * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
        * Released under MIT license <https://lodash.com/license>
        * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
        * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
        */


        ;
        (function () {
          /** Used as a safe reference for `undefined` in pre-ES5 environments. */
          var undefined;
          /** Used as the semantic version number. */

          var VERSION = '4.17.20';
          /** Used as the size to enable large array optimizations. */

          var LARGE_ARRAY_SIZE = 200;
          /** Error message constants. */

          var CORE_ERROR_TEXT = 'Unsupported core-js use. Try https://npms.io/search?q=ponyfill.',
              FUNC_ERROR_TEXT = 'Expected a function';
          /** Used to stand-in for `undefined` hash values. */

          var HASH_UNDEFINED = '__lodash_hash_undefined__';
          /** Used as the maximum memoize cache size. */

          var MAX_MEMOIZE_SIZE = 500;
          /** Used as the internal argument placeholder. */

          var PLACEHOLDER = '__lodash_placeholder__';
          /** Used to compose bitmasks for cloning. */

          var CLONE_DEEP_FLAG = 1,
              CLONE_FLAT_FLAG = 2,
              CLONE_SYMBOLS_FLAG = 4;
          /** Used to compose bitmasks for value comparisons. */

          var COMPARE_PARTIAL_FLAG = 1,
              COMPARE_UNORDERED_FLAG = 2;
          /** Used to compose bitmasks for function metadata. */

          var WRAP_BIND_FLAG = 1,
              WRAP_BIND_KEY_FLAG = 2,
              WRAP_CURRY_BOUND_FLAG = 4,
              WRAP_CURRY_FLAG = 8,
              WRAP_CURRY_RIGHT_FLAG = 16,
              WRAP_PARTIAL_FLAG = 32,
              WRAP_PARTIAL_RIGHT_FLAG = 64,
              WRAP_ARY_FLAG = 128,
              WRAP_REARG_FLAG = 256,
              WRAP_FLIP_FLAG = 512;
          /** Used as default options for `_.truncate`. */

          var DEFAULT_TRUNC_LENGTH = 30,
              DEFAULT_TRUNC_OMISSION = '...';
          /** Used to detect hot functions by number of calls within a span of milliseconds. */

          var HOT_COUNT = 800,
              HOT_SPAN = 16;
          /** Used to indicate the type of lazy iteratees. */

          var LAZY_FILTER_FLAG = 1,
              LAZY_MAP_FLAG = 2,
              LAZY_WHILE_FLAG = 3;
          /** Used as references for various `Number` constants. */

          var INFINITY = 1 / 0,
              MAX_SAFE_INTEGER = 9007199254740991,
              MAX_INTEGER = 1.7976931348623157e+308,
              NAN = 0 / 0;
          /** Used as references for the maximum length and index of an array. */

          var MAX_ARRAY_LENGTH = 4294967295,
              MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1,
              HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1;
          /** Used to associate wrap methods with their bit flags. */

          var wrapFlags = [['ary', WRAP_ARY_FLAG], ['bind', WRAP_BIND_FLAG], ['bindKey', WRAP_BIND_KEY_FLAG], ['curry', WRAP_CURRY_FLAG], ['curryRight', WRAP_CURRY_RIGHT_FLAG], ['flip', WRAP_FLIP_FLAG], ['partial', WRAP_PARTIAL_FLAG], ['partialRight', WRAP_PARTIAL_RIGHT_FLAG], ['rearg', WRAP_REARG_FLAG]];
          /** `Object#toString` result references. */

          var argsTag = '[object Arguments]',
              arrayTag = '[object Array]',
              asyncTag = '[object AsyncFunction]',
              boolTag = '[object Boolean]',
              dateTag = '[object Date]',
              domExcTag = '[object DOMException]',
              errorTag = '[object Error]',
              funcTag = '[object Function]',
              genTag = '[object GeneratorFunction]',
              mapTag = '[object Map]',
              numberTag = '[object Number]',
              nullTag = '[object Null]',
              objectTag = '[object Object]',
              promiseTag = '[object Promise]',
              proxyTag = '[object Proxy]',
              regexpTag = '[object RegExp]',
              setTag = '[object Set]',
              stringTag = '[object String]',
              symbolTag = '[object Symbol]',
              undefinedTag = '[object Undefined]',
              weakMapTag = '[object WeakMap]',
              weakSetTag = '[object WeakSet]';
          var arrayBufferTag = '[object ArrayBuffer]',
              dataViewTag = '[object DataView]',
              float32Tag = '[object Float32Array]',
              float64Tag = '[object Float64Array]',
              int8Tag = '[object Int8Array]',
              int16Tag = '[object Int16Array]',
              int32Tag = '[object Int32Array]',
              uint8Tag = '[object Uint8Array]',
              uint8ClampedTag = '[object Uint8ClampedArray]',
              uint16Tag = '[object Uint16Array]',
              uint32Tag = '[object Uint32Array]';
          /** Used to match empty string literals in compiled template source. */

          var reEmptyStringLeading = /\b__p \+= '';/g,
              reEmptyStringMiddle = /\b(__p \+=) '' \+/g,
              reEmptyStringTrailing = /(__e\(.*?\)|\b__t\)) \+\n'';/g;
          /** Used to match HTML entities and HTML characters. */

          var reEscapedHtml = /&(?:amp|lt|gt|quot|#39);/g,
              reUnescapedHtml = /[&<>"']/g,
              reHasEscapedHtml = RegExp(reEscapedHtml.source),
              reHasUnescapedHtml = RegExp(reUnescapedHtml.source);
          /** Used to match template delimiters. */

          var reEscape = /<%-([\s\S]+?)%>/g,
              reEvaluate = /<%([\s\S]+?)%>/g,
              reInterpolate = /<%=([\s\S]+?)%>/g;
          /** Used to match property names within property paths. */

          var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
              reIsPlainProp = /^\w*$/,
              rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
          /**
           * Used to match `RegExp`
           * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
           */

          var reRegExpChar = /[\\^$.*+?()[\]{}|]/g,
              reHasRegExpChar = RegExp(reRegExpChar.source);
          /** Used to match leading and trailing whitespace. */

          var reTrim = /^\s+|\s+$/g,
              reTrimStart = /^\s+/,
              reTrimEnd = /\s+$/;
          /** Used to match wrap detail comments. */

          var reWrapComment = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,
              reWrapDetails = /\{\n\/\* \[wrapped with (.+)\] \*/,
              reSplitDetails = /,? & /;
          /** Used to match words composed of alphanumeric characters. */

          var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
          /** Used to match backslashes in property paths. */

          var reEscapeChar = /\\(\\)?/g;
          /**
           * Used to match
           * [ES template delimiters](http://ecma-international.org/ecma-262/7.0/#sec-template-literal-lexical-components).
           */

          var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g;
          /** Used to match `RegExp` flags from their coerced string values. */

          var reFlags = /\w*$/;
          /** Used to detect bad signed hexadecimal string values. */

          var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
          /** Used to detect binary string values. */

          var reIsBinary = /^0b[01]+$/i;
          /** Used to detect host constructors (Safari). */

          var reIsHostCtor = /^\[object .+?Constructor\]$/;
          /** Used to detect octal string values. */

          var reIsOctal = /^0o[0-7]+$/i;
          /** Used to detect unsigned integer values. */

          var reIsUint = /^(?:0|[1-9]\d*)$/;
          /** Used to match Latin Unicode letters (excluding mathematical operators). */

          var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
          /** Used to ensure capturing order of template delimiters. */

          var reNoMatch = /($^)/;
          /** Used to match unescaped characters in compiled string literals. */

          var reUnescapedString = /['\n\r\u2028\u2029\\]/g;
          /** Used to compose unicode character classes. */

          var rsAstralRange = "\\ud800-\\udfff",
              rsComboMarksRange = "\\u0300-\\u036f",
              reComboHalfMarksRange = "\\ufe20-\\ufe2f",
              rsComboSymbolsRange = "\\u20d0-\\u20ff",
              rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
              rsDingbatRange = "\\u2700-\\u27bf",
              rsLowerRange = 'a-z\\xdf-\\xf6\\xf8-\\xff',
              rsMathOpRange = '\\xac\\xb1\\xd7\\xf7',
              rsNonCharRange = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf',
              rsPunctuationRange = "\\u2000-\\u206f",
              rsSpaceRange = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",
              rsUpperRange = 'A-Z\\xc0-\\xd6\\xd8-\\xde',
              rsVarRange = "\\ufe0e\\ufe0f",
              rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;
          /** Used to compose unicode capture groups. */

          var rsApos = "['\u2019]",
              rsAstral = '[' + rsAstralRange + ']',
              rsBreak = '[' + rsBreakRange + ']',
              rsCombo = '[' + rsComboRange + ']',
              rsDigits = '\\d+',
              rsDingbat = '[' + rsDingbatRange + ']',
              rsLower = '[' + rsLowerRange + ']',
              rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',
              rsFitz = "\\ud83c[\\udffb-\\udfff]",
              rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
              rsNonAstral = '[^' + rsAstralRange + ']',
              rsRegional = "(?:\\ud83c[\\udde6-\\uddff]){2}",
              rsSurrPair = "[\\ud800-\\udbff][\\udc00-\\udfff]",
              rsUpper = '[' + rsUpperRange + ']',
              rsZWJ = "\\u200d";
          /** Used to compose unicode regexes. */

          var rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')',
              rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')',
              rsOptContrLower = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?',
              rsOptContrUpper = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?',
              reOptMod = rsModifier + '?',
              rsOptVar = '[' + rsVarRange + ']?',
              rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
              rsOrdLower = '\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])',
              rsOrdUpper = '\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])',
              rsSeq = rsOptVar + reOptMod + rsOptJoin,
              rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq,
              rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';
          /** Used to match apostrophes. */

          var reApos = RegExp(rsApos, 'g');
          /**
           * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and
           * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).
           */

          var reComboMark = RegExp(rsCombo, 'g');
          /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */

          var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');
          /** Used to match complex or compound words. */

          var reUnicodeWord = RegExp([rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')', rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')', rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower, rsUpper + '+' + rsOptContrUpper, rsOrdUpper, rsOrdLower, rsDigits, rsEmoji].join('|'), 'g');
          /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */

          var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');
          /** Used to detect strings that need a more robust regexp to match words. */

          var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
          /** Used to assign default `context` object properties. */

          var contextProps = ['Array', 'Buffer', 'DataView', 'Date', 'Error', 'Float32Array', 'Float64Array', 'Function', 'Int8Array', 'Int16Array', 'Int32Array', 'Map', 'Math', 'Object', 'Promise', 'RegExp', 'Set', 'String', 'Symbol', 'TypeError', 'Uint8Array', 'Uint8ClampedArray', 'Uint16Array', 'Uint32Array', 'WeakMap', '_', 'clearTimeout', 'isFinite', 'parseInt', 'setTimeout'];
          /** Used to make template sourceURLs easier to identify. */

          var templateCounter = -1;
          /** Used to identify `toStringTag` values of typed arrays. */

          var typedArrayTags = {};
          typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
          typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;
          /** Used to identify `toStringTag` values supported by `_.clone`. */

          var cloneableTags = {};
          cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = cloneableTags[boolTag] = cloneableTags[dateTag] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag] = cloneableTags[numberTag] = cloneableTags[objectTag] = cloneableTags[regexpTag] = cloneableTags[setTag] = cloneableTags[stringTag] = cloneableTags[symbolTag] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
          cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false;
          /** Used to map Latin Unicode letters to basic Latin letters. */

          var deburredLetters = {
            // Latin-1 Supplement block.
            '\xc0': 'A',
            '\xc1': 'A',
            '\xc2': 'A',
            '\xc3': 'A',
            '\xc4': 'A',
            '\xc5': 'A',
            '\xe0': 'a',
            '\xe1': 'a',
            '\xe2': 'a',
            '\xe3': 'a',
            '\xe4': 'a',
            '\xe5': 'a',
            '\xc7': 'C',
            '\xe7': 'c',
            '\xd0': 'D',
            '\xf0': 'd',
            '\xc8': 'E',
            '\xc9': 'E',
            '\xca': 'E',
            '\xcb': 'E',
            '\xe8': 'e',
            '\xe9': 'e',
            '\xea': 'e',
            '\xeb': 'e',
            '\xcc': 'I',
            '\xcd': 'I',
            '\xce': 'I',
            '\xcf': 'I',
            '\xec': 'i',
            '\xed': 'i',
            '\xee': 'i',
            '\xef': 'i',
            '\xd1': 'N',
            '\xf1': 'n',
            '\xd2': 'O',
            '\xd3': 'O',
            '\xd4': 'O',
            '\xd5': 'O',
            '\xd6': 'O',
            '\xd8': 'O',
            '\xf2': 'o',
            '\xf3': 'o',
            '\xf4': 'o',
            '\xf5': 'o',
            '\xf6': 'o',
            '\xf8': 'o',
            '\xd9': 'U',
            '\xda': 'U',
            '\xdb': 'U',
            '\xdc': 'U',
            '\xf9': 'u',
            '\xfa': 'u',
            '\xfb': 'u',
            '\xfc': 'u',
            '\xdd': 'Y',
            '\xfd': 'y',
            '\xff': 'y',
            '\xc6': 'Ae',
            '\xe6': 'ae',
            '\xde': 'Th',
            '\xfe': 'th',
            '\xdf': 'ss',
            // Latin Extended-A block.
            "\u0100": 'A',
            "\u0102": 'A',
            "\u0104": 'A',
            "\u0101": 'a',
            "\u0103": 'a',
            "\u0105": 'a',
            "\u0106": 'C',
            "\u0108": 'C',
            "\u010A": 'C',
            "\u010C": 'C',
            "\u0107": 'c',
            "\u0109": 'c',
            "\u010B": 'c',
            "\u010D": 'c',
            "\u010E": 'D',
            "\u0110": 'D',
            "\u010F": 'd',
            "\u0111": 'd',
            "\u0112": 'E',
            "\u0114": 'E',
            "\u0116": 'E',
            "\u0118": 'E',
            "\u011A": 'E',
            "\u0113": 'e',
            "\u0115": 'e',
            "\u0117": 'e',
            "\u0119": 'e',
            "\u011B": 'e',
            "\u011C": 'G',
            "\u011E": 'G',
            "\u0120": 'G',
            "\u0122": 'G',
            "\u011D": 'g',
            "\u011F": 'g',
            "\u0121": 'g',
            "\u0123": 'g',
            "\u0124": 'H',
            "\u0126": 'H',
            "\u0125": 'h',
            "\u0127": 'h',
            "\u0128": 'I',
            "\u012A": 'I',
            "\u012C": 'I',
            "\u012E": 'I',
            "\u0130": 'I',
            "\u0129": 'i',
            "\u012B": 'i',
            "\u012D": 'i',
            "\u012F": 'i',
            "\u0131": 'i',
            "\u0134": 'J',
            "\u0135": 'j',
            "\u0136": 'K',
            "\u0137": 'k',
            "\u0138": 'k',
            "\u0139": 'L',
            "\u013B": 'L',
            "\u013D": 'L',
            "\u013F": 'L',
            "\u0141": 'L',
            "\u013A": 'l',
            "\u013C": 'l',
            "\u013E": 'l',
            "\u0140": 'l',
            "\u0142": 'l',
            "\u0143": 'N',
            "\u0145": 'N',
            "\u0147": 'N',
            "\u014A": 'N',
            "\u0144": 'n',
            "\u0146": 'n',
            "\u0148": 'n',
            "\u014B": 'n',
            "\u014C": 'O',
            "\u014E": 'O',
            "\u0150": 'O',
            "\u014D": 'o',
            "\u014F": 'o',
            "\u0151": 'o',
            "\u0154": 'R',
            "\u0156": 'R',
            "\u0158": 'R',
            "\u0155": 'r',
            "\u0157": 'r',
            "\u0159": 'r',
            "\u015A": 'S',
            "\u015C": 'S',
            "\u015E": 'S',
            "\u0160": 'S',
            "\u015B": 's',
            "\u015D": 's',
            "\u015F": 's',
            "\u0161": 's',
            "\u0162": 'T',
            "\u0164": 'T',
            "\u0166": 'T',
            "\u0163": 't',
            "\u0165": 't',
            "\u0167": 't',
            "\u0168": 'U',
            "\u016A": 'U',
            "\u016C": 'U',
            "\u016E": 'U',
            "\u0170": 'U',
            "\u0172": 'U',
            "\u0169": 'u',
            "\u016B": 'u',
            "\u016D": 'u',
            "\u016F": 'u',
            "\u0171": 'u',
            "\u0173": 'u',
            "\u0174": 'W',
            "\u0175": 'w',
            "\u0176": 'Y',
            "\u0177": 'y',
            "\u0178": 'Y',
            "\u0179": 'Z',
            "\u017B": 'Z',
            "\u017D": 'Z',
            "\u017A": 'z',
            "\u017C": 'z',
            "\u017E": 'z',
            "\u0132": 'IJ',
            "\u0133": 'ij',
            "\u0152": 'Oe',
            "\u0153": 'oe',
            "\u0149": "'n",
            "\u017F": 's'
          };
          /** Used to map characters to HTML entities. */

          var htmlEscapes = {
            '&': '&amp;',
            '<': '&lt;',
            '>': '&gt;',
            '"': '&quot;',
            "'": '&#39;'
          };
          /** Used to map HTML entities to characters. */

          var htmlUnescapes = {
            '&amp;': '&',
            '&lt;': '<',
            '&gt;': '>',
            '&quot;': '"',
            '&#39;': "'"
          };
          /** Used to escape characters for inclusion in compiled string literals. */

          var stringEscapes = {
            '\\': '\\',
            "'": "'",
            '\n': 'n',
            '\r': 'r',
            "\u2028": 'u2028',
            "\u2029": 'u2029'
          };
          /** Built-in method references without a dependency on `root`. */

          var freeParseFloat = parseFloat,
              freeParseInt = parseInt;
          /** Detect free variable `global` from Node.js. */

          var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
          /** Detect free variable `self`. */

          var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
          /** Used as a reference to the global object. */

          var root = freeGlobal || freeSelf || Function('return this')();
          /** Detect free variable `exports`. */

          var freeExports = true && exports && !exports.nodeType && exports;
          /** Detect free variable `module`. */

          var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
          /** Detect the popular CommonJS extension `module.exports`. */

          var moduleExports = freeModule && freeModule.exports === freeExports;
          /** Detect free variable `process` from Node.js. */

          var freeProcess = moduleExports && freeGlobal.process;
          /** Used to access faster Node.js helpers. */

          var nodeUtil = function () {
            try {
              // Use `util.types` for Node.js 10+.
              var types = freeModule && freeModule.require && freeModule.require('util').types;

              if (types) {
                return types;
              } // Legacy `process.binding('util')` for Node.js < 10.


              return freeProcess && freeProcess.binding && freeProcess.binding('util');
            } catch (e) {}
          }();
          /* Node.js helper references. */


          var nodeIsArrayBuffer = nodeUtil && nodeUtil.isArrayBuffer,
              nodeIsDate = nodeUtil && nodeUtil.isDate,
              nodeIsMap = nodeUtil && nodeUtil.isMap,
              nodeIsRegExp = nodeUtil && nodeUtil.isRegExp,
              nodeIsSet = nodeUtil && nodeUtil.isSet,
              nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
          /*--------------------------------------------------------------------------*/

          /**
           * A faster alternative to `Function#apply`, this function invokes `func`
           * with the `this` binding of `thisArg` and the arguments of `args`.
           *
           * @private
           * @param {Function} func The function to invoke.
           * @param {*} thisArg The `this` binding of `func`.
           * @param {Array} args The arguments to invoke `func` with.
           * @returns {*} Returns the result of `func`.
           */

          function apply(func, thisArg, args) {
            switch (args.length) {
              case 0:
                return func.call(thisArg);

              case 1:
                return func.call(thisArg, args[0]);

              case 2:
                return func.call(thisArg, args[0], args[1]);

              case 3:
                return func.call(thisArg, args[0], args[1], args[2]);
            }

            return func.apply(thisArg, args);
          }
          /**
           * A specialized version of `baseAggregator` for arrays.
           *
           * @private
           * @param {Array} [array] The array to iterate over.
           * @param {Function} setter The function to set `accumulator` values.
           * @param {Function} iteratee The iteratee to transform keys.
           * @param {Object} accumulator The initial aggregated object.
           * @returns {Function} Returns `accumulator`.
           */


          function arrayAggregator(array, setter, iteratee, accumulator) {
            var index = -1,
                length = array == null ? 0 : array.length;

            while (++index < length) {
              var value = array[index];
              setter(accumulator, value, iteratee(value), array);
            }

            return accumulator;
          }
          /**
           * A specialized version of `_.forEach` for arrays without support for
           * iteratee shorthands.
           *
           * @private
           * @param {Array} [array] The array to iterate over.
           * @param {Function} iteratee The function invoked per iteration.
           * @returns {Array} Returns `array`.
           */


          function arrayEach(array, iteratee) {
            var index = -1,
                length = array == null ? 0 : array.length;

            while (++index < length) {
              if (iteratee(array[index], index, array) === false) {
                break;
              }
            }

            return array;
          }
          /**
           * A specialized version of `_.forEachRight` for arrays without support for
           * iteratee shorthands.
           *
           * @private
           * @param {Array} [array] The array to iterate over.
           * @param {Function} iteratee The function invoked per iteration.
           * @returns {Array} Returns `array`.
           */


          function arrayEachRight(array, iteratee) {
            var length = array == null ? 0 : array.length;

            while (length--) {
              if (iteratee(array[length], length, array) === false) {
                break;
              }
            }

            return array;
          }
          /**
           * A specialized version of `_.every` for arrays without support for
           * iteratee shorthands.
           *
           * @private
           * @param {Array} [array] The array to iterate over.
           * @param {Function} predicate The function invoked per iteration.
           * @returns {boolean} Returns `true` if all elements pass the predicate check,
           *  else `false`.
           */


          function arrayEvery(array, predicate) {
            var index = -1,
                length = array == null ? 0 : array.length;

            while (++index < length) {
              if (!predicate(array[index], index, array)) {
                return false;
              }
            }

            return true;
          }
          /**
           * A specialized version of `_.filter` for arrays without support for
           * iteratee shorthands.
           *
           * @private
           * @param {Array} [array] The array to iterate over.
           * @param {Function} predicate The function invoked per iteration.
           * @returns {Array} Returns the new filtered array.
           */


          function arrayFilter(array, predicate) {
            var index = -1,
                length = array == null ? 0 : array.length,
                resIndex = 0,
                result = [];

            while (++index < length) {
              var value = array[index];

              if (predicate(value, index, array)) {
                result[resIndex++] = value;
              }
            }

            return result;
          }
          /**
           * A specialized version of `_.includes` for arrays without support for
           * specifying an index to search from.
           *
           * @private
           * @param {Array} [array] The array to inspect.
           * @param {*} target The value to search for.
           * @returns {boolean} Returns `true` if `target` is found, else `false`.
           */


          function arrayIncludes(array, value) {
            var length = array == null ? 0 : array.length;
            return !!length && baseIndexOf(array, value, 0) > -1;
          }
          /**
           * This function is like `arrayIncludes` except that it accepts a comparator.
           *
           * @private
           * @param {Array} [array] The array to inspect.
           * @param {*} target The value to search for.
           * @param {Function} comparator The comparator invoked per element.
           * @returns {boolean} Returns `true` if `target` is found, else `false`.
           */


          function arrayIncludesWith(array, value, comparator) {
            var index = -1,
                length = array == null ? 0 : array.length;

            while (++index < length) {
              if (comparator(value, array[index])) {
                return true;
              }
            }

            return false;
          }
          /**
           * A specialized version of `_.map` for arrays without support for iteratee
           * shorthands.
           *
           * @private
           * @param {Array} [array] The array to iterate over.
           * @param {Function} iteratee The function invoked per iteration.
           * @returns {Array} Returns the new mapped array.
           */


          function arrayMap(array, iteratee) {
            var index = -1,
                length = array == null ? 0 : array.length,
                result = Array(length);

            while (++index < length) {
              result[index] = iteratee(array[index], index, array);
            }

            return result;
          }
          /**
           * Appends the elements of `values` to `array`.
           *
           * @private
           * @param {Array} array The array to modify.
           * @param {Array} values The values to append.
           * @returns {Array} Returns `array`.
           */


          function arrayPush(array, values) {
            var index = -1,
                length = values.length,
                offset = array.length;

            while (++index < length) {
              array[offset + index] = values[index];
            }

            return array;
          }
          /**
           * A specialized version of `_.reduce` for arrays without support for
           * iteratee shorthands.
           *
           * @private
           * @param {Array} [array] The array to iterate over.
           * @param {Function} iteratee The function invoked per iteration.
           * @param {*} [accumulator] The initial value.
           * @param {boolean} [initAccum] Specify using the first element of `array` as
           *  the initial value.
           * @returns {*} Returns the accumulated value.
           */


          function arrayReduce(array, iteratee, accumulator, initAccum) {
            var index = -1,
                length = array == null ? 0 : array.length;

            if (initAccum && length) {
              accumulator = array[++index];
            }

            while (++index < length) {
              accumulator = iteratee(accumulator, array[index], index, array);
            }

            return accumulator;
          }
          /**
           * A specialized version of `_.reduceRight` for arrays without support for
           * iteratee shorthands.
           *
           * @private
           * @param {Array} [array] The array to iterate over.
           * @param {Function} iteratee The function invoked per iteration.
           * @param {*} [accumulator] The initial value.
           * @param {boolean} [initAccum] Specify using the last element of `array` as
           *  the initial value.
           * @returns {*} Returns the accumulated value.
           */


          function arrayReduceRight(array, iteratee, accumulator, initAccum) {
            var length = array == null ? 0 : array.length;

            if (initAccum && length) {
              accumulator = array[--length];
            }

            while (length--) {
              accumulator = iteratee(accumulator, array[length], length, array);
            }

            return accumulator;
          }
          /**
           * A specialized version of `_.some` for arrays without support for iteratee
           * shorthands.
           *
           * @private
           * @param {Array} [array] The array to iterate over.
           * @param {Function} predicate The function invoked per iteration.
           * @returns {boolean} Returns `true` if any element passes the predicate check,
           *  else `false`.
           */


          function arraySome(array, predicate) {
            var index = -1,
                length = array == null ? 0 : array.length;

            while (++index < length) {
              if (predicate(array[index], index, array)) {
                return true;
              }
            }

            return false;
          }
          /**
           * Gets the size of an ASCII `string`.
           *
           * @private
           * @param {string} string The string inspect.
           * @returns {number} Returns the string size.
           */


          var asciiSize = baseProperty('length');
          /**
           * Converts an ASCII `string` to an array.
           *
           * @private
           * @param {string} string The string to convert.
           * @returns {Array} Returns the converted array.
           */

          function asciiToArray(string) {
            return string.split('');
          }
          /**
           * Splits an ASCII `string` into an array of its words.
           *
           * @private
           * @param {string} The string to inspect.
           * @returns {Array} Returns the words of `string`.
           */


          function asciiWords(string) {
            return string.match(reAsciiWord) || [];
          }
          /**
           * The base implementation of methods like `_.findKey` and `_.findLastKey`,
           * without support for iteratee shorthands, which iterates over `collection`
           * using `eachFunc`.
           *
           * @private
           * @param {Array|Object} collection The collection to inspect.
           * @param {Function} predicate The function invoked per iteration.
           * @param {Function} eachFunc The function to iterate over `collection`.
           * @returns {*} Returns the found element or its key, else `undefined`.
           */


          function baseFindKey(collection, predicate, eachFunc) {
            var result;
            eachFunc(collection, function (value, key, collection) {
              if (predicate(value, key, collection)) {
                result = key;
                return false;
              }
            });
            return result;
          }
          /**
           * The base implementation of `_.findIndex` and `_.findLastIndex` without
           * support for iteratee shorthands.
           *
           * @private
           * @param {Array} array The array to inspect.
           * @param {Function} predicate The function invoked per iteration.
           * @param {number} fromIndex The index to search from.
           * @param {boolean} [fromRight] Specify iterating from right to left.
           * @returns {number} Returns the index of the matched value, else `-1`.
           */


          function baseFindIndex(array, predicate, fromIndex, fromRight) {
            var length = array.length,
                index = fromIndex + (fromRight ? 1 : -1);

            while (fromRight ? index-- : ++index < length) {
              if (predicate(array[index], index, array)) {
                return index;
              }
            }

            return -1;
          }
          /**
           * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
           *
           * @private
           * @param {Array} array The array to inspect.
           * @param {*} value The value to search for.
           * @param {number} fromIndex The index to search from.
           * @returns {number} Returns the index of the matched value, else `-1`.
           */


          function baseIndexOf(array, value, fromIndex) {
            return value === value ? strictIndexOf(array, value, fromIndex) : baseFindIndex(array, baseIsNaN, fromIndex);
          }
          /**
           * This function is like `baseIndexOf` except that it accepts a comparator.
           *
           * @private
           * @param {Array} array The array to inspect.
           * @param {*} value The value to search for.
           * @param {number} fromIndex The index to search from.
           * @param {Function} comparator The comparator invoked per element.
           * @returns {number} Returns the index of the matched value, else `-1`.
           */


          function baseIndexOfWith(array, value, fromIndex, comparator) {
            var index = fromIndex - 1,
                length = array.length;

            while (++index < length) {
              if (comparator(array[index], value)) {
                return index;
              }
            }

            return -1;
          }
          /**
           * The base implementation of `_.isNaN` without support for number objects.
           *
           * @private
           * @param {*} value The value to check.
           * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
           */


          function baseIsNaN(value) {
            return value !== value;
          }
          /**
           * The base implementation of `_.mean` and `_.meanBy` without support for
           * iteratee shorthands.
           *
           * @private
           * @param {Array} array The array to iterate over.
           * @param {Function} iteratee The function invoked per iteration.
           * @returns {number} Returns the mean.
           */


          function baseMean(array, iteratee) {
            var length = array == null ? 0 : array.length;
            return length ? baseSum(array, iteratee) / length : NAN;
          }
          /**
           * The base implementation of `_.property` without support for deep paths.
           *
           * @private
           * @param {string} key The key of the property to get.
           * @returns {Function} Returns the new accessor function.
           */


          function baseProperty(key) {
            return function (object) {
              return object == null ? undefined : object[key];
            };
          }
          /**
           * The base implementation of `_.propertyOf` without support for deep paths.
           *
           * @private
           * @param {Object} object The object to query.
           * @returns {Function} Returns the new accessor function.
           */


          function basePropertyOf(object) {
            return function (key) {
              return object == null ? undefined : object[key];
            };
          }
          /**
           * The base implementation of `_.reduce` and `_.reduceRight`, without support
           * for iteratee shorthands, which iterates over `collection` using `eachFunc`.
           *
           * @private
           * @param {Array|Object} collection The collection to iterate over.
           * @param {Function} iteratee The function invoked per iteration.
           * @param {*} accumulator The initial value.
           * @param {boolean} initAccum Specify using the first or last element of
           *  `collection` as the initial value.
           * @param {Function} eachFunc The function to iterate over `collection`.
           * @returns {*} Returns the accumulated value.
           */


          function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
            eachFunc(collection, function (value, index, collection) {
              accumulator = initAccum ? (initAccum = false, value) : iteratee(accumulator, value, index, collection);
            });
            return accumulator;
          }
          /**
           * The base implementation of `_.sortBy` which uses `comparer` to define the
           * sort order of `array` and replaces criteria objects with their corresponding
           * values.
           *
           * @private
           * @param {Array} array The array to sort.
           * @param {Function} comparer The function to define sort order.
           * @returns {Array} Returns `array`.
           */


          function baseSortBy(array, comparer) {
            var length = array.length;
            array.sort(comparer);

            while (length--) {
              array[length] = array[length].value;
            }

            return array;
          }
          /**
           * The base implementation of `_.sum` and `_.sumBy` without support for
           * iteratee shorthands.
           *
           * @private
           * @param {Array} array The array to iterate over.
           * @param {Function} iteratee The function invoked per iteration.
           * @returns {number} Returns the sum.
           */


          function baseSum(array, iteratee) {
            var result,
                index = -1,
                length = array.length;

            while (++index < length) {
              var current = iteratee(array[index]);

              if (current !== undefined) {
                result = result === undefined ? current : result + current;
              }
            }

            return result;
          }
          /**
           * The base implementation of `_.times` without support for iteratee shorthands
           * or max array length checks.
           *
           * @private
           * @param {number} n The number of times to invoke `iteratee`.
           * @param {Function} iteratee The function invoked per iteration.
           * @returns {Array} Returns the array of results.
           */


          function baseTimes(n, iteratee) {
            var index = -1,
                result = Array(n);

            while (++index < n) {
              result[index] = iteratee(index);
            }

            return result;
          }
          /**
           * The base implementation of `_.toPairs` and `_.toPairsIn` which creates an array
           * of key-value pairs for `object` corresponding to the property names of `props`.
           *
           * @private
           * @param {Object} object The object to query.
           * @param {Array} props The property names to get values for.
           * @returns {Object} Returns the key-value pairs.
           */


          function baseToPairs(object, props) {
            return arrayMap(props, function (key) {
              return [key, object[key]];
            });
          }
          /**
           * The base implementation of `_.unary` without support for storing metadata.
           *
           * @private
           * @param {Function} func The function to cap arguments for.
           * @returns {Function} Returns the new capped function.
           */


          function baseUnary(func) {
            return function (value) {
              return func(value);
            };
          }
          /**
           * The base implementation of `_.values` and `_.valuesIn` which creates an
           * array of `object` property values corresponding to the property names
           * of `props`.
           *
           * @private
           * @param {Object} object The object to query.
           * @param {Array} props The property names to get values for.
           * @returns {Object} Returns the array of property values.
           */


          function baseValues(object, props) {
            return arrayMap(props, function (key) {
              return object[key];
            });
          }
          /**
           * Checks if a `cache` value for `key` exists.
           *
           * @private
           * @param {Object} cache The cache to query.
           * @param {string} key The key of the entry to check.
           * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
           */


          function cacheHas(cache, key) {
            return cache.has(key);
          }
          /**
           * Used by `_.trim` and `_.trimStart` to get the index of the first string symbol
           * that is not found in the character symbols.
           *
           * @private
           * @param {Array} strSymbols The string symbols to inspect.
           * @param {Array} chrSymbols The character symbols to find.
           * @returns {number} Returns the index of the first unmatched string symbol.
           */


          function charsStartIndex(strSymbols, chrSymbols) {
            var index = -1,
                length = strSymbols.length;

            while (++index < length && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}

            return index;
          }
          /**
           * Used by `_.trim` and `_.trimEnd` to get the index of the last string symbol
           * that is not found in the character symbols.
           *
           * @private
           * @param {Array} strSymbols The string symbols to inspect.
           * @param {Array} chrSymbols The character symbols to find.
           * @returns {number} Returns the index of the last unmatched string symbol.
           */


          function charsEndIndex(strSymbols, chrSymbols) {
            var index = strSymbols.length;

            while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}

            return index;
          }
          /**
           * Gets the number of `placeholder` occurrences in `array`.
           *
           * @private
           * @param {Array} array The array to inspect.
           * @param {*} placeholder The placeholder to search for.
           * @returns {number} Returns the placeholder count.
           */


          function countHolders(array, placeholder) {
            var length = array.length,
                result = 0;

            while (length--) {
              if (array[length] === placeholder) {
                ++result;
              }
            }

            return result;
          }
          /**
           * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A
           * letters to basic Latin letters.
           *
           * @private
           * @param {string} letter The matched letter to deburr.
           * @returns {string} Returns the deburred letter.
           */


          var deburrLetter = basePropertyOf(deburredLetters);
          /**
           * Used by `_.escape` to convert characters to HTML entities.
           *
           * @private
           * @param {string} chr The matched character to escape.
           * @returns {string} Returns the escaped character.
           */

          var escapeHtmlChar = basePropertyOf(htmlEscapes);
          /**
           * Used by `_.template` to escape characters for inclusion in compiled string literals.
           *
           * @private
           * @param {string} chr The matched character to escape.
           * @returns {string} Returns the escaped character.
           */

          function escapeStringChar(chr) {
            return '\\' + stringEscapes[chr];
          }
          /**
           * Gets the value at `key` of `object`.
           *
           * @private
           * @param {Object} [object] The object to query.
           * @param {string} key The key of the property to get.
           * @returns {*} Returns the property value.
           */


          function getValue(object, key) {
            return object == null ? undefined : object[key];
          }
          /**
           * Checks if `string` contains Unicode symbols.
           *
           * @private
           * @param {string} string The string to inspect.
           * @returns {boolean} Returns `true` if a symbol is found, else `false`.
           */


          function hasUnicode(string) {
            return reHasUnicode.test(string);
          }
          /**
           * Checks if `string` contains a word composed of Unicode symbols.
           *
           * @private
           * @param {string} string The string to inspect.
           * @returns {boolean} Returns `true` if a word is found, else `false`.
           */


          function hasUnicodeWord(string) {
            return reHasUnicodeWord.test(string);
          }
          /**
           * Converts `iterator` to an array.
           *
           * @private
           * @param {Object} iterator The iterator to convert.
           * @returns {Array} Returns the converted array.
           */


          function iteratorToArray(iterator) {
            var data,
                result = [];

            while (!(data = iterator.next()).done) {
              result.push(data.value);
            }

            return result;
          }
          /**
           * Converts `map` to its key-value pairs.
           *
           * @private
           * @param {Object} map The map to convert.
           * @returns {Array} Returns the key-value pairs.
           */


          function mapToArray(map) {
            var index = -1,
                result = Array(map.size);
            map.forEach(function (value, key) {
              result[++index] = [key, value];
            });
            return result;
          }
          /**
           * Creates a unary function that invokes `func` with its argument transformed.
           *
           * @private
           * @param {Function} func The function to wrap.
           * @param {Function} transform The argument transform.
           * @returns {Function} Returns the new function.
           */


          function overArg(func, transform) {
            return function (arg) {
              return func(transform(arg));
            };
          }
          /**
           * Replaces all `placeholder` elements in `array` with an internal placeholder
           * and returns an array of their indexes.
           *
           * @private
           * @param {Array} array The array to modify.
           * @param {*} placeholder The placeholder to replace.
           * @returns {Array} Returns the new array of placeholder indexes.
           */


          function replaceHolders(array, placeholder) {
            var index = -1,
                length = array.length,
                resIndex = 0,
                result = [];

            while (++index < length) {
              var value = array[index];

              if (value === placeholder || value === PLACEHOLDER) {
                array[index] = PLACEHOLDER;
                result[resIndex++] = index;
              }
            }

            return result;
          }
          /**
           * Converts `set` to an array of its values.
           *
           * @private
           * @param {Object} set The set to convert.
           * @returns {Array} Returns the values.
           */


          function setToArray(set) {
            var index = -1,
                result = Array(set.size);
            set.forEach(function (value) {
              result[++index] = value;
            });
            return result;
          }
          /**
           * Converts `set` to its value-value pairs.
           *
           * @private
           * @param {Object} set The set to convert.
           * @returns {Array} Returns the value-value pairs.
           */


          function setToPairs(set) {
            var index = -1,
                result = Array(set.size);
            set.forEach(function (value) {
              result[++index] = [value, value];
            });
            return result;
          }
          /**
           * A specialized version of `_.indexOf` which performs strict equality
           * comparisons of values, i.e. `===`.
           *
           * @private
           * @param {Array} array The array to inspect.
           * @param {*} value The value to search for.
           * @param {number} fromIndex The index to search from.
           * @returns {number} Returns the index of the matched value, else `-1`.
           */


          function strictIndexOf(array, value, fromIndex) {
            var index = fromIndex - 1,
                length = array.length;

            while (++index < length) {
              if (array[index] === value) {
                return index;
              }
            }

            return -1;
          }
          /**
           * A specialized version of `_.lastIndexOf` which performs strict equality
           * comparisons of values, i.e. `===`.
           *
           * @private
           * @param {Array} array The array to inspect.
           * @param {*} value The value to search for.
           * @param {number} fromIndex The index to search from.
           * @returns {number} Returns the index of the matched value, else `-1`.
           */


          function strictLastIndexOf(array, value, fromIndex) {
            var index = fromIndex + 1;

            while (index--) {
              if (array[index] === value) {
                return index;
              }
            }

            return index;
          }
          /**
           * Gets the number of symbols in `string`.
           *
           * @private
           * @param {string} string The string to inspect.
           * @returns {number} Returns the string size.
           */


          function stringSize(string) {
            return hasUnicode(string) ? unicodeSize(string) : asciiSize(string);
          }
          /**
           * Converts `string` to an array.
           *
           * @private
           * @param {string} string The string to convert.
           * @returns {Array} Returns the converted array.
           */


          function stringToArray(string) {
            return hasUnicode(string) ? unicodeToArray(string) : asciiToArray(string);
          }
          /**
           * Used by `_.unescape` to convert HTML entities to characters.
           *
           * @private
           * @param {string} chr The matched character to unescape.
           * @returns {string} Returns the unescaped character.
           */


          var unescapeHtmlChar = basePropertyOf(htmlUnescapes);
          /**
           * Gets the size of a Unicode `string`.
           *
           * @private
           * @param {string} string The string inspect.
           * @returns {number} Returns the string size.
           */

          function unicodeSize(string) {
            var result = reUnicode.lastIndex = 0;

            while (reUnicode.test(string)) {
              ++result;
            }

            return result;
          }
          /**
           * Converts a Unicode `string` to an array.
           *
           * @private
           * @param {string} string The string to convert.
           * @returns {Array} Returns the converted array.
           */


          function unicodeToArray(string) {
            return string.match(reUnicode) || [];
          }
          /**
           * Splits a Unicode `string` into an array of its words.
           *
           * @private
           * @param {string} The string to inspect.
           * @returns {Array} Returns the words of `string`.
           */


          function unicodeWords(string) {
            return string.match(reUnicodeWord) || [];
          }
          /*--------------------------------------------------------------------------*/

          /**
           * Create a new pristine `lodash` function using the `context` object.
           *
           * @static
           * @memberOf _
           * @since 1.1.0
           * @category Util
           * @param {Object} [context=root] The context object.
           * @returns {Function} Returns a new `lodash` function.
           * @example
           *
           * _.mixin({ 'foo': _.constant('foo') });
           *
           * var lodash = _.runInContext();
           * lodash.mixin({ 'bar': lodash.constant('bar') });
           *
           * _.isFunction(_.foo);
           * // => true
           * _.isFunction(_.bar);
           * // => false
           *
           * lodash.isFunction(lodash.foo);
           * // => false
           * lodash.isFunction(lodash.bar);
           * // => true
           *
           * // Create a suped-up `defer` in Node.js.
           * var defer = _.runInContext({ 'setTimeout': setImmediate }).defer;
           */


          var runInContext = function runInContext(context) {
            context = context == null ? root : _.defaults(root.Object(), context, _.pick(root, contextProps));
            /** Built-in constructor references. */

            var Array = context.Array,
                Date = context.Date,
                Error = context.Error,
                Function = context.Function,
                Math = context.Math,
                Object = context.Object,
                RegExp = context.RegExp,
                String = context.String,
                TypeError = context.TypeError;
            /** Used for built-in method references. */

            var arrayProto = Array.prototype,
                funcProto = Function.prototype,
                objectProto = Object.prototype;
            /** Used to detect overreaching core-js shims. */

            var coreJsData = context['__core-js_shared__'];
            /** Used to resolve the decompiled source of functions. */

            var funcToString = funcProto.toString;
            /** Used to check objects for own properties. */

            var hasOwnProperty = objectProto.hasOwnProperty;
            /** Used to generate unique IDs. */

            var idCounter = 0;
            /** Used to detect methods masquerading as native. */

            var maskSrcKey = function () {
              var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
              return uid ? 'Symbol(src)_1.' + uid : '';
            }();
            /**
             * Used to resolve the
             * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
             * of values.
             */


            var nativeObjectToString = objectProto.toString;
            /** Used to infer the `Object` constructor. */

            var objectCtorString = funcToString.call(Object);
            /** Used to restore the original `_` reference in `_.noConflict`. */

            var oldDash = root._;
            /** Used to detect if a method is native. */

            var reIsNative = RegExp('^' + funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&').replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$');
            /** Built-in value references. */

            var Buffer = moduleExports ? context.Buffer : undefined,
                Symbol = context.Symbol,
                Uint8Array = context.Uint8Array,
                allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined,
                getPrototype = overArg(Object.getPrototypeOf, Object),
                objectCreate = Object.create,
                propertyIsEnumerable = objectProto.propertyIsEnumerable,
                splice = arrayProto.splice,
                spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined,
                symIterator = Symbol ? Symbol.iterator : undefined,
                symToStringTag = Symbol ? Symbol.toStringTag : undefined;

            var defineProperty = function () {
              try {
                var func = getNative(Object, 'defineProperty');
                func({}, '', {});
                return func;
              } catch (e) {}
            }();
            /** Mocked built-ins. */


            var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout,
                ctxNow = Date && Date.now !== root.Date.now && Date.now,
                ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;
            /* Built-in method references for those with the same name as other `lodash` methods. */

            var nativeCeil = Math.ceil,
                nativeFloor = Math.floor,
                nativeGetSymbols = Object.getOwnPropertySymbols,
                nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,
                nativeIsFinite = context.isFinite,
                nativeJoin = arrayProto.join,
                nativeKeys = overArg(Object.keys, Object),
                nativeMax = Math.max,
                nativeMin = Math.min,
                nativeNow = Date.now,
                nativeParseInt = context.parseInt,
                nativeRandom = Math.random,
                nativeReverse = arrayProto.reverse;
            /* Built-in method references that are verified to be native. */

            var DataView = getNative(context, 'DataView'),
                Map = getNative(context, 'Map'),
                Promise = getNative(context, 'Promise'),
                Set = getNative(context, 'Set'),
                WeakMap = getNative(context, 'WeakMap'),
                nativeCreate = getNative(Object, 'create');
            /** Used to store function metadata. */

            var metaMap = WeakMap && new WeakMap();
            /** Used to lookup unminified function names. */

            var realNames = {};
            /** Used to detect maps, sets, and weakmaps. */

            var dataViewCtorString = toSource(DataView),
                mapCtorString = toSource(Map),
                promiseCtorString = toSource(Promise),
                setCtorString = toSource(Set),
                weakMapCtorString = toSource(WeakMap);
            /** Used to convert symbols to primitives and strings. */

            var symbolProto = Symbol ? Symbol.prototype : undefined,
                symbolValueOf = symbolProto ? symbolProto.valueOf : undefined,
                symbolToString = symbolProto ? symbolProto.toString : undefined;
            /*------------------------------------------------------------------------*/

            /**
             * Creates a `lodash` object which wraps `value` to enable implicit method
             * chain sequences. Methods that operate on and return arrays, collections,
             * and functions can be chained together. Methods that retrieve a single value
             * or may return a primitive value will automatically end the chain sequence
             * and return the unwrapped value. Otherwise, the value must be unwrapped
             * with `_#value`.
             *
             * Explicit chain sequences, which must be unwrapped with `_#value`, may be
             * enabled using `_.chain`.
             *
             * The execution of chained methods is lazy, that is, it's deferred until
             * `_#value` is implicitly or explicitly called.
             *
             * Lazy evaluation allows several methods to support shortcut fusion.
             * Shortcut fusion is an optimization to merge iteratee calls; this avoids
             * the creation of intermediate arrays and can greatly reduce the number of
             * iteratee executions. Sections of a chain sequence qualify for shortcut
             * fusion if the section is applied to an array and iteratees accept only
             * one argument. The heuristic for whether a section qualifies for shortcut
             * fusion is subject to change.
             *
             * Chaining is supported in custom builds as long as the `_#value` method is
             * directly or indirectly included in the build.
             *
             * In addition to lodash methods, wrappers have `Array` and `String` methods.
             *
             * The wrapper `Array` methods are:
             * `concat`, `join`, `pop`, `push`, `shift`, `sort`, `splice`, and `unshift`
             *
             * The wrapper `String` methods are:
             * `replace` and `split`
             *
             * The wrapper methods that support shortcut fusion are:
             * `at`, `compact`, `drop`, `dropRight`, `dropWhile`, `filter`, `find`,
             * `findLast`, `head`, `initial`, `last`, `map`, `reject`, `reverse`, `slice`,
             * `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray`
             *
             * The chainable wrapper methods are:
             * `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`,
             * `before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`,
             * `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`,
             * `curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`,
             * `difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`,
             * `dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`,
             * `flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`,
             * `flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`,
             * `functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`,
             * `intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`,
             * `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`,
             * `memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`,
             * `nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`,
             * `overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`,
             * `pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`,
             * `pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`,
             * `remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`,
             * `slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`,
             * `takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`,
             * `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`,
             * `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`,
             * `unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`,
             * `valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`,
             * `zipObject`, `zipObjectDeep`, and `zipWith`
             *
             * The wrapper methods that are **not** chainable by default are:
             * `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`,
             * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `conformsTo`, `deburr`,
             * `defaultTo`, `divide`, `each`, `eachRight`, `endsWith`, `eq`, `escape`,
             * `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`, `findLast`,
             * `findLastIndex`, `findLastKey`, `first`, `floor`, `forEach`, `forEachRight`,
             * `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`,
             * `hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`,
             * `isArguments`, `isArray`, `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`,
             * `isBoolean`, `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`,
             * `isEqualWith`, `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`,
             * `isMap`, `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`,
             * `isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`,
             * `isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`,
             * `isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`,
             * `lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`,
             * `min`, `minBy`, `multiply`, `noConflict`, `noop`, `now`, `nth`, `pad`,
             * `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`,
             * `repeat`, `result`, `round`, `runInContext`, `sample`, `shift`, `size`,
             * `snakeCase`, `some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`,
             * `sortedLastIndexBy`, `startCase`, `startsWith`, `stubArray`, `stubFalse`,
             * `stubObject`, `stubString`, `stubTrue`, `subtract`, `sum`, `sumBy`,
             * `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`,
             * `toLower`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`, `trim`,
             * `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`, `upperCase`,
             * `upperFirst`, `value`, and `words`
             *
             * @name _
             * @constructor
             * @category Seq
             * @param {*} value The value to wrap in a `lodash` instance.
             * @returns {Object} Returns the new `lodash` wrapper instance.
             * @example
             *
             * function square(n) {
             *   return n * n;
             * }
             *
             * var wrapped = _([1, 2, 3]);
             *
             * // Returns an unwrapped value.
             * wrapped.reduce(_.add);
             * // => 6
             *
             * // Returns a wrapped value.
             * var squares = wrapped.map(square);
             *
             * _.isArray(squares);
             * // => false
             *
             * _.isArray(squares.value());
             * // => true
             */

            function lodash(value) {
              if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {
                if (value instanceof LodashWrapper) {
                  return value;
                }

                if (hasOwnProperty.call(value, '__wrapped__')) {
                  return wrapperClone(value);
                }
              }

              return new LodashWrapper(value);
            }
            /**
             * The base implementation of `_.create` without support for assigning
             * properties to the created object.
             *
             * @private
             * @param {Object} proto The object to inherit from.
             * @returns {Object} Returns the new object.
             */


            var baseCreate = function () {
              function object() {}

              return function (proto) {
                if (!isObject(proto)) {
                  return {};
                }

                if (objectCreate) {
                  return objectCreate(proto);
                }

                object.prototype = proto;
                var result = new object();
                object.prototype = undefined;
                return result;
              };
            }();
            /**
             * The function whose prototype chain sequence wrappers inherit from.
             *
             * @private
             */


            function baseLodash() {// No operation performed.
            }
            /**
             * The base constructor for creating `lodash` wrapper objects.
             *
             * @private
             * @param {*} value The value to wrap.
             * @param {boolean} [chainAll] Enable explicit method chain sequences.
             */


            function LodashWrapper(value, chainAll) {
              this.__wrapped__ = value;
              this.__actions__ = [];
              this.__chain__ = !!chainAll;
              this.__index__ = 0;
              this.__values__ = undefined;
            }
            /**
             * By default, the template delimiters used by lodash are like those in
             * embedded Ruby (ERB) as well as ES2015 template strings. Change the
             * following template settings to use alternative delimiters.
             *
             * @static
             * @memberOf _
             * @type {Object}
             */


            lodash.templateSettings = {
              /**
               * Used to detect `data` property values to be HTML-escaped.
               *
               * @memberOf _.templateSettings
               * @type {RegExp}
               */
              'escape': reEscape,

              /**
               * Used to detect code to be evaluated.
               *
               * @memberOf _.templateSettings
               * @type {RegExp}
               */
              'evaluate': reEvaluate,

              /**
               * Used to detect `data` property values to inject.
               *
               * @memberOf _.templateSettings
               * @type {RegExp}
               */
              'interpolate': reInterpolate,

              /**
               * Used to reference the data object in the template text.
               *
               * @memberOf _.templateSettings
               * @type {string}
               */
              'variable': '',

              /**
               * Used to import variables into the compiled template.
               *
               * @memberOf _.templateSettings
               * @type {Object}
               */
              'imports': {
                /**
                 * A reference to the `lodash` function.
                 *
                 * @memberOf _.templateSettings.imports
                 * @type {Function}
                 */
                '_': lodash
              }
            }; // Ensure wrappers are instances of `baseLodash`.

            lodash.prototype = baseLodash.prototype;
            lodash.prototype.constructor = lodash;
            LodashWrapper.prototype = baseCreate(baseLodash.prototype);
            LodashWrapper.prototype.constructor = LodashWrapper;
            /*------------------------------------------------------------------------*/

            /**
             * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.
             *
             * @private
             * @constructor
             * @param {*} value The value to wrap.
             */

            function LazyWrapper(value) {
              this.__wrapped__ = value;
              this.__actions__ = [];
              this.__dir__ = 1;
              this.__filtered__ = false;
              this.__iteratees__ = [];
              this.__takeCount__ = MAX_ARRAY_LENGTH;
              this.__views__ = [];
            }
            /**
             * Creates a clone of the lazy wrapper object.
             *
             * @private
             * @name clone
             * @memberOf LazyWrapper
             * @returns {Object} Returns the cloned `LazyWrapper` object.
             */


            function lazyClone() {
              var result = new LazyWrapper(this.__wrapped__);
              result.__actions__ = copyArray(this.__actions__);
              result.__dir__ = this.__dir__;
              result.__filtered__ = this.__filtered__;
              result.__iteratees__ = copyArray(this.__iteratees__);
              result.__takeCount__ = this.__takeCount__;
              result.__views__ = copyArray(this.__views__);
              return result;
            }
            /**
             * Reverses the direction of lazy iteration.
             *
             * @private
             * @name reverse
             * @memberOf LazyWrapper
             * @returns {Object} Returns the new reversed `LazyWrapper` object.
             */


            function lazyReverse() {
              if (this.__filtered__) {
                var result = new LazyWrapper(this);
                result.__dir__ = -1;
                result.__filtered__ = true;
              } else {
                result = this.clone();
                result.__dir__ *= -1;
              }

              return result;
            }
            /**
             * Extracts the unwrapped value from its lazy wrapper.
             *
             * @private
             * @name value
             * @memberOf LazyWrapper
             * @returns {*} Returns the unwrapped value.
             */


            function lazyValue() {
              var array = this.__wrapped__.value(),
                  dir = this.__dir__,
                  isArr = isArray(array),
                  isRight = dir < 0,
                  arrLength = isArr ? array.length : 0,
                  view = getView(0, arrLength, this.__views__),
                  start = view.start,
                  end = view.end,
                  length = end - start,
                  index = isRight ? end : start - 1,
                  iteratees = this.__iteratees__,
                  iterLength = iteratees.length,
                  resIndex = 0,
                  takeCount = nativeMin(length, this.__takeCount__);

              if (!isArr || !isRight && arrLength == length && takeCount == length) {
                return baseWrapperValue(array, this.__actions__);
              }

              var result = [];

              outer: while (length-- && resIndex < takeCount) {
                index += dir;
                var iterIndex = -1,
                    value = array[index];

                while (++iterIndex < iterLength) {
                  var data = iteratees[iterIndex],
                      iteratee = data.iteratee,
                      type = data.type,
                      computed = iteratee(value);

                  if (type == LAZY_MAP_FLAG) {
                    value = computed;
                  } else if (!computed) {
                    if (type == LAZY_FILTER_FLAG) {
                      continue outer;
                    } else {
                      break outer;
                    }
                  }
                }

                result[resIndex++] = value;
              }

              return result;
            } // Ensure `LazyWrapper` is an instance of `baseLodash`.


            LazyWrapper.prototype = baseCreate(baseLodash.prototype);
            LazyWrapper.prototype.constructor = LazyWrapper;
            /*------------------------------------------------------------------------*/

            /**
             * Creates a hash object.
             *
             * @private
             * @constructor
             * @param {Array} [entries] The key-value pairs to cache.
             */

            function Hash(entries) {
              var index = -1,
                  length = entries == null ? 0 : entries.length;
              this.clear();

              while (++index < length) {
                var entry = entries[index];
                this.set(entry[0], entry[1]);
              }
            }
            /**
             * Removes all key-value entries from the hash.
             *
             * @private
             * @name clear
             * @memberOf Hash
             */


            function hashClear() {
              this.__data__ = nativeCreate ? nativeCreate(null) : {};
              this.size = 0;
            }
            /**
             * Removes `key` and its value from the hash.
             *
             * @private
             * @name delete
             * @memberOf Hash
             * @param {Object} hash The hash to modify.
             * @param {string} key The key of the value to remove.
             * @returns {boolean} Returns `true` if the entry was removed, else `false`.
             */


            function hashDelete(key) {
              var result = this.has(key) && delete this.__data__[key];
              this.size -= result ? 1 : 0;
              return result;
            }
            /**
             * Gets the hash value for `key`.
             *
             * @private
             * @name get
             * @memberOf Hash
             * @param {string} key The key of the value to get.
             * @returns {*} Returns the entry value.
             */


            function hashGet(key) {
              var data = this.__data__;

              if (nativeCreate) {
                var result = data[key];
                return result === HASH_UNDEFINED ? undefined : result;
              }

              return hasOwnProperty.call(data, key) ? data[key] : undefined;
            }
            /**
             * Checks if a hash value for `key` exists.
             *
             * @private
             * @name has
             * @memberOf Hash
             * @param {string} key The key of the entry to check.
             * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
             */


            function hashHas(key) {
              var data = this.__data__;
              return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key);
            }
            /**
             * Sets the hash `key` to `value`.
             *
             * @private
             * @name set
             * @memberOf Hash
             * @param {string} key The key of the value to set.
             * @param {*} value The value to set.
             * @returns {Object} Returns the hash instance.
             */


            function hashSet(key, value) {
              var data = this.__data__;
              this.size += this.has(key) ? 0 : 1;
              data[key] = nativeCreate && value === undefined ? HASH_UNDEFINED : value;
              return this;
            } // Add methods to `Hash`.


            Hash.prototype.clear = hashClear;
            Hash.prototype['delete'] = hashDelete;
            Hash.prototype.get = hashGet;
            Hash.prototype.has = hashHas;
            Hash.prototype.set = hashSet;
            /*------------------------------------------------------------------------*/

            /**
             * Creates an list cache object.
             *
             * @private
             * @constructor
             * @param {Array} [entries] The key-value pairs to cache.
             */

            function ListCache(entries) {
              var index = -1,
                  length = entries == null ? 0 : entries.length;
              this.clear();

              while (++index < length) {
                var entry = entries[index];
                this.set(entry[0], entry[1]);
              }
            }
            /**
             * Removes all key-value entries from the list cache.
             *
             * @private
             * @name clear
             * @memberOf ListCache
             */


            function listCacheClear() {
              this.__data__ = [];
              this.size = 0;
            }
            /**
             * Removes `key` and its value from the list cache.
             *
             * @private
             * @name delete
             * @memberOf ListCache
             * @param {string} key The key of the value to remove.
             * @returns {boolean} Returns `true` if the entry was removed, else `false`.
             */


            function listCacheDelete(key) {
              var data = this.__data__,
                  index = assocIndexOf(data, key);

              if (index < 0) {
                return false;
              }

              var lastIndex = data.length - 1;

              if (index == lastIndex) {
                data.pop();
              } else {
                splice.call(data, index, 1);
              }

              --this.size;
              return true;
            }
            /**
             * Gets the list cache value for `key`.
             *
             * @private
             * @name get
             * @memberOf ListCache
             * @param {string} key The key of the value to get.
             * @returns {*} Returns the entry value.
             */


            function listCacheGet(key) {
              var data = this.__data__,
                  index = assocIndexOf(data, key);
              return index < 0 ? undefined : data[index][1];
            }
            /**
             * Checks if a list cache value for `key` exists.
             *
             * @private
             * @name has
             * @memberOf ListCache
             * @param {string} key The key of the entry to check.
             * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
             */


            function listCacheHas(key) {
              return assocIndexOf(this.__data__, key) > -1;
            }
            /**
             * Sets the list cache `key` to `value`.
             *
             * @private
             * @name set
             * @memberOf ListCache
             * @param {string} key The key of the value to set.
             * @param {*} value The value to set.
             * @returns {Object} Returns the list cache instance.
             */


            function listCacheSet(key, value) {
              var data = this.__data__,
                  index = assocIndexOf(data, key);

              if (index < 0) {
                ++this.size;
                data.push([key, value]);
              } else {
                data[index][1] = value;
              }

              return this;
            } // Add methods to `ListCache`.


            ListCache.prototype.clear = listCacheClear;
            ListCache.prototype['delete'] = listCacheDelete;
            ListCache.prototype.get = listCacheGet;
            ListCache.prototype.has = listCacheHas;
            ListCache.prototype.set = listCacheSet;
            /*------------------------------------------------------------------------*/

            /**
             * Creates a map cache object to store key-value pairs.
             *
             * @private
             * @constructor
             * @param {Array} [entries] The key-value pairs to cache.
             */

            function MapCache(entries) {
              var index = -1,
                  length = entries == null ? 0 : entries.length;
              this.clear();

              while (++index < length) {
                var entry = entries[index];
                this.set(entry[0], entry[1]);
              }
            }
            /**
             * Removes all key-value entries from the map.
             *
             * @private
             * @name clear
             * @memberOf MapCache
             */


            function mapCacheClear() {
              this.size = 0;
              this.__data__ = {
                'hash': new Hash(),
                'map': new (Map || ListCache)(),
                'string': new Hash()
              };
            }
            /**
             * Removes `key` and its value from the map.
             *
             * @private
             * @name delete
             * @memberOf MapCache
             * @param {string} key The key of the value to remove.
             * @returns {boolean} Returns `true` if the entry was removed, else `false`.
             */


            function mapCacheDelete(key) {
              var result = getMapData(this, key)['delete'](key);
              this.size -= result ? 1 : 0;
              return result;
            }
            /**
             * Gets the map value for `key`.
             *
             * @private
             * @name get
             * @memberOf MapCache
             * @param {string} key The key of the value to get.
             * @returns {*} Returns the entry value.
             */


            function mapCacheGet(key) {
              return getMapData(this, key).get(key);
            }
            /**
             * Checks if a map value for `key` exists.
             *
             * @private
             * @name has
             * @memberOf MapCache
             * @param {string} key The key of the entry to check.
             * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
             */


            function mapCacheHas(key) {
              return getMapData(this, key).has(key);
            }
            /**
             * Sets the map `key` to `value`.
             *
             * @private
             * @name set
             * @memberOf MapCache
             * @param {string} key The key of the value to set.
             * @param {*} value The value to set.
             * @returns {Object} Returns the map cache instance.
             */


            function mapCacheSet(key, value) {
              var data = getMapData(this, key),
                  size = data.size;
              data.set(key, value);
              this.size += data.size == size ? 0 : 1;
              return this;
            } // Add methods to `MapCache`.


            MapCache.prototype.clear = mapCacheClear;
            MapCache.prototype['delete'] = mapCacheDelete;
            MapCache.prototype.get = mapCacheGet;
            MapCache.prototype.has = mapCacheHas;
            MapCache.prototype.set = mapCacheSet;
            /*------------------------------------------------------------------------*/

            /**
             *
             * Creates an array cache object to store unique values.
             *
             * @private
             * @constructor
             * @param {Array} [values] The values to cache.
             */

            function SetCache(values) {
              var index = -1,
                  length = values == null ? 0 : values.length;
              this.__data__ = new MapCache();

              while (++index < length) {
                this.add(values[index]);
              }
            }
            /**
             * Adds `value` to the array cache.
             *
             * @private
             * @name add
             * @memberOf SetCache
             * @alias push
             * @param {*} value The value to cache.
             * @returns {Object} Returns the cache instance.
             */


            function setCacheAdd(value) {
              this.__data__.set(value, HASH_UNDEFINED);

              return this;
            }
            /**
             * Checks if `value` is in the array cache.
             *
             * @private
             * @name has
             * @memberOf SetCache
             * @param {*} value The value to search for.
             * @returns {number} Returns `true` if `value` is found, else `false`.
             */


            function setCacheHas(value) {
              return this.__data__.has(value);
            } // Add methods to `SetCache`.


            SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
            SetCache.prototype.has = setCacheHas;
            /*------------------------------------------------------------------------*/

            /**
             * Creates a stack cache object to store key-value pairs.
             *
             * @private
             * @constructor
             * @param {Array} [entries] The key-value pairs to cache.
             */

            function Stack(entries) {
              var data = this.__data__ = new ListCache(entries);
              this.size = data.size;
            }
            /**
             * Removes all key-value entries from the stack.
             *
             * @private
             * @name clear
             * @memberOf Stack
             */


            function stackClear() {
              this.__data__ = new ListCache();
              this.size = 0;
            }
            /**
             * Removes `key` and its value from the stack.
             *
             * @private
             * @name delete
             * @memberOf Stack
             * @param {string} key The key of the value to remove.
             * @returns {boolean} Returns `true` if the entry was removed, else `false`.
             */


            function stackDelete(key) {
              var data = this.__data__,
                  result = data['delete'](key);
              this.size = data.size;
              return result;
            }
            /**
             * Gets the stack value for `key`.
             *
             * @private
             * @name get
             * @memberOf Stack
             * @param {string} key The key of the value to get.
             * @returns {*} Returns the entry value.
             */


            function stackGet(key) {
              return this.__data__.get(key);
            }
            /**
             * Checks if a stack value for `key` exists.
             *
             * @private
             * @name has
             * @memberOf Stack
             * @param {string} key The key of the entry to check.
             * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
             */


            function stackHas(key) {
              return this.__data__.has(key);
            }
            /**
             * Sets the stack `key` to `value`.
             *
             * @private
             * @name set
             * @memberOf Stack
             * @param {string} key The key of the value to set.
             * @param {*} value The value to set.
             * @returns {Object} Returns the stack cache instance.
             */


            function stackSet(key, value) {
              var data = this.__data__;

              if (data instanceof ListCache) {
                var pairs = data.__data__;

                if (!Map || pairs.length < LARGE_ARRAY_SIZE - 1) {
                  pairs.push([key, value]);
                  this.size = ++data.size;
                  return this;
                }

                data = this.__data__ = new MapCache(pairs);
              }

              data.set(key, value);
              this.size = data.size;
              return this;
            } // Add methods to `Stack`.


            Stack.prototype.clear = stackClear;
            Stack.prototype['delete'] = stackDelete;
            Stack.prototype.get = stackGet;
            Stack.prototype.has = stackHas;
            Stack.prototype.set = stackSet;
            /*------------------------------------------------------------------------*/

            /**
             * Creates an array of the enumerable property names of the array-like `value`.
             *
             * @private
             * @param {*} value The value to query.
             * @param {boolean} inherited Specify returning inherited property names.
             * @returns {Array} Returns the array of property names.
             */

            function arrayLikeKeys(value, inherited) {
              var isArr = isArray(value),
                  isArg = !isArr && isArguments(value),
                  isBuff = !isArr && !isArg && isBuffer(value),
                  isType = !isArr && !isArg && !isBuff && isTypedArray(value),
                  skipIndexes = isArr || isArg || isBuff || isType,
                  result = skipIndexes ? baseTimes(value.length, String) : [],
                  length = result.length;

              for (var key in value) {
                if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && ( // Safari 9 has enumerable `arguments.length` in strict mode.
                key == 'length' || isBuff && (key == 'offset' || key == 'parent') || isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset') || // Skip index properties.
                isIndex(key, length)))) {
                  result.push(key);
                }
              }

              return result;
            }
            /**
             * A specialized version of `_.sample` for arrays.
             *
             * @private
             * @param {Array} array The array to sample.
             * @returns {*} Returns the random element.
             */


            function arraySample(array) {
              var length = array.length;
              return length ? array[baseRandom(0, length - 1)] : undefined;
            }
            /**
             * A specialized version of `_.sampleSize` for arrays.
             *
             * @private
             * @param {Array} array The array to sample.
             * @param {number} n The number of elements to sample.
             * @returns {Array} Returns the random elements.
             */


            function arraySampleSize(array, n) {
              return shuffleSelf(copyArray(array), baseClamp(n, 0, array.length));
            }
            /**
             * A specialized version of `_.shuffle` for arrays.
             *
             * @private
             * @param {Array} array The array to shuffle.
             * @returns {Array} Returns the new shuffled array.
             */


            function arrayShuffle(array) {
              return shuffleSelf(copyArray(array));
            }
            /**
             * This function is like `assignValue` except that it doesn't assign
             * `undefined` values.
             *
             * @private
             * @param {Object} object The object to modify.
             * @param {string} key The key of the property to assign.
             * @param {*} value The value to assign.
             */


            function assignMergeValue(object, key, value) {
              if (value !== undefined && !eq(object[key], value) || value === undefined && !(key in object)) {
                baseAssignValue(object, key, value);
              }
            }
            /**
             * Assigns `value` to `key` of `object` if the existing value is not equivalent
             * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
             * for equality comparisons.
             *
             * @private
             * @param {Object} object The object to modify.
             * @param {string} key The key of the property to assign.
             * @param {*} value The value to assign.
             */


            function assignValue(object, key, value) {
              var objValue = object[key];

              if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || value === undefined && !(key in object)) {
                baseAssignValue(object, key, value);
              }
            }
            /**
             * Gets the index at which the `key` is found in `array` of key-value pairs.
             *
             * @private
             * @param {Array} array The array to inspect.
             * @param {*} key The key to search for.
             * @returns {number} Returns the index of the matched value, else `-1`.
             */


            function assocIndexOf(array, key) {
              var length = array.length;

              while (length--) {
                if (eq(array[length][0], key)) {
                  return length;
                }
              }

              return -1;
            }
            /**
             * Aggregates elements of `collection` on `accumulator` with keys transformed
             * by `iteratee` and values set by `setter`.
             *
             * @private
             * @param {Array|Object} collection The collection to iterate over.
             * @param {Function} setter The function to set `accumulator` values.
             * @param {Function} iteratee The iteratee to transform keys.
             * @param {Object} accumulator The initial aggregated object.
             * @returns {Function} Returns `accumulator`.
             */


            function baseAggregator(collection, setter, iteratee, accumulator) {
              baseEach(collection, function (value, key, collection) {
                setter(accumulator, value, iteratee(value), collection);
              });
              return accumulator;
            }
            /**
             * The base implementation of `_.assign` without support for multiple sources
             * or `customizer` functions.
             *
             * @private
             * @param {Object} object The destination object.
             * @param {Object} source The source object.
             * @returns {Object} Returns `object`.
             */


            function baseAssign(object, source) {
              return object && copyObject(source, keys(source), object);
            }
            /**
             * The base implementation of `_.assignIn` without support for multiple sources
             * or `customizer` functions.
             *
             * @private
             * @param {Object} object The destination object.
             * @param {Object} source The source object.
             * @returns {Object} Returns `object`.
             */


            function baseAssignIn(object, source) {
              return object && copyObject(source, keysIn(source), object);
            }
            /**
             * The base implementation of `assignValue` and `assignMergeValue` without
             * value checks.
             *
             * @private
             * @param {Object} object The object to modify.
             * @param {string} key The key of the property to assign.
             * @param {*} value The value to assign.
             */


            function baseAssignValue(object, key, value) {
              if (key == '__proto__' && defineProperty) {
                defineProperty(object, key, {
                  'configurable': true,
                  'enumerable': true,
                  'value': value,
                  'writable': true
                });
              } else {
                object[key] = value;
              }
            }
            /**
             * The base implementation of `_.at` without support for individual paths.
             *
             * @private
             * @param {Object} object The object to iterate over.
             * @param {string[]} paths The property paths to pick.
             * @returns {Array} Returns the picked elements.
             */


            function baseAt(object, paths) {
              var index = -1,
                  length = paths.length,
                  result = Array(length),
                  skip = object == null;

              while (++index < length) {
                result[index] = skip ? undefined : get(object, paths[index]);
              }

              return result;
            }
            /**
             * The base implementation of `_.clamp` which doesn't coerce arguments.
             *
             * @private
             * @param {number} number The number to clamp.
             * @param {number} [lower] The lower bound.
             * @param {number} upper The upper bound.
             * @returns {number} Returns the clamped number.
             */


            function baseClamp(number, lower, upper) {
              if (number === number) {
                if (upper !== undefined) {
                  number = number <= upper ? number : upper;
                }

                if (lower !== undefined) {
                  number = number >= lower ? number : lower;
                }
              }

              return number;
            }
            /**
             * The base implementation of `_.clone` and `_.cloneDeep` which tracks
             * traversed objects.
             *
             * @private
             * @param {*} value The value to clone.
             * @param {boolean} bitmask The bitmask flags.
             *  1 - Deep clone
             *  2 - Flatten inherited properties
             *  4 - Clone symbols
             * @param {Function} [customizer] The function to customize cloning.
             * @param {string} [key] The key of `value`.
             * @param {Object} [object] The parent object of `value`.
             * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
             * @returns {*} Returns the cloned value.
             */


            function baseClone(value, bitmask, customizer, key, object, stack) {
              var result,
                  isDeep = bitmask & CLONE_DEEP_FLAG,
                  isFlat = bitmask & CLONE_FLAT_FLAG,
                  isFull = bitmask & CLONE_SYMBOLS_FLAG;

              if (customizer) {
                result = object ? customizer(value, key, object, stack) : customizer(value);
              }

              if (result !== undefined) {
                return result;
              }

              if (!isObject(value)) {
                return value;
              }

              var isArr = isArray(value);

              if (isArr) {
                result = initCloneArray(value);

                if (!isDeep) {
                  return copyArray(value, result);
                }
              } else {
                var tag = getTag(value),
                    isFunc = tag == funcTag || tag == genTag;

                if (isBuffer(value)) {
                  return cloneBuffer(value, isDeep);
                }

                if (tag == objectTag || tag == argsTag || isFunc && !object) {
                  result = isFlat || isFunc ? {} : initCloneObject(value);

                  if (!isDeep) {
                    return isFlat ? copySymbolsIn(value, baseAssignIn(result, value)) : copySymbols(value, baseAssign(result, value));
                  }
                } else {
                  if (!cloneableTags[tag]) {
                    return object ? value : {};
                  }

                  result = initCloneByTag(value, tag, isDeep);
                }
              } // Check for circular references and return its corresponding clone.


              stack || (stack = new Stack());
              var stacked = stack.get(value);

              if (stacked) {
                return stacked;
              }

              stack.set(value, result);

              if (isSet(value)) {
                value.forEach(function (subValue) {
                  result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
                });
              } else if (isMap(value)) {
                value.forEach(function (subValue, key) {
                  result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
                });
              }

              var keysFunc = isFull ? isFlat ? getAllKeysIn : getAllKeys : isFlat ? keysIn : keys;
              var props = isArr ? undefined : keysFunc(value);
              arrayEach(props || value, function (subValue, key) {
                if (props) {
                  key = subValue;
                  subValue = value[key];
                } // Recursively populate clone (susceptible to call stack limits).


                assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));
              });
              return result;
            }
            /**
             * The base implementation of `_.conforms` which doesn't clone `source`.
             *
             * @private
             * @param {Object} source The object of property predicates to conform to.
             * @returns {Function} Returns the new spec function.
             */


            function baseConforms(source) {
              var props = keys(source);
              return function (object) {
                return baseConformsTo(object, source, props);
              };
            }
            /**
             * The base implementation of `_.conformsTo` which accepts `props` to check.
             *
             * @private
             * @param {Object} object The object to inspect.
             * @param {Object} source The object of property predicates to conform to.
             * @returns {boolean} Returns `true` if `object` conforms, else `false`.
             */


            function baseConformsTo(object, source, props) {
              var length = props.length;

              if (object == null) {
                return !length;
              }

              object = Object(object);

              while (length--) {
                var key = props[length],
                    predicate = source[key],
                    value = object[key];

                if (value === undefined && !(key in object) || !predicate(value)) {
                  return false;
                }
              }

              return true;
            }
            /**
             * The base implementation of `_.delay` and `_.defer` which accepts `args`
             * to provide to `func`.
             *
             * @private
             * @param {Function} func The function to delay.
             * @param {number} wait The number of milliseconds to delay invocation.
             * @param {Array} args The arguments to provide to `func`.
             * @returns {number|Object} Returns the timer id or timeout object.
             */


            function baseDelay(func, wait, args) {
              if (typeof func != 'function') {
                throw new TypeError(FUNC_ERROR_TEXT);
              }

              return setTimeout(function () {
                func.apply(undefined, args);
              }, wait);
            }
            /**
             * The base implementation of methods like `_.difference` without support
             * for excluding multiple arrays or iteratee shorthands.
             *
             * @private
             * @param {Array} array The array to inspect.
             * @param {Array} values The values to exclude.
             * @param {Function} [iteratee] The iteratee invoked per element.
             * @param {Function} [comparator] The comparator invoked per element.
             * @returns {Array} Returns the new array of filtered values.
             */


            function baseDifference(array, values, iteratee, comparator) {
              var index = -1,
                  includes = arrayIncludes,
                  isCommon = true,
                  length = array.length,
                  result = [],
                  valuesLength = values.length;

              if (!length) {
                return result;
              }

              if (iteratee) {
                values = arrayMap(values, baseUnary(iteratee));
              }

              if (comparator) {
                includes = arrayIncludesWith;
                isCommon = false;
              } else if (values.length >= LARGE_ARRAY_SIZE) {
                includes = cacheHas;
                isCommon = false;
                values = new SetCache(values);
              }

              outer: while (++index < length) {
                var value = array[index],
                    computed = iteratee == null ? value : iteratee(value);
                value = comparator || value !== 0 ? value : 0;

                if (isCommon && computed === computed) {
                  var valuesIndex = valuesLength;

                  while (valuesIndex--) {
                    if (values[valuesIndex] === computed) {
                      continue outer;
                    }
                  }

                  result.push(value);
                } else if (!includes(values, computed, comparator)) {
                  result.push(value);
                }
              }

              return result;
            }
            /**
             * The base implementation of `_.forEach` without support for iteratee shorthands.
             *
             * @private
             * @param {Array|Object} collection The collection to iterate over.
             * @param {Function} iteratee The function invoked per iteration.
             * @returns {Array|Object} Returns `collection`.
             */


            var baseEach = createBaseEach(baseForOwn);
            /**
             * The base implementation of `_.forEachRight` without support for iteratee shorthands.
             *
             * @private
             * @param {Array|Object} collection The collection to iterate over.
             * @param {Function} iteratee The function invoked per iteration.
             * @returns {Array|Object} Returns `collection`.
             */

            var baseEachRight = createBaseEach(baseForOwnRight, true);
            /**
             * The base implementation of `_.every` without support for iteratee shorthands.
             *
             * @private
             * @param {Array|Object} collection The collection to iterate over.
             * @param {Function} predicate The function invoked per iteration.
             * @returns {boolean} Returns `true` if all elements pass the predicate check,
             *  else `false`
             */

            function baseEvery(collection, predicate) {
              var result = true;
              baseEach(collection, function (value, index, collection) {
                result = !!predicate(value, index, collection);
                return result;
              });
              return result;
            }
            /**
             * The base implementation of methods like `_.max` and `_.min` which accepts a
             * `comparator` to determine the extremum value.
             *
             * @private
             * @param {Array} array The array to iterate over.
             * @param {Function} iteratee The iteratee invoked per iteration.
             * @param {Function} comparator The comparator used to compare values.
             * @returns {*} Returns the extremum value.
             */


            function baseExtremum(array, iteratee, comparator) {
              var index = -1,
                  length = array.length;

              while (++index < length) {
                var value = array[index],
                    current = iteratee(value);

                if (current != null && (computed === undefined ? current === current && !isSymbol(current) : comparator(current, computed))) {
                  var computed = current,
                      result = value;
                }
              }

              return result;
            }
            /**
             * The base implementation of `_.fill` without an iteratee call guard.
             *
             * @private
             * @param {Array} array The array to fill.
             * @param {*} value The value to fill `array` with.
             * @param {number} [start=0] The start position.
             * @param {number} [end=array.length] The end position.
             * @returns {Array} Returns `array`.
             */


            function baseFill(array, value, start, end) {
              var length = array.length;
              start = toInteger(start);

              if (start < 0) {
                start = -start > length ? 0 : length + start;
              }

              end = end === undefined || end > length ? length : toInteger(end);

              if (end < 0) {
                end += length;
              }

              end = start > end ? 0 : toLength(end);

              while (start < end) {
                array[start++] = value;
              }

              return array;
            }
            /**
             * The base implementation of `_.filter` without support for iteratee shorthands.
             *
             * @private
             * @param {Array|Object} collection The collection to iterate over.
             * @param {Function} predicate The function invoked per iteration.
             * @returns {Array} Returns the new filtered array.
             */


            function baseFilter(collection, predicate) {
              var result = [];
              baseEach(collection, function (value, index, collection) {
                if (predicate(value, index, collection)) {
                  result.push(value);
                }
              });
              return result;
            }
            /**
             * The base implementation of `_.flatten` with support for restricting flattening.
             *
             * @private
             * @param {Array} array The array to flatten.
             * @param {number} depth The maximum recursion depth.
             * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
             * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
             * @param {Array} [result=[]] The initial result value.
             * @returns {Array} Returns the new flattened array.
             */


            function baseFlatten(array, depth, predicate, isStrict, result) {
              var index = -1,
                  length = array.length;
              predicate || (predicate = isFlattenable);
              result || (result = []);

              while (++index < length) {
                var value = array[index];

                if (depth > 0 && predicate(value)) {
                  if (depth > 1) {
                    // Recursively flatten arrays (susceptible to call stack limits).
                    baseFlatten(value, depth - 1, predicate, isStrict, result);
                  } else {
                    arrayPush(result, value);
                  }
                } else if (!isStrict) {
                  result[result.length] = value;
                }
              }

              return result;
            }
            /**
             * The base implementation of `baseForOwn` which iterates over `object`
             * properties returned by `keysFunc` and invokes `iteratee` for each property.
             * Iteratee functions may exit iteration early by explicitly returning `false`.
             *
             * @private
             * @param {Object} object The object to iterate over.
             * @param {Function} iteratee The function invoked per iteration.
             * @param {Function} keysFunc The function to get the keys of `object`.
             * @returns {Object} Returns `object`.
             */


            var baseFor = createBaseFor();
            /**
             * This function is like `baseFor` except that it iterates over properties
             * in the opposite order.
             *
             * @private
             * @param {Object} object The object to iterate over.
             * @param {Function} iteratee The function invoked per iteration.
             * @param {Function} keysFunc The function to get the keys of `object`.
             * @returns {Object} Returns `object`.
             */

            var baseForRight = createBaseFor(true);
            /**
             * The base implementation of `_.forOwn` without support for iteratee shorthands.
             *
             * @private
             * @param {Object} object The object to iterate over.
             * @param {Function} iteratee The function invoked per iteration.
             * @returns {Object} Returns `object`.
             */

            function baseForOwn(object, iteratee) {
              return object && baseFor(object, iteratee, keys);
            }
            /**
             * The base implementation of `_.forOwnRight` without support for iteratee shorthands.
             *
             * @private
             * @param {Object} object The object to iterate over.
             * @param {Function} iteratee The function invoked per iteration.
             * @returns {Object} Returns `object`.
             */


            function baseForOwnRight(object, iteratee) {
              return object && baseForRight(object, iteratee, keys);
            }
            /**
             * The base implementation of `_.functions` which creates an array of
             * `object` function property names filtered from `props`.
             *
             * @private
             * @param {Object} object The object to inspect.
             * @param {Array} props The property names to filter.
             * @returns {Array} Returns the function names.
             */


            function baseFunctions(object, props) {
              return arrayFilter(props, function (key) {
                return isFunction(object[key]);
              });
            }
            /**
             * The base implementation of `_.get` without support for default values.
             *
             * @private
             * @param {Object} object The object to query.
             * @param {Array|string} path The path of the property to get.
             * @returns {*} Returns the resolved value.
             */


            function baseGet(object, path) {
              path = castPath(path, object);
              var index = 0,
                  length = path.length;

              while (object != null && index < length) {
                object = object[toKey(path[index++])];
              }

              return index && index == length ? object : undefined;
            }
            /**
             * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
             * `keysFunc` and `symbolsFunc` to get the enumerable property names and
             * symbols of `object`.
             *
             * @private
             * @param {Object} object The object to query.
             * @param {Function} keysFunc The function to get the keys of `object`.
             * @param {Function} symbolsFunc The function to get the symbols of `object`.
             * @returns {Array} Returns the array of property names and symbols.
             */


            function baseGetAllKeys(object, keysFunc, symbolsFunc) {
              var result = keysFunc(object);
              return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
            }
            /**
             * The base implementation of `getTag` without fallbacks for buggy environments.
             *
             * @private
             * @param {*} value The value to query.
             * @returns {string} Returns the `toStringTag`.
             */


            function baseGetTag(value) {
              if (value == null) {
                return value === undefined ? undefinedTag : nullTag;
              }

              return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
            }
            /**
             * The base implementation of `_.gt` which doesn't coerce arguments.
             *
             * @private
             * @param {*} value The value to compare.
             * @param {*} other The other value to compare.
             * @returns {boolean} Returns `true` if `value` is greater than `other`,
             *  else `false`.
             */


            function baseGt(value, other) {
              return value > other;
            }
            /**
             * The base implementation of `_.has` without support for deep paths.
             *
             * @private
             * @param {Object} [object] The object to query.
             * @param {Array|string} key The key to check.
             * @returns {boolean} Returns `true` if `key` exists, else `false`.
             */


            function baseHas(object, key) {
              return object != null && hasOwnProperty.call(object, key);
            }
            /**
             * The base implementation of `_.hasIn` without support for deep paths.
             *
             * @private
             * @param {Object} [object] The object to query.
             * @param {Array|string} key The key to check.
             * @returns {boolean} Returns `true` if `key` exists, else `false`.
             */


            function baseHasIn(object, key) {
              return object != null && key in Object(object);
            }
            /**
             * The base implementation of `_.inRange` which doesn't coerce arguments.
             *
             * @private
             * @param {number} number The number to check.
             * @param {number} start The start of the range.
             * @param {number} end The end of the range.
             * @returns {boolean} Returns `true` if `number` is in the range, else `false`.
             */


            function baseInRange(number, start, end) {
              return number >= nativeMin(start, end) && number < nativeMax(start, end);
            }
            /**
             * The base implementation of methods like `_.intersection`, without support
             * for iteratee shorthands, that accepts an array of arrays to inspect.
             *
             * @private
             * @param {Array} arrays The arrays to inspect.
             * @param {Function} [iteratee] The iteratee invoked per element.
             * @param {Function} [comparator] The comparator invoked per element.
             * @returns {Array} Returns the new array of shared values.
             */


            function baseIntersection(arrays, iteratee, comparator) {
              var includes = comparator ? arrayIncludesWith : arrayIncludes,
                  length = arrays[0].length,
                  othLength = arrays.length,
                  othIndex = othLength,
                  caches = Array(othLength),
                  maxLength = Infinity,
                  result = [];

              while (othIndex--) {
                var array = arrays[othIndex];

                if (othIndex && iteratee) {
                  array = arrayMap(array, baseUnary(iteratee));
                }

                maxLength = nativeMin(array.length, maxLength);
                caches[othIndex] = !comparator && (iteratee || length >= 120 && array.length >= 120) ? new SetCache(othIndex && array) : undefined;
              }

              array = arrays[0];
              var index = -1,
                  seen = caches[0];

              outer: while (++index < length && result.length < maxLength) {
                var value = array[index],
                    computed = iteratee ? iteratee(value) : value;
                value = comparator || value !== 0 ? value : 0;

                if (!(seen ? cacheHas(seen, computed) : includes(result, computed, comparator))) {
                  othIndex = othLength;

                  while (--othIndex) {
                    var cache = caches[othIndex];

                    if (!(cache ? cacheHas(cache, computed) : includes(arrays[othIndex], computed, comparator))) {
                      continue outer;
                    }
                  }

                  if (seen) {
                    seen.push(computed);
                  }

                  result.push(value);
                }
              }

              return result;
            }
            /**
             * The base implementation of `_.invert` and `_.invertBy` which inverts
             * `object` with values transformed by `iteratee` and set by `setter`.
             *
             * @private
             * @param {Object} object The object to iterate over.
             * @param {Function} setter The function to set `accumulator` values.
             * @param {Function} iteratee The iteratee to transform values.
             * @param {Object} accumulator The initial inverted object.
             * @returns {Function} Returns `accumulator`.
             */


            function baseInverter(object, setter, iteratee, accumulator) {
              baseForOwn(object, function (value, key, object) {
                setter(accumulator, iteratee(value), key, object);
              });
              return accumulator;
            }
            /**
             * The base implementation of `_.invoke` without support for individual
             * method arguments.
             *
             * @private
             * @param {Object} object The object to query.
             * @param {Array|string} path The path of the method to invoke.
             * @param {Array} args The arguments to invoke the method with.
             * @returns {*} Returns the result of the invoked method.
             */


            function baseInvoke(object, path, args) {
              path = castPath(path, object);
              object = parent(object, path);
              var func = object == null ? object : object[toKey(last(path))];
              return func == null ? undefined : apply(func, object, args);
            }
            /**
             * The base implementation of `_.isArguments`.
             *
             * @private
             * @param {*} value The value to check.
             * @returns {boolean} Returns `true` if `value` is an `arguments` object,
             */


            function baseIsArguments(value) {
              return isObjectLike(value) && baseGetTag(value) == argsTag;
            }
            /**
             * The base implementation of `_.isArrayBuffer` without Node.js optimizations.
             *
             * @private
             * @param {*} value The value to check.
             * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.
             */


            function baseIsArrayBuffer(value) {
              return isObjectLike(value) && baseGetTag(value) == arrayBufferTag;
            }
            /**
             * The base implementation of `_.isDate` without Node.js optimizations.
             *
             * @private
             * @param {*} value The value to check.
             * @returns {boolean} Returns `true` if `value` is a date object, else `false`.
             */


            function baseIsDate(value) {
              return isObjectLike(value) && baseGetTag(value) == dateTag;
            }
            /**
             * The base implementation of `_.isEqual` which supports partial comparisons
             * and tracks traversed objects.
             *
             * @private
             * @param {*} value The value to compare.
             * @param {*} other The other value to compare.
             * @param {boolean} bitmask The bitmask flags.
             *  1 - Unordered comparison
             *  2 - Partial comparison
             * @param {Function} [customizer] The function to customize comparisons.
             * @param {Object} [stack] Tracks traversed `value` and `other` objects.
             * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
             */


            function baseIsEqual(value, other, bitmask, customizer, stack) {
              if (value === other) {
                return true;
              }

              if (value == null || other == null || !isObjectLike(value) && !isObjectLike(other)) {
                return value !== value && other !== other;
              }

              return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
            }
            /**
             * A specialized version of `baseIsEqual` for arrays and objects which performs
             * deep comparisons and tracks traversed objects enabling objects with circular
             * references to be compared.
             *
             * @private
             * @param {Object} object The object to compare.
             * @param {Object} other The other object to compare.
             * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
             * @param {Function} customizer The function to customize comparisons.
             * @param {Function} equalFunc The function to determine equivalents of values.
             * @param {Object} [stack] Tracks traversed `object` and `other` objects.
             * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
             */


            function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
              var objIsArr = isArray(object),
                  othIsArr = isArray(other),
                  objTag = objIsArr ? arrayTag : getTag(object),
                  othTag = othIsArr ? arrayTag : getTag(other);
              objTag = objTag == argsTag ? objectTag : objTag;
              othTag = othTag == argsTag ? objectTag : othTag;
              var objIsObj = objTag == objectTag,
                  othIsObj = othTag == objectTag,
                  isSameTag = objTag == othTag;

              if (isSameTag && isBuffer(object)) {
                if (!isBuffer(other)) {
                  return false;
                }

                objIsArr = true;
                objIsObj = false;
              }

              if (isSameTag && !objIsObj) {
                stack || (stack = new Stack());
                return objIsArr || isTypedArray(object) ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
              }

              if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
                var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
                    othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');

                if (objIsWrapped || othIsWrapped) {
                  var objUnwrapped = objIsWrapped ? object.value() : object,
                      othUnwrapped = othIsWrapped ? other.value() : other;
                  stack || (stack = new Stack());
                  return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
                }
              }

              if (!isSameTag) {
                return false;
              }

              stack || (stack = new Stack());
              return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
            }
            /**
             * The base implementation of `_.isMap` without Node.js optimizations.
             *
             * @private
             * @param {*} value The value to check.
             * @returns {boolean} Returns `true` if `value` is a map, else `false`.
             */


            function baseIsMap(value) {
              return isObjectLike(value) && getTag(value) == mapTag;
            }
            /**
             * The base implementation of `_.isMatch` without support for iteratee shorthands.
             *
             * @private
             * @param {Object} object The object to inspect.
             * @param {Object} source The object of property values to match.
             * @param {Array} matchData The property names, values, and compare flags to match.
             * @param {Function} [customizer] The function to customize comparisons.
             * @returns {boolean} Returns `true` if `object` is a match, else `false`.
             */


            function baseIsMatch(object, source, matchData, customizer) {
              var index = matchData.length,
                  length = index,
                  noCustomizer = !customizer;

              if (object == null) {
                return !length;
              }

              object = Object(object);

              while (index--) {
                var data = matchData[index];

                if (noCustomizer && data[2] ? data[1] !== object[data[0]] : !(data[0] in object)) {
                  return false;
                }
              }

              while (++index < length) {
                data = matchData[index];
                var key = data[0],
                    objValue = object[key],
                    srcValue = data[1];

                if (noCustomizer && data[2]) {
                  if (objValue === undefined && !(key in object)) {
                    return false;
                  }
                } else {
                  var stack = new Stack();

                  if (customizer) {
                    var result = customizer(objValue, srcValue, key, object, source, stack);
                  }

                  if (!(result === undefined ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack) : result)) {
                    return false;
                  }
                }
              }

              return true;
            }
            /**
             * The base implementation of `_.isNative` without bad shim checks.
             *
             * @private
             * @param {*} value The value to check.
             * @returns {boolean} Returns `true` if `value` is a native function,
             *  else `false`.
             */


            function baseIsNative(value) {
              if (!isObject(value) || isMasked(value)) {
                return false;
              }

              var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
              return pattern.test(toSource(value));
            }
            /**
             * The base implementation of `_.isRegExp` without Node.js optimizations.
             *
             * @private
             * @param {*} value The value to check.
             * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
             */


            function baseIsRegExp(value) {
              return isObjectLike(value) && baseGetTag(value) == regexpTag;
            }
            /**
             * The base implementation of `_.isSet` without Node.js optimizations.
             *
             * @private
             * @param {*} value The value to check.
             * @returns {boolean} Returns `true` if `value` is a set, else `false`.
             */


            function baseIsSet(value) {
              return isObjectLike(value) && getTag(value) == setTag;
            }
            /**
             * The base implementation of `_.isTypedArray` without Node.js optimizations.
             *
             * @private
             * @param {*} value The value to check.
             * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
             */


            function baseIsTypedArray(value) {
              return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
            }
            /**
             * The base implementation of `_.iteratee`.
             *
             * @private
             * @param {*} [value=_.identity] The value to convert to an iteratee.
             * @returns {Function} Returns the iteratee.
             */


            function baseIteratee(value) {
              // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
              // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
              if (typeof value == 'function') {
                return value;
              }

              if (value == null) {
                return identity;
              }

              if (typeof value == 'object') {
                return isArray(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value);
              }

              return property(value);
            }
            /**
             * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
             *
             * @private
             * @param {Object} object The object to query.
             * @returns {Array} Returns the array of property names.
             */


            function baseKeys(object) {
              if (!isPrototype(object)) {
                return nativeKeys(object);
              }

              var result = [];

              for (var key in Object(object)) {
                if (hasOwnProperty.call(object, key) && key != 'constructor') {
                  result.push(key);
                }
              }

              return result;
            }
            /**
             * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
             *
             * @private
             * @param {Object} object The object to query.
             * @returns {Array} Returns the array of property names.
             */


            function baseKeysIn(object) {
              if (!isObject(object)) {
                return nativeKeysIn(object);
              }

              var isProto = isPrototype(object),
                  result = [];

              for (var key in object) {
                if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
                  result.push(key);
                }
              }

              return result;
            }
            /**
             * The base implementation of `_.lt` which doesn't coerce arguments.
             *
             * @private
             * @param {*} value The value to compare.
             * @param {*} other The other value to compare.
             * @returns {boolean} Returns `true` if `value` is less than `other`,
             *  else `false`.
             */


            function baseLt(value, other) {
              return value < other;
            }
            /**
             * The base implementation of `_.map` without support for iteratee shorthands.
             *
             * @private
             * @param {Array|Object} collection The collection to iterate over.
             * @param {Function} iteratee The function invoked per iteration.
             * @returns {Array} Returns the new mapped array.
             */


            function baseMap(collection, iteratee) {
              var index = -1,
                  result = isArrayLike(collection) ? Array(collection.length) : [];
              baseEach(collection, function (value, key, collection) {
                result[++index] = iteratee(value, key, collection);
              });
              return result;
            }
            /**
             * The base implementation of `_.matches` which doesn't clone `source`.
             *
             * @private
             * @param {Object} source The object of property values to match.
             * @returns {Function} Returns the new spec function.
             */


            function baseMatches(source) {
              var matchData = getMatchData(source);

              if (matchData.length == 1 && matchData[0][2]) {
                return matchesStrictComparable(matchData[0][0], matchData[0][1]);
              }

              return function (object) {
                return object === source || baseIsMatch(object, source, matchData);
              };
            }
            /**
             * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
             *
             * @private
             * @param {string} path The path of the property to get.
             * @param {*} srcValue The value to match.
             * @returns {Function} Returns the new spec function.
             */


            function baseMatchesProperty(path, srcValue) {
              if (isKey(path) && isStrictComparable(srcValue)) {
                return matchesStrictComparable(toKey(path), srcValue);
              }

              return function (object) {
                var objValue = get(object, path);
                return objValue === undefined && objValue === srcValue ? hasIn(object, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
              };
            }
            /**
             * The base implementation of `_.merge` without support for multiple sources.
             *
             * @private
             * @param {Object} object The destination object.
             * @param {Object} source The source object.
             * @param {number} srcIndex The index of `source`.
             * @param {Function} [customizer] The function to customize merged values.
             * @param {Object} [stack] Tracks traversed source values and their merged
             *  counterparts.
             */


            function baseMerge(object, source, srcIndex, customizer, stack) {
              if (object === source) {
                return;
              }

              baseFor(source, function (srcValue, key) {
                stack || (stack = new Stack());

                if (isObject(srcValue)) {
                  baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
                } else {
                  var newValue = customizer ? customizer(safeGet(object, key), srcValue, key + '', object, source, stack) : undefined;

                  if (newValue === undefined) {
                    newValue = srcValue;
                  }

                  assignMergeValue(object, key, newValue);
                }
              }, keysIn);
            }
            /**
             * A specialized version of `baseMerge` for arrays and objects which performs
             * deep merges and tracks traversed objects enabling objects with circular
             * references to be merged.
             *
             * @private
             * @param {Object} object The destination object.
             * @param {Object} source The source object.
             * @param {string} key The key of the value to merge.
             * @param {number} srcIndex The index of `source`.
             * @param {Function} mergeFunc The function to merge values.
             * @param {Function} [customizer] The function to customize assigned values.
             * @param {Object} [stack] Tracks traversed source values and their merged
             *  counterparts.
             */


            function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
              var objValue = safeGet(object, key),
                  srcValue = safeGet(source, key),
                  stacked = stack.get(srcValue);

              if (stacked) {
                assignMergeValue(object, key, stacked);
                return;
              }

              var newValue = customizer ? customizer(objValue, srcValue, key + '', object, source, stack) : undefined;
              var isCommon = newValue === undefined;

              if (isCommon) {
                var isArr = isArray(srcValue),
                    isBuff = !isArr && isBuffer(srcValue),
                    isTyped = !isArr && !isBuff && isTypedArray(srcValue);
                newValue = srcValue;

                if (isArr || isBuff || isTyped) {
                  if (isArray(objValue)) {
                    newValue = objValue;
                  } else if (isArrayLikeObject(objValue)) {
                    newValue = copyArray(objValue);
                  } else if (isBuff) {
                    isCommon = false;
                    newValue = cloneBuffer(srcValue, true);
                  } else if (isTyped) {
                    isCommon = false;
                    newValue = cloneTypedArray(srcValue, true);
                  } else {
                    newValue = [];
                  }
                } else if (isPlainObject(srcValue) || isArguments(srcValue)) {
                  newValue = objValue;

                  if (isArguments(objValue)) {
                    newValue = toPlainObject(objValue);
                  } else if (!isObject(objValue) || isFunction(objValue)) {
                    newValue = initCloneObject(srcValue);
                  }
                } else {
                  isCommon = false;
                }
              }

              if (isCommon) {
                // Recursively merge objects and arrays (susceptible to call stack limits).
                stack.set(srcValue, newValue);
                mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
                stack['delete'](srcValue);
              }

              assignMergeValue(object, key, newValue);
            }
            /**
             * The base implementation of `_.nth` which doesn't coerce arguments.
             *
             * @private
             * @param {Array} array The array to query.
             * @param {number} n The index of the element to return.
             * @returns {*} Returns the nth element of `array`.
             */


            function baseNth(array, n) {
              var length = array.length;

              if (!length) {
                return;
              }

              n += n < 0 ? length : 0;
              return isIndex(n, length) ? array[n] : undefined;
            }
            /**
             * The base implementation of `_.orderBy` without param guards.
             *
             * @private
             * @param {Array|Object} collection The collection to iterate over.
             * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.
             * @param {string[]} orders The sort orders of `iteratees`.
             * @returns {Array} Returns the new sorted array.
             */


            function baseOrderBy(collection, iteratees, orders) {
              if (iteratees.length) {
                iteratees = arrayMap(iteratees, function (iteratee) {
                  if (isArray(iteratee)) {
                    return function (value) {
                      return baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);
                    };
                  }

                  return iteratee;
                });
              } else {
                iteratees = [identity];
              }

              var index = -1;
              iteratees = arrayMap(iteratees, baseUnary(getIteratee()));
              var result = baseMap(collection, function (value, key, collection) {
                var criteria = arrayMap(iteratees, function (iteratee) {
                  return iteratee(value);
                });
                return {
                  'criteria': criteria,
                  'index': ++index,
                  'value': value
                };
              });
              return baseSortBy(result, function (object, other) {
                return compareMultiple(object, other, orders);
              });
            }
            /**
             * The base implementation of `_.pick` without support for individual
             * property identifiers.
             *
             * @private
             * @param {Object} object The source object.
             * @param {string[]} paths The property paths to pick.
             * @returns {Object} Returns the new object.
             */


            function basePick(object, paths) {
              return basePickBy(object, paths, function (value, path) {
                return hasIn(object, path);
              });
            }
            /**
             * The base implementation of  `_.pickBy` without support for iteratee shorthands.
             *
             * @private
             * @param {Object} object The source object.
             * @param {string[]} paths The property paths to pick.
             * @param {Function} predicate The function invoked per property.
             * @returns {Object} Returns the new object.
             */


            function basePickBy(object, paths, predicate) {
              var index = -1,
                  length = paths.length,
                  result = {};

              while (++index < length) {
                var path = paths[index],
                    value = baseGet(object, path);

                if (predicate(value, path)) {
                  baseSet(result, castPath(path, object), value);
                }
              }

              return result;
            }
            /**
             * A specialized version of `baseProperty` which supports deep paths.
             *
             * @private
             * @param {Array|string} path The path of the property to get.
             * @returns {Function} Returns the new accessor function.
             */


            function basePropertyDeep(path) {
              return function (object) {
                return baseGet(object, path);
              };
            }
            /**
             * The base implementation of `_.pullAllBy` without support for iteratee
             * shorthands.
             *
             * @private
             * @param {Array} array The array to modify.
             * @param {Array} values The values to remove.
             * @param {Function} [iteratee] The iteratee invoked per element.
             * @param {Function} [comparator] The comparator invoked per element.
             * @returns {Array} Returns `array`.
             */


            function basePullAll(array, values, iteratee, comparator) {
              var indexOf = comparator ? baseIndexOfWith : baseIndexOf,
                  index = -1,
                  length = values.length,
                  seen = array;

              if (array === values) {
                values = copyArray(values);
              }

              if (iteratee) {
                seen = arrayMap(array, baseUnary(iteratee));
              }

              while (++index < length) {
                var fromIndex = 0,
                    value = values[index],
                    computed = iteratee ? iteratee(value) : value;

                while ((fromIndex = indexOf(seen, computed, fromIndex, comparator)) > -1) {
                  if (seen !== array) {
                    splice.call(seen, fromIndex, 1);
                  }

                  splice.call(array, fromIndex, 1);
                }
              }

              return array;
            }
            /**
             * The base implementation of `_.pullAt` without support for individual
             * indexes or capturing the removed elements.
             *
             * @private
             * @param {Array} array The array to modify.
             * @param {number[]} indexes The indexes of elements to remove.
             * @returns {Array} Returns `array`.
             */


            function basePullAt(array, indexes) {
              var length = array ? indexes.length : 0,
                  lastIndex = length - 1;

              while (length--) {
                var index = indexes[length];

                if (length == lastIndex || index !== previous) {
                  var previous = index;

                  if (isIndex(index)) {
                    splice.call(array, index, 1);
                  } else {
                    baseUnset(array, index);
                  }
                }
              }

              return array;
            }
            /**
             * The base implementation of `_.random` without support for returning
             * floating-point numbers.
             *
             * @private
             * @param {number} lower The lower bound.
             * @param {number} upper The upper bound.
             * @returns {number} Returns the random number.
             */


            function baseRandom(lower, upper) {
              return lower + nativeFloor(nativeRandom() * (upper - lower + 1));
            }
            /**
             * The base implementation of `_.range` and `_.rangeRight` which doesn't
             * coerce arguments.
             *
             * @private
             * @param {number} start The start of the range.
             * @param {number} end The end of the range.
             * @param {number} step The value to increment or decrement by.
             * @param {boolean} [fromRight] Specify iterating from right to left.
             * @returns {Array} Returns the range of numbers.
             */


            function baseRange(start, end, step, fromRight) {
              var index = -1,
                  length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),
                  result = Array(length);

              while (length--) {
                result[fromRight ? length : ++index] = start;
                start += step;
              }

              return result;
            }
            /**
             * The base implementation of `_.repeat` which doesn't coerce arguments.
             *
             * @private
             * @param {string} string The string to repeat.
             * @param {number} n The number of times to repeat the string.
             * @returns {string} Returns the repeated string.
             */


            function baseRepeat(string, n) {
              var result = '';

              if (!string || n < 1 || n > MAX_SAFE_INTEGER) {
                return result;
              } // Leverage the exponentiation by squaring algorithm for a faster repeat.
              // See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details.


              do {
                if (n % 2) {
                  result += string;
                }

                n = nativeFloor(n / 2);

                if (n) {
                  string += string;
                }
              } while (n);

              return result;
            }
            /**
             * The base implementation of `_.rest` which doesn't validate or coerce arguments.
             *
             * @private
             * @param {Function} func The function to apply a rest parameter to.
             * @param {number} [start=func.length-1] The start position of the rest parameter.
             * @returns {Function} Returns the new function.
             */


            function baseRest(func, start) {
              return setToString(overRest(func, start, identity), func + '');
            }
            /**
             * The base implementation of `_.sample`.
             *
             * @private
             * @param {Array|Object} collection The collection to sample.
             * @returns {*} Returns the random element.
             */


            function baseSample(collection) {
              return arraySample(values(collection));
            }
            /**
             * The base implementation of `_.sampleSize` without param guards.
             *
             * @private
             * @param {Array|Object} collection The collection to sample.
             * @param {number} n The number of elements to sample.
             * @returns {Array} Returns the random elements.
             */


            function baseSampleSize(collection, n) {
              var array = values(collection);
              return shuffleSelf(array, baseClamp(n, 0, array.length));
            }
            /**
             * The base implementation of `_.set`.
             *
             * @private
             * @param {Object} object The object to modify.
             * @param {Array|string} path The path of the property to set.
             * @param {*} value The value to set.
             * @param {Function} [customizer] The function to customize path creation.
             * @returns {Object} Returns `object`.
             */


            function baseSet(object, path, value, customizer) {
              if (!isObject(object)) {
                return object;
              }

              path = castPath(path, object);
              var index = -1,
                  length = path.length,
                  lastIndex = length - 1,
                  nested = object;

              while (nested != null && ++index < length) {
                var key = toKey(path[index]),
                    newValue = value;

                if (key === '__proto__' || key === 'constructor' || key === 'prototype') {
                  return object;
                }

                if (index != lastIndex) {
                  var objValue = nested[key];
                  newValue = customizer ? customizer(objValue, key, nested) : undefined;

                  if (newValue === undefined) {
                    newValue = isObject(objValue) ? objValue : isIndex(path[index + 1]) ? [] : {};
                  }
                }

                assignValue(nested, key, newValue);
                nested = nested[key];
              }

              return object;
            }
            /**
             * The base implementation of `setData` without support for hot loop shorting.
             *
             * @private
             * @param {Function} func The function to associate metadata with.
             * @param {*} data The metadata.
             * @returns {Function} Returns `func`.
             */


            var baseSetData = !metaMap ? identity : function (func, data) {
              metaMap.set(func, data);
              return func;
            };
            /**
             * The base implementation of `setToString` without support for hot loop shorting.
             *
             * @private
             * @param {Function} func The function to modify.
             * @param {Function} string The `toString` result.
             * @returns {Function} Returns `func`.
             */

            var baseSetToString = !defineProperty ? identity : function (func, string) {
              return defineProperty(func, 'toString', {
                'configurable': true,
                'enumerable': false,
                'value': constant(string),
                'writable': true
              });
            };
            /**
             * The base implementation of `_.shuffle`.
             *
             * @private
             * @param {Array|Object} collection The collection to shuffle.
             * @returns {Array} Returns the new shuffled array.
             */

            function baseShuffle(collection) {
              return shuffleSelf(values(collection));
            }
            /**
             * The base implementation of `_.slice` without an iteratee call guard.
             *
             * @private
             * @param {Array} array The array to slice.
             * @param {number} [start=0] The start position.
             * @param {number} [end=array.length] The end position.
             * @returns {Array} Returns the slice of `array`.
             */


            function baseSlice(array, start, end) {
              var index = -1,
                  length = array.length;

              if (start < 0) {
                start = -start > length ? 0 : length + start;
              }

              end = end > length ? length : end;

              if (end < 0) {
                end += length;
              }

              length = start > end ? 0 : end - start >>> 0;
              start >>>= 0;
              var result = Array(length);

              while (++index < length) {
                result[index] = array[index + start];
              }

              return result;
            }
            /**
             * The base implementation of `_.some` without support for iteratee shorthands.
             *
             * @private
             * @param {Array|Object} collection The collection to iterate over.
             * @param {Function} predicate The function invoked per iteration.
             * @returns {boolean} Returns `true` if any element passes the predicate check,
             *  else `false`.
             */


            function baseSome(collection, predicate) {
              var result;
              baseEach(collection, function (value, index, collection) {
                result = predicate(value, index, collection);
                return !result;
              });
              return !!result;
            }
            /**
             * The base implementation of `_.sortedIndex` and `_.sortedLastIndex` which
             * performs a binary search of `array` to determine the index at which `value`
             * should be inserted into `array` in order to maintain its sort order.
             *
             * @private
             * @param {Array} array The sorted array to inspect.
             * @param {*} value The value to evaluate.
             * @param {boolean} [retHighest] Specify returning the highest qualified index.
             * @returns {number} Returns the index at which `value` should be inserted
             *  into `array`.
             */


            function baseSortedIndex(array, value, retHighest) {
              var low = 0,
                  high = array == null ? low : array.length;

              if (typeof value == 'number' && value === value && high <= HALF_MAX_ARRAY_LENGTH) {
                while (low < high) {
                  var mid = low + high >>> 1,
                      computed = array[mid];

                  if (computed !== null && !isSymbol(computed) && (retHighest ? computed <= value : computed < value)) {
                    low = mid + 1;
                  } else {
                    high = mid;
                  }
                }

                return high;
              }

              return baseSortedIndexBy(array, value, identity, retHighest);
            }
            /**
             * The base implementation of `_.sortedIndexBy` and `_.sortedLastIndexBy`
             * which invokes `iteratee` for `value` and each element of `array` to compute
             * their sort ranking. The iteratee is invoked with one argument; (value).
             *
             * @private
             * @param {Array} array The sorted array to inspect.
             * @param {*} value The value to evaluate.
             * @param {Function} iteratee The iteratee invoked per element.
             * @param {boolean} [retHighest] Specify returning the highest qualified index.
             * @returns {number} Returns the index at which `value` should be inserted
             *  into `array`.
             */


            function baseSortedIndexBy(array, value, iteratee, retHighest) {
              var low = 0,
                  high = array == null ? 0 : array.length;

              if (high === 0) {
                return 0;
              }

              value = iteratee(value);
              var valIsNaN = value !== value,
                  valIsNull = value === null,
                  valIsSymbol = isSymbol(value),
                  valIsUndefined = value === undefined;

              while (low < high) {
                var mid = nativeFloor((low + high) / 2),
                    computed = iteratee(array[mid]),
                    othIsDefined = computed !== undefined,
                    othIsNull = computed === null,
                    othIsReflexive = computed === computed,
                    othIsSymbol = isSymbol(computed);

                if (valIsNaN) {
                  var setLow = retHighest || othIsReflexive;
                } else if (valIsUndefined) {
                  setLow = othIsReflexive && (retHighest || othIsDefined);
                } else if (valIsNull) {
                  setLow = othIsReflexive && othIsDefined && (retHighest || !othIsNull);
                } else if (valIsSymbol) {
                  setLow = othIsReflexive && othIsDefined && !othIsNull && (retHighest || !othIsSymbol);
                } else if (othIsNull || othIsSymbol) {
                  setLow = false;
                } else {
                  setLow = retHighest ? computed <= value : computed < value;
                }

                if (setLow) {
                  low = mid + 1;
                } else {
                  high = mid;
                }
              }

              return nativeMin(high, MAX_ARRAY_INDEX);
            }
            /**
             * The base implementation of `_.sortedUniq` and `_.sortedUniqBy` without
             * support for iteratee shorthands.
             *
             * @private
             * @param {Array} array The array to inspect.
             * @param {Function} [iteratee] The iteratee invoked per element.
             * @returns {Array} Returns the new duplicate free array.
             */


            function baseSortedUniq(array, iteratee) {
              var index = -1,
                  length = array.length,
                  resIndex = 0,
                  result = [];

              while (++index < length) {
                var value = array[index],
                    computed = iteratee ? iteratee(value) : value;

                if (!index || !eq(computed, seen)) {
                  var seen = computed;
                  result[resIndex++] = value === 0 ? 0 : value;
                }
              }

              return result;
            }
            /**
             * The base implementation of `_.toNumber` which doesn't ensure correct
             * conversions of binary, hexadecimal, or octal string values.
             *
             * @private
             * @param {*} value The value to process.
             * @returns {number} Returns the number.
             */


            function baseToNumber(value) {
              if (typeof value == 'number') {
                return value;
              }

              if (isSymbol(value)) {
                return NAN;
              }

              return +value;
            }
            /**
             * The base implementation of `_.toString` which doesn't convert nullish
             * values to empty strings.
             *
             * @private
             * @param {*} value The value to process.
             * @returns {string} Returns the string.
             */


            function baseToString(value) {
              // Exit early for strings to avoid a performance hit in some environments.
              if (typeof value == 'string') {
                return value;
              }

              if (isArray(value)) {
                // Recursively convert values (susceptible to call stack limits).
                return arrayMap(value, baseToString) + '';
              }

              if (isSymbol(value)) {
                return symbolToString ? symbolToString.call(value) : '';
              }

              var result = value + '';
              return result == '0' && 1 / value == -INFINITY ? '-0' : result;
            }
            /**
             * The base implementation of `_.uniqBy` without support for iteratee shorthands.
             *
             * @private
             * @param {Array} array The array to inspect.
             * @param {Function} [iteratee] The iteratee invoked per element.
             * @param {Function} [comparator] The comparator invoked per element.
             * @returns {Array} Returns the new duplicate free array.
             */


            function baseUniq(array, iteratee, comparator) {
              var index = -1,
                  includes = arrayIncludes,
                  length = array.length,
                  isCommon = true,
                  result = [],
                  seen = result;

              if (comparator) {
                isCommon = false;
                includes = arrayIncludesWith;
              } else if (length >= LARGE_ARRAY_SIZE) {
                var set = iteratee ? null : createSet(array);

                if (set) {
                  return setToArray(set);
                }

                isCommon = false;
                includes = cacheHas;
                seen = new SetCache();
              } else {
                seen = iteratee ? [] : result;
              }

              outer: while (++index < length) {
                var value = array[index],
                    computed = iteratee ? iteratee(value) : value;
                value = comparator || value !== 0 ? value : 0;

                if (isCommon && computed === computed) {
                  var seenIndex = seen.length;

                  while (seenIndex--) {
                    if (seen[seenIndex] === computed) {
                      continue outer;
                    }
                  }

                  if (iteratee) {
                    seen.push(computed);
                  }

                  result.push(value);
                } else if (!includes(seen, computed, comparator)) {
                  if (seen !== result) {
                    seen.push(computed);
                  }

                  result.push(value);
                }
              }

              return result;
            }
            /**
             * The base implementation of `_.unset`.
             *
             * @private
             * @param {Object} object The object to modify.
             * @param {Array|string} path The property path to unset.
             * @returns {boolean} Returns `true` if the property is deleted, else `false`.
             */


            function baseUnset(object, path) {
              path = castPath(path, object);
              object = parent(object, path);
              return object == null || delete object[toKey(last(path))];
            }
            /**
             * The base implementation of `_.update`.
             *
             * @private
             * @param {Object} object The object to modify.
             * @param {Array|string} path The path of the property to update.
             * @param {Function} updater The function to produce the updated value.
             * @param {Function} [customizer] The function to customize path creation.
             * @returns {Object} Returns `object`.
             */


            function baseUpdate(object, path, updater, customizer) {
              return baseSet(object, path, updater(baseGet(object, path)), customizer);
            }
            /**
             * The base implementation of methods like `_.dropWhile` and `_.takeWhile`
             * without support for iteratee shorthands.
             *
             * @private
             * @param {Array} array The array to query.
             * @param {Function} predicate The function invoked per iteration.
             * @param {boolean} [isDrop] Specify dropping elements instead of taking them.
             * @param {boolean} [fromRight] Specify iterating from right to left.
             * @returns {Array} Returns the slice of `array`.
             */


            function baseWhile(array, predicate, isDrop, fromRight) {
              var length = array.length,
                  index = fromRight ? length : -1;

              while ((fromRight ? index-- : ++index < length) && predicate(array[index], index, array)) {}

              return isDrop ? baseSlice(array, fromRight ? 0 : index, fromRight ? index + 1 : length) : baseSlice(array, fromRight ? index + 1 : 0, fromRight ? length : index);
            }
            /**
             * The base implementation of `wrapperValue` which returns the result of
             * performing a sequence of actions on the unwrapped `value`, where each
             * successive action is supplied the return value of the previous.
             *
             * @private
             * @param {*} value The unwrapped value.
             * @param {Array} actions Actions to perform to resolve the unwrapped value.
             * @returns {*} Returns the resolved value.
             */


            function baseWrapperValue(value, actions) {
              var result = value;

              if (result instanceof LazyWrapper) {
                result = result.value();
              }

              return arrayReduce(actions, function (result, action) {
                return action.func.apply(action.thisArg, arrayPush([result], action.args));
              }, result);
            }
            /**
             * The base implementation of methods like `_.xor`, without support for
             * iteratee shorthands, that accepts an array of arrays to inspect.
             *
             * @private
             * @param {Array} arrays The arrays to inspect.
             * @param {Function} [iteratee] The iteratee invoked per element.
             * @param {Function} [comparator] The comparator invoked per element.
             * @returns {Array} Returns the new array of values.
             */


            function baseXor(arrays, iteratee, comparator) {
              var length = arrays.length;

              if (length < 2) {
                return length ? baseUniq(arrays[0]) : [];
              }

              var index = -1,
                  result = Array(length);

              while (++index < length) {
                var array = arrays[index],
                    othIndex = -1;

                while (++othIndex < length) {
                  if (othIndex != index) {
                    result[index] = baseDifference(result[index] || array, arrays[othIndex], iteratee, comparator);
                  }
                }
              }

              return baseUniq(baseFlatten(result, 1), iteratee, comparator);
            }
            /**
             * This base implementation of `_.zipObject` which assigns values using `assignFunc`.
             *
             * @private
             * @param {Array} props The property identifiers.
             * @param {Array} values The property values.
             * @param {Function} assignFunc The function to assign values.
             * @returns {Object} Returns the new object.
             */


            function baseZipObject(props, values, assignFunc) {
              var index = -1,
                  length = props.length,
                  valsLength = values.length,
                  result = {};

              while (++index < length) {
                var value = index < valsLength ? values[index] : undefined;
                assignFunc(result, props[index], value);
              }

              return result;
            }
            /**
             * Casts `value` to an empty array if it's not an array like object.
             *
             * @private
             * @param {*} value The value to inspect.
             * @returns {Array|Object} Returns the cast array-like object.
             */


            function castArrayLikeObject(value) {
              return isArrayLikeObject(value) ? value : [];
            }
            /**
             * Casts `value` to `identity` if it's not a function.
             *
             * @private
             * @param {*} value The value to inspect.
             * @returns {Function} Returns cast function.
             */


            function castFunction(value) {
              return typeof value == 'function' ? value : identity;
            }
            /**
             * Casts `value` to a path array if it's not one.
             *
             * @private
             * @param {*} value The value to inspect.
             * @param {Object} [object] The object to query keys on.
             * @returns {Array} Returns the cast property path array.
             */


            function castPath(value, object) {
              if (isArray(value)) {
                return value;
              }

              return isKey(value, object) ? [value] : stringToPath(toString(value));
            }
            /**
             * A `baseRest` alias which can be replaced with `identity` by module
             * replacement plugins.
             *
             * @private
             * @type {Function}
             * @param {Function} func The function to apply a rest parameter to.
             * @returns {Function} Returns the new function.
             */


            var castRest = baseRest;
            /**
             * Casts `array` to a slice if it's needed.
             *
             * @private
             * @param {Array} array The array to inspect.
             * @param {number} start The start position.
             * @param {number} [end=array.length] The end position.
             * @returns {Array} Returns the cast slice.
             */

            function castSlice(array, start, end) {
              var length = array.length;
              end = end === undefined ? length : end;
              return !start && end >= length ? array : baseSlice(array, start, end);
            }
            /**
             * A simple wrapper around the global [`clearTimeout`](https://mdn.io/clearTimeout).
             *
             * @private
             * @param {number|Object} id The timer id or timeout object of the timer to clear.
             */


            var clearTimeout = ctxClearTimeout || function (id) {
              return root.clearTimeout(id);
            };
            /**
             * Creates a clone of  `buffer`.
             *
             * @private
             * @param {Buffer} buffer The buffer to clone.
             * @param {boolean} [isDeep] Specify a deep clone.
             * @returns {Buffer} Returns the cloned buffer.
             */


            function cloneBuffer(buffer, isDeep) {
              if (isDeep) {
                return buffer.slice();
              }

              var length = buffer.length,
                  result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
              buffer.copy(result);
              return result;
            }
            /**
             * Creates a clone of `arrayBuffer`.
             *
             * @private
             * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
             * @returns {ArrayBuffer} Returns the cloned array buffer.
             */


            function cloneArrayBuffer(arrayBuffer) {
              var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
              new Uint8Array(result).set(new Uint8Array(arrayBuffer));
              return result;
            }
            /**
             * Creates a clone of `dataView`.
             *
             * @private
             * @param {Object} dataView The data view to clone.
             * @param {boolean} [isDeep] Specify a deep clone.
             * @returns {Object} Returns the cloned data view.
             */


            function cloneDataView(dataView, isDeep) {
              var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
              return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
            }
            /**
             * Creates a clone of `regexp`.
             *
             * @private
             * @param {Object} regexp The regexp to clone.
             * @returns {Object} Returns the cloned regexp.
             */


            function cloneRegExp(regexp) {
              var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
              result.lastIndex = regexp.lastIndex;
              return result;
            }
            /**
             * Creates a clone of the `symbol` object.
             *
             * @private
             * @param {Object} symbol The symbol object to clone.
             * @returns {Object} Returns the cloned symbol object.
             */


            function cloneSymbol(symbol) {
              return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
            }
            /**
             * Creates a clone of `typedArray`.
             *
             * @private
             * @param {Object} typedArray The typed array to clone.
             * @param {boolean} [isDeep] Specify a deep clone.
             * @returns {Object} Returns the cloned typed array.
             */


            function cloneTypedArray(typedArray, isDeep) {
              var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
              return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
            }
            /**
             * Compares values to sort them in ascending order.
             *
             * @private
             * @param {*} value The value to compare.
             * @param {*} other The other value to compare.
             * @returns {number} Returns the sort order indicator for `value`.
             */


            function compareAscending(value, other) {
              if (value !== other) {
                var valIsDefined = value !== undefined,
                    valIsNull = value === null,
                    valIsReflexive = value === value,
                    valIsSymbol = isSymbol(value);
                var othIsDefined = other !== undefined,
                    othIsNull = other === null,
                    othIsReflexive = other === other,
                    othIsSymbol = isSymbol(other);

                if (!othIsNull && !othIsSymbol && !valIsSymbol && value > other || valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol || valIsNull && othIsDefined && othIsReflexive || !valIsDefined && othIsReflexive || !valIsReflexive) {
                  return 1;
                }

                if (!valIsNull && !valIsSymbol && !othIsSymbol && value < other || othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol || othIsNull && valIsDefined && valIsReflexive || !othIsDefined && valIsReflexive || !othIsReflexive) {
                  return -1;
                }
              }

              return 0;
            }
            /**
             * Used by `_.orderBy` to compare multiple properties of a value to another
             * and stable sort them.
             *
             * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,
             * specify an order of "desc" for descending or "asc" for ascending sort order
             * of corresponding values.
             *
             * @private
             * @param {Object} object The object to compare.
             * @param {Object} other The other object to compare.
             * @param {boolean[]|string[]} orders The order to sort by for each property.
             * @returns {number} Returns the sort order indicator for `object`.
             */


            function compareMultiple(object, other, orders) {
              var index = -1,
                  objCriteria = object.criteria,
                  othCriteria = other.criteria,
                  length = objCriteria.length,
                  ordersLength = orders.length;

              while (++index < length) {
                var result = compareAscending(objCriteria[index], othCriteria[index]);

                if (result) {
                  if (index >= ordersLength) {
                    return result;
                  }

                  var order = orders[index];
                  return result * (order == 'desc' ? -1 : 1);
                }
              } // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications
              // that causes it, under certain circumstances, to provide the same value for
              // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247
              // for more details.
              //
              // This also ensures a stable sort in V8 and other engines.
              // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.


              return object.index - other.index;
            }
            /**
             * Creates an array that is the composition of partially applied arguments,
             * placeholders, and provided arguments into a single array of arguments.
             *
             * @private
             * @param {Array} args The provided arguments.
             * @param {Array} partials The arguments to prepend to those provided.
             * @param {Array} holders The `partials` placeholder indexes.
             * @params {boolean} [isCurried] Specify composing for a curried function.
             * @returns {Array} Returns the new array of composed arguments.
             */


            function composeArgs(args, partials, holders, isCurried) {
              var argsIndex = -1,
                  argsLength = args.length,
                  holdersLength = holders.length,
                  leftIndex = -1,
                  leftLength = partials.length,
                  rangeLength = nativeMax(argsLength - holdersLength, 0),
                  result = Array(leftLength + rangeLength),
                  isUncurried = !isCurried;

              while (++leftIndex < leftLength) {
                result[leftIndex] = partials[leftIndex];
              }

              while (++argsIndex < holdersLength) {
                if (isUncurried || argsIndex < argsLength) {
                  result[holders[argsIndex]] = args[argsIndex];
                }
              }

              while (rangeLength--) {
                result[leftIndex++] = args[argsIndex++];
              }

              return result;
            }
            /**
             * This function is like `composeArgs` except that the arguments composition
             * is tailored for `_.partialRight`.
             *
             * @private
             * @param {Array} args The provided arguments.
             * @param {Array} partials The arguments to append to those provided.
             * @param {Array} holders The `partials` placeholder indexes.
             * @params {boolean} [isCurried] Specify composing for a curried function.
             * @returns {Array} Returns the new array of composed arguments.
             */


            function composeArgsRight(args, partials, holders, isCurried) {
              var argsIndex = -1,
                  argsLength = args.length,
                  holdersIndex = -1,
                  holdersLength = holders.length,
                  rightIndex = -1,
                  rightLength = partials.length,
                  rangeLength = nativeMax(argsLength - holdersLength, 0),
                  result = Array(rangeLength + rightLength),
                  isUncurried = !isCurried;

              while (++argsIndex < rangeLength) {
                result[argsIndex] = args[argsIndex];
              }

              var offset = argsIndex;

              while (++rightIndex < rightLength) {
                result[offset + rightIndex] = partials[rightIndex];
              }

              while (++holdersIndex < holdersLength) {
                if (isUncurried || argsIndex < argsLength) {
                  result[offset + holders[holdersIndex]] = args[argsIndex++];
                }
              }

              return result;
            }
            /**
             * Copies the values of `source` to `array`.
             *
             * @private
             * @param {Array} source The array to copy values from.
             * @param {Array} [array=[]] The array to copy values to.
             * @returns {Array} Returns `array`.
             */


            function copyArray(source, array) {
              var index = -1,
                  length = source.length;
              array || (array = Array(length));

              while (++index < length) {
                array[index] = source[index];
              }

              return array;
            }
            /**
             * Copies properties of `source` to `object`.
             *
             * @private
             * @param {Object} source The object to copy properties from.
             * @param {Array} props The property identifiers to copy.
             * @param {Object} [object={}] The object to copy properties to.
             * @param {Function} [customizer] The function to customize copied values.
             * @returns {Object} Returns `object`.
             */


            function copyObject(source, props, object, customizer) {
              var isNew = !object;
              object || (object = {});
              var index = -1,
                  length = props.length;

              while (++index < length) {
                var key = props[index];
                var newValue = customizer ? customizer(object[key], source[key], key, object, source) : undefined;

                if (newValue === undefined) {
                  newValue = source[key];
                }

                if (isNew) {
                  baseAssignValue(object, key, newValue);
                } else {
                  assignValue(object, key, newValue);
                }
              }

              return object;
            }
            /**
             * Copies own symbols of `source` to `object`.
             *
             * @private
             * @param {Object} source The object to copy symbols from.
             * @param {Object} [object={}] The object to copy symbols to.
             * @returns {Object} Returns `object`.
             */


            function copySymbols(source, object) {
              return copyObject(source, getSymbols(source), object);
            }
            /**
             * Copies own and inherited symbols of `source` to `object`.
             *
             * @private
             * @param {Object} source The object to copy symbols from.
             * @param {Object} [object={}] The object to copy symbols to.
             * @returns {Object} Returns `object`.
             */


            function copySymbolsIn(source, object) {
              return copyObject(source, getSymbolsIn(source), object);
            }
            /**
             * Creates a function like `_.groupBy`.
             *
             * @private
             * @param {Function} setter The function to set accumulator values.
             * @param {Function} [initializer] The accumulator object initializer.
             * @returns {Function} Returns the new aggregator function.
             */


            function createAggregator(setter, initializer) {
              return function (collection, iteratee) {
                var func = isArray(collection) ? arrayAggregator : baseAggregator,
                    accumulator = initializer ? initializer() : {};
                return func(collection, setter, getIteratee(iteratee, 2), accumulator);
              };
            }
            /**
             * Creates a function like `_.assign`.
             *
             * @private
             * @param {Function} assigner The function to assign values.
             * @returns {Function} Returns the new assigner function.
             */


            function createAssigner(assigner) {
              return baseRest(function (object, sources) {
                var index = -1,
                    length = sources.length,
                    customizer = length > 1 ? sources[length - 1] : undefined,
                    guard = length > 2 ? sources[2] : undefined;
                customizer = assigner.length > 3 && typeof customizer == 'function' ? (length--, customizer) : undefined;

                if (guard && isIterateeCall(sources[0], sources[1], guard)) {
                  customizer = length < 3 ? undefined : customizer;
                  length = 1;
                }

                object = Object(object);

                while (++index < length) {
                  var source = sources[index];

                  if (source) {
                    assigner(object, source, index, customizer);
                  }
                }

                return object;
              });
            }
            /**
             * Creates a `baseEach` or `baseEachRight` function.
             *
             * @private
             * @param {Function} eachFunc The function to iterate over a collection.
             * @param {boolean} [fromRight] Specify iterating from right to left.
             * @returns {Function} Returns the new base function.
             */


            function createBaseEach(eachFunc, fromRight) {
              return function (collection, iteratee) {
                if (collection == null) {
                  return collection;
                }

                if (!isArrayLike(collection)) {
                  return eachFunc(collection, iteratee);
                }

                var length = collection.length,
                    index = fromRight ? length : -1,
                    iterable = Object(collection);

                while (fromRight ? index-- : ++index < length) {
                  if (iteratee(iterable[index], index, iterable) === false) {
                    break;
                  }
                }

                return collection;
              };
            }
            /**
             * Creates a base function for methods like `_.forIn` and `_.forOwn`.
             *
             * @private
             * @param {boolean} [fromRight] Specify iterating from right to left.
             * @returns {Function} Returns the new base function.
             */


            function createBaseFor(fromRight) {
              return function (object, iteratee, keysFunc) {
                var index = -1,
                    iterable = Object(object),
                    props = keysFunc(object),
                    length = props.length;

                while (length--) {
                  var key = props[fromRight ? length : ++index];

                  if (iteratee(iterable[key], key, iterable) === false) {
                    break;
                  }
                }

                return object;
              };
            }
            /**
             * Creates a function that wraps `func` to invoke it with the optional `this`
             * binding of `thisArg`.
             *
             * @private
             * @param {Function} func The function to wrap.
             * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
             * @param {*} [thisArg] The `this` binding of `func`.
             * @returns {Function} Returns the new wrapped function.
             */


            function createBind(func, bitmask, thisArg) {
              var isBind = bitmask & WRAP_BIND_FLAG,
                  Ctor = createCtor(func);

              function wrapper() {
                var fn = this && this !== root && this instanceof wrapper ? Ctor : func;
                return fn.apply(isBind ? thisArg : this, arguments);
              }

              return wrapper;
            }
            /**
             * Creates a function like `_.lowerFirst`.
             *
             * @private
             * @param {string} methodName The name of the `String` case method to use.
             * @returns {Function} Returns the new case function.
             */


            function createCaseFirst(methodName) {
              return function (string) {
                string = toString(string);
                var strSymbols = hasUnicode(string) ? stringToArray(string) : undefined;
                var chr = strSymbols ? strSymbols[0] : string.charAt(0);
                var trailing = strSymbols ? castSlice(strSymbols, 1).join('') : string.slice(1);
                return chr[methodName]() + trailing;
              };
            }
            /**
             * Creates a function like `_.camelCase`.
             *
             * @private
             * @param {Function} callback The function to combine each word.
             * @returns {Function} Returns the new compounder function.
             */


            function createCompounder(callback) {
              return function (string) {
                return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');
              };
            }
            /**
             * Creates a function that produces an instance of `Ctor` regardless of
             * whether it was invoked as part of a `new` expression or by `call` or `apply`.
             *
             * @private
             * @param {Function} Ctor The constructor to wrap.
             * @returns {Function} Returns the new wrapped function.
             */


            function createCtor(Ctor) {
              return function () {
                // Use a `switch` statement to work with class constructors. See
                // http://ecma-international.org/ecma-262/7.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist
                // for more details.
                var args = arguments;

                switch (args.length) {
                  case 0:
                    return new Ctor();

                  case 1:
                    return new Ctor(args[0]);

                  case 2:
                    return new Ctor(args[0], args[1]);

                  case 3:
                    return new Ctor(args[0], args[1], args[2]);

                  case 4:
                    return new Ctor(args[0], args[1], args[2], args[3]);

                  case 5:
                    return new Ctor(args[0], args[1], args[2], args[3], args[4]);

                  case 6:
                    return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]);

                  case 7:
                    return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);
                }

                var thisBinding = baseCreate(Ctor.prototype),
                    result = Ctor.apply(thisBinding, args); // Mimic the constructor's `return` behavior.
                // See https://es5.github.io/#x13.2.2 for more details.

                return isObject(result) ? result : thisBinding;
              };
            }
            /**
             * Creates a function that wraps `func` to enable currying.
             *
             * @private
             * @param {Function} func The function to wrap.
             * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
             * @param {number} arity The arity of `func`.
             * @returns {Function} Returns the new wrapped function.
             */


            function createCurry(func, bitmask, arity) {
              var Ctor = createCtor(func);

              function wrapper() {
                var length = arguments.length,
                    args = Array(length),
                    index = length,
                    placeholder = getHolder(wrapper);

                while (index--) {
                  args[index] = arguments[index];
                }

                var holders = length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder ? [] : replaceHolders(args, placeholder);
                length -= holders.length;

                if (length < arity) {
                  return createRecurry(func, bitmask, createHybrid, wrapper.placeholder, undefined, args, holders, undefined, undefined, arity - length);
                }

                var fn = this && this !== root && this instanceof wrapper ? Ctor : func;
                return apply(fn, this, args);
              }

              return wrapper;
            }
            /**
             * Creates a `_.find` or `_.findLast` function.
             *
             * @private
             * @param {Function} findIndexFunc The function to find the collection index.
             * @returns {Function} Returns the new find function.
             */


            function createFind(findIndexFunc) {
              return function (collection, predicate, fromIndex) {
                var iterable = Object(collection);

                if (!isArrayLike(collection)) {
                  var iteratee = getIteratee(predicate, 3);
                  collection = keys(collection);

                  predicate = function predicate(key) {
                    return iteratee(iterable[key], key, iterable);
                  };
                }

                var index = findIndexFunc(collection, predicate, fromIndex);
                return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;
              };
            }
            /**
             * Creates a `_.flow` or `_.flowRight` function.
             *
             * @private
             * @param {boolean} [fromRight] Specify iterating from right to left.
             * @returns {Function} Returns the new flow function.
             */


            function createFlow(fromRight) {
              return flatRest(function (funcs) {
                var length = funcs.length,
                    index = length,
                    prereq = LodashWrapper.prototype.thru;

                if (fromRight) {
                  funcs.reverse();
                }

                while (index--) {
                  var func = funcs[index];

                  if (typeof func != 'function') {
                    throw new TypeError(FUNC_ERROR_TEXT);
                  }

                  if (prereq && !wrapper && getFuncName(func) == 'wrapper') {
                    var wrapper = new LodashWrapper([], true);
                  }
                }

                index = wrapper ? index : length;

                while (++index < length) {
                  func = funcs[index];
                  var funcName = getFuncName(func),
                      data = funcName == 'wrapper' ? getData(func) : undefined;

                  if (data && isLaziable(data[0]) && data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) && !data[4].length && data[9] == 1) {
                    wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]);
                  } else {
                    wrapper = func.length == 1 && isLaziable(func) ? wrapper[funcName]() : wrapper.thru(func);
                  }
                }

                return function () {
                  var args = arguments,
                      value = args[0];

                  if (wrapper && args.length == 1 && isArray(value)) {
                    return wrapper.plant(value).value();
                  }

                  var index = 0,
                      result = length ? funcs[index].apply(this, args) : value;

                  while (++index < length) {
                    result = funcs[index].call(this, result);
                  }

                  return result;
                };
              });
            }
            /**
             * Creates a function that wraps `func` to invoke it with optional `this`
             * binding of `thisArg`, partial application, and currying.
             *
             * @private
             * @param {Function|string} func The function or method name to wrap.
             * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
             * @param {*} [thisArg] The `this` binding of `func`.
             * @param {Array} [partials] The arguments to prepend to those provided to
             *  the new function.
             * @param {Array} [holders] The `partials` placeholder indexes.
             * @param {Array} [partialsRight] The arguments to append to those provided
             *  to the new function.
             * @param {Array} [holdersRight] The `partialsRight` placeholder indexes.
             * @param {Array} [argPos] The argument positions of the new function.
             * @param {number} [ary] The arity cap of `func`.
             * @param {number} [arity] The arity of `func`.
             * @returns {Function} Returns the new wrapped function.
             */


            function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) {
              var isAry = bitmask & WRAP_ARY_FLAG,
                  isBind = bitmask & WRAP_BIND_FLAG,
                  isBindKey = bitmask & WRAP_BIND_KEY_FLAG,
                  isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG),
                  isFlip = bitmask & WRAP_FLIP_FLAG,
                  Ctor = isBindKey ? undefined : createCtor(func);

              function wrapper() {
                var length = arguments.length,
                    args = Array(length),
                    index = length;

                while (index--) {
                  args[index] = arguments[index];
                }

                if (isCurried) {
                  var placeholder = getHolder(wrapper),
                      holdersCount = countHolders(args, placeholder);
                }

                if (partials) {
                  args = composeArgs(args, partials, holders, isCurried);
                }

                if (partialsRight) {
                  args = composeArgsRight(args, partialsRight, holdersRight, isCurried);
                }

                length -= holdersCount;

                if (isCurried && length < arity) {
                  var newHolders = replaceHolders(args, placeholder);
                  return createRecurry(func, bitmask, createHybrid, wrapper.placeholder, thisArg, args, newHolders, argPos, ary, arity - length);
                }

                var thisBinding = isBind ? thisArg : this,
                    fn = isBindKey ? thisBinding[func] : func;
                length = args.length;

                if (argPos) {
                  args = reorder(args, argPos);
                } else if (isFlip && length > 1) {
                  args.reverse();
                }

                if (isAry && ary < length) {
                  args.length = ary;
                }

                if (this && this !== root && this instanceof wrapper) {
                  fn = Ctor || createCtor(fn);
                }

                return fn.apply(thisBinding, args);
              }

              return wrapper;
            }
            /**
             * Creates a function like `_.invertBy`.
             *
             * @private
             * @param {Function} setter The function to set accumulator values.
             * @param {Function} toIteratee The function to resolve iteratees.
             * @returns {Function} Returns the new inverter function.
             */


            function createInverter(setter, toIteratee) {
              return function (object, iteratee) {
                return baseInverter(object, setter, toIteratee(iteratee), {});
              };
            }
            /**
             * Creates a function that performs a mathematical operation on two values.
             *
             * @private
             * @param {Function} operator The function to perform the operation.
             * @param {number} [defaultValue] The value used for `undefined` arguments.
             * @returns {Function} Returns the new mathematical operation function.
             */


            function createMathOperation(operator, defaultValue) {
              return function (value, other) {
                var result;

                if (value === undefined && other === undefined) {
                  return defaultValue;
                }

                if (value !== undefined) {
                  result = value;
                }

                if (other !== undefined) {
                  if (result === undefined) {
                    return other;
                  }

                  if (typeof value == 'string' || typeof other == 'string') {
                    value = baseToString(value);
                    other = baseToString(other);
                  } else {
                    value = baseToNumber(value);
                    other = baseToNumber(other);
                  }

                  result = operator(value, other);
                }

                return result;
              };
            }
            /**
             * Creates a function like `_.over`.
             *
             * @private
             * @param {Function} arrayFunc The function to iterate over iteratees.
             * @returns {Function} Returns the new over function.
             */


            function createOver(arrayFunc) {
              return flatRest(function (iteratees) {
                iteratees = arrayMap(iteratees, baseUnary(getIteratee()));
                return baseRest(function (args) {
                  var thisArg = this;
                  return arrayFunc(iteratees, function (iteratee) {
                    return apply(iteratee, thisArg, args);
                  });
                });
              });
            }
            /**
             * Creates the padding for `string` based on `length`. The `chars` string
             * is truncated if the number of characters exceeds `length`.
             *
             * @private
             * @param {number} length The padding length.
             * @param {string} [chars=' '] The string used as padding.
             * @returns {string} Returns the padding for `string`.
             */


            function createPadding(length, chars) {
              chars = chars === undefined ? ' ' : baseToString(chars);
              var charsLength = chars.length;

              if (charsLength < 2) {
                return charsLength ? baseRepeat(chars, length) : chars;
              }

              var result = baseRepeat(chars, nativeCeil(length / stringSize(chars)));
              return hasUnicode(chars) ? castSlice(stringToArray(result), 0, length).join('') : result.slice(0, length);
            }
            /**
             * Creates a function that wraps `func` to invoke it with the `this` binding
             * of `thisArg` and `partials` prepended to the arguments it receives.
             *
             * @private
             * @param {Function} func The function to wrap.
             * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
             * @param {*} thisArg The `this` binding of `func`.
             * @param {Array} partials The arguments to prepend to those provided to
             *  the new function.
             * @returns {Function} Returns the new wrapped function.
             */


            function createPartial(func, bitmask, thisArg, partials) {
              var isBind = bitmask & WRAP_BIND_FLAG,
                  Ctor = createCtor(func);

              function wrapper() {
                var argsIndex = -1,
                    argsLength = arguments.length,
                    leftIndex = -1,
                    leftLength = partials.length,
                    args = Array(leftLength + argsLength),
                    fn = this && this !== root && this instanceof wrapper ? Ctor : func;

                while (++leftIndex < leftLength) {
                  args[leftIndex] = partials[leftIndex];
                }

                while (argsLength--) {
                  args[leftIndex++] = arguments[++argsIndex];
                }

                return apply(fn, isBind ? thisArg : this, args);
              }

              return wrapper;
            }
            /**
             * Creates a `_.range` or `_.rangeRight` function.
             *
             * @private
             * @param {boolean} [fromRight] Specify iterating from right to left.
             * @returns {Function} Returns the new range function.
             */


            function createRange(fromRight) {
              return function (start, end, step) {
                if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {
                  end = step = undefined;
                } // Ensure the sign of `-0` is preserved.


                start = toFinite(start);

                if (end === undefined) {
                  end = start;
                  start = 0;
                } else {
                  end = toFinite(end);
                }

                step = step === undefined ? start < end ? 1 : -1 : toFinite(step);
                return baseRange(start, end, step, fromRight);
              };
            }
            /**
             * Creates a function that performs a relational operation on two values.
             *
             * @private
             * @param {Function} operator The function to perform the operation.
             * @returns {Function} Returns the new relational operation function.
             */


            function createRelationalOperation(operator) {
              return function (value, other) {
                if (!(typeof value == 'string' && typeof other == 'string')) {
                  value = toNumber(value);
                  other = toNumber(other);
                }

                return operator(value, other);
              };
            }
            /**
             * Creates a function that wraps `func` to continue currying.
             *
             * @private
             * @param {Function} func The function to wrap.
             * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
             * @param {Function} wrapFunc The function to create the `func` wrapper.
             * @param {*} placeholder The placeholder value.
             * @param {*} [thisArg] The `this` binding of `func`.
             * @param {Array} [partials] The arguments to prepend to those provided to
             *  the new function.
             * @param {Array} [holders] The `partials` placeholder indexes.
             * @param {Array} [argPos] The argument positions of the new function.
             * @param {number} [ary] The arity cap of `func`.
             * @param {number} [arity] The arity of `func`.
             * @returns {Function} Returns the new wrapped function.
             */


            function createRecurry(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary, arity) {
              var isCurry = bitmask & WRAP_CURRY_FLAG,
                  newHolders = isCurry ? holders : undefined,
                  newHoldersRight = isCurry ? undefined : holders,
                  newPartials = isCurry ? partials : undefined,
                  newPartialsRight = isCurry ? undefined : partials;
              bitmask |= isCurry ? WRAP_PARTIAL_FLAG : WRAP_PARTIAL_RIGHT_FLAG;
              bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG : WRAP_PARTIAL_FLAG);

              if (!(bitmask & WRAP_CURRY_BOUND_FLAG)) {
                bitmask &= ~(WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG);
              }

              var newData = [func, bitmask, thisArg, newPartials, newHolders, newPartialsRight, newHoldersRight, argPos, ary, arity];
              var result = wrapFunc.apply(undefined, newData);

              if (isLaziable(func)) {
                setData(result, newData);
              }

              result.placeholder = placeholder;
              return setWrapToString(result, func, bitmask);
            }
            /**
             * Creates a function like `_.round`.
             *
             * @private
             * @param {string} methodName The name of the `Math` method to use when rounding.
             * @returns {Function} Returns the new round function.
             */


            function createRound(methodName) {
              var func = Math[methodName];
              return function (number, precision) {
                number = toNumber(number);
                precision = precision == null ? 0 : nativeMin(toInteger(precision), 292);

                if (precision && nativeIsFinite(number)) {
                  // Shift with exponential notation to avoid floating-point issues.
                  // See [MDN](https://mdn.io/round#Examples) for more details.
                  var pair = (toString(number) + 'e').split('e'),
                      value = func(pair[0] + 'e' + (+pair[1] + precision));
                  pair = (toString(value) + 'e').split('e');
                  return +(pair[0] + 'e' + (+pair[1] - precision));
                }

                return func(number);
              };
            }
            /**
             * Creates a set object of `values`.
             *
             * @private
             * @param {Array} values The values to add to the set.
             * @returns {Object} Returns the new set.
             */


            var createSet = !(Set && 1 / setToArray(new Set([, -0]))[1] == INFINITY) ? noop : function (values) {
              return new Set(values);
            };
            /**
             * Creates a `_.toPairs` or `_.toPairsIn` function.
             *
             * @private
             * @param {Function} keysFunc The function to get the keys of a given object.
             * @returns {Function} Returns the new pairs function.
             */

            function createToPairs(keysFunc) {
              return function (object) {
                var tag = getTag(object);

                if (tag == mapTag) {
                  return mapToArray(object);
                }

                if (tag == setTag) {
                  return setToPairs(object);
                }

                return baseToPairs(object, keysFunc(object));
              };
            }
            /**
             * Creates a function that either curries or invokes `func` with optional
             * `this` binding and partially applied arguments.
             *
             * @private
             * @param {Function|string} func The function or method name to wrap.
             * @param {number} bitmask The bitmask flags.
             *    1 - `_.bind`
             *    2 - `_.bindKey`
             *    4 - `_.curry` or `_.curryRight` of a bound function
             *    8 - `_.curry`
             *   16 - `_.curryRight`
             *   32 - `_.partial`
             *   64 - `_.partialRight`
             *  128 - `_.rearg`
             *  256 - `_.ary`
             *  512 - `_.flip`
             * @param {*} [thisArg] The `this` binding of `func`.
             * @param {Array} [partials] The arguments to be partially applied.
             * @param {Array} [holders] The `partials` placeholder indexes.
             * @param {Array} [argPos] The argument positions of the new function.
             * @param {number} [ary] The arity cap of `func`.
             * @param {number} [arity] The arity of `func`.
             * @returns {Function} Returns the new wrapped function.
             */


            function createWrap(func, bitmask, thisArg, partials, holders, argPos, ary, arity) {
              var isBindKey = bitmask & WRAP_BIND_KEY_FLAG;

              if (!isBindKey && typeof func != 'function') {
                throw new TypeError(FUNC_ERROR_TEXT);
              }

              var length = partials ? partials.length : 0;

              if (!length) {
                bitmask &= ~(WRAP_PARTIAL_FLAG | WRAP_PARTIAL_RIGHT_FLAG);
                partials = holders = undefined;
              }

              ary = ary === undefined ? ary : nativeMax(toInteger(ary), 0);
              arity = arity === undefined ? arity : toInteger(arity);
              length -= holders ? holders.length : 0;

              if (bitmask & WRAP_PARTIAL_RIGHT_FLAG) {
                var partialsRight = partials,
                    holdersRight = holders;
                partials = holders = undefined;
              }

              var data = isBindKey ? undefined : getData(func);
              var newData = [func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity];

              if (data) {
                mergeData(newData, data);
              }

              func = newData[0];
              bitmask = newData[1];
              thisArg = newData[2];
              partials = newData[3];
              holders = newData[4];
              arity = newData[9] = newData[9] === undefined ? isBindKey ? 0 : func.length : nativeMax(newData[9] - length, 0);

              if (!arity && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) {
                bitmask &= ~(WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG);
              }

              if (!bitmask || bitmask == WRAP_BIND_FLAG) {
                var result = createBind(func, bitmask, thisArg);
              } else if (bitmask == WRAP_CURRY_FLAG || bitmask == WRAP_CURRY_RIGHT_FLAG) {
                result = createCurry(func, bitmask, arity);
              } else if ((bitmask == WRAP_PARTIAL_FLAG || bitmask == (WRAP_BIND_FLAG | WRAP_PARTIAL_FLAG)) && !holders.length) {
                result = createPartial(func, bitmask, thisArg, partials);
              } else {
                result = createHybrid.apply(undefined, newData);
              }

              var setter = data ? baseSetData : setData;
              return setWrapToString(setter(result, newData), func, bitmask);
            }
            /**
             * Used by `_.defaults` to customize its `_.assignIn` use to assign properties
             * of source objects to the destination object for all destination properties
             * that resolve to `undefined`.
             *
             * @private
             * @param {*} objValue The destination value.
             * @param {*} srcValue The source value.
             * @param {string} key The key of the property to assign.
             * @param {Object} object The parent object of `objValue`.
             * @returns {*} Returns the value to assign.
             */


            function customDefaultsAssignIn(objValue, srcValue, key, object) {
              if (objValue === undefined || eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key)) {
                return srcValue;
              }

              return objValue;
            }
            /**
             * Used by `_.defaultsDeep` to customize its `_.merge` use to merge source
             * objects into destination objects that are passed thru.
             *
             * @private
             * @param {*} objValue The destination value.
             * @param {*} srcValue The source value.
             * @param {string} key The key of the property to merge.
             * @param {Object} object The parent object of `objValue`.
             * @param {Object} source The parent object of `srcValue`.
             * @param {Object} [stack] Tracks traversed source values and their merged
             *  counterparts.
             * @returns {*} Returns the value to assign.
             */


            function customDefaultsMerge(objValue, srcValue, key, object, source, stack) {
              if (isObject(objValue) && isObject(srcValue)) {
                // Recursively merge objects and arrays (susceptible to call stack limits).
                stack.set(srcValue, objValue);
                baseMerge(objValue, srcValue, undefined, customDefaultsMerge, stack);
                stack['delete'](srcValue);
              }

              return objValue;
            }
            /**
             * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain
             * objects.
             *
             * @private
             * @param {*} value The value to inspect.
             * @param {string} key The key of the property to inspect.
             * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.
             */


            function customOmitClone(value) {
              return isPlainObject(value) ? undefined : value;
            }
            /**
             * A specialized version of `baseIsEqualDeep` for arrays with support for
             * partial deep comparisons.
             *
             * @private
             * @param {Array} array The array to compare.
             * @param {Array} other The other array to compare.
             * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
             * @param {Function} customizer The function to customize comparisons.
             * @param {Function} equalFunc The function to determine equivalents of values.
             * @param {Object} stack Tracks traversed `array` and `other` objects.
             * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
             */


            function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
              var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
                  arrLength = array.length,
                  othLength = other.length;

              if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
                return false;
              } // Check that cyclic values are equal.


              var arrStacked = stack.get(array);
              var othStacked = stack.get(other);

              if (arrStacked && othStacked) {
                return arrStacked == other && othStacked == array;
              }

              var index = -1,
                  result = true,
                  seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache() : undefined;
              stack.set(array, other);
              stack.set(other, array); // Ignore non-index properties.

              while (++index < arrLength) {
                var arrValue = array[index],
                    othValue = other[index];

                if (customizer) {
                  var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack);
                }

                if (compared !== undefined) {
                  if (compared) {
                    continue;
                  }

                  result = false;
                  break;
                } // Recursively compare arrays (susceptible to call stack limits).


                if (seen) {
                  if (!arraySome(other, function (othValue, othIndex) {
                    if (!cacheHas(seen, othIndex) && (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
                      return seen.push(othIndex);
                    }
                  })) {
                    result = false;
                    break;
                  }
                } else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
                  result = false;
                  break;
                }
              }

              stack['delete'](array);
              stack['delete'](other);
              return result;
            }
            /**
             * A specialized version of `baseIsEqualDeep` for comparing objects of
             * the same `toStringTag`.
             *
             * **Note:** This function only supports comparing values with tags of
             * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
             *
             * @private
             * @param {Object} object The object to compare.
             * @param {Object} other The other object to compare.
             * @param {string} tag The `toStringTag` of the objects to compare.
             * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
             * @param {Function} customizer The function to customize comparisons.
             * @param {Function} equalFunc The function to determine equivalents of values.
             * @param {Object} stack Tracks traversed `object` and `other` objects.
             * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
             */


            function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
              switch (tag) {
                case dataViewTag:
                  if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) {
                    return false;
                  }

                  object = object.buffer;
                  other = other.buffer;

                case arrayBufferTag:
                  if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
                    return false;
                  }

                  return true;

                case boolTag:
                case dateTag:
                case numberTag:
                  // Coerce booleans to `1` or `0` and dates to milliseconds.
                  // Invalid dates are coerced to `NaN`.
                  return eq(+object, +other);

                case errorTag:
                  return object.name == other.name && object.message == other.message;

                case regexpTag:
                case stringTag:
                  // Coerce regexes to strings and treat strings, primitives and objects,
                  // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
                  // for more details.
                  return object == other + '';

                case mapTag:
                  var convert = mapToArray;

                case setTag:
                  var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
                  convert || (convert = setToArray);

                  if (object.size != other.size && !isPartial) {
                    return false;
                  } // Assume cyclic values are equal.


                  var stacked = stack.get(object);

                  if (stacked) {
                    return stacked == other;
                  }

                  bitmask |= COMPARE_UNORDERED_FLAG; // Recursively compare objects (susceptible to call stack limits).

                  stack.set(object, other);
                  var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
                  stack['delete'](object);
                  return result;

                case symbolTag:
                  if (symbolValueOf) {
                    return symbolValueOf.call(object) == symbolValueOf.call(other);
                  }

              }

              return false;
            }
            /**
             * A specialized version of `baseIsEqualDeep` for objects with support for
             * partial deep comparisons.
             *
             * @private
             * @param {Object} object The object to compare.
             * @param {Object} other The other object to compare.
             * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
             * @param {Function} customizer The function to customize comparisons.
             * @param {Function} equalFunc The function to determine equivalents of values.
             * @param {Object} stack Tracks traversed `object` and `other` objects.
             * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
             */


            function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
              var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
                  objProps = getAllKeys(object),
                  objLength = objProps.length,
                  othProps = getAllKeys(other),
                  othLength = othProps.length;

              if (objLength != othLength && !isPartial) {
                return false;
              }

              var index = objLength;

              while (index--) {
                var key = objProps[index];

                if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
                  return false;
                }
              } // Check that cyclic values are equal.


              var objStacked = stack.get(object);
              var othStacked = stack.get(other);

              if (objStacked && othStacked) {
                return objStacked == other && othStacked == object;
              }

              var result = true;
              stack.set(object, other);
              stack.set(other, object);
              var skipCtor = isPartial;

              while (++index < objLength) {
                key = objProps[index];
                var objValue = object[key],
                    othValue = other[key];

                if (customizer) {
                  var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack);
                } // Recursively compare objects (susceptible to call stack limits).


                if (!(compared === undefined ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) {
                  result = false;
                  break;
                }

                skipCtor || (skipCtor = key == 'constructor');
              }

              if (result && !skipCtor) {
                var objCtor = object.constructor,
                    othCtor = other.constructor; // Non `Object` object instances with different constructors are not equal.

                if (objCtor != othCtor && 'constructor' in object && 'constructor' in other && !(typeof objCtor == 'function' && objCtor instanceof objCtor && typeof othCtor == 'function' && othCtor instanceof othCtor)) {
                  result = false;
                }
              }

              stack['delete'](object);
              stack['delete'](other);
              return result;
            }
            /**
             * A specialized version of `baseRest` which flattens the rest array.
             *
             * @private
             * @param {Function} func The function to apply a rest parameter to.
             * @returns {Function} Returns the new function.
             */


            function flatRest(func) {
              return setToString(overRest(func, undefined, flatten), func + '');
            }
            /**
             * Creates an array of own enumerable property names and symbols of `object`.
             *
             * @private
             * @param {Object} object The object to query.
             * @returns {Array} Returns the array of property names and symbols.
             */


            function getAllKeys(object) {
              return baseGetAllKeys(object, keys, getSymbols);
            }
            /**
             * Creates an array of own and inherited enumerable property names and
             * symbols of `object`.
             *
             * @private
             * @param {Object} object The object to query.
             * @returns {Array} Returns the array of property names and symbols.
             */


            function getAllKeysIn(object) {
              return baseGetAllKeys(object, keysIn, getSymbolsIn);
            }
            /**
             * Gets metadata for `func`.
             *
             * @private
             * @param {Function} func The function to query.
             * @returns {*} Returns the metadata for `func`.
             */


            var getData = !metaMap ? noop : function (func) {
              return metaMap.get(func);
            };
            /**
             * Gets the name of `func`.
             *
             * @private
             * @param {Function} func The function to query.
             * @returns {string} Returns the function name.
             */

            function getFuncName(func) {
              var result = func.name + '',
                  array = realNames[result],
                  length = hasOwnProperty.call(realNames, result) ? array.length : 0;

              while (length--) {
                var data = array[length],
                    otherFunc = data.func;

                if (otherFunc == null || otherFunc == func) {
                  return data.name;
                }
              }

              return result;
            }
            /**
             * Gets the argument placeholder value for `func`.
             *
             * @private
             * @param {Function} func The function to inspect.
             * @returns {*} Returns the placeholder value.
             */


            function getHolder(func) {
              var object = hasOwnProperty.call(lodash, 'placeholder') ? lodash : func;
              return object.placeholder;
            }
            /**
             * Gets the appropriate "iteratee" function. If `_.iteratee` is customized,
             * this function returns the custom method, otherwise it returns `baseIteratee`.
             * If arguments are provided, the chosen function is invoked with them and
             * its result is returned.
             *
             * @private
             * @param {*} [value] The value to convert to an iteratee.
             * @param {number} [arity] The arity of the created iteratee.
             * @returns {Function} Returns the chosen function or its result.
             */


            function getIteratee() {
              var result = lodash.iteratee || iteratee;
              result = result === iteratee ? baseIteratee : result;
              return arguments.length ? result(arguments[0], arguments[1]) : result;
            }
            /**
             * Gets the data for `map`.
             *
             * @private
             * @param {Object} map The map to query.
             * @param {string} key The reference key.
             * @returns {*} Returns the map data.
             */


            function getMapData(map, key) {
              var data = map.__data__;
              return isKeyable(key) ? data[typeof key == 'string' ? 'string' : 'hash'] : data.map;
            }
            /**
             * Gets the property names, values, and compare flags of `object`.
             *
             * @private
             * @param {Object} object The object to query.
             * @returns {Array} Returns the match data of `object`.
             */


            function getMatchData(object) {
              var result = keys(object),
                  length = result.length;

              while (length--) {
                var key = result[length],
                    value = object[key];
                result[length] = [key, value, isStrictComparable(value)];
              }

              return result;
            }
            /**
             * Gets the native function at `key` of `object`.
             *
             * @private
             * @param {Object} object The object to query.
             * @param {string} key The key of the method to get.
             * @returns {*} Returns the function if it's native, else `undefined`.
             */


            function getNative(object, key) {
              var value = getValue(object, key);
              return baseIsNative(value) ? value : undefined;
            }
            /**
             * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
             *
             * @private
             * @param {*} value The value to query.
             * @returns {string} Returns the raw `toStringTag`.
             */


            function getRawTag(value) {
              var isOwn = hasOwnProperty.call(value, symToStringTag),
                  tag = value[symToStringTag];

              try {
                value[symToStringTag] = undefined;
                var unmasked = true;
              } catch (e) {}

              var result = nativeObjectToString.call(value);

              if (unmasked) {
                if (isOwn) {
                  value[symToStringTag] = tag;
                } else {
                  delete value[symToStringTag];
                }
              }

              return result;
            }
            /**
             * Creates an array of the own enumerable symbols of `object`.
             *
             * @private
             * @param {Object} object The object to query.
             * @returns {Array} Returns the array of symbols.
             */


            var getSymbols = !nativeGetSymbols ? stubArray : function (object) {
              if (object == null) {
                return [];
              }

              object = Object(object);
              return arrayFilter(nativeGetSymbols(object), function (symbol) {
                return propertyIsEnumerable.call(object, symbol);
              });
            };
            /**
             * Creates an array of the own and inherited enumerable symbols of `object`.
             *
             * @private
             * @param {Object} object The object to query.
             * @returns {Array} Returns the array of symbols.
             */

            var getSymbolsIn = !nativeGetSymbols ? stubArray : function (object) {
              var result = [];

              while (object) {
                arrayPush(result, getSymbols(object));
                object = getPrototype(object);
              }

              return result;
            };
            /**
             * Gets the `toStringTag` of `value`.
             *
             * @private
             * @param {*} value The value to query.
             * @returns {string} Returns the `toStringTag`.
             */

            var getTag = baseGetTag; // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.

            if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map && getTag(new Map()) != mapTag || Promise && getTag(Promise.resolve()) != promiseTag || Set && getTag(new Set()) != setTag || WeakMap && getTag(new WeakMap()) != weakMapTag) {
              getTag = function getTag(value) {
                var result = baseGetTag(value),
                    Ctor = result == objectTag ? value.constructor : undefined,
                    ctorString = Ctor ? toSource(Ctor) : '';

                if (ctorString) {
                  switch (ctorString) {
                    case dataViewCtorString:
                      return dataViewTag;

                    case mapCtorString:
                      return mapTag;

                    case promiseCtorString:
                      return promiseTag;

                    case setCtorString:
                      return setTag;

                    case weakMapCtorString:
                      return weakMapTag;
                  }
                }

                return result;
              };
            }
            /**
             * Gets the view, applying any `transforms` to the `start` and `end` positions.
             *
             * @private
             * @param {number} start The start of the view.
             * @param {number} end The end of the view.
             * @param {Array} transforms The transformations to apply to the view.
             * @returns {Object} Returns an object containing the `start` and `end`
             *  positions of the view.
             */


            function getView(start, end, transforms) {
              var index = -1,
                  length = transforms.length;

              while (++index < length) {
                var data = transforms[index],
                    size = data.size;

                switch (data.type) {
                  case 'drop':
                    start += size;
                    break;

                  case 'dropRight':
                    end -= size;
                    break;

                  case 'take':
                    end = nativeMin(end, start + size);
                    break;

                  case 'takeRight':
                    start = nativeMax(start, end - size);
                    break;
                }
              }

              return {
                'start': start,
                'end': end
              };
            }
            /**
             * Extracts wrapper details from the `source` body comment.
             *
             * @private
             * @param {string} source The source to inspect.
             * @returns {Array} Returns the wrapper details.
             */


            function getWrapDetails(source) {
              var match = source.match(reWrapDetails);
              return match ? match[1].split(reSplitDetails) : [];
            }
            /**
             * Checks if `path` exists on `object`.
             *
             * @private
             * @param {Object} object The object to query.
             * @param {Array|string} path The path to check.
             * @param {Function} hasFunc The function to check properties.
             * @returns {boolean} Returns `true` if `path` exists, else `false`.
             */


            function hasPath(object, path, hasFunc) {
              path = castPath(path, object);
              var index = -1,
                  length = path.length,
                  result = false;

              while (++index < length) {
                var key = toKey(path[index]);

                if (!(result = object != null && hasFunc(object, key))) {
                  break;
                }

                object = object[key];
              }

              if (result || ++index != length) {
                return result;
              }

              length = object == null ? 0 : object.length;
              return !!length && isLength(length) && isIndex(key, length) && (isArray(object) || isArguments(object));
            }
            /**
             * Initializes an array clone.
             *
             * @private
             * @param {Array} array The array to clone.
             * @returns {Array} Returns the initialized clone.
             */


            function initCloneArray(array) {
              var length = array.length,
                  result = new array.constructor(length); // Add properties assigned by `RegExp#exec`.

              if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
                result.index = array.index;
                result.input = array.input;
              }

              return result;
            }
            /**
             * Initializes an object clone.
             *
             * @private
             * @param {Object} object The object to clone.
             * @returns {Object} Returns the initialized clone.
             */


            function initCloneObject(object) {
              return typeof object.constructor == 'function' && !isPrototype(object) ? baseCreate(getPrototype(object)) : {};
            }
            /**
             * Initializes an object clone based on its `toStringTag`.
             *
             * **Note:** This function only supports cloning values with tags of
             * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
             *
             * @private
             * @param {Object} object The object to clone.
             * @param {string} tag The `toStringTag` of the object to clone.
             * @param {boolean} [isDeep] Specify a deep clone.
             * @returns {Object} Returns the initialized clone.
             */


            function initCloneByTag(object, tag, isDeep) {
              var Ctor = object.constructor;

              switch (tag) {
                case arrayBufferTag:
                  return cloneArrayBuffer(object);

                case boolTag:
                case dateTag:
                  return new Ctor(+object);

                case dataViewTag:
                  return cloneDataView(object, isDeep);

                case float32Tag:
                case float64Tag:
                case int8Tag:
                case int16Tag:
                case int32Tag:
                case uint8Tag:
                case uint8ClampedTag:
                case uint16Tag:
                case uint32Tag:
                  return cloneTypedArray(object, isDeep);

                case mapTag:
                  return new Ctor();

                case numberTag:
                case stringTag:
                  return new Ctor(object);

                case regexpTag:
                  return cloneRegExp(object);

                case setTag:
                  return new Ctor();

                case symbolTag:
                  return cloneSymbol(object);
              }
            }
            /**
             * Inserts wrapper `details` in a comment at the top of the `source` body.
             *
             * @private
             * @param {string} source The source to modify.
             * @returns {Array} details The details to insert.
             * @returns {string} Returns the modified source.
             */


            function insertWrapDetails(source, details) {
              var length = details.length;

              if (!length) {
                return source;
              }

              var lastIndex = length - 1;
              details[lastIndex] = (length > 1 ? '& ' : '') + details[lastIndex];
              details = details.join(length > 2 ? ', ' : ' ');
              return source.replace(reWrapComment, '{\n/* [wrapped with ' + details + '] */\n');
            }
            /**
             * Checks if `value` is a flattenable `arguments` object or array.
             *
             * @private
             * @param {*} value The value to check.
             * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
             */


            function isFlattenable(value) {
              return isArray(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
            }
            /**
             * Checks if `value` is a valid array-like index.
             *
             * @private
             * @param {*} value The value to check.
             * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
             * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
             */


            function isIndex(value, length) {
              var type = typeof value;
              length = length == null ? MAX_SAFE_INTEGER : length;
              return !!length && (type == 'number' || type != 'symbol' && reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length;
            }
            /**
             * Checks if the given arguments are from an iteratee call.
             *
             * @private
             * @param {*} value The potential iteratee value argument.
             * @param {*} index The potential iteratee index or key argument.
             * @param {*} object The potential iteratee object argument.
             * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
             *  else `false`.
             */


            function isIterateeCall(value, index, object) {
              if (!isObject(object)) {
                return false;
              }

              var type = typeof index;

              if (type == 'number' ? isArrayLike(object) && isIndex(index, object.length) : type == 'string' && index in object) {
                return eq(object[index], value);
              }

              return false;
            }
            /**
             * Checks if `value` is a property name and not a property path.
             *
             * @private
             * @param {*} value The value to check.
             * @param {Object} [object] The object to query keys on.
             * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
             */


            function isKey(value, object) {
              if (isArray(value)) {
                return false;
              }

              var type = typeof value;

              if (type == 'number' || type == 'symbol' || type == 'boolean' || value == null || isSymbol(value)) {
                return true;
              }

              return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);
            }
            /**
             * Checks if `value` is suitable for use as unique object key.
             *
             * @private
             * @param {*} value The value to check.
             * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
             */


            function isKeyable(value) {
              var type = typeof value;
              return type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean' ? value !== '__proto__' : value === null;
            }
            /**
             * Checks if `func` has a lazy counterpart.
             *
             * @private
             * @param {Function} func The function to check.
             * @returns {boolean} Returns `true` if `func` has a lazy counterpart,
             *  else `false`.
             */


            function isLaziable(func) {
              var funcName = getFuncName(func),
                  other = lodash[funcName];

              if (typeof other != 'function' || !(funcName in LazyWrapper.prototype)) {
                return false;
              }

              if (func === other) {
                return true;
              }

              var data = getData(other);
              return !!data && func === data[0];
            }
            /**
             * Checks if `func` has its source masked.
             *
             * @private
             * @param {Function} func The function to check.
             * @returns {boolean} Returns `true` if `func` is masked, else `false`.
             */


            function isMasked(func) {
              return !!maskSrcKey && maskSrcKey in func;
            }
            /**
             * Checks if `func` is capable of being masked.
             *
             * @private
             * @param {*} value The value to check.
             * @returns {boolean} Returns `true` if `func` is maskable, else `false`.
             */


            var isMaskable = coreJsData ? isFunction : stubFalse;
            /**
             * Checks if `value` is likely a prototype object.
             *
             * @private
             * @param {*} value The value to check.
             * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
             */

            function isPrototype(value) {
              var Ctor = value && value.constructor,
                  proto = typeof Ctor == 'function' && Ctor.prototype || objectProto;
              return value === proto;
            }
            /**
             * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
             *
             * @private
             * @param {*} value The value to check.
             * @returns {boolean} Returns `true` if `value` if suitable for strict
             *  equality comparisons, else `false`.
             */


            function isStrictComparable(value) {
              return value === value && !isObject(value);
            }
            /**
             * A specialized version of `matchesProperty` for source values suitable
             * for strict equality comparisons, i.e. `===`.
             *
             * @private
             * @param {string} key The key of the property to get.
             * @param {*} srcValue The value to match.
             * @returns {Function} Returns the new spec function.
             */


            function matchesStrictComparable(key, srcValue) {
              return function (object) {
                if (object == null) {
                  return false;
                }

                return object[key] === srcValue && (srcValue !== undefined || key in Object(object));
              };
            }
            /**
             * A specialized version of `_.memoize` which clears the memoized function's
             * cache when it exceeds `MAX_MEMOIZE_SIZE`.
             *
             * @private
             * @param {Function} func The function to have its output memoized.
             * @returns {Function} Returns the new memoized function.
             */


            function memoizeCapped(func) {
              var result = memoize(func, function (key) {
                if (cache.size === MAX_MEMOIZE_SIZE) {
                  cache.clear();
                }

                return key;
              });
              var cache = result.cache;
              return result;
            }
            /**
             * Merges the function metadata of `source` into `data`.
             *
             * Merging metadata reduces the number of wrappers used to invoke a function.
             * This is possible because methods like `_.bind`, `_.curry`, and `_.partial`
             * may be applied regardless of execution order. Methods like `_.ary` and
             * `_.rearg` modify function arguments, making the order in which they are
             * executed important, preventing the merging of metadata. However, we make
             * an exception for a safe combined case where curried functions have `_.ary`
             * and or `_.rearg` applied.
             *
             * @private
             * @param {Array} data The destination metadata.
             * @param {Array} source The source metadata.
             * @returns {Array} Returns `data`.
             */


            function mergeData(data, source) {
              var bitmask = data[1],
                  srcBitmask = source[1],
                  newBitmask = bitmask | srcBitmask,
                  isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG);
              var isCombo = srcBitmask == WRAP_ARY_FLAG && bitmask == WRAP_CURRY_FLAG || srcBitmask == WRAP_ARY_FLAG && bitmask == WRAP_REARG_FLAG && data[7].length <= source[8] || srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG) && source[7].length <= source[8] && bitmask == WRAP_CURRY_FLAG; // Exit early if metadata can't be merged.

              if (!(isCommon || isCombo)) {
                return data;
              } // Use source `thisArg` if available.


              if (srcBitmask & WRAP_BIND_FLAG) {
                data[2] = source[2]; // Set when currying a bound function.

                newBitmask |= bitmask & WRAP_BIND_FLAG ? 0 : WRAP_CURRY_BOUND_FLAG;
              } // Compose partial arguments.


              var value = source[3];

              if (value) {
                var partials = data[3];
                data[3] = partials ? composeArgs(partials, value, source[4]) : value;
                data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : source[4];
              } // Compose partial right arguments.


              value = source[5];

              if (value) {
                partials = data[5];
                data[5] = partials ? composeArgsRight(partials, value, source[6]) : value;
                data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : source[6];
              } // Use source `argPos` if available.


              value = source[7];

              if (value) {
                data[7] = value;
              } // Use source `ary` if it's smaller.


              if (srcBitmask & WRAP_ARY_FLAG) {
                data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]);
              } // Use source `arity` if one is not provided.


              if (data[9] == null) {
                data[9] = source[9];
              } // Use source `func` and merge bitmasks.


              data[0] = source[0];
              data[1] = newBitmask;
              return data;
            }
            /**
             * This function is like
             * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
             * except that it includes inherited enumerable properties.
             *
             * @private
             * @param {Object} object The object to query.
             * @returns {Array} Returns the array of property names.
             */


            function nativeKeysIn(object) {
              var result = [];

              if (object != null) {
                for (var key in Object(object)) {
                  result.push(key);
                }
              }

              return result;
            }
            /**
             * Converts `value` to a string using `Object.prototype.toString`.
             *
             * @private
             * @param {*} value The value to convert.
             * @returns {string} Returns the converted string.
             */


            function objectToString(value) {
              return nativeObjectToString.call(value);
            }
            /**
             * A specialized version of `baseRest` which transforms the rest array.
             *
             * @private
             * @param {Function} func The function to apply a rest parameter to.
             * @param {number} [start=func.length-1] The start position of the rest parameter.
             * @param {Function} transform The rest array transform.
             * @returns {Function} Returns the new function.
             */


            function overRest(func, start, transform) {
              start = nativeMax(start === undefined ? func.length - 1 : start, 0);
              return function () {
                var args = arguments,
                    index = -1,
                    length = nativeMax(args.length - start, 0),
                    array = Array(length);

                while (++index < length) {
                  array[index] = args[start + index];
                }

                index = -1;
                var otherArgs = Array(start + 1);

                while (++index < start) {
                  otherArgs[index] = args[index];
                }

                otherArgs[start] = transform(array);
                return apply(func, this, otherArgs);
              };
            }
            /**
             * Gets the parent value at `path` of `object`.
             *
             * @private
             * @param {Object} object The object to query.
             * @param {Array} path The path to get the parent value of.
             * @returns {*} Returns the parent value.
             */


            function parent(object, path) {
              return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));
            }
            /**
             * Reorder `array` according to the specified indexes where the element at
             * the first index is assigned as the first element, the element at
             * the second index is assigned as the second element, and so on.
             *
             * @private
             * @param {Array} array The array to reorder.
             * @param {Array} indexes The arranged array indexes.
             * @returns {Array} Returns `array`.
             */


            function reorder(array, indexes) {
              var arrLength = array.length,
                  length = nativeMin(indexes.length, arrLength),
                  oldArray = copyArray(array);

              while (length--) {
                var index = indexes[length];
                array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined;
              }

              return array;
            }
            /**
             * Gets the value at `key`, unless `key` is "__proto__" or "constructor".
             *
             * @private
             * @param {Object} object The object to query.
             * @param {string} key The key of the property to get.
             * @returns {*} Returns the property value.
             */


            function safeGet(object, key) {
              if (key === 'constructor' && typeof object[key] === 'function') {
                return;
              }

              if (key == '__proto__') {
                return;
              }

              return object[key];
            }
            /**
             * Sets metadata for `func`.
             *
             * **Note:** If this function becomes hot, i.e. is invoked a lot in a short
             * period of time, it will trip its breaker and transition to an identity
             * function to avoid garbage collection pauses in V8. See
             * [V8 issue 2070](https://bugs.chromium.org/p/v8/issues/detail?id=2070)
             * for more details.
             *
             * @private
             * @param {Function} func The function to associate metadata with.
             * @param {*} data The metadata.
             * @returns {Function} Returns `func`.
             */


            var setData = shortOut(baseSetData);
            /**
             * A simple wrapper around the global [`setTimeout`](https://mdn.io/setTimeout).
             *
             * @private
             * @param {Function} func The function to delay.
             * @param {number} wait The number of milliseconds to delay invocation.
             * @returns {number|Object} Returns the timer id or timeout object.
             */

            var setTimeout = ctxSetTimeout || function (func, wait) {
              return root.setTimeout(func, wait);
            };
            /**
             * Sets the `toString` method of `func` to return `string`.
             *
             * @private
             * @param {Function} func The function to modify.
             * @param {Function} string The `toString` result.
             * @returns {Function} Returns `func`.
             */


            var setToString = shortOut(baseSetToString);
            /**
             * Sets the `toString` method of `wrapper` to mimic the source of `reference`
             * with wrapper details in a comment at the top of the source body.
             *
             * @private
             * @param {Function} wrapper The function to modify.
             * @param {Function} reference The reference function.
             * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
             * @returns {Function} Returns `wrapper`.
             */

            function setWrapToString(wrapper, reference, bitmask) {
              var source = reference + '';
              return setToString(wrapper, insertWrapDetails(source, updateWrapDetails(getWrapDetails(source), bitmask)));
            }
            /**
             * Creates a function that'll short out and invoke `identity` instead
             * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
             * milliseconds.
             *
             * @private
             * @param {Function} func The function to restrict.
             * @returns {Function} Returns the new shortable function.
             */


            function shortOut(func) {
              var count = 0,
                  lastCalled = 0;
              return function () {
                var stamp = nativeNow(),
                    remaining = HOT_SPAN - (stamp - lastCalled);
                lastCalled = stamp;

                if (remaining > 0) {
                  if (++count >= HOT_COUNT) {
                    return arguments[0];
                  }
                } else {
                  count = 0;
                }

                return func.apply(undefined, arguments);
              };
            }
            /**
             * A specialized version of `_.shuffle` which mutates and sets the size of `array`.
             *
             * @private
             * @param {Array} array The array to shuffle.
             * @param {number} [size=array.length] The size of `array`.
             * @returns {Array} Returns `array`.
             */


            function shuffleSelf(array, size) {
              var index = -1,
                  length = array.length,
                  lastIndex = length - 1;
              size = size === undefined ? length : size;

              while (++index < size) {
                var rand = baseRandom(index, lastIndex),
                    value = array[rand];
                array[rand] = array[index];
                array[index] = value;
              }

              array.length = size;
              return array;
            }
            /**
             * Converts `string` to a property path array.
             *
             * @private
             * @param {string} string The string to convert.
             * @returns {Array} Returns the property path array.
             */


            var stringToPath = memoizeCapped(function (string) {
              var result = [];

              if (string.charCodeAt(0) === 46
              /* . */
              ) {
                result.push('');
              }

              string.replace(rePropName, function (match, number, quote, subString) {
                result.push(quote ? subString.replace(reEscapeChar, '$1') : number || match);
              });
              return result;
            });
            /**
             * Converts `value` to a string key if it's not a string or symbol.
             *
             * @private
             * @param {*} value The value to inspect.
             * @returns {string|symbol} Returns the key.
             */

            function toKey(value) {
              if (typeof value == 'string' || isSymbol(value)) {
                return value;
              }

              var result = value + '';
              return result == '0' && 1 / value == -INFINITY ? '-0' : result;
            }
            /**
             * Converts `func` to its source code.
             *
             * @private
             * @param {Function} func The function to convert.
             * @returns {string} Returns the source code.
             */


            function toSource(func) {
              if (func != null) {
                try {
                  return funcToString.call(func);
                } catch (e) {}

                try {
                  return func + '';
                } catch (e) {}
              }

              return '';
            }
            /**
             * Updates wrapper `details` based on `bitmask` flags.
             *
             * @private
             * @returns {Array} details The details to modify.
             * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
             * @returns {Array} Returns `details`.
             */


            function updateWrapDetails(details, bitmask) {
              arrayEach(wrapFlags, function (pair) {
                var value = '_.' + pair[0];

                if (bitmask & pair[1] && !arrayIncludes(details, value)) {
                  details.push(value);
                }
              });
              return details.sort();
            }
            /**
             * Creates a clone of `wrapper`.
             *
             * @private
             * @param {Object} wrapper The wrapper to clone.
             * @returns {Object} Returns the cloned wrapper.
             */


            function wrapperClone(wrapper) {
              if (wrapper instanceof LazyWrapper) {
                return wrapper.clone();
              }

              var result = new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__);
              result.__actions__ = copyArray(wrapper.__actions__);
              result.__index__ = wrapper.__index__;
              result.__values__ = wrapper.__values__;
              return result;
            }
            /*------------------------------------------------------------------------*/

            /**
             * Creates an array of elements split into groups the length of `size`.
             * If `array` can't be split evenly, the final chunk will be the remaining
             * elements.
             *
             * @static
             * @memberOf _
             * @since 3.0.0
             * @category Array
             * @param {Array} array The array to process.
             * @param {number} [size=1] The length of each chunk
             * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
             * @returns {Array} Returns the new array of chunks.
             * @example
             *
             * _.chunk(['a', 'b', 'c', 'd'], 2);
             * // => [['a', 'b'], ['c', 'd']]
             *
             * _.chunk(['a', 'b', 'c', 'd'], 3);
             * // => [['a', 'b', 'c'], ['d']]
             */


            function chunk(array, size, guard) {
              if (guard ? isIterateeCall(array, size, guard) : size === undefined) {
                size = 1;
              } else {
                size = nativeMax(toInteger(size), 0);
              }

              var length = array == null ? 0 : array.length;

              if (!length || size < 1) {
                return [];
              }

              var index = 0,
                  resIndex = 0,
                  result = Array(nativeCeil(length / size));

              while (index < length) {
                result[resIndex++] = baseSlice(array, index, index += size);
              }

              return result;
            }
            /**
             * Creates an array with all falsey values removed. The values `false`, `null`,
             * `0`, `""`, `undefined`, and `NaN` are falsey.
             *
             * @static
             * @memberOf _
             * @since 0.1.0
             * @category Array
             * @param {Array} array The array to compact.
             * @returns {Array} Returns the new array of filtered values.
             * @example
             *
             * _.compact([0, 1, false, 2, '', 3]);
             * // => [1, 2, 3]
             */


            function compact(array) {
              var index = -1,
                  length = array == null ? 0 : array.length,
                  resIndex = 0,
                  result = [];

              while (++index < length) {
                var value = array[index];

                if (value) {
                  result[resIndex++] = value;
                }
              }

              return result;
            }
            /**
             * Creates a new array concatenating `array` with any additional arrays
             * and/or values.
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Array
             * @param {Array} array The array to concatenate.
             * @param {...*} [values] The values to concatenate.
             * @returns {Array} Returns the new concatenated array.
             * @example
             *
             * var array = [1];
             * var other = _.concat(array, 2, [3], [[4]]);
             *
             * console.log(other);
             * // => [1, 2, 3, [4]]
             *
             * console.log(array);
             * // => [1]
             */


            function concat() {
              var length = arguments.length;

              if (!length) {
                return [];
              }

              var args = Array(length - 1),
                  array = arguments[0],
                  index = length;

              while (index--) {
                args[index - 1] = arguments[index];
              }

              return arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1));
            }
            /**
             * Creates an array of `array` values not included in the other given arrays
             * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
             * for equality comparisons. The order and references of result values are
             * determined by the first array.
             *
             * **Note:** Unlike `_.pullAll`, this method returns a new array.
             *
             * @static
             * @memberOf _
             * @since 0.1.0
             * @category Array
             * @param {Array} array The array to inspect.
             * @param {...Array} [values] The values to exclude.
             * @returns {Array} Returns the new array of filtered values.
             * @see _.without, _.xor
             * @example
             *
             * _.difference([2, 1], [2, 3]);
             * // => [1]
             */


            var difference = baseRest(function (array, values) {
              return isArrayLikeObject(array) ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true)) : [];
            });
            /**
             * This method is like `_.difference` except that it accepts `iteratee` which
             * is invoked for each element of `array` and `values` to generate the criterion
             * by which they're compared. The order and references of result values are
             * determined by the first array. The iteratee is invoked with one argument:
             * (value).
             *
             * **Note:** Unlike `_.pullAllBy`, this method returns a new array.
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Array
             * @param {Array} array The array to inspect.
             * @param {...Array} [values] The values to exclude.
             * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
             * @returns {Array} Returns the new array of filtered values.
             * @example
             *
             * _.differenceBy([2.1, 1.2], [2.3, 3.4], Math.floor);
             * // => [1.2]
             *
             * // The `_.property` iteratee shorthand.
             * _.differenceBy([{ 'x': 2 }, { 'x': 1 }], [{ 'x': 1 }], 'x');
             * // => [{ 'x': 2 }]
             */

            var differenceBy = baseRest(function (array, values) {
              var iteratee = last(values);

              if (isArrayLikeObject(iteratee)) {
                iteratee = undefined;
              }

              return isArrayLikeObject(array) ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), getIteratee(iteratee, 2)) : [];
            });
            /**
             * This method is like `_.difference` except that it accepts `comparator`
             * which is invoked to compare elements of `array` to `values`. The order and
             * references of result values are determined by the first array. The comparator
             * is invoked with two arguments: (arrVal, othVal).
             *
             * **Note:** Unlike `_.pullAllWith`, this method returns a new array.
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Array
             * @param {Array} array The array to inspect.
             * @param {...Array} [values] The values to exclude.
             * @param {Function} [comparator] The comparator invoked per element.
             * @returns {Array} Returns the new array of filtered values.
             * @example
             *
             * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
             *
             * _.differenceWith(objects, [{ 'x': 1, 'y': 2 }], _.isEqual);
             * // => [{ 'x': 2, 'y': 1 }]
             */

            var differenceWith = baseRest(function (array, values) {
              var comparator = last(values);

              if (isArrayLikeObject(comparator)) {
                comparator = undefined;
              }

              return isArrayLikeObject(array) ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), undefined, comparator) : [];
            });
            /**
             * Creates a slice of `array` with `n` elements dropped from the beginning.
             *
             * @static
             * @memberOf _
             * @since 0.5.0
             * @category Array
             * @param {Array} array The array to query.
             * @param {number} [n=1] The number of elements to drop.
             * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
             * @returns {Array} Returns the slice of `array`.
             * @example
             *
             * _.drop([1, 2, 3]);
             * // => [2, 3]
             *
             * _.drop([1, 2, 3], 2);
             * // => [3]
             *
             * _.drop([1, 2, 3], 5);
             * // => []
             *
             * _.drop([1, 2, 3], 0);
             * // => [1, 2, 3]
             */

            function drop(array, n, guard) {
              var length = array == null ? 0 : array.length;

              if (!length) {
                return [];
              }

              n = guard || n === undefined ? 1 : toInteger(n);
              return baseSlice(array, n < 0 ? 0 : n, length);
            }
            /**
             * Creates a slice of `array` with `n` elements dropped from the end.
             *
             * @static
             * @memberOf _
             * @since 3.0.0
             * @category Array
             * @param {Array} array The array to query.
             * @param {number} [n=1] The number of elements to drop.
             * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
             * @returns {Array} Returns the slice of `array`.
             * @example
             *
             * _.dropRight([1, 2, 3]);
             * // => [1, 2]
             *
             * _.dropRight([1, 2, 3], 2);
             * // => [1]
             *
             * _.dropRight([1, 2, 3], 5);
             * // => []
             *
             * _.dropRight([1, 2, 3], 0);
             * // => [1, 2, 3]
             */


            function dropRight(array, n, guard) {
              var length = array == null ? 0 : array.length;

              if (!length) {
                return [];
              }

              n = guard || n === undefined ? 1 : toInteger(n);
              n = length - n;
              return baseSlice(array, 0, n < 0 ? 0 : n);
            }
            /**
             * Creates a slice of `array` excluding elements dropped from the end.
             * Elements are dropped until `predicate` returns falsey. The predicate is
             * invoked with three arguments: (value, index, array).
             *
             * @static
             * @memberOf _
             * @since 3.0.0
             * @category Array
             * @param {Array} array The array to query.
             * @param {Function} [predicate=_.identity] The function invoked per iteration.
             * @returns {Array} Returns the slice of `array`.
             * @example
             *
             * var users = [
             *   { 'user': 'barney',  'active': true },
             *   { 'user': 'fred',    'active': false },
             *   { 'user': 'pebbles', 'active': false }
             * ];
             *
             * _.dropRightWhile(users, function(o) { return !o.active; });
             * // => objects for ['barney']
             *
             * // The `_.matches` iteratee shorthand.
             * _.dropRightWhile(users, { 'user': 'pebbles', 'active': false });
             * // => objects for ['barney', 'fred']
             *
             * // The `_.matchesProperty` iteratee shorthand.
             * _.dropRightWhile(users, ['active', false]);
             * // => objects for ['barney']
             *
             * // The `_.property` iteratee shorthand.
             * _.dropRightWhile(users, 'active');
             * // => objects for ['barney', 'fred', 'pebbles']
             */


            function dropRightWhile(array, predicate) {
              return array && array.length ? baseWhile(array, getIteratee(predicate, 3), true, true) : [];
            }
            /**
             * Creates a slice of `array` excluding elements dropped from the beginning.
             * Elements are dropped until `predicate` returns falsey. The predicate is
             * invoked with three arguments: (value, index, array).
             *
             * @static
             * @memberOf _
             * @since 3.0.0
             * @category Array
             * @param {Array} array The array to query.
             * @param {Function} [predicate=_.identity] The function invoked per iteration.
             * @returns {Array} Returns the slice of `array`.
             * @example
             *
             * var users = [
             *   { 'user': 'barney',  'active': false },
             *   { 'user': 'fred',    'active': false },
             *   { 'user': 'pebbles', 'active': true }
             * ];
             *
             * _.dropWhile(users, function(o) { return !o.active; });
             * // => objects for ['pebbles']
             *
             * // The `_.matches` iteratee shorthand.
             * _.dropWhile(users, { 'user': 'barney', 'active': false });
             * // => objects for ['fred', 'pebbles']
             *
             * // The `_.matchesProperty` iteratee shorthand.
             * _.dropWhile(users, ['active', false]);
             * // => objects for ['pebbles']
             *
             * // The `_.property` iteratee shorthand.
             * _.dropWhile(users, 'active');
             * // => objects for ['barney', 'fred', 'pebbles']
             */


            function dropWhile(array, predicate) {
              return array && array.length ? baseWhile(array, getIteratee(predicate, 3), true) : [];
            }
            /**
             * Fills elements of `array` with `value` from `start` up to, but not
             * including, `end`.
             *
             * **Note:** This method mutates `array`.
             *
             * @static
             * @memberOf _
             * @since 3.2.0
             * @category Array
             * @param {Array} array The array to fill.
             * @param {*} value The value to fill `array` with.
             * @param {number} [start=0] The start position.
             * @param {number} [end=array.length] The end position.
             * @returns {Array} Returns `array`.
             * @example
             *
             * var array = [1, 2, 3];
             *
             * _.fill(array, 'a');
             * console.log(array);
             * // => ['a', 'a', 'a']
             *
             * _.fill(Array(3), 2);
             * // => [2, 2, 2]
             *
             * _.fill([4, 6, 8, 10], '*', 1, 3);
             * // => [4, '*', '*', 10]
             */


            function fill(array, value, start, end) {
              var length = array == null ? 0 : array.length;

              if (!length) {
                return [];
              }

              if (start && typeof start != 'number' && isIterateeCall(array, value, start)) {
                start = 0;
                end = length;
              }

              return baseFill(array, value, start, end);
            }
            /**
             * This method is like `_.find` except that it returns the index of the first
             * element `predicate` returns truthy for instead of the element itself.
             *
             * @static
             * @memberOf _
             * @since 1.1.0
             * @category Array
             * @param {Array} array The array to inspect.
             * @param {Function} [predicate=_.identity] The function invoked per iteration.
             * @param {number} [fromIndex=0] The index to search from.
             * @returns {number} Returns the index of the found element, else `-1`.
             * @example
             *
             * var users = [
             *   { 'user': 'barney',  'active': false },
             *   { 'user': 'fred',    'active': false },
             *   { 'user': 'pebbles', 'active': true }
             * ];
             *
             * _.findIndex(users, function(o) { return o.user == 'barney'; });
             * // => 0
             *
             * // The `_.matches` iteratee shorthand.
             * _.findIndex(users, { 'user': 'fred', 'active': false });
             * // => 1
             *
             * // The `_.matchesProperty` iteratee shorthand.
             * _.findIndex(users, ['active', false]);
             * // => 0
             *
             * // The `_.property` iteratee shorthand.
             * _.findIndex(users, 'active');
             * // => 2
             */


            function findIndex(array, predicate, fromIndex) {
              var length = array == null ? 0 : array.length;

              if (!length) {
                return -1;
              }

              var index = fromIndex == null ? 0 : toInteger(fromIndex);

              if (index < 0) {
                index = nativeMax(length + index, 0);
              }

              return baseFindIndex(array, getIteratee(predicate, 3), index);
            }
            /**
             * This method is like `_.findIndex` except that it iterates over elements
             * of `collection` from right to left.
             *
             * @static
             * @memberOf _
             * @since 2.0.0
             * @category Array
             * @param {Array} array The array to inspect.
             * @param {Function} [predicate=_.identity] The function invoked per iteration.
             * @param {number} [fromIndex=array.length-1] The index to search from.
             * @returns {number} Returns the index of the found element, else `-1`.
             * @example
             *
             * var users = [
             *   { 'user': 'barney',  'active': true },
             *   { 'user': 'fred',    'active': false },
             *   { 'user': 'pebbles', 'active': false }
             * ];
             *
             * _.findLastIndex(users, function(o) { return o.user == 'pebbles'; });
             * // => 2
             *
             * // The `_.matches` iteratee shorthand.
             * _.findLastIndex(users, { 'user': 'barney', 'active': true });
             * // => 0
             *
             * // The `_.matchesProperty` iteratee shorthand.
             * _.findLastIndex(users, ['active', false]);
             * // => 2
             *
             * // The `_.property` iteratee shorthand.
             * _.findLastIndex(users, 'active');
             * // => 0
             */


            function findLastIndex(array, predicate, fromIndex) {
              var length = array == null ? 0 : array.length;

              if (!length) {
                return -1;
              }

              var index = length - 1;

              if (fromIndex !== undefined) {
                index = toInteger(fromIndex);
                index = fromIndex < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1);
              }

              return baseFindIndex(array, getIteratee(predicate, 3), index, true);
            }
            /**
             * Flattens `array` a single level deep.
             *
             * @static
             * @memberOf _
             * @since 0.1.0
             * @category Array
             * @param {Array} array The array to flatten.
             * @returns {Array} Returns the new flattened array.
             * @example
             *
             * _.flatten([1, [2, [3, [4]], 5]]);
             * // => [1, 2, [3, [4]], 5]
             */


            function flatten(array) {
              var length = array == null ? 0 : array.length;
              return length ? baseFlatten(array, 1) : [];
            }
            /**
             * Recursively flattens `array`.
             *
             * @static
             * @memberOf _
             * @since 3.0.0
             * @category Array
             * @param {Array} array The array to flatten.
             * @returns {Array} Returns the new flattened array.
             * @example
             *
             * _.flattenDeep([1, [2, [3, [4]], 5]]);
             * // => [1, 2, 3, 4, 5]
             */


            function flattenDeep(array) {
              var length = array == null ? 0 : array.length;
              return length ? baseFlatten(array, INFINITY) : [];
            }
            /**
             * Recursively flatten `array` up to `depth` times.
             *
             * @static
             * @memberOf _
             * @since 4.4.0
             * @category Array
             * @param {Array} array The array to flatten.
             * @param {number} [depth=1] The maximum recursion depth.
             * @returns {Array} Returns the new flattened array.
             * @example
             *
             * var array = [1, [2, [3, [4]], 5]];
             *
             * _.flattenDepth(array, 1);
             * // => [1, 2, [3, [4]], 5]
             *
             * _.flattenDepth(array, 2);
             * // => [1, 2, 3, [4], 5]
             */


            function flattenDepth(array, depth) {
              var length = array == null ? 0 : array.length;

              if (!length) {
                return [];
              }

              depth = depth === undefined ? 1 : toInteger(depth);
              return baseFlatten(array, depth);
            }
            /**
             * The inverse of `_.toPairs`; this method returns an object composed
             * from key-value `pairs`.
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Array
             * @param {Array} pairs The key-value pairs.
             * @returns {Object} Returns the new object.
             * @example
             *
             * _.fromPairs([['a', 1], ['b', 2]]);
             * // => { 'a': 1, 'b': 2 }
             */


            function fromPairs(pairs) {
              var index = -1,
                  length = pairs == null ? 0 : pairs.length,
                  result = {};

              while (++index < length) {
                var pair = pairs[index];
                result[pair[0]] = pair[1];
              }

              return result;
            }
            /**
             * Gets the first element of `array`.
             *
             * @static
             * @memberOf _
             * @since 0.1.0
             * @alias first
             * @category Array
             * @param {Array} array The array to query.
             * @returns {*} Returns the first element of `array`.
             * @example
             *
             * _.head([1, 2, 3]);
             * // => 1
             *
             * _.head([]);
             * // => undefined
             */


            function head(array) {
              return array && array.length ? array[0] : undefined;
            }
            /**
             * Gets the index at which the first occurrence of `value` is found in `array`
             * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
             * for equality comparisons. If `fromIndex` is negative, it's used as the
             * offset from the end of `array`.
             *
             * @static
             * @memberOf _
             * @since 0.1.0
             * @category Array
             * @param {Array} array The array to inspect.
             * @param {*} value The value to search for.
             * @param {number} [fromIndex=0] The index to search from.
             * @returns {number} Returns the index of the matched value, else `-1`.
             * @example
             *
             * _.indexOf([1, 2, 1, 2], 2);
             * // => 1
             *
             * // Search from the `fromIndex`.
             * _.indexOf([1, 2, 1, 2], 2, 2);
             * // => 3
             */


            function indexOf(array, value, fromIndex) {
              var length = array == null ? 0 : array.length;

              if (!length) {
                return -1;
              }

              var index = fromIndex == null ? 0 : toInteger(fromIndex);

              if (index < 0) {
                index = nativeMax(length + index, 0);
              }

              return baseIndexOf(array, value, index);
            }
            /**
             * Gets all but the last element of `array`.
             *
             * @static
             * @memberOf _
             * @since 0.1.0
             * @category Array
             * @param {Array} array The array to query.
             * @returns {Array} Returns the slice of `array`.
             * @example
             *
             * _.initial([1, 2, 3]);
             * // => [1, 2]
             */


            function initial(array) {
              var length = array == null ? 0 : array.length;
              return length ? baseSlice(array, 0, -1) : [];
            }
            /**
             * Creates an array of unique values that are included in all given arrays
             * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
             * for equality comparisons. The order and references of result values are
             * determined by the first array.
             *
             * @static
             * @memberOf _
             * @since 0.1.0
             * @category Array
             * @param {...Array} [arrays] The arrays to inspect.
             * @returns {Array} Returns the new array of intersecting values.
             * @example
             *
             * _.intersection([2, 1], [2, 3]);
             * // => [2]
             */


            var intersection = baseRest(function (arrays) {
              var mapped = arrayMap(arrays, castArrayLikeObject);
              return mapped.length && mapped[0] === arrays[0] ? baseIntersection(mapped) : [];
            });
            /**
             * This method is like `_.intersection` except that it accepts `iteratee`
             * which is invoked for each element of each `arrays` to generate the criterion
             * by which they're compared. The order and references of result values are
             * determined by the first array. The iteratee is invoked with one argument:
             * (value).
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Array
             * @param {...Array} [arrays] The arrays to inspect.
             * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
             * @returns {Array} Returns the new array of intersecting values.
             * @example
             *
             * _.intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor);
             * // => [2.1]
             *
             * // The `_.property` iteratee shorthand.
             * _.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
             * // => [{ 'x': 1 }]
             */

            var intersectionBy = baseRest(function (arrays) {
              var iteratee = last(arrays),
                  mapped = arrayMap(arrays, castArrayLikeObject);

              if (iteratee === last(mapped)) {
                iteratee = undefined;
              } else {
                mapped.pop();
              }

              return mapped.length && mapped[0] === arrays[0] ? baseIntersection(mapped, getIteratee(iteratee, 2)) : [];
            });
            /**
             * This method is like `_.intersection` except that it accepts `comparator`
             * which is invoked to compare elements of `arrays`. The order and references
             * of result values are determined by the first array. The comparator is
             * invoked with two arguments: (arrVal, othVal).
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Array
             * @param {...Array} [arrays] The arrays to inspect.
             * @param {Function} [comparator] The comparator invoked per element.
             * @returns {Array} Returns the new array of intersecting values.
             * @example
             *
             * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
             * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
             *
             * _.intersectionWith(objects, others, _.isEqual);
             * // => [{ 'x': 1, 'y': 2 }]
             */

            var intersectionWith = baseRest(function (arrays) {
              var comparator = last(arrays),
                  mapped = arrayMap(arrays, castArrayLikeObject);
              comparator = typeof comparator == 'function' ? comparator : undefined;

              if (comparator) {
                mapped.pop();
              }

              return mapped.length && mapped[0] === arrays[0] ? baseIntersection(mapped, undefined, comparator) : [];
            });
            /**
             * Converts all elements in `array` into a string separated by `separator`.
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Array
             * @param {Array} array The array to convert.
             * @param {string} [separator=','] The element separator.
             * @returns {string} Returns the joined string.
             * @example
             *
             * _.join(['a', 'b', 'c'], '~');
             * // => 'a~b~c'
             */

            function join(array, separator) {
              return array == null ? '' : nativeJoin.call(array, separator);
            }
            /**
             * Gets the last element of `array`.
             *
             * @static
             * @memberOf _
             * @since 0.1.0
             * @category Array
             * @param {Array} array The array to query.
             * @returns {*} Returns the last element of `array`.
             * @example
             *
             * _.last([1, 2, 3]);
             * // => 3
             */


            function last(array) {
              var length = array == null ? 0 : array.length;
              return length ? array[length - 1] : undefined;
            }
            /**
             * This method is like `_.indexOf` except that it iterates over elements of
             * `array` from right to left.
             *
             * @static
             * @memberOf _
             * @since 0.1.0
             * @category Array
             * @param {Array} array The array to inspect.
             * @param {*} value The value to search for.
             * @param {number} [fromIndex=array.length-1] The index to search from.
             * @returns {number} Returns the index of the matched value, else `-1`.
             * @example
             *
             * _.lastIndexOf([1, 2, 1, 2], 2);
             * // => 3
             *
             * // Search from the `fromIndex`.
             * _.lastIndexOf([1, 2, 1, 2], 2, 2);
             * // => 1
             */


            function lastIndexOf(array, value, fromIndex) {
              var length = array == null ? 0 : array.length;

              if (!length) {
                return -1;
              }

              var index = length;

              if (fromIndex !== undefined) {
                index = toInteger(fromIndex);
                index = index < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1);
              }

              return value === value ? strictLastIndexOf(array, value, index) : baseFindIndex(array, baseIsNaN, index, true);
            }
            /**
             * Gets the element at index `n` of `array`. If `n` is negative, the nth
             * element from the end is returned.
             *
             * @static
             * @memberOf _
             * @since 4.11.0
             * @category Array
             * @param {Array} array The array to query.
             * @param {number} [n=0] The index of the element to return.
             * @returns {*} Returns the nth element of `array`.
             * @example
             *
             * var array = ['a', 'b', 'c', 'd'];
             *
             * _.nth(array, 1);
             * // => 'b'
             *
             * _.nth(array, -2);
             * // => 'c';
             */


            function nth(array, n) {
              return array && array.length ? baseNth(array, toInteger(n)) : undefined;
            }
            /**
             * Removes all given values from `array` using
             * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
             * for equality comparisons.
             *
             * **Note:** Unlike `_.without`, this method mutates `array`. Use `_.remove`
             * to remove elements from an array by predicate.
             *
             * @static
             * @memberOf _
             * @since 2.0.0
             * @category Array
             * @param {Array} array The array to modify.
             * @param {...*} [values] The values to remove.
             * @returns {Array} Returns `array`.
             * @example
             *
             * var array = ['a', 'b', 'c', 'a', 'b', 'c'];
             *
             * _.pull(array, 'a', 'c');
             * console.log(array);
             * // => ['b', 'b']
             */


            var pull = baseRest(pullAll);
            /**
             * This method is like `_.pull` except that it accepts an array of values to remove.
             *
             * **Note:** Unlike `_.difference`, this method mutates `array`.
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Array
             * @param {Array} array The array to modify.
             * @param {Array} values The values to remove.
             * @returns {Array} Returns `array`.
             * @example
             *
             * var array = ['a', 'b', 'c', 'a', 'b', 'c'];
             *
             * _.pullAll(array, ['a', 'c']);
             * console.log(array);
             * // => ['b', 'b']
             */

            function pullAll(array, values) {
              return array && array.length && values && values.length ? basePullAll(array, values) : array;
            }
            /**
             * This method is like `_.pullAll` except that it accepts `iteratee` which is
             * invoked for each element of `array` and `values` to generate the criterion
             * by which they're compared. The iteratee is invoked with one argument: (value).
             *
             * **Note:** Unlike `_.differenceBy`, this method mutates `array`.
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Array
             * @param {Array} array The array to modify.
             * @param {Array} values The values to remove.
             * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
             * @returns {Array} Returns `array`.
             * @example
             *
             * var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }];
             *
             * _.pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x');
             * console.log(array);
             * // => [{ 'x': 2 }]
             */


            function pullAllBy(array, values, iteratee) {
              return array && array.length && values && values.length ? basePullAll(array, values, getIteratee(iteratee, 2)) : array;
            }
            /**
             * This method is like `_.pullAll` except that it accepts `comparator` which
             * is invoked to compare elements of `array` to `values`. The comparator is
             * invoked with two arguments: (arrVal, othVal).
             *
             * **Note:** Unlike `_.differenceWith`, this method mutates `array`.
             *
             * @static
             * @memberOf _
             * @since 4.6.0
             * @category Array
             * @param {Array} array The array to modify.
             * @param {Array} values The values to remove.
             * @param {Function} [comparator] The comparator invoked per element.
             * @returns {Array} Returns `array`.
             * @example
             *
             * var array = [{ 'x': 1, 'y': 2 }, { 'x': 3, 'y': 4 }, { 'x': 5, 'y': 6 }];
             *
             * _.pullAllWith(array, [{ 'x': 3, 'y': 4 }], _.isEqual);
             * console.log(array);
             * // => [{ 'x': 1, 'y': 2 }, { 'x': 5, 'y': 6 }]
             */


            function pullAllWith(array, values, comparator) {
              return array && array.length && values && values.length ? basePullAll(array, values, undefined, comparator) : array;
            }
            /**
             * Removes elements from `array` corresponding to `indexes` and returns an
             * array of removed elements.
             *
             * **Note:** Unlike `_.at`, this method mutates `array`.
             *
             * @static
             * @memberOf _
             * @since 3.0.0
             * @category Array
             * @param {Array} array The array to modify.
             * @param {...(number|number[])} [indexes] The indexes of elements to remove.
             * @returns {Array} Returns the new array of removed elements.
             * @example
             *
             * var array = ['a', 'b', 'c', 'd'];
             * var pulled = _.pullAt(array, [1, 3]);
             *
             * console.log(array);
             * // => ['a', 'c']
             *
             * console.log(pulled);
             * // => ['b', 'd']
             */


            var pullAt = flatRest(function (array, indexes) {
              var length = array == null ? 0 : array.length,
                  result = baseAt(array, indexes);
              basePullAt(array, arrayMap(indexes, function (index) {
                return isIndex(index, length) ? +index : index;
              }).sort(compareAscending));
              return result;
            });
            /**
             * Removes all elements from `array` that `predicate` returns truthy for
             * and returns an array of the removed elements. The predicate is invoked
             * with three arguments: (value, index, array).
             *
             * **Note:** Unlike `_.filter`, this method mutates `array`. Use `_.pull`
             * to pull elements from an array by value.
             *
             * @static
             * @memberOf _
             * @since 2.0.0
             * @category Array
             * @param {Array} array The array to modify.
             * @param {Function} [predicate=_.identity] The function invoked per iteration.
             * @returns {Array} Returns the new array of removed elements.
             * @example
             *
             * var array = [1, 2, 3, 4];
             * var evens = _.remove(array, function(n) {
             *   return n % 2 == 0;
             * });
             *
             * console.log(array);
             * // => [1, 3]
             *
             * console.log(evens);
             * // => [2, 4]
             */

            function remove(array, predicate) {
              var result = [];

              if (!(array && array.length)) {
                return result;
              }

              var index = -1,
                  indexes = [],
                  length = array.length;
              predicate = getIteratee(predicate, 3);

              while (++index < length) {
                var value = array[index];

                if (predicate(value, index, array)) {
                  result.push(value);
                  indexes.push(index);
                }
              }

              basePullAt(array, indexes);
              return result;
            }
            /**
             * Reverses `array` so that the first element becomes the last, the second
             * element becomes the second to last, and so on.
             *
             * **Note:** This method mutates `array` and is based on
             * [`Array#reverse`](https://mdn.io/Array/reverse).
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Array
             * @param {Array} array The array to modify.
             * @returns {Array} Returns `array`.
             * @example
             *
             * var array = [1, 2, 3];
             *
             * _.reverse(array);
             * // => [3, 2, 1]
             *
             * console.log(array);
             * // => [3, 2, 1]
             */


            function reverse(array) {
              return array == null ? array : nativeReverse.call(array);
            }
            /**
             * Creates a slice of `array` from `start` up to, but not including, `end`.
             *
             * **Note:** This method is used instead of
             * [`Array#slice`](https://mdn.io/Array/slice) to ensure dense arrays are
             * returned.
             *
             * @static
             * @memberOf _
             * @since 3.0.0
             * @category Array
             * @param {Array} array The array to slice.
             * @param {number} [start=0] The start position.
             * @param {number} [end=array.length] The end position.
             * @returns {Array} Returns the slice of `array`.
             */


            function slice(array, start, end) {
              var length = array == null ? 0 : array.length;

              if (!length) {
                return [];
              }

              if (end && typeof end != 'number' && isIterateeCall(array, start, end)) {
                start = 0;
                end = length;
              } else {
                start = start == null ? 0 : toInteger(start);
                end = end === undefined ? length : toInteger(end);
              }

              return baseSlice(array, start, end);
            }
            /**
             * Uses a binary search to determine the lowest index at which `value`
             * should be inserted into `array` in order to maintain its sort order.
             *
             * @static
             * @memberOf _
             * @since 0.1.0
             * @category Array
             * @param {Array} array The sorted array to inspect.
             * @param {*} value The value to evaluate.
             * @returns {number} Returns the index at which `value` should be inserted
             *  into `array`.
             * @example
             *
             * _.sortedIndex([30, 50], 40);
             * // => 1
             */


            function sortedIndex(array, value) {
              return baseSortedIndex(array, value);
            }
            /**
             * This method is like `_.sortedIndex` except that it accepts `iteratee`
             * which is invoked for `value` and each element of `array` to compute their
             * sort ranking. The iteratee is invoked with one argument: (value).
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Array
             * @param {Array} array The sorted array to inspect.
             * @param {*} value The value to evaluate.
             * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
             * @returns {number} Returns the index at which `value` should be inserted
             *  into `array`.
             * @example
             *
             * var objects = [{ 'x': 4 }, { 'x': 5 }];
             *
             * _.sortedIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });
             * // => 0
             *
             * // The `_.property` iteratee shorthand.
             * _.sortedIndexBy(objects, { 'x': 4 }, 'x');
             * // => 0
             */


            function sortedIndexBy(array, value, iteratee) {
              return baseSortedIndexBy(array, value, getIteratee(iteratee, 2));
            }
            /**
             * This method is like `_.indexOf` except that it performs a binary
             * search on a sorted `array`.
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Array
             * @param {Array} array The array to inspect.
             * @param {*} value The value to search for.
             * @returns {number} Returns the index of the matched value, else `-1`.
             * @example
             *
             * _.sortedIndexOf([4, 5, 5, 5, 6], 5);
             * // => 1
             */


            function sortedIndexOf(array, value) {
              var length = array == null ? 0 : array.length;

              if (length) {
                var index = baseSortedIndex(array, value);

                if (index < length && eq(array[index], value)) {
                  return index;
                }
              }

              return -1;
            }
            /**
             * This method is like `_.sortedIndex` except that it returns the highest
             * index at which `value` should be inserted into `array` in order to
             * maintain its sort order.
             *
             * @static
             * @memberOf _
             * @since 3.0.0
             * @category Array
             * @param {Array} array The sorted array to inspect.
             * @param {*} value The value to evaluate.
             * @returns {number} Returns the index at which `value` should be inserted
             *  into `array`.
             * @example
             *
             * _.sortedLastIndex([4, 5, 5, 5, 6], 5);
             * // => 4
             */


            function sortedLastIndex(array, value) {
              return baseSortedIndex(array, value, true);
            }
            /**
             * This method is like `_.sortedLastIndex` except that it accepts `iteratee`
             * which is invoked for `value` and each element of `array` to compute their
             * sort ranking. The iteratee is invoked with one argument: (value).
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Array
             * @param {Array} array The sorted array to inspect.
             * @param {*} value The value to evaluate.
             * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
             * @returns {number} Returns the index at which `value` should be inserted
             *  into `array`.
             * @example
             *
             * var objects = [{ 'x': 4 }, { 'x': 5 }];
             *
             * _.sortedLastIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });
             * // => 1
             *
             * // The `_.property` iteratee shorthand.
             * _.sortedLastIndexBy(objects, { 'x': 4 }, 'x');
             * // => 1
             */


            function sortedLastIndexBy(array, value, iteratee) {
              return baseSortedIndexBy(array, value, getIteratee(iteratee, 2), true);
            }
            /**
             * This method is like `_.lastIndexOf` except that it performs a binary
             * search on a sorted `array`.
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Array
             * @param {Array} array The array to inspect.
             * @param {*} value The value to search for.
             * @returns {number} Returns the index of the matched value, else `-1`.
             * @example
             *
             * _.sortedLastIndexOf([4, 5, 5, 5, 6], 5);
             * // => 3
             */


            function sortedLastIndexOf(array, value) {
              var length = array == null ? 0 : array.length;

              if (length) {
                var index = baseSortedIndex(array, value, true) - 1;

                if (eq(array[index], value)) {
                  return index;
                }
              }

              return -1;
            }
            /**
             * This method is like `_.uniq` except that it's designed and optimized
             * for sorted arrays.
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Array
             * @param {Array} array The array to inspect.
             * @returns {Array} Returns the new duplicate free array.
             * @example
             *
             * _.sortedUniq([1, 1, 2]);
             * // => [1, 2]
             */


            function sortedUniq(array) {
              return array && array.length ? baseSortedUniq(array) : [];
            }
            /**
             * This method is like `_.uniqBy` except that it's designed and optimized
             * for sorted arrays.
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Array
             * @param {Array} array The array to inspect.
             * @param {Function} [iteratee] The iteratee invoked per element.
             * @returns {Array} Returns the new duplicate free array.
             * @example
             *
             * _.sortedUniqBy([1.1, 1.2, 2.3, 2.4], Math.floor);
             * // => [1.1, 2.3]
             */


            function sortedUniqBy(array, iteratee) {
              return array && array.length ? baseSortedUniq(array, getIteratee(iteratee, 2)) : [];
            }
            /**
             * Gets all but the first element of `array`.
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Array
             * @param {Array} array The array to query.
             * @returns {Array} Returns the slice of `array`.
             * @example
             *
             * _.tail([1, 2, 3]);
             * // => [2, 3]
             */


            function tail(array) {
              var length = array == null ? 0 : array.length;
              return length ? baseSlice(array, 1, length) : [];
            }
            /**
             * Creates a slice of `array` with `n` elements taken from the beginning.
             *
             * @static
             * @memberOf _
             * @since 0.1.0
             * @category Array
             * @param {Array} array The array to query.
             * @param {number} [n=1] The number of elements to take.
             * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
             * @returns {Array} Returns the slice of `array`.
             * @example
             *
             * _.take([1, 2, 3]);
             * // => [1]
             *
             * _.take([1, 2, 3], 2);
             * // => [1, 2]
             *
             * _.take([1, 2, 3], 5);
             * // => [1, 2, 3]
             *
             * _.take([1, 2, 3], 0);
             * // => []
             */


            function take(array, n, guard) {
              if (!(array && array.length)) {
                return [];
              }

              n = guard || n === undefined ? 1 : toInteger(n);
              return baseSlice(array, 0, n < 0 ? 0 : n);
            }
            /**
             * Creates a slice of `array` with `n` elements taken from the end.
             *
             * @static
             * @memberOf _
             * @since 3.0.0
             * @category Array
             * @param {Array} array The array to query.
             * @param {number} [n=1] The number of elements to take.
             * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
             * @returns {Array} Returns the slice of `array`.
             * @example
             *
             * _.takeRight([1, 2, 3]);
             * // => [3]
             *
             * _.takeRight([1, 2, 3], 2);
             * // => [2, 3]
             *
             * _.takeRight([1, 2, 3], 5);
             * // => [1, 2, 3]
             *
             * _.takeRight([1, 2, 3], 0);
             * // => []
             */


            function takeRight(array, n, guard) {
              var length = array == null ? 0 : array.length;

              if (!length) {
                return [];
              }

              n = guard || n === undefined ? 1 : toInteger(n);
              n = length - n;
              return baseSlice(array, n < 0 ? 0 : n, length);
            }
            /**
             * Creates a slice of `array` with elements taken from the end. Elements are
             * taken until `predicate` returns falsey. The predicate is invoked with
             * three arguments: (value, index, array).
             *
             * @static
             * @memberOf _
             * @since 3.0.0
             * @category Array
             * @param {Array} array The array to query.
             * @param {Function} [predicate=_.identity] The function invoked per iteration.
             * @returns {Array} Returns the slice of `array`.
             * @example
             *
             * var users = [
             *   { 'user': 'barney',  'active': true },
             *   { 'user': 'fred',    'active': false },
             *   { 'user': 'pebbles', 'active': false }
             * ];
             *
             * _.takeRightWhile(users, function(o) { return !o.active; });
             * // => objects for ['fred', 'pebbles']
             *
             * // The `_.matches` iteratee shorthand.
             * _.takeRightWhile(users, { 'user': 'pebbles', 'active': false });
             * // => objects for ['pebbles']
             *
             * // The `_.matchesProperty` iteratee shorthand.
             * _.takeRightWhile(users, ['active', false]);
             * // => objects for ['fred', 'pebbles']
             *
             * // The `_.property` iteratee shorthand.
             * _.takeRightWhile(users, 'active');
             * // => []
             */


            function takeRightWhile(array, predicate) {
              return array && array.length ? baseWhile(array, getIteratee(predicate, 3), false, true) : [];
            }
            /**
             * Creates a slice of `array` with elements taken from the beginning. Elements
             * are taken until `predicate` returns falsey. The predicate is invoked with
             * three arguments: (value, index, array).
             *
             * @static
             * @memberOf _
             * @since 3.0.0
             * @category Array
             * @param {Array} array The array to query.
             * @param {Function} [predicate=_.identity] The function invoked per iteration.
             * @returns {Array} Returns the slice of `array`.
             * @example
             *
             * var users = [
             *   { 'user': 'barney',  'active': false },
             *   { 'user': 'fred',    'active': false },
             *   { 'user': 'pebbles', 'active': true }
             * ];
             *
             * _.takeWhile(users, function(o) { return !o.active; });
             * // => objects for ['barney', 'fred']
             *
             * // The `_.matches` iteratee shorthand.
             * _.takeWhile(users, { 'user': 'barney', 'active': false });
             * // => objects for ['barney']
             *
             * // The `_.matchesProperty` iteratee shorthand.
             * _.takeWhile(users, ['active', false]);
             * // => objects for ['barney', 'fred']
             *
             * // The `_.property` iteratee shorthand.
             * _.takeWhile(users, 'active');
             * // => []
             */


            function takeWhile(array, predicate) {
              return array && array.length ? baseWhile(array, getIteratee(predicate, 3)) : [];
            }
            /**
             * Creates an array of unique values, in order, from all given arrays using
             * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
             * for equality comparisons.
             *
             * @static
             * @memberOf _
             * @since 0.1.0
             * @category Array
             * @param {...Array} [arrays] The arrays to inspect.
             * @returns {Array} Returns the new array of combined values.
             * @example
             *
             * _.union([2], [1, 2]);
             * // => [2, 1]
             */


            var union = baseRest(function (arrays) {
              return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));
            });
            /**
             * This method is like `_.union` except that it accepts `iteratee` which is
             * invoked for each element of each `arrays` to generate the criterion by
             * which uniqueness is computed. Result values are chosen from the first
             * array in which the value occurs. The iteratee is invoked with one argument:
             * (value).
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Array
             * @param {...Array} [arrays] The arrays to inspect.
             * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
             * @returns {Array} Returns the new array of combined values.
             * @example
             *
             * _.unionBy([2.1], [1.2, 2.3], Math.floor);
             * // => [2.1, 1.2]
             *
             * // The `_.property` iteratee shorthand.
             * _.unionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
             * // => [{ 'x': 1 }, { 'x': 2 }]
             */

            var unionBy = baseRest(function (arrays) {
              var iteratee = last(arrays);

              if (isArrayLikeObject(iteratee)) {
                iteratee = undefined;
              }

              return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), getIteratee(iteratee, 2));
            });
            /**
             * This method is like `_.union` except that it accepts `comparator` which
             * is invoked to compare elements of `arrays`. Result values are chosen from
             * the first array in which the value occurs. The comparator is invoked
             * with two arguments: (arrVal, othVal).
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Array
             * @param {...Array} [arrays] The arrays to inspect.
             * @param {Function} [comparator] The comparator invoked per element.
             * @returns {Array} Returns the new array of combined values.
             * @example
             *
             * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
             * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
             *
             * _.unionWith(objects, others, _.isEqual);
             * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]
             */

            var unionWith = baseRest(function (arrays) {
              var comparator = last(arrays);
              comparator = typeof comparator == 'function' ? comparator : undefined;
              return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), undefined, comparator);
            });
            /**
             * Creates a duplicate-free version of an array, using
             * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
             * for equality comparisons, in which only the first occurrence of each element
             * is kept. The order of result values is determined by the order they occur
             * in the array.
             *
             * @static
             * @memberOf _
             * @since 0.1.0
             * @category Array
             * @param {Array} array The array to inspect.
             * @returns {Array} Returns the new duplicate free array.
             * @example
             *
             * _.uniq([2, 1, 2]);
             * // => [2, 1]
             */

            function uniq(array) {
              return array && array.length ? baseUniq(array) : [];
            }
            /**
             * This method is like `_.uniq` except that it accepts `iteratee` which is
             * invoked for each element in `array` to generate the criterion by which
             * uniqueness is computed. The order of result values is determined by the
             * order they occur in the array. The iteratee is invoked with one argument:
             * (value).
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Array
             * @param {Array} array The array to inspect.
             * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
             * @returns {Array} Returns the new duplicate free array.
             * @example
             *
             * _.uniqBy([2.1, 1.2, 2.3], Math.floor);
             * // => [2.1, 1.2]
             *
             * // The `_.property` iteratee shorthand.
             * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');
             * // => [{ 'x': 1 }, { 'x': 2 }]
             */


            function uniqBy(array, iteratee) {
              return array && array.length ? baseUniq(array, getIteratee(iteratee, 2)) : [];
            }
            /**
             * This method is like `_.uniq` except that it accepts `comparator` which
             * is invoked to compare elements of `array`. The order of result values is
             * determined by the order they occur in the array.The comparator is invoked
             * with two arguments: (arrVal, othVal).
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Array
             * @param {Array} array The array to inspect.
             * @param {Function} [comparator] The comparator invoked per element.
             * @returns {Array} Returns the new duplicate free array.
             * @example
             *
             * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }];
             *
             * _.uniqWith(objects, _.isEqual);
             * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]
             */


            function uniqWith(array, comparator) {
              comparator = typeof comparator == 'function' ? comparator : undefined;
              return array && array.length ? baseUniq(array, undefined, comparator) : [];
            }
            /**
             * This method is like `_.zip` except that it accepts an array of grouped
             * elements and creates an array regrouping the elements to their pre-zip
             * configuration.
             *
             * @static
             * @memberOf _
             * @since 1.2.0
             * @category Array
             * @param {Array} array The array of grouped elements to process.
             * @returns {Array} Returns the new array of regrouped elements.
             * @example
             *
             * var zipped = _.zip(['a', 'b'], [1, 2], [true, false]);
             * // => [['a', 1, true], ['b', 2, false]]
             *
             * _.unzip(zipped);
             * // => [['a', 'b'], [1, 2], [true, false]]
             */


            function unzip(array) {
              if (!(array && array.length)) {
                return [];
              }

              var length = 0;
              array = arrayFilter(array, function (group) {
                if (isArrayLikeObject(group)) {
                  length = nativeMax(group.length, length);
                  return true;
                }
              });
              return baseTimes(length, function (index) {
                return arrayMap(array, baseProperty(index));
              });
            }
            /**
             * This method is like `_.unzip` except that it accepts `iteratee` to specify
             * how regrouped values should be combined. The iteratee is invoked with the
             * elements of each group: (...group).
             *
             * @static
             * @memberOf _
             * @since 3.8.0
             * @category Array
             * @param {Array} array The array of grouped elements to process.
             * @param {Function} [iteratee=_.identity] The function to combine
             *  regrouped values.
             * @returns {Array} Returns the new array of regrouped elements.
             * @example
             *
             * var zipped = _.zip([1, 2], [10, 20], [100, 200]);
             * // => [[1, 10, 100], [2, 20, 200]]
             *
             * _.unzipWith(zipped, _.add);
             * // => [3, 30, 300]
             */


            function unzipWith(array, iteratee) {
              if (!(array && array.length)) {
                return [];
              }

              var result = unzip(array);

              if (iteratee == null) {
                return result;
              }

              return arrayMap(result, function (group) {
                return apply(iteratee, undefined, group);
              });
            }
            /**
             * Creates an array excluding all given values using
             * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
             * for equality comparisons.
             *
             * **Note:** Unlike `_.pull`, this method returns a new array.
             *
             * @static
             * @memberOf _
             * @since 0.1.0
             * @category Array
             * @param {Array} array The array to inspect.
             * @param {...*} [values] The values to exclude.
             * @returns {Array} Returns the new array of filtered values.
             * @see _.difference, _.xor
             * @example
             *
             * _.without([2, 1, 2, 3], 1, 2);
             * // => [3]
             */


            var without = baseRest(function (array, values) {
              return isArrayLikeObject(array) ? baseDifference(array, values) : [];
            });
            /**
             * Creates an array of unique values that is the
             * [symmetric difference](https://en.wikipedia.org/wiki/Symmetric_difference)
             * of the given arrays. The order of result values is determined by the order
             * they occur in the arrays.
             *
             * @static
             * @memberOf _
             * @since 2.4.0
             * @category Array
             * @param {...Array} [arrays] The arrays to inspect.
             * @returns {Array} Returns the new array of filtered values.
             * @see _.difference, _.without
             * @example
             *
             * _.xor([2, 1], [2, 3]);
             * // => [1, 3]
             */

            var xor = baseRest(function (arrays) {
              return baseXor(arrayFilter(arrays, isArrayLikeObject));
            });
            /**
             * This method is like `_.xor` except that it accepts `iteratee` which is
             * invoked for each element of each `arrays` to generate the criterion by
             * which by which they're compared. The order of result values is determined
             * by the order they occur in the arrays. The iteratee is invoked with one
             * argument: (value).
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Array
             * @param {...Array} [arrays] The arrays to inspect.
             * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
             * @returns {Array} Returns the new array of filtered values.
             * @example
             *
             * _.xorBy([2.1, 1.2], [2.3, 3.4], Math.floor);
             * // => [1.2, 3.4]
             *
             * // The `_.property` iteratee shorthand.
             * _.xorBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
             * // => [{ 'x': 2 }]
             */

            var xorBy = baseRest(function (arrays) {
              var iteratee = last(arrays);

              if (isArrayLikeObject(iteratee)) {
                iteratee = undefined;
              }

              return baseXor(arrayFilter(arrays, isArrayLikeObject), getIteratee(iteratee, 2));
            });
            /**
             * This method is like `_.xor` except that it accepts `comparator` which is
             * invoked to compare elements of `arrays`. The order of result values is
             * determined by the order they occur in the arrays. The comparator is invoked
             * with two arguments: (arrVal, othVal).
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Array
             * @param {...Array} [arrays] The arrays to inspect.
             * @param {Function} [comparator] The comparator invoked per element.
             * @returns {Array} Returns the new array of filtered values.
             * @example
             *
             * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
             * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
             *
             * _.xorWith(objects, others, _.isEqual);
             * // => [{ 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]
             */

            var xorWith = baseRest(function (arrays) {
              var comparator = last(arrays);
              comparator = typeof comparator == 'function' ? comparator : undefined;
              return baseXor(arrayFilter(arrays, isArrayLikeObject), undefined, comparator);
            });
            /**
             * Creates an array of grouped elements, the first of which contains the
             * first elements of the given arrays, the second of which contains the
             * second elements of the given arrays, and so on.
             *
             * @static
             * @memberOf _
             * @since 0.1.0
             * @category Array
             * @param {...Array} [arrays] The arrays to process.
             * @returns {Array} Returns the new array of grouped elements.
             * @example
             *
             * _.zip(['a', 'b'], [1, 2], [true, false]);
             * // => [['a', 1, true], ['b', 2, false]]
             */

            var zip = baseRest(unzip);
            /**
             * This method is like `_.fromPairs` except that it accepts two arrays,
             * one of property identifiers and one of corresponding values.
             *
             * @static
             * @memberOf _
             * @since 0.4.0
             * @category Array
             * @param {Array} [props=[]] The property identifiers.
             * @param {Array} [values=[]] The property values.
             * @returns {Object} Returns the new object.
             * @example
             *
             * _.zipObject(['a', 'b'], [1, 2]);
             * // => { 'a': 1, 'b': 2 }
             */

            function zipObject(props, values) {
              return baseZipObject(props || [], values || [], assignValue);
            }
            /**
             * This method is like `_.zipObject` except that it supports property paths.
             *
             * @static
             * @memberOf _
             * @since 4.1.0
             * @category Array
             * @param {Array} [props=[]] The property identifiers.
             * @param {Array} [values=[]] The property values.
             * @returns {Object} Returns the new object.
             * @example
             *
             * _.zipObjectDeep(['a.b[0].c', 'a.b[1].d'], [1, 2]);
             * // => { 'a': { 'b': [{ 'c': 1 }, { 'd': 2 }] } }
             */


            function zipObjectDeep(props, values) {
              return baseZipObject(props || [], values || [], baseSet);
            }
            /**
             * This method is like `_.zip` except that it accepts `iteratee` to specify
             * how grouped values should be combined. The iteratee is invoked with the
             * elements of each group: (...group).
             *
             * @static
             * @memberOf _
             * @since 3.8.0
             * @category Array
             * @param {...Array} [arrays] The arrays to process.
             * @param {Function} [iteratee=_.identity] The function to combine
             *  grouped values.
             * @returns {Array} Returns the new array of grouped elements.
             * @example
             *
             * _.zipWith([1, 2], [10, 20], [100, 200], function(a, b, c) {
             *   return a + b + c;
             * });
             * // => [111, 222]
             */


            var zipWith = baseRest(function (arrays) {
              var length = arrays.length,
                  iteratee = length > 1 ? arrays[length - 1] : undefined;
              iteratee = typeof iteratee == 'function' ? (arrays.pop(), iteratee) : undefined;
              return unzipWith(arrays, iteratee);
            });
            /*------------------------------------------------------------------------*/

            /**
             * Creates a `lodash` wrapper instance that wraps `value` with explicit method
             * chain sequences enabled. The result of such sequences must be unwrapped
             * with `_#value`.
             *
             * @static
             * @memberOf _
             * @since 1.3.0
             * @category Seq
             * @param {*} value The value to wrap.
             * @returns {Object} Returns the new `lodash` wrapper instance.
             * @example
             *
             * var users = [
             *   { 'user': 'barney',  'age': 36 },
             *   { 'user': 'fred',    'age': 40 },
             *   { 'user': 'pebbles', 'age': 1 }
             * ];
             *
             * var youngest = _
             *   .chain(users)
             *   .sortBy('age')
             *   .map(function(o) {
             *     return o.user + ' is ' + o.age;
             *   })
             *   .head()
             *   .value();
             * // => 'pebbles is 1'
             */

            function chain(value) {
              var result = lodash(value);
              result.__chain__ = true;
              return result;
            }
            /**
             * This method invokes `interceptor` and returns `value`. The interceptor
             * is invoked with one argument; (value). The purpose of this method is to
             * "tap into" a method chain sequence in order to modify intermediate results.
             *
             * @static
             * @memberOf _
             * @since 0.1.0
             * @category Seq
             * @param {*} value The value to provide to `interceptor`.
             * @param {Function} interceptor The function to invoke.
             * @returns {*} Returns `value`.
             * @example
             *
             * _([1, 2, 3])
             *  .tap(function(array) {
             *    // Mutate input array.
             *    array.pop();
             *  })
             *  .reverse()
             *  .value();
             * // => [2, 1]
             */


            function tap(value, interceptor) {
              interceptor(value);
              return value;
            }
            /**
             * This method is like `_.tap` except that it returns the result of `interceptor`.
             * The purpose of this method is to "pass thru" values replacing intermediate
             * results in a method chain sequence.
             *
             * @static
             * @memberOf _
             * @since 3.0.0
             * @category Seq
             * @param {*} value The value to provide to `interceptor`.
             * @param {Function} interceptor The function to invoke.
             * @returns {*} Returns the result of `interceptor`.
             * @example
             *
             * _('  abc  ')
             *  .chain()
             *  .trim()
             *  .thru(function(value) {
             *    return [value];
             *  })
             *  .value();
             * // => ['abc']
             */


            function thru(value, interceptor) {
              return interceptor(value);
            }
            /**
             * This method is the wrapper version of `_.at`.
             *
             * @name at
             * @memberOf _
             * @since 1.0.0
             * @category Seq
             * @param {...(string|string[])} [paths] The property paths to pick.
             * @returns {Object} Returns the new `lodash` wrapper instance.
             * @example
             *
             * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };
             *
             * _(object).at(['a[0].b.c', 'a[1]']).value();
             * // => [3, 4]
             */


            var wrapperAt = flatRest(function (paths) {
              var length = paths.length,
                  start = length ? paths[0] : 0,
                  value = this.__wrapped__,
                  interceptor = function interceptor(object) {
                return baseAt(object, paths);
              };

              if (length > 1 || this.__actions__.length || !(value instanceof LazyWrapper) || !isIndex(start)) {
                return this.thru(interceptor);
              }

              value = value.slice(start, +start + (length ? 1 : 0));

              value.__actions__.push({
                'func': thru,
                'args': [interceptor],
                'thisArg': undefined
              });

              return new LodashWrapper(value, this.__chain__).thru(function (array) {
                if (length && !array.length) {
                  array.push(undefined);
                }

                return array;
              });
            });
            /**
             * Creates a `lodash` wrapper instance with explicit method chain sequences enabled.
             *
             * @name chain
             * @memberOf _
             * @since 0.1.0
             * @category Seq
             * @returns {Object} Returns the new `lodash` wrapper instance.
             * @example
             *
             * var users = [
             *   { 'user': 'barney', 'age': 36 },
             *   { 'user': 'fred',   'age': 40 }
             * ];
             *
             * // A sequence without explicit chaining.
             * _(users).head();
             * // => { 'user': 'barney', 'age': 36 }
             *
             * // A sequence with explicit chaining.
             * _(users)
             *   .chain()
             *   .head()
             *   .pick('user')
             *   .value();
             * // => { 'user': 'barney' }
             */

            function wrapperChain() {
              return chain(this);
            }
            /**
             * Executes the chain sequence and returns the wrapped result.
             *
             * @name commit
             * @memberOf _
             * @since 3.2.0
             * @category Seq
             * @returns {Object} Returns the new `lodash` wrapper instance.
             * @example
             *
             * var array = [1, 2];
             * var wrapped = _(array).push(3);
             *
             * console.log(array);
             * // => [1, 2]
             *
             * wrapped = wrapped.commit();
             * console.log(array);
             * // => [1, 2, 3]
             *
             * wrapped.last();
             * // => 3
             *
             * console.log(array);
             * // => [1, 2, 3]
             */


            function wrapperCommit() {
              return new LodashWrapper(this.value(), this.__chain__);
            }
            /**
             * Gets the next value on a wrapped object following the
             * [iterator protocol](https://mdn.io/iteration_protocols#iterator).
             *
             * @name next
             * @memberOf _
             * @since 4.0.0
             * @category Seq
             * @returns {Object} Returns the next iterator value.
             * @example
             *
             * var wrapped = _([1, 2]);
             *
             * wrapped.next();
             * // => { 'done': false, 'value': 1 }
             *
             * wrapped.next();
             * // => { 'done': false, 'value': 2 }
             *
             * wrapped.next();
             * // => { 'done': true, 'value': undefined }
             */


            function wrapperNext() {
              if (this.__values__ === undefined) {
                this.__values__ = toArray(this.value());
              }

              var done = this.__index__ >= this.__values__.length,
                  value = done ? undefined : this.__values__[this.__index__++];
              return {
                'done': done,
                'value': value
              };
            }
            /**
             * Enables the wrapper to be iterable.
             *
             * @name Symbol.iterator
             * @memberOf _
             * @since 4.0.0
             * @category Seq
             * @returns {Object} Returns the wrapper object.
             * @example
             *
             * var wrapped = _([1, 2]);
             *
             * wrapped[Symbol.iterator]() === wrapped;
             * // => true
             *
             * Array.from(wrapped);
             * // => [1, 2]
             */


            function wrapperToIterator() {
              return this;
            }
            /**
             * Creates a clone of the chain sequence planting `value` as the wrapped value.
             *
             * @name plant
             * @memberOf _
             * @since 3.2.0
             * @category Seq
             * @param {*} value The value to plant.
             * @returns {Object} Returns the new `lodash` wrapper instance.
             * @example
             *
             * function square(n) {
             *   return n * n;
             * }
             *
             * var wrapped = _([1, 2]).map(square);
             * var other = wrapped.plant([3, 4]);
             *
             * other.value();
             * // => [9, 16]
             *
             * wrapped.value();
             * // => [1, 4]
             */


            function wrapperPlant(value) {
              var result,
                  parent = this;

              while (parent instanceof baseLodash) {
                var clone = wrapperClone(parent);
                clone.__index__ = 0;
                clone.__values__ = undefined;

                if (result) {
                  previous.__wrapped__ = clone;
                } else {
                  result = clone;
                }

                var previous = clone;
                parent = parent.__wrapped__;
              }

              previous.__wrapped__ = value;
              return result;
            }
            /**
             * This method is the wrapper version of `_.reverse`.
             *
             * **Note:** This method mutates the wrapped array.
             *
             * @name reverse
             * @memberOf _
             * @since 0.1.0
             * @category Seq
             * @returns {Object} Returns the new `lodash` wrapper instance.
             * @example
             *
             * var array = [1, 2, 3];
             *
             * _(array).reverse().value()
             * // => [3, 2, 1]
             *
             * console.log(array);
             * // => [3, 2, 1]
             */


            function wrapperReverse() {
              var value = this.__wrapped__;

              if (value instanceof LazyWrapper) {
                var wrapped = value;

                if (this.__actions__.length) {
                  wrapped = new LazyWrapper(this);
                }

                wrapped = wrapped.reverse();

                wrapped.__actions__.push({
                  'func': thru,
                  'args': [reverse],
                  'thisArg': undefined
                });

                return new LodashWrapper(wrapped, this.__chain__);
              }

              return this.thru(reverse);
            }
            /**
             * Executes the chain sequence to resolve the unwrapped value.
             *
             * @name value
             * @memberOf _
             * @since 0.1.0
             * @alias toJSON, valueOf
             * @category Seq
             * @returns {*} Returns the resolved unwrapped value.
             * @example
             *
             * _([1, 2, 3]).value();
             * // => [1, 2, 3]
             */


            function wrapperValue() {
              return baseWrapperValue(this.__wrapped__, this.__actions__);
            }
            /*------------------------------------------------------------------------*/

            /**
             * Creates an object composed of keys generated from the results of running
             * each element of `collection` thru `iteratee`. The corresponding value of
             * each key is the number of times the key was returned by `iteratee`. The
             * iteratee is invoked with one argument: (value).
             *
             * @static
             * @memberOf _
             * @since 0.5.0
             * @category Collection
             * @param {Array|Object} collection The collection to iterate over.
             * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
             * @returns {Object} Returns the composed aggregate object.
             * @example
             *
             * _.countBy([6.1, 4.2, 6.3], Math.floor);
             * // => { '4': 1, '6': 2 }
             *
             * // The `_.property` iteratee shorthand.
             * _.countBy(['one', 'two', 'three'], 'length');
             * // => { '3': 2, '5': 1 }
             */


            var countBy = createAggregator(function (result, value, key) {
              if (hasOwnProperty.call(result, key)) {
                ++result[key];
              } else {
                baseAssignValue(result, key, 1);
              }
            });
            /**
             * Checks if `predicate` returns truthy for **all** elements of `collection`.
             * Iteration is stopped once `predicate` returns falsey. The predicate is
             * invoked with three arguments: (value, index|key, collection).
             *
             * **Note:** This method returns `true` for
             * [empty collections](https://en.wikipedia.org/wiki/Empty_set) because
             * [everything is true](https://en.wikipedia.org/wiki/Vacuous_truth) of
             * elements of empty collections.
             *
             * @static
             * @memberOf _
             * @since 0.1.0
             * @category Collection
             * @param {Array|Object} collection The collection to iterate over.
             * @param {Function} [predicate=_.identity] The function invoked per iteration.
             * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
             * @returns {boolean} Returns `true` if all elements pass the predicate check,
             *  else `false`.
             * @example
             *
             * _.every([true, 1, null, 'yes'], Boolean);
             * // => false
             *
             * var users = [
             *   { 'user': 'barney', 'age': 36, 'active': false },
             *   { 'user': 'fred',   'age': 40, 'active': false }
             * ];
             *
             * // The `_.matches` iteratee shorthand.
             * _.every(users, { 'user': 'barney', 'active': false });
             * // => false
             *
             * // The `_.matchesProperty` iteratee shorthand.
             * _.every(users, ['active', false]);
             * // => true
             *
             * // The `_.property` iteratee shorthand.
             * _.every(users, 'active');
             * // => false
             */

            function every(collection, predicate, guard) {
              var func = isArray(collection) ? arrayEvery : baseEvery;

              if (guard && isIterateeCall(collection, predicate, guard)) {
                predicate = undefined;
              }

              return func(collection, getIteratee(predicate, 3));
            }
            /**
             * Iterates over elements of `collection`, returning an array of all elements
             * `predicate` returns truthy for. The predicate is invoked with three
             * arguments: (value, index|key, collection).
             *
             * **Note:** Unlike `_.remove`, this method returns a new array.
             *
             * @static
             * @memberOf _
             * @since 0.1.0
             * @category Collection
             * @param {Array|Object} collection The collection to iterate over.
             * @param {Function} [predicate=_.identity] The function invoked per iteration.
             * @returns {Array} Returns the new filtered array.
             * @see _.reject
             * @example
             *
             * var users = [
             *   { 'user': 'barney', 'age': 36, 'active': true },
             *   { 'user': 'fred',   'age': 40, 'active': false }
             * ];
             *
             * _.filter(users, function(o) { return !o.active; });
             * // => objects for ['fred']
             *
             * // The `_.matches` iteratee shorthand.
             * _.filter(users, { 'age': 36, 'active': true });
             * // => objects for ['barney']
             *
             * // The `_.matchesProperty` iteratee shorthand.
             * _.filter(users, ['active', false]);
             * // => objects for ['fred']
             *
             * // The `_.property` iteratee shorthand.
             * _.filter(users, 'active');
             * // => objects for ['barney']
             *
             * // Combining several predicates using `_.overEvery` or `_.overSome`.
             * _.filter(users, _.overSome([{ 'age': 36 }, ['age', 40]]));
             * // => objects for ['fred', 'barney']
             */


            function filter(collection, predicate) {
              var func = isArray(collection) ? arrayFilter : baseFilter;
              return func(collection, getIteratee(predicate, 3));
            }
            /**
             * Iterates over elements of `collection`, returning the first element
             * `predicate` returns truthy for. The predicate is invoked with three
             * arguments: (value, index|key, collection).
             *
             * @static
             * @memberOf _
             * @since 0.1.0
             * @category Collection
             * @param {Array|Object} collection The collection to inspect.
             * @param {Function} [predicate=_.identity] The function invoked per iteration.
             * @param {number} [fromIndex=0] The index to search from.
             * @returns {*} Returns the matched element, else `undefined`.
             * @example
             *
             * var users = [
             *   { 'user': 'barney',  'age': 36, 'active': true },
             *   { 'user': 'fred',    'age': 40, 'active': false },
             *   { 'user': 'pebbles', 'age': 1,  'active': true }
             * ];
             *
             * _.find(users, function(o) { return o.age < 40; });
             * // => object for 'barney'
             *
             * // The `_.matches` iteratee shorthand.
             * _.find(users, { 'age': 1, 'active': true });
             * // => object for 'pebbles'
             *
             * // The `_.matchesProperty` iteratee shorthand.
             * _.find(users, ['active', false]);
             * // => object for 'fred'
             *
             * // The `_.property` iteratee shorthand.
             * _.find(users, 'active');
             * // => object for 'barney'
             */


            var find = createFind(findIndex);
            /**
             * This method is like `_.find` except that it iterates over elements of
             * `collection` from right to left.
             *
             * @static
             * @memberOf _
             * @since 2.0.0
             * @category Collection
             * @param {Array|Object} collection The collection to inspect.
             * @param {Function} [predicate=_.identity] The function invoked per iteration.
             * @param {number} [fromIndex=collection.length-1] The index to search from.
             * @returns {*} Returns the matched element, else `undefined`.
             * @example
             *
             * _.findLast([1, 2, 3, 4], function(n) {
             *   return n % 2 == 1;
             * });
             * // => 3
             */

            var findLast = createFind(findLastIndex);
            /**
             * Creates a flattened array of values by running each element in `collection`
             * thru `iteratee` and flattening the mapped results. The iteratee is invoked
             * with three arguments: (value, index|key, collection).
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Collection
             * @param {Array|Object} collection The collection to iterate over.
             * @param {Function} [iteratee=_.identity] The function invoked per iteration.
             * @returns {Array} Returns the new flattened array.
             * @example
             *
             * function duplicate(n) {
             *   return [n, n];
             * }
             *
             * _.flatMap([1, 2], duplicate);
             * // => [1, 1, 2, 2]
             */

            function flatMap(collection, iteratee) {
              return baseFlatten(map(collection, iteratee), 1);
            }
            /**
             * This method is like `_.flatMap` except that it recursively flattens the
             * mapped results.
             *
             * @static
             * @memberOf _
             * @since 4.7.0
             * @category Collection
             * @param {Array|Object} collection The collection to iterate over.
             * @param {Function} [iteratee=_.identity] The function invoked per iteration.
             * @returns {Array} Returns the new flattened array.
             * @example
             *
             * function duplicate(n) {
             *   return [[[n, n]]];
             * }
             *
             * _.flatMapDeep([1, 2], duplicate);
             * // => [1, 1, 2, 2]
             */


            function flatMapDeep(collection, iteratee) {
              return baseFlatten(map(collection, iteratee), INFINITY);
            }
            /**
             * This method is like `_.flatMap` except that it recursively flattens the
             * mapped results up to `depth` times.
             *
             * @static
             * @memberOf _
             * @since 4.7.0
             * @category Collection
             * @param {Array|Object} collection The collection to iterate over.
             * @param {Function} [iteratee=_.identity] The function invoked per iteration.
             * @param {number} [depth=1] The maximum recursion depth.
             * @returns {Array} Returns the new flattened array.
             * @example
             *
             * function duplicate(n) {
             *   return [[[n, n]]];
             * }
             *
             * _.flatMapDepth([1, 2], duplicate, 2);
             * // => [[1, 1], [2, 2]]
             */


            function flatMapDepth(collection, iteratee, depth) {
              depth = depth === undefined ? 1 : toInteger(depth);
              return baseFlatten(map(collection, iteratee), depth);
            }
            /**
             * Iterates over elements of `collection` and invokes `iteratee` for each element.
             * The iteratee is invoked with three arguments: (value, index|key, collection).
             * Iteratee functions may exit iteration early by explicitly returning `false`.
             *
             * **Note:** As with other "Collections" methods, objects with a "length"
             * property are iterated like arrays. To avoid this behavior use `_.forIn`
             * or `_.forOwn` for object iteration.
             *
             * @static
             * @memberOf _
             * @since 0.1.0
             * @alias each
             * @category Collection
             * @param {Array|Object} collection The collection to iterate over.
             * @param {Function} [iteratee=_.identity] The function invoked per iteration.
             * @returns {Array|Object} Returns `collection`.
             * @see _.forEachRight
             * @example
             *
             * _.forEach([1, 2], function(value) {
             *   console.log(value);
             * });
             * // => Logs `1` then `2`.
             *
             * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {
             *   console.log(key);
             * });
             * // => Logs 'a' then 'b' (iteration order is not guaranteed).
             */


            function forEach(collection, iteratee) {
              var func = isArray(collection) ? arrayEach : baseEach;
              return func(collection, getIteratee(iteratee, 3));
            }
            /**
             * This method is like `_.forEach` except that it iterates over elements of
             * `collection` from right to left.
             *
             * @static
             * @memberOf _
             * @since 2.0.0
             * @alias eachRight
             * @category Collection
             * @param {Array|Object} collection The collection to iterate over.
             * @param {Function} [iteratee=_.identity] The function invoked per iteration.
             * @returns {Array|Object} Returns `collection`.
             * @see _.forEach
             * @example
             *
             * _.forEachRight([1, 2], function(value) {
             *   console.log(value);
             * });
             * // => Logs `2` then `1`.
             */


            function forEachRight(collection, iteratee) {
              var func = isArray(collection) ? arrayEachRight : baseEachRight;
              return func(collection, getIteratee(iteratee, 3));
            }
            /**
             * Creates an object composed of keys generated from the results of running
             * each element of `collection` thru `iteratee`. The order of grouped values
             * is determined by the order they occur in `collection`. The corresponding
             * value of each key is an array of elements responsible for generating the
             * key. The iteratee is invoked with one argument: (value).
             *
             * @static
             * @memberOf _
             * @since 0.1.0
             * @category Collection
             * @param {Array|Object} collection The collection to iterate over.
             * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
             * @returns {Object} Returns the composed aggregate object.
             * @example
             *
             * _.groupBy([6.1, 4.2, 6.3], Math.floor);
             * // => { '4': [4.2], '6': [6.1, 6.3] }
             *
             * // The `_.property` iteratee shorthand.
             * _.groupBy(['one', 'two', 'three'], 'length');
             * // => { '3': ['one', 'two'], '5': ['three'] }
             */


            var groupBy = createAggregator(function (result, value, key) {
              if (hasOwnProperty.call(result, key)) {
                result[key].push(value);
              } else {
                baseAssignValue(result, key, [value]);
              }
            });
            /**
             * Checks if `value` is in `collection`. If `collection` is a string, it's
             * checked for a substring of `value`, otherwise
             * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
             * is used for equality comparisons. If `fromIndex` is negative, it's used as
             * the offset from the end of `collection`.
             *
             * @static
             * @memberOf _
             * @since 0.1.0
             * @category Collection
             * @param {Array|Object|string} collection The collection to inspect.
             * @param {*} value The value to search for.
             * @param {number} [fromIndex=0] The index to search from.
             * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
             * @returns {boolean} Returns `true` if `value` is found, else `false`.
             * @example
             *
             * _.includes([1, 2, 3], 1);
             * // => true
             *
             * _.includes([1, 2, 3], 1, 2);
             * // => false
             *
             * _.includes({ 'a': 1, 'b': 2 }, 1);
             * // => true
             *
             * _.includes('abcd', 'bc');
             * // => true
             */

            function includes(collection, value, fromIndex, guard) {
              collection = isArrayLike(collection) ? collection : values(collection);
              fromIndex = fromIndex && !guard ? toInteger(fromIndex) : 0;
              var length = collection.length;

              if (fromIndex < 0) {
                fromIndex = nativeMax(length + fromIndex, 0);
              }

              return isString(collection) ? fromIndex <= length && collection.indexOf(value, fromIndex) > -1 : !!length && baseIndexOf(collection, value, fromIndex) > -1;
            }
            /**
             * Invokes the method at `path` of each element in `collection`, returning
             * an array of the results of each invoked method. Any additional arguments
             * are provided to each invoked method. If `path` is a function, it's invoked
             * for, and `this` bound to, each element in `collection`.
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Collection
             * @param {Array|Object} collection The collection to iterate over.
             * @param {Array|Function|string} path The path of the method to invoke or
             *  the function invoked per iteration.
             * @param {...*} [args] The arguments to invoke each method with.
             * @returns {Array} Returns the array of results.
             * @example
             *
             * _.invokeMap([[5, 1, 7], [3, 2, 1]], 'sort');
             * // => [[1, 5, 7], [1, 2, 3]]
             *
             * _.invokeMap([123, 456], String.prototype.split, '');
             * // => [['1', '2', '3'], ['4', '5', '6']]
             */


            var invokeMap = baseRest(function (collection, path, args) {
              var index = -1,
                  isFunc = typeof path == 'function',
                  result = isArrayLike(collection) ? Array(collection.length) : [];
              baseEach(collection, function (value) {
                result[++index] = isFunc ? apply(path, value, args) : baseInvoke(value, path, args);
              });
              return result;
            });
            /**
             * Creates an object composed of keys generated from the results of running
             * each element of `collection` thru `iteratee`. The corresponding value of
             * each key is the last element responsible for generating the key. The
             * iteratee is invoked with one argument: (value).
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Collection
             * @param {Array|Object} collection The collection to iterate over.
             * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
             * @returns {Object} Returns the composed aggregate object.
             * @example
             *
             * var array = [
             *   { 'dir': 'left', 'code': 97 },
             *   { 'dir': 'right', 'code': 100 }
             * ];
             *
             * _.keyBy(array, function(o) {
             *   return String.fromCharCode(o.code);
             * });
             * // => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } }
             *
             * _.keyBy(array, 'dir');
             * // => { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } }
             */

            var keyBy = createAggregator(function (result, value, key) {
              baseAssignValue(result, key, value);
            });
            /**
             * Creates an array of values by running each element in `collection` thru
             * `iteratee`. The iteratee is invoked with three arguments:
             * (value, index|key, collection).
             *
             * Many lodash methods are guarded to work as iteratees for methods like
             * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.
             *
             * The guarded methods are:
             * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,
             * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,
             * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,
             * `template`, `trim`, `trimEnd`, `trimStart`, and `words`
             *
             * @static
             * @memberOf _
             * @since 0.1.0
             * @category Collection
             * @param {Array|Object} collection The collection to iterate over.
             * @param {Function} [iteratee=_.identity] The function invoked per iteration.
             * @returns {Array} Returns the new mapped array.
             * @example
             *
             * function square(n) {
             *   return n * n;
             * }
             *
             * _.map([4, 8], square);
             * // => [16, 64]
             *
             * _.map({ 'a': 4, 'b': 8 }, square);
             * // => [16, 64] (iteration order is not guaranteed)
             *
             * var users = [
             *   { 'user': 'barney' },
             *   { 'user': 'fred' }
             * ];
             *
             * // The `_.property` iteratee shorthand.
             * _.map(users, 'user');
             * // => ['barney', 'fred']
             */

            function map(collection, iteratee) {
              var func = isArray(collection) ? arrayMap : baseMap;
              return func(collection, getIteratee(iteratee, 3));
            }
            /**
             * This method is like `_.sortBy` except that it allows specifying the sort
             * orders of the iteratees to sort by. If `orders` is unspecified, all values
             * are sorted in ascending order. Otherwise, specify an order of "desc" for
             * descending or "asc" for ascending sort order of corresponding values.
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Collection
             * @param {Array|Object} collection The collection to iterate over.
             * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]]
             *  The iteratees to sort by.
             * @param {string[]} [orders] The sort orders of `iteratees`.
             * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
             * @returns {Array} Returns the new sorted array.
             * @example
             *
             * var users = [
             *   { 'user': 'fred',   'age': 48 },
             *   { 'user': 'barney', 'age': 34 },
             *   { 'user': 'fred',   'age': 40 },
             *   { 'user': 'barney', 'age': 36 }
             * ];
             *
             * // Sort by `user` in ascending order and by `age` in descending order.
             * _.orderBy(users, ['user', 'age'], ['asc', 'desc']);
             * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
             */


            function orderBy(collection, iteratees, orders, guard) {
              if (collection == null) {
                return [];
              }

              if (!isArray(iteratees)) {
                iteratees = iteratees == null ? [] : [iteratees];
              }

              orders = guard ? undefined : orders;

              if (!isArray(orders)) {
                orders = orders == null ? [] : [orders];
              }

              return baseOrderBy(collection, iteratees, orders);
            }
            /**
             * Creates an array of elements split into two groups, the first of which
             * contains elements `predicate` returns truthy for, the second of which
             * contains elements `predicate` returns falsey for. The predicate is
             * invoked with one argument: (value).
             *
             * @static
             * @memberOf _
             * @since 3.0.0
             * @category Collection
             * @param {Array|Object} collection The collection to iterate over.
             * @param {Function} [predicate=_.identity] The function invoked per iteration.
             * @returns {Array} Returns the array of grouped elements.
             * @example
             *
             * var users = [
             *   { 'user': 'barney',  'age': 36, 'active': false },
             *   { 'user': 'fred',    'age': 40, 'active': true },
             *   { 'user': 'pebbles', 'age': 1,  'active': false }
             * ];
             *
             * _.partition(users, function(o) { return o.active; });
             * // => objects for [['fred'], ['barney', 'pebbles']]
             *
             * // The `_.matches` iteratee shorthand.
             * _.partition(users, { 'age': 1, 'active': false });
             * // => objects for [['pebbles'], ['barney', 'fred']]
             *
             * // The `_.matchesProperty` iteratee shorthand.
             * _.partition(users, ['active', false]);
             * // => objects for [['barney', 'pebbles'], ['fred']]
             *
             * // The `_.property` iteratee shorthand.
             * _.partition(users, 'active');
             * // => objects for [['fred'], ['barney', 'pebbles']]
             */


            var partition = createAggregator(function (result, value, key) {
              result[key ? 0 : 1].push(value);
            }, function () {
              return [[], []];
            });
            /**
             * Reduces `collection` to a value which is the accumulated result of running
             * each element in `collection` thru `iteratee`, where each successive
             * invocation is supplied the return value of the previous. If `accumulator`
             * is not given, the first element of `collection` is used as the initial
             * value. The iteratee is invoked with four arguments:
             * (accumulator, value, index|key, collection).
             *
             * Many lodash methods are guarded to work as iteratees for methods like
             * `_.reduce`, `_.reduceRight`, and `_.transform`.
             *
             * The guarded methods are:
             * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,
             * and `sortBy`
             *
             * @static
             * @memberOf _
             * @since 0.1.0
             * @category Collection
             * @param {Array|Object} collection The collection to iterate over.
             * @param {Function} [iteratee=_.identity] The function invoked per iteration.
             * @param {*} [accumulator] The initial value.
             * @returns {*} Returns the accumulated value.
             * @see _.reduceRight
             * @example
             *
             * _.reduce([1, 2], function(sum, n) {
             *   return sum + n;
             * }, 0);
             * // => 3
             *
             * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
             *   (result[value] || (result[value] = [])).push(key);
             *   return result;
             * }, {});
             * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)
             */

            function reduce(collection, iteratee, accumulator) {
              var func = isArray(collection) ? arrayReduce : baseReduce,
                  initAccum = arguments.length < 3;
              return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEach);
            }
            /**
             * This method is like `_.reduce` except that it iterates over elements of
             * `collection` from right to left.
             *
             * @static
             * @memberOf _
             * @since 0.1.0
             * @category Collection
             * @param {Array|Object} collection The collection to iterate over.
             * @param {Function} [iteratee=_.identity] The function invoked per iteration.
             * @param {*} [accumulator] The initial value.
             * @returns {*} Returns the accumulated value.
             * @see _.reduce
             * @example
             *
             * var array = [[0, 1], [2, 3], [4, 5]];
             *
             * _.reduceRight(array, function(flattened, other) {
             *   return flattened.concat(other);
             * }, []);
             * // => [4, 5, 2, 3, 0, 1]
             */


            function reduceRight(collection, iteratee, accumulator) {
              var func = isArray(collection) ? arrayReduceRight : baseReduce,
                  initAccum = arguments.length < 3;
              return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEachRight);
            }
            /**
             * The opposite of `_.filter`; this method returns the elements of `collection`
             * that `predicate` does **not** return truthy for.
             *
             * @static
             * @memberOf _
             * @since 0.1.0
             * @category Collection
             * @param {Array|Object} collection The collection to iterate over.
             * @param {Function} [predicate=_.identity] The function invoked per iteration.
             * @returns {Array} Returns the new filtered array.
             * @see _.filter
             * @example
             *
             * var users = [
             *   { 'user': 'barney', 'age': 36, 'active': false },
             *   { 'user': 'fred',   'age': 40, 'active': true }
             * ];
             *
             * _.reject(users, function(o) { return !o.active; });
             * // => objects for ['fred']
             *
             * // The `_.matches` iteratee shorthand.
             * _.reject(users, { 'age': 40, 'active': true });
             * // => objects for ['barney']
             *
             * // The `_.matchesProperty` iteratee shorthand.
             * _.reject(users, ['active', false]);
             * // => objects for ['fred']
             *
             * // The `_.property` iteratee shorthand.
             * _.reject(users, 'active');
             * // => objects for ['barney']
             */


            function reject(collection, predicate) {
              var func = isArray(collection) ? arrayFilter : baseFilter;
              return func(collection, negate(getIteratee(predicate, 3)));
            }
            /**
             * Gets a random element from `collection`.
             *
             * @static
             * @memberOf _
             * @since 2.0.0
             * @category Collection
             * @param {Array|Object} collection The collection to sample.
             * @returns {*} Returns the random element.
             * @example
             *
             * _.sample([1, 2, 3, 4]);
             * // => 2
             */


            function sample(collection) {
              var func = isArray(collection) ? arraySample : baseSample;
              return func(collection);
            }
            /**
             * Gets `n` random elements at unique keys from `collection` up to the
             * size of `collection`.
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Collection
             * @param {Array|Object} collection The collection to sample.
             * @param {number} [n=1] The number of elements to sample.
             * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
             * @returns {Array} Returns the random elements.
             * @example
             *
             * _.sampleSize([1, 2, 3], 2);
             * // => [3, 1]
             *
             * _.sampleSize([1, 2, 3], 4);
             * // => [2, 3, 1]
             */


            function sampleSize(collection, n, guard) {
              if (guard ? isIterateeCall(collection, n, guard) : n === undefined) {
                n = 1;
              } else {
                n = toInteger(n);
              }

              var func = isArray(collection) ? arraySampleSize : baseSampleSize;
              return func(collection, n);
            }
            /**
             * Creates an array of shuffled values, using a version of the
             * [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle).
             *
             * @static
             * @memberOf _
             * @since 0.1.0
             * @category Collection
             * @param {Array|Object} collection The collection to shuffle.
             * @returns {Array} Returns the new shuffled array.
             * @example
             *
             * _.shuffle([1, 2, 3, 4]);
             * // => [4, 1, 3, 2]
             */


            function shuffle(collection) {
              var func = isArray(collection) ? arrayShuffle : baseShuffle;
              return func(collection);
            }
            /**
             * Gets the size of `collection` by returning its length for array-like
             * values or the number of own enumerable string keyed properties for objects.
             *
             * @static
             * @memberOf _
             * @since 0.1.0
             * @category Collection
             * @param {Array|Object|string} collection The collection to inspect.
             * @returns {number} Returns the collection size.
             * @example
             *
             * _.size([1, 2, 3]);
             * // => 3
             *
             * _.size({ 'a': 1, 'b': 2 });
             * // => 2
             *
             * _.size('pebbles');
             * // => 7
             */


            function size(collection) {
              if (collection == null) {
                return 0;
              }

              if (isArrayLike(collection)) {
                return isString(collection) ? stringSize(collection) : collection.length;
              }

              var tag = getTag(collection);

              if (tag == mapTag || tag == setTag) {
                return collection.size;
              }

              return baseKeys(collection).length;
            }
            /**
             * Checks if `predicate` returns truthy for **any** element of `collection`.
             * Iteration is stopped once `predicate` returns truthy. The predicate is
             * invoked with three arguments: (value, index|key, collection).
             *
             * @static
             * @memberOf _
             * @since 0.1.0
             * @category Collection
             * @param {Array|Object} collection The collection to iterate over.
             * @param {Function} [predicate=_.identity] The function invoked per iteration.
             * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
             * @returns {boolean} Returns `true` if any element passes the predicate check,
             *  else `false`.
             * @example
             *
             * _.some([null, 0, 'yes', false], Boolean);
             * // => true
             *
             * var users = [
             *   { 'user': 'barney', 'active': true },
             *   { 'user': 'fred',   'active': false }
             * ];
             *
             * // The `_.matches` iteratee shorthand.
             * _.some(users, { 'user': 'barney', 'active': false });
             * // => false
             *
             * // The `_.matchesProperty` iteratee shorthand.
             * _.some(users, ['active', false]);
             * // => true
             *
             * // The `_.property` iteratee shorthand.
             * _.some(users, 'active');
             * // => true
             */


            function some(collection, predicate, guard) {
              var func = isArray(collection) ? arraySome : baseSome;

              if (guard && isIterateeCall(collection, predicate, guard)) {
                predicate = undefined;
              }

              return func(collection, getIteratee(predicate, 3));
            }
            /**
             * Creates an array of elements, sorted in ascending order by the results of
             * running each element in a collection thru each iteratee. This method
             * performs a stable sort, that is, it preserves the original sort order of
             * equal elements. The iteratees are invoked with one argument: (value).
             *
             * @static
             * @memberOf _
             * @since 0.1.0
             * @category Collection
             * @param {Array|Object} collection The collection to iterate over.
             * @param {...(Function|Function[])} [iteratees=[_.identity]]
             *  The iteratees to sort by.
             * @returns {Array} Returns the new sorted array.
             * @example
             *
             * var users = [
             *   { 'user': 'fred',   'age': 48 },
             *   { 'user': 'barney', 'age': 36 },
             *   { 'user': 'fred',   'age': 30 },
             *   { 'user': 'barney', 'age': 34 }
             * ];
             *
             * _.sortBy(users, [function(o) { return o.user; }]);
             * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 30]]
             *
             * _.sortBy(users, ['user', 'age']);
             * // => objects for [['barney', 34], ['barney', 36], ['fred', 30], ['fred', 48]]
             */


            var sortBy = baseRest(function (collection, iteratees) {
              if (collection == null) {
                return [];
              }

              var length = iteratees.length;

              if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {
                iteratees = [];
              } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {
                iteratees = [iteratees[0]];
              }

              return baseOrderBy(collection, baseFlatten(iteratees, 1), []);
            });
            /*------------------------------------------------------------------------*/

            /**
             * Gets the timestamp of the number of milliseconds that have elapsed since
             * the Unix epoch (1 January 1970 00:00:00 UTC).
             *
             * @static
             * @memberOf _
             * @since 2.4.0
             * @category Date
             * @returns {number} Returns the timestamp.
             * @example
             *
             * _.defer(function(stamp) {
             *   console.log(_.now() - stamp);
             * }, _.now());
             * // => Logs the number of milliseconds it took for the deferred invocation.
             */

            var now = ctxNow || function () {
              return root.Date.now();
            };
            /*------------------------------------------------------------------------*/

            /**
             * The opposite of `_.before`; this method creates a function that invokes
             * `func` once it's called `n` or more times.
             *
             * @static
             * @memberOf _
             * @since 0.1.0
             * @category Function
             * @param {number} n The number of calls before `func` is invoked.
             * @param {Function} func The function to restrict.
             * @returns {Function} Returns the new restricted function.
             * @example
             *
             * var saves = ['profile', 'settings'];
             *
             * var done = _.after(saves.length, function() {
             *   console.log('done saving!');
             * });
             *
             * _.forEach(saves, function(type) {
             *   asyncSave({ 'type': type, 'complete': done });
             * });
             * // => Logs 'done saving!' after the two async saves have completed.
             */


            function after(n, func) {
              if (typeof func != 'function') {
                throw new TypeError(FUNC_ERROR_TEXT);
              }

              n = toInteger(n);
              return function () {
                if (--n < 1) {
                  return func.apply(this, arguments);
                }
              };
            }
            /**
             * Creates a function that invokes `func`, with up to `n` arguments,
             * ignoring any additional arguments.
             *
             * @static
             * @memberOf _
             * @since 3.0.0
             * @category Function
             * @param {Function} func The function to cap arguments for.
             * @param {number} [n=func.length] The arity cap.
             * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
             * @returns {Function} Returns the new capped function.
             * @example
             *
             * _.map(['6', '8', '10'], _.ary(parseInt, 1));
             * // => [6, 8, 10]
             */


            function ary(func, n, guard) {
              n = guard ? undefined : n;
              n = func && n == null ? func.length : n;
              return createWrap(func, WRAP_ARY_FLAG, undefined, undefined, undefined, undefined, n);
            }
            /**
             * Creates a function that invokes `func`, with the `this` binding and arguments
             * of the created function, while it's called less than `n` times. Subsequent
             * calls to the created function return the result of the last `func` invocation.
             *
             * @static
             * @memberOf _
             * @since 3.0.0
             * @category Function
             * @param {number} n The number of calls at which `func` is no longer invoked.
             * @param {Function} func The function to restrict.
             * @returns {Function} Returns the new restricted function.
             * @example
             *
             * jQuery(element).on('click', _.before(5, addContactToList));
             * // => Allows adding up to 4 contacts to the list.
             */


            function before(n, func) {
              var result;

              if (typeof func != 'function') {
                throw new TypeError(FUNC_ERROR_TEXT);
              }

              n = toInteger(n);
              return function () {
                if (--n > 0) {
                  result = func.apply(this, arguments);
                }

                if (n <= 1) {
                  func = undefined;
                }

                return result;
              };
            }
            /**
             * Creates a function that invokes `func` with the `this` binding of `thisArg`
             * and `partials` prepended to the arguments it receives.
             *
             * The `_.bind.placeholder` value, which defaults to `_` in monolithic builds,
             * may be used as a placeholder for partially applied arguments.
             *
             * **Note:** Unlike native `Function#bind`, this method doesn't set the "length"
             * property of bound functions.
             *
             * @static
             * @memberOf _
             * @since 0.1.0
             * @category Function
             * @param {Function} func The function to bind.
             * @param {*} thisArg The `this` binding of `func`.
             * @param {...*} [partials] The arguments to be partially applied.
             * @returns {Function} Returns the new bound function.
             * @example
             *
             * function greet(greeting, punctuation) {
             *   return greeting + ' ' + this.user + punctuation;
             * }
             *
             * var object = { 'user': 'fred' };
             *
             * var bound = _.bind(greet, object, 'hi');
             * bound('!');
             * // => 'hi fred!'
             *
             * // Bound with placeholders.
             * var bound = _.bind(greet, object, _, '!');
             * bound('hi');
             * // => 'hi fred!'
             */


            var bind = baseRest(function (func, thisArg, partials) {
              var bitmask = WRAP_BIND_FLAG;

              if (partials.length) {
                var holders = replaceHolders(partials, getHolder(bind));
                bitmask |= WRAP_PARTIAL_FLAG;
              }

              return createWrap(func, bitmask, thisArg, partials, holders);
            });
            /**
             * Creates a function that invokes the method at `object[key]` with `partials`
             * prepended to the arguments it receives.
             *
             * This method differs from `_.bind` by allowing bound functions to reference
             * methods that may be redefined or don't yet exist. See
             * [Peter Michaux's article](http://peter.michaux.ca/articles/lazy-function-definition-pattern)
             * for more details.
             *
             * The `_.bindKey.placeholder` value, which defaults to `_` in monolithic
             * builds, may be used as a placeholder for partially applied arguments.
             *
             * @static
             * @memberOf _
             * @since 0.10.0
             * @category Function
             * @param {Object} object The object to invoke the method on.
             * @param {string} key The key of the method.
             * @param {...*} [partials] The arguments to be partially applied.
             * @returns {Function} Returns the new bound function.
             * @example
             *
             * var object = {
             *   'user': 'fred',
             *   'greet': function(greeting, punctuation) {
             *     return greeting + ' ' + this.user + punctuation;
             *   }
             * };
             *
             * var bound = _.bindKey(object, 'greet', 'hi');
             * bound('!');
             * // => 'hi fred!'
             *
             * object.greet = function(greeting, punctuation) {
             *   return greeting + 'ya ' + this.user + punctuation;
             * };
             *
             * bound('!');
             * // => 'hiya fred!'
             *
             * // Bound with placeholders.
             * var bound = _.bindKey(object, 'greet', _, '!');
             * bound('hi');
             * // => 'hiya fred!'
             */

            var bindKey = baseRest(function (object, key, partials) {
              var bitmask = WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG;

              if (partials.length) {
                var holders = replaceHolders(partials, getHolder(bindKey));
                bitmask |= WRAP_PARTIAL_FLAG;
              }

              return createWrap(key, bitmask, object, partials, holders);
            });
            /**
             * Creates a function that accepts arguments of `func` and either invokes
             * `func` returning its result, if at least `arity` number of arguments have
             * been provided, or returns a function that accepts the remaining `func`
             * arguments, and so on. The arity of `func` may be specified if `func.length`
             * is not sufficient.
             *
             * The `_.curry.placeholder` value, which defaults to `_` in monolithic builds,
             * may be used as a placeholder for provided arguments.
             *
             * **Note:** This method doesn't set the "length" property of curried functions.
             *
             * @static
             * @memberOf _
             * @since 2.0.0
             * @category Function
             * @param {Function} func The function to curry.
             * @param {number} [arity=func.length] The arity of `func`.
             * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
             * @returns {Function} Returns the new curried function.
             * @example
             *
             * var abc = function(a, b, c) {
             *   return [a, b, c];
             * };
             *
             * var curried = _.curry(abc);
             *
             * curried(1)(2)(3);
             * // => [1, 2, 3]
             *
             * curried(1, 2)(3);
             * // => [1, 2, 3]
             *
             * curried(1, 2, 3);
             * // => [1, 2, 3]
             *
             * // Curried with placeholders.
             * curried(1)(_, 3)(2);
             * // => [1, 2, 3]
             */

            function curry(func, arity, guard) {
              arity = guard ? undefined : arity;
              var result = createWrap(func, WRAP_CURRY_FLAG, undefined, undefined, undefined, undefined, undefined, arity);
              result.placeholder = curry.placeholder;
              return result;
            }
            /**
             * This method is like `_.curry` except that arguments are applied to `func`
             * in the manner of `_.partialRight` instead of `_.partial`.
             *
             * The `_.curryRight.placeholder` value, which defaults to `_` in monolithic
             * builds, may be used as a placeholder for provided arguments.
             *
             * **Note:** This method doesn't set the "length" property of curried functions.
             *
             * @static
             * @memberOf _
             * @since 3.0.0
             * @category Function
             * @param {Function} func The function to curry.
             * @param {number} [arity=func.length] The arity of `func`.
             * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
             * @returns {Function} Returns the new curried function.
             * @example
             *
             * var abc = function(a, b, c) {
             *   return [a, b, c];
             * };
             *
             * var curried = _.curryRight(abc);
             *
             * curried(3)(2)(1);
             * // => [1, 2, 3]
             *
             * curried(2, 3)(1);
             * // => [1, 2, 3]
             *
             * curried(1, 2, 3);
             * // => [1, 2, 3]
             *
             * // Curried with placeholders.
             * curried(3)(1, _)(2);
             * // => [1, 2, 3]
             */


            function curryRight(func, arity, guard) {
              arity = guard ? undefined : arity;
              var result = createWrap(func, WRAP_CURRY_RIGHT_FLAG, undefined, undefined, undefined, undefined, undefined, arity);
              result.placeholder = curryRight.placeholder;
              return result;
            }
            /**
             * Creates a debounced function that delays invoking `func` until after `wait`
             * milliseconds have elapsed since the last time the debounced function was
             * invoked. The debounced function comes with a `cancel` method to cancel
             * delayed `func` invocations and a `flush` method to immediately invoke them.
             * Provide `options` to indicate whether `func` should be invoked on the
             * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
             * with the last arguments provided to the debounced function. Subsequent
             * calls to the debounced function return the result of the last `func`
             * invocation.
             *
             * **Note:** If `leading` and `trailing` options are `true`, `func` is
             * invoked on the trailing edge of the timeout only if the debounced function
             * is invoked more than once during the `wait` timeout.
             *
             * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
             * until to the next tick, similar to `setTimeout` with a timeout of `0`.
             *
             * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
             * for details over the differences between `_.debounce` and `_.throttle`.
             *
             * @static
             * @memberOf _
             * @since 0.1.0
             * @category Function
             * @param {Function} func The function to debounce.
             * @param {number} [wait=0] The number of milliseconds to delay.
             * @param {Object} [options={}] The options object.
             * @param {boolean} [options.leading=false]
             *  Specify invoking on the leading edge of the timeout.
             * @param {number} [options.maxWait]
             *  The maximum time `func` is allowed to be delayed before it's invoked.
             * @param {boolean} [options.trailing=true]
             *  Specify invoking on the trailing edge of the timeout.
             * @returns {Function} Returns the new debounced function.
             * @example
             *
             * // Avoid costly calculations while the window size is in flux.
             * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
             *
             * // Invoke `sendMail` when clicked, debouncing subsequent calls.
             * jQuery(element).on('click', _.debounce(sendMail, 300, {
             *   'leading': true,
             *   'trailing': false
             * }));
             *
             * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
             * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
             * var source = new EventSource('/stream');
             * jQuery(source).on('message', debounced);
             *
             * // Cancel the trailing debounced invocation.
             * jQuery(window).on('popstate', debounced.cancel);
             */


            function debounce(func, wait, options) {
              var lastArgs,
                  lastThis,
                  maxWait,
                  result,
                  timerId,
                  lastCallTime,
                  lastInvokeTime = 0,
                  leading = false,
                  maxing = false,
                  trailing = true;

              if (typeof func != 'function') {
                throw new TypeError(FUNC_ERROR_TEXT);
              }

              wait = toNumber(wait) || 0;

              if (isObject(options)) {
                leading = !!options.leading;
                maxing = 'maxWait' in options;
                maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
                trailing = 'trailing' in options ? !!options.trailing : trailing;
              }

              function invokeFunc(time) {
                var args = lastArgs,
                    thisArg = lastThis;
                lastArgs = lastThis = undefined;
                lastInvokeTime = time;
                result = func.apply(thisArg, args);
                return result;
              }

              function leadingEdge(time) {
                // Reset any `maxWait` timer.
                lastInvokeTime = time; // Start the timer for the trailing edge.

                timerId = setTimeout(timerExpired, wait); // Invoke the leading edge.

                return leading ? invokeFunc(time) : result;
              }

              function remainingWait(time) {
                var timeSinceLastCall = time - lastCallTime,
                    timeSinceLastInvoke = time - lastInvokeTime,
                    timeWaiting = wait - timeSinceLastCall;
                return maxing ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting;
              }

              function shouldInvoke(time) {
                var timeSinceLastCall = time - lastCallTime,
                    timeSinceLastInvoke = time - lastInvokeTime; // Either this is the first call, activity has stopped and we're at the
                // trailing edge, the system time has gone backwards and we're treating
                // it as the trailing edge, or we've hit the `maxWait` limit.

                return lastCallTime === undefined || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
              }

              function timerExpired() {
                var time = now();

                if (shouldInvoke(time)) {
                  return trailingEdge(time);
                } // Restart the timer.


                timerId = setTimeout(timerExpired, remainingWait(time));
              }

              function trailingEdge(time) {
                timerId = undefined; // Only invoke if we have `lastArgs` which means `func` has been
                // debounced at least once.

                if (trailing && lastArgs) {
                  return invokeFunc(time);
                }

                lastArgs = lastThis = undefined;
                return result;
              }

              function cancel() {
                if (timerId !== undefined) {
                  clearTimeout(timerId);
                }

                lastInvokeTime = 0;
                lastArgs = lastCallTime = lastThis = timerId = undefined;
              }

              function flush() {
                return timerId === undefined ? result : trailingEdge(now());
              }

              function debounced() {
                var time = now(),
                    isInvoking = shouldInvoke(time);
                lastArgs = arguments;
                lastThis = this;
                lastCallTime = time;

                if (isInvoking) {
                  if (timerId === undefined) {
                    return leadingEdge(lastCallTime);
                  }

                  if (maxing) {
                    // Handle invocations in a tight loop.
                    clearTimeout(timerId);
                    timerId = setTimeout(timerExpired, wait);
                    return invokeFunc(lastCallTime);
                  }
                }

                if (timerId === undefined) {
                  timerId = setTimeout(timerExpired, wait);
                }

                return result;
              }

              debounced.cancel = cancel;
              debounced.flush = flush;
              return debounced;
            }
            /**
             * Defers invoking the `func` until the current call stack has cleared. Any
             * additional arguments are provided to `func` when it's invoked.
             *
             * @static
             * @memberOf _
             * @since 0.1.0
             * @category Function
             * @param {Function} func The function to defer.
             * @param {...*} [args] The arguments to invoke `func` with.
             * @returns {number} Returns the timer id.
             * @example
             *
             * _.defer(function(text) {
             *   console.log(text);
             * }, 'deferred');
             * // => Logs 'deferred' after one millisecond.
             */


            var defer = baseRest(function (func, args) {
              return baseDelay(func, 1, args);
            });
            /**
             * Invokes `func` after `wait` milliseconds. Any additional arguments are
             * provided to `func` when it's invoked.
             *
             * @static
             * @memberOf _
             * @since 0.1.0
             * @category Function
             * @param {Function} func The function to delay.
             * @param {number} wait The number of milliseconds to delay invocation.
             * @param {...*} [args] The arguments to invoke `func` with.
             * @returns {number} Returns the timer id.
             * @example
             *
             * _.delay(function(text) {
             *   console.log(text);
             * }, 1000, 'later');
             * // => Logs 'later' after one second.
             */

            var delay = baseRest(function (func, wait, args) {
              return baseDelay(func, toNumber(wait) || 0, args);
            });
            /**
             * Creates a function that invokes `func` with arguments reversed.
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Function
             * @param {Function} func The function to flip arguments for.
             * @returns {Function} Returns the new flipped function.
             * @example
             *
             * var flipped = _.flip(function() {
             *   return _.toArray(arguments);
             * });
             *
             * flipped('a', 'b', 'c', 'd');
             * // => ['d', 'c', 'b', 'a']
             */

            function flip(func) {
              return createWrap(func, WRAP_FLIP_FLAG);
            }
            /**
             * Creates a function that memoizes the result of `func`. If `resolver` is
             * provided, it determines the cache key for storing the result based on the
             * arguments provided to the memoized function. By default, the first argument
             * provided to the memoized function is used as the map cache key. The `func`
             * is invoked with the `this` binding of the memoized function.
             *
             * **Note:** The cache is exposed as the `cache` property on the memoized
             * function. Its creation may be customized by replacing the `_.memoize.Cache`
             * constructor with one whose instances implement the
             * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
             * method interface of `clear`, `delete`, `get`, `has`, and `set`.
             *
             * @static
             * @memberOf _
             * @since 0.1.0
             * @category Function
             * @param {Function} func The function to have its output memoized.
             * @param {Function} [resolver] The function to resolve the cache key.
             * @returns {Function} Returns the new memoized function.
             * @example
             *
             * var object = { 'a': 1, 'b': 2 };
             * var other = { 'c': 3, 'd': 4 };
             *
             * var values = _.memoize(_.values);
             * values(object);
             * // => [1, 2]
             *
             * values(other);
             * // => [3, 4]
             *
             * object.a = 2;
             * values(object);
             * // => [1, 2]
             *
             * // Modify the result cache.
             * values.cache.set(object, ['a', 'b']);
             * values(object);
             * // => ['a', 'b']
             *
             * // Replace `_.memoize.Cache`.
             * _.memoize.Cache = WeakMap;
             */


            function memoize(func, resolver) {
              if (typeof func != 'function' || resolver != null && typeof resolver != 'function') {
                throw new TypeError(FUNC_ERROR_TEXT);
              }

              var memoized = function memoized() {
                var args = arguments,
                    key = resolver ? resolver.apply(this, args) : args[0],
                    cache = memoized.cache;

                if (cache.has(key)) {
                  return cache.get(key);
                }

                var result = func.apply(this, args);
                memoized.cache = cache.set(key, result) || cache;
                return result;
              };

              memoized.cache = new (memoize.Cache || MapCache)();
              return memoized;
            } // Expose `MapCache`.


            memoize.Cache = MapCache;
            /**
             * Creates a function that negates the result of the predicate `func`. The
             * `func` predicate is invoked with the `this` binding and arguments of the
             * created function.
             *
             * @static
             * @memberOf _
             * @since 3.0.0
             * @category Function
             * @param {Function} predicate The predicate to negate.
             * @returns {Function} Returns the new negated function.
             * @example
             *
             * function isEven(n) {
             *   return n % 2 == 0;
             * }
             *
             * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));
             * // => [1, 3, 5]
             */

            function negate(predicate) {
              if (typeof predicate != 'function') {
                throw new TypeError(FUNC_ERROR_TEXT);
              }

              return function () {
                var args = arguments;

                switch (args.length) {
                  case 0:
                    return !predicate.call(this);

                  case 1:
                    return !predicate.call(this, args[0]);

                  case 2:
                    return !predicate.call(this, args[0], args[1]);

                  case 3:
                    return !predicate.call(this, args[0], args[1], args[2]);
                }

                return !predicate.apply(this, args);
              };
            }
            /**
             * Creates a function that is restricted to invoking `func` once. Repeat calls
             * to the function return the value of the first invocation. The `func` is
             * invoked with the `this` binding and arguments of the created function.
             *
             * @static
             * @memberOf _
             * @since 0.1.0
             * @category Function
             * @param {Function} func The function to restrict.
             * @returns {Function} Returns the new restricted function.
             * @example
             *
             * var initialize = _.once(createApplication);
             * initialize();
             * initialize();
             * // => `createApplication` is invoked once
             */


            function once(func) {
              return before(2, func);
            }
            /**
             * Creates a function that invokes `func` with its arguments transformed.
             *
             * @static
             * @since 4.0.0
             * @memberOf _
             * @category Function
             * @param {Function} func The function to wrap.
             * @param {...(Function|Function[])} [transforms=[_.identity]]
             *  The argument transforms.
             * @returns {Function} Returns the new function.
             * @example
             *
             * function doubled(n) {
             *   return n * 2;
             * }
             *
             * function square(n) {
             *   return n * n;
             * }
             *
             * var func = _.overArgs(function(x, y) {
             *   return [x, y];
             * }, [square, doubled]);
             *
             * func(9, 3);
             * // => [81, 6]
             *
             * func(10, 5);
             * // => [100, 10]
             */


            var overArgs = castRest(function (func, transforms) {
              transforms = transforms.length == 1 && isArray(transforms[0]) ? arrayMap(transforms[0], baseUnary(getIteratee())) : arrayMap(baseFlatten(transforms, 1), baseUnary(getIteratee()));
              var funcsLength = transforms.length;
              return baseRest(function (args) {
                var index = -1,
                    length = nativeMin(args.length, funcsLength);

                while (++index < length) {
                  args[index] = transforms[index].call(this, args[index]);
                }

                return apply(func, this, args);
              });
            });
            /**
             * Creates a function that invokes `func` with `partials` prepended to the
             * arguments it receives. This method is like `_.bind` except it does **not**
             * alter the `this` binding.
             *
             * The `_.partial.placeholder` value, which defaults to `_` in monolithic
             * builds, may be used as a placeholder for partially applied arguments.
             *
             * **Note:** This method doesn't set the "length" property of partially
             * applied functions.
             *
             * @static
             * @memberOf _
             * @since 0.2.0
             * @category Function
             * @param {Function} func The function to partially apply arguments to.
             * @param {...*} [partials] The arguments to be partially applied.
             * @returns {Function} Returns the new partially applied function.
             * @example
             *
             * function greet(greeting, name) {
             *   return greeting + ' ' + name;
             * }
             *
             * var sayHelloTo = _.partial(greet, 'hello');
             * sayHelloTo('fred');
             * // => 'hello fred'
             *
             * // Partially applied with placeholders.
             * var greetFred = _.partial(greet, _, 'fred');
             * greetFred('hi');
             * // => 'hi fred'
             */

            var partial = baseRest(function (func, partials) {
              var holders = replaceHolders(partials, getHolder(partial));
              return createWrap(func, WRAP_PARTIAL_FLAG, undefined, partials, holders);
            });
            /**
             * This method is like `_.partial` except that partially applied arguments
             * are appended to the arguments it receives.
             *
             * The `_.partialRight.placeholder` value, which defaults to `_` in monolithic
             * builds, may be used as a placeholder for partially applied arguments.
             *
             * **Note:** This method doesn't set the "length" property of partially
             * applied functions.
             *
             * @static
             * @memberOf _
             * @since 1.0.0
             * @category Function
             * @param {Function} func The function to partially apply arguments to.
             * @param {...*} [partials] The arguments to be partially applied.
             * @returns {Function} Returns the new partially applied function.
             * @example
             *
             * function greet(greeting, name) {
             *   return greeting + ' ' + name;
             * }
             *
             * var greetFred = _.partialRight(greet, 'fred');
             * greetFred('hi');
             * // => 'hi fred'
             *
             * // Partially applied with placeholders.
             * var sayHelloTo = _.partialRight(greet, 'hello', _);
             * sayHelloTo('fred');
             * // => 'hello fred'
             */

            var partialRight = baseRest(function (func, partials) {
              var holders = replaceHolders(partials, getHolder(partialRight));
              return createWrap(func, WRAP_PARTIAL_RIGHT_FLAG, undefined, partials, holders);
            });
            /**
             * Creates a function that invokes `func` with arguments arranged according
             * to the specified `indexes` where the argument value at the first index is
             * provided as the first argument, the argument value at the second index is
             * provided as the second argument, and so on.
             *
             * @static
             * @memberOf _
             * @since 3.0.0
             * @category Function
             * @param {Function} func The function to rearrange arguments for.
             * @param {...(number|number[])} indexes The arranged argument indexes.
             * @returns {Function} Returns the new function.
             * @example
             *
             * var rearged = _.rearg(function(a, b, c) {
             *   return [a, b, c];
             * }, [2, 0, 1]);
             *
             * rearged('b', 'c', 'a')
             * // => ['a', 'b', 'c']
             */

            var rearg = flatRest(function (func, indexes) {
              return createWrap(func, WRAP_REARG_FLAG, undefined, undefined, undefined, indexes);
            });
            /**
             * Creates a function that invokes `func` with the `this` binding of the
             * created function and arguments from `start` and beyond provided as
             * an array.
             *
             * **Note:** This method is based on the
             * [rest parameter](https://mdn.io/rest_parameters).
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Function
             * @param {Function} func The function to apply a rest parameter to.
             * @param {number} [start=func.length-1] The start position of the rest parameter.
             * @returns {Function} Returns the new function.
             * @example
             *
             * var say = _.rest(function(what, names) {
             *   return what + ' ' + _.initial(names).join(', ') +
             *     (_.size(names) > 1 ? ', & ' : '') + _.last(names);
             * });
             *
             * say('hello', 'fred', 'barney', 'pebbles');
             * // => 'hello fred, barney, & pebbles'
             */

            function rest(func, start) {
              if (typeof func != 'function') {
                throw new TypeError(FUNC_ERROR_TEXT);
              }

              start = start === undefined ? start : toInteger(start);
              return baseRest(func, start);
            }
            /**
             * Creates a function that invokes `func` with the `this` binding of the
             * create function and an array of arguments much like
             * [`Function#apply`](http://www.ecma-international.org/ecma-262/7.0/#sec-function.prototype.apply).
             *
             * **Note:** This method is based on the
             * [spread operator](https://mdn.io/spread_operator).
             *
             * @static
             * @memberOf _
             * @since 3.2.0
             * @category Function
             * @param {Function} func The function to spread arguments over.
             * @param {number} [start=0] The start position of the spread.
             * @returns {Function} Returns the new function.
             * @example
             *
             * var say = _.spread(function(who, what) {
             *   return who + ' says ' + what;
             * });
             *
             * say(['fred', 'hello']);
             * // => 'fred says hello'
             *
             * var numbers = Promise.all([
             *   Promise.resolve(40),
             *   Promise.resolve(36)
             * ]);
             *
             * numbers.then(_.spread(function(x, y) {
             *   return x + y;
             * }));
             * // => a Promise of 76
             */


            function spread(func, start) {
              if (typeof func != 'function') {
                throw new TypeError(FUNC_ERROR_TEXT);
              }

              start = start == null ? 0 : nativeMax(toInteger(start), 0);
              return baseRest(function (args) {
                var array = args[start],
                    otherArgs = castSlice(args, 0, start);

                if (array) {
                  arrayPush(otherArgs, array);
                }

                return apply(func, this, otherArgs);
              });
            }
            /**
             * Creates a throttled function that only invokes `func` at most once per
             * every `wait` milliseconds. The throttled function comes with a `cancel`
             * method to cancel delayed `func` invocations and a `flush` method to
             * immediately invoke them. Provide `options` to indicate whether `func`
             * should be invoked on the leading and/or trailing edge of the `wait`
             * timeout. The `func` is invoked with the last arguments provided to the
             * throttled function. Subsequent calls to the throttled function return the
             * result of the last `func` invocation.
             *
             * **Note:** If `leading` and `trailing` options are `true`, `func` is
             * invoked on the trailing edge of the timeout only if the throttled function
             * is invoked more than once during the `wait` timeout.
             *
             * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
             * until to the next tick, similar to `setTimeout` with a timeout of `0`.
             *
             * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
             * for details over the differences between `_.throttle` and `_.debounce`.
             *
             * @static
             * @memberOf _
             * @since 0.1.0
             * @category Function
             * @param {Function} func The function to throttle.
             * @param {number} [wait=0] The number of milliseconds to throttle invocations to.
             * @param {Object} [options={}] The options object.
             * @param {boolean} [options.leading=true]
             *  Specify invoking on the leading edge of the timeout.
             * @param {boolean} [options.trailing=true]
             *  Specify invoking on the trailing edge of the timeout.
             * @returns {Function} Returns the new throttled function.
             * @example
             *
             * // Avoid excessively updating the position while scrolling.
             * jQuery(window).on('scroll', _.throttle(updatePosition, 100));
             *
             * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
             * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
             * jQuery(element).on('click', throttled);
             *
             * // Cancel the trailing throttled invocation.
             * jQuery(window).on('popstate', throttled.cancel);
             */


            function throttle(func, wait, options) {
              var leading = true,
                  trailing = true;

              if (typeof func != 'function') {
                throw new TypeError(FUNC_ERROR_TEXT);
              }

              if (isObject(options)) {
                leading = 'leading' in options ? !!options.leading : leading;
                trailing = 'trailing' in options ? !!options.trailing : trailing;
              }

              return debounce(func, wait, {
                'leading': leading,
                'maxWait': wait,
                'trailing': trailing
              });
            }
            /**
             * Creates a function that accepts up to one argument, ignoring any
             * additional arguments.
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Function
             * @param {Function} func The function to cap arguments for.
             * @returns {Function} Returns the new capped function.
             * @example
             *
             * _.map(['6', '8', '10'], _.unary(parseInt));
             * // => [6, 8, 10]
             */


            function unary(func) {
              return ary(func, 1);
            }
            /**
             * Creates a function that provides `value` to `wrapper` as its first
             * argument. Any additional arguments provided to the function are appended
             * to those provided to the `wrapper`. The wrapper is invoked with the `this`
             * binding of the created function.
             *
             * @static
             * @memberOf _
             * @since 0.1.0
             * @category Function
             * @param {*} value The value to wrap.
             * @param {Function} [wrapper=identity] The wrapper function.
             * @returns {Function} Returns the new function.
             * @example
             *
             * var p = _.wrap(_.escape, function(func, text) {
             *   return '<p>' + func(text) + '</p>';
             * });
             *
             * p('fred, barney, & pebbles');
             * // => '<p>fred, barney, &amp; pebbles</p>'
             */


            function wrap(value, wrapper) {
              return partial(castFunction(wrapper), value);
            }
            /*------------------------------------------------------------------------*/

            /**
             * Casts `value` as an array if it's not one.
             *
             * @static
             * @memberOf _
             * @since 4.4.0
             * @category Lang
             * @param {*} value The value to inspect.
             * @returns {Array} Returns the cast array.
             * @example
             *
             * _.castArray(1);
             * // => [1]
             *
             * _.castArray({ 'a': 1 });
             * // => [{ 'a': 1 }]
             *
             * _.castArray('abc');
             * // => ['abc']
             *
             * _.castArray(null);
             * // => [null]
             *
             * _.castArray(undefined);
             * // => [undefined]
             *
             * _.castArray();
             * // => []
             *
             * var array = [1, 2, 3];
             * console.log(_.castArray(array) === array);
             * // => true
             */


            function castArray() {
              if (!arguments.length) {
                return [];
              }

              var value = arguments[0];
              return isArray(value) ? value : [value];
            }
            /**
             * Creates a shallow clone of `value`.
             *
             * **Note:** This method is loosely based on the
             * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)
             * and supports cloning arrays, array buffers, booleans, date objects, maps,
             * numbers, `Object` objects, regexes, sets, strings, symbols, and typed
             * arrays. The own enumerable properties of `arguments` objects are cloned
             * as plain objects. An empty object is returned for uncloneable values such
             * as error objects, functions, DOM nodes, and WeakMaps.
             *
             * @static
             * @memberOf _
             * @since 0.1.0
             * @category Lang
             * @param {*} value The value to clone.
             * @returns {*} Returns the cloned value.
             * @see _.cloneDeep
             * @example
             *
             * var objects = [{ 'a': 1 }, { 'b': 2 }];
             *
             * var shallow = _.clone(objects);
             * console.log(shallow[0] === objects[0]);
             * // => true
             */


            function clone(value) {
              return baseClone(value, CLONE_SYMBOLS_FLAG);
            }
            /**
             * This method is like `_.clone` except that it accepts `customizer` which
             * is invoked to produce the cloned value. If `customizer` returns `undefined`,
             * cloning is handled by the method instead. The `customizer` is invoked with
             * up to four arguments; (value [, index|key, object, stack]).
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Lang
             * @param {*} value The value to clone.
             * @param {Function} [customizer] The function to customize cloning.
             * @returns {*} Returns the cloned value.
             * @see _.cloneDeepWith
             * @example
             *
             * function customizer(value) {
             *   if (_.isElement(value)) {
             *     return value.cloneNode(false);
             *   }
             * }
             *
             * var el = _.cloneWith(document.body, customizer);
             *
             * console.log(el === document.body);
             * // => false
             * console.log(el.nodeName);
             * // => 'BODY'
             * console.log(el.childNodes.length);
             * // => 0
             */


            function cloneWith(value, customizer) {
              customizer = typeof customizer == 'function' ? customizer : undefined;
              return baseClone(value, CLONE_SYMBOLS_FLAG, customizer);
            }
            /**
             * This method is like `_.clone` except that it recursively clones `value`.
             *
             * @static
             * @memberOf _
             * @since 1.0.0
             * @category Lang
             * @param {*} value The value to recursively clone.
             * @returns {*} Returns the deep cloned value.
             * @see _.clone
             * @example
             *
             * var objects = [{ 'a': 1 }, { 'b': 2 }];
             *
             * var deep = _.cloneDeep(objects);
             * console.log(deep[0] === objects[0]);
             * // => false
             */


            function cloneDeep(value) {
              return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
            }
            /**
             * This method is like `_.cloneWith` except that it recursively clones `value`.
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Lang
             * @param {*} value The value to recursively clone.
             * @param {Function} [customizer] The function to customize cloning.
             * @returns {*} Returns the deep cloned value.
             * @see _.cloneWith
             * @example
             *
             * function customizer(value) {
             *   if (_.isElement(value)) {
             *     return value.cloneNode(true);
             *   }
             * }
             *
             * var el = _.cloneDeepWith(document.body, customizer);
             *
             * console.log(el === document.body);
             * // => false
             * console.log(el.nodeName);
             * // => 'BODY'
             * console.log(el.childNodes.length);
             * // => 20
             */


            function cloneDeepWith(value, customizer) {
              customizer = typeof customizer == 'function' ? customizer : undefined;
              return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG, customizer);
            }
            /**
             * Checks if `object` conforms to `source` by invoking the predicate
             * properties of `source` with the corresponding property values of `object`.
             *
             * **Note:** This method is equivalent to `_.conforms` when `source` is
             * partially applied.
             *
             * @static
             * @memberOf _
             * @since 4.14.0
             * @category Lang
             * @param {Object} object The object to inspect.
             * @param {Object} source The object of property predicates to conform to.
             * @returns {boolean} Returns `true` if `object` conforms, else `false`.
             * @example
             *
             * var object = { 'a': 1, 'b': 2 };
             *
             * _.conformsTo(object, { 'b': function(n) { return n > 1; } });
             * // => true
             *
             * _.conformsTo(object, { 'b': function(n) { return n > 2; } });
             * // => false
             */


            function conformsTo(object, source) {
              return source == null || baseConformsTo(object, source, keys(source));
            }
            /**
             * Performs a
             * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
             * comparison between two values to determine if they are equivalent.
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Lang
             * @param {*} value The value to compare.
             * @param {*} other The other value to compare.
             * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
             * @example
             *
             * var object = { 'a': 1 };
             * var other = { 'a': 1 };
             *
             * _.eq(object, object);
             * // => true
             *
             * _.eq(object, other);
             * // => false
             *
             * _.eq('a', 'a');
             * // => true
             *
             * _.eq('a', Object('a'));
             * // => false
             *
             * _.eq(NaN, NaN);
             * // => true
             */


            function eq(value, other) {
              return value === other || value !== value && other !== other;
            }
            /**
             * Checks if `value` is greater than `other`.
             *
             * @static
             * @memberOf _
             * @since 3.9.0
             * @category Lang
             * @param {*} value The value to compare.
             * @param {*} other The other value to compare.
             * @returns {boolean} Returns `true` if `value` is greater than `other`,
             *  else `false`.
             * @see _.lt
             * @example
             *
             * _.gt(3, 1);
             * // => true
             *
             * _.gt(3, 3);
             * // => false
             *
             * _.gt(1, 3);
             * // => false
             */


            var gt = createRelationalOperation(baseGt);
            /**
             * Checks if `value` is greater than or equal to `other`.
             *
             * @static
             * @memberOf _
             * @since 3.9.0
             * @category Lang
             * @param {*} value The value to compare.
             * @param {*} other The other value to compare.
             * @returns {boolean} Returns `true` if `value` is greater than or equal to
             *  `other`, else `false`.
             * @see _.lte
             * @example
             *
             * _.gte(3, 1);
             * // => true
             *
             * _.gte(3, 3);
             * // => true
             *
             * _.gte(1, 3);
             * // => false
             */

            var gte = createRelationalOperation(function (value, other) {
              return value >= other;
            });
            /**
             * Checks if `value` is likely an `arguments` object.
             *
             * @static
             * @memberOf _
             * @since 0.1.0
             * @category Lang
             * @param {*} value The value to check.
             * @returns {boolean} Returns `true` if `value` is an `arguments` object,
             *  else `false`.
             * @example
             *
             * _.isArguments(function() { return arguments; }());
             * // => true
             *
             * _.isArguments([1, 2, 3]);
             * // => false
             */

            var isArguments = baseIsArguments(function () {
              return arguments;
            }()) ? baseIsArguments : function (value) {
              return isObjectLike(value) && hasOwnProperty.call(value, 'callee') && !propertyIsEnumerable.call(value, 'callee');
            };
            /**
             * Checks if `value` is classified as an `Array` object.
             *
             * @static
             * @memberOf _
             * @since 0.1.0
             * @category Lang
             * @param {*} value The value to check.
             * @returns {boolean} Returns `true` if `value` is an array, else `false`.
             * @example
             *
             * _.isArray([1, 2, 3]);
             * // => true
             *
             * _.isArray(document.body.children);
             * // => false
             *
             * _.isArray('abc');
             * // => false
             *
             * _.isArray(_.noop);
             * // => false
             */

            var isArray = Array.isArray;
            /**
             * Checks if `value` is classified as an `ArrayBuffer` object.
             *
             * @static
             * @memberOf _
             * @since 4.3.0
             * @category Lang
             * @param {*} value The value to check.
             * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.
             * @example
             *
             * _.isArrayBuffer(new ArrayBuffer(2));
             * // => true
             *
             * _.isArrayBuffer(new Array(2));
             * // => false
             */

            var isArrayBuffer = nodeIsArrayBuffer ? baseUnary(nodeIsArrayBuffer) : baseIsArrayBuffer;
            /**
             * Checks if `value` is array-like. A value is considered array-like if it's
             * not a function and has a `value.length` that's an integer greater than or
             * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Lang
             * @param {*} value The value to check.
             * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
             * @example
             *
             * _.isArrayLike([1, 2, 3]);
             * // => true
             *
             * _.isArrayLike(document.body.children);
             * // => true
             *
             * _.isArrayLike('abc');
             * // => true
             *
             * _.isArrayLike(_.noop);
             * // => false
             */

            function isArrayLike(value) {
              return value != null && isLength(value.length) && !isFunction(value);
            }
            /**
             * This method is like `_.isArrayLike` except that it also checks if `value`
             * is an object.
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Lang
             * @param {*} value The value to check.
             * @returns {boolean} Returns `true` if `value` is an array-like object,
             *  else `false`.
             * @example
             *
             * _.isArrayLikeObject([1, 2, 3]);
             * // => true
             *
             * _.isArrayLikeObject(document.body.children);
             * // => true
             *
             * _.isArrayLikeObject('abc');
             * // => false
             *
             * _.isArrayLikeObject(_.noop);
             * // => false
             */


            function isArrayLikeObject(value) {
              return isObjectLike(value) && isArrayLike(value);
            }
            /**
             * Checks if `value` is classified as a boolean primitive or object.
             *
             * @static
             * @memberOf _
             * @since 0.1.0
             * @category Lang
             * @param {*} value The value to check.
             * @returns {boolean} Returns `true` if `value` is a boolean, else `false`.
             * @example
             *
             * _.isBoolean(false);
             * // => true
             *
             * _.isBoolean(null);
             * // => false
             */


            function isBoolean(value) {
              return value === true || value === false || isObjectLike(value) && baseGetTag(value) == boolTag;
            }
            /**
             * Checks if `value` is a buffer.
             *
             * @static
             * @memberOf _
             * @since 4.3.0
             * @category Lang
             * @param {*} value The value to check.
             * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
             * @example
             *
             * _.isBuffer(new Buffer(2));
             * // => true
             *
             * _.isBuffer(new Uint8Array(2));
             * // => false
             */


            var isBuffer = nativeIsBuffer || stubFalse;
            /**
             * Checks if `value` is classified as a `Date` object.
             *
             * @static
             * @memberOf _
             * @since 0.1.0
             * @category Lang
             * @param {*} value The value to check.
             * @returns {boolean} Returns `true` if `value` is a date object, else `false`.
             * @example
             *
             * _.isDate(new Date);
             * // => true
             *
             * _.isDate('Mon April 23 2012');
             * // => false
             */

            var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate;
            /**
             * Checks if `value` is likely a DOM element.
             *
             * @static
             * @memberOf _
             * @since 0.1.0
             * @category Lang
             * @param {*} value The value to check.
             * @returns {boolean} Returns `true` if `value` is a DOM element, else `false`.
             * @example
             *
             * _.isElement(document.body);
             * // => true
             *
             * _.isElement('<body>');
             * // => false
             */

            function isElement(value) {
              return isObjectLike(value) && value.nodeType === 1 && !isPlainObject(value);
            }
            /**
             * Checks if `value` is an empty object, collection, map, or set.
             *
             * Objects are considered empty if they have no own enumerable string keyed
             * properties.
             *
             * Array-like values such as `arguments` objects, arrays, buffers, strings, or
             * jQuery-like collections are considered empty if they have a `length` of `0`.
             * Similarly, maps and sets are considered empty if they have a `size` of `0`.
             *
             * @static
             * @memberOf _
             * @since 0.1.0
             * @category Lang
             * @param {*} value The value to check.
             * @returns {boolean} Returns `true` if `value` is empty, else `false`.
             * @example
             *
             * _.isEmpty(null);
             * // => true
             *
             * _.isEmpty(true);
             * // => true
             *
             * _.isEmpty(1);
             * // => true
             *
             * _.isEmpty([1, 2, 3]);
             * // => false
             *
             * _.isEmpty({ 'a': 1 });
             * // => false
             */


            function isEmpty(value) {
              if (value == null) {
                return true;
              }

              if (isArrayLike(value) && (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' || isBuffer(value) || isTypedArray(value) || isArguments(value))) {
                return !value.length;
              }

              var tag = getTag(value);

              if (tag == mapTag || tag == setTag) {
                return !value.size;
              }

              if (isPrototype(value)) {
                return !baseKeys(value).length;
              }

              for (var key in value) {
                if (hasOwnProperty.call(value, key)) {
                  return false;
                }
              }

              return true;
            }
            /**
             * Performs a deep comparison between two values to determine if they are
             * equivalent.
             *
             * **Note:** This method supports comparing arrays, array buffers, booleans,
             * date objects, error objects, maps, numbers, `Object` objects, regexes,
             * sets, strings, symbols, and typed arrays. `Object` objects are compared
             * by their own, not inherited, enumerable properties. Functions and DOM
             * nodes are compared by strict equality, i.e. `===`.
             *
             * @static
             * @memberOf _
             * @since 0.1.0
             * @category Lang
             * @param {*} value The value to compare.
             * @param {*} other The other value to compare.
             * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
             * @example
             *
             * var object = { 'a': 1 };
             * var other = { 'a': 1 };
             *
             * _.isEqual(object, other);
             * // => true
             *
             * object === other;
             * // => false
             */


            function isEqual(value, other) {
              return baseIsEqual(value, other);
            }
            /**
             * This method is like `_.isEqual` except that it accepts `customizer` which
             * is invoked to compare values. If `customizer` returns `undefined`, comparisons
             * are handled by the method instead. The `customizer` is invoked with up to
             * six arguments: (objValue, othValue [, index|key, object, other, stack]).
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Lang
             * @param {*} value The value to compare.
             * @param {*} other The other value to compare.
             * @param {Function} [customizer] The function to customize comparisons.
             * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
             * @example
             *
             * function isGreeting(value) {
             *   return /^h(?:i|ello)$/.test(value);
             * }
             *
             * function customizer(objValue, othValue) {
             *   if (isGreeting(objValue) && isGreeting(othValue)) {
             *     return true;
             *   }
             * }
             *
             * var array = ['hello', 'goodbye'];
             * var other = ['hi', 'goodbye'];
             *
             * _.isEqualWith(array, other, customizer);
             * // => true
             */


            function isEqualWith(value, other, customizer) {
              customizer = typeof customizer == 'function' ? customizer : undefined;
              var result = customizer ? customizer(value, other) : undefined;
              return result === undefined ? baseIsEqual(value, other, undefined, customizer) : !!result;
            }
            /**
             * Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`,
             * `SyntaxError`, `TypeError`, or `URIError` object.
             *
             * @static
             * @memberOf _
             * @since 3.0.0
             * @category Lang
             * @param {*} value The value to check.
             * @returns {boolean} Returns `true` if `value` is an error object, else `false`.
             * @example
             *
             * _.isError(new Error);
             * // => true
             *
             * _.isError(Error);
             * // => false
             */


            function isError(value) {
              if (!isObjectLike(value)) {
                return false;
              }

              var tag = baseGetTag(value);
              return tag == errorTag || tag == domExcTag || typeof value.message == 'string' && typeof value.name == 'string' && !isPlainObject(value);
            }
            /**
             * Checks if `value` is a finite primitive number.
             *
             * **Note:** This method is based on
             * [`Number.isFinite`](https://mdn.io/Number/isFinite).
             *
             * @static
             * @memberOf _
             * @since 0.1.0
             * @category Lang
             * @param {*} value The value to check.
             * @returns {boolean} Returns `true` if `value` is a finite number, else `false`.
             * @example
             *
             * _.isFinite(3);
             * // => true
             *
             * _.isFinite(Number.MIN_VALUE);
             * // => true
             *
             * _.isFinite(Infinity);
             * // => false
             *
             * _.isFinite('3');
             * // => false
             */


            function isFinite(value) {
              return typeof value == 'number' && nativeIsFinite(value);
            }
            /**
             * Checks if `value` is classified as a `Function` object.
             *
             * @static
             * @memberOf _
             * @since 0.1.0
             * @category Lang
             * @param {*} value The value to check.
             * @returns {boolean} Returns `true` if `value` is a function, else `false`.
             * @example
             *
             * _.isFunction(_);
             * // => true
             *
             * _.isFunction(/abc/);
             * // => false
             */


            function isFunction(value) {
              if (!isObject(value)) {
                return false;
              } // The use of `Object#toString` avoids issues with the `typeof` operator
              // in Safari 9 which returns 'object' for typed arrays and other constructors.


              var tag = baseGetTag(value);
              return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
            }
            /**
             * Checks if `value` is an integer.
             *
             * **Note:** This method is based on
             * [`Number.isInteger`](https://mdn.io/Number/isInteger).
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Lang
             * @param {*} value The value to check.
             * @returns {boolean} Returns `true` if `value` is an integer, else `false`.
             * @example
             *
             * _.isInteger(3);
             * // => true
             *
             * _.isInteger(Number.MIN_VALUE);
             * // => false
             *
             * _.isInteger(Infinity);
             * // => false
             *
             * _.isInteger('3');
             * // => false
             */


            function isInteger(value) {
              return typeof value == 'number' && value == toInteger(value);
            }
            /**
             * Checks if `value` is a valid array-like length.
             *
             * **Note:** This method is loosely based on
             * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Lang
             * @param {*} value The value to check.
             * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
             * @example
             *
             * _.isLength(3);
             * // => true
             *
             * _.isLength(Number.MIN_VALUE);
             * // => false
             *
             * _.isLength(Infinity);
             * // => false
             *
             * _.isLength('3');
             * // => false
             */


            function isLength(value) {
              return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
            }
            /**
             * Checks if `value` is the
             * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
             * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
             *
             * @static
             * @memberOf _
             * @since 0.1.0
             * @category Lang
             * @param {*} value The value to check.
             * @returns {boolean} Returns `true` if `value` is an object, else `false`.
             * @example
             *
             * _.isObject({});
             * // => true
             *
             * _.isObject([1, 2, 3]);
             * // => true
             *
             * _.isObject(_.noop);
             * // => true
             *
             * _.isObject(null);
             * // => false
             */


            function isObject(value) {
              var type = typeof value;
              return value != null && (type == 'object' || type == 'function');
            }
            /**
             * Checks if `value` is object-like. A value is object-like if it's not `null`
             * and has a `typeof` result of "object".
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Lang
             * @param {*} value The value to check.
             * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
             * @example
             *
             * _.isObjectLike({});
             * // => true
             *
             * _.isObjectLike([1, 2, 3]);
             * // => true
             *
             * _.isObjectLike(_.noop);
             * // => false
             *
             * _.isObjectLike(null);
             * // => false
             */


            function isObjectLike(value) {
              return value != null && typeof value == 'object';
            }
            /**
             * Checks if `value` is classified as a `Map` object.
             *
             * @static
             * @memberOf _
             * @since 4.3.0
             * @category Lang
             * @param {*} value The value to check.
             * @returns {boolean} Returns `true` if `value` is a map, else `false`.
             * @example
             *
             * _.isMap(new Map);
             * // => true
             *
             * _.isMap(new WeakMap);
             * // => false
             */


            var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
            /**
             * Performs a partial deep comparison between `object` and `source` to
             * determine if `object` contains equivalent property values.
             *
             * **Note:** This method is equivalent to `_.matches` when `source` is
             * partially applied.
             *
             * Partial comparisons will match empty array and empty object `source`
             * values against any array or object value, respectively. See `_.isEqual`
             * for a list of supported value comparisons.
             *
             * @static
             * @memberOf _
             * @since 3.0.0
             * @category Lang
             * @param {Object} object The object to inspect.
             * @param {Object} source The object of property values to match.
             * @returns {boolean} Returns `true` if `object` is a match, else `false`.
             * @example
             *
             * var object = { 'a': 1, 'b': 2 };
             *
             * _.isMatch(object, { 'b': 2 });
             * // => true
             *
             * _.isMatch(object, { 'b': 1 });
             * // => false
             */

            function isMatch(object, source) {
              return object === source || baseIsMatch(object, source, getMatchData(source));
            }
            /**
             * This method is like `_.isMatch` except that it accepts `customizer` which
             * is invoked to compare values. If `customizer` returns `undefined`, comparisons
             * are handled by the method instead. The `customizer` is invoked with five
             * arguments: (objValue, srcValue, index|key, object, source).
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Lang
             * @param {Object} object The object to inspect.
             * @param {Object} source The object of property values to match.
             * @param {Function} [customizer] The function to customize comparisons.
             * @returns {boolean} Returns `true` if `object` is a match, else `false`.
             * @example
             *
             * function isGreeting(value) {
             *   return /^h(?:i|ello)$/.test(value);
             * }
             *
             * function customizer(objValue, srcValue) {
             *   if (isGreeting(objValue) && isGreeting(srcValue)) {
             *     return true;
             *   }
             * }
             *
             * var object = { 'greeting': 'hello' };
             * var source = { 'greeting': 'hi' };
             *
             * _.isMatchWith(object, source, customizer);
             * // => true
             */


            function isMatchWith(object, source, customizer) {
              customizer = typeof customizer == 'function' ? customizer : undefined;
              return baseIsMatch(object, source, getMatchData(source), customizer);
            }
            /**
             * Checks if `value` is `NaN`.
             *
             * **Note:** This method is based on
             * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as
             * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for
             * `undefined` and other non-number values.
             *
             * @static
             * @memberOf _
             * @since 0.1.0
             * @category Lang
             * @param {*} value The value to check.
             * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
             * @example
             *
             * _.isNaN(NaN);
             * // => true
             *
             * _.isNaN(new Number(NaN));
             * // => true
             *
             * isNaN(undefined);
             * // => true
             *
             * _.isNaN(undefined);
             * // => false
             */


            function isNaN(value) {
              // An `NaN` primitive is the only value that is not equal to itself.
              // Perform the `toStringTag` check first to avoid errors with some
              // ActiveX objects in IE.
              return isNumber(value) && value != +value;
            }
            /**
             * Checks if `value` is a pristine native function.
             *
             * **Note:** This method can't reliably detect native functions in the presence
             * of the core-js package because core-js circumvents this kind of detection.
             * Despite multiple requests, the core-js maintainer has made it clear: any
             * attempt to fix the detection will be obstructed. As a result, we're left
             * with little choice but to throw an error. Unfortunately, this also affects
             * packages, like [babel-polyfill](https://www.npmjs.com/package/babel-polyfill),
             * which rely on core-js.
             *
             * @static
             * @memberOf _
             * @since 3.0.0
             * @category Lang
             * @param {*} value The value to check.
             * @returns {boolean} Returns `true` if `value` is a native function,
             *  else `false`.
             * @example
             *
             * _.isNative(Array.prototype.push);
             * // => true
             *
             * _.isNative(_);
             * // => false
             */


            function isNative(value) {
              if (isMaskable(value)) {
                throw new Error(CORE_ERROR_TEXT);
              }

              return baseIsNative(value);
            }
            /**
             * Checks if `value` is `null`.
             *
             * @static
             * @memberOf _
             * @since 0.1.0
             * @category Lang
             * @param {*} value The value to check.
             * @returns {boolean} Returns `true` if `value` is `null`, else `false`.
             * @example
             *
             * _.isNull(null);
             * // => true
             *
             * _.isNull(void 0);
             * // => false
             */


            function isNull(value) {
              return value === null;
            }
            /**
             * Checks if `value` is `null` or `undefined`.
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Lang
             * @param {*} value The value to check.
             * @returns {boolean} Returns `true` if `value` is nullish, else `false`.
             * @example
             *
             * _.isNil(null);
             * // => true
             *
             * _.isNil(void 0);
             * // => true
             *
             * _.isNil(NaN);
             * // => false
             */


            function isNil(value) {
              return value == null;
            }
            /**
             * Checks if `value` is classified as a `Number` primitive or object.
             *
             * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are
             * classified as numbers, use the `_.isFinite` method.
             *
             * @static
             * @memberOf _
             * @since 0.1.0
             * @category Lang
             * @param {*} value The value to check.
             * @returns {boolean} Returns `true` if `value` is a number, else `false`.
             * @example
             *
             * _.isNumber(3);
             * // => true
             *
             * _.isNumber(Number.MIN_VALUE);
             * // => true
             *
             * _.isNumber(Infinity);
             * // => true
             *
             * _.isNumber('3');
             * // => false
             */


            function isNumber(value) {
              return typeof value == 'number' || isObjectLike(value) && baseGetTag(value) == numberTag;
            }
            /**
             * Checks if `value` is a plain object, that is, an object created by the
             * `Object` constructor or one with a `[[Prototype]]` of `null`.
             *
             * @static
             * @memberOf _
             * @since 0.8.0
             * @category Lang
             * @param {*} value The value to check.
             * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
             * @example
             *
             * function Foo() {
             *   this.a = 1;
             * }
             *
             * _.isPlainObject(new Foo);
             * // => false
             *
             * _.isPlainObject([1, 2, 3]);
             * // => false
             *
             * _.isPlainObject({ 'x': 0, 'y': 0 });
             * // => true
             *
             * _.isPlainObject(Object.create(null));
             * // => true
             */


            function isPlainObject(value) {
              if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
                return false;
              }

              var proto = getPrototype(value);

              if (proto === null) {
                return true;
              }

              var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
              return typeof Ctor == 'function' && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
            }
            /**
             * Checks if `value` is classified as a `RegExp` object.
             *
             * @static
             * @memberOf _
             * @since 0.1.0
             * @category Lang
             * @param {*} value The value to check.
             * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
             * @example
             *
             * _.isRegExp(/abc/);
             * // => true
             *
             * _.isRegExp('/abc/');
             * // => false
             */


            var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;
            /**
             * Checks if `value` is a safe integer. An integer is safe if it's an IEEE-754
             * double precision number which isn't the result of a rounded unsafe integer.
             *
             * **Note:** This method is based on
             * [`Number.isSafeInteger`](https://mdn.io/Number/isSafeInteger).
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Lang
             * @param {*} value The value to check.
             * @returns {boolean} Returns `true` if `value` is a safe integer, else `false`.
             * @example
             *
             * _.isSafeInteger(3);
             * // => true
             *
             * _.isSafeInteger(Number.MIN_VALUE);
             * // => false
             *
             * _.isSafeInteger(Infinity);
             * // => false
             *
             * _.isSafeInteger('3');
             * // => false
             */

            function isSafeInteger(value) {
              return isInteger(value) && value >= -MAX_SAFE_INTEGER && value <= MAX_SAFE_INTEGER;
            }
            /**
             * Checks if `value` is classified as a `Set` object.
             *
             * @static
             * @memberOf _
             * @since 4.3.0
             * @category Lang
             * @param {*} value The value to check.
             * @returns {boolean} Returns `true` if `value` is a set, else `false`.
             * @example
             *
             * _.isSet(new Set);
             * // => true
             *
             * _.isSet(new WeakSet);
             * // => false
             */


            var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
            /**
             * Checks if `value` is classified as a `String` primitive or object.
             *
             * @static
             * @since 0.1.0
             * @memberOf _
             * @category Lang
             * @param {*} value The value to check.
             * @returns {boolean} Returns `true` if `value` is a string, else `false`.
             * @example
             *
             * _.isString('abc');
             * // => true
             *
             * _.isString(1);
             * // => false
             */

            function isString(value) {
              return typeof value == 'string' || !isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag;
            }
            /**
             * Checks if `value` is classified as a `Symbol` primitive or object.
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Lang
             * @param {*} value The value to check.
             * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
             * @example
             *
             * _.isSymbol(Symbol.iterator);
             * // => true
             *
             * _.isSymbol('abc');
             * // => false
             */


            function isSymbol(value) {
              return typeof value == 'symbol' || isObjectLike(value) && baseGetTag(value) == symbolTag;
            }
            /**
             * Checks if `value` is classified as a typed array.
             *
             * @static
             * @memberOf _
             * @since 3.0.0
             * @category Lang
             * @param {*} value The value to check.
             * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
             * @example
             *
             * _.isTypedArray(new Uint8Array);
             * // => true
             *
             * _.isTypedArray([]);
             * // => false
             */


            var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
            /**
             * Checks if `value` is `undefined`.
             *
             * @static
             * @since 0.1.0
             * @memberOf _
             * @category Lang
             * @param {*} value The value to check.
             * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
             * @example
             *
             * _.isUndefined(void 0);
             * // => true
             *
             * _.isUndefined(null);
             * // => false
             */

            function isUndefined(value) {
              return value === undefined;
            }
            /**
             * Checks if `value` is classified as a `WeakMap` object.
             *
             * @static
             * @memberOf _
             * @since 4.3.0
             * @category Lang
             * @param {*} value The value to check.
             * @returns {boolean} Returns `true` if `value` is a weak map, else `false`.
             * @example
             *
             * _.isWeakMap(new WeakMap);
             * // => true
             *
             * _.isWeakMap(new Map);
             * // => false
             */


            function isWeakMap(value) {
              return isObjectLike(value) && getTag(value) == weakMapTag;
            }
            /**
             * Checks if `value` is classified as a `WeakSet` object.
             *
             * @static
             * @memberOf _
             * @since 4.3.0
             * @category Lang
             * @param {*} value The value to check.
             * @returns {boolean} Returns `true` if `value` is a weak set, else `false`.
             * @example
             *
             * _.isWeakSet(new WeakSet);
             * // => true
             *
             * _.isWeakSet(new Set);
             * // => false
             */


            function isWeakSet(value) {
              return isObjectLike(value) && baseGetTag(value) == weakSetTag;
            }
            /**
             * Checks if `value` is less than `other`.
             *
             * @static
             * @memberOf _
             * @since 3.9.0
             * @category Lang
             * @param {*} value The value to compare.
             * @param {*} other The other value to compare.
             * @returns {boolean} Returns `true` if `value` is less than `other`,
             *  else `false`.
             * @see _.gt
             * @example
             *
             * _.lt(1, 3);
             * // => true
             *
             * _.lt(3, 3);
             * // => false
             *
             * _.lt(3, 1);
             * // => false
             */


            var lt = createRelationalOperation(baseLt);
            /**
             * Checks if `value` is less than or equal to `other`.
             *
             * @static
             * @memberOf _
             * @since 3.9.0
             * @category Lang
             * @param {*} value The value to compare.
             * @param {*} other The other value to compare.
             * @returns {boolean} Returns `true` if `value` is less than or equal to
             *  `other`, else `false`.
             * @see _.gte
             * @example
             *
             * _.lte(1, 3);
             * // => true
             *
             * _.lte(3, 3);
             * // => true
             *
             * _.lte(3, 1);
             * // => false
             */

            var lte = createRelationalOperation(function (value, other) {
              return value <= other;
            });
            /**
             * Converts `value` to an array.
             *
             * @static
             * @since 0.1.0
             * @memberOf _
             * @category Lang
             * @param {*} value The value to convert.
             * @returns {Array} Returns the converted array.
             * @example
             *
             * _.toArray({ 'a': 1, 'b': 2 });
             * // => [1, 2]
             *
             * _.toArray('abc');
             * // => ['a', 'b', 'c']
             *
             * _.toArray(1);
             * // => []
             *
             * _.toArray(null);
             * // => []
             */

            function toArray(value) {
              if (!value) {
                return [];
              }

              if (isArrayLike(value)) {
                return isString(value) ? stringToArray(value) : copyArray(value);
              }

              if (symIterator && value[symIterator]) {
                return iteratorToArray(value[symIterator]());
              }

              var tag = getTag(value),
                  func = tag == mapTag ? mapToArray : tag == setTag ? setToArray : values;
              return func(value);
            }
            /**
             * Converts `value` to a finite number.
             *
             * @static
             * @memberOf _
             * @since 4.12.0
             * @category Lang
             * @param {*} value The value to convert.
             * @returns {number} Returns the converted number.
             * @example
             *
             * _.toFinite(3.2);
             * // => 3.2
             *
             * _.toFinite(Number.MIN_VALUE);
             * // => 5e-324
             *
             * _.toFinite(Infinity);
             * // => 1.7976931348623157e+308
             *
             * _.toFinite('3.2');
             * // => 3.2
             */


            function toFinite(value) {
              if (!value) {
                return value === 0 ? value : 0;
              }

              value = toNumber(value);

              if (value === INFINITY || value === -INFINITY) {
                var sign = value < 0 ? -1 : 1;
                return sign * MAX_INTEGER;
              }

              return value === value ? value : 0;
            }
            /**
             * Converts `value` to an integer.
             *
             * **Note:** This method is loosely based on
             * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Lang
             * @param {*} value The value to convert.
             * @returns {number} Returns the converted integer.
             * @example
             *
             * _.toInteger(3.2);
             * // => 3
             *
             * _.toInteger(Number.MIN_VALUE);
             * // => 0
             *
             * _.toInteger(Infinity);
             * // => 1.7976931348623157e+308
             *
             * _.toInteger('3.2');
             * // => 3
             */


            function toInteger(value) {
              var result = toFinite(value),
                  remainder = result % 1;
              return result === result ? remainder ? result - remainder : result : 0;
            }
            /**
             * Converts `value` to an integer suitable for use as the length of an
             * array-like object.
             *
             * **Note:** This method is based on
             * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Lang
             * @param {*} value The value to convert.
             * @returns {number} Returns the converted integer.
             * @example
             *
             * _.toLength(3.2);
             * // => 3
             *
             * _.toLength(Number.MIN_VALUE);
             * // => 0
             *
             * _.toLength(Infinity);
             * // => 4294967295
             *
             * _.toLength('3.2');
             * // => 3
             */


            function toLength(value) {
              return value ? baseClamp(toInteger(value), 0, MAX_ARRAY_LENGTH) : 0;
            }
            /**
             * Converts `value` to a number.
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Lang
             * @param {*} value The value to process.
             * @returns {number} Returns the number.
             * @example
             *
             * _.toNumber(3.2);
             * // => 3.2
             *
             * _.toNumber(Number.MIN_VALUE);
             * // => 5e-324
             *
             * _.toNumber(Infinity);
             * // => Infinity
             *
             * _.toNumber('3.2');
             * // => 3.2
             */


            function toNumber(value) {
              if (typeof value == 'number') {
                return value;
              }

              if (isSymbol(value)) {
                return NAN;
              }

              if (isObject(value)) {
                var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
                value = isObject(other) ? other + '' : other;
              }

              if (typeof value != 'string') {
                return value === 0 ? value : +value;
              }

              value = value.replace(reTrim, '');
              var isBinary = reIsBinary.test(value);
              return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
            }
            /**
             * Converts `value` to a plain object flattening inherited enumerable string
             * keyed properties of `value` to own properties of the plain object.
             *
             * @static
             * @memberOf _
             * @since 3.0.0
             * @category Lang
             * @param {*} value The value to convert.
             * @returns {Object} Returns the converted plain object.
             * @example
             *
             * function Foo() {
             *   this.b = 2;
             * }
             *
             * Foo.prototype.c = 3;
             *
             * _.assign({ 'a': 1 }, new Foo);
             * // => { 'a': 1, 'b': 2 }
             *
             * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
             * // => { 'a': 1, 'b': 2, 'c': 3 }
             */


            function toPlainObject(value) {
              return copyObject(value, keysIn(value));
            }
            /**
             * Converts `value` to a safe integer. A safe integer can be compared and
             * represented correctly.
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Lang
             * @param {*} value The value to convert.
             * @returns {number} Returns the converted integer.
             * @example
             *
             * _.toSafeInteger(3.2);
             * // => 3
             *
             * _.toSafeInteger(Number.MIN_VALUE);
             * // => 0
             *
             * _.toSafeInteger(Infinity);
             * // => 9007199254740991
             *
             * _.toSafeInteger('3.2');
             * // => 3
             */


            function toSafeInteger(value) {
              return value ? baseClamp(toInteger(value), -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER) : value === 0 ? value : 0;
            }
            /**
             * Converts `value` to a string. An empty string is returned for `null`
             * and `undefined` values. The sign of `-0` is preserved.
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Lang
             * @param {*} value The value to convert.
             * @returns {string} Returns the converted string.
             * @example
             *
             * _.toString(null);
             * // => ''
             *
             * _.toString(-0);
             * // => '-0'
             *
             * _.toString([1, 2, 3]);
             * // => '1,2,3'
             */


            function toString(value) {
              return value == null ? '' : baseToString(value);
            }
            /*------------------------------------------------------------------------*/

            /**
             * Assigns own enumerable string keyed properties of source objects to the
             * destination object. Source objects are applied from left to right.
             * Subsequent sources overwrite property assignments of previous sources.
             *
             * **Note:** This method mutates `object` and is loosely based on
             * [`Object.assign`](https://mdn.io/Object/assign).
             *
             * @static
             * @memberOf _
             * @since 0.10.0
             * @category Object
             * @param {Object} object The destination object.
             * @param {...Object} [sources] The source objects.
             * @returns {Object} Returns `object`.
             * @see _.assignIn
             * @example
             *
             * function Foo() {
             *   this.a = 1;
             * }
             *
             * function Bar() {
             *   this.c = 3;
             * }
             *
             * Foo.prototype.b = 2;
             * Bar.prototype.d = 4;
             *
             * _.assign({ 'a': 0 }, new Foo, new Bar);
             * // => { 'a': 1, 'c': 3 }
             */


            var assign = createAssigner(function (object, source) {
              if (isPrototype(source) || isArrayLike(source)) {
                copyObject(source, keys(source), object);
                return;
              }

              for (var key in source) {
                if (hasOwnProperty.call(source, key)) {
                  assignValue(object, key, source[key]);
                }
              }
            });
            /**
             * This method is like `_.assign` except that it iterates over own and
             * inherited source properties.
             *
             * **Note:** This method mutates `object`.
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @alias extend
             * @category Object
             * @param {Object} object The destination object.
             * @param {...Object} [sources] The source objects.
             * @returns {Object} Returns `object`.
             * @see _.assign
             * @example
             *
             * function Foo() {
             *   this.a = 1;
             * }
             *
             * function Bar() {
             *   this.c = 3;
             * }
             *
             * Foo.prototype.b = 2;
             * Bar.prototype.d = 4;
             *
             * _.assignIn({ 'a': 0 }, new Foo, new Bar);
             * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4 }
             */

            var assignIn = createAssigner(function (object, source) {
              copyObject(source, keysIn(source), object);
            });
            /**
             * This method is like `_.assignIn` except that it accepts `customizer`
             * which is invoked to produce the assigned values. If `customizer` returns
             * `undefined`, assignment is handled by the method instead. The `customizer`
             * is invoked with five arguments: (objValue, srcValue, key, object, source).
             *
             * **Note:** This method mutates `object`.
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @alias extendWith
             * @category Object
             * @param {Object} object The destination object.
             * @param {...Object} sources The source objects.
             * @param {Function} [customizer] The function to customize assigned values.
             * @returns {Object} Returns `object`.
             * @see _.assignWith
             * @example
             *
             * function customizer(objValue, srcValue) {
             *   return _.isUndefined(objValue) ? srcValue : objValue;
             * }
             *
             * var defaults = _.partialRight(_.assignInWith, customizer);
             *
             * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
             * // => { 'a': 1, 'b': 2 }
             */

            var assignInWith = createAssigner(function (object, source, srcIndex, customizer) {
              copyObject(source, keysIn(source), object, customizer);
            });
            /**
             * This method is like `_.assign` except that it accepts `customizer`
             * which is invoked to produce the assigned values. If `customizer` returns
             * `undefined`, assignment is handled by the method instead. The `customizer`
             * is invoked with five arguments: (objValue, srcValue, key, object, source).
             *
             * **Note:** This method mutates `object`.
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Object
             * @param {Object} object The destination object.
             * @param {...Object} sources The source objects.
             * @param {Function} [customizer] The function to customize assigned values.
             * @returns {Object} Returns `object`.
             * @see _.assignInWith
             * @example
             *
             * function customizer(objValue, srcValue) {
             *   return _.isUndefined(objValue) ? srcValue : objValue;
             * }
             *
             * var defaults = _.partialRight(_.assignWith, customizer);
             *
             * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
             * // => { 'a': 1, 'b': 2 }
             */

            var assignWith = createAssigner(function (object, source, srcIndex, customizer) {
              copyObject(source, keys(source), object, customizer);
            });
            /**
             * Creates an array of values corresponding to `paths` of `object`.
             *
             * @static
             * @memberOf _
             * @since 1.0.0
             * @category Object
             * @param {Object} object The object to iterate over.
             * @param {...(string|string[])} [paths] The property paths to pick.
             * @returns {Array} Returns the picked values.
             * @example
             *
             * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };
             *
             * _.at(object, ['a[0].b.c', 'a[1]']);
             * // => [3, 4]
             */

            var at = flatRest(baseAt);
            /**
             * Creates an object that inherits from the `prototype` object. If a
             * `properties` object is given, its own enumerable string keyed properties
             * are assigned to the created object.
             *
             * @static
             * @memberOf _
             * @since 2.3.0
             * @category Object
             * @param {Object} prototype The object to inherit from.
             * @param {Object} [properties] The properties to assign to the object.
             * @returns {Object} Returns the new object.
             * @example
             *
             * function Shape() {
             *   this.x = 0;
             *   this.y = 0;
             * }
             *
             * function Circle() {
             *   Shape.call(this);
             * }
             *
             * Circle.prototype = _.create(Shape.prototype, {
             *   'constructor': Circle
             * });
             *
             * var circle = new Circle;
             * circle instanceof Circle;
             * // => true
             *
             * circle instanceof Shape;
             * // => true
             */

            function create(prototype, properties) {
              var result = baseCreate(prototype);
              return properties == null ? result : baseAssign(result, properties);
            }
            /**
             * Assigns own and inherited enumerable string keyed properties of source
             * objects to the destination object for all destination properties that
             * resolve to `undefined`. Source objects are applied from left to right.
             * Once a property is set, additional values of the same property are ignored.
             *
             * **Note:** This method mutates `object`.
             *
             * @static
             * @since 0.1.0
             * @memberOf _
             * @category Object
             * @param {Object} object The destination object.
             * @param {...Object} [sources] The source objects.
             * @returns {Object} Returns `object`.
             * @see _.defaultsDeep
             * @example
             *
             * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
             * // => { 'a': 1, 'b': 2 }
             */


            var defaults = baseRest(function (object, sources) {
              object = Object(object);
              var index = -1;
              var length = sources.length;
              var guard = length > 2 ? sources[2] : undefined;

              if (guard && isIterateeCall(sources[0], sources[1], guard)) {
                length = 1;
              }

              while (++index < length) {
                var source = sources[index];
                var props = keysIn(source);
                var propsIndex = -1;
                var propsLength = props.length;

                while (++propsIndex < propsLength) {
                  var key = props[propsIndex];
                  var value = object[key];

                  if (value === undefined || eq(value, objectProto[key]) && !hasOwnProperty.call(object, key)) {
                    object[key] = source[key];
                  }
                }
              }

              return object;
            });
            /**
             * This method is like `_.defaults` except that it recursively assigns
             * default properties.
             *
             * **Note:** This method mutates `object`.
             *
             * @static
             * @memberOf _
             * @since 3.10.0
             * @category Object
             * @param {Object} object The destination object.
             * @param {...Object} [sources] The source objects.
             * @returns {Object} Returns `object`.
             * @see _.defaults
             * @example
             *
             * _.defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } });
             * // => { 'a': { 'b': 2, 'c': 3 } }
             */

            var defaultsDeep = baseRest(function (args) {
              args.push(undefined, customDefaultsMerge);
              return apply(mergeWith, undefined, args);
            });
            /**
             * This method is like `_.find` except that it returns the key of the first
             * element `predicate` returns truthy for instead of the element itself.
             *
             * @static
             * @memberOf _
             * @since 1.1.0
             * @category Object
             * @param {Object} object The object to inspect.
             * @param {Function} [predicate=_.identity] The function invoked per iteration.
             * @returns {string|undefined} Returns the key of the matched element,
             *  else `undefined`.
             * @example
             *
             * var users = {
             *   'barney':  { 'age': 36, 'active': true },
             *   'fred':    { 'age': 40, 'active': false },
             *   'pebbles': { 'age': 1,  'active': true }
             * };
             *
             * _.findKey(users, function(o) { return o.age < 40; });
             * // => 'barney' (iteration order is not guaranteed)
             *
             * // The `_.matches` iteratee shorthand.
             * _.findKey(users, { 'age': 1, 'active': true });
             * // => 'pebbles'
             *
             * // The `_.matchesProperty` iteratee shorthand.
             * _.findKey(users, ['active', false]);
             * // => 'fred'
             *
             * // The `_.property` iteratee shorthand.
             * _.findKey(users, 'active');
             * // => 'barney'
             */

            function findKey(object, predicate) {
              return baseFindKey(object, getIteratee(predicate, 3), baseForOwn);
            }
            /**
             * This method is like `_.findKey` except that it iterates over elements of
             * a collection in the opposite order.
             *
             * @static
             * @memberOf _
             * @since 2.0.0
             * @category Object
             * @param {Object} object The object to inspect.
             * @param {Function} [predicate=_.identity] The function invoked per iteration.
             * @returns {string|undefined} Returns the key of the matched element,
             *  else `undefined`.
             * @example
             *
             * var users = {
             *   'barney':  { 'age': 36, 'active': true },
             *   'fred':    { 'age': 40, 'active': false },
             *   'pebbles': { 'age': 1,  'active': true }
             * };
             *
             * _.findLastKey(users, function(o) { return o.age < 40; });
             * // => returns 'pebbles' assuming `_.findKey` returns 'barney'
             *
             * // The `_.matches` iteratee shorthand.
             * _.findLastKey(users, { 'age': 36, 'active': true });
             * // => 'barney'
             *
             * // The `_.matchesProperty` iteratee shorthand.
             * _.findLastKey(users, ['active', false]);
             * // => 'fred'
             *
             * // The `_.property` iteratee shorthand.
             * _.findLastKey(users, 'active');
             * // => 'pebbles'
             */


            function findLastKey(object, predicate) {
              return baseFindKey(object, getIteratee(predicate, 3), baseForOwnRight);
            }
            /**
             * Iterates over own and inherited enumerable string keyed properties of an
             * object and invokes `iteratee` for each property. The iteratee is invoked
             * with three arguments: (value, key, object). Iteratee functions may exit
             * iteration early by explicitly returning `false`.
             *
             * @static
             * @memberOf _
             * @since 0.3.0
             * @category Object
             * @param {Object} object The object to iterate over.
             * @param {Function} [iteratee=_.identity] The function invoked per iteration.
             * @returns {Object} Returns `object`.
             * @see _.forInRight
             * @example
             *
             * function Foo() {
             *   this.a = 1;
             *   this.b = 2;
             * }
             *
             * Foo.prototype.c = 3;
             *
             * _.forIn(new Foo, function(value, key) {
             *   console.log(key);
             * });
             * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).
             */


            function forIn(object, iteratee) {
              return object == null ? object : baseFor(object, getIteratee(iteratee, 3), keysIn);
            }
            /**
             * This method is like `_.forIn` except that it iterates over properties of
             * `object` in the opposite order.
             *
             * @static
             * @memberOf _
             * @since 2.0.0
             * @category Object
             * @param {Object} object The object to iterate over.
             * @param {Function} [iteratee=_.identity] The function invoked per iteration.
             * @returns {Object} Returns `object`.
             * @see _.forIn
             * @example
             *
             * function Foo() {
             *   this.a = 1;
             *   this.b = 2;
             * }
             *
             * Foo.prototype.c = 3;
             *
             * _.forInRight(new Foo, function(value, key) {
             *   console.log(key);
             * });
             * // => Logs 'c', 'b', then 'a' assuming `_.forIn` logs 'a', 'b', then 'c'.
             */


            function forInRight(object, iteratee) {
              return object == null ? object : baseForRight(object, getIteratee(iteratee, 3), keysIn);
            }
            /**
             * Iterates over own enumerable string keyed properties of an object and
             * invokes `iteratee` for each property. The iteratee is invoked with three
             * arguments: (value, key, object). Iteratee functions may exit iteration
             * early by explicitly returning `false`.
             *
             * @static
             * @memberOf _
             * @since 0.3.0
             * @category Object
             * @param {Object} object The object to iterate over.
             * @param {Function} [iteratee=_.identity] The function invoked per iteration.
             * @returns {Object} Returns `object`.
             * @see _.forOwnRight
             * @example
             *
             * function Foo() {
             *   this.a = 1;
             *   this.b = 2;
             * }
             *
             * Foo.prototype.c = 3;
             *
             * _.forOwn(new Foo, function(value, key) {
             *   console.log(key);
             * });
             * // => Logs 'a' then 'b' (iteration order is not guaranteed).
             */


            function forOwn(object, iteratee) {
              return object && baseForOwn(object, getIteratee(iteratee, 3));
            }
            /**
             * This method is like `_.forOwn` except that it iterates over properties of
             * `object` in the opposite order.
             *
             * @static
             * @memberOf _
             * @since 2.0.0
             * @category Object
             * @param {Object} object The object to iterate over.
             * @param {Function} [iteratee=_.identity] The function invoked per iteration.
             * @returns {Object} Returns `object`.
             * @see _.forOwn
             * @example
             *
             * function Foo() {
             *   this.a = 1;
             *   this.b = 2;
             * }
             *
             * Foo.prototype.c = 3;
             *
             * _.forOwnRight(new Foo, function(value, key) {
             *   console.log(key);
             * });
             * // => Logs 'b' then 'a' assuming `_.forOwn` logs 'a' then 'b'.
             */


            function forOwnRight(object, iteratee) {
              return object && baseForOwnRight(object, getIteratee(iteratee, 3));
            }
            /**
             * Creates an array of function property names from own enumerable properties
             * of `object`.
             *
             * @static
             * @since 0.1.0
             * @memberOf _
             * @category Object
             * @param {Object} object The object to inspect.
             * @returns {Array} Returns the function names.
             * @see _.functionsIn
             * @example
             *
             * function Foo() {
             *   this.a = _.constant('a');
             *   this.b = _.constant('b');
             * }
             *
             * Foo.prototype.c = _.constant('c');
             *
             * _.functions(new Foo);
             * // => ['a', 'b']
             */


            function functions(object) {
              return object == null ? [] : baseFunctions(object, keys(object));
            }
            /**
             * Creates an array of function property names from own and inherited
             * enumerable properties of `object`.
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Object
             * @param {Object} object The object to inspect.
             * @returns {Array} Returns the function names.
             * @see _.functions
             * @example
             *
             * function Foo() {
             *   this.a = _.constant('a');
             *   this.b = _.constant('b');
             * }
             *
             * Foo.prototype.c = _.constant('c');
             *
             * _.functionsIn(new Foo);
             * // => ['a', 'b', 'c']
             */


            function functionsIn(object) {
              return object == null ? [] : baseFunctions(object, keysIn(object));
            }
            /**
             * Gets the value at `path` of `object`. If the resolved value is
             * `undefined`, the `defaultValue` is returned in its place.
             *
             * @static
             * @memberOf _
             * @since 3.7.0
             * @category Object
             * @param {Object} object The object to query.
             * @param {Array|string} path The path of the property to get.
             * @param {*} [defaultValue] The value returned for `undefined` resolved values.
             * @returns {*} Returns the resolved value.
             * @example
             *
             * var object = { 'a': [{ 'b': { 'c': 3 } }] };
             *
             * _.get(object, 'a[0].b.c');
             * // => 3
             *
             * _.get(object, ['a', '0', 'b', 'c']);
             * // => 3
             *
             * _.get(object, 'a.b.c', 'default');
             * // => 'default'
             */


            function get(object, path, defaultValue) {
              var result = object == null ? undefined : baseGet(object, path);
              return result === undefined ? defaultValue : result;
            }
            /**
             * Checks if `path` is a direct property of `object`.
             *
             * @static
             * @since 0.1.0
             * @memberOf _
             * @category Object
             * @param {Object} object The object to query.
             * @param {Array|string} path The path to check.
             * @returns {boolean} Returns `true` if `path` exists, else `false`.
             * @example
             *
             * var object = { 'a': { 'b': 2 } };
             * var other = _.create({ 'a': _.create({ 'b': 2 }) });
             *
             * _.has(object, 'a');
             * // => true
             *
             * _.has(object, 'a.b');
             * // => true
             *
             * _.has(object, ['a', 'b']);
             * // => true
             *
             * _.has(other, 'a');
             * // => false
             */


            function has(object, path) {
              return object != null && hasPath(object, path, baseHas);
            }
            /**
             * Checks if `path` is a direct or inherited property of `object`.
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Object
             * @param {Object} object The object to query.
             * @param {Array|string} path The path to check.
             * @returns {boolean} Returns `true` if `path` exists, else `false`.
             * @example
             *
             * var object = _.create({ 'a': _.create({ 'b': 2 }) });
             *
             * _.hasIn(object, 'a');
             * // => true
             *
             * _.hasIn(object, 'a.b');
             * // => true
             *
             * _.hasIn(object, ['a', 'b']);
             * // => true
             *
             * _.hasIn(object, 'b');
             * // => false
             */


            function hasIn(object, path) {
              return object != null && hasPath(object, path, baseHasIn);
            }
            /**
             * Creates an object composed of the inverted keys and values of `object`.
             * If `object` contains duplicate values, subsequent values overwrite
             * property assignments of previous values.
             *
             * @static
             * @memberOf _
             * @since 0.7.0
             * @category Object
             * @param {Object} object The object to invert.
             * @returns {Object} Returns the new inverted object.
             * @example
             *
             * var object = { 'a': 1, 'b': 2, 'c': 1 };
             *
             * _.invert(object);
             * // => { '1': 'c', '2': 'b' }
             */


            var invert = createInverter(function (result, value, key) {
              if (value != null && typeof value.toString != 'function') {
                value = nativeObjectToString.call(value);
              }

              result[value] = key;
            }, constant(identity));
            /**
             * This method is like `_.invert` except that the inverted object is generated
             * from the results of running each element of `object` thru `iteratee`. The
             * corresponding inverted value of each inverted key is an array of keys
             * responsible for generating the inverted value. The iteratee is invoked
             * with one argument: (value).
             *
             * @static
             * @memberOf _
             * @since 4.1.0
             * @category Object
             * @param {Object} object The object to invert.
             * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
             * @returns {Object} Returns the new inverted object.
             * @example
             *
             * var object = { 'a': 1, 'b': 2, 'c': 1 };
             *
             * _.invertBy(object);
             * // => { '1': ['a', 'c'], '2': ['b'] }
             *
             * _.invertBy(object, function(value) {
             *   return 'group' + value;
             * });
             * // => { 'group1': ['a', 'c'], 'group2': ['b'] }
             */

            var invertBy = createInverter(function (result, value, key) {
              if (value != null && typeof value.toString != 'function') {
                value = nativeObjectToString.call(value);
              }

              if (hasOwnProperty.call(result, value)) {
                result[value].push(key);
              } else {
                result[value] = [key];
              }
            }, getIteratee);
            /**
             * Invokes the method at `path` of `object`.
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Object
             * @param {Object} object The object to query.
             * @param {Array|string} path The path of the method to invoke.
             * @param {...*} [args] The arguments to invoke the method with.
             * @returns {*} Returns the result of the invoked method.
             * @example
             *
             * var object = { 'a': [{ 'b': { 'c': [1, 2, 3, 4] } }] };
             *
             * _.invoke(object, 'a[0].b.c.slice', 1, 3);
             * // => [2, 3]
             */

            var invoke = baseRest(baseInvoke);
            /**
             * Creates an array of the own enumerable property names of `object`.
             *
             * **Note:** Non-object values are coerced to objects. See the
             * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
             * for more details.
             *
             * @static
             * @since 0.1.0
             * @memberOf _
             * @category Object
             * @param {Object} object The object to query.
             * @returns {Array} Returns the array of property names.
             * @example
             *
             * function Foo() {
             *   this.a = 1;
             *   this.b = 2;
             * }
             *
             * Foo.prototype.c = 3;
             *
             * _.keys(new Foo);
             * // => ['a', 'b'] (iteration order is not guaranteed)
             *
             * _.keys('hi');
             * // => ['0', '1']
             */

            function keys(object) {
              return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
            }
            /**
             * Creates an array of the own and inherited enumerable property names of `object`.
             *
             * **Note:** Non-object values are coerced to objects.
             *
             * @static
             * @memberOf _
             * @since 3.0.0
             * @category Object
             * @param {Object} object The object to query.
             * @returns {Array} Returns the array of property names.
             * @example
             *
             * function Foo() {
             *   this.a = 1;
             *   this.b = 2;
             * }
             *
             * Foo.prototype.c = 3;
             *
             * _.keysIn(new Foo);
             * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
             */


            function keysIn(object) {
              return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
            }
            /**
             * The opposite of `_.mapValues`; this method creates an object with the
             * same values as `object` and keys generated by running each own enumerable
             * string keyed property of `object` thru `iteratee`. The iteratee is invoked
             * with three arguments: (value, key, object).
             *
             * @static
             * @memberOf _
             * @since 3.8.0
             * @category Object
             * @param {Object} object The object to iterate over.
             * @param {Function} [iteratee=_.identity] The function invoked per iteration.
             * @returns {Object} Returns the new mapped object.
             * @see _.mapValues
             * @example
             *
             * _.mapKeys({ 'a': 1, 'b': 2 }, function(value, key) {
             *   return key + value;
             * });
             * // => { 'a1': 1, 'b2': 2 }
             */


            function mapKeys(object, iteratee) {
              var result = {};
              iteratee = getIteratee(iteratee, 3);
              baseForOwn(object, function (value, key, object) {
                baseAssignValue(result, iteratee(value, key, object), value);
              });
              return result;
            }
            /**
             * Creates an object with the same keys as `object` and values generated
             * by running each own enumerable string keyed property of `object` thru
             * `iteratee`. The iteratee is invoked with three arguments:
             * (value, key, object).
             *
             * @static
             * @memberOf _
             * @since 2.4.0
             * @category Object
             * @param {Object} object The object to iterate over.
             * @param {Function} [iteratee=_.identity] The function invoked per iteration.
             * @returns {Object} Returns the new mapped object.
             * @see _.mapKeys
             * @example
             *
             * var users = {
             *   'fred':    { 'user': 'fred',    'age': 40 },
             *   'pebbles': { 'user': 'pebbles', 'age': 1 }
             * };
             *
             * _.mapValues(users, function(o) { return o.age; });
             * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
             *
             * // The `_.property` iteratee shorthand.
             * _.mapValues(users, 'age');
             * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
             */


            function mapValues(object, iteratee) {
              var result = {};
              iteratee = getIteratee(iteratee, 3);
              baseForOwn(object, function (value, key, object) {
                baseAssignValue(result, key, iteratee(value, key, object));
              });
              return result;
            }
            /**
             * This method is like `_.assign` except that it recursively merges own and
             * inherited enumerable string keyed properties of source objects into the
             * destination object. Source properties that resolve to `undefined` are
             * skipped if a destination value exists. Array and plain object properties
             * are merged recursively. Other objects and value types are overridden by
             * assignment. Source objects are applied from left to right. Subsequent
             * sources overwrite property assignments of previous sources.
             *
             * **Note:** This method mutates `object`.
             *
             * @static
             * @memberOf _
             * @since 0.5.0
             * @category Object
             * @param {Object} object The destination object.
             * @param {...Object} [sources] The source objects.
             * @returns {Object} Returns `object`.
             * @example
             *
             * var object = {
             *   'a': [{ 'b': 2 }, { 'd': 4 }]
             * };
             *
             * var other = {
             *   'a': [{ 'c': 3 }, { 'e': 5 }]
             * };
             *
             * _.merge(object, other);
             * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
             */


            var merge = createAssigner(function (object, source, srcIndex) {
              baseMerge(object, source, srcIndex);
            });
            /**
             * This method is like `_.merge` except that it accepts `customizer` which
             * is invoked to produce the merged values of the destination and source
             * properties. If `customizer` returns `undefined`, merging is handled by the
             * method instead. The `customizer` is invoked with six arguments:
             * (objValue, srcValue, key, object, source, stack).
             *
             * **Note:** This method mutates `object`.
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Object
             * @param {Object} object The destination object.
             * @param {...Object} sources The source objects.
             * @param {Function} customizer The function to customize assigned values.
             * @returns {Object} Returns `object`.
             * @example
             *
             * function customizer(objValue, srcValue) {
             *   if (_.isArray(objValue)) {
             *     return objValue.concat(srcValue);
             *   }
             * }
             *
             * var object = { 'a': [1], 'b': [2] };
             * var other = { 'a': [3], 'b': [4] };
             *
             * _.mergeWith(object, other, customizer);
             * // => { 'a': [1, 3], 'b': [2, 4] }
             */

            var mergeWith = createAssigner(function (object, source, srcIndex, customizer) {
              baseMerge(object, source, srcIndex, customizer);
            });
            /**
             * The opposite of `_.pick`; this method creates an object composed of the
             * own and inherited enumerable property paths of `object` that are not omitted.
             *
             * **Note:** This method is considerably slower than `_.pick`.
             *
             * @static
             * @since 0.1.0
             * @memberOf _
             * @category Object
             * @param {Object} object The source object.
             * @param {...(string|string[])} [paths] The property paths to omit.
             * @returns {Object} Returns the new object.
             * @example
             *
             * var object = { 'a': 1, 'b': '2', 'c': 3 };
             *
             * _.omit(object, ['a', 'c']);
             * // => { 'b': '2' }
             */

            var omit = flatRest(function (object, paths) {
              var result = {};

              if (object == null) {
                return result;
              }

              var isDeep = false;
              paths = arrayMap(paths, function (path) {
                path = castPath(path, object);
                isDeep || (isDeep = path.length > 1);
                return path;
              });
              copyObject(object, getAllKeysIn(object), result);

              if (isDeep) {
                result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);
              }

              var length = paths.length;

              while (length--) {
                baseUnset(result, paths[length]);
              }

              return result;
            });
            /**
             * The opposite of `_.pickBy`; this method creates an object composed of
             * the own and inherited enumerable string keyed properties of `object` that
             * `predicate` doesn't return truthy for. The predicate is invoked with two
             * arguments: (value, key).
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Object
             * @param {Object} object The source object.
             * @param {Function} [predicate=_.identity] The function invoked per property.
             * @returns {Object} Returns the new object.
             * @example
             *
             * var object = { 'a': 1, 'b': '2', 'c': 3 };
             *
             * _.omitBy(object, _.isNumber);
             * // => { 'b': '2' }
             */

            function omitBy(object, predicate) {
              return pickBy(object, negate(getIteratee(predicate)));
            }
            /**
             * Creates an object composed of the picked `object` properties.
             *
             * @static
             * @since 0.1.0
             * @memberOf _
             * @category Object
             * @param {Object} object The source object.
             * @param {...(string|string[])} [paths] The property paths to pick.
             * @returns {Object} Returns the new object.
             * @example
             *
             * var object = { 'a': 1, 'b': '2', 'c': 3 };
             *
             * _.pick(object, ['a', 'c']);
             * // => { 'a': 1, 'c': 3 }
             */


            var pick = flatRest(function (object, paths) {
              return object == null ? {} : basePick(object, paths);
            });
            /**
             * Creates an object composed of the `object` properties `predicate` returns
             * truthy for. The predicate is invoked with two arguments: (value, key).
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Object
             * @param {Object} object The source object.
             * @param {Function} [predicate=_.identity] The function invoked per property.
             * @returns {Object} Returns the new object.
             * @example
             *
             * var object = { 'a': 1, 'b': '2', 'c': 3 };
             *
             * _.pickBy(object, _.isNumber);
             * // => { 'a': 1, 'c': 3 }
             */

            function pickBy(object, predicate) {
              if (object == null) {
                return {};
              }

              var props = arrayMap(getAllKeysIn(object), function (prop) {
                return [prop];
              });
              predicate = getIteratee(predicate);
              return basePickBy(object, props, function (value, path) {
                return predicate(value, path[0]);
              });
            }
            /**
             * This method is like `_.get` except that if the resolved value is a
             * function it's invoked with the `this` binding of its parent object and
             * its result is returned.
             *
             * @static
             * @since 0.1.0
             * @memberOf _
             * @category Object
             * @param {Object} object The object to query.
             * @param {Array|string} path The path of the property to resolve.
             * @param {*} [defaultValue] The value returned for `undefined` resolved values.
             * @returns {*} Returns the resolved value.
             * @example
             *
             * var object = { 'a': [{ 'b': { 'c1': 3, 'c2': _.constant(4) } }] };
             *
             * _.result(object, 'a[0].b.c1');
             * // => 3
             *
             * _.result(object, 'a[0].b.c2');
             * // => 4
             *
             * _.result(object, 'a[0].b.c3', 'default');
             * // => 'default'
             *
             * _.result(object, 'a[0].b.c3', _.constant('default'));
             * // => 'default'
             */


            function result(object, path, defaultValue) {
              path = castPath(path, object);
              var index = -1,
                  length = path.length; // Ensure the loop is entered when path is empty.

              if (!length) {
                length = 1;
                object = undefined;
              }

              while (++index < length) {
                var value = object == null ? undefined : object[toKey(path[index])];

                if (value === undefined) {
                  index = length;
                  value = defaultValue;
                }

                object = isFunction(value) ? value.call(object) : value;
              }

              return object;
            }
            /**
             * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,
             * it's created. Arrays are created for missing index properties while objects
             * are created for all other missing properties. Use `_.setWith` to customize
             * `path` creation.
             *
             * **Note:** This method mutates `object`.
             *
             * @static
             * @memberOf _
             * @since 3.7.0
             * @category Object
             * @param {Object} object The object to modify.
             * @param {Array|string} path The path of the property to set.
             * @param {*} value The value to set.
             * @returns {Object} Returns `object`.
             * @example
             *
             * var object = { 'a': [{ 'b': { 'c': 3 } }] };
             *
             * _.set(object, 'a[0].b.c', 4);
             * console.log(object.a[0].b.c);
             * // => 4
             *
             * _.set(object, ['x', '0', 'y', 'z'], 5);
             * console.log(object.x[0].y.z);
             * // => 5
             */


            function set(object, path, value) {
              return object == null ? object : baseSet(object, path, value);
            }
            /**
             * This method is like `_.set` except that it accepts `customizer` which is
             * invoked to produce the objects of `path`.  If `customizer` returns `undefined`
             * path creation is handled by the method instead. The `customizer` is invoked
             * with three arguments: (nsValue, key, nsObject).
             *
             * **Note:** This method mutates `object`.
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Object
             * @param {Object} object The object to modify.
             * @param {Array|string} path The path of the property to set.
             * @param {*} value The value to set.
             * @param {Function} [customizer] The function to customize assigned values.
             * @returns {Object} Returns `object`.
             * @example
             *
             * var object = {};
             *
             * _.setWith(object, '[0][1]', 'a', Object);
             * // => { '0': { '1': 'a' } }
             */


            function setWith(object, path, value, customizer) {
              customizer = typeof customizer == 'function' ? customizer : undefined;
              return object == null ? object : baseSet(object, path, value, customizer);
            }
            /**
             * Creates an array of own enumerable string keyed-value pairs for `object`
             * which can be consumed by `_.fromPairs`. If `object` is a map or set, its
             * entries are returned.
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @alias entries
             * @category Object
             * @param {Object} object The object to query.
             * @returns {Array} Returns the key-value pairs.
             * @example
             *
             * function Foo() {
             *   this.a = 1;
             *   this.b = 2;
             * }
             *
             * Foo.prototype.c = 3;
             *
             * _.toPairs(new Foo);
             * // => [['a', 1], ['b', 2]] (iteration order is not guaranteed)
             */


            var toPairs = createToPairs(keys);
            /**
             * Creates an array of own and inherited enumerable string keyed-value pairs
             * for `object` which can be consumed by `_.fromPairs`. If `object` is a map
             * or set, its entries are returned.
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @alias entriesIn
             * @category Object
             * @param {Object} object The object to query.
             * @returns {Array} Returns the key-value pairs.
             * @example
             *
             * function Foo() {
             *   this.a = 1;
             *   this.b = 2;
             * }
             *
             * Foo.prototype.c = 3;
             *
             * _.toPairsIn(new Foo);
             * // => [['a', 1], ['b', 2], ['c', 3]] (iteration order is not guaranteed)
             */

            var toPairsIn = createToPairs(keysIn);
            /**
             * An alternative to `_.reduce`; this method transforms `object` to a new
             * `accumulator` object which is the result of running each of its own
             * enumerable string keyed properties thru `iteratee`, with each invocation
             * potentially mutating the `accumulator` object. If `accumulator` is not
             * provided, a new object with the same `[[Prototype]]` will be used. The
             * iteratee is invoked with four arguments: (accumulator, value, key, object).
             * Iteratee functions may exit iteration early by explicitly returning `false`.
             *
             * @static
             * @memberOf _
             * @since 1.3.0
             * @category Object
             * @param {Object} object The object to iterate over.
             * @param {Function} [iteratee=_.identity] The function invoked per iteration.
             * @param {*} [accumulator] The custom accumulator value.
             * @returns {*} Returns the accumulated value.
             * @example
             *
             * _.transform([2, 3, 4], function(result, n) {
             *   result.push(n *= n);
             *   return n % 2 == 0;
             * }, []);
             * // => [4, 9]
             *
             * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
             *   (result[value] || (result[value] = [])).push(key);
             * }, {});
             * // => { '1': ['a', 'c'], '2': ['b'] }
             */

            function transform(object, iteratee, accumulator) {
              var isArr = isArray(object),
                  isArrLike = isArr || isBuffer(object) || isTypedArray(object);
              iteratee = getIteratee(iteratee, 4);

              if (accumulator == null) {
                var Ctor = object && object.constructor;

                if (isArrLike) {
                  accumulator = isArr ? new Ctor() : [];
                } else if (isObject(object)) {
                  accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};
                } else {
                  accumulator = {};
                }
              }

              (isArrLike ? arrayEach : baseForOwn)(object, function (value, index, object) {
                return iteratee(accumulator, value, index, object);
              });
              return accumulator;
            }
            /**
             * Removes the property at `path` of `object`.
             *
             * **Note:** This method mutates `object`.
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Object
             * @param {Object} object The object to modify.
             * @param {Array|string} path The path of the property to unset.
             * @returns {boolean} Returns `true` if the property is deleted, else `false`.
             * @example
             *
             * var object = { 'a': [{ 'b': { 'c': 7 } }] };
             * _.unset(object, 'a[0].b.c');
             * // => true
             *
             * console.log(object);
             * // => { 'a': [{ 'b': {} }] };
             *
             * _.unset(object, ['a', '0', 'b', 'c']);
             * // => true
             *
             * console.log(object);
             * // => { 'a': [{ 'b': {} }] };
             */


            function unset(object, path) {
              return object == null ? true : baseUnset(object, path);
            }
            /**
             * This method is like `_.set` except that accepts `updater` to produce the
             * value to set. Use `_.updateWith` to customize `path` creation. The `updater`
             * is invoked with one argument: (value).
             *
             * **Note:** This method mutates `object`.
             *
             * @static
             * @memberOf _
             * @since 4.6.0
             * @category Object
             * @param {Object} object The object to modify.
             * @param {Array|string} path The path of the property to set.
             * @param {Function} updater The function to produce the updated value.
             * @returns {Object} Returns `object`.
             * @example
             *
             * var object = { 'a': [{ 'b': { 'c': 3 } }] };
             *
             * _.update(object, 'a[0].b.c', function(n) { return n * n; });
             * console.log(object.a[0].b.c);
             * // => 9
             *
             * _.update(object, 'x[0].y.z', function(n) { return n ? n + 1 : 0; });
             * console.log(object.x[0].y.z);
             * // => 0
             */


            function update(object, path, updater) {
              return object == null ? object : baseUpdate(object, path, castFunction(updater));
            }
            /**
             * This method is like `_.update` except that it accepts `customizer` which is
             * invoked to produce the objects of `path`.  If `customizer` returns `undefined`
             * path creation is handled by the method instead. The `customizer` is invoked
             * with three arguments: (nsValue, key, nsObject).
             *
             * **Note:** This method mutates `object`.
             *
             * @static
             * @memberOf _
             * @since 4.6.0
             * @category Object
             * @param {Object} object The object to modify.
             * @param {Array|string} path The path of the property to set.
             * @param {Function} updater The function to produce the updated value.
             * @param {Function} [customizer] The function to customize assigned values.
             * @returns {Object} Returns `object`.
             * @example
             *
             * var object = {};
             *
             * _.updateWith(object, '[0][1]', _.constant('a'), Object);
             * // => { '0': { '1': 'a' } }
             */


            function updateWith(object, path, updater, customizer) {
              customizer = typeof customizer == 'function' ? customizer : undefined;
              return object == null ? object : baseUpdate(object, path, castFunction(updater), customizer);
            }
            /**
             * Creates an array of the own enumerable string keyed property values of `object`.
             *
             * **Note:** Non-object values are coerced to objects.
             *
             * @static
             * @since 0.1.0
             * @memberOf _
             * @category Object
             * @param {Object} object The object to query.
             * @returns {Array} Returns the array of property values.
             * @example
             *
             * function Foo() {
             *   this.a = 1;
             *   this.b = 2;
             * }
             *
             * Foo.prototype.c = 3;
             *
             * _.values(new Foo);
             * // => [1, 2] (iteration order is not guaranteed)
             *
             * _.values('hi');
             * // => ['h', 'i']
             */


            function values(object) {
              return object == null ? [] : baseValues(object, keys(object));
            }
            /**
             * Creates an array of the own and inherited enumerable string keyed property
             * values of `object`.
             *
             * **Note:** Non-object values are coerced to objects.
             *
             * @static
             * @memberOf _
             * @since 3.0.0
             * @category Object
             * @param {Object} object The object to query.
             * @returns {Array} Returns the array of property values.
             * @example
             *
             * function Foo() {
             *   this.a = 1;
             *   this.b = 2;
             * }
             *
             * Foo.prototype.c = 3;
             *
             * _.valuesIn(new Foo);
             * // => [1, 2, 3] (iteration order is not guaranteed)
             */


            function valuesIn(object) {
              return object == null ? [] : baseValues(object, keysIn(object));
            }
            /*------------------------------------------------------------------------*/

            /**
             * Clamps `number` within the inclusive `lower` and `upper` bounds.
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Number
             * @param {number} number The number to clamp.
             * @param {number} [lower] The lower bound.
             * @param {number} upper The upper bound.
             * @returns {number} Returns the clamped number.
             * @example
             *
             * _.clamp(-10, -5, 5);
             * // => -5
             *
             * _.clamp(10, -5, 5);
             * // => 5
             */


            function clamp(number, lower, upper) {
              if (upper === undefined) {
                upper = lower;
                lower = undefined;
              }

              if (upper !== undefined) {
                upper = toNumber(upper);
                upper = upper === upper ? upper : 0;
              }

              if (lower !== undefined) {
                lower = toNumber(lower);
                lower = lower === lower ? lower : 0;
              }

              return baseClamp(toNumber(number), lower, upper);
            }
            /**
             * Checks if `n` is between `start` and up to, but not including, `end`. If
             * `end` is not specified, it's set to `start` with `start` then set to `0`.
             * If `start` is greater than `end` the params are swapped to support
             * negative ranges.
             *
             * @static
             * @memberOf _
             * @since 3.3.0
             * @category Number
             * @param {number} number The number to check.
             * @param {number} [start=0] The start of the range.
             * @param {number} end The end of the range.
             * @returns {boolean} Returns `true` if `number` is in the range, else `false`.
             * @see _.range, _.rangeRight
             * @example
             *
             * _.inRange(3, 2, 4);
             * // => true
             *
             * _.inRange(4, 8);
             * // => true
             *
             * _.inRange(4, 2);
             * // => false
             *
             * _.inRange(2, 2);
             * // => false
             *
             * _.inRange(1.2, 2);
             * // => true
             *
             * _.inRange(5.2, 4);
             * // => false
             *
             * _.inRange(-3, -2, -6);
             * // => true
             */


            function inRange(number, start, end) {
              start = toFinite(start);

              if (end === undefined) {
                end = start;
                start = 0;
              } else {
                end = toFinite(end);
              }

              number = toNumber(number);
              return baseInRange(number, start, end);
            }
            /**
             * Produces a random number between the inclusive `lower` and `upper` bounds.
             * If only one argument is provided a number between `0` and the given number
             * is returned. If `floating` is `true`, or either `lower` or `upper` are
             * floats, a floating-point number is returned instead of an integer.
             *
             * **Note:** JavaScript follows the IEEE-754 standard for resolving
             * floating-point values which can produce unexpected results.
             *
             * @static
             * @memberOf _
             * @since 0.7.0
             * @category Number
             * @param {number} [lower=0] The lower bound.
             * @param {number} [upper=1] The upper bound.
             * @param {boolean} [floating] Specify returning a floating-point number.
             * @returns {number} Returns the random number.
             * @example
             *
             * _.random(0, 5);
             * // => an integer between 0 and 5
             *
             * _.random(5);
             * // => also an integer between 0 and 5
             *
             * _.random(5, true);
             * // => a floating-point number between 0 and 5
             *
             * _.random(1.2, 5.2);
             * // => a floating-point number between 1.2 and 5.2
             */


            function random(lower, upper, floating) {
              if (floating && typeof floating != 'boolean' && isIterateeCall(lower, upper, floating)) {
                upper = floating = undefined;
              }

              if (floating === undefined) {
                if (typeof upper == 'boolean') {
                  floating = upper;
                  upper = undefined;
                } else if (typeof lower == 'boolean') {
                  floating = lower;
                  lower = undefined;
                }
              }

              if (lower === undefined && upper === undefined) {
                lower = 0;
                upper = 1;
              } else {
                lower = toFinite(lower);

                if (upper === undefined) {
                  upper = lower;
                  lower = 0;
                } else {
                  upper = toFinite(upper);
                }
              }

              if (lower > upper) {
                var temp = lower;
                lower = upper;
                upper = temp;
              }

              if (floating || lower % 1 || upper % 1) {
                var rand = nativeRandom();
                return nativeMin(lower + rand * (upper - lower + freeParseFloat('1e-' + ((rand + '').length - 1))), upper);
              }

              return baseRandom(lower, upper);
            }
            /*------------------------------------------------------------------------*/

            /**
             * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).
             *
             * @static
             * @memberOf _
             * @since 3.0.0
             * @category String
             * @param {string} [string=''] The string to convert.
             * @returns {string} Returns the camel cased string.
             * @example
             *
             * _.camelCase('Foo Bar');
             * // => 'fooBar'
             *
             * _.camelCase('--foo-bar--');
             * // => 'fooBar'
             *
             * _.camelCase('__FOO_BAR__');
             * // => 'fooBar'
             */


            var camelCase = createCompounder(function (result, word, index) {
              word = word.toLowerCase();
              return result + (index ? capitalize(word) : word);
            });
            /**
             * Converts the first character of `string` to upper case and the remaining
             * to lower case.
             *
             * @static
             * @memberOf _
             * @since 3.0.0
             * @category String
             * @param {string} [string=''] The string to capitalize.
             * @returns {string} Returns the capitalized string.
             * @example
             *
             * _.capitalize('FRED');
             * // => 'Fred'
             */

            function capitalize(string) {
              return upperFirst(toString(string).toLowerCase());
            }
            /**
             * Deburrs `string` by converting
             * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
             * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)
             * letters to basic Latin letters and removing
             * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).
             *
             * @static
             * @memberOf _
             * @since 3.0.0
             * @category String
             * @param {string} [string=''] The string to deburr.
             * @returns {string} Returns the deburred string.
             * @example
             *
             * _.deburr('déjà vu');
             * // => 'deja vu'
             */


            function deburr(string) {
              string = toString(string);
              return string && string.replace(reLatin, deburrLetter).replace(reComboMark, '');
            }
            /**
             * Checks if `string` ends with the given target string.
             *
             * @static
             * @memberOf _
             * @since 3.0.0
             * @category String
             * @param {string} [string=''] The string to inspect.
             * @param {string} [target] The string to search for.
             * @param {number} [position=string.length] The position to search up to.
             * @returns {boolean} Returns `true` if `string` ends with `target`,
             *  else `false`.
             * @example
             *
             * _.endsWith('abc', 'c');
             * // => true
             *
             * _.endsWith('abc', 'b');
             * // => false
             *
             * _.endsWith('abc', 'b', 2);
             * // => true
             */


            function endsWith(string, target, position) {
              string = toString(string);
              target = baseToString(target);
              var length = string.length;
              position = position === undefined ? length : baseClamp(toInteger(position), 0, length);
              var end = position;
              position -= target.length;
              return position >= 0 && string.slice(position, end) == target;
            }
            /**
             * Converts the characters "&", "<", ">", '"', and "'" in `string` to their
             * corresponding HTML entities.
             *
             * **Note:** No other characters are escaped. To escape additional
             * characters use a third-party library like [_he_](https://mths.be/he).
             *
             * Though the ">" character is escaped for symmetry, characters like
             * ">" and "/" don't need escaping in HTML and have no special meaning
             * unless they're part of a tag or unquoted attribute value. See
             * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)
             * (under "semi-related fun fact") for more details.
             *
             * When working with HTML you should always
             * [quote attribute values](http://wonko.com/post/html-escaping) to reduce
             * XSS vectors.
             *
             * @static
             * @since 0.1.0
             * @memberOf _
             * @category String
             * @param {string} [string=''] The string to escape.
             * @returns {string} Returns the escaped string.
             * @example
             *
             * _.escape('fred, barney, & pebbles');
             * // => 'fred, barney, &amp; pebbles'
             */


            function escape(string) {
              string = toString(string);
              return string && reHasUnescapedHtml.test(string) ? string.replace(reUnescapedHtml, escapeHtmlChar) : string;
            }
            /**
             * Escapes the `RegExp` special characters "^", "$", "\", ".", "*", "+",
             * "?", "(", ")", "[", "]", "{", "}", and "|" in `string`.
             *
             * @static
             * @memberOf _
             * @since 3.0.0
             * @category String
             * @param {string} [string=''] The string to escape.
             * @returns {string} Returns the escaped string.
             * @example
             *
             * _.escapeRegExp('[lodash](https://lodash.com/)');
             * // => '\[lodash\]\(https://lodash\.com/\)'
             */


            function escapeRegExp(string) {
              string = toString(string);
              return string && reHasRegExpChar.test(string) ? string.replace(reRegExpChar, '\\$&') : string;
            }
            /**
             * Converts `string` to
             * [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).
             *
             * @static
             * @memberOf _
             * @since 3.0.0
             * @category String
             * @param {string} [string=''] The string to convert.
             * @returns {string} Returns the kebab cased string.
             * @example
             *
             * _.kebabCase('Foo Bar');
             * // => 'foo-bar'
             *
             * _.kebabCase('fooBar');
             * // => 'foo-bar'
             *
             * _.kebabCase('__FOO_BAR__');
             * // => 'foo-bar'
             */


            var kebabCase = createCompounder(function (result, word, index) {
              return result + (index ? '-' : '') + word.toLowerCase();
            });
            /**
             * Converts `string`, as space separated words, to lower case.
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category String
             * @param {string} [string=''] The string to convert.
             * @returns {string} Returns the lower cased string.
             * @example
             *
             * _.lowerCase('--Foo-Bar--');
             * // => 'foo bar'
             *
             * _.lowerCase('fooBar');
             * // => 'foo bar'
             *
             * _.lowerCase('__FOO_BAR__');
             * // => 'foo bar'
             */

            var lowerCase = createCompounder(function (result, word, index) {
              return result + (index ? ' ' : '') + word.toLowerCase();
            });
            /**
             * Converts the first character of `string` to lower case.
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category String
             * @param {string} [string=''] The string to convert.
             * @returns {string} Returns the converted string.
             * @example
             *
             * _.lowerFirst('Fred');
             * // => 'fred'
             *
             * _.lowerFirst('FRED');
             * // => 'fRED'
             */

            var lowerFirst = createCaseFirst('toLowerCase');
            /**
             * Pads `string` on the left and right sides if it's shorter than `length`.
             * Padding characters are truncated if they can't be evenly divided by `length`.
             *
             * @static
             * @memberOf _
             * @since 3.0.0
             * @category String
             * @param {string} [string=''] The string to pad.
             * @param {number} [length=0] The padding length.
             * @param {string} [chars=' '] The string used as padding.
             * @returns {string} Returns the padded string.
             * @example
             *
             * _.pad('abc', 8);
             * // => '  abc   '
             *
             * _.pad('abc', 8, '_-');
             * // => '_-abc_-_'
             *
             * _.pad('abc', 3);
             * // => 'abc'
             */

            function pad(string, length, chars) {
              string = toString(string);
              length = toInteger(length);
              var strLength = length ? stringSize(string) : 0;

              if (!length || strLength >= length) {
                return string;
              }

              var mid = (length - strLength) / 2;
              return createPadding(nativeFloor(mid), chars) + string + createPadding(nativeCeil(mid), chars);
            }
            /**
             * Pads `string` on the right side if it's shorter than `length`. Padding
             * characters are truncated if they exceed `length`.
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category String
             * @param {string} [string=''] The string to pad.
             * @param {number} [length=0] The padding length.
             * @param {string} [chars=' '] The string used as padding.
             * @returns {string} Returns the padded string.
             * @example
             *
             * _.padEnd('abc', 6);
             * // => 'abc   '
             *
             * _.padEnd('abc', 6, '_-');
             * // => 'abc_-_'
             *
             * _.padEnd('abc', 3);
             * // => 'abc'
             */


            function padEnd(string, length, chars) {
              string = toString(string);
              length = toInteger(length);
              var strLength = length ? stringSize(string) : 0;
              return length && strLength < length ? string + createPadding(length - strLength, chars) : string;
            }
            /**
             * Pads `string` on the left side if it's shorter than `length`. Padding
             * characters are truncated if they exceed `length`.
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category String
             * @param {string} [string=''] The string to pad.
             * @param {number} [length=0] The padding length.
             * @param {string} [chars=' '] The string used as padding.
             * @returns {string} Returns the padded string.
             * @example
             *
             * _.padStart('abc', 6);
             * // => '   abc'
             *
             * _.padStart('abc', 6, '_-');
             * // => '_-_abc'
             *
             * _.padStart('abc', 3);
             * // => 'abc'
             */


            function padStart(string, length, chars) {
              string = toString(string);
              length = toInteger(length);
              var strLength = length ? stringSize(string) : 0;
              return length && strLength < length ? createPadding(length - strLength, chars) + string : string;
            }
            /**
             * Converts `string` to an integer of the specified radix. If `radix` is
             * `undefined` or `0`, a `radix` of `10` is used unless `value` is a
             * hexadecimal, in which case a `radix` of `16` is used.
             *
             * **Note:** This method aligns with the
             * [ES5 implementation](https://es5.github.io/#x15.1.2.2) of `parseInt`.
             *
             * @static
             * @memberOf _
             * @since 1.1.0
             * @category String
             * @param {string} string The string to convert.
             * @param {number} [radix=10] The radix to interpret `value` by.
             * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
             * @returns {number} Returns the converted integer.
             * @example
             *
             * _.parseInt('08');
             * // => 8
             *
             * _.map(['6', '08', '10'], _.parseInt);
             * // => [6, 8, 10]
             */


            function parseInt(string, radix, guard) {
              if (guard || radix == null) {
                radix = 0;
              } else if (radix) {
                radix = +radix;
              }

              return nativeParseInt(toString(string).replace(reTrimStart, ''), radix || 0);
            }
            /**
             * Repeats the given string `n` times.
             *
             * @static
             * @memberOf _
             * @since 3.0.0
             * @category String
             * @param {string} [string=''] The string to repeat.
             * @param {number} [n=1] The number of times to repeat the string.
             * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
             * @returns {string} Returns the repeated string.
             * @example
             *
             * _.repeat('*', 3);
             * // => '***'
             *
             * _.repeat('abc', 2);
             * // => 'abcabc'
             *
             * _.repeat('abc', 0);
             * // => ''
             */


            function repeat(string, n, guard) {
              if (guard ? isIterateeCall(string, n, guard) : n === undefined) {
                n = 1;
              } else {
                n = toInteger(n);
              }

              return baseRepeat(toString(string), n);
            }
            /**
             * Replaces matches for `pattern` in `string` with `replacement`.
             *
             * **Note:** This method is based on
             * [`String#replace`](https://mdn.io/String/replace).
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category String
             * @param {string} [string=''] The string to modify.
             * @param {RegExp|string} pattern The pattern to replace.
             * @param {Function|string} replacement The match replacement.
             * @returns {string} Returns the modified string.
             * @example
             *
             * _.replace('Hi Fred', 'Fred', 'Barney');
             * // => 'Hi Barney'
             */


            function replace() {
              var args = arguments,
                  string = toString(args[0]);
              return args.length < 3 ? string : string.replace(args[1], args[2]);
            }
            /**
             * Converts `string` to
             * [snake case](https://en.wikipedia.org/wiki/Snake_case).
             *
             * @static
             * @memberOf _
             * @since 3.0.0
             * @category String
             * @param {string} [string=''] The string to convert.
             * @returns {string} Returns the snake cased string.
             * @example
             *
             * _.snakeCase('Foo Bar');
             * // => 'foo_bar'
             *
             * _.snakeCase('fooBar');
             * // => 'foo_bar'
             *
             * _.snakeCase('--FOO-BAR--');
             * // => 'foo_bar'
             */


            var snakeCase = createCompounder(function (result, word, index) {
              return result + (index ? '_' : '') + word.toLowerCase();
            });
            /**
             * Splits `string` by `separator`.
             *
             * **Note:** This method is based on
             * [`String#split`](https://mdn.io/String/split).
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category String
             * @param {string} [string=''] The string to split.
             * @param {RegExp|string} separator The separator pattern to split by.
             * @param {number} [limit] The length to truncate results to.
             * @returns {Array} Returns the string segments.
             * @example
             *
             * _.split('a-b-c', '-', 2);
             * // => ['a', 'b']
             */

            function split(string, separator, limit) {
              if (limit && typeof limit != 'number' && isIterateeCall(string, separator, limit)) {
                separator = limit = undefined;
              }

              limit = limit === undefined ? MAX_ARRAY_LENGTH : limit >>> 0;

              if (!limit) {
                return [];
              }

              string = toString(string);

              if (string && (typeof separator == 'string' || separator != null && !isRegExp(separator))) {
                separator = baseToString(separator);

                if (!separator && hasUnicode(string)) {
                  return castSlice(stringToArray(string), 0, limit);
                }
              }

              return string.split(separator, limit);
            }
            /**
             * Converts `string` to
             * [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage).
             *
             * @static
             * @memberOf _
             * @since 3.1.0
             * @category String
             * @param {string} [string=''] The string to convert.
             * @returns {string} Returns the start cased string.
             * @example
             *
             * _.startCase('--foo-bar--');
             * // => 'Foo Bar'
             *
             * _.startCase('fooBar');
             * // => 'Foo Bar'
             *
             * _.startCase('__FOO_BAR__');
             * // => 'FOO BAR'
             */


            var startCase = createCompounder(function (result, word, index) {
              return result + (index ? ' ' : '') + upperFirst(word);
            });
            /**
             * Checks if `string` starts with the given target string.
             *
             * @static
             * @memberOf _
             * @since 3.0.0
             * @category String
             * @param {string} [string=''] The string to inspect.
             * @param {string} [target] The string to search for.
             * @param {number} [position=0] The position to search from.
             * @returns {boolean} Returns `true` if `string` starts with `target`,
             *  else `false`.
             * @example
             *
             * _.startsWith('abc', 'a');
             * // => true
             *
             * _.startsWith('abc', 'b');
             * // => false
             *
             * _.startsWith('abc', 'b', 1);
             * // => true
             */

            function startsWith(string, target, position) {
              string = toString(string);
              position = position == null ? 0 : baseClamp(toInteger(position), 0, string.length);
              target = baseToString(target);
              return string.slice(position, position + target.length) == target;
            }
            /**
             * Creates a compiled template function that can interpolate data properties
             * in "interpolate" delimiters, HTML-escape interpolated data properties in
             * "escape" delimiters, and execute JavaScript in "evaluate" delimiters. Data
             * properties may be accessed as free variables in the template. If a setting
             * object is given, it takes precedence over `_.templateSettings` values.
             *
             * **Note:** In the development build `_.template` utilizes
             * [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)
             * for easier debugging.
             *
             * For more information on precompiling templates see
             * [lodash's custom builds documentation](https://lodash.com/custom-builds).
             *
             * For more information on Chrome extension sandboxes see
             * [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval).
             *
             * @static
             * @since 0.1.0
             * @memberOf _
             * @category String
             * @param {string} [string=''] The template string.
             * @param {Object} [options={}] The options object.
             * @param {RegExp} [options.escape=_.templateSettings.escape]
             *  The HTML "escape" delimiter.
             * @param {RegExp} [options.evaluate=_.templateSettings.evaluate]
             *  The "evaluate" delimiter.
             * @param {Object} [options.imports=_.templateSettings.imports]
             *  An object to import into the template as free variables.
             * @param {RegExp} [options.interpolate=_.templateSettings.interpolate]
             *  The "interpolate" delimiter.
             * @param {string} [options.sourceURL='lodash.templateSources[n]']
             *  The sourceURL of the compiled template.
             * @param {string} [options.variable='obj']
             *  The data object variable name.
             * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
             * @returns {Function} Returns the compiled template function.
             * @example
             *
             * // Use the "interpolate" delimiter to create a compiled template.
             * var compiled = _.template('hello <%= user %>!');
             * compiled({ 'user': 'fred' });
             * // => 'hello fred!'
             *
             * // Use the HTML "escape" delimiter to escape data property values.
             * var compiled = _.template('<b><%- value %></b>');
             * compiled({ 'value': '<script>' });
             * // => '<b>&lt;script&gt;</b>'
             *
             * // Use the "evaluate" delimiter to execute JavaScript and generate HTML.
             * var compiled = _.template('<% _.forEach(users, function(user) { %><li><%- user %></li><% }); %>');
             * compiled({ 'users': ['fred', 'barney'] });
             * // => '<li>fred</li><li>barney</li>'
             *
             * // Use the internal `print` function in "evaluate" delimiters.
             * var compiled = _.template('<% print("hello " + user); %>!');
             * compiled({ 'user': 'barney' });
             * // => 'hello barney!'
             *
             * // Use the ES template literal delimiter as an "interpolate" delimiter.
             * // Disable support by replacing the "interpolate" delimiter.
             * var compiled = _.template('hello ${ user }!');
             * compiled({ 'user': 'pebbles' });
             * // => 'hello pebbles!'
             *
             * // Use backslashes to treat delimiters as plain text.
             * var compiled = _.template('<%= "\\<%- value %\\>" %>');
             * compiled({ 'value': 'ignored' });
             * // => '<%- value %>'
             *
             * // Use the `imports` option to import `jQuery` as `jq`.
             * var text = '<% jq.each(users, function(user) { %><li><%- user %></li><% }); %>';
             * var compiled = _.template(text, { 'imports': { 'jq': jQuery } });
             * compiled({ 'users': ['fred', 'barney'] });
             * // => '<li>fred</li><li>barney</li>'
             *
             * // Use the `sourceURL` option to specify a custom sourceURL for the template.
             * var compiled = _.template('hello <%= user %>!', { 'sourceURL': '/basic/greeting.jst' });
             * compiled(data);
             * // => Find the source of "greeting.jst" under the Sources tab or Resources panel of the web inspector.
             *
             * // Use the `variable` option to ensure a with-statement isn't used in the compiled template.
             * var compiled = _.template('hi <%= data.user %>!', { 'variable': 'data' });
             * compiled.source;
             * // => function(data) {
             * //   var __t, __p = '';
             * //   __p += 'hi ' + ((__t = ( data.user )) == null ? '' : __t) + '!';
             * //   return __p;
             * // }
             *
             * // Use custom template delimiters.
             * _.templateSettings.interpolate = /{{([\s\S]+?)}}/g;
             * var compiled = _.template('hello {{ user }}!');
             * compiled({ 'user': 'mustache' });
             * // => 'hello mustache!'
             *
             * // Use the `source` property to inline compiled templates for meaningful
             * // line numbers in error messages and stack traces.
             * fs.writeFileSync(path.join(process.cwd(), 'jst.js'), '\
             *   var JST = {\
             *     "main": ' + _.template(mainText).source + '\
             *   };\
             * ');
             */


            function template(string, options, guard) {
              // Based on John Resig's `tmpl` implementation
              // (http://ejohn.org/blog/javascript-micro-templating/)
              // and Laura Doktorova's doT.js (https://github.com/olado/doT).
              var settings = lodash.templateSettings;

              if (guard && isIterateeCall(string, options, guard)) {
                options = undefined;
              }

              string = toString(string);
              options = assignInWith({}, options, settings, customDefaultsAssignIn);
              var imports = assignInWith({}, options.imports, settings.imports, customDefaultsAssignIn),
                  importsKeys = keys(imports),
                  importsValues = baseValues(imports, importsKeys);
              var isEscaping,
                  isEvaluating,
                  index = 0,
                  interpolate = options.interpolate || reNoMatch,
                  source = "__p += '"; // Compile the regexp to match each delimiter.

              var reDelimiters = RegExp((options.escape || reNoMatch).source + '|' + interpolate.source + '|' + (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + '|' + (options.evaluate || reNoMatch).source + '|$', 'g'); // Use a sourceURL for easier debugging.
              // The sourceURL gets injected into the source that's eval-ed, so be careful
              // to normalize all kinds of whitespace, so e.g. newlines (and unicode versions of it) can't sneak in
              // and escape the comment, thus injecting code that gets evaled.

              var sourceURL = '//# sourceURL=' + (hasOwnProperty.call(options, 'sourceURL') ? (options.sourceURL + '').replace(/\s/g, ' ') : 'lodash.templateSources[' + ++templateCounter + ']') + '\n';
              string.replace(reDelimiters, function (match, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {
                interpolateValue || (interpolateValue = esTemplateValue); // Escape characters that can't be included in string literals.

                source += string.slice(index, offset).replace(reUnescapedString, escapeStringChar); // Replace delimiters with snippets.

                if (escapeValue) {
                  isEscaping = true;
                  source += "' +\n__e(" + escapeValue + ") +\n'";
                }

                if (evaluateValue) {
                  isEvaluating = true;
                  source += "';\n" + evaluateValue + ";\n__p += '";
                }

                if (interpolateValue) {
                  source += "' +\n((__t = (" + interpolateValue + ")) == null ? '' : __t) +\n'";
                }

                index = offset + match.length; // The JS engine embedded in Adobe products needs `match` returned in
                // order to produce the correct `offset` value.

                return match;
              });
              source += "';\n"; // If `variable` is not specified wrap a with-statement around the generated
              // code to add the data object to the top of the scope chain.

              var variable = hasOwnProperty.call(options, 'variable') && options.variable;

              if (!variable) {
                source = 'with (obj) {\n' + source + '\n}\n';
              } // Cleanup code by stripping empty strings.


              source = (isEvaluating ? source.replace(reEmptyStringLeading, '') : source).replace(reEmptyStringMiddle, '$1').replace(reEmptyStringTrailing, '$1;'); // Frame code as the function body.

              source = 'function(' + (variable || 'obj') + ') {\n' + (variable ? '' : 'obj || (obj = {});\n') + "var __t, __p = ''" + (isEscaping ? ', __e = _.escape' : '') + (isEvaluating ? ', __j = Array.prototype.join;\n' + "function print() { __p += __j.call(arguments, '') }\n" : ';\n') + source + 'return __p\n}';
              var result = attempt(function () {
                return Function(importsKeys, sourceURL + 'return ' + source).apply(undefined, importsValues);
              }); // Provide the compiled function's source by its `toString` method or
              // the `source` property as a convenience for inlining compiled templates.

              result.source = source;

              if (isError(result)) {
                throw result;
              }

              return result;
            }
            /**
             * Converts `string`, as a whole, to lower case just like
             * [String#toLowerCase](https://mdn.io/toLowerCase).
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category String
             * @param {string} [string=''] The string to convert.
             * @returns {string} Returns the lower cased string.
             * @example
             *
             * _.toLower('--Foo-Bar--');
             * // => '--foo-bar--'
             *
             * _.toLower('fooBar');
             * // => 'foobar'
             *
             * _.toLower('__FOO_BAR__');
             * // => '__foo_bar__'
             */


            function toLower(value) {
              return toString(value).toLowerCase();
            }
            /**
             * Converts `string`, as a whole, to upper case just like
             * [String#toUpperCase](https://mdn.io/toUpperCase).
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category String
             * @param {string} [string=''] The string to convert.
             * @returns {string} Returns the upper cased string.
             * @example
             *
             * _.toUpper('--foo-bar--');
             * // => '--FOO-BAR--'
             *
             * _.toUpper('fooBar');
             * // => 'FOOBAR'
             *
             * _.toUpper('__foo_bar__');
             * // => '__FOO_BAR__'
             */


            function toUpper(value) {
              return toString(value).toUpperCase();
            }
            /**
             * Removes leading and trailing whitespace or specified characters from `string`.
             *
             * @static
             * @memberOf _
             * @since 3.0.0
             * @category String
             * @param {string} [string=''] The string to trim.
             * @param {string} [chars=whitespace] The characters to trim.
             * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
             * @returns {string} Returns the trimmed string.
             * @example
             *
             * _.trim('  abc  ');
             * // => 'abc'
             *
             * _.trim('-_-abc-_-', '_-');
             * // => 'abc'
             *
             * _.map(['  foo  ', '  bar  '], _.trim);
             * // => ['foo', 'bar']
             */


            function trim(string, chars, guard) {
              string = toString(string);

              if (string && (guard || chars === undefined)) {
                return string.replace(reTrim, '');
              }

              if (!string || !(chars = baseToString(chars))) {
                return string;
              }

              var strSymbols = stringToArray(string),
                  chrSymbols = stringToArray(chars),
                  start = charsStartIndex(strSymbols, chrSymbols),
                  end = charsEndIndex(strSymbols, chrSymbols) + 1;
              return castSlice(strSymbols, start, end).join('');
            }
            /**
             * Removes trailing whitespace or specified characters from `string`.
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category String
             * @param {string} [string=''] The string to trim.
             * @param {string} [chars=whitespace] The characters to trim.
             * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
             * @returns {string} Returns the trimmed string.
             * @example
             *
             * _.trimEnd('  abc  ');
             * // => '  abc'
             *
             * _.trimEnd('-_-abc-_-', '_-');
             * // => '-_-abc'
             */


            function trimEnd(string, chars, guard) {
              string = toString(string);

              if (string && (guard || chars === undefined)) {
                return string.replace(reTrimEnd, '');
              }

              if (!string || !(chars = baseToString(chars))) {
                return string;
              }

              var strSymbols = stringToArray(string),
                  end = charsEndIndex(strSymbols, stringToArray(chars)) + 1;
              return castSlice(strSymbols, 0, end).join('');
            }
            /**
             * Removes leading whitespace or specified characters from `string`.
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category String
             * @param {string} [string=''] The string to trim.
             * @param {string} [chars=whitespace] The characters to trim.
             * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
             * @returns {string} Returns the trimmed string.
             * @example
             *
             * _.trimStart('  abc  ');
             * // => 'abc  '
             *
             * _.trimStart('-_-abc-_-', '_-');
             * // => 'abc-_-'
             */


            function trimStart(string, chars, guard) {
              string = toString(string);

              if (string && (guard || chars === undefined)) {
                return string.replace(reTrimStart, '');
              }

              if (!string || !(chars = baseToString(chars))) {
                return string;
              }

              var strSymbols = stringToArray(string),
                  start = charsStartIndex(strSymbols, stringToArray(chars));
              return castSlice(strSymbols, start).join('');
            }
            /**
             * Truncates `string` if it's longer than the given maximum string length.
             * The last characters of the truncated string are replaced with the omission
             * string which defaults to "...".
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category String
             * @param {string} [string=''] The string to truncate.
             * @param {Object} [options={}] The options object.
             * @param {number} [options.length=30] The maximum string length.
             * @param {string} [options.omission='...'] The string to indicate text is omitted.
             * @param {RegExp|string} [options.separator] The separator pattern to truncate to.
             * @returns {string} Returns the truncated string.
             * @example
             *
             * _.truncate('hi-diddly-ho there, neighborino');
             * // => 'hi-diddly-ho there, neighbo...'
             *
             * _.truncate('hi-diddly-ho there, neighborino', {
             *   'length': 24,
             *   'separator': ' '
             * });
             * // => 'hi-diddly-ho there,...'
             *
             * _.truncate('hi-diddly-ho there, neighborino', {
             *   'length': 24,
             *   'separator': /,? +/
             * });
             * // => 'hi-diddly-ho there...'
             *
             * _.truncate('hi-diddly-ho there, neighborino', {
             *   'omission': ' [...]'
             * });
             * // => 'hi-diddly-ho there, neig [...]'
             */


            function truncate(string, options) {
              var length = DEFAULT_TRUNC_LENGTH,
                  omission = DEFAULT_TRUNC_OMISSION;

              if (isObject(options)) {
                var separator = 'separator' in options ? options.separator : separator;
                length = 'length' in options ? toInteger(options.length) : length;
                omission = 'omission' in options ? baseToString(options.omission) : omission;
              }

              string = toString(string);
              var strLength = string.length;

              if (hasUnicode(string)) {
                var strSymbols = stringToArray(string);
                strLength = strSymbols.length;
              }

              if (length >= strLength) {
                return string;
              }

              var end = length - stringSize(omission);

              if (end < 1) {
                return omission;
              }

              var result = strSymbols ? castSlice(strSymbols, 0, end).join('') : string.slice(0, end);

              if (separator === undefined) {
                return result + omission;
              }

              if (strSymbols) {
                end += result.length - end;
              }

              if (isRegExp(separator)) {
                if (string.slice(end).search(separator)) {
                  var match,
                      substring = result;

                  if (!separator.global) {
                    separator = RegExp(separator.source, toString(reFlags.exec(separator)) + 'g');
                  }

                  separator.lastIndex = 0;

                  while (match = separator.exec(substring)) {
                    var newEnd = match.index;
                  }

                  result = result.slice(0, newEnd === undefined ? end : newEnd);
                }
              } else if (string.indexOf(baseToString(separator), end) != end) {
                var index = result.lastIndexOf(separator);

                if (index > -1) {
                  result = result.slice(0, index);
                }
              }

              return result + omission;
            }
            /**
             * The inverse of `_.escape`; this method converts the HTML entities
             * `&amp;`, `&lt;`, `&gt;`, `&quot;`, and `&#39;` in `string` to
             * their corresponding characters.
             *
             * **Note:** No other HTML entities are unescaped. To unescape additional
             * HTML entities use a third-party library like [_he_](https://mths.be/he).
             *
             * @static
             * @memberOf _
             * @since 0.6.0
             * @category String
             * @param {string} [string=''] The string to unescape.
             * @returns {string} Returns the unescaped string.
             * @example
             *
             * _.unescape('fred, barney, &amp; pebbles');
             * // => 'fred, barney, & pebbles'
             */


            function unescape(string) {
              string = toString(string);
              return string && reHasEscapedHtml.test(string) ? string.replace(reEscapedHtml, unescapeHtmlChar) : string;
            }
            /**
             * Converts `string`, as space separated words, to upper case.
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category String
             * @param {string} [string=''] The string to convert.
             * @returns {string} Returns the upper cased string.
             * @example
             *
             * _.upperCase('--foo-bar');
             * // => 'FOO BAR'
             *
             * _.upperCase('fooBar');
             * // => 'FOO BAR'
             *
             * _.upperCase('__foo_bar__');
             * // => 'FOO BAR'
             */


            var upperCase = createCompounder(function (result, word, index) {
              return result + (index ? ' ' : '') + word.toUpperCase();
            });
            /**
             * Converts the first character of `string` to upper case.
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category String
             * @param {string} [string=''] The string to convert.
             * @returns {string} Returns the converted string.
             * @example
             *
             * _.upperFirst('fred');
             * // => 'Fred'
             *
             * _.upperFirst('FRED');
             * // => 'FRED'
             */

            var upperFirst = createCaseFirst('toUpperCase');
            /**
             * Splits `string` into an array of its words.
             *
             * @static
             * @memberOf _
             * @since 3.0.0
             * @category String
             * @param {string} [string=''] The string to inspect.
             * @param {RegExp|string} [pattern] The pattern to match words.
             * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
             * @returns {Array} Returns the words of `string`.
             * @example
             *
             * _.words('fred, barney, & pebbles');
             * // => ['fred', 'barney', 'pebbles']
             *
             * _.words('fred, barney, & pebbles', /[^, ]+/g);
             * // => ['fred', 'barney', '&', 'pebbles']
             */

            function words(string, pattern, guard) {
              string = toString(string);
              pattern = guard ? undefined : pattern;

              if (pattern === undefined) {
                return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);
              }

              return string.match(pattern) || [];
            }
            /*------------------------------------------------------------------------*/

            /**
             * Attempts to invoke `func`, returning either the result or the caught error
             * object. Any additional arguments are provided to `func` when it's invoked.
             *
             * @static
             * @memberOf _
             * @since 3.0.0
             * @category Util
             * @param {Function} func The function to attempt.
             * @param {...*} [args] The arguments to invoke `func` with.
             * @returns {*} Returns the `func` result or error object.
             * @example
             *
             * // Avoid throwing errors for invalid selectors.
             * var elements = _.attempt(function(selector) {
             *   return document.querySelectorAll(selector);
             * }, '>_>');
             *
             * if (_.isError(elements)) {
             *   elements = [];
             * }
             */


            var attempt = baseRest(function (func, args) {
              try {
                return apply(func, undefined, args);
              } catch (e) {
                return isError(e) ? e : new Error(e);
              }
            });
            /**
             * Binds methods of an object to the object itself, overwriting the existing
             * method.
             *
             * **Note:** This method doesn't set the "length" property of bound functions.
             *
             * @static
             * @since 0.1.0
             * @memberOf _
             * @category Util
             * @param {Object} object The object to bind and assign the bound methods to.
             * @param {...(string|string[])} methodNames The object method names to bind.
             * @returns {Object} Returns `object`.
             * @example
             *
             * var view = {
             *   'label': 'docs',
             *   'click': function() {
             *     console.log('clicked ' + this.label);
             *   }
             * };
             *
             * _.bindAll(view, ['click']);
             * jQuery(element).on('click', view.click);
             * // => Logs 'clicked docs' when clicked.
             */

            var bindAll = flatRest(function (object, methodNames) {
              arrayEach(methodNames, function (key) {
                key = toKey(key);
                baseAssignValue(object, key, bind(object[key], object));
              });
              return object;
            });
            /**
             * Creates a function that iterates over `pairs` and invokes the corresponding
             * function of the first predicate to return truthy. The predicate-function
             * pairs are invoked with the `this` binding and arguments of the created
             * function.
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Util
             * @param {Array} pairs The predicate-function pairs.
             * @returns {Function} Returns the new composite function.
             * @example
             *
             * var func = _.cond([
             *   [_.matches({ 'a': 1 }),           _.constant('matches A')],
             *   [_.conforms({ 'b': _.isNumber }), _.constant('matches B')],
             *   [_.stubTrue,                      _.constant('no match')]
             * ]);
             *
             * func({ 'a': 1, 'b': 2 });
             * // => 'matches A'
             *
             * func({ 'a': 0, 'b': 1 });
             * // => 'matches B'
             *
             * func({ 'a': '1', 'b': '2' });
             * // => 'no match'
             */

            function cond(pairs) {
              var length = pairs == null ? 0 : pairs.length,
                  toIteratee = getIteratee();
              pairs = !length ? [] : arrayMap(pairs, function (pair) {
                if (typeof pair[1] != 'function') {
                  throw new TypeError(FUNC_ERROR_TEXT);
                }

                return [toIteratee(pair[0]), pair[1]];
              });
              return baseRest(function (args) {
                var index = -1;

                while (++index < length) {
                  var pair = pairs[index];

                  if (apply(pair[0], this, args)) {
                    return apply(pair[1], this, args);
                  }
                }
              });
            }
            /**
             * Creates a function that invokes the predicate properties of `source` with
             * the corresponding property values of a given object, returning `true` if
             * all predicates return truthy, else `false`.
             *
             * **Note:** The created function is equivalent to `_.conformsTo` with
             * `source` partially applied.
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Util
             * @param {Object} source The object of property predicates to conform to.
             * @returns {Function} Returns the new spec function.
             * @example
             *
             * var objects = [
             *   { 'a': 2, 'b': 1 },
             *   { 'a': 1, 'b': 2 }
             * ];
             *
             * _.filter(objects, _.conforms({ 'b': function(n) { return n > 1; } }));
             * // => [{ 'a': 1, 'b': 2 }]
             */


            function conforms(source) {
              return baseConforms(baseClone(source, CLONE_DEEP_FLAG));
            }
            /**
             * Creates a function that returns `value`.
             *
             * @static
             * @memberOf _
             * @since 2.4.0
             * @category Util
             * @param {*} value The value to return from the new function.
             * @returns {Function} Returns the new constant function.
             * @example
             *
             * var objects = _.times(2, _.constant({ 'a': 1 }));
             *
             * console.log(objects);
             * // => [{ 'a': 1 }, { 'a': 1 }]
             *
             * console.log(objects[0] === objects[1]);
             * // => true
             */


            function constant(value) {
              return function () {
                return value;
              };
            }
            /**
             * Checks `value` to determine whether a default value should be returned in
             * its place. The `defaultValue` is returned if `value` is `NaN`, `null`,
             * or `undefined`.
             *
             * @static
             * @memberOf _
             * @since 4.14.0
             * @category Util
             * @param {*} value The value to check.
             * @param {*} defaultValue The default value.
             * @returns {*} Returns the resolved value.
             * @example
             *
             * _.defaultTo(1, 10);
             * // => 1
             *
             * _.defaultTo(undefined, 10);
             * // => 10
             */


            function defaultTo(value, defaultValue) {
              return value == null || value !== value ? defaultValue : value;
            }
            /**
             * Creates a function that returns the result of invoking the given functions
             * with the `this` binding of the created function, where each successive
             * invocation is supplied the return value of the previous.
             *
             * @static
             * @memberOf _
             * @since 3.0.0
             * @category Util
             * @param {...(Function|Function[])} [funcs] The functions to invoke.
             * @returns {Function} Returns the new composite function.
             * @see _.flowRight
             * @example
             *
             * function square(n) {
             *   return n * n;
             * }
             *
             * var addSquare = _.flow([_.add, square]);
             * addSquare(1, 2);
             * // => 9
             */


            var flow = createFlow();
            /**
             * This method is like `_.flow` except that it creates a function that
             * invokes the given functions from right to left.
             *
             * @static
             * @since 3.0.0
             * @memberOf _
             * @category Util
             * @param {...(Function|Function[])} [funcs] The functions to invoke.
             * @returns {Function} Returns the new composite function.
             * @see _.flow
             * @example
             *
             * function square(n) {
             *   return n * n;
             * }
             *
             * var addSquare = _.flowRight([square, _.add]);
             * addSquare(1, 2);
             * // => 9
             */

            var flowRight = createFlow(true);
            /**
             * This method returns the first argument it receives.
             *
             * @static
             * @since 0.1.0
             * @memberOf _
             * @category Util
             * @param {*} value Any value.
             * @returns {*} Returns `value`.
             * @example
             *
             * var object = { 'a': 1 };
             *
             * console.log(_.identity(object) === object);
             * // => true
             */

            function identity(value) {
              return value;
            }
            /**
             * Creates a function that invokes `func` with the arguments of the created
             * function. If `func` is a property name, the created function returns the
             * property value for a given element. If `func` is an array or object, the
             * created function returns `true` for elements that contain the equivalent
             * source properties, otherwise it returns `false`.
             *
             * @static
             * @since 4.0.0
             * @memberOf _
             * @category Util
             * @param {*} [func=_.identity] The value to convert to a callback.
             * @returns {Function} Returns the callback.
             * @example
             *
             * var users = [
             *   { 'user': 'barney', 'age': 36, 'active': true },
             *   { 'user': 'fred',   'age': 40, 'active': false }
             * ];
             *
             * // The `_.matches` iteratee shorthand.
             * _.filter(users, _.iteratee({ 'user': 'barney', 'active': true }));
             * // => [{ 'user': 'barney', 'age': 36, 'active': true }]
             *
             * // The `_.matchesProperty` iteratee shorthand.
             * _.filter(users, _.iteratee(['user', 'fred']));
             * // => [{ 'user': 'fred', 'age': 40 }]
             *
             * // The `_.property` iteratee shorthand.
             * _.map(users, _.iteratee('user'));
             * // => ['barney', 'fred']
             *
             * // Create custom iteratee shorthands.
             * _.iteratee = _.wrap(_.iteratee, function(iteratee, func) {
             *   return !_.isRegExp(func) ? iteratee(func) : function(string) {
             *     return func.test(string);
             *   };
             * });
             *
             * _.filter(['abc', 'def'], /ef/);
             * // => ['def']
             */


            function iteratee(func) {
              return baseIteratee(typeof func == 'function' ? func : baseClone(func, CLONE_DEEP_FLAG));
            }
            /**
             * Creates a function that performs a partial deep comparison between a given
             * object and `source`, returning `true` if the given object has equivalent
             * property values, else `false`.
             *
             * **Note:** The created function is equivalent to `_.isMatch` with `source`
             * partially applied.
             *
             * Partial comparisons will match empty array and empty object `source`
             * values against any array or object value, respectively. See `_.isEqual`
             * for a list of supported value comparisons.
             *
             * **Note:** Multiple values can be checked by combining several matchers
             * using `_.overSome`
             *
             * @static
             * @memberOf _
             * @since 3.0.0
             * @category Util
             * @param {Object} source The object of property values to match.
             * @returns {Function} Returns the new spec function.
             * @example
             *
             * var objects = [
             *   { 'a': 1, 'b': 2, 'c': 3 },
             *   { 'a': 4, 'b': 5, 'c': 6 }
             * ];
             *
             * _.filter(objects, _.matches({ 'a': 4, 'c': 6 }));
             * // => [{ 'a': 4, 'b': 5, 'c': 6 }]
             *
             * // Checking for several possible values
             * _.filter(objects, _.overSome([_.matches({ 'a': 1 }), _.matches({ 'a': 4 })]));
             * // => [{ 'a': 1, 'b': 2, 'c': 3 }, { 'a': 4, 'b': 5, 'c': 6 }]
             */


            function matches(source) {
              return baseMatches(baseClone(source, CLONE_DEEP_FLAG));
            }
            /**
             * Creates a function that performs a partial deep comparison between the
             * value at `path` of a given object to `srcValue`, returning `true` if the
             * object value is equivalent, else `false`.
             *
             * **Note:** Partial comparisons will match empty array and empty object
             * `srcValue` values against any array or object value, respectively. See
             * `_.isEqual` for a list of supported value comparisons.
             *
             * **Note:** Multiple values can be checked by combining several matchers
             * using `_.overSome`
             *
             * @static
             * @memberOf _
             * @since 3.2.0
             * @category Util
             * @param {Array|string} path The path of the property to get.
             * @param {*} srcValue The value to match.
             * @returns {Function} Returns the new spec function.
             * @example
             *
             * var objects = [
             *   { 'a': 1, 'b': 2, 'c': 3 },
             *   { 'a': 4, 'b': 5, 'c': 6 }
             * ];
             *
             * _.find(objects, _.matchesProperty('a', 4));
             * // => { 'a': 4, 'b': 5, 'c': 6 }
             *
             * // Checking for several possible values
             * _.filter(objects, _.overSome([_.matchesProperty('a', 1), _.matchesProperty('a', 4)]));
             * // => [{ 'a': 1, 'b': 2, 'c': 3 }, { 'a': 4, 'b': 5, 'c': 6 }]
             */


            function matchesProperty(path, srcValue) {
              return baseMatchesProperty(path, baseClone(srcValue, CLONE_DEEP_FLAG));
            }
            /**
             * Creates a function that invokes the method at `path` of a given object.
             * Any additional arguments are provided to the invoked method.
             *
             * @static
             * @memberOf _
             * @since 3.7.0
             * @category Util
             * @param {Array|string} path The path of the method to invoke.
             * @param {...*} [args] The arguments to invoke the method with.
             * @returns {Function} Returns the new invoker function.
             * @example
             *
             * var objects = [
             *   { 'a': { 'b': _.constant(2) } },
             *   { 'a': { 'b': _.constant(1) } }
             * ];
             *
             * _.map(objects, _.method('a.b'));
             * // => [2, 1]
             *
             * _.map(objects, _.method(['a', 'b']));
             * // => [2, 1]
             */


            var method = baseRest(function (path, args) {
              return function (object) {
                return baseInvoke(object, path, args);
              };
            });
            /**
             * The opposite of `_.method`; this method creates a function that invokes
             * the method at a given path of `object`. Any additional arguments are
             * provided to the invoked method.
             *
             * @static
             * @memberOf _
             * @since 3.7.0
             * @category Util
             * @param {Object} object The object to query.
             * @param {...*} [args] The arguments to invoke the method with.
             * @returns {Function} Returns the new invoker function.
             * @example
             *
             * var array = _.times(3, _.constant),
             *     object = { 'a': array, 'b': array, 'c': array };
             *
             * _.map(['a[2]', 'c[0]'], _.methodOf(object));
             * // => [2, 0]
             *
             * _.map([['a', '2'], ['c', '0']], _.methodOf(object));
             * // => [2, 0]
             */

            var methodOf = baseRest(function (object, args) {
              return function (path) {
                return baseInvoke(object, path, args);
              };
            });
            /**
             * Adds all own enumerable string keyed function properties of a source
             * object to the destination object. If `object` is a function, then methods
             * are added to its prototype as well.
             *
             * **Note:** Use `_.runInContext` to create a pristine `lodash` function to
             * avoid conflicts caused by modifying the original.
             *
             * @static
             * @since 0.1.0
             * @memberOf _
             * @category Util
             * @param {Function|Object} [object=lodash] The destination object.
             * @param {Object} source The object of functions to add.
             * @param {Object} [options={}] The options object.
             * @param {boolean} [options.chain=true] Specify whether mixins are chainable.
             * @returns {Function|Object} Returns `object`.
             * @example
             *
             * function vowels(string) {
             *   return _.filter(string, function(v) {
             *     return /[aeiou]/i.test(v);
             *   });
             * }
             *
             * _.mixin({ 'vowels': vowels });
             * _.vowels('fred');
             * // => ['e']
             *
             * _('fred').vowels().value();
             * // => ['e']
             *
             * _.mixin({ 'vowels': vowels }, { 'chain': false });
             * _('fred').vowels();
             * // => ['e']
             */

            function mixin(object, source, options) {
              var props = keys(source),
                  methodNames = baseFunctions(source, props);

              if (options == null && !(isObject(source) && (methodNames.length || !props.length))) {
                options = source;
                source = object;
                object = this;
                methodNames = baseFunctions(source, keys(source));
              }

              var chain = !(isObject(options) && 'chain' in options) || !!options.chain,
                  isFunc = isFunction(object);
              arrayEach(methodNames, function (methodName) {
                var func = source[methodName];
                object[methodName] = func;

                if (isFunc) {
                  object.prototype[methodName] = function () {
                    var chainAll = this.__chain__;

                    if (chain || chainAll) {
                      var result = object(this.__wrapped__),
                          actions = result.__actions__ = copyArray(this.__actions__);
                      actions.push({
                        'func': func,
                        'args': arguments,
                        'thisArg': object
                      });
                      result.__chain__ = chainAll;
                      return result;
                    }

                    return func.apply(object, arrayPush([this.value()], arguments));
                  };
                }
              });
              return object;
            }
            /**
             * Reverts the `_` variable to its previous value and returns a reference to
             * the `lodash` function.
             *
             * @static
             * @since 0.1.0
             * @memberOf _
             * @category Util
             * @returns {Function} Returns the `lodash` function.
             * @example
             *
             * var lodash = _.noConflict();
             */


            function noConflict() {
              if (root._ === this) {
                root._ = oldDash;
              }

              return this;
            }
            /**
             * This method returns `undefined`.
             *
             * @static
             * @memberOf _
             * @since 2.3.0
             * @category Util
             * @example
             *
             * _.times(2, _.noop);
             * // => [undefined, undefined]
             */


            function noop() {// No operation performed.
            }
            /**
             * Creates a function that gets the argument at index `n`. If `n` is negative,
             * the nth argument from the end is returned.
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Util
             * @param {number} [n=0] The index of the argument to return.
             * @returns {Function} Returns the new pass-thru function.
             * @example
             *
             * var func = _.nthArg(1);
             * func('a', 'b', 'c', 'd');
             * // => 'b'
             *
             * var func = _.nthArg(-2);
             * func('a', 'b', 'c', 'd');
             * // => 'c'
             */


            function nthArg(n) {
              n = toInteger(n);
              return baseRest(function (args) {
                return baseNth(args, n);
              });
            }
            /**
             * Creates a function that invokes `iteratees` with the arguments it receives
             * and returns their results.
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Util
             * @param {...(Function|Function[])} [iteratees=[_.identity]]
             *  The iteratees to invoke.
             * @returns {Function} Returns the new function.
             * @example
             *
             * var func = _.over([Math.max, Math.min]);
             *
             * func(1, 2, 3, 4);
             * // => [4, 1]
             */


            var over = createOver(arrayMap);
            /**
             * Creates a function that checks if **all** of the `predicates` return
             * truthy when invoked with the arguments it receives.
             *
             * Following shorthands are possible for providing predicates.
             * Pass an `Object` and it will be used as an parameter for `_.matches` to create the predicate.
             * Pass an `Array` of parameters for `_.matchesProperty` and the predicate will be created using them.
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Util
             * @param {...(Function|Function[])} [predicates=[_.identity]]
             *  The predicates to check.
             * @returns {Function} Returns the new function.
             * @example
             *
             * var func = _.overEvery([Boolean, isFinite]);
             *
             * func('1');
             * // => true
             *
             * func(null);
             * // => false
             *
             * func(NaN);
             * // => false
             */

            var overEvery = createOver(arrayEvery);
            /**
             * Creates a function that checks if **any** of the `predicates` return
             * truthy when invoked with the arguments it receives.
             *
             * Following shorthands are possible for providing predicates.
             * Pass an `Object` and it will be used as an parameter for `_.matches` to create the predicate.
             * Pass an `Array` of parameters for `_.matchesProperty` and the predicate will be created using them.
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Util
             * @param {...(Function|Function[])} [predicates=[_.identity]]
             *  The predicates to check.
             * @returns {Function} Returns the new function.
             * @example
             *
             * var func = _.overSome([Boolean, isFinite]);
             *
             * func('1');
             * // => true
             *
             * func(null);
             * // => true
             *
             * func(NaN);
             * // => false
             *
             * var matchesFunc = _.overSome([{ 'a': 1 }, { 'a': 2 }])
             * var matchesPropertyFunc = _.overSome([['a', 1], ['a', 2]])
             */

            var overSome = createOver(arraySome);
            /**
             * Creates a function that returns the value at `path` of a given object.
             *
             * @static
             * @memberOf _
             * @since 2.4.0
             * @category Util
             * @param {Array|string} path The path of the property to get.
             * @returns {Function} Returns the new accessor function.
             * @example
             *
             * var objects = [
             *   { 'a': { 'b': 2 } },
             *   { 'a': { 'b': 1 } }
             * ];
             *
             * _.map(objects, _.property('a.b'));
             * // => [2, 1]
             *
             * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
             * // => [1, 2]
             */

            function property(path) {
              return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
            }
            /**
             * The opposite of `_.property`; this method creates a function that returns
             * the value at a given path of `object`.
             *
             * @static
             * @memberOf _
             * @since 3.0.0
             * @category Util
             * @param {Object} object The object to query.
             * @returns {Function} Returns the new accessor function.
             * @example
             *
             * var array = [0, 1, 2],
             *     object = { 'a': array, 'b': array, 'c': array };
             *
             * _.map(['a[2]', 'c[0]'], _.propertyOf(object));
             * // => [2, 0]
             *
             * _.map([['a', '2'], ['c', '0']], _.propertyOf(object));
             * // => [2, 0]
             */


            function propertyOf(object) {
              return function (path) {
                return object == null ? undefined : baseGet(object, path);
              };
            }
            /**
             * Creates an array of numbers (positive and/or negative) progressing from
             * `start` up to, but not including, `end`. A step of `-1` is used if a negative
             * `start` is specified without an `end` or `step`. If `end` is not specified,
             * it's set to `start` with `start` then set to `0`.
             *
             * **Note:** JavaScript follows the IEEE-754 standard for resolving
             * floating-point values which can produce unexpected results.
             *
             * @static
             * @since 0.1.0
             * @memberOf _
             * @category Util
             * @param {number} [start=0] The start of the range.
             * @param {number} end The end of the range.
             * @param {number} [step=1] The value to increment or decrement by.
             * @returns {Array} Returns the range of numbers.
             * @see _.inRange, _.rangeRight
             * @example
             *
             * _.range(4);
             * // => [0, 1, 2, 3]
             *
             * _.range(-4);
             * // => [0, -1, -2, -3]
             *
             * _.range(1, 5);
             * // => [1, 2, 3, 4]
             *
             * _.range(0, 20, 5);
             * // => [0, 5, 10, 15]
             *
             * _.range(0, -4, -1);
             * // => [0, -1, -2, -3]
             *
             * _.range(1, 4, 0);
             * // => [1, 1, 1]
             *
             * _.range(0);
             * // => []
             */


            var range = createRange();
            /**
             * This method is like `_.range` except that it populates values in
             * descending order.
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Util
             * @param {number} [start=0] The start of the range.
             * @param {number} end The end of the range.
             * @param {number} [step=1] The value to increment or decrement by.
             * @returns {Array} Returns the range of numbers.
             * @see _.inRange, _.range
             * @example
             *
             * _.rangeRight(4);
             * // => [3, 2, 1, 0]
             *
             * _.rangeRight(-4);
             * // => [-3, -2, -1, 0]
             *
             * _.rangeRight(1, 5);
             * // => [4, 3, 2, 1]
             *
             * _.rangeRight(0, 20, 5);
             * // => [15, 10, 5, 0]
             *
             * _.rangeRight(0, -4, -1);
             * // => [-3, -2, -1, 0]
             *
             * _.rangeRight(1, 4, 0);
             * // => [1, 1, 1]
             *
             * _.rangeRight(0);
             * // => []
             */

            var rangeRight = createRange(true);
            /**
             * This method returns a new empty array.
             *
             * @static
             * @memberOf _
             * @since 4.13.0
             * @category Util
             * @returns {Array} Returns the new empty array.
             * @example
             *
             * var arrays = _.times(2, _.stubArray);
             *
             * console.log(arrays);
             * // => [[], []]
             *
             * console.log(arrays[0] === arrays[1]);
             * // => false
             */

            function stubArray() {
              return [];
            }
            /**
             * This method returns `false`.
             *
             * @static
             * @memberOf _
             * @since 4.13.0
             * @category Util
             * @returns {boolean} Returns `false`.
             * @example
             *
             * _.times(2, _.stubFalse);
             * // => [false, false]
             */


            function stubFalse() {
              return false;
            }
            /**
             * This method returns a new empty object.
             *
             * @static
             * @memberOf _
             * @since 4.13.0
             * @category Util
             * @returns {Object} Returns the new empty object.
             * @example
             *
             * var objects = _.times(2, _.stubObject);
             *
             * console.log(objects);
             * // => [{}, {}]
             *
             * console.log(objects[0] === objects[1]);
             * // => false
             */


            function stubObject() {
              return {};
            }
            /**
             * This method returns an empty string.
             *
             * @static
             * @memberOf _
             * @since 4.13.0
             * @category Util
             * @returns {string} Returns the empty string.
             * @example
             *
             * _.times(2, _.stubString);
             * // => ['', '']
             */


            function stubString() {
              return '';
            }
            /**
             * This method returns `true`.
             *
             * @static
             * @memberOf _
             * @since 4.13.0
             * @category Util
             * @returns {boolean} Returns `true`.
             * @example
             *
             * _.times(2, _.stubTrue);
             * // => [true, true]
             */


            function stubTrue() {
              return true;
            }
            /**
             * Invokes the iteratee `n` times, returning an array of the results of
             * each invocation. The iteratee is invoked with one argument; (index).
             *
             * @static
             * @since 0.1.0
             * @memberOf _
             * @category Util
             * @param {number} n The number of times to invoke `iteratee`.
             * @param {Function} [iteratee=_.identity] The function invoked per iteration.
             * @returns {Array} Returns the array of results.
             * @example
             *
             * _.times(3, String);
             * // => ['0', '1', '2']
             *
             *  _.times(4, _.constant(0));
             * // => [0, 0, 0, 0]
             */


            function times(n, iteratee) {
              n = toInteger(n);

              if (n < 1 || n > MAX_SAFE_INTEGER) {
                return [];
              }

              var index = MAX_ARRAY_LENGTH,
                  length = nativeMin(n, MAX_ARRAY_LENGTH);
              iteratee = getIteratee(iteratee);
              n -= MAX_ARRAY_LENGTH;
              var result = baseTimes(length, iteratee);

              while (++index < n) {
                iteratee(index);
              }

              return result;
            }
            /**
             * Converts `value` to a property path array.
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Util
             * @param {*} value The value to convert.
             * @returns {Array} Returns the new property path array.
             * @example
             *
             * _.toPath('a.b.c');
             * // => ['a', 'b', 'c']
             *
             * _.toPath('a[0].b.c');
             * // => ['a', '0', 'b', 'c']
             */


            function toPath(value) {
              if (isArray(value)) {
                return arrayMap(value, toKey);
              }

              return isSymbol(value) ? [value] : copyArray(stringToPath(toString(value)));
            }
            /**
             * Generates a unique ID. If `prefix` is given, the ID is appended to it.
             *
             * @static
             * @since 0.1.0
             * @memberOf _
             * @category Util
             * @param {string} [prefix=''] The value to prefix the ID with.
             * @returns {string} Returns the unique ID.
             * @example
             *
             * _.uniqueId('contact_');
             * // => 'contact_104'
             *
             * _.uniqueId();
             * // => '105'
             */


            function uniqueId(prefix) {
              var id = ++idCounter;
              return toString(prefix) + id;
            }
            /*------------------------------------------------------------------------*/

            /**
             * Adds two numbers.
             *
             * @static
             * @memberOf _
             * @since 3.4.0
             * @category Math
             * @param {number} augend The first number in an addition.
             * @param {number} addend The second number in an addition.
             * @returns {number} Returns the total.
             * @example
             *
             * _.add(6, 4);
             * // => 10
             */


            var add = createMathOperation(function (augend, addend) {
              return augend + addend;
            }, 0);
            /**
             * Computes `number` rounded up to `precision`.
             *
             * @static
             * @memberOf _
             * @since 3.10.0
             * @category Math
             * @param {number} number The number to round up.
             * @param {number} [precision=0] The precision to round up to.
             * @returns {number} Returns the rounded up number.
             * @example
             *
             * _.ceil(4.006);
             * // => 5
             *
             * _.ceil(6.004, 2);
             * // => 6.01
             *
             * _.ceil(6040, -2);
             * // => 6100
             */

            var ceil = createRound('ceil');
            /**
             * Divide two numbers.
             *
             * @static
             * @memberOf _
             * @since 4.7.0
             * @category Math
             * @param {number} dividend The first number in a division.
             * @param {number} divisor The second number in a division.
             * @returns {number} Returns the quotient.
             * @example
             *
             * _.divide(6, 4);
             * // => 1.5
             */

            var divide = createMathOperation(function (dividend, divisor) {
              return dividend / divisor;
            }, 1);
            /**
             * Computes `number` rounded down to `precision`.
             *
             * @static
             * @memberOf _
             * @since 3.10.0
             * @category Math
             * @param {number} number The number to round down.
             * @param {number} [precision=0] The precision to round down to.
             * @returns {number} Returns the rounded down number.
             * @example
             *
             * _.floor(4.006);
             * // => 4
             *
             * _.floor(0.046, 2);
             * // => 0.04
             *
             * _.floor(4060, -2);
             * // => 4000
             */

            var floor = createRound('floor');
            /**
             * Computes the maximum value of `array`. If `array` is empty or falsey,
             * `undefined` is returned.
             *
             * @static
             * @since 0.1.0
             * @memberOf _
             * @category Math
             * @param {Array} array The array to iterate over.
             * @returns {*} Returns the maximum value.
             * @example
             *
             * _.max([4, 2, 8, 6]);
             * // => 8
             *
             * _.max([]);
             * // => undefined
             */

            function max(array) {
              return array && array.length ? baseExtremum(array, identity, baseGt) : undefined;
            }
            /**
             * This method is like `_.max` except that it accepts `iteratee` which is
             * invoked for each element in `array` to generate the criterion by which
             * the value is ranked. The iteratee is invoked with one argument: (value).
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Math
             * @param {Array} array The array to iterate over.
             * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
             * @returns {*} Returns the maximum value.
             * @example
             *
             * var objects = [{ 'n': 1 }, { 'n': 2 }];
             *
             * _.maxBy(objects, function(o) { return o.n; });
             * // => { 'n': 2 }
             *
             * // The `_.property` iteratee shorthand.
             * _.maxBy(objects, 'n');
             * // => { 'n': 2 }
             */


            function maxBy(array, iteratee) {
              return array && array.length ? baseExtremum(array, getIteratee(iteratee, 2), baseGt) : undefined;
            }
            /**
             * Computes the mean of the values in `array`.
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Math
             * @param {Array} array The array to iterate over.
             * @returns {number} Returns the mean.
             * @example
             *
             * _.mean([4, 2, 8, 6]);
             * // => 5
             */


            function mean(array) {
              return baseMean(array, identity);
            }
            /**
             * This method is like `_.mean` except that it accepts `iteratee` which is
             * invoked for each element in `array` to generate the value to be averaged.
             * The iteratee is invoked with one argument: (value).
             *
             * @static
             * @memberOf _
             * @since 4.7.0
             * @category Math
             * @param {Array} array The array to iterate over.
             * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
             * @returns {number} Returns the mean.
             * @example
             *
             * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
             *
             * _.meanBy(objects, function(o) { return o.n; });
             * // => 5
             *
             * // The `_.property` iteratee shorthand.
             * _.meanBy(objects, 'n');
             * // => 5
             */


            function meanBy(array, iteratee) {
              return baseMean(array, getIteratee(iteratee, 2));
            }
            /**
             * Computes the minimum value of `array`. If `array` is empty or falsey,
             * `undefined` is returned.
             *
             * @static
             * @since 0.1.0
             * @memberOf _
             * @category Math
             * @param {Array} array The array to iterate over.
             * @returns {*} Returns the minimum value.
             * @example
             *
             * _.min([4, 2, 8, 6]);
             * // => 2
             *
             * _.min([]);
             * // => undefined
             */


            function min(array) {
              return array && array.length ? baseExtremum(array, identity, baseLt) : undefined;
            }
            /**
             * This method is like `_.min` except that it accepts `iteratee` which is
             * invoked for each element in `array` to generate the criterion by which
             * the value is ranked. The iteratee is invoked with one argument: (value).
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Math
             * @param {Array} array The array to iterate over.
             * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
             * @returns {*} Returns the minimum value.
             * @example
             *
             * var objects = [{ 'n': 1 }, { 'n': 2 }];
             *
             * _.minBy(objects, function(o) { return o.n; });
             * // => { 'n': 1 }
             *
             * // The `_.property` iteratee shorthand.
             * _.minBy(objects, 'n');
             * // => { 'n': 1 }
             */


            function minBy(array, iteratee) {
              return array && array.length ? baseExtremum(array, getIteratee(iteratee, 2), baseLt) : undefined;
            }
            /**
             * Multiply two numbers.
             *
             * @static
             * @memberOf _
             * @since 4.7.0
             * @category Math
             * @param {number} multiplier The first number in a multiplication.
             * @param {number} multiplicand The second number in a multiplication.
             * @returns {number} Returns the product.
             * @example
             *
             * _.multiply(6, 4);
             * // => 24
             */


            var multiply = createMathOperation(function (multiplier, multiplicand) {
              return multiplier * multiplicand;
            }, 1);
            /**
             * Computes `number` rounded to `precision`.
             *
             * @static
             * @memberOf _
             * @since 3.10.0
             * @category Math
             * @param {number} number The number to round.
             * @param {number} [precision=0] The precision to round to.
             * @returns {number} Returns the rounded number.
             * @example
             *
             * _.round(4.006);
             * // => 4
             *
             * _.round(4.006, 2);
             * // => 4.01
             *
             * _.round(4060, -2);
             * // => 4100
             */

            var round = createRound('round');
            /**
             * Subtract two numbers.
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Math
             * @param {number} minuend The first number in a subtraction.
             * @param {number} subtrahend The second number in a subtraction.
             * @returns {number} Returns the difference.
             * @example
             *
             * _.subtract(6, 4);
             * // => 2
             */

            var subtract = createMathOperation(function (minuend, subtrahend) {
              return minuend - subtrahend;
            }, 0);
            /**
             * Computes the sum of the values in `array`.
             *
             * @static
             * @memberOf _
             * @since 3.4.0
             * @category Math
             * @param {Array} array The array to iterate over.
             * @returns {number} Returns the sum.
             * @example
             *
             * _.sum([4, 2, 8, 6]);
             * // => 20
             */

            function sum(array) {
              return array && array.length ? baseSum(array, identity) : 0;
            }
            /**
             * This method is like `_.sum` except that it accepts `iteratee` which is
             * invoked for each element in `array` to generate the value to be summed.
             * The iteratee is invoked with one argument: (value).
             *
             * @static
             * @memberOf _
             * @since 4.0.0
             * @category Math
             * @param {Array} array The array to iterate over.
             * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
             * @returns {number} Returns the sum.
             * @example
             *
             * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
             *
             * _.sumBy(objects, function(o) { return o.n; });
             * // => 20
             *
             * // The `_.property` iteratee shorthand.
             * _.sumBy(objects, 'n');
             * // => 20
             */


            function sumBy(array, iteratee) {
              return array && array.length ? baseSum(array, getIteratee(iteratee, 2)) : 0;
            }
            /*------------------------------------------------------------------------*/
            // Add methods that return wrapped values in chain sequences.


            lodash.after = after;
            lodash.ary = ary;
            lodash.assign = assign;
            lodash.assignIn = assignIn;
            lodash.assignInWith = assignInWith;
            lodash.assignWith = assignWith;
            lodash.at = at;
            lodash.before = before;
            lodash.bind = bind;
            lodash.bindAll = bindAll;
            lodash.bindKey = bindKey;
            lodash.castArray = castArray;
            lodash.chain = chain;
            lodash.chunk = chunk;
            lodash.compact = compact;
            lodash.concat = concat;
            lodash.cond = cond;
            lodash.conforms = conforms;
            lodash.constant = constant;
            lodash.countBy = countBy;
            lodash.create = create;
            lodash.curry = curry;
            lodash.curryRight = curryRight;
            lodash.debounce = debounce;
            lodash.defaults = defaults;
            lodash.defaultsDeep = defaultsDeep;
            lodash.defer = defer;
            lodash.delay = delay;
            lodash.difference = difference;
            lodash.differenceBy = differenceBy;
            lodash.differenceWith = differenceWith;
            lodash.drop = drop;
            lodash.dropRight = dropRight;
            lodash.dropRightWhile = dropRightWhile;
            lodash.dropWhile = dropWhile;
            lodash.fill = fill;
            lodash.filter = filter;
            lodash.flatMap = flatMap;
            lodash.flatMapDeep = flatMapDeep;
            lodash.flatMapDepth = flatMapDepth;
            lodash.flatten = flatten;
            lodash.flattenDeep = flattenDeep;
            lodash.flattenDepth = flattenDepth;
            lodash.flip = flip;
            lodash.flow = flow;
            lodash.flowRight = flowRight;
            lodash.fromPairs = fromPairs;
            lodash.functions = functions;
            lodash.functionsIn = functionsIn;
            lodash.groupBy = groupBy;
            lodash.initial = initial;
            lodash.intersection = intersection;
            lodash.intersectionBy = intersectionBy;
            lodash.intersectionWith = intersectionWith;
            lodash.invert = invert;
            lodash.invertBy = invertBy;
            lodash.invokeMap = invokeMap;
            lodash.iteratee = iteratee;
            lodash.keyBy = keyBy;
            lodash.keys = keys;
            lodash.keysIn = keysIn;
            lodash.map = map;
            lodash.mapKeys = mapKeys;
            lodash.mapValues = mapValues;
            lodash.matches = matches;
            lodash.matchesProperty = matchesProperty;
            lodash.memoize = memoize;
            lodash.merge = merge;
            lodash.mergeWith = mergeWith;
            lodash.method = method;
            lodash.methodOf = methodOf;
            lodash.mixin = mixin;
            lodash.negate = negate;
            lodash.nthArg = nthArg;
            lodash.omit = omit;
            lodash.omitBy = omitBy;
            lodash.once = once;
            lodash.orderBy = orderBy;
            lodash.over = over;
            lodash.overArgs = overArgs;
            lodash.overEvery = overEvery;
            lodash.overSome = overSome;
            lodash.partial = partial;
            lodash.partialRight = partialRight;
            lodash.partition = partition;
            lodash.pick = pick;
            lodash.pickBy = pickBy;
            lodash.property = property;
            lodash.propertyOf = propertyOf;
            lodash.pull = pull;
            lodash.pullAll = pullAll;
            lodash.pullAllBy = pullAllBy;
            lodash.pullAllWith = pullAllWith;
            lodash.pullAt = pullAt;
            lodash.range = range;
            lodash.rangeRight = rangeRight;
            lodash.rearg = rearg;
            lodash.reject = reject;
            lodash.remove = remove;
            lodash.rest = rest;
            lodash.reverse = reverse;
            lodash.sampleSize = sampleSize;
            lodash.set = set;
            lodash.setWith = setWith;
            lodash.shuffle = shuffle;
            lodash.slice = slice;
            lodash.sortBy = sortBy;
            lodash.sortedUniq = sortedUniq;
            lodash.sortedUniqBy = sortedUniqBy;
            lodash.split = split;
            lodash.spread = spread;
            lodash.tail = tail;
            lodash.take = take;
            lodash.takeRight = takeRight;
            lodash.takeRightWhile = takeRightWhile;
            lodash.takeWhile = takeWhile;
            lodash.tap = tap;
            lodash.throttle = throttle;
            lodash.thru = thru;
            lodash.toArray = toArray;
            lodash.toPairs = toPairs;
            lodash.toPairsIn = toPairsIn;
            lodash.toPath = toPath;
            lodash.toPlainObject = toPlainObject;
            lodash.transform = transform;
            lodash.unary = unary;
            lodash.union = union;
            lodash.unionBy = unionBy;
            lodash.unionWith = unionWith;
            lodash.uniq = uniq;
            lodash.uniqBy = uniqBy;
            lodash.uniqWith = uniqWith;
            lodash.unset = unset;
            lodash.unzip = unzip;
            lodash.unzipWith = unzipWith;
            lodash.update = update;
            lodash.updateWith = updateWith;
            lodash.values = values;
            lodash.valuesIn = valuesIn;
            lodash.without = without;
            lodash.words = words;
            lodash.wrap = wrap;
            lodash.xor = xor;
            lodash.xorBy = xorBy;
            lodash.xorWith = xorWith;
            lodash.zip = zip;
            lodash.zipObject = zipObject;
            lodash.zipObjectDeep = zipObjectDeep;
            lodash.zipWith = zipWith; // Add aliases.

            lodash.entries = toPairs;
            lodash.entriesIn = toPairsIn;
            lodash.extend = assignIn;
            lodash.extendWith = assignInWith; // Add methods to `lodash.prototype`.

            mixin(lodash, lodash);
            /*------------------------------------------------------------------------*/
            // Add methods that return unwrapped values in chain sequences.

            lodash.add = add;
            lodash.attempt = attempt;
            lodash.camelCase = camelCase;
            lodash.capitalize = capitalize;
            lodash.ceil = ceil;
            lodash.clamp = clamp;
            lodash.clone = clone;
            lodash.cloneDeep = cloneDeep;
            lodash.cloneDeepWith = cloneDeepWith;
            lodash.cloneWith = cloneWith;
            lodash.conformsTo = conformsTo;
            lodash.deburr = deburr;
            lodash.defaultTo = defaultTo;
            lodash.divide = divide;
            lodash.endsWith = endsWith;
            lodash.eq = eq;
            lodash.escape = escape;
            lodash.escapeRegExp = escapeRegExp;
            lodash.every = every;
            lodash.find = find;
            lodash.findIndex = findIndex;
            lodash.findKey = findKey;
            lodash.findLast = findLast;
            lodash.findLastIndex = findLastIndex;
            lodash.findLastKey = findLastKey;
            lodash.floor = floor;
            lodash.forEach = forEach;
            lodash.forEachRight = forEachRight;
            lodash.forIn = forIn;
            lodash.forInRight = forInRight;
            lodash.forOwn = forOwn;
            lodash.forOwnRight = forOwnRight;
            lodash.get = get;
            lodash.gt = gt;
            lodash.gte = gte;
            lodash.has = has;
            lodash.hasIn = hasIn;
            lodash.head = head;
            lodash.identity = identity;
            lodash.includes = includes;
            lodash.indexOf = indexOf;
            lodash.inRange = inRange;
            lodash.invoke = invoke;
            lodash.isArguments = isArguments;
            lodash.isArray = isArray;
            lodash.isArrayBuffer = isArrayBuffer;
            lodash.isArrayLike = isArrayLike;
            lodash.isArrayLikeObject = isArrayLikeObject;
            lodash.isBoolean = isBoolean;
            lodash.isBuffer = isBuffer;
            lodash.isDate = isDate;
            lodash.isElement = isElement;
            lodash.isEmpty = isEmpty;
            lodash.isEqual = isEqual;
            lodash.isEqualWith = isEqualWith;
            lodash.isError = isError;
            lodash.isFinite = isFinite;
            lodash.isFunction = isFunction;
            lodash.isInteger = isInteger;
            lodash.isLength = isLength;
            lodash.isMap = isMap;
            lodash.isMatch = isMatch;
            lodash.isMatchWith = isMatchWith;
            lodash.isNaN = isNaN;
            lodash.isNative = isNative;
            lodash.isNil = isNil;
            lodash.isNull = isNull;
            lodash.isNumber = isNumber;
            lodash.isObject = isObject;
            lodash.isObjectLike = isObjectLike;
            lodash.isPlainObject = isPlainObject;
            lodash.isRegExp = isRegExp;
            lodash.isSafeInteger = isSafeInteger;
            lodash.isSet = isSet;
            lodash.isString = isString;
            lodash.isSymbol = isSymbol;
            lodash.isTypedArray = isTypedArray;
            lodash.isUndefined = isUndefined;
            lodash.isWeakMap = isWeakMap;
            lodash.isWeakSet = isWeakSet;
            lodash.join = join;
            lodash.kebabCase = kebabCase;
            lodash.last = last;
            lodash.lastIndexOf = lastIndexOf;
            lodash.lowerCase = lowerCase;
            lodash.lowerFirst = lowerFirst;
            lodash.lt = lt;
            lodash.lte = lte;
            lodash.max = max;
            lodash.maxBy = maxBy;
            lodash.mean = mean;
            lodash.meanBy = meanBy;
            lodash.min = min;
            lodash.minBy = minBy;
            lodash.stubArray = stubArray;
            lodash.stubFalse = stubFalse;
            lodash.stubObject = stubObject;
            lodash.stubString = stubString;
            lodash.stubTrue = stubTrue;
            lodash.multiply = multiply;
            lodash.nth = nth;
            lodash.noConflict = noConflict;
            lodash.noop = noop;
            lodash.now = now;
            lodash.pad = pad;
            lodash.padEnd = padEnd;
            lodash.padStart = padStart;
            lodash.parseInt = parseInt;
            lodash.random = random;
            lodash.reduce = reduce;
            lodash.reduceRight = reduceRight;
            lodash.repeat = repeat;
            lodash.replace = replace;
            lodash.result = result;
            lodash.round = round;
            lodash.runInContext = runInContext;
            lodash.sample = sample;
            lodash.size = size;
            lodash.snakeCase = snakeCase;
            lodash.some = some;
            lodash.sortedIndex = sortedIndex;
            lodash.sortedIndexBy = sortedIndexBy;
            lodash.sortedIndexOf = sortedIndexOf;
            lodash.sortedLastIndex = sortedLastIndex;
            lodash.sortedLastIndexBy = sortedLastIndexBy;
            lodash.sortedLastIndexOf = sortedLastIndexOf;
            lodash.startCase = startCase;
            lodash.startsWith = startsWith;
            lodash.subtract = subtract;
            lodash.sum = sum;
            lodash.sumBy = sumBy;
            lodash.template = template;
            lodash.times = times;
            lodash.toFinite = toFinite;
            lodash.toInteger = toInteger;
            lodash.toLength = toLength;
            lodash.toLower = toLower;
            lodash.toNumber = toNumber;
            lodash.toSafeInteger = toSafeInteger;
            lodash.toString = toString;
            lodash.toUpper = toUpper;
            lodash.trim = trim;
            lodash.trimEnd = trimEnd;
            lodash.trimStart = trimStart;
            lodash.truncate = truncate;
            lodash.unescape = unescape;
            lodash.uniqueId = uniqueId;
            lodash.upperCase = upperCase;
            lodash.upperFirst = upperFirst; // Add aliases.

            lodash.each = forEach;
            lodash.eachRight = forEachRight;
            lodash.first = head;
            mixin(lodash, function () {
              var source = {};
              baseForOwn(lodash, function (func, methodName) {
                if (!hasOwnProperty.call(lodash.prototype, methodName)) {
                  source[methodName] = func;
                }
              });
              return source;
            }(), {
              'chain': false
            });
            /*------------------------------------------------------------------------*/

            /**
             * The semantic version number.
             *
             * @static
             * @memberOf _
             * @type {string}
             */

            lodash.VERSION = VERSION; // Assign default placeholders.

            arrayEach(['bind', 'bindKey', 'curry', 'curryRight', 'partial', 'partialRight'], function (methodName) {
              lodash[methodName].placeholder = lodash;
            }); // Add `LazyWrapper` methods for `_.drop` and `_.take` variants.

            arrayEach(['drop', 'take'], function (methodName, index) {
              LazyWrapper.prototype[methodName] = function (n) {
                n = n === undefined ? 1 : nativeMax(toInteger(n), 0);
                var result = this.__filtered__ && !index ? new LazyWrapper(this) : this.clone();

                if (result.__filtered__) {
                  result.__takeCount__ = nativeMin(n, result.__takeCount__);
                } else {
                  result.__views__.push({
                    'size': nativeMin(n, MAX_ARRAY_LENGTH),
                    'type': methodName + (result.__dir__ < 0 ? 'Right' : '')
                  });
                }

                return result;
              };

              LazyWrapper.prototype[methodName + 'Right'] = function (n) {
                return this.reverse()[methodName](n).reverse();
              };
            }); // Add `LazyWrapper` methods that accept an `iteratee` value.

            arrayEach(['filter', 'map', 'takeWhile'], function (methodName, index) {
              var type = index + 1,
                  isFilter = type == LAZY_FILTER_FLAG || type == LAZY_WHILE_FLAG;

              LazyWrapper.prototype[methodName] = function (iteratee) {
                var result = this.clone();

                result.__iteratees__.push({
                  'iteratee': getIteratee(iteratee, 3),
                  'type': type
                });

                result.__filtered__ = result.__filtered__ || isFilter;
                return result;
              };
            }); // Add `LazyWrapper` methods for `_.head` and `_.last`.

            arrayEach(['head', 'last'], function (methodName, index) {
              var takeName = 'take' + (index ? 'Right' : '');

              LazyWrapper.prototype[methodName] = function () {
                return this[takeName](1).value()[0];
              };
            }); // Add `LazyWrapper` methods for `_.initial` and `_.tail`.

            arrayEach(['initial', 'tail'], function (methodName, index) {
              var dropName = 'drop' + (index ? '' : 'Right');

              LazyWrapper.prototype[methodName] = function () {
                return this.__filtered__ ? new LazyWrapper(this) : this[dropName](1);
              };
            });

            LazyWrapper.prototype.compact = function () {
              return this.filter(identity);
            };

            LazyWrapper.prototype.find = function (predicate) {
              return this.filter(predicate).head();
            };

            LazyWrapper.prototype.findLast = function (predicate) {
              return this.reverse().find(predicate);
            };

            LazyWrapper.prototype.invokeMap = baseRest(function (path, args) {
              if (typeof path == 'function') {
                return new LazyWrapper(this);
              }

              return this.map(function (value) {
                return baseInvoke(value, path, args);
              });
            });

            LazyWrapper.prototype.reject = function (predicate) {
              return this.filter(negate(getIteratee(predicate)));
            };

            LazyWrapper.prototype.slice = function (start, end) {
              start = toInteger(start);
              var result = this;

              if (result.__filtered__ && (start > 0 || end < 0)) {
                return new LazyWrapper(result);
              }

              if (start < 0) {
                result = result.takeRight(-start);
              } else if (start) {
                result = result.drop(start);
              }

              if (end !== undefined) {
                end = toInteger(end);
                result = end < 0 ? result.dropRight(-end) : result.take(end - start);
              }

              return result;
            };

            LazyWrapper.prototype.takeRightWhile = function (predicate) {
              return this.reverse().takeWhile(predicate).reverse();
            };

            LazyWrapper.prototype.toArray = function () {
              return this.take(MAX_ARRAY_LENGTH);
            }; // Add `LazyWrapper` methods to `lodash.prototype`.


            baseForOwn(LazyWrapper.prototype, function (func, methodName) {
              var checkIteratee = /^(?:filter|find|map|reject)|While$/.test(methodName),
                  isTaker = /^(?:head|last)$/.test(methodName),
                  lodashFunc = lodash[isTaker ? 'take' + (methodName == 'last' ? 'Right' : '') : methodName],
                  retUnwrapped = isTaker || /^find/.test(methodName);

              if (!lodashFunc) {
                return;
              }

              lodash.prototype[methodName] = function () {
                var value = this.__wrapped__,
                    args = isTaker ? [1] : arguments,
                    isLazy = value instanceof LazyWrapper,
                    iteratee = args[0],
                    useLazy = isLazy || isArray(value);

                var interceptor = function interceptor(value) {
                  var result = lodashFunc.apply(lodash, arrayPush([value], args));
                  return isTaker && chainAll ? result[0] : result;
                };

                if (useLazy && checkIteratee && typeof iteratee == 'function' && iteratee.length != 1) {
                  // Avoid lazy use if the iteratee has a "length" value other than `1`.
                  isLazy = useLazy = false;
                }

                var chainAll = this.__chain__,
                    isHybrid = !!this.__actions__.length,
                    isUnwrapped = retUnwrapped && !chainAll,
                    onlyLazy = isLazy && !isHybrid;

                if (!retUnwrapped && useLazy) {
                  value = onlyLazy ? value : new LazyWrapper(this);
                  var result = func.apply(value, args);

                  result.__actions__.push({
                    'func': thru,
                    'args': [interceptor],
                    'thisArg': undefined
                  });

                  return new LodashWrapper(result, chainAll);
                }

                if (isUnwrapped && onlyLazy) {
                  return func.apply(this, args);
                }

                result = this.thru(interceptor);
                return isUnwrapped ? isTaker ? result.value()[0] : result.value() : result;
              };
            }); // Add `Array` methods to `lodash.prototype`.

            arrayEach(['pop', 'push', 'shift', 'sort', 'splice', 'unshift'], function (methodName) {
              var func = arrayProto[methodName],
                  chainName = /^(?:push|sort|unshift)$/.test(methodName) ? 'tap' : 'thru',
                  retUnwrapped = /^(?:pop|shift)$/.test(methodName);

              lodash.prototype[methodName] = function () {
                var args = arguments;

                if (retUnwrapped && !this.__chain__) {
                  var value = this.value();
                  return func.apply(isArray(value) ? value : [], args);
                }

                return this[chainName](function (value) {
                  return func.apply(isArray(value) ? value : [], args);
                });
              };
            }); // Map minified method names to their real names.

            baseForOwn(LazyWrapper.prototype, function (func, methodName) {
              var lodashFunc = lodash[methodName];

              if (lodashFunc) {
                var key = lodashFunc.name + '';

                if (!hasOwnProperty.call(realNames, key)) {
                  realNames[key] = [];
                }

                realNames[key].push({
                  'name': methodName,
                  'func': lodashFunc
                });
              }
            });
            realNames[createHybrid(undefined, WRAP_BIND_KEY_FLAG).name] = [{
              'name': 'wrapper',
              'func': undefined
            }]; // Add methods to `LazyWrapper`.

            LazyWrapper.prototype.clone = lazyClone;
            LazyWrapper.prototype.reverse = lazyReverse;
            LazyWrapper.prototype.value = lazyValue; // Add chain sequence methods to the `lodash` wrapper.

            lodash.prototype.at = wrapperAt;
            lodash.prototype.chain = wrapperChain;
            lodash.prototype.commit = wrapperCommit;
            lodash.prototype.next = wrapperNext;
            lodash.prototype.plant = wrapperPlant;
            lodash.prototype.reverse = wrapperReverse;
            lodash.prototype.toJSON = lodash.prototype.valueOf = lodash.prototype.value = wrapperValue; // Add lazy aliases.

            lodash.prototype.first = lodash.prototype.head;

            if (symIterator) {
              lodash.prototype[symIterator] = wrapperToIterator;
            }

            return lodash;
          };
          /*--------------------------------------------------------------------------*/
          // Export lodash.


          var _ = runInContext(); // Some AMD build optimizers, like r.js, check for condition patterns like:


          if (true) {
            // Expose Lodash on the global object to prevent errors when Lodash is
            // loaded by a script tag in the presence of an AMD loader.
            // See http://requirejs.org/docs/errors.html#mismatch for more details.
            // Use `_.noConflict` to remove Lodash from the global object.
            root._ = _; // Define as an anonymous module so, through path mapping, it can be
            // referenced as the "underscore" module.

            !(__WEBPACK_AMD_DEFINE_RESULT__ = function () {
              return _;
            }.call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
          } // Check for `exports` after `define` in case a build optimizer adds it.
          else {}
        }).call(this);
        /* WEBPACK VAR INJECTION */
      }).call(this, __webpack_require__(
      /*! ./../webpack/buildin/module.js */
      "YuTi")(module));
      /***/
    },

    /***/
    "M34a": function M34a(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return startOfDay;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name startOfDay
       * @category Day Helpers
       * @summary Return the start of a day for the given date.
       *
       * @description
       * Return the start of a day for the given date.
       * The result will be in the local timezone.
       *
       * ### 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 {Date|Number} date - the original date
       * @returns {Date} the start of a day
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // The start of a day for 2 September 2014 11:55:00:
       * var result = startOfDay(new Date(2014, 8, 2, 11, 55, 0))
       * //=> Tue Sep 02 2014 00:00:00
       */


      function startOfDay(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);
        date.setHours(0, 0, 0, 0);
        return date;
      }
      /***/

    },

    /***/
    "M9ds": function M9ds(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MAT_TABS_CONFIG", function () {
        return MAT_TABS_CONFIG;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MAT_TAB_GROUP", function () {
        return MAT_TAB_GROUP;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatInkBar", function () {
        return MatInkBar;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatTab", function () {
        return MatTab;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatTabBody", function () {
        return MatTabBody;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatTabBodyPortal", function () {
        return MatTabBodyPortal;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatTabChangeEvent", function () {
        return MatTabChangeEvent;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatTabContent", function () {
        return MatTabContent;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatTabGroup", function () {
        return MatTabGroup;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatTabHeader", function () {
        return MatTabHeader;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatTabLabel", function () {
        return MatTabLabel;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatTabLabelWrapper", function () {
        return MatTabLabelWrapper;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatTabLink", function () {
        return MatTabLink;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatTabNav", function () {
        return MatTabNav;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatTabsModule", function () {
        return MatTabsModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "_MAT_INK_BAR_POSITIONER", function () {
        return _MAT_INK_BAR_POSITIONER;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "_MatTabBodyBase", function () {
        return _MatTabBodyBase;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "_MatTabGroupBase", function () {
        return _MatTabGroupBase;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "_MatTabHeaderBase", function () {
        return _MatTabHeaderBase;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "_MatTabLinkBase", function () {
        return _MatTabLinkBase;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "_MatTabNavBase", function () {
        return _MatTabNavBase;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "matTabsAnimations", function () {
        return matTabsAnimations;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_material_src_material_tabs_tabs_a", function () {
        return _MAT_INK_BAR_POSITIONER_FACTORY;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_material_src_material_tabs_tabs_b", function () {
        return MAT_TAB_LABEL;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_material_src_material_tabs_tabs_c", function () {
        return MAT_TAB_CONTENT;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_material_src_material_tabs_tabs_d", function () {
        return MatPaginatedTabHeader;
      });
      /* harmony import */


      var _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/cdk/a11y */
      "YEUz");
      /* harmony import */


      var _angular_cdk_observers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/cdk/observers */
      "9b/N");
      /* harmony import */


      var _angular_cdk_portal__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! @angular/cdk/portal */
      "1z/I");
      /* harmony import */


      var _angular_common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! @angular/common */
      "SVse");
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /* harmony import */


      var _angular_material_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! @angular/material/core */
      "UhP/");
      /* harmony import */


      var _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
      /*! @angular/platform-browser/animations */
      "omvX");
      /* harmony import */


      var rxjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
      /*! rxjs */
      "qCKp");
      /* harmony import */


      var _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
      /*! @angular/cdk/bidi */
      "9gLZ");
      /* harmony import */


      var _angular_animations__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
      /*! @angular/animations */
      "GS7A");
      /* harmony import */


      var rxjs_operators__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(
      /*! rxjs/operators */
      "kU1M");
      /* harmony import */


      var _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(
      /*! @angular/cdk/coercion */
      "8LU1");
      /* harmony import */


      var _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(
      /*! @angular/cdk/scrolling */
      "7KAL");
      /* harmony import */


      var _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(
      /*! @angular/cdk/platform */
      "SCoL");
      /* harmony import */


      var _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(
      /*! @angular/cdk/keycodes */
      "Ht+U");
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** Injection token for the MatInkBar's Positioner. */


      function MatTab_ng_template_0_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵprojection"](0);
        }
      }

      var _c0 = ["*"];

      function MatTabBody_ng_template_2_Template(rf, ctx) {}

      var _c1 = function _c1(a0) {
        return {
          animationDuration: a0
        };
      };

      var _c2 = function _c2(a0, a1) {
        return {
          value: a0,
          params: a1
        };
      };

      var _c3 = ["tabBodyWrapper"];
      var _c4 = ["tabHeader"];

      function MatTabGroup_div_2_ng_template_2_ng_template_0_Template(rf, ctx) {}

      function MatTabGroup_div_2_ng_template_2_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](0, MatTabGroup_div_2_ng_template_2_ng_template_0_Template, 0, 0, "ng-template", 9);
        }

        if (rf & 2) {
          var tab_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]().$implicit;

          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("cdkPortalOutlet", tab_r4.templateLabel);
        }
      }

      function MatTabGroup_div_2_ng_template_3_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](0);
        }

        if (rf & 2) {
          var tab_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]().$implicit;

          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](tab_r4.textLabel);
        }
      }

      function MatTabGroup_div_2_Template(rf, ctx) {
        if (rf & 1) {
          var _r12 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"]();

          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 6);

          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function MatTabGroup_div_2_Template_div_click_0_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r12);

            var tab_r4 = ctx.$implicit;
            var i_r5 = ctx.index;

            var ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();

            var _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵreference"](1);

            return ctx_r11._handleClick(tab_r4, _r0, i_r5);
          });

          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](1, "div", 7);

          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](2, MatTabGroup_div_2_ng_template_2_Template, 1, 1, "ng-template", 8);

          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](3, MatTabGroup_div_2_ng_template_3_Template, 1, 1, "ng-template", 8);

          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();

          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
        }

        if (rf & 2) {
          var tab_r4 = ctx.$implicit;
          var i_r5 = ctx.index;

          var ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();

          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵclassProp"]("mat-tab-label-active", ctx_r1.selectedIndex == i_r5);

          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("id", ctx_r1._getTabLabelId(i_r5))("disabled", tab_r4.disabled)("matRippleDisabled", tab_r4.disabled || ctx_r1.disableRipple);

          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵattribute"]("tabIndex", ctx_r1._getTabIndex(tab_r4, i_r5))("aria-posinset", i_r5 + 1)("aria-setsize", ctx_r1._tabs.length)("aria-controls", ctx_r1._getTabContentId(i_r5))("aria-selected", ctx_r1.selectedIndex == i_r5)("aria-label", tab_r4.ariaLabel || null)("aria-labelledby", !tab_r4.ariaLabel && tab_r4.ariaLabelledby ? tab_r4.ariaLabelledby : null);

          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);

          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", tab_r4.templateLabel);

          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);

          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", !tab_r4.templateLabel);
        }
      }

      function MatTabGroup_mat_tab_body_5_Template(rf, ctx) {
        if (rf & 1) {
          var _r16 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"]();

          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "mat-tab-body", 10);

          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("_onCentered", function MatTabGroup_mat_tab_body_5_Template_mat_tab_body__onCentered_0_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r16);

            var ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();

            return ctx_r15._removeTabBodyWrapperHeight();
          })("_onCentering", function MatTabGroup_mat_tab_body_5_Template_mat_tab_body__onCentering_0_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r16);

            var ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();

            return ctx_r17._setTabBodyWrapperHeight($event);
          });

          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
        }

        if (rf & 2) {
          var tab_r13 = ctx.$implicit;
          var i_r14 = ctx.index;

          var ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();

          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵclassProp"]("mat-tab-body-active", ctx_r3.selectedIndex == i_r14);

          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("id", ctx_r3._getTabContentId(i_r14))("content", tab_r13.content)("position", tab_r13.position)("origin", tab_r13.origin)("animationDuration", ctx_r3.animationDuration);

          _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵattribute"]("aria-labelledby", ctx_r3._getTabLabelId(i_r14));
        }
      }

      var _c5 = ["tabListContainer"];
      var _c6 = ["tabList"];
      var _c7 = ["nextPaginator"];
      var _c8 = ["previousPaginator"];
      var _c9 = ["mat-tab-nav-bar", ""];

      var _MAT_INK_BAR_POSITIONER = new _angular_core__WEBPACK_IMPORTED_MODULE_4__["InjectionToken"]('MatInkBarPositioner', {
        providedIn: 'root',
        factory: _MAT_INK_BAR_POSITIONER_FACTORY
      });
      /**
       * The default positioner function for the MatInkBar.
       * @docs-private
       */


      function _MAT_INK_BAR_POSITIONER_FACTORY() {
        var method = function method(element) {
          return {
            left: element ? (element.offsetLeft || 0) + 'px' : '0',
            width: element ? (element.offsetWidth || 0) + 'px' : '0'
          };
        };

        return method;
      }
      /**
       * The ink-bar is used to display and animate the line underneath the current active tab label.
       * @docs-private
       */


      var MatInkBar = /*#__PURE__*/function () {
        function MatInkBar(_elementRef, _ngZone, _inkBarPositioner, _animationMode) {
          _classCallCheck2(this, MatInkBar);

          this._elementRef = _elementRef;
          this._ngZone = _ngZone;
          this._inkBarPositioner = _inkBarPositioner;
          this._animationMode = _animationMode;
        }
        /**
         * Calculates the styles from the provided element in order to align the ink-bar to that element.
         * Shows the ink bar if previously set as hidden.
         * @param element
         */


        _createClass2(MatInkBar, [{
          key: "alignToElement",
          value: function alignToElement(element) {
            var _this520 = this;

            this.show();

            if (typeof requestAnimationFrame !== 'undefined') {
              this._ngZone.runOutsideAngular(function () {
                requestAnimationFrame(function () {
                  return _this520._setStyles(element);
                });
              });
            } else {
              this._setStyles(element);
            }
          }
          /** Shows the ink bar. */

        }, {
          key: "show",
          value: function show() {
            this._elementRef.nativeElement.style.visibility = 'visible';
          }
          /** Hides the ink bar. */

        }, {
          key: "hide",
          value: function hide() {
            this._elementRef.nativeElement.style.visibility = 'hidden';
          }
          /**
           * Sets the proper styles to the ink bar element.
           * @param element
           */

        }, {
          key: "_setStyles",
          value: function _setStyles(element) {
            var positions = this._inkBarPositioner(element);

            var inkBar = this._elementRef.nativeElement;
            inkBar.style.left = positions.left;
            inkBar.style.width = positions.width;
          }
        }]);

        return MatInkBar;
      }();

      MatInkBar.ɵfac = function MatInkBar_Factory(t) {
        return new (t || MatInkBar)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_4__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_4__["NgZone"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_MAT_INK_BAR_POSITIONER), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_6__["ANIMATION_MODULE_TYPE"], 8));
      };

      MatInkBar.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineDirective"]({
        type: MatInkBar,
        selectors: [["mat-ink-bar"]],
        hostAttrs: [1, "mat-ink-bar"],
        hostVars: 2,
        hostBindings: function MatInkBar_HostBindings(rf, ctx) {
          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵclassProp"]("_mat-animation-noopable", ctx._animationMode === "NoopAnimations");
          }
        }
      });

      MatInkBar.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ElementRef"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["NgZone"]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Inject"],
            args: [_MAT_INK_BAR_POSITIONER]
          }]
        }, {
          type: String,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Inject"],
            args: [_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_6__["ANIMATION_MODULE_TYPE"]]
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵsetClassMetadata"](MatInkBar, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Directive"],
          args: [{
            selector: 'mat-ink-bar',
            host: {
              'class': 'mat-ink-bar',
              '[class._mat-animation-noopable]': "_animationMode === 'NoopAnimations'"
            }
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ElementRef"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["NgZone"]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Inject"],
              args: [_MAT_INK_BAR_POSITIONER]
            }]
          }, {
            type: String,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Inject"],
              args: [_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_6__["ANIMATION_MODULE_TYPE"]]
            }]
          }];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Injection token that can be used to reference instances of `MatTabContent`. It serves as
       * alternative token to the actual `MatTabContent` class which could cause unnecessary
       * retention of the class and its directive metadata.
       */


      var MAT_TAB_CONTENT = new _angular_core__WEBPACK_IMPORTED_MODULE_4__["InjectionToken"]('MatTabContent');
      /** Decorates the `ng-template` tags and reads out the template from it. */

      var MatTabContent = function MatTabContent(
      /** Content for the tab. */
      template) {
        _classCallCheck2(this, MatTabContent);

        this.template = template;
      };

      MatTabContent.ɵfac = function MatTabContent_Factory(t) {
        return new (t || MatTabContent)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_4__["TemplateRef"]));
      };

      MatTabContent.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineDirective"]({
        type: MatTabContent,
        selectors: [["", "matTabContent", ""]],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵProvidersFeature"]([{
          provide: MAT_TAB_CONTENT,
          useExisting: MatTabContent
        }])]
      });

      MatTabContent.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["TemplateRef"]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵsetClassMetadata"](MatTabContent, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Directive"],
          args: [{
            selector: '[matTabContent]',
            providers: [{
              provide: MAT_TAB_CONTENT,
              useExisting: MatTabContent
            }]
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["TemplateRef"]
          }];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Injection token that can be used to reference instances of `MatTabLabel`. It serves as
       * alternative token to the actual `MatTabLabel` class which could cause unnecessary
       * retention of the class and its directive metadata.
       */


      var MAT_TAB_LABEL = new _angular_core__WEBPACK_IMPORTED_MODULE_4__["InjectionToken"]('MatTabLabel');
      /** Used to flag tab labels for use with the portal directive */

      var MatTabLabel = /*#__PURE__*/function (_angular_cdk_portal__) {
        _inherits2(MatTabLabel, _angular_cdk_portal__);

        var _super217 = _createSuper2(MatTabLabel);

        function MatTabLabel() {
          _classCallCheck2(this, MatTabLabel);

          return _super217.apply(this, arguments);
        }

        return MatTabLabel;
      }(_angular_cdk_portal__WEBPACK_IMPORTED_MODULE_2__["CdkPortal"]);

      MatTabLabel.ɵfac = function MatTabLabel_Factory(t) {
        return ɵMatTabLabel_BaseFactory(t || MatTabLabel);
      };

      MatTabLabel.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineDirective"]({
        type: MatTabLabel,
        selectors: [["", "mat-tab-label", ""], ["", "matTabLabel", ""]],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵProvidersFeature"]([{
          provide: MAT_TAB_LABEL,
          useExisting: MatTabLabel
        }]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵInheritDefinitionFeature"]]
      });

      var ɵMatTabLabel_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetInheritedFactory"](MatTabLabel);
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵsetClassMetadata"](MatTabLabel, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Directive"],
          args: [{
            selector: '[mat-tab-label], [matTabLabel]',
            providers: [{
              provide: MAT_TAB_LABEL,
              useExisting: MatTabLabel
            }]
          }]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */
      // Boilerplate for applying mixins to MatTab.

      /** @docs-private */


      var MatTabBase = function MatTabBase() {
        _classCallCheck2(this, MatTabBase);
      };

      var _MatTabMixinBase = Object(_angular_material_core__WEBPACK_IMPORTED_MODULE_5__["mixinDisabled"])(MatTabBase);
      /**
       * Used to provide a tab group to a tab without causing a circular dependency.
       * @docs-private
       */


      var MAT_TAB_GROUP = new _angular_core__WEBPACK_IMPORTED_MODULE_4__["InjectionToken"]('MAT_TAB_GROUP');

      var MatTab = /*#__PURE__*/function (_MatTabMixinBase2) {
        _inherits2(MatTab, _MatTabMixinBase2);

        var _super218 = _createSuper2(MatTab);

        function MatTab(_viewContainerRef, _closestTabGroup) {
          var _this521;

          _classCallCheck2(this, MatTab);

          _this521 = _super218.call(this);
          _this521._viewContainerRef = _viewContainerRef;
          _this521._closestTabGroup = _closestTabGroup;
          /** Plain text label for the tab, used when there is no template label. */

          _this521.textLabel = '';
          /** Portal that will be the hosted content of the tab */

          _this521._contentPortal = null;
          /** Emits whenever the internal state of the tab changes. */

          _this521._stateChanges = new rxjs__WEBPACK_IMPORTED_MODULE_7__["Subject"]();
          /**
           * The relatively indexed position where 0 represents the center, negative is left, and positive
           * represents the right.
           */

          _this521.position = null;
          /**
           * The initial relatively index origin of the tab if it was created and selected after there
           * was already a selected tab. Provides context of what position the tab should originate from.
           */

          _this521.origin = null;
          /**
           * Whether the tab is currently active.
           */

          _this521.isActive = false;
          return _this521;
        }
        /** Content for the tab label given by `<ng-template mat-tab-label>`. */


        _createClass2(MatTab, [{
          key: "templateLabel",
          get: function get() {
            return this._templateLabel;
          },
          set: function set(value) {
            this._setTemplateLabelInput(value);
          }
          /** @docs-private */

        }, {
          key: "content",
          get: function get() {
            return this._contentPortal;
          }
        }, {
          key: "ngOnChanges",
          value: function ngOnChanges(changes) {
            if (changes.hasOwnProperty('textLabel') || changes.hasOwnProperty('disabled')) {
              this._stateChanges.next();
            }
          }
        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            this._stateChanges.complete();
          }
        }, {
          key: "ngOnInit",
          value: function ngOnInit() {
            this._contentPortal = new _angular_cdk_portal__WEBPACK_IMPORTED_MODULE_2__["TemplatePortal"](this._explicitContent || this._implicitContent, this._viewContainerRef);
          }
          /**
           * This has been extracted to a util because of TS 4 and VE.
           * View Engine doesn't support property rename inheritance.
           * TS 4.0 doesn't allow properties to override accessors or vice-versa.
           * @docs-private
           */

        }, {
          key: "_setTemplateLabelInput",
          value: function _setTemplateLabelInput(value) {
            // Only update the templateLabel via query if there is actually
            // a MatTabLabel found. This works around an issue where a user may have
            // manually set `templateLabel` during creation mode, which would then get clobbered
            // by `undefined` when this query resolves.
            if (value) {
              this._templateLabel = value;
            }
          }
        }]);

        return MatTab;
      }(_MatTabMixinBase);

      MatTab.ɵfac = function MatTab_Factory(t) {
        return new (t || MatTab)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_4__["ViewContainerRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](MAT_TAB_GROUP));
      };

      MatTab.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineComponent"]({
        type: MatTab,
        selectors: [["mat-tab"]],
        contentQueries: function MatTab_ContentQueries(rf, ctx, dirIndex) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵcontentQuery"](dirIndex, MAT_TAB_LABEL, true);

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵstaticContentQuery"](dirIndex, MAT_TAB_CONTENT, true, _angular_core__WEBPACK_IMPORTED_MODULE_4__["TemplateRef"]);
          }

          if (rf & 2) {
            var _t;

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵloadQuery"]()) && (ctx.templateLabel = _t.first);
            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵloadQuery"]()) && (ctx._explicitContent = _t.first);
          }
        },
        viewQuery: function MatTab_Query(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵstaticViewQuery"](_angular_core__WEBPACK_IMPORTED_MODULE_4__["TemplateRef"], true);
          }

          if (rf & 2) {
            var _t;

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵloadQuery"]()) && (ctx._implicitContent = _t.first);
          }
        },
        inputs: {
          disabled: "disabled",
          textLabel: ["label", "textLabel"],
          ariaLabel: ["aria-label", "ariaLabel"],
          ariaLabelledby: ["aria-labelledby", "ariaLabelledby"]
        },
        exportAs: ["matTab"],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵInheritDefinitionFeature"], _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵNgOnChangesFeature"]],
        ngContentSelectors: _c0,
        decls: 1,
        vars: 0,
        template: function MatTab_Template(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵprojectionDef"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](0, MatTab_ng_template_0_Template, 1, 0, "ng-template");
          }
        },
        encapsulation: 2
      });

      MatTab.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ViewContainerRef"]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Inject"],
            args: [MAT_TAB_GROUP]
          }]
        }];
      };

      MatTab.propDecorators = {
        templateLabel: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ContentChild"],
          args: [MAT_TAB_LABEL]
        }],
        _explicitContent: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ContentChild"],
          args: [MAT_TAB_CONTENT, {
            read: _angular_core__WEBPACK_IMPORTED_MODULE_4__["TemplateRef"],
            "static": true
          }]
        }],
        _implicitContent: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ViewChild"],
          args: [_angular_core__WEBPACK_IMPORTED_MODULE_4__["TemplateRef"], {
            "static": true
          }]
        }],
        textLabel: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Input"],
          args: ['label']
        }],
        ariaLabel: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Input"],
          args: ['aria-label']
        }],
        ariaLabelledby: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Input"],
          args: ['aria-labelledby']
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵsetClassMetadata"](MatTab, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Component"],
          args: [{
            selector: 'mat-tab',
            template: "<!-- Create a template for the content of the <mat-tab> so that we can grab a reference to this\n    TemplateRef and use it in a Portal to render the tab content in the appropriate place in the\n    tab-group. -->\n<ng-template><ng-content></ng-content></ng-template>\n",
            inputs: ['disabled'],
            // tslint:disable-next-line:validate-decorators
            changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ChangeDetectionStrategy"].Default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ViewEncapsulation"].None,
            exportAs: 'matTab'
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ViewContainerRef"]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Inject"],
              args: [MAT_TAB_GROUP]
            }]
          }];
        }, {
          textLabel: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Input"],
            args: ['label']
          }],
          templateLabel: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ContentChild"],
            args: [MAT_TAB_LABEL]
          }],
          _explicitContent: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ContentChild"],
            args: [MAT_TAB_CONTENT, {
              read: _angular_core__WEBPACK_IMPORTED_MODULE_4__["TemplateRef"],
              "static": true
            }]
          }],
          _implicitContent: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ViewChild"],
            args: [_angular_core__WEBPACK_IMPORTED_MODULE_4__["TemplateRef"], {
              "static": true
            }]
          }],
          ariaLabel: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Input"],
            args: ['aria-label']
          }],
          ariaLabelledby: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Input"],
            args: ['aria-labelledby']
          }]
        });
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Animations used by the Material tabs.
       * @docs-private
       */


      var matTabsAnimations = {
        /** Animation translates a tab along the X axis. */
        translateTab: Object(_angular_animations__WEBPACK_IMPORTED_MODULE_9__["trigger"])('translateTab', [// Note: transitions to `none` instead of 0, because some browsers might blur the content.
        Object(_angular_animations__WEBPACK_IMPORTED_MODULE_9__["state"])('center, void, left-origin-center, right-origin-center', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_9__["style"])({
          transform: 'none'
        })), // If the tab is either on the left or right, we additionally add a `min-height` of 1px
        // in order to ensure that the element has a height before its state changes. This is
        // necessary because Chrome does seem to skip the transition in RTL mode if the element does
        // not have a static height and is not rendered. See related issue: #9465
        Object(_angular_animations__WEBPACK_IMPORTED_MODULE_9__["state"])('left', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_9__["style"])({
          transform: 'translate3d(-100%, 0, 0)',
          minHeight: '1px'
        })), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_9__["state"])('right', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_9__["style"])({
          transform: 'translate3d(100%, 0, 0)',
          minHeight: '1px'
        })), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_9__["transition"])('* => left, * => right, left => center, right => center', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_9__["animate"])('{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)')), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_9__["transition"])('void => left-origin-center', [Object(_angular_animations__WEBPACK_IMPORTED_MODULE_9__["style"])({
          transform: 'translate3d(-100%, 0, 0)'
        }), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_9__["animate"])('{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)')]), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_9__["transition"])('void => right-origin-center', [Object(_angular_animations__WEBPACK_IMPORTED_MODULE_9__["style"])({
          transform: 'translate3d(100%, 0, 0)'
        }), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_9__["animate"])('{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)')])])
      };
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * The portal host directive for the contents of the tab.
       * @docs-private
       */

      var MatTabBodyPortal = /*#__PURE__*/function (_angular_cdk_portal__2) {
        _inherits2(MatTabBodyPortal, _angular_cdk_portal__2);

        var _super219 = _createSuper2(MatTabBodyPortal);

        function MatTabBodyPortal(componentFactoryResolver, viewContainerRef, _host, _document) {
          var _this522;

          _classCallCheck2(this, MatTabBodyPortal);

          _this522 = _super219.call(this, componentFactoryResolver, viewContainerRef, _document);
          _this522._host = _host;
          /** Subscription to events for when the tab body begins centering. */

          _this522._centeringSub = rxjs__WEBPACK_IMPORTED_MODULE_7__["Subscription"].EMPTY;
          /** Subscription to events for when the tab body finishes leaving from center position. */

          _this522._leavingSub = rxjs__WEBPACK_IMPORTED_MODULE_7__["Subscription"].EMPTY;
          return _this522;
        }
        /** Set initial visibility or set up subscription for changing visibility. */


        _createClass2(MatTabBodyPortal, [{
          key: "ngOnInit",
          value: function ngOnInit() {
            var _this523 = this;

            _get2(_getPrototypeOf2(MatTabBodyPortal.prototype), "ngOnInit", this).call(this);

            this._centeringSub = this._host._beforeCentering.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__["startWith"])(this._host._isCenterPosition(this._host._position))).subscribe(function (isCentering) {
              if (isCentering && !_this523.hasAttached()) {
                _this523.attach(_this523._host._content);
              }
            });
            this._leavingSub = this._host._afterLeavingCenter.subscribe(function () {
              _this523.detach();
            });
          }
          /** Clean up centering subscription. */

        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            _get2(_getPrototypeOf2(MatTabBodyPortal.prototype), "ngOnDestroy", this).call(this);

            this._centeringSub.unsubscribe();

            this._leavingSub.unsubscribe();
          }
        }]);

        return MatTabBodyPortal;
      }(_angular_cdk_portal__WEBPACK_IMPORTED_MODULE_2__["CdkPortalOutlet"]);

      MatTabBodyPortal.ɵfac = function MatTabBodyPortal_Factory(t) {
        return new (t || MatTabBodyPortal)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_4__["ComponentFactoryResolver"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_4__["ViewContainerRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](Object(_angular_core__WEBPACK_IMPORTED_MODULE_4__["forwardRef"])(function () {
          return MatTabBody;
        })), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_common__WEBPACK_IMPORTED_MODULE_3__["DOCUMENT"]));
      };

      MatTabBodyPortal.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineDirective"]({
        type: MatTabBodyPortal,
        selectors: [["", "matTabBodyHost", ""]],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵInheritDefinitionFeature"]]
      });

      MatTabBodyPortal.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ComponentFactoryResolver"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ViewContainerRef"]
        }, {
          type: MatTabBody,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Inject"],
            args: [Object(_angular_core__WEBPACK_IMPORTED_MODULE_4__["forwardRef"])(function () {
              return MatTabBody;
            })]
          }]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Inject"],
            args: [_angular_common__WEBPACK_IMPORTED_MODULE_3__["DOCUMENT"]]
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵsetClassMetadata"](MatTabBodyPortal, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Directive"],
          args: [{
            selector: '[matTabBodyHost]'
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ComponentFactoryResolver"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ViewContainerRef"]
          }, {
            type: MatTabBody,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Inject"],
              args: [Object(_angular_core__WEBPACK_IMPORTED_MODULE_4__["forwardRef"])(function () {
                return MatTabBody;
              })]
            }]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Inject"],
              args: [_angular_common__WEBPACK_IMPORTED_MODULE_3__["DOCUMENT"]]
            }]
          }];
        }, null);
      })();
      /**
       * Base class with all of the `MatTabBody` functionality.
       * @docs-private
       */


      var _MatTabBodyBase = /*#__PURE__*/function () {
        function _MatTabBodyBase(_elementRef, _dir, changeDetectorRef) {
          var _this524 = this;

          _classCallCheck2(this, _MatTabBodyBase);

          this._elementRef = _elementRef;
          this._dir = _dir;
          /** Subscription to the directionality change observable. */

          this._dirChangeSubscription = rxjs__WEBPACK_IMPORTED_MODULE_7__["Subscription"].EMPTY;
          /** Emits when an animation on the tab is complete. */

          this._translateTabComplete = new rxjs__WEBPACK_IMPORTED_MODULE_7__["Subject"]();
          /** Event emitted when the tab begins to animate towards the center as the active tab. */

          this._onCentering = new _angular_core__WEBPACK_IMPORTED_MODULE_4__["EventEmitter"]();
          /** Event emitted before the centering of the tab begins. */

          this._beforeCentering = new _angular_core__WEBPACK_IMPORTED_MODULE_4__["EventEmitter"]();
          /** Event emitted before the centering of the tab begins. */

          this._afterLeavingCenter = new _angular_core__WEBPACK_IMPORTED_MODULE_4__["EventEmitter"]();
          /** Event emitted when the tab completes its animation towards the center. */

          this._onCentered = new _angular_core__WEBPACK_IMPORTED_MODULE_4__["EventEmitter"](true); // Note that the default value will always be overwritten by `MatTabBody`, but we need one
          // anyway to prevent the animations module from throwing an error if the body is used on its own.

          /** Duration for the tab's animation. */

          this.animationDuration = '500ms';

          if (_dir) {
            this._dirChangeSubscription = _dir.change.subscribe(function (dir) {
              _this524._computePositionAnimationState(dir);

              changeDetectorRef.markForCheck();
            });
          } // Ensure that we get unique animation events, because the `.done` callback can get
          // invoked twice in some browsers. See https://github.com/angular/angular/issues/24084.


          this._translateTabComplete.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__["distinctUntilChanged"])(function (x, y) {
            return x.fromState === y.fromState && x.toState === y.toState;
          })).subscribe(function (event) {
            // If the transition to the center is complete, emit an event.
            if (_this524._isCenterPosition(event.toState) && _this524._isCenterPosition(_this524._position)) {
              _this524._onCentered.emit();
            }

            if (_this524._isCenterPosition(event.fromState) && !_this524._isCenterPosition(_this524._position)) {
              _this524._afterLeavingCenter.emit();
            }
          });
        }
        /** The shifted index position of the tab body, where zero represents the active center tab. */


        _createClass2(_MatTabBodyBase, [{
          key: "position",
          set: function set(position) {
            this._positionIndex = position;

            this._computePositionAnimationState();
          }
          /**
           * After initialized, check if the content is centered and has an origin. If so, set the
           * special position states that transition the tab from the left or right before centering.
           */

        }, {
          key: "ngOnInit",
          value: function ngOnInit() {
            if (this._position == 'center' && this.origin != null) {
              this._position = this._computePositionFromOrigin(this.origin);
            }
          }
        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            this._dirChangeSubscription.unsubscribe();

            this._translateTabComplete.complete();
          }
        }, {
          key: "_onTranslateTabStarted",
          value: function _onTranslateTabStarted(event) {
            var isCentering = this._isCenterPosition(event.toState);

            this._beforeCentering.emit(isCentering);

            if (isCentering) {
              this._onCentering.emit(this._elementRef.nativeElement.clientHeight);
            }
          }
          /** The text direction of the containing app. */

        }, {
          key: "_getLayoutDirection",
          value: function _getLayoutDirection() {
            return this._dir && this._dir.value === 'rtl' ? 'rtl' : 'ltr';
          }
          /** Whether the provided position state is considered center, regardless of origin. */

        }, {
          key: "_isCenterPosition",
          value: function _isCenterPosition(position) {
            return position == 'center' || position == 'left-origin-center' || position == 'right-origin-center';
          }
          /** Computes the position state that will be used for the tab-body animation trigger. */

        }, {
          key: "_computePositionAnimationState",
          value: function _computePositionAnimationState() {
            var dir = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this._getLayoutDirection();

            if (this._positionIndex < 0) {
              this._position = dir == 'ltr' ? 'left' : 'right';
            } else if (this._positionIndex > 0) {
              this._position = dir == 'ltr' ? 'right' : 'left';
            } else {
              this._position = 'center';
            }
          }
          /**
           * Computes the position state based on the specified origin position. This is used if the
           * tab is becoming visible immediately after creation.
           */

        }, {
          key: "_computePositionFromOrigin",
          value: function _computePositionFromOrigin(origin) {
            var dir = this._getLayoutDirection();

            if (dir == 'ltr' && origin <= 0 || dir == 'rtl' && origin > 0) {
              return 'left-origin-center';
            }

            return 'right-origin-center';
          }
        }]);

        return _MatTabBodyBase;
      }();

      _MatTabBodyBase.ɵfac = function _MatTabBodyBase_Factory(t) {
        return new (t || _MatTabBodyBase)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_4__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_8__["Directionality"], 8), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_4__["ChangeDetectorRef"]));
      };

      _MatTabBodyBase.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineDirective"]({
        type: _MatTabBodyBase,
        inputs: {
          animationDuration: "animationDuration",
          position: "position",
          _content: ["content", "_content"],
          origin: "origin"
        },
        outputs: {
          _onCentering: "_onCentering",
          _beforeCentering: "_beforeCentering",
          _afterLeavingCenter: "_afterLeavingCenter",
          _onCentered: "_onCentered"
        }
      });

      _MatTabBodyBase.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ElementRef"]
        }, {
          type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_8__["Directionality"],
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Optional"]
          }]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ChangeDetectorRef"]
        }];
      };

      _MatTabBodyBase.propDecorators = {
        _onCentering: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Output"]
        }],
        _beforeCentering: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Output"]
        }],
        _afterLeavingCenter: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Output"]
        }],
        _onCentered: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Output"]
        }],
        _content: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Input"],
          args: ['content']
        }],
        origin: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Input"]
        }],
        animationDuration: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Input"]
        }],
        position: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Input"]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵsetClassMetadata"](_MatTabBodyBase, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Directive"]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ElementRef"]
          }, {
            type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_8__["Directionality"],
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Optional"]
            }]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ChangeDetectorRef"]
          }];
        }, {
          _onCentering: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Output"]
          }],
          _beforeCentering: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Output"]
          }],
          _afterLeavingCenter: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Output"]
          }],
          _onCentered: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Output"]
          }],
          animationDuration: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Input"]
          }],
          position: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Input"]
          }],
          _content: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Input"],
            args: ['content']
          }],
          origin: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Input"]
          }]
        });
      })();
      /**
       * Wrapper for the contents of a tab.
       * @docs-private
       */


      var MatTabBody = /*#__PURE__*/function (_MatTabBodyBase2) {
        _inherits2(MatTabBody, _MatTabBodyBase2);

        var _super220 = _createSuper2(MatTabBody);

        function MatTabBody(elementRef, dir, changeDetectorRef) {
          _classCallCheck2(this, MatTabBody);

          return _super220.call(this, elementRef, dir, changeDetectorRef);
        }

        return MatTabBody;
      }(_MatTabBodyBase);

      MatTabBody.ɵfac = function MatTabBody_Factory(t) {
        return new (t || MatTabBody)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_4__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_8__["Directionality"], 8), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_4__["ChangeDetectorRef"]));
      };

      MatTabBody.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineComponent"]({
        type: MatTabBody,
        selectors: [["mat-tab-body"]],
        viewQuery: function MatTabBody_Query(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵviewQuery"](_angular_cdk_portal__WEBPACK_IMPORTED_MODULE_2__["PortalHostDirective"], true);
          }

          if (rf & 2) {
            var _t;

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵloadQuery"]()) && (ctx._portalHost = _t.first);
          }
        },
        hostAttrs: [1, "mat-tab-body"],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵInheritDefinitionFeature"]],
        decls: 3,
        vars: 6,
        consts: [[1, "mat-tab-body-content"], ["content", ""], ["matTabBodyHost", ""]],
        template: function MatTabBody_Template(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 0, 1);

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("@translateTab.start", function MatTabBody_Template_div_animation_translateTab_start_0_listener($event) {
              return ctx._onTranslateTabStarted($event);
            })("@translateTab.done", function MatTabBody_Template_div_animation_translateTab_done_0_listener($event) {
              return ctx._translateTabComplete.next($event);
            });

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](2, MatTabBody_ng_template_2_Template, 0, 0, "ng-template", 2);

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
          }

          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("@translateTab", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpureFunction2"](3, _c2, ctx._position, _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpureFunction1"](1, _c1, ctx.animationDuration)));
          }
        },
        directives: [MatTabBodyPortal],
        styles: [".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],
        encapsulation: 2,
        data: {
          animation: [matTabsAnimations.translateTab]
        }
      });

      MatTabBody.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ElementRef"]
        }, {
          type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_8__["Directionality"],
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Optional"]
          }]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ChangeDetectorRef"]
        }];
      };

      MatTabBody.propDecorators = {
        _portalHost: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ViewChild"],
          args: [_angular_cdk_portal__WEBPACK_IMPORTED_MODULE_2__["PortalHostDirective"]]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵsetClassMetadata"](MatTabBody, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Component"],
          args: [{
            selector: 'mat-tab-body',
            template: "<div class=\"mat-tab-body-content\" #content\n     [@translateTab]=\"{\n        value: _position,\n        params: {animationDuration: animationDuration}\n     }\"\n     (@translateTab.start)=\"_onTranslateTabStarted($event)\"\n     (@translateTab.done)=\"_translateTabComplete.next($event)\">\n  <ng-template matTabBodyHost></ng-template>\n</div>\n",
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ViewEncapsulation"].None,
            // tslint:disable-next-line:validate-decorators
            changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ChangeDetectionStrategy"].Default,
            animations: [matTabsAnimations.translateTab],
            host: {
              'class': 'mat-tab-body'
            },
            styles: [".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"]
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ElementRef"]
          }, {
            type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_8__["Directionality"],
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Optional"]
            }]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ChangeDetectorRef"]
          }];
        }, {
          _portalHost: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ViewChild"],
            args: [_angular_cdk_portal__WEBPACK_IMPORTED_MODULE_2__["PortalHostDirective"]]
          }]
        });
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** Injection token that can be used to provide the default options the tabs module. */


      var MAT_TABS_CONFIG = new _angular_core__WEBPACK_IMPORTED_MODULE_4__["InjectionToken"]('MAT_TABS_CONFIG');
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** Used to generate unique ID's for each tab component */

      var nextId = 0;
      /** A simple change event emitted on focus or selection changes. */

      var MatTabChangeEvent = function MatTabChangeEvent() {
        _classCallCheck2(this, MatTabChangeEvent);
      }; // Boilerplate for applying mixins to MatTabGroup.

      /** @docs-private */


      var MatTabGroupMixinBase = function MatTabGroupMixinBase(_elementRef) {
        _classCallCheck2(this, MatTabGroupMixinBase);

        this._elementRef = _elementRef;
      };

      var _MatTabGroupMixinBase = Object(_angular_material_core__WEBPACK_IMPORTED_MODULE_5__["mixinColor"])(Object(_angular_material_core__WEBPACK_IMPORTED_MODULE_5__["mixinDisableRipple"])(MatTabGroupMixinBase), 'primary');
      /**
       * Base class with all of the `MatTabGroupBase` functionality.
       * @docs-private
       */


      var _MatTabGroupBase = /*#__PURE__*/function (_MatTabGroupMixinBase2) {
        _inherits2(_MatTabGroupBase, _MatTabGroupMixinBase2);

        var _super221 = _createSuper2(_MatTabGroupBase);

        function _MatTabGroupBase(elementRef, _changeDetectorRef, defaultConfig, _animationMode) {
          var _this525;

          _classCallCheck2(this, _MatTabGroupBase);

          _this525 = _super221.call(this, elementRef);
          _this525._changeDetectorRef = _changeDetectorRef;
          _this525._animationMode = _animationMode;
          /** All of the tabs that belong to the group. */

          _this525._tabs = new _angular_core__WEBPACK_IMPORTED_MODULE_4__["QueryList"]();
          /** The tab index that should be selected after the content has been checked. */

          _this525._indexToSelect = 0;
          /** Snapshot of the height of the tab body wrapper before another tab is activated. */

          _this525._tabBodyWrapperHeight = 0;
          /** Subscription to tabs being added/removed. */

          _this525._tabsSubscription = rxjs__WEBPACK_IMPORTED_MODULE_7__["Subscription"].EMPTY;
          /** Subscription to changes in the tab labels. */

          _this525._tabLabelSubscription = rxjs__WEBPACK_IMPORTED_MODULE_7__["Subscription"].EMPTY;
          _this525._selectedIndex = null;
          /** Position of the tab header. */

          _this525.headerPosition = 'above';
          /** Output to enable support for two-way binding on `[(selectedIndex)]` */

          _this525.selectedIndexChange = new _angular_core__WEBPACK_IMPORTED_MODULE_4__["EventEmitter"]();
          /** Event emitted when focus has changed within a tab group. */

          _this525.focusChange = new _angular_core__WEBPACK_IMPORTED_MODULE_4__["EventEmitter"]();
          /** Event emitted when the body animation has completed */

          _this525.animationDone = new _angular_core__WEBPACK_IMPORTED_MODULE_4__["EventEmitter"]();
          /** Event emitted when the tab selection has changed. */

          _this525.selectedTabChange = new _angular_core__WEBPACK_IMPORTED_MODULE_4__["EventEmitter"](true);
          _this525._groupId = nextId++;
          _this525.animationDuration = defaultConfig && defaultConfig.animationDuration ? defaultConfig.animationDuration : '500ms';
          _this525.disablePagination = defaultConfig && defaultConfig.disablePagination != null ? defaultConfig.disablePagination : false;
          _this525.dynamicHeight = defaultConfig && defaultConfig.dynamicHeight != null ? defaultConfig.dynamicHeight : false;
          return _this525;
        }
        /** Whether the tab group should grow to the size of the active tab. */


        _createClass2(_MatTabGroupBase, [{
          key: "dynamicHeight",
          get: function get() {
            return this._dynamicHeight;
          },
          set: function set(value) {
            this._dynamicHeight = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_11__["coerceBooleanProperty"])(value);
          }
          /** The index of the active tab. */

        }, {
          key: "selectedIndex",
          get: function get() {
            return this._selectedIndex;
          },
          set: function set(value) {
            this._indexToSelect = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_11__["coerceNumberProperty"])(value, null);
          }
          /** Duration for the tab animation. Will be normalized to milliseconds if no units are set. */

        }, {
          key: "animationDuration",
          get: function get() {
            return this._animationDuration;
          },
          set: function set(value) {
            this._animationDuration = /^\d+$/.test(value) ? value + 'ms' : value;
          }
          /** Background color of the tab group. */

        }, {
          key: "backgroundColor",
          get: function get() {
            return this._backgroundColor;
          },
          set: function set(value) {
            var nativeElement = this._elementRef.nativeElement;
            nativeElement.classList.remove("mat-background-".concat(this.backgroundColor));

            if (value) {
              nativeElement.classList.add("mat-background-".concat(value));
            }

            this._backgroundColor = value;
          }
          /**
           * After the content is checked, this component knows what tabs have been defined
           * and what the selected index should be. This is where we can know exactly what position
           * each tab should be in according to the new selected index, and additionally we know how
           * a new selected tab should transition in (from the left or right).
           */

        }, {
          key: "ngAfterContentChecked",
          value: function ngAfterContentChecked() {
            var _this526 = this;

            // Don't clamp the `indexToSelect` immediately in the setter because it can happen that
            // the amount of tabs changes before the actual change detection runs.
            var indexToSelect = this._indexToSelect = this._clampTabIndex(this._indexToSelect); // If there is a change in selected index, emit a change event. Should not trigger if
            // the selected index has not yet been initialized.


            if (this._selectedIndex != indexToSelect) {
              var isFirstRun = this._selectedIndex == null;

              if (!isFirstRun) {
                this.selectedTabChange.emit(this._createChangeEvent(indexToSelect));
              } // Changing these values after change detection has run
              // since the checked content may contain references to them.


              Promise.resolve().then(function () {
                _this526._tabs.forEach(function (tab, index) {
                  return tab.isActive = index === indexToSelect;
                });

                if (!isFirstRun) {
                  _this526.selectedIndexChange.emit(indexToSelect);
                }
              });
            } // Setup the position for each tab and optionally setup an origin on the next selected tab.


            this._tabs.forEach(function (tab, index) {
              tab.position = index - indexToSelect; // If there is already a selected tab, then set up an origin for the next selected tab
              // if it doesn't have one already.

              if (_this526._selectedIndex != null && tab.position == 0 && !tab.origin) {
                tab.origin = indexToSelect - _this526._selectedIndex;
              }
            });

            if (this._selectedIndex !== indexToSelect) {
              this._selectedIndex = indexToSelect;

              this._changeDetectorRef.markForCheck();
            }
          }
        }, {
          key: "ngAfterContentInit",
          value: function ngAfterContentInit() {
            var _this527 = this;

            this._subscribeToAllTabChanges();

            this._subscribeToTabLabels(); // Subscribe to changes in the amount of tabs, in order to be
            // able to re-render the content as new tabs are added or removed.


            this._tabsSubscription = this._tabs.changes.subscribe(function () {
              var indexToSelect = _this527._clampTabIndex(_this527._indexToSelect); // Maintain the previously-selected tab if a new tab is added or removed and there is no
              // explicit change that selects a different tab.


              if (indexToSelect === _this527._selectedIndex) {
                var tabs = _this527._tabs.toArray();

                for (var i = 0; i < tabs.length; i++) {
                  if (tabs[i].isActive) {
                    // Assign both to the `_indexToSelect` and `_selectedIndex` so we don't fire a changed
                    // event, otherwise the consumer may end up in an infinite loop in some edge cases like
                    // adding a tab within the `selectedIndexChange` event.
                    _this527._indexToSelect = _this527._selectedIndex = i;
                    break;
                  }
                }
              }

              _this527._changeDetectorRef.markForCheck();
            });
          }
          /** Listens to changes in all of the tabs. */

        }, {
          key: "_subscribeToAllTabChanges",
          value: function _subscribeToAllTabChanges() {
            var _this528 = this;

            // Since we use a query with `descendants: true` to pick up the tabs, we may end up catching
            // some that are inside of nested tab groups. We filter them out manually by checking that
            // the closest group to the tab is the current one.
            this._allTabs.changes.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__["startWith"])(this._allTabs)).subscribe(function (tabs) {
              _this528._tabs.reset(tabs.filter(function (tab) {
                return tab._closestTabGroup === _this528;
              }));

              _this528._tabs.notifyOnChanges();
            });
          }
        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            this._tabs.destroy();

            this._tabsSubscription.unsubscribe();

            this._tabLabelSubscription.unsubscribe();
          }
          /** Re-aligns the ink bar to the selected tab element. */

        }, {
          key: "realignInkBar",
          value: function realignInkBar() {
            if (this._tabHeader) {
              this._tabHeader._alignInkBarToSelectedTab();
            }
          }
        }, {
          key: "_focusChanged",
          value: function _focusChanged(index) {
            this.focusChange.emit(this._createChangeEvent(index));
          }
        }, {
          key: "_createChangeEvent",
          value: function _createChangeEvent(index) {
            var event = new MatTabChangeEvent();
            event.index = index;

            if (this._tabs && this._tabs.length) {
              event.tab = this._tabs.toArray()[index];
            }

            return event;
          }
          /**
           * Subscribes to changes in the tab labels. This is needed, because the @Input for the label is
           * on the MatTab component, whereas the data binding is inside the MatTabGroup. In order for the
           * binding to be updated, we need to subscribe to changes in it and trigger change detection
           * manually.
           */

        }, {
          key: "_subscribeToTabLabels",
          value: function _subscribeToTabLabels() {
            var _this529 = this;

            if (this._tabLabelSubscription) {
              this._tabLabelSubscription.unsubscribe();
            }

            this._tabLabelSubscription = Object(rxjs__WEBPACK_IMPORTED_MODULE_7__["merge"]).apply(void 0, _toConsumableArray(this._tabs.map(function (tab) {
              return tab._stateChanges;
            }))).subscribe(function () {
              return _this529._changeDetectorRef.markForCheck();
            });
          }
          /** Clamps the given index to the bounds of 0 and the tabs length. */

        }, {
          key: "_clampTabIndex",
          value: function _clampTabIndex(index) {
            // Note the `|| 0`, which ensures that values like NaN can't get through
            // and which would otherwise throw the component into an infinite loop
            // (since Math.max(NaN, 0) === NaN).
            return Math.min(this._tabs.length - 1, Math.max(index || 0, 0));
          }
          /** Returns a unique id for each tab label element */

        }, {
          key: "_getTabLabelId",
          value: function _getTabLabelId(i) {
            return "mat-tab-label-".concat(this._groupId, "-").concat(i);
          }
          /** Returns a unique id for each tab content element */

        }, {
          key: "_getTabContentId",
          value: function _getTabContentId(i) {
            return "mat-tab-content-".concat(this._groupId, "-").concat(i);
          }
          /**
           * Sets the height of the body wrapper to the height of the activating tab if dynamic
           * height property is true.
           */

        }, {
          key: "_setTabBodyWrapperHeight",
          value: function _setTabBodyWrapperHeight(tabHeight) {
            if (!this._dynamicHeight || !this._tabBodyWrapperHeight) {
              return;
            }

            var wrapper = this._tabBodyWrapper.nativeElement;
            wrapper.style.height = this._tabBodyWrapperHeight + 'px'; // This conditional forces the browser to paint the height so that
            // the animation to the new height can have an origin.

            if (this._tabBodyWrapper.nativeElement.offsetHeight) {
              wrapper.style.height = tabHeight + 'px';
            }
          }
          /** Removes the height of the tab body wrapper. */

        }, {
          key: "_removeTabBodyWrapperHeight",
          value: function _removeTabBodyWrapperHeight() {
            var wrapper = this._tabBodyWrapper.nativeElement;
            this._tabBodyWrapperHeight = wrapper.clientHeight;
            wrapper.style.height = '';
            this.animationDone.emit();
          }
          /** Handle click events, setting new selected index if appropriate. */

        }, {
          key: "_handleClick",
          value: function _handleClick(tab, tabHeader, index) {
            if (!tab.disabled) {
              this.selectedIndex = tabHeader.focusIndex = index;
            }
          }
          /** Retrieves the tabindex for the tab. */

        }, {
          key: "_getTabIndex",
          value: function _getTabIndex(tab, idx) {
            if (tab.disabled) {
              return null;
            }

            return this.selectedIndex === idx ? 0 : -1;
          }
        }]);

        return _MatTabGroupBase;
      }(_MatTabGroupMixinBase);

      _MatTabGroupBase.ɵfac = function _MatTabGroupBase_Factory(t) {
        return new (t || _MatTabGroupBase)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_4__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_4__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](MAT_TABS_CONFIG, 8), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_6__["ANIMATION_MODULE_TYPE"], 8));
      };

      _MatTabGroupBase.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineDirective"]({
        type: _MatTabGroupBase,
        inputs: {
          headerPosition: "headerPosition",
          animationDuration: "animationDuration",
          disablePagination: "disablePagination",
          dynamicHeight: "dynamicHeight",
          selectedIndex: "selectedIndex",
          backgroundColor: "backgroundColor"
        },
        outputs: {
          selectedIndexChange: "selectedIndexChange",
          focusChange: "focusChange",
          animationDone: "animationDone",
          selectedTabChange: "selectedTabChange"
        },
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵInheritDefinitionFeature"]]
      });

      _MatTabGroupBase.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ElementRef"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ChangeDetectorRef"]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Inject"],
            args: [MAT_TABS_CONFIG]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Optional"]
          }]
        }, {
          type: String,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Inject"],
            args: [_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_6__["ANIMATION_MODULE_TYPE"]]
          }]
        }];
      };

      _MatTabGroupBase.propDecorators = {
        dynamicHeight: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Input"]
        }],
        selectedIndex: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Input"]
        }],
        headerPosition: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Input"]
        }],
        animationDuration: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Input"]
        }],
        disablePagination: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Input"]
        }],
        backgroundColor: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Input"]
        }],
        selectedIndexChange: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Output"]
        }],
        focusChange: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Output"]
        }],
        animationDone: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Output"]
        }],
        selectedTabChange: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Output"]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵsetClassMetadata"](_MatTabGroupBase, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Directive"]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ElementRef"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ChangeDetectorRef"]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Inject"],
              args: [MAT_TABS_CONFIG]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Optional"]
            }]
          }, {
            type: String,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Inject"],
              args: [_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_6__["ANIMATION_MODULE_TYPE"]]
            }]
          }];
        }, {
          headerPosition: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Input"]
          }],
          selectedIndexChange: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Output"]
          }],
          focusChange: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Output"]
          }],
          animationDone: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Output"]
          }],
          selectedTabChange: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Output"]
          }],
          animationDuration: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Input"]
          }],
          disablePagination: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Input"]
          }],
          dynamicHeight: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Input"]
          }],
          selectedIndex: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Input"]
          }],
          backgroundColor: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Input"]
          }]
        });
      })();
      /**
       * Material design tab-group component. Supports basic tab pairs (label + content) and includes
       * animated ink-bar, keyboard navigation, and screen reader.
       * See: https://material.io/design/components/tabs.html
       */


      var MatTabGroup = /*#__PURE__*/function (_MatTabGroupBase2) {
        _inherits2(MatTabGroup, _MatTabGroupBase2);

        var _super222 = _createSuper2(MatTabGroup);

        function MatTabGroup(elementRef, changeDetectorRef, defaultConfig, animationMode) {
          _classCallCheck2(this, MatTabGroup);

          return _super222.call(this, elementRef, changeDetectorRef, defaultConfig, animationMode);
        }

        return MatTabGroup;
      }(_MatTabGroupBase);

      MatTabGroup.ɵfac = function MatTabGroup_Factory(t) {
        return new (t || MatTabGroup)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_4__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_4__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](MAT_TABS_CONFIG, 8), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_6__["ANIMATION_MODULE_TYPE"], 8));
      };

      MatTabGroup.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineComponent"]({
        type: MatTabGroup,
        selectors: [["mat-tab-group"]],
        contentQueries: function MatTabGroup_ContentQueries(rf, ctx, dirIndex) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵcontentQuery"](dirIndex, MatTab, true);
          }

          if (rf & 2) {
            var _t;

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵloadQuery"]()) && (ctx._allTabs = _t);
          }
        },
        viewQuery: function MatTabGroup_Query(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵviewQuery"](_c3, true);

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵviewQuery"](_c4, true);
          }

          if (rf & 2) {
            var _t;

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵloadQuery"]()) && (ctx._tabBodyWrapper = _t.first);
            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵloadQuery"]()) && (ctx._tabHeader = _t.first);
          }
        },
        hostAttrs: [1, "mat-tab-group"],
        hostVars: 4,
        hostBindings: function MatTabGroup_HostBindings(rf, ctx) {
          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵclassProp"]("mat-tab-group-dynamic-height", ctx.dynamicHeight)("mat-tab-group-inverted-header", ctx.headerPosition === "below");
          }
        },
        inputs: {
          color: "color",
          disableRipple: "disableRipple"
        },
        exportAs: ["matTabGroup"],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵProvidersFeature"]([{
          provide: MAT_TAB_GROUP,
          useExisting: MatTabGroup
        }]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵInheritDefinitionFeature"]],
        decls: 6,
        vars: 7,
        consts: [[3, "selectedIndex", "disableRipple", "disablePagination", "indexFocused", "selectFocusedIndex"], ["tabHeader", ""], ["class", "mat-tab-label mat-focus-indicator", "role", "tab", "matTabLabelWrapper", "", "mat-ripple", "", "cdkMonitorElementFocus", "", 3, "id", "mat-tab-label-active", "disabled", "matRippleDisabled", "click", 4, "ngFor", "ngForOf"], [1, "mat-tab-body-wrapper"], ["tabBodyWrapper", ""], ["role", "tabpanel", 3, "id", "mat-tab-body-active", "content", "position", "origin", "animationDuration", "_onCentered", "_onCentering", 4, "ngFor", "ngForOf"], ["role", "tab", "matTabLabelWrapper", "", "mat-ripple", "", "cdkMonitorElementFocus", "", 1, "mat-tab-label", "mat-focus-indicator", 3, "id", "disabled", "matRippleDisabled", "click"], [1, "mat-tab-label-content"], [3, "ngIf"], [3, "cdkPortalOutlet"], ["role", "tabpanel", 3, "id", "content", "position", "origin", "animationDuration", "_onCentered", "_onCentering"]],
        template: function MatTabGroup_Template(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "mat-tab-header", 0, 1);

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("indexFocused", function MatTabGroup_Template_mat_tab_header_indexFocused_0_listener($event) {
              return ctx._focusChanged($event);
            })("selectFocusedIndex", function MatTabGroup_Template_mat_tab_header_selectFocusedIndex_0_listener($event) {
              return ctx.selectedIndex = $event;
            });

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](2, MatTabGroup_div_2_Template, 4, 14, "div", 2);

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](3, "div", 3, 4);

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](5, MatTabGroup_mat_tab_body_5_Template, 1, 8, "mat-tab-body", 5);

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
          }

          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("selectedIndex", ctx.selectedIndex || 0)("disableRipple", ctx.disableRipple)("disablePagination", ctx.disablePagination);

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngForOf", ctx._tabs);

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵclassProp"]("_mat-animation-noopable", ctx._animationMode === "NoopAnimations");

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngForOf", ctx._tabs);
          }
        },
        directives: function directives() {
          return [MatTabHeader, _angular_common__WEBPACK_IMPORTED_MODULE_3__["NgForOf"], MatTabLabelWrapper, _angular_material_core__WEBPACK_IMPORTED_MODULE_5__["MatRipple"], _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_0__["CdkMonitorFocus"], _angular_common__WEBPACK_IMPORTED_MODULE_3__["NgIf"], _angular_cdk_portal__WEBPACK_IMPORTED_MODULE_2__["CdkPortalOutlet"], MatTabBody];
        },
        styles: [".mat-tab-group{display:flex;flex-direction:column}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],
        encapsulation: 2
      });

      MatTabGroup.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ElementRef"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ChangeDetectorRef"]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Inject"],
            args: [MAT_TABS_CONFIG]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Optional"]
          }]
        }, {
          type: String,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Inject"],
            args: [_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_6__["ANIMATION_MODULE_TYPE"]]
          }]
        }];
      };

      MatTabGroup.propDecorators = {
        _allTabs: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ContentChildren"],
          args: [MatTab, {
            descendants: true
          }]
        }],
        _tabBodyWrapper: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ViewChild"],
          args: ['tabBodyWrapper']
        }],
        _tabHeader: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ViewChild"],
          args: ['tabHeader']
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵsetClassMetadata"](MatTabGroup, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Component"],
          args: [{
            selector: 'mat-tab-group',
            exportAs: 'matTabGroup',
            template: "<mat-tab-header #tabHeader\n               [selectedIndex]=\"selectedIndex || 0\"\n               [disableRipple]=\"disableRipple\"\n               [disablePagination]=\"disablePagination\"\n               (indexFocused)=\"_focusChanged($event)\"\n               (selectFocusedIndex)=\"selectedIndex = $event\">\n  <div class=\"mat-tab-label mat-focus-indicator\" role=\"tab\" matTabLabelWrapper mat-ripple cdkMonitorElementFocus\n       *ngFor=\"let tab of _tabs; let i = index\"\n       [id]=\"_getTabLabelId(i)\"\n       [attr.tabIndex]=\"_getTabIndex(tab, i)\"\n       [attr.aria-posinset]=\"i + 1\"\n       [attr.aria-setsize]=\"_tabs.length\"\n       [attr.aria-controls]=\"_getTabContentId(i)\"\n       [attr.aria-selected]=\"selectedIndex == i\"\n       [attr.aria-label]=\"tab.ariaLabel || null\"\n       [attr.aria-labelledby]=\"(!tab.ariaLabel && tab.ariaLabelledby) ? tab.ariaLabelledby : null\"\n       [class.mat-tab-label-active]=\"selectedIndex == i\"\n       [disabled]=\"tab.disabled\"\n       [matRippleDisabled]=\"tab.disabled || disableRipple\"\n       (click)=\"_handleClick(tab, tabHeader, i)\">\n\n\n    <div class=\"mat-tab-label-content\">\n      <!-- If there is a label template, use it. -->\n      <ng-template [ngIf]=\"tab.templateLabel\">\n        <ng-template [cdkPortalOutlet]=\"tab.templateLabel\"></ng-template>\n      </ng-template>\n\n      <!-- If there is not a label template, fall back to the text label. -->\n      <ng-template [ngIf]=\"!tab.templateLabel\">{{tab.textLabel}}</ng-template>\n    </div>\n  </div>\n</mat-tab-header>\n\n<div\n  class=\"mat-tab-body-wrapper\"\n  [class._mat-animation-noopable]=\"_animationMode === 'NoopAnimations'\"\n  #tabBodyWrapper>\n  <mat-tab-body role=\"tabpanel\"\n               *ngFor=\"let tab of _tabs; let i = index\"\n               [id]=\"_getTabContentId(i)\"\n               [attr.aria-labelledby]=\"_getTabLabelId(i)\"\n               [class.mat-tab-body-active]=\"selectedIndex == i\"\n               [content]=\"tab.content!\"\n               [position]=\"tab.position!\"\n               [origin]=\"tab.origin\"\n               [animationDuration]=\"animationDuration\"\n               (_onCentered)=\"_removeTabBodyWrapperHeight()\"\n               (_onCentering)=\"_setTabBodyWrapperHeight($event)\">\n  </mat-tab-body>\n</div>\n",
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ViewEncapsulation"].None,
            // tslint:disable-next-line:validate-decorators
            changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ChangeDetectionStrategy"].Default,
            inputs: ['color', 'disableRipple'],
            providers: [{
              provide: MAT_TAB_GROUP,
              useExisting: MatTabGroup
            }],
            host: {
              'class': 'mat-tab-group',
              '[class.mat-tab-group-dynamic-height]': 'dynamicHeight',
              '[class.mat-tab-group-inverted-header]': 'headerPosition === "below"'
            },
            styles: [".mat-tab-group{display:flex;flex-direction:column}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"]
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ElementRef"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ChangeDetectorRef"]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Inject"],
              args: [MAT_TABS_CONFIG]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Optional"]
            }]
          }, {
            type: String,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Inject"],
              args: [_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_6__["ANIMATION_MODULE_TYPE"]]
            }]
          }];
        }, {
          _allTabs: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ContentChildren"],
            args: [MatTab, {
              descendants: true
            }]
          }],
          _tabBodyWrapper: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ViewChild"],
            args: ['tabBodyWrapper']
          }],
          _tabHeader: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ViewChild"],
            args: ['tabHeader']
          }]
        });
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */
      // Boilerplate for applying mixins to MatTabLabelWrapper.

      /** @docs-private */


      var MatTabLabelWrapperBase = function MatTabLabelWrapperBase() {
        _classCallCheck2(this, MatTabLabelWrapperBase);
      };

      var _MatTabLabelWrapperMixinBase = Object(_angular_material_core__WEBPACK_IMPORTED_MODULE_5__["mixinDisabled"])(MatTabLabelWrapperBase);
      /**
       * Used in the `mat-tab-group` view to display tab labels.
       * @docs-private
       */


      var MatTabLabelWrapper = /*#__PURE__*/function (_MatTabLabelWrapperMi) {
        _inherits2(MatTabLabelWrapper, _MatTabLabelWrapperMi);

        var _super223 = _createSuper2(MatTabLabelWrapper);

        function MatTabLabelWrapper(elementRef) {
          var _this530;

          _classCallCheck2(this, MatTabLabelWrapper);

          _this530 = _super223.call(this);
          _this530.elementRef = elementRef;
          return _this530;
        }
        /** Sets focus on the wrapper element */


        _createClass2(MatTabLabelWrapper, [{
          key: "focus",
          value: function focus() {
            this.elementRef.nativeElement.focus();
          }
        }, {
          key: "getOffsetLeft",
          value: function getOffsetLeft() {
            return this.elementRef.nativeElement.offsetLeft;
          }
        }, {
          key: "getOffsetWidth",
          value: function getOffsetWidth() {
            return this.elementRef.nativeElement.offsetWidth;
          }
        }]);

        return MatTabLabelWrapper;
      }(_MatTabLabelWrapperMixinBase);

      MatTabLabelWrapper.ɵfac = function MatTabLabelWrapper_Factory(t) {
        return new (t || MatTabLabelWrapper)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_4__["ElementRef"]));
      };

      MatTabLabelWrapper.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineDirective"]({
        type: MatTabLabelWrapper,
        selectors: [["", "matTabLabelWrapper", ""]],
        hostVars: 3,
        hostBindings: function MatTabLabelWrapper_HostBindings(rf, ctx) {
          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵattribute"]("aria-disabled", !!ctx.disabled);

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵclassProp"]("mat-tab-disabled", ctx.disabled);
          }
        },
        inputs: {
          disabled: "disabled"
        },
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵInheritDefinitionFeature"]]
      });

      MatTabLabelWrapper.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ElementRef"]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵsetClassMetadata"](MatTabLabelWrapper, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Directive"],
          args: [{
            selector: '[matTabLabelWrapper]',
            inputs: ['disabled'],
            host: {
              '[class.mat-tab-disabled]': 'disabled',
              '[attr.aria-disabled]': '!!disabled'
            }
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ElementRef"]
          }];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** Config used to bind passive event listeners */


      var passiveEventListenerOptions = Object(_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_13__["normalizePassiveListenerOptions"])({
        passive: true
      });
      /**
       * The distance in pixels that will be overshot when scrolling a tab label into view. This helps
       * provide a small affordance to the label next to it.
       */

      var EXAGGERATED_OVERSCROLL = 60;
      /**
       * Amount of milliseconds to wait before starting to scroll the header automatically.
       * Set a little conservatively in order to handle fake events dispatched on touch devices.
       */

      var HEADER_SCROLL_DELAY = 650;
      /**
       * Interval in milliseconds at which to scroll the header
       * while the user is holding their pointer.
       */

      var HEADER_SCROLL_INTERVAL = 100;
      /**
       * Base class for a tab header that supported pagination.
       * @docs-private
       */

      var MatPaginatedTabHeader = /*#__PURE__*/function () {
        function MatPaginatedTabHeader(_elementRef, _changeDetectorRef, _viewportRuler, _dir, _ngZone, _platform, _animationMode) {
          var _this531 = this;

          _classCallCheck2(this, MatPaginatedTabHeader);

          this._elementRef = _elementRef;
          this._changeDetectorRef = _changeDetectorRef;
          this._viewportRuler = _viewportRuler;
          this._dir = _dir;
          this._ngZone = _ngZone;
          this._platform = _platform;
          this._animationMode = _animationMode;
          /** The distance in pixels that the tab labels should be translated to the left. */

          this._scrollDistance = 0;
          /** Whether the header should scroll to the selected index after the view has been checked. */

          this._selectedIndexChanged = false;
          /** Emits when the component is destroyed. */

          this._destroyed = new rxjs__WEBPACK_IMPORTED_MODULE_7__["Subject"]();
          /** Whether the controls for pagination should be displayed */

          this._showPaginationControls = false;
          /** Whether the tab list can be scrolled more towards the end of the tab label list. */

          this._disableScrollAfter = true;
          /** Whether the tab list can be scrolled more towards the beginning of the tab label list. */

          this._disableScrollBefore = true;
          /** Stream that will stop the automated scrolling. */

          this._stopScrolling = new rxjs__WEBPACK_IMPORTED_MODULE_7__["Subject"]();
          /**
           * Whether pagination should be disabled. This can be used to avoid unnecessary
           * layout recalculations if it's known that pagination won't be required.
           */

          this.disablePagination = false;
          this._selectedIndex = 0;
          /** Event emitted when the option is selected. */

          this.selectFocusedIndex = new _angular_core__WEBPACK_IMPORTED_MODULE_4__["EventEmitter"]();
          /** Event emitted when a label is focused. */

          this.indexFocused = new _angular_core__WEBPACK_IMPORTED_MODULE_4__["EventEmitter"](); // Bind the `mouseleave` event on the outside since it doesn't change anything in the view.

          _ngZone.runOutsideAngular(function () {
            Object(rxjs__WEBPACK_IMPORTED_MODULE_7__["fromEvent"])(_elementRef.nativeElement, 'mouseleave').pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__["takeUntil"])(_this531._destroyed)).subscribe(function () {
              _this531._stopInterval();
            });
          });
        }
        /** The index of the active tab. */


        _createClass2(MatPaginatedTabHeader, [{
          key: "selectedIndex",
          get: function get() {
            return this._selectedIndex;
          },
          set: function set(value) {
            value = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_11__["coerceNumberProperty"])(value);

            if (this._selectedIndex != value) {
              this._selectedIndexChanged = true;
              this._selectedIndex = value;

              if (this._keyManager) {
                this._keyManager.updateActiveItem(value);
              }
            }
          }
        }, {
          key: "ngAfterViewInit",
          value: function ngAfterViewInit() {
            var _this532 = this;

            // We need to handle these events manually, because we want to bind passive event listeners.
            Object(rxjs__WEBPACK_IMPORTED_MODULE_7__["fromEvent"])(this._previousPaginator.nativeElement, 'touchstart', passiveEventListenerOptions).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__["takeUntil"])(this._destroyed)).subscribe(function () {
              _this532._handlePaginatorPress('before');
            });
            Object(rxjs__WEBPACK_IMPORTED_MODULE_7__["fromEvent"])(this._nextPaginator.nativeElement, 'touchstart', passiveEventListenerOptions).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__["takeUntil"])(this._destroyed)).subscribe(function () {
              _this532._handlePaginatorPress('after');
            });
          }
        }, {
          key: "ngAfterContentInit",
          value: function ngAfterContentInit() {
            var _this533 = this;

            var dirChange = this._dir ? this._dir.change : Object(rxjs__WEBPACK_IMPORTED_MODULE_7__["of"])(null);

            var resize = this._viewportRuler.change(150);

            var realign = function realign() {
              _this533.updatePagination();

              _this533._alignInkBarToSelectedTab();
            };

            this._keyManager = new _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_0__["FocusKeyManager"](this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap();

            this._keyManager.updateActiveItem(this._selectedIndex); // Defer the first call in order to allow for slower browsers to lay out the elements.
            // This helps in cases where the user lands directly on a page with paginated tabs.


            typeof requestAnimationFrame !== 'undefined' ? requestAnimationFrame(realign) : realign(); // On dir change or window resize, realign the ink bar and update the orientation of
            // the key manager if the direction has changed.

            Object(rxjs__WEBPACK_IMPORTED_MODULE_7__["merge"])(dirChange, resize, this._items.changes).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__["takeUntil"])(this._destroyed)).subscribe(function () {
              // We need to defer this to give the browser some time to recalculate the element dimensions.
              Promise.resolve().then(realign);

              _this533._keyManager.withHorizontalOrientation(_this533._getLayoutDirection());
            }); // If there is a change in the focus key manager we need to emit the `indexFocused`
            // event in order to provide a public event that notifies about focus changes. Also we realign
            // the tabs container by scrolling the new focused tab into the visible section.

            this._keyManager.change.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__["takeUntil"])(this._destroyed)).subscribe(function (newFocusIndex) {
              _this533.indexFocused.emit(newFocusIndex);

              _this533._setTabFocus(newFocusIndex);
            });
          }
        }, {
          key: "ngAfterContentChecked",
          value: function ngAfterContentChecked() {
            // If the number of tab labels have changed, check if scrolling should be enabled
            if (this._tabLabelCount != this._items.length) {
              this.updatePagination();
              this._tabLabelCount = this._items.length;

              this._changeDetectorRef.markForCheck();
            } // If the selected index has changed, scroll to the label and check if the scrolling controls
            // should be disabled.


            if (this._selectedIndexChanged) {
              this._scrollToLabel(this._selectedIndex);

              this._checkScrollingControls();

              this._alignInkBarToSelectedTab();

              this._selectedIndexChanged = false;

              this._changeDetectorRef.markForCheck();
            } // If the scroll distance has been changed (tab selected, focused, scroll controls activated),
            // then translate the header to reflect this.


            if (this._scrollDistanceChanged) {
              this._updateTabScrollPosition();

              this._scrollDistanceChanged = false;

              this._changeDetectorRef.markForCheck();
            }
          }
        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            this._destroyed.next();

            this._destroyed.complete();

            this._stopScrolling.complete();
          }
          /** Handles keyboard events on the header. */

        }, {
          key: "_handleKeydown",
          value: function _handleKeydown(event) {
            // We don't handle any key bindings with a modifier key.
            if (Object(_angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_14__["hasModifierKey"])(event)) {
              return;
            }

            switch (event.keyCode) {
              case _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_14__["ENTER"]:
              case _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_14__["SPACE"]:
                if (this.focusIndex !== this.selectedIndex) {
                  this.selectFocusedIndex.emit(this.focusIndex);

                  this._itemSelected(event);
                }

                break;

              default:
                this._keyManager.onKeydown(event);

            }
          }
          /**
           * Callback for when the MutationObserver detects that the content has changed.
           */

        }, {
          key: "_onContentChanges",
          value: function _onContentChanges() {
            var _this534 = this;

            var textContent = this._elementRef.nativeElement.textContent; // We need to diff the text content of the header, because the MutationObserver callback
            // will fire even if the text content didn't change which is inefficient and is prone
            // to infinite loops if a poorly constructed expression is passed in (see #14249).

            if (textContent !== this._currentTextContent) {
              this._currentTextContent = textContent || ''; // The content observer runs outside the `NgZone` by default, which
              // means that we need to bring the callback back in ourselves.

              this._ngZone.run(function () {
                _this534.updatePagination();

                _this534._alignInkBarToSelectedTab();

                _this534._changeDetectorRef.markForCheck();
              });
            }
          }
          /**
           * Updates the view whether pagination should be enabled or not.
           *
           * WARNING: Calling this method can be very costly in terms of performance. It should be called
           * as infrequently as possible from outside of the Tabs component as it causes a reflow of the
           * page.
           */

        }, {
          key: "updatePagination",
          value: function updatePagination() {
            this._checkPaginationEnabled();

            this._checkScrollingControls();

            this._updateTabScrollPosition();
          }
          /** Tracks which element has focus; used for keyboard navigation */

        }, {
          key: "focusIndex",
          get: function get() {
            return this._keyManager ? this._keyManager.activeItemIndex : 0;
          }
          /** When the focus index is set, we must manually send focus to the correct label */
          ,
          set: function set(value) {
            if (!this._isValidIndex(value) || this.focusIndex === value || !this._keyManager) {
              return;
            }

            this._keyManager.setActiveItem(value);
          }
          /**
           * Determines if an index is valid.  If the tabs are not ready yet, we assume that the user is
           * providing a valid index and return true.
           */

        }, {
          key: "_isValidIndex",
          value: function _isValidIndex(index) {
            if (!this._items) {
              return true;
            }

            var tab = this._items ? this._items.toArray()[index] : null;
            return !!tab && !tab.disabled;
          }
          /**
           * Sets focus on the HTML element for the label wrapper and scrolls it into the view if
           * scrolling is enabled.
           */

        }, {
          key: "_setTabFocus",
          value: function _setTabFocus(tabIndex) {
            if (this._showPaginationControls) {
              this._scrollToLabel(tabIndex);
            }

            if (this._items && this._items.length) {
              this._items.toArray()[tabIndex].focus(); // Do not let the browser manage scrolling to focus the element, this will be handled
              // by using translation. In LTR, the scroll left should be 0. In RTL, the scroll width
              // should be the full width minus the offset width.


              var containerEl = this._tabListContainer.nativeElement;

              var dir = this._getLayoutDirection();

              if (dir == 'ltr') {
                containerEl.scrollLeft = 0;
              } else {
                containerEl.scrollLeft = containerEl.scrollWidth - containerEl.offsetWidth;
              }
            }
          }
          /** The layout direction of the containing app. */

        }, {
          key: "_getLayoutDirection",
          value: function _getLayoutDirection() {
            return this._dir && this._dir.value === 'rtl' ? 'rtl' : 'ltr';
          }
          /** Performs the CSS transformation on the tab list that will cause the list to scroll. */

        }, {
          key: "_updateTabScrollPosition",
          value: function _updateTabScrollPosition() {
            if (this.disablePagination) {
              return;
            }

            var scrollDistance = this.scrollDistance;
            var translateX = this._getLayoutDirection() === 'ltr' ? -scrollDistance : scrollDistance; // Don't use `translate3d` here because we don't want to create a new layer. A new layer
            // seems to cause flickering and overflow in Internet Explorer. For example, the ink bar
            // and ripples will exceed the boundaries of the visible tab bar.
            // See: https://github.com/angular/components/issues/10276
            // We round the `transform` here, because transforms with sub-pixel precision cause some
            // browsers to blur the content of the element.

            this._tabList.nativeElement.style.transform = "translateX(".concat(Math.round(translateX), "px)"); // Setting the `transform` on IE will change the scroll offset of the parent, causing the
            // position to be thrown off in some cases. We have to reset it ourselves to ensure that
            // it doesn't get thrown off. Note that we scope it only to IE and Edge, because messing
            // with the scroll position throws off Chrome 71+ in RTL mode (see #14689).

            if (this._platform.TRIDENT || this._platform.EDGE) {
              this._tabListContainer.nativeElement.scrollLeft = 0;
            }
          }
          /** Sets the distance in pixels that the tab header should be transformed in the X-axis. */

        }, {
          key: "scrollDistance",
          get: function get() {
            return this._scrollDistance;
          },
          set: function set(value) {
            this._scrollTo(value);
          }
          /**
           * Moves the tab list in the 'before' or 'after' direction (towards the beginning of the list or
           * the end of the list, respectively). The distance to scroll is computed to be a third of the
           * length of the tab list view window.
           *
           * This is an expensive call that forces a layout reflow to compute box and scroll metrics and
           * should be called sparingly.
           */

        }, {
          key: "_scrollHeader",
          value: function _scrollHeader(direction) {
            var viewLength = this._tabListContainer.nativeElement.offsetWidth; // Move the scroll distance one-third the length of the tab list's viewport.

            var scrollAmount = (direction == 'before' ? -1 : 1) * viewLength / 3;
            return this._scrollTo(this._scrollDistance + scrollAmount);
          }
          /** Handles click events on the pagination arrows. */

        }, {
          key: "_handlePaginatorClick",
          value: function _handlePaginatorClick(direction) {
            this._stopInterval();

            this._scrollHeader(direction);
          }
          /**
           * Moves the tab list such that the desired tab label (marked by index) is moved into view.
           *
           * This is an expensive call that forces a layout reflow to compute box and scroll metrics and
           * should be called sparingly.
           */

        }, {
          key: "_scrollToLabel",
          value: function _scrollToLabel(labelIndex) {
            if (this.disablePagination) {
              return;
            }

            var selectedLabel = this._items ? this._items.toArray()[labelIndex] : null;

            if (!selectedLabel) {
              return;
            } // The view length is the visible width of the tab labels.


            var viewLength = this._tabListContainer.nativeElement.offsetWidth;
            var _selectedLabel$elemen = selectedLabel.elementRef.nativeElement,
                offsetLeft = _selectedLabel$elemen.offsetLeft,
                offsetWidth = _selectedLabel$elemen.offsetWidth;
            var labelBeforePos, labelAfterPos;

            if (this._getLayoutDirection() == 'ltr') {
              labelBeforePos = offsetLeft;
              labelAfterPos = labelBeforePos + offsetWidth;
            } else {
              labelAfterPos = this._tabList.nativeElement.offsetWidth - offsetLeft;
              labelBeforePos = labelAfterPos - offsetWidth;
            }

            var beforeVisiblePos = this.scrollDistance;
            var afterVisiblePos = this.scrollDistance + viewLength;

            if (labelBeforePos < beforeVisiblePos) {
              // Scroll header to move label to the before direction
              this.scrollDistance -= beforeVisiblePos - labelBeforePos + EXAGGERATED_OVERSCROLL;
            } else if (labelAfterPos > afterVisiblePos) {
              // Scroll header to move label to the after direction
              this.scrollDistance += labelAfterPos - afterVisiblePos + EXAGGERATED_OVERSCROLL;
            }
          }
          /**
           * Evaluate whether the pagination controls should be displayed. If the scroll width of the
           * tab list is wider than the size of the header container, then the pagination controls should
           * be shown.
           *
           * This is an expensive call that forces a layout reflow to compute box and scroll metrics and
           * should be called sparingly.
           */

        }, {
          key: "_checkPaginationEnabled",
          value: function _checkPaginationEnabled() {
            if (this.disablePagination) {
              this._showPaginationControls = false;
            } else {
              var isEnabled = this._tabList.nativeElement.scrollWidth > this._elementRef.nativeElement.offsetWidth;

              if (!isEnabled) {
                this.scrollDistance = 0;
              }

              if (isEnabled !== this._showPaginationControls) {
                this._changeDetectorRef.markForCheck();
              }

              this._showPaginationControls = isEnabled;
            }
          }
          /**
           * Evaluate whether the before and after controls should be enabled or disabled.
           * If the header is at the beginning of the list (scroll distance is equal to 0) then disable the
           * before button. If the header is at the end of the list (scroll distance is equal to the
           * maximum distance we can scroll), then disable the after button.
           *
           * This is an expensive call that forces a layout reflow to compute box and scroll metrics and
           * should be called sparingly.
           */

        }, {
          key: "_checkScrollingControls",
          value: function _checkScrollingControls() {
            if (this.disablePagination) {
              this._disableScrollAfter = this._disableScrollBefore = true;
            } else {
              // Check if the pagination arrows should be activated.
              this._disableScrollBefore = this.scrollDistance == 0;
              this._disableScrollAfter = this.scrollDistance == this._getMaxScrollDistance();

              this._changeDetectorRef.markForCheck();
            }
          }
          /**
           * Determines what is the maximum length in pixels that can be set for the scroll distance. This
           * is equal to the difference in width between the tab list container and tab header container.
           *
           * This is an expensive call that forces a layout reflow to compute box and scroll metrics and
           * should be called sparingly.
           */

        }, {
          key: "_getMaxScrollDistance",
          value: function _getMaxScrollDistance() {
            var lengthOfTabList = this._tabList.nativeElement.scrollWidth;
            var viewLength = this._tabListContainer.nativeElement.offsetWidth;
            return lengthOfTabList - viewLength || 0;
          }
          /** Tells the ink-bar to align itself to the current label wrapper */

        }, {
          key: "_alignInkBarToSelectedTab",
          value: function _alignInkBarToSelectedTab() {
            var selectedItem = this._items && this._items.length ? this._items.toArray()[this.selectedIndex] : null;
            var selectedLabelWrapper = selectedItem ? selectedItem.elementRef.nativeElement : null;

            if (selectedLabelWrapper) {
              this._inkBar.alignToElement(selectedLabelWrapper);
            } else {
              this._inkBar.hide();
            }
          }
          /** Stops the currently-running paginator interval.  */

        }, {
          key: "_stopInterval",
          value: function _stopInterval() {
            this._stopScrolling.next();
          }
          /**
           * Handles the user pressing down on one of the paginators.
           * Starts scrolling the header after a certain amount of time.
           * @param direction In which direction the paginator should be scrolled.
           */

        }, {
          key: "_handlePaginatorPress",
          value: function _handlePaginatorPress(direction, mouseEvent) {
            var _this535 = this;

            // Don't start auto scrolling for right mouse button clicks. Note that we shouldn't have to
            // null check the `button`, but we do it so we don't break tests that use fake events.
            if (mouseEvent && mouseEvent.button != null && mouseEvent.button !== 0) {
              return;
            } // Avoid overlapping timers.


            this._stopInterval(); // Start a timer after the delay and keep firing based on the interval.


            Object(rxjs__WEBPACK_IMPORTED_MODULE_7__["timer"])(HEADER_SCROLL_DELAY, HEADER_SCROLL_INTERVAL) // Keep the timer going until something tells it to stop or the component is destroyed.
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__["takeUntil"])(Object(rxjs__WEBPACK_IMPORTED_MODULE_7__["merge"])(this._stopScrolling, this._destroyed))).subscribe(function () {
              var _this535$_scrollHeade = _this535._scrollHeader(direction),
                  maxScrollDistance = _this535$_scrollHeade.maxScrollDistance,
                  distance = _this535$_scrollHeade.distance; // Stop the timer if we've reached the start or the end.


              if (distance === 0 || distance >= maxScrollDistance) {
                _this535._stopInterval();
              }
            });
          }
          /**
           * Scrolls the header to a given position.
           * @param position Position to which to scroll.
           * @returns Information on the current scroll distance and the maximum.
           */

        }, {
          key: "_scrollTo",
          value: function _scrollTo(position) {
            if (this.disablePagination) {
              return {
                maxScrollDistance: 0,
                distance: 0
              };
            }

            var maxScrollDistance = this._getMaxScrollDistance();

            this._scrollDistance = Math.max(0, Math.min(maxScrollDistance, position)); // Mark that the scroll distance has changed so that after the view is checked, the CSS
            // transformation can move the header.

            this._scrollDistanceChanged = true;

            this._checkScrollingControls();

            return {
              maxScrollDistance: maxScrollDistance,
              distance: this._scrollDistance
            };
          }
        }]);

        return MatPaginatedTabHeader;
      }();

      MatPaginatedTabHeader.ɵfac = function MatPaginatedTabHeader_Factory(t) {
        return new (t || MatPaginatedTabHeader)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_4__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_4__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_12__["ViewportRuler"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_8__["Directionality"], 8), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_4__["NgZone"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_13__["Platform"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_6__["ANIMATION_MODULE_TYPE"], 8));
      };

      MatPaginatedTabHeader.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineDirective"]({
        type: MatPaginatedTabHeader,
        inputs: {
          disablePagination: "disablePagination"
        }
      });

      MatPaginatedTabHeader.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ElementRef"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ChangeDetectorRef"]
        }, {
          type: _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_12__["ViewportRuler"]
        }, {
          type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_8__["Directionality"],
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Optional"]
          }]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["NgZone"]
        }, {
          type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_13__["Platform"]
        }, {
          type: String,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Inject"],
            args: [_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_6__["ANIMATION_MODULE_TYPE"]]
          }]
        }];
      };

      MatPaginatedTabHeader.propDecorators = {
        disablePagination: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Input"]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵsetClassMetadata"](MatPaginatedTabHeader, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Directive"]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ElementRef"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ChangeDetectorRef"]
          }, {
            type: _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_12__["ViewportRuler"]
          }, {
            type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_8__["Directionality"],
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Optional"]
            }]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["NgZone"]
          }, {
            type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_13__["Platform"]
          }, {
            type: String,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Inject"],
              args: [_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_6__["ANIMATION_MODULE_TYPE"]]
            }]
          }];
        }, {
          disablePagination: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Input"]
          }]
        });
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Base class with all of the `MatTabHeader` functionality.
       * @docs-private
       */


      var _MatTabHeaderBase = /*#__PURE__*/function (_MatPaginatedTabHeade) {
        _inherits2(_MatTabHeaderBase, _MatPaginatedTabHeade);

        var _super224 = _createSuper2(_MatTabHeaderBase);

        function _MatTabHeaderBase(elementRef, changeDetectorRef, viewportRuler, dir, ngZone, platform, animationMode) {
          var _this536;

          _classCallCheck2(this, _MatTabHeaderBase);

          _this536 = _super224.call(this, elementRef, changeDetectorRef, viewportRuler, dir, ngZone, platform, animationMode);
          _this536._disableRipple = false;
          return _this536;
        }
        /** Whether the ripple effect is disabled or not. */


        _createClass2(_MatTabHeaderBase, [{
          key: "disableRipple",
          get: function get() {
            return this._disableRipple;
          },
          set: function set(value) {
            this._disableRipple = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_11__["coerceBooleanProperty"])(value);
          }
        }, {
          key: "_itemSelected",
          value: function _itemSelected(event) {
            event.preventDefault();
          }
        }]);

        return _MatTabHeaderBase;
      }(MatPaginatedTabHeader);

      _MatTabHeaderBase.ɵfac = function _MatTabHeaderBase_Factory(t) {
        return new (t || _MatTabHeaderBase)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_4__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_4__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_12__["ViewportRuler"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_8__["Directionality"], 8), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_4__["NgZone"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_13__["Platform"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_6__["ANIMATION_MODULE_TYPE"], 8));
      };

      _MatTabHeaderBase.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineDirective"]({
        type: _MatTabHeaderBase,
        inputs: {
          disableRipple: "disableRipple"
        },
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵInheritDefinitionFeature"]]
      });

      _MatTabHeaderBase.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ElementRef"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ChangeDetectorRef"]
        }, {
          type: _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_12__["ViewportRuler"]
        }, {
          type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_8__["Directionality"],
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Optional"]
          }]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["NgZone"]
        }, {
          type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_13__["Platform"]
        }, {
          type: String,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Inject"],
            args: [_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_6__["ANIMATION_MODULE_TYPE"]]
          }]
        }];
      };

      _MatTabHeaderBase.propDecorators = {
        disableRipple: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Input"]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵsetClassMetadata"](_MatTabHeaderBase, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Directive"]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ElementRef"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ChangeDetectorRef"]
          }, {
            type: _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_12__["ViewportRuler"]
          }, {
            type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_8__["Directionality"],
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Optional"]
            }]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["NgZone"]
          }, {
            type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_13__["Platform"]
          }, {
            type: String,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Inject"],
              args: [_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_6__["ANIMATION_MODULE_TYPE"]]
            }]
          }];
        }, {
          disableRipple: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Input"]
          }]
        });
      })();
      /**
       * The header of the tab group which displays a list of all the tabs in the tab group. Includes
       * an ink bar that follows the currently selected tab. When the tabs list's width exceeds the
       * width of the header container, then arrows will be displayed to allow the user to scroll
       * left and right across the header.
       * @docs-private
       */


      var MatTabHeader = /*#__PURE__*/function (_MatTabHeaderBase2) {
        _inherits2(MatTabHeader, _MatTabHeaderBase2);

        var _super225 = _createSuper2(MatTabHeader);

        function MatTabHeader(elementRef, changeDetectorRef, viewportRuler, dir, ngZone, platform, animationMode) {
          _classCallCheck2(this, MatTabHeader);

          return _super225.call(this, elementRef, changeDetectorRef, viewportRuler, dir, ngZone, platform, animationMode);
        }

        return MatTabHeader;
      }(_MatTabHeaderBase);

      MatTabHeader.ɵfac = function MatTabHeader_Factory(t) {
        return new (t || MatTabHeader)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_4__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_4__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_12__["ViewportRuler"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_8__["Directionality"], 8), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_4__["NgZone"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_13__["Platform"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_6__["ANIMATION_MODULE_TYPE"], 8));
      };

      MatTabHeader.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineComponent"]({
        type: MatTabHeader,
        selectors: [["mat-tab-header"]],
        contentQueries: function MatTabHeader_ContentQueries(rf, ctx, dirIndex) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵcontentQuery"](dirIndex, MatTabLabelWrapper, false);
          }

          if (rf & 2) {
            var _t;

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵloadQuery"]()) && (ctx._items = _t);
          }
        },
        viewQuery: function MatTabHeader_Query(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵstaticViewQuery"](MatInkBar, true);

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵstaticViewQuery"](_c5, true);

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵstaticViewQuery"](_c6, true);

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵviewQuery"](_c7, true);

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵviewQuery"](_c8, true);
          }

          if (rf & 2) {
            var _t;

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵloadQuery"]()) && (ctx._inkBar = _t.first);
            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵloadQuery"]()) && (ctx._tabListContainer = _t.first);
            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵloadQuery"]()) && (ctx._tabList = _t.first);
            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵloadQuery"]()) && (ctx._nextPaginator = _t.first);
            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵloadQuery"]()) && (ctx._previousPaginator = _t.first);
          }
        },
        hostAttrs: [1, "mat-tab-header"],
        hostVars: 4,
        hostBindings: function MatTabHeader_HostBindings(rf, ctx) {
          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵclassProp"]("mat-tab-header-pagination-controls-enabled", ctx._showPaginationControls)("mat-tab-header-rtl", ctx._getLayoutDirection() == "rtl");
          }
        },
        inputs: {
          selectedIndex: "selectedIndex"
        },
        outputs: {
          selectFocusedIndex: "selectFocusedIndex",
          indexFocused: "indexFocused"
        },
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵInheritDefinitionFeature"]],
        ngContentSelectors: _c0,
        decls: 13,
        vars: 8,
        consts: [["aria-hidden", "true", "mat-ripple", "", 1, "mat-tab-header-pagination", "mat-tab-header-pagination-before", "mat-elevation-z4", 3, "matRippleDisabled", "click", "mousedown", "touchend"], ["previousPaginator", ""], [1, "mat-tab-header-pagination-chevron"], [1, "mat-tab-label-container", 3, "keydown"], ["tabListContainer", ""], ["role", "tablist", 1, "mat-tab-list", 3, "cdkObserveContent"], ["tabList", ""], [1, "mat-tab-labels"], ["aria-hidden", "true", "mat-ripple", "", 1, "mat-tab-header-pagination", "mat-tab-header-pagination-after", "mat-elevation-z4", 3, "matRippleDisabled", "mousedown", "click", "touchend"], ["nextPaginator", ""]],
        template: function MatTabHeader_Template(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵprojectionDef"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 0, 1);

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function MatTabHeader_Template_div_click_0_listener() {
              return ctx._handlePaginatorClick("before");
            })("mousedown", function MatTabHeader_Template_div_mousedown_0_listener($event) {
              return ctx._handlePaginatorPress("before", $event);
            })("touchend", function MatTabHeader_Template_div_touchend_0_listener() {
              return ctx._stopInterval();
            });

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](2, "div", 2);

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](3, "div", 3, 4);

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("keydown", function MatTabHeader_Template_div_keydown_3_listener($event) {
              return ctx._handleKeydown($event);
            });

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](5, "div", 5, 6);

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("cdkObserveContent", function MatTabHeader_Template_div_cdkObserveContent_5_listener() {
              return ctx._onContentChanges();
            });

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](7, "div", 7);

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵprojection"](8);

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](9, "mat-ink-bar");

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](10, "div", 8, 9);

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("mousedown", function MatTabHeader_Template_div_mousedown_10_listener($event) {
              return ctx._handlePaginatorPress("after", $event);
            })("click", function MatTabHeader_Template_div_click_10_listener() {
              return ctx._handlePaginatorClick("after");
            })("touchend", function MatTabHeader_Template_div_touchend_10_listener() {
              return ctx._stopInterval();
            });

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](12, "div", 2);

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
          }

          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵclassProp"]("mat-tab-header-pagination-disabled", ctx._disableScrollBefore);

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("matRippleDisabled", ctx._disableScrollBefore || ctx.disableRipple);

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](5);

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵclassProp"]("_mat-animation-noopable", ctx._animationMode === "NoopAnimations");

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](5);

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵclassProp"]("mat-tab-header-pagination-disabled", ctx._disableScrollAfter);

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("matRippleDisabled", ctx._disableScrollAfter || ctx.disableRipple);
          }
        },
        directives: [_angular_material_core__WEBPACK_IMPORTED_MODULE_5__["MatRipple"], _angular_cdk_observers__WEBPACK_IMPORTED_MODULE_1__["CdkObserveContent"], MatInkBar],
        styles: [".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:\"\";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n"],
        encapsulation: 2
      });

      MatTabHeader.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ElementRef"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ChangeDetectorRef"]
        }, {
          type: _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_12__["ViewportRuler"]
        }, {
          type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_8__["Directionality"],
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Optional"]
          }]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["NgZone"]
        }, {
          type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_13__["Platform"]
        }, {
          type: String,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Inject"],
            args: [_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_6__["ANIMATION_MODULE_TYPE"]]
          }]
        }];
      };

      MatTabHeader.propDecorators = {
        _items: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ContentChildren"],
          args: [MatTabLabelWrapper, {
            descendants: false
          }]
        }],
        _inkBar: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ViewChild"],
          args: [MatInkBar, {
            "static": true
          }]
        }],
        _tabListContainer: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ViewChild"],
          args: ['tabListContainer', {
            "static": true
          }]
        }],
        _tabList: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ViewChild"],
          args: ['tabList', {
            "static": true
          }]
        }],
        _nextPaginator: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ViewChild"],
          args: ['nextPaginator']
        }],
        _previousPaginator: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ViewChild"],
          args: ['previousPaginator']
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵsetClassMetadata"](MatTabHeader, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Component"],
          args: [{
            selector: 'mat-tab-header',
            template: "<div class=\"mat-tab-header-pagination mat-tab-header-pagination-before mat-elevation-z4\"\n     #previousPaginator\n     aria-hidden=\"true\"\n     mat-ripple [matRippleDisabled]=\"_disableScrollBefore || disableRipple\"\n     [class.mat-tab-header-pagination-disabled]=\"_disableScrollBefore\"\n     (click)=\"_handlePaginatorClick('before')\"\n     (mousedown)=\"_handlePaginatorPress('before', $event)\"\n     (touchend)=\"_stopInterval()\">\n  <div class=\"mat-tab-header-pagination-chevron\"></div>\n</div>\n\n<div class=\"mat-tab-label-container\" #tabListContainer (keydown)=\"_handleKeydown($event)\">\n  <div\n    #tabList\n    class=\"mat-tab-list\"\n    [class._mat-animation-noopable]=\"_animationMode === 'NoopAnimations'\"\n    role=\"tablist\"\n    (cdkObserveContent)=\"_onContentChanges()\">\n    <div class=\"mat-tab-labels\">\n      <ng-content></ng-content>\n    </div>\n    <mat-ink-bar></mat-ink-bar>\n  </div>\n</div>\n\n<div class=\"mat-tab-header-pagination mat-tab-header-pagination-after mat-elevation-z4\"\n     #nextPaginator\n     aria-hidden=\"true\"\n     mat-ripple [matRippleDisabled]=\"_disableScrollAfter || disableRipple\"\n     [class.mat-tab-header-pagination-disabled]=\"_disableScrollAfter\"\n     (mousedown)=\"_handlePaginatorPress('after', $event)\"\n     (click)=\"_handlePaginatorClick('after')\"\n     (touchend)=\"_stopInterval()\">\n  <div class=\"mat-tab-header-pagination-chevron\"></div>\n</div>\n",
            inputs: ['selectedIndex'],
            outputs: ['selectFocusedIndex', 'indexFocused'],
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ViewEncapsulation"].None,
            // tslint:disable-next-line:validate-decorators
            changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ChangeDetectionStrategy"].Default,
            host: {
              'class': 'mat-tab-header',
              '[class.mat-tab-header-pagination-controls-enabled]': '_showPaginationControls',
              '[class.mat-tab-header-rtl]': "_getLayoutDirection() == 'rtl'"
            },
            styles: [".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:\"\";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n"]
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ElementRef"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ChangeDetectorRef"]
          }, {
            type: _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_12__["ViewportRuler"]
          }, {
            type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_8__["Directionality"],
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Optional"]
            }]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["NgZone"]
          }, {
            type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_13__["Platform"]
          }, {
            type: String,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Inject"],
              args: [_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_6__["ANIMATION_MODULE_TYPE"]]
            }]
          }];
        }, {
          _items: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ContentChildren"],
            args: [MatTabLabelWrapper, {
              descendants: false
            }]
          }],
          _inkBar: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ViewChild"],
            args: [MatInkBar, {
              "static": true
            }]
          }],
          _tabListContainer: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ViewChild"],
            args: ['tabListContainer', {
              "static": true
            }]
          }],
          _tabList: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ViewChild"],
            args: ['tabList', {
              "static": true
            }]
          }],
          _nextPaginator: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ViewChild"],
            args: ['nextPaginator']
          }],
          _previousPaginator: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ViewChild"],
            args: ['previousPaginator']
          }]
        });
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Base class with all of the `MatTabNav` functionality.
       * @docs-private
       */


      var _MatTabNavBase = /*#__PURE__*/function (_MatPaginatedTabHeade2) {
        _inherits2(_MatTabNavBase, _MatPaginatedTabHeade2);

        var _super226 = _createSuper2(_MatTabNavBase);

        function _MatTabNavBase(elementRef, dir, ngZone, changeDetectorRef, viewportRuler, platform, animationMode) {
          var _this537;

          _classCallCheck2(this, _MatTabNavBase);

          _this537 = _super226.call(this, elementRef, changeDetectorRef, viewportRuler, dir, ngZone, platform, animationMode);
          _this537._disableRipple = false;
          /** Theme color of the nav bar. */

          _this537.color = 'primary';
          return _this537;
        }
        /** Background color of the tab nav. */


        _createClass2(_MatTabNavBase, [{
          key: "backgroundColor",
          get: function get() {
            return this._backgroundColor;
          },
          set: function set(value) {
            var classList = this._elementRef.nativeElement.classList;
            classList.remove("mat-background-".concat(this.backgroundColor));

            if (value) {
              classList.add("mat-background-".concat(value));
            }

            this._backgroundColor = value;
          }
          /** Whether the ripple effect is disabled or not. */

        }, {
          key: "disableRipple",
          get: function get() {
            return this._disableRipple;
          },
          set: function set(value) {
            this._disableRipple = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_11__["coerceBooleanProperty"])(value);
          }
        }, {
          key: "_itemSelected",
          value: function _itemSelected() {// noop
          }
        }, {
          key: "ngAfterContentInit",
          value: function ngAfterContentInit() {
            var _this538 = this;

            // We need this to run before the `changes` subscription in parent to ensure that the
            // selectedIndex is up-to-date by the time the super class starts looking for it.
            this._items.changes.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__["startWith"])(null), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__["takeUntil"])(this._destroyed)).subscribe(function () {
              _this538.updateActiveLink();
            });

            _get2(_getPrototypeOf2(_MatTabNavBase.prototype), "ngAfterContentInit", this).call(this);
          }
          /** Notifies the component that the active link has been changed. */

        }, {
          key: "updateActiveLink",
          value: function updateActiveLink() {
            if (!this._items) {
              return;
            }

            var items = this._items.toArray();

            for (var i = 0; i < items.length; i++) {
              if (items[i].active) {
                this.selectedIndex = i;

                this._changeDetectorRef.markForCheck();

                return;
              }
            } // The ink bar should hide itself if no items are active.


            this.selectedIndex = -1;

            this._inkBar.hide();
          }
        }]);

        return _MatTabNavBase;
      }(MatPaginatedTabHeader);

      _MatTabNavBase.ɵfac = function _MatTabNavBase_Factory(t) {
        return new (t || _MatTabNavBase)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_4__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_8__["Directionality"], 8), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_4__["NgZone"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_4__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_12__["ViewportRuler"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_13__["Platform"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_6__["ANIMATION_MODULE_TYPE"], 8));
      };

      _MatTabNavBase.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineDirective"]({
        type: _MatTabNavBase,
        inputs: {
          color: "color",
          backgroundColor: "backgroundColor",
          disableRipple: "disableRipple"
        },
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵInheritDefinitionFeature"]]
      });

      _MatTabNavBase.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ElementRef"]
        }, {
          type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_8__["Directionality"],
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Optional"]
          }]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["NgZone"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ChangeDetectorRef"]
        }, {
          type: _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_12__["ViewportRuler"]
        }, {
          type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_13__["Platform"]
        }, {
          type: String,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Inject"],
            args: [_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_6__["ANIMATION_MODULE_TYPE"]]
          }]
        }];
      };

      _MatTabNavBase.propDecorators = {
        backgroundColor: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Input"]
        }],
        disableRipple: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Input"]
        }],
        color: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Input"]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵsetClassMetadata"](_MatTabNavBase, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Directive"]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ElementRef"]
          }, {
            type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_8__["Directionality"],
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Optional"]
            }]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["NgZone"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ChangeDetectorRef"]
          }, {
            type: _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_12__["ViewportRuler"]
          }, {
            type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_13__["Platform"]
          }, {
            type: String,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Inject"],
              args: [_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_6__["ANIMATION_MODULE_TYPE"]]
            }]
          }];
        }, {
          color: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Input"]
          }],
          backgroundColor: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Input"]
          }],
          disableRipple: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Input"]
          }]
        });
      })();
      /**
       * Navigation component matching the styles of the tab group header.
       * Provides anchored navigation with animated ink bar.
       */


      var MatTabNav = /*#__PURE__*/function (_MatTabNavBase2) {
        _inherits2(MatTabNav, _MatTabNavBase2);

        var _super227 = _createSuper2(MatTabNav);

        function MatTabNav(elementRef, dir, ngZone, changeDetectorRef, viewportRuler, platform, animationMode) {
          _classCallCheck2(this, MatTabNav);

          return _super227.call(this, elementRef, dir, ngZone, changeDetectorRef, viewportRuler, platform, animationMode);
        }

        return MatTabNav;
      }(_MatTabNavBase);

      MatTabNav.ɵfac = function MatTabNav_Factory(t) {
        return new (t || MatTabNav)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_4__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_8__["Directionality"], 8), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_4__["NgZone"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_4__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_12__["ViewportRuler"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_13__["Platform"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_6__["ANIMATION_MODULE_TYPE"], 8));
      };

      MatTabNav.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineComponent"]({
        type: MatTabNav,
        selectors: [["", "mat-tab-nav-bar", ""]],
        contentQueries: function MatTabNav_ContentQueries(rf, ctx, dirIndex) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵcontentQuery"](dirIndex, MatTabLink, true);
          }

          if (rf & 2) {
            var _t;

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵloadQuery"]()) && (ctx._items = _t);
          }
        },
        viewQuery: function MatTabNav_Query(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵstaticViewQuery"](MatInkBar, true);

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵstaticViewQuery"](_c5, true);

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵstaticViewQuery"](_c6, true);

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵviewQuery"](_c7, true);

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵviewQuery"](_c8, true);
          }

          if (rf & 2) {
            var _t;

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵloadQuery"]()) && (ctx._inkBar = _t.first);
            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵloadQuery"]()) && (ctx._tabListContainer = _t.first);
            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵloadQuery"]()) && (ctx._tabList = _t.first);
            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵloadQuery"]()) && (ctx._nextPaginator = _t.first);
            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵloadQuery"]()) && (ctx._previousPaginator = _t.first);
          }
        },
        hostAttrs: [1, "mat-tab-nav-bar", "mat-tab-header"],
        hostVars: 10,
        hostBindings: function MatTabNav_HostBindings(rf, ctx) {
          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵclassProp"]("mat-tab-header-pagination-controls-enabled", ctx._showPaginationControls)("mat-tab-header-rtl", ctx._getLayoutDirection() == "rtl")("mat-primary", ctx.color !== "warn" && ctx.color !== "accent")("mat-accent", ctx.color === "accent")("mat-warn", ctx.color === "warn");
          }
        },
        inputs: {
          color: "color"
        },
        exportAs: ["matTabNavBar", "matTabNav"],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵInheritDefinitionFeature"]],
        attrs: _c9,
        ngContentSelectors: _c0,
        decls: 13,
        vars: 8,
        consts: [["aria-hidden", "true", "mat-ripple", "", 1, "mat-tab-header-pagination", "mat-tab-header-pagination-before", "mat-elevation-z4", 3, "matRippleDisabled", "click", "mousedown", "touchend"], ["previousPaginator", ""], [1, "mat-tab-header-pagination-chevron"], [1, "mat-tab-link-container", 3, "keydown"], ["tabListContainer", ""], [1, "mat-tab-list", 3, "cdkObserveContent"], ["tabList", ""], [1, "mat-tab-links"], ["aria-hidden", "true", "mat-ripple", "", 1, "mat-tab-header-pagination", "mat-tab-header-pagination-after", "mat-elevation-z4", 3, "matRippleDisabled", "mousedown", "click", "touchend"], ["nextPaginator", ""]],
        template: function MatTabNav_Template(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵprojectionDef"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 0, 1);

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function MatTabNav_Template_div_click_0_listener() {
              return ctx._handlePaginatorClick("before");
            })("mousedown", function MatTabNav_Template_div_mousedown_0_listener($event) {
              return ctx._handlePaginatorPress("before", $event);
            })("touchend", function MatTabNav_Template_div_touchend_0_listener() {
              return ctx._stopInterval();
            });

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](2, "div", 2);

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](3, "div", 3, 4);

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("keydown", function MatTabNav_Template_div_keydown_3_listener($event) {
              return ctx._handleKeydown($event);
            });

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](5, "div", 5, 6);

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("cdkObserveContent", function MatTabNav_Template_div_cdkObserveContent_5_listener() {
              return ctx._onContentChanges();
            });

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](7, "div", 7);

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵprojection"](8);

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](9, "mat-ink-bar");

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](10, "div", 8, 9);

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("mousedown", function MatTabNav_Template_div_mousedown_10_listener($event) {
              return ctx._handlePaginatorPress("after", $event);
            })("click", function MatTabNav_Template_div_click_10_listener() {
              return ctx._handlePaginatorClick("after");
            })("touchend", function MatTabNav_Template_div_touchend_10_listener() {
              return ctx._stopInterval();
            });

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](12, "div", 2);

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
          }

          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵclassProp"]("mat-tab-header-pagination-disabled", ctx._disableScrollBefore);

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("matRippleDisabled", ctx._disableScrollBefore || ctx.disableRipple);

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](5);

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵclassProp"]("_mat-animation-noopable", ctx._animationMode === "NoopAnimations");

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](5);

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵclassProp"]("mat-tab-header-pagination-disabled", ctx._disableScrollAfter);

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("matRippleDisabled", ctx._disableScrollAfter || ctx.disableRipple);
          }
        },
        directives: [_angular_material_core__WEBPACK_IMPORTED_MODULE_5__["MatRipple"], _angular_cdk_observers__WEBPACK_IMPORTED_MODULE_1__["CdkObserveContent"], MatInkBar],
        styles: [".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:\"\";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-link:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\n"],
        encapsulation: 2
      });

      MatTabNav.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ElementRef"]
        }, {
          type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_8__["Directionality"],
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Optional"]
          }]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["NgZone"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ChangeDetectorRef"]
        }, {
          type: _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_12__["ViewportRuler"]
        }, {
          type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_13__["Platform"]
        }, {
          type: String,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Inject"],
            args: [_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_6__["ANIMATION_MODULE_TYPE"]]
          }]
        }];
      };

      MatTabNav.propDecorators = {
        _items: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ContentChildren"],
          args: [Object(_angular_core__WEBPACK_IMPORTED_MODULE_4__["forwardRef"])(function () {
            return MatTabLink;
          }), {
            descendants: true
          }]
        }],
        _inkBar: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ViewChild"],
          args: [MatInkBar, {
            "static": true
          }]
        }],
        _tabListContainer: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ViewChild"],
          args: ['tabListContainer', {
            "static": true
          }]
        }],
        _tabList: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ViewChild"],
          args: ['tabList', {
            "static": true
          }]
        }],
        _nextPaginator: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ViewChild"],
          args: ['nextPaginator']
        }],
        _previousPaginator: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ViewChild"],
          args: ['previousPaginator']
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵsetClassMetadata"](MatTabNav, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Component"],
          args: [{
            selector: '[mat-tab-nav-bar]',
            exportAs: 'matTabNavBar, matTabNav',
            inputs: ['color'],
            template: "<div class=\"mat-tab-header-pagination mat-tab-header-pagination-before mat-elevation-z4\"\n     #previousPaginator\n     aria-hidden=\"true\"\n     mat-ripple [matRippleDisabled]=\"_disableScrollBefore || disableRipple\"\n     [class.mat-tab-header-pagination-disabled]=\"_disableScrollBefore\"\n     (click)=\"_handlePaginatorClick('before')\"\n     (mousedown)=\"_handlePaginatorPress('before', $event)\"\n     (touchend)=\"_stopInterval()\">\n  <div class=\"mat-tab-header-pagination-chevron\"></div>\n</div>\n\n<div class=\"mat-tab-link-container\" #tabListContainer (keydown)=\"_handleKeydown($event)\">\n  <div\n    class=\"mat-tab-list\"\n    [class._mat-animation-noopable]=\"_animationMode === 'NoopAnimations'\"\n    #tabList\n    (cdkObserveContent)=\"_onContentChanges()\">\n    <div class=\"mat-tab-links\">\n      <ng-content></ng-content>\n    </div>\n    <mat-ink-bar></mat-ink-bar>\n  </div>\n</div>\n\n<div class=\"mat-tab-header-pagination mat-tab-header-pagination-after mat-elevation-z4\"\n     #nextPaginator\n     aria-hidden=\"true\"\n     mat-ripple [matRippleDisabled]=\"_disableScrollAfter || disableRipple\"\n     [class.mat-tab-header-pagination-disabled]=\"_disableScrollAfter\"\n     (mousedown)=\"_handlePaginatorPress('after', $event)\"\n     (click)=\"_handlePaginatorClick('after')\"\n     (touchend)=\"_stopInterval()\">\n  <div class=\"mat-tab-header-pagination-chevron\"></div>\n</div>\n",
            host: {
              'class': 'mat-tab-nav-bar mat-tab-header',
              '[class.mat-tab-header-pagination-controls-enabled]': '_showPaginationControls',
              '[class.mat-tab-header-rtl]': "_getLayoutDirection() == 'rtl'",
              '[class.mat-primary]': 'color !== "warn" && color !== "accent"',
              '[class.mat-accent]': 'color === "accent"',
              '[class.mat-warn]': 'color === "warn"'
            },
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ViewEncapsulation"].None,
            // tslint:disable-next-line:validate-decorators
            changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ChangeDetectionStrategy"].Default,
            styles: [".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:\"\";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-link:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\n"]
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ElementRef"]
          }, {
            type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_8__["Directionality"],
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Optional"]
            }]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["NgZone"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ChangeDetectorRef"]
          }, {
            type: _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_12__["ViewportRuler"]
          }, {
            type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_13__["Platform"]
          }, {
            type: String,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Inject"],
              args: [_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_6__["ANIMATION_MODULE_TYPE"]]
            }]
          }];
        }, {
          _items: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ContentChildren"],
            args: [Object(_angular_core__WEBPACK_IMPORTED_MODULE_4__["forwardRef"])(function () {
              return MatTabLink;
            }), {
              descendants: true
            }]
          }],
          _inkBar: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ViewChild"],
            args: [MatInkBar, {
              "static": true
            }]
          }],
          _tabListContainer: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ViewChild"],
            args: ['tabListContainer', {
              "static": true
            }]
          }],
          _tabList: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ViewChild"],
            args: ['tabList', {
              "static": true
            }]
          }],
          _nextPaginator: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ViewChild"],
            args: ['nextPaginator']
          }],
          _previousPaginator: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ViewChild"],
            args: ['previousPaginator']
          }]
        });
      })(); // Boilerplate for applying mixins to MatTabLink.


      var MatTabLinkMixinBase = function MatTabLinkMixinBase() {
        _classCallCheck2(this, MatTabLinkMixinBase);
      };

      var _MatTabLinkMixinBase = Object(_angular_material_core__WEBPACK_IMPORTED_MODULE_5__["mixinTabIndex"])(Object(_angular_material_core__WEBPACK_IMPORTED_MODULE_5__["mixinDisableRipple"])(Object(_angular_material_core__WEBPACK_IMPORTED_MODULE_5__["mixinDisabled"])(MatTabLinkMixinBase)));
      /** Base class with all of the `MatTabLink` functionality. */


      var _MatTabLinkBase = /*#__PURE__*/function (_MatTabLinkMixinBase2) {
        _inherits2(_MatTabLinkBase, _MatTabLinkMixinBase2);

        var _super228 = _createSuper2(_MatTabLinkBase);

        function _MatTabLinkBase(_tabNavBar,
        /** @docs-private */
        elementRef, globalRippleOptions, tabIndex, _focusMonitor, animationMode) {
          var _this539;

          _classCallCheck2(this, _MatTabLinkBase);

          _this539 = _super228.call(this);
          _this539._tabNavBar = _tabNavBar;
          _this539.elementRef = elementRef;
          _this539._focusMonitor = _focusMonitor;
          /** Whether the tab link is active or not. */

          _this539._isActive = false;
          _this539.rippleConfig = globalRippleOptions || {};
          _this539.tabIndex = parseInt(tabIndex) || 0;

          if (animationMode === 'NoopAnimations') {
            _this539.rippleConfig.animation = {
              enterDuration: 0,
              exitDuration: 0
            };
          }

          return _this539;
        }
        /** Whether the link is active. */


        _createClass2(_MatTabLinkBase, [{
          key: "active",
          get: function get() {
            return this._isActive;
          },
          set: function set(value) {
            var newValue = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_11__["coerceBooleanProperty"])(value);

            if (newValue !== this._isActive) {
              this._isActive = value;

              this._tabNavBar.updateActiveLink();
            }
          }
          /**
           * Whether ripples are disabled on interaction.
           * @docs-private
           */

        }, {
          key: "rippleDisabled",
          get: function get() {
            return this.disabled || this.disableRipple || this._tabNavBar.disableRipple || !!this.rippleConfig.disabled;
          }
          /** Focuses the tab link. */

        }, {
          key: "focus",
          value: function focus() {
            this.elementRef.nativeElement.focus();
          }
        }, {
          key: "ngAfterViewInit",
          value: function ngAfterViewInit() {
            this._focusMonitor.monitor(this.elementRef);
          }
        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            this._focusMonitor.stopMonitoring(this.elementRef);
          }
        }]);

        return _MatTabLinkBase;
      }(_MatTabLinkMixinBase);

      _MatTabLinkBase.ɵfac = function _MatTabLinkBase_Factory(t) {
        return new (t || _MatTabLinkBase)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_MatTabNavBase), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_4__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_material_core__WEBPACK_IMPORTED_MODULE_5__["MAT_RIPPLE_GLOBAL_OPTIONS"], 8), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinjectAttribute"]('tabindex'), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_0__["FocusMonitor"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_6__["ANIMATION_MODULE_TYPE"], 8));
      };

      _MatTabLinkBase.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineDirective"]({
        type: _MatTabLinkBase,
        inputs: {
          active: "active"
        },
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵInheritDefinitionFeature"]]
      });

      _MatTabLinkBase.ctorParameters = function () {
        return [{
          type: _MatTabNavBase
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ElementRef"]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Inject"],
            args: [_angular_material_core__WEBPACK_IMPORTED_MODULE_5__["MAT_RIPPLE_GLOBAL_OPTIONS"]]
          }]
        }, {
          type: String,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Attribute"],
            args: ['tabindex']
          }]
        }, {
          type: _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_0__["FocusMonitor"]
        }, {
          type: String,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Inject"],
            args: [_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_6__["ANIMATION_MODULE_TYPE"]]
          }]
        }];
      };

      _MatTabLinkBase.propDecorators = {
        active: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Input"]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵsetClassMetadata"](_MatTabLinkBase, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Directive"]
        }], function () {
          return [{
            type: _MatTabNavBase
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ElementRef"]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Inject"],
              args: [_angular_material_core__WEBPACK_IMPORTED_MODULE_5__["MAT_RIPPLE_GLOBAL_OPTIONS"]]
            }]
          }, {
            type: String,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Attribute"],
              args: ['tabindex']
            }]
          }, {
            type: _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_0__["FocusMonitor"]
          }, {
            type: String,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Inject"],
              args: [_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_6__["ANIMATION_MODULE_TYPE"]]
            }]
          }];
        }, {
          active: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Input"]
          }]
        });
      })();
      /**
       * Link inside of a `mat-tab-nav-bar`.
       */


      var MatTabLink = /*#__PURE__*/function (_MatTabLinkBase2) {
        _inherits2(MatTabLink, _MatTabLinkBase2);

        var _super229 = _createSuper2(MatTabLink);

        function MatTabLink(tabNavBar, elementRef, ngZone, platform, globalRippleOptions, tabIndex, focusMonitor, animationMode) {
          var _this540;

          _classCallCheck2(this, MatTabLink);

          _this540 = _super229.call(this, tabNavBar, elementRef, globalRippleOptions, tabIndex, focusMonitor, animationMode);
          _this540._tabLinkRipple = new _angular_material_core__WEBPACK_IMPORTED_MODULE_5__["RippleRenderer"](_assertThisInitialized2(_this540), ngZone, elementRef, platform);

          _this540._tabLinkRipple.setupTriggerEvents(elementRef.nativeElement);

          return _this540;
        }

        _createClass2(MatTabLink, [{
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            _get2(_getPrototypeOf2(MatTabLink.prototype), "ngOnDestroy", this).call(this);

            this._tabLinkRipple._removeTriggerEvents();
          }
        }]);

        return MatTabLink;
      }(_MatTabLinkBase);

      MatTabLink.ɵfac = function MatTabLink_Factory(t) {
        return new (t || MatTabLink)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](MatTabNav), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_4__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_4__["NgZone"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_13__["Platform"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_material_core__WEBPACK_IMPORTED_MODULE_5__["MAT_RIPPLE_GLOBAL_OPTIONS"], 8), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵinjectAttribute"]('tabindex'), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_0__["FocusMonitor"]), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_6__["ANIMATION_MODULE_TYPE"], 8));
      };

      MatTabLink.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineDirective"]({
        type: MatTabLink,
        selectors: [["", "mat-tab-link", ""], ["", "matTabLink", ""]],
        hostAttrs: [1, "mat-tab-link", "mat-focus-indicator"],
        hostVars: 7,
        hostBindings: function MatTabLink_HostBindings(rf, ctx) {
          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵattribute"]("aria-current", ctx.active ? "page" : null)("aria-disabled", ctx.disabled)("tabIndex", ctx.tabIndex);

            _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵclassProp"]("mat-tab-disabled", ctx.disabled)("mat-tab-label-active", ctx.active);
          }
        },
        inputs: {
          disabled: "disabled",
          disableRipple: "disableRipple",
          tabIndex: "tabIndex"
        },
        exportAs: ["matTabLink"],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵInheritDefinitionFeature"]]
      });

      MatTabLink.ctorParameters = function () {
        return [{
          type: MatTabNav
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ElementRef"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["NgZone"]
        }, {
          type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_13__["Platform"]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Inject"],
            args: [_angular_material_core__WEBPACK_IMPORTED_MODULE_5__["MAT_RIPPLE_GLOBAL_OPTIONS"]]
          }]
        }, {
          type: String,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Attribute"],
            args: ['tabindex']
          }]
        }, {
          type: _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_0__["FocusMonitor"]
        }, {
          type: String,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Inject"],
            args: [_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_6__["ANIMATION_MODULE_TYPE"]]
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵsetClassMetadata"](MatTabLink, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Directive"],
          args: [{
            selector: '[mat-tab-link], [matTabLink]',
            exportAs: 'matTabLink',
            inputs: ['disabled', 'disableRipple', 'tabIndex'],
            host: {
              'class': 'mat-tab-link mat-focus-indicator',
              '[attr.aria-current]': 'active ? "page" : null',
              '[attr.aria-disabled]': 'disabled',
              '[attr.tabIndex]': 'tabIndex',
              '[class.mat-tab-disabled]': 'disabled',
              '[class.mat-tab-label-active]': 'active'
            }
          }]
        }], function () {
          return [{
            type: MatTabNav
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["ElementRef"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["NgZone"]
          }, {
            type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_13__["Platform"]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Inject"],
              args: [_angular_material_core__WEBPACK_IMPORTED_MODULE_5__["MAT_RIPPLE_GLOBAL_OPTIONS"]]
            }]
          }, {
            type: String,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Attribute"],
              args: ['tabindex']
            }]
          }, {
            type: _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_0__["FocusMonitor"]
          }, {
            type: String,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["Inject"],
              args: [_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_6__["ANIMATION_MODULE_TYPE"]]
            }]
          }];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var MatTabsModule = function MatTabsModule() {
        _classCallCheck2(this, MatTabsModule);
      };

      MatTabsModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineNgModule"]({
        type: MatTabsModule
      });
      MatTabsModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineInjector"]({
        factory: function MatTabsModule_Factory(t) {
          return new (t || MatTabsModule)();
        },
        imports: [[_angular_common__WEBPACK_IMPORTED_MODULE_3__["CommonModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_5__["MatCommonModule"], _angular_cdk_portal__WEBPACK_IMPORTED_MODULE_2__["PortalModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_5__["MatRippleModule"], _angular_cdk_observers__WEBPACK_IMPORTED_MODULE_1__["ObserversModule"], _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_0__["A11yModule"]], _angular_material_core__WEBPACK_IMPORTED_MODULE_5__["MatCommonModule"]]
      });

      (function () {
        (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵsetNgModuleScope"](MatTabsModule, {
          declarations: function declarations() {
            return [MatTabGroup, MatTabLabel, MatTab, MatInkBar, MatTabLabelWrapper, MatTabNav, MatTabLink, MatTabBody, MatTabBodyPortal, MatTabHeader, MatTabContent];
          },
          imports: function imports() {
            return [_angular_common__WEBPACK_IMPORTED_MODULE_3__["CommonModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_5__["MatCommonModule"], _angular_cdk_portal__WEBPACK_IMPORTED_MODULE_2__["PortalModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_5__["MatRippleModule"], _angular_cdk_observers__WEBPACK_IMPORTED_MODULE_1__["ObserversModule"], _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_0__["A11yModule"]];
          },
          exports: function exports() {
            return [_angular_material_core__WEBPACK_IMPORTED_MODULE_5__["MatCommonModule"], MatTabGroup, MatTabLabel, MatTab, MatTabNav, MatTabLink, MatTabContent];
          }
        });
      })();
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵsetClassMetadata"](MatTabsModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_4__["NgModule"],
          args: [{
            imports: [_angular_common__WEBPACK_IMPORTED_MODULE_3__["CommonModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_5__["MatCommonModule"], _angular_cdk_portal__WEBPACK_IMPORTED_MODULE_2__["PortalModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_5__["MatRippleModule"], _angular_cdk_observers__WEBPACK_IMPORTED_MODULE_1__["ObserversModule"], _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_0__["A11yModule"]],
            // Don't export all components because some are only to be used internally.
            exports: [_angular_material_core__WEBPACK_IMPORTED_MODULE_5__["MatCommonModule"], MatTabGroup, MatTabLabel, MatTab, MatTabNav, MatTabLink, MatTabContent],
            declarations: [MatTabGroup, MatTabLabel, MatTab, MatInkBar, MatTabLabelWrapper, MatTabNav, MatTabLink, MatTabBody, MatTabBodyPortal, MatTabHeader, MatTabContent]
          }]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Generated bundle index. Do not edit.
       */
      //# sourceMappingURL=tabs.js.map

      /***/

    },

    /***/
    "MBAA": function MBAA(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "scheduleIterable", function () {
        return scheduleIterable;
      });
      /* harmony import */


      var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Observable */
      "HDdC");
      /* harmony import */


      var _Subscription__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../Subscription */
      "quSY");
      /* harmony import */


      var _symbol_iterator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../symbol/iterator */
      "Lhse");

      function scheduleIterable(input, scheduler) {
        if (!input) {
          throw new Error('Iterable cannot be null');
        }

        return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](function (subscriber) {
          var sub = new _Subscription__WEBPACK_IMPORTED_MODULE_1__["Subscription"]();
          var iterator;
          sub.add(function () {
            if (iterator && typeof iterator["return"] === 'function') {
              iterator["return"]();
            }
          });
          sub.add(scheduler.schedule(function () {
            iterator = input[_symbol_iterator__WEBPACK_IMPORTED_MODULE_2__["iterator"]]();
            sub.add(scheduler.schedule(function () {
              if (subscriber.closed) {
                return;
              }

              var value;
              var done;

              try {
                var result = iterator.next();
                value = result.value;
                done = result.done;
              } catch (err) {
                subscriber.error(err);
                return;
              }

              if (done) {
                subscriber.complete();
              } else {
                subscriber.next(value);
                this.schedule();
              }
            }));
          }));
          return sub;
        });
      } //# sourceMappingURL=scheduleIterable.js.map

      /***/

    },

    /***/
    "MVig": function MVig(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return isThisMinute;
      });
      /* harmony import */


      var _isSameMinute_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../isSameMinute/index.js */
      "s+wp");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name isThisMinute
       * @category Minute Helpers
       * @summary Is the given date in the same minute as the current date?
       * @pure false
       *
       * @description
       * Is the given date in the same minute as the current date?
       *
       * > ⚠️ Please note that this function is not present in the FP submodule as
       * > it uses `Date.now()` internally hence impure and can't be safely curried.
       *
       * ### 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 {Date|Number} date - the date to check
       * @returns {Boolean} the date is in this minute
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // If now is 25 September 2014 18:30:15.500,
       * // is 25 September 2014 18:30:00 in this minute?
       * var result = isThisMinute(new Date(2014, 8, 25, 18, 30))
       * //=> true
       */


      function isThisMinute(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        return Object(_isSameMinute_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Date.now(), dirtyDate);
      }
      /***/

    },

    /***/
    "MkVN": function MkVN(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return isThisYear;
      });
      /* harmony import */


      var _isSameYear_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../isSameYear/index.js */
      "kJyz");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name isThisYear
       * @category Year Helpers
       * @summary Is the given date in the same year as the current date?
       * @pure false
       *
       * @description
       * Is the given date in the same year as the current date?
       *
       * > ⚠️ Please note that this function is not present in the FP submodule as
       * > it uses `Date.now()` internally hence impure and can't be safely curried.
       *
       * ### 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 {Date|Number} date - the date to check
       * @returns {Boolean} the date is in this year
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // If today is 25 September 2014, is 2 July 2014 in this year?
       * var result = isThisYear(new Date(2014, 6, 2))
       * //=> true
       */


      function isThisYear(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        return Object(_isSameYear_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate, Date.now());
      }
      /***/

    },

    /***/
    "MlIO": function MlIO(module, exports, __webpack_require__) {
      ;

      (function (root, factory) {
        if (true) {
          // CommonJS
          module.exports = exports = factory(__webpack_require__(
          /*! ./core */
          "Ib8C"));
        } else {}
      })(this, function (CryptoJS) {
        (function (undefined) {
          // Shortcuts
          var C = CryptoJS;
          var C_lib = C.lib;
          var Base = C_lib.Base;
          var X32WordArray = C_lib.WordArray;
          /**
           * x64 namespace.
           */

          var C_x64 = C.x64 = {};
          /**
           * A 64-bit word.
           */

          var X64Word = C_x64.Word = Base.extend({
            /**
             * Initializes a newly created 64-bit word.
             *
             * @param {number} high The high 32 bits.
             * @param {number} low The low 32 bits.
             *
             * @example
             *
             *     var x64Word = CryptoJS.x64.Word.create(0x00010203, 0x04050607);
             */
            init: function init(high, low) {
              this.high = high;
              this.low = low;
            }
            /**
             * Bitwise NOTs this word.
             *
             * @return {X64Word} A new x64-Word object after negating.
             *
             * @example
             *
             *     var negated = x64Word.not();
             */
            // not: function () {
            // var high = ~this.high;
            // var low = ~this.low;
            // return X64Word.create(high, low);
            // },

            /**
             * Bitwise ANDs this word with the passed word.
             *
             * @param {X64Word} word The x64-Word to AND with this word.
             *
             * @return {X64Word} A new x64-Word object after ANDing.
             *
             * @example
             *
             *     var anded = x64Word.and(anotherX64Word);
             */
            // and: function (word) {
            // var high = this.high & word.high;
            // var low = this.low & word.low;
            // return X64Word.create(high, low);
            // },

            /**
             * Bitwise ORs this word with the passed word.
             *
             * @param {X64Word} word The x64-Word to OR with this word.
             *
             * @return {X64Word} A new x64-Word object after ORing.
             *
             * @example
             *
             *     var ored = x64Word.or(anotherX64Word);
             */
            // or: function (word) {
            // var high = this.high | word.high;
            // var low = this.low | word.low;
            // return X64Word.create(high, low);
            // },

            /**
             * Bitwise XORs this word with the passed word.
             *
             * @param {X64Word} word The x64-Word to XOR with this word.
             *
             * @return {X64Word} A new x64-Word object after XORing.
             *
             * @example
             *
             *     var xored = x64Word.xor(anotherX64Word);
             */
            // xor: function (word) {
            // var high = this.high ^ word.high;
            // var low = this.low ^ word.low;
            // return X64Word.create(high, low);
            // },

            /**
             * Shifts this word n bits to the left.
             *
             * @param {number} n The number of bits to shift.
             *
             * @return {X64Word} A new x64-Word object after shifting.
             *
             * @example
             *
             *     var shifted = x64Word.shiftL(25);
             */
            // shiftL: function (n) {
            // if (n < 32) {
            // var high = (this.high << n) | (this.low >>> (32 - n));
            // var low = this.low << n;
            // } else {
            // var high = this.low << (n - 32);
            // var low = 0;
            // }
            // return X64Word.create(high, low);
            // },

            /**
             * Shifts this word n bits to the right.
             *
             * @param {number} n The number of bits to shift.
             *
             * @return {X64Word} A new x64-Word object after shifting.
             *
             * @example
             *
             *     var shifted = x64Word.shiftR(7);
             */
            // shiftR: function (n) {
            // if (n < 32) {
            // var low = (this.low >>> n) | (this.high << (32 - n));
            // var high = this.high >>> n;
            // } else {
            // var low = this.high >>> (n - 32);
            // var high = 0;
            // }
            // return X64Word.create(high, low);
            // },

            /**
             * Rotates this word n bits to the left.
             *
             * @param {number} n The number of bits to rotate.
             *
             * @return {X64Word} A new x64-Word object after rotating.
             *
             * @example
             *
             *     var rotated = x64Word.rotL(25);
             */
            // rotL: function (n) {
            // return this.shiftL(n).or(this.shiftR(64 - n));
            // },

            /**
             * Rotates this word n bits to the right.
             *
             * @param {number} n The number of bits to rotate.
             *
             * @return {X64Word} A new x64-Word object after rotating.
             *
             * @example
             *
             *     var rotated = x64Word.rotR(7);
             */
            // rotR: function (n) {
            // return this.shiftR(n).or(this.shiftL(64 - n));
            // },

            /**
             * Adds this word with the passed word.
             *
             * @param {X64Word} word The x64-Word to add with this word.
             *
             * @return {X64Word} A new x64-Word object after adding.
             *
             * @example
             *
             *     var added = x64Word.add(anotherX64Word);
             */
            // add: function (word) {
            // var low = (this.low + word.low) | 0;
            // var carry = (low >>> 0) < (this.low >>> 0) ? 1 : 0;
            // var high = (this.high + word.high + carry) | 0;
            // return X64Word.create(high, low);
            // }

          });
          /**
           * An array of 64-bit words.
           *
           * @property {Array} words The array of CryptoJS.x64.Word objects.
           * @property {number} sigBytes The number of significant bytes in this word array.
           */

          var X64WordArray = C_x64.WordArray = Base.extend({
            /**
             * Initializes a newly created word array.
             *
             * @param {Array} words (Optional) An array of CryptoJS.x64.Word objects.
             * @param {number} sigBytes (Optional) The number of significant bytes in the words.
             *
             * @example
             *
             *     var wordArray = CryptoJS.x64.WordArray.create();
             *
             *     var wordArray = CryptoJS.x64.WordArray.create([
             *         CryptoJS.x64.Word.create(0x00010203, 0x04050607),
             *         CryptoJS.x64.Word.create(0x18191a1b, 0x1c1d1e1f)
             *     ]);
             *
             *     var wordArray = CryptoJS.x64.WordArray.create([
             *         CryptoJS.x64.Word.create(0x00010203, 0x04050607),
             *         CryptoJS.x64.Word.create(0x18191a1b, 0x1c1d1e1f)
             *     ], 10);
             */
            init: function init(words, sigBytes) {
              words = this.words = words || [];

              if (sigBytes != undefined) {
                this.sigBytes = sigBytes;
              } else {
                this.sigBytes = words.length * 8;
              }
            },

            /**
             * Converts this 64-bit word array to a 32-bit word array.
             *
             * @return {CryptoJS.lib.WordArray} This word array's data as a 32-bit word array.
             *
             * @example
             *
             *     var x32WordArray = x64WordArray.toX32();
             */
            toX32: function toX32() {
              // Shortcuts
              var x64Words = this.words;
              var x64WordsLength = x64Words.length; // Convert

              var x32Words = [];

              for (var i = 0; i < x64WordsLength; i++) {
                var x64Word = x64Words[i];
                x32Words.push(x64Word.high);
                x32Words.push(x64Word.low);
              }

              return X32WordArray.create(x32Words, this.sigBytes);
            },

            /**
             * Creates a copy of this word array.
             *
             * @return {X64WordArray} The clone.
             *
             * @example
             *
             *     var clone = x64WordArray.clone();
             */
            clone: function clone() {
              var clone = Base.clone.call(this); // Clone "words" array

              var words = clone.words = this.words.slice(0); // Clone each X64Word object

              var wordsLength = words.length;

              for (var i = 0; i < wordsLength; i++) {
                words[i] = words[i].clone();
              }

              return clone;
            }
          });
        })();

        return CryptoJS;
      });
      /***/

    },

    /***/
    "MtjB": function MtjB(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "retryWhen", function () {
        return retryWhen;
      });
      /* harmony import */


      var _Subject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Subject */
      "XNiG");
      /* harmony import */


      var _innerSubscribe__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../innerSubscribe */
      "zx2A");

      function retryWhen(notifier) {
        return function (source) {
          return source.lift(new RetryWhenOperator(notifier, source));
        };
      }

      var RetryWhenOperator = /*#__PURE__*/function () {
        function RetryWhenOperator(notifier, source) {
          _classCallCheck2(this, RetryWhenOperator);

          this.notifier = notifier;
          this.source = source;
        }

        _createClass2(RetryWhenOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            return source.subscribe(new RetryWhenSubscriber(subscriber, this.notifier, this.source));
          }
        }]);

        return RetryWhenOperator;
      }();

      var RetryWhenSubscriber = /*#__PURE__*/function (_innerSubscribe__WEBP10) {
        _inherits2(RetryWhenSubscriber, _innerSubscribe__WEBP10);

        var _super230 = _createSuper2(RetryWhenSubscriber);

        function RetryWhenSubscriber(destination, notifier, source) {
          var _this541;

          _classCallCheck2(this, RetryWhenSubscriber);

          _this541 = _super230.call(this, destination);
          _this541.notifier = notifier;
          _this541.source = source;
          return _this541;
        }

        _createClass2(RetryWhenSubscriber, [{
          key: "error",
          value: function error(err) {
            if (!this.isStopped) {
              var errors = this.errors;
              var retries = this.retries;
              var retriesSubscription = this.retriesSubscription;

              if (!retries) {
                errors = new _Subject__WEBPACK_IMPORTED_MODULE_0__["Subject"]();

                try {
                  var notifier = this.notifier;
                  retries = notifier(errors);
                } catch (e) {
                  return _get2(_getPrototypeOf2(RetryWhenSubscriber.prototype), "error", this).call(this, e);
                }

                retriesSubscription = Object(_innerSubscribe__WEBPACK_IMPORTED_MODULE_1__["innerSubscribe"])(retries, new _innerSubscribe__WEBPACK_IMPORTED_MODULE_1__["SimpleInnerSubscriber"](this));
              } else {
                this.errors = undefined;
                this.retriesSubscription = undefined;
              }

              this._unsubscribeAndRecycle();

              this.errors = errors;
              this.retries = retries;
              this.retriesSubscription = retriesSubscription;
              errors.next(err);
            }
          }
        }, {
          key: "_unsubscribe",
          value: function _unsubscribe() {
            var errors = this.errors,
                retriesSubscription = this.retriesSubscription;

            if (errors) {
              errors.unsubscribe();
              this.errors = undefined;
            }

            if (retriesSubscription) {
              retriesSubscription.unsubscribe();
              this.retriesSubscription = undefined;
            }

            this.retries = undefined;
          }
        }, {
          key: "notifyNext",
          value: function notifyNext() {
            var _unsubscribe = this._unsubscribe;
            this._unsubscribe = null;

            this._unsubscribeAndRecycle();

            this._unsubscribe = _unsubscribe;
            this.source.subscribe(this);
          }
        }]);

        return RetryWhenSubscriber;
      }(_innerSubscribe__WEBPACK_IMPORTED_MODULE_1__["SimpleOuterSubscriber"]); //# sourceMappingURL=retryWhen.js.map

      /***/

    },

    /***/
    "NFKh": function NFKh(module, exports, __webpack_require__) {
      ;

      (function (root, factory, undef) {
        if (true) {
          // CommonJS
          module.exports = exports = factory(__webpack_require__(
          /*! ./core */
          "Ib8C"), __webpack_require__(
          /*! ./x64-core */
          "MlIO"), __webpack_require__(
          /*! ./lib-typedarrays */
          "F+F2"), __webpack_require__(
          /*! ./enc-utf16 */
          "qM6L"), __webpack_require__(
          /*! ./enc-base64 */
          "ETIr"), __webpack_require__(
          /*! ./enc-base64url */
          "wbyO"), __webpack_require__(
          /*! ./md5 */
          "cv67"), __webpack_require__(
          /*! ./sha1 */
          "3y9D"), __webpack_require__(
          /*! ./sha256 */
          "lPiR"), __webpack_require__(
          /*! ./sha224 */
          "GRuw"), __webpack_require__(
          /*! ./sha512 */
          "1uat"), __webpack_require__(
          /*! ./sha384 */
          "uGsb"), __webpack_require__(
          /*! ./sha3 */
          "5hvy"), __webpack_require__(
          /*! ./ripemd160 */
          "ELcG"), __webpack_require__(
          /*! ./hmac */
          "WYAk"), __webpack_require__(
          /*! ./pbkdf2 */
          "e7zE"), __webpack_require__(
          /*! ./evpkdf */
          "K3mO"), __webpack_require__(
          /*! ./cipher-core */
          "OLod"), __webpack_require__(
          /*! ./mode-cfb */
          "ALsQ"), __webpack_require__(
          /*! ./mode-ctr */
          "9OqN"), __webpack_require__(
          /*! ./mode-ctr-gladman */
          "qu8F"), __webpack_require__(
          /*! ./mode-ofb */
          "S6kV"), __webpack_require__(
          /*! ./mode-ecb */
          "gb/T"), __webpack_require__(
          /*! ./pad-ansix923 */
          "qBft"), __webpack_require__(
          /*! ./pad-iso10126 */
          "oRuE"), __webpack_require__(
          /*! ./pad-iso97971 */
          "jO9C"), __webpack_require__(
          /*! ./pad-zeropadding */
          "KmYQ"), __webpack_require__(
          /*! ./pad-nopadding */
          "uGxW"), __webpack_require__(
          /*! ./format-hex */
          "bQjk"), __webpack_require__(
          /*! ./aes */
          "wZgz"), __webpack_require__(
          /*! ./tripledes */
          "pA7S"), __webpack_require__(
          /*! ./rc4 */
          "w7YG"), __webpack_require__(
          /*! ./rabbit */
          "E4JC"), __webpack_require__(
          /*! ./rabbit-legacy */
          "PVpz"));
        } else {}
      })(this, function (CryptoJS) {
        return CryptoJS;
      });
      /***/

    },

    /***/
    "NHP+": function NHP(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "AsyncSubject", function () {
        return AsyncSubject;
      });
      /* harmony import */


      var _Subject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ./Subject */
      "XNiG");
      /* harmony import */


      var _Subscription__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ./Subscription */
      "quSY");

      var AsyncSubject = /*#__PURE__*/function (_Subject__WEBPACK_IMP3) {
        _inherits2(AsyncSubject, _Subject__WEBPACK_IMP3);

        var _super231 = _createSuper2(AsyncSubject);

        function AsyncSubject() {
          var _this542;

          _classCallCheck2(this, AsyncSubject);

          _this542 = _super231.apply(this, arguments);
          _this542.value = null;
          _this542.hasNext = false;
          _this542.hasCompleted = false;
          return _this542;
        }

        _createClass2(AsyncSubject, [{
          key: "_subscribe",
          value: function _subscribe(subscriber) {
            if (this.hasError) {
              subscriber.error(this.thrownError);
              return _Subscription__WEBPACK_IMPORTED_MODULE_1__["Subscription"].EMPTY;
            } else if (this.hasCompleted && this.hasNext) {
              subscriber.next(this.value);
              subscriber.complete();
              return _Subscription__WEBPACK_IMPORTED_MODULE_1__["Subscription"].EMPTY;
            }

            return _get2(_getPrototypeOf2(AsyncSubject.prototype), "_subscribe", this).call(this, subscriber);
          }
        }, {
          key: "next",
          value: function next(value) {
            if (!this.hasCompleted) {
              this.value = value;
              this.hasNext = true;
            }
          }
        }, {
          key: "error",
          value: function error(_error3) {
            if (!this.hasCompleted) {
              _get2(_getPrototypeOf2(AsyncSubject.prototype), "error", this).call(this, _error3);
            }
          }
        }, {
          key: "complete",
          value: function complete() {
            this.hasCompleted = true;

            if (this.hasNext) {
              _get2(_getPrototypeOf2(AsyncSubject.prototype), "next", this).call(this, this.value);
            }

            _get2(_getPrototypeOf2(AsyncSubject.prototype), "complete", this).call(this);
          }
        }]);

        return AsyncSubject;
      }(_Subject__WEBPACK_IMPORTED_MODULE_0__["Subject"]); //# sourceMappingURL=AsyncSubject.js.map

      /***/

    },

    /***/
    "NJ4a": function NJ4a(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "hostReportError", function () {
        return hostReportError;
      });

      function hostReportError(err) {
        setTimeout(function () {
          throw err;
        }, 0);
      } //# sourceMappingURL=hostReportError.js.map

      /***/

    },

    /***/
    "NJ9Y": function NJ9Y(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "last", function () {
        return last;
      });
      /* harmony import */


      var _util_EmptyError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../util/EmptyError */
      "sVev");
      /* harmony import */


      var _filter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ./filter */
      "pLZG");
      /* harmony import */


      var _takeLast__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ./takeLast */
      "BFxc");
      /* harmony import */


      var _throwIfEmpty__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ./throwIfEmpty */
      "XDbj");
      /* harmony import */


      var _defaultIfEmpty__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! ./defaultIfEmpty */
      "xbPD");
      /* harmony import */


      var _util_identity__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! ../util/identity */
      "SpAZ");

      function last(predicate, defaultValue) {
        var hasDefaultValue = arguments.length >= 2;
        return function (source) {
          return source.pipe(predicate ? Object(_filter__WEBPACK_IMPORTED_MODULE_1__["filter"])(function (v, i) {
            return predicate(v, i, source);
          }) : _util_identity__WEBPACK_IMPORTED_MODULE_5__["identity"], Object(_takeLast__WEBPACK_IMPORTED_MODULE_2__["takeLast"])(1), hasDefaultValue ? Object(_defaultIfEmpty__WEBPACK_IMPORTED_MODULE_4__["defaultIfEmpty"])(defaultValue) : Object(_throwIfEmpty__WEBPACK_IMPORTED_MODULE_3__["throwIfEmpty"])(function () {
            return new _util_EmptyError__WEBPACK_IMPORTED_MODULE_0__["EmptyError"]();
          }));
        };
      } //# sourceMappingURL=last.js.map

      /***/

    },

    /***/
    "NNCq": function NNCq(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "range", function () {
        return range;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "dispatch", function () {
        return dispatch;
      });
      /* harmony import */


      var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Observable */
      "HDdC");

      function range() {
        var start = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
        var count = arguments.length > 1 ? arguments[1] : undefined;
        var scheduler = arguments.length > 2 ? arguments[2] : undefined;
        return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](function (subscriber) {
          if (count === undefined) {
            count = start;
            start = 0;
          }

          var index = 0;
          var current = start;

          if (scheduler) {
            return scheduler.schedule(dispatch, 0, {
              index: index,
              count: count,
              start: start,
              subscriber: subscriber
            });
          } else {
            do {
              if (index++ >= count) {
                subscriber.complete();
                break;
              }

              subscriber.next(current++);

              if (subscriber.closed) {
                break;
              }
            } while (true);
          }

          return undefined;
        });
      }

      function dispatch(state) {
        var start = state.start,
            index = state.index,
            count = state.count,
            subscriber = state.subscriber;

        if (index >= count) {
          subscriber.complete();
          return;
        }

        subscriber.next(start);

        if (subscriber.closed) {
          return;
        }

        state.index = index + 1;
        state.start = start + 1;
        this.schedule(state);
      } //# sourceMappingURL=range.js.map

      /***/

    },

    /***/
    "NXEZ": function NXEZ(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return getISODay;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name getISODay
       * @category Weekday Helpers
       * @summary Get the day of the ISO week of the given date.
       *
       * @description
       * Get the day of the ISO week of the given date,
       * which is 7 for Sunday, 1 for Monday etc.
       *
       * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
       *
       * ### 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 {Date|Number} date - the given date
       * @returns {Number} the day of ISO week
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // Which day of the ISO week is 26 February 2012?
       * var result = getISODay(new Date(2012, 1, 26))
       * //=> 7
       */


      function getISODay(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);
        var day = date.getDay();

        if (day === 0) {
          day = 7;
        }

        return day;
      }
      /***/

    },

    /***/
    "NXyV": function NXyV(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "defer", function () {
        return defer;
      });
      /* harmony import */


      var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Observable */
      "HDdC");
      /* harmony import */


      var _from__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ./from */
      "Cfvw");
      /* harmony import */


      var _empty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ./empty */
      "EY2u");

      function defer(observableFactory) {
        return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](function (subscriber) {
          var input;

          try {
            input = observableFactory();
          } catch (err) {
            subscriber.error(err);
            return undefined;
          }

          var source = input ? Object(_from__WEBPACK_IMPORTED_MODULE_1__["from"])(input) : Object(_empty__WEBPACK_IMPORTED_MODULE_2__["empty"])();
          return source.subscribe(subscriber);
        });
      } //# sourceMappingURL=defer.js.map

      /***/

    },

    /***/
    "NfdI": function NfdI(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "publish", function () {
        return publish;
      });
      /* harmony import */


      var _Subject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Subject */
      "XNiG");
      /* harmony import */


      var _multicast__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ./multicast */
      "oB13");

      function publish(selector) {
        return selector ? Object(_multicast__WEBPACK_IMPORTED_MODULE_1__["multicast"])(function () {
          return new _Subject__WEBPACK_IMPORTED_MODULE_0__["Subject"]();
        }, selector) : Object(_multicast__WEBPACK_IMPORTED_MODULE_1__["multicast"])(new _Subject__WEBPACK_IMPORTED_MODULE_0__["Subject"]());
      } //# sourceMappingURL=publish.js.map

      /***/

    },

    /***/
    "Nhcz": function Nhcz(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "GridModule", function () {
        return GridModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privatef", function () {
        return DefaultGridAlignColumnsDirective;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privatee", function () {
        return GridAlignColumnsDirective;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privated", function () {
        return GridAlignColumnsStyleBuilder;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privatei", function () {
        return DefaultGridAlignRowsDirective;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privateh", function () {
        return GridAlignRowsDirective;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privateg", function () {
        return GridAlignRowsStyleBuilder;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privatel", function () {
        return DefaultGridAreaDirective;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privatek", function () {
        return GridAreaDirective;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privatej", function () {
        return GridAreaStyleBuilder;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privateo", function () {
        return DefaultGridAreasDirective;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privaten", function () {
        return GridAreasDirective;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privatem", function () {
        return GridAreasStyleBuiler;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privater", function () {
        return DefaultGridAutoDirective;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privateq", function () {
        return GridAutoDirective;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privatep", function () {
        return GridAutoStyleBuilder;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privateu", function () {
        return DefaultGridColumnDirective;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privatet", function () {
        return GridColumnDirective;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privates", function () {
        return GridColumnStyleBuilder;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privatex", function () {
        return DefaultGridColumnsDirective;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privatew", function () {
        return GridColumnsDirective;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privatev", function () {
        return GridColumnsStyleBuilder;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privateba", function () {
        return DefaultGridGapDirective;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privatez", function () {
        return GridGapDirective;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privatey", function () {
        return GridGapStyleBuilder;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privatec", function () {
        return DefaultGridAlignDirective;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privateb", function () {
        return GridAlignDirective;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privatea", function () {
        return GridAlignStyleBuilder;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privatebd", function () {
        return DefaultGridRowDirective;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privatebc", function () {
        return GridRowDirective;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privatebb", function () {
        return GridRowStyleBuilder;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privatebg", function () {
        return DefaultGridRowsDirective;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privatebf", function () {
        return GridRowsDirective;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privatebe", function () {
        return GridRowsStyleBuilder;
      });
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /* harmony import */


      var _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/flex-layout/core */
      "/q54");
      /* harmony import */


      var _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! @angular/cdk/coercion */
      "8LU1");
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @fileoverview added by tsickle
       * Generated from: grid/grid-align/grid-align.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /** @type {?} */


      var ROW_DEFAULT = 'stretch';
      /** @type {?} */

      var COL_DEFAULT = 'stretch';

      var GridAlignStyleBuilder =
      /** @class */
      function () {
        var GridAlignStyleBuilder = /*#__PURE__*/function (_angular_flex_layout_) {
          _inherits2(GridAlignStyleBuilder, _angular_flex_layout_);

          var _super232 = _createSuper2(GridAlignStyleBuilder);

          function GridAlignStyleBuilder() {
            _classCallCheck2(this, GridAlignStyleBuilder);

            return _super232.apply(this, arguments);
          }

          _createClass2(GridAlignStyleBuilder, [{
            key: "buildStyles",
            value:
            /**
             * @param {?} input
             * @return {?}
             */
            function buildStyles(input) {
              return buildCss(input || ROW_DEFAULT);
            }
          }]);

          return GridAlignStyleBuilder;
        }(_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleBuilder"]);

        GridAlignStyleBuilder.ɵfac = function GridAlignStyleBuilder_Factory(t) {
          return ɵGridAlignStyleBuilder_BaseFactory(t || GridAlignStyleBuilder);
        };
        /** @nocollapse */


        GridAlignStyleBuilder.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({
          factory: function GridAlignStyleBuilder_Factory() {
            return new GridAlignStyleBuilder();
          },
          token: GridAlignStyleBuilder,
          providedIn: "root"
        });

        var ɵGridAlignStyleBuilder_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](GridAlignStyleBuilder);
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](GridAlignStyleBuilder, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
            args: [{
              providedIn: 'root'
            }]
          }], null, null);
        })();

        return GridAlignStyleBuilder;
      }();

      var GridAlignDirective =
      /** @class */
      function () {
        var GridAlignDirective = /*#__PURE__*/function (_angular_flex_layout_2) {
          _inherits2(GridAlignDirective, _angular_flex_layout_2);

          var _super233 = _createSuper2(GridAlignDirective);

          /**
           * @param {?} elementRef
           * @param {?} styleBuilder
           * @param {?} styler
           * @param {?} marshal
           */
          function GridAlignDirective(elementRef, styleBuilder, styler, marshal) {
            var _this543;

            _classCallCheck2(this, GridAlignDirective);

            _this543 = _super233.call(this, elementRef, styleBuilder, styler, marshal);
            _this543.DIRECTIVE_KEY = 'grid-align';
            _this543.styleCache = alignCache;

            _this543.init();

            return _this543;
          }

          return GridAlignDirective;
        }(_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["BaseDirective2"]);

        GridAlignDirective.ɵfac = function GridAlignDirective_Factory(t) {
          return new (t || GridAlignDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](GridAlignStyleBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["MediaMarshaller"]));
        };

        GridAlignDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
          type: GridAlignDirective,
          features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
        });
        /** @nocollapse */

        GridAlignDirective.ctorParameters = function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
          }, {
            type: GridAlignStyleBuilder
          }, {
            type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]
          }, {
            type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["MediaMarshaller"]
          }];
        };
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](GridAlignDirective, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"]
          }], function () {
            return [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
            }, {
              type: GridAlignStyleBuilder
            }, {
              type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]
            }, {
              type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["MediaMarshaller"]
            }];
          }, null);
        })();

        return GridAlignDirective;
      }();
      /** @type {?} */


      var alignCache = new Map();
      /** @type {?} */

      var inputs = ['gdGridAlign', 'gdGridAlign.xs', 'gdGridAlign.sm', 'gdGridAlign.md', 'gdGridAlign.lg', 'gdGridAlign.xl', 'gdGridAlign.lt-sm', 'gdGridAlign.lt-md', 'gdGridAlign.lt-lg', 'gdGridAlign.lt-xl', 'gdGridAlign.gt-xs', 'gdGridAlign.gt-sm', 'gdGridAlign.gt-md', 'gdGridAlign.gt-lg'];
      /** @type {?} */

      var selector = "\n  [gdGridAlign],\n  [gdGridAlign.xs], [gdGridAlign.sm], [gdGridAlign.md], [gdGridAlign.lg],[gdGridAlign.xl],\n  [gdGridAlign.lt-sm], [gdGridAlign.lt-md], [gdGridAlign.lt-lg], [gdGridAlign.lt-xl],\n  [gdGridAlign.gt-xs], [gdGridAlign.gt-sm], [gdGridAlign.gt-md], [gdGridAlign.gt-lg]\n";
      /**
       * 'align' CSS Grid styling directive for grid children
       *  Defines positioning of child elements along row and column axis in a grid container
       *  Optional values: {row-axis} values or {row-axis column-axis} value pairs
       *
       * @see https://css-tricks.com/snippets/css/complete-guide-grid/#prop-justify-self
       * @see https://css-tricks.com/snippets/css/complete-guide-grid/#prop-align-self
       */

      var DefaultGridAlignDirective =
      /** @class */
      function () {
        /**
         * 'align' CSS Grid styling directive for grid children
         *  Defines positioning of child elements along row and column axis in a grid container
         *  Optional values: {row-axis} values or {row-axis column-axis} value pairs
         *
         * @see https://css-tricks.com/snippets/css/complete-guide-grid/#prop-justify-self
         * @see https://css-tricks.com/snippets/css/complete-guide-grid/#prop-align-self
         */
        var DefaultGridAlignDirective = /*#__PURE__*/function (_GridAlignDirective) {
          _inherits2(DefaultGridAlignDirective, _GridAlignDirective);

          var _super234 = _createSuper2(DefaultGridAlignDirective);

          function DefaultGridAlignDirective() {
            var _this544;

            _classCallCheck2(this, DefaultGridAlignDirective);

            _this544 = _super234.apply(this, arguments);
            _this544.inputs = inputs;
            return _this544;
          }

          return DefaultGridAlignDirective;
        }(GridAlignDirective);

        DefaultGridAlignDirective.ɵfac = function DefaultGridAlignDirective_Factory(t) {
          return ɵDefaultGridAlignDirective_BaseFactory(t || DefaultGridAlignDirective);
        };

        DefaultGridAlignDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
          type: DefaultGridAlignDirective,
          selectors: [["", "gdGridAlign", ""], ["", "gdGridAlign.xs", ""], ["", "gdGridAlign.sm", ""], ["", "gdGridAlign.md", ""], ["", "gdGridAlign.lg", ""], ["", "gdGridAlign.xl", ""], ["", "gdGridAlign.lt-sm", ""], ["", "gdGridAlign.lt-md", ""], ["", "gdGridAlign.lt-lg", ""], ["", "gdGridAlign.lt-xl", ""], ["", "gdGridAlign.gt-xs", ""], ["", "gdGridAlign.gt-sm", ""], ["", "gdGridAlign.gt-md", ""], ["", "gdGridAlign.gt-lg", ""]],
          inputs: {
            gdGridAlign: "gdGridAlign",
            "gdGridAlign.xs": "gdGridAlign.xs",
            "gdGridAlign.sm": "gdGridAlign.sm",
            "gdGridAlign.md": "gdGridAlign.md",
            "gdGridAlign.lg": "gdGridAlign.lg",
            "gdGridAlign.xl": "gdGridAlign.xl",
            "gdGridAlign.lt-sm": "gdGridAlign.lt-sm",
            "gdGridAlign.lt-md": "gdGridAlign.lt-md",
            "gdGridAlign.lt-lg": "gdGridAlign.lt-lg",
            "gdGridAlign.lt-xl": "gdGridAlign.lt-xl",
            "gdGridAlign.gt-xs": "gdGridAlign.gt-xs",
            "gdGridAlign.gt-sm": "gdGridAlign.gt-sm",
            "gdGridAlign.gt-md": "gdGridAlign.gt-md",
            "gdGridAlign.gt-lg": "gdGridAlign.gt-lg"
          },
          features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
        });

        var ɵDefaultGridAlignDirective_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](DefaultGridAlignDirective);
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](DefaultGridAlignDirective, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
            args: [{
              selector: selector,
              inputs: inputs
            }]
          }], null, null);
        })();

        return DefaultGridAlignDirective;
      }();
      /**
       * @param {?=} align
       * @return {?}
       */


      function buildCss() {
        var align = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';

        /** @type {?} */
        var css = {};

        var _align$split = align.split(' '),
            _align$split2 = _slicedToArray(_align$split, 2),
            rowAxis = _align$split2[0],
            columnAxis = _align$split2[1]; // Row axis


        switch (rowAxis) {
          case 'end':
            css['justify-self'] = 'end';
            break;

          case 'center':
            css['justify-self'] = 'center';
            break;

          case 'stretch':
            css['justify-self'] = 'stretch';
            break;

          case 'start':
            css['justify-self'] = 'start';
            break;

          default:
            css['justify-self'] = ROW_DEFAULT; // default row axis

            break;
        } // Column axis


        switch (columnAxis) {
          case 'end':
            css['align-self'] = 'end';
            break;

          case 'center':
            css['align-self'] = 'center';
            break;

          case 'stretch':
            css['align-self'] = 'stretch';
            break;

          case 'start':
            css['align-self'] = 'start';
            break;

          default:
            css['align-self'] = COL_DEFAULT; // default column axis

            break;
        }

        return css;
      }
      /**
       * @fileoverview added by tsickle
       * Generated from: grid/align-columns/align-columns.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /** @type {?} */


      var DEFAULT_MAIN = 'start';
      /** @type {?} */

      var DEFAULT_CROSS = 'stretch';

      var GridAlignColumnsStyleBuilder =
      /** @class */
      function () {
        var GridAlignColumnsStyleBuilder = /*#__PURE__*/function (_angular_flex_layout_3) {
          _inherits2(GridAlignColumnsStyleBuilder, _angular_flex_layout_3);

          var _super235 = _createSuper2(GridAlignColumnsStyleBuilder);

          function GridAlignColumnsStyleBuilder() {
            _classCallCheck2(this, GridAlignColumnsStyleBuilder);

            return _super235.apply(this, arguments);
          }

          _createClass2(GridAlignColumnsStyleBuilder, [{
            key: "buildStyles",
            value:
            /**
             * @param {?} input
             * @param {?} parent
             * @return {?}
             */
            function buildStyles(input, parent) {
              return buildCss$1(input || "".concat(DEFAULT_MAIN, " ").concat(DEFAULT_CROSS), parent.inline);
            }
          }]);

          return GridAlignColumnsStyleBuilder;
        }(_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleBuilder"]);

        GridAlignColumnsStyleBuilder.ɵfac = function GridAlignColumnsStyleBuilder_Factory(t) {
          return ɵGridAlignColumnsStyleBuilder_BaseFactory(t || GridAlignColumnsStyleBuilder);
        };
        /** @nocollapse */


        GridAlignColumnsStyleBuilder.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({
          factory: function GridAlignColumnsStyleBuilder_Factory() {
            return new GridAlignColumnsStyleBuilder();
          },
          token: GridAlignColumnsStyleBuilder,
          providedIn: "root"
        });

        var ɵGridAlignColumnsStyleBuilder_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](GridAlignColumnsStyleBuilder);
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](GridAlignColumnsStyleBuilder, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
            args: [{
              providedIn: 'root'
            }]
          }], null, null);
        })();

        return GridAlignColumnsStyleBuilder;
      }();

      var GridAlignColumnsDirective =
      /** @class */
      function () {
        var GridAlignColumnsDirective = /*#__PURE__*/function (_angular_flex_layout_4) {
          _inherits2(GridAlignColumnsDirective, _angular_flex_layout_4);

          var _super236 = _createSuper2(GridAlignColumnsDirective);

          /**
           * @param {?} elementRef
           * @param {?} styleBuilder
           * @param {?} styler
           * @param {?} marshal
           */
          function GridAlignColumnsDirective(elementRef, styleBuilder, styler, marshal) {
            var _this545;

            _classCallCheck2(this, GridAlignColumnsDirective);

            _this545 = _super236.call(this, elementRef, styleBuilder, styler, marshal);
            _this545.DIRECTIVE_KEY = 'grid-align-columns';
            _this545._inline = false;

            _this545.init();

            return _this545;
          }
          /**
           * @return {?}
           */


          _createClass2(GridAlignColumnsDirective, [{
            key: "inline",
            get: function get() {
              return this._inline;
            }
            /**
             * @param {?} val
             * @return {?}
             */
            ,
            set: function set(val) {
              this._inline = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__["coerceBooleanProperty"])(val);
            } // *********************************************
            // Protected methods
            // *********************************************

            /**
             * @protected
             * @param {?} value
             * @return {?}
             */

          }, {
            key: "updateWithValue",
            value: function updateWithValue(value) {
              this.styleCache = this.inline ? alignColumnsInlineCache : alignColumnsCache;
              this.addStyles(value, {
                inline: this.inline
              });
            }
          }]);

          return GridAlignColumnsDirective;
        }(_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["BaseDirective2"]);

        GridAlignColumnsDirective.ɵfac = function GridAlignColumnsDirective_Factory(t) {
          return new (t || GridAlignColumnsDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](GridAlignColumnsStyleBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["MediaMarshaller"]));
        };

        GridAlignColumnsDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
          type: GridAlignColumnsDirective,
          inputs: {
            inline: ["gdInline", "inline"]
          },
          features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
        });
        /** @nocollapse */

        GridAlignColumnsDirective.ctorParameters = function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
          }, {
            type: GridAlignColumnsStyleBuilder
          }, {
            type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]
          }, {
            type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["MediaMarshaller"]
          }];
        };

        GridAlignColumnsDirective.propDecorators = {
          inline: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
            args: ['gdInline']
          }]
        };
        /*@__PURE__*/

        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](GridAlignColumnsDirective, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"]
          }], function () {
            return [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
            }, {
              type: GridAlignColumnsStyleBuilder
            }, {
              type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]
            }, {
              type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["MediaMarshaller"]
            }];
          }, {
            inline: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
              args: ['gdInline']
            }]
          });
        })();

        return GridAlignColumnsDirective;
      }();
      /** @type {?} */


      var alignColumnsCache = new Map();
      /** @type {?} */

      var alignColumnsInlineCache = new Map();
      /** @type {?} */

      var inputs$1 = ['gdAlignColumns', 'gdAlignColumns.xs', 'gdAlignColumns.sm', 'gdAlignColumns.md', 'gdAlignColumns.lg', 'gdAlignColumns.xl', 'gdAlignColumns.lt-sm', 'gdAlignColumns.lt-md', 'gdAlignColumns.lt-lg', 'gdAlignColumns.lt-xl', 'gdAlignColumns.gt-xs', 'gdAlignColumns.gt-sm', 'gdAlignColumns.gt-md', 'gdAlignColumns.gt-lg'];
      /** @type {?} */

      var selector$1 = "\n  [gdAlignColumns],\n  [gdAlignColumns.xs], [gdAlignColumns.sm], [gdAlignColumns.md],\n  [gdAlignColumns.lg], [gdAlignColumns.xl], [gdAlignColumns.lt-sm],\n  [gdAlignColumns.lt-md], [gdAlignColumns.lt-lg], [gdAlignColumns.lt-xl],\n  [gdAlignColumns.gt-xs], [gdAlignColumns.gt-sm], [gdAlignColumns.gt-md],\n  [gdAlignColumns.gt-lg]\n";
      /**
       * 'column alignment' CSS Grid styling directive
       * Configures the alignment in the column direction
       * @see https://css-tricks.com/snippets/css/complete-guide-grid/#article-header-id-19
       * @see https://css-tricks.com/snippets/css/complete-guide-grid/#article-header-id-21
       */

      var DefaultGridAlignColumnsDirective =
      /** @class */
      function () {
        /**
         * 'column alignment' CSS Grid styling directive
         * Configures the alignment in the column direction
         * @see https://css-tricks.com/snippets/css/complete-guide-grid/#article-header-id-19
         * @see https://css-tricks.com/snippets/css/complete-guide-grid/#article-header-id-21
         */
        var DefaultGridAlignColumnsDirective = /*#__PURE__*/function (_GridAlignColumnsDire) {
          _inherits2(DefaultGridAlignColumnsDirective, _GridAlignColumnsDire);

          var _super237 = _createSuper2(DefaultGridAlignColumnsDirective);

          function DefaultGridAlignColumnsDirective() {
            var _this546;

            _classCallCheck2(this, DefaultGridAlignColumnsDirective);

            _this546 = _super237.apply(this, arguments);
            _this546.inputs = inputs$1;
            return _this546;
          }

          return DefaultGridAlignColumnsDirective;
        }(GridAlignColumnsDirective);

        DefaultGridAlignColumnsDirective.ɵfac = function DefaultGridAlignColumnsDirective_Factory(t) {
          return ɵDefaultGridAlignColumnsDirective_BaseFactory(t || DefaultGridAlignColumnsDirective);
        };

        DefaultGridAlignColumnsDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
          type: DefaultGridAlignColumnsDirective,
          selectors: [["", "gdAlignColumns", ""], ["", "gdAlignColumns.xs", ""], ["", "gdAlignColumns.sm", ""], ["", "gdAlignColumns.md", ""], ["", "gdAlignColumns.lg", ""], ["", "gdAlignColumns.xl", ""], ["", "gdAlignColumns.lt-sm", ""], ["", "gdAlignColumns.lt-md", ""], ["", "gdAlignColumns.lt-lg", ""], ["", "gdAlignColumns.lt-xl", ""], ["", "gdAlignColumns.gt-xs", ""], ["", "gdAlignColumns.gt-sm", ""], ["", "gdAlignColumns.gt-md", ""], ["", "gdAlignColumns.gt-lg", ""]],
          inputs: {
            gdAlignColumns: "gdAlignColumns",
            "gdAlignColumns.xs": "gdAlignColumns.xs",
            "gdAlignColumns.sm": "gdAlignColumns.sm",
            "gdAlignColumns.md": "gdAlignColumns.md",
            "gdAlignColumns.lg": "gdAlignColumns.lg",
            "gdAlignColumns.xl": "gdAlignColumns.xl",
            "gdAlignColumns.lt-sm": "gdAlignColumns.lt-sm",
            "gdAlignColumns.lt-md": "gdAlignColumns.lt-md",
            "gdAlignColumns.lt-lg": "gdAlignColumns.lt-lg",
            "gdAlignColumns.lt-xl": "gdAlignColumns.lt-xl",
            "gdAlignColumns.gt-xs": "gdAlignColumns.gt-xs",
            "gdAlignColumns.gt-sm": "gdAlignColumns.gt-sm",
            "gdAlignColumns.gt-md": "gdAlignColumns.gt-md",
            "gdAlignColumns.gt-lg": "gdAlignColumns.gt-lg"
          },
          features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
        });

        var ɵDefaultGridAlignColumnsDirective_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](DefaultGridAlignColumnsDirective);
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](DefaultGridAlignColumnsDirective, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
            args: [{
              selector: selector$1,
              inputs: inputs$1
            }]
          }], null, null);
        })();

        return DefaultGridAlignColumnsDirective;
      }();
      /**
       * @param {?} align
       * @param {?} inline
       * @return {?}
       */


      function buildCss$1(align, inline) {
        /** @type {?} */
        var css = {};

        var _align$split3 = align.split(' '),
            _align$split4 = _slicedToArray(_align$split3, 2),
            mainAxis = _align$split4[0],
            crossAxis = _align$split4[1]; // Main axis


        switch (mainAxis) {
          case 'center':
            css['align-content'] = 'center';
            break;

          case 'space-around':
            css['align-content'] = 'space-around';
            break;

          case 'space-between':
            css['align-content'] = 'space-between';
            break;

          case 'space-evenly':
            css['align-content'] = 'space-evenly';
            break;

          case 'end':
            css['align-content'] = 'end';
            break;

          case 'start':
            css['align-content'] = 'start';
            break;

          case 'stretch':
            css['align-content'] = 'stretch';
            break;

          default:
            css['align-content'] = DEFAULT_MAIN; // default main axis

            break;
        } // Cross-axis


        switch (crossAxis) {
          case 'start':
            css['align-items'] = 'start';
            break;

          case 'center':
            css['align-items'] = 'center';
            break;

          case 'end':
            css['align-items'] = 'end';
            break;

          case 'stretch':
            css['align-items'] = 'stretch';
            break;

          default:
            // 'stretch'
            css['align-items'] = DEFAULT_CROSS; // default cross axis

            break;
        }

        css['display'] = inline ? 'inline-grid' : 'grid';
        return css;
      }
      /**
       * @fileoverview added by tsickle
       * Generated from: grid/align-rows/align-rows.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /** @type {?} */


      var DEFAULT_MAIN$1 = 'start';
      /** @type {?} */

      var DEFAULT_CROSS$1 = 'stretch';

      var GridAlignRowsStyleBuilder =
      /** @class */
      function () {
        var GridAlignRowsStyleBuilder = /*#__PURE__*/function (_angular_flex_layout_5) {
          _inherits2(GridAlignRowsStyleBuilder, _angular_flex_layout_5);

          var _super238 = _createSuper2(GridAlignRowsStyleBuilder);

          function GridAlignRowsStyleBuilder() {
            _classCallCheck2(this, GridAlignRowsStyleBuilder);

            return _super238.apply(this, arguments);
          }

          _createClass2(GridAlignRowsStyleBuilder, [{
            key: "buildStyles",
            value:
            /**
             * @param {?} input
             * @param {?} parent
             * @return {?}
             */
            function buildStyles(input, parent) {
              return buildCss$2(input || "".concat(DEFAULT_MAIN$1, " ").concat(DEFAULT_CROSS$1), parent.inline);
            }
          }]);

          return GridAlignRowsStyleBuilder;
        }(_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleBuilder"]);

        GridAlignRowsStyleBuilder.ɵfac = function GridAlignRowsStyleBuilder_Factory(t) {
          return ɵGridAlignRowsStyleBuilder_BaseFactory(t || GridAlignRowsStyleBuilder);
        };
        /** @nocollapse */


        GridAlignRowsStyleBuilder.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({
          factory: function GridAlignRowsStyleBuilder_Factory() {
            return new GridAlignRowsStyleBuilder();
          },
          token: GridAlignRowsStyleBuilder,
          providedIn: "root"
        });

        var ɵGridAlignRowsStyleBuilder_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](GridAlignRowsStyleBuilder);
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](GridAlignRowsStyleBuilder, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
            args: [{
              providedIn: 'root'
            }]
          }], null, null);
        })();

        return GridAlignRowsStyleBuilder;
      }();

      var GridAlignRowsDirective =
      /** @class */
      function () {
        var GridAlignRowsDirective = /*#__PURE__*/function (_angular_flex_layout_6) {
          _inherits2(GridAlignRowsDirective, _angular_flex_layout_6);

          var _super239 = _createSuper2(GridAlignRowsDirective);

          /**
           * @param {?} elementRef
           * @param {?} styleBuilder
           * @param {?} styler
           * @param {?} marshal
           */
          function GridAlignRowsDirective(elementRef, styleBuilder, styler, marshal) {
            var _this547;

            _classCallCheck2(this, GridAlignRowsDirective);

            _this547 = _super239.call(this, elementRef, styleBuilder, styler, marshal);
            _this547.DIRECTIVE_KEY = 'grid-align-rows';
            _this547._inline = false;

            _this547.init();

            return _this547;
          }
          /**
           * @return {?}
           */


          _createClass2(GridAlignRowsDirective, [{
            key: "inline",
            get: function get() {
              return this._inline;
            }
            /**
             * @param {?} val
             * @return {?}
             */
            ,
            set: function set(val) {
              this._inline = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__["coerceBooleanProperty"])(val);
            } // *********************************************
            // Protected methods
            // *********************************************

            /**
             * @protected
             * @param {?} value
             * @return {?}
             */

          }, {
            key: "updateWithValue",
            value: function updateWithValue(value) {
              this.styleCache = this.inline ? alignRowsInlineCache : alignRowsCache;
              this.addStyles(value, {
                inline: this.inline
              });
            }
          }]);

          return GridAlignRowsDirective;
        }(_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["BaseDirective2"]);

        GridAlignRowsDirective.ɵfac = function GridAlignRowsDirective_Factory(t) {
          return new (t || GridAlignRowsDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](GridAlignRowsStyleBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["MediaMarshaller"]));
        };

        GridAlignRowsDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
          type: GridAlignRowsDirective,
          inputs: {
            inline: ["gdInline", "inline"]
          },
          features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
        });
        /** @nocollapse */

        GridAlignRowsDirective.ctorParameters = function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
          }, {
            type: GridAlignRowsStyleBuilder
          }, {
            type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]
          }, {
            type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["MediaMarshaller"]
          }];
        };

        GridAlignRowsDirective.propDecorators = {
          inline: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
            args: ['gdInline']
          }]
        };
        /*@__PURE__*/

        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](GridAlignRowsDirective, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"]
          }], function () {
            return [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
            }, {
              type: GridAlignRowsStyleBuilder
            }, {
              type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]
            }, {
              type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["MediaMarshaller"]
            }];
          }, {
            inline: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
              args: ['gdInline']
            }]
          });
        })();

        return GridAlignRowsDirective;
      }();
      /** @type {?} */


      var alignRowsCache = new Map();
      /** @type {?} */

      var alignRowsInlineCache = new Map();
      /** @type {?} */

      var inputs$2 = ['gdAlignRows', 'gdAlignRows.xs', 'gdAlignRows.sm', 'gdAlignRows.md', 'gdAlignRows.lg', 'gdAlignRows.xl', 'gdAlignRows.lt-sm', 'gdAlignRows.lt-md', 'gdAlignRows.lt-lg', 'gdAlignRows.lt-xl', 'gdAlignRows.gt-xs', 'gdAlignRows.gt-sm', 'gdAlignRows.gt-md', 'gdAlignRows.gt-lg'];
      /** @type {?} */

      var selector$2 = "\n  [gdAlignRows],\n  [gdAlignRows.xs], [gdAlignRows.sm], [gdAlignRows.md],\n  [gdAlignRows.lg], [gdAlignRows.xl], [gdAlignRows.lt-sm],\n  [gdAlignRows.lt-md], [gdAlignRows.lt-lg], [gdAlignRows.lt-xl],\n  [gdAlignRows.gt-xs], [gdAlignRows.gt-sm], [gdAlignRows.gt-md],\n  [gdAlignRows.gt-lg]\n";
      /**
       * 'row alignment' CSS Grid styling directive
       * Configures the alignment in the row direction
       * @see https://css-tricks.com/snippets/css/complete-guide-grid/#article-header-id-18
       * @see https://css-tricks.com/snippets/css/complete-guide-grid/#article-header-id-20
       */

      var DefaultGridAlignRowsDirective =
      /** @class */
      function () {
        /**
         * 'row alignment' CSS Grid styling directive
         * Configures the alignment in the row direction
         * @see https://css-tricks.com/snippets/css/complete-guide-grid/#article-header-id-18
         * @see https://css-tricks.com/snippets/css/complete-guide-grid/#article-header-id-20
         */
        var DefaultGridAlignRowsDirective = /*#__PURE__*/function (_GridAlignRowsDirecti) {
          _inherits2(DefaultGridAlignRowsDirective, _GridAlignRowsDirecti);

          var _super240 = _createSuper2(DefaultGridAlignRowsDirective);

          function DefaultGridAlignRowsDirective() {
            var _this548;

            _classCallCheck2(this, DefaultGridAlignRowsDirective);

            _this548 = _super240.apply(this, arguments);
            _this548.inputs = inputs$2;
            return _this548;
          }

          return DefaultGridAlignRowsDirective;
        }(GridAlignRowsDirective);

        DefaultGridAlignRowsDirective.ɵfac = function DefaultGridAlignRowsDirective_Factory(t) {
          return ɵDefaultGridAlignRowsDirective_BaseFactory(t || DefaultGridAlignRowsDirective);
        };

        DefaultGridAlignRowsDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
          type: DefaultGridAlignRowsDirective,
          selectors: [["", "gdAlignRows", ""], ["", "gdAlignRows.xs", ""], ["", "gdAlignRows.sm", ""], ["", "gdAlignRows.md", ""], ["", "gdAlignRows.lg", ""], ["", "gdAlignRows.xl", ""], ["", "gdAlignRows.lt-sm", ""], ["", "gdAlignRows.lt-md", ""], ["", "gdAlignRows.lt-lg", ""], ["", "gdAlignRows.lt-xl", ""], ["", "gdAlignRows.gt-xs", ""], ["", "gdAlignRows.gt-sm", ""], ["", "gdAlignRows.gt-md", ""], ["", "gdAlignRows.gt-lg", ""]],
          inputs: {
            gdAlignRows: "gdAlignRows",
            "gdAlignRows.xs": "gdAlignRows.xs",
            "gdAlignRows.sm": "gdAlignRows.sm",
            "gdAlignRows.md": "gdAlignRows.md",
            "gdAlignRows.lg": "gdAlignRows.lg",
            "gdAlignRows.xl": "gdAlignRows.xl",
            "gdAlignRows.lt-sm": "gdAlignRows.lt-sm",
            "gdAlignRows.lt-md": "gdAlignRows.lt-md",
            "gdAlignRows.lt-lg": "gdAlignRows.lt-lg",
            "gdAlignRows.lt-xl": "gdAlignRows.lt-xl",
            "gdAlignRows.gt-xs": "gdAlignRows.gt-xs",
            "gdAlignRows.gt-sm": "gdAlignRows.gt-sm",
            "gdAlignRows.gt-md": "gdAlignRows.gt-md",
            "gdAlignRows.gt-lg": "gdAlignRows.gt-lg"
          },
          features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
        });

        var ɵDefaultGridAlignRowsDirective_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](DefaultGridAlignRowsDirective);
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](DefaultGridAlignRowsDirective, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
            args: [{
              selector: selector$2,
              inputs: inputs$2
            }]
          }], null, null);
        })();

        return DefaultGridAlignRowsDirective;
      }();
      /**
       * @param {?} align
       * @param {?} inline
       * @return {?}
       */


      function buildCss$2(align, inline) {
        /** @type {?} */
        var css = {};

        var _align$split5 = align.split(' '),
            _align$split6 = _slicedToArray(_align$split5, 2),
            mainAxis = _align$split6[0],
            crossAxis = _align$split6[1]; // Main axis


        switch (mainAxis) {
          case 'center':
          case 'space-around':
          case 'space-between':
          case 'space-evenly':
          case 'end':
          case 'start':
          case 'stretch':
            css['justify-content'] = mainAxis;
            break;

          default:
            css['justify-content'] = DEFAULT_MAIN$1; // default main axis

            break;
        } // Cross-axis


        switch (crossAxis) {
          case 'start':
          case 'center':
          case 'end':
          case 'stretch':
            css['justify-items'] = crossAxis;
            break;

          default:
            // 'stretch'
            css['justify-items'] = DEFAULT_CROSS$1; // default cross axis

            break;
        }

        css['display'] = inline ? 'inline-grid' : 'grid';
        return css;
      }
      /**
       * @fileoverview added by tsickle
       * Generated from: grid/area/area.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /** @type {?} */


      var DEFAULT_VALUE = 'auto';

      var GridAreaStyleBuilder =
      /** @class */
      function () {
        var GridAreaStyleBuilder = /*#__PURE__*/function (_angular_flex_layout_7) {
          _inherits2(GridAreaStyleBuilder, _angular_flex_layout_7);

          var _super241 = _createSuper2(GridAreaStyleBuilder);

          function GridAreaStyleBuilder() {
            _classCallCheck2(this, GridAreaStyleBuilder);

            return _super241.apply(this, arguments);
          }

          _createClass2(GridAreaStyleBuilder, [{
            key: "buildStyles",
            value:
            /**
             * @param {?} input
             * @return {?}
             */
            function buildStyles(input) {
              return {
                'grid-area': input || DEFAULT_VALUE
              };
            }
          }]);

          return GridAreaStyleBuilder;
        }(_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleBuilder"]);

        GridAreaStyleBuilder.ɵfac = function GridAreaStyleBuilder_Factory(t) {
          return ɵGridAreaStyleBuilder_BaseFactory(t || GridAreaStyleBuilder);
        };
        /** @nocollapse */


        GridAreaStyleBuilder.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({
          factory: function GridAreaStyleBuilder_Factory() {
            return new GridAreaStyleBuilder();
          },
          token: GridAreaStyleBuilder,
          providedIn: "root"
        });

        var ɵGridAreaStyleBuilder_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](GridAreaStyleBuilder);
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](GridAreaStyleBuilder, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
            args: [{
              providedIn: 'root'
            }]
          }], null, null);
        })();

        return GridAreaStyleBuilder;
      }();

      var GridAreaDirective =
      /** @class */
      function () {
        var GridAreaDirective = /*#__PURE__*/function (_angular_flex_layout_8) {
          _inherits2(GridAreaDirective, _angular_flex_layout_8);

          var _super242 = _createSuper2(GridAreaDirective);

          /**
           * @param {?} elRef
           * @param {?} styleUtils
           * @param {?} styleBuilder
           * @param {?} marshal
           */
          function GridAreaDirective(elRef, styleUtils, styleBuilder, marshal) {
            var _this549;

            _classCallCheck2(this, GridAreaDirective);

            _this549 = _super242.call(this, elRef, styleBuilder, styleUtils, marshal);
            _this549.DIRECTIVE_KEY = 'grid-area';
            _this549.styleCache = gridAreaCache;

            _this549.init();

            return _this549;
          }

          return GridAreaDirective;
        }(_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["BaseDirective2"]);

        GridAreaDirective.ɵfac = function GridAreaDirective_Factory(t) {
          return new (t || GridAreaDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](GridAreaStyleBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["MediaMarshaller"]));
        };

        GridAreaDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
          type: GridAreaDirective,
          features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
        });
        /** @nocollapse */

        GridAreaDirective.ctorParameters = function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
          }, {
            type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]
          }, {
            type: GridAreaStyleBuilder
          }, {
            type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["MediaMarshaller"]
          }];
        };
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](GridAreaDirective, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"]
          }], function () {
            return [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
            }, {
              type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]
            }, {
              type: GridAreaStyleBuilder
            }, {
              type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["MediaMarshaller"]
            }];
          }, null);
        })();

        return GridAreaDirective;
      }();
      /** @type {?} */


      var gridAreaCache = new Map();
      /** @type {?} */

      var inputs$3 = ['gdArea', 'gdArea.xs', 'gdArea.sm', 'gdArea.md', 'gdArea.lg', 'gdArea.xl', 'gdArea.lt-sm', 'gdArea.lt-md', 'gdArea.lt-lg', 'gdArea.lt-xl', 'gdArea.gt-xs', 'gdArea.gt-sm', 'gdArea.gt-md', 'gdArea.gt-lg'];
      /** @type {?} */

      var selector$3 = "\n  [gdArea],\n  [gdArea.xs], [gdArea.sm], [gdArea.md], [gdArea.lg], [gdArea.xl],\n  [gdArea.lt-sm], [gdArea.lt-md], [gdArea.lt-lg], [gdArea.lt-xl],\n  [gdArea.gt-xs], [gdArea.gt-sm], [gdArea.gt-md], [gdArea.gt-lg]\n";
      /**
       * 'grid-area' CSS Grid styling directive
       * Configures the name or position of an element within the grid
       * @see https://css-tricks.com/snippets/css/complete-guide-grid/#article-header-id-27
       */

      var DefaultGridAreaDirective =
      /** @class */
      function () {
        /**
         * 'grid-area' CSS Grid styling directive
         * Configures the name or position of an element within the grid
         * @see https://css-tricks.com/snippets/css/complete-guide-grid/#article-header-id-27
         */
        var DefaultGridAreaDirective = /*#__PURE__*/function (_GridAreaDirective) {
          _inherits2(DefaultGridAreaDirective, _GridAreaDirective);

          var _super243 = _createSuper2(DefaultGridAreaDirective);

          function DefaultGridAreaDirective() {
            var _this550;

            _classCallCheck2(this, DefaultGridAreaDirective);

            _this550 = _super243.apply(this, arguments);
            _this550.inputs = inputs$3;
            return _this550;
          }

          return DefaultGridAreaDirective;
        }(GridAreaDirective);

        DefaultGridAreaDirective.ɵfac = function DefaultGridAreaDirective_Factory(t) {
          return ɵDefaultGridAreaDirective_BaseFactory(t || DefaultGridAreaDirective);
        };

        DefaultGridAreaDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
          type: DefaultGridAreaDirective,
          selectors: [["", "gdArea", ""], ["", "gdArea.xs", ""], ["", "gdArea.sm", ""], ["", "gdArea.md", ""], ["", "gdArea.lg", ""], ["", "gdArea.xl", ""], ["", "gdArea.lt-sm", ""], ["", "gdArea.lt-md", ""], ["", "gdArea.lt-lg", ""], ["", "gdArea.lt-xl", ""], ["", "gdArea.gt-xs", ""], ["", "gdArea.gt-sm", ""], ["", "gdArea.gt-md", ""], ["", "gdArea.gt-lg", ""]],
          inputs: {
            gdArea: "gdArea",
            "gdArea.xs": "gdArea.xs",
            "gdArea.sm": "gdArea.sm",
            "gdArea.md": "gdArea.md",
            "gdArea.lg": "gdArea.lg",
            "gdArea.xl": "gdArea.xl",
            "gdArea.lt-sm": "gdArea.lt-sm",
            "gdArea.lt-md": "gdArea.lt-md",
            "gdArea.lt-lg": "gdArea.lt-lg",
            "gdArea.lt-xl": "gdArea.lt-xl",
            "gdArea.gt-xs": "gdArea.gt-xs",
            "gdArea.gt-sm": "gdArea.gt-sm",
            "gdArea.gt-md": "gdArea.gt-md",
            "gdArea.gt-lg": "gdArea.gt-lg"
          },
          features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
        });

        var ɵDefaultGridAreaDirective_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](DefaultGridAreaDirective);
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](DefaultGridAreaDirective, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
            args: [{
              selector: selector$3,
              inputs: inputs$3
            }]
          }], null, null);
        })();

        return DefaultGridAreaDirective;
      }();
      /**
       * @fileoverview added by tsickle
       * Generated from: grid/areas/areas.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /** @type {?} */


      var DEFAULT_VALUE$1 = 'none';
      /** @type {?} */

      var DELIMETER = '|';

      var GridAreasStyleBuiler =
      /** @class */
      function () {
        var GridAreasStyleBuiler = /*#__PURE__*/function (_angular_flex_layout_9) {
          _inherits2(GridAreasStyleBuiler, _angular_flex_layout_9);

          var _super244 = _createSuper2(GridAreasStyleBuiler);

          function GridAreasStyleBuiler() {
            _classCallCheck2(this, GridAreasStyleBuiler);

            return _super244.apply(this, arguments);
          }

          _createClass2(GridAreasStyleBuiler, [{
            key: "buildStyles",
            value:
            /**
             * @param {?} input
             * @param {?} parent
             * @return {?}
             */
            function buildStyles(input, parent) {
              /** @type {?} */
              var areas = (input || DEFAULT_VALUE$1).split(DELIMETER).map(
              /**
              * @param {?} v
              * @return {?}
              */
              function (v) {
                return "\"".concat(v.trim(), "\"");
              });
              return {
                'display': parent.inline ? 'inline-grid' : 'grid',
                'grid-template-areas': areas.join(' ')
              };
            }
          }]);

          return GridAreasStyleBuiler;
        }(_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleBuilder"]);

        GridAreasStyleBuiler.ɵfac = function GridAreasStyleBuiler_Factory(t) {
          return ɵGridAreasStyleBuiler_BaseFactory(t || GridAreasStyleBuiler);
        };
        /** @nocollapse */


        GridAreasStyleBuiler.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({
          factory: function GridAreasStyleBuiler_Factory() {
            return new GridAreasStyleBuiler();
          },
          token: GridAreasStyleBuiler,
          providedIn: "root"
        });

        var ɵGridAreasStyleBuiler_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](GridAreasStyleBuiler);
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](GridAreasStyleBuiler, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
            args: [{
              providedIn: 'root'
            }]
          }], null, null);
        })();

        return GridAreasStyleBuiler;
      }();

      var GridAreasDirective =
      /** @class */
      function () {
        var GridAreasDirective = /*#__PURE__*/function (_angular_flex_layout_10) {
          _inherits2(GridAreasDirective, _angular_flex_layout_10);

          var _super245 = _createSuper2(GridAreasDirective);

          /**
           * @param {?} elRef
           * @param {?} styleUtils
           * @param {?} styleBuilder
           * @param {?} marshal
           */
          function GridAreasDirective(elRef, styleUtils, styleBuilder, marshal) {
            var _this551;

            _classCallCheck2(this, GridAreasDirective);

            _this551 = _super245.call(this, elRef, styleBuilder, styleUtils, marshal);
            _this551.DIRECTIVE_KEY = 'grid-areas';
            _this551._inline = false;

            _this551.init();

            return _this551;
          }
          /**
           * @return {?}
           */


          _createClass2(GridAreasDirective, [{
            key: "inline",
            get: function get() {
              return this._inline;
            }
            /**
             * @param {?} val
             * @return {?}
             */
            ,
            set: function set(val) {
              this._inline = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__["coerceBooleanProperty"])(val);
            } // *********************************************
            // Protected methods
            // *********************************************

            /**
             * @protected
             * @param {?} value
             * @return {?}
             */

          }, {
            key: "updateWithValue",
            value: function updateWithValue(value) {
              this.styleCache = this.inline ? areasInlineCache : areasCache;
              this.addStyles(value, {
                inline: this.inline
              });
            }
          }]);

          return GridAreasDirective;
        }(_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["BaseDirective2"]);

        GridAreasDirective.ɵfac = function GridAreasDirective_Factory(t) {
          return new (t || GridAreasDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](GridAreasStyleBuiler), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["MediaMarshaller"]));
        };

        GridAreasDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
          type: GridAreasDirective,
          inputs: {
            inline: ["gdInline", "inline"]
          },
          features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
        });
        /** @nocollapse */

        GridAreasDirective.ctorParameters = function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
          }, {
            type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]
          }, {
            type: GridAreasStyleBuiler
          }, {
            type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["MediaMarshaller"]
          }];
        };

        GridAreasDirective.propDecorators = {
          inline: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
            args: ['gdInline']
          }]
        };
        /*@__PURE__*/

        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](GridAreasDirective, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"]
          }], function () {
            return [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
            }, {
              type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]
            }, {
              type: GridAreasStyleBuiler
            }, {
              type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["MediaMarshaller"]
            }];
          }, {
            inline: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
              args: ['gdInline']
            }]
          });
        })();

        return GridAreasDirective;
      }();
      /** @type {?} */


      var areasCache = new Map();
      /** @type {?} */

      var areasInlineCache = new Map();
      /** @type {?} */

      var inputs$4 = ['gdAreas', 'gdAreas.xs', 'gdAreas.sm', 'gdAreas.md', 'gdAreas.lg', 'gdAreas.xl', 'gdAreas.lt-sm', 'gdAreas.lt-md', 'gdAreas.lt-lg', 'gdAreas.lt-xl', 'gdAreas.gt-xs', 'gdAreas.gt-sm', 'gdAreas.gt-md', 'gdAreas.gt-lg'];
      /** @type {?} */

      var selector$4 = "\n  [gdAreas],\n  [gdAreas.xs], [gdAreas.sm], [gdAreas.md], [gdAreas.lg], [gdAreas.xl],\n  [gdAreas.lt-sm], [gdAreas.lt-md], [gdAreas.lt-lg], [gdAreas.lt-xl],\n  [gdAreas.gt-xs], [gdAreas.gt-sm], [gdAreas.gt-md], [gdAreas.gt-lg]\n";
      /**
       * 'grid-template-areas' CSS Grid styling directive
       * Configures the names of elements within the grid
       * @see https://css-tricks.com/snippets/css/complete-guide-grid/#article-header-id-14
       */

      var DefaultGridAreasDirective =
      /** @class */
      function () {
        /**
         * 'grid-template-areas' CSS Grid styling directive
         * Configures the names of elements within the grid
         * @see https://css-tricks.com/snippets/css/complete-guide-grid/#article-header-id-14
         */
        var DefaultGridAreasDirective = /*#__PURE__*/function (_GridAreasDirective) {
          _inherits2(DefaultGridAreasDirective, _GridAreasDirective);

          var _super246 = _createSuper2(DefaultGridAreasDirective);

          function DefaultGridAreasDirective() {
            var _this552;

            _classCallCheck2(this, DefaultGridAreasDirective);

            _this552 = _super246.apply(this, arguments);
            _this552.inputs = inputs$4;
            return _this552;
          }

          return DefaultGridAreasDirective;
        }(GridAreasDirective);

        DefaultGridAreasDirective.ɵfac = function DefaultGridAreasDirective_Factory(t) {
          return ɵDefaultGridAreasDirective_BaseFactory(t || DefaultGridAreasDirective);
        };

        DefaultGridAreasDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
          type: DefaultGridAreasDirective,
          selectors: [["", "gdAreas", ""], ["", "gdAreas.xs", ""], ["", "gdAreas.sm", ""], ["", "gdAreas.md", ""], ["", "gdAreas.lg", ""], ["", "gdAreas.xl", ""], ["", "gdAreas.lt-sm", ""], ["", "gdAreas.lt-md", ""], ["", "gdAreas.lt-lg", ""], ["", "gdAreas.lt-xl", ""], ["", "gdAreas.gt-xs", ""], ["", "gdAreas.gt-sm", ""], ["", "gdAreas.gt-md", ""], ["", "gdAreas.gt-lg", ""]],
          inputs: {
            gdAreas: "gdAreas",
            "gdAreas.xs": "gdAreas.xs",
            "gdAreas.sm": "gdAreas.sm",
            "gdAreas.md": "gdAreas.md",
            "gdAreas.lg": "gdAreas.lg",
            "gdAreas.xl": "gdAreas.xl",
            "gdAreas.lt-sm": "gdAreas.lt-sm",
            "gdAreas.lt-md": "gdAreas.lt-md",
            "gdAreas.lt-lg": "gdAreas.lt-lg",
            "gdAreas.lt-xl": "gdAreas.lt-xl",
            "gdAreas.gt-xs": "gdAreas.gt-xs",
            "gdAreas.gt-sm": "gdAreas.gt-sm",
            "gdAreas.gt-md": "gdAreas.gt-md",
            "gdAreas.gt-lg": "gdAreas.gt-lg"
          },
          features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
        });

        var ɵDefaultGridAreasDirective_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](DefaultGridAreasDirective);
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](DefaultGridAreasDirective, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
            args: [{
              selector: selector$4,
              inputs: inputs$4
            }]
          }], null, null);
        })();

        return DefaultGridAreasDirective;
      }();
      /**
       * @fileoverview added by tsickle
       * Generated from: grid/auto/auto.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /** @type {?} */


      var DEFAULT_VALUE$2 = 'initial';

      var GridAutoStyleBuilder =
      /** @class */
      function () {
        var GridAutoStyleBuilder = /*#__PURE__*/function (_angular_flex_layout_11) {
          _inherits2(GridAutoStyleBuilder, _angular_flex_layout_11);

          var _super247 = _createSuper2(GridAutoStyleBuilder);

          function GridAutoStyleBuilder() {
            _classCallCheck2(this, GridAutoStyleBuilder);

            return _super247.apply(this, arguments);
          }

          _createClass2(GridAutoStyleBuilder, [{
            key: "buildStyles",
            value:
            /**
             * @param {?} input
             * @param {?} parent
             * @return {?}
             */
            function buildStyles(input, parent) {
              var _split2 = (input || DEFAULT_VALUE$2).split(' '),
                  _split3 = _slicedToArray(_split2, 2),
                  direction = _split3[0],
                  dense = _split3[1];

              if (direction !== 'column' && direction !== 'row' && direction !== 'dense') {
                direction = 'row';
              }

              dense = dense === 'dense' && direction !== 'dense' ? ' dense' : '';
              return {
                'display': parent.inline ? 'inline-grid' : 'grid',
                'grid-auto-flow': direction + dense
              };
            }
          }]);

          return GridAutoStyleBuilder;
        }(_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleBuilder"]);

        GridAutoStyleBuilder.ɵfac = function GridAutoStyleBuilder_Factory(t) {
          return ɵGridAutoStyleBuilder_BaseFactory(t || GridAutoStyleBuilder);
        };
        /** @nocollapse */


        GridAutoStyleBuilder.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({
          factory: function GridAutoStyleBuilder_Factory() {
            return new GridAutoStyleBuilder();
          },
          token: GridAutoStyleBuilder,
          providedIn: "root"
        });

        var ɵGridAutoStyleBuilder_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](GridAutoStyleBuilder);
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](GridAutoStyleBuilder, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
            args: [{
              providedIn: 'root'
            }]
          }], null, null);
        })();

        return GridAutoStyleBuilder;
      }();

      var GridAutoDirective =
      /** @class */
      function () {
        var GridAutoDirective = /*#__PURE__*/function (_angular_flex_layout_12) {
          _inherits2(GridAutoDirective, _angular_flex_layout_12);

          var _super248 = _createSuper2(GridAutoDirective);

          /**
           * @param {?} elementRef
           * @param {?} styleBuilder
           * @param {?} styler
           * @param {?} marshal
           */
          function GridAutoDirective(elementRef, styleBuilder, styler, marshal) {
            var _this553;

            _classCallCheck2(this, GridAutoDirective);

            _this553 = _super248.call(this, elementRef, styleBuilder, styler, marshal);
            _this553._inline = false;
            _this553.DIRECTIVE_KEY = 'grid-auto';

            _this553.init();

            return _this553;
          }
          /**
           * @return {?}
           */


          _createClass2(GridAutoDirective, [{
            key: "inline",
            get: function get() {
              return this._inline;
            }
            /**
             * @param {?} val
             * @return {?}
             */
            ,
            set: function set(val) {
              this._inline = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__["coerceBooleanProperty"])(val);
            } // *********************************************
            // Protected methods
            // *********************************************

            /**
             * @protected
             * @param {?} value
             * @return {?}
             */

          }, {
            key: "updateWithValue",
            value: function updateWithValue(value) {
              this.styleCache = this.inline ? autoInlineCache : autoCache;
              this.addStyles(value, {
                inline: this.inline
              });
            }
          }]);

          return GridAutoDirective;
        }(_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["BaseDirective2"]);

        GridAutoDirective.ɵfac = function GridAutoDirective_Factory(t) {
          return new (t || GridAutoDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](GridAutoStyleBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["MediaMarshaller"]));
        };

        GridAutoDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
          type: GridAutoDirective,
          inputs: {
            inline: ["gdInline", "inline"]
          },
          features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
        });
        /** @nocollapse */

        GridAutoDirective.ctorParameters = function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
          }, {
            type: GridAutoStyleBuilder
          }, {
            type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]
          }, {
            type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["MediaMarshaller"]
          }];
        };

        GridAutoDirective.propDecorators = {
          inline: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
            args: ['gdInline']
          }]
        };
        /*@__PURE__*/

        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](GridAutoDirective, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"]
          }], function () {
            return [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
            }, {
              type: GridAutoStyleBuilder
            }, {
              type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]
            }, {
              type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["MediaMarshaller"]
            }];
          }, {
            inline: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
              args: ['gdInline']
            }]
          });
        })();

        return GridAutoDirective;
      }();
      /** @type {?} */


      var autoCache = new Map();
      /** @type {?} */

      var autoInlineCache = new Map();
      /** @type {?} */

      var inputs$5 = ['gdAuto', 'gdAuto.xs', 'gdAuto.sm', 'gdAuto.md', 'gdAuto.lg', 'gdAuto.xl', 'gdAuto.lt-sm', 'gdAuto.lt-md', 'gdAuto.lt-lg', 'gdAuto.lt-xl', 'gdAuto.gt-xs', 'gdAuto.gt-sm', 'gdAuto.gt-md', 'gdAuto.gt-lg'];
      /** @type {?} */

      var selector$5 = "\n  [gdAuto],\n  [gdAuto.xs], [gdAuto.sm], [gdAuto.md], [gdAuto.lg], [gdAuto.xl],\n  [gdAuto.lt-sm], [gdAuto.lt-md], [gdAuto.lt-lg], [gdAuto.lt-xl],\n  [gdAuto.gt-xs], [gdAuto.gt-sm], [gdAuto.gt-md], [gdAuto.gt-lg]\n";
      /**
       * 'grid-auto-flow' CSS Grid styling directive
       * Configures the auto placement algorithm for the grid
       * @see https://css-tricks.com/snippets/css/complete-guide-grid/#article-header-id-23
       */

      var DefaultGridAutoDirective =
      /** @class */
      function () {
        /**
         * 'grid-auto-flow' CSS Grid styling directive
         * Configures the auto placement algorithm for the grid
         * @see https://css-tricks.com/snippets/css/complete-guide-grid/#article-header-id-23
         */
        var DefaultGridAutoDirective = /*#__PURE__*/function (_GridAutoDirective) {
          _inherits2(DefaultGridAutoDirective, _GridAutoDirective);

          var _super249 = _createSuper2(DefaultGridAutoDirective);

          function DefaultGridAutoDirective() {
            var _this554;

            _classCallCheck2(this, DefaultGridAutoDirective);

            _this554 = _super249.apply(this, arguments);
            _this554.inputs = inputs$5;
            return _this554;
          }

          return DefaultGridAutoDirective;
        }(GridAutoDirective);

        DefaultGridAutoDirective.ɵfac = function DefaultGridAutoDirective_Factory(t) {
          return ɵDefaultGridAutoDirective_BaseFactory(t || DefaultGridAutoDirective);
        };

        DefaultGridAutoDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
          type: DefaultGridAutoDirective,
          selectors: [["", "gdAuto", ""], ["", "gdAuto.xs", ""], ["", "gdAuto.sm", ""], ["", "gdAuto.md", ""], ["", "gdAuto.lg", ""], ["", "gdAuto.xl", ""], ["", "gdAuto.lt-sm", ""], ["", "gdAuto.lt-md", ""], ["", "gdAuto.lt-lg", ""], ["", "gdAuto.lt-xl", ""], ["", "gdAuto.gt-xs", ""], ["", "gdAuto.gt-sm", ""], ["", "gdAuto.gt-md", ""], ["", "gdAuto.gt-lg", ""]],
          inputs: {
            gdAuto: "gdAuto",
            "gdAuto.xs": "gdAuto.xs",
            "gdAuto.sm": "gdAuto.sm",
            "gdAuto.md": "gdAuto.md",
            "gdAuto.lg": "gdAuto.lg",
            "gdAuto.xl": "gdAuto.xl",
            "gdAuto.lt-sm": "gdAuto.lt-sm",
            "gdAuto.lt-md": "gdAuto.lt-md",
            "gdAuto.lt-lg": "gdAuto.lt-lg",
            "gdAuto.lt-xl": "gdAuto.lt-xl",
            "gdAuto.gt-xs": "gdAuto.gt-xs",
            "gdAuto.gt-sm": "gdAuto.gt-sm",
            "gdAuto.gt-md": "gdAuto.gt-md",
            "gdAuto.gt-lg": "gdAuto.gt-lg"
          },
          features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
        });

        var ɵDefaultGridAutoDirective_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](DefaultGridAutoDirective);
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](DefaultGridAutoDirective, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
            args: [{
              selector: selector$5,
              inputs: inputs$5
            }]
          }], null, null);
        })();

        return DefaultGridAutoDirective;
      }();
      /**
       * @fileoverview added by tsickle
       * Generated from: grid/column/column.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /** @type {?} */


      var DEFAULT_VALUE$3 = 'auto';

      var GridColumnStyleBuilder =
      /** @class */
      function () {
        var GridColumnStyleBuilder = /*#__PURE__*/function (_angular_flex_layout_13) {
          _inherits2(GridColumnStyleBuilder, _angular_flex_layout_13);

          var _super250 = _createSuper2(GridColumnStyleBuilder);

          function GridColumnStyleBuilder() {
            _classCallCheck2(this, GridColumnStyleBuilder);

            return _super250.apply(this, arguments);
          }

          _createClass2(GridColumnStyleBuilder, [{
            key: "buildStyles",
            value:
            /**
             * @param {?} input
             * @return {?}
             */
            function buildStyles(input) {
              return {
                'grid-column': input || DEFAULT_VALUE$3
              };
            }
          }]);

          return GridColumnStyleBuilder;
        }(_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleBuilder"]);

        GridColumnStyleBuilder.ɵfac = function GridColumnStyleBuilder_Factory(t) {
          return ɵGridColumnStyleBuilder_BaseFactory(t || GridColumnStyleBuilder);
        };
        /** @nocollapse */


        GridColumnStyleBuilder.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({
          factory: function GridColumnStyleBuilder_Factory() {
            return new GridColumnStyleBuilder();
          },
          token: GridColumnStyleBuilder,
          providedIn: "root"
        });

        var ɵGridColumnStyleBuilder_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](GridColumnStyleBuilder);
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](GridColumnStyleBuilder, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
            args: [{
              providedIn: 'root'
            }]
          }], null, null);
        })();

        return GridColumnStyleBuilder;
      }();

      var GridColumnDirective =
      /** @class */
      function () {
        var GridColumnDirective = /*#__PURE__*/function (_angular_flex_layout_14) {
          _inherits2(GridColumnDirective, _angular_flex_layout_14);

          var _super251 = _createSuper2(GridColumnDirective);

          /**
           * @param {?} elementRef
           * @param {?} styleBuilder
           * @param {?} styler
           * @param {?} marshal
           */
          function GridColumnDirective(elementRef, styleBuilder, styler, marshal) {
            var _this555;

            _classCallCheck2(this, GridColumnDirective);

            _this555 = _super251.call(this, elementRef, styleBuilder, styler, marshal);
            _this555.DIRECTIVE_KEY = 'grid-column';
            _this555.styleCache = columnCache;

            _this555.init();

            return _this555;
          }

          return GridColumnDirective;
        }(_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["BaseDirective2"]);

        GridColumnDirective.ɵfac = function GridColumnDirective_Factory(t) {
          return new (t || GridColumnDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](GridColumnStyleBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["MediaMarshaller"]));
        };

        GridColumnDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
          type: GridColumnDirective,
          features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
        });
        /** @nocollapse */

        GridColumnDirective.ctorParameters = function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
          }, {
            type: GridColumnStyleBuilder
          }, {
            type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]
          }, {
            type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["MediaMarshaller"]
          }];
        };
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](GridColumnDirective, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"]
          }], function () {
            return [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
            }, {
              type: GridColumnStyleBuilder
            }, {
              type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]
            }, {
              type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["MediaMarshaller"]
            }];
          }, null);
        })();

        return GridColumnDirective;
      }();
      /** @type {?} */


      var columnCache = new Map();
      /** @type {?} */

      var inputs$6 = ['gdColumn', 'gdColumn.xs', 'gdColumn.sm', 'gdColumn.md', 'gdColumn.lg', 'gdColumn.xl', 'gdColumn.lt-sm', 'gdColumn.lt-md', 'gdColumn.lt-lg', 'gdColumn.lt-xl', 'gdColumn.gt-xs', 'gdColumn.gt-sm', 'gdColumn.gt-md', 'gdColumn.gt-lg'];
      /** @type {?} */

      var selector$6 = "\n  [gdColumn],\n  [gdColumn.xs], [gdColumn.sm], [gdColumn.md], [gdColumn.lg], [gdColumn.xl],\n  [gdColumn.lt-sm], [gdColumn.lt-md], [gdColumn.lt-lg], [gdColumn.lt-xl],\n  [gdColumn.gt-xs], [gdColumn.gt-sm], [gdColumn.gt-md], [gdColumn.gt-lg]\n";
      /**
       * 'grid-column' CSS Grid styling directive
       * Configures the name or position of an element within the grid
       * @see https://css-tricks.com/snippets/css/complete-guide-grid/#article-header-id-26
       */

      var DefaultGridColumnDirective =
      /** @class */
      function () {
        /**
         * 'grid-column' CSS Grid styling directive
         * Configures the name or position of an element within the grid
         * @see https://css-tricks.com/snippets/css/complete-guide-grid/#article-header-id-26
         */
        var DefaultGridColumnDirective = /*#__PURE__*/function (_GridColumnDirective) {
          _inherits2(DefaultGridColumnDirective, _GridColumnDirective);

          var _super252 = _createSuper2(DefaultGridColumnDirective);

          function DefaultGridColumnDirective() {
            var _this556;

            _classCallCheck2(this, DefaultGridColumnDirective);

            _this556 = _super252.apply(this, arguments);
            _this556.inputs = inputs$6;
            return _this556;
          }

          return DefaultGridColumnDirective;
        }(GridColumnDirective);

        DefaultGridColumnDirective.ɵfac = function DefaultGridColumnDirective_Factory(t) {
          return ɵDefaultGridColumnDirective_BaseFactory(t || DefaultGridColumnDirective);
        };

        DefaultGridColumnDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
          type: DefaultGridColumnDirective,
          selectors: [["", "gdColumn", ""], ["", "gdColumn.xs", ""], ["", "gdColumn.sm", ""], ["", "gdColumn.md", ""], ["", "gdColumn.lg", ""], ["", "gdColumn.xl", ""], ["", "gdColumn.lt-sm", ""], ["", "gdColumn.lt-md", ""], ["", "gdColumn.lt-lg", ""], ["", "gdColumn.lt-xl", ""], ["", "gdColumn.gt-xs", ""], ["", "gdColumn.gt-sm", ""], ["", "gdColumn.gt-md", ""], ["", "gdColumn.gt-lg", ""]],
          inputs: {
            gdColumn: "gdColumn",
            "gdColumn.xs": "gdColumn.xs",
            "gdColumn.sm": "gdColumn.sm",
            "gdColumn.md": "gdColumn.md",
            "gdColumn.lg": "gdColumn.lg",
            "gdColumn.xl": "gdColumn.xl",
            "gdColumn.lt-sm": "gdColumn.lt-sm",
            "gdColumn.lt-md": "gdColumn.lt-md",
            "gdColumn.lt-lg": "gdColumn.lt-lg",
            "gdColumn.lt-xl": "gdColumn.lt-xl",
            "gdColumn.gt-xs": "gdColumn.gt-xs",
            "gdColumn.gt-sm": "gdColumn.gt-sm",
            "gdColumn.gt-md": "gdColumn.gt-md",
            "gdColumn.gt-lg": "gdColumn.gt-lg"
          },
          features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
        });

        var ɵDefaultGridColumnDirective_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](DefaultGridColumnDirective);
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](DefaultGridColumnDirective, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
            args: [{
              selector: selector$6,
              inputs: inputs$6
            }]
          }], null, null);
        })();

        return DefaultGridColumnDirective;
      }();
      /**
       * @fileoverview added by tsickle
       * Generated from: grid/columns/columns.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /** @type {?} */


      var DEFAULT_VALUE$4 = 'none';
      /** @type {?} */

      var AUTO_SPECIFIER = '!';

      var GridColumnsStyleBuilder =
      /** @class */
      function () {
        var GridColumnsStyleBuilder = /*#__PURE__*/function (_angular_flex_layout_15) {
          _inherits2(GridColumnsStyleBuilder, _angular_flex_layout_15);

          var _super253 = _createSuper2(GridColumnsStyleBuilder);

          function GridColumnsStyleBuilder() {
            _classCallCheck2(this, GridColumnsStyleBuilder);

            return _super253.apply(this, arguments);
          }

          _createClass2(GridColumnsStyleBuilder, [{
            key: "buildStyles",
            value:
            /**
             * @param {?} input
             * @param {?} parent
             * @return {?}
             */
            function buildStyles(input, parent) {
              input = input || DEFAULT_VALUE$4;
              /** @type {?} */

              var auto = false;

              if (input.endsWith(AUTO_SPECIFIER)) {
                input = input.substring(0, input.indexOf(AUTO_SPECIFIER));
                auto = true;
              }
              /** @type {?} */


              var css = {
                'display': parent.inline ? 'inline-grid' : 'grid',
                'grid-auto-columns': '',
                'grid-template-columns': ''
              };
              /** @type {?} */

              var key = auto ? 'grid-auto-columns' : 'grid-template-columns';
              css[key] = input;
              return css;
            }
          }]);

          return GridColumnsStyleBuilder;
        }(_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleBuilder"]);

        GridColumnsStyleBuilder.ɵfac = function GridColumnsStyleBuilder_Factory(t) {
          return ɵGridColumnsStyleBuilder_BaseFactory(t || GridColumnsStyleBuilder);
        };
        /** @nocollapse */


        GridColumnsStyleBuilder.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({
          factory: function GridColumnsStyleBuilder_Factory() {
            return new GridColumnsStyleBuilder();
          },
          token: GridColumnsStyleBuilder,
          providedIn: "root"
        });

        var ɵGridColumnsStyleBuilder_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](GridColumnsStyleBuilder);
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](GridColumnsStyleBuilder, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
            args: [{
              providedIn: 'root'
            }]
          }], null, null);
        })();

        return GridColumnsStyleBuilder;
      }();

      var GridColumnsDirective =
      /** @class */
      function () {
        var GridColumnsDirective = /*#__PURE__*/function (_angular_flex_layout_16) {
          _inherits2(GridColumnsDirective, _angular_flex_layout_16);

          var _super254 = _createSuper2(GridColumnsDirective);

          /**
           * @param {?} elementRef
           * @param {?} styleBuilder
           * @param {?} styler
           * @param {?} marshal
           */
          function GridColumnsDirective(elementRef, styleBuilder, styler, marshal) {
            var _this557;

            _classCallCheck2(this, GridColumnsDirective);

            _this557 = _super254.call(this, elementRef, styleBuilder, styler, marshal);
            _this557.DIRECTIVE_KEY = 'grid-columns';
            _this557._inline = false;

            _this557.init();

            return _this557;
          }
          /**
           * @return {?}
           */


          _createClass2(GridColumnsDirective, [{
            key: "inline",
            get: function get() {
              return this._inline;
            }
            /**
             * @param {?} val
             * @return {?}
             */
            ,
            set: function set(val) {
              this._inline = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__["coerceBooleanProperty"])(val);
            } // *********************************************
            // Protected methods
            // *********************************************

            /**
             * @protected
             * @param {?} value
             * @return {?}
             */

          }, {
            key: "updateWithValue",
            value: function updateWithValue(value) {
              this.styleCache = this.inline ? columnsInlineCache : columnsCache;
              this.addStyles(value, {
                inline: this.inline
              });
            }
          }]);

          return GridColumnsDirective;
        }(_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["BaseDirective2"]);

        GridColumnsDirective.ɵfac = function GridColumnsDirective_Factory(t) {
          return new (t || GridColumnsDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](GridColumnsStyleBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["MediaMarshaller"]));
        };

        GridColumnsDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
          type: GridColumnsDirective,
          inputs: {
            inline: ["gdInline", "inline"]
          },
          features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
        });
        /** @nocollapse */

        GridColumnsDirective.ctorParameters = function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
          }, {
            type: GridColumnsStyleBuilder
          }, {
            type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]
          }, {
            type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["MediaMarshaller"]
          }];
        };

        GridColumnsDirective.propDecorators = {
          inline: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
            args: ['gdInline']
          }]
        };
        /*@__PURE__*/

        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](GridColumnsDirective, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"]
          }], function () {
            return [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
            }, {
              type: GridColumnsStyleBuilder
            }, {
              type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]
            }, {
              type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["MediaMarshaller"]
            }];
          }, {
            inline: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
              args: ['gdInline']
            }]
          });
        })();

        return GridColumnsDirective;
      }();
      /** @type {?} */


      var columnsCache = new Map();
      /** @type {?} */

      var columnsInlineCache = new Map();
      /** @type {?} */

      var inputs$7 = ['gdColumns', 'gdColumns.xs', 'gdColumns.sm', 'gdColumns.md', 'gdColumns.lg', 'gdColumns.xl', 'gdColumns.lt-sm', 'gdColumns.lt-md', 'gdColumns.lt-lg', 'gdColumns.lt-xl', 'gdColumns.gt-xs', 'gdColumns.gt-sm', 'gdColumns.gt-md', 'gdColumns.gt-lg'];
      /** @type {?} */

      var selector$7 = "\n  [gdColumns],\n  [gdColumns.xs], [gdColumns.sm], [gdColumns.md], [gdColumns.lg], [gdColumns.xl],\n  [gdColumns.lt-sm], [gdColumns.lt-md], [gdColumns.lt-lg], [gdColumns.lt-xl],\n  [gdColumns.gt-xs], [gdColumns.gt-sm], [gdColumns.gt-md], [gdColumns.gt-lg]\n";
      /**
       * 'grid-template-columns' CSS Grid styling directive
       * Configures the sizing for the columns in the grid
       * Syntax: <column value> [auto]
       * @see https://css-tricks.com/snippets/css/complete-guide-grid/#article-header-id-13
       */

      var DefaultGridColumnsDirective =
      /** @class */
      function () {
        /**
         * 'grid-template-columns' CSS Grid styling directive
         * Configures the sizing for the columns in the grid
         * Syntax: <column value> [auto]
         * @see https://css-tricks.com/snippets/css/complete-guide-grid/#article-header-id-13
         */
        var DefaultGridColumnsDirective = /*#__PURE__*/function (_GridColumnsDirective) {
          _inherits2(DefaultGridColumnsDirective, _GridColumnsDirective);

          var _super255 = _createSuper2(DefaultGridColumnsDirective);

          function DefaultGridColumnsDirective() {
            var _this558;

            _classCallCheck2(this, DefaultGridColumnsDirective);

            _this558 = _super255.apply(this, arguments);
            _this558.inputs = inputs$7;
            return _this558;
          }

          return DefaultGridColumnsDirective;
        }(GridColumnsDirective);

        DefaultGridColumnsDirective.ɵfac = function DefaultGridColumnsDirective_Factory(t) {
          return ɵDefaultGridColumnsDirective_BaseFactory(t || DefaultGridColumnsDirective);
        };

        DefaultGridColumnsDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
          type: DefaultGridColumnsDirective,
          selectors: [["", "gdColumns", ""], ["", "gdColumns.xs", ""], ["", "gdColumns.sm", ""], ["", "gdColumns.md", ""], ["", "gdColumns.lg", ""], ["", "gdColumns.xl", ""], ["", "gdColumns.lt-sm", ""], ["", "gdColumns.lt-md", ""], ["", "gdColumns.lt-lg", ""], ["", "gdColumns.lt-xl", ""], ["", "gdColumns.gt-xs", ""], ["", "gdColumns.gt-sm", ""], ["", "gdColumns.gt-md", ""], ["", "gdColumns.gt-lg", ""]],
          inputs: {
            gdColumns: "gdColumns",
            "gdColumns.xs": "gdColumns.xs",
            "gdColumns.sm": "gdColumns.sm",
            "gdColumns.md": "gdColumns.md",
            "gdColumns.lg": "gdColumns.lg",
            "gdColumns.xl": "gdColumns.xl",
            "gdColumns.lt-sm": "gdColumns.lt-sm",
            "gdColumns.lt-md": "gdColumns.lt-md",
            "gdColumns.lt-lg": "gdColumns.lt-lg",
            "gdColumns.lt-xl": "gdColumns.lt-xl",
            "gdColumns.gt-xs": "gdColumns.gt-xs",
            "gdColumns.gt-sm": "gdColumns.gt-sm",
            "gdColumns.gt-md": "gdColumns.gt-md",
            "gdColumns.gt-lg": "gdColumns.gt-lg"
          },
          features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
        });

        var ɵDefaultGridColumnsDirective_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](DefaultGridColumnsDirective);
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](DefaultGridColumnsDirective, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
            args: [{
              selector: selector$7,
              inputs: inputs$7
            }]
          }], null, null);
        })();

        return DefaultGridColumnsDirective;
      }();
      /**
       * @fileoverview added by tsickle
       * Generated from: grid/gap/gap.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /** @type {?} */


      var DEFAULT_VALUE$5 = '0';

      var GridGapStyleBuilder =
      /** @class */
      function () {
        var GridGapStyleBuilder = /*#__PURE__*/function (_angular_flex_layout_17) {
          _inherits2(GridGapStyleBuilder, _angular_flex_layout_17);

          var _super256 = _createSuper2(GridGapStyleBuilder);

          function GridGapStyleBuilder() {
            _classCallCheck2(this, GridGapStyleBuilder);

            return _super256.apply(this, arguments);
          }

          _createClass2(GridGapStyleBuilder, [{
            key: "buildStyles",
            value:
            /**
             * @param {?} input
             * @param {?} parent
             * @return {?}
             */
            function buildStyles(input, parent) {
              return {
                'display': parent.inline ? 'inline-grid' : 'grid',
                'grid-gap': input || DEFAULT_VALUE$5
              };
            }
          }]);

          return GridGapStyleBuilder;
        }(_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleBuilder"]);

        GridGapStyleBuilder.ɵfac = function GridGapStyleBuilder_Factory(t) {
          return ɵGridGapStyleBuilder_BaseFactory(t || GridGapStyleBuilder);
        };
        /** @nocollapse */


        GridGapStyleBuilder.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({
          factory: function GridGapStyleBuilder_Factory() {
            return new GridGapStyleBuilder();
          },
          token: GridGapStyleBuilder,
          providedIn: "root"
        });

        var ɵGridGapStyleBuilder_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](GridGapStyleBuilder);
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](GridGapStyleBuilder, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
            args: [{
              providedIn: 'root'
            }]
          }], null, null);
        })();

        return GridGapStyleBuilder;
      }();

      var GridGapDirective =
      /** @class */
      function () {
        var GridGapDirective = /*#__PURE__*/function (_angular_flex_layout_18) {
          _inherits2(GridGapDirective, _angular_flex_layout_18);

          var _super257 = _createSuper2(GridGapDirective);

          /**
           * @param {?} elRef
           * @param {?} styleUtils
           * @param {?} styleBuilder
           * @param {?} marshal
           */
          function GridGapDirective(elRef, styleUtils, styleBuilder, marshal) {
            var _this559;

            _classCallCheck2(this, GridGapDirective);

            _this559 = _super257.call(this, elRef, styleBuilder, styleUtils, marshal);
            _this559.DIRECTIVE_KEY = 'grid-gap';
            _this559._inline = false;

            _this559.init();

            return _this559;
          }
          /**
           * @return {?}
           */


          _createClass2(GridGapDirective, [{
            key: "inline",
            get: function get() {
              return this._inline;
            }
            /**
             * @param {?} val
             * @return {?}
             */
            ,
            set: function set(val) {
              this._inline = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__["coerceBooleanProperty"])(val);
            } // *********************************************
            // Protected methods
            // *********************************************

            /**
             * @protected
             * @param {?} value
             * @return {?}
             */

          }, {
            key: "updateWithValue",
            value: function updateWithValue(value) {
              this.styleCache = this.inline ? gapInlineCache : gapCache;
              this.addStyles(value, {
                inline: this.inline
              });
            }
          }]);

          return GridGapDirective;
        }(_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["BaseDirective2"]);

        GridGapDirective.ɵfac = function GridGapDirective_Factory(t) {
          return new (t || GridGapDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](GridGapStyleBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["MediaMarshaller"]));
        };

        GridGapDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
          type: GridGapDirective,
          inputs: {
            inline: ["gdInline", "inline"]
          },
          features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
        });
        /** @nocollapse */

        GridGapDirective.ctorParameters = function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
          }, {
            type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]
          }, {
            type: GridGapStyleBuilder
          }, {
            type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["MediaMarshaller"]
          }];
        };

        GridGapDirective.propDecorators = {
          inline: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
            args: ['gdInline']
          }]
        };
        /*@__PURE__*/

        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](GridGapDirective, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"]
          }], function () {
            return [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
            }, {
              type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]
            }, {
              type: GridGapStyleBuilder
            }, {
              type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["MediaMarshaller"]
            }];
          }, {
            inline: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
              args: ['gdInline']
            }]
          });
        })();

        return GridGapDirective;
      }();
      /** @type {?} */


      var gapCache = new Map();
      /** @type {?} */

      var gapInlineCache = new Map();
      /** @type {?} */

      var inputs$8 = ['gdGap', 'gdGap.xs', 'gdGap.sm', 'gdGap.md', 'gdGap.lg', 'gdGap.xl', 'gdGap.lt-sm', 'gdGap.lt-md', 'gdGap.lt-lg', 'gdGap.lt-xl', 'gdGap.gt-xs', 'gdGap.gt-sm', 'gdGap.gt-md', 'gdGap.gt-lg'];
      /** @type {?} */

      var selector$8 = "\n  [gdGap],\n  [gdGap.xs], [gdGap.sm], [gdGap.md], [gdGap.lg], [gdGap.xl],\n  [gdGap.lt-sm], [gdGap.lt-md], [gdGap.lt-lg], [gdGap.lt-xl],\n  [gdGap.gt-xs], [gdGap.gt-sm], [gdGap.gt-md], [gdGap.gt-lg]\n";
      /**
       * 'grid-gap' CSS Grid styling directive
       * Configures the gap between items in the grid
       * Syntax: <row gap> [<column-gap>]
       * @see https://css-tricks.com/snippets/css/complete-guide-grid/#article-header-id-17
       */

      var DefaultGridGapDirective =
      /** @class */
      function () {
        /**
         * 'grid-gap' CSS Grid styling directive
         * Configures the gap between items in the grid
         * Syntax: <row gap> [<column-gap>]
         * @see https://css-tricks.com/snippets/css/complete-guide-grid/#article-header-id-17
         */
        var DefaultGridGapDirective = /*#__PURE__*/function (_GridGapDirective) {
          _inherits2(DefaultGridGapDirective, _GridGapDirective);

          var _super258 = _createSuper2(DefaultGridGapDirective);

          function DefaultGridGapDirective() {
            var _this560;

            _classCallCheck2(this, DefaultGridGapDirective);

            _this560 = _super258.apply(this, arguments);
            _this560.inputs = inputs$8;
            return _this560;
          }

          return DefaultGridGapDirective;
        }(GridGapDirective);

        DefaultGridGapDirective.ɵfac = function DefaultGridGapDirective_Factory(t) {
          return ɵDefaultGridGapDirective_BaseFactory(t || DefaultGridGapDirective);
        };

        DefaultGridGapDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
          type: DefaultGridGapDirective,
          selectors: [["", "gdGap", ""], ["", "gdGap.xs", ""], ["", "gdGap.sm", ""], ["", "gdGap.md", ""], ["", "gdGap.lg", ""], ["", "gdGap.xl", ""], ["", "gdGap.lt-sm", ""], ["", "gdGap.lt-md", ""], ["", "gdGap.lt-lg", ""], ["", "gdGap.lt-xl", ""], ["", "gdGap.gt-xs", ""], ["", "gdGap.gt-sm", ""], ["", "gdGap.gt-md", ""], ["", "gdGap.gt-lg", ""]],
          inputs: {
            gdGap: "gdGap",
            "gdGap.xs": "gdGap.xs",
            "gdGap.sm": "gdGap.sm",
            "gdGap.md": "gdGap.md",
            "gdGap.lg": "gdGap.lg",
            "gdGap.xl": "gdGap.xl",
            "gdGap.lt-sm": "gdGap.lt-sm",
            "gdGap.lt-md": "gdGap.lt-md",
            "gdGap.lt-lg": "gdGap.lt-lg",
            "gdGap.lt-xl": "gdGap.lt-xl",
            "gdGap.gt-xs": "gdGap.gt-xs",
            "gdGap.gt-sm": "gdGap.gt-sm",
            "gdGap.gt-md": "gdGap.gt-md",
            "gdGap.gt-lg": "gdGap.gt-lg"
          },
          features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
        });

        var ɵDefaultGridGapDirective_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](DefaultGridGapDirective);
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](DefaultGridGapDirective, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
            args: [{
              selector: selector$8,
              inputs: inputs$8
            }]
          }], null, null);
        })();

        return DefaultGridGapDirective;
      }();
      /**
       * @fileoverview added by tsickle
       * Generated from: grid/row/row.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /** @type {?} */


      var DEFAULT_VALUE$6 = 'auto';

      var GridRowStyleBuilder =
      /** @class */
      function () {
        var GridRowStyleBuilder = /*#__PURE__*/function (_angular_flex_layout_19) {
          _inherits2(GridRowStyleBuilder, _angular_flex_layout_19);

          var _super259 = _createSuper2(GridRowStyleBuilder);

          function GridRowStyleBuilder() {
            _classCallCheck2(this, GridRowStyleBuilder);

            return _super259.apply(this, arguments);
          }

          _createClass2(GridRowStyleBuilder, [{
            key: "buildStyles",
            value:
            /**
             * @param {?} input
             * @return {?}
             */
            function buildStyles(input) {
              return {
                'grid-row': input || DEFAULT_VALUE$6
              };
            }
          }]);

          return GridRowStyleBuilder;
        }(_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleBuilder"]);

        GridRowStyleBuilder.ɵfac = function GridRowStyleBuilder_Factory(t) {
          return ɵGridRowStyleBuilder_BaseFactory(t || GridRowStyleBuilder);
        };
        /** @nocollapse */


        GridRowStyleBuilder.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({
          factory: function GridRowStyleBuilder_Factory() {
            return new GridRowStyleBuilder();
          },
          token: GridRowStyleBuilder,
          providedIn: "root"
        });

        var ɵGridRowStyleBuilder_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](GridRowStyleBuilder);
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](GridRowStyleBuilder, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
            args: [{
              providedIn: 'root'
            }]
          }], null, null);
        })();

        return GridRowStyleBuilder;
      }();

      var GridRowDirective =
      /** @class */
      function () {
        var GridRowDirective = /*#__PURE__*/function (_angular_flex_layout_20) {
          _inherits2(GridRowDirective, _angular_flex_layout_20);

          var _super260 = _createSuper2(GridRowDirective);

          /**
           * @param {?} elementRef
           * @param {?} styleBuilder
           * @param {?} styler
           * @param {?} marshal
           */
          function GridRowDirective(elementRef, styleBuilder, styler, marshal) {
            var _this561;

            _classCallCheck2(this, GridRowDirective);

            _this561 = _super260.call(this, elementRef, styleBuilder, styler, marshal);
            _this561.DIRECTIVE_KEY = 'grid-row';
            _this561.styleCache = rowCache;

            _this561.init();

            return _this561;
          }

          return GridRowDirective;
        }(_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["BaseDirective2"]);

        GridRowDirective.ɵfac = function GridRowDirective_Factory(t) {
          return new (t || GridRowDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](GridRowStyleBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["MediaMarshaller"]));
        };

        GridRowDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
          type: GridRowDirective,
          features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
        });
        /** @nocollapse */

        GridRowDirective.ctorParameters = function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
          }, {
            type: GridRowStyleBuilder
          }, {
            type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]
          }, {
            type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["MediaMarshaller"]
          }];
        };
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](GridRowDirective, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"]
          }], function () {
            return [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
            }, {
              type: GridRowStyleBuilder
            }, {
              type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]
            }, {
              type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["MediaMarshaller"]
            }];
          }, null);
        })();

        return GridRowDirective;
      }();
      /** @type {?} */


      var rowCache = new Map();
      /** @type {?} */

      var inputs$9 = ['gdRow', 'gdRow.xs', 'gdRow.sm', 'gdRow.md', 'gdRow.lg', 'gdRow.xl', 'gdRow.lt-sm', 'gdRow.lt-md', 'gdRow.lt-lg', 'gdRow.lt-xl', 'gdRow.gt-xs', 'gdRow.gt-sm', 'gdRow.gt-md', 'gdRow.gt-lg'];
      /** @type {?} */

      var selector$9 = "\n  [gdRow],\n  [gdRow.xs], [gdRow.sm], [gdRow.md], [gdRow.lg], [gdRow.xl],\n  [gdRow.lt-sm], [gdRow.lt-md], [gdRow.lt-lg], [gdRow.lt-xl],\n  [gdRow.gt-xs], [gdRow.gt-sm], [gdRow.gt-md], [gdRow.gt-lg]\n";
      /**
       * 'grid-row' CSS Grid styling directive
       * Configures the name or position of an element within the grid
       * @see https://css-tricks.com/snippets/css/complete-guide-grid/#article-header-id-26
       */

      var DefaultGridRowDirective =
      /** @class */
      function () {
        /**
         * 'grid-row' CSS Grid styling directive
         * Configures the name or position of an element within the grid
         * @see https://css-tricks.com/snippets/css/complete-guide-grid/#article-header-id-26
         */
        var DefaultGridRowDirective = /*#__PURE__*/function (_GridRowDirective) {
          _inherits2(DefaultGridRowDirective, _GridRowDirective);

          var _super261 = _createSuper2(DefaultGridRowDirective);

          function DefaultGridRowDirective() {
            var _this562;

            _classCallCheck2(this, DefaultGridRowDirective);

            _this562 = _super261.apply(this, arguments);
            _this562.inputs = inputs$9;
            return _this562;
          }

          return DefaultGridRowDirective;
        }(GridRowDirective);

        DefaultGridRowDirective.ɵfac = function DefaultGridRowDirective_Factory(t) {
          return ɵDefaultGridRowDirective_BaseFactory(t || DefaultGridRowDirective);
        };

        DefaultGridRowDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
          type: DefaultGridRowDirective,
          selectors: [["", "gdRow", ""], ["", "gdRow.xs", ""], ["", "gdRow.sm", ""], ["", "gdRow.md", ""], ["", "gdRow.lg", ""], ["", "gdRow.xl", ""], ["", "gdRow.lt-sm", ""], ["", "gdRow.lt-md", ""], ["", "gdRow.lt-lg", ""], ["", "gdRow.lt-xl", ""], ["", "gdRow.gt-xs", ""], ["", "gdRow.gt-sm", ""], ["", "gdRow.gt-md", ""], ["", "gdRow.gt-lg", ""]],
          inputs: {
            gdRow: "gdRow",
            "gdRow.xs": "gdRow.xs",
            "gdRow.sm": "gdRow.sm",
            "gdRow.md": "gdRow.md",
            "gdRow.lg": "gdRow.lg",
            "gdRow.xl": "gdRow.xl",
            "gdRow.lt-sm": "gdRow.lt-sm",
            "gdRow.lt-md": "gdRow.lt-md",
            "gdRow.lt-lg": "gdRow.lt-lg",
            "gdRow.lt-xl": "gdRow.lt-xl",
            "gdRow.gt-xs": "gdRow.gt-xs",
            "gdRow.gt-sm": "gdRow.gt-sm",
            "gdRow.gt-md": "gdRow.gt-md",
            "gdRow.gt-lg": "gdRow.gt-lg"
          },
          features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
        });

        var ɵDefaultGridRowDirective_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](DefaultGridRowDirective);
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](DefaultGridRowDirective, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
            args: [{
              selector: selector$9,
              inputs: inputs$9
            }]
          }], null, null);
        })();

        return DefaultGridRowDirective;
      }();
      /**
       * @fileoverview added by tsickle
       * Generated from: grid/rows/rows.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /** @type {?} */


      var DEFAULT_VALUE$7 = 'none';
      /** @type {?} */

      var AUTO_SPECIFIER$1 = '!';

      var GridRowsStyleBuilder =
      /** @class */
      function () {
        var GridRowsStyleBuilder = /*#__PURE__*/function (_angular_flex_layout_21) {
          _inherits2(GridRowsStyleBuilder, _angular_flex_layout_21);

          var _super262 = _createSuper2(GridRowsStyleBuilder);

          function GridRowsStyleBuilder() {
            _classCallCheck2(this, GridRowsStyleBuilder);

            return _super262.apply(this, arguments);
          }

          _createClass2(GridRowsStyleBuilder, [{
            key: "buildStyles",
            value:
            /**
             * @param {?} input
             * @param {?} parent
             * @return {?}
             */
            function buildStyles(input, parent) {
              input = input || DEFAULT_VALUE$7;
              /** @type {?} */

              var auto = false;

              if (input.endsWith(AUTO_SPECIFIER$1)) {
                input = input.substring(0, input.indexOf(AUTO_SPECIFIER$1));
                auto = true;
              }
              /** @type {?} */


              var css = {
                'display': parent.inline ? 'inline-grid' : 'grid',
                'grid-auto-rows': '',
                'grid-template-rows': ''
              };
              /** @type {?} */

              var key = auto ? 'grid-auto-rows' : 'grid-template-rows';
              css[key] = input;
              return css;
            }
          }]);

          return GridRowsStyleBuilder;
        }(_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleBuilder"]);

        GridRowsStyleBuilder.ɵfac = function GridRowsStyleBuilder_Factory(t) {
          return ɵGridRowsStyleBuilder_BaseFactory(t || GridRowsStyleBuilder);
        };
        /** @nocollapse */


        GridRowsStyleBuilder.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({
          factory: function GridRowsStyleBuilder_Factory() {
            return new GridRowsStyleBuilder();
          },
          token: GridRowsStyleBuilder,
          providedIn: "root"
        });

        var ɵGridRowsStyleBuilder_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](GridRowsStyleBuilder);
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](GridRowsStyleBuilder, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
            args: [{
              providedIn: 'root'
            }]
          }], null, null);
        })();

        return GridRowsStyleBuilder;
      }();

      var GridRowsDirective =
      /** @class */
      function () {
        var GridRowsDirective = /*#__PURE__*/function (_angular_flex_layout_22) {
          _inherits2(GridRowsDirective, _angular_flex_layout_22);

          var _super263 = _createSuper2(GridRowsDirective);

          /**
           * @param {?} elementRef
           * @param {?} styleBuilder
           * @param {?} styler
           * @param {?} marshal
           */
          function GridRowsDirective(elementRef, styleBuilder, styler, marshal) {
            var _this563;

            _classCallCheck2(this, GridRowsDirective);

            _this563 = _super263.call(this, elementRef, styleBuilder, styler, marshal);
            _this563.DIRECTIVE_KEY = 'grid-rows';
            _this563._inline = false;

            _this563.init();

            return _this563;
          }
          /**
           * @return {?}
           */


          _createClass2(GridRowsDirective, [{
            key: "inline",
            get: function get() {
              return this._inline;
            }
            /**
             * @param {?} val
             * @return {?}
             */
            ,
            set: function set(val) {
              this._inline = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__["coerceBooleanProperty"])(val);
            } // *********************************************
            // Protected methods
            // *********************************************

            /**
             * @protected
             * @param {?} value
             * @return {?}
             */

          }, {
            key: "updateWithValue",
            value: function updateWithValue(value) {
              this.styleCache = this.inline ? rowsInlineCache : rowsCache;
              this.addStyles(value, {
                inline: this.inline
              });
            }
          }]);

          return GridRowsDirective;
        }(_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["BaseDirective2"]);

        GridRowsDirective.ɵfac = function GridRowsDirective_Factory(t) {
          return new (t || GridRowsDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](GridRowsStyleBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["MediaMarshaller"]));
        };

        GridRowsDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
          type: GridRowsDirective,
          inputs: {
            inline: ["gdInline", "inline"]
          },
          features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
        });
        /** @nocollapse */

        GridRowsDirective.ctorParameters = function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
          }, {
            type: GridRowsStyleBuilder
          }, {
            type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]
          }, {
            type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["MediaMarshaller"]
          }];
        };

        GridRowsDirective.propDecorators = {
          inline: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
            args: ['gdInline']
          }]
        };
        /*@__PURE__*/

        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](GridRowsDirective, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"]
          }], function () {
            return [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
            }, {
              type: GridRowsStyleBuilder
            }, {
              type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]
            }, {
              type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["MediaMarshaller"]
            }];
          }, {
            inline: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
              args: ['gdInline']
            }]
          });
        })();

        return GridRowsDirective;
      }();
      /** @type {?} */


      var rowsCache = new Map();
      /** @type {?} */

      var rowsInlineCache = new Map();
      /** @type {?} */

      var inputs$10 = ['gdRows', 'gdRows.xs', 'gdRows.sm', 'gdRows.md', 'gdRows.lg', 'gdRows.xl', 'gdRows.lt-sm', 'gdRows.lt-md', 'gdRows.lt-lg', 'gdRows.lt-xl', 'gdRows.gt-xs', 'gdRows.gt-sm', 'gdRows.gt-md', 'gdRows.gt-lg'];
      /** @type {?} */

      var selector$10 = "\n  [gdRows],\n  [gdRows.xs], [gdRows.sm], [gdRows.md], [gdRows.lg], [gdRows.xl],\n  [gdRows.lt-sm], [gdRows.lt-md], [gdRows.lt-lg], [gdRows.lt-xl],\n  [gdRows.gt-xs], [gdRows.gt-sm], [gdRows.gt-md], [gdRows.gt-lg]\n";
      /**
       * 'grid-template-rows' CSS Grid styling directive
       * Configures the sizing for the rows in the grid
       * Syntax: <column value> [auto]
       * @see https://css-tricks.com/snippets/css/complete-guide-grid/#article-header-id-13
       */

      var DefaultGridRowsDirective =
      /** @class */
      function () {
        /**
         * 'grid-template-rows' CSS Grid styling directive
         * Configures the sizing for the rows in the grid
         * Syntax: <column value> [auto]
         * @see https://css-tricks.com/snippets/css/complete-guide-grid/#article-header-id-13
         */
        var DefaultGridRowsDirective = /*#__PURE__*/function (_GridRowsDirective) {
          _inherits2(DefaultGridRowsDirective, _GridRowsDirective);

          var _super264 = _createSuper2(DefaultGridRowsDirective);

          function DefaultGridRowsDirective() {
            var _this564;

            _classCallCheck2(this, DefaultGridRowsDirective);

            _this564 = _super264.apply(this, arguments);
            _this564.inputs = inputs$10;
            return _this564;
          }

          return DefaultGridRowsDirective;
        }(GridRowsDirective);

        DefaultGridRowsDirective.ɵfac = function DefaultGridRowsDirective_Factory(t) {
          return ɵDefaultGridRowsDirective_BaseFactory(t || DefaultGridRowsDirective);
        };

        DefaultGridRowsDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
          type: DefaultGridRowsDirective,
          selectors: [["", "gdRows", ""], ["", "gdRows.xs", ""], ["", "gdRows.sm", ""], ["", "gdRows.md", ""], ["", "gdRows.lg", ""], ["", "gdRows.xl", ""], ["", "gdRows.lt-sm", ""], ["", "gdRows.lt-md", ""], ["", "gdRows.lt-lg", ""], ["", "gdRows.lt-xl", ""], ["", "gdRows.gt-xs", ""], ["", "gdRows.gt-sm", ""], ["", "gdRows.gt-md", ""], ["", "gdRows.gt-lg", ""]],
          inputs: {
            gdRows: "gdRows",
            "gdRows.xs": "gdRows.xs",
            "gdRows.sm": "gdRows.sm",
            "gdRows.md": "gdRows.md",
            "gdRows.lg": "gdRows.lg",
            "gdRows.xl": "gdRows.xl",
            "gdRows.lt-sm": "gdRows.lt-sm",
            "gdRows.lt-md": "gdRows.lt-md",
            "gdRows.lt-lg": "gdRows.lt-lg",
            "gdRows.lt-xl": "gdRows.lt-xl",
            "gdRows.gt-xs": "gdRows.gt-xs",
            "gdRows.gt-sm": "gdRows.gt-sm",
            "gdRows.gt-md": "gdRows.gt-md",
            "gdRows.gt-lg": "gdRows.gt-lg"
          },
          features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
        });

        var ɵDefaultGridRowsDirective_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](DefaultGridRowsDirective);
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](DefaultGridRowsDirective, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
            args: [{
              selector: selector$10,
              inputs: inputs$10
            }]
          }], null, null);
        })();

        return DefaultGridRowsDirective;
      }();
      /**
       * @fileoverview added by tsickle
       * Generated from: grid/module.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /** @type {?} */


      var ALL_DIRECTIVES = [DefaultGridAlignDirective, DefaultGridAlignColumnsDirective, DefaultGridAlignRowsDirective, DefaultGridAreaDirective, DefaultGridAreasDirective, DefaultGridAutoDirective, DefaultGridColumnDirective, DefaultGridColumnsDirective, DefaultGridGapDirective, DefaultGridRowDirective, DefaultGridRowsDirective];
      /**
       * *****************************************************************
       * Define module for the CSS Grid API
       * *****************************************************************
       */

      var GridModule =
      /** @class */
      function () {
        /**
         * *****************************************************************
         * Define module for the CSS Grid API
         * *****************************************************************
         */
        var GridModule = function GridModule() {
          _classCallCheck2(this, GridModule);
        };

        GridModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
          type: GridModule
        });
        GridModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
          factory: function GridModule_Factory(t) {
            return new (t || GridModule)();
          },
          imports: [[_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["CoreModule"]]]
        });

        (function () {
          (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](GridModule, {
            declarations: function declarations() {
              return [DefaultGridAlignDirective, DefaultGridAlignColumnsDirective, DefaultGridAlignRowsDirective, DefaultGridAreaDirective, DefaultGridAreasDirective, DefaultGridAutoDirective, DefaultGridColumnDirective, DefaultGridColumnsDirective, DefaultGridGapDirective, DefaultGridRowDirective, DefaultGridRowsDirective];
            },
            imports: function imports() {
              return [_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["CoreModule"]];
            },
            exports: function exports() {
              return [DefaultGridAlignDirective, DefaultGridAlignColumnsDirective, DefaultGridAlignRowsDirective, DefaultGridAreaDirective, DefaultGridAreasDirective, DefaultGridAutoDirective, DefaultGridColumnDirective, DefaultGridColumnsDirective, DefaultGridGapDirective, DefaultGridRowDirective, DefaultGridRowsDirective];
            }
          });
        })();
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](GridModule, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
            args: [{
              imports: [_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["CoreModule"]],
              declarations: [].concat(ALL_DIRECTIVES),
              exports: [].concat(ALL_DIRECTIVES)
            }]
          }], null, null);
        })();

        return GridModule;
      }();
      /**
       * @fileoverview added by tsickle
       * Generated from: grid/public-api.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * @fileoverview added by tsickle
       * Generated from: grid/index.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */
      //# sourceMappingURL=grid.js.map

      /***/

    },

    /***/
    "NoME": function NoME(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return differenceInDays;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _differenceInCalendarDays_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../differenceInCalendarDays/index.js */
      "gXqy");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg"); // Like `compareAsc` but uses local time not UTC, which is needed
      // for accurate equality comparisons of UTC timestamps that end up
      // having the same representation in local time, e.g. one hour before
      // DST ends vs. the instant that DST ends.


      function compareLocalAsc(dateLeft, dateRight) {
        var diff = dateLeft.getFullYear() - dateRight.getFullYear() || dateLeft.getMonth() - dateRight.getMonth() || dateLeft.getDate() - dateRight.getDate() || dateLeft.getHours() - dateRight.getHours() || dateLeft.getMinutes() - dateRight.getMinutes() || dateLeft.getSeconds() - dateRight.getSeconds() || dateLeft.getMilliseconds() - dateRight.getMilliseconds();

        if (diff < 0) {
          return -1;
        } else if (diff > 0) {
          return 1; // Return 0 if diff is 0; return NaN if diff is NaN
        } else {
          return diff;
        }
      }
      /**
       * @name differenceInDays
       * @category Day Helpers
       * @summary Get the number of full days between the given dates.
       *
       * @description
       * Get the number of full day periods between two dates. Fractional days are
       * truncated towards zero.
       *
       * One "full day" is the distance between a local time in one day to the same
       * local time on the next or previous day. A full day can sometimes be less than
       * or more than 24 hours if a daylight savings change happens between two dates.
       *
       * To ignore DST and only measure exact 24-hour periods, use this instead:
       * `Math.floor(differenceInHours(dateLeft, dateRight)/24)|0`.
       *
       *
       * ### 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 {Date|Number} dateLeft - the later date
       * @param {Date|Number} dateRight - the earlier date
       * @returns {Number} the number of full days according to the local timezone
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // How many full days are between
       * // 2 July 2011 23:00:00 and 2 July 2012 00:00:00?
       * var result = differenceInDays(
       *   new Date(2012, 6, 2, 0, 0),
       *   new Date(2011, 6, 2, 23, 0)
       * )
       * //=> 365
       * // How many full days are between
       * // 2 July 2011 23:59:00 and 3 July 2011 00:01:00?
       * var result = differenceInDays(
       *   new Date(2011, 6, 3, 0, 1),
       *   new Date(2011, 6, 2, 23, 59)
       * )
       * //=> 0
       * // How many full days are between
       * // 1 March 2020 0:00 and 1 June 2020 0:00 ?
       * // Note: because local time is used, the
       * // result will always be 92 days, even in
       * // time zones where DST starts and the
       * // period has only 92*24-1 hours.
       * var result = differenceInDays(
       *   new Date(2020, 5, 1),
       *   new Date(2020, 2, 1)
       * )
      //=> 92
       */


      function differenceInDays(dirtyDateLeft, dirtyDateRight) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(2, arguments);
        var dateLeft = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateLeft);
        var dateRight = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateRight);
        var sign = compareLocalAsc(dateLeft, dateRight);
        var difference = Math.abs(Object(_differenceInCalendarDays_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dateLeft, dateRight));
        dateLeft.setDate(dateLeft.getDate() - sign * difference); // Math.abs(diff in full days - diff in calendar days) === 1 if last calendar day is not full
        // If so, result must be decreased by 1 in absolute value

        var isLastDayNotFull = compareLocalAsc(dateLeft, dateRight) === -sign;
        var result = sign * (difference - isLastDayNotFull); // Prevent negative zero

        return result === 0 ? 0 : result;
      }
      /***/

    },

    /***/
    "Nv8m": function Nv8m(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "race", function () {
        return race;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "RaceOperator", function () {
        return RaceOperator;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "RaceSubscriber", function () {
        return RaceSubscriber;
      });
      /* harmony import */


      var _util_isArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../util/isArray */
      "DH7j");
      /* harmony import */


      var _fromArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ./fromArray */
      "yCtX");
      /* harmony import */


      var _OuterSubscriber__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../OuterSubscriber */
      "l7GE");
      /* harmony import */


      var _util_subscribeToResult__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../util/subscribeToResult */
      "ZUHj");

      function race() {
        for (var _len48 = arguments.length, observables = new Array(_len48), _key50 = 0; _key50 < _len48; _key50++) {
          observables[_key50] = arguments[_key50];
        }

        if (observables.length === 1) {
          if (Object(_util_isArray__WEBPACK_IMPORTED_MODULE_0__["isArray"])(observables[0])) {
            observables = observables[0];
          } else {
            return observables[0];
          }
        }

        return Object(_fromArray__WEBPACK_IMPORTED_MODULE_1__["fromArray"])(observables, undefined).lift(new RaceOperator());
      }

      var RaceOperator = /*#__PURE__*/function () {
        function RaceOperator() {
          _classCallCheck2(this, RaceOperator);
        }

        _createClass2(RaceOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            return source.subscribe(new RaceSubscriber(subscriber));
          }
        }]);

        return RaceOperator;
      }();

      var RaceSubscriber = /*#__PURE__*/function (_OuterSubscriber__WEB2) {
        _inherits2(RaceSubscriber, _OuterSubscriber__WEB2);

        var _super265 = _createSuper2(RaceSubscriber);

        function RaceSubscriber(destination) {
          var _this565;

          _classCallCheck2(this, RaceSubscriber);

          _this565 = _super265.call(this, destination);
          _this565.hasFirst = false;
          _this565.observables = [];
          _this565.subscriptions = [];
          return _this565;
        }

        _createClass2(RaceSubscriber, [{
          key: "_next",
          value: function _next(observable) {
            this.observables.push(observable);
          }
        }, {
          key: "_complete",
          value: function _complete() {
            var observables = this.observables;
            var len = observables.length;

            if (len === 0) {
              this.destination.complete();
            } else {
              for (var i = 0; i < len && !this.hasFirst; i++) {
                var observable = observables[i];
                var subscription = Object(_util_subscribeToResult__WEBPACK_IMPORTED_MODULE_3__["subscribeToResult"])(this, observable, undefined, i);

                if (this.subscriptions) {
                  this.subscriptions.push(subscription);
                }

                this.add(subscription);
              }

              this.observables = null;
            }
          }
        }, {
          key: "notifyNext",
          value: function notifyNext(_outerValue, innerValue, outerIndex) {
            if (!this.hasFirst) {
              this.hasFirst = true;

              for (var i = 0; i < this.subscriptions.length; i++) {
                if (i !== outerIndex) {
                  var subscription = this.subscriptions[i];
                  subscription.unsubscribe();
                  this.remove(subscription);
                }
              }

              this.subscriptions = null;
            }

            this.destination.next(innerValue);
          }
        }]);

        return RaceSubscriber;
      }(_OuterSubscriber__WEBPACK_IMPORTED_MODULE_2__["OuterSubscriber"]); //# sourceMappingURL=race.js.map

      /***/

    },

    /***/
    "O4y0": function O4y0(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "SubscribeOnObservable", function () {
        return SubscribeOnObservable;
      });
      /* harmony import */


      var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Observable */
      "HDdC");
      /* harmony import */


      var _scheduler_asap__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../scheduler/asap */
      "7Hc7");
      /* harmony import */


      var _util_isNumeric__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../util/isNumeric */
      "Y7HM");

      var SubscribeOnObservable = /*#__PURE__*/function (_Observable__WEBPACK_2) {
        _inherits2(SubscribeOnObservable, _Observable__WEBPACK_2);

        var _super266 = _createSuper2(SubscribeOnObservable);

        function SubscribeOnObservable(source) {
          var _this566;

          var delayTime = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
          var scheduler = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _scheduler_asap__WEBPACK_IMPORTED_MODULE_1__["asap"];

          _classCallCheck2(this, SubscribeOnObservable);

          _this566 = _super266.call(this);
          _this566.source = source;
          _this566.delayTime = delayTime;
          _this566.scheduler = scheduler;

          if (!Object(_util_isNumeric__WEBPACK_IMPORTED_MODULE_2__["isNumeric"])(delayTime) || delayTime < 0) {
            _this566.delayTime = 0;
          }

          if (!scheduler || typeof scheduler.schedule !== 'function') {
            _this566.scheduler = _scheduler_asap__WEBPACK_IMPORTED_MODULE_1__["asap"];
          }

          return _this566;
        }

        _createClass2(SubscribeOnObservable, [{
          key: "_subscribe",
          value: function _subscribe(subscriber) {
            var delay = this.delayTime;
            var source = this.source;
            var scheduler = this.scheduler;
            return scheduler.schedule(SubscribeOnObservable.dispatch, delay, {
              source: source,
              subscriber: subscriber
            });
          }
        }], [{
          key: "create",
          value: function create(source) {
            var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
            var scheduler = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _scheduler_asap__WEBPACK_IMPORTED_MODULE_1__["asap"];
            return new SubscribeOnObservable(source, delay, scheduler);
          }
        }, {
          key: "dispatch",
          value: function dispatch(arg) {
            var source = arg.source,
                subscriber = arg.subscriber;
            return this.add(source.subscribe(subscriber));
          }
        }]);

        return SubscribeOnObservable;
      }(_Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]); //# sourceMappingURL=SubscribeOnObservable.js.map

      /***/

    },

    /***/
    "OIYi": function OIYi(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : English (Canada) [en-ca]
      //! author : Jonathan Abourbih : https://github.com/jonbca
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var enCa = moment.defineLocale('en-ca', {
          months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
          monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
          weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
          weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
          weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
          longDateFormat: {
            LT: 'h:mm A',
            LTS: 'h:mm:ss A',
            L: 'YYYY-MM-DD',
            LL: 'MMMM D, YYYY',
            LLL: 'MMMM D, YYYY h:mm A',
            LLLL: 'dddd, MMMM D, YYYY h:mm A'
          },
          calendar: {
            sameDay: '[Today at] LT',
            nextDay: '[Tomorrow at] LT',
            nextWeek: 'dddd [at] LT',
            lastDay: '[Yesterday at] LT',
            lastWeek: '[Last] dddd [at] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'in %s',
            past: '%s ago',
            s: 'a few seconds',
            ss: '%d seconds',
            m: 'a minute',
            mm: '%d minutes',
            h: 'an hour',
            hh: '%d hours',
            d: 'a day',
            dd: '%d days',
            M: 'a month',
            MM: '%d months',
            y: 'a year',
            yy: '%d years'
          },
          dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
          ordinal: function ordinal(number) {
            var b = number % 10,
                output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';
            return number + output;
          }
        });
        return enCa;
      });
      /***/

    },

    /***/
    "OLod": function OLod(module, exports, __webpack_require__) {
      ;

      (function (root, factory, undef) {
        if (true) {
          // CommonJS
          module.exports = exports = factory(__webpack_require__(
          /*! ./core */
          "Ib8C"), __webpack_require__(
          /*! ./evpkdf */
          "K3mO"));
        } else {}
      })(this, function (CryptoJS) {
        /**
         * Cipher core components.
         */
        CryptoJS.lib.Cipher || function (undefined) {
          // Shortcuts
          var C = CryptoJS;
          var C_lib = C.lib;
          var Base = C_lib.Base;
          var WordArray = C_lib.WordArray;
          var BufferedBlockAlgorithm = C_lib.BufferedBlockAlgorithm;
          var C_enc = C.enc;
          var Utf8 = C_enc.Utf8;
          var Base64 = C_enc.Base64;
          var C_algo = C.algo;
          var EvpKDF = C_algo.EvpKDF;
          /**
           * Abstract base cipher template.
           *
           * @property {number} keySize This cipher's key size. Default: 4 (128 bits)
           * @property {number} ivSize This cipher's IV size. Default: 4 (128 bits)
           * @property {number} _ENC_XFORM_MODE A constant representing encryption mode.
           * @property {number} _DEC_XFORM_MODE A constant representing decryption mode.
           */

          var Cipher = C_lib.Cipher = BufferedBlockAlgorithm.extend({
            /**
             * Configuration options.
             *
             * @property {WordArray} iv The IV to use for this operation.
             */
            cfg: Base.extend(),

            /**
             * Creates this cipher in encryption mode.
             *
             * @param {WordArray} key The key.
             * @param {Object} cfg (Optional) The configuration options to use for this operation.
             *
             * @return {Cipher} A cipher instance.
             *
             * @static
             *
             * @example
             *
             *     var cipher = CryptoJS.algo.AES.createEncryptor(keyWordArray, { iv: ivWordArray });
             */
            createEncryptor: function createEncryptor(key, cfg) {
              return this.create(this._ENC_XFORM_MODE, key, cfg);
            },

            /**
             * Creates this cipher in decryption mode.
             *
             * @param {WordArray} key The key.
             * @param {Object} cfg (Optional) The configuration options to use for this operation.
             *
             * @return {Cipher} A cipher instance.
             *
             * @static
             *
             * @example
             *
             *     var cipher = CryptoJS.algo.AES.createDecryptor(keyWordArray, { iv: ivWordArray });
             */
            createDecryptor: function createDecryptor(key, cfg) {
              return this.create(this._DEC_XFORM_MODE, key, cfg);
            },

            /**
             * Initializes a newly created cipher.
             *
             * @param {number} xformMode Either the encryption or decryption transormation mode constant.
             * @param {WordArray} key The key.
             * @param {Object} cfg (Optional) The configuration options to use for this operation.
             *
             * @example
             *
             *     var cipher = CryptoJS.algo.AES.create(CryptoJS.algo.AES._ENC_XFORM_MODE, keyWordArray, { iv: ivWordArray });
             */
            init: function init(xformMode, key, cfg) {
              // Apply config defaults
              this.cfg = this.cfg.extend(cfg); // Store transform mode and key

              this._xformMode = xformMode;
              this._key = key; // Set initial values

              this.reset();
            },

            /**
             * Resets this cipher to its initial state.
             *
             * @example
             *
             *     cipher.reset();
             */
            reset: function reset() {
              // Reset data buffer
              BufferedBlockAlgorithm.reset.call(this); // Perform concrete-cipher logic

              this._doReset();
            },

            /**
             * Adds data to be encrypted or decrypted.
             *
             * @param {WordArray|string} dataUpdate The data to encrypt or decrypt.
             *
             * @return {WordArray} The data after processing.
             *
             * @example
             *
             *     var encrypted = cipher.process('data');
             *     var encrypted = cipher.process(wordArray);
             */
            process: function process(dataUpdate) {
              // Append
              this._append(dataUpdate); // Process available blocks


              return this._process();
            },

            /**
             * Finalizes the encryption or decryption process.
             * Note that the finalize operation is effectively a destructive, read-once operation.
             *
             * @param {WordArray|string} dataUpdate The final data to encrypt or decrypt.
             *
             * @return {WordArray} The data after final processing.
             *
             * @example
             *
             *     var encrypted = cipher.finalize();
             *     var encrypted = cipher.finalize('data');
             *     var encrypted = cipher.finalize(wordArray);
             */
            finalize: function finalize(dataUpdate) {
              // Final data update
              if (dataUpdate) {
                this._append(dataUpdate);
              } // Perform concrete-cipher logic


              var finalProcessedData = this._doFinalize();

              return finalProcessedData;
            },
            keySize: 128 / 32,
            ivSize: 128 / 32,
            _ENC_XFORM_MODE: 1,
            _DEC_XFORM_MODE: 2,

            /**
             * Creates shortcut functions to a cipher's object interface.
             *
             * @param {Cipher} cipher The cipher to create a helper for.
             *
             * @return {Object} An object with encrypt and decrypt shortcut functions.
             *
             * @static
             *
             * @example
             *
             *     var AES = CryptoJS.lib.Cipher._createHelper(CryptoJS.algo.AES);
             */
            _createHelper: function () {
              function selectCipherStrategy(key) {
                if (typeof key == 'string') {
                  return PasswordBasedCipher;
                } else {
                  return SerializableCipher;
                }
              }

              return function (cipher) {
                return {
                  encrypt: function encrypt(message, key, cfg) {
                    return selectCipherStrategy(key).encrypt(cipher, message, key, cfg);
                  },
                  decrypt: function decrypt(ciphertext, key, cfg) {
                    return selectCipherStrategy(key).decrypt(cipher, ciphertext, key, cfg);
                  }
                };
              };
            }()
          });
          /**
           * Abstract base stream cipher template.
           *
           * @property {number} blockSize The number of 32-bit words this cipher operates on. Default: 1 (32 bits)
           */

          var StreamCipher = C_lib.StreamCipher = Cipher.extend({
            _doFinalize: function _doFinalize() {
              // Process partial blocks
              var finalProcessedBlocks = this._process(!!'flush');

              return finalProcessedBlocks;
            },
            blockSize: 1
          });
          /**
           * Mode namespace.
           */

          var C_mode = C.mode = {};
          /**
           * Abstract base block cipher mode template.
           */

          var BlockCipherMode = C_lib.BlockCipherMode = Base.extend({
            /**
             * Creates this mode for encryption.
             *
             * @param {Cipher} cipher A block cipher instance.
             * @param {Array} iv The IV words.
             *
             * @static
             *
             * @example
             *
             *     var mode = CryptoJS.mode.CBC.createEncryptor(cipher, iv.words);
             */
            createEncryptor: function createEncryptor(cipher, iv) {
              return this.Encryptor.create(cipher, iv);
            },

            /**
             * Creates this mode for decryption.
             *
             * @param {Cipher} cipher A block cipher instance.
             * @param {Array} iv The IV words.
             *
             * @static
             *
             * @example
             *
             *     var mode = CryptoJS.mode.CBC.createDecryptor(cipher, iv.words);
             */
            createDecryptor: function createDecryptor(cipher, iv) {
              return this.Decryptor.create(cipher, iv);
            },

            /**
             * Initializes a newly created mode.
             *
             * @param {Cipher} cipher A block cipher instance.
             * @param {Array} iv The IV words.
             *
             * @example
             *
             *     var mode = CryptoJS.mode.CBC.Encryptor.create(cipher, iv.words);
             */
            init: function init(cipher, iv) {
              this._cipher = cipher;
              this._iv = iv;
            }
          });
          /**
           * Cipher Block Chaining mode.
           */

          var CBC = C_mode.CBC = function () {
            /**
             * Abstract base CBC mode.
             */
            var CBC = BlockCipherMode.extend();
            /**
             * CBC encryptor.
             */

            CBC.Encryptor = CBC.extend({
              /**
               * Processes the data block at offset.
               *
               * @param {Array} words The data words to operate on.
               * @param {number} offset The offset where the block starts.
               *
               * @example
               *
               *     mode.processBlock(data.words, offset);
               */
              processBlock: function processBlock(words, offset) {
                // Shortcuts
                var cipher = this._cipher;
                var blockSize = cipher.blockSize; // XOR and encrypt

                xorBlock.call(this, words, offset, blockSize);
                cipher.encryptBlock(words, offset); // Remember this block to use with next block

                this._prevBlock = words.slice(offset, offset + blockSize);
              }
            });
            /**
             * CBC decryptor.
             */

            CBC.Decryptor = CBC.extend({
              /**
               * Processes the data block at offset.
               *
               * @param {Array} words The data words to operate on.
               * @param {number} offset The offset where the block starts.
               *
               * @example
               *
               *     mode.processBlock(data.words, offset);
               */
              processBlock: function processBlock(words, offset) {
                // Shortcuts
                var cipher = this._cipher;
                var blockSize = cipher.blockSize; // Remember this block to use with next block

                var thisBlock = words.slice(offset, offset + blockSize); // Decrypt and XOR

                cipher.decryptBlock(words, offset);
                xorBlock.call(this, words, offset, blockSize); // This block becomes the previous block

                this._prevBlock = thisBlock;
              }
            });

            function xorBlock(words, offset, blockSize) {
              var block; // Shortcut

              var iv = this._iv; // Choose mixing block

              if (iv) {
                block = iv; // Remove IV for subsequent blocks

                this._iv = undefined;
              } else {
                block = this._prevBlock;
              } // XOR blocks


              for (var i = 0; i < blockSize; i++) {
                words[offset + i] ^= block[i];
              }
            }

            return CBC;
          }();
          /**
           * Padding namespace.
           */


          var C_pad = C.pad = {};
          /**
           * PKCS #5/7 padding strategy.
           */

          var Pkcs7 = C_pad.Pkcs7 = {
            /**
             * Pads data using the algorithm defined in PKCS #5/7.
             *
             * @param {WordArray} data The data to pad.
             * @param {number} blockSize The multiple that the data should be padded to.
             *
             * @static
             *
             * @example
             *
             *     CryptoJS.pad.Pkcs7.pad(wordArray, 4);
             */
            pad: function pad(data, blockSize) {
              // Shortcut
              var blockSizeBytes = blockSize * 4; // Count padding bytes

              var nPaddingBytes = blockSizeBytes - data.sigBytes % blockSizeBytes; // Create padding word

              var paddingWord = nPaddingBytes << 24 | nPaddingBytes << 16 | nPaddingBytes << 8 | nPaddingBytes; // Create padding

              var paddingWords = [];

              for (var i = 0; i < nPaddingBytes; i += 4) {
                paddingWords.push(paddingWord);
              }

              var padding = WordArray.create(paddingWords, nPaddingBytes); // Add padding

              data.concat(padding);
            },

            /**
             * Unpads data that had been padded using the algorithm defined in PKCS #5/7.
             *
             * @param {WordArray} data The data to unpad.
             *
             * @static
             *
             * @example
             *
             *     CryptoJS.pad.Pkcs7.unpad(wordArray);
             */
            unpad: function unpad(data) {
              // Get number of padding bytes from last byte
              var nPaddingBytes = data.words[data.sigBytes - 1 >>> 2] & 0xff; // Remove padding

              data.sigBytes -= nPaddingBytes;
            }
          };
          /**
           * Abstract base block cipher template.
           *
           * @property {number} blockSize The number of 32-bit words this cipher operates on. Default: 4 (128 bits)
           */

          var BlockCipher = C_lib.BlockCipher = Cipher.extend({
            /**
             * Configuration options.
             *
             * @property {Mode} mode The block mode to use. Default: CBC
             * @property {Padding} padding The padding strategy to use. Default: Pkcs7
             */
            cfg: Cipher.cfg.extend({
              mode: CBC,
              padding: Pkcs7
            }),
            reset: function reset() {
              var modeCreator; // Reset cipher

              Cipher.reset.call(this); // Shortcuts

              var cfg = this.cfg;
              var iv = cfg.iv;
              var mode = cfg.mode; // Reset block mode

              if (this._xformMode == this._ENC_XFORM_MODE) {
                modeCreator = mode.createEncryptor;
              } else
                /* if (this._xformMode == this._DEC_XFORM_MODE) */
                {
                  modeCreator = mode.createDecryptor; // Keep at least one block in the buffer for unpadding

                  this._minBufferSize = 1;
                }

              if (this._mode && this._mode.__creator == modeCreator) {
                this._mode.init(this, iv && iv.words);
              } else {
                this._mode = modeCreator.call(mode, this, iv && iv.words);
                this._mode.__creator = modeCreator;
              }
            },
            _doProcessBlock: function _doProcessBlock(words, offset) {
              this._mode.processBlock(words, offset);
            },
            _doFinalize: function _doFinalize() {
              var finalProcessedBlocks; // Shortcut

              var padding = this.cfg.padding; // Finalize

              if (this._xformMode == this._ENC_XFORM_MODE) {
                // Pad data
                padding.pad(this._data, this.blockSize); // Process final blocks

                finalProcessedBlocks = this._process(!!'flush');
              } else
                /* if (this._xformMode == this._DEC_XFORM_MODE) */
                {
                  // Process final blocks
                  finalProcessedBlocks = this._process(!!'flush'); // Unpad data

                  padding.unpad(finalProcessedBlocks);
                }

              return finalProcessedBlocks;
            },
            blockSize: 128 / 32
          });
          /**
           * A collection of cipher parameters.
           *
           * @property {WordArray} ciphertext The raw ciphertext.
           * @property {WordArray} key The key to this ciphertext.
           * @property {WordArray} iv The IV used in the ciphering operation.
           * @property {WordArray} salt The salt used with a key derivation function.
           * @property {Cipher} algorithm The cipher algorithm.
           * @property {Mode} mode The block mode used in the ciphering operation.
           * @property {Padding} padding The padding scheme used in the ciphering operation.
           * @property {number} blockSize The block size of the cipher.
           * @property {Format} formatter The default formatting strategy to convert this cipher params object to a string.
           */

          var CipherParams = C_lib.CipherParams = Base.extend({
            /**
             * Initializes a newly created cipher params object.
             *
             * @param {Object} cipherParams An object with any of the possible cipher parameters.
             *
             * @example
             *
             *     var cipherParams = CryptoJS.lib.CipherParams.create({
             *         ciphertext: ciphertextWordArray,
             *         key: keyWordArray,
             *         iv: ivWordArray,
             *         salt: saltWordArray,
             *         algorithm: CryptoJS.algo.AES,
             *         mode: CryptoJS.mode.CBC,
             *         padding: CryptoJS.pad.PKCS7,
             *         blockSize: 4,
             *         formatter: CryptoJS.format.OpenSSL
             *     });
             */
            init: function init(cipherParams) {
              this.mixIn(cipherParams);
            },

            /**
             * Converts this cipher params object to a string.
             *
             * @param {Format} formatter (Optional) The formatting strategy to use.
             *
             * @return {string} The stringified cipher params.
             *
             * @throws Error If neither the formatter nor the default formatter is set.
             *
             * @example
             *
             *     var string = cipherParams + '';
             *     var string = cipherParams.toString();
             *     var string = cipherParams.toString(CryptoJS.format.OpenSSL);
             */
            toString: function toString(formatter) {
              return (formatter || this.formatter).stringify(this);
            }
          });
          /**
           * Format namespace.
           */

          var C_format = C.format = {};
          /**
           * OpenSSL formatting strategy.
           */

          var OpenSSLFormatter = C_format.OpenSSL = {
            /**
             * Converts a cipher params object to an OpenSSL-compatible string.
             *
             * @param {CipherParams} cipherParams The cipher params object.
             *
             * @return {string} The OpenSSL-compatible string.
             *
             * @static
             *
             * @example
             *
             *     var openSSLString = CryptoJS.format.OpenSSL.stringify(cipherParams);
             */
            stringify: function stringify(cipherParams) {
              var wordArray; // Shortcuts

              var ciphertext = cipherParams.ciphertext;
              var salt = cipherParams.salt; // Format

              if (salt) {
                wordArray = WordArray.create([0x53616c74, 0x65645f5f]).concat(salt).concat(ciphertext);
              } else {
                wordArray = ciphertext;
              }

              return wordArray.toString(Base64);
            },

            /**
             * Converts an OpenSSL-compatible string to a cipher params object.
             *
             * @param {string} openSSLStr The OpenSSL-compatible string.
             *
             * @return {CipherParams} The cipher params object.
             *
             * @static
             *
             * @example
             *
             *     var cipherParams = CryptoJS.format.OpenSSL.parse(openSSLString);
             */
            parse: function parse(openSSLStr) {
              var salt; // Parse base64

              var ciphertext = Base64.parse(openSSLStr); // Shortcut

              var ciphertextWords = ciphertext.words; // Test for salt

              if (ciphertextWords[0] == 0x53616c74 && ciphertextWords[1] == 0x65645f5f) {
                // Extract salt
                salt = WordArray.create(ciphertextWords.slice(2, 4)); // Remove salt from ciphertext

                ciphertextWords.splice(0, 4);
                ciphertext.sigBytes -= 16;
              }

              return CipherParams.create({
                ciphertext: ciphertext,
                salt: salt
              });
            }
          };
          /**
           * A cipher wrapper that returns ciphertext as a serializable cipher params object.
           */

          var SerializableCipher = C_lib.SerializableCipher = Base.extend({
            /**
             * Configuration options.
             *
             * @property {Formatter} format The formatting strategy to convert cipher param objects to and from a string. Default: OpenSSL
             */
            cfg: Base.extend({
              format: OpenSSLFormatter
            }),

            /**
             * Encrypts a message.
             *
             * @param {Cipher} cipher The cipher algorithm to use.
             * @param {WordArray|string} message The message to encrypt.
             * @param {WordArray} key The key.
             * @param {Object} cfg (Optional) The configuration options to use for this operation.
             *
             * @return {CipherParams} A cipher params object.
             *
             * @static
             *
             * @example
             *
             *     var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key);
             *     var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv });
             *     var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv, format: CryptoJS.format.OpenSSL });
             */
            encrypt: function encrypt(cipher, message, key, cfg) {
              // Apply config defaults
              cfg = this.cfg.extend(cfg); // Encrypt

              var encryptor = cipher.createEncryptor(key, cfg);
              var ciphertext = encryptor.finalize(message); // Shortcut

              var cipherCfg = encryptor.cfg; // Create and return serializable cipher params

              return CipherParams.create({
                ciphertext: ciphertext,
                key: key,
                iv: cipherCfg.iv,
                algorithm: cipher,
                mode: cipherCfg.mode,
                padding: cipherCfg.padding,
                blockSize: cipher.blockSize,
                formatter: cfg.format
              });
            },

            /**
             * Decrypts serialized ciphertext.
             *
             * @param {Cipher} cipher The cipher algorithm to use.
             * @param {CipherParams|string} ciphertext The ciphertext to decrypt.
             * @param {WordArray} key The key.
             * @param {Object} cfg (Optional) The configuration options to use for this operation.
             *
             * @return {WordArray} The plaintext.
             *
             * @static
             *
             * @example
             *
             *     var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, key, { iv: iv, format: CryptoJS.format.OpenSSL });
             *     var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, key, { iv: iv, format: CryptoJS.format.OpenSSL });
             */
            decrypt: function decrypt(cipher, ciphertext, key, cfg) {
              // Apply config defaults
              cfg = this.cfg.extend(cfg); // Convert string to CipherParams

              ciphertext = this._parse(ciphertext, cfg.format); // Decrypt

              var plaintext = cipher.createDecryptor(key, cfg).finalize(ciphertext.ciphertext);
              return plaintext;
            },

            /**
             * Converts serialized ciphertext to CipherParams,
             * else assumed CipherParams already and returns ciphertext unchanged.
             *
             * @param {CipherParams|string} ciphertext The ciphertext.
             * @param {Formatter} format The formatting strategy to use to parse serialized ciphertext.
             *
             * @return {CipherParams} The unserialized ciphertext.
             *
             * @static
             *
             * @example
             *
             *     var ciphertextParams = CryptoJS.lib.SerializableCipher._parse(ciphertextStringOrParams, format);
             */
            _parse: function _parse(ciphertext, format) {
              if (typeof ciphertext == 'string') {
                return format.parse(ciphertext, this);
              } else {
                return ciphertext;
              }
            }
          });
          /**
           * Key derivation function namespace.
           */

          var C_kdf = C.kdf = {};
          /**
           * OpenSSL key derivation function.
           */

          var OpenSSLKdf = C_kdf.OpenSSL = {
            /**
             * Derives a key and IV from a password.
             *
             * @param {string} password The password to derive from.
             * @param {number} keySize The size in words of the key to generate.
             * @param {number} ivSize The size in words of the IV to generate.
             * @param {WordArray|string} salt (Optional) A 64-bit salt to use. If omitted, a salt will be generated randomly.
             *
             * @return {CipherParams} A cipher params object with the key, IV, and salt.
             *
             * @static
             *
             * @example
             *
             *     var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);
             *     var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
             */
            execute: function execute(password, keySize, ivSize, salt) {
              // Generate random salt
              if (!salt) {
                salt = WordArray.random(64 / 8);
              } // Derive key and IV


              var key = EvpKDF.create({
                keySize: keySize + ivSize
              }).compute(password, salt); // Separate key and IV

              var iv = WordArray.create(key.words.slice(keySize), ivSize * 4);
              key.sigBytes = keySize * 4; // Return params

              return CipherParams.create({
                key: key,
                iv: iv,
                salt: salt
              });
            }
          };
          /**
           * A serializable cipher wrapper that derives the key from a password,
           * and returns ciphertext as a serializable cipher params object.
           */

          var PasswordBasedCipher = C_lib.PasswordBasedCipher = SerializableCipher.extend({
            /**
             * Configuration options.
             *
             * @property {KDF} kdf The key derivation function to use to generate a key and IV from a password. Default: OpenSSL
             */
            cfg: SerializableCipher.cfg.extend({
              kdf: OpenSSLKdf
            }),

            /**
             * Encrypts a message using a password.
             *
             * @param {Cipher} cipher The cipher algorithm to use.
             * @param {WordArray|string} message The message to encrypt.
             * @param {string} password The password.
             * @param {Object} cfg (Optional) The configuration options to use for this operation.
             *
             * @return {CipherParams} A cipher params object.
             *
             * @static
             *
             * @example
             *
             *     var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password');
             *     var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password', { format: CryptoJS.format.OpenSSL });
             */
            encrypt: function encrypt(cipher, message, password, cfg) {
              // Apply config defaults
              cfg = this.cfg.extend(cfg); // Derive key and other params

              var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize); // Add IV to config

              cfg.iv = derivedParams.iv; // Encrypt

              var ciphertext = SerializableCipher.encrypt.call(this, cipher, message, derivedParams.key, cfg); // Mix in derived params

              ciphertext.mixIn(derivedParams);
              return ciphertext;
            },

            /**
             * Decrypts serialized ciphertext using a password.
             *
             * @param {Cipher} cipher The cipher algorithm to use.
             * @param {CipherParams|string} ciphertext The ciphertext to decrypt.
             * @param {string} password The password.
             * @param {Object} cfg (Optional) The configuration options to use for this operation.
             *
             * @return {WordArray} The plaintext.
             *
             * @static
             *
             * @example
             *
             *     var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, 'password', { format: CryptoJS.format.OpenSSL });
             *     var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, 'password', { format: CryptoJS.format.OpenSSL });
             */
            decrypt: function decrypt(cipher, ciphertext, password, cfg) {
              // Apply config defaults
              cfg = this.cfg.extend(cfg); // Convert string to CipherParams

              ciphertext = this._parse(ciphertext, cfg.format); // Derive key and other params

              var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, ciphertext.salt); // Add IV to config

              cfg.iv = derivedParams.iv; // Decrypt

              var plaintext = SerializableCipher.decrypt.call(this, cipher, ciphertext, derivedParams.key, cfg);
              return plaintext;
            }
          });
        }();
      });
      /***/

    },

    /***/
    "OQgR": function OQgR(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "groupBy", function () {
        return groupBy;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "GroupedObservable", function () {
        return GroupedObservable;
      });
      /* harmony import */


      var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Subscriber */
      "7o/Q");
      /* harmony import */


      var _Subscription__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../Subscription */
      "quSY");
      /* harmony import */


      var _Observable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../Observable */
      "HDdC");
      /* harmony import */


      var _Subject__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../Subject */
      "XNiG");

      function groupBy(keySelector, elementSelector, durationSelector, subjectSelector) {
        return function (source) {
          return source.lift(new GroupByOperator(keySelector, elementSelector, durationSelector, subjectSelector));
        };
      }

      var GroupByOperator = /*#__PURE__*/function () {
        function GroupByOperator(keySelector, elementSelector, durationSelector, subjectSelector) {
          _classCallCheck2(this, GroupByOperator);

          this.keySelector = keySelector;
          this.elementSelector = elementSelector;
          this.durationSelector = durationSelector;
          this.subjectSelector = subjectSelector;
        }

        _createClass2(GroupByOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            return source.subscribe(new GroupBySubscriber(subscriber, this.keySelector, this.elementSelector, this.durationSelector, this.subjectSelector));
          }
        }]);

        return GroupByOperator;
      }();

      var GroupBySubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_20) {
        _inherits2(GroupBySubscriber, _Subscriber__WEBPACK_20);

        var _super267 = _createSuper2(GroupBySubscriber);

        function GroupBySubscriber(destination, keySelector, elementSelector, durationSelector, subjectSelector) {
          var _this567;

          _classCallCheck2(this, GroupBySubscriber);

          _this567 = _super267.call(this, destination);
          _this567.keySelector = keySelector;
          _this567.elementSelector = elementSelector;
          _this567.durationSelector = durationSelector;
          _this567.subjectSelector = subjectSelector;
          _this567.groups = null;
          _this567.attemptedToUnsubscribe = false;
          _this567.count = 0;
          return _this567;
        }

        _createClass2(GroupBySubscriber, [{
          key: "_next",
          value: function _next(value) {
            var key;

            try {
              key = this.keySelector(value);
            } catch (err) {
              this.error(err);
              return;
            }

            this._group(value, key);
          }
        }, {
          key: "_group",
          value: function _group(value, key) {
            var groups = this.groups;

            if (!groups) {
              groups = this.groups = new Map();
            }

            var group = groups.get(key);
            var element;

            if (this.elementSelector) {
              try {
                element = this.elementSelector(value);
              } catch (err) {
                this.error(err);
              }
            } else {
              element = value;
            }

            if (!group) {
              group = this.subjectSelector ? this.subjectSelector() : new _Subject__WEBPACK_IMPORTED_MODULE_3__["Subject"]();
              groups.set(key, group);
              var groupedObservable = new GroupedObservable(key, group, this);
              this.destination.next(groupedObservable);

              if (this.durationSelector) {
                var duration;

                try {
                  duration = this.durationSelector(new GroupedObservable(key, group));
                } catch (err) {
                  this.error(err);
                  return;
                }

                this.add(duration.subscribe(new GroupDurationSubscriber(key, group, this)));
              }
            }

            if (!group.closed) {
              group.next(element);
            }
          }
        }, {
          key: "_error",
          value: function _error(err) {
            var groups = this.groups;

            if (groups) {
              groups.forEach(function (group, key) {
                group.error(err);
              });
              groups.clear();
            }

            this.destination.error(err);
          }
        }, {
          key: "_complete",
          value: function _complete() {
            var groups = this.groups;

            if (groups) {
              groups.forEach(function (group, key) {
                group.complete();
              });
              groups.clear();
            }

            this.destination.complete();
          }
        }, {
          key: "removeGroup",
          value: function removeGroup(key) {
            this.groups["delete"](key);
          }
        }, {
          key: "unsubscribe",
          value: function unsubscribe() {
            if (!this.closed) {
              this.attemptedToUnsubscribe = true;

              if (this.count === 0) {
                _get2(_getPrototypeOf2(GroupBySubscriber.prototype), "unsubscribe", this).call(this);
              }
            }
          }
        }]);

        return GroupBySubscriber;
      }(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]);

      var GroupDurationSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_21) {
        _inherits2(GroupDurationSubscriber, _Subscriber__WEBPACK_21);

        var _super268 = _createSuper2(GroupDurationSubscriber);

        function GroupDurationSubscriber(key, group, parent) {
          var _this568;

          _classCallCheck2(this, GroupDurationSubscriber);

          _this568 = _super268.call(this, group);
          _this568.key = key;
          _this568.group = group;
          _this568.parent = parent;
          return _this568;
        }

        _createClass2(GroupDurationSubscriber, [{
          key: "_next",
          value: function _next(value) {
            this.complete();
          }
        }, {
          key: "_unsubscribe",
          value: function _unsubscribe() {
            var parent = this.parent,
                key = this.key;
            this.key = this.parent = null;

            if (parent) {
              parent.removeGroup(key);
            }
          }
        }]);

        return GroupDurationSubscriber;
      }(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]);

      var GroupedObservable = /*#__PURE__*/function (_Observable__WEBPACK_3) {
        _inherits2(GroupedObservable, _Observable__WEBPACK_3);

        var _super269 = _createSuper2(GroupedObservable);

        function GroupedObservable(key, groupSubject, refCountSubscription) {
          var _this569;

          _classCallCheck2(this, GroupedObservable);

          _this569 = _super269.call(this);
          _this569.key = key;
          _this569.groupSubject = groupSubject;
          _this569.refCountSubscription = refCountSubscription;
          return _this569;
        }

        _createClass2(GroupedObservable, [{
          key: "_subscribe",
          value: function _subscribe(subscriber) {
            var subscription = new _Subscription__WEBPACK_IMPORTED_MODULE_1__["Subscription"]();
            var refCountSubscription = this.refCountSubscription,
                groupSubject = this.groupSubject;

            if (refCountSubscription && !refCountSubscription.closed) {
              subscription.add(new InnerRefCountSubscription(refCountSubscription));
            }

            subscription.add(groupSubject.subscribe(subscriber));
            return subscription;
          }
        }]);

        return GroupedObservable;
      }(_Observable__WEBPACK_IMPORTED_MODULE_2__["Observable"]);

      var InnerRefCountSubscription = /*#__PURE__*/function (_Subscription__WEBPAC3) {
        _inherits2(InnerRefCountSubscription, _Subscription__WEBPAC3);

        var _super270 = _createSuper2(InnerRefCountSubscription);

        function InnerRefCountSubscription(parent) {
          var _this570;

          _classCallCheck2(this, InnerRefCountSubscription);

          _this570 = _super270.call(this);
          _this570.parent = parent;
          parent.count++;
          return _this570;
        }

        _createClass2(InnerRefCountSubscription, [{
          key: "unsubscribe",
          value: function unsubscribe() {
            var parent = this.parent;

            if (!parent.closed && !this.closed) {
              _get2(_getPrototypeOf2(InnerRefCountSubscription.prototype), "unsubscribe", this).call(this);

              parent.count -= 1;

              if (parent.count === 0 && parent.attemptedToUnsubscribe) {
                parent.unsubscribe();
              }
            }
          }
        }]);

        return InnerRefCountSubscription;
      }(_Subscription__WEBPACK_IMPORTED_MODULE_1__["Subscription"]); //# sourceMappingURL=groupBy.js.map

      /***/

    },

    /***/
    "OaSA": function OaSA(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatCell", function () {
        return MatCell;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatCellDef", function () {
        return MatCellDef;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatColumnDef", function () {
        return MatColumnDef;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatFooterCell", function () {
        return MatFooterCell;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatFooterCellDef", function () {
        return MatFooterCellDef;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatFooterRow", function () {
        return MatFooterRow;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatFooterRowDef", function () {
        return MatFooterRowDef;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatHeaderCell", function () {
        return MatHeaderCell;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatHeaderCellDef", function () {
        return MatHeaderCellDef;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatHeaderRow", function () {
        return MatHeaderRow;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatHeaderRowDef", function () {
        return MatHeaderRowDef;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatNoDataRow", function () {
        return MatNoDataRow;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatRow", function () {
        return MatRow;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatRowDef", function () {
        return MatRowDef;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatTable", function () {
        return MatTable;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatTableDataSource", function () {
        return MatTableDataSource;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatTableModule", function () {
        return MatTableModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatTextColumn", function () {
        return MatTextColumn;
      });
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /* harmony import */


      var _angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/cdk/table */
      "GXRp");
      /* harmony import */


      var _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! @angular/cdk/collections */
      "CtHx");
      /* harmony import */


      var _angular_material_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! @angular/material/core */
      "UhP/");
      /* harmony import */


      var _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! @angular/cdk/coercion */
      "8LU1");
      /* harmony import */


      var rxjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! rxjs */
      "qCKp");
      /* harmony import */


      var rxjs_operators__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
      /*! rxjs/operators */
      "kU1M");
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Wrapper for the CdkTable with Material design styles.
       */


      var _c0 = [[["caption"]], [["colgroup"], ["col"]]];
      var _c1 = ["caption", "colgroup, col"];

      function MatTextColumn_th_1_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "th", 3);

          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);

          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        }

        if (rf & 2) {
          var ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();

          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstyleProp"]("text-align", ctx_r0.justify);

          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);

          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r0.headerText, " ");
        }
      }

      function MatTextColumn_td_2_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "td", 4);

          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);

          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
        }

        if (rf & 2) {
          var data_r2 = ctx.$implicit;

          var ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();

          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstyleProp"]("text-align", ctx_r1.justify);

          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);

          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r1.dataAccessor(data_r2, ctx_r1.name), " ");
        }
      }

      var MatTable = /*#__PURE__*/function (_angular_cdk_table__W) {
        _inherits2(MatTable, _angular_cdk_table__W);

        var _super271 = _createSuper2(MatTable);

        function MatTable() {
          var _this571;

          _classCallCheck2(this, MatTable);

          _this571 = _super271.apply(this, arguments);
          /** Overrides the sticky CSS class set by the `CdkTable`. */

          _this571.stickyCssClass = 'mat-table-sticky';
          /** Overrides the need to add position: sticky on every sticky cell element in `CdkTable`. */

          _this571.needsPositionStickyOnElement = false;
          return _this571;
        }

        return MatTable;
      }(_angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["CdkTable"]);

      MatTable.ɵfac = function MatTable_Factory(t) {
        return ɵMatTable_BaseFactory(t || MatTable);
      };

      MatTable.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
        type: MatTable,
        selectors: [["mat-table"], ["table", "mat-table", ""]],
        hostAttrs: [1, "mat-table"],
        hostVars: 2,
        hostBindings: function MatTable_HostBindings(rf, ctx) {
          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("mat-table-fixed-layout", ctx.fixedLayout);
          }
        },
        exportAs: ["matTable"],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([// TODO(michaeljamesparsons) Abstract the view repeater strategy to a directive API so this code
        //  is only included in the build if used.
        {
          provide: _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_2__["_VIEW_REPEATER_STRATEGY"],
          useClass: _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_2__["_DisposeViewRepeaterStrategy"]
        }, {
          provide: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["CdkTable"],
          useExisting: MatTable
        }, {
          provide: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["CDK_TABLE"],
          useExisting: MatTable
        }, {
          provide: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["_COALESCED_STYLE_SCHEDULER"],
          useClass: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["_CoalescedStyleScheduler"]
        }]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]],
        ngContentSelectors: _c1,
        decls: 6,
        vars: 0,
        consts: [["headerRowOutlet", ""], ["rowOutlet", ""], ["noDataRowOutlet", ""], ["footerRowOutlet", ""]],
        template: function MatTable_Template(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojectionDef"](_c0);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojection"](0);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojection"](1, 1);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainer"](2, 0);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainer"](3, 1);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainer"](4, 2);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainer"](5, 3);
          }
        },
        directives: [_angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["HeaderRowOutlet"], _angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["DataRowOutlet"], _angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["NoDataRowOutlet"], _angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["FooterRowOutlet"]],
        styles: ["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:\"\"}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky;position:sticky}.mat-table-fixed-layout{table-layout:fixed}\n"],
        encapsulation: 2
      });

      var ɵMatTable_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](MatTable);
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatTable, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
          args: [{
            selector: 'mat-table, table[mat-table]',
            exportAs: 'matTable',
            template: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["CDK_TABLE_TEMPLATE"],
            host: {
              'class': 'mat-table',
              '[class.mat-table-fixed-layout]': 'fixedLayout'
            },
            providers: [// TODO(michaeljamesparsons) Abstract the view repeater strategy to a directive API so this code
            //  is only included in the build if used.
            {
              provide: _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_2__["_VIEW_REPEATER_STRATEGY"],
              useClass: _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_2__["_DisposeViewRepeaterStrategy"]
            }, {
              provide: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["CdkTable"],
              useExisting: MatTable
            }, {
              provide: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["CDK_TABLE"],
              useExisting: MatTable
            }, {
              provide: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["_COALESCED_STYLE_SCHEDULER"],
              useClass: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["_CoalescedStyleScheduler"]
            }],
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            // See note on CdkTable for explanation on why this uses the default change detection strategy.
            // tslint:disable-next-line:validate-decorators
            changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].Default,
            styles: ["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:\"\"}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky;position:sticky}.mat-table-fixed-layout{table-layout:fixed}\n"]
          }]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Cell definition for the mat-table.
       * Captures the template of a column's data row cell as well as cell-specific properties.
       */


      var MatCellDef = /*#__PURE__*/function (_angular_cdk_table__W2) {
        _inherits2(MatCellDef, _angular_cdk_table__W2);

        var _super272 = _createSuper2(MatCellDef);

        function MatCellDef() {
          _classCallCheck2(this, MatCellDef);

          return _super272.apply(this, arguments);
        }

        return MatCellDef;
      }(_angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["CdkCellDef"]);

      MatCellDef.ɵfac = function MatCellDef_Factory(t) {
        return ɵMatCellDef_BaseFactory(t || MatCellDef);
      };

      MatCellDef.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: MatCellDef,
        selectors: [["", "matCellDef", ""]],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([{
          provide: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["CdkCellDef"],
          useExisting: MatCellDef
        }]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
      });

      var ɵMatCellDef_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](MatCellDef);
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatCellDef, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
          args: [{
            selector: '[matCellDef]',
            providers: [{
              provide: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["CdkCellDef"],
              useExisting: MatCellDef
            }]
          }]
        }], null, null);
      })();
      /**
       * Header cell definition for the mat-table.
       * Captures the template of a column's header cell and as well as cell-specific properties.
       */


      var MatHeaderCellDef = /*#__PURE__*/function (_angular_cdk_table__W3) {
        _inherits2(MatHeaderCellDef, _angular_cdk_table__W3);

        var _super273 = _createSuper2(MatHeaderCellDef);

        function MatHeaderCellDef() {
          _classCallCheck2(this, MatHeaderCellDef);

          return _super273.apply(this, arguments);
        }

        return MatHeaderCellDef;
      }(_angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["CdkHeaderCellDef"]);

      MatHeaderCellDef.ɵfac = function MatHeaderCellDef_Factory(t) {
        return ɵMatHeaderCellDef_BaseFactory(t || MatHeaderCellDef);
      };

      MatHeaderCellDef.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: MatHeaderCellDef,
        selectors: [["", "matHeaderCellDef", ""]],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([{
          provide: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["CdkHeaderCellDef"],
          useExisting: MatHeaderCellDef
        }]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
      });

      var ɵMatHeaderCellDef_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](MatHeaderCellDef);
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatHeaderCellDef, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
          args: [{
            selector: '[matHeaderCellDef]',
            providers: [{
              provide: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["CdkHeaderCellDef"],
              useExisting: MatHeaderCellDef
            }]
          }]
        }], null, null);
      })();
      /**
       * Footer cell definition for the mat-table.
       * Captures the template of a column's footer cell and as well as cell-specific properties.
       */


      var MatFooterCellDef = /*#__PURE__*/function (_angular_cdk_table__W4) {
        _inherits2(MatFooterCellDef, _angular_cdk_table__W4);

        var _super274 = _createSuper2(MatFooterCellDef);

        function MatFooterCellDef() {
          _classCallCheck2(this, MatFooterCellDef);

          return _super274.apply(this, arguments);
        }

        return MatFooterCellDef;
      }(_angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["CdkFooterCellDef"]);

      MatFooterCellDef.ɵfac = function MatFooterCellDef_Factory(t) {
        return ɵMatFooterCellDef_BaseFactory(t || MatFooterCellDef);
      };

      MatFooterCellDef.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: MatFooterCellDef,
        selectors: [["", "matFooterCellDef", ""]],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([{
          provide: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["CdkFooterCellDef"],
          useExisting: MatFooterCellDef
        }]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
      });

      var ɵMatFooterCellDef_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](MatFooterCellDef);
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatFooterCellDef, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
          args: [{
            selector: '[matFooterCellDef]',
            providers: [{
              provide: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["CdkFooterCellDef"],
              useExisting: MatFooterCellDef
            }]
          }]
        }], null, null);
      })();
      /**
       * Column definition for the mat-table.
       * Defines a set of cells available for a table column.
       */


      var MatColumnDef = /*#__PURE__*/function (_angular_cdk_table__W5) {
        _inherits2(MatColumnDef, _angular_cdk_table__W5);

        var _super275 = _createSuper2(MatColumnDef);

        function MatColumnDef() {
          _classCallCheck2(this, MatColumnDef);

          return _super275.apply(this, arguments);
        }

        _createClass2(MatColumnDef, [{
          key: "name",
          get:
          /** Unique name for this column. */
          function get() {
            return this._name;
          },
          set: function set(name) {
            this._setNameInput(name);
          }
          /**
           * Add "mat-column-" prefix in addition to "cdk-column-" prefix.
           * In the future, this will only add "mat-column-" and columnCssClassName
           * will change from type string[] to string.
           * @docs-private
           */

        }, {
          key: "_updateColumnCssClassName",
          value: function _updateColumnCssClassName() {
            _get2(_getPrototypeOf2(MatColumnDef.prototype), "_updateColumnCssClassName", this).call(this);

            this._columnCssClassName.push("mat-column-".concat(this.cssClassFriendlyName));
          }
        }]);

        return MatColumnDef;
      }(_angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["CdkColumnDef"]);

      MatColumnDef.ɵfac = function MatColumnDef_Factory(t) {
        return ɵMatColumnDef_BaseFactory(t || MatColumnDef);
      };

      MatColumnDef.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: MatColumnDef,
        selectors: [["", "matColumnDef", ""]],
        inputs: {
          sticky: "sticky",
          name: ["matColumnDef", "name"]
        },
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([{
          provide: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["CdkColumnDef"],
          useExisting: MatColumnDef
        }, {
          provide: 'MAT_SORT_HEADER_COLUMN_DEF',
          useExisting: MatColumnDef
        }]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
      });
      MatColumnDef.propDecorators = {
        name: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
          args: ['matColumnDef']
        }]
      };

      var ɵMatColumnDef_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](MatColumnDef);
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatColumnDef, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
          args: [{
            selector: '[matColumnDef]',
            inputs: ['sticky'],
            providers: [{
              provide: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["CdkColumnDef"],
              useExisting: MatColumnDef
            }, {
              provide: 'MAT_SORT_HEADER_COLUMN_DEF',
              useExisting: MatColumnDef
            }]
          }]
        }], null, {
          name: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
            args: ['matColumnDef']
          }]
        });
      })();
      /** Header cell template container that adds the right classes and role. */


      var MatHeaderCell = /*#__PURE__*/function (_angular_cdk_table__W6) {
        _inherits2(MatHeaderCell, _angular_cdk_table__W6);

        var _super276 = _createSuper2(MatHeaderCell);

        function MatHeaderCell() {
          _classCallCheck2(this, MatHeaderCell);

          return _super276.apply(this, arguments);
        }

        return MatHeaderCell;
      }(_angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["CdkHeaderCell"]);

      MatHeaderCell.ɵfac = function MatHeaderCell_Factory(t) {
        return ɵMatHeaderCell_BaseFactory(t || MatHeaderCell);
      };

      MatHeaderCell.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: MatHeaderCell,
        selectors: [["mat-header-cell"], ["th", "mat-header-cell", ""]],
        hostAttrs: ["role", "columnheader", 1, "mat-header-cell"],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
      });

      var ɵMatHeaderCell_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](MatHeaderCell);
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatHeaderCell, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
          args: [{
            selector: 'mat-header-cell, th[mat-header-cell]',
            host: {
              'class': 'mat-header-cell',
              'role': 'columnheader'
            }
          }]
        }], null, null);
      })();
      /** Footer cell template container that adds the right classes and role. */


      var MatFooterCell = /*#__PURE__*/function (_angular_cdk_table__W7) {
        _inherits2(MatFooterCell, _angular_cdk_table__W7);

        var _super277 = _createSuper2(MatFooterCell);

        function MatFooterCell() {
          _classCallCheck2(this, MatFooterCell);

          return _super277.apply(this, arguments);
        }

        return MatFooterCell;
      }(_angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["CdkFooterCell"]);

      MatFooterCell.ɵfac = function MatFooterCell_Factory(t) {
        return ɵMatFooterCell_BaseFactory(t || MatFooterCell);
      };

      MatFooterCell.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: MatFooterCell,
        selectors: [["mat-footer-cell"], ["td", "mat-footer-cell", ""]],
        hostAttrs: ["role", "gridcell", 1, "mat-footer-cell"],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
      });

      var ɵMatFooterCell_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](MatFooterCell);
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatFooterCell, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
          args: [{
            selector: 'mat-footer-cell, td[mat-footer-cell]',
            host: {
              'class': 'mat-footer-cell',
              'role': 'gridcell'
            }
          }]
        }], null, null);
      })();
      /** Cell template container that adds the right classes and role. */


      var MatCell = /*#__PURE__*/function (_angular_cdk_table__W8) {
        _inherits2(MatCell, _angular_cdk_table__W8);

        var _super278 = _createSuper2(MatCell);

        function MatCell() {
          _classCallCheck2(this, MatCell);

          return _super278.apply(this, arguments);
        }

        return MatCell;
      }(_angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["CdkCell"]);

      MatCell.ɵfac = function MatCell_Factory(t) {
        return ɵMatCell_BaseFactory(t || MatCell);
      };

      MatCell.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: MatCell,
        selectors: [["mat-cell"], ["td", "mat-cell", ""]],
        hostAttrs: ["role", "gridcell", 1, "mat-cell"],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
      });

      var ɵMatCell_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](MatCell);
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatCell, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
          args: [{
            selector: 'mat-cell, td[mat-cell]',
            host: {
              'class': 'mat-cell',
              'role': 'gridcell'
            }
          }]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Header row definition for the mat-table.
       * Captures the header row's template and other header properties such as the columns to display.
       */


      var MatHeaderRowDef = /*#__PURE__*/function (_angular_cdk_table__W9) {
        _inherits2(MatHeaderRowDef, _angular_cdk_table__W9);

        var _super279 = _createSuper2(MatHeaderRowDef);

        function MatHeaderRowDef() {
          _classCallCheck2(this, MatHeaderRowDef);

          return _super279.apply(this, arguments);
        }

        return MatHeaderRowDef;
      }(_angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["CdkHeaderRowDef"]);

      MatHeaderRowDef.ɵfac = function MatHeaderRowDef_Factory(t) {
        return ɵMatHeaderRowDef_BaseFactory(t || MatHeaderRowDef);
      };

      MatHeaderRowDef.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: MatHeaderRowDef,
        selectors: [["", "matHeaderRowDef", ""]],
        inputs: {
          columns: ["matHeaderRowDef", "columns"],
          sticky: ["matHeaderRowDefSticky", "sticky"]
        },
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([{
          provide: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["CdkHeaderRowDef"],
          useExisting: MatHeaderRowDef
        }]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
      });

      var ɵMatHeaderRowDef_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](MatHeaderRowDef);
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatHeaderRowDef, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
          args: [{
            selector: '[matHeaderRowDef]',
            providers: [{
              provide: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["CdkHeaderRowDef"],
              useExisting: MatHeaderRowDef
            }],
            inputs: ['columns: matHeaderRowDef', 'sticky: matHeaderRowDefSticky']
          }]
        }], null, null);
      })();
      /**
       * Footer row definition for the mat-table.
       * Captures the footer row's template and other footer properties such as the columns to display.
       */


      var MatFooterRowDef = /*#__PURE__*/function (_angular_cdk_table__W10) {
        _inherits2(MatFooterRowDef, _angular_cdk_table__W10);

        var _super280 = _createSuper2(MatFooterRowDef);

        function MatFooterRowDef() {
          _classCallCheck2(this, MatFooterRowDef);

          return _super280.apply(this, arguments);
        }

        return MatFooterRowDef;
      }(_angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["CdkFooterRowDef"]);

      MatFooterRowDef.ɵfac = function MatFooterRowDef_Factory(t) {
        return ɵMatFooterRowDef_BaseFactory(t || MatFooterRowDef);
      };

      MatFooterRowDef.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: MatFooterRowDef,
        selectors: [["", "matFooterRowDef", ""]],
        inputs: {
          columns: ["matFooterRowDef", "columns"],
          sticky: ["matFooterRowDefSticky", "sticky"]
        },
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([{
          provide: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["CdkFooterRowDef"],
          useExisting: MatFooterRowDef
        }]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
      });

      var ɵMatFooterRowDef_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](MatFooterRowDef);
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatFooterRowDef, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
          args: [{
            selector: '[matFooterRowDef]',
            providers: [{
              provide: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["CdkFooterRowDef"],
              useExisting: MatFooterRowDef
            }],
            inputs: ['columns: matFooterRowDef', 'sticky: matFooterRowDefSticky']
          }]
        }], null, null);
      })();
      /**
       * Data row definition for the mat-table.
       * Captures the data row's template and other properties such as the columns to display and
       * a when predicate that describes when this row should be used.
       */


      var MatRowDef = /*#__PURE__*/function (_angular_cdk_table__W11) {
        _inherits2(MatRowDef, _angular_cdk_table__W11);

        var _super281 = _createSuper2(MatRowDef);

        function MatRowDef() {
          _classCallCheck2(this, MatRowDef);

          return _super281.apply(this, arguments);
        }

        return MatRowDef;
      }(_angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["CdkRowDef"]);

      MatRowDef.ɵfac = function MatRowDef_Factory(t) {
        return ɵMatRowDef_BaseFactory(t || MatRowDef);
      };

      MatRowDef.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: MatRowDef,
        selectors: [["", "matRowDef", ""]],
        inputs: {
          columns: ["matRowDefColumns", "columns"],
          when: ["matRowDefWhen", "when"]
        },
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([{
          provide: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["CdkRowDef"],
          useExisting: MatRowDef
        }]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
      });

      var ɵMatRowDef_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](MatRowDef);
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatRowDef, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
          args: [{
            selector: '[matRowDef]',
            providers: [{
              provide: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["CdkRowDef"],
              useExisting: MatRowDef
            }],
            inputs: ['columns: matRowDefColumns', 'when: matRowDefWhen']
          }]
        }], null, null);
      })();
      /** Header template container that contains the cell outlet. Adds the right class and role. */


      var MatHeaderRow = /*#__PURE__*/function (_angular_cdk_table__W12) {
        _inherits2(MatHeaderRow, _angular_cdk_table__W12);

        var _super282 = _createSuper2(MatHeaderRow);

        function MatHeaderRow() {
          _classCallCheck2(this, MatHeaderRow);

          return _super282.apply(this, arguments);
        }

        return MatHeaderRow;
      }(_angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["CdkHeaderRow"]);

      MatHeaderRow.ɵfac = function MatHeaderRow_Factory(t) {
        return ɵMatHeaderRow_BaseFactory(t || MatHeaderRow);
      };

      MatHeaderRow.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
        type: MatHeaderRow,
        selectors: [["mat-header-row"], ["tr", "mat-header-row", ""]],
        hostAttrs: ["role", "row", 1, "mat-header-row"],
        exportAs: ["matHeaderRow"],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([{
          provide: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["CdkHeaderRow"],
          useExisting: MatHeaderRow
        }]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]],
        decls: 1,
        vars: 0,
        consts: [["cdkCellOutlet", ""]],
        template: function MatHeaderRow_Template(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainer"](0, 0);
          }
        },
        directives: [_angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["CdkCellOutlet"]],
        encapsulation: 2
      });

      var ɵMatHeaderRow_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](MatHeaderRow);
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatHeaderRow, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
          args: [{
            selector: 'mat-header-row, tr[mat-header-row]',
            template: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["CDK_ROW_TEMPLATE"],
            host: {
              'class': 'mat-header-row',
              'role': 'row'
            },
            // See note on CdkTable for explanation on why this uses the default change detection strategy.
            // tslint:disable-next-line:validate-decorators
            changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].Default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            exportAs: 'matHeaderRow',
            providers: [{
              provide: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["CdkHeaderRow"],
              useExisting: MatHeaderRow
            }]
          }]
        }], null, null);
      })();
      /** Footer template container that contains the cell outlet. Adds the right class and role. */


      var MatFooterRow = /*#__PURE__*/function (_angular_cdk_table__W13) {
        _inherits2(MatFooterRow, _angular_cdk_table__W13);

        var _super283 = _createSuper2(MatFooterRow);

        function MatFooterRow() {
          _classCallCheck2(this, MatFooterRow);

          return _super283.apply(this, arguments);
        }

        return MatFooterRow;
      }(_angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["CdkFooterRow"]);

      MatFooterRow.ɵfac = function MatFooterRow_Factory(t) {
        return ɵMatFooterRow_BaseFactory(t || MatFooterRow);
      };

      MatFooterRow.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
        type: MatFooterRow,
        selectors: [["mat-footer-row"], ["tr", "mat-footer-row", ""]],
        hostAttrs: ["role", "row", 1, "mat-footer-row"],
        exportAs: ["matFooterRow"],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([{
          provide: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["CdkFooterRow"],
          useExisting: MatFooterRow
        }]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]],
        decls: 1,
        vars: 0,
        consts: [["cdkCellOutlet", ""]],
        template: function MatFooterRow_Template(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainer"](0, 0);
          }
        },
        directives: [_angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["CdkCellOutlet"]],
        encapsulation: 2
      });

      var ɵMatFooterRow_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](MatFooterRow);
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatFooterRow, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
          args: [{
            selector: 'mat-footer-row, tr[mat-footer-row]',
            template: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["CDK_ROW_TEMPLATE"],
            host: {
              'class': 'mat-footer-row',
              'role': 'row'
            },
            // See note on CdkTable for explanation on why this uses the default change detection strategy.
            // tslint:disable-next-line:validate-decorators
            changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].Default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            exportAs: 'matFooterRow',
            providers: [{
              provide: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["CdkFooterRow"],
              useExisting: MatFooterRow
            }]
          }]
        }], null, null);
      })();
      /** Data row template container that contains the cell outlet. Adds the right class and role. */


      var MatRow = /*#__PURE__*/function (_angular_cdk_table__W14) {
        _inherits2(MatRow, _angular_cdk_table__W14);

        var _super284 = _createSuper2(MatRow);

        function MatRow() {
          _classCallCheck2(this, MatRow);

          return _super284.apply(this, arguments);
        }

        return MatRow;
      }(_angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["CdkRow"]);

      MatRow.ɵfac = function MatRow_Factory(t) {
        return ɵMatRow_BaseFactory(t || MatRow);
      };

      MatRow.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
        type: MatRow,
        selectors: [["mat-row"], ["tr", "mat-row", ""]],
        hostAttrs: ["role", "row", 1, "mat-row"],
        exportAs: ["matRow"],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([{
          provide: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["CdkRow"],
          useExisting: MatRow
        }]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]],
        decls: 1,
        vars: 0,
        consts: [["cdkCellOutlet", ""]],
        template: function MatRow_Template(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainer"](0, 0);
          }
        },
        directives: [_angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["CdkCellOutlet"]],
        encapsulation: 2
      });

      var ɵMatRow_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](MatRow);
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatRow, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
          args: [{
            selector: 'mat-row, tr[mat-row]',
            template: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["CDK_ROW_TEMPLATE"],
            host: {
              'class': 'mat-row',
              'role': 'row'
            },
            // See note on CdkTable for explanation on why this uses the default change detection strategy.
            // tslint:disable-next-line:validate-decorators
            changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].Default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            exportAs: 'matRow',
            providers: [{
              provide: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["CdkRow"],
              useExisting: MatRow
            }]
          }]
        }], null, null);
      })();
      /** Row that can be used to display a message when no data is shown in the table. */


      var MatNoDataRow = /*#__PURE__*/function (_angular_cdk_table__W15) {
        _inherits2(MatNoDataRow, _angular_cdk_table__W15);

        var _super285 = _createSuper2(MatNoDataRow);

        function MatNoDataRow() {
          _classCallCheck2(this, MatNoDataRow);

          return _super285.apply(this, arguments);
        }

        return MatNoDataRow;
      }(_angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["CdkNoDataRow"]);

      MatNoDataRow.ɵfac = function MatNoDataRow_Factory(t) {
        return ɵMatNoDataRow_BaseFactory(t || MatNoDataRow);
      };

      MatNoDataRow.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: MatNoDataRow,
        selectors: [["ng-template", "matNoDataRow", ""]],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([{
          provide: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["CdkNoDataRow"],
          useExisting: MatNoDataRow
        }]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
      });

      var ɵMatNoDataRow_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](MatNoDataRow);
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatNoDataRow, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
          args: [{
            selector: 'ng-template[matNoDataRow]',
            providers: [{
              provide: _angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["CdkNoDataRow"],
              useExisting: MatNoDataRow
            }]
          }]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Column that simply shows text content for the header and row cells. Assumes that the table
       * is using the native table implementation (`<table>`).
       *
       * By default, the name of this column will be the header text and data property accessor.
       * The header text can be overridden with the `headerText` input. Cell values can be overridden with
       * the `dataAccessor` input. Change the text justification to the start or end using the `justify`
       * input.
       */


      var MatTextColumn = /*#__PURE__*/function (_angular_cdk_table__W16) {
        _inherits2(MatTextColumn, _angular_cdk_table__W16);

        var _super286 = _createSuper2(MatTextColumn);

        function MatTextColumn() {
          _classCallCheck2(this, MatTextColumn);

          return _super286.apply(this, arguments);
        }

        return MatTextColumn;
      }(_angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["CdkTextColumn"]);

      MatTextColumn.ɵfac = function MatTextColumn_Factory(t) {
        return ɵMatTextColumn_BaseFactory(t || MatTextColumn);
      };

      MatTextColumn.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
        type: MatTextColumn,
        selectors: [["mat-text-column"]],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]],
        decls: 3,
        vars: 0,
        consts: [["matColumnDef", ""], ["mat-header-cell", "", 3, "text-align", 4, "matHeaderCellDef"], ["mat-cell", "", 3, "text-align", 4, "matCellDef"], ["mat-header-cell", ""], ["mat-cell", ""]],
        template: function MatTextColumn_Template(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0, 0);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, MatTextColumn_th_1_Template, 2, 3, "th", 1);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, MatTextColumn_td_2_Template, 2, 3, "td", 2);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
          }
        },
        directives: [MatColumnDef, MatHeaderCellDef, MatCellDef, MatHeaderCell, MatCell],
        encapsulation: 2
      });

      var ɵMatTextColumn_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](MatTextColumn);
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatTextColumn, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
          args: [{
            selector: 'mat-text-column',
            template: "\n    <ng-container matColumnDef>\n      <th mat-header-cell *matHeaderCellDef [style.text-align]=\"justify\">\n        {{headerText}}\n      </th>\n      <td mat-cell *matCellDef=\"let data\" [style.text-align]=\"justify\">\n        {{dataAccessor(data, name)}}\n      </td>\n    </ng-container>\n  ",
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            // Change detection is intentionally not set to OnPush. This component's template will be provided
            // to the table to be inserted into its view. This is problematic when change detection runs since
            // the bindings in this template will be evaluated _after_ the table's view is evaluated, which
            // mean's the template in the table's view will not have the updated value (and in fact will cause
            // an ExpressionChangedAfterItHasBeenCheckedError).
            // tslint:disable-next-line:validate-decorators
            changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].Default
          }]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var EXPORTED_DECLARATIONS = [// Table
      MatTable, // Template defs
      MatHeaderCellDef, MatHeaderRowDef, MatColumnDef, MatCellDef, MatRowDef, MatFooterCellDef, MatFooterRowDef, // Cell directives
      MatHeaderCell, MatCell, MatFooterCell, // Row directives
      MatHeaderRow, MatRow, MatFooterRow, MatNoDataRow, MatTextColumn];

      var MatTableModule = function MatTableModule() {
        _classCallCheck2(this, MatTableModule);
      };

      MatTableModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
        type: MatTableModule
      });
      MatTableModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
        factory: function MatTableModule_Factory(t) {
          return new (t || MatTableModule)();
        },
        imports: [[_angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["CdkTableModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_3__["MatCommonModule"]], _angular_material_core__WEBPACK_IMPORTED_MODULE_3__["MatCommonModule"]]
      });

      (function () {
        (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](MatTableModule, {
          declarations: function declarations() {
            return [MatTable, MatHeaderCellDef, MatHeaderRowDef, MatColumnDef, MatCellDef, MatRowDef, MatFooterCellDef, MatFooterRowDef, MatHeaderCell, MatCell, MatFooterCell, MatHeaderRow, MatRow, MatFooterRow, MatNoDataRow, MatTextColumn];
          },
          imports: function imports() {
            return [_angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["CdkTableModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_3__["MatCommonModule"]];
          },
          exports: function exports() {
            return [_angular_material_core__WEBPACK_IMPORTED_MODULE_3__["MatCommonModule"], MatTable, MatHeaderCellDef, MatHeaderRowDef, MatColumnDef, MatCellDef, MatRowDef, MatFooterCellDef, MatFooterRowDef, MatHeaderCell, MatCell, MatFooterCell, MatHeaderRow, MatRow, MatFooterRow, MatNoDataRow, MatTextColumn];
          }
        });
      })();
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatTableModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
          args: [{
            imports: [_angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["CdkTableModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_3__["MatCommonModule"]],
            exports: [_angular_material_core__WEBPACK_IMPORTED_MODULE_3__["MatCommonModule"], EXPORTED_DECLARATIONS],
            declarations: EXPORTED_DECLARATIONS
          }]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Corresponds to `Number.MAX_SAFE_INTEGER`. Moved out into a variable here due to
       * flaky browser support and the value not being defined in Closure's typings.
       */


      var MAX_SAFE_INTEGER = 9007199254740991;
      /**
       * Data source that accepts a client-side data array and includes native support of filtering,
       * sorting (using MatSort), and pagination (using MatPaginator).
       *
       * Allows for sort customization by overriding sortingDataAccessor, which defines how data
       * properties are accessed. Also allows for filter customization by overriding filterTermAccessor,
       * which defines how row data is converted to a string for filter matching.
       *
       * **Note:** This class is meant to be a simple data source to help you get started. As such
       * it isn't equipped to handle some more advanced cases like robust i18n support or server-side
       * interactions. If your app needs to support more advanced use cases, consider implementing your
       * own `DataSource`.
       */

      var MatTableDataSource = /*#__PURE__*/function (_angular_cdk_table__W17) {
        _inherits2(MatTableDataSource, _angular_cdk_table__W17);

        var _super287 = _createSuper2(MatTableDataSource);

        function MatTableDataSource() {
          var _this572;

          var initialData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];

          _classCallCheck2(this, MatTableDataSource);

          _this572 = _super287.call(this);
          /** Stream emitting render data to the table (depends on ordered data changes). */

          _this572._renderData = new rxjs__WEBPACK_IMPORTED_MODULE_5__["BehaviorSubject"]([]);
          /** Stream that emits when a new filter string is set on the data source. */

          _this572._filter = new rxjs__WEBPACK_IMPORTED_MODULE_5__["BehaviorSubject"]('');
          /** Used to react to internal changes of the paginator that are made by the data source itself. */

          _this572._internalPageChanges = new rxjs__WEBPACK_IMPORTED_MODULE_5__["Subject"]();
          /**
           * Subscription to the changes that should trigger an update to the table's rendered rows, such
           * as filtering, sorting, pagination, or base data changes.
           */

          _this572._renderChangesSubscription = rxjs__WEBPACK_IMPORTED_MODULE_5__["Subscription"].EMPTY;
          /**
           * Data accessor function that is used for accessing data properties for sorting through
           * the default sortData function.
           * This default function assumes that the sort header IDs (which defaults to the column name)
           * matches the data's properties (e.g. column Xyz represents data['Xyz']).
           * May be set to a custom function for different behavior.
           * @param data Data object that is being accessed.
           * @param sortHeaderId The name of the column that represents the data.
           */

          _this572.sortingDataAccessor = function (data, sortHeaderId) {
            var value = data[sortHeaderId];

            if (Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_4__["_isNumberValue"])(value)) {
              var numberValue = Number(value); // Numbers beyond `MAX_SAFE_INTEGER` can't be compared reliably so we
              // leave them as strings. For more info: https://goo.gl/y5vbSg

              return numberValue < MAX_SAFE_INTEGER ? numberValue : value;
            }

            return value;
          };
          /**
           * Gets a sorted copy of the data array based on the state of the MatSort. Called
           * after changes are made to the filtered data or when sort changes are emitted from MatSort.
           * By default, the function retrieves the active sort and its direction and compares data
           * by retrieving data using the sortingDataAccessor. May be overridden for a custom implementation
           * of data ordering.
           * @param data The array of data that should be sorted.
           * @param sort The connected MatSort that holds the current sort state.
           */


          _this572.sortData = function (data, sort) {
            var active = sort.active;
            var direction = sort.direction;

            if (!active || direction == '') {
              return data;
            }

            return data.sort(function (a, b) {
              var valueA = _this572.sortingDataAccessor(a, active);

              var valueB = _this572.sortingDataAccessor(b, active); // If there are data in the column that can be converted to a number,
              // it must be ensured that the rest of the data
              // is of the same type so as not to order incorrectly.


              var valueAType = typeof valueA;
              var valueBType = typeof valueB;

              if (valueAType !== valueBType) {
                if (valueAType === 'number') {
                  valueA += '';
                }

                if (valueBType === 'number') {
                  valueB += '';
                }
              } // If both valueA and valueB exist (truthy), then compare the two. Otherwise, check if
              // one value exists while the other doesn't. In this case, existing value should come last.
              // This avoids inconsistent results when comparing values to undefined/null.
              // If neither value exists, return 0 (equal).


              var comparatorResult = 0;

              if (valueA != null && valueB != null) {
                // Check if one value is greater than the other; if equal, comparatorResult should remain 0.
                if (valueA > valueB) {
                  comparatorResult = 1;
                } else if (valueA < valueB) {
                  comparatorResult = -1;
                }
              } else if (valueA != null) {
                comparatorResult = 1;
              } else if (valueB != null) {
                comparatorResult = -1;
              }

              return comparatorResult * (direction == 'asc' ? 1 : -1);
            });
          };
          /**
           * Checks if a data object matches the data source's filter string. By default, each data object
           * is converted to a string of its properties and returns true if the filter has
           * at least one occurrence in that string. By default, the filter string has its whitespace
           * trimmed and the match is case-insensitive. May be overridden for a custom implementation of
           * filter matching.
           * @param data Data object used to check against the filter.
           * @param filter Filter string that has been set on the data source.
           * @returns Whether the filter matches against the data
           */


          _this572.filterPredicate = function (data, filter) {
            // Transform the data into a lowercase string of all property values.
            var dataStr = Object.keys(data).reduce(function (currentTerm, key) {
              // Use an obscure Unicode character to delimit the words in the concatenated string.
              // This avoids matches where the values of two columns combined will match the user's query
              // (e.g. `Flute` and `Stop` will match `Test`). The character is intended to be something
              // that has a very low chance of being typed in by somebody in a text field. This one in
              // particular is "White up-pointing triangle with dot" from
              // https://en.wikipedia.org/wiki/List_of_Unicode_characters
              return currentTerm + data[key] + '◬';
            }, '').toLowerCase(); // Transform the filter by converting it to lowercase and removing whitespace.

            var transformedFilter = filter.trim().toLowerCase();
            return dataStr.indexOf(transformedFilter) != -1;
          };

          _this572._data = new rxjs__WEBPACK_IMPORTED_MODULE_5__["BehaviorSubject"](initialData);

          _this572._updateChangeSubscription();

          return _this572;
        }
        /** Array of data that should be rendered by the table, where each object represents one row. */


        _createClass2(MatTableDataSource, [{
          key: "data",
          get: function get() {
            return this._data.value;
          },
          set: function set(data) {
            this._data.next(data);
          }
          /**
           * Filter term that should be used to filter out objects from the data array. To override how
           * data objects match to this filter string, provide a custom function for filterPredicate.
           */

        }, {
          key: "filter",
          get: function get() {
            return this._filter.value;
          },
          set: function set(filter) {
            this._filter.next(filter);
          }
          /**
           * Instance of the MatSort directive used by the table to control its sorting. Sort changes
           * emitted by the MatSort will trigger an update to the table's rendered data.
           */

        }, {
          key: "sort",
          get: function get() {
            return this._sort;
          },
          set: function set(sort) {
            this._sort = sort;

            this._updateChangeSubscription();
          }
          /**
           * Instance of the MatPaginator component used by the table to control what page of the data is
           * displayed. Page changes emitted by the MatPaginator will trigger an update to the
           * table's rendered data.
           *
           * Note that the data source uses the paginator's properties to calculate which page of data
           * should be displayed. If the paginator receives its properties as template inputs,
           * e.g. `[pageLength]=100` or `[pageIndex]=1`, then be sure that the paginator's view has been
           * initialized before assigning it to this data source.
           */

        }, {
          key: "paginator",
          get: function get() {
            return this._paginator;
          },
          set: function set(paginator) {
            this._paginator = paginator;

            this._updateChangeSubscription();
          }
          /**
           * Subscribe to changes that should trigger an update to the table's rendered rows. When the
           * changes occur, process the current state of the filter, sort, and pagination along with
           * the provided base data and send it to the table for rendering.
           */

        }, {
          key: "_updateChangeSubscription",
          value: function _updateChangeSubscription() {
            var _this573 = this;

            // Sorting and/or pagination should be watched if MatSort and/or MatPaginator are provided.
            // The events should emit whenever the component emits a change or initializes, or if no
            // component is provided, a stream with just a null event should be provided.
            // The `sortChange` and `pageChange` acts as a signal to the combineLatests below so that the
            // pipeline can progress to the next step. Note that the value from these streams are not used,
            // they purely act as a signal to progress in the pipeline.
            var sortChange = this._sort ? Object(rxjs__WEBPACK_IMPORTED_MODULE_5__["merge"])(this._sort.sortChange, this._sort.initialized) : Object(rxjs__WEBPACK_IMPORTED_MODULE_5__["of"])(null);
            var pageChange = this._paginator ? Object(rxjs__WEBPACK_IMPORTED_MODULE_5__["merge"])(this._paginator.page, this._internalPageChanges, this._paginator.initialized) : Object(rxjs__WEBPACK_IMPORTED_MODULE_5__["of"])(null);
            var dataStream = this._data; // Watch for base data or filter changes to provide a filtered set of data.

            var filteredData = Object(rxjs__WEBPACK_IMPORTED_MODULE_5__["combineLatest"])([dataStream, this._filter]).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_6__["map"])(function (_ref71) {
              var _ref72 = _slicedToArray(_ref71, 1),
                  data = _ref72[0];

              return _this573._filterData(data);
            })); // Watch for filtered data or sort changes to provide an ordered set of data.

            var orderedData = Object(rxjs__WEBPACK_IMPORTED_MODULE_5__["combineLatest"])([filteredData, sortChange]).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_6__["map"])(function (_ref73) {
              var _ref74 = _slicedToArray(_ref73, 1),
                  data = _ref74[0];

              return _this573._orderData(data);
            })); // Watch for ordered data or page changes to provide a paged set of data.

            var paginatedData = Object(rxjs__WEBPACK_IMPORTED_MODULE_5__["combineLatest"])([orderedData, pageChange]).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_6__["map"])(function (_ref75) {
              var _ref76 = _slicedToArray(_ref75, 1),
                  data = _ref76[0];

              return _this573._pageData(data);
            })); // Watched for paged data changes and send the result to the table to render.

            this._renderChangesSubscription.unsubscribe();

            this._renderChangesSubscription = paginatedData.subscribe(function (data) {
              return _this573._renderData.next(data);
            });
          }
          /**
           * Returns a filtered data array where each filter object contains the filter string within
           * the result of the filterTermAccessor function. If no filter is set, returns the data array
           * as provided.
           */

        }, {
          key: "_filterData",
          value: function _filterData(data) {
            var _this574 = this;

            // If there is a filter string, filter out data that does not contain it.
            // Each data object is converted to a string using the function defined by filterTermAccessor.
            // May be overridden for customization.
            this.filteredData = this.filter == null || this.filter === '' ? data : data.filter(function (obj) {
              return _this574.filterPredicate(obj, _this574.filter);
            });

            if (this.paginator) {
              this._updatePaginator(this.filteredData.length);
            }

            return this.filteredData;
          }
          /**
           * Returns a sorted copy of the data if MatSort has a sort applied, otherwise just returns the
           * data array as provided. Uses the default data accessor for data lookup, unless a
           * sortDataAccessor function is defined.
           */

        }, {
          key: "_orderData",
          value: function _orderData(data) {
            // If there is no active sort or direction, return the data without trying to sort.
            if (!this.sort) {
              return data;
            }

            return this.sortData(data.slice(), this.sort);
          }
          /**
           * Returns a paged slice of the provided data array according to the provided MatPaginator's page
           * index and length. If there is no paginator provided, returns the data array as provided.
           */

        }, {
          key: "_pageData",
          value: function _pageData(data) {
            if (!this.paginator) {
              return data;
            }

            var startIndex = this.paginator.pageIndex * this.paginator.pageSize;
            return data.slice(startIndex, startIndex + this.paginator.pageSize);
          }
          /**
           * Updates the paginator to reflect the length of the filtered data, and makes sure that the page
           * index does not exceed the paginator's last page. Values are changed in a resolved promise to
           * guard against making property changes within a round of change detection.
           */

        }, {
          key: "_updatePaginator",
          value: function _updatePaginator(filteredDataLength) {
            var _this575 = this;

            Promise.resolve().then(function () {
              var paginator = _this575.paginator;

              if (!paginator) {
                return;
              }

              paginator.length = filteredDataLength; // If the page index is set beyond the page, reduce it to the last page.

              if (paginator.pageIndex > 0) {
                var lastPageIndex = Math.ceil(paginator.length / paginator.pageSize) - 1 || 0;
                var newPageIndex = Math.min(paginator.pageIndex, lastPageIndex);

                if (newPageIndex !== paginator.pageIndex) {
                  paginator.pageIndex = newPageIndex; // Since the paginator only emits after user-generated changes,
                  // we need our own stream so we know to should re-render the data.

                  _this575._internalPageChanges.next();
                }
              }
            });
          }
          /**
           * Used by the MatTable. Called when it connects to the data source.
           * @docs-private
           */

        }, {
          key: "connect",
          value: function connect() {
            return this._renderData;
          }
          /**
           * Used by the MatTable. Called when it is destroyed. No-op.
           * @docs-private
           */

        }, {
          key: "disconnect",
          value: function disconnect() {}
        }]);

        return MatTableDataSource;
      }(_angular_cdk_table__WEBPACK_IMPORTED_MODULE_1__["DataSource"]);
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Generated bundle index. Do not edit.
       */
      //# sourceMappingURL=table.js.map

      /***/

    },

    /***/
    "Oaa7": function Oaa7(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : English (United Kingdom) [en-gb]
      //! author : Chris Gedrim : https://github.com/chrisgedrim
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var enGb = moment.defineLocale('en-gb', {
          months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
          monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
          weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
          weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
          weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd, D MMMM YYYY HH:mm'
          },
          calendar: {
            sameDay: '[Today at] LT',
            nextDay: '[Tomorrow at] LT',
            nextWeek: 'dddd [at] LT',
            lastDay: '[Yesterday at] LT',
            lastWeek: '[Last] dddd [at] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'in %s',
            past: '%s ago',
            s: 'a few seconds',
            ss: '%d seconds',
            m: 'a minute',
            mm: '%d minutes',
            h: 'an hour',
            hh: '%d hours',
            d: 'a day',
            dd: '%d days',
            M: 'a month',
            MM: '%d months',
            y: 'a year',
            yy: '%d years'
          },
          dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
          ordinal: function ordinal(number) {
            var b = number % 10,
                output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';
            return number + output;
          },
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return enGb;
      });
      /***/

    },

    /***/
    "Ob0Z": function Ob0Z(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Marathi [mr]
      //! author : Harshad Kale : https://github.com/kalehv
      //! author : Vivek Athalye : https://github.com/vnathalye
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var symbolMap = {
          1: '१',
          2: '२',
          3: '३',
          4: '४',
          5: '५',
          6: '६',
          7: '७',
          8: '८',
          9: '९',
          0: '०'
        },
            numberMap = {
          '१': '1',
          '२': '2',
          '३': '3',
          '४': '4',
          '५': '5',
          '६': '6',
          '७': '7',
          '८': '8',
          '९': '9',
          '०': '0'
        };

        function relativeTimeMr(number, withoutSuffix, string, isFuture) {
          var output = '';

          if (withoutSuffix) {
            switch (string) {
              case 's':
                output = 'काही सेकंद';
                break;

              case 'ss':
                output = '%d सेकंद';
                break;

              case 'm':
                output = 'एक मिनिट';
                break;

              case 'mm':
                output = '%d मिनिटे';
                break;

              case 'h':
                output = 'एक तास';
                break;

              case 'hh':
                output = '%d तास';
                break;

              case 'd':
                output = 'एक दिवस';
                break;

              case 'dd':
                output = '%d दिवस';
                break;

              case 'M':
                output = 'एक महिना';
                break;

              case 'MM':
                output = '%d महिने';
                break;

              case 'y':
                output = 'एक वर्ष';
                break;

              case 'yy':
                output = '%d वर्षे';
                break;
            }
          } else {
            switch (string) {
              case 's':
                output = 'काही सेकंदां';
                break;

              case 'ss':
                output = '%d सेकंदां';
                break;

              case 'm':
                output = 'एका मिनिटा';
                break;

              case 'mm':
                output = '%d मिनिटां';
                break;

              case 'h':
                output = 'एका तासा';
                break;

              case 'hh':
                output = '%d तासां';
                break;

              case 'd':
                output = 'एका दिवसा';
                break;

              case 'dd':
                output = '%d दिवसां';
                break;

              case 'M':
                output = 'एका महिन्या';
                break;

              case 'MM':
                output = '%d महिन्यां';
                break;

              case 'y':
                output = 'एका वर्षा';
                break;

              case 'yy':
                output = '%d वर्षां';
                break;
            }
          }

          return output.replace(/%d/i, number);
        }

        var mr = moment.defineLocale('mr', {
          months: 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split('_'),
          monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split('_'),
          monthsParseExact: true,
          weekdays: 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
          weekdaysShort: 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'),
          weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),
          longDateFormat: {
            LT: 'A h:mm वाजता',
            LTS: 'A h:mm:ss वाजता',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY, A h:mm वाजता',
            LLLL: 'dddd, D MMMM YYYY, A h:mm वाजता'
          },
          calendar: {
            sameDay: '[आज] LT',
            nextDay: '[उद्या] LT',
            nextWeek: 'dddd, LT',
            lastDay: '[काल] LT',
            lastWeek: '[मागील] dddd, LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: '%sमध्ये',
            past: '%sपूर्वी',
            s: relativeTimeMr,
            ss: relativeTimeMr,
            m: relativeTimeMr,
            mm: relativeTimeMr,
            h: relativeTimeMr,
            hh: relativeTimeMr,
            d: relativeTimeMr,
            dd: relativeTimeMr,
            M: relativeTimeMr,
            MM: relativeTimeMr,
            y: relativeTimeMr,
            yy: relativeTimeMr
          },
          preparse: function preparse(string) {
            return string.replace(/[१२३४५६७८९०]/g, function (match) {
              return numberMap[match];
            });
          },
          postformat: function postformat(string) {
            return string.replace(/\d/g, function (match) {
              return symbolMap[match];
            });
          },
          meridiemParse: /पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,
          meridiemHour: function meridiemHour(hour, meridiem) {
            if (hour === 12) {
              hour = 0;
            }

            if (meridiem === 'पहाटे' || meridiem === 'सकाळी') {
              return hour;
            } else if (meridiem === 'दुपारी' || meridiem === 'सायंकाळी' || meridiem === 'रात्री') {
              return hour >= 12 ? hour : hour + 12;
            }
          },
          meridiem: function meridiem(hour, minute, isLower) {
            if (hour >= 0 && hour < 6) {
              return 'पहाटे';
            } else if (hour < 12) {
              return 'सकाळी';
            } else if (hour < 17) {
              return 'दुपारी';
            } else if (hour < 20) {
              return 'सायंकाळी';
            } else {
              return 'रात्री';
            }
          },
          week: {
            dow: 0,
            // Sunday is the first day of the week.
            doy: 6 // The week that contains Jan 6th is the first week of the year.

          }
        });
        return mr;
      });
      /***/

    },

    /***/
    "OjkT": function OjkT(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Nepalese [ne]
      //! author : suvash : https://github.com/suvash
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var symbolMap = {
          1: '१',
          2: '२',
          3: '३',
          4: '४',
          5: '५',
          6: '६',
          7: '७',
          8: '८',
          9: '९',
          0: '०'
        },
            numberMap = {
          '१': '1',
          '२': '2',
          '३': '3',
          '४': '4',
          '५': '5',
          '६': '6',
          '७': '7',
          '८': '8',
          '९': '9',
          '०': '0'
        };
        var ne = moment.defineLocale('ne', {
          months: 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split('_'),
          monthsShort: 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split('_'),
          monthsParseExact: true,
          weekdays: 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split('_'),
          weekdaysShort: 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'),
          weekdaysMin: 'आ._सो._मं._बु._बि._शु._श.'.split('_'),
          weekdaysParseExact: true,
          longDateFormat: {
            LT: 'Aको h:mm बजे',
            LTS: 'Aको h:mm:ss बजे',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY, Aको h:mm बजे',
            LLLL: 'dddd, D MMMM YYYY, Aको h:mm बजे'
          },
          preparse: function preparse(string) {
            return string.replace(/[१२३४५६७८९०]/g, function (match) {
              return numberMap[match];
            });
          },
          postformat: function postformat(string) {
            return string.replace(/\d/g, function (match) {
              return symbolMap[match];
            });
          },
          meridiemParse: /राति|बिहान|दिउँसो|साँझ/,
          meridiemHour: function meridiemHour(hour, meridiem) {
            if (hour === 12) {
              hour = 0;
            }

            if (meridiem === 'राति') {
              return hour < 4 ? hour : hour + 12;
            } else if (meridiem === 'बिहान') {
              return hour;
            } else if (meridiem === 'दिउँसो') {
              return hour >= 10 ? hour : hour + 12;
            } else if (meridiem === 'साँझ') {
              return hour + 12;
            }
          },
          meridiem: function meridiem(hour, minute, isLower) {
            if (hour < 3) {
              return 'राति';
            } else if (hour < 12) {
              return 'बिहान';
            } else if (hour < 16) {
              return 'दिउँसो';
            } else if (hour < 20) {
              return 'साँझ';
            } else {
              return 'राति';
            }
          },
          calendar: {
            sameDay: '[आज] LT',
            nextDay: '[भोलि] LT',
            nextWeek: '[आउँदो] dddd[,] LT',
            lastDay: '[हिजो] LT',
            lastWeek: '[गएको] dddd[,] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: '%sमा',
            past: '%s अगाडि',
            s: 'केही क्षण',
            ss: '%d सेकेण्ड',
            m: 'एक मिनेट',
            mm: '%d मिनेट',
            h: 'एक घण्टा',
            hh: '%d घण्टा',
            d: 'एक दिन',
            dd: '%d दिन',
            M: 'एक महिना',
            MM: '%d महिना',
            y: 'एक बर्ष',
            yy: '%d बर्ष'
          },
          week: {
            dow: 0,
            // Sunday is the first day of the week.
            doy: 6 // The week that contains Jan 6th is the first week of the year.

          }
        });
        return ne;
      });
      /***/

    },

    /***/
    "OmwH": function OmwH(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Chinese (Macau) [zh-mo]
      //! author : Ben : https://github.com/ben-lin
      //! author : Chris Lam : https://github.com/hehachris
      //! author : Tan Yuanhong : https://github.com/le0tan
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var zhMo = moment.defineLocale('zh-mo', {
          months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
          monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
          weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
          weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
          weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'YYYY年M月D日',
            LLL: 'YYYY年M月D日 HH:mm',
            LLLL: 'YYYY年M月D日dddd HH:mm',
            l: 'D/M/YYYY',
            ll: 'YYYY年M月D日',
            lll: 'YYYY年M月D日 HH:mm',
            llll: 'YYYY年M月D日dddd HH:mm'
          },
          meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
          meridiemHour: function meridiemHour(hour, meridiem) {
            if (hour === 12) {
              hour = 0;
            }

            if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
              return hour;
            } else if (meridiem === '中午') {
              return hour >= 11 ? hour : hour + 12;
            } else if (meridiem === '下午' || meridiem === '晚上') {
              return hour + 12;
            }
          },
          meridiem: function meridiem(hour, minute, isLower) {
            var hm = hour * 100 + minute;

            if (hm < 600) {
              return '凌晨';
            } else if (hm < 900) {
              return '早上';
            } else if (hm < 1130) {
              return '上午';
            } else if (hm < 1230) {
              return '中午';
            } else if (hm < 1800) {
              return '下午';
            } else {
              return '晚上';
            }
          },
          calendar: {
            sameDay: '[今天] LT',
            nextDay: '[明天] LT',
            nextWeek: '[下]dddd LT',
            lastDay: '[昨天] LT',
            lastWeek: '[上]dddd LT',
            sameElse: 'L'
          },
          dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
          ordinal: function ordinal(number, period) {
            switch (period) {
              case 'd':
              case 'D':
              case 'DDD':
                return number + '日';

              case 'M':
                return number + '月';

              case 'w':
              case 'W':
                return number + '週';

              default:
                return number;
            }
          },
          relativeTime: {
            future: '%s內',
            past: '%s前',
            s: '幾秒',
            ss: '%d 秒',
            m: '1 分鐘',
            mm: '%d 分鐘',
            h: '1 小時',
            hh: '%d 小時',
            d: '1 天',
            dd: '%d 天',
            M: '1 個月',
            MM: '%d 個月',
            y: '1 年',
            yy: '%d 年'
          }
        });
        return zhMo;
      });
      /***/

    },

    /***/
    "Orh4": function Orh4(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return differenceInMilliseconds;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name differenceInMilliseconds
       * @category Millisecond Helpers
       * @summary Get the number of milliseconds between the given dates.
       *
       * @description
       * Get the number of milliseconds between the given dates.
       *
       * ### 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 {Date|Number} dateLeft - the later date
       * @param {Date|Number} dateRight - the earlier date
       * @returns {Number} the number of milliseconds
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // How many milliseconds are between
       * // 2 July 2014 12:30:20.600 and 2 July 2014 12:30:21.700?
       * var result = differenceInMilliseconds(
       *   new Date(2014, 6, 2, 12, 30, 21, 700),
       *   new Date(2014, 6, 2, 12, 30, 20, 600)
       * )
       * //=> 1100
       */


      function differenceInMilliseconds(dirtyDateLeft, dirtyDateRight) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(2, arguments);
        var dateLeft = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateLeft);
        var dateRight = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateRight);
        return dateLeft.getTime() - dateRight.getTime();
      }
      /***/

    },

    /***/
    "OsX3": function OsX3(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "bufferTime", function () {
        return bufferTime;
      });
      /* harmony import */


      var _scheduler_async__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../scheduler/async */
      "D0XW");
      /* harmony import */


      var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../Subscriber */
      "7o/Q");
      /* harmony import */


      var _util_isScheduler__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../util/isScheduler */
      "z+Ro");

      function bufferTime(bufferTimeSpan) {
        var length = arguments.length;
        var scheduler = _scheduler_async__WEBPACK_IMPORTED_MODULE_0__["async"];

        if (Object(_util_isScheduler__WEBPACK_IMPORTED_MODULE_2__["isScheduler"])(arguments[arguments.length - 1])) {
          scheduler = arguments[arguments.length - 1];
          length--;
        }

        var bufferCreationInterval = null;

        if (length >= 2) {
          bufferCreationInterval = arguments[1];
        }

        var maxBufferSize = Number.POSITIVE_INFINITY;

        if (length >= 3) {
          maxBufferSize = arguments[2];
        }

        return function bufferTimeOperatorFunction(source) {
          return source.lift(new BufferTimeOperator(bufferTimeSpan, bufferCreationInterval, maxBufferSize, scheduler));
        };
      }

      var BufferTimeOperator = /*#__PURE__*/function () {
        function BufferTimeOperator(bufferTimeSpan, bufferCreationInterval, maxBufferSize, scheduler) {
          _classCallCheck2(this, BufferTimeOperator);

          this.bufferTimeSpan = bufferTimeSpan;
          this.bufferCreationInterval = bufferCreationInterval;
          this.maxBufferSize = maxBufferSize;
          this.scheduler = scheduler;
        }

        _createClass2(BufferTimeOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            return source.subscribe(new BufferTimeSubscriber(subscriber, this.bufferTimeSpan, this.bufferCreationInterval, this.maxBufferSize, this.scheduler));
          }
        }]);

        return BufferTimeOperator;
      }();

      var Context = function Context() {
        _classCallCheck2(this, Context);

        this.buffer = [];
      };

      var BufferTimeSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_22) {
        _inherits2(BufferTimeSubscriber, _Subscriber__WEBPACK_22);

        var _super288 = _createSuper2(BufferTimeSubscriber);

        function BufferTimeSubscriber(destination, bufferTimeSpan, bufferCreationInterval, maxBufferSize, scheduler) {
          var _this576;

          _classCallCheck2(this, BufferTimeSubscriber);

          _this576 = _super288.call(this, destination);
          _this576.bufferTimeSpan = bufferTimeSpan;
          _this576.bufferCreationInterval = bufferCreationInterval;
          _this576.maxBufferSize = maxBufferSize;
          _this576.scheduler = scheduler;
          _this576.contexts = [];

          var context = _this576.openContext();

          _this576.timespanOnly = bufferCreationInterval == null || bufferCreationInterval < 0;

          if (_this576.timespanOnly) {
            var timeSpanOnlyState = {
              subscriber: _assertThisInitialized2(_this576),
              context: context,
              bufferTimeSpan: bufferTimeSpan
            };

            _this576.add(context.closeAction = scheduler.schedule(dispatchBufferTimeSpanOnly, bufferTimeSpan, timeSpanOnlyState));
          } else {
            var closeState = {
              subscriber: _assertThisInitialized2(_this576),
              context: context
            };
            var creationState = {
              bufferTimeSpan: bufferTimeSpan,
              bufferCreationInterval: bufferCreationInterval,
              subscriber: _assertThisInitialized2(_this576),
              scheduler: scheduler
            };

            _this576.add(context.closeAction = scheduler.schedule(dispatchBufferClose, bufferTimeSpan, closeState));

            _this576.add(scheduler.schedule(dispatchBufferCreation, bufferCreationInterval, creationState));
          }

          return _this576;
        }

        _createClass2(BufferTimeSubscriber, [{
          key: "_next",
          value: function _next(value) {
            var contexts = this.contexts;
            var len = contexts.length;
            var filledBufferContext;

            for (var i = 0; i < len; i++) {
              var context = contexts[i];
              var buffer = context.buffer;
              buffer.push(value);

              if (buffer.length == this.maxBufferSize) {
                filledBufferContext = context;
              }
            }

            if (filledBufferContext) {
              this.onBufferFull(filledBufferContext);
            }
          }
        }, {
          key: "_error",
          value: function _error(err) {
            this.contexts.length = 0;

            _get2(_getPrototypeOf2(BufferTimeSubscriber.prototype), "_error", this).call(this, err);
          }
        }, {
          key: "_complete",
          value: function _complete() {
            var contexts = this.contexts,
                destination = this.destination;

            while (contexts.length > 0) {
              var context = contexts.shift();
              destination.next(context.buffer);
            }

            _get2(_getPrototypeOf2(BufferTimeSubscriber.prototype), "_complete", this).call(this);
          }
        }, {
          key: "_unsubscribe",
          value: function _unsubscribe() {
            this.contexts = null;
          }
        }, {
          key: "onBufferFull",
          value: function onBufferFull(context) {
            this.closeContext(context);
            var closeAction = context.closeAction;
            closeAction.unsubscribe();
            this.remove(closeAction);

            if (!this.closed && this.timespanOnly) {
              context = this.openContext();
              var bufferTimeSpan = this.bufferTimeSpan;
              var timeSpanOnlyState = {
                subscriber: this,
                context: context,
                bufferTimeSpan: bufferTimeSpan
              };
              this.add(context.closeAction = this.scheduler.schedule(dispatchBufferTimeSpanOnly, bufferTimeSpan, timeSpanOnlyState));
            }
          }
        }, {
          key: "openContext",
          value: function openContext() {
            var context = new Context();
            this.contexts.push(context);
            return context;
          }
        }, {
          key: "closeContext",
          value: function closeContext(context) {
            this.destination.next(context.buffer);
            var contexts = this.contexts;
            var spliceIndex = contexts ? contexts.indexOf(context) : -1;

            if (spliceIndex >= 0) {
              contexts.splice(contexts.indexOf(context), 1);
            }
          }
        }]);

        return BufferTimeSubscriber;
      }(_Subscriber__WEBPACK_IMPORTED_MODULE_1__["Subscriber"]);

      function dispatchBufferTimeSpanOnly(state) {
        var subscriber = state.subscriber;
        var prevContext = state.context;

        if (prevContext) {
          subscriber.closeContext(prevContext);
        }

        if (!subscriber.closed) {
          state.context = subscriber.openContext();
          state.context.closeAction = this.schedule(state, state.bufferTimeSpan);
        }
      }

      function dispatchBufferCreation(state) {
        var bufferCreationInterval = state.bufferCreationInterval,
            bufferTimeSpan = state.bufferTimeSpan,
            subscriber = state.subscriber,
            scheduler = state.scheduler;
        var context = subscriber.openContext();
        var action = this;

        if (!subscriber.closed) {
          subscriber.add(context.closeAction = scheduler.schedule(dispatchBufferClose, bufferTimeSpan, {
            subscriber: subscriber,
            context: context
          }));
          action.schedule(state, bufferCreationInterval);
        }
      }

      function dispatchBufferClose(arg) {
        var subscriber = arg.subscriber,
            context = arg.context;
        subscriber.closeContext(context);
      } //# sourceMappingURL=bufferTime.js.map

      /***/

    },

    /***/
    "OuL/": function OuL(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return getDaysInMonth;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name getDaysInMonth
       * @category Month Helpers
       * @summary Get the number of days in a month of the given date.
       *
       * @description
       * Get the number of days in a month of the given date.
       *
       * ### 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 {Date|Number} date - the given date
       * @returns {Number} the number of days in a month
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // How many days are in February 2000?
       * var result = getDaysInMonth(new Date(2000, 1))
       * //=> 29
       */


      function getDaysInMonth(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);
        var year = date.getFullYear();
        var monthIndex = date.getMonth();
        var lastDayOfMonth = new Date(0);
        lastDayOfMonth.setFullYear(year, monthIndex + 1, 0);
        lastDayOfMonth.setHours(0, 0, 0, 0);
        return lastDayOfMonth.getDate();
      }
      /***/

    },

    /***/
    "Oxv6": function Oxv6(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Tajik [tg]
      //! author : Orif N. Jr. : https://github.com/orif-jr
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var suffixes = {
          0: '-ум',
          1: '-ум',
          2: '-юм',
          3: '-юм',
          4: '-ум',
          5: '-ум',
          6: '-ум',
          7: '-ум',
          8: '-ум',
          9: '-ум',
          10: '-ум',
          12: '-ум',
          13: '-ум',
          20: '-ум',
          30: '-юм',
          40: '-ум',
          50: '-ум',
          60: '-ум',
          70: '-ум',
          80: '-ум',
          90: '-ум',
          100: '-ум'
        };
        var tg = moment.defineLocale('tg', {
          months: {
            format: 'январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри'.split('_'),
            standalone: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split('_')
          },
          monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
          weekdays: 'якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе'.split('_'),
          weekdaysShort: 'яшб_дшб_сшб_чшб_пшб_ҷум_шнб'.split('_'),
          weekdaysMin: 'яш_дш_сш_чш_пш_ҷм_шб'.split('_'),
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd, D MMMM YYYY HH:mm'
          },
          calendar: {
            sameDay: '[Имрӯз соати] LT',
            nextDay: '[Фардо соати] LT',
            lastDay: '[Дирӯз соати] LT',
            nextWeek: 'dddd[и] [ҳафтаи оянда соати] LT',
            lastWeek: 'dddd[и] [ҳафтаи гузашта соати] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'баъди %s',
            past: '%s пеш',
            s: 'якчанд сония',
            m: 'як дақиқа',
            mm: '%d дақиқа',
            h: 'як соат',
            hh: '%d соат',
            d: 'як рӯз',
            dd: '%d рӯз',
            M: 'як моҳ',
            MM: '%d моҳ',
            y: 'як сол',
            yy: '%d сол'
          },
          meridiemParse: /шаб|субҳ|рӯз|бегоҳ/,
          meridiemHour: function meridiemHour(hour, meridiem) {
            if (hour === 12) {
              hour = 0;
            }

            if (meridiem === 'шаб') {
              return hour < 4 ? hour : hour + 12;
            } else if (meridiem === 'субҳ') {
              return hour;
            } else if (meridiem === 'рӯз') {
              return hour >= 11 ? hour : hour + 12;
            } else if (meridiem === 'бегоҳ') {
              return hour + 12;
            }
          },
          meridiem: function meridiem(hour, minute, isLower) {
            if (hour < 4) {
              return 'шаб';
            } else if (hour < 11) {
              return 'субҳ';
            } else if (hour < 16) {
              return 'рӯз';
            } else if (hour < 19) {
              return 'бегоҳ';
            } else {
              return 'шаб';
            }
          },
          dayOfMonthOrdinalParse: /\d{1,2}-(ум|юм)/,
          ordinal: function ordinal(number) {
            var a = number % 10,
                b = number >= 100 ? 100 : null;
            return number + (suffixes[number] || suffixes[a] || suffixes[b]);
          },
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 7 // The week that contains Jan 1th is the first week of the year.

          }
        });
        return tg;
      });
      /***/

    },

    /***/
    "PA2r": function PA2r(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Czech [cs]
      //! author : petrbela : https://github.com/petrbela
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var months = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split('_'),
            monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_'),
            monthsParse = [/^led/i, /^úno/i, /^bře/i, /^dub/i, /^kvě/i, /^(čvn|červen$|června)/i, /^(čvc|červenec|července)/i, /^srp/i, /^zář/i, /^říj/i, /^lis/i, /^pro/i],
            // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.
        // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.
        monthsRegex = /^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;

        function plural(n) {
          return n > 1 && n < 5 && ~~(n / 10) !== 1;
        }

        function translate(number, withoutSuffix, key, isFuture) {
          var result = number + ' ';

          switch (key) {
            case 's':
              // a few seconds / in a few seconds / a few seconds ago
              return withoutSuffix || isFuture ? 'pár sekund' : 'pár sekundami';

            case 'ss':
              // 9 seconds / in 9 seconds / 9 seconds ago
              if (withoutSuffix || isFuture) {
                return result + (plural(number) ? 'sekundy' : 'sekund');
              } else {
                return result + 'sekundami';
              }

            case 'm':
              // a minute / in a minute / a minute ago
              return withoutSuffix ? 'minuta' : isFuture ? 'minutu' : 'minutou';

            case 'mm':
              // 9 minutes / in 9 minutes / 9 minutes ago
              if (withoutSuffix || isFuture) {
                return result + (plural(number) ? 'minuty' : 'minut');
              } else {
                return result + 'minutami';
              }

            case 'h':
              // an hour / in an hour / an hour ago
              return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';

            case 'hh':
              // 9 hours / in 9 hours / 9 hours ago
              if (withoutSuffix || isFuture) {
                return result + (plural(number) ? 'hodiny' : 'hodin');
              } else {
                return result + 'hodinami';
              }

            case 'd':
              // a day / in a day / a day ago
              return withoutSuffix || isFuture ? 'den' : 'dnem';

            case 'dd':
              // 9 days / in 9 days / 9 days ago
              if (withoutSuffix || isFuture) {
                return result + (plural(number) ? 'dny' : 'dní');
              } else {
                return result + 'dny';
              }

            case 'M':
              // a month / in a month / a month ago
              return withoutSuffix || isFuture ? 'měsíc' : 'měsícem';

            case 'MM':
              // 9 months / in 9 months / 9 months ago
              if (withoutSuffix || isFuture) {
                return result + (plural(number) ? 'měsíce' : 'měsíců');
              } else {
                return result + 'měsíci';
              }

            case 'y':
              // a year / in a year / a year ago
              return withoutSuffix || isFuture ? 'rok' : 'rokem';

            case 'yy':
              // 9 years / in 9 years / 9 years ago
              if (withoutSuffix || isFuture) {
                return result + (plural(number) ? 'roky' : 'let');
              } else {
                return result + 'lety';
              }

          }
        }

        var cs = moment.defineLocale('cs', {
          months: months,
          monthsShort: monthsShort,
          monthsRegex: monthsRegex,
          monthsShortRegex: monthsRegex,
          // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.
          // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.
          monthsStrictRegex: /^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,
          monthsShortStrictRegex: /^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,
          monthsParse: monthsParse,
          longMonthsParse: monthsParse,
          shortMonthsParse: monthsParse,
          weekdays: 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'),
          weekdaysShort: 'ne_po_út_st_čt_pá_so'.split('_'),
          weekdaysMin: 'ne_po_út_st_čt_pá_so'.split('_'),
          longDateFormat: {
            LT: 'H:mm',
            LTS: 'H:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'D. MMMM YYYY',
            LLL: 'D. MMMM YYYY H:mm',
            LLLL: 'dddd D. MMMM YYYY H:mm',
            l: 'D. M. YYYY'
          },
          calendar: {
            sameDay: '[dnes v] LT',
            nextDay: '[zítra v] LT',
            nextWeek: function nextWeek() {
              switch (this.day()) {
                case 0:
                  return '[v neděli v] LT';

                case 1:
                case 2:
                  return '[v] dddd [v] LT';

                case 3:
                  return '[ve středu v] LT';

                case 4:
                  return '[ve čtvrtek v] LT';

                case 5:
                  return '[v pátek v] LT';

                case 6:
                  return '[v sobotu v] LT';
              }
            },
            lastDay: '[včera v] LT',
            lastWeek: function lastWeek() {
              switch (this.day()) {
                case 0:
                  return '[minulou neděli v] LT';

                case 1:
                case 2:
                  return '[minulé] dddd [v] LT';

                case 3:
                  return '[minulou středu v] LT';

                case 4:
                case 5:
                  return '[minulý] dddd [v] LT';

                case 6:
                  return '[minulou sobotu v] LT';
              }
            },
            sameElse: 'L'
          },
          relativeTime: {
            future: 'za %s',
            past: 'před %s',
            s: translate,
            ss: translate,
            m: translate,
            mm: translate,
            h: translate,
            hh: translate,
            d: translate,
            dd: translate,
            M: translate,
            MM: translate,
            y: translate,
            yy: translate
          },
          dayOfMonthOrdinalParse: /\d{1,2}\./,
          ordinal: '%d.',
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return cs;
      });
      /***/

    },

    /***/
    "PQko": function PQko(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return parseJSON;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name parseJSON
       * @category Common Helpers
       * @summary Parse a JSON date string
       *
       * @description
       * Converts a complete ISO date string in UTC time, the typical format for transmitting
       * a date in JSON, to a JavaScript `Date` instance.
       *
       * This is a minimal implementation for converting dates retrieved from a JSON API to
       * a `Date` instance which can be used with other functions in the `date-fns` library.
       * The following formats are supported:
       *
       * - `2000-03-15T05:20:10.123Z`: The output of `.toISOString()` and `JSON.stringify(new Date())`
       * - `2000-03-15T05:20:10Z`: Without milliseconds
       * - `2000-03-15T05:20:10+00:00`: With a zero offset, the default JSON encoded format in some other languages
       * - `2000-03-15T05:20:10+0000`: With a zero offset without a colon
       * - `2000-03-15T05:20:10`: Without a trailing 'Z' symbol
       * - `2000-03-15T05:20:10.1234567`: Up to 7 digits in milliseconds field. Only first 3 are taken into account since JS does not allow fractional milliseconds
       * - `2000-03-15 05:20:10`: With a space instead of a 'T' separator for APIs returning a SQL date without reformatting
       *
       * For convenience and ease of use these other input types are also supported
       * via [toDate]{@link https://date-fns.org/docs/toDate}:
       *
       * - A `Date` instance will be cloned
       * - A `number` will be treated as a timestamp
       *
       * Any other input type or invalid date strings will return an `Invalid Date`.
       *
       * @param {String|Number|Date} argument A fully formed ISO8601 date string to convert
       * @returns {Date} the parsed date in the local time zone
       * @throws {TypeError} 1 argument required
       */


      function parseJSON(argument) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);

        if (typeof argument === 'string') {
          var parts = argument.match(/(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|\+00:?00)?/);

          if (parts) {
            return new Date(Date.UTC(+parts[1], parts[2] - 1, +parts[3], +parts[4], +parts[5], +parts[6], +((parts[7] || '0') + '00').substring(0, 3)));
          }

          return new Date(NaN);
        }

        return Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(argument);
      }
      /***/

    },

    /***/
    "PSD3": function PSD3(module, exports, __webpack_require__) {
      /*!
      * sweetalert2 v10.15.5
      * Released under the MIT License.
      */
      (function (global, factory) {
        true ? module.exports = factory() : undefined;
      })(this, function () {
        'use strict';

        function _typeof(obj) {
          "@babel/helpers - typeof";

          if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
            _typeof = function _typeof(obj) {
              return typeof obj;
            };
          } else {
            _typeof = function _typeof(obj) {
              return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
            };
          }

          return _typeof(obj);
        }

        function _classCallCheck(instance, Constructor) {
          if (!(instance instanceof Constructor)) {
            throw new TypeError("Cannot call a class as a 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);
          }
        }

        function _createClass(Constructor, protoProps, staticProps) {
          if (protoProps) _defineProperties(Constructor.prototype, protoProps);
          if (staticProps) _defineProperties(Constructor, staticProps);
          return Constructor;
        }

        function _extends() {
          _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;
          };

          return _extends.apply(this, arguments);
        }

        function _inherits(subClass, superClass) {
          if (typeof superClass !== "function" && superClass !== null) {
            throw new TypeError("Super expression must either be null or a function");
          }

          subClass.prototype = Object.create(superClass && superClass.prototype, {
            constructor: {
              value: subClass,
              writable: true,
              configurable: true
            }
          });
          if (superClass) _setPrototypeOf(subClass, superClass);
        }

        function _getPrototypeOf(o) {
          _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
            return o.__proto__ || Object.getPrototypeOf(o);
          };
          return _getPrototypeOf(o);
        }

        function _setPrototypeOf(o, p) {
          _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
            o.__proto__ = p;
            return o;
          };

          return _setPrototypeOf(o, p);
        }

        function _isNativeReflectConstruct() {
          if (typeof Reflect === "undefined" || !Reflect.construct) return false;
          if (Reflect.construct.sham) return false;
          if (typeof Proxy === "function") return true;

          try {
            Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));
            return true;
          } catch (e) {
            return false;
          }
        }

        function _construct(Parent, args, Class) {
          if (_isNativeReflectConstruct()) {
            _construct = Reflect.construct;
          } else {
            _construct = function _construct(Parent, args, Class) {
              var a = [null];
              a.push.apply(a, args);
              var Constructor = Function.bind.apply(Parent, a);
              var instance = new Constructor();
              if (Class) _setPrototypeOf(instance, Class.prototype);
              return instance;
            };
          }

          return _construct.apply(null, arguments);
        }

        function _assertThisInitialized(self) {
          if (self === void 0) {
            throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
          }

          return self;
        }

        function _possibleConstructorReturn(self, call) {
          if (call && (typeof call === "object" || typeof call === "function")) {
            return call;
          }

          return _assertThisInitialized(self);
        }

        function _createSuper(Derived) {
          var hasNativeReflectConstruct = _isNativeReflectConstruct();

          return function _createSuperInternal() {
            var Super = _getPrototypeOf(Derived),
                result;

            if (hasNativeReflectConstruct) {
              var NewTarget = _getPrototypeOf(this).constructor;

              result = Reflect.construct(Super, arguments, NewTarget);
            } else {
              result = Super.apply(this, arguments);
            }

            return _possibleConstructorReturn(this, result);
          };
        }

        function _superPropBase(object, property) {
          while (!Object.prototype.hasOwnProperty.call(object, property)) {
            object = _getPrototypeOf(object);
            if (object === null) break;
          }

          return object;
        }

        function _get(target, property, receiver) {
          if (typeof Reflect !== "undefined" && Reflect.get) {
            _get = Reflect.get;
          } else {
            _get = function _get(target, property, receiver) {
              var base = _superPropBase(target, property);

              if (!base) return;
              var desc = Object.getOwnPropertyDescriptor(base, property);

              if (desc.get) {
                return desc.get.call(receiver);
              }

              return desc.value;
            };
          }

          return _get(target, property, receiver || target);
        }

        var consolePrefix = 'SweetAlert2:';
        /**
         * Filter the unique values into a new array
         * @param arr
         */

        var uniqueArray = function uniqueArray(arr) {
          var result = [];

          for (var i = 0; i < arr.length; i++) {
            if (result.indexOf(arr[i]) === -1) {
              result.push(arr[i]);
            }
          }

          return result;
        };
        /**
         * Capitalize the first letter of a string
         * @param str
         */


        var capitalizeFirstLetter = function capitalizeFirstLetter(str) {
          return str.charAt(0).toUpperCase() + str.slice(1);
        };
        /**
         * Returns the array of object values (Object.values isn't supported in IE11)
         * @param obj
         */


        var objectValues = function objectValues(obj) {
          return Object.keys(obj).map(function (key) {
            return obj[key];
          });
        };
        /**
         * Convert NodeList to Array
         * @param nodeList
         */


        var toArray = function toArray(nodeList) {
          return Array.prototype.slice.call(nodeList);
        };
        /**
         * Standardise console warnings
         * @param message
         */


        var warn = function warn(message) {
          console.warn("".concat(consolePrefix, " ").concat(_typeof(message) === 'object' ? message.join(' ') : message));
        };
        /**
         * Standardise console errors
         * @param message
         */


        var error = function error(message) {
          console.error("".concat(consolePrefix, " ").concat(message));
        };
        /**
         * Private global state for `warnOnce`
         * @type {Array}
         * @private
         */


        var previousWarnOnceMessages = [];
        /**
         * Show a console warning, but only if it hasn't already been shown
         * @param message
         */

        var warnOnce = function warnOnce(message) {
          if (!(previousWarnOnceMessages.indexOf(message) !== -1)) {
            previousWarnOnceMessages.push(message);
            warn(message);
          }
        };
        /**
         * Show a one-time console warning about deprecated params/methods
         */


        var warnAboutDeprecation = function warnAboutDeprecation(deprecatedParam, useInstead) {
          warnOnce("\"".concat(deprecatedParam, "\" is deprecated and will be removed in the next major release. Please use \"").concat(useInstead, "\" instead."));
        };
        /**
         * If `arg` is a function, call it (with no arguments or context) and return the result.
         * Otherwise, just pass the value through
         * @param arg
         */


        var callIfFunction = function callIfFunction(arg) {
          return typeof arg === 'function' ? arg() : arg;
        };

        var hasToPromiseFn = function hasToPromiseFn(arg) {
          return arg && typeof arg.toPromise === 'function';
        };

        var asPromise = function asPromise(arg) {
          return hasToPromiseFn(arg) ? arg.toPromise() : Promise.resolve(arg);
        };

        var isPromise = function isPromise(arg) {
          return arg && Promise.resolve(arg) === arg;
        };

        var DismissReason = Object.freeze({
          cancel: 'cancel',
          backdrop: 'backdrop',
          close: 'close',
          esc: 'esc',
          timer: 'timer'
        });

        var isJqueryElement = function isJqueryElement(elem) {
          return _typeof(elem) === 'object' && elem.jquery;
        };

        var isElement = function isElement(elem) {
          return elem instanceof Element || isJqueryElement(elem);
        };

        var argsToParams = function argsToParams(args) {
          var params = {};

          if (_typeof(args[0]) === 'object' && !isElement(args[0])) {
            _extends(params, args[0]);
          } else {
            ['title', 'html', 'icon'].forEach(function (name, index) {
              var arg = args[index];

              if (typeof arg === 'string' || isElement(arg)) {
                params[name] = arg;
              } else if (arg !== undefined) {
                error("Unexpected type of ".concat(name, "! Expected \"string\" or \"Element\", got ").concat(_typeof(arg)));
              }
            });
          }

          return params;
        };

        var swalPrefix = 'swal2-';

        var prefix = function prefix(items) {
          var result = {};

          for (var i in items) {
            result[items[i]] = swalPrefix + items[i];
          }

          return result;
        };

        var swalClasses = prefix(['container', 'shown', 'height-auto', 'iosfix', 'popup', 'modal', 'no-backdrop', 'no-transition', 'toast', 'toast-shown', 'toast-column', 'show', 'hide', 'close', 'title', 'header', 'content', 'html-container', 'actions', 'confirm', 'deny', 'cancel', 'footer', 'icon', 'icon-content', 'image', 'input', 'file', 'range', 'select', 'radio', 'checkbox', 'label', 'textarea', 'inputerror', 'input-label', 'validation-message', 'progress-steps', 'active-progress-step', 'progress-step', 'progress-step-line', 'loader', 'loading', 'styled', 'top', 'top-start', 'top-end', 'top-left', 'top-right', 'center', 'center-start', 'center-end', 'center-left', 'center-right', 'bottom', 'bottom-start', 'bottom-end', 'bottom-left', 'bottom-right', 'grow-row', 'grow-column', 'grow-fullscreen', 'rtl', 'timer-progress-bar', 'timer-progress-bar-container', 'scrollbar-measure', 'icon-success', 'icon-warning', 'icon-info', 'icon-question', 'icon-error']);
        var iconTypes = prefix(['success', 'warning', 'info', 'question', 'error']);

        var getContainer = function getContainer() {
          return document.body.querySelector(".".concat(swalClasses.container));
        };

        var elementBySelector = function elementBySelector(selectorString) {
          var container = getContainer();
          return container ? container.querySelector(selectorString) : null;
        };

        var elementByClass = function elementByClass(className) {
          return elementBySelector(".".concat(className));
        };

        var getPopup = function getPopup() {
          return elementByClass(swalClasses.popup);
        };

        var getIcon = function getIcon() {
          return elementByClass(swalClasses.icon);
        };

        var getTitle = function getTitle() {
          return elementByClass(swalClasses.title);
        };

        var getContent = function getContent() {
          return elementByClass(swalClasses.content);
        };

        var getHtmlContainer = function getHtmlContainer() {
          return elementByClass(swalClasses['html-container']);
        };

        var getImage = function getImage() {
          return elementByClass(swalClasses.image);
        };

        var getProgressSteps = function getProgressSteps() {
          return elementByClass(swalClasses['progress-steps']);
        };

        var getValidationMessage = function getValidationMessage() {
          return elementByClass(swalClasses['validation-message']);
        };

        var getConfirmButton = function getConfirmButton() {
          return elementBySelector(".".concat(swalClasses.actions, " .").concat(swalClasses.confirm));
        };

        var getDenyButton = function getDenyButton() {
          return elementBySelector(".".concat(swalClasses.actions, " .").concat(swalClasses.deny));
        };

        var getInputLabel = function getInputLabel() {
          return elementByClass(swalClasses['input-label']);
        };

        var getLoader = function getLoader() {
          return elementBySelector(".".concat(swalClasses.loader));
        };

        var getCancelButton = function getCancelButton() {
          return elementBySelector(".".concat(swalClasses.actions, " .").concat(swalClasses.cancel));
        };

        var getActions = function getActions() {
          return elementByClass(swalClasses.actions);
        };

        var getHeader = function getHeader() {
          return elementByClass(swalClasses.header);
        };

        var getFooter = function getFooter() {
          return elementByClass(swalClasses.footer);
        };

        var getTimerProgressBar = function getTimerProgressBar() {
          return elementByClass(swalClasses['timer-progress-bar']);
        };

        var getCloseButton = function getCloseButton() {
          return elementByClass(swalClasses.close);
        }; // https://github.com/jkup/focusable/blob/master/index.js


        var focusable = "\n  a[href],\n  area[href],\n  input:not([disabled]),\n  select:not([disabled]),\n  textarea:not([disabled]),\n  button:not([disabled]),\n  iframe,\n  object,\n  embed,\n  [tabindex=\"0\"],\n  [contenteditable],\n  audio[controls],\n  video[controls],\n  summary\n";

        var getFocusableElements = function getFocusableElements() {
          var focusableElementsWithTabindex = toArray(getPopup().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')) // sort according to tabindex
          .sort(function (a, b) {
            a = parseInt(a.getAttribute('tabindex'));
            b = parseInt(b.getAttribute('tabindex'));

            if (a > b) {
              return 1;
            } else if (a < b) {
              return -1;
            }

            return 0;
          });
          var otherFocusableElements = toArray(getPopup().querySelectorAll(focusable)).filter(function (el) {
            return el.getAttribute('tabindex') !== '-1';
          });
          return uniqueArray(focusableElementsWithTabindex.concat(otherFocusableElements)).filter(function (el) {
            return isVisible(el);
          });
        };

        var isModal = function isModal() {
          return !isToast() && !document.body.classList.contains(swalClasses['no-backdrop']);
        };

        var isToast = function isToast() {
          return document.body.classList.contains(swalClasses['toast-shown']);
        };

        var isLoading = function isLoading() {
          return getPopup().hasAttribute('data-loading');
        };

        var states = {
          previousBodyPadding: null
        };

        var setInnerHtml = function setInnerHtml(elem, html) {
          // #1926
          elem.textContent = '';

          if (html) {
            var parser = new DOMParser();
            var parsed = parser.parseFromString(html, "text/html");
            toArray(parsed.querySelector('head').childNodes).forEach(function (child) {
              elem.appendChild(child);
            });
            toArray(parsed.querySelector('body').childNodes).forEach(function (child) {
              elem.appendChild(child);
            });
          }
        };

        var hasClass = function hasClass(elem, className) {
          if (!className) {
            return false;
          }

          var classList = className.split(/\s+/);

          for (var i = 0; i < classList.length; i++) {
            if (!elem.classList.contains(classList[i])) {
              return false;
            }
          }

          return true;
        };

        var removeCustomClasses = function removeCustomClasses(elem, params) {
          toArray(elem.classList).forEach(function (className) {
            if (!(objectValues(swalClasses).indexOf(className) !== -1) && !(objectValues(iconTypes).indexOf(className) !== -1) && !(objectValues(params.showClass).indexOf(className) !== -1)) {
              elem.classList.remove(className);
            }
          });
        };

        var applyCustomClass = function applyCustomClass(elem, params, className) {
          removeCustomClasses(elem, params);

          if (params.customClass && params.customClass[className]) {
            if (typeof params.customClass[className] !== 'string' && !params.customClass[className].forEach) {
              return warn("Invalid type of customClass.".concat(className, "! Expected string or iterable object, got \"").concat(_typeof(params.customClass[className]), "\""));
            }

            addClass(elem, params.customClass[className]);
          }
        };

        function getInput(content, inputType) {
          if (!inputType) {
            return null;
          }

          switch (inputType) {
            case 'select':
            case 'textarea':
            case 'file':
              return getChildByClass(content, swalClasses[inputType]);

            case 'checkbox':
              return content.querySelector(".".concat(swalClasses.checkbox, " input"));

            case 'radio':
              return content.querySelector(".".concat(swalClasses.radio, " input:checked")) || content.querySelector(".".concat(swalClasses.radio, " input:first-child"));

            case 'range':
              return content.querySelector(".".concat(swalClasses.range, " input"));

            default:
              return getChildByClass(content, swalClasses.input);
          }
        }

        var focusInput = function focusInput(input) {
          input.focus(); // place cursor at end of text in text input

          if (input.type !== 'file') {
            // http://stackoverflow.com/a/2345915
            var val = input.value;
            input.value = '';
            input.value = val;
          }
        };

        var toggleClass = function toggleClass(target, classList, condition) {
          if (!target || !classList) {
            return;
          }

          if (typeof classList === 'string') {
            classList = classList.split(/\s+/).filter(Boolean);
          }

          classList.forEach(function (className) {
            if (target.forEach) {
              target.forEach(function (elem) {
                condition ? elem.classList.add(className) : elem.classList.remove(className);
              });
            } else {
              condition ? target.classList.add(className) : target.classList.remove(className);
            }
          });
        };

        var addClass = function addClass(target, classList) {
          toggleClass(target, classList, true);
        };

        var removeClass = function removeClass(target, classList) {
          toggleClass(target, classList, false);
        };

        var getChildByClass = function getChildByClass(elem, className) {
          for (var i = 0; i < elem.childNodes.length; i++) {
            if (hasClass(elem.childNodes[i], className)) {
              return elem.childNodes[i];
            }
          }
        };

        var applyNumericalStyle = function applyNumericalStyle(elem, property, value) {
          if (value === "".concat(parseInt(value))) {
            value = parseInt(value);
          }

          if (value || parseInt(value) === 0) {
            elem.style[property] = typeof value === 'number' ? "".concat(value, "px") : value;
          } else {
            elem.style.removeProperty(property);
          }
        };

        var show = function show(elem) {
          var display = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'flex';
          elem.style.display = display;
        };

        var hide = function hide(elem) {
          elem.style.display = 'none';
        };

        var setStyle = function setStyle(parent, selector, property, value) {
          var el = parent.querySelector(selector);

          if (el) {
            el.style[property] = value;
          }
        };

        var toggle = function toggle(elem, condition, display) {
          condition ? show(elem, display) : hide(elem);
        }; // borrowed from jquery $(elem).is(':visible') implementation


        var isVisible = function isVisible(elem) {
          return !!(elem && (elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length));
        };

        var allButtonsAreHidden = function allButtonsAreHidden() {
          return !isVisible(getConfirmButton()) && !isVisible(getDenyButton()) && !isVisible(getCancelButton());
        };

        var isScrollable = function isScrollable(elem) {
          return !!(elem.scrollHeight > elem.clientHeight);
        }; // borrowed from https://stackoverflow.com/a/46352119


        var hasCssAnimation = function hasCssAnimation(elem) {
          var style = window.getComputedStyle(elem);
          var animDuration = parseFloat(style.getPropertyValue('animation-duration') || '0');
          var transDuration = parseFloat(style.getPropertyValue('transition-duration') || '0');
          return animDuration > 0 || transDuration > 0;
        };

        var contains = function contains(haystack, needle) {
          if (typeof haystack.contains === 'function') {
            return haystack.contains(needle);
          }
        };

        var animateTimerProgressBar = function animateTimerProgressBar(timer) {
          var reset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
          var timerProgressBar = getTimerProgressBar();

          if (isVisible(timerProgressBar)) {
            if (reset) {
              timerProgressBar.style.transition = 'none';
              timerProgressBar.style.width = '100%';
            }

            setTimeout(function () {
              timerProgressBar.style.transition = "width ".concat(timer / 1000, "s linear");
              timerProgressBar.style.width = '0%';
            }, 10);
          }
        };

        var stopTimerProgressBar = function stopTimerProgressBar() {
          var timerProgressBar = getTimerProgressBar();
          var timerProgressBarWidth = parseInt(window.getComputedStyle(timerProgressBar).width);
          timerProgressBar.style.removeProperty('transition');
          timerProgressBar.style.width = '100%';
          var timerProgressBarFullWidth = parseInt(window.getComputedStyle(timerProgressBar).width);
          var timerProgressBarPercent = parseInt(timerProgressBarWidth / timerProgressBarFullWidth * 100);
          timerProgressBar.style.removeProperty('transition');
          timerProgressBar.style.width = "".concat(timerProgressBarPercent, "%");
        }; // Detect Node env


        var isNodeEnv = function isNodeEnv() {
          return typeof window === 'undefined' || typeof document === 'undefined';
        };

        var sweetHTML = "\n <div aria-labelledby=\"".concat(swalClasses.title, "\" aria-describedby=\"").concat(swalClasses.content, "\" class=\"").concat(swalClasses.popup, "\" tabindex=\"-1\">\n   <div class=\"").concat(swalClasses.header, "\">\n     <ul class=\"").concat(swalClasses['progress-steps'], "\"></ul>\n     <div class=\"").concat(swalClasses.icon, "\"></div>\n     <img class=\"").concat(swalClasses.image, "\" />\n     <h2 class=\"").concat(swalClasses.title, "\" id=\"").concat(swalClasses.title, "\"></h2>\n     <button type=\"button\" class=\"").concat(swalClasses.close, "\"></button>\n   </div>\n   <div class=\"").concat(swalClasses.content, "\">\n     <div id=\"").concat(swalClasses.content, "\" class=\"").concat(swalClasses['html-container'], "\"></div>\n     <input class=\"").concat(swalClasses.input, "\" />\n     <input type=\"file\" class=\"").concat(swalClasses.file, "\" />\n     <div class=\"").concat(swalClasses.range, "\">\n       <input type=\"range\" />\n       <output></output>\n     </div>\n     <select class=\"").concat(swalClasses.select, "\"></select>\n     <div class=\"").concat(swalClasses.radio, "\"></div>\n     <label for=\"").concat(swalClasses.checkbox, "\" class=\"").concat(swalClasses.checkbox, "\">\n       <input type=\"checkbox\" />\n       <span class=\"").concat(swalClasses.label, "\"></span>\n     </label>\n     <textarea class=\"").concat(swalClasses.textarea, "\"></textarea>\n     <div class=\"").concat(swalClasses['validation-message'], "\" id=\"").concat(swalClasses['validation-message'], "\"></div>\n   </div>\n   <div class=\"").concat(swalClasses.actions, "\">\n     <div class=\"").concat(swalClasses.loader, "\"></div>\n     <button type=\"button\" class=\"").concat(swalClasses.confirm, "\"></button>\n     <button type=\"button\" class=\"").concat(swalClasses.deny, "\"></button>\n     <button type=\"button\" class=\"").concat(swalClasses.cancel, "\"></button>\n   </div>\n   <div class=\"").concat(swalClasses.footer, "\"></div>\n   <div class=\"").concat(swalClasses['timer-progress-bar-container'], "\">\n     <div class=\"").concat(swalClasses['timer-progress-bar'], "\"></div>\n   </div>\n </div>\n").replace(/(^|\n)\s*/g, '');

        var resetOldContainer = function resetOldContainer() {
          var oldContainer = getContainer();

          if (!oldContainer) {
            return false;
          }

          oldContainer.parentNode.removeChild(oldContainer);
          removeClass([document.documentElement, document.body], [swalClasses['no-backdrop'], swalClasses['toast-shown'], swalClasses['has-column']]);
          return true;
        };

        var oldInputVal; // IE11 workaround, see #1109 for details

        var resetValidationMessage = function resetValidationMessage(e) {
          if (Swal.isVisible() && oldInputVal !== e.target.value) {
            Swal.resetValidationMessage();
          }

          oldInputVal = e.target.value;
        };

        var addInputChangeListeners = function addInputChangeListeners() {
          var content = getContent();
          var input = getChildByClass(content, swalClasses.input);
          var file = getChildByClass(content, swalClasses.file);
          var range = content.querySelector(".".concat(swalClasses.range, " input"));
          var rangeOutput = content.querySelector(".".concat(swalClasses.range, " output"));
          var select = getChildByClass(content, swalClasses.select);
          var checkbox = content.querySelector(".".concat(swalClasses.checkbox, " input"));
          var textarea = getChildByClass(content, swalClasses.textarea);
          input.oninput = resetValidationMessage;
          file.onchange = resetValidationMessage;
          select.onchange = resetValidationMessage;
          checkbox.onchange = resetValidationMessage;
          textarea.oninput = resetValidationMessage;

          range.oninput = function (e) {
            resetValidationMessage(e);
            rangeOutput.value = range.value;
          };

          range.onchange = function (e) {
            resetValidationMessage(e);
            range.nextSibling.value = range.value;
          };
        };

        var getTarget = function getTarget(target) {
          return typeof target === 'string' ? document.querySelector(target) : target;
        };

        var setupAccessibility = function setupAccessibility(params) {
          var popup = getPopup();
          popup.setAttribute('role', params.toast ? 'alert' : 'dialog');
          popup.setAttribute('aria-live', params.toast ? 'polite' : 'assertive');

          if (!params.toast) {
            popup.setAttribute('aria-modal', 'true');
          }
        };

        var setupRTL = function setupRTL(targetElement) {
          if (window.getComputedStyle(targetElement).direction === 'rtl') {
            addClass(getContainer(), swalClasses.rtl);
          }
        };
        /*
         * Add modal + backdrop to DOM
         */


        var init = function init(params) {
          // Clean up the old popup container if it exists
          var oldContainerExisted = resetOldContainer();
          /* istanbul ignore if */

          if (isNodeEnv()) {
            error('SweetAlert2 requires document to initialize');
            return;
          }

          var container = document.createElement('div');
          container.className = swalClasses.container;

          if (oldContainerExisted) {
            addClass(container, swalClasses['no-transition']);
          }

          setInnerHtml(container, sweetHTML);
          var targetElement = getTarget(params.target);
          targetElement.appendChild(container);
          setupAccessibility(params);
          setupRTL(targetElement);
          addInputChangeListeners();
        };

        var parseHtmlToContainer = function parseHtmlToContainer(param, target) {
          // DOM element
          if (param instanceof HTMLElement) {
            target.appendChild(param); // Object
          } else if (_typeof(param) === 'object') {
            handleObject(param, target); // Plain string
          } else if (param) {
            setInnerHtml(target, param);
          }
        };

        var handleObject = function handleObject(param, target) {
          // JQuery element(s)
          if (param.jquery) {
            handleJqueryElem(target, param); // For other objects use their string representation
          } else {
            setInnerHtml(target, param.toString());
          }
        };

        var handleJqueryElem = function handleJqueryElem(target, elem) {
          target.textContent = '';

          if (0 in elem) {
            for (var i = 0; (i in elem); i++) {
              target.appendChild(elem[i].cloneNode(true));
            }
          } else {
            target.appendChild(elem.cloneNode(true));
          }
        };

        var animationEndEvent = function () {
          // Prevent run in Node env

          /* istanbul ignore if */
          if (isNodeEnv()) {
            return false;
          }

          var testEl = document.createElement('div');
          var transEndEventNames = {
            WebkitAnimation: 'webkitAnimationEnd',
            OAnimation: 'oAnimationEnd oanimationend',
            animation: 'animationend'
          };

          for (var i in transEndEventNames) {
            if (Object.prototype.hasOwnProperty.call(transEndEventNames, i) && typeof testEl.style[i] !== 'undefined') {
              return transEndEventNames[i];
            }
          }

          return false;
        }(); // https://github.com/twbs/bootstrap/blob/master/js/src/modal.js


        var measureScrollbar = function measureScrollbar() {
          var scrollDiv = document.createElement('div');
          scrollDiv.className = swalClasses['scrollbar-measure'];
          document.body.appendChild(scrollDiv);
          var scrollbarWidth = scrollDiv.getBoundingClientRect().width - scrollDiv.clientWidth;
          document.body.removeChild(scrollDiv);
          return scrollbarWidth;
        };

        var renderActions = function renderActions(instance, params) {
          var actions = getActions();
          var loader = getLoader();
          var confirmButton = getConfirmButton();
          var denyButton = getDenyButton();
          var cancelButton = getCancelButton(); // Actions (buttons) wrapper

          if (!params.showConfirmButton && !params.showDenyButton && !params.showCancelButton) {
            hide(actions);
          } // Custom class


          applyCustomClass(actions, params, 'actions'); // Render buttons

          renderButton(confirmButton, 'confirm', params);
          renderButton(denyButton, 'deny', params);
          renderButton(cancelButton, 'cancel', params);
          handleButtonsStyling(confirmButton, denyButton, cancelButton, params);

          if (params.reverseButtons) {
            actions.insertBefore(cancelButton, loader);
            actions.insertBefore(denyButton, loader);
            actions.insertBefore(confirmButton, loader);
          } // Loader


          setInnerHtml(loader, params.loaderHtml);
          applyCustomClass(loader, params, 'loader');
        };

        function handleButtonsStyling(confirmButton, denyButton, cancelButton, params) {
          if (!params.buttonsStyling) {
            return removeClass([confirmButton, denyButton, cancelButton], swalClasses.styled);
          }

          addClass([confirmButton, denyButton, cancelButton], swalClasses.styled); // Buttons background colors

          if (params.confirmButtonColor) {
            confirmButton.style.backgroundColor = params.confirmButtonColor;
          }

          if (params.denyButtonColor) {
            denyButton.style.backgroundColor = params.denyButtonColor;
          }

          if (params.cancelButtonColor) {
            cancelButton.style.backgroundColor = params.cancelButtonColor;
          }
        }

        function renderButton(button, buttonType, params) {
          toggle(button, params["show".concat(capitalizeFirstLetter(buttonType), "Button")], 'inline-block');
          setInnerHtml(button, params["".concat(buttonType, "ButtonText")]); // Set caption text

          button.setAttribute('aria-label', params["".concat(buttonType, "ButtonAriaLabel")]); // ARIA label
          // Add buttons custom classes

          button.className = swalClasses[buttonType];
          applyCustomClass(button, params, "".concat(buttonType, "Button"));
          addClass(button, params["".concat(buttonType, "ButtonClass")]);
        }

        function handleBackdropParam(container, backdrop) {
          if (typeof backdrop === 'string') {
            container.style.background = backdrop;
          } else if (!backdrop) {
            addClass([document.documentElement, document.body], swalClasses['no-backdrop']);
          }
        }

        function handlePositionParam(container, position) {
          if (position in swalClasses) {
            addClass(container, swalClasses[position]);
          } else {
            warn('The "position" parameter is not valid, defaulting to "center"');
            addClass(container, swalClasses.center);
          }
        }

        function handleGrowParam(container, grow) {
          if (grow && typeof grow === 'string') {
            var growClass = "grow-".concat(grow);

            if (growClass in swalClasses) {
              addClass(container, swalClasses[growClass]);
            }
          }
        }

        var renderContainer = function renderContainer(instance, params) {
          var container = getContainer();

          if (!container) {
            return;
          }

          handleBackdropParam(container, params.backdrop);

          if (!params.backdrop && params.allowOutsideClick) {
            warn('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');
          }

          handlePositionParam(container, params.position);
          handleGrowParam(container, params.grow); // Custom class

          applyCustomClass(container, params, 'container'); // Set queue step attribute for getQueueStep() method

          var queueStep = document.body.getAttribute('data-swal2-queue-step');

          if (queueStep) {
            container.setAttribute('data-queue-step', queueStep);
            document.body.removeAttribute('data-swal2-queue-step');
          }
        };
        /**
         * This module containts `WeakMap`s for each effectively-"private  property" that a `Swal` has.
         * For example, to set the private property "foo" of `this` to "bar", you can `privateProps.foo.set(this, 'bar')`
         * This is the approach that Babel will probably take to implement private methods/fields
         *   https://github.com/tc39/proposal-private-methods
         *   https://github.com/babel/babel/pull/7555
         * Once we have the changes from that PR in Babel, and our core class fits reasonable in *one module*
         *   then we can use that language feature.
         */


        var privateProps = {
          promise: new WeakMap(),
          innerParams: new WeakMap(),
          domCache: new WeakMap()
        };
        var inputTypes = ['input', 'file', 'range', 'select', 'radio', 'checkbox', 'textarea'];

        var renderInput = function renderInput(instance, params) {
          var content = getContent();
          var innerParams = privateProps.innerParams.get(instance);
          var rerender = !innerParams || params.input !== innerParams.input;
          inputTypes.forEach(function (inputType) {
            var inputClass = swalClasses[inputType];
            var inputContainer = getChildByClass(content, inputClass); // set attributes

            setAttributes(inputType, params.inputAttributes); // set class

            inputContainer.className = inputClass;

            if (rerender) {
              hide(inputContainer);
            }
          });

          if (params.input) {
            if (rerender) {
              showInput(params);
            } // set custom class


            setCustomClass(params);
          }
        };

        var showInput = function showInput(params) {
          if (!renderInputType[params.input]) {
            return error("Unexpected type of input! Expected \"text\", \"email\", \"password\", \"number\", \"tel\", \"select\", \"radio\", \"checkbox\", \"textarea\", \"file\" or \"url\", got \"".concat(params.input, "\""));
          }

          var inputContainer = getInputContainer(params.input);
          var input = renderInputType[params.input](inputContainer, params);
          show(input); // input autofocus

          setTimeout(function () {
            focusInput(input);
          });
        };

        var removeAttributes = function removeAttributes(input) {
          for (var i = 0; i < input.attributes.length; i++) {
            var attrName = input.attributes[i].name;

            if (!(['type', 'value', 'style'].indexOf(attrName) !== -1)) {
              input.removeAttribute(attrName);
            }
          }
        };

        var setAttributes = function setAttributes(inputType, inputAttributes) {
          var input = getInput(getContent(), inputType);

          if (!input) {
            return;
          }

          removeAttributes(input);

          for (var attr in inputAttributes) {
            // Do not set a placeholder for <input type="range">
            // it'll crash Edge, #1298
            if (inputType === 'range' && attr === 'placeholder') {
              continue;
            }

            input.setAttribute(attr, inputAttributes[attr]);
          }
        };

        var setCustomClass = function setCustomClass(params) {
          var inputContainer = getInputContainer(params.input);

          if (params.customClass) {
            addClass(inputContainer, params.customClass.input);
          }
        };

        var setInputPlaceholder = function setInputPlaceholder(input, params) {
          if (!input.placeholder || params.inputPlaceholder) {
            input.placeholder = params.inputPlaceholder;
          }
        };

        var setInputLabel = function setInputLabel(input, prependTo, params) {
          if (params.inputLabel) {
            input.id = swalClasses.input;
            var label = document.createElement('label');
            var labelClass = swalClasses['input-label'];
            label.setAttribute('for', input.id);
            label.className = labelClass;
            addClass(label, params.customClass.inputLabel);
            label.innerText = params.inputLabel;
            prependTo.insertAdjacentElement('beforebegin', label);
          }
        };

        var getInputContainer = function getInputContainer(inputType) {
          var inputClass = swalClasses[inputType] ? swalClasses[inputType] : swalClasses.input;
          return getChildByClass(getContent(), inputClass);
        };

        var renderInputType = {};

        renderInputType.text = renderInputType.email = renderInputType.password = renderInputType.number = renderInputType.tel = renderInputType.url = function (input, params) {
          if (typeof params.inputValue === 'string' || typeof params.inputValue === 'number') {
            input.value = params.inputValue;
          } else if (!isPromise(params.inputValue)) {
            warn("Unexpected type of inputValue! Expected \"string\", \"number\" or \"Promise\", got \"".concat(_typeof(params.inputValue), "\""));
          }

          setInputLabel(input, input, params);
          setInputPlaceholder(input, params);
          input.type = params.input;
          return input;
        };

        renderInputType.file = function (input, params) {
          setInputLabel(input, input, params);
          setInputPlaceholder(input, params);
          return input;
        };

        renderInputType.range = function (range, params) {
          var rangeInput = range.querySelector('input');
          var rangeOutput = range.querySelector('output');
          rangeInput.value = params.inputValue;
          rangeInput.type = params.input;
          rangeOutput.value = params.inputValue;
          setInputLabel(rangeInput, range, params);
          return range;
        };

        renderInputType.select = function (select, params) {
          select.textContent = '';

          if (params.inputPlaceholder) {
            var placeholder = document.createElement('option');
            setInnerHtml(placeholder, params.inputPlaceholder);
            placeholder.value = '';
            placeholder.disabled = true;
            placeholder.selected = true;
            select.appendChild(placeholder);
          }

          setInputLabel(select, select, params);
          return select;
        };

        renderInputType.radio = function (radio) {
          radio.textContent = '';
          return radio;
        };

        renderInputType.checkbox = function (checkboxContainer, params) {
          var checkbox = getInput(getContent(), 'checkbox');
          checkbox.value = 1;
          checkbox.id = swalClasses.checkbox;
          checkbox.checked = Boolean(params.inputValue);
          var label = checkboxContainer.querySelector('span');
          setInnerHtml(label, params.inputPlaceholder);
          return checkboxContainer;
        };

        renderInputType.textarea = function (textarea, params) {
          textarea.value = params.inputValue;
          setInputPlaceholder(textarea, params);
          setInputLabel(textarea, textarea, params);

          var getPadding = function getPadding(el) {
            return parseInt(window.getComputedStyle(el).paddingLeft) + parseInt(window.getComputedStyle(el).paddingRight);
          };

          if ('MutationObserver' in window) {
            // #1699
            var initialPopupWidth = parseInt(window.getComputedStyle(getPopup()).width);

            var outputsize = function outputsize() {
              var contentWidth = textarea.offsetWidth + getPadding(getPopup()) + getPadding(getContent());

              if (contentWidth > initialPopupWidth) {
                getPopup().style.width = "".concat(contentWidth, "px");
              } else {
                getPopup().style.width = null;
              }
            };

            new MutationObserver(outputsize).observe(textarea, {
              attributes: true,
              attributeFilter: ['style']
            });
          }

          return textarea;
        };

        var renderContent = function renderContent(instance, params) {
          var htmlContainer = getHtmlContainer();
          applyCustomClass(htmlContainer, params, 'htmlContainer'); // Content as HTML

          if (params.html) {
            parseHtmlToContainer(params.html, htmlContainer);
            show(htmlContainer, 'block'); // Content as plain text
          } else if (params.text) {
            htmlContainer.textContent = params.text;
            show(htmlContainer, 'block'); // No content
          } else {
            hide(htmlContainer);
          }

          renderInput(instance, params); // Custom class

          applyCustomClass(getContent(), params, 'content');
        };

        var renderFooter = function renderFooter(instance, params) {
          var footer = getFooter();
          toggle(footer, params.footer);

          if (params.footer) {
            parseHtmlToContainer(params.footer, footer);
          } // Custom class


          applyCustomClass(footer, params, 'footer');
        };

        var renderCloseButton = function renderCloseButton(instance, params) {
          var closeButton = getCloseButton();
          setInnerHtml(closeButton, params.closeButtonHtml); // Custom class

          applyCustomClass(closeButton, params, 'closeButton');
          toggle(closeButton, params.showCloseButton);
          closeButton.setAttribute('aria-label', params.closeButtonAriaLabel);
        };

        var renderIcon = function renderIcon(instance, params) {
          var innerParams = privateProps.innerParams.get(instance);
          var icon = getIcon(); // if the given icon already rendered, apply the styling without re-rendering the icon

          if (innerParams && params.icon === innerParams.icon) {
            // Custom or default content
            setContent(icon, params);
            applyStyles(icon, params);
            return;
          }

          if (!params.icon && !params.iconHtml) {
            return hide(icon);
          }

          if (params.icon && Object.keys(iconTypes).indexOf(params.icon) === -1) {
            error("Unknown icon! Expected \"success\", \"error\", \"warning\", \"info\" or \"question\", got \"".concat(params.icon, "\""));
            return hide(icon);
          }

          show(icon); // Custom or default content

          setContent(icon, params);
          applyStyles(icon, params); // Animate icon

          addClass(icon, params.showClass.icon);
        };

        var applyStyles = function applyStyles(icon, params) {
          for (var iconType in iconTypes) {
            if (params.icon !== iconType) {
              removeClass(icon, iconTypes[iconType]);
            }
          }

          addClass(icon, iconTypes[params.icon]); // Icon color

          setColor(icon, params); // Success icon background color

          adjustSuccessIconBackgoundColor(); // Custom class

          applyCustomClass(icon, params, 'icon');
        }; // Adjust success icon background color to match the popup background color


        var adjustSuccessIconBackgoundColor = function adjustSuccessIconBackgoundColor() {
          var popup = getPopup();
          var popupBackgroundColor = window.getComputedStyle(popup).getPropertyValue('background-color');
          var successIconParts = popup.querySelectorAll('[class^=swal2-success-circular-line], .swal2-success-fix');

          for (var i = 0; i < successIconParts.length; i++) {
            successIconParts[i].style.backgroundColor = popupBackgroundColor;
          }
        };

        var setContent = function setContent(icon, params) {
          icon.textContent = '';

          if (params.iconHtml) {
            setInnerHtml(icon, iconContent(params.iconHtml));
          } else if (params.icon === 'success') {
            setInnerHtml(icon, "\n      <div class=\"swal2-success-circular-line-left\"></div>\n      <span class=\"swal2-success-line-tip\"></span> <span class=\"swal2-success-line-long\"></span>\n      <div class=\"swal2-success-ring\"></div> <div class=\"swal2-success-fix\"></div>\n      <div class=\"swal2-success-circular-line-right\"></div>\n    ");
          } else if (params.icon === 'error') {
            setInnerHtml(icon, "\n      <span class=\"swal2-x-mark\">\n        <span class=\"swal2-x-mark-line-left\"></span>\n        <span class=\"swal2-x-mark-line-right\"></span>\n      </span>\n    ");
          } else {
            var defaultIconHtml = {
              question: '?',
              warning: '!',
              info: 'i'
            };
            setInnerHtml(icon, iconContent(defaultIconHtml[params.icon]));
          }
        };

        var setColor = function setColor(icon, params) {
          if (!params.iconColor) {
            return;
          }

          icon.style.color = params.iconColor;
          icon.style.borderColor = params.iconColor;

          for (var _i = 0, _arr = ['.swal2-success-line-tip', '.swal2-success-line-long', '.swal2-x-mark-line-left', '.swal2-x-mark-line-right']; _i < _arr.length; _i++) {
            var sel = _arr[_i];
            setStyle(icon, sel, 'backgroundColor', params.iconColor);
          }

          setStyle(icon, '.swal2-success-ring', 'borderColor', params.iconColor);
        };

        var iconContent = function iconContent(content) {
          return "<div class=\"".concat(swalClasses['icon-content'], "\">").concat(content, "</div>");
        };

        var renderImage = function renderImage(instance, params) {
          var image = getImage();

          if (!params.imageUrl) {
            return hide(image);
          }

          show(image, ''); // Src, alt

          image.setAttribute('src', params.imageUrl);
          image.setAttribute('alt', params.imageAlt); // Width, height

          applyNumericalStyle(image, 'width', params.imageWidth);
          applyNumericalStyle(image, 'height', params.imageHeight); // Class

          image.className = swalClasses.image;
          applyCustomClass(image, params, 'image');
        };

        var currentSteps = [];
        /*
         * Global function for chaining sweetAlert popups
         */

        var queue = function queue(steps) {
          var Swal = this;
          currentSteps = steps;

          var resetAndResolve = function resetAndResolve(resolve, value) {
            currentSteps = [];
            resolve(value);
          };

          var queueResult = [];
          return new Promise(function (resolve) {
            (function step(i, callback) {
              if (i < currentSteps.length) {
                document.body.setAttribute('data-swal2-queue-step', i);
                Swal.fire(currentSteps[i]).then(function (result) {
                  if (typeof result.value !== 'undefined') {
                    queueResult.push(result.value);
                    step(i + 1, callback);
                  } else {
                    resetAndResolve(resolve, {
                      dismiss: result.dismiss
                    });
                  }
                });
              } else {
                resetAndResolve(resolve, {
                  value: queueResult
                });
              }
            })(0);
          });
        };
        /*
         * Global function for getting the index of current popup in queue
         */


        var getQueueStep = function getQueueStep() {
          return getContainer() && getContainer().getAttribute('data-queue-step');
        };
        /*
         * Global function for inserting a popup to the queue
         */


        var insertQueueStep = function insertQueueStep(step, index) {
          if (index && index < currentSteps.length) {
            return currentSteps.splice(index, 0, step);
          }

          return currentSteps.push(step);
        };
        /*
         * Global function for deleting a popup from the queue
         */


        var deleteQueueStep = function deleteQueueStep(index) {
          if (typeof currentSteps[index] !== 'undefined') {
            currentSteps.splice(index, 1);
          }
        };

        var createStepElement = function createStepElement(step) {
          var stepEl = document.createElement('li');
          addClass(stepEl, swalClasses['progress-step']);
          setInnerHtml(stepEl, step);
          return stepEl;
        };

        var createLineElement = function createLineElement(params) {
          var lineEl = document.createElement('li');
          addClass(lineEl, swalClasses['progress-step-line']);

          if (params.progressStepsDistance) {
            lineEl.style.width = params.progressStepsDistance;
          }

          return lineEl;
        };

        var renderProgressSteps = function renderProgressSteps(instance, params) {
          var progressStepsContainer = getProgressSteps();

          if (!params.progressSteps || params.progressSteps.length === 0) {
            return hide(progressStepsContainer);
          }

          show(progressStepsContainer);
          progressStepsContainer.textContent = '';
          var currentProgressStep = parseInt(params.currentProgressStep === undefined ? getQueueStep() : params.currentProgressStep);

          if (currentProgressStep >= params.progressSteps.length) {
            warn('Invalid currentProgressStep parameter, it should be less than progressSteps.length ' + '(currentProgressStep like JS arrays starts from 0)');
          }

          params.progressSteps.forEach(function (step, index) {
            var stepEl = createStepElement(step);
            progressStepsContainer.appendChild(stepEl);

            if (index === currentProgressStep) {
              addClass(stepEl, swalClasses['active-progress-step']);
            }

            if (index !== params.progressSteps.length - 1) {
              var lineEl = createLineElement(params);
              progressStepsContainer.appendChild(lineEl);
            }
          });
        };

        var renderTitle = function renderTitle(instance, params) {
          var title = getTitle();
          toggle(title, params.title || params.titleText);

          if (params.title) {
            parseHtmlToContainer(params.title, title);
          }

          if (params.titleText) {
            title.innerText = params.titleText;
          } // Custom class


          applyCustomClass(title, params, 'title');
        };

        var renderHeader = function renderHeader(instance, params) {
          var header = getHeader(); // Custom class

          applyCustomClass(header, params, 'header'); // Progress steps

          renderProgressSteps(instance, params); // Icon

          renderIcon(instance, params); // Image

          renderImage(instance, params); // Title

          renderTitle(instance, params); // Close button

          renderCloseButton(instance, params);
        };

        var renderPopup = function renderPopup(instance, params) {
          var container = getContainer();
          var popup = getPopup(); // Width

          if (params.toast) {
            // #2170
            applyNumericalStyle(container, 'width', params.width);
            popup.style.width = '100%';
          } else {
            applyNumericalStyle(popup, 'width', params.width);
          } // Padding


          applyNumericalStyle(popup, 'padding', params.padding); // Background

          if (params.background) {
            popup.style.background = params.background;
          } // Classes


          addClasses(popup, params);
        };

        var addClasses = function addClasses(popup, params) {
          // Default Class + showClass when updating Swal.update({})
          popup.className = "".concat(swalClasses.popup, " ").concat(isVisible(popup) ? params.showClass.popup : '');

          if (params.toast) {
            addClass([document.documentElement, document.body], swalClasses['toast-shown']);
            addClass(popup, swalClasses.toast);
          } else {
            addClass(popup, swalClasses.modal);
          } // Custom class


          applyCustomClass(popup, params, 'popup');

          if (typeof params.customClass === 'string') {
            addClass(popup, params.customClass);
          } // Icon class (#1842)


          if (params.icon) {
            addClass(popup, swalClasses["icon-".concat(params.icon)]);
          }
        };

        var render = function render(instance, params) {
          renderPopup(instance, params);
          renderContainer(instance, params);
          renderHeader(instance, params);
          renderContent(instance, params);
          renderActions(instance, params);
          renderFooter(instance, params);

          if (typeof params.didRender === 'function') {
            params.didRender(getPopup());
          } else if (typeof params.onRender === 'function') {
            params.onRender(getPopup()); // @deprecated
          }
        };
        /*
         * Global function to determine if SweetAlert2 popup is shown
         */


        var isVisible$1 = function isVisible$$1() {
          return isVisible(getPopup());
        };
        /*
         * Global function to click 'Confirm' button
         */


        var clickConfirm = function clickConfirm() {
          return getConfirmButton() && getConfirmButton().click();
        };
        /*
         * Global function to click 'Deny' button
         */


        var clickDeny = function clickDeny() {
          return getDenyButton() && getDenyButton().click();
        };
        /*
         * Global function to click 'Cancel' button
         */


        var clickCancel = function clickCancel() {
          return getCancelButton() && getCancelButton().click();
        };

        function fire() {
          var Swal = this;

          for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
            args[_key] = arguments[_key];
          }

          return _construct(Swal, args);
        }
        /**
         * Returns an extended version of `Swal` containing `params` as defaults.
         * Useful for reusing Swal configuration.
         *
         * For example:
         *
         * Before:
         * const textPromptOptions = { input: 'text', showCancelButton: true }
         * const {value: firstName} = await Swal.fire({ ...textPromptOptions, title: 'What is your first name?' })
         * const {value: lastName} = await Swal.fire({ ...textPromptOptions, title: 'What is your last name?' })
         *
         * After:
         * const TextPrompt = Swal.mixin({ input: 'text', showCancelButton: true })
         * const {value: firstName} = await TextPrompt('What is your first name?')
         * const {value: lastName} = await TextPrompt('What is your last name?')
         *
         * @param mixinParams
         */


        function mixin(mixinParams) {
          var MixinSwal = /*#__PURE__*/function (_this) {
            _inherits(MixinSwal, _this);

            var _super = _createSuper(MixinSwal);

            function MixinSwal() {
              _classCallCheck(this, MixinSwal);

              return _super.apply(this, arguments);
            }

            _createClass(MixinSwal, [{
              key: "_main",
              value: function _main(params, priorityMixinParams) {
                return _get(_getPrototypeOf(MixinSwal.prototype), "_main", this).call(this, params, _extends({}, mixinParams, priorityMixinParams));
              }
            }]);

            return MixinSwal;
          }(this);

          return MixinSwal;
        }
        /**
         * Shows loader (spinner), this is useful with AJAX requests.
         * By default the loader be shown instead of the "Confirm" button.
         */


        var showLoading = function showLoading(buttonToReplace) {
          var popup = getPopup();

          if (!popup) {
            Swal.fire();
          }

          popup = getPopup();
          var actions = getActions();
          var loader = getLoader();

          if (!buttonToReplace && isVisible(getConfirmButton())) {
            buttonToReplace = getConfirmButton();
          }

          show(actions);

          if (buttonToReplace) {
            hide(buttonToReplace);
            loader.setAttribute('data-button-to-replace', buttonToReplace.className);
          }

          loader.parentNode.insertBefore(loader, buttonToReplace);
          addClass([popup, actions], swalClasses.loading);
          show(loader);
          popup.setAttribute('data-loading', true);
          popup.setAttribute('aria-busy', true);
          popup.focus();
        };

        var RESTORE_FOCUS_TIMEOUT = 100;
        var globalState = {};

        var focusPreviousActiveElement = function focusPreviousActiveElement() {
          if (globalState.previousActiveElement && globalState.previousActiveElement.focus) {
            globalState.previousActiveElement.focus();
            globalState.previousActiveElement = null;
          } else if (document.body) {
            document.body.focus();
          }
        }; // Restore previous active (focused) element


        var restoreActiveElement = function restoreActiveElement() {
          return new Promise(function (resolve) {
            var x = window.scrollX;
            var y = window.scrollY;
            globalState.restoreFocusTimeout = setTimeout(function () {
              focusPreviousActiveElement();
              resolve();
            }, RESTORE_FOCUS_TIMEOUT); // issues/900

            /* istanbul ignore if */

            if (typeof x !== 'undefined' && typeof y !== 'undefined') {
              // IE doesn't have scrollX/scrollY support
              window.scrollTo(x, y);
            }
          });
        };
        /**
         * If `timer` parameter is set, returns number of milliseconds of timer remained.
         * Otherwise, returns undefined.
         */


        var getTimerLeft = function getTimerLeft() {
          return globalState.timeout && globalState.timeout.getTimerLeft();
        };
        /**
         * Stop timer. Returns number of milliseconds of timer remained.
         * If `timer` parameter isn't set, returns undefined.
         */


        var stopTimer = function stopTimer() {
          if (globalState.timeout) {
            stopTimerProgressBar();
            return globalState.timeout.stop();
          }
        };
        /**
         * Resume timer. Returns number of milliseconds of timer remained.
         * If `timer` parameter isn't set, returns undefined.
         */


        var resumeTimer = function resumeTimer() {
          if (globalState.timeout) {
            var remaining = globalState.timeout.start();
            animateTimerProgressBar(remaining);
            return remaining;
          }
        };
        /**
         * Resume timer. Returns number of milliseconds of timer remained.
         * If `timer` parameter isn't set, returns undefined.
         */


        var toggleTimer = function toggleTimer() {
          var timer = globalState.timeout;
          return timer && (timer.running ? stopTimer() : resumeTimer());
        };
        /**
         * Increase timer. Returns number of milliseconds of an updated timer.
         * If `timer` parameter isn't set, returns undefined.
         */


        var increaseTimer = function increaseTimer(n) {
          if (globalState.timeout) {
            var remaining = globalState.timeout.increase(n);
            animateTimerProgressBar(remaining, true);
            return remaining;
          }
        };
        /**
         * Check if timer is running. Returns true if timer is running
         * or false if timer is paused or stopped.
         * If `timer` parameter isn't set, returns undefined
         */


        var isTimerRunning = function isTimerRunning() {
          return globalState.timeout && globalState.timeout.isRunning();
        };

        var bodyClickListenerAdded = false;
        var clickHandlers = {};

        function bindClickHandler() {
          var attr = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'data-swal-template';
          clickHandlers[attr] = this;

          if (!bodyClickListenerAdded) {
            document.body.addEventListener('click', bodyClickListener);
            bodyClickListenerAdded = true;
          }
        }

        var bodyClickListener = function bodyClickListener(event) {
          // 1. using .parentNode instead of event.path because of better support by old browsers https://stackoverflow.com/a/39245638
          // 2. using .parentNode instead of .parentElement because of IE11 + SVG https://stackoverflow.com/a/36270354
          for (var el = event.target; el && el !== document; el = el.parentNode) {
            for (var attr in clickHandlers) {
              var template = el.getAttribute(attr);

              if (template) {
                clickHandlers[attr].fire({
                  template: template
                });
                return;
              }
            }
          }
        };

        var defaultParams = {
          title: '',
          titleText: '',
          text: '',
          html: '',
          footer: '',
          icon: undefined,
          iconColor: undefined,
          iconHtml: undefined,
          template: undefined,
          toast: false,
          animation: true,
          showClass: {
            popup: 'swal2-show',
            backdrop: 'swal2-backdrop-show',
            icon: 'swal2-icon-show'
          },
          hideClass: {
            popup: 'swal2-hide',
            backdrop: 'swal2-backdrop-hide',
            icon: 'swal2-icon-hide'
          },
          customClass: {},
          target: 'body',
          backdrop: true,
          heightAuto: true,
          allowOutsideClick: true,
          allowEscapeKey: true,
          allowEnterKey: true,
          stopKeydownPropagation: true,
          keydownListenerCapture: false,
          showConfirmButton: true,
          showDenyButton: false,
          showCancelButton: false,
          preConfirm: undefined,
          preDeny: undefined,
          confirmButtonText: 'OK',
          confirmButtonAriaLabel: '',
          confirmButtonColor: undefined,
          denyButtonText: 'No',
          denyButtonAriaLabel: '',
          denyButtonColor: undefined,
          cancelButtonText: 'Cancel',
          cancelButtonAriaLabel: '',
          cancelButtonColor: undefined,
          buttonsStyling: true,
          reverseButtons: false,
          focusConfirm: true,
          focusDeny: false,
          focusCancel: false,
          showCloseButton: false,
          closeButtonHtml: '&times;',
          closeButtonAriaLabel: 'Close this dialog',
          loaderHtml: '',
          showLoaderOnConfirm: false,
          showLoaderOnDeny: false,
          imageUrl: undefined,
          imageWidth: undefined,
          imageHeight: undefined,
          imageAlt: '',
          timer: undefined,
          timerProgressBar: false,
          width: undefined,
          padding: undefined,
          background: undefined,
          input: undefined,
          inputPlaceholder: '',
          inputLabel: '',
          inputValue: '',
          inputOptions: {},
          inputAutoTrim: true,
          inputAttributes: {},
          inputValidator: undefined,
          returnInputValueOnDeny: false,
          validationMessage: undefined,
          grow: false,
          position: 'center',
          progressSteps: [],
          currentProgressStep: undefined,
          progressStepsDistance: undefined,
          onBeforeOpen: undefined,
          onOpen: undefined,
          willOpen: undefined,
          didOpen: undefined,
          onRender: undefined,
          didRender: undefined,
          onClose: undefined,
          onAfterClose: undefined,
          willClose: undefined,
          didClose: undefined,
          onDestroy: undefined,
          didDestroy: undefined,
          scrollbarPadding: true
        };
        var updatableParams = ['allowEscapeKey', 'allowOutsideClick', 'background', 'buttonsStyling', 'cancelButtonAriaLabel', 'cancelButtonColor', 'cancelButtonText', 'closeButtonAriaLabel', 'closeButtonHtml', 'confirmButtonAriaLabel', 'confirmButtonColor', 'confirmButtonText', 'currentProgressStep', 'customClass', 'denyButtonAriaLabel', 'denyButtonColor', 'denyButtonText', 'didClose', 'didDestroy', 'footer', 'hideClass', 'html', 'icon', 'iconColor', 'iconHtml', 'imageAlt', 'imageHeight', 'imageUrl', 'imageWidth', 'onAfterClose', 'onClose', 'onDestroy', 'progressSteps', 'reverseButtons', 'showCancelButton', 'showCloseButton', 'showConfirmButton', 'showDenyButton', 'text', 'title', 'titleText', 'willClose'];
        var deprecatedParams = {
          animation: 'showClass" and "hideClass',
          onBeforeOpen: 'willOpen',
          onOpen: 'didOpen',
          onRender: 'didRender',
          onClose: 'willClose',
          onAfterClose: 'didClose',
          onDestroy: 'didDestroy'
        };
        var toastIncompatibleParams = ['allowOutsideClick', 'allowEnterKey', 'backdrop', 'focusConfirm', 'focusDeny', 'focusCancel', 'heightAuto', 'keydownListenerCapture'];
        /**
         * Is valid parameter
         * @param {String} paramName
         */

        var isValidParameter = function isValidParameter(paramName) {
          return Object.prototype.hasOwnProperty.call(defaultParams, paramName);
        };
        /**
         * Is valid parameter for Swal.update() method
         * @param {String} paramName
         */


        var isUpdatableParameter = function isUpdatableParameter(paramName) {
          return updatableParams.indexOf(paramName) !== -1;
        };
        /**
         * Is deprecated parameter
         * @param {String} paramName
         */


        var isDeprecatedParameter = function isDeprecatedParameter(paramName) {
          return deprecatedParams[paramName];
        };

        var checkIfParamIsValid = function checkIfParamIsValid(param) {
          if (!isValidParameter(param)) {
            warn("Unknown parameter \"".concat(param, "\""));
          }
        };

        var checkIfToastParamIsValid = function checkIfToastParamIsValid(param) {
          if (toastIncompatibleParams.indexOf(param) !== -1) {
            warn("The parameter \"".concat(param, "\" is incompatible with toasts"));
          }
        };

        var checkIfParamIsDeprecated = function checkIfParamIsDeprecated(param) {
          if (isDeprecatedParameter(param)) {
            warnAboutDeprecation(param, isDeprecatedParameter(param));
          }
        };
        /**
         * Show relevant warnings for given params
         *
         * @param params
         */


        var showWarningsForParams = function showWarningsForParams(params) {
          for (var param in params) {
            checkIfParamIsValid(param);

            if (params.toast) {
              checkIfToastParamIsValid(param);
            }

            checkIfParamIsDeprecated(param);
          }
        };

        var staticMethods = /*#__PURE__*/Object.freeze({
          isValidParameter: isValidParameter,
          isUpdatableParameter: isUpdatableParameter,
          isDeprecatedParameter: isDeprecatedParameter,
          argsToParams: argsToParams,
          isVisible: isVisible$1,
          clickConfirm: clickConfirm,
          clickDeny: clickDeny,
          clickCancel: clickCancel,
          getContainer: getContainer,
          getPopup: getPopup,
          getTitle: getTitle,
          getContent: getContent,
          getHtmlContainer: getHtmlContainer,
          getImage: getImage,
          getIcon: getIcon,
          getInputLabel: getInputLabel,
          getCloseButton: getCloseButton,
          getActions: getActions,
          getConfirmButton: getConfirmButton,
          getDenyButton: getDenyButton,
          getCancelButton: getCancelButton,
          getLoader: getLoader,
          getHeader: getHeader,
          getFooter: getFooter,
          getTimerProgressBar: getTimerProgressBar,
          getFocusableElements: getFocusableElements,
          getValidationMessage: getValidationMessage,
          isLoading: isLoading,
          fire: fire,
          mixin: mixin,
          queue: queue,
          getQueueStep: getQueueStep,
          insertQueueStep: insertQueueStep,
          deleteQueueStep: deleteQueueStep,
          showLoading: showLoading,
          enableLoading: showLoading,
          getTimerLeft: getTimerLeft,
          stopTimer: stopTimer,
          resumeTimer: resumeTimer,
          toggleTimer: toggleTimer,
          increaseTimer: increaseTimer,
          isTimerRunning: isTimerRunning,
          bindClickHandler: bindClickHandler
        });
        /**
         * Hides loader and shows back the button which was hidden by .showLoading()
         */

        function hideLoading() {
          // do nothing if popup is closed
          var innerParams = privateProps.innerParams.get(this);

          if (!innerParams) {
            return;
          }

          var domCache = privateProps.domCache.get(this);
          hide(domCache.loader);
          var buttonToReplace = domCache.popup.getElementsByClassName(domCache.loader.getAttribute('data-button-to-replace'));

          if (buttonToReplace.length) {
            show(buttonToReplace[0], 'inline-block');
          } else if (allButtonsAreHidden()) {
            hide(domCache.actions);
          }

          removeClass([domCache.popup, domCache.actions], swalClasses.loading);
          domCache.popup.removeAttribute('aria-busy');
          domCache.popup.removeAttribute('data-loading');
          domCache.confirmButton.disabled = false;
          domCache.denyButton.disabled = false;
          domCache.cancelButton.disabled = false;
        }

        function getInput$1(instance) {
          var innerParams = privateProps.innerParams.get(instance || this);
          var domCache = privateProps.domCache.get(instance || this);

          if (!domCache) {
            return null;
          }

          return getInput(domCache.content, innerParams.input);
        }

        var fixScrollbar = function fixScrollbar() {
          // for queues, do not do this more than once
          if (states.previousBodyPadding !== null) {
            return;
          } // if the body has overflow


          if (document.body.scrollHeight > window.innerHeight) {
            // add padding so the content doesn't shift after removal of scrollbar
            states.previousBodyPadding = parseInt(window.getComputedStyle(document.body).getPropertyValue('padding-right'));
            document.body.style.paddingRight = "".concat(states.previousBodyPadding + measureScrollbar(), "px");
          }
        };

        var undoScrollbar = function undoScrollbar() {
          if (states.previousBodyPadding !== null) {
            document.body.style.paddingRight = "".concat(states.previousBodyPadding, "px");
            states.previousBodyPadding = null;
          }
        };
        /* istanbul ignore file */


        var iOSfix = function iOSfix() {
          var iOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream || navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1;

          if (iOS && !hasClass(document.body, swalClasses.iosfix)) {
            var offset = document.body.scrollTop;
            document.body.style.top = "".concat(offset * -1, "px");
            addClass(document.body, swalClasses.iosfix);
            lockBodyScroll();
            addBottomPaddingForTallPopups(); // #1948
          }
        };

        var addBottomPaddingForTallPopups = function addBottomPaddingForTallPopups() {
          var safari = !navigator.userAgent.match(/(CriOS|FxiOS|EdgiOS|YaBrowser|UCBrowser)/i);

          if (safari) {
            var bottomPanelHeight = 44;

            if (getPopup().scrollHeight > window.innerHeight - bottomPanelHeight) {
              getContainer().style.paddingBottom = "".concat(bottomPanelHeight, "px");
            }
          }
        };

        var lockBodyScroll = function lockBodyScroll() {
          // #1246
          var container = getContainer();
          var preventTouchMove;

          container.ontouchstart = function (e) {
            preventTouchMove = shouldPreventTouchMove(e);
          };

          container.ontouchmove = function (e) {
            if (preventTouchMove) {
              e.preventDefault();
              e.stopPropagation();
            }
          };
        };

        var shouldPreventTouchMove = function shouldPreventTouchMove(event) {
          var target = event.target;
          var container = getContainer();

          if (isStylys(event) || isZoom(event)) {
            return false;
          }

          if (target === container) {
            return true;
          }

          if (!isScrollable(container) && target.tagName !== 'INPUT' && // #1603
          !(isScrollable(getContent()) && // #1944
          getContent().contains(target))) {
            return true;
          }

          return false;
        };

        var isStylys = function isStylys(event) {
          // #1786
          return event.touches && event.touches.length && event.touches[0].touchType === 'stylus';
        };

        var isZoom = function isZoom(event) {
          // #1891
          return event.touches && event.touches.length > 1;
        };

        var undoIOSfix = function undoIOSfix() {
          if (hasClass(document.body, swalClasses.iosfix)) {
            var offset = parseInt(document.body.style.top, 10);
            removeClass(document.body, swalClasses.iosfix);
            document.body.style.top = '';
            document.body.scrollTop = offset * -1;
          }
        };
        /* istanbul ignore file */


        var isIE11 = function isIE11() {
          return !!window.MSInputMethodContext && !!document.documentMode;
        }; // Fix IE11 centering sweetalert2/issues/933


        var fixVerticalPositionIE = function fixVerticalPositionIE() {
          var container = getContainer();
          var popup = getPopup();
          container.style.removeProperty('align-items');

          if (popup.offsetTop < 0) {
            container.style.alignItems = 'flex-start';
          }
        };

        var IEfix = function IEfix() {
          if (typeof window !== 'undefined' && isIE11()) {
            fixVerticalPositionIE();
            window.addEventListener('resize', fixVerticalPositionIE);
          }
        };

        var undoIEfix = function undoIEfix() {
          if (typeof window !== 'undefined' && isIE11()) {
            window.removeEventListener('resize', fixVerticalPositionIE);
          }
        }; // Adding aria-hidden="true" to elements outside of the active modal dialog ensures that
        // elements not within the active modal dialog will not be surfaced if a user opens a screen
        // reader’s list of elements (headings, form controls, landmarks, etc.) in the document.


        var setAriaHidden = function setAriaHidden() {
          var bodyChildren = toArray(document.body.children);
          bodyChildren.forEach(function (el) {
            if (el === getContainer() || contains(el, getContainer())) {
              return;
            }

            if (el.hasAttribute('aria-hidden')) {
              el.setAttribute('data-previous-aria-hidden', el.getAttribute('aria-hidden'));
            }

            el.setAttribute('aria-hidden', 'true');
          });
        };

        var unsetAriaHidden = function unsetAriaHidden() {
          var bodyChildren = toArray(document.body.children);
          bodyChildren.forEach(function (el) {
            if (el.hasAttribute('data-previous-aria-hidden')) {
              el.setAttribute('aria-hidden', el.getAttribute('data-previous-aria-hidden'));
              el.removeAttribute('data-previous-aria-hidden');
            } else {
              el.removeAttribute('aria-hidden');
            }
          });
        };
        /**
         * This module containts `WeakMap`s for each effectively-"private  property" that a `Swal` has.
         * For example, to set the private property "foo" of `this` to "bar", you can `privateProps.foo.set(this, 'bar')`
         * This is the approach that Babel will probably take to implement private methods/fields
         *   https://github.com/tc39/proposal-private-methods
         *   https://github.com/babel/babel/pull/7555
         * Once we have the changes from that PR in Babel, and our core class fits reasonable in *one module*
         *   then we can use that language feature.
         */


        var privateMethods = {
          swalPromiseResolve: new WeakMap()
        };
        /*
         * Instance method to close sweetAlert
         */

        function removePopupAndResetState(instance, container, isToast$$1, didClose) {
          if (isToast$$1) {
            triggerDidCloseAndDispose(instance, didClose);
          } else {
            restoreActiveElement().then(function () {
              return triggerDidCloseAndDispose(instance, didClose);
            });
            globalState.keydownTarget.removeEventListener('keydown', globalState.keydownHandler, {
              capture: globalState.keydownListenerCapture
            });
            globalState.keydownHandlerAdded = false;
          }

          if (container.parentNode && !document.body.getAttribute('data-swal2-queue-step')) {
            container.parentNode.removeChild(container);
          }

          if (isModal()) {
            undoScrollbar();
            undoIOSfix();
            undoIEfix();
            unsetAriaHidden();
          }

          removeBodyClasses();
        }

        function removeBodyClasses() {
          removeClass([document.documentElement, document.body], [swalClasses.shown, swalClasses['height-auto'], swalClasses['no-backdrop'], swalClasses['toast-shown'], swalClasses['toast-column']]);
        }

        function close(resolveValue) {
          var popup = getPopup();

          if (!popup) {
            return;
          }

          resolveValue = prepareResolveValue(resolveValue);
          var innerParams = privateProps.innerParams.get(this);

          if (!innerParams || hasClass(popup, innerParams.hideClass.popup)) {
            return;
          }

          var swalPromiseResolve = privateMethods.swalPromiseResolve.get(this);
          removeClass(popup, innerParams.showClass.popup);
          addClass(popup, innerParams.hideClass.popup);
          var backdrop = getContainer();
          removeClass(backdrop, innerParams.showClass.backdrop);
          addClass(backdrop, innerParams.hideClass.backdrop);
          handlePopupAnimation(this, popup, innerParams); // Resolve Swal promise

          swalPromiseResolve(resolveValue);
        }

        var prepareResolveValue = function prepareResolveValue(resolveValue) {
          // When user calls Swal.close()
          if (typeof resolveValue === 'undefined') {
            return {
              isConfirmed: false,
              isDenied: false,
              isDismissed: true
            };
          }

          return _extends({
            isConfirmed: false,
            isDenied: false,
            isDismissed: false
          }, resolveValue);
        };

        var handlePopupAnimation = function handlePopupAnimation(instance, popup, innerParams) {
          var container = getContainer(); // If animation is supported, animate

          var animationIsSupported = animationEndEvent && hasCssAnimation(popup);
          var onClose = innerParams.onClose,
              onAfterClose = innerParams.onAfterClose,
              willClose = innerParams.willClose,
              didClose = innerParams.didClose;
          runDidClose(popup, willClose, onClose);

          if (animationIsSupported) {
            animatePopup(instance, popup, container, didClose || onAfterClose);
          } else {
            // Otherwise, remove immediately
            removePopupAndResetState(instance, container, isToast(), didClose || onAfterClose);
          }
        };

        var runDidClose = function runDidClose(popup, willClose, onClose) {
          if (willClose !== null && typeof willClose === 'function') {
            willClose(popup);
          } else if (onClose !== null && typeof onClose === 'function') {
            onClose(popup); // @deprecated
          }
        };

        var animatePopup = function animatePopup(instance, popup, container, didClose) {
          globalState.swalCloseEventFinishedCallback = removePopupAndResetState.bind(null, instance, container, isToast(), didClose);
          popup.addEventListener(animationEndEvent, function (e) {
            if (e.target === popup) {
              globalState.swalCloseEventFinishedCallback();
              delete globalState.swalCloseEventFinishedCallback;
            }
          });
        };

        var triggerDidCloseAndDispose = function triggerDidCloseAndDispose(instance, didClose) {
          setTimeout(function () {
            if (typeof didClose === 'function') {
              didClose();
            }

            instance._destroy();
          });
        };

        function setButtonsDisabled(instance, buttons, disabled) {
          var domCache = privateProps.domCache.get(instance);
          buttons.forEach(function (button) {
            domCache[button].disabled = disabled;
          });
        }

        function setInputDisabled(input, disabled) {
          if (!input) {
            return false;
          }

          if (input.type === 'radio') {
            var radiosContainer = input.parentNode.parentNode;
            var radios = radiosContainer.querySelectorAll('input');

            for (var i = 0; i < radios.length; i++) {
              radios[i].disabled = disabled;
            }
          } else {
            input.disabled = disabled;
          }
        }

        function enableButtons() {
          setButtonsDisabled(this, ['confirmButton', 'denyButton', 'cancelButton'], false);
        }

        function disableButtons() {
          setButtonsDisabled(this, ['confirmButton', 'denyButton', 'cancelButton'], true);
        }

        function enableInput() {
          return setInputDisabled(this.getInput(), false);
        }

        function disableInput() {
          return setInputDisabled(this.getInput(), true);
        }

        function showValidationMessage(error) {
          var domCache = privateProps.domCache.get(this);
          var params = privateProps.innerParams.get(this);
          setInnerHtml(domCache.validationMessage, error);
          domCache.validationMessage.className = swalClasses['validation-message'];

          if (params.customClass && params.customClass.validationMessage) {
            addClass(domCache.validationMessage, params.customClass.validationMessage);
          }

          show(domCache.validationMessage);
          var input = this.getInput();

          if (input) {
            input.setAttribute('aria-invalid', true);
            input.setAttribute('aria-describedBy', swalClasses['validation-message']);
            focusInput(input);
            addClass(input, swalClasses.inputerror);
          }
        } // Hide block with validation message


        function resetValidationMessage$1() {
          var domCache = privateProps.domCache.get(this);

          if (domCache.validationMessage) {
            hide(domCache.validationMessage);
          }

          var input = this.getInput();

          if (input) {
            input.removeAttribute('aria-invalid');
            input.removeAttribute('aria-describedBy');
            removeClass(input, swalClasses.inputerror);
          }
        }

        function getProgressSteps$1() {
          var domCache = privateProps.domCache.get(this);
          return domCache.progressSteps;
        }

        var Timer = /*#__PURE__*/function () {
          function Timer(callback, delay) {
            _classCallCheck(this, Timer);

            this.callback = callback;
            this.remaining = delay;
            this.running = false;
            this.start();
          }

          _createClass(Timer, [{
            key: "start",
            value: function start() {
              if (!this.running) {
                this.running = true;
                this.started = new Date();
                this.id = setTimeout(this.callback, this.remaining);
              }

              return this.remaining;
            }
          }, {
            key: "stop",
            value: function stop() {
              if (this.running) {
                this.running = false;
                clearTimeout(this.id);
                this.remaining -= new Date() - this.started;
              }

              return this.remaining;
            }
          }, {
            key: "increase",
            value: function increase(n) {
              var running = this.running;

              if (running) {
                this.stop();
              }

              this.remaining += n;

              if (running) {
                this.start();
              }

              return this.remaining;
            }
          }, {
            key: "getTimerLeft",
            value: function getTimerLeft() {
              if (this.running) {
                this.stop();
                this.start();
              }

              return this.remaining;
            }
          }, {
            key: "isRunning",
            value: function isRunning() {
              return this.running;
            }
          }]);

          return Timer;
        }();

        var defaultInputValidators = {
          email: function email(string, validationMessage) {
            return /^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(string) ? Promise.resolve() : Promise.resolve(validationMessage || 'Invalid email address');
          },
          url: function url(string, validationMessage) {
            // taken from https://stackoverflow.com/a/3809435 with a small change from #1306 and #2013
            return /^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(string) ? Promise.resolve() : Promise.resolve(validationMessage || 'Invalid URL');
          }
        };

        function setDefaultInputValidators(params) {
          // Use default `inputValidator` for supported input types if not provided
          if (!params.inputValidator) {
            Object.keys(defaultInputValidators).forEach(function (key) {
              if (params.input === key) {
                params.inputValidator = defaultInputValidators[key];
              }
            });
          }
        }

        function validateCustomTargetElement(params) {
          // Determine if the custom target element is valid
          if (!params.target || typeof params.target === 'string' && !document.querySelector(params.target) || typeof params.target !== 'string' && !params.target.appendChild) {
            warn('Target parameter is not valid, defaulting to "body"');
            params.target = 'body';
          }
        }
        /**
         * Set type, text and actions on popup
         *
         * @param params
         * @returns {boolean}
         */


        function setParameters(params) {
          setDefaultInputValidators(params); // showLoaderOnConfirm && preConfirm

          if (params.showLoaderOnConfirm && !params.preConfirm) {
            warn('showLoaderOnConfirm is set to true, but preConfirm is not defined.\n' + 'showLoaderOnConfirm should be used together with preConfirm, see usage example:\n' + 'https://sweetalert2.github.io/#ajax-request');
          } // params.animation will be actually used in renderPopup.js
          // but in case when params.animation is a function, we need to call that function
          // before popup (re)initialization, so it'll be possible to check Swal.isVisible()
          // inside the params.animation function


          params.animation = callIfFunction(params.animation);
          validateCustomTargetElement(params); // Replace newlines with <br> in title

          if (typeof params.title === 'string') {
            params.title = params.title.split('\n').join('<br />');
          }

          init(params);
        }

        var swalStringParams = ['swal-title', 'swal-html', 'swal-footer'];

        var getTemplateParams = function getTemplateParams(params) {
          var template = typeof params.template === 'string' ? document.querySelector(params.template) : params.template;

          if (!template) {
            return {};
          }

          var templateContent = template.content || template; // IE11

          showWarningsForElements(templateContent);

          var result = _extends(getSwalParams(templateContent), getSwalButtons(templateContent), getSwalImage(templateContent), getSwalIcon(templateContent), getSwalInput(templateContent), getSwalStringParams(templateContent, swalStringParams));

          return result;
        };

        var getSwalParams = function getSwalParams(templateContent) {
          var result = {};
          toArray(templateContent.querySelectorAll('swal-param')).forEach(function (param) {
            showWarningsForAttributes(param, ['name', 'value']);
            var paramName = param.getAttribute('name');
            var value = param.getAttribute('value');

            if (typeof defaultParams[paramName] === 'boolean' && value === 'false') {
              value = false;
            }

            if (_typeof(defaultParams[paramName]) === 'object') {
              value = JSON.parse(value);
            }

            result[paramName] = value;
          });
          return result;
        };

        var getSwalButtons = function getSwalButtons(templateContent) {
          var result = {};
          toArray(templateContent.querySelectorAll('swal-button')).forEach(function (button) {
            showWarningsForAttributes(button, ['type', 'color', 'aria-label']);
            var type = button.getAttribute('type');
            result["".concat(type, "ButtonText")] = button.innerHTML;
            result["show".concat(capitalizeFirstLetter(type), "Button")] = true;

            if (button.hasAttribute('color')) {
              result["".concat(type, "ButtonColor")] = button.getAttribute('color');
            }

            if (button.hasAttribute('aria-label')) {
              result["".concat(type, "ButtonAriaLabel")] = button.getAttribute('aria-label');
            }
          });
          return result;
        };

        var getSwalImage = function getSwalImage(templateContent) {
          var result = {};
          var image = templateContent.querySelector('swal-image');

          if (image) {
            showWarningsForAttributes(image, ['src', 'width', 'height', 'alt']);

            if (image.hasAttribute('src')) {
              result.imageUrl = image.getAttribute('src');
            }

            if (image.hasAttribute('width')) {
              result.imageWidth = image.getAttribute('width');
            }

            if (image.hasAttribute('height')) {
              result.imageHeight = image.getAttribute('height');
            }

            if (image.hasAttribute('alt')) {
              result.imageAlt = image.getAttribute('alt');
            }
          }

          return result;
        };

        var getSwalIcon = function getSwalIcon(templateContent) {
          var result = {};
          var icon = templateContent.querySelector('swal-icon');

          if (icon) {
            showWarningsForAttributes(icon, ['type', 'color']);

            if (icon.hasAttribute('type')) {
              result.icon = icon.getAttribute('type');
            }

            if (icon.hasAttribute('color')) {
              result.iconColor = icon.getAttribute('color');
            }

            result.iconHtml = icon.innerHTML;
          }

          return result;
        };

        var getSwalInput = function getSwalInput(templateContent) {
          var result = {};
          var input = templateContent.querySelector('swal-input');

          if (input) {
            showWarningsForAttributes(input, ['type', 'label', 'placeholder', 'value']);
            result.input = input.getAttribute('type') || 'text';

            if (input.hasAttribute('label')) {
              result.inputLabel = input.getAttribute('label');
            }

            if (input.hasAttribute('placeholder')) {
              result.inputPlaceholder = input.getAttribute('placeholder');
            }

            if (input.hasAttribute('value')) {
              result.inputValue = input.getAttribute('value');
            }
          }

          var inputOptions = templateContent.querySelectorAll('swal-input-option');

          if (inputOptions.length) {
            result.inputOptions = {};
            toArray(inputOptions).forEach(function (option) {
              showWarningsForAttributes(option, ['value']);
              var optionValue = option.getAttribute('value');
              var optionName = option.innerHTML;
              result.inputOptions[optionValue] = optionName;
            });
          }

          return result;
        };

        var getSwalStringParams = function getSwalStringParams(templateContent, paramNames) {
          var result = {};

          for (var i in paramNames) {
            var paramName = paramNames[i];
            var tag = templateContent.querySelector(paramName);

            if (tag) {
              showWarningsForAttributes(tag, []);
              result[paramName.replace(/^swal-/, '')] = tag.innerHTML;
            }
          }

          return result;
        };

        var showWarningsForElements = function showWarningsForElements(template) {
          var allowedElements = swalStringParams.concat(['swal-param', 'swal-button', 'swal-image', 'swal-icon', 'swal-input', 'swal-input-option']);
          toArray(template.querySelectorAll('*')).forEach(function (el) {
            if (el.parentNode !== template) {
              // can't use template.children because of IE11
              return;
            }

            var tagName = el.tagName.toLowerCase();

            if (allowedElements.indexOf(tagName) === -1) {
              warn("Unrecognized element <".concat(tagName, ">"));
            }
          });
        };

        var showWarningsForAttributes = function showWarningsForAttributes(el, allowedAttributes) {
          toArray(el.attributes).forEach(function (attribute) {
            if (allowedAttributes.indexOf(attribute.name) === -1) {
              warn(["Unrecognized attribute \"".concat(attribute.name, "\" on <").concat(el.tagName.toLowerCase(), ">."), "".concat(allowedAttributes.length ? "Allowed attributes are: ".concat(allowedAttributes.join(', ')) : 'To set the value, use HTML within the element.')]);
            }
          });
        };

        var SHOW_CLASS_TIMEOUT = 10;
        /**
         * Open popup, add necessary classes and styles, fix scrollbar
         *
         * @param params
         */

        var openPopup = function openPopup(params) {
          var container = getContainer();
          var popup = getPopup();

          if (typeof params.willOpen === 'function') {
            params.willOpen(popup);
          } else if (typeof params.onBeforeOpen === 'function') {
            params.onBeforeOpen(popup); // @deprecated
          }

          var bodyStyles = window.getComputedStyle(document.body);
          var initialBodyOverflow = bodyStyles.overflowY;
          addClasses$1(container, popup, params); // scrolling is 'hidden' until animation is done, after that 'auto'

          setTimeout(function () {
            setScrollingVisibility(container, popup);
          }, SHOW_CLASS_TIMEOUT);

          if (isModal()) {
            fixScrollContainer(container, params.scrollbarPadding, initialBodyOverflow);
            setAriaHidden();
          }

          if (!isToast() && !globalState.previousActiveElement) {
            globalState.previousActiveElement = document.activeElement;
          }

          runDidOpen(popup, params);
          removeClass(container, swalClasses['no-transition']);
        };

        var runDidOpen = function runDidOpen(popup, params) {
          if (typeof params.didOpen === 'function') {
            setTimeout(function () {
              return params.didOpen(popup);
            });
          } else if (typeof params.onOpen === 'function') {
            setTimeout(function () {
              return params.onOpen(popup);
            }); // @deprecated
          }
        };

        var swalOpenAnimationFinished = function swalOpenAnimationFinished(event) {
          var popup = getPopup();

          if (event.target !== popup) {
            return;
          }

          var container = getContainer();
          popup.removeEventListener(animationEndEvent, swalOpenAnimationFinished);
          container.style.overflowY = 'auto';
        };

        var setScrollingVisibility = function setScrollingVisibility(container, popup) {
          if (animationEndEvent && hasCssAnimation(popup)) {
            container.style.overflowY = 'hidden';
            popup.addEventListener(animationEndEvent, swalOpenAnimationFinished);
          } else {
            container.style.overflowY = 'auto';
          }
        };

        var fixScrollContainer = function fixScrollContainer(container, scrollbarPadding, initialBodyOverflow) {
          iOSfix();
          IEfix();

          if (scrollbarPadding && initialBodyOverflow !== 'hidden') {
            fixScrollbar();
          } // sweetalert2/issues/1247


          setTimeout(function () {
            container.scrollTop = 0;
          });
        };

        var addClasses$1 = function addClasses(container, popup, params) {
          addClass(container, params.showClass.backdrop); // the workaround with setting/unsetting opacity is needed for #2019 and 2059

          popup.style.setProperty('opacity', '0', 'important');
          show(popup);
          setTimeout(function () {
            // Animate popup right after showing it
            addClass(popup, params.showClass.popup); // and remove the opacity workaround

            popup.style.removeProperty('opacity');
          }, SHOW_CLASS_TIMEOUT); // 10ms in order to fix #2062

          addClass([document.documentElement, document.body], swalClasses.shown);

          if (params.heightAuto && params.backdrop && !params.toast) {
            addClass([document.documentElement, document.body], swalClasses['height-auto']);
          }
        };

        var handleInputOptionsAndValue = function handleInputOptionsAndValue(instance, params) {
          if (params.input === 'select' || params.input === 'radio') {
            handleInputOptions(instance, params);
          } else if (['text', 'email', 'number', 'tel', 'textarea'].indexOf(params.input) !== -1 && (hasToPromiseFn(params.inputValue) || isPromise(params.inputValue))) {
            handleInputValue(instance, params);
          }
        };

        var getInputValue = function getInputValue(instance, innerParams) {
          var input = instance.getInput();

          if (!input) {
            return null;
          }

          switch (innerParams.input) {
            case 'checkbox':
              return getCheckboxValue(input);

            case 'radio':
              return getRadioValue(input);

            case 'file':
              return getFileValue(input);

            default:
              return innerParams.inputAutoTrim ? input.value.trim() : input.value;
          }
        };

        var getCheckboxValue = function getCheckboxValue(input) {
          return input.checked ? 1 : 0;
        };

        var getRadioValue = function getRadioValue(input) {
          return input.checked ? input.value : null;
        };

        var getFileValue = function getFileValue(input) {
          return input.files.length ? input.getAttribute('multiple') !== null ? input.files : input.files[0] : null;
        };

        var handleInputOptions = function handleInputOptions(instance, params) {
          var content = getContent();

          var processInputOptions = function processInputOptions(inputOptions) {
            return populateInputOptions[params.input](content, formatInputOptions(inputOptions), params);
          };

          if (hasToPromiseFn(params.inputOptions) || isPromise(params.inputOptions)) {
            showLoading(getConfirmButton());
            asPromise(params.inputOptions).then(function (inputOptions) {
              instance.hideLoading();
              processInputOptions(inputOptions);
            });
          } else if (_typeof(params.inputOptions) === 'object') {
            processInputOptions(params.inputOptions);
          } else {
            error("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(_typeof(params.inputOptions)));
          }
        };

        var handleInputValue = function handleInputValue(instance, params) {
          var input = instance.getInput();
          hide(input);
          asPromise(params.inputValue).then(function (inputValue) {
            input.value = params.input === 'number' ? parseFloat(inputValue) || 0 : "".concat(inputValue);
            show(input);
            input.focus();
            instance.hideLoading();
          })["catch"](function (err) {
            error("Error in inputValue promise: ".concat(err));
            input.value = '';
            show(input);
            input.focus();
            instance.hideLoading();
          });
        };

        var populateInputOptions = {
          select: function select(content, inputOptions, params) {
            var select = getChildByClass(content, swalClasses.select);

            var renderOption = function renderOption(parent, optionLabel, optionValue) {
              var option = document.createElement('option');
              option.value = optionValue;
              setInnerHtml(option, optionLabel);
              option.selected = isSelected(optionValue, params.inputValue);
              parent.appendChild(option);
            };

            inputOptions.forEach(function (inputOption) {
              var optionValue = inputOption[0];
              var optionLabel = inputOption[1]; // <optgroup> spec:
              // https://www.w3.org/TR/html401/interact/forms.html#h-17.6
              // "...all OPTGROUP elements must be specified directly within a SELECT element (i.e., groups may not be nested)..."
              // check whether this is a <optgroup>

              if (Array.isArray(optionLabel)) {
                // if it is an array, then it is an <optgroup>
                var optgroup = document.createElement('optgroup');
                optgroup.label = optionValue;
                optgroup.disabled = false; // not configurable for now

                select.appendChild(optgroup);
                optionLabel.forEach(function (o) {
                  return renderOption(optgroup, o[1], o[0]);
                });
              } else {
                // case of <option>
                renderOption(select, optionLabel, optionValue);
              }
            });
            select.focus();
          },
          radio: function radio(content, inputOptions, params) {
            var radio = getChildByClass(content, swalClasses.radio);
            inputOptions.forEach(function (inputOption) {
              var radioValue = inputOption[0];
              var radioLabel = inputOption[1];
              var radioInput = document.createElement('input');
              var radioLabelElement = document.createElement('label');
              radioInput.type = 'radio';
              radioInput.name = swalClasses.radio;
              radioInput.value = radioValue;

              if (isSelected(radioValue, params.inputValue)) {
                radioInput.checked = true;
              }

              var label = document.createElement('span');
              setInnerHtml(label, radioLabel);
              label.className = swalClasses.label;
              radioLabelElement.appendChild(radioInput);
              radioLabelElement.appendChild(label);
              radio.appendChild(radioLabelElement);
            });
            var radios = radio.querySelectorAll('input');

            if (radios.length) {
              radios[0].focus();
            }
          }
        };
        /**
         * Converts `inputOptions` into an array of `[value, label]`s
         * @param inputOptions
         */

        var formatInputOptions = function formatInputOptions(inputOptions) {
          var result = [];

          if (typeof Map !== 'undefined' && inputOptions instanceof Map) {
            inputOptions.forEach(function (value, key) {
              var valueFormatted = value;

              if (_typeof(valueFormatted) === 'object') {
                // case of <optgroup>
                valueFormatted = formatInputOptions(valueFormatted);
              }

              result.push([key, valueFormatted]);
            });
          } else {
            Object.keys(inputOptions).forEach(function (key) {
              var valueFormatted = inputOptions[key];

              if (_typeof(valueFormatted) === 'object') {
                // case of <optgroup>
                valueFormatted = formatInputOptions(valueFormatted);
              }

              result.push([key, valueFormatted]);
            });
          }

          return result;
        };

        var isSelected = function isSelected(optionValue, inputValue) {
          return inputValue && inputValue.toString() === optionValue.toString();
        };

        var handleConfirmButtonClick = function handleConfirmButtonClick(instance, innerParams) {
          instance.disableButtons();

          if (innerParams.input) {
            handleConfirmOrDenyWithInput(instance, innerParams, 'confirm');
          } else {
            confirm(instance, innerParams, true);
          }
        };

        var handleDenyButtonClick = function handleDenyButtonClick(instance, innerParams) {
          instance.disableButtons();

          if (innerParams.returnInputValueOnDeny) {
            handleConfirmOrDenyWithInput(instance, innerParams, 'deny');
          } else {
            deny(instance, innerParams, false);
          }
        };

        var handleCancelButtonClick = function handleCancelButtonClick(instance, dismissWith) {
          instance.disableButtons();
          dismissWith(DismissReason.cancel);
        };

        var handleConfirmOrDenyWithInput = function handleConfirmOrDenyWithInput(instance, innerParams, type
        /* type is either 'confirm' or 'deny' */
        ) {
          var inputValue = getInputValue(instance, innerParams);

          if (innerParams.inputValidator) {
            handleInputValidator(instance, innerParams, inputValue);
          } else if (!instance.getInput().checkValidity()) {
            instance.enableButtons();
            instance.showValidationMessage(innerParams.validationMessage);
          } else if (type === 'deny') {
            deny(instance, innerParams, inputValue);
          } else {
            confirm(instance, innerParams, inputValue);
          }
        };

        var handleInputValidator = function handleInputValidator(instance, innerParams, inputValue) {
          instance.disableInput();
          var validationPromise = Promise.resolve().then(function () {
            return asPromise(innerParams.inputValidator(inputValue, innerParams.validationMessage));
          });
          validationPromise.then(function (validationMessage) {
            instance.enableButtons();
            instance.enableInput();

            if (validationMessage) {
              instance.showValidationMessage(validationMessage);
            } else {
              confirm(instance, innerParams, inputValue);
            }
          });
        };

        var deny = function deny(instance, innerParams, value) {
          if (innerParams.showLoaderOnDeny) {
            showLoading(getDenyButton());
          }

          if (innerParams.preDeny) {
            var preDenyPromise = Promise.resolve().then(function () {
              return asPromise(innerParams.preDeny(value, innerParams.validationMessage));
            });
            preDenyPromise.then(function (preDenyValue) {
              if (preDenyValue === false) {
                instance.hideLoading();
              } else {
                instance.closePopup({
                  isDenied: true,
                  value: typeof preDenyValue === 'undefined' ? value : preDenyValue
                });
              }
            });
          } else {
            instance.closePopup({
              isDenied: true,
              value: value
            });
          }
        };

        var succeedWith = function succeedWith(instance, value) {
          instance.closePopup({
            isConfirmed: true,
            value: value
          });
        };

        var confirm = function confirm(instance, innerParams, value) {
          if (innerParams.showLoaderOnConfirm) {
            showLoading(); // TODO: make showLoading an *instance* method
          }

          if (innerParams.preConfirm) {
            instance.resetValidationMessage();
            var preConfirmPromise = Promise.resolve().then(function () {
              return asPromise(innerParams.preConfirm(value, innerParams.validationMessage));
            });
            preConfirmPromise.then(function (preConfirmValue) {
              if (isVisible(getValidationMessage()) || preConfirmValue === false) {
                instance.hideLoading();
              } else {
                succeedWith(instance, typeof preConfirmValue === 'undefined' ? value : preConfirmValue);
              }
            });
          } else {
            succeedWith(instance, value);
          }
        };

        var addKeydownHandler = function addKeydownHandler(instance, globalState, innerParams, dismissWith) {
          if (globalState.keydownTarget && globalState.keydownHandlerAdded) {
            globalState.keydownTarget.removeEventListener('keydown', globalState.keydownHandler, {
              capture: globalState.keydownListenerCapture
            });
            globalState.keydownHandlerAdded = false;
          }

          if (!innerParams.toast) {
            globalState.keydownHandler = function (e) {
              return keydownHandler(instance, e, dismissWith);
            };

            globalState.keydownTarget = innerParams.keydownListenerCapture ? window : getPopup();
            globalState.keydownListenerCapture = innerParams.keydownListenerCapture;
            globalState.keydownTarget.addEventListener('keydown', globalState.keydownHandler, {
              capture: globalState.keydownListenerCapture
            });
            globalState.keydownHandlerAdded = true;
          }
        }; // Focus handling


        var setFocus = function setFocus(innerParams, index, increment) {
          var focusableElements = getFocusableElements(); // search for visible elements and select the next possible match

          if (focusableElements.length) {
            index = index + increment; // rollover to first item

            if (index === focusableElements.length) {
              index = 0; // go to last item
            } else if (index === -1) {
              index = focusableElements.length - 1;
            }

            return focusableElements[index].focus();
          } // no visible focusable elements, focus the popup


          getPopup().focus();
        };

        var arrowKeysNextButton = ['ArrowRight', 'ArrowDown', 'Right', 'Down' // IE11
        ];
        var arrowKeysPreviousButton = ['ArrowLeft', 'ArrowUp', 'Left', 'Up' // IE11
        ];
        var escKeys = ['Escape', 'Esc' // IE11
        ];

        var keydownHandler = function keydownHandler(instance, e, dismissWith) {
          var innerParams = privateProps.innerParams.get(instance);

          if (innerParams.stopKeydownPropagation) {
            e.stopPropagation();
          } // ENTER


          if (e.key === 'Enter') {
            handleEnter(instance, e, innerParams); // TAB
          } else if (e.key === 'Tab') {
            handleTab(e, innerParams); // ARROWS - switch focus between buttons
          } else if ([].concat(arrowKeysNextButton, arrowKeysPreviousButton).indexOf(e.key) !== -1) {
            handleArrows(e.key); // ESC
          } else if (escKeys.indexOf(e.key) !== -1) {
            handleEsc(e, innerParams, dismissWith);
          }
        };

        var handleEnter = function handleEnter(instance, e, innerParams) {
          // #720 #721
          if (e.isComposing) {
            return;
          }

          if (e.target && instance.getInput() && e.target.outerHTML === instance.getInput().outerHTML) {
            if (['textarea', 'file'].indexOf(innerParams.input) !== -1) {
              return; // do not submit
            }

            clickConfirm();
            e.preventDefault();
          }
        };

        var handleTab = function handleTab(e, innerParams) {
          var targetElement = e.target;
          var focusableElements = getFocusableElements();
          var btnIndex = -1;

          for (var i = 0; i < focusableElements.length; i++) {
            if (targetElement === focusableElements[i]) {
              btnIndex = i;
              break;
            }
          }

          if (!e.shiftKey) {
            // Cycle to the next button
            setFocus(innerParams, btnIndex, 1);
          } else {
            // Cycle to the prev button
            setFocus(innerParams, btnIndex, -1);
          }

          e.stopPropagation();
          e.preventDefault();
        };

        var handleArrows = function handleArrows(key) {
          var confirmButton = getConfirmButton();
          var denyButton = getDenyButton();
          var cancelButton = getCancelButton();

          if (!([confirmButton, denyButton, cancelButton].indexOf(document.activeElement) !== -1)) {
            return;
          }

          var sibling = arrowKeysNextButton.indexOf(key) !== -1 ? 'nextElementSibling' : 'previousElementSibling';
          var buttonToFocus = document.activeElement[sibling];

          if (buttonToFocus) {
            buttonToFocus.focus();
          }
        };

        var handleEsc = function handleEsc(e, innerParams, dismissWith) {
          if (callIfFunction(innerParams.allowEscapeKey)) {
            e.preventDefault();
            dismissWith(DismissReason.esc);
          }
        };

        var handlePopupClick = function handlePopupClick(instance, domCache, dismissWith) {
          var innerParams = privateProps.innerParams.get(instance);

          if (innerParams.toast) {
            handleToastClick(instance, domCache, dismissWith);
          } else {
            // Ignore click events that had mousedown on the popup but mouseup on the container
            // This can happen when the user drags a slider
            handleModalMousedown(domCache); // Ignore click events that had mousedown on the container but mouseup on the popup

            handleContainerMousedown(domCache);
            handleModalClick(instance, domCache, dismissWith);
          }
        };

        var handleToastClick = function handleToastClick(instance, domCache, dismissWith) {
          // Closing toast by internal click
          domCache.popup.onclick = function () {
            var innerParams = privateProps.innerParams.get(instance);

            if (innerParams.showConfirmButton || innerParams.showDenyButton || innerParams.showCancelButton || innerParams.showCloseButton || innerParams.timer || innerParams.input) {
              return;
            }

            dismissWith(DismissReason.close);
          };
        };

        var ignoreOutsideClick = false;

        var handleModalMousedown = function handleModalMousedown(domCache) {
          domCache.popup.onmousedown = function () {
            domCache.container.onmouseup = function (e) {
              domCache.container.onmouseup = undefined; // We only check if the mouseup target is the container because usually it doesn't
              // have any other direct children aside of the popup

              if (e.target === domCache.container) {
                ignoreOutsideClick = true;
              }
            };
          };
        };

        var handleContainerMousedown = function handleContainerMousedown(domCache) {
          domCache.container.onmousedown = function () {
            domCache.popup.onmouseup = function (e) {
              domCache.popup.onmouseup = undefined; // We also need to check if the mouseup target is a child of the popup

              if (e.target === domCache.popup || domCache.popup.contains(e.target)) {
                ignoreOutsideClick = true;
              }
            };
          };
        };

        var handleModalClick = function handleModalClick(instance, domCache, dismissWith) {
          domCache.container.onclick = function (e) {
            var innerParams = privateProps.innerParams.get(instance);

            if (ignoreOutsideClick) {
              ignoreOutsideClick = false;
              return;
            }

            if (e.target === domCache.container && callIfFunction(innerParams.allowOutsideClick)) {
              dismissWith(DismissReason.backdrop);
            }
          };
        };

        function _main(userParams) {
          var mixinParams = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
          showWarningsForParams(_extends({}, mixinParams, userParams));

          if (globalState.currentInstance) {
            globalState.currentInstance._destroy();
          }

          globalState.currentInstance = this;
          var innerParams = prepareParams(userParams, mixinParams);
          setParameters(innerParams);
          Object.freeze(innerParams); // clear the previous timer

          if (globalState.timeout) {
            globalState.timeout.stop();
            delete globalState.timeout;
          } // clear the restore focus timeout


          clearTimeout(globalState.restoreFocusTimeout);
          var domCache = populateDomCache(this);
          render(this, innerParams);
          privateProps.innerParams.set(this, innerParams);
          return swalPromise(this, domCache, innerParams);
        }

        var prepareParams = function prepareParams(userParams, mixinParams) {
          var templateParams = getTemplateParams(userParams);

          var showClass = _extends({}, defaultParams.showClass, mixinParams.showClass, templateParams.showClass, userParams.showClass);

          var hideClass = _extends({}, defaultParams.hideClass, mixinParams.hideClass, templateParams.hideClass, userParams.hideClass);

          var params = _extends({}, defaultParams, mixinParams, templateParams, userParams); // precedence is described in #2131


          params.showClass = showClass;
          params.hideClass = hideClass; // @deprecated

          if (userParams.animation === false) {
            params.showClass = {
              popup: 'swal2-noanimation',
              backdrop: 'swal2-noanimation'
            };
            params.hideClass = {};
          }

          return params;
        };

        var swalPromise = function swalPromise(instance, domCache, innerParams) {
          return new Promise(function (resolve) {
            // functions to handle all closings/dismissals
            var dismissWith = function dismissWith(dismiss) {
              instance.closePopup({
                isDismissed: true,
                dismiss: dismiss
              });
            };

            privateMethods.swalPromiseResolve.set(instance, resolve);

            domCache.confirmButton.onclick = function () {
              return handleConfirmButtonClick(instance, innerParams);
            };

            domCache.denyButton.onclick = function () {
              return handleDenyButtonClick(instance, innerParams);
            };

            domCache.cancelButton.onclick = function () {
              return handleCancelButtonClick(instance, dismissWith);
            };

            domCache.closeButton.onclick = function () {
              return dismissWith(DismissReason.close);
            };

            handlePopupClick(instance, domCache, dismissWith);
            addKeydownHandler(instance, globalState, innerParams, dismissWith);

            if (innerParams.toast && (innerParams.input || innerParams.footer || innerParams.showCloseButton)) {
              addClass(document.body, swalClasses['toast-column']);
            } else {
              removeClass(document.body, swalClasses['toast-column']);
            }

            handleInputOptionsAndValue(instance, innerParams);
            openPopup(innerParams);
            setupTimer(globalState, innerParams, dismissWith);
            initFocus(domCache, innerParams); // Scroll container to top on open (#1247, #1946)

            setTimeout(function () {
              domCache.container.scrollTop = 0;
            });
          });
        };

        var populateDomCache = function populateDomCache(instance) {
          var domCache = {
            popup: getPopup(),
            container: getContainer(),
            content: getContent(),
            actions: getActions(),
            confirmButton: getConfirmButton(),
            denyButton: getDenyButton(),
            cancelButton: getCancelButton(),
            loader: getLoader(),
            closeButton: getCloseButton(),
            validationMessage: getValidationMessage(),
            progressSteps: getProgressSteps()
          };
          privateProps.domCache.set(instance, domCache);
          return domCache;
        };

        var setupTimer = function setupTimer(globalState$$1, innerParams, dismissWith) {
          var timerProgressBar = getTimerProgressBar();
          hide(timerProgressBar);

          if (innerParams.timer) {
            globalState$$1.timeout = new Timer(function () {
              dismissWith('timer');
              delete globalState$$1.timeout;
            }, innerParams.timer);

            if (innerParams.timerProgressBar) {
              show(timerProgressBar);
              setTimeout(function () {
                if (globalState$$1.timeout && globalState$$1.timeout.running) {
                  // timer can be already stopped or unset at this point
                  animateTimerProgressBar(innerParams.timer);
                }
              });
            }
          }
        };

        var initFocus = function initFocus(domCache, innerParams) {
          if (innerParams.toast) {
            return;
          }

          if (!callIfFunction(innerParams.allowEnterKey)) {
            return blurActiveElement();
          }

          if (!focusButton(domCache, innerParams)) {
            setFocus(innerParams, -1, 1);
          }
        };

        var focusButton = function focusButton(domCache, innerParams) {
          if (innerParams.focusDeny && isVisible(domCache.denyButton)) {
            domCache.denyButton.focus();
            return true;
          }

          if (innerParams.focusCancel && isVisible(domCache.cancelButton)) {
            domCache.cancelButton.focus();
            return true;
          }

          if (innerParams.focusConfirm && isVisible(domCache.confirmButton)) {
            domCache.confirmButton.focus();
            return true;
          }

          return false;
        };

        var blurActiveElement = function blurActiveElement() {
          if (document.activeElement && typeof document.activeElement.blur === 'function') {
            document.activeElement.blur();
          }
        };
        /**
         * Updates popup parameters.
         */


        function update(params) {
          var popup = getPopup();
          var innerParams = privateProps.innerParams.get(this);

          if (!popup || hasClass(popup, innerParams.hideClass.popup)) {
            return warn("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");
          }

          var validUpdatableParams = {}; // assign valid params from `params` to `defaults`

          Object.keys(params).forEach(function (param) {
            if (Swal.isUpdatableParameter(param)) {
              validUpdatableParams[param] = params[param];
            } else {
              warn("Invalid parameter to update: \"".concat(param, "\". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js\n\nIf you think this parameter should be updatable, request it here: https://github.com/sweetalert2/sweetalert2/issues/new?template=02_feature_request.md"));
            }
          });

          var updatedParams = _extends({}, innerParams, validUpdatableParams);

          render(this, updatedParams);
          privateProps.innerParams.set(this, updatedParams);
          Object.defineProperties(this, {
            params: {
              value: _extends({}, this.params, params),
              writable: false,
              enumerable: true
            }
          });
        }

        function _destroy() {
          var domCache = privateProps.domCache.get(this);
          var innerParams = privateProps.innerParams.get(this);

          if (!innerParams) {
            return; // This instance has already been destroyed
          } // Check if there is another Swal closing


          if (domCache.popup && globalState.swalCloseEventFinishedCallback) {
            globalState.swalCloseEventFinishedCallback();
            delete globalState.swalCloseEventFinishedCallback;
          } // Check if there is a swal disposal defer timer


          if (globalState.deferDisposalTimer) {
            clearTimeout(globalState.deferDisposalTimer);
            delete globalState.deferDisposalTimer;
          }

          runDidDestroy(innerParams);
          disposeSwal(this);
        }

        var runDidDestroy = function runDidDestroy(innerParams) {
          if (typeof innerParams.didDestroy === 'function') {
            innerParams.didDestroy();
          } else if (typeof innerParams.onDestroy === 'function') {
            innerParams.onDestroy(); // @deprecated
          }
        };

        var disposeSwal = function disposeSwal(instance) {
          // Unset this.params so GC will dispose it (#1569)
          delete instance.params; // Unset globalState props so GC will dispose globalState (#1569)

          delete globalState.keydownHandler;
          delete globalState.keydownTarget; // Unset WeakMaps so GC will be able to dispose them (#1569)

          unsetWeakMaps(privateProps);
          unsetWeakMaps(privateMethods);
        };

        var unsetWeakMaps = function unsetWeakMaps(obj) {
          for (var i in obj) {
            obj[i] = new WeakMap();
          }
        };

        var instanceMethods = /*#__PURE__*/Object.freeze({
          hideLoading: hideLoading,
          disableLoading: hideLoading,
          getInput: getInput$1,
          close: close,
          closePopup: close,
          closeModal: close,
          closeToast: close,
          enableButtons: enableButtons,
          disableButtons: disableButtons,
          enableInput: enableInput,
          disableInput: disableInput,
          showValidationMessage: showValidationMessage,
          resetValidationMessage: resetValidationMessage$1,
          getProgressSteps: getProgressSteps$1,
          _main: _main,
          update: update,
          _destroy: _destroy
        });
        var currentInstance;

        var SweetAlert = /*#__PURE__*/function () {
          function SweetAlert() {
            _classCallCheck(this, SweetAlert); // Prevent run in Node env


            if (typeof window === 'undefined') {
              return;
            } // Check for the existence of Promise


            if (typeof Promise === 'undefined') {
              error('This package requires a Promise library, please include a shim to enable it in this browser (See: https://github.com/sweetalert2/sweetalert2/wiki/Migration-from-SweetAlert-to-SweetAlert2#1-ie-support)');
            }

            currentInstance = this;

            for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
              args[_key] = arguments[_key];
            }

            var outerParams = Object.freeze(this.constructor.argsToParams(args));
            Object.defineProperties(this, {
              params: {
                value: outerParams,
                writable: false,
                enumerable: true,
                configurable: true
              }
            });

            var promise = this._main(this.params);

            privateProps.promise.set(this, promise);
          } // `catch` cannot be the name of a module export, so we define our thenable methods here instead


          _createClass(SweetAlert, [{
            key: "then",
            value: function then(onFulfilled) {
              var promise = privateProps.promise.get(this);
              return promise.then(onFulfilled);
            }
          }, {
            key: "finally",
            value: function _finally(onFinally) {
              var promise = privateProps.promise.get(this);
              return promise["finally"](onFinally);
            }
          }]);

          return SweetAlert;
        }(); // Assign instance methods from src/instanceMethods/*.js to prototype


        _extends(SweetAlert.prototype, instanceMethods); // Assign static methods from src/staticMethods/*.js to constructor


        _extends(SweetAlert, staticMethods); // Proxy to instance methods to constructor, for now, for backwards compatibility


        Object.keys(instanceMethods).forEach(function (key) {
          SweetAlert[key] = function () {
            if (currentInstance) {
              var _currentInstance;

              return (_currentInstance = currentInstance)[key].apply(_currentInstance, arguments);
            }
          };
        });
        SweetAlert.DismissReason = DismissReason;
        SweetAlert.version = '10.15.5';
        var Swal = SweetAlert;
        Swal["default"] = Swal;
        return Swal;
      });

      if (typeof this !== 'undefined' && this.Sweetalert2) {
        this.swal = this.sweetAlert = this.Swal = this.SweetAlert = this.Sweetalert2;
      }

      "undefined" != typeof document && function (e, t) {
        var n = e.createElement("style");
        if (e.getElementsByTagName("head")[0].appendChild(n), n.styleSheet) n.styleSheet.disabled || (n.styleSheet.cssText = t);else try {
          n.innerHTML = t;
        } catch (e) {
          n.innerText = t;
        }
      }(document, ".swal2-popup.swal2-toast{flex-direction:row;align-items:center;width:auto;padding:.625em;overflow-y:hidden;background:#fff;box-shadow:0 0 .625em #d9d9d9}.swal2-popup.swal2-toast .swal2-header{flex-direction:row;padding:0}.swal2-popup.swal2-toast .swal2-title{flex-grow:1;justify-content:flex-start;margin:0 .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{position:static;width:.8em;height:.8em;line-height:.8}.swal2-popup.swal2-toast .swal2-content{justify-content:flex-start;padding:0;font-size:1em}.swal2-popup.swal2-toast .swal2-icon{width:2em;min-width:2em;height:2em;margin:0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:700}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{font-size:.25em}}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{flex-basis:auto!important;width:auto;height:auto;margin:0 .3125em;padding:0}.swal2-popup.swal2-toast .swal2-styled{margin:.125em .3125em;padding:.3125em .625em;font-size:1em}.swal2-popup.swal2-toast .swal2-styled:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(100,150,200,.5)}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.8em;left:-.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-toast-animate-success-line-tip .75s;animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-toast-animate-success-line-long .75s;animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{-webkit-animation:swal2-toast-show .5s;animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{-webkit-animation:swal2-toast-hide .1s forwards;animation:swal2-toast-hide .1s forwards}.swal2-container{display:flex;position:fixed;z-index:1060;top:0;right:0;bottom:0;left:0;flex-direction:row;align-items:center;justify-content:center;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}.swal2-container.swal2-backdrop-show,.swal2-container.swal2-noanimation{background:rgba(0,0,0,.4)}.swal2-container.swal2-backdrop-hide{background:0 0!important}.swal2-container.swal2-top{align-items:flex-start}.swal2-container.swal2-top-left,.swal2-container.swal2-top-start{align-items:flex-start;justify-content:flex-start}.swal2-container.swal2-top-end,.swal2-container.swal2-top-right{align-items:flex-start;justify-content:flex-end}.swal2-container.swal2-center{align-items:center}.swal2-container.swal2-center-left,.swal2-container.swal2-center-start{align-items:center;justify-content:flex-start}.swal2-container.swal2-center-end,.swal2-container.swal2-center-right{align-items:center;justify-content:flex-end}.swal2-container.swal2-bottom{align-items:flex-end}.swal2-container.swal2-bottom-left,.swal2-container.swal2-bottom-start{align-items:flex-end;justify-content:flex-start}.swal2-container.swal2-bottom-end,.swal2-container.swal2-bottom-right{align-items:flex-end;justify-content:flex-end}.swal2-container.swal2-bottom-end>:first-child,.swal2-container.swal2-bottom-left>:first-child,.swal2-container.swal2-bottom-right>:first-child,.swal2-container.swal2-bottom-start>:first-child,.swal2-container.swal2-bottom>:first-child{margin-top:auto}.swal2-container.swal2-grow-fullscreen>.swal2-modal{display:flex!important;flex:1;align-self:stretch;justify-content:center}.swal2-container.swal2-grow-row>.swal2-modal{display:flex!important;flex:1;align-content:center;justify-content:center}.swal2-container.swal2-grow-column{flex:1;flex-direction:column}.swal2-container.swal2-grow-column.swal2-bottom,.swal2-container.swal2-grow-column.swal2-center,.swal2-container.swal2-grow-column.swal2-top{align-items:center}.swal2-container.swal2-grow-column.swal2-bottom-left,.swal2-container.swal2-grow-column.swal2-bottom-start,.swal2-container.swal2-grow-column.swal2-center-left,.swal2-container.swal2-grow-column.swal2-center-start,.swal2-container.swal2-grow-column.swal2-top-left,.swal2-container.swal2-grow-column.swal2-top-start{align-items:flex-start}.swal2-container.swal2-grow-column.swal2-bottom-end,.swal2-container.swal2-grow-column.swal2-bottom-right,.swal2-container.swal2-grow-column.swal2-center-end,.swal2-container.swal2-grow-column.swal2-center-right,.swal2-container.swal2-grow-column.swal2-top-end,.swal2-container.swal2-grow-column.swal2-top-right{align-items:flex-end}.swal2-container.swal2-grow-column>.swal2-modal{display:flex!important;flex:1;align-content:center;justify-content:center}.swal2-container.swal2-no-transition{transition:none!important}.swal2-container:not(.swal2-top):not(.swal2-top-start):not(.swal2-top-end):not(.swal2-top-left):not(.swal2-top-right):not(.swal2-center-start):not(.swal2-center-end):not(.swal2-center-left):not(.swal2-center-right):not(.swal2-bottom):not(.swal2-bottom-start):not(.swal2-bottom-end):not(.swal2-bottom-left):not(.swal2-bottom-right):not(.swal2-grow-fullscreen)>.swal2-modal{margin:auto}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-container .swal2-modal{margin:0!important}}.swal2-popup{display:none;position:relative;box-sizing:border-box;flex-direction:column;justify-content:center;width:32em;max-width:100%;padding:1.25em;border:none;border-radius:5px;background:#fff;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:0}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-header{display:flex;flex-direction:column;align-items:center;padding:0 1.8em}.swal2-title{position:relative;max-width:100%;margin:0 0 .4em;padding:0;color:#595959;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}.swal2-actions{display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:100%;margin:1.25em auto 0;padding:0 1.6em}.swal2-actions:not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}.swal2-actions:not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.1))}.swal2-actions:not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.2))}.swal2-loader{display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;-webkit-animation:swal2-rotate-loading 1.5s linear 0s infinite normal;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 transparent #2778c4 transparent}.swal2-styled{margin:.3125em;padding:.625em 1.1em;box-shadow:none;font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#2778c4;color:#fff;font-size:1.0625em}.swal2-styled.swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#d14529;color:#fff;font-size:1.0625em}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#757575;color:#fff;font-size:1.0625em}.swal2-styled:focus{outline:0;box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1.25em 0 0;padding:1em 0 0;border-top:1px solid #eee;color:#545454;font-size:1em}.swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;height:.25em;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}.swal2-timer-progress-bar{width:100%;height:.25em;background:rgba(0,0,0,.2)}.swal2-image{max-width:100%;margin:1.25em auto}.swal2-close{position:absolute;z-index:2;top:0;right:0;align-items:center;justify-content:center;width:1.2em;height:1.2em;padding:0;overflow:hidden;transition:color .1s ease-out;border:none;border-radius:5px;background:0 0;color:#ccc;font-family:serif;font-size:2.5em;line-height:1.2;cursor:pointer}.swal2-close:hover{transform:none;background:0 0;color:#f27474}.swal2-close:focus{outline:0;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}.swal2-close::-moz-focus-inner{border:0}.swal2-content{z-index:1;justify-content:center;margin:0;padding:0 1.6em;color:#545454;font-size:1.125em;font-weight:400;line-height:normal;text-align:center;word-wrap:break-word}.swal2-checkbox,.swal2-file,.swal2-input,.swal2-radio,.swal2-select,.swal2-textarea{margin:1em auto}.swal2-file,.swal2-input,.swal2-textarea{box-sizing:border-box;width:100%;transition:border-color .3s,box-shadow .3s;border:1px solid #d9d9d9;border-radius:.1875em;background:inherit;box-shadow:inset 0 1px 1px rgba(0,0,0,.06);color:inherit;font-size:1.125em}.swal2-file.swal2-inputerror,.swal2-input.swal2-inputerror,.swal2-textarea.swal2-inputerror{border-color:#f27474!important;box-shadow:0 0 2px #f27474!important}.swal2-file:focus,.swal2-input:focus,.swal2-textarea:focus{border:1px solid #b4dbed;outline:0;box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-file::-moz-placeholder,.swal2-input::-moz-placeholder,.swal2-textarea::-moz-placeholder{color:#ccc}.swal2-file:-ms-input-placeholder,.swal2-input:-ms-input-placeholder,.swal2-textarea:-ms-input-placeholder{color:#ccc}.swal2-file::placeholder,.swal2-input::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em auto;background:#fff}.swal2-range input{width:80%}.swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}.swal2-range input,.swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}.swal2-input{height:2.625em;padding:0 .75em}.swal2-input[type=number]{max-width:10em}.swal2-file{background:inherit;font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:inherit;color:inherit;font-size:1.125em}.swal2-checkbox,.swal2-radio{align-items:center;justify-content:center;background:#fff;color:inherit}.swal2-checkbox label,.swal2-radio label{margin:0 .6em;font-size:1.125em}.swal2-checkbox input,.swal2-radio input{margin:0 .4em}.swal2-input-label{display:flex;justify-content:center;margin:1em auto}.swal2-validation-message{display:none;align-items:center;justify-content:center;margin:0 -2.7em;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}.swal2-validation-message::before{content:\"!\";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}.swal2-icon{position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:1.25em auto 1.875em;border:.25em solid transparent;border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}.swal2-icon.swal2-error{border-color:#f27474;color:#f27474}.swal2-icon.swal2-error .swal2-x-mark{position:relative;flex-grow:1}.swal2-icon.swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}.swal2-icon.swal2-error.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-error.swal2-icon-show .swal2-x-mark{-webkit-animation:swal2-animate-error-x-mark .5s;animation:swal2-animate-error-x-mark .5s}.swal2-icon.swal2-warning{border-color:#facea8;color:#f8bb86}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-success{border-color:#a5dc86;color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;transform:rotate(45deg);border-radius:50%}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}.swal2-icon.swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-.25em;left:-.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}.swal2-icon.swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}.swal2-icon.swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}.swal2-icon.swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-animate-success-line-tip .75s;animation:swal2-animate-success-line-tip .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-animate-success-line-long .75s;animation:swal2-animate-success-line-long .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-circular-line-right{-webkit-animation:swal2-rotate-success-circular-line 4.25s ease-in;animation:swal2-rotate-success-circular-line 4.25s ease-in}.swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:0 0 1.25em;padding:0;background:inherit;font-weight:600}.swal2-progress-steps li{display:inline-block;position:relative}.swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}.swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}[class^=swal2]{-webkit-tap-highlight-color:transparent}.swal2-show{-webkit-animation:swal2-show .3s;animation:swal2-show .3s}.swal2-hide{-webkit-animation:swal2-hide .15s forwards;animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{right:auto;left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@supports (-ms-accelerator:true){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@-webkit-keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0)}}@keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0)}}@-webkit-keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@-webkit-keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@-webkit-keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@-webkit-keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}100%{transform:scale(1)}}@keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}100%{transform:scale(1)}}@-webkit-keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(.5);opacity:0}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(.5);opacity:0}}@-webkit-keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@-webkit-keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@-webkit-keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@-webkit-keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@-webkit-keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0);opacity:1}}@-webkit-keyframes swal2-rotate-loading{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes swal2-rotate-loading{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto!important}body.swal2-no-backdrop .swal2-container{top:auto;right:auto;bottom:auto;left:auto;max-width:calc(100% - .625em * 2);background-color:transparent!important}body.swal2-no-backdrop .swal2-container>.swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}body.swal2-no-backdrop .swal2-container.swal2-top{top:0;left:50%;transform:translateX(-50%)}body.swal2-no-backdrop .swal2-container.swal2-top-left,body.swal2-no-backdrop .swal2-container.swal2-top-start{top:0;left:0}body.swal2-no-backdrop .swal2-container.swal2-top-end,body.swal2-no-backdrop .swal2-container.swal2-top-right{top:0;right:0}body.swal2-no-backdrop .swal2-container.swal2-center{top:50%;left:50%;transform:translate(-50%,-50%)}body.swal2-no-backdrop .swal2-container.swal2-center-left,body.swal2-no-backdrop .swal2-container.swal2-center-start{top:50%;left:0;transform:translateY(-50%)}body.swal2-no-backdrop .swal2-container.swal2-center-end,body.swal2-no-backdrop .swal2-container.swal2-center-right{top:50%;right:0;transform:translateY(-50%)}body.swal2-no-backdrop .swal2-container.swal2-bottom{bottom:0;left:50%;transform:translateX(-50%)}body.swal2-no-backdrop .swal2-container.swal2-bottom-left,body.swal2-no-backdrop .swal2-container.swal2-bottom-start{bottom:0;left:0}body.swal2-no-backdrop .swal2-container.swal2-bottom-end,body.swal2-no-backdrop .swal2-container.swal2-bottom-right{right:0;bottom:0}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll!important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static!important}}body.swal2-toast-shown .swal2-container{background-color:transparent}body.swal2-toast-shown .swal2-container.swal2-top{top:0;right:auto;bottom:auto;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{top:0;right:0;bottom:auto;left:auto}body.swal2-toast-shown .swal2-container.swal2-top-left,body.swal2-toast-shown .swal2-container.swal2-top-start{top:0;right:auto;bottom:auto;left:0}body.swal2-toast-shown .swal2-container.swal2-center-left,body.swal2-toast-shown .swal2-container.swal2-center-start{top:50%;right:auto;bottom:auto;left:0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{top:50%;right:auto;bottom:auto;left:50%;transform:translate(-50%,-50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{top:50%;right:0;bottom:auto;left:auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-left,body.swal2-toast-shown .swal2-container.swal2-bottom-start{top:auto;right:auto;bottom:0;left:0}body.swal2-toast-shown .swal2-container.swal2-bottom{top:auto;right:auto;bottom:0;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{top:auto;right:0;bottom:0;left:auto}body.swal2-toast-column .swal2-toast{flex-direction:column;align-items:stretch}body.swal2-toast-column .swal2-toast .swal2-actions{flex:1;align-self:stretch;height:2.2em;margin-top:.3125em}body.swal2-toast-column .swal2-toast .swal2-loading{justify-content:center}body.swal2-toast-column .swal2-toast .swal2-input{height:2em;margin:.3125em auto;font-size:1em}body.swal2-toast-column .swal2-toast .swal2-validation-message{font-size:1em}");
      /***/
    },

    /***/
    "PVpz": function PVpz(module, exports, __webpack_require__) {
      ;

      (function (root, factory, undef) {
        if (true) {
          // CommonJS
          module.exports = exports = factory(__webpack_require__(
          /*! ./core */
          "Ib8C"), __webpack_require__(
          /*! ./enc-base64 */
          "ETIr"), __webpack_require__(
          /*! ./md5 */
          "cv67"), __webpack_require__(
          /*! ./evpkdf */
          "K3mO"), __webpack_require__(
          /*! ./cipher-core */
          "OLod"));
        } else {}
      })(this, function (CryptoJS) {
        (function () {
          // Shortcuts
          var C = CryptoJS;
          var C_lib = C.lib;
          var StreamCipher = C_lib.StreamCipher;
          var C_algo = C.algo; // Reusable objects

          var S = [];
          var C_ = [];
          var G = [];
          /**
           * Rabbit stream cipher algorithm.
           *
           * This is a legacy version that neglected to convert the key to little-endian.
           * This error doesn't affect the cipher's security,
           * but it does affect its compatibility with other implementations.
           */

          var RabbitLegacy = C_algo.RabbitLegacy = StreamCipher.extend({
            _doReset: function _doReset() {
              // Shortcuts
              var K = this._key.words;
              var iv = this.cfg.iv; // Generate initial state values

              var X = this._X = [K[0], K[3] << 16 | K[2] >>> 16, K[1], K[0] << 16 | K[3] >>> 16, K[2], K[1] << 16 | K[0] >>> 16, K[3], K[2] << 16 | K[1] >>> 16]; // Generate initial counter values

              var C = this._C = [K[2] << 16 | K[2] >>> 16, K[0] & 0xffff0000 | K[1] & 0x0000ffff, K[3] << 16 | K[3] >>> 16, K[1] & 0xffff0000 | K[2] & 0x0000ffff, K[0] << 16 | K[0] >>> 16, K[2] & 0xffff0000 | K[3] & 0x0000ffff, K[1] << 16 | K[1] >>> 16, K[3] & 0xffff0000 | K[0] & 0x0000ffff]; // Carry bit

              this._b = 0; // Iterate the system four times

              for (var i = 0; i < 4; i++) {
                nextState.call(this);
              } // Modify the counters


              for (var i = 0; i < 8; i++) {
                C[i] ^= X[i + 4 & 7];
              } // IV setup


              if (iv) {
                // Shortcuts
                var IV = iv.words;
                var IV_0 = IV[0];
                var IV_1 = IV[1]; // Generate four subvectors

                var i0 = (IV_0 << 8 | IV_0 >>> 24) & 0x00ff00ff | (IV_0 << 24 | IV_0 >>> 8) & 0xff00ff00;
                var i2 = (IV_1 << 8 | IV_1 >>> 24) & 0x00ff00ff | (IV_1 << 24 | IV_1 >>> 8) & 0xff00ff00;
                var i1 = i0 >>> 16 | i2 & 0xffff0000;
                var i3 = i2 << 16 | i0 & 0x0000ffff; // Modify counter values

                C[0] ^= i0;
                C[1] ^= i1;
                C[2] ^= i2;
                C[3] ^= i3;
                C[4] ^= i0;
                C[5] ^= i1;
                C[6] ^= i2;
                C[7] ^= i3; // Iterate the system four times

                for (var i = 0; i < 4; i++) {
                  nextState.call(this);
                }
              }
            },
            _doProcessBlock: function _doProcessBlock(M, offset) {
              // Shortcut
              var X = this._X; // Iterate the system

              nextState.call(this); // Generate four keystream words

              S[0] = X[0] ^ X[5] >>> 16 ^ X[3] << 16;
              S[1] = X[2] ^ X[7] >>> 16 ^ X[5] << 16;
              S[2] = X[4] ^ X[1] >>> 16 ^ X[7] << 16;
              S[3] = X[6] ^ X[3] >>> 16 ^ X[1] << 16;

              for (var i = 0; i < 4; i++) {
                // Swap endian
                S[i] = (S[i] << 8 | S[i] >>> 24) & 0x00ff00ff | (S[i] << 24 | S[i] >>> 8) & 0xff00ff00; // Encrypt

                M[offset + i] ^= S[i];
              }
            },
            blockSize: 128 / 32,
            ivSize: 64 / 32
          });

          function nextState() {
            // Shortcuts
            var X = this._X;
            var C = this._C; // Save old counter values

            for (var i = 0; i < 8; i++) {
              C_[i] = C[i];
            } // Calculate new counter values


            C[0] = C[0] + 0x4d34d34d + this._b | 0;
            C[1] = C[1] + 0xd34d34d3 + (C[0] >>> 0 < C_[0] >>> 0 ? 1 : 0) | 0;
            C[2] = C[2] + 0x34d34d34 + (C[1] >>> 0 < C_[1] >>> 0 ? 1 : 0) | 0;
            C[3] = C[3] + 0x4d34d34d + (C[2] >>> 0 < C_[2] >>> 0 ? 1 : 0) | 0;
            C[4] = C[4] + 0xd34d34d3 + (C[3] >>> 0 < C_[3] >>> 0 ? 1 : 0) | 0;
            C[5] = C[5] + 0x34d34d34 + (C[4] >>> 0 < C_[4] >>> 0 ? 1 : 0) | 0;
            C[6] = C[6] + 0x4d34d34d + (C[5] >>> 0 < C_[5] >>> 0 ? 1 : 0) | 0;
            C[7] = C[7] + 0xd34d34d3 + (C[6] >>> 0 < C_[6] >>> 0 ? 1 : 0) | 0;
            this._b = C[7] >>> 0 < C_[7] >>> 0 ? 1 : 0; // Calculate the g-values

            for (var i = 0; i < 8; i++) {
              var gx = X[i] + C[i]; // Construct high and low argument for squaring

              var ga = gx & 0xffff;
              var gb = gx >>> 16; // Calculate high and low result of squaring

              var gh = ((ga * ga >>> 17) + ga * gb >>> 15) + gb * gb;
              var gl = ((gx & 0xffff0000) * gx | 0) + ((gx & 0x0000ffff) * gx | 0); // High XOR low

              G[i] = gh ^ gl;
            } // Calculate new state values


            X[0] = G[0] + (G[7] << 16 | G[7] >>> 16) + (G[6] << 16 | G[6] >>> 16) | 0;
            X[1] = G[1] + (G[0] << 8 | G[0] >>> 24) + G[7] | 0;
            X[2] = G[2] + (G[1] << 16 | G[1] >>> 16) + (G[0] << 16 | G[0] >>> 16) | 0;
            X[3] = G[3] + (G[2] << 8 | G[2] >>> 24) + G[1] | 0;
            X[4] = G[4] + (G[3] << 16 | G[3] >>> 16) + (G[2] << 16 | G[2] >>> 16) | 0;
            X[5] = G[5] + (G[4] << 8 | G[4] >>> 24) + G[3] | 0;
            X[6] = G[6] + (G[5] << 16 | G[5] >>> 16) + (G[4] << 16 | G[4] >>> 16) | 0;
            X[7] = G[7] + (G[6] << 8 | G[6] >>> 24) + G[5] | 0;
          }
          /**
           * Shortcut functions to the cipher's object interface.
           *
           * @example
           *
           *     var ciphertext = CryptoJS.RabbitLegacy.encrypt(message, key, cfg);
           *     var plaintext  = CryptoJS.RabbitLegacy.decrypt(ciphertext, key, cfg);
           */


          C.RabbitLegacy = StreamCipher._createHelper(RabbitLegacy);
        })();

        return CryptoJS.RabbitLegacy;
      });
      /***/

    },

    /***/
    "PWs8": function PWs8(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return endOfSecond;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name endOfSecond
       * @category Second Helpers
       * @summary Return the end of a second for the given date.
       *
       * @description
       * Return the end of a second for the given date.
       * The result will be in the local timezone.
       *
       * ### 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 {Date|Number} date - the original date
       * @returns {Date} the end of a second
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // The end of a second for 1 December 2014 22:15:45.400:
       * var result = endOfSecond(new Date(2014, 11, 1, 22, 15, 45, 400))
       * //=> Mon Dec 01 2014 22:15:45.999
       */


      function endOfSecond(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);
        date.setMilliseconds(999);
        return date;
      }
      /***/

    },

    /***/
    "PXG5": function PXG5(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony import */


      var _src_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ./src/index */
      "Fj4L");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "storeFreeze", function () {
        return _src_index__WEBPACK_IMPORTED_MODULE_0__["storeFreeze"];
      }); //# sourceMappingURL=index.js.map

      /***/

    },

    /***/
    "PZkE": function PZkE(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "distinctUntilKeyChanged", function () {
        return distinctUntilKeyChanged;
      });
      /* harmony import */


      var _distinctUntilChanged__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ./distinctUntilChanged */
      "/uUt");

      function distinctUntilKeyChanged(key, compare) {
        return Object(_distinctUntilChanged__WEBPACK_IMPORTED_MODULE_0__["distinctUntilChanged"])(function (x, y) {
          return compare ? compare(x[key], y[key]) : x[key] === y[key];
        });
      } //# sourceMappingURL=distinctUntilKeyChanged.js.map

      /***/

    },

    /***/
    "PdOA": function PdOA(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return isTuesday;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name isTuesday
       * @category Weekday Helpers
       * @summary Is the given date Tuesday?
       *
       * @description
       * Is the given date Tuesday?
       *
       * ### 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 {Date|Number} date - the date to check
       * @returns {Boolean} the date is Tuesday
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // Is 23 September 2014 Tuesday?
       * var result = isTuesday(new Date(2014, 8, 23))
       * //=> true
       */


      function isTuesday(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        return Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate).getDay() === 2;
      }
      /***/

    },

    /***/
    "PeUW": function PeUW(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Tamil [ta]
      //! author : Arjunkumar Krishnamoorthy : https://github.com/tk120404
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var symbolMap = {
          1: '௧',
          2: '௨',
          3: '௩',
          4: '௪',
          5: '௫',
          6: '௬',
          7: '௭',
          8: '௮',
          9: '௯',
          0: '௦'
        },
            numberMap = {
          '௧': '1',
          '௨': '2',
          '௩': '3',
          '௪': '4',
          '௫': '5',
          '௬': '6',
          '௭': '7',
          '௮': '8',
          '௯': '9',
          '௦': '0'
        };
        var ta = moment.defineLocale('ta', {
          months: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),
          monthsShort: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),
          weekdays: 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split('_'),
          weekdaysShort: 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split('_'),
          weekdaysMin: 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'),
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY, HH:mm',
            LLLL: 'dddd, D MMMM YYYY, HH:mm'
          },
          calendar: {
            sameDay: '[இன்று] LT',
            nextDay: '[நாளை] LT',
            nextWeek: 'dddd, LT',
            lastDay: '[நேற்று] LT',
            lastWeek: '[கடந்த வாரம்] dddd, LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: '%s இல்',
            past: '%s முன்',
            s: 'ஒரு சில விநாடிகள்',
            ss: '%d விநாடிகள்',
            m: 'ஒரு நிமிடம்',
            mm: '%d நிமிடங்கள்',
            h: 'ஒரு மணி நேரம்',
            hh: '%d மணி நேரம்',
            d: 'ஒரு நாள்',
            dd: '%d நாட்கள்',
            M: 'ஒரு மாதம்',
            MM: '%d மாதங்கள்',
            y: 'ஒரு வருடம்',
            yy: '%d ஆண்டுகள்'
          },
          dayOfMonthOrdinalParse: /\d{1,2}வது/,
          ordinal: function ordinal(number) {
            return number + 'வது';
          },
          preparse: function preparse(string) {
            return string.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (match) {
              return numberMap[match];
            });
          },
          postformat: function postformat(string) {
            return string.replace(/\d/g, function (match) {
              return symbolMap[match];
            });
          },
          // refer http://ta.wikipedia.org/s/1er1
          meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,
          meridiem: function meridiem(hour, minute, isLower) {
            if (hour < 2) {
              return ' யாமம்';
            } else if (hour < 6) {
              return ' வைகறை'; // வைகறை
            } else if (hour < 10) {
              return ' காலை'; // காலை
            } else if (hour < 14) {
              return ' நண்பகல்'; // நண்பகல்
            } else if (hour < 18) {
              return ' எற்பாடு'; // எற்பாடு
            } else if (hour < 22) {
              return ' மாலை'; // மாலை
            } else {
              return ' யாமம்';
            }
          },
          meridiemHour: function meridiemHour(hour, meridiem) {
            if (hour === 12) {
              hour = 0;
            }

            if (meridiem === 'யாமம்') {
              return hour < 2 ? hour : hour + 12;
            } else if (meridiem === 'வைகறை' || meridiem === 'காலை') {
              return hour;
            } else if (meridiem === 'நண்பகல்') {
              return hour >= 10 ? hour : hour + 12;
            } else {
              return hour + 12;
            }
          },
          week: {
            dow: 0,
            // Sunday is the first day of the week.
            doy: 6 // The week that contains Jan 6th is the first week of the year.

          }
        });
        return ta;
      });
      /***/

    },

    /***/
    "PfrF": function PfrF(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "bufferWhen", function () {
        return bufferWhen;
      });
      /* harmony import */


      var _Subscription__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Subscription */
      "quSY");
      /* harmony import */


      var _innerSubscribe__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../innerSubscribe */
      "zx2A");

      function bufferWhen(closingSelector) {
        return function (source) {
          return source.lift(new BufferWhenOperator(closingSelector));
        };
      }

      var BufferWhenOperator = /*#__PURE__*/function () {
        function BufferWhenOperator(closingSelector) {
          _classCallCheck2(this, BufferWhenOperator);

          this.closingSelector = closingSelector;
        }

        _createClass2(BufferWhenOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            return source.subscribe(new BufferWhenSubscriber(subscriber, this.closingSelector));
          }
        }]);

        return BufferWhenOperator;
      }();

      var BufferWhenSubscriber = /*#__PURE__*/function (_innerSubscribe__WEBP11) {
        _inherits2(BufferWhenSubscriber, _innerSubscribe__WEBP11);

        var _super289 = _createSuper2(BufferWhenSubscriber);

        function BufferWhenSubscriber(destination, closingSelector) {
          var _this577;

          _classCallCheck2(this, BufferWhenSubscriber);

          _this577 = _super289.call(this, destination);
          _this577.closingSelector = closingSelector;
          _this577.subscribing = false;

          _this577.openBuffer();

          return _this577;
        }

        _createClass2(BufferWhenSubscriber, [{
          key: "_next",
          value: function _next(value) {
            this.buffer.push(value);
          }
        }, {
          key: "_complete",
          value: function _complete() {
            var buffer = this.buffer;

            if (buffer) {
              this.destination.next(buffer);
            }

            _get2(_getPrototypeOf2(BufferWhenSubscriber.prototype), "_complete", this).call(this);
          }
        }, {
          key: "_unsubscribe",
          value: function _unsubscribe() {
            this.buffer = undefined;
            this.subscribing = false;
          }
        }, {
          key: "notifyNext",
          value: function notifyNext() {
            this.openBuffer();
          }
        }, {
          key: "notifyComplete",
          value: function notifyComplete() {
            if (this.subscribing) {
              this.complete();
            } else {
              this.openBuffer();
            }
          }
        }, {
          key: "openBuffer",
          value: function openBuffer() {
            var closingSubscription = this.closingSubscription;

            if (closingSubscription) {
              this.remove(closingSubscription);
              closingSubscription.unsubscribe();
            }

            var buffer = this.buffer;

            if (this.buffer) {
              this.destination.next(buffer);
            }

            this.buffer = [];
            var closingNotifier;

            try {
              var closingSelector = this.closingSelector;
              closingNotifier = closingSelector();
            } catch (err) {
              return this.error(err);
            }

            closingSubscription = new _Subscription__WEBPACK_IMPORTED_MODULE_0__["Subscription"]();
            this.closingSubscription = closingSubscription;
            this.add(closingSubscription);
            this.subscribing = true;
            closingSubscription.add(Object(_innerSubscribe__WEBPACK_IMPORTED_MODULE_1__["innerSubscribe"])(closingNotifier, new _innerSubscribe__WEBPACK_IMPORTED_MODULE_1__["SimpleInnerSubscriber"](this)));
            this.subscribing = false;
          }
        }]);

        return BufferWhenSubscriber;
      }(_innerSubscribe__WEBPACK_IMPORTED_MODULE_1__["SimpleOuterSubscriber"]); //# sourceMappingURL=bufferWhen.js.map

      /***/

    },

    /***/
    "PpIw": function PpIw(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Kannada [kn]
      //! author : Rajeev Naik : https://github.com/rajeevnaikte
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var symbolMap = {
          1: '೧',
          2: '೨',
          3: '೩',
          4: '೪',
          5: '೫',
          6: '೬',
          7: '೭',
          8: '೮',
          9: '೯',
          0: '೦'
        },
            numberMap = {
          '೧': '1',
          '೨': '2',
          '೩': '3',
          '೪': '4',
          '೫': '5',
          '೬': '6',
          '೭': '7',
          '೮': '8',
          '೯': '9',
          '೦': '0'
        };
        var kn = moment.defineLocale('kn', {
          months: 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split('_'),
          monthsShort: 'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ'.split('_'),
          monthsParseExact: true,
          weekdays: 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split('_'),
          weekdaysShort: 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'),
          weekdaysMin: 'ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ'.split('_'),
          longDateFormat: {
            LT: 'A h:mm',
            LTS: 'A h:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY, A h:mm',
            LLLL: 'dddd, D MMMM YYYY, A h:mm'
          },
          calendar: {
            sameDay: '[ಇಂದು] LT',
            nextDay: '[ನಾಳೆ] LT',
            nextWeek: 'dddd, LT',
            lastDay: '[ನಿನ್ನೆ] LT',
            lastWeek: '[ಕೊನೆಯ] dddd, LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: '%s ನಂತರ',
            past: '%s ಹಿಂದೆ',
            s: 'ಕೆಲವು ಕ್ಷಣಗಳು',
            ss: '%d ಸೆಕೆಂಡುಗಳು',
            m: 'ಒಂದು ನಿಮಿಷ',
            mm: '%d ನಿಮಿಷ',
            h: 'ಒಂದು ಗಂಟೆ',
            hh: '%d ಗಂಟೆ',
            d: 'ಒಂದು ದಿನ',
            dd: '%d ದಿನ',
            M: 'ಒಂದು ತಿಂಗಳು',
            MM: '%d ತಿಂಗಳು',
            y: 'ಒಂದು ವರ್ಷ',
            yy: '%d ವರ್ಷ'
          },
          preparse: function preparse(string) {
            return string.replace(/[೧೨೩೪೫೬೭೮೯೦]/g, function (match) {
              return numberMap[match];
            });
          },
          postformat: function postformat(string) {
            return string.replace(/\d/g, function (match) {
              return symbolMap[match];
            });
          },
          meridiemParse: /ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,
          meridiemHour: function meridiemHour(hour, meridiem) {
            if (hour === 12) {
              hour = 0;
            }

            if (meridiem === 'ರಾತ್ರಿ') {
              return hour < 4 ? hour : hour + 12;
            } else if (meridiem === 'ಬೆಳಿಗ್ಗೆ') {
              return hour;
            } else if (meridiem === 'ಮಧ್ಯಾಹ್ನ') {
              return hour >= 10 ? hour : hour + 12;
            } else if (meridiem === 'ಸಂಜೆ') {
              return hour + 12;
            }
          },
          meridiem: function meridiem(hour, minute, isLower) {
            if (hour < 4) {
              return 'ರಾತ್ರಿ';
            } else if (hour < 10) {
              return 'ಬೆಳಿಗ್ಗೆ';
            } else if (hour < 17) {
              return 'ಮಧ್ಯಾಹ್ನ';
            } else if (hour < 20) {
              return 'ಸಂಜೆ';
            } else {
              return 'ರಾತ್ರಿ';
            }
          },
          dayOfMonthOrdinalParse: /\d{1,2}(ನೇ)/,
          ordinal: function ordinal(number) {
            return number + 'ನೇ';
          },
          week: {
            dow: 0,
            // Sunday is the first day of the week.
            doy: 6 // The week that contains Jan 6th is the first week of the year.

          }
        });
        return kn;
      });
      /***/

    },

    /***/
    "PqYM": function PqYM(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "timer", function () {
        return timer;
      });
      /* harmony import */


      var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Observable */
      "HDdC");
      /* harmony import */


      var _scheduler_async__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../scheduler/async */
      "D0XW");
      /* harmony import */


      var _util_isNumeric__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../util/isNumeric */
      "Y7HM");
      /* harmony import */


      var _util_isScheduler__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../util/isScheduler */
      "z+Ro");

      function timer() {
        var dueTime = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
        var periodOrScheduler = arguments.length > 1 ? arguments[1] : undefined;
        var scheduler = arguments.length > 2 ? arguments[2] : undefined;
        var period = -1;

        if (Object(_util_isNumeric__WEBPACK_IMPORTED_MODULE_2__["isNumeric"])(periodOrScheduler)) {
          period = Number(periodOrScheduler) < 1 && 1 || Number(periodOrScheduler);
        } else if (Object(_util_isScheduler__WEBPACK_IMPORTED_MODULE_3__["isScheduler"])(periodOrScheduler)) {
          scheduler = periodOrScheduler;
        }

        if (!Object(_util_isScheduler__WEBPACK_IMPORTED_MODULE_3__["isScheduler"])(scheduler)) {
          scheduler = _scheduler_async__WEBPACK_IMPORTED_MODULE_1__["async"];
        }

        return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](function (subscriber) {
          var due = Object(_util_isNumeric__WEBPACK_IMPORTED_MODULE_2__["isNumeric"])(dueTime) ? dueTime : +dueTime - scheduler.now();
          return scheduler.schedule(dispatch, due, {
            index: 0,
            period: period,
            subscriber: subscriber
          });
        });
      }

      function dispatch(state) {
        var index = state.index,
            period = state.period,
            subscriber = state.subscriber;
        subscriber.next(index);

        if (subscriber.closed) {
          return;
        } else if (period === -1) {
          return subscriber.complete();
        }

        state.index = index + 1;
        this.schedule(state, period);
      } //# sourceMappingURL=timer.js.map

      /***/

    },

    /***/
    "Pz8W": function Pz8W(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "AsapAction", function () {
        return AsapAction;
      });
      /* harmony import */


      var _util_Immediate__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../util/Immediate */
      "c7jc");
      /* harmony import */


      var _AsyncAction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ./AsyncAction */
      "3N8a");

      var AsapAction = /*#__PURE__*/function (_AsyncAction__WEBPACK) {
        _inherits2(AsapAction, _AsyncAction__WEBPACK);

        var _super290 = _createSuper2(AsapAction);

        function AsapAction(scheduler, work) {
          var _this578;

          _classCallCheck2(this, AsapAction);

          _this578 = _super290.call(this, scheduler, work);
          _this578.scheduler = scheduler;
          _this578.work = work;
          return _this578;
        }

        _createClass2(AsapAction, [{
          key: "requestAsyncId",
          value: function requestAsyncId(scheduler, id) {
            var delay = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;

            if (delay !== null && delay > 0) {
              return _get2(_getPrototypeOf2(AsapAction.prototype), "requestAsyncId", this).call(this, scheduler, id, delay);
            }

            scheduler.actions.push(this);
            return scheduler.scheduled || (scheduler.scheduled = _util_Immediate__WEBPACK_IMPORTED_MODULE_0__["Immediate"].setImmediate(scheduler.flush.bind(scheduler, null)));
          }
        }, {
          key: "recycleAsyncId",
          value: function recycleAsyncId(scheduler, id) {
            var delay = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;

            if (delay !== null && delay > 0 || delay === null && this.delay > 0) {
              return _get2(_getPrototypeOf2(AsapAction.prototype), "recycleAsyncId", this).call(this, scheduler, id, delay);
            }

            if (scheduler.actions.length === 0) {
              _util_Immediate__WEBPACK_IMPORTED_MODULE_0__["Immediate"].clearImmediate(id);

              scheduler.scheduled = undefined;
            }

            return undefined;
          }
        }]);

        return AsapAction;
      }(_AsyncAction__WEBPACK_IMPORTED_MODULE_1__["AsyncAction"]); //# sourceMappingURL=AsapAction.js.map

      /***/

    },

    /***/
    "Q0vS": function Q0vS(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return setISOWeek;
      });
      /* harmony import */


      var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../_lib/toInteger/index.js */
      "/h9T");
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _getISOWeek_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../getISOWeek/index.js */
      "sBI4");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name setISOWeek
       * @category ISO Week Helpers
       * @summary Set the ISO week to the given date.
       *
       * @description
       * Set the ISO week to the given date, saving the weekday number.
       *
       * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
       *
       * ### 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 {Date|Number} date - the date to be changed
       * @param {Number} isoWeek - the ISO week of the new date
       * @returns {Date} the new date with the ISO week set
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // Set the 53rd ISO week to 7 August 2004:
       * var result = setISOWeek(new Date(2004, 7, 7), 53)
       * //=> Sat Jan 01 2005 00:00:00
       */


      function setISOWeek(dirtyDate, dirtyISOWeek) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(2, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate);
        var isoWeek = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyISOWeek);
        var diff = Object(_getISOWeek_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(date) - isoWeek;
        date.setDate(date.getDate() - diff * 7);
        return date;
      }
      /***/

    },

    /***/
    "Q2Ze": function Q2Ze(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MAT_ERROR", function () {
        return MAT_ERROR;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MAT_FORM_FIELD", function () {
        return MAT_FORM_FIELD;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MAT_FORM_FIELD_DEFAULT_OPTIONS", function () {
        return MAT_FORM_FIELD_DEFAULT_OPTIONS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MAT_PREFIX", function () {
        return MAT_PREFIX;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MAT_SUFFIX", function () {
        return MAT_SUFFIX;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatError", function () {
        return MatError;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatFormField", function () {
        return MatFormField;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatFormFieldControl", function () {
        return MatFormFieldControl;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatFormFieldModule", function () {
        return MatFormFieldModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatHint", function () {
        return MatHint;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatLabel", function () {
        return MatLabel;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatPlaceholder", function () {
        return MatPlaceholder;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatPrefix", function () {
        return MatPrefix;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatSuffix", function () {
        return MatSuffix;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "_MAT_HINT", function () {
        return _MAT_HINT;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "getMatFormFieldDuplicatedHintError", function () {
        return getMatFormFieldDuplicatedHintError;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "getMatFormFieldMissingControlError", function () {
        return getMatFormFieldMissingControlError;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "getMatFormFieldPlaceholderConflictError", function () {
        return getMatFormFieldPlaceholderConflictError;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "matFormFieldAnimations", function () {
        return matFormFieldAnimations;
      });
      /* harmony import */


      var _angular_cdk_observers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/cdk/observers */
      "9b/N");
      /* harmony import */


      var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/common */
      "SVse");
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /* harmony import */


      var _angular_material_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! @angular/material/core */
      "UhP/");
      /* harmony import */


      var _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! @angular/cdk/bidi */
      "9gLZ");
      /* harmony import */


      var _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! @angular/cdk/coercion */
      "8LU1");
      /* harmony import */


      var rxjs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
      /*! rxjs */
      "qCKp");
      /* harmony import */


      var rxjs_operators__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
      /*! rxjs/operators */
      "kU1M");
      /* harmony import */


      var _angular_animations__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
      /*! @angular/animations */
      "GS7A");
      /* harmony import */


      var _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
      /*! @angular/cdk/platform */
      "SCoL");
      /* harmony import */


      var _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(
      /*! @angular/platform-browser/animations */
      "omvX");
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var _c0 = ["underline"];
      var _c1 = ["connectionContainer"];
      var _c2 = ["inputContainer"];
      var _c3 = ["label"];

      function MatFormField_ng_container_3_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerStart"](0);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 14);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](2, "div", 15);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "div", 16);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](4, "div", 17);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 18);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](6, "div", 15);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](7, "div", 16);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](8, "div", 17);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerEnd"]();
        }
      }

      function MatFormField_div_4_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 19);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵprojection"](1, 1);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
        }
      }

      function MatFormField_label_9_ng_container_2_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerStart"](0);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵprojection"](1, 2);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span");

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerEnd"]();
        }

        if (rf & 2) {
          var ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](ctx_r10._control.placeholder);
        }
      }

      function MatFormField_label_9_ng_content_3_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵprojection"](0, 3, ["*ngSwitchCase", "true"]);
        }
      }

      function MatFormField_label_9_span_4_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "span", 23);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, " *");

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
        }
      }

      function MatFormField_label_9_Template(rf, ctx) {
        if (rf & 1) {
          var _r14 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "label", 20, 21);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("cdkObserveContent", function MatFormField_label_9_Template_label_cdkObserveContent_0_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r14);

            var ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();

            return ctx_r13.updateOutlineGap();
          });

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](2, MatFormField_label_9_ng_container_2_Template, 4, 1, "ng-container", 12);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](3, MatFormField_label_9_ng_content_3_Template, 1, 0, "ng-content", 12);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, MatFormField_label_9_span_4_Template, 2, 0, "span", 22);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
        }

        if (rf & 2) {
          var ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassProp"]("mat-empty", ctx_r4._control.empty && !ctx_r4._shouldAlwaysFloat())("mat-form-field-empty", ctx_r4._control.empty && !ctx_r4._shouldAlwaysFloat())("mat-accent", ctx_r4.color == "accent")("mat-warn", ctx_r4.color == "warn");

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("cdkObserveContentDisabled", ctx_r4.appearance != "outline")("id", ctx_r4._labelId)("ngSwitch", ctx_r4._hasLabel());

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵattribute"]("for", ctx_r4._control.id)("aria-owns", ctx_r4._control.id);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngSwitchCase", false);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngSwitchCase", true);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx_r4.hideRequiredMarker && ctx_r4._control.required && !ctx_r4._control.disabled);
        }
      }

      function MatFormField_div_10_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 24);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵprojection"](1, 4);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
        }
      }

      function MatFormField_div_11_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 25, 26);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](2, "span", 27);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
        }

        if (rf & 2) {
          var ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassProp"]("mat-accent", ctx_r6.color == "accent")("mat-warn", ctx_r6.color == "warn");
        }
      }

      function MatFormField_div_13_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵprojection"](1, 5);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
        }

        if (rf & 2) {
          var ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("@transitionMessages", ctx_r7._subscriptAnimationState);
        }
      }

      function MatFormField_div_14_div_1_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 31);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
        }

        if (rf & 2) {
          var ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("id", ctx_r16._hintLabelId);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](ctx_r16.hintLabel);
        }
      }

      function MatFormField_div_14_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 28);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, MatFormField_div_14_div_1_Template, 2, 2, "div", 29);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵprojection"](2, 6);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "div", 30);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵprojection"](4, 7);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
        }

        if (rf & 2) {
          var ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("@transitionMessages", ctx_r8._subscriptAnimationState);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r8.hintLabel);
        }
      }

      var _c4 = ["*", [["", "matPrefix", ""]], [["mat-placeholder"]], [["mat-label"]], [["", "matSuffix", ""]], [["mat-error"]], [["mat-hint", 3, "align", "end"]], [["mat-hint", "align", "end"]]];
      var _c5 = ["*", "[matPrefix]", "mat-placeholder", "mat-label", "[matSuffix]", "mat-error", "mat-hint:not([align='end'])", "mat-hint[align='end']"];
      var nextUniqueId = 0;
      /**
       * Injection token that can be used to reference instances of `MatError`. It serves as
       * alternative token to the actual `MatError` class which could cause unnecessary
       * retention of the class and its directive metadata.
       */

      var MAT_ERROR = new _angular_core__WEBPACK_IMPORTED_MODULE_2__["InjectionToken"]('MatError');
      /** Single error message to be shown underneath the form field. */

      var MatError = function MatError() {
        _classCallCheck2(this, MatError);

        this.id = "mat-error-".concat(nextUniqueId++);
      };

      MatError.ɵfac = function MatError_Factory(t) {
        return new (t || MatError)();
      };

      MatError.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineDirective"]({
        type: MatError,
        selectors: [["mat-error"]],
        hostAttrs: ["role", "alert", 1, "mat-error"],
        hostVars: 1,
        hostBindings: function MatError_HostBindings(rf, ctx) {
          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵattribute"]("id", ctx.id);
          }
        },
        inputs: {
          id: "id"
        },
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵProvidersFeature"]([{
          provide: MAT_ERROR,
          useExisting: MatError
        }])]
      });
      MatError.propDecorators = {
        id: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵsetClassMetadata"](MatError, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Directive"],
          args: [{
            selector: 'mat-error',
            host: {
              'class': 'mat-error',
              'role': 'alert',
              '[attr.id]': 'id'
            },
            providers: [{
              provide: MAT_ERROR,
              useExisting: MatError
            }]
          }]
        }], function () {
          return [];
        }, {
          id: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
          }]
        });
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Animations used by the MatFormField.
       * @docs-private
       */


      var matFormFieldAnimations = {
        /** Animation that transitions the form field's error and hint messages. */
        transitionMessages: Object(_angular_animations__WEBPACK_IMPORTED_MODULE_8__["trigger"])('transitionMessages', [// TODO(mmalerba): Use angular animations for label animation as well.
        Object(_angular_animations__WEBPACK_IMPORTED_MODULE_8__["state"])('enter', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_8__["style"])({
          opacity: 1,
          transform: 'translateY(0%)'
        })), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_8__["transition"])('void => enter', [Object(_angular_animations__WEBPACK_IMPORTED_MODULE_8__["style"])({
          opacity: 0,
          transform: 'translateY(-100%)'
        }), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_8__["animate"])('300ms cubic-bezier(0.55, 0, 0.55, 0.2)')])])
      };
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** An interface which allows a control to work inside of a `MatFormField`. */

      var MatFormFieldControl = function MatFormFieldControl() {
        _classCallCheck2(this, MatFormFieldControl);
      };

      MatFormFieldControl.ɵfac = function MatFormFieldControl_Factory(t) {
        return new (t || MatFormFieldControl)();
      };

      MatFormFieldControl.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineDirective"]({
        type: MatFormFieldControl
      });
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵsetClassMetadata"](MatFormFieldControl, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Directive"]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** @docs-private */


      function getMatFormFieldPlaceholderConflictError() {
        return Error('Placeholder attribute and child element were both specified.');
      }
      /** @docs-private */


      function getMatFormFieldDuplicatedHintError(align) {
        return Error("A hint was already declared for 'align=\"".concat(align, "\"'."));
      }
      /** @docs-private */


      function getMatFormFieldMissingControlError() {
        return Error('mat-form-field must contain a MatFormFieldControl.');
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var nextUniqueId$1 = 0;
      /**
       * Injection token that can be used to reference instances of `MatHint`. It serves as
       * alternative token to the actual `MatHint` class which could cause unnecessary
       * retention of the class and its directive metadata.
       *
       * *Note*: This is not part of the public API as the MDC-based form-field will not
       * need a lightweight token for `MatHint` and we want to reduce breaking changes.
       */

      var _MAT_HINT = new _angular_core__WEBPACK_IMPORTED_MODULE_2__["InjectionToken"]('MatHint');
      /** Hint text to be shown underneath the form field control. */


      var MatHint = function MatHint() {
        _classCallCheck2(this, MatHint);

        /** Whether to align the hint label at the start or end of the line. */
        this.align = 'start';
        /** Unique ID for the hint. Used for the aria-describedby on the form field control. */

        this.id = "mat-hint-".concat(nextUniqueId$1++);
      };

      MatHint.ɵfac = function MatHint_Factory(t) {
        return new (t || MatHint)();
      };

      MatHint.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineDirective"]({
        type: MatHint,
        selectors: [["mat-hint"]],
        hostAttrs: [1, "mat-hint"],
        hostVars: 4,
        hostBindings: function MatHint_HostBindings(rf, ctx) {
          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵattribute"]("id", ctx.id)("align", null);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassProp"]("mat-form-field-hint-end", ctx.align === "end");
          }
        },
        inputs: {
          align: "align",
          id: "id"
        },
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵProvidersFeature"]([{
          provide: _MAT_HINT,
          useExisting: MatHint
        }])]
      });
      MatHint.propDecorators = {
        align: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
        }],
        id: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵsetClassMetadata"](MatHint, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Directive"],
          args: [{
            selector: 'mat-hint',
            host: {
              'class': 'mat-hint',
              '[class.mat-form-field-hint-end]': 'align === "end"',
              '[attr.id]': 'id',
              // Remove align attribute to prevent it from interfering with layout.
              '[attr.align]': 'null'
            },
            providers: [{
              provide: _MAT_HINT,
              useExisting: MatHint
            }]
          }]
        }], function () {
          return [];
        }, {
          align: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
          }],
          id: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
          }]
        });
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** The floating label for a `mat-form-field`. */


      var MatLabel = function MatLabel() {
        _classCallCheck2(this, MatLabel);
      };

      MatLabel.ɵfac = function MatLabel_Factory(t) {
        return new (t || MatLabel)();
      };

      MatLabel.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineDirective"]({
        type: MatLabel,
        selectors: [["mat-label"]]
      });
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵsetClassMetadata"](MatLabel, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Directive"],
          args: [{
            selector: 'mat-label'
          }]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * The placeholder text for an `MatFormField`.
       * @deprecated Use `<mat-label>` to specify the label and the `placeholder` attribute to specify the
       *     placeholder.
       * @breaking-change 8.0.0
       */


      var MatPlaceholder = function MatPlaceholder() {
        _classCallCheck2(this, MatPlaceholder);
      };

      MatPlaceholder.ɵfac = function MatPlaceholder_Factory(t) {
        return new (t || MatPlaceholder)();
      };

      MatPlaceholder.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineDirective"]({
        type: MatPlaceholder,
        selectors: [["mat-placeholder"]]
      });
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵsetClassMetadata"](MatPlaceholder, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Directive"],
          args: [{
            selector: 'mat-placeholder'
          }]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Injection token that can be used to reference instances of `MatPrefix`. It serves as
       * alternative token to the actual `MatPrefix` class which could cause unnecessary
       * retention of the class and its directive metadata.
       */


      var MAT_PREFIX = new _angular_core__WEBPACK_IMPORTED_MODULE_2__["InjectionToken"]('MatPrefix');
      /** Prefix to be placed in front of the form field. */

      var MatPrefix = function MatPrefix() {
        _classCallCheck2(this, MatPrefix);
      };

      MatPrefix.ɵfac = function MatPrefix_Factory(t) {
        return new (t || MatPrefix)();
      };

      MatPrefix.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineDirective"]({
        type: MatPrefix,
        selectors: [["", "matPrefix", ""]],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵProvidersFeature"]([{
          provide: MAT_PREFIX,
          useExisting: MatPrefix
        }])]
      });
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵsetClassMetadata"](MatPrefix, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Directive"],
          args: [{
            selector: '[matPrefix]',
            providers: [{
              provide: MAT_PREFIX,
              useExisting: MatPrefix
            }]
          }]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Injection token that can be used to reference instances of `MatSuffix`. It serves as
       * alternative token to the actual `MatSuffix` class which could cause unnecessary
       * retention of the class and its directive metadata.
       */


      var MAT_SUFFIX = new _angular_core__WEBPACK_IMPORTED_MODULE_2__["InjectionToken"]('MatSuffix');
      /** Suffix to be placed at the end of the form field. */

      var MatSuffix = function MatSuffix() {
        _classCallCheck2(this, MatSuffix);
      };

      MatSuffix.ɵfac = function MatSuffix_Factory(t) {
        return new (t || MatSuffix)();
      };

      MatSuffix.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineDirective"]({
        type: MatSuffix,
        selectors: [["", "matSuffix", ""]],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵProvidersFeature"]([{
          provide: MAT_SUFFIX,
          useExisting: MatSuffix
        }])]
      });
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵsetClassMetadata"](MatSuffix, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Directive"],
          args: [{
            selector: '[matSuffix]',
            providers: [{
              provide: MAT_SUFFIX,
              useExisting: MatSuffix
            }]
          }]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var nextUniqueId$2 = 0;
      var floatingLabelScale = 0.75;
      var outlineGapPadding = 5;
      /**
       * Boilerplate for applying mixins to MatFormField.
       * @docs-private
       */

      var MatFormFieldBase = function MatFormFieldBase(_elementRef) {
        _classCallCheck2(this, MatFormFieldBase);

        this._elementRef = _elementRef;
      };
      /**
       * Base class to which we're applying the form field mixins.
       * @docs-private
       */


      var _MatFormFieldMixinBase = Object(_angular_material_core__WEBPACK_IMPORTED_MODULE_3__["mixinColor"])(MatFormFieldBase, 'primary');
      /**
       * Injection token that can be used to configure the
       * default options for all form field within an app.
       */


      var MAT_FORM_FIELD_DEFAULT_OPTIONS = new _angular_core__WEBPACK_IMPORTED_MODULE_2__["InjectionToken"]('MAT_FORM_FIELD_DEFAULT_OPTIONS');
      /**
       * Injection token that can be used to inject an instances of `MatFormField`. It serves
       * as alternative token to the actual `MatFormField` class which would cause unnecessary
       * retention of the `MatFormField` class and its component metadata.
       */

      var MAT_FORM_FIELD = new _angular_core__WEBPACK_IMPORTED_MODULE_2__["InjectionToken"]('MatFormField');
      /** Container for form controls that applies Material Design styling and behavior. */

      var MatFormField = /*#__PURE__*/function (_MatFormFieldMixinBas) {
        _inherits2(MatFormField, _MatFormFieldMixinBas);

        var _super291 = _createSuper2(MatFormField);

        function MatFormField(_elementRef, _changeDetectorRef,
        /**
         * @deprecated `_labelOptions` parameter no longer being used. To be removed.
         * @breaking-change 12.0.0
         */
        // Use `ElementRef` here so Angular has something to inject.
        _labelOptions, _dir, _defaults, _platform, _ngZone, _animationMode) {
          var _this579;

          _classCallCheck2(this, MatFormField);

          _this579 = _super291.call(this, _elementRef);
          _this579._elementRef = _elementRef;
          _this579._changeDetectorRef = _changeDetectorRef;
          _this579._dir = _dir;
          _this579._defaults = _defaults;
          _this579._platform = _platform;
          _this579._ngZone = _ngZone;
          /**
           * Whether the outline gap needs to be calculated
           * immediately on the next change detection run.
           */

          _this579._outlineGapCalculationNeededImmediately = false;
          /** Whether the outline gap needs to be calculated next time the zone has stabilized. */

          _this579._outlineGapCalculationNeededOnStable = false;
          _this579._destroyed = new rxjs__WEBPACK_IMPORTED_MODULE_6__["Subject"]();
          /** Override for the logic that disables the label animation in certain cases. */

          _this579._showAlwaysAnimate = false;
          /** State of the mat-hint and mat-error animations. */

          _this579._subscriptAnimationState = '';
          _this579._hintLabel = ''; // Unique id for the hint label.

          _this579._hintLabelId = "mat-hint-".concat(nextUniqueId$2++); // Unique id for the label element.

          _this579._labelId = "mat-form-field-label-".concat(nextUniqueId$2++);
          _this579.floatLabel = _this579._getDefaultFloatLabelState();
          _this579._animationsEnabled = _animationMode !== 'NoopAnimations'; // Set the default through here so we invoke the setter on the first run.

          _this579.appearance = _defaults && _defaults.appearance ? _defaults.appearance : 'legacy';
          _this579._hideRequiredMarker = _defaults && _defaults.hideRequiredMarker != null ? _defaults.hideRequiredMarker : false;
          return _this579;
        }
        /** The form-field appearance style. */


        _createClass2(MatFormField, [{
          key: "appearance",
          get: function get() {
            return this._appearance;
          },
          set: function set(value) {
            var oldValue = this._appearance;
            this._appearance = value || this._defaults && this._defaults.appearance || 'legacy';

            if (this._appearance === 'outline' && oldValue !== value) {
              this._outlineGapCalculationNeededOnStable = true;
            }
          }
          /** Whether the required marker should be hidden. */

        }, {
          key: "hideRequiredMarker",
          get: function get() {
            return this._hideRequiredMarker;
          },
          set: function set(value) {
            this._hideRequiredMarker = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_5__["coerceBooleanProperty"])(value);
          }
          /** Whether the floating label should always float or not. */

        }, {
          key: "_shouldAlwaysFloat",
          value: function _shouldAlwaysFloat() {
            return this.floatLabel === 'always' && !this._showAlwaysAnimate;
          }
          /** Whether the label can float or not. */

        }, {
          key: "_canLabelFloat",
          value: function _canLabelFloat() {
            return this.floatLabel !== 'never';
          }
          /** Text for the form field hint. */

        }, {
          key: "hintLabel",
          get: function get() {
            return this._hintLabel;
          },
          set: function set(value) {
            this._hintLabel = value;

            this._processHints();
          }
          /**
           * Whether the label should always float, never float or float as the user types.
           *
           * Note: only the legacy appearance supports the `never` option. `never` was originally added as a
           * way to make the floating label emulate the behavior of a standard input placeholder. However
           * the form field now supports both floating labels and placeholders. Therefore in the non-legacy
           * appearances the `never` option has been disabled in favor of just using the placeholder.
           */

        }, {
          key: "floatLabel",
          get: function get() {
            return this.appearance !== 'legacy' && this._floatLabel === 'never' ? 'auto' : this._floatLabel;
          },
          set: function set(value) {
            if (value !== this._floatLabel) {
              this._floatLabel = value || this._getDefaultFloatLabelState();

              this._changeDetectorRef.markForCheck();
            }
          }
        }, {
          key: "_control",
          get: function get() {
            // TODO(crisbeto): we need this workaround in order to support both Ivy and ViewEngine.
            //  We should clean this up once Ivy is the default renderer.
            return this._explicitFormFieldControl || this._controlNonStatic || this._controlStatic;
          },
          set: function set(value) {
            this._explicitFormFieldControl = value;
          }
          /**
           * Gets the id of the label element. If no label is present, returns `null`.
           */

        }, {
          key: "getLabelId",
          value: function getLabelId() {
            return this._hasFloatingLabel() ? this._labelId : null;
          }
          /**
           * Gets an ElementRef for the element that a overlay attached to the form-field should be
           * positioned relative to.
           */

        }, {
          key: "getConnectedOverlayOrigin",
          value: function getConnectedOverlayOrigin() {
            return this._connectionContainerRef || this._elementRef;
          }
        }, {
          key: "ngAfterContentInit",
          value: function ngAfterContentInit() {
            var _this580 = this;

            this._validateControlChild();

            var control = this._control;

            if (control.controlType) {
              this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(control.controlType));
            } // Subscribe to changes in the child control state in order to update the form field UI.


            control.stateChanges.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_7__["startWith"])(null)).subscribe(function () {
              _this580._validatePlaceholders();

              _this580._syncDescribedByIds();

              _this580._changeDetectorRef.markForCheck();
            }); // Run change detection if the value changes.

            if (control.ngControl && control.ngControl.valueChanges) {
              control.ngControl.valueChanges.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_7__["takeUntil"])(this._destroyed)).subscribe(function () {
                return _this580._changeDetectorRef.markForCheck();
              });
            } // Note that we have to run outside of the `NgZone` explicitly,
            // in order to avoid throwing users into an infinite loop
            // if `zone-patch-rxjs` is included.


            this._ngZone.runOutsideAngular(function () {
              _this580._ngZone.onStable.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_7__["takeUntil"])(_this580._destroyed)).subscribe(function () {
                if (_this580._outlineGapCalculationNeededOnStable) {
                  _this580.updateOutlineGap();
                }
              });
            }); // Run change detection and update the outline if the suffix or prefix changes.


            Object(rxjs__WEBPACK_IMPORTED_MODULE_6__["merge"])(this._prefixChildren.changes, this._suffixChildren.changes).subscribe(function () {
              _this580._outlineGapCalculationNeededOnStable = true;

              _this580._changeDetectorRef.markForCheck();
            }); // Re-validate when the number of hints changes.

            this._hintChildren.changes.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_7__["startWith"])(null)).subscribe(function () {
              _this580._processHints();

              _this580._changeDetectorRef.markForCheck();
            }); // Update the aria-described by when the number of errors changes.


            this._errorChildren.changes.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_7__["startWith"])(null)).subscribe(function () {
              _this580._syncDescribedByIds();

              _this580._changeDetectorRef.markForCheck();
            });

            if (this._dir) {
              this._dir.change.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_7__["takeUntil"])(this._destroyed)).subscribe(function () {
                if (typeof requestAnimationFrame === 'function') {
                  _this580._ngZone.runOutsideAngular(function () {
                    requestAnimationFrame(function () {
                      return _this580.updateOutlineGap();
                    });
                  });
                } else {
                  _this580.updateOutlineGap();
                }
              });
            }
          }
        }, {
          key: "ngAfterContentChecked",
          value: function ngAfterContentChecked() {
            this._validateControlChild();

            if (this._outlineGapCalculationNeededImmediately) {
              this.updateOutlineGap();
            }
          }
        }, {
          key: "ngAfterViewInit",
          value: function ngAfterViewInit() {
            // Avoid animations on load.
            this._subscriptAnimationState = 'enter';

            this._changeDetectorRef.detectChanges();
          }
        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            this._destroyed.next();

            this._destroyed.complete();
          }
          /** Determines whether a class from the NgControl should be forwarded to the host element. */

        }, {
          key: "_shouldForward",
          value: function _shouldForward(prop) {
            var ngControl = this._control ? this._control.ngControl : null;
            return ngControl && ngControl[prop];
          }
        }, {
          key: "_hasPlaceholder",
          value: function _hasPlaceholder() {
            return !!(this._control && this._control.placeholder || this._placeholderChild);
          }
        }, {
          key: "_hasLabel",
          value: function _hasLabel() {
            return !!(this._labelChildNonStatic || this._labelChildStatic);
          }
        }, {
          key: "_shouldLabelFloat",
          value: function _shouldLabelFloat() {
            return this._canLabelFloat() && (this._control && this._control.shouldLabelFloat || this._shouldAlwaysFloat());
          }
        }, {
          key: "_hideControlPlaceholder",
          value: function _hideControlPlaceholder() {
            // In the legacy appearance the placeholder is promoted to a label if no label is given.
            return this.appearance === 'legacy' && !this._hasLabel() || this._hasLabel() && !this._shouldLabelFloat();
          }
        }, {
          key: "_hasFloatingLabel",
          value: function _hasFloatingLabel() {
            // In the legacy appearance the placeholder is promoted to a label if no label is given.
            return this._hasLabel() || this.appearance === 'legacy' && this._hasPlaceholder();
          }
          /** Determines whether to display hints or errors. */

        }, {
          key: "_getDisplayedMessages",
          value: function _getDisplayedMessages() {
            return this._errorChildren && this._errorChildren.length > 0 && this._control.errorState ? 'error' : 'hint';
          }
          /** Animates the placeholder up and locks it in position. */

        }, {
          key: "_animateAndLockLabel",
          value: function _animateAndLockLabel() {
            var _this581 = this;

            if (this._hasFloatingLabel() && this._canLabelFloat()) {
              // If animations are disabled, we shouldn't go in here,
              // because the `transitionend` will never fire.
              if (this._animationsEnabled && this._label) {
                this._showAlwaysAnimate = true;
                Object(rxjs__WEBPACK_IMPORTED_MODULE_6__["fromEvent"])(this._label.nativeElement, 'transitionend').pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_7__["take"])(1)).subscribe(function () {
                  _this581._showAlwaysAnimate = false;
                });
              }

              this.floatLabel = 'always';

              this._changeDetectorRef.markForCheck();
            }
          }
          /**
           * Ensure that there is only one placeholder (either `placeholder` attribute on the child control
           * or child element with the `mat-placeholder` directive).
           */

        }, {
          key: "_validatePlaceholders",
          value: function _validatePlaceholders() {
            if (this._control.placeholder && this._placeholderChild && (typeof ngDevMode === 'undefined' || ngDevMode)) {
              throw getMatFormFieldPlaceholderConflictError();
            }
          }
          /** Does any extra processing that is required when handling the hints. */

        }, {
          key: "_processHints",
          value: function _processHints() {
            this._validateHints();

            this._syncDescribedByIds();
          }
          /**
           * Ensure that there is a maximum of one of each `<mat-hint>` alignment specified, with the
           * attribute being considered as `align="start"`.
           */

        }, {
          key: "_validateHints",
          value: function _validateHints() {
            var _this582 = this;

            if (this._hintChildren && (typeof ngDevMode === 'undefined' || ngDevMode)) {
              var startHint;
              var endHint;

              this._hintChildren.forEach(function (hint) {
                if (hint.align === 'start') {
                  if (startHint || _this582.hintLabel) {
                    throw getMatFormFieldDuplicatedHintError('start');
                  }

                  startHint = hint;
                } else if (hint.align === 'end') {
                  if (endHint) {
                    throw getMatFormFieldDuplicatedHintError('end');
                  }

                  endHint = hint;
                }
              });
            }
          }
          /** Gets the default float label state. */

        }, {
          key: "_getDefaultFloatLabelState",
          value: function _getDefaultFloatLabelState() {
            return this._defaults && this._defaults.floatLabel || 'auto';
          }
          /**
           * Sets the list of element IDs that describe the child control. This allows the control to update
           * its `aria-describedby` attribute accordingly.
           */

        }, {
          key: "_syncDescribedByIds",
          value: function _syncDescribedByIds() {
            if (this._control) {
              var ids = []; // TODO(wagnermaciel): Remove the type check when we find the root cause of this bug.

              if (this._control.userAriaDescribedBy && typeof this._control.userAriaDescribedBy === 'string') {
                ids.push.apply(ids, _toConsumableArray(this._control.userAriaDescribedBy.split(' ')));
              }

              if (this._getDisplayedMessages() === 'hint') {
                var startHint = this._hintChildren ? this._hintChildren.find(function (hint) {
                  return hint.align === 'start';
                }) : null;
                var endHint = this._hintChildren ? this._hintChildren.find(function (hint) {
                  return hint.align === 'end';
                }) : null;

                if (startHint) {
                  ids.push(startHint.id);
                } else if (this._hintLabel) {
                  ids.push(this._hintLabelId);
                }

                if (endHint) {
                  ids.push(endHint.id);
                }
              } else if (this._errorChildren) {
                ids.push.apply(ids, _toConsumableArray(this._errorChildren.map(function (error) {
                  return error.id;
                })));
              }

              this._control.setDescribedByIds(ids);
            }
          }
          /** Throws an error if the form field's control is missing. */

        }, {
          key: "_validateControlChild",
          value: function _validateControlChild() {
            if (!this._control && (typeof ngDevMode === 'undefined' || ngDevMode)) {
              throw getMatFormFieldMissingControlError();
            }
          }
          /**
           * Updates the width and position of the gap in the outline. Only relevant for the outline
           * appearance.
           */

        }, {
          key: "updateOutlineGap",
          value: function updateOutlineGap() {
            var labelEl = this._label ? this._label.nativeElement : null;

            if (this.appearance !== 'outline' || !labelEl || !labelEl.children.length || !labelEl.textContent.trim()) {
              return;
            }

            if (!this._platform.isBrowser) {
              // getBoundingClientRect isn't available on the server.
              return;
            } // If the element is not present in the DOM, the outline gap will need to be calculated
            // the next time it is checked and in the DOM.


            if (!this._isAttachedToDOM()) {
              this._outlineGapCalculationNeededImmediately = true;
              return;
            }

            var startWidth = 0;
            var gapWidth = 0;
            var container = this._connectionContainerRef.nativeElement;
            var startEls = container.querySelectorAll('.mat-form-field-outline-start');
            var gapEls = container.querySelectorAll('.mat-form-field-outline-gap');

            if (this._label && this._label.nativeElement.children.length) {
              var containerRect = container.getBoundingClientRect(); // If the container's width and height are zero, it means that the element is
              // invisible and we can't calculate the outline gap. Mark the element as needing
              // to be checked the next time the zone stabilizes. We can't do this immediately
              // on the next change detection, because even if the element becomes visible,
              // the `ClientRect` won't be reclaculated immediately. We reset the
              // `_outlineGapCalculationNeededImmediately` flag some we don't run the checks twice.

              if (containerRect.width === 0 && containerRect.height === 0) {
                this._outlineGapCalculationNeededOnStable = true;
                this._outlineGapCalculationNeededImmediately = false;
                return;
              }

              var containerStart = this._getStartEnd(containerRect);

              var labelChildren = labelEl.children;

              var labelStart = this._getStartEnd(labelChildren[0].getBoundingClientRect());

              var labelWidth = 0;

              for (var i = 0; i < labelChildren.length; i++) {
                labelWidth += labelChildren[i].offsetWidth;
              }

              startWidth = Math.abs(labelStart - containerStart) - outlineGapPadding;
              gapWidth = labelWidth > 0 ? labelWidth * floatingLabelScale + outlineGapPadding * 2 : 0;
            }

            for (var _i34 = 0; _i34 < startEls.length; _i34++) {
              startEls[_i34].style.width = "".concat(startWidth, "px");
            }

            for (var _i35 = 0; _i35 < gapEls.length; _i35++) {
              gapEls[_i35].style.width = "".concat(gapWidth, "px");
            }

            this._outlineGapCalculationNeededOnStable = this._outlineGapCalculationNeededImmediately = false;
          }
          /** Gets the start end of the rect considering the current directionality. */

        }, {
          key: "_getStartEnd",
          value: function _getStartEnd(rect) {
            return this._dir && this._dir.value === 'rtl' ? rect.right : rect.left;
          }
          /** Checks whether the form field is attached to the DOM. */

        }, {
          key: "_isAttachedToDOM",
          value: function _isAttachedToDOM() {
            var element = this._elementRef.nativeElement;

            if (element.getRootNode) {
              var rootNode = element.getRootNode(); // If the element is inside the DOM the root node will be either the document
              // or the closest shadow root, otherwise it'll be the element itself.

              return rootNode && rootNode !== element;
            } // Otherwise fall back to checking if it's in the document. This doesn't account for
            // shadow DOM, however browser that support shadow DOM should support `getRootNode` as well.


            return document.documentElement.contains(element);
          }
        }]);

        return MatFormField;
      }(_MatFormFieldMixinBase);

      MatFormField.ɵfac = function MatFormField_Factory(t) {
        return new (t || MatFormField)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_2__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_2__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_2__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_4__["Directionality"], 8), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](MAT_FORM_FIELD_DEFAULT_OPTIONS, 8), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_9__["Platform"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_2__["NgZone"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_10__["ANIMATION_MODULE_TYPE"], 8));
      };

      MatFormField.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({
        type: MatFormField,
        selectors: [["mat-form-field"]],
        contentQueries: function MatFormField_ContentQueries(rf, ctx, dirIndex) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵcontentQuery"](dirIndex, MatFormFieldControl, true);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵstaticContentQuery"](dirIndex, MatFormFieldControl, true);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵcontentQuery"](dirIndex, MatLabel, true);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵstaticContentQuery"](dirIndex, MatLabel, true);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵcontentQuery"](dirIndex, MatPlaceholder, true);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵcontentQuery"](dirIndex, MAT_ERROR, true);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵcontentQuery"](dirIndex, _MAT_HINT, true);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵcontentQuery"](dirIndex, MAT_PREFIX, true);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵcontentQuery"](dirIndex, MAT_SUFFIX, true);
          }

          if (rf & 2) {
            var _t;

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵloadQuery"]()) && (ctx._controlNonStatic = _t.first);
            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵloadQuery"]()) && (ctx._controlStatic = _t.first);
            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵloadQuery"]()) && (ctx._labelChildNonStatic = _t.first);
            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵloadQuery"]()) && (ctx._labelChildStatic = _t.first);
            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵloadQuery"]()) && (ctx._placeholderChild = _t.first);
            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵloadQuery"]()) && (ctx._errorChildren = _t);
            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵloadQuery"]()) && (ctx._hintChildren = _t);
            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵloadQuery"]()) && (ctx._prefixChildren = _t);
            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵloadQuery"]()) && (ctx._suffixChildren = _t);
          }
        },
        viewQuery: function MatFormField_Query(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵviewQuery"](_c0, true);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵstaticViewQuery"](_c1, true);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵviewQuery"](_c2, true);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵviewQuery"](_c3, true);
          }

          if (rf & 2) {
            var _t;

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵloadQuery"]()) && (ctx.underlineRef = _t.first);
            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵloadQuery"]()) && (ctx._connectionContainerRef = _t.first);
            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵloadQuery"]()) && (ctx._inputContainerRef = _t.first);
            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵloadQuery"]()) && (ctx._label = _t.first);
          }
        },
        hostAttrs: [1, "mat-form-field"],
        hostVars: 44,
        hostBindings: function MatFormField_HostBindings(rf, ctx) {
          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassProp"]("mat-form-field-appearance-standard", ctx.appearance == "standard")("mat-form-field-appearance-fill", ctx.appearance == "fill")("mat-form-field-appearance-outline", ctx.appearance == "outline")("mat-form-field-appearance-legacy", ctx.appearance == "legacy")("mat-form-field-invalid", ctx._control.errorState)("mat-form-field-can-float", ctx._canLabelFloat())("mat-form-field-should-float", ctx._shouldLabelFloat())("mat-form-field-has-label", ctx._hasFloatingLabel())("mat-form-field-hide-placeholder", ctx._hideControlPlaceholder())("mat-form-field-disabled", ctx._control.disabled)("mat-form-field-autofilled", ctx._control.autofilled)("mat-focused", ctx._control.focused)("mat-accent", ctx.color == "accent")("mat-warn", ctx.color == "warn")("ng-untouched", ctx._shouldForward("untouched"))("ng-touched", ctx._shouldForward("touched"))("ng-pristine", ctx._shouldForward("pristine"))("ng-dirty", ctx._shouldForward("dirty"))("ng-valid", ctx._shouldForward("valid"))("ng-invalid", ctx._shouldForward("invalid"))("ng-pending", ctx._shouldForward("pending"))("_mat-animation-noopable", !ctx._animationsEnabled);
          }
        },
        inputs: {
          color: "color",
          floatLabel: "floatLabel",
          appearance: "appearance",
          hideRequiredMarker: "hideRequiredMarker",
          hintLabel: "hintLabel"
        },
        exportAs: ["matFormField"],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵProvidersFeature"]([{
          provide: MAT_FORM_FIELD,
          useExisting: MatFormField
        }]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵInheritDefinitionFeature"]],
        ngContentSelectors: _c5,
        decls: 15,
        vars: 8,
        consts: [[1, "mat-form-field-wrapper"], [1, "mat-form-field-flex", 3, "click"], ["connectionContainer", ""], [4, "ngIf"], ["class", "mat-form-field-prefix", 4, "ngIf"], [1, "mat-form-field-infix"], ["inputContainer", ""], [1, "mat-form-field-label-wrapper"], ["class", "mat-form-field-label", 3, "cdkObserveContentDisabled", "id", "mat-empty", "mat-form-field-empty", "mat-accent", "mat-warn", "ngSwitch", "cdkObserveContent", 4, "ngIf"], ["class", "mat-form-field-suffix", 4, "ngIf"], ["class", "mat-form-field-underline", 4, "ngIf"], [1, "mat-form-field-subscript-wrapper", 3, "ngSwitch"], [4, "ngSwitchCase"], ["class", "mat-form-field-hint-wrapper", 4, "ngSwitchCase"], [1, "mat-form-field-outline"], [1, "mat-form-field-outline-start"], [1, "mat-form-field-outline-gap"], [1, "mat-form-field-outline-end"], [1, "mat-form-field-outline", "mat-form-field-outline-thick"], [1, "mat-form-field-prefix"], [1, "mat-form-field-label", 3, "cdkObserveContentDisabled", "id", "ngSwitch", "cdkObserveContent"], ["label", ""], ["class", "mat-placeholder-required mat-form-field-required-marker", "aria-hidden", "true", 4, "ngIf"], ["aria-hidden", "true", 1, "mat-placeholder-required", "mat-form-field-required-marker"], [1, "mat-form-field-suffix"], [1, "mat-form-field-underline"], ["underline", ""], [1, "mat-form-field-ripple"], [1, "mat-form-field-hint-wrapper"], ["class", "mat-hint", 3, "id", 4, "ngIf"], [1, "mat-form-field-hint-spacer"], [1, "mat-hint", 3, "id"]],
        template: function MatFormField_Template(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵprojectionDef"](_c4);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 0);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 1, 2);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function MatFormField_Template_div_click_1_listener($event) {
              return ctx._control.onContainerClick && ctx._control.onContainerClick($event);
            });

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](3, MatFormField_ng_container_3_Template, 9, 0, "ng-container", 3);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, MatFormField_div_4_Template, 2, 0, "div", 4);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 5, 6);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵprojection"](7);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "span", 7);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](9, MatFormField_label_9_Template, 5, 16, "label", 8);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](10, MatFormField_div_10_Template, 2, 0, "div", 9);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](11, MatFormField_div_11_Template, 3, 4, "div", 10);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "div", 11);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](13, MatFormField_div_13_Template, 2, 1, "div", 12);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](14, MatFormField_div_14_Template, 5, 2, "div", 13);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
          }

          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.appearance == "outline");

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx._prefixChildren.length);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx._hasFloatingLabel());

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx._suffixChildren.length);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.appearance != "outline");

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngSwitch", ctx._getDisplayedMessages());

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngSwitchCase", "error");

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngSwitchCase", "hint");
          }
        },
        directives: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["NgIf"], _angular_common__WEBPACK_IMPORTED_MODULE_1__["NgSwitch"], _angular_common__WEBPACK_IMPORTED_MODULE_1__["NgSwitchCase"], _angular_cdk_observers__WEBPACK_IMPORTED_MODULE_0__["CdkObserveContent"]],
        styles: [".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:scaleX(1);transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n", ".mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:\"\";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n", ".mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element::-ms-clear,.mat-input-element::-ms-reveal{display:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:\" \";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-ms-expand{display:none}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}select.mat-input-element::-ms-value{color:inherit;background:none}.mat-focused .cdk-high-contrast-active select.mat-input-element::-ms-value{color:inherit}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:\"\";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n", ".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px);-ms-transform:none}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n", ".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n", ".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"],
        encapsulation: 2,
        data: {
          animation: [matFormFieldAnimations.transitionMessages]
        },
        changeDetection: 0
      });

      MatFormField.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ElementRef"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ChangeDetectorRef"]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Inject"],
            args: [_angular_core__WEBPACK_IMPORTED_MODULE_2__["ElementRef"]]
          }]
        }, {
          type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_4__["Directionality"],
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Optional"]
          }]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Inject"],
            args: [MAT_FORM_FIELD_DEFAULT_OPTIONS]
          }]
        }, {
          type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_9__["Platform"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["NgZone"]
        }, {
          type: String,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Inject"],
            args: [_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_10__["ANIMATION_MODULE_TYPE"]]
          }]
        }];
      };

      MatFormField.propDecorators = {
        appearance: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
        }],
        hideRequiredMarker: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
        }],
        hintLabel: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
        }],
        floatLabel: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
        }],
        underlineRef: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewChild"],
          args: ['underline']
        }],
        _connectionContainerRef: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewChild"],
          args: ['connectionContainer', {
            "static": true
          }]
        }],
        _inputContainerRef: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewChild"],
          args: ['inputContainer']
        }],
        _label: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewChild"],
          args: ['label']
        }],
        _controlNonStatic: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ContentChild"],
          args: [MatFormFieldControl]
        }],
        _controlStatic: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ContentChild"],
          args: [MatFormFieldControl, {
            "static": true
          }]
        }],
        _labelChildNonStatic: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ContentChild"],
          args: [MatLabel]
        }],
        _labelChildStatic: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ContentChild"],
          args: [MatLabel, {
            "static": true
          }]
        }],
        _placeholderChild: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ContentChild"],
          args: [MatPlaceholder]
        }],
        _errorChildren: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ContentChildren"],
          args: [MAT_ERROR, {
            descendants: true
          }]
        }],
        _hintChildren: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ContentChildren"],
          args: [_MAT_HINT, {
            descendants: true
          }]
        }],
        _prefixChildren: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ContentChildren"],
          args: [MAT_PREFIX, {
            descendants: true
          }]
        }],
        _suffixChildren: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ContentChildren"],
          args: [MAT_SUFFIX, {
            descendants: true
          }]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵsetClassMetadata"](MatFormField, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Component"],
          args: [{
            selector: 'mat-form-field',
            exportAs: 'matFormField',
            template: "<div class=\"mat-form-field-wrapper\">\n  <div class=\"mat-form-field-flex\" #connectionContainer\n       (click)=\"_control.onContainerClick && _control.onContainerClick($event)\">\n\n    <!-- Outline used for outline appearance. -->\n    <ng-container *ngIf=\"appearance == 'outline'\">\n      <div class=\"mat-form-field-outline\">\n        <div class=\"mat-form-field-outline-start\"></div>\n        <div class=\"mat-form-field-outline-gap\"></div>\n        <div class=\"mat-form-field-outline-end\"></div>\n      </div>\n      <div class=\"mat-form-field-outline mat-form-field-outline-thick\">\n        <div class=\"mat-form-field-outline-start\"></div>\n        <div class=\"mat-form-field-outline-gap\"></div>\n        <div class=\"mat-form-field-outline-end\"></div>\n      </div>\n    </ng-container>\n\n    <div class=\"mat-form-field-prefix\" *ngIf=\"_prefixChildren.length\">\n      <ng-content select=\"[matPrefix]\"></ng-content>\n    </div>\n\n    <div class=\"mat-form-field-infix\" #inputContainer>\n      <ng-content></ng-content>\n\n      <span class=\"mat-form-field-label-wrapper\">\n        <!-- We add aria-owns as a workaround for an issue in JAWS & NVDA where the label isn't\n             read if it comes before the control in the DOM. -->\n        <label class=\"mat-form-field-label\"\n               (cdkObserveContent)=\"updateOutlineGap()\"\n               [cdkObserveContentDisabled]=\"appearance != 'outline'\"\n               [id]=\"_labelId\"\n               [attr.for]=\"_control.id\"\n               [attr.aria-owns]=\"_control.id\"\n               [class.mat-empty]=\"_control.empty && !_shouldAlwaysFloat()\"\n               [class.mat-form-field-empty]=\"_control.empty && !_shouldAlwaysFloat()\"\n               [class.mat-accent]=\"color == 'accent'\"\n               [class.mat-warn]=\"color == 'warn'\"\n               #label\n               *ngIf=\"_hasFloatingLabel()\"\n               [ngSwitch]=\"_hasLabel()\">\n\n          <!-- @breaking-change 8.0.0 remove in favor of mat-label element an placeholder attr. -->\n          <ng-container *ngSwitchCase=\"false\">\n            <ng-content select=\"mat-placeholder\"></ng-content>\n            <span>{{_control.placeholder}}</span>\n          </ng-container>\n\n          <ng-content select=\"mat-label\" *ngSwitchCase=\"true\"></ng-content>\n\n          <!-- @breaking-change 8.0.0 remove `mat-placeholder-required` class -->\n          <span\n            class=\"mat-placeholder-required mat-form-field-required-marker\"\n            aria-hidden=\"true\"\n            *ngIf=\"!hideRequiredMarker && _control.required && !_control.disabled\">&#32;*</span>\n        </label>\n      </span>\n    </div>\n\n    <div class=\"mat-form-field-suffix\" *ngIf=\"_suffixChildren.length\">\n      <ng-content select=\"[matSuffix]\"></ng-content>\n    </div>\n  </div>\n\n  <!-- Underline used for legacy, standard, and box appearances. -->\n  <div class=\"mat-form-field-underline\" #underline\n       *ngIf=\"appearance != 'outline'\">\n    <span class=\"mat-form-field-ripple\"\n          [class.mat-accent]=\"color == 'accent'\"\n          [class.mat-warn]=\"color == 'warn'\"></span>\n  </div>\n\n  <div class=\"mat-form-field-subscript-wrapper\"\n       [ngSwitch]=\"_getDisplayedMessages()\">\n    <div *ngSwitchCase=\"'error'\" [@transitionMessages]=\"_subscriptAnimationState\">\n      <ng-content select=\"mat-error\"></ng-content>\n    </div>\n\n    <div class=\"mat-form-field-hint-wrapper\" *ngSwitchCase=\"'hint'\"\n      [@transitionMessages]=\"_subscriptAnimationState\">\n      <!-- TODO(mmalerba): use an actual <mat-hint> once all selectors are switched to mat-* -->\n      <div *ngIf=\"hintLabel\" [id]=\"_hintLabelId\" class=\"mat-hint\">{{hintLabel}}</div>\n      <ng-content select=\"mat-hint:not([align='end'])\"></ng-content>\n      <div class=\"mat-form-field-hint-spacer\"></div>\n      <ng-content select=\"mat-hint[align='end']\"></ng-content>\n    </div>\n  </div>\n</div>\n",
            animations: [matFormFieldAnimations.transitionMessages],
            host: {
              'class': 'mat-form-field',
              '[class.mat-form-field-appearance-standard]': 'appearance == "standard"',
              '[class.mat-form-field-appearance-fill]': 'appearance == "fill"',
              '[class.mat-form-field-appearance-outline]': 'appearance == "outline"',
              '[class.mat-form-field-appearance-legacy]': 'appearance == "legacy"',
              '[class.mat-form-field-invalid]': '_control.errorState',
              '[class.mat-form-field-can-float]': '_canLabelFloat()',
              '[class.mat-form-field-should-float]': '_shouldLabelFloat()',
              '[class.mat-form-field-has-label]': '_hasFloatingLabel()',
              '[class.mat-form-field-hide-placeholder]': '_hideControlPlaceholder()',
              '[class.mat-form-field-disabled]': '_control.disabled',
              '[class.mat-form-field-autofilled]': '_control.autofilled',
              '[class.mat-focused]': '_control.focused',
              '[class.mat-accent]': 'color == "accent"',
              '[class.mat-warn]': 'color == "warn"',
              '[class.ng-untouched]': '_shouldForward("untouched")',
              '[class.ng-touched]': '_shouldForward("touched")',
              '[class.ng-pristine]': '_shouldForward("pristine")',
              '[class.ng-dirty]': '_shouldForward("dirty")',
              '[class.ng-valid]': '_shouldForward("valid")',
              '[class.ng-invalid]': '_shouldForward("invalid")',
              '[class.ng-pending]': '_shouldForward("pending")',
              '[class._mat-animation-noopable]': '!_animationsEnabled'
            },
            inputs: ['color'],
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewEncapsulation"].None,
            changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ChangeDetectionStrategy"].OnPush,
            providers: [{
              provide: MAT_FORM_FIELD,
              useExisting: MatFormField
            }],
            styles: [".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:scaleX(1);transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n", ".mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:\"\";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n", ".mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element::-ms-clear,.mat-input-element::-ms-reveal{display:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:\" \";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-ms-expand{display:none}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}select.mat-input-element::-ms-value{color:inherit;background:none}.mat-focused .cdk-high-contrast-active select.mat-input-element::-ms-value{color:inherit}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:\"\";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n", ".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px);-ms-transform:none}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n", ".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n", ".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"]
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ElementRef"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ChangeDetectorRef"]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Inject"],
              args: [_angular_core__WEBPACK_IMPORTED_MODULE_2__["ElementRef"]]
            }]
          }, {
            type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_4__["Directionality"],
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Optional"]
            }]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Inject"],
              args: [MAT_FORM_FIELD_DEFAULT_OPTIONS]
            }]
          }, {
            type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_9__["Platform"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["NgZone"]
          }, {
            type: String,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Inject"],
              args: [_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_10__["ANIMATION_MODULE_TYPE"]]
            }]
          }];
        }, {
          floatLabel: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
          }],
          appearance: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
          }],
          hideRequiredMarker: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
          }],
          hintLabel: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
          }],
          underlineRef: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewChild"],
            args: ['underline']
          }],
          _connectionContainerRef: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewChild"],
            args: ['connectionContainer', {
              "static": true
            }]
          }],
          _inputContainerRef: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewChild"],
            args: ['inputContainer']
          }],
          _label: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewChild"],
            args: ['label']
          }],
          _controlNonStatic: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ContentChild"],
            args: [MatFormFieldControl]
          }],
          _controlStatic: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ContentChild"],
            args: [MatFormFieldControl, {
              "static": true
            }]
          }],
          _labelChildNonStatic: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ContentChild"],
            args: [MatLabel]
          }],
          _labelChildStatic: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ContentChild"],
            args: [MatLabel, {
              "static": true
            }]
          }],
          _placeholderChild: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ContentChild"],
            args: [MatPlaceholder]
          }],
          _errorChildren: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ContentChildren"],
            args: [MAT_ERROR, {
              descendants: true
            }]
          }],
          _hintChildren: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ContentChildren"],
            args: [_MAT_HINT, {
              descendants: true
            }]
          }],
          _prefixChildren: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ContentChildren"],
            args: [MAT_PREFIX, {
              descendants: true
            }]
          }],
          _suffixChildren: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ContentChildren"],
            args: [MAT_SUFFIX, {
              descendants: true
            }]
          }]
        });
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var MatFormFieldModule = function MatFormFieldModule() {
        _classCallCheck2(this, MatFormFieldModule);
      };

      MatFormFieldModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineNgModule"]({
        type: MatFormFieldModule
      });
      MatFormFieldModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineInjector"]({
        factory: function MatFormFieldModule_Factory(t) {
          return new (t || MatFormFieldModule)();
        },
        imports: [[_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_3__["MatCommonModule"], _angular_cdk_observers__WEBPACK_IMPORTED_MODULE_0__["ObserversModule"]], _angular_material_core__WEBPACK_IMPORTED_MODULE_3__["MatCommonModule"]]
      });

      (function () {
        (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsetNgModuleScope"](MatFormFieldModule, {
          declarations: function declarations() {
            return [MatError, MatFormField, MatHint, MatLabel, MatPlaceholder, MatPrefix, MatSuffix];
          },
          imports: function imports() {
            return [_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_3__["MatCommonModule"], _angular_cdk_observers__WEBPACK_IMPORTED_MODULE_0__["ObserversModule"]];
          },
          exports: function exports() {
            return [_angular_material_core__WEBPACK_IMPORTED_MODULE_3__["MatCommonModule"], MatError, MatFormField, MatHint, MatLabel, MatPlaceholder, MatPrefix, MatSuffix];
          }
        });
      })();
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵsetClassMetadata"](MatFormFieldModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["NgModule"],
          args: [{
            declarations: [MatError, MatFormField, MatHint, MatLabel, MatPlaceholder, MatPrefix, MatSuffix],
            imports: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_3__["MatCommonModule"], _angular_cdk_observers__WEBPACK_IMPORTED_MODULE_0__["ObserversModule"]],
            exports: [_angular_material_core__WEBPACK_IMPORTED_MODULE_3__["MatCommonModule"], MatError, MatFormField, MatHint, MatLabel, MatPlaceholder, MatPrefix, MatSuffix]
          }]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Generated bundle index. Do not edit.
       */
      //# sourceMappingURL=form-field.js.map

      /***/

    },

    /***/
    "Q2p9": function Q2p9(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return formatRelative;
      });
      /* harmony import */


      var _differenceInCalendarDays_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../differenceInCalendarDays/index.js */
      "gXqy");
      /* harmony import */


      var _format_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../format/index.js */
      "sWYD");
      /* harmony import */


      var _locale_en_US_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../locale/en-US/index.js */
      "iSMj");
      /* harmony import */


      var _subMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../subMilliseconds/index.js */
      "g9KO");
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_getTimezoneOffsetInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! ../_lib/getTimezoneOffsetInMilliseconds/index.js */
      "JCDJ");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name formatRelative
       * @category Common Helpers
       * @summary Represent the date in words relative to the given base date.
       *
       * @description
       * Represent the date in words relative to the given base date.
       *
       * | Distance to the base date | Result                    |
       * |---------------------------|---------------------------|
       * | Previous 6 days           | last Sunday at 04:30 AM   |
       * | Last day                  | yesterday at 04:30 AM     |
       * | Same day                  | today at 04:30 AM         |
       * | Next day                  | tomorrow at 04:30 AM      |
       * | Next 6 days               | Sunday at 04:30 AM        |
       * | Other                     | 12/31/2017                |
       *
       * ### 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 {Date|Number} date - the date to format
       * @param {Date|Number} baseDate - the date to compare with
       * @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 {String} the date in words
       * @throws {TypeError} 2 arguments required
       * @throws {RangeError} `date` must not be Invalid Date
       * @throws {RangeError} `baseDate` must not be Invalid Date
       * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6
       * @throws {RangeError} `options.locale` must contain `localize` property
       * @throws {RangeError} `options.locale` must contain `formatLong` property
       * @throws {RangeError} `options.locale` must contain `formatRelative` property
       */


      function formatRelative(dirtyDate, dirtyBaseDate, dirtyOptions) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_6__["default"])(2, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_4__["default"])(dirtyDate);
        var baseDate = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_4__["default"])(dirtyBaseDate);
        var options = dirtyOptions || {};
        var locale = options.locale || _locale_en_US_index_js__WEBPACK_IMPORTED_MODULE_2__["default"];

        if (!locale.localize) {
          throw new RangeError('locale must contain localize property');
        }

        if (!locale.formatLong) {
          throw new RangeError('locale must contain formatLong property');
        }

        if (!locale.formatRelative) {
          throw new RangeError('locale must contain formatRelative property');
        }

        var diff = Object(_differenceInCalendarDays_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(date, baseDate);

        if (isNaN(diff)) {
          throw new RangeError('Invalid time value');
        }

        var token;

        if (diff < -6) {
          token = 'other';
        } else if (diff < -1) {
          token = 'lastWeek';
        } else if (diff < 0) {
          token = 'yesterday';
        } else if (diff < 1) {
          token = 'today';
        } else if (diff < 2) {
          token = 'tomorrow';
        } else if (diff < 7) {
          token = 'nextWeek';
        } else {
          token = 'other';
        }

        var utcDate = Object(_subMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(date, Object(_lib_getTimezoneOffsetInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_5__["default"])(date));
        var utcBaseDate = Object(_subMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(baseDate, Object(_lib_getTimezoneOffsetInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_5__["default"])(baseDate));
        var formatStr = locale.formatRelative(token, utcDate, utcBaseDate, options);
        return Object(_format_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(date, formatStr, options);
      }
      /***/

    },

    /***/
    "QIAL": function QIAL(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "isInteropObservable", function () {
        return isInteropObservable;
      });
      /* harmony import */


      var _symbol_observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../symbol/observable */
      "kJWO");

      function isInteropObservable(input) {
        return input && typeof input[_symbol_observable__WEBPACK_IMPORTED_MODULE_0__["observable"]] === 'function';
      } //# sourceMappingURL=isInteropObservable.js.map

      /***/

    },

    /***/
    "QNJA": function QNJA(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return endOfDecade;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name endOfDecade
       * @category Decade Helpers
       * @summary Return the end of a decade for the given date.
       *
       * @description
       * Return the end of a decade for the given date.
       *
       * ### 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 {Date|Number} date - the original date
       * @returns {Date} the end of a decade
       * @param {Object} [options] - an object with options.
       * @param {0|1|2} [options.additionalDigits=2] - passed to `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate}
       * @throws {TypeError} 1 argument required
       * @throws {RangeError} `options.additionalDigits` must be 0, 1 or 2
       *
       * @example
       * // The end of a decade for 12 May 1984 00:00:00:
       * var result = endOfDecade(new Date(1984, 4, 12, 00, 00, 00))
       * //=> Dec 31 1989 23:59:59.999
       */


      function endOfDecade(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);
        var year = date.getFullYear();
        var decade = 9 + Math.floor(year / 10) * 10;
        date.setFullYear(decade, 11, 31);
        date.setHours(23, 59, 59, 999);
        return date;
      }
      /***/

    },

    /***/
    "Qj4J": function Qj4J(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Arabic (Kuwait) [ar-kw]
      //! author : Nusret Parlak: https://github.com/nusretparlak
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var arKw = moment.defineLocale('ar-kw', {
          months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
          monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
          weekdays: 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
          weekdaysShort: 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
          weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
          weekdaysParseExact: true,
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd D MMMM YYYY HH:mm'
          },
          calendar: {
            sameDay: '[اليوم على الساعة] LT',
            nextDay: '[غدا على الساعة] LT',
            nextWeek: 'dddd [على الساعة] LT',
            lastDay: '[أمس على الساعة] LT',
            lastWeek: 'dddd [على الساعة] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'في %s',
            past: 'منذ %s',
            s: 'ثوان',
            ss: '%d ثانية',
            m: 'دقيقة',
            mm: '%d دقائق',
            h: 'ساعة',
            hh: '%d ساعات',
            d: 'يوم',
            dd: '%d أيام',
            M: 'شهر',
            MM: '%d أشهر',
            y: 'سنة',
            yy: '%d سنوات'
          },
          week: {
            dow: 0,
            // Sunday is the first day of the week.
            doy: 12 // The week that contains Jan 12th is the first week of the year.

          }
        });
        return arKw;
      });
      /***/

    },

    /***/
    "Qn8I": function Qn8I(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "using", function () {
        return using;
      });
      /* harmony import */


      var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Observable */
      "HDdC");
      /* harmony import */


      var _from__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ./from */
      "Cfvw");
      /* harmony import */


      var _empty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ./empty */
      "EY2u");

      function using(resourceFactory, observableFactory) {
        return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](function (subscriber) {
          var resource;

          try {
            resource = resourceFactory();
          } catch (err) {
            subscriber.error(err);
            return undefined;
          }

          var result;

          try {
            result = observableFactory(resource);
          } catch (err) {
            subscriber.error(err);
            return undefined;
          }

          var source = result ? Object(_from__WEBPACK_IMPORTED_MODULE_1__["from"])(result) : _empty__WEBPACK_IMPORTED_MODULE_2__["EMPTY"];
          var subscription = source.subscribe(subscriber);
          return function () {
            subscription.unsubscribe();

            if (resource) {
              resource.unsubscribe();
            }
          };
        });
      } //# sourceMappingURL=using.js.map

      /***/

    },

    /***/
    "QqCr": function QqCr(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "bindCallback", function () {
        return bindCallback;
      });
      /* harmony import */


      var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Observable */
      "HDdC");
      /* harmony import */


      var _AsyncSubject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../AsyncSubject */
      "NHP+");
      /* harmony import */


      var _operators_map__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../operators/map */
      "lJxs");
      /* harmony import */


      var _util_canReportError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../util/canReportError */
      "8Qeq");
      /* harmony import */


      var _util_isArray__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! ../util/isArray */
      "DH7j");
      /* harmony import */


      var _util_isScheduler__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! ../util/isScheduler */
      "z+Ro");

      function bindCallback(callbackFunc, resultSelector, scheduler) {
        if (resultSelector) {
          if (Object(_util_isScheduler__WEBPACK_IMPORTED_MODULE_5__["isScheduler"])(resultSelector)) {
            scheduler = resultSelector;
          } else {
            return function () {
              return bindCallback(callbackFunc, scheduler).apply(void 0, arguments).pipe(Object(_operators_map__WEBPACK_IMPORTED_MODULE_2__["map"])(function (args) {
                return Object(_util_isArray__WEBPACK_IMPORTED_MODULE_4__["isArray"])(args) ? resultSelector.apply(void 0, _toConsumableArray(args)) : resultSelector(args);
              }));
            };
          }
        }

        return function () {
          for (var _len49 = arguments.length, args = new Array(_len49), _key51 = 0; _key51 < _len49; _key51++) {
            args[_key51] = arguments[_key51];
          }

          var context = this;
          var subject;
          var params = {
            context: context,
            subject: subject,
            callbackFunc: callbackFunc,
            scheduler: scheduler
          };
          return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](function (subscriber) {
            if (!scheduler) {
              if (!subject) {
                subject = new _AsyncSubject__WEBPACK_IMPORTED_MODULE_1__["AsyncSubject"]();

                var handler = function handler() {
                  for (var _len50 = arguments.length, innerArgs = new Array(_len50), _key52 = 0; _key52 < _len50; _key52++) {
                    innerArgs[_key52] = arguments[_key52];
                  }

                  subject.next(innerArgs.length <= 1 ? innerArgs[0] : innerArgs);
                  subject.complete();
                };

                try {
                  callbackFunc.apply(context, [].concat(args, [handler]));
                } catch (err) {
                  if (Object(_util_canReportError__WEBPACK_IMPORTED_MODULE_3__["canReportError"])(subject)) {
                    subject.error(err);
                  } else {
                    console.warn(err);
                  }
                }
              }

              return subject.subscribe(subscriber);
            } else {
              var state = {
                args: args,
                subscriber: subscriber,
                params: params
              };
              return scheduler.schedule(dispatch, 0, state);
            }
          });
        };
      }

      function dispatch(state) {
        var _this583 = this;

        var self = this;
        var args = state.args,
            subscriber = state.subscriber,
            params = state.params;
        var callbackFunc = params.callbackFunc,
            context = params.context,
            scheduler = params.scheduler;
        var subject = params.subject;

        if (!subject) {
          subject = params.subject = new _AsyncSubject__WEBPACK_IMPORTED_MODULE_1__["AsyncSubject"]();

          var handler = function handler() {
            for (var _len51 = arguments.length, innerArgs = new Array(_len51), _key53 = 0; _key53 < _len51; _key53++) {
              innerArgs[_key53] = arguments[_key53];
            }

            var value = innerArgs.length <= 1 ? innerArgs[0] : innerArgs;

            _this583.add(scheduler.schedule(dispatchNext, 0, {
              value: value,
              subject: subject
            }));
          };

          try {
            callbackFunc.apply(context, [].concat(_toConsumableArray(args), [handler]));
          } catch (err) {
            subject.error(err);
          }
        }

        this.add(subject.subscribe(subscriber));
      }

      function dispatchNext(state) {
        var value = state.value,
            subject = state.subject;
        subject.next(value);
        subject.complete();
      }

      function dispatchError(state) {
        var err = state.err,
            subject = state.subject;
        subject.error(err);
      } //# sourceMappingURL=bindCallback.js.map

      /***/

    },

    /***/
    "R8/v": function R8V(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return startOfUTCISOWeekYear;
      });
      /* harmony import */


      var _getUTCISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../getUTCISOWeekYear/index.js */
      "gr1v");
      /* harmony import */


      var _startOfUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../startOfUTCISOWeek/index.js */
      "tpup");
      /* harmony import */


      var _requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../requiredArgs/index.js */
      "jIYg"); // This function will be a part of public API when UTC function will be implemented.
      // See issue: https://github.com/date-fns/date-fns/issues/376


      function startOfUTCISOWeekYear(dirtyDate) {
        Object(_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(1, arguments);
        var year = Object(_getUTCISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);
        var fourthOfJanuary = new Date(0);
        fourthOfJanuary.setUTCFullYear(year, 0, 4);
        fourthOfJanuary.setUTCHours(0, 0, 0, 0);
        var date = Object(_startOfUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(fourthOfJanuary);
        return date;
      }
      /***/

    },

    /***/
    "RAwQ": function RAwQ(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Luxembourgish [lb]
      //! author : mweimerskirch : https://github.com/mweimerskirch
      //! author : David Raison : https://github.com/kwisatz
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        function processRelativeTime(number, withoutSuffix, key, isFuture) {
          var format = {
            m: ['eng Minutt', 'enger Minutt'],
            h: ['eng Stonn', 'enger Stonn'],
            d: ['een Dag', 'engem Dag'],
            M: ['ee Mount', 'engem Mount'],
            y: ['ee Joer', 'engem Joer']
          };
          return withoutSuffix ? format[key][0] : format[key][1];
        }

        function processFutureTime(string) {
          var number = string.substr(0, string.indexOf(' '));

          if (eifelerRegelAppliesToNumber(number)) {
            return 'a ' + string;
          }

          return 'an ' + string;
        }

        function processPastTime(string) {
          var number = string.substr(0, string.indexOf(' '));

          if (eifelerRegelAppliesToNumber(number)) {
            return 'viru ' + string;
          }

          return 'virun ' + string;
        }
        /**
         * Returns true if the word before the given number loses the '-n' ending.
         * e.g. 'an 10 Deeg' but 'a 5 Deeg'
         *
         * @param number {integer}
         * @returns {boolean}
         */


        function eifelerRegelAppliesToNumber(number) {
          number = parseInt(number, 10);

          if (isNaN(number)) {
            return false;
          }

          if (number < 0) {
            // Negative Number --> always true
            return true;
          } else if (number < 10) {
            // Only 1 digit
            if (4 <= number && number <= 7) {
              return true;
            }

            return false;
          } else if (number < 100) {
            // 2 digits
            var lastDigit = number % 10,
                firstDigit = number / 10;

            if (lastDigit === 0) {
              return eifelerRegelAppliesToNumber(firstDigit);
            }

            return eifelerRegelAppliesToNumber(lastDigit);
          } else if (number < 10000) {
            // 3 or 4 digits --> recursively check first digit
            while (number >= 10) {
              number = number / 10;
            }

            return eifelerRegelAppliesToNumber(number);
          } else {
            // Anything larger than 4 digits: recursively check first n-3 digits
            number = number / 1000;
            return eifelerRegelAppliesToNumber(number);
          }
        }

        var lb = moment.defineLocale('lb', {
          months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
          monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
          monthsParseExact: true,
          weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split('_'),
          weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'),
          weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'),
          weekdaysParseExact: true,
          longDateFormat: {
            LT: 'H:mm [Auer]',
            LTS: 'H:mm:ss [Auer]',
            L: 'DD.MM.YYYY',
            LL: 'D. MMMM YYYY',
            LLL: 'D. MMMM YYYY H:mm [Auer]',
            LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]'
          },
          calendar: {
            sameDay: '[Haut um] LT',
            sameElse: 'L',
            nextDay: '[Muer um] LT',
            nextWeek: 'dddd [um] LT',
            lastDay: '[Gëschter um] LT',
            lastWeek: function lastWeek() {
              // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule
              switch (this.day()) {
                case 2:
                case 4:
                  return '[Leschten] dddd [um] LT';

                default:
                  return '[Leschte] dddd [um] LT';
              }
            }
          },
          relativeTime: {
            future: processFutureTime,
            past: processPastTime,
            s: 'e puer Sekonnen',
            ss: '%d Sekonnen',
            m: processRelativeTime,
            mm: '%d Minutten',
            h: processRelativeTime,
            hh: '%d Stonnen',
            d: processRelativeTime,
            dd: '%d Deeg',
            M: processRelativeTime,
            MM: '%d Méint',
            y: processRelativeTime,
            yy: '%d Joer'
          },
          dayOfMonthOrdinalParse: /\d{1,2}\./,
          ordinal: '%d.',
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return lb;
      });
      /***/

    },

    /***/
    "RUbi": function RUbi(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "AsapScheduler", function () {
        return AsapScheduler;
      });
      /* harmony import */


      var _AsyncScheduler__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ./AsyncScheduler */
      "IjjT");

      var AsapScheduler = /*#__PURE__*/function (_AsyncScheduler__WEBP2) {
        _inherits2(AsapScheduler, _AsyncScheduler__WEBP2);

        var _super292 = _createSuper2(AsapScheduler);

        function AsapScheduler() {
          _classCallCheck2(this, AsapScheduler);

          return _super292.apply(this, arguments);
        }

        _createClass2(AsapScheduler, [{
          key: "flush",
          value: function flush(action) {
            this.active = true;
            this.scheduled = undefined;
            var actions = this.actions;
            var error;
            var index = -1;
            var count = actions.length;
            action = action || actions.shift();

            do {
              if (error = action.execute(action.state, action.delay)) {
                break;
              }
            } while (++index < count && (action = actions.shift()));

            this.active = false;

            if (error) {
              while (++index < count && (action = actions.shift())) {
                action.unsubscribe();
              }

              throw error;
            }
          }
        }]);

        return AsapScheduler;
      }(_AsyncScheduler__WEBPACK_IMPORTED_MODULE_0__["AsyncScheduler"]); //# sourceMappingURL=AsapScheduler.js.map

      /***/

    },

    /***/
    "RaBM": function RaBM(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return formatISO9075;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _isValid_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../isValid/index.js */
      "Se/U");
      /* harmony import */


      var _lib_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../_lib/addLeadingZeros/index.js */
      "+7QN");
      /**
       * @name formatISO9075
       * @category Common Helpers
       * @summary Format the date according to the ISO 9075 standard (https://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html#function_get-format).
       *
       * @description
       * Return the formatted date string in ISO 9075 format. Options may be passed to control the parts and notations of the date.
       *
       * @param {Date|Number} date - the original date
       * @param {Object} [options] - an object with options.
       * @param {'extended'|'basic'} [options.format='extended'] - if 'basic', hide delimiters between date and time values.
       * @param {'complete'|'date'|'time'} [options.representation='complete'] - format date, time, or both.
       * @returns {String} the formatted date string
       * @throws {TypeError} 1 argument required
       * @throws {RangeError} `date` must not be Invalid Date
       * @throws {RangeError} `options.format` must be 'extended' or 'basic'
       * @throws {RangeError} `options.represenation` must be 'date', 'time' or 'complete'
       *
       * @example
       * // Represent 18 September 2019 in ISO 9075 format:
       * const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52))
       * //=> '2019-09-18 19:00:52'
       *
       * @example
       * // Represent 18 September 2019 in ISO 9075, short format:
       * const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52), { format: 'basic' })
       * //=> '20190918 190052'
       *
       * @example
       * // Represent 18 September 2019 in ISO 9075 format, date only:
       * const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52), { representation: 'date' })
       * //=> '2019-09-18'
       *
       * @example
       * // Represent 18 September 2019 in ISO 9075 format, time only:
       * const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52), { representation: 'time' })
       * //=> '19:00:52'
       */


      function formatISO9075(dirtyDate, dirtyOptions) {
        if (arguments.length < 1) {
          throw new TypeError("1 argument required, but only ".concat(arguments.length, " present"));
        }

        var originalDate = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);

        if (!Object(_isValid_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(originalDate)) {
          throw new RangeError('Invalid time value');
        }

        var options = dirtyOptions || {};
        var format = options.format == null ? 'extended' : String(options.format);
        var representation = options.representation == null ? 'complete' : String(options.representation);

        if (format !== 'extended' && format !== 'basic') {
          throw new RangeError("format must be 'extended' or 'basic'");
        }

        if (representation !== 'date' && representation !== 'time' && representation !== 'complete') {
          throw new RangeError("representation must be 'date', 'time', or 'complete'");
        }

        var result = '';
        var dateDelimiter = format === 'extended' ? '-' : '';
        var timeDelimiter = format === 'extended' ? ':' : ''; // Representation is either 'date' or 'complete'

        if (representation !== 'time') {
          var day = Object(_lib_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(originalDate.getDate(), 2);
          var month = Object(_lib_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(originalDate.getMonth() + 1, 2);
          var year = Object(_lib_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(originalDate.getFullYear(), 4); // yyyyMMdd or yyyy-MM-dd.

          result = "".concat(year).concat(dateDelimiter).concat(month).concat(dateDelimiter).concat(day);
        } // Representation is either 'time' or 'complete'


        if (representation !== 'date') {
          var hour = Object(_lib_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(originalDate.getHours(), 2);
          var minute = Object(_lib_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(originalDate.getMinutes(), 2);
          var second = Object(_lib_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(originalDate.getSeconds(), 2); // If there's also date, separate it with time with a space

          var separator = result === '' ? '' : ' '; // HHmmss or HH:mm:ss.

          result = "".concat(result).concat(separator).concat(hour).concat(timeDelimiter).concat(minute).concat(timeDelimiter).concat(second);
        }

        return result;
      }
      /***/

    },

    /***/
    "RgJi": function RgJi(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return fromUnixTime;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/toInteger/index.js */
      "/h9T");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name fromUnixTime
       * @category Timestamp Helpers
       * @summary Create a date from a Unix timestamp.
       *
       * @description
       * Create a date from a Unix timestamp.
       *
       * ### 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 {Number} unixTime - the given Unix timestamp
       * @returns {Date} the date
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // Create the date 29 February 2012 11:45:05:
       * var result = fromUnixTime(1330515905)
       * //=> Wed Feb 29 2012 11:45:05
       */


      function fromUnixTime(dirtyUnixTime) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(1, arguments);
        var unixTime = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyUnixTime);
        return Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(unixTime * 1000);
      }
      /***/

    },

    /***/
    "RgwM": function RgwM(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return setMilliseconds;
      });
      /* harmony import */


      var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../_lib/toInteger/index.js */
      "/h9T");
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name setMilliseconds
       * @category Millisecond Helpers
       * @summary Set the milliseconds to the given date.
       *
       * @description
       * Set the milliseconds to the given date.
       *
       * ### 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 {Date|Number} date - the date to be changed
       * @param {Number} milliseconds - the milliseconds of the new date
       * @returns {Date} the new date with the milliseconds set
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // Set 300 milliseconds to 1 September 2014 11:30:40.500:
       * var result = setMilliseconds(new Date(2014, 8, 1, 11, 30, 40, 500), 300)
       * //=> Mon Sep 01 2014 11:30:40.300
       */


      function setMilliseconds(dirtyDate, dirtyMilliseconds) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(2, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate);
        var milliseconds = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyMilliseconds);
        date.setMilliseconds(milliseconds);
        return date;
      }
      /***/

    },

    /***/
    "Rngw": function Rngw(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony import */


      var _lib_getUTCWeekYear_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../../../_lib/getUTCWeekYear/index.js */
      "Szzx");
      /* harmony import */


      var _lib_setUTCDay_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../../../_lib/setUTCDay/index.js */
      "+lkT");
      /* harmony import */


      var _lib_setUTCISODay_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../../../_lib/setUTCISODay/index.js */
      "zWh8");
      /* harmony import */


      var _lib_setUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../../../_lib/setUTCISOWeek/index.js */
      "pR7g");
      /* harmony import */


      var _lib_setUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! ../../../_lib/setUTCWeek/index.js */
      "xiNX");
      /* harmony import */


      var _lib_startOfUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! ../../../_lib/startOfUTCISOWeek/index.js */
      "tpup");
      /* harmony import */


      var _lib_startOfUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
      /*! ../../../_lib/startOfUTCWeek/index.js */
      "1vjI");

      var MILLISECONDS_IN_HOUR = 3600000;
      var MILLISECONDS_IN_MINUTE = 60000;
      var MILLISECONDS_IN_SECOND = 1000;
      var numericPatterns = {
        month: /^(1[0-2]|0?\d)/,
        // 0 to 12
        date: /^(3[0-1]|[0-2]?\d)/,
        // 0 to 31
        dayOfYear: /^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,
        // 0 to 366
        week: /^(5[0-3]|[0-4]?\d)/,
        // 0 to 53
        hour23h: /^(2[0-3]|[0-1]?\d)/,
        // 0 to 23
        hour24h: /^(2[0-4]|[0-1]?\d)/,
        // 0 to 24
        hour11h: /^(1[0-1]|0?\d)/,
        // 0 to 11
        hour12h: /^(1[0-2]|0?\d)/,
        // 0 to 12
        minute: /^[0-5]?\d/,
        // 0 to 59
        second: /^[0-5]?\d/,
        // 0 to 59
        singleDigit: /^\d/,
        // 0 to 9
        twoDigits: /^\d{1,2}/,
        // 0 to 99
        threeDigits: /^\d{1,3}/,
        // 0 to 999
        fourDigits: /^\d{1,4}/,
        // 0 to 9999
        anyDigitsSigned: /^-?\d+/,
        singleDigitSigned: /^-?\d/,
        // 0 to 9, -0 to -9
        twoDigitsSigned: /^-?\d{1,2}/,
        // 0 to 99, -0 to -99
        threeDigitsSigned: /^-?\d{1,3}/,
        // 0 to 999, -0 to -999
        fourDigitsSigned: /^-?\d{1,4}/ // 0 to 9999, -0 to -9999

      };
      var timezonePatterns = {
        basicOptionalMinutes: /^([+-])(\d{2})(\d{2})?|Z/,
        basic: /^([+-])(\d{2})(\d{2})|Z/,
        basicOptionalSeconds: /^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,
        extended: /^([+-])(\d{2}):(\d{2})|Z/,
        extendedOptionalSeconds: /^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/
      };

      function parseNumericPattern(pattern, string, valueCallback) {
        var matchResult = string.match(pattern);

        if (!matchResult) {
          return null;
        }

        var value = parseInt(matchResult[0], 10);
        return {
          value: valueCallback ? valueCallback(value) : value,
          rest: string.slice(matchResult[0].length)
        };
      }

      function parseTimezonePattern(pattern, string) {
        var matchResult = string.match(pattern);

        if (!matchResult) {
          return null;
        } // Input is 'Z'


        if (matchResult[0] === 'Z') {
          return {
            value: 0,
            rest: string.slice(1)
          };
        }

        var sign = matchResult[1] === '+' ? 1 : -1;
        var hours = matchResult[2] ? parseInt(matchResult[2], 10) : 0;
        var minutes = matchResult[3] ? parseInt(matchResult[3], 10) : 0;
        var seconds = matchResult[5] ? parseInt(matchResult[5], 10) : 0;
        return {
          value: sign * (hours * MILLISECONDS_IN_HOUR + minutes * MILLISECONDS_IN_MINUTE + seconds * MILLISECONDS_IN_SECOND),
          rest: string.slice(matchResult[0].length)
        };
      }

      function parseAnyDigitsSigned(string, valueCallback) {
        return parseNumericPattern(numericPatterns.anyDigitsSigned, string, valueCallback);
      }

      function parseNDigits(n, string, valueCallback) {
        switch (n) {
          case 1:
            return parseNumericPattern(numericPatterns.singleDigit, string, valueCallback);

          case 2:
            return parseNumericPattern(numericPatterns.twoDigits, string, valueCallback);

          case 3:
            return parseNumericPattern(numericPatterns.threeDigits, string, valueCallback);

          case 4:
            return parseNumericPattern(numericPatterns.fourDigits, string, valueCallback);

          default:
            return parseNumericPattern(new RegExp('^\\d{1,' + n + '}'), string, valueCallback);
        }
      }

      function parseNDigitsSigned(n, string, valueCallback) {
        switch (n) {
          case 1:
            return parseNumericPattern(numericPatterns.singleDigitSigned, string, valueCallback);

          case 2:
            return parseNumericPattern(numericPatterns.twoDigitsSigned, string, valueCallback);

          case 3:
            return parseNumericPattern(numericPatterns.threeDigitsSigned, string, valueCallback);

          case 4:
            return parseNumericPattern(numericPatterns.fourDigitsSigned, string, valueCallback);

          default:
            return parseNumericPattern(new RegExp('^-?\\d{1,' + n + '}'), string, valueCallback);
        }
      }

      function dayPeriodEnumToHours(enumValue) {
        switch (enumValue) {
          case 'morning':
            return 4;

          case 'evening':
            return 17;

          case 'pm':
          case 'noon':
          case 'afternoon':
            return 12;

          case 'am':
          case 'midnight':
          case 'night':
          default:
            return 0;
        }
      }

      function normalizeTwoDigitYear(twoDigitYear, currentYear) {
        var isCommonEra = currentYear > 0; // Absolute number of the current year:
        // 1 -> 1 AC
        // 0 -> 1 BC
        // -1 -> 2 BC

        var absCurrentYear = isCommonEra ? currentYear : 1 - currentYear;
        var result;

        if (absCurrentYear <= 50) {
          result = twoDigitYear || 100;
        } else {
          var rangeEnd = absCurrentYear + 50;
          var rangeEndCentury = Math.floor(rangeEnd / 100) * 100;
          var isPreviousCentury = twoDigitYear >= rangeEnd % 100;
          result = twoDigitYear + rangeEndCentury - (isPreviousCentury ? 100 : 0);
        }

        return isCommonEra ? result : 1 - result;
      }

      var DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
      var DAYS_IN_MONTH_LEAP_YEAR = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; // User for validation

      function isLeapYearIndex(year) {
        return year % 400 === 0 || year % 4 === 0 && year % 100 !== 0;
      }
      /*
       * |     | Unit                           |     | Unit                           |
       * |-----|--------------------------------|-----|--------------------------------|
       * |  a  | AM, PM                         |  A* | Milliseconds in day            |
       * |  b  | AM, PM, noon, midnight         |  B  | Flexible day period            |
       * |  c  | Stand-alone local day of week  |  C* | Localized hour w/ day period   |
       * |  d  | Day of month                   |  D  | Day of year                    |
       * |  e  | Local day of week              |  E  | Day of week                    |
       * |  f  |                                |  F* | Day of week in month           |
       * |  g* | Modified Julian day            |  G  | Era                            |
       * |  h  | Hour [1-12]                    |  H  | Hour [0-23]                    |
       * |  i! | ISO day of week                |  I! | ISO week of year               |
       * |  j* | Localized hour w/ day period   |  J* | Localized hour w/o day period  |
       * |  k  | Hour [1-24]                    |  K  | Hour [0-11]                    |
       * |  l* | (deprecated)                   |  L  | Stand-alone month              |
       * |  m  | Minute                         |  M  | Month                          |
       * |  n  |                                |  N  |                                |
       * |  o! | Ordinal number modifier        |  O* | Timezone (GMT)                 |
       * |  p  |                                |  P  |                                |
       * |  q  | Stand-alone quarter            |  Q  | Quarter                        |
       * |  r* | Related Gregorian year         |  R! | ISO week-numbering year        |
       * |  s  | Second                         |  S  | Fraction of second             |
       * |  t! | Seconds timestamp              |  T! | Milliseconds timestamp         |
       * |  u  | Extended year                  |  U* | Cyclic year                    |
       * |  v* | Timezone (generic non-locat.)  |  V* | Timezone (location)            |
       * |  w  | Local week of year             |  W* | Week of month                  |
       * |  x  | Timezone (ISO-8601 w/o Z)      |  X  | Timezone (ISO-8601)            |
       * |  y  | Year (abs)                     |  Y  | Local week-numbering year      |
       * |  z* | Timezone (specific non-locat.) |  Z* | Timezone (aliases)             |
       *
       * Letters marked by * are not implemented but reserved by Unicode standard.
       *
       * Letters marked by ! are non-standard, but implemented by date-fns:
       * - `o` modifies the previous token to turn it into an ordinal (see `parse` docs)
       * - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days,
       *   i.e. 7 for Sunday, 1 for Monday, etc.
       * - `I` is ISO week of year, as opposed to `w` which is local week of year.
       * - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year.
       *   `R` is supposed to be used in conjunction with `I` and `i`
       *   for universal ISO week-numbering date, whereas
       *   `Y` is supposed to be used in conjunction with `w` and `e`
       *   for week-numbering date specific to the locale.
       */


      var parsers = {
        // Era
        G: {
          priority: 140,
          parse: function parse(string, token, match, _options) {
            switch (token) {
              // AD, BC
              case 'G':
              case 'GG':
              case 'GGG':
                return match.era(string, {
                  width: 'abbreviated'
                }) || match.era(string, {
                  width: 'narrow'
                });
              // A, B

              case 'GGGGG':
                return match.era(string, {
                  width: 'narrow'
                });
              // Anno Domini, Before Christ

              case 'GGGG':
              default:
                return match.era(string, {
                  width: 'wide'
                }) || match.era(string, {
                  width: 'abbreviated'
                }) || match.era(string, {
                  width: 'narrow'
                });
            }
          },
          set: function set(date, flags, value, _options) {
            flags.era = value;
            date.setUTCFullYear(value, 0, 1);
            date.setUTCHours(0, 0, 0, 0);
            return date;
          },
          incompatibleTokens: ['R', 'u', 't', 'T']
        },
        // Year
        y: {
          // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_Patterns
          // | Year     |     y | yy |   yyy |  yyyy | yyyyy |
          // |----------|-------|----|-------|-------|-------|
          // | AD 1     |     1 | 01 |   001 |  0001 | 00001 |
          // | AD 12    |    12 | 12 |   012 |  0012 | 00012 |
          // | AD 123   |   123 | 23 |   123 |  0123 | 00123 |
          // | AD 1234  |  1234 | 34 |  1234 |  1234 | 01234 |
          // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |
          priority: 130,
          parse: function parse(string, token, match, _options) {
            var valueCallback = function valueCallback(year) {
              return {
                year: year,
                isTwoDigitYear: token === 'yy'
              };
            };

            switch (token) {
              case 'y':
                return parseNDigits(4, string, valueCallback);

              case 'yo':
                return match.ordinalNumber(string, {
                  unit: 'year',
                  valueCallback: valueCallback
                });

              default:
                return parseNDigits(token.length, string, valueCallback);
            }
          },
          validate: function validate(_date, value, _options) {
            return value.isTwoDigitYear || value.year > 0;
          },
          set: function set(date, flags, value, _options) {
            var currentYear = date.getUTCFullYear();

            if (value.isTwoDigitYear) {
              var normalizedTwoDigitYear = normalizeTwoDigitYear(value.year, currentYear);
              date.setUTCFullYear(normalizedTwoDigitYear, 0, 1);
              date.setUTCHours(0, 0, 0, 0);
              return date;
            }

            var year = !('era' in flags) || flags.era === 1 ? value.year : 1 - value.year;
            date.setUTCFullYear(year, 0, 1);
            date.setUTCHours(0, 0, 0, 0);
            return date;
          },
          incompatibleTokens: ['Y', 'R', 'u', 'w', 'I', 'i', 'e', 'c', 't', 'T']
        },
        // Local week-numbering year
        Y: {
          priority: 130,
          parse: function parse(string, token, match, _options) {
            var valueCallback = function valueCallback(year) {
              return {
                year: year,
                isTwoDigitYear: token === 'YY'
              };
            };

            switch (token) {
              case 'Y':
                return parseNDigits(4, string, valueCallback);

              case 'Yo':
                return match.ordinalNumber(string, {
                  unit: 'year',
                  valueCallback: valueCallback
                });

              default:
                return parseNDigits(token.length, string, valueCallback);
            }
          },
          validate: function validate(_date, value, _options) {
            return value.isTwoDigitYear || value.year > 0;
          },
          set: function set(date, flags, value, options) {
            var currentYear = Object(_lib_getUTCWeekYear_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(date, options);

            if (value.isTwoDigitYear) {
              var normalizedTwoDigitYear = normalizeTwoDigitYear(value.year, currentYear);
              date.setUTCFullYear(normalizedTwoDigitYear, 0, options.firstWeekContainsDate);
              date.setUTCHours(0, 0, 0, 0);
              return Object(_lib_startOfUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_6__["default"])(date, options);
            }

            var year = !('era' in flags) || flags.era === 1 ? value.year : 1 - value.year;
            date.setUTCFullYear(year, 0, options.firstWeekContainsDate);
            date.setUTCHours(0, 0, 0, 0);
            return Object(_lib_startOfUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_6__["default"])(date, options);
          },
          incompatibleTokens: ['y', 'R', 'u', 'Q', 'q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T']
        },
        // ISO week-numbering year
        R: {
          priority: 130,
          parse: function parse(string, token, _match, _options) {
            if (token === 'R') {
              return parseNDigitsSigned(4, string);
            }

            return parseNDigitsSigned(token.length, string);
          },
          set: function set(_date, _flags, value, _options) {
            var firstWeekOfYear = new Date(0);
            firstWeekOfYear.setUTCFullYear(value, 0, 4);
            firstWeekOfYear.setUTCHours(0, 0, 0, 0);
            return Object(_lib_startOfUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_5__["default"])(firstWeekOfYear);
          },
          incompatibleTokens: ['G', 'y', 'Y', 'u', 'Q', 'q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T']
        },
        // Extended year
        u: {
          priority: 130,
          parse: function parse(string, token, _match, _options) {
            if (token === 'u') {
              return parseNDigitsSigned(4, string);
            }

            return parseNDigitsSigned(token.length, string);
          },
          set: function set(date, _flags, value, _options) {
            date.setUTCFullYear(value, 0, 1);
            date.setUTCHours(0, 0, 0, 0);
            return date;
          },
          incompatibleTokens: ['G', 'y', 'Y', 'R', 'w', 'I', 'i', 'e', 'c', 't', 'T']
        },
        // Quarter
        Q: {
          priority: 120,
          parse: function parse(string, token, match, _options) {
            switch (token) {
              // 1, 2, 3, 4
              case 'Q':
              case 'QQ':
                // 01, 02, 03, 04
                return parseNDigits(token.length, string);
              // 1st, 2nd, 3rd, 4th

              case 'Qo':
                return match.ordinalNumber(string, {
                  unit: 'quarter'
                });
              // Q1, Q2, Q3, Q4

              case 'QQQ':
                return match.quarter(string, {
                  width: 'abbreviated',
                  context: 'formatting'
                }) || match.quarter(string, {
                  width: 'narrow',
                  context: 'formatting'
                });
              // 1, 2, 3, 4 (narrow quarter; could be not numerical)

              case 'QQQQQ':
                return match.quarter(string, {
                  width: 'narrow',
                  context: 'formatting'
                });
              // 1st quarter, 2nd quarter, ...

              case 'QQQQ':
              default:
                return match.quarter(string, {
                  width: 'wide',
                  context: 'formatting'
                }) || match.quarter(string, {
                  width: 'abbreviated',
                  context: 'formatting'
                }) || match.quarter(string, {
                  width: 'narrow',
                  context: 'formatting'
                });
            }
          },
          validate: function validate(_date, value, _options) {
            return value >= 1 && value <= 4;
          },
          set: function set(date, _flags, value, _options) {
            date.setUTCMonth((value - 1) * 3, 1);
            date.setUTCHours(0, 0, 0, 0);
            return date;
          },
          incompatibleTokens: ['Y', 'R', 'q', 'M', 'L', 'w', 'I', 'd', 'D', 'i', 'e', 'c', 't', 'T']
        },
        // Stand-alone quarter
        q: {
          priority: 120,
          parse: function parse(string, token, match, _options) {
            switch (token) {
              // 1, 2, 3, 4
              case 'q':
              case 'qq':
                // 01, 02, 03, 04
                return parseNDigits(token.length, string);
              // 1st, 2nd, 3rd, 4th

              case 'qo':
                return match.ordinalNumber(string, {
                  unit: 'quarter'
                });
              // Q1, Q2, Q3, Q4

              case 'qqq':
                return match.quarter(string, {
                  width: 'abbreviated',
                  context: 'standalone'
                }) || match.quarter(string, {
                  width: 'narrow',
                  context: 'standalone'
                });
              // 1, 2, 3, 4 (narrow quarter; could be not numerical)

              case 'qqqqq':
                return match.quarter(string, {
                  width: 'narrow',
                  context: 'standalone'
                });
              // 1st quarter, 2nd quarter, ...

              case 'qqqq':
              default:
                return match.quarter(string, {
                  width: 'wide',
                  context: 'standalone'
                }) || match.quarter(string, {
                  width: 'abbreviated',
                  context: 'standalone'
                }) || match.quarter(string, {
                  width: 'narrow',
                  context: 'standalone'
                });
            }
          },
          validate: function validate(_date, value, _options) {
            return value >= 1 && value <= 4;
          },
          set: function set(date, _flags, value, _options) {
            date.setUTCMonth((value - 1) * 3, 1);
            date.setUTCHours(0, 0, 0, 0);
            return date;
          },
          incompatibleTokens: ['Y', 'R', 'Q', 'M', 'L', 'w', 'I', 'd', 'D', 'i', 'e', 'c', 't', 'T']
        },
        // Month
        M: {
          priority: 110,
          parse: function parse(string, token, match, _options) {
            var valueCallback = function valueCallback(value) {
              return value - 1;
            };

            switch (token) {
              // 1, 2, ..., 12
              case 'M':
                return parseNumericPattern(numericPatterns.month, string, valueCallback);
              // 01, 02, ..., 12

              case 'MM':
                return parseNDigits(2, string, valueCallback);
              // 1st, 2nd, ..., 12th

              case 'Mo':
                return match.ordinalNumber(string, {
                  unit: 'month',
                  valueCallback: valueCallback
                });
              // Jan, Feb, ..., Dec

              case 'MMM':
                return match.month(string, {
                  width: 'abbreviated',
                  context: 'formatting'
                }) || match.month(string, {
                  width: 'narrow',
                  context: 'formatting'
                });
              // J, F, ..., D

              case 'MMMMM':
                return match.month(string, {
                  width: 'narrow',
                  context: 'formatting'
                });
              // January, February, ..., December

              case 'MMMM':
              default:
                return match.month(string, {
                  width: 'wide',
                  context: 'formatting'
                }) || match.month(string, {
                  width: 'abbreviated',
                  context: 'formatting'
                }) || match.month(string, {
                  width: 'narrow',
                  context: 'formatting'
                });
            }
          },
          validate: function validate(_date, value, _options) {
            return value >= 0 && value <= 11;
          },
          set: function set(date, _flags, value, _options) {
            date.setUTCMonth(value, 1);
            date.setUTCHours(0, 0, 0, 0);
            return date;
          },
          incompatibleTokens: ['Y', 'R', 'q', 'Q', 'L', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']
        },
        // Stand-alone month
        L: {
          priority: 110,
          parse: function parse(string, token, match, _options) {
            var valueCallback = function valueCallback(value) {
              return value - 1;
            };

            switch (token) {
              // 1, 2, ..., 12
              case 'L':
                return parseNumericPattern(numericPatterns.month, string, valueCallback);
              // 01, 02, ..., 12

              case 'LL':
                return parseNDigits(2, string, valueCallback);
              // 1st, 2nd, ..., 12th

              case 'Lo':
                return match.ordinalNumber(string, {
                  unit: 'month',
                  valueCallback: valueCallback
                });
              // Jan, Feb, ..., Dec

              case 'LLL':
                return match.month(string, {
                  width: 'abbreviated',
                  context: 'standalone'
                }) || match.month(string, {
                  width: 'narrow',
                  context: 'standalone'
                });
              // J, F, ..., D

              case 'LLLLL':
                return match.month(string, {
                  width: 'narrow',
                  context: 'standalone'
                });
              // January, February, ..., December

              case 'LLLL':
              default:
                return match.month(string, {
                  width: 'wide',
                  context: 'standalone'
                }) || match.month(string, {
                  width: 'abbreviated',
                  context: 'standalone'
                }) || match.month(string, {
                  width: 'narrow',
                  context: 'standalone'
                });
            }
          },
          validate: function validate(_date, value, _options) {
            return value >= 0 && value <= 11;
          },
          set: function set(date, _flags, value, _options) {
            date.setUTCMonth(value, 1);
            date.setUTCHours(0, 0, 0, 0);
            return date;
          },
          incompatibleTokens: ['Y', 'R', 'q', 'Q', 'M', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']
        },
        // Local week of year
        w: {
          priority: 100,
          parse: function parse(string, token, match, _options) {
            switch (token) {
              case 'w':
                return parseNumericPattern(numericPatterns.week, string);

              case 'wo':
                return match.ordinalNumber(string, {
                  unit: 'week'
                });

              default:
                return parseNDigits(token.length, string);
            }
          },
          validate: function validate(_date, value, _options) {
            return value >= 1 && value <= 53;
          },
          set: function set(date, _flags, value, options) {
            return Object(_lib_startOfUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_6__["default"])(Object(_lib_setUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_4__["default"])(date, value, options), options);
          },
          incompatibleTokens: ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T']
        },
        // ISO week of year
        I: {
          priority: 100,
          parse: function parse(string, token, match, _options) {
            switch (token) {
              case 'I':
                return parseNumericPattern(numericPatterns.week, string);

              case 'Io':
                return match.ordinalNumber(string, {
                  unit: 'week'
                });

              default:
                return parseNDigits(token.length, string);
            }
          },
          validate: function validate(_date, value, _options) {
            return value >= 1 && value <= 53;
          },
          set: function set(date, _flags, value, options) {
            return Object(_lib_startOfUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_5__["default"])(Object(_lib_setUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(date, value, options), options);
          },
          incompatibleTokens: ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T']
        },
        // Day of the month
        d: {
          priority: 90,
          subPriority: 1,
          parse: function parse(string, token, match, _options) {
            switch (token) {
              case 'd':
                return parseNumericPattern(numericPatterns.date, string);

              case 'do':
                return match.ordinalNumber(string, {
                  unit: 'date'
                });

              default:
                return parseNDigits(token.length, string);
            }
          },
          validate: function validate(date, value, _options) {
            var year = date.getUTCFullYear();
            var isLeapYear = isLeapYearIndex(year);
            var month = date.getUTCMonth();

            if (isLeapYear) {
              return value >= 1 && value <= DAYS_IN_MONTH_LEAP_YEAR[month];
            } else {
              return value >= 1 && value <= DAYS_IN_MONTH[month];
            }
          },
          set: function set(date, _flags, value, _options) {
            date.setUTCDate(value);
            date.setUTCHours(0, 0, 0, 0);
            return date;
          },
          incompatibleTokens: ['Y', 'R', 'q', 'Q', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']
        },
        // Day of year
        D: {
          priority: 90,
          subPriority: 1,
          parse: function parse(string, token, match, _options) {
            switch (token) {
              case 'D':
              case 'DD':
                return parseNumericPattern(numericPatterns.dayOfYear, string);

              case 'Do':
                return match.ordinalNumber(string, {
                  unit: 'date'
                });

              default:
                return parseNDigits(token.length, string);
            }
          },
          validate: function validate(date, value, _options) {
            var year = date.getUTCFullYear();
            var isLeapYear = isLeapYearIndex(year);

            if (isLeapYear) {
              return value >= 1 && value <= 366;
            } else {
              return value >= 1 && value <= 365;
            }
          },
          set: function set(date, _flags, value, _options) {
            date.setUTCMonth(0, value);
            date.setUTCHours(0, 0, 0, 0);
            return date;
          },
          incompatibleTokens: ['Y', 'R', 'q', 'Q', 'M', 'L', 'w', 'I', 'd', 'E', 'i', 'e', 'c', 't', 'T']
        },
        // Day of week
        E: {
          priority: 90,
          parse: function parse(string, token, match, _options) {
            switch (token) {
              // Tue
              case 'E':
              case 'EE':
              case 'EEE':
                return match.day(string, {
                  width: 'abbreviated',
                  context: 'formatting'
                }) || match.day(string, {
                  width: 'short',
                  context: 'formatting'
                }) || match.day(string, {
                  width: 'narrow',
                  context: 'formatting'
                });
              // T

              case 'EEEEE':
                return match.day(string, {
                  width: 'narrow',
                  context: 'formatting'
                });
              // Tu

              case 'EEEEEE':
                return match.day(string, {
                  width: 'short',
                  context: 'formatting'
                }) || match.day(string, {
                  width: 'narrow',
                  context: 'formatting'
                });
              // Tuesday

              case 'EEEE':
              default:
                return match.day(string, {
                  width: 'wide',
                  context: 'formatting'
                }) || match.day(string, {
                  width: 'abbreviated',
                  context: 'formatting'
                }) || match.day(string, {
                  width: 'short',
                  context: 'formatting'
                }) || match.day(string, {
                  width: 'narrow',
                  context: 'formatting'
                });
            }
          },
          validate: function validate(_date, value, _options) {
            return value >= 0 && value <= 6;
          },
          set: function set(date, _flags, value, options) {
            date = Object(_lib_setUTCDay_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(date, value, options);
            date.setUTCHours(0, 0, 0, 0);
            return date;
          },
          incompatibleTokens: ['D', 'i', 'e', 'c', 't', 'T']
        },
        // Local day of week
        e: {
          priority: 90,
          parse: function parse(string, token, match, options) {
            var valueCallback = function valueCallback(value) {
              var wholeWeekDays = Math.floor((value - 1) / 7) * 7;
              return (value + options.weekStartsOn + 6) % 7 + wholeWeekDays;
            };

            switch (token) {
              // 3
              case 'e':
              case 'ee':
                // 03
                return parseNDigits(token.length, string, valueCallback);
              // 3rd

              case 'eo':
                return match.ordinalNumber(string, {
                  unit: 'day',
                  valueCallback: valueCallback
                });
              // Tue

              case 'eee':
                return match.day(string, {
                  width: 'abbreviated',
                  context: 'formatting'
                }) || match.day(string, {
                  width: 'short',
                  context: 'formatting'
                }) || match.day(string, {
                  width: 'narrow',
                  context: 'formatting'
                });
              // T

              case 'eeeee':
                return match.day(string, {
                  width: 'narrow',
                  context: 'formatting'
                });
              // Tu

              case 'eeeeee':
                return match.day(string, {
                  width: 'short',
                  context: 'formatting'
                }) || match.day(string, {
                  width: 'narrow',
                  context: 'formatting'
                });
              // Tuesday

              case 'eeee':
              default:
                return match.day(string, {
                  width: 'wide',
                  context: 'formatting'
                }) || match.day(string, {
                  width: 'abbreviated',
                  context: 'formatting'
                }) || match.day(string, {
                  width: 'short',
                  context: 'formatting'
                }) || match.day(string, {
                  width: 'narrow',
                  context: 'formatting'
                });
            }
          },
          validate: function validate(_date, value, _options) {
            return value >= 0 && value <= 6;
          },
          set: function set(date, _flags, value, options) {
            date = Object(_lib_setUTCDay_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(date, value, options);
            date.setUTCHours(0, 0, 0, 0);
            return date;
          },
          incompatibleTokens: ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'E', 'i', 'c', 't', 'T']
        },
        // Stand-alone local day of week
        c: {
          priority: 90,
          parse: function parse(string, token, match, options) {
            var valueCallback = function valueCallback(value) {
              var wholeWeekDays = Math.floor((value - 1) / 7) * 7;
              return (value + options.weekStartsOn + 6) % 7 + wholeWeekDays;
            };

            switch (token) {
              // 3
              case 'c':
              case 'cc':
                // 03
                return parseNDigits(token.length, string, valueCallback);
              // 3rd

              case 'co':
                return match.ordinalNumber(string, {
                  unit: 'day',
                  valueCallback: valueCallback
                });
              // Tue

              case 'ccc':
                return match.day(string, {
                  width: 'abbreviated',
                  context: 'standalone'
                }) || match.day(string, {
                  width: 'short',
                  context: 'standalone'
                }) || match.day(string, {
                  width: 'narrow',
                  context: 'standalone'
                });
              // T

              case 'ccccc':
                return match.day(string, {
                  width: 'narrow',
                  context: 'standalone'
                });
              // Tu

              case 'cccccc':
                return match.day(string, {
                  width: 'short',
                  context: 'standalone'
                }) || match.day(string, {
                  width: 'narrow',
                  context: 'standalone'
                });
              // Tuesday

              case 'cccc':
              default:
                return match.day(string, {
                  width: 'wide',
                  context: 'standalone'
                }) || match.day(string, {
                  width: 'abbreviated',
                  context: 'standalone'
                }) || match.day(string, {
                  width: 'short',
                  context: 'standalone'
                }) || match.day(string, {
                  width: 'narrow',
                  context: 'standalone'
                });
            }
          },
          validate: function validate(_date, value, _options) {
            return value >= 0 && value <= 6;
          },
          set: function set(date, _flags, value, options) {
            date = Object(_lib_setUTCDay_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(date, value, options);
            date.setUTCHours(0, 0, 0, 0);
            return date;
          },
          incompatibleTokens: ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'E', 'i', 'e', 't', 'T']
        },
        // ISO day of week
        i: {
          priority: 90,
          parse: function parse(string, token, match, _options) {
            var valueCallback = function valueCallback(value) {
              if (value === 0) {
                return 7;
              }

              return value;
            };

            switch (token) {
              // 2
              case 'i':
              case 'ii':
                // 02
                return parseNDigits(token.length, string);
              // 2nd

              case 'io':
                return match.ordinalNumber(string, {
                  unit: 'day'
                });
              // Tue

              case 'iii':
                return match.day(string, {
                  width: 'abbreviated',
                  context: 'formatting',
                  valueCallback: valueCallback
                }) || match.day(string, {
                  width: 'short',
                  context: 'formatting',
                  valueCallback: valueCallback
                }) || match.day(string, {
                  width: 'narrow',
                  context: 'formatting',
                  valueCallback: valueCallback
                });
              // T

              case 'iiiii':
                return match.day(string, {
                  width: 'narrow',
                  context: 'formatting',
                  valueCallback: valueCallback
                });
              // Tu

              case 'iiiiii':
                return match.day(string, {
                  width: 'short',
                  context: 'formatting',
                  valueCallback: valueCallback
                }) || match.day(string, {
                  width: 'narrow',
                  context: 'formatting',
                  valueCallback: valueCallback
                });
              // Tuesday

              case 'iiii':
              default:
                return match.day(string, {
                  width: 'wide',
                  context: 'formatting',
                  valueCallback: valueCallback
                }) || match.day(string, {
                  width: 'abbreviated',
                  context: 'formatting',
                  valueCallback: valueCallback
                }) || match.day(string, {
                  width: 'short',
                  context: 'formatting',
                  valueCallback: valueCallback
                }) || match.day(string, {
                  width: 'narrow',
                  context: 'formatting',
                  valueCallback: valueCallback
                });
            }
          },
          validate: function validate(_date, value, _options) {
            return value >= 1 && value <= 7;
          },
          set: function set(date, _flags, value, options) {
            date = Object(_lib_setUTCISODay_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(date, value, options);
            date.setUTCHours(0, 0, 0, 0);
            return date;
          },
          incompatibleTokens: ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D', 'E', 'e', 'c', 't', 'T']
        },
        // AM or PM
        a: {
          priority: 80,
          parse: function parse(string, token, match, _options) {
            switch (token) {
              case 'a':
              case 'aa':
              case 'aaa':
                return match.dayPeriod(string, {
                  width: 'abbreviated',
                  context: 'formatting'
                }) || match.dayPeriod(string, {
                  width: 'narrow',
                  context: 'formatting'
                });

              case 'aaaaa':
                return match.dayPeriod(string, {
                  width: 'narrow',
                  context: 'formatting'
                });

              case 'aaaa':
              default:
                return match.dayPeriod(string, {
                  width: 'wide',
                  context: 'formatting'
                }) || match.dayPeriod(string, {
                  width: 'abbreviated',
                  context: 'formatting'
                }) || match.dayPeriod(string, {
                  width: 'narrow',
                  context: 'formatting'
                });
            }
          },
          set: function set(date, _flags, value, _options) {
            date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);
            return date;
          },
          incompatibleTokens: ['b', 'B', 'H', 'K', 'k', 't', 'T']
        },
        // AM, PM, midnight
        b: {
          priority: 80,
          parse: function parse(string, token, match, _options) {
            switch (token) {
              case 'b':
              case 'bb':
              case 'bbb':
                return match.dayPeriod(string, {
                  width: 'abbreviated',
                  context: 'formatting'
                }) || match.dayPeriod(string, {
                  width: 'narrow',
                  context: 'formatting'
                });

              case 'bbbbb':
                return match.dayPeriod(string, {
                  width: 'narrow',
                  context: 'formatting'
                });

              case 'bbbb':
              default:
                return match.dayPeriod(string, {
                  width: 'wide',
                  context: 'formatting'
                }) || match.dayPeriod(string, {
                  width: 'abbreviated',
                  context: 'formatting'
                }) || match.dayPeriod(string, {
                  width: 'narrow',
                  context: 'formatting'
                });
            }
          },
          set: function set(date, _flags, value, _options) {
            date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);
            return date;
          },
          incompatibleTokens: ['a', 'B', 'H', 'K', 'k', 't', 'T']
        },
        // in the morning, in the afternoon, in the evening, at night
        B: {
          priority: 80,
          parse: function parse(string, token, match, _options) {
            switch (token) {
              case 'B':
              case 'BB':
              case 'BBB':
                return match.dayPeriod(string, {
                  width: 'abbreviated',
                  context: 'formatting'
                }) || match.dayPeriod(string, {
                  width: 'narrow',
                  context: 'formatting'
                });

              case 'BBBBB':
                return match.dayPeriod(string, {
                  width: 'narrow',
                  context: 'formatting'
                });

              case 'BBBB':
              default:
                return match.dayPeriod(string, {
                  width: 'wide',
                  context: 'formatting'
                }) || match.dayPeriod(string, {
                  width: 'abbreviated',
                  context: 'formatting'
                }) || match.dayPeriod(string, {
                  width: 'narrow',
                  context: 'formatting'
                });
            }
          },
          set: function set(date, _flags, value, _options) {
            date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);
            return date;
          },
          incompatibleTokens: ['a', 'b', 't', 'T']
        },
        // Hour [1-12]
        h: {
          priority: 70,
          parse: function parse(string, token, match, _options) {
            switch (token) {
              case 'h':
                return parseNumericPattern(numericPatterns.hour12h, string);

              case 'ho':
                return match.ordinalNumber(string, {
                  unit: 'hour'
                });

              default:
                return parseNDigits(token.length, string);
            }
          },
          validate: function validate(_date, value, _options) {
            return value >= 1 && value <= 12;
          },
          set: function set(date, _flags, value, _options) {
            var isPM = date.getUTCHours() >= 12;

            if (isPM && value < 12) {
              date.setUTCHours(value + 12, 0, 0, 0);
            } else if (!isPM && value === 12) {
              date.setUTCHours(0, 0, 0, 0);
            } else {
              date.setUTCHours(value, 0, 0, 0);
            }

            return date;
          },
          incompatibleTokens: ['H', 'K', 'k', 't', 'T']
        },
        // Hour [0-23]
        H: {
          priority: 70,
          parse: function parse(string, token, match, _options) {
            switch (token) {
              case 'H':
                return parseNumericPattern(numericPatterns.hour23h, string);

              case 'Ho':
                return match.ordinalNumber(string, {
                  unit: 'hour'
                });

              default:
                return parseNDigits(token.length, string);
            }
          },
          validate: function validate(_date, value, _options) {
            return value >= 0 && value <= 23;
          },
          set: function set(date, _flags, value, _options) {
            date.setUTCHours(value, 0, 0, 0);
            return date;
          },
          incompatibleTokens: ['a', 'b', 'h', 'K', 'k', 't', 'T']
        },
        // Hour [0-11]
        K: {
          priority: 70,
          parse: function parse(string, token, match, _options) {
            switch (token) {
              case 'K':
                return parseNumericPattern(numericPatterns.hour11h, string);

              case 'Ko':
                return match.ordinalNumber(string, {
                  unit: 'hour'
                });

              default:
                return parseNDigits(token.length, string);
            }
          },
          validate: function validate(_date, value, _options) {
            return value >= 0 && value <= 11;
          },
          set: function set(date, _flags, value, _options) {
            var isPM = date.getUTCHours() >= 12;

            if (isPM && value < 12) {
              date.setUTCHours(value + 12, 0, 0, 0);
            } else {
              date.setUTCHours(value, 0, 0, 0);
            }

            return date;
          },
          incompatibleTokens: ['a', 'b', 'h', 'H', 'k', 't', 'T']
        },
        // Hour [1-24]
        k: {
          priority: 70,
          parse: function parse(string, token, match, _options) {
            switch (token) {
              case 'k':
                return parseNumericPattern(numericPatterns.hour24h, string);

              case 'ko':
                return match.ordinalNumber(string, {
                  unit: 'hour'
                });

              default:
                return parseNDigits(token.length, string);
            }
          },
          validate: function validate(_date, value, _options) {
            return value >= 1 && value <= 24;
          },
          set: function set(date, _flags, value, _options) {
            var hours = value <= 24 ? value % 24 : value;
            date.setUTCHours(hours, 0, 0, 0);
            return date;
          },
          incompatibleTokens: ['a', 'b', 'h', 'H', 'K', 't', 'T']
        },
        // Minute
        m: {
          priority: 60,
          parse: function parse(string, token, match, _options) {
            switch (token) {
              case 'm':
                return parseNumericPattern(numericPatterns.minute, string);

              case 'mo':
                return match.ordinalNumber(string, {
                  unit: 'minute'
                });

              default:
                return parseNDigits(token.length, string);
            }
          },
          validate: function validate(_date, value, _options) {
            return value >= 0 && value <= 59;
          },
          set: function set(date, _flags, value, _options) {
            date.setUTCMinutes(value, 0, 0);
            return date;
          },
          incompatibleTokens: ['t', 'T']
        },
        // Second
        s: {
          priority: 50,
          parse: function parse(string, token, match, _options) {
            switch (token) {
              case 's':
                return parseNumericPattern(numericPatterns.second, string);

              case 'so':
                return match.ordinalNumber(string, {
                  unit: 'second'
                });

              default:
                return parseNDigits(token.length, string);
            }
          },
          validate: function validate(_date, value, _options) {
            return value >= 0 && value <= 59;
          },
          set: function set(date, _flags, value, _options) {
            date.setUTCSeconds(value, 0);
            return date;
          },
          incompatibleTokens: ['t', 'T']
        },
        // Fraction of second
        S: {
          priority: 30,
          parse: function parse(string, token, _match, _options) {
            var valueCallback = function valueCallback(value) {
              return Math.floor(value * Math.pow(10, -token.length + 3));
            };

            return parseNDigits(token.length, string, valueCallback);
          },
          set: function set(date, _flags, value, _options) {
            date.setUTCMilliseconds(value);
            return date;
          },
          incompatibleTokens: ['t', 'T']
        },
        // Timezone (ISO-8601. +00:00 is `'Z'`)
        X: {
          priority: 10,
          parse: function parse(string, token, _match, _options) {
            switch (token) {
              case 'X':
                return parseTimezonePattern(timezonePatterns.basicOptionalMinutes, string);

              case 'XX':
                return parseTimezonePattern(timezonePatterns.basic, string);

              case 'XXXX':
                return parseTimezonePattern(timezonePatterns.basicOptionalSeconds, string);

              case 'XXXXX':
                return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds, string);

              case 'XXX':
              default:
                return parseTimezonePattern(timezonePatterns.extended, string);
            }
          },
          set: function set(date, flags, value, _options) {
            if (flags.timestampIsSet) {
              return date;
            }

            return new Date(date.getTime() - value);
          },
          incompatibleTokens: ['t', 'T', 'x']
        },
        // Timezone (ISO-8601)
        x: {
          priority: 10,
          parse: function parse(string, token, _match, _options) {
            switch (token) {
              case 'x':
                return parseTimezonePattern(timezonePatterns.basicOptionalMinutes, string);

              case 'xx':
                return parseTimezonePattern(timezonePatterns.basic, string);

              case 'xxxx':
                return parseTimezonePattern(timezonePatterns.basicOptionalSeconds, string);

              case 'xxxxx':
                return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds, string);

              case 'xxx':
              default:
                return parseTimezonePattern(timezonePatterns.extended, string);
            }
          },
          set: function set(date, flags, value, _options) {
            if (flags.timestampIsSet) {
              return date;
            }

            return new Date(date.getTime() - value);
          },
          incompatibleTokens: ['t', 'T', 'X']
        },
        // Seconds timestamp
        t: {
          priority: 40,
          parse: function parse(string, _token, _match, _options) {
            return parseAnyDigitsSigned(string);
          },
          set: function set(_date, _flags, value, _options) {
            return [new Date(value * 1000), {
              timestampIsSet: true
            }];
          },
          incompatibleTokens: '*'
        },
        // Milliseconds timestamp
        T: {
          priority: 20,
          parse: function parse(string, _token, _match, _options) {
            return parseAnyDigitsSigned(string);
          },
          set: function set(_date, _flags, value, _options) {
            return [new Date(value), {
              timestampIsSet: true
            }];
          },
          incompatibleTokens: '*'
        }
      };
      /* harmony default export */

      __webpack_exports__["default"] = parsers;
      /***/
    },

    /***/
    "S6kV": function S6kV(module, exports, __webpack_require__) {
      ;

      (function (root, factory, undef) {
        if (true) {
          // CommonJS
          module.exports = exports = factory(__webpack_require__(
          /*! ./core */
          "Ib8C"), __webpack_require__(
          /*! ./cipher-core */
          "OLod"));
        } else {}
      })(this, function (CryptoJS) {
        /**
         * Output Feedback block mode.
         */
        CryptoJS.mode.OFB = function () {
          var OFB = CryptoJS.lib.BlockCipherMode.extend();
          var Encryptor = OFB.Encryptor = OFB.extend({
            processBlock: function processBlock(words, offset) {
              // Shortcuts
              var cipher = this._cipher;
              var blockSize = cipher.blockSize;
              var iv = this._iv;
              var keystream = this._keystream; // Generate keystream

              if (iv) {
                keystream = this._keystream = iv.slice(0); // Remove IV for subsequent blocks

                this._iv = undefined;
              }

              cipher.encryptBlock(keystream, 0); // Encrypt

              for (var i = 0; i < blockSize; i++) {
                words[offset + i] ^= keystream[i];
              }
            }
          });
          OFB.Decryptor = Encryptor;
          return OFB;
        }();

        return CryptoJS.mode.OFB;
      });
      /***/

    },

    /***/
    "S6ln": function S6ln(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Croatian [hr]
      //! author : Bojan Marković : https://github.com/bmarkovic
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        function translate(number, withoutSuffix, key) {
          var result = number + ' ';

          switch (key) {
            case 'ss':
              if (number === 1) {
                result += 'sekunda';
              } else if (number === 2 || number === 3 || number === 4) {
                result += 'sekunde';
              } else {
                result += 'sekundi';
              }

              return result;

            case 'm':
              return withoutSuffix ? 'jedna minuta' : 'jedne minute';

            case 'mm':
              if (number === 1) {
                result += 'minuta';
              } else if (number === 2 || number === 3 || number === 4) {
                result += 'minute';
              } else {
                result += 'minuta';
              }

              return result;

            case 'h':
              return withoutSuffix ? 'jedan sat' : 'jednog sata';

            case 'hh':
              if (number === 1) {
                result += 'sat';
              } else if (number === 2 || number === 3 || number === 4) {
                result += 'sata';
              } else {
                result += 'sati';
              }

              return result;

            case 'dd':
              if (number === 1) {
                result += 'dan';
              } else {
                result += 'dana';
              }

              return result;

            case 'MM':
              if (number === 1) {
                result += 'mjesec';
              } else if (number === 2 || number === 3 || number === 4) {
                result += 'mjeseca';
              } else {
                result += 'mjeseci';
              }

              return result;

            case 'yy':
              if (number === 1) {
                result += 'godina';
              } else if (number === 2 || number === 3 || number === 4) {
                result += 'godine';
              } else {
                result += 'godina';
              }

              return result;
          }
        }

        var hr = moment.defineLocale('hr', {
          months: {
            format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split('_'),
            standalone: 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split('_')
          },
          monthsShort: 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split('_'),
          monthsParseExact: true,
          weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
          weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
          weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
          weekdaysParseExact: true,
          longDateFormat: {
            LT: 'H:mm',
            LTS: 'H:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'Do MMMM YYYY',
            LLL: 'Do MMMM YYYY H:mm',
            LLLL: 'dddd, Do MMMM YYYY H:mm'
          },
          calendar: {
            sameDay: '[danas u] LT',
            nextDay: '[sutra u] LT',
            nextWeek: function nextWeek() {
              switch (this.day()) {
                case 0:
                  return '[u] [nedjelju] [u] LT';

                case 3:
                  return '[u] [srijedu] [u] LT';

                case 6:
                  return '[u] [subotu] [u] LT';

                case 1:
                case 2:
                case 4:
                case 5:
                  return '[u] dddd [u] LT';
              }
            },
            lastDay: '[jučer u] LT',
            lastWeek: function lastWeek() {
              switch (this.day()) {
                case 0:
                  return '[prošlu] [nedjelju] [u] LT';

                case 3:
                  return '[prošlu] [srijedu] [u] LT';

                case 6:
                  return '[prošle] [subote] [u] LT';

                case 1:
                case 2:
                case 4:
                case 5:
                  return '[prošli] dddd [u] LT';
              }
            },
            sameElse: 'L'
          },
          relativeTime: {
            future: 'za %s',
            past: 'prije %s',
            s: 'par sekundi',
            ss: translate,
            m: translate,
            mm: translate,
            h: translate,
            hh: translate,
            d: 'dan',
            dd: translate,
            M: 'mjesec',
            MM: translate,
            y: 'godinu',
            yy: translate
          },
          dayOfMonthOrdinalParse: /\d{1,2}\./,
          ordinal: '%d.',
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 7 // The week that contains Jan 7th is the first week of the year.

          }
        });
        return hr;
      });
      /***/

    },

    /***/
    "S7Yp": function S7Yp(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return lightFormat;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_format_lightFormatters_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/format/lightFormatters/index.js */
      "YIOq");
      /* harmony import */


      var _lib_getTimezoneOffsetInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../_lib/getTimezoneOffsetInMilliseconds/index.js */
      "JCDJ");
      /* harmony import */


      var _isValid_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../isValid/index.js */
      "Se/U");
      /* harmony import */


      var _subMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! ../subMilliseconds/index.js */
      "g9KO");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg"); // This RegExp consists of three parts separated by `|`:
      // - (\w)\1* matches any sequences of the same letter
      // - '' matches two quote characters in a row
      // - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('),
      //   except a single quote symbol, which ends the sequence.
      //   Two quote characters do not end the sequence.
      //   If there is no matching single quote
      //   then the sequence will continue until the end of the string.
      // - . matches any single character unmatched by previous parts of the RegExps


      var formattingTokensRegExp = /(\w)\1*|''|'(''|[^'])+('|$)|./g;
      var escapedStringRegExp = /^'([^]*?)'?$/;
      var doubleQuoteRegExp = /''/g;
      var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
      /**
       * @name lightFormat
       * @category Common Helpers
       * @summary Format the date.
       *
       * @description
       * Return the formatted date string in the given format. Unlike `format`,
       * `lightFormat` doesn't use locales and outputs date using the most popular tokens.
       *
       * > ⚠️ Please note that the `lightFormat` tokens differ from Moment.js and other libraries.
       * > See: https://git.io/fxCyr
       *
       * The characters wrapped between two single quotes characters (') are escaped.
       * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.
       *
       * Format of the string is based on Unicode Technical Standard #35:
       * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
       *
       * Accepted patterns:
       * | Unit                            | Pattern | Result examples                   |
       * |---------------------------------|---------|-----------------------------------|
       * | AM, PM                          | a..aaa  | AM, PM                            |
       * |                                 | aaaa    | a.m., p.m.                        |
       * |                                 | aaaaa   | a, p                              |
       * | Calendar year                   | y       | 44, 1, 1900, 2017                 |
       * |                                 | yy      | 44, 01, 00, 17                    |
       * |                                 | yyy     | 044, 001, 000, 017                |
       * |                                 | yyyy    | 0044, 0001, 1900, 2017            |
       * | Month (formatting)              | M       | 1, 2, ..., 12                     |
       * |                                 | MM      | 01, 02, ..., 12                   |
       * | Day of month                    | d       | 1, 2, ..., 31                     |
       * |                                 | dd      | 01, 02, ..., 31                   |
       * | Hour [1-12]                     | h       | 1, 2, ..., 11, 12                 |
       * |                                 | hh      | 01, 02, ..., 11, 12               |
       * | Hour [0-23]                     | H       | 0, 1, 2, ..., 23                  |
       * |                                 | HH      | 00, 01, 02, ..., 23               |
       * | Minute                          | m       | 0, 1, ..., 59                     |
       * |                                 | mm      | 00, 01, ..., 59                   |
       * | Second                          | s       | 0, 1, ..., 59                     |
       * |                                 | ss      | 00, 01, ..., 59                   |
       * | Fraction of second              | S       | 0, 1, ..., 9                      |
       * |                                 | SS      | 00, 01, ..., 99                   |
       * |                                 | SSS     | 000, 0001, ..., 999               |
       * |                                 | SSSS    | ...                               |
       *
       * @param {Date|Number} date - the original date
       * @param {String} format - the string of tokens
       * @returns {String} the formatted date string
       * @throws {TypeError} 2 arguments required
       * @throws {RangeError} format string contains an unescaped latin alphabet character
       *
       * @example
       * var result = lightFormat(new Date(2014, 1, 11), 'yyyy-MM-dd')
       * //=> '2014-02-11'
       */

      function lightFormat(dirtyDate, dirtyFormatStr) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_5__["default"])(2, arguments);
        var formatStr = String(dirtyFormatStr);
        var originalDate = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);

        if (!Object(_isValid_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(originalDate)) {
          throw new RangeError('Invalid time value');
        } // Convert the date in system timezone to the same date in UTC+00:00 timezone.
        // This ensures that when UTC functions will be implemented, locales will be compatible with them.
        // See an issue about UTC functions: https://github.com/date-fns/date-fns/issues/376


        var timezoneOffset = Object(_lib_getTimezoneOffsetInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(originalDate);
        var utcDate = Object(_subMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_4__["default"])(originalDate, timezoneOffset);
        var result = formatStr.match(formattingTokensRegExp).map(function (substring) {
          // Replace two single quote characters with one single quote character
          if (substring === "''") {
            return "'";
          }

          var firstCharacter = substring[0];

          if (firstCharacter === "'") {
            return cleanEscapedString(substring);
          }

          var formatter = _lib_format_lightFormatters_index_js__WEBPACK_IMPORTED_MODULE_1__["default"][firstCharacter];

          if (formatter) {
            return formatter(utcDate, substring, null, {});
          }

          if (firstCharacter.match(unescapedLatinCharacterRegExp)) {
            throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`');
          }

          return substring;
        }).join('');
        return result;
      }

      function cleanEscapedString(input) {
        return input.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp, "'");
      }
      /***/

    },

    /***/
    "SCoL": function SCoL(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Platform", function () {
        return Platform;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "PlatformModule", function () {
        return PlatformModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "_getShadowRoot", function () {
        return _getShadowRoot;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "_supportsShadowDom", function () {
        return _supportsShadowDom;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "getRtlScrollAxisType", function () {
        return getRtlScrollAxisType;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "getSupportedInputTypes", function () {
        return getSupportedInputTypes;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "normalizePassiveListenerOptions", function () {
        return normalizePassiveListenerOptions;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "supportsPassiveEventListeners", function () {
        return supportsPassiveEventListeners;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "supportsScrollBehavior", function () {
        return supportsScrollBehavior;
      });
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /* harmony import */


      var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/common */
      "SVse");
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */
      // Whether the current platform supports the V8 Break Iterator. The V8 check
      // is necessary to detect all Blink based browsers.


      var hasV8BreakIterator; // We need a try/catch around the reference to `Intl`, because accessing it in some cases can
      // cause IE to throw. These cases are tied to particular versions of Windows and can happen if
      // the consumer is providing a polyfilled `Map`. See:
      // https://github.com/Microsoft/ChakraCore/issues/3189
      // https://github.com/angular/components/issues/15687

      try {
        hasV8BreakIterator = typeof Intl !== 'undefined' && Intl.v8BreakIterator;
      } catch (_a) {
        hasV8BreakIterator = false;
      }
      /**
       * Service to detect the current platform by comparing the userAgent strings and
       * checking browser-specific global properties.
       */


      var Platform = function Platform(_platformId) {
        _classCallCheck2(this, Platform);

        this._platformId = _platformId; // We want to use the Angular platform check because if the Document is shimmed
        // without the navigator, the following checks will fail. This is preferred because
        // sometimes the Document may be shimmed without the user's knowledge or intention

        /** Whether the Angular application is being rendered in the browser. */

        this.isBrowser = this._platformId ? Object(_angular_common__WEBPACK_IMPORTED_MODULE_1__["isPlatformBrowser"])(this._platformId) : typeof document === 'object' && !!document;
        /** Whether the current browser is Microsoft Edge. */

        this.EDGE = this.isBrowser && /(edge)/i.test(navigator.userAgent);
        /** Whether the current rendering engine is Microsoft Trident. */

        this.TRIDENT = this.isBrowser && /(msie|trident)/i.test(navigator.userAgent); // EdgeHTML and Trident mock Blink specific things and need to be excluded from this check.

        /** Whether the current rendering engine is Blink. */

        this.BLINK = this.isBrowser && !!(window.chrome || hasV8BreakIterator) && typeof CSS !== 'undefined' && !this.EDGE && !this.TRIDENT; // Webkit is part of the userAgent in EdgeHTML, Blink and Trident. Therefore we need to
        // ensure that Webkit runs standalone and is not used as another engine's base.

        /** Whether the current rendering engine is WebKit. */

        this.WEBKIT = this.isBrowser && /AppleWebKit/i.test(navigator.userAgent) && !this.BLINK && !this.EDGE && !this.TRIDENT;
        /** Whether the current platform is Apple iOS. */

        this.IOS = this.isBrowser && /iPad|iPhone|iPod/.test(navigator.userAgent) && !('MSStream' in window); // It's difficult to detect the plain Gecko engine, because most of the browsers identify
        // them self as Gecko-like browsers and modify the userAgent's according to that.
        // Since we only cover one explicit Firefox case, we can simply check for Firefox
        // instead of having an unstable check for Gecko.

        /** Whether the current browser is Firefox. */

        this.FIREFOX = this.isBrowser && /(firefox|minefield)/i.test(navigator.userAgent);
        /** Whether the current platform is Android. */
        // Trident on mobile adds the android platform to the userAgent to trick detections.

        this.ANDROID = this.isBrowser && /android/i.test(navigator.userAgent) && !this.TRIDENT; // Safari browsers will include the Safari keyword in their userAgent. Some browsers may fake
        // this and just place the Safari keyword in the userAgent. To be more safe about Safari every
        // Safari browser should also use Webkit as its layout engine.

        /** Whether the current browser is Safari. */

        this.SAFARI = this.isBrowser && /safari/i.test(navigator.userAgent) && this.WEBKIT;
      };

      Platform.ɵfac = function Platform_Factory(t) {
        return new (t || Platform)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["PLATFORM_ID"]));
      };

      Platform.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({
        factory: function Platform_Factory() {
          return new Platform(Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(_angular_core__WEBPACK_IMPORTED_MODULE_0__["PLATFORM_ID"]));
        },
        token: Platform,
        providedIn: "root"
      });

      Platform.ctorParameters = function () {
        return [{
          type: Object,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["PLATFORM_ID"]]
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](Platform, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
          args: [{
            providedIn: 'root'
          }]
        }], function () {
          return [{
            type: Object,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["PLATFORM_ID"]]
            }]
          }];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var PlatformModule = function PlatformModule() {
        _classCallCheck2(this, PlatformModule);
      };

      PlatformModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
        type: PlatformModule
      });
      PlatformModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
        factory: function PlatformModule_Factory(t) {
          return new (t || PlatformModule)();
        }
      });
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](PlatformModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
          args: [{}]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** Cached result Set of input types support by the current browser. */


      var supportedInputTypes;
      /** Types of `<input>` that *might* be supported. */

      var candidateInputTypes = [// `color` must come first. Chrome 56 shows a warning if we change the type to `color` after
      // first changing it to something else:
      // The specified value "" does not conform to the required format.
      // The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
      'color', 'button', 'checkbox', 'date', 'datetime-local', 'email', 'file', 'hidden', 'image', 'month', 'number', 'password', 'radio', 'range', 'reset', 'search', 'submit', 'tel', 'text', 'time', 'url', 'week'];
      /** @returns The input types supported by this browser. */

      function getSupportedInputTypes() {
        // Result is cached.
        if (supportedInputTypes) {
          return supportedInputTypes;
        } // We can't check if an input type is not supported until we're on the browser, so say that
        // everything is supported when not on the browser. We don't use `Platform` here since it's
        // just a helper function and can't inject it.


        if (typeof document !== 'object' || !document) {
          supportedInputTypes = new Set(candidateInputTypes);
          return supportedInputTypes;
        }

        var featureTestInput = document.createElement('input');
        supportedInputTypes = new Set(candidateInputTypes.filter(function (value) {
          featureTestInput.setAttribute('type', value);
          return featureTestInput.type === value;
        }));
        return supportedInputTypes;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** Cached result of whether the user's browser supports passive event listeners. */


      var supportsPassiveEvents;
      /**
       * Checks whether the user's browser supports passive event listeners.
       * See: https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md
       */

      function supportsPassiveEventListeners() {
        if (supportsPassiveEvents == null && typeof window !== 'undefined') {
          try {
            window.addEventListener('test', null, Object.defineProperty({}, 'passive', {
              get: function get() {
                return supportsPassiveEvents = true;
              }
            }));
          } finally {
            supportsPassiveEvents = supportsPassiveEvents || false;
          }
        }

        return supportsPassiveEvents;
      }
      /**
       * Normalizes an `AddEventListener` object to something that can be passed
       * to `addEventListener` on any browser, no matter whether it supports the
       * `options` parameter.
       * @param options Object to be normalized.
       */


      function normalizePassiveListenerOptions(options) {
        return supportsPassiveEventListeners() ? options : !!options.capture;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** Cached result of the way the browser handles the horizontal scroll axis in RTL mode. */


      var rtlScrollAxisType;
      /** Cached result of the check that indicates whether the browser supports scroll behaviors. */

      var scrollBehaviorSupported;
      /** Check whether the browser supports scroll behaviors. */

      function supportsScrollBehavior() {
        if (scrollBehaviorSupported == null) {
          // If we're not in the browser, it can't be supported.
          if (typeof document !== 'object' || !document) {
            scrollBehaviorSupported = false;
          } // If the element can have a `scrollBehavior` style, we can be sure that it's supported.


          if ('scrollBehavior' in document.documentElement.style) {
            scrollBehaviorSupported = true;
          } else {
            // At this point we have 3 possibilities: `scrollTo` isn't supported at all, it's
            // supported but it doesn't handle scroll behavior, or it has been polyfilled.
            var scrollToFunction = Element.prototype.scrollTo;

            if (scrollToFunction) {
              // We can detect if the function has been polyfilled by calling `toString` on it. Native
              // functions are obfuscated using `[native code]`, whereas if it was overwritten we'd get
              // the actual function source. Via https://davidwalsh.name/detect-native-function. Consider
              // polyfilled functions as supporting scroll behavior.
              scrollBehaviorSupported = !/\{\s*\[native code\]\s*\}/.test(scrollToFunction.toString());
            } else {
              scrollBehaviorSupported = false;
            }
          }
        }

        return scrollBehaviorSupported;
      }
      /**
       * Checks the type of RTL scroll axis used by this browser. As of time of writing, Chrome is NORMAL,
       * Firefox & Safari are NEGATED, and IE & Edge are INVERTED.
       */


      function getRtlScrollAxisType() {
        // We can't check unless we're on the browser. Just assume 'normal' if we're not.
        if (typeof document !== 'object' || !document) {
          return 0
          /* NORMAL */
          ;
        }

        if (rtlScrollAxisType == null) {
          // Create a 1px wide scrolling container and a 2px wide content element.
          var scrollContainer = document.createElement('div');
          var containerStyle = scrollContainer.style;
          scrollContainer.dir = 'rtl';
          containerStyle.width = '1px';
          containerStyle.overflow = 'auto';
          containerStyle.visibility = 'hidden';
          containerStyle.pointerEvents = 'none';
          containerStyle.position = 'absolute';
          var content = document.createElement('div');
          var contentStyle = content.style;
          contentStyle.width = '2px';
          contentStyle.height = '1px';
          scrollContainer.appendChild(content);
          document.body.appendChild(scrollContainer);
          rtlScrollAxisType = 0
          /* NORMAL */
          ; // The viewport starts scrolled all the way to the right in RTL mode. If we are in a NORMAL
          // browser this would mean that the scrollLeft should be 1. If it's zero instead we know we're
          // dealing with one of the other two types of browsers.

          if (scrollContainer.scrollLeft === 0) {
            // In a NEGATED browser the scrollLeft is always somewhere in [-maxScrollAmount, 0]. For an
            // INVERTED browser it is always somewhere in [0, maxScrollAmount]. We can determine which by
            // setting to the scrollLeft to 1. This is past the max for a NEGATED browser, so it will
            // return 0 when we read it again.
            scrollContainer.scrollLeft = 1;
            rtlScrollAxisType = scrollContainer.scrollLeft === 0 ? 1
            /* NEGATED */
            : 2
            /* INVERTED */
            ;
          }

          scrollContainer.parentNode.removeChild(scrollContainer);
        }

        return rtlScrollAxisType;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var shadowDomIsSupported;
      /** Checks whether the user's browser support Shadow DOM. */

      function _supportsShadowDom() {
        if (shadowDomIsSupported == null) {
          var head = typeof document !== 'undefined' ? document.head : null;
          shadowDomIsSupported = !!(head && (head.createShadowRoot || head.attachShadow));
        }

        return shadowDomIsSupported;
      }
      /** Gets the shadow root of an element, if supported and the element is inside the Shadow DOM. */


      function _getShadowRoot(element) {
        if (_supportsShadowDom()) {
          var rootNode = element.getRootNode ? element.getRootNode() : null; // Note that this should be caught by `_supportsShadowDom`, but some
          // teams have been able to hit this code path on unsupported browsers.

          if (typeof ShadowRoot !== 'undefined' && ShadowRoot && rootNode instanceof ShadowRoot) {
            return rootNode;
          }
        }

        return null;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Generated bundle index. Do not edit.
       */
      //# sourceMappingURL=platform.js.map

      /***/

    },

    /***/
    "SFWn": function SFWn(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return getQuarter;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name getQuarter
       * @category Quarter Helpers
       * @summary Get the year quarter of the given date.
       *
       * @description
       * Get the year quarter of the given date.
       *
       * ### 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 {Date|Number} date - the given date
       * @returns {Number} the quarter
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // Which quarter is 2 July 2014?
       * var result = getQuarter(new Date(2014, 6, 2))
       * //=> 3
       */


      function getQuarter(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);
        var quarter = Math.floor(date.getMonth() / 3) + 1;
        return quarter;
      }
      /***/

    },

    /***/
    "SFxW": function SFxW(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Azerbaijani [az]
      //! author : topchiyev : https://github.com/topchiyev
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var suffixes = {
          1: '-inci',
          5: '-inci',
          8: '-inci',
          70: '-inci',
          80: '-inci',
          2: '-nci',
          7: '-nci',
          20: '-nci',
          50: '-nci',
          3: '-üncü',
          4: '-üncü',
          100: '-üncü',
          6: '-ncı',
          9: '-uncu',
          10: '-uncu',
          30: '-uncu',
          60: '-ıncı',
          90: '-ıncı'
        };
        var az = moment.defineLocale('az', {
          months: 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split('_'),
          monthsShort: 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),
          weekdays: 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split('_'),
          weekdaysShort: 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),
          weekdaysMin: 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),
          weekdaysParseExact: true,
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd, D MMMM YYYY HH:mm'
          },
          calendar: {
            sameDay: '[bugün saat] LT',
            nextDay: '[sabah saat] LT',
            nextWeek: '[gələn həftə] dddd [saat] LT',
            lastDay: '[dünən] LT',
            lastWeek: '[keçən həftə] dddd [saat] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: '%s sonra',
            past: '%s əvvəl',
            s: 'bir neçə saniyə',
            ss: '%d saniyə',
            m: 'bir dəqiqə',
            mm: '%d dəqiqə',
            h: 'bir saat',
            hh: '%d saat',
            d: 'bir gün',
            dd: '%d gün',
            M: 'bir ay',
            MM: '%d ay',
            y: 'bir il',
            yy: '%d il'
          },
          meridiemParse: /gecə|səhər|gündüz|axşam/,
          isPM: function isPM(input) {
            return /^(gündüz|axşam)$/.test(input);
          },
          meridiem: function meridiem(hour, minute, isLower) {
            if (hour < 4) {
              return 'gecə';
            } else if (hour < 12) {
              return 'səhər';
            } else if (hour < 17) {
              return 'gündüz';
            } else {
              return 'axşam';
            }
          },
          dayOfMonthOrdinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,
          ordinal: function ordinal(number) {
            if (number === 0) {
              // special case for zero
              return number + '-ıncı';
            }

            var a = number % 10,
                b = number % 100 - a,
                c = number >= 100 ? 100 : null;
            return number + (suffixes[a] || suffixes[b] || suffixes[c]);
          },
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 7 // The week that contains Jan 7th is the first week of the year.

          }
        });
        return az;
      });
      /***/

    },

    /***/
    "SVse": function SVse(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "APP_BASE_HREF", function () {
        return APP_BASE_HREF;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "AsyncPipe", function () {
        return AsyncPipe;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CommonModule", function () {
        return CommonModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CurrencyPipe", function () {
        return CurrencyPipe;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "DOCUMENT", function () {
        return DOCUMENT;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "DatePipe", function () {
        return DatePipe;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "DecimalPipe", function () {
        return DecimalPipe;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "FormStyle", function () {
        return FormStyle;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "FormatWidth", function () {
        return FormatWidth;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "HashLocationStrategy", function () {
        return HashLocationStrategy;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "I18nPluralPipe", function () {
        return I18nPluralPipe;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "I18nSelectPipe", function () {
        return I18nSelectPipe;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "JsonPipe", function () {
        return JsonPipe;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "KeyValuePipe", function () {
        return KeyValuePipe;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "LOCATION_INITIALIZED", function () {
        return LOCATION_INITIALIZED;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Location", function () {
        return Location;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "LocationStrategy", function () {
        return LocationStrategy;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "LowerCasePipe", function () {
        return LowerCasePipe;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NgClass", function () {
        return NgClass;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NgComponentOutlet", function () {
        return NgComponentOutlet;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NgForOf", function () {
        return NgForOf;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NgForOfContext", function () {
        return NgForOfContext;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NgIf", function () {
        return NgIf;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NgIfContext", function () {
        return NgIfContext;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NgLocaleLocalization", function () {
        return NgLocaleLocalization;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NgLocalization", function () {
        return NgLocalization;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NgPlural", function () {
        return NgPlural;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NgPluralCase", function () {
        return NgPluralCase;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NgStyle", function () {
        return NgStyle;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NgSwitch", function () {
        return NgSwitch;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NgSwitchCase", function () {
        return NgSwitchCase;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NgSwitchDefault", function () {
        return NgSwitchDefault;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NgTemplateOutlet", function () {
        return NgTemplateOutlet;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NumberFormatStyle", function () {
        return NumberFormatStyle;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NumberSymbol", function () {
        return NumberSymbol;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "PathLocationStrategy", function () {
        return PathLocationStrategy;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "PercentPipe", function () {
        return PercentPipe;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "PlatformLocation", function () {
        return PlatformLocation;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Plural", function () {
        return Plural;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "SlicePipe", function () {
        return SlicePipe;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TitleCasePipe", function () {
        return TitleCasePipe;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TranslationWidth", function () {
        return TranslationWidth;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "UpperCasePipe", function () {
        return UpperCasePipe;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "VERSION", function () {
        return VERSION;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ViewportScroller", function () {
        return ViewportScroller;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "WeekDay", function () {
        return WeekDay;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "formatCurrency", function () {
        return formatCurrency;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "formatDate", function () {
        return formatDate;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "formatNumber", function () {
        return formatNumber;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "formatPercent", function () {
        return formatPercent;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "getCurrencySymbol", function () {
        return getCurrencySymbol;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "getLocaleCurrencyCode", function () {
        return getLocaleCurrencyCode;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "getLocaleCurrencyName", function () {
        return getLocaleCurrencyName;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "getLocaleCurrencySymbol", function () {
        return getLocaleCurrencySymbol;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "getLocaleDateFormat", function () {
        return getLocaleDateFormat;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "getLocaleDateTimeFormat", function () {
        return getLocaleDateTimeFormat;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "getLocaleDayNames", function () {
        return getLocaleDayNames;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "getLocaleDayPeriods", function () {
        return getLocaleDayPeriods;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "getLocaleDirection", function () {
        return getLocaleDirection;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "getLocaleEraNames", function () {
        return getLocaleEraNames;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "getLocaleExtraDayPeriodRules", function () {
        return getLocaleExtraDayPeriodRules;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "getLocaleExtraDayPeriods", function () {
        return getLocaleExtraDayPeriods;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "getLocaleFirstDayOfWeek", function () {
        return getLocaleFirstDayOfWeek;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "getLocaleId", function () {
        return getLocaleId;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "getLocaleMonthNames", function () {
        return getLocaleMonthNames;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "getLocaleNumberFormat", function () {
        return getLocaleNumberFormat;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "getLocaleNumberSymbol", function () {
        return getLocaleNumberSymbol;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "getLocalePluralCase", function () {
        return getLocalePluralCase;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "getLocaleTimeFormat", function () {
        return getLocaleTimeFormat;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "getLocaleWeekEndRange", function () {
        return getLocaleWeekEndRange;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "getNumberOfCurrencyDigits", function () {
        return getNumberOfCurrencyDigits;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "isPlatformBrowser", function () {
        return isPlatformBrowser;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "isPlatformServer", function () {
        return isPlatformServer;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "isPlatformWorkerApp", function () {
        return isPlatformWorkerApp;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "isPlatformWorkerUi", function () {
        return isPlatformWorkerUi;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "registerLocaleData", function () {
        return registerLocaleData;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵBrowserPlatformLocation", function () {
        return BrowserPlatformLocation;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵDomAdapter", function () {
        return DomAdapter;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵNullViewportScroller", function () {
        return NullViewportScroller;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵPLATFORM_BROWSER_ID", function () {
        return PLATFORM_BROWSER_ID;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵPLATFORM_SERVER_ID", function () {
        return PLATFORM_SERVER_ID;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵPLATFORM_WORKER_APP_ID", function () {
        return PLATFORM_WORKER_APP_ID;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵPLATFORM_WORKER_UI_ID", function () {
        return PLATFORM_WORKER_UI_ID;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_common_common_a", function () {
        return useBrowserPlatformLocation;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_common_common_b", function () {
        return createBrowserPlatformLocation;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_common_common_c", function () {
        return createLocation;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_common_common_d", function () {
        return provideLocationStrategy;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_common_common_e", function () {
        return COMMON_DIRECTIVES;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_common_common_f", function () {
        return COMMON_PIPES;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵgetDOM", function () {
        return getDOM;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵparseCookieValue", function () {
        return parseCookieValue;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵsetRootDomAdapter", function () {
        return setRootDomAdapter;
      });
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /**
       * @license Angular v11.0.0
       * (c) 2010-2020 Google LLC. https://angular.io/
       * License: MIT
       */

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var _DOM = null;

      function getDOM() {
        return _DOM;
      }

      function setDOM(adapter) {
        _DOM = adapter;
      }

      function setRootDomAdapter(adapter) {
        if (!_DOM) {
          _DOM = adapter;
        }
      }
      /* tslint:disable:requireParameterType */

      /**
       * Provides DOM operations in an environment-agnostic way.
       *
       * @security Tread carefully! Interacting with the DOM directly is dangerous and
       * can introduce XSS risks.
       */


      var DomAdapter = function DomAdapter() {
        _classCallCheck2(this, DomAdapter);
      };
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * A DI Token representing the main rendering context. In a browser this is the DOM Document.
       *
       * Note: Document might not be available in the Application Context when Application and Rendering
       * Contexts are not the same (e.g. when running the application in a Web Worker).
       *
       * @publicApi
       */


      var DOCUMENT = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('DocumentToken');
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * This class should not be used directly by an application developer. Instead, use
       * {@link Location}.
       *
       * `PlatformLocation` encapsulates all calls to DOM APIs, which allows the Router to be
       * platform-agnostic.
       * This means that we can have different implementation of `PlatformLocation` for the different
       * platforms that Angular supports. For example, `@angular/platform-browser` provides an
       * implementation specific to the browser environment, while `@angular/platform-server` provides
       * one suitable for use with server-side rendering.
       *
       * The `PlatformLocation` class is used directly by all implementations of {@link LocationStrategy}
       * when they need to interact with the DOM APIs like pushState, popState, etc.
       *
       * {@link LocationStrategy} in turn is used by the {@link Location} service which is used directly
       * by the {@link Router} in order to navigate between routes. Since all interactions between {@link
       * Router} /
       * {@link Location} / {@link LocationStrategy} and DOM APIs flow through the `PlatformLocation`
       * class, they are all platform-agnostic.
       *
       * @publicApi
       */

      var PlatformLocation = function PlatformLocation() {
        _classCallCheck2(this, PlatformLocation);
      };

      PlatformLocation.ɵfac = function PlatformLocation_Factory(t) {
        return new (t || PlatformLocation)();
      };

      PlatformLocation.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({
        factory: useBrowserPlatformLocation,
        token: PlatformLocation,
        providedIn: "platform"
      });
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](PlatformLocation, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
          args: [{
            providedIn: 'platform',
            // See #23917
            useFactory: useBrowserPlatformLocation
          }]
        }], null, null);
      })();

      function useBrowserPlatformLocation() {
        return Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(BrowserPlatformLocation);
      }
      /**
       * @description
       * Indicates when a location is initialized.
       *
       * @publicApi
       */


      var LOCATION_INITIALIZED = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('Location Initialized');
      /**
       * `PlatformLocation` encapsulates all of the direct calls to platform APIs.
       * This class should not be used directly by an application developer. Instead, use
       * {@link Location}.
       */

      var BrowserPlatformLocation = /*#__PURE__*/function (_PlatformLocation) {
        _inherits2(BrowserPlatformLocation, _PlatformLocation);

        var _super293 = _createSuper2(BrowserPlatformLocation);

        function BrowserPlatformLocation(_doc) {
          var _this584;

          _classCallCheck2(this, BrowserPlatformLocation);

          _this584 = _super293.call(this);
          _this584._doc = _doc;

          _this584._init();

          return _this584;
        } // This is moved to its own method so that `MockPlatformLocationStrategy` can overwrite it

        /** @internal */


        _createClass2(BrowserPlatformLocation, [{
          key: "_init",
          value: function _init() {
            this.location = getDOM().getLocation();
            this._history = getDOM().getHistory();
          }
        }, {
          key: "getBaseHrefFromDOM",
          value: function getBaseHrefFromDOM() {
            return getDOM().getBaseHref(this._doc);
          }
        }, {
          key: "onPopState",
          value: function onPopState(fn) {
            getDOM().getGlobalEventTarget(this._doc, 'window').addEventListener('popstate', fn, false);
          }
        }, {
          key: "onHashChange",
          value: function onHashChange(fn) {
            getDOM().getGlobalEventTarget(this._doc, 'window').addEventListener('hashchange', fn, false);
          }
        }, {
          key: "href",
          get: function get() {
            return this.location.href;
          }
        }, {
          key: "protocol",
          get: function get() {
            return this.location.protocol;
          }
        }, {
          key: "hostname",
          get: function get() {
            return this.location.hostname;
          }
        }, {
          key: "port",
          get: function get() {
            return this.location.port;
          }
        }, {
          key: "pathname",
          get: function get() {
            return this.location.pathname;
          },
          set: function set(newPath) {
            this.location.pathname = newPath;
          }
        }, {
          key: "search",
          get: function get() {
            return this.location.search;
          }
        }, {
          key: "hash",
          get: function get() {
            return this.location.hash;
          }
        }, {
          key: "pushState",
          value: function pushState(state, title, url) {
            if (supportsState()) {
              this._history.pushState(state, title, url);
            } else {
              this.location.hash = url;
            }
          }
        }, {
          key: "replaceState",
          value: function replaceState(state, title, url) {
            if (supportsState()) {
              this._history.replaceState(state, title, url);
            } else {
              this.location.hash = url;
            }
          }
        }, {
          key: "forward",
          value: function forward() {
            this._history.forward();
          }
        }, {
          key: "back",
          value: function back() {
            this._history.back();
          }
        }, {
          key: "getState",
          value: function getState() {
            return this._history.state;
          }
        }]);

        return BrowserPlatformLocation;
      }(PlatformLocation);

      BrowserPlatformLocation.ɵfac = function BrowserPlatformLocation_Factory(t) {
        return new (t || BrowserPlatformLocation)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](DOCUMENT));
      };

      BrowserPlatformLocation.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({
        factory: createBrowserPlatformLocation,
        token: BrowserPlatformLocation,
        providedIn: "platform"
      });

      BrowserPlatformLocation.ctorParameters = function () {
        return [{
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [DOCUMENT]
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](BrowserPlatformLocation, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
          args: [{
            providedIn: 'platform',
            // See #23917
            useFactory: createBrowserPlatformLocation
          }]
        }], function () {
          return [{
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [DOCUMENT]
            }]
          }];
        }, null);
      })();

      function supportsState() {
        return !!window.history.pushState;
      }

      function createBrowserPlatformLocation() {
        return new BrowserPlatformLocation(Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(DOCUMENT));
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Joins two parts of a URL with a slash if needed.
       *
       * @param start  URL string
       * @param end    URL string
       *
       *
       * @returns The joined URL string.
       */


      function joinWithSlash(start, end) {
        if (start.length == 0) {
          return end;
        }

        if (end.length == 0) {
          return start;
        }

        var slashes = 0;

        if (start.endsWith('/')) {
          slashes++;
        }

        if (end.startsWith('/')) {
          slashes++;
        }

        if (slashes == 2) {
          return start + end.substring(1);
        }

        if (slashes == 1) {
          return start + end;
        }

        return start + '/' + end;
      }
      /**
       * Removes a trailing slash from a URL string if needed.
       * Looks for the first occurrence of either `#`, `?`, or the end of the
       * line as `/` characters and removes the trailing slash if one exists.
       *
       * @param url URL string.
       *
       * @returns The URL string, modified if needed.
       */


      function stripTrailingSlash(url) {
        var match = url.match(/#|\?|$/);
        var pathEndIdx = match && match.index || url.length;
        var droppedSlashIdx = pathEndIdx - (url[pathEndIdx - 1] === '/' ? 1 : 0);
        return url.slice(0, droppedSlashIdx) + url.slice(pathEndIdx);
      }
      /**
       * Normalizes URL parameters by prepending with `?` if needed.
       *
       * @param  params String of URL parameters.
       *
       * @returns The normalized URL parameters string.
       */


      function normalizeQueryParams(params) {
        return params && params[0] !== '?' ? '?' + params : params;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Enables the `Location` service to read route state from the browser's URL.
       * Angular provides two strategies:
       * `HashLocationStrategy` and `PathLocationStrategy`.
       *
       * Applications should use the `Router` or `Location` services to
       * interact with application route state.
       *
       * For instance, `HashLocationStrategy` produces URLs like
       * <code class="no-auto-link">http://example.com#/foo</code>,
       * and `PathLocationStrategy` produces
       * <code class="no-auto-link">http://example.com/foo</code> as an equivalent URL.
       *
       * See these two classes for more.
       *
       * @publicApi
       */


      var LocationStrategy = function LocationStrategy() {
        _classCallCheck2(this, LocationStrategy);
      };

      LocationStrategy.ɵfac = function LocationStrategy_Factory(t) {
        return new (t || LocationStrategy)();
      };

      LocationStrategy.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({
        factory: provideLocationStrategy,
        token: LocationStrategy,
        providedIn: "root"
      });
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](LocationStrategy, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
          args: [{
            providedIn: 'root',
            useFactory: provideLocationStrategy
          }]
        }], null, null);
      })();

      function provideLocationStrategy(platformLocation) {
        // See #23917
        var location = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(DOCUMENT).location;
        return new PathLocationStrategy(Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(PlatformLocation), location && location.origin || '');
      }
      /**
       * A predefined [DI token](guide/glossary#di-token) for the base href
       * to be used with the `PathLocationStrategy`.
       * The base href is the URL prefix that should be preserved when generating
       * and recognizing URLs.
       *
       * @usageNotes
       *
       * The following example shows how to use this token to configure the root app injector
       * with a base href value, so that the DI framework can supply the dependency anywhere in the app.
       *
       * ```typescript
       * import {Component, NgModule} from '@angular/core';
       * import {APP_BASE_HREF} from '@angular/common';
       *
       * @NgModule({
       *   providers: [{provide: APP_BASE_HREF, useValue: '/my/app'}]
       * })
       * class AppModule {}
       * ```
       *
       * @publicApi
       */


      var APP_BASE_HREF = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('appBaseHref');
      /**
       * @description
       * A {@link LocationStrategy} used to configure the {@link Location} service to
       * represent its state in the
       * [path](https://en.wikipedia.org/wiki/Uniform_Resource_Locator#Syntax) of the
       * browser's URL.
       *
       * If you're using `PathLocationStrategy`, you must provide a {@link APP_BASE_HREF}
       * or add a `<base href>` element to the document.
       *
       * For instance, if you provide an `APP_BASE_HREF` of `'/my/app/'` and call
       * `location.go('/foo')`, the browser's URL will become
       * `example.com/my/app/foo`. To ensure all relative URIs resolve correctly,
       * the `<base href>` and/or `APP_BASE_HREF` should end with a `/`.
       *
       * Similarly, if you add `<base href='/my/app/'/>` to the document and call
       * `location.go('/foo')`, the browser's URL will become
       * `example.com/my/app/foo`.
       *
       * Note that when using `PathLocationStrategy`, neither the query nor
       * the fragment in the `<base href>` will be preserved, as outlined
       * by the [RFC](https://tools.ietf.org/html/rfc3986#section-5.2.2).
       *
       * @usageNotes
       *
       * ### Example
       *
       * {@example common/location/ts/path_location_component.ts region='LocationComponent'}
       *
       * @publicApi
       */

      var PathLocationStrategy = /*#__PURE__*/function (_LocationStrategy) {
        _inherits2(PathLocationStrategy, _LocationStrategy);

        var _super294 = _createSuper2(PathLocationStrategy);

        function PathLocationStrategy(_platformLocation, href) {
          var _this585;

          _classCallCheck2(this, PathLocationStrategy);

          _this585 = _super294.call(this);
          _this585._platformLocation = _platformLocation;

          if (href == null) {
            href = _this585._platformLocation.getBaseHrefFromDOM();
          }

          if (href == null) {
            throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");
          }

          _this585._baseHref = href;
          return _this585;
        }

        _createClass2(PathLocationStrategy, [{
          key: "onPopState",
          value: function onPopState(fn) {
            this._platformLocation.onPopState(fn);

            this._platformLocation.onHashChange(fn);
          }
        }, {
          key: "getBaseHref",
          value: function getBaseHref() {
            return this._baseHref;
          }
        }, {
          key: "prepareExternalUrl",
          value: function prepareExternalUrl(internal) {
            return joinWithSlash(this._baseHref, internal);
          }
        }, {
          key: "path",
          value: function path() {
            var includeHash = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
            var pathname = this._platformLocation.pathname + normalizeQueryParams(this._platformLocation.search);
            var hash = this._platformLocation.hash;
            return hash && includeHash ? "".concat(pathname).concat(hash) : pathname;
          }
        }, {
          key: "pushState",
          value: function pushState(state, title, url, queryParams) {
            var externalUrl = this.prepareExternalUrl(url + normalizeQueryParams(queryParams));

            this._platformLocation.pushState(state, title, externalUrl);
          }
        }, {
          key: "replaceState",
          value: function replaceState(state, title, url, queryParams) {
            var externalUrl = this.prepareExternalUrl(url + normalizeQueryParams(queryParams));

            this._platformLocation.replaceState(state, title, externalUrl);
          }
        }, {
          key: "forward",
          value: function forward() {
            this._platformLocation.forward();
          }
        }, {
          key: "back",
          value: function back() {
            this._platformLocation.back();
          }
        }]);

        return PathLocationStrategy;
      }(LocationStrategy);

      PathLocationStrategy.ɵfac = function PathLocationStrategy_Factory(t) {
        return new (t || PathLocationStrategy)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](PlatformLocation), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](APP_BASE_HREF, 8));
      };

      PathLocationStrategy.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
        token: PathLocationStrategy,
        factory: PathLocationStrategy.ɵfac
      });

      PathLocationStrategy.ctorParameters = function () {
        return [{
          type: PlatformLocation
        }, {
          type: String,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [APP_BASE_HREF]
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](PathLocationStrategy, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
        }], function () {
          return [{
            type: PlatformLocation
          }, {
            type: String,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [APP_BASE_HREF]
            }]
          }];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @description
       * A {@link LocationStrategy} used to configure the {@link Location} service to
       * represent its state in the
       * [hash fragment](https://en.wikipedia.org/wiki/Uniform_Resource_Locator#Syntax)
       * of the browser's URL.
       *
       * For instance, if you call `location.go('/foo')`, the browser's URL will become
       * `example.com#/foo`.
       *
       * @usageNotes
       *
       * ### Example
       *
       * {@example common/location/ts/hash_location_component.ts region='LocationComponent'}
       *
       * @publicApi
       */


      var HashLocationStrategy = /*#__PURE__*/function (_LocationStrategy2) {
        _inherits2(HashLocationStrategy, _LocationStrategy2);

        var _super295 = _createSuper2(HashLocationStrategy);

        function HashLocationStrategy(_platformLocation, _baseHref) {
          var _this586;

          _classCallCheck2(this, HashLocationStrategy);

          _this586 = _super295.call(this);
          _this586._platformLocation = _platformLocation;
          _this586._baseHref = '';

          if (_baseHref != null) {
            _this586._baseHref = _baseHref;
          }

          return _this586;
        }

        _createClass2(HashLocationStrategy, [{
          key: "onPopState",
          value: function onPopState(fn) {
            this._platformLocation.onPopState(fn);

            this._platformLocation.onHashChange(fn);
          }
        }, {
          key: "getBaseHref",
          value: function getBaseHref() {
            return this._baseHref;
          }
        }, {
          key: "path",
          value: function path() {
            var includeHash = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
            // the hash value is always prefixed with a `#`
            // and if it is empty then it will stay empty
            var path = this._platformLocation.hash;
            if (path == null) path = '#';
            return path.length > 0 ? path.substring(1) : path;
          }
        }, {
          key: "prepareExternalUrl",
          value: function prepareExternalUrl(internal) {
            var url = joinWithSlash(this._baseHref, internal);
            return url.length > 0 ? '#' + url : url;
          }
        }, {
          key: "pushState",
          value: function pushState(state, title, path, queryParams) {
            var url = this.prepareExternalUrl(path + normalizeQueryParams(queryParams));

            if (url.length == 0) {
              url = this._platformLocation.pathname;
            }

            this._platformLocation.pushState(state, title, url);
          }
        }, {
          key: "replaceState",
          value: function replaceState(state, title, path, queryParams) {
            var url = this.prepareExternalUrl(path + normalizeQueryParams(queryParams));

            if (url.length == 0) {
              url = this._platformLocation.pathname;
            }

            this._platformLocation.replaceState(state, title, url);
          }
        }, {
          key: "forward",
          value: function forward() {
            this._platformLocation.forward();
          }
        }, {
          key: "back",
          value: function back() {
            this._platformLocation.back();
          }
        }]);

        return HashLocationStrategy;
      }(LocationStrategy);

      HashLocationStrategy.ɵfac = function HashLocationStrategy_Factory(t) {
        return new (t || HashLocationStrategy)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](PlatformLocation), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](APP_BASE_HREF, 8));
      };

      HashLocationStrategy.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
        token: HashLocationStrategy,
        factory: HashLocationStrategy.ɵfac
      });

      HashLocationStrategy.ctorParameters = function () {
        return [{
          type: PlatformLocation
        }, {
          type: String,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [APP_BASE_HREF]
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](HashLocationStrategy, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
        }], function () {
          return [{
            type: PlatformLocation
          }, {
            type: String,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [APP_BASE_HREF]
            }]
          }];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @description
       *
       * A service that applications can use to interact with a browser's URL.
       *
       * Depending on the `LocationStrategy` used, `Location` persists
       * to the URL's path or the URL's hash segment.
       *
       * @usageNotes
       *
       * It's better to use the `Router#navigate` service to trigger route changes. Use
       * `Location` only if you need to interact with or create normalized URLs outside of
       * routing.
       *
       * `Location` is responsible for normalizing the URL against the application's base href.
       * A normalized URL is absolute from the URL host, includes the application's base href, and has no
       * trailing slash:
       * - `/my/app/user/123` is normalized
       * - `my/app/user/123` **is not** normalized
       * - `/my/app/user/123/` **is not** normalized
       *
       * ### Example
       *
       * <code-example path='common/location/ts/path_location_component.ts'
       * region='LocationComponent'></code-example>
       *
       * @publicApi
       */


      var Location = /*#__PURE__*/function () {
        function Location(platformStrategy, platformLocation) {
          var _this587 = this;

          _classCallCheck2(this, Location);

          /** @internal */
          this._subject = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
          /** @internal */

          this._urlChangeListeners = [];
          this._platformStrategy = platformStrategy;

          var browserBaseHref = this._platformStrategy.getBaseHref();

          this._platformLocation = platformLocation;
          this._baseHref = stripTrailingSlash(_stripIndexHtml(browserBaseHref));

          this._platformStrategy.onPopState(function (ev) {
            _this587._subject.emit({
              'url': _this587.path(true),
              'pop': true,
              'state': ev.state,
              'type': ev.type
            });
          });
        }
        /**
         * Normalizes the URL path for this location.
         *
         * @param includeHash True to include an anchor fragment in the path.
         *
         * @returns The normalized URL path.
         */
        // TODO: vsavkin. Remove the boolean flag and always include hash once the deprecated router is
        // removed.


        _createClass2(Location, [{
          key: "path",
          value: function path() {
            var includeHash = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
            return this.normalize(this._platformStrategy.path(includeHash));
          }
          /**
           * Reports the current state of the location history.
           * @returns The current value of the `history.state` object.
           */

        }, {
          key: "getState",
          value: function getState() {
            return this._platformLocation.getState();
          }
          /**
           * Normalizes the given path and compares to the current normalized path.
           *
           * @param path The given URL path.
           * @param query Query parameters.
           *
           * @returns True if the given URL path is equal to the current normalized path, false
           * otherwise.
           */

        }, {
          key: "isCurrentPathEqualTo",
          value: function isCurrentPathEqualTo(path) {
            var query = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
            return this.path() == this.normalize(path + normalizeQueryParams(query));
          }
          /**
           * Normalizes a URL path by stripping any trailing slashes.
           *
           * @param url String representing a URL.
           *
           * @returns The normalized URL string.
           */

        }, {
          key: "normalize",
          value: function normalize(url) {
            return Location.stripTrailingSlash(_stripBaseHref(this._baseHref, _stripIndexHtml(url)));
          }
          /**
           * Normalizes an external URL path.
           * If the given URL doesn't begin with a leading slash (`'/'`), adds one
           * before normalizing. Adds a hash if `HashLocationStrategy` is
           * in use, or the `APP_BASE_HREF` if the `PathLocationStrategy` is in use.
           *
           * @param url String representing a URL.
           *
           * @returns  A normalized platform-specific URL.
           */

        }, {
          key: "prepareExternalUrl",
          value: function prepareExternalUrl(url) {
            if (url && url[0] !== '/') {
              url = '/' + url;
            }

            return this._platformStrategy.prepareExternalUrl(url);
          } // TODO: rename this method to pushState

          /**
           * Changes the browser's URL to a normalized version of a given URL, and pushes a
           * new item onto the platform's history.
           *
           * @param path  URL path to normalize.
           * @param query Query parameters.
           * @param state Location history state.
           *
           */

        }, {
          key: "go",
          value: function go(path) {
            var query = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
            var state = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;

            this._platformStrategy.pushState(state, '', path, query);

            this._notifyUrlChangeListeners(this.prepareExternalUrl(path + normalizeQueryParams(query)), state);
          }
          /**
           * Changes the browser's URL to a normalized version of the given URL, and replaces
           * the top item on the platform's history stack.
           *
           * @param path  URL path to normalize.
           * @param query Query parameters.
           * @param state Location history state.
           */

        }, {
          key: "replaceState",
          value: function replaceState(path) {
            var query = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
            var state = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;

            this._platformStrategy.replaceState(state, '', path, query);

            this._notifyUrlChangeListeners(this.prepareExternalUrl(path + normalizeQueryParams(query)), state);
          }
          /**
           * Navigates forward in the platform's history.
           */

        }, {
          key: "forward",
          value: function forward() {
            this._platformStrategy.forward();
          }
          /**
           * Navigates back in the platform's history.
           */

        }, {
          key: "back",
          value: function back() {
            this._platformStrategy.back();
          }
          /**
           * Registers a URL change listener. Use to catch updates performed by the Angular
           * framework that are not detectible through "popstate" or "hashchange" events.
           *
           * @param fn The change handler function, which take a URL and a location history state.
           */

        }, {
          key: "onUrlChange",
          value: function onUrlChange(fn) {
            var _this588 = this;

            this._urlChangeListeners.push(fn);

            if (!this._urlChangeSubscription) {
              this._urlChangeSubscription = this.subscribe(function (v) {
                _this588._notifyUrlChangeListeners(v.url, v.state);
              });
            }
          }
          /** @internal */

        }, {
          key: "_notifyUrlChangeListeners",
          value: function _notifyUrlChangeListeners() {
            var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
            var state = arguments.length > 1 ? arguments[1] : undefined;

            this._urlChangeListeners.forEach(function (fn) {
              return fn(url, state);
            });
          }
          /**
           * Subscribes to the platform's `popState` events.
           *
           * @param value Event that is triggered when the state history changes.
           * @param exception The exception to throw.
           *
           * @returns Subscribed events.
           */

        }, {
          key: "subscribe",
          value: function subscribe(onNext, onThrow, onReturn) {
            return this._subject.subscribe({
              next: onNext,
              error: onThrow,
              complete: onReturn
            });
          }
        }]);

        return Location;
      }();

      Location.ɵfac = function Location_Factory(t) {
        return new (t || Location)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](LocationStrategy), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](PlatformLocation));
      };
      /**
       * Normalizes URL parameters by prepending with `?` if needed.
       *
       * @param  params String of URL parameters.
       *
       * @returns The normalized URL parameters string.
       */


      Location.normalizeQueryParams = normalizeQueryParams;
      /**
       * Joins two parts of a URL with a slash if needed.
       *
       * @param start  URL string
       * @param end    URL string
       *
       *
       * @returns The joined URL string.
       */

      Location.joinWithSlash = joinWithSlash;
      /**
       * Removes a trailing slash from a URL string if needed.
       * Looks for the first occurrence of either `#`, `?`, or the end of the
       * line as `/` characters and removes the trailing slash if one exists.
       *
       * @param url URL string.
       *
       * @returns The URL string, modified if needed.
       */

      Location.stripTrailingSlash = stripTrailingSlash;
      Location.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({
        factory: createLocation,
        token: Location,
        providedIn: "root"
      });

      Location.ctorParameters = function () {
        return [{
          type: LocationStrategy
        }, {
          type: PlatformLocation
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](Location, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
          args: [{
            providedIn: 'root',
            // See #23917
            useFactory: createLocation
          }]
        }], function () {
          return [{
            type: LocationStrategy
          }, {
            type: PlatformLocation
          }];
        }, null);
      })();

      function createLocation() {
        return new Location(Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(LocationStrategy), Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(PlatformLocation));
      }

      function _stripBaseHref(baseHref, url) {
        return baseHref && url.startsWith(baseHref) ? url.substring(baseHref.length) : url;
      }

      function _stripIndexHtml(url) {
        return url.replace(/\/index.html$/, '');
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** @internal */


      var CURRENCIES_EN = {
        'ADP': [undefined, undefined, 0],
        'AFN': [undefined, undefined, 0],
        'ALL': [undefined, undefined, 0],
        'AMD': [undefined, undefined, 2],
        'AOA': [undefined, 'Kz'],
        'ARS': [undefined, '$'],
        'AUD': ['A$', '$'],
        'BAM': [undefined, 'KM'],
        'BBD': [undefined, '$'],
        'BDT': [undefined, '৳'],
        'BHD': [undefined, undefined, 3],
        'BIF': [undefined, undefined, 0],
        'BMD': [undefined, '$'],
        'BND': [undefined, '$'],
        'BOB': [undefined, 'Bs'],
        'BRL': ['R$'],
        'BSD': [undefined, '$'],
        'BWP': [undefined, 'P'],
        'BYN': [undefined, 'р.', 2],
        'BYR': [undefined, undefined, 0],
        'BZD': [undefined, '$'],
        'CAD': ['CA$', '$', 2],
        'CHF': [undefined, undefined, 2],
        'CLF': [undefined, undefined, 4],
        'CLP': [undefined, '$', 0],
        'CNY': ['CN¥', '¥'],
        'COP': [undefined, '$', 2],
        'CRC': [undefined, '₡', 2],
        'CUC': [undefined, '$'],
        'CUP': [undefined, '$'],
        'CZK': [undefined, 'Kč', 2],
        'DJF': [undefined, undefined, 0],
        'DKK': [undefined, 'kr', 2],
        'DOP': [undefined, '$'],
        'EGP': [undefined, 'E£'],
        'ESP': [undefined, '₧', 0],
        'EUR': ['€'],
        'FJD': [undefined, '$'],
        'FKP': [undefined, '£'],
        'GBP': ['£'],
        'GEL': [undefined, '₾'],
        'GIP': [undefined, '£'],
        'GNF': [undefined, 'FG', 0],
        'GTQ': [undefined, 'Q'],
        'GYD': [undefined, '$', 2],
        'HKD': ['HK$', '$'],
        'HNL': [undefined, 'L'],
        'HRK': [undefined, 'kn'],
        'HUF': [undefined, 'Ft', 2],
        'IDR': [undefined, 'Rp', 2],
        'ILS': ['₪'],
        'INR': ['₹'],
        'IQD': [undefined, undefined, 0],
        'IRR': [undefined, undefined, 0],
        'ISK': [undefined, 'kr', 0],
        'ITL': [undefined, undefined, 0],
        'JMD': [undefined, '$'],
        'JOD': [undefined, undefined, 3],
        'JPY': ['¥', undefined, 0],
        'KHR': [undefined, '៛'],
        'KMF': [undefined, 'CF', 0],
        'KPW': [undefined, '₩', 0],
        'KRW': ['₩', undefined, 0],
        'KWD': [undefined, undefined, 3],
        'KYD': [undefined, '$'],
        'KZT': [undefined, '₸'],
        'LAK': [undefined, '₭', 0],
        'LBP': [undefined, 'L£', 0],
        'LKR': [undefined, 'Rs'],
        'LRD': [undefined, '$'],
        'LTL': [undefined, 'Lt'],
        'LUF': [undefined, undefined, 0],
        'LVL': [undefined, 'Ls'],
        'LYD': [undefined, undefined, 3],
        'MGA': [undefined, 'Ar', 0],
        'MGF': [undefined, undefined, 0],
        'MMK': [undefined, 'K', 0],
        'MNT': [undefined, '₮', 2],
        'MRO': [undefined, undefined, 0],
        'MUR': [undefined, 'Rs', 2],
        'MXN': ['MX$', '$'],
        'MYR': [undefined, 'RM'],
        'NAD': [undefined, '$'],
        'NGN': [undefined, '₦'],
        'NIO': [undefined, 'C$'],
        'NOK': [undefined, 'kr', 2],
        'NPR': [undefined, 'Rs'],
        'NZD': ['NZ$', '$'],
        'OMR': [undefined, undefined, 3],
        'PHP': [undefined, '₱'],
        'PKR': [undefined, 'Rs', 2],
        'PLN': [undefined, 'zł'],
        'PYG': [undefined, '₲', 0],
        'RON': [undefined, 'lei'],
        'RSD': [undefined, undefined, 0],
        'RUB': [undefined, '₽'],
        'RUR': [undefined, 'р.'],
        'RWF': [undefined, 'RF', 0],
        'SBD': [undefined, '$'],
        'SEK': [undefined, 'kr', 2],
        'SGD': [undefined, '$'],
        'SHP': [undefined, '£'],
        'SLL': [undefined, undefined, 0],
        'SOS': [undefined, undefined, 0],
        'SRD': [undefined, '$'],
        'SSP': [undefined, '£'],
        'STD': [undefined, undefined, 0],
        'STN': [undefined, 'Db'],
        'SYP': [undefined, '£', 0],
        'THB': [undefined, '฿'],
        'TMM': [undefined, undefined, 0],
        'TND': [undefined, undefined, 3],
        'TOP': [undefined, 'T$'],
        'TRL': [undefined, undefined, 0],
        'TRY': [undefined, '₺'],
        'TTD': [undefined, '$'],
        'TWD': ['NT$', '$', 2],
        'TZS': [undefined, undefined, 2],
        'UAH': [undefined, '₴'],
        'UGX': [undefined, undefined, 0],
        'USD': ['$'],
        'UYI': [undefined, undefined, 0],
        'UYU': [undefined, '$'],
        'UYW': [undefined, undefined, 4],
        'UZS': [undefined, undefined, 2],
        'VEF': [undefined, 'Bs', 2],
        'VND': ['₫', undefined, 0],
        'VUV': [undefined, undefined, 0],
        'XAF': ['FCFA', undefined, 0],
        'XCD': ['EC$', '$'],
        'XOF': ['CFA', undefined, 0],
        'XPF': ['CFPF', undefined, 0],
        'XXX': ['¤'],
        'YER': [undefined, undefined, 0],
        'ZAR': [undefined, 'R'],
        'ZMK': [undefined, undefined, 0],
        'ZMW': [undefined, 'ZK'],
        'ZWD': [undefined, undefined, 0]
      };
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Format styles that can be used to represent numbers.
       * @see `getLocaleNumberFormat()`.
       * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
       *
       * @publicApi
       */

      var NumberFormatStyle;

      (function (NumberFormatStyle) {
        NumberFormatStyle[NumberFormatStyle["Decimal"] = 0] = "Decimal";
        NumberFormatStyle[NumberFormatStyle["Percent"] = 1] = "Percent";
        NumberFormatStyle[NumberFormatStyle["Currency"] = 2] = "Currency";
        NumberFormatStyle[NumberFormatStyle["Scientific"] = 3] = "Scientific";
      })(NumberFormatStyle || (NumberFormatStyle = {}));
      /**
       * Plurality cases used for translating plurals to different languages.
       *
       * @see `NgPlural`
       * @see `NgPluralCase`
       * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
       *
       * @publicApi
       */


      var Plural;

      (function (Plural) {
        Plural[Plural["Zero"] = 0] = "Zero";
        Plural[Plural["One"] = 1] = "One";
        Plural[Plural["Two"] = 2] = "Two";
        Plural[Plural["Few"] = 3] = "Few";
        Plural[Plural["Many"] = 4] = "Many";
        Plural[Plural["Other"] = 5] = "Other";
      })(Plural || (Plural = {}));
      /**
       * Context-dependant translation forms for strings.
       * Typically the standalone version is for the nominative form of the word,
       * and the format version is used for the genitive case.
       * @see [CLDR website](http://cldr.unicode.org/translation/date-time-1/date-time#TOC-Standalone-vs.-Format-Styles)
       * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
       *
       * @publicApi
       */


      var FormStyle;

      (function (FormStyle) {
        FormStyle[FormStyle["Format"] = 0] = "Format";
        FormStyle[FormStyle["Standalone"] = 1] = "Standalone";
      })(FormStyle || (FormStyle = {}));
      /**
       * String widths available for translations.
       * The specific character widths are locale-specific.
       * Examples are given for the word "Sunday" in English.
       *
       * @publicApi
       */


      var TranslationWidth;

      (function (TranslationWidth) {
        /** 1 character for `en-US`. For example: 'S' */
        TranslationWidth[TranslationWidth["Narrow"] = 0] = "Narrow";
        /** 3 characters for `en-US`. For example: 'Sun' */

        TranslationWidth[TranslationWidth["Abbreviated"] = 1] = "Abbreviated";
        /** Full length for `en-US`. For example: "Sunday" */

        TranslationWidth[TranslationWidth["Wide"] = 2] = "Wide";
        /** 2 characters for `en-US`, For example: "Su" */

        TranslationWidth[TranslationWidth["Short"] = 3] = "Short";
      })(TranslationWidth || (TranslationWidth = {}));
      /**
       * String widths available for date-time formats.
       * The specific character widths are locale-specific.
       * Examples are given for `en-US`.
       *
       * @see `getLocaleDateFormat()`
       * @see `getLocaleTimeFormat()``
       * @see `getLocaleDateTimeFormat()`
       * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
       * @publicApi
       */


      var FormatWidth;

      (function (FormatWidth) {
        /**
         * For `en-US`, 'M/d/yy, h:mm a'`
         * (Example: `6/15/15, 9:03 AM`)
         */
        FormatWidth[FormatWidth["Short"] = 0] = "Short";
        /**
         * For `en-US`, `'MMM d, y, h:mm:ss a'`
         * (Example: `Jun 15, 2015, 9:03:01 AM`)
         */

        FormatWidth[FormatWidth["Medium"] = 1] = "Medium";
        /**
         * For `en-US`, `'MMMM d, y, h:mm:ss a z'`
         * (Example: `June 15, 2015 at 9:03:01 AM GMT+1`)
         */

        FormatWidth[FormatWidth["Long"] = 2] = "Long";
        /**
         * For `en-US`, `'EEEE, MMMM d, y, h:mm:ss a zzzz'`
         * (Example: `Monday, June 15, 2015 at 9:03:01 AM GMT+01:00`)
         */

        FormatWidth[FormatWidth["Full"] = 3] = "Full";
      })(FormatWidth || (FormatWidth = {}));
      /**
       * Symbols that can be used to replace placeholders in number patterns.
       * Examples are based on `en-US` values.
       *
       * @see `getLocaleNumberSymbol()`
       * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
       *
       * @publicApi
       */


      var NumberSymbol;

      (function (NumberSymbol) {
        /**
         * Decimal separator.
         * For `en-US`, the dot character.
         * Example : 2,345`.`67
         */
        NumberSymbol[NumberSymbol["Decimal"] = 0] = "Decimal";
        /**
         * Grouping separator, typically for thousands.
         * For `en-US`, the comma character.
         * Example: 2`,`345.67
         */

        NumberSymbol[NumberSymbol["Group"] = 1] = "Group";
        /**
         * List-item separator.
         * Example: "one, two, and three"
         */

        NumberSymbol[NumberSymbol["List"] = 2] = "List";
        /**
         * Sign for percentage (out of 100).
         * Example: 23.4%
         */

        NumberSymbol[NumberSymbol["PercentSign"] = 3] = "PercentSign";
        /**
         * Sign for positive numbers.
         * Example: +23
         */

        NumberSymbol[NumberSymbol["PlusSign"] = 4] = "PlusSign";
        /**
         * Sign for negative numbers.
         * Example: -23
         */

        NumberSymbol[NumberSymbol["MinusSign"] = 5] = "MinusSign";
        /**
         * Computer notation for exponential value (n times a power of 10).
         * Example: 1.2E3
         */

        NumberSymbol[NumberSymbol["Exponential"] = 6] = "Exponential";
        /**
         * Human-readable format of exponential.
         * Example: 1.2x103
         */

        NumberSymbol[NumberSymbol["SuperscriptingExponent"] = 7] = "SuperscriptingExponent";
        /**
         * Sign for permille (out of 1000).
         * Example: 23.4‰
         */

        NumberSymbol[NumberSymbol["PerMille"] = 8] = "PerMille";
        /**
         * Infinity, can be used with plus and minus.
         * Example: ∞, +∞, -∞
         */

        NumberSymbol[NumberSymbol["Infinity"] = 9] = "Infinity";
        /**
         * Not a number.
         * Example: NaN
         */

        NumberSymbol[NumberSymbol["NaN"] = 10] = "NaN";
        /**
         * Symbol used between time units.
         * Example: 10:52
         */

        NumberSymbol[NumberSymbol["TimeSeparator"] = 11] = "TimeSeparator";
        /**
         * Decimal separator for currency values (fallback to `Decimal`).
         * Example: $2,345.67
         */

        NumberSymbol[NumberSymbol["CurrencyDecimal"] = 12] = "CurrencyDecimal";
        /**
         * Group separator for currency values (fallback to `Group`).
         * Example: $2,345.67
         */

        NumberSymbol[NumberSymbol["CurrencyGroup"] = 13] = "CurrencyGroup";
      })(NumberSymbol || (NumberSymbol = {}));
      /**
       * The value for each day of the week, based on the `en-US` locale
       *
       * @publicApi
       */


      var WeekDay;

      (function (WeekDay) {
        WeekDay[WeekDay["Sunday"] = 0] = "Sunday";
        WeekDay[WeekDay["Monday"] = 1] = "Monday";
        WeekDay[WeekDay["Tuesday"] = 2] = "Tuesday";
        WeekDay[WeekDay["Wednesday"] = 3] = "Wednesday";
        WeekDay[WeekDay["Thursday"] = 4] = "Thursday";
        WeekDay[WeekDay["Friday"] = 5] = "Friday";
        WeekDay[WeekDay["Saturday"] = 6] = "Saturday";
      })(WeekDay || (WeekDay = {}));
      /**
       * Retrieves the locale ID from the currently loaded locale.
       * The loaded locale could be, for example, a global one rather than a regional one.
       * @param locale A locale code, such as `fr-FR`.
       * @returns The locale code. For example, `fr`.
       * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
       *
       * @publicApi
       */


      function getLocaleId(locale) {
        return Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])(locale)[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].LocaleId];
      }
      /**
       * Retrieves day period strings for the given locale.
       *
       * @param locale A locale code for the locale format rules to use.
       * @param formStyle The required grammatical form.
       * @param width The required character width.
       * @returns An array of localized period strings. For example, `[AM, PM]` for `en-US`.
       * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
       *
       * @publicApi
       */


      function getLocaleDayPeriods(locale, formStyle, width) {
        var data = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])(locale);
        var amPmData = [data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].DayPeriodsFormat], data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].DayPeriodsStandalone]];
        var amPm = getLastDefinedValue(amPmData, formStyle);
        return getLastDefinedValue(amPm, width);
      }
      /**
       * Retrieves days of the week for the given locale, using the Gregorian calendar.
       *
       * @param locale A locale code for the locale format rules to use.
       * @param formStyle The required grammatical form.
       * @param width The required character width.
       * @returns An array of localized name strings.
       * For example,`[Sunday, Monday, ... Saturday]` for `en-US`.
       * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
       *
       * @publicApi
       */


      function getLocaleDayNames(locale, formStyle, width) {
        var data = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])(locale);
        var daysData = [data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].DaysFormat], data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].DaysStandalone]];
        var days = getLastDefinedValue(daysData, formStyle);
        return getLastDefinedValue(days, width);
      }
      /**
       * Retrieves months of the year for the given locale, using the Gregorian calendar.
       *
       * @param locale A locale code for the locale format rules to use.
       * @param formStyle The required grammatical form.
       * @param width The required character width.
       * @returns An array of localized name strings.
       * For example,  `[January, February, ...]` for `en-US`.
       * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
       *
       * @publicApi
       */


      function getLocaleMonthNames(locale, formStyle, width) {
        var data = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])(locale);
        var monthsData = [data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].MonthsFormat], data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].MonthsStandalone]];
        var months = getLastDefinedValue(monthsData, formStyle);
        return getLastDefinedValue(months, width);
      }
      /**
       * Retrieves Gregorian-calendar eras for the given locale.
       * @param locale A locale code for the locale format rules to use.
       * @param width The required character width.
      
       * @returns An array of localized era strings.
       * For example, `[AD, BC]` for `en-US`.
       * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
       *
       * @publicApi
       */


      function getLocaleEraNames(locale, width) {
        var data = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])(locale);
        var erasData = data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].Eras];
        return getLastDefinedValue(erasData, width);
      }
      /**
       * Retrieves the first day of the week for the given locale.
       *
       * @param locale A locale code for the locale format rules to use.
       * @returns A day index number, using the 0-based week-day index for `en-US`
       * (Sunday = 0, Monday = 1, ...).
       * For example, for `fr-FR`, returns 1 to indicate that the first day is Monday.
       * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
       *
       * @publicApi
       */


      function getLocaleFirstDayOfWeek(locale) {
        var data = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])(locale);
        return data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].FirstDayOfWeek];
      }
      /**
       * Range of week days that are considered the week-end for the given locale.
       *
       * @param locale A locale code for the locale format rules to use.
       * @returns The range of day values, `[startDay, endDay]`.
       * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
       *
       * @publicApi
       */


      function getLocaleWeekEndRange(locale) {
        var data = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])(locale);
        return data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].WeekendRange];
      }
      /**
       * Retrieves a localized date-value formating string.
       *
       * @param locale A locale code for the locale format rules to use.
       * @param width The format type.
       * @returns The localized formating string.
       * @see `FormatWidth`
       * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
       *
       * @publicApi
       */


      function getLocaleDateFormat(locale, width) {
        var data = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])(locale);
        return getLastDefinedValue(data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].DateFormat], width);
      }
      /**
       * Retrieves a localized time-value formatting string.
       *
       * @param locale A locale code for the locale format rules to use.
       * @param width The format type.
       * @returns The localized formatting string.
       * @see `FormatWidth`
       * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
      
       * @publicApi
       */


      function getLocaleTimeFormat(locale, width) {
        var data = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])(locale);
        return getLastDefinedValue(data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].TimeFormat], width);
      }
      /**
       * Retrieves a localized date-time formatting string.
       *
       * @param locale A locale code for the locale format rules to use.
       * @param width The format type.
       * @returns The localized formatting string.
       * @see `FormatWidth`
       * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
       *
       * @publicApi
       */


      function getLocaleDateTimeFormat(locale, width) {
        var data = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])(locale);
        var dateTimeFormatData = data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].DateTimeFormat];
        return getLastDefinedValue(dateTimeFormatData, width);
      }
      /**
       * Retrieves a localized number symbol that can be used to replace placeholders in number formats.
       * @param locale The locale code.
       * @param symbol The symbol to localize.
       * @returns The character for the localized symbol.
       * @see `NumberSymbol`
       * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
       *
       * @publicApi
       */


      function getLocaleNumberSymbol(locale, symbol) {
        var data = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])(locale);
        var res = data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].NumberSymbols][symbol];

        if (typeof res === 'undefined') {
          if (symbol === NumberSymbol.CurrencyDecimal) {
            return data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].NumberSymbols][NumberSymbol.Decimal];
          } else if (symbol === NumberSymbol.CurrencyGroup) {
            return data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].NumberSymbols][NumberSymbol.Group];
          }
        }

        return res;
      }
      /**
       * Retrieves a number format for a given locale.
       *
       * Numbers are formatted using patterns, like `#,###.00`. For example, the pattern `#,###.00`
       * when used to format the number 12345.678 could result in "12'345,678". That would happen if the
       * grouping separator for your language is an apostrophe, and the decimal separator is a comma.
       *
       * <b>Important:</b> The characters `.` `,` `0` `#` (and others below) are special placeholders
       * that stand for the decimal separator, and so on, and are NOT real characters.
       * You must NOT "translate" the placeholders. For example, don't change `.` to `,` even though in
       * your language the decimal point is written with a comma. The symbols should be replaced by the
       * local equivalents, using the appropriate `NumberSymbol` for your language.
       *
       * Here are the special characters used in number patterns:
       *
       * | Symbol | Meaning |
       * |--------|---------|
       * | . | Replaced automatically by the character used for the decimal point. |
       * | , | Replaced by the "grouping" (thousands) separator. |
       * | 0 | Replaced by a digit (or zero if there aren't enough digits). |
       * | # | Replaced by a digit (or nothing if there aren't enough). |
       * | ¤ | Replaced by a currency symbol, such as $ or USD. |
       * | % | Marks a percent format. The % symbol may change position, but must be retained. |
       * | E | Marks a scientific format. The E symbol may change position, but must be retained. |
       * | ' | Special characters used as literal characters are quoted with ASCII single quotes. |
       *
       * @param locale A locale code for the locale format rules to use.
       * @param type The type of numeric value to be formatted (such as `Decimal` or `Currency`.)
       * @returns The localized format string.
       * @see `NumberFormatStyle`
       * @see [CLDR website](http://cldr.unicode.org/translation/number-patterns)
       * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
       *
       * @publicApi
       */


      function getLocaleNumberFormat(locale, type) {
        var data = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])(locale);
        return data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].NumberFormats][type];
      }
      /**
       * Retrieves the symbol used to represent the currency for the main country
       * corresponding to a given locale. For example, '$' for `en-US`.
       *
       * @param locale A locale code for the locale format rules to use.
       * @returns The localized symbol character,
       * or `null` if the main country cannot be determined.
       * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
       *
       * @publicApi
       */


      function getLocaleCurrencySymbol(locale) {
        var data = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])(locale);
        return data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].CurrencySymbol] || null;
      }
      /**
       * Retrieves the name of the currency for the main country corresponding
       * to a given locale. For example, 'US Dollar' for `en-US`.
       * @param locale A locale code for the locale format rules to use.
       * @returns The currency name,
       * or `null` if the main country cannot be determined.
       * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
       *
       * @publicApi
       */


      function getLocaleCurrencyName(locale) {
        var data = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])(locale);
        return data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].CurrencyName] || null;
      }
      /**
       * Retrieves the default currency code for the given locale.
       *
       * The default is defined as the first currency which is still in use.
       *
       * @param locale The code of the locale whose currency code we want.
       * @returns The code of the default currency for the given locale.
       *
       * @publicApi
       */


      function getLocaleCurrencyCode(locale) {
        return Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵgetLocaleCurrencyCode"])(locale);
      }
      /**
       * Retrieves the currency values for a given locale.
       * @param locale A locale code for the locale format rules to use.
       * @returns The currency values.
       * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
       */


      function getLocaleCurrencies(locale) {
        var data = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])(locale);
        return data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].Currencies];
      }
      /**
       * @alias core/ɵgetLocalePluralCase
       * @publicApi
       */


      var getLocalePluralCase = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵgetLocalePluralCase"];

      function checkFullData(data) {
        if (!data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].ExtraData]) {
          throw new Error("Missing extra locale data for the locale \"".concat(data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].LocaleId], "\". Use \"registerLocaleData\" to load new data. See the \"I18n guide\" on angular.io to know more."));
        }
      }
      /**
       * Retrieves locale-specific rules used to determine which day period to use
       * when more than one period is defined for a locale.
       *
       * There is a rule for each defined day period. The
       * first rule is applied to the first day period and so on.
       * Fall back to AM/PM when no rules are available.
       *
       * A rule can specify a period as time range, or as a single time value.
       *
       * This functionality is only available when you have loaded the full locale data.
       * See the ["I18n guide"](guide/i18n#i18n-pipes).
       *
       * @param locale A locale code for the locale format rules to use.
       * @returns The rules for the locale, a single time value or array of *from-time, to-time*,
       * or null if no periods are available.
       *
       * @see `getLocaleExtraDayPeriods()`
       * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
       *
       * @publicApi
       */


      function getLocaleExtraDayPeriodRules(locale) {
        var data = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])(locale);
        checkFullData(data);
        var rules = data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].ExtraData][2
        /* ExtraDayPeriodsRules */
        ] || [];
        return rules.map(function (rule) {
          if (typeof rule === 'string') {
            return extractTime(rule);
          }

          return [extractTime(rule[0]), extractTime(rule[1])];
        });
      }
      /**
       * Retrieves locale-specific day periods, which indicate roughly how a day is broken up
       * in different languages.
       * For example, for `en-US`, periods are morning, noon, afternoon, evening, and midnight.
       *
       * This functionality is only available when you have loaded the full locale data.
       * See the ["I18n guide"](guide/i18n#i18n-pipes).
       *
       * @param locale A locale code for the locale format rules to use.
       * @param formStyle The required grammatical form.
       * @param width The required character width.
       * @returns The translated day-period strings.
       * @see `getLocaleExtraDayPeriodRules()`
       * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
       *
       * @publicApi
       */


      function getLocaleExtraDayPeriods(locale, formStyle, width) {
        var data = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])(locale);
        checkFullData(data);
        var dayPeriodsData = [data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].ExtraData][0
        /* ExtraDayPeriodFormats */
        ], data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].ExtraData][1
        /* ExtraDayPeriodStandalone */
        ]];
        var dayPeriods = getLastDefinedValue(dayPeriodsData, formStyle) || [];
        return getLastDefinedValue(dayPeriods, width) || [];
      }
      /**
       * Retrieves the writing direction of a specified locale
       * @param locale A locale code for the locale format rules to use.
       * @publicApi
       * @returns 'rtl' or 'ltr'
       * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
       */


      function getLocaleDirection(locale) {
        var data = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])(locale);
        return data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].Directionality];
      }
      /**
       * Retrieves the first value that is defined in an array, going backwards from an index position.
       *
       * To avoid repeating the same data (as when the "format" and "standalone" forms are the same)
       * add the first value to the locale data arrays, and add other values only if they are different.
       *
       * @param data The data array to retrieve from.
       * @param index A 0-based index into the array to start from.
       * @returns The value immediately before the given index position.
       * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
       *
       * @publicApi
       */


      function getLastDefinedValue(data, index) {
        for (var i = index; i > -1; i--) {
          if (typeof data[i] !== 'undefined') {
            return data[i];
          }
        }

        throw new Error('Locale data API: locale data undefined');
      }
      /**
       * Extracts the hours and minutes from a string like "15:45"
       */


      function extractTime(time) {
        var _time$split = time.split(':'),
            _time$split2 = _slicedToArray(_time$split, 2),
            h = _time$split2[0],
            m = _time$split2[1];

        return {
          hours: +h,
          minutes: +m
        };
      }
      /**
       * Retrieves the currency symbol for a given currency code.
       *
       * For example, for the default `en-US` locale, the code `USD` can
       * be represented by the narrow symbol `$` or the wide symbol `US$`.
       *
       * @param code The currency code.
       * @param format The format, `wide` or `narrow`.
       * @param locale A locale code for the locale format rules to use.
       *
       * @returns The symbol, or the currency code if no symbol is available.
       * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
       *
       * @publicApi
       */


      function getCurrencySymbol(code, format) {
        var locale = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'en';
        var currency = getLocaleCurrencies(locale)[code] || CURRENCIES_EN[code] || [];
        var symbolNarrow = currency[1
        /* SymbolNarrow */
        ];

        if (format === 'narrow' && typeof symbolNarrow === 'string') {
          return symbolNarrow;
        }

        return currency[0
        /* Symbol */
        ] || code;
      } // Most currencies have cents, that's why the default is 2


      var DEFAULT_NB_OF_CURRENCY_DIGITS = 2;
      /**
       * Reports the number of decimal digits for a given currency.
       * The value depends upon the presence of cents in that particular currency.
       *
       * @param code The currency code.
       * @returns The number of decimal digits, typically 0 or 2.
       * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
       *
       * @publicApi
       */

      function getNumberOfCurrencyDigits(code) {
        var digits;
        var currency = CURRENCIES_EN[code];

        if (currency) {
          digits = currency[2
          /* NbOfDigits */
          ];
        }

        return typeof digits === 'number' ? digits : DEFAULT_NB_OF_CURRENCY_DIGITS;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var ISO8601_DATE_REGEX = /^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/; //    1        2       3         4          5          6          7          8  9     10      11

      var NAMED_FORMATS = {};
      var DATE_FORMATS_SPLIT = /((?:[^GyYMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;
      var ZoneWidth;

      (function (ZoneWidth) {
        ZoneWidth[ZoneWidth["Short"] = 0] = "Short";
        ZoneWidth[ZoneWidth["ShortGMT"] = 1] = "ShortGMT";
        ZoneWidth[ZoneWidth["Long"] = 2] = "Long";
        ZoneWidth[ZoneWidth["Extended"] = 3] = "Extended";
      })(ZoneWidth || (ZoneWidth = {}));

      var DateType;

      (function (DateType) {
        DateType[DateType["FullYear"] = 0] = "FullYear";
        DateType[DateType["Month"] = 1] = "Month";
        DateType[DateType["Date"] = 2] = "Date";
        DateType[DateType["Hours"] = 3] = "Hours";
        DateType[DateType["Minutes"] = 4] = "Minutes";
        DateType[DateType["Seconds"] = 5] = "Seconds";
        DateType[DateType["FractionalSeconds"] = 6] = "FractionalSeconds";
        DateType[DateType["Day"] = 7] = "Day";
      })(DateType || (DateType = {}));

      var TranslationType;

      (function (TranslationType) {
        TranslationType[TranslationType["DayPeriods"] = 0] = "DayPeriods";
        TranslationType[TranslationType["Days"] = 1] = "Days";
        TranslationType[TranslationType["Months"] = 2] = "Months";
        TranslationType[TranslationType["Eras"] = 3] = "Eras";
      })(TranslationType || (TranslationType = {}));
      /**
       * @ngModule CommonModule
       * @description
       *
       * Formats a date according to locale rules.
       *
       * @param value The date to format, as a Date, or a number (milliseconds since UTC epoch)
       * or an [ISO date-time string](https://www.w3.org/TR/NOTE-datetime).
       * @param format The date-time components to include. See `DatePipe` for details.
       * @param locale A locale code for the locale format rules to use.
       * @param timezone The time zone. A time zone offset from GMT (such as `'+0430'`),
       * or a standard UTC/GMT or continental US time zone abbreviation.
       * If not specified, uses host system settings.
       *
       * @returns The formatted date string.
       *
       * @see `DatePipe`
       * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
       *
       * @publicApi
       */


      function formatDate(value, format, locale, timezone) {
        var date = toDate(value);
        var namedFormat = getNamedFormat(locale, format);
        format = namedFormat || format;
        var parts = [];
        var match;

        while (format) {
          match = DATE_FORMATS_SPLIT.exec(format);

          if (match) {
            parts = parts.concat(match.slice(1));
            var part = parts.pop();

            if (!part) {
              break;
            }

            format = part;
          } else {
            parts.push(format);
            break;
          }
        }

        var dateTimezoneOffset = date.getTimezoneOffset();

        if (timezone) {
          dateTimezoneOffset = timezoneToOffset(timezone, dateTimezoneOffset);
          date = convertTimezoneToLocal(date, timezone, true);
        }

        var text = '';
        parts.forEach(function (value) {
          var dateFormatter = getDateFormatter(value);
          text += dateFormatter ? dateFormatter(date, locale, dateTimezoneOffset) : value === '\'\'' ? '\'' : value.replace(/(^'|'$)/g, '').replace(/''/g, '\'');
        });
        return text;
      }

      function getNamedFormat(locale, format) {
        var localeId = getLocaleId(locale);
        NAMED_FORMATS[localeId] = NAMED_FORMATS[localeId] || {};

        if (NAMED_FORMATS[localeId][format]) {
          return NAMED_FORMATS[localeId][format];
        }

        var formatValue = '';

        switch (format) {
          case 'shortDate':
            formatValue = getLocaleDateFormat(locale, FormatWidth.Short);
            break;

          case 'mediumDate':
            formatValue = getLocaleDateFormat(locale, FormatWidth.Medium);
            break;

          case 'longDate':
            formatValue = getLocaleDateFormat(locale, FormatWidth.Long);
            break;

          case 'fullDate':
            formatValue = getLocaleDateFormat(locale, FormatWidth.Full);
            break;

          case 'shortTime':
            formatValue = getLocaleTimeFormat(locale, FormatWidth.Short);
            break;

          case 'mediumTime':
            formatValue = getLocaleTimeFormat(locale, FormatWidth.Medium);
            break;

          case 'longTime':
            formatValue = getLocaleTimeFormat(locale, FormatWidth.Long);
            break;

          case 'fullTime':
            formatValue = getLocaleTimeFormat(locale, FormatWidth.Full);
            break;

          case 'short':
            var shortTime = getNamedFormat(locale, 'shortTime');
            var shortDate = getNamedFormat(locale, 'shortDate');
            formatValue = formatDateTime(getLocaleDateTimeFormat(locale, FormatWidth.Short), [shortTime, shortDate]);
            break;

          case 'medium':
            var mediumTime = getNamedFormat(locale, 'mediumTime');
            var mediumDate = getNamedFormat(locale, 'mediumDate');
            formatValue = formatDateTime(getLocaleDateTimeFormat(locale, FormatWidth.Medium), [mediumTime, mediumDate]);
            break;

          case 'long':
            var longTime = getNamedFormat(locale, 'longTime');
            var longDate = getNamedFormat(locale, 'longDate');
            formatValue = formatDateTime(getLocaleDateTimeFormat(locale, FormatWidth.Long), [longTime, longDate]);
            break;

          case 'full':
            var fullTime = getNamedFormat(locale, 'fullTime');
            var fullDate = getNamedFormat(locale, 'fullDate');
            formatValue = formatDateTime(getLocaleDateTimeFormat(locale, FormatWidth.Full), [fullTime, fullDate]);
            break;
        }

        if (formatValue) {
          NAMED_FORMATS[localeId][format] = formatValue;
        }

        return formatValue;
      }

      function formatDateTime(str, opt_values) {
        if (opt_values) {
          str = str.replace(/\{([^}]+)}/g, function (match, key) {
            return opt_values != null && key in opt_values ? opt_values[key] : match;
          });
        }

        return str;
      }

      function padNumber(num, digits) {
        var minusSign = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '-';
        var trim = arguments.length > 3 ? arguments[3] : undefined;
        var negWrap = arguments.length > 4 ? arguments[4] : undefined;
        var neg = '';

        if (num < 0 || negWrap && num <= 0) {
          if (negWrap) {
            num = -num + 1;
          } else {
            num = -num;
            neg = minusSign;
          }
        }

        var strNum = String(num);

        while (strNum.length < digits) {
          strNum = '0' + strNum;
        }

        if (trim) {
          strNum = strNum.substr(strNum.length - digits);
        }

        return neg + strNum;
      }

      function formatFractionalSeconds(milliseconds, digits) {
        var strMs = padNumber(milliseconds, 3);
        return strMs.substr(0, digits);
      }
      /**
       * Returns a date formatter that transforms a date into its locale digit representation
       */


      function dateGetter(name, size) {
        var offset = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
        var trim = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
        var negWrap = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
        return function (date, locale) {
          var part = getDatePart(name, date);

          if (offset > 0 || part > -offset) {
            part += offset;
          }

          if (name === DateType.Hours) {
            if (part === 0 && offset === -12) {
              part = 12;
            }
          } else if (name === DateType.FractionalSeconds) {
            return formatFractionalSeconds(part, size);
          }

          var localeMinus = getLocaleNumberSymbol(locale, NumberSymbol.MinusSign);
          return padNumber(part, size, localeMinus, trim, negWrap);
        };
      }

      function getDatePart(part, date) {
        switch (part) {
          case DateType.FullYear:
            return date.getFullYear();

          case DateType.Month:
            return date.getMonth();

          case DateType.Date:
            return date.getDate();

          case DateType.Hours:
            return date.getHours();

          case DateType.Minutes:
            return date.getMinutes();

          case DateType.Seconds:
            return date.getSeconds();

          case DateType.FractionalSeconds:
            return date.getMilliseconds();

          case DateType.Day:
            return date.getDay();

          default:
            throw new Error("Unknown DateType value \"".concat(part, "\"."));
        }
      }
      /**
       * Returns a date formatter that transforms a date into its locale string representation
       */


      function dateStrGetter(name, width) {
        var form = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : FormStyle.Format;
        var extended = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
        return function (date, locale) {
          return getDateTranslation(date, locale, name, width, form, extended);
        };
      }
      /**
       * Returns the locale translation of a date for a given form, type and width
       */


      function getDateTranslation(date, locale, name, width, form, extended) {
        switch (name) {
          case TranslationType.Months:
            return getLocaleMonthNames(locale, form, width)[date.getMonth()];

          case TranslationType.Days:
            return getLocaleDayNames(locale, form, width)[date.getDay()];

          case TranslationType.DayPeriods:
            var currentHours = date.getHours();
            var currentMinutes = date.getMinutes();

            if (extended) {
              var rules = getLocaleExtraDayPeriodRules(locale);
              var dayPeriods = getLocaleExtraDayPeriods(locale, form, width);
              var index = rules.findIndex(function (rule) {
                if (Array.isArray(rule)) {
                  // morning, afternoon, evening, night
                  var _rule = _slicedToArray(rule, 2),
                      from = _rule[0],
                      to = _rule[1];

                  var afterFrom = currentHours >= from.hours && currentMinutes >= from.minutes;
                  var beforeTo = currentHours < to.hours || currentHours === to.hours && currentMinutes < to.minutes; // We must account for normal rules that span a period during the day (e.g. 6am-9am)
                  // where `from` is less (earlier) than `to`. But also rules that span midnight (e.g.
                  // 10pm - 5am) where `from` is greater (later!) than `to`.
                  //
                  // In the first case the current time must be BOTH after `from` AND before `to`
                  // (e.g. 8am is after 6am AND before 10am).
                  //
                  // In the second case the current time must be EITHER after `from` OR before `to`
                  // (e.g. 4am is before 5am but not after 10pm; and 11pm is not before 5am but it is
                  // after 10pm).

                  if (from.hours < to.hours) {
                    if (afterFrom && beforeTo) {
                      return true;
                    }
                  } else if (afterFrom || beforeTo) {
                    return true;
                  }
                } else {
                  // noon or midnight
                  if (rule.hours === currentHours && rule.minutes === currentMinutes) {
                    return true;
                  }
                }

                return false;
              });

              if (index !== -1) {
                return dayPeriods[index];
              }
            } // if no rules for the day periods, we use am/pm by default


            return getLocaleDayPeriods(locale, form, width)[currentHours < 12 ? 0 : 1];

          case TranslationType.Eras:
            return getLocaleEraNames(locale, width)[date.getFullYear() <= 0 ? 0 : 1];

          default:
            // This default case is not needed by TypeScript compiler, as the switch is exhaustive.
            // However Closure Compiler does not understand that and reports an error in typed mode.
            // The `throw new Error` below works around the problem, and the unexpected: never variable
            // makes sure tsc still checks this code is unreachable.
            var unexpected = name;
            throw new Error("unexpected translation type ".concat(unexpected));
        }
      }
      /**
       * Returns a date formatter that transforms a date and an offset into a timezone with ISO8601 or
       * GMT format depending on the width (eg: short = +0430, short:GMT = GMT+4, long = GMT+04:30,
       * extended = +04:30)
       */


      function timeZoneGetter(width) {
        return function (date, locale, offset) {
          var zone = -1 * offset;
          var minusSign = getLocaleNumberSymbol(locale, NumberSymbol.MinusSign);
          var hours = zone > 0 ? Math.floor(zone / 60) : Math.ceil(zone / 60);

          switch (width) {
            case ZoneWidth.Short:
              return (zone >= 0 ? '+' : '') + padNumber(hours, 2, minusSign) + padNumber(Math.abs(zone % 60), 2, minusSign);

            case ZoneWidth.ShortGMT:
              return 'GMT' + (zone >= 0 ? '+' : '') + padNumber(hours, 1, minusSign);

            case ZoneWidth.Long:
              return 'GMT' + (zone >= 0 ? '+' : '') + padNumber(hours, 2, minusSign) + ':' + padNumber(Math.abs(zone % 60), 2, minusSign);

            case ZoneWidth.Extended:
              if (offset === 0) {
                return 'Z';
              } else {
                return (zone >= 0 ? '+' : '') + padNumber(hours, 2, minusSign) + ':' + padNumber(Math.abs(zone % 60), 2, minusSign);
              }

            default:
              throw new Error("Unknown zone width \"".concat(width, "\""));
          }
        };
      }

      var JANUARY = 0;
      var THURSDAY = 4;

      function getFirstThursdayOfYear(year) {
        var firstDayOfYear = new Date(year, JANUARY, 1).getDay();
        return new Date(year, 0, 1 + (firstDayOfYear <= THURSDAY ? THURSDAY : THURSDAY + 7) - firstDayOfYear);
      }

      function getThursdayThisWeek(datetime) {
        return new Date(datetime.getFullYear(), datetime.getMonth(), datetime.getDate() + (THURSDAY - datetime.getDay()));
      }

      function weekGetter(size) {
        var monthBased = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
        return function (date, locale) {
          var result;

          if (monthBased) {
            var nbDaysBefore1stDayOfMonth = new Date(date.getFullYear(), date.getMonth(), 1).getDay() - 1;
            var today = date.getDate();
            result = 1 + Math.floor((today + nbDaysBefore1stDayOfMonth) / 7);
          } else {
            var thisThurs = getThursdayThisWeek(date); // Some days of a year are part of next year according to ISO 8601.
            // Compute the firstThurs from the year of this week's Thursday

            var firstThurs = getFirstThursdayOfYear(thisThurs.getFullYear());
            var diff = thisThurs.getTime() - firstThurs.getTime();
            result = 1 + Math.round(diff / 6.048e8); // 6.048e8 ms per week
          }

          return padNumber(result, size, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign));
        };
      }
      /**
       * Returns a date formatter that provides the week-numbering year for the input date.
       */


      function weekNumberingYearGetter(size) {
        var trim = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
        return function (date, locale) {
          var thisThurs = getThursdayThisWeek(date);
          var weekNumberingYear = thisThurs.getFullYear();
          return padNumber(weekNumberingYear, size, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign), trim);
        };
      }

      var DATE_FORMATS = {}; // Based on CLDR formats:
      // See complete list: http://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
      // See also explanations: http://cldr.unicode.org/translation/date-time
      // TODO(ocombe): support all missing cldr formats: Y, U, Q, D, F, e, c, j, J, C, A, v, V, X, x

      function getDateFormatter(format) {
        if (DATE_FORMATS[format]) {
          return DATE_FORMATS[format];
        }

        var formatter;

        switch (format) {
          // Era name (AD/BC)
          case 'G':
          case 'GG':
          case 'GGG':
            formatter = dateStrGetter(TranslationType.Eras, TranslationWidth.Abbreviated);
            break;

          case 'GGGG':
            formatter = dateStrGetter(TranslationType.Eras, TranslationWidth.Wide);
            break;

          case 'GGGGG':
            formatter = dateStrGetter(TranslationType.Eras, TranslationWidth.Narrow);
            break;
          // 1 digit representation of the year, e.g. (AD 1 => 1, AD 199 => 199)

          case 'y':
            formatter = dateGetter(DateType.FullYear, 1, 0, false, true);
            break;
          // 2 digit representation of the year, padded (00-99). (e.g. AD 2001 => 01, AD 2010 => 10)

          case 'yy':
            formatter = dateGetter(DateType.FullYear, 2, 0, true, true);
            break;
          // 3 digit representation of the year, padded (000-999). (e.g. AD 2001 => 01, AD 2010 => 10)

          case 'yyy':
            formatter = dateGetter(DateType.FullYear, 3, 0, false, true);
            break;
          // 4 digit representation of the year (e.g. AD 1 => 0001, AD 2010 => 2010)

          case 'yyyy':
            formatter = dateGetter(DateType.FullYear, 4, 0, false, true);
            break;
          // 1 digit representation of the week-numbering year, e.g. (AD 1 => 1, AD 199 => 199)

          case 'Y':
            formatter = weekNumberingYearGetter(1);
            break;
          // 2 digit representation of the week-numbering year, padded (00-99). (e.g. AD 2001 => 01, AD
          // 2010 => 10)

          case 'YY':
            formatter = weekNumberingYearGetter(2, true);
            break;
          // 3 digit representation of the week-numbering year, padded (000-999). (e.g. AD 1 => 001, AD
          // 2010 => 2010)

          case 'YYY':
            formatter = weekNumberingYearGetter(3);
            break;
          // 4 digit representation of the week-numbering year (e.g. AD 1 => 0001, AD 2010 => 2010)

          case 'YYYY':
            formatter = weekNumberingYearGetter(4);
            break;
          // Month of the year (1-12), numeric

          case 'M':
          case 'L':
            formatter = dateGetter(DateType.Month, 1, 1);
            break;

          case 'MM':
          case 'LL':
            formatter = dateGetter(DateType.Month, 2, 1);
            break;
          // Month of the year (January, ...), string, format

          case 'MMM':
            formatter = dateStrGetter(TranslationType.Months, TranslationWidth.Abbreviated);
            break;

          case 'MMMM':
            formatter = dateStrGetter(TranslationType.Months, TranslationWidth.Wide);
            break;

          case 'MMMMM':
            formatter = dateStrGetter(TranslationType.Months, TranslationWidth.Narrow);
            break;
          // Month of the year (January, ...), string, standalone

          case 'LLL':
            formatter = dateStrGetter(TranslationType.Months, TranslationWidth.Abbreviated, FormStyle.Standalone);
            break;

          case 'LLLL':
            formatter = dateStrGetter(TranslationType.Months, TranslationWidth.Wide, FormStyle.Standalone);
            break;

          case 'LLLLL':
            formatter = dateStrGetter(TranslationType.Months, TranslationWidth.Narrow, FormStyle.Standalone);
            break;
          // Week of the year (1, ... 52)

          case 'w':
            formatter = weekGetter(1);
            break;

          case 'ww':
            formatter = weekGetter(2);
            break;
          // Week of the month (1, ...)

          case 'W':
            formatter = weekGetter(1, true);
            break;
          // Day of the month (1-31)

          case 'd':
            formatter = dateGetter(DateType.Date, 1);
            break;

          case 'dd':
            formatter = dateGetter(DateType.Date, 2);
            break;
          // Day of the Week

          case 'E':
          case 'EE':
          case 'EEE':
            formatter = dateStrGetter(TranslationType.Days, TranslationWidth.Abbreviated);
            break;

          case 'EEEE':
            formatter = dateStrGetter(TranslationType.Days, TranslationWidth.Wide);
            break;

          case 'EEEEE':
            formatter = dateStrGetter(TranslationType.Days, TranslationWidth.Narrow);
            break;

          case 'EEEEEE':
            formatter = dateStrGetter(TranslationType.Days, TranslationWidth.Short);
            break;
          // Generic period of the day (am-pm)

          case 'a':
          case 'aa':
          case 'aaa':
            formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Abbreviated);
            break;

          case 'aaaa':
            formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Wide);
            break;

          case 'aaaaa':
            formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Narrow);
            break;
          // Extended period of the day (midnight, at night, ...), standalone

          case 'b':
          case 'bb':
          case 'bbb':
            formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Abbreviated, FormStyle.Standalone, true);
            break;

          case 'bbbb':
            formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Wide, FormStyle.Standalone, true);
            break;

          case 'bbbbb':
            formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Narrow, FormStyle.Standalone, true);
            break;
          // Extended period of the day (midnight, night, ...), standalone

          case 'B':
          case 'BB':
          case 'BBB':
            formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Abbreviated, FormStyle.Format, true);
            break;

          case 'BBBB':
            formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Wide, FormStyle.Format, true);
            break;

          case 'BBBBB':
            formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Narrow, FormStyle.Format, true);
            break;
          // Hour in AM/PM, (1-12)

          case 'h':
            formatter = dateGetter(DateType.Hours, 1, -12);
            break;

          case 'hh':
            formatter = dateGetter(DateType.Hours, 2, -12);
            break;
          // Hour of the day (0-23)

          case 'H':
            formatter = dateGetter(DateType.Hours, 1);
            break;
          // Hour in day, padded (00-23)

          case 'HH':
            formatter = dateGetter(DateType.Hours, 2);
            break;
          // Minute of the hour (0-59)

          case 'm':
            formatter = dateGetter(DateType.Minutes, 1);
            break;

          case 'mm':
            formatter = dateGetter(DateType.Minutes, 2);
            break;
          // Second of the minute (0-59)

          case 's':
            formatter = dateGetter(DateType.Seconds, 1);
            break;

          case 'ss':
            formatter = dateGetter(DateType.Seconds, 2);
            break;
          // Fractional second

          case 'S':
            formatter = dateGetter(DateType.FractionalSeconds, 1);
            break;

          case 'SS':
            formatter = dateGetter(DateType.FractionalSeconds, 2);
            break;

          case 'SSS':
            formatter = dateGetter(DateType.FractionalSeconds, 3);
            break;
          // Timezone ISO8601 short format (-0430)

          case 'Z':
          case 'ZZ':
          case 'ZZZ':
            formatter = timeZoneGetter(ZoneWidth.Short);
            break;
          // Timezone ISO8601 extended format (-04:30)

          case 'ZZZZZ':
            formatter = timeZoneGetter(ZoneWidth.Extended);
            break;
          // Timezone GMT short format (GMT+4)

          case 'O':
          case 'OO':
          case 'OOO': // Should be location, but fallback to format O instead because we don't have the data yet

          case 'z':
          case 'zz':
          case 'zzz':
            formatter = timeZoneGetter(ZoneWidth.ShortGMT);
            break;
          // Timezone GMT long format (GMT+0430)

          case 'OOOO':
          case 'ZZZZ': // Should be location, but fallback to format O instead because we don't have the data yet

          case 'zzzz':
            formatter = timeZoneGetter(ZoneWidth.Long);
            break;

          default:
            return null;
        }

        DATE_FORMATS[format] = formatter;
        return formatter;
      }

      function timezoneToOffset(timezone, fallback) {
        // Support: IE 11 only, Edge 13-15+
        // IE/Edge do not "understand" colon (`:`) in timezone
        timezone = timezone.replace(/:/g, '');
        var requestedTimezoneOffset = Date.parse('Jan 01, 1970 00:00:00 ' + timezone) / 60000;
        return isNaN(requestedTimezoneOffset) ? fallback : requestedTimezoneOffset;
      }

      function addDateMinutes(date, minutes) {
        date = new Date(date.getTime());
        date.setMinutes(date.getMinutes() + minutes);
        return date;
      }

      function convertTimezoneToLocal(date, timezone, reverse) {
        var reverseValue = reverse ? -1 : 1;
        var dateTimezoneOffset = date.getTimezoneOffset();
        var timezoneOffset = timezoneToOffset(timezone, dateTimezoneOffset);
        return addDateMinutes(date, reverseValue * (timezoneOffset - dateTimezoneOffset));
      }
      /**
       * Converts a value to date.
       *
       * Supported input formats:
       * - `Date`
       * - number: timestamp
       * - string: numeric (e.g. "1234"), ISO and date strings in a format supported by
       *   [Date.parse()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/parse).
       *   Note: ISO strings without time return a date without timeoffset.
       *
       * Throws if unable to convert to a date.
       */


      function toDate(value) {
        if (isDate(value)) {
          return value;
        }

        if (typeof value === 'number' && !isNaN(value)) {
          return new Date(value);
        }

        if (typeof value === 'string') {
          value = value.trim();
          var parsedNb = parseFloat(value); // any string that only contains numbers, like "1234" but not like "1234hello"

          if (!isNaN(value - parsedNb)) {
            return new Date(parsedNb);
          }

          if (/^(\d{4}-\d{1,2}-\d{1,2})$/.test(value)) {
            /* For ISO Strings without time the day, month and year must be extracted from the ISO String
            before Date creation to avoid time offset and errors in the new Date.
            If we only replace '-' with ',' in the ISO String ("2015,01,01"), and try to create a new
            date, some browsers (e.g. IE 9) will throw an invalid Date error.
            If we leave the '-' ("2015-01-01") and try to create a new Date("2015-01-01") the timeoffset
            is applied.
            Note: ISO months are 0 for January, 1 for February, ... */
            var _value$split$map3 = value.split('-').map(function (val) {
              return +val;
            }),
                _value$split$map4 = _slicedToArray(_value$split$map3, 3),
                y = _value$split$map4[0],
                m = _value$split$map4[1],
                d = _value$split$map4[2];

            return new Date(y, m - 1, d);
          }

          var match;

          if (match = value.match(ISO8601_DATE_REGEX)) {
            return isoStringToDate(match);
          }
        }

        var date = new Date(value);

        if (!isDate(date)) {
          throw new Error("Unable to convert \"".concat(value, "\" into a date"));
        }

        return date;
      }
      /**
       * Converts a date in ISO8601 to a Date.
       * Used instead of `Date.parse` because of browser discrepancies.
       */


      function isoStringToDate(match) {
        var date = new Date(0);
        var tzHour = 0;
        var tzMin = 0; // match[8] means that the string contains "Z" (UTC) or a timezone like "+01:00" or "+0100"

        var dateSetter = match[8] ? date.setUTCFullYear : date.setFullYear;
        var timeSetter = match[8] ? date.setUTCHours : date.setHours; // if there is a timezone defined like "+01:00" or "+0100"

        if (match[9]) {
          tzHour = Number(match[9] + match[10]);
          tzMin = Number(match[9] + match[11]);
        }

        dateSetter.call(date, Number(match[1]), Number(match[2]) - 1, Number(match[3]));
        var h = Number(match[4] || 0) - tzHour;
        var m = Number(match[5] || 0) - tzMin;
        var s = Number(match[6] || 0); // The ECMAScript specification (https://www.ecma-international.org/ecma-262/5.1/#sec-15.9.1.11)
        // defines that `DateTime` milliseconds should always be rounded down, so that `999.9ms`
        // becomes `999ms`.

        var ms = Math.floor(parseFloat('0.' + (match[7] || 0)) * 1000);
        timeSetter.call(date, h, m, s, ms);
        return date;
      }

      function isDate(value) {
        return value instanceof Date && !isNaN(value.valueOf());
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var NUMBER_FORMAT_REGEXP = /^(\d+)?\.((\d+)(-(\d+))?)?$/;
      var MAX_DIGITS = 22;
      var DECIMAL_SEP = '.';
      var ZERO_CHAR = '0';
      var PATTERN_SEP = ';';
      var GROUP_SEP = ',';
      var DIGIT_CHAR = '#';
      var CURRENCY_CHAR = '¤';
      var PERCENT_CHAR = '%';
      /**
       * Transforms a number to a locale string based on a style and a format.
       */

      function formatNumberToLocaleString(value, pattern, locale, groupSymbol, decimalSymbol, digitsInfo) {
        var isPercent = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : false;
        var formattedText = '';
        var isZero = false;

        if (!isFinite(value)) {
          formattedText = getLocaleNumberSymbol(locale, NumberSymbol.Infinity);
        } else {
          var parsedNumber = parseNumber(value);

          if (isPercent) {
            parsedNumber = toPercent(parsedNumber);
          }

          var minInt = pattern.minInt;
          var minFraction = pattern.minFrac;
          var maxFraction = pattern.maxFrac;

          if (digitsInfo) {
            var parts = digitsInfo.match(NUMBER_FORMAT_REGEXP);

            if (parts === null) {
              throw new Error("".concat(digitsInfo, " is not a valid digit info"));
            }

            var minIntPart = parts[1];
            var minFractionPart = parts[3];
            var maxFractionPart = parts[5];

            if (minIntPart != null) {
              minInt = parseIntAutoRadix(minIntPart);
            }

            if (minFractionPart != null) {
              minFraction = parseIntAutoRadix(minFractionPart);
            }

            if (maxFractionPart != null) {
              maxFraction = parseIntAutoRadix(maxFractionPart);
            } else if (minFractionPart != null && minFraction > maxFraction) {
              maxFraction = minFraction;
            }
          }

          roundNumber(parsedNumber, minFraction, maxFraction);
          var digits = parsedNumber.digits;
          var integerLen = parsedNumber.integerLen;
          var exponent = parsedNumber.exponent;
          var decimals = [];
          isZero = digits.every(function (d) {
            return !d;
          }); // pad zeros for small numbers

          for (; integerLen < minInt; integerLen++) {
            digits.unshift(0);
          } // pad zeros for small numbers


          for (; integerLen < 0; integerLen++) {
            digits.unshift(0);
          } // extract decimals digits


          if (integerLen > 0) {
            decimals = digits.splice(integerLen, digits.length);
          } else {
            decimals = digits;
            digits = [0];
          } // format the integer digits with grouping separators


          var groups = [];

          if (digits.length >= pattern.lgSize) {
            groups.unshift(digits.splice(-pattern.lgSize, digits.length).join(''));
          }

          while (digits.length > pattern.gSize) {
            groups.unshift(digits.splice(-pattern.gSize, digits.length).join(''));
          }

          if (digits.length) {
            groups.unshift(digits.join(''));
          }

          formattedText = groups.join(getLocaleNumberSymbol(locale, groupSymbol)); // append the decimal digits

          if (decimals.length) {
            formattedText += getLocaleNumberSymbol(locale, decimalSymbol) + decimals.join('');
          }

          if (exponent) {
            formattedText += getLocaleNumberSymbol(locale, NumberSymbol.Exponential) + '+' + exponent;
          }
        }

        if (value < 0 && !isZero) {
          formattedText = pattern.negPre + formattedText + pattern.negSuf;
        } else {
          formattedText = pattern.posPre + formattedText + pattern.posSuf;
        }

        return formattedText;
      }
      /**
       * @ngModule CommonModule
       * @description
       *
       * Formats a number as currency using locale rules.
       *
       * @param value The number to format.
       * @param locale A locale code for the locale format rules to use.
       * @param currency A string containing the currency symbol or its name,
       * such as "$" or "Canadian Dollar". Used in output string, but does not affect the operation
       * of the function.
       * @param currencyCode The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217)
       * currency code, such as `USD` for the US dollar and `EUR` for the euro.
       * Used to determine the number of digits in the decimal part.
       * @param digitInfo Decimal representation options, specified by a string in the following format:
       * `{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}`. See `DecimalPipe` for more details.
       *
       * @returns The formatted currency value.
       *
       * @see `formatNumber()`
       * @see `DecimalPipe`
       * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
       *
       * @publicApi
       */


      function formatCurrency(value, locale, currency, currencyCode, digitsInfo) {
        var format = getLocaleNumberFormat(locale, NumberFormatStyle.Currency);
        var pattern = parseNumberFormat(format, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign));
        pattern.minFrac = getNumberOfCurrencyDigits(currencyCode);
        pattern.maxFrac = pattern.minFrac;
        var res = formatNumberToLocaleString(value, pattern, locale, NumberSymbol.CurrencyGroup, NumberSymbol.CurrencyDecimal, digitsInfo);
        return res.replace(CURRENCY_CHAR, currency) // if we have 2 time the currency character, the second one is ignored
        .replace(CURRENCY_CHAR, '') // If there is a spacing between currency character and the value and
        // the currency character is supressed by passing an empty string, the
        // spacing character would remain as part of the string. Then we
        // should remove it.
        .trim();
      }
      /**
       * @ngModule CommonModule
       * @description
       *
       * Formats a number as a percentage according to locale rules.
       *
       * @param value The number to format.
       * @param locale A locale code for the locale format rules to use.
       * @param digitInfo Decimal representation options, specified by a string in the following format:
       * `{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}`. See `DecimalPipe` for more details.
       *
       * @returns The formatted percentage value.
       *
       * @see `formatNumber()`
       * @see `DecimalPipe`
       * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
       * @publicApi
       *
       */


      function formatPercent(value, locale, digitsInfo) {
        var format = getLocaleNumberFormat(locale, NumberFormatStyle.Percent);
        var pattern = parseNumberFormat(format, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign));
        var res = formatNumberToLocaleString(value, pattern, locale, NumberSymbol.Group, NumberSymbol.Decimal, digitsInfo, true);
        return res.replace(new RegExp(PERCENT_CHAR, 'g'), getLocaleNumberSymbol(locale, NumberSymbol.PercentSign));
      }
      /**
       * @ngModule CommonModule
       * @description
       *
       * Formats a number as text, with group sizing, separator, and other
       * parameters based on the locale.
       *
       * @param value The number to format.
       * @param locale A locale code for the locale format rules to use.
       * @param digitInfo Decimal representation options, specified by a string in the following format:
       * `{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}`. See `DecimalPipe` for more details.
       *
       * @returns The formatted text string.
       * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
       *
       * @publicApi
       */


      function formatNumber(value, locale, digitsInfo) {
        var format = getLocaleNumberFormat(locale, NumberFormatStyle.Decimal);
        var pattern = parseNumberFormat(format, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign));
        return formatNumberToLocaleString(value, pattern, locale, NumberSymbol.Group, NumberSymbol.Decimal, digitsInfo);
      }

      function parseNumberFormat(format) {
        var minusSign = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '-';
        var p = {
          minInt: 1,
          minFrac: 0,
          maxFrac: 0,
          posPre: '',
          posSuf: '',
          negPre: '',
          negSuf: '',
          gSize: 0,
          lgSize: 0
        };
        var patternParts = format.split(PATTERN_SEP);
        var positive = patternParts[0];
        var negative = patternParts[1];
        var positiveParts = positive.indexOf(DECIMAL_SEP) !== -1 ? positive.split(DECIMAL_SEP) : [positive.substring(0, positive.lastIndexOf(ZERO_CHAR) + 1), positive.substring(positive.lastIndexOf(ZERO_CHAR) + 1)],
            integer = positiveParts[0],
            fraction = positiveParts[1] || '';
        p.posPre = integer.substr(0, integer.indexOf(DIGIT_CHAR));

        for (var i = 0; i < fraction.length; i++) {
          var ch = fraction.charAt(i);

          if (ch === ZERO_CHAR) {
            p.minFrac = p.maxFrac = i + 1;
          } else if (ch === DIGIT_CHAR) {
            p.maxFrac = i + 1;
          } else {
            p.posSuf += ch;
          }
        }

        var groups = integer.split(GROUP_SEP);
        p.gSize = groups[1] ? groups[1].length : 0;
        p.lgSize = groups[2] || groups[1] ? (groups[2] || groups[1]).length : 0;

        if (negative) {
          var trunkLen = positive.length - p.posPre.length - p.posSuf.length,
              pos = negative.indexOf(DIGIT_CHAR);
          p.negPre = negative.substr(0, pos).replace(/'/g, '');
          p.negSuf = negative.substr(pos + trunkLen).replace(/'/g, '');
        } else {
          p.negPre = minusSign + p.posPre;
          p.negSuf = p.posSuf;
        }

        return p;
      } // Transforms a parsed number into a percentage by multiplying it by 100


      function toPercent(parsedNumber) {
        // if the number is 0, don't do anything
        if (parsedNumber.digits[0] === 0) {
          return parsedNumber;
        } // Getting the current number of decimals


        var fractionLen = parsedNumber.digits.length - parsedNumber.integerLen;

        if (parsedNumber.exponent) {
          parsedNumber.exponent += 2;
        } else {
          if (fractionLen === 0) {
            parsedNumber.digits.push(0, 0);
          } else if (fractionLen === 1) {
            parsedNumber.digits.push(0);
          }

          parsedNumber.integerLen += 2;
        }

        return parsedNumber;
      }
      /**
       * Parses a number.
       * Significant bits of this parse algorithm came from https://github.com/MikeMcl/big.js/
       */


      function parseNumber(num) {
        var numStr = Math.abs(num) + '';
        var exponent = 0,
            digits,
            integerLen;
        var i, j, zeros; // Decimal point?

        if ((integerLen = numStr.indexOf(DECIMAL_SEP)) > -1) {
          numStr = numStr.replace(DECIMAL_SEP, '');
        } // Exponential form?


        if ((i = numStr.search(/e/i)) > 0) {
          // Work out the exponent.
          if (integerLen < 0) integerLen = i;
          integerLen += +numStr.slice(i + 1);
          numStr = numStr.substring(0, i);
        } else if (integerLen < 0) {
          // There was no decimal point or exponent so it is an integer.
          integerLen = numStr.length;
        } // Count the number of leading zeros.


        for (i = 0; numStr.charAt(i) === ZERO_CHAR; i++) {
          /* empty */
        }

        if (i === (zeros = numStr.length)) {
          // The digits are all zero.
          digits = [0];
          integerLen = 1;
        } else {
          // Count the number of trailing zeros
          zeros--;

          while (numStr.charAt(zeros) === ZERO_CHAR) {
            zeros--;
          } // Trailing zeros are insignificant so ignore them


          integerLen -= i;
          digits = []; // Convert string to array of digits without leading/trailing zeros.

          for (j = 0; i <= zeros; i++, j++) {
            digits[j] = Number(numStr.charAt(i));
          }
        } // If the number overflows the maximum allowed digits then use an exponent.


        if (integerLen > MAX_DIGITS) {
          digits = digits.splice(0, MAX_DIGITS - 1);
          exponent = integerLen - 1;
          integerLen = 1;
        }

        return {
          digits: digits,
          exponent: exponent,
          integerLen: integerLen
        };
      }
      /**
       * Round the parsed number to the specified number of decimal places
       * This function changes the parsedNumber in-place
       */


      function roundNumber(parsedNumber, minFrac, maxFrac) {
        if (minFrac > maxFrac) {
          throw new Error("The minimum number of digits after fraction (".concat(minFrac, ") is higher than the maximum (").concat(maxFrac, ")."));
        }

        var digits = parsedNumber.digits;
        var fractionLen = digits.length - parsedNumber.integerLen;
        var fractionSize = Math.min(Math.max(minFrac, fractionLen), maxFrac); // The index of the digit to where rounding is to occur

        var roundAt = fractionSize + parsedNumber.integerLen;
        var digit = digits[roundAt];

        if (roundAt > 0) {
          // Drop fractional digits beyond `roundAt`
          digits.splice(Math.max(parsedNumber.integerLen, roundAt)); // Set non-fractional digits beyond `roundAt` to 0

          for (var j = roundAt; j < digits.length; j++) {
            digits[j] = 0;
          }
        } else {
          // We rounded to zero so reset the parsedNumber
          fractionLen = Math.max(0, fractionLen);
          parsedNumber.integerLen = 1;
          digits.length = Math.max(1, roundAt = fractionSize + 1);
          digits[0] = 0;

          for (var i = 1; i < roundAt; i++) {
            digits[i] = 0;
          }
        }

        if (digit >= 5) {
          if (roundAt - 1 < 0) {
            for (var k = 0; k > roundAt; k--) {
              digits.unshift(0);
              parsedNumber.integerLen++;
            }

            digits.unshift(1);
            parsedNumber.integerLen++;
          } else {
            digits[roundAt - 1]++;
          }
        } // Pad out with zeros to get the required fraction length


        for (; fractionLen < Math.max(0, fractionSize); fractionLen++) {
          digits.push(0);
        }

        var dropTrailingZeros = fractionSize !== 0; // Minimal length = nb of decimals required + current nb of integers
        // Any number besides that is optional and can be removed if it's a trailing 0

        var minLen = minFrac + parsedNumber.integerLen; // Do any carrying, e.g. a digit was rounded up to 10

        var carry = digits.reduceRight(function (carry, d, i, digits) {
          d = d + carry;
          digits[i] = d < 10 ? d : d - 10; // d % 10

          if (dropTrailingZeros) {
            // Do not keep meaningless fractional trailing zeros (e.g. 15.52000 --> 15.52)
            if (digits[i] === 0 && i >= minLen) {
              digits.pop();
            } else {
              dropTrailingZeros = false;
            }
          }

          return d >= 10 ? 1 : 0; // Math.floor(d / 10);
        }, 0);

        if (carry) {
          digits.unshift(carry);
          parsedNumber.integerLen++;
        }
      }

      function parseIntAutoRadix(text) {
        var result = parseInt(text);

        if (isNaN(result)) {
          throw new Error('Invalid integer literal when parsing ' + text);
        }

        return result;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @publicApi
       */


      var NgLocalization = function NgLocalization() {
        _classCallCheck2(this, NgLocalization);
      };
      /**
       * Returns the plural category for a given value.
       * - "=value" when the case exists,
       * - the plural category otherwise
       */


      function getPluralCategory(value, cases, ngLocalization, locale) {
        var key = "=".concat(value);

        if (cases.indexOf(key) > -1) {
          return key;
        }

        key = ngLocalization.getPluralCategory(value, locale);

        if (cases.indexOf(key) > -1) {
          return key;
        }

        if (cases.indexOf('other') > -1) {
          return 'other';
        }

        throw new Error("No plural message found for value \"".concat(value, "\""));
      }
      /**
       * Returns the plural case based on the locale
       *
       * @publicApi
       */


      var NgLocaleLocalization = /*#__PURE__*/function (_NgLocalization) {
        _inherits2(NgLocaleLocalization, _NgLocalization);

        var _super296 = _createSuper2(NgLocaleLocalization);

        function NgLocaleLocalization(locale) {
          var _this589;

          _classCallCheck2(this, NgLocaleLocalization);

          _this589 = _super296.call(this);
          _this589.locale = locale;
          return _this589;
        }

        _createClass2(NgLocaleLocalization, [{
          key: "getPluralCategory",
          value: function getPluralCategory(value, locale) {
            var plural = getLocalePluralCase(locale || this.locale)(value);

            switch (plural) {
              case Plural.Zero:
                return 'zero';

              case Plural.One:
                return 'one';

              case Plural.Two:
                return 'two';

              case Plural.Few:
                return 'few';

              case Plural.Many:
                return 'many';

              default:
                return 'other';
            }
          }
        }]);

        return NgLocaleLocalization;
      }(NgLocalization);

      NgLocaleLocalization.ɵfac = function NgLocaleLocalization_Factory(t) {
        return new (t || NgLocaleLocalization)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["LOCALE_ID"]));
      };

      NgLocaleLocalization.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
        token: NgLocaleLocalization,
        factory: NgLocaleLocalization.ɵfac
      });

      NgLocaleLocalization.ctorParameters = function () {
        return [{
          type: String,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["LOCALE_ID"]]
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgLocaleLocalization, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
        }], function () {
          return [{
            type: String,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["LOCALE_ID"]]
            }]
          }];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Register global data to be used internally by Angular. See the
       * ["I18n guide"](guide/i18n#i18n-pipes) to know how to import additional locale data.
       *
       * The signature registerLocaleData(data: any, extraData?: any) is deprecated since v5.1
       *
       * @publicApi
       */


      function registerLocaleData(data, localeId, extraData) {
        return Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵregisterLocaleData"])(data, localeId, extraData);
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function parseCookieValue(cookieStr, name) {
        name = encodeURIComponent(name);

        var _iterator71 = _createForOfIteratorHelper(cookieStr.split(';')),
            _step70;

        try {
          for (_iterator71.s(); !(_step70 = _iterator71.n()).done;) {
            var cookie = _step70.value;
            var eqIndex = cookie.indexOf('=');

            var _ref77 = eqIndex == -1 ? [cookie, ''] : [cookie.slice(0, eqIndex), cookie.slice(eqIndex + 1)],
                _ref78 = _slicedToArray(_ref77, 2),
                cookieName = _ref78[0],
                cookieValue = _ref78[1];

            if (cookieName.trim() === name) {
              return decodeURIComponent(cookieValue);
            }
          }
        } catch (err) {
          _iterator71.e(err);
        } finally {
          _iterator71.f();
        }

        return null;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @ngModule CommonModule
       *
       * @usageNotes
       * ```
       *     <some-element [ngClass]="'first second'">...</some-element>
       *
       *     <some-element [ngClass]="['first', 'second']">...</some-element>
       *
       *     <some-element [ngClass]="{'first': true, 'second': true, 'third': false}">...</some-element>
       *
       *     <some-element [ngClass]="stringExp|arrayExp|objExp">...</some-element>
       *
       *     <some-element [ngClass]="{'class1 class2 class3' : true}">...</some-element>
       * ```
       *
       * @description
       *
       * Adds and removes CSS classes on an HTML element.
       *
       * The CSS classes are updated as follows, depending on the type of the expression evaluation:
       * - `string` - the CSS classes listed in the string (space delimited) are added,
       * - `Array` - the CSS classes declared as Array elements are added,
       * - `Object` - keys are CSS classes that get added when the expression given in the value
       *              evaluates to a truthy value, otherwise they are removed.
       *
       * @publicApi
       */


      var NgClass = /*#__PURE__*/function () {
        function NgClass(_iterableDiffers, _keyValueDiffers, _ngEl, _renderer) {
          _classCallCheck2(this, NgClass);

          this._iterableDiffers = _iterableDiffers;
          this._keyValueDiffers = _keyValueDiffers;
          this._ngEl = _ngEl;
          this._renderer = _renderer;
          this._iterableDiffer = null;
          this._keyValueDiffer = null;
          this._initialClasses = [];
          this._rawClass = null;
        }

        _createClass2(NgClass, [{
          key: "klass",
          set: function set(value) {
            this._removeClasses(this._initialClasses);

            this._initialClasses = typeof value === 'string' ? value.split(/\s+/) : [];

            this._applyClasses(this._initialClasses);

            this._applyClasses(this._rawClass);
          }
        }, {
          key: "ngClass",
          set: function set(value) {
            this._removeClasses(this._rawClass);

            this._applyClasses(this._initialClasses);

            this._iterableDiffer = null;
            this._keyValueDiffer = null;
            this._rawClass = typeof value === 'string' ? value.split(/\s+/) : value;

            if (this._rawClass) {
              if (Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵisListLikeIterable"])(this._rawClass)) {
                this._iterableDiffer = this._iterableDiffers.find(this._rawClass).create();
              } else {
                this._keyValueDiffer = this._keyValueDiffers.find(this._rawClass).create();
              }
            }
          }
        }, {
          key: "ngDoCheck",
          value: function ngDoCheck() {
            if (this._iterableDiffer) {
              var iterableChanges = this._iterableDiffer.diff(this._rawClass);

              if (iterableChanges) {
                this._applyIterableChanges(iterableChanges);
              }
            } else if (this._keyValueDiffer) {
              var keyValueChanges = this._keyValueDiffer.diff(this._rawClass);

              if (keyValueChanges) {
                this._applyKeyValueChanges(keyValueChanges);
              }
            }
          }
        }, {
          key: "_applyKeyValueChanges",
          value: function _applyKeyValueChanges(changes) {
            var _this590 = this;

            changes.forEachAddedItem(function (record) {
              return _this590._toggleClass(record.key, record.currentValue);
            });
            changes.forEachChangedItem(function (record) {
              return _this590._toggleClass(record.key, record.currentValue);
            });
            changes.forEachRemovedItem(function (record) {
              if (record.previousValue) {
                _this590._toggleClass(record.key, false);
              }
            });
          }
        }, {
          key: "_applyIterableChanges",
          value: function _applyIterableChanges(changes) {
            var _this591 = this;

            changes.forEachAddedItem(function (record) {
              if (typeof record.item === 'string') {
                _this591._toggleClass(record.item, true);
              } else {
                throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat(Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵstringify"])(record.item)));
              }
            });
            changes.forEachRemovedItem(function (record) {
              return _this591._toggleClass(record.item, false);
            });
          }
          /**
           * Applies a collection of CSS classes to the DOM element.
           *
           * For argument of type Set and Array CSS class names contained in those collections are always
           * added.
           * For argument of type Map CSS class name in the map's key is toggled based on the value (added
           * for truthy and removed for falsy).
           */

        }, {
          key: "_applyClasses",
          value: function _applyClasses(rawClassVal) {
            var _this592 = this;

            if (rawClassVal) {
              if (Array.isArray(rawClassVal) || rawClassVal instanceof Set) {
                rawClassVal.forEach(function (klass) {
                  return _this592._toggleClass(klass, true);
                });
              } else {
                Object.keys(rawClassVal).forEach(function (klass) {
                  return _this592._toggleClass(klass, !!rawClassVal[klass]);
                });
              }
            }
          }
          /**
           * Removes a collection of CSS classes from the DOM element. This is mostly useful for cleanup
           * purposes.
           */

        }, {
          key: "_removeClasses",
          value: function _removeClasses(rawClassVal) {
            var _this593 = this;

            if (rawClassVal) {
              if (Array.isArray(rawClassVal) || rawClassVal instanceof Set) {
                rawClassVal.forEach(function (klass) {
                  return _this593._toggleClass(klass, false);
                });
              } else {
                Object.keys(rawClassVal).forEach(function (klass) {
                  return _this593._toggleClass(klass, false);
                });
              }
            }
          }
        }, {
          key: "_toggleClass",
          value: function _toggleClass(klass, enabled) {
            var _this594 = this;

            klass = klass.trim();

            if (klass) {
              klass.split(/\s+/g).forEach(function (klass) {
                if (enabled) {
                  _this594._renderer.addClass(_this594._ngEl.nativeElement, klass);
                } else {
                  _this594._renderer.removeClass(_this594._ngEl.nativeElement, klass);
                }
              });
            }
          }
        }]);

        return NgClass;
      }();

      NgClass.ɵfac = function NgClass_Factory(t) {
        return new (t || NgClass)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["IterableDiffers"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["KeyValueDiffers"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]));
      };

      NgClass.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: NgClass,
        selectors: [["", "ngClass", ""]],
        inputs: {
          klass: ["class", "klass"],
          ngClass: "ngClass"
        }
      });

      NgClass.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["IterableDiffers"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["KeyValueDiffers"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]
        }];
      };

      NgClass.propDecorators = {
        klass: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
          args: ['class']
        }],
        ngClass: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
          args: ['ngClass']
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgClass, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
          args: [{
            selector: '[ngClass]'
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["IterableDiffers"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["KeyValueDiffers"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]
          }];
        }, {
          klass: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
            args: ['class']
          }],
          ngClass: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
            args: ['ngClass']
          }]
        });
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Instantiates a single {@link Component} type and inserts its Host View into current View.
       * `NgComponentOutlet` provides a declarative approach for dynamic component creation.
       *
       * `NgComponentOutlet` requires a component type, if a falsy value is set the view will clear and
       * any existing component will get destroyed.
       *
       * @usageNotes
       *
       * ### Fine tune control
       *
       * You can control the component creation process by using the following optional attributes:
       *
       * * `ngComponentOutletInjector`: Optional custom {@link Injector} that will be used as parent for
       * the Component. Defaults to the injector of the current view container.
       *
       * * `ngComponentOutletContent`: Optional list of projectable nodes to insert into the content
       * section of the component, if exists.
       *
       * * `ngComponentOutletNgModuleFactory`: Optional module factory to allow dynamically loading other
       * module, then load a component from that module.
       *
       * ### Syntax
       *
       * Simple
       * ```
       * <ng-container *ngComponentOutlet="componentTypeExpression"></ng-container>
       * ```
       *
       * Customized injector/content
       * ```
       * <ng-container *ngComponentOutlet="componentTypeExpression;
       *                                   injector: injectorExpression;
       *                                   content: contentNodesExpression;">
       * </ng-container>
       * ```
       *
       * Customized ngModuleFactory
       * ```
       * <ng-container *ngComponentOutlet="componentTypeExpression;
       *                                   ngModuleFactory: moduleFactory;">
       * </ng-container>
       * ```
       *
       * ### A simple example
       *
       * {@example common/ngComponentOutlet/ts/module.ts region='SimpleExample'}
       *
       * A more complete example with additional options:
       *
       * {@example common/ngComponentOutlet/ts/module.ts region='CompleteExample'}
       *
       * @publicApi
       * @ngModule CommonModule
       */


      var NgComponentOutlet = /*#__PURE__*/function () {
        function NgComponentOutlet(_viewContainerRef) {
          _classCallCheck2(this, NgComponentOutlet);

          this._viewContainerRef = _viewContainerRef;
          this._componentRef = null;
          this._moduleRef = null;
        }

        _createClass2(NgComponentOutlet, [{
          key: "ngOnChanges",
          value: function ngOnChanges(changes) {
            this._viewContainerRef.clear();

            this._componentRef = null;

            if (this.ngComponentOutlet) {
              var elInjector = this.ngComponentOutletInjector || this._viewContainerRef.parentInjector;

              if (changes['ngComponentOutletNgModuleFactory']) {
                if (this._moduleRef) this._moduleRef.destroy();

                if (this.ngComponentOutletNgModuleFactory) {
                  var parentModule = elInjector.get(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModuleRef"]);
                  this._moduleRef = this.ngComponentOutletNgModuleFactory.create(parentModule.injector);
                } else {
                  this._moduleRef = null;
                }
              }

              var componentFactoryResolver = this._moduleRef ? this._moduleRef.componentFactoryResolver : elInjector.get(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"]);
              var componentFactory = componentFactoryResolver.resolveComponentFactory(this.ngComponentOutlet);
              this._componentRef = this._viewContainerRef.createComponent(componentFactory, this._viewContainerRef.length, elInjector, this.ngComponentOutletContent);
            }
          }
        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            if (this._moduleRef) this._moduleRef.destroy();
          }
        }]);

        return NgComponentOutlet;
      }();

      NgComponentOutlet.ɵfac = function NgComponentOutlet_Factory(t) {
        return new (t || NgComponentOutlet)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"]));
      };

      NgComponentOutlet.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: NgComponentOutlet,
        selectors: [["", "ngComponentOutlet", ""]],
        inputs: {
          ngComponentOutlet: "ngComponentOutlet",
          ngComponentOutletInjector: "ngComponentOutletInjector",
          ngComponentOutletContent: "ngComponentOutletContent",
          ngComponentOutletNgModuleFactory: "ngComponentOutletNgModuleFactory"
        },
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]]
      });

      NgComponentOutlet.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"]
        }];
      };

      NgComponentOutlet.propDecorators = {
        ngComponentOutlet: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }],
        ngComponentOutletInjector: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }],
        ngComponentOutletContent: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }],
        ngComponentOutletNgModuleFactory: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgComponentOutlet, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
          args: [{
            selector: '[ngComponentOutlet]'
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"]
          }];
        }, {
          ngComponentOutlet: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }],
          ngComponentOutletInjector: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }],
          ngComponentOutletContent: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }],
          ngComponentOutletNgModuleFactory: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }]
        });
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @publicApi
       */


      var NgForOfContext = /*#__PURE__*/function () {
        function NgForOfContext($implicit, ngForOf, index, count) {
          _classCallCheck2(this, NgForOfContext);

          this.$implicit = $implicit;
          this.ngForOf = ngForOf;
          this.index = index;
          this.count = count;
        }

        _createClass2(NgForOfContext, [{
          key: "first",
          get: function get() {
            return this.index === 0;
          }
        }, {
          key: "last",
          get: function get() {
            return this.index === this.count - 1;
          }
        }, {
          key: "even",
          get: function get() {
            return this.index % 2 === 0;
          }
        }, {
          key: "odd",
          get: function get() {
            return !this.even;
          }
        }]);

        return NgForOfContext;
      }();
      /**
       * A [structural directive](guide/structural-directives) that renders
       * a template for each item in a collection.
       * The directive is placed on an element, which becomes the parent
       * of the cloned templates.
       *
       * The `ngForOf` directive is generally used in the
       * [shorthand form](guide/structural-directives#the-asterisk--prefix) `*ngFor`.
       * In this form, the template to be rendered for each iteration is the content
       * of an anchor element containing the directive.
       *
       * The following example shows the shorthand syntax with some options,
       * contained in an `<li>` element.
       *
       * ```
       * <li *ngFor="let item of items; index as i; trackBy: trackByFn">...</li>
       * ```
       *
       * The shorthand form expands into a long form that uses the `ngForOf` selector
       * on an `<ng-template>` element.
       * The content of the `<ng-template>` element is the `<li>` element that held the
       * short-form directive.
       *
       * Here is the expanded version of the short-form example.
       *
       * ```
       * <ng-template ngFor let-item [ngForOf]="items" let-i="index" [ngForTrackBy]="trackByFn">
       *   <li>...</li>
       * </ng-template>
       * ```
       *
       * Angular automatically expands the shorthand syntax as it compiles the template.
       * The context for each embedded view is logically merged to the current component
       * context according to its lexical position.
       *
       * When using the shorthand syntax, Angular allows only [one structural directive
       * on an element](guide/structural-directives#one-structural-directive-per-host-element).
       * If you want to iterate conditionally, for example,
       * put the `*ngIf` on a container element that wraps the `*ngFor` element.
       * For futher discussion, see
       * [Structural Directives](guide/structural-directives#one-per-element).
       *
       * @usageNotes
       *
       * ### Local variables
       *
       * `NgForOf` provides exported values that can be aliased to local variables.
       * For example:
       *
       *  ```
       * <li *ngFor="let user of users; index as i; first as isFirst">
       *    {{i}}/{{users.length}}. {{user}} <span *ngIf="isFirst">default</span>
       * </li>
       * ```
       *
       * The following exported values can be aliased to local variables:
       *
       * - `$implicit: T`: The value of the individual items in the iterable (`ngForOf`).
       * - `ngForOf: NgIterable<T>`: The value of the iterable expression. Useful when the expression is
       * more complex then a property access, for example when using the async pipe (`userStreams |
       * async`).
       * - `index: number`: The index of the current item in the iterable.
       * - `count: number`: The length of the iterable.
       * - `first: boolean`: True when the item is the first item in the iterable.
       * - `last: boolean`: True when the item is the last item in the iterable.
       * - `even: boolean`: True when the item has an even index in the iterable.
       * - `odd: boolean`: True when the item has an odd index in the iterable.
       *
       * ### Change propagation
       *
       * When the contents of the iterator changes, `NgForOf` makes the corresponding changes to the DOM:
       *
       * * When an item is added, a new instance of the template is added to the DOM.
       * * When an item is removed, its template instance is removed from the DOM.
       * * When items are reordered, their respective templates are reordered in the DOM.
       *
       * Angular uses object identity to track insertions and deletions within the iterator and reproduce
       * those changes in the DOM. This has important implications for animations and any stateful
       * controls that are present, such as `<input>` elements that accept user input. Inserted rows can
       * be animated in, deleted rows can be animated out, and unchanged rows retain any unsaved state
       * such as user input.
       * For more on animations, see [Transitions and Triggers](guide/transition-and-triggers).
       *
       * The identities of elements in the iterator can change while the data does not.
       * This can happen, for example, if the iterator is produced from an RPC to the server, and that
       * RPC is re-run. Even if the data hasn't changed, the second response produces objects with
       * different identities, and Angular must tear down the entire DOM and rebuild it (as if all old
       * elements were deleted and all new elements inserted).
       *
       * To avoid this expensive operation, you can customize the default tracking algorithm.
       * by supplying the `trackBy` option to `NgForOf`.
       * `trackBy` takes a function that has two arguments: `index` and `item`.
       * If `trackBy` is given, Angular tracks changes by the return value of the function.
       *
       * @see [Structural Directives](guide/structural-directives)
       * @ngModule CommonModule
       * @publicApi
       */


      var NgForOf = /*#__PURE__*/function () {
        function NgForOf(_viewContainer, _template, _differs) {
          _classCallCheck2(this, NgForOf);

          this._viewContainer = _viewContainer;
          this._template = _template;
          this._differs = _differs;
          this._ngForOf = null;
          this._ngForOfDirty = true;
          this._differ = null;
        }
        /**
         * The value of the iterable expression, which can be used as a
         * [template input variable](guide/structural-directives#template-input-variable).
         */


        _createClass2(NgForOf, [{
          key: "ngForOf",
          set: function set(ngForOf) {
            this._ngForOf = ngForOf;
            this._ngForOfDirty = true;
          }
          /**
           * A function that defines how to track changes for items in the iterable.
           *
           * When items are added, moved, or removed in the iterable,
           * the directive must re-render the appropriate DOM nodes.
           * To minimize churn in the DOM, only nodes that have changed
           * are re-rendered.
           *
           * By default, the change detector assumes that
           * the object instance identifies the node in the iterable.
           * When this function is supplied, the directive uses
           * the result of calling this function to identify the item node,
           * rather than the identity of the object itself.
           *
           * The function receives two inputs,
           * the iteration index and the associated node data.
           */

        }, {
          key: "ngForTrackBy",
          get: function get() {
            return this._trackByFn;
          }
          /**
           * A reference to the template that is stamped out for each item in the iterable.
           * @see [template reference variable](guide/template-reference-variables)
           */
          ,
          set: function set(fn) {
            if (Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["isDevMode"])() && fn != null && typeof fn !== 'function') {
              // TODO(vicb): use a log service once there is a public one available
              if (console && console.warn) {
                console.warn("trackBy must be a function, but received ".concat(JSON.stringify(fn), ". ") + "See https://angular.io/api/common/NgForOf#change-propagation for more information.");
              }
            }

            this._trackByFn = fn;
          }
        }, {
          key: "ngForTemplate",
          set: function set(value) {
            // TODO(TS2.1): make TemplateRef<Partial<NgForRowOf<T>>> once we move to TS v2.1
            // The current type is too restrictive; a template that just uses index, for example,
            // should be acceptable.
            if (value) {
              this._template = value;
            }
          }
          /**
           * Applies the changes when needed.
           */

        }, {
          key: "ngDoCheck",
          value: function ngDoCheck() {
            if (this._ngForOfDirty) {
              this._ngForOfDirty = false; // React on ngForOf changes only once all inputs have been initialized

              var value = this._ngForOf;

              if (!this._differ && value) {
                try {
                  this._differ = this._differs.find(value).create(this.ngForTrackBy);
                } catch (_a) {
                  throw new Error("Cannot find a differ supporting object '".concat(value, "' of type '").concat(getTypeName(value), "'. NgFor only supports binding to Iterables such as Arrays."));
                }
              }
            }

            if (this._differ) {
              var changes = this._differ.diff(this._ngForOf);

              if (changes) this._applyChanges(changes);
            }
          }
        }, {
          key: "_applyChanges",
          value: function _applyChanges(changes) {
            var _this595 = this;

            var insertTuples = [];
            changes.forEachOperation(function (item, adjustedPreviousIndex, currentIndex) {
              if (item.previousIndex == null) {
                // NgForOf is never "null" or "undefined" here because the differ detected
                // that a new item needs to be inserted from the iterable. This implies that
                // there is an iterable value for "_ngForOf".
                var view = _this595._viewContainer.createEmbeddedView(_this595._template, new NgForOfContext(null, _this595._ngForOf, -1, -1), currentIndex === null ? undefined : currentIndex);

                var tuple = new RecordViewTuple(item, view);
                insertTuples.push(tuple);
              } else if (currentIndex == null) {
                _this595._viewContainer.remove(adjustedPreviousIndex === null ? undefined : adjustedPreviousIndex);
              } else if (adjustedPreviousIndex !== null) {
                var _view4 = _this595._viewContainer.get(adjustedPreviousIndex);

                _this595._viewContainer.move(_view4, currentIndex);

                var _tuple = new RecordViewTuple(item, _view4);

                insertTuples.push(_tuple);
              }
            });

            for (var i = 0; i < insertTuples.length; i++) {
              this._perViewChange(insertTuples[i].view, insertTuples[i].record);
            }

            for (var _i36 = 0, ilen = this._viewContainer.length; _i36 < ilen; _i36++) {
              var viewRef = this._viewContainer.get(_i36);

              viewRef.context.index = _i36;
              viewRef.context.count = ilen;
              viewRef.context.ngForOf = this._ngForOf;
            }

            changes.forEachIdentityChange(function (record) {
              var viewRef = _this595._viewContainer.get(record.currentIndex);

              viewRef.context.$implicit = record.item;
            });
          }
        }, {
          key: "_perViewChange",
          value: function _perViewChange(view, record) {
            view.context.$implicit = record.item;
          }
          /**
           * Asserts the correct type of the context for the template that `NgForOf` will render.
           *
           * The presence of this method is a signal to the Ivy template type-check compiler that the
           * `NgForOf` structural directive renders its template with a specific context type.
           */

        }], [{
          key: "ngTemplateContextGuard",
          value: function ngTemplateContextGuard(dir, ctx) {
            return true;
          }
        }]);

        return NgForOf;
      }();

      NgForOf.ɵfac = function NgForOf_Factory(t) {
        return new (t || NgForOf)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["IterableDiffers"]));
      };

      NgForOf.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: NgForOf,
        selectors: [["", "ngFor", "", "ngForOf", ""]],
        inputs: {
          ngForOf: "ngForOf",
          ngForTrackBy: "ngForTrackBy",
          ngForTemplate: "ngForTemplate"
        }
      });

      NgForOf.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["IterableDiffers"]
        }];
      };

      NgForOf.propDecorators = {
        ngForOf: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }],
        ngForTrackBy: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }],
        ngForTemplate: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgForOf, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
          args: [{
            selector: '[ngFor][ngForOf]'
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["IterableDiffers"]
          }];
        }, {
          ngForOf: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }],
          ngForTrackBy: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }],
          ngForTemplate: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }]
        });
      })();

      var RecordViewTuple = function RecordViewTuple(record, view) {
        _classCallCheck2(this, RecordViewTuple);

        this.record = record;
        this.view = view;
      };

      function getTypeName(type) {
        return type['name'] || typeof type;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * A structural directive that conditionally includes a template based on the value of
       * an expression coerced to Boolean.
       * When the expression evaluates to true, Angular renders the template
       * provided in a `then` clause, and when  false or null,
       * Angular renders the template provided in an optional `else` clause. The default
       * template for the `else` clause is blank.
       *
       * A [shorthand form](guide/structural-directives#the-asterisk--prefix) of the directive,
       * `*ngIf="condition"`, is generally used, provided
       * as an attribute of the anchor element for the inserted template.
       * Angular expands this into a more explicit version, in which the anchor element
       * is contained in an `<ng-template>` element.
       *
       * Simple form with shorthand syntax:
       *
       * ```
       * <div *ngIf="condition">Content to render when condition is true.</div>
       * ```
       *
       * Simple form with expanded syntax:
       *
       * ```
       * <ng-template [ngIf]="condition"><div>Content to render when condition is
       * true.</div></ng-template>
       * ```
       *
       * Form with an "else" block:
       *
       * ```
       * <div *ngIf="condition; else elseBlock">Content to render when condition is true.</div>
       * <ng-template #elseBlock>Content to render when condition is false.</ng-template>
       * ```
       *
       * Shorthand form with "then" and "else" blocks:
       *
       * ```
       * <div *ngIf="condition; then thenBlock else elseBlock"></div>
       * <ng-template #thenBlock>Content to render when condition is true.</ng-template>
       * <ng-template #elseBlock>Content to render when condition is false.</ng-template>
       * ```
       *
       * Form with storing the value locally:
       *
       * ```
       * <div *ngIf="condition as value; else elseBlock">{{value}}</div>
       * <ng-template #elseBlock>Content to render when value is null.</ng-template>
       * ```
       *
       * @usageNotes
       *
       * The `*ngIf` directive is most commonly used to conditionally show an inline template,
       * as seen in the following  example.
       * The default `else` template is blank.
       *
       * {@example common/ngIf/ts/module.ts region='NgIfSimple'}
       *
       * ### Showing an alternative template using `else`
       *
       * To display a template when `expression` evaluates to false, use an `else` template
       * binding as shown in the following example.
       * The `else` binding points to an `<ng-template>`  element labeled `#elseBlock`.
       * The template can be defined anywhere in the component view, but is typically placed right after
       * `ngIf` for readability.
       *
       * {@example common/ngIf/ts/module.ts region='NgIfElse'}
       *
       * ### Using an external `then` template
       *
       * In the previous example, the then-clause template is specified inline, as the content of the
       * tag that contains the `ngIf` directive. You can also specify a template that is defined
       * externally, by referencing a labeled `<ng-template>` element. When you do this, you can
       * change which template to use at runtime, as shown in the following example.
       *
       * {@example common/ngIf/ts/module.ts region='NgIfThenElse'}
       *
       * ### Storing a conditional result in a variable
       *
       * You might want to show a set of properties from the same object. If you are waiting
       * for asynchronous data, the object can be undefined.
       * In this case, you can use `ngIf` and store the result of the condition in a local
       * variable as shown in the the following example.
       *
       * {@example common/ngIf/ts/module.ts region='NgIfAs'}
       *
       * This code uses only one `AsyncPipe`, so only one subscription is created.
       * The conditional statement stores the result of `userStream|async` in the local variable `user`.
       * You can then bind the local `user` repeatedly.
       *
       * The conditional displays the data only if `userStream` returns a value,
       * so you don't need to use the
       * [safe-navigation-operator](guide/template-expression-operators#safe-navigation-operator) (`?.`)
       * to guard against null values when accessing properties.
       * You can display an alternative template while waiting for the data.
       *
       * ### Shorthand syntax
       *
       * The shorthand syntax `*ngIf` expands into two separate template specifications
       * for the "then" and "else" clauses. For example, consider the following shorthand statement,
       * that is meant to show a loading page while waiting for data to be loaded.
       *
       * ```
       * <div class="hero-list" *ngIf="heroes else loading">
       *  ...
       * </div>
       *
       * <ng-template #loading>
       *  <div>Loading...</div>
       * </ng-template>
       * ```
       *
       * You can see that the "else" clause references the `<ng-template>`
       * with the `#loading` label, and the template for the "then" clause
       * is provided as the content of the anchor element.
       *
       * However, when Angular expands the shorthand syntax, it creates
       * another `<ng-template>` tag, with `ngIf` and `ngIfElse` directives.
       * The anchor element containing the template for the "then" clause becomes
       * the content of this unlabeled `<ng-template>` tag.
       *
       * ```
       * <ng-template [ngIf]="heroes" [ngIfElse]="loading">
       *  <div class="hero-list">
       *   ...
       *  </div>
       * </ng-template>
       *
       * <ng-template #loading>
       *  <div>Loading...</div>
       * </ng-template>
       * ```
       *
       * The presence of the implicit template object has implications for the nesting of
       * structural directives. For more on this subject, see
       * [Structural Directives](https://angular.io/guide/structural-directives#one-per-element).
       *
       * @ngModule CommonModule
       * @publicApi
       */


      var NgIf = /*#__PURE__*/function () {
        function NgIf(_viewContainer, templateRef) {
          _classCallCheck2(this, NgIf);

          this._viewContainer = _viewContainer;
          this._context = new NgIfContext();
          this._thenTemplateRef = null;
          this._elseTemplateRef = null;
          this._thenViewRef = null;
          this._elseViewRef = null;
          this._thenTemplateRef = templateRef;
        }
        /**
         * The Boolean expression to evaluate as the condition for showing a template.
         */


        _createClass2(NgIf, [{
          key: "ngIf",
          set: function set(condition) {
            this._context.$implicit = this._context.ngIf = condition;

            this._updateView();
          }
          /**
           * A template to show if the condition expression evaluates to true.
           */

        }, {
          key: "ngIfThen",
          set: function set(templateRef) {
            assertTemplate('ngIfThen', templateRef);
            this._thenTemplateRef = templateRef;
            this._thenViewRef = null; // clear previous view if any.

            this._updateView();
          }
          /**
           * A template to show if the condition expression evaluates to false.
           */

        }, {
          key: "ngIfElse",
          set: function set(templateRef) {
            assertTemplate('ngIfElse', templateRef);
            this._elseTemplateRef = templateRef;
            this._elseViewRef = null; // clear previous view if any.

            this._updateView();
          }
        }, {
          key: "_updateView",
          value: function _updateView() {
            if (this._context.$implicit) {
              if (!this._thenViewRef) {
                this._viewContainer.clear();

                this._elseViewRef = null;

                if (this._thenTemplateRef) {
                  this._thenViewRef = this._viewContainer.createEmbeddedView(this._thenTemplateRef, this._context);
                }
              }
            } else {
              if (!this._elseViewRef) {
                this._viewContainer.clear();

                this._thenViewRef = null;

                if (this._elseTemplateRef) {
                  this._elseViewRef = this._viewContainer.createEmbeddedView(this._elseTemplateRef, this._context);
                }
              }
            }
          }
          /**
           * Asserts the correct type of the context for the template that `NgIf` will render.
           *
           * The presence of this method is a signal to the Ivy template type-check compiler that the
           * `NgIf` structural directive renders its template with a specific context type.
           */

        }], [{
          key: "ngTemplateContextGuard",
          value: function ngTemplateContextGuard(dir, ctx) {
            return true;
          }
        }]);

        return NgIf;
      }();

      NgIf.ɵfac = function NgIf_Factory(t) {
        return new (t || NgIf)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]));
      };

      NgIf.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: NgIf,
        selectors: [["", "ngIf", ""]],
        inputs: {
          ngIf: "ngIf",
          ngIfThen: "ngIfThen",
          ngIfElse: "ngIfElse"
        }
      });

      NgIf.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]
        }];
      };

      NgIf.propDecorators = {
        ngIf: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }],
        ngIfThen: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }],
        ngIfElse: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgIf, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
          args: [{
            selector: '[ngIf]'
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]
          }];
        }, {
          ngIf: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }],
          ngIfThen: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }],
          ngIfElse: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }]
        });
      })();
      /**
       * @publicApi
       */


      var NgIfContext = function NgIfContext() {
        _classCallCheck2(this, NgIfContext);

        this.$implicit = null;
        this.ngIf = null;
      };

      function assertTemplate(property, templateRef) {
        var isTemplateRefOrNull = !!(!templateRef || templateRef.createEmbeddedView);

        if (!isTemplateRefOrNull) {
          throw new Error("".concat(property, " must be a TemplateRef, but received '").concat(Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵstringify"])(templateRef), "'."));
        }
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var SwitchView = /*#__PURE__*/function () {
        function SwitchView(_viewContainerRef, _templateRef) {
          _classCallCheck2(this, SwitchView);

          this._viewContainerRef = _viewContainerRef;
          this._templateRef = _templateRef;
          this._created = false;
        }

        _createClass2(SwitchView, [{
          key: "create",
          value: function create() {
            this._created = true;

            this._viewContainerRef.createEmbeddedView(this._templateRef);
          }
        }, {
          key: "destroy",
          value: function destroy() {
            this._created = false;

            this._viewContainerRef.clear();
          }
        }, {
          key: "enforceState",
          value: function enforceState(created) {
            if (created && !this._created) {
              this.create();
            } else if (!created && this._created) {
              this.destroy();
            }
          }
        }]);

        return SwitchView;
      }();
      /**
       * @ngModule CommonModule
       *
       * @description
       * The `[ngSwitch]` directive on a container specifies an expression to match against.
       * The expressions to match are provided by `ngSwitchCase` directives on views within the container.
       * - Every view that matches is rendered.
       * - If there are no matches, a view with the `ngSwitchDefault` directive is rendered.
       * - Elements within the `[NgSwitch]` statement but outside of any `NgSwitchCase`
       * or `ngSwitchDefault` directive are preserved at the location.
       *
       * @usageNotes
       * Define a container element for the directive, and specify the switch expression
       * to match against as an attribute:
       *
       * ```
       * <container-element [ngSwitch]="switch_expression">
       * ```
       *
       * Within the container, `*ngSwitchCase` statements specify the match expressions
       * as attributes. Include `*ngSwitchDefault` as the final case.
       *
       * ```
       * <container-element [ngSwitch]="switch_expression">
       *    <some-element *ngSwitchCase="match_expression_1">...</some-element>
       * ...
       *    <some-element *ngSwitchDefault>...</some-element>
       * </container-element>
       * ```
       *
       * ### Usage Examples
       *
       * The following example shows how to use more than one case to display the same view:
       *
       * ```
       * <container-element [ngSwitch]="switch_expression">
       *   <!-- the same view can be shown in more than one case -->
       *   <some-element *ngSwitchCase="match_expression_1">...</some-element>
       *   <some-element *ngSwitchCase="match_expression_2">...</some-element>
       *   <some-other-element *ngSwitchCase="match_expression_3">...</some-other-element>
       *   <!--default case when there are no matches -->
       *   <some-element *ngSwitchDefault>...</some-element>
       * </container-element>
       * ```
       *
       * The following example shows how cases can be nested:
       * ```
       * <container-element [ngSwitch]="switch_expression">
       *       <some-element *ngSwitchCase="match_expression_1">...</some-element>
       *       <some-element *ngSwitchCase="match_expression_2">...</some-element>
       *       <some-other-element *ngSwitchCase="match_expression_3">...</some-other-element>
       *       <ng-container *ngSwitchCase="match_expression_3">
       *         <!-- use a ng-container to group multiple root nodes -->
       *         <inner-element></inner-element>
       *         <inner-other-element></inner-other-element>
       *       </ng-container>
       *       <some-element *ngSwitchDefault>...</some-element>
       *     </container-element>
       * ```
       *
       * @publicApi
       * @see `NgSwitchCase`
       * @see `NgSwitchDefault`
       * @see [Structural Directives](guide/structural-directives)
       *
       */


      var NgSwitch = /*#__PURE__*/function () {
        function NgSwitch() {
          _classCallCheck2(this, NgSwitch);

          this._defaultUsed = false;
          this._caseCount = 0;
          this._lastCaseCheckIndex = 0;
          this._lastCasesMatched = false;
        }

        _createClass2(NgSwitch, [{
          key: "ngSwitch",
          set: function set(newValue) {
            this._ngSwitch = newValue;

            if (this._caseCount === 0) {
              this._updateDefaultCases(true);
            }
          }
          /** @internal */

        }, {
          key: "_addCase",
          value: function _addCase() {
            return this._caseCount++;
          }
          /** @internal */

        }, {
          key: "_addDefault",
          value: function _addDefault(view) {
            if (!this._defaultViews) {
              this._defaultViews = [];
            }

            this._defaultViews.push(view);
          }
          /** @internal */

        }, {
          key: "_matchCase",
          value: function _matchCase(value) {
            var matched = value == this._ngSwitch;
            this._lastCasesMatched = this._lastCasesMatched || matched;
            this._lastCaseCheckIndex++;

            if (this._lastCaseCheckIndex === this._caseCount) {
              this._updateDefaultCases(!this._lastCasesMatched);

              this._lastCaseCheckIndex = 0;
              this._lastCasesMatched = false;
            }

            return matched;
          }
        }, {
          key: "_updateDefaultCases",
          value: function _updateDefaultCases(useDefault) {
            if (this._defaultViews && useDefault !== this._defaultUsed) {
              this._defaultUsed = useDefault;

              for (var i = 0; i < this._defaultViews.length; i++) {
                var defaultView = this._defaultViews[i];
                defaultView.enforceState(useDefault);
              }
            }
          }
        }]);

        return NgSwitch;
      }();

      NgSwitch.ɵfac = function NgSwitch_Factory(t) {
        return new (t || NgSwitch)();
      };

      NgSwitch.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: NgSwitch,
        selectors: [["", "ngSwitch", ""]],
        inputs: {
          ngSwitch: "ngSwitch"
        }
      });
      NgSwitch.propDecorators = {
        ngSwitch: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgSwitch, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
          args: [{
            selector: '[ngSwitch]'
          }]
        }], function () {
          return [];
        }, {
          ngSwitch: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }]
        });
      })();
      /**
       * @ngModule CommonModule
       *
       * @description
       * Provides a switch case expression to match against an enclosing `ngSwitch` expression.
       * When the expressions match, the given `NgSwitchCase` template is rendered.
       * If multiple match expressions match the switch expression value, all of them are displayed.
       *
       * @usageNotes
       *
       * Within a switch container, `*ngSwitchCase` statements specify the match expressions
       * as attributes. Include `*ngSwitchDefault` as the final case.
       *
       * ```
       * <container-element [ngSwitch]="switch_expression">
       *   <some-element *ngSwitchCase="match_expression_1">...</some-element>
       *   ...
       *   <some-element *ngSwitchDefault>...</some-element>
       * </container-element>
       * ```
       *
       * Each switch-case statement contains an in-line HTML template or template reference
       * that defines the subtree to be selected if the value of the match expression
       * matches the value of the switch expression.
       *
       * Unlike JavaScript, which uses strict equality, Angular uses loose equality.
       * This means that the empty string, `""` matches 0.
       *
       * @publicApi
       * @see `NgSwitch`
       * @see `NgSwitchDefault`
       *
       */


      var NgSwitchCase = /*#__PURE__*/function () {
        function NgSwitchCase(viewContainer, templateRef, ngSwitch) {
          _classCallCheck2(this, NgSwitchCase);

          this.ngSwitch = ngSwitch;

          ngSwitch._addCase();

          this._view = new SwitchView(viewContainer, templateRef);
        }
        /**
         * Performs case matching. For internal use only.
         */


        _createClass2(NgSwitchCase, [{
          key: "ngDoCheck",
          value: function ngDoCheck() {
            this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase));
          }
        }]);

        return NgSwitchCase;
      }();

      NgSwitchCase.ɵfac = function NgSwitchCase_Factory(t) {
        return new (t || NgSwitchCase)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgSwitch, 1));
      };

      NgSwitchCase.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: NgSwitchCase,
        selectors: [["", "ngSwitchCase", ""]],
        inputs: {
          ngSwitchCase: "ngSwitchCase"
        }
      });

      NgSwitchCase.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]
        }, {
          type: NgSwitch,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Host"]
          }]
        }];
      };

      NgSwitchCase.propDecorators = {
        ngSwitchCase: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgSwitchCase, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
          args: [{
            selector: '[ngSwitchCase]'
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]
          }, {
            type: NgSwitch,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Host"]
            }]
          }];
        }, {
          ngSwitchCase: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }]
        });
      })();
      /**
       * @ngModule CommonModule
       *
       * @description
       *
       * Creates a view that is rendered when no `NgSwitchCase` expressions
       * match the `NgSwitch` expression.
       * This statement should be the final case in an `NgSwitch`.
       *
       * @publicApi
       * @see `NgSwitch`
       * @see `NgSwitchCase`
       *
       */


      var NgSwitchDefault = function NgSwitchDefault(viewContainer, templateRef, ngSwitch) {
        _classCallCheck2(this, NgSwitchDefault);

        ngSwitch._addDefault(new SwitchView(viewContainer, templateRef));
      };

      NgSwitchDefault.ɵfac = function NgSwitchDefault_Factory(t) {
        return new (t || NgSwitchDefault)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgSwitch, 1));
      };

      NgSwitchDefault.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: NgSwitchDefault,
        selectors: [["", "ngSwitchDefault", ""]]
      });

      NgSwitchDefault.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]
        }, {
          type: NgSwitch,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Host"]
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgSwitchDefault, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
          args: [{
            selector: '[ngSwitchDefault]'
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]
          }, {
            type: NgSwitch,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Host"]
            }]
          }];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @ngModule CommonModule
       *
       * @usageNotes
       * ```
       * <some-element [ngPlural]="value">
       *   <ng-template ngPluralCase="=0">there is nothing</ng-template>
       *   <ng-template ngPluralCase="=1">there is one</ng-template>
       *   <ng-template ngPluralCase="few">there are a few</ng-template>
       * </some-element>
       * ```
       *
       * @description
       *
       * Adds / removes DOM sub-trees based on a numeric value. Tailored for pluralization.
       *
       * Displays DOM sub-trees that match the switch expression value, or failing that, DOM sub-trees
       * that match the switch expression's pluralization category.
       *
       * To use this directive you must provide a container element that sets the `[ngPlural]` attribute
       * to a switch expression. Inner elements with a `[ngPluralCase]` will display based on their
       * expression:
       * - if `[ngPluralCase]` is set to a value starting with `=`, it will only display if the value
       *   matches the switch expression exactly,
       * - otherwise, the view will be treated as a "category match", and will only display if exact
       *   value matches aren't found and the value maps to its category for the defined locale.
       *
       * See http://cldr.unicode.org/index/cldr-spec/plural-rules
       *
       * @publicApi
       */


      var NgPlural = /*#__PURE__*/function () {
        function NgPlural(_localization) {
          _classCallCheck2(this, NgPlural);

          this._localization = _localization;
          this._caseViews = {};
        }

        _createClass2(NgPlural, [{
          key: "ngPlural",
          set: function set(value) {
            this._switchValue = value;

            this._updateView();
          }
        }, {
          key: "addCase",
          value: function addCase(value, switchView) {
            this._caseViews[value] = switchView;
          }
        }, {
          key: "_updateView",
          value: function _updateView() {
            this._clearViews();

            var cases = Object.keys(this._caseViews);
            var key = getPluralCategory(this._switchValue, cases, this._localization);

            this._activateView(this._caseViews[key]);
          }
        }, {
          key: "_clearViews",
          value: function _clearViews() {
            if (this._activeView) this._activeView.destroy();
          }
        }, {
          key: "_activateView",
          value: function _activateView(view) {
            if (view) {
              this._activeView = view;

              this._activeView.create();
            }
          }
        }]);

        return NgPlural;
      }();

      NgPlural.ɵfac = function NgPlural_Factory(t) {
        return new (t || NgPlural)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgLocalization));
      };

      NgPlural.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: NgPlural,
        selectors: [["", "ngPlural", ""]],
        inputs: {
          ngPlural: "ngPlural"
        }
      });

      NgPlural.ctorParameters = function () {
        return [{
          type: NgLocalization
        }];
      };

      NgPlural.propDecorators = {
        ngPlural: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgPlural, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
          args: [{
            selector: '[ngPlural]'
          }]
        }], function () {
          return [{
            type: NgLocalization
          }];
        }, {
          ngPlural: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }]
        });
      })();
      /**
       * @ngModule CommonModule
       *
       * @description
       *
       * Creates a view that will be added/removed from the parent {@link NgPlural} when the
       * given expression matches the plural expression according to CLDR rules.
       *
       * @usageNotes
       * ```
       * <some-element [ngPlural]="value">
       *   <ng-template ngPluralCase="=0">...</ng-template>
       *   <ng-template ngPluralCase="other">...</ng-template>
       * </some-element>
       *```
       *
       * See {@link NgPlural} for more details and example.
       *
       * @publicApi
       */


      var NgPluralCase = function NgPluralCase(value, template, viewContainer, ngPlural) {
        _classCallCheck2(this, NgPluralCase);

        this.value = value;
        var isANumber = !isNaN(Number(value));
        ngPlural.addCase(isANumber ? "=".concat(value) : value, new SwitchView(viewContainer, template));
      };

      NgPluralCase.ɵfac = function NgPluralCase_Factory(t) {
        return new (t || NgPluralCase)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinjectAttribute"]('ngPluralCase'), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgPlural, 1));
      };

      NgPluralCase.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: NgPluralCase,
        selectors: [["", "ngPluralCase", ""]]
      });

      NgPluralCase.ctorParameters = function () {
        return [{
          type: String,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Attribute"],
            args: ['ngPluralCase']
          }]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"]
        }, {
          type: NgPlural,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Host"]
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgPluralCase, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
          args: [{
            selector: '[ngPluralCase]'
          }]
        }], function () {
          return [{
            type: String,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Attribute"],
              args: ['ngPluralCase']
            }]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"]
          }, {
            type: NgPlural,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Host"]
            }]
          }];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @ngModule CommonModule
       *
       * @usageNotes
       *
       * Set the font of the containing element to the result of an expression.
       *
       * ```
       * <some-element [ngStyle]="{'font-style': styleExp}">...</some-element>
       * ```
       *
       * Set the width of the containing element to a pixel value returned by an expression.
       *
       * ```
       * <some-element [ngStyle]="{'max-width.px': widthExp}">...</some-element>
       * ```
       *
       * Set a collection of style values using an expression that returns key-value pairs.
       *
       * ```
       * <some-element [ngStyle]="objExp">...</some-element>
       * ```
       *
       * @description
       *
       * An attribute directive that updates styles for the containing HTML element.
       * Sets one or more style properties, specified as colon-separated key-value pairs.
       * The key is a style name, with an optional `.<unit>` suffix
       * (such as 'top.px', 'font-style.em').
       * The value is an expression to be evaluated.
       * The resulting non-null value, expressed in the given unit,
       * is assigned to the given style property.
       * If the result of evaluation is null, the corresponding style is removed.
       *
       * @publicApi
       */


      var NgStyle = /*#__PURE__*/function () {
        function NgStyle(_ngEl, _differs, _renderer) {
          _classCallCheck2(this, NgStyle);

          this._ngEl = _ngEl;
          this._differs = _differs;
          this._renderer = _renderer;
          this._ngStyle = null;
          this._differ = null;
        }

        _createClass2(NgStyle, [{
          key: "ngStyle",
          set: function set(values) {
            this._ngStyle = values;

            if (!this._differ && values) {
              this._differ = this._differs.find(values).create();
            }
          }
        }, {
          key: "ngDoCheck",
          value: function ngDoCheck() {
            if (this._differ) {
              var changes = this._differ.diff(this._ngStyle);

              if (changes) {
                this._applyChanges(changes);
              }
            }
          }
        }, {
          key: "_setStyle",
          value: function _setStyle(nameAndUnit, value) {
            var _nameAndUnit$split = nameAndUnit.split('.'),
                _nameAndUnit$split2 = _slicedToArray(_nameAndUnit$split, 2),
                name = _nameAndUnit$split2[0],
                unit = _nameAndUnit$split2[1];

            value = value != null && unit ? "".concat(value).concat(unit) : value;

            if (value != null) {
              this._renderer.setStyle(this._ngEl.nativeElement, name, value);
            } else {
              this._renderer.removeStyle(this._ngEl.nativeElement, name);
            }
          }
        }, {
          key: "_applyChanges",
          value: function _applyChanges(changes) {
            var _this596 = this;

            changes.forEachRemovedItem(function (record) {
              return _this596._setStyle(record.key, null);
            });
            changes.forEachAddedItem(function (record) {
              return _this596._setStyle(record.key, record.currentValue);
            });
            changes.forEachChangedItem(function (record) {
              return _this596._setStyle(record.key, record.currentValue);
            });
          }
        }]);

        return NgStyle;
      }();

      NgStyle.ɵfac = function NgStyle_Factory(t) {
        return new (t || NgStyle)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["KeyValueDiffers"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]));
      };

      NgStyle.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: NgStyle,
        selectors: [["", "ngStyle", ""]],
        inputs: {
          ngStyle: "ngStyle"
        }
      });

      NgStyle.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["KeyValueDiffers"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]
        }];
      };

      NgStyle.propDecorators = {
        ngStyle: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
          args: ['ngStyle']
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgStyle, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
          args: [{
            selector: '[ngStyle]'
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["KeyValueDiffers"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]
          }];
        }, {
          ngStyle: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
            args: ['ngStyle']
          }]
        });
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @ngModule CommonModule
       *
       * @description
       *
       * Inserts an embedded view from a prepared `TemplateRef`.
       *
       * You can attach a context object to the `EmbeddedViewRef` by setting `[ngTemplateOutletContext]`.
       * `[ngTemplateOutletContext]` should be an object, the object's keys will be available for binding
       * by the local template `let` declarations.
       *
       * @usageNotes
       * ```
       * <ng-container *ngTemplateOutlet="templateRefExp; context: contextExp"></ng-container>
       * ```
       *
       * Using the key `$implicit` in the context object will set its value as default.
       *
       * ### Example
       *
       * {@example common/ngTemplateOutlet/ts/module.ts region='NgTemplateOutlet'}
       *
       * @publicApi
       */


      var NgTemplateOutlet = /*#__PURE__*/function () {
        function NgTemplateOutlet(_viewContainerRef) {
          _classCallCheck2(this, NgTemplateOutlet);

          this._viewContainerRef = _viewContainerRef;
          this._viewRef = null;
          /**
           * A context object to attach to the {@link EmbeddedViewRef}. This should be an
           * object, the object's keys will be available for binding by the local template `let`
           * declarations.
           * Using the key `$implicit` in the context object will set its value as default.
           */

          this.ngTemplateOutletContext = null;
          /**
           * A string defining the template reference and optionally the context object for the template.
           */

          this.ngTemplateOutlet = null;
        }

        _createClass2(NgTemplateOutlet, [{
          key: "ngOnChanges",
          value: function ngOnChanges(changes) {
            var recreateView = this._shouldRecreateView(changes);

            if (recreateView) {
              var viewContainerRef = this._viewContainerRef;

              if (this._viewRef) {
                viewContainerRef.remove(viewContainerRef.indexOf(this._viewRef));
              }

              this._viewRef = this.ngTemplateOutlet ? viewContainerRef.createEmbeddedView(this.ngTemplateOutlet, this.ngTemplateOutletContext) : null;
            } else if (this._viewRef && this.ngTemplateOutletContext) {
              this._updateExistingContext(this.ngTemplateOutletContext);
            }
          }
          /**
           * We need to re-create existing embedded view if:
           * - templateRef has changed
           * - context has changes
           *
           * We mark context object as changed when the corresponding object
           * shape changes (new properties are added or existing properties are removed).
           * In other words we consider context with the same properties as "the same" even
           * if object reference changes (see https://github.com/angular/angular/issues/13407).
           */

        }, {
          key: "_shouldRecreateView",
          value: function _shouldRecreateView(changes) {
            var ctxChange = changes['ngTemplateOutletContext'];
            return !!changes['ngTemplateOutlet'] || ctxChange && this._hasContextShapeChanged(ctxChange);
          }
        }, {
          key: "_hasContextShapeChanged",
          value: function _hasContextShapeChanged(ctxChange) {
            var prevCtxKeys = Object.keys(ctxChange.previousValue || {});
            var currCtxKeys = Object.keys(ctxChange.currentValue || {});

            if (prevCtxKeys.length === currCtxKeys.length) {
              var _iterator72 = _createForOfIteratorHelper(currCtxKeys),
                  _step71;

              try {
                for (_iterator72.s(); !(_step71 = _iterator72.n()).done;) {
                  var propName = _step71.value;

                  if (prevCtxKeys.indexOf(propName) === -1) {
                    return true;
                  }
                }
              } catch (err) {
                _iterator72.e(err);
              } finally {
                _iterator72.f();
              }

              return false;
            }

            return true;
          }
        }, {
          key: "_updateExistingContext",
          value: function _updateExistingContext(ctx) {
            for (var _i37 = 0, _Object$keys3 = Object.keys(ctx); _i37 < _Object$keys3.length; _i37++) {
              var propName = _Object$keys3[_i37];
              this._viewRef.context[propName] = this.ngTemplateOutletContext[propName];
            }
          }
        }]);

        return NgTemplateOutlet;
      }();

      NgTemplateOutlet.ɵfac = function NgTemplateOutlet_Factory(t) {
        return new (t || NgTemplateOutlet)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"]));
      };

      NgTemplateOutlet.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: NgTemplateOutlet,
        selectors: [["", "ngTemplateOutlet", ""]],
        inputs: {
          ngTemplateOutletContext: "ngTemplateOutletContext",
          ngTemplateOutlet: "ngTemplateOutlet"
        },
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]]
      });

      NgTemplateOutlet.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"]
        }];
      };

      NgTemplateOutlet.propDecorators = {
        ngTemplateOutletContext: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }],
        ngTemplateOutlet: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgTemplateOutlet, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
          args: [{
            selector: '[ngTemplateOutlet]'
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"]
          }];
        }, {
          ngTemplateOutletContext: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }],
          ngTemplateOutlet: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }]
        });
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * A collection of Angular directives that are likely to be used in each and every Angular
       * application.
       */


      var COMMON_DIRECTIVES = [NgClass, NgComponentOutlet, NgForOf, NgIf, NgTemplateOutlet, NgStyle, NgSwitch, NgSwitchCase, NgSwitchDefault, NgPlural, NgPluralCase];
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      function invalidPipeArgumentError(type, value) {
        return Error("InvalidPipeArgument: '".concat(value, "' for pipe '").concat(Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵstringify"])(type), "'"));
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var ObservableStrategy = /*#__PURE__*/function () {
        function ObservableStrategy() {
          _classCallCheck2(this, ObservableStrategy);
        }

        _createClass2(ObservableStrategy, [{
          key: "createSubscription",
          value: function createSubscription(async, updateLatestValue) {
            return async.subscribe({
              next: updateLatestValue,
              error: function error(e) {
                throw e;
              }
            });
          }
        }, {
          key: "dispose",
          value: function dispose(subscription) {
            subscription.unsubscribe();
          }
        }, {
          key: "onDestroy",
          value: function onDestroy(subscription) {
            subscription.unsubscribe();
          }
        }]);

        return ObservableStrategy;
      }();

      var PromiseStrategy = /*#__PURE__*/function () {
        function PromiseStrategy() {
          _classCallCheck2(this, PromiseStrategy);
        }

        _createClass2(PromiseStrategy, [{
          key: "createSubscription",
          value: function createSubscription(async, updateLatestValue) {
            return async.then(updateLatestValue, function (e) {
              throw e;
            });
          }
        }, {
          key: "dispose",
          value: function dispose(subscription) {}
        }, {
          key: "onDestroy",
          value: function onDestroy(subscription) {}
        }]);

        return PromiseStrategy;
      }();

      var _promiseStrategy = new PromiseStrategy();

      var _observableStrategy = new ObservableStrategy();
      /**
       * @ngModule CommonModule
       * @description
       *
       * Unwraps a value from an asynchronous primitive.
       *
       * The `async` pipe subscribes to an `Observable` or `Promise` and returns the latest value it has
       * emitted. When a new value is emitted, the `async` pipe marks the component to be checked for
       * changes. When the component gets destroyed, the `async` pipe unsubscribes automatically to avoid
       * potential memory leaks.
       *
       * @usageNotes
       *
       * ### Examples
       *
       * This example binds a `Promise` to the view. Clicking the `Resolve` button resolves the
       * promise.
       *
       * {@example common/pipes/ts/async_pipe.ts region='AsyncPipePromise'}
       *
       * It's also possible to use `async` with Observables. The example below binds the `time` Observable
       * to the view. The Observable continuously updates the view with the current time.
       *
       * {@example common/pipes/ts/async_pipe.ts region='AsyncPipeObservable'}
       *
       * @publicApi
       */


      var AsyncPipe = /*#__PURE__*/function () {
        function AsyncPipe(_ref) {
          _classCallCheck2(this, AsyncPipe);

          this._ref = _ref;
          this._latestValue = null;
          this._subscription = null;
          this._obj = null;
          this._strategy = null;
        }

        _createClass2(AsyncPipe, [{
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            if (this._subscription) {
              this._dispose();
            }
          }
        }, {
          key: "transform",
          value: function transform(obj) {
            if (!this._obj) {
              if (obj) {
                this._subscribe(obj);
              }

              return this._latestValue;
            }

            if (obj !== this._obj) {
              this._dispose();

              return this.transform(obj);
            }

            return this._latestValue;
          }
        }, {
          key: "_subscribe",
          value: function _subscribe(obj) {
            var _this597 = this;

            this._obj = obj;
            this._strategy = this._selectStrategy(obj);
            this._subscription = this._strategy.createSubscription(obj, function (value) {
              return _this597._updateLatestValue(obj, value);
            });
          }
        }, {
          key: "_selectStrategy",
          value: function _selectStrategy(obj) {
            if (Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵisPromise"])(obj)) {
              return _promiseStrategy;
            }

            if (Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵisObservable"])(obj)) {
              return _observableStrategy;
            }

            throw invalidPipeArgumentError(AsyncPipe, obj);
          }
        }, {
          key: "_dispose",
          value: function _dispose() {
            this._strategy.dispose(this._subscription);

            this._latestValue = null;
            this._subscription = null;
            this._obj = null;
          }
        }, {
          key: "_updateLatestValue",
          value: function _updateLatestValue(async, value) {
            if (async === this._obj) {
              this._latestValue = value;

              this._ref.markForCheck();
            }
          }
        }]);

        return AsyncPipe;
      }();

      AsyncPipe.ɵfac = function AsyncPipe_Factory(t) {
        return new (t || AsyncPipe)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinjectPipeChangeDetectorRef"]());
      };

      AsyncPipe.ɵpipe = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefinePipe"]({
        name: "async",
        type: AsyncPipe,
        pure: false
      });

      AsyncPipe.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](AsyncPipe, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Pipe"],
          args: [{
            name: 'async',
            pure: false
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"]
          }];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Transforms text to all lower case.
       *
       * @see `UpperCasePipe`
       * @see `TitleCasePipe`
       * @usageNotes
       *
       * The following example defines a view that allows the user to enter
       * text, and then uses the pipe to convert the input text to all lower case.
       *
       * <code-example path="common/pipes/ts/lowerupper_pipe.ts" region='LowerUpperPipe'></code-example>
       *
       * @ngModule CommonModule
       * @publicApi
       */


      var LowerCasePipe = /*#__PURE__*/function () {
        function LowerCasePipe() {
          _classCallCheck2(this, LowerCasePipe);
        }

        _createClass2(LowerCasePipe, [{
          key: "transform",
          value: function transform(value) {
            if (value == null) return null;

            if (typeof value !== 'string') {
              throw invalidPipeArgumentError(LowerCasePipe, value);
            }

            return value.toLowerCase();
          }
        }]);

        return LowerCasePipe;
      }();

      LowerCasePipe.ɵfac = function LowerCasePipe_Factory(t) {
        return new (t || LowerCasePipe)();
      };

      LowerCasePipe.ɵpipe = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefinePipe"]({
        name: "lowercase",
        type: LowerCasePipe,
        pure: true
      });
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](LowerCasePipe, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Pipe"],
          args: [{
            name: 'lowercase'
          }]
        }], null, null);
      })(); //
      // Regex below matches any Unicode word and compatible with ES5. In ES2018 the same result
      // can be achieved by using /\p{L}\S*/gu and also known as Unicode Property Escapes
      // (http://2ality.com/2017/07/regexp-unicode-property-escapes.html). Since there is no
      // transpilation of this functionality down to ES5 without external tool, the only solution is
      // to use already transpiled form. Example can be found here -
      // https://mothereff.in/regexpu#input=var+regex+%3D+/%5Cp%7BL%7D/u%3B&unicodePropertyEscape=1
      //


      var unicodeWordMatch = /(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D])\S*/g;
      /**
       * Transforms text to title case.
       * Capitalizes the first letter of each word and transforms the
       * rest of the word to lower case.
       * Words are delimited by any whitespace character, such as a space, tab, or line-feed character.
       *
       * @see `LowerCasePipe`
       * @see `UpperCasePipe`
       *
       * @usageNotes
       * The following example shows the result of transforming various strings into title case.
       *
       * <code-example path="common/pipes/ts/titlecase_pipe.ts" region='TitleCasePipe'></code-example>
       *
       * @ngModule CommonModule
       * @publicApi
       */

      var TitleCasePipe = /*#__PURE__*/function () {
        function TitleCasePipe() {
          _classCallCheck2(this, TitleCasePipe);
        }

        _createClass2(TitleCasePipe, [{
          key: "transform",
          value: function transform(value) {
            if (value == null) return null;

            if (typeof value !== 'string') {
              throw invalidPipeArgumentError(TitleCasePipe, value);
            }

            return value.replace(unicodeWordMatch, function (txt) {
              return txt[0].toUpperCase() + txt.substr(1).toLowerCase();
            });
          }
        }]);

        return TitleCasePipe;
      }();

      TitleCasePipe.ɵfac = function TitleCasePipe_Factory(t) {
        return new (t || TitleCasePipe)();
      };

      TitleCasePipe.ɵpipe = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefinePipe"]({
        name: "titlecase",
        type: TitleCasePipe,
        pure: true
      });
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](TitleCasePipe, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Pipe"],
          args: [{
            name: 'titlecase'
          }]
        }], null, null);
      })();
      /**
       * Transforms text to all upper case.
       * @see `LowerCasePipe`
       * @see `TitleCasePipe`
       *
       * @ngModule CommonModule
       * @publicApi
       */


      var UpperCasePipe = /*#__PURE__*/function () {
        function UpperCasePipe() {
          _classCallCheck2(this, UpperCasePipe);
        }

        _createClass2(UpperCasePipe, [{
          key: "transform",
          value: function transform(value) {
            if (value == null) return null;

            if (typeof value !== 'string') {
              throw invalidPipeArgumentError(UpperCasePipe, value);
            }

            return value.toUpperCase();
          }
        }]);

        return UpperCasePipe;
      }();

      UpperCasePipe.ɵfac = function UpperCasePipe_Factory(t) {
        return new (t || UpperCasePipe)();
      };

      UpperCasePipe.ɵpipe = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefinePipe"]({
        name: "uppercase",
        type: UpperCasePipe,
        pure: true
      });
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](UpperCasePipe, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Pipe"],
          args: [{
            name: 'uppercase'
          }]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */
      // clang-format off

      /**
       * @ngModule CommonModule
       * @description
       *
       * Formats a date value according to locale rules.
       *
       * Only the `en-US` locale data comes with Angular. To localize dates
       * in another language, you must import the corresponding locale data.
       * See the [I18n guide](guide/i18n#i18n-pipes) for more information.
       *
       * @see `formatDate()`
       *
       *
       * @usageNotes
       *
       * The result of this pipe is not reevaluated when the input is mutated. To avoid the need to
       * reformat the date on every change-detection cycle, treat the date as an immutable object
       * and change the reference when the pipe needs to run again.
       *
       * ### Pre-defined format options
       *
       * Examples are given in `en-US` locale.
       *
       * - `'short'`: equivalent to `'M/d/yy, h:mm a'` (`6/15/15, 9:03 AM`).
       * - `'medium'`: equivalent to `'MMM d, y, h:mm:ss a'` (`Jun 15, 2015, 9:03:01 AM`).
       * - `'long'`: equivalent to `'MMMM d, y, h:mm:ss a z'` (`June 15, 2015 at 9:03:01 AM
       * GMT+1`).
       * - `'full'`: equivalent to `'EEEE, MMMM d, y, h:mm:ss a zzzz'` (`Monday, June 15, 2015 at
       * 9:03:01 AM GMT+01:00`).
       * - `'shortDate'`: equivalent to `'M/d/yy'` (`6/15/15`).
       * - `'mediumDate'`: equivalent to `'MMM d, y'` (`Jun 15, 2015`).
       * - `'longDate'`: equivalent to `'MMMM d, y'` (`June 15, 2015`).
       * - `'fullDate'`: equivalent to `'EEEE, MMMM d, y'` (`Monday, June 15, 2015`).
       * - `'shortTime'`: equivalent to `'h:mm a'` (`9:03 AM`).
       * - `'mediumTime'`: equivalent to `'h:mm:ss a'` (`9:03:01 AM`).
       * - `'longTime'`: equivalent to `'h:mm:ss a z'` (`9:03:01 AM GMT+1`).
       * - `'fullTime'`: equivalent to `'h:mm:ss a zzzz'` (`9:03:01 AM GMT+01:00`).
       *
       * ### Custom format options
       *
       * You can construct a format string using symbols to specify the components
       * of a date-time value, as described in the following table.
       * Format details depend on the locale.
       * Fields marked with (*) are only available in the extra data set for the given locale.
       *
       *  | Field type         | Format      | Description                                                   | Example Value                                              |
       *  |--------------------|-------------|---------------------------------------------------------------|------------------------------------------------------------|
       *  | Era                | G, GG & GGG | Abbreviated                                                   | AD                                                         |
       *  |                    | GGGG        | Wide                                                          | Anno Domini                                                |
       *  |                    | GGGGG       | Narrow                                                        | A                                                          |
       *  | Year               | y           | Numeric: minimum digits                                       | 2, 20, 201, 2017, 20173                                    |
       *  |                    | yy          | Numeric: 2 digits + zero padded                               | 02, 20, 01, 17, 73                                         |
       *  |                    | yyy         | Numeric: 3 digits + zero padded                               | 002, 020, 201, 2017, 20173                                 |
       *  |                    | yyyy        | Numeric: 4 digits or more + zero padded                       | 0002, 0020, 0201, 2017, 20173                              |
       *  | Week-numbering year| Y           | Numeric: minimum digits                                       | 2, 20, 201, 2017, 20173                                    |
       *  |                    | YY          | Numeric: 2 digits + zero padded                               | 02, 20, 01, 17, 73                                         |
       *  |                    | YYY         | Numeric: 3 digits + zero padded                               | 002, 020, 201, 2017, 20173                                 |
       *  |                    | YYYY        | Numeric: 4 digits or more + zero padded                       | 0002, 0020, 0201, 2017, 20173                              |
       *  | Month              | M           | Numeric: 1 digit                                              | 9, 12                                                      |
       *  |                    | MM          | Numeric: 2 digits + zero padded                               | 09, 12                                                     |
       *  |                    | MMM         | Abbreviated                                                   | Sep                                                        |
       *  |                    | MMMM        | Wide                                                          | September                                                  |
       *  |                    | MMMMM       | Narrow                                                        | S                                                          |
       *  | Month standalone   | L           | Numeric: 1 digit                                              | 9, 12                                                      |
       *  |                    | LL          | Numeric: 2 digits + zero padded                               | 09, 12                                                     |
       *  |                    | LLL         | Abbreviated                                                   | Sep                                                        |
       *  |                    | LLLL        | Wide                                                          | September                                                  |
       *  |                    | LLLLL       | Narrow                                                        | S                                                          |
       *  | Week of year       | w           | Numeric: minimum digits                                       | 1... 53                                                    |
       *  |                    | ww          | Numeric: 2 digits + zero padded                               | 01... 53                                                   |
       *  | Week of month      | W           | Numeric: 1 digit                                              | 1... 5                                                     |
       *  | Day of month       | d           | Numeric: minimum digits                                       | 1                                                          |
       *  |                    | dd          | Numeric: 2 digits + zero padded                               | 01                                                          |
       *  | Week day           | E, EE & EEE | Abbreviated                                                   | Tue                                                        |
       *  |                    | EEEE        | Wide                                                          | Tuesday                                                    |
       *  |                    | EEEEE       | Narrow                                                        | T                                                          |
       *  |                    | EEEEEE      | Short                                                         | Tu                                                         |
       *  | Period             | a, aa & aaa | Abbreviated                                                   | am/pm or AM/PM                                             |
       *  |                    | aaaa        | Wide (fallback to `a` when missing)                           | ante meridiem/post meridiem                                |
       *  |                    | aaaaa       | Narrow                                                        | a/p                                                        |
       *  | Period*            | B, BB & BBB | Abbreviated                                                   | mid.                                                       |
       *  |                    | BBBB        | Wide                                                          | am, pm, midnight, noon, morning, afternoon, evening, night |
       *  |                    | BBBBB       | Narrow                                                        | md                                                         |
       *  | Period standalone* | b, bb & bbb | Abbreviated                                                   | mid.                                                       |
       *  |                    | bbbb        | Wide                                                          | am, pm, midnight, noon, morning, afternoon, evening, night |
       *  |                    | bbbbb       | Narrow                                                        | md                                                         |
       *  | Hour 1-12          | h           | Numeric: minimum digits                                       | 1, 12                                                      |
       *  |                    | hh          | Numeric: 2 digits + zero padded                               | 01, 12                                                     |
       *  | Hour 0-23          | H           | Numeric: minimum digits                                       | 0, 23                                                      |
       *  |                    | HH          | Numeric: 2 digits + zero padded                               | 00, 23                                                     |
       *  | Minute             | m           | Numeric: minimum digits                                       | 8, 59                                                      |
       *  |                    | mm          | Numeric: 2 digits + zero padded                               | 08, 59                                                     |
       *  | Second             | s           | Numeric: minimum digits                                       | 0... 59                                                    |
       *  |                    | ss          | Numeric: 2 digits + zero padded                               | 00... 59                                                   |
       *  | Fractional seconds | S           | Numeric: 1 digit                                              | 0... 9                                                     |
       *  |                    | SS          | Numeric: 2 digits + zero padded                               | 00... 99                                                   |
       *  |                    | SSS         | Numeric: 3 digits + zero padded (= milliseconds)              | 000... 999                                                 |
       *  | Zone               | z, zz & zzz | Short specific non location format (fallback to O)            | GMT-8                                                      |
       *  |                    | zzzz        | Long specific non location format (fallback to OOOO)          | GMT-08:00                                                  |
       *  |                    | Z, ZZ & ZZZ | ISO8601 basic format                                          | -0800                                                      |
       *  |                    | ZZZZ        | Long localized GMT format                                     | GMT-8:00                                                   |
       *  |                    | ZZZZZ       | ISO8601 extended format + Z indicator for offset 0 (= XXXXX)  | -08:00                                                     |
       *  |                    | O, OO & OOO | Short localized GMT format                                    | GMT-8                                                      |
       *  |                    | OOOO        | Long localized GMT format                                     | GMT-08:00                                                  |
       *
       * Note that timezone correction is not applied to an ISO string that has no time component, such as "2016-09-19"
       *
       * ### Format examples
       *
       * These examples transform a date into various formats,
       * assuming that `dateObj` is a JavaScript `Date` object for
       * year: 2015, month: 6, day: 15, hour: 21, minute: 43, second: 11,
       * given in the local time for the `en-US` locale.
       *
       * ```
       * {{ dateObj | date }}               // output is 'Jun 15, 2015'
       * {{ dateObj | date:'medium' }}      // output is 'Jun 15, 2015, 9:43:11 PM'
       * {{ dateObj | date:'shortTime' }}   // output is '9:43 PM'
       * {{ dateObj | date:'mm:ss' }}       // output is '43:11'
       * ```
       *
       * ### Usage example
       *
       * The following component uses a date pipe to display the current date in different formats.
       *
       * ```
       * @Component({
       *  selector: 'date-pipe',
       *  template: `<div>
       *    <p>Today is {{today | date}}</p>
       *    <p>Or if you prefer, {{today | date:'fullDate'}}</p>
       *    <p>The time is {{today | date:'h:mm a z'}}</p>
       *  </div>`
       * })
       * // Get the current date and time as a date-time value.
       * export class DatePipeComponent {
       *   today: number = Date.now();
       * }
       * ```
       *
       * @publicApi
       */
      // clang-format on


      var DatePipe = /*#__PURE__*/function () {
        function DatePipe(locale) {
          _classCallCheck2(this, DatePipe);

          this.locale = locale;
        }

        _createClass2(DatePipe, [{
          key: "transform",
          value: function transform(value) {
            var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'mediumDate';
            var timezone = arguments.length > 2 ? arguments[2] : undefined;
            var locale = arguments.length > 3 ? arguments[3] : undefined;
            if (value == null || value === '' || value !== value) return null;

            try {
              return formatDate(value, format, locale || this.locale, timezone);
            } catch (error) {
              throw invalidPipeArgumentError(DatePipe, error.message);
            }
          }
        }]);

        return DatePipe;
      }();

      DatePipe.ɵfac = function DatePipe_Factory(t) {
        return new (t || DatePipe)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["LOCALE_ID"]));
      };

      DatePipe.ɵpipe = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefinePipe"]({
        name: "date",
        type: DatePipe,
        pure: true
      });

      DatePipe.ctorParameters = function () {
        return [{
          type: String,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["LOCALE_ID"]]
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](DatePipe, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Pipe"],
          args: [{
            name: 'date',
            pure: true
          }]
        }], function () {
          return [{
            type: String,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["LOCALE_ID"]]
            }]
          }];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var _INTERPOLATION_REGEXP = /#/g;
      /**
       * @ngModule CommonModule
       * @description
       *
       * Maps a value to a string that pluralizes the value according to locale rules.
       *
       * @usageNotes
       *
       * ### Example
       *
       * {@example common/pipes/ts/i18n_pipe.ts region='I18nPluralPipeComponent'}
       *
       * @publicApi
       */

      var I18nPluralPipe = /*#__PURE__*/function () {
        function I18nPluralPipe(_localization) {
          _classCallCheck2(this, I18nPluralPipe);

          this._localization = _localization;
        }
        /**
         * @param value the number to be formatted
         * @param pluralMap an object that mimics the ICU format, see
         * http://userguide.icu-project.org/formatparse/messages.
         * @param locale a `string` defining the locale to use (uses the current {@link LOCALE_ID} by
         * default).
         */


        _createClass2(I18nPluralPipe, [{
          key: "transform",
          value: function transform(value, pluralMap, locale) {
            if (value == null) return '';

            if (typeof pluralMap !== 'object' || pluralMap === null) {
              throw invalidPipeArgumentError(I18nPluralPipe, pluralMap);
            }

            var key = getPluralCategory(value, Object.keys(pluralMap), this._localization, locale);
            return pluralMap[key].replace(_INTERPOLATION_REGEXP, value.toString());
          }
        }]);

        return I18nPluralPipe;
      }();

      I18nPluralPipe.ɵfac = function I18nPluralPipe_Factory(t) {
        return new (t || I18nPluralPipe)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgLocalization));
      };

      I18nPluralPipe.ɵpipe = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefinePipe"]({
        name: "i18nPlural",
        type: I18nPluralPipe,
        pure: true
      });

      I18nPluralPipe.ctorParameters = function () {
        return [{
          type: NgLocalization
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](I18nPluralPipe, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Pipe"],
          args: [{
            name: 'i18nPlural',
            pure: true
          }]
        }], function () {
          return [{
            type: NgLocalization
          }];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @ngModule CommonModule
       * @description
       *
       * Generic selector that displays the string that matches the current value.
       *
       * If none of the keys of the `mapping` match the `value`, then the content
       * of the `other` key is returned when present, otherwise an empty string is returned.
       *
       * @usageNotes
       *
       * ### Example
       *
       * {@example common/pipes/ts/i18n_pipe.ts region='I18nSelectPipeComponent'}
       *
       * @publicApi
       */


      var I18nSelectPipe = /*#__PURE__*/function () {
        function I18nSelectPipe() {
          _classCallCheck2(this, I18nSelectPipe);
        }

        _createClass2(I18nSelectPipe, [{
          key: "transform",
          value:
          /**
           * @param value a string to be internationalized.
           * @param mapping an object that indicates the text that should be displayed
           * for different values of the provided `value`.
           */
          function transform(value, mapping) {
            if (value == null) return '';

            if (typeof mapping !== 'object' || typeof value !== 'string') {
              throw invalidPipeArgumentError(I18nSelectPipe, mapping);
            }

            if (mapping.hasOwnProperty(value)) {
              return mapping[value];
            }

            if (mapping.hasOwnProperty('other')) {
              return mapping['other'];
            }

            return '';
          }
        }]);

        return I18nSelectPipe;
      }();

      I18nSelectPipe.ɵfac = function I18nSelectPipe_Factory(t) {
        return new (t || I18nSelectPipe)();
      };

      I18nSelectPipe.ɵpipe = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefinePipe"]({
        name: "i18nSelect",
        type: I18nSelectPipe,
        pure: true
      });
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](I18nSelectPipe, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Pipe"],
          args: [{
            name: 'i18nSelect',
            pure: true
          }]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @ngModule CommonModule
       * @description
       *
       * Converts a value into its JSON-format representation.  Useful for debugging.
       *
       * @usageNotes
       *
       * The following component uses a JSON pipe to convert an object
       * to JSON format, and displays the string in both formats for comparison.
       *
       * {@example common/pipes/ts/json_pipe.ts region='JsonPipe'}
       *
       * @publicApi
       */


      var JsonPipe = /*#__PURE__*/function () {
        function JsonPipe() {
          _classCallCheck2(this, JsonPipe);
        }

        _createClass2(JsonPipe, [{
          key: "transform",
          value:
          /**
           * @param value A value of any type to convert into a JSON-format string.
           */
          function transform(value) {
            return JSON.stringify(value, null, 2);
          }
        }]);

        return JsonPipe;
      }();

      JsonPipe.ɵfac = function JsonPipe_Factory(t) {
        return new (t || JsonPipe)();
      };

      JsonPipe.ɵpipe = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefinePipe"]({
        name: "json",
        type: JsonPipe,
        pure: false
      });
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](JsonPipe, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Pipe"],
          args: [{
            name: 'json',
            pure: false
          }]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function makeKeyValuePair(key, value) {
        return {
          key: key,
          value: value
        };
      }
      /**
       * @ngModule CommonModule
       * @description
       *
       * Transforms Object or Map into an array of key value pairs.
       *
       * The output array will be ordered by keys.
       * By default the comparator will be by Unicode point value.
       * You can optionally pass a compareFn if your keys are complex types.
       *
       * @usageNotes
       * ### Examples
       *
       * This examples show how an Object or a Map can be iterated by ngFor with the use of this
       * keyvalue pipe.
       *
       * {@example common/pipes/ts/keyvalue_pipe.ts region='KeyValuePipe'}
       *
       * @publicApi
       */


      var KeyValuePipe = /*#__PURE__*/function () {
        function KeyValuePipe(differs) {
          _classCallCheck2(this, KeyValuePipe);

          this.differs = differs;
          this.keyValues = [];
        }

        _createClass2(KeyValuePipe, [{
          key: "transform",
          value: function transform(input) {
            var _this598 = this;

            var compareFn = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultComparator;

            if (!input || !(input instanceof Map) && typeof input !== 'object') {
              return null;
            }

            if (!this.differ) {
              // make a differ for whatever type we've been passed in
              this.differ = this.differs.find(input).create();
            }

            var differChanges = this.differ.diff(input);

            if (differChanges) {
              this.keyValues = [];
              differChanges.forEachItem(function (r) {
                _this598.keyValues.push(makeKeyValuePair(r.key, r.currentValue));
              });
              this.keyValues.sort(compareFn);
            }

            return this.keyValues;
          }
        }]);

        return KeyValuePipe;
      }();

      KeyValuePipe.ɵfac = function KeyValuePipe_Factory(t) {
        return new (t || KeyValuePipe)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["KeyValueDiffers"]));
      };

      KeyValuePipe.ɵpipe = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefinePipe"]({
        name: "keyvalue",
        type: KeyValuePipe,
        pure: false
      });

      KeyValuePipe.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["KeyValueDiffers"]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](KeyValuePipe, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Pipe"],
          args: [{
            name: 'keyvalue',
            pure: false
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["KeyValueDiffers"]
          }];
        }, null);
      })();

      function defaultComparator(keyValueA, keyValueB) {
        var a = keyValueA.key;
        var b = keyValueB.key; // if same exit with 0;

        if (a === b) return 0; // make sure that undefined are at the end of the sort.

        if (a === undefined) return 1;
        if (b === undefined) return -1; // make sure that nulls are at the end of the sort.

        if (a === null) return 1;
        if (b === null) return -1;

        if (typeof a == 'string' && typeof b == 'string') {
          return a < b ? -1 : 1;
        }

        if (typeof a == 'number' && typeof b == 'number') {
          return a - b;
        }

        if (typeof a == 'boolean' && typeof b == 'boolean') {
          return a < b ? -1 : 1;
        } // `a` and `b` are of different types. Compare their string values.


        var aString = String(a);
        var bString = String(b);
        return aString == bString ? 0 : aString < bString ? -1 : 1;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @ngModule CommonModule
       * @description
       *
       * Transforms a number into a string,
       * formatted according to locale rules that determine group sizing and
       * separator, decimal-point character, and other locale-specific
       * configurations.
       *
       * If no parameters are specified, the function rounds off to the nearest value using this
       * [rounding method](https://en.wikibooks.org/wiki/Arithmetic/Rounding).
       * The behavior differs from that of the JavaScript ```Math.round()``` function.
       * In the following case for example, the pipe rounds down where
       * ```Math.round()``` rounds up:
       *
       * ```html
       * -2.5 | number:'1.0-0'
       * > -3
       * Math.round(-2.5)
       * > -2
       * ```
       *
       * @see `formatNumber()`
       *
       * @usageNotes
       * The following code shows how the pipe transforms numbers
       * into text strings, according to various format specifications,
       * where the caller's default locale is `en-US`.
       *
       * ### Example
       *
       * <code-example path="common/pipes/ts/number_pipe.ts" region='NumberPipe'></code-example>
       *
       * @publicApi
       */


      var DecimalPipe = /*#__PURE__*/function () {
        function DecimalPipe(_locale) {
          _classCallCheck2(this, DecimalPipe);

          this._locale = _locale;
        }

        _createClass2(DecimalPipe, [{
          key: "transform",
          value: function transform(value, digitsInfo, locale) {
            if (!isValue(value)) return null;
            locale = locale || this._locale;

            try {
              var num = strToNumber(value);
              return formatNumber(num, locale, digitsInfo);
            } catch (error) {
              throw invalidPipeArgumentError(DecimalPipe, error.message);
            }
          }
        }]);

        return DecimalPipe;
      }();

      DecimalPipe.ɵfac = function DecimalPipe_Factory(t) {
        return new (t || DecimalPipe)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["LOCALE_ID"]));
      };

      DecimalPipe.ɵpipe = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefinePipe"]({
        name: "number",
        type: DecimalPipe,
        pure: true
      });

      DecimalPipe.ctorParameters = function () {
        return [{
          type: String,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["LOCALE_ID"]]
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](DecimalPipe, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Pipe"],
          args: [{
            name: 'number'
          }]
        }], function () {
          return [{
            type: String,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["LOCALE_ID"]]
            }]
          }];
        }, null);
      })();
      /**
       * @ngModule CommonModule
       * @description
       *
       * Transforms a number to a percentage
       * string, formatted according to locale rules that determine group sizing and
       * separator, decimal-point character, and other locale-specific
       * configurations.
       *
       * @see `formatPercent()`
       *
       * @usageNotes
       * The following code shows how the pipe transforms numbers
       * into text strings, according to various format specifications,
       * where the caller's default locale is `en-US`.
       *
       * <code-example path="common/pipes/ts/percent_pipe.ts" region='PercentPipe'></code-example>
       *
       * @publicApi
       */


      var PercentPipe = /*#__PURE__*/function () {
        function PercentPipe(_locale) {
          _classCallCheck2(this, PercentPipe);

          this._locale = _locale;
        }

        _createClass2(PercentPipe, [{
          key: "transform",
          value: function transform(value, digitsInfo, locale) {
            if (!isValue(value)) return null;
            locale = locale || this._locale;

            try {
              var num = strToNumber(value);
              return formatPercent(num, locale, digitsInfo);
            } catch (error) {
              throw invalidPipeArgumentError(PercentPipe, error.message);
            }
          }
        }]);

        return PercentPipe;
      }();

      PercentPipe.ɵfac = function PercentPipe_Factory(t) {
        return new (t || PercentPipe)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["LOCALE_ID"]));
      };

      PercentPipe.ɵpipe = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefinePipe"]({
        name: "percent",
        type: PercentPipe,
        pure: true
      });

      PercentPipe.ctorParameters = function () {
        return [{
          type: String,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["LOCALE_ID"]]
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](PercentPipe, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Pipe"],
          args: [{
            name: 'percent'
          }]
        }], function () {
          return [{
            type: String,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["LOCALE_ID"]]
            }]
          }];
        }, null);
      })();
      /**
       * @ngModule CommonModule
       * @description
       *
       * Transforms a number to a currency string, formatted according to locale rules
       * that determine group sizing and separator, decimal-point character,
       * and other locale-specific configurations.
       *
       * {@a currency-code-deprecation}
       * <div class="alert is-helpful">
       *
       * **Deprecation notice:**
       *
       * The default currency code is currently always `USD` but this is deprecated from v9.
       *
       * **In v11 the default currency code will be taken from the current locale identified by
       * the `LOCAL_ID` token. See the [i18n guide](guide/i18n#setting-up-the-locale-of-your-app) for
       * more information.**
       *
       * If you need the previous behavior then set it by creating a `DEFAULT_CURRENCY_CODE` provider in
       * your application `NgModule`:
       *
       * ```ts
       * {provide: DEFAULT_CURRENCY_CODE, useValue: 'USD'}
       * ```
       *
       * </div>
       *
       * @see `getCurrencySymbol()`
       * @see `formatCurrency()`
       *
       * @usageNotes
       * The following code shows how the pipe transforms numbers
       * into text strings, according to various format specifications,
       * where the caller's default locale is `en-US`.
       *
       * <code-example path="common/pipes/ts/currency_pipe.ts" region='CurrencyPipe'></code-example>
       *
       * @publicApi
       */


      var CurrencyPipe = /*#__PURE__*/function () {
        function CurrencyPipe(_locale) {
          var _defaultCurrencyCode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'USD';

          _classCallCheck2(this, CurrencyPipe);

          this._locale = _locale;
          this._defaultCurrencyCode = _defaultCurrencyCode;
        }

        _createClass2(CurrencyPipe, [{
          key: "transform",
          value: function transform(value, currencyCode) {
            var display = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'symbol';
            var digitsInfo = arguments.length > 3 ? arguments[3] : undefined;
            var locale = arguments.length > 4 ? arguments[4] : undefined;
            if (!isValue(value)) return null;
            locale = locale || this._locale;

            if (typeof display === 'boolean') {
              if (console && console.warn) {
                console.warn("Warning: the currency pipe has been changed in Angular v5. The symbolDisplay option (third parameter) is now a string instead of a boolean. The accepted values are \"code\", \"symbol\" or \"symbol-narrow\".");
              }

              display = display ? 'symbol' : 'code';
            }

            var currency = currencyCode || this._defaultCurrencyCode;

            if (display !== 'code') {
              if (display === 'symbol' || display === 'symbol-narrow') {
                currency = getCurrencySymbol(currency, display === 'symbol' ? 'wide' : 'narrow', locale);
              } else {
                currency = display;
              }
            }

            try {
              var num = strToNumber(value);
              return formatCurrency(num, locale, currency, currencyCode, digitsInfo);
            } catch (error) {
              throw invalidPipeArgumentError(CurrencyPipe, error.message);
            }
          }
        }]);

        return CurrencyPipe;
      }();

      CurrencyPipe.ɵfac = function CurrencyPipe_Factory(t) {
        return new (t || CurrencyPipe)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["LOCALE_ID"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["DEFAULT_CURRENCY_CODE"]));
      };

      CurrencyPipe.ɵpipe = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefinePipe"]({
        name: "currency",
        type: CurrencyPipe,
        pure: true
      });

      CurrencyPipe.ctorParameters = function () {
        return [{
          type: String,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["LOCALE_ID"]]
          }]
        }, {
          type: String,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["DEFAULT_CURRENCY_CODE"]]
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](CurrencyPipe, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Pipe"],
          args: [{
            name: 'currency'
          }]
        }], function () {
          return [{
            type: String,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["LOCALE_ID"]]
            }]
          }, {
            type: String,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["DEFAULT_CURRENCY_CODE"]]
            }]
          }];
        }, null);
      })();

      function isValue(value) {
        return !(value == null || value === '' || value !== value);
      }
      /**
       * Transforms a string into a number (if needed).
       */


      function strToNumber(value) {
        // Convert strings to numbers
        if (typeof value === 'string' && !isNaN(Number(value) - parseFloat(value))) {
          return Number(value);
        }

        if (typeof value !== 'number') {
          throw new Error("".concat(value, " is not a number"));
        }

        return value;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @ngModule CommonModule
       * @description
       *
       * Creates a new `Array` or `String` containing a subset (slice) of the elements.
       *
       * @usageNotes
       *
       * All behavior is based on the expected behavior of the JavaScript API `Array.prototype.slice()`
       * and `String.prototype.slice()`.
       *
       * When operating on an `Array`, the returned `Array` is always a copy even when all
       * the elements are being returned.
       *
       * When operating on a blank value, the pipe returns the blank value.
       *
       * ### List Example
       *
       * This `ngFor` example:
       *
       * {@example common/pipes/ts/slice_pipe.ts region='SlicePipe_list'}
       *
       * produces the following:
       *
       * ```html
       * <li>b</li>
       * <li>c</li>
       * ```
       *
       * ### String Examples
       *
       * {@example common/pipes/ts/slice_pipe.ts region='SlicePipe_string'}
       *
       * @publicApi
       */


      var SlicePipe = /*#__PURE__*/function () {
        function SlicePipe() {
          _classCallCheck2(this, SlicePipe);
        }

        _createClass2(SlicePipe, [{
          key: "transform",
          value: function transform(value, start, end) {
            if (value == null) return null;

            if (!this.supports(value)) {
              throw invalidPipeArgumentError(SlicePipe, value);
            }

            return value.slice(start, end);
          }
        }, {
          key: "supports",
          value: function supports(obj) {
            return typeof obj === 'string' || Array.isArray(obj);
          }
        }]);

        return SlicePipe;
      }();

      SlicePipe.ɵfac = function SlicePipe_Factory(t) {
        return new (t || SlicePipe)();
      };

      SlicePipe.ɵpipe = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefinePipe"]({
        name: "slice",
        type: SlicePipe,
        pure: false
      });
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](SlicePipe, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Pipe"],
          args: [{
            name: 'slice',
            pure: false
          }]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * A collection of Angular pipes that are likely to be used in each and every application.
       */


      var COMMON_PIPES = [AsyncPipe, UpperCasePipe, LowerCasePipe, JsonPipe, SlicePipe, DecimalPipe, PercentPipe, TitleCasePipe, CurrencyPipe, DatePipe, I18nPluralPipe, I18nSelectPipe, KeyValuePipe];
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */
      // Note: This does not contain the location providers,
      // as they need some platform specific implementations to work.

      /**
       * Exports all the basic Angular directives and pipes,
       * such as `NgIf`, `NgForOf`, `DecimalPipe`, and so on.
       * Re-exported by `BrowserModule`, which is included automatically in the root
       * `AppModule` when you create a new app with the CLI `new` command.
       *
       * * The `providers` options configure the NgModule's injector to provide
       * localization dependencies to members.
       * * The `exports` options make the declared directives and pipes available for import
       * by other NgModules.
       *
       * @publicApi
       */

      var CommonModule = function CommonModule() {
        _classCallCheck2(this, CommonModule);
      };

      CommonModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
        type: CommonModule
      });
      CommonModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
        factory: function CommonModule_Factory(t) {
          return new (t || CommonModule)();
        },
        providers: [{
          provide: NgLocalization,
          useClass: NgLocaleLocalization
        }]
      });

      (function () {
        (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](CommonModule, {
          declarations: [NgClass, NgComponentOutlet, NgForOf, NgIf, NgTemplateOutlet, NgStyle, NgSwitch, NgSwitchCase, NgSwitchDefault, NgPlural, NgPluralCase, AsyncPipe, UpperCasePipe, LowerCasePipe, JsonPipe, SlicePipe, DecimalPipe, PercentPipe, TitleCasePipe, CurrencyPipe, DatePipe, I18nPluralPipe, I18nSelectPipe, KeyValuePipe],
          exports: [NgClass, NgComponentOutlet, NgForOf, NgIf, NgTemplateOutlet, NgStyle, NgSwitch, NgSwitchCase, NgSwitchDefault, NgPlural, NgPluralCase, AsyncPipe, UpperCasePipe, LowerCasePipe, JsonPipe, SlicePipe, DecimalPipe, PercentPipe, TitleCasePipe, CurrencyPipe, DatePipe, I18nPluralPipe, I18nSelectPipe, KeyValuePipe]
        });
      })();
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](CommonModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
          args: [{
            declarations: [COMMON_DIRECTIVES, COMMON_PIPES],
            exports: [COMMON_DIRECTIVES, COMMON_PIPES],
            providers: [{
              provide: NgLocalization,
              useClass: NgLocaleLocalization
            }]
          }]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var PLATFORM_BROWSER_ID = 'browser';
      var PLATFORM_SERVER_ID = 'server';
      var PLATFORM_WORKER_APP_ID = 'browserWorkerApp';
      var PLATFORM_WORKER_UI_ID = 'browserWorkerUi';
      /**
       * Returns whether a platform id represents a browser platform.
       * @publicApi
       */

      function isPlatformBrowser(platformId) {
        return platformId === PLATFORM_BROWSER_ID;
      }
      /**
       * Returns whether a platform id represents a server platform.
       * @publicApi
       */


      function isPlatformServer(platformId) {
        return platformId === PLATFORM_SERVER_ID;
      }
      /**
       * Returns whether a platform id represents a web worker app platform.
       * @publicApi
       */


      function isPlatformWorkerApp(platformId) {
        return platformId === PLATFORM_WORKER_APP_ID;
      }
      /**
       * Returns whether a platform id represents a web worker UI platform.
       * @publicApi
       */


      function isPlatformWorkerUi(platformId) {
        return platformId === PLATFORM_WORKER_UI_ID;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @publicApi
       */


      var VERSION = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["Version"]('11.0.0');
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Defines a scroll position manager. Implemented by `BrowserViewportScroller`.
       *
       * @publicApi
       */

      var ViewportScroller = function ViewportScroller() {
        _classCallCheck2(this, ViewportScroller);
      }; // De-sugared tree-shakable injection
      // See #23917

      /** @nocollapse */


      ViewportScroller.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({
        token: ViewportScroller,
        providedIn: 'root',
        factory: function factory() {
          return new BrowserViewportScroller(Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(DOCUMENT), window, Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ErrorHandler"]));
        }
      });
      /**
       * Manages the scroll position for a browser window.
       */

      var BrowserViewportScroller = /*#__PURE__*/function () {
        function BrowserViewportScroller(document, window, errorHandler) {
          _classCallCheck2(this, BrowserViewportScroller);

          this.document = document;
          this.window = window;
          this.errorHandler = errorHandler;

          this.offset = function () {
            return [0, 0];
          };
        }
        /**
         * Configures the top offset used when scrolling to an anchor.
         * @param offset A position in screen coordinates (a tuple with x and y values)
         * or a function that returns the top offset position.
         *
         */


        _createClass2(BrowserViewportScroller, [{
          key: "setOffset",
          value: function setOffset(offset) {
            if (Array.isArray(offset)) {
              this.offset = function () {
                return offset;
              };
            } else {
              this.offset = offset;
            }
          }
          /**
           * Retrieves the current scroll position.
           * @returns The position in screen coordinates.
           */

        }, {
          key: "getScrollPosition",
          value: function getScrollPosition() {
            if (this.supportsScrolling()) {
              return [this.window.scrollX, this.window.scrollY];
            } else {
              return [0, 0];
            }
          }
          /**
           * Sets the scroll position.
           * @param position The new position in screen coordinates.
           */

        }, {
          key: "scrollToPosition",
          value: function scrollToPosition(position) {
            if (this.supportsScrolling()) {
              this.window.scrollTo(position[0], position[1]);
            }
          }
          /**
           * Scrolls to an anchor element.
           * @param anchor The ID of the anchor element.
           */

        }, {
          key: "scrollToAnchor",
          value: function scrollToAnchor(anchor) {
            if (this.supportsScrolling()) {
              var elSelected = this.document.getElementById(anchor) || this.document.getElementsByName(anchor)[0];

              if (elSelected) {
                this.scrollToElement(elSelected);
              }
            }
          }
          /**
           * Disables automatic scroll restoration provided by the browser.
           */

        }, {
          key: "setHistoryScrollRestoration",
          value: function setHistoryScrollRestoration(scrollRestoration) {
            if (this.supportScrollRestoration()) {
              var history = this.window.history;

              if (history && history.scrollRestoration) {
                history.scrollRestoration = scrollRestoration;
              }
            }
          }
        }, {
          key: "scrollToElement",
          value: function scrollToElement(el) {
            var rect = el.getBoundingClientRect();
            var left = rect.left + this.window.pageXOffset;
            var top = rect.top + this.window.pageYOffset;
            var offset = this.offset();
            this.window.scrollTo(left - offset[0], top - offset[1]);
          }
          /**
           * We only support scroll restoration when we can get a hold of window.
           * This means that we do not support this behavior when running in a web worker.
           *
           * Lifting this restriction right now would require more changes in the dom adapter.
           * Since webworkers aren't widely used, we will lift it once RouterScroller is
           * battle-tested.
           */

        }, {
          key: "supportScrollRestoration",
          value: function supportScrollRestoration() {
            try {
              if (!this.window || !this.window.scrollTo) {
                return false;
              } // The `scrollRestoration` property could be on the `history` instance or its prototype.


              var scrollRestorationDescriptor = getScrollRestorationProperty(this.window.history) || getScrollRestorationProperty(Object.getPrototypeOf(this.window.history)); // We can write to the `scrollRestoration` property if it is a writable data field or it has a
              // setter function.

              return !!scrollRestorationDescriptor && !!(scrollRestorationDescriptor.writable || scrollRestorationDescriptor.set);
            } catch (_a) {
              return false;
            }
          }
        }, {
          key: "supportsScrolling",
          value: function supportsScrolling() {
            try {
              return !!this.window.scrollTo;
            } catch (_a) {
              return false;
            }
          }
        }]);

        return BrowserViewportScroller;
      }();

      function getScrollRestorationProperty(obj) {
        return Object.getOwnPropertyDescriptor(obj, 'scrollRestoration');
      }
      /**
       * Provides an empty implementation of the viewport scroller.
       */


      var NullViewportScroller = /*#__PURE__*/function () {
        function NullViewportScroller() {
          _classCallCheck2(this, NullViewportScroller);
        }

        _createClass2(NullViewportScroller, [{
          key: "setOffset",
          value:
          /**
           * Empty implementation
           */
          function setOffset(offset) {}
          /**
           * Empty implementation
           */

        }, {
          key: "getScrollPosition",
          value: function getScrollPosition() {
            return [0, 0];
          }
          /**
           * Empty implementation
           */

        }, {
          key: "scrollToPosition",
          value: function scrollToPosition(position) {}
          /**
           * Empty implementation
           */

        }, {
          key: "scrollToAnchor",
          value: function scrollToAnchor(anchor) {}
          /**
           * Empty implementation
           */

        }, {
          key: "setHistoryScrollRestoration",
          value: function setHistoryScrollRestoration(scrollRestoration) {}
        }]);

        return NullViewportScroller;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */
      // This file only reexports content of the `src` folder. Keep it that way.

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Generated bundle index. Do not edit.
       */
      //# sourceMappingURL=common.js.map

      /***/

    },

    /***/
    "SatO": function SatO(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Chinese (Hong Kong) [zh-hk]
      //! author : Ben : https://github.com/ben-lin
      //! author : Chris Lam : https://github.com/hehachris
      //! author : Konstantin : https://github.com/skfd
      //! author : Anthony : https://github.com/anthonylau
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var zhHk = moment.defineLocale('zh-hk', {
          months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
          monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
          weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
          weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
          weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'YYYY/MM/DD',
            LL: 'YYYY年M月D日',
            LLL: 'YYYY年M月D日 HH:mm',
            LLLL: 'YYYY年M月D日dddd HH:mm',
            l: 'YYYY/M/D',
            ll: 'YYYY年M月D日',
            lll: 'YYYY年M月D日 HH:mm',
            llll: 'YYYY年M月D日dddd HH:mm'
          },
          meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
          meridiemHour: function meridiemHour(hour, meridiem) {
            if (hour === 12) {
              hour = 0;
            }

            if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
              return hour;
            } else if (meridiem === '中午') {
              return hour >= 11 ? hour : hour + 12;
            } else if (meridiem === '下午' || meridiem === '晚上') {
              return hour + 12;
            }
          },
          meridiem: function meridiem(hour, minute, isLower) {
            var hm = hour * 100 + minute;

            if (hm < 600) {
              return '凌晨';
            } else if (hm < 900) {
              return '早上';
            } else if (hm < 1200) {
              return '上午';
            } else if (hm === 1200) {
              return '中午';
            } else if (hm < 1800) {
              return '下午';
            } else {
              return '晚上';
            }
          },
          calendar: {
            sameDay: '[今天]LT',
            nextDay: '[明天]LT',
            nextWeek: '[下]ddddLT',
            lastDay: '[昨天]LT',
            lastWeek: '[上]ddddLT',
            sameElse: 'L'
          },
          dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
          ordinal: function ordinal(number, period) {
            switch (period) {
              case 'd':
              case 'D':
              case 'DDD':
                return number + '日';

              case 'M':
                return number + '月';

              case 'w':
              case 'W':
                return number + '週';

              default:
                return number;
            }
          },
          relativeTime: {
            future: '%s後',
            past: '%s前',
            s: '幾秒',
            ss: '%d 秒',
            m: '1 分鐘',
            mm: '%d 分鐘',
            h: '1 小時',
            hh: '%d 小時',
            d: '1 天',
            dd: '%d 天',
            M: '1 個月',
            MM: '%d 個月',
            y: '1 年',
            yy: '%d 年'
          }
        });
        return zhHk;
      });
      /***/

    },

    /***/
    "Se/U": function SeU(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return isValid;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name isValid
       * @category Common Helpers
       * @summary Is the given date valid?
       *
       * @description
       * Returns false if argument is Invalid Date and true otherwise.
       * Argument is converted to Date using `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate}
       * Invalid Date is a Date, whose time value is NaN.
       *
       * Time value of Date: http://es5.github.io/#x15.9.1.1
       *
       * ### 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).
       *
       * - Now `isValid` doesn't throw an exception
       *   if the first argument is not an instance of Date.
       *   Instead, argument is converted beforehand using `toDate`.
       *
       *   Examples:
       *
       *   | `isValid` argument        | Before v2.0.0 | v2.0.0 onward |
       *   |---------------------------|---------------|---------------|
       *   | `new Date()`              | `true`        | `true`        |
       *   | `new Date('2016-01-01')`  | `true`        | `true`        |
       *   | `new Date('')`            | `false`       | `false`       |
       *   | `new Date(1488370835081)` | `true`        | `true`        |
       *   | `new Date(NaN)`           | `false`       | `false`       |
       *   | `'2016-01-01'`            | `TypeError`   | `false`       |
       *   | `''`                      | `TypeError`   | `false`       |
       *   | `1488370835081`           | `TypeError`   | `true`        |
       *   | `NaN`                     | `TypeError`   | `false`       |
       *
       *   We introduce this change to make *date-fns* consistent with ECMAScript behavior
       *   that try to coerce arguments to the expected type
       *   (which is also the case with other *date-fns* functions).
       *
       * @param {*} date - the date to check
       * @returns {Boolean} the date is valid
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // For the valid date:
       * var result = isValid(new Date(2014, 1, 31))
       * //=> true
       *
       * @example
       * // For the value, convertable into a date:
       * var result = isValid(1393804800000)
       * //=> true
       *
       * @example
       * // For the invalid date:
       * var result = isValid(new Date(''))
       * //=> false
       */


      function isValid(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);
        return !isNaN(date);
      }
      /***/

    },

    /***/
    "SeVD": function SeVD(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "subscribeTo", function () {
        return subscribeTo;
      });
      /* harmony import */


      var _subscribeToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ./subscribeToArray */
      "ngJS");
      /* harmony import */


      var _subscribeToPromise__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ./subscribeToPromise */
      "a7t3");
      /* harmony import */


      var _subscribeToIterable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ./subscribeToIterable */
      "pLzU");
      /* harmony import */


      var _subscribeToObservable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ./subscribeToObservable */
      "CRDf");
      /* harmony import */


      var _isArrayLike__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! ./isArrayLike */
      "I55L");
      /* harmony import */


      var _isPromise__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! ./isPromise */
      "c2HN");
      /* harmony import */


      var _isObject__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
      /*! ./isObject */
      "XoHu");
      /* harmony import */


      var _symbol_iterator__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
      /*! ../symbol/iterator */
      "Lhse");
      /* harmony import */


      var _symbol_observable__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
      /*! ../symbol/observable */
      "kJWO");

      var subscribeTo = function subscribeTo(result) {
        if (!!result && typeof result[_symbol_observable__WEBPACK_IMPORTED_MODULE_8__["observable"]] === 'function') {
          return Object(_subscribeToObservable__WEBPACK_IMPORTED_MODULE_3__["subscribeToObservable"])(result);
        } else if (Object(_isArrayLike__WEBPACK_IMPORTED_MODULE_4__["isArrayLike"])(result)) {
          return Object(_subscribeToArray__WEBPACK_IMPORTED_MODULE_0__["subscribeToArray"])(result);
        } else if (Object(_isPromise__WEBPACK_IMPORTED_MODULE_5__["isPromise"])(result)) {
          return Object(_subscribeToPromise__WEBPACK_IMPORTED_MODULE_1__["subscribeToPromise"])(result);
        } else if (!!result && typeof result[_symbol_iterator__WEBPACK_IMPORTED_MODULE_7__["iterator"]] === 'function') {
          return Object(_subscribeToIterable__WEBPACK_IMPORTED_MODULE_2__["subscribeToIterable"])(result);
        } else {
          var value = Object(_isObject__WEBPACK_IMPORTED_MODULE_6__["isObject"])(result) ? 'an invalid object' : "'".concat(result, "'");
          var msg = "You provided ".concat(value, " where a stream was expected.") + ' You can provide an Observable, Promise, Array, or Iterable.';
          throw new TypeError(msg);
        }
      }; //# sourceMappingURL=subscribeTo.js.map

      /***/

    },

    /***/
    "SpAZ": function SpAZ(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "identity", function () {
        return identity;
      });

      function identity(x) {
        return x;
      } //# sourceMappingURL=identity.js.map

      /***/

    },

    /***/
    "SqCe": function SqCe(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MAT_LIST", function () {
        return MAT_LIST;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MAT_NAV_LIST", function () {
        return MAT_NAV_LIST;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MAT_SELECTION_LIST_VALUE_ACCESSOR", function () {
        return MAT_SELECTION_LIST_VALUE_ACCESSOR;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatList", function () {
        return MatList;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatListAvatarCssMatStyler", function () {
        return MatListAvatarCssMatStyler;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatListIconCssMatStyler", function () {
        return MatListIconCssMatStyler;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatListItem", function () {
        return MatListItem;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatListModule", function () {
        return MatListModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatListOption", function () {
        return MatListOption;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatListSubheaderCssMatStyler", function () {
        return MatListSubheaderCssMatStyler;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatNavList", function () {
        return MatNavList;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatSelectionList", function () {
        return MatSelectionList;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatSelectionListChange", function () {
        return MatSelectionListChange;
      });
      /* harmony import */


      var _angular_common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/common */
      "SVse");
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /* harmony import */


      var _angular_material_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! @angular/material/core */
      "UhP/");
      /* harmony import */


      var _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! @angular/cdk/coercion */
      "8LU1");
      /* harmony import */


      var rxjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! rxjs */
      "qCKp");
      /* harmony import */


      var rxjs_operators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! rxjs/operators */
      "kU1M");
      /* harmony import */


      var _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
      /*! @angular/cdk/a11y */
      "YEUz");
      /* harmony import */


      var _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
      /*! @angular/cdk/collections */
      "CtHx");
      /* harmony import */


      var _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
      /*! @angular/cdk/keycodes */
      "Ht+U");
      /* harmony import */


      var _angular_forms__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
      /*! @angular/forms */
      "s7LF");
      /* harmony import */


      var _angular_material_divider__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(
      /*! @angular/material/divider */
      "BSbQ");
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */
      // Boilerplate for applying mixins to MatList.

      /** @docs-private */


      var _c0 = ["*"];
      var _c1 = ".mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:\"\";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n";
      var _c2 = [[["", "mat-list-avatar", ""], ["", "mat-list-icon", ""], ["", "matListAvatar", ""], ["", "matListIcon", ""]], [["", "mat-line", ""], ["", "matLine", ""]], "*"];
      var _c3 = ["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]", "[mat-line], [matLine]", "*"];
      var _c4 = ["text"];

      function MatListOption_mat_pseudo_checkbox_2_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "mat-pseudo-checkbox", 5);
        }

        if (rf & 2) {
          var ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();

          _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("state", ctx_r0.selected ? "checked" : "unchecked")("disabled", ctx_r0.disabled);
        }
      }

      var _c5 = ["*", [["", "mat-list-avatar", ""], ["", "mat-list-icon", ""], ["", "matListAvatar", ""], ["", "matListIcon", ""]]];
      var _c6 = ["*", "[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]"];

      var MatListBase = function MatListBase() {
        _classCallCheck2(this, MatListBase);
      };

      var _MatListMixinBase = Object(_angular_material_core__WEBPACK_IMPORTED_MODULE_2__["mixinDisabled"])(Object(_angular_material_core__WEBPACK_IMPORTED_MODULE_2__["mixinDisableRipple"])(MatListBase)); // Boilerplate for applying mixins to MatListItem.

      /** @docs-private */


      var MatListItemBase = function MatListItemBase() {
        _classCallCheck2(this, MatListItemBase);
      };

      var _MatListItemMixinBase = Object(_angular_material_core__WEBPACK_IMPORTED_MODULE_2__["mixinDisableRipple"])(MatListItemBase);
      /**
       * Injection token that can be used to inject instances of `MatList`. It serves as
       * alternative token to the actual `MatList` class which could cause unnecessary
       * retention of the class and its component metadata.
       */


      var MAT_LIST = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["InjectionToken"]('MatList');
      /**
       * Injection token that can be used to inject instances of `MatNavList`. It serves as
       * alternative token to the actual `MatNavList` class which could cause unnecessary
       * retention of the class and its component metadata.
       */

      var MAT_NAV_LIST = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["InjectionToken"]('MatNavList');

      var MatNavList = /*#__PURE__*/function (_MatListMixinBase2) {
        _inherits2(MatNavList, _MatListMixinBase2);

        var _super297 = _createSuper2(MatNavList);

        function MatNavList() {
          var _this599;

          _classCallCheck2(this, MatNavList);

          _this599 = _super297.apply(this, arguments);
          /** Emits when the state of the list changes. */

          _this599._stateChanges = new rxjs__WEBPACK_IMPORTED_MODULE_4__["Subject"]();
          return _this599;
        }

        _createClass2(MatNavList, [{
          key: "ngOnChanges",
          value: function ngOnChanges() {
            this._stateChanges.next();
          }
        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            this._stateChanges.complete();
          }
        }]);

        return MatNavList;
      }(_MatListMixinBase);

      MatNavList.ɵfac = function MatNavList_Factory(t) {
        return ɵMatNavList_BaseFactory(t || MatNavList);
      };

      MatNavList.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({
        type: MatNavList,
        selectors: [["mat-nav-list"]],
        hostAttrs: ["role", "navigation", 1, "mat-nav-list", "mat-list-base"],
        inputs: {
          disableRipple: "disableRipple",
          disabled: "disabled"
        },
        exportAs: ["matNavList"],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵProvidersFeature"]([{
          provide: MAT_NAV_LIST,
          useExisting: MatNavList
        }]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵInheritDefinitionFeature"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵNgOnChangesFeature"]],
        ngContentSelectors: _c0,
        decls: 1,
        vars: 0,
        template: function MatNavList_Template(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0);
          }
        },
        styles: [_c1],
        encapsulation: 2,
        changeDetection: 0
      });

      var ɵMatNavList_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetInheritedFactory"](MatNavList);
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](MatNavList, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
          args: [{
            selector: 'mat-nav-list',
            exportAs: 'matNavList',
            host: {
              'role': 'navigation',
              'class': 'mat-nav-list mat-list-base'
            },
            template: "<ng-content></ng-content>\n\n",
            inputs: ['disableRipple', 'disabled'],
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None,
            changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush,
            providers: [{
              provide: MAT_NAV_LIST,
              useExisting: MatNavList
            }],
            styles: [".mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:\"\";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n"]
          }]
        }], null, null);
      })();

      var MatList = /*#__PURE__*/function (_MatListMixinBase3) {
        _inherits2(MatList, _MatListMixinBase3);

        var _super298 = _createSuper2(MatList);

        function MatList(_elementRef) {
          var _this600;

          _classCallCheck2(this, MatList);

          _this600 = _super298.call(this);
          _this600._elementRef = _elementRef;
          /** Emits when the state of the list changes. */

          _this600._stateChanges = new rxjs__WEBPACK_IMPORTED_MODULE_4__["Subject"]();

          if (_this600._getListType() === 'action-list') {
            _elementRef.nativeElement.classList.add('mat-action-list');
          }

          return _this600;
        }

        _createClass2(MatList, [{
          key: "_getListType",
          value: function _getListType() {
            var nodeName = this._elementRef.nativeElement.nodeName.toLowerCase();

            if (nodeName === 'mat-list') {
              return 'list';
            }

            if (nodeName === 'mat-action-list') {
              return 'action-list';
            }

            return null;
          }
        }, {
          key: "ngOnChanges",
          value: function ngOnChanges() {
            this._stateChanges.next();
          }
        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            this._stateChanges.complete();
          }
        }]);

        return MatList;
      }(_MatListMixinBase);

      MatList.ɵfac = function MatList_Factory(t) {
        return new (t || MatList)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]));
      };

      MatList.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({
        type: MatList,
        selectors: [["mat-list"], ["mat-action-list"]],
        hostAttrs: [1, "mat-list", "mat-list-base"],
        inputs: {
          disableRipple: "disableRipple",
          disabled: "disabled"
        },
        exportAs: ["matList"],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵProvidersFeature"]([{
          provide: MAT_LIST,
          useExisting: MatList
        }]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵInheritDefinitionFeature"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵNgOnChangesFeature"]],
        ngContentSelectors: _c0,
        decls: 1,
        vars: 0,
        template: function MatList_Template(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0);
          }
        },
        styles: [_c1],
        encapsulation: 2,
        changeDetection: 0
      });

      MatList.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](MatList, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
          args: [{
            selector: 'mat-list, mat-action-list',
            exportAs: 'matList',
            template: "<ng-content></ng-content>\n\n",
            host: {
              'class': 'mat-list mat-list-base'
            },
            inputs: ['disableRipple', 'disabled'],
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None,
            changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush,
            providers: [{
              provide: MAT_LIST,
              useExisting: MatList
            }],
            styles: [".mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:\"\";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n"]
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]
          }];
        }, null);
      })();
      /**
       * Directive whose purpose is to add the mat- CSS styling to this selector.
       * @docs-private
       */


      var MatListAvatarCssMatStyler = function MatListAvatarCssMatStyler() {
        _classCallCheck2(this, MatListAvatarCssMatStyler);
      };

      MatListAvatarCssMatStyler.ɵfac = function MatListAvatarCssMatStyler_Factory(t) {
        return new (t || MatListAvatarCssMatStyler)();
      };

      MatListAvatarCssMatStyler.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineDirective"]({
        type: MatListAvatarCssMatStyler,
        selectors: [["", "mat-list-avatar", ""], ["", "matListAvatar", ""]],
        hostAttrs: [1, "mat-list-avatar"]
      });
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](MatListAvatarCssMatStyler, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Directive"],
          args: [{
            selector: '[mat-list-avatar], [matListAvatar]',
            host: {
              'class': 'mat-list-avatar'
            }
          }]
        }], null, null);
      })();
      /**
       * Directive whose purpose is to add the mat- CSS styling to this selector.
       * @docs-private
       */


      var MatListIconCssMatStyler = function MatListIconCssMatStyler() {
        _classCallCheck2(this, MatListIconCssMatStyler);
      };

      MatListIconCssMatStyler.ɵfac = function MatListIconCssMatStyler_Factory(t) {
        return new (t || MatListIconCssMatStyler)();
      };

      MatListIconCssMatStyler.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineDirective"]({
        type: MatListIconCssMatStyler,
        selectors: [["", "mat-list-icon", ""], ["", "matListIcon", ""]],
        hostAttrs: [1, "mat-list-icon"]
      });
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](MatListIconCssMatStyler, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Directive"],
          args: [{
            selector: '[mat-list-icon], [matListIcon]',
            host: {
              'class': 'mat-list-icon'
            }
          }]
        }], null, null);
      })();
      /**
       * Directive whose purpose is to add the mat- CSS styling to this selector.
       * @docs-private
       */


      var MatListSubheaderCssMatStyler = function MatListSubheaderCssMatStyler() {
        _classCallCheck2(this, MatListSubheaderCssMatStyler);
      };

      MatListSubheaderCssMatStyler.ɵfac = function MatListSubheaderCssMatStyler_Factory(t) {
        return new (t || MatListSubheaderCssMatStyler)();
      };

      MatListSubheaderCssMatStyler.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineDirective"]({
        type: MatListSubheaderCssMatStyler,
        selectors: [["", "mat-subheader", ""], ["", "matSubheader", ""]],
        hostAttrs: [1, "mat-subheader"]
      });
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](MatListSubheaderCssMatStyler, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Directive"],
          args: [{
            selector: '[mat-subheader], [matSubheader]',
            host: {
              'class': 'mat-subheader'
            }
          }]
        }], null, null);
      })();
      /** An item within a Material Design list. */


      var MatListItem = /*#__PURE__*/function (_MatListItemMixinBase2) {
        _inherits2(MatListItem, _MatListItemMixinBase2);

        var _super299 = _createSuper2(MatListItem);

        function MatListItem(_element, _changeDetectorRef, navList, list) {
          var _this601;

          _classCallCheck2(this, MatListItem);

          _this601 = _super299.call(this);
          _this601._element = _element;
          _this601._isInteractiveList = false;
          _this601._destroyed = new rxjs__WEBPACK_IMPORTED_MODULE_4__["Subject"]();
          _this601._disabled = false;
          _this601._isInteractiveList = !!(navList || list && list._getListType() === 'action-list');
          _this601._list = navList || list; // If no type attribute is specified for <button>, set it to "button".
          // If a type attribute is already specified, do nothing.

          var element = _this601._getHostElement();

          if (element.nodeName.toLowerCase() === 'button' && !element.hasAttribute('type')) {
            element.setAttribute('type', 'button');
          }

          if (_this601._list) {
            // React to changes in the state of the parent list since
            // some of the item's properties depend on it (e.g. `disableRipple`).
            _this601._list._stateChanges.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["takeUntil"])(_this601._destroyed)).subscribe(function () {
              _changeDetectorRef.markForCheck();
            });
          }

          return _this601;
        }
        /** Whether the option is disabled. */


        _createClass2(MatListItem, [{
          key: "disabled",
          get: function get() {
            return this._disabled || !!(this._list && this._list.disabled);
          },
          set: function set(value) {
            this._disabled = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_3__["coerceBooleanProperty"])(value);
          }
        }, {
          key: "ngAfterContentInit",
          value: function ngAfterContentInit() {
            Object(_angular_material_core__WEBPACK_IMPORTED_MODULE_2__["setLines"])(this._lines, this._element);
          }
        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            this._destroyed.next();

            this._destroyed.complete();
          }
          /** Whether this list item should show a ripple effect when clicked. */

        }, {
          key: "_isRippleDisabled",
          value: function _isRippleDisabled() {
            return !this._isInteractiveList || this.disableRipple || !!(this._list && this._list.disableRipple);
          }
          /** Retrieves the DOM element of the component host. */

        }, {
          key: "_getHostElement",
          value: function _getHostElement() {
            return this._element.nativeElement;
          }
        }]);

        return MatListItem;
      }(_MatListItemMixinBase);

      MatListItem.ɵfac = function MatListItem_Factory(t) {
        return new (t || MatListItem)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](MAT_NAV_LIST, 8), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](MAT_LIST, 8));
      };

      MatListItem.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({
        type: MatListItem,
        selectors: [["mat-list-item"], ["a", "mat-list-item", ""], ["button", "mat-list-item", ""]],
        contentQueries: function MatListItem_ContentQueries(rf, ctx, dirIndex) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵcontentQuery"](dirIndex, MatListAvatarCssMatStyler, true);

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵcontentQuery"](dirIndex, MatListIconCssMatStyler, true);

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵcontentQuery"](dirIndex, _angular_material_core__WEBPACK_IMPORTED_MODULE_2__["MatLine"], true);
          }

          if (rf & 2) {
            var _t;

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx._avatar = _t.first);
            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx._icon = _t.first);
            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx._lines = _t);
          }
        },
        hostAttrs: [1, "mat-list-item", "mat-focus-indicator"],
        hostVars: 6,
        hostBindings: function MatListItem_HostBindings(rf, ctx) {
          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵclassProp"]("mat-list-item-disabled", ctx.disabled)("mat-list-item-avatar", ctx._avatar || ctx._icon)("mat-list-item-with-avatar", ctx._avatar || ctx._icon);
          }
        },
        inputs: {
          disableRipple: "disableRipple",
          disabled: "disabled"
        },
        exportAs: ["matListItem"],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵInheritDefinitionFeature"]],
        ngContentSelectors: _c3,
        decls: 6,
        vars: 2,
        consts: [[1, "mat-list-item-content"], ["mat-ripple", "", 1, "mat-list-item-ripple", 3, "matRippleTrigger", "matRippleDisabled"], [1, "mat-list-text"]],
        template: function MatListItem_Template(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"](_c2);

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0);

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "div", 1);

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](2);

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 2);

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](4, 1);

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](5, 2);

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
          }

          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("matRippleTrigger", ctx._getHostElement())("matRippleDisabled", ctx._isRippleDisabled());
          }
        },
        directives: [_angular_material_core__WEBPACK_IMPORTED_MODULE_2__["MatRipple"]],
        encapsulation: 2,
        changeDetection: 0
      });

      MatListItem.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]
        }, {
          type: MatNavList,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
            args: [MAT_NAV_LIST]
          }]
        }, {
          type: MatList,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
            args: [MAT_LIST]
          }]
        }];
      };

      MatListItem.propDecorators = {
        _lines: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ContentChildren"],
          args: [_angular_material_core__WEBPACK_IMPORTED_MODULE_2__["MatLine"], {
            descendants: true
          }]
        }],
        _avatar: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ContentChild"],
          args: [MatListAvatarCssMatStyler]
        }],
        _icon: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ContentChild"],
          args: [MatListIconCssMatStyler]
        }],
        disabled: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](MatListItem, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
          args: [{
            selector: 'mat-list-item, a[mat-list-item], button[mat-list-item]',
            exportAs: 'matListItem',
            host: {
              'class': 'mat-list-item mat-focus-indicator',
              '[class.mat-list-item-disabled]': 'disabled',
              // @breaking-change 8.0.0 Remove `mat-list-item-avatar` in favor of `mat-list-item-with-avatar`.
              '[class.mat-list-item-avatar]': '_avatar || _icon',
              '[class.mat-list-item-with-avatar]': '_avatar || _icon'
            },
            inputs: ['disableRipple'],
            template: "<div class=\"mat-list-item-content\">\n  <div class=\"mat-list-item-ripple\" mat-ripple\n       [matRippleTrigger]=\"_getHostElement()\"\n       [matRippleDisabled]=\"_isRippleDisabled()\">\n  </div>\n\n  <ng-content select=\"[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]\">\n  </ng-content>\n\n  <div class=\"mat-list-text\"><ng-content select=\"[mat-line], [matLine]\"></ng-content></div>\n\n  <ng-content></ng-content>\n</div>\n",
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None,
            changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]
          }, {
            type: MatNavList,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
              args: [MAT_NAV_LIST]
            }]
          }, {
            type: MatList,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
              args: [MAT_LIST]
            }]
          }];
        }, {
          disabled: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
          }],
          _lines: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ContentChildren"],
            args: [_angular_material_core__WEBPACK_IMPORTED_MODULE_2__["MatLine"], {
              descendants: true
            }]
          }],
          _avatar: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ContentChild"],
            args: [MatListAvatarCssMatStyler]
          }],
          _icon: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ContentChild"],
            args: [MatListIconCssMatStyler]
          }]
        });
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var MatSelectionListBase = function MatSelectionListBase() {
        _classCallCheck2(this, MatSelectionListBase);
      };

      var _MatSelectionListMixinBase = Object(_angular_material_core__WEBPACK_IMPORTED_MODULE_2__["mixinDisableRipple"])(MatSelectionListBase);

      var MatListOptionBase = function MatListOptionBase() {
        _classCallCheck2(this, MatListOptionBase);
      };

      var _MatListOptionMixinBase = Object(_angular_material_core__WEBPACK_IMPORTED_MODULE_2__["mixinDisableRipple"])(MatListOptionBase);
      /** @docs-private */


      var MAT_SELECTION_LIST_VALUE_ACCESSOR = {
        provide: _angular_forms__WEBPACK_IMPORTED_MODULE_9__["NG_VALUE_ACCESSOR"],
        useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["forwardRef"])(function () {
          return MatSelectionList;
        }),
        multi: true
      };
      /** Change event that is being fired whenever the selected state of an option changes. */

      var MatSelectionListChange = function MatSelectionListChange(
      /** Reference to the selection list that emitted the event. */
      source,
      /**
       * Reference to the option that has been changed.
       * @deprecated Use `options` instead, because some events may change more than one option.
       * @breaking-change 12.0.0
       */
      option,
      /** Reference to the options that have been changed. */
      options) {
        _classCallCheck2(this, MatSelectionListChange);

        this.source = source;
        this.option = option;
        this.options = options;
      };
      /**
       * Component for list-options of selection-list. Each list-option can automatically
       * generate a checkbox and can put current item into the selectionModel of selection-list
       * if the current item is selected.
       */


      var MatListOption = /*#__PURE__*/function (_MatListOptionMixinBa) {
        _inherits2(MatListOption, _MatListOptionMixinBa);

        var _super300 = _createSuper2(MatListOption);

        function MatListOption(_element, _changeDetector,
        /** @docs-private */
        selectionList) {
          var _this602;

          _classCallCheck2(this, MatListOption);

          _this602 = _super300.call(this);
          _this602._element = _element;
          _this602._changeDetector = _changeDetector;
          _this602.selectionList = selectionList;
          _this602._selected = false;
          _this602._disabled = false;
          _this602._hasFocus = false;
          /** Whether the label should appear before or after the checkbox. Defaults to 'after' */

          _this602.checkboxPosition = 'after';
          /**
           * This is set to true after the first OnChanges cycle so we don't clear the value of `selected`
           * in the first cycle.
           */

          _this602._inputsInitialized = false;
          return _this602;
        }
        /** Theme color of the list option. This sets the color of the checkbox. */


        _createClass2(MatListOption, [{
          key: "color",
          get: function get() {
            return this._color || this.selectionList.color;
          },
          set: function set(newValue) {
            this._color = newValue;
          }
          /** Value of the option */

        }, {
          key: "value",
          get: function get() {
            return this._value;
          },
          set: function set(newValue) {
            if (this.selected && !this.selectionList.compareWith(newValue, this.value) && this._inputsInitialized) {
              this.selected = false;
            }

            this._value = newValue;
          }
          /** Whether the option is disabled. */

        }, {
          key: "disabled",
          get: function get() {
            return this._disabled || this.selectionList && this.selectionList.disabled;
          },
          set: function set(value) {
            var newValue = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_3__["coerceBooleanProperty"])(value);

            if (newValue !== this._disabled) {
              this._disabled = newValue;

              this._changeDetector.markForCheck();
            }
          }
          /** Whether the option is selected. */

        }, {
          key: "selected",
          get: function get() {
            return this.selectionList.selectedOptions.isSelected(this);
          },
          set: function set(value) {
            var isSelected = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_3__["coerceBooleanProperty"])(value);

            if (isSelected !== this._selected) {
              this._setSelected(isSelected);

              this.selectionList._reportValueChange();
            }
          }
        }, {
          key: "ngOnInit",
          value: function ngOnInit() {
            var _this603 = this;

            var list = this.selectionList;

            if (list._value && list._value.some(function (value) {
              return list.compareWith(value, _this603._value);
            })) {
              this._setSelected(true);
            }

            var wasSelected = this._selected; // List options that are selected at initialization can't be reported properly to the form
            // control. This is because it takes some time until the selection-list knows about all
            // available options. Also it can happen that the ControlValueAccessor has an initial value
            // that should be used instead. Deferring the value change report to the next tick ensures
            // that the form control value is not being overwritten.

            Promise.resolve().then(function () {
              if (_this603._selected || wasSelected) {
                _this603.selected = true;

                _this603._changeDetector.markForCheck();
              }
            });
            this._inputsInitialized = true;
          }
        }, {
          key: "ngAfterContentInit",
          value: function ngAfterContentInit() {
            Object(_angular_material_core__WEBPACK_IMPORTED_MODULE_2__["setLines"])(this._lines, this._element);
          }
        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            var _this604 = this;

            if (this.selected) {
              // We have to delay this until the next tick in order
              // to avoid changed after checked errors.
              Promise.resolve().then(function () {
                _this604.selected = false;
              });
            }

            var hadFocus = this._hasFocus;

            var newActiveItem = this.selectionList._removeOptionFromList(this); // Only move focus if this option was focused at the time it was destroyed.


            if (hadFocus && newActiveItem) {
              newActiveItem.focus();
            }
          }
          /** Toggles the selection state of the option. */

        }, {
          key: "toggle",
          value: function toggle() {
            this.selected = !this.selected;
          }
          /** Allows for programmatic focusing of the option. */

        }, {
          key: "focus",
          value: function focus() {
            this._element.nativeElement.focus();
          }
          /**
           * Returns the list item's text label. Implemented as a part of the FocusKeyManager.
           * @docs-private
           */

        }, {
          key: "getLabel",
          value: function getLabel() {
            return this._text ? this._text.nativeElement.textContent || '' : '';
          }
          /** Whether this list item should show a ripple effect when clicked. */

        }, {
          key: "_isRippleDisabled",
          value: function _isRippleDisabled() {
            return this.disabled || this.disableRipple || this.selectionList.disableRipple;
          }
        }, {
          key: "_handleClick",
          value: function _handleClick() {
            if (!this.disabled && (this.selectionList.multiple || !this.selected)) {
              this.toggle(); // Emit a change event if the selected state of the option changed through user interaction.

              this.selectionList._emitChangeEvent([this]);
            }
          }
        }, {
          key: "_handleFocus",
          value: function _handleFocus() {
            this.selectionList._setFocusedOption(this);

            this._hasFocus = true;
          }
        }, {
          key: "_handleBlur",
          value: function _handleBlur() {
            this.selectionList._onTouched();

            this._hasFocus = false;
          }
          /** Retrieves the DOM element of the component host. */

        }, {
          key: "_getHostElement",
          value: function _getHostElement() {
            return this._element.nativeElement;
          }
          /** Sets the selected state of the option. Returns whether the value has changed. */

        }, {
          key: "_setSelected",
          value: function _setSelected(selected) {
            if (selected === this._selected) {
              return false;
            }

            this._selected = selected;

            if (selected) {
              this.selectionList.selectedOptions.select(this);
            } else {
              this.selectionList.selectedOptions.deselect(this);
            }

            this._changeDetector.markForCheck();

            return true;
          }
          /**
           * Notifies Angular that the option needs to be checked in the next change detection run. Mainly
           * used to trigger an update of the list option if the disabled state of the selection list
           * changed.
           */

        }, {
          key: "_markForCheck",
          value: function _markForCheck() {
            this._changeDetector.markForCheck();
          }
        }]);

        return MatListOption;
      }(_MatListOptionMixinBase);

      MatListOption.ɵfac = function MatListOption_Factory(t) {
        return new (t || MatListOption)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["forwardRef"])(function () {
          return MatSelectionList;
        })));
      };

      MatListOption.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({
        type: MatListOption,
        selectors: [["mat-list-option"]],
        contentQueries: function MatListOption_ContentQueries(rf, ctx, dirIndex) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵcontentQuery"](dirIndex, MatListAvatarCssMatStyler, true);

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵcontentQuery"](dirIndex, MatListIconCssMatStyler, true);

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵcontentQuery"](dirIndex, _angular_material_core__WEBPACK_IMPORTED_MODULE_2__["MatLine"], true);
          }

          if (rf & 2) {
            var _t;

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx._avatar = _t.first);
            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx._icon = _t.first);
            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx._lines = _t);
          }
        },
        viewQuery: function MatListOption_Query(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](_c4, true);
          }

          if (rf & 2) {
            var _t;

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx._text = _t.first);
          }
        },
        hostAttrs: ["role", "option", 1, "mat-list-item", "mat-list-option", "mat-focus-indicator"],
        hostVars: 15,
        hostBindings: function MatListOption_HostBindings(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("focus", function MatListOption_focus_HostBindingHandler() {
              return ctx._handleFocus();
            })("blur", function MatListOption_blur_HostBindingHandler() {
              return ctx._handleBlur();
            })("click", function MatListOption_click_HostBindingHandler() {
              return ctx._handleClick();
            });
          }

          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵattribute"]("aria-selected", ctx.selected)("aria-disabled", ctx.disabled)("tabindex", -1);

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵclassProp"]("mat-list-item-disabled", ctx.disabled)("mat-list-item-with-avatar", ctx._avatar || ctx._icon)("mat-primary", ctx.color === "primary")("mat-accent", ctx.color !== "primary" && ctx.color !== "warn")("mat-warn", ctx.color === "warn")("mat-list-single-selected-option", ctx.selected && !ctx.selectionList.multiple);
          }
        },
        inputs: {
          disableRipple: "disableRipple",
          checkboxPosition: "checkboxPosition",
          color: "color",
          value: "value",
          selected: "selected",
          disabled: "disabled"
        },
        exportAs: ["matListOption"],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵInheritDefinitionFeature"]],
        ngContentSelectors: _c6,
        decls: 7,
        vars: 5,
        consts: [[1, "mat-list-item-content"], ["mat-ripple", "", 1, "mat-list-item-ripple", 3, "matRippleTrigger", "matRippleDisabled"], [3, "state", "disabled", 4, "ngIf"], [1, "mat-list-text"], ["text", ""], [3, "state", "disabled"]],
        template: function MatListOption_Template(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"](_c5);

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0);

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "div", 1);

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, MatListOption_mat_pseudo_checkbox_2_Template, 1, 2, "mat-pseudo-checkbox", 2);

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 3, 4);

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](5);

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](6, 1);

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
          }

          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵclassProp"]("mat-list-item-content-reverse", ctx.checkboxPosition == "after");

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("matRippleTrigger", ctx._getHostElement())("matRippleDisabled", ctx._isRippleDisabled());

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.selectionList.multiple);
          }
        },
        directives: [_angular_material_core__WEBPACK_IMPORTED_MODULE_2__["MatRipple"], _angular_common__WEBPACK_IMPORTED_MODULE_0__["NgIf"], _angular_material_core__WEBPACK_IMPORTED_MODULE_2__["MatPseudoCheckbox"]],
        encapsulation: 2,
        changeDetection: 0
      });

      MatListOption.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]
        }, {
          type: MatSelectionList,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
            args: [Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["forwardRef"])(function () {
              return MatSelectionList;
            })]
          }]
        }];
      };

      MatListOption.propDecorators = {
        _avatar: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ContentChild"],
          args: [MatListAvatarCssMatStyler]
        }],
        _icon: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ContentChild"],
          args: [MatListIconCssMatStyler]
        }],
        _lines: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ContentChildren"],
          args: [_angular_material_core__WEBPACK_IMPORTED_MODULE_2__["MatLine"], {
            descendants: true
          }]
        }],
        _text: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"],
          args: ['text']
        }],
        checkboxPosition: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
        }],
        color: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
        }],
        value: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
        }],
        disabled: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
        }],
        selected: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](MatListOption, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
          args: [{
            selector: 'mat-list-option',
            exportAs: 'matListOption',
            inputs: ['disableRipple'],
            host: {
              'role': 'option',
              'class': 'mat-list-item mat-list-option mat-focus-indicator',
              '(focus)': '_handleFocus()',
              '(blur)': '_handleBlur()',
              '(click)': '_handleClick()',
              '[class.mat-list-item-disabled]': 'disabled',
              '[class.mat-list-item-with-avatar]': '_avatar || _icon',
              // Manually set the "primary" or "warn" class if the color has been explicitly
              // set to "primary" or "warn". The pseudo checkbox picks up these classes for
              // its theme.
              '[class.mat-primary]': 'color === "primary"',
              // Even though accent is the default, we need to set this class anyway, because the  list might
              // be placed inside a parent that has one of the other colors with a higher specificity.
              '[class.mat-accent]': 'color !== "primary" && color !== "warn"',
              '[class.mat-warn]': 'color === "warn"',
              '[class.mat-list-single-selected-option]': 'selected && !selectionList.multiple',
              '[attr.aria-selected]': 'selected',
              '[attr.aria-disabled]': 'disabled',
              '[attr.tabindex]': '-1'
            },
            template: "<div class=\"mat-list-item-content\"\n  [class.mat-list-item-content-reverse]=\"checkboxPosition == 'after'\">\n\n  <div mat-ripple\n    class=\"mat-list-item-ripple\"\n    [matRippleTrigger]=\"_getHostElement()\"\n    [matRippleDisabled]=\"_isRippleDisabled()\"></div>\n\n  <mat-pseudo-checkbox\n    *ngIf=\"selectionList.multiple\"\n    [state]=\"selected ? 'checked' : 'unchecked'\"\n    [disabled]=\"disabled\"></mat-pseudo-checkbox>\n\n  <div class=\"mat-list-text\" #text><ng-content></ng-content></div>\n\n  <ng-content select=\"[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]\">\n  </ng-content>\n\n</div>\n",
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None,
            changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]
          }, {
            type: MatSelectionList,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
              args: [Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["forwardRef"])(function () {
                return MatSelectionList;
              })]
            }]
          }];
        }, {
          checkboxPosition: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
          }],
          color: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
          }],
          value: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
          }],
          selected: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
          }],
          disabled: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
          }],
          _avatar: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ContentChild"],
            args: [MatListAvatarCssMatStyler]
          }],
          _icon: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ContentChild"],
            args: [MatListIconCssMatStyler]
          }],
          _lines: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ContentChildren"],
            args: [_angular_material_core__WEBPACK_IMPORTED_MODULE_2__["MatLine"], {
              descendants: true
            }]
          }],
          _text: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"],
            args: ['text']
          }]
        });
      })();
      /**
       * Material Design list component where each item is a selectable option. Behaves as a listbox.
       */


      var MatSelectionList = /*#__PURE__*/function (_MatSelectionListMixi) {
        _inherits2(MatSelectionList, _MatSelectionListMixi);

        var _super301 = _createSuper2(MatSelectionList);

        function MatSelectionList(_element, // @breaking-change 11.0.0 Remove `tabIndex` parameter.
        tabIndex, _changeDetector, // @breaking-change 11.0.0 `_focusMonitor` parameter to become required.
        _focusMonitor) {
          var _this605;

          _classCallCheck2(this, MatSelectionList);

          _this605 = _super301.call(this);
          _this605._element = _element;
          _this605._changeDetector = _changeDetector;
          _this605._focusMonitor = _focusMonitor;
          _this605._multiple = true;
          _this605._contentInitialized = false;
          /** Emits a change event whenever the selected state of an option changes. */

          _this605.selectionChange = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
          /**
           * Tabindex of the selection list.
           * @breaking-change 11.0.0 Remove `tabIndex` input.
           */

          _this605.tabIndex = 0;
          /** Theme color of the selection list. This sets the checkbox color for all list options. */

          _this605.color = 'accent';
          /**
           * Function used for comparing an option against the selected value when determining which
           * options should appear as selected. The first argument is the value of an options. The second
           * one is a value from the selected value. A boolean must be returned.
           */

          _this605.compareWith = function (a1, a2) {
            return a1 === a2;
          };

          _this605._disabled = false;
          /** The currently selected options. */

          _this605.selectedOptions = new _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_7__["SelectionModel"](_this605._multiple);
          /** The tabindex of the selection list. */

          _this605._tabIndex = -1;
          /** View to model callback that should be called whenever the selected options change. */

          _this605._onChange = function (_) {};
          /** Emits when the list has been destroyed. */


          _this605._destroyed = new rxjs__WEBPACK_IMPORTED_MODULE_4__["Subject"]();
          /** View to model callback that should be called if the list or its options lost focus. */

          _this605._onTouched = function () {};

          return _this605;
        }
        /** Whether the selection list is disabled. */


        _createClass2(MatSelectionList, [{
          key: "disabled",
          get: function get() {
            return this._disabled;
          },
          set: function set(value) {
            this._disabled = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_3__["coerceBooleanProperty"])(value); // The `MatSelectionList` and `MatListOption` are using the `OnPush` change detection
            // strategy. Therefore the options will not check for any changes if the `MatSelectionList`
            // changed its state. Since we know that a change to `disabled` property of the list affects
            // the state of the options, we manually mark each option for check.

            this._markOptionsForCheck();
          }
          /** Whether selection is limited to one or multiple items (default multiple). */

        }, {
          key: "multiple",
          get: function get() {
            return this._multiple;
          },
          set: function set(value) {
            var newValue = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_3__["coerceBooleanProperty"])(value);

            if (newValue !== this._multiple) {
              if (this._contentInitialized && (typeof ngDevMode === 'undefined' || ngDevMode)) {
                throw new Error('Cannot change `multiple` mode of mat-selection-list after initialization.');
              }

              this._multiple = newValue;
              this.selectedOptions = new _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_7__["SelectionModel"](this._multiple, this.selectedOptions.selected);
            }
          }
        }, {
          key: "ngAfterContentInit",
          value: function ngAfterContentInit() {
            var _this606 = this;

            var _a;

            this._contentInitialized = true;
            this._keyManager = new _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_6__["FocusKeyManager"](this.options).withWrap().withTypeAhead().withHomeAndEnd() // Allow disabled items to be focusable. For accessibility reasons, there must be a way for
            // screenreader users, that allows reading the different options of the list.
            .skipPredicate(function () {
              return false;
            }).withAllowedModifierKeys(['shiftKey']);

            if (this._value) {
              this._setOptionsFromValues(this._value);
            } // If the user attempts to tab out of the selection list, allow focus to escape.


            this._keyManager.tabOut.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["takeUntil"])(this._destroyed)).subscribe(function () {
              _this606._allowFocusEscape();
            }); // When the number of options change, update the tabindex of the selection list.


            this.options.changes.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["startWith"])(null), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["takeUntil"])(this._destroyed)).subscribe(function () {
              _this606._updateTabIndex();
            }); // Sync external changes to the model back to the options.

            this.selectedOptions.changed.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["takeUntil"])(this._destroyed)).subscribe(function (event) {
              if (event.added) {
                var _iterator73 = _createForOfIteratorHelper(event.added),
                    _step72;

                try {
                  for (_iterator73.s(); !(_step72 = _iterator73.n()).done;) {
                    var item = _step72.value;
                    item.selected = true;
                  }
                } catch (err) {
                  _iterator73.e(err);
                } finally {
                  _iterator73.f();
                }
              }

              if (event.removed) {
                var _iterator74 = _createForOfIteratorHelper(event.removed),
                    _step73;

                try {
                  for (_iterator74.s(); !(_step73 = _iterator74.n()).done;) {
                    var _item2 = _step73.value;
                    _item2.selected = false;
                  }
                } catch (err) {
                  _iterator74.e(err);
                } finally {
                  _iterator74.f();
                }
              }
            }); // @breaking-change 11.0.0 Remove null assertion once _focusMonitor is required.

            (_a = this._focusMonitor) === null || _a === void 0 ? void 0 : _a.monitor(this._element).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["takeUntil"])(this._destroyed)).subscribe(function (origin) {
              if (origin === 'keyboard' || origin === 'program') {
                var activeIndex = _this606._keyManager.activeItemIndex;

                if (!activeIndex || activeIndex === -1) {
                  // If there is no active index, set focus to the first option.
                  _this606._keyManager.setFirstItemActive();
                } else {
                  // Otherwise, set focus to the active option.
                  _this606._keyManager.setActiveItem(activeIndex);
                }
              }
            });
          }
        }, {
          key: "ngOnChanges",
          value: function ngOnChanges(changes) {
            var disableRippleChanges = changes['disableRipple'];
            var colorChanges = changes['color'];

            if (disableRippleChanges && !disableRippleChanges.firstChange || colorChanges && !colorChanges.firstChange) {
              this._markOptionsForCheck();
            }
          }
        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            var _a; // @breaking-change 11.0.0 Remove null assertion once _focusMonitor is required.


            (_a = this._focusMonitor) === null || _a === void 0 ? void 0 : _a.stopMonitoring(this._element);

            this._destroyed.next();

            this._destroyed.complete();

            this._isDestroyed = true;
          }
          /** Focuses the selection list. */

        }, {
          key: "focus",
          value: function focus(options) {
            this._element.nativeElement.focus(options);
          }
          /** Selects all of the options. */

        }, {
          key: "selectAll",
          value: function selectAll() {
            this._setAllOptionsSelected(true);
          }
          /** Deselects all of the options. */

        }, {
          key: "deselectAll",
          value: function deselectAll() {
            this._setAllOptionsSelected(false);
          }
          /** Sets the focused option of the selection-list. */

        }, {
          key: "_setFocusedOption",
          value: function _setFocusedOption(option) {
            this._keyManager.updateActiveItem(option);
          }
          /**
           * Removes an option from the selection list and updates the active item.
           * @returns Currently-active item.
           */

        }, {
          key: "_removeOptionFromList",
          value: function _removeOptionFromList(option) {
            var optionIndex = this._getOptionIndex(option);

            if (optionIndex > -1 && this._keyManager.activeItemIndex === optionIndex) {
              // Check whether the option is the last item
              if (optionIndex > 0) {
                this._keyManager.updateActiveItem(optionIndex - 1);
              } else if (optionIndex === 0 && this.options.length > 1) {
                this._keyManager.updateActiveItem(Math.min(optionIndex + 1, this.options.length - 1));
              }
            }

            return this._keyManager.activeItem;
          }
          /** Passes relevant key presses to our key manager. */

        }, {
          key: "_keydown",
          value: function _keydown(event) {
            var keyCode = event.keyCode;
            var manager = this._keyManager;
            var previousFocusIndex = manager.activeItemIndex;
            var hasModifier = Object(_angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_8__["hasModifierKey"])(event);

            switch (keyCode) {
              case _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_8__["SPACE"]:
              case _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_8__["ENTER"]:
                if (!hasModifier && !manager.isTyping()) {
                  this._toggleFocusedOption(); // Always prevent space from scrolling the page since the list has focus


                  event.preventDefault();
                }

                break;

              default:
                // The "A" key gets special treatment, because it's used for the "select all" functionality.
                if (keyCode === _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_8__["A"] && this.multiple && Object(_angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_8__["hasModifierKey"])(event, 'ctrlKey') && !manager.isTyping()) {
                  var shouldSelect = this.options.some(function (option) {
                    return !option.disabled && !option.selected;
                  });

                  this._setAllOptionsSelected(shouldSelect, true, true);

                  event.preventDefault();
                } else {
                  manager.onKeydown(event);
                }

            }

            if (this.multiple && (keyCode === _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_8__["UP_ARROW"] || keyCode === _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_8__["DOWN_ARROW"]) && event.shiftKey && manager.activeItemIndex !== previousFocusIndex) {
              this._toggleFocusedOption();
            }
          }
          /** Reports a value change to the ControlValueAccessor */

        }, {
          key: "_reportValueChange",
          value: function _reportValueChange() {
            // Stop reporting value changes after the list has been destroyed. This avoids
            // cases where the list might wrongly reset its value once it is removed, but
            // the form control is still live.
            if (this.options && !this._isDestroyed) {
              var value = this._getSelectedOptionValues();

              this._onChange(value);

              this._value = value;
            }
          }
          /** Emits a change event if the selected state of an option changed. */

        }, {
          key: "_emitChangeEvent",
          value: function _emitChangeEvent(options) {
            this.selectionChange.emit(new MatSelectionListChange(this, options[0], options));
          }
          /** Implemented as part of ControlValueAccessor. */

        }, {
          key: "writeValue",
          value: function writeValue(values) {
            this._value = values;

            if (this.options) {
              this._setOptionsFromValues(values || []);
            }
          }
          /** Implemented as a part of ControlValueAccessor. */

        }, {
          key: "setDisabledState",
          value: function setDisabledState(isDisabled) {
            this.disabled = isDisabled;
          }
          /** Implemented as part of ControlValueAccessor. */

        }, {
          key: "registerOnChange",
          value: function registerOnChange(fn) {
            this._onChange = fn;
          }
          /** Implemented as part of ControlValueAccessor. */

        }, {
          key: "registerOnTouched",
          value: function registerOnTouched(fn) {
            this._onTouched = fn;
          }
          /** Sets the selected options based on the specified values. */

        }, {
          key: "_setOptionsFromValues",
          value: function _setOptionsFromValues(values) {
            var _this607 = this;

            this.options.forEach(function (option) {
              return option._setSelected(false);
            });
            values.forEach(function (value) {
              var correspondingOption = _this607.options.find(function (option) {
                // Skip options that are already in the model. This allows us to handle cases
                // where the same primitive value is selected multiple times.
                return option.selected ? false : _this607.compareWith(option.value, value);
              });

              if (correspondingOption) {
                correspondingOption._setSelected(true);
              }
            });
          }
          /** Returns the values of the selected options. */

        }, {
          key: "_getSelectedOptionValues",
          value: function _getSelectedOptionValues() {
            return this.options.filter(function (option) {
              return option.selected;
            }).map(function (option) {
              return option.value;
            });
          }
          /** Toggles the state of the currently focused option if enabled. */

        }, {
          key: "_toggleFocusedOption",
          value: function _toggleFocusedOption() {
            var focusedIndex = this._keyManager.activeItemIndex;

            if (focusedIndex != null && this._isValidIndex(focusedIndex)) {
              var focusedOption = this.options.toArray()[focusedIndex];

              if (focusedOption && !focusedOption.disabled && (this._multiple || !focusedOption.selected)) {
                focusedOption.toggle(); // Emit a change event because the focused option changed its state through user
                // interaction.

                this._emitChangeEvent([focusedOption]);
              }
            }
          }
          /**
           * Sets the selected state on all of the options
           * and emits an event if anything changed.
           */

        }, {
          key: "_setAllOptionsSelected",
          value: function _setAllOptionsSelected(isSelected, skipDisabled, isUserInput) {
            // Keep track of whether anything changed, because we only want to
            // emit the changed event when something actually changed.
            var changedOptions = [];
            this.options.forEach(function (option) {
              if ((!skipDisabled || !option.disabled) && option._setSelected(isSelected)) {
                changedOptions.push(option);
              }
            });

            if (changedOptions.length) {
              this._reportValueChange();

              if (isUserInput) {
                this._emitChangeEvent(changedOptions);
              }
            }
          }
          /**
           * Utility to ensure all indexes are valid.
           * @param index The index to be checked.
           * @returns True if the index is valid for our list of options.
           */

        }, {
          key: "_isValidIndex",
          value: function _isValidIndex(index) {
            return index >= 0 && index < this.options.length;
          }
          /** Returns the index of the specified list option. */

        }, {
          key: "_getOptionIndex",
          value: function _getOptionIndex(option) {
            return this.options.toArray().indexOf(option);
          }
          /** Marks all the options to be checked in the next change detection run. */

        }, {
          key: "_markOptionsForCheck",
          value: function _markOptionsForCheck() {
            if (this.options) {
              this.options.forEach(function (option) {
                return option._markForCheck();
              });
            }
          }
          /**
           * Removes the tabindex from the selection list and resets it back afterwards, allowing the user
           * to tab out of it. This prevents the list from capturing focus and redirecting it back within
           * the list, creating a focus trap if it user tries to tab away.
           */

        }, {
          key: "_allowFocusEscape",
          value: function _allowFocusEscape() {
            var _this608 = this;

            this._tabIndex = -1;
            setTimeout(function () {
              _this608._tabIndex = 0;

              _this608._changeDetector.markForCheck();
            });
          }
          /** Updates the tabindex based upon if the selection list is empty. */

        }, {
          key: "_updateTabIndex",
          value: function _updateTabIndex() {
            this._tabIndex = this.options.length === 0 ? -1 : 0;
          }
        }]);

        return MatSelectionList;
      }(_MatSelectionListMixinBase);

      MatSelectionList.ɵfac = function MatSelectionList_Factory(t) {
        return new (t || MatSelectionList)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinjectAttribute"]('tabindex'), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_6__["FocusMonitor"]));
      };

      MatSelectionList.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({
        type: MatSelectionList,
        selectors: [["mat-selection-list"]],
        contentQueries: function MatSelectionList_ContentQueries(rf, ctx, dirIndex) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵcontentQuery"](dirIndex, MatListOption, true);
          }

          if (rf & 2) {
            var _t;

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.options = _t);
          }
        },
        hostAttrs: ["role", "listbox", 1, "mat-selection-list", "mat-list-base"],
        hostVars: 3,
        hostBindings: function MatSelectionList_HostBindings(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("keydown", function MatSelectionList_keydown_HostBindingHandler($event) {
              return ctx._keydown($event);
            });
          }

          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵattribute"]("aria-multiselectable", ctx.multiple)("aria-disabled", ctx.disabled.toString())("tabindex", ctx._tabIndex);
          }
        },
        inputs: {
          disableRipple: "disableRipple",
          tabIndex: "tabIndex",
          color: "color",
          compareWith: "compareWith",
          disabled: "disabled",
          multiple: "multiple"
        },
        outputs: {
          selectionChange: "selectionChange"
        },
        exportAs: ["matSelectionList"],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵProvidersFeature"]([MAT_SELECTION_LIST_VALUE_ACCESSOR]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵInheritDefinitionFeature"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵNgOnChangesFeature"]],
        ngContentSelectors: _c0,
        decls: 1,
        vars: 0,
        template: function MatSelectionList_Template(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](0);
          }
        },
        styles: [_c1],
        encapsulation: 2,
        changeDetection: 0
      });

      MatSelectionList.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]
        }, {
          type: String,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Attribute"],
            args: ['tabindex']
          }]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]
        }, {
          type: _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_6__["FocusMonitor"]
        }];
      };

      MatSelectionList.propDecorators = {
        options: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ContentChildren"],
          args: [MatListOption, {
            descendants: true
          }]
        }],
        selectionChange: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
        }],
        tabIndex: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
        }],
        color: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
        }],
        compareWith: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
        }],
        disabled: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
        }],
        multiple: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](MatSelectionList, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
          args: [{
            selector: 'mat-selection-list',
            exportAs: 'matSelectionList',
            inputs: ['disableRipple'],
            host: {
              'role': 'listbox',
              'class': 'mat-selection-list mat-list-base',
              '(keydown)': '_keydown($event)',
              '[attr.aria-multiselectable]': 'multiple',
              '[attr.aria-disabled]': 'disabled.toString()',
              '[attr.tabindex]': '_tabIndex'
            },
            template: '<ng-content></ng-content>',
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None,
            providers: [MAT_SELECTION_LIST_VALUE_ACCESSOR],
            changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush,
            styles: [".mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:\"\";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n"]
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]
          }, {
            type: String,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Attribute"],
              args: ['tabindex']
            }]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]
          }, {
            type: _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_6__["FocusMonitor"]
          }];
        }, {
          selectionChange: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
          }],
          tabIndex: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
          }],
          color: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
          }],
          compareWith: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
          }],
          disabled: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
          }],
          multiple: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
          }],
          options: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ContentChildren"],
            args: [MatListOption, {
              descendants: true
            }]
          }]
        });
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var MatListModule = function MatListModule() {
        _classCallCheck2(this, MatListModule);
      };

      MatListModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineNgModule"]({
        type: MatListModule
      });
      MatListModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjector"]({
        factory: function MatListModule_Factory(t) {
          return new (t || MatListModule)();
        },
        imports: [[_angular_material_core__WEBPACK_IMPORTED_MODULE_2__["MatLineModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_2__["MatRippleModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_2__["MatCommonModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_2__["MatPseudoCheckboxModule"], _angular_common__WEBPACK_IMPORTED_MODULE_0__["CommonModule"]], _angular_material_core__WEBPACK_IMPORTED_MODULE_2__["MatLineModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_2__["MatCommonModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_2__["MatPseudoCheckboxModule"], _angular_material_divider__WEBPACK_IMPORTED_MODULE_10__["MatDividerModule"]]
      });

      (function () {
        (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsetNgModuleScope"](MatListModule, {
          declarations: function declarations() {
            return [MatList, MatNavList, MatListItem, MatListAvatarCssMatStyler, MatListIconCssMatStyler, MatListSubheaderCssMatStyler, MatSelectionList, MatListOption];
          },
          imports: function imports() {
            return [_angular_material_core__WEBPACK_IMPORTED_MODULE_2__["MatLineModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_2__["MatRippleModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_2__["MatCommonModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_2__["MatPseudoCheckboxModule"], _angular_common__WEBPACK_IMPORTED_MODULE_0__["CommonModule"]];
          },
          exports: function exports() {
            return [MatList, MatNavList, MatListItem, MatListAvatarCssMatStyler, _angular_material_core__WEBPACK_IMPORTED_MODULE_2__["MatLineModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_2__["MatCommonModule"], MatListIconCssMatStyler, MatListSubheaderCssMatStyler, _angular_material_core__WEBPACK_IMPORTED_MODULE_2__["MatPseudoCheckboxModule"], MatSelectionList, MatListOption, _angular_material_divider__WEBPACK_IMPORTED_MODULE_10__["MatDividerModule"]];
          }
        });
      })();
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](MatListModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"],
          args: [{
            imports: [_angular_material_core__WEBPACK_IMPORTED_MODULE_2__["MatLineModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_2__["MatRippleModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_2__["MatCommonModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_2__["MatPseudoCheckboxModule"], _angular_common__WEBPACK_IMPORTED_MODULE_0__["CommonModule"]],
            exports: [MatList, MatNavList, MatListItem, MatListAvatarCssMatStyler, _angular_material_core__WEBPACK_IMPORTED_MODULE_2__["MatLineModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_2__["MatCommonModule"], MatListIconCssMatStyler, MatListSubheaderCssMatStyler, _angular_material_core__WEBPACK_IMPORTED_MODULE_2__["MatPseudoCheckboxModule"], MatSelectionList, MatListOption, _angular_material_divider__WEBPACK_IMPORTED_MODULE_10__["MatDividerModule"]],
            declarations: [MatList, MatNavList, MatListItem, MatListAvatarCssMatStyler, MatListIconCssMatStyler, MatListSubheaderCssMatStyler, MatSelectionList, MatListOption]
          }]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Generated bundle index. Do not edit.
       */
      //# sourceMappingURL=list.js.map

      /***/

    },

    /***/
    "SuC2": function SuC2(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return subSeconds;
      });
      /* harmony import */


      var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../_lib/toInteger/index.js */
      "/h9T");
      /* harmony import */


      var _addSeconds_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../addSeconds/index.js */
      "Ctv7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name subSeconds
       * @category Second Helpers
       * @summary Subtract the specified number of seconds from the given date.
       *
       * @description
       * Subtract the specified number of seconds from the given date.
       *
       * ### 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 {Date|Number} date - the date to be changed
       * @param {Number} amount - the amount of seconds to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
       * @returns {Date} the new date with the seconds subtracted
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // Subtract 30 seconds from 10 July 2014 12:45:00:
       * var result = subSeconds(new Date(2014, 6, 10, 12, 45, 0), 30)
       * //=> Thu Jul 10 2014 12:44:30
       */


      function subSeconds(dirtyDate, dirtyAmount) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(2, arguments);
        var amount = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyAmount);
        return Object(_addSeconds_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate, -amount);
      }
      /***/

    },

    /***/
    "SxV6": function SxV6(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "first", function () {
        return first;
      });
      /* harmony import */


      var _util_EmptyError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../util/EmptyError */
      "sVev");
      /* harmony import */


      var _filter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ./filter */
      "pLZG");
      /* harmony import */


      var _take__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ./take */
      "IzEk");
      /* harmony import */


      var _defaultIfEmpty__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ./defaultIfEmpty */
      "xbPD");
      /* harmony import */


      var _throwIfEmpty__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! ./throwIfEmpty */
      "XDbj");
      /* harmony import */


      var _util_identity__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! ../util/identity */
      "SpAZ");

      function first(predicate, defaultValue) {
        var hasDefaultValue = arguments.length >= 2;
        return function (source) {
          return source.pipe(predicate ? Object(_filter__WEBPACK_IMPORTED_MODULE_1__["filter"])(function (v, i) {
            return predicate(v, i, source);
          }) : _util_identity__WEBPACK_IMPORTED_MODULE_5__["identity"], Object(_take__WEBPACK_IMPORTED_MODULE_2__["take"])(1), hasDefaultValue ? Object(_defaultIfEmpty__WEBPACK_IMPORTED_MODULE_3__["defaultIfEmpty"])(defaultValue) : Object(_throwIfEmpty__WEBPACK_IMPORTED_MODULE_4__["throwIfEmpty"])(function () {
            return new _util_EmptyError__WEBPACK_IMPORTED_MODULE_0__["EmptyError"]();
          }));
        };
      } //# sourceMappingURL=first.js.map

      /***/

    },

    /***/
    "Szzx": function Szzx(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return getUTCWeekYear;
      });
      /* harmony import */


      var _toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toInteger/index.js */
      "/h9T");
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _startOfUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../startOfUTCWeek/index.js */
      "1vjI");
      /* harmony import */


      var _requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../requiredArgs/index.js */
      "jIYg"); // This function will be a part of public API when UTC function will be implemented.
      // See issue: https://github.com/date-fns/date-fns/issues/376


      function getUTCWeekYear(dirtyDate, dirtyOptions) {
        Object(_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(1, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate, dirtyOptions);
        var year = date.getUTCFullYear();
        var options = dirtyOptions || {};
        var locale = options.locale;
        var localeFirstWeekContainsDate = locale && locale.options && locale.options.firstWeekContainsDate;
        var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : Object(_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(localeFirstWeekContainsDate);
        var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : Object(_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(options.firstWeekContainsDate); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN

        if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
          throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');
        }

        var firstWeekOfNextYear = new Date(0);
        firstWeekOfNextYear.setUTCFullYear(year + 1, 0, firstWeekContainsDate);
        firstWeekOfNextYear.setUTCHours(0, 0, 0, 0);
        var startOfNextYear = Object(_startOfUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(firstWeekOfNextYear, dirtyOptions);
        var firstWeekOfThisYear = new Date(0);
        firstWeekOfThisYear.setUTCFullYear(year, 0, firstWeekContainsDate);
        firstWeekOfThisYear.setUTCHours(0, 0, 0, 0);
        var startOfThisYear = Object(_startOfUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(firstWeekOfThisYear, dirtyOptions);

        if (date.getTime() >= startOfNextYear.getTime()) {
          return year + 1;
        } else if (date.getTime() >= startOfThisYear.getTime()) {
          return year;
        } else {
          return year - 1;
        }
      }
      /***/

    },

    /***/
    "TGAR": function TGAR(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return isSameQuarter;
      });
      /* harmony import */


      var _startOfQuarter_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../startOfQuarter/index.js */
      "vHCX");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name isSameQuarter
       * @category Quarter Helpers
       * @summary Are the given dates in the same year quarter?
       *
       * @description
       * Are the given dates in the same year quarter?
       *
       * ### 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 {Date|Number} dateLeft - the first date to check
       * @param {Date|Number} dateRight - the second date to check
       * @returns {Boolean} the dates are in the same quarter
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // Are 1 January 2014 and 8 March 2014 in the same quarter?
       * var result = isSameQuarter(new Date(2014, 0, 1), new Date(2014, 2, 8))
       * //=> true
       */


      function isSameQuarter(dirtyDateLeft, dirtyDateRight) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(2, arguments);
        var dateLeftStartOfQuarter = Object(_startOfQuarter_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateLeft);
        var dateRightStartOfQuarter = Object(_startOfQuarter_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateRight);
        return dateLeftStartOfQuarter.getTime() === dateRightStartOfQuarter.getTime();
      }
      /***/

    },

    /***/
    "TSSN": function TSSN(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "DEFAULT_LANGUAGE", function () {
        return DEFAULT_LANGUAGE;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "FakeMissingTranslationHandler", function () {
        return FakeMissingTranslationHandler;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MissingTranslationHandler", function () {
        return MissingTranslationHandler;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TranslateCompiler", function () {
        return TranslateCompiler;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TranslateDefaultParser", function () {
        return TranslateDefaultParser;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TranslateDirective", function () {
        return TranslateDirective;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TranslateFakeCompiler", function () {
        return TranslateFakeCompiler;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TranslateFakeLoader", function () {
        return TranslateFakeLoader;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TranslateLoader", function () {
        return TranslateLoader;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TranslateModule", function () {
        return TranslateModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TranslateParser", function () {
        return TranslateParser;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TranslatePipe", function () {
        return TranslatePipe;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TranslateService", function () {
        return TranslateService;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TranslateStore", function () {
        return TranslateStore;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "USE_DEFAULT_LANG", function () {
        return USE_DEFAULT_LANG;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "USE_EXTEND", function () {
        return USE_EXTEND;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "USE_STORE", function () {
        return USE_STORE;
      });
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /* harmony import */


      var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! rxjs */
      "qCKp");
      /* harmony import */


      var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! rxjs/operators */
      "kU1M");
      /**
       * @fileoverview added by tsickle
       * Generated from: lib/translate.loader.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * @abstract
       */


      var TranslateLoader = function TranslateLoader() {
        _classCallCheck2(this, TranslateLoader);
      };

      if (false) {}
      /**
       * This loader is just a placeholder that does nothing, in case you don't need a loader at all
       */


      var TranslateFakeLoader = /*#__PURE__*/function (_TranslateLoader) {
        _inherits2(TranslateFakeLoader, _TranslateLoader);

        var _super302 = _createSuper2(TranslateFakeLoader);

        function TranslateFakeLoader() {
          _classCallCheck2(this, TranslateFakeLoader);

          return _super302.apply(this, arguments);
        }

        _createClass2(TranslateFakeLoader, [{
          key: "getTranslation",
          value:
          /**
           * @param {?} lang
           * @return {?}
           */
          function getTranslation(lang) {
            return Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["of"])({});
          }
        }]);

        return TranslateFakeLoader;
      }(TranslateLoader);

      TranslateFakeLoader.ɵfac = function TranslateFakeLoader_Factory(t) {
        return ɵTranslateFakeLoader_BaseFactory(t || TranslateFakeLoader);
      };

      TranslateFakeLoader.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
        token: TranslateFakeLoader,
        factory: TranslateFakeLoader.ɵfac
      });

      var ɵTranslateFakeLoader_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](TranslateFakeLoader);
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](TranslateFakeLoader, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
        }], null, null);
      })();
      /**
       * @fileoverview added by tsickle
       * Generated from: lib/missing-translation-handler.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * @record
       */


      function MissingTranslationHandlerParams() {}

      if (false) {}
      /**
       * @abstract
       */


      var MissingTranslationHandler = function MissingTranslationHandler() {
        _classCallCheck2(this, MissingTranslationHandler);
      };

      if (false) {}
      /**
       * This handler is just a placeholder that does nothing, in case you don't need a missing translation handler at all
       */


      var FakeMissingTranslationHandler = /*#__PURE__*/function () {
        function FakeMissingTranslationHandler() {
          _classCallCheck2(this, FakeMissingTranslationHandler);
        }

        _createClass2(FakeMissingTranslationHandler, [{
          key: "handle",
          value:
          /**
           * @param {?} params
           * @return {?}
           */
          function handle(params) {
            return params.key;
          }
        }]);

        return FakeMissingTranslationHandler;
      }();

      FakeMissingTranslationHandler.ɵfac = function FakeMissingTranslationHandler_Factory(t) {
        return new (t || FakeMissingTranslationHandler)();
      };

      FakeMissingTranslationHandler.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
        token: FakeMissingTranslationHandler,
        factory: FakeMissingTranslationHandler.ɵfac
      });
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](FakeMissingTranslationHandler, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
        }], null, null);
      })();
      /**
       * @fileoverview added by tsickle
       * Generated from: lib/util.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /* tslint:disable */

      /**
       * Determines if two objects or two values are equivalent.
       *
       * Two objects or values are considered equivalent if at least one of the following is true:
       *
       * * Both objects or values pass `===` comparison.
       * * Both objects or values are of the same type and all of their properties are equal by
       *   comparing them with `equals`.
       *
       * @param {?} o1 Object or value to compare.
       * @param {?} o2 Object or value to compare.
       * @return {?} true if arguments are equal.
       */


      function equals(o1, o2) {
        if (o1 === o2) return true;
        if (o1 === null || o2 === null) return false;
        if (o1 !== o1 && o2 !== o2) return true; // NaN === NaN
        // NaN === NaN

        /** @type {?} */

        var t1 = typeof o1;
        /** @type {?} */

        var t2 = typeof o2;
        /** @type {?} */

        var length;
        /** @type {?} */

        var key;
        /** @type {?} */

        var keySet;

        if (t1 == t2 && t1 == 'object') {
          if (Array.isArray(o1)) {
            if (!Array.isArray(o2)) return false;

            if ((length = o1.length) == o2.length) {
              for (key = 0; key < length; key++) {
                if (!equals(o1[key], o2[key])) return false;
              }

              return true;
            }
          } else {
            if (Array.isArray(o2)) {
              return false;
            }

            keySet = Object.create(null);

            for (key in o1) {
              if (!equals(o1[key], o2[key])) {
                return false;
              }

              keySet[key] = true;
            }

            for (key in o2) {
              if (!(key in keySet) && typeof o2[key] !== 'undefined') {
                return false;
              }
            }

            return true;
          }
        }

        return false;
      }
      /* tslint:enable */

      /**
       * @param {?} value
       * @return {?}
       */


      function isDefined(value) {
        return typeof value !== 'undefined' && value !== null;
      }
      /**
       * @param {?} item
       * @return {?}
       */


      function isObject(item) {
        return item && typeof item === 'object' && !Array.isArray(item);
      }
      /**
       * @param {?} target
       * @param {?} source
       * @return {?}
       */


      function mergeDeep(target, source) {
        /** @type {?} */
        var output = Object.assign({}, target);

        if (isObject(target) && isObject(source)) {
          Object.keys(source).forEach(
          /**
          * @param {?} key
          * @return {?}
          */
          function (key) {
            if (isObject(source[key])) {
              if (!(key in target)) {
                Object.assign(output, _defineProperty({}, key, source[key]));
              } else {
                output[key] = mergeDeep(target[key], source[key]);
              }
            } else {
              Object.assign(output, _defineProperty({}, key, source[key]));
            }
          });
        }

        return output;
      }
      /**
       * @fileoverview added by tsickle
       * Generated from: lib/translate.parser.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * @abstract
       */


      var TranslateParser = function TranslateParser() {
        _classCallCheck2(this, TranslateParser);
      };

      if (false) {}

      var TranslateDefaultParser = /*#__PURE__*/function (_TranslateParser) {
        _inherits2(TranslateDefaultParser, _TranslateParser);

        var _super303 = _createSuper2(TranslateDefaultParser);

        function TranslateDefaultParser() {
          var _this609;

          _classCallCheck2(this, TranslateDefaultParser);

          _this609 = _super303.apply(this, arguments);
          _this609.templateMatcher = /{{\s?([^{}\s]*)\s?}}/g;
          return _this609;
        }
        /**
         * @param {?} expr
         * @param {?=} params
         * @return {?}
         */


        _createClass2(TranslateDefaultParser, [{
          key: "interpolate",
          value: function interpolate(expr, params) {
            /** @type {?} */
            var result;

            if (typeof expr === 'string') {
              result = this.interpolateString(expr, params);
            } else if (typeof expr === 'function') {
              result = this.interpolateFunction(expr, params);
            } else {
              // this should not happen, but an unrelated TranslateService test depends on it
              result = expr;
            }

            return result;
          }
          /**
           * @param {?} target
           * @param {?} key
           * @return {?}
           */

        }, {
          key: "getValue",
          value: function getValue(target, key) {
            /** @type {?} */
            var keys = typeof key === 'string' ? key.split('.') : [key];
            key = '';

            do {
              key += keys.shift();

              if (isDefined(target) && isDefined(target[key]) && (typeof target[key] === 'object' || !keys.length)) {
                target = target[key];
                key = '';
              } else if (!keys.length) {
                target = undefined;
              } else {
                key += '.';
              }
            } while (keys.length);

            return target;
          }
          /**
           * @private
           * @param {?} fn
           * @param {?=} params
           * @return {?}
           */

        }, {
          key: "interpolateFunction",
          value: function interpolateFunction(fn, params) {
            return fn(params);
          }
          /**
           * @private
           * @param {?} expr
           * @param {?=} params
           * @return {?}
           */

        }, {
          key: "interpolateString",
          value: function interpolateString(expr, params) {
            var _this610 = this;

            if (!params) {
              return expr;
            }

            return expr.replace(this.templateMatcher,
            /**
            * @param {?} substring
            * @param {?} b
            * @return {?}
            */
            function (substring, b) {
              /** @type {?} */
              var r = _this610.getValue(params, b);

              return isDefined(r) ? r : substring;
            });
          }
        }]);

        return TranslateDefaultParser;
      }(TranslateParser);

      TranslateDefaultParser.ɵfac = function TranslateDefaultParser_Factory(t) {
        return ɵTranslateDefaultParser_BaseFactory(t || TranslateDefaultParser);
      };

      TranslateDefaultParser.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
        token: TranslateDefaultParser,
        factory: TranslateDefaultParser.ɵfac
      });

      var ɵTranslateDefaultParser_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](TranslateDefaultParser);
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](TranslateDefaultParser, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
        }], null, null);
      })();

      if (false) {}
      /**
       * @fileoverview added by tsickle
       * Generated from: lib/translate.compiler.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * @abstract
       */


      var TranslateCompiler = function TranslateCompiler() {
        _classCallCheck2(this, TranslateCompiler);
      };

      if (false) {}
      /**
       * This compiler is just a placeholder that does nothing, in case you don't need a compiler at all
       */


      var TranslateFakeCompiler = /*#__PURE__*/function (_TranslateCompiler) {
        _inherits2(TranslateFakeCompiler, _TranslateCompiler);

        var _super304 = _createSuper2(TranslateFakeCompiler);

        function TranslateFakeCompiler() {
          _classCallCheck2(this, TranslateFakeCompiler);

          return _super304.apply(this, arguments);
        }

        _createClass2(TranslateFakeCompiler, [{
          key: "compile",
          value:
          /**
           * @param {?} value
           * @param {?} lang
           * @return {?}
           */
          function compile(value, lang) {
            return value;
          }
          /**
           * @param {?} translations
           * @param {?} lang
           * @return {?}
           */

        }, {
          key: "compileTranslations",
          value: function compileTranslations(translations, lang) {
            return translations;
          }
        }]);

        return TranslateFakeCompiler;
      }(TranslateCompiler);

      TranslateFakeCompiler.ɵfac = function TranslateFakeCompiler_Factory(t) {
        return ɵTranslateFakeCompiler_BaseFactory(t || TranslateFakeCompiler);
      };

      TranslateFakeCompiler.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
        token: TranslateFakeCompiler,
        factory: TranslateFakeCompiler.ɵfac
      });

      var ɵTranslateFakeCompiler_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](TranslateFakeCompiler);
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](TranslateFakeCompiler, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
        }], null, null);
      })();
      /**
       * @fileoverview added by tsickle
       * Generated from: lib/translate.store.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */


      var TranslateStore = function TranslateStore() {
        _classCallCheck2(this, TranslateStore);

        /**
         * The lang currently used
         */
        this.currentLang = this.defaultLang;
        /**
         * a list of translations per lang
         */

        this.translations = {};
        /**
         * an array of langs
         */

        this.langs = [];
        /**
         * An EventEmitter to listen to translation change events
         * onTranslationChange.subscribe((params: TranslationChangeEvent) => {
         *     // do something
         * });
         */

        this.onTranslationChange = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        /**
         * An EventEmitter to listen to lang change events
         * onLangChange.subscribe((params: LangChangeEvent) => {
         *     // do something
         * });
         */

        this.onLangChange = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        /**
         * An EventEmitter to listen to default lang change events
         * onDefaultLangChange.subscribe((params: DefaultLangChangeEvent) => {
         *     // do something
         * });
         */

        this.onDefaultLangChange = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
      };

      if (false) {}
      /**
       * @fileoverview added by tsickle
       * Generated from: lib/translate.service.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /** @type {?} */


      var USE_STORE = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('USE_STORE');
      /** @type {?} */

      var USE_DEFAULT_LANG = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('USE_DEFAULT_LANG');
      /** @type {?} */

      var DEFAULT_LANGUAGE = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('DEFAULT_LANGUAGE');
      /** @type {?} */

      var USE_EXTEND = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('USE_EXTEND');
      /**
       * @record
       */

      function TranslationChangeEvent() {}

      if (false) {}
      /**
       * @record
       */


      function LangChangeEvent() {}

      if (false) {}
      /**
       * @record
       */


      function DefaultLangChangeEvent() {}

      if (false) {}

      var TranslateService = /*#__PURE__*/function () {
        /**
         *
         * @param {?} store an instance of the store (that is supposed to be unique)
         * @param {?} currentLoader An instance of the loader currently used
         * @param {?} compiler An instance of the compiler currently used
         * @param {?} parser An instance of the parser currently used
         * @param {?} missingTranslationHandler A handler for missing translations.
         * @param {?=} useDefaultLang whether we should use default language translation when current language translation is missing.
         * @param {?=} isolate whether this service should use the store or not
         * @param {?=} extend To make a child module extend (and use) translations from parent modules.
         * @param {?=} defaultLanguage Set the default language using configuration
         */
        function TranslateService(store, currentLoader, compiler, parser, missingTranslationHandler) {
          var useDefaultLang = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : true;
          var isolate = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : false;
          var extend = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : false;
          var defaultLanguage = arguments.length > 8 ? arguments[8] : undefined;

          _classCallCheck2(this, TranslateService);

          this.store = store;
          this.currentLoader = currentLoader;
          this.compiler = compiler;
          this.parser = parser;
          this.missingTranslationHandler = missingTranslationHandler;
          this.useDefaultLang = useDefaultLang;
          this.isolate = isolate;
          this.extend = extend;
          this.pending = false;
          this._onTranslationChange = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
          this._onLangChange = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
          this._onDefaultLangChange = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
          this._langs = [];
          this._translations = {};
          this._translationRequests = {};
          /** set the default language from configuration */

          if (defaultLanguage) {
            this.setDefaultLang(defaultLanguage);
          }
        }
        /**
         * An EventEmitter to listen to translation change events
         * onTranslationChange.subscribe((params: TranslationChangeEvent) => {
         *     // do something
         * });
         * @return {?}
         */


        _createClass2(TranslateService, [{
          key: "onTranslationChange",
          get: function get() {
            return this.isolate ? this._onTranslationChange : this.store.onTranslationChange;
          }
          /**
           * An EventEmitter to listen to lang change events
           * onLangChange.subscribe((params: LangChangeEvent) => {
           *     // do something
           * });
           * @return {?}
           */

        }, {
          key: "onLangChange",
          get: function get() {
            return this.isolate ? this._onLangChange : this.store.onLangChange;
          }
          /**
           * An EventEmitter to listen to default lang change events
           * onDefaultLangChange.subscribe((params: DefaultLangChangeEvent) => {
           *     // do something
           * });
           * @return {?}
           */

        }, {
          key: "onDefaultLangChange",
          get: function get() {
            return this.isolate ? this._onDefaultLangChange : this.store.onDefaultLangChange;
          }
          /**
           * The default lang to fallback when translations are missing on the current lang
           * @return {?}
           */

        }, {
          key: "defaultLang",
          get: function get() {
            return this.isolate ? this._defaultLang : this.store.defaultLang;
          }
          /**
           * @param {?} defaultLang
           * @return {?}
           */
          ,
          set: function set(defaultLang) {
            if (this.isolate) {
              this._defaultLang = defaultLang;
            } else {
              this.store.defaultLang = defaultLang;
            }
          }
          /**
           * The lang currently used
           * @return {?}
           */

        }, {
          key: "currentLang",
          get: function get() {
            return this.isolate ? this._currentLang : this.store.currentLang;
          }
          /**
           * @param {?} currentLang
           * @return {?}
           */
          ,
          set: function set(currentLang) {
            if (this.isolate) {
              this._currentLang = currentLang;
            } else {
              this.store.currentLang = currentLang;
            }
          }
          /**
           * an array of langs
           * @return {?}
           */

        }, {
          key: "langs",
          get: function get() {
            return this.isolate ? this._langs : this.store.langs;
          }
          /**
           * @param {?} langs
           * @return {?}
           */
          ,
          set: function set(langs) {
            if (this.isolate) {
              this._langs = langs;
            } else {
              this.store.langs = langs;
            }
          }
          /**
           * a list of translations per lang
           * @return {?}
           */

        }, {
          key: "translations",
          get: function get() {
            return this.isolate ? this._translations : this.store.translations;
          }
          /**
           * @param {?} translations
           * @return {?}
           */
          ,
          set: function set(translations) {
            if (this.isolate) {
              this._translations = translations;
            } else {
              this.store.translations = translations;
            }
          }
          /**
           * Sets the default language to use as a fallback
           * @param {?} lang
           * @return {?}
           */

        }, {
          key: "setDefaultLang",
          value: function setDefaultLang(lang) {
            var _this611 = this;

            if (lang === this.defaultLang) {
              return;
            }
            /** @type {?} */


            var pending = this.retrieveTranslations(lang);

            if (typeof pending !== "undefined") {
              // on init set the defaultLang immediately
              if (this.defaultLang == null) {
                this.defaultLang = lang;
              }

              pending.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["take"])(1)).subscribe(
              /**
              * @param {?} res
              * @return {?}
              */
              function (res) {
                _this611.changeDefaultLang(lang);
              });
            } else {
              // we already have this language
              this.changeDefaultLang(lang);
            }
          }
          /**
           * Gets the default language used
           * @return {?}
           */

        }, {
          key: "getDefaultLang",
          value: function getDefaultLang() {
            return this.defaultLang;
          }
          /**
           * Changes the lang currently used
           * @param {?} lang
           * @return {?}
           */

        }, {
          key: "use",
          value: function use(lang) {
            var _this612 = this;

            // don't change the language if the language given is already selected
            if (lang === this.currentLang) {
              return Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["of"])(this.translations[lang]);
            }
            /** @type {?} */


            var pending = this.retrieveTranslations(lang);

            if (typeof pending !== "undefined") {
              // on init set the currentLang immediately
              if (!this.currentLang) {
                this.currentLang = lang;
              }

              pending.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["take"])(1)).subscribe(
              /**
              * @param {?} res
              * @return {?}
              */
              function (res) {
                _this612.changeLang(lang);
              });
              return pending;
            } else {
              // we have this language, return an Observable
              this.changeLang(lang);
              return Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["of"])(this.translations[lang]);
            }
          }
          /**
           * Retrieves the given translations
           * @private
           * @param {?} lang
           * @return {?}
           */

        }, {
          key: "retrieveTranslations",
          value: function retrieveTranslations(lang) {
            /** @type {?} */
            var pending; // if this language is unavailable or extend is true, ask for it

            if (typeof this.translations[lang] === "undefined" || this.extend) {
              this._translationRequests[lang] = this._translationRequests[lang] || this.getTranslation(lang);
              pending = this._translationRequests[lang];
            }

            return pending;
          }
          /**
           * Gets an object of translations for a given language with the current loader
           * and passes it through the compiler
           * @param {?} lang
           * @return {?}
           */

        }, {
          key: "getTranslation",
          value: function getTranslation(lang) {
            var _this613 = this;

            this.pending = true;
            /** @type {?} */

            var loadingTranslations = this.currentLoader.getTranslation(lang).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["shareReplay"])(1), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["take"])(1));
            this.loadingTranslations = loadingTranslations.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])(
            /**
            * @param {?} res
            * @return {?}
            */
            function (res) {
              return _this613.compiler.compileTranslations(res, lang);
            }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["shareReplay"])(1), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["take"])(1));
            this.loadingTranslations.subscribe({
              next:
              /**
              * @param {?} res
              * @return {?}
              */
              function next(res) {
                _this613.translations[lang] = _this613.extend && _this613.translations[lang] ? Object.assign(Object.assign({}, res), _this613.translations[lang]) : res;

                _this613.updateLangs();

                _this613.pending = false;
              },
              error:
              /**
              * @param {?} err
              * @return {?}
              */
              function error(err) {
                _this613.pending = false;
              }
            });
            return loadingTranslations;
          }
          /**
           * Manually sets an object of translations for a given language
           * after passing it through the compiler
           * @param {?} lang
           * @param {?} translations
           * @param {?=} shouldMerge
           * @return {?}
           */

        }, {
          key: "setTranslation",
          value: function setTranslation(lang, translations) {
            var shouldMerge = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
            translations = this.compiler.compileTranslations(translations, lang);

            if ((shouldMerge || this.extend) && this.translations[lang]) {
              this.translations[lang] = mergeDeep(this.translations[lang], translations);
            } else {
              this.translations[lang] = translations;
            }

            this.updateLangs();
            this.onTranslationChange.emit({
              lang: lang,
              translations: this.translations[lang]
            });
          }
          /**
           * Returns an array of currently available langs
           * @return {?}
           */

        }, {
          key: "getLangs",
          value: function getLangs() {
            return this.langs;
          }
          /**
           * Add available langs
           * @param {?} langs
           * @return {?}
           */

        }, {
          key: "addLangs",
          value: function addLangs(langs) {
            var _this614 = this;

            langs.forEach(
            /**
            * @param {?} lang
            * @return {?}
            */
            function (lang) {
              if (_this614.langs.indexOf(lang) === -1) {
                _this614.langs.push(lang);
              }
            });
          }
          /**
           * Update the list of available langs
           * @private
           * @return {?}
           */

        }, {
          key: "updateLangs",
          value: function updateLangs() {
            this.addLangs(Object.keys(this.translations));
          }
          /**
           * Returns the parsed result of the translations
           * @param {?} translations
           * @param {?} key
           * @param {?=} interpolateParams
           * @return {?}
           */

        }, {
          key: "getParsedResult",
          value: function getParsedResult(translations, key, interpolateParams) {
            /** @type {?} */
            var res;

            if (key instanceof Array) {
              /** @type {?} */
              var result = {};
              /** @type {?} */

              var observables = false;

              var _iterator75 = _createForOfIteratorHelper(key),
                  _step74;

              try {
                for (_iterator75.s(); !(_step74 = _iterator75.n()).done;) {
                  var k = _step74.value;
                  result[k] = this.getParsedResult(translations, k, interpolateParams);

                  if (Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["isObservable"])(result[k])) {
                    observables = true;
                  }
                }
              } catch (err) {
                _iterator75.e(err);
              } finally {
                _iterator75.f();
              }

              if (observables) {
                /** @type {?} */
                var sources = key.map(
                /**
                * @param {?} k
                * @return {?}
                */
                function (k) {
                  return Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["isObservable"])(result[k]) ? result[k] : Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["of"])(result[k]);
                });
                return Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["forkJoin"])(sources).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])(
                /**
                * @param {?} arr
                * @return {?}
                */
                function (arr) {
                  /** @type {?} */
                  var obj = {};
                  arr.forEach(
                  /**
                  * @param {?} value
                  * @param {?} index
                  * @return {?}
                  */
                  function (value, index) {
                    obj[key[index]] = value;
                  });
                  return obj;
                }));
              }

              return result;
            }

            if (translations) {
              res = this.parser.interpolate(this.parser.getValue(translations, key), interpolateParams);
            }

            if (typeof res === "undefined" && this.defaultLang != null && this.defaultLang !== this.currentLang && this.useDefaultLang) {
              res = this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang], key), interpolateParams);
            }

            if (typeof res === "undefined") {
              /** @type {?} */
              var params = {
                key: key,
                translateService: this
              };

              if (typeof interpolateParams !== 'undefined') {
                params.interpolateParams = interpolateParams;
              }

              res = this.missingTranslationHandler.handle(params);
            }

            return typeof res !== "undefined" ? res : key;
          }
          /**
           * Gets the translated value of a key (or an array of keys)
           * @param {?} key
           * @param {?=} interpolateParams
           * @return {?} the translated key, or an object of translated keys
           */

        }, {
          key: "get",
          value: function get(key, interpolateParams) {
            var _this615 = this;

            if (!isDefined(key) || !key.length) {
              throw new Error("Parameter \"key\" required");
            } // check if we are loading a new translation to use


            if (this.pending) {
              return this.loadingTranslations.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["concatMap"])(
              /**
              * @param {?} res
              * @return {?}
              */
              function (res) {
                res = _this615.getParsedResult(res, key, interpolateParams);
                return Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["isObservable"])(res) ? res : Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["of"])(res);
              }));
            } else {
              /** @type {?} */
              var res = this.getParsedResult(this.translations[this.currentLang], key, interpolateParams);
              return Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["isObservable"])(res) ? res : Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["of"])(res);
            }
          }
          /**
           * Returns a stream of translated values of a key (or an array of keys) which updates
           * whenever the translation changes.
           * @param {?} key
           * @param {?=} interpolateParams
           * @return {?} A stream of the translated key, or an object of translated keys
           */

        }, {
          key: "getStreamOnTranslationChange",
          value: function getStreamOnTranslationChange(key, interpolateParams) {
            var _this616 = this;

            if (!isDefined(key) || !key.length) {
              throw new Error("Parameter \"key\" required");
            }

            return Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["concat"])(Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["defer"])(
            /**
            * @return {?}
            */
            function () {
              return _this616.get(key, interpolateParams);
            }), this.onTranslationChange.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["switchMap"])(
            /**
            * @param {?} event
            * @return {?}
            */
            function (event) {
              /** @type {?} */
              var res = _this616.getParsedResult(event.translations, key, interpolateParams);

              if (typeof res.subscribe === 'function') {
                return res;
              } else {
                return Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["of"])(res);
              }
            })));
          }
          /**
           * Returns a stream of translated values of a key (or an array of keys) which updates
           * whenever the language changes.
           * @param {?} key
           * @param {?=} interpolateParams
           * @return {?} A stream of the translated key, or an object of translated keys
           */

        }, {
          key: "stream",
          value: function stream(key, interpolateParams) {
            var _this617 = this;

            if (!isDefined(key) || !key.length) {
              throw new Error("Parameter \"key\" required");
            }

            return Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["concat"])(Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["defer"])(
            /**
            * @return {?}
            */
            function () {
              return _this617.get(key, interpolateParams);
            }), this.onLangChange.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["switchMap"])(
            /**
            * @param {?} event
            * @return {?}
            */
            function (event) {
              /** @type {?} */
              var res = _this617.getParsedResult(event.translations, key, interpolateParams);

              return Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["isObservable"])(res) ? res : Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["of"])(res);
            })));
          }
          /**
           * Returns a translation instantly from the internal state of loaded translation.
           * All rules regarding the current language, the preferred language of even fallback languages will be used except any promise handling.
           * @param {?} key
           * @param {?=} interpolateParams
           * @return {?}
           */

        }, {
          key: "instant",
          value: function instant(key, interpolateParams) {
            if (!isDefined(key) || !key.length) {
              throw new Error("Parameter \"key\" required");
            }
            /** @type {?} */


            var res = this.getParsedResult(this.translations[this.currentLang], key, interpolateParams);

            if (Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["isObservable"])(res)) {
              if (key instanceof Array) {
                /** @type {?} */
                var obj = {};
                key.forEach(
                /**
                * @param {?} value
                * @param {?} index
                * @return {?}
                */
                function (value, index) {
                  obj[key[index]] = key[index];
                });
                return obj;
              }

              return key;
            } else {
              return res;
            }
          }
          /**
           * Sets the translated value of a key, after compiling it
           * @param {?} key
           * @param {?} value
           * @param {?=} lang
           * @return {?}
           */

        }, {
          key: "set",
          value: function set(key, value) {
            var lang = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.currentLang;
            this.translations[lang][key] = this.compiler.compile(value, lang);
            this.updateLangs();
            this.onTranslationChange.emit({
              lang: lang,
              translations: this.translations[lang]
            });
          }
          /**
           * Changes the current lang
           * @private
           * @param {?} lang
           * @return {?}
           */

        }, {
          key: "changeLang",
          value: function changeLang(lang) {
            this.currentLang = lang;
            this.onLangChange.emit({
              lang: lang,
              translations: this.translations[lang]
            }); // if there is no default lang, use the one that we just set

            if (this.defaultLang == null) {
              this.changeDefaultLang(lang);
            }
          }
          /**
           * Changes the default lang
           * @private
           * @param {?} lang
           * @return {?}
           */

        }, {
          key: "changeDefaultLang",
          value: function changeDefaultLang(lang) {
            this.defaultLang = lang;
            this.onDefaultLangChange.emit({
              lang: lang,
              translations: this.translations[lang]
            });
          }
          /**
           * Allows to reload the lang file from the file
           * @param {?} lang
           * @return {?}
           */

        }, {
          key: "reloadLang",
          value: function reloadLang(lang) {
            this.resetLang(lang);
            return this.getTranslation(lang);
          }
          /**
           * Deletes inner translation
           * @param {?} lang
           * @return {?}
           */

        }, {
          key: "resetLang",
          value: function resetLang(lang) {
            this._translationRequests[lang] = undefined;
            this.translations[lang] = undefined;
          }
          /**
           * Returns the language code name from the browser, e.g. "de"
           * @return {?}
           */

        }, {
          key: "getBrowserLang",
          value: function getBrowserLang() {
            if (typeof window === 'undefined' || typeof window.navigator === 'undefined') {
              return undefined;
            }
            /** @type {?} */


            var browserLang = window.navigator.languages ? window.navigator.languages[0] : null;
            browserLang = browserLang || window.navigator.language || window.navigator.browserLanguage || window.navigator.userLanguage;

            if (typeof browserLang === 'undefined') {
              return undefined;
            }

            if (browserLang.indexOf('-') !== -1) {
              browserLang = browserLang.split('-')[0];
            }

            if (browserLang.indexOf('_') !== -1) {
              browserLang = browserLang.split('_')[0];
            }

            return browserLang;
          }
          /**
           * Returns the culture language code name from the browser, e.g. "de-DE"
           * @return {?}
           */

        }, {
          key: "getBrowserCultureLang",
          value: function getBrowserCultureLang() {
            if (typeof window === 'undefined' || typeof window.navigator === 'undefined') {
              return undefined;
            }
            /** @type {?} */


            var browserCultureLang = window.navigator.languages ? window.navigator.languages[0] : null;
            browserCultureLang = browserCultureLang || window.navigator.language || window.navigator.browserLanguage || window.navigator.userLanguage;
            return browserCultureLang;
          }
        }]);

        return TranslateService;
      }();

      TranslateService.ɵfac = function TranslateService_Factory(t) {
        return new (t || TranslateService)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](TranslateStore), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](TranslateLoader), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](TranslateCompiler), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](TranslateParser), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](MissingTranslationHandler), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](USE_DEFAULT_LANG), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](USE_STORE), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](USE_EXTEND), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](DEFAULT_LANGUAGE));
      };

      TranslateService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
        token: TranslateService,
        factory: TranslateService.ɵfac
      });
      /** @nocollapse */

      TranslateService.ctorParameters = function () {
        return [{
          type: TranslateStore
        }, {
          type: TranslateLoader
        }, {
          type: TranslateCompiler
        }, {
          type: TranslateParser
        }, {
          type: MissingTranslationHandler
        }, {
          type: Boolean,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [USE_DEFAULT_LANG]
          }]
        }, {
          type: Boolean,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [USE_STORE]
          }]
        }, {
          type: Boolean,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [USE_EXTEND]
          }]
        }, {
          type: String,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [DEFAULT_LANGUAGE]
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](TranslateService, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
        }], function () {
          return [{
            type: TranslateStore
          }, {
            type: TranslateLoader
          }, {
            type: TranslateCompiler
          }, {
            type: TranslateParser
          }, {
            type: MissingTranslationHandler
          }, {
            type: Boolean,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [USE_DEFAULT_LANG]
            }]
          }, {
            type: Boolean,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [USE_STORE]
            }]
          }, {
            type: Boolean,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [USE_EXTEND]
            }]
          }, {
            type: String,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [DEFAULT_LANGUAGE]
            }]
          }];
        }, null);
      })();

      if (false) {}
      /**
       * @fileoverview added by tsickle
       * Generated from: lib/translate.directive.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */


      var TranslateDirective = /*#__PURE__*/function () {
        /**
         * @param {?} translateService
         * @param {?} element
         * @param {?} _ref
         */
        function TranslateDirective(translateService, element, _ref) {
          var _this618 = this;

          _classCallCheck2(this, TranslateDirective);

          this.translateService = translateService;
          this.element = element;
          this._ref = _ref; // subscribe to onTranslationChange event, in case the translations of the current lang change

          if (!this.onTranslationChangeSub) {
            this.onTranslationChangeSub = this.translateService.onTranslationChange.subscribe(
            /**
            * @param {?} event
            * @return {?}
            */
            function (event) {
              if (event.lang === _this618.translateService.currentLang) {
                _this618.checkNodes(true, event.translations);
              }
            });
          } // subscribe to onLangChange event, in case the language changes


          if (!this.onLangChangeSub) {
            this.onLangChangeSub = this.translateService.onLangChange.subscribe(
            /**
            * @param {?} event
            * @return {?}
            */
            function (event) {
              _this618.checkNodes(true, event.translations);
            });
          } // subscribe to onDefaultLangChange event, in case the default language changes


          if (!this.onDefaultLangChangeSub) {
            this.onDefaultLangChangeSub = this.translateService.onDefaultLangChange.subscribe(
            /**
            * @param {?} event
            * @return {?}
            */
            function (event) {
              _this618.checkNodes(true);
            });
          }
        }
        /**
         * @param {?} key
         * @return {?}
         */


        _createClass2(TranslateDirective, [{
          key: "translate",
          set: function set(key) {
            if (key) {
              this.key = key;
              this.checkNodes();
            }
          }
          /**
           * @param {?} params
           * @return {?}
           */

        }, {
          key: "translateParams",
          set: function set(params) {
            if (!equals(this.currentParams, params)) {
              this.currentParams = params;
              this.checkNodes(true);
            }
          }
          /**
           * @return {?}
           */

        }, {
          key: "ngAfterViewChecked",
          value: function ngAfterViewChecked() {
            this.checkNodes();
          }
          /**
           * @param {?=} forceUpdate
           * @param {?=} translations
           * @return {?}
           */

        }, {
          key: "checkNodes",
          value: function checkNodes() {
            var forceUpdate = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
            var translations = arguments.length > 1 ? arguments[1] : undefined;

            /** @type {?} */
            var nodes = this.element.nativeElement.childNodes; // if the element is empty

            if (!nodes.length) {
              // we add the key as content
              this.setContent(this.element.nativeElement, this.key);
              nodes = this.element.nativeElement.childNodes;
            }

            for (var i = 0; i < nodes.length; ++i) {
              /** @type {?} */
              var node = nodes[i];

              if (node.nodeType === 3) {
                // node type 3 is a text node
                // node type 3 is a text node

                /** @type {?} */
                var key = void 0;

                if (forceUpdate) {
                  node.lastKey = null;
                }

                if (isDefined(node.lookupKey)) {
                  key = node.lookupKey;
                } else if (this.key) {
                  key = this.key;
                } else {
                  /** @type {?} */
                  var content = this.getContent(node);
                  /** @type {?} */

                  var trimmedContent = content.trim();

                  if (trimmedContent.length) {
                    node.lookupKey = trimmedContent; // we want to use the content as a key, not the translation value

                    if (content !== node.currentValue) {
                      key = trimmedContent; // the content was changed from the user, we'll use it as a reference if needed

                      node.originalContent = content || node.originalContent;
                    } else if (node.originalContent) {
                      // the content seems ok, but the lang has changed
                      // the current content is the translation, not the key, use the last real content as key
                      key = node.originalContent.trim();
                    } else if (content !== node.currentValue) {
                      // we want to use the content as a key, not the translation value
                      key = trimmedContent; // the content was changed from the user, we'll use it as a reference if needed

                      node.originalContent = content || node.originalContent;
                    }
                  }
                }

                this.updateValue(key, node, translations);
              }
            }
          }
          /**
           * @param {?} key
           * @param {?} node
           * @param {?} translations
           * @return {?}
           */

        }, {
          key: "updateValue",
          value: function updateValue(key, node, translations) {
            var _this619 = this;

            if (key) {
              if (node.lastKey === key && this.lastParams === this.currentParams) {
                return;
              }

              this.lastParams = this.currentParams;
              /** @type {?} */

              var onTranslation =
              /**
              * @param {?} res
              * @return {?}
              */
              function onTranslation(res) {
                if (res !== key) {
                  node.lastKey = key;
                }

                if (!node.originalContent) {
                  node.originalContent = _this619.getContent(node);
                }

                node.currentValue = isDefined(res) ? res : node.originalContent || key; // we replace in the original content to preserve spaces that we might have trimmed

                _this619.setContent(node, _this619.key ? node.currentValue : node.originalContent.replace(key, node.currentValue));

                _this619._ref.markForCheck();
              };

              if (isDefined(translations)) {
                /** @type {?} */
                var res = this.translateService.getParsedResult(translations, key, this.currentParams);

                if (Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["isObservable"])(res)) {
                  res.subscribe(onTranslation);
                } else {
                  onTranslation(res);
                }
              } else {
                this.translateService.get(key, this.currentParams).subscribe(onTranslation);
              }
            }
          }
          /**
           * @param {?} node
           * @return {?}
           */

        }, {
          key: "getContent",
          value: function getContent(node) {
            return isDefined(node.textContent) ? node.textContent : node.data;
          }
          /**
           * @param {?} node
           * @param {?} content
           * @return {?}
           */

        }, {
          key: "setContent",
          value: function setContent(node, content) {
            if (isDefined(node.textContent)) {
              node.textContent = content;
            } else {
              node.data = content;
            }
          }
          /**
           * @return {?}
           */

        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            if (this.onLangChangeSub) {
              this.onLangChangeSub.unsubscribe();
            }

            if (this.onDefaultLangChangeSub) {
              this.onDefaultLangChangeSub.unsubscribe();
            }

            if (this.onTranslationChangeSub) {
              this.onTranslationChangeSub.unsubscribe();
            }
          }
        }]);

        return TranslateDirective;
      }();

      TranslateDirective.ɵfac = function TranslateDirective_Factory(t) {
        return new (t || TranslateDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](TranslateService), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"]));
      };

      TranslateDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: TranslateDirective,
        selectors: [["", "translate", ""], ["", "ngx-translate", ""]],
        inputs: {
          translate: "translate",
          translateParams: "translateParams"
        }
      });
      /** @nocollapse */

      TranslateDirective.ctorParameters = function () {
        return [{
          type: TranslateService
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"]
        }];
      };

      TranslateDirective.propDecorators = {
        translate: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }],
        translateParams: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](TranslateDirective, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
          args: [{
            selector: '[translate],[ngx-translate]'
          }]
        }], function () {
          return [{
            type: TranslateService
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"]
          }];
        }, {
          translate: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }],
          translateParams: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }]
        });
      })();

      if (false) {}
      /**
       * @fileoverview added by tsickle
       * Generated from: lib/translate.pipe.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */


      var TranslatePipe = /*#__PURE__*/function () {
        /**
         * @param {?} translate
         * @param {?} _ref
         */
        function TranslatePipe(translate, _ref) {
          _classCallCheck2(this, TranslatePipe);

          this.translate = translate;
          this._ref = _ref;
          this.value = '';
        }
        /**
         * @param {?} key
         * @param {?=} interpolateParams
         * @param {?=} translations
         * @return {?}
         */


        _createClass2(TranslatePipe, [{
          key: "updateValue",
          value: function updateValue(key, interpolateParams, translations) {
            var _this620 = this;

            /** @type {?} */
            var onTranslation =
            /**
            * @param {?} res
            * @return {?}
            */
            function onTranslation(res) {
              _this620.value = res !== undefined ? res : key;
              _this620.lastKey = key;

              _this620._ref.markForCheck();
            };

            if (translations) {
              /** @type {?} */
              var res = this.translate.getParsedResult(translations, key, interpolateParams);

              if (Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["isObservable"])(res.subscribe)) {
                res.subscribe(onTranslation);
              } else {
                onTranslation(res);
              }
            }

            this.translate.get(key, interpolateParams).subscribe(onTranslation);
          }
          /**
           * @param {?} query
           * @param {...?} args
           * @return {?}
           */

        }, {
          key: "transform",
          value: function transform(query) {
            var _this621 = this;

            if (!query || !query.length) {
              return query;
            } // if we ask another time for the same key, return the last value


            for (var _len52 = arguments.length, args = new Array(_len52 > 1 ? _len52 - 1 : 0), _key54 = 1; _key54 < _len52; _key54++) {
              args[_key54 - 1] = arguments[_key54];
            }

            if (equals(query, this.lastKey) && equals(args, this.lastParams)) {
              return this.value;
            }
            /** @type {?} */


            var interpolateParams;

            if (isDefined(args[0]) && args.length) {
              if (typeof args[0] === 'string' && args[0].length) {
                // we accept objects written in the template such as {n:1}, {'n':1}, {n:'v'}
                // which is why we might need to change it to real JSON objects such as {"n":1} or {"n":"v"}

                /** @type {?} */
                var validArgs = args[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g, '"$2":').replace(/:(\s)?(\')(.*?)(\')/g, ':"$3"');

                try {
                  interpolateParams = JSON.parse(validArgs);
                } catch (e) {
                  throw new SyntaxError("Wrong parameter in TranslatePipe. Expected a valid Object, received: ".concat(args[0]));
                }
              } else if (typeof args[0] === 'object' && !Array.isArray(args[0])) {
                interpolateParams = args[0];
              }
            } // store the query, in case it changes


            this.lastKey = query; // store the params, in case they change

            this.lastParams = args; // set the value

            this.updateValue(query, interpolateParams); // if there is a subscription to onLangChange, clean it

            this._dispose(); // subscribe to onTranslationChange event, in case the translations change


            if (!this.onTranslationChange) {
              this.onTranslationChange = this.translate.onTranslationChange.subscribe(
              /**
              * @param {?} event
              * @return {?}
              */
              function (event) {
                if (_this621.lastKey && event.lang === _this621.translate.currentLang) {
                  _this621.lastKey = null;

                  _this621.updateValue(query, interpolateParams, event.translations);
                }
              });
            } // subscribe to onLangChange event, in case the language changes


            if (!this.onLangChange) {
              this.onLangChange = this.translate.onLangChange.subscribe(
              /**
              * @param {?} event
              * @return {?}
              */
              function (event) {
                if (_this621.lastKey) {
                  _this621.lastKey = null; // we want to make sure it doesn't return the same value until it's been updated

                  _this621.updateValue(query, interpolateParams, event.translations);
                }
              });
            } // subscribe to onDefaultLangChange event, in case the default language changes


            if (!this.onDefaultLangChange) {
              this.onDefaultLangChange = this.translate.onDefaultLangChange.subscribe(
              /**
              * @return {?}
              */
              function () {
                if (_this621.lastKey) {
                  _this621.lastKey = null; // we want to make sure it doesn't return the same value until it's been updated

                  _this621.updateValue(query, interpolateParams);
                }
              });
            }

            return this.value;
          }
          /**
           * Clean any existing subscription to change events
           * @private
           * @return {?}
           */

        }, {
          key: "_dispose",
          value: function _dispose() {
            if (typeof this.onTranslationChange !== 'undefined') {
              this.onTranslationChange.unsubscribe();
              this.onTranslationChange = undefined;
            }

            if (typeof this.onLangChange !== 'undefined') {
              this.onLangChange.unsubscribe();
              this.onLangChange = undefined;
            }

            if (typeof this.onDefaultLangChange !== 'undefined') {
              this.onDefaultLangChange.unsubscribe();
              this.onDefaultLangChange = undefined;
            }
          }
          /**
           * @return {?}
           */

        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            this._dispose();
          }
        }]);

        return TranslatePipe;
      }();

      TranslatePipe.ɵfac = function TranslatePipe_Factory(t) {
        return new (t || TranslatePipe)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](TranslateService), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinjectPipeChangeDetectorRef"]());
      };

      TranslatePipe.ɵpipe = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefinePipe"]({
        name: "translate",
        type: TranslatePipe,
        pure: false
      });
      TranslatePipe.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
        token: TranslatePipe,
        factory: TranslatePipe.ɵfac
      });
      /** @nocollapse */

      TranslatePipe.ctorParameters = function () {
        return [{
          type: TranslateService
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](TranslatePipe, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Pipe"],
          args: [{
            name: 'translate',
            pure: false // required to update the value when the promise is resolved

          }]
        }], function () {
          return [{
            type: TranslateService
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"]
          }];
        }, null);
      })();

      if (false) {}
      /**
       * @fileoverview added by tsickle
       * Generated from: public_api.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * @record
       */


      function TranslateModuleConfig() {}

      if (false) {}

      var TranslateModule = /*#__PURE__*/function () {
        function TranslateModule() {
          _classCallCheck2(this, TranslateModule);
        }

        _createClass2(TranslateModule, null, [{
          key: "forRoot",
          value:
          /**
           * Use this method in your root module to provide the TranslateService
           * @param {?=} config
           * @return {?}
           */
          function forRoot() {
            var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
            return {
              ngModule: TranslateModule,
              providers: [config.loader || {
                provide: TranslateLoader,
                useClass: TranslateFakeLoader
              }, config.compiler || {
                provide: TranslateCompiler,
                useClass: TranslateFakeCompiler
              }, config.parser || {
                provide: TranslateParser,
                useClass: TranslateDefaultParser
              }, config.missingTranslationHandler || {
                provide: MissingTranslationHandler,
                useClass: FakeMissingTranslationHandler
              }, TranslateStore, {
                provide: USE_STORE,
                useValue: config.isolate
              }, {
                provide: USE_DEFAULT_LANG,
                useValue: config.useDefaultLang
              }, {
                provide: USE_EXTEND,
                useValue: config.extend
              }, {
                provide: DEFAULT_LANGUAGE,
                useValue: config.defaultLanguage
              }, TranslateService]
            };
          }
          /**
           * Use this method in your other (non root) modules to import the directive/pipe
           * @param {?=} config
           * @return {?}
           */

        }, {
          key: "forChild",
          value: function forChild() {
            var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
            return {
              ngModule: TranslateModule,
              providers: [config.loader || {
                provide: TranslateLoader,
                useClass: TranslateFakeLoader
              }, config.compiler || {
                provide: TranslateCompiler,
                useClass: TranslateFakeCompiler
              }, config.parser || {
                provide: TranslateParser,
                useClass: TranslateDefaultParser
              }, config.missingTranslationHandler || {
                provide: MissingTranslationHandler,
                useClass: FakeMissingTranslationHandler
              }, {
                provide: USE_STORE,
                useValue: config.isolate
              }, {
                provide: USE_DEFAULT_LANG,
                useValue: config.useDefaultLang
              }, {
                provide: USE_EXTEND,
                useValue: config.extend
              }, {
                provide: DEFAULT_LANGUAGE,
                useValue: config.defaultLanguage
              }, TranslateService]
            };
          }
        }]);

        return TranslateModule;
      }();

      TranslateModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
        type: TranslateModule
      });
      TranslateModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
        factory: function TranslateModule_Factory(t) {
          return new (t || TranslateModule)();
        }
      });

      (function () {
        (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](TranslateModule, {
          declarations: [TranslatePipe, TranslateDirective],
          exports: [TranslatePipe, TranslateDirective]
        });
      })();
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](TranslateModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
          args: [{
            declarations: [TranslatePipe, TranslateDirective],
            exports: [TranslatePipe, TranslateDirective]
          }]
        }], null, null);
      })();
      /**
       * @fileoverview added by tsickle
       * Generated from: ngx-translate-core.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */
      //# sourceMappingURL=ngx-translate-core.js.map

      /***/

    },

    /***/
    "TXrr": function TXrr(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return endOfISOWeek;
      });
      /* harmony import */


      var _endOfWeek_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../endOfWeek/index.js */
      "L8hi");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name endOfISOWeek
       * @category ISO Week Helpers
       * @summary Return the end of an ISO week for the given date.
       *
       * @description
       * Return the end of an ISO week for the given date.
       * The result will be in the local timezone.
       *
       * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
       *
       * ### 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 {Date|Number} date - the original date
       * @returns {Date} the end of an ISO week
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // The end of an ISO week for 2 September 2014 11:55:00:
       * var result = endOfISOWeek(new Date(2014, 8, 2, 11, 55, 0))
       * //=> Sun Sep 07 2014 23:59:59.999
       */


      function endOfISOWeek(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        return Object(_endOfWeek_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate, {
          weekStartsOn: 1
        });
      }
      /***/

    },

    /***/
    "Tj54": function Tj54(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ICON_REGISTRY_PROVIDER", function () {
        return ICON_REGISTRY_PROVIDER;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ICON_REGISTRY_PROVIDER_FACTORY", function () {
        return ICON_REGISTRY_PROVIDER_FACTORY;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MAT_ICON_LOCATION", function () {
        return MAT_ICON_LOCATION;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MAT_ICON_LOCATION_FACTORY", function () {
        return MAT_ICON_LOCATION_FACTORY;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatIcon", function () {
        return MatIcon;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatIconModule", function () {
        return MatIconModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatIconRegistry", function () {
        return MatIconRegistry;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "getMatIconFailedToSanitizeLiteralError", function () {
        return getMatIconFailedToSanitizeLiteralError;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "getMatIconFailedToSanitizeUrlError", function () {
        return getMatIconFailedToSanitizeUrlError;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "getMatIconNameNotFoundError", function () {
        return getMatIconNameNotFoundError;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "getMatIconNoHttpProviderError", function () {
        return getMatIconNoHttpProviderError;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵ0", function () {
        return ɵ0;
      });
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /* harmony import */


      var _angular_material_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/material/core */
      "UhP/");
      /* harmony import */


      var _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! @angular/cdk/coercion */
      "8LU1");
      /* harmony import */


      var _angular_common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! @angular/common */
      "SVse");
      /* harmony import */


      var rxjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! rxjs */
      "qCKp");
      /* harmony import */


      var rxjs_operators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! rxjs/operators */
      "kU1M");
      /* harmony import */


      var _angular_common_http__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
      /*! @angular/common/http */
      "IheW");
      /* harmony import */


      var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
      /*! @angular/platform-browser */
      "cUpR");
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Returns an exception to be thrown in the case when attempting to
       * load an icon with a name that cannot be found.
       * @docs-private
       */


      var _c0 = ["*"];

      function getMatIconNameNotFoundError(iconName) {
        return Error("Unable to find icon with the name \"".concat(iconName, "\""));
      }
      /**
       * Returns an exception to be thrown when the consumer attempts to use
       * `<mat-icon>` without including @angular/common/http.
       * @docs-private
       */


      function getMatIconNoHttpProviderError() {
        return Error('Could not find HttpClient provider for use with Angular Material icons. ' + 'Please include the HttpClientModule from @angular/common/http in your ' + 'app imports.');
      }
      /**
       * Returns an exception to be thrown when a URL couldn't be sanitized.
       * @param url URL that was attempted to be sanitized.
       * @docs-private
       */


      function getMatIconFailedToSanitizeUrlError(url) {
        return Error("The URL provided to MatIconRegistry was not trusted as a resource URL " + "via Angular's DomSanitizer. Attempted URL was \"".concat(url, "\"."));
      }
      /**
       * Returns an exception to be thrown when a HTML string couldn't be sanitized.
       * @param literal HTML that was attempted to be sanitized.
       * @docs-private
       */


      function getMatIconFailedToSanitizeLiteralError(literal) {
        return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by " + "Angular's DomSanitizer. Attempted literal was \"".concat(literal, "\"."));
      }
      /**
       * Configuration for an icon, including the URL and possibly the cached SVG element.
       * @docs-private
       */


      var SvgIconConfig = function SvgIconConfig(url, svgText, options) {
        _classCallCheck2(this, SvgIconConfig);

        this.url = url;
        this.svgText = svgText;
        this.options = options;
      };
      /**
       * Service to register and display icons used by the `<mat-icon>` component.
       * - Registers icon URLs by namespace and name.
       * - Registers icon set URLs by namespace.
       * - Registers aliases for CSS classes, for use with icon fonts.
       * - Loads icons from URLs and extracts individual icons from icon sets.
       */


      var MatIconRegistry = /*#__PURE__*/function () {
        function MatIconRegistry(_httpClient, _sanitizer, document, _errorHandler) {
          _classCallCheck2(this, MatIconRegistry);

          this._httpClient = _httpClient;
          this._sanitizer = _sanitizer;
          this._errorHandler = _errorHandler;
          /**
           * URLs and cached SVG elements for individual icons. Keys are of the format "[namespace]:[icon]".
           */

          this._svgIconConfigs = new Map();
          /**
           * SvgIconConfig objects and cached SVG elements for icon sets, keyed by namespace.
           * Multiple icon sets can be registered under the same namespace.
           */

          this._iconSetConfigs = new Map();
          /** Cache for icons loaded by direct URLs. */

          this._cachedIconsByUrl = new Map();
          /** In-progress icon fetches. Used to coalesce multiple requests to the same URL. */

          this._inProgressUrlFetches = new Map();
          /** Map from font identifiers to their CSS class names. Used for icon fonts. */

          this._fontCssClassesByAlias = new Map();
          /**
           * The CSS class to apply when an `<mat-icon>` component has no icon name, url, or font specified.
           * The default 'material-icons' value assumes that the material icon font has been loaded as
           * described at http://google.github.io/material-design-icons/#icon-font-for-the-web
           */

          this._defaultFontSetClass = 'material-icons';
          this._document = document;
        }
        /**
         * Registers an icon by URL in the default namespace.
         * @param iconName Name under which the icon should be registered.
         * @param url
         */


        _createClass2(MatIconRegistry, [{
          key: "addSvgIcon",
          value: function addSvgIcon(iconName, url, options) {
            return this.addSvgIconInNamespace('', iconName, url, options);
          }
          /**
           * Registers an icon using an HTML string in the default namespace.
           * @param iconName Name under which the icon should be registered.
           * @param literal SVG source of the icon.
           */

        }, {
          key: "addSvgIconLiteral",
          value: function addSvgIconLiteral(iconName, literal, options) {
            return this.addSvgIconLiteralInNamespace('', iconName, literal, options);
          }
          /**
           * Registers an icon by URL in the specified namespace.
           * @param namespace Namespace in which the icon should be registered.
           * @param iconName Name under which the icon should be registered.
           * @param url
           */

        }, {
          key: "addSvgIconInNamespace",
          value: function addSvgIconInNamespace(namespace, iconName, url, options) {
            return this._addSvgIconConfig(namespace, iconName, new SvgIconConfig(url, null, options));
          }
          /**
           * Registers an icon using an HTML string in the specified namespace.
           * @param namespace Namespace in which the icon should be registered.
           * @param iconName Name under which the icon should be registered.
           * @param literal SVG source of the icon.
           */

        }, {
          key: "addSvgIconLiteralInNamespace",
          value: function addSvgIconLiteralInNamespace(namespace, iconName, literal, options) {
            var cleanLiteral = this._sanitizer.sanitize(_angular_core__WEBPACK_IMPORTED_MODULE_0__["SecurityContext"].HTML, literal); // TODO: add an ngDevMode check


            if (!cleanLiteral) {
              throw getMatIconFailedToSanitizeLiteralError(literal);
            }

            return this._addSvgIconConfig(namespace, iconName, new SvgIconConfig('', cleanLiteral, options));
          }
          /**
           * Registers an icon set by URL in the default namespace.
           * @param url
           */

        }, {
          key: "addSvgIconSet",
          value: function addSvgIconSet(url, options) {
            return this.addSvgIconSetInNamespace('', url, options);
          }
          /**
           * Registers an icon set using an HTML string in the default namespace.
           * @param literal SVG source of the icon set.
           */

        }, {
          key: "addSvgIconSetLiteral",
          value: function addSvgIconSetLiteral(literal, options) {
            return this.addSvgIconSetLiteralInNamespace('', literal, options);
          }
          /**
           * Registers an icon set by URL in the specified namespace.
           * @param namespace Namespace in which to register the icon set.
           * @param url
           */

        }, {
          key: "addSvgIconSetInNamespace",
          value: function addSvgIconSetInNamespace(namespace, url, options) {
            return this._addSvgIconSetConfig(namespace, new SvgIconConfig(url, null, options));
          }
          /**
           * Registers an icon set using an HTML string in the specified namespace.
           * @param namespace Namespace in which to register the icon set.
           * @param literal SVG source of the icon set.
           */

        }, {
          key: "addSvgIconSetLiteralInNamespace",
          value: function addSvgIconSetLiteralInNamespace(namespace, literal, options) {
            var cleanLiteral = this._sanitizer.sanitize(_angular_core__WEBPACK_IMPORTED_MODULE_0__["SecurityContext"].HTML, literal);

            if (!cleanLiteral) {
              throw getMatIconFailedToSanitizeLiteralError(literal);
            }

            return this._addSvgIconSetConfig(namespace, new SvgIconConfig('', cleanLiteral, options));
          }
          /**
           * Defines an alias for a CSS class name to be used for icon fonts. Creating an matIcon
           * component with the alias as the fontSet input will cause the class name to be applied
           * to the `<mat-icon>` element.
           *
           * @param alias Alias for the font.
           * @param className Class name override to be used instead of the alias.
           */

        }, {
          key: "registerFontClassAlias",
          value: function registerFontClassAlias(alias) {
            var className = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : alias;

            this._fontCssClassesByAlias.set(alias, className);

            return this;
          }
          /**
           * Returns the CSS class name associated with the alias by a previous call to
           * registerFontClassAlias. If no CSS class has been associated, returns the alias unmodified.
           */

        }, {
          key: "classNameForFontAlias",
          value: function classNameForFontAlias(alias) {
            return this._fontCssClassesByAlias.get(alias) || alias;
          }
          /**
           * Sets the CSS class name to be used for icon fonts when an `<mat-icon>` component does not
           * have a fontSet input value, and is not loading an icon by name or URL.
           *
           * @param className
           */

        }, {
          key: "setDefaultFontSetClass",
          value: function setDefaultFontSetClass(className) {
            this._defaultFontSetClass = className;
            return this;
          }
          /**
           * Returns the CSS class name to be used for icon fonts when an `<mat-icon>` component does not
           * have a fontSet input value, and is not loading an icon by name or URL.
           */

        }, {
          key: "getDefaultFontSetClass",
          value: function getDefaultFontSetClass() {
            return this._defaultFontSetClass;
          }
          /**
           * Returns an Observable that produces the icon (as an `<svg>` DOM element) from the given URL.
           * The response from the URL may be cached so this will not always cause an HTTP request, but
           * the produced element will always be a new copy of the originally fetched icon. (That is,
           * it will not contain any modifications made to elements previously returned).
           *
           * @param safeUrl URL from which to fetch the SVG icon.
           */

        }, {
          key: "getSvgIconFromUrl",
          value: function getSvgIconFromUrl(safeUrl) {
            var _this622 = this;

            var url = this._sanitizer.sanitize(_angular_core__WEBPACK_IMPORTED_MODULE_0__["SecurityContext"].RESOURCE_URL, safeUrl);

            if (!url) {
              throw getMatIconFailedToSanitizeUrlError(safeUrl);
            }

            var cachedIcon = this._cachedIconsByUrl.get(url);

            if (cachedIcon) {
              return Object(rxjs__WEBPACK_IMPORTED_MODULE_4__["of"])(cloneSvg(cachedIcon));
            }

            return this._loadSvgIconFromConfig(new SvgIconConfig(safeUrl, null)).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["tap"])(function (svg) {
              return _this622._cachedIconsByUrl.set(url, svg);
            }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["map"])(function (svg) {
              return cloneSvg(svg);
            }));
          }
          /**
           * Returns an Observable that produces the icon (as an `<svg>` DOM element) with the given name
           * and namespace. The icon must have been previously registered with addIcon or addIconSet;
           * if not, the Observable will throw an error.
           *
           * @param name Name of the icon to be retrieved.
           * @param namespace Namespace in which to look for the icon.
           */

        }, {
          key: "getNamedSvgIcon",
          value: function getNamedSvgIcon(name) {
            var namespace = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
            // Return (copy of) cached icon if possible.
            var key = iconKey(namespace, name);

            var config = this._svgIconConfigs.get(key);

            if (config) {
              return this._getSvgFromConfig(config);
            } // See if we have any icon sets registered for the namespace.


            var iconSetConfigs = this._iconSetConfigs.get(namespace);

            if (iconSetConfigs) {
              return this._getSvgFromIconSetConfigs(name, iconSetConfigs);
            }

            return Object(rxjs__WEBPACK_IMPORTED_MODULE_4__["throwError"])(getMatIconNameNotFoundError(key));
          }
        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            this._svgIconConfigs.clear();

            this._iconSetConfigs.clear();

            this._cachedIconsByUrl.clear();
          }
          /**
           * Returns the cached icon for a SvgIconConfig if available, or fetches it from its URL if not.
           */

        }, {
          key: "_getSvgFromConfig",
          value: function _getSvgFromConfig(config) {
            if (config.svgText) {
              // We already have the SVG element for this icon, return a copy.
              return Object(rxjs__WEBPACK_IMPORTED_MODULE_4__["of"])(cloneSvg(this._svgElementFromConfig(config)));
            } else {
              // Fetch the icon from the config's URL, cache it, and return a copy.
              return this._loadSvgIconFromConfig(config).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["map"])(function (svg) {
                return cloneSvg(svg);
              }));
            }
          }
          /**
           * Attempts to find an icon with the specified name in any of the SVG icon sets.
           * First searches the available cached icons for a nested element with a matching name, and
           * if found copies the element to a new `<svg>` element. If not found, fetches all icon sets
           * that have not been cached, and searches again after all fetches are completed.
           * The returned Observable produces the SVG element if possible, and throws
           * an error if no icon with the specified name can be found.
           */

        }, {
          key: "_getSvgFromIconSetConfigs",
          value: function _getSvgFromIconSetConfigs(name, iconSetConfigs) {
            var _this623 = this;

            // For all the icon set SVG elements we've fetched, see if any contain an icon with the
            // requested name.
            var namedIcon = this._extractIconWithNameFromAnySet(name, iconSetConfigs);

            if (namedIcon) {
              // We could cache namedIcon in _svgIconConfigs, but since we have to make a copy every
              // time anyway, there's probably not much advantage compared to just always extracting
              // it from the icon set.
              return Object(rxjs__WEBPACK_IMPORTED_MODULE_4__["of"])(namedIcon);
            } // Not found in any cached icon sets. If there are icon sets with URLs that we haven't
            // fetched, fetch them now and look for iconName in the results.


            var iconSetFetchRequests = iconSetConfigs.filter(function (iconSetConfig) {
              return !iconSetConfig.svgText;
            }).map(function (iconSetConfig) {
              return _this623._loadSvgIconSetFromConfig(iconSetConfig).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["catchError"])(function (err) {
                var url = _this623._sanitizer.sanitize(_angular_core__WEBPACK_IMPORTED_MODULE_0__["SecurityContext"].RESOURCE_URL, iconSetConfig.url); // Swallow errors fetching individual URLs so the
                // combined Observable won't necessarily fail.


                var errorMessage = "Loading icon set URL: ".concat(url, " failed: ").concat(err.message);

                _this623._errorHandler.handleError(new Error(errorMessage));

                return Object(rxjs__WEBPACK_IMPORTED_MODULE_4__["of"])(null);
              }));
            }); // Fetch all the icon set URLs. When the requests complete, every IconSet should have a
            // cached SVG element (unless the request failed), and we can check again for the icon.

            return Object(rxjs__WEBPACK_IMPORTED_MODULE_4__["forkJoin"])(iconSetFetchRequests).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["map"])(function () {
              var foundIcon = _this623._extractIconWithNameFromAnySet(name, iconSetConfigs); // TODO: add an ngDevMode check


              if (!foundIcon) {
                throw getMatIconNameNotFoundError(name);
              }

              return foundIcon;
            }));
          }
          /**
           * Searches the cached SVG elements for the given icon sets for a nested icon element whose "id"
           * tag matches the specified name. If found, copies the nested element to a new SVG element and
           * returns it. Returns null if no matching element is found.
           */

        }, {
          key: "_extractIconWithNameFromAnySet",
          value: function _extractIconWithNameFromAnySet(iconName, iconSetConfigs) {
            // Iterate backwards, so icon sets added later have precedence.
            for (var i = iconSetConfigs.length - 1; i >= 0; i--) {
              var config = iconSetConfigs[i]; // Parsing the icon set's text into an SVG element can be expensive. We can avoid some of
              // the parsing by doing a quick check using `indexOf` to see if there's any chance for the
              // icon to be in the set. This won't be 100% accurate, but it should help us avoid at least
              // some of the parsing.

              if (config.svgText && config.svgText.indexOf(iconName) > -1) {
                var svg = this._svgElementFromConfig(config);

                var foundIcon = this._extractSvgIconFromSet(svg, iconName, config.options);

                if (foundIcon) {
                  return foundIcon;
                }
              }
            }

            return null;
          }
          /**
           * Loads the content of the icon URL specified in the SvgIconConfig and creates an SVG element
           * from it.
           */

        }, {
          key: "_loadSvgIconFromConfig",
          value: function _loadSvgIconFromConfig(config) {
            var _this624 = this;

            return this._fetchIcon(config).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["tap"])(function (svgText) {
              return config.svgText = svgText;
            }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["map"])(function () {
              return _this624._svgElementFromConfig(config);
            }));
          }
          /**
           * Loads the content of the icon set URL specified in the
           * SvgIconConfig and attaches it to the config.
           */

        }, {
          key: "_loadSvgIconSetFromConfig",
          value: function _loadSvgIconSetFromConfig(config) {
            if (config.svgText) {
              return Object(rxjs__WEBPACK_IMPORTED_MODULE_4__["of"])(null);
            }

            return this._fetchIcon(config).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["tap"])(function (svgText) {
              return config.svgText = svgText;
            }));
          }
          /**
           * Searches the cached element of the given SvgIconConfig for a nested icon element whose "id"
           * tag matches the specified name. If found, copies the nested element to a new SVG element and
           * returns it. Returns null if no matching element is found.
           */

        }, {
          key: "_extractSvgIconFromSet",
          value: function _extractSvgIconFromSet(iconSet, iconName, options) {
            // Use the `id="iconName"` syntax in order to escape special
            // characters in the ID (versus using the #iconName syntax).
            var iconSource = iconSet.querySelector("[id=\"".concat(iconName, "\"]"));

            if (!iconSource) {
              return null;
            } // Clone the element and remove the ID to prevent multiple elements from being added
            // to the page with the same ID.


            var iconElement = iconSource.cloneNode(true);
            iconElement.removeAttribute('id'); // If the icon node is itself an <svg> node, clone and return it directly. If not, set it as
            // the content of a new <svg> node.

            if (iconElement.nodeName.toLowerCase() === 'svg') {
              return this._setSvgAttributes(iconElement, options);
            } // If the node is a <symbol>, it won't be rendered so we have to convert it into <svg>. Note
            // that the same could be achieved by referring to it via <use href="#id">, however the <use>
            // tag is problematic on Firefox, because it needs to include the current page path.


            if (iconElement.nodeName.toLowerCase() === 'symbol') {
              return this._setSvgAttributes(this._toSvgElement(iconElement), options);
            } // createElement('SVG') doesn't work as expected; the DOM ends up with
            // the correct nodes, but the SVG content doesn't render. Instead we
            // have to create an empty SVG node using innerHTML and append its content.
            // Elements created using DOMParser.parseFromString have the same problem.
            // http://stackoverflow.com/questions/23003278/svg-innerhtml-in-firefox-can-not-display


            var svg = this._svgElementFromString('<svg></svg>'); // Clone the node so we don't remove it from the parent icon set element.


            svg.appendChild(iconElement);
            return this._setSvgAttributes(svg, options);
          }
          /**
           * Creates a DOM element from the given SVG string.
           */

        }, {
          key: "_svgElementFromString",
          value: function _svgElementFromString(str) {
            var div = this._document.createElement('DIV');

            div.innerHTML = str;
            var svg = div.querySelector('svg'); // TODO: add an ngDevMode check

            if (!svg) {
              throw Error('<svg> tag not found');
            }

            return svg;
          }
          /**
           * Converts an element into an SVG node by cloning all of its children.
           */

        }, {
          key: "_toSvgElement",
          value: function _toSvgElement(element) {
            var svg = this._svgElementFromString('<svg></svg>');

            var attributes = element.attributes; // Copy over all the attributes from the `symbol` to the new SVG, except the id.

            for (var i = 0; i < attributes.length; i++) {
              var _attributes$i = attributes[i],
                  name = _attributes$i.name,
                  value = _attributes$i.value;

              if (name !== 'id') {
                svg.setAttribute(name, value);
              }
            }

            for (var _i38 = 0; _i38 < element.childNodes.length; _i38++) {
              if (element.childNodes[_i38].nodeType === this._document.ELEMENT_NODE) {
                svg.appendChild(element.childNodes[_i38].cloneNode(true));
              }
            }

            return svg;
          }
          /**
           * Sets the default attributes for an SVG element to be used as an icon.
           */

        }, {
          key: "_setSvgAttributes",
          value: function _setSvgAttributes(svg, options) {
            svg.setAttribute('fit', '');
            svg.setAttribute('height', '100%');
            svg.setAttribute('width', '100%');
            svg.setAttribute('preserveAspectRatio', 'xMidYMid meet');
            svg.setAttribute('focusable', 'false'); // Disable IE11 default behavior to make SVGs focusable.

            if (options && options.viewBox) {
              svg.setAttribute('viewBox', options.viewBox);
            }

            return svg;
          }
          /**
           * Returns an Observable which produces the string contents of the given icon. Results may be
           * cached, so future calls with the same URL may not cause another HTTP request.
           */

        }, {
          key: "_fetchIcon",
          value: function _fetchIcon(iconConfig) {
            var _this625 = this;

            var _a;

            var safeUrl = iconConfig.url,
                options = iconConfig.options;
            var withCredentials = (_a = options === null || options === void 0 ? void 0 : options.withCredentials) !== null && _a !== void 0 ? _a : false;

            if (!this._httpClient) {
              throw getMatIconNoHttpProviderError();
            } // TODO: add an ngDevMode check


            if (safeUrl == null) {
              throw Error("Cannot fetch icon from URL \"".concat(safeUrl, "\"."));
            }

            var url = this._sanitizer.sanitize(_angular_core__WEBPACK_IMPORTED_MODULE_0__["SecurityContext"].RESOURCE_URL, safeUrl); // TODO: add an ngDevMode check


            if (!url) {
              throw getMatIconFailedToSanitizeUrlError(safeUrl);
            } // Store in-progress fetches to avoid sending a duplicate request for a URL when there is
            // already a request in progress for that URL. It's necessary to call share() on the
            // Observable returned by http.get() so that multiple subscribers don't cause multiple XHRs.


            var inProgressFetch = this._inProgressUrlFetches.get(url);

            if (inProgressFetch) {
              return inProgressFetch;
            }

            var req = this._httpClient.get(url, {
              responseType: 'text',
              withCredentials: withCredentials
            }).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["finalize"])(function () {
              return _this625._inProgressUrlFetches["delete"](url);
            }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["share"])());

            this._inProgressUrlFetches.set(url, req);

            return req;
          }
          /**
           * Registers an icon config by name in the specified namespace.
           * @param namespace Namespace in which to register the icon config.
           * @param iconName Name under which to register the config.
           * @param config Config to be registered.
           */

        }, {
          key: "_addSvgIconConfig",
          value: function _addSvgIconConfig(namespace, iconName, config) {
            this._svgIconConfigs.set(iconKey(namespace, iconName), config);

            return this;
          }
          /**
           * Registers an icon set config in the specified namespace.
           * @param namespace Namespace in which to register the icon config.
           * @param config Config to be registered.
           */

        }, {
          key: "_addSvgIconSetConfig",
          value: function _addSvgIconSetConfig(namespace, config) {
            var configNamespace = this._iconSetConfigs.get(namespace);

            if (configNamespace) {
              configNamespace.push(config);
            } else {
              this._iconSetConfigs.set(namespace, [config]);
            }

            return this;
          }
          /** Parses a config's text into an SVG element. */

        }, {
          key: "_svgElementFromConfig",
          value: function _svgElementFromConfig(config) {
            if (!config.svgElement) {
              var svg = this._svgElementFromString(config.svgText);

              this._setSvgAttributes(svg, config.options);

              config.svgElement = svg;
            }

            return config.svgElement;
          }
        }]);

        return MatIconRegistry;
      }();

      MatIconRegistry.ɵfac = function MatIconRegistry_Factory(t) {
        return new (t || MatIconRegistry)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_6__["HttpClient"], 8), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_platform_browser__WEBPACK_IMPORTED_MODULE_7__["DomSanitizer"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_3__["DOCUMENT"], 8), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ErrorHandler"]));
      };

      MatIconRegistry.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({
        factory: function MatIconRegistry_Factory() {
          return new MatIconRegistry(Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(_angular_common_http__WEBPACK_IMPORTED_MODULE_6__["HttpClient"], 8), Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(_angular_platform_browser__WEBPACK_IMPORTED_MODULE_7__["DomSanitizer"]), Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(_angular_common__WEBPACK_IMPORTED_MODULE_3__["DOCUMENT"], 8), Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ErrorHandler"]));
        },
        token: MatIconRegistry,
        providedIn: "root"
      });

      MatIconRegistry.ctorParameters = function () {
        return [{
          type: _angular_common_http__WEBPACK_IMPORTED_MODULE_6__["HttpClient"],
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
          }]
        }, {
          type: _angular_platform_browser__WEBPACK_IMPORTED_MODULE_7__["DomSanitizer"]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [_angular_common__WEBPACK_IMPORTED_MODULE_3__["DOCUMENT"]]
          }]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ErrorHandler"]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatIconRegistry, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
          args: [{
            providedIn: 'root'
          }]
        }], function () {
          return [{
            type: _angular_common_http__WEBPACK_IMPORTED_MODULE_6__["HttpClient"],
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
            }]
          }, {
            type: _angular_platform_browser__WEBPACK_IMPORTED_MODULE_7__["DomSanitizer"]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [_angular_common__WEBPACK_IMPORTED_MODULE_3__["DOCUMENT"]]
            }]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ErrorHandler"]
          }];
        }, null);
      })();
      /** @docs-private */


      function ICON_REGISTRY_PROVIDER_FACTORY(parentRegistry, httpClient, sanitizer, errorHandler, document) {
        return parentRegistry || new MatIconRegistry(httpClient, sanitizer, document, errorHandler);
      }
      /** @docs-private */


      var ICON_REGISTRY_PROVIDER = {
        // If there is already an MatIconRegistry available, use that. Otherwise, provide a new one.
        provide: MatIconRegistry,
        deps: [[new _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"](), new _angular_core__WEBPACK_IMPORTED_MODULE_0__["SkipSelf"](), MatIconRegistry], [new _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"](), _angular_common_http__WEBPACK_IMPORTED_MODULE_6__["HttpClient"]], _angular_platform_browser__WEBPACK_IMPORTED_MODULE_7__["DomSanitizer"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ErrorHandler"], [new _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"](), _angular_common__WEBPACK_IMPORTED_MODULE_3__["DOCUMENT"]]],
        useFactory: ICON_REGISTRY_PROVIDER_FACTORY
      };
      /** Clones an SVGElement while preserving type information. */

      function cloneSvg(svg) {
        return svg.cloneNode(true);
      }
      /** Returns the cache key to use for an icon namespace and name. */


      function iconKey(namespace, name) {
        return namespace + ':' + name;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */
      // Boilerplate for applying mixins to MatIcon.

      /** @docs-private */


      var MatIconBase = function MatIconBase(_elementRef) {
        _classCallCheck2(this, MatIconBase);

        this._elementRef = _elementRef;
      };

      var _MatIconMixinBase = Object(_angular_material_core__WEBPACK_IMPORTED_MODULE_1__["mixinColor"])(MatIconBase);
      /**
       * Injection token used to provide the current location to `MatIcon`.
       * Used to handle server-side rendering and to stub out during unit tests.
       * @docs-private
       */


      var MAT_ICON_LOCATION = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('mat-icon-location', {
        providedIn: 'root',
        factory: MAT_ICON_LOCATION_FACTORY
      });
      /** @docs-private */

      function MAT_ICON_LOCATION_FACTORY() {
        var _document = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["inject"])(_angular_common__WEBPACK_IMPORTED_MODULE_3__["DOCUMENT"]);

        var _location = _document ? _document.location : null;

        return {
          // Note that this needs to be a function, rather than a property, because Angular
          // will only resolve it once, but we want the current path on each call.
          getPathname: function getPathname() {
            return _location ? _location.pathname + _location.search : '';
          }
        };
      }
      /** SVG attributes that accept a FuncIRI (e.g. `url(<something>)`). */


      var funcIriAttributes = ['clip-path', 'color-profile', 'src', 'cursor', 'fill', 'filter', 'marker', 'marker-start', 'marker-mid', 'marker-end', 'mask', 'stroke'];

      var ɵ0 = function ɵ0(attr) {
        return "[".concat(attr, "]");
      };
      /** Selector that can be used to find all elements that are using a `FuncIRI`. */


      var funcIriAttributeSelector = funcIriAttributes.map(ɵ0).join(', ');
      /** Regex that can be used to extract the id out of a FuncIRI. */

      var funcIriPattern = /^url\(['"]?#(.*?)['"]?\)$/;
      /**
       * Component to display an icon. It can be used in the following ways:
       *
       * - Specify the svgIcon input to load an SVG icon from a URL previously registered with the
       *   addSvgIcon, addSvgIconInNamespace, addSvgIconSet, or addSvgIconSetInNamespace methods of
       *   MatIconRegistry. If the svgIcon value contains a colon it is assumed to be in the format
       *   "[namespace]:[name]", if not the value will be the name of an icon in the default namespace.
       *   Examples:
       *     `<mat-icon svgIcon="left-arrow"></mat-icon>
       *     <mat-icon svgIcon="animals:cat"></mat-icon>`
       *
       * - Use a font ligature as an icon by putting the ligature text in the content of the `<mat-icon>`
       *   component. By default the Material icons font is used as described at
       *   http://google.github.io/material-design-icons/#icon-font-for-the-web. You can specify an
       *   alternate font by setting the fontSet input to either the CSS class to apply to use the
       *   desired font, or to an alias previously registered with MatIconRegistry.registerFontClassAlias.
       *   Examples:
       *     `<mat-icon>home</mat-icon>
       *     <mat-icon fontSet="myfont">sun</mat-icon>`
       *
       * - Specify a font glyph to be included via CSS rules by setting the fontSet input to specify the
       *   font, and the fontIcon input to specify the icon. Typically the fontIcon will specify a
       *   CSS class which causes the glyph to be displayed via a :before selector, as in
       *   https://fortawesome.github.io/Font-Awesome/examples/
       *   Example:
       *     `<mat-icon fontSet="fa" fontIcon="alarm"></mat-icon>`
       */

      var MatIcon = /*#__PURE__*/function (_MatIconMixinBase2) {
        _inherits2(MatIcon, _MatIconMixinBase2);

        var _super305 = _createSuper2(MatIcon);

        function MatIcon(elementRef, _iconRegistry, ariaHidden, _location, _errorHandler) {
          var _this626;

          _classCallCheck2(this, MatIcon);

          _this626 = _super305.call(this, elementRef);
          _this626._iconRegistry = _iconRegistry;
          _this626._location = _location;
          _this626._errorHandler = _errorHandler;
          _this626._inline = false;
          /** Subscription to the current in-progress SVG icon request. */

          _this626._currentIconFetch = rxjs__WEBPACK_IMPORTED_MODULE_4__["Subscription"].EMPTY; // If the user has not explicitly set aria-hidden, mark the icon as hidden, as this is
          // the right thing to do for the majority of icon use-cases.

          if (!ariaHidden) {
            elementRef.nativeElement.setAttribute('aria-hidden', 'true');
          }

          return _this626;
        }
        /**
         * Whether the icon should be inlined, automatically sizing the icon to match the font size of
         * the element the icon is contained in.
         */


        _createClass2(MatIcon, [{
          key: "inline",
          get: function get() {
            return this._inline;
          },
          set: function set(inline) {
            this._inline = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__["coerceBooleanProperty"])(inline);
          }
          /** Name of the icon in the SVG icon set. */

        }, {
          key: "svgIcon",
          get: function get() {
            return this._svgIcon;
          },
          set: function set(value) {
            if (value !== this._svgIcon) {
              if (value) {
                this._updateSvgIcon(value);
              } else if (this._svgIcon) {
                this._clearSvgElement();
              }

              this._svgIcon = value;
            }
          }
          /** Font set that the icon is a part of. */

        }, {
          key: "fontSet",
          get: function get() {
            return this._fontSet;
          },
          set: function set(value) {
            var newValue = this._cleanupFontValue(value);

            if (newValue !== this._fontSet) {
              this._fontSet = newValue;

              this._updateFontIconClasses();
            }
          }
          /** Name of an icon within a font set. */

        }, {
          key: "fontIcon",
          get: function get() {
            return this._fontIcon;
          },
          set: function set(value) {
            var newValue = this._cleanupFontValue(value);

            if (newValue !== this._fontIcon) {
              this._fontIcon = newValue;

              this._updateFontIconClasses();
            }
          }
          /**
           * Splits an svgIcon binding value into its icon set and icon name components.
           * Returns a 2-element array of [(icon set), (icon name)].
           * The separator for the two fields is ':'. If there is no separator, an empty
           * string is returned for the icon set and the entire value is returned for
           * the icon name. If the argument is falsy, returns an array of two empty strings.
           * Throws an error if the name contains two or more ':' separators.
           * Examples:
           *   `'social:cake' -> ['social', 'cake']
           *   'penguin' -> ['', 'penguin']
           *   null -> ['', '']
           *   'a:b:c' -> (throws Error)`
           */

        }, {
          key: "_splitIconName",
          value: function _splitIconName(iconName) {
            if (!iconName) {
              return ['', ''];
            }

            var parts = iconName.split(':');

            switch (parts.length) {
              case 1:
                return ['', parts[0]];
              // Use default namespace.

              case 2:
                return parts;

              default:
                throw Error("Invalid icon name: \"".concat(iconName, "\""));
              // TODO: add an ngDevMode check
            }
          }
        }, {
          key: "ngOnInit",
          value: function ngOnInit() {
            // Update font classes because ngOnChanges won't be called if none of the inputs are present,
            // e.g. <mat-icon>arrow</mat-icon> In this case we need to add a CSS class for the default font.
            this._updateFontIconClasses();
          }
        }, {
          key: "ngAfterViewChecked",
          value: function ngAfterViewChecked() {
            var cachedElements = this._elementsWithExternalReferences;

            if (cachedElements && cachedElements.size) {
              var newPath = this._location.getPathname(); // We need to check whether the URL has changed on each change detection since
              // the browser doesn't have an API that will let us react on link clicks and
              // we can't depend on the Angular router. The references need to be updated,
              // because while most browsers don't care whether the URL is correct after
              // the first render, Safari will break if the user navigates to a different
              // page and the SVG isn't re-rendered.


              if (newPath !== this._previousPath) {
                this._previousPath = newPath;

                this._prependPathToReferences(newPath);
              }
            }
          }
        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            this._currentIconFetch.unsubscribe();

            if (this._elementsWithExternalReferences) {
              this._elementsWithExternalReferences.clear();
            }
          }
        }, {
          key: "_usingFontIcon",
          value: function _usingFontIcon() {
            return !this.svgIcon;
          }
        }, {
          key: "_setSvgElement",
          value: function _setSvgElement(svg) {
            this._clearSvgElement(); // Workaround for IE11 and Edge ignoring `style` tags inside dynamically-created SVGs.
            // See: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/10898469/
            // Do this before inserting the element into the DOM, in order to avoid a style recalculation.


            var styleTags = svg.querySelectorAll('style');

            for (var i = 0; i < styleTags.length; i++) {
              styleTags[i].textContent += ' ';
            } // Note: we do this fix here, rather than the icon registry, because the
            // references have to point to the URL at the time that the icon was created.


            var path = this._location.getPathname();

            this._previousPath = path;

            this._cacheChildrenWithExternalReferences(svg);

            this._prependPathToReferences(path);

            this._elementRef.nativeElement.appendChild(svg);
          }
        }, {
          key: "_clearSvgElement",
          value: function _clearSvgElement() {
            var layoutElement = this._elementRef.nativeElement;
            var childCount = layoutElement.childNodes.length;

            if (this._elementsWithExternalReferences) {
              this._elementsWithExternalReferences.clear();
            } // Remove existing non-element child nodes and SVGs, and add the new SVG element. Note that
            // we can't use innerHTML, because IE will throw if the element has a data binding.


            while (childCount--) {
              var child = layoutElement.childNodes[childCount]; // 1 corresponds to Node.ELEMENT_NODE. We remove all non-element nodes in order to get rid
              // of any loose text nodes, as well as any SVG elements in order to remove any old icons.

              if (child.nodeType !== 1 || child.nodeName.toLowerCase() === 'svg') {
                layoutElement.removeChild(child);
              }
            }
          }
        }, {
          key: "_updateFontIconClasses",
          value: function _updateFontIconClasses() {
            if (!this._usingFontIcon()) {
              return;
            }

            var elem = this._elementRef.nativeElement;
            var fontSetClass = this.fontSet ? this._iconRegistry.classNameForFontAlias(this.fontSet) : this._iconRegistry.getDefaultFontSetClass();

            if (fontSetClass != this._previousFontSetClass) {
              if (this._previousFontSetClass) {
                elem.classList.remove(this._previousFontSetClass);
              }

              if (fontSetClass) {
                elem.classList.add(fontSetClass);
              }

              this._previousFontSetClass = fontSetClass;
            }

            if (this.fontIcon != this._previousFontIconClass) {
              if (this._previousFontIconClass) {
                elem.classList.remove(this._previousFontIconClass);
              }

              if (this.fontIcon) {
                elem.classList.add(this.fontIcon);
              }

              this._previousFontIconClass = this.fontIcon;
            }
          }
          /**
           * Cleans up a value to be used as a fontIcon or fontSet.
           * Since the value ends up being assigned as a CSS class, we
           * have to trim the value and omit space-separated values.
           */

        }, {
          key: "_cleanupFontValue",
          value: function _cleanupFontValue(value) {
            return typeof value === 'string' ? value.trim().split(' ')[0] : value;
          }
          /**
           * Prepends the current path to all elements that have an attribute pointing to a `FuncIRI`
           * reference. This is required because WebKit browsers require references to be prefixed with
           * the current path, if the page has a `base` tag.
           */

        }, {
          key: "_prependPathToReferences",
          value: function _prependPathToReferences(path) {
            var elements = this._elementsWithExternalReferences;

            if (elements) {
              elements.forEach(function (attrs, element) {
                attrs.forEach(function (attr) {
                  element.setAttribute(attr.name, "url('".concat(path, "#").concat(attr.value, "')"));
                });
              });
            }
          }
          /**
           * Caches the children of an SVG element that have `url()`
           * references that we need to prefix with the current path.
           */

        }, {
          key: "_cacheChildrenWithExternalReferences",
          value: function _cacheChildrenWithExternalReferences(element) {
            var elementsWithFuncIri = element.querySelectorAll(funcIriAttributeSelector);
            var elements = this._elementsWithExternalReferences = this._elementsWithExternalReferences || new Map();

            var _loop7 = function _loop7(i) {
              funcIriAttributes.forEach(function (attr) {
                var elementWithReference = elementsWithFuncIri[i];
                var value = elementWithReference.getAttribute(attr);
                var match = value ? value.match(funcIriPattern) : null;

                if (match) {
                  var attributes = elements.get(elementWithReference);

                  if (!attributes) {
                    attributes = [];
                    elements.set(elementWithReference, attributes);
                  }

                  attributes.push({
                    name: attr,
                    value: match[1]
                  });
                }
              });
            };

            for (var i = 0; i < elementsWithFuncIri.length; i++) {
              _loop7(i);
            }
          }
          /** Sets a new SVG icon with a particular name. */

        }, {
          key: "_updateSvgIcon",
          value: function _updateSvgIcon(rawName) {
            var _this627 = this;

            this._svgNamespace = null;
            this._svgName = null;

            this._currentIconFetch.unsubscribe();

            if (rawName) {
              var _this$_splitIconName = this._splitIconName(rawName),
                  _this$_splitIconName2 = _slicedToArray(_this$_splitIconName, 2),
                  namespace = _this$_splitIconName2[0],
                  iconName = _this$_splitIconName2[1];

              if (namespace) {
                this._svgNamespace = namespace;
              }

              if (iconName) {
                this._svgName = iconName;
              }

              this._currentIconFetch = this._iconRegistry.getNamedSvgIcon(iconName, namespace).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["take"])(1)).subscribe(function (svg) {
                return _this627._setSvgElement(svg);
              }, function (err) {
                var errorMessage = "Error retrieving icon ".concat(namespace, ":").concat(iconName, "! ").concat(err.message);

                _this627._errorHandler.handleError(new Error(errorMessage));
              });
            }
          }
        }]);

        return MatIcon;
      }(_MatIconMixinBase);

      MatIcon.ɵfac = function MatIcon_Factory(t) {
        return new (t || MatIcon)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](MatIconRegistry), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinjectAttribute"]('aria-hidden'), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](MAT_ICON_LOCATION), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ErrorHandler"]));
      };

      MatIcon.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
        type: MatIcon,
        selectors: [["mat-icon"]],
        hostAttrs: ["role", "img", 1, "mat-icon", "notranslate"],
        hostVars: 7,
        hostBindings: function MatIcon_HostBindings(rf, ctx) {
          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("data-mat-icon-type", ctx._usingFontIcon() ? "font" : "svg")("data-mat-icon-name", ctx._svgName || ctx.fontIcon)("data-mat-icon-namespace", ctx._svgNamespace || ctx.fontSet);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("mat-icon-inline", ctx.inline)("mat-icon-no-color", ctx.color !== "primary" && ctx.color !== "accent" && ctx.color !== "warn");
          }
        },
        inputs: {
          color: "color",
          inline: "inline",
          svgIcon: "svgIcon",
          fontSet: "fontSet",
          fontIcon: "fontIcon"
        },
        exportAs: ["matIcon"],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]],
        ngContentSelectors: _c0,
        decls: 1,
        vars: 0,
        template: function MatIcon_Template(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojectionDef"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojection"](0);
          }
        },
        styles: [".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],
        encapsulation: 2,
        changeDetection: 0
      });

      MatIcon.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
        }, {
          type: MatIconRegistry
        }, {
          type: String,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Attribute"],
            args: ['aria-hidden']
          }]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [MAT_ICON_LOCATION]
          }]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ErrorHandler"]
        }];
      };

      MatIcon.propDecorators = {
        inline: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }],
        svgIcon: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }],
        fontSet: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }],
        fontIcon: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatIcon, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
          args: [{
            template: '<ng-content></ng-content>',
            selector: 'mat-icon',
            exportAs: 'matIcon',
            inputs: ['color'],
            host: {
              'role': 'img',
              'class': 'mat-icon notranslate',
              '[attr.data-mat-icon-type]': '_usingFontIcon() ? "font" : "svg"',
              '[attr.data-mat-icon-name]': '_svgName || fontIcon',
              '[attr.data-mat-icon-namespace]': '_svgNamespace || fontSet',
              '[class.mat-icon-inline]': 'inline',
              '[class.mat-icon-no-color]': 'color !== "primary" && color !== "accent" && color !== "warn"'
            },
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush,
            styles: [".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"]
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
          }, {
            type: MatIconRegistry
          }, {
            type: String,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Attribute"],
              args: ['aria-hidden']
            }]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [MAT_ICON_LOCATION]
            }]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ErrorHandler"]
          }];
        }, {
          inline: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }],
          svgIcon: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }],
          fontSet: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }],
          fontIcon: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }]
        });
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var MatIconModule = function MatIconModule() {
        _classCallCheck2(this, MatIconModule);
      };

      MatIconModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
        type: MatIconModule
      });
      MatIconModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
        factory: function MatIconModule_Factory(t) {
          return new (t || MatIconModule)();
        },
        imports: [[_angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatCommonModule"]], _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatCommonModule"]]
      });

      (function () {
        (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](MatIconModule, {
          declarations: function declarations() {
            return [MatIcon];
          },
          imports: function imports() {
            return [_angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatCommonModule"]];
          },
          exports: function exports() {
            return [MatIcon, _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatCommonModule"]];
          }
        });
      })();
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatIconModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
          args: [{
            imports: [_angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatCommonModule"]],
            exports: [MatIcon, _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatCommonModule"]],
            declarations: [MatIcon]
          }]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Generated bundle index. Do not edit.
       */
      //# sourceMappingURL=icon.js.map

      /***/

    },

    /***/
    "TjGc": function TjGc(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return isToday;
      });
      /* harmony import */


      var _isSameDay_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../isSameDay/index.js */
      "G6Tw");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name isToday
       * @category Day Helpers
       * @summary Is the given date today?
       * @pure false
       *
       * @description
       * Is the given date today?
       *
       * > ⚠️ Please note that this function is not present in the FP submodule as
       * > it uses `Date.now()` internally hence impure and can't be safely curried.
       *
       * ### 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 {Date|Number} date - the date to check
       * @returns {Boolean} the date is today
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // If today is 6 October 2014, is 6 October 14:00:00 today?
       * var result = isToday(new Date(2014, 9, 6, 14, 0))
       * //=> true
       */


      function isToday(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        return Object(_isSameDay_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate, Date.now());
      }
      /***/

    },

    /***/
    "TnmX": function TnmX(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return max;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name max
       * @category Common Helpers
       * @summary Return the latest of the given dates.
       *
       * @description
       * Return the latest of the given dates.
       *
       * ### 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).
       *
       * - `max` function now accepts an array of dates rather than spread arguments.
       *
       *   ```javascript
       *   // Before v2.0.0
       *   var date1 = new Date(1989, 6, 10)
       *   var date2 = new Date(1987, 1, 11)
       *   var maxDate = max(date1, date2)
       *
       *   // v2.0.0 onward:
       *   var dates = [new Date(1989, 6, 10), new Date(1987, 1, 11)]
       *   var maxDate = max(dates)
       *   ```
       *
       * @param {Date[]|Number[]} datesArray - the dates to compare
       * @returns {Date} the latest of the dates
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // Which of these dates is the latest?
       * var result = max([
       *   new Date(1989, 6, 10),
       *   new Date(1987, 1, 11),
       *   new Date(1995, 6, 2),
       *   new Date(1990, 0, 1)
       * ])
       * //=> Sun Jul 02 1995 00:00:00
       */


      function max(dirtyDatesArray) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        var datesArray; // `dirtyDatesArray` is Array, Set or Map, or object with custom `forEach` method

        if (dirtyDatesArray && typeof dirtyDatesArray.forEach === 'function') {
          datesArray = dirtyDatesArray; // If `dirtyDatesArray` is Array-like Object, convert to Array.
        } else if (typeof dirtyDatesArray === 'object' && dirtyDatesArray !== null) {
          datesArray = Array.prototype.slice.call(dirtyDatesArray);
        } else {
          // `dirtyDatesArray` is non-iterable, return Invalid Date
          return new Date(NaN);
        }

        var result;
        datesArray.forEach(function (dirtyDate) {
          var currentDate = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);

          if (result === undefined || result < currentDate || isNaN(currentDate)) {
            result = currentDate;
          }
        });
        return result || new Date(NaN);
      }
      /***/

    },

    /***/
    "TpeJ": function TpeJ(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return getDate;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name getDate
       * @category Day Helpers
       * @summary Get the day of the month of the given date.
       *
       * @description
       * Get the day of the month of the given date.
       *
       * ### 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 {Date|Number} date - the given date
       * @returns {Number} the day of month
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // Which day of the month is 29 February 2012?
       * var result = getDate(new Date(2012, 1, 29))
       * //=> 29
       */


      function getDate(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);
        var dayOfMonth = date.getDate();
        return dayOfMonth;
      }
      /***/

    },

    /***/
    "Tx3P": function Tx3P(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return isSameISOWeekYear;
      });
      /* harmony import */


      var _startOfISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../startOfISOWeekYear/index.js */
      "0f5V");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name isSameISOWeekYear
       * @category ISO Week-Numbering Year Helpers
       * @summary Are the given dates in the same ISO week-numbering year?
       *
       * @description
       * Are the given dates in the same ISO week-numbering year?
       *
       * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
       *
       * ### 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).
       *
       * - The function was renamed from `isSameISOYear` to `isSameISOWeekYear`.
       *   "ISO week year" is short for [ISO week-numbering year](https://en.wikipedia.org/wiki/ISO_week_date).
       *   This change makes the name consistent with
       *   locale-dependent week-numbering year helpers, e.g., `getWeekYear`.
       *
       * @param {Date|Number} dateLeft - the first date to check
       * @param {Date|Number} dateRight - the second date to check
       * @returns {Boolean} the dates are in the same ISO week-numbering year
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // Are 29 December 2003 and 2 January 2005 in the same ISO week-numbering year?
       * var result = isSameISOWeekYear(new Date(2003, 11, 29), new Date(2005, 0, 2))
       * //=> true
       */


      function isSameISOWeekYear(dirtyDateLeft, dirtyDateRight) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(2, arguments);
        var dateLeftStartOfYear = Object(_startOfISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateLeft);
        var dateRightStartOfYear = Object(_startOfISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateRight);
        return dateLeftStartOfYear.getTime() === dateRightStartOfYear.getTime();
      }
      /***/

    },

    /***/
    "UDhR": function UDhR(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Indonesian [id]
      //! author : Mohammad Satrio Utomo : https://github.com/tyok
      //! reference: http://id.wikisource.org/wiki/Pedoman_Umum_Ejaan_Bahasa_Indonesia_yang_Disempurnakan
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var id = moment.defineLocale('id', {
          months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split('_'),
          monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des'.split('_'),
          weekdays: 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),
          weekdaysShort: 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'),
          weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'),
          longDateFormat: {
            LT: 'HH.mm',
            LTS: 'HH.mm.ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY [pukul] HH.mm',
            LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm'
          },
          meridiemParse: /pagi|siang|sore|malam/,
          meridiemHour: function meridiemHour(hour, meridiem) {
            if (hour === 12) {
              hour = 0;
            }

            if (meridiem === 'pagi') {
              return hour;
            } else if (meridiem === 'siang') {
              return hour >= 11 ? hour : hour + 12;
            } else if (meridiem === 'sore' || meridiem === 'malam') {
              return hour + 12;
            }
          },
          meridiem: function meridiem(hours, minutes, isLower) {
            if (hours < 11) {
              return 'pagi';
            } else if (hours < 15) {
              return 'siang';
            } else if (hours < 19) {
              return 'sore';
            } else {
              return 'malam';
            }
          },
          calendar: {
            sameDay: '[Hari ini pukul] LT',
            nextDay: '[Besok pukul] LT',
            nextWeek: 'dddd [pukul] LT',
            lastDay: '[Kemarin pukul] LT',
            lastWeek: 'dddd [lalu pukul] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'dalam %s',
            past: '%s yang lalu',
            s: 'beberapa detik',
            ss: '%d detik',
            m: 'semenit',
            mm: '%d menit',
            h: 'sejam',
            hh: '%d jam',
            d: 'sehari',
            dd: '%d hari',
            M: 'sebulan',
            MM: '%d bulan',
            y: 'setahun',
            yy: '%d tahun'
          },
          week: {
            dow: 0,
            // Sunday is the first day of the week.
            doy: 6 // The week that contains Jan 6th is the first week of the year.

          }
        });
        return id;
      });
      /***/

    },

    /***/
    "UDy6": function UDy6(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return eachHourOfInterval;
      });
      /* harmony import */


      var _addHours_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../addHours/index.js */
      "Da6A");
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name eachHourOfInterval
       * @category Interval Helpers
       * @summary Return the array of hours within the specified time interval.
       *
       * @description
       * Return the array of hours within the specified time interval.
       *
       * @param {Interval} interval - the interval. See [Interval]{@link docs/types/Interval}
       * @param {Object} [options] - an object with options.
       * @param {Number} [options.step=1] - the step to increment by. The value should be more than 1.
       * @returns {Date[]} the array with starts of hours from the hour of the interval start to the hour of the interval end
       * @throws {TypeError} 1 argument required
       * @throws {RangeError} `options.step` must be a number greater than 1
       * @throws {RangeError} The start of an interval cannot be after its end
       * @throws {RangeError} Date in interval cannot be `Invalid Date`
       *
       * @example
       * // Each hour between 6 October 2014, 12:00 and 10 October 2014, 15:00
       * var result = eachHourOfInterval({
       *   start: new Date(2014, 9, 6, 12),
       *   end: new Date(2014, 9, 6, 15)
       * })
       * //=> [
       * //   Mon Oct 06 2014 12:00:00,
       * //   Mon Oct 06 2014 13:00:00,
       * //   Mon Oct 06 2014 14:00:00,
       * //   Mon Oct 06 2014 15:00:00
       * // ]
       */


      function eachHourOfInterval(dirtyInterval, options) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(1, arguments);
        var interval = dirtyInterval || {};
        var startDate = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(interval.start);
        var endDate = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(interval.end);
        var startTime = startDate.getTime();
        var endTime = endDate.getTime(); // Throw an exception if start date is after end date or if any date is `Invalid Date`

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

        var dates = [];
        var currentDate = startDate;
        currentDate.setMinutes(0, 0, 0);
        var step = options && 'step' in options ? Number(options.step) : 1;
        if (step < 1 || isNaN(step)) throw new RangeError('`options.step` must be a number greater than 1');

        while (currentDate.getTime() <= endTime) {
          dates.push(Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(currentDate));
          currentDate = Object(_addHours_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(currentDate, step);
        }

        return dates;
      }
      /***/

    },

    /***/
    "UGaM": function UGaM(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "publishBehavior", function () {
        return publishBehavior;
      });
      /* harmony import */


      var _BehaviorSubject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../BehaviorSubject */
      "2Vo4");
      /* harmony import */


      var _multicast__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ./multicast */
      "oB13");

      function publishBehavior(value) {
        return function (source) {
          return Object(_multicast__WEBPACK_IMPORTED_MODULE_1__["multicast"])(new _BehaviorSubject__WEBPACK_IMPORTED_MODULE_0__["BehaviorSubject"](value))(source);
        };
      } //# sourceMappingURL=publishBehavior.js.map

      /***/

    },

    /***/
    "UHp3": function UHp3(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "windowTime", function () {
        return windowTime;
      });
      /* harmony import */


      var _Subject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Subject */
      "XNiG");
      /* harmony import */


      var _scheduler_async__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../scheduler/async */
      "D0XW");
      /* harmony import */


      var _Subscriber__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../Subscriber */
      "7o/Q");
      /* harmony import */


      var _util_isNumeric__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../util/isNumeric */
      "Y7HM");
      /* harmony import */


      var _util_isScheduler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! ../util/isScheduler */
      "z+Ro");

      function windowTime(windowTimeSpan) {
        var scheduler = _scheduler_async__WEBPACK_IMPORTED_MODULE_1__["async"];
        var windowCreationInterval = null;
        var maxWindowSize = Number.POSITIVE_INFINITY;

        if (Object(_util_isScheduler__WEBPACK_IMPORTED_MODULE_4__["isScheduler"])(arguments[3])) {
          scheduler = arguments[3];
        }

        if (Object(_util_isScheduler__WEBPACK_IMPORTED_MODULE_4__["isScheduler"])(arguments[2])) {
          scheduler = arguments[2];
        } else if (Object(_util_isNumeric__WEBPACK_IMPORTED_MODULE_3__["isNumeric"])(arguments[2])) {
          maxWindowSize = Number(arguments[2]);
        }

        if (Object(_util_isScheduler__WEBPACK_IMPORTED_MODULE_4__["isScheduler"])(arguments[1])) {
          scheduler = arguments[1];
        } else if (Object(_util_isNumeric__WEBPACK_IMPORTED_MODULE_3__["isNumeric"])(arguments[1])) {
          windowCreationInterval = Number(arguments[1]);
        }

        return function windowTimeOperatorFunction(source) {
          return source.lift(new WindowTimeOperator(windowTimeSpan, windowCreationInterval, maxWindowSize, scheduler));
        };
      }

      var WindowTimeOperator = /*#__PURE__*/function () {
        function WindowTimeOperator(windowTimeSpan, windowCreationInterval, maxWindowSize, scheduler) {
          _classCallCheck2(this, WindowTimeOperator);

          this.windowTimeSpan = windowTimeSpan;
          this.windowCreationInterval = windowCreationInterval;
          this.maxWindowSize = maxWindowSize;
          this.scheduler = scheduler;
        }

        _createClass2(WindowTimeOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            return source.subscribe(new WindowTimeSubscriber(subscriber, this.windowTimeSpan, this.windowCreationInterval, this.maxWindowSize, this.scheduler));
          }
        }]);

        return WindowTimeOperator;
      }();

      var CountedSubject = /*#__PURE__*/function (_Subject__WEBPACK_IMP4) {
        _inherits2(CountedSubject, _Subject__WEBPACK_IMP4);

        var _super306 = _createSuper2(CountedSubject);

        function CountedSubject() {
          var _this628;

          _classCallCheck2(this, CountedSubject);

          _this628 = _super306.apply(this, arguments);
          _this628._numberOfNextedValues = 0;
          return _this628;
        }

        _createClass2(CountedSubject, [{
          key: "next",
          value: function next(value) {
            this._numberOfNextedValues++;

            _get2(_getPrototypeOf2(CountedSubject.prototype), "next", this).call(this, value);
          }
        }, {
          key: "numberOfNextedValues",
          get: function get() {
            return this._numberOfNextedValues;
          }
        }]);

        return CountedSubject;
      }(_Subject__WEBPACK_IMPORTED_MODULE_0__["Subject"]);

      var WindowTimeSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_23) {
        _inherits2(WindowTimeSubscriber, _Subscriber__WEBPACK_23);

        var _super307 = _createSuper2(WindowTimeSubscriber);

        function WindowTimeSubscriber(destination, windowTimeSpan, windowCreationInterval, maxWindowSize, scheduler) {
          var _this629;

          _classCallCheck2(this, WindowTimeSubscriber);

          _this629 = _super307.call(this, destination);
          _this629.destination = destination;
          _this629.windowTimeSpan = windowTimeSpan;
          _this629.windowCreationInterval = windowCreationInterval;
          _this629.maxWindowSize = maxWindowSize;
          _this629.scheduler = scheduler;
          _this629.windows = [];

          var window = _this629.openWindow();

          if (windowCreationInterval !== null && windowCreationInterval >= 0) {
            var closeState = {
              subscriber: _assertThisInitialized2(_this629),
              window: window,
              context: null
            };
            var creationState = {
              windowTimeSpan: windowTimeSpan,
              windowCreationInterval: windowCreationInterval,
              subscriber: _assertThisInitialized2(_this629),
              scheduler: scheduler
            };

            _this629.add(scheduler.schedule(dispatchWindowClose, windowTimeSpan, closeState));

            _this629.add(scheduler.schedule(dispatchWindowCreation, windowCreationInterval, creationState));
          } else {
            var timeSpanOnlyState = {
              subscriber: _assertThisInitialized2(_this629),
              window: window,
              windowTimeSpan: windowTimeSpan
            };

            _this629.add(scheduler.schedule(dispatchWindowTimeSpanOnly, windowTimeSpan, timeSpanOnlyState));
          }

          return _this629;
        }

        _createClass2(WindowTimeSubscriber, [{
          key: "_next",
          value: function _next(value) {
            var windows = this.windows;
            var len = windows.length;

            for (var i = 0; i < len; i++) {
              var _window3 = windows[i];

              if (!_window3.closed) {
                _window3.next(value);

                if (_window3.numberOfNextedValues >= this.maxWindowSize) {
                  this.closeWindow(_window3);
                }
              }
            }
          }
        }, {
          key: "_error",
          value: function _error(err) {
            var windows = this.windows;

            while (windows.length > 0) {
              windows.shift().error(err);
            }

            this.destination.error(err);
          }
        }, {
          key: "_complete",
          value: function _complete() {
            var windows = this.windows;

            while (windows.length > 0) {
              var _window4 = windows.shift();

              if (!_window4.closed) {
                _window4.complete();
              }
            }

            this.destination.complete();
          }
        }, {
          key: "openWindow",
          value: function openWindow() {
            var window = new CountedSubject();
            this.windows.push(window);
            var destination = this.destination;
            destination.next(window);
            return window;
          }
        }, {
          key: "closeWindow",
          value: function closeWindow(window) {
            window.complete();
            var windows = this.windows;
            windows.splice(windows.indexOf(window), 1);
          }
        }]);

        return WindowTimeSubscriber;
      }(_Subscriber__WEBPACK_IMPORTED_MODULE_2__["Subscriber"]);

      function dispatchWindowTimeSpanOnly(state) {
        var subscriber = state.subscriber,
            windowTimeSpan = state.windowTimeSpan,
            window = state.window;

        if (window) {
          subscriber.closeWindow(window);
        }

        state.window = subscriber.openWindow();
        this.schedule(state, windowTimeSpan);
      }

      function dispatchWindowCreation(state) {
        var windowTimeSpan = state.windowTimeSpan,
            subscriber = state.subscriber,
            scheduler = state.scheduler,
            windowCreationInterval = state.windowCreationInterval;
        var window = subscriber.openWindow();
        var action = this;
        var context = {
          action: action,
          subscription: null
        };
        var timeSpanState = {
          subscriber: subscriber,
          window: window,
          context: context
        };
        context.subscription = scheduler.schedule(dispatchWindowClose, windowTimeSpan, timeSpanState);
        action.add(context.subscription);
        action.schedule(state, windowCreationInterval);
      }

      function dispatchWindowClose(state) {
        var subscriber = state.subscriber,
            window = state.window,
            context = state.context;

        if (context && context.action && context.subscription) {
          context.action.remove(context.subscription);
        }

        subscriber.closeWindow(window);
      } //# sourceMappingURL=windowTime.js.map

      /***/

    },

    /***/
    "USCx": function USCx(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Irish or Irish Gaelic [ga]
      //! author : André Silva : https://github.com/askpt
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var months = ['Eanáir', 'Feabhra', 'Márta', 'Aibreán', 'Bealtaine', 'Meitheamh', 'Iúil', 'Lúnasa', 'Meán Fómhair', 'Deireadh Fómhair', 'Samhain', 'Nollaig'],
            monthsShort = ['Ean', 'Feabh', 'Márt', 'Aib', 'Beal', 'Meith', 'Iúil', 'Lún', 'M.F.', 'D.F.', 'Samh', 'Noll'],
            weekdays = ['Dé Domhnaigh', 'Dé Luain', 'Dé Máirt', 'Dé Céadaoin', 'Déardaoin', 'Dé hAoine', 'Dé Sathairn'],
            weekdaysShort = ['Domh', 'Luan', 'Máirt', 'Céad', 'Déar', 'Aoine', 'Sath'],
            weekdaysMin = ['Do', 'Lu', 'Má', 'Cé', 'Dé', 'A', 'Sa'];
        var ga = moment.defineLocale('ga', {
          months: months,
          monthsShort: monthsShort,
          monthsParseExact: true,
          weekdays: weekdays,
          weekdaysShort: weekdaysShort,
          weekdaysMin: weekdaysMin,
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd, D MMMM YYYY HH:mm'
          },
          calendar: {
            sameDay: '[Inniu ag] LT',
            nextDay: '[Amárach ag] LT',
            nextWeek: 'dddd [ag] LT',
            lastDay: '[Inné ag] LT',
            lastWeek: 'dddd [seo caite] [ag] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'i %s',
            past: '%s ó shin',
            s: 'cúpla soicind',
            ss: '%d soicind',
            m: 'nóiméad',
            mm: '%d nóiméad',
            h: 'uair an chloig',
            hh: '%d uair an chloig',
            d: 'lá',
            dd: '%d lá',
            M: 'mí',
            MM: '%d míonna',
            y: 'bliain',
            yy: '%d bliain'
          },
          dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/,
          ordinal: function ordinal(number) {
            var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
            return number + output;
          },
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return ga;
      });
      /***/

    },

    /***/
    "UXbc": function UXbc(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "mergeMapTo", function () {
        return mergeMapTo;
      });
      /* harmony import */


      var _mergeMap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ./mergeMap */
      "5+tZ");

      function mergeMapTo(innerObservable, resultSelector) {
        var concurrent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : Number.POSITIVE_INFINITY;

        if (typeof resultSelector === 'function') {
          return Object(_mergeMap__WEBPACK_IMPORTED_MODULE_0__["mergeMap"])(function () {
            return innerObservable;
          }, resultSelector, concurrent);
        }

        if (typeof resultSelector === 'number') {
          concurrent = resultSelector;
        }

        return Object(_mergeMap__WEBPACK_IMPORTED_MODULE_0__["mergeMap"])(function () {
          return innerObservable;
        }, concurrent);
      } //# sourceMappingURL=mergeMapTo.js.map

      /***/

    },

    /***/
    "UXun": function UXun(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "shareReplay", function () {
        return shareReplay;
      });
      /* harmony import */


      var _ReplaySubject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../ReplaySubject */
      "jtHE");

      function shareReplay(configOrBufferSize, windowTime, scheduler) {
        var config;

        if (configOrBufferSize && typeof configOrBufferSize === 'object') {
          config = configOrBufferSize;
        } else {
          config = {
            bufferSize: configOrBufferSize,
            windowTime: windowTime,
            refCount: false,
            scheduler: scheduler
          };
        }

        return function (source) {
          return source.lift(shareReplayOperator(config));
        };
      }

      function shareReplayOperator(_ref79) {
        var _ref79$bufferSize = _ref79.bufferSize,
            bufferSize = _ref79$bufferSize === void 0 ? Number.POSITIVE_INFINITY : _ref79$bufferSize,
            _ref79$windowTime = _ref79.windowTime,
            windowTime = _ref79$windowTime === void 0 ? Number.POSITIVE_INFINITY : _ref79$windowTime,
            useRefCount = _ref79.refCount,
            scheduler = _ref79.scheduler;
        var subject;
        var refCount = 0;
        var subscription;
        var hasError = false;
        var isComplete = false;
        return function shareReplayOperation(source) {
          refCount++;
          var innerSub;

          if (!subject || hasError) {
            hasError = false;
            subject = new _ReplaySubject__WEBPACK_IMPORTED_MODULE_0__["ReplaySubject"](bufferSize, windowTime, scheduler);
            innerSub = subject.subscribe(this);
            subscription = source.subscribe({
              next: function next(value) {
                subject.next(value);
              },
              error: function error(err) {
                hasError = true;
                subject.error(err);
              },
              complete: function complete() {
                isComplete = true;
                subscription = undefined;
                subject.complete();
              }
            });
          } else {
            innerSub = subject.subscribe(this);
          }

          this.add(function () {
            refCount--;
            innerSub.unsubscribe();

            if (subscription && !isComplete && useRefCount && refCount === 0) {
              subscription.unsubscribe();
              subscription = undefined;
              subject = undefined;
            }
          });
        };
      } //# sourceMappingURL=shareReplay.js.map

      /***/

    },

    /***/
    "UhP/": function UhP(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "AnimationCurves", function () {
        return AnimationCurves;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "AnimationDurations", function () {
        return AnimationDurations;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "DateAdapter", function () {
        return DateAdapter;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ErrorStateMatcher", function () {
        return ErrorStateMatcher;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MATERIAL_SANITY_CHECKS", function () {
        return MATERIAL_SANITY_CHECKS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MAT_DATE_FORMATS", function () {
        return MAT_DATE_FORMATS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MAT_DATE_LOCALE", function () {
        return MAT_DATE_LOCALE;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MAT_DATE_LOCALE_FACTORY", function () {
        return MAT_DATE_LOCALE_FACTORY;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MAT_NATIVE_DATE_FORMATS", function () {
        return MAT_NATIVE_DATE_FORMATS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MAT_OPTGROUP", function () {
        return MAT_OPTGROUP;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MAT_OPTION_PARENT_COMPONENT", function () {
        return MAT_OPTION_PARENT_COMPONENT;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MAT_RIPPLE_GLOBAL_OPTIONS", function () {
        return MAT_RIPPLE_GLOBAL_OPTIONS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatCommonModule", function () {
        return MatCommonModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatLine", function () {
        return MatLine;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatLineModule", function () {
        return MatLineModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatNativeDateModule", function () {
        return MatNativeDateModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatOptgroup", function () {
        return MatOptgroup;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatOption", function () {
        return MatOption;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatOptionModule", function () {
        return MatOptionModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatOptionSelectionChange", function () {
        return MatOptionSelectionChange;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatPseudoCheckbox", function () {
        return MatPseudoCheckbox;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatPseudoCheckboxModule", function () {
        return MatPseudoCheckboxModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatRipple", function () {
        return MatRipple;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatRippleModule", function () {
        return MatRippleModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NativeDateAdapter", function () {
        return NativeDateAdapter;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NativeDateModule", function () {
        return NativeDateModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "RippleRef", function () {
        return RippleRef;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "RippleRenderer", function () {
        return RippleRenderer;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ShowOnDirtyErrorStateMatcher", function () {
        return ShowOnDirtyErrorStateMatcher;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "VERSION", function () {
        return VERSION;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "_MatOptgroupBase", function () {
        return _MatOptgroupBase;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "_MatOptionBase", function () {
        return _MatOptionBase;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "_countGroupLabelsBeforeOption", function () {
        return _countGroupLabelsBeforeOption;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "_getOptionScrollPosition", function () {
        return _getOptionScrollPosition;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "defaultRippleAnimationConfig", function () {
        return defaultRippleAnimationConfig;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "mixinColor", function () {
        return mixinColor;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "mixinDisableRipple", function () {
        return mixinDisableRipple;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "mixinDisabled", function () {
        return mixinDisabled;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "mixinErrorState", function () {
        return mixinErrorState;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "mixinInitialized", function () {
        return mixinInitialized;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "mixinTabIndex", function () {
        return mixinTabIndex;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "setLines", function () {
        return setLines;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵ0", function () {
        return ɵ0$1;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_material_src_material_core_core_a", function () {
        return MATERIAL_SANITY_CHECKS_FACTORY;
      });
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /* harmony import */


      var _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/cdk/a11y */
      "YEUz");
      /* harmony import */


      var _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! @angular/cdk/bidi */
      "9gLZ");
      /* harmony import */


      var _angular_cdk__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! @angular/cdk */
      "xz+E");
      /* harmony import */


      var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! @angular/common */
      "SVse");
      /* harmony import */


      var _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! @angular/cdk/coercion */
      "8LU1");
      /* harmony import */


      var rxjs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
      /*! rxjs */
      "qCKp");
      /* harmony import */


      var _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
      /*! @angular/cdk/platform */
      "SCoL");
      /* harmony import */


      var rxjs_operators__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
      /*! rxjs/operators */
      "kU1M");
      /* harmony import */


      var _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
      /*! @angular/platform-browser/animations */
      "omvX");
      /* harmony import */


      var _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(
      /*! @angular/cdk/keycodes */
      "Ht+U");
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** Current version of Angular Material. */


      var _c0 = ["*", [["mat-option"], ["ng-container"]]];
      var _c1 = ["*", "mat-option, ng-container"];

      function MatOption_mat_pseudo_checkbox_0_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "mat-pseudo-checkbox", 3);
        }

        if (rf & 2) {
          var ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();

          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("state", ctx_r0.selected ? "checked" : "unchecked")("disabled", ctx_r0.disabled);
        }
      }

      var _c2 = ["*"];
      var VERSION = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["Version"]('11.0.0');
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** @docs-private */

      var AnimationCurves = function AnimationCurves() {
        _classCallCheck2(this, AnimationCurves);
      };

      AnimationCurves.STANDARD_CURVE = 'cubic-bezier(0.4,0.0,0.2,1)';
      AnimationCurves.DECELERATION_CURVE = 'cubic-bezier(0.0,0.0,0.2,1)';
      AnimationCurves.ACCELERATION_CURVE = 'cubic-bezier(0.4,0.0,1,1)';
      AnimationCurves.SHARP_CURVE = 'cubic-bezier(0.4,0.0,0.6,1)';
      /** @docs-private */

      var AnimationDurations = function AnimationDurations() {
        _classCallCheck2(this, AnimationDurations);
      };

      AnimationDurations.COMPLEX = '375ms';
      AnimationDurations.ENTERING = '225ms';
      AnimationDurations.EXITING = '195ms';
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */
      // Private version constant to circumvent test/build issues,
      // i.e. avoid core to depend on the @angular/material primary entry-point
      // Can be removed once the Material primary entry-point no longer
      // re-exports all secondary entry-points

      var VERSION$1 = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["Version"]('11.0.0');
      /** @docs-private */

      function MATERIAL_SANITY_CHECKS_FACTORY() {
        return true;
      }
      /** Injection token that configures whether the Material sanity checks are enabled. */


      var MATERIAL_SANITY_CHECKS = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('mat-sanity-checks', {
        providedIn: 'root',
        factory: MATERIAL_SANITY_CHECKS_FACTORY
      });
      /**
       * Module that captures anything that should be loaded and/or run for *all* Angular Material
       * components. This includes Bidi, etc.
       *
       * This module should be imported to each top-level component module (e.g., MatTabsModule).
       */

      var MatCommonModule = /*#__PURE__*/function () {
        function MatCommonModule(highContrastModeDetector, sanityChecks, document) {
          _classCallCheck2(this, MatCommonModule);

          /** Whether we've done the global sanity checks (e.g. a theme is loaded, there is a doctype). */
          this._hasDoneGlobalChecks = false;
          this._document = document; // While A11yModule also does this, we repeat it here to avoid importing A11yModule
          // in MatCommonModule.

          highContrastModeDetector._applyBodyHighContrastModeCssClasses(); // Note that `_sanityChecks` is typed to `any`, because AoT
          // throws an error if we use the `SanityChecks` type directly.


          this._sanityChecks = sanityChecks;

          if (!this._hasDoneGlobalChecks) {
            this._checkDoctypeIsDefined();

            this._checkThemeIsPresent();

            this._checkCdkVersionMatch();

            this._hasDoneGlobalChecks = true;
          }
        }
        /** Use defaultView of injected document if available or fallback to global window reference */


        _createClass2(MatCommonModule, [{
          key: "_getWindow",
          value: function _getWindow() {
            var win = this._document.defaultView || window;
            return typeof win === 'object' && win ? win : null;
          }
          /** Whether any sanity checks are enabled. */

        }, {
          key: "_checksAreEnabled",
          value: function _checksAreEnabled() {
            // TODO(crisbeto): we can't use `ngDevMode` here yet, because ViewEngine apps might not support
            // it. Since these checks can have performance implications and they aren't tree shakeable
            // in their current form, we can leave the `isDevMode` check in for now.
            // tslint:disable-next-line:ban
            return Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["isDevMode"])() && !this._isTestEnv();
          }
          /** Whether the code is running in tests. */

        }, {
          key: "_isTestEnv",
          value: function _isTestEnv() {
            var window = this._getWindow();

            return window && (window.__karma__ || window.jasmine);
          }
        }, {
          key: "_checkDoctypeIsDefined",
          value: function _checkDoctypeIsDefined() {
            var isEnabled = this._checksAreEnabled() && (this._sanityChecks === true || this._sanityChecks.doctype);

            if (isEnabled && !this._document.doctype) {
              console.warn('Current document does not have a doctype. This may cause ' + 'some Angular Material components not to behave as expected.');
            }
          }
        }, {
          key: "_checkThemeIsPresent",
          value: function _checkThemeIsPresent() {
            // We need to assert that the `body` is defined, because these checks run very early
            // and the `body` won't be defined if the consumer put their scripts in the `head`.
            var isDisabled = !this._checksAreEnabled() || this._sanityChecks === false || !this._sanityChecks.theme;

            if (isDisabled || !this._document.body || typeof getComputedStyle !== 'function') {
              return;
            }

            var testElement = this._document.createElement('div');

            testElement.classList.add('mat-theme-loaded-marker');

            this._document.body.appendChild(testElement);

            var computedStyle = getComputedStyle(testElement); // In some situations the computed style of the test element can be null. For example in
            // Firefox, the computed style is null if an application is running inside of a hidden iframe.
            // See: https://bugzilla.mozilla.org/show_bug.cgi?id=548397

            if (computedStyle && computedStyle.display !== 'none') {
              console.warn('Could not find Angular Material core theme. Most Material ' + 'components may not work as expected. For more info refer ' + 'to the theming guide: https://material.angular.io/guide/theming');
            }

            this._document.body.removeChild(testElement);
          }
          /** Checks whether the material version matches the cdk version */

        }, {
          key: "_checkCdkVersionMatch",
          value: function _checkCdkVersionMatch() {
            var isEnabled = this._checksAreEnabled() && (this._sanityChecks === true || this._sanityChecks.version);

            if (isEnabled && VERSION$1.full !== _angular_cdk__WEBPACK_IMPORTED_MODULE_3__["VERSION"].full) {
              console.warn('The Angular Material version (' + VERSION$1.full + ') does not match ' + 'the Angular CDK version (' + _angular_cdk__WEBPACK_IMPORTED_MODULE_3__["VERSION"].full + ').\n' + 'Please ensure the versions of these two packages exactly match.');
            }
          }
        }]);

        return MatCommonModule;
      }();

      MatCommonModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
        type: MatCommonModule
      });
      MatCommonModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
        factory: function MatCommonModule_Factory(t) {
          return new (t || MatCommonModule)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_1__["HighContrastModeDetector"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](MATERIAL_SANITY_CHECKS, 8), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"]));
        },
        imports: [[_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_2__["BidiModule"]], _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_2__["BidiModule"]]
      });

      MatCommonModule.ctorParameters = function () {
        return [{
          type: _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_1__["HighContrastModeDetector"]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [MATERIAL_SANITY_CHECKS]
          }]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [_angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"]]
          }]
        }];
      };

      (function () {
        (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](MatCommonModule, {
          imports: function imports() {
            return [_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_2__["BidiModule"]];
          },
          exports: function exports() {
            return [_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_2__["BidiModule"]];
          }
        });
      })();
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatCommonModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
          args: [{
            imports: [_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_2__["BidiModule"]],
            exports: [_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_2__["BidiModule"]]
          }]
        }], function () {
          return [{
            type: _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_1__["HighContrastModeDetector"]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [MATERIAL_SANITY_CHECKS]
            }]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [_angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"]]
            }]
          }];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** Mixin to augment a directive with a `disabled` property. */


      function mixinDisabled(base) {
        return /*#__PURE__*/function (_base3) {
          _inherits2(_class3, _base3);

          var _super308 = _createSuper2(_class3);

          function _class3() {
            var _this630;

            _classCallCheck2(this, _class3);

            for (var _len53 = arguments.length, args = new Array(_len53), _key55 = 0; _key55 < _len53; _key55++) {
              args[_key55] = arguments[_key55];
            }

            _this630 = _super308.call.apply(_super308, [this].concat(args));
            _this630._disabled = false;
            return _this630;
          }

          _createClass2(_class3, [{
            key: "disabled",
            get: function get() {
              return this._disabled;
            },
            set: function set(value) {
              this._disabled = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_5__["coerceBooleanProperty"])(value);
            }
          }]);

          return _class3;
        }(base);
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** Mixin to augment a directive with a `color` property. */


      function mixinColor(base, defaultColor) {
        return /*#__PURE__*/function (_base4) {
          _inherits2(_class4, _base4);

          var _super309 = _createSuper2(_class4);

          function _class4() {
            var _this631;

            _classCallCheck2(this, _class4);

            for (var _len54 = arguments.length, args = new Array(_len54), _key56 = 0; _key56 < _len54; _key56++) {
              args[_key56] = arguments[_key56];
            }

            _this631 = _super309.call.apply(_super309, [this].concat(args));
            _this631.defaultColor = defaultColor; // Set the default color that can be specified from the mixin.

            _this631.color = defaultColor;
            return _this631;
          }

          _createClass2(_class4, [{
            key: "color",
            get: function get() {
              return this._color;
            },
            set: function set(value) {
              var colorPalette = value || this.defaultColor;

              if (colorPalette !== this._color) {
                if (this._color) {
                  this._elementRef.nativeElement.classList.remove("mat-".concat(this._color));
                }

                if (colorPalette) {
                  this._elementRef.nativeElement.classList.add("mat-".concat(colorPalette));
                }

                this._color = colorPalette;
              }
            }
          }]);

          return _class4;
        }(base);
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** Mixin to augment a directive with a `disableRipple` property. */


      function mixinDisableRipple(base) {
        var Mixin = /*#__PURE__*/function (_base5) {
          _inherits2(Mixin, _base5);

          var _super310 = _createSuper2(Mixin);

          function Mixin() {
            var _this632;

            _classCallCheck2(this, Mixin);

            for (var _len55 = arguments.length, args = new Array(_len55), _key57 = 0; _key57 < _len55; _key57++) {
              args[_key57] = arguments[_key57];
            }

            _this632 = _super310.call.apply(_super310, [this].concat(args));
            _this632._disableRipple = false;
            return _this632;
          }
          /** Whether the ripple effect is disabled or not. */


          _createClass2(Mixin, [{
            key: "disableRipple",
            get: function get() {
              return this._disableRipple;
            },
            set: function set(value) {
              this._disableRipple = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_5__["coerceBooleanProperty"])(value);
            }
          }]);

          return Mixin;
        }(base); // Since we don't directly extend from `base` with it's original types, and we instruct
        // TypeScript that `T` actually is instantiatable through `new`, the types don't overlap.
        // This is a limitation in TS as abstract classes cannot be typed properly dynamically.


        return Mixin;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** Mixin to augment a directive with a `tabIndex` property. */


      function mixinTabIndex(base) {
        var defaultTabIndex = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;

        // Note: We cast `base` to `unknown` and then `Constructor`. It could be an abstract class,
        // but given we `extend` it from another class, we can assume a constructor being accessible.
        var Mixin = /*#__PURE__*/function (_base6) {
          _inherits2(Mixin, _base6);

          var _super311 = _createSuper2(Mixin);

          function Mixin() {
            var _this633;

            _classCallCheck2(this, Mixin);

            for (var _len56 = arguments.length, args = new Array(_len56), _key58 = 0; _key58 < _len56; _key58++) {
              args[_key58] = arguments[_key58];
            }

            _this633 = _super311.call.apply(_super311, [this].concat(args));
            _this633._tabIndex = defaultTabIndex;
            _this633.defaultTabIndex = defaultTabIndex;
            return _this633;
          }

          _createClass2(Mixin, [{
            key: "tabIndex",
            get: function get() {
              return this.disabled ? -1 : this._tabIndex;
            },
            set: function set(value) {
              // If the specified tabIndex value is null or undefined, fall back to the default value.
              this._tabIndex = value != null ? Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_5__["coerceNumberProperty"])(value) : this.defaultTabIndex;
            }
          }]);

          return Mixin;
        }(base); // Since we don't directly extend from `base` with it's original types, and we instruct
        // TypeScript that `T` actually is instantiatable through `new`, the types don't overlap.
        // This is a limitation in TS as abstract classes cannot be typed properly dynamically.


        return Mixin;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Mixin to augment a directive with updateErrorState method.
       * For component with `errorState` and need to update `errorState`.
       */


      function mixinErrorState(base) {
        return /*#__PURE__*/function (_base7) {
          _inherits2(_class5, _base7);

          var _super312 = _createSuper2(_class5);

          function _class5() {
            var _this634;

            _classCallCheck2(this, _class5);

            for (var _len57 = arguments.length, args = new Array(_len57), _key59 = 0; _key59 < _len57; _key59++) {
              args[_key59] = arguments[_key59];
            }

            _this634 = _super312.call.apply(_super312, [this].concat(args));
            /** Whether the component is in an error state. */

            _this634.errorState = false;
            /**
             * Stream that emits whenever the state of the input changes such that the wrapping
             * `MatFormField` needs to run change detection.
             */

            _this634.stateChanges = new rxjs__WEBPACK_IMPORTED_MODULE_6__["Subject"]();
            return _this634;
          }

          _createClass2(_class5, [{
            key: "updateErrorState",
            value: function updateErrorState() {
              var oldState = this.errorState;
              var parent = this._parentFormGroup || this._parentForm;
              var matcher = this.errorStateMatcher || this._defaultErrorStateMatcher;
              var control = this.ngControl ? this.ngControl.control : null;
              var newState = matcher.isErrorState(control, parent);

              if (newState !== oldState) {
                this.errorState = newState;
                this.stateChanges.next();
              }
            }
          }]);

          return _class5;
        }(base);
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** Mixin to augment a directive with an initialized property that will emits when ngOnInit ends. */


      function mixinInitialized(base) {
        return /*#__PURE__*/function (_base8) {
          _inherits2(_class6, _base8);

          var _super313 = _createSuper2(_class6);

          function _class6() {
            var _this635;

            _classCallCheck2(this, _class6);

            for (var _len58 = arguments.length, args = new Array(_len58), _key60 = 0; _key60 < _len58; _key60++) {
              args[_key60] = arguments[_key60];
            }

            _this635 = _super313.call.apply(_super313, [this].concat(args));
            /** Whether this directive has been marked as initialized. */

            _this635._isInitialized = false;
            /**
             * List of subscribers that subscribed before the directive was initialized. Should be notified
             * during _markInitialized. Set to null after pending subscribers are notified, and should
             * not expect to be populated after.
             */

            _this635._pendingSubscribers = [];
            /**
             * Observable stream that emits when the directive initializes. If already initialized, the
             * subscriber is stored to be notified once _markInitialized is called.
             */

            _this635.initialized = new rxjs__WEBPACK_IMPORTED_MODULE_6__["Observable"](function (subscriber) {
              // If initialized, immediately notify the subscriber. Otherwise store the subscriber to notify
              // when _markInitialized is called.
              if (_this635._isInitialized) {
                _this635._notifySubscriber(subscriber);
              } else {
                _this635._pendingSubscribers.push(subscriber);
              }
            });
            return _this635;
          }
          /**
           * Marks the state as initialized and notifies pending subscribers. Should be called at the end
           * of ngOnInit.
           * @docs-private
           */


          _createClass2(_class6, [{
            key: "_markInitialized",
            value: function _markInitialized() {
              if (this._isInitialized && (typeof ngDevMode === 'undefined' || ngDevMode)) {
                throw Error('This directive has already been marked as initialized and ' + 'should not be called twice.');
              }

              this._isInitialized = true;

              this._pendingSubscribers.forEach(this._notifySubscriber);

              this._pendingSubscribers = null;
            }
            /** Emits and completes the subscriber stream (should only emit once). */

          }, {
            key: "_notifySubscriber",
            value: function _notifySubscriber(subscriber) {
              subscriber.next();
              subscriber.complete();
            }
          }]);

          return _class6;
        }(base);
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** InjectionToken for datepicker that can be used to override default locale code. */


      var MAT_DATE_LOCALE = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('MAT_DATE_LOCALE', {
        providedIn: 'root',
        factory: MAT_DATE_LOCALE_FACTORY
      });
      /** @docs-private */

      function MAT_DATE_LOCALE_FACTORY() {
        return Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["inject"])(_angular_core__WEBPACK_IMPORTED_MODULE_0__["LOCALE_ID"]);
      }
      /** Adapts type `D` to be usable as a date by cdk-based components that work with dates. */


      var DateAdapter = /*#__PURE__*/function () {
        function DateAdapter() {
          _classCallCheck2(this, DateAdapter);

          this._localeChanges = new rxjs__WEBPACK_IMPORTED_MODULE_6__["Subject"]();
          /** A stream that emits when the locale changes. */

          this.localeChanges = this._localeChanges;
        }
        /**
         * Given a potential date object, returns that same date object if it is
         * a valid date, or `null` if it's not a valid date.
         * @param obj The object to check.
         * @returns A date or `null`.
         */


        _createClass2(DateAdapter, [{
          key: "getValidDateOrNull",
          value: function getValidDateOrNull(obj) {
            return this.isDateInstance(obj) && this.isValid(obj) ? obj : null;
          }
          /**
           * Attempts to deserialize a value to a valid date object. This is different from parsing in that
           * deserialize should only accept non-ambiguous, locale-independent formats (e.g. a ISO 8601
           * string). The default implementation does not allow any deserialization, it simply checks that
           * the given value is already a valid date object or null. The `<mat-datepicker>` will call this
           * method on all of its `@Input()` properties that accept dates. It is therefore possible to
           * support passing values from your backend directly to these properties by overriding this method
           * to also deserialize the format used by your backend.
           * @param value The value to be deserialized into a date object.
           * @returns The deserialized date object, either a valid date, null if the value can be
           *     deserialized into a null date (e.g. the empty string), or an invalid date.
           */

        }, {
          key: "deserialize",
          value: function deserialize(value) {
            if (value == null || this.isDateInstance(value) && this.isValid(value)) {
              return value;
            }

            return this.invalid();
          }
          /**
           * Sets the locale used for all dates.
           * @param locale The new locale.
           */

        }, {
          key: "setLocale",
          value: function setLocale(locale) {
            this.locale = locale;

            this._localeChanges.next();
          }
          /**
           * Compares two dates.
           * @param first The first date to compare.
           * @param second The second date to compare.
           * @returns 0 if the dates are equal, a number less than 0 if the first date is earlier,
           *     a number greater than 0 if the first date is later.
           */

        }, {
          key: "compareDate",
          value: function compareDate(first, second) {
            return this.getYear(first) - this.getYear(second) || this.getMonth(first) - this.getMonth(second) || this.getDate(first) - this.getDate(second);
          }
          /**
           * Checks if two dates are equal.
           * @param first The first date to check.
           * @param second The second date to check.
           * @returns Whether the two dates are equal.
           *     Null dates are considered equal to other null dates.
           */

        }, {
          key: "sameDate",
          value: function sameDate(first, second) {
            if (first && second) {
              var firstValid = this.isValid(first);
              var secondValid = this.isValid(second);

              if (firstValid && secondValid) {
                return !this.compareDate(first, second);
              }

              return firstValid == secondValid;
            }

            return first == second;
          }
          /**
           * Clamp the given date between min and max dates.
           * @param date The date to clamp.
           * @param min The minimum value to allow. If null or omitted no min is enforced.
           * @param max The maximum value to allow. If null or omitted no max is enforced.
           * @returns `min` if `date` is less than `min`, `max` if date is greater than `max`,
           *     otherwise `date`.
           */

        }, {
          key: "clampDate",
          value: function clampDate(date, min, max) {
            if (min && this.compareDate(date, min) < 0) {
              return min;
            }

            if (max && this.compareDate(date, max) > 0) {
              return max;
            }

            return date;
          }
        }]);

        return DateAdapter;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var MAT_DATE_FORMATS = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('mat-date-formats');
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */
      // TODO(mmalerba): Remove when we no longer support safari 9.

      /** Whether the browser supports the Intl API. */

      var SUPPORTS_INTL_API; // We need a try/catch around the reference to `Intl`, because accessing it in some cases can
      // cause IE to throw. These cases are tied to particular versions of Windows and can happen if
      // the consumer is providing a polyfilled `Map`. See:
      // https://github.com/Microsoft/ChakraCore/issues/3189
      // https://github.com/angular/components/issues/15687

      try {
        SUPPORTS_INTL_API = typeof Intl != 'undefined';
      } catch (_a) {
        SUPPORTS_INTL_API = false;
      }
      /** The default month names to use if Intl API is not available. */


      var DEFAULT_MONTH_NAMES = {
        'long': ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
        'short': ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
        'narrow': ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D']
      };

      var ɵ0 = function ɵ0(i) {
        return String(i + 1);
      };
      /** The default date names to use if Intl API is not available. */


      var DEFAULT_DATE_NAMES = range(31, ɵ0);
      /** The default day of the week names to use if Intl API is not available. */

      var DEFAULT_DAY_OF_WEEK_NAMES = {
        'long': ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
        'short': ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
        'narrow': ['S', 'M', 'T', 'W', 'T', 'F', 'S']
      };
      /**
       * Matches strings that have the form of a valid RFC 3339 string
       * (https://tools.ietf.org/html/rfc3339). Note that the string may not actually be a valid date
       * because the regex will match strings an with out of bounds month, date, etc.
       */

      var ISO_8601_REGEX = /^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;
      /** Creates an array and fills it with values. */

      function range(length, valueFunction) {
        var valuesArray = Array(length);

        for (var i = 0; i < length; i++) {
          valuesArray[i] = valueFunction(i);
        }

        return valuesArray;
      }
      /** Adapts the native JS Date for use with cdk-based components that work with dates. */


      var NativeDateAdapter = /*#__PURE__*/function (_DateAdapter) {
        _inherits2(NativeDateAdapter, _DateAdapter);

        var _super314 = _createSuper2(NativeDateAdapter);

        function NativeDateAdapter(matDateLocale, platform) {
          var _thisSuper3, _this636;

          _classCallCheck2(this, NativeDateAdapter);

          _this636 = _super314.call(this);
          /**
           * Whether to use `timeZone: 'utc'` with `Intl.DateTimeFormat` when formatting dates.
           * Without this `Intl.DateTimeFormat` sometimes chooses the wrong timeZone, which can throw off
           * the result. (e.g. in the en-US locale `new Date(1800, 7, 14).toLocaleDateString()`
           * will produce `'8/13/1800'`.
           *
           * TODO(mmalerba): drop this variable. It's not being used in the code right now. We're now
           * getting the string representation of a Date object from its utc representation. We're keeping
           * it here for sometime, just for precaution, in case we decide to revert some of these changes
           * though.
           */

          _this636.useUtcForDisplay = true;

          _get2((_thisSuper3 = _assertThisInitialized2(_this636), _getPrototypeOf2(NativeDateAdapter.prototype)), "setLocale", _thisSuper3).call(_thisSuper3, matDateLocale); // IE does its own time zone correction, so we disable this on IE.


          _this636.useUtcForDisplay = !platform.TRIDENT;
          _this636._clampDate = platform.TRIDENT || platform.EDGE;
          return _this636;
        }

        _createClass2(NativeDateAdapter, [{
          key: "getYear",
          value: function getYear(date) {
            return date.getFullYear();
          }
        }, {
          key: "getMonth",
          value: function getMonth(date) {
            return date.getMonth();
          }
        }, {
          key: "getDate",
          value: function getDate(date) {
            return date.getDate();
          }
        }, {
          key: "getDayOfWeek",
          value: function getDayOfWeek(date) {
            return date.getDay();
          }
        }, {
          key: "getMonthNames",
          value: function getMonthNames(style) {
            var _this637 = this;

            if (SUPPORTS_INTL_API) {
              var dtf = new Intl.DateTimeFormat(this.locale, {
                month: style,
                timeZone: 'utc'
              });
              return range(12, function (i) {
                return _this637._stripDirectionalityCharacters(_this637._format(dtf, new Date(2017, i, 1)));
              });
            }

            return DEFAULT_MONTH_NAMES[style];
          }
        }, {
          key: "getDateNames",
          value: function getDateNames() {
            var _this638 = this;

            if (SUPPORTS_INTL_API) {
              var dtf = new Intl.DateTimeFormat(this.locale, {
                day: 'numeric',
                timeZone: 'utc'
              });
              return range(31, function (i) {
                return _this638._stripDirectionalityCharacters(_this638._format(dtf, new Date(2017, 0, i + 1)));
              });
            }

            return DEFAULT_DATE_NAMES;
          }
        }, {
          key: "getDayOfWeekNames",
          value: function getDayOfWeekNames(style) {
            var _this639 = this;

            if (SUPPORTS_INTL_API) {
              var dtf = new Intl.DateTimeFormat(this.locale, {
                weekday: style,
                timeZone: 'utc'
              });
              return range(7, function (i) {
                return _this639._stripDirectionalityCharacters(_this639._format(dtf, new Date(2017, 0, i + 1)));
              });
            }

            return DEFAULT_DAY_OF_WEEK_NAMES[style];
          }
        }, {
          key: "getYearName",
          value: function getYearName(date) {
            if (SUPPORTS_INTL_API) {
              var dtf = new Intl.DateTimeFormat(this.locale, {
                year: 'numeric',
                timeZone: 'utc'
              });
              return this._stripDirectionalityCharacters(this._format(dtf, date));
            }

            return String(this.getYear(date));
          }
        }, {
          key: "getFirstDayOfWeek",
          value: function getFirstDayOfWeek() {
            // We can't tell using native JS Date what the first day of the week is, we default to Sunday.
            return 0;
          }
        }, {
          key: "getNumDaysInMonth",
          value: function getNumDaysInMonth(date) {
            return this.getDate(this._createDateWithOverflow(this.getYear(date), this.getMonth(date) + 1, 0));
          }
        }, {
          key: "clone",
          value: function clone(date) {
            return new Date(date.getTime());
          }
        }, {
          key: "createDate",
          value: function createDate(year, month, date) {
            if (typeof ngDevMode === 'undefined' || ngDevMode) {
              // Check for invalid month and date (except upper bound on date which we have to check after
              // creating the Date).
              if (month < 0 || month > 11) {
                throw Error("Invalid month index \"".concat(month, "\". Month index has to be between 0 and 11."));
              }

              if (date < 1) {
                throw Error("Invalid date \"".concat(date, "\". Date has to be greater than 0."));
              }
            }

            var result = this._createDateWithOverflow(year, month, date); // Check that the date wasn't above the upper bound for the month, causing the month to overflow


            if (result.getMonth() != month && (typeof ngDevMode === 'undefined' || ngDevMode)) {
              throw Error("Invalid date \"".concat(date, "\" for month with index \"").concat(month, "\"."));
            }

            return result;
          }
        }, {
          key: "today",
          value: function today() {
            return new Date();
          }
        }, {
          key: "parse",
          value: function parse(value) {
            // We have no way using the native JS Date to set the parse format or locale, so we ignore these
            // parameters.
            if (typeof value == 'number') {
              return new Date(value);
            }

            return value ? new Date(Date.parse(value)) : null;
          }
        }, {
          key: "format",
          value: function format(date, displayFormat) {
            if (!this.isValid(date)) {
              throw Error('NativeDateAdapter: Cannot format invalid date.');
            }

            if (SUPPORTS_INTL_API) {
              // On IE and Edge the i18n API will throw a hard error that can crash the entire app
              // if we attempt to format a date whose year is less than 1 or greater than 9999.
              if (this._clampDate && (date.getFullYear() < 1 || date.getFullYear() > 9999)) {
                date = this.clone(date);
                date.setFullYear(Math.max(1, Math.min(9999, date.getFullYear())));
              }

              displayFormat = Object.assign(Object.assign({}, displayFormat), {
                timeZone: 'utc'
              });
              var dtf = new Intl.DateTimeFormat(this.locale, displayFormat);
              return this._stripDirectionalityCharacters(this._format(dtf, date));
            }

            return this._stripDirectionalityCharacters(date.toDateString());
          }
        }, {
          key: "addCalendarYears",
          value: function addCalendarYears(date, years) {
            return this.addCalendarMonths(date, years * 12);
          }
        }, {
          key: "addCalendarMonths",
          value: function addCalendarMonths(date, months) {
            var newDate = this._createDateWithOverflow(this.getYear(date), this.getMonth(date) + months, this.getDate(date)); // It's possible to wind up in the wrong month if the original month has more days than the new
            // month. In this case we want to go to the last day of the desired month.
            // Note: the additional + 12 % 12 ensures we end up with a positive number, since JS % doesn't
            // guarantee this.


            if (this.getMonth(newDate) != ((this.getMonth(date) + months) % 12 + 12) % 12) {
              newDate = this._createDateWithOverflow(this.getYear(newDate), this.getMonth(newDate), 0);
            }

            return newDate;
          }
        }, {
          key: "addCalendarDays",
          value: function addCalendarDays(date, days) {
            return this._createDateWithOverflow(this.getYear(date), this.getMonth(date), this.getDate(date) + days);
          }
        }, {
          key: "toIso8601",
          value: function toIso8601(date) {
            return [date.getUTCFullYear(), this._2digit(date.getUTCMonth() + 1), this._2digit(date.getUTCDate())].join('-');
          }
          /**
           * Returns the given value if given a valid Date or null. Deserializes valid ISO 8601 strings
           * (https://www.ietf.org/rfc/rfc3339.txt) into valid Dates and empty string into null. Returns an
           * invalid date for all other values.
           */

        }, {
          key: "deserialize",
          value: function deserialize(value) {
            if (typeof value === 'string') {
              if (!value) {
                return null;
              } // The `Date` constructor accepts formats other than ISO 8601, so we need to make sure the
              // string is the right format first.


              if (ISO_8601_REGEX.test(value)) {
                var date = new Date(value);

                if (this.isValid(date)) {
                  return date;
                }
              }
            }

            return _get2(_getPrototypeOf2(NativeDateAdapter.prototype), "deserialize", this).call(this, value);
          }
        }, {
          key: "isDateInstance",
          value: function isDateInstance(obj) {
            return obj instanceof Date;
          }
        }, {
          key: "isValid",
          value: function isValid(date) {
            return !isNaN(date.getTime());
          }
        }, {
          key: "invalid",
          value: function invalid() {
            return new Date(NaN);
          }
          /** Creates a date but allows the month and date to overflow. */

        }, {
          key: "_createDateWithOverflow",
          value: function _createDateWithOverflow(year, month, date) {
            // Passing the year to the constructor causes year numbers <100 to be converted to 19xx.
            // To work around this we use `setFullYear` and `setHours` instead.
            var d = new Date();
            d.setFullYear(year, month, date);
            d.setHours(0, 0, 0, 0);
            return d;
          }
          /**
           * Pads a number to make it two digits.
           * @param n The number to pad.
           * @returns The padded number.
           */

        }, {
          key: "_2digit",
          value: function _2digit(n) {
            return ('00' + n).slice(-2);
          }
          /**
           * Strip out unicode LTR and RTL characters. Edge and IE insert these into formatted dates while
           * other browsers do not. We remove them to make output consistent and because they interfere with
           * date parsing.
           * @param str The string to strip direction characters from.
           * @returns The stripped string.
           */

        }, {
          key: "_stripDirectionalityCharacters",
          value: function _stripDirectionalityCharacters(str) {
            return str.replace(/[\u200e\u200f]/g, '');
          }
          /**
           * When converting Date object to string, javascript built-in functions may return wrong
           * results because it applies its internal DST rules. The DST rules around the world change
           * very frequently, and the current valid rule is not always valid in previous years though.
           * We work around this problem building a new Date object which has its internal UTC
           * representation with the local date and time.
           * @param dtf Intl.DateTimeFormat object, containg the desired string format. It must have
           *    timeZone set to 'utc' to work fine.
           * @param date Date from which we want to get the string representation according to dtf
           * @returns A Date object with its UTC representation based on the passed in date info
           */

        }, {
          key: "_format",
          value: function _format(dtf, date) {
            // Passing the year to the constructor causes year numbers <100 to be converted to 19xx.
            // To work around this we use `setUTCFullYear` and `setUTCHours` instead.
            var d = new Date();
            d.setUTCFullYear(date.getFullYear(), date.getMonth(), date.getDate());
            d.setUTCHours(date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());
            return dtf.format(d);
          }
        }]);

        return NativeDateAdapter;
      }(DateAdapter);

      NativeDateAdapter.ɵfac = function NativeDateAdapter_Factory(t) {
        return new (t || NativeDateAdapter)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](MAT_DATE_LOCALE, 8), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_7__["Platform"]));
      };

      NativeDateAdapter.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
        token: NativeDateAdapter,
        factory: NativeDateAdapter.ɵfac
      });

      NativeDateAdapter.ctorParameters = function () {
        return [{
          type: String,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [MAT_DATE_LOCALE]
          }]
        }, {
          type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_7__["Platform"]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NativeDateAdapter, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
        }], function () {
          return [{
            type: String,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [MAT_DATE_LOCALE]
            }]
          }, {
            type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_7__["Platform"]
          }];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var MAT_NATIVE_DATE_FORMATS = {
        parse: {
          dateInput: null
        },
        display: {
          dateInput: {
            year: 'numeric',
            month: 'numeric',
            day: 'numeric'
          },
          monthYearLabel: {
            year: 'numeric',
            month: 'short'
          },
          dateA11yLabel: {
            year: 'numeric',
            month: 'long',
            day: 'numeric'
          },
          monthYearA11yLabel: {
            year: 'numeric',
            month: 'long'
          }
        }
      };
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      var NativeDateModule = function NativeDateModule() {
        _classCallCheck2(this, NativeDateModule);
      };

      NativeDateModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
        type: NativeDateModule
      });
      NativeDateModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
        factory: function NativeDateModule_Factory(t) {
          return new (t || NativeDateModule)();
        },
        providers: [{
          provide: DateAdapter,
          useClass: NativeDateAdapter
        }],
        imports: [[_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_7__["PlatformModule"]]]
      });

      (function () {
        (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](NativeDateModule, {
          imports: function imports() {
            return [_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_7__["PlatformModule"]];
          }
        });
      })();
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NativeDateModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
          args: [{
            imports: [_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_7__["PlatformModule"]],
            providers: [{
              provide: DateAdapter,
              useClass: NativeDateAdapter
            }]
          }]
        }], null, null);
      })();

      var ɵ0$1 = MAT_NATIVE_DATE_FORMATS;

      var MatNativeDateModule = function MatNativeDateModule() {
        _classCallCheck2(this, MatNativeDateModule);
      };

      MatNativeDateModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
        type: MatNativeDateModule
      });
      MatNativeDateModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
        factory: function MatNativeDateModule_Factory(t) {
          return new (t || MatNativeDateModule)();
        },
        providers: [{
          provide: MAT_DATE_FORMATS,
          useValue: ɵ0$1
        }],
        imports: [[NativeDateModule]]
      });

      (function () {
        (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](MatNativeDateModule, {
          imports: [NativeDateModule]
        });
      })();
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatNativeDateModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
          args: [{
            imports: [NativeDateModule],
            providers: [{
              provide: MAT_DATE_FORMATS,
              useValue: ɵ0$1
            }]
          }]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** Error state matcher that matches when a control is invalid and dirty. */


      var ShowOnDirtyErrorStateMatcher = /*#__PURE__*/function () {
        function ShowOnDirtyErrorStateMatcher() {
          _classCallCheck2(this, ShowOnDirtyErrorStateMatcher);
        }

        _createClass2(ShowOnDirtyErrorStateMatcher, [{
          key: "isErrorState",
          value: function isErrorState(control, form) {
            return !!(control && control.invalid && (control.dirty || form && form.submitted));
          }
        }]);

        return ShowOnDirtyErrorStateMatcher;
      }();

      ShowOnDirtyErrorStateMatcher.ɵfac = function ShowOnDirtyErrorStateMatcher_Factory(t) {
        return new (t || ShowOnDirtyErrorStateMatcher)();
      };

      ShowOnDirtyErrorStateMatcher.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
        token: ShowOnDirtyErrorStateMatcher,
        factory: ShowOnDirtyErrorStateMatcher.ɵfac
      });
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ShowOnDirtyErrorStateMatcher, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
        }], null, null);
      })();
      /** Provider that defines how form controls behave with regards to displaying error messages. */


      var ErrorStateMatcher = /*#__PURE__*/function () {
        function ErrorStateMatcher() {
          _classCallCheck2(this, ErrorStateMatcher);
        }

        _createClass2(ErrorStateMatcher, [{
          key: "isErrorState",
          value: function isErrorState(control, form) {
            return !!(control && control.invalid && (control.touched || form && form.submitted));
          }
        }]);

        return ErrorStateMatcher;
      }();

      ErrorStateMatcher.ɵfac = function ErrorStateMatcher_Factory(t) {
        return new (t || ErrorStateMatcher)();
      };

      ErrorStateMatcher.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({
        factory: function ErrorStateMatcher_Factory() {
          return new ErrorStateMatcher();
        },
        token: ErrorStateMatcher,
        providedIn: "root"
      });
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ErrorStateMatcher, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
          args: [{
            providedIn: 'root'
          }]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Shared directive to count lines inside a text area, such as a list item.
       * Line elements can be extracted with a @ContentChildren(MatLine) query, then
       * counted by checking the query list's length.
       */


      var MatLine = function MatLine() {
        _classCallCheck2(this, MatLine);
      };

      MatLine.ɵfac = function MatLine_Factory(t) {
        return new (t || MatLine)();
      };

      MatLine.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: MatLine,
        selectors: [["", "mat-line", ""], ["", "matLine", ""]],
        hostAttrs: [1, "mat-line"]
      });
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatLine, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
          args: [{
            selector: '[mat-line], [matLine]',
            host: {
              'class': 'mat-line'
            }
          }]
        }], null, null);
      })();
      /**
       * Helper that takes a query list of lines and sets the correct class on the host.
       * @docs-private
       */


      function setLines(lines, element) {
        var prefix = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'mat';
        // Note: doesn't need to unsubscribe, because `changes`
        // gets completed by Angular when the view is destroyed.
        lines.changes.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_8__["startWith"])(lines)).subscribe(function (_ref80) {
          var length = _ref80.length;
          setClass(element, "".concat(prefix, "-2-line"), false);
          setClass(element, "".concat(prefix, "-3-line"), false);
          setClass(element, "".concat(prefix, "-multi-line"), false);

          if (length === 2 || length === 3) {
            setClass(element, "".concat(prefix, "-").concat(length, "-line"), true);
          } else if (length > 3) {
            setClass(element, "".concat(prefix, "-multi-line"), true);
          }
        });
      }
      /** Adds or removes a class from an element. */


      function setClass(element, className, isAdd) {
        var classList = element.nativeElement.classList;
        isAdd ? classList.add(className) : classList.remove(className);
      }

      var MatLineModule = function MatLineModule() {
        _classCallCheck2(this, MatLineModule);
      };

      MatLineModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
        type: MatLineModule
      });
      MatLineModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
        factory: function MatLineModule_Factory(t) {
          return new (t || MatLineModule)();
        },
        imports: [[MatCommonModule], MatCommonModule]
      });

      (function () {
        (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](MatLineModule, {
          declarations: [MatLine],
          imports: [MatCommonModule],
          exports: [MatLine, MatCommonModule]
        });
      })();
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatLineModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
          args: [{
            imports: [MatCommonModule],
            exports: [MatLine, MatCommonModule],
            declarations: [MatLine]
          }]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Reference to a previously launched ripple element.
       */


      var RippleRef = /*#__PURE__*/function () {
        function RippleRef(_renderer,
        /** Reference to the ripple HTML element. */
        element,
        /** Ripple configuration used for the ripple. */
        config) {
          _classCallCheck2(this, RippleRef);

          this._renderer = _renderer;
          this.element = element;
          this.config = config;
          /** Current state of the ripple. */

          this.state = 3
          /* HIDDEN */
          ;
        }
        /** Fades out the ripple element. */


        _createClass2(RippleRef, [{
          key: "fadeOut",
          value: function fadeOut() {
            this._renderer.fadeOutRipple(this);
          }
        }]);

        return RippleRef;
      }();
      /**
       * Default ripple animation configuration for ripples without an explicit
       * animation config specified.
       */


      var defaultRippleAnimationConfig = {
        enterDuration: 450,
        exitDuration: 400
      };
      /**
       * Timeout for ignoring mouse events. Mouse events will be temporary ignored after touch
       * events to avoid synthetic mouse events.
       */

      var ignoreMouseEventsTimeout = 800;
      /** Options that apply to all the event listeners that are bound by the ripple renderer. */

      var passiveEventOptions = Object(_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_7__["normalizePassiveListenerOptions"])({
        passive: true
      });
      /** Events that signal that the pointer is down. */

      var pointerDownEvents = ['mousedown', 'touchstart'];
      /** Events that signal that the pointer is up. */

      var pointerUpEvents = ['mouseup', 'mouseleave', 'touchend', 'touchcancel'];
      /**
       * Helper service that performs DOM manipulations. Not intended to be used outside this module.
       * The constructor takes a reference to the ripple directive's host element and a map of DOM
       * event handlers to be installed on the element that triggers ripple animations.
       * This will eventually become a custom renderer once Angular support exists.
       * @docs-private
       */

      var RippleRenderer = /*#__PURE__*/function () {
        function RippleRenderer(_target, _ngZone, elementOrElementRef, platform) {
          _classCallCheck2(this, RippleRenderer);

          this._target = _target;
          this._ngZone = _ngZone;
          /** Whether the pointer is currently down or not. */

          this._isPointerDown = false;
          /** Set of currently active ripple references. */

          this._activeRipples = new Set();
          /** Whether pointer-up event listeners have been registered. */

          this._pointerUpEventsRegistered = false; // Only do anything if we're on the browser.

          if (platform.isBrowser) {
            this._containerElement = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_5__["coerceElement"])(elementOrElementRef);
          }
        }
        /**
         * Fades in a ripple at the given coordinates.
         * @param x Coordinate within the element, along the X axis at which to start the ripple.
         * @param y Coordinate within the element, along the Y axis at which to start the ripple.
         * @param config Extra ripple options.
         */


        _createClass2(RippleRenderer, [{
          key: "fadeInRipple",
          value: function fadeInRipple(x, y) {
            var _this640 = this;

            var config = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};

            var containerRect = this._containerRect = this._containerRect || this._containerElement.getBoundingClientRect();

            var animationConfig = Object.assign(Object.assign({}, defaultRippleAnimationConfig), config.animation);

            if (config.centered) {
              x = containerRect.left + containerRect.width / 2;
              y = containerRect.top + containerRect.height / 2;
            }

            var radius = config.radius || distanceToFurthestCorner(x, y, containerRect);
            var offsetX = x - containerRect.left;
            var offsetY = y - containerRect.top;
            var duration = animationConfig.enterDuration;
            var ripple = document.createElement('div');
            ripple.classList.add('mat-ripple-element');
            ripple.style.left = "".concat(offsetX - radius, "px");
            ripple.style.top = "".concat(offsetY - radius, "px");
            ripple.style.height = "".concat(radius * 2, "px");
            ripple.style.width = "".concat(radius * 2, "px"); // If a custom color has been specified, set it as inline style. If no color is
            // set, the default color will be applied through the ripple theme styles.

            if (config.color != null) {
              ripple.style.backgroundColor = config.color;
            }

            ripple.style.transitionDuration = "".concat(duration, "ms");

            this._containerElement.appendChild(ripple); // By default the browser does not recalculate the styles of dynamically created
            // ripple elements. This is critical because then the `scale` would not animate properly.


            enforceStyleRecalculation(ripple);
            ripple.style.transform = 'scale(1)'; // Exposed reference to the ripple that will be returned.

            var rippleRef = new RippleRef(this, ripple, config);
            rippleRef.state = 0
            /* FADING_IN */
            ; // Add the ripple reference to the list of all active ripples.

            this._activeRipples.add(rippleRef);

            if (!config.persistent) {
              this._mostRecentTransientRipple = rippleRef;
            } // Wait for the ripple element to be completely faded in.
            // Once it's faded in, the ripple can be hidden immediately if the mouse is released.


            this._runTimeoutOutsideZone(function () {
              var isMostRecentTransientRipple = rippleRef === _this640._mostRecentTransientRipple;
              rippleRef.state = 1
              /* VISIBLE */
              ; // When the timer runs out while the user has kept their pointer down, we want to
              // keep only the persistent ripples and the latest transient ripple. We do this,
              // because we don't want stacked transient ripples to appear after their enter
              // animation has finished.

              if (!config.persistent && (!isMostRecentTransientRipple || !_this640._isPointerDown)) {
                rippleRef.fadeOut();
              }
            }, duration);

            return rippleRef;
          }
          /** Fades out a ripple reference. */

        }, {
          key: "fadeOutRipple",
          value: function fadeOutRipple(rippleRef) {
            var wasActive = this._activeRipples["delete"](rippleRef);

            if (rippleRef === this._mostRecentTransientRipple) {
              this._mostRecentTransientRipple = null;
            } // Clear out the cached bounding rect if we have no more ripples.


            if (!this._activeRipples.size) {
              this._containerRect = null;
            } // For ripples that are not active anymore, don't re-run the fade-out animation.


            if (!wasActive) {
              return;
            }

            var rippleEl = rippleRef.element;
            var animationConfig = Object.assign(Object.assign({}, defaultRippleAnimationConfig), rippleRef.config.animation);
            rippleEl.style.transitionDuration = "".concat(animationConfig.exitDuration, "ms");
            rippleEl.style.opacity = '0';
            rippleRef.state = 2
            /* FADING_OUT */
            ; // Once the ripple faded out, the ripple can be safely removed from the DOM.

            this._runTimeoutOutsideZone(function () {
              rippleRef.state = 3
              /* HIDDEN */
              ;
              rippleEl.parentNode.removeChild(rippleEl);
            }, animationConfig.exitDuration);
          }
          /** Fades out all currently active ripples. */

        }, {
          key: "fadeOutAll",
          value: function fadeOutAll() {
            this._activeRipples.forEach(function (ripple) {
              return ripple.fadeOut();
            });
          }
          /** Sets up the trigger event listeners */

        }, {
          key: "setupTriggerEvents",
          value: function setupTriggerEvents(elementOrElementRef) {
            var element = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_5__["coerceElement"])(elementOrElementRef);

            if (!element || element === this._triggerElement) {
              return;
            } // Remove all previously registered event listeners from the trigger element.


            this._removeTriggerEvents();

            this._triggerElement = element;

            this._registerEvents(pointerDownEvents);
          }
          /**
           * Handles all registered events.
           * @docs-private
           */

        }, {
          key: "handleEvent",
          value: function handleEvent(event) {
            if (event.type === 'mousedown') {
              this._onMousedown(event);
            } else if (event.type === 'touchstart') {
              this._onTouchStart(event);
            } else {
              this._onPointerUp();
            } // If pointer-up events haven't been registered yet, do so now.
            // We do this on-demand in order to reduce the total number of event listeners
            // registered by the ripples, which speeds up the rendering time for large UIs.


            if (!this._pointerUpEventsRegistered) {
              this._registerEvents(pointerUpEvents);

              this._pointerUpEventsRegistered = true;
            }
          }
          /** Function being called whenever the trigger is being pressed using mouse. */

        }, {
          key: "_onMousedown",
          value: function _onMousedown(event) {
            // Screen readers will fire fake mouse events for space/enter. Skip launching a
            // ripple in this case for consistency with the non-screen-reader experience.
            var isFakeMousedown = Object(_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_1__["isFakeMousedownFromScreenReader"])(event);
            var isSyntheticEvent = this._lastTouchStartEvent && Date.now() < this._lastTouchStartEvent + ignoreMouseEventsTimeout;

            if (!this._target.rippleDisabled && !isFakeMousedown && !isSyntheticEvent) {
              this._isPointerDown = true;
              this.fadeInRipple(event.clientX, event.clientY, this._target.rippleConfig);
            }
          }
          /** Function being called whenever the trigger is being pressed using touch. */

        }, {
          key: "_onTouchStart",
          value: function _onTouchStart(event) {
            if (!this._target.rippleDisabled) {
              // Some browsers fire mouse events after a `touchstart` event. Those synthetic mouse
              // events will launch a second ripple if we don't ignore mouse events for a specific
              // time after a touchstart event.
              this._lastTouchStartEvent = Date.now();
              this._isPointerDown = true; // Use `changedTouches` so we skip any touches where the user put
              // their finger down, but used another finger to tap the element again.

              var touches = event.changedTouches;

              for (var i = 0; i < touches.length; i++) {
                this.fadeInRipple(touches[i].clientX, touches[i].clientY, this._target.rippleConfig);
              }
            }
          }
          /** Function being called whenever the trigger is being released. */

        }, {
          key: "_onPointerUp",
          value: function _onPointerUp() {
            if (!this._isPointerDown) {
              return;
            }

            this._isPointerDown = false; // Fade-out all ripples that are visible and not persistent.

            this._activeRipples.forEach(function (ripple) {
              // By default, only ripples that are completely visible will fade out on pointer release.
              // If the `terminateOnPointerUp` option is set, ripples that still fade in will also fade out.
              var isVisible = ripple.state === 1
              /* VISIBLE */
              || ripple.config.terminateOnPointerUp && ripple.state === 0
              /* FADING_IN */
              ;

              if (!ripple.config.persistent && isVisible) {
                ripple.fadeOut();
              }
            });
          }
          /** Runs a timeout outside of the Angular zone to avoid triggering the change detection. */

        }, {
          key: "_runTimeoutOutsideZone",
          value: function _runTimeoutOutsideZone(fn) {
            var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;

            this._ngZone.runOutsideAngular(function () {
              return setTimeout(fn, delay);
            });
          }
          /** Registers event listeners for a given list of events. */

        }, {
          key: "_registerEvents",
          value: function _registerEvents(eventTypes) {
            var _this641 = this;

            this._ngZone.runOutsideAngular(function () {
              eventTypes.forEach(function (type) {
                _this641._triggerElement.addEventListener(type, _this641, passiveEventOptions);
              });
            });
          }
          /** Removes previously registered event listeners from the trigger element. */

        }, {
          key: "_removeTriggerEvents",
          value: function _removeTriggerEvents() {
            var _this642 = this;

            if (this._triggerElement) {
              pointerDownEvents.forEach(function (type) {
                _this642._triggerElement.removeEventListener(type, _this642, passiveEventOptions);
              });

              if (this._pointerUpEventsRegistered) {
                pointerUpEvents.forEach(function (type) {
                  _this642._triggerElement.removeEventListener(type, _this642, passiveEventOptions);
                });
              }
            }
          }
        }]);

        return RippleRenderer;
      }();
      /** Enforces a style recalculation of a DOM element by computing its styles. */


      function enforceStyleRecalculation(element) {
        // Enforce a style recalculation by calling `getComputedStyle` and accessing any property.
        // Calling `getPropertyValue` is important to let optimizers know that this is not a noop.
        // See: https://gist.github.com/paulirish/5d52fb081b3570c81e3a
        window.getComputedStyle(element).getPropertyValue('opacity');
      }
      /**
       * Returns the distance from the point (x, y) to the furthest corner of a rectangle.
       */


      function distanceToFurthestCorner(x, y, rect) {
        var distX = Math.max(Math.abs(x - rect.left), Math.abs(x - rect.right));
        var distY = Math.max(Math.abs(y - rect.top), Math.abs(y - rect.bottom));
        return Math.sqrt(distX * distX + distY * distY);
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** Injection token that can be used to specify the global ripple options. */


      var MAT_RIPPLE_GLOBAL_OPTIONS = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('mat-ripple-global-options');

      var MatRipple = /*#__PURE__*/function () {
        function MatRipple(_elementRef, ngZone, platform, globalOptions, _animationMode) {
          _classCallCheck2(this, MatRipple);

          this._elementRef = _elementRef;
          this._animationMode = _animationMode;
          /**
           * If set, the radius in pixels of foreground ripples when fully expanded. If unset, the radius
           * will be the distance from the center of the ripple to the furthest corner of the host element's
           * bounding rectangle.
           */

          this.radius = 0;
          this._disabled = false;
          /** Whether ripple directive is initialized and the input bindings are set. */

          this._isInitialized = false;
          this._globalOptions = globalOptions || {};
          this._rippleRenderer = new RippleRenderer(this, ngZone, _elementRef, platform);
        }
        /**
         * Whether click events will not trigger the ripple. Ripples can be still launched manually
         * by using the `launch()` method.
         */


        _createClass2(MatRipple, [{
          key: "disabled",
          get: function get() {
            return this._disabled;
          },
          set: function set(value) {
            this._disabled = value;

            this._setupTriggerEventsIfEnabled();
          }
          /**
           * The element that triggers the ripple when click events are received.
           * Defaults to the directive's host element.
           */

        }, {
          key: "trigger",
          get: function get() {
            return this._trigger || this._elementRef.nativeElement;
          },
          set: function set(trigger) {
            this._trigger = trigger;

            this._setupTriggerEventsIfEnabled();
          }
        }, {
          key: "ngOnInit",
          value: function ngOnInit() {
            this._isInitialized = true;

            this._setupTriggerEventsIfEnabled();
          }
        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            this._rippleRenderer._removeTriggerEvents();
          }
          /** Fades out all currently showing ripple elements. */

        }, {
          key: "fadeOutAll",
          value: function fadeOutAll() {
            this._rippleRenderer.fadeOutAll();
          }
          /**
           * Ripple configuration from the directive's input values.
           * @docs-private Implemented as part of RippleTarget
           */

        }, {
          key: "rippleConfig",
          get: function get() {
            return {
              centered: this.centered,
              radius: this.radius,
              color: this.color,
              animation: Object.assign(Object.assign(Object.assign({}, this._globalOptions.animation), this._animationMode === 'NoopAnimations' ? {
                enterDuration: 0,
                exitDuration: 0
              } : {}), this.animation),
              terminateOnPointerUp: this._globalOptions.terminateOnPointerUp
            };
          }
          /**
           * Whether ripples on pointer-down are disabled or not.
           * @docs-private Implemented as part of RippleTarget
           */

        }, {
          key: "rippleDisabled",
          get: function get() {
            return this.disabled || !!this._globalOptions.disabled;
          }
          /** Sets up the trigger event listeners if ripples are enabled. */

        }, {
          key: "_setupTriggerEventsIfEnabled",
          value: function _setupTriggerEventsIfEnabled() {
            if (!this.disabled && this._isInitialized) {
              this._rippleRenderer.setupTriggerEvents(this.trigger);
            }
          }
          /** Launches a manual ripple at the specified coordinated or just by the ripple config. */

        }, {
          key: "launch",
          value: function launch(configOrX) {
            var y = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
            var config = arguments.length > 2 ? arguments[2] : undefined;

            if (typeof configOrX === 'number') {
              return this._rippleRenderer.fadeInRipple(configOrX, y, Object.assign(Object.assign({}, this.rippleConfig), config));
            } else {
              return this._rippleRenderer.fadeInRipple(0, 0, Object.assign(Object.assign({}, this.rippleConfig), configOrX));
            }
          }
        }]);

        return MatRipple;
      }();

      MatRipple.ɵfac = function MatRipple_Factory(t) {
        return new (t || MatRipple)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_7__["Platform"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](MAT_RIPPLE_GLOBAL_OPTIONS, 8), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_9__["ANIMATION_MODULE_TYPE"], 8));
      };

      MatRipple.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: MatRipple,
        selectors: [["", "mat-ripple", ""], ["", "matRipple", ""]],
        hostAttrs: [1, "mat-ripple"],
        hostVars: 2,
        hostBindings: function MatRipple_HostBindings(rf, ctx) {
          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("mat-ripple-unbounded", ctx.unbounded);
          }
        },
        inputs: {
          radius: ["matRippleRadius", "radius"],
          disabled: ["matRippleDisabled", "disabled"],
          trigger: ["matRippleTrigger", "trigger"],
          color: ["matRippleColor", "color"],
          unbounded: ["matRippleUnbounded", "unbounded"],
          centered: ["matRippleCentered", "centered"],
          animation: ["matRippleAnimation", "animation"]
        },
        exportAs: ["matRipple"]
      });

      MatRipple.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"]
        }, {
          type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_7__["Platform"]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [MAT_RIPPLE_GLOBAL_OPTIONS]
          }]
        }, {
          type: String,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_9__["ANIMATION_MODULE_TYPE"]]
          }]
        }];
      };

      MatRipple.propDecorators = {
        color: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
          args: ['matRippleColor']
        }],
        unbounded: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
          args: ['matRippleUnbounded']
        }],
        centered: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
          args: ['matRippleCentered']
        }],
        radius: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
          args: ['matRippleRadius']
        }],
        animation: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
          args: ['matRippleAnimation']
        }],
        disabled: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
          args: ['matRippleDisabled']
        }],
        trigger: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
          args: ['matRippleTrigger']
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatRipple, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
          args: [{
            selector: '[mat-ripple], [matRipple]',
            exportAs: 'matRipple',
            host: {
              'class': 'mat-ripple',
              '[class.mat-ripple-unbounded]': 'unbounded'
            }
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"]
          }, {
            type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_7__["Platform"]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [MAT_RIPPLE_GLOBAL_OPTIONS]
            }]
          }, {
            type: String,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_9__["ANIMATION_MODULE_TYPE"]]
            }]
          }];
        }, {
          radius: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
            args: ['matRippleRadius']
          }],
          disabled: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
            args: ['matRippleDisabled']
          }],
          trigger: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
            args: ['matRippleTrigger']
          }],
          color: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
            args: ['matRippleColor']
          }],
          unbounded: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
            args: ['matRippleUnbounded']
          }],
          centered: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
            args: ['matRippleCentered']
          }],
          animation: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
            args: ['matRippleAnimation']
          }]
        });
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var MatRippleModule = function MatRippleModule() {
        _classCallCheck2(this, MatRippleModule);
      };

      MatRippleModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
        type: MatRippleModule
      });
      MatRippleModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
        factory: function MatRippleModule_Factory(t) {
          return new (t || MatRippleModule)();
        },
        imports: [[MatCommonModule, _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_7__["PlatformModule"]], MatCommonModule]
      });

      (function () {
        (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](MatRippleModule, {
          declarations: function declarations() {
            return [MatRipple];
          },
          imports: function imports() {
            return [MatCommonModule, _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_7__["PlatformModule"]];
          },
          exports: function exports() {
            return [MatRipple, MatCommonModule];
          }
        });
      })();
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatRippleModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
          args: [{
            imports: [MatCommonModule, _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_7__["PlatformModule"]],
            exports: [MatRipple, MatCommonModule],
            declarations: [MatRipple]
          }]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Component that shows a simplified checkbox without including any kind of "real" checkbox.
       * Meant to be used when the checkbox is purely decorative and a large number of them will be
       * included, such as for the options in a multi-select. Uses no SVGs or complex animations.
       * Note that theming is meant to be handled by the parent element, e.g.
       * `mat-primary .mat-pseudo-checkbox`.
       *
       * Note that this component will be completely invisible to screen-reader users. This is *not*
       * interchangeable with `<mat-checkbox>` and should *not* be used if the user would directly
       * interact with the checkbox. The pseudo-checkbox should only be used as an implementation detail
       * of more complex components that appropriately handle selected / checked state.
       * @docs-private
       */


      var MatPseudoCheckbox = function MatPseudoCheckbox(_animationMode) {
        _classCallCheck2(this, MatPseudoCheckbox);

        this._animationMode = _animationMode;
        /** Display state of the checkbox. */

        this.state = 'unchecked';
        /** Whether the checkbox is disabled. */

        this.disabled = false;
      };

      MatPseudoCheckbox.ɵfac = function MatPseudoCheckbox_Factory(t) {
        return new (t || MatPseudoCheckbox)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_9__["ANIMATION_MODULE_TYPE"], 8));
      };

      MatPseudoCheckbox.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
        type: MatPseudoCheckbox,
        selectors: [["mat-pseudo-checkbox"]],
        hostAttrs: [1, "mat-pseudo-checkbox"],
        hostVars: 8,
        hostBindings: function MatPseudoCheckbox_HostBindings(rf, ctx) {
          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("mat-pseudo-checkbox-indeterminate", ctx.state === "indeterminate")("mat-pseudo-checkbox-checked", ctx.state === "checked")("mat-pseudo-checkbox-disabled", ctx.disabled)("_mat-animation-noopable", ctx._animationMode === "NoopAnimations");
          }
        },
        inputs: {
          state: "state",
          disabled: "disabled"
        },
        decls: 0,
        vars: 0,
        template: function MatPseudoCheckbox_Template(rf, ctx) {},
        styles: [".mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:\"\";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n"],
        encapsulation: 2,
        changeDetection: 0
      });

      MatPseudoCheckbox.ctorParameters = function () {
        return [{
          type: String,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_9__["ANIMATION_MODULE_TYPE"]]
          }]
        }];
      };

      MatPseudoCheckbox.propDecorators = {
        state: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }],
        disabled: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatPseudoCheckbox, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
          args: [{
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush,
            selector: 'mat-pseudo-checkbox',
            template: '',
            host: {
              'class': 'mat-pseudo-checkbox',
              '[class.mat-pseudo-checkbox-indeterminate]': 'state === "indeterminate"',
              '[class.mat-pseudo-checkbox-checked]': 'state === "checked"',
              '[class.mat-pseudo-checkbox-disabled]': 'disabled',
              '[class._mat-animation-noopable]': '_animationMode === "NoopAnimations"'
            },
            styles: [".mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:\"\";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n"]
          }]
        }], function () {
          return [{
            type: String,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_9__["ANIMATION_MODULE_TYPE"]]
            }]
          }];
        }, {
          state: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }],
          disabled: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }]
        });
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var MatPseudoCheckboxModule = function MatPseudoCheckboxModule() {
        _classCallCheck2(this, MatPseudoCheckboxModule);
      };

      MatPseudoCheckboxModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
        type: MatPseudoCheckboxModule
      });
      MatPseudoCheckboxModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
        factory: function MatPseudoCheckboxModule_Factory(t) {
          return new (t || MatPseudoCheckboxModule)();
        }
      });

      (function () {
        (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](MatPseudoCheckboxModule, {
          declarations: [MatPseudoCheckbox],
          exports: [MatPseudoCheckbox]
        });
      })();
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatPseudoCheckboxModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
          args: [{
            exports: [MatPseudoCheckbox],
            declarations: [MatPseudoCheckbox]
          }]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */
      // Boilerplate for applying mixins to MatOptgroup.

      /** @docs-private */


      var MatOptgroupBase = function MatOptgroupBase() {
        _classCallCheck2(this, MatOptgroupBase);
      };

      var _MatOptgroupMixinBase = mixinDisabled(MatOptgroupBase); // Counter for unique group ids.


      var _uniqueOptgroupIdCounter = 0;

      var _MatOptgroupBase = /*#__PURE__*/function (_MatOptgroupMixinBase2) {
        _inherits2(_MatOptgroupBase, _MatOptgroupMixinBase2);

        var _super315 = _createSuper2(_MatOptgroupBase);

        function _MatOptgroupBase() {
          var _this643;

          _classCallCheck2(this, _MatOptgroupBase);

          _this643 = _super315.apply(this, arguments);
          /** Unique id for the underlying label. */

          _this643._labelId = "mat-optgroup-label-".concat(_uniqueOptgroupIdCounter++);
          return _this643;
        }

        return _MatOptgroupBase;
      }(_MatOptgroupMixinBase);

      _MatOptgroupBase.ɵfac = function _MatOptgroupBase_Factory(t) {
        return ɵ_MatOptgroupBase_BaseFactory(t || _MatOptgroupBase);
      };

      _MatOptgroupBase.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: _MatOptgroupBase,
        inputs: {
          label: "label"
        },
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
      });
      _MatOptgroupBase.propDecorators = {
        label: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }]
      };

      var ɵ_MatOptgroupBase_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](_MatOptgroupBase);
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](_MatOptgroupBase, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"]
        }], null, {
          label: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }]
        });
      })();
      /**
       * Injection token that can be used to reference instances of `MatOptgroup`. It serves as
       * alternative token to the actual `MatOptgroup` class which could cause unnecessary
       * retention of the class and its component metadata.
       */


      var MAT_OPTGROUP = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('MatOptgroup');
      /**
       * Component that is used to group instances of `mat-option`.
       */

      var MatOptgroup = /*#__PURE__*/function (_MatOptgroupBase2) {
        _inherits2(MatOptgroup, _MatOptgroupBase2);

        var _super316 = _createSuper2(MatOptgroup);

        function MatOptgroup() {
          _classCallCheck2(this, MatOptgroup);

          return _super316.apply(this, arguments);
        }

        return MatOptgroup;
      }(_MatOptgroupBase);

      MatOptgroup.ɵfac = function MatOptgroup_Factory(t) {
        return ɵMatOptgroup_BaseFactory(t || MatOptgroup);
      };

      MatOptgroup.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
        type: MatOptgroup,
        selectors: [["mat-optgroup"]],
        hostAttrs: ["role", "group", 1, "mat-optgroup"],
        hostVars: 4,
        hostBindings: function MatOptgroup_HostBindings(rf, ctx) {
          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("aria-disabled", ctx.disabled.toString())("aria-labelledby", ctx._labelId);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("mat-optgroup-disabled", ctx.disabled);
          }
        },
        inputs: {
          disabled: "disabled"
        },
        exportAs: ["matOptgroup"],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([{
          provide: MAT_OPTGROUP,
          useExisting: MatOptgroup
        }]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]],
        ngContentSelectors: _c1,
        decls: 4,
        vars: 2,
        consts: [[1, "mat-optgroup-label", 3, "id"]],
        template: function MatOptgroup_Template(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojectionDef"](_c0);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "label", 0);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojection"](2);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojection"](3, 1);
          }

          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("id", ctx._labelId);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", ctx.label, " ");
          }
        },
        styles: [".mat-optgroup-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}\n"],
        encapsulation: 2,
        changeDetection: 0
      });

      var ɵMatOptgroup_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](MatOptgroup);
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatOptgroup, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
          args: [{
            selector: 'mat-optgroup',
            exportAs: 'matOptgroup',
            template: "<label class=\"mat-optgroup-label\" [id]=\"_labelId\">{{ label }} <ng-content></ng-content></label>\n<ng-content select=\"mat-option, ng-container\"></ng-content>\n",
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush,
            inputs: ['disabled'],
            host: {
              'class': 'mat-optgroup',
              'role': 'group',
              '[class.mat-optgroup-disabled]': 'disabled',
              '[attr.aria-disabled]': 'disabled.toString()',
              '[attr.aria-labelledby]': '_labelId'
            },
            providers: [{
              provide: MAT_OPTGROUP,
              useExisting: MatOptgroup
            }],
            styles: [".mat-optgroup-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}\n"]
          }]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Option IDs need to be unique across components, so this counter exists outside of
       * the component definition.
       */


      var _uniqueIdCounter = 0;
      /** Event object emitted by MatOption when selected or deselected. */

      var MatOptionSelectionChange = function MatOptionSelectionChange(
      /** Reference to the option that emitted the event. */
      source) {
        var isUserInput = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;

        _classCallCheck2(this, MatOptionSelectionChange);

        this.source = source;
        this.isUserInput = isUserInput;
      };
      /**
       * Injection token used to provide the parent component to options.
       */


      var MAT_OPTION_PARENT_COMPONENT = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('MAT_OPTION_PARENT_COMPONENT');

      var _MatOptionBase = /*#__PURE__*/function () {
        function _MatOptionBase(_element, _changeDetectorRef, _parent, group) {
          _classCallCheck2(this, _MatOptionBase);

          this._element = _element;
          this._changeDetectorRef = _changeDetectorRef;
          this._parent = _parent;
          this.group = group;
          this._selected = false;
          this._active = false;
          this._disabled = false;
          this._mostRecentViewValue = '';
          /** The unique ID of the option. */

          this.id = "mat-option-".concat(_uniqueIdCounter++);
          /** Event emitted when the option is selected or deselected. */
          // tslint:disable-next-line:no-output-on-prefix

          this.onSelectionChange = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
          /** Emits when the state of the option changes and any parents have to be notified. */

          this._stateChanges = new rxjs__WEBPACK_IMPORTED_MODULE_6__["Subject"]();
        }
        /** Whether the wrapping component is in multiple selection mode. */


        _createClass2(_MatOptionBase, [{
          key: "multiple",
          get: function get() {
            return this._parent && this._parent.multiple;
          }
          /** Whether or not the option is currently selected. */

        }, {
          key: "selected",
          get: function get() {
            return this._selected;
          }
          /** Whether the option is disabled. */

        }, {
          key: "disabled",
          get: function get() {
            return this.group && this.group.disabled || this._disabled;
          },
          set: function set(value) {
            this._disabled = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_5__["coerceBooleanProperty"])(value);
          }
          /** Whether ripples for the option are disabled. */

        }, {
          key: "disableRipple",
          get: function get() {
            return this._parent && this._parent.disableRipple;
          }
          /**
           * Whether or not the option is currently active and ready to be selected.
           * An active option displays styles as if it is focused, but the
           * focus is actually retained somewhere else. This comes in handy
           * for components like autocomplete where focus must remain on the input.
           */

        }, {
          key: "active",
          get: function get() {
            return this._active;
          }
          /**
           * The displayed value of the option. It is necessary to show the selected option in the
           * select's trigger.
           */

        }, {
          key: "viewValue",
          get: function get() {
            // TODO(kara): Add input property alternative for node envs.
            return (this._getHostElement().textContent || '').trim();
          }
          /** Selects the option. */

        }, {
          key: "select",
          value: function select() {
            if (!this._selected) {
              this._selected = true;

              this._changeDetectorRef.markForCheck();

              this._emitSelectionChangeEvent();
            }
          }
          /** Deselects the option. */

        }, {
          key: "deselect",
          value: function deselect() {
            if (this._selected) {
              this._selected = false;

              this._changeDetectorRef.markForCheck();

              this._emitSelectionChangeEvent();
            }
          }
          /** Sets focus onto this option. */

        }, {
          key: "focus",
          value: function focus(_origin, options) {
            // Note that we aren't using `_origin`, but we need to keep it because some internal consumers
            // use `MatOption` in a `FocusKeyManager` and we need it to match `FocusableOption`.
            var element = this._getHostElement();

            if (typeof element.focus === 'function') {
              element.focus(options);
            }
          }
          /**
           * This method sets display styles on the option to make it appear
           * active. This is used by the ActiveDescendantKeyManager so key
           * events will display the proper options as active on arrow key events.
           */

        }, {
          key: "setActiveStyles",
          value: function setActiveStyles() {
            if (!this._active) {
              this._active = true;

              this._changeDetectorRef.markForCheck();
            }
          }
          /**
           * This method removes display styles on the option that made it appear
           * active. This is used by the ActiveDescendantKeyManager so key
           * events will display the proper options as active on arrow key events.
           */

        }, {
          key: "setInactiveStyles",
          value: function setInactiveStyles() {
            if (this._active) {
              this._active = false;

              this._changeDetectorRef.markForCheck();
            }
          }
          /** Gets the label to be used when determining whether the option should be focused. */

        }, {
          key: "getLabel",
          value: function getLabel() {
            return this.viewValue;
          }
          /** Ensures the option is selected when activated from the keyboard. */

        }, {
          key: "_handleKeydown",
          value: function _handleKeydown(event) {
            if ((event.keyCode === _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_10__["ENTER"] || event.keyCode === _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_10__["SPACE"]) && !Object(_angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_10__["hasModifierKey"])(event)) {
              this._selectViaInteraction(); // Prevent the page from scrolling down and form submits.


              event.preventDefault();
            }
          }
          /**
           * `Selects the option while indicating the selection came from the user. Used to
           * determine if the select's view -> model callback should be invoked.`
           */

        }, {
          key: "_selectViaInteraction",
          value: function _selectViaInteraction() {
            if (!this.disabled) {
              this._selected = this.multiple ? !this._selected : true;

              this._changeDetectorRef.markForCheck();

              this._emitSelectionChangeEvent(true);
            }
          }
          /**
           * Gets the `aria-selected` value for the option. We explicitly omit the `aria-selected`
           * attribute from single-selection, unselected options. Including the `aria-selected="false"`
           * attributes adds a significant amount of noise to screen-reader users without providing useful
           * information.
           */

        }, {
          key: "_getAriaSelected",
          value: function _getAriaSelected() {
            return this.selected || (this.multiple ? false : null);
          }
          /** Returns the correct tabindex for the option depending on disabled state. */

        }, {
          key: "_getTabIndex",
          value: function _getTabIndex() {
            return this.disabled ? '-1' : '0';
          }
          /** Gets the host DOM element. */

        }, {
          key: "_getHostElement",
          value: function _getHostElement() {
            return this._element.nativeElement;
          }
        }, {
          key: "ngAfterViewChecked",
          value: function ngAfterViewChecked() {
            // Since parent components could be using the option's label to display the selected values
            // (e.g. `mat-select`) and they don't have a way of knowing if the option's label has changed
            // we have to check for changes in the DOM ourselves and dispatch an event. These checks are
            // relatively cheap, however we still limit them only to selected options in order to avoid
            // hitting the DOM too often.
            if (this._selected) {
              var viewValue = this.viewValue;

              if (viewValue !== this._mostRecentViewValue) {
                this._mostRecentViewValue = viewValue;

                this._stateChanges.next();
              }
            }
          }
        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            this._stateChanges.complete();
          }
          /** Emits the selection change event. */

        }, {
          key: "_emitSelectionChangeEvent",
          value: function _emitSelectionChangeEvent() {
            var isUserInput = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
            this.onSelectionChange.emit(new MatOptionSelectionChange(this, isUserInput));
          }
        }]);

        return _MatOptionBase;
      }();

      _MatOptionBase.ɵfac = function _MatOptionBase_Factory(t) {
        return new (t || _MatOptionBase)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](undefined), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_MatOptgroupBase));
      };

      _MatOptionBase.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: _MatOptionBase,
        inputs: {
          id: "id",
          disabled: "disabled",
          value: "value"
        },
        outputs: {
          onSelectionChange: "onSelectionChange"
        }
      });

      _MatOptionBase.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"]
        }, {
          type: undefined
        }, {
          type: _MatOptgroupBase
        }];
      };

      _MatOptionBase.propDecorators = {
        value: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }],
        id: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }],
        disabled: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }],
        onSelectionChange: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](_MatOptionBase, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"]
          }, {
            type: undefined
          }, {
            type: _MatOptgroupBase
          }];
        }, {
          id: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }],
          onSelectionChange: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
          }],
          disabled: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }],
          value: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }]
        });
      })();
      /**
       * Single option inside of a `<mat-select>` element.
       */


      var MatOption = /*#__PURE__*/function (_MatOptionBase2) {
        _inherits2(MatOption, _MatOptionBase2);

        var _super317 = _createSuper2(MatOption);

        function MatOption(element, changeDetectorRef, parent, group) {
          _classCallCheck2(this, MatOption);

          return _super317.call(this, element, changeDetectorRef, parent, group);
        }

        return MatOption;
      }(_MatOptionBase);

      MatOption.ɵfac = function MatOption_Factory(t) {
        return new (t || MatOption)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](MAT_OPTION_PARENT_COMPONENT, 8), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](MAT_OPTGROUP, 8));
      };

      MatOption.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
        type: MatOption,
        selectors: [["mat-option"]],
        hostAttrs: ["role", "option", 1, "mat-option", "mat-focus-indicator"],
        hostVars: 12,
        hostBindings: function MatOption_HostBindings(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function MatOption_click_HostBindingHandler() {
              return ctx._selectViaInteraction();
            })("keydown", function MatOption_keydown_HostBindingHandler($event) {
              return ctx._handleKeydown($event);
            });
          }

          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵhostProperty"]("id", ctx.id);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("tabindex", ctx._getTabIndex())("aria-selected", ctx._getAriaSelected())("aria-disabled", ctx.disabled.toString());

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("mat-selected", ctx.selected)("mat-option-multiple", ctx.multiple)("mat-active", ctx.active)("mat-option-disabled", ctx.disabled);
          }
        },
        exportAs: ["matOption"],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]],
        ngContentSelectors: _c2,
        decls: 4,
        vars: 3,
        consts: [["class", "mat-option-pseudo-checkbox", 3, "state", "disabled", 4, "ngIf"], [1, "mat-option-text"], ["mat-ripple", "", 1, "mat-option-ripple", 3, "matRippleTrigger", "matRippleDisabled"], [1, "mat-option-pseudo-checkbox", 3, "state", "disabled"]],
        template: function MatOption_Template(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojectionDef"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, MatOption_mat_pseudo_checkbox_0_Template, 1, 2, "mat-pseudo-checkbox", 0);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span", 1);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojection"](2);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "div", 2);
          }

          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.multiple);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("matRippleTrigger", ctx._getHostElement())("matRippleDisabled", ctx.disabled || ctx.disableRipple);
          }
        },
        directives: [_angular_common__WEBPACK_IMPORTED_MODULE_4__["NgIf"], MatRipple, MatPseudoCheckbox],
        styles: [".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.cdk-high-contrast-active .mat-option .mat-option-ripple{opacity:.5}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],
        encapsulation: 2,
        changeDetection: 0
      });

      MatOption.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [MAT_OPTION_PARENT_COMPONENT]
          }]
        }, {
          type: MatOptgroup,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [MAT_OPTGROUP]
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatOption, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
          args: [{
            selector: 'mat-option',
            exportAs: 'matOption',
            host: {
              'role': 'option',
              '[attr.tabindex]': '_getTabIndex()',
              '[class.mat-selected]': 'selected',
              '[class.mat-option-multiple]': 'multiple',
              '[class.mat-active]': 'active',
              '[id]': 'id',
              '[attr.aria-selected]': '_getAriaSelected()',
              '[attr.aria-disabled]': 'disabled.toString()',
              '[class.mat-option-disabled]': 'disabled',
              '(click)': '_selectViaInteraction()',
              '(keydown)': '_handleKeydown($event)',
              'class': 'mat-option mat-focus-indicator'
            },
            template: "<mat-pseudo-checkbox *ngIf=\"multiple\" class=\"mat-option-pseudo-checkbox\"\n    [state]=\"selected ? 'checked' : 'unchecked'\" [disabled]=\"disabled\"></mat-pseudo-checkbox>\n\n<span class=\"mat-option-text\"><ng-content></ng-content></span>\n\n<div class=\"mat-option-ripple\" mat-ripple\n     [matRippleTrigger]=\"_getHostElement()\"\n     [matRippleDisabled]=\"disabled || disableRipple\">\n</div>\n",
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush,
            styles: [".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.cdk-high-contrast-active .mat-option .mat-option-ripple{opacity:.5}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"]
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [MAT_OPTION_PARENT_COMPONENT]
            }]
          }, {
            type: MatOptgroup,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [MAT_OPTGROUP]
            }]
          }];
        }, null);
      })();
      /**
       * Counts the amount of option group labels that precede the specified option.
       * @param optionIndex Index of the option at which to start counting.
       * @param options Flat list of all of the options.
       * @param optionGroups Flat list of all of the option groups.
       * @docs-private
       */


      function _countGroupLabelsBeforeOption(optionIndex, options, optionGroups) {
        if (optionGroups.length) {
          var optionsArray = options.toArray();
          var groups = optionGroups.toArray();
          var groupCounter = 0;

          for (var i = 0; i < optionIndex + 1; i++) {
            if (optionsArray[i].group && optionsArray[i].group === groups[groupCounter]) {
              groupCounter++;
            }
          }

          return groupCounter;
        }

        return 0;
      }
      /**
       * Determines the position to which to scroll a panel in order for an option to be into view.
       * @param optionOffset Offset of the option from the top of the panel.
       * @param optionHeight Height of the options.
       * @param currentScrollPosition Current scroll position of the panel.
       * @param panelHeight Height of the panel.
       * @docs-private
       */


      function _getOptionScrollPosition(optionOffset, optionHeight, currentScrollPosition, panelHeight) {
        if (optionOffset < currentScrollPosition) {
          return optionOffset;
        }

        if (optionOffset + optionHeight > currentScrollPosition + panelHeight) {
          return Math.max(0, optionOffset - panelHeight + optionHeight);
        }

        return currentScrollPosition;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var MatOptionModule = function MatOptionModule() {
        _classCallCheck2(this, MatOptionModule);
      };

      MatOptionModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
        type: MatOptionModule
      });
      MatOptionModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
        factory: function MatOptionModule_Factory(t) {
          return new (t || MatOptionModule)();
        },
        imports: [[MatRippleModule, _angular_common__WEBPACK_IMPORTED_MODULE_4__["CommonModule"], MatPseudoCheckboxModule]]
      });

      (function () {
        (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](MatOptionModule, {
          declarations: function declarations() {
            return [MatOption, MatOptgroup];
          },
          imports: function imports() {
            return [MatRippleModule, _angular_common__WEBPACK_IMPORTED_MODULE_4__["CommonModule"], MatPseudoCheckboxModule];
          },
          exports: function exports() {
            return [MatOption, MatOptgroup];
          }
        });
      })();
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatOptionModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
          args: [{
            imports: [MatRippleModule, _angular_common__WEBPACK_IMPORTED_MODULE_4__["CommonModule"], MatPseudoCheckboxModule],
            exports: [MatOption, MatOptgroup],
            declarations: [MatOption, MatOptgroup]
          }]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Generated bundle index. Do not edit.
       */
      //# sourceMappingURL=core.js.map

      /***/

    },

    /***/
    "UpQW": function UpQW(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Urdu [ur]
      //! author : Sawood Alam : https://github.com/ibnesayeed
      //! author : Zack : https://github.com/ZackVision
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var months = ['جنوری', 'فروری', 'مارچ', 'اپریل', 'مئی', 'جون', 'جولائی', 'اگست', 'ستمبر', 'اکتوبر', 'نومبر', 'دسمبر'],
            days = ['اتوار', 'پیر', 'منگل', 'بدھ', 'جمعرات', 'جمعہ', 'ہفتہ'];
        var ur = moment.defineLocale('ur', {
          months: months,
          monthsShort: months,
          weekdays: days,
          weekdaysShort: days,
          weekdaysMin: days,
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd، D MMMM YYYY HH:mm'
          },
          meridiemParse: /صبح|شام/,
          isPM: function isPM(input) {
            return 'شام' === input;
          },
          meridiem: function meridiem(hour, minute, isLower) {
            if (hour < 12) {
              return 'صبح';
            }

            return 'شام';
          },
          calendar: {
            sameDay: '[آج بوقت] LT',
            nextDay: '[کل بوقت] LT',
            nextWeek: 'dddd [بوقت] LT',
            lastDay: '[گذشتہ روز بوقت] LT',
            lastWeek: '[گذشتہ] dddd [بوقت] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: '%s بعد',
            past: '%s قبل',
            s: 'چند سیکنڈ',
            ss: '%d سیکنڈ',
            m: 'ایک منٹ',
            mm: '%d منٹ',
            h: 'ایک گھنٹہ',
            hh: '%d گھنٹے',
            d: 'ایک دن',
            dd: '%d دن',
            M: 'ایک ماہ',
            MM: '%d ماہ',
            y: 'ایک سال',
            yy: '%d سال'
          },
          preparse: function preparse(string) {
            return string.replace(/،/g, ',');
          },
          postformat: function postformat(string) {
            return string.replace(/,/g, '،');
          },
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return ur;
      });
      /***/

    },

    /***/
    "Ur1D": function Ur1D(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : siSwati [ss]
      //! author : Nicolai Davies<mail@nicolai.io> : https://github.com/nicolaidavies
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var ss = moment.defineLocale('ss', {
          months: "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split('_'),
          monthsShort: 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'),
          weekdays: 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split('_'),
          weekdaysShort: 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'),
          weekdaysMin: 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'),
          weekdaysParseExact: true,
          longDateFormat: {
            LT: 'h:mm A',
            LTS: 'h:mm:ss A',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY h:mm A',
            LLLL: 'dddd, D MMMM YYYY h:mm A'
          },
          calendar: {
            sameDay: '[Namuhla nga] LT',
            nextDay: '[Kusasa nga] LT',
            nextWeek: 'dddd [nga] LT',
            lastDay: '[Itolo nga] LT',
            lastWeek: 'dddd [leliphelile] [nga] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'nga %s',
            past: 'wenteka nga %s',
            s: 'emizuzwana lomcane',
            ss: '%d mzuzwana',
            m: 'umzuzu',
            mm: '%d emizuzu',
            h: 'lihora',
            hh: '%d emahora',
            d: 'lilanga',
            dd: '%d emalanga',
            M: 'inyanga',
            MM: '%d tinyanga',
            y: 'umnyaka',
            yy: '%d iminyaka'
          },
          meridiemParse: /ekuseni|emini|entsambama|ebusuku/,
          meridiem: function meridiem(hours, minutes, isLower) {
            if (hours < 11) {
              return 'ekuseni';
            } else if (hours < 15) {
              return 'emini';
            } else if (hours < 19) {
              return 'entsambama';
            } else {
              return 'ebusuku';
            }
          },
          meridiemHour: function meridiemHour(hour, meridiem) {
            if (hour === 12) {
              hour = 0;
            }

            if (meridiem === 'ekuseni') {
              return hour;
            } else if (meridiem === 'emini') {
              return hour >= 11 ? hour : hour + 12;
            } else if (meridiem === 'entsambama' || meridiem === 'ebusuku') {
              if (hour === 0) {
                return 0;
              }

              return hour + 12;
            }
          },
          dayOfMonthOrdinalParse: /\d{1,2}/,
          ordinal: '%d',
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return ss;
      });
      /***/

    },

    /***/
    "V2x9": function V2x9(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Tetun Dili (East Timor) [tet]
      //! author : Joshua Brooks : https://github.com/joshbrooks
      //! author : Onorio De J. Afonso : https://github.com/marobo
      //! author : Sonia Simoes : https://github.com/soniasimoes
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var tet = moment.defineLocale('tet', {
          months: 'Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru'.split('_'),
          monthsShort: 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),
          weekdays: 'Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu'.split('_'),
          weekdaysShort: 'Dom_Seg_Ters_Kua_Kint_Sest_Sab'.split('_'),
          weekdaysMin: 'Do_Seg_Te_Ku_Ki_Ses_Sa'.split('_'),
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd, D MMMM YYYY HH:mm'
          },
          calendar: {
            sameDay: '[Ohin iha] LT',
            nextDay: '[Aban iha] LT',
            nextWeek: 'dddd [iha] LT',
            lastDay: '[Horiseik iha] LT',
            lastWeek: 'dddd [semana kotuk] [iha] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'iha %s',
            past: '%s liuba',
            s: 'segundu balun',
            ss: 'segundu %d',
            m: 'minutu ida',
            mm: 'minutu %d',
            h: 'oras ida',
            hh: 'oras %d',
            d: 'loron ida',
            dd: 'loron %d',
            M: 'fulan ida',
            MM: 'fulan %d',
            y: 'tinan ida',
            yy: 'tinan %d'
          },
          dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
          ordinal: function ordinal(number) {
            var b = number % 10,
                output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';
            return number + output;
          },
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return tet;
      });
      /***/

    },

    /***/
    "VDRc": function VDRc(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "FlexModule", function () {
        return FlexModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "FlexStyleBuilder", function () {
        return FlexStyleBuilder;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "FlexDirective", function () {
        return FlexDirective;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "DefaultFlexDirective", function () {
        return DefaultFlexDirective;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "FlexAlignStyleBuilder", function () {
        return FlexAlignStyleBuilder;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "FlexAlignDirective", function () {
        return FlexAlignDirective;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "DefaultFlexAlignDirective", function () {
        return DefaultFlexAlignDirective;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "FlexFillStyleBuilder", function () {
        return FlexFillStyleBuilder;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "FlexFillDirective", function () {
        return FlexFillDirective;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "FlexOffsetStyleBuilder", function () {
        return FlexOffsetStyleBuilder;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "FlexOffsetDirective", function () {
        return FlexOffsetDirective;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "DefaultFlexOffsetDirective", function () {
        return DefaultFlexOffsetDirective;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "FlexOrderStyleBuilder", function () {
        return FlexOrderStyleBuilder;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "FlexOrderDirective", function () {
        return FlexOrderDirective;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "DefaultFlexOrderDirective", function () {
        return DefaultFlexOrderDirective;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "LayoutStyleBuilder", function () {
        return LayoutStyleBuilder;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "LayoutDirective", function () {
        return LayoutDirective;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "DefaultLayoutDirective", function () {
        return DefaultLayoutDirective;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "LayoutAlignStyleBuilder", function () {
        return LayoutAlignStyleBuilder;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "LayoutAlignDirective", function () {
        return LayoutAlignDirective;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "DefaultLayoutAlignDirective", function () {
        return DefaultLayoutAlignDirective;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "LayoutGapStyleBuilder", function () {
        return LayoutGapStyleBuilder;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "LayoutGapDirective", function () {
        return LayoutGapDirective;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "DefaultLayoutGapDirective", function () {
        return DefaultLayoutGapDirective;
      });
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /* harmony import */


      var _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/flex-layout/core */
      "/q54");
      /* harmony import */


      var _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! @angular/cdk/bidi */
      "9gLZ");
      /* harmony import */


      var rxjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! rxjs */
      "qCKp");
      /* harmony import */


      var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! rxjs/operators */
      "kU1M");
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @fileoverview added by tsickle
       * Generated from: utils/layout-validator.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       * @type {?}
       */


      var INLINE = 'inline';
      /** @type {?} */

      var LAYOUT_VALUES = ['row', 'column', 'row-reverse', 'column-reverse'];
      /**
       * Validate the direction|'direction wrap' value and then update the host's inline flexbox styles
       * @param {?} value
       * @return {?}
       */

      function buildLayoutCSS(value) {
        var _validateValue3 = validateValue(value),
            _validateValue4 = _slicedToArray(_validateValue3, 3),
            direction = _validateValue4[0],
            wrap = _validateValue4[1],
            isInline = _validateValue4[2];

        return buildCSS(direction, wrap, isInline);
      }
      /**
       * Validate the value to be one of the acceptable value options
       * Use default fallback of 'row'
       * @param {?} value
       * @return {?}
       */


      function validateValue(value) {
        value = value ? value.toLowerCase() : '';

        var _value$split3 = value.split(' '),
            _value$split4 = _slicedToArray(_value$split3, 3),
            direction = _value$split4[0],
            wrap = _value$split4[1],
            inline = _value$split4[2]; // First value must be the `flex-direction`


        if (!LAYOUT_VALUES.find(
        /**
        * @param {?} x
        * @return {?}
        */
        function (x) {
          return x === direction;
        })) {
          direction = LAYOUT_VALUES[0];
        }

        if (wrap === INLINE) {
          wrap = inline !== INLINE ? inline : '';
          inline = INLINE;
        }

        return [direction, validateWrapValue(wrap), !!inline];
      }
      /**
       * Determine if the validated, flex-direction value specifies
       * a horizontal/row flow.
       * @param {?} value
       * @return {?}
       */


      function isFlowHorizontal(value) {
        var _validateValue5 = validateValue(value),
            _validateValue6 = _slicedToArray(_validateValue5, 1),
            flow = _validateValue6[0];

        return flow.indexOf('row') > -1;
      }
      /**
       * Convert layout-wrap='<value>' to expected flex-wrap style
       * @param {?} value
       * @return {?}
       */


      function validateWrapValue(value) {
        if (!!value) {
          switch (value.toLowerCase()) {
            case 'reverse':
            case 'wrap-reverse':
            case 'reverse-wrap':
              value = 'wrap-reverse';
              break;

            case 'no':
            case 'none':
            case 'nowrap':
              value = 'nowrap';
              break;
            // All other values fallback to 'wrap'

            default:
              value = 'wrap';
              break;
          }
        }

        return value;
      }
      /**
       * Build the CSS that should be assigned to the element instance
       * BUG:
       *   1) min-height on a column flex container won’t apply to its flex item children in IE 10-11.
       *      Use height instead if possible; height : <xxx>vh;
       *
       *  This way any padding or border specified on the child elements are
       *  laid out and drawn inside that element's specified width and height.
       * @param {?} direction
       * @param {?=} wrap
       * @param {?=} inline
       * @return {?}
       */


      function buildCSS(direction) {
        var wrap = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
        var inline = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
        return {
          'display': inline ? 'inline-flex' : 'flex',
          'box-sizing': 'border-box',
          'flex-direction': direction,
          'flex-wrap': !!wrap ? wrap : null
        };
      }
      /**
       * @fileoverview added by tsickle
       * Generated from: flex/layout/layout.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */


      var LayoutStyleBuilder =
      /** @class */
      function () {
        var LayoutStyleBuilder = /*#__PURE__*/function (_angular_flex_layout_23) {
          _inherits2(LayoutStyleBuilder, _angular_flex_layout_23);

          var _super318 = _createSuper2(LayoutStyleBuilder);

          function LayoutStyleBuilder() {
            _classCallCheck2(this, LayoutStyleBuilder);

            return _super318.apply(this, arguments);
          }

          _createClass2(LayoutStyleBuilder, [{
            key: "buildStyles",
            value:
            /**
             * @param {?} input
             * @return {?}
             */
            function buildStyles(input) {
              return buildLayoutCSS(input);
            }
          }]);

          return LayoutStyleBuilder;
        }(_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleBuilder"]);

        LayoutStyleBuilder.ɵfac = function LayoutStyleBuilder_Factory(t) {
          return ɵLayoutStyleBuilder_BaseFactory(t || LayoutStyleBuilder);
        };
        /** @nocollapse */


        LayoutStyleBuilder.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({
          factory: function LayoutStyleBuilder_Factory() {
            return new LayoutStyleBuilder();
          },
          token: LayoutStyleBuilder,
          providedIn: "root"
        });

        var ɵLayoutStyleBuilder_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](LayoutStyleBuilder);
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](LayoutStyleBuilder, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
            args: [{
              providedIn: 'root'
            }]
          }], null, null);
        })();

        return LayoutStyleBuilder;
      }();
      /** @type {?} */


      var inputs = ['fxLayout', 'fxLayout.xs', 'fxLayout.sm', 'fxLayout.md', 'fxLayout.lg', 'fxLayout.xl', 'fxLayout.lt-sm', 'fxLayout.lt-md', 'fxLayout.lt-lg', 'fxLayout.lt-xl', 'fxLayout.gt-xs', 'fxLayout.gt-sm', 'fxLayout.gt-md', 'fxLayout.gt-lg'];
      /** @type {?} */

      var selector = "\n  [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md],\n  [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md],\n  [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm],\n  [fxLayout.gt-md], [fxLayout.gt-lg]\n";
      /**
       * 'layout' flexbox styling directive
       * Defines the positioning flow direction for the child elements: row or column
       * Optional values: column or row (default)
       * @see https://css-tricks.com/almanac/properties/f/flex-direction/
       *
       */

      var LayoutDirective =
      /** @class */
      function () {
        /**
         * 'layout' flexbox styling directive
         * Defines the positioning flow direction for the child elements: row or column
         * Optional values: column or row (default)
         * @see https://css-tricks.com/almanac/properties/f/flex-direction/
         *
         */
        var LayoutDirective = /*#__PURE__*/function (_angular_flex_layout_24) {
          _inherits2(LayoutDirective, _angular_flex_layout_24);

          var _super319 = _createSuper2(LayoutDirective);

          /**
           * @param {?} elRef
           * @param {?} styleUtils
           * @param {?} styleBuilder
           * @param {?} marshal
           */
          function LayoutDirective(elRef, styleUtils, styleBuilder, marshal) {
            var _this644;

            _classCallCheck2(this, LayoutDirective);

            _this644 = _super319.call(this, elRef, styleBuilder, styleUtils, marshal);
            _this644.DIRECTIVE_KEY = 'layout';
            _this644.styleCache = layoutCache;

            _this644.init();

            return _this644;
          }

          return LayoutDirective;
        }(_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["BaseDirective2"]);

        LayoutDirective.ɵfac = function LayoutDirective_Factory(t) {
          return new (t || LayoutDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](LayoutStyleBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["MediaMarshaller"]));
        };

        LayoutDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
          type: LayoutDirective,
          features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
        });
        /** @nocollapse */

        LayoutDirective.ctorParameters = function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
          }, {
            type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]
          }, {
            type: LayoutStyleBuilder
          }, {
            type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["MediaMarshaller"]
          }];
        };
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](LayoutDirective, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"]
          }], function () {
            return [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
            }, {
              type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]
            }, {
              type: LayoutStyleBuilder
            }, {
              type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["MediaMarshaller"]
            }];
          }, null);
        })();

        return LayoutDirective;
      }();

      var DefaultLayoutDirective =
      /** @class */
      function () {
        var DefaultLayoutDirective = /*#__PURE__*/function (_LayoutDirective) {
          _inherits2(DefaultLayoutDirective, _LayoutDirective);

          var _super320 = _createSuper2(DefaultLayoutDirective);

          function DefaultLayoutDirective() {
            var _this645;

            _classCallCheck2(this, DefaultLayoutDirective);

            _this645 = _super320.apply(this, arguments);
            _this645.inputs = inputs;
            return _this645;
          }

          return DefaultLayoutDirective;
        }(LayoutDirective);

        DefaultLayoutDirective.ɵfac = function DefaultLayoutDirective_Factory(t) {
          return ɵDefaultLayoutDirective_BaseFactory(t || DefaultLayoutDirective);
        };

        DefaultLayoutDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
          type: DefaultLayoutDirective,
          selectors: [["", "fxLayout", ""], ["", "fxLayout.xs", ""], ["", "fxLayout.sm", ""], ["", "fxLayout.md", ""], ["", "fxLayout.lg", ""], ["", "fxLayout.xl", ""], ["", "fxLayout.lt-sm", ""], ["", "fxLayout.lt-md", ""], ["", "fxLayout.lt-lg", ""], ["", "fxLayout.lt-xl", ""], ["", "fxLayout.gt-xs", ""], ["", "fxLayout.gt-sm", ""], ["", "fxLayout.gt-md", ""], ["", "fxLayout.gt-lg", ""]],
          inputs: {
            fxLayout: "fxLayout",
            "fxLayout.xs": "fxLayout.xs",
            "fxLayout.sm": "fxLayout.sm",
            "fxLayout.md": "fxLayout.md",
            "fxLayout.lg": "fxLayout.lg",
            "fxLayout.xl": "fxLayout.xl",
            "fxLayout.lt-sm": "fxLayout.lt-sm",
            "fxLayout.lt-md": "fxLayout.lt-md",
            "fxLayout.lt-lg": "fxLayout.lt-lg",
            "fxLayout.lt-xl": "fxLayout.lt-xl",
            "fxLayout.gt-xs": "fxLayout.gt-xs",
            "fxLayout.gt-sm": "fxLayout.gt-sm",
            "fxLayout.gt-md": "fxLayout.gt-md",
            "fxLayout.gt-lg": "fxLayout.gt-lg"
          },
          features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
        });

        var ɵDefaultLayoutDirective_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](DefaultLayoutDirective);
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](DefaultLayoutDirective, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
            args: [{
              selector: selector,
              inputs: inputs
            }]
          }], null, null);
        })();

        return DefaultLayoutDirective;
      }();
      /** @type {?} */


      var layoutCache = new Map();
      /**
       * @fileoverview added by tsickle
       * Generated from: flex/layout-gap/layout-gap.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /** @type {?} */

      var CLEAR_MARGIN_CSS = {
        'margin-left': null,
        'margin-right': null,
        'margin-top': null,
        'margin-bottom': null
      };

      var LayoutGapStyleBuilder =
      /** @class */
      function () {
        var LayoutGapStyleBuilder = /*#__PURE__*/function (_angular_flex_layout_25) {
          _inherits2(LayoutGapStyleBuilder, _angular_flex_layout_25);

          var _super321 = _createSuper2(LayoutGapStyleBuilder);

          /**
           * @param {?} _styler
           */
          function LayoutGapStyleBuilder(_styler) {
            var _this646;

            _classCallCheck2(this, LayoutGapStyleBuilder);

            _this646 = _super321.call(this);
            _this646._styler = _styler;
            return _this646;
          }
          /**
           * @param {?} gapValue
           * @param {?} parent
           * @return {?}
           */


          _createClass2(LayoutGapStyleBuilder, [{
            key: "buildStyles",
            value: function buildStyles(gapValue, parent) {
              if (gapValue.endsWith(GRID_SPECIFIER)) {
                gapValue = gapValue.slice(0, gapValue.indexOf(GRID_SPECIFIER)); // Add the margin to the host element

                return buildGridMargin(gapValue, parent.directionality);
              } else {
                return {};
              }
            }
            /**
             * @param {?} gapValue
             * @param {?} _styles
             * @param {?} parent
             * @return {?}
             */

          }, {
            key: "sideEffect",
            value: function sideEffect(gapValue, _styles, parent) {
              /** @type {?} */
              var items = parent.items;

              if (gapValue.endsWith(GRID_SPECIFIER)) {
                gapValue = gapValue.slice(0, gapValue.indexOf(GRID_SPECIFIER)); // For each `element` children, set the padding

                /** @type {?} */

                var paddingStyles = buildGridPadding(gapValue, parent.directionality);

                this._styler.applyStyleToElements(paddingStyles, parent.items);
              } else {
                /** @type {?} */
                var lastItem = items.pop(); // For each `element` children EXCEPT the last,
                // set the margin right/bottom styles...

                /** @type {?} */

                var gapCss = buildGapCSS(gapValue, parent);

                this._styler.applyStyleToElements(gapCss, items); // Clear all gaps for all visible elements


                this._styler.applyStyleToElements(CLEAR_MARGIN_CSS, [lastItem]);
              }
            }
          }]);

          return LayoutGapStyleBuilder;
        }(_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleBuilder"]);

        LayoutGapStyleBuilder.ɵfac = function LayoutGapStyleBuilder_Factory(t) {
          return new (t || LayoutGapStyleBuilder)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]));
        };
        /** @nocollapse */


        LayoutGapStyleBuilder.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({
          factory: function LayoutGapStyleBuilder_Factory() {
            return new LayoutGapStyleBuilder(Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]));
          },
          token: LayoutGapStyleBuilder,
          providedIn: "root"
        });
        /** @nocollapse */

        LayoutGapStyleBuilder.ctorParameters = function () {
          return [{
            type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]
          }];
        };
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](LayoutGapStyleBuilder, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
            args: [{
              providedIn: 'root'
            }]
          }], function () {
            return [{
              type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]
            }];
          }, null);
        })();

        return LayoutGapStyleBuilder;
      }();
      /** @type {?} */


      var inputs$1 = ['fxLayoutGap', 'fxLayoutGap.xs', 'fxLayoutGap.sm', 'fxLayoutGap.md', 'fxLayoutGap.lg', 'fxLayoutGap.xl', 'fxLayoutGap.lt-sm', 'fxLayoutGap.lt-md', 'fxLayoutGap.lt-lg', 'fxLayoutGap.lt-xl', 'fxLayoutGap.gt-xs', 'fxLayoutGap.gt-sm', 'fxLayoutGap.gt-md', 'fxLayoutGap.gt-lg'];
      /** @type {?} */

      var selector$1 = "\n  [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md],\n  [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md],\n  [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm],\n  [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]\n";
      /**
       * 'layout-padding' styling directive
       *  Defines padding of child elements in a layout container
       */

      var LayoutGapDirective =
      /** @class */
      function () {
        /**
         * 'layout-padding' styling directive
         *  Defines padding of child elements in a layout container
         */
        var LayoutGapDirective = /*#__PURE__*/function (_angular_flex_layout_26) {
          _inherits2(LayoutGapDirective, _angular_flex_layout_26);

          var _super322 = _createSuper2(LayoutGapDirective);

          /**
           * @param {?} elRef
           * @param {?} zone
           * @param {?} directionality
           * @param {?} styleUtils
           * @param {?} styleBuilder
           * @param {?} marshal
           */
          function LayoutGapDirective(elRef, zone, directionality, styleUtils, styleBuilder, marshal) {
            var _this647;

            _classCallCheck2(this, LayoutGapDirective);

            _this647 = _super322.call(this, elRef, styleBuilder, styleUtils, marshal);
            _this647.zone = zone;
            _this647.directionality = directionality;
            _this647.styleUtils = styleUtils;
            _this647.layout = 'row'; // default flex-direction
            // default flex-direction

            _this647.DIRECTIVE_KEY = 'layout-gap';
            _this647.observerSubject = new rxjs__WEBPACK_IMPORTED_MODULE_3__["Subject"]();
            /** @type {?} */

            var extraTriggers = [_this647.directionality.change, _this647.observerSubject.asObservable()];

            _this647.init(extraTriggers);

            _this647.marshal.trackValue(_this647.nativeElement, 'layout').pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["takeUntil"])(_this647.destroySubject)).subscribe(_this647.onLayoutChange.bind(_assertThisInitialized2(_this647)));

            return _this647;
          }
          /**
           * Special accessor to query for all child 'element' nodes regardless of type, class, etc
           * @protected
           * @return {?}
           */


          _createClass2(LayoutGapDirective, [{
            key: "childrenNodes",
            get: function get() {
              /** @type {?} */
              var obj = this.nativeElement.children;
              /** @type {?} */

              var buffer = []; // iterate backwards ensuring that length is an UInt32

              for (var i = obj.length; i--;) {
                buffer[i] = obj[i];
              }

              return buffer;
            } // *********************************************
            // Lifecycle Methods
            // *********************************************

            /**
             * @return {?}
             */

          }, {
            key: "ngAfterContentInit",
            value: function ngAfterContentInit() {
              this.buildChildObservable();
              this.triggerUpdate();
            }
            /**
             * @return {?}
             */

          }, {
            key: "ngOnDestroy",
            value: function ngOnDestroy() {
              _get2(_getPrototypeOf2(LayoutGapDirective.prototype), "ngOnDestroy", this).call(this);

              if (this.observer) {
                this.observer.disconnect();
              }
            } // *********************************************
            // Protected methods
            // *********************************************

            /**
             * Cache the parent container 'flex-direction' and update the 'margin' styles
             * @protected
             * @param {?} matcher
             * @return {?}
             */

          }, {
            key: "onLayoutChange",
            value: function onLayoutChange(matcher) {
              var _this648 = this;

              /** @type {?} */
              var layout = matcher.value; // Make sure to filter out 'wrap' option

              /** @type {?} */

              var direction = layout.split(' ');
              this.layout = direction[0];

              if (!LAYOUT_VALUES.find(
              /**
              * @param {?} x
              * @return {?}
              */
              function (x) {
                return x === _this648.layout;
              })) {
                this.layout = 'row';
              }

              this.triggerUpdate();
            }
            /**
             *
             * @protected
             * @param {?} value
             * @return {?}
             */

          }, {
            key: "updateWithValue",
            value: function updateWithValue(value) {
              var _this649 = this;

              // Gather all non-hidden Element nodes

              /** @type {?} */
              var items = this.childrenNodes.filter(
              /**
              * @param {?} el
              * @return {?}
              */
              function (el) {
                return el.nodeType === 1 && _this649.willDisplay(el);
              }).sort(
              /**
              * @param {?} a
              * @param {?} b
              * @return {?}
              */
              function (a, b) {
                /** @type {?} */
                var orderA = +_this649.styler.lookupStyle(a, 'order');
                /** @type {?} */

                var orderB = +_this649.styler.lookupStyle(b, 'order');

                if (isNaN(orderA) || isNaN(orderB) || orderA === orderB) {
                  return 0;
                } else {
                  return orderA > orderB ? 1 : -1;
                }
              });

              if (items.length > 0) {
                /** @type {?} */
                var directionality = this.directionality.value;
                /** @type {?} */

                var layout = this.layout;

                if (layout === 'row' && directionality === 'rtl') {
                  this.styleCache = layoutGapCacheRowRtl;
                } else if (layout === 'row' && directionality !== 'rtl') {
                  this.styleCache = layoutGapCacheRowLtr;
                } else if (layout === 'column' && directionality === 'rtl') {
                  this.styleCache = layoutGapCacheColumnRtl;
                } else if (layout === 'column' && directionality !== 'rtl') {
                  this.styleCache = layoutGapCacheColumnLtr;
                }

                this.addStyles(value, {
                  directionality: directionality,
                  items: items,
                  layout: layout
                });
              }
            }
            /**
             * We need to override clearStyles because in most cases mru isn't populated
             * @protected
             * @return {?}
             */

          }, {
            key: "clearStyles",
            value: function clearStyles() {
              /** @type {?} */
              var gridMode = Object.keys(this.mru).length > 0;
              /** @type {?} */

              var childrenStyle = gridMode ? 'padding' : getMarginType(this.directionality.value, this.layout); // If there are styles on the parent remove them

              if (gridMode) {
                _get2(_getPrototypeOf2(LayoutGapDirective.prototype), "clearStyles", this).call(this);
              } // Then remove the children styles too


              this.styleUtils.applyStyleToElements(_defineProperty({}, childrenStyle, ''), this.childrenNodes);
            }
            /**
             * Determine if an element will show or hide based on current activation
             * @protected
             * @param {?} source
             * @return {?}
             */

          }, {
            key: "willDisplay",
            value: function willDisplay(source) {
              /** @type {?} */
              var value = this.marshal.getValue(source, 'show-hide');
              return value === true || value === undefined && this.styleUtils.lookupStyle(source, 'display') !== 'none';
            }
            /**
             * @protected
             * @return {?}
             */

          }, {
            key: "buildChildObservable",
            value: function buildChildObservable() {
              var _this650 = this;

              this.zone.runOutsideAngular(
              /**
              * @return {?}
              */
              function () {
                if (typeof MutationObserver !== 'undefined') {
                  _this650.observer = new MutationObserver(
                  /**
                  * @param {?} mutations
                  * @return {?}
                  */
                  function (mutations) {
                    /** @type {?} */
                    var validatedChanges =
                    /**
                    * @param {?} it
                    * @return {?}
                    */
                    function validatedChanges(it) {
                      return it.addedNodes && it.addedNodes.length > 0 || it.removedNodes && it.removedNodes.length > 0;
                    }; // update gap styles only for child 'added' or 'removed' events


                    if (mutations.some(validatedChanges)) {
                      _this650.observerSubject.next();
                    }
                  });

                  _this650.observer.observe(_this650.nativeElement, {
                    childList: true
                  });
                }
              });
            }
          }]);

          return LayoutGapDirective;
        }(_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["BaseDirective2"]);

        LayoutGapDirective.ɵfac = function LayoutGapDirective_Factory(t) {
          return new (t || LayoutGapDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_2__["Directionality"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](LayoutGapStyleBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["MediaMarshaller"]));
        };

        LayoutGapDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
          type: LayoutGapDirective,
          features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
        });
        /** @nocollapse */

        LayoutGapDirective.ctorParameters = function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"]
          }, {
            type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_2__["Directionality"]
          }, {
            type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]
          }, {
            type: LayoutGapStyleBuilder
          }, {
            type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["MediaMarshaller"]
          }];
        };
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](LayoutGapDirective, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"]
          }], function () {
            return [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"]
            }, {
              type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_2__["Directionality"]
            }, {
              type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]
            }, {
              type: LayoutGapStyleBuilder
            }, {
              type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["MediaMarshaller"]
            }];
          }, null);
        })();

        return LayoutGapDirective;
      }();

      var DefaultLayoutGapDirective =
      /** @class */
      function () {
        var DefaultLayoutGapDirective = /*#__PURE__*/function (_LayoutGapDirective) {
          _inherits2(DefaultLayoutGapDirective, _LayoutGapDirective);

          var _super323 = _createSuper2(DefaultLayoutGapDirective);

          function DefaultLayoutGapDirective() {
            var _this651;

            _classCallCheck2(this, DefaultLayoutGapDirective);

            _this651 = _super323.apply(this, arguments);
            _this651.inputs = inputs$1;
            return _this651;
          }

          return DefaultLayoutGapDirective;
        }(LayoutGapDirective);

        DefaultLayoutGapDirective.ɵfac = function DefaultLayoutGapDirective_Factory(t) {
          return ɵDefaultLayoutGapDirective_BaseFactory(t || DefaultLayoutGapDirective);
        };

        DefaultLayoutGapDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
          type: DefaultLayoutGapDirective,
          selectors: [["", "fxLayoutGap", ""], ["", "fxLayoutGap.xs", ""], ["", "fxLayoutGap.sm", ""], ["", "fxLayoutGap.md", ""], ["", "fxLayoutGap.lg", ""], ["", "fxLayoutGap.xl", ""], ["", "fxLayoutGap.lt-sm", ""], ["", "fxLayoutGap.lt-md", ""], ["", "fxLayoutGap.lt-lg", ""], ["", "fxLayoutGap.lt-xl", ""], ["", "fxLayoutGap.gt-xs", ""], ["", "fxLayoutGap.gt-sm", ""], ["", "fxLayoutGap.gt-md", ""], ["", "fxLayoutGap.gt-lg", ""]],
          inputs: {
            fxLayoutGap: "fxLayoutGap",
            "fxLayoutGap.xs": "fxLayoutGap.xs",
            "fxLayoutGap.sm": "fxLayoutGap.sm",
            "fxLayoutGap.md": "fxLayoutGap.md",
            "fxLayoutGap.lg": "fxLayoutGap.lg",
            "fxLayoutGap.xl": "fxLayoutGap.xl",
            "fxLayoutGap.lt-sm": "fxLayoutGap.lt-sm",
            "fxLayoutGap.lt-md": "fxLayoutGap.lt-md",
            "fxLayoutGap.lt-lg": "fxLayoutGap.lt-lg",
            "fxLayoutGap.lt-xl": "fxLayoutGap.lt-xl",
            "fxLayoutGap.gt-xs": "fxLayoutGap.gt-xs",
            "fxLayoutGap.gt-sm": "fxLayoutGap.gt-sm",
            "fxLayoutGap.gt-md": "fxLayoutGap.gt-md",
            "fxLayoutGap.gt-lg": "fxLayoutGap.gt-lg"
          },
          features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
        });

        var ɵDefaultLayoutGapDirective_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](DefaultLayoutGapDirective);
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](DefaultLayoutGapDirective, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
            args: [{
              selector: selector$1,
              inputs: inputs$1
            }]
          }], null, null);
        })();

        return DefaultLayoutGapDirective;
      }();
      /** @type {?} */


      var layoutGapCacheRowRtl = new Map();
      /** @type {?} */

      var layoutGapCacheColumnRtl = new Map();
      /** @type {?} */

      var layoutGapCacheRowLtr = new Map();
      /** @type {?} */

      var layoutGapCacheColumnLtr = new Map();
      /** @type {?} */

      var GRID_SPECIFIER = ' grid';
      /**
       * @param {?} value
       * @param {?} directionality
       * @return {?}
       */

      function buildGridPadding(value, directionality) {
        var _value$split5 = value.split(' '),
            _value$split6 = _slicedToArray(_value$split5, 2),
            between = _value$split6[0],
            below = _value$split6[1];
        /** @type {?} */


        var bottom = below || between;
        /** @type {?} */

        var paddingRight = '0px';
        /** @type {?} */

        var paddingBottom = bottom;
        /** @type {?} */

        var paddingLeft = '0px';

        if (directionality === 'rtl') {
          paddingLeft = between;
        } else {
          paddingRight = between;
        }

        return {
          'padding': "0px ".concat(paddingRight, " ").concat(paddingBottom, " ").concat(paddingLeft)
        };
      }
      /**
       * @param {?} value
       * @param {?} directionality
       * @return {?}
       */


      function buildGridMargin(value, directionality) {
        var _value$split7 = value.split(' '),
            _value$split8 = _slicedToArray(_value$split7, 2),
            between = _value$split8[0],
            below = _value$split8[1];
        /** @type {?} */


        var bottom = below || between;
        /** @type {?} */

        var minus =
        /**
        * @param {?} str
        * @return {?}
        */
        function minus(str) {
          return "-".concat(str);
        };
        /** @type {?} */


        var marginRight = '0px';
        /** @type {?} */

        var marginBottom = minus(bottom);
        /** @type {?} */

        var marginLeft = '0px';

        if (directionality === 'rtl') {
          marginLeft = minus(between);
        } else {
          marginRight = minus(between);
        }

        return {
          'margin': "0px ".concat(marginRight, " ").concat(marginBottom, " ").concat(marginLeft)
        };
      }
      /**
       * @param {?} directionality
       * @param {?} layout
       * @return {?}
       */


      function getMarginType(directionality, layout) {
        switch (layout) {
          case 'column':
            return 'margin-bottom';

          case 'column-reverse':
            return 'margin-top';

          case 'row':
            return directionality === 'rtl' ? 'margin-left' : 'margin-right';

          case 'row-reverse':
            return directionality === 'rtl' ? 'margin-right' : 'margin-left';

          default:
            return directionality === 'rtl' ? 'margin-left' : 'margin-right';
        }
      }
      /**
       * @param {?} gapValue
       * @param {?} parent
       * @return {?}
       */


      function buildGapCSS(gapValue, parent) {
        /** @type {?} */
        var key = getMarginType(parent.directionality, parent.layout);
        /** @type {?} */

        var margins = Object.assign({}, CLEAR_MARGIN_CSS);
        margins[key] = gapValue;
        return margins;
      }
      /**
       * @fileoverview added by tsickle
       * Generated from: utils/object-extend.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * Extends an object with the *enumerable* and *own* properties of one or more source objects,
       * similar to Object.assign.
       *
       * @param {?} dest The object which will have properties copied to it.
       * @param {...?} sources The source objects from which properties will be copied.
       * @return {?}
       */


      function extendObject(dest) {
        if (dest == null) {
          throw TypeError('Cannot convert undefined or null to object');
        }

        for (var _len59 = arguments.length, sources = new Array(_len59 > 1 ? _len59 - 1 : 0), _key61 = 1; _key61 < _len59; _key61++) {
          sources[_key61 - 1] = arguments[_key61];
        }

        for (var _i39 = 0, _sources2 = sources; _i39 < _sources2.length; _i39++) {
          var source = _sources2[_i39];

          if (source != null) {
            for (var key in source) {
              if (source.hasOwnProperty(key)) {
                dest[key] = source[key];
              }
            }
          }
        }

        return dest;
      }
      /**
       * @fileoverview added by tsickle
       * Generated from: flex/flex/flex.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */


      var FlexStyleBuilder =
      /** @class */
      function () {
        var FlexStyleBuilder = /*#__PURE__*/function (_angular_flex_layout_27) {
          _inherits2(FlexStyleBuilder, _angular_flex_layout_27);

          var _super324 = _createSuper2(FlexStyleBuilder);

          /**
           * @param {?} layoutConfig
           */
          function FlexStyleBuilder(layoutConfig) {
            var _this652;

            _classCallCheck2(this, FlexStyleBuilder);

            _this652 = _super324.call(this);
            _this652.layoutConfig = layoutConfig;
            return _this652;
          }
          /**
           * @param {?} input
           * @param {?} parent
           * @return {?}
           */


          _createClass2(FlexStyleBuilder, [{
            key: "buildStyles",
            value: function buildStyles(input, parent) {
              var _input$split3 = input.split(' '),
                  _input$split4 = _toArray(_input$split3),
                  grow = _input$split4[0],
                  shrink = _input$split4[1],
                  basisParts = _input$split4.slice(2);
              /** @type {?} */


              var basis = basisParts.join(' '); // The flex-direction of this element's flex container. Defaults to 'row'.

              /** @type {?} */

              var direction = parent.direction.indexOf('column') > -1 ? 'column' : 'row';
              /** @type {?} */

              var max = isFlowHorizontal(direction) ? 'max-width' : 'max-height';
              /** @type {?} */

              var min = isFlowHorizontal(direction) ? 'min-width' : 'min-height';
              /** @type {?} */

              var hasCalc = String(basis).indexOf('calc') > -1;
              /** @type {?} */

              var usingCalc = hasCalc || basis === 'auto';
              /** @type {?} */

              var isPercent = String(basis).indexOf('%') > -1 && !hasCalc;
              /** @type {?} */

              var hasUnits = String(basis).indexOf('px') > -1 || String(basis).indexOf('rem') > -1 || String(basis).indexOf('em') > -1 || String(basis).indexOf('vw') > -1 || String(basis).indexOf('vh') > -1;
              /** @type {?} */

              var isValue = hasCalc || hasUnits;
              grow = grow == '0' ? 0 : grow;
              shrink = shrink == '0' ? 0 : shrink; // make box inflexible when shrink and grow are both zero
              // should not set a min when the grow is zero
              // should not set a max when the shrink is zero

              /** @type {?} */

              var isFixed = !grow && !shrink;
              /** @type {?} */

              var css = {}; // flex-basis allows you to specify the initial/starting main-axis size of the element,
              // before anything else is computed. It can either be a percentage or an absolute value.
              // It is, however, not the breaking point for flex-grow/shrink properties
              //
              // flex-grow can be seen as this:
              //   0: Do not stretch. Either size to element's content width, or obey 'flex-basis'.
              //   1: (Default value). Stretch; will be the same size to all other flex items on
              //       the same row since they have a default value of 1.
              //   ≥2 (integer n): Stretch. Will be n times the size of other elements
              //      with 'flex-grow: 1' on the same row.
              // Use `null` to clear existing styles.

              /** @type {?} */

              var clearStyles = {
                'max-width': null,
                'max-height': null,
                'min-width': null,
                'min-height': null
              };

              switch (basis || '') {
                case '':
                  /** @type {?} */
                  var useColumnBasisZero = this.layoutConfig.useColumnBasisZero !== false;
                  basis = direction === 'row' ? '0%' : useColumnBasisZero ? '0.000000001px' : 'auto';
                  break;

                case 'initial': // default

                case 'nogrow':
                  grow = 0;
                  basis = 'auto';
                  break;

                case 'grow':
                  basis = '100%';
                  break;

                case 'noshrink':
                  shrink = 0;
                  basis = 'auto';
                  break;

                case 'auto':
                  break;

                case 'none':
                  grow = 0;
                  shrink = 0;
                  basis = 'auto';
                  break;

                default:
                  // Defaults to percentage sizing unless `px` is explicitly set
                  if (!isValue && !isPercent && !isNaN(basis)) {
                    basis = basis + '%';
                  } // Fix for issue 280


                  if (basis === '0%') {
                    isValue = true;
                  }

                  if (basis === '0px') {
                    basis = '0%';
                  } // fix issue #5345


                  if (hasCalc) {
                    css = extendObject(clearStyles, {
                      'flex-grow': grow,
                      'flex-shrink': shrink,
                      'flex-basis': isValue ? basis : '100%'
                    });
                  } else {
                    css = extendObject(clearStyles, {
                      'flex': "".concat(grow, " ").concat(shrink, " ").concat(isValue ? basis : '100%')
                    });
                  }

                  break;
              }

              if (!(css['flex'] || css['flex-grow'])) {
                if (hasCalc) {
                  css = extendObject(clearStyles, {
                    'flex-grow': grow,
                    'flex-shrink': shrink,
                    'flex-basis': basis
                  });
                } else {
                  css = extendObject(clearStyles, {
                    'flex': "".concat(grow, " ").concat(shrink, " ").concat(basis)
                  });
                }
              } // Fix for issues 277, 534, and 728


              if (basis !== '0%' && basis !== '0px' && basis !== '0.000000001px' && basis !== 'auto') {
                css[min] = isFixed || isValue && grow ? basis : null;
                css[max] = isFixed || !usingCalc && shrink ? basis : null;
              } // Fix for issue 528


              if (!css[min] && !css[max]) {
                if (hasCalc) {
                  css = extendObject(clearStyles, {
                    'flex-grow': grow,
                    'flex-shrink': shrink,
                    'flex-basis': basis
                  });
                } else {
                  css = extendObject(clearStyles, {
                    'flex': "".concat(grow, " ").concat(shrink, " ").concat(basis)
                  });
                }
              } else {
                // Fix for issue 660
                if (parent.hasWrap) {
                  css[hasCalc ? 'flex-basis' : 'flex'] = css[max] ? hasCalc ? css[max] : "".concat(grow, " ").concat(shrink, " ").concat(css[max]) : hasCalc ? css[min] : "".concat(grow, " ").concat(shrink, " ").concat(css[min]);
                }
              }

              return extendObject(css, {
                'box-sizing': 'border-box'
              });
            }
          }]);

          return FlexStyleBuilder;
        }(_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleBuilder"]);

        FlexStyleBuilder.ɵfac = function FlexStyleBuilder_Factory(t) {
          return new (t || FlexStyleBuilder)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["LAYOUT_CONFIG"]));
        };
        /** @nocollapse */


        FlexStyleBuilder.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({
          factory: function FlexStyleBuilder_Factory() {
            return new FlexStyleBuilder(Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["LAYOUT_CONFIG"]));
          },
          token: FlexStyleBuilder,
          providedIn: "root"
        });
        /** @nocollapse */

        FlexStyleBuilder.ctorParameters = function () {
          return [{
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["LAYOUT_CONFIG"]]
            }]
          }];
        };
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](FlexStyleBuilder, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
            args: [{
              providedIn: 'root'
            }]
          }], function () {
            return [{
              type: undefined,
              decorators: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
                args: [_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["LAYOUT_CONFIG"]]
              }]
            }];
          }, null);
        })();

        return FlexStyleBuilder;
      }();
      /** @type {?} */


      var inputs$2 = ['fxFlex', 'fxFlex.xs', 'fxFlex.sm', 'fxFlex.md', 'fxFlex.lg', 'fxFlex.xl', 'fxFlex.lt-sm', 'fxFlex.lt-md', 'fxFlex.lt-lg', 'fxFlex.lt-xl', 'fxFlex.gt-xs', 'fxFlex.gt-sm', 'fxFlex.gt-md', 'fxFlex.gt-lg'];
      /** @type {?} */

      var selector$2 = "\n  [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md],\n  [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md],\n  [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm],\n  [fxFlex.gt-md], [fxFlex.gt-lg]\n";
      /**
       * Directive to control the size of a flex item using flex-basis, flex-grow, and flex-shrink.
       * Corresponds to the css `flex` shorthand property.
       *
       * @see https://css-tricks.com/snippets/css/a-guide-to-flexbox/
       */

      var FlexDirective =
      /** @class */
      function () {
        /**
         * Directive to control the size of a flex item using flex-basis, flex-grow, and flex-shrink.
         * Corresponds to the css `flex` shorthand property.
         *
         * @see https://css-tricks.com/snippets/css/a-guide-to-flexbox/
         */
        var FlexDirective = /*#__PURE__*/function (_angular_flex_layout_28) {
          _inherits2(FlexDirective, _angular_flex_layout_28);

          var _super325 = _createSuper2(FlexDirective);

          /**
           * @param {?} elRef
           * @param {?} styleUtils
           * @param {?} layoutConfig
           * @param {?} styleBuilder
           * @param {?} marshal
           */
          function FlexDirective(elRef, styleUtils, layoutConfig, styleBuilder, marshal) {
            var _this653;

            _classCallCheck2(this, FlexDirective);

            _this653 = _super325.call(this, elRef, styleBuilder, styleUtils, marshal);
            _this653.layoutConfig = layoutConfig;
            _this653.marshal = marshal;
            _this653.DIRECTIVE_KEY = 'flex';
            _this653.direction = undefined;
            _this653.wrap = undefined;
            _this653.flexGrow = '1';
            _this653.flexShrink = '1';

            _this653.init();

            return _this653;
          }
          /**
           * @return {?}
           */


          _createClass2(FlexDirective, [{
            key: "shrink",
            get: function get() {
              return this.flexShrink;
            }
            /**
             * @param {?} value
             * @return {?}
             */
            ,
            set: function set(value) {
              this.flexShrink = value || '1';
              this.triggerReflow();
            }
            /**
             * @return {?}
             */

          }, {
            key: "grow",
            get: function get() {
              return this.flexGrow;
            }
            /**
             * @param {?} value
             * @return {?}
             */
            ,
            set: function set(value) {
              this.flexGrow = value || '1';
              this.triggerReflow();
            }
            /**
             * @return {?}
             */

          }, {
            key: "ngOnInit",
            value: function ngOnInit() {
              if (this.parentElement) {
                this.marshal.trackValue(this.parentElement, 'layout').pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["takeUntil"])(this.destroySubject)).subscribe(this.onLayoutChange.bind(this));
                this.marshal.trackValue(this.nativeElement, 'layout-align').pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["takeUntil"])(this.destroySubject)).subscribe(this.triggerReflow.bind(this));
              }
            }
            /**
             * Caches the parent container's 'flex-direction' and updates the element's style.
             * Used as a handler for layout change events from the parent flex container.
             * @protected
             * @param {?} matcher
             * @return {?}
             */

          }, {
            key: "onLayoutChange",
            value: function onLayoutChange(matcher) {
              /** @type {?} */
              var layout = matcher.value;
              /** @type {?} */

              var layoutParts = layout.split(' ');
              this.direction = layoutParts[0];
              this.wrap = layoutParts[1] !== undefined && layoutParts[1] === 'wrap';
              this.triggerUpdate();
            }
            /**
             * Input to this is exclusively the basis input value
             * @protected
             * @param {?} value
             * @return {?}
             */

          }, {
            key: "updateWithValue",
            value: function updateWithValue(value) {
              /** @type {?} */
              var addFlexToParent = this.layoutConfig.addFlexToParent !== false;

              if (this.direction === undefined) {
                this.direction = this.getFlexFlowDirection(this.parentElement, addFlexToParent);
              }

              if (this.wrap === undefined) {
                this.wrap = this.hasWrap(this.parentElement);
              }
              /** @type {?} */


              var direction = this.direction;
              /** @type {?} */

              var isHorizontal = direction.startsWith('row');
              /** @type {?} */

              var hasWrap = this.wrap;

              if (isHorizontal && hasWrap) {
                this.styleCache = flexRowWrapCache;
              } else if (isHorizontal && !hasWrap) {
                this.styleCache = flexRowCache;
              } else if (!isHorizontal && hasWrap) {
                this.styleCache = flexColumnWrapCache;
              } else if (!isHorizontal && !hasWrap) {
                this.styleCache = flexColumnCache;
              }
              /** @type {?} */


              var basis = String(value).replace(';', '');
              /** @type {?} */

              var parts = Object(_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["validateBasis"])(basis, this.flexGrow, this.flexShrink);
              this.addStyles(parts.join(' '), {
                direction: direction,
                hasWrap: hasWrap
              });
            }
            /**
             * Trigger a style reflow, usually based on a shrink/grow input event
             * @protected
             * @return {?}
             */

          }, {
            key: "triggerReflow",
            value: function triggerReflow() {
              /** @type {?} */
              var activatedValue = this.activatedValue;

              if (activatedValue !== undefined) {
                /** @type {?} */
                var parts = Object(_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["validateBasis"])(activatedValue + '', this.flexGrow, this.flexShrink);
                this.marshal.updateElement(this.nativeElement, this.DIRECTIVE_KEY, parts.join(' '));
              }
            }
          }]);

          return FlexDirective;
        }(_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["BaseDirective2"]);

        FlexDirective.ɵfac = function FlexDirective_Factory(t) {
          return new (t || FlexDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["LAYOUT_CONFIG"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](FlexStyleBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["MediaMarshaller"]));
        };

        FlexDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
          type: FlexDirective,
          inputs: {
            shrink: ["fxShrink", "shrink"],
            grow: ["fxGrow", "grow"]
          },
          features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
        });
        /** @nocollapse */

        FlexDirective.ctorParameters = function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
          }, {
            type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["LAYOUT_CONFIG"]]
            }]
          }, {
            type: FlexStyleBuilder
          }, {
            type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["MediaMarshaller"]
          }];
        };

        FlexDirective.propDecorators = {
          shrink: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
            args: ['fxShrink']
          }],
          grow: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
            args: ['fxGrow']
          }]
        };
        /*@__PURE__*/

        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](FlexDirective, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"]
          }], function () {
            return [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
            }, {
              type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]
            }, {
              type: undefined,
              decorators: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
                args: [_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["LAYOUT_CONFIG"]]
              }]
            }, {
              type: FlexStyleBuilder
            }, {
              type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["MediaMarshaller"]
            }];
          }, {
            shrink: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
              args: ['fxShrink']
            }],
            grow: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
              args: ['fxGrow']
            }]
          });
        })();

        return FlexDirective;
      }();

      var DefaultFlexDirective =
      /** @class */
      function () {
        var DefaultFlexDirective = /*#__PURE__*/function (_FlexDirective) {
          _inherits2(DefaultFlexDirective, _FlexDirective);

          var _super326 = _createSuper2(DefaultFlexDirective);

          function DefaultFlexDirective() {
            var _this654;

            _classCallCheck2(this, DefaultFlexDirective);

            _this654 = _super326.apply(this, arguments);
            _this654.inputs = inputs$2;
            return _this654;
          }

          return DefaultFlexDirective;
        }(FlexDirective);

        DefaultFlexDirective.ɵfac = function DefaultFlexDirective_Factory(t) {
          return ɵDefaultFlexDirective_BaseFactory(t || DefaultFlexDirective);
        };

        DefaultFlexDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
          type: DefaultFlexDirective,
          selectors: [["", "fxFlex", ""], ["", "fxFlex.xs", ""], ["", "fxFlex.sm", ""], ["", "fxFlex.md", ""], ["", "fxFlex.lg", ""], ["", "fxFlex.xl", ""], ["", "fxFlex.lt-sm", ""], ["", "fxFlex.lt-md", ""], ["", "fxFlex.lt-lg", ""], ["", "fxFlex.lt-xl", ""], ["", "fxFlex.gt-xs", ""], ["", "fxFlex.gt-sm", ""], ["", "fxFlex.gt-md", ""], ["", "fxFlex.gt-lg", ""]],
          inputs: {
            fxFlex: "fxFlex",
            "fxFlex.xs": "fxFlex.xs",
            "fxFlex.sm": "fxFlex.sm",
            "fxFlex.md": "fxFlex.md",
            "fxFlex.lg": "fxFlex.lg",
            "fxFlex.xl": "fxFlex.xl",
            "fxFlex.lt-sm": "fxFlex.lt-sm",
            "fxFlex.lt-md": "fxFlex.lt-md",
            "fxFlex.lt-lg": "fxFlex.lt-lg",
            "fxFlex.lt-xl": "fxFlex.lt-xl",
            "fxFlex.gt-xs": "fxFlex.gt-xs",
            "fxFlex.gt-sm": "fxFlex.gt-sm",
            "fxFlex.gt-md": "fxFlex.gt-md",
            "fxFlex.gt-lg": "fxFlex.gt-lg"
          },
          features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
        });

        var ɵDefaultFlexDirective_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](DefaultFlexDirective);
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](DefaultFlexDirective, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
            args: [{
              inputs: inputs$2,
              selector: selector$2
            }]
          }], null, null);
        })();

        return DefaultFlexDirective;
      }();
      /** @type {?} */


      var flexRowCache = new Map();
      /** @type {?} */

      var flexColumnCache = new Map();
      /** @type {?} */

      var flexRowWrapCache = new Map();
      /** @type {?} */

      var flexColumnWrapCache = new Map();
      /**
       * @fileoverview added by tsickle
       * Generated from: flex/flex-order/flex-order.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      var FlexOrderStyleBuilder =
      /** @class */
      function () {
        var FlexOrderStyleBuilder = /*#__PURE__*/function (_angular_flex_layout_29) {
          _inherits2(FlexOrderStyleBuilder, _angular_flex_layout_29);

          var _super327 = _createSuper2(FlexOrderStyleBuilder);

          function FlexOrderStyleBuilder() {
            _classCallCheck2(this, FlexOrderStyleBuilder);

            return _super327.apply(this, arguments);
          }

          _createClass2(FlexOrderStyleBuilder, [{
            key: "buildStyles",
            value:
            /**
             * @param {?} value
             * @return {?}
             */
            function buildStyles(value) {
              return {
                order: value && parseInt(value, 10) || ''
              };
            }
          }]);

          return FlexOrderStyleBuilder;
        }(_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleBuilder"]);

        FlexOrderStyleBuilder.ɵfac = function FlexOrderStyleBuilder_Factory(t) {
          return ɵFlexOrderStyleBuilder_BaseFactory(t || FlexOrderStyleBuilder);
        };
        /** @nocollapse */


        FlexOrderStyleBuilder.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({
          factory: function FlexOrderStyleBuilder_Factory() {
            return new FlexOrderStyleBuilder();
          },
          token: FlexOrderStyleBuilder,
          providedIn: "root"
        });

        var ɵFlexOrderStyleBuilder_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](FlexOrderStyleBuilder);
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](FlexOrderStyleBuilder, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
            args: [{
              providedIn: 'root'
            }]
          }], null, null);
        })();

        return FlexOrderStyleBuilder;
      }();
      /** @type {?} */


      var inputs$3 = ['fxFlexOrder', 'fxFlexOrder.xs', 'fxFlexOrder.sm', 'fxFlexOrder.md', 'fxFlexOrder.lg', 'fxFlexOrder.xl', 'fxFlexOrder.lt-sm', 'fxFlexOrder.lt-md', 'fxFlexOrder.lt-lg', 'fxFlexOrder.lt-xl', 'fxFlexOrder.gt-xs', 'fxFlexOrder.gt-sm', 'fxFlexOrder.gt-md', 'fxFlexOrder.gt-lg'];
      /** @type {?} */

      var selector$3 = "\n  [fxFlexOrder], [fxFlexOrder.xs], [fxFlexOrder.sm], [fxFlexOrder.md],\n  [fxFlexOrder.lg], [fxFlexOrder.xl], [fxFlexOrder.lt-sm], [fxFlexOrder.lt-md],\n  [fxFlexOrder.lt-lg], [fxFlexOrder.lt-xl], [fxFlexOrder.gt-xs], [fxFlexOrder.gt-sm],\n  [fxFlexOrder.gt-md], [fxFlexOrder.gt-lg]\n";
      /**
       * 'flex-order' flexbox styling directive
       * Configures the positional ordering of the element in a sorted layout container
       * @see https://css-tricks.com/almanac/properties/o/order/
       */

      var FlexOrderDirective =
      /** @class */
      function () {
        /**
         * 'flex-order' flexbox styling directive
         * Configures the positional ordering of the element in a sorted layout container
         * @see https://css-tricks.com/almanac/properties/o/order/
         */
        var FlexOrderDirective = /*#__PURE__*/function (_angular_flex_layout_30) {
          _inherits2(FlexOrderDirective, _angular_flex_layout_30);

          var _super328 = _createSuper2(FlexOrderDirective);

          /**
           * @param {?} elRef
           * @param {?} styleUtils
           * @param {?} styleBuilder
           * @param {?} marshal
           */
          function FlexOrderDirective(elRef, styleUtils, styleBuilder, marshal) {
            var _this655;

            _classCallCheck2(this, FlexOrderDirective);

            _this655 = _super328.call(this, elRef, styleBuilder, styleUtils, marshal);
            _this655.DIRECTIVE_KEY = 'flex-order';
            _this655.styleCache = flexOrderCache;

            _this655.init();

            return _this655;
          }

          return FlexOrderDirective;
        }(_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["BaseDirective2"]);

        FlexOrderDirective.ɵfac = function FlexOrderDirective_Factory(t) {
          return new (t || FlexOrderDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](FlexOrderStyleBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["MediaMarshaller"]));
        };

        FlexOrderDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
          type: FlexOrderDirective,
          features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
        });
        /** @nocollapse */

        FlexOrderDirective.ctorParameters = function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
          }, {
            type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]
          }, {
            type: FlexOrderStyleBuilder
          }, {
            type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["MediaMarshaller"]
          }];
        };
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](FlexOrderDirective, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"]
          }], function () {
            return [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
            }, {
              type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]
            }, {
              type: FlexOrderStyleBuilder
            }, {
              type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["MediaMarshaller"]
            }];
          }, null);
        })();

        return FlexOrderDirective;
      }();
      /** @type {?} */


      var flexOrderCache = new Map();

      var DefaultFlexOrderDirective =
      /** @class */
      function () {
        var DefaultFlexOrderDirective = /*#__PURE__*/function (_FlexOrderDirective) {
          _inherits2(DefaultFlexOrderDirective, _FlexOrderDirective);

          var _super329 = _createSuper2(DefaultFlexOrderDirective);

          function DefaultFlexOrderDirective() {
            var _this656;

            _classCallCheck2(this, DefaultFlexOrderDirective);

            _this656 = _super329.apply(this, arguments);
            _this656.inputs = inputs$3;
            return _this656;
          }

          return DefaultFlexOrderDirective;
        }(FlexOrderDirective);

        DefaultFlexOrderDirective.ɵfac = function DefaultFlexOrderDirective_Factory(t) {
          return ɵDefaultFlexOrderDirective_BaseFactory(t || DefaultFlexOrderDirective);
        };

        DefaultFlexOrderDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
          type: DefaultFlexOrderDirective,
          selectors: [["", "fxFlexOrder", ""], ["", "fxFlexOrder.xs", ""], ["", "fxFlexOrder.sm", ""], ["", "fxFlexOrder.md", ""], ["", "fxFlexOrder.lg", ""], ["", "fxFlexOrder.xl", ""], ["", "fxFlexOrder.lt-sm", ""], ["", "fxFlexOrder.lt-md", ""], ["", "fxFlexOrder.lt-lg", ""], ["", "fxFlexOrder.lt-xl", ""], ["", "fxFlexOrder.gt-xs", ""], ["", "fxFlexOrder.gt-sm", ""], ["", "fxFlexOrder.gt-md", ""], ["", "fxFlexOrder.gt-lg", ""]],
          inputs: {
            fxFlexOrder: "fxFlexOrder",
            "fxFlexOrder.xs": "fxFlexOrder.xs",
            "fxFlexOrder.sm": "fxFlexOrder.sm",
            "fxFlexOrder.md": "fxFlexOrder.md",
            "fxFlexOrder.lg": "fxFlexOrder.lg",
            "fxFlexOrder.xl": "fxFlexOrder.xl",
            "fxFlexOrder.lt-sm": "fxFlexOrder.lt-sm",
            "fxFlexOrder.lt-md": "fxFlexOrder.lt-md",
            "fxFlexOrder.lt-lg": "fxFlexOrder.lt-lg",
            "fxFlexOrder.lt-xl": "fxFlexOrder.lt-xl",
            "fxFlexOrder.gt-xs": "fxFlexOrder.gt-xs",
            "fxFlexOrder.gt-sm": "fxFlexOrder.gt-sm",
            "fxFlexOrder.gt-md": "fxFlexOrder.gt-md",
            "fxFlexOrder.gt-lg": "fxFlexOrder.gt-lg"
          },
          features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
        });

        var ɵDefaultFlexOrderDirective_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](DefaultFlexOrderDirective);
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](DefaultFlexOrderDirective, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
            args: [{
              selector: selector$3,
              inputs: inputs$3
            }]
          }], null, null);
        })();

        return DefaultFlexOrderDirective;
      }();
      /**
       * @fileoverview added by tsickle
       * Generated from: flex/flex-offset/flex-offset.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */


      var FlexOffsetStyleBuilder =
      /** @class */
      function () {
        var FlexOffsetStyleBuilder = /*#__PURE__*/function (_angular_flex_layout_31) {
          _inherits2(FlexOffsetStyleBuilder, _angular_flex_layout_31);

          var _super330 = _createSuper2(FlexOffsetStyleBuilder);

          function FlexOffsetStyleBuilder() {
            _classCallCheck2(this, FlexOffsetStyleBuilder);

            return _super330.apply(this, arguments);
          }

          _createClass2(FlexOffsetStyleBuilder, [{
            key: "buildStyles",
            value:
            /**
             * @param {?} offset
             * @param {?} parent
             * @return {?}
             */
            function buildStyles(offset, parent) {
              if (offset === '') {
                offset = '0';
              }
              /** @type {?} */


              var isPercent = String(offset).indexOf('%') > -1;
              /** @type {?} */

              var isPx = String(offset).indexOf('px') > -1;

              if (!isPx && !isPercent && !isNaN(+offset)) {
                offset = offset + '%';
              }
              /** @type {?} */


              var horizontalLayoutKey = parent.isRtl ? 'margin-right' : 'margin-left';
              /** @type {?} */

              var styles = isFlowHorizontal(parent.layout) ? _defineProperty({}, horizontalLayoutKey, "".concat(offset)) : {
                'margin-top': "".concat(offset)
              };
              return styles;
            }
          }]);

          return FlexOffsetStyleBuilder;
        }(_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleBuilder"]);

        FlexOffsetStyleBuilder.ɵfac = function FlexOffsetStyleBuilder_Factory(t) {
          return ɵFlexOffsetStyleBuilder_BaseFactory(t || FlexOffsetStyleBuilder);
        };
        /** @nocollapse */


        FlexOffsetStyleBuilder.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({
          factory: function FlexOffsetStyleBuilder_Factory() {
            return new FlexOffsetStyleBuilder();
          },
          token: FlexOffsetStyleBuilder,
          providedIn: "root"
        });

        var ɵFlexOffsetStyleBuilder_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](FlexOffsetStyleBuilder);
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](FlexOffsetStyleBuilder, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
            args: [{
              providedIn: 'root'
            }]
          }], null, null);
        })();

        return FlexOffsetStyleBuilder;
      }();
      /** @type {?} */


      var inputs$4 = ['fxFlexOffset', 'fxFlexOffset.xs', 'fxFlexOffset.sm', 'fxFlexOffset.md', 'fxFlexOffset.lg', 'fxFlexOffset.xl', 'fxFlexOffset.lt-sm', 'fxFlexOffset.lt-md', 'fxFlexOffset.lt-lg', 'fxFlexOffset.lt-xl', 'fxFlexOffset.gt-xs', 'fxFlexOffset.gt-sm', 'fxFlexOffset.gt-md', 'fxFlexOffset.gt-lg'];
      /** @type {?} */

      var selector$4 = "\n  [fxFlexOffset], [fxFlexOffset.xs], [fxFlexOffset.sm], [fxFlexOffset.md],\n  [fxFlexOffset.lg], [fxFlexOffset.xl], [fxFlexOffset.lt-sm], [fxFlexOffset.lt-md],\n  [fxFlexOffset.lt-lg], [fxFlexOffset.lt-xl], [fxFlexOffset.gt-xs], [fxFlexOffset.gt-sm],\n  [fxFlexOffset.gt-md], [fxFlexOffset.gt-lg]\n";
      /**
       * 'flex-offset' flexbox styling directive
       * Configures the 'margin-left' of the element in a layout container
       */

      var FlexOffsetDirective =
      /** @class */
      function () {
        /**
         * 'flex-offset' flexbox styling directive
         * Configures the 'margin-left' of the element in a layout container
         */
        var FlexOffsetDirective = /*#__PURE__*/function (_angular_flex_layout_32) {
          _inherits2(FlexOffsetDirective, _angular_flex_layout_32);

          var _super331 = _createSuper2(FlexOffsetDirective);

          /**
           * @param {?} elRef
           * @param {?} directionality
           * @param {?} styleBuilder
           * @param {?} marshal
           * @param {?} styler
           */
          function FlexOffsetDirective(elRef, directionality, styleBuilder, marshal, styler) {
            var _this657;

            _classCallCheck2(this, FlexOffsetDirective);

            _this657 = _super331.call(this, elRef, styleBuilder, styler, marshal);
            _this657.directionality = directionality;
            _this657.DIRECTIVE_KEY = 'flex-offset';

            _this657.init([_this657.directionality.change]); // Parent DOM `layout-gap` with affect the nested child with `flex-offset`


            if (_this657.parentElement) {
              _this657.marshal.trackValue(_this657.parentElement, 'layout-gap').pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["takeUntil"])(_this657.destroySubject)).subscribe(_this657.triggerUpdate.bind(_assertThisInitialized2(_this657)));
            }

            return _this657;
          } // *********************************************
          // Protected methods
          // *********************************************

          /**
           * Using the current fxFlexOffset value, update the inline CSS
           * NOTE: this will assign `margin-left` if the parent flex-direction == 'row',
           *       otherwise `margin-top` is used for the offset.
           * @protected
           * @param {?=} value
           * @return {?}
           */


          _createClass2(FlexOffsetDirective, [{
            key: "updateWithValue",
            value: function updateWithValue() {
              var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
              // The flex-direction of this element's flex container. Defaults to 'row'.

              /** @type {?} */
              var layout = this.getFlexFlowDirection(this.parentElement, true);
              /** @type {?} */

              var isRtl = this.directionality.value === 'rtl';

              if (layout === 'row' && isRtl) {
                this.styleCache = flexOffsetCacheRowRtl;
              } else if (layout === 'row' && !isRtl) {
                this.styleCache = flexOffsetCacheRowLtr;
              } else if (layout === 'column' && isRtl) {
                this.styleCache = flexOffsetCacheColumnRtl;
              } else if (layout === 'column' && !isRtl) {
                this.styleCache = flexOffsetCacheColumnLtr;
              }

              this.addStyles(value + '', {
                layout: layout,
                isRtl: isRtl
              });
            }
          }]);

          return FlexOffsetDirective;
        }(_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["BaseDirective2"]);

        FlexOffsetDirective.ɵfac = function FlexOffsetDirective_Factory(t) {
          return new (t || FlexOffsetDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_2__["Directionality"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](FlexOffsetStyleBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["MediaMarshaller"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]));
        };

        FlexOffsetDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
          type: FlexOffsetDirective,
          features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
        });
        /** @nocollapse */

        FlexOffsetDirective.ctorParameters = function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
          }, {
            type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_2__["Directionality"]
          }, {
            type: FlexOffsetStyleBuilder
          }, {
            type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["MediaMarshaller"]
          }, {
            type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]
          }];
        };
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](FlexOffsetDirective, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"]
          }], function () {
            return [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
            }, {
              type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_2__["Directionality"]
            }, {
              type: FlexOffsetStyleBuilder
            }, {
              type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["MediaMarshaller"]
            }, {
              type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]
            }];
          }, null);
        })();

        return FlexOffsetDirective;
      }();

      var DefaultFlexOffsetDirective =
      /** @class */
      function () {
        var DefaultFlexOffsetDirective = /*#__PURE__*/function (_FlexOffsetDirective) {
          _inherits2(DefaultFlexOffsetDirective, _FlexOffsetDirective);

          var _super332 = _createSuper2(DefaultFlexOffsetDirective);

          function DefaultFlexOffsetDirective() {
            var _this658;

            _classCallCheck2(this, DefaultFlexOffsetDirective);

            _this658 = _super332.apply(this, arguments);
            _this658.inputs = inputs$4;
            return _this658;
          }

          return DefaultFlexOffsetDirective;
        }(FlexOffsetDirective);

        DefaultFlexOffsetDirective.ɵfac = function DefaultFlexOffsetDirective_Factory(t) {
          return ɵDefaultFlexOffsetDirective_BaseFactory(t || DefaultFlexOffsetDirective);
        };

        DefaultFlexOffsetDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
          type: DefaultFlexOffsetDirective,
          selectors: [["", "fxFlexOffset", ""], ["", "fxFlexOffset.xs", ""], ["", "fxFlexOffset.sm", ""], ["", "fxFlexOffset.md", ""], ["", "fxFlexOffset.lg", ""], ["", "fxFlexOffset.xl", ""], ["", "fxFlexOffset.lt-sm", ""], ["", "fxFlexOffset.lt-md", ""], ["", "fxFlexOffset.lt-lg", ""], ["", "fxFlexOffset.lt-xl", ""], ["", "fxFlexOffset.gt-xs", ""], ["", "fxFlexOffset.gt-sm", ""], ["", "fxFlexOffset.gt-md", ""], ["", "fxFlexOffset.gt-lg", ""]],
          inputs: {
            fxFlexOffset: "fxFlexOffset",
            "fxFlexOffset.xs": "fxFlexOffset.xs",
            "fxFlexOffset.sm": "fxFlexOffset.sm",
            "fxFlexOffset.md": "fxFlexOffset.md",
            "fxFlexOffset.lg": "fxFlexOffset.lg",
            "fxFlexOffset.xl": "fxFlexOffset.xl",
            "fxFlexOffset.lt-sm": "fxFlexOffset.lt-sm",
            "fxFlexOffset.lt-md": "fxFlexOffset.lt-md",
            "fxFlexOffset.lt-lg": "fxFlexOffset.lt-lg",
            "fxFlexOffset.lt-xl": "fxFlexOffset.lt-xl",
            "fxFlexOffset.gt-xs": "fxFlexOffset.gt-xs",
            "fxFlexOffset.gt-sm": "fxFlexOffset.gt-sm",
            "fxFlexOffset.gt-md": "fxFlexOffset.gt-md",
            "fxFlexOffset.gt-lg": "fxFlexOffset.gt-lg"
          },
          features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
        });

        var ɵDefaultFlexOffsetDirective_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](DefaultFlexOffsetDirective);
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](DefaultFlexOffsetDirective, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
            args: [{
              selector: selector$4,
              inputs: inputs$4
            }]
          }], null, null);
        })();

        return DefaultFlexOffsetDirective;
      }();
      /** @type {?} */


      var flexOffsetCacheRowRtl = new Map();
      /** @type {?} */

      var flexOffsetCacheColumnRtl = new Map();
      /** @type {?} */

      var flexOffsetCacheRowLtr = new Map();
      /** @type {?} */

      var flexOffsetCacheColumnLtr = new Map();
      /**
       * @fileoverview added by tsickle
       * Generated from: flex/flex-align/flex-align.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      var FlexAlignStyleBuilder =
      /** @class */
      function () {
        var FlexAlignStyleBuilder = /*#__PURE__*/function (_angular_flex_layout_33) {
          _inherits2(FlexAlignStyleBuilder, _angular_flex_layout_33);

          var _super333 = _createSuper2(FlexAlignStyleBuilder);

          function FlexAlignStyleBuilder() {
            _classCallCheck2(this, FlexAlignStyleBuilder);

            return _super333.apply(this, arguments);
          }

          _createClass2(FlexAlignStyleBuilder, [{
            key: "buildStyles",
            value:
            /**
             * @param {?} input
             * @return {?}
             */
            function buildStyles(input) {
              input = input || 'stretch';
              /** @type {?} */

              var styles = {}; // Cross-axis

              switch (input) {
                case 'start':
                  styles['align-self'] = 'flex-start';
                  break;

                case 'end':
                  styles['align-self'] = 'flex-end';
                  break;

                default:
                  styles['align-self'] = input;
                  break;
              }

              return styles;
            }
          }]);

          return FlexAlignStyleBuilder;
        }(_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleBuilder"]);

        FlexAlignStyleBuilder.ɵfac = function FlexAlignStyleBuilder_Factory(t) {
          return ɵFlexAlignStyleBuilder_BaseFactory(t || FlexAlignStyleBuilder);
        };
        /** @nocollapse */


        FlexAlignStyleBuilder.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({
          factory: function FlexAlignStyleBuilder_Factory() {
            return new FlexAlignStyleBuilder();
          },
          token: FlexAlignStyleBuilder,
          providedIn: "root"
        });

        var ɵFlexAlignStyleBuilder_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](FlexAlignStyleBuilder);
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](FlexAlignStyleBuilder, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
            args: [{
              providedIn: 'root'
            }]
          }], null, null);
        })();

        return FlexAlignStyleBuilder;
      }();
      /** @type {?} */


      var inputs$5 = ['fxFlexAlign', 'fxFlexAlign.xs', 'fxFlexAlign.sm', 'fxFlexAlign.md', 'fxFlexAlign.lg', 'fxFlexAlign.xl', 'fxFlexAlign.lt-sm', 'fxFlexAlign.lt-md', 'fxFlexAlign.lt-lg', 'fxFlexAlign.lt-xl', 'fxFlexAlign.gt-xs', 'fxFlexAlign.gt-sm', 'fxFlexAlign.gt-md', 'fxFlexAlign.gt-lg'];
      /** @type {?} */

      var selector$5 = "\n  [fxFlexAlign], [fxFlexAlign.xs], [fxFlexAlign.sm], [fxFlexAlign.md],\n  [fxFlexAlign.lg], [fxFlexAlign.xl], [fxFlexAlign.lt-sm], [fxFlexAlign.lt-md],\n  [fxFlexAlign.lt-lg], [fxFlexAlign.lt-xl], [fxFlexAlign.gt-xs], [fxFlexAlign.gt-sm],\n  [fxFlexAlign.gt-md], [fxFlexAlign.gt-lg]\n";
      /**
       * 'flex-align' flexbox styling directive
       * Allows element-specific overrides for cross-axis alignments in a layout container
       * @see https://css-tricks.com/almanac/properties/a/align-self/
       */

      var FlexAlignDirective =
      /** @class */
      function () {
        /**
         * 'flex-align' flexbox styling directive
         * Allows element-specific overrides for cross-axis alignments in a layout container
         * @see https://css-tricks.com/almanac/properties/a/align-self/
         */
        var FlexAlignDirective = /*#__PURE__*/function (_angular_flex_layout_34) {
          _inherits2(FlexAlignDirective, _angular_flex_layout_34);

          var _super334 = _createSuper2(FlexAlignDirective);

          /**
           * @param {?} elRef
           * @param {?} styleUtils
           * @param {?} styleBuilder
           * @param {?} marshal
           */
          function FlexAlignDirective(elRef, styleUtils, styleBuilder, marshal) {
            var _this659;

            _classCallCheck2(this, FlexAlignDirective);

            _this659 = _super334.call(this, elRef, styleBuilder, styleUtils, marshal);
            _this659.DIRECTIVE_KEY = 'flex-align';
            _this659.styleCache = flexAlignCache;

            _this659.init();

            return _this659;
          }

          return FlexAlignDirective;
        }(_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["BaseDirective2"]);

        FlexAlignDirective.ɵfac = function FlexAlignDirective_Factory(t) {
          return new (t || FlexAlignDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](FlexAlignStyleBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["MediaMarshaller"]));
        };

        FlexAlignDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
          type: FlexAlignDirective,
          features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
        });
        /** @nocollapse */

        FlexAlignDirective.ctorParameters = function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
          }, {
            type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]
          }, {
            type: FlexAlignStyleBuilder
          }, {
            type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["MediaMarshaller"]
          }];
        };
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](FlexAlignDirective, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"]
          }], function () {
            return [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
            }, {
              type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]
            }, {
              type: FlexAlignStyleBuilder
            }, {
              type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["MediaMarshaller"]
            }];
          }, null);
        })();

        return FlexAlignDirective;
      }();
      /** @type {?} */


      var flexAlignCache = new Map();

      var DefaultFlexAlignDirective =
      /** @class */
      function () {
        var DefaultFlexAlignDirective = /*#__PURE__*/function (_FlexAlignDirective) {
          _inherits2(DefaultFlexAlignDirective, _FlexAlignDirective);

          var _super335 = _createSuper2(DefaultFlexAlignDirective);

          function DefaultFlexAlignDirective() {
            var _this660;

            _classCallCheck2(this, DefaultFlexAlignDirective);

            _this660 = _super335.apply(this, arguments);
            _this660.inputs = inputs$5;
            return _this660;
          }

          return DefaultFlexAlignDirective;
        }(FlexAlignDirective);

        DefaultFlexAlignDirective.ɵfac = function DefaultFlexAlignDirective_Factory(t) {
          return ɵDefaultFlexAlignDirective_BaseFactory(t || DefaultFlexAlignDirective);
        };

        DefaultFlexAlignDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
          type: DefaultFlexAlignDirective,
          selectors: [["", "fxFlexAlign", ""], ["", "fxFlexAlign.xs", ""], ["", "fxFlexAlign.sm", ""], ["", "fxFlexAlign.md", ""], ["", "fxFlexAlign.lg", ""], ["", "fxFlexAlign.xl", ""], ["", "fxFlexAlign.lt-sm", ""], ["", "fxFlexAlign.lt-md", ""], ["", "fxFlexAlign.lt-lg", ""], ["", "fxFlexAlign.lt-xl", ""], ["", "fxFlexAlign.gt-xs", ""], ["", "fxFlexAlign.gt-sm", ""], ["", "fxFlexAlign.gt-md", ""], ["", "fxFlexAlign.gt-lg", ""]],
          inputs: {
            fxFlexAlign: "fxFlexAlign",
            "fxFlexAlign.xs": "fxFlexAlign.xs",
            "fxFlexAlign.sm": "fxFlexAlign.sm",
            "fxFlexAlign.md": "fxFlexAlign.md",
            "fxFlexAlign.lg": "fxFlexAlign.lg",
            "fxFlexAlign.xl": "fxFlexAlign.xl",
            "fxFlexAlign.lt-sm": "fxFlexAlign.lt-sm",
            "fxFlexAlign.lt-md": "fxFlexAlign.lt-md",
            "fxFlexAlign.lt-lg": "fxFlexAlign.lt-lg",
            "fxFlexAlign.lt-xl": "fxFlexAlign.lt-xl",
            "fxFlexAlign.gt-xs": "fxFlexAlign.gt-xs",
            "fxFlexAlign.gt-sm": "fxFlexAlign.gt-sm",
            "fxFlexAlign.gt-md": "fxFlexAlign.gt-md",
            "fxFlexAlign.gt-lg": "fxFlexAlign.gt-lg"
          },
          features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
        });

        var ɵDefaultFlexAlignDirective_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](DefaultFlexAlignDirective);
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](DefaultFlexAlignDirective, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
            args: [{
              selector: selector$5,
              inputs: inputs$5
            }]
          }], null, null);
        })();

        return DefaultFlexAlignDirective;
      }();
      /**
       * @fileoverview added by tsickle
       * Generated from: flex/flex-fill/flex-fill.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /** @type {?} */


      var FLEX_FILL_CSS = {
        'margin': 0,
        'width': '100%',
        'height': '100%',
        'min-width': '100%',
        'min-height': '100%'
      };

      var FlexFillStyleBuilder =
      /** @class */
      function () {
        var FlexFillStyleBuilder = /*#__PURE__*/function (_angular_flex_layout_35) {
          _inherits2(FlexFillStyleBuilder, _angular_flex_layout_35);

          var _super336 = _createSuper2(FlexFillStyleBuilder);

          function FlexFillStyleBuilder() {
            _classCallCheck2(this, FlexFillStyleBuilder);

            return _super336.apply(this, arguments);
          }

          _createClass2(FlexFillStyleBuilder, [{
            key: "buildStyles",
            value:
            /**
             * @param {?} _input
             * @return {?}
             */
            function buildStyles(_input) {
              return FLEX_FILL_CSS;
            }
          }]);

          return FlexFillStyleBuilder;
        }(_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleBuilder"]);

        FlexFillStyleBuilder.ɵfac = function FlexFillStyleBuilder_Factory(t) {
          return ɵFlexFillStyleBuilder_BaseFactory(t || FlexFillStyleBuilder);
        };
        /** @nocollapse */


        FlexFillStyleBuilder.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({
          factory: function FlexFillStyleBuilder_Factory() {
            return new FlexFillStyleBuilder();
          },
          token: FlexFillStyleBuilder,
          providedIn: "root"
        });

        var ɵFlexFillStyleBuilder_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](FlexFillStyleBuilder);
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](FlexFillStyleBuilder, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
            args: [{
              providedIn: 'root'
            }]
          }], null, null);
        })();

        return FlexFillStyleBuilder;
      }();
      /**
       * 'fxFill' flexbox styling directive
       *  Maximizes width and height of element in a layout container
       *
       *  NOTE: fxFill is NOT responsive API!!
       */


      var FlexFillDirective =
      /** @class */
      function () {
        /**
         * 'fxFill' flexbox styling directive
         *  Maximizes width and height of element in a layout container
         *
         *  NOTE: fxFill is NOT responsive API!!
         */
        var FlexFillDirective = /*#__PURE__*/function (_angular_flex_layout_36) {
          _inherits2(FlexFillDirective, _angular_flex_layout_36);

          var _super337 = _createSuper2(FlexFillDirective);

          /**
           * @param {?} elRef
           * @param {?} styleUtils
           * @param {?} styleBuilder
           * @param {?} marshal
           */
          function FlexFillDirective(elRef, styleUtils, styleBuilder, marshal) {
            var _this661;

            _classCallCheck2(this, FlexFillDirective);

            _this661 = _super337.call(this, elRef, styleBuilder, styleUtils, marshal);
            _this661.styleCache = flexFillCache;

            _this661.addStyles('');

            return _this661;
          }

          return FlexFillDirective;
        }(_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["BaseDirective2"]);

        FlexFillDirective.ɵfac = function FlexFillDirective_Factory(t) {
          return new (t || FlexFillDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](FlexFillStyleBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["MediaMarshaller"]));
        };

        FlexFillDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
          type: FlexFillDirective,
          selectors: [["", "fxFill", ""], ["", "fxFlexFill", ""]],
          features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
        });
        /** @nocollapse */

        FlexFillDirective.ctorParameters = function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
          }, {
            type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]
          }, {
            type: FlexFillStyleBuilder
          }, {
            type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["MediaMarshaller"]
          }];
        };
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](FlexFillDirective, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
            args: [{
              selector: "[fxFill], [fxFlexFill]"
            }]
          }], function () {
            return [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
            }, {
              type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]
            }, {
              type: FlexFillStyleBuilder
            }, {
              type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["MediaMarshaller"]
            }];
          }, null);
        })();

        return FlexFillDirective;
      }();
      /** @type {?} */


      var flexFillCache = new Map();
      /**
       * @fileoverview added by tsickle
       * Generated from: flex/layout-align/layout-align.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      var LayoutAlignStyleBuilder =
      /** @class */
      function () {
        var LayoutAlignStyleBuilder = /*#__PURE__*/function (_angular_flex_layout_37) {
          _inherits2(LayoutAlignStyleBuilder, _angular_flex_layout_37);

          var _super338 = _createSuper2(LayoutAlignStyleBuilder);

          function LayoutAlignStyleBuilder() {
            _classCallCheck2(this, LayoutAlignStyleBuilder);

            return _super338.apply(this, arguments);
          }

          _createClass2(LayoutAlignStyleBuilder, [{
            key: "buildStyles",
            value:
            /**
             * @param {?} align
             * @param {?} parent
             * @return {?}
             */
            function buildStyles(align, parent) {
              /** @type {?} */
              var css = {};

              var _align$split7 = align.split(' '),
                  _align$split8 = _slicedToArray(_align$split7, 2),
                  mainAxis = _align$split8[0],
                  crossAxis = _align$split8[1]; // Main axis


              switch (mainAxis) {
                case 'center':
                  css['justify-content'] = 'center';
                  break;

                case 'space-around':
                  css['justify-content'] = 'space-around';
                  break;

                case 'space-between':
                  css['justify-content'] = 'space-between';
                  break;

                case 'space-evenly':
                  css['justify-content'] = 'space-evenly';
                  break;

                case 'end':
                case 'flex-end':
                  css['justify-content'] = 'flex-end';
                  break;

                case 'start':
                case 'flex-start':
                default:
                  css['justify-content'] = 'flex-start'; // default main axis

                  break;
              } // Cross-axis


              switch (crossAxis) {
                case 'start':
                case 'flex-start':
                  css['align-items'] = css['align-content'] = 'flex-start';
                  break;

                case 'center':
                  css['align-items'] = css['align-content'] = 'center';
                  break;

                case 'end':
                case 'flex-end':
                  css['align-items'] = css['align-content'] = 'flex-end';
                  break;

                case 'space-between':
                  css['align-content'] = 'space-between';
                  css['align-items'] = 'stretch';
                  break;

                case 'space-around':
                  css['align-content'] = 'space-around';
                  css['align-items'] = 'stretch';
                  break;

                case 'baseline':
                  css['align-content'] = 'stretch';
                  css['align-items'] = 'baseline';
                  break;

                case 'stretch':
                default:
                  // 'stretch'
                  css['align-items'] = css['align-content'] = 'stretch'; // default cross axis

                  break;
              }

              return extendObject(css, {
                'display': parent.inline ? 'inline-flex' : 'flex',
                'flex-direction': parent.layout,
                'box-sizing': 'border-box',
                'max-width': crossAxis === 'stretch' ? !isFlowHorizontal(parent.layout) ? '100%' : null : null,
                'max-height': crossAxis === 'stretch' ? isFlowHorizontal(parent.layout) ? '100%' : null : null
              });
            }
          }]);

          return LayoutAlignStyleBuilder;
        }(_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleBuilder"]);

        LayoutAlignStyleBuilder.ɵfac = function LayoutAlignStyleBuilder_Factory(t) {
          return ɵLayoutAlignStyleBuilder_BaseFactory(t || LayoutAlignStyleBuilder);
        };
        /** @nocollapse */


        LayoutAlignStyleBuilder.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({
          factory: function LayoutAlignStyleBuilder_Factory() {
            return new LayoutAlignStyleBuilder();
          },
          token: LayoutAlignStyleBuilder,
          providedIn: "root"
        });

        var ɵLayoutAlignStyleBuilder_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](LayoutAlignStyleBuilder);
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](LayoutAlignStyleBuilder, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
            args: [{
              providedIn: 'root'
            }]
          }], null, null);
        })();

        return LayoutAlignStyleBuilder;
      }();
      /** @type {?} */


      var inputs$6 = ['fxLayoutAlign', 'fxLayoutAlign.xs', 'fxLayoutAlign.sm', 'fxLayoutAlign.md', 'fxLayoutAlign.lg', 'fxLayoutAlign.xl', 'fxLayoutAlign.lt-sm', 'fxLayoutAlign.lt-md', 'fxLayoutAlign.lt-lg', 'fxLayoutAlign.lt-xl', 'fxLayoutAlign.gt-xs', 'fxLayoutAlign.gt-sm', 'fxLayoutAlign.gt-md', 'fxLayoutAlign.gt-lg'];
      /** @type {?} */

      var selector$6 = "\n  [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md],\n  [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md],\n  [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm],\n  [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]\n";
      /**
       * 'layout-align' flexbox styling directive
       *  Defines positioning of child elements along main and cross axis in a layout container
       *  Optional values: {main-axis} values or {main-axis cross-axis} value pairs
       *
       * @see https://css-tricks.com/almanac/properties/j/justify-content/
       * @see https://css-tricks.com/almanac/properties/a/align-items/
       * @see https://css-tricks.com/almanac/properties/a/align-content/
       */

      var LayoutAlignDirective =
      /** @class */
      function () {
        /**
         * 'layout-align' flexbox styling directive
         *  Defines positioning of child elements along main and cross axis in a layout container
         *  Optional values: {main-axis} values or {main-axis cross-axis} value pairs
         *
         * @see https://css-tricks.com/almanac/properties/j/justify-content/
         * @see https://css-tricks.com/almanac/properties/a/align-items/
         * @see https://css-tricks.com/almanac/properties/a/align-content/
         */
        var LayoutAlignDirective = /*#__PURE__*/function (_angular_flex_layout_38) {
          _inherits2(LayoutAlignDirective, _angular_flex_layout_38);

          var _super339 = _createSuper2(LayoutAlignDirective);

          // default inline value

          /**
           * @param {?} elRef
           * @param {?} styleUtils
           * @param {?} styleBuilder
           * @param {?} marshal
           */
          function LayoutAlignDirective(elRef, styleUtils, styleBuilder, marshal) {
            var _this662;

            _classCallCheck2(this, LayoutAlignDirective);

            _this662 = _super339.call(this, elRef, styleBuilder, styleUtils, marshal);
            _this662.DIRECTIVE_KEY = 'layout-align';
            _this662.layout = 'row'; // default flex-direction
            // default flex-direction

            _this662.inline = false; // default inline value

            _this662.init();

            _this662.marshal.trackValue(_this662.nativeElement, 'layout').pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["takeUntil"])(_this662.destroySubject)).subscribe(_this662.onLayoutChange.bind(_assertThisInitialized2(_this662)));

            return _this662;
          } // *********************************************
          // Protected methods
          // *********************************************

          /**
           *
           * @protected
           * @param {?} value
           * @return {?}
           */


          _createClass2(LayoutAlignDirective, [{
            key: "updateWithValue",
            value: function updateWithValue(value) {
              /** @type {?} */
              var layout = this.layout || 'row';
              /** @type {?} */

              var inline = this.inline;

              if (layout === 'row' && inline) {
                this.styleCache = layoutAlignHorizontalInlineCache;
              } else if (layout === 'row' && !inline) {
                this.styleCache = layoutAlignHorizontalCache;
              } else if (layout === 'row-reverse' && inline) {
                this.styleCache = layoutAlignHorizontalRevInlineCache;
              } else if (layout === 'row-reverse' && !inline) {
                this.styleCache = layoutAlignHorizontalRevCache;
              } else if (layout === 'column' && inline) {
                this.styleCache = layoutAlignVerticalInlineCache;
              } else if (layout === 'column' && !inline) {
                this.styleCache = layoutAlignVerticalCache;
              } else if (layout === 'column-reverse' && inline) {
                this.styleCache = layoutAlignVerticalRevInlineCache;
              } else if (layout === 'column-reverse' && !inline) {
                this.styleCache = layoutAlignVerticalRevCache;
              }

              this.addStyles(value, {
                layout: layout,
                inline: inline
              });
            }
            /**
             * Cache the parent container 'flex-direction' and update the 'flex' styles
             * @protected
             * @param {?} matcher
             * @return {?}
             */

          }, {
            key: "onLayoutChange",
            value: function onLayoutChange(matcher) {
              var _this663 = this;

              /** @type {?} */
              var layoutKeys = matcher.value.split(' ');
              this.layout = layoutKeys[0];
              this.inline = matcher.value.includes('inline');

              if (!LAYOUT_VALUES.find(
              /**
              * @param {?} x
              * @return {?}
              */
              function (x) {
                return x === _this663.layout;
              })) {
                this.layout = 'row';
              }

              this.triggerUpdate();
            }
          }]);

          return LayoutAlignDirective;
        }(_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["BaseDirective2"]);

        LayoutAlignDirective.ɵfac = function LayoutAlignDirective_Factory(t) {
          return new (t || LayoutAlignDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](LayoutAlignStyleBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["MediaMarshaller"]));
        };

        LayoutAlignDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
          type: LayoutAlignDirective,
          features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
        });
        /** @nocollapse */

        LayoutAlignDirective.ctorParameters = function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
          }, {
            type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]
          }, {
            type: LayoutAlignStyleBuilder
          }, {
            type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["MediaMarshaller"]
          }];
        };
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](LayoutAlignDirective, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"]
          }], function () {
            return [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
            }, {
              type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["StyleUtils"]
            }, {
              type: LayoutAlignStyleBuilder
            }, {
              type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["MediaMarshaller"]
            }];
          }, null);
        })();

        return LayoutAlignDirective;
      }();

      var DefaultLayoutAlignDirective =
      /** @class */
      function () {
        var DefaultLayoutAlignDirective = /*#__PURE__*/function (_LayoutAlignDirective) {
          _inherits2(DefaultLayoutAlignDirective, _LayoutAlignDirective);

          var _super340 = _createSuper2(DefaultLayoutAlignDirective);

          function DefaultLayoutAlignDirective() {
            var _this664;

            _classCallCheck2(this, DefaultLayoutAlignDirective);

            _this664 = _super340.apply(this, arguments);
            _this664.inputs = inputs$6;
            return _this664;
          }

          return DefaultLayoutAlignDirective;
        }(LayoutAlignDirective);

        DefaultLayoutAlignDirective.ɵfac = function DefaultLayoutAlignDirective_Factory(t) {
          return ɵDefaultLayoutAlignDirective_BaseFactory(t || DefaultLayoutAlignDirective);
        };

        DefaultLayoutAlignDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
          type: DefaultLayoutAlignDirective,
          selectors: [["", "fxLayoutAlign", ""], ["", "fxLayoutAlign.xs", ""], ["", "fxLayoutAlign.sm", ""], ["", "fxLayoutAlign.md", ""], ["", "fxLayoutAlign.lg", ""], ["", "fxLayoutAlign.xl", ""], ["", "fxLayoutAlign.lt-sm", ""], ["", "fxLayoutAlign.lt-md", ""], ["", "fxLayoutAlign.lt-lg", ""], ["", "fxLayoutAlign.lt-xl", ""], ["", "fxLayoutAlign.gt-xs", ""], ["", "fxLayoutAlign.gt-sm", ""], ["", "fxLayoutAlign.gt-md", ""], ["", "fxLayoutAlign.gt-lg", ""]],
          inputs: {
            fxLayoutAlign: "fxLayoutAlign",
            "fxLayoutAlign.xs": "fxLayoutAlign.xs",
            "fxLayoutAlign.sm": "fxLayoutAlign.sm",
            "fxLayoutAlign.md": "fxLayoutAlign.md",
            "fxLayoutAlign.lg": "fxLayoutAlign.lg",
            "fxLayoutAlign.xl": "fxLayoutAlign.xl",
            "fxLayoutAlign.lt-sm": "fxLayoutAlign.lt-sm",
            "fxLayoutAlign.lt-md": "fxLayoutAlign.lt-md",
            "fxLayoutAlign.lt-lg": "fxLayoutAlign.lt-lg",
            "fxLayoutAlign.lt-xl": "fxLayoutAlign.lt-xl",
            "fxLayoutAlign.gt-xs": "fxLayoutAlign.gt-xs",
            "fxLayoutAlign.gt-sm": "fxLayoutAlign.gt-sm",
            "fxLayoutAlign.gt-md": "fxLayoutAlign.gt-md",
            "fxLayoutAlign.gt-lg": "fxLayoutAlign.gt-lg"
          },
          features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
        });

        var ɵDefaultLayoutAlignDirective_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](DefaultLayoutAlignDirective);
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](DefaultLayoutAlignDirective, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
            args: [{
              selector: selector$6,
              inputs: inputs$6
            }]
          }], null, null);
        })();

        return DefaultLayoutAlignDirective;
      }();
      /** @type {?} */


      var layoutAlignHorizontalCache = new Map();
      /** @type {?} */

      var layoutAlignVerticalCache = new Map();
      /** @type {?} */

      var layoutAlignHorizontalRevCache = new Map();
      /** @type {?} */

      var layoutAlignVerticalRevCache = new Map();
      /** @type {?} */

      var layoutAlignHorizontalInlineCache = new Map();
      /** @type {?} */

      var layoutAlignVerticalInlineCache = new Map();
      /** @type {?} */

      var layoutAlignHorizontalRevInlineCache = new Map();
      /** @type {?} */

      var layoutAlignVerticalRevInlineCache = new Map();
      /**
       * @fileoverview added by tsickle
       * Generated from: flex/module.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /** @type {?} */

      var ALL_DIRECTIVES = [DefaultLayoutDirective, DefaultLayoutGapDirective, DefaultLayoutAlignDirective, DefaultFlexOrderDirective, DefaultFlexOffsetDirective, FlexFillDirective, DefaultFlexAlignDirective, DefaultFlexDirective];
      /**
       * *****************************************************************
       * Define module for the Flex API
       * *****************************************************************
       */

      var FlexModule =
      /** @class */
      function () {
        /**
         * *****************************************************************
         * Define module for the Flex API
         * *****************************************************************
         */
        var FlexModule = function FlexModule() {
          _classCallCheck2(this, FlexModule);
        };

        FlexModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
          type: FlexModule
        });
        FlexModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
          factory: function FlexModule_Factory(t) {
            return new (t || FlexModule)();
          },
          imports: [[_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["CoreModule"], _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_2__["BidiModule"]]]
        });

        (function () {
          (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](FlexModule, {
            declarations: function declarations() {
              return [DefaultLayoutDirective, DefaultLayoutGapDirective, DefaultLayoutAlignDirective, DefaultFlexOrderDirective, DefaultFlexOffsetDirective, FlexFillDirective, DefaultFlexAlignDirective, DefaultFlexDirective];
            },
            imports: function imports() {
              return [_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["CoreModule"], _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_2__["BidiModule"]];
            },
            exports: function exports() {
              return [DefaultLayoutDirective, DefaultLayoutGapDirective, DefaultLayoutAlignDirective, DefaultFlexOrderDirective, DefaultFlexOffsetDirective, FlexFillDirective, DefaultFlexAlignDirective, DefaultFlexDirective];
            }
          });
        })();
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](FlexModule, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
            args: [{
              imports: [_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_1__["CoreModule"], _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_2__["BidiModule"]],
              declarations: [].concat(ALL_DIRECTIVES),
              exports: [].concat(ALL_DIRECTIVES)
            }]
          }], null, null);
        })();

        return FlexModule;
      }();
      /**
       * @fileoverview added by tsickle
       * Generated from: flex/public-api.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * @fileoverview added by tsickle
       * Generated from: flex/index.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */
      //# sourceMappingURL=flex.js.map

      /***/

    },

    /***/
    "VLv5": function VLv5(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return subQuarters;
      });
      /* harmony import */


      var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../_lib/toInteger/index.js */
      "/h9T");
      /* harmony import */


      var _addQuarters_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../addQuarters/index.js */
      "tfX3");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name subQuarters
       * @category Quarter Helpers
       * @summary Subtract the specified number of year quarters from the given date.
       *
       * @description
       * Subtract the specified number of year quarters from the given date.
       *
       * ### 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 {Date|Number} date - the date to be changed
       * @param {Number} amount - the amount of quarters to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
       * @returns {Date} the new date with the quarters subtracted
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // Subtract 3 quarters from 1 September 2014:
       * var result = subQuarters(new Date(2014, 8, 1), 3)
       * //=> Sun Dec 01 2013 00:00:00
       */


      function subQuarters(dirtyDate, dirtyAmount) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(2, arguments);
        var amount = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyAmount);
        return Object(_addQuarters_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate, -amount);
      }
      /***/

    },

    /***/
    "VRyK": function VRyK(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "merge", function () {
        return merge;
      });
      /* harmony import */


      var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Observable */
      "HDdC");
      /* harmony import */


      var _util_isScheduler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../util/isScheduler */
      "z+Ro");
      /* harmony import */


      var _operators_mergeAll__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../operators/mergeAll */
      "bHdf");
      /* harmony import */


      var _fromArray__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ./fromArray */
      "yCtX");

      function merge() {
        var concurrent = Number.POSITIVE_INFINITY;
        var scheduler = null;

        for (var _len60 = arguments.length, observables = new Array(_len60), _key62 = 0; _key62 < _len60; _key62++) {
          observables[_key62] = arguments[_key62];
        }

        var last = observables[observables.length - 1];

        if (Object(_util_isScheduler__WEBPACK_IMPORTED_MODULE_1__["isScheduler"])(last)) {
          scheduler = observables.pop();

          if (observables.length > 1 && typeof observables[observables.length - 1] === 'number') {
            concurrent = observables.pop();
          }
        } else if (typeof last === 'number') {
          concurrent = observables.pop();
        }

        if (scheduler === null && observables.length === 1 && observables[0] instanceof _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]) {
          return observables[0];
        }

        return Object(_operators_mergeAll__WEBPACK_IMPORTED_MODULE_2__["mergeAll"])(concurrent)(Object(_fromArray__WEBPACK_IMPORTED_MODULE_3__["fromArray"])(observables, scheduler));
      } //# sourceMappingURL=merge.js.map

      /***/

    },

    /***/
    "VSY4": function VSY4(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return formatDuration;
      });
      /* harmony import */


      var _locale_en_US_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../locale/en-US/index.js */
      "iSMj");

      var defaultFormat = ['years', 'months', 'weeks', 'days', 'hours', 'minutes', 'seconds'];
      /**
       * @name formatDuration
       * @category Common Helpers
       * @summary Formats a duration in human-readable format
       *
       * @description
       * Return human-readable duration string i.e. "9 months 2 days"
       *
       * @param {Duration} duration - the duration to format
       * @param {Object} [options] - an object with options.
      
       * @param {string[]} [options.format=['years', 'months', 'weeks', 'days', 'hours', 'minutes', 'seconds']] - the array of units to format
       * @param {boolean} [options.zero=false] - should be zeros be included in the output?
       * @param {string} [options.delimiter=' '] - delimiter string
       * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}
       * @returns {string} the formatted date string
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // Format full duration
       * formatDuration({
       *   years: 2,
       *   months: 9,
       *   weeks: 1,
       *   days: 7,
       *   hours: 5,
       *   minutes: 9,
       *   seconds: 30
       * })
       * //=> '2 years 9 months 1 week 7 days 5 hours 9 minutes 30 seconds
       *
       * @example
       * // Format partial duration
       * formatDuration({ months: 9, days: 2 })
       * //=> '9 months 2 days'
       *
       * @example
       * // Customize the format
       * formatDuration(
       *   {
       *     years: 2,
       *     months: 9,
       *     weeks: 1,
       *     days: 7,
       *     hours: 5,
       *     minutes: 9,
       *     seconds: 30
       *   },
       *   { format: ['months', 'weeks'] }
       * ) === '9 months 1 week'
       *
       * @example
       * // Customize the zeros presence
       * formatDuration({ years: 0, months: 9 })
       * //=> '9 months'
       * formatDuration({ years: 0, months: 9 }, null, { zero: true })
       * //=> '0 years 9 months'
       *
       * @example
       * // Customize the delimiter
       * formatDuration({ years: 2, months: 9, weeks: 3 }, { delimiter: ', ' })
       * //=> '2 years, 9 months, 3 weeks'
       */

      function formatDuration(duration) {
        var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};

        if (arguments.length < 1) {
          throw new TypeError("1 argument required, but only ".concat(arguments.length, " present"));
        }

        var format = options.format || defaultFormat;
        var locale = options.locale || _locale_en_US_index_js__WEBPACK_IMPORTED_MODULE_0__["default"];
        var zero = options.zero || false;
        var delimiter = options.delimiter || ' ';
        var result = format.reduce(function (acc, unit) {
          var token = "x".concat(unit.replace(/(^.)/, function (m) {
            return m.toUpperCase();
          }));
          var addChunk = typeof duration[unit] === 'number' && (zero || duration[unit]);
          return addChunk ? acc.concat(locale.formatDistance(token, duration[unit])) : acc;
        }, []).join(delimiter);
        return result;
      }
      /***/

    },

    /***/
    "Vclq": function Vclq(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Spanish (United States) [es-us]
      //! author : bustta : https://github.com/bustta
      //! author : chrisrodz : https://github.com/chrisrodz
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),
            _monthsShort2 = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
            monthsParse = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i],
            monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;

        var esUs = moment.defineLocale('es-us', {
          months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
          monthsShort: function monthsShort(m, format) {
            if (!m) {
              return monthsShortDot;
            } else if (/-MMM-/.test(format)) {
              return _monthsShort2[m.month()];
            } else {
              return monthsShortDot[m.month()];
            }
          },
          monthsRegex: monthsRegex,
          monthsShortRegex: monthsRegex,
          monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
          monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
          monthsParse: monthsParse,
          longMonthsParse: monthsParse,
          shortMonthsParse: monthsParse,
          weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
          weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
          weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
          weekdaysParseExact: true,
          longDateFormat: {
            LT: 'h:mm A',
            LTS: 'h:mm:ss A',
            L: 'MM/DD/YYYY',
            LL: 'D [de] MMMM [de] YYYY',
            LLL: 'D [de] MMMM [de] YYYY h:mm A',
            LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A'
          },
          calendar: {
            sameDay: function sameDay() {
              return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
            },
            nextDay: function nextDay() {
              return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
            },
            nextWeek: function nextWeek() {
              return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
            },
            lastDay: function lastDay() {
              return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
            },
            lastWeek: function lastWeek() {
              return '[el] dddd [pasado a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
            },
            sameElse: 'L'
          },
          relativeTime: {
            future: 'en %s',
            past: 'hace %s',
            s: 'unos segundos',
            ss: '%d segundos',
            m: 'un minuto',
            mm: '%d minutos',
            h: 'una hora',
            hh: '%d horas',
            d: 'un día',
            dd: '%d días',
            w: 'una semana',
            ww: '%d semanas',
            M: 'un mes',
            MM: '%d meses',
            y: 'un año',
            yy: '%d años'
          },
          dayOfMonthOrdinalParse: /\d{1,2}º/,
          ordinal: '%dº',
          week: {
            dow: 0,
            // Sunday is the first day of the week.
            doy: 6 // The week that contains Jan 6th is the first week of the year.

          }
        });
        return esUs;
      });
      /***/

    },

    /***/
    "VlRU": function VlRU(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return isThisHour;
      });
      /* harmony import */


      var _isSameHour_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../isSameHour/index.js */
      "yzsd");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name isThisHour
       * @category Hour Helpers
       * @summary Is the given date in the same hour as the current date?
       * @pure false
       *
       * @description
       * Is the given date in the same hour as the current date?
       *
       * > ⚠️ Please note that this function is not present in the FP submodule as
       * > it uses `Date.now()` internally hence impure and can't be safely curried.
       *
       * ### 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 {Date|Number} date - the date to check
       * @returns {Boolean} the date is in this hour
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // If now is 25 September 2014 18:30:15.500,
       * // is 25 September 2014 18:00:00 in this hour?
       * var result = isThisHour(new Date(2014, 8, 25, 18))
       * //=> true
       */


      function isThisHour(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        return Object(_isSameHour_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Date.now(), dirtyDate);
      }
      /***/

    },

    /***/
    "Vpsf": function Vpsf(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "AnimationFrameAction", function () {
        return AnimationFrameAction;
      });
      /* harmony import */


      var _AsyncAction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ./AsyncAction */
      "3N8a");

      var AnimationFrameAction = /*#__PURE__*/function (_AsyncAction__WEBPACK2) {
        _inherits2(AnimationFrameAction, _AsyncAction__WEBPACK2);

        var _super341 = _createSuper2(AnimationFrameAction);

        function AnimationFrameAction(scheduler, work) {
          var _this665;

          _classCallCheck2(this, AnimationFrameAction);

          _this665 = _super341.call(this, scheduler, work);
          _this665.scheduler = scheduler;
          _this665.work = work;
          return _this665;
        }

        _createClass2(AnimationFrameAction, [{
          key: "requestAsyncId",
          value: function requestAsyncId(scheduler, id) {
            var delay = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;

            if (delay !== null && delay > 0) {
              return _get2(_getPrototypeOf2(AnimationFrameAction.prototype), "requestAsyncId", this).call(this, scheduler, id, delay);
            }

            scheduler.actions.push(this);
            return scheduler.scheduled || (scheduler.scheduled = requestAnimationFrame(function () {
              return scheduler.flush(null);
            }));
          }
        }, {
          key: "recycleAsyncId",
          value: function recycleAsyncId(scheduler, id) {
            var delay = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;

            if (delay !== null && delay > 0 || delay === null && this.delay > 0) {
              return _get2(_getPrototypeOf2(AnimationFrameAction.prototype), "recycleAsyncId", this).call(this, scheduler, id, delay);
            }

            if (scheduler.actions.length === 0) {
              cancelAnimationFrame(id);
              scheduler.scheduled = undefined;
            }

            return undefined;
          }
        }]);

        return AnimationFrameAction;
      }(_AsyncAction__WEBPACK_IMPORTED_MODULE_0__["AsyncAction"]); //# sourceMappingURL=AnimationFrameAction.js.map

      /***/

    },

    /***/
    "VxKU": function VxKU(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return isFriday;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name isFriday
       * @category Weekday Helpers
       * @summary Is the given date Friday?
       *
       * @description
       * Is the given date Friday?
       *
       * ### 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 {Date|Number} date - the date to check
       * @returns {Boolean} the date is Friday
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // Is 26 September 2014 Friday?
       * var result = isFriday(new Date(2014, 8, 26))
       * //=> true
       */


      function isFriday(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        return Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate).getDay() === 5;
      }
      /***/

    },

    /***/
    "W6rj": function W6rj(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return subBusinessDays;
      });
      /* harmony import */


      var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../_lib/toInteger/index.js */
      "/h9T");
      /* harmony import */


      var _addBusinessDays_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../addBusinessDays/index.js */
      "83R2");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name subBusinessDays
       * @category Day Helpers
       * @summary Substract the specified number of business days (mon - fri) to the given date.
       *
       * @description
       * Substract the specified number of business days (mon - fri) to the given date, ignoring weekends.
       *
       * @param {Date|Number} date - the date to be changed
       * @param {Number} amount - the amount of business days to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
       * @returns {Date} the new date with the business days subtracted
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // Substract 10 business days from 1 September 2014:
       * var result = subBusinessDays(new Date(2014, 8, 1), 10)
       * //=> Mon Aug 18 2014 00:00:00 (skipped weekend days)
       */


      function subBusinessDays(dirtyDate, dirtyAmount) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(2, arguments);
        var amount = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyAmount);
        return Object(_addBusinessDays_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate, -amount);
      }
      /***/

    },

    /***/
    "W9Un": function W9Un(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return isThisISOWeek;
      });
      /* harmony import */


      var _isSameISOWeek_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../isSameISOWeek/index.js */
      "qzLx");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name isThisISOWeek
       * @category ISO Week Helpers
       * @summary Is the given date in the same ISO week as the current date?
       * @pure false
       *
       * @description
       * Is the given date in the same ISO week as the current date?
       *
       * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
       *
       * > ⚠️ Please note that this function is not present in the FP submodule as
       * > it uses `Date.now()` internally hence impure and can't be safely curried.
       *
       * ### 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 {Date|Number} date - the date to check
       * @returns {Boolean} the date is in this ISO week
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // If today is 25 September 2014, is 22 September 2014 in this ISO week?
       * var result = isThisISOWeek(new Date(2014, 8, 22))
       * //=> true
       */


      function isThisISOWeek(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        return Object(_isSameISOWeek_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate, Date.now());
      }
      /***/

    },

    /***/
    "WIjQ": function WIjQ(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return isSameMonth;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name isSameMonth
       * @category Month Helpers
       * @summary Are the given dates in the same month?
       *
       * @description
       * Are the given dates in the same month?
       *
       * ### 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 {Date|Number} dateLeft - the first date to check
       * @param {Date|Number} dateRight - the second date to check
       * @returns {Boolean} the dates are in the same month
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // Are 2 September 2014 and 25 September 2014 in the same month?
       * var result = isSameMonth(new Date(2014, 8, 2), new Date(2014, 8, 25))
       * //=> true
       */


      function isSameMonth(dirtyDateLeft, dirtyDateRight) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(2, arguments);
        var dateLeft = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateLeft);
        var dateRight = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateRight);
        return dateLeft.getFullYear() === dateRight.getFullYear() && dateLeft.getMonth() === dateRight.getMonth();
      }
      /***/

    },

    /***/
    "WJMa": function WJMa(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return startOfSecond;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name startOfSecond
       * @category Second Helpers
       * @summary Return the start of a second for the given date.
       *
       * @description
       * Return the start of a second for the given date.
       * The result will be in the local timezone.
       *
       * ### 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 {Date|Number} date - the original date
       * @returns {Date} the start of a second
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // The start of a second for 1 December 2014 22:15:45.400:
       * var result = startOfSecond(new Date(2014, 11, 1, 22, 15, 45, 400))
       * //=> Mon Dec 01 2014 22:15:45.000
       */


      function startOfSecond(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);
        date.setMilliseconds(0);
        return date;
      }
      /***/

    },

    /***/
    "WMd4": function WMd4(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NotificationKind", function () {
        return NotificationKind;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Notification", function () {
        return Notification;
      });
      /* harmony import */


      var _observable_empty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ./observable/empty */
      "EY2u");
      /* harmony import */


      var _observable_of__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ./observable/of */
      "LRne");
      /* harmony import */


      var _observable_throwError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ./observable/throwError */
      "z6cu");

      var NotificationKind;

      (function (NotificationKind) {
        NotificationKind["NEXT"] = "N";
        NotificationKind["ERROR"] = "E";
        NotificationKind["COMPLETE"] = "C";
      })(NotificationKind || (NotificationKind = {}));

      var Notification = /*#__PURE__*/function () {
        function Notification(kind, value, error) {
          _classCallCheck2(this, Notification);

          this.kind = kind;
          this.value = value;
          this.error = error;
          this.hasValue = kind === 'N';
        }

        _createClass2(Notification, [{
          key: "observe",
          value: function observe(observer) {
            switch (this.kind) {
              case 'N':
                return observer.next && observer.next(this.value);

              case 'E':
                return observer.error && observer.error(this.error);

              case 'C':
                return observer.complete && observer.complete();
            }
          }
        }, {
          key: "do",
          value: function _do(next, error, complete) {
            var kind = this.kind;

            switch (kind) {
              case 'N':
                return next && next(this.value);

              case 'E':
                return error && error(this.error);

              case 'C':
                return complete && complete();
            }
          }
        }, {
          key: "accept",
          value: function accept(nextOrObserver, error, complete) {
            if (nextOrObserver && typeof nextOrObserver.next === 'function') {
              return this.observe(nextOrObserver);
            } else {
              return this["do"](nextOrObserver, error, complete);
            }
          }
        }, {
          key: "toObservable",
          value: function toObservable() {
            var kind = this.kind;

            switch (kind) {
              case 'N':
                return Object(_observable_of__WEBPACK_IMPORTED_MODULE_1__["of"])(this.value);

              case 'E':
                return Object(_observable_throwError__WEBPACK_IMPORTED_MODULE_2__["throwError"])(this.error);

              case 'C':
                return Object(_observable_empty__WEBPACK_IMPORTED_MODULE_0__["empty"])();
            }

            throw new Error('unexpected notification kind value');
          }
        }], [{
          key: "createNext",
          value: function createNext(value) {
            if (typeof value !== 'undefined') {
              return new Notification('N', value);
            }

            return Notification.undefinedValueNotification;
          }
        }, {
          key: "createError",
          value: function createError(err) {
            return new Notification('E', undefined, err);
          }
        }, {
          key: "createComplete",
          value: function createComplete() {
            return Notification.completeNotification;
          }
        }]);

        return Notification;
      }();

      Notification.completeNotification = new Notification('C');
      Notification.undefinedValueNotification = new Notification('N', undefined); //# sourceMappingURL=Notification.js.map

      /***/
    },

    /***/
    "WPMC": function WPMC(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "generate", function () {
        return generate;
      });
      /* harmony import */


      var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Observable */
      "HDdC");
      /* harmony import */


      var _util_identity__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../util/identity */
      "SpAZ");
      /* harmony import */


      var _util_isScheduler__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../util/isScheduler */
      "z+Ro");

      function generate(initialStateOrOptions, condition, iterate, resultSelectorOrObservable, scheduler) {
        var resultSelector;
        var initialState;

        if (arguments.length == 1) {
          var options = initialStateOrOptions;
          initialState = options.initialState;
          condition = options.condition;
          iterate = options.iterate;
          resultSelector = options.resultSelector || _util_identity__WEBPACK_IMPORTED_MODULE_1__["identity"];
          scheduler = options.scheduler;
        } else if (resultSelectorOrObservable === undefined || Object(_util_isScheduler__WEBPACK_IMPORTED_MODULE_2__["isScheduler"])(resultSelectorOrObservable)) {
          initialState = initialStateOrOptions;
          resultSelector = _util_identity__WEBPACK_IMPORTED_MODULE_1__["identity"];
          scheduler = resultSelectorOrObservable;
        } else {
          initialState = initialStateOrOptions;
          resultSelector = resultSelectorOrObservable;
        }

        return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](function (subscriber) {
          var state = initialState;

          if (scheduler) {
            return scheduler.schedule(dispatch, 0, {
              subscriber: subscriber,
              iterate: iterate,
              condition: condition,
              resultSelector: resultSelector,
              state: state
            });
          }

          do {
            if (condition) {
              var conditionResult = void 0;

              try {
                conditionResult = condition(state);
              } catch (err) {
                subscriber.error(err);
                return undefined;
              }

              if (!conditionResult) {
                subscriber.complete();
                break;
              }
            }

            var value = void 0;

            try {
              value = resultSelector(state);
            } catch (err) {
              subscriber.error(err);
              return undefined;
            }

            subscriber.next(value);

            if (subscriber.closed) {
              break;
            }

            try {
              state = iterate(state);
            } catch (err) {
              subscriber.error(err);
              return undefined;
            }
          } while (true);

          return undefined;
        });
      }

      function dispatch(state) {
        var subscriber = state.subscriber,
            condition = state.condition;

        if (subscriber.closed) {
          return undefined;
        }

        if (state.needIterate) {
          try {
            state.state = state.iterate(state.state);
          } catch (err) {
            subscriber.error(err);
            return undefined;
          }
        } else {
          state.needIterate = true;
        }

        if (condition) {
          var conditionResult;

          try {
            conditionResult = condition(state.state);
          } catch (err) {
            subscriber.error(err);
            return undefined;
          }

          if (!conditionResult) {
            subscriber.complete();
            return undefined;
          }

          if (subscriber.closed) {
            return undefined;
          }
        }

        var value;

        try {
          value = state.resultSelector(state.state);
        } catch (err) {
          subscriber.error(err);
          return undefined;
        }

        if (subscriber.closed) {
          return undefined;
        }

        subscriber.next(value);

        if (subscriber.closed) {
          return undefined;
        }

        return this.schedule(state);
      } //# sourceMappingURL=generate.js.map

      /***/

    },

    /***/
    "WQ3w": function WQ3w(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return subHours;
      });
      /* harmony import */


      var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../_lib/toInteger/index.js */
      "/h9T");
      /* harmony import */


      var _addHours_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../addHours/index.js */
      "Da6A");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name subHours
       * @category Hour Helpers
       * @summary Subtract the specified number of hours from the given date.
       *
       * @description
       * Subtract the specified number of hours from the given date.
       *
       * ### 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 {Date|Number} date - the date to be changed
       * @param {Number} amount - the amount of hours to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
       * @returns {Date} the new date with the hours subtracted
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // Subtract 2 hours from 11 July 2014 01:00:00:
       * var result = subHours(new Date(2014, 6, 11, 1, 0), 2)
       * //=> Thu Jul 10 2014 23:00:00
       */


      function subHours(dirtyDate, dirtyAmount) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(2, arguments);
        var amount = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyAmount);
        return Object(_addHours_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate, -amount);
      }
      /***/

    },

    /***/
    "WYAk": function WYAk(module, exports, __webpack_require__) {
      ;

      (function (root, factory) {
        if (true) {
          // CommonJS
          module.exports = exports = factory(__webpack_require__(
          /*! ./core */
          "Ib8C"));
        } else {}
      })(this, function (CryptoJS) {
        (function () {
          // Shortcuts
          var C = CryptoJS;
          var C_lib = C.lib;
          var Base = C_lib.Base;
          var C_enc = C.enc;
          var Utf8 = C_enc.Utf8;
          var C_algo = C.algo;
          /**
           * HMAC algorithm.
           */

          var HMAC = C_algo.HMAC = Base.extend({
            /**
             * Initializes a newly created HMAC.
             *
             * @param {Hasher} hasher The hash algorithm to use.
             * @param {WordArray|string} key The secret key.
             *
             * @example
             *
             *     var hmacHasher = CryptoJS.algo.HMAC.create(CryptoJS.algo.SHA256, key);
             */
            init: function init(hasher, key) {
              // Init hasher
              hasher = this._hasher = new hasher.init(); // Convert string to WordArray, else assume WordArray already

              if (typeof key == 'string') {
                key = Utf8.parse(key);
              } // Shortcuts


              var hasherBlockSize = hasher.blockSize;
              var hasherBlockSizeBytes = hasherBlockSize * 4; // Allow arbitrary length keys

              if (key.sigBytes > hasherBlockSizeBytes) {
                key = hasher.finalize(key);
              } // Clamp excess bits


              key.clamp(); // Clone key for inner and outer pads

              var oKey = this._oKey = key.clone();
              var iKey = this._iKey = key.clone(); // Shortcuts

              var oKeyWords = oKey.words;
              var iKeyWords = iKey.words; // XOR keys with pad constants

              for (var i = 0; i < hasherBlockSize; i++) {
                oKeyWords[i] ^= 0x5c5c5c5c;
                iKeyWords[i] ^= 0x36363636;
              }

              oKey.sigBytes = iKey.sigBytes = hasherBlockSizeBytes; // Set initial values

              this.reset();
            },

            /**
             * Resets this HMAC to its initial state.
             *
             * @example
             *
             *     hmacHasher.reset();
             */
            reset: function reset() {
              // Shortcut
              var hasher = this._hasher; // Reset

              hasher.reset();
              hasher.update(this._iKey);
            },

            /**
             * Updates this HMAC with a message.
             *
             * @param {WordArray|string} messageUpdate The message to append.
             *
             * @return {HMAC} This HMAC instance.
             *
             * @example
             *
             *     hmacHasher.update('message');
             *     hmacHasher.update(wordArray);
             */
            update: function update(messageUpdate) {
              this._hasher.update(messageUpdate); // Chainable


              return this;
            },

            /**
             * Finalizes the HMAC computation.
             * Note that the finalize operation is effectively a destructive, read-once operation.
             *
             * @param {WordArray|string} messageUpdate (Optional) A final message update.
             *
             * @return {WordArray} The HMAC.
             *
             * @example
             *
             *     var hmac = hmacHasher.finalize();
             *     var hmac = hmacHasher.finalize('message');
             *     var hmac = hmacHasher.finalize(wordArray);
             */
            finalize: function finalize(messageUpdate) {
              // Shortcut
              var hasher = this._hasher; // Compute HMAC

              var innerHash = hasher.finalize(messageUpdate);
              hasher.reset();
              var hmac = hasher.finalize(this._oKey.clone().concat(innerHash));
              return hmac;
            }
          });
        })();
      });
      /***/

    },

    /***/
    "WYrj": function WYrj(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Maldivian [dv]
      //! author : Jawish Hameed : https://github.com/jawish
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var months = ['ޖެނުއަރީ', 'ފެބްރުއަރީ', 'މާރިޗު', 'އޭޕްރީލު', 'މޭ', 'ޖޫން', 'ޖުލައި', 'އޯގަސްޓު', 'ސެޕްޓެމްބަރު', 'އޮކްޓޯބަރު', 'ނޮވެމްބަރު', 'ޑިސެމްބަރު'],
            weekdays = ['އާދިއްތަ', 'ހޯމަ', 'އަންގާރަ', 'ބުދަ', 'ބުރާސްފަތި', 'ހުކުރު', 'ހޮނިހިރު'];
        var dv = moment.defineLocale('dv', {
          months: months,
          monthsShort: months,
          weekdays: weekdays,
          weekdaysShort: weekdays,
          weekdaysMin: 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'),
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'D/M/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd D MMMM YYYY HH:mm'
          },
          meridiemParse: /މކ|މފ/,
          isPM: function isPM(input) {
            return 'މފ' === input;
          },
          meridiem: function meridiem(hour, minute, isLower) {
            if (hour < 12) {
              return 'މކ';
            } else {
              return 'މފ';
            }
          },
          calendar: {
            sameDay: '[މިއަދު] LT',
            nextDay: '[މާދަމާ] LT',
            nextWeek: 'dddd LT',
            lastDay: '[އިއްޔެ] LT',
            lastWeek: '[ފާއިތުވި] dddd LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'ތެރޭގައި %s',
            past: 'ކުރިން %s',
            s: 'ސިކުންތުކޮޅެއް',
            ss: 'd% ސިކުންތު',
            m: 'މިނިޓެއް',
            mm: 'މިނިޓު %d',
            h: 'ގަޑިއިރެއް',
            hh: 'ގަޑިއިރު %d',
            d: 'ދުވަހެއް',
            dd: 'ދުވަސް %d',
            M: 'މަހެއް',
            MM: 'މަސް %d',
            y: 'އަހަރެއް',
            yy: 'އަހަރު %d'
          },
          preparse: function preparse(string) {
            return string.replace(/،/g, ',');
          },
          postformat: function postformat(string) {
            return string.replace(/,/g, '،');
          },
          week: {
            dow: 7,
            // Sunday is the first day of the week.
            doy: 12 // The week that contains Jan 12th is the first week of the year.

          }
        });
        return dv;
      });
      /***/

    },

    /***/
    "WYsD": function WYsD(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony import */


      var _lib_buildMatchPatternFn_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../../../_lib/buildMatchPatternFn/index.js */
      "vRX4");
      /* harmony import */


      var _lib_buildMatchFn_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../../../_lib/buildMatchFn/index.js */
      "wzM+");

      var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i;
      var parseOrdinalNumberPattern = /\d+/i;
      var matchEraPatterns = {
        narrow: /^(b|a)/i,
        abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
        wide: /^(before christ|before common era|anno domini|common era)/i
      };
      var parseEraPatterns = {
        any: [/^b/i, /^(a|c)/i]
      };
      var matchQuarterPatterns = {
        narrow: /^[1234]/i,
        abbreviated: /^q[1234]/i,
        wide: /^[1234](th|st|nd|rd)? quarter/i
      };
      var parseQuarterPatterns = {
        any: [/1/i, /2/i, /3/i, /4/i]
      };
      var matchMonthPatterns = {
        narrow: /^[jfmasond]/i,
        abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
        wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
      };
      var parseMonthPatterns = {
        narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i],
        any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i]
      };
      var matchDayPatterns = {
        narrow: /^[smtwf]/i,
        "short": /^(su|mo|tu|we|th|fr|sa)/i,
        abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
        wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
      };
      var parseDayPatterns = {
        narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
        any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
      };
      var matchDayPeriodPatterns = {
        narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
        any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
      };
      var parseDayPeriodPatterns = {
        any: {
          am: /^a/i,
          pm: /^p/i,
          midnight: /^mi/i,
          noon: /^no/i,
          morning: /morning/i,
          afternoon: /afternoon/i,
          evening: /evening/i,
          night: /night/i
        }
      };
      var match = {
        ordinalNumber: Object(_lib_buildMatchPatternFn_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])({
          matchPattern: matchOrdinalNumberPattern,
          parsePattern: parseOrdinalNumberPattern,
          valueCallback: function valueCallback(value) {
            return parseInt(value, 10);
          }
        }),
        era: Object(_lib_buildMatchFn_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])({
          matchPatterns: matchEraPatterns,
          defaultMatchWidth: 'wide',
          parsePatterns: parseEraPatterns,
          defaultParseWidth: 'any'
        }),
        quarter: Object(_lib_buildMatchFn_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])({
          matchPatterns: matchQuarterPatterns,
          defaultMatchWidth: 'wide',
          parsePatterns: parseQuarterPatterns,
          defaultParseWidth: 'any',
          valueCallback: function valueCallback(index) {
            return index + 1;
          }
        }),
        month: Object(_lib_buildMatchFn_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])({
          matchPatterns: matchMonthPatterns,
          defaultMatchWidth: 'wide',
          parsePatterns: parseMonthPatterns,
          defaultParseWidth: 'any'
        }),
        day: Object(_lib_buildMatchFn_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])({
          matchPatterns: matchDayPatterns,
          defaultMatchWidth: 'wide',
          parsePatterns: parseDayPatterns,
          defaultParseWidth: 'any'
        }),
        dayPeriod: Object(_lib_buildMatchFn_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])({
          matchPatterns: matchDayPeriodPatterns,
          defaultMatchWidth: 'any',
          parsePatterns: parseDayPeriodPatterns,
          defaultParseWidth: 'any'
        })
      };
      /* harmony default export */

      __webpack_exports__["default"] = match;
      /***/
    },

    /***/
    "Wv91": function Wv91(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Turkmen [tk]
      //! author : Atamyrat Abdyrahmanov : https://github.com/atamyratabdy
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var suffixes = {
          1: "'inji",
          5: "'inji",
          8: "'inji",
          70: "'inji",
          80: "'inji",
          2: "'nji",
          7: "'nji",
          20: "'nji",
          50: "'nji",
          3: "'ünji",
          4: "'ünji",
          100: "'ünji",
          6: "'njy",
          9: "'unjy",
          10: "'unjy",
          30: "'unjy",
          60: "'ynjy",
          90: "'ynjy"
        };
        var tk = moment.defineLocale('tk', {
          months: 'Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr'.split('_'),
          monthsShort: 'Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek'.split('_'),
          weekdays: 'Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe'.split('_'),
          weekdaysShort: 'Ýek_Duş_Siş_Çar_Pen_Ann_Şen'.split('_'),
          weekdaysMin: 'Ýk_Dş_Sş_Çr_Pn_An_Şn'.split('_'),
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd, D MMMM YYYY HH:mm'
          },
          calendar: {
            sameDay: '[bugün sagat] LT',
            nextDay: '[ertir sagat] LT',
            nextWeek: '[indiki] dddd [sagat] LT',
            lastDay: '[düýn] LT',
            lastWeek: '[geçen] dddd [sagat] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: '%s soň',
            past: '%s öň',
            s: 'birnäçe sekunt',
            m: 'bir minut',
            mm: '%d minut',
            h: 'bir sagat',
            hh: '%d sagat',
            d: 'bir gün',
            dd: '%d gün',
            M: 'bir aý',
            MM: '%d aý',
            y: 'bir ýyl',
            yy: '%d ýyl'
          },
          ordinal: function ordinal(number, period) {
            switch (period) {
              case 'd':
              case 'D':
              case 'Do':
              case 'DD':
                return number;

              default:
                if (number === 0) {
                  // special case for zero
                  return number + "'unjy";
                }

                var a = number % 10,
                    b = number % 100 - a,
                    c = number >= 100 ? 100 : null;
                return number + (suffixes[a] || suffixes[b] || suffixes[c]);
            }
          },
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 7 // The week that contains Jan 7th is the first week of the year.

          }
        });
        return tk;
      });
      /***/

    },

    /***/
    "WxRl": function WxRl(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Hungarian [hu]
      //! author : Adam Brunner : https://github.com/adambrunner
      //! author : Peter Viszt  : https://github.com/passatgt
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var weekEndings = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(' ');

        function translate(number, withoutSuffix, key, isFuture) {
          var num = number;

          switch (key) {
            case 's':
              return isFuture || withoutSuffix ? 'néhány másodperc' : 'néhány másodperce';

            case 'ss':
              return num + (isFuture || withoutSuffix) ? ' másodperc' : ' másodperce';

            case 'm':
              return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce');

            case 'mm':
              return num + (isFuture || withoutSuffix ? ' perc' : ' perce');

            case 'h':
              return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája');

            case 'hh':
              return num + (isFuture || withoutSuffix ? ' óra' : ' órája');

            case 'd':
              return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja');

            case 'dd':
              return num + (isFuture || withoutSuffix ? ' nap' : ' napja');

            case 'M':
              return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');

            case 'MM':
              return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');

            case 'y':
              return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve');

            case 'yy':
              return num + (isFuture || withoutSuffix ? ' év' : ' éve');
          }

          return '';
        }

        function week(isFuture) {
          return (isFuture ? '' : '[múlt] ') + '[' + weekEndings[this.day()] + '] LT[-kor]';
        }

        var hu = moment.defineLocale('hu', {
          months: 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split('_'),
          monthsShort: 'jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.'.split('_'),
          monthsParseExact: true,
          weekdays: 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'),
          weekdaysShort: 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'),
          weekdaysMin: 'v_h_k_sze_cs_p_szo'.split('_'),
          longDateFormat: {
            LT: 'H:mm',
            LTS: 'H:mm:ss',
            L: 'YYYY.MM.DD.',
            LL: 'YYYY. MMMM D.',
            LLL: 'YYYY. MMMM D. H:mm',
            LLLL: 'YYYY. MMMM D., dddd H:mm'
          },
          meridiemParse: /de|du/i,
          isPM: function isPM(input) {
            return input.charAt(1).toLowerCase() === 'u';
          },
          meridiem: function meridiem(hours, minutes, isLower) {
            if (hours < 12) {
              return isLower === true ? 'de' : 'DE';
            } else {
              return isLower === true ? 'du' : 'DU';
            }
          },
          calendar: {
            sameDay: '[ma] LT[-kor]',
            nextDay: '[holnap] LT[-kor]',
            nextWeek: function nextWeek() {
              return week.call(this, true);
            },
            lastDay: '[tegnap] LT[-kor]',
            lastWeek: function lastWeek() {
              return week.call(this, false);
            },
            sameElse: 'L'
          },
          relativeTime: {
            future: '%s múlva',
            past: '%s',
            s: translate,
            ss: translate,
            m: translate,
            mm: translate,
            h: translate,
            hh: translate,
            d: translate,
            dd: translate,
            M: translate,
            MM: translate,
            y: translate,
            yy: translate
          },
          dayOfMonthOrdinalParse: /\d{1,2}\./,
          ordinal: '%d.',
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return hu;
      });
      /***/

    },

    /***/
    "WyKG": function WyKG(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "toSubscriber", function () {
        return toSubscriber;
      });
      /* harmony import */


      var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Subscriber */
      "7o/Q");
      /* harmony import */


      var _symbol_rxSubscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../symbol/rxSubscriber */
      "2QA8");
      /* harmony import */


      var _Observer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../Observer */
      "gRHU");

      function toSubscriber(nextOrObserver, error, complete) {
        if (nextOrObserver) {
          if (nextOrObserver instanceof _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]) {
            return nextOrObserver;
          }

          if (nextOrObserver[_symbol_rxSubscriber__WEBPACK_IMPORTED_MODULE_1__["rxSubscriber"]]) {
            return nextOrObserver[_symbol_rxSubscriber__WEBPACK_IMPORTED_MODULE_1__["rxSubscriber"]]();
          }
        }

        if (!nextOrObserver && !error && !complete) {
          return new _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"](_Observer__WEBPACK_IMPORTED_MODULE_2__["empty"]);
        }

        return new _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"](nextOrObserver, error, complete);
      } //# sourceMappingURL=toSubscriber.js.map

      /***/

    },

    /***/
    "X709": function X709(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Swedish [sv]
      //! author : Jens Alm : https://github.com/ulmus
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var sv = moment.defineLocale('sv', {
          months: 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split('_'),
          monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
          weekdays: 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),
          weekdaysShort: 'sön_mån_tis_ons_tor_fre_lör'.split('_'),
          weekdaysMin: 'sö_må_ti_on_to_fr_lö'.split('_'),
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'YYYY-MM-DD',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY [kl.] HH:mm',
            LLLL: 'dddd D MMMM YYYY [kl.] HH:mm',
            lll: 'D MMM YYYY HH:mm',
            llll: 'ddd D MMM YYYY HH:mm'
          },
          calendar: {
            sameDay: '[Idag] LT',
            nextDay: '[Imorgon] LT',
            lastDay: '[Igår] LT',
            nextWeek: '[På] dddd LT',
            lastWeek: '[I] dddd[s] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'om %s',
            past: 'för %s sedan',
            s: 'några sekunder',
            ss: '%d sekunder',
            m: 'en minut',
            mm: '%d minuter',
            h: 'en timme',
            hh: '%d timmar',
            d: 'en dag',
            dd: '%d dagar',
            M: 'en månad',
            MM: '%d månader',
            y: 'ett år',
            yy: '%d år'
          },
          dayOfMonthOrdinalParse: /\d{1,2}(\:e|\:a)/,
          ordinal: function ordinal(number) {
            var b = number % 10,
                output = ~~(number % 100 / 10) === 1 ? ':e' : b === 1 ? ':a' : b === 2 ? ':a' : b === 3 ? ':e' : ':e';
            return number + output;
          },
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return sv;
      });
      /***/

    },

    /***/
    "XDbj": function XDbj(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "throwIfEmpty", function () {
        return throwIfEmpty;
      });
      /* harmony import */


      var _util_EmptyError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../util/EmptyError */
      "sVev");
      /* harmony import */


      var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../Subscriber */
      "7o/Q");

      function throwIfEmpty() {
        var errorFactory = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultErrorFactory;
        return function (source) {
          return source.lift(new ThrowIfEmptyOperator(errorFactory));
        };
      }

      var ThrowIfEmptyOperator = /*#__PURE__*/function () {
        function ThrowIfEmptyOperator(errorFactory) {
          _classCallCheck2(this, ThrowIfEmptyOperator);

          this.errorFactory = errorFactory;
        }

        _createClass2(ThrowIfEmptyOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            return source.subscribe(new ThrowIfEmptySubscriber(subscriber, this.errorFactory));
          }
        }]);

        return ThrowIfEmptyOperator;
      }();

      var ThrowIfEmptySubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_24) {
        _inherits2(ThrowIfEmptySubscriber, _Subscriber__WEBPACK_24);

        var _super342 = _createSuper2(ThrowIfEmptySubscriber);

        function ThrowIfEmptySubscriber(destination, errorFactory) {
          var _this666;

          _classCallCheck2(this, ThrowIfEmptySubscriber);

          _this666 = _super342.call(this, destination);
          _this666.errorFactory = errorFactory;
          _this666.hasValue = false;
          return _this666;
        }

        _createClass2(ThrowIfEmptySubscriber, [{
          key: "_next",
          value: function _next(value) {
            this.hasValue = true;
            this.destination.next(value);
          }
        }, {
          key: "_complete",
          value: function _complete() {
            if (!this.hasValue) {
              var err;

              try {
                err = this.errorFactory();
              } catch (e) {
                err = e;
              }

              this.destination.error(err);
            } else {
              return this.destination.complete();
            }
          }
        }]);

        return ThrowIfEmptySubscriber;
      }(_Subscriber__WEBPACK_IMPORTED_MODULE_1__["Subscriber"]);

      function defaultErrorFactory() {
        return new _util_EmptyError__WEBPACK_IMPORTED_MODULE_0__["EmptyError"]();
      } //# sourceMappingURL=throwIfEmpty.js.map

      /***/

    },

    /***/
    "XDpg": function XDpg(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Chinese (China) [zh-cn]
      //! author : suupic : https://github.com/suupic
      //! author : Zeno Zeng : https://github.com/zenozeng
      //! author : uu109 : https://github.com/uu109
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var zhCn = moment.defineLocale('zh-cn', {
          months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
          monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
          weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
          weekdaysShort: '周日_周一_周二_周三_周四_周五_周六'.split('_'),
          weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'YYYY/MM/DD',
            LL: 'YYYY年M月D日',
            LLL: 'YYYY年M月D日Ah点mm分',
            LLLL: 'YYYY年M月D日ddddAh点mm分',
            l: 'YYYY/M/D',
            ll: 'YYYY年M月D日',
            lll: 'YYYY年M月D日 HH:mm',
            llll: 'YYYY年M月D日dddd HH:mm'
          },
          meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
          meridiemHour: function meridiemHour(hour, meridiem) {
            if (hour === 12) {
              hour = 0;
            }

            if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
              return hour;
            } else if (meridiem === '下午' || meridiem === '晚上') {
              return hour + 12;
            } else {
              // '中午'
              return hour >= 11 ? hour : hour + 12;
            }
          },
          meridiem: function meridiem(hour, minute, isLower) {
            var hm = hour * 100 + minute;

            if (hm < 600) {
              return '凌晨';
            } else if (hm < 900) {
              return '早上';
            } else if (hm < 1130) {
              return '上午';
            } else if (hm < 1230) {
              return '中午';
            } else if (hm < 1800) {
              return '下午';
            } else {
              return '晚上';
            }
          },
          calendar: {
            sameDay: '[今天]LT',
            nextDay: '[明天]LT',
            nextWeek: function nextWeek(now) {
              if (now.week() !== this.week()) {
                return '[下]dddLT';
              } else {
                return '[本]dddLT';
              }
            },
            lastDay: '[昨天]LT',
            lastWeek: function lastWeek(now) {
              if (this.week() !== now.week()) {
                return '[上]dddLT';
              } else {
                return '[本]dddLT';
              }
            },
            sameElse: 'L'
          },
          dayOfMonthOrdinalParse: /\d{1,2}(日|月|周)/,
          ordinal: function ordinal(number, period) {
            switch (period) {
              case 'd':
              case 'D':
              case 'DDD':
                return number + '日';

              case 'M':
                return number + '月';

              case 'w':
              case 'W':
                return number + '周';

              default:
                return number;
            }
          },
          relativeTime: {
            future: '%s后',
            past: '%s前',
            s: '几秒',
            ss: '%d 秒',
            m: '1 分钟',
            mm: '%d 分钟',
            h: '1 小时',
            hh: '%d 小时',
            d: '1 天',
            dd: '%d 天',
            w: '1 周',
            ww: '%d 周',
            M: '1 个月',
            MM: '%d 个月',
            y: '1 年',
            yy: '%d 年'
          },
          week: {
            // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return zhCn;
      });
      /***/

    },

    /***/
    "XE/z": function XEZ(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatIconModuleNgFactory", function () {
        return MatIconModuleNgFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "RenderType_MatIcon", function () {
        return RenderType_MatIcon;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "View_MatIcon_0", function () {
        return View_MatIcon_0;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "View_MatIcon_Host_0", function () {
        return View_MatIcon_Host_0;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatIconNgFactory", function () {
        return MatIconNgFactory;
      });
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /* harmony import */


      var _angular_material_icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/material/icon */
      "Tj54");
      /* harmony import */


      var _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! @angular/cdk/bidi */
      "9gLZ");
      /* harmony import */


      var _angular_material_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! @angular/material/core */
      "UhP/");
      /* harmony import */


      var _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! @angular/cdk/a11y */
      "YEUz");
      /* harmony import */


      var _angular_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! @angular/common */
      "SVse");
      /**
       * @fileoverview This file was generated by the Angular template compiler. Do not edit.
       *
       * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes,extraRequire}
       * tslint:disable
       */


      var MatIconModuleNgFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵcmf"](_angular_material_icon__WEBPACK_IMPORTED_MODULE_1__["MatIconModule"], [], function (_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmod"]([_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](512, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵCodegenComponentFactoryResolver"], [[8, []], [3, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"]], _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModuleRef"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_2__["BidiModule"], _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_2__["BidiModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_material_core__WEBPACK_IMPORTED_MODULE_3__["MatCommonModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_3__["MatCommonModule"], [_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_4__["HighContrastModeDetector"], [2, _angular_material_core__WEBPACK_IMPORTED_MODULE_3__["MATERIAL_SANITY_CHECKS"]], _angular_common__WEBPACK_IMPORTED_MODULE_5__["DOCUMENT"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_material_icon__WEBPACK_IMPORTED_MODULE_1__["MatIconModule"], _angular_material_icon__WEBPACK_IMPORTED_MODULE_1__["MatIconModule"], [])]);
      });

      var styles_MatIcon = [".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"];

      var RenderType_MatIcon = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵcrt"]({
        encapsulation: 2,
        styles: styles_MatIcon,
        data: {}
      });

      function View_MatIcon_0(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](2, [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵncd"](null, 0)], null, null);
      }

      function View_MatIcon_Host_0(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](0, 0, null, null, 1, "mat-icon", [["class", "mat-icon notranslate"], ["role", "img"]], [[1, "data-mat-icon-type", 0], [1, "data-mat-icon-name", 0], [1, "data-mat-icon-namespace", 0], [2, "mat-icon-inline", null], [2, "mat-icon-no-color", null]], null, null, View_MatIcon_0, RenderType_MatIcon)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](1, 8634368, null, 0, _angular_material_icon__WEBPACK_IMPORTED_MODULE_1__["MatIcon"], [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"], _angular_material_icon__WEBPACK_IMPORTED_MODULE_1__["MatIconRegistry"], [8, null], _angular_material_icon__WEBPACK_IMPORTED_MODULE_1__["MAT_ICON_LOCATION"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ErrorHandler"]], null, null)], function (_ck, _v) {
          _ck(_v, 1, 0);
        }, function (_ck, _v) {
          var currVal_0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1)._usingFontIcon() ? "font" : "svg";

          var currVal_1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1)._svgName || _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1).fontIcon;

          var currVal_2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1)._svgNamespace || _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1).fontSet;

          var currVal_3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1).inline;

          var currVal_4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1).color !== "primary" && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1).color !== "accent" && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1).color !== "warn";

          _ck(_v, 0, 0, currVal_0, currVal_1, currVal_2, currVal_3, currVal_4);
        });
      }

      var MatIconNgFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵccf"]("mat-icon", _angular_material_icon__WEBPACK_IMPORTED_MODULE_1__["MatIcon"], View_MatIcon_Host_0, {
        color: "color",
        inline: "inline",
        svgIcon: "svgIcon",
        fontSet: "fontSet",
        fontIcon: "fontIcon"
      }, {}, ["*"]);
      /***/

    },

    /***/
    "XLvN": function XLvN(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Telugu [te]
      //! author : Krishna Chaitanya Thota : https://github.com/kcthota
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var te = moment.defineLocale('te', {
          months: 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split('_'),
          monthsShort: 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split('_'),
          monthsParseExact: true,
          weekdays: 'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split('_'),
          weekdaysShort: 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'),
          weekdaysMin: 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'),
          longDateFormat: {
            LT: 'A h:mm',
            LTS: 'A h:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY, A h:mm',
            LLLL: 'dddd, D MMMM YYYY, A h:mm'
          },
          calendar: {
            sameDay: '[నేడు] LT',
            nextDay: '[రేపు] LT',
            nextWeek: 'dddd, LT',
            lastDay: '[నిన్న] LT',
            lastWeek: '[గత] dddd, LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: '%s లో',
            past: '%s క్రితం',
            s: 'కొన్ని క్షణాలు',
            ss: '%d సెకన్లు',
            m: 'ఒక నిమిషం',
            mm: '%d నిమిషాలు',
            h: 'ఒక గంట',
            hh: '%d గంటలు',
            d: 'ఒక రోజు',
            dd: '%d రోజులు',
            M: 'ఒక నెల',
            MM: '%d నెలలు',
            y: 'ఒక సంవత్సరం',
            yy: '%d సంవత్సరాలు'
          },
          dayOfMonthOrdinalParse: /\d{1,2}వ/,
          ordinal: '%dవ',
          meridiemParse: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,
          meridiemHour: function meridiemHour(hour, meridiem) {
            if (hour === 12) {
              hour = 0;
            }

            if (meridiem === 'రాత్రి') {
              return hour < 4 ? hour : hour + 12;
            } else if (meridiem === 'ఉదయం') {
              return hour;
            } else if (meridiem === 'మధ్యాహ్నం') {
              return hour >= 10 ? hour : hour + 12;
            } else if (meridiem === 'సాయంత్రం') {
              return hour + 12;
            }
          },
          meridiem: function meridiem(hour, minute, isLower) {
            if (hour < 4) {
              return 'రాత్రి';
            } else if (hour < 10) {
              return 'ఉదయం';
            } else if (hour < 17) {
              return 'మధ్యాహ్నం';
            } else if (hour < 20) {
              return 'సాయంత్రం';
            } else {
              return 'రాత్రి';
            }
          },
          week: {
            dow: 0,
            // Sunday is the first day of the week.
            doy: 6 // The week that contains Jan 6th is the first week of the year.

          }
        });
        return te;
      });
      /***/

    },

    /***/
    "XNiG": function XNiG(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "SubjectSubscriber", function () {
        return SubjectSubscriber;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Subject", function () {
        return Subject;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "AnonymousSubject", function () {
        return AnonymousSubject;
      });
      /* harmony import */


      var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ./Observable */
      "HDdC");
      /* harmony import */


      var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ./Subscriber */
      "7o/Q");
      /* harmony import */


      var _Subscription__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ./Subscription */
      "quSY");
      /* harmony import */


      var _util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ./util/ObjectUnsubscribedError */
      "9ppp");
      /* harmony import */


      var _SubjectSubscription__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! ./SubjectSubscription */
      "Ylt2");
      /* harmony import */


      var _internal_symbol_rxSubscriber__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! ../internal/symbol/rxSubscriber */
      "2QA8");

      var SubjectSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_25) {
        _inherits2(SubjectSubscriber, _Subscriber__WEBPACK_25);

        var _super343 = _createSuper2(SubjectSubscriber);

        function SubjectSubscriber(destination) {
          var _this667;

          _classCallCheck2(this, SubjectSubscriber);

          _this667 = _super343.call(this, destination);
          _this667.destination = destination;
          return _this667;
        }

        return SubjectSubscriber;
      }(_Subscriber__WEBPACK_IMPORTED_MODULE_1__["Subscriber"]);

      var Subject = /*#__PURE__*/function (_Observable__WEBPACK_4, _internal_symbol_rxSu2) {
        _inherits2(Subject, _Observable__WEBPACK_4);

        var _super344 = _createSuper2(Subject);

        function Subject() {
          var _this668;

          _classCallCheck2(this, Subject);

          _this668 = _super344.call(this);
          _this668.observers = [];
          _this668.closed = false;
          _this668.isStopped = false;
          _this668.hasError = false;
          _this668.thrownError = null;
          return _this668;
        }

        _createClass2(Subject, [{
          key: _internal_symbol_rxSu2,
          value: function value() {
            return new SubjectSubscriber(this);
          }
        }, {
          key: "lift",
          value: function lift(operator) {
            var subject = new AnonymousSubject(this, this);
            subject.operator = operator;
            return subject;
          }
        }, {
          key: "next",
          value: function next(value) {
            if (this.closed) {
              throw new _util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_3__["ObjectUnsubscribedError"]();
            }

            if (!this.isStopped) {
              var observers = this.observers;
              var len = observers.length;
              var copy = observers.slice();

              for (var i = 0; i < len; i++) {
                copy[i].next(value);
              }
            }
          }
        }, {
          key: "error",
          value: function error(err) {
            if (this.closed) {
              throw new _util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_3__["ObjectUnsubscribedError"]();
            }

            this.hasError = true;
            this.thrownError = err;
            this.isStopped = true;
            var observers = this.observers;
            var len = observers.length;
            var copy = observers.slice();

            for (var i = 0; i < len; i++) {
              copy[i].error(err);
            }

            this.observers.length = 0;
          }
        }, {
          key: "complete",
          value: function complete() {
            if (this.closed) {
              throw new _util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_3__["ObjectUnsubscribedError"]();
            }

            this.isStopped = true;
            var observers = this.observers;
            var len = observers.length;
            var copy = observers.slice();

            for (var i = 0; i < len; i++) {
              copy[i].complete();
            }

            this.observers.length = 0;
          }
        }, {
          key: "unsubscribe",
          value: function unsubscribe() {
            this.isStopped = true;
            this.closed = true;
            this.observers = null;
          }
        }, {
          key: "_trySubscribe",
          value: function _trySubscribe(subscriber) {
            if (this.closed) {
              throw new _util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_3__["ObjectUnsubscribedError"]();
            } else {
              return _get2(_getPrototypeOf2(Subject.prototype), "_trySubscribe", this).call(this, subscriber);
            }
          }
        }, {
          key: "_subscribe",
          value: function _subscribe(subscriber) {
            if (this.closed) {
              throw new _util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_3__["ObjectUnsubscribedError"]();
            } else if (this.hasError) {
              subscriber.error(this.thrownError);
              return _Subscription__WEBPACK_IMPORTED_MODULE_2__["Subscription"].EMPTY;
            } else if (this.isStopped) {
              subscriber.complete();
              return _Subscription__WEBPACK_IMPORTED_MODULE_2__["Subscription"].EMPTY;
            } else {
              this.observers.push(subscriber);
              return new _SubjectSubscription__WEBPACK_IMPORTED_MODULE_4__["SubjectSubscription"](this, subscriber);
            }
          }
        }, {
          key: "asObservable",
          value: function asObservable() {
            var observable = new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
            observable.source = this;
            return observable;
          }
        }]);

        return Subject;
      }(_Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"], _internal_symbol_rxSubscriber__WEBPACK_IMPORTED_MODULE_5__["rxSubscriber"]);

      Subject.create = function (destination, source) {
        return new AnonymousSubject(destination, source);
      };

      var AnonymousSubject = /*#__PURE__*/function (_Subject) {
        _inherits2(AnonymousSubject, _Subject);

        var _super345 = _createSuper2(AnonymousSubject);

        function AnonymousSubject(destination, source) {
          var _this669;

          _classCallCheck2(this, AnonymousSubject);

          _this669 = _super345.call(this);
          _this669.destination = destination;
          _this669.source = source;
          return _this669;
        }

        _createClass2(AnonymousSubject, [{
          key: "next",
          value: function next(value) {
            var destination = this.destination;

            if (destination && destination.next) {
              destination.next(value);
            }
          }
        }, {
          key: "error",
          value: function error(err) {
            var destination = this.destination;

            if (destination && destination.error) {
              this.destination.error(err);
            }
          }
        }, {
          key: "complete",
          value: function complete() {
            var destination = this.destination;

            if (destination && destination.complete) {
              this.destination.complete();
            }
          }
        }, {
          key: "_subscribe",
          value: function _subscribe(subscriber) {
            var source = this.source;

            if (source) {
              return this.source.subscribe(subscriber);
            } else {
              return _Subscription__WEBPACK_IMPORTED_MODULE_2__["Subscription"].EMPTY;
            }
          }
        }]);

        return AnonymousSubject;
      }(Subject); //# sourceMappingURL=Subject.js.map

      /***/

    },

    /***/
    "XQXX": function XQXX(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return setHours;
      });
      /* harmony import */


      var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../_lib/toInteger/index.js */
      "/h9T");
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name setHours
       * @category Hour Helpers
       * @summary Set the hours to the given date.
       *
       * @description
       * Set the hours to the given date.
       *
       * ### 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 {Date|Number} date - the date to be changed
       * @param {Number} hours - the hours of the new date
       * @returns {Date} the new date with the hours set
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // Set 4 hours to 1 September 2014 11:30:00:
       * var result = setHours(new Date(2014, 8, 1, 11, 30), 4)
       * //=> Mon Sep 01 2014 04:30:00
       */


      function setHours(dirtyDate, dirtyHours) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(2, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate);
        var hours = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyHours);
        date.setHours(hours);
        return date;
      }
      /***/

    },

    /***/
    "XX+V": function XXV(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return setWeek;
      });
      /* harmony import */


      var _getWeek_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../getWeek/index.js */
      "eYjL");
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../_lib/toInteger/index.js */
      "/h9T");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name setWeek
       * @category Week Helpers
       * @summary Set the local week to the given date.
       *
       * @description
       * Set the local week to the given date, saving the weekday number.
       * The exact calculation depends on the values of
       * `options.weekStartsOn` (which is the index of the first day of the week)
       * and `options.firstWeekContainsDate` (which is the day of January, which is always in
       * the first week of the week-numbering year)
       *
       * Week numbering: https://en.wikipedia.org/wiki/Week#Week_numbering
       *
       * ### 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 {Date|Number} date - the date to be changed
       * @param {Number} week - the week of the new date
       * @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)
       * @param {1|2|3|4|5|6|7} [options.firstWeekContainsDate=1] - the day of January, which is always in the first week of the year
       * @returns {Date} the new date with the local week set
       * @throws {TypeError} 2 arguments required
       * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6
       * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7
       *
       * @example
       * // Set the 1st week to 2 January 2005 with default options:
       * var result = setWeek(new Date(2005, 0, 2), 1)
       * //=> Sun Dec 26 2004 00:00:00
       *
       * @example
       * // Set the 1st week to 2 January 2005,
       * // if Monday is the first day of the week,
       * // and the first week of the year always contains 4 January:
       * var result = setWeek(new Date(2005, 0, 2), 1, {
       *   weekStartsOn: 1,
       *   firstWeekContainsDate: 4
       * })
       * //=> Sun Jan 4 2004 00:00:00
       */


      function setWeek(dirtyDate, dirtyWeek, dirtyOptions) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(2, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate);
        var week = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(dirtyWeek);
        var diff = Object(_getWeek_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(date, dirtyOptions) - week;
        date.setDate(date.getDate() - diff * 7);
        return date;
      }
      /***/

    },

    /***/
    "Xep9": function Xep9(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return subDays;
      });
      /* harmony import */


      var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../_lib/toInteger/index.js */
      "/h9T");
      /* harmony import */


      var _addDays_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../addDays/index.js */
      "9/EM");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name subDays
       * @category Day Helpers
       * @summary Subtract the specified number of days from the given date.
       *
       * @description
       * Subtract the specified number of days from the given date.
       *
       * ### 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 {Date|Number} date - the date to be changed
       * @param {Number} amount - the amount of days to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
       * @returns {Date} the new date with the days subtracted
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // Subtract 10 days from 1 September 2014:
       * var result = subDays(new Date(2014, 8, 1), 10)
       * //=> Fri Aug 22 2014 00:00:00
       */


      function subDays(dirtyDate, dirtyAmount) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(2, arguments);
        var amount = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyAmount);
        return Object(_addDays_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate, -amount);
      }
      /***/

    },

    /***/
    "XoHu": function XoHu(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "isObject", function () {
        return isObject;
      });

      function isObject(x) {
        return x !== null && typeof x === 'object';
      } //# sourceMappingURL=isObject.js.map

      /***/

    },

    /***/
    "XqQ8": function XqQ8(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "exhaustMap", function () {
        return exhaustMap;
      });
      /* harmony import */


      var _map__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ./map */
      "lJxs");
      /* harmony import */


      var _observable_from__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../observable/from */
      "Cfvw");
      /* harmony import */


      var _innerSubscribe__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../innerSubscribe */
      "zx2A");

      function exhaustMap(project, resultSelector) {
        if (resultSelector) {
          return function (source) {
            return source.pipe(exhaustMap(function (a, i) {
              return Object(_observable_from__WEBPACK_IMPORTED_MODULE_1__["from"])(project(a, i)).pipe(Object(_map__WEBPACK_IMPORTED_MODULE_0__["map"])(function (b, ii) {
                return resultSelector(a, b, i, ii);
              }));
            }));
          };
        }

        return function (source) {
          return source.lift(new ExhaustMapOperator(project));
        };
      }

      var ExhaustMapOperator = /*#__PURE__*/function () {
        function ExhaustMapOperator(project) {
          _classCallCheck2(this, ExhaustMapOperator);

          this.project = project;
        }

        _createClass2(ExhaustMapOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            return source.subscribe(new ExhaustMapSubscriber(subscriber, this.project));
          }
        }]);

        return ExhaustMapOperator;
      }();

      var ExhaustMapSubscriber = /*#__PURE__*/function (_innerSubscribe__WEBP12) {
        _inherits2(ExhaustMapSubscriber, _innerSubscribe__WEBP12);

        var _super346 = _createSuper2(ExhaustMapSubscriber);

        function ExhaustMapSubscriber(destination, project) {
          var _this670;

          _classCallCheck2(this, ExhaustMapSubscriber);

          _this670 = _super346.call(this, destination);
          _this670.project = project;
          _this670.hasSubscription = false;
          _this670.hasCompleted = false;
          _this670.index = 0;
          return _this670;
        }

        _createClass2(ExhaustMapSubscriber, [{
          key: "_next",
          value: function _next(value) {
            if (!this.hasSubscription) {
              this.tryNext(value);
            }
          }
        }, {
          key: "tryNext",
          value: function tryNext(value) {
            var result;
            var index = this.index++;

            try {
              result = this.project(value, index);
            } catch (err) {
              this.destination.error(err);
              return;
            }

            this.hasSubscription = true;

            this._innerSub(result);
          }
        }, {
          key: "_innerSub",
          value: function _innerSub(result) {
            var innerSubscriber = new _innerSubscribe__WEBPACK_IMPORTED_MODULE_2__["SimpleInnerSubscriber"](this);
            var destination = this.destination;
            destination.add(innerSubscriber);
            var innerSubscription = Object(_innerSubscribe__WEBPACK_IMPORTED_MODULE_2__["innerSubscribe"])(result, innerSubscriber);

            if (innerSubscription !== innerSubscriber) {
              destination.add(innerSubscription);
            }
          }
        }, {
          key: "_complete",
          value: function _complete() {
            this.hasCompleted = true;

            if (!this.hasSubscription) {
              this.destination.complete();
            }

            this.unsubscribe();
          }
        }, {
          key: "notifyNext",
          value: function notifyNext(innerValue) {
            this.destination.next(innerValue);
          }
        }, {
          key: "notifyError",
          value: function notifyError(err) {
            this.destination.error(err);
          }
        }, {
          key: "notifyComplete",
          value: function notifyComplete() {
            this.hasSubscription = false;

            if (this.hasCompleted) {
              this.destination.complete();
            }
          }
        }]);

        return ExhaustMapSubscriber;
      }(_innerSubscribe__WEBPACK_IMPORTED_MODULE_2__["SimpleOuterSubscriber"]); //# sourceMappingURL=exhaustMap.js.map

      /***/

    },

    /***/
    "Y/cZ": function YCZ(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Scheduler", function () {
        return Scheduler;
      });

      var Scheduler = /*#__PURE__*/function () {
        function Scheduler(SchedulerAction) {
          var now = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Scheduler.now;

          _classCallCheck2(this, Scheduler);

          this.SchedulerAction = SchedulerAction;
          this.now = now;
        }

        _createClass2(Scheduler, [{
          key: "schedule",
          value: function schedule(work) {
            var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
            var state = arguments.length > 2 ? arguments[2] : undefined;
            return new this.SchedulerAction(this, work).schedule(state, delay);
          }
        }]);

        return Scheduler;
      }();

      Scheduler.now = function () {
        return Date.now();
      }; //# sourceMappingURL=Scheduler.js.map

      /***/

    },

    /***/
    "Y6u4": function Y6u4(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TimeoutError", function () {
        return TimeoutError;
      });

      var TimeoutErrorImpl = function () {
        function TimeoutErrorImpl() {
          Error.call(this);
          this.message = 'Timeout has occurred';
          this.name = 'TimeoutError';
          return this;
        }

        TimeoutErrorImpl.prototype = Object.create(Error.prototype);
        return TimeoutErrorImpl;
      }();

      var TimeoutError = TimeoutErrorImpl; //# sourceMappingURL=TimeoutError.js.map

      /***/
    },

    /***/
    "Y6wi": function Y6wi(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "switchAll", function () {
        return switchAll;
      });
      /* harmony import */


      var _switchMap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ./switchMap */
      "eIep");
      /* harmony import */


      var _util_identity__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../util/identity */
      "SpAZ");

      function switchAll() {
        return Object(_switchMap__WEBPACK_IMPORTED_MODULE_0__["switchMap"])(_util_identity__WEBPACK_IMPORTED_MODULE_1__["identity"]);
      } //# sourceMappingURL=switchAll.js.map

      /***/

    },

    /***/
    "Y7HM": function Y7HM(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "isNumeric", function () {
        return isNumeric;
      });
      /* harmony import */


      var _isArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ./isArray */
      "DH7j");

      function isNumeric(val) {
        return !Object(_isArray__WEBPACK_IMPORTED_MODULE_0__["isArray"])(val) && val - parseFloat(val) + 1 >= 0;
      } //# sourceMappingURL=isNumeric.js.map

      /***/

    },

    /***/
    "YEUz": function YEUz(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "A11yModule", function () {
        return A11yModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ActiveDescendantKeyManager", function () {
        return ActiveDescendantKeyManager;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "AriaDescriber", function () {
        return AriaDescriber;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CDK_DESCRIBEDBY_HOST_ATTRIBUTE", function () {
        return CDK_DESCRIBEDBY_HOST_ATTRIBUTE;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CDK_DESCRIBEDBY_ID_PREFIX", function () {
        return CDK_DESCRIBEDBY_ID_PREFIX;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CdkAriaLive", function () {
        return CdkAriaLive;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CdkMonitorFocus", function () {
        return CdkMonitorFocus;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CdkTrapFocus", function () {
        return CdkTrapFocus;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ConfigurableFocusTrap", function () {
        return ConfigurableFocusTrap;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ConfigurableFocusTrapFactory", function () {
        return ConfigurableFocusTrapFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "EventListenerFocusTrapInertStrategy", function () {
        return EventListenerFocusTrapInertStrategy;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "FOCUS_MONITOR_DEFAULT_OPTIONS", function () {
        return FOCUS_MONITOR_DEFAULT_OPTIONS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "FOCUS_TRAP_INERT_STRATEGY", function () {
        return FOCUS_TRAP_INERT_STRATEGY;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "FocusKeyManager", function () {
        return FocusKeyManager;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "FocusMonitor", function () {
        return FocusMonitor;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "FocusTrap", function () {
        return FocusTrap;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "FocusTrapFactory", function () {
        return FocusTrapFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "HighContrastModeDetector", function () {
        return HighContrastModeDetector;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "InteractivityChecker", function () {
        return InteractivityChecker;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "IsFocusableConfig", function () {
        return IsFocusableConfig;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "LIVE_ANNOUNCER_DEFAULT_OPTIONS", function () {
        return LIVE_ANNOUNCER_DEFAULT_OPTIONS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "LIVE_ANNOUNCER_ELEMENT_TOKEN", function () {
        return LIVE_ANNOUNCER_ELEMENT_TOKEN;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "LIVE_ANNOUNCER_ELEMENT_TOKEN_FACTORY", function () {
        return LIVE_ANNOUNCER_ELEMENT_TOKEN_FACTORY;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ListKeyManager", function () {
        return ListKeyManager;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "LiveAnnouncer", function () {
        return LiveAnnouncer;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MESSAGES_CONTAINER_ID", function () {
        return MESSAGES_CONTAINER_ID;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TOUCH_BUFFER_MS", function () {
        return TOUCH_BUFFER_MS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "isFakeMousedownFromScreenReader", function () {
        return isFakeMousedownFromScreenReader;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_material_src_cdk_a11y_a11y_a", function () {
        return FocusTrapManager;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_material_src_cdk_a11y_a11y_b", function () {
        return ConfigurableFocusTrapConfig;
      });
      /* harmony import */


      var _angular_common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/common */
      "SVse");
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /* harmony import */


      var _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! @angular/cdk/platform */
      "SCoL");
      /* harmony import */


      var rxjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! rxjs */
      "qCKp");
      /* harmony import */


      var _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! @angular/cdk/keycodes */
      "Ht+U");
      /* harmony import */


      var rxjs_operators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! rxjs/operators */
      "kU1M");
      /* harmony import */


      var _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
      /*! @angular/cdk/coercion */
      "8LU1");
      /* harmony import */


      var _angular_cdk_observers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
      /*! @angular/cdk/observers */
      "9b/N");
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** IDs are delimited by an empty space, as per the spec. */


      var ID_DELIMITER = ' ';
      /**
       * Adds the given ID to the specified ARIA attribute on an element.
       * Used for attributes such as aria-labelledby, aria-owns, etc.
       */

      function addAriaReferencedId(el, attr, id) {
        var ids = getAriaReferenceIds(el, attr);

        if (ids.some(function (existingId) {
          return existingId.trim() == id.trim();
        })) {
          return;
        }

        ids.push(id.trim());
        el.setAttribute(attr, ids.join(ID_DELIMITER));
      }
      /**
       * Removes the given ID from the specified ARIA attribute on an element.
       * Used for attributes such as aria-labelledby, aria-owns, etc.
       */


      function removeAriaReferencedId(el, attr, id) {
        var ids = getAriaReferenceIds(el, attr);
        var filteredIds = ids.filter(function (val) {
          return val != id.trim();
        });

        if (filteredIds.length) {
          el.setAttribute(attr, filteredIds.join(ID_DELIMITER));
        } else {
          el.removeAttribute(attr);
        }
      }
      /**
       * Gets the list of IDs referenced by the given ARIA attribute on an element.
       * Used for attributes such as aria-labelledby, aria-owns, etc.
       */


      function getAriaReferenceIds(el, attr) {
        // Get string array of all individual ids (whitespace delimited) in the attribute value
        return (el.getAttribute(attr) || '').match(/\S+/g) || [];
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** ID used for the body container where all messages are appended. */


      var MESSAGES_CONTAINER_ID = 'cdk-describedby-message-container';
      /** ID prefix used for each created message element. */

      var CDK_DESCRIBEDBY_ID_PREFIX = 'cdk-describedby-message';
      /** Attribute given to each host element that is described by a message element. */

      var CDK_DESCRIBEDBY_HOST_ATTRIBUTE = 'cdk-describedby-host';
      /** Global incremental identifier for each registered message element. */

      var nextId = 0;
      /** Global map of all registered message elements that have been placed into the document. */

      var messageRegistry = new Map();
      /** Container for all registered messages. */

      var messagesContainer = null;
      /**
       * Utility that creates visually hidden elements with a message content. Useful for elements that
       * want to use aria-describedby to further describe themselves without adding additional visual
       * content.
       */

      var AriaDescriber = /*#__PURE__*/function () {
        function AriaDescriber(_document,
        /**
         * @breaking-change 8.0.0 `_platform` parameter to be made required.
         */
        _platform) {
          _classCallCheck2(this, AriaDescriber);

          this._platform = _platform;
          this._document = _document;
        }
        /**
         * Adds to the host element an aria-describedby reference to a hidden element that contains
         * the message. If the same message has already been registered, then it will reuse the created
         * message element.
         */


        _createClass2(AriaDescriber, [{
          key: "describe",
          value: function describe(hostElement, message) {
            if (!this._canBeDescribed(hostElement, message)) {
              return;
            }

            if (typeof message !== 'string') {
              // We need to ensure that the element has an ID.
              this._setMessageId(message);

              messageRegistry.set(message, {
                messageElement: message,
                referenceCount: 0
              });
            } else if (!messageRegistry.has(message)) {
              this._createMessageElement(message);
            }

            if (!this._isElementDescribedByMessage(hostElement, message)) {
              this._addMessageReference(hostElement, message);
            }
          }
          /** Removes the host element's aria-describedby reference to the message element. */

        }, {
          key: "removeDescription",
          value: function removeDescription(hostElement, message) {
            if (!message || !this._isElementNode(hostElement)) {
              return;
            }

            if (this._isElementDescribedByMessage(hostElement, message)) {
              this._removeMessageReference(hostElement, message);
            } // If the message is a string, it means that it's one that we created for the
            // consumer so we can remove it safely, otherwise we should leave it in place.


            if (typeof message === 'string') {
              var registeredMessage = messageRegistry.get(message);

              if (registeredMessage && registeredMessage.referenceCount === 0) {
                this._deleteMessageElement(message);
              }
            }

            if (messagesContainer && messagesContainer.childNodes.length === 0) {
              this._deleteMessagesContainer();
            }
          }
          /** Unregisters all created message elements and removes the message container. */

        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            var describedElements = this._document.querySelectorAll("[".concat(CDK_DESCRIBEDBY_HOST_ATTRIBUTE, "]"));

            for (var i = 0; i < describedElements.length; i++) {
              this._removeCdkDescribedByReferenceIds(describedElements[i]);

              describedElements[i].removeAttribute(CDK_DESCRIBEDBY_HOST_ATTRIBUTE);
            }

            if (messagesContainer) {
              this._deleteMessagesContainer();
            }

            messageRegistry.clear();
          }
          /**
           * Creates a new element in the visually hidden message container element with the message
           * as its content and adds it to the message registry.
           */

        }, {
          key: "_createMessageElement",
          value: function _createMessageElement(message) {
            var messageElement = this._document.createElement('div');

            this._setMessageId(messageElement);

            messageElement.textContent = message;

            this._createMessagesContainer();

            messagesContainer.appendChild(messageElement);
            messageRegistry.set(message, {
              messageElement: messageElement,
              referenceCount: 0
            });
          }
          /** Assigns a unique ID to an element, if it doesn't have one already. */

        }, {
          key: "_setMessageId",
          value: function _setMessageId(element) {
            if (!element.id) {
              element.id = "".concat(CDK_DESCRIBEDBY_ID_PREFIX, "-").concat(nextId++);
            }
          }
          /** Deletes the message element from the global messages container. */

        }, {
          key: "_deleteMessageElement",
          value: function _deleteMessageElement(message) {
            var registeredMessage = messageRegistry.get(message);
            var messageElement = registeredMessage && registeredMessage.messageElement;

            if (messagesContainer && messageElement) {
              messagesContainer.removeChild(messageElement);
            }

            messageRegistry["delete"](message);
          }
          /** Creates the global container for all aria-describedby messages. */

        }, {
          key: "_createMessagesContainer",
          value: function _createMessagesContainer() {
            if (!messagesContainer) {
              // @breaking-change 8.0.0 `_platform` null check can be removed once the parameter is required
              var canBeAriaHidden = !this._platform || !this._platform.EDGE && !this._platform.TRIDENT;

              var preExistingContainer = this._document.getElementById(MESSAGES_CONTAINER_ID); // When going from the server to the client, we may end up in a situation where there's
              // already a container on the page, but we don't have a reference to it. Clear the
              // old container so we don't get duplicates. Doing this, instead of emptying the previous
              // container, should be slightly faster.


              if (preExistingContainer && preExistingContainer.parentNode) {
                preExistingContainer.parentNode.removeChild(preExistingContainer);
              }

              messagesContainer = this._document.createElement('div');
              messagesContainer.id = MESSAGES_CONTAINER_ID;
              messagesContainer.classList.add('cdk-visually-hidden'); // IE and Edge won't read out the messages if they're in an `aria-hidden` container.
              // We only disable `aria-hidden` for these platforms, because it comes with the
              // disadvantage that people might hit the messages when they've navigated past
              // the end of the document using the arrow keys.

              messagesContainer.setAttribute('aria-hidden', canBeAriaHidden + '');

              this._document.body.appendChild(messagesContainer);
            }
          }
          /** Deletes the global messages container. */

        }, {
          key: "_deleteMessagesContainer",
          value: function _deleteMessagesContainer() {
            if (messagesContainer && messagesContainer.parentNode) {
              messagesContainer.parentNode.removeChild(messagesContainer);
              messagesContainer = null;
            }
          }
          /** Removes all cdk-describedby messages that are hosted through the element. */

        }, {
          key: "_removeCdkDescribedByReferenceIds",
          value: function _removeCdkDescribedByReferenceIds(element) {
            // Remove all aria-describedby reference IDs that are prefixed by CDK_DESCRIBEDBY_ID_PREFIX
            var originalReferenceIds = getAriaReferenceIds(element, 'aria-describedby').filter(function (id) {
              return id.indexOf(CDK_DESCRIBEDBY_ID_PREFIX) != 0;
            });
            element.setAttribute('aria-describedby', originalReferenceIds.join(' '));
          }
          /**
           * Adds a message reference to the element using aria-describedby and increments the registered
           * message's reference count.
           */

        }, {
          key: "_addMessageReference",
          value: function _addMessageReference(element, message) {
            var registeredMessage = messageRegistry.get(message); // Add the aria-describedby reference and set the
            // describedby_host attribute to mark the element.

            addAriaReferencedId(element, 'aria-describedby', registeredMessage.messageElement.id);
            element.setAttribute(CDK_DESCRIBEDBY_HOST_ATTRIBUTE, '');
            registeredMessage.referenceCount++;
          }
          /**
           * Removes a message reference from the element using aria-describedby
           * and decrements the registered message's reference count.
           */

        }, {
          key: "_removeMessageReference",
          value: function _removeMessageReference(element, message) {
            var registeredMessage = messageRegistry.get(message);
            registeredMessage.referenceCount--;
            removeAriaReferencedId(element, 'aria-describedby', registeredMessage.messageElement.id);
            element.removeAttribute(CDK_DESCRIBEDBY_HOST_ATTRIBUTE);
          }
          /** Returns true if the element has been described by the provided message ID. */

        }, {
          key: "_isElementDescribedByMessage",
          value: function _isElementDescribedByMessage(element, message) {
            var referenceIds = getAriaReferenceIds(element, 'aria-describedby');
            var registeredMessage = messageRegistry.get(message);
            var messageId = registeredMessage && registeredMessage.messageElement.id;
            return !!messageId && referenceIds.indexOf(messageId) != -1;
          }
          /** Determines whether a message can be described on a particular element. */

        }, {
          key: "_canBeDescribed",
          value: function _canBeDescribed(element, message) {
            if (!this._isElementNode(element)) {
              return false;
            }

            if (message && typeof message === 'object') {
              // We'd have to make some assumptions about the description element's text, if the consumer
              // passed in an element. Assume that if an element is passed in, the consumer has verified
              // that it can be used as a description.
              return true;
            }

            var trimmedMessage = message == null ? '' : "".concat(message).trim();
            var ariaLabel = element.getAttribute('aria-label'); // We shouldn't set descriptions if they're exactly the same as the `aria-label` of the
            // element, because screen readers will end up reading out the same text twice in a row.

            return trimmedMessage ? !ariaLabel || ariaLabel.trim() !== trimmedMessage : false;
          }
          /** Checks whether a node is an Element node. */

        }, {
          key: "_isElementNode",
          value: function _isElementNode(element) {
            return element.nodeType === this._document.ELEMENT_NODE;
          }
        }]);

        return AriaDescriber;
      }();

      AriaDescriber.ɵfac = function AriaDescriber_Factory(t) {
        return new (t || AriaDescriber)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__["Platform"]));
      };

      AriaDescriber.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"])({
        factory: function AriaDescriber_Factory() {
          return new AriaDescriber(Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]), Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__["Platform"]));
        },
        token: AriaDescriber,
        providedIn: "root"
      });

      AriaDescriber.ctorParameters = function () {
        return [{
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
            args: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]]
          }]
        }, {
          type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__["Platform"]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AriaDescriber, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"],
          args: [{
            providedIn: 'root'
          }]
        }], function () {
          return [{
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
              args: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]]
            }]
          }, {
            type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__["Platform"]
          }];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * This class manages keyboard events for selectable lists. If you pass it a query list
       * of items, it will set the active item correctly when arrow events occur.
       */


      var ListKeyManager = /*#__PURE__*/function () {
        function ListKeyManager(_items) {
          var _this671 = this;

          _classCallCheck2(this, ListKeyManager);

          this._items = _items;
          this._activeItemIndex = -1;
          this._activeItem = null;
          this._wrap = false;
          this._letterKeyStream = new rxjs__WEBPACK_IMPORTED_MODULE_3__["Subject"]();
          this._typeaheadSubscription = rxjs__WEBPACK_IMPORTED_MODULE_3__["Subscription"].EMPTY;
          this._vertical = true;
          this._allowedModifierKeys = [];
          this._homeAndEnd = false;
          /**
           * Predicate function that can be used to check whether an item should be skipped
           * by the key manager. By default, disabled items are skipped.
           */

          this._skipPredicateFn = function (item) {
            return item.disabled;
          }; // Buffer for the letters that the user has pressed when the typeahead option is turned on.


          this._pressedLetters = [];
          /**
           * Stream that emits any time the TAB key is pressed, so components can react
           * when focus is shifted off of the list.
           */

          this.tabOut = new rxjs__WEBPACK_IMPORTED_MODULE_3__["Subject"]();
          /** Stream that emits whenever the active item of the list manager changes. */

          this.change = new rxjs__WEBPACK_IMPORTED_MODULE_3__["Subject"](); // We allow for the items to be an array because, in some cases, the consumer may
          // not have access to a QueryList of the items they want to manage (e.g. when the
          // items aren't being collected via `ViewChildren` or `ContentChildren`).

          if (_items instanceof _angular_core__WEBPACK_IMPORTED_MODULE_1__["QueryList"]) {
            _items.changes.subscribe(function (newItems) {
              if (_this671._activeItem) {
                var itemArray = newItems.toArray();
                var newIndex = itemArray.indexOf(_this671._activeItem);

                if (newIndex > -1 && newIndex !== _this671._activeItemIndex) {
                  _this671._activeItemIndex = newIndex;
                }
              }
            });
          }
        }
        /**
         * Sets the predicate function that determines which items should be skipped by the
         * list key manager.
         * @param predicate Function that determines whether the given item should be skipped.
         */


        _createClass2(ListKeyManager, [{
          key: "skipPredicate",
          value: function skipPredicate(predicate) {
            this._skipPredicateFn = predicate;
            return this;
          }
          /**
           * Configures wrapping mode, which determines whether the active item will wrap to
           * the other end of list when there are no more items in the given direction.
           * @param shouldWrap Whether the list should wrap when reaching the end.
           */

        }, {
          key: "withWrap",
          value: function withWrap() {
            var shouldWrap = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
            this._wrap = shouldWrap;
            return this;
          }
          /**
           * Configures whether the key manager should be able to move the selection vertically.
           * @param enabled Whether vertical selection should be enabled.
           */

        }, {
          key: "withVerticalOrientation",
          value: function withVerticalOrientation() {
            var enabled = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
            this._vertical = enabled;
            return this;
          }
          /**
           * Configures the key manager to move the selection horizontally.
           * Passing in `null` will disable horizontal movement.
           * @param direction Direction in which the selection can be moved.
           */

        }, {
          key: "withHorizontalOrientation",
          value: function withHorizontalOrientation(direction) {
            this._horizontal = direction;
            return this;
          }
          /**
           * Modifier keys which are allowed to be held down and whose default actions will be prevented
           * as the user is pressing the arrow keys. Defaults to not allowing any modifier keys.
           */

        }, {
          key: "withAllowedModifierKeys",
          value: function withAllowedModifierKeys(keys) {
            this._allowedModifierKeys = keys;
            return this;
          }
          /**
           * Turns on typeahead mode which allows users to set the active item by typing.
           * @param debounceInterval Time to wait after the last keystroke before setting the active item.
           */

        }, {
          key: "withTypeAhead",
          value: function withTypeAhead() {
            var _this672 = this;

            var debounceInterval = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 200;

            if ((typeof ngDevMode === 'undefined' || ngDevMode) && this._items.length && this._items.some(function (item) {
              return typeof item.getLabel !== 'function';
            })) {
              throw Error('ListKeyManager items in typeahead mode must implement the `getLabel` method.');
            }

            this._typeaheadSubscription.unsubscribe(); // Debounce the presses of non-navigational keys, collect the ones that correspond to letters
            // and convert those letters back into a string. Afterwards find the first item that starts
            // with that string and select it.


            this._typeaheadSubscription = this._letterKeyStream.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["tap"])(function (letter) {
              return _this672._pressedLetters.push(letter);
            }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["debounceTime"])(debounceInterval), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["filter"])(function () {
              return _this672._pressedLetters.length > 0;
            }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["map"])(function () {
              return _this672._pressedLetters.join('');
            })).subscribe(function (inputString) {
              var items = _this672._getItemsArray(); // Start at 1 because we want to start searching at the item immediately
              // following the current active item.


              for (var i = 1; i < items.length + 1; i++) {
                var index = (_this672._activeItemIndex + i) % items.length;
                var item = items[index];

                if (!_this672._skipPredicateFn(item) && item.getLabel().toUpperCase().trim().indexOf(inputString) === 0) {
                  _this672.setActiveItem(index);

                  break;
                }
              }

              _this672._pressedLetters = [];
            });
            return this;
          }
          /**
           * Configures the key manager to activate the first and last items
           * respectively when the Home or End key is pressed.
           * @param enabled Whether pressing the Home or End key activates the first/last item.
           */

        }, {
          key: "withHomeAndEnd",
          value: function withHomeAndEnd() {
            var enabled = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
            this._homeAndEnd = enabled;
            return this;
          }
        }, {
          key: "setActiveItem",
          value: function setActiveItem(item) {
            var previousActiveItem = this._activeItem;
            this.updateActiveItem(item);

            if (this._activeItem !== previousActiveItem) {
              this.change.next(this._activeItemIndex);
            }
          }
          /**
           * Sets the active item depending on the key event passed in.
           * @param event Keyboard event to be used for determining which element should be active.
           */

        }, {
          key: "onKeydown",
          value: function onKeydown(event) {
            var _this673 = this;

            var keyCode = event.keyCode;
            var modifiers = ['altKey', 'ctrlKey', 'metaKey', 'shiftKey'];
            var isModifierAllowed = modifiers.every(function (modifier) {
              return !event[modifier] || _this673._allowedModifierKeys.indexOf(modifier) > -1;
            });

            switch (keyCode) {
              case _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_4__["TAB"]:
                this.tabOut.next();
                return;

              case _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_4__["DOWN_ARROW"]:
                if (this._vertical && isModifierAllowed) {
                  this.setNextItemActive();
                  break;
                } else {
                  return;
                }

              case _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_4__["UP_ARROW"]:
                if (this._vertical && isModifierAllowed) {
                  this.setPreviousItemActive();
                  break;
                } else {
                  return;
                }

              case _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_4__["RIGHT_ARROW"]:
                if (this._horizontal && isModifierAllowed) {
                  this._horizontal === 'rtl' ? this.setPreviousItemActive() : this.setNextItemActive();
                  break;
                } else {
                  return;
                }

              case _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_4__["LEFT_ARROW"]:
                if (this._horizontal && isModifierAllowed) {
                  this._horizontal === 'rtl' ? this.setNextItemActive() : this.setPreviousItemActive();
                  break;
                } else {
                  return;
                }

              case _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_4__["HOME"]:
                if (this._homeAndEnd && isModifierAllowed) {
                  this.setFirstItemActive();
                  break;
                } else {
                  return;
                }

              case _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_4__["END"]:
                if (this._homeAndEnd && isModifierAllowed) {
                  this.setLastItemActive();
                  break;
                } else {
                  return;
                }

              default:
                if (isModifierAllowed || Object(_angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_4__["hasModifierKey"])(event, 'shiftKey')) {
                  // Attempt to use the `event.key` which also maps it to the user's keyboard language,
                  // otherwise fall back to resolving alphanumeric characters via the keyCode.
                  if (event.key && event.key.length === 1) {
                    this._letterKeyStream.next(event.key.toLocaleUpperCase());
                  } else if (keyCode >= _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_4__["A"] && keyCode <= _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_4__["Z"] || keyCode >= _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_4__["ZERO"] && keyCode <= _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_4__["NINE"]) {
                    this._letterKeyStream.next(String.fromCharCode(keyCode));
                  }
                } // Note that we return here, in order to avoid preventing
                // the default action of non-navigational keys.


                return;
            }

            this._pressedLetters = [];
            event.preventDefault();
          }
          /** Index of the currently active item. */

        }, {
          key: "activeItemIndex",
          get: function get() {
            return this._activeItemIndex;
          }
          /** The active item. */

        }, {
          key: "activeItem",
          get: function get() {
            return this._activeItem;
          }
          /** Gets whether the user is currently typing into the manager using the typeahead feature. */

        }, {
          key: "isTyping",
          value: function isTyping() {
            return this._pressedLetters.length > 0;
          }
          /** Sets the active item to the first enabled item in the list. */

        }, {
          key: "setFirstItemActive",
          value: function setFirstItemActive() {
            this._setActiveItemByIndex(0, 1);
          }
          /** Sets the active item to the last enabled item in the list. */

        }, {
          key: "setLastItemActive",
          value: function setLastItemActive() {
            this._setActiveItemByIndex(this._items.length - 1, -1);
          }
          /** Sets the active item to the next enabled item in the list. */

        }, {
          key: "setNextItemActive",
          value: function setNextItemActive() {
            this._activeItemIndex < 0 ? this.setFirstItemActive() : this._setActiveItemByDelta(1);
          }
          /** Sets the active item to a previous enabled item in the list. */

        }, {
          key: "setPreviousItemActive",
          value: function setPreviousItemActive() {
            this._activeItemIndex < 0 && this._wrap ? this.setLastItemActive() : this._setActiveItemByDelta(-1);
          }
        }, {
          key: "updateActiveItem",
          value: function updateActiveItem(item) {
            var itemArray = this._getItemsArray();

            var index = typeof item === 'number' ? item : itemArray.indexOf(item);
            var activeItem = itemArray[index]; // Explicitly check for `null` and `undefined` because other falsy values are valid.

            this._activeItem = activeItem == null ? null : activeItem;
            this._activeItemIndex = index;
          }
          /**
           * This method sets the active item, given a list of items and the delta between the
           * currently active item and the new active item. It will calculate differently
           * depending on whether wrap mode is turned on.
           */

        }, {
          key: "_setActiveItemByDelta",
          value: function _setActiveItemByDelta(delta) {
            this._wrap ? this._setActiveInWrapMode(delta) : this._setActiveInDefaultMode(delta);
          }
          /**
           * Sets the active item properly given "wrap" mode. In other words, it will continue to move
           * down the list until it finds an item that is not disabled, and it will wrap if it
           * encounters either end of the list.
           */

        }, {
          key: "_setActiveInWrapMode",
          value: function _setActiveInWrapMode(delta) {
            var items = this._getItemsArray();

            for (var i = 1; i <= items.length; i++) {
              var index = (this._activeItemIndex + delta * i + items.length) % items.length;
              var item = items[index];

              if (!this._skipPredicateFn(item)) {
                this.setActiveItem(index);
                return;
              }
            }
          }
          /**
           * Sets the active item properly given the default mode. In other words, it will
           * continue to move down the list until it finds an item that is not disabled. If
           * it encounters either end of the list, it will stop and not wrap.
           */

        }, {
          key: "_setActiveInDefaultMode",
          value: function _setActiveInDefaultMode(delta) {
            this._setActiveItemByIndex(this._activeItemIndex + delta, delta);
          }
          /**
           * Sets the active item to the first enabled item starting at the index specified. If the
           * item is disabled, it will move in the fallbackDelta direction until it either
           * finds an enabled item or encounters the end of the list.
           */

        }, {
          key: "_setActiveItemByIndex",
          value: function _setActiveItemByIndex(index, fallbackDelta) {
            var items = this._getItemsArray();

            if (!items[index]) {
              return;
            }

            while (this._skipPredicateFn(items[index])) {
              index += fallbackDelta;

              if (!items[index]) {
                return;
              }
            }

            this.setActiveItem(index);
          }
          /** Returns the items as an array. */

        }, {
          key: "_getItemsArray",
          value: function _getItemsArray() {
            return this._items instanceof _angular_core__WEBPACK_IMPORTED_MODULE_1__["QueryList"] ? this._items.toArray() : this._items;
          }
        }]);

        return ListKeyManager;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var ActiveDescendantKeyManager = /*#__PURE__*/function (_ListKeyManager) {
        _inherits2(ActiveDescendantKeyManager, _ListKeyManager);

        var _super347 = _createSuper2(ActiveDescendantKeyManager);

        function ActiveDescendantKeyManager() {
          _classCallCheck2(this, ActiveDescendantKeyManager);

          return _super347.apply(this, arguments);
        }

        _createClass2(ActiveDescendantKeyManager, [{
          key: "setActiveItem",
          value: function setActiveItem(index) {
            if (this.activeItem) {
              this.activeItem.setInactiveStyles();
            }

            _get2(_getPrototypeOf2(ActiveDescendantKeyManager.prototype), "setActiveItem", this).call(this, index);

            if (this.activeItem) {
              this.activeItem.setActiveStyles();
            }
          }
        }]);

        return ActiveDescendantKeyManager;
      }(ListKeyManager);
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var FocusKeyManager = /*#__PURE__*/function (_ListKeyManager2) {
        _inherits2(FocusKeyManager, _ListKeyManager2);

        var _super348 = _createSuper2(FocusKeyManager);

        function FocusKeyManager() {
          var _this674;

          _classCallCheck2(this, FocusKeyManager);

          _this674 = _super348.apply(this, arguments);
          _this674._origin = 'program';
          return _this674;
        }
        /**
         * Sets the focus origin that will be passed in to the items for any subsequent `focus` calls.
         * @param origin Focus origin to be used when focusing items.
         */


        _createClass2(FocusKeyManager, [{
          key: "setFocusOrigin",
          value: function setFocusOrigin(origin) {
            this._origin = origin;
            return this;
          }
        }, {
          key: "setActiveItem",
          value: function setActiveItem(item) {
            _get2(_getPrototypeOf2(FocusKeyManager.prototype), "setActiveItem", this).call(this, item);

            if (this.activeItem) {
              this.activeItem.focus(this._origin);
            }
          }
        }]);

        return FocusKeyManager;
      }(ListKeyManager);
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Configuration for the isFocusable method.
       */


      var IsFocusableConfig = function IsFocusableConfig() {
        _classCallCheck2(this, IsFocusableConfig);

        /**
         * Whether to count an element as focusable even if it is not currently visible.
         */
        this.ignoreVisibility = false;
      }; // The InteractivityChecker leans heavily on the ally.js accessibility utilities.
      // Methods like `isTabbable` are only covering specific edge-cases for the browsers which are
      // supported.

      /**
       * Utility for checking the interactivity of an element, such as whether is is focusable or
       * tabbable.
       */


      var InteractivityChecker = /*#__PURE__*/function () {
        function InteractivityChecker(_platform) {
          _classCallCheck2(this, InteractivityChecker);

          this._platform = _platform;
        }
        /**
         * Gets whether an element is disabled.
         *
         * @param element Element to be checked.
         * @returns Whether the element is disabled.
         */


        _createClass2(InteractivityChecker, [{
          key: "isDisabled",
          value: function isDisabled(element) {
            // This does not capture some cases, such as a non-form control with a disabled attribute or
            // a form control inside of a disabled form, but should capture the most common cases.
            return element.hasAttribute('disabled');
          }
          /**
           * Gets whether an element is visible for the purposes of interactivity.
           *
           * This will capture states like `display: none` and `visibility: hidden`, but not things like
           * being clipped by an `overflow: hidden` parent or being outside the viewport.
           *
           * @returns Whether the element is visible.
           */

        }, {
          key: "isVisible",
          value: function isVisible(element) {
            return hasGeometry(element) && getComputedStyle(element).visibility === 'visible';
          }
          /**
           * Gets whether an element can be reached via Tab key.
           * Assumes that the element has already been checked with isFocusable.
           *
           * @param element Element to be checked.
           * @returns Whether the element is tabbable.
           */

        }, {
          key: "isTabbable",
          value: function isTabbable(element) {
            // Nothing is tabbable on the server 😎
            if (!this._platform.isBrowser) {
              return false;
            }

            var frameElement = getFrameElement(getWindow(element));

            if (frameElement) {
              // Frame elements inherit their tabindex onto all child elements.
              if (getTabIndexValue(frameElement) === -1) {
                return false;
              } // Browsers disable tabbing to an element inside of an invisible frame.


              if (!this.isVisible(frameElement)) {
                return false;
              }
            }

            var nodeName = element.nodeName.toLowerCase();
            var tabIndexValue = getTabIndexValue(element);

            if (element.hasAttribute('contenteditable')) {
              return tabIndexValue !== -1;
            }

            if (nodeName === 'iframe' || nodeName === 'object') {
              // The frame or object's content may be tabbable depending on the content, but it's
              // not possibly to reliably detect the content of the frames. We always consider such
              // elements as non-tabbable.
              return false;
            } // In iOS, the browser only considers some specific elements as tabbable.


            if (this._platform.WEBKIT && this._platform.IOS && !isPotentiallyTabbableIOS(element)) {
              return false;
            }

            if (nodeName === 'audio') {
              // Audio elements without controls enabled are never tabbable, regardless
              // of the tabindex attribute explicitly being set.
              if (!element.hasAttribute('controls')) {
                return false;
              } // Audio elements with controls are by default tabbable unless the
              // tabindex attribute is set to `-1` explicitly.


              return tabIndexValue !== -1;
            }

            if (nodeName === 'video') {
              // For all video elements, if the tabindex attribute is set to `-1`, the video
              // is not tabbable. Note: We cannot rely on the default `HTMLElement.tabIndex`
              // property as that one is set to `-1` in Chrome, Edge and Safari v13.1. The
              // tabindex attribute is the source of truth here.
              if (tabIndexValue === -1) {
                return false;
              } // If the tabindex is explicitly set, and not `-1` (as per check before), the
              // video element is always tabbable (regardless of whether it has controls or not).


              if (tabIndexValue !== null) {
                return true;
              } // Otherwise (when no explicit tabindex is set), a video is only tabbable if it
              // has controls enabled. Firefox is special as videos are always tabbable regardless
              // of whether there are controls or not.


              return this._platform.FIREFOX || element.hasAttribute('controls');
            }

            return element.tabIndex >= 0;
          }
          /**
           * Gets whether an element can be focused by the user.
           *
           * @param element Element to be checked.
           * @param config The config object with options to customize this method's behavior
           * @returns Whether the element is focusable.
           */

        }, {
          key: "isFocusable",
          value: function isFocusable(element, config) {
            // Perform checks in order of left to most expensive.
            // Again, naive approach that does not capture many edge cases and browser quirks.
            return isPotentiallyFocusable(element) && !this.isDisabled(element) && ((config === null || config === void 0 ? void 0 : config.ignoreVisibility) || this.isVisible(element));
          }
        }]);

        return InteractivityChecker;
      }();

      InteractivityChecker.ɵfac = function InteractivityChecker_Factory(t) {
        return new (t || InteractivityChecker)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__["Platform"]));
      };

      InteractivityChecker.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"])({
        factory: function InteractivityChecker_Factory() {
          return new InteractivityChecker(Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__["Platform"]));
        },
        token: InteractivityChecker,
        providedIn: "root"
      });

      InteractivityChecker.ctorParameters = function () {
        return [{
          type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__["Platform"]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](InteractivityChecker, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"],
          args: [{
            providedIn: 'root'
          }]
        }], function () {
          return [{
            type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__["Platform"]
          }];
        }, null);
      })();
      /**
       * Returns the frame element from a window object. Since browsers like MS Edge throw errors if
       * the frameElement property is being accessed from a different host address, this property
       * should be accessed carefully.
       */


      function getFrameElement(window) {
        try {
          return window.frameElement;
        } catch (_a) {
          return null;
        }
      }
      /** Checks whether the specified element has any geometry / rectangles. */


      function hasGeometry(element) {
        // Use logic from jQuery to check for an invisible element.
        // See https://github.com/jquery/jquery/blob/master/src/css/hiddenVisibleSelectors.js#L12
        return !!(element.offsetWidth || element.offsetHeight || typeof element.getClientRects === 'function' && element.getClientRects().length);
      }
      /** Gets whether an element's  */


      function isNativeFormElement(element) {
        var nodeName = element.nodeName.toLowerCase();
        return nodeName === 'input' || nodeName === 'select' || nodeName === 'button' || nodeName === 'textarea';
      }
      /** Gets whether an element is an `<input type="hidden">`. */


      function isHiddenInput(element) {
        return isInputElement(element) && element.type == 'hidden';
      }
      /** Gets whether an element is an anchor that has an href attribute. */


      function isAnchorWithHref(element) {
        return isAnchorElement(element) && element.hasAttribute('href');
      }
      /** Gets whether an element is an input element. */


      function isInputElement(element) {
        return element.nodeName.toLowerCase() == 'input';
      }
      /** Gets whether an element is an anchor element. */


      function isAnchorElement(element) {
        return element.nodeName.toLowerCase() == 'a';
      }
      /** Gets whether an element has a valid tabindex. */


      function hasValidTabIndex(element) {
        if (!element.hasAttribute('tabindex') || element.tabIndex === undefined) {
          return false;
        }

        var tabIndex = element.getAttribute('tabindex'); // IE11 parses tabindex="" as the value "-32768"

        if (tabIndex == '-32768') {
          return false;
        }

        return !!(tabIndex && !isNaN(parseInt(tabIndex, 10)));
      }
      /**
       * Returns the parsed tabindex from the element attributes instead of returning the
       * evaluated tabindex from the browsers defaults.
       */


      function getTabIndexValue(element) {
        if (!hasValidTabIndex(element)) {
          return null;
        } // See browser issue in Gecko https://bugzilla.mozilla.org/show_bug.cgi?id=1128054


        var tabIndex = parseInt(element.getAttribute('tabindex') || '', 10);
        return isNaN(tabIndex) ? -1 : tabIndex;
      }
      /** Checks whether the specified element is potentially tabbable on iOS */


      function isPotentiallyTabbableIOS(element) {
        var nodeName = element.nodeName.toLowerCase();
        var inputType = nodeName === 'input' && element.type;
        return inputType === 'text' || inputType === 'password' || nodeName === 'select' || nodeName === 'textarea';
      }
      /**
       * Gets whether an element is potentially focusable without taking current visible/disabled state
       * into account.
       */


      function isPotentiallyFocusable(element) {
        // Inputs are potentially focusable *unless* they're type="hidden".
        if (isHiddenInput(element)) {
          return false;
        }

        return isNativeFormElement(element) || isAnchorWithHref(element) || element.hasAttribute('contenteditable') || hasValidTabIndex(element);
      }
      /** Gets the parent window of a DOM node with regards of being inside of an iframe. */


      function getWindow(node) {
        // ownerDocument is null if `node` itself *is* a document.
        return node.ownerDocument && node.ownerDocument.defaultView || window;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Class that allows for trapping focus within a DOM element.
       *
       * This class currently uses a relatively simple approach to focus trapping.
       * It assumes that the tab order is the same as DOM order, which is not necessarily true.
       * Things like `tabIndex > 0`, flex `order`, and shadow roots can cause the two to misalign.
       *
       * @deprecated Use `ConfigurableFocusTrap` instead.
       * @breaking-change for 11.0.0 Remove this class.
       */


      var FocusTrap = /*#__PURE__*/function () {
        function FocusTrap(_element, _checker, _ngZone, _document) {
          var _this675 = this;

          var deferAnchors = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;

          _classCallCheck2(this, FocusTrap);

          this._element = _element;
          this._checker = _checker;
          this._ngZone = _ngZone;
          this._document = _document;
          this._hasAttached = false; // Event listeners for the anchors. Need to be regular functions so that we can unbind them later.

          this.startAnchorListener = function () {
            return _this675.focusLastTabbableElement();
          };

          this.endAnchorListener = function () {
            return _this675.focusFirstTabbableElement();
          };

          this._enabled = true;

          if (!deferAnchors) {
            this.attachAnchors();
          }
        }
        /** Whether the focus trap is active. */


        _createClass2(FocusTrap, [{
          key: "enabled",
          get: function get() {
            return this._enabled;
          },
          set: function set(value) {
            this._enabled = value;

            if (this._startAnchor && this._endAnchor) {
              this._toggleAnchorTabIndex(value, this._startAnchor);

              this._toggleAnchorTabIndex(value, this._endAnchor);
            }
          }
          /** Destroys the focus trap by cleaning up the anchors. */

        }, {
          key: "destroy",
          value: function destroy() {
            var startAnchor = this._startAnchor;
            var endAnchor = this._endAnchor;

            if (startAnchor) {
              startAnchor.removeEventListener('focus', this.startAnchorListener);

              if (startAnchor.parentNode) {
                startAnchor.parentNode.removeChild(startAnchor);
              }
            }

            if (endAnchor) {
              endAnchor.removeEventListener('focus', this.endAnchorListener);

              if (endAnchor.parentNode) {
                endAnchor.parentNode.removeChild(endAnchor);
              }
            }

            this._startAnchor = this._endAnchor = null;
            this._hasAttached = false;
          }
          /**
           * Inserts the anchors into the DOM. This is usually done automatically
           * in the constructor, but can be deferred for cases like directives with `*ngIf`.
           * @returns Whether the focus trap managed to attach successfuly. This may not be the case
           * if the target element isn't currently in the DOM.
           */

        }, {
          key: "attachAnchors",
          value: function attachAnchors() {
            var _this676 = this;

            // If we're not on the browser, there can be no focus to trap.
            if (this._hasAttached) {
              return true;
            }

            this._ngZone.runOutsideAngular(function () {
              if (!_this676._startAnchor) {
                _this676._startAnchor = _this676._createAnchor();

                _this676._startAnchor.addEventListener('focus', _this676.startAnchorListener);
              }

              if (!_this676._endAnchor) {
                _this676._endAnchor = _this676._createAnchor();

                _this676._endAnchor.addEventListener('focus', _this676.endAnchorListener);
              }
            });

            if (this._element.parentNode) {
              this._element.parentNode.insertBefore(this._startAnchor, this._element);

              this._element.parentNode.insertBefore(this._endAnchor, this._element.nextSibling);

              this._hasAttached = true;
            }

            return this._hasAttached;
          }
          /**
           * Waits for the zone to stabilize, then either focuses the first element that the
           * user specified, or the first tabbable element.
           * @returns Returns a promise that resolves with a boolean, depending
           * on whether focus was moved successfuly.
           */

        }, {
          key: "focusInitialElementWhenReady",
          value: function focusInitialElementWhenReady() {
            var _this677 = this;

            return new Promise(function (resolve) {
              _this677._executeOnStable(function () {
                return resolve(_this677.focusInitialElement());
              });
            });
          }
          /**
           * Waits for the zone to stabilize, then focuses
           * the first tabbable element within the focus trap region.
           * @returns Returns a promise that resolves with a boolean, depending
           * on whether focus was moved successfuly.
           */

        }, {
          key: "focusFirstTabbableElementWhenReady",
          value: function focusFirstTabbableElementWhenReady() {
            var _this678 = this;

            return new Promise(function (resolve) {
              _this678._executeOnStable(function () {
                return resolve(_this678.focusFirstTabbableElement());
              });
            });
          }
          /**
           * Waits for the zone to stabilize, then focuses
           * the last tabbable element within the focus trap region.
           * @returns Returns a promise that resolves with a boolean, depending
           * on whether focus was moved successfuly.
           */

        }, {
          key: "focusLastTabbableElementWhenReady",
          value: function focusLastTabbableElementWhenReady() {
            var _this679 = this;

            return new Promise(function (resolve) {
              _this679._executeOnStable(function () {
                return resolve(_this679.focusLastTabbableElement());
              });
            });
          }
          /**
           * Get the specified boundary element of the trapped region.
           * @param bound The boundary to get (start or end of trapped region).
           * @returns The boundary element.
           */

        }, {
          key: "_getRegionBoundary",
          value: function _getRegionBoundary(bound) {
            // Contains the deprecated version of selector, for temporary backwards comparability.
            var markers = this._element.querySelectorAll("[cdk-focus-region-".concat(bound, "], ") + "[cdkFocusRegion".concat(bound, "], ") + "[cdk-focus-".concat(bound, "]"));

            for (var i = 0; i < markers.length; i++) {
              // @breaking-change 8.0.0
              if (markers[i].hasAttribute("cdk-focus-".concat(bound))) {
                console.warn("Found use of deprecated attribute 'cdk-focus-".concat(bound, "', ") + "use 'cdkFocusRegion".concat(bound, "' instead. The deprecated ") + "attribute will be removed in 8.0.0.", markers[i]);
              } else if (markers[i].hasAttribute("cdk-focus-region-".concat(bound))) {
                console.warn("Found use of deprecated attribute 'cdk-focus-region-".concat(bound, "', ") + "use 'cdkFocusRegion".concat(bound, "' instead. The deprecated attribute ") + "will be removed in 8.0.0.", markers[i]);
              }
            }

            if (bound == 'start') {
              return markers.length ? markers[0] : this._getFirstTabbableElement(this._element);
            }

            return markers.length ? markers[markers.length - 1] : this._getLastTabbableElement(this._element);
          }
          /**
           * Focuses the element that should be focused when the focus trap is initialized.
           * @returns Whether focus was moved successfuly.
           */

        }, {
          key: "focusInitialElement",
          value: function focusInitialElement() {
            // Contains the deprecated version of selector, for temporary backwards comparability.
            var redirectToElement = this._element.querySelector("[cdk-focus-initial], " + "[cdkFocusInitial]");

            if (redirectToElement) {
              // @breaking-change 8.0.0
              if (redirectToElement.hasAttribute("cdk-focus-initial")) {
                console.warn("Found use of deprecated attribute 'cdk-focus-initial', " + "use 'cdkFocusInitial' instead. The deprecated attribute " + "will be removed in 8.0.0", redirectToElement);
              } // Warn the consumer if the element they've pointed to
              // isn't focusable, when not in production mode.


              if ((typeof ngDevMode === 'undefined' || ngDevMode) && !this._checker.isFocusable(redirectToElement)) {
                console.warn("Element matching '[cdkFocusInitial]' is not focusable.", redirectToElement);
              }

              redirectToElement.focus();
              return true;
            }

            return this.focusFirstTabbableElement();
          }
          /**
           * Focuses the first tabbable element within the focus trap region.
           * @returns Whether focus was moved successfuly.
           */

        }, {
          key: "focusFirstTabbableElement",
          value: function focusFirstTabbableElement() {
            var redirectToElement = this._getRegionBoundary('start');

            if (redirectToElement) {
              redirectToElement.focus();
            }

            return !!redirectToElement;
          }
          /**
           * Focuses the last tabbable element within the focus trap region.
           * @returns Whether focus was moved successfuly.
           */

        }, {
          key: "focusLastTabbableElement",
          value: function focusLastTabbableElement() {
            var redirectToElement = this._getRegionBoundary('end');

            if (redirectToElement) {
              redirectToElement.focus();
            }

            return !!redirectToElement;
          }
          /**
           * Checks whether the focus trap has successfuly been attached.
           */

        }, {
          key: "hasAttached",
          value: function hasAttached() {
            return this._hasAttached;
          }
          /** Get the first tabbable element from a DOM subtree (inclusive). */

        }, {
          key: "_getFirstTabbableElement",
          value: function _getFirstTabbableElement(root) {
            if (this._checker.isFocusable(root) && this._checker.isTabbable(root)) {
              return root;
            } // Iterate in DOM order. Note that IE doesn't have `children` for SVG so we fall
            // back to `childNodes` which includes text nodes, comments etc.


            var children = root.children || root.childNodes;

            for (var i = 0; i < children.length; i++) {
              var tabbableChild = children[i].nodeType === this._document.ELEMENT_NODE ? this._getFirstTabbableElement(children[i]) : null;

              if (tabbableChild) {
                return tabbableChild;
              }
            }

            return null;
          }
          /** Get the last tabbable element from a DOM subtree (inclusive). */

        }, {
          key: "_getLastTabbableElement",
          value: function _getLastTabbableElement(root) {
            if (this._checker.isFocusable(root) && this._checker.isTabbable(root)) {
              return root;
            } // Iterate in reverse DOM order.


            var children = root.children || root.childNodes;

            for (var i = children.length - 1; i >= 0; i--) {
              var tabbableChild = children[i].nodeType === this._document.ELEMENT_NODE ? this._getLastTabbableElement(children[i]) : null;

              if (tabbableChild) {
                return tabbableChild;
              }
            }

            return null;
          }
          /** Creates an anchor element. */

        }, {
          key: "_createAnchor",
          value: function _createAnchor() {
            var anchor = this._document.createElement('div');

            this._toggleAnchorTabIndex(this._enabled, anchor);

            anchor.classList.add('cdk-visually-hidden');
            anchor.classList.add('cdk-focus-trap-anchor');
            anchor.setAttribute('aria-hidden', 'true');
            return anchor;
          }
          /**
           * Toggles the `tabindex` of an anchor, based on the enabled state of the focus trap.
           * @param isEnabled Whether the focus trap is enabled.
           * @param anchor Anchor on which to toggle the tabindex.
           */

        }, {
          key: "_toggleAnchorTabIndex",
          value: function _toggleAnchorTabIndex(isEnabled, anchor) {
            // Remove the tabindex completely, rather than setting it to -1, because if the
            // element has a tabindex, the user might still hit it when navigating with the arrow keys.
            isEnabled ? anchor.setAttribute('tabindex', '0') : anchor.removeAttribute('tabindex');
          }
          /**
           * Toggles the`tabindex` of both anchors to either trap Tab focus or allow it to escape.
           * @param enabled: Whether the anchors should trap Tab.
           */

        }, {
          key: "toggleAnchors",
          value: function toggleAnchors(enabled) {
            if (this._startAnchor && this._endAnchor) {
              this._toggleAnchorTabIndex(enabled, this._startAnchor);

              this._toggleAnchorTabIndex(enabled, this._endAnchor);
            }
          }
          /** Executes a function when the zone is stable. */

        }, {
          key: "_executeOnStable",
          value: function _executeOnStable(fn) {
            if (this._ngZone.isStable) {
              fn();
            } else {
              this._ngZone.onStable.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["take"])(1)).subscribe(fn);
            }
          }
        }]);

        return FocusTrap;
      }();
      /**
       * Factory that allows easy instantiation of focus traps.
       * @deprecated Use `ConfigurableFocusTrapFactory` instead.
       * @breaking-change for 11.0.0 Remove this class.
       */


      var FocusTrapFactory = /*#__PURE__*/function () {
        function FocusTrapFactory(_checker, _ngZone, _document) {
          _classCallCheck2(this, FocusTrapFactory);

          this._checker = _checker;
          this._ngZone = _ngZone;
          this._document = _document;
        }
        /**
         * Creates a focus-trapped region around the given element.
         * @param element The element around which focus will be trapped.
         * @param deferCaptureElements Defers the creation of focus-capturing elements to be done
         *     manually by the user.
         * @returns The created focus trap instance.
         */


        _createClass2(FocusTrapFactory, [{
          key: "create",
          value: function create(element) {
            var deferCaptureElements = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
            return new FocusTrap(element, this._checker, this._ngZone, this._document, deferCaptureElements);
          }
        }]);

        return FocusTrapFactory;
      }();

      FocusTrapFactory.ɵfac = function FocusTrapFactory_Factory(t) {
        return new (t || FocusTrapFactory)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](InteractivityChecker), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]));
      };

      FocusTrapFactory.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"])({
        factory: function FocusTrapFactory_Factory() {
          return new FocusTrapFactory(Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(InteractivityChecker), Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]), Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]));
        },
        token: FocusTrapFactory,
        providedIn: "root"
      });

      FocusTrapFactory.ctorParameters = function () {
        return [{
          type: InteractivityChecker
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
            args: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]]
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](FocusTrapFactory, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"],
          args: [{
            providedIn: 'root'
          }]
        }], function () {
          return [{
            type: InteractivityChecker
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
              args: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]]
            }]
          }];
        }, null);
      })();
      /** Directive for trapping focus within a region. */


      var CdkTrapFocus = /*#__PURE__*/function () {
        function CdkTrapFocus(_elementRef, _focusTrapFactory, _document) {
          _classCallCheck2(this, CdkTrapFocus);

          this._elementRef = _elementRef;
          this._focusTrapFactory = _focusTrapFactory;
          /** Previously focused element to restore focus to upon destroy when using autoCapture. */

          this._previouslyFocusedElement = null;
          this._document = _document;
          this.focusTrap = this._focusTrapFactory.create(this._elementRef.nativeElement, true);
        }
        /** Whether the focus trap is active. */


        _createClass2(CdkTrapFocus, [{
          key: "enabled",
          get: function get() {
            return this.focusTrap.enabled;
          },
          set: function set(value) {
            this.focusTrap.enabled = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_6__["coerceBooleanProperty"])(value);
          }
          /**
           * Whether the directive should automatially move focus into the trapped region upon
           * initialization and return focus to the previous activeElement upon destruction.
           */

        }, {
          key: "autoCapture",
          get: function get() {
            return this._autoCapture;
          },
          set: function set(value) {
            this._autoCapture = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_6__["coerceBooleanProperty"])(value);
          }
        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            this.focusTrap.destroy(); // If we stored a previously focused element when using autoCapture, return focus to that
            // element now that the trapped region is being destroyed.

            if (this._previouslyFocusedElement) {
              this._previouslyFocusedElement.focus();

              this._previouslyFocusedElement = null;
            }
          }
        }, {
          key: "ngAfterContentInit",
          value: function ngAfterContentInit() {
            this.focusTrap.attachAnchors();

            if (this.autoCapture) {
              this._captureFocus();
            }
          }
        }, {
          key: "ngDoCheck",
          value: function ngDoCheck() {
            if (!this.focusTrap.hasAttached()) {
              this.focusTrap.attachAnchors();
            }
          }
        }, {
          key: "ngOnChanges",
          value: function ngOnChanges(changes) {
            var autoCaptureChange = changes['autoCapture'];

            if (autoCaptureChange && !autoCaptureChange.firstChange && this.autoCapture && this.focusTrap.hasAttached()) {
              this._captureFocus();
            }
          }
        }, {
          key: "_captureFocus",
          value: function _captureFocus() {
            this._previouslyFocusedElement = this._document.activeElement;
            this.focusTrap.focusInitialElementWhenReady();
          }
        }]);

        return CdkTrapFocus;
      }();

      CdkTrapFocus.ɵfac = function CdkTrapFocus_Factory(t) {
        return new (t || CdkTrapFocus)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](FocusTrapFactory), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]));
      };

      CdkTrapFocus.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineDirective"]({
        type: CdkTrapFocus,
        selectors: [["", "cdkTrapFocus", ""]],
        inputs: {
          enabled: ["cdkTrapFocus", "enabled"],
          autoCapture: ["cdkTrapFocusAutoCapture", "autoCapture"]
        },
        exportAs: ["cdkTrapFocus"],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵNgOnChangesFeature"]]
      });

      CdkTrapFocus.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]
        }, {
          type: FocusTrapFactory
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
            args: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]]
          }]
        }];
      };

      CdkTrapFocus.propDecorators = {
        enabled: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
          args: ['cdkTrapFocus']
        }],
        autoCapture: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
          args: ['cdkTrapFocusAutoCapture']
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](CdkTrapFocus, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Directive"],
          args: [{
            selector: '[cdkTrapFocus]',
            exportAs: 'cdkTrapFocus'
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]
          }, {
            type: FocusTrapFactory
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
              args: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]]
            }]
          }];
        }, {
          enabled: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
            args: ['cdkTrapFocus']
          }],
          autoCapture: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
            args: ['cdkTrapFocusAutoCapture']
          }]
        });
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Class that allows for trapping focus within a DOM element.
       *
       * This class uses a strategy pattern that determines how it traps focus.
       * See FocusTrapInertStrategy.
       */


      var ConfigurableFocusTrap = /*#__PURE__*/function (_FocusTrap) {
        _inherits2(ConfigurableFocusTrap, _FocusTrap);

        var _super349 = _createSuper2(ConfigurableFocusTrap);

        function ConfigurableFocusTrap(_element, _checker, _ngZone, _document, _focusTrapManager, _inertStrategy, config) {
          var _this680;

          _classCallCheck2(this, ConfigurableFocusTrap);

          _this680 = _super349.call(this, _element, _checker, _ngZone, _document, config.defer);
          _this680._focusTrapManager = _focusTrapManager;
          _this680._inertStrategy = _inertStrategy;

          _this680._focusTrapManager.register(_assertThisInitialized2(_this680));

          return _this680;
        }
        /** Whether the FocusTrap is enabled. */


        _createClass2(ConfigurableFocusTrap, [{
          key: "enabled",
          get: function get() {
            return this._enabled;
          },
          set: function set(value) {
            this._enabled = value;

            if (this._enabled) {
              this._focusTrapManager.register(this);
            } else {
              this._focusTrapManager.deregister(this);
            }
          }
          /** Notifies the FocusTrapManager that this FocusTrap will be destroyed. */

        }, {
          key: "destroy",
          value: function destroy() {
            this._focusTrapManager.deregister(this);

            _get2(_getPrototypeOf2(ConfigurableFocusTrap.prototype), "destroy", this).call(this);
          }
          /** @docs-private Implemented as part of ManagedFocusTrap. */

        }, {
          key: "_enable",
          value: function _enable() {
            this._inertStrategy.preventFocus(this);

            this.toggleAnchors(true);
          }
          /** @docs-private Implemented as part of ManagedFocusTrap. */

        }, {
          key: "_disable",
          value: function _disable() {
            this._inertStrategy.allowFocus(this);

            this.toggleAnchors(false);
          }
        }]);

        return ConfigurableFocusTrap;
      }(FocusTrap);
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** IE 11 compatible closest implementation that is able to start from non-Element Nodes. */


      function closest(element, selector) {
        if (!(element instanceof Node)) {
          return null;
        }

        var curr = element;

        while (curr != null && !(curr instanceof Element)) {
          curr = curr.parentNode;
        }

        return curr && (hasNativeClosest ? curr.closest(selector) : polyfillClosest(curr, selector));
      }
      /** Polyfill for browsers without Element.closest. */


      function polyfillClosest(element, selector) {
        var curr = element;

        while (curr != null && !(curr instanceof Element && matches(curr, selector))) {
          curr = curr.parentNode;
        }

        return curr || null;
      }

      var hasNativeClosest = typeof Element != 'undefined' && !!Element.prototype.closest;
      /** IE 11 compatible matches implementation. */

      function matches(element, selector) {
        return element.matches ? element.matches(selector) : element['msMatchesSelector'](selector);
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Lightweight FocusTrapInertStrategy that adds a document focus event
       * listener to redirect focus back inside the FocusTrap.
       */


      var EventListenerFocusTrapInertStrategy = /*#__PURE__*/function () {
        function EventListenerFocusTrapInertStrategy() {
          _classCallCheck2(this, EventListenerFocusTrapInertStrategy);

          /** Focus event handler. */
          this._listener = null;
        }
        /** Adds a document event listener that keeps focus inside the FocusTrap. */


        _createClass2(EventListenerFocusTrapInertStrategy, [{
          key: "preventFocus",
          value: function preventFocus(focusTrap) {
            var _this681 = this;

            // Ensure there's only one listener per document
            if (this._listener) {
              focusTrap._document.removeEventListener('focus', this._listener, true);
            }

            this._listener = function (e) {
              return _this681._trapFocus(focusTrap, e);
            };

            focusTrap._ngZone.runOutsideAngular(function () {
              focusTrap._document.addEventListener('focus', _this681._listener, true);
            });
          }
          /** Removes the event listener added in preventFocus. */

        }, {
          key: "allowFocus",
          value: function allowFocus(focusTrap) {
            if (!this._listener) {
              return;
            }

            focusTrap._document.removeEventListener('focus', this._listener, true);

            this._listener = null;
          }
          /**
           * Refocuses the first element in the FocusTrap if the focus event target was outside
           * the FocusTrap.
           *
           * This is an event listener callback. The event listener is added in runOutsideAngular,
           * so all this code runs outside Angular as well.
           */

        }, {
          key: "_trapFocus",
          value: function _trapFocus(focusTrap, event) {
            var target = event.target;
            var focusTrapRoot = focusTrap._element; // Don't refocus if target was in an overlay, because the overlay might be associated
            // with an element inside the FocusTrap, ex. mat-select.

            if (!focusTrapRoot.contains(target) && closest(target, 'div.cdk-overlay-pane') === null) {
              // Some legacy FocusTrap usages have logic that focuses some element on the page
              // just before FocusTrap is destroyed. For backwards compatibility, wait
              // to be sure FocusTrap is still enabled before refocusing.
              setTimeout(function () {
                // Check whether focus wasn't put back into the focus trap while the timeout was pending.
                if (focusTrap.enabled && !focusTrapRoot.contains(focusTrap._document.activeElement)) {
                  focusTrap.focusFirstTabbableElement();
                }
              });
            }
          }
        }]);

        return EventListenerFocusTrapInertStrategy;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Configuration for creating a ConfigurableFocusTrap.
       */


      var ConfigurableFocusTrapConfig = function ConfigurableFocusTrapConfig() {
        _classCallCheck2(this, ConfigurableFocusTrapConfig);

        /**
         * Whether to defer the creation of FocusTrap elements to be
         * done manually by the user. Default is to create them
         * automatically.
         */
        this.defer = false;
      };
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** The injection token used to specify the inert strategy. */


      var FOCUS_TRAP_INERT_STRATEGY = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["InjectionToken"]('FOCUS_TRAP_INERT_STRATEGY');
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** Injectable that ensures only the most recently enabled FocusTrap is active. */

      var FocusTrapManager = /*#__PURE__*/function () {
        function FocusTrapManager() {
          _classCallCheck2(this, FocusTrapManager);

          // A stack of the FocusTraps on the page. Only the FocusTrap at the
          // top of the stack is active.
          this._focusTrapStack = [];
        }
        /**
         * Disables the FocusTrap at the top of the stack, and then pushes
         * the new FocusTrap onto the stack.
         */


        _createClass2(FocusTrapManager, [{
          key: "register",
          value: function register(focusTrap) {
            // Dedupe focusTraps that register multiple times.
            this._focusTrapStack = this._focusTrapStack.filter(function (ft) {
              return ft !== focusTrap;
            });
            var stack = this._focusTrapStack;

            if (stack.length) {
              stack[stack.length - 1]._disable();
            }

            stack.push(focusTrap);

            focusTrap._enable();
          }
          /**
           * Removes the FocusTrap from the stack, and activates the
           * FocusTrap that is the new top of the stack.
           */

        }, {
          key: "deregister",
          value: function deregister(focusTrap) {
            focusTrap._disable();

            var stack = this._focusTrapStack;
            var i = stack.indexOf(focusTrap);

            if (i !== -1) {
              stack.splice(i, 1);

              if (stack.length) {
                stack[stack.length - 1]._enable();
              }
            }
          }
        }]);

        return FocusTrapManager;
      }();

      FocusTrapManager.ɵfac = function FocusTrapManager_Factory(t) {
        return new (t || FocusTrapManager)();
      };

      FocusTrapManager.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"])({
        factory: function FocusTrapManager_Factory() {
          return new FocusTrapManager();
        },
        token: FocusTrapManager,
        providedIn: "root"
      });
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](FocusTrapManager, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"],
          args: [{
            providedIn: 'root'
          }]
        }], function () {
          return [];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** Factory that allows easy instantiation of configurable focus traps. */


      var ConfigurableFocusTrapFactory = /*#__PURE__*/function () {
        function ConfigurableFocusTrapFactory(_checker, _ngZone, _focusTrapManager, _document, _inertStrategy) {
          _classCallCheck2(this, ConfigurableFocusTrapFactory);

          this._checker = _checker;
          this._ngZone = _ngZone;
          this._focusTrapManager = _focusTrapManager;
          this._document = _document; // TODO split up the strategies into different modules, similar to DateAdapter.

          this._inertStrategy = _inertStrategy || new EventListenerFocusTrapInertStrategy();
        }

        _createClass2(ConfigurableFocusTrapFactory, [{
          key: "create",
          value: function create(element) {
            var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new ConfigurableFocusTrapConfig();
            var configObject;

            if (typeof config === 'boolean') {
              configObject = new ConfigurableFocusTrapConfig();
              configObject.defer = config;
            } else {
              configObject = config;
            }

            return new ConfigurableFocusTrap(element, this._checker, this._ngZone, this._document, this._focusTrapManager, this._inertStrategy, configObject);
          }
        }]);

        return ConfigurableFocusTrapFactory;
      }();

      ConfigurableFocusTrapFactory.ɵfac = function ConfigurableFocusTrapFactory_Factory(t) {
        return new (t || ConfigurableFocusTrapFactory)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](InteractivityChecker), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](FocusTrapManager), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](FOCUS_TRAP_INERT_STRATEGY, 8));
      };

      ConfigurableFocusTrapFactory.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"])({
        factory: function ConfigurableFocusTrapFactory_Factory() {
          return new ConfigurableFocusTrapFactory(Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(InteractivityChecker), Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]), Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(FocusTrapManager), Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]), Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(FOCUS_TRAP_INERT_STRATEGY, 8));
        },
        token: ConfigurableFocusTrapFactory,
        providedIn: "root"
      });

      ConfigurableFocusTrapFactory.ctorParameters = function () {
        return [{
          type: InteractivityChecker
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]
        }, {
          type: FocusTrapManager
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
            args: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]]
          }]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
            args: [FOCUS_TRAP_INERT_STRATEGY]
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](ConfigurableFocusTrapFactory, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"],
          args: [{
            providedIn: 'root'
          }]
        }], function () {
          return [{
            type: InteractivityChecker
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]
          }, {
            type: FocusTrapManager
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
              args: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]]
            }]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
              args: [FOCUS_TRAP_INERT_STRATEGY]
            }]
          }];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var LIVE_ANNOUNCER_ELEMENT_TOKEN = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["InjectionToken"]('liveAnnouncerElement', {
        providedIn: 'root',
        factory: LIVE_ANNOUNCER_ELEMENT_TOKEN_FACTORY
      });
      /** @docs-private */

      function LIVE_ANNOUNCER_ELEMENT_TOKEN_FACTORY() {
        return null;
      }
      /** Injection token that can be used to configure the default options for the LiveAnnouncer. */


      var LIVE_ANNOUNCER_DEFAULT_OPTIONS = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["InjectionToken"]('LIVE_ANNOUNCER_DEFAULT_OPTIONS');
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      var LiveAnnouncer = /*#__PURE__*/function () {
        function LiveAnnouncer(elementToken, _ngZone, _document, _defaultOptions) {
          _classCallCheck2(this, LiveAnnouncer);

          this._ngZone = _ngZone;
          this._defaultOptions = _defaultOptions; // We inject the live element and document as `any` because the constructor signature cannot
          // reference browser globals (HTMLElement, Document) on non-browser environments, since having
          // a class decorator causes TypeScript to preserve the constructor signature types.

          this._document = _document;
          this._liveElement = elementToken || this._createLiveElement();
        }

        _createClass2(LiveAnnouncer, [{
          key: "announce",
          value: function announce(message) {
            var _this682 = this;

            var defaultOptions = this._defaultOptions;
            var politeness;
            var duration;

            for (var _len61 = arguments.length, args = new Array(_len61 > 1 ? _len61 - 1 : 0), _key63 = 1; _key63 < _len61; _key63++) {
              args[_key63 - 1] = arguments[_key63];
            }

            if (args.length === 1 && typeof args[0] === 'number') {
              duration = args[0];
            } else {
              politeness = args[0];
              duration = args[1];
            }

            this.clear();
            clearTimeout(this._previousTimeout);

            if (!politeness) {
              politeness = defaultOptions && defaultOptions.politeness ? defaultOptions.politeness : 'polite';
            }

            if (duration == null && defaultOptions) {
              duration = defaultOptions.duration;
            } // TODO: ensure changing the politeness works on all environments we support.


            this._liveElement.setAttribute('aria-live', politeness); // This 100ms timeout is necessary for some browser + screen-reader combinations:
            // - Both JAWS and NVDA over IE11 will not announce anything without a non-zero timeout.
            // - With Chrome and IE11 with NVDA or JAWS, a repeated (identical) message won't be read a
            //   second time without clearing and then using a non-zero delay.
            // (using JAWS 17 at time of this writing).


            return this._ngZone.runOutsideAngular(function () {
              return new Promise(function (resolve) {
                clearTimeout(_this682._previousTimeout);
                _this682._previousTimeout = setTimeout(function () {
                  _this682._liveElement.textContent = message;
                  resolve();

                  if (typeof duration === 'number') {
                    _this682._previousTimeout = setTimeout(function () {
                      return _this682.clear();
                    }, duration);
                  }
                }, 100);
              });
            });
          }
          /**
           * Clears the current text from the announcer element. Can be used to prevent
           * screen readers from reading the text out again while the user is going
           * through the page landmarks.
           */

        }, {
          key: "clear",
          value: function clear() {
            if (this._liveElement) {
              this._liveElement.textContent = '';
            }
          }
        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            clearTimeout(this._previousTimeout);

            if (this._liveElement && this._liveElement.parentNode) {
              this._liveElement.parentNode.removeChild(this._liveElement);

              this._liveElement = null;
            }
          }
        }, {
          key: "_createLiveElement",
          value: function _createLiveElement() {
            var elementClass = 'cdk-live-announcer-element';

            var previousElements = this._document.getElementsByClassName(elementClass);

            var liveEl = this._document.createElement('div'); // Remove any old containers. This can happen when coming in from a server-side-rendered page.


            for (var i = 0; i < previousElements.length; i++) {
              previousElements[i].parentNode.removeChild(previousElements[i]);
            }

            liveEl.classList.add(elementClass);
            liveEl.classList.add('cdk-visually-hidden');
            liveEl.setAttribute('aria-atomic', 'true');
            liveEl.setAttribute('aria-live', 'polite');

            this._document.body.appendChild(liveEl);

            return liveEl;
          }
        }]);

        return LiveAnnouncer;
      }();

      LiveAnnouncer.ɵfac = function LiveAnnouncer_Factory(t) {
        return new (t || LiveAnnouncer)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](LIVE_ANNOUNCER_ELEMENT_TOKEN, 8), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](LIVE_ANNOUNCER_DEFAULT_OPTIONS, 8));
      };

      LiveAnnouncer.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"])({
        factory: function LiveAnnouncer_Factory() {
          return new LiveAnnouncer(Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(LIVE_ANNOUNCER_ELEMENT_TOKEN, 8), Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]), Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]), Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(LIVE_ANNOUNCER_DEFAULT_OPTIONS, 8));
        },
        token: LiveAnnouncer,
        providedIn: "root"
      });

      LiveAnnouncer.ctorParameters = function () {
        return [{
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
            args: [LIVE_ANNOUNCER_ELEMENT_TOKEN]
          }]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
            args: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]]
          }]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
            args: [LIVE_ANNOUNCER_DEFAULT_OPTIONS]
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](LiveAnnouncer, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"],
          args: [{
            providedIn: 'root'
          }]
        }], function () {
          return [{
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
              args: [LIVE_ANNOUNCER_ELEMENT_TOKEN]
            }]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
              args: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]]
            }]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
              args: [LIVE_ANNOUNCER_DEFAULT_OPTIONS]
            }]
          }];
        }, null);
      })();
      /**
       * A directive that works similarly to aria-live, but uses the LiveAnnouncer to ensure compatibility
       * with a wider range of browsers and screen readers.
       */


      var CdkAriaLive = /*#__PURE__*/function () {
        function CdkAriaLive(_elementRef, _liveAnnouncer, _contentObserver, _ngZone) {
          _classCallCheck2(this, CdkAriaLive);

          this._elementRef = _elementRef;
          this._liveAnnouncer = _liveAnnouncer;
          this._contentObserver = _contentObserver;
          this._ngZone = _ngZone;
          this._politeness = 'polite';
        }
        /** The aria-live politeness level to use when announcing messages. */


        _createClass2(CdkAriaLive, [{
          key: "politeness",
          get: function get() {
            return this._politeness;
          },
          set: function set(value) {
            var _this683 = this;

            this._politeness = value === 'off' || value === 'assertive' ? value : 'polite';

            if (this._politeness === 'off') {
              if (this._subscription) {
                this._subscription.unsubscribe();

                this._subscription = null;
              }
            } else if (!this._subscription) {
              this._subscription = this._ngZone.runOutsideAngular(function () {
                return _this683._contentObserver.observe(_this683._elementRef).subscribe(function () {
                  // Note that we use textContent here, rather than innerText, in order to avoid a reflow.
                  var elementText = _this683._elementRef.nativeElement.textContent; // The `MutationObserver` fires also for attribute
                  // changes which we don't want to announce.

                  if (elementText !== _this683._previousAnnouncedText) {
                    _this683._liveAnnouncer.announce(elementText, _this683._politeness);

                    _this683._previousAnnouncedText = elementText;
                  }
                });
              });
            }
          }
        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            if (this._subscription) {
              this._subscription.unsubscribe();
            }
          }
        }]);

        return CdkAriaLive;
      }();

      CdkAriaLive.ɵfac = function CdkAriaLive_Factory(t) {
        return new (t || CdkAriaLive)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](LiveAnnouncer), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_cdk_observers__WEBPACK_IMPORTED_MODULE_7__["ContentObserver"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]));
      };

      CdkAriaLive.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineDirective"]({
        type: CdkAriaLive,
        selectors: [["", "cdkAriaLive", ""]],
        inputs: {
          politeness: ["cdkAriaLive", "politeness"]
        },
        exportAs: ["cdkAriaLive"]
      });

      CdkAriaLive.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]
        }, {
          type: LiveAnnouncer
        }, {
          type: _angular_cdk_observers__WEBPACK_IMPORTED_MODULE_7__["ContentObserver"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]
        }];
      };

      CdkAriaLive.propDecorators = {
        politeness: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
          args: ['cdkAriaLive']
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](CdkAriaLive, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Directive"],
          args: [{
            selector: '[cdkAriaLive]',
            exportAs: 'cdkAriaLive'
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]
          }, {
            type: LiveAnnouncer
          }, {
            type: _angular_cdk_observers__WEBPACK_IMPORTED_MODULE_7__["ContentObserver"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]
          }];
        }, {
          politeness: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
            args: ['cdkAriaLive']
          }]
        });
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Screenreaders will often fire fake mousedown events when a focusable element
       * is activated using the keyboard. We can typically distinguish between these faked
       * mousedown events and real mousedown events using the "buttons" property. While
       * real mousedowns will indicate the mouse button that was pressed (e.g. "1" for
       * the left mouse button), faked mousedowns will usually set the property value to 0.
       */


      function isFakeMousedownFromScreenReader(event) {
        return event.buttons === 0;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */
      // This is the value used by AngularJS Material. Through trial and error (on iPhone 6S) they found
      // that a value of around 650ms seems appropriate.


      var TOUCH_BUFFER_MS = 650;
      /** InjectionToken for FocusMonitorOptions. */

      var FOCUS_MONITOR_DEFAULT_OPTIONS = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["InjectionToken"]('cdk-focus-monitor-default-options');
      /**
       * Event listener options that enable capturing and also
       * mark the listener as passive if the browser supports it.
       */

      var captureEventListenerOptions = Object(_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__["normalizePassiveListenerOptions"])({
        passive: true,
        capture: true
      });
      /** Monitors mouse and keyboard events to determine the cause of focus events. */

      var FocusMonitor = /*#__PURE__*/function () {
        function FocusMonitor(_ngZone, _platform,
        /** @breaking-change 11.0.0 make document required */
        document, options) {
          var _this684 = this;

          _classCallCheck2(this, FocusMonitor);

          this._ngZone = _ngZone;
          this._platform = _platform;
          /** The focus origin that the next focus event is a result of. */

          this._origin = null;
          /** Whether the window has just been focused. */

          this._windowFocused = false;
          /** Map of elements being monitored to their info. */

          this._elementInfo = new Map();
          /** The number of elements currently being monitored. */

          this._monitoredElementCount = 0;
          /**
           * Keeps track of the root nodes to which we've currently bound a focus/blur handler,
           * as well as the number of monitored elements that they contain. We have to treat focus/blur
           * handlers differently from the rest of the events, because the browser won't emit events
           * to the document when focus moves inside of a shadow root.
           */

          this._rootNodeFocusListenerCount = new Map();
          /**
           * Event listener for `keydown` events on the document.
           * Needs to be an arrow function in order to preserve the context when it gets bound.
           */

          this._documentKeydownListener = function () {
            // On keydown record the origin and clear any touch event that may be in progress.
            _this684._lastTouchTarget = null;

            _this684._setOriginForCurrentEventQueue('keyboard');
          };
          /**
           * Event listener for `mousedown` events on the document.
           * Needs to be an arrow function in order to preserve the context when it gets bound.
           */


          this._documentMousedownListener = function (event) {
            // On mousedown record the origin only if there is not touch
            // target, since a mousedown can happen as a result of a touch event.
            if (!_this684._lastTouchTarget) {
              // In some cases screen readers fire fake `mousedown` events instead of `keydown`.
              // Resolve the focus source to `keyboard` if we detect one of them.
              var source = isFakeMousedownFromScreenReader(event) ? 'keyboard' : 'mouse';

              _this684._setOriginForCurrentEventQueue(source);
            }
          };
          /**
           * Event listener for `touchstart` events on the document.
           * Needs to be an arrow function in order to preserve the context when it gets bound.
           */


          this._documentTouchstartListener = function (event) {
            // When the touchstart event fires the focus event is not yet in the event queue. This means
            // we can't rely on the trick used above (setting timeout of 1ms). Instead we wait 650ms to
            // see if a focus happens.
            if (_this684._touchTimeoutId != null) {
              clearTimeout(_this684._touchTimeoutId);
            }

            _this684._lastTouchTarget = getTarget(event);
            _this684._touchTimeoutId = setTimeout(function () {
              return _this684._lastTouchTarget = null;
            }, TOUCH_BUFFER_MS);
          };
          /**
           * Event listener for `focus` events on the window.
           * Needs to be an arrow function in order to preserve the context when it gets bound.
           */


          this._windowFocusListener = function () {
            // Make a note of when the window regains focus, so we can
            // restore the origin info for the focused element.
            _this684._windowFocused = true;
            _this684._windowFocusTimeoutId = setTimeout(function () {
              return _this684._windowFocused = false;
            });
          };
          /**
           * Event listener for `focus` and 'blur' events on the document.
           * Needs to be an arrow function in order to preserve the context when it gets bound.
           */


          this._rootNodeFocusAndBlurListener = function (event) {
            var target = getTarget(event);
            var handler = event.type === 'focus' ? _this684._onFocus : _this684._onBlur; // We need to walk up the ancestor chain in order to support `checkChildren`.

            for (var element = target; element; element = element.parentElement) {
              handler.call(_this684, event, element);
            }
          };

          this._document = document;
          this._detectionMode = (options === null || options === void 0 ? void 0 : options.detectionMode) || 0
          /* IMMEDIATE */
          ;
        }

        _createClass2(FocusMonitor, [{
          key: "monitor",
          value: function monitor(element) {
            var checkChildren = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
            var nativeElement = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_6__["coerceElement"])(element); // Do nothing if we're not on the browser platform or the passed in node isn't an element.

            if (!this._platform.isBrowser || nativeElement.nodeType !== 1) {
              return Object(rxjs__WEBPACK_IMPORTED_MODULE_3__["of"])(null);
            } // If the element is inside the shadow DOM, we need to bind our focus/blur listeners to
            // the shadow root, rather than the `document`, because the browser won't emit focus events
            // to the `document`, if focus is moving within the same shadow root.


            var rootNode = Object(_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__["_getShadowRoot"])(nativeElement) || this._getDocument();

            var cachedInfo = this._elementInfo.get(nativeElement); // Check if we're already monitoring this element.


            if (cachedInfo) {
              if (checkChildren) {
                // TODO(COMP-318): this can be problematic, because it'll turn all non-checkChildren
                // observers into ones that behave as if `checkChildren` was turned on. We need a more
                // robust solution.
                cachedInfo.checkChildren = true;
              }

              return cachedInfo.subject;
            } // Create monitored element info.


            var info = {
              checkChildren: checkChildren,
              subject: new rxjs__WEBPACK_IMPORTED_MODULE_3__["Subject"](),
              rootNode: rootNode
            };

            this._elementInfo.set(nativeElement, info);

            this._registerGlobalListeners(info);

            return info.subject;
          }
        }, {
          key: "stopMonitoring",
          value: function stopMonitoring(element) {
            var nativeElement = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_6__["coerceElement"])(element);

            var elementInfo = this._elementInfo.get(nativeElement);

            if (elementInfo) {
              elementInfo.subject.complete();

              this._setClasses(nativeElement);

              this._elementInfo["delete"](nativeElement);

              this._removeGlobalListeners(elementInfo);
            }
          }
        }, {
          key: "focusVia",
          value: function focusVia(element, origin, options) {
            var nativeElement = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_6__["coerceElement"])(element);

            var focusedElement = this._getDocument().activeElement; // If the element is focused already, calling `focus` again won't trigger the event listener
            // which means that the focus classes won't be updated. If that's the case, update the classes
            // directly without waiting for an event.


            if (nativeElement === focusedElement && this._elementInfo.has(nativeElement)) {
              this._originChanged(nativeElement, origin, this._elementInfo.get(nativeElement));
            } else {
              this._setOriginForCurrentEventQueue(origin); // `focus` isn't available on the server


              if (typeof nativeElement.focus === 'function') {
                nativeElement.focus(options);
              }
            }
          }
        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            var _this685 = this;

            this._elementInfo.forEach(function (_info, element) {
              return _this685.stopMonitoring(element);
            });
          }
          /** Access injected document if available or fallback to global document reference */

        }, {
          key: "_getDocument",
          value: function _getDocument() {
            return this._document || document;
          }
          /** Use defaultView of injected document if available or fallback to global window reference */

        }, {
          key: "_getWindow",
          value: function _getWindow() {
            var doc = this._getDocument();

            return doc.defaultView || window;
          }
        }, {
          key: "_toggleClass",
          value: function _toggleClass(element, className, shouldSet) {
            if (shouldSet) {
              element.classList.add(className);
            } else {
              element.classList.remove(className);
            }
          }
        }, {
          key: "_getFocusOrigin",
          value: function _getFocusOrigin(event) {
            // If we couldn't detect a cause for the focus event, it's due to one of three reasons:
            // 1) The window has just regained focus, in which case we want to restore the focused state of
            //    the element from before the window blurred.
            // 2) It was caused by a touch event, in which case we mark the origin as 'touch'.
            // 3) The element was programmatically focused, in which case we should mark the origin as
            //    'program'.
            if (this._origin) {
              return this._origin;
            }

            if (this._windowFocused && this._lastFocusOrigin) {
              return this._lastFocusOrigin;
            } else if (this._wasCausedByTouch(event)) {
              return 'touch';
            } else {
              return 'program';
            }
          }
          /**
           * Sets the focus classes on the element based on the given focus origin.
           * @param element The element to update the classes on.
           * @param origin The focus origin.
           */

        }, {
          key: "_setClasses",
          value: function _setClasses(element, origin) {
            this._toggleClass(element, 'cdk-focused', !!origin);

            this._toggleClass(element, 'cdk-touch-focused', origin === 'touch');

            this._toggleClass(element, 'cdk-keyboard-focused', origin === 'keyboard');

            this._toggleClass(element, 'cdk-mouse-focused', origin === 'mouse');

            this._toggleClass(element, 'cdk-program-focused', origin === 'program');
          }
          /**
           * Sets the origin and schedules an async function to clear it at the end of the event queue.
           * If the detection mode is 'eventual', the origin is never cleared.
           * @param origin The origin to set.
           */

        }, {
          key: "_setOriginForCurrentEventQueue",
          value: function _setOriginForCurrentEventQueue(origin) {
            var _this686 = this;

            this._ngZone.runOutsideAngular(function () {
              _this686._origin = origin;

              if (_this686._detectionMode === 0
              /* IMMEDIATE */
              ) {
                // Sometimes the focus origin won't be valid in Firefox because Firefox seems to focus *one*
                // tick after the interaction event fired. To ensure the focus origin is always correct,
                // the focus origin will be determined at the beginning of the next tick.
                _this686._originTimeoutId = setTimeout(function () {
                  return _this686._origin = null;
                }, 1);
              }
            });
          }
          /**
           * Checks whether the given focus event was caused by a touchstart event.
           * @param event The focus event to check.
           * @returns Whether the event was caused by a touch.
           */

        }, {
          key: "_wasCausedByTouch",
          value: function _wasCausedByTouch(event) {
            // Note(mmalerba): This implementation is not quite perfect, there is a small edge case.
            // Consider the following dom structure:
            //
            // <div #parent tabindex="0" cdkFocusClasses>
            //   <div #child (click)="#parent.focus()"></div>
            // </div>
            //
            // If the user touches the #child element and the #parent is programmatically focused as a
            // result, this code will still consider it to have been caused by the touch event and will
            // apply the cdk-touch-focused class rather than the cdk-program-focused class. This is a
            // relatively small edge-case that can be worked around by using
            // focusVia(parentEl, 'program') to focus the parent element.
            //
            // If we decide that we absolutely must handle this case correctly, we can do so by listening
            // for the first focus event after the touchstart, and then the first blur event after that
            // focus event. When that blur event fires we know that whatever follows is not a result of the
            // touchstart.
            var focusTarget = getTarget(event);
            return this._lastTouchTarget instanceof Node && focusTarget instanceof Node && (focusTarget === this._lastTouchTarget || focusTarget.contains(this._lastTouchTarget));
          }
          /**
           * Handles focus events on a registered element.
           * @param event The focus event.
           * @param element The monitored element.
           */

        }, {
          key: "_onFocus",
          value: function _onFocus(event, element) {
            // NOTE(mmalerba): We currently set the classes based on the focus origin of the most recent
            // focus event affecting the monitored element. If we want to use the origin of the first event
            // instead we should check for the cdk-focused class here and return if the element already has
            // it. (This only matters for elements that have includesChildren = true).
            // If we are not counting child-element-focus as focused, make sure that the event target is the
            // monitored element itself.
            var elementInfo = this._elementInfo.get(element);

            if (!elementInfo || !elementInfo.checkChildren && element !== getTarget(event)) {
              return;
            }

            this._originChanged(element, this._getFocusOrigin(event), elementInfo);
          }
          /**
           * Handles blur events on a registered element.
           * @param event The blur event.
           * @param element The monitored element.
           */

        }, {
          key: "_onBlur",
          value: function _onBlur(event, element) {
            // If we are counting child-element-focus as focused, make sure that we aren't just blurring in
            // order to focus another child of the monitored element.
            var elementInfo = this._elementInfo.get(element);

            if (!elementInfo || elementInfo.checkChildren && event.relatedTarget instanceof Node && element.contains(event.relatedTarget)) {
              return;
            }

            this._setClasses(element);

            this._emitOrigin(elementInfo.subject, null);
          }
        }, {
          key: "_emitOrigin",
          value: function _emitOrigin(subject, origin) {
            this._ngZone.run(function () {
              return subject.next(origin);
            });
          }
        }, {
          key: "_registerGlobalListeners",
          value: function _registerGlobalListeners(elementInfo) {
            var _this687 = this;

            if (!this._platform.isBrowser) {
              return;
            }

            var rootNode = elementInfo.rootNode;
            var rootNodeFocusListeners = this._rootNodeFocusListenerCount.get(rootNode) || 0;

            if (!rootNodeFocusListeners) {
              this._ngZone.runOutsideAngular(function () {
                rootNode.addEventListener('focus', _this687._rootNodeFocusAndBlurListener, captureEventListenerOptions);
                rootNode.addEventListener('blur', _this687._rootNodeFocusAndBlurListener, captureEventListenerOptions);
              });
            }

            this._rootNodeFocusListenerCount.set(rootNode, rootNodeFocusListeners + 1); // Register global listeners when first element is monitored.


            if (++this._monitoredElementCount === 1) {
              // Note: we listen to events in the capture phase so we
              // can detect them even if the user stops propagation.
              this._ngZone.runOutsideAngular(function () {
                var document = _this687._getDocument();

                var window = _this687._getWindow();

                document.addEventListener('keydown', _this687._documentKeydownListener, captureEventListenerOptions);
                document.addEventListener('mousedown', _this687._documentMousedownListener, captureEventListenerOptions);
                document.addEventListener('touchstart', _this687._documentTouchstartListener, captureEventListenerOptions);
                window.addEventListener('focus', _this687._windowFocusListener);
              });
            }
          }
        }, {
          key: "_removeGlobalListeners",
          value: function _removeGlobalListeners(elementInfo) {
            var rootNode = elementInfo.rootNode;

            if (this._rootNodeFocusListenerCount.has(rootNode)) {
              var rootNodeFocusListeners = this._rootNodeFocusListenerCount.get(rootNode);

              if (rootNodeFocusListeners > 1) {
                this._rootNodeFocusListenerCount.set(rootNode, rootNodeFocusListeners - 1);
              } else {
                rootNode.removeEventListener('focus', this._rootNodeFocusAndBlurListener, captureEventListenerOptions);
                rootNode.removeEventListener('blur', this._rootNodeFocusAndBlurListener, captureEventListenerOptions);

                this._rootNodeFocusListenerCount["delete"](rootNode);
              }
            } // Unregister global listeners when last element is unmonitored.


            if (! --this._monitoredElementCount) {
              var _document2 = this._getDocument();

              var _window5 = this._getWindow();

              _document2.removeEventListener('keydown', this._documentKeydownListener, captureEventListenerOptions);

              _document2.removeEventListener('mousedown', this._documentMousedownListener, captureEventListenerOptions);

              _document2.removeEventListener('touchstart', this._documentTouchstartListener, captureEventListenerOptions);

              _window5.removeEventListener('focus', this._windowFocusListener); // Clear timeouts for all potentially pending timeouts to prevent the leaks.


              clearTimeout(this._windowFocusTimeoutId);
              clearTimeout(this._touchTimeoutId);
              clearTimeout(this._originTimeoutId);
            }
          }
          /** Updates all the state on an element once its focus origin has changed. */

        }, {
          key: "_originChanged",
          value: function _originChanged(element, origin, elementInfo) {
            this._setClasses(element, origin);

            this._emitOrigin(elementInfo.subject, origin);

            this._lastFocusOrigin = origin;
          }
        }]);

        return FocusMonitor;
      }();

      FocusMonitor.ɵfac = function FocusMonitor_Factory(t) {
        return new (t || FocusMonitor)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__["Platform"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"], 8), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](FOCUS_MONITOR_DEFAULT_OPTIONS, 8));
      };

      FocusMonitor.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"])({
        factory: function FocusMonitor_Factory() {
          return new FocusMonitor(Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]), Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__["Platform"]), Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"], 8), Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(FOCUS_MONITOR_DEFAULT_OPTIONS, 8));
        },
        token: FocusMonitor,
        providedIn: "root"
      });

      FocusMonitor.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]
        }, {
          type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__["Platform"]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
            args: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]]
          }]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
            args: [FOCUS_MONITOR_DEFAULT_OPTIONS]
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](FocusMonitor, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"],
          args: [{
            providedIn: 'root'
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]
          }, {
            type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__["Platform"]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
              args: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]]
            }]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
              args: [FOCUS_MONITOR_DEFAULT_OPTIONS]
            }]
          }];
        }, null);
      })();
      /** Gets the target of an event, accounting for Shadow DOM. */


      function getTarget(event) {
        // If an event is bound outside the Shadow DOM, the `event.target` will
        // point to the shadow root so we have to use `composedPath` instead.
        return event.composedPath ? event.composedPath()[0] : event.target;
      }
      /**
       * Directive that determines how a particular element was focused (via keyboard, mouse, touch, or
       * programmatically) and adds corresponding classes to the element.
       *
       * There are two variants of this directive:
       * 1) cdkMonitorElementFocus: does not consider an element to be focused if one of its children is
       *    focused.
       * 2) cdkMonitorSubtreeFocus: considers an element focused if it or any of its children are focused.
       */


      var CdkMonitorFocus = /*#__PURE__*/function () {
        function CdkMonitorFocus(_elementRef, _focusMonitor) {
          _classCallCheck2(this, CdkMonitorFocus);

          this._elementRef = _elementRef;
          this._focusMonitor = _focusMonitor;
          this.cdkFocusChange = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
        }

        _createClass2(CdkMonitorFocus, [{
          key: "ngAfterViewInit",
          value: function ngAfterViewInit() {
            var _this688 = this;

            var element = this._elementRef.nativeElement;
            this._monitorSubscription = this._focusMonitor.monitor(element, element.nodeType === 1 && element.hasAttribute('cdkMonitorSubtreeFocus')).subscribe(function (origin) {
              return _this688.cdkFocusChange.emit(origin);
            });
          }
        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            this._focusMonitor.stopMonitoring(this._elementRef);

            if (this._monitorSubscription) {
              this._monitorSubscription.unsubscribe();
            }
          }
        }]);

        return CdkMonitorFocus;
      }();

      CdkMonitorFocus.ɵfac = function CdkMonitorFocus_Factory(t) {
        return new (t || CdkMonitorFocus)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](FocusMonitor));
      };

      CdkMonitorFocus.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineDirective"]({
        type: CdkMonitorFocus,
        selectors: [["", "cdkMonitorElementFocus", ""], ["", "cdkMonitorSubtreeFocus", ""]],
        outputs: {
          cdkFocusChange: "cdkFocusChange"
        }
      });

      CdkMonitorFocus.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]
        }, {
          type: FocusMonitor
        }];
      };

      CdkMonitorFocus.propDecorators = {
        cdkFocusChange: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](CdkMonitorFocus, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Directive"],
          args: [{
            selector: '[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]'
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]
          }, {
            type: FocusMonitor
          }];
        }, {
          cdkFocusChange: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
          }]
        });
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** CSS class applied to the document body when in black-on-white high-contrast mode. */


      var BLACK_ON_WHITE_CSS_CLASS = 'cdk-high-contrast-black-on-white';
      /** CSS class applied to the document body when in white-on-black high-contrast mode. */

      var WHITE_ON_BLACK_CSS_CLASS = 'cdk-high-contrast-white-on-black';
      /** CSS class applied to the document body when in high-contrast mode. */

      var HIGH_CONTRAST_MODE_ACTIVE_CSS_CLASS = 'cdk-high-contrast-active';
      /**
       * Service to determine whether the browser is currently in a high-contrast-mode environment.
       *
       * Microsoft Windows supports an accessibility feature called "High Contrast Mode". This mode
       * changes the appearance of all applications, including web applications, to dramatically increase
       * contrast.
       *
       * IE, Edge, and Firefox currently support this mode. Chrome does not support Windows High Contrast
       * Mode. This service does not detect high-contrast mode as added by the Chrome "High Contrast"
       * browser extension.
       */

      var HighContrastModeDetector = /*#__PURE__*/function () {
        function HighContrastModeDetector(_platform, document) {
          _classCallCheck2(this, HighContrastModeDetector);

          this._platform = _platform;
          this._document = document;
        }
        /** Gets the current high-contrast-mode for the page. */


        _createClass2(HighContrastModeDetector, [{
          key: "getHighContrastMode",
          value: function getHighContrastMode() {
            if (!this._platform.isBrowser) {
              return 0
              /* NONE */
              ;
            } // Create a test element with an arbitrary background-color that is neither black nor
            // white; high-contrast mode will coerce the color to either black or white. Also ensure that
            // appending the test element to the DOM does not affect layout by absolutely positioning it


            var testElement = this._document.createElement('div');

            testElement.style.backgroundColor = 'rgb(1,2,3)';
            testElement.style.position = 'absolute';

            this._document.body.appendChild(testElement); // Get the computed style for the background color, collapsing spaces to normalize between
            // browsers. Once we get this color, we no longer need the test element. Access the `window`
            // via the document so we can fake it in tests. Note that we have extra null checks, because
            // this logic will likely run during app bootstrap and throwing can break the entire app.


            var documentWindow = this._document.defaultView || window;
            var computedStyle = documentWindow && documentWindow.getComputedStyle ? documentWindow.getComputedStyle(testElement) : null;
            var computedColor = (computedStyle && computedStyle.backgroundColor || '').replace(/ /g, '');

            this._document.body.removeChild(testElement);

            switch (computedColor) {
              case 'rgb(0,0,0)':
                return 2
                /* WHITE_ON_BLACK */
                ;

              case 'rgb(255,255,255)':
                return 1
                /* BLACK_ON_WHITE */
                ;
            }

            return 0
            /* NONE */
            ;
          }
          /** Applies CSS classes indicating high-contrast mode to document body (browser-only). */

        }, {
          key: "_applyBodyHighContrastModeCssClasses",
          value: function _applyBodyHighContrastModeCssClasses() {
            if (this._platform.isBrowser && this._document.body) {
              var bodyClasses = this._document.body.classList; // IE11 doesn't support `classList` operations with multiple arguments

              bodyClasses.remove(HIGH_CONTRAST_MODE_ACTIVE_CSS_CLASS);
              bodyClasses.remove(BLACK_ON_WHITE_CSS_CLASS);
              bodyClasses.remove(WHITE_ON_BLACK_CSS_CLASS);
              var mode = this.getHighContrastMode();

              if (mode === 1
              /* BLACK_ON_WHITE */
              ) {
                bodyClasses.add(HIGH_CONTRAST_MODE_ACTIVE_CSS_CLASS);
                bodyClasses.add(BLACK_ON_WHITE_CSS_CLASS);
              } else if (mode === 2
              /* WHITE_ON_BLACK */
              ) {
                bodyClasses.add(HIGH_CONTRAST_MODE_ACTIVE_CSS_CLASS);
                bodyClasses.add(WHITE_ON_BLACK_CSS_CLASS);
              }
            }
          }
        }]);

        return HighContrastModeDetector;
      }();

      HighContrastModeDetector.ɵfac = function HighContrastModeDetector_Factory(t) {
        return new (t || HighContrastModeDetector)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__["Platform"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]));
      };

      HighContrastModeDetector.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"])({
        factory: function HighContrastModeDetector_Factory() {
          return new HighContrastModeDetector(Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__["Platform"]), Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]));
        },
        token: HighContrastModeDetector,
        providedIn: "root"
      });

      HighContrastModeDetector.ctorParameters = function () {
        return [{
          type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__["Platform"]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
            args: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]]
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](HighContrastModeDetector, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"],
          args: [{
            providedIn: 'root'
          }]
        }], function () {
          return [{
            type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__["Platform"]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
              args: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]]
            }]
          }];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var A11yModule = function A11yModule(highContrastModeDetector) {
        _classCallCheck2(this, A11yModule);

        highContrastModeDetector._applyBodyHighContrastModeCssClasses();
      };

      A11yModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineNgModule"]({
        type: A11yModule
      });
      A11yModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjector"]({
        factory: function A11yModule_Factory(t) {
          return new (t || A11yModule)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](HighContrastModeDetector));
        },
        imports: [[_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__["PlatformModule"], _angular_cdk_observers__WEBPACK_IMPORTED_MODULE_7__["ObserversModule"]]]
      });

      A11yModule.ctorParameters = function () {
        return [{
          type: HighContrastModeDetector
        }];
      };

      (function () {
        (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsetNgModuleScope"](A11yModule, {
          declarations: function declarations() {
            return [CdkAriaLive, CdkTrapFocus, CdkMonitorFocus];
          },
          imports: function imports() {
            return [_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__["PlatformModule"], _angular_cdk_observers__WEBPACK_IMPORTED_MODULE_7__["ObserversModule"]];
          },
          exports: function exports() {
            return [CdkAriaLive, CdkTrapFocus, CdkMonitorFocus];
          }
        });
      })();
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](A11yModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"],
          args: [{
            imports: [_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__["PlatformModule"], _angular_cdk_observers__WEBPACK_IMPORTED_MODULE_7__["ObserversModule"]],
            declarations: [CdkAriaLive, CdkTrapFocus, CdkMonitorFocus],
            exports: [CdkAriaLive, CdkTrapFocus, CdkMonitorFocus]
          }]
        }], function () {
          return [{
            type: HighContrastModeDetector
          }];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Generated bundle index. Do not edit.
       */
      //# sourceMappingURL=a11y.js.map

      /***/

    },

    /***/
    "YIOq": function YIOq(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony import */


      var _addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../../addLeadingZeros/index.js */
      "+7QN");
      /*
       * |     | Unit                           |     | Unit                           |
       * |-----|--------------------------------|-----|--------------------------------|
       * |  a  | AM, PM                         |  A* |                                |
       * |  d  | Day of month                   |  D  |                                |
       * |  h  | Hour [1-12]                    |  H  | Hour [0-23]                    |
       * |  m  | Minute                         |  M  | Month                          |
       * |  s  | Second                         |  S  | Fraction of second             |
       * |  y  | Year (abs)                     |  Y  |                                |
       *
       * Letters marked by * are not implemented but reserved by Unicode standard.
       */


      var formatters = {
        // Year
        y: function y(date, token) {
          // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_tokens
          // | Year     |     y | yy |   yyy |  yyyy | yyyyy |
          // |----------|-------|----|-------|-------|-------|
          // | AD 1     |     1 | 01 |   001 |  0001 | 00001 |
          // | AD 12    |    12 | 12 |   012 |  0012 | 00012 |
          // | AD 123   |   123 | 23 |   123 |  0123 | 00123 |
          // | AD 1234  |  1234 | 34 |  1234 |  1234 | 01234 |
          // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |
          var signedYear = date.getUTCFullYear(); // Returns 1 for 1 BC (which is year 0 in JavaScript)

          var year = signedYear > 0 ? signedYear : 1 - signedYear;
          return Object(_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(token === 'yy' ? year % 100 : year, token.length);
        },
        // Month
        M: function M(date, token) {
          var month = date.getUTCMonth();
          return token === 'M' ? String(month + 1) : Object(_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(month + 1, 2);
        },
        // Day of the month
        d: function d(date, token) {
          return Object(_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(date.getUTCDate(), token.length);
        },
        // AM or PM
        a: function a(date, token) {
          var dayPeriodEnumValue = date.getUTCHours() / 12 >= 1 ? 'pm' : 'am';

          switch (token) {
            case 'a':
            case 'aa':
            case 'aaa':
              return dayPeriodEnumValue.toUpperCase();

            case 'aaaaa':
              return dayPeriodEnumValue[0];

            case 'aaaa':
            default:
              return dayPeriodEnumValue === 'am' ? 'a.m.' : 'p.m.';
          }
        },
        // Hour [1-12]
        h: function h(date, token) {
          return Object(_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(date.getUTCHours() % 12 || 12, token.length);
        },
        // Hour [0-23]
        H: function H(date, token) {
          return Object(_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(date.getUTCHours(), token.length);
        },
        // Minute
        m: function m(date, token) {
          return Object(_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(date.getUTCMinutes(), token.length);
        },
        // Second
        s: function s(date, token) {
          return Object(_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(date.getUTCSeconds(), token.length);
        },
        // Fraction of second
        S: function S(date, token) {
          var numberOfDigits = token.length;
          var milliseconds = date.getUTCMilliseconds();
          var fractionalSeconds = Math.floor(milliseconds * Math.pow(10, numberOfDigits - 3));
          return Object(_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(fractionalSeconds, token.length);
        }
      };
      /* harmony default export */

      __webpack_exports__["default"] = formatters;
      /***/
    },

    /***/
    "YOOs": function YOOs(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return startOfYesterday;
      });
      /**
       * @name startOfYesterday
       * @category Day Helpers
       * @summary Return the start of yesterday.
       * @pure false
       *
       * @description
       * Return the start of yesterday.
       *
       * > ⚠️ Please note that this function is not present in the FP submodule as
       * > it uses `new Date()` internally hence impure and can't be safely curried.
       *
       * ### 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).
       *
       * @returns {Date} the start of yesterday
       *
       * @example
       * // If today is 6 October 2014:
       * var result = startOfYesterday()
       * //=> Sun Oct 5 2014 00:00:00
       */


      function startOfYesterday() {
        var now = new Date();
        var year = now.getFullYear();
        var month = now.getMonth();
        var day = now.getDate();
        var date = new Date(0);
        date.setFullYear(year, month, day - 1);
        date.setHours(0, 0, 0, 0);
        return date;
      }
      /***/

    },

    /***/
    "YOv4": function YOv4(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return endOfTomorrow;
      });
      /**
       * @name endOfTomorrow
       * @category Day Helpers
       * @summary Return the end of tomorrow.
       * @pure false
       *
       * @description
       * Return the end of tomorrow.
       *
       * > ⚠️ Please note that this function is not present in the FP submodule as
       * > it uses `new Date()` internally hence impure and can't be safely curried.
       *
       * ### 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).
       *
       * @returns {Date} the end of tomorrow
       *
       * @example
       * // If today is 6 October 2014:
       * var result = endOfTomorrow()
       * //=> Tue Oct 7 2014 23:59:59.999
       */


      function endOfTomorrow() {
        var now = new Date();
        var year = now.getFullYear();
        var month = now.getMonth();
        var day = now.getDate();
        var date = new Date(0);
        date.setFullYear(year, month, day + 1);
        date.setHours(23, 59, 59, 999);
        return date;
      }
      /***/

    },

    /***/
    "YRex": function YRex(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Uyghur (China) [ug-cn]
      //! author: boyaq : https://github.com/boyaq
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var ugCn = moment.defineLocale('ug-cn', {
          months: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split('_'),
          monthsShort: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split('_'),
          weekdays: 'يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە'.split('_'),
          weekdaysShort: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),
          weekdaysMin: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'YYYY-MM-DD',
            LL: 'YYYY-يىلىM-ئاينىڭD-كۈنى',
            LLL: 'YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm',
            LLLL: 'dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm'
          },
          meridiemParse: /يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,
          meridiemHour: function meridiemHour(hour, meridiem) {
            if (hour === 12) {
              hour = 0;
            }

            if (meridiem === 'يېرىم كېچە' || meridiem === 'سەھەر' || meridiem === 'چۈشتىن بۇرۇن') {
              return hour;
            } else if (meridiem === 'چۈشتىن كېيىن' || meridiem === 'كەچ') {
              return hour + 12;
            } else {
              return hour >= 11 ? hour : hour + 12;
            }
          },
          meridiem: function meridiem(hour, minute, isLower) {
            var hm = hour * 100 + minute;

            if (hm < 600) {
              return 'يېرىم كېچە';
            } else if (hm < 900) {
              return 'سەھەر';
            } else if (hm < 1130) {
              return 'چۈشتىن بۇرۇن';
            } else if (hm < 1230) {
              return 'چۈش';
            } else if (hm < 1800) {
              return 'چۈشتىن كېيىن';
            } else {
              return 'كەچ';
            }
          },
          calendar: {
            sameDay: '[بۈگۈن سائەت] LT',
            nextDay: '[ئەتە سائەت] LT',
            nextWeek: '[كېلەركى] dddd [سائەت] LT',
            lastDay: '[تۆنۈگۈن] LT',
            lastWeek: '[ئالدىنقى] dddd [سائەت] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: '%s كېيىن',
            past: '%s بۇرۇن',
            s: 'نەچچە سېكونت',
            ss: '%d سېكونت',
            m: 'بىر مىنۇت',
            mm: '%d مىنۇت',
            h: 'بىر سائەت',
            hh: '%d سائەت',
            d: 'بىر كۈن',
            dd: '%d كۈن',
            M: 'بىر ئاي',
            MM: '%d ئاي',
            y: 'بىر يىل',
            yy: '%d يىل'
          },
          dayOfMonthOrdinalParse: /\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,
          ordinal: function ordinal(number, period) {
            switch (period) {
              case 'd':
              case 'D':
              case 'DDD':
                return number + '-كۈنى';

              case 'w':
              case 'W':
                return number + '-ھەپتە';

              default:
                return number;
            }
          },
          preparse: function preparse(string) {
            return string.replace(/،/g, ',');
          },
          postformat: function postformat(string) {
            return string.replace(/,/g, '،');
          },
          week: {
            // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
            dow: 1,
            // Monday is the first day of the week.
            doy: 7 // The week that contains Jan 1st is the first week of the year.

          }
        });
        return ugCn;
      });
      /***/

    },

    /***/
    "YTra": function YTra(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return isWithinInterval;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name isWithinInterval
       * @category Interval Helpers
       * @summary Is the given date within the interval?
       *
       * @description
       * Is the given date within the interval? (Including start and end.)
       *
       * ### 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).
       *
       * - The function was renamed from `isWithinRange` to `isWithinInterval`.
       *   This change was made to mirror the use of the word "interval" in standard ISO 8601:2004 terminology:
       *
       *   ```
       *   2.1.3
       *   time interval
       *   part of the time axis limited by two instants
       *   ```
       *
       *   Also, this function now accepts an object with `start` and `end` properties
       *   instead of two arguments as an interval.
       *   This function now throws `RangeError` if the start of the interval is after its end
       *   or if any date in the interval is `Invalid Date`.
       *
       *   ```javascript
       *   // Before v2.0.0
       *
       *   isWithinRange(
       *     new Date(2014, 0, 3),
       *     new Date(2014, 0, 1), new Date(2014, 0, 7)
       *   )
       *
       *   // v2.0.0 onward
       *
       *   isWithinInterval(
       *     new Date(2014, 0, 3),
       *     { start: new Date(2014, 0, 1), end: new Date(2014, 0, 7) }
       *   )
       *   ```
       *
       * @param {Date|Number} date - the date to check
       * @param {Interval} interval - the interval to check
       * @returns {Boolean} the date is within the interval
       * @throws {TypeError} 2 arguments required
       * @throws {RangeError} The start of an interval cannot be after its end
       * @throws {RangeError} Date in interval cannot be `Invalid Date`
       *
       * @example
       * // For the date within the interval:
       * isWithinInterval(new Date(2014, 0, 3), {
       *   start: new Date(2014, 0, 1),
       *   end: new Date(2014, 0, 7)
       * })
       * //=> true
       *
       * @example
       * // For the date outside of the interval:
       * isWithinInterval(new Date(2014, 0, 10), {
       *   start: new Date(2014, 0, 1),
       *   end: new Date(2014, 0, 7)
       * })
       * //=> false
       *
       * @example
       * // For date equal to interval start:
       * isWithinInterval(date, { start, end: date }) // => true
       *
       * @example
       * // For date equal to interval end:
       * isWithinInterval(date, { start: date, end }) // => true
       */


      function isWithinInterval(dirtyDate, dirtyInterval) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(2, arguments);
        var interval = dirtyInterval || {};
        var time = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate).getTime();
        var startTime = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(interval.start).getTime();
        var endTime = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(interval.end).getTime(); // Throw an exception if start date is after end date or if any date is `Invalid Date`

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

        return time >= startTime && time <= endTime;
      }
      /***/

    },

    /***/
    "YdWM": function YdWM(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return eachWeekendOfInterval;
      });
      /* harmony import */


      var _eachDayOfInterval_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../eachDayOfInterval/index.js */
      "/rh5");
      /* harmony import */


      var _isSunday_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../isSunday/index.js */
      "hW07");
      /* harmony import */


      var _isWeekend_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../isWeekend/index.js */
      "gLRL");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name eachWeekendOfInterval
       * @category Interval Helpers
       * @summary List all the Saturdays and Sundays in the given date interval.
       *
       * @description
       * Get all the Saturdays and Sundays in the given date interval.
       *
       * @param {Interval} interval - the given interval. See [Interval]{@link docs/types/Interval}
       * @returns {Date[]} an array containing all the Saturdays and Sundays
       * @throws {TypeError} 1 argument required
       * @throws {RangeError} The start of an interval cannot be after its end
       * @throws {RangeError} Date in interval cannot be `Invalid Date`
       *
       * @example
       * // Lists all Saturdays and Sundays in the given date interval
       * var result = eachWeekendOfInterval({
       *   start: new Date(2018, 8, 17),
       *   end: new Date(2018, 8, 30)
       * })
       * //=> [
       * //   Sat Sep 22 2018 00:00:00,
       * //   Sun Sep 23 2018 00:00:00,
       * //   Sat Sep 29 2018 00:00:00,
       * //   Sun Sep 30 2018 00:00:00
       * // ]
       */


      function eachWeekendOfInterval(interval) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(1, arguments);
        var dateInterval = Object(_eachDayOfInterval_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(interval);
        var weekends = [];
        var index = 0;

        while (index < dateInterval.length) {
          var date = dateInterval[index++];

          if (Object(_isWeekend_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(date)) {
            weekends.push(date);
            if (Object(_isSunday_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(date)) index = index + 5;
          }
        }

        return weekends;
      }
      /***/

    },

    /***/
    "Ylt2": function Ylt2(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "SubjectSubscription", function () {
        return SubjectSubscription;
      });
      /* harmony import */


      var _Subscription__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ./Subscription */
      "quSY");

      var SubjectSubscription = /*#__PURE__*/function (_Subscription__WEBPAC4) {
        _inherits2(SubjectSubscription, _Subscription__WEBPAC4);

        var _super350 = _createSuper2(SubjectSubscription);

        function SubjectSubscription(subject, subscriber) {
          var _this689;

          _classCallCheck2(this, SubjectSubscription);

          _this689 = _super350.call(this);
          _this689.subject = subject;
          _this689.subscriber = subscriber;
          _this689.closed = false;
          return _this689;
        }

        _createClass2(SubjectSubscription, [{
          key: "unsubscribe",
          value: function unsubscribe() {
            if (this.closed) {
              return;
            }

            this.closed = true;
            var subject = this.subject;
            var observers = subject.observers;
            this.subject = null;

            if (!observers || observers.length === 0 || subject.isStopped || subject.closed) {
              return;
            }

            var subscriberIndex = observers.indexOf(this.subscriber);

            if (subscriberIndex !== -1) {
              observers.splice(subscriberIndex, 1);
            }
          }
        }]);

        return SubjectSubscription;
      }(_Subscription__WEBPACK_IMPORTED_MODULE_0__["Subscription"]); //# sourceMappingURL=SubjectSubscription.js.map

      /***/

    },

    /***/
    "Yml6": function Yml6(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵngrx_modules_effects_effects_a", function () {
        return getSourceMetadata;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵngrx_modules_effects_effects_c", function () {
        return _provideForRootGuard;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵngrx_modules_effects_effects_b", function () {
        return createSourceInstances;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵngrx_modules_effects_effects_g", function () {
        return EffectsRunner;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵngrx_modules_effects_effects_f", function () {
        return FEATURE_EFFECTS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵngrx_modules_effects_effects_e", function () {
        return ROOT_EFFECTS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵngrx_modules_effects_effects_d", function () {
        return _ROOT_EFFECTS_GUARD;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "createEffect", function () {
        return createEffect;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Effect", function () {
        return Effect;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "getEffectsMetadata", function () {
        return getEffectsMetadata;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "mergeEffects", function () {
        return mergeEffects;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Actions", function () {
        return Actions;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ofType", function () {
        return ofType;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "EffectsModule", function () {
        return EffectsModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "EffectSources", function () {
        return EffectSources;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "EffectsFeatureModule", function () {
        return EffectsFeatureModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ROOT_EFFECTS_INIT", function () {
        return ROOT_EFFECTS_INIT;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "rootEffectsInit", function () {
        return rootEffectsInit;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "EffectsRootModule", function () {
        return EffectsRootModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "act", function () {
        return act;
      });
      /* harmony import */


      var _ngrx_store__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @ngrx/store */
      "DQLy");
      /* harmony import */


      var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! rxjs */
      "qCKp");
      /* harmony import */


      var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! rxjs/operators */
      "kU1M");
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /**
       * @license NgRx 8.6.0
       * (c) 2015-2018 Brandon Roberts, Mike Ryan, Rob Wormald, Victor Savkin
       * License: MIT
       */

      /**
       * @fileoverview added by tsickle
       * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /** @type {?} */


      var DEFAULT_EFFECT_CONFIG = {
        dispatch: true,
        resubscribeOnError: true
      };
      /** @type {?} */

      var CREATE_EFFECT_METADATA_KEY = '__@ngrx/effects_create__';
      /**
       * @fileoverview added by tsickle
       * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * \@description
       * Creates an effect from an `Observable` and an `EffectConfig`.
       *
       * \@usageNotes
       *
       * ** Mapping to a different action **
       * ```ts
       * effectName$ = createEffect(
       *   () => this.actions$.pipe(
       *     ofType(FeatureActions.actionOne),
       *     map(() => FeatureActions.actionTwo())
       *   )
       * );
       * ```
       *
       *  ** Non-dispatching effects **
       * ```ts
       * effectName$ = createEffect(
       *   () => this.actions$.pipe(
       *     ofType(FeatureActions.actionOne),
       *     tap(() => console.log('Action One Dispatched'))
       *   ),
       *   { dispatch: false }
       *   // FeatureActions.actionOne is not dispatched
       * );
       * ```
       * @template C, DT, OT, R
       * @param {?} source A function which returns an `Observable`.
       * @param {?=} config A `Partial<EffectConfig>` to configure the effect.  By default, `dispatch` is true and `resubscribeOnError` is true.
       * @return {?} If `EffectConfig`#`dispatch` is true, returns `Observable<Action>`.  Else, returns `Observable<unknown>`.
       *
       */

      function createEffect(source, config) {
        /** @type {?} */
        var effect = source();
        /** @type {?} */

        var value = Object.assign({}, DEFAULT_EFFECT_CONFIG, config);
        Object.defineProperty(effect, CREATE_EFFECT_METADATA_KEY, {
          value: value
        });
        return effect;
      }
      /**
       * @template T
       * @param {?} instance
       * @return {?}
       */


      function getCreateEffectMetadata(instance) {
        /** @type {?} */
        var propertyNames = Object.getOwnPropertyNames(instance);
        /** @type {?} */

        var metadata = propertyNames.filter(
        /**
        * @param {?} propertyName
        * @return {?}
        */
        function (propertyName) {
          return instance[propertyName] && instance[propertyName].hasOwnProperty(CREATE_EFFECT_METADATA_KEY);
        }).map(
        /**
        * @param {?} propertyName
        * @return {?}
        */
        function (propertyName) {
          /** @type {?} */
          var metaData = instance[propertyName][CREATE_EFFECT_METADATA_KEY];
          return Object.assign({
            propertyName: propertyName
          }, metaData);
        });
        return metadata;
      }
      /**
       * @fileoverview added by tsickle
       * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * @template T
       * @param {?} instance
       * @return {?}
       */


      function getSourceForInstance(instance) {
        return Object.getPrototypeOf(instance);
      }
      /**
       * @fileoverview added by tsickle
       * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /** @type {?} */


      var METADATA_KEY = '__@ngrx/effects__';
      /**
       * @param {?=} config
       * @return {?}
       */

      function Effect() {
        var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
        return (
          /**
          * @template T, K
          * @param {?} target
          * @param {?} propertyName
          * @return {?}
          */
          function (target, propertyName) {
            /** @type {?} */
            var metadata = Object.assign({}, DEFAULT_EFFECT_CONFIG, config, {
              // Overrides any defaults if values are provided
              propertyName: propertyName
            });
            addEffectMetadataEntry(target, metadata);
          }
        );
      }
      /**
       * @template T
       * @param {?} instance
       * @return {?}
       */


      function getEffectDecoratorMetadata(instance) {
        /** @type {?} */
        var effectsDecorators = Object(_ngrx_store__WEBPACK_IMPORTED_MODULE_0__["compose"])(getEffectMetadataEntries, getSourceForInstance)(instance);
        return effectsDecorators;
      }
      /**
       * Type guard to detemine whether METADATA_KEY is already present on the Class
       * constructor
       * @template T
       * @param {?} sourceProto
       * @return {?}
       */


      function hasMetadataEntries(sourceProto) {
        return sourceProto.constructor.hasOwnProperty(METADATA_KEY);
      }
      /**
       * Add Effect Metadata to the Effect Class constructor under specific key
       * @template T
       * @param {?} sourceProto
       * @param {?} metadata
       * @return {?}
       */


      function addEffectMetadataEntry(sourceProto, metadata) {
        if (hasMetadataEntries(sourceProto)) {
          sourceProto.constructor[METADATA_KEY].push(metadata);
        } else {
          Object.defineProperty(sourceProto.constructor, METADATA_KEY, {
            value: [metadata]
          });
        }
      }
      /**
       * @template T
       * @param {?} sourceProto
       * @return {?}
       */


      function getEffectMetadataEntries(sourceProto) {
        return hasMetadataEntries(sourceProto) ? sourceProto.constructor[METADATA_KEY] : [];
      }
      /**
       * @fileoverview added by tsickle
       * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * @template T
       * @param {?} instance
       * @return {?}
       */


      function getEffectsMetadata(instance) {
        return getSourceMetadata(instance).reduce(
        /**
        * @param {?} acc
        * @param {?} __1
        * @return {?}
        */
        function (acc, _ref82) {
          var propertyName = _ref82.propertyName,
              dispatch = _ref82.dispatch,
              resubscribeOnError = _ref82.resubscribeOnError;
          acc[propertyName] = {
            dispatch: dispatch,
            resubscribeOnError: resubscribeOnError
          };
          return acc;
        }, {});
      }
      /**
       * @template T
       * @param {?} instance
       * @return {?}
       */


      function getSourceMetadata(instance) {
        /** @type {?} */
        var effects = [getEffectDecoratorMetadata, getCreateEffectMetadata];
        return effects.reduce(
        /**
        * @param {?} sources
        * @param {?} source
        * @return {?}
        */
        function (sources, source) {
          return sources.concat(source(instance));
        }, []);
      }
      /**
       * @fileoverview added by tsickle
       * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * @param {?} sourceInstance
       * @param {?=} errorHandler
       * @return {?}
       */


      function mergeEffects(sourceInstance, errorHandler) {
        /** @type {?} */
        var sourceName = getSourceForInstance(sourceInstance).constructor.name;
        /** @type {?} */

        var observables$ = getSourceMetadata(sourceInstance).map(
        /**
        * @param {?} __0
        * @return {?}
        */
        function (_ref83) {
          var propertyName = _ref83.propertyName,
              dispatch = _ref83.dispatch,
              resubscribeOnError = _ref83.resubscribeOnError;

          /** @type {?} */
          var observable$ = typeof sourceInstance[propertyName] === 'function' ? sourceInstance[propertyName]() : sourceInstance[propertyName];
          /** @type {?} */

          var resubscribable$ = resubscribeOnError ? resubscribeInCaseOfError(observable$, errorHandler) : observable$;

          if (dispatch === false) {
            return resubscribable$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["ignoreElements"])());
          }
          /** @type {?} */


          var materialized$ = resubscribable$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["materialize"])());
          return materialized$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])(
          /**
          * @param {?} notification
          * @return {?}
          */
          function (notification) {
            return {
              effect: sourceInstance[propertyName],
              notification: notification,
              propertyName: propertyName,
              sourceName: sourceName,
              sourceInstance: sourceInstance
            };
          }));
        });
        return Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["merge"]).apply(void 0, _toConsumableArray(observables$));
      }
      /**
       * @template T
       * @param {?} observable$
       * @param {?=} errorHandler
       * @return {?}
       */


      function resubscribeInCaseOfError(observable$, errorHandler) {
        return observable$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(
        /**
        * @param {?} error
        * @return {?}
        */
        function (error) {
          if (errorHandler) errorHandler.handleError(error); // Return observable that produces this particular effect

          return resubscribeInCaseOfError(observable$, errorHandler);
        }));
      }
      /**
       * @fileoverview added by tsickle
       * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * @template V
       */


      var Actions = /*#__PURE__*/function (_rxjs__WEBPACK_IMPORT9) {
        _inherits2(Actions, _rxjs__WEBPACK_IMPORT9);

        var _super351 = _createSuper2(Actions);

        /**
         * @param {?=} source
         */
        function Actions(source) {
          var _this690;

          _classCallCheck2(this, Actions);

          _this690 = _super351.call(this);

          if (source) {
            _this690.source = source;
          }

          return _this690;
        }
        /**
         * @template R
         * @param {?} operator
         * @return {?}
         */


        _createClass2(Actions, [{
          key: "lift",
          value: function lift(operator) {
            /** @type {?} */
            var observable = new Actions();
            observable.source = this;
            observable.operator = operator;
            return observable;
          }
        }]);

        return Actions;
      }(rxjs__WEBPACK_IMPORTED_MODULE_1__["Observable"]);

      Actions.ɵfac = function Actions_Factory(t) {
        return new (t || Actions)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"](_ngrx_store__WEBPACK_IMPORTED_MODULE_0__["ScannedActionsSubject"]));
      };

      Actions.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineInjectable"]({
        token: Actions,
        factory: Actions.ɵfac
      });
      /** @nocollapse */

      Actions.ctorParameters = function () {
        return [{
          type: rxjs__WEBPACK_IMPORTED_MODULE_1__["Observable"],
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"],
            args: [_ngrx_store__WEBPACK_IMPORTED_MODULE_0__["ScannedActionsSubject"]]
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](Actions, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Injectable"]
        }], function () {
          return [{
            type: rxjs__WEBPACK_IMPORTED_MODULE_1__["Observable"],
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"],
              args: [_ngrx_store__WEBPACK_IMPORTED_MODULE_0__["ScannedActionsSubject"]]
            }]
          }];
        }, null);
      })();
      /**
       * @param {...?} allowedTypes
       * @return {?}
       */


      function ofType() {
        for (var _len62 = arguments.length, allowedTypes = new Array(_len62), _key64 = 0; _key64 < _len62; _key64++) {
          allowedTypes[_key64] = arguments[_key64];
        }

        return Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["filter"])(
        /**
        * @param {?} action
        * @return {?}
        */
        function (action) {
          return allowedTypes.some(
          /**
          * @param {?} typeOrActionCreator
          * @return {?}
          */
          function (typeOrActionCreator) {
            if (typeof typeOrActionCreator === 'string') {
              // Comparing the string to type
              return typeOrActionCreator === action.type;
            } // We are filtering by ActionCreator


            return typeOrActionCreator.type === action.type;
          });
        });
      }
      /**
       * @fileoverview added by tsickle
       * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * @param {?} output
       * @param {?} reporter
       * @return {?}
       */


      function reportInvalidActions(output, reporter) {
        if (output.notification.kind === 'N') {
          /** @type {?} */
          var action = output.notification.value;
          /** @type {?} */

          var isInvalidAction = !isAction(action);

          if (isInvalidAction) {
            reporter.handleError(new Error("Effect ".concat(getEffectName(output), " dispatched an invalid action: ").concat(stringify(action))));
          }
        }
      }
      /**
       * @param {?} action
       * @return {?}
       */


      function isAction(action) {
        return typeof action !== 'function' && action && action.type && typeof action.type === 'string';
      }
      /**
       * @param {?} __0
       * @return {?}
       */


      function getEffectName(_ref84) {
        var propertyName = _ref84.propertyName,
            sourceInstance = _ref84.sourceInstance,
            sourceName = _ref84.sourceName;

        /** @type {?} */
        var isMethod = typeof sourceInstance[propertyName] === 'function';
        return "\"".concat(sourceName, ".").concat(String(propertyName)).concat(isMethod ? '()' : '', "\"");
      }
      /**
       * @param {?} action
       * @return {?}
       */


      function stringify(action) {
        try {
          return JSON.stringify(action);
        } catch (_a) {
          return action;
        }
      }
      /**
       * @fileoverview added by tsickle
       * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /** @type {?} */


      var onIdentifyEffectsKey = 'ngrxOnIdentifyEffects';
      /** @type {?} */

      var onRunEffectsKey = 'ngrxOnRunEffects';
      /** @type {?} */

      var onInitEffects = 'ngrxOnInitEffects';
      /**
       * @fileoverview added by tsickle
       * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      var EffectSources = /*#__PURE__*/function (_rxjs__WEBPACK_IMPORT10) {
        _inherits2(EffectSources, _rxjs__WEBPACK_IMPORT10);

        var _super352 = _createSuper2(EffectSources);

        /**
         * @param {?} errorHandler
         * @param {?} store
         */
        function EffectSources(errorHandler, store) {
          var _this691;

          _classCallCheck2(this, EffectSources);

          _this691 = _super352.call(this);
          _this691.errorHandler = errorHandler;
          _this691.store = store;
          return _this691;
        }
        /**
         * @param {?} effectSourceInstance
         * @return {?}
         */


        _createClass2(EffectSources, [{
          key: "addEffects",
          value: function addEffects(effectSourceInstance) {
            this.next(effectSourceInstance);

            if (onInitEffects in effectSourceInstance && typeof effectSourceInstance[onInitEffects] === 'function') {
              this.store.dispatch(effectSourceInstance[onInitEffects]());
            }
          }
          /**
           * \@internal
           * @return {?}
           */

        }, {
          key: "toActions",
          value: function toActions() {
            var _this692 = this;

            return this.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["groupBy"])(getSourceForInstance), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["mergeMap"])(
            /**
            * @param {?} source$
            * @return {?}
            */
            function (source$) {
              return source$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["groupBy"])(effectsInstance));
            }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["mergeMap"])(
            /**
            * @param {?} source$
            * @return {?}
            */
            function (source$) {
              return source$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["exhaustMap"])(resolveEffectSource(_this692.errorHandler)), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])(
              /**
              * @param {?} output
              * @return {?}
              */
              function (output) {
                reportInvalidActions(output, _this692.errorHandler);
                return output.notification;
              }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["filter"])(
              /**
              * @param {?} notification
              * @return {?}
              */
              function (notification) {
                return notification.kind === 'N';
              }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["dematerialize"])());
            }));
          }
        }]);

        return EffectSources;
      }(rxjs__WEBPACK_IMPORTED_MODULE_1__["Subject"]);

      EffectSources.ɵfac = function EffectSources_Factory(t) {
        return new (t || EffectSources)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"](_ngrx_store__WEBPACK_IMPORTED_MODULE_0__["Store"]));
      };

      EffectSources.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineInjectable"]({
        token: EffectSources,
        factory: EffectSources.ɵfac
      });
      /** @nocollapse */

      EffectSources.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"]
        }, {
          type: _ngrx_store__WEBPACK_IMPORTED_MODULE_0__["Store"]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](EffectSources, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Injectable"]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"]
          }, {
            type: _ngrx_store__WEBPACK_IMPORTED_MODULE_0__["Store"]
          }];
        }, null);
      })();
      /**
       * @param {?} sourceInstance
       * @return {?}
       */


      function effectsInstance(sourceInstance) {
        if (onIdentifyEffectsKey in sourceInstance && typeof sourceInstance[onIdentifyEffectsKey] === 'function') {
          return sourceInstance[onIdentifyEffectsKey]();
        }

        return '';
      }
      /**
       * @param {?} errorHandler
       * @return {?}
       */


      function resolveEffectSource(errorHandler) {
        return (
          /**
          * @param {?} sourceInstance
          * @return {?}
          */
          function (sourceInstance) {
            /** @type {?} */
            var mergedEffects$ = mergeEffects(sourceInstance, errorHandler);

            if (isOnRunEffects(sourceInstance)) {
              return sourceInstance.ngrxOnRunEffects(mergedEffects$);
            }

            return mergedEffects$;
          }
        );
      }
      /**
       * @param {?} sourceInstance
       * @return {?}
       */


      function isOnRunEffects(sourceInstance) {
        /** @type {?} */
        var source = getSourceForInstance(sourceInstance);
        return onRunEffectsKey in source && typeof source[onRunEffectsKey] === 'function';
      }
      /**
       * @fileoverview added by tsickle
       * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /** @type {?} */


      var _ROOT_EFFECTS_GUARD = new _angular_core__WEBPACK_IMPORTED_MODULE_3__["InjectionToken"]('@ngrx/effects Internal Root Guard');
      /** @type {?} */


      var IMMEDIATE_EFFECTS = new _angular_core__WEBPACK_IMPORTED_MODULE_3__["InjectionToken"]('ngrx/effects: Immediate Effects');
      /** @type {?} */

      var ROOT_EFFECTS = new _angular_core__WEBPACK_IMPORTED_MODULE_3__["InjectionToken"]('ngrx/effects: Root Effects');
      /** @type {?} */

      var FEATURE_EFFECTS = new _angular_core__WEBPACK_IMPORTED_MODULE_3__["InjectionToken"]('ngrx/effects: Feature Effects');
      /**
       * @fileoverview added by tsickle
       * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      var EffectsRunner = /*#__PURE__*/function () {
        /**
         * @param {?} effectSources
         * @param {?} store
         */
        function EffectsRunner(effectSources, store) {
          _classCallCheck2(this, EffectsRunner);

          this.effectSources = effectSources;
          this.store = store;
          this.effectsSubscription = null;
        }
        /**
         * @return {?}
         */


        _createClass2(EffectsRunner, [{
          key: "start",
          value: function start() {
            if (!this.effectsSubscription) {
              this.effectsSubscription = this.effectSources.toActions().subscribe(this.store);
            }
          }
          /**
           * @return {?}
           */

        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            if (this.effectsSubscription) {
              this.effectsSubscription.unsubscribe();
              this.effectsSubscription = null;
            }
          }
        }]);

        return EffectsRunner;
      }();

      EffectsRunner.ɵfac = function EffectsRunner_Factory(t) {
        return new (t || EffectsRunner)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"](EffectSources), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"](_ngrx_store__WEBPACK_IMPORTED_MODULE_0__["Store"]));
      };

      EffectsRunner.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineInjectable"]({
        token: EffectsRunner,
        factory: EffectsRunner.ɵfac
      });
      /** @nocollapse */

      EffectsRunner.ctorParameters = function () {
        return [{
          type: EffectSources
        }, {
          type: _ngrx_store__WEBPACK_IMPORTED_MODULE_0__["Store"]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](EffectsRunner, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Injectable"]
        }], function () {
          return [{
            type: EffectSources
          }, {
            type: _ngrx_store__WEBPACK_IMPORTED_MODULE_0__["Store"]
          }];
        }, null);
      })();
      /**
       * @fileoverview added by tsickle
       * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /** @type {?} */


      var ROOT_EFFECTS_INIT = '@ngrx/effects/init';
      /** @type {?} */

      var rootEffectsInit = Object(_ngrx_store__WEBPACK_IMPORTED_MODULE_0__["createAction"])(ROOT_EFFECTS_INIT);

      var EffectsRootModule = /*#__PURE__*/function () {
        /**
         * @param {?} sources
         * @param {?} runner
         * @param {?} store
         * @param {?} rootEffects
         * @param {?} storeRootModule
         * @param {?} storeFeatureModule
         * @param {?} guard
         */
        function EffectsRootModule(sources, runner, store, rootEffects, storeRootModule, storeFeatureModule, guard) {
          _classCallCheck2(this, EffectsRootModule);

          this.sources = sources;
          runner.start();
          rootEffects.forEach(
          /**
          * @param {?} effectSourceInstance
          * @return {?}
          */
          function (effectSourceInstance) {
            return sources.addEffects(effectSourceInstance);
          });
          store.dispatch({
            type: ROOT_EFFECTS_INIT
          });
        }
        /**
         * @param {?} effectSourceInstance
         * @return {?}
         */


        _createClass2(EffectsRootModule, [{
          key: "addEffects",
          value: function addEffects(effectSourceInstance) {
            this.sources.addEffects(effectSourceInstance);
          }
        }]);

        return EffectsRootModule;
      }();

      EffectsRootModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineNgModule"]({
        type: EffectsRootModule
      });
      EffectsRootModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineInjector"]({
        factory: function EffectsRootModule_Factory(t) {
          return new (t || EffectsRootModule)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"](EffectSources), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"](EffectsRunner), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"](_ngrx_store__WEBPACK_IMPORTED_MODULE_0__["Store"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"](ROOT_EFFECTS), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"](_ngrx_store__WEBPACK_IMPORTED_MODULE_0__["StoreRootModule"], 8), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"](_ngrx_store__WEBPACK_IMPORTED_MODULE_0__["StoreFeatureModule"], 8), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"](_ROOT_EFFECTS_GUARD, 8));
        }
      });
      /** @nocollapse */

      EffectsRootModule.ctorParameters = function () {
        return [{
          type: EffectSources
        }, {
          type: EffectsRunner
        }, {
          type: _ngrx_store__WEBPACK_IMPORTED_MODULE_0__["Store"]
        }, {
          type: Array,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"],
            args: [ROOT_EFFECTS]
          }]
        }, {
          type: _ngrx_store__WEBPACK_IMPORTED_MODULE_0__["StoreRootModule"],
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"]
          }]
        }, {
          type: _ngrx_store__WEBPACK_IMPORTED_MODULE_0__["StoreFeatureModule"],
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"]
          }]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"],
            args: [_ROOT_EFFECTS_GUARD]
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](EffectsRootModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["NgModule"],
          args: [{}]
        }], function () {
          return [{
            type: EffectSources
          }, {
            type: EffectsRunner
          }, {
            type: _ngrx_store__WEBPACK_IMPORTED_MODULE_0__["Store"]
          }, {
            type: Array,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"],
              args: [ROOT_EFFECTS]
            }]
          }, {
            type: _ngrx_store__WEBPACK_IMPORTED_MODULE_0__["StoreRootModule"],
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"]
            }]
          }, {
            type: _ngrx_store__WEBPACK_IMPORTED_MODULE_0__["StoreFeatureModule"],
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"]
            }]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"],
              args: [_ROOT_EFFECTS_GUARD]
            }]
          }];
        }, null);
      })();
      /**
       * @fileoverview added by tsickle
       * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */


      var EffectsFeatureModule =
      /**
       * @param {?} root
       * @param {?} effectSourceGroups
       * @param {?} storeRootModule
       * @param {?} storeFeatureModule
       */
      function EffectsFeatureModule(root, effectSourceGroups, storeRootModule, storeFeatureModule) {
        _classCallCheck2(this, EffectsFeatureModule);

        effectSourceGroups.forEach(
        /**
        * @param {?} group
        * @return {?}
        */
        function (group) {
          return group.forEach(
          /**
          * @param {?} effectSourceInstance
          * @return {?}
          */
          function (effectSourceInstance) {
            return root.addEffects(effectSourceInstance);
          });
        });
      };

      EffectsFeatureModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineNgModule"]({
        type: EffectsFeatureModule
      });
      EffectsFeatureModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineInjector"]({
        factory: function EffectsFeatureModule_Factory(t) {
          return new (t || EffectsFeatureModule)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"](EffectsRootModule), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"](FEATURE_EFFECTS), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"](_ngrx_store__WEBPACK_IMPORTED_MODULE_0__["StoreRootModule"], 8), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"](_ngrx_store__WEBPACK_IMPORTED_MODULE_0__["StoreFeatureModule"], 8));
        }
      });
      /** @nocollapse */

      EffectsFeatureModule.ctorParameters = function () {
        return [{
          type: EffectsRootModule
        }, {
          type: Array,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"],
            args: [FEATURE_EFFECTS]
          }]
        }, {
          type: _ngrx_store__WEBPACK_IMPORTED_MODULE_0__["StoreRootModule"],
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"]
          }]
        }, {
          type: _ngrx_store__WEBPACK_IMPORTED_MODULE_0__["StoreFeatureModule"],
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"]
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](EffectsFeatureModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["NgModule"],
          args: [{}]
        }], function () {
          return [{
            type: EffectsRootModule
          }, {
            type: Array,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"],
              args: [FEATURE_EFFECTS]
            }]
          }, {
            type: _ngrx_store__WEBPACK_IMPORTED_MODULE_0__["StoreRootModule"],
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"]
            }]
          }, {
            type: _ngrx_store__WEBPACK_IMPORTED_MODULE_0__["StoreFeatureModule"],
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"]
            }]
          }];
        }, null);
      })();
      /**
       * @fileoverview added by tsickle
       * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */


      var EffectsModule = /*#__PURE__*/function () {
        function EffectsModule() {
          _classCallCheck2(this, EffectsModule);
        }

        _createClass2(EffectsModule, null, [{
          key: "forFeature",
          value:
          /**
           * @param {?} featureEffects
           * @return {?}
           */
          function forFeature(featureEffects) {
            return {
              ngModule: EffectsFeatureModule,
              providers: [featureEffects, {
                provide: FEATURE_EFFECTS,
                multi: true,
                deps: featureEffects,
                useFactory: createSourceInstances
              }]
            };
          }
          /**
           * @param {?} rootEffects
           * @return {?}
           */

        }, {
          key: "forRoot",
          value: function forRoot(rootEffects) {
            return {
              ngModule: EffectsRootModule,
              providers: [{
                provide: _ROOT_EFFECTS_GUARD,
                useFactory: _provideForRootGuard,
                deps: [[EffectsRunner, new _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"](), new _angular_core__WEBPACK_IMPORTED_MODULE_3__["SkipSelf"]()]]
              }, EffectsRunner, EffectSources, Actions, rootEffects, {
                provide: ROOT_EFFECTS,
                deps: rootEffects,
                useFactory: createSourceInstances
              }]
            };
          }
        }]);

        return EffectsModule;
      }();

      EffectsModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineNgModule"]({
        type: EffectsModule
      });
      EffectsModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineInjector"]({
        factory: function EffectsModule_Factory(t) {
          return new (t || EffectsModule)();
        }
      });
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](EffectsModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["NgModule"],
          args: [{}]
        }], null, null);
      })();
      /**
       * @param {...?} instances
       * @return {?}
       */


      function createSourceInstances() {
        for (var _len63 = arguments.length, instances = new Array(_len63), _key65 = 0; _key65 < _len63; _key65++) {
          instances[_key65] = arguments[_key65];
        }

        return instances;
      }
      /**
       * @param {?} runner
       * @return {?}
       */


      function _provideForRootGuard(runner) {
        if (runner) {
          throw new TypeError("EffectsModule.forRoot() called twice. Feature modules should use EffectsModule.forFeature() instead.");
        }

        return 'guarded';
      }
      /**
       * @fileoverview added by tsickle
       * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * @template Input, OutputAction, ErrorAction, CompleteAction, UnsubscribeAction
       * @param {?} configOrProject
       * @param {?=} errorFn
       * @return {?}
       */


      function act(
      /** Allow to take either config object or project/error functions */
      configOrProject, errorFn) {
        var _ref85 = typeof configOrProject === 'function' ? {
          project: configOrProject,
          error: errorFn,
          operator: rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["concatMap"],
          complete: undefined,
          unsubscribe: undefined
        } : Object.assign({}, configOrProject, {
          operator: configOrProject.operator || rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["concatMap"]
        }),
            project = _ref85.project,
            error = _ref85.error,
            complete = _ref85.complete,
            operator = _ref85.operator,
            unsubscribe = _ref85.unsubscribe;

        return (
          /**
          * @param {?} source
          * @return {?}
          */
          function (source) {
            return Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["defer"])(
            /**
            * @return {?}
            */
            function () {
              /** @type {?} */
              var subject = new rxjs__WEBPACK_IMPORTED_MODULE_1__["Subject"]();
              return Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["merge"])(source.pipe(operator(
              /**
              * @param {?} input
              * @param {?} index
              * @return {?}
              */
              function (input, index) {
                return Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["defer"])(
                /**
                * @return {?}
                */
                function () {
                  /** @type {?} */
                  var completed = false;
                  /** @type {?} */

                  var errored = false;
                  /** @type {?} */

                  var projectedCount = 0;
                  return project(input, index).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["materialize"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])(
                  /**
                  * @param {?} notification
                  * @return {?}
                  */
                  function (notification) {
                    switch (notification.kind) {
                      case 'E':
                        errored = true;
                        return new rxjs__WEBPACK_IMPORTED_MODULE_1__["Notification"]( // TODO: remove any in RxJS 6.5
                        'N', error(notification.error, input));

                      case 'C':
                        completed = true;
                        return complete ? new rxjs__WEBPACK_IMPORTED_MODULE_1__["Notification"]( // TODO: remove any in RxJS 6.5
                        'N', complete(projectedCount, input)) : undefined;

                      default:
                        ++projectedCount;
                        return notification;
                    }
                  }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["filter"])(
                  /**
                  * @param {?} n
                  * @return {?}
                  */
                  function (n) {
                    return n != null;
                  }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["dematerialize"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["finalize"])(
                  /**
                  * @return {?}
                  */
                  function () {
                    if (!completed && !errored && unsubscribe) {
                      subject.next(unsubscribe(projectedCount, input));
                    }
                  }));
                });
              })), subject);
            });
          }
        );
      }
      /**
       * @fileoverview added by tsickle
       * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * @fileoverview added by tsickle
       * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * @fileoverview added by tsickle
       * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * Generated bundle index. Do not edit.
       */
      //# sourceMappingURL=effects.js.map

      /***/

    },

    /***/
    "YuR2": function YuR2(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "QueueAction", function () {
        return QueueAction;
      });
      /* harmony import */


      var _AsyncAction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ./AsyncAction */
      "3N8a");

      var QueueAction = /*#__PURE__*/function (_AsyncAction__WEBPACK3) {
        _inherits2(QueueAction, _AsyncAction__WEBPACK3);

        var _super353 = _createSuper2(QueueAction);

        function QueueAction(scheduler, work) {
          var _this693;

          _classCallCheck2(this, QueueAction);

          _this693 = _super353.call(this, scheduler, work);
          _this693.scheduler = scheduler;
          _this693.work = work;
          return _this693;
        }

        _createClass2(QueueAction, [{
          key: "schedule",
          value: function schedule(state) {
            var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;

            if (delay > 0) {
              return _get2(_getPrototypeOf2(QueueAction.prototype), "schedule", this).call(this, state, delay);
            }

            this.delay = delay;
            this.state = state;
            this.scheduler.flush(this);
            return this;
          }
        }, {
          key: "execute",
          value: function execute(state, delay) {
            return delay > 0 || this.closed ? _get2(_getPrototypeOf2(QueueAction.prototype), "execute", this).call(this, state, delay) : this._execute(state, delay);
          }
        }, {
          key: "requestAsyncId",
          value: function requestAsyncId(scheduler, id) {
            var delay = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;

            if (delay !== null && delay > 0 || delay === null && this.delay > 0) {
              return _get2(_getPrototypeOf2(QueueAction.prototype), "requestAsyncId", this).call(this, scheduler, id, delay);
            }

            return scheduler.flush(this);
          }
        }]);

        return QueueAction;
      }(_AsyncAction__WEBPACK_IMPORTED_MODULE_0__["AsyncAction"]); //# sourceMappingURL=QueueAction.js.map

      /***/

    },

    /***/
    "YuTi": function YuTi(module, exports) {
      module.exports = function (module) {
        if (!module.webpackPolyfill) {
          module.deprecate = function () {};

          module.paths = []; // module.parent = undefined by default

          if (!module.children) module.children = [];
          Object.defineProperty(module, "loaded", {
            enumerable: true,
            get: function get() {
              return module.l;
            }
          });
          Object.defineProperty(module, "id", {
            enumerable: true,
            get: function get() {
              return module.i;
            }
          });
          module.webpackPolyfill = 1;
        }

        return module;
      };
      /***/

    },

    /***/
    "Z4QM": function Z4QM(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Sindhi [sd]
      //! author : Narain Sagar : https://github.com/narainsagar
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var months = ['جنوري', 'فيبروري', 'مارچ', 'اپريل', 'مئي', 'جون', 'جولاءِ', 'آگسٽ', 'سيپٽمبر', 'آڪٽوبر', 'نومبر', 'ڊسمبر'],
            days = ['آچر', 'سومر', 'اڱارو', 'اربع', 'خميس', 'جمع', 'ڇنڇر'];
        var sd = moment.defineLocale('sd', {
          months: months,
          monthsShort: months,
          weekdays: days,
          weekdaysShort: days,
          weekdaysMin: days,
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd، D MMMM YYYY HH:mm'
          },
          meridiemParse: /صبح|شام/,
          isPM: function isPM(input) {
            return 'شام' === input;
          },
          meridiem: function meridiem(hour, minute, isLower) {
            if (hour < 12) {
              return 'صبح';
            }

            return 'شام';
          },
          calendar: {
            sameDay: '[اڄ] LT',
            nextDay: '[سڀاڻي] LT',
            nextWeek: 'dddd [اڳين هفتي تي] LT',
            lastDay: '[ڪالهه] LT',
            lastWeek: '[گزريل هفتي] dddd [تي] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: '%s پوء',
            past: '%s اڳ',
            s: 'چند سيڪنڊ',
            ss: '%d سيڪنڊ',
            m: 'هڪ منٽ',
            mm: '%d منٽ',
            h: 'هڪ ڪلاڪ',
            hh: '%d ڪلاڪ',
            d: 'هڪ ڏينهن',
            dd: '%d ڏينهن',
            M: 'هڪ مهينو',
            MM: '%d مهينا',
            y: 'هڪ سال',
            yy: '%d سال'
          },
          preparse: function preparse(string) {
            return string.replace(/،/g, ',');
          },
          postformat: function postformat(string) {
            return string.replace(/,/g, '،');
          },
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return sd;
      });
      /***/

    },

    /***/
    "ZAMP": function ZAMP(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Malay [ms-my]
      //! note : DEPRECATED, the correct one is [ms]
      //! author : Weldan Jamili : https://github.com/weldan
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var msMy = moment.defineLocale('ms-my', {
          months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),
          monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
          weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
          weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
          weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
          longDateFormat: {
            LT: 'HH.mm',
            LTS: 'HH.mm.ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY [pukul] HH.mm',
            LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm'
          },
          meridiemParse: /pagi|tengahari|petang|malam/,
          meridiemHour: function meridiemHour(hour, meridiem) {
            if (hour === 12) {
              hour = 0;
            }

            if (meridiem === 'pagi') {
              return hour;
            } else if (meridiem === 'tengahari') {
              return hour >= 11 ? hour : hour + 12;
            } else if (meridiem === 'petang' || meridiem === 'malam') {
              return hour + 12;
            }
          },
          meridiem: function meridiem(hours, minutes, isLower) {
            if (hours < 11) {
              return 'pagi';
            } else if (hours < 15) {
              return 'tengahari';
            } else if (hours < 19) {
              return 'petang';
            } else {
              return 'malam';
            }
          },
          calendar: {
            sameDay: '[Hari ini pukul] LT',
            nextDay: '[Esok pukul] LT',
            nextWeek: 'dddd [pukul] LT',
            lastDay: '[Kelmarin pukul] LT',
            lastWeek: 'dddd [lepas pukul] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'dalam %s',
            past: '%s yang lepas',
            s: 'beberapa saat',
            ss: '%d saat',
            m: 'seminit',
            mm: '%d minit',
            h: 'sejam',
            hh: '%d jam',
            d: 'sehari',
            dd: '%d hari',
            M: 'sebulan',
            MM: '%d bulan',
            y: 'setahun',
            yy: '%d tahun'
          },
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 7 // The week that contains Jan 7th is the first week of the year.

          }
        });
        return msMy;
      });
      /***/

    },

    /***/
    "ZFy/": function ZFy(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MAT_TOOLTIP_DEFAULT_OPTIONS", function () {
        return MAT_TOOLTIP_DEFAULT_OPTIONS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MAT_TOOLTIP_DEFAULT_OPTIONS_FACTORY", function () {
        return MAT_TOOLTIP_DEFAULT_OPTIONS_FACTORY;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MAT_TOOLTIP_SCROLL_STRATEGY", function () {
        return MAT_TOOLTIP_SCROLL_STRATEGY;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY", function () {
        return MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER", function () {
        return MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatTooltip", function () {
        return MatTooltip;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatTooltipModule", function () {
        return MatTooltipModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "SCROLL_THROTTLE_MS", function () {
        return SCROLL_THROTTLE_MS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TOOLTIP_PANEL_CLASS", function () {
        return TOOLTIP_PANEL_CLASS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TooltipComponent", function () {
        return TooltipComponent;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "getMatTooltipInvalidPositionError", function () {
        return getMatTooltipInvalidPositionError;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "matTooltipAnimations", function () {
        return matTooltipAnimations;
      });
      /* harmony import */


      var _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/cdk/overlay */
      "1O3W");
      /* harmony import */


      var _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/cdk/a11y */
      "YEUz");
      /* harmony import */


      var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! @angular/common */
      "SVse");
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /* harmony import */


      var _angular_material_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! @angular/material/core */
      "UhP/");
      /* harmony import */


      var _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! @angular/cdk/scrolling */
      "7KAL");
      /* harmony import */


      var _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
      /*! @angular/cdk/bidi */
      "9gLZ");
      /* harmony import */


      var _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
      /*! @angular/cdk/coercion */
      "8LU1");
      /* harmony import */


      var _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
      /*! @angular/cdk/keycodes */
      "Ht+U");
      /* harmony import */


      var _angular_cdk_layout__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
      /*! @angular/cdk/layout */
      "HeVh");
      /* harmony import */


      var _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(
      /*! @angular/cdk/platform */
      "SCoL");
      /* harmony import */


      var _angular_cdk_portal__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(
      /*! @angular/cdk/portal */
      "1z/I");
      /* harmony import */


      var rxjs__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(
      /*! rxjs */
      "qCKp");
      /* harmony import */


      var rxjs_operators__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(
      /*! rxjs/operators */
      "kU1M");
      /* harmony import */


      var _angular_animations__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(
      /*! @angular/animations */
      "GS7A");
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Animations used by MatTooltip.
       * @docs-private
       */


      var matTooltipAnimations = {
        /** Animation that transitions a tooltip in and out. */
        tooltipState: Object(_angular_animations__WEBPACK_IMPORTED_MODULE_14__["trigger"])('state', [Object(_angular_animations__WEBPACK_IMPORTED_MODULE_14__["state"])('initial, void, hidden', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_14__["style"])({
          opacity: 0,
          transform: 'scale(0)'
        })), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_14__["state"])('visible', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_14__["style"])({
          transform: 'scale(1)'
        })), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_14__["transition"])('* => visible', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_14__["animate"])('200ms cubic-bezier(0, 0, 0.2, 1)', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_14__["keyframes"])([Object(_angular_animations__WEBPACK_IMPORTED_MODULE_14__["style"])({
          opacity: 0,
          transform: 'scale(0)',
          offset: 0
        }), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_14__["style"])({
          opacity: 0.5,
          transform: 'scale(0.99)',
          offset: 0.5
        }), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_14__["style"])({
          opacity: 1,
          transform: 'scale(1)',
          offset: 1
        })]))), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_14__["transition"])('* => hidden', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_14__["animate"])('100ms cubic-bezier(0, 0, 0.2, 1)', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_14__["style"])({
          opacity: 0
        })))])
      };
      /** Time in ms to throttle repositioning after scroll events. */

      var SCROLL_THROTTLE_MS = 20;
      /** CSS class that will be attached to the overlay panel. */

      var TOOLTIP_PANEL_CLASS = 'mat-tooltip-panel';
      /** Options used to bind passive event listeners. */

      var passiveListenerOptions = Object(_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_10__["normalizePassiveListenerOptions"])({
        passive: true
      });
      /**
       * Time between the user putting the pointer on a tooltip
       * trigger and the long press event being fired.
       */

      var LONGPRESS_DELAY = 500;
      /**
       * Creates an error to be thrown if the user supplied an invalid tooltip position.
       * @docs-private
       */

      function getMatTooltipInvalidPositionError(position) {
        return Error("Tooltip position \"".concat(position, "\" is invalid."));
      }
      /** Injection token that determines the scroll handling while a tooltip is visible. */


      var MAT_TOOLTIP_SCROLL_STRATEGY = new _angular_core__WEBPACK_IMPORTED_MODULE_3__["InjectionToken"]('mat-tooltip-scroll-strategy');
      /** @docs-private */

      function MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY(overlay) {
        return function () {
          return overlay.scrollStrategies.reposition({
            scrollThrottle: SCROLL_THROTTLE_MS
          });
        };
      }
      /** @docs-private */


      var MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER = {
        provide: MAT_TOOLTIP_SCROLL_STRATEGY,
        deps: [_angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_0__["Overlay"]],
        useFactory: MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY
      };
      /** Injection token to be used to override the default options for `matTooltip`. */

      var MAT_TOOLTIP_DEFAULT_OPTIONS = new _angular_core__WEBPACK_IMPORTED_MODULE_3__["InjectionToken"]('mat-tooltip-default-options', {
        providedIn: 'root',
        factory: MAT_TOOLTIP_DEFAULT_OPTIONS_FACTORY
      });
      /** @docs-private */

      function MAT_TOOLTIP_DEFAULT_OPTIONS_FACTORY() {
        return {
          showDelay: 0,
          hideDelay: 0,
          touchendHideDelay: 1500
        };
      }
      /**
       * Directive that attaches a material design tooltip to the host element. Animates the showing and
       * hiding of a tooltip provided position (defaults to below the element).
       *
       * https://material.io/design/components/tooltips.html
       */


      var MatTooltip = /*#__PURE__*/function () {
        function MatTooltip(_overlay, _elementRef, _scrollDispatcher, _viewContainerRef, _ngZone, _platform, _ariaDescriber, _focusMonitor, scrollStrategy, _dir, _defaultOptions) {
          var _this694 = this;

          _classCallCheck2(this, MatTooltip);

          this._overlay = _overlay;
          this._elementRef = _elementRef;
          this._scrollDispatcher = _scrollDispatcher;
          this._viewContainerRef = _viewContainerRef;
          this._ngZone = _ngZone;
          this._platform = _platform;
          this._ariaDescriber = _ariaDescriber;
          this._focusMonitor = _focusMonitor;
          this._dir = _dir;
          this._defaultOptions = _defaultOptions;
          this._position = 'below';
          this._disabled = false;
          this._viewInitialized = false;
          this._pointerExitEventsInitialized = false;
          /** The default delay in ms before showing the tooltip after show is called */

          this.showDelay = this._defaultOptions.showDelay;
          /** The default delay in ms before hiding the tooltip after hide is called */

          this.hideDelay = this._defaultOptions.hideDelay;
          /**
           * How touch gestures should be handled by the tooltip. On touch devices the tooltip directive
           * uses a long press gesture to show and hide, however it can conflict with the native browser
           * gestures. To work around the conflict, Angular Material disables native gestures on the
           * trigger, but that might not be desirable on particular elements (e.g. inputs and draggable
           * elements). The different values for this option configure the touch event handling as follows:
           * - `auto` - Enables touch gestures for all elements, but tries to avoid conflicts with native
           *   browser gestures on particular elements. In particular, it allows text selection on inputs
           *   and textareas, and preserves the native browser dragging on elements marked as `draggable`.
           * - `on` - Enables touch gestures for all elements and disables native
           *   browser gestures with no exceptions.
           * - `off` - Disables touch gestures. Note that this will prevent the tooltip from
           *   showing on touch devices.
           */

          this.touchGestures = 'auto';
          this._message = '';
          /** Manually-bound passive event listeners. */

          this._passiveListeners = [];
          /** Emits when the component is destroyed. */

          this._destroyed = new rxjs__WEBPACK_IMPORTED_MODULE_12__["Subject"]();
          /**
           * Handles the keydown events on the host element.
           * Needs to be an arrow function so that we can use it in addEventListener.
           */

          this._handleKeydown = function (event) {
            if (_this694._isTooltipVisible() && event.keyCode === _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_8__["ESCAPE"] && !Object(_angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_8__["hasModifierKey"])(event)) {
              event.preventDefault();
              event.stopPropagation();

              _this694._ngZone.run(function () {
                return _this694.hide(0);
              });
            }
          };

          this._scrollStrategy = scrollStrategy;

          if (_defaultOptions) {
            if (_defaultOptions.position) {
              this.position = _defaultOptions.position;
            }

            if (_defaultOptions.touchGestures) {
              this.touchGestures = _defaultOptions.touchGestures;
            }
          }

          _ngZone.runOutsideAngular(function () {
            _elementRef.nativeElement.addEventListener('keydown', _this694._handleKeydown);
          });
        }
        /** Allows the user to define the position of the tooltip relative to the parent element */


        _createClass2(MatTooltip, [{
          key: "position",
          get: function get() {
            return this._position;
          },
          set: function set(value) {
            if (value !== this._position) {
              this._position = value;

              if (this._overlayRef) {
                this._updatePosition();

                if (this._tooltipInstance) {
                  this._tooltipInstance.show(0);
                }

                this._overlayRef.updatePosition();
              }
            }
          }
          /** Disables the display of the tooltip. */

        }, {
          key: "disabled",
          get: function get() {
            return this._disabled;
          },
          set: function set(value) {
            this._disabled = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_7__["coerceBooleanProperty"])(value); // If tooltip is disabled, hide immediately.

            if (this._disabled) {
              this.hide(0);
            } else {
              this._setupPointerEnterEventsIfNeeded();
            }
          }
          /** The message to be displayed in the tooltip */

        }, {
          key: "message",
          get: function get() {
            return this._message;
          },
          set: function set(value) {
            var _this695 = this;

            this._ariaDescriber.removeDescription(this._elementRef.nativeElement, this._message); // If the message is not a string (e.g. number), convert it to a string and trim it.
            // Must convert with `String(value)`, not `${value}`, otherwise Closure Compiler optimises
            // away the string-conversion: https://github.com/angular/components/issues/20684


            this._message = value != null ? String(value).trim() : '';

            if (!this._message && this._isTooltipVisible()) {
              this.hide(0);
            } else {
              this._setupPointerEnterEventsIfNeeded();

              this._updateTooltipMessage();

              this._ngZone.runOutsideAngular(function () {
                // The `AriaDescriber` has some functionality that avoids adding a description if it's the
                // same as the `aria-label` of an element, however we can't know whether the tooltip trigger
                // has a data-bound `aria-label` or when it'll be set for the first time. We can avoid the
                // issue by deferring the description by a tick so Angular has time to set the `aria-label`.
                Promise.resolve().then(function () {
                  _this695._ariaDescriber.describe(_this695._elementRef.nativeElement, _this695.message);
                });
              });
            }
          }
          /** Classes to be passed to the tooltip. Supports the same syntax as `ngClass`. */

        }, {
          key: "tooltipClass",
          get: function get() {
            return this._tooltipClass;
          },
          set: function set(value) {
            this._tooltipClass = value;

            if (this._tooltipInstance) {
              this._setTooltipClass(this._tooltipClass);
            }
          }
        }, {
          key: "ngAfterViewInit",
          value: function ngAfterViewInit() {
            var _this696 = this;

            // This needs to happen after view init so the initial values for all inputs have been set.
            this._viewInitialized = true;

            this._setupPointerEnterEventsIfNeeded();

            this._focusMonitor.monitor(this._elementRef).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_13__["takeUntil"])(this._destroyed)).subscribe(function (origin) {
              // Note that the focus monitor runs outside the Angular zone.
              if (!origin) {
                _this696._ngZone.run(function () {
                  return _this696.hide(0);
                });
              } else if (origin === 'keyboard') {
                _this696._ngZone.run(function () {
                  return _this696.show();
                });
              }
            });
          }
          /**
           * Dispose the tooltip when destroyed.
           */

        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            var nativeElement = this._elementRef.nativeElement;
            clearTimeout(this._touchstartTimeout);

            if (this._overlayRef) {
              this._overlayRef.dispose();

              this._tooltipInstance = null;
            } // Clean up the event listeners set in the constructor


            nativeElement.removeEventListener('keydown', this._handleKeydown);

            this._passiveListeners.forEach(function (_ref86) {
              var _ref87 = _slicedToArray(_ref86, 2),
                  event = _ref87[0],
                  listener = _ref87[1];

              nativeElement.removeEventListener(event, listener, passiveListenerOptions);
            });

            this._passiveListeners.length = 0;

            this._destroyed.next();

            this._destroyed.complete();

            this._ariaDescriber.removeDescription(nativeElement, this.message);

            this._focusMonitor.stopMonitoring(nativeElement);
          }
          /** Shows the tooltip after the delay in ms, defaults to tooltip-delay-show or 0ms if no input */

        }, {
          key: "show",
          value: function show() {
            var _this697 = this;

            var delay = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.showDelay;

            if (this.disabled || !this.message || this._isTooltipVisible() && !this._tooltipInstance._showTimeoutId && !this._tooltipInstance._hideTimeoutId) {
              return;
            }

            var overlayRef = this._createOverlay();

            this._detach();

            this._portal = this._portal || new _angular_cdk_portal__WEBPACK_IMPORTED_MODULE_11__["ComponentPortal"](TooltipComponent, this._viewContainerRef);
            this._tooltipInstance = overlayRef.attach(this._portal).instance;

            this._tooltipInstance.afterHidden().pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_13__["takeUntil"])(this._destroyed)).subscribe(function () {
              return _this697._detach();
            });

            this._setTooltipClass(this._tooltipClass);

            this._updateTooltipMessage();

            this._tooltipInstance.show(delay);
          }
          /** Hides the tooltip after the delay in ms, defaults to tooltip-delay-hide or 0ms if no input */

        }, {
          key: "hide",
          value: function hide() {
            var delay = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.hideDelay;

            if (this._tooltipInstance) {
              this._tooltipInstance.hide(delay);
            }
          }
          /** Shows/hides the tooltip */

        }, {
          key: "toggle",
          value: function toggle() {
            this._isTooltipVisible() ? this.hide() : this.show();
          }
          /** Returns true if the tooltip is currently visible to the user */

        }, {
          key: "_isTooltipVisible",
          value: function _isTooltipVisible() {
            return !!this._tooltipInstance && this._tooltipInstance.isVisible();
          }
          /** Create the overlay config and position strategy */

        }, {
          key: "_createOverlay",
          value: function _createOverlay() {
            var _this698 = this;

            if (this._overlayRef) {
              return this._overlayRef;
            }

            var scrollableAncestors = this._scrollDispatcher.getAncestorScrollContainers(this._elementRef); // Create connected position strategy that listens for scroll events to reposition.


            var strategy = this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn('.mat-tooltip').withFlexibleDimensions(false).withViewportMargin(8).withScrollableContainers(scrollableAncestors);

            strategy.positionChanges.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_13__["takeUntil"])(this._destroyed)).subscribe(function (change) {
              if (_this698._tooltipInstance) {
                if (change.scrollableViewProperties.isOverlayClipped && _this698._tooltipInstance.isVisible()) {
                  // After position changes occur and the overlay is clipped by
                  // a parent scrollable then close the tooltip.
                  _this698._ngZone.run(function () {
                    return _this698.hide(0);
                  });
                }
              }
            });
            this._overlayRef = this._overlay.create({
              direction: this._dir,
              positionStrategy: strategy,
              panelClass: TOOLTIP_PANEL_CLASS,
              scrollStrategy: this._scrollStrategy()
            });

            this._updatePosition();

            this._overlayRef.detachments().pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_13__["takeUntil"])(this._destroyed)).subscribe(function () {
              return _this698._detach();
            });

            return this._overlayRef;
          }
          /** Detaches the currently-attached tooltip. */

        }, {
          key: "_detach",
          value: function _detach() {
            if (this._overlayRef && this._overlayRef.hasAttached()) {
              this._overlayRef.detach();
            }

            this._tooltipInstance = null;
          }
          /** Updates the position of the current tooltip. */

        }, {
          key: "_updatePosition",
          value: function _updatePosition() {
            var position = this._overlayRef.getConfig().positionStrategy;

            var origin = this._getOrigin();

            var overlay = this._getOverlayPosition();

            position.withPositions([Object.assign(Object.assign({}, origin.main), overlay.main), Object.assign(Object.assign({}, origin.fallback), overlay.fallback)]);
          }
          /**
           * Returns the origin position and a fallback position based on the user's position preference.
           * The fallback position is the inverse of the origin (e.g. `'below' -> 'above'`).
           */

        }, {
          key: "_getOrigin",
          value: function _getOrigin() {
            var isLtr = !this._dir || this._dir.value == 'ltr';
            var position = this.position;
            var originPosition;

            if (position == 'above' || position == 'below') {
              originPosition = {
                originX: 'center',
                originY: position == 'above' ? 'top' : 'bottom'
              };
            } else if (position == 'before' || position == 'left' && isLtr || position == 'right' && !isLtr) {
              originPosition = {
                originX: 'start',
                originY: 'center'
              };
            } else if (position == 'after' || position == 'right' && isLtr || position == 'left' && !isLtr) {
              originPosition = {
                originX: 'end',
                originY: 'center'
              };
            } else if (typeof ngDevMode === 'undefined' || ngDevMode) {
              throw getMatTooltipInvalidPositionError(position);
            }

            var _this$_invertPosition = this._invertPosition(originPosition.originX, originPosition.originY),
                x = _this$_invertPosition.x,
                y = _this$_invertPosition.y;

            return {
              main: originPosition,
              fallback: {
                originX: x,
                originY: y
              }
            };
          }
          /** Returns the overlay position and a fallback position based on the user's preference */

        }, {
          key: "_getOverlayPosition",
          value: function _getOverlayPosition() {
            var isLtr = !this._dir || this._dir.value == 'ltr';
            var position = this.position;
            var overlayPosition;

            if (position == 'above') {
              overlayPosition = {
                overlayX: 'center',
                overlayY: 'bottom'
              };
            } else if (position == 'below') {
              overlayPosition = {
                overlayX: 'center',
                overlayY: 'top'
              };
            } else if (position == 'before' || position == 'left' && isLtr || position == 'right' && !isLtr) {
              overlayPosition = {
                overlayX: 'end',
                overlayY: 'center'
              };
            } else if (position == 'after' || position == 'right' && isLtr || position == 'left' && !isLtr) {
              overlayPosition = {
                overlayX: 'start',
                overlayY: 'center'
              };
            } else if (typeof ngDevMode === 'undefined' || ngDevMode) {
              throw getMatTooltipInvalidPositionError(position);
            }

            var _this$_invertPosition2 = this._invertPosition(overlayPosition.overlayX, overlayPosition.overlayY),
                x = _this$_invertPosition2.x,
                y = _this$_invertPosition2.y;

            return {
              main: overlayPosition,
              fallback: {
                overlayX: x,
                overlayY: y
              }
            };
          }
          /** Updates the tooltip message and repositions the overlay according to the new message length */

        }, {
          key: "_updateTooltipMessage",
          value: function _updateTooltipMessage() {
            var _this699 = this;

            // Must wait for the message to be painted to the tooltip so that the overlay can properly
            // calculate the correct positioning based on the size of the text.
            if (this._tooltipInstance) {
              this._tooltipInstance.message = this.message;

              this._tooltipInstance._markForCheck();

              this._ngZone.onMicrotaskEmpty.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_13__["take"])(1), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_13__["takeUntil"])(this._destroyed)).subscribe(function () {
                if (_this699._tooltipInstance) {
                  _this699._overlayRef.updatePosition();
                }
              });
            }
          }
          /** Updates the tooltip class */

        }, {
          key: "_setTooltipClass",
          value: function _setTooltipClass(tooltipClass) {
            if (this._tooltipInstance) {
              this._tooltipInstance.tooltipClass = tooltipClass;

              this._tooltipInstance._markForCheck();
            }
          }
          /** Inverts an overlay position. */

        }, {
          key: "_invertPosition",
          value: function _invertPosition(x, y) {
            if (this.position === 'above' || this.position === 'below') {
              if (y === 'top') {
                y = 'bottom';
              } else if (y === 'bottom') {
                y = 'top';
              }
            } else {
              if (x === 'end') {
                x = 'start';
              } else if (x === 'start') {
                x = 'end';
              }
            }

            return {
              x: x,
              y: y
            };
          }
          /** Binds the pointer events to the tooltip trigger. */

        }, {
          key: "_setupPointerEnterEventsIfNeeded",
          value: function _setupPointerEnterEventsIfNeeded() {
            var _this700 = this;

            // Optimization: Defer hooking up events if there's no message or the tooltip is disabled.
            if (this._disabled || !this.message || !this._viewInitialized || this._passiveListeners.length) {
              return;
            } // The mouse events shouldn't be bound on mobile devices, because they can prevent the
            // first tap from firing its click event or can cause the tooltip to open for clicks.


            if (this._platformSupportsMouseEvents()) {
              this._passiveListeners.push(['mouseenter', function () {
                _this700._setupPointerExitEventsIfNeeded();

                _this700.show();
              }]);
            } else if (this.touchGestures !== 'off') {
              this._disableNativeGesturesIfNecessary();

              this._passiveListeners.push(['touchstart', function () {
                // Note that it's important that we don't `preventDefault` here,
                // because it can prevent click events from firing on the element.
                _this700._setupPointerExitEventsIfNeeded();

                clearTimeout(_this700._touchstartTimeout);
                _this700._touchstartTimeout = setTimeout(function () {
                  return _this700.show();
                }, LONGPRESS_DELAY);
              }]);
            }

            this._addListeners(this._passiveListeners);
          }
        }, {
          key: "_setupPointerExitEventsIfNeeded",
          value: function _setupPointerExitEventsIfNeeded() {
            var _this701 = this,
                _this$_passiveListene;

            if (this._pointerExitEventsInitialized) {
              return;
            }

            this._pointerExitEventsInitialized = true;
            var exitListeners = [];

            if (this._platformSupportsMouseEvents()) {
              exitListeners.push(['mouseleave', function () {
                return _this701.hide();
              }]);
            } else if (this.touchGestures !== 'off') {
              this._disableNativeGesturesIfNecessary();

              var touchendListener = function touchendListener() {
                clearTimeout(_this701._touchstartTimeout);

                _this701.hide(_this701._defaultOptions.touchendHideDelay);
              };

              exitListeners.push(['touchend', touchendListener], ['touchcancel', touchendListener]);
            }

            this._addListeners(exitListeners);

            (_this$_passiveListene = this._passiveListeners).push.apply(_this$_passiveListene, exitListeners);
          }
        }, {
          key: "_addListeners",
          value: function _addListeners(listeners) {
            var _this702 = this;

            listeners.forEach(function (_ref88) {
              var _ref89 = _slicedToArray(_ref88, 2),
                  event = _ref89[0],
                  listener = _ref89[1];

              _this702._elementRef.nativeElement.addEventListener(event, listener, passiveListenerOptions);
            });
          }
        }, {
          key: "_platformSupportsMouseEvents",
          value: function _platformSupportsMouseEvents() {
            return !this._platform.IOS && !this._platform.ANDROID;
          }
          /** Disables the native browser gestures, based on how the tooltip has been configured. */

        }, {
          key: "_disableNativeGesturesIfNecessary",
          value: function _disableNativeGesturesIfNecessary() {
            var gestures = this.touchGestures;

            if (gestures !== 'off') {
              var element = this._elementRef.nativeElement;
              var style = element.style; // If gestures are set to `auto`, we don't disable text selection on inputs and
              // textareas, because it prevents the user from typing into them on iOS Safari.

              if (gestures === 'on' || element.nodeName !== 'INPUT' && element.nodeName !== 'TEXTAREA') {
                style.userSelect = style.msUserSelect = style.webkitUserSelect = style.MozUserSelect = 'none';
              } // If we have `auto` gestures and the element uses native HTML dragging,
              // we don't set `-webkit-user-drag` because it prevents the native behavior.


              if (gestures === 'on' || !element.draggable) {
                style.webkitUserDrag = 'none';
              }

              style.touchAction = 'none';
              style.webkitTapHighlightColor = 'transparent';
            }
          }
        }]);

        return MatTooltip;
      }();

      MatTooltip.ɵfac = function MatTooltip_Factory(t) {
        return new (t || MatTooltip)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_0__["Overlay"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_5__["ScrollDispatcher"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewContainerRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["NgZone"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_10__["Platform"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_1__["AriaDescriber"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_1__["FocusMonitor"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](MAT_TOOLTIP_SCROLL_STRATEGY), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_6__["Directionality"], 8), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](MAT_TOOLTIP_DEFAULT_OPTIONS, 8));
      };

      MatTooltip.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineDirective"]({
        type: MatTooltip,
        selectors: [["", "matTooltip", ""]],
        hostAttrs: [1, "mat-tooltip-trigger"],
        inputs: {
          showDelay: ["matTooltipShowDelay", "showDelay"],
          hideDelay: ["matTooltipHideDelay", "hideDelay"],
          touchGestures: ["matTooltipTouchGestures", "touchGestures"],
          position: ["matTooltipPosition", "position"],
          disabled: ["matTooltipDisabled", "disabled"],
          message: ["matTooltip", "message"],
          tooltipClass: ["matTooltipClass", "tooltipClass"]
        },
        exportAs: ["matTooltip"]
      });

      MatTooltip.ctorParameters = function () {
        return [{
          type: _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_0__["Overlay"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]
        }, {
          type: _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_5__["ScrollDispatcher"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewContainerRef"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["NgZone"]
        }, {
          type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_10__["Platform"]
        }, {
          type: _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_1__["AriaDescriber"]
        }, {
          type: _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_1__["FocusMonitor"]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"],
            args: [MAT_TOOLTIP_SCROLL_STRATEGY]
          }]
        }, {
          type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_6__["Directionality"],
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"]
          }]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"],
            args: [MAT_TOOLTIP_DEFAULT_OPTIONS]
          }]
        }];
      };

      MatTooltip.propDecorators = {
        position: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"],
          args: ['matTooltipPosition']
        }],
        disabled: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"],
          args: ['matTooltipDisabled']
        }],
        showDelay: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"],
          args: ['matTooltipShowDelay']
        }],
        hideDelay: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"],
          args: ['matTooltipHideDelay']
        }],
        touchGestures: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"],
          args: ['matTooltipTouchGestures']
        }],
        message: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"],
          args: ['matTooltip']
        }],
        tooltipClass: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"],
          args: ['matTooltipClass']
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](MatTooltip, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Directive"],
          args: [{
            selector: '[matTooltip]',
            exportAs: 'matTooltip',
            host: {
              'class': 'mat-tooltip-trigger'
            }
          }]
        }], function () {
          return [{
            type: _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_0__["Overlay"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]
          }, {
            type: _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_5__["ScrollDispatcher"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewContainerRef"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["NgZone"]
          }, {
            type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_10__["Platform"]
          }, {
            type: _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_1__["AriaDescriber"]
          }, {
            type: _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_1__["FocusMonitor"]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"],
              args: [MAT_TOOLTIP_SCROLL_STRATEGY]
            }]
          }, {
            type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_6__["Directionality"],
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"]
            }]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"],
              args: [MAT_TOOLTIP_DEFAULT_OPTIONS]
            }]
          }];
        }, {
          showDelay: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"],
            args: ['matTooltipShowDelay']
          }],
          hideDelay: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"],
            args: ['matTooltipHideDelay']
          }],
          touchGestures: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"],
            args: ['matTooltipTouchGestures']
          }],
          position: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"],
            args: ['matTooltipPosition']
          }],
          disabled: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"],
            args: ['matTooltipDisabled']
          }],
          message: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"],
            args: ['matTooltip']
          }],
          tooltipClass: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"],
            args: ['matTooltipClass']
          }]
        });
      })();
      /**
       * Internal component that wraps the tooltip's content.
       * @docs-private
       */


      var TooltipComponent = /*#__PURE__*/function () {
        function TooltipComponent(_changeDetectorRef, _breakpointObserver) {
          _classCallCheck2(this, TooltipComponent);

          this._changeDetectorRef = _changeDetectorRef;
          this._breakpointObserver = _breakpointObserver;
          /** Property watched by the animation framework to show or hide the tooltip */

          this._visibility = 'initial';
          /** Whether interactions on the page should close the tooltip */

          this._closeOnInteraction = false;
          /** Subject for notifying that the tooltip has been hidden from the view */

          this._onHide = new rxjs__WEBPACK_IMPORTED_MODULE_12__["Subject"]();
          /** Stream that emits whether the user has a handset-sized display.  */

          this._isHandset = this._breakpointObserver.observe(_angular_cdk_layout__WEBPACK_IMPORTED_MODULE_9__["Breakpoints"].Handset);
        }
        /**
         * Shows the tooltip with an animation originating from the provided origin
         * @param delay Amount of milliseconds to the delay showing the tooltip.
         */


        _createClass2(TooltipComponent, [{
          key: "show",
          value: function show(delay) {
            var _this703 = this;

            // Cancel the delayed hide if it is scheduled
            if (this._hideTimeoutId) {
              clearTimeout(this._hideTimeoutId);
              this._hideTimeoutId = null;
            } // Body interactions should cancel the tooltip if there is a delay in showing.


            this._closeOnInteraction = true;
            this._showTimeoutId = setTimeout(function () {
              _this703._visibility = 'visible';
              _this703._showTimeoutId = null; // Mark for check so if any parent component has set the
              // ChangeDetectionStrategy to OnPush it will be checked anyways

              _this703._markForCheck();
            }, delay);
          }
          /**
           * Begins the animation to hide the tooltip after the provided delay in ms.
           * @param delay Amount of milliseconds to delay showing the tooltip.
           */

        }, {
          key: "hide",
          value: function hide(delay) {
            var _this704 = this;

            // Cancel the delayed show if it is scheduled
            if (this._showTimeoutId) {
              clearTimeout(this._showTimeoutId);
              this._showTimeoutId = null;
            }

            this._hideTimeoutId = setTimeout(function () {
              _this704._visibility = 'hidden';
              _this704._hideTimeoutId = null; // Mark for check so if any parent component has set the
              // ChangeDetectionStrategy to OnPush it will be checked anyways

              _this704._markForCheck();
            }, delay);
          }
          /** Returns an observable that notifies when the tooltip has been hidden from view. */

        }, {
          key: "afterHidden",
          value: function afterHidden() {
            return this._onHide;
          }
          /** Whether the tooltip is being displayed. */

        }, {
          key: "isVisible",
          value: function isVisible() {
            return this._visibility === 'visible';
          }
        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            this._onHide.complete();
          }
        }, {
          key: "_animationStart",
          value: function _animationStart() {
            this._closeOnInteraction = false;
          }
        }, {
          key: "_animationDone",
          value: function _animationDone(event) {
            var toState = event.toState;

            if (toState === 'hidden' && !this.isVisible()) {
              this._onHide.next();
            }

            if (toState === 'visible' || toState === 'hidden') {
              this._closeOnInteraction = true;
            }
          }
          /**
           * Interactions on the HTML body should close the tooltip immediately as defined in the
           * material design spec.
           * https://material.io/design/components/tooltips.html#behavior
           */

        }, {
          key: "_handleBodyInteraction",
          value: function _handleBodyInteraction() {
            if (this._closeOnInteraction) {
              this.hide(0);
            }
          }
          /**
           * Marks that the tooltip needs to be checked in the next change detection run.
           * Mainly used for rendering the initial text before positioning a tooltip, which
           * can be problematic in components with OnPush change detection.
           */

        }, {
          key: "_markForCheck",
          value: function _markForCheck() {
            this._changeDetectorRef.markForCheck();
          }
        }]);

        return TooltipComponent;
      }();

      TooltipComponent.ɵfac = function TooltipComponent_Factory(t) {
        return new (t || TooltipComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_cdk_layout__WEBPACK_IMPORTED_MODULE_9__["BreakpointObserver"]));
      };

      TooltipComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({
        type: TooltipComponent,
        selectors: [["mat-tooltip-component"]],
        hostAttrs: ["aria-hidden", "true"],
        hostVars: 2,
        hostBindings: function TooltipComponent_HostBindings(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function TooltipComponent_click_HostBindingHandler() {
              return ctx._handleBodyInteraction();
            }, false, _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresolveBody"]);
          }

          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵstyleProp"]("zoom", ctx._visibility === "visible" ? 1 : null);
          }
        },
        decls: 3,
        vars: 7,
        consts: [[1, "mat-tooltip", 3, "ngClass"]],
        template: function TooltipComponent_Template(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 0);

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("@state.start", function TooltipComponent_Template_div_animation_state_start_0_listener() {
              return ctx._animationStart();
            })("@state.done", function TooltipComponent_Template_div_animation_state_done_0_listener($event) {
              return ctx._animationDone($event);
            });

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](1, "async");

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2);

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
          }

          if (rf & 2) {
            var tmp_0_0 = null;

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵclassProp"]("mat-tooltip-handset", (tmp_0_0 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind1"](1, 5, ctx._isHandset)) == null ? null : tmp_0_0.matches);

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngClass", ctx.tooltipClass)("@state", ctx._visibility);

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx.message);
          }
        },
        directives: [_angular_common__WEBPACK_IMPORTED_MODULE_2__["NgClass"]],
        pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_2__["AsyncPipe"]],
        styles: [".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],
        encapsulation: 2,
        data: {
          animation: [matTooltipAnimations.tooltipState]
        },
        changeDetection: 0
      });

      TooltipComponent.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ChangeDetectorRef"]
        }, {
          type: _angular_cdk_layout__WEBPACK_IMPORTED_MODULE_9__["BreakpointObserver"]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](TooltipComponent, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Component"],
          args: [{
            selector: 'mat-tooltip-component',
            template: "<div class=\"mat-tooltip\"\n     [ngClass]=\"tooltipClass\"\n     [class.mat-tooltip-handset]=\"(_isHandset | async)?.matches\"\n     [@state]=\"_visibility\"\n     (@state.start)=\"_animationStart()\"\n     (@state.done)=\"_animationDone($event)\">{{message}}</div>\n",
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewEncapsulation"].None,
            changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ChangeDetectionStrategy"].OnPush,
            animations: [matTooltipAnimations.tooltipState],
            host: {
              // Forces the element to have a layout in IE and Edge. This fixes issues where the element
              // won't be rendered if the animations are disabled or there is no web animations polyfill.
              '[style.zoom]': '_visibility === "visible" ? 1 : null',
              '(body:click)': 'this._handleBodyInteraction()',
              'aria-hidden': 'true'
            },
            styles: [".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"]
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ChangeDetectorRef"]
          }, {
            type: _angular_cdk_layout__WEBPACK_IMPORTED_MODULE_9__["BreakpointObserver"]
          }];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var MatTooltipModule = function MatTooltipModule() {
        _classCallCheck2(this, MatTooltipModule);
      };

      MatTooltipModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineNgModule"]({
        type: MatTooltipModule
      });
      MatTooltipModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineInjector"]({
        factory: function MatTooltipModule_Factory(t) {
          return new (t || MatTooltipModule)();
        },
        providers: [MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER],
        imports: [[_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_1__["A11yModule"], _angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"], _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_0__["OverlayModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_4__["MatCommonModule"]], _angular_material_core__WEBPACK_IMPORTED_MODULE_4__["MatCommonModule"], _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_5__["CdkScrollableModule"]]
      });

      (function () {
        (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵsetNgModuleScope"](MatTooltipModule, {
          declarations: function declarations() {
            return [MatTooltip, TooltipComponent];
          },
          imports: function imports() {
            return [_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_1__["A11yModule"], _angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"], _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_0__["OverlayModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_4__["MatCommonModule"]];
          },
          exports: function exports() {
            return [MatTooltip, TooltipComponent, _angular_material_core__WEBPACK_IMPORTED_MODULE_4__["MatCommonModule"], _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_5__["CdkScrollableModule"]];
          }
        });
      })();
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](MatTooltipModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["NgModule"],
          args: [{
            imports: [_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_1__["A11yModule"], _angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"], _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_0__["OverlayModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_4__["MatCommonModule"]],
            exports: [MatTooltip, TooltipComponent, _angular_material_core__WEBPACK_IMPORTED_MODULE_4__["MatCommonModule"], _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_5__["CdkScrollableModule"]],
            declarations: [MatTooltip, TooltipComponent],
            entryComponents: [TooltipComponent],
            providers: [MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER]
          }]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Generated bundle index. Do not edit.
       */
      //# sourceMappingURL=tooltip.js.map

      /***/

    },

    /***/
    "ZTz/": function ZTz(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MAT_SELECT_CONFIG", function () {
        return MAT_SELECT_CONFIG;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MAT_SELECT_SCROLL_STRATEGY", function () {
        return MAT_SELECT_SCROLL_STRATEGY;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MAT_SELECT_SCROLL_STRATEGY_PROVIDER", function () {
        return MAT_SELECT_SCROLL_STRATEGY_PROVIDER;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MAT_SELECT_SCROLL_STRATEGY_PROVIDER_FACTORY", function () {
        return MAT_SELECT_SCROLL_STRATEGY_PROVIDER_FACTORY;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MAT_SELECT_TRIGGER", function () {
        return MAT_SELECT_TRIGGER;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatSelect", function () {
        return MatSelect;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatSelectChange", function () {
        return MatSelectChange;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatSelectModule", function () {
        return MatSelectModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatSelectTrigger", function () {
        return MatSelectTrigger;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "SELECT_ITEM_HEIGHT_EM", function () {
        return SELECT_ITEM_HEIGHT_EM;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "SELECT_MULTIPLE_PANEL_PADDING_X", function () {
        return SELECT_MULTIPLE_PANEL_PADDING_X;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "SELECT_PANEL_INDENT_PADDING_X", function () {
        return SELECT_PANEL_INDENT_PADDING_X;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "SELECT_PANEL_MAX_HEIGHT", function () {
        return SELECT_PANEL_MAX_HEIGHT;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "SELECT_PANEL_PADDING_X", function () {
        return SELECT_PANEL_PADDING_X;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "SELECT_PANEL_VIEWPORT_PADDING", function () {
        return SELECT_PANEL_VIEWPORT_PADDING;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "_MatSelectBase", function () {
        return _MatSelectBase;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "matSelectAnimations", function () {
        return matSelectAnimations;
      });
      /* harmony import */


      var _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/cdk/overlay */
      "1O3W");
      /* harmony import */


      var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/common */
      "SVse");
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /* harmony import */


      var _angular_material_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! @angular/material/core */
      "UhP/");
      /* harmony import */


      var _angular_material_form_field__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! @angular/material/form-field */
      "Q2Ze");
      /* harmony import */


      var _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! @angular/cdk/scrolling */
      "7KAL");
      /* harmony import */


      var _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
      /*! @angular/cdk/a11y */
      "YEUz");
      /* harmony import */


      var _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
      /*! @angular/cdk/bidi */
      "9gLZ");
      /* harmony import */


      var _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
      /*! @angular/cdk/coercion */
      "8LU1");
      /* harmony import */


      var _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
      /*! @angular/cdk/collections */
      "CtHx");
      /* harmony import */


      var _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(
      /*! @angular/cdk/keycodes */
      "Ht+U");
      /* harmony import */


      var _angular_forms__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(
      /*! @angular/forms */
      "s7LF");
      /* harmony import */


      var rxjs__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(
      /*! rxjs */
      "qCKp");
      /* harmony import */


      var rxjs_operators__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(
      /*! rxjs/operators */
      "kU1M");
      /* harmony import */


      var _angular_animations__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(
      /*! @angular/animations */
      "GS7A");
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * The following are all the animations for the mat-select component, with each
       * const containing the metadata for one animation.
       *
       * The values below match the implementation of the AngularJS Material mat-select animation.
       * @docs-private
       */


      var _c0 = ["trigger"];
      var _c1 = ["panel"];

      function MatSelect_span_4_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "span", 8);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
        }

        if (rf & 2) {
          var ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](ctx_r2.placeholder || "\xA0");
        }
      }

      function MatSelect_span_5_span_1_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "span");

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
        }

        if (rf & 2) {
          var ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](ctx_r5.triggerValue || "\xA0");
        }
      }

      function MatSelect_span_5_ng_content_2_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵprojection"](0, 0, ["*ngSwitchCase", "true"]);
        }
      }

      function MatSelect_span_5_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "span", 9);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, MatSelect_span_5_span_1_Template, 2, 1, "span", 10);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](2, MatSelect_span_5_ng_content_2_Template, 1, 0, "ng-content", 11);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
        }

        if (rf & 2) {
          var ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngSwitch", !!ctx_r3.customTrigger);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngSwitchCase", true);
        }
      }

      function MatSelect_ng_template_8_Template(rf, ctx) {
        if (rf & 1) {
          var _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 12);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 13, 14);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("@transformPanel.done", function MatSelect_ng_template_8_Template_div_animation_transformPanel_done_1_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r9);

            var ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();

            return ctx_r8._panelDoneAnimatingStream.next($event.toState);
          })("keydown", function MatSelect_ng_template_8_Template_div_keydown_1_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r9);

            var ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();

            return ctx_r10._handleKeydown($event);
          });

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵprojection"](3, 1);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
        }

        if (rf & 2) {
          var ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("@transformPanelWrap", undefined);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassMapInterpolate1"]("mat-select-panel ", ctx_r4._getPanelTheme(), "");

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵstyleProp"]("transform-origin", ctx_r4._transformOrigin)("font-size", ctx_r4._triggerFontSize, "px");

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", ctx_r4.panelClass)("@transformPanel", ctx_r4.multiple ? "showing-multiple" : "showing");

          _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵattribute"]("id", ctx_r4.id + "-panel")("aria-multiselectable", ctx_r4.multiple)("aria-label", ctx_r4.ariaLabel || null)("aria-labelledby", ctx_r4._getPanelAriaLabelledby());
        }
      }

      var _c2 = [[["mat-select-trigger"]], "*"];
      var _c3 = ["mat-select-trigger", "*"];
      var matSelectAnimations = {
        /**
         * This animation ensures the select's overlay panel animation (transformPanel) is called when
         * closing the select.
         * This is needed due to https://github.com/angular/angular/issues/23302
         */
        transformPanelWrap: Object(_angular_animations__WEBPACK_IMPORTED_MODULE_14__["trigger"])('transformPanelWrap', [Object(_angular_animations__WEBPACK_IMPORTED_MODULE_14__["transition"])('* => void', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_14__["query"])('@transformPanel', [Object(_angular_animations__WEBPACK_IMPORTED_MODULE_14__["animateChild"])()], {
          optional: true
        }))]),

        /**
         * This animation transforms the select's overlay panel on and off the page.
         *
         * When the panel is attached to the DOM, it expands its width by the amount of padding, scales it
         * up to 100% on the Y axis, fades in its border, and translates slightly up and to the
         * side to ensure the option text correctly overlaps the trigger text.
         *
         * When the panel is removed from the DOM, it simply fades out linearly.
         */
        transformPanel: Object(_angular_animations__WEBPACK_IMPORTED_MODULE_14__["trigger"])('transformPanel', [Object(_angular_animations__WEBPACK_IMPORTED_MODULE_14__["state"])('void', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_14__["style"])({
          transform: 'scaleY(0.8)',
          minWidth: '100%',
          opacity: 0
        })), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_14__["state"])('showing', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_14__["style"])({
          opacity: 1,
          minWidth: 'calc(100% + 32px)',
          transform: 'scaleY(1)'
        })), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_14__["state"])('showing-multiple', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_14__["style"])({
          opacity: 1,
          minWidth: 'calc(100% + 64px)',
          transform: 'scaleY(1)'
        })), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_14__["transition"])('void => *', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_14__["animate"])('120ms cubic-bezier(0, 0, 0.2, 1)')), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_14__["transition"])('* => void', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_14__["animate"])('100ms 25ms linear', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_14__["style"])({
          opacity: 0
        })))])
      };
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Returns an exception to be thrown when attempting to change a select's `multiple` option
       * after initialization.
       * @docs-private
       */

      function getMatSelectDynamicMultipleError() {
        return Error('Cannot change `multiple` mode of select after initialization.');
      }
      /**
       * Returns an exception to be thrown when attempting to assign a non-array value to a select
       * in `multiple` mode. Note that `undefined` and `null` are still valid values to allow for
       * resetting the value.
       * @docs-private
       */


      function getMatSelectNonArrayValueError() {
        return Error('Value must be an array in multiple-selection mode.');
      }
      /**
       * Returns an exception to be thrown when assigning a non-function value to the comparator
       * used to determine if a value corresponds to an option. Note that whether the function
       * actually takes two values and returns a boolean is not checked.
       */


      function getMatSelectNonFunctionValueError() {
        return Error('`compareWith` must be a function.');
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var nextUniqueId = 0;
      /**
       * The following style constants are necessary to save here in order
       * to properly calculate the alignment of the selected option over
       * the trigger element.
       */

      /**
       * The max height of the select's overlay panel.
       * @deprecated To be turned into a private variable.
       * @breaking-change 12.0.0
       */

      var SELECT_PANEL_MAX_HEIGHT = 256;
      /**
       * The panel's padding on the x-axis.
       * @deprecated To be turned into a private variable.
       * @breaking-change 12.0.0
       */

      var SELECT_PANEL_PADDING_X = 16;
      /**
       * The panel's x axis padding if it is indented (e.g. there is an option group).
       * @deprecated To be turned into a private variable.
       * @breaking-change 12.0.0
       */

      var SELECT_PANEL_INDENT_PADDING_X = SELECT_PANEL_PADDING_X * 2;
      /**
       * The height of the select items in `em` units.
       * @deprecated To be turned into a private variable.
       * @breaking-change 12.0.0
       */

      var SELECT_ITEM_HEIGHT_EM = 3; // TODO(josephperrott): Revert to a constant after 2018 spec updates are fully merged.

      /**
       * Distance between the panel edge and the option text in
       * multi-selection mode.
       *
       * Calculated as:
       * (SELECT_PANEL_PADDING_X * 1.5) + 16 = 40
       * The padding is multiplied by 1.5 because the checkbox's margin is half the padding.
       * The checkbox width is 16px.
       *
       * @deprecated To be turned into a private variable.
       * @breaking-change 12.0.0
       */

      var SELECT_MULTIPLE_PANEL_PADDING_X = SELECT_PANEL_PADDING_X * 1.5 + 16;
      /**
       * The select panel will only "fit" inside the viewport if it is positioned at
       * this value or more away from the viewport boundary.
       *
       * @deprecated To be turned into a private variable.
       * @breaking-change 12.0.0
       */

      var SELECT_PANEL_VIEWPORT_PADDING = 8;
      /** Injection token that determines the scroll handling while a select is open. */

      var MAT_SELECT_SCROLL_STRATEGY = new _angular_core__WEBPACK_IMPORTED_MODULE_2__["InjectionToken"]('mat-select-scroll-strategy');
      /** @docs-private */

      function MAT_SELECT_SCROLL_STRATEGY_PROVIDER_FACTORY(overlay) {
        return function () {
          return overlay.scrollStrategies.reposition();
        };
      }
      /** Injection token that can be used to provide the default options the select module. */


      var MAT_SELECT_CONFIG = new _angular_core__WEBPACK_IMPORTED_MODULE_2__["InjectionToken"]('MAT_SELECT_CONFIG');
      /** @docs-private */

      var MAT_SELECT_SCROLL_STRATEGY_PROVIDER = {
        provide: MAT_SELECT_SCROLL_STRATEGY,
        deps: [_angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_0__["Overlay"]],
        useFactory: MAT_SELECT_SCROLL_STRATEGY_PROVIDER_FACTORY
      };
      /** Change event object that is emitted when the select value has changed. */

      var MatSelectChange = function MatSelectChange(
      /** Reference to the select that emitted the change event. */
      source,
      /** Current value of the select that emitted the event. */
      value) {
        _classCallCheck2(this, MatSelectChange);

        this.source = source;
        this.value = value;
      }; // Boilerplate for applying mixins to MatSelect.

      /** @docs-private */


      var MatSelectBase = function MatSelectBase(_elementRef, _defaultErrorStateMatcher, _parentForm, _parentFormGroup, ngControl) {
        _classCallCheck2(this, MatSelectBase);

        this._elementRef = _elementRef;
        this._defaultErrorStateMatcher = _defaultErrorStateMatcher;
        this._parentForm = _parentForm;
        this._parentFormGroup = _parentFormGroup;
        this.ngControl = ngControl;
      };

      var _MatSelectMixinBase = Object(_angular_material_core__WEBPACK_IMPORTED_MODULE_3__["mixinDisableRipple"])(Object(_angular_material_core__WEBPACK_IMPORTED_MODULE_3__["mixinTabIndex"])(Object(_angular_material_core__WEBPACK_IMPORTED_MODULE_3__["mixinDisabled"])(Object(_angular_material_core__WEBPACK_IMPORTED_MODULE_3__["mixinErrorState"])(MatSelectBase))));
      /**
       * Injection token that can be used to reference instances of `MatSelectTrigger`. It serves as
       * alternative token to the actual `MatSelectTrigger` class which could cause unnecessary
       * retention of the class and its directive metadata.
       */


      var MAT_SELECT_TRIGGER = new _angular_core__WEBPACK_IMPORTED_MODULE_2__["InjectionToken"]('MatSelectTrigger');
      /**
       * Allows the user to customize the trigger that is displayed when the select has a value.
       */

      var MatSelectTrigger = function MatSelectTrigger() {
        _classCallCheck2(this, MatSelectTrigger);
      };

      MatSelectTrigger.ɵfac = function MatSelectTrigger_Factory(t) {
        return new (t || MatSelectTrigger)();
      };

      MatSelectTrigger.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineDirective"]({
        type: MatSelectTrigger,
        selectors: [["mat-select-trigger"]],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵProvidersFeature"]([{
          provide: MAT_SELECT_TRIGGER,
          useExisting: MatSelectTrigger
        }])]
      });
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵsetClassMetadata"](MatSelectTrigger, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Directive"],
          args: [{
            selector: 'mat-select-trigger',
            providers: [{
              provide: MAT_SELECT_TRIGGER,
              useExisting: MatSelectTrigger
            }]
          }]
        }], null, null);
      })();
      /** Base class with all of the `MatSelect` functionality. */


      var _MatSelectBase = /*#__PURE__*/function (_MatSelectMixinBase2) {
        _inherits2(_MatSelectBase, _MatSelectMixinBase2);

        var _super354 = _createSuper2(_MatSelectBase);

        function _MatSelectBase(_viewportRuler, _changeDetectorRef, _ngZone, _defaultErrorStateMatcher, elementRef, _dir, _parentForm, _parentFormGroup, _parentFormField, ngControl, tabIndex, scrollStrategyFactory, _liveAnnouncer, _defaultOptions) {
          var _this705;

          _classCallCheck2(this, _MatSelectBase);

          var _a, _b, _c, _d, _e;

          _this705 = _super354.call(this, elementRef, _defaultErrorStateMatcher, _parentForm, _parentFormGroup, ngControl);
          _this705._viewportRuler = _viewportRuler;
          _this705._changeDetectorRef = _changeDetectorRef;
          _this705._ngZone = _ngZone;
          _this705._dir = _dir;
          _this705._parentFormField = _parentFormField;
          _this705.ngControl = ngControl;
          _this705._liveAnnouncer = _liveAnnouncer;
          _this705._defaultOptions = _defaultOptions;
          /** Whether or not the overlay panel is open. */

          _this705._panelOpen = false;
          /** Comparison function to specify which option is displayed. Defaults to object equality. */

          _this705._compareWith = function (o1, o2) {
            return o1 === o2;
          };
          /** Unique id for this input. */


          _this705._uid = "mat-select-".concat(nextUniqueId++);
          /** Current `ariar-labelledby` value for the select trigger. */

          _this705._triggerAriaLabelledBy = null;
          /** Emits whenever the component is destroyed. */

          _this705._destroy = new rxjs__WEBPACK_IMPORTED_MODULE_12__["Subject"]();
          /** `View -> model callback called when value changes` */

          _this705._onChange = function () {};
          /** `View -> model callback called when select has been touched` */


          _this705._onTouched = function () {};
          /** ID for the DOM node containing the select's value. */


          _this705._valueId = "mat-select-value-".concat(nextUniqueId++);
          /** Emits when the panel element is finished transforming in. */

          _this705._panelDoneAnimatingStream = new rxjs__WEBPACK_IMPORTED_MODULE_12__["Subject"]();
          _this705._overlayPanelClass = ((_a = _this705._defaultOptions) === null || _a === void 0 ? void 0 : _a.overlayPanelClass) || '';
          _this705._focused = false;
          /** A name for this control that can be used by `mat-form-field`. */

          _this705.controlType = 'mat-select';
          _this705._required = false;
          _this705._multiple = false;
          _this705._disableOptionCentering = (_c = (_b = _this705._defaultOptions) === null || _b === void 0 ? void 0 : _b.disableOptionCentering) !== null && _c !== void 0 ? _c : false;
          /** Aria label of the select. If not specified, the placeholder will be used as label. */

          _this705.ariaLabel = '';
          _this705._typeaheadDebounceInterval = (_e = (_d = _this705._defaultOptions) === null || _d === void 0 ? void 0 : _d.typeaheadDebounceInterval) !== null && _e !== void 0 ? _e : 0;
          /** Combined stream of all of the child options' change events. */

          _this705.optionSelectionChanges = Object(rxjs__WEBPACK_IMPORTED_MODULE_12__["defer"])(function () {
            var options = _this705.options;

            if (options) {
              return options.changes.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_13__["startWith"])(options), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_13__["switchMap"])(function () {
                return Object(rxjs__WEBPACK_IMPORTED_MODULE_12__["merge"]).apply(void 0, _toConsumableArray(options.map(function (option) {
                  return option.onSelectionChange;
                })));
              }));
            }

            return _this705._ngZone.onStable.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_13__["take"])(1), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_13__["switchMap"])(function () {
              return _this705.optionSelectionChanges;
            }));
          });
          /** Event emitted when the select panel has been toggled. */

          _this705.openedChange = new _angular_core__WEBPACK_IMPORTED_MODULE_2__["EventEmitter"]();
          /** Event emitted when the select has been opened. */

          _this705._openedStream = _this705.openedChange.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_13__["filter"])(function (o) {
            return o;
          }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_13__["map"])(function () {}));
          /** Event emitted when the select has been closed. */

          _this705._closedStream = _this705.openedChange.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_13__["filter"])(function (o) {
            return !o;
          }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_13__["map"])(function () {}));
          /** Event emitted when the selected value has been changed by the user. */

          _this705.selectionChange = new _angular_core__WEBPACK_IMPORTED_MODULE_2__["EventEmitter"]();
          /**
           * Event that emits whenever the raw value of the select changes. This is here primarily
           * to facilitate the two-way binding for the `value` input.
           * @docs-private
           */

          _this705.valueChange = new _angular_core__WEBPACK_IMPORTED_MODULE_2__["EventEmitter"]();

          if (_this705.ngControl) {
            // Note: we provide the value accessor through here, instead of
            // the `providers` to avoid running into a circular import.
            _this705.ngControl.valueAccessor = _assertThisInitialized2(_this705);
          }

          _this705._scrollStrategyFactory = scrollStrategyFactory;
          _this705._scrollStrategy = _this705._scrollStrategyFactory();
          _this705.tabIndex = parseInt(tabIndex) || 0; // Force setter to be called in case id was not specified.

          _this705.id = _this705.id;
          return _this705;
        }
        /** Whether the select is focused. */


        _createClass2(_MatSelectBase, [{
          key: "focused",
          get: function get() {
            return this._focused || this._panelOpen;
          }
          /** Placeholder to be shown if no value has been selected. */

        }, {
          key: "placeholder",
          get: function get() {
            return this._placeholder;
          },
          set: function set(value) {
            this._placeholder = value;
            this.stateChanges.next();
          }
          /** Whether the component is required. */

        }, {
          key: "required",
          get: function get() {
            return this._required;
          },
          set: function set(value) {
            this._required = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_8__["coerceBooleanProperty"])(value);
            this.stateChanges.next();
          }
          /** Whether the user should be allowed to select multiple options. */

        }, {
          key: "multiple",
          get: function get() {
            return this._multiple;
          },
          set: function set(value) {
            if (this._selectionModel && (typeof ngDevMode === 'undefined' || ngDevMode)) {
              throw getMatSelectDynamicMultipleError();
            }

            this._multiple = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_8__["coerceBooleanProperty"])(value);
          }
          /** Whether to center the active option over the trigger. */

        }, {
          key: "disableOptionCentering",
          get: function get() {
            return this._disableOptionCentering;
          },
          set: function set(value) {
            this._disableOptionCentering = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_8__["coerceBooleanProperty"])(value);
          }
          /**
           * Function to compare the option values with the selected values. The first argument
           * is a value from an option. The second is a value from the selection. A boolean
           * should be returned.
           */

        }, {
          key: "compareWith",
          get: function get() {
            return this._compareWith;
          },
          set: function set(fn) {
            if (typeof fn !== 'function' && (typeof ngDevMode === 'undefined' || ngDevMode)) {
              throw getMatSelectNonFunctionValueError();
            }

            this._compareWith = fn;

            if (this._selectionModel) {
              // A different comparator means the selection could change.
              this._initializeSelection();
            }
          }
          /** Value of the select control. */

        }, {
          key: "value",
          get: function get() {
            return this._value;
          },
          set: function set(newValue) {
            if (newValue !== this._value) {
              if (this.options) {
                this._setSelectionByValue(newValue);
              }

              this._value = newValue;
            }
          }
          /** Time to wait in milliseconds after the last keystroke before moving focus to an item. */

        }, {
          key: "typeaheadDebounceInterval",
          get: function get() {
            return this._typeaheadDebounceInterval;
          },
          set: function set(value) {
            this._typeaheadDebounceInterval = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_8__["coerceNumberProperty"])(value);
          }
          /** Unique id of the element. */

        }, {
          key: "id",
          get: function get() {
            return this._id;
          },
          set: function set(value) {
            this._id = value || this._uid;
            this.stateChanges.next();
          }
        }, {
          key: "ngOnInit",
          value: function ngOnInit() {
            var _this706 = this;

            this._selectionModel = new _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_9__["SelectionModel"](this.multiple);
            this.stateChanges.next(); // We need `distinctUntilChanged` here, because some browsers will
            // fire the animation end event twice for the same animation. See:
            // https://github.com/angular/angular/issues/24084

            this._panelDoneAnimatingStream.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_13__["distinctUntilChanged"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_13__["takeUntil"])(this._destroy)).subscribe(function () {
              return _this706._panelDoneAnimating(_this706.panelOpen);
            });
          }
        }, {
          key: "ngAfterContentInit",
          value: function ngAfterContentInit() {
            var _this707 = this;

            this._initKeyManager();

            this._selectionModel.changed.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_13__["takeUntil"])(this._destroy)).subscribe(function (event) {
              event.added.forEach(function (option) {
                return option.select();
              });
              event.removed.forEach(function (option) {
                return option.deselect();
              });
            });

            this.options.changes.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_13__["startWith"])(null), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_13__["takeUntil"])(this._destroy)).subscribe(function () {
              _this707._resetOptions();

              _this707._initializeSelection();
            });
          }
        }, {
          key: "ngDoCheck",
          value: function ngDoCheck() {
            var newAriaLabelledby = this._getTriggerAriaLabelledby(); // We have to manage setting the `aria-labelledby` ourselves, because part of its value
            // is computed as a result of a content query which can cause this binding to trigger a
            // "changed after checked" error.


            if (newAriaLabelledby !== this._triggerAriaLabelledBy) {
              var element = this._elementRef.nativeElement;
              this._triggerAriaLabelledBy = newAriaLabelledby;

              if (newAriaLabelledby) {
                element.setAttribute('aria-labelledby', newAriaLabelledby);
              } else {
                element.removeAttribute('aria-labelledby');
              }
            }

            if (this.ngControl) {
              this.updateErrorState();
            }
          }
        }, {
          key: "ngOnChanges",
          value: function ngOnChanges(changes) {
            // Updating the disabled state is handled by `mixinDisabled`, but we need to additionally let
            // the parent form field know to run change detection when the disabled state changes.
            if (changes['disabled']) {
              this.stateChanges.next();
            }

            if (changes['typeaheadDebounceInterval'] && this._keyManager) {
              this._keyManager.withTypeAhead(this._typeaheadDebounceInterval);
            }
          }
        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            this._destroy.next();

            this._destroy.complete();

            this.stateChanges.complete();
          }
          /** Toggles the overlay panel open or closed. */

        }, {
          key: "toggle",
          value: function toggle() {
            this.panelOpen ? this.close() : this.open();
          }
          /** Opens the overlay panel. */

        }, {
          key: "open",
          value: function open() {
            if (this._canOpen()) {
              this._panelOpen = true;

              this._keyManager.withHorizontalOrientation(null);

              this._highlightCorrectOption();

              this._changeDetectorRef.markForCheck();
            }
          }
          /** Closes the overlay panel and focuses the host element. */

        }, {
          key: "close",
          value: function close() {
            if (this._panelOpen) {
              this._panelOpen = false;

              this._keyManager.withHorizontalOrientation(this._isRtl() ? 'rtl' : 'ltr');

              this._changeDetectorRef.markForCheck();

              this._onTouched();
            }
          }
          /**
           * Sets the select's value. Part of the ControlValueAccessor interface
           * required to integrate with Angular's core forms API.
           *
           * @param value New value to be written to the model.
           */

        }, {
          key: "writeValue",
          value: function writeValue(value) {
            this.value = value;
          }
          /**
           * Saves a callback function to be invoked when the select's value
           * changes from user input. Part of the ControlValueAccessor interface
           * required to integrate with Angular's core forms API.
           *
           * @param fn Callback to be triggered when the value changes.
           */

        }, {
          key: "registerOnChange",
          value: function registerOnChange(fn) {
            this._onChange = fn;
          }
          /**
           * Saves a callback function to be invoked when the select is blurred
           * by the user. Part of the ControlValueAccessor interface required
           * to integrate with Angular's core forms API.
           *
           * @param fn Callback to be triggered when the component has been touched.
           */

        }, {
          key: "registerOnTouched",
          value: function registerOnTouched(fn) {
            this._onTouched = fn;
          }
          /**
           * Disables the select. Part of the ControlValueAccessor interface required
           * to integrate with Angular's core forms API.
           *
           * @param isDisabled Sets whether the component is disabled.
           */

        }, {
          key: "setDisabledState",
          value: function setDisabledState(isDisabled) {
            this.disabled = isDisabled;

            this._changeDetectorRef.markForCheck();

            this.stateChanges.next();
          }
          /** Whether or not the overlay panel is open. */

        }, {
          key: "panelOpen",
          get: function get() {
            return this._panelOpen;
          }
          /** The currently selected option. */

        }, {
          key: "selected",
          get: function get() {
            return this.multiple ? this._selectionModel.selected : this._selectionModel.selected[0];
          }
          /** The value displayed in the trigger. */

        }, {
          key: "triggerValue",
          get: function get() {
            if (this.empty) {
              return '';
            }

            if (this._multiple) {
              var selectedOptions = this._selectionModel.selected.map(function (option) {
                return option.viewValue;
              });

              if (this._isRtl()) {
                selectedOptions.reverse();
              } // TODO(crisbeto): delimiter should be configurable for proper localization.


              return selectedOptions.join(', ');
            }

            return this._selectionModel.selected[0].viewValue;
          }
          /** Whether the element is in RTL mode. */

        }, {
          key: "_isRtl",
          value: function _isRtl() {
            return this._dir ? this._dir.value === 'rtl' : false;
          }
          /** Handles all keydown events on the select. */

        }, {
          key: "_handleKeydown",
          value: function _handleKeydown(event) {
            if (!this.disabled) {
              this.panelOpen ? this._handleOpenKeydown(event) : this._handleClosedKeydown(event);
            }
          }
          /** Handles keyboard events while the select is closed. */

        }, {
          key: "_handleClosedKeydown",
          value: function _handleClosedKeydown(event) {
            var keyCode = event.keyCode;
            var isArrowKey = keyCode === _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_10__["DOWN_ARROW"] || keyCode === _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_10__["UP_ARROW"] || keyCode === _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_10__["LEFT_ARROW"] || keyCode === _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_10__["RIGHT_ARROW"];
            var isOpenKey = keyCode === _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_10__["ENTER"] || keyCode === _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_10__["SPACE"];
            var manager = this._keyManager; // Open the select on ALT + arrow key to match the native <select>

            if (!manager.isTyping() && isOpenKey && !Object(_angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_10__["hasModifierKey"])(event) || (this.multiple || event.altKey) && isArrowKey) {
              event.preventDefault(); // prevents the page from scrolling down when pressing space

              this.open();
            } else if (!this.multiple) {
              var previouslySelectedOption = this.selected;
              manager.onKeydown(event);
              var selectedOption = this.selected; // Since the value has changed, we need to announce it ourselves.

              if (selectedOption && previouslySelectedOption !== selectedOption) {
                // We set a duration on the live announcement, because we want the live element to be
                // cleared after a while so that users can't navigate to it using the arrow keys.
                this._liveAnnouncer.announce(selectedOption.viewValue, 10000);
              }
            }
          }
          /** Handles keyboard events when the selected is open. */

        }, {
          key: "_handleOpenKeydown",
          value: function _handleOpenKeydown(event) {
            var manager = this._keyManager;
            var keyCode = event.keyCode;
            var isArrowKey = keyCode === _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_10__["DOWN_ARROW"] || keyCode === _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_10__["UP_ARROW"];
            var isTyping = manager.isTyping();

            if (isArrowKey && event.altKey) {
              // Close the select on ALT + arrow key to match the native <select>
              event.preventDefault();
              this.close(); // Don't do anything in this case if the user is typing,
              // because the typing sequence can include the space key.
            } else if (!isTyping && (keyCode === _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_10__["ENTER"] || keyCode === _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_10__["SPACE"]) && manager.activeItem && !Object(_angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_10__["hasModifierKey"])(event)) {
              event.preventDefault();

              manager.activeItem._selectViaInteraction();
            } else if (!isTyping && this._multiple && keyCode === _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_10__["A"] && event.ctrlKey) {
              event.preventDefault();
              var hasDeselectedOptions = this.options.some(function (opt) {
                return !opt.disabled && !opt.selected;
              });
              this.options.forEach(function (option) {
                if (!option.disabled) {
                  hasDeselectedOptions ? option.select() : option.deselect();
                }
              });
            } else {
              var previouslyFocusedIndex = manager.activeItemIndex;
              manager.onKeydown(event);

              if (this._multiple && isArrowKey && event.shiftKey && manager.activeItem && manager.activeItemIndex !== previouslyFocusedIndex) {
                manager.activeItem._selectViaInteraction();
              }
            }
          }
        }, {
          key: "_onFocus",
          value: function _onFocus() {
            if (!this.disabled) {
              this._focused = true;
              this.stateChanges.next();
            }
          }
          /**
           * Calls the touched callback only if the panel is closed. Otherwise, the trigger will
           * "blur" to the panel when it opens, causing a false positive.
           */

        }, {
          key: "_onBlur",
          value: function _onBlur() {
            this._focused = false;

            if (!this.disabled && !this.panelOpen) {
              this._onTouched();

              this._changeDetectorRef.markForCheck();

              this.stateChanges.next();
            }
          }
          /**
           * Callback that is invoked when the overlay panel has been attached.
           */

        }, {
          key: "_onAttached",
          value: function _onAttached() {
            var _this708 = this;

            this.overlayDir.positionChange.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_13__["take"])(1)).subscribe(function () {
              _this708._changeDetectorRef.detectChanges();

              _this708._positioningSettled();
            });
          }
          /** Returns the theme to be used on the panel. */

        }, {
          key: "_getPanelTheme",
          value: function _getPanelTheme() {
            return this._parentFormField ? "mat-".concat(this._parentFormField.color) : '';
          }
          /** Whether the select has a value. */

        }, {
          key: "empty",
          get: function get() {
            return !this._selectionModel || this._selectionModel.isEmpty();
          }
        }, {
          key: "_initializeSelection",
          value: function _initializeSelection() {
            var _this709 = this;

            // Defer setting the value in order to avoid the "Expression
            // has changed after it was checked" errors from Angular.
            Promise.resolve().then(function () {
              _this709._setSelectionByValue(_this709.ngControl ? _this709.ngControl.value : _this709._value);

              _this709.stateChanges.next();
            });
          }
          /**
           * Sets the selected option based on a value. If no option can be
           * found with the designated value, the select trigger is cleared.
           */

        }, {
          key: "_setSelectionByValue",
          value: function _setSelectionByValue(value) {
            var _this710 = this;

            this._selectionModel.selected.forEach(function (option) {
              return option.setInactiveStyles();
            });

            this._selectionModel.clear();

            if (this.multiple && value) {
              if (!Array.isArray(value) && (typeof ngDevMode === 'undefined' || ngDevMode)) {
                throw getMatSelectNonArrayValueError();
              }

              value.forEach(function (currentValue) {
                return _this710._selectValue(currentValue);
              });

              this._sortValues();
            } else {
              var correspondingOption = this._selectValue(value); // Shift focus to the active item. Note that we shouldn't do this in multiple
              // mode, because we don't know what option the user interacted with last.


              if (correspondingOption) {
                this._keyManager.updateActiveItem(correspondingOption);
              } else if (!this.panelOpen) {
                // Otherwise reset the highlighted option. Note that we only want to do this while
                // closed, because doing it while open can shift the user's focus unnecessarily.
                this._keyManager.updateActiveItem(-1);
              }
            }

            this._changeDetectorRef.markForCheck();
          }
          /**
           * Finds and selects and option based on its value.
           * @returns Option that has the corresponding value.
           */

        }, {
          key: "_selectValue",
          value: function _selectValue(value) {
            var _this711 = this;

            var correspondingOption = this.options.find(function (option) {
              try {
                // Treat null as a special reset value.
                return option.value != null && _this711._compareWith(option.value, value);
              } catch (error) {
                if (typeof ngDevMode === 'undefined' || ngDevMode) {
                  // Notify developers of errors in their comparator.
                  console.warn(error);
                }

                return false;
              }
            });

            if (correspondingOption) {
              this._selectionModel.select(correspondingOption);
            }

            return correspondingOption;
          }
          /** Sets up a key manager to listen to keyboard events on the overlay panel. */

        }, {
          key: "_initKeyManager",
          value: function _initKeyManager() {
            var _this712 = this;

            this._keyManager = new _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_6__["ActiveDescendantKeyManager"](this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl() ? 'rtl' : 'ltr').withHomeAndEnd().withAllowedModifierKeys(['shiftKey']);

            this._keyManager.tabOut.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_13__["takeUntil"])(this._destroy)).subscribe(function () {
              if (_this712.panelOpen) {
                // Select the active item when tabbing away. This is consistent with how the native
                // select behaves. Note that we only want to do this in single selection mode.
                if (!_this712.multiple && _this712._keyManager.activeItem) {
                  _this712._keyManager.activeItem._selectViaInteraction();
                } // Restore focus to the trigger before closing. Ensures that the focus
                // position won't be lost if the user got focus into the overlay.


                _this712.focus();

                _this712.close();
              }
            });

            this._keyManager.change.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_13__["takeUntil"])(this._destroy)).subscribe(function () {
              if (_this712._panelOpen && _this712.panel) {
                _this712._scrollOptionIntoView(_this712._keyManager.activeItemIndex || 0);
              } else if (!_this712._panelOpen && !_this712.multiple && _this712._keyManager.activeItem) {
                _this712._keyManager.activeItem._selectViaInteraction();
              }
            });
          }
          /** Drops current option subscriptions and IDs and resets from scratch. */

        }, {
          key: "_resetOptions",
          value: function _resetOptions() {
            var _this713 = this;

            var changedOrDestroyed = Object(rxjs__WEBPACK_IMPORTED_MODULE_12__["merge"])(this.options.changes, this._destroy);
            this.optionSelectionChanges.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_13__["takeUntil"])(changedOrDestroyed)).subscribe(function (event) {
              _this713._onSelect(event.source, event.isUserInput);

              if (event.isUserInput && !_this713.multiple && _this713._panelOpen) {
                _this713.close();

                _this713.focus();
              }
            }); // Listen to changes in the internal state of the options and react accordingly.
            // Handles cases like the labels of the selected options changing.

            Object(rxjs__WEBPACK_IMPORTED_MODULE_12__["merge"]).apply(void 0, _toConsumableArray(this.options.map(function (option) {
              return option._stateChanges;
            }))).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_13__["takeUntil"])(changedOrDestroyed)).subscribe(function () {
              _this713._changeDetectorRef.markForCheck();

              _this713.stateChanges.next();
            });
          }
          /** Invoked when an option is clicked. */

        }, {
          key: "_onSelect",
          value: function _onSelect(option, isUserInput) {
            var wasSelected = this._selectionModel.isSelected(option);

            if (option.value == null && !this._multiple) {
              option.deselect();

              this._selectionModel.clear();

              if (this.value != null) {
                this._propagateChanges(option.value);
              }
            } else {
              if (wasSelected !== option.selected) {
                option.selected ? this._selectionModel.select(option) : this._selectionModel.deselect(option);
              }

              if (isUserInput) {
                this._keyManager.setActiveItem(option);
              }

              if (this.multiple) {
                this._sortValues();

                if (isUserInput) {
                  // In case the user selected the option with their mouse, we
                  // want to restore focus back to the trigger, in order to
                  // prevent the select keyboard controls from clashing with
                  // the ones from `mat-option`.
                  this.focus();
                }
              }
            }

            if (wasSelected !== this._selectionModel.isSelected(option)) {
              this._propagateChanges();
            }

            this.stateChanges.next();
          }
          /** Sorts the selected values in the selected based on their order in the panel. */

        }, {
          key: "_sortValues",
          value: function _sortValues() {
            var _this714 = this;

            if (this.multiple) {
              var options = this.options.toArray();

              this._selectionModel.sort(function (a, b) {
                return _this714.sortComparator ? _this714.sortComparator(a, b, options) : options.indexOf(a) - options.indexOf(b);
              });

              this.stateChanges.next();
            }
          }
          /** Emits change event to set the model value. */

        }, {
          key: "_propagateChanges",
          value: function _propagateChanges(fallbackValue) {
            var valueToEmit = null;

            if (this.multiple) {
              valueToEmit = this.selected.map(function (option) {
                return option.value;
              });
            } else {
              valueToEmit = this.selected ? this.selected.value : fallbackValue;
            }

            this._value = valueToEmit;
            this.valueChange.emit(valueToEmit);

            this._onChange(valueToEmit);

            this.selectionChange.emit(this._getChangeEvent(valueToEmit));

            this._changeDetectorRef.markForCheck();
          }
          /**
           * Highlights the selected item. If no option is selected, it will highlight
           * the first item instead.
           */

        }, {
          key: "_highlightCorrectOption",
          value: function _highlightCorrectOption() {
            if (this._keyManager) {
              if (this.empty) {
                this._keyManager.setFirstItemActive();
              } else {
                this._keyManager.setActiveItem(this._selectionModel.selected[0]);
              }
            }
          }
          /** Whether the panel is allowed to open. */

        }, {
          key: "_canOpen",
          value: function _canOpen() {
            var _a;

            return !this._panelOpen && !this.disabled && ((_a = this.options) === null || _a === void 0 ? void 0 : _a.length) > 0;
          }
          /** Focuses the select element. */

        }, {
          key: "focus",
          value: function focus(options) {
            this._elementRef.nativeElement.focus(options);
          }
          /** Gets the aria-labelledby for the select panel. */

        }, {
          key: "_getPanelAriaLabelledby",
          value: function _getPanelAriaLabelledby() {
            if (this.ariaLabel) {
              return null;
            }

            var labelId = this._getLabelId();

            return this.ariaLabelledby ? labelId + ' ' + this.ariaLabelledby : labelId;
          }
          /** Determines the `aria-activedescendant` to be set on the host. */

        }, {
          key: "_getAriaActiveDescendant",
          value: function _getAriaActiveDescendant() {
            if (this.panelOpen && this._keyManager && this._keyManager.activeItem) {
              return this._keyManager.activeItem.id;
            }

            return null;
          }
          /** Gets the ID of the element that is labelling the select. */

        }, {
          key: "_getLabelId",
          value: function _getLabelId() {
            var _a;

            return ((_a = this._parentFormField) === null || _a === void 0 ? void 0 : _a.getLabelId()) || '';
          }
          /** Gets the aria-labelledby of the select component trigger. */

        }, {
          key: "_getTriggerAriaLabelledby",
          value: function _getTriggerAriaLabelledby() {
            if (this.ariaLabel) {
              return null;
            }

            var value = this._getLabelId() + ' ' + this._valueId;

            if (this.ariaLabelledby) {
              value += ' ' + this.ariaLabelledby;
            }

            return value;
          }
          /** Called when the overlay panel is done animating. */

        }, {
          key: "_panelDoneAnimating",
          value: function _panelDoneAnimating(isOpen) {
            this.openedChange.emit(isOpen);
          }
          /**
           * Implemented as part of MatFormFieldControl.
           * @docs-private
           */

        }, {
          key: "setDescribedByIds",
          value: function setDescribedByIds(ids) {
            this._ariaDescribedby = ids.join(' ');
          }
          /**
           * Implemented as part of MatFormFieldControl.
           * @docs-private
           */

        }, {
          key: "onContainerClick",
          value: function onContainerClick() {
            this.focus();
            this.open();
          }
          /**
           * Implemented as part of MatFormFieldControl.
           * @docs-private
           */

        }, {
          key: "shouldLabelFloat",
          get: function get() {
            return this._panelOpen || !this.empty;
          }
        }]);

        return _MatSelectBase;
      }(_MatSelectMixinBase);

      _MatSelectBase.ɵfac = function _MatSelectBase_Factory(t) {
        return new (t || _MatSelectBase)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_5__["ViewportRuler"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_2__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_2__["NgZone"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_material_core__WEBPACK_IMPORTED_MODULE_3__["ErrorStateMatcher"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_2__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_7__["Directionality"], 8), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_11__["NgForm"], 8), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_11__["FormGroupDirective"], 8), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_material_form_field__WEBPACK_IMPORTED_MODULE_4__["MAT_FORM_FIELD"], 8), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_11__["NgControl"], 10), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵinjectAttribute"]('tabindex'), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](MAT_SELECT_SCROLL_STRATEGY), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_6__["LiveAnnouncer"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](MAT_SELECT_CONFIG, 8));
      };

      _MatSelectBase.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineDirective"]({
        type: _MatSelectBase,
        viewQuery: function _MatSelectBase_Query(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵviewQuery"](_c0, true);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵviewQuery"](_c1, true);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵviewQuery"](_angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_0__["CdkConnectedOverlay"], true);
          }

          if (rf & 2) {
            var _t;

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵloadQuery"]()) && (ctx.trigger = _t.first);
            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵloadQuery"]()) && (ctx.panel = _t.first);
            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵloadQuery"]()) && (ctx.overlayDir = _t.first);
          }
        },
        inputs: {
          ariaLabel: ["aria-label", "ariaLabel"],
          id: "id",
          placeholder: "placeholder",
          required: "required",
          multiple: "multiple",
          disableOptionCentering: "disableOptionCentering",
          compareWith: "compareWith",
          value: "value",
          typeaheadDebounceInterval: "typeaheadDebounceInterval",
          panelClass: "panelClass",
          ariaLabelledby: ["aria-labelledby", "ariaLabelledby"],
          errorStateMatcher: "errorStateMatcher",
          sortComparator: "sortComparator"
        },
        outputs: {
          openedChange: "openedChange",
          _openedStream: "opened",
          _closedStream: "closed",
          selectionChange: "selectionChange",
          valueChange: "valueChange"
        },
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵInheritDefinitionFeature"], _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵNgOnChangesFeature"]]
      });

      _MatSelectBase.ctorParameters = function () {
        return [{
          type: _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_5__["ViewportRuler"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ChangeDetectorRef"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["NgZone"]
        }, {
          type: _angular_material_core__WEBPACK_IMPORTED_MODULE_3__["ErrorStateMatcher"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ElementRef"]
        }, {
          type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_7__["Directionality"],
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Optional"]
          }]
        }, {
          type: _angular_forms__WEBPACK_IMPORTED_MODULE_11__["NgForm"],
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Optional"]
          }]
        }, {
          type: _angular_forms__WEBPACK_IMPORTED_MODULE_11__["FormGroupDirective"],
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Optional"]
          }]
        }, {
          type: _angular_material_form_field__WEBPACK_IMPORTED_MODULE_4__["MatFormField"],
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Inject"],
            args: [_angular_material_form_field__WEBPACK_IMPORTED_MODULE_4__["MAT_FORM_FIELD"]]
          }]
        }, {
          type: _angular_forms__WEBPACK_IMPORTED_MODULE_11__["NgControl"],
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Self"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Optional"]
          }]
        }, {
          type: String,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Attribute"],
            args: ['tabindex']
          }]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Inject"],
            args: [MAT_SELECT_SCROLL_STRATEGY]
          }]
        }, {
          type: _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_6__["LiveAnnouncer"]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Inject"],
            args: [MAT_SELECT_CONFIG]
          }]
        }];
      };

      _MatSelectBase.propDecorators = {
        trigger: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewChild"],
          args: ['trigger']
        }],
        panel: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewChild"],
          args: ['panel']
        }],
        overlayDir: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewChild"],
          args: [_angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_0__["CdkConnectedOverlay"]]
        }],
        panelClass: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
        }],
        placeholder: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
        }],
        required: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
        }],
        multiple: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
        }],
        disableOptionCentering: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
        }],
        compareWith: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
        }],
        value: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
        }],
        ariaLabel: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"],
          args: ['aria-label']
        }],
        ariaLabelledby: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"],
          args: ['aria-labelledby']
        }],
        errorStateMatcher: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
        }],
        typeaheadDebounceInterval: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
        }],
        sortComparator: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
        }],
        id: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
        }],
        openedChange: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Output"]
        }],
        _openedStream: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Output"],
          args: ['opened']
        }],
        _closedStream: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Output"],
          args: ['closed']
        }],
        selectionChange: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Output"]
        }],
        valueChange: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Output"]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵsetClassMetadata"](_MatSelectBase, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Directive"]
        }], function () {
          return [{
            type: _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_5__["ViewportRuler"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ChangeDetectorRef"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["NgZone"]
          }, {
            type: _angular_material_core__WEBPACK_IMPORTED_MODULE_3__["ErrorStateMatcher"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ElementRef"]
          }, {
            type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_7__["Directionality"],
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Optional"]
            }]
          }, {
            type: _angular_forms__WEBPACK_IMPORTED_MODULE_11__["NgForm"],
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Optional"]
            }]
          }, {
            type: _angular_forms__WEBPACK_IMPORTED_MODULE_11__["FormGroupDirective"],
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Optional"]
            }]
          }, {
            type: _angular_material_form_field__WEBPACK_IMPORTED_MODULE_4__["MatFormField"],
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Inject"],
              args: [_angular_material_form_field__WEBPACK_IMPORTED_MODULE_4__["MAT_FORM_FIELD"]]
            }]
          }, {
            type: _angular_forms__WEBPACK_IMPORTED_MODULE_11__["NgControl"],
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Self"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Optional"]
            }]
          }, {
            type: String,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Attribute"],
              args: ['tabindex']
            }]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Inject"],
              args: [MAT_SELECT_SCROLL_STRATEGY]
            }]
          }, {
            type: _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_6__["LiveAnnouncer"]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Inject"],
              args: [MAT_SELECT_CONFIG]
            }]
          }];
        }, {
          ariaLabel: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"],
            args: ['aria-label']
          }],
          openedChange: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Output"]
          }],
          _openedStream: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Output"],
            args: ['opened']
          }],
          _closedStream: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Output"],
            args: ['closed']
          }],
          selectionChange: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Output"]
          }],
          valueChange: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Output"]
          }],
          id: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
          }],
          placeholder: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
          }],
          required: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
          }],
          multiple: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
          }],
          disableOptionCentering: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
          }],
          compareWith: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
          }],
          value: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
          }],
          typeaheadDebounceInterval: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
          }],
          trigger: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewChild"],
            args: ['trigger']
          }],
          panel: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewChild"],
            args: ['panel']
          }],
          overlayDir: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewChild"],
            args: [_angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_0__["CdkConnectedOverlay"]]
          }],
          panelClass: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
          }],
          ariaLabelledby: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"],
            args: ['aria-labelledby']
          }],
          errorStateMatcher: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
          }],
          sortComparator: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
          }]
        });
      })();

      var MatSelect = /*#__PURE__*/function (_MatSelectBase2) {
        _inherits2(MatSelect, _MatSelectBase2);

        var _super355 = _createSuper2(MatSelect);

        function MatSelect() {
          var _this715;

          _classCallCheck2(this, MatSelect);

          _this715 = _super355.apply(this, arguments);
          /** The scroll position of the overlay panel, calculated to center the selected option. */

          _this715._scrollTop = 0;
          /** The cached font-size of the trigger element. */

          _this715._triggerFontSize = 0;
          /** The value of the select panel's transform-origin property. */

          _this715._transformOrigin = 'top';
          /**
           * The y-offset of the overlay panel in relation to the trigger's top start corner.
           * This must be adjusted to align the selected option text over the trigger text.
           * when the panel opens. Will change based on the y-position of the selected option.
           */

          _this715._offsetY = 0;
          _this715._positions = [{
            originX: 'start',
            originY: 'top',
            overlayX: 'start',
            overlayY: 'top'
          }, {
            originX: 'start',
            originY: 'bottom',
            overlayX: 'start',
            overlayY: 'bottom'
          }];
          return _this715;
        }
        /**
         * Calculates the scroll position of the select's overlay panel.
         *
         * Attempts to center the selected option in the panel. If the option is
         * too high or too low in the panel to be scrolled to the center, it clamps the
         * scroll position to the min or max scroll positions respectively.
         */


        _createClass2(MatSelect, [{
          key: "_calculateOverlayScroll",
          value: function _calculateOverlayScroll(selectedIndex, scrollBuffer, maxScroll) {
            var itemHeight = this._getItemHeight();

            var optionOffsetFromScrollTop = itemHeight * selectedIndex;
            var halfOptionHeight = itemHeight / 2; // Starts at the optionOffsetFromScrollTop, which scrolls the option to the top of the
            // scroll container, then subtracts the scroll buffer to scroll the option down to
            // the center of the overlay panel. Half the option height must be re-added to the
            // scrollTop so the option is centered based on its middle, not its top edge.

            var optimalScrollPosition = optionOffsetFromScrollTop - scrollBuffer + halfOptionHeight;
            return Math.min(Math.max(0, optimalScrollPosition), maxScroll);
          }
        }, {
          key: "ngOnInit",
          value: function ngOnInit() {
            var _this716 = this;

            _get2(_getPrototypeOf2(MatSelect.prototype), "ngOnInit", this).call(this);

            this._viewportRuler.change().pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_13__["takeUntil"])(this._destroy)).subscribe(function () {
              if (_this716.panelOpen) {
                _this716._triggerRect = _this716.trigger.nativeElement.getBoundingClientRect();

                _this716._changeDetectorRef.markForCheck();
              }
            });
          }
        }, {
          key: "open",
          value: function open() {
            var _this717 = this;

            if (_get2(_getPrototypeOf2(MatSelect.prototype), "_canOpen", this).call(this)) {
              _get2(_getPrototypeOf2(MatSelect.prototype), "open", this).call(this);

              this._triggerRect = this.trigger.nativeElement.getBoundingClientRect(); // Note: The computed font-size will be a string pixel value (e.g. "16px").
              // `parseInt` ignores the trailing 'px' and converts this to a number.

              this._triggerFontSize = parseInt(getComputedStyle(this.trigger.nativeElement).fontSize || '0');

              this._calculateOverlayPosition(); // Set the font size on the panel element once it exists.


              this._ngZone.onStable.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_13__["take"])(1)).subscribe(function () {
                if (_this717._triggerFontSize && _this717.overlayDir.overlayRef && _this717.overlayDir.overlayRef.overlayElement) {
                  _this717.overlayDir.overlayRef.overlayElement.style.fontSize = "".concat(_this717._triggerFontSize, "px");
                }
              });
            }
          }
          /** Scrolls the active option into view. */

        }, {
          key: "_scrollOptionIntoView",
          value: function _scrollOptionIntoView(index) {
            var labelCount = Object(_angular_material_core__WEBPACK_IMPORTED_MODULE_3__["_countGroupLabelsBeforeOption"])(index, this.options, this.optionGroups);

            var itemHeight = this._getItemHeight();

            this.panel.nativeElement.scrollTop = Object(_angular_material_core__WEBPACK_IMPORTED_MODULE_3__["_getOptionScrollPosition"])((index + labelCount) * itemHeight, itemHeight, this.panel.nativeElement.scrollTop, SELECT_PANEL_MAX_HEIGHT);
          }
        }, {
          key: "_positioningSettled",
          value: function _positioningSettled() {
            this._calculateOverlayOffsetX();

            this.panel.nativeElement.scrollTop = this._scrollTop;
          }
        }, {
          key: "_panelDoneAnimating",
          value: function _panelDoneAnimating(isOpen) {
            if (this.panelOpen) {
              this._scrollTop = 0;
            } else {
              this.overlayDir.offsetX = 0;

              this._changeDetectorRef.markForCheck();
            }

            _get2(_getPrototypeOf2(MatSelect.prototype), "_panelDoneAnimating", this).call(this, isOpen);
          }
        }, {
          key: "_getChangeEvent",
          value: function _getChangeEvent(value) {
            return new MatSelectChange(this, value);
          }
          /**
           * Sets the x-offset of the overlay panel in relation to the trigger's top start corner.
           * This must be adjusted to align the selected option text over the trigger text when
           * the panel opens. Will change based on LTR or RTL text direction. Note that the offset
           * can't be calculated until the panel has been attached, because we need to know the
           * content width in order to constrain the panel within the viewport.
           */

        }, {
          key: "_calculateOverlayOffsetX",
          value: function _calculateOverlayOffsetX() {
            var overlayRect = this.overlayDir.overlayRef.overlayElement.getBoundingClientRect();

            var viewportSize = this._viewportRuler.getViewportSize();

            var isRtl = this._isRtl();

            var paddingWidth = this.multiple ? SELECT_MULTIPLE_PANEL_PADDING_X + SELECT_PANEL_PADDING_X : SELECT_PANEL_PADDING_X * 2;
            var offsetX; // Adjust the offset, depending on the option padding.

            if (this.multiple) {
              offsetX = SELECT_MULTIPLE_PANEL_PADDING_X;
            } else {
              var selected = this._selectionModel.selected[0] || this.options.first;
              offsetX = selected && selected.group ? SELECT_PANEL_INDENT_PADDING_X : SELECT_PANEL_PADDING_X;
            } // Invert the offset in LTR.


            if (!isRtl) {
              offsetX *= -1;
            } // Determine how much the select overflows on each side.


            var leftOverflow = 0 - (overlayRect.left + offsetX - (isRtl ? paddingWidth : 0));
            var rightOverflow = overlayRect.right + offsetX - viewportSize.width + (isRtl ? 0 : paddingWidth); // If the element overflows on either side, reduce the offset to allow it to fit.

            if (leftOverflow > 0) {
              offsetX += leftOverflow + SELECT_PANEL_VIEWPORT_PADDING;
            } else if (rightOverflow > 0) {
              offsetX -= rightOverflow + SELECT_PANEL_VIEWPORT_PADDING;
            } // Set the offset directly in order to avoid having to go through change detection and
            // potentially triggering "changed after it was checked" errors. Round the value to avoid
            // blurry content in some browsers.


            this.overlayDir.offsetX = Math.round(offsetX);
            this.overlayDir.overlayRef.updatePosition();
          }
          /**
           * Calculates the y-offset of the select's overlay panel in relation to the
           * top start corner of the trigger. It has to be adjusted in order for the
           * selected option to be aligned over the trigger when the panel opens.
           */

        }, {
          key: "_calculateOverlayOffsetY",
          value: function _calculateOverlayOffsetY(selectedIndex, scrollBuffer, maxScroll) {
            var itemHeight = this._getItemHeight();

            var optionHeightAdjustment = (itemHeight - this._triggerRect.height) / 2;
            var maxOptionsDisplayed = Math.floor(SELECT_PANEL_MAX_HEIGHT / itemHeight);
            var optionOffsetFromPanelTop; // Disable offset if requested by user by returning 0 as value to offset

            if (this.disableOptionCentering) {
              return 0;
            }

            if (this._scrollTop === 0) {
              optionOffsetFromPanelTop = selectedIndex * itemHeight;
            } else if (this._scrollTop === maxScroll) {
              var firstDisplayedIndex = this._getItemCount() - maxOptionsDisplayed;
              var selectedDisplayIndex = selectedIndex - firstDisplayedIndex; // The first item is partially out of the viewport. Therefore we need to calculate what
              // portion of it is shown in the viewport and account for it in our offset.

              var partialItemHeight = itemHeight - (this._getItemCount() * itemHeight - SELECT_PANEL_MAX_HEIGHT) % itemHeight; // Because the panel height is longer than the height of the options alone,
              // there is always extra padding at the top or bottom of the panel. When
              // scrolled to the very bottom, this padding is at the top of the panel and
              // must be added to the offset.

              optionOffsetFromPanelTop = selectedDisplayIndex * itemHeight + partialItemHeight;
            } else {
              // If the option was scrolled to the middle of the panel using a scroll buffer,
              // its offset will be the scroll buffer minus the half height that was added to
              // center it.
              optionOffsetFromPanelTop = scrollBuffer - itemHeight / 2;
            } // The final offset is the option's offset from the top, adjusted for the height difference,
            // multiplied by -1 to ensure that the overlay moves in the correct direction up the page.
            // The value is rounded to prevent some browsers from blurring the content.


            return Math.round(optionOffsetFromPanelTop * -1 - optionHeightAdjustment);
          }
          /**
           * Checks that the attempted overlay position will fit within the viewport.
           * If it will not fit, tries to adjust the scroll position and the associated
           * y-offset so the panel can open fully on-screen. If it still won't fit,
           * sets the offset back to 0 to allow the fallback position to take over.
           */

        }, {
          key: "_checkOverlayWithinViewport",
          value: function _checkOverlayWithinViewport(maxScroll) {
            var itemHeight = this._getItemHeight();

            var viewportSize = this._viewportRuler.getViewportSize();

            var topSpaceAvailable = this._triggerRect.top - SELECT_PANEL_VIEWPORT_PADDING;
            var bottomSpaceAvailable = viewportSize.height - this._triggerRect.bottom - SELECT_PANEL_VIEWPORT_PADDING;
            var panelHeightTop = Math.abs(this._offsetY);
            var totalPanelHeight = Math.min(this._getItemCount() * itemHeight, SELECT_PANEL_MAX_HEIGHT);
            var panelHeightBottom = totalPanelHeight - panelHeightTop - this._triggerRect.height;

            if (panelHeightBottom > bottomSpaceAvailable) {
              this._adjustPanelUp(panelHeightBottom, bottomSpaceAvailable);
            } else if (panelHeightTop > topSpaceAvailable) {
              this._adjustPanelDown(panelHeightTop, topSpaceAvailable, maxScroll);
            } else {
              this._transformOrigin = this._getOriginBasedOnOption();
            }
          }
          /** Adjusts the overlay panel up to fit in the viewport. */

        }, {
          key: "_adjustPanelUp",
          value: function _adjustPanelUp(panelHeightBottom, bottomSpaceAvailable) {
            // Browsers ignore fractional scroll offsets, so we need to round.
            var distanceBelowViewport = Math.round(panelHeightBottom - bottomSpaceAvailable); // Scrolls the panel up by the distance it was extending past the boundary, then
            // adjusts the offset by that amount to move the panel up into the viewport.

            this._scrollTop -= distanceBelowViewport;
            this._offsetY -= distanceBelowViewport;
            this._transformOrigin = this._getOriginBasedOnOption(); // If the panel is scrolled to the very top, it won't be able to fit the panel
            // by scrolling, so set the offset to 0 to allow the fallback position to take
            // effect.

            if (this._scrollTop <= 0) {
              this._scrollTop = 0;
              this._offsetY = 0;
              this._transformOrigin = "50% bottom 0px";
            }
          }
          /** Adjusts the overlay panel down to fit in the viewport. */

        }, {
          key: "_adjustPanelDown",
          value: function _adjustPanelDown(panelHeightTop, topSpaceAvailable, maxScroll) {
            // Browsers ignore fractional scroll offsets, so we need to round.
            var distanceAboveViewport = Math.round(panelHeightTop - topSpaceAvailable); // Scrolls the panel down by the distance it was extending past the boundary, then
            // adjusts the offset by that amount to move the panel down into the viewport.

            this._scrollTop += distanceAboveViewport;
            this._offsetY += distanceAboveViewport;
            this._transformOrigin = this._getOriginBasedOnOption(); // If the panel is scrolled to the very bottom, it won't be able to fit the
            // panel by scrolling, so set the offset to 0 to allow the fallback position
            // to take effect.

            if (this._scrollTop >= maxScroll) {
              this._scrollTop = maxScroll;
              this._offsetY = 0;
              this._transformOrigin = "50% top 0px";
              return;
            }
          }
          /** Calculates the scroll position and x- and y-offsets of the overlay panel. */

        }, {
          key: "_calculateOverlayPosition",
          value: function _calculateOverlayPosition() {
            var itemHeight = this._getItemHeight();

            var items = this._getItemCount();

            var panelHeight = Math.min(items * itemHeight, SELECT_PANEL_MAX_HEIGHT);
            var scrollContainerHeight = items * itemHeight; // The farthest the panel can be scrolled before it hits the bottom

            var maxScroll = scrollContainerHeight - panelHeight; // If no value is selected we open the popup to the first item.

            var selectedOptionOffset;

            if (this.empty) {
              selectedOptionOffset = 0;
            } else {
              selectedOptionOffset = Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]), 0);
            }

            selectedOptionOffset += Object(_angular_material_core__WEBPACK_IMPORTED_MODULE_3__["_countGroupLabelsBeforeOption"])(selectedOptionOffset, this.options, this.optionGroups); // We must maintain a scroll buffer so the selected option will be scrolled to the
            // center of the overlay panel rather than the top.

            var scrollBuffer = panelHeight / 2;
            this._scrollTop = this._calculateOverlayScroll(selectedOptionOffset, scrollBuffer, maxScroll);
            this._offsetY = this._calculateOverlayOffsetY(selectedOptionOffset, scrollBuffer, maxScroll);

            this._checkOverlayWithinViewport(maxScroll);
          }
          /** Sets the transform origin point based on the selected option. */

        }, {
          key: "_getOriginBasedOnOption",
          value: function _getOriginBasedOnOption() {
            var itemHeight = this._getItemHeight();

            var optionHeightAdjustment = (itemHeight - this._triggerRect.height) / 2;
            var originY = Math.abs(this._offsetY) - optionHeightAdjustment + itemHeight / 2;
            return "50% ".concat(originY, "px 0px");
          }
          /** Calculates the height of the select's options. */

        }, {
          key: "_getItemHeight",
          value: function _getItemHeight() {
            return this._triggerFontSize * SELECT_ITEM_HEIGHT_EM;
          }
          /** Calculates the amount of items in the select. This includes options and group labels. */

        }, {
          key: "_getItemCount",
          value: function _getItemCount() {
            return this.options.length + this.optionGroups.length;
          }
        }]);

        return MatSelect;
      }(_MatSelectBase);

      MatSelect.ɵfac = function MatSelect_Factory(t) {
        return ɵMatSelect_BaseFactory(t || MatSelect);
      };

      MatSelect.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({
        type: MatSelect,
        selectors: [["mat-select"]],
        contentQueries: function MatSelect_ContentQueries(rf, ctx, dirIndex) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵcontentQuery"](dirIndex, MAT_SELECT_TRIGGER, true);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵcontentQuery"](dirIndex, _angular_material_core__WEBPACK_IMPORTED_MODULE_3__["MatOption"], true);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵcontentQuery"](dirIndex, _angular_material_core__WEBPACK_IMPORTED_MODULE_3__["MAT_OPTGROUP"], true);
          }

          if (rf & 2) {
            var _t;

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵloadQuery"]()) && (ctx.customTrigger = _t.first);
            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵloadQuery"]()) && (ctx.options = _t);
            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵloadQuery"]()) && (ctx.optionGroups = _t);
          }
        },
        hostAttrs: ["role", "combobox", "aria-autocomplete", "none", "aria-haspopup", "true", 1, "mat-select"],
        hostVars: 20,
        hostBindings: function MatSelect_HostBindings(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("keydown", function MatSelect_keydown_HostBindingHandler($event) {
              return ctx._handleKeydown($event);
            })("focus", function MatSelect_focus_HostBindingHandler() {
              return ctx._onFocus();
            })("blur", function MatSelect_blur_HostBindingHandler() {
              return ctx._onBlur();
            });
          }

          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵattribute"]("id", ctx.id)("tabindex", ctx.tabIndex)("aria-controls", ctx.panelOpen ? ctx.id + "-panel" : null)("aria-expanded", ctx.panelOpen)("aria-label", ctx.ariaLabel || null)("aria-required", ctx.required.toString())("aria-disabled", ctx.disabled.toString())("aria-invalid", ctx.errorState)("aria-describedby", ctx._ariaDescribedby || null)("aria-activedescendant", ctx._getAriaActiveDescendant());

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassProp"]("mat-select-disabled", ctx.disabled)("mat-select-invalid", ctx.errorState)("mat-select-required", ctx.required)("mat-select-empty", ctx.empty)("mat-select-multiple", ctx.multiple);
          }
        },
        inputs: {
          disabled: "disabled",
          disableRipple: "disableRipple",
          tabIndex: "tabIndex"
        },
        exportAs: ["matSelect"],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵProvidersFeature"]([{
          provide: _angular_material_form_field__WEBPACK_IMPORTED_MODULE_4__["MatFormFieldControl"],
          useExisting: MatSelect
        }, {
          provide: _angular_material_core__WEBPACK_IMPORTED_MODULE_3__["MAT_OPTION_PARENT_COMPONENT"],
          useExisting: MatSelect
        }]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵInheritDefinitionFeature"]],
        ngContentSelectors: _c3,
        decls: 9,
        vars: 12,
        consts: [["cdk-overlay-origin", "", 1, "mat-select-trigger", 3, "click"], ["origin", "cdkOverlayOrigin", "trigger", ""], [1, "mat-select-value", 3, "ngSwitch"], ["class", "mat-select-placeholder", 4, "ngSwitchCase"], ["class", "mat-select-value-text", 3, "ngSwitch", 4, "ngSwitchCase"], [1, "mat-select-arrow-wrapper"], [1, "mat-select-arrow"], ["cdk-connected-overlay", "", "cdkConnectedOverlayLockPosition", "", "cdkConnectedOverlayHasBackdrop", "", "cdkConnectedOverlayBackdropClass", "cdk-overlay-transparent-backdrop", 3, "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOrigin", "cdkConnectedOverlayOpen", "cdkConnectedOverlayPositions", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayOffsetY", "backdropClick", "attach", "detach"], [1, "mat-select-placeholder"], [1, "mat-select-value-text", 3, "ngSwitch"], [4, "ngSwitchDefault"], [4, "ngSwitchCase"], [1, "mat-select-panel-wrap"], ["role", "listbox", "tabindex", "-1", 3, "ngClass", "keydown"], ["panel", ""]],
        template: function MatSelect_Template(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵprojectionDef"](_c2);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 0, 1);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function MatSelect_Template_div_click_0_listener() {
              return ctx.toggle();
            });

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div", 2);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, MatSelect_span_4_Template, 2, 1, "span", 3);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](5, MatSelect_span_5_Template, 3, 2, "span", 4);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "div", 5);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](7, "div", 6);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](8, MatSelect_ng_template_8_Template, 4, 14, "ng-template", 7);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("backdropClick", function MatSelect_Template_ng_template_backdropClick_8_listener() {
              return ctx.close();
            })("attach", function MatSelect_Template_ng_template_attach_8_listener() {
              return ctx._onAttached();
            })("detach", function MatSelect_Template_ng_template_detach_8_listener() {
              return ctx.close();
            });
          }

          if (rf & 2) {
            var _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵreference"](1);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵattribute"]("aria-owns", ctx.panelOpen ? ctx.id + "-panel" : null);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngSwitch", ctx.empty);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵattribute"]("id", ctx._valueId);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngSwitchCase", true);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngSwitchCase", false);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("cdkConnectedOverlayPanelClass", ctx._overlayPanelClass)("cdkConnectedOverlayScrollStrategy", ctx._scrollStrategy)("cdkConnectedOverlayOrigin", _r0)("cdkConnectedOverlayOpen", ctx.panelOpen)("cdkConnectedOverlayPositions", ctx._positions)("cdkConnectedOverlayMinWidth", ctx._triggerRect == null ? null : ctx._triggerRect.width)("cdkConnectedOverlayOffsetY", ctx._offsetY);
          }
        },
        directives: [_angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_0__["CdkOverlayOrigin"], _angular_common__WEBPACK_IMPORTED_MODULE_1__["NgSwitch"], _angular_common__WEBPACK_IMPORTED_MODULE_1__["NgSwitchCase"], _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_0__["CdkConnectedOverlay"], _angular_common__WEBPACK_IMPORTED_MODULE_1__["NgSwitchDefault"], _angular_common__WEBPACK_IMPORTED_MODULE_1__["NgClass"]],
        styles: [".mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}\n"],
        encapsulation: 2,
        data: {
          animation: [matSelectAnimations.transformPanelWrap, matSelectAnimations.transformPanel]
        },
        changeDetection: 0
      });
      MatSelect.propDecorators = {
        options: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ContentChildren"],
          args: [_angular_material_core__WEBPACK_IMPORTED_MODULE_3__["MatOption"], {
            descendants: true
          }]
        }],
        optionGroups: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ContentChildren"],
          args: [_angular_material_core__WEBPACK_IMPORTED_MODULE_3__["MAT_OPTGROUP"], {
            descendants: true
          }]
        }],
        customTrigger: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ContentChild"],
          args: [MAT_SELECT_TRIGGER]
        }]
      };

      var ɵMatSelect_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetInheritedFactory"](MatSelect);
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵsetClassMetadata"](MatSelect, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Component"],
          args: [{
            selector: 'mat-select',
            exportAs: 'matSelect',
            template: "<!--\n Note that the select trigger element specifies `aria-owns` pointing to the listbox overlay.\n While aria-owns is not required for the ARIA 1.2 `role=\"combobox\"` interaction pattern,\n it fixes an issue with VoiceOver when the select appears inside of an `aria-model=\"true\"`\n element (e.g. a dialog). Without this `aria-owns`, the `aria-modal` on a dialog prevents\n VoiceOver from \"seeing\" the select's listbox overlay for aria-activedescendant.\n Using `aria-owns` re-parents the select overlay so that it works again.\n See https://github.com/angular/components/issues/20694\n-->\n<div cdk-overlay-origin\n     [attr.aria-owns]=\"panelOpen ? id + '-panel' : null\"\n     class=\"mat-select-trigger\"\n     (click)=\"toggle()\"\n     #origin=\"cdkOverlayOrigin\"\n     #trigger>\n  <div class=\"mat-select-value\" [ngSwitch]=\"empty\" [attr.id]=\"_valueId\">\n    <span class=\"mat-select-placeholder\" *ngSwitchCase=\"true\">{{placeholder || '\\u00A0'}}</span>\n    <span class=\"mat-select-value-text\" *ngSwitchCase=\"false\" [ngSwitch]=\"!!customTrigger\">\n      <span *ngSwitchDefault>{{triggerValue || '\\u00A0'}}</span>\n      <ng-content select=\"mat-select-trigger\" *ngSwitchCase=\"true\"></ng-content>\n    </span>\n  </div>\n\n  <div class=\"mat-select-arrow-wrapper\"><div class=\"mat-select-arrow\"></div></div>\n</div>\n\n<ng-template\n  cdk-connected-overlay\n  cdkConnectedOverlayLockPosition\n  cdkConnectedOverlayHasBackdrop\n  cdkConnectedOverlayBackdropClass=\"cdk-overlay-transparent-backdrop\"\n  [cdkConnectedOverlayPanelClass]=\"_overlayPanelClass\"\n  [cdkConnectedOverlayScrollStrategy]=\"_scrollStrategy\"\n  [cdkConnectedOverlayOrigin]=\"origin\"\n  [cdkConnectedOverlayOpen]=\"panelOpen\"\n  [cdkConnectedOverlayPositions]=\"_positions\"\n  [cdkConnectedOverlayMinWidth]=\"_triggerRect?.width!\"\n  [cdkConnectedOverlayOffsetY]=\"_offsetY\"\n  (backdropClick)=\"close()\"\n  (attach)=\"_onAttached()\"\n  (detach)=\"close()\">\n  <div class=\"mat-select-panel-wrap\" [@transformPanelWrap]>\n    <div\n      #panel\n      role=\"listbox\"\n      tabindex=\"-1\"\n      class=\"mat-select-panel {{ _getPanelTheme() }}\"\n      [attr.id]=\"id + '-panel'\"\n      [attr.aria-multiselectable]=\"multiple\"\n      [attr.aria-label]=\"ariaLabel || null\"\n      [attr.aria-labelledby]=\"_getPanelAriaLabelledby()\"\n      [ngClass]=\"panelClass\"\n      [@transformPanel]=\"multiple ? 'showing-multiple' : 'showing'\"\n      (@transformPanel.done)=\"_panelDoneAnimatingStream.next($event.toState)\"\n      [style.transformOrigin]=\"_transformOrigin\"\n      [style.font-size.px]=\"_triggerFontSize\"\n      (keydown)=\"_handleKeydown($event)\">\n      <ng-content></ng-content>\n    </div>\n  </div>\n</ng-template>\n",
            inputs: ['disabled', 'disableRipple', 'tabIndex'],
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewEncapsulation"].None,
            changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ChangeDetectionStrategy"].OnPush,
            host: {
              'role': 'combobox',
              'aria-autocomplete': 'none',
              // TODO(crisbeto): the value for aria-haspopup should be `listbox`, but currently it's difficult
              // to sync into Google, because of an outdated automated a11y check which flags it as an invalid
              // value. At some point we should try to switch it back to being `listbox`.
              'aria-haspopup': 'true',
              'class': 'mat-select',
              '[attr.id]': 'id',
              '[attr.tabindex]': 'tabIndex',
              '[attr.aria-controls]': 'panelOpen ? id + "-panel" : null',
              '[attr.aria-expanded]': 'panelOpen',
              '[attr.aria-label]': 'ariaLabel || null',
              '[attr.aria-required]': 'required.toString()',
              '[attr.aria-disabled]': 'disabled.toString()',
              '[attr.aria-invalid]': 'errorState',
              '[attr.aria-describedby]': '_ariaDescribedby || null',
              '[attr.aria-activedescendant]': '_getAriaActiveDescendant()',
              '[class.mat-select-disabled]': 'disabled',
              '[class.mat-select-invalid]': 'errorState',
              '[class.mat-select-required]': 'required',
              '[class.mat-select-empty]': 'empty',
              '[class.mat-select-multiple]': 'multiple',
              '(keydown)': '_handleKeydown($event)',
              '(focus)': '_onFocus()',
              '(blur)': '_onBlur()'
            },
            animations: [matSelectAnimations.transformPanelWrap, matSelectAnimations.transformPanel],
            providers: [{
              provide: _angular_material_form_field__WEBPACK_IMPORTED_MODULE_4__["MatFormFieldControl"],
              useExisting: MatSelect
            }, {
              provide: _angular_material_core__WEBPACK_IMPORTED_MODULE_3__["MAT_OPTION_PARENT_COMPONENT"],
              useExisting: MatSelect
            }],
            styles: [".mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}\n"]
          }]
        }], null, {
          options: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ContentChildren"],
            args: [_angular_material_core__WEBPACK_IMPORTED_MODULE_3__["MatOption"], {
              descendants: true
            }]
          }],
          optionGroups: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ContentChildren"],
            args: [_angular_material_core__WEBPACK_IMPORTED_MODULE_3__["MAT_OPTGROUP"], {
              descendants: true
            }]
          }],
          customTrigger: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ContentChild"],
            args: [MAT_SELECT_TRIGGER]
          }]
        });
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var MatSelectModule = function MatSelectModule() {
        _classCallCheck2(this, MatSelectModule);
      };

      MatSelectModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineNgModule"]({
        type: MatSelectModule
      });
      MatSelectModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineInjector"]({
        factory: function MatSelectModule_Factory(t) {
          return new (t || MatSelectModule)();
        },
        providers: [MAT_SELECT_SCROLL_STRATEGY_PROVIDER],
        imports: [[_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"], _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_0__["OverlayModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_3__["MatOptionModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_3__["MatCommonModule"]], _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_5__["CdkScrollableModule"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_4__["MatFormFieldModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_3__["MatOptionModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_3__["MatCommonModule"]]
      });

      (function () {
        (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsetNgModuleScope"](MatSelectModule, {
          declarations: function declarations() {
            return [MatSelect, MatSelectTrigger];
          },
          imports: function imports() {
            return [_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"], _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_0__["OverlayModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_3__["MatOptionModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_3__["MatCommonModule"]];
          },
          exports: function exports() {
            return [_angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_5__["CdkScrollableModule"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_4__["MatFormFieldModule"], MatSelect, MatSelectTrigger, _angular_material_core__WEBPACK_IMPORTED_MODULE_3__["MatOptionModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_3__["MatCommonModule"]];
          }
        });
      })();
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵsetClassMetadata"](MatSelectModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["NgModule"],
          args: [{
            imports: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"], _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_0__["OverlayModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_3__["MatOptionModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_3__["MatCommonModule"]],
            exports: [_angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_5__["CdkScrollableModule"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_4__["MatFormFieldModule"], MatSelect, MatSelectTrigger, _angular_material_core__WEBPACK_IMPORTED_MODULE_3__["MatOptionModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_3__["MatCommonModule"]],
            declarations: [MatSelect, MatSelectTrigger],
            providers: [MAT_SELECT_SCROLL_STRATEGY_PROVIDER]
          }]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Generated bundle index. Do not edit.
       */
      //# sourceMappingURL=select.js.map

      /***/

    },

    /***/
    "ZUHj": function ZUHj(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "subscribeToResult", function () {
        return subscribeToResult;
      });
      /* harmony import */


      var _InnerSubscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../InnerSubscriber */
      "51Dv");
      /* harmony import */


      var _subscribeTo__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ./subscribeTo */
      "SeVD");
      /* harmony import */


      var _Observable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../Observable */
      "HDdC");

      function subscribeToResult(outerSubscriber, result, outerValue, outerIndex) {
        var innerSubscriber = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : new _InnerSubscriber__WEBPACK_IMPORTED_MODULE_0__["InnerSubscriber"](outerSubscriber, outerValue, outerIndex);

        if (innerSubscriber.closed) {
          return undefined;
        }

        if (result instanceof _Observable__WEBPACK_IMPORTED_MODULE_2__["Observable"]) {
          return result.subscribe(innerSubscriber);
        }

        return Object(_subscribeTo__WEBPACK_IMPORTED_MODULE_1__["subscribeTo"])(result)(innerSubscriber);
      } //# sourceMappingURL=subscribeToResult.js.map

      /***/

    },

    /***/
    "Zduo": function Zduo(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Esperanto [eo]
      //! author : Colin Dean : https://github.com/colindean
      //! author : Mia Nordentoft Imperatori : https://github.com/miestasmia
      //! comment : miestasmia corrected the translation by colindean
      //! comment : Vivakvo corrected the translation by colindean and miestasmia
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var eo = moment.defineLocale('eo', {
          months: 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split('_'),
          monthsShort: 'jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec'.split('_'),
          weekdays: 'dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato'.split('_'),
          weekdaysShort: 'dim_lun_mard_merk_ĵaŭ_ven_sab'.split('_'),
          weekdaysMin: 'di_lu_ma_me_ĵa_ve_sa'.split('_'),
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'YYYY-MM-DD',
            LL: '[la] D[-an de] MMMM, YYYY',
            LLL: '[la] D[-an de] MMMM, YYYY HH:mm',
            LLLL: 'dddd[n], [la] D[-an de] MMMM, YYYY HH:mm',
            llll: 'ddd, [la] D[-an de] MMM, YYYY HH:mm'
          },
          meridiemParse: /[ap]\.t\.m/i,
          isPM: function isPM(input) {
            return input.charAt(0).toLowerCase() === 'p';
          },
          meridiem: function meridiem(hours, minutes, isLower) {
            if (hours > 11) {
              return isLower ? 'p.t.m.' : 'P.T.M.';
            } else {
              return isLower ? 'a.t.m.' : 'A.T.M.';
            }
          },
          calendar: {
            sameDay: '[Hodiaŭ je] LT',
            nextDay: '[Morgaŭ je] LT',
            nextWeek: 'dddd[n je] LT',
            lastDay: '[Hieraŭ je] LT',
            lastWeek: '[pasintan] dddd[n je] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'post %s',
            past: 'antaŭ %s',
            s: 'kelkaj sekundoj',
            ss: '%d sekundoj',
            m: 'unu minuto',
            mm: '%d minutoj',
            h: 'unu horo',
            hh: '%d horoj',
            d: 'unu tago',
            //ne 'diurno', ĉar estas uzita por proksimumo
            dd: '%d tagoj',
            M: 'unu monato',
            MM: '%d monatoj',
            y: 'unu jaro',
            yy: '%d jaroj'
          },
          dayOfMonthOrdinalParse: /\d{1,2}a/,
          ordinal: '%da',
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 7 // The week that contains Jan 7th is the first week of the year.

          }
        });
        return eo;
      });
      /***/

    },

    /***/
    "Zy1z": function Zy1z(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "pairwise", function () {
        return pairwise;
      });
      /* harmony import */


      var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Subscriber */
      "7o/Q");

      function pairwise() {
        return function (source) {
          return source.lift(new PairwiseOperator());
        };
      }

      var PairwiseOperator = /*#__PURE__*/function () {
        function PairwiseOperator() {
          _classCallCheck2(this, PairwiseOperator);
        }

        _createClass2(PairwiseOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            return source.subscribe(new PairwiseSubscriber(subscriber));
          }
        }]);

        return PairwiseOperator;
      }();

      var PairwiseSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_26) {
        _inherits2(PairwiseSubscriber, _Subscriber__WEBPACK_26);

        var _super356 = _createSuper2(PairwiseSubscriber);

        function PairwiseSubscriber(destination) {
          var _this718;

          _classCallCheck2(this, PairwiseSubscriber);

          _this718 = _super356.call(this, destination);
          _this718.hasPrev = false;
          return _this718;
        }

        _createClass2(PairwiseSubscriber, [{
          key: "_next",
          value: function _next(value) {
            var pair;

            if (this.hasPrev) {
              pair = [this.prev, value];
            } else {
              this.hasPrev = true;
            }

            this.prev = value;

            if (pair) {
              this.destination.next(pair);
            }
          }
        }]);

        return PairwiseSubscriber;
      }(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]); //# sourceMappingURL=pairwise.js.map

      /***/

    },

    /***/
    "Zyez": function Zyez(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "sequenceEqual", function () {
        return sequenceEqual;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "SequenceEqualOperator", function () {
        return SequenceEqualOperator;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "SequenceEqualSubscriber", function () {
        return SequenceEqualSubscriber;
      });
      /* harmony import */


      var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Subscriber */
      "7o/Q");

      function sequenceEqual(compareTo, comparator) {
        return function (source) {
          return source.lift(new SequenceEqualOperator(compareTo, comparator));
        };
      }

      var SequenceEqualOperator = /*#__PURE__*/function () {
        function SequenceEqualOperator(compareTo, comparator) {
          _classCallCheck2(this, SequenceEqualOperator);

          this.compareTo = compareTo;
          this.comparator = comparator;
        }

        _createClass2(SequenceEqualOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            return source.subscribe(new SequenceEqualSubscriber(subscriber, this.compareTo, this.comparator));
          }
        }]);

        return SequenceEqualOperator;
      }();

      var SequenceEqualSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_27) {
        _inherits2(SequenceEqualSubscriber, _Subscriber__WEBPACK_27);

        var _super357 = _createSuper2(SequenceEqualSubscriber);

        function SequenceEqualSubscriber(destination, compareTo, comparator) {
          var _this719;

          _classCallCheck2(this, SequenceEqualSubscriber);

          _this719 = _super357.call(this, destination);
          _this719.compareTo = compareTo;
          _this719.comparator = comparator;
          _this719._a = [];
          _this719._b = [];
          _this719._oneComplete = false;

          _this719.destination.add(compareTo.subscribe(new SequenceEqualCompareToSubscriber(destination, _assertThisInitialized2(_this719))));

          return _this719;
        }

        _createClass2(SequenceEqualSubscriber, [{
          key: "_next",
          value: function _next(value) {
            if (this._oneComplete && this._b.length === 0) {
              this.emit(false);
            } else {
              this._a.push(value);

              this.checkValues();
            }
          }
        }, {
          key: "_complete",
          value: function _complete() {
            if (this._oneComplete) {
              this.emit(this._a.length === 0 && this._b.length === 0);
            } else {
              this._oneComplete = true;
            }

            this.unsubscribe();
          }
        }, {
          key: "checkValues",
          value: function checkValues() {
            var _a = this._a,
                _b = this._b,
                comparator = this.comparator;

            while (_a.length > 0 && _b.length > 0) {
              var a = _a.shift();

              var b = _b.shift();

              var areEqual = false;

              try {
                areEqual = comparator ? comparator(a, b) : a === b;
              } catch (e) {
                this.destination.error(e);
              }

              if (!areEqual) {
                this.emit(false);
              }
            }
          }
        }, {
          key: "emit",
          value: function emit(value) {
            var destination = this.destination;
            destination.next(value);
            destination.complete();
          }
        }, {
          key: "nextB",
          value: function nextB(value) {
            if (this._oneComplete && this._a.length === 0) {
              this.emit(false);
            } else {
              this._b.push(value);

              this.checkValues();
            }
          }
        }, {
          key: "completeB",
          value: function completeB() {
            if (this._oneComplete) {
              this.emit(this._a.length === 0 && this._b.length === 0);
            } else {
              this._oneComplete = true;
            }
          }
        }]);

        return SequenceEqualSubscriber;
      }(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]);

      var SequenceEqualCompareToSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_28) {
        _inherits2(SequenceEqualCompareToSubscriber, _Subscriber__WEBPACK_28);

        var _super358 = _createSuper2(SequenceEqualCompareToSubscriber);

        function SequenceEqualCompareToSubscriber(destination, parent) {
          var _this720;

          _classCallCheck2(this, SequenceEqualCompareToSubscriber);

          _this720 = _super358.call(this, destination);
          _this720.parent = parent;
          return _this720;
        }

        _createClass2(SequenceEqualCompareToSubscriber, [{
          key: "_next",
          value: function _next(value) {
            this.parent.nextB(value);
          }
        }, {
          key: "_error",
          value: function _error(err) {
            this.parent.error(err);
            this.unsubscribe();
          }
        }, {
          key: "_complete",
          value: function _complete() {
            this.parent.completeB();
            this.unsubscribe();
          }
        }]);

        return SequenceEqualCompareToSubscriber;
      }(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]); //# sourceMappingURL=sequenceEqual.js.map

      /***/

    },

    /***/
    "a1A6": function a1A6(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "httpClientInMemBackendServiceFactory", function () {
        return httpClientInMemBackendServiceFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "HttpClientInMemoryWebApiModule", function () {
        return HttpClientInMemoryWebApiModule;
      });
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /* harmony import */


      var _angular_common_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/common/http */
      "IheW");
      /* harmony import */


      var _interfaces__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ./interfaces */
      "JVVJ");
      /* harmony import */


      var _http_client_backend_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ./http-client-backend.service */
      "L67P"); ////// HttpClient-Only version ////


      var __decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
        var c = arguments.length,
            r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
            d;
        if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
          if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
        }
        return c > 3 && r && Object.defineProperty(target, key, r), r;
      }; // Internal - Creates the in-mem backend for the HttpClient module
      // AoT requires factory to be exported


      function httpClientInMemBackendServiceFactory(dbService, options, xhrFactory) {
        var backend = new _http_client_backend_service__WEBPACK_IMPORTED_MODULE_3__["HttpClientBackendService"](dbService, options, xhrFactory);
        return backend;
      }

      var HttpClientInMemoryWebApiModule = function () {
        function HttpClientInMemoryWebApiModule() {}

        HttpClientInMemoryWebApiModule_1 = HttpClientInMemoryWebApiModule;
        /**
        *  Redirect the Angular `HttpClient` XHR calls
        *  to in-memory data store that implements `InMemoryDbService`.
        *  with class that implements InMemoryDbService and creates an in-memory database.
        *
        *  Usually imported in the root application module.
        *  Can import in a lazy feature module too, which will shadow modules loaded earlier
        *
        * @param {Type} dbCreator - Class that creates seed data for in-memory database. Must implement InMemoryDbService.
        * @param {InMemoryBackendConfigArgs} [options]
        *
        * @example
        * HttpInMemoryWebApiModule.forRoot(dbCreator);
        * HttpInMemoryWebApiModule.forRoot(dbCreator, {useValue: {delay:600}});
        */

        HttpClientInMemoryWebApiModule.forRoot = function (dbCreator, options) {
          return {
            ngModule: HttpClientInMemoryWebApiModule_1,
            providers: [{
              provide: _interfaces__WEBPACK_IMPORTED_MODULE_2__["InMemoryDbService"],
              useClass: dbCreator
            }, {
              provide: _interfaces__WEBPACK_IMPORTED_MODULE_2__["InMemoryBackendConfig"],
              useValue: options
            }, {
              provide: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpBackend"],
              useFactory: httpClientInMemBackendServiceFactory,
              deps: [_interfaces__WEBPACK_IMPORTED_MODULE_2__["InMemoryDbService"], _interfaces__WEBPACK_IMPORTED_MODULE_2__["InMemoryBackendConfig"], _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["XhrFactory"]]
            }]
          };
        };
        /**
        *
        * Enable and configure the in-memory web api in a lazy-loaded feature module.
        * Same as `forRoot`.
        * This is a feel-good method so you can follow the Angular style guide for lazy-loaded modules.
        */


        HttpClientInMemoryWebApiModule.forFeature = function (dbCreator, options) {
          return HttpClientInMemoryWebApiModule_1.forRoot(dbCreator, options);
        };

        var HttpClientInMemoryWebApiModule_1;
        HttpClientInMemoryWebApiModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
          type: HttpClientInMemoryWebApiModule
        });
        HttpClientInMemoryWebApiModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
          factory: function HttpClientInMemoryWebApiModule_Factory(t) {
            return new (t || HttpClientInMemoryWebApiModule)();
          }
        });
        /*@__PURE__*/

        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](HttpClientInMemoryWebApiModule, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
            args: [{}]
          }], function () {
            return [];
          }, null);
        })();

        return HttpClientInMemoryWebApiModule;
      }(); //# sourceMappingURL=http-client-in-memory-web-api.module.js.map

      /***/

    },

    /***/
    "a3h9": function a3h9(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return subMinutes;
      });
      /* harmony import */


      var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../_lib/toInteger/index.js */
      "/h9T");
      /* harmony import */


      var _addMinutes_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../addMinutes/index.js */
      "IYaI");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name subMinutes
       * @category Minute Helpers
       * @summary Subtract the specified number of minutes from the given date.
       *
       * @description
       * Subtract the specified number of minutes from the given date.
       *
       * ### 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 {Date|Number} date - the date to be changed
       * @param {Number} amount - the amount of minutes to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
       * @returns {Date} the new date with the minutes subtracted
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // Subtract 30 minutes from 10 July 2014 12:00:00:
       * var result = subMinutes(new Date(2014, 6, 10, 12, 0), 30)
       * //=> Thu Jul 10 2014 11:30:00
       */


      function subMinutes(dirtyDate, dirtyAmount) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(2, arguments);
        var amount = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyAmount);
        return Object(_addMinutes_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate, -amount);
      }
      /***/

    },

    /***/
    "a7HJ": function a7HJ(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return differenceInQuarters;
      });
      /* harmony import */


      var _differenceInMonths_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../differenceInMonths/index.js */
      "AkX2");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name differenceInQuarters
       * @category Quarter Helpers
       * @summary Get the number of full quarters between the given dates.
       *
       * @description
       * Get the number of full quarters between the given dates.
       *
       * ### 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 {Date|Number} dateLeft - the later date
       * @param {Date|Number} dateRight - the earlier date
       * @returns {Number} the number of full quarters
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // How many full quarters are between 31 December 2013 and 2 July 2014?
       * var result = differenceInQuarters(new Date(2014, 6, 2), new Date(2013, 11, 31))
       * //=> 2
       */


      function differenceInQuarters(dirtyDateLeft, dirtyDateRight) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(2, arguments);
        var diff = Object(_differenceInMonths_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateLeft, dirtyDateRight) / 3;
        return diff > 0 ? Math.floor(diff) : Math.ceil(diff);
      }
      /***/

    },

    /***/
    "a7t3": function a7t3(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "subscribeToPromise", function () {
        return subscribeToPromise;
      });
      /* harmony import */


      var _hostReportError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ./hostReportError */
      "NJ4a");

      var subscribeToPromise = function subscribeToPromise(promise) {
        return function (subscriber) {
          promise.then(function (value) {
            if (!subscriber.closed) {
              subscriber.next(value);
              subscriber.complete();
            }
          }, function (err) {
            return subscriber.error(err);
          }).then(null, _hostReportError__WEBPACK_IMPORTED_MODULE_0__["hostReportError"]);
          return subscriber;
        };
      }; //# sourceMappingURL=subscribeToPromise.js.map

      /***/

    },

    /***/
    "aGrj": function aGrj(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "switchMapTo", function () {
        return switchMapTo;
      });
      /* harmony import */


      var _switchMap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ./switchMap */
      "eIep");

      function switchMapTo(innerObservable, resultSelector) {
        return resultSelector ? Object(_switchMap__WEBPACK_IMPORTED_MODULE_0__["switchMap"])(function () {
          return innerObservable;
        }, resultSelector) : Object(_switchMap__WEBPACK_IMPORTED_MODULE_0__["switchMap"])(function () {
          return innerObservable;
        });
      } //# sourceMappingURL=switchMapTo.js.map

      /***/

    },

    /***/
    "aIdf": function aIdf(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Breton [br]
      //! author : Jean-Baptiste Le Duigou : https://github.com/jbleduigou
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        function relativeTimeWithMutation(number, withoutSuffix, key) {
          var format = {
            mm: 'munutenn',
            MM: 'miz',
            dd: 'devezh'
          };
          return number + ' ' + mutation(format[key], number);
        }

        function specialMutationForYears(number) {
          switch (lastNumber(number)) {
            case 1:
            case 3:
            case 4:
            case 5:
            case 9:
              return number + ' bloaz';

            default:
              return number + ' vloaz';
          }
        }

        function lastNumber(number) {
          if (number > 9) {
            return lastNumber(number % 10);
          }

          return number;
        }

        function mutation(text, number) {
          if (number === 2) {
            return softMutation(text);
          }

          return text;
        }

        function softMutation(text) {
          var mutationTable = {
            m: 'v',
            b: 'v',
            d: 'z'
          };

          if (mutationTable[text.charAt(0)] === undefined) {
            return text;
          }

          return mutationTable[text.charAt(0)] + text.substring(1);
        }

        var monthsParse = [/^gen/i, /^c[ʼ\']hwe/i, /^meu/i, /^ebr/i, /^mae/i, /^(mez|eve)/i, /^gou/i, /^eos/i, /^gwe/i, /^her/i, /^du/i, /^ker/i],
            monthsRegex = /^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,
            monthsStrictRegex = /^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,
            monthsShortStrictRegex = /^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,
            fullWeekdaysParse = [/^sul/i, /^lun/i, /^meurzh/i, /^merc[ʼ\']her/i, /^yaou/i, /^gwener/i, /^sadorn/i],
            shortWeekdaysParse = [/^Sul/i, /^Lun/i, /^Meu/i, /^Mer/i, /^Yao/i, /^Gwe/i, /^Sad/i],
            minWeekdaysParse = [/^Su/i, /^Lu/i, /^Me([^r]|$)/i, /^Mer/i, /^Ya/i, /^Gw/i, /^Sa/i];
        var br = moment.defineLocale('br', {
          months: 'Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split('_'),
          monthsShort: 'Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'),
          weekdays: 'Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn'.split('_'),
          weekdaysShort: 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'),
          weekdaysMin: 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),
          weekdaysParse: minWeekdaysParse,
          fullWeekdaysParse: fullWeekdaysParse,
          shortWeekdaysParse: shortWeekdaysParse,
          minWeekdaysParse: minWeekdaysParse,
          monthsRegex: monthsRegex,
          monthsShortRegex: monthsRegex,
          monthsStrictRegex: monthsStrictRegex,
          monthsShortStrictRegex: monthsShortStrictRegex,
          monthsParse: monthsParse,
          longMonthsParse: monthsParse,
          shortMonthsParse: monthsParse,
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D [a viz] MMMM YYYY',
            LLL: 'D [a viz] MMMM YYYY HH:mm',
            LLLL: 'dddd, D [a viz] MMMM YYYY HH:mm'
          },
          calendar: {
            sameDay: '[Hiziv da] LT',
            nextDay: '[Warcʼhoazh da] LT',
            nextWeek: 'dddd [da] LT',
            lastDay: '[Decʼh da] LT',
            lastWeek: 'dddd [paset da] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'a-benn %s',
            past: '%s ʼzo',
            s: 'un nebeud segondennoù',
            ss: '%d eilenn',
            m: 'ur vunutenn',
            mm: relativeTimeWithMutation,
            h: 'un eur',
            hh: '%d eur',
            d: 'un devezh',
            dd: relativeTimeWithMutation,
            M: 'ur miz',
            MM: relativeTimeWithMutation,
            y: 'ur bloaz',
            yy: specialMutationForYears
          },
          dayOfMonthOrdinalParse: /\d{1,2}(añ|vet)/,
          ordinal: function ordinal(number) {
            var output = number === 1 ? 'añ' : 'vet';
            return number + output;
          },
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          },
          meridiemParse: /a.m.|g.m./,
          // goude merenn | a-raok merenn
          isPM: function isPM(token) {
            return token === 'g.m.';
          },
          meridiem: function meridiem(hour, minute, isLower) {
            return hour < 12 ? 'a.m.' : 'g.m.';
          }
        });
        return br;
      });
      /***/

    },

    /***/
    "aIsn": function aIsn(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Maori [mi]
      //! author : John Corrigan <robbiecloset@gmail.com> : https://github.com/johnideal
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var mi = moment.defineLocale('mi', {
          months: 'Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea'.split('_'),
          monthsShort: 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split('_'),
          monthsRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
          monthsStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
          monthsShortRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
          monthsShortStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,
          weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'),
          weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
          weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY [i] HH:mm',
            LLLL: 'dddd, D MMMM YYYY [i] HH:mm'
          },
          calendar: {
            sameDay: '[i teie mahana, i] LT',
            nextDay: '[apopo i] LT',
            nextWeek: 'dddd [i] LT',
            lastDay: '[inanahi i] LT',
            lastWeek: 'dddd [whakamutunga i] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'i roto i %s',
            past: '%s i mua',
            s: 'te hēkona ruarua',
            ss: '%d hēkona',
            m: 'he meneti',
            mm: '%d meneti',
            h: 'te haora',
            hh: '%d haora',
            d: 'he ra',
            dd: '%d ra',
            M: 'he marama',
            MM: '%d marama',
            y: 'he tau',
            yy: '%d tau'
          },
          dayOfMonthOrdinalParse: /\d{1,2}º/,
          ordinal: '%dº',
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return mi;
      });
      /***/

    },

    /***/
    "aQkU": function aQkU(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Macedonian [mk]
      //! author : Borislav Mickov : https://github.com/B0k0
      //! author : Sashko Todorov : https://github.com/bkyceh
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var mk = moment.defineLocale('mk', {
          months: 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split('_'),
          monthsShort: 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'),
          weekdays: 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split('_'),
          weekdaysShort: 'нед_пон_вто_сре_чет_пет_саб'.split('_'),
          weekdaysMin: 'нe_пo_вт_ср_че_пе_сa'.split('_'),
          longDateFormat: {
            LT: 'H:mm',
            LTS: 'H:mm:ss',
            L: 'D.MM.YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY H:mm',
            LLLL: 'dddd, D MMMM YYYY H:mm'
          },
          calendar: {
            sameDay: '[Денес во] LT',
            nextDay: '[Утре во] LT',
            nextWeek: '[Во] dddd [во] LT',
            lastDay: '[Вчера во] LT',
            lastWeek: function lastWeek() {
              switch (this.day()) {
                case 0:
                case 3:
                case 6:
                  return '[Изминатата] dddd [во] LT';

                case 1:
                case 2:
                case 4:
                case 5:
                  return '[Изминатиот] dddd [во] LT';
              }
            },
            sameElse: 'L'
          },
          relativeTime: {
            future: 'за %s',
            past: 'пред %s',
            s: 'неколку секунди',
            ss: '%d секунди',
            m: 'една минута',
            mm: '%d минути',
            h: 'еден час',
            hh: '%d часа',
            d: 'еден ден',
            dd: '%d дена',
            M: 'еден месец',
            MM: '%d месеци',
            y: 'една година',
            yy: '%d години'
          },
          dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
          ordinal: function ordinal(number) {
            var lastDigit = number % 10,
                last2Digits = number % 100;

            if (number === 0) {
              return number + '-ев';
            } else if (last2Digits === 0) {
              return number + '-ен';
            } else if (last2Digits > 10 && last2Digits < 20) {
              return number + '-ти';
            } else if (lastDigit === 1) {
              return number + '-ви';
            } else if (lastDigit === 2) {
              return number + '-ри';
            } else if (lastDigit === 7 || lastDigit === 8) {
              return number + '-ми';
            } else {
              return number + '-ти';
            }
          },
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 7 // The week that contains Jan 7th is the first week of the year.

          }
        });
        return mk;
      });
      /***/

    },

    /***/
    "aakf": function aakf(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return differenceInBusinessDays;
      });
      /* harmony import */


      var _isValid_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../isValid/index.js */
      "Se/U");
      /* harmony import */


      var _isWeekend_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../isWeekend/index.js */
      "gLRL");
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _differenceInCalendarDays_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../differenceInCalendarDays/index.js */
      "gXqy");
      /* harmony import */


      var _addDays_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! ../addDays/index.js */
      "9/EM");
      /* harmony import */


      var _isSameDay_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! ../isSameDay/index.js */
      "G6Tw");
      /* harmony import */


      var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
      /*! ../_lib/toInteger/index.js */
      "/h9T");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name differenceInBusinessDays
       * @category Day Helpers
       * @summary Get the number of business days between the given dates.
       *
       * @description
       * Get the number of business day periods between the given dates.
       * Business days being days that arent in the weekend.
       * Like `differenceInCalendarDays`, the function removes the times from
       * the dates before calculating the difference.
       *
       * @param {Date|Number} dateLeft - the later date
       * @param {Date|Number} dateRight - the earlier date
       * @returns {Number} the number of business days
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // How many business days are between
       * // 10 January 2014 and 20 July 2014?
       * var result = differenceInBusinessDays(
       *   new Date(2014, 6, 20),
       *   new Date(2014, 0, 10)
       * )
       * //=> 136
       */


      function differenceInBusinessDays(dirtyDateLeft, dirtyDateRight) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_7__["default"])(2, arguments);
        var dateLeft = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(dirtyDateLeft);
        var dateRight = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(dirtyDateRight);
        if (!Object(_isValid_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dateLeft) || !Object(_isValid_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dateRight)) return new Date(NaN);
        var calendarDifference = Object(_differenceInCalendarDays_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(dateLeft, dateRight);
        var sign = calendarDifference < 0 ? -1 : 1;
        var weeks = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_6__["default"])(calendarDifference / 7);
        var result = weeks * 5;
        dateRight = Object(_addDays_index_js__WEBPACK_IMPORTED_MODULE_4__["default"])(dateRight, weeks * 7); // the loop below will run at most 6 times to account for the remaining days that don't makeup a full week

        while (!Object(_isSameDay_index_js__WEBPACK_IMPORTED_MODULE_5__["default"])(dateLeft, dateRight)) {
          // sign is used to account for both negative and positive differences
          result += Object(_isWeekend_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dateRight) ? 0 : sign;
          dateRight = Object(_addDays_index_js__WEBPACK_IMPORTED_MODULE_4__["default"])(dateRight, sign);
        }

        return result === 0 ? 0 : result;
      }
      /***/

    },

    /***/
    "accU": function accU(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return getSeconds;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name getSeconds
       * @category Second Helpers
       * @summary Get the seconds of the given date.
       *
       * @description
       * Get the seconds of the given date.
       *
       * ### 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 {Date|Number} date - the given date
       * @returns {Number} the seconds
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // Get the seconds of 29 February 2012 11:45:05.123:
       * var result = getSeconds(new Date(2012, 1, 29, 11, 45, 5, 123))
       * //=> 5
       */


      function getSeconds(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);
        var seconds = date.getSeconds();
        return seconds;
      }
      /***/

    },

    /***/
    "aetl": function aetl(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return startOfWeek;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/toInteger/index.js */
      "/h9T");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name startOfWeek
       * @category Week Helpers
       * @summary Return the start of a week for the given date.
       *
       * @description
       * Return the start of a week for the given date.
       * The result will be in the local timezone.
       *
       * ### 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 {Date|Number} date - the original date
       * @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 start of a week
       * @throws {TypeError} 1 argument required
       * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6
       *
       * @example
       * // The start of a week for 2 September 2014 11:55:00:
       * var result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0))
       * //=> Sun Aug 31 2014 00:00:00
       *
       * @example
       * // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00:
       * var result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })
       * //=> Mon Sep 01 2014 00:00:00
       */


      function startOfWeek(dirtyDate, dirtyOptions) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(1, arguments);
        var options = dirtyOptions || {};
        var locale = options.locale;
        var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn;
        var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(localeWeekStartsOn);
        var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN

        if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
          throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
        }

        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);
        var day = date.getDay();
        var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
        date.setDate(date.getDate() - diff);
        date.setHours(0, 0, 0, 0);
        return date;
      }
      /***/

    },

    /***/
    "b/SL": function bSL(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony import */


      var _add_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ./add/index.js */
      "IjAw");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "add", function () {
        return _add_index_js__WEBPACK_IMPORTED_MODULE_0__["default"];
      });
      /* harmony import */


      var _addBusinessDays_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ./addBusinessDays/index.js */
      "83R2");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "addBusinessDays", function () {
        return _addBusinessDays_index_js__WEBPACK_IMPORTED_MODULE_1__["default"];
      });
      /* harmony import */


      var _addDays_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ./addDays/index.js */
      "9/EM");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "addDays", function () {
        return _addDays_index_js__WEBPACK_IMPORTED_MODULE_2__["default"];
      });
      /* harmony import */


      var _addHours_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ./addHours/index.js */
      "Da6A");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "addHours", function () {
        return _addHours_index_js__WEBPACK_IMPORTED_MODULE_3__["default"];
      });
      /* harmony import */


      var _addISOWeekYears_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! ./addISOWeekYears/index.js */
      "GP2A");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "addISOWeekYears", function () {
        return _addISOWeekYears_index_js__WEBPACK_IMPORTED_MODULE_4__["default"];
      });
      /* harmony import */


      var _addMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! ./addMilliseconds/index.js */
      "pl0G");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "addMilliseconds", function () {
        return _addMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_5__["default"];
      });
      /* harmony import */


      var _addMinutes_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
      /*! ./addMinutes/index.js */
      "IYaI");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "addMinutes", function () {
        return _addMinutes_index_js__WEBPACK_IMPORTED_MODULE_6__["default"];
      });
      /* harmony import */


      var _addMonths_index_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
      /*! ./addMonths/index.js */
      "dLU1");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "addMonths", function () {
        return _addMonths_index_js__WEBPACK_IMPORTED_MODULE_7__["default"];
      });
      /* harmony import */


      var _addQuarters_index_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
      /*! ./addQuarters/index.js */
      "tfX3");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "addQuarters", function () {
        return _addQuarters_index_js__WEBPACK_IMPORTED_MODULE_8__["default"];
      });
      /* harmony import */


      var _addSeconds_index_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
      /*! ./addSeconds/index.js */
      "Ctv7");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "addSeconds", function () {
        return _addSeconds_index_js__WEBPACK_IMPORTED_MODULE_9__["default"];
      });
      /* harmony import */


      var _addWeeks_index_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(
      /*! ./addWeeks/index.js */
      "r4sE");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "addWeeks", function () {
        return _addWeeks_index_js__WEBPACK_IMPORTED_MODULE_10__["default"];
      });
      /* harmony import */


      var _addYears_index_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(
      /*! ./addYears/index.js */
      "zbbA");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "addYears", function () {
        return _addYears_index_js__WEBPACK_IMPORTED_MODULE_11__["default"];
      });
      /* harmony import */


      var _areIntervalsOverlapping_index_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(
      /*! ./areIntervalsOverlapping/index.js */
      "26Ho");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "areIntervalsOverlapping", function () {
        return _areIntervalsOverlapping_index_js__WEBPACK_IMPORTED_MODULE_12__["default"];
      });
      /* harmony import */


      var _closestIndexTo_index_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(
      /*! ./closestIndexTo/index.js */
      "wigk");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "closestIndexTo", function () {
        return _closestIndexTo_index_js__WEBPACK_IMPORTED_MODULE_13__["default"];
      });
      /* harmony import */


      var _closestTo_index_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(
      /*! ./closestTo/index.js */
      "oYTe");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "closestTo", function () {
        return _closestTo_index_js__WEBPACK_IMPORTED_MODULE_14__["default"];
      });
      /* harmony import */


      var _compareAsc_index_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(
      /*! ./compareAsc/index.js */
      "JhOC");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "compareAsc", function () {
        return _compareAsc_index_js__WEBPACK_IMPORTED_MODULE_15__["default"];
      });
      /* harmony import */


      var _compareDesc_index_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(
      /*! ./compareDesc/index.js */
      "fePA");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "compareDesc", function () {
        return _compareDesc_index_js__WEBPACK_IMPORTED_MODULE_16__["default"];
      });
      /* harmony import */


      var _differenceInBusinessDays_index_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(
      /*! ./differenceInBusinessDays/index.js */
      "aakf");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "differenceInBusinessDays", function () {
        return _differenceInBusinessDays_index_js__WEBPACK_IMPORTED_MODULE_17__["default"];
      });
      /* harmony import */


      var _differenceInCalendarDays_index_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(
      /*! ./differenceInCalendarDays/index.js */
      "gXqy");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "differenceInCalendarDays", function () {
        return _differenceInCalendarDays_index_js__WEBPACK_IMPORTED_MODULE_18__["default"];
      });
      /* harmony import */


      var _differenceInCalendarISOWeekYears_index_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(
      /*! ./differenceInCalendarISOWeekYears/index.js */
      "3zlk");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "differenceInCalendarISOWeekYears", function () {
        return _differenceInCalendarISOWeekYears_index_js__WEBPACK_IMPORTED_MODULE_19__["default"];
      });
      /* harmony import */


      var _differenceInCalendarISOWeeks_index_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(
      /*! ./differenceInCalendarISOWeeks/index.js */
      "Havk");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "differenceInCalendarISOWeeks", function () {
        return _differenceInCalendarISOWeeks_index_js__WEBPACK_IMPORTED_MODULE_20__["default"];
      });
      /* harmony import */


      var _differenceInCalendarMonths_index_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(
      /*! ./differenceInCalendarMonths/index.js */
      "pvlY");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "differenceInCalendarMonths", function () {
        return _differenceInCalendarMonths_index_js__WEBPACK_IMPORTED_MODULE_21__["default"];
      });
      /* harmony import */


      var _differenceInCalendarQuarters_index_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(
      /*! ./differenceInCalendarQuarters/index.js */
      "3nag");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "differenceInCalendarQuarters", function () {
        return _differenceInCalendarQuarters_index_js__WEBPACK_IMPORTED_MODULE_22__["default"];
      });
      /* harmony import */


      var _differenceInCalendarWeeks_index_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(
      /*! ./differenceInCalendarWeeks/index.js */
      "/Lp+");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "differenceInCalendarWeeks", function () {
        return _differenceInCalendarWeeks_index_js__WEBPACK_IMPORTED_MODULE_23__["default"];
      });
      /* harmony import */


      var _differenceInCalendarYears_index_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(
      /*! ./differenceInCalendarYears/index.js */
      "AF4N");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "differenceInCalendarYears", function () {
        return _differenceInCalendarYears_index_js__WEBPACK_IMPORTED_MODULE_24__["default"];
      });
      /* harmony import */


      var _differenceInDays_index_js__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(
      /*! ./differenceInDays/index.js */
      "NoME");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "differenceInDays", function () {
        return _differenceInDays_index_js__WEBPACK_IMPORTED_MODULE_25__["default"];
      });
      /* harmony import */


      var _differenceInHours_index_js__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(
      /*! ./differenceInHours/index.js */
      "moCM");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "differenceInHours", function () {
        return _differenceInHours_index_js__WEBPACK_IMPORTED_MODULE_26__["default"];
      });
      /* harmony import */


      var _differenceInISOWeekYears_index_js__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(
      /*! ./differenceInISOWeekYears/index.js */
      "vAQ4");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "differenceInISOWeekYears", function () {
        return _differenceInISOWeekYears_index_js__WEBPACK_IMPORTED_MODULE_27__["default"];
      });
      /* harmony import */


      var _differenceInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(
      /*! ./differenceInMilliseconds/index.js */
      "Orh4");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "differenceInMilliseconds", function () {
        return _differenceInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_28__["default"];
      });
      /* harmony import */


      var _differenceInMinutes_index_js__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(
      /*! ./differenceInMinutes/index.js */
      "jG/O");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "differenceInMinutes", function () {
        return _differenceInMinutes_index_js__WEBPACK_IMPORTED_MODULE_29__["default"];
      });
      /* harmony import */


      var _differenceInMonths_index_js__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(
      /*! ./differenceInMonths/index.js */
      "AkX2");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "differenceInMonths", function () {
        return _differenceInMonths_index_js__WEBPACK_IMPORTED_MODULE_30__["default"];
      });
      /* harmony import */


      var _differenceInQuarters_index_js__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(
      /*! ./differenceInQuarters/index.js */
      "a7HJ");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "differenceInQuarters", function () {
        return _differenceInQuarters_index_js__WEBPACK_IMPORTED_MODULE_31__["default"];
      });
      /* harmony import */


      var _differenceInSeconds_index_js__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(
      /*! ./differenceInSeconds/index.js */
      "qVkf");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "differenceInSeconds", function () {
        return _differenceInSeconds_index_js__WEBPACK_IMPORTED_MODULE_32__["default"];
      });
      /* harmony import */


      var _differenceInWeeks_index_js__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(
      /*! ./differenceInWeeks/index.js */
      "0Ug1");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "differenceInWeeks", function () {
        return _differenceInWeeks_index_js__WEBPACK_IMPORTED_MODULE_33__["default"];
      });
      /* harmony import */


      var _differenceInYears_index_js__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(
      /*! ./differenceInYears/index.js */
      "Bp6I");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "differenceInYears", function () {
        return _differenceInYears_index_js__WEBPACK_IMPORTED_MODULE_34__["default"];
      });
      /* harmony import */


      var _eachDayOfInterval_index_js__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(
      /*! ./eachDayOfInterval/index.js */
      "/rh5");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "eachDayOfInterval", function () {
        return _eachDayOfInterval_index_js__WEBPACK_IMPORTED_MODULE_35__["default"];
      });
      /* harmony import */


      var _eachHourOfInterval_index_js__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(
      /*! ./eachHourOfInterval/index.js */
      "UDy6");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "eachHourOfInterval", function () {
        return _eachHourOfInterval_index_js__WEBPACK_IMPORTED_MODULE_36__["default"];
      });
      /* harmony import */


      var _eachMonthOfInterval_index_js__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(
      /*! ./eachMonthOfInterval/index.js */
      "4jLh");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "eachMonthOfInterval", function () {
        return _eachMonthOfInterval_index_js__WEBPACK_IMPORTED_MODULE_37__["default"];
      });
      /* harmony import */


      var _eachQuarterOfInterval_index_js__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(
      /*! ./eachQuarterOfInterval/index.js */
      "cjyC");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "eachQuarterOfInterval", function () {
        return _eachQuarterOfInterval_index_js__WEBPACK_IMPORTED_MODULE_38__["default"];
      });
      /* harmony import */


      var _eachWeekOfInterval_index_js__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(
      /*! ./eachWeekOfInterval/index.js */
      "knTs");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "eachWeekOfInterval", function () {
        return _eachWeekOfInterval_index_js__WEBPACK_IMPORTED_MODULE_39__["default"];
      });
      /* harmony import */


      var _eachWeekendOfInterval_index_js__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(
      /*! ./eachWeekendOfInterval/index.js */
      "YdWM");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "eachWeekendOfInterval", function () {
        return _eachWeekendOfInterval_index_js__WEBPACK_IMPORTED_MODULE_40__["default"];
      });
      /* harmony import */


      var _eachWeekendOfMonth_index_js__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(
      /*! ./eachWeekendOfMonth/index.js */
      "2AQE");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "eachWeekendOfMonth", function () {
        return _eachWeekendOfMonth_index_js__WEBPACK_IMPORTED_MODULE_41__["default"];
      });
      /* harmony import */


      var _eachWeekendOfYear_index_js__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(
      /*! ./eachWeekendOfYear/index.js */
      "EkTD");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "eachWeekendOfYear", function () {
        return _eachWeekendOfYear_index_js__WEBPACK_IMPORTED_MODULE_42__["default"];
      });
      /* harmony import */


      var _eachYearOfInterval_index_js__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(
      /*! ./eachYearOfInterval/index.js */
      "diJF");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "eachYearOfInterval", function () {
        return _eachYearOfInterval_index_js__WEBPACK_IMPORTED_MODULE_43__["default"];
      });
      /* harmony import */


      var _endOfDay_index_js__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(
      /*! ./endOfDay/index.js */
      "piIK");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "endOfDay", function () {
        return _endOfDay_index_js__WEBPACK_IMPORTED_MODULE_44__["default"];
      });
      /* harmony import */


      var _endOfDecade_index_js__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(
      /*! ./endOfDecade/index.js */
      "QNJA");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "endOfDecade", function () {
        return _endOfDecade_index_js__WEBPACK_IMPORTED_MODULE_45__["default"];
      });
      /* harmony import */


      var _endOfHour_index_js__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(
      /*! ./endOfHour/index.js */
      "rH8F");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "endOfHour", function () {
        return _endOfHour_index_js__WEBPACK_IMPORTED_MODULE_46__["default"];
      });
      /* harmony import */


      var _endOfISOWeek_index_js__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(
      /*! ./endOfISOWeek/index.js */
      "TXrr");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "endOfISOWeek", function () {
        return _endOfISOWeek_index_js__WEBPACK_IMPORTED_MODULE_47__["default"];
      });
      /* harmony import */


      var _endOfISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(
      /*! ./endOfISOWeekYear/index.js */
      "bbbT");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "endOfISOWeekYear", function () {
        return _endOfISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_48__["default"];
      });
      /* harmony import */


      var _endOfMinute_index_js__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(
      /*! ./endOfMinute/index.js */
      "IIV6");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "endOfMinute", function () {
        return _endOfMinute_index_js__WEBPACK_IMPORTED_MODULE_49__["default"];
      });
      /* harmony import */


      var _endOfMonth_index_js__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(
      /*! ./endOfMonth/index.js */
      "jKzE");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "endOfMonth", function () {
        return _endOfMonth_index_js__WEBPACK_IMPORTED_MODULE_50__["default"];
      });
      /* harmony import */


      var _endOfQuarter_index_js__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(
      /*! ./endOfQuarter/index.js */
      "qh+W");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "endOfQuarter", function () {
        return _endOfQuarter_index_js__WEBPACK_IMPORTED_MODULE_51__["default"];
      });
      /* harmony import */


      var _endOfSecond_index_js__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(
      /*! ./endOfSecond/index.js */
      "PWs8");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "endOfSecond", function () {
        return _endOfSecond_index_js__WEBPACK_IMPORTED_MODULE_52__["default"];
      });
      /* harmony import */


      var _endOfToday_index_js__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(
      /*! ./endOfToday/index.js */
      "lv2b");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "endOfToday", function () {
        return _endOfToday_index_js__WEBPACK_IMPORTED_MODULE_53__["default"];
      });
      /* harmony import */


      var _endOfTomorrow_index_js__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(
      /*! ./endOfTomorrow/index.js */
      "YOv4");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "endOfTomorrow", function () {
        return _endOfTomorrow_index_js__WEBPACK_IMPORTED_MODULE_54__["default"];
      });
      /* harmony import */


      var _endOfWeek_index_js__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(
      /*! ./endOfWeek/index.js */
      "L8hi");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "endOfWeek", function () {
        return _endOfWeek_index_js__WEBPACK_IMPORTED_MODULE_55__["default"];
      });
      /* harmony import */


      var _endOfYear_index_js__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(
      /*! ./endOfYear/index.js */
      "Gqtg");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "endOfYear", function () {
        return _endOfYear_index_js__WEBPACK_IMPORTED_MODULE_56__["default"];
      });
      /* harmony import */


      var _endOfYesterday_index_js__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(
      /*! ./endOfYesterday/index.js */
      "bKex");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "endOfYesterday", function () {
        return _endOfYesterday_index_js__WEBPACK_IMPORTED_MODULE_57__["default"];
      });
      /* harmony import */


      var _format_index_js__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(
      /*! ./format/index.js */
      "sWYD");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "format", function () {
        return _format_index_js__WEBPACK_IMPORTED_MODULE_58__["default"];
      });
      /* harmony import */


      var _formatDistance_index_js__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(
      /*! ./formatDistance/index.js */
      "FVam");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "formatDistance", function () {
        return _formatDistance_index_js__WEBPACK_IMPORTED_MODULE_59__["default"];
      });
      /* harmony import */


      var _formatDistanceStrict_index_js__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(
      /*! ./formatDistanceStrict/index.js */
      "0UaF");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "formatDistanceStrict", function () {
        return _formatDistanceStrict_index_js__WEBPACK_IMPORTED_MODULE_60__["default"];
      });
      /* harmony import */


      var _formatDistanceToNow_index_js__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(
      /*! ./formatDistanceToNow/index.js */
      "7xvl");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "formatDistanceToNow", function () {
        return _formatDistanceToNow_index_js__WEBPACK_IMPORTED_MODULE_61__["default"];
      });
      /* harmony import */


      var _formatDistanceToNowStrict_index_js__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(
      /*! ./formatDistanceToNowStrict/index.js */
      "HM39");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "formatDistanceToNowStrict", function () {
        return _formatDistanceToNowStrict_index_js__WEBPACK_IMPORTED_MODULE_62__["default"];
      });
      /* harmony import */


      var _formatDuration_index_js__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(
      /*! ./formatDuration/index.js */
      "VSY4");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "formatDuration", function () {
        return _formatDuration_index_js__WEBPACK_IMPORTED_MODULE_63__["default"];
      });
      /* harmony import */


      var _formatISO_index_js__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(
      /*! ./formatISO/index.js */
      "c32n");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "formatISO", function () {
        return _formatISO_index_js__WEBPACK_IMPORTED_MODULE_64__["default"];
      });
      /* harmony import */


      var _formatISO9075_index_js__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(
      /*! ./formatISO9075/index.js */
      "RaBM");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "formatISO9075", function () {
        return _formatISO9075_index_js__WEBPACK_IMPORTED_MODULE_65__["default"];
      });
      /* harmony import */


      var _formatISODuration_index_js__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(
      /*! ./formatISODuration/index.js */
      "4Ukw");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "formatISODuration", function () {
        return _formatISODuration_index_js__WEBPACK_IMPORTED_MODULE_66__["default"];
      });
      /* harmony import */


      var _formatRFC3339_index_js__WEBPACK_IMPORTED_MODULE_67__ = __webpack_require__(
      /*! ./formatRFC3339/index.js */
      "/pik");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "formatRFC3339", function () {
        return _formatRFC3339_index_js__WEBPACK_IMPORTED_MODULE_67__["default"];
      });
      /* harmony import */


      var _formatRFC7231_index_js__WEBPACK_IMPORTED_MODULE_68__ = __webpack_require__(
      /*! ./formatRFC7231/index.js */
      "bd2w");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "formatRFC7231", function () {
        return _formatRFC7231_index_js__WEBPACK_IMPORTED_MODULE_68__["default"];
      });
      /* harmony import */


      var _formatRelative_index_js__WEBPACK_IMPORTED_MODULE_69__ = __webpack_require__(
      /*! ./formatRelative/index.js */
      "Q2p9");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "formatRelative", function () {
        return _formatRelative_index_js__WEBPACK_IMPORTED_MODULE_69__["default"];
      });
      /* harmony import */


      var _fromUnixTime_index_js__WEBPACK_IMPORTED_MODULE_70__ = __webpack_require__(
      /*! ./fromUnixTime/index.js */
      "RgJi");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "fromUnixTime", function () {
        return _fromUnixTime_index_js__WEBPACK_IMPORTED_MODULE_70__["default"];
      });
      /* harmony import */


      var _getDate_index_js__WEBPACK_IMPORTED_MODULE_71__ = __webpack_require__(
      /*! ./getDate/index.js */
      "TpeJ");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "getDate", function () {
        return _getDate_index_js__WEBPACK_IMPORTED_MODULE_71__["default"];
      });
      /* harmony import */


      var _getDay_index_js__WEBPACK_IMPORTED_MODULE_72__ = __webpack_require__(
      /*! ./getDay/index.js */
      "GobQ");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "getDay", function () {
        return _getDay_index_js__WEBPACK_IMPORTED_MODULE_72__["default"];
      });
      /* harmony import */


      var _getDayOfYear_index_js__WEBPACK_IMPORTED_MODULE_73__ = __webpack_require__(
      /*! ./getDayOfYear/index.js */
      "Dq2l");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "getDayOfYear", function () {
        return _getDayOfYear_index_js__WEBPACK_IMPORTED_MODULE_73__["default"];
      });
      /* harmony import */


      var _getDaysInMonth_index_js__WEBPACK_IMPORTED_MODULE_74__ = __webpack_require__(
      /*! ./getDaysInMonth/index.js */
      "OuL/");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "getDaysInMonth", function () {
        return _getDaysInMonth_index_js__WEBPACK_IMPORTED_MODULE_74__["default"];
      });
      /* harmony import */


      var _getDaysInYear_index_js__WEBPACK_IMPORTED_MODULE_75__ = __webpack_require__(
      /*! ./getDaysInYear/index.js */
      "kKrM");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "getDaysInYear", function () {
        return _getDaysInYear_index_js__WEBPACK_IMPORTED_MODULE_75__["default"];
      });
      /* harmony import */


      var _getDecade_index_js__WEBPACK_IMPORTED_MODULE_76__ = __webpack_require__(
      /*! ./getDecade/index.js */
      "D+pV");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "getDecade", function () {
        return _getDecade_index_js__WEBPACK_IMPORTED_MODULE_76__["default"];
      });
      /* harmony import */


      var _getHours_index_js__WEBPACK_IMPORTED_MODULE_77__ = __webpack_require__(
      /*! ./getHours/index.js */
      "08aW");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "getHours", function () {
        return _getHours_index_js__WEBPACK_IMPORTED_MODULE_77__["default"];
      });
      /* harmony import */


      var _getISODay_index_js__WEBPACK_IMPORTED_MODULE_78__ = __webpack_require__(
      /*! ./getISODay/index.js */
      "NXEZ");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "getISODay", function () {
        return _getISODay_index_js__WEBPACK_IMPORTED_MODULE_78__["default"];
      });
      /* harmony import */


      var _getISOWeek_index_js__WEBPACK_IMPORTED_MODULE_79__ = __webpack_require__(
      /*! ./getISOWeek/index.js */
      "sBI4");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "getISOWeek", function () {
        return _getISOWeek_index_js__WEBPACK_IMPORTED_MODULE_79__["default"];
      });
      /* harmony import */


      var _getISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_80__ = __webpack_require__(
      /*! ./getISOWeekYear/index.js */
      "BKKT");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "getISOWeekYear", function () {
        return _getISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_80__["default"];
      });
      /* harmony import */


      var _getISOWeeksInYear_index_js__WEBPACK_IMPORTED_MODULE_81__ = __webpack_require__(
      /*! ./getISOWeeksInYear/index.js */
      "5FpM");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "getISOWeeksInYear", function () {
        return _getISOWeeksInYear_index_js__WEBPACK_IMPORTED_MODULE_81__["default"];
      });
      /* harmony import */


      var _getMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_82__ = __webpack_require__(
      /*! ./getMilliseconds/index.js */
      "4G8O");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "getMilliseconds", function () {
        return _getMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_82__["default"];
      });
      /* harmony import */


      var _getMinutes_index_js__WEBPACK_IMPORTED_MODULE_83__ = __webpack_require__(
      /*! ./getMinutes/index.js */
      "3g9J");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "getMinutes", function () {
        return _getMinutes_index_js__WEBPACK_IMPORTED_MODULE_83__["default"];
      });
      /* harmony import */


      var _getMonth_index_js__WEBPACK_IMPORTED_MODULE_84__ = __webpack_require__(
      /*! ./getMonth/index.js */
      "cHAT");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "getMonth", function () {
        return _getMonth_index_js__WEBPACK_IMPORTED_MODULE_84__["default"];
      });
      /* harmony import */


      var _getOverlappingDaysInIntervals_index_js__WEBPACK_IMPORTED_MODULE_85__ = __webpack_require__(
      /*! ./getOverlappingDaysInIntervals/index.js */
      "tiw6");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "getOverlappingDaysInIntervals", function () {
        return _getOverlappingDaysInIntervals_index_js__WEBPACK_IMPORTED_MODULE_85__["default"];
      });
      /* harmony import */


      var _getQuarter_index_js__WEBPACK_IMPORTED_MODULE_86__ = __webpack_require__(
      /*! ./getQuarter/index.js */
      "SFWn");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "getQuarter", function () {
        return _getQuarter_index_js__WEBPACK_IMPORTED_MODULE_86__["default"];
      });
      /* harmony import */


      var _getSeconds_index_js__WEBPACK_IMPORTED_MODULE_87__ = __webpack_require__(
      /*! ./getSeconds/index.js */
      "accU");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "getSeconds", function () {
        return _getSeconds_index_js__WEBPACK_IMPORTED_MODULE_87__["default"];
      });
      /* harmony import */


      var _getTime_index_js__WEBPACK_IMPORTED_MODULE_88__ = __webpack_require__(
      /*! ./getTime/index.js */
      "5wMr");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "getTime", function () {
        return _getTime_index_js__WEBPACK_IMPORTED_MODULE_88__["default"];
      });
      /* harmony import */


      var _getUnixTime_index_js__WEBPACK_IMPORTED_MODULE_89__ = __webpack_require__(
      /*! ./getUnixTime/index.js */
      "odh7");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "getUnixTime", function () {
        return _getUnixTime_index_js__WEBPACK_IMPORTED_MODULE_89__["default"];
      });
      /* harmony import */


      var _getWeek_index_js__WEBPACK_IMPORTED_MODULE_90__ = __webpack_require__(
      /*! ./getWeek/index.js */
      "eYjL");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "getWeek", function () {
        return _getWeek_index_js__WEBPACK_IMPORTED_MODULE_90__["default"];
      });
      /* harmony import */


      var _getWeekOfMonth_index_js__WEBPACK_IMPORTED_MODULE_91__ = __webpack_require__(
      /*! ./getWeekOfMonth/index.js */
      "kMzH");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "getWeekOfMonth", function () {
        return _getWeekOfMonth_index_js__WEBPACK_IMPORTED_MODULE_91__["default"];
      });
      /* harmony import */


      var _getWeekYear_index_js__WEBPACK_IMPORTED_MODULE_92__ = __webpack_require__(
      /*! ./getWeekYear/index.js */
      "7gZZ");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "getWeekYear", function () {
        return _getWeekYear_index_js__WEBPACK_IMPORTED_MODULE_92__["default"];
      });
      /* harmony import */


      var _getWeeksInMonth_index_js__WEBPACK_IMPORTED_MODULE_93__ = __webpack_require__(
      /*! ./getWeeksInMonth/index.js */
      "pxe6");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "getWeeksInMonth", function () {
        return _getWeeksInMonth_index_js__WEBPACK_IMPORTED_MODULE_93__["default"];
      });
      /* harmony import */


      var _getYear_index_js__WEBPACK_IMPORTED_MODULE_94__ = __webpack_require__(
      /*! ./getYear/index.js */
      "cnyc");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "getYear", function () {
        return _getYear_index_js__WEBPACK_IMPORTED_MODULE_94__["default"];
      });
      /* harmony import */


      var _intervalToDuration_index_js__WEBPACK_IMPORTED_MODULE_95__ = __webpack_require__(
      /*! ./intervalToDuration/index.js */
      "JbbM");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "intervalToDuration", function () {
        return _intervalToDuration_index_js__WEBPACK_IMPORTED_MODULE_95__["default"];
      });
      /* harmony import */


      var _isAfter_index_js__WEBPACK_IMPORTED_MODULE_96__ = __webpack_require__(
      /*! ./isAfter/index.js */
      "EhJz");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "isAfter", function () {
        return _isAfter_index_js__WEBPACK_IMPORTED_MODULE_96__["default"];
      });
      /* harmony import */


      var _isBefore_index_js__WEBPACK_IMPORTED_MODULE_97__ = __webpack_require__(
      /*! ./isBefore/index.js */
      "dndX");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "isBefore", function () {
        return _isBefore_index_js__WEBPACK_IMPORTED_MODULE_97__["default"];
      });
      /* harmony import */


      var _isDate_index_js__WEBPACK_IMPORTED_MODULE_98__ = __webpack_require__(
      /*! ./isDate/index.js */
      "p+Ro");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "isDate", function () {
        return _isDate_index_js__WEBPACK_IMPORTED_MODULE_98__["default"];
      });
      /* harmony import */


      var _isEqual_index_js__WEBPACK_IMPORTED_MODULE_99__ = __webpack_require__(
      /*! ./isEqual/index.js */
      "zHMj");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "isEqual", function () {
        return _isEqual_index_js__WEBPACK_IMPORTED_MODULE_99__["default"];
      });
      /* harmony import */


      var _isExists_index_js__WEBPACK_IMPORTED_MODULE_100__ = __webpack_require__(
      /*! ./isExists/index.js */
      "/pzQ");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "isExists", function () {
        return _isExists_index_js__WEBPACK_IMPORTED_MODULE_100__["default"];
      });
      /* harmony import */


      var _isFirstDayOfMonth_index_js__WEBPACK_IMPORTED_MODULE_101__ = __webpack_require__(
      /*! ./isFirstDayOfMonth/index.js */
      "wK6H");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "isFirstDayOfMonth", function () {
        return _isFirstDayOfMonth_index_js__WEBPACK_IMPORTED_MODULE_101__["default"];
      });
      /* harmony import */


      var _isFriday_index_js__WEBPACK_IMPORTED_MODULE_102__ = __webpack_require__(
      /*! ./isFriday/index.js */
      "VxKU");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "isFriday", function () {
        return _isFriday_index_js__WEBPACK_IMPORTED_MODULE_102__["default"];
      });
      /* harmony import */


      var _isFuture_index_js__WEBPACK_IMPORTED_MODULE_103__ = __webpack_require__(
      /*! ./isFuture/index.js */
      "uh5Q");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "isFuture", function () {
        return _isFuture_index_js__WEBPACK_IMPORTED_MODULE_103__["default"];
      });
      /* harmony import */


      var _isLastDayOfMonth_index_js__WEBPACK_IMPORTED_MODULE_104__ = __webpack_require__(
      /*! ./isLastDayOfMonth/index.js */
      "DX7i");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "isLastDayOfMonth", function () {
        return _isLastDayOfMonth_index_js__WEBPACK_IMPORTED_MODULE_104__["default"];
      });
      /* harmony import */


      var _isLeapYear_index_js__WEBPACK_IMPORTED_MODULE_105__ = __webpack_require__(
      /*! ./isLeapYear/index.js */
      "9T1D");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "isLeapYear", function () {
        return _isLeapYear_index_js__WEBPACK_IMPORTED_MODULE_105__["default"];
      });
      /* harmony import */


      var _isMatch_index_js__WEBPACK_IMPORTED_MODULE_106__ = __webpack_require__(
      /*! ./isMatch/index.js */
      "D0ch");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "isMatch", function () {
        return _isMatch_index_js__WEBPACK_IMPORTED_MODULE_106__["default"];
      });
      /* harmony import */


      var _isMonday_index_js__WEBPACK_IMPORTED_MODULE_107__ = __webpack_require__(
      /*! ./isMonday/index.js */
      "wTf+");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "isMonday", function () {
        return _isMonday_index_js__WEBPACK_IMPORTED_MODULE_107__["default"];
      });
      /* harmony import */


      var _isPast_index_js__WEBPACK_IMPORTED_MODULE_108__ = __webpack_require__(
      /*! ./isPast/index.js */
      "HZtn");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "isPast", function () {
        return _isPast_index_js__WEBPACK_IMPORTED_MODULE_108__["default"];
      });
      /* harmony import */


      var _isSameDay_index_js__WEBPACK_IMPORTED_MODULE_109__ = __webpack_require__(
      /*! ./isSameDay/index.js */
      "G6Tw");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "isSameDay", function () {
        return _isSameDay_index_js__WEBPACK_IMPORTED_MODULE_109__["default"];
      });
      /* harmony import */


      var _isSameHour_index_js__WEBPACK_IMPORTED_MODULE_110__ = __webpack_require__(
      /*! ./isSameHour/index.js */
      "yzsd");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "isSameHour", function () {
        return _isSameHour_index_js__WEBPACK_IMPORTED_MODULE_110__["default"];
      });
      /* harmony import */


      var _isSameISOWeek_index_js__WEBPACK_IMPORTED_MODULE_111__ = __webpack_require__(
      /*! ./isSameISOWeek/index.js */
      "qzLx");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "isSameISOWeek", function () {
        return _isSameISOWeek_index_js__WEBPACK_IMPORTED_MODULE_111__["default"];
      });
      /* harmony import */


      var _isSameISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_112__ = __webpack_require__(
      /*! ./isSameISOWeekYear/index.js */
      "Tx3P");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "isSameISOWeekYear", function () {
        return _isSameISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_112__["default"];
      });
      /* harmony import */


      var _isSameMinute_index_js__WEBPACK_IMPORTED_MODULE_113__ = __webpack_require__(
      /*! ./isSameMinute/index.js */
      "s+wp");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "isSameMinute", function () {
        return _isSameMinute_index_js__WEBPACK_IMPORTED_MODULE_113__["default"];
      });
      /* harmony import */


      var _isSameMonth_index_js__WEBPACK_IMPORTED_MODULE_114__ = __webpack_require__(
      /*! ./isSameMonth/index.js */
      "WIjQ");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "isSameMonth", function () {
        return _isSameMonth_index_js__WEBPACK_IMPORTED_MODULE_114__["default"];
      });
      /* harmony import */


      var _isSameQuarter_index_js__WEBPACK_IMPORTED_MODULE_115__ = __webpack_require__(
      /*! ./isSameQuarter/index.js */
      "TGAR");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "isSameQuarter", function () {
        return _isSameQuarter_index_js__WEBPACK_IMPORTED_MODULE_115__["default"];
      });
      /* harmony import */


      var _isSameSecond_index_js__WEBPACK_IMPORTED_MODULE_116__ = __webpack_require__(
      /*! ./isSameSecond/index.js */
      "B3eN");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "isSameSecond", function () {
        return _isSameSecond_index_js__WEBPACK_IMPORTED_MODULE_116__["default"];
      });
      /* harmony import */


      var _isSameWeek_index_js__WEBPACK_IMPORTED_MODULE_117__ = __webpack_require__(
      /*! ./isSameWeek/index.js */
      "JO1+");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "isSameWeek", function () {
        return _isSameWeek_index_js__WEBPACK_IMPORTED_MODULE_117__["default"];
      });
      /* harmony import */


      var _isSameYear_index_js__WEBPACK_IMPORTED_MODULE_118__ = __webpack_require__(
      /*! ./isSameYear/index.js */
      "kJyz");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "isSameYear", function () {
        return _isSameYear_index_js__WEBPACK_IMPORTED_MODULE_118__["default"];
      });
      /* harmony import */


      var _isSaturday_index_js__WEBPACK_IMPORTED_MODULE_119__ = __webpack_require__(
      /*! ./isSaturday/index.js */
      "GxZL");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "isSaturday", function () {
        return _isSaturday_index_js__WEBPACK_IMPORTED_MODULE_119__["default"];
      });
      /* harmony import */


      var _isSunday_index_js__WEBPACK_IMPORTED_MODULE_120__ = __webpack_require__(
      /*! ./isSunday/index.js */
      "hW07");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "isSunday", function () {
        return _isSunday_index_js__WEBPACK_IMPORTED_MODULE_120__["default"];
      });
      /* harmony import */


      var _isThisHour_index_js__WEBPACK_IMPORTED_MODULE_121__ = __webpack_require__(
      /*! ./isThisHour/index.js */
      "VlRU");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "isThisHour", function () {
        return _isThisHour_index_js__WEBPACK_IMPORTED_MODULE_121__["default"];
      });
      /* harmony import */


      var _isThisISOWeek_index_js__WEBPACK_IMPORTED_MODULE_122__ = __webpack_require__(
      /*! ./isThisISOWeek/index.js */
      "W9Un");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "isThisISOWeek", function () {
        return _isThisISOWeek_index_js__WEBPACK_IMPORTED_MODULE_122__["default"];
      });
      /* harmony import */


      var _isThisMinute_index_js__WEBPACK_IMPORTED_MODULE_123__ = __webpack_require__(
      /*! ./isThisMinute/index.js */
      "MVig");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "isThisMinute", function () {
        return _isThisMinute_index_js__WEBPACK_IMPORTED_MODULE_123__["default"];
      });
      /* harmony import */


      var _isThisMonth_index_js__WEBPACK_IMPORTED_MODULE_124__ = __webpack_require__(
      /*! ./isThisMonth/index.js */
      "u/yc");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "isThisMonth", function () {
        return _isThisMonth_index_js__WEBPACK_IMPORTED_MODULE_124__["default"];
      });
      /* harmony import */


      var _isThisQuarter_index_js__WEBPACK_IMPORTED_MODULE_125__ = __webpack_require__(
      /*! ./isThisQuarter/index.js */
      "w3Pf");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "isThisQuarter", function () {
        return _isThisQuarter_index_js__WEBPACK_IMPORTED_MODULE_125__["default"];
      });
      /* harmony import */


      var _isThisSecond_index_js__WEBPACK_IMPORTED_MODULE_126__ = __webpack_require__(
      /*! ./isThisSecond/index.js */
      "AWcS");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "isThisSecond", function () {
        return _isThisSecond_index_js__WEBPACK_IMPORTED_MODULE_126__["default"];
      });
      /* harmony import */


      var _isThisWeek_index_js__WEBPACK_IMPORTED_MODULE_127__ = __webpack_require__(
      /*! ./isThisWeek/index.js */
      "3+Em");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "isThisWeek", function () {
        return _isThisWeek_index_js__WEBPACK_IMPORTED_MODULE_127__["default"];
      });
      /* harmony import */


      var _isThisYear_index_js__WEBPACK_IMPORTED_MODULE_128__ = __webpack_require__(
      /*! ./isThisYear/index.js */
      "MkVN");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "isThisYear", function () {
        return _isThisYear_index_js__WEBPACK_IMPORTED_MODULE_128__["default"];
      });
      /* harmony import */


      var _isThursday_index_js__WEBPACK_IMPORTED_MODULE_129__ = __webpack_require__(
      /*! ./isThursday/index.js */
      "H6X/");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "isThursday", function () {
        return _isThursday_index_js__WEBPACK_IMPORTED_MODULE_129__["default"];
      });
      /* harmony import */


      var _isToday_index_js__WEBPACK_IMPORTED_MODULE_130__ = __webpack_require__(
      /*! ./isToday/index.js */
      "TjGc");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "isToday", function () {
        return _isToday_index_js__WEBPACK_IMPORTED_MODULE_130__["default"];
      });
      /* harmony import */


      var _isTomorrow_index_js__WEBPACK_IMPORTED_MODULE_131__ = __webpack_require__(
      /*! ./isTomorrow/index.js */
      "jZMG");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "isTomorrow", function () {
        return _isTomorrow_index_js__WEBPACK_IMPORTED_MODULE_131__["default"];
      });
      /* harmony import */


      var _isTuesday_index_js__WEBPACK_IMPORTED_MODULE_132__ = __webpack_require__(
      /*! ./isTuesday/index.js */
      "PdOA");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "isTuesday", function () {
        return _isTuesday_index_js__WEBPACK_IMPORTED_MODULE_132__["default"];
      });
      /* harmony import */


      var _isValid_index_js__WEBPACK_IMPORTED_MODULE_133__ = __webpack_require__(
      /*! ./isValid/index.js */
      "Se/U");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "isValid", function () {
        return _isValid_index_js__WEBPACK_IMPORTED_MODULE_133__["default"];
      });
      /* harmony import */


      var _isWednesday_index_js__WEBPACK_IMPORTED_MODULE_134__ = __webpack_require__(
      /*! ./isWednesday/index.js */
      "5cON");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "isWednesday", function () {
        return _isWednesday_index_js__WEBPACK_IMPORTED_MODULE_134__["default"];
      });
      /* harmony import */


      var _isWeekend_index_js__WEBPACK_IMPORTED_MODULE_135__ = __webpack_require__(
      /*! ./isWeekend/index.js */
      "gLRL");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "isWeekend", function () {
        return _isWeekend_index_js__WEBPACK_IMPORTED_MODULE_135__["default"];
      });
      /* harmony import */


      var _isWithinInterval_index_js__WEBPACK_IMPORTED_MODULE_136__ = __webpack_require__(
      /*! ./isWithinInterval/index.js */
      "YTra");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "isWithinInterval", function () {
        return _isWithinInterval_index_js__WEBPACK_IMPORTED_MODULE_136__["default"];
      });
      /* harmony import */


      var _isYesterday_index_js__WEBPACK_IMPORTED_MODULE_137__ = __webpack_require__(
      /*! ./isYesterday/index.js */
      "1PZI");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "isYesterday", function () {
        return _isYesterday_index_js__WEBPACK_IMPORTED_MODULE_137__["default"];
      });
      /* harmony import */


      var _lastDayOfDecade_index_js__WEBPACK_IMPORTED_MODULE_138__ = __webpack_require__(
      /*! ./lastDayOfDecade/index.js */
      "8iJe");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "lastDayOfDecade", function () {
        return _lastDayOfDecade_index_js__WEBPACK_IMPORTED_MODULE_138__["default"];
      });
      /* harmony import */


      var _lastDayOfISOWeek_index_js__WEBPACK_IMPORTED_MODULE_139__ = __webpack_require__(
      /*! ./lastDayOfISOWeek/index.js */
      "gA5F");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "lastDayOfISOWeek", function () {
        return _lastDayOfISOWeek_index_js__WEBPACK_IMPORTED_MODULE_139__["default"];
      });
      /* harmony import */


      var _lastDayOfISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_140__ = __webpack_require__(
      /*! ./lastDayOfISOWeekYear/index.js */
      "+1d7");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "lastDayOfISOWeekYear", function () {
        return _lastDayOfISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_140__["default"];
      });
      /* harmony import */


      var _lastDayOfMonth_index_js__WEBPACK_IMPORTED_MODULE_141__ = __webpack_require__(
      /*! ./lastDayOfMonth/index.js */
      "kKUf");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "lastDayOfMonth", function () {
        return _lastDayOfMonth_index_js__WEBPACK_IMPORTED_MODULE_141__["default"];
      });
      /* harmony import */


      var _lastDayOfQuarter_index_js__WEBPACK_IMPORTED_MODULE_142__ = __webpack_require__(
      /*! ./lastDayOfQuarter/index.js */
      "Fwbw");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "lastDayOfQuarter", function () {
        return _lastDayOfQuarter_index_js__WEBPACK_IMPORTED_MODULE_142__["default"];
      });
      /* harmony import */


      var _lastDayOfWeek_index_js__WEBPACK_IMPORTED_MODULE_143__ = __webpack_require__(
      /*! ./lastDayOfWeek/index.js */
      "gH8E");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "lastDayOfWeek", function () {
        return _lastDayOfWeek_index_js__WEBPACK_IMPORTED_MODULE_143__["default"];
      });
      /* harmony import */


      var _lastDayOfYear_index_js__WEBPACK_IMPORTED_MODULE_144__ = __webpack_require__(
      /*! ./lastDayOfYear/index.js */
      "wQoA");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "lastDayOfYear", function () {
        return _lastDayOfYear_index_js__WEBPACK_IMPORTED_MODULE_144__["default"];
      });
      /* harmony import */


      var _lightFormat_index_js__WEBPACK_IMPORTED_MODULE_145__ = __webpack_require__(
      /*! ./lightFormat/index.js */
      "S7Yp");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "lightFormat", function () {
        return _lightFormat_index_js__WEBPACK_IMPORTED_MODULE_145__["default"];
      });
      /* harmony import */


      var _max_index_js__WEBPACK_IMPORTED_MODULE_146__ = __webpack_require__(
      /*! ./max/index.js */
      "TnmX");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "max", function () {
        return _max_index_js__WEBPACK_IMPORTED_MODULE_146__["default"];
      });
      /* harmony import */


      var _min_index_js__WEBPACK_IMPORTED_MODULE_147__ = __webpack_require__(
      /*! ./min/index.js */
      "edZA");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "min", function () {
        return _min_index_js__WEBPACK_IMPORTED_MODULE_147__["default"];
      });
      /* harmony import */


      var _parse_index_js__WEBPACK_IMPORTED_MODULE_148__ = __webpack_require__(
      /*! ./parse/index.js */
      "LPPQ");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "parse", function () {
        return _parse_index_js__WEBPACK_IMPORTED_MODULE_148__["default"];
      });
      /* harmony import */


      var _parseISO_index_js__WEBPACK_IMPORTED_MODULE_149__ = __webpack_require__(
      /*! ./parseISO/index.js */
      "4+6U");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "parseISO", function () {
        return _parseISO_index_js__WEBPACK_IMPORTED_MODULE_149__["default"];
      });
      /* harmony import */


      var _parseJSON_index_js__WEBPACK_IMPORTED_MODULE_150__ = __webpack_require__(
      /*! ./parseJSON/index.js */
      "PQko");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "parseJSON", function () {
        return _parseJSON_index_js__WEBPACK_IMPORTED_MODULE_150__["default"];
      });
      /* harmony import */


      var _roundToNearestMinutes_index_js__WEBPACK_IMPORTED_MODULE_151__ = __webpack_require__(
      /*! ./roundToNearestMinutes/index.js */
      "ILtH");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "roundToNearestMinutes", function () {
        return _roundToNearestMinutes_index_js__WEBPACK_IMPORTED_MODULE_151__["default"];
      });
      /* harmony import */


      var _set_index_js__WEBPACK_IMPORTED_MODULE_152__ = __webpack_require__(
      /*! ./set/index.js */
      "gME1");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "set", function () {
        return _set_index_js__WEBPACK_IMPORTED_MODULE_152__["default"];
      });
      /* harmony import */


      var _setDate_index_js__WEBPACK_IMPORTED_MODULE_153__ = __webpack_require__(
      /*! ./setDate/index.js */
      "tSIP");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "setDate", function () {
        return _setDate_index_js__WEBPACK_IMPORTED_MODULE_153__["default"];
      });
      /* harmony import */


      var _setDay_index_js__WEBPACK_IMPORTED_MODULE_154__ = __webpack_require__(
      /*! ./setDay/index.js */
      "ksg9");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "setDay", function () {
        return _setDay_index_js__WEBPACK_IMPORTED_MODULE_154__["default"];
      });
      /* harmony import */


      var _setDayOfYear_index_js__WEBPACK_IMPORTED_MODULE_155__ = __webpack_require__(
      /*! ./setDayOfYear/index.js */
      "6En+");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "setDayOfYear", function () {
        return _setDayOfYear_index_js__WEBPACK_IMPORTED_MODULE_155__["default"];
      });
      /* harmony import */


      var _setHours_index_js__WEBPACK_IMPORTED_MODULE_156__ = __webpack_require__(
      /*! ./setHours/index.js */
      "XQXX");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "setHours", function () {
        return _setHours_index_js__WEBPACK_IMPORTED_MODULE_156__["default"];
      });
      /* harmony import */


      var _setISODay_index_js__WEBPACK_IMPORTED_MODULE_157__ = __webpack_require__(
      /*! ./setISODay/index.js */
      "hroe");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "setISODay", function () {
        return _setISODay_index_js__WEBPACK_IMPORTED_MODULE_157__["default"];
      });
      /* harmony import */


      var _setISOWeek_index_js__WEBPACK_IMPORTED_MODULE_158__ = __webpack_require__(
      /*! ./setISOWeek/index.js */
      "Q0vS");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "setISOWeek", function () {
        return _setISOWeek_index_js__WEBPACK_IMPORTED_MODULE_158__["default"];
      });
      /* harmony import */


      var _setISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_159__ = __webpack_require__(
      /*! ./setISOWeekYear/index.js */
      "7DTD");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "setISOWeekYear", function () {
        return _setISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_159__["default"];
      });
      /* harmony import */


      var _setMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_160__ = __webpack_require__(
      /*! ./setMilliseconds/index.js */
      "RgwM");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "setMilliseconds", function () {
        return _setMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_160__["default"];
      });
      /* harmony import */


      var _setMinutes_index_js__WEBPACK_IMPORTED_MODULE_161__ = __webpack_require__(
      /*! ./setMinutes/index.js */
      "4bjS");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "setMinutes", function () {
        return _setMinutes_index_js__WEBPACK_IMPORTED_MODULE_161__["default"];
      });
      /* harmony import */


      var _setMonth_index_js__WEBPACK_IMPORTED_MODULE_162__ = __webpack_require__(
      /*! ./setMonth/index.js */
      "nQ4q");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "setMonth", function () {
        return _setMonth_index_js__WEBPACK_IMPORTED_MODULE_162__["default"];
      });
      /* harmony import */


      var _setQuarter_index_js__WEBPACK_IMPORTED_MODULE_163__ = __webpack_require__(
      /*! ./setQuarter/index.js */
      "pl+E");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "setQuarter", function () {
        return _setQuarter_index_js__WEBPACK_IMPORTED_MODULE_163__["default"];
      });
      /* harmony import */


      var _setSeconds_index_js__WEBPACK_IMPORTED_MODULE_164__ = __webpack_require__(
      /*! ./setSeconds/index.js */
      "wXd3");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "setSeconds", function () {
        return _setSeconds_index_js__WEBPACK_IMPORTED_MODULE_164__["default"];
      });
      /* harmony import */


      var _setWeek_index_js__WEBPACK_IMPORTED_MODULE_165__ = __webpack_require__(
      /*! ./setWeek/index.js */
      "XX+V");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "setWeek", function () {
        return _setWeek_index_js__WEBPACK_IMPORTED_MODULE_165__["default"];
      });
      /* harmony import */


      var _setWeekYear_index_js__WEBPACK_IMPORTED_MODULE_166__ = __webpack_require__(
      /*! ./setWeekYear/index.js */
      "p0jx");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "setWeekYear", function () {
        return _setWeekYear_index_js__WEBPACK_IMPORTED_MODULE_166__["default"];
      });
      /* harmony import */


      var _setYear_index_js__WEBPACK_IMPORTED_MODULE_167__ = __webpack_require__(
      /*! ./setYear/index.js */
      "6NQC");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "setYear", function () {
        return _setYear_index_js__WEBPACK_IMPORTED_MODULE_167__["default"];
      });
      /* harmony import */


      var _startOfDay_index_js__WEBPACK_IMPORTED_MODULE_168__ = __webpack_require__(
      /*! ./startOfDay/index.js */
      "M34a");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "startOfDay", function () {
        return _startOfDay_index_js__WEBPACK_IMPORTED_MODULE_168__["default"];
      });
      /* harmony import */


      var _startOfDecade_index_js__WEBPACK_IMPORTED_MODULE_169__ = __webpack_require__(
      /*! ./startOfDecade/index.js */
      "6wME");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "startOfDecade", function () {
        return _startOfDecade_index_js__WEBPACK_IMPORTED_MODULE_169__["default"];
      });
      /* harmony import */


      var _startOfHour_index_js__WEBPACK_IMPORTED_MODULE_170__ = __webpack_require__(
      /*! ./startOfHour/index.js */
      "CxvL");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "startOfHour", function () {
        return _startOfHour_index_js__WEBPACK_IMPORTED_MODULE_170__["default"];
      });
      /* harmony import */


      var _startOfISOWeek_index_js__WEBPACK_IMPORTED_MODULE_171__ = __webpack_require__(
      /*! ./startOfISOWeek/index.js */
      "1dmy");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "startOfISOWeek", function () {
        return _startOfISOWeek_index_js__WEBPACK_IMPORTED_MODULE_171__["default"];
      });
      /* harmony import */


      var _startOfISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_172__ = __webpack_require__(
      /*! ./startOfISOWeekYear/index.js */
      "0f5V");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "startOfISOWeekYear", function () {
        return _startOfISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_172__["default"];
      });
      /* harmony import */


      var _startOfMinute_index_js__WEBPACK_IMPORTED_MODULE_173__ = __webpack_require__(
      /*! ./startOfMinute/index.js */
      "0LOL");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "startOfMinute", function () {
        return _startOfMinute_index_js__WEBPACK_IMPORTED_MODULE_173__["default"];
      });
      /* harmony import */


      var _startOfMonth_index_js__WEBPACK_IMPORTED_MODULE_174__ = __webpack_require__(
      /*! ./startOfMonth/index.js */
      "9ig3");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "startOfMonth", function () {
        return _startOfMonth_index_js__WEBPACK_IMPORTED_MODULE_174__["default"];
      });
      /* harmony import */


      var _startOfQuarter_index_js__WEBPACK_IMPORTED_MODULE_175__ = __webpack_require__(
      /*! ./startOfQuarter/index.js */
      "vHCX");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "startOfQuarter", function () {
        return _startOfQuarter_index_js__WEBPACK_IMPORTED_MODULE_175__["default"];
      });
      /* harmony import */


      var _startOfSecond_index_js__WEBPACK_IMPORTED_MODULE_176__ = __webpack_require__(
      /*! ./startOfSecond/index.js */
      "WJMa");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "startOfSecond", function () {
        return _startOfSecond_index_js__WEBPACK_IMPORTED_MODULE_176__["default"];
      });
      /* harmony import */


      var _startOfToday_index_js__WEBPACK_IMPORTED_MODULE_177__ = __webpack_require__(
      /*! ./startOfToday/index.js */
      "0/gg");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "startOfToday", function () {
        return _startOfToday_index_js__WEBPACK_IMPORTED_MODULE_177__["default"];
      });
      /* harmony import */


      var _startOfTomorrow_index_js__WEBPACK_IMPORTED_MODULE_178__ = __webpack_require__(
      /*! ./startOfTomorrow/index.js */
      "iWuq");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "startOfTomorrow", function () {
        return _startOfTomorrow_index_js__WEBPACK_IMPORTED_MODULE_178__["default"];
      });
      /* harmony import */


      var _startOfWeek_index_js__WEBPACK_IMPORTED_MODULE_179__ = __webpack_require__(
      /*! ./startOfWeek/index.js */
      "aetl");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "startOfWeek", function () {
        return _startOfWeek_index_js__WEBPACK_IMPORTED_MODULE_179__["default"];
      });
      /* harmony import */


      var _startOfWeekYear_index_js__WEBPACK_IMPORTED_MODULE_180__ = __webpack_require__(
      /*! ./startOfWeekYear/index.js */
      "qdtj");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "startOfWeekYear", function () {
        return _startOfWeekYear_index_js__WEBPACK_IMPORTED_MODULE_180__["default"];
      });
      /* harmony import */


      var _startOfYear_index_js__WEBPACK_IMPORTED_MODULE_181__ = __webpack_require__(
      /*! ./startOfYear/index.js */
      "1unF");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "startOfYear", function () {
        return _startOfYear_index_js__WEBPACK_IMPORTED_MODULE_181__["default"];
      });
      /* harmony import */


      var _startOfYesterday_index_js__WEBPACK_IMPORTED_MODULE_182__ = __webpack_require__(
      /*! ./startOfYesterday/index.js */
      "YOOs");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "startOfYesterday", function () {
        return _startOfYesterday_index_js__WEBPACK_IMPORTED_MODULE_182__["default"];
      });
      /* harmony import */


      var _sub_index_js__WEBPACK_IMPORTED_MODULE_183__ = __webpack_require__(
      /*! ./sub/index.js */
      "7wYy");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "sub", function () {
        return _sub_index_js__WEBPACK_IMPORTED_MODULE_183__["default"];
      });
      /* harmony import */


      var _subBusinessDays_index_js__WEBPACK_IMPORTED_MODULE_184__ = __webpack_require__(
      /*! ./subBusinessDays/index.js */
      "W6rj");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "subBusinessDays", function () {
        return _subBusinessDays_index_js__WEBPACK_IMPORTED_MODULE_184__["default"];
      });
      /* harmony import */


      var _subDays_index_js__WEBPACK_IMPORTED_MODULE_185__ = __webpack_require__(
      /*! ./subDays/index.js */
      "Xep9");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "subDays", function () {
        return _subDays_index_js__WEBPACK_IMPORTED_MODULE_185__["default"];
      });
      /* harmony import */


      var _subHours_index_js__WEBPACK_IMPORTED_MODULE_186__ = __webpack_require__(
      /*! ./subHours/index.js */
      "WQ3w");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "subHours", function () {
        return _subHours_index_js__WEBPACK_IMPORTED_MODULE_186__["default"];
      });
      /* harmony import */


      var _subISOWeekYears_index_js__WEBPACK_IMPORTED_MODULE_187__ = __webpack_require__(
      /*! ./subISOWeekYears/index.js */
      "pIWV");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "subISOWeekYears", function () {
        return _subISOWeekYears_index_js__WEBPACK_IMPORTED_MODULE_187__["default"];
      });
      /* harmony import */


      var _subMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_188__ = __webpack_require__(
      /*! ./subMilliseconds/index.js */
      "g9KO");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "subMilliseconds", function () {
        return _subMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_188__["default"];
      });
      /* harmony import */


      var _subMinutes_index_js__WEBPACK_IMPORTED_MODULE_189__ = __webpack_require__(
      /*! ./subMinutes/index.js */
      "a3h9");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "subMinutes", function () {
        return _subMinutes_index_js__WEBPACK_IMPORTED_MODULE_189__["default"];
      });
      /* harmony import */


      var _subMonths_index_js__WEBPACK_IMPORTED_MODULE_190__ = __webpack_require__(
      /*! ./subMonths/index.js */
      "phiu");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "subMonths", function () {
        return _subMonths_index_js__WEBPACK_IMPORTED_MODULE_190__["default"];
      });
      /* harmony import */


      var _subQuarters_index_js__WEBPACK_IMPORTED_MODULE_191__ = __webpack_require__(
      /*! ./subQuarters/index.js */
      "VLv5");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "subQuarters", function () {
        return _subQuarters_index_js__WEBPACK_IMPORTED_MODULE_191__["default"];
      });
      /* harmony import */


      var _subSeconds_index_js__WEBPACK_IMPORTED_MODULE_192__ = __webpack_require__(
      /*! ./subSeconds/index.js */
      "SuC2");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "subSeconds", function () {
        return _subSeconds_index_js__WEBPACK_IMPORTED_MODULE_192__["default"];
      });
      /* harmony import */


      var _subWeeks_index_js__WEBPACK_IMPORTED_MODULE_193__ = __webpack_require__(
      /*! ./subWeeks/index.js */
      "/Eym");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "subWeeks", function () {
        return _subWeeks_index_js__WEBPACK_IMPORTED_MODULE_193__["default"];
      });
      /* harmony import */


      var _subYears_index_js__WEBPACK_IMPORTED_MODULE_194__ = __webpack_require__(
      /*! ./subYears/index.js */
      "sdC+");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "subYears", function () {
        return _subYears_index_js__WEBPACK_IMPORTED_MODULE_194__["default"];
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_195__ = __webpack_require__(
      /*! ./toDate/index.js */
      "/Tr7");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "toDate", function () {
        return _toDate_index_js__WEBPACK_IMPORTED_MODULE_195__["default"];
      });
      /* harmony import */


      var _constants_index_js__WEBPACK_IMPORTED_MODULE_196__ = __webpack_require__(
      /*! ./constants/index.js */
      "w3qX");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "maxTime", function () {
        return _constants_index_js__WEBPACK_IMPORTED_MODULE_196__["maxTime"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "minTime", function () {
        return _constants_index_js__WEBPACK_IMPORTED_MODULE_196__["minTime"];
      }); // This file is generated automatically by `scripts/build/indices.js`. Please, don't change it.

      /***/

    },

    /***/
    "b1Dy": function b1Dy(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : English (New Zealand) [en-nz]
      //! author : Luke McGregor : https://github.com/lukemcgregor
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var enNz = moment.defineLocale('en-nz', {
          months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
          monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
          weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
          weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
          weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
          longDateFormat: {
            LT: 'h:mm A',
            LTS: 'h:mm:ss A',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY h:mm A',
            LLLL: 'dddd, D MMMM YYYY h:mm A'
          },
          calendar: {
            sameDay: '[Today at] LT',
            nextDay: '[Tomorrow at] LT',
            nextWeek: 'dddd [at] LT',
            lastDay: '[Yesterday at] LT',
            lastWeek: '[Last] dddd [at] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'in %s',
            past: '%s ago',
            s: 'a few seconds',
            ss: '%d seconds',
            m: 'a minute',
            mm: '%d minutes',
            h: 'an hour',
            hh: '%d hours',
            d: 'a day',
            dd: '%d days',
            M: 'a month',
            MM: '%d months',
            y: 'a year',
            yy: '%d years'
          },
          dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
          ordinal: function ordinal(number) {
            var b = number % 10,
                output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';
            return number + output;
          },
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return enNz;
      });
      /***/

    },

    /***/
    "bHdf": function bHdf(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "mergeAll", function () {
        return mergeAll;
      });
      /* harmony import */


      var _mergeMap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ./mergeMap */
      "5+tZ");
      /* harmony import */


      var _util_identity__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../util/identity */
      "SpAZ");

      function mergeAll() {
        var concurrent = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : Number.POSITIVE_INFINITY;
        return Object(_mergeMap__WEBPACK_IMPORTED_MODULE_0__["mergeMap"])(_util_identity__WEBPACK_IMPORTED_MODULE_1__["identity"], concurrent);
      } //# sourceMappingURL=mergeAll.js.map

      /***/

    },

    /***/
    "bKex": function bKex(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return endOfYesterday;
      });
      /**
       * @name endOfYesterday
       * @category Day Helpers
       * @summary Return the end of yesterday.
       * @pure false
       *
       * @description
       * Return the end of yesterday.
       *
       * > ⚠️ Please note that this function is not present in the FP submodule as
       * > it uses `new Date()` internally hence impure and can't be safely curried.
       *
       * ### 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).
       *
       * @returns {Date} the end of yesterday
       *
       * @example
       * // If today is 6 October 2014:
       * var result = endOfYesterday()
       * //=> Sun Oct 5 2014 23:59:59.999
       */


      function endOfYesterday() {
        var now = new Date();
        var year = now.getFullYear();
        var month = now.getMonth();
        var day = now.getDate();
        var date = new Date(0);
        date.setFullYear(year, month, day - 1);
        date.setHours(23, 59, 59, 999);
        return date;
      }
      /***/

    },

    /***/
    "bOMt": function bOMt(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Norwegian Bokmål [nb]
      //! authors : Espen Hovlandsdal : https://github.com/rexxars
      //!           Sigurd Gartmann : https://github.com/sigurdga
      //!           Stephen Ramthun : https://github.com/stephenramthun
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var nb = moment.defineLocale('nb', {
          months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
          monthsShort: 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),
          monthsParseExact: true,
          weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
          weekdaysShort: 'sø._ma._ti._on._to._fr._lø.'.split('_'),
          weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),
          weekdaysParseExact: true,
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'D. MMMM YYYY',
            LLL: 'D. MMMM YYYY [kl.] HH:mm',
            LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm'
          },
          calendar: {
            sameDay: '[i dag kl.] LT',
            nextDay: '[i morgen kl.] LT',
            nextWeek: 'dddd [kl.] LT',
            lastDay: '[i går kl.] LT',
            lastWeek: '[forrige] dddd [kl.] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'om %s',
            past: '%s siden',
            s: 'noen sekunder',
            ss: '%d sekunder',
            m: 'ett minutt',
            mm: '%d minutter',
            h: 'en time',
            hh: '%d timer',
            d: 'en dag',
            dd: '%d dager',
            w: 'en uke',
            ww: '%d uker',
            M: 'en måned',
            MM: '%d måneder',
            y: 'ett år',
            yy: '%d år'
          },
          dayOfMonthOrdinalParse: /\d{1,2}\./,
          ordinal: '%d.',
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return nb;
      });
      /***/

    },

    /***/
    "bOdf": function bOdf(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "concatMap", function () {
        return concatMap;
      });
      /* harmony import */


      var _mergeMap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ./mergeMap */
      "5+tZ");

      function concatMap(project, resultSelector) {
        return Object(_mergeMap__WEBPACK_IMPORTED_MODULE_0__["mergeMap"])(project, resultSelector, 1);
      } //# sourceMappingURL=concatMap.js.map

      /***/

    },

    /***/
    "bQjk": function bQjk(module, exports, __webpack_require__) {
      ;

      (function (root, factory, undef) {
        if (true) {
          // CommonJS
          module.exports = exports = factory(__webpack_require__(
          /*! ./core */
          "Ib8C"), __webpack_require__(
          /*! ./cipher-core */
          "OLod"));
        } else {}
      })(this, function (CryptoJS) {
        (function (undefined) {
          // Shortcuts
          var C = CryptoJS;
          var C_lib = C.lib;
          var CipherParams = C_lib.CipherParams;
          var C_enc = C.enc;
          var Hex = C_enc.Hex;
          var C_format = C.format;
          var HexFormatter = C_format.Hex = {
            /**
             * Converts the ciphertext of a cipher params object to a hexadecimally encoded string.
             *
             * @param {CipherParams} cipherParams The cipher params object.
             *
             * @return {string} The hexadecimally encoded string.
             *
             * @static
             *
             * @example
             *
             *     var hexString = CryptoJS.format.Hex.stringify(cipherParams);
             */
            stringify: function stringify(cipherParams) {
              return cipherParams.ciphertext.toString(Hex);
            },

            /**
             * Converts a hexadecimally encoded ciphertext string to a cipher params object.
             *
             * @param {string} input The hexadecimally encoded string.
             *
             * @return {CipherParams} The cipher params object.
             *
             * @static
             *
             * @example
             *
             *     var cipherParams = CryptoJS.format.Hex.parse(hexString);
             */
            parse: function parse(input) {
              var ciphertext = Hex.parse(input);
              return CipherParams.create({
                ciphertext: ciphertext
              });
            }
          };
        })();

        return CryptoJS.format.Hex;
      });
      /***/

    },

    /***/
    "bXm7": function bXm7(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Kazakh [kk]
      //! authors : Nurlan Rakhimzhanov : https://github.com/nurlan
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var suffixes = {
          0: '-ші',
          1: '-ші',
          2: '-ші',
          3: '-ші',
          4: '-ші',
          5: '-ші',
          6: '-шы',
          7: '-ші',
          8: '-ші',
          9: '-шы',
          10: '-шы',
          20: '-шы',
          30: '-шы',
          40: '-шы',
          50: '-ші',
          60: '-шы',
          70: '-ші',
          80: '-ші',
          90: '-шы',
          100: '-ші'
        };
        var kk = moment.defineLocale('kk', {
          months: 'қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан'.split('_'),
          monthsShort: 'қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел'.split('_'),
          weekdays: 'жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі'.split('_'),
          weekdaysShort: 'жек_дүй_сей_сәр_бей_жұм_сен'.split('_'),
          weekdaysMin: 'жк_дй_сй_ср_бй_жм_сн'.split('_'),
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd, D MMMM YYYY HH:mm'
          },
          calendar: {
            sameDay: '[Бүгін сағат] LT',
            nextDay: '[Ертең сағат] LT',
            nextWeek: 'dddd [сағат] LT',
            lastDay: '[Кеше сағат] LT',
            lastWeek: '[Өткен аптаның] dddd [сағат] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: '%s ішінде',
            past: '%s бұрын',
            s: 'бірнеше секунд',
            ss: '%d секунд',
            m: 'бір минут',
            mm: '%d минут',
            h: 'бір сағат',
            hh: '%d сағат',
            d: 'бір күн',
            dd: '%d күн',
            M: 'бір ай',
            MM: '%d ай',
            y: 'бір жыл',
            yy: '%d жыл'
          },
          dayOfMonthOrdinalParse: /\d{1,2}-(ші|шы)/,
          ordinal: function ordinal(number) {
            var a = number % 10,
                b = number >= 100 ? 100 : null;
            return number + (suffixes[number] || suffixes[a] || suffixes[b]);
          },
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 7 // The week that contains Jan 7th is the first week of the year.

          }
        });
        return kk;
      });
      /***/

    },

    /***/
    "bYM6": function bYM6(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale  :  Arabic (Tunisia) [ar-tn]
      //! author : Nader Toukabri : https://github.com/naderio
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var arTn = moment.defineLocale('ar-tn', {
          months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
          monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
          weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
          weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
          weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
          weekdaysParseExact: true,
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd D MMMM YYYY HH:mm'
          },
          calendar: {
            sameDay: '[اليوم على الساعة] LT',
            nextDay: '[غدا على الساعة] LT',
            nextWeek: 'dddd [على الساعة] LT',
            lastDay: '[أمس على الساعة] LT',
            lastWeek: 'dddd [على الساعة] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'في %s',
            past: 'منذ %s',
            s: 'ثوان',
            ss: '%d ثانية',
            m: 'دقيقة',
            mm: '%d دقائق',
            h: 'ساعة',
            hh: '%d ساعات',
            d: 'يوم',
            dd: '%d أيام',
            M: 'شهر',
            MM: '%d أشهر',
            y: 'سنة',
            yy: '%d سنوات'
          },
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return arTn;
      });
      /***/

    },

    /***/
    "bbbT": function bbbT(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return endOfISOWeekYear;
      });
      /* harmony import */


      var _getISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../getISOWeekYear/index.js */
      "BKKT");
      /* harmony import */


      var _startOfISOWeek_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../startOfISOWeek/index.js */
      "1dmy");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name endOfISOWeekYear
       * @category ISO Week-Numbering Year Helpers
       * @summary Return the end of an ISO week-numbering year for the given date.
       *
       * @description
       * Return the end of an ISO week-numbering year,
       * which always starts 3 days before the year's first Thursday.
       * The result will be in the local timezone.
       *
       * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
       *
       * ### 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).
       *
       * - The function was renamed from `endOfISOYear` to `endOfISOWeekYear`.
       *   "ISO week year" is short for [ISO week-numbering year](https://en.wikipedia.org/wiki/ISO_week_date).
       *   This change makes the name consistent with
       *   locale-dependent week-numbering year helpers, e.g., `addWeekYears`.
       *
       * @param {Date|Number} date - the original date
       * @returns {Date} the end of an ISO week-numbering year
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // The end of an ISO week-numbering year for 2 July 2005:
       * var result = endOfISOWeekYear(new Date(2005, 6, 2))
       * //=> Sun Jan 01 2006 23:59:59.999
       */


      function endOfISOWeekYear(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(1, arguments);
        var year = Object(_getISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);
        var fourthOfJanuaryOfNextYear = new Date(0);
        fourthOfJanuaryOfNextYear.setFullYear(year + 1, 0, 4);
        fourthOfJanuaryOfNextYear.setHours(0, 0, 0, 0);
        var date = Object(_startOfISOWeek_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(fourthOfJanuaryOfNextYear);
        date.setMilliseconds(date.getMilliseconds() - 1);
        return date;
      }
      /***/

    },

    /***/
    "bd2w": function bd2w(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return formatRFC7231;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _isValid_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../isValid/index.js */
      "Se/U");
      /* harmony import */


      var _lib_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../_lib/addLeadingZeros/index.js */
      "+7QN");

      var days = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];
      var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
      /**
       * @name formatRFC7231
       * @category Common Helpers
       * @summary Format the date according to the RFC 7231 standard (https://tools.ietf.org/html/rfc7231#section-7.1.1.1).
       *
       * @description
       * Return the formatted date string in RFC 7231 format.
       * The result will always be in UTC timezone.
       *
       * @param {Date|Number} date - the original date
       * @returns {String} the formatted date string
       * @throws {TypeError} 1 argument required
       * @throws {RangeError} `date` must not be Invalid Date
       *
       * @example
       * // Represent 18 September 2019 in RFC 7231 format:
       * const result = formatRFC7231(new Date(2019, 8, 18, 19, 0, 52))
       * //=> 'Wed, 18 Sep 2019 19:00:52 GMT'
       */

      function formatRFC7231(dirtyDate) {
        if (arguments.length < 1) {
          throw new TypeError("1 arguments required, but only ".concat(arguments.length, " present"));
        }

        var originalDate = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);

        if (!Object(_isValid_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(originalDate)) {
          throw new RangeError('Invalid time value');
        }

        var dayName = days[originalDate.getUTCDay()];
        var dayOfMonth = Object(_lib_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(originalDate.getUTCDate(), 2);
        var monthName = months[originalDate.getUTCMonth()];
        var year = originalDate.getUTCFullYear();
        var hour = Object(_lib_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(originalDate.getUTCHours(), 2);
        var minute = Object(_lib_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(originalDate.getUTCMinutes(), 2);
        var second = Object(_lib_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(originalDate.getUTCSeconds(), 2); // Result variables.

        return "".concat(dayName, ", ").concat(dayOfMonth, " ").concat(monthName, " ").concat(year, " ").concat(hour, ":").concat(minute, ":").concat(second, " GMT");
      }
      /***/

    },

    /***/
    "bpih": function bpih(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Italian [it]
      //! author : Lorenzo : https://github.com/aliem
      //! author: Mattia Larentis: https://github.com/nostalgiaz
      //! author: Marco : https://github.com/Manfre98
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var it = moment.defineLocale('it', {
          months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split('_'),
          monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
          weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split('_'),
          weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
          weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'),
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd D MMMM YYYY HH:mm'
          },
          calendar: {
            sameDay: function sameDay() {
              return '[Oggi a' + (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") + ']LT';
            },
            nextDay: function nextDay() {
              return '[Domani a' + (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") + ']LT';
            },
            nextWeek: function nextWeek() {
              return 'dddd [a' + (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") + ']LT';
            },
            lastDay: function lastDay() {
              return '[Ieri a' + (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") + ']LT';
            },
            lastWeek: function lastWeek() {
              switch (this.day()) {
                case 0:
                  return '[La scorsa] dddd [a' + (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") + ']LT';

                default:
                  return '[Lo scorso] dddd [a' + (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") + ']LT';
              }
            },
            sameElse: 'L'
          },
          relativeTime: {
            future: 'tra %s',
            past: '%s fa',
            s: 'alcuni secondi',
            ss: '%d secondi',
            m: 'un minuto',
            mm: '%d minuti',
            h: "un'ora",
            hh: '%d ore',
            d: 'un giorno',
            dd: '%d giorni',
            w: 'una settimana',
            ww: '%d settimane',
            M: 'un mese',
            MM: '%d mesi',
            y: 'un anno',
            yy: '%d anni'
          },
          dayOfMonthOrdinalParse: /\d{1,2}º/,
          ordinal: '%dº',
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return it;
      });
      /***/

    },

    /***/
    "bxKX": function bxKX(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Italian (Switzerland) [it-ch]
      //! author : xfh : https://github.com/xfh
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var itCh = moment.defineLocale('it-ch', {
          months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split('_'),
          monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
          weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split('_'),
          weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
          weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'),
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd D MMMM YYYY HH:mm'
          },
          calendar: {
            sameDay: '[Oggi alle] LT',
            nextDay: '[Domani alle] LT',
            nextWeek: 'dddd [alle] LT',
            lastDay: '[Ieri alle] LT',
            lastWeek: function lastWeek() {
              switch (this.day()) {
                case 0:
                  return '[la scorsa] dddd [alle] LT';

                default:
                  return '[lo scorso] dddd [alle] LT';
              }
            },
            sameElse: 'L'
          },
          relativeTime: {
            future: function future(s) {
              return (/^[0-9].+$/.test(s) ? 'tra' : 'in') + ' ' + s;
            },
            past: '%s fa',
            s: 'alcuni secondi',
            ss: '%d secondi',
            m: 'un minuto',
            mm: '%d minuti',
            h: "un'ora",
            hh: '%d ore',
            d: 'un giorno',
            dd: '%d giorni',
            M: 'un mese',
            MM: '%d mesi',
            y: 'un anno',
            yy: '%d anni'
          },
          dayOfMonthOrdinalParse: /\d{1,2}º/,
          ordinal: '%dº',
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return itCh;
      });
      /***/

    },

    /***/
    "c2HN": function c2HN(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "isPromise", function () {
        return isPromise;
      });

      function isPromise(value) {
        return !!value && typeof value.subscribe !== 'function' && typeof value.then === 'function';
      } //# sourceMappingURL=isPromise.js.map

      /***/

    },

    /***/
    "c32n": function c32n(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return formatISO;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _isValid_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../isValid/index.js */
      "Se/U");
      /* harmony import */


      var _lib_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../_lib/addLeadingZeros/index.js */
      "+7QN");
      /**
       * @name formatISO
       * @category Common Helpers
       * @summary Format the date according to the ISO 8601 standard (http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a003169814.htm).
       *
       * @description
       * Return the formatted date string in ISO 8601 format. Options may be passed to control the parts and notations of the date.
       *
       * @param {Date|Number} date - the original date
       * @param {Object} [options] - an object with options.
       * @param {'extended'|'basic'} [options.format='extended'] - if 'basic', hide delimiters between date and time values.
       * @param {'complete'|'date'|'time'} [options.representation='complete'] - format date, time with time zone, or both.
       * @returns {String} the formatted date string
       * @throws {TypeError} 1 argument required
       * @throws {RangeError} `date` must not be Invalid Date
       * @throws {RangeError} `options.format` must be 'extended' or 'basic'
       * @throws {RangeError} `options.represenation` must be 'date', 'time' or 'complete'
       *
       * @example
       * // Represent 18 September 2019 in ISO 8601 format (UTC):
       * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52))
       * //=> '2019-09-18T19:00:52Z'
       *
       * @example
       * // Represent 18 September 2019 in ISO 8601, short format (UTC):
       * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52), { format: 'basic' })
       * //=> '20190918T190052'
       *
       * @example
       * // Represent 18 September 2019 in ISO 8601 format, date only:
       * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52), { representation: 'date' })
       * //=> '2019-09-18'
       *
       * @example
       * // Represent 18 September 2019 in ISO 8601 format, time only (UTC):
       * const result = formatISO(new Date(2019, 8, 18, 19, 0, 52), { representation: 'time' })
       * //=> '19:00:52Z'
       */


      function formatISO(dirtyDate, dirtyOptions) {
        if (arguments.length < 1) {
          throw new TypeError("1 argument required, but only ".concat(arguments.length, " present"));
        }

        var originalDate = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);

        if (!Object(_isValid_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(originalDate)) {
          throw new RangeError('Invalid time value');
        }

        var options = dirtyOptions || {};
        var format = options.format == null ? 'extended' : String(options.format);
        var representation = options.representation == null ? 'complete' : String(options.representation);

        if (format !== 'extended' && format !== 'basic') {
          throw new RangeError("format must be 'extended' or 'basic'");
        }

        if (representation !== 'date' && representation !== 'time' && representation !== 'complete') {
          throw new RangeError("representation must be 'date', 'time', or 'complete'");
        }

        var result = '';
        var tzOffset = '';
        var dateDelimiter = format === 'extended' ? '-' : '';
        var timeDelimiter = format === 'extended' ? ':' : ''; // Representation is either 'date' or 'complete'

        if (representation !== 'time') {
          var day = Object(_lib_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(originalDate.getDate(), 2);
          var month = Object(_lib_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(originalDate.getMonth() + 1, 2);
          var year = Object(_lib_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(originalDate.getFullYear(), 4); // yyyyMMdd or yyyy-MM-dd.

          result = "".concat(year).concat(dateDelimiter).concat(month).concat(dateDelimiter).concat(day);
        } // Representation is either 'time' or 'complete'


        if (representation !== 'date') {
          // Add the timezone.
          var offset = originalDate.getTimezoneOffset();

          if (offset !== 0) {
            var absoluteOffset = Math.abs(offset);
            var hourOffset = Object(_lib_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(Math.floor(absoluteOffset / 60), 2);
            var minuteOffset = Object(_lib_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(absoluteOffset % 60, 2); // If less than 0, the sign is +, because it is ahead of time.

            var sign = offset < 0 ? '+' : '-';
            tzOffset = "".concat(sign).concat(hourOffset, ":").concat(minuteOffset);
          } else {
            tzOffset = 'Z';
          }

          var hour = Object(_lib_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(originalDate.getHours(), 2);
          var minute = Object(_lib_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(originalDate.getMinutes(), 2);
          var second = Object(_lib_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(originalDate.getSeconds(), 2); // If there's also date, separate it with time with 'T'

          var separator = result === '' ? '' : 'T'; // Creates a time string consisting of hour, minute, and second, separated by delimiters, if defined.

          var time = [hour, minute, second].join(timeDelimiter); // HHmmss or HH:mm:ss.

          result = "".concat(result).concat(separator).concat(time).concat(tzOffset);
        }

        return result;
      }
      /***/

    },

    /***/
    "c6ID": function c6ID(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "sample", function () {
        return sample;
      });
      /* harmony import */


      var _innerSubscribe__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../innerSubscribe */
      "zx2A");

      function sample(notifier) {
        return function (source) {
          return source.lift(new SampleOperator(notifier));
        };
      }

      var SampleOperator = /*#__PURE__*/function () {
        function SampleOperator(notifier) {
          _classCallCheck2(this, SampleOperator);

          this.notifier = notifier;
        }

        _createClass2(SampleOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            var sampleSubscriber = new SampleSubscriber(subscriber);
            var subscription = source.subscribe(sampleSubscriber);
            subscription.add(Object(_innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["innerSubscribe"])(this.notifier, new _innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["SimpleInnerSubscriber"](sampleSubscriber)));
            return subscription;
          }
        }]);

        return SampleOperator;
      }();

      var SampleSubscriber = /*#__PURE__*/function (_innerSubscribe__WEBP13) {
        _inherits2(SampleSubscriber, _innerSubscribe__WEBP13);

        var _super359 = _createSuper2(SampleSubscriber);

        function SampleSubscriber() {
          var _this721;

          _classCallCheck2(this, SampleSubscriber);

          _this721 = _super359.apply(this, arguments);
          _this721.hasValue = false;
          return _this721;
        }

        _createClass2(SampleSubscriber, [{
          key: "_next",
          value: function _next(value) {
            this.value = value;
            this.hasValue = true;
          }
        }, {
          key: "notifyNext",
          value: function notifyNext() {
            this.emitValue();
          }
        }, {
          key: "notifyComplete",
          value: function notifyComplete() {
            this.emitValue();
          }
        }, {
          key: "emitValue",
          value: function emitValue() {
            if (this.hasValue) {
              this.hasValue = false;
              this.destination.next(this.value);
            }
          }
        }]);

        return SampleSubscriber;
      }(_innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["SimpleOuterSubscriber"]); //# sourceMappingURL=sample.js.map

      /***/

    },

    /***/
    "c7jc": function c7jc(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Immediate", function () {
        return Immediate;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TestTools", function () {
        return TestTools;
      });

      var nextHandle = 1;

      var RESOLVED = function () {
        return Promise.resolve();
      }();

      var activeHandles = {};

      function findAndClearHandle(handle) {
        if (handle in activeHandles) {
          delete activeHandles[handle];
          return true;
        }

        return false;
      }

      var Immediate = {
        setImmediate: function setImmediate(cb) {
          var handle = nextHandle++;
          activeHandles[handle] = true;
          RESOLVED.then(function () {
            return findAndClearHandle(handle) && cb();
          });
          return handle;
        },
        clearImmediate: function clearImmediate(handle) {
          findAndClearHandle(handle);
        }
      };
      var TestTools = {
        pending: function pending() {
          return Object.keys(activeHandles).length;
        }
      }; //# sourceMappingURL=Immediate.js.map

      /***/
    },

    /***/
    "cBqT": function cBqT(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "find", function () {
        return find;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "FindValueOperator", function () {
        return FindValueOperator;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "FindValueSubscriber", function () {
        return FindValueSubscriber;
      });
      /* harmony import */


      var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Subscriber */
      "7o/Q");

      function find(predicate, thisArg) {
        if (typeof predicate !== 'function') {
          throw new TypeError('predicate is not a function');
        }

        return function (source) {
          return source.lift(new FindValueOperator(predicate, source, false, thisArg));
        };
      }

      var FindValueOperator = /*#__PURE__*/function () {
        function FindValueOperator(predicate, source, yieldIndex, thisArg) {
          _classCallCheck2(this, FindValueOperator);

          this.predicate = predicate;
          this.source = source;
          this.yieldIndex = yieldIndex;
          this.thisArg = thisArg;
        }

        _createClass2(FindValueOperator, [{
          key: "call",
          value: function call(observer, source) {
            return source.subscribe(new FindValueSubscriber(observer, this.predicate, this.source, this.yieldIndex, this.thisArg));
          }
        }]);

        return FindValueOperator;
      }();

      var FindValueSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_29) {
        _inherits2(FindValueSubscriber, _Subscriber__WEBPACK_29);

        var _super360 = _createSuper2(FindValueSubscriber);

        function FindValueSubscriber(destination, predicate, source, yieldIndex, thisArg) {
          var _this722;

          _classCallCheck2(this, FindValueSubscriber);

          _this722 = _super360.call(this, destination);
          _this722.predicate = predicate;
          _this722.source = source;
          _this722.yieldIndex = yieldIndex;
          _this722.thisArg = thisArg;
          _this722.index = 0;
          return _this722;
        }

        _createClass2(FindValueSubscriber, [{
          key: "notifyComplete",
          value: function notifyComplete(value) {
            var destination = this.destination;
            destination.next(value);
            destination.complete();
            this.unsubscribe();
          }
        }, {
          key: "_next",
          value: function _next(value) {
            var predicate = this.predicate,
                thisArg = this.thisArg;
            var index = this.index++;

            try {
              var result = predicate.call(thisArg || this, value, index, this.source);

              if (result) {
                this.notifyComplete(this.yieldIndex ? index : value);
              }
            } catch (err) {
              this.destination.error(err);
            }
          }
        }, {
          key: "_complete",
          value: function _complete() {
            this.notifyComplete(this.yieldIndex ? -1 : undefined);
          }
        }]);

        return FindValueSubscriber;
      }(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]); //# sourceMappingURL=find.js.map

      /***/

    },

    /***/
    "cHAT": function cHAT(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return getMonth;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name getMonth
       * @category Month Helpers
       * @summary Get the month of the given date.
       *
       * @description
       * Get the month of the given date.
       *
       * ### 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 {Date|Number} date - the given date
       * @returns {Number} the month
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // Which month is 29 February 2012?
       * var result = getMonth(new Date(2012, 1, 29))
       * //=> 1
       */


      function getMonth(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);
        var month = date.getMonth();
        return month;
      }
      /***/

    },

    /***/
    "cRix": function cRix(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Frisian [fy]
      //! author : Robin van der Vliet : https://github.com/robin0van0der0v
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split('_'),
            monthsShortWithoutDots = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_');
        var fy = moment.defineLocale('fy', {
          months: 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split('_'),
          monthsShort: function monthsShort(m, format) {
            if (!m) {
              return monthsShortWithDots;
            } else if (/-MMM-/.test(format)) {
              return monthsShortWithoutDots[m.month()];
            } else {
              return monthsShortWithDots[m.month()];
            }
          },
          monthsParseExact: true,
          weekdays: 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split('_'),
          weekdaysShort: 'si._mo._ti._wo._to._fr._so.'.split('_'),
          weekdaysMin: 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),
          weekdaysParseExact: true,
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD-MM-YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd D MMMM YYYY HH:mm'
          },
          calendar: {
            sameDay: '[hjoed om] LT',
            nextDay: '[moarn om] LT',
            nextWeek: 'dddd [om] LT',
            lastDay: '[juster om] LT',
            lastWeek: '[ôfrûne] dddd [om] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'oer %s',
            past: '%s lyn',
            s: 'in pear sekonden',
            ss: '%d sekonden',
            m: 'ien minút',
            mm: '%d minuten',
            h: 'ien oere',
            hh: '%d oeren',
            d: 'ien dei',
            dd: '%d dagen',
            M: 'ien moanne',
            MM: '%d moannen',
            y: 'ien jier',
            yy: '%d jierren'
          },
          dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
          ordinal: function ordinal(number) {
            return number + (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de');
          },
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return fy;
      });
      /***/

    },

    /***/
    "cUpR": function cUpR(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "BrowserModule", function () {
        return BrowserModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "BrowserTransferStateModule", function () {
        return BrowserTransferStateModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "By", function () {
        return By;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "DomSanitizer", function () {
        return DomSanitizer;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "EVENT_MANAGER_PLUGINS", function () {
        return EVENT_MANAGER_PLUGINS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "EventManager", function () {
        return EventManager;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "HAMMER_GESTURE_CONFIG", function () {
        return HAMMER_GESTURE_CONFIG;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "HAMMER_LOADER", function () {
        return HAMMER_LOADER;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "HammerGestureConfig", function () {
        return HammerGestureConfig;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "HammerModule", function () {
        return HammerModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Meta", function () {
        return Meta;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Title", function () {
        return Title;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TransferState", function () {
        return TransferState;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "VERSION", function () {
        return VERSION;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "disableDebugTools", function () {
        return disableDebugTools;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "enableDebugTools", function () {
        return enableDebugTools;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "makeStateKey", function () {
        return makeStateKey;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "platformBrowser", function () {
        return platformBrowser;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵBROWSER_SANITIZATION_PROVIDERS", function () {
        return BROWSER_SANITIZATION_PROVIDERS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵBROWSER_SANITIZATION_PROVIDERS__POST_R3__", function () {
        return BROWSER_SANITIZATION_PROVIDERS__POST_R3__;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵBrowserDomAdapter", function () {
        return BrowserDomAdapter;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵBrowserGetTestability", function () {
        return BrowserGetTestability;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵDomEventsPlugin", function () {
        return DomEventsPlugin;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵDomRendererFactory2", function () {
        return DomRendererFactory2;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵDomSanitizerImpl", function () {
        return DomSanitizerImpl;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵDomSharedStylesHost", function () {
        return DomSharedStylesHost;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵELEMENT_PROBE_PROVIDERS", function () {
        return ELEMENT_PROBE_PROVIDERS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵELEMENT_PROBE_PROVIDERS__POST_R3__", function () {
        return ELEMENT_PROBE_PROVIDERS__POST_R3__;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵHAMMER_PROVIDERS__POST_R3__", function () {
        return HAMMER_PROVIDERS__POST_R3__;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵHammerGesturesPlugin", function () {
        return HammerGesturesPlugin;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS", function () {
        return INTERNAL_BROWSER_PLATFORM_PROVIDERS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵKeyEventsPlugin", function () {
        return KeyEventsPlugin;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵNAMESPACE_URIS", function () {
        return NAMESPACE_URIS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵSharedStylesHost", function () {
        return SharedStylesHost;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵTRANSITION_ID", function () {
        return TRANSITION_ID;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_platform_browser_platform_browser_a", function () {
        return errorHandler;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_platform_browser_platform_browser_b", function () {
        return _document;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_platform_browser_platform_browser_c", function () {
        return BROWSER_MODULE_PROVIDERS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_platform_browser_platform_browser_d", function () {
        return createMeta;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_platform_browser_platform_browser_e", function () {
        return createTitle;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_platform_browser_platform_browser_f", function () {
        return initTransferState;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_platform_browser_platform_browser_g", function () {
        return EventManagerPlugin;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_platform_browser_platform_browser_h", function () {
        return HAMMER_PROVIDERS__PRE_R3__;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_platform_browser_platform_browser_i", function () {
        return HAMMER_PROVIDERS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_platform_browser_platform_browser_j", function () {
        return domSanitizerImplFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_platform_browser_platform_browser_k", function () {
        return appInitializerFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_platform_browser_platform_browser_l", function () {
        return SERVER_TRANSITION_PROVIDERS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_platform_browser_platform_browser_m", function () {
        return _createNgProbeR2;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_platform_browser_platform_browser_n", function () {
        return ELEMENT_PROBE_PROVIDERS__PRE_R3__;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_platform_browser_platform_browser_o", function () {
        return GenericBrowserDomAdapter;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵescapeHtml", function () {
        return escapeHtml;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵflattenStyles", function () {
        return flattenStyles;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵinitDomAdapter", function () {
        return initDomAdapter;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵshimContentAttribute", function () {
        return shimContentAttribute;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵshimHostAttribute", function () {
        return shimHostAttribute;
      });
      /* harmony import */


      var _angular_common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/common */
      "SVse");
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "ɵgetDOM", function () {
        return _angular_common__WEBPACK_IMPORTED_MODULE_0__["ɵgetDOM"];
      });
      /**
       * @license Angular v11.0.0
       * (c) 2010-2020 Google LLC. https://angular.io/
       * License: MIT
       */

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Provides DOM operations in any browser environment.
       *
       * @security Tread carefully! Interacting with the DOM directly is dangerous and
       * can introduce XSS risks.
       */


      var GenericBrowserDomAdapter = /*#__PURE__*/function (_angular_common__WEBP) {
        _inherits2(GenericBrowserDomAdapter, _angular_common__WEBP);

        var _super361 = _createSuper2(GenericBrowserDomAdapter);

        function GenericBrowserDomAdapter() {
          _classCallCheck2(this, GenericBrowserDomAdapter);

          return _super361.call(this);
        }

        _createClass2(GenericBrowserDomAdapter, [{
          key: "supportsDOMEvents",
          value: function supportsDOMEvents() {
            return true;
          }
        }]);

        return GenericBrowserDomAdapter;
      }(_angular_common__WEBPACK_IMPORTED_MODULE_0__["ɵDomAdapter"]);
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var ɵ0 = function ɵ0() {
        if (_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵglobal"]['Node']) {
          return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵglobal"]['Node'].prototype.contains || function (node) {
            return !!(this.compareDocumentPosition(node) & 16);
          };
        }

        return undefined;
      };

      var nodeContains = ɵ0();
      /**
       * A `DomAdapter` powered by full browser DOM APIs.
       *
       * @security Tread carefully! Interacting with the DOM directly is dangerous and
       * can introduce XSS risks.
       */

      /* tslint:disable:requireParameterType no-console */

      var BrowserDomAdapter = /*#__PURE__*/function (_GenericBrowserDomAda) {
        _inherits2(BrowserDomAdapter, _GenericBrowserDomAda);

        var _super362 = _createSuper2(BrowserDomAdapter);

        function BrowserDomAdapter() {
          _classCallCheck2(this, BrowserDomAdapter);

          return _super362.apply(this, arguments);
        }

        _createClass2(BrowserDomAdapter, [{
          key: "getProperty",
          value: function getProperty(el, name) {
            return el[name];
          }
        }, {
          key: "log",
          value: function log(error) {
            if (window.console) {
              window.console.log && window.console.log(error);
            }
          }
        }, {
          key: "logGroup",
          value: function logGroup(error) {
            if (window.console) {
              window.console.group && window.console.group(error);
            }
          }
        }, {
          key: "logGroupEnd",
          value: function logGroupEnd() {
            if (window.console) {
              window.console.groupEnd && window.console.groupEnd();
            }
          }
        }, {
          key: "onAndCancel",
          value: function onAndCancel(el, evt, listener) {
            el.addEventListener(evt, listener, false); // Needed to follow Dart's subscription semantic, until fix of
            // https://code.google.com/p/dart/issues/detail?id=17406

            return function () {
              el.removeEventListener(evt, listener, false);
            };
          }
        }, {
          key: "dispatchEvent",
          value: function dispatchEvent(el, evt) {
            el.dispatchEvent(evt);
          }
        }, {
          key: "remove",
          value: function remove(node) {
            if (node.parentNode) {
              node.parentNode.removeChild(node);
            }

            return node;
          }
        }, {
          key: "getValue",
          value: function getValue(el) {
            return el.value;
          }
        }, {
          key: "createElement",
          value: function createElement(tagName, doc) {
            doc = doc || this.getDefaultDocument();
            return doc.createElement(tagName);
          }
        }, {
          key: "createHtmlDocument",
          value: function createHtmlDocument() {
            return document.implementation.createHTMLDocument('fakeTitle');
          }
        }, {
          key: "getDefaultDocument",
          value: function getDefaultDocument() {
            return document;
          }
        }, {
          key: "isElementNode",
          value: function isElementNode(node) {
            return node.nodeType === Node.ELEMENT_NODE;
          }
        }, {
          key: "isShadowRoot",
          value: function isShadowRoot(node) {
            return node instanceof DocumentFragment;
          }
        }, {
          key: "getGlobalEventTarget",
          value: function getGlobalEventTarget(doc, target) {
            if (target === 'window') {
              return window;
            }

            if (target === 'document') {
              return doc;
            }

            if (target === 'body') {
              return doc.body;
            }

            return null;
          }
        }, {
          key: "getHistory",
          value: function getHistory() {
            return window.history;
          }
        }, {
          key: "getLocation",
          value: function getLocation() {
            return window.location;
          }
        }, {
          key: "getBaseHref",
          value: function getBaseHref(doc) {
            var href = getBaseElementHref();
            return href == null ? null : relativePath(href);
          }
        }, {
          key: "resetBaseElement",
          value: function resetBaseElement() {
            baseElement = null;
          }
        }, {
          key: "getUserAgent",
          value: function getUserAgent() {
            return window.navigator.userAgent;
          }
        }, {
          key: "performanceNow",
          value: function performanceNow() {
            // performance.now() is not available in all browsers, see
            // http://caniuse.com/#search=performance.now
            return window.performance && window.performance.now ? window.performance.now() : new Date().getTime();
          }
        }, {
          key: "supportsCookies",
          value: function supportsCookies() {
            return true;
          }
        }, {
          key: "getCookie",
          value: function getCookie(name) {
            return Object(_angular_common__WEBPACK_IMPORTED_MODULE_0__["ɵparseCookieValue"])(document.cookie, name);
          }
        }], [{
          key: "makeCurrent",
          value: function makeCurrent() {
            Object(_angular_common__WEBPACK_IMPORTED_MODULE_0__["ɵsetRootDomAdapter"])(new BrowserDomAdapter());
          }
        }]);

        return BrowserDomAdapter;
      }(GenericBrowserDomAdapter);

      var baseElement = null;

      function getBaseElementHref() {
        if (!baseElement) {
          baseElement = document.querySelector('base');

          if (!baseElement) {
            return null;
          }
        }

        return baseElement.getAttribute('href');
      } // based on urlUtils.js in AngularJS 1


      var urlParsingNode;

      function relativePath(url) {
        if (!urlParsingNode) {
          urlParsingNode = document.createElement('a');
        }

        urlParsingNode.setAttribute('href', url);
        return urlParsingNode.pathname.charAt(0) === '/' ? urlParsingNode.pathname : '/' + urlParsingNode.pathname;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * An id that identifies a particular application being bootstrapped, that should
       * match across the client/server boundary.
       */


      var TRANSITION_ID = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["InjectionToken"]('TRANSITION_ID');

      function appInitializerFactory(transitionId, document, injector) {
        return function () {
          // Wait for all application initializers to be completed before removing the styles set by
          // the server.
          injector.get(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ApplicationInitStatus"]).donePromise.then(function () {
            var dom = Object(_angular_common__WEBPACK_IMPORTED_MODULE_0__["ɵgetDOM"])();
            var styles = Array.prototype.slice.apply(document.querySelectorAll("style[ng-transition]"));
            styles.filter(function (el) {
              return el.getAttribute('ng-transition') === transitionId;
            }).forEach(function (el) {
              return dom.remove(el);
            });
          });
        };
      }

      var SERVER_TRANSITION_PROVIDERS = [{
        provide: _angular_core__WEBPACK_IMPORTED_MODULE_1__["APP_INITIALIZER"],
        useFactory: appInitializerFactory,
        deps: [TRANSITION_ID, _angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injector"]],
        multi: true
      }];
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      var BrowserGetTestability = /*#__PURE__*/function () {
        function BrowserGetTestability() {
          _classCallCheck2(this, BrowserGetTestability);
        }

        _createClass2(BrowserGetTestability, [{
          key: "addToWindow",
          value: function addToWindow(registry) {
            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵglobal"]['getAngularTestability'] = function (elem) {
              var findInAncestors = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
              var testability = registry.findTestabilityInTree(elem, findInAncestors);

              if (testability == null) {
                throw new Error('Could not find testability for element.');
              }

              return testability;
            };

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵglobal"]['getAllAngularTestabilities'] = function () {
              return registry.getAllTestabilities();
            };

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵglobal"]['getAllAngularRootElements'] = function () {
              return registry.getAllRootElements();
            };

            var whenAllStable = function whenAllStable(callback
            /** TODO #9100 */
            ) {
              var testabilities = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵglobal"]['getAllAngularTestabilities']();

              var count = testabilities.length;
              var didWork = false;

              var decrement = function decrement(didWork_
              /** TODO #9100 */
              ) {
                didWork = didWork || didWork_;
                count--;

                if (count == 0) {
                  callback(didWork);
                }
              };

              testabilities.forEach(function (testability
              /** TODO #9100 */
              ) {
                testability.whenStable(decrement);
              });
            };

            if (!_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵglobal"]['frameworkStabilizers']) {
              _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵglobal"]['frameworkStabilizers'] = [];
            }

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵglobal"]['frameworkStabilizers'].push(whenAllStable);
          }
        }, {
          key: "findTestabilityInTree",
          value: function findTestabilityInTree(registry, elem, findInAncestors) {
            if (elem == null) {
              return null;
            }

            var t = registry.getTestability(elem);

            if (t != null) {
              return t;
            } else if (!findInAncestors) {
              return null;
            }

            if (Object(_angular_common__WEBPACK_IMPORTED_MODULE_0__["ɵgetDOM"])().isShadowRoot(elem)) {
              return this.findTestabilityInTree(registry, elem.host, true);
            }

            return this.findTestabilityInTree(registry, elem.parentElement, true);
          }
        }], [{
          key: "init",
          value: function init() {
            Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["setTestabilityGetter"])(new BrowserGetTestability());
          }
        }]);

        return BrowserGetTestability;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var CAMEL_CASE_REGEXP = /([A-Z])/g;
      var DASH_CASE_REGEXP = /-([a-z])/g;

      function camelCaseToDashCase(input) {
        return input.replace(CAMEL_CASE_REGEXP, function () {
          for (var _len64 = arguments.length, m = new Array(_len64), _key66 = 0; _key66 < _len64; _key66++) {
            m[_key66] = arguments[_key66];
          }

          return '-' + m[1].toLowerCase();
        });
      }

      function dashCaseToCamelCase(input) {
        return input.replace(DASH_CASE_REGEXP, function () {
          for (var _len65 = arguments.length, m = new Array(_len65), _key67 = 0; _key67 < _len65; _key67++) {
            m[_key67] = arguments[_key67];
          }

          return m[1].toUpperCase();
        });
      }
      /**
       * Exports the value under a given `name` in the global property `ng`. For example `ng.probe` if
       * `name` is `'probe'`.
       * @param name Name under which it will be exported. Keep in mind this will be a property of the
       * global `ng` object.
       * @param value The value to export.
       */


      function exportNgVar(name, value) {
        if (typeof COMPILED === 'undefined' || !COMPILED) {
          // Note: we can't export `ng` when using closure enhanced optimization as:
          // - closure declares globals itself for minified names, which sometimes clobber our `ng` global
          // - we can't declare a closure extern as the namespace `ng` is already used within Google
          //   for typings for angularJS (via `goog.provide('ng....')`).
          var ng = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵglobal"]['ng'] = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵglobal"]['ng'] || {};
          ng[name] = value;
        }
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var ɵ0$1 = function ɵ0$1() {
        return {
          'ApplicationRef': _angular_core__WEBPACK_IMPORTED_MODULE_1__["ApplicationRef"],
          'NgZone': _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]
        };
      };

      var CORE_TOKENS = ɵ0$1();
      var INSPECT_GLOBAL_NAME = 'probe';
      var CORE_TOKENS_GLOBAL_NAME = 'coreTokens';
      /**
       * Returns a {@link DebugElement} for the given native DOM element, or
       * null if the given native element does not have an Angular view associated
       * with it.
       */

      function inspectNativeElementR2(element) {
        return Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵgetDebugNodeR2"])(element);
      }

      function _createNgProbeR2(coreTokens) {
        exportNgVar(INSPECT_GLOBAL_NAME, inspectNativeElementR2);
        exportNgVar(CORE_TOKENS_GLOBAL_NAME, Object.assign(Object.assign({}, CORE_TOKENS), _ngProbeTokensToMap(coreTokens || [])));
        return function () {
          return inspectNativeElementR2;
        };
      }

      function _ngProbeTokensToMap(tokens) {
        return tokens.reduce(function (prev, t) {
          return prev[t.name] = t.token, prev;
        }, {});
      }
      /**
       * In Ivy, we don't support NgProbe because we have our own set of testing utilities
       * with more robust functionality.
       *
       * We shouldn't bring in NgProbe because it prevents DebugNode and friends from
       * tree-shaking properly.
       */


      var ELEMENT_PROBE_PROVIDERS__POST_R3__ = [];
      /**
       * Providers which support debugging Angular applications (e.g. via `ng.probe`).
       */

      var ELEMENT_PROBE_PROVIDERS__PRE_R3__ = [{
        provide: _angular_core__WEBPACK_IMPORTED_MODULE_1__["APP_INITIALIZER"],
        useFactory: _createNgProbeR2,
        deps: [[_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgProbeToken"], new _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]()]],
        multi: true
      }];
      var ELEMENT_PROBE_PROVIDERS = ELEMENT_PROBE_PROVIDERS__POST_R3__;
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * The injection token for the event-manager plug-in service.
       *
       * @publicApi
       */

      var EVENT_MANAGER_PLUGINS = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["InjectionToken"]('EventManagerPlugins');
      /**
       * An injectable service that provides event management for Angular
       * through a browser plug-in.
       *
       * @publicApi
       */

      var EventManager = /*#__PURE__*/function () {
        /**
         * Initializes an instance of the event-manager service.
         */
        function EventManager(plugins, _zone) {
          var _this723 = this;

          _classCallCheck2(this, EventManager);

          this._zone = _zone;
          this._eventNameToPlugin = new Map();
          plugins.forEach(function (p) {
            return p.manager = _this723;
          });
          this._plugins = plugins.slice().reverse();
        }
        /**
         * Registers a handler for a specific element and event.
         *
         * @param element The HTML element to receive event notifications.
         * @param eventName The name of the event to listen for.
         * @param handler A function to call when the notification occurs. Receives the
         * event object as an argument.
         * @returns  A callback function that can be used to remove the handler.
         */


        _createClass2(EventManager, [{
          key: "addEventListener",
          value: function addEventListener(element, eventName, handler) {
            var plugin = this._findPluginFor(eventName);

            return plugin.addEventListener(element, eventName, handler);
          }
          /**
           * Registers a global handler for an event in a target view.
           *
           * @param target A target for global event notifications. One of "window", "document", or "body".
           * @param eventName The name of the event to listen for.
           * @param handler A function to call when the notification occurs. Receives the
           * event object as an argument.
           * @returns A callback function that can be used to remove the handler.
           */

        }, {
          key: "addGlobalEventListener",
          value: function addGlobalEventListener(target, eventName, handler) {
            var plugin = this._findPluginFor(eventName);

            return plugin.addGlobalEventListener(target, eventName, handler);
          }
          /**
           * Retrieves the compilation zone in which event listeners are registered.
           */

        }, {
          key: "getZone",
          value: function getZone() {
            return this._zone;
          }
          /** @internal */

        }, {
          key: "_findPluginFor",
          value: function _findPluginFor(eventName) {
            var plugin = this._eventNameToPlugin.get(eventName);

            if (plugin) {
              return plugin;
            }

            var plugins = this._plugins;

            for (var i = 0; i < plugins.length; i++) {
              var _plugin = plugins[i];

              if (_plugin.supports(eventName)) {
                this._eventNameToPlugin.set(eventName, _plugin);

                return _plugin;
              }
            }

            throw new Error("No event manager plugin found for event ".concat(eventName));
          }
        }]);

        return EventManager;
      }();

      EventManager.ɵfac = function EventManager_Factory(t) {
        return new (t || EventManager)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](EVENT_MANAGER_PLUGINS), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]));
      };

      EventManager.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
        token: EventManager,
        factory: EventManager.ɵfac
      });

      EventManager.ctorParameters = function () {
        return [{
          type: Array,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
            args: [EVENT_MANAGER_PLUGINS]
          }]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](EventManager, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"]
        }], function () {
          return [{
            type: Array,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
              args: [EVENT_MANAGER_PLUGINS]
            }]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]
          }];
        }, null);
      })();

      var EventManagerPlugin = /*#__PURE__*/function () {
        function EventManagerPlugin(_doc) {
          _classCallCheck2(this, EventManagerPlugin);

          this._doc = _doc;
        }

        _createClass2(EventManagerPlugin, [{
          key: "addGlobalEventListener",
          value: function addGlobalEventListener(element, eventName, handler) {
            var target = Object(_angular_common__WEBPACK_IMPORTED_MODULE_0__["ɵgetDOM"])().getGlobalEventTarget(this._doc, element);

            if (!target) {
              throw new Error("Unsupported event target ".concat(target, " for event ").concat(eventName));
            }

            return this.addEventListener(target, eventName, handler);
          }
        }]);

        return EventManagerPlugin;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var SharedStylesHost = /*#__PURE__*/function () {
        function SharedStylesHost() {
          _classCallCheck2(this, SharedStylesHost);

          /** @internal */
          this._stylesSet = new Set();
        }

        _createClass2(SharedStylesHost, [{
          key: "addStyles",
          value: function addStyles(styles) {
            var _this724 = this;

            var additions = new Set();
            styles.forEach(function (style) {
              if (!_this724._stylesSet.has(style)) {
                _this724._stylesSet.add(style);

                additions.add(style);
              }
            });
            this.onStylesAdded(additions);
          }
        }, {
          key: "onStylesAdded",
          value: function onStylesAdded(additions) {}
        }, {
          key: "getAllStyles",
          value: function getAllStyles() {
            return Array.from(this._stylesSet);
          }
        }]);

        return SharedStylesHost;
      }();

      SharedStylesHost.ɵfac = function SharedStylesHost_Factory(t) {
        return new (t || SharedStylesHost)();
      };

      SharedStylesHost.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
        token: SharedStylesHost,
        factory: SharedStylesHost.ɵfac
      });
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](SharedStylesHost, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"]
        }], function () {
          return [];
        }, null);
      })();

      var DomSharedStylesHost = /*#__PURE__*/function (_SharedStylesHost) {
        _inherits2(DomSharedStylesHost, _SharedStylesHost);

        var _super363 = _createSuper2(DomSharedStylesHost);

        function DomSharedStylesHost(_doc) {
          var _this725;

          _classCallCheck2(this, DomSharedStylesHost);

          _this725 = _super363.call(this);
          _this725._doc = _doc;
          _this725._hostNodes = new Set();
          _this725._styleNodes = new Set();

          _this725._hostNodes.add(_doc.head);

          return _this725;
        }

        _createClass2(DomSharedStylesHost, [{
          key: "_addStylesToHost",
          value: function _addStylesToHost(styles, host) {
            var _this726 = this;

            styles.forEach(function (style) {
              var styleEl = _this726._doc.createElement('style');

              styleEl.textContent = style;

              _this726._styleNodes.add(host.appendChild(styleEl));
            });
          }
        }, {
          key: "addHost",
          value: function addHost(hostNode) {
            this._addStylesToHost(this._stylesSet, hostNode);

            this._hostNodes.add(hostNode);
          }
        }, {
          key: "removeHost",
          value: function removeHost(hostNode) {
            this._hostNodes["delete"](hostNode);
          }
        }, {
          key: "onStylesAdded",
          value: function onStylesAdded(additions) {
            var _this727 = this;

            this._hostNodes.forEach(function (hostNode) {
              return _this727._addStylesToHost(additions, hostNode);
            });
          }
        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            this._styleNodes.forEach(function (styleNode) {
              return Object(_angular_common__WEBPACK_IMPORTED_MODULE_0__["ɵgetDOM"])().remove(styleNode);
            });
          }
        }]);

        return DomSharedStylesHost;
      }(SharedStylesHost);

      DomSharedStylesHost.ɵfac = function DomSharedStylesHost_Factory(t) {
        return new (t || DomSharedStylesHost)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]));
      };

      DomSharedStylesHost.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
        token: DomSharedStylesHost,
        factory: DomSharedStylesHost.ɵfac
      });

      DomSharedStylesHost.ctorParameters = function () {
        return [{
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
            args: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]]
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](DomSharedStylesHost, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"]
        }], function () {
          return [{
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
              args: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]]
            }]
          }];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var NAMESPACE_URIS = {
        'svg': 'http://www.w3.org/2000/svg',
        'xhtml': 'http://www.w3.org/1999/xhtml',
        'xlink': 'http://www.w3.org/1999/xlink',
        'xml': 'http://www.w3.org/XML/1998/namespace',
        'xmlns': 'http://www.w3.org/2000/xmlns/'
      };
      var COMPONENT_REGEX = /%COMP%/g;
      var NG_DEV_MODE = typeof ngDevMode === 'undefined' || !!ngDevMode;
      var COMPONENT_VARIABLE = '%COMP%';
      var HOST_ATTR = "_nghost-".concat(COMPONENT_VARIABLE);
      var CONTENT_ATTR = "_ngcontent-".concat(COMPONENT_VARIABLE);

      function shimContentAttribute(componentShortId) {
        return CONTENT_ATTR.replace(COMPONENT_REGEX, componentShortId);
      }

      function shimHostAttribute(componentShortId) {
        return HOST_ATTR.replace(COMPONENT_REGEX, componentShortId);
      }

      function flattenStyles(compId, styles, target) {
        for (var i = 0; i < styles.length; i++) {
          var style = styles[i];

          if (Array.isArray(style)) {
            flattenStyles(compId, style, target);
          } else {
            style = style.replace(COMPONENT_REGEX, compId);
            target.push(style);
          }
        }

        return target;
      }

      function decoratePreventDefault(eventHandler) {
        // `DebugNode.triggerEventHandler` needs to know if the listener was created with
        // decoratePreventDefault or is a listener added outside the Angular context so it can handle the
        // two differently. In the first case, the special '__ngUnwrap__' token is passed to the unwrap
        // the listener (see below).
        return function (event) {
          // Ivy uses '__ngUnwrap__' as a special token that allows us to unwrap the function
          // so that it can be invoked programmatically by `DebugNode.triggerEventHandler`. The debug_node
          // can inspect the listener toString contents for the existence of this special token. Because
          // the token is a string literal, it is ensured to not be modified by compiled code.
          if (event === '__ngUnwrap__') {
            return eventHandler;
          }

          var allowDefaultBehavior = eventHandler(event);

          if (allowDefaultBehavior === false) {
            // TODO(tbosch): move preventDefault into event plugins...
            event.preventDefault();
            event.returnValue = false;
          }

          return undefined;
        };
      }

      var hasLoggedNativeEncapsulationWarning = false;

      var DomRendererFactory2 = /*#__PURE__*/function () {
        function DomRendererFactory2(eventManager, sharedStylesHost, appId) {
          _classCallCheck2(this, DomRendererFactory2);

          this.eventManager = eventManager;
          this.sharedStylesHost = sharedStylesHost;
          this.appId = appId;
          this.rendererByCompId = new Map();
          this.defaultRenderer = new DefaultDomRenderer2(eventManager);
        }

        _createClass2(DomRendererFactory2, [{
          key: "createRenderer",
          value: function createRenderer(element, type) {
            if (!element || !type) {
              return this.defaultRenderer;
            }

            switch (type.encapsulation) {
              case _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].Emulated:
                {
                  var renderer = this.rendererByCompId.get(type.id);

                  if (!renderer) {
                    renderer = new EmulatedEncapsulationDomRenderer2(this.eventManager, this.sharedStylesHost, type, this.appId);
                    this.rendererByCompId.set(type.id, renderer);
                  }

                  renderer.applyToHost(element);
                  return renderer;
                }

              case 1:
              case _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].ShadowDom:
                // TODO(FW-2290): remove the `case 1:` fallback logic and the warning in v12.
                if ((typeof ngDevMode === 'undefined' || ngDevMode) && !hasLoggedNativeEncapsulationWarning && type.encapsulation === 1) {
                  hasLoggedNativeEncapsulationWarning = true;
                  console.warn('ViewEncapsulation.Native is no longer supported. Falling back to ViewEncapsulation.ShadowDom. The fallback will be removed in v12.');
                }

                return new ShadowDomRenderer(this.eventManager, this.sharedStylesHost, element, type);

              default:
                {
                  if (!this.rendererByCompId.has(type.id)) {
                    var styles = flattenStyles(type.id, type.styles, []);
                    this.sharedStylesHost.addStyles(styles);
                    this.rendererByCompId.set(type.id, this.defaultRenderer);
                  }

                  return this.defaultRenderer;
                }
            }
          }
        }, {
          key: "begin",
          value: function begin() {}
        }, {
          key: "end",
          value: function end() {}
        }]);

        return DomRendererFactory2;
      }();

      DomRendererFactory2.ɵfac = function DomRendererFactory2_Factory(t) {
        return new (t || DomRendererFactory2)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](EventManager), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](DomSharedStylesHost), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["APP_ID"]));
      };

      DomRendererFactory2.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
        token: DomRendererFactory2,
        factory: DomRendererFactory2.ɵfac
      });

      DomRendererFactory2.ctorParameters = function () {
        return [{
          type: EventManager
        }, {
          type: DomSharedStylesHost
        }, {
          type: String,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
            args: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["APP_ID"]]
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](DomRendererFactory2, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"]
        }], function () {
          return [{
            type: EventManager
          }, {
            type: DomSharedStylesHost
          }, {
            type: String,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
              args: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["APP_ID"]]
            }]
          }];
        }, null);
      })();

      var DefaultDomRenderer2 = /*#__PURE__*/function () {
        function DefaultDomRenderer2(eventManager) {
          _classCallCheck2(this, DefaultDomRenderer2);

          this.eventManager = eventManager;
          this.data = Object.create(null);
        }

        _createClass2(DefaultDomRenderer2, [{
          key: "destroy",
          value: function destroy() {}
        }, {
          key: "createElement",
          value: function createElement(name, namespace) {
            if (namespace) {
              // In cases where Ivy (not ViewEngine) is giving us the actual namespace, the look up by key
              // will result in undefined, so we just return the namespace here.
              return document.createElementNS(NAMESPACE_URIS[namespace] || namespace, name);
            }

            return document.createElement(name);
          }
        }, {
          key: "createComment",
          value: function createComment(value) {
            return document.createComment(value);
          }
        }, {
          key: "createText",
          value: function createText(value) {
            return document.createTextNode(value);
          }
        }, {
          key: "appendChild",
          value: function appendChild(parent, newChild) {
            parent.appendChild(newChild);
          }
        }, {
          key: "insertBefore",
          value: function insertBefore(parent, newChild, refChild) {
            if (parent) {
              parent.insertBefore(newChild, refChild);
            }
          }
        }, {
          key: "removeChild",
          value: function removeChild(parent, oldChild) {
            if (parent) {
              parent.removeChild(oldChild);
            }
          }
        }, {
          key: "selectRootElement",
          value: function selectRootElement(selectorOrNode, preserveContent) {
            var el = typeof selectorOrNode === 'string' ? document.querySelector(selectorOrNode) : selectorOrNode;

            if (!el) {
              throw new Error("The selector \"".concat(selectorOrNode, "\" did not match any elements"));
            }

            if (!preserveContent) {
              el.textContent = '';
            }

            return el;
          }
        }, {
          key: "parentNode",
          value: function parentNode(node) {
            return node.parentNode;
          }
        }, {
          key: "nextSibling",
          value: function nextSibling(node) {
            return node.nextSibling;
          }
        }, {
          key: "setAttribute",
          value: function setAttribute(el, name, value, namespace) {
            if (namespace) {
              name = namespace + ':' + name; // TODO(FW-811): Ivy may cause issues here because it's passing around
              // full URIs for namespaces, therefore this lookup will fail.

              var namespaceUri = NAMESPACE_URIS[namespace];

              if (namespaceUri) {
                el.setAttributeNS(namespaceUri, name, value);
              } else {
                el.setAttribute(name, value);
              }
            } else {
              el.setAttribute(name, value);
            }
          }
        }, {
          key: "removeAttribute",
          value: function removeAttribute(el, name, namespace) {
            if (namespace) {
              // TODO(FW-811): Ivy may cause issues here because it's passing around
              // full URIs for namespaces, therefore this lookup will fail.
              var namespaceUri = NAMESPACE_URIS[namespace];

              if (namespaceUri) {
                el.removeAttributeNS(namespaceUri, name);
              } else {
                // TODO(FW-811): Since ivy is passing around full URIs for namespaces
                // this could result in properties like `http://www.w3.org/2000/svg:cx="123"`,
                // which is wrong.
                el.removeAttribute("".concat(namespace, ":").concat(name));
              }
            } else {
              el.removeAttribute(name);
            }
          }
        }, {
          key: "addClass",
          value: function addClass(el, name) {
            el.classList.add(name);
          }
        }, {
          key: "removeClass",
          value: function removeClass(el, name) {
            el.classList.remove(name);
          }
        }, {
          key: "setStyle",
          value: function setStyle(el, style, value, flags) {
            if (flags & _angular_core__WEBPACK_IMPORTED_MODULE_1__["RendererStyleFlags2"].DashCase) {
              el.style.setProperty(style, value, !!(flags & _angular_core__WEBPACK_IMPORTED_MODULE_1__["RendererStyleFlags2"].Important) ? 'important' : '');
            } else {
              el.style[style] = value;
            }
          }
        }, {
          key: "removeStyle",
          value: function removeStyle(el, style, flags) {
            if (flags & _angular_core__WEBPACK_IMPORTED_MODULE_1__["RendererStyleFlags2"].DashCase) {
              el.style.removeProperty(style);
            } else {
              // IE requires '' instead of null
              // see https://github.com/angular/angular/issues/7916
              el.style[style] = '';
            }
          }
        }, {
          key: "setProperty",
          value: function setProperty(el, name, value) {
            NG_DEV_MODE && checkNoSyntheticProp(name, 'property');
            el[name] = value;
          }
        }, {
          key: "setValue",
          value: function setValue(node, value) {
            node.nodeValue = value;
          }
        }, {
          key: "listen",
          value: function listen(target, event, callback) {
            NG_DEV_MODE && checkNoSyntheticProp(event, 'listener');

            if (typeof target === 'string') {
              return this.eventManager.addGlobalEventListener(target, event, decoratePreventDefault(callback));
            }

            return this.eventManager.addEventListener(target, event, decoratePreventDefault(callback));
          }
        }]);

        return DefaultDomRenderer2;
      }();

      var ɵ0$2 = function ɵ0$2() {
        return '@'.charCodeAt(0);
      };

      var AT_CHARCODE = ɵ0$2();

      function checkNoSyntheticProp(name, nameKind) {
        if (name.charCodeAt(0) === AT_CHARCODE) {
          throw new Error("Found the synthetic ".concat(nameKind, " ").concat(name, ". Please include either \"BrowserAnimationsModule\" or \"NoopAnimationsModule\" in your application."));
        }
      }

      var EmulatedEncapsulationDomRenderer2 = /*#__PURE__*/function (_DefaultDomRenderer) {
        _inherits2(EmulatedEncapsulationDomRenderer2, _DefaultDomRenderer);

        var _super364 = _createSuper2(EmulatedEncapsulationDomRenderer2);

        function EmulatedEncapsulationDomRenderer2(eventManager, sharedStylesHost, component, appId) {
          var _this728;

          _classCallCheck2(this, EmulatedEncapsulationDomRenderer2);

          _this728 = _super364.call(this, eventManager);
          _this728.component = component;
          var styles = flattenStyles(appId + '-' + component.id, component.styles, []);
          sharedStylesHost.addStyles(styles);
          _this728.contentAttr = shimContentAttribute(appId + '-' + component.id);
          _this728.hostAttr = shimHostAttribute(appId + '-' + component.id);
          return _this728;
        }

        _createClass2(EmulatedEncapsulationDomRenderer2, [{
          key: "applyToHost",
          value: function applyToHost(element) {
            _get2(_getPrototypeOf2(EmulatedEncapsulationDomRenderer2.prototype), "setAttribute", this).call(this, element, this.hostAttr, '');
          }
        }, {
          key: "createElement",
          value: function createElement(parent, name) {
            var el = _get2(_getPrototypeOf2(EmulatedEncapsulationDomRenderer2.prototype), "createElement", this).call(this, parent, name);

            _get2(_getPrototypeOf2(EmulatedEncapsulationDomRenderer2.prototype), "setAttribute", this).call(this, el, this.contentAttr, '');

            return el;
          }
        }]);

        return EmulatedEncapsulationDomRenderer2;
      }(DefaultDomRenderer2);

      var ShadowDomRenderer = /*#__PURE__*/function (_DefaultDomRenderer2) {
        _inherits2(ShadowDomRenderer, _DefaultDomRenderer2);

        var _super365 = _createSuper2(ShadowDomRenderer);

        function ShadowDomRenderer(eventManager, sharedStylesHost, hostEl, component) {
          var _this729;

          _classCallCheck2(this, ShadowDomRenderer);

          _this729 = _super365.call(this, eventManager);
          _this729.sharedStylesHost = sharedStylesHost;
          _this729.hostEl = hostEl;
          _this729.shadowRoot = hostEl.attachShadow({
            mode: 'open'
          });

          _this729.sharedStylesHost.addHost(_this729.shadowRoot);

          var styles = flattenStyles(component.id, component.styles, []);

          for (var i = 0; i < styles.length; i++) {
            var styleEl = document.createElement('style');
            styleEl.textContent = styles[i];

            _this729.shadowRoot.appendChild(styleEl);
          }

          return _this729;
        }

        _createClass2(ShadowDomRenderer, [{
          key: "nodeOrShadowRoot",
          value: function nodeOrShadowRoot(node) {
            return node === this.hostEl ? this.shadowRoot : node;
          }
        }, {
          key: "destroy",
          value: function destroy() {
            this.sharedStylesHost.removeHost(this.shadowRoot);
          }
        }, {
          key: "appendChild",
          value: function appendChild(parent, newChild) {
            return _get2(_getPrototypeOf2(ShadowDomRenderer.prototype), "appendChild", this).call(this, this.nodeOrShadowRoot(parent), newChild);
          }
        }, {
          key: "insertBefore",
          value: function insertBefore(parent, newChild, refChild) {
            return _get2(_getPrototypeOf2(ShadowDomRenderer.prototype), "insertBefore", this).call(this, this.nodeOrShadowRoot(parent), newChild, refChild);
          }
        }, {
          key: "removeChild",
          value: function removeChild(parent, oldChild) {
            return _get2(_getPrototypeOf2(ShadowDomRenderer.prototype), "removeChild", this).call(this, this.nodeOrShadowRoot(parent), oldChild);
          }
        }, {
          key: "parentNode",
          value: function parentNode(node) {
            return this.nodeOrShadowRoot(_get2(_getPrototypeOf2(ShadowDomRenderer.prototype), "parentNode", this).call(this, this.nodeOrShadowRoot(node)));
          }
        }]);

        return ShadowDomRenderer;
      }(DefaultDomRenderer2);
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var DomEventsPlugin = /*#__PURE__*/function (_EventManagerPlugin) {
        _inherits2(DomEventsPlugin, _EventManagerPlugin);

        var _super366 = _createSuper2(DomEventsPlugin);

        function DomEventsPlugin(doc) {
          _classCallCheck2(this, DomEventsPlugin);

          return _super366.call(this, doc);
        } // This plugin should come last in the list of plugins, because it accepts all
        // events.


        _createClass2(DomEventsPlugin, [{
          key: "supports",
          value: function supports(eventName) {
            return true;
          }
        }, {
          key: "addEventListener",
          value: function addEventListener(element, eventName, handler) {
            var _this730 = this;

            element.addEventListener(eventName, handler, false);
            return function () {
              return _this730.removeEventListener(element, eventName, handler);
            };
          }
        }, {
          key: "removeEventListener",
          value: function removeEventListener(target, eventName, callback) {
            return target.removeEventListener(eventName, callback);
          }
        }]);

        return DomEventsPlugin;
      }(EventManagerPlugin);

      DomEventsPlugin.ɵfac = function DomEventsPlugin_Factory(t) {
        return new (t || DomEventsPlugin)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]));
      };

      DomEventsPlugin.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
        token: DomEventsPlugin,
        factory: DomEventsPlugin.ɵfac
      });

      DomEventsPlugin.ctorParameters = function () {
        return [{
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
            args: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]]
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](DomEventsPlugin, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"]
        }], function () {
          return [{
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
              args: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]]
            }]
          }];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Supported HammerJS recognizer event names.
       */


      var EVENT_NAMES = {
        // pan
        'pan': true,
        'panstart': true,
        'panmove': true,
        'panend': true,
        'pancancel': true,
        'panleft': true,
        'panright': true,
        'panup': true,
        'pandown': true,
        // pinch
        'pinch': true,
        'pinchstart': true,
        'pinchmove': true,
        'pinchend': true,
        'pinchcancel': true,
        'pinchin': true,
        'pinchout': true,
        // press
        'press': true,
        'pressup': true,
        // rotate
        'rotate': true,
        'rotatestart': true,
        'rotatemove': true,
        'rotateend': true,
        'rotatecancel': true,
        // swipe
        'swipe': true,
        'swipeleft': true,
        'swiperight': true,
        'swipeup': true,
        'swipedown': true,
        // tap
        'tap': true
      };
      /**
       * DI token for providing [HammerJS](http://hammerjs.github.io/) support to Angular.
       * @see `HammerGestureConfig`
       *
       * @ngModule HammerModule
       * @publicApi
       */

      var HAMMER_GESTURE_CONFIG = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["InjectionToken"]('HammerGestureConfig');
      /**
       * Injection token used to provide a {@link HammerLoader} to Angular.
       *
       * @publicApi
       */

      var HAMMER_LOADER = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["InjectionToken"]('HammerLoader');
      /**
       * An injectable [HammerJS Manager](http://hammerjs.github.io/api/#hammer.manager)
       * for gesture recognition. Configures specific event recognition.
       * @publicApi
       */

      var HammerGestureConfig = /*#__PURE__*/function () {
        function HammerGestureConfig() {
          _classCallCheck2(this, HammerGestureConfig);

          /**
           * A set of supported event names for gestures to be used in Angular.
           * Angular supports all built-in recognizers, as listed in
           * [HammerJS documentation](http://hammerjs.github.io/).
           */
          this.events = [];
          /**
           * Maps gesture event names to a set of configuration options
           * that specify overrides to the default values for specific properties.
           *
           * The key is a supported event name to be configured,
           * and the options object contains a set of properties, with override values
           * to be applied to the named recognizer event.
           * For example, to disable recognition of the rotate event, specify
           *  `{"rotate": {"enable": false}}`.
           *
           * Properties that are not present take the HammerJS default values.
           * For information about which properties are supported for which events,
           * and their allowed and default values, see
           * [HammerJS documentation](http://hammerjs.github.io/).
           *
           */

          this.overrides = {};
        }
        /**
         * Creates a [HammerJS Manager](http://hammerjs.github.io/api/#hammer.manager)
         * and attaches it to a given HTML element.
         * @param element The element that will recognize gestures.
         * @returns A HammerJS event-manager object.
         */


        _createClass2(HammerGestureConfig, [{
          key: "buildHammer",
          value: function buildHammer(element) {
            var mc = new Hammer(element, this.options);
            mc.get('pinch').set({
              enable: true
            });
            mc.get('rotate').set({
              enable: true
            });

            for (var eventName in this.overrides) {
              mc.get(eventName).set(this.overrides[eventName]);
            }

            return mc;
          }
        }]);

        return HammerGestureConfig;
      }();

      HammerGestureConfig.ɵfac = function HammerGestureConfig_Factory(t) {
        return new (t || HammerGestureConfig)();
      };

      HammerGestureConfig.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
        token: HammerGestureConfig,
        factory: HammerGestureConfig.ɵfac
      });
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](HammerGestureConfig, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"]
        }], function () {
          return [];
        }, null);
      })();
      /**
       * Event plugin that adds Hammer support to an application.
       *
       * @ngModule HammerModule
       */


      var HammerGesturesPlugin = /*#__PURE__*/function (_EventManagerPlugin2) {
        _inherits2(HammerGesturesPlugin, _EventManagerPlugin2);

        var _super367 = _createSuper2(HammerGesturesPlugin);

        function HammerGesturesPlugin(doc, _config, console, loader) {
          var _this731;

          _classCallCheck2(this, HammerGesturesPlugin);

          _this731 = _super367.call(this, doc);
          _this731._config = _config;
          _this731.console = console;
          _this731.loader = loader;
          return _this731;
        }

        _createClass2(HammerGesturesPlugin, [{
          key: "supports",
          value: function supports(eventName) {
            if (!EVENT_NAMES.hasOwnProperty(eventName.toLowerCase()) && !this.isCustomEvent(eventName)) {
              return false;
            }

            if (!window.Hammer && !this.loader) {
              this.console.warn("The \"".concat(eventName, "\" event cannot be bound because Hammer.JS is not ") + "loaded and no custom loader has been specified.");
              return false;
            }

            return true;
          }
        }, {
          key: "addEventListener",
          value: function addEventListener(element, eventName, handler) {
            var _this732 = this;

            var zone = this.manager.getZone();
            eventName = eventName.toLowerCase(); // If Hammer is not present but a loader is specified, we defer adding the event listener
            // until Hammer is loaded.

            if (!window.Hammer && this.loader) {
              // This `addEventListener` method returns a function to remove the added listener.
              // Until Hammer is loaded, the returned function needs to *cancel* the registration rather
              // than remove anything.
              var cancelRegistration = false;

              var deregister = function deregister() {
                cancelRegistration = true;
              };

              this.loader().then(function () {
                // If Hammer isn't actually loaded when the custom loader resolves, give up.
                if (!window.Hammer) {
                  _this732.console.warn("The custom HAMMER_LOADER completed, but Hammer.JS is not present.");

                  deregister = function deregister() {};

                  return;
                }

                if (!cancelRegistration) {
                  // Now that Hammer is loaded and the listener is being loaded for real,
                  // the deregistration function changes from canceling registration to removal.
                  deregister = _this732.addEventListener(element, eventName, handler);
                }
              })["catch"](function () {
                _this732.console.warn("The \"".concat(eventName, "\" event cannot be bound because the custom ") + "Hammer.JS loader failed.");

                deregister = function deregister() {};
              }); // Return a function that *executes* `deregister` (and not `deregister` itself) so that we
              // can change the behavior of `deregister` once the listener is added. Using a closure in
              // this way allows us to avoid any additional data structures to track listener removal.

              return function () {
                deregister();
              };
            }

            return zone.runOutsideAngular(function () {
              // Creating the manager bind events, must be done outside of angular
              var mc = _this732._config.buildHammer(element);

              var callback = function callback(eventObj) {
                zone.runGuarded(function () {
                  handler(eventObj);
                });
              };

              mc.on(eventName, callback);
              return function () {
                mc.off(eventName, callback); // destroy mc to prevent memory leak

                if (typeof mc.destroy === 'function') {
                  mc.destroy();
                }
              };
            });
          }
        }, {
          key: "isCustomEvent",
          value: function isCustomEvent(eventName) {
            return this._config.events.indexOf(eventName) > -1;
          }
        }]);

        return HammerGesturesPlugin;
      }(EventManagerPlugin);

      HammerGesturesPlugin.ɵfac = function HammerGesturesPlugin_Factory(t) {
        return new (t || HammerGesturesPlugin)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](HAMMER_GESTURE_CONFIG), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵConsole"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](HAMMER_LOADER, 8));
      };

      HammerGesturesPlugin.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
        token: HammerGesturesPlugin,
        factory: HammerGesturesPlugin.ɵfac
      });

      HammerGesturesPlugin.ctorParameters = function () {
        return [{
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
            args: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]]
          }]
        }, {
          type: HammerGestureConfig,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
            args: [HAMMER_GESTURE_CONFIG]
          }]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵConsole"]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
            args: [HAMMER_LOADER]
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](HammerGesturesPlugin, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"]
        }], function () {
          return [{
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
              args: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]]
            }]
          }, {
            type: HammerGestureConfig,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
              args: [HAMMER_GESTURE_CONFIG]
            }]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵConsole"]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
              args: [HAMMER_LOADER]
            }]
          }];
        }, null);
      })();
      /**
       * In Ivy, support for Hammer gestures is optional, so applications must
       * import the `HammerModule` at root to turn on support. This means that
       * Hammer-specific code can be tree-shaken away if not needed.
       */


      var HAMMER_PROVIDERS__POST_R3__ = [];
      /**
       * In View Engine, support for Hammer gestures is built-in by default.
       */

      var HAMMER_PROVIDERS__PRE_R3__ = [{
        provide: EVENT_MANAGER_PLUGINS,
        useClass: HammerGesturesPlugin,
        multi: true,
        deps: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"], HAMMER_GESTURE_CONFIG, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵConsole"], [new _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"](), HAMMER_LOADER]]
      }, {
        provide: HAMMER_GESTURE_CONFIG,
        useClass: HammerGestureConfig,
        deps: []
      }];
      var HAMMER_PROVIDERS = HAMMER_PROVIDERS__POST_R3__;
      /**
       * Adds support for HammerJS.
       *
       * Import this module at the root of your application so that Angular can work with
       * HammerJS to detect gesture events.
       *
       * Note that applications still need to include the HammerJS script itself. This module
       * simply sets up the coordination layer between HammerJS and Angular's EventManager.
       *
       * @publicApi
       */

      var HammerModule = function HammerModule() {
        _classCallCheck2(this, HammerModule);
      };

      HammerModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineNgModule"]({
        type: HammerModule
      });
      HammerModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjector"]({
        factory: function HammerModule_Factory(t) {
          return new (t || HammerModule)();
        },
        providers: HAMMER_PROVIDERS__PRE_R3__
      });
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](HammerModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"],
          args: [{
            providers: HAMMER_PROVIDERS__PRE_R3__
          }]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Defines supported modifiers for key events.
       */


      var MODIFIER_KEYS = ['alt', 'control', 'meta', 'shift'];
      var DOM_KEY_LOCATION_NUMPAD = 3; // Map to convert some key or keyIdentifier values to what will be returned by getEventKey

      var _keyMap = {
        // The following values are here for cross-browser compatibility and to match the W3C standard
        // cf http://www.w3.org/TR/DOM-Level-3-Events-key/
        '\b': 'Backspace',
        '\t': 'Tab',
        '\x7F': 'Delete',
        '\x1B': 'Escape',
        'Del': 'Delete',
        'Esc': 'Escape',
        'Left': 'ArrowLeft',
        'Right': 'ArrowRight',
        'Up': 'ArrowUp',
        'Down': 'ArrowDown',
        'Menu': 'ContextMenu',
        'Scroll': 'ScrollLock',
        'Win': 'OS'
      }; // There is a bug in Chrome for numeric keypad keys:
      // https://code.google.com/p/chromium/issues/detail?id=155654
      // 1, 2, 3 ... are reported as A, B, C ...

      var _chromeNumKeyPadMap = {
        'A': '1',
        'B': '2',
        'C': '3',
        'D': '4',
        'E': '5',
        'F': '6',
        'G': '7',
        'H': '8',
        'I': '9',
        'J': '*',
        'K': '+',
        'M': '-',
        'N': '.',
        'O': '/',
        '\x60': '0',
        '\x90': 'NumLock'
      };

      var ɵ0$3 = function ɵ0$3(event) {
        return event.altKey;
      },
          ɵ1 = function ɵ1(event) {
        return event.ctrlKey;
      },
          ɵ2 = function ɵ2(event) {
        return event.metaKey;
      },
          ɵ3 = function ɵ3(event) {
        return event.shiftKey;
      };
      /**
       * Retrieves modifiers from key-event objects.
       */


      var MODIFIER_KEY_GETTERS = {
        'alt': ɵ0$3,
        'control': ɵ1,
        'meta': ɵ2,
        'shift': ɵ3
      };
      /**
       * @publicApi
       * A browser plug-in that provides support for handling of key events in Angular.
       */

      var KeyEventsPlugin = /*#__PURE__*/function (_EventManagerPlugin3) {
        _inherits2(KeyEventsPlugin, _EventManagerPlugin3);

        var _super368 = _createSuper2(KeyEventsPlugin);

        /**
         * Initializes an instance of the browser plug-in.
         * @param doc The document in which key events will be detected.
         */
        function KeyEventsPlugin(doc) {
          _classCallCheck2(this, KeyEventsPlugin);

          return _super368.call(this, doc);
        }
        /**
         * Reports whether a named key event is supported.
         * @param eventName The event name to query.
         * @return True if the named key event is supported.
         */


        _createClass2(KeyEventsPlugin, [{
          key: "supports",
          value: function supports(eventName) {
            return KeyEventsPlugin.parseEventName(eventName) != null;
          }
          /**
           * Registers a handler for a specific element and key event.
           * @param element The HTML element to receive event notifications.
           * @param eventName The name of the key event to listen for.
           * @param handler A function to call when the notification occurs. Receives the
           * event object as an argument.
           * @returns The key event that was registered.
           */

        }, {
          key: "addEventListener",
          value: function addEventListener(element, eventName, handler) {
            var parsedEvent = KeyEventsPlugin.parseEventName(eventName);
            var outsideHandler = KeyEventsPlugin.eventCallback(parsedEvent['fullKey'], handler, this.manager.getZone());
            return this.manager.getZone().runOutsideAngular(function () {
              return Object(_angular_common__WEBPACK_IMPORTED_MODULE_0__["ɵgetDOM"])().onAndCancel(element, parsedEvent['domEventName'], outsideHandler);
            });
          }
        }], [{
          key: "parseEventName",
          value: function parseEventName(eventName) {
            var parts = eventName.toLowerCase().split('.');
            var domEventName = parts.shift();

            if (parts.length === 0 || !(domEventName === 'keydown' || domEventName === 'keyup')) {
              return null;
            }

            var key = KeyEventsPlugin._normalizeKey(parts.pop());

            var fullKey = '';
            MODIFIER_KEYS.forEach(function (modifierName) {
              var index = parts.indexOf(modifierName);

              if (index > -1) {
                parts.splice(index, 1);
                fullKey += modifierName + '.';
              }
            });
            fullKey += key;

            if (parts.length != 0 || key.length === 0) {
              // returning null instead of throwing to let another plugin process the event
              return null;
            } // NOTE: Please don't rewrite this as so, as it will break JSCompiler property renaming.
            //       The code must remain in the `result['domEventName']` form.
            // return {domEventName, fullKey};


            var result = {};
            result['domEventName'] = domEventName;
            result['fullKey'] = fullKey;
            return result;
          }
        }, {
          key: "getEventFullKey",
          value: function getEventFullKey(event) {
            var fullKey = '';
            var key = getEventKey(event);
            key = key.toLowerCase();

            if (key === ' ') {
              key = 'space'; // for readability
            } else if (key === '.') {
              key = 'dot'; // because '.' is used as a separator in event names
            }

            MODIFIER_KEYS.forEach(function (modifierName) {
              if (modifierName != key) {
                var modifierGetter = MODIFIER_KEY_GETTERS[modifierName];

                if (modifierGetter(event)) {
                  fullKey += modifierName + '.';
                }
              }
            });
            fullKey += key;
            return fullKey;
          }
          /**
           * Configures a handler callback for a key event.
           * @param fullKey The event name that combines all simultaneous keystrokes.
           * @param handler The function that responds to the key event.
           * @param zone The zone in which the event occurred.
           * @returns A callback function.
           */

        }, {
          key: "eventCallback",
          value: function eventCallback(fullKey, handler, zone) {
            return function (event
            /** TODO #9100 */
            ) {
              if (KeyEventsPlugin.getEventFullKey(event) === fullKey) {
                zone.runGuarded(function () {
                  return handler(event);
                });
              }
            };
          }
          /** @internal */

        }, {
          key: "_normalizeKey",
          value: function _normalizeKey(keyName) {
            // TODO: switch to a Map if the mapping grows too much
            switch (keyName) {
              case 'esc':
                return 'escape';

              default:
                return keyName;
            }
          }
        }]);

        return KeyEventsPlugin;
      }(EventManagerPlugin);

      KeyEventsPlugin.ɵfac = function KeyEventsPlugin_Factory(t) {
        return new (t || KeyEventsPlugin)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]));
      };

      KeyEventsPlugin.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
        token: KeyEventsPlugin,
        factory: KeyEventsPlugin.ɵfac
      });

      KeyEventsPlugin.ctorParameters = function () {
        return [{
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
            args: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]]
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](KeyEventsPlugin, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"]
        }], function () {
          return [{
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
              args: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]]
            }]
          }];
        }, null);
      })();

      function getEventKey(event) {
        var key = event.key;

        if (key == null) {
          key = event.keyIdentifier; // keyIdentifier is defined in the old draft of DOM Level 3 Events implemented by Chrome and
          // Safari cf
          // http://www.w3.org/TR/2007/WD-DOM-Level-3-Events-20071221/events.html#Events-KeyboardEvents-Interfaces

          if (key == null) {
            return 'Unidentified';
          }

          if (key.startsWith('U+')) {
            key = String.fromCharCode(parseInt(key.substring(2), 16));

            if (event.location === DOM_KEY_LOCATION_NUMPAD && _chromeNumKeyPadMap.hasOwnProperty(key)) {
              // There is a bug in Chrome for numeric keypad keys:
              // https://code.google.com/p/chromium/issues/detail?id=155654
              // 1, 2, 3 ... are reported as A, B, C ...
              key = _chromeNumKeyPadMap[key];
            }
          }
        }

        return _keyMap[key] || key;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * DomSanitizer helps preventing Cross Site Scripting Security bugs (XSS) by sanitizing
       * values to be safe to use in the different DOM contexts.
       *
       * For example, when binding a URL in an `<a [href]="someValue">` hyperlink, `someValue` will be
       * sanitized so that an attacker cannot inject e.g. a `javascript:` URL that would execute code on
       * the website.
       *
       * In specific situations, it might be necessary to disable sanitization, for example if the
       * application genuinely needs to produce a `javascript:` style link with a dynamic value in it.
       * Users can bypass security by constructing a value with one of the `bypassSecurityTrust...`
       * methods, and then binding to that value from the template.
       *
       * These situations should be very rare, and extraordinary care must be taken to avoid creating a
       * Cross Site Scripting (XSS) security bug!
       *
       * When using `bypassSecurityTrust...`, make sure to call the method as early as possible and as
       * close as possible to the source of the value, to make it easy to verify no security bug is
       * created by its use.
       *
       * It is not required (and not recommended) to bypass security if the value is safe, e.g. a URL that
       * does not start with a suspicious protocol, or an HTML snippet that does not contain dangerous
       * code. The sanitizer leaves safe values intact.
       *
       * @security Calling any of the `bypassSecurityTrust...` APIs disables Angular's built-in
       * sanitization for the value passed in. Carefully check and audit all values and code paths going
       * into this call. Make sure any user data is appropriately escaped for this security context.
       * For more detail, see the [Security Guide](http://g.co/ng/security).
       *
       * @publicApi
       */


      var DomSanitizer = function DomSanitizer() {
        _classCallCheck2(this, DomSanitizer);
      };

      DomSanitizer.ɵfac = function DomSanitizer_Factory(t) {
        return new (t || DomSanitizer)();
      };

      DomSanitizer.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"])({
        factory: function DomSanitizer_Factory() {
          return Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(DomSanitizerImpl);
        },
        token: DomSanitizer,
        providedIn: "root"
      });
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](DomSanitizer, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"],
          args: [{
            providedIn: 'root',
            useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["forwardRef"])(function () {
              return DomSanitizerImpl;
            })
          }]
        }], null, null);
      })();

      function domSanitizerImplFactory(injector) {
        return new DomSanitizerImpl(injector.get(_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]));
      }

      var DomSanitizerImpl = /*#__PURE__*/function (_DomSanitizer) {
        _inherits2(DomSanitizerImpl, _DomSanitizer);

        var _super369 = _createSuper2(DomSanitizerImpl);

        function DomSanitizerImpl(_doc) {
          var _this733;

          _classCallCheck2(this, DomSanitizerImpl);

          _this733 = _super369.call(this);
          _this733._doc = _doc;
          return _this733;
        }

        _createClass2(DomSanitizerImpl, [{
          key: "sanitize",
          value: function sanitize(ctx, value) {
            if (value == null) return null;

            switch (ctx) {
              case _angular_core__WEBPACK_IMPORTED_MODULE_1__["SecurityContext"].NONE:
                return value;

              case _angular_core__WEBPACK_IMPORTED_MODULE_1__["SecurityContext"].HTML:
                if (Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵallowSanitizationBypassAndThrow"])(value, "HTML"
                /* Html */
                )) {
                  return Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵunwrapSafeValue"])(value);
                }

                return Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵ_sanitizeHtml"])(this._doc, String(value));

              case _angular_core__WEBPACK_IMPORTED_MODULE_1__["SecurityContext"].STYLE:
                if (Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵallowSanitizationBypassAndThrow"])(value, "Style"
                /* Style */
                )) {
                  return Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵunwrapSafeValue"])(value);
                }

                return value;

              case _angular_core__WEBPACK_IMPORTED_MODULE_1__["SecurityContext"].SCRIPT:
                if (Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵallowSanitizationBypassAndThrow"])(value, "Script"
                /* Script */
                )) {
                  return Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵunwrapSafeValue"])(value);
                }

                throw new Error('unsafe value used in a script context');

              case _angular_core__WEBPACK_IMPORTED_MODULE_1__["SecurityContext"].URL:
                var type = Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵgetSanitizationBypassType"])(value);

                if (Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵallowSanitizationBypassAndThrow"])(value, "URL"
                /* Url */
                )) {
                  return Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵunwrapSafeValue"])(value);
                }

                return Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵ_sanitizeUrl"])(String(value));

              case _angular_core__WEBPACK_IMPORTED_MODULE_1__["SecurityContext"].RESOURCE_URL:
                if (Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵallowSanitizationBypassAndThrow"])(value, "ResourceURL"
                /* ResourceUrl */
                )) {
                  return Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵunwrapSafeValue"])(value);
                }

                throw new Error('unsafe value used in a resource URL context (see http://g.co/ng/security#xss)');

              default:
                throw new Error("Unexpected SecurityContext ".concat(ctx, " (see http://g.co/ng/security#xss)"));
            }
          }
        }, {
          key: "bypassSecurityTrustHtml",
          value: function bypassSecurityTrustHtml(value) {
            return Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵbypassSanitizationTrustHtml"])(value);
          }
        }, {
          key: "bypassSecurityTrustStyle",
          value: function bypassSecurityTrustStyle(value) {
            return Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵbypassSanitizationTrustStyle"])(value);
          }
        }, {
          key: "bypassSecurityTrustScript",
          value: function bypassSecurityTrustScript(value) {
            return Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵbypassSanitizationTrustScript"])(value);
          }
        }, {
          key: "bypassSecurityTrustUrl",
          value: function bypassSecurityTrustUrl(value) {
            return Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵbypassSanitizationTrustUrl"])(value);
          }
        }, {
          key: "bypassSecurityTrustResourceUrl",
          value: function bypassSecurityTrustResourceUrl(value) {
            return Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵbypassSanitizationTrustResourceUrl"])(value);
          }
        }]);

        return DomSanitizerImpl;
      }(DomSanitizer);

      DomSanitizerImpl.ɵfac = function DomSanitizerImpl_Factory(t) {
        return new (t || DomSanitizerImpl)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]));
      };

      DomSanitizerImpl.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"])({
        factory: function DomSanitizerImpl_Factory() {
          return domSanitizerImplFactory(Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(_angular_core__WEBPACK_IMPORTED_MODULE_1__["INJECTOR"]));
        },
        token: DomSanitizerImpl,
        providedIn: "root"
      });

      DomSanitizerImpl.ctorParameters = function () {
        return [{
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
            args: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]]
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](DomSanitizerImpl, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"],
          args: [{
            providedIn: 'root',
            useFactory: domSanitizerImplFactory,
            deps: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injector"]]
          }]
        }], function () {
          return [{
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
              args: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]]
            }]
          }];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function initDomAdapter() {
        BrowserDomAdapter.makeCurrent();
        BrowserGetTestability.init();
      }

      function errorHandler() {
        return new _angular_core__WEBPACK_IMPORTED_MODULE_1__["ErrorHandler"]();
      }

      function _document() {
        // Tell ivy about the global document
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetDocument"])(document);
        return document;
      }

      var ɵ0$4 = _angular_common__WEBPACK_IMPORTED_MODULE_0__["ɵPLATFORM_BROWSER_ID"];
      var INTERNAL_BROWSER_PLATFORM_PROVIDERS = [{
        provide: _angular_core__WEBPACK_IMPORTED_MODULE_1__["PLATFORM_ID"],
        useValue: ɵ0$4
      }, {
        provide: _angular_core__WEBPACK_IMPORTED_MODULE_1__["PLATFORM_INITIALIZER"],
        useValue: initDomAdapter,
        multi: true
      }, {
        provide: _angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"],
        useFactory: _document,
        deps: []
      }];
      var BROWSER_SANITIZATION_PROVIDERS__PRE_R3__ = [{
        provide: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Sanitizer"],
        useExisting: DomSanitizer
      }, {
        provide: DomSanitizer,
        useClass: DomSanitizerImpl,
        deps: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]]
      }];
      var BROWSER_SANITIZATION_PROVIDERS__POST_R3__ = [];
      /**
       * @security Replacing built-in sanitization providers exposes the application to XSS risks.
       * Attacker-controlled data introduced by an unsanitized provider could expose your
       * application to XSS risks. For more detail, see the [Security Guide](http://g.co/ng/security).
       * @publicApi
       */

      var BROWSER_SANITIZATION_PROVIDERS = BROWSER_SANITIZATION_PROVIDERS__POST_R3__;
      /**
       * A factory function that returns a `PlatformRef` instance associated with browser service
       * providers.
       *
       * @publicApi
       */

      var platformBrowser = Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["createPlatformFactory"])(_angular_core__WEBPACK_IMPORTED_MODULE_1__["platformCore"], 'browser', INTERNAL_BROWSER_PLATFORM_PROVIDERS);
      var BROWSER_MODULE_PROVIDERS = [BROWSER_SANITIZATION_PROVIDERS, {
        provide: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵINJECTOR_SCOPE"],
        useValue: 'root'
      }, {
        provide: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ErrorHandler"],
        useFactory: errorHandler,
        deps: []
      }, {
        provide: EVENT_MANAGER_PLUGINS,
        useClass: DomEventsPlugin,
        multi: true,
        deps: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["PLATFORM_ID"]]
      }, {
        provide: EVENT_MANAGER_PLUGINS,
        useClass: KeyEventsPlugin,
        multi: true,
        deps: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]]
      }, HAMMER_PROVIDERS, {
        provide: DomRendererFactory2,
        useClass: DomRendererFactory2,
        deps: [EventManager, DomSharedStylesHost, _angular_core__WEBPACK_IMPORTED_MODULE_1__["APP_ID"]]
      }, {
        provide: _angular_core__WEBPACK_IMPORTED_MODULE_1__["RendererFactory2"],
        useExisting: DomRendererFactory2
      }, {
        provide: SharedStylesHost,
        useExisting: DomSharedStylesHost
      }, {
        provide: DomSharedStylesHost,
        useClass: DomSharedStylesHost,
        deps: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]]
      }, {
        provide: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Testability"],
        useClass: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Testability"],
        deps: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]]
      }, {
        provide: EventManager,
        useClass: EventManager,
        deps: [EVENT_MANAGER_PLUGINS, _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]]
      }, ELEMENT_PROBE_PROVIDERS];
      /**
       * Exports required infrastructure for all Angular apps.
       * Included by default in all Angular apps created with the CLI
       * `new` command.
       * Re-exports `CommonModule` and `ApplicationModule`, making their
       * exports and providers available to all apps.
       *
       * @publicApi
       */

      var BrowserModule = /*#__PURE__*/function () {
        function BrowserModule(parentModule) {
          _classCallCheck2(this, BrowserModule);

          if (parentModule) {
            throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.");
          }
        }
        /**
         * Configures a browser-based app to transition from a server-rendered app, if
         * one is present on the page.
         *
         * @param params An object containing an identifier for the app to transition.
         * The ID must match between the client and server versions of the app.
         * @returns The reconfigured `BrowserModule` to import into the app's root `AppModule`.
         */


        _createClass2(BrowserModule, null, [{
          key: "withServerTransition",
          value: function withServerTransition(params) {
            return {
              ngModule: BrowserModule,
              providers: [{
                provide: _angular_core__WEBPACK_IMPORTED_MODULE_1__["APP_ID"],
                useValue: params.appId
              }, {
                provide: TRANSITION_ID,
                useExisting: _angular_core__WEBPACK_IMPORTED_MODULE_1__["APP_ID"]
              }, SERVER_TRANSITION_PROVIDERS]
            };
          }
        }]);

        return BrowserModule;
      }();

      BrowserModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineNgModule"]({
        type: BrowserModule
      });
      BrowserModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjector"]({
        factory: function BrowserModule_Factory(t) {
          return new (t || BrowserModule)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](BrowserModule, 12));
        },
        providers: BROWSER_MODULE_PROVIDERS,
        imports: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["CommonModule"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ApplicationModule"]]
      });

      BrowserModule.ctorParameters = function () {
        return [{
          type: BrowserModule,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["SkipSelf"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
            args: [BrowserModule]
          }]
        }];
      };

      (function () {
        (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsetNgModuleScope"](BrowserModule, {
          exports: function exports() {
            return [_angular_common__WEBPACK_IMPORTED_MODULE_0__["CommonModule"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ApplicationModule"]];
          }
        });
      })();
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](BrowserModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"],
          args: [{
            providers: BROWSER_MODULE_PROVIDERS,
            exports: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["CommonModule"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ApplicationModule"]]
          }]
        }], function () {
          return [{
            type: BrowserModule,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["SkipSelf"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
              args: [BrowserModule]
            }]
          }];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Factory to create a `Meta` service instance for the current DOM document.
       */


      function createMeta() {
        return new Meta(Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]));
      }
      /**
       * A service for managing HTML `<meta>` tags.
       *
       * Properties of the `MetaDefinition` object match the attributes of the
       * HTML `<meta>` tag. These tags define document metadata that is important for
       * things like configuring a Content Security Policy, defining browser compatibility
       * and security settings, setting HTTP Headers, defining rich content for social sharing,
       * and Search Engine Optimization (SEO).
       *
       * To identify specific `<meta>` tags in a document, use an attribute selection
       * string in the format `"tag_attribute='value string'"`.
       * For example, an `attrSelector` value of `"name='description'"` matches a tag
       * whose `name` attribute has the value `"description"`.
       * Selectors are used with the `querySelector()` Document method,
       * in the format `meta[{attrSelector}]`.
       *
       * @see [HTML meta tag](https://developer.mozilla.org/docs/Web/HTML/Element/meta)
       * @see [Document.querySelector()](https://developer.mozilla.org/docs/Web/API/Document/querySelector)
       *
       *
       * @publicApi
       */


      var Meta = /*#__PURE__*/function () {
        function Meta(_doc) {
          _classCallCheck2(this, Meta);

          this._doc = _doc;
          this._dom = Object(_angular_common__WEBPACK_IMPORTED_MODULE_0__["ɵgetDOM"])();
        }
        /**
         * Retrieves or creates a specific `<meta>` tag element in the current HTML document.
         * In searching for an existing tag, Angular attempts to match the `name` or `property` attribute
         * values in the provided tag definition, and verifies that all other attribute values are equal.
         * If an existing element is found, it is returned and is not modified in any way.
         * @param tag The definition of a `<meta>` element to match or create.
         * @param forceCreation True to create a new element without checking whether one already exists.
         * @returns The existing element with the same attributes and values if found,
         * the new element if no match is found, or `null` if the tag parameter is not defined.
         */


        _createClass2(Meta, [{
          key: "addTag",
          value: function addTag(tag) {
            var forceCreation = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
            if (!tag) return null;
            return this._getOrCreateElement(tag, forceCreation);
          }
          /**
           * Retrieves or creates a set of `<meta>` tag elements in the current HTML document.
           * In searching for an existing tag, Angular attempts to match the `name` or `property` attribute
           * values in the provided tag definition, and verifies that all other attribute values are equal.
           * @param tags An array of tag definitions to match or create.
           * @param forceCreation True to create new elements without checking whether they already exist.
           * @returns The matching elements if found, or the new elements.
           */

        }, {
          key: "addTags",
          value: function addTags(tags) {
            var _this734 = this;

            var forceCreation = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
            if (!tags) return [];
            return tags.reduce(function (result, tag) {
              if (tag) {
                result.push(_this734._getOrCreateElement(tag, forceCreation));
              }

              return result;
            }, []);
          }
          /**
           * Retrieves a `<meta>` tag element in the current HTML document.
           * @param attrSelector The tag attribute and value to match against, in the format
           * `"tag_attribute='value string'"`.
           * @returns The matching element, if any.
           */

        }, {
          key: "getTag",
          value: function getTag(attrSelector) {
            if (!attrSelector) return null;
            return this._doc.querySelector("meta[".concat(attrSelector, "]")) || null;
          }
          /**
           * Retrieves a set of `<meta>` tag elements in the current HTML document.
           * @param attrSelector The tag attribute and value to match against, in the format
           * `"tag_attribute='value string'"`.
           * @returns The matching elements, if any.
           */

        }, {
          key: "getTags",
          value: function getTags(attrSelector) {
            if (!attrSelector) return [];

            var list
            /*NodeList*/
            = this._doc.querySelectorAll("meta[".concat(attrSelector, "]"));

            return list ? [].slice.call(list) : [];
          }
          /**
           * Modifies an existing `<meta>` tag element in the current HTML document.
           * @param tag The tag description with which to replace the existing tag content.
           * @param selector A tag attribute and value to match against, to identify
           * an existing tag. A string in the format `"tag_attribute=`value string`"`.
           * If not supplied, matches a tag with the same `name` or `property` attribute value as the
           * replacement tag.
           * @return The modified element.
           */

        }, {
          key: "updateTag",
          value: function updateTag(tag, selector) {
            if (!tag) return null;
            selector = selector || this._parseSelector(tag);
            var meta = this.getTag(selector);

            if (meta) {
              return this._setMetaElementAttributes(tag, meta);
            }

            return this._getOrCreateElement(tag, true);
          }
          /**
           * Removes an existing `<meta>` tag element from the current HTML document.
           * @param attrSelector A tag attribute and value to match against, to identify
           * an existing tag. A string in the format `"tag_attribute=`value string`"`.
           */

        }, {
          key: "removeTag",
          value: function removeTag(attrSelector) {
            this.removeTagElement(this.getTag(attrSelector));
          }
          /**
           * Removes an existing `<meta>` tag element from the current HTML document.
           * @param meta The tag definition to match against to identify an existing tag.
           */

        }, {
          key: "removeTagElement",
          value: function removeTagElement(meta) {
            if (meta) {
              this._dom.remove(meta);
            }
          }
        }, {
          key: "_getOrCreateElement",
          value: function _getOrCreateElement(meta) {
            var forceCreation = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;

            if (!forceCreation) {
              var selector = this._parseSelector(meta);

              var elem = this.getTag(selector); // It's allowed to have multiple elements with the same name so it's not enough to
              // just check that element with the same name already present on the page. We also need to
              // check if element has tag attributes

              if (elem && this._containsAttributes(meta, elem)) return elem;
            }

            var element = this._dom.createElement('meta');

            this._setMetaElementAttributes(meta, element);

            var head = this._doc.getElementsByTagName('head')[0];

            head.appendChild(element);
            return element;
          }
        }, {
          key: "_setMetaElementAttributes",
          value: function _setMetaElementAttributes(tag, el) {
            Object.keys(tag).forEach(function (prop) {
              return el.setAttribute(prop, tag[prop]);
            });
            return el;
          }
        }, {
          key: "_parseSelector",
          value: function _parseSelector(tag) {
            var attr = tag.name ? 'name' : 'property';
            return "".concat(attr, "=\"").concat(tag[attr], "\"");
          }
        }, {
          key: "_containsAttributes",
          value: function _containsAttributes(tag, elem) {
            return Object.keys(tag).every(function (key) {
              return elem.getAttribute(key) === tag[key];
            });
          }
        }]);

        return Meta;
      }();

      Meta.ɵfac = function Meta_Factory(t) {
        return new (t || Meta)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]));
      };

      Meta.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"])({
        factory: createMeta,
        token: Meta,
        providedIn: "root"
      });

      Meta.ctorParameters = function () {
        return [{
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
            args: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]]
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](Meta, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"],
          args: [{
            providedIn: 'root',
            useFactory: createMeta,
            deps: []
          }]
        }], function () {
          return [{
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
              args: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]]
            }]
          }];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Factory to create Title service.
       */


      function createTitle() {
        return new Title(Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]));
      }
      /**
       * A service that can be used to get and set the title of a current HTML document.
       *
       * Since an Angular application can't be bootstrapped on the entire HTML document (`<html>` tag)
       * it is not possible to bind to the `text` property of the `HTMLTitleElement` elements
       * (representing the `<title>` tag). Instead, this service can be used to set and get the current
       * title value.
       *
       * @publicApi
       */


      var Title = /*#__PURE__*/function () {
        function Title(_doc) {
          _classCallCheck2(this, Title);

          this._doc = _doc;
        }
        /**
         * Get the title of the current HTML document.
         */


        _createClass2(Title, [{
          key: "getTitle",
          value: function getTitle() {
            return this._doc.title;
          }
          /**
           * Set the title of the current HTML document.
           * @param newTitle
           */

        }, {
          key: "setTitle",
          value: function setTitle(newTitle) {
            this._doc.title = newTitle || '';
          }
        }]);

        return Title;
      }();

      Title.ɵfac = function Title_Factory(t) {
        return new (t || Title)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]));
      };

      Title.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"])({
        factory: createTitle,
        token: Title,
        providedIn: "root"
      });

      Title.ctorParameters = function () {
        return [{
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
            args: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]]
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](Title, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"],
          args: [{
            providedIn: 'root',
            useFactory: createTitle,
            deps: []
          }]
        }], function () {
          return [{
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
              args: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]]
            }]
          }];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var win = typeof window !== 'undefined' && window || {};
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      var ChangeDetectionPerfRecord = function ChangeDetectionPerfRecord(msPerTick, numTicks) {
        _classCallCheck2(this, ChangeDetectionPerfRecord);

        this.msPerTick = msPerTick;
        this.numTicks = numTicks;
      };
      /**
       * Entry point for all Angular profiling-related debug tools. This object
       * corresponds to the `ng.profiler` in the dev console.
       */


      var AngularProfiler = /*#__PURE__*/function () {
        function AngularProfiler(ref) {
          _classCallCheck2(this, AngularProfiler);

          this.appRef = ref.injector.get(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ApplicationRef"]);
        } // tslint:disable:no-console

        /**
         * Exercises change detection in a loop and then prints the average amount of
         * time in milliseconds how long a single round of change detection takes for
         * the current state of the UI. It runs a minimum of 5 rounds for a minimum
         * of 500 milliseconds.
         *
         * Optionally, a user may pass a `config` parameter containing a map of
         * options. Supported options are:
         *
         * `record` (boolean) - causes the profiler to record a CPU profile while
         * it exercises the change detector. Example:
         *
         * ```
         * ng.profiler.timeChangeDetection({record: true})
         * ```
         */


        _createClass2(AngularProfiler, [{
          key: "timeChangeDetection",
          value: function timeChangeDetection(config) {
            var record = config && config['record'];
            var profileName = 'Change Detection'; // Profiler is not available in Android browsers without dev tools opened

            var isProfilerAvailable = win.console.profile != null;

            if (record && isProfilerAvailable) {
              win.console.profile(profileName);
            }

            var start = Object(_angular_common__WEBPACK_IMPORTED_MODULE_0__["ɵgetDOM"])().performanceNow();
            var numTicks = 0;

            while (numTicks < 5 || Object(_angular_common__WEBPACK_IMPORTED_MODULE_0__["ɵgetDOM"])().performanceNow() - start < 500) {
              this.appRef.tick();
              numTicks++;
            }

            var end = Object(_angular_common__WEBPACK_IMPORTED_MODULE_0__["ɵgetDOM"])().performanceNow();

            if (record && isProfilerAvailable) {
              win.console.profileEnd(profileName);
            }

            var msPerTick = (end - start) / numTicks;
            win.console.log("ran ".concat(numTicks, " change detection cycles"));
            win.console.log("".concat(msPerTick.toFixed(2), " ms per check"));
            return new ChangeDetectionPerfRecord(msPerTick, numTicks);
          }
        }]);

        return AngularProfiler;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var PROFILER_GLOBAL_NAME = 'profiler';
      /**
       * Enabled Angular debug tools that are accessible via your browser's
       * developer console.
       *
       * Usage:
       *
       * 1. Open developer console (e.g. in Chrome Ctrl + Shift + j)
       * 1. Type `ng.` (usually the console will show auto-complete suggestion)
       * 1. Try the change detection profiler `ng.profiler.timeChangeDetection()`
       *    then hit Enter.
       *
       * @publicApi
       */

      function enableDebugTools(ref) {
        exportNgVar(PROFILER_GLOBAL_NAME, new AngularProfiler(ref));
        return ref;
      }
      /**
       * Disables Angular tools.
       *
       * @publicApi
       */


      function disableDebugTools() {
        exportNgVar(PROFILER_GLOBAL_NAME, null);
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function escapeHtml(text) {
        var escapedText = {
          '&': '&a;',
          '"': '&q;',
          '\'': '&s;',
          '<': '&l;',
          '>': '&g;'
        };
        return text.replace(/[&"'<>]/g, function (s) {
          return escapedText[s];
        });
      }

      function unescapeHtml(text) {
        var unescapedText = {
          '&a;': '&',
          '&q;': '"',
          '&s;': '\'',
          '&l;': '<',
          '&g;': '>'
        };
        return text.replace(/&[^;]+;/g, function (s) {
          return unescapedText[s];
        });
      }
      /**
       * Create a `StateKey<T>` that can be used to store value of type T with `TransferState`.
       *
       * Example:
       *
       * ```
       * const COUNTER_KEY = makeStateKey<number>('counter');
       * let value = 10;
       *
       * transferState.set(COUNTER_KEY, value);
       * ```
       *
       * @publicApi
       */


      function makeStateKey(key) {
        return key;
      }
      /**
       * A key value store that is transferred from the application on the server side to the application
       * on the client side.
       *
       * `TransferState` will be available as an injectable token. To use it import
       * `ServerTransferStateModule` on the server and `BrowserTransferStateModule` on the client.
       *
       * The values in the store are serialized/deserialized using JSON.stringify/JSON.parse. So only
       * boolean, number, string, null and non-class objects will be serialized and deserialzied in a
       * non-lossy manner.
       *
       * @publicApi
       */


      var TransferState = /*#__PURE__*/function () {
        function TransferState() {
          _classCallCheck2(this, TransferState);

          this.store = {};
          this.onSerializeCallbacks = {};
        }
        /** @internal */


        _createClass2(TransferState, [{
          key: "get",
          value:
          /**
           * Get the value corresponding to a key. Return `defaultValue` if key is not found.
           */
          function get(key, defaultValue) {
            return this.store[key] !== undefined ? this.store[key] : defaultValue;
          }
          /**
           * Set the value corresponding to a key.
           */

        }, {
          key: "set",
          value: function set(key, value) {
            this.store[key] = value;
          }
          /**
           * Remove a key from the store.
           */

        }, {
          key: "remove",
          value: function remove(key) {
            delete this.store[key];
          }
          /**
           * Test whether a key exists in the store.
           */

        }, {
          key: "hasKey",
          value: function hasKey(key) {
            return this.store.hasOwnProperty(key);
          }
          /**
           * Register a callback to provide the value for a key when `toJson` is called.
           */

        }, {
          key: "onSerialize",
          value: function onSerialize(key, callback) {
            this.onSerializeCallbacks[key] = callback;
          }
          /**
           * Serialize the current state of the store to JSON.
           */

        }, {
          key: "toJson",
          value: function toJson() {
            // Call the onSerialize callbacks and put those values into the store.
            for (var key in this.onSerializeCallbacks) {
              if (this.onSerializeCallbacks.hasOwnProperty(key)) {
                try {
                  this.store[key] = this.onSerializeCallbacks[key]();
                } catch (e) {
                  console.warn('Exception in onSerialize callback: ', e);
                }
              }
            }

            return JSON.stringify(this.store);
          }
        }], [{
          key: "init",
          value: function init(initState) {
            var transferState = new TransferState();
            transferState.store = initState;
            return transferState;
          }
        }]);

        return TransferState;
      }();

      TransferState.ɵfac = function TransferState_Factory(t) {
        return new (t || TransferState)();
      };

      TransferState.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
        token: TransferState,
        factory: TransferState.ɵfac
      });
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](TransferState, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"]
        }], function () {
          return [];
        }, null);
      })();

      function initTransferState(doc, appId) {
        // Locate the script tag with the JSON data transferred from the server.
        // The id of the script tag is set to the Angular appId + 'state'.
        var script = doc.getElementById(appId + '-state');
        var initialState = {};

        if (script && script.textContent) {
          try {
            initialState = JSON.parse(unescapeHtml(script.textContent));
          } catch (e) {
            console.warn('Exception while restoring TransferState for app ' + appId, e);
          }
        }

        return TransferState.init(initialState);
      }
      /**
       * NgModule to install on the client side while using the `TransferState` to transfer state from
       * server to client.
       *
       * @publicApi
       */


      var BrowserTransferStateModule = function BrowserTransferStateModule() {
        _classCallCheck2(this, BrowserTransferStateModule);
      };

      BrowserTransferStateModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineNgModule"]({
        type: BrowserTransferStateModule
      });
      BrowserTransferStateModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjector"]({
        factory: function BrowserTransferStateModule_Factory(t) {
          return new (t || BrowserTransferStateModule)();
        },
        providers: [{
          provide: TransferState,
          useFactory: initTransferState,
          deps: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["APP_ID"]]
        }]
      });
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](BrowserTransferStateModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"],
          args: [{
            providers: [{
              provide: TransferState,
              useFactory: initTransferState,
              deps: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["APP_ID"]]
            }]
          }]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Predicates for use with {@link DebugElement}'s query functions.
       *
       * @publicApi
       */


      var By = /*#__PURE__*/function () {
        function By() {
          _classCallCheck2(this, By);
        }

        _createClass2(By, null, [{
          key: "all",
          value:
          /**
           * Match all nodes.
           *
           * @usageNotes
           * ### Example
           *
           * {@example platform-browser/dom/debug/ts/by/by.ts region='by_all'}
           */
          function all() {
            return function () {
              return true;
            };
          }
          /**
           * Match elements by the given CSS selector.
           *
           * @usageNotes
           * ### Example
           *
           * {@example platform-browser/dom/debug/ts/by/by.ts region='by_css'}
           */

        }, {
          key: "css",
          value: function css(selector) {
            return function (debugElement) {
              return debugElement.nativeElement != null ? elementMatches(debugElement.nativeElement, selector) : false;
            };
          }
          /**
           * Match nodes that have the given directive present.
           *
           * @usageNotes
           * ### Example
           *
           * {@example platform-browser/dom/debug/ts/by/by.ts region='by_directive'}
           */

        }, {
          key: "directive",
          value: function directive(type) {
            return function (debugNode) {
              return debugNode.providerTokens.indexOf(type) !== -1;
            };
          }
        }]);

        return By;
      }();

      function elementMatches(n, selector) {
        if (Object(_angular_common__WEBPACK_IMPORTED_MODULE_0__["ɵgetDOM"])().isElementNode(n)) {
          return n.matches && n.matches(selector) || n.msMatchesSelector && n.msMatchesSelector(selector) || n.webkitMatchesSelector && n.webkitMatchesSelector(selector);
        }

        return false;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @publicApi
       */


      var VERSION = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["Version"]('11.0.0');
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */
      // This file only reexports content of the `src` folder. Keep it that way.

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Generated bundle index. Do not edit.
       */
      //# sourceMappingURL=platform-browser.js.map

      /***/
    },

    /***/
    "cjyC": function cjyC(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return eachQuarterOfInterval;
      });
      /* harmony import */


      var _addQuarters_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../addQuarters/index.js */
      "tfX3");
      /* harmony import */


      var _startOfQuarter_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../startOfQuarter/index.js */
      "vHCX");
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name eachQuarterOfInterval
       * @category Interval Helpers
       * @summary Return the array of quarters within the specified time interval.
       *
       * @description
       * Return the array of quarters within the specified time interval.
       *
       * @param {Interval} interval - the interval. See [Interval]{@link docs/types/Interval}
       * @returns {Date[]} the array with starts of quarters from the quarter of the interval start to the quarter of the interval end
       * @throws {TypeError} 1 argument required
       * @throws {RangeError} The start of an interval cannot be after its end
       * @throws {RangeError} Date in interval cannot be `Invalid Date`
       *
       * @example
       * // Each quarter within interval 6 February 2014 - 10 August 2014:
       * var result = eachQuarterOfInterval({
       *   start: new Date(2014, 1, 6),
       *   end: new Date(2014, 7, 10)
       * })
       * //=> [
       * //   Wed Jan 01 2014 00:00:00,
       * //   Tue Apr 01 2014 00:00:00,
       * //   Tue Jul 01 2014 00:00:00,
       * // ]
       */


      function eachQuarterOfInterval(dirtyInterval) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(1, arguments);
        var interval = dirtyInterval || {};
        var startDate = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(interval.start);
        var endDate = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_2__["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 = Object(_startOfQuarter_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(startDate);
        var endDateQuarter = Object(_startOfQuarter_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(endDate);
        endTime = endDateQuarter.getTime();
        var quarters = [];
        var currentQuarter = startDateQuarter;

        while (currentQuarter.getTime() <= endTime) {
          quarters.push(Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(currentQuarter));
          currentQuarter = Object(_addQuarters_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(currentQuarter, 1);
        }

        return quarters;
      }
      /***/

    },

    /***/
    "cnyc": function cnyc(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return getYear;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name getYear
       * @category Year Helpers
       * @summary Get the year of the given date.
       *
       * @description
       * Get the year of the given date.
       *
       * ### 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 {Date|Number} date - the given date
       * @returns {Number} the year
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // Which year is 2 July 2014?
       * var result = getYear(new Date(2014, 6, 2))
       * //=> 2014
       */


      function getYear(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);
        var year = date.getFullYear();
        return year;
      }
      /***/

    },

    /***/
    "coGc": function coGc(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "delayWhen", function () {
        return delayWhen;
      });
      /* harmony import */


      var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Subscriber */
      "7o/Q");
      /* harmony import */


      var _Observable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../Observable */
      "HDdC");
      /* harmony import */


      var _OuterSubscriber__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../OuterSubscriber */
      "l7GE");
      /* harmony import */


      var _util_subscribeToResult__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../util/subscribeToResult */
      "ZUHj");

      function delayWhen(delayDurationSelector, subscriptionDelay) {
        if (subscriptionDelay) {
          return function (source) {
            return new SubscriptionDelayObservable(source, subscriptionDelay).lift(new DelayWhenOperator(delayDurationSelector));
          };
        }

        return function (source) {
          return source.lift(new DelayWhenOperator(delayDurationSelector));
        };
      }

      var DelayWhenOperator = /*#__PURE__*/function () {
        function DelayWhenOperator(delayDurationSelector) {
          _classCallCheck2(this, DelayWhenOperator);

          this.delayDurationSelector = delayDurationSelector;
        }

        _createClass2(DelayWhenOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            return source.subscribe(new DelayWhenSubscriber(subscriber, this.delayDurationSelector));
          }
        }]);

        return DelayWhenOperator;
      }();

      var DelayWhenSubscriber = /*#__PURE__*/function (_OuterSubscriber__WEB3) {
        _inherits2(DelayWhenSubscriber, _OuterSubscriber__WEB3);

        var _super370 = _createSuper2(DelayWhenSubscriber);

        function DelayWhenSubscriber(destination, delayDurationSelector) {
          var _this735;

          _classCallCheck2(this, DelayWhenSubscriber);

          _this735 = _super370.call(this, destination);
          _this735.delayDurationSelector = delayDurationSelector;
          _this735.completed = false;
          _this735.delayNotifierSubscriptions = [];
          _this735.index = 0;
          return _this735;
        }

        _createClass2(DelayWhenSubscriber, [{
          key: "notifyNext",
          value: function notifyNext(outerValue, _innerValue, _outerIndex, _innerIndex, innerSub) {
            this.destination.next(outerValue);
            this.removeSubscription(innerSub);
            this.tryComplete();
          }
        }, {
          key: "notifyError",
          value: function notifyError(error, innerSub) {
            this._error(error);
          }
        }, {
          key: "notifyComplete",
          value: function notifyComplete(innerSub) {
            var value = this.removeSubscription(innerSub);

            if (value) {
              this.destination.next(value);
            }

            this.tryComplete();
          }
        }, {
          key: "_next",
          value: function _next(value) {
            var index = this.index++;

            try {
              var delayNotifier = this.delayDurationSelector(value, index);

              if (delayNotifier) {
                this.tryDelay(delayNotifier, value);
              }
            } catch (err) {
              this.destination.error(err);
            }
          }
        }, {
          key: "_complete",
          value: function _complete() {
            this.completed = true;
            this.tryComplete();
            this.unsubscribe();
          }
        }, {
          key: "removeSubscription",
          value: function removeSubscription(subscription) {
            subscription.unsubscribe();
            var subscriptionIdx = this.delayNotifierSubscriptions.indexOf(subscription);

            if (subscriptionIdx !== -1) {
              this.delayNotifierSubscriptions.splice(subscriptionIdx, 1);
            }

            return subscription.outerValue;
          }
        }, {
          key: "tryDelay",
          value: function tryDelay(delayNotifier, value) {
            var notifierSubscription = Object(_util_subscribeToResult__WEBPACK_IMPORTED_MODULE_3__["subscribeToResult"])(this, delayNotifier, value);

            if (notifierSubscription && !notifierSubscription.closed) {
              var destination = this.destination;
              destination.add(notifierSubscription);
              this.delayNotifierSubscriptions.push(notifierSubscription);
            }
          }
        }, {
          key: "tryComplete",
          value: function tryComplete() {
            if (this.completed && this.delayNotifierSubscriptions.length === 0) {
              this.destination.complete();
            }
          }
        }]);

        return DelayWhenSubscriber;
      }(_OuterSubscriber__WEBPACK_IMPORTED_MODULE_2__["OuterSubscriber"]);

      var SubscriptionDelayObservable = /*#__PURE__*/function (_Observable__WEBPACK_5) {
        _inherits2(SubscriptionDelayObservable, _Observable__WEBPACK_5);

        var _super371 = _createSuper2(SubscriptionDelayObservable);

        function SubscriptionDelayObservable(source, subscriptionDelay) {
          var _this736;

          _classCallCheck2(this, SubscriptionDelayObservable);

          _this736 = _super371.call(this);
          _this736.source = source;
          _this736.subscriptionDelay = subscriptionDelay;
          return _this736;
        }

        _createClass2(SubscriptionDelayObservable, [{
          key: "_subscribe",
          value: function _subscribe(subscriber) {
            this.subscriptionDelay.subscribe(new SubscriptionDelaySubscriber(subscriber, this.source));
          }
        }]);

        return SubscriptionDelayObservable;
      }(_Observable__WEBPACK_IMPORTED_MODULE_1__["Observable"]);

      var SubscriptionDelaySubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_30) {
        _inherits2(SubscriptionDelaySubscriber, _Subscriber__WEBPACK_30);

        var _super372 = _createSuper2(SubscriptionDelaySubscriber);

        function SubscriptionDelaySubscriber(parent, source) {
          var _this737;

          _classCallCheck2(this, SubscriptionDelaySubscriber);

          _this737 = _super372.call(this);
          _this737.parent = parent;
          _this737.source = source;
          _this737.sourceSubscribed = false;
          return _this737;
        }

        _createClass2(SubscriptionDelaySubscriber, [{
          key: "_next",
          value: function _next(unused) {
            this.subscribeToSource();
          }
        }, {
          key: "_error",
          value: function _error(err) {
            this.unsubscribe();
            this.parent.error(err);
          }
        }, {
          key: "_complete",
          value: function _complete() {
            this.unsubscribe();
            this.subscribeToSource();
          }
        }, {
          key: "subscribeToSource",
          value: function subscribeToSource() {
            if (!this.sourceSubscribed) {
              this.sourceSubscribed = true;
              this.unsubscribe();
              this.source.subscribe(this.parent);
            }
          }
        }]);

        return SubscriptionDelaySubscriber;
      }(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]); //# sourceMappingURL=delayWhen.js.map

      /***/

    },

    /***/
    "cp0P": function cp0P(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "forkJoin", function () {
        return forkJoin;
      });
      /* harmony import */


      var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Observable */
      "HDdC");
      /* harmony import */


      var _util_isArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../util/isArray */
      "DH7j");
      /* harmony import */


      var _operators_map__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../operators/map */
      "lJxs");
      /* harmony import */


      var _util_isObject__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../util/isObject */
      "XoHu");
      /* harmony import */


      var _from__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! ./from */
      "Cfvw");

      function forkJoin() {
        for (var _len66 = arguments.length, sources = new Array(_len66), _key68 = 0; _key68 < _len66; _key68++) {
          sources[_key68] = arguments[_key68];
        }

        if (sources.length === 1) {
          var first = sources[0];

          if (Object(_util_isArray__WEBPACK_IMPORTED_MODULE_1__["isArray"])(first)) {
            return forkJoinInternal(first, null);
          }

          if (Object(_util_isObject__WEBPACK_IMPORTED_MODULE_3__["isObject"])(first) && Object.getPrototypeOf(first) === Object.prototype) {
            var keys = Object.keys(first);
            return forkJoinInternal(keys.map(function (key) {
              return first[key];
            }), keys);
          }
        }

        if (typeof sources[sources.length - 1] === 'function') {
          var resultSelector = sources.pop();
          sources = sources.length === 1 && Object(_util_isArray__WEBPACK_IMPORTED_MODULE_1__["isArray"])(sources[0]) ? sources[0] : sources;
          return forkJoinInternal(sources, null).pipe(Object(_operators_map__WEBPACK_IMPORTED_MODULE_2__["map"])(function (args) {
            return resultSelector.apply(void 0, _toConsumableArray(args));
          }));
        }

        return forkJoinInternal(sources, null);
      }

      function forkJoinInternal(sources, keys) {
        return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](function (subscriber) {
          var len = sources.length;

          if (len === 0) {
            subscriber.complete();
            return;
          }

          var values = new Array(len);
          var completed = 0;
          var emitted = 0;

          var _loop8 = function _loop8(i) {
            var source = Object(_from__WEBPACK_IMPORTED_MODULE_4__["from"])(sources[i]);
            var hasValue = false;
            subscriber.add(source.subscribe({
              next: function next(value) {
                if (!hasValue) {
                  hasValue = true;
                  emitted++;
                }

                values[i] = value;
              },
              error: function error(err) {
                return subscriber.error(err);
              },
              complete: function complete() {
                completed++;

                if (completed === len || !hasValue) {
                  if (emitted === len) {
                    subscriber.next(keys ? keys.reduce(function (result, key, i) {
                      return result[key] = values[i], result;
                    }, {}) : values);
                  }

                  subscriber.complete();
                }
              }
            }));
          };

          for (var i = 0; i < len; i++) {
            _loop8(i);
          }
        });
      } //# sourceMappingURL=forkJoin.js.map

      /***/

    },

    /***/
    "cv67": function cv67(module, exports, __webpack_require__) {
      ;

      (function (root, factory) {
        if (true) {
          // CommonJS
          module.exports = exports = factory(__webpack_require__(
          /*! ./core */
          "Ib8C"));
        } else {}
      })(this, function (CryptoJS) {
        (function (Math) {
          // Shortcuts
          var C = CryptoJS;
          var C_lib = C.lib;
          var WordArray = C_lib.WordArray;
          var Hasher = C_lib.Hasher;
          var C_algo = C.algo; // Constants table

          var T = []; // Compute constants

          (function () {
            for (var i = 0; i < 64; i++) {
              T[i] = Math.abs(Math.sin(i + 1)) * 0x100000000 | 0;
            }
          })();
          /**
           * MD5 hash algorithm.
           */


          var MD5 = C_algo.MD5 = Hasher.extend({
            _doReset: function _doReset() {
              this._hash = new WordArray.init([0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476]);
            },
            _doProcessBlock: function _doProcessBlock(M, offset) {
              // Swap endian
              for (var i = 0; i < 16; i++) {
                // Shortcuts
                var offset_i = offset + i;
                var M_offset_i = M[offset_i];
                M[offset_i] = (M_offset_i << 8 | M_offset_i >>> 24) & 0x00ff00ff | (M_offset_i << 24 | M_offset_i >>> 8) & 0xff00ff00;
              } // Shortcuts


              var H = this._hash.words;
              var M_offset_0 = M[offset + 0];
              var M_offset_1 = M[offset + 1];
              var M_offset_2 = M[offset + 2];
              var M_offset_3 = M[offset + 3];
              var M_offset_4 = M[offset + 4];
              var M_offset_5 = M[offset + 5];
              var M_offset_6 = M[offset + 6];
              var M_offset_7 = M[offset + 7];
              var M_offset_8 = M[offset + 8];
              var M_offset_9 = M[offset + 9];
              var M_offset_10 = M[offset + 10];
              var M_offset_11 = M[offset + 11];
              var M_offset_12 = M[offset + 12];
              var M_offset_13 = M[offset + 13];
              var M_offset_14 = M[offset + 14];
              var M_offset_15 = M[offset + 15]; // Working varialbes

              var a = H[0];
              var b = H[1];
              var c = H[2];
              var d = H[3]; // Computation

              a = FF(a, b, c, d, M_offset_0, 7, T[0]);
              d = FF(d, a, b, c, M_offset_1, 12, T[1]);
              c = FF(c, d, a, b, M_offset_2, 17, T[2]);
              b = FF(b, c, d, a, M_offset_3, 22, T[3]);
              a = FF(a, b, c, d, M_offset_4, 7, T[4]);
              d = FF(d, a, b, c, M_offset_5, 12, T[5]);
              c = FF(c, d, a, b, M_offset_6, 17, T[6]);
              b = FF(b, c, d, a, M_offset_7, 22, T[7]);
              a = FF(a, b, c, d, M_offset_8, 7, T[8]);
              d = FF(d, a, b, c, M_offset_9, 12, T[9]);
              c = FF(c, d, a, b, M_offset_10, 17, T[10]);
              b = FF(b, c, d, a, M_offset_11, 22, T[11]);
              a = FF(a, b, c, d, M_offset_12, 7, T[12]);
              d = FF(d, a, b, c, M_offset_13, 12, T[13]);
              c = FF(c, d, a, b, M_offset_14, 17, T[14]);
              b = FF(b, c, d, a, M_offset_15, 22, T[15]);
              a = GG(a, b, c, d, M_offset_1, 5, T[16]);
              d = GG(d, a, b, c, M_offset_6, 9, T[17]);
              c = GG(c, d, a, b, M_offset_11, 14, T[18]);
              b = GG(b, c, d, a, M_offset_0, 20, T[19]);
              a = GG(a, b, c, d, M_offset_5, 5, T[20]);
              d = GG(d, a, b, c, M_offset_10, 9, T[21]);
              c = GG(c, d, a, b, M_offset_15, 14, T[22]);
              b = GG(b, c, d, a, M_offset_4, 20, T[23]);
              a = GG(a, b, c, d, M_offset_9, 5, T[24]);
              d = GG(d, a, b, c, M_offset_14, 9, T[25]);
              c = GG(c, d, a, b, M_offset_3, 14, T[26]);
              b = GG(b, c, d, a, M_offset_8, 20, T[27]);
              a = GG(a, b, c, d, M_offset_13, 5, T[28]);
              d = GG(d, a, b, c, M_offset_2, 9, T[29]);
              c = GG(c, d, a, b, M_offset_7, 14, T[30]);
              b = GG(b, c, d, a, M_offset_12, 20, T[31]);
              a = HH(a, b, c, d, M_offset_5, 4, T[32]);
              d = HH(d, a, b, c, M_offset_8, 11, T[33]);
              c = HH(c, d, a, b, M_offset_11, 16, T[34]);
              b = HH(b, c, d, a, M_offset_14, 23, T[35]);
              a = HH(a, b, c, d, M_offset_1, 4, T[36]);
              d = HH(d, a, b, c, M_offset_4, 11, T[37]);
              c = HH(c, d, a, b, M_offset_7, 16, T[38]);
              b = HH(b, c, d, a, M_offset_10, 23, T[39]);
              a = HH(a, b, c, d, M_offset_13, 4, T[40]);
              d = HH(d, a, b, c, M_offset_0, 11, T[41]);
              c = HH(c, d, a, b, M_offset_3, 16, T[42]);
              b = HH(b, c, d, a, M_offset_6, 23, T[43]);
              a = HH(a, b, c, d, M_offset_9, 4, T[44]);
              d = HH(d, a, b, c, M_offset_12, 11, T[45]);
              c = HH(c, d, a, b, M_offset_15, 16, T[46]);
              b = HH(b, c, d, a, M_offset_2, 23, T[47]);
              a = II(a, b, c, d, M_offset_0, 6, T[48]);
              d = II(d, a, b, c, M_offset_7, 10, T[49]);
              c = II(c, d, a, b, M_offset_14, 15, T[50]);
              b = II(b, c, d, a, M_offset_5, 21, T[51]);
              a = II(a, b, c, d, M_offset_12, 6, T[52]);
              d = II(d, a, b, c, M_offset_3, 10, T[53]);
              c = II(c, d, a, b, M_offset_10, 15, T[54]);
              b = II(b, c, d, a, M_offset_1, 21, T[55]);
              a = II(a, b, c, d, M_offset_8, 6, T[56]);
              d = II(d, a, b, c, M_offset_15, 10, T[57]);
              c = II(c, d, a, b, M_offset_6, 15, T[58]);
              b = II(b, c, d, a, M_offset_13, 21, T[59]);
              a = II(a, b, c, d, M_offset_4, 6, T[60]);
              d = II(d, a, b, c, M_offset_11, 10, T[61]);
              c = II(c, d, a, b, M_offset_2, 15, T[62]);
              b = II(b, c, d, a, M_offset_9, 21, T[63]); // Intermediate hash value

              H[0] = H[0] + a | 0;
              H[1] = H[1] + b | 0;
              H[2] = H[2] + c | 0;
              H[3] = H[3] + d | 0;
            },
            _doFinalize: function _doFinalize() {
              // Shortcuts
              var data = this._data;
              var dataWords = data.words;
              var nBitsTotal = this._nDataBytes * 8;
              var nBitsLeft = data.sigBytes * 8; // Add padding

              dataWords[nBitsLeft >>> 5] |= 0x80 << 24 - nBitsLeft % 32;
              var nBitsTotalH = Math.floor(nBitsTotal / 0x100000000);
              var nBitsTotalL = nBitsTotal;
              dataWords[(nBitsLeft + 64 >>> 9 << 4) + 15] = (nBitsTotalH << 8 | nBitsTotalH >>> 24) & 0x00ff00ff | (nBitsTotalH << 24 | nBitsTotalH >>> 8) & 0xff00ff00;
              dataWords[(nBitsLeft + 64 >>> 9 << 4) + 14] = (nBitsTotalL << 8 | nBitsTotalL >>> 24) & 0x00ff00ff | (nBitsTotalL << 24 | nBitsTotalL >>> 8) & 0xff00ff00;
              data.sigBytes = (dataWords.length + 1) * 4; // Hash final blocks

              this._process(); // Shortcuts


              var hash = this._hash;
              var H = hash.words; // Swap endian

              for (var i = 0; i < 4; i++) {
                // Shortcut
                var H_i = H[i];
                H[i] = (H_i << 8 | H_i >>> 24) & 0x00ff00ff | (H_i << 24 | H_i >>> 8) & 0xff00ff00;
              } // Return final computed hash


              return hash;
            },
            clone: function clone() {
              var clone = Hasher.clone.call(this);
              clone._hash = this._hash.clone();
              return clone;
            }
          });

          function FF(a, b, c, d, x, s, t) {
            var n = a + (b & c | ~b & d) + x + t;
            return (n << s | n >>> 32 - s) + b;
          }

          function GG(a, b, c, d, x, s, t) {
            var n = a + (b & d | c & ~d) + x + t;
            return (n << s | n >>> 32 - s) + b;
          }

          function HH(a, b, c, d, x, s, t) {
            var n = a + (b ^ c ^ d) + x + t;
            return (n << s | n >>> 32 - s) + b;
          }

          function II(a, b, c, d, x, s, t) {
            var n = a + (c ^ (b | ~d)) + x + t;
            return (n << s | n >>> 32 - s) + b;
          }
          /**
           * Shortcut function to the hasher's object interface.
           *
           * @param {WordArray|string} message The message to hash.
           *
           * @return {WordArray} The hash.
           *
           * @static
           *
           * @example
           *
           *     var hash = CryptoJS.MD5('message');
           *     var hash = CryptoJS.MD5(wordArray);
           */


          C.MD5 = Hasher._createHelper(MD5);
          /**
           * Shortcut function to the HMAC's object interface.
           *
           * @param {WordArray|string} message The message to hash.
           * @param {WordArray|string} key The secret key.
           *
           * @return {WordArray} The HMAC.
           *
           * @static
           *
           * @example
           *
           *     var hmac = CryptoJS.HmacMD5(message, key);
           */

          C.HmacMD5 = Hasher._createHmacHelper(MD5);
        })(Math);

        return CryptoJS.MD5;
      });
      /***/

    },

    /***/
    "cx9U": function cx9U(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "single", function () {
        return single;
      });
      /* harmony import */


      var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Subscriber */
      "7o/Q");
      /* harmony import */


      var _util_EmptyError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../util/EmptyError */
      "sVev");

      function single(predicate) {
        return function (source) {
          return source.lift(new SingleOperator(predicate, source));
        };
      }

      var SingleOperator = /*#__PURE__*/function () {
        function SingleOperator(predicate, source) {
          _classCallCheck2(this, SingleOperator);

          this.predicate = predicate;
          this.source = source;
        }

        _createClass2(SingleOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            return source.subscribe(new SingleSubscriber(subscriber, this.predicate, this.source));
          }
        }]);

        return SingleOperator;
      }();

      var SingleSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_31) {
        _inherits2(SingleSubscriber, _Subscriber__WEBPACK_31);

        var _super373 = _createSuper2(SingleSubscriber);

        function SingleSubscriber(destination, predicate, source) {
          var _this738;

          _classCallCheck2(this, SingleSubscriber);

          _this738 = _super373.call(this, destination);
          _this738.predicate = predicate;
          _this738.source = source;
          _this738.seenValue = false;
          _this738.index = 0;
          return _this738;
        }

        _createClass2(SingleSubscriber, [{
          key: "applySingleValue",
          value: function applySingleValue(value) {
            if (this.seenValue) {
              this.destination.error('Sequence contains more than one element');
            } else {
              this.seenValue = true;
              this.singleValue = value;
            }
          }
        }, {
          key: "_next",
          value: function _next(value) {
            var index = this.index++;

            if (this.predicate) {
              this.tryNext(value, index);
            } else {
              this.applySingleValue(value);
            }
          }
        }, {
          key: "tryNext",
          value: function tryNext(value, index) {
            try {
              if (this.predicate(value, index, this.source)) {
                this.applySingleValue(value);
              }
            } catch (err) {
              this.destination.error(err);
            }
          }
        }, {
          key: "_complete",
          value: function _complete() {
            var destination = this.destination;

            if (this.index > 0) {
              destination.next(this.seenValue ? this.singleValue : undefined);
              destination.complete();
            } else {
              destination.error(new _util_EmptyError__WEBPACK_IMPORTED_MODULE_1__["EmptyError"]());
            }
          }
        }]);

        return SingleSubscriber;
      }(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]); //# sourceMappingURL=single.js.map

      /***/

    },

    /***/
    "czMo": function czMo(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : English (Israel) [en-il]
      //! author : Chris Gedrim : https://github.com/chrisgedrim
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var enIl = moment.defineLocale('en-il', {
          months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
          monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
          weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
          weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
          weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd, D MMMM YYYY HH:mm'
          },
          calendar: {
            sameDay: '[Today at] LT',
            nextDay: '[Tomorrow at] LT',
            nextWeek: 'dddd [at] LT',
            lastDay: '[Yesterday at] LT',
            lastWeek: '[Last] dddd [at] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'in %s',
            past: '%s ago',
            s: 'a few seconds',
            ss: '%d seconds',
            m: 'a minute',
            mm: '%d minutes',
            h: 'an hour',
            hh: '%d hours',
            d: 'a day',
            dd: '%d days',
            M: 'a month',
            MM: '%d months',
            y: 'a year',
            yy: '%d years'
          },
          dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
          ordinal: function ordinal(number) {
            var b = number % 10,
                output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';
            return number + output;
          }
        });
        return enIl;
      });
      /***/

    },

    /***/
    "dLU1": function dLU1(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return addMonths;
      });
      /* harmony import */


      var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../_lib/toInteger/index.js */
      "/h9T");
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name addMonths
       * @category Month Helpers
       * @summary Add the specified number of months to the given date.
       *
       * @description
       * Add the specified number of months to the given date.
       *
       * ### 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 {Date|Number} date - the date to be changed
       * @param {Number} amount - the amount of months to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
       * @returns {Date} the new date with the months added
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // Add 5 months to 1 September 2014:
       * var result = addMonths(new Date(2014, 8, 1), 5)
       * //=> Sun Feb 01 2015 00:00:00
       */


      function addMonths(dirtyDate, dirtyAmount) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(2, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate);
        var amount = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyAmount);

        if (isNaN(amount)) {
          return new Date(NaN);
        }

        if (!amount) {
          // If 0 months, no-op to avoid changing times in the hour before end of DST
          return date;
        }

        var dayOfMonth = date.getDate(); // The JS Date object supports date math by accepting out-of-bounds values for
        // month, day, etc. For example, new Date(2020, 1, 0) returns 31 Dec 2019 and
        // new Date(2020, 13, 1) returns 1 Feb 2021.  This is *almost* the behavior we
        // want except that dates will wrap around the end of a month, meaning that
        // new Date(2020, 13, 31) will return 3 Mar 2021 not 28 Feb 2021 as desired. So
        // we'll default to the end of the desired month by adding 1 to the desired
        // month and using a date of 0 to back up one day to the end of the desired
        // month.

        var endOfDesiredMonth = new Date(date.getTime());
        endOfDesiredMonth.setMonth(date.getMonth() + amount + 1, 0);
        var daysInMonth = endOfDesiredMonth.getDate();

        if (dayOfMonth >= daysInMonth) {
          // If we're already at the end of the month, then this is the correct date
          // and we're done.
          return endOfDesiredMonth;
        } else {
          // Otherwise, we now know that setting the original day-of-month value won't
          // cause an overflow, so set the desired day-of-month. Note that we can't
          // just set the date of `endOfDesiredMonth` because that object may have had
          // its time changed in the unusual case where where a DST transition was on
          // the last day of the month and its local time was in the hour skipped or
          // repeated next to a DST transition.  So we use `date` instead which is
          // guaranteed to still have the original time.
          date.setFullYear(endOfDesiredMonth.getFullYear(), endOfDesiredMonth.getMonth(), dayOfMonth);
          return date;
        }
      }
      /***/

    },

    /***/
    "dNwA": function dNwA(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Swahili [sw]
      //! author : Fahad Kassim : https://github.com/fadsel
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var sw = moment.defineLocale('sw', {
          months: 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split('_'),
          monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'),
          weekdays: 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split('_'),
          weekdaysShort: 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'),
          weekdaysMin: 'J2_J3_J4_J5_Al_Ij_J1'.split('_'),
          weekdaysParseExact: true,
          longDateFormat: {
            LT: 'hh:mm A',
            LTS: 'HH:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd, D MMMM YYYY HH:mm'
          },
          calendar: {
            sameDay: '[leo saa] LT',
            nextDay: '[kesho saa] LT',
            nextWeek: '[wiki ijayo] dddd [saat] LT',
            lastDay: '[jana] LT',
            lastWeek: '[wiki iliyopita] dddd [saat] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: '%s baadaye',
            past: 'tokea %s',
            s: 'hivi punde',
            ss: 'sekunde %d',
            m: 'dakika moja',
            mm: 'dakika %d',
            h: 'saa limoja',
            hh: 'masaa %d',
            d: 'siku moja',
            dd: 'siku %d',
            M: 'mwezi mmoja',
            MM: 'miezi %d',
            y: 'mwaka mmoja',
            yy: 'miaka %d'
          },
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 7 // The week that contains Jan 7th is the first week of the year.

          }
        });
        return sw;
      });
      /***/

    },

    /***/
    "diJF": function diJF(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return eachYearOfInterval;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name eachYearOfInterval
       * @category Interval Helpers
       * @summary Return the array of yearly timestamps within the specified time interval.
       *
       * @description
       * Return the array of yearly timestamps within the specified time interval.
       *
       * @param {Interval} interval - the interval. See [Interval]{@link docs/types/Interval}
       * @returns {Date[]} the array with starts of yearly timestamps from the month of the interval start to the month of the interval end
       * @throws {TypeError} 1 argument required
       * @throws {RangeError} The start of an interval cannot be after its end
       * @throws {RangeError} Date in interval cannot be `Invalid Date`
       *
       * @example
       * // Each year between 6 February 2014 and 10 August 2017:
       * var result = eachYearOfInterval({
       *   start: new Date(2014, 1, 6),
       *   end: new Date(2017, 7, 10)
       * })
       * //=> [
       * //   Wed Jan 01 2014 00:00:00,
       * //   Thu Jan 01 2015 00:00:00,
       * //   Fri Jan 01 2016 00:00:00,
       * //   Sun Jan 01 2017 00:00:00
       * // ]
       */


      function eachYearOfInterval(dirtyInterval) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        var interval = dirtyInterval || {};
        var startDate = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(interval.start);
        var endDate = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["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 dates = [];
        var currentDate = startDate;
        currentDate.setHours(0, 0, 0, 0);
        currentDate.setMonth(0, 1);

        while (currentDate.getTime() <= endTime) {
          dates.push(Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(currentDate));
          currentDate.setFullYear(currentDate.getFullYear() + 1);
        }

        return dates;
      }
      /***/

    },

    /***/
    "dkDA": function dkDA(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "materialize", function () {
        return materialize;
      });
      /* harmony import */


      var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Subscriber */
      "7o/Q");
      /* harmony import */


      var _Notification__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../Notification */
      "WMd4");

      function materialize() {
        return function materializeOperatorFunction(source) {
          return source.lift(new MaterializeOperator());
        };
      }

      var MaterializeOperator = /*#__PURE__*/function () {
        function MaterializeOperator() {
          _classCallCheck2(this, MaterializeOperator);
        }

        _createClass2(MaterializeOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            return source.subscribe(new MaterializeSubscriber(subscriber));
          }
        }]);

        return MaterializeOperator;
      }();

      var MaterializeSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_32) {
        _inherits2(MaterializeSubscriber, _Subscriber__WEBPACK_32);

        var _super374 = _createSuper2(MaterializeSubscriber);

        function MaterializeSubscriber(destination) {
          _classCallCheck2(this, MaterializeSubscriber);

          return _super374.call(this, destination);
        }

        _createClass2(MaterializeSubscriber, [{
          key: "_next",
          value: function _next(value) {
            this.destination.next(_Notification__WEBPACK_IMPORTED_MODULE_1__["Notification"].createNext(value));
          }
        }, {
          key: "_error",
          value: function _error(err) {
            var destination = this.destination;
            destination.next(_Notification__WEBPACK_IMPORTED_MODULE_1__["Notification"].createError(err));
            destination.complete();
          }
        }, {
          key: "_complete",
          value: function _complete() {
            var destination = this.destination;
            destination.next(_Notification__WEBPACK_IMPORTED_MODULE_1__["Notification"].createComplete());
            destination.complete();
          }
        }]);

        return MaterializeSubscriber;
      }(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]); //# sourceMappingURL=materialize.js.map

      /***/

    },

    /***/
    "dndX": function dndX(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return isBefore;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name isBefore
       * @category Common Helpers
       * @summary Is the first date before the second one?
       *
       * @description
       * Is the first date before the second one?
       *
       * ### 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 {Date|Number} date - the date that should be before the other one to return true
       * @param {Date|Number} dateToCompare - the date to compare with
       * @returns {Boolean} the first date is before the second date
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // Is 10 July 1989 before 11 February 1987?
       * var result = isBefore(new Date(1989, 6, 10), new Date(1987, 1, 11))
       * //=> false
       */


      function isBefore(dirtyDate, dirtyDateToCompare) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(2, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);
        var dateToCompare = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateToCompare);
        return date.getTime() < dateToCompare.getTime();
      }
      /***/

    },

    /***/
    "e+ae": function eAe(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Slovak [sk]
      //! author : Martin Minka : https://github.com/k2s
      //! based on work of petrbela : https://github.com/petrbela
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var months = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split('_'),
            monthsShort = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_');

        function plural(n) {
          return n > 1 && n < 5;
        }

        function translate(number, withoutSuffix, key, isFuture) {
          var result = number + ' ';

          switch (key) {
            case 's':
              // a few seconds / in a few seconds / a few seconds ago
              return withoutSuffix || isFuture ? 'pár sekúnd' : 'pár sekundami';

            case 'ss':
              // 9 seconds / in 9 seconds / 9 seconds ago
              if (withoutSuffix || isFuture) {
                return result + (plural(number) ? 'sekundy' : 'sekúnd');
              } else {
                return result + 'sekundami';
              }

            case 'm':
              // a minute / in a minute / a minute ago
              return withoutSuffix ? 'minúta' : isFuture ? 'minútu' : 'minútou';

            case 'mm':
              // 9 minutes / in 9 minutes / 9 minutes ago
              if (withoutSuffix || isFuture) {
                return result + (plural(number) ? 'minúty' : 'minút');
              } else {
                return result + 'minútami';
              }

            case 'h':
              // an hour / in an hour / an hour ago
              return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';

            case 'hh':
              // 9 hours / in 9 hours / 9 hours ago
              if (withoutSuffix || isFuture) {
                return result + (plural(number) ? 'hodiny' : 'hodín');
              } else {
                return result + 'hodinami';
              }

            case 'd':
              // a day / in a day / a day ago
              return withoutSuffix || isFuture ? 'deň' : 'dňom';

            case 'dd':
              // 9 days / in 9 days / 9 days ago
              if (withoutSuffix || isFuture) {
                return result + (plural(number) ? 'dni' : 'dní');
              } else {
                return result + 'dňami';
              }

            case 'M':
              // a month / in a month / a month ago
              return withoutSuffix || isFuture ? 'mesiac' : 'mesiacom';

            case 'MM':
              // 9 months / in 9 months / 9 months ago
              if (withoutSuffix || isFuture) {
                return result + (plural(number) ? 'mesiace' : 'mesiacov');
              } else {
                return result + 'mesiacmi';
              }

            case 'y':
              // a year / in a year / a year ago
              return withoutSuffix || isFuture ? 'rok' : 'rokom';

            case 'yy':
              // 9 years / in 9 years / 9 years ago
              if (withoutSuffix || isFuture) {
                return result + (plural(number) ? 'roky' : 'rokov');
              } else {
                return result + 'rokmi';
              }

          }
        }

        var sk = moment.defineLocale('sk', {
          months: months,
          monthsShort: monthsShort,
          weekdays: 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'),
          weekdaysShort: 'ne_po_ut_st_št_pi_so'.split('_'),
          weekdaysMin: 'ne_po_ut_st_št_pi_so'.split('_'),
          longDateFormat: {
            LT: 'H:mm',
            LTS: 'H:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'D. MMMM YYYY',
            LLL: 'D. MMMM YYYY H:mm',
            LLLL: 'dddd D. MMMM YYYY H:mm'
          },
          calendar: {
            sameDay: '[dnes o] LT',
            nextDay: '[zajtra o] LT',
            nextWeek: function nextWeek() {
              switch (this.day()) {
                case 0:
                  return '[v nedeľu o] LT';

                case 1:
                case 2:
                  return '[v] dddd [o] LT';

                case 3:
                  return '[v stredu o] LT';

                case 4:
                  return '[vo štvrtok o] LT';

                case 5:
                  return '[v piatok o] LT';

                case 6:
                  return '[v sobotu o] LT';
              }
            },
            lastDay: '[včera o] LT',
            lastWeek: function lastWeek() {
              switch (this.day()) {
                case 0:
                  return '[minulú nedeľu o] LT';

                case 1:
                case 2:
                  return '[minulý] dddd [o] LT';

                case 3:
                  return '[minulú stredu o] LT';

                case 4:
                case 5:
                  return '[minulý] dddd [o] LT';

                case 6:
                  return '[minulú sobotu o] LT';
              }
            },
            sameElse: 'L'
          },
          relativeTime: {
            future: 'za %s',
            past: 'pred %s',
            s: translate,
            ss: translate,
            m: translate,
            mm: translate,
            h: translate,
            hh: translate,
            d: translate,
            dd: translate,
            M: translate,
            MM: translate,
            y: translate,
            yy: translate
          },
          dayOfMonthOrdinalParse: /\d{1,2}\./,
          ordinal: '%d.',
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return sk;
      });
      /***/

    },

    /***/
    "e6WT": function e6WT(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MAT_INPUT_VALUE_ACCESSOR", function () {
        return MAT_INPUT_VALUE_ACCESSOR;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatInput", function () {
        return MatInput;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatInputModule", function () {
        return MatInputModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatTextareaAutosize", function () {
        return MatTextareaAutosize;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "getMatInputUnsupportedTypeError", function () {
        return getMatInputUnsupportedTypeError;
      });
      /* harmony import */


      var _angular_cdk_text_field__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/cdk/text-field */
      "8sFK");
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /* harmony import */


      var _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! @angular/cdk/coercion */
      "8LU1");
      /* harmony import */


      var _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! @angular/cdk/platform */
      "SCoL");
      /* harmony import */


      var _angular_forms__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! @angular/forms */
      "s7LF");
      /* harmony import */


      var _angular_material_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! @angular/material/core */
      "UhP/");
      /* harmony import */


      var _angular_material_form_field__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
      /*! @angular/material/form-field */
      "Q2Ze");
      /* harmony import */


      var rxjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
      /*! rxjs */
      "qCKp");
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Directive to automatically resize a textarea to fit its content.
       * @deprecated Use `cdkTextareaAutosize` from `@angular/cdk/text-field` instead.
       * @breaking-change 8.0.0
       */


      var MatTextareaAutosize = /*#__PURE__*/function (_angular_cdk_text_fie) {
        _inherits2(MatTextareaAutosize, _angular_cdk_text_fie);

        var _super375 = _createSuper2(MatTextareaAutosize);

        function MatTextareaAutosize() {
          _classCallCheck2(this, MatTextareaAutosize);

          return _super375.apply(this, arguments);
        }

        _createClass2(MatTextareaAutosize, [{
          key: "matAutosizeMinRows",
          get: function get() {
            return this.minRows;
          },
          set: function set(value) {
            this.minRows = value;
          }
        }, {
          key: "matAutosizeMaxRows",
          get: function get() {
            return this.maxRows;
          },
          set: function set(value) {
            this.maxRows = value;
          }
        }, {
          key: "matAutosize",
          get: function get() {
            return this.enabled;
          },
          set: function set(value) {
            this.enabled = value;
          }
        }, {
          key: "matTextareaAutosize",
          get: function get() {
            return this.enabled;
          },
          set: function set(value) {
            this.enabled = value;
          }
        }]);

        return MatTextareaAutosize;
      }(_angular_cdk_text_field__WEBPACK_IMPORTED_MODULE_0__["CdkTextareaAutosize"]);

      MatTextareaAutosize.ɵfac = function MatTextareaAutosize_Factory(t) {
        return ɵMatTextareaAutosize_BaseFactory(t || MatTextareaAutosize);
      };

      MatTextareaAutosize.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineDirective"]({
        type: MatTextareaAutosize,
        selectors: [["textarea", "mat-autosize", ""], ["textarea", "matTextareaAutosize", ""]],
        hostAttrs: ["rows", "1", 1, "cdk-textarea-autosize", "mat-autosize"],
        inputs: {
          cdkAutosizeMinRows: "cdkAutosizeMinRows",
          cdkAutosizeMaxRows: "cdkAutosizeMaxRows",
          matAutosizeMinRows: "matAutosizeMinRows",
          matAutosizeMaxRows: "matAutosizeMaxRows",
          matAutosize: ["mat-autosize", "matAutosize"],
          matTextareaAutosize: "matTextareaAutosize"
        },
        exportAs: ["matTextareaAutosize"],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵInheritDefinitionFeature"]]
      });
      MatTextareaAutosize.propDecorators = {
        matAutosizeMinRows: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
        }],
        matAutosizeMaxRows: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
        }],
        matAutosize: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
          args: ['mat-autosize']
        }],
        matTextareaAutosize: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
        }]
      };

      var ɵMatTextareaAutosize_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetInheritedFactory"](MatTextareaAutosize);
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](MatTextareaAutosize, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Directive"],
          args: [{
            selector: 'textarea[mat-autosize], textarea[matTextareaAutosize]',
            exportAs: 'matTextareaAutosize',
            inputs: ['cdkAutosizeMinRows', 'cdkAutosizeMaxRows'],
            host: {
              'class': 'cdk-textarea-autosize mat-autosize',
              // Textarea elements that have the directive applied should have a single row by default.
              // Browsers normally show two rows by default and therefore this limits the minRows binding.
              'rows': '1'
            }
          }]
        }], null, {
          matAutosizeMinRows: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
          }],
          matAutosizeMaxRows: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
          }],
          matAutosize: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
            args: ['mat-autosize']
          }],
          matTextareaAutosize: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
          }]
        });
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** @docs-private */


      function getMatInputUnsupportedTypeError(type) {
        return Error("Input type \"".concat(type, "\" isn't supported by matInput."));
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * This token is used to inject the object whose value should be set into `MatInput`. If none is
       * provided, the native `HTMLInputElement` is used. Directives like `MatDatepickerInput` can provide
       * themselves for this token, in order to make `MatInput` delegate the getting and setting of the
       * value to them.
       */


      var MAT_INPUT_VALUE_ACCESSOR = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["InjectionToken"]('MAT_INPUT_VALUE_ACCESSOR');
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */
      // Invalid input type. Using one of these will throw an MatInputUnsupportedTypeError.

      var MAT_INPUT_INVALID_TYPES = ['button', 'checkbox', 'file', 'hidden', 'image', 'radio', 'range', 'reset', 'submit'];
      var nextUniqueId = 0; // Boilerplate for applying mixins to MatInput.

      /** @docs-private */

      var MatInputBase = function MatInputBase(_defaultErrorStateMatcher, _parentForm, _parentFormGroup,
      /** @docs-private */
      ngControl) {
        _classCallCheck2(this, MatInputBase);

        this._defaultErrorStateMatcher = _defaultErrorStateMatcher;
        this._parentForm = _parentForm;
        this._parentFormGroup = _parentFormGroup;
        this.ngControl = ngControl;
      };

      var _MatInputMixinBase = Object(_angular_material_core__WEBPACK_IMPORTED_MODULE_5__["mixinErrorState"])(MatInputBase);
      /** Directive that allows a native input to work inside a `MatFormField`. */


      var MatInput = /*#__PURE__*/function (_MatInputMixinBase2) {
        _inherits2(MatInput, _MatInputMixinBase2);

        var _super376 = _createSuper2(MatInput);

        function MatInput(_elementRef, _platform,
        /** @docs-private */
        ngControl, _parentForm, _parentFormGroup, _defaultErrorStateMatcher, inputValueAccessor, _autofillMonitor, ngZone, // TODO: Remove this once the legacy appearance has been removed. We only need
        // to inject the form-field for determining whether the placeholder has been promoted.
        _formField) {
          var _this739;

          _classCallCheck2(this, MatInput);

          _this739 = _super376.call(this, _defaultErrorStateMatcher, _parentForm, _parentFormGroup, ngControl);
          _this739._elementRef = _elementRef;
          _this739._platform = _platform;
          _this739.ngControl = ngControl;
          _this739._autofillMonitor = _autofillMonitor;
          _this739._formField = _formField;
          _this739._uid = "mat-input-".concat(nextUniqueId++);
          /**
           * Implemented as part of MatFormFieldControl.
           * @docs-private
           */

          _this739.focused = false;
          /**
           * Implemented as part of MatFormFieldControl.
           * @docs-private
           */

          _this739.stateChanges = new rxjs__WEBPACK_IMPORTED_MODULE_7__["Subject"]();
          /**
           * Implemented as part of MatFormFieldControl.
           * @docs-private
           */

          _this739.controlType = 'mat-input';
          /**
           * Implemented as part of MatFormFieldControl.
           * @docs-private
           */

          _this739.autofilled = false;
          _this739._disabled = false;
          _this739._required = false;
          _this739._type = 'text';
          _this739._readonly = false;
          _this739._neverEmptyInputTypes = ['date', 'datetime', 'datetime-local', 'month', 'time', 'week'].filter(function (t) {
            return Object(_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_3__["getSupportedInputTypes"])().has(t);
          });
          var element = _this739._elementRef.nativeElement;
          var nodeName = element.nodeName.toLowerCase(); // If no input value accessor was explicitly specified, use the element as the input value
          // accessor.

          _this739._inputValueAccessor = inputValueAccessor || element;
          _this739._previousNativeValue = _this739.value; // Force setter to be called in case id was not specified.

          _this739.id = _this739.id; // On some versions of iOS the caret gets stuck in the wrong place when holding down the delete
          // key. In order to get around this we need to "jiggle" the caret loose. Since this bug only
          // exists on iOS, we only bother to install the listener on iOS.

          if (_platform.IOS) {
            ngZone.runOutsideAngular(function () {
              _elementRef.nativeElement.addEventListener('keyup', function (event) {
                var el = event.target;

                if (!el.value && !el.selectionStart && !el.selectionEnd) {
                  // Note: Just setting `0, 0` doesn't fix the issue. Setting
                  // `1, 1` fixes it for the first time that you type text and
                  // then hold delete. Toggling to `1, 1` and then back to
                  // `0, 0` seems to completely fix it.
                  el.setSelectionRange(1, 1);
                  el.setSelectionRange(0, 0);
                }
              });
            });
          }

          _this739._isServer = !_this739._platform.isBrowser;
          _this739._isNativeSelect = nodeName === 'select';
          _this739._isTextarea = nodeName === 'textarea';

          if (_this739._isNativeSelect) {
            _this739.controlType = element.multiple ? 'mat-native-select-multiple' : 'mat-native-select';
          }

          return _this739;
        }
        /**
         * Implemented as part of MatFormFieldControl.
         * @docs-private
         */


        _createClass2(MatInput, [{
          key: "disabled",
          get: function get() {
            if (this.ngControl && this.ngControl.disabled !== null) {
              return this.ngControl.disabled;
            }

            return this._disabled;
          },
          set: function set(value) {
            this._disabled = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__["coerceBooleanProperty"])(value); // Browsers may not fire the blur event if the input is disabled too quickly.
            // Reset from here to ensure that the element doesn't become stuck.

            if (this.focused) {
              this.focused = false;
              this.stateChanges.next();
            }
          }
          /**
           * Implemented as part of MatFormFieldControl.
           * @docs-private
           */

        }, {
          key: "id",
          get: function get() {
            return this._id;
          },
          set: function set(value) {
            this._id = value || this._uid;
          }
          /**
           * Implemented as part of MatFormFieldControl.
           * @docs-private
           */

        }, {
          key: "required",
          get: function get() {
            return this._required;
          },
          set: function set(value) {
            this._required = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__["coerceBooleanProperty"])(value);
          }
          /** Input type of the element. */

        }, {
          key: "type",
          get: function get() {
            return this._type;
          },
          set: function set(value) {
            this._type = value || 'text';

            this._validateType(); // When using Angular inputs, developers are no longer able to set the properties on the native
            // input element. To ensure that bindings for `type` work, we need to sync the setter
            // with the native property. Textarea elements don't support the type property or attribute.


            if (!this._isTextarea && Object(_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_3__["getSupportedInputTypes"])().has(this._type)) {
              this._elementRef.nativeElement.type = this._type;
            }
          }
          /**
           * Implemented as part of MatFormFieldControl.
           * @docs-private
           */

        }, {
          key: "value",
          get: function get() {
            return this._inputValueAccessor.value;
          },
          set: function set(value) {
            if (value !== this.value) {
              this._inputValueAccessor.value = value;
              this.stateChanges.next();
            }
          }
          /** Whether the element is readonly. */

        }, {
          key: "readonly",
          get: function get() {
            return this._readonly;
          },
          set: function set(value) {
            this._readonly = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_2__["coerceBooleanProperty"])(value);
          }
        }, {
          key: "ngAfterViewInit",
          value: function ngAfterViewInit() {
            var _this740 = this;

            if (this._platform.isBrowser) {
              this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(function (event) {
                _this740.autofilled = event.isAutofilled;

                _this740.stateChanges.next();
              });
            }
          }
        }, {
          key: "ngOnChanges",
          value: function ngOnChanges() {
            this.stateChanges.next();
          }
        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            this.stateChanges.complete();

            if (this._platform.isBrowser) {
              this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement);
            }
          }
        }, {
          key: "ngDoCheck",
          value: function ngDoCheck() {
            if (this.ngControl) {
              // We need to re-evaluate this on every change detection cycle, because there are some
              // error triggers that we can't subscribe to (e.g. parent form submissions). This means
              // that whatever logic is in here has to be super lean or we risk destroying the performance.
              this.updateErrorState();
            } // We need to dirty-check the native element's value, because there are some cases where
            // we won't be notified when it changes (e.g. the consumer isn't using forms or they're
            // updating the value using `emitEvent: false`).


            this._dirtyCheckNativeValue(); // We need to dirty-check and set the placeholder attribute ourselves, because whether it's
            // present or not depends on a query which is prone to "changed after checked" errors.


            this._dirtyCheckPlaceholder();
          }
          /** Focuses the input. */

        }, {
          key: "focus",
          value: function focus(options) {
            this._elementRef.nativeElement.focus(options);
          } // We have to use a `HostListener` here in order to support both Ivy and ViewEngine.
          // In Ivy the `host` bindings will be merged when this class is extended, whereas in
          // ViewEngine they're overwritten.
          // TODO(crisbeto): we move this back into `host` once Ivy is turned on by default.

          /** Callback for the cases where the focused state of the input changes. */
          // tslint:disable:no-host-decorator-in-concrete
          // tslint:enable:no-host-decorator-in-concrete

        }, {
          key: "_focusChanged",
          value: function _focusChanged(isFocused) {
            if (isFocused !== this.focused && (!this.readonly || !isFocused)) {
              this.focused = isFocused;
              this.stateChanges.next();
            }
          } // We have to use a `HostListener` here in order to support both Ivy and ViewEngine.
          // In Ivy the `host` bindings will be merged when this class is extended, whereas in
          // ViewEngine they're overwritten.
          // TODO(crisbeto): we move this back into `host` once Ivy is turned on by default.
          // tslint:disable-next-line:no-host-decorator-in-concrete

        }, {
          key: "_onInput",
          value: function _onInput() {// This is a noop function and is used to let Angular know whenever the value changes.
            // Angular will run a new change detection each time the `input` event has been dispatched.
            // It's necessary that Angular recognizes the value change, because when floatingLabel
            // is set to false and Angular forms aren't used, the placeholder won't recognize the
            // value changes and will not disappear.
            // Listening to the input event wouldn't be necessary when the input is using the
            // FormsModule or ReactiveFormsModule, because Angular forms also listens to input events.
          }
          /** Does some manual dirty checking on the native input `placeholder` attribute. */

        }, {
          key: "_dirtyCheckPlaceholder",
          value: function _dirtyCheckPlaceholder() {
            var _a, _b; // If we're hiding the native placeholder, it should also be cleared from the DOM, otherwise
            // screen readers will read it out twice: once from the label and once from the attribute.
            // TODO: can be removed once we get rid of the `legacy` style for the form field, because it's
            // the only one that supports promoting the placeholder to a label.


            var placeholder = ((_b = (_a = this._formField) === null || _a === void 0 ? void 0 : _a._hideControlPlaceholder) === null || _b === void 0 ? void 0 : _b.call(_a)) ? null : this.placeholder;

            if (placeholder !== this._previousPlaceholder) {
              var element = this._elementRef.nativeElement;
              this._previousPlaceholder = placeholder;
              placeholder ? element.setAttribute('placeholder', placeholder) : element.removeAttribute('placeholder');
            }
          }
          /** Does some manual dirty checking on the native input `value` property. */

        }, {
          key: "_dirtyCheckNativeValue",
          value: function _dirtyCheckNativeValue() {
            var newValue = this._elementRef.nativeElement.value;

            if (this._previousNativeValue !== newValue) {
              this._previousNativeValue = newValue;
              this.stateChanges.next();
            }
          }
          /** Make sure the input is a supported type. */

        }, {
          key: "_validateType",
          value: function _validateType() {
            if (MAT_INPUT_INVALID_TYPES.indexOf(this._type) > -1 && (typeof ngDevMode === 'undefined' || ngDevMode)) {
              throw getMatInputUnsupportedTypeError(this._type);
            }
          }
          /** Checks whether the input type is one of the types that are never empty. */

        }, {
          key: "_isNeverEmpty",
          value: function _isNeverEmpty() {
            return this._neverEmptyInputTypes.indexOf(this._type) > -1;
          }
          /** Checks whether the input is invalid based on the native validation. */

        }, {
          key: "_isBadInput",
          value: function _isBadInput() {
            // The `validity` property won't be present on platform-server.
            var validity = this._elementRef.nativeElement.validity;
            return validity && validity.badInput;
          }
          /**
           * Implemented as part of MatFormFieldControl.
           * @docs-private
           */

        }, {
          key: "empty",
          get: function get() {
            return !this._isNeverEmpty() && !this._elementRef.nativeElement.value && !this._isBadInput() && !this.autofilled;
          }
          /**
           * Implemented as part of MatFormFieldControl.
           * @docs-private
           */

        }, {
          key: "shouldLabelFloat",
          get: function get() {
            if (this._isNativeSelect) {
              // For a single-selection `<select>`, the label should float when the selected option has
              // a non-empty display value. For a `<select multiple>`, the label *always* floats to avoid
              // overlapping the label with the options.
              var selectElement = this._elementRef.nativeElement;
              var firstOption = selectElement.options[0]; // On most browsers the `selectedIndex` will always be 0, however on IE and Edge it'll be
              // -1 if the `value` is set to something, that isn't in the list of options, at a later point.

              return this.focused || selectElement.multiple || !this.empty || !!(selectElement.selectedIndex > -1 && firstOption && firstOption.label);
            } else {
              return this.focused || !this.empty;
            }
          }
          /**
           * Implemented as part of MatFormFieldControl.
           * @docs-private
           */

        }, {
          key: "setDescribedByIds",
          value: function setDescribedByIds(ids) {
            if (ids.length) {
              this._elementRef.nativeElement.setAttribute('aria-describedby', ids.join(' '));
            } else {
              this._elementRef.nativeElement.removeAttribute('aria-describedby');
            }
          }
          /**
           * Implemented as part of MatFormFieldControl.
           * @docs-private
           */

        }, {
          key: "onContainerClick",
          value: function onContainerClick() {
            // Do not re-focus the input element if the element is already focused. Otherwise it can happen
            // that someone clicks on a time input and the cursor resets to the "hours" field while the
            // "minutes" field was actually clicked. See: https://github.com/angular/components/issues/12849
            if (!this.focused) {
              this.focus();
            }
          }
        }]);

        return MatInput;
      }(_MatInputMixinBase);

      MatInput.ɵfac = function MatInput_Factory(t) {
        return new (t || MatInput)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_3__["Platform"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_4__["NgControl"], 10), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_4__["NgForm"], 8), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_4__["FormGroupDirective"], 8), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_material_core__WEBPACK_IMPORTED_MODULE_5__["ErrorStateMatcher"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](MAT_INPUT_VALUE_ACCESSOR, 10), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_cdk_text_field__WEBPACK_IMPORTED_MODULE_0__["AutofillMonitor"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_material_form_field__WEBPACK_IMPORTED_MODULE_6__["MAT_FORM_FIELD"], 8));
      };

      MatInput.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineDirective"]({
        type: MatInput,
        selectors: [["input", "matInput", ""], ["textarea", "matInput", ""], ["select", "matNativeControl", ""], ["input", "matNativeControl", ""], ["textarea", "matNativeControl", ""]],
        hostAttrs: [1, "mat-input-element", "mat-form-field-autofill-control"],
        hostVars: 9,
        hostBindings: function MatInput_HostBindings(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("focus", function MatInput_focus_HostBindingHandler() {
              return ctx._focusChanged(true);
            })("blur", function MatInput_blur_HostBindingHandler() {
              return ctx._focusChanged(false);
            })("input", function MatInput_input_HostBindingHandler() {
              return ctx._onInput();
            });
          }

          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵhostProperty"]("disabled", ctx.disabled)("required", ctx.required);

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵattribute"]("id", ctx.id)("data-placeholder", ctx.placeholder)("readonly", ctx.readonly && !ctx._isNativeSelect || null)("aria-invalid", ctx.errorState)("aria-required", ctx.required.toString());

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵclassProp"]("mat-input-server", ctx._isServer);
          }
        },
        inputs: {
          id: "id",
          disabled: "disabled",
          required: "required",
          type: "type",
          value: "value",
          readonly: "readonly",
          placeholder: "placeholder",
          errorStateMatcher: "errorStateMatcher",
          userAriaDescribedBy: ["aria-describedby", "userAriaDescribedBy"]
        },
        exportAs: ["matInput"],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵProvidersFeature"]([{
          provide: _angular_material_form_field__WEBPACK_IMPORTED_MODULE_6__["MatFormFieldControl"],
          useExisting: MatInput
        }]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵInheritDefinitionFeature"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵNgOnChangesFeature"]]
      });

      MatInput.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]
        }, {
          type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_3__["Platform"]
        }, {
          type: _angular_forms__WEBPACK_IMPORTED_MODULE_4__["NgControl"],
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Self"]
          }]
        }, {
          type: _angular_forms__WEBPACK_IMPORTED_MODULE_4__["NgForm"],
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
          }]
        }, {
          type: _angular_forms__WEBPACK_IMPORTED_MODULE_4__["FormGroupDirective"],
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
          }]
        }, {
          type: _angular_material_core__WEBPACK_IMPORTED_MODULE_5__["ErrorStateMatcher"]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Self"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
            args: [MAT_INPUT_VALUE_ACCESSOR]
          }]
        }, {
          type: _angular_cdk_text_field__WEBPACK_IMPORTED_MODULE_0__["AutofillMonitor"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]
        }, {
          type: _angular_material_form_field__WEBPACK_IMPORTED_MODULE_6__["MatFormField"],
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
            args: [_angular_material_form_field__WEBPACK_IMPORTED_MODULE_6__["MAT_FORM_FIELD"]]
          }]
        }];
      };

      MatInput.propDecorators = {
        disabled: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
        }],
        id: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
        }],
        placeholder: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
        }],
        required: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
        }],
        type: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
        }],
        errorStateMatcher: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
        }],
        userAriaDescribedBy: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
          args: ['aria-describedby']
        }],
        value: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
        }],
        readonly: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
        }],
        _focusChanged: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["HostListener"],
          args: ['focus', ['true']]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["HostListener"],
          args: ['blur', ['false']]
        }],
        _onInput: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["HostListener"],
          args: ['input']
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](MatInput, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Directive"],
          args: [{
            selector: "input[matInput], textarea[matInput], select[matNativeControl],\n      input[matNativeControl], textarea[matNativeControl]",
            exportAs: 'matInput',
            host: {
              /**
               * @breaking-change 8.0.0 remove .mat-form-field-autofill-control in favor of AutofillMonitor.
               */
              'class': 'mat-input-element mat-form-field-autofill-control',
              '[class.mat-input-server]': '_isServer',
              // Native input properties that are overwritten by Angular inputs need to be synced with
              // the native input element. Otherwise property bindings for those don't work.
              '[attr.id]': 'id',
              // At the time of writing, we have a lot of customer tests that look up the input based on its
              // placeholder. Since we sometimes omit the placeholder attribute from the DOM to prevent screen
              // readers from reading it twice, we have to keep it somewhere in the DOM for the lookup.
              '[attr.data-placeholder]': 'placeholder',
              '[disabled]': 'disabled',
              '[required]': 'required',
              '[attr.readonly]': 'readonly && !_isNativeSelect || null',
              '[attr.aria-invalid]': 'errorState',
              '[attr.aria-required]': 'required.toString()'
            },
            providers: [{
              provide: _angular_material_form_field__WEBPACK_IMPORTED_MODULE_6__["MatFormFieldControl"],
              useExisting: MatInput
            }]
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]
          }, {
            type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_3__["Platform"]
          }, {
            type: _angular_forms__WEBPACK_IMPORTED_MODULE_4__["NgControl"],
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Self"]
            }]
          }, {
            type: _angular_forms__WEBPACK_IMPORTED_MODULE_4__["NgForm"],
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
            }]
          }, {
            type: _angular_forms__WEBPACK_IMPORTED_MODULE_4__["FormGroupDirective"],
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
            }]
          }, {
            type: _angular_material_core__WEBPACK_IMPORTED_MODULE_5__["ErrorStateMatcher"]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Self"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
              args: [MAT_INPUT_VALUE_ACCESSOR]
            }]
          }, {
            type: _angular_cdk_text_field__WEBPACK_IMPORTED_MODULE_0__["AutofillMonitor"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]
          }, {
            type: _angular_material_form_field__WEBPACK_IMPORTED_MODULE_6__["MatFormField"],
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
              args: [_angular_material_form_field__WEBPACK_IMPORTED_MODULE_6__["MAT_FORM_FIELD"]]
            }]
          }];
        }, {
          id: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
          }],
          disabled: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
          }],
          required: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
          }],
          type: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
          }],
          value: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
          }],
          readonly: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
          }],
          // We have to use a `HostListener` here in order to support both Ivy and ViewEngine.
          // In Ivy the `host` bindings will be merged when this class is extended, whereas in
          // ViewEngine they're overwritten.
          // TODO(crisbeto): we move this back into `host` once Ivy is turned on by default.

          /** Callback for the cases where the focused state of the input changes. */
          // tslint:disable:no-host-decorator-in-concrete
          // tslint:enable:no-host-decorator-in-concrete
          _focusChanged: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["HostListener"],
            args: ['focus', ['true']]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["HostListener"],
            args: ['blur', ['false']]
          }],
          // We have to use a `HostListener` here in order to support both Ivy and ViewEngine.
          // In Ivy the `host` bindings will be merged when this class is extended, whereas in
          // ViewEngine they're overwritten.
          // TODO(crisbeto): we move this back into `host` once Ivy is turned on by default.
          // tslint:disable-next-line:no-host-decorator-in-concrete
          _onInput: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["HostListener"],
            args: ['input']
          }],
          placeholder: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
          }],
          errorStateMatcher: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
          }],
          userAriaDescribedBy: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
            args: ['aria-describedby']
          }]
        });
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var MatInputModule = function MatInputModule() {
        _classCallCheck2(this, MatInputModule);
      };

      MatInputModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineNgModule"]({
        type: MatInputModule
      });
      MatInputModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjector"]({
        factory: function MatInputModule_Factory(t) {
          return new (t || MatInputModule)();
        },
        providers: [_angular_material_core__WEBPACK_IMPORTED_MODULE_5__["ErrorStateMatcher"]],
        imports: [[_angular_cdk_text_field__WEBPACK_IMPORTED_MODULE_0__["TextFieldModule"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_6__["MatFormFieldModule"]], _angular_cdk_text_field__WEBPACK_IMPORTED_MODULE_0__["TextFieldModule"], // We re-export the `MatFormFieldModule` since `MatInput` will almost always
        // be used together with `MatFormField`.
        _angular_material_form_field__WEBPACK_IMPORTED_MODULE_6__["MatFormFieldModule"]]
      });

      (function () {
        (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsetNgModuleScope"](MatInputModule, {
          declarations: function declarations() {
            return [MatInput, MatTextareaAutosize];
          },
          imports: function imports() {
            return [_angular_cdk_text_field__WEBPACK_IMPORTED_MODULE_0__["TextFieldModule"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_6__["MatFormFieldModule"]];
          },
          exports: function exports() {
            return [_angular_cdk_text_field__WEBPACK_IMPORTED_MODULE_0__["TextFieldModule"], // We re-export the `MatFormFieldModule` since `MatInput` will almost always
            // be used together with `MatFormField`.
            _angular_material_form_field__WEBPACK_IMPORTED_MODULE_6__["MatFormFieldModule"], MatInput, MatTextareaAutosize];
          }
        });
      })();
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](MatInputModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"],
          args: [{
            declarations: [MatInput, MatTextareaAutosize],
            imports: [_angular_cdk_text_field__WEBPACK_IMPORTED_MODULE_0__["TextFieldModule"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_6__["MatFormFieldModule"]],
            exports: [_angular_cdk_text_field__WEBPACK_IMPORTED_MODULE_0__["TextFieldModule"], // We re-export the `MatFormFieldModule` since `MatInput` will almost always
            // be used together with `MatFormField`.
            _angular_material_form_field__WEBPACK_IMPORTED_MODULE_6__["MatFormFieldModule"], MatInput, MatTextareaAutosize],
            providers: [_angular_material_core__WEBPACK_IMPORTED_MODULE_5__["ErrorStateMatcher"]]
          }]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Generated bundle index. Do not edit.
       */
      //# sourceMappingURL=input.js.map

      /***/

    },

    /***/
    "e7zE": function e7zE(module, exports, __webpack_require__) {
      ;

      (function (root, factory, undef) {
        if (true) {
          // CommonJS
          module.exports = exports = factory(__webpack_require__(
          /*! ./core */
          "Ib8C"), __webpack_require__(
          /*! ./sha1 */
          "3y9D"), __webpack_require__(
          /*! ./hmac */
          "WYAk"));
        } else {}
      })(this, function (CryptoJS) {
        (function () {
          // Shortcuts
          var C = CryptoJS;
          var C_lib = C.lib;
          var Base = C_lib.Base;
          var WordArray = C_lib.WordArray;
          var C_algo = C.algo;
          var SHA1 = C_algo.SHA1;
          var HMAC = C_algo.HMAC;
          /**
           * Password-Based Key Derivation Function 2 algorithm.
           */

          var PBKDF2 = C_algo.PBKDF2 = Base.extend({
            /**
             * Configuration options.
             *
             * @property {number} keySize The key size in words to generate. Default: 4 (128 bits)
             * @property {Hasher} hasher The hasher to use. Default: SHA1
             * @property {number} iterations The number of iterations to perform. Default: 1
             */
            cfg: Base.extend({
              keySize: 128 / 32,
              hasher: SHA1,
              iterations: 1
            }),

            /**
             * Initializes a newly created key derivation function.
             *
             * @param {Object} cfg (Optional) The configuration options to use for the derivation.
             *
             * @example
             *
             *     var kdf = CryptoJS.algo.PBKDF2.create();
             *     var kdf = CryptoJS.algo.PBKDF2.create({ keySize: 8 });
             *     var kdf = CryptoJS.algo.PBKDF2.create({ keySize: 8, iterations: 1000 });
             */
            init: function init(cfg) {
              this.cfg = this.cfg.extend(cfg);
            },

            /**
             * Computes the Password-Based Key Derivation Function 2.
             *
             * @param {WordArray|string} password The password.
             * @param {WordArray|string} salt A salt.
             *
             * @return {WordArray} The derived key.
             *
             * @example
             *
             *     var key = kdf.compute(password, salt);
             */
            compute: function compute(password, salt) {
              // Shortcut
              var cfg = this.cfg; // Init HMAC

              var hmac = HMAC.create(cfg.hasher, password); // Initial values

              var derivedKey = WordArray.create();
              var blockIndex = WordArray.create([0x00000001]); // Shortcuts

              var derivedKeyWords = derivedKey.words;
              var blockIndexWords = blockIndex.words;
              var keySize = cfg.keySize;
              var iterations = cfg.iterations; // Generate key

              while (derivedKeyWords.length < keySize) {
                var block = hmac.update(salt).finalize(blockIndex);
                hmac.reset(); // Shortcuts

                var blockWords = block.words;
                var blockWordsLength = blockWords.length; // Iterations

                var intermediate = block;

                for (var i = 1; i < iterations; i++) {
                  intermediate = hmac.finalize(intermediate);
                  hmac.reset(); // Shortcut

                  var intermediateWords = intermediate.words; // XOR intermediate with block

                  for (var j = 0; j < blockWordsLength; j++) {
                    blockWords[j] ^= intermediateWords[j];
                  }
                }

                derivedKey.concat(block);
                blockIndexWords[0]++;
              }

              derivedKey.sigBytes = keySize * 4;
              return derivedKey;
            }
          });
          /**
           * Computes the Password-Based Key Derivation Function 2.
           *
           * @param {WordArray|string} password The password.
           * @param {WordArray|string} salt A salt.
           * @param {Object} cfg (Optional) The configuration options to use for this computation.
           *
           * @return {WordArray} The derived key.
           *
           * @static
           *
           * @example
           *
           *     var key = CryptoJS.PBKDF2(password, salt);
           *     var key = CryptoJS.PBKDF2(password, salt, { keySize: 8 });
           *     var key = CryptoJS.PBKDF2(password, salt, { keySize: 8, iterations: 1000 });
           */

          C.PBKDF2 = function (password, salt, cfg) {
            return PBKDF2.create(cfg).compute(password, salt);
          };
        })();

        return CryptoJS.PBKDF2;
      });
      /***/

    },

    /***/
    "eIep": function eIep(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "switchMap", function () {
        return switchMap;
      });
      /* harmony import */


      var _map__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ./map */
      "lJxs");
      /* harmony import */


      var _observable_from__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../observable/from */
      "Cfvw");
      /* harmony import */


      var _innerSubscribe__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../innerSubscribe */
      "zx2A");

      function switchMap(project, resultSelector) {
        if (typeof resultSelector === 'function') {
          return function (source) {
            return source.pipe(switchMap(function (a, i) {
              return Object(_observable_from__WEBPACK_IMPORTED_MODULE_1__["from"])(project(a, i)).pipe(Object(_map__WEBPACK_IMPORTED_MODULE_0__["map"])(function (b, ii) {
                return resultSelector(a, b, i, ii);
              }));
            }));
          };
        }

        return function (source) {
          return source.lift(new SwitchMapOperator(project));
        };
      }

      var SwitchMapOperator = /*#__PURE__*/function () {
        function SwitchMapOperator(project) {
          _classCallCheck2(this, SwitchMapOperator);

          this.project = project;
        }

        _createClass2(SwitchMapOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            return source.subscribe(new SwitchMapSubscriber(subscriber, this.project));
          }
        }]);

        return SwitchMapOperator;
      }();

      var SwitchMapSubscriber = /*#__PURE__*/function (_innerSubscribe__WEBP14) {
        _inherits2(SwitchMapSubscriber, _innerSubscribe__WEBP14);

        var _super377 = _createSuper2(SwitchMapSubscriber);

        function SwitchMapSubscriber(destination, project) {
          var _this741;

          _classCallCheck2(this, SwitchMapSubscriber);

          _this741 = _super377.call(this, destination);
          _this741.project = project;
          _this741.index = 0;
          return _this741;
        }

        _createClass2(SwitchMapSubscriber, [{
          key: "_next",
          value: function _next(value) {
            var result;
            var index = this.index++;

            try {
              result = this.project(value, index);
            } catch (error) {
              this.destination.error(error);
              return;
            }

            this._innerSub(result);
          }
        }, {
          key: "_innerSub",
          value: function _innerSub(result) {
            var innerSubscription = this.innerSubscription;

            if (innerSubscription) {
              innerSubscription.unsubscribe();
            }

            var innerSubscriber = new _innerSubscribe__WEBPACK_IMPORTED_MODULE_2__["SimpleInnerSubscriber"](this);
            var destination = this.destination;
            destination.add(innerSubscriber);
            this.innerSubscription = Object(_innerSubscribe__WEBPACK_IMPORTED_MODULE_2__["innerSubscribe"])(result, innerSubscriber);

            if (this.innerSubscription !== innerSubscriber) {
              destination.add(this.innerSubscription);
            }
          }
        }, {
          key: "_complete",
          value: function _complete() {
            var innerSubscription = this.innerSubscription;

            if (!innerSubscription || innerSubscription.closed) {
              _get2(_getPrototypeOf2(SwitchMapSubscriber.prototype), "_complete", this).call(this);
            }

            this.unsubscribe();
          }
        }, {
          key: "_unsubscribe",
          value: function _unsubscribe() {
            this.innerSubscription = undefined;
          }
        }, {
          key: "notifyComplete",
          value: function notifyComplete() {
            this.innerSubscription = undefined;

            if (this.isStopped) {
              _get2(_getPrototypeOf2(SwitchMapSubscriber.prototype), "_complete", this).call(this);
            }
          }
        }, {
          key: "notifyNext",
          value: function notifyNext(innerValue) {
            this.destination.next(innerValue);
          }
        }]);

        return SwitchMapSubscriber;
      }(_innerSubscribe__WEBPACK_IMPORTED_MODULE_2__["SimpleOuterSubscriber"]); //# sourceMappingURL=switchMap.js.map

      /***/

    },

    /***/
    "eNwd": function eNwd(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "animationFrameScheduler", function () {
        return animationFrameScheduler;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "animationFrame", function () {
        return animationFrame;
      });
      /* harmony import */


      var _AnimationFrameAction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ./AnimationFrameAction */
      "Vpsf");
      /* harmony import */


      var _AnimationFrameScheduler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ./AnimationFrameScheduler */
      "znLP");

      var animationFrameScheduler = new _AnimationFrameScheduler__WEBPACK_IMPORTED_MODULE_1__["AnimationFrameScheduler"](_AnimationFrameAction__WEBPACK_IMPORTED_MODULE_0__["AnimationFrameAction"]);
      var animationFrame = animationFrameScheduler; //# sourceMappingURL=animationFrame.js.map

      /***/
    },

    /***/
    "eYjL": function eYjL(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return getWeek;
      });
      /* harmony import */


      var _startOfWeek_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../startOfWeek/index.js */
      "aetl");
      /* harmony import */


      var _startOfWeekYear_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../startOfWeekYear/index.js */
      "qdtj");
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");

      var MILLISECONDS_IN_WEEK = 604800000;
      /**
       * @name getWeek
       * @category Week Helpers
       * @summary Get the local week index of the given date.
       *
       * @description
       * Get the local week index of the given date.
       * The exact calculation depends on the values of
       * `options.weekStartsOn` (which is the index of the first day of the week)
       * and `options.firstWeekContainsDate` (which is the day of January, which is always in
       * the first week of the week-numbering year)
       *
       * Week numbering: https://en.wikipedia.org/wiki/Week#Week_numbering
       *
       * ### 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 {Date|Number} date - the given date
       * @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)
       * @param {1|2|3|4|5|6|7} [options.firstWeekContainsDate=1] - the day of January, which is always in the first week of the year
       * @returns {Number} the week
       * @throws {TypeError} 1 argument required
       * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6
       * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7
       *
       * @example
       * // Which week of the local week numbering year is 2 January 2005 with default options?
       * var result = getISOWeek(new Date(2005, 0, 2))
       * //=> 2
       *
       * // Which week of the local week numbering year is 2 January 2005,
       * // if Monday is the first day of the week,
       * // and the first week of the year always contains 4 January?
       * var result = getISOWeek(new Date(2005, 0, 2), {
       *   weekStartsOn: 1,
       *   firstWeekContainsDate: 4
       * })
       * //=> 53
       */

      function getWeek(dirtyDate, options) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(1, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(dirtyDate);
        var diff = Object(_startOfWeek_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(date, options).getTime() - Object(_startOfWeekYear_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(date, options).getTime(); // Round the number of days to the nearest integer
        // because the number of milliseconds in a week is not constant
        // (e.g. it's different in the week of the daylight saving time clock shift)

        return Math.round(diff / MILLISECONDS_IN_WEEK) + 1;
      }
      /***/

    },

    /***/
    "edZA": function edZA(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return min;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name min
       * @category Common Helpers
       * @summary Return the earliest of the given dates.
       *
       * @description
       * Return the earliest of the given dates.
       *
       * ### 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).
       *
       * - `min` function now accepts an array of dates rather than spread arguments.
       *
       *   ```javascript
       *   // Before v2.0.0
       *   var date1 = new Date(1989, 6, 10)
       *   var date2 = new Date(1987, 1, 11)
       *   var minDate = min(date1, date2)
       *
       *   // v2.0.0 onward:
       *   var dates = [new Date(1989, 6, 10), new Date(1987, 1, 11)]
       *   var minDate = min(dates)
       *   ```
       *
       * @param {Date[]|Number[]} datesArray - the dates to compare
       * @returns {Date} the earliest of the dates
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // Which of these dates is the earliest?
       * var result = min([
       *   new Date(1989, 6, 10),
       *   new Date(1987, 1, 11),
       *   new Date(1995, 6, 2),
       *   new Date(1990, 0, 1)
       * ])
       * //=> Wed Feb 11 1987 00:00:00
       */


      function min(dirtyDatesArray) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        var datesArray; // `dirtyDatesArray` is Array, Set or Map, or object with custom `forEach` method

        if (dirtyDatesArray && typeof dirtyDatesArray.forEach === 'function') {
          datesArray = dirtyDatesArray; // If `dirtyDatesArray` is Array-like Object, convert to Array.
        } else if (typeof dirtyDatesArray === 'object' && dirtyDatesArray !== null) {
          datesArray = Array.prototype.slice.call(dirtyDatesArray);
        } else {
          // `dirtyDatesArray` is non-iterable, return Invalid Date
          return new Date(NaN);
        }

        var result;
        datesArray.forEach(function (dirtyDate) {
          var currentDate = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);

          if (result === undefined || result > currentDate || isNaN(currentDate)) {
            result = currentDate;
          }
        });
        return result || new Date(NaN);
      }
      /***/

    },

    /***/
    "emD/": function emD(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return cloneObject;
      });
      /* harmony import */


      var _assign_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../assign/index.js */
      "+LmI");

      function cloneObject(dirtyObject) {
        return Object(_assign_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, dirtyObject);
      }
      /***/

    },

    /***/
    "f29J": function f29J(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "concat", function () {
        return concat;
      });
      /* harmony import */


      var _observable_concat__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../observable/concat */
      "GyhO");

      function concat() {
        for (var _len67 = arguments.length, observables = new Array(_len67), _key69 = 0; _key69 < _len67; _key69++) {
          observables[_key69] = arguments[_key69];
        }

        return function (source) {
          return source.lift.call(Object(_observable_concat__WEBPACK_IMPORTED_MODULE_0__["concat"]).apply(void 0, [source].concat(observables)));
        };
      } //# sourceMappingURL=concat.js.map

      /***/

    },

    /***/
    "fDlF": function fDlF(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "AnimationDriver", function () {
        return AnimationDriver;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵAnimation", function () {
        return Animation;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵAnimationEngine", function () {
        return AnimationEngine;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵAnimationStyleNormalizer", function () {
        return AnimationStyleNormalizer;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵCssKeyframesDriver", function () {
        return CssKeyframesDriver;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵCssKeyframesPlayer", function () {
        return CssKeyframesPlayer;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵNoopAnimationDriver", function () {
        return NoopAnimationDriver;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵNoopAnimationStyleNormalizer", function () {
        return NoopAnimationStyleNormalizer;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵWebAnimationsDriver", function () {
        return WebAnimationsDriver;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵWebAnimationsPlayer", function () {
        return WebAnimationsPlayer;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵWebAnimationsStyleNormalizer", function () {
        return WebAnimationsStyleNormalizer;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵallowPreviousPlayerStylesMerge", function () {
        return allowPreviousPlayerStylesMerge;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_animations_browser_browser_a", function () {
        return SpecialCasedStyles;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵcontainsElement", function () {
        return _containsElement;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵinvokeQuery", function () {
        return invokeQuery;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵmatchesElement", function () {
        return _matchesElement;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵsupportsWebAnimations", function () {
        return supportsWebAnimations;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵvalidateStyleProperty", function () {
        return _validateStyleProperty;
      });
      /* harmony import */


      var _angular_animations__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/animations */
      "GS7A");
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /**
       * @license Angular v11.0.0
       * (c) 2010-2020 Google LLC. https://angular.io/
       * License: MIT
       */

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function isBrowser() {
        return typeof window !== 'undefined' && typeof window.document !== 'undefined';
      }

      function isNode() {
        // Checking only for `process` isn't enough to identify whether or not we're in a Node
        // environment, because Webpack by default will polyfill the `process`. While we can discern
        // that Webpack polyfilled it by looking at `process.browser`, it's very Webpack-specific and
        // might not be future-proof. Instead we look at the stringified version of `process` which
        // is `[object process]` in Node and `[object Object]` when polyfilled.
        return typeof process !== 'undefined' && {}.toString.call(process) === '[object process]';
      }

      function optimizeGroupPlayer(players) {
        switch (players.length) {
          case 0:
            return new _angular_animations__WEBPACK_IMPORTED_MODULE_0__["NoopAnimationPlayer"]();

          case 1:
            return players[0];

          default:
            return new _angular_animations__WEBPACK_IMPORTED_MODULE_0__["ɵAnimationGroupPlayer"](players);
        }
      }

      function normalizeKeyframes(driver, normalizer, element, keyframes) {
        var preStyles = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {};
        var postStyles = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : {};
        var errors = [];
        var normalizedKeyframes = [];
        var previousOffset = -1;
        var previousKeyframe = null;
        keyframes.forEach(function (kf) {
          var offset = kf['offset'];
          var isSameOffset = offset == previousOffset;
          var normalizedKeyframe = isSameOffset && previousKeyframe || {};
          Object.keys(kf).forEach(function (prop) {
            var normalizedProp = prop;
            var normalizedValue = kf[prop];

            if (prop !== 'offset') {
              normalizedProp = normalizer.normalizePropertyName(normalizedProp, errors);

              switch (normalizedValue) {
                case _angular_animations__WEBPACK_IMPORTED_MODULE_0__["ɵPRE_STYLE"]:
                  normalizedValue = preStyles[prop];
                  break;

                case _angular_animations__WEBPACK_IMPORTED_MODULE_0__["AUTO_STYLE"]:
                  normalizedValue = postStyles[prop];
                  break;

                default:
                  normalizedValue = normalizer.normalizeStyleValue(prop, normalizedProp, normalizedValue, errors);
                  break;
              }
            }

            normalizedKeyframe[normalizedProp] = normalizedValue;
          });

          if (!isSameOffset) {
            normalizedKeyframes.push(normalizedKeyframe);
          }

          previousKeyframe = normalizedKeyframe;
          previousOffset = offset;
        });

        if (errors.length) {
          var LINE_START = '\n - ';
          throw new Error("Unable to animate due to the following errors:".concat(LINE_START).concat(errors.join(LINE_START)));
        }

        return normalizedKeyframes;
      }

      function listenOnPlayer(player, eventName, event, callback) {
        switch (eventName) {
          case 'start':
            player.onStart(function () {
              return callback(event && copyAnimationEvent(event, 'start', player));
            });
            break;

          case 'done':
            player.onDone(function () {
              return callback(event && copyAnimationEvent(event, 'done', player));
            });
            break;

          case 'destroy':
            player.onDestroy(function () {
              return callback(event && copyAnimationEvent(event, 'destroy', player));
            });
            break;
        }
      }

      function copyAnimationEvent(e, phaseName, player) {
        var totalTime = player.totalTime;
        var disabled = player.disabled ? true : false;
        var event = makeAnimationEvent(e.element, e.triggerName, e.fromState, e.toState, phaseName || e.phaseName, totalTime == undefined ? e.totalTime : totalTime, disabled);
        var data = e['_data'];

        if (data != null) {
          event['_data'] = data;
        }

        return event;
      }

      function makeAnimationEvent(element, triggerName, fromState, toState) {
        var phaseName = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : '';
        var totalTime = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 0;
        var disabled = arguments.length > 6 ? arguments[6] : undefined;
        return {
          element: element,
          triggerName: triggerName,
          fromState: fromState,
          toState: toState,
          phaseName: phaseName,
          totalTime: totalTime,
          disabled: !!disabled
        };
      }

      function getOrSetAsInMap(map, key, defaultValue) {
        var value;

        if (map instanceof Map) {
          value = map.get(key);

          if (!value) {
            map.set(key, value = defaultValue);
          }
        } else {
          value = map[key];

          if (!value) {
            value = map[key] = defaultValue;
          }
        }

        return value;
      }

      function parseTimelineCommand(command) {
        var separatorPos = command.indexOf(':');
        var id = command.substring(1, separatorPos);
        var action = command.substr(separatorPos + 1);
        return [id, action];
      }

      var _contains = function _contains(elm1, elm2) {
        return false;
      };

      var ɵ0 = _contains;

      var _matches = function _matches(element, selector) {
        return false;
      };

      var ɵ1 = _matches;

      var _query = function _query(element, selector, multi) {
        return [];
      };

      var ɵ2 = _query; // Define utility methods for browsers and platform-server(domino) where Element
      // and utility methods exist.

      var _isNode = isNode();

      if (_isNode || typeof Element !== 'undefined') {
        // this is well supported in all browsers
        _contains = function _contains(elm1, elm2) {
          return elm1.contains(elm2);
        };

        _matches = function () {
          if (_isNode || Element.prototype.matches) {
            return function (element, selector) {
              return element.matches(selector);
            };
          } else {
            var proto = Element.prototype;
            var fn = proto.matchesSelector || proto.mozMatchesSelector || proto.msMatchesSelector || proto.oMatchesSelector || proto.webkitMatchesSelector;

            if (fn) {
              return function (element, selector) {
                return fn.apply(element, [selector]);
              };
            } else {
              return _matches;
            }
          }
        }();

        _query = function _query(element, selector, multi) {
          var results = [];

          if (multi) {
            results.push.apply(results, _toConsumableArray(element.querySelectorAll(selector)));
          } else {
            var elm = element.querySelector(selector);

            if (elm) {
              results.push(elm);
            }
          }

          return results;
        };
      }

      function containsVendorPrefix(prop) {
        // Webkit is the only real popular vendor prefix nowadays
        // cc: http://shouldiprefix.com/
        return prop.substring(1, 6) == 'ebkit'; // webkit or Webkit
      }

      var _CACHED_BODY = null;
      var _IS_WEBKIT = false;

      function _validateStyleProperty(prop) {
        if (!_CACHED_BODY) {
          _CACHED_BODY = getBodyNode() || {};
          _IS_WEBKIT = _CACHED_BODY.style ? 'WebkitAppearance' in _CACHED_BODY.style : false;
        }

        var result = true;

        if (_CACHED_BODY.style && !containsVendorPrefix(prop)) {
          result = prop in _CACHED_BODY.style;

          if (!result && _IS_WEBKIT) {
            var camelProp = 'Webkit' + prop.charAt(0).toUpperCase() + prop.substr(1);
            result = camelProp in _CACHED_BODY.style;
          }
        }

        return result;
      }

      function getBodyNode() {
        if (typeof document != 'undefined') {
          return document.body;
        }

        return null;
      }

      var _matchesElement = _matches;
      var _containsElement = _contains;
      var invokeQuery = _query;

      function hypenatePropsObject(object) {
        var newObj = {};
        Object.keys(object).forEach(function (prop) {
          var newProp = prop.replace(/([a-z])([A-Z])/g, '$1-$2');
          newObj[newProp] = object[prop];
        });
        return newObj;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @publicApi
       */


      var NoopAnimationDriver = /*#__PURE__*/function () {
        function NoopAnimationDriver() {
          _classCallCheck2(this, NoopAnimationDriver);
        }

        _createClass2(NoopAnimationDriver, [{
          key: "validateStyleProperty",
          value: function validateStyleProperty(prop) {
            return _validateStyleProperty(prop);
          }
        }, {
          key: "matchesElement",
          value: function matchesElement(element, selector) {
            return _matchesElement(element, selector);
          }
        }, {
          key: "containsElement",
          value: function containsElement(elm1, elm2) {
            return _containsElement(elm1, elm2);
          }
        }, {
          key: "query",
          value: function query(element, selector, multi) {
            return invokeQuery(element, selector, multi);
          }
        }, {
          key: "computeStyle",
          value: function computeStyle(element, prop, defaultValue) {
            return defaultValue || '';
          }
        }, {
          key: "animate",
          value: function animate(element, keyframes, duration, delay, easing) {
            var previousPlayers = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : [];
            var scrubberAccessRequested = arguments.length > 6 ? arguments[6] : undefined;
            return new _angular_animations__WEBPACK_IMPORTED_MODULE_0__["NoopAnimationPlayer"](duration, delay);
          }
        }]);

        return NoopAnimationDriver;
      }();

      NoopAnimationDriver.ɵfac = function NoopAnimationDriver_Factory(t) {
        return new (t || NoopAnimationDriver)();
      };

      NoopAnimationDriver.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
        token: NoopAnimationDriver,
        factory: NoopAnimationDriver.ɵfac
      });
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](NoopAnimationDriver, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"]
        }], null, null);
      })();
      /**
       * @publicApi
       */


      var AnimationDriver = function AnimationDriver() {
        _classCallCheck2(this, AnimationDriver);
      };

      AnimationDriver.NOOP = new NoopAnimationDriver();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      var ONE_SECOND = 1000;
      var SUBSTITUTION_EXPR_START = '{{';
      var SUBSTITUTION_EXPR_END = '}}';
      var ENTER_CLASSNAME = 'ng-enter';
      var LEAVE_CLASSNAME = 'ng-leave';
      var ENTER_SELECTOR = '.ng-enter';
      var LEAVE_SELECTOR = '.ng-leave';
      var NG_TRIGGER_CLASSNAME = 'ng-trigger';
      var NG_TRIGGER_SELECTOR = '.ng-trigger';
      var NG_ANIMATING_CLASSNAME = 'ng-animating';
      var NG_ANIMATING_SELECTOR = '.ng-animating';

      function resolveTimingValue(value) {
        if (typeof value == 'number') return value;
        var matches = value.match(/^(-?[\.\d]+)(m?s)/);
        if (!matches || matches.length < 2) return 0;
        return _convertTimeValueToMS(parseFloat(matches[1]), matches[2]);
      }

      function _convertTimeValueToMS(value, unit) {
        switch (unit) {
          case 's':
            return value * ONE_SECOND;

          default:
            // ms or something else
            return value;
        }
      }

      function resolveTiming(timings, errors, allowNegativeValues) {
        return timings.hasOwnProperty('duration') ? timings : parseTimeExpression(timings, errors, allowNegativeValues);
      }

      function parseTimeExpression(exp, errors, allowNegativeValues) {
        var regex = /^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;
        var duration;
        var delay = 0;
        var easing = '';

        if (typeof exp === 'string') {
          var matches = exp.match(regex);

          if (matches === null) {
            errors.push("The provided timing value \"".concat(exp, "\" is invalid."));
            return {
              duration: 0,
              delay: 0,
              easing: ''
            };
          }

          duration = _convertTimeValueToMS(parseFloat(matches[1]), matches[2]);
          var delayMatch = matches[3];

          if (delayMatch != null) {
            delay = _convertTimeValueToMS(parseFloat(delayMatch), matches[4]);
          }

          var easingVal = matches[5];

          if (easingVal) {
            easing = easingVal;
          }
        } else {
          duration = exp;
        }

        if (!allowNegativeValues) {
          var containsErrors = false;
          var startIndex = errors.length;

          if (duration < 0) {
            errors.push("Duration values below 0 are not allowed for this animation step.");
            containsErrors = true;
          }

          if (delay < 0) {
            errors.push("Delay values below 0 are not allowed for this animation step.");
            containsErrors = true;
          }

          if (containsErrors) {
            errors.splice(startIndex, 0, "The provided timing value \"".concat(exp, "\" is invalid."));
          }
        }

        return {
          duration: duration,
          delay: delay,
          easing: easing
        };
      }

      function copyObj(obj) {
        var destination = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
        Object.keys(obj).forEach(function (prop) {
          destination[prop] = obj[prop];
        });
        return destination;
      }

      function normalizeStyles(styles) {
        var normalizedStyles = {};

        if (Array.isArray(styles)) {
          styles.forEach(function (data) {
            return copyStyles(data, false, normalizedStyles);
          });
        } else {
          copyStyles(styles, false, normalizedStyles);
        }

        return normalizedStyles;
      }

      function copyStyles(styles, readPrototype) {
        var destination = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};

        if (readPrototype) {
          // we make use of a for-in loop so that the
          // prototypically inherited properties are
          // revealed from the backFill map
          for (var prop in styles) {
            destination[prop] = styles[prop];
          }
        } else {
          copyObj(styles, destination);
        }

        return destination;
      }

      function getStyleAttributeString(element, key, value) {
        // Return the key-value pair string to be added to the style attribute for the
        // given CSS style key.
        if (value) {
          return key + ':' + value + ';';
        } else {
          return '';
        }
      }

      function writeStyleAttribute(element) {
        // Read the style property of the element and manually reflect it to the
        // style attribute. This is needed because Domino on platform-server doesn't
        // understand the full set of allowed CSS properties and doesn't reflect some
        // of them automatically.
        var styleAttrValue = '';

        for (var i = 0; i < element.style.length; i++) {
          var key = element.style.item(i);
          styleAttrValue += getStyleAttributeString(element, key, element.style.getPropertyValue(key));
        }

        for (var _key70 in element.style) {
          // Skip internal Domino properties that don't need to be reflected.
          if (!element.style.hasOwnProperty(_key70) || _key70.startsWith('_')) {
            continue;
          }

          var dashKey = camelCaseToDashCase(_key70);
          styleAttrValue += getStyleAttributeString(element, dashKey, element.style[_key70]);
        }

        element.setAttribute('style', styleAttrValue);
      }

      function setStyles(element, styles, formerStyles) {
        if (element['style']) {
          Object.keys(styles).forEach(function (prop) {
            var camelProp = dashCaseToCamelCase(prop);

            if (formerStyles && !formerStyles.hasOwnProperty(prop)) {
              formerStyles[prop] = element.style[camelProp];
            }

            element.style[camelProp] = styles[prop];
          }); // On the server set the 'style' attribute since it's not automatically reflected.

          if (isNode()) {
            writeStyleAttribute(element);
          }
        }
      }

      function eraseStyles(element, styles) {
        if (element['style']) {
          Object.keys(styles).forEach(function (prop) {
            var camelProp = dashCaseToCamelCase(prop);
            element.style[camelProp] = '';
          }); // On the server set the 'style' attribute since it's not automatically reflected.

          if (isNode()) {
            writeStyleAttribute(element);
          }
        }
      }

      function normalizeAnimationEntry(steps) {
        if (Array.isArray(steps)) {
          if (steps.length == 1) return steps[0];
          return Object(_angular_animations__WEBPACK_IMPORTED_MODULE_0__["sequence"])(steps);
        }

        return steps;
      }

      function validateStyleParams(value, options, errors) {
        var params = options.params || {};
        var matches = extractStyleParams(value);

        if (matches.length) {
          matches.forEach(function (varName) {
            if (!params.hasOwnProperty(varName)) {
              errors.push("Unable to resolve the local animation param ".concat(varName, " in the given list of values"));
            }
          });
        }
      }

      var PARAM_REGEX = new RegExp("".concat(SUBSTITUTION_EXPR_START, "\\s*(.+?)\\s*").concat(SUBSTITUTION_EXPR_END), 'g');

      function extractStyleParams(value) {
        var params = [];

        if (typeof value === 'string') {
          var match;

          while (match = PARAM_REGEX.exec(value)) {
            params.push(match[1]);
          }

          PARAM_REGEX.lastIndex = 0;
        }

        return params;
      }

      function interpolateParams(value, params, errors) {
        var original = value.toString();
        var str = original.replace(PARAM_REGEX, function (_, varName) {
          var localVal = params[varName]; // this means that the value was never overridden by the data passed in by the user

          if (!params.hasOwnProperty(varName)) {
            errors.push("Please provide a value for the animation param ".concat(varName));
            localVal = '';
          }

          return localVal.toString();
        }); // we do this to assert that numeric values stay as they are

        return str == original ? value : str;
      }

      function iteratorToArray(iterator) {
        var arr = [];
        var item = iterator.next();

        while (!item.done) {
          arr.push(item.value);
          item = iterator.next();
        }

        return arr;
      }

      function mergeAnimationOptions(source, destination) {
        if (source.params) {
          var p0 = source.params;

          if (!destination.params) {
            destination.params = {};
          }

          var p1 = destination.params;
          Object.keys(p0).forEach(function (param) {
            if (!p1.hasOwnProperty(param)) {
              p1[param] = p0[param];
            }
          });
        }

        return destination;
      }

      var DASH_CASE_REGEXP = /-+([a-z0-9])/g;

      function dashCaseToCamelCase(input) {
        return input.replace(DASH_CASE_REGEXP, function () {
          for (var _len68 = arguments.length, m = new Array(_len68), _key71 = 0; _key71 < _len68; _key71++) {
            m[_key71] = arguments[_key71];
          }

          return m[1].toUpperCase();
        });
      }

      function camelCaseToDashCase(input) {
        return input.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();
      }

      function allowPreviousPlayerStylesMerge(duration, delay) {
        return duration === 0 || delay === 0;
      }

      function balancePreviousStylesIntoKeyframes(element, keyframes, previousStyles) {
        var previousStyleProps = Object.keys(previousStyles);

        if (previousStyleProps.length && keyframes.length) {
          var startingKeyframe = keyframes[0];
          var missingStyleProps = [];
          previousStyleProps.forEach(function (prop) {
            if (!startingKeyframe.hasOwnProperty(prop)) {
              missingStyleProps.push(prop);
            }

            startingKeyframe[prop] = previousStyles[prop];
          });

          if (missingStyleProps.length) {
            var _loop9 = function _loop9() {
              var kf = keyframes[i];
              missingStyleProps.forEach(function (prop) {
                kf[prop] = computeStyle(element, prop);
              });
            };

            // tslint:disable-next-line
            for (var i = 1; i < keyframes.length; i++) {
              _loop9();
            }
          }
        }

        return keyframes;
      }

      function visitDslNode(visitor, node, context) {
        switch (node.type) {
          case 7
          /* Trigger */
          :
            return visitor.visitTrigger(node, context);

          case 0
          /* State */
          :
            return visitor.visitState(node, context);

          case 1
          /* Transition */
          :
            return visitor.visitTransition(node, context);

          case 2
          /* Sequence */
          :
            return visitor.visitSequence(node, context);

          case 3
          /* Group */
          :
            return visitor.visitGroup(node, context);

          case 4
          /* Animate */
          :
            return visitor.visitAnimate(node, context);

          case 5
          /* Keyframes */
          :
            return visitor.visitKeyframes(node, context);

          case 6
          /* Style */
          :
            return visitor.visitStyle(node, context);

          case 8
          /* Reference */
          :
            return visitor.visitReference(node, context);

          case 9
          /* AnimateChild */
          :
            return visitor.visitAnimateChild(node, context);

          case 10
          /* AnimateRef */
          :
            return visitor.visitAnimateRef(node, context);

          case 11
          /* Query */
          :
            return visitor.visitQuery(node, context);

          case 12
          /* Stagger */
          :
            return visitor.visitStagger(node, context);

          default:
            throw new Error("Unable to resolve animation metadata node #".concat(node.type));
        }
      }

      function computeStyle(element, prop) {
        return window.getComputedStyle(element)[prop];
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var ANY_STATE = '*';

      function parseTransitionExpr(transitionValue, errors) {
        var expressions = [];

        if (typeof transitionValue == 'string') {
          transitionValue.split(/\s*,\s*/).forEach(function (str) {
            return parseInnerTransitionStr(str, expressions, errors);
          });
        } else {
          expressions.push(transitionValue);
        }

        return expressions;
      }

      function parseInnerTransitionStr(eventStr, expressions, errors) {
        if (eventStr[0] == ':') {
          var result = parseAnimationAlias(eventStr, errors);

          if (typeof result == 'function') {
            expressions.push(result);
            return;
          }

          eventStr = result;
        }

        var match = eventStr.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);

        if (match == null || match.length < 4) {
          errors.push("The provided transition expression \"".concat(eventStr, "\" is not supported"));
          return expressions;
        }

        var fromState = match[1];
        var separator = match[2];
        var toState = match[3];
        expressions.push(makeLambdaFromStates(fromState, toState));
        var isFullAnyStateExpr = fromState == ANY_STATE && toState == ANY_STATE;

        if (separator[0] == '<' && !isFullAnyStateExpr) {
          expressions.push(makeLambdaFromStates(toState, fromState));
        }
      }

      function parseAnimationAlias(alias, errors) {
        switch (alias) {
          case ':enter':
            return 'void => *';

          case ':leave':
            return '* => void';

          case ':increment':
            return function (fromState, toState) {
              return parseFloat(toState) > parseFloat(fromState);
            };

          case ':decrement':
            return function (fromState, toState) {
              return parseFloat(toState) < parseFloat(fromState);
            };

          default:
            errors.push("The transition alias value \"".concat(alias, "\" is not supported"));
            return '* => *';
        }
      } // DO NOT REFACTOR ... keep the follow set instantiations
      // with the values intact (closure compiler for some reason
      // removes follow-up lines that add the values outside of
      // the constructor...


      var TRUE_BOOLEAN_VALUES = new Set(['true', '1']);
      var FALSE_BOOLEAN_VALUES = new Set(['false', '0']);

      function makeLambdaFromStates(lhs, rhs) {
        var LHS_MATCH_BOOLEAN = TRUE_BOOLEAN_VALUES.has(lhs) || FALSE_BOOLEAN_VALUES.has(lhs);
        var RHS_MATCH_BOOLEAN = TRUE_BOOLEAN_VALUES.has(rhs) || FALSE_BOOLEAN_VALUES.has(rhs);
        return function (fromState, toState) {
          var lhsMatch = lhs == ANY_STATE || lhs == fromState;
          var rhsMatch = rhs == ANY_STATE || rhs == toState;

          if (!lhsMatch && LHS_MATCH_BOOLEAN && typeof fromState === 'boolean') {
            lhsMatch = fromState ? TRUE_BOOLEAN_VALUES.has(lhs) : FALSE_BOOLEAN_VALUES.has(lhs);
          }

          if (!rhsMatch && RHS_MATCH_BOOLEAN && typeof toState === 'boolean') {
            rhsMatch = toState ? TRUE_BOOLEAN_VALUES.has(rhs) : FALSE_BOOLEAN_VALUES.has(rhs);
          }

          return lhsMatch && rhsMatch;
        };
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var SELF_TOKEN = ':self';
      var SELF_TOKEN_REGEX = new RegExp("s*".concat(SELF_TOKEN, "s*,?"), 'g');
      /*
       * [Validation]
       * The visitor code below will traverse the animation AST generated by the animation verb functions
       * (the output is a tree of objects) and attempt to perform a series of validations on the data. The
       * following corner-cases will be validated:
       *
       * 1. Overlap of animations
       * Given that a CSS property cannot be animated in more than one place at the same time, it's
       * important that this behavior is detected and validated. The way in which this occurs is that
       * each time a style property is examined, a string-map containing the property will be updated with
       * the start and end times for when the property is used within an animation step.
       *
       * If there are two or more parallel animations that are currently running (these are invoked by the
       * group()) on the same element then the validator will throw an error. Since the start/end timing
       * values are collected for each property then if the current animation step is animating the same
       * property and its timing values fall anywhere into the window of time that the property is
       * currently being animated within then this is what causes an error.
       *
       * 2. Timing values
       * The validator will validate to see if a timing value of `duration delay easing` or
       * `durationNumber` is valid or not.
       *
       * (note that upon validation the code below will replace the timing data with an object containing
       * {duration,delay,easing}.
       *
       * 3. Offset Validation
       * Each of the style() calls are allowed to have an offset value when placed inside of keyframes().
       * Offsets within keyframes() are considered valid when:
       *
       *   - No offsets are used at all
       *   - Each style() entry contains an offset value
       *   - Each offset is between 0 and 1
       *   - Each offset is greater to or equal than the previous one
       *
       * Otherwise an error will be thrown.
       */

      function buildAnimationAst(driver, metadata, errors) {
        return new AnimationAstBuilderVisitor(driver).build(metadata, errors);
      }

      var ROOT_SELECTOR = '';

      var AnimationAstBuilderVisitor = /*#__PURE__*/function () {
        function AnimationAstBuilderVisitor(_driver) {
          _classCallCheck2(this, AnimationAstBuilderVisitor);

          this._driver = _driver;
        }

        _createClass2(AnimationAstBuilderVisitor, [{
          key: "build",
          value: function build(metadata, errors) {
            var context = new AnimationAstBuilderContext(errors);

            this._resetContextStyleTimingState(context);

            return visitDslNode(this, normalizeAnimationEntry(metadata), context);
          }
        }, {
          key: "_resetContextStyleTimingState",
          value: function _resetContextStyleTimingState(context) {
            context.currentQuerySelector = ROOT_SELECTOR;
            context.collectedStyles = {};
            context.collectedStyles[ROOT_SELECTOR] = {};
            context.currentTime = 0;
          }
        }, {
          key: "visitTrigger",
          value: function visitTrigger(metadata, context) {
            var _this742 = this;

            var queryCount = context.queryCount = 0;
            var depCount = context.depCount = 0;
            var states = [];
            var transitions = [];

            if (metadata.name.charAt(0) == '@') {
              context.errors.push('animation triggers cannot be prefixed with an `@` sign (e.g. trigger(\'@foo\', [...]))');
            }

            metadata.definitions.forEach(function (def) {
              _this742._resetContextStyleTimingState(context);

              if (def.type == 0
              /* State */
              ) {
                var stateDef = def;
                var name = stateDef.name;
                name.toString().split(/\s*,\s*/).forEach(function (n) {
                  stateDef.name = n;
                  states.push(_this742.visitState(stateDef, context));
                });
                stateDef.name = name;
              } else if (def.type == 1
              /* Transition */
              ) {
                var transition = _this742.visitTransition(def, context);

                queryCount += transition.queryCount;
                depCount += transition.depCount;
                transitions.push(transition);
              } else {
                context.errors.push('only state() and transition() definitions can sit inside of a trigger()');
              }
            });
            return {
              type: 7
              /* Trigger */
              ,
              name: metadata.name,
              states: states,
              transitions: transitions,
              queryCount: queryCount,
              depCount: depCount,
              options: null
            };
          }
        }, {
          key: "visitState",
          value: function visitState(metadata, context) {
            var styleAst = this.visitStyle(metadata.styles, context);
            var astParams = metadata.options && metadata.options.params || null;

            if (styleAst.containsDynamicStyles) {
              var missingSubs = new Set();
              var params = astParams || {};
              styleAst.styles.forEach(function (value) {
                if (isObject(value)) {
                  var stylesObj = value;
                  Object.keys(stylesObj).forEach(function (prop) {
                    extractStyleParams(stylesObj[prop]).forEach(function (sub) {
                      if (!params.hasOwnProperty(sub)) {
                        missingSubs.add(sub);
                      }
                    });
                  });
                }
              });

              if (missingSubs.size) {
                var missingSubsArr = iteratorToArray(missingSubs.values());
                context.errors.push("state(\"".concat(metadata.name, "\", ...) must define default values for all the following style substitutions: ").concat(missingSubsArr.join(', ')));
              }
            }

            return {
              type: 0
              /* State */
              ,
              name: metadata.name,
              style: styleAst,
              options: astParams ? {
                params: astParams
              } : null
            };
          }
        }, {
          key: "visitTransition",
          value: function visitTransition(metadata, context) {
            context.queryCount = 0;
            context.depCount = 0;
            var animation = visitDslNode(this, normalizeAnimationEntry(metadata.animation), context);
            var matchers = parseTransitionExpr(metadata.expr, context.errors);
            return {
              type: 1
              /* Transition */
              ,
              matchers: matchers,
              animation: animation,
              queryCount: context.queryCount,
              depCount: context.depCount,
              options: normalizeAnimationOptions(metadata.options)
            };
          }
        }, {
          key: "visitSequence",
          value: function visitSequence(metadata, context) {
            var _this743 = this;

            return {
              type: 2
              /* Sequence */
              ,
              steps: metadata.steps.map(function (s) {
                return visitDslNode(_this743, s, context);
              }),
              options: normalizeAnimationOptions(metadata.options)
            };
          }
        }, {
          key: "visitGroup",
          value: function visitGroup(metadata, context) {
            var _this744 = this;

            var currentTime = context.currentTime;
            var furthestTime = 0;
            var steps = metadata.steps.map(function (step) {
              context.currentTime = currentTime;
              var innerAst = visitDslNode(_this744, step, context);
              furthestTime = Math.max(furthestTime, context.currentTime);
              return innerAst;
            });
            context.currentTime = furthestTime;
            return {
              type: 3
              /* Group */
              ,
              steps: steps,
              options: normalizeAnimationOptions(metadata.options)
            };
          }
        }, {
          key: "visitAnimate",
          value: function visitAnimate(metadata, context) {
            var timingAst = constructTimingAst(metadata.timings, context.errors);
            context.currentAnimateTimings = timingAst;
            var styleAst;
            var styleMetadata = metadata.styles ? metadata.styles : Object(_angular_animations__WEBPACK_IMPORTED_MODULE_0__["style"])({});

            if (styleMetadata.type == 5
            /* Keyframes */
            ) {
              styleAst = this.visitKeyframes(styleMetadata, context);
            } else {
              var _styleMetadata = metadata.styles;
              var isEmpty = false;

              if (!_styleMetadata) {
                isEmpty = true;
                var newStyleData = {};

                if (timingAst.easing) {
                  newStyleData['easing'] = timingAst.easing;
                }

                _styleMetadata = Object(_angular_animations__WEBPACK_IMPORTED_MODULE_0__["style"])(newStyleData);
              }

              context.currentTime += timingAst.duration + timingAst.delay;

              var _styleAst = this.visitStyle(_styleMetadata, context);

              _styleAst.isEmptyStep = isEmpty;
              styleAst = _styleAst;
            }

            context.currentAnimateTimings = null;
            return {
              type: 4
              /* Animate */
              ,
              timings: timingAst,
              style: styleAst,
              options: null
            };
          }
        }, {
          key: "visitStyle",
          value: function visitStyle(metadata, context) {
            var ast = this._makeStyleAst(metadata, context);

            this._validateStyleAst(ast, context);

            return ast;
          }
        }, {
          key: "_makeStyleAst",
          value: function _makeStyleAst(metadata, context) {
            var styles = [];

            if (Array.isArray(metadata.styles)) {
              metadata.styles.forEach(function (styleTuple) {
                if (typeof styleTuple == 'string') {
                  if (styleTuple == _angular_animations__WEBPACK_IMPORTED_MODULE_0__["AUTO_STYLE"]) {
                    styles.push(styleTuple);
                  } else {
                    context.errors.push("The provided style string value ".concat(styleTuple, " is not allowed."));
                  }
                } else {
                  styles.push(styleTuple);
                }
              });
            } else {
              styles.push(metadata.styles);
            }

            var containsDynamicStyles = false;
            var collectedEasing = null;
            styles.forEach(function (styleData) {
              if (isObject(styleData)) {
                var styleMap = styleData;
                var easing = styleMap['easing'];

                if (easing) {
                  collectedEasing = easing;
                  delete styleMap['easing'];
                }

                if (!containsDynamicStyles) {
                  for (var prop in styleMap) {
                    var value = styleMap[prop];

                    if (value.toString().indexOf(SUBSTITUTION_EXPR_START) >= 0) {
                      containsDynamicStyles = true;
                      break;
                    }
                  }
                }
              }
            });
            return {
              type: 6
              /* Style */
              ,
              styles: styles,
              easing: collectedEasing,
              offset: metadata.offset,
              containsDynamicStyles: containsDynamicStyles,
              options: null
            };
          }
        }, {
          key: "_validateStyleAst",
          value: function _validateStyleAst(ast, context) {
            var _this745 = this;

            var timings = context.currentAnimateTimings;
            var endTime = context.currentTime;
            var startTime = context.currentTime;

            if (timings && startTime > 0) {
              startTime -= timings.duration + timings.delay;
            }

            ast.styles.forEach(function (tuple) {
              if (typeof tuple == 'string') return;
              Object.keys(tuple).forEach(function (prop) {
                if (!_this745._driver.validateStyleProperty(prop)) {
                  context.errors.push("The provided animation property \"".concat(prop, "\" is not a supported CSS property for animations"));
                  return;
                }

                var collectedStyles = context.collectedStyles[context.currentQuerySelector];
                var collectedEntry = collectedStyles[prop];
                var updateCollectedStyle = true;

                if (collectedEntry) {
                  if (startTime != endTime && startTime >= collectedEntry.startTime && endTime <= collectedEntry.endTime) {
                    context.errors.push("The CSS property \"".concat(prop, "\" that exists between the times of \"").concat(collectedEntry.startTime, "ms\" and \"").concat(collectedEntry.endTime, "ms\" is also being animated in a parallel animation between the times of \"").concat(startTime, "ms\" and \"").concat(endTime, "ms\""));
                    updateCollectedStyle = false;
                  } // we always choose the smaller start time value since we
                  // want to have a record of the entire animation window where
                  // the style property is being animated in between


                  startTime = collectedEntry.startTime;
                }

                if (updateCollectedStyle) {
                  collectedStyles[prop] = {
                    startTime: startTime,
                    endTime: endTime
                  };
                }

                if (context.options) {
                  validateStyleParams(tuple[prop], context.options, context.errors);
                }
              });
            });
          }
        }, {
          key: "visitKeyframes",
          value: function visitKeyframes(metadata, context) {
            var _this746 = this;

            var ast = {
              type: 5
              /* Keyframes */
              ,
              styles: [],
              options: null
            };

            if (!context.currentAnimateTimings) {
              context.errors.push("keyframes() must be placed inside of a call to animate()");
              return ast;
            }

            var MAX_KEYFRAME_OFFSET = 1;
            var totalKeyframesWithOffsets = 0;
            var offsets = [];
            var offsetsOutOfOrder = false;
            var keyframesOutOfRange = false;
            var previousOffset = 0;
            var keyframes = metadata.steps.map(function (styles) {
              var style = _this746._makeStyleAst(styles, context);

              var offsetVal = style.offset != null ? style.offset : consumeOffset(style.styles);
              var offset = 0;

              if (offsetVal != null) {
                totalKeyframesWithOffsets++;
                offset = style.offset = offsetVal;
              }

              keyframesOutOfRange = keyframesOutOfRange || offset < 0 || offset > 1;
              offsetsOutOfOrder = offsetsOutOfOrder || offset < previousOffset;
              previousOffset = offset;
              offsets.push(offset);
              return style;
            });

            if (keyframesOutOfRange) {
              context.errors.push("Please ensure that all keyframe offsets are between 0 and 1");
            }

            if (offsetsOutOfOrder) {
              context.errors.push("Please ensure that all keyframe offsets are in order");
            }

            var length = metadata.steps.length;
            var generatedOffset = 0;

            if (totalKeyframesWithOffsets > 0 && totalKeyframesWithOffsets < length) {
              context.errors.push("Not all style() steps within the declared keyframes() contain offsets");
            } else if (totalKeyframesWithOffsets == 0) {
              generatedOffset = MAX_KEYFRAME_OFFSET / (length - 1);
            }

            var limit = length - 1;
            var currentTime = context.currentTime;
            var currentAnimateTimings = context.currentAnimateTimings;
            var animateDuration = currentAnimateTimings.duration;
            keyframes.forEach(function (kf, i) {
              var offset = generatedOffset > 0 ? i == limit ? 1 : generatedOffset * i : offsets[i];
              var durationUpToThisFrame = offset * animateDuration;
              context.currentTime = currentTime + currentAnimateTimings.delay + durationUpToThisFrame;
              currentAnimateTimings.duration = durationUpToThisFrame;

              _this746._validateStyleAst(kf, context);

              kf.offset = offset;
              ast.styles.push(kf);
            });
            return ast;
          }
        }, {
          key: "visitReference",
          value: function visitReference(metadata, context) {
            return {
              type: 8
              /* Reference */
              ,
              animation: visitDslNode(this, normalizeAnimationEntry(metadata.animation), context),
              options: normalizeAnimationOptions(metadata.options)
            };
          }
        }, {
          key: "visitAnimateChild",
          value: function visitAnimateChild(metadata, context) {
            context.depCount++;
            return {
              type: 9
              /* AnimateChild */
              ,
              options: normalizeAnimationOptions(metadata.options)
            };
          }
        }, {
          key: "visitAnimateRef",
          value: function visitAnimateRef(metadata, context) {
            return {
              type: 10
              /* AnimateRef */
              ,
              animation: this.visitReference(metadata.animation, context),
              options: normalizeAnimationOptions(metadata.options)
            };
          }
        }, {
          key: "visitQuery",
          value: function visitQuery(metadata, context) {
            var parentSelector = context.currentQuerySelector;
            var options = metadata.options || {};
            context.queryCount++;
            context.currentQuery = metadata;

            var _normalizeSelector = normalizeSelector(metadata.selector),
                _normalizeSelector2 = _slicedToArray(_normalizeSelector, 2),
                selector = _normalizeSelector2[0],
                includeSelf = _normalizeSelector2[1];

            context.currentQuerySelector = parentSelector.length ? parentSelector + ' ' + selector : selector;
            getOrSetAsInMap(context.collectedStyles, context.currentQuerySelector, {});
            var animation = visitDslNode(this, normalizeAnimationEntry(metadata.animation), context);
            context.currentQuery = null;
            context.currentQuerySelector = parentSelector;
            return {
              type: 11
              /* Query */
              ,
              selector: selector,
              limit: options.limit || 0,
              optional: !!options.optional,
              includeSelf: includeSelf,
              animation: animation,
              originalSelector: metadata.selector,
              options: normalizeAnimationOptions(metadata.options)
            };
          }
        }, {
          key: "visitStagger",
          value: function visitStagger(metadata, context) {
            if (!context.currentQuery) {
              context.errors.push("stagger() can only be used inside of query()");
            }

            var timings = metadata.timings === 'full' ? {
              duration: 0,
              delay: 0,
              easing: 'full'
            } : resolveTiming(metadata.timings, context.errors, true);
            return {
              type: 12
              /* Stagger */
              ,
              animation: visitDslNode(this, normalizeAnimationEntry(metadata.animation), context),
              timings: timings,
              options: null
            };
          }
        }]);

        return AnimationAstBuilderVisitor;
      }();

      function normalizeSelector(selector) {
        var hasAmpersand = selector.split(/\s*,\s*/).find(function (token) {
          return token == SELF_TOKEN;
        }) ? true : false;

        if (hasAmpersand) {
          selector = selector.replace(SELF_TOKEN_REGEX, '');
        } // the :enter and :leave selectors are filled in at runtime during timeline building


        selector = selector.replace(/@\*/g, NG_TRIGGER_SELECTOR).replace(/@\w+/g, function (match) {
          return NG_TRIGGER_SELECTOR + '-' + match.substr(1);
        }).replace(/:animating/g, NG_ANIMATING_SELECTOR);
        return [selector, hasAmpersand];
      }

      function normalizeParams(obj) {
        return obj ? copyObj(obj) : null;
      }

      var AnimationAstBuilderContext = function AnimationAstBuilderContext(errors) {
        _classCallCheck2(this, AnimationAstBuilderContext);

        this.errors = errors;
        this.queryCount = 0;
        this.depCount = 0;
        this.currentTransition = null;
        this.currentQuery = null;
        this.currentQuerySelector = null;
        this.currentAnimateTimings = null;
        this.currentTime = 0;
        this.collectedStyles = {};
        this.options = null;
      };

      function consumeOffset(styles) {
        if (typeof styles == 'string') return null;
        var offset = null;

        if (Array.isArray(styles)) {
          styles.forEach(function (styleTuple) {
            if (isObject(styleTuple) && styleTuple.hasOwnProperty('offset')) {
              var obj = styleTuple;
              offset = parseFloat(obj['offset']);
              delete obj['offset'];
            }
          });
        } else if (isObject(styles) && styles.hasOwnProperty('offset')) {
          var obj = styles;
          offset = parseFloat(obj['offset']);
          delete obj['offset'];
        }

        return offset;
      }

      function isObject(value) {
        return !Array.isArray(value) && typeof value == 'object';
      }

      function constructTimingAst(value, errors) {
        var timings = null;

        if (value.hasOwnProperty('duration')) {
          timings = value;
        } else if (typeof value == 'number') {
          var duration = resolveTiming(value, errors).duration;
          return makeTimingAst(duration, 0, '');
        }

        var strValue = value;
        var isDynamic = strValue.split(/\s+/).some(function (v) {
          return v.charAt(0) == '{' && v.charAt(1) == '{';
        });

        if (isDynamic) {
          var ast = makeTimingAst(0, 0, '');
          ast.dynamic = true;
          ast.strValue = strValue;
          return ast;
        }

        timings = timings || resolveTiming(strValue, errors);
        return makeTimingAst(timings.duration, timings.delay, timings.easing);
      }

      function normalizeAnimationOptions(options) {
        if (options) {
          options = copyObj(options);

          if (options['params']) {
            options['params'] = normalizeParams(options['params']);
          }
        } else {
          options = {};
        }

        return options;
      }

      function makeTimingAst(duration, delay, easing) {
        return {
          duration: duration,
          delay: delay,
          easing: easing
        };
      }

      function createTimelineInstruction(element, keyframes, preStyleProps, postStyleProps, duration, delay) {
        var easing = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : null;
        var subTimeline = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : false;
        return {
          type: 1
          /* TimelineAnimation */
          ,
          element: element,
          keyframes: keyframes,
          preStyleProps: preStyleProps,
          postStyleProps: postStyleProps,
          duration: duration,
          delay: delay,
          totalTime: duration + delay,
          easing: easing,
          subTimeline: subTimeline
        };
      }

      var ElementInstructionMap = /*#__PURE__*/function () {
        function ElementInstructionMap() {
          _classCallCheck2(this, ElementInstructionMap);

          this._map = new Map();
        }

        _createClass2(ElementInstructionMap, [{
          key: "consume",
          value: function consume(element) {
            var instructions = this._map.get(element);

            if (instructions) {
              this._map["delete"](element);
            } else {
              instructions = [];
            }

            return instructions;
          }
        }, {
          key: "append",
          value: function append(element, instructions) {
            var _existingInstructions;

            var existingInstructions = this._map.get(element);

            if (!existingInstructions) {
              this._map.set(element, existingInstructions = []);
            }

            (_existingInstructions = existingInstructions).push.apply(_existingInstructions, _toConsumableArray(instructions));
          }
        }, {
          key: "has",
          value: function has(element) {
            return this._map.has(element);
          }
        }, {
          key: "clear",
          value: function clear() {
            this._map.clear();
          }
        }]);

        return ElementInstructionMap;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var ONE_FRAME_IN_MILLISECONDS = 1;
      var ENTER_TOKEN = ':enter';
      var ENTER_TOKEN_REGEX = new RegExp(ENTER_TOKEN, 'g');
      var LEAVE_TOKEN = ':leave';
      var LEAVE_TOKEN_REGEX = new RegExp(LEAVE_TOKEN, 'g');
      /*
       * The code within this file aims to generate web-animations-compatible keyframes from Angular's
       * animation DSL code.
       *
       * The code below will be converted from:
       *
       * ```
       * sequence([
       *   style({ opacity: 0 }),
       *   animate(1000, style({ opacity: 0 }))
       * ])
       * ```
       *
       * To:
       * ```
       * keyframes = [{ opacity: 0, offset: 0 }, { opacity: 1, offset: 1 }]
       * duration = 1000
       * delay = 0
       * easing = ''
       * ```
       *
       * For this operation to cover the combination of animation verbs (style, animate, group, etc...) a
       * combination of prototypical inheritance, AST traversal and merge-sort-like algorithms are used.
       *
       * [AST Traversal]
       * Each of the animation verbs, when executed, will return an string-map object representing what
       * type of action it is (style, animate, group, etc...) and the data associated with it. This means
       * that when functional composition mix of these functions is evaluated (like in the example above)
       * then it will end up producing a tree of objects representing the animation itself.
       *
       * When this animation object tree is processed by the visitor code below it will visit each of the
       * verb statements within the visitor. And during each visit it will build the context of the
       * animation keyframes by interacting with the `TimelineBuilder`.
       *
       * [TimelineBuilder]
       * This class is responsible for tracking the styles and building a series of keyframe objects for a
       * timeline between a start and end time. The builder starts off with an initial timeline and each
       * time the AST comes across a `group()`, `keyframes()` or a combination of the two wihtin a
       * `sequence()` then it will generate a sub timeline for each step as well as a new one after
       * they are complete.
       *
       * As the AST is traversed, the timing state on each of the timelines will be incremented. If a sub
       * timeline was created (based on one of the cases above) then the parent timeline will attempt to
       * merge the styles used within the sub timelines into itself (only with group() this will happen).
       * This happens with a merge operation (much like how the merge works in mergesort) and it will only
       * copy the most recently used styles from the sub timelines into the parent timeline. This ensures
       * that if the styles are used later on in another phase of the animation then they will be the most
       * up-to-date values.
       *
       * [How Missing Styles Are Updated]
       * Each timeline has a `backFill` property which is responsible for filling in new styles into
       * already processed keyframes if a new style shows up later within the animation sequence.
       *
       * ```
       * sequence([
       *   style({ width: 0 }),
       *   animate(1000, style({ width: 100 })),
       *   animate(1000, style({ width: 200 })),
       *   animate(1000, style({ width: 300 }))
       *   animate(1000, style({ width: 400, height: 400 })) // notice how `height` doesn't exist anywhere
       * else
       * ])
       * ```
       *
       * What is happening here is that the `height` value is added later in the sequence, but is missing
       * from all previous animation steps. Therefore when a keyframe is created it would also be missing
       * from all previous keyframes up until where it is first used. For the timeline keyframe generation
       * to properly fill in the style it will place the previous value (the value from the parent
       * timeline) or a default value of `*` into the backFill object. Given that each of the keyframe
       * styles are objects that prototypically inhert from the backFill object, this means that if a
       * value is added into the backFill then it will automatically propagate any missing values to all
       * keyframes. Therefore the missing `height` value will be properly filled into the already
       * processed keyframes.
       *
       * When a sub-timeline is created it will have its own backFill property. This is done so that
       * styles present within the sub-timeline do not accidentally seep into the previous/future timeline
       * keyframes
       *
       * (For prototypically-inherited contents to be detected a `for(i in obj)` loop must be used.)
       *
       * [Validation]
       * The code in this file is not responsible for validation. That functionality happens with within
       * the `AnimationValidatorVisitor` code.
       */

      function buildAnimationTimelines(driver, rootElement, ast, enterClassName, leaveClassName) {
        var startingStyles = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : {};
        var finalStyles = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : {};
        var options = arguments.length > 7 ? arguments[7] : undefined;
        var subInstructions = arguments.length > 8 ? arguments[8] : undefined;
        var errors = arguments.length > 9 && arguments[9] !== undefined ? arguments[9] : [];
        return new AnimationTimelineBuilderVisitor().buildKeyframes(driver, rootElement, ast, enterClassName, leaveClassName, startingStyles, finalStyles, options, subInstructions, errors);
      }

      var AnimationTimelineBuilderVisitor = /*#__PURE__*/function () {
        function AnimationTimelineBuilderVisitor() {
          _classCallCheck2(this, AnimationTimelineBuilderVisitor);
        }

        _createClass2(AnimationTimelineBuilderVisitor, [{
          key: "buildKeyframes",
          value: function buildKeyframes(driver, rootElement, ast, enterClassName, leaveClassName, startingStyles, finalStyles, options, subInstructions) {
            var errors = arguments.length > 9 && arguments[9] !== undefined ? arguments[9] : [];
            subInstructions = subInstructions || new ElementInstructionMap();
            var context = new AnimationTimelineContext(driver, rootElement, subInstructions, enterClassName, leaveClassName, errors, []);
            context.options = options;
            context.currentTimeline.setStyles([startingStyles], null, context.errors, options);
            visitDslNode(this, ast, context); // this checks to see if an actual animation happened

            var timelines = context.timelines.filter(function (timeline) {
              return timeline.containsAnimation();
            });

            if (timelines.length && Object.keys(finalStyles).length) {
              var tl = timelines[timelines.length - 1];

              if (!tl.allowOnlyTimelineStyles()) {
                tl.setStyles([finalStyles], null, context.errors, options);
              }
            }

            return timelines.length ? timelines.map(function (timeline) {
              return timeline.buildKeyframes();
            }) : [createTimelineInstruction(rootElement, [], [], [], 0, 0, '', false)];
          }
        }, {
          key: "visitTrigger",
          value: function visitTrigger(ast, context) {// these values are not visited in this AST
          }
        }, {
          key: "visitState",
          value: function visitState(ast, context) {// these values are not visited in this AST
          }
        }, {
          key: "visitTransition",
          value: function visitTransition(ast, context) {// these values are not visited in this AST
          }
        }, {
          key: "visitAnimateChild",
          value: function visitAnimateChild(ast, context) {
            var elementInstructions = context.subInstructions.consume(context.element);

            if (elementInstructions) {
              var innerContext = context.createSubContext(ast.options);
              var startTime = context.currentTimeline.currentTime;

              var endTime = this._visitSubInstructions(elementInstructions, innerContext, innerContext.options);

              if (startTime != endTime) {
                // we do this on the upper context because we created a sub context for
                // the sub child animations
                context.transformIntoNewTimeline(endTime);
              }
            }

            context.previousNode = ast;
          }
        }, {
          key: "visitAnimateRef",
          value: function visitAnimateRef(ast, context) {
            var innerContext = context.createSubContext(ast.options);
            innerContext.transformIntoNewTimeline();
            this.visitReference(ast.animation, innerContext);
            context.transformIntoNewTimeline(innerContext.currentTimeline.currentTime);
            context.previousNode = ast;
          }
        }, {
          key: "_visitSubInstructions",
          value: function _visitSubInstructions(instructions, context, options) {
            var startTime = context.currentTimeline.currentTime;
            var furthestTime = startTime; // this is a special-case for when a user wants to skip a sub
            // animation from being fired entirely.

            var duration = options.duration != null ? resolveTimingValue(options.duration) : null;
            var delay = options.delay != null ? resolveTimingValue(options.delay) : null;

            if (duration !== 0) {
              instructions.forEach(function (instruction) {
                var instructionTimings = context.appendInstructionToTimeline(instruction, duration, delay);
                furthestTime = Math.max(furthestTime, instructionTimings.duration + instructionTimings.delay);
              });
            }

            return furthestTime;
          }
        }, {
          key: "visitReference",
          value: function visitReference(ast, context) {
            context.updateOptions(ast.options, true);
            visitDslNode(this, ast.animation, context);
            context.previousNode = ast;
          }
        }, {
          key: "visitSequence",
          value: function visitSequence(ast, context) {
            var _this747 = this;

            var subContextCount = context.subContextCount;
            var ctx = context;
            var options = ast.options;

            if (options && (options.params || options.delay)) {
              ctx = context.createSubContext(options);
              ctx.transformIntoNewTimeline();

              if (options.delay != null) {
                if (ctx.previousNode.type == 6
                /* Style */
                ) {
                  ctx.currentTimeline.snapshotCurrentStyles();
                  ctx.previousNode = DEFAULT_NOOP_PREVIOUS_NODE;
                }

                var delay = resolveTimingValue(options.delay);
                ctx.delayNextStep(delay);
              }
            }

            if (ast.steps.length) {
              ast.steps.forEach(function (s) {
                return visitDslNode(_this747, s, ctx);
              }); // this is here just incase the inner steps only contain or end with a style() call

              ctx.currentTimeline.applyStylesToKeyframe(); // this means that some animation function within the sequence
              // ended up creating a sub timeline (which means the current
              // timeline cannot overlap with the contents of the sequence)

              if (ctx.subContextCount > subContextCount) {
                ctx.transformIntoNewTimeline();
              }
            }

            context.previousNode = ast;
          }
        }, {
          key: "visitGroup",
          value: function visitGroup(ast, context) {
            var _this748 = this;

            var innerTimelines = [];
            var furthestTime = context.currentTimeline.currentTime;
            var delay = ast.options && ast.options.delay ? resolveTimingValue(ast.options.delay) : 0;
            ast.steps.forEach(function (s) {
              var innerContext = context.createSubContext(ast.options);

              if (delay) {
                innerContext.delayNextStep(delay);
              }

              visitDslNode(_this748, s, innerContext);
              furthestTime = Math.max(furthestTime, innerContext.currentTimeline.currentTime);
              innerTimelines.push(innerContext.currentTimeline);
            }); // this operation is run after the AST loop because otherwise
            // if the parent timeline's collected styles were updated then
            // it would pass in invalid data into the new-to-be forked items

            innerTimelines.forEach(function (timeline) {
              return context.currentTimeline.mergeTimelineCollectedStyles(timeline);
            });
            context.transformIntoNewTimeline(furthestTime);
            context.previousNode = ast;
          }
        }, {
          key: "_visitTiming",
          value: function _visitTiming(ast, context) {
            if (ast.dynamic) {
              var strValue = ast.strValue;
              var timingValue = context.params ? interpolateParams(strValue, context.params, context.errors) : strValue;
              return resolveTiming(timingValue, context.errors);
            } else {
              return {
                duration: ast.duration,
                delay: ast.delay,
                easing: ast.easing
              };
            }
          }
        }, {
          key: "visitAnimate",
          value: function visitAnimate(ast, context) {
            var timings = context.currentAnimateTimings = this._visitTiming(ast.timings, context);

            var timeline = context.currentTimeline;

            if (timings.delay) {
              context.incrementTime(timings.delay);
              timeline.snapshotCurrentStyles();
            }

            var style = ast.style;

            if (style.type == 5
            /* Keyframes */
            ) {
              this.visitKeyframes(style, context);
            } else {
              context.incrementTime(timings.duration);
              this.visitStyle(style, context);
              timeline.applyStylesToKeyframe();
            }

            context.currentAnimateTimings = null;
            context.previousNode = ast;
          }
        }, {
          key: "visitStyle",
          value: function visitStyle(ast, context) {
            var timeline = context.currentTimeline;
            var timings = context.currentAnimateTimings; // this is a special case for when a style() call
            // directly follows  an animate() call (but not inside of an animate() call)

            if (!timings && timeline.getCurrentStyleProperties().length) {
              timeline.forwardFrame();
            }

            var easing = timings && timings.easing || ast.easing;

            if (ast.isEmptyStep) {
              timeline.applyEmptyStep(easing);
            } else {
              timeline.setStyles(ast.styles, easing, context.errors, context.options);
            }

            context.previousNode = ast;
          }
        }, {
          key: "visitKeyframes",
          value: function visitKeyframes(ast, context) {
            var currentAnimateTimings = context.currentAnimateTimings;
            var startTime = context.currentTimeline.duration;
            var duration = currentAnimateTimings.duration;
            var innerContext = context.createSubContext();
            var innerTimeline = innerContext.currentTimeline;
            innerTimeline.easing = currentAnimateTimings.easing;
            ast.styles.forEach(function (step) {
              var offset = step.offset || 0;
              innerTimeline.forwardTime(offset * duration);
              innerTimeline.setStyles(step.styles, step.easing, context.errors, context.options);
              innerTimeline.applyStylesToKeyframe();
            }); // this will ensure that the parent timeline gets all the styles from
            // the child even if the new timeline below is not used

            context.currentTimeline.mergeTimelineCollectedStyles(innerTimeline); // we do this because the window between this timeline and the sub timeline
            // should ensure that the styles within are exactly the same as they were before

            context.transformIntoNewTimeline(startTime + duration);
            context.previousNode = ast;
          }
        }, {
          key: "visitQuery",
          value: function visitQuery(ast, context) {
            var _this749 = this;

            // in the event that the first step before this is a style step we need
            // to ensure the styles are applied before the children are animated
            var startTime = context.currentTimeline.currentTime;
            var options = ast.options || {};
            var delay = options.delay ? resolveTimingValue(options.delay) : 0;

            if (delay && (context.previousNode.type === 6
            /* Style */
            || startTime == 0 && context.currentTimeline.getCurrentStyleProperties().length)) {
              context.currentTimeline.snapshotCurrentStyles();
              context.previousNode = DEFAULT_NOOP_PREVIOUS_NODE;
            }

            var furthestTime = startTime;
            var elms = context.invokeQuery(ast.selector, ast.originalSelector, ast.limit, ast.includeSelf, options.optional ? true : false, context.errors);
            context.currentQueryTotal = elms.length;
            var sameElementTimeline = null;
            elms.forEach(function (element, i) {
              context.currentQueryIndex = i;
              var innerContext = context.createSubContext(ast.options, element);

              if (delay) {
                innerContext.delayNextStep(delay);
              }

              if (element === context.element) {
                sameElementTimeline = innerContext.currentTimeline;
              }

              visitDslNode(_this749, ast.animation, innerContext); // this is here just incase the inner steps only contain or end
              // with a style() call (which is here to signal that this is a preparatory
              // call to style an element before it is animated again)

              innerContext.currentTimeline.applyStylesToKeyframe();
              var endTime = innerContext.currentTimeline.currentTime;
              furthestTime = Math.max(furthestTime, endTime);
            });
            context.currentQueryIndex = 0;
            context.currentQueryTotal = 0;
            context.transformIntoNewTimeline(furthestTime);

            if (sameElementTimeline) {
              context.currentTimeline.mergeTimelineCollectedStyles(sameElementTimeline);
              context.currentTimeline.snapshotCurrentStyles();
            }

            context.previousNode = ast;
          }
        }, {
          key: "visitStagger",
          value: function visitStagger(ast, context) {
            var parentContext = context.parentContext;
            var tl = context.currentTimeline;
            var timings = ast.timings;
            var duration = Math.abs(timings.duration);
            var maxTime = duration * (context.currentQueryTotal - 1);
            var delay = duration * context.currentQueryIndex;
            var staggerTransformer = timings.duration < 0 ? 'reverse' : timings.easing;

            switch (staggerTransformer) {
              case 'reverse':
                delay = maxTime - delay;
                break;

              case 'full':
                delay = parentContext.currentStaggerTime;
                break;
            }

            var timeline = context.currentTimeline;

            if (delay) {
              timeline.delayNextStep(delay);
            }

            var startingTime = timeline.currentTime;
            visitDslNode(this, ast.animation, context);
            context.previousNode = ast; // time = duration + delay
            // the reason why this computation is so complex is because
            // the inner timeline may either have a delay value or a stretched
            // keyframe depending on if a subtimeline is not used or is used.

            parentContext.currentStaggerTime = tl.currentTime - startingTime + (tl.startTime - parentContext.currentTimeline.startTime);
          }
        }]);

        return AnimationTimelineBuilderVisitor;
      }();

      var DEFAULT_NOOP_PREVIOUS_NODE = {};

      var AnimationTimelineContext = /*#__PURE__*/function () {
        function AnimationTimelineContext(_driver, element, subInstructions, _enterClassName, _leaveClassName, errors, timelines, initialTimeline) {
          _classCallCheck2(this, AnimationTimelineContext);

          this._driver = _driver;
          this.element = element;
          this.subInstructions = subInstructions;
          this._enterClassName = _enterClassName;
          this._leaveClassName = _leaveClassName;
          this.errors = errors;
          this.timelines = timelines;
          this.parentContext = null;
          this.currentAnimateTimings = null;
          this.previousNode = DEFAULT_NOOP_PREVIOUS_NODE;
          this.subContextCount = 0;
          this.options = {};
          this.currentQueryIndex = 0;
          this.currentQueryTotal = 0;
          this.currentStaggerTime = 0;
          this.currentTimeline = initialTimeline || new TimelineBuilder(this._driver, element, 0);
          timelines.push(this.currentTimeline);
        }

        _createClass2(AnimationTimelineContext, [{
          key: "params",
          get: function get() {
            return this.options.params;
          }
        }, {
          key: "updateOptions",
          value: function updateOptions(options, skipIfExists) {
            var _this750 = this;

            if (!options) return;
            var newOptions = options;
            var optionsToUpdate = this.options; // NOTE: this will get patched up when other animation methods support duration overrides

            if (newOptions.duration != null) {
              optionsToUpdate.duration = resolveTimingValue(newOptions.duration);
            }

            if (newOptions.delay != null) {
              optionsToUpdate.delay = resolveTimingValue(newOptions.delay);
            }

            var newParams = newOptions.params;

            if (newParams) {
              var paramsToUpdate = optionsToUpdate.params;

              if (!paramsToUpdate) {
                paramsToUpdate = this.options.params = {};
              }

              Object.keys(newParams).forEach(function (name) {
                if (!skipIfExists || !paramsToUpdate.hasOwnProperty(name)) {
                  paramsToUpdate[name] = interpolateParams(newParams[name], paramsToUpdate, _this750.errors);
                }
              });
            }
          }
        }, {
          key: "_copyOptions",
          value: function _copyOptions() {
            var options = {};

            if (this.options) {
              var oldParams = this.options.params;

              if (oldParams) {
                var params = options['params'] = {};
                Object.keys(oldParams).forEach(function (name) {
                  params[name] = oldParams[name];
                });
              }
            }

            return options;
          }
        }, {
          key: "createSubContext",
          value: function createSubContext() {
            var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
            var element = arguments.length > 1 ? arguments[1] : undefined;
            var newTime = arguments.length > 2 ? arguments[2] : undefined;
            var target = element || this.element;
            var context = new AnimationTimelineContext(this._driver, target, this.subInstructions, this._enterClassName, this._leaveClassName, this.errors, this.timelines, this.currentTimeline.fork(target, newTime || 0));
            context.previousNode = this.previousNode;
            context.currentAnimateTimings = this.currentAnimateTimings;
            context.options = this._copyOptions();
            context.updateOptions(options);
            context.currentQueryIndex = this.currentQueryIndex;
            context.currentQueryTotal = this.currentQueryTotal;
            context.parentContext = this;
            this.subContextCount++;
            return context;
          }
        }, {
          key: "transformIntoNewTimeline",
          value: function transformIntoNewTimeline(newTime) {
            this.previousNode = DEFAULT_NOOP_PREVIOUS_NODE;
            this.currentTimeline = this.currentTimeline.fork(this.element, newTime);
            this.timelines.push(this.currentTimeline);
            return this.currentTimeline;
          }
        }, {
          key: "appendInstructionToTimeline",
          value: function appendInstructionToTimeline(instruction, duration, delay) {
            var updatedTimings = {
              duration: duration != null ? duration : instruction.duration,
              delay: this.currentTimeline.currentTime + (delay != null ? delay : 0) + instruction.delay,
              easing: ''
            };
            var builder = new SubTimelineBuilder(this._driver, instruction.element, instruction.keyframes, instruction.preStyleProps, instruction.postStyleProps, updatedTimings, instruction.stretchStartingKeyframe);
            this.timelines.push(builder);
            return updatedTimings;
          }
        }, {
          key: "incrementTime",
          value: function incrementTime(time) {
            this.currentTimeline.forwardTime(this.currentTimeline.duration + time);
          }
        }, {
          key: "delayNextStep",
          value: function delayNextStep(delay) {
            // negative delays are not yet supported
            if (delay > 0) {
              this.currentTimeline.delayNextStep(delay);
            }
          }
        }, {
          key: "invokeQuery",
          value: function invokeQuery(selector, originalSelector, limit, includeSelf, optional, errors) {
            var results = [];

            if (includeSelf) {
              results.push(this.element);
            }

            if (selector.length > 0) {
              // if :self is only used then the selector is empty
              selector = selector.replace(ENTER_TOKEN_REGEX, '.' + this._enterClassName);
              selector = selector.replace(LEAVE_TOKEN_REGEX, '.' + this._leaveClassName);
              var multi = limit != 1;

              var elements = this._driver.query(this.element, selector, multi);

              if (limit !== 0) {
                elements = limit < 0 ? elements.slice(elements.length + limit, elements.length) : elements.slice(0, limit);
              }

              results.push.apply(results, _toConsumableArray(elements));
            }

            if (!optional && results.length == 0) {
              errors.push("`query(\"".concat(originalSelector, "\")` returned zero elements. (Use `query(\"").concat(originalSelector, "\", { optional: true })` if you wish to allow this.)"));
            }

            return results;
          }
        }]);

        return AnimationTimelineContext;
      }();

      var TimelineBuilder = /*#__PURE__*/function () {
        function TimelineBuilder(_driver, element, startTime, _elementTimelineStylesLookup) {
          _classCallCheck2(this, TimelineBuilder);

          this._driver = _driver;
          this.element = element;
          this.startTime = startTime;
          this._elementTimelineStylesLookup = _elementTimelineStylesLookup;
          this.duration = 0;
          this._previousKeyframe = {};
          this._currentKeyframe = {};
          this._keyframes = new Map();
          this._styleSummary = {};
          this._pendingStyles = {};
          this._backFill = {};
          this._currentEmptyStepKeyframe = null;

          if (!this._elementTimelineStylesLookup) {
            this._elementTimelineStylesLookup = new Map();
          }

          this._localTimelineStyles = Object.create(this._backFill, {});
          this._globalTimelineStyles = this._elementTimelineStylesLookup.get(element);

          if (!this._globalTimelineStyles) {
            this._globalTimelineStyles = this._localTimelineStyles;

            this._elementTimelineStylesLookup.set(element, this._localTimelineStyles);
          }

          this._loadKeyframe();
        }

        _createClass2(TimelineBuilder, [{
          key: "containsAnimation",
          value: function containsAnimation() {
            switch (this._keyframes.size) {
              case 0:
                return false;

              case 1:
                return this.getCurrentStyleProperties().length > 0;

              default:
                return true;
            }
          }
        }, {
          key: "getCurrentStyleProperties",
          value: function getCurrentStyleProperties() {
            return Object.keys(this._currentKeyframe);
          }
        }, {
          key: "currentTime",
          get: function get() {
            return this.startTime + this.duration;
          }
        }, {
          key: "delayNextStep",
          value: function delayNextStep(delay) {
            // in the event that a style() step is placed right before a stagger()
            // and that style() step is the very first style() value in the animation
            // then we need to make a copy of the keyframe [0, copy, 1] so that the delay
            // properly applies the style() values to work with the stagger...
            var hasPreStyleStep = this._keyframes.size == 1 && Object.keys(this._pendingStyles).length;

            if (this.duration || hasPreStyleStep) {
              this.forwardTime(this.currentTime + delay);

              if (hasPreStyleStep) {
                this.snapshotCurrentStyles();
              }
            } else {
              this.startTime += delay;
            }
          }
        }, {
          key: "fork",
          value: function fork(element, currentTime) {
            this.applyStylesToKeyframe();
            return new TimelineBuilder(this._driver, element, currentTime || this.currentTime, this._elementTimelineStylesLookup);
          }
        }, {
          key: "_loadKeyframe",
          value: function _loadKeyframe() {
            if (this._currentKeyframe) {
              this._previousKeyframe = this._currentKeyframe;
            }

            this._currentKeyframe = this._keyframes.get(this.duration);

            if (!this._currentKeyframe) {
              this._currentKeyframe = Object.create(this._backFill, {});

              this._keyframes.set(this.duration, this._currentKeyframe);
            }
          }
        }, {
          key: "forwardFrame",
          value: function forwardFrame() {
            this.duration += ONE_FRAME_IN_MILLISECONDS;

            this._loadKeyframe();
          }
        }, {
          key: "forwardTime",
          value: function forwardTime(time) {
            this.applyStylesToKeyframe();
            this.duration = time;

            this._loadKeyframe();
          }
        }, {
          key: "_updateStyle",
          value: function _updateStyle(prop, value) {
            this._localTimelineStyles[prop] = value;
            this._globalTimelineStyles[prop] = value;
            this._styleSummary[prop] = {
              time: this.currentTime,
              value: value
            };
          }
        }, {
          key: "allowOnlyTimelineStyles",
          value: function allowOnlyTimelineStyles() {
            return this._currentEmptyStepKeyframe !== this._currentKeyframe;
          }
        }, {
          key: "applyEmptyStep",
          value: function applyEmptyStep(easing) {
            var _this751 = this;

            if (easing) {
              this._previousKeyframe['easing'] = easing;
            } // special case for animate(duration):
            // all missing styles are filled with a `*` value then
            // if any destination styles are filled in later on the same
            // keyframe then they will override the overridden styles
            // We use `_globalTimelineStyles` here because there may be
            // styles in previous keyframes that are not present in this timeline


            Object.keys(this._globalTimelineStyles).forEach(function (prop) {
              _this751._backFill[prop] = _this751._globalTimelineStyles[prop] || _angular_animations__WEBPACK_IMPORTED_MODULE_0__["AUTO_STYLE"];
              _this751._currentKeyframe[prop] = _angular_animations__WEBPACK_IMPORTED_MODULE_0__["AUTO_STYLE"];
            });
            this._currentEmptyStepKeyframe = this._currentKeyframe;
          }
        }, {
          key: "setStyles",
          value: function setStyles(input, easing, errors, options) {
            var _this752 = this;

            if (easing) {
              this._previousKeyframe['easing'] = easing;
            }

            var params = options && options.params || {};
            var styles = flattenStyles(input, this._globalTimelineStyles);
            Object.keys(styles).forEach(function (prop) {
              var val = interpolateParams(styles[prop], params, errors);
              _this752._pendingStyles[prop] = val;

              if (!_this752._localTimelineStyles.hasOwnProperty(prop)) {
                _this752._backFill[prop] = _this752._globalTimelineStyles.hasOwnProperty(prop) ? _this752._globalTimelineStyles[prop] : _angular_animations__WEBPACK_IMPORTED_MODULE_0__["AUTO_STYLE"];
              }

              _this752._updateStyle(prop, val);
            });
          }
        }, {
          key: "applyStylesToKeyframe",
          value: function applyStylesToKeyframe() {
            var _this753 = this;

            var styles = this._pendingStyles;
            var props = Object.keys(styles);
            if (props.length == 0) return;
            this._pendingStyles = {};
            props.forEach(function (prop) {
              var val = styles[prop];
              _this753._currentKeyframe[prop] = val;
            });
            Object.keys(this._localTimelineStyles).forEach(function (prop) {
              if (!_this753._currentKeyframe.hasOwnProperty(prop)) {
                _this753._currentKeyframe[prop] = _this753._localTimelineStyles[prop];
              }
            });
          }
        }, {
          key: "snapshotCurrentStyles",
          value: function snapshotCurrentStyles() {
            var _this754 = this;

            Object.keys(this._localTimelineStyles).forEach(function (prop) {
              var val = _this754._localTimelineStyles[prop];
              _this754._pendingStyles[prop] = val;

              _this754._updateStyle(prop, val);
            });
          }
        }, {
          key: "getFinalKeyframe",
          value: function getFinalKeyframe() {
            return this._keyframes.get(this.duration);
          }
        }, {
          key: "properties",
          get: function get() {
            var properties = [];

            for (var prop in this._currentKeyframe) {
              properties.push(prop);
            }

            return properties;
          }
        }, {
          key: "mergeTimelineCollectedStyles",
          value: function mergeTimelineCollectedStyles(timeline) {
            var _this755 = this;

            Object.keys(timeline._styleSummary).forEach(function (prop) {
              var details0 = _this755._styleSummary[prop];
              var details1 = timeline._styleSummary[prop];

              if (!details0 || details1.time > details0.time) {
                _this755._updateStyle(prop, details1.value);
              }
            });
          }
        }, {
          key: "buildKeyframes",
          value: function buildKeyframes() {
            var _this756 = this;

            this.applyStylesToKeyframe();
            var preStyleProps = new Set();
            var postStyleProps = new Set();
            var isEmpty = this._keyframes.size === 1 && this.duration === 0;
            var finalKeyframes = [];

            this._keyframes.forEach(function (keyframe, time) {
              var finalKeyframe = copyStyles(keyframe, true);
              Object.keys(finalKeyframe).forEach(function (prop) {
                var value = finalKeyframe[prop];

                if (value == _angular_animations__WEBPACK_IMPORTED_MODULE_0__["ɵPRE_STYLE"]) {
                  preStyleProps.add(prop);
                } else if (value == _angular_animations__WEBPACK_IMPORTED_MODULE_0__["AUTO_STYLE"]) {
                  postStyleProps.add(prop);
                }
              });

              if (!isEmpty) {
                finalKeyframe['offset'] = time / _this756.duration;
              }

              finalKeyframes.push(finalKeyframe);
            });

            var preProps = preStyleProps.size ? iteratorToArray(preStyleProps.values()) : [];
            var postProps = postStyleProps.size ? iteratorToArray(postStyleProps.values()) : []; // special case for a 0-second animation (which is designed just to place styles onscreen)

            if (isEmpty) {
              var kf0 = finalKeyframes[0];
              var kf1 = copyObj(kf0);
              kf0['offset'] = 0;
              kf1['offset'] = 1;
              finalKeyframes = [kf0, kf1];
            }

            return createTimelineInstruction(this.element, finalKeyframes, preProps, postProps, this.duration, this.startTime, this.easing, false);
          }
        }]);

        return TimelineBuilder;
      }();

      var SubTimelineBuilder = /*#__PURE__*/function (_TimelineBuilder) {
        _inherits2(SubTimelineBuilder, _TimelineBuilder);

        var _super378 = _createSuper2(SubTimelineBuilder);

        function SubTimelineBuilder(driver, element, keyframes, preStyleProps, postStyleProps, timings) {
          var _this757;

          var _stretchStartingKeyframe = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : false;

          _classCallCheck2(this, SubTimelineBuilder);

          _this757 = _super378.call(this, driver, element, timings.delay);
          _this757.element = element;
          _this757.keyframes = keyframes;
          _this757.preStyleProps = preStyleProps;
          _this757.postStyleProps = postStyleProps;
          _this757._stretchStartingKeyframe = _stretchStartingKeyframe;
          _this757.timings = {
            duration: timings.duration,
            delay: timings.delay,
            easing: timings.easing
          };
          return _this757;
        }

        _createClass2(SubTimelineBuilder, [{
          key: "containsAnimation",
          value: function containsAnimation() {
            return this.keyframes.length > 1;
          }
        }, {
          key: "buildKeyframes",
          value: function buildKeyframes() {
            var keyframes = this.keyframes;
            var _this$timings = this.timings,
                delay = _this$timings.delay,
                duration = _this$timings.duration,
                easing = _this$timings.easing;

            if (this._stretchStartingKeyframe && delay) {
              var newKeyframes = [];
              var totalTime = duration + delay;
              var startingGap = delay / totalTime; // the original starting keyframe now starts once the delay is done

              var newFirstKeyframe = copyStyles(keyframes[0], false);
              newFirstKeyframe['offset'] = 0;
              newKeyframes.push(newFirstKeyframe);
              var oldFirstKeyframe = copyStyles(keyframes[0], false);
              oldFirstKeyframe['offset'] = roundOffset(startingGap);
              newKeyframes.push(oldFirstKeyframe);
              /*
                When the keyframe is stretched then it means that the delay before the animation
                starts is gone. Instead the first keyframe is placed at the start of the animation
                and it is then copied to where it starts when the original delay is over. This basically
                means nothing animates during that delay, but the styles are still renderered. For this
                to work the original offset values that exist in the original keyframes must be "warped"
                so that they can take the new keyframe + delay into account.
                       delay=1000, duration=1000, keyframes = 0 .5 1
                       turns into
                       delay=0, duration=2000, keyframes = 0 .33 .66 1
               */
              // offsets between 1 ... n -1 are all warped by the keyframe stretch

              var limit = keyframes.length - 1;

              for (var i = 1; i <= limit; i++) {
                var kf = copyStyles(keyframes[i], false);
                var oldOffset = kf['offset'];
                var timeAtKeyframe = delay + oldOffset * duration;
                kf['offset'] = roundOffset(timeAtKeyframe / totalTime);
                newKeyframes.push(kf);
              } // the new starting keyframe should be added at the start


              duration = totalTime;
              delay = 0;
              easing = '';
              keyframes = newKeyframes;
            }

            return createTimelineInstruction(this.element, keyframes, this.preStyleProps, this.postStyleProps, duration, delay, easing, true);
          }
        }]);

        return SubTimelineBuilder;
      }(TimelineBuilder);

      function roundOffset(offset) {
        var decimalPoints = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 3;
        var mult = Math.pow(10, decimalPoints - 1);
        return Math.round(offset * mult) / mult;
      }

      function flattenStyles(input, allStyles) {
        var styles = {};
        var allProperties;
        input.forEach(function (token) {
          if (token === '*') {
            allProperties = allProperties || Object.keys(allStyles);
            allProperties.forEach(function (prop) {
              styles[prop] = _angular_animations__WEBPACK_IMPORTED_MODULE_0__["AUTO_STYLE"];
            });
          } else {
            copyStyles(token, false, styles);
          }
        });
        return styles;
      }

      var Animation = /*#__PURE__*/function () {
        function Animation(_driver, input) {
          _classCallCheck2(this, Animation);

          this._driver = _driver;
          var errors = [];
          var ast = buildAnimationAst(_driver, input, errors);

          if (errors.length) {
            var errorMessage = "animation validation failed:\n".concat(errors.join('\n'));
            throw new Error(errorMessage);
          }

          this._animationAst = ast;
        }

        _createClass2(Animation, [{
          key: "buildTimelines",
          value: function buildTimelines(element, startingStyles, destinationStyles, options, subInstructions) {
            var start = Array.isArray(startingStyles) ? normalizeStyles(startingStyles) : startingStyles;
            var dest = Array.isArray(destinationStyles) ? normalizeStyles(destinationStyles) : destinationStyles;
            var errors = [];
            subInstructions = subInstructions || new ElementInstructionMap();
            var result = buildAnimationTimelines(this._driver, element, this._animationAst, ENTER_CLASSNAME, LEAVE_CLASSNAME, start, dest, options, subInstructions, errors);

            if (errors.length) {
              var errorMessage = "animation building failed:\n".concat(errors.join('\n'));
              throw new Error(errorMessage);
            }

            return result;
          }
        }]);

        return Animation;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @publicApi
       */


      var AnimationStyleNormalizer = function AnimationStyleNormalizer() {
        _classCallCheck2(this, AnimationStyleNormalizer);
      };
      /**
       * @publicApi
       */


      var NoopAnimationStyleNormalizer = /*#__PURE__*/function () {
        function NoopAnimationStyleNormalizer() {
          _classCallCheck2(this, NoopAnimationStyleNormalizer);
        }

        _createClass2(NoopAnimationStyleNormalizer, [{
          key: "normalizePropertyName",
          value: function normalizePropertyName(propertyName, errors) {
            return propertyName;
          }
        }, {
          key: "normalizeStyleValue",
          value: function normalizeStyleValue(userProvidedProperty, normalizedProperty, value, errors) {
            return value;
          }
        }]);

        return NoopAnimationStyleNormalizer;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var WebAnimationsStyleNormalizer = /*#__PURE__*/function (_AnimationStyleNormal) {
        _inherits2(WebAnimationsStyleNormalizer, _AnimationStyleNormal);

        var _super379 = _createSuper2(WebAnimationsStyleNormalizer);

        function WebAnimationsStyleNormalizer() {
          _classCallCheck2(this, WebAnimationsStyleNormalizer);

          return _super379.apply(this, arguments);
        }

        _createClass2(WebAnimationsStyleNormalizer, [{
          key: "normalizePropertyName",
          value: function normalizePropertyName(propertyName, errors) {
            return dashCaseToCamelCase(propertyName);
          }
        }, {
          key: "normalizeStyleValue",
          value: function normalizeStyleValue(userProvidedProperty, normalizedProperty, value, errors) {
            var unit = '';
            var strVal = value.toString().trim();

            if (DIMENSIONAL_PROP_MAP[normalizedProperty] && value !== 0 && value !== '0') {
              if (typeof value === 'number') {
                unit = 'px';
              } else {
                var valAndSuffixMatch = value.match(/^[+-]?[\d\.]+([a-z]*)$/);

                if (valAndSuffixMatch && valAndSuffixMatch[1].length == 0) {
                  errors.push("Please provide a CSS unit value for ".concat(userProvidedProperty, ":").concat(value));
                }
              }
            }

            return strVal + unit;
          }
        }]);

        return WebAnimationsStyleNormalizer;
      }(AnimationStyleNormalizer);

      var ɵ0$1 = function ɵ0$1() {
        return makeBooleanMap('width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective'.split(','));
      };

      var DIMENSIONAL_PROP_MAP = ɵ0$1();

      function makeBooleanMap(keys) {
        var map = {};
        keys.forEach(function (key) {
          return map[key] = true;
        });
        return map;
      }

      function createTransitionInstruction(element, triggerName, fromState, toState, isRemovalTransition, fromStyles, toStyles, timelines, queriedElements, preStyleProps, postStyleProps, totalTime, errors) {
        return {
          type: 0
          /* TransitionAnimation */
          ,
          element: element,
          triggerName: triggerName,
          isRemovalTransition: isRemovalTransition,
          fromState: fromState,
          fromStyles: fromStyles,
          toState: toState,
          toStyles: toStyles,
          timelines: timelines,
          queriedElements: queriedElements,
          preStyleProps: preStyleProps,
          postStyleProps: postStyleProps,
          totalTime: totalTime,
          errors: errors
        };
      }

      var EMPTY_OBJECT = {};

      var AnimationTransitionFactory = /*#__PURE__*/function () {
        function AnimationTransitionFactory(_triggerName, ast, _stateStyles) {
          _classCallCheck2(this, AnimationTransitionFactory);

          this._triggerName = _triggerName;
          this.ast = ast;
          this._stateStyles = _stateStyles;
        }

        _createClass2(AnimationTransitionFactory, [{
          key: "match",
          value: function match(currentState, nextState, element, params) {
            return oneOrMoreTransitionsMatch(this.ast.matchers, currentState, nextState, element, params);
          }
        }, {
          key: "buildStyles",
          value: function buildStyles(stateName, params, errors) {
            var backupStateStyler = this._stateStyles['*'];
            var stateStyler = this._stateStyles[stateName];
            var backupStyles = backupStateStyler ? backupStateStyler.buildStyles(params, errors) : {};
            return stateStyler ? stateStyler.buildStyles(params, errors) : backupStyles;
          }
        }, {
          key: "build",
          value: function build(driver, element, currentState, nextState, enterClassName, leaveClassName, currentOptions, nextOptions, subInstructions, skipAstBuild) {
            var errors = [];
            var transitionAnimationParams = this.ast.options && this.ast.options.params || EMPTY_OBJECT;
            var currentAnimationParams = currentOptions && currentOptions.params || EMPTY_OBJECT;
            var currentStateStyles = this.buildStyles(currentState, currentAnimationParams, errors);
            var nextAnimationParams = nextOptions && nextOptions.params || EMPTY_OBJECT;
            var nextStateStyles = this.buildStyles(nextState, nextAnimationParams, errors);
            var queriedElements = new Set();
            var preStyleMap = new Map();
            var postStyleMap = new Map();
            var isRemoval = nextState === 'void';
            var animationOptions = {
              params: Object.assign(Object.assign({}, transitionAnimationParams), nextAnimationParams)
            };
            var timelines = skipAstBuild ? [] : buildAnimationTimelines(driver, element, this.ast.animation, enterClassName, leaveClassName, currentStateStyles, nextStateStyles, animationOptions, subInstructions, errors);
            var totalTime = 0;
            timelines.forEach(function (tl) {
              totalTime = Math.max(tl.duration + tl.delay, totalTime);
            });

            if (errors.length) {
              return createTransitionInstruction(element, this._triggerName, currentState, nextState, isRemoval, currentStateStyles, nextStateStyles, [], [], preStyleMap, postStyleMap, totalTime, errors);
            }

            timelines.forEach(function (tl) {
              var elm = tl.element;
              var preProps = getOrSetAsInMap(preStyleMap, elm, {});
              tl.preStyleProps.forEach(function (prop) {
                return preProps[prop] = true;
              });
              var postProps = getOrSetAsInMap(postStyleMap, elm, {});
              tl.postStyleProps.forEach(function (prop) {
                return postProps[prop] = true;
              });

              if (elm !== element) {
                queriedElements.add(elm);
              }
            });
            var queriedElementsList = iteratorToArray(queriedElements.values());
            return createTransitionInstruction(element, this._triggerName, currentState, nextState, isRemoval, currentStateStyles, nextStateStyles, timelines, queriedElementsList, preStyleMap, postStyleMap, totalTime);
          }
        }]);

        return AnimationTransitionFactory;
      }();

      function oneOrMoreTransitionsMatch(matchFns, currentState, nextState, element, params) {
        return matchFns.some(function (fn) {
          return fn(currentState, nextState, element, params);
        });
      }

      var AnimationStateStyles = /*#__PURE__*/function () {
        function AnimationStateStyles(styles, defaultParams) {
          _classCallCheck2(this, AnimationStateStyles);

          this.styles = styles;
          this.defaultParams = defaultParams;
        }

        _createClass2(AnimationStateStyles, [{
          key: "buildStyles",
          value: function buildStyles(params, errors) {
            var finalStyles = {};
            var combinedParams = copyObj(this.defaultParams);
            Object.keys(params).forEach(function (key) {
              var value = params[key];

              if (value != null) {
                combinedParams[key] = value;
              }
            });
            this.styles.styles.forEach(function (value) {
              if (typeof value !== 'string') {
                var styleObj = value;
                Object.keys(styleObj).forEach(function (prop) {
                  var val = styleObj[prop];

                  if (val.length > 1) {
                    val = interpolateParams(val, combinedParams, errors);
                  }

                  finalStyles[prop] = val;
                });
              }
            });
            return finalStyles;
          }
        }]);

        return AnimationStateStyles;
      }();
      /**
       * @publicApi
       */


      function buildTrigger(name, ast) {
        return new AnimationTrigger(name, ast);
      }
      /**
       * @publicApi
       */


      var AnimationTrigger = /*#__PURE__*/function () {
        function AnimationTrigger(name, ast) {
          var _this758 = this;

          _classCallCheck2(this, AnimationTrigger);

          this.name = name;
          this.ast = ast;
          this.transitionFactories = [];
          this.states = {};
          ast.states.forEach(function (ast) {
            var defaultParams = ast.options && ast.options.params || {};
            _this758.states[ast.name] = new AnimationStateStyles(ast.style, defaultParams);
          });
          balanceProperties(this.states, 'true', '1');
          balanceProperties(this.states, 'false', '0');
          ast.transitions.forEach(function (ast) {
            _this758.transitionFactories.push(new AnimationTransitionFactory(name, ast, _this758.states));
          });
          this.fallbackTransition = createFallbackTransition(name, this.states);
        }

        _createClass2(AnimationTrigger, [{
          key: "containsQueries",
          get: function get() {
            return this.ast.queryCount > 0;
          }
        }, {
          key: "matchTransition",
          value: function matchTransition(currentState, nextState, element, params) {
            var entry = this.transitionFactories.find(function (f) {
              return f.match(currentState, nextState, element, params);
            });
            return entry || null;
          }
        }, {
          key: "matchStyles",
          value: function matchStyles(currentState, params, errors) {
            return this.fallbackTransition.buildStyles(currentState, params, errors);
          }
        }]);

        return AnimationTrigger;
      }();

      function createFallbackTransition(triggerName, states) {
        var matchers = [function (fromState, toState) {
          return true;
        }];
        var animation = {
          type: 2
          /* Sequence */
          ,
          steps: [],
          options: null
        };
        var transition = {
          type: 1
          /* Transition */
          ,
          animation: animation,
          matchers: matchers,
          options: null,
          queryCount: 0,
          depCount: 0
        };
        return new AnimationTransitionFactory(triggerName, transition, states);
      }

      function balanceProperties(obj, key1, key2) {
        if (obj.hasOwnProperty(key1)) {
          if (!obj.hasOwnProperty(key2)) {
            obj[key2] = obj[key1];
          }
        } else if (obj.hasOwnProperty(key2)) {
          obj[key1] = obj[key2];
        }
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var EMPTY_INSTRUCTION_MAP = new ElementInstructionMap();

      var TimelineAnimationEngine = /*#__PURE__*/function () {
        function TimelineAnimationEngine(bodyNode, _driver, _normalizer) {
          _classCallCheck2(this, TimelineAnimationEngine);

          this.bodyNode = bodyNode;
          this._driver = _driver;
          this._normalizer = _normalizer;
          this._animations = {};
          this._playersById = {};
          this.players = [];
        }

        _createClass2(TimelineAnimationEngine, [{
          key: "register",
          value: function register(id, metadata) {
            var errors = [];
            var ast = buildAnimationAst(this._driver, metadata, errors);

            if (errors.length) {
              throw new Error("Unable to build the animation due to the following errors: ".concat(errors.join('\n')));
            } else {
              this._animations[id] = ast;
            }
          }
        }, {
          key: "_buildPlayer",
          value: function _buildPlayer(i, preStyles, postStyles) {
            var element = i.element;
            var keyframes = normalizeKeyframes(this._driver, this._normalizer, element, i.keyframes, preStyles, postStyles);
            return this._driver.animate(element, keyframes, i.duration, i.delay, i.easing, [], true);
          }
        }, {
          key: "create",
          value: function create(id, element) {
            var _this759 = this;

            var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
            var errors = [];
            var ast = this._animations[id];
            var instructions;
            var autoStylesMap = new Map();

            if (ast) {
              instructions = buildAnimationTimelines(this._driver, element, ast, ENTER_CLASSNAME, LEAVE_CLASSNAME, {}, {}, options, EMPTY_INSTRUCTION_MAP, errors);
              instructions.forEach(function (inst) {
                var styles = getOrSetAsInMap(autoStylesMap, inst.element, {});
                inst.postStyleProps.forEach(function (prop) {
                  return styles[prop] = null;
                });
              });
            } else {
              errors.push('The requested animation doesn\'t exist or has already been destroyed');
              instructions = [];
            }

            if (errors.length) {
              throw new Error("Unable to create the animation due to the following errors: ".concat(errors.join('\n')));
            }

            autoStylesMap.forEach(function (styles, element) {
              Object.keys(styles).forEach(function (prop) {
                styles[prop] = _this759._driver.computeStyle(element, prop, _angular_animations__WEBPACK_IMPORTED_MODULE_0__["AUTO_STYLE"]);
              });
            });
            var players = instructions.map(function (i) {
              var styles = autoStylesMap.get(i.element);
              return _this759._buildPlayer(i, {}, styles);
            });
            var player = optimizeGroupPlayer(players);
            this._playersById[id] = player;
            player.onDestroy(function () {
              return _this759.destroy(id);
            });
            this.players.push(player);
            return player;
          }
        }, {
          key: "destroy",
          value: function destroy(id) {
            var player = this._getPlayer(id);

            player.destroy();
            delete this._playersById[id];
            var index = this.players.indexOf(player);

            if (index >= 0) {
              this.players.splice(index, 1);
            }
          }
        }, {
          key: "_getPlayer",
          value: function _getPlayer(id) {
            var player = this._playersById[id];

            if (!player) {
              throw new Error("Unable to find the timeline player referenced by ".concat(id));
            }

            return player;
          }
        }, {
          key: "listen",
          value: function listen(id, element, eventName, callback) {
            // triggerName, fromState, toState are all ignored for timeline animations
            var baseEvent = makeAnimationEvent(element, '', '', '');
            listenOnPlayer(this._getPlayer(id), eventName, baseEvent, callback);
            return function () {};
          }
        }, {
          key: "command",
          value: function command(id, element, _command, args) {
            if (_command == 'register') {
              this.register(id, args[0]);
              return;
            }

            if (_command == 'create') {
              var options = args[0] || {};
              this.create(id, element, options);
              return;
            }

            var player = this._getPlayer(id);

            switch (_command) {
              case 'play':
                player.play();
                break;

              case 'pause':
                player.pause();
                break;

              case 'reset':
                player.reset();
                break;

              case 'restart':
                player.restart();
                break;

              case 'finish':
                player.finish();
                break;

              case 'init':
                player.init();
                break;

              case 'setPosition':
                player.setPosition(parseFloat(args[0]));
                break;

              case 'destroy':
                this.destroy(id);
                break;
            }
          }
        }]);

        return TimelineAnimationEngine;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var QUEUED_CLASSNAME = 'ng-animate-queued';
      var QUEUED_SELECTOR = '.ng-animate-queued';
      var DISABLED_CLASSNAME = 'ng-animate-disabled';
      var DISABLED_SELECTOR = '.ng-animate-disabled';
      var STAR_CLASSNAME = 'ng-star-inserted';
      var STAR_SELECTOR = '.ng-star-inserted';
      var EMPTY_PLAYER_ARRAY = [];
      var NULL_REMOVAL_STATE = {
        namespaceId: '',
        setForRemoval: false,
        setForMove: false,
        hasAnimation: false,
        removedBeforeQueried: false
      };
      var NULL_REMOVED_QUERIED_STATE = {
        namespaceId: '',
        setForMove: false,
        setForRemoval: false,
        hasAnimation: false,
        removedBeforeQueried: true
      };
      var REMOVAL_FLAG = '__ng_removed';

      var StateValue = /*#__PURE__*/function () {
        function StateValue(input) {
          var namespaceId = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';

          _classCallCheck2(this, StateValue);

          this.namespaceId = namespaceId;
          var isObj = input && input.hasOwnProperty('value');
          var value = isObj ? input['value'] : input;
          this.value = normalizeTriggerValue(value);

          if (isObj) {
            var options = copyObj(input);
            delete options['value'];
            this.options = options;
          } else {
            this.options = {};
          }

          if (!this.options.params) {
            this.options.params = {};
          }
        }

        _createClass2(StateValue, [{
          key: "params",
          get: function get() {
            return this.options.params;
          }
        }, {
          key: "absorbOptions",
          value: function absorbOptions(options) {
            var newParams = options.params;

            if (newParams) {
              var oldParams = this.options.params;
              Object.keys(newParams).forEach(function (prop) {
                if (oldParams[prop] == null) {
                  oldParams[prop] = newParams[prop];
                }
              });
            }
          }
        }]);

        return StateValue;
      }();

      var VOID_VALUE = 'void';
      var DEFAULT_STATE_VALUE = new StateValue(VOID_VALUE);

      var AnimationTransitionNamespace = /*#__PURE__*/function () {
        function AnimationTransitionNamespace(id, hostElement, _engine) {
          _classCallCheck2(this, AnimationTransitionNamespace);

          this.id = id;
          this.hostElement = hostElement;
          this._engine = _engine;
          this.players = [];
          this._triggers = {};
          this._queue = [];
          this._elementListeners = new Map();
          this._hostClassName = 'ng-tns-' + id;
          addClass(hostElement, this._hostClassName);
        }

        _createClass2(AnimationTransitionNamespace, [{
          key: "listen",
          value: function listen(element, name, phase, callback) {
            var _this760 = this;

            if (!this._triggers.hasOwnProperty(name)) {
              throw new Error("Unable to listen on the animation trigger event \"".concat(phase, "\" because the animation trigger \"").concat(name, "\" doesn't exist!"));
            }

            if (phase == null || phase.length == 0) {
              throw new Error("Unable to listen on the animation trigger \"".concat(name, "\" because the provided event is undefined!"));
            }

            if (!isTriggerEventValid(phase)) {
              throw new Error("The provided animation trigger event \"".concat(phase, "\" for the animation trigger \"").concat(name, "\" is not supported!"));
            }

            var listeners = getOrSetAsInMap(this._elementListeners, element, []);
            var data = {
              name: name,
              phase: phase,
              callback: callback
            };
            listeners.push(data);
            var triggersWithStates = getOrSetAsInMap(this._engine.statesByElement, element, {});

            if (!triggersWithStates.hasOwnProperty(name)) {
              addClass(element, NG_TRIGGER_CLASSNAME);
              addClass(element, NG_TRIGGER_CLASSNAME + '-' + name);
              triggersWithStates[name] = DEFAULT_STATE_VALUE;
            }

            return function () {
              // the event listener is removed AFTER the flush has occurred such
              // that leave animations callbacks can fire (otherwise if the node
              // is removed in between then the listeners would be deregistered)
              _this760._engine.afterFlush(function () {
                var index = listeners.indexOf(data);

                if (index >= 0) {
                  listeners.splice(index, 1);
                }

                if (!_this760._triggers[name]) {
                  delete triggersWithStates[name];
                }
              });
            };
          }
        }, {
          key: "register",
          value: function register(name, ast) {
            if (this._triggers[name]) {
              // throw
              return false;
            } else {
              this._triggers[name] = ast;
              return true;
            }
          }
        }, {
          key: "_getTrigger",
          value: function _getTrigger(name) {
            var trigger = this._triggers[name];

            if (!trigger) {
              throw new Error("The provided animation trigger \"".concat(name, "\" has not been registered!"));
            }

            return trigger;
          }
        }, {
          key: "trigger",
          value: function trigger(element, triggerName, value) {
            var _this761 = this;

            var defaultToFallback = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;

            var trigger = this._getTrigger(triggerName);

            var player = new TransitionAnimationPlayer(this.id, triggerName, element);

            var triggersWithStates = this._engine.statesByElement.get(element);

            if (!triggersWithStates) {
              addClass(element, NG_TRIGGER_CLASSNAME);
              addClass(element, NG_TRIGGER_CLASSNAME + '-' + triggerName);

              this._engine.statesByElement.set(element, triggersWithStates = {});
            }

            var fromState = triggersWithStates[triggerName];
            var toState = new StateValue(value, this.id);
            var isObj = value && value.hasOwnProperty('value');

            if (!isObj && fromState) {
              toState.absorbOptions(fromState.options);
            }

            triggersWithStates[triggerName] = toState;

            if (!fromState) {
              fromState = DEFAULT_STATE_VALUE;
            }

            var isRemoval = toState.value === VOID_VALUE; // normally this isn't reached by here, however, if an object expression
            // is passed in then it may be a new object each time. Comparing the value
            // is important since that will stay the same despite there being a new object.
            // The removal arc here is special cased because the same element is triggered
            // twice in the event that it contains animations on the outer/inner portions
            // of the host container

            if (!isRemoval && fromState.value === toState.value) {
              // this means that despite the value not changing, some inner params
              // have changed which means that the animation final styles need to be applied
              if (!objEquals(fromState.params, toState.params)) {
                var errors = [];
                var fromStyles = trigger.matchStyles(fromState.value, fromState.params, errors);
                var toStyles = trigger.matchStyles(toState.value, toState.params, errors);

                if (errors.length) {
                  this._engine.reportError(errors);
                } else {
                  this._engine.afterFlush(function () {
                    eraseStyles(element, fromStyles);
                    setStyles(element, toStyles);
                  });
                }
              }

              return;
            }

            var playersOnElement = getOrSetAsInMap(this._engine.playersByElement, element, []);
            playersOnElement.forEach(function (player) {
              // only remove the player if it is queued on the EXACT same trigger/namespace
              // we only also deal with queued players here because if the animation has
              // started then we want to keep the player alive until the flush happens
              // (which is where the previousPlayers are passed into the new palyer)
              if (player.namespaceId == _this761.id && player.triggerName == triggerName && player.queued) {
                player.destroy();
              }
            });
            var transition = trigger.matchTransition(fromState.value, toState.value, element, toState.params);
            var isFallbackTransition = false;

            if (!transition) {
              if (!defaultToFallback) return;
              transition = trigger.fallbackTransition;
              isFallbackTransition = true;
            }

            this._engine.totalQueuedPlayers++;

            this._queue.push({
              element: element,
              triggerName: triggerName,
              transition: transition,
              fromState: fromState,
              toState: toState,
              player: player,
              isFallbackTransition: isFallbackTransition
            });

            if (!isFallbackTransition) {
              addClass(element, QUEUED_CLASSNAME);
              player.onStart(function () {
                removeClass(element, QUEUED_CLASSNAME);
              });
            }

            player.onDone(function () {
              var index = _this761.players.indexOf(player);

              if (index >= 0) {
                _this761.players.splice(index, 1);
              }

              var players = _this761._engine.playersByElement.get(element);

              if (players) {
                var _index4 = players.indexOf(player);

                if (_index4 >= 0) {
                  players.splice(_index4, 1);
                }
              }
            });
            this.players.push(player);
            playersOnElement.push(player);
            return player;
          }
        }, {
          key: "deregister",
          value: function deregister(name) {
            var _this762 = this;

            delete this._triggers[name];

            this._engine.statesByElement.forEach(function (stateMap, element) {
              delete stateMap[name];
            });

            this._elementListeners.forEach(function (listeners, element) {
              _this762._elementListeners.set(element, listeners.filter(function (entry) {
                return entry.name != name;
              }));
            });
          }
        }, {
          key: "clearElementCache",
          value: function clearElementCache(element) {
            this._engine.statesByElement["delete"](element);

            this._elementListeners["delete"](element);

            var elementPlayers = this._engine.playersByElement.get(element);

            if (elementPlayers) {
              elementPlayers.forEach(function (player) {
                return player.destroy();
              });

              this._engine.playersByElement["delete"](element);
            }
          }
        }, {
          key: "_signalRemovalForInnerTriggers",
          value: function _signalRemovalForInnerTriggers(rootElement, context) {
            var _this763 = this;

            var elements = this._engine.driver.query(rootElement, NG_TRIGGER_SELECTOR, true); // emulate a leave animation for all inner nodes within this node.
            // If there are no animations found for any of the nodes then clear the cache
            // for the element.


            elements.forEach(function (elm) {
              // this means that an inner remove() operation has already kicked off
              // the animation on this element...
              if (elm[REMOVAL_FLAG]) return;

              var namespaces = _this763._engine.fetchNamespacesByElement(elm);

              if (namespaces.size) {
                namespaces.forEach(function (ns) {
                  return ns.triggerLeaveAnimation(elm, context, false, true);
                });
              } else {
                _this763.clearElementCache(elm);
              }
            }); // If the child elements were removed along with the parent, their animations might not
            // have completed. Clear all the elements from the cache so we don't end up with a memory leak.

            this._engine.afterFlushAnimationsDone(function () {
              return elements.forEach(function (elm) {
                return _this763.clearElementCache(elm);
              });
            });
          }
        }, {
          key: "triggerLeaveAnimation",
          value: function triggerLeaveAnimation(element, context, destroyAfterComplete, defaultToFallback) {
            var _this764 = this;

            var triggerStates = this._engine.statesByElement.get(element);

            if (triggerStates) {
              var players = [];
              Object.keys(triggerStates).forEach(function (triggerName) {
                // this check is here in the event that an element is removed
                // twice (both on the host level and the component level)
                if (_this764._triggers[triggerName]) {
                  var player = _this764.trigger(element, triggerName, VOID_VALUE, defaultToFallback);

                  if (player) {
                    players.push(player);
                  }
                }
              });

              if (players.length) {
                this._engine.markElementAsRemoved(this.id, element, true, context);

                if (destroyAfterComplete) {
                  optimizeGroupPlayer(players).onDone(function () {
                    return _this764._engine.processLeaveNode(element);
                  });
                }

                return true;
              }
            }

            return false;
          }
        }, {
          key: "prepareLeaveAnimationListeners",
          value: function prepareLeaveAnimationListeners(element) {
            var _this765 = this;

            var listeners = this._elementListeners.get(element);

            if (listeners) {
              var visitedTriggers = new Set();
              listeners.forEach(function (listener) {
                var triggerName = listener.name;
                if (visitedTriggers.has(triggerName)) return;
                visitedTriggers.add(triggerName);
                var trigger = _this765._triggers[triggerName];
                var transition = trigger.fallbackTransition;

                var elementStates = _this765._engine.statesByElement.get(element);

                var fromState = elementStates[triggerName] || DEFAULT_STATE_VALUE;
                var toState = new StateValue(VOID_VALUE);
                var player = new TransitionAnimationPlayer(_this765.id, triggerName, element);
                _this765._engine.totalQueuedPlayers++;

                _this765._queue.push({
                  element: element,
                  triggerName: triggerName,
                  transition: transition,
                  fromState: fromState,
                  toState: toState,
                  player: player,
                  isFallbackTransition: true
                });
              });
            }
          }
        }, {
          key: "removeNode",
          value: function removeNode(element, context) {
            var _this766 = this;

            var engine = this._engine;

            if (element.childElementCount) {
              this._signalRemovalForInnerTriggers(element, context);
            } // this means that a * => VOID animation was detected and kicked off


            if (this.triggerLeaveAnimation(element, context, true)) return; // find the player that is animating and make sure that the
            // removal is delayed until that player has completed

            var containsPotentialParentTransition = false;

            if (engine.totalAnimations) {
              var currentPlayers = engine.players.length ? engine.playersByQueriedElement.get(element) : []; // when this `if statement` does not continue forward it means that
              // a previous animation query has selected the current element and
              // is animating it. In this situation want to continue forwards and
              // allow the element to be queued up for animation later.

              if (currentPlayers && currentPlayers.length) {
                containsPotentialParentTransition = true;
              } else {
                var parent = element;

                while (parent = parent.parentNode) {
                  var triggers = engine.statesByElement.get(parent);

                  if (triggers) {
                    containsPotentialParentTransition = true;
                    break;
                  }
                }
              }
            } // at this stage we know that the element will either get removed
            // during flush or will be picked up by a parent query. Either way
            // we need to fire the listeners for this element when it DOES get
            // removed (once the query parent animation is done or after flush)


            this.prepareLeaveAnimationListeners(element); // whether or not a parent has an animation we need to delay the deferral of the leave
            // operation until we have more information (which we do after flush() has been called)

            if (containsPotentialParentTransition) {
              engine.markElementAsRemoved(this.id, element, false, context);
            } else {
              var removalFlag = element[REMOVAL_FLAG];

              if (!removalFlag || removalFlag === NULL_REMOVAL_STATE) {
                // we do this after the flush has occurred such
                // that the callbacks can be fired
                engine.afterFlush(function () {
                  return _this766.clearElementCache(element);
                });
                engine.destroyInnerAnimations(element);

                engine._onRemovalComplete(element, context);
              }
            }
          }
        }, {
          key: "insertNode",
          value: function insertNode(element, parent) {
            addClass(element, this._hostClassName);
          }
        }, {
          key: "drainQueuedTransitions",
          value: function drainQueuedTransitions(microtaskId) {
            var _this767 = this;

            var instructions = [];

            this._queue.forEach(function (entry) {
              var player = entry.player;
              if (player.destroyed) return;
              var element = entry.element;

              var listeners = _this767._elementListeners.get(element);

              if (listeners) {
                listeners.forEach(function (listener) {
                  if (listener.name == entry.triggerName) {
                    var baseEvent = makeAnimationEvent(element, entry.triggerName, entry.fromState.value, entry.toState.value);
                    baseEvent['_data'] = microtaskId;
                    listenOnPlayer(entry.player, listener.phase, baseEvent, listener.callback);
                  }
                });
              }

              if (player.markedForDestroy) {
                _this767._engine.afterFlush(function () {
                  // now we can destroy the element properly since the event listeners have
                  // been bound to the player
                  player.destroy();
                });
              } else {
                instructions.push(entry);
              }
            });

            this._queue = [];
            return instructions.sort(function (a, b) {
              // if depCount == 0 them move to front
              // otherwise if a contains b then move back
              var d0 = a.transition.ast.depCount;
              var d1 = b.transition.ast.depCount;

              if (d0 == 0 || d1 == 0) {
                return d0 - d1;
              }

              return _this767._engine.driver.containsElement(a.element, b.element) ? 1 : -1;
            });
          }
        }, {
          key: "destroy",
          value: function destroy(context) {
            this.players.forEach(function (p) {
              return p.destroy();
            });

            this._signalRemovalForInnerTriggers(this.hostElement, context);
          }
        }, {
          key: "elementContainsData",
          value: function elementContainsData(element) {
            var containsData = false;
            if (this._elementListeners.has(element)) containsData = true;
            containsData = (this._queue.find(function (entry) {
              return entry.element === element;
            }) ? true : false) || containsData;
            return containsData;
          }
        }]);

        return AnimationTransitionNamespace;
      }();

      var TransitionAnimationEngine = /*#__PURE__*/function () {
        function TransitionAnimationEngine(bodyNode, driver, _normalizer) {
          _classCallCheck2(this, TransitionAnimationEngine);

          this.bodyNode = bodyNode;
          this.driver = driver;
          this._normalizer = _normalizer;
          this.players = [];
          this.newHostElements = new Map();
          this.playersByElement = new Map();
          this.playersByQueriedElement = new Map();
          this.statesByElement = new Map();
          this.disabledNodes = new Set();
          this.totalAnimations = 0;
          this.totalQueuedPlayers = 0;
          this._namespaceLookup = {};
          this._namespaceList = [];
          this._flushFns = [];
          this._whenQuietFns = [];
          this.namespacesByHostElement = new Map();
          this.collectedEnterElements = [];
          this.collectedLeaveElements = []; // this method is designed to be overridden by the code that uses this engine

          this.onRemovalComplete = function (element, context) {};
        }
        /** @internal */


        _createClass2(TransitionAnimationEngine, [{
          key: "_onRemovalComplete",
          value: function _onRemovalComplete(element, context) {
            this.onRemovalComplete(element, context);
          }
        }, {
          key: "queuedPlayers",
          get: function get() {
            var players = [];

            this._namespaceList.forEach(function (ns) {
              ns.players.forEach(function (player) {
                if (player.queued) {
                  players.push(player);
                }
              });
            });

            return players;
          }
        }, {
          key: "createNamespace",
          value: function createNamespace(namespaceId, hostElement) {
            var ns = new AnimationTransitionNamespace(namespaceId, hostElement, this);

            if (hostElement.parentNode) {
              this._balanceNamespaceList(ns, hostElement);
            } else {
              // defer this later until flush during when the host element has
              // been inserted so that we know exactly where to place it in
              // the namespace list
              this.newHostElements.set(hostElement, ns); // given that this host element is apart of the animation code, it
              // may or may not be inserted by a parent node that is an of an
              // animation renderer type. If this happens then we can still have
              // access to this item when we query for :enter nodes. If the parent
              // is a renderer then the set data-structure will normalize the entry

              this.collectEnterElement(hostElement);
            }

            return this._namespaceLookup[namespaceId] = ns;
          }
        }, {
          key: "_balanceNamespaceList",
          value: function _balanceNamespaceList(ns, hostElement) {
            var limit = this._namespaceList.length - 1;

            if (limit >= 0) {
              var found = false;

              for (var i = limit; i >= 0; i--) {
                var nextNamespace = this._namespaceList[i];

                if (this.driver.containsElement(nextNamespace.hostElement, hostElement)) {
                  this._namespaceList.splice(i + 1, 0, ns);

                  found = true;
                  break;
                }
              }

              if (!found) {
                this._namespaceList.splice(0, 0, ns);
              }
            } else {
              this._namespaceList.push(ns);
            }

            this.namespacesByHostElement.set(hostElement, ns);
            return ns;
          }
        }, {
          key: "register",
          value: function register(namespaceId, hostElement) {
            var ns = this._namespaceLookup[namespaceId];

            if (!ns) {
              ns = this.createNamespace(namespaceId, hostElement);
            }

            return ns;
          }
        }, {
          key: "registerTrigger",
          value: function registerTrigger(namespaceId, name, trigger) {
            var ns = this._namespaceLookup[namespaceId];

            if (ns && ns.register(name, trigger)) {
              this.totalAnimations++;
            }
          }
        }, {
          key: "destroy",
          value: function destroy(namespaceId, context) {
            var _this768 = this;

            if (!namespaceId) return;

            var ns = this._fetchNamespace(namespaceId);

            this.afterFlush(function () {
              _this768.namespacesByHostElement["delete"](ns.hostElement);

              delete _this768._namespaceLookup[namespaceId];

              var index = _this768._namespaceList.indexOf(ns);

              if (index >= 0) {
                _this768._namespaceList.splice(index, 1);
              }
            });
            this.afterFlushAnimationsDone(function () {
              return ns.destroy(context);
            });
          }
        }, {
          key: "_fetchNamespace",
          value: function _fetchNamespace(id) {
            return this._namespaceLookup[id];
          }
        }, {
          key: "fetchNamespacesByElement",
          value: function fetchNamespacesByElement(element) {
            // normally there should only be one namespace per element, however
            // if @triggers are placed on both the component element and then
            // its host element (within the component code) then there will be
            // two namespaces returned. We use a set here to simply the dedupe
            // of namespaces incase there are multiple triggers both the elm and host
            var namespaces = new Set();
            var elementStates = this.statesByElement.get(element);

            if (elementStates) {
              var keys = Object.keys(elementStates);

              for (var i = 0; i < keys.length; i++) {
                var nsId = elementStates[keys[i]].namespaceId;

                if (nsId) {
                  var ns = this._fetchNamespace(nsId);

                  if (ns) {
                    namespaces.add(ns);
                  }
                }
              }
            }

            return namespaces;
          }
        }, {
          key: "trigger",
          value: function trigger(namespaceId, element, name, value) {
            if (isElementNode(element)) {
              var ns = this._fetchNamespace(namespaceId);

              if (ns) {
                ns.trigger(element, name, value);
                return true;
              }
            }

            return false;
          }
        }, {
          key: "insertNode",
          value: function insertNode(namespaceId, element, parent, insertBefore) {
            if (!isElementNode(element)) return; // special case for when an element is removed and reinserted (move operation)
            // when this occurs we do not want to use the element for deletion later

            var details = element[REMOVAL_FLAG];

            if (details && details.setForRemoval) {
              details.setForRemoval = false;
              details.setForMove = true;
              var index = this.collectedLeaveElements.indexOf(element);

              if (index >= 0) {
                this.collectedLeaveElements.splice(index, 1);
              }
            } // in the event that the namespaceId is blank then the caller
            // code does not contain any animation code in it, but it is
            // just being called so that the node is marked as being inserted


            if (namespaceId) {
              var ns = this._fetchNamespace(namespaceId); // This if-statement is a workaround for router issue #21947.
              // The router sometimes hits a race condition where while a route
              // is being instantiated a new navigation arrives, triggering leave
              // animation of DOM that has not been fully initialized, until this
              // is resolved, we need to handle the scenario when DOM is not in a
              // consistent state during the animation.


              if (ns) {
                ns.insertNode(element, parent);
              }
            } // only *directives and host elements are inserted before


            if (insertBefore) {
              this.collectEnterElement(element);
            }
          }
        }, {
          key: "collectEnterElement",
          value: function collectEnterElement(element) {
            this.collectedEnterElements.push(element);
          }
        }, {
          key: "markElementAsDisabled",
          value: function markElementAsDisabled(element, value) {
            if (value) {
              if (!this.disabledNodes.has(element)) {
                this.disabledNodes.add(element);
                addClass(element, DISABLED_CLASSNAME);
              }
            } else if (this.disabledNodes.has(element)) {
              this.disabledNodes["delete"](element);
              removeClass(element, DISABLED_CLASSNAME);
            }
          }
        }, {
          key: "removeNode",
          value: function removeNode(namespaceId, element, isHostElement, context) {
            if (isElementNode(element)) {
              var ns = namespaceId ? this._fetchNamespace(namespaceId) : null;

              if (ns) {
                ns.removeNode(element, context);
              } else {
                this.markElementAsRemoved(namespaceId, element, false, context);
              }

              if (isHostElement) {
                var hostNS = this.namespacesByHostElement.get(element);

                if (hostNS && hostNS.id !== namespaceId) {
                  hostNS.removeNode(element, context);
                }
              }
            } else {
              this._onRemovalComplete(element, context);
            }
          }
        }, {
          key: "markElementAsRemoved",
          value: function markElementAsRemoved(namespaceId, element, hasAnimation, context) {
            this.collectedLeaveElements.push(element);
            element[REMOVAL_FLAG] = {
              namespaceId: namespaceId,
              setForRemoval: context,
              hasAnimation: hasAnimation,
              removedBeforeQueried: false
            };
          }
        }, {
          key: "listen",
          value: function listen(namespaceId, element, name, phase, callback) {
            if (isElementNode(element)) {
              return this._fetchNamespace(namespaceId).listen(element, name, phase, callback);
            }

            return function () {};
          }
        }, {
          key: "_buildInstruction",
          value: function _buildInstruction(entry, subTimelines, enterClassName, leaveClassName, skipBuildAst) {
            return entry.transition.build(this.driver, entry.element, entry.fromState.value, entry.toState.value, enterClassName, leaveClassName, entry.fromState.options, entry.toState.options, subTimelines, skipBuildAst);
          }
        }, {
          key: "destroyInnerAnimations",
          value: function destroyInnerAnimations(containerElement) {
            var _this769 = this;

            var elements = this.driver.query(containerElement, NG_TRIGGER_SELECTOR, true);
            elements.forEach(function (element) {
              return _this769.destroyActiveAnimationsForElement(element);
            });
            if (this.playersByQueriedElement.size == 0) return;
            elements = this.driver.query(containerElement, NG_ANIMATING_SELECTOR, true);
            elements.forEach(function (element) {
              return _this769.finishActiveQueriedAnimationOnElement(element);
            });
          }
        }, {
          key: "destroyActiveAnimationsForElement",
          value: function destroyActiveAnimationsForElement(element) {
            var players = this.playersByElement.get(element);

            if (players) {
              players.forEach(function (player) {
                // special case for when an element is set for destruction, but hasn't started.
                // in this situation we want to delay the destruction until the flush occurs
                // so that any event listeners attached to the player are triggered.
                if (player.queued) {
                  player.markedForDestroy = true;
                } else {
                  player.destroy();
                }
              });
            }
          }
        }, {
          key: "finishActiveQueriedAnimationOnElement",
          value: function finishActiveQueriedAnimationOnElement(element) {
            var players = this.playersByQueriedElement.get(element);

            if (players) {
              players.forEach(function (player) {
                return player.finish();
              });
            }
          }
        }, {
          key: "whenRenderingDone",
          value: function whenRenderingDone() {
            var _this770 = this;

            return new Promise(function (resolve) {
              if (_this770.players.length) {
                return optimizeGroupPlayer(_this770.players).onDone(function () {
                  return resolve();
                });
              } else {
                resolve();
              }
            });
          }
        }, {
          key: "processLeaveNode",
          value: function processLeaveNode(element) {
            var _this771 = this;

            var details = element[REMOVAL_FLAG];

            if (details && details.setForRemoval) {
              // this will prevent it from removing it twice
              element[REMOVAL_FLAG] = NULL_REMOVAL_STATE;

              if (details.namespaceId) {
                this.destroyInnerAnimations(element);

                var ns = this._fetchNamespace(details.namespaceId);

                if (ns) {
                  ns.clearElementCache(element);
                }
              }

              this._onRemovalComplete(element, details.setForRemoval);
            }

            if (this.driver.matchesElement(element, DISABLED_SELECTOR)) {
              this.markElementAsDisabled(element, false);
            }

            this.driver.query(element, DISABLED_SELECTOR, true).forEach(function (node) {
              _this771.markElementAsDisabled(node, false);
            });
          }
        }, {
          key: "flush",
          value: function flush() {
            var _this772 = this;

            var microtaskId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1;
            var players = [];

            if (this.newHostElements.size) {
              this.newHostElements.forEach(function (ns, element) {
                return _this772._balanceNamespaceList(ns, element);
              });
              this.newHostElements.clear();
            }

            if (this.totalAnimations && this.collectedEnterElements.length) {
              for (var i = 0; i < this.collectedEnterElements.length; i++) {
                var elm = this.collectedEnterElements[i];
                addClass(elm, STAR_CLASSNAME);
              }
            }

            if (this._namespaceList.length && (this.totalQueuedPlayers || this.collectedLeaveElements.length)) {
              var cleanupFns = [];

              try {
                players = this._flushAnimations(cleanupFns, microtaskId);
              } finally {
                for (var _i40 = 0; _i40 < cleanupFns.length; _i40++) {
                  cleanupFns[_i40]();
                }
              }
            } else {
              for (var _i41 = 0; _i41 < this.collectedLeaveElements.length; _i41++) {
                var element = this.collectedLeaveElements[_i41];
                this.processLeaveNode(element);
              }
            }

            this.totalQueuedPlayers = 0;
            this.collectedEnterElements.length = 0;
            this.collectedLeaveElements.length = 0;

            this._flushFns.forEach(function (fn) {
              return fn();
            });

            this._flushFns = [];

            if (this._whenQuietFns.length) {
              // we move these over to a variable so that
              // if any new callbacks are registered in another
              // flush they do not populate the existing set
              var quietFns = this._whenQuietFns;
              this._whenQuietFns = [];

              if (players.length) {
                optimizeGroupPlayer(players).onDone(function () {
                  quietFns.forEach(function (fn) {
                    return fn();
                  });
                });
              } else {
                quietFns.forEach(function (fn) {
                  return fn();
                });
              }
            }
          }
        }, {
          key: "reportError",
          value: function reportError(errors) {
            throw new Error("Unable to process animations due to the following failed trigger transitions\n ".concat(errors.join('\n')));
          }
        }, {
          key: "_flushAnimations",
          value: function _flushAnimations(cleanupFns, microtaskId) {
            var _this773 = this;

            var subTimelines = new ElementInstructionMap();
            var skippedPlayers = [];
            var skippedPlayersMap = new Map();
            var queuedInstructions = [];
            var queriedElements = new Map();
            var allPreStyleElements = new Map();
            var allPostStyleElements = new Map();
            var disabledElementsSet = new Set();
            this.disabledNodes.forEach(function (node) {
              disabledElementsSet.add(node);

              var nodesThatAreDisabled = _this773.driver.query(node, QUEUED_SELECTOR, true);

              for (var _i42 = 0; _i42 < nodesThatAreDisabled.length; _i42++) {
                disabledElementsSet.add(nodesThatAreDisabled[_i42]);
              }
            });
            var bodyNode = this.bodyNode;
            var allTriggerElements = Array.from(this.statesByElement.keys());
            var enterNodeMap = buildRootMap(allTriggerElements, this.collectedEnterElements); // this must occur before the instructions are built below such that
            // the :enter queries match the elements (since the timeline queries
            // are fired during instruction building).

            var enterNodeMapIds = new Map();
            var i = 0;
            enterNodeMap.forEach(function (nodes, root) {
              var className = ENTER_CLASSNAME + i++;
              enterNodeMapIds.set(root, className);
              nodes.forEach(function (node) {
                return addClass(node, className);
              });
            });
            var allLeaveNodes = [];
            var mergedLeaveNodes = new Set();
            var leaveNodesWithoutAnimations = new Set();

            for (var _i43 = 0; _i43 < this.collectedLeaveElements.length; _i43++) {
              var element = this.collectedLeaveElements[_i43];
              var details = element[REMOVAL_FLAG];

              if (details && details.setForRemoval) {
                allLeaveNodes.push(element);
                mergedLeaveNodes.add(element);

                if (details.hasAnimation) {
                  this.driver.query(element, STAR_SELECTOR, true).forEach(function (elm) {
                    return mergedLeaveNodes.add(elm);
                  });
                } else {
                  leaveNodesWithoutAnimations.add(element);
                }
              }
            }

            var leaveNodeMapIds = new Map();
            var leaveNodeMap = buildRootMap(allTriggerElements, Array.from(mergedLeaveNodes));
            leaveNodeMap.forEach(function (nodes, root) {
              var className = LEAVE_CLASSNAME + i++;
              leaveNodeMapIds.set(root, className);
              nodes.forEach(function (node) {
                return addClass(node, className);
              });
            });
            cleanupFns.push(function () {
              enterNodeMap.forEach(function (nodes, root) {
                var className = enterNodeMapIds.get(root);
                nodes.forEach(function (node) {
                  return removeClass(node, className);
                });
              });
              leaveNodeMap.forEach(function (nodes, root) {
                var className = leaveNodeMapIds.get(root);
                nodes.forEach(function (node) {
                  return removeClass(node, className);
                });
              });
              allLeaveNodes.forEach(function (element) {
                _this773.processLeaveNode(element);
              });
            });
            var allPlayers = [];
            var erroneousTransitions = [];

            for (var _i44 = this._namespaceList.length - 1; _i44 >= 0; _i44--) {
              var ns = this._namespaceList[_i44];
              ns.drainQueuedTransitions(microtaskId).forEach(function (entry) {
                var player = entry.player;
                var element = entry.element;
                allPlayers.push(player);

                if (_this773.collectedEnterElements.length) {
                  var _details = element[REMOVAL_FLAG]; // move animations are currently not supported...

                  if (_details && _details.setForMove) {
                    player.destroy();
                    return;
                  }
                }

                var nodeIsOrphaned = !bodyNode || !_this773.driver.containsElement(bodyNode, element);
                var leaveClassName = leaveNodeMapIds.get(element);
                var enterClassName = enterNodeMapIds.get(element);

                var instruction = _this773._buildInstruction(entry, subTimelines, enterClassName, leaveClassName, nodeIsOrphaned);

                if (instruction.errors && instruction.errors.length) {
                  erroneousTransitions.push(instruction);
                  return;
                } // even though the element may not be apart of the DOM, it may
                // still be added at a later point (due to the mechanics of content
                // projection and/or dynamic component insertion) therefore it's
                // important we still style the element.


                if (nodeIsOrphaned) {
                  player.onStart(function () {
                    return eraseStyles(element, instruction.fromStyles);
                  });
                  player.onDestroy(function () {
                    return setStyles(element, instruction.toStyles);
                  });
                  skippedPlayers.push(player);
                  return;
                } // if a unmatched transition is queued to go then it SHOULD NOT render
                // an animation and cancel the previously running animations.


                if (entry.isFallbackTransition) {
                  player.onStart(function () {
                    return eraseStyles(element, instruction.fromStyles);
                  });
                  player.onDestroy(function () {
                    return setStyles(element, instruction.toStyles);
                  });
                  skippedPlayers.push(player);
                  return;
                } // this means that if a parent animation uses this animation as a sub trigger
                // then it will instruct the timeline builder to not add a player delay, but
                // instead stretch the first keyframe gap up until the animation starts. The
                // reason this is important is to prevent extra initialization styles from being
                // required by the user in the animation.


                instruction.timelines.forEach(function (tl) {
                  return tl.stretchStartingKeyframe = true;
                });
                subTimelines.append(element, instruction.timelines);
                var tuple = {
                  instruction: instruction,
                  player: player,
                  element: element
                };
                queuedInstructions.push(tuple);
                instruction.queriedElements.forEach(function (element) {
                  return getOrSetAsInMap(queriedElements, element, []).push(player);
                });
                instruction.preStyleProps.forEach(function (stringMap, element) {
                  var props = Object.keys(stringMap);

                  if (props.length) {
                    var setVal = allPreStyleElements.get(element);

                    if (!setVal) {
                      allPreStyleElements.set(element, setVal = new Set());
                    }

                    props.forEach(function (prop) {
                      return setVal.add(prop);
                    });
                  }
                });
                instruction.postStyleProps.forEach(function (stringMap, element) {
                  var props = Object.keys(stringMap);
                  var setVal = allPostStyleElements.get(element);

                  if (!setVal) {
                    allPostStyleElements.set(element, setVal = new Set());
                  }

                  props.forEach(function (prop) {
                    return setVal.add(prop);
                  });
                });
              });
            }

            if (erroneousTransitions.length) {
              var errors = [];
              erroneousTransitions.forEach(function (instruction) {
                errors.push("@".concat(instruction.triggerName, " has failed due to:\n"));
                instruction.errors.forEach(function (error) {
                  return errors.push("- ".concat(error, "\n"));
                });
              });
              allPlayers.forEach(function (player) {
                return player.destroy();
              });
              this.reportError(errors);
            }

            var allPreviousPlayersMap = new Map(); // this map works to tell which element in the DOM tree is contained by
            // which animation. Further down below this map will get populated once
            // the players are built and in doing so it can efficiently figure out
            // if a sub player is skipped due to a parent player having priority.

            var animationElementMap = new Map();
            queuedInstructions.forEach(function (entry) {
              var element = entry.element;

              if (subTimelines.has(element)) {
                animationElementMap.set(element, element);

                _this773._beforeAnimationBuild(entry.player.namespaceId, entry.instruction, allPreviousPlayersMap);
              }
            });
            skippedPlayers.forEach(function (player) {
              var element = player.element;

              var previousPlayers = _this773._getPreviousPlayers(element, false, player.namespaceId, player.triggerName, null);

              previousPlayers.forEach(function (prevPlayer) {
                getOrSetAsInMap(allPreviousPlayersMap, element, []).push(prevPlayer);
                prevPlayer.destroy();
              });
            }); // this is a special case for nodes that will be removed (either by)
            // having their own leave animations or by being queried in a container
            // that will be removed once a parent animation is complete. The idea
            // here is that * styles must be identical to ! styles because of
            // backwards compatibility (* is also filled in by default in many places).
            // Otherwise * styles will return an empty value or auto since the element
            // that is being getComputedStyle'd will not be visible (since * = destination)

            var replaceNodes = allLeaveNodes.filter(function (node) {
              return replacePostStylesAsPre(node, allPreStyleElements, allPostStyleElements);
            }); // POST STAGE: fill the * styles

            var postStylesMap = new Map();
            var allLeaveQueriedNodes = cloakAndComputeStyles(postStylesMap, this.driver, leaveNodesWithoutAnimations, allPostStyleElements, _angular_animations__WEBPACK_IMPORTED_MODULE_0__["AUTO_STYLE"]);
            allLeaveQueriedNodes.forEach(function (node) {
              if (replacePostStylesAsPre(node, allPreStyleElements, allPostStyleElements)) {
                replaceNodes.push(node);
              }
            }); // PRE STAGE: fill the ! styles

            var preStylesMap = new Map();
            enterNodeMap.forEach(function (nodes, root) {
              cloakAndComputeStyles(preStylesMap, _this773.driver, new Set(nodes), allPreStyleElements, _angular_animations__WEBPACK_IMPORTED_MODULE_0__["ɵPRE_STYLE"]);
            });
            replaceNodes.forEach(function (node) {
              var post = postStylesMap.get(node);
              var pre = preStylesMap.get(node);
              postStylesMap.set(node, Object.assign(Object.assign({}, post), pre));
            });
            var rootPlayers = [];
            var subPlayers = [];
            var NO_PARENT_ANIMATION_ELEMENT_DETECTED = {};
            queuedInstructions.forEach(function (entry) {
              var element = entry.element,
                  player = entry.player,
                  instruction = entry.instruction; // this means that it was never consumed by a parent animation which
              // means that it is independent and therefore should be set for animation

              if (subTimelines.has(element)) {
                if (disabledElementsSet.has(element)) {
                  player.onDestroy(function () {
                    return setStyles(element, instruction.toStyles);
                  });
                  player.disabled = true;
                  player.overrideTotalTime(instruction.totalTime);
                  skippedPlayers.push(player);
                  return;
                } // this will flow up the DOM and query the map to figure out
                // if a parent animation has priority over it. In the situation
                // that a parent is detected then it will cancel the loop. If
                // nothing is detected, or it takes a few hops to find a parent,
                // then it will fill in the missing nodes and signal them as having
                // a detected parent (or a NO_PARENT value via a special constant).


                var parentWithAnimation = NO_PARENT_ANIMATION_ELEMENT_DETECTED;

                if (animationElementMap.size > 1) {
                  var elm = element;
                  var parentsToAdd = [];

                  while (elm = elm.parentNode) {
                    var detectedParent = animationElementMap.get(elm);

                    if (detectedParent) {
                      parentWithAnimation = detectedParent;
                      break;
                    }

                    parentsToAdd.push(elm);
                  }

                  parentsToAdd.forEach(function (parent) {
                    return animationElementMap.set(parent, parentWithAnimation);
                  });
                }

                var innerPlayer = _this773._buildAnimation(player.namespaceId, instruction, allPreviousPlayersMap, skippedPlayersMap, preStylesMap, postStylesMap);

                player.setRealPlayer(innerPlayer);

                if (parentWithAnimation === NO_PARENT_ANIMATION_ELEMENT_DETECTED) {
                  rootPlayers.push(player);
                } else {
                  var parentPlayers = _this773.playersByElement.get(parentWithAnimation);

                  if (parentPlayers && parentPlayers.length) {
                    player.parentPlayer = optimizeGroupPlayer(parentPlayers);
                  }

                  skippedPlayers.push(player);
                }
              } else {
                eraseStyles(element, instruction.fromStyles);
                player.onDestroy(function () {
                  return setStyles(element, instruction.toStyles);
                }); // there still might be a ancestor player animating this
                // element therefore we will still add it as a sub player
                // even if its animation may be disabled

                subPlayers.push(player);

                if (disabledElementsSet.has(element)) {
                  skippedPlayers.push(player);
                }
              }
            }); // find all of the sub players' corresponding inner animation player

            subPlayers.forEach(function (player) {
              // even if any players are not found for a sub animation then it
              // will still complete itself after the next tick since it's Noop
              var playersForElement = skippedPlayersMap.get(player.element);

              if (playersForElement && playersForElement.length) {
                var innerPlayer = optimizeGroupPlayer(playersForElement);
                player.setRealPlayer(innerPlayer);
              }
            }); // the reason why we don't actually play the animation is
            // because all that a skipped player is designed to do is to
            // fire the start/done transition callback events

            skippedPlayers.forEach(function (player) {
              if (player.parentPlayer) {
                player.syncPlayerEvents(player.parentPlayer);
              } else {
                player.destroy();
              }
            }); // run through all of the queued removals and see if they
            // were picked up by a query. If not then perform the removal
            // operation right away unless a parent animation is ongoing.

            for (var _i45 = 0; _i45 < allLeaveNodes.length; _i45++) {
              var _element2 = allLeaveNodes[_i45];
              var _details2 = _element2[REMOVAL_FLAG];
              removeClass(_element2, LEAVE_CLASSNAME); // this means the element has a removal animation that is being
              // taken care of and therefore the inner elements will hang around
              // until that animation is over (or the parent queried animation)

              if (_details2 && _details2.hasAnimation) continue;
              var players = []; // if this element is queried or if it contains queried children
              // then we want for the element not to be removed from the page
              // until the queried animations have finished

              if (queriedElements.size) {
                var queriedPlayerResults = queriedElements.get(_element2);

                if (queriedPlayerResults && queriedPlayerResults.length) {
                  players.push.apply(players, _toConsumableArray(queriedPlayerResults));
                }

                var queriedInnerElements = this.driver.query(_element2, NG_ANIMATING_SELECTOR, true);

                for (var j = 0; j < queriedInnerElements.length; j++) {
                  var queriedPlayers = queriedElements.get(queriedInnerElements[j]);

                  if (queriedPlayers && queriedPlayers.length) {
                    players.push.apply(players, _toConsumableArray(queriedPlayers));
                  }
                }
              }

              var activePlayers = players.filter(function (p) {
                return !p.destroyed;
              });

              if (activePlayers.length) {
                removeNodesAfterAnimationDone(this, _element2, activePlayers);
              } else {
                this.processLeaveNode(_element2);
              }
            } // this is required so the cleanup method doesn't remove them


            allLeaveNodes.length = 0;
            rootPlayers.forEach(function (player) {
              _this773.players.push(player);

              player.onDone(function () {
                player.destroy();

                var index = _this773.players.indexOf(player);

                _this773.players.splice(index, 1);
              });
              player.play();
            });
            return rootPlayers;
          }
        }, {
          key: "elementContainsData",
          value: function elementContainsData(namespaceId, element) {
            var containsData = false;
            var details = element[REMOVAL_FLAG];
            if (details && details.setForRemoval) containsData = true;
            if (this.playersByElement.has(element)) containsData = true;
            if (this.playersByQueriedElement.has(element)) containsData = true;
            if (this.statesByElement.has(element)) containsData = true;
            return this._fetchNamespace(namespaceId).elementContainsData(element) || containsData;
          }
        }, {
          key: "afterFlush",
          value: function afterFlush(callback) {
            this._flushFns.push(callback);
          }
        }, {
          key: "afterFlushAnimationsDone",
          value: function afterFlushAnimationsDone(callback) {
            this._whenQuietFns.push(callback);
          }
        }, {
          key: "_getPreviousPlayers",
          value: function _getPreviousPlayers(element, isQueriedElement, namespaceId, triggerName, toStateValue) {
            var players = [];

            if (isQueriedElement) {
              var queriedElementPlayers = this.playersByQueriedElement.get(element);

              if (queriedElementPlayers) {
                players = queriedElementPlayers;
              }
            } else {
              var elementPlayers = this.playersByElement.get(element);

              if (elementPlayers) {
                var isRemovalAnimation = !toStateValue || toStateValue == VOID_VALUE;
                elementPlayers.forEach(function (player) {
                  if (player.queued) return;
                  if (!isRemovalAnimation && player.triggerName != triggerName) return;
                  players.push(player);
                });
              }
            }

            if (namespaceId || triggerName) {
              players = players.filter(function (player) {
                if (namespaceId && namespaceId != player.namespaceId) return false;
                if (triggerName && triggerName != player.triggerName) return false;
                return true;
              });
            }

            return players;
          }
        }, {
          key: "_beforeAnimationBuild",
          value: function _beforeAnimationBuild(namespaceId, instruction, allPreviousPlayersMap) {
            var _this774 = this;

            var triggerName = instruction.triggerName;
            var rootElement = instruction.element; // when a removal animation occurs, ALL previous players are collected
            // and destroyed (even if they are outside of the current namespace)

            var targetNameSpaceId = instruction.isRemovalTransition ? undefined : namespaceId;
            var targetTriggerName = instruction.isRemovalTransition ? undefined : triggerName;

            var _iterator76 = _createForOfIteratorHelper(instruction.timelines),
                _step75;

            try {
              var _loop10 = function _loop10() {
                var timelineInstruction = _step75.value;
                var element = timelineInstruction.element;
                var isQueriedElement = element !== rootElement;
                var players = getOrSetAsInMap(allPreviousPlayersMap, element, []);

                var previousPlayers = _this774._getPreviousPlayers(element, isQueriedElement, targetNameSpaceId, targetTriggerName, instruction.toState);

                previousPlayers.forEach(function (player) {
                  var realPlayer = player.getRealPlayer();

                  if (realPlayer.beforeDestroy) {
                    realPlayer.beforeDestroy();
                  }

                  player.destroy();
                  players.push(player);
                });
              };

              for (_iterator76.s(); !(_step75 = _iterator76.n()).done;) {
                _loop10();
              } // this needs to be done so that the PRE/POST styles can be
              // computed properly without interfering with the previous animation

            } catch (err) {
              _iterator76.e(err);
            } finally {
              _iterator76.f();
            }

            eraseStyles(rootElement, instruction.fromStyles);
          }
        }, {
          key: "_buildAnimation",
          value: function _buildAnimation(namespaceId, instruction, allPreviousPlayersMap, skippedPlayersMap, preStylesMap, postStylesMap) {
            var _this775 = this;

            var triggerName = instruction.triggerName;
            var rootElement = instruction.element; // we first run this so that the previous animation player
            // data can be passed into the successive animation players

            var allQueriedPlayers = [];
            var allConsumedElements = new Set();
            var allSubElements = new Set();
            var allNewPlayers = instruction.timelines.map(function (timelineInstruction) {
              var element = timelineInstruction.element;
              allConsumedElements.add(element); // FIXME (matsko): make sure to-be-removed animations are removed properly

              var details = element[REMOVAL_FLAG];
              if (details && details.removedBeforeQueried) return new _angular_animations__WEBPACK_IMPORTED_MODULE_0__["NoopAnimationPlayer"](timelineInstruction.duration, timelineInstruction.delay);
              var isQueriedElement = element !== rootElement;
              var previousPlayers = flattenGroupPlayers((allPreviousPlayersMap.get(element) || EMPTY_PLAYER_ARRAY).map(function (p) {
                return p.getRealPlayer();
              })).filter(function (p) {
                // the `element` is not apart of the AnimationPlayer definition, but
                // Mock/WebAnimations
                // use the element within their implementation. This will be added in Angular5 to
                // AnimationPlayer
                var pp = p;
                return pp.element ? pp.element === element : false;
              });
              var preStyles = preStylesMap.get(element);
              var postStyles = postStylesMap.get(element);
              var keyframes = normalizeKeyframes(_this775.driver, _this775._normalizer, element, timelineInstruction.keyframes, preStyles, postStyles);

              var player = _this775._buildPlayer(timelineInstruction, keyframes, previousPlayers); // this means that this particular player belongs to a sub trigger. It is
              // important that we match this player up with the corresponding (@trigger.listener)


              if (timelineInstruction.subTimeline && skippedPlayersMap) {
                allSubElements.add(element);
              }

              if (isQueriedElement) {
                var wrappedPlayer = new TransitionAnimationPlayer(namespaceId, triggerName, element);
                wrappedPlayer.setRealPlayer(player);
                allQueriedPlayers.push(wrappedPlayer);
              }

              return player;
            });
            allQueriedPlayers.forEach(function (player) {
              getOrSetAsInMap(_this775.playersByQueriedElement, player.element, []).push(player);
              player.onDone(function () {
                return deleteOrUnsetInMap(_this775.playersByQueriedElement, player.element, player);
              });
            });
            allConsumedElements.forEach(function (element) {
              return addClass(element, NG_ANIMATING_CLASSNAME);
            });
            var player = optimizeGroupPlayer(allNewPlayers);
            player.onDestroy(function () {
              allConsumedElements.forEach(function (element) {
                return removeClass(element, NG_ANIMATING_CLASSNAME);
              });
              setStyles(rootElement, instruction.toStyles);
            }); // this basically makes all of the callbacks for sub element animations
            // be dependent on the upper players for when they finish

            allSubElements.forEach(function (element) {
              getOrSetAsInMap(skippedPlayersMap, element, []).push(player);
            });
            return player;
          }
        }, {
          key: "_buildPlayer",
          value: function _buildPlayer(instruction, keyframes, previousPlayers) {
            if (keyframes.length > 0) {
              return this.driver.animate(instruction.element, keyframes, instruction.duration, instruction.delay, instruction.easing, previousPlayers);
            } // special case for when an empty transition|definition is provided
            // ... there is no point in rendering an empty animation


            return new _angular_animations__WEBPACK_IMPORTED_MODULE_0__["NoopAnimationPlayer"](instruction.duration, instruction.delay);
          }
        }]);

        return TransitionAnimationEngine;
      }();

      var TransitionAnimationPlayer = /*#__PURE__*/function () {
        function TransitionAnimationPlayer(namespaceId, triggerName, element) {
          _classCallCheck2(this, TransitionAnimationPlayer);

          this.namespaceId = namespaceId;
          this.triggerName = triggerName;
          this.element = element;
          this._player = new _angular_animations__WEBPACK_IMPORTED_MODULE_0__["NoopAnimationPlayer"]();
          this._containsRealPlayer = false;
          this._queuedCallbacks = {};
          this.destroyed = false;
          this.markedForDestroy = false;
          this.disabled = false;
          this.queued = true;
          this.totalTime = 0;
        }

        _createClass2(TransitionAnimationPlayer, [{
          key: "setRealPlayer",
          value: function setRealPlayer(player) {
            var _this776 = this;

            if (this._containsRealPlayer) return;
            this._player = player;
            Object.keys(this._queuedCallbacks).forEach(function (phase) {
              _this776._queuedCallbacks[phase].forEach(function (callback) {
                return listenOnPlayer(player, phase, undefined, callback);
              });
            });
            this._queuedCallbacks = {};
            this._containsRealPlayer = true;
            this.overrideTotalTime(player.totalTime);
            this.queued = false;
          }
        }, {
          key: "getRealPlayer",
          value: function getRealPlayer() {
            return this._player;
          }
        }, {
          key: "overrideTotalTime",
          value: function overrideTotalTime(totalTime) {
            this.totalTime = totalTime;
          }
        }, {
          key: "syncPlayerEvents",
          value: function syncPlayerEvents(player) {
            var _this777 = this;

            var p = this._player;

            if (p.triggerCallback) {
              player.onStart(function () {
                return p.triggerCallback('start');
              });
            }

            player.onDone(function () {
              return _this777.finish();
            });
            player.onDestroy(function () {
              return _this777.destroy();
            });
          }
        }, {
          key: "_queueEvent",
          value: function _queueEvent(name, callback) {
            getOrSetAsInMap(this._queuedCallbacks, name, []).push(callback);
          }
        }, {
          key: "onDone",
          value: function onDone(fn) {
            if (this.queued) {
              this._queueEvent('done', fn);
            }

            this._player.onDone(fn);
          }
        }, {
          key: "onStart",
          value: function onStart(fn) {
            if (this.queued) {
              this._queueEvent('start', fn);
            }

            this._player.onStart(fn);
          }
        }, {
          key: "onDestroy",
          value: function onDestroy(fn) {
            if (this.queued) {
              this._queueEvent('destroy', fn);
            }

            this._player.onDestroy(fn);
          }
        }, {
          key: "init",
          value: function init() {
            this._player.init();
          }
        }, {
          key: "hasStarted",
          value: function hasStarted() {
            return this.queued ? false : this._player.hasStarted();
          }
        }, {
          key: "play",
          value: function play() {
            !this.queued && this._player.play();
          }
        }, {
          key: "pause",
          value: function pause() {
            !this.queued && this._player.pause();
          }
        }, {
          key: "restart",
          value: function restart() {
            !this.queued && this._player.restart();
          }
        }, {
          key: "finish",
          value: function finish() {
            this._player.finish();
          }
        }, {
          key: "destroy",
          value: function destroy() {
            this.destroyed = true;

            this._player.destroy();
          }
        }, {
          key: "reset",
          value: function reset() {
            !this.queued && this._player.reset();
          }
        }, {
          key: "setPosition",
          value: function setPosition(p) {
            if (!this.queued) {
              this._player.setPosition(p);
            }
          }
        }, {
          key: "getPosition",
          value: function getPosition() {
            return this.queued ? 0 : this._player.getPosition();
          }
          /** @internal */

        }, {
          key: "triggerCallback",
          value: function triggerCallback(phaseName) {
            var p = this._player;

            if (p.triggerCallback) {
              p.triggerCallback(phaseName);
            }
          }
        }]);

        return TransitionAnimationPlayer;
      }();

      function deleteOrUnsetInMap(map, key, value) {
        var currentValues;

        if (map instanceof Map) {
          currentValues = map.get(key);

          if (currentValues) {
            if (currentValues.length) {
              var index = currentValues.indexOf(value);
              currentValues.splice(index, 1);
            }

            if (currentValues.length == 0) {
              map["delete"](key);
            }
          }
        } else {
          currentValues = map[key];

          if (currentValues) {
            if (currentValues.length) {
              var _index5 = currentValues.indexOf(value);

              currentValues.splice(_index5, 1);
            }

            if (currentValues.length == 0) {
              delete map[key];
            }
          }
        }

        return currentValues;
      }

      function normalizeTriggerValue(value) {
        // we use `!= null` here because it's the most simple
        // way to test against a "falsy" value without mixing
        // in empty strings or a zero value. DO NOT OPTIMIZE.
        return value != null ? value : null;
      }

      function isElementNode(node) {
        return node && node['nodeType'] === 1;
      }

      function isTriggerEventValid(eventName) {
        return eventName == 'start' || eventName == 'done';
      }

      function cloakElement(element, value) {
        var oldValue = element.style.display;
        element.style.display = value != null ? value : 'none';
        return oldValue;
      }

      function cloakAndComputeStyles(valuesMap, driver, elements, elementPropsMap, defaultStyle) {
        var cloakVals = [];
        elements.forEach(function (element) {
          return cloakVals.push(cloakElement(element));
        });
        var failedElements = [];
        elementPropsMap.forEach(function (props, element) {
          var styles = {};
          props.forEach(function (prop) {
            var value = styles[prop] = driver.computeStyle(element, prop, defaultStyle); // there is no easy way to detect this because a sub element could be removed
            // by a parent animation element being detached.

            if (!value || value.length == 0) {
              element[REMOVAL_FLAG] = NULL_REMOVED_QUERIED_STATE;
              failedElements.push(element);
            }
          });
          valuesMap.set(element, styles);
        }); // we use a index variable here since Set.forEach(a, i) does not return
        // an index value for the closure (but instead just the value)

        var i = 0;
        elements.forEach(function (element) {
          return cloakElement(element, cloakVals[i++]);
        });
        return failedElements;
      }
      /*
      Since the Angular renderer code will return a collection of inserted
      nodes in all areas of a DOM tree, it's up to this algorithm to figure
      out which nodes are roots for each animation @trigger.
      
      By placing each inserted node into a Set and traversing upwards, it
      is possible to find the @trigger elements and well any direct *star
      insertion nodes, if a @trigger root is found then the enter element
      is placed into the Map[@trigger] spot.
       */


      function buildRootMap(roots, nodes) {
        var rootMap = new Map();
        roots.forEach(function (root) {
          return rootMap.set(root, []);
        });
        if (nodes.length == 0) return rootMap;
        var NULL_NODE = 1;
        var nodeSet = new Set(nodes);
        var localRootMap = new Map();

        function getRoot(node) {
          if (!node) return NULL_NODE;
          var root = localRootMap.get(node);
          if (root) return root;
          var parent = node.parentNode;

          if (rootMap.has(parent)) {
            // ngIf inside @trigger
            root = parent;
          } else if (nodeSet.has(parent)) {
            // ngIf inside ngIf
            root = NULL_NODE;
          } else {
            // recurse upwards
            root = getRoot(parent);
          }

          localRootMap.set(node, root);
          return root;
        }

        nodes.forEach(function (node) {
          var root = getRoot(node);

          if (root !== NULL_NODE) {
            rootMap.get(root).push(node);
          }
        });
        return rootMap;
      }

      var CLASSES_CACHE_KEY = '$$classes';

      function containsClass(element, className) {
        if (element.classList) {
          return element.classList.contains(className);
        } else {
          var classes = element[CLASSES_CACHE_KEY];
          return classes && classes[className];
        }
      }

      function addClass(element, className) {
        if (element.classList) {
          element.classList.add(className);
        } else {
          var classes = element[CLASSES_CACHE_KEY];

          if (!classes) {
            classes = element[CLASSES_CACHE_KEY] = {};
          }

          classes[className] = true;
        }
      }

      function removeClass(element, className) {
        if (element.classList) {
          element.classList.remove(className);
        } else {
          var classes = element[CLASSES_CACHE_KEY];

          if (classes) {
            delete classes[className];
          }
        }
      }

      function removeNodesAfterAnimationDone(engine, element, players) {
        optimizeGroupPlayer(players).onDone(function () {
          return engine.processLeaveNode(element);
        });
      }

      function flattenGroupPlayers(players) {
        var finalPlayers = [];

        _flattenGroupPlayersRecur(players, finalPlayers);

        return finalPlayers;
      }

      function _flattenGroupPlayersRecur(players, finalPlayers) {
        for (var i = 0; i < players.length; i++) {
          var player = players[i];

          if (player instanceof _angular_animations__WEBPACK_IMPORTED_MODULE_0__["ɵAnimationGroupPlayer"]) {
            _flattenGroupPlayersRecur(player.players, finalPlayers);
          } else {
            finalPlayers.push(player);
          }
        }
      }

      function objEquals(a, b) {
        var k1 = Object.keys(a);
        var k2 = Object.keys(b);
        if (k1.length != k2.length) return false;

        for (var i = 0; i < k1.length; i++) {
          var prop = k1[i];
          if (!b.hasOwnProperty(prop) || a[prop] !== b[prop]) return false;
        }

        return true;
      }

      function replacePostStylesAsPre(element, allPreStyleElements, allPostStyleElements) {
        var postEntry = allPostStyleElements.get(element);
        if (!postEntry) return false;
        var preEntry = allPreStyleElements.get(element);

        if (preEntry) {
          postEntry.forEach(function (data) {
            return preEntry.add(data);
          });
        } else {
          allPreStyleElements.set(element, postEntry);
        }

        allPostStyleElements["delete"](element);
        return true;
      }

      var AnimationEngine = /*#__PURE__*/function () {
        function AnimationEngine(bodyNode, _driver, normalizer) {
          var _this778 = this;

          _classCallCheck2(this, AnimationEngine);

          this.bodyNode = bodyNode;
          this._driver = _driver;
          this._triggerCache = {}; // this method is designed to be overridden by the code that uses this engine

          this.onRemovalComplete = function (element, context) {};

          this._transitionEngine = new TransitionAnimationEngine(bodyNode, _driver, normalizer);
          this._timelineEngine = new TimelineAnimationEngine(bodyNode, _driver, normalizer);

          this._transitionEngine.onRemovalComplete = function (element, context) {
            return _this778.onRemovalComplete(element, context);
          };
        }

        _createClass2(AnimationEngine, [{
          key: "registerTrigger",
          value: function registerTrigger(componentId, namespaceId, hostElement, name, metadata) {
            var cacheKey = componentId + '-' + name;
            var trigger = this._triggerCache[cacheKey];

            if (!trigger) {
              var errors = [];
              var ast = buildAnimationAst(this._driver, metadata, errors);

              if (errors.length) {
                throw new Error("The animation trigger \"".concat(name, "\" has failed to build due to the following errors:\n - ").concat(errors.join('\n - ')));
              }

              trigger = buildTrigger(name, ast);
              this._triggerCache[cacheKey] = trigger;
            }

            this._transitionEngine.registerTrigger(namespaceId, name, trigger);
          }
        }, {
          key: "register",
          value: function register(namespaceId, hostElement) {
            this._transitionEngine.register(namespaceId, hostElement);
          }
        }, {
          key: "destroy",
          value: function destroy(namespaceId, context) {
            this._transitionEngine.destroy(namespaceId, context);
          }
        }, {
          key: "onInsert",
          value: function onInsert(namespaceId, element, parent, insertBefore) {
            this._transitionEngine.insertNode(namespaceId, element, parent, insertBefore);
          }
        }, {
          key: "onRemove",
          value: function onRemove(namespaceId, element, context, isHostElement) {
            this._transitionEngine.removeNode(namespaceId, element, isHostElement || false, context);
          }
        }, {
          key: "disableAnimations",
          value: function disableAnimations(element, disable) {
            this._transitionEngine.markElementAsDisabled(element, disable);
          }
        }, {
          key: "process",
          value: function process(namespaceId, element, property, value) {
            if (property.charAt(0) == '@') {
              var _parseTimelineCommand = parseTimelineCommand(property),
                  _parseTimelineCommand2 = _slicedToArray(_parseTimelineCommand, 2),
                  id = _parseTimelineCommand2[0],
                  action = _parseTimelineCommand2[1];

              var args = value;

              this._timelineEngine.command(id, element, action, args);
            } else {
              this._transitionEngine.trigger(namespaceId, element, property, value);
            }
          }
        }, {
          key: "listen",
          value: function listen(namespaceId, element, eventName, eventPhase, callback) {
            // @@listen
            if (eventName.charAt(0) == '@') {
              var _parseTimelineCommand3 = parseTimelineCommand(eventName),
                  _parseTimelineCommand4 = _slicedToArray(_parseTimelineCommand3, 2),
                  id = _parseTimelineCommand4[0],
                  action = _parseTimelineCommand4[1];

              return this._timelineEngine.listen(id, element, action, callback);
            }

            return this._transitionEngine.listen(namespaceId, element, eventName, eventPhase, callback);
          }
        }, {
          key: "flush",
          value: function flush() {
            var microtaskId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1;

            this._transitionEngine.flush(microtaskId);
          }
        }, {
          key: "players",
          get: function get() {
            return this._transitionEngine.players.concat(this._timelineEngine.players);
          }
        }, {
          key: "whenRenderingDone",
          value: function whenRenderingDone() {
            return this._transitionEngine.whenRenderingDone();
          }
        }]);

        return AnimationEngine;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Returns an instance of `SpecialCasedStyles` if and when any special (non animateable) styles are
       * detected.
       *
       * In CSS there exist properties that cannot be animated within a keyframe animation
       * (whether it be via CSS keyframes or web-animations) and the animation implementation
       * will ignore them. This function is designed to detect those special cased styles and
       * return a container that will be executed at the start and end of the animation.
       *
       * @returns an instance of `SpecialCasedStyles` if any special styles are detected otherwise `null`
       */


      function packageNonAnimatableStyles(element, styles) {
        var startStyles = null;
        var endStyles = null;

        if (Array.isArray(styles) && styles.length) {
          startStyles = filterNonAnimatableStyles(styles[0]);

          if (styles.length > 1) {
            endStyles = filterNonAnimatableStyles(styles[styles.length - 1]);
          }
        } else if (styles) {
          startStyles = filterNonAnimatableStyles(styles);
        }

        return startStyles || endStyles ? new SpecialCasedStyles(element, startStyles, endStyles) : null;
      }
      /**
       * Designed to be executed during a keyframe-based animation to apply any special-cased styles.
       *
       * When started (when the `start()` method is run) then the provided `startStyles`
       * will be applied. When finished (when the `finish()` method is called) the
       * `endStyles` will be applied as well any any starting styles. Finally when
       * `destroy()` is called then all styles will be removed.
       */


      var SpecialCasedStyles = /*#__PURE__*/function () {
        function SpecialCasedStyles(_element, _startStyles, _endStyles) {
          _classCallCheck2(this, SpecialCasedStyles);

          this._element = _element;
          this._startStyles = _startStyles;
          this._endStyles = _endStyles;
          this._state = 0
          /* Pending */
          ;
          var initialStyles = SpecialCasedStyles.initialStylesByElement.get(_element);

          if (!initialStyles) {
            SpecialCasedStyles.initialStylesByElement.set(_element, initialStyles = {});
          }

          this._initialStyles = initialStyles;
        }

        _createClass2(SpecialCasedStyles, [{
          key: "start",
          value: function start() {
            if (this._state < 1
            /* Started */
            ) {
              if (this._startStyles) {
                setStyles(this._element, this._startStyles, this._initialStyles);
              }

              this._state = 1
              /* Started */
              ;
            }
          }
        }, {
          key: "finish",
          value: function finish() {
            this.start();

            if (this._state < 2
            /* Finished */
            ) {
              setStyles(this._element, this._initialStyles);

              if (this._endStyles) {
                setStyles(this._element, this._endStyles);
                this._endStyles = null;
              }

              this._state = 1
              /* Started */
              ;
            }
          }
        }, {
          key: "destroy",
          value: function destroy() {
            this.finish();

            if (this._state < 3
            /* Destroyed */
            ) {
              SpecialCasedStyles.initialStylesByElement["delete"](this._element);

              if (this._startStyles) {
                eraseStyles(this._element, this._startStyles);
                this._endStyles = null;
              }

              if (this._endStyles) {
                eraseStyles(this._element, this._endStyles);
                this._endStyles = null;
              }

              setStyles(this._element, this._initialStyles);
              this._state = 3
              /* Destroyed */
              ;
            }
          }
        }]);

        return SpecialCasedStyles;
      }();

      SpecialCasedStyles.initialStylesByElement = new WeakMap();

      function filterNonAnimatableStyles(styles) {
        var result = null;
        var props = Object.keys(styles);

        for (var i = 0; i < props.length; i++) {
          var prop = props[i];

          if (isNonAnimatableStyle(prop)) {
            result = result || {};
            result[prop] = styles[prop];
          }
        }

        return result;
      }

      function isNonAnimatableStyle(prop) {
        return prop === 'display' || prop === 'position';
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var ELAPSED_TIME_MAX_DECIMAL_PLACES = 3;
      var ANIMATION_PROP = 'animation';
      var ANIMATIONEND_EVENT = 'animationend';
      var ONE_SECOND$1 = 1000;

      var ElementAnimationStyleHandler = /*#__PURE__*/function () {
        function ElementAnimationStyleHandler(_element, _name, _duration, _delay, _easing, _fillMode, _onDoneFn) {
          var _this779 = this;

          _classCallCheck2(this, ElementAnimationStyleHandler);

          this._element = _element;
          this._name = _name;
          this._duration = _duration;
          this._delay = _delay;
          this._easing = _easing;
          this._fillMode = _fillMode;
          this._onDoneFn = _onDoneFn;
          this._finished = false;
          this._destroyed = false;
          this._startTime = 0;
          this._position = 0;

          this._eventFn = function (e) {
            return _this779._handleCallback(e);
          };
        }

        _createClass2(ElementAnimationStyleHandler, [{
          key: "apply",
          value: function apply() {
            applyKeyframeAnimation(this._element, "".concat(this._duration, "ms ").concat(this._easing, " ").concat(this._delay, "ms 1 normal ").concat(this._fillMode, " ").concat(this._name));
            addRemoveAnimationEvent(this._element, this._eventFn, false);
            this._startTime = Date.now();
          }
        }, {
          key: "pause",
          value: function pause() {
            playPauseAnimation(this._element, this._name, 'paused');
          }
        }, {
          key: "resume",
          value: function resume() {
            playPauseAnimation(this._element, this._name, 'running');
          }
        }, {
          key: "setPosition",
          value: function setPosition(position) {
            var index = findIndexForAnimation(this._element, this._name);
            this._position = position * this._duration;
            setAnimationStyle(this._element, 'Delay', "-".concat(this._position, "ms"), index);
          }
        }, {
          key: "getPosition",
          value: function getPosition() {
            return this._position;
          }
        }, {
          key: "_handleCallback",
          value: function _handleCallback(event) {
            var timestamp = event._ngTestManualTimestamp || Date.now();
            var elapsedTime = parseFloat(event.elapsedTime.toFixed(ELAPSED_TIME_MAX_DECIMAL_PLACES)) * ONE_SECOND$1;

            if (event.animationName == this._name && Math.max(timestamp - this._startTime, 0) >= this._delay && elapsedTime >= this._duration) {
              this.finish();
            }
          }
        }, {
          key: "finish",
          value: function finish() {
            if (this._finished) return;
            this._finished = true;

            this._onDoneFn();

            addRemoveAnimationEvent(this._element, this._eventFn, true);
          }
        }, {
          key: "destroy",
          value: function destroy() {
            if (this._destroyed) return;
            this._destroyed = true;
            this.finish();
            removeKeyframeAnimation(this._element, this._name);
          }
        }]);

        return ElementAnimationStyleHandler;
      }();

      function playPauseAnimation(element, name, status) {
        var index = findIndexForAnimation(element, name);
        setAnimationStyle(element, 'PlayState', status, index);
      }

      function applyKeyframeAnimation(element, value) {
        var anim = getAnimationStyle(element, '').trim();
        var index = 0;

        if (anim.length) {
          index = countChars(anim, ',') + 1;
          value = "".concat(anim, ", ").concat(value);
        }

        setAnimationStyle(element, '', value);
        return index;
      }

      function removeKeyframeAnimation(element, name) {
        var anim = getAnimationStyle(element, '');
        var tokens = anim.split(',');
        var index = findMatchingTokenIndex(tokens, name);

        if (index >= 0) {
          tokens.splice(index, 1);
          var newValue = tokens.join(',');
          setAnimationStyle(element, '', newValue);
        }
      }

      function findIndexForAnimation(element, value) {
        var anim = getAnimationStyle(element, '');

        if (anim.indexOf(',') > 0) {
          var tokens = anim.split(',');
          return findMatchingTokenIndex(tokens, value);
        }

        return findMatchingTokenIndex([anim], value);
      }

      function findMatchingTokenIndex(tokens, searchToken) {
        for (var i = 0; i < tokens.length; i++) {
          if (tokens[i].indexOf(searchToken) >= 0) {
            return i;
          }
        }

        return -1;
      }

      function addRemoveAnimationEvent(element, fn, doRemove) {
        doRemove ? element.removeEventListener(ANIMATIONEND_EVENT, fn) : element.addEventListener(ANIMATIONEND_EVENT, fn);
      }

      function setAnimationStyle(element, name, value, index) {
        var prop = ANIMATION_PROP + name;

        if (index != null) {
          var oldValue = element.style[prop];

          if (oldValue.length) {
            var tokens = oldValue.split(',');
            tokens[index] = value;
            value = tokens.join(',');
          }
        }

        element.style[prop] = value;
      }

      function getAnimationStyle(element, name) {
        return element.style[ANIMATION_PROP + name];
      }

      function countChars(value, _char8) {
        var count = 0;

        for (var i = 0; i < value.length; i++) {
          var c = value.charAt(i);
          if (c === _char8) count++;
        }

        return count;
      }

      var DEFAULT_FILL_MODE = 'forwards';
      var DEFAULT_EASING = 'linear';

      var CssKeyframesPlayer = /*#__PURE__*/function () {
        function CssKeyframesPlayer(element, keyframes, animationName, _duration, _delay, easing, _finalStyles, _specialStyles) {
          _classCallCheck2(this, CssKeyframesPlayer);

          this.element = element;
          this.keyframes = keyframes;
          this.animationName = animationName;
          this._duration = _duration;
          this._delay = _delay;
          this._finalStyles = _finalStyles;
          this._specialStyles = _specialStyles;
          this._onDoneFns = [];
          this._onStartFns = [];
          this._onDestroyFns = [];
          this._started = false;
          this.currentSnapshot = {};
          this._state = 0;
          this.easing = easing || DEFAULT_EASING;
          this.totalTime = _duration + _delay;

          this._buildStyler();
        }

        _createClass2(CssKeyframesPlayer, [{
          key: "onStart",
          value: function onStart(fn) {
            this._onStartFns.push(fn);
          }
        }, {
          key: "onDone",
          value: function onDone(fn) {
            this._onDoneFns.push(fn);
          }
        }, {
          key: "onDestroy",
          value: function onDestroy(fn) {
            this._onDestroyFns.push(fn);
          }
        }, {
          key: "destroy",
          value: function destroy() {
            this.init();
            if (this._state >= 4
            /* DESTROYED */
            ) return;
            this._state = 4
            /* DESTROYED */
            ;

            this._styler.destroy();

            this._flushStartFns();

            this._flushDoneFns();

            if (this._specialStyles) {
              this._specialStyles.destroy();
            }

            this._onDestroyFns.forEach(function (fn) {
              return fn();
            });

            this._onDestroyFns = [];
          }
        }, {
          key: "_flushDoneFns",
          value: function _flushDoneFns() {
            this._onDoneFns.forEach(function (fn) {
              return fn();
            });

            this._onDoneFns = [];
          }
        }, {
          key: "_flushStartFns",
          value: function _flushStartFns() {
            this._onStartFns.forEach(function (fn) {
              return fn();
            });

            this._onStartFns = [];
          }
        }, {
          key: "finish",
          value: function finish() {
            this.init();
            if (this._state >= 3
            /* FINISHED */
            ) return;
            this._state = 3
            /* FINISHED */
            ;

            this._styler.finish();

            this._flushStartFns();

            if (this._specialStyles) {
              this._specialStyles.finish();
            }

            this._flushDoneFns();
          }
        }, {
          key: "setPosition",
          value: function setPosition(value) {
            this._styler.setPosition(value);
          }
        }, {
          key: "getPosition",
          value: function getPosition() {
            return this._styler.getPosition();
          }
        }, {
          key: "hasStarted",
          value: function hasStarted() {
            return this._state >= 2
            /* STARTED */
            ;
          }
        }, {
          key: "init",
          value: function init() {
            if (this._state >= 1
            /* INITIALIZED */
            ) return;
            this._state = 1
            /* INITIALIZED */
            ;
            var elm = this.element;

            this._styler.apply();

            if (this._delay) {
              this._styler.pause();
            }
          }
        }, {
          key: "play",
          value: function play() {
            this.init();

            if (!this.hasStarted()) {
              this._flushStartFns();

              this._state = 2
              /* STARTED */
              ;

              if (this._specialStyles) {
                this._specialStyles.start();
              }
            }

            this._styler.resume();
          }
        }, {
          key: "pause",
          value: function pause() {
            this.init();

            this._styler.pause();
          }
        }, {
          key: "restart",
          value: function restart() {
            this.reset();
            this.play();
          }
        }, {
          key: "reset",
          value: function reset() {
            this._styler.destroy();

            this._buildStyler();

            this._styler.apply();
          }
        }, {
          key: "_buildStyler",
          value: function _buildStyler() {
            var _this780 = this;

            this._styler = new ElementAnimationStyleHandler(this.element, this.animationName, this._duration, this._delay, this.easing, DEFAULT_FILL_MODE, function () {
              return _this780.finish();
            });
          }
          /** @internal */

        }, {
          key: "triggerCallback",
          value: function triggerCallback(phaseName) {
            var methods = phaseName == 'start' ? this._onStartFns : this._onDoneFns;
            methods.forEach(function (fn) {
              return fn();
            });
            methods.length = 0;
          }
        }, {
          key: "beforeDestroy",
          value: function beforeDestroy() {
            var _this781 = this;

            this.init();
            var styles = {};

            if (this.hasStarted()) {
              var finished = this._state >= 3
              /* FINISHED */
              ;
              Object.keys(this._finalStyles).forEach(function (prop) {
                if (prop != 'offset') {
                  styles[prop] = finished ? _this781._finalStyles[prop] : computeStyle(_this781.element, prop);
                }
              });
            }

            this.currentSnapshot = styles;
          }
        }]);

        return CssKeyframesPlayer;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var DirectStylePlayer = /*#__PURE__*/function (_angular_animations__) {
        _inherits2(DirectStylePlayer, _angular_animations__);

        var _super380 = _createSuper2(DirectStylePlayer);

        function DirectStylePlayer(element, styles) {
          var _this782;

          _classCallCheck2(this, DirectStylePlayer);

          _this782 = _super380.call(this);
          _this782.element = element;
          _this782._startingStyles = {};
          _this782.__initialized = false;
          _this782._styles = hypenatePropsObject(styles);
          return _this782;
        }

        _createClass2(DirectStylePlayer, [{
          key: "init",
          value: function init() {
            var _this783 = this;

            if (this.__initialized || !this._startingStyles) return;
            this.__initialized = true;
            Object.keys(this._styles).forEach(function (prop) {
              _this783._startingStyles[prop] = _this783.element.style[prop];
            });

            _get2(_getPrototypeOf2(DirectStylePlayer.prototype), "init", this).call(this);
          }
        }, {
          key: "play",
          value: function play() {
            var _this784 = this;

            if (!this._startingStyles) return;
            this.init();
            Object.keys(this._styles).forEach(function (prop) {
              return _this784.element.style.setProperty(prop, _this784._styles[prop]);
            });

            _get2(_getPrototypeOf2(DirectStylePlayer.prototype), "play", this).call(this);
          }
        }, {
          key: "destroy",
          value: function destroy() {
            var _this785 = this;

            if (!this._startingStyles) return;
            Object.keys(this._startingStyles).forEach(function (prop) {
              var value = _this785._startingStyles[prop];

              if (value) {
                _this785.element.style.setProperty(prop, value);
              } else {
                _this785.element.style.removeProperty(prop);
              }
            });
            this._startingStyles = null;

            _get2(_getPrototypeOf2(DirectStylePlayer.prototype), "destroy", this).call(this);
          }
        }]);

        return DirectStylePlayer;
      }(_angular_animations__WEBPACK_IMPORTED_MODULE_0__["NoopAnimationPlayer"]);

      var KEYFRAMES_NAME_PREFIX = 'gen_css_kf_';
      var TAB_SPACE = ' ';

      var CssKeyframesDriver = /*#__PURE__*/function () {
        function CssKeyframesDriver() {
          _classCallCheck2(this, CssKeyframesDriver);

          this._count = 0;
          this._head = document.querySelector('head');
          this._warningIssued = false;
        }

        _createClass2(CssKeyframesDriver, [{
          key: "validateStyleProperty",
          value: function validateStyleProperty(prop) {
            return _validateStyleProperty(prop);
          }
        }, {
          key: "matchesElement",
          value: function matchesElement(element, selector) {
            return _matchesElement(element, selector);
          }
        }, {
          key: "containsElement",
          value: function containsElement(elm1, elm2) {
            return _containsElement(elm1, elm2);
          }
        }, {
          key: "query",
          value: function query(element, selector, multi) {
            return invokeQuery(element, selector, multi);
          }
        }, {
          key: "computeStyle",
          value: function computeStyle(element, prop, defaultValue) {
            return window.getComputedStyle(element)[prop];
          }
        }, {
          key: "buildKeyframeElement",
          value: function buildKeyframeElement(element, name, keyframes) {
            keyframes = keyframes.map(function (kf) {
              return hypenatePropsObject(kf);
            });
            var keyframeStr = "@keyframes ".concat(name, " {\n");
            var tab = '';
            keyframes.forEach(function (kf) {
              tab = TAB_SPACE;
              var offset = parseFloat(kf['offset']);
              keyframeStr += "".concat(tab).concat(offset * 100, "% {\n");
              tab += TAB_SPACE;
              Object.keys(kf).forEach(function (prop) {
                var value = kf[prop];

                switch (prop) {
                  case 'offset':
                    return;

                  case 'easing':
                    if (value) {
                      keyframeStr += "".concat(tab, "animation-timing-function: ").concat(value, ";\n");
                    }

                    return;

                  default:
                    keyframeStr += "".concat(tab).concat(prop, ": ").concat(value, ";\n");
                    return;
                }
              });
              keyframeStr += "".concat(tab, "}\n");
            });
            keyframeStr += "}\n";
            var kfElm = document.createElement('style');
            kfElm.textContent = keyframeStr;
            return kfElm;
          }
        }, {
          key: "animate",
          value: function animate(element, keyframes, duration, delay, easing) {
            var previousPlayers = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : [];
            var scrubberAccessRequested = arguments.length > 6 ? arguments[6] : undefined;

            if (scrubberAccessRequested) {
              this._notifyFaultyScrubber();
            }

            var previousCssKeyframePlayers = previousPlayers.filter(function (player) {
              return player instanceof CssKeyframesPlayer;
            });
            var previousStyles = {};

            if (allowPreviousPlayerStylesMerge(duration, delay)) {
              previousCssKeyframePlayers.forEach(function (player) {
                var styles = player.currentSnapshot;
                Object.keys(styles).forEach(function (prop) {
                  return previousStyles[prop] = styles[prop];
                });
              });
            }

            keyframes = balancePreviousStylesIntoKeyframes(element, keyframes, previousStyles);
            var finalStyles = flattenKeyframesIntoStyles(keyframes); // if there is no animation then there is no point in applying
            // styles and waiting for an event to get fired. This causes lag.
            // It's better to just directly apply the styles to the element
            // via the direct styling animation player.

            if (duration == 0) {
              return new DirectStylePlayer(element, finalStyles);
            }

            var animationName = "".concat(KEYFRAMES_NAME_PREFIX).concat(this._count++);
            var kfElm = this.buildKeyframeElement(element, animationName, keyframes);
            document.querySelector('head').appendChild(kfElm);
            var specialStyles = packageNonAnimatableStyles(element, keyframes);
            var player = new CssKeyframesPlayer(element, keyframes, animationName, duration, delay, easing, finalStyles, specialStyles);
            player.onDestroy(function () {
              return removeElement(kfElm);
            });
            return player;
          }
        }, {
          key: "_notifyFaultyScrubber",
          value: function _notifyFaultyScrubber() {
            if (!this._warningIssued) {
              console.warn('@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n', '  visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill.');
              this._warningIssued = true;
            }
          }
        }]);

        return CssKeyframesDriver;
      }();

      function flattenKeyframesIntoStyles(keyframes) {
        var flatKeyframes = {};

        if (keyframes) {
          var kfs = Array.isArray(keyframes) ? keyframes : [keyframes];
          kfs.forEach(function (kf) {
            Object.keys(kf).forEach(function (prop) {
              if (prop == 'offset' || prop == 'easing') return;
              flatKeyframes[prop] = kf[prop];
            });
          });
        }

        return flatKeyframes;
      }

      function removeElement(node) {
        node.parentNode.removeChild(node);
      }

      var WebAnimationsPlayer = /*#__PURE__*/function () {
        function WebAnimationsPlayer(element, keyframes, options, _specialStyles) {
          _classCallCheck2(this, WebAnimationsPlayer);

          this.element = element;
          this.keyframes = keyframes;
          this.options = options;
          this._specialStyles = _specialStyles;
          this._onDoneFns = [];
          this._onStartFns = [];
          this._onDestroyFns = [];
          this._initialized = false;
          this._finished = false;
          this._started = false;
          this._destroyed = false;
          this.time = 0;
          this.parentPlayer = null;
          this.currentSnapshot = {};
          this._duration = options['duration'];
          this._delay = options['delay'] || 0;
          this.time = this._duration + this._delay;
        }

        _createClass2(WebAnimationsPlayer, [{
          key: "_onFinish",
          value: function _onFinish() {
            if (!this._finished) {
              this._finished = true;

              this._onDoneFns.forEach(function (fn) {
                return fn();
              });

              this._onDoneFns = [];
            }
          }
        }, {
          key: "init",
          value: function init() {
            this._buildPlayer();

            this._preparePlayerBeforeStart();
          }
        }, {
          key: "_buildPlayer",
          value: function _buildPlayer() {
            var _this786 = this;

            if (this._initialized) return;
            this._initialized = true;
            var keyframes = this.keyframes;
            this.domPlayer = this._triggerWebAnimation(this.element, keyframes, this.options);
            this._finalKeyframe = keyframes.length ? keyframes[keyframes.length - 1] : {};
            this.domPlayer.addEventListener('finish', function () {
              return _this786._onFinish();
            });
          }
        }, {
          key: "_preparePlayerBeforeStart",
          value: function _preparePlayerBeforeStart() {
            // this is required so that the player doesn't start to animate right away
            if (this._delay) {
              this._resetDomPlayerState();
            } else {
              this.domPlayer.pause();
            }
          }
          /** @internal */

        }, {
          key: "_triggerWebAnimation",
          value: function _triggerWebAnimation(element, keyframes, options) {
            // jscompiler doesn't seem to know animate is a native property because it's not fully
            // supported yet across common browsers (we polyfill it for Edge/Safari) [CL #143630929]
            return element['animate'](keyframes, options);
          }
        }, {
          key: "onStart",
          value: function onStart(fn) {
            this._onStartFns.push(fn);
          }
        }, {
          key: "onDone",
          value: function onDone(fn) {
            this._onDoneFns.push(fn);
          }
        }, {
          key: "onDestroy",
          value: function onDestroy(fn) {
            this._onDestroyFns.push(fn);
          }
        }, {
          key: "play",
          value: function play() {
            this._buildPlayer();

            if (!this.hasStarted()) {
              this._onStartFns.forEach(function (fn) {
                return fn();
              });

              this._onStartFns = [];
              this._started = true;

              if (this._specialStyles) {
                this._specialStyles.start();
              }
            }

            this.domPlayer.play();
          }
        }, {
          key: "pause",
          value: function pause() {
            this.init();
            this.domPlayer.pause();
          }
        }, {
          key: "finish",
          value: function finish() {
            this.init();

            if (this._specialStyles) {
              this._specialStyles.finish();
            }

            this._onFinish();

            this.domPlayer.finish();
          }
        }, {
          key: "reset",
          value: function reset() {
            this._resetDomPlayerState();

            this._destroyed = false;
            this._finished = false;
            this._started = false;
          }
        }, {
          key: "_resetDomPlayerState",
          value: function _resetDomPlayerState() {
            if (this.domPlayer) {
              this.domPlayer.cancel();
            }
          }
        }, {
          key: "restart",
          value: function restart() {
            this.reset();
            this.play();
          }
        }, {
          key: "hasStarted",
          value: function hasStarted() {
            return this._started;
          }
        }, {
          key: "destroy",
          value: function destroy() {
            if (!this._destroyed) {
              this._destroyed = true;

              this._resetDomPlayerState();

              this._onFinish();

              if (this._specialStyles) {
                this._specialStyles.destroy();
              }

              this._onDestroyFns.forEach(function (fn) {
                return fn();
              });

              this._onDestroyFns = [];
            }
          }
        }, {
          key: "setPosition",
          value: function setPosition(p) {
            this.domPlayer.currentTime = p * this.time;
          }
        }, {
          key: "getPosition",
          value: function getPosition() {
            return this.domPlayer.currentTime / this.time;
          }
        }, {
          key: "totalTime",
          get: function get() {
            return this._delay + this._duration;
          }
        }, {
          key: "beforeDestroy",
          value: function beforeDestroy() {
            var _this787 = this;

            var styles = {};

            if (this.hasStarted()) {
              Object.keys(this._finalKeyframe).forEach(function (prop) {
                if (prop != 'offset') {
                  styles[prop] = _this787._finished ? _this787._finalKeyframe[prop] : computeStyle(_this787.element, prop);
                }
              });
            }

            this.currentSnapshot = styles;
          }
          /** @internal */

        }, {
          key: "triggerCallback",
          value: function triggerCallback(phaseName) {
            var methods = phaseName == 'start' ? this._onStartFns : this._onDoneFns;
            methods.forEach(function (fn) {
              return fn();
            });
            methods.length = 0;
          }
        }]);

        return WebAnimationsPlayer;
      }();

      var WebAnimationsDriver = /*#__PURE__*/function () {
        function WebAnimationsDriver() {
          _classCallCheck2(this, WebAnimationsDriver);

          this._isNativeImpl = /\{\s*\[native\s+code\]\s*\}/.test(getElementAnimateFn().toString());
          this._cssKeyframesDriver = new CssKeyframesDriver();
        }

        _createClass2(WebAnimationsDriver, [{
          key: "validateStyleProperty",
          value: function validateStyleProperty(prop) {
            return _validateStyleProperty(prop);
          }
        }, {
          key: "matchesElement",
          value: function matchesElement(element, selector) {
            return _matchesElement(element, selector);
          }
        }, {
          key: "containsElement",
          value: function containsElement(elm1, elm2) {
            return _containsElement(elm1, elm2);
          }
        }, {
          key: "query",
          value: function query(element, selector, multi) {
            return invokeQuery(element, selector, multi);
          }
        }, {
          key: "computeStyle",
          value: function computeStyle(element, prop, defaultValue) {
            return window.getComputedStyle(element)[prop];
          }
        }, {
          key: "overrideWebAnimationsSupport",
          value: function overrideWebAnimationsSupport(supported) {
            this._isNativeImpl = supported;
          }
        }, {
          key: "animate",
          value: function animate(element, keyframes, duration, delay, easing) {
            var previousPlayers = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : [];
            var scrubberAccessRequested = arguments.length > 6 ? arguments[6] : undefined;
            var useKeyframes = !scrubberAccessRequested && !this._isNativeImpl;

            if (useKeyframes) {
              return this._cssKeyframesDriver.animate(element, keyframes, duration, delay, easing, previousPlayers);
            }

            var fill = delay == 0 ? 'both' : 'forwards';
            var playerOptions = {
              duration: duration,
              delay: delay,
              fill: fill
            }; // we check for this to avoid having a null|undefined value be present
            // for the easing (which results in an error for certain browsers #9752)

            if (easing) {
              playerOptions['easing'] = easing;
            }

            var previousStyles = {};
            var previousWebAnimationPlayers = previousPlayers.filter(function (player) {
              return player instanceof WebAnimationsPlayer;
            });

            if (allowPreviousPlayerStylesMerge(duration, delay)) {
              previousWebAnimationPlayers.forEach(function (player) {
                var styles = player.currentSnapshot;
                Object.keys(styles).forEach(function (prop) {
                  return previousStyles[prop] = styles[prop];
                });
              });
            }

            keyframes = keyframes.map(function (styles) {
              return copyStyles(styles, false);
            });
            keyframes = balancePreviousStylesIntoKeyframes(element, keyframes, previousStyles);
            var specialStyles = packageNonAnimatableStyles(element, keyframes);
            return new WebAnimationsPlayer(element, keyframes, playerOptions, specialStyles);
          }
        }]);

        return WebAnimationsDriver;
      }();

      function supportsWebAnimations() {
        return typeof getElementAnimateFn() === 'function';
      }

      function getElementAnimateFn() {
        return isBrowser() && Element.prototype['animate'] || {};
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Generated bundle index. Do not edit.
       */
      //# sourceMappingURL=browser.js.map

      /***/

    },

    /***/
    "fFD9": function fFD9(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "combineLatest", function () {
        return combineLatest;
      });
      /* harmony import */


      var _util_isArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../util/isArray */
      "DH7j");
      /* harmony import */


      var _observable_combineLatest__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../observable/combineLatest */
      "itXk");
      /* harmony import */


      var _observable_from__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../observable/from */
      "Cfvw");

      var none = {};

      function combineLatest() {
        for (var _len69 = arguments.length, observables = new Array(_len69), _key72 = 0; _key72 < _len69; _key72++) {
          observables[_key72] = arguments[_key72];
        }

        var project = null;

        if (typeof observables[observables.length - 1] === 'function') {
          project = observables.pop();
        }

        if (observables.length === 1 && Object(_util_isArray__WEBPACK_IMPORTED_MODULE_0__["isArray"])(observables[0])) {
          observables = observables[0].slice();
        }

        return function (source) {
          return source.lift.call(Object(_observable_from__WEBPACK_IMPORTED_MODULE_2__["from"])([source].concat(_toConsumableArray(observables))), new _observable_combineLatest__WEBPACK_IMPORTED_MODULE_1__["CombineLatestOperator"](project));
        };
      } //# sourceMappingURL=combineLatest.js.map

      /***/

    },

    /***/
    "fePA": function fePA(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return compareDesc;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name compareDesc
       * @category Common Helpers
       * @summary Compare the two dates reverse chronologically and return -1, 0 or 1.
       *
       * @description
       * Compare the two dates and return -1 if the first date is after the second,
       * 1 if the first date is before the second or 0 if dates are equal.
       *
       * ### 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 {Date|Number} dateLeft - the first date to compare
       * @param {Date|Number} dateRight - the second date to compare
       * @returns {Number} the result of the comparison
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // Compare 11 February 1987 and 10 July 1989 reverse chronologically:
       * var result = compareDesc(new Date(1987, 1, 11), new Date(1989, 6, 10))
       * //=> 1
       *
       * @example
       * // Sort the array of dates in reverse chronological order:
       * var result = [
       *   new Date(1995, 6, 2),
       *   new Date(1987, 1, 11),
       *   new Date(1989, 6, 10)
       * ].sort(compareDesc)
       * //=> [
       * //   Sun Jul 02 1995 00:00:00,
       * //   Mon Jul 10 1989 00:00:00,
       * //   Wed Feb 11 1987 00:00:00
       * // ]
       */


      function compareDesc(dirtyDateLeft, dirtyDateRight) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(2, arguments);
        var dateLeft = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateLeft);
        var dateRight = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateRight);
        var diff = dateLeft.getTime() - dateRight.getTime();

        if (diff > 0) {
          return -1;
        } else if (diff < 0) {
          return 1; // Return 0 if diff is 0; return NaN if diff is NaN
        } else {
          return diff;
        }
      }
      /***/

    },

    /***/
    "fzPg": function fzPg(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Yoruba Nigeria [yo]
      //! author : Atolagbe Abisoye : https://github.com/andela-batolagbe
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var yo = moment.defineLocale('yo', {
          months: 'Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀'.split('_'),
          monthsShort: 'Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀'.split('_'),
          weekdays: 'Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta'.split('_'),
          weekdaysShort: 'Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá'.split('_'),
          weekdaysMin: 'Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb'.split('_'),
          longDateFormat: {
            LT: 'h:mm A',
            LTS: 'h:mm:ss A',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY h:mm A',
            LLLL: 'dddd, D MMMM YYYY h:mm A'
          },
          calendar: {
            sameDay: '[Ònì ni] LT',
            nextDay: '[Ọ̀la ni] LT',
            nextWeek: "dddd [Ọsẹ̀ tón'bọ] [ni] LT",
            lastDay: '[Àna ni] LT',
            lastWeek: 'dddd [Ọsẹ̀ tólọ́] [ni] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'ní %s',
            past: '%s kọjá',
            s: 'ìsẹjú aayá die',
            ss: 'aayá %d',
            m: 'ìsẹjú kan',
            mm: 'ìsẹjú %d',
            h: 'wákati kan',
            hh: 'wákati %d',
            d: 'ọjọ́ kan',
            dd: 'ọjọ́ %d',
            M: 'osù kan',
            MM: 'osù %d',
            y: 'ọdún kan',
            yy: 'ọdún %d'
          },
          dayOfMonthOrdinalParse: /ọjọ́\s\d{1,2}/,
          ordinal: 'ọjọ́ %d',
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return yo;
      });
      /***/

    },

    /***/
    "g9KO": function g9KO(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return subMilliseconds;
      });
      /* harmony import */


      var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../_lib/toInteger/index.js */
      "/h9T");
      /* harmony import */


      var _addMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../addMilliseconds/index.js */
      "pl0G");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name subMilliseconds
       * @category Millisecond Helpers
       * @summary Subtract the specified number of milliseconds from the given date.
       *
       * @description
       * Subtract the specified number of milliseconds from the given date.
       *
       * ### 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 {Date|Number} date - the date to be changed
       * @param {Number} amount - the amount of milliseconds to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
       * @returns {Date} the new date with the milliseconds subtracted
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // Subtract 750 milliseconds from 10 July 2014 12:45:30.000:
       * var result = subMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750)
       * //=> Thu Jul 10 2014 12:45:29.250
       */


      function subMilliseconds(dirtyDate, dirtyAmount) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(2, arguments);
        var amount = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyAmount);
        return Object(_addMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate, -amount);
      }
      /***/

    },

    /***/
    "gA5F": function gA5F(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return lastDayOfISOWeek;
      });
      /* harmony import */


      var _lastDayOfWeek_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../lastDayOfWeek/index.js */
      "gH8E");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name lastDayOfISOWeek
       * @category ISO Week Helpers
       * @summary Return the last day of an ISO week for the given date.
       *
       * @description
       * Return the last day of an ISO week for the given date.
       * The result will be in the local timezone.
       *
       * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
       *
       * ### 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 {Date|Number} date - the original date
       * @returns {Date} the last day of an ISO week
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // The last day of an ISO week for 2 September 2014 11:55:00:
       * var result = lastDayOfISOWeek(new Date(2014, 8, 2, 11, 55, 0))
       * //=> Sun Sep 07 2014 00:00:00
       */


      function lastDayOfISOWeek(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        return Object(_lastDayOfWeek_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate, {
          weekStartsOn: 1
        });
      }
      /***/

    },

    /***/
    "gH8E": function gH8E(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return lastDayOfWeek;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/toInteger/index.js */
      "/h9T");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name lastDayOfWeek
       * @category Week Helpers
       * @summary Return the last day of a week for the given date.
       *
       * @description
       * Return the last day of a week for the given date.
       * The result will be in the local timezone.
       *
       * ### 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 {Date|Number} date - the original date
       * @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 last day of a week
       * @throws {TypeError} 1 argument required
       * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6
       *
       * @example
       * // The last day of a week for 2 September 2014 11:55:00:
       * var result = lastDayOfWeek(new Date(2014, 8, 2, 11, 55, 0))
       * //=> Sat Sep 06 2014 00:00:00
       *
       * @example
       * // If the week starts on Monday, the last day of the week for 2 September 2014 11:55:00:
       * var result = lastDayOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })
       * //=> Sun Sep 07 2014 00:00:00
       */


      function lastDayOfWeek(dirtyDate, dirtyOptions) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(1, arguments);
        var options = dirtyOptions || {};
        var locale = options.locale;
        var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn;
        var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(localeWeekStartsOn);
        var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN

        if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
          throw new RangeError('weekStartsOn must be between 0 and 6');
        }

        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);
        var day = date.getDay();
        var diff = (day < weekStartsOn ? -7 : 0) + 6 - (day - weekStartsOn);
        date.setHours(0, 0, 0, 0);
        date.setDate(date.getDate() + diff);
        return date;
      }
      /***/

    },

    /***/
    "gLRL": function gLRL(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return isWeekend;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name isWeekend
       * @category Weekday Helpers
       * @summary Does the given date fall on a weekend?
       *
       * @description
       * Does the given date fall on a weekend?
       *
       * ### 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 {Date|Number} date - the date to check
       * @returns {Boolean} the date falls on a weekend
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // Does 5 October 2014 fall on a weekend?
       * var result = isWeekend(new Date(2014, 9, 5))
       * //=> true
       */


      function isWeekend(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);
        var day = date.getDay();
        return day === 0 || day === 6;
      }
      /***/

    },

    /***/
    "gME1": function gME1(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return set;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _setMonth_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../setMonth/index.js */
      "nQ4q");
      /* harmony import */


      var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../_lib/toInteger/index.js */
      "/h9T");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name set
       * @category Common Helpers
       * @summary Set date values to a given date.
       *
       * @description
       * Set date values to a given date.
       *
       * Sets time values to date from object `values`.
       * A value is not set if it is undefined or null or doesn't exist in `values`.
       *
       * Note about bundle size: `set` does not internally use `setX` functions from date-fns but instead opts
       * to use native `Date#setX` methods. If you use this function, you may not want to include the
       * other `setX` functions that date-fns provides if you are concerned about the bundle size.
       *
       * @param {Date|Number} date - the date to be changed
       * @param {Object} values - an object with options
       * @param {Number} [values.year] - the number of years to be set
       * @param {Number} [values.month] - the number of months to be set
       * @param {Number} [values.date] - the number of days to be set
       * @param {Number} [values.hours] - the number of hours to be set
       * @param {Number} [values.minutes] - the number of minutes to be set
       * @param {Number} [values.seconds] - the number of seconds to be set
       * @param {Number} [values.milliseconds] - the number of milliseconds to be set
       * @returns {Date} the new date with options set
       * @throws {TypeError} 2 arguments required
       * @throws {RangeError} `values` must be an object
       *
       * @example
       * // Transform 1 September 2014 into 20 October 2015 in a single line:
       * var result = set(new Date(2014, 8, 20), { year: 2015, month: 9, date: 20 })
       * //=> Tue Oct 20 2015 00:00:00
       *
       * @example
       * // Set 12 PM to 1 September 2014 01:23:45 to 1 September 2014 12:00:00:
       * var result = set(new Date(2014, 8, 1, 1, 23, 45), { hours: 12 })
       * //=> Mon Sep 01 2014 12:23:45
       */


      function set(dirtyDate, values) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(2, arguments);

        if (typeof values !== 'object' || values === null) {
          throw new RangeError('values parameter must be an object');
        }

        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate); // Check if date is Invalid Date because Date.prototype.setFullYear ignores the value of Invalid Date

        if (isNaN(date)) {
          return new Date(NaN);
        }

        if (values.year != null) {
          date.setFullYear(values.year);
        }

        if (values.month != null) {
          date = Object(_setMonth_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(date, values.month);
        }

        if (values.date != null) {
          date.setDate(Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(values.date));
        }

        if (values.hours != null) {
          date.setHours(Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(values.hours));
        }

        if (values.minutes != null) {
          date.setMinutes(Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(values.minutes));
        }

        if (values.seconds != null) {
          date.setSeconds(Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(values.seconds));
        }

        if (values.milliseconds != null) {
          date.setMilliseconds(Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(values.milliseconds));
        }

        return date;
      }
      /***/

    },

    /***/
    "gRHU": function gRHU(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "empty", function () {
        return empty;
      });
      /* harmony import */


      var _config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ./config */
      "2fFW");
      /* harmony import */


      var _util_hostReportError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ./util/hostReportError */
      "NJ4a");

      var empty = {
        closed: true,
        next: function next(value) {},
        error: function error(err) {
          if (_config__WEBPACK_IMPORTED_MODULE_0__["config"].useDeprecatedSynchronousErrorHandling) {
            throw err;
          } else {
            Object(_util_hostReportError__WEBPACK_IMPORTED_MODULE_1__["hostReportError"])(err);
          }
        },
        complete: function complete() {}
      }; //# sourceMappingURL=Observer.js.map

      /***/
    },

    /***/
    "gVVK": function gVVK(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Slovenian [sl]
      //! author : Robert Sedovšek : https://github.com/sedovsek
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        function processRelativeTime(number, withoutSuffix, key, isFuture) {
          var result = number + ' ';

          switch (key) {
            case 's':
              return withoutSuffix || isFuture ? 'nekaj sekund' : 'nekaj sekundami';

            case 'ss':
              if (number === 1) {
                result += withoutSuffix ? 'sekundo' : 'sekundi';
              } else if (number === 2) {
                result += withoutSuffix || isFuture ? 'sekundi' : 'sekundah';
              } else if (number < 5) {
                result += withoutSuffix || isFuture ? 'sekunde' : 'sekundah';
              } else {
                result += 'sekund';
              }

              return result;

            case 'm':
              return withoutSuffix ? 'ena minuta' : 'eno minuto';

            case 'mm':
              if (number === 1) {
                result += withoutSuffix ? 'minuta' : 'minuto';
              } else if (number === 2) {
                result += withoutSuffix || isFuture ? 'minuti' : 'minutama';
              } else if (number < 5) {
                result += withoutSuffix || isFuture ? 'minute' : 'minutami';
              } else {
                result += withoutSuffix || isFuture ? 'minut' : 'minutami';
              }

              return result;

            case 'h':
              return withoutSuffix ? 'ena ura' : 'eno uro';

            case 'hh':
              if (number === 1) {
                result += withoutSuffix ? 'ura' : 'uro';
              } else if (number === 2) {
                result += withoutSuffix || isFuture ? 'uri' : 'urama';
              } else if (number < 5) {
                result += withoutSuffix || isFuture ? 'ure' : 'urami';
              } else {
                result += withoutSuffix || isFuture ? 'ur' : 'urami';
              }

              return result;

            case 'd':
              return withoutSuffix || isFuture ? 'en dan' : 'enim dnem';

            case 'dd':
              if (number === 1) {
                result += withoutSuffix || isFuture ? 'dan' : 'dnem';
              } else if (number === 2) {
                result += withoutSuffix || isFuture ? 'dni' : 'dnevoma';
              } else {
                result += withoutSuffix || isFuture ? 'dni' : 'dnevi';
              }

              return result;

            case 'M':
              return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem';

            case 'MM':
              if (number === 1) {
                result += withoutSuffix || isFuture ? 'mesec' : 'mesecem';
              } else if (number === 2) {
                result += withoutSuffix || isFuture ? 'meseca' : 'mesecema';
              } else if (number < 5) {
                result += withoutSuffix || isFuture ? 'mesece' : 'meseci';
              } else {
                result += withoutSuffix || isFuture ? 'mesecev' : 'meseci';
              }

              return result;

            case 'y':
              return withoutSuffix || isFuture ? 'eno leto' : 'enim letom';

            case 'yy':
              if (number === 1) {
                result += withoutSuffix || isFuture ? 'leto' : 'letom';
              } else if (number === 2) {
                result += withoutSuffix || isFuture ? 'leti' : 'letoma';
              } else if (number < 5) {
                result += withoutSuffix || isFuture ? 'leta' : 'leti';
              } else {
                result += withoutSuffix || isFuture ? 'let' : 'leti';
              }

              return result;
          }
        }

        var sl = moment.defineLocale('sl', {
          months: 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split('_'),
          monthsShort: 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split('_'),
          monthsParseExact: true,
          weekdays: 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),
          weekdaysShort: 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),
          weekdaysMin: 'ne_po_to_sr_če_pe_so'.split('_'),
          weekdaysParseExact: true,
          longDateFormat: {
            LT: 'H:mm',
            LTS: 'H:mm:ss',
            L: 'DD. MM. YYYY',
            LL: 'D. MMMM YYYY',
            LLL: 'D. MMMM YYYY H:mm',
            LLLL: 'dddd, D. MMMM YYYY H:mm'
          },
          calendar: {
            sameDay: '[danes ob] LT',
            nextDay: '[jutri ob] LT',
            nextWeek: function nextWeek() {
              switch (this.day()) {
                case 0:
                  return '[v] [nedeljo] [ob] LT';

                case 3:
                  return '[v] [sredo] [ob] LT';

                case 6:
                  return '[v] [soboto] [ob] LT';

                case 1:
                case 2:
                case 4:
                case 5:
                  return '[v] dddd [ob] LT';
              }
            },
            lastDay: '[včeraj ob] LT',
            lastWeek: function lastWeek() {
              switch (this.day()) {
                case 0:
                  return '[prejšnjo] [nedeljo] [ob] LT';

                case 3:
                  return '[prejšnjo] [sredo] [ob] LT';

                case 6:
                  return '[prejšnjo] [soboto] [ob] LT';

                case 1:
                case 2:
                case 4:
                case 5:
                  return '[prejšnji] dddd [ob] LT';
              }
            },
            sameElse: 'L'
          },
          relativeTime: {
            future: 'čez %s',
            past: 'pred %s',
            s: processRelativeTime,
            ss: processRelativeTime,
            m: processRelativeTime,
            mm: processRelativeTime,
            h: processRelativeTime,
            hh: processRelativeTime,
            d: processRelativeTime,
            dd: processRelativeTime,
            M: processRelativeTime,
            MM: processRelativeTime,
            y: processRelativeTime,
            yy: processRelativeTime
          },
          dayOfMonthOrdinalParse: /\d{1,2}\./,
          ordinal: '%d.',
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 7 // The week that contains Jan 7th is the first week of the year.

          }
        });
        return sl;
      });
      /***/

    },

    /***/
    "gXqy": function gXqy(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return differenceInCalendarDays;
      });
      /* harmony import */


      var _lib_getTimezoneOffsetInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../_lib/getTimezoneOffsetInMilliseconds/index.js */
      "JCDJ");
      /* harmony import */


      var _startOfDay_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../startOfDay/index.js */
      "M34a");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");

      var MILLISECONDS_IN_DAY = 86400000;
      /**
       * @name differenceInCalendarDays
       * @category Day Helpers
       * @summary Get the number of calendar days between the given dates.
       *
       * @description
       * Get the number of calendar days between the given dates. This means that the times are removed
       * from the dates and then the difference in days is calculated.
       *
       * ### 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 {Date|Number} dateLeft - the later date
       * @param {Date|Number} dateRight - the earlier date
       * @returns {Number} the number of calendar days
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // How many calendar days are between
       * // 2 July 2011 23:00:00 and 2 July 2012 00:00:00?
       * var result = differenceInCalendarDays(
       *   new Date(2012, 6, 2, 0, 0),
       *   new Date(2011, 6, 2, 23, 0)
       * )
       * //=> 366
       * // How many calendar days are between
       * // 2 July 2011 23:59:00 and 3 July 2011 00:01:00?
       * var result = differenceInCalendarDays(
       *   new Date(2011, 6, 3, 0, 1),
       *   new Date(2011, 6, 2, 23, 59)
       * )
       * //=> 1
       */

      function differenceInCalendarDays(dirtyDateLeft, dirtyDateRight) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(2, arguments);
        var startOfDayLeft = Object(_startOfDay_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDateLeft);
        var startOfDayRight = Object(_startOfDay_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDateRight);
        var timestampLeft = startOfDayLeft.getTime() - Object(_lib_getTimezoneOffsetInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(startOfDayLeft);
        var timestampRight = startOfDayRight.getTime() - Object(_lib_getTimezoneOffsetInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(startOfDayRight); // Round the number of days to the nearest integer
        // because the number of milliseconds in a day is not constant
        // (e.g. it's different in the day of the daylight saving time clock shift)

        return Math.round((timestampLeft - timestampRight) / MILLISECONDS_IN_DAY);
      }
      /***/

    },

    /***/
    "gb/T": function gbT(module, exports, __webpack_require__) {
      ;

      (function (root, factory, undef) {
        if (true) {
          // CommonJS
          module.exports = exports = factory(__webpack_require__(
          /*! ./core */
          "Ib8C"), __webpack_require__(
          /*! ./cipher-core */
          "OLod"));
        } else {}
      })(this, function (CryptoJS) {
        /**
         * Electronic Codebook block mode.
         */
        CryptoJS.mode.ECB = function () {
          var ECB = CryptoJS.lib.BlockCipherMode.extend();
          ECB.Encryptor = ECB.extend({
            processBlock: function processBlock(words, offset) {
              this._cipher.encryptBlock(words, offset);
            }
          });
          ECB.Decryptor = ECB.extend({
            processBlock: function processBlock(words, offset) {
              this._cipher.decryptBlock(words, offset);
            }
          });
          return ECB;
        }();

        return CryptoJS.mode.ECB;
      });
      /***/

    },

    /***/
    "gcYM": function gcYM(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "throttleTime", function () {
        return throttleTime;
      });
      /* harmony import */


      var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Subscriber */
      "7o/Q");
      /* harmony import */


      var _scheduler_async__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../scheduler/async */
      "D0XW");
      /* harmony import */


      var _throttle__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ./throttle */
      "yuhW");

      function throttleTime(duration) {
        var scheduler = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _scheduler_async__WEBPACK_IMPORTED_MODULE_1__["async"];
        var config = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _throttle__WEBPACK_IMPORTED_MODULE_2__["defaultThrottleConfig"];
        return function (source) {
          return source.lift(new ThrottleTimeOperator(duration, scheduler, config.leading, config.trailing));
        };
      }

      var ThrottleTimeOperator = /*#__PURE__*/function () {
        function ThrottleTimeOperator(duration, scheduler, leading, trailing) {
          _classCallCheck2(this, ThrottleTimeOperator);

          this.duration = duration;
          this.scheduler = scheduler;
          this.leading = leading;
          this.trailing = trailing;
        }

        _createClass2(ThrottleTimeOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            return source.subscribe(new ThrottleTimeSubscriber(subscriber, this.duration, this.scheduler, this.leading, this.trailing));
          }
        }]);

        return ThrottleTimeOperator;
      }();

      var ThrottleTimeSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_33) {
        _inherits2(ThrottleTimeSubscriber, _Subscriber__WEBPACK_33);

        var _super381 = _createSuper2(ThrottleTimeSubscriber);

        function ThrottleTimeSubscriber(destination, duration, scheduler, leading, trailing) {
          var _this788;

          _classCallCheck2(this, ThrottleTimeSubscriber);

          _this788 = _super381.call(this, destination);
          _this788.duration = duration;
          _this788.scheduler = scheduler;
          _this788.leading = leading;
          _this788.trailing = trailing;
          _this788._hasTrailingValue = false;
          _this788._trailingValue = null;
          return _this788;
        }

        _createClass2(ThrottleTimeSubscriber, [{
          key: "_next",
          value: function _next(value) {
            if (this.throttled) {
              if (this.trailing) {
                this._trailingValue = value;
                this._hasTrailingValue = true;
              }
            } else {
              this.add(this.throttled = this.scheduler.schedule(dispatchNext, this.duration, {
                subscriber: this
              }));

              if (this.leading) {
                this.destination.next(value);
              } else if (this.trailing) {
                this._trailingValue = value;
                this._hasTrailingValue = true;
              }
            }
          }
        }, {
          key: "_complete",
          value: function _complete() {
            if (this._hasTrailingValue) {
              this.destination.next(this._trailingValue);
              this.destination.complete();
            } else {
              this.destination.complete();
            }
          }
        }, {
          key: "clearThrottle",
          value: function clearThrottle() {
            var throttled = this.throttled;

            if (throttled) {
              if (this.trailing && this._hasTrailingValue) {
                this.destination.next(this._trailingValue);
                this._trailingValue = null;
                this._hasTrailingValue = false;
              }

              throttled.unsubscribe();
              this.remove(throttled);
              this.throttled = null;
            }
          }
        }]);

        return ThrottleTimeSubscriber;
      }(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]);

      function dispatchNext(arg) {
        var subscriber = arg.subscriber;
        subscriber.clearThrottle();
      } //# sourceMappingURL=throttleTime.js.map

      /***/

    },

    /***/
    "gekB": function gekB(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Finnish [fi]
      //! author : Tarmo Aidantausta : https://github.com/bleadof
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var numbersPast = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(' '),
            numbersFuture = ['nolla', 'yhden', 'kahden', 'kolmen', 'neljän', 'viiden', 'kuuden', numbersPast[7], numbersPast[8], numbersPast[9]];

        function translate(number, withoutSuffix, key, isFuture) {
          var result = '';

          switch (key) {
            case 's':
              return isFuture ? 'muutaman sekunnin' : 'muutama sekunti';

            case 'ss':
              result = isFuture ? 'sekunnin' : 'sekuntia';
              break;

            case 'm':
              return isFuture ? 'minuutin' : 'minuutti';

            case 'mm':
              result = isFuture ? 'minuutin' : 'minuuttia';
              break;

            case 'h':
              return isFuture ? 'tunnin' : 'tunti';

            case 'hh':
              result = isFuture ? 'tunnin' : 'tuntia';
              break;

            case 'd':
              return isFuture ? 'päivän' : 'päivä';

            case 'dd':
              result = isFuture ? 'päivän' : 'päivää';
              break;

            case 'M':
              return isFuture ? 'kuukauden' : 'kuukausi';

            case 'MM':
              result = isFuture ? 'kuukauden' : 'kuukautta';
              break;

            case 'y':
              return isFuture ? 'vuoden' : 'vuosi';

            case 'yy':
              result = isFuture ? 'vuoden' : 'vuotta';
              break;
          }

          result = verbalNumber(number, isFuture) + ' ' + result;
          return result;
        }

        function verbalNumber(number, isFuture) {
          return number < 10 ? isFuture ? numbersFuture[number] : numbersPast[number] : number;
        }

        var fi = moment.defineLocale('fi', {
          months: 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split('_'),
          monthsShort: 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split('_'),
          weekdays: 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split('_'),
          weekdaysShort: 'su_ma_ti_ke_to_pe_la'.split('_'),
          weekdaysMin: 'su_ma_ti_ke_to_pe_la'.split('_'),
          longDateFormat: {
            LT: 'HH.mm',
            LTS: 'HH.mm.ss',
            L: 'DD.MM.YYYY',
            LL: 'Do MMMM[ta] YYYY',
            LLL: 'Do MMMM[ta] YYYY, [klo] HH.mm',
            LLLL: 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm',
            l: 'D.M.YYYY',
            ll: 'Do MMM YYYY',
            lll: 'Do MMM YYYY, [klo] HH.mm',
            llll: 'ddd, Do MMM YYYY, [klo] HH.mm'
          },
          calendar: {
            sameDay: '[tänään] [klo] LT',
            nextDay: '[huomenna] [klo] LT',
            nextWeek: 'dddd [klo] LT',
            lastDay: '[eilen] [klo] LT',
            lastWeek: '[viime] dddd[na] [klo] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: '%s päästä',
            past: '%s sitten',
            s: translate,
            ss: translate,
            m: translate,
            mm: translate,
            h: translate,
            hh: translate,
            d: translate,
            dd: translate,
            M: translate,
            MM: translate,
            y: translate,
            yy: translate
          },
          dayOfMonthOrdinalParse: /\d{1,2}\./,
          ordinal: '%d.',
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return fi;
      });
      /***/

    },

    /***/
    "gjCT": function gjCT(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Arabic (Saudi Arabia) [ar-sa]
      //! author : Suhail Alkowaileet : https://github.com/xsoh
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var symbolMap = {
          1: '١',
          2: '٢',
          3: '٣',
          4: '٤',
          5: '٥',
          6: '٦',
          7: '٧',
          8: '٨',
          9: '٩',
          0: '٠'
        },
            numberMap = {
          '١': '1',
          '٢': '2',
          '٣': '3',
          '٤': '4',
          '٥': '5',
          '٦': '6',
          '٧': '7',
          '٨': '8',
          '٩': '9',
          '٠': '0'
        };
        var arSa = moment.defineLocale('ar-sa', {
          months: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
          monthsShort: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
          weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
          weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
          weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
          weekdaysParseExact: true,
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd D MMMM YYYY HH:mm'
          },
          meridiemParse: /ص|م/,
          isPM: function isPM(input) {
            return 'م' === input;
          },
          meridiem: function meridiem(hour, minute, isLower) {
            if (hour < 12) {
              return 'ص';
            } else {
              return 'م';
            }
          },
          calendar: {
            sameDay: '[اليوم على الساعة] LT',
            nextDay: '[غدا على الساعة] LT',
            nextWeek: 'dddd [على الساعة] LT',
            lastDay: '[أمس على الساعة] LT',
            lastWeek: 'dddd [على الساعة] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'في %s',
            past: 'منذ %s',
            s: 'ثوان',
            ss: '%d ثانية',
            m: 'دقيقة',
            mm: '%d دقائق',
            h: 'ساعة',
            hh: '%d ساعات',
            d: 'يوم',
            dd: '%d أيام',
            M: 'شهر',
            MM: '%d أشهر',
            y: 'سنة',
            yy: '%d سنوات'
          },
          preparse: function preparse(string) {
            return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
              return numberMap[match];
            }).replace(/،/g, ',');
          },
          postformat: function postformat(string) {
            return string.replace(/\d/g, function (match) {
              return symbolMap[match];
            }).replace(/,/g, '،');
          },
          week: {
            dow: 0,
            // Sunday is the first day of the week.
            doy: 6 // The week that contains Jan 6th is the first week of the year.

          }
        });
        return arSa;
      });
      /***/

    },

    /***/
    "gr1v": function gr1v(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return getUTCISOWeekYear;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _startOfUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../startOfUTCISOWeek/index.js */
      "tpup");
      /* harmony import */


      var _requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../requiredArgs/index.js */
      "jIYg"); // This function will be a part of public API when UTC function will be implemented.
      // See issue: https://github.com/date-fns/date-fns/issues/376


      function getUTCISOWeekYear(dirtyDate) {
        Object(_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(1, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);
        var year = date.getUTCFullYear();
        var fourthOfJanuaryOfNextYear = new Date(0);
        fourthOfJanuaryOfNextYear.setUTCFullYear(year + 1, 0, 4);
        fourthOfJanuaryOfNextYear.setUTCHours(0, 0, 0, 0);
        var startOfNextYear = Object(_startOfUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(fourthOfJanuaryOfNextYear);
        var fourthOfJanuaryOfThisYear = new Date(0);
        fourthOfJanuaryOfThisYear.setUTCFullYear(year, 0, 4);
        fourthOfJanuaryOfThisYear.setUTCHours(0, 0, 0, 0);
        var startOfThisYear = Object(_startOfUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(fourthOfJanuaryOfThisYear);

        if (date.getTime() >= startOfNextYear.getTime()) {
          return year + 1;
        } else if (date.getTime() >= startOfThisYear.getTime()) {
          return year;
        } else {
          return year - 1;
        }
      }
      /***/

    },

    /***/
    "hKrs": function hKrs(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Bulgarian [bg]
      //! author : Krasen Borisov : https://github.com/kraz
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var bg = moment.defineLocale('bg', {
          months: 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split('_'),
          monthsShort: 'яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'),
          weekdays: 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split('_'),
          weekdaysShort: 'нед_пон_вто_сря_чет_пет_съб'.split('_'),
          weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
          longDateFormat: {
            LT: 'H:mm',
            LTS: 'H:mm:ss',
            L: 'D.MM.YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY H:mm',
            LLLL: 'dddd, D MMMM YYYY H:mm'
          },
          calendar: {
            sameDay: '[Днес в] LT',
            nextDay: '[Утре в] LT',
            nextWeek: 'dddd [в] LT',
            lastDay: '[Вчера в] LT',
            lastWeek: function lastWeek() {
              switch (this.day()) {
                case 0:
                case 3:
                case 6:
                  return '[Миналата] dddd [в] LT';

                case 1:
                case 2:
                case 4:
                case 5:
                  return '[Миналия] dddd [в] LT';
              }
            },
            sameElse: 'L'
          },
          relativeTime: {
            future: 'след %s',
            past: 'преди %s',
            s: 'няколко секунди',
            ss: '%d секунди',
            m: 'минута',
            mm: '%d минути',
            h: 'час',
            hh: '%d часа',
            d: 'ден',
            dd: '%d дена',
            w: 'седмица',
            ww: '%d седмици',
            M: 'месец',
            MM: '%d месеца',
            y: 'година',
            yy: '%d години'
          },
          dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
          ordinal: function ordinal(number) {
            var lastDigit = number % 10,
                last2Digits = number % 100;

            if (number === 0) {
              return number + '-ев';
            } else if (last2Digits === 0) {
              return number + '-ен';
            } else if (last2Digits > 10 && last2Digits < 20) {
              return number + '-ти';
            } else if (lastDigit === 1) {
              return number + '-ви';
            } else if (lastDigit === 2) {
              return number + '-ри';
            } else if (lastDigit === 7 || lastDigit === 8) {
              return number + '-ми';
            } else {
              return number + '-ти';
            }
          },
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 7 // The week that contains Jan 7th is the first week of the year.

          }
        });
        return bg;
      });
      /***/

    },

    /***/
    "hKy8": function hKy8(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "pairs", function () {
        return pairs;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "dispatch", function () {
        return dispatch;
      });
      /* harmony import */


      var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Observable */
      "HDdC");
      /* harmony import */


      var _Subscription__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../Subscription */
      "quSY");

      function pairs(obj, scheduler) {
        if (!scheduler) {
          return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](function (subscriber) {
            var keys = Object.keys(obj);

            for (var i = 0; i < keys.length && !subscriber.closed; i++) {
              var key = keys[i];

              if (obj.hasOwnProperty(key)) {
                subscriber.next([key, obj[key]]);
              }
            }

            subscriber.complete();
          });
        } else {
          return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](function (subscriber) {
            var keys = Object.keys(obj);
            var subscription = new _Subscription__WEBPACK_IMPORTED_MODULE_1__["Subscription"]();
            subscription.add(scheduler.schedule(dispatch, 0, {
              keys: keys,
              index: 0,
              subscriber: subscriber,
              subscription: subscription,
              obj: obj
            }));
            return subscription;
          });
        }
      }

      function dispatch(state) {
        var keys = state.keys,
            index = state.index,
            subscriber = state.subscriber,
            subscription = state.subscription,
            obj = state.obj;

        if (!subscriber.closed) {
          if (index < keys.length) {
            var key = keys[index];
            subscriber.next([key, obj[key]]);
            subscription.add(this.schedule({
              keys: keys,
              index: index + 1,
              subscriber: subscriber,
              subscription: subscription,
              obj: obj
            }));
          } else {
            subscriber.complete();
          }
        }
      } //# sourceMappingURL=pairs.js.map

      /***/

    },

    /***/
    "hQ6s": function hQ6s(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "delayResponse", function () {
        return delayResponse;
      });
      /* harmony import */


      var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! rxjs */
      "qCKp"); // Replaces use of RxJS delay. See v0.5.4.

      /** adds specified delay (in ms) to both next and error channels of the response observable */


      function delayResponse(response$, delayMs) {
        return new rxjs__WEBPACK_IMPORTED_MODULE_0__["Observable"](function (observer) {
          var completePending = false;
          var nextPending = false;
          var subscription = response$.subscribe(function (value) {
            nextPending = true;
            setTimeout(function () {
              observer.next(value);

              if (completePending) {
                observer.complete();
              }
            }, delayMs);
          }, function (error) {
            return setTimeout(function () {
              return observer.error(error);
            }, delayMs);
          }, function () {
            completePending = true;

            if (!nextPending) {
              observer.complete();
            }
          });
          return function () {
            return subscription.unsubscribe();
          };
        });
      } //# sourceMappingURL=delay-response.js.map

      /***/

    },

    /***/
    "hW07": function hW07(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return isSunday;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name isSunday
       * @category Weekday Helpers
       * @summary Is the given date Sunday?
       *
       * @description
       * Is the given date Sunday?
       *
       * ### 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 {Date|Number} date - the date to check
       * @returns {Boolean} the date is Sunday
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // Is 21 September 2014 Sunday?
       * var result = isSunday(new Date(2014, 8, 21))
       * //=> true
       */


      function isSunday(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        return Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate).getDay() === 0;
      }
      /***/

    },

    /***/
    "honF": function honF(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Burmese [my]
      //! author : Squar team, mysquar.com
      //! author : David Rossellat : https://github.com/gholadr
      //! author : Tin Aung Lin : https://github.com/thanyawzinmin
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var symbolMap = {
          1: '၁',
          2: '၂',
          3: '၃',
          4: '၄',
          5: '၅',
          6: '၆',
          7: '၇',
          8: '၈',
          9: '၉',
          0: '၀'
        },
            numberMap = {
          '၁': '1',
          '၂': '2',
          '၃': '3',
          '၄': '4',
          '၅': '5',
          '၆': '6',
          '၇': '7',
          '၈': '8',
          '၉': '9',
          '၀': '0'
        };
        var my = moment.defineLocale('my', {
          months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split('_'),
          monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'),
          weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split('_'),
          weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
          weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd D MMMM YYYY HH:mm'
          },
          calendar: {
            sameDay: '[ယနေ.] LT [မှာ]',
            nextDay: '[မနက်ဖြန်] LT [မှာ]',
            nextWeek: 'dddd LT [မှာ]',
            lastDay: '[မနေ.က] LT [မှာ]',
            lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'လာမည့် %s မှာ',
            past: 'လွန်ခဲ့သော %s က',
            s: 'စက္ကန်.အနည်းငယ်',
            ss: '%d စက္ကန့်',
            m: 'တစ်မိနစ်',
            mm: '%d မိနစ်',
            h: 'တစ်နာရီ',
            hh: '%d နာရီ',
            d: 'တစ်ရက်',
            dd: '%d ရက်',
            M: 'တစ်လ',
            MM: '%d လ',
            y: 'တစ်နှစ်',
            yy: '%d နှစ်'
          },
          preparse: function preparse(string) {
            return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) {
              return numberMap[match];
            });
          },
          postformat: function postformat(string) {
            return string.replace(/\d/g, function (match) {
              return symbolMap[match];
            });
          },
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return my;
      });
      /***/

    },

    /***/
    "hroe": function hroe(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return setISODay;
      });
      /* harmony import */


      var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../_lib/toInteger/index.js */
      "/h9T");
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _addDays_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../addDays/index.js */
      "9/EM");
      /* harmony import */


      var _getISODay_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../getISODay/index.js */
      "NXEZ");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name setISODay
       * @category Weekday Helpers
       * @summary Set the day of the ISO week to the given date.
       *
       * @description
       * Set the day of the ISO week to the given date.
       * ISO week starts with Monday.
       * 7 is the index of Sunday, 1 is the index of Monday etc.
       *
       * ### 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 {Date|Number} date - the date to be changed
       * @param {Number} day - the day of the ISO week of the new date
       * @returns {Date} the new date with the day of the ISO week set
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // Set Sunday to 1 September 2014:
       * var result = setISODay(new Date(2014, 8, 1), 7)
       * //=> Sun Sep 07 2014 00:00:00
       */


      function setISODay(dirtyDate, dirtyDay) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_4__["default"])(2, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate);
        var day = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDay);
        var currentDay = Object(_getISODay_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(date);
        var diff = day - currentDay;
        return Object(_addDays_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(date, diff);
      }
      /***/

    },

    /***/
    "iEDd": function iEDd(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Galician [gl]
      //! author : Juan G. Hurtado : https://github.com/juanghurtado
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var gl = moment.defineLocale('gl', {
          months: 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split('_'),
          monthsShort: 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split('_'),
          monthsParseExact: true,
          weekdays: 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'),
          weekdaysShort: 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'),
          weekdaysMin: 'do_lu_ma_mé_xo_ve_sá'.split('_'),
          weekdaysParseExact: true,
          longDateFormat: {
            LT: 'H:mm',
            LTS: 'H:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D [de] MMMM [de] YYYY',
            LLL: 'D [de] MMMM [de] YYYY H:mm',
            LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm'
          },
          calendar: {
            sameDay: function sameDay() {
              return '[hoxe ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT';
            },
            nextDay: function nextDay() {
              return '[mañá ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT';
            },
            nextWeek: function nextWeek() {
              return 'dddd [' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT';
            },
            lastDay: function lastDay() {
              return '[onte ' + (this.hours() !== 1 ? 'á' : 'a') + '] LT';
            },
            lastWeek: function lastWeek() {
              return '[o] dddd [pasado ' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT';
            },
            sameElse: 'L'
          },
          relativeTime: {
            future: function future(str) {
              if (str.indexOf('un') === 0) {
                return 'n' + str;
              }

              return 'en ' + str;
            },
            past: 'hai %s',
            s: 'uns segundos',
            ss: '%d segundos',
            m: 'un minuto',
            mm: '%d minutos',
            h: 'unha hora',
            hh: '%d horas',
            d: 'un día',
            dd: '%d días',
            M: 'un mes',
            MM: '%d meses',
            y: 'un ano',
            yy: '%d anos'
          },
          dayOfMonthOrdinalParse: /\d{1,2}º/,
          ordinal: '%dº',
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return gl;
      });
      /***/

    },

    /***/
    "iInd": function iInd(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ActivatedRoute", function () {
        return ActivatedRoute;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ActivatedRouteSnapshot", function () {
        return ActivatedRouteSnapshot;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ActivationEnd", function () {
        return ActivationEnd;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ActivationStart", function () {
        return ActivationStart;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "BaseRouteReuseStrategy", function () {
        return BaseRouteReuseStrategy;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ChildActivationEnd", function () {
        return ChildActivationEnd;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ChildActivationStart", function () {
        return ChildActivationStart;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ChildrenOutletContexts", function () {
        return ChildrenOutletContexts;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "DefaultUrlSerializer", function () {
        return DefaultUrlSerializer;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "GuardsCheckEnd", function () {
        return GuardsCheckEnd;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "GuardsCheckStart", function () {
        return GuardsCheckStart;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NavigationCancel", function () {
        return NavigationCancel;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NavigationEnd", function () {
        return NavigationEnd;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NavigationError", function () {
        return NavigationError;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NavigationStart", function () {
        return NavigationStart;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NoPreloading", function () {
        return NoPreloading;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "OutletContext", function () {
        return OutletContext;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "PRIMARY_OUTLET", function () {
        return PRIMARY_OUTLET;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "PreloadAllModules", function () {
        return PreloadAllModules;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "PreloadingStrategy", function () {
        return PreloadingStrategy;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ROUTER_CONFIGURATION", function () {
        return ROUTER_CONFIGURATION;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ROUTER_INITIALIZER", function () {
        return ROUTER_INITIALIZER;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ROUTES", function () {
        return ROUTES;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ResolveEnd", function () {
        return ResolveEnd;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ResolveStart", function () {
        return ResolveStart;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "RouteConfigLoadEnd", function () {
        return RouteConfigLoadEnd;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "RouteConfigLoadStart", function () {
        return RouteConfigLoadStart;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "RouteReuseStrategy", function () {
        return RouteReuseStrategy;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Router", function () {
        return Router;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "RouterEvent", function () {
        return RouterEvent;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "RouterLink", function () {
        return RouterLink;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "RouterLinkActive", function () {
        return RouterLinkActive;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "RouterLinkWithHref", function () {
        return RouterLinkWithHref;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "RouterModule", function () {
        return RouterModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "RouterOutlet", function () {
        return RouterOutlet;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "RouterPreloader", function () {
        return RouterPreloader;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "RouterState", function () {
        return RouterState;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "RouterStateSnapshot", function () {
        return RouterStateSnapshot;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "RoutesRecognized", function () {
        return RoutesRecognized;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Scroll", function () {
        return Scroll;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "UrlHandlingStrategy", function () {
        return UrlHandlingStrategy;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "UrlSegment", function () {
        return UrlSegment;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "UrlSegmentGroup", function () {
        return UrlSegmentGroup;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "UrlSerializer", function () {
        return UrlSerializer;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "UrlTree", function () {
        return UrlTree;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "VERSION", function () {
        return VERSION;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "convertToParamMap", function () {
        return convertToParamMap;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "provideRoutes", function () {
        return provideRoutes;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵEmptyOutletComponent", function () {
        return ɵEmptyOutletComponent;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵROUTER_PROVIDERS", function () {
        return ROUTER_PROVIDERS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_router_router_a", function () {
        return ROUTER_FORROOT_GUARD;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_router_router_b", function () {
        return routerNgProbeToken;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_router_router_c", function () {
        return createRouterScroller;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_router_router_d", function () {
        return provideLocationStrategy;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_router_router_e", function () {
        return provideForRootGuard;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_router_router_f", function () {
        return setupRouter;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_router_router_g", function () {
        return rootRoute;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_router_router_h", function () {
        return RouterInitializer;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_router_router_i", function () {
        return getAppInitializer;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_router_router_j", function () {
        return getBootstrapListener;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_router_router_k", function () {
        return provideRouterInitializer;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_router_router_l", function () {
        return ɵEmptyOutletComponent;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_router_router_m", function () {
        return Tree;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_router_router_n", function () {
        return TreeNode;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_router_router_o", function () {
        return RouterScroller;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵassignExtraOptionsToRouter", function () {
        return assignExtraOptionsToRouter;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵflatten", function () {
        return flatten;
      });
      /* harmony import */


      var _angular_common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/common */
      "SVse");
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /* harmony import */


      var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! rxjs */
      "qCKp");
      /* harmony import */


      var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! rxjs/operators */
      "kU1M");
      /**
       * @license Angular v11.0.0
       * (c) 2010-2020 Google LLC. https://angular.io/
       * License: MIT
       */

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Base for events the router goes through, as opposed to events tied to a specific
       * route. Fired one time for any given navigation.
       *
       * The following code shows how a class subscribes to router events.
       *
       * ```ts
       * class MyService {
       *   constructor(public router: Router, logger: Logger) {
       *     router.events.pipe(
       *        filter((e: Event): e is RouterEvent => e instanceof RouterEvent)
       *     ).subscribe((e: RouterEvent) => {
       *       logger.log(e.id, e.url);
       *     });
       *   }
       * }
       * ```
       *
       * @see `Event`
       * @see [Router events summary](guide/router#router-events)
       * @publicApi
       */


      var RouterEvent = function RouterEvent(
      /** A unique ID that the router assigns to every router navigation. */
      id,
      /** The URL that is the destination for this navigation. */
      url) {
        _classCallCheck2(this, RouterEvent);

        this.id = id;
        this.url = url;
      };
      /**
       * An event triggered when a navigation starts.
       *
       * @publicApi
       */


      var NavigationStart = /*#__PURE__*/function (_RouterEvent) {
        _inherits2(NavigationStart, _RouterEvent);

        var _super382 = _createSuper2(NavigationStart);

        function NavigationStart(
        /** @docsNotRequired */
        id,
        /** @docsNotRequired */
        url) {
          var _this789;

          var navigationTrigger = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'imperative';
          var restoredState = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;

          _classCallCheck2(this, NavigationStart);

          _this789 = _super382.call(this, id, url);
          _this789.navigationTrigger = navigationTrigger;
          _this789.restoredState = restoredState;
          return _this789;
        }
        /** @docsNotRequired */


        _createClass2(NavigationStart, [{
          key: "toString",
          value: function toString() {
            return "NavigationStart(id: ".concat(this.id, ", url: '").concat(this.url, "')");
          }
        }]);

        return NavigationStart;
      }(RouterEvent);
      /**
       * An event triggered when a navigation ends successfully.
       *
       * @see `NavigationStart`
       * @see `NavigationCancel`
       * @see `NavigationError`
       *
       * @publicApi
       */


      var NavigationEnd = /*#__PURE__*/function (_RouterEvent2) {
        _inherits2(NavigationEnd, _RouterEvent2);

        var _super383 = _createSuper2(NavigationEnd);

        function NavigationEnd(
        /** @docsNotRequired */
        id,
        /** @docsNotRequired */
        url,
        /** @docsNotRequired */
        urlAfterRedirects) {
          var _this790;

          _classCallCheck2(this, NavigationEnd);

          _this790 = _super383.call(this, id, url);
          _this790.urlAfterRedirects = urlAfterRedirects;
          return _this790;
        }
        /** @docsNotRequired */


        _createClass2(NavigationEnd, [{
          key: "toString",
          value: function toString() {
            return "NavigationEnd(id: ".concat(this.id, ", url: '").concat(this.url, "', urlAfterRedirects: '").concat(this.urlAfterRedirects, "')");
          }
        }]);

        return NavigationEnd;
      }(RouterEvent);
      /**
       * An event triggered when a navigation is canceled, directly or indirectly.
       * This can happen when a route guard
       * returns `false` or initiates a redirect by returning a `UrlTree`.
       *
       * @see `NavigationStart`
       * @see `NavigationEnd`
       * @see `NavigationError`
       *
       * @publicApi
       */


      var NavigationCancel = /*#__PURE__*/function (_RouterEvent3) {
        _inherits2(NavigationCancel, _RouterEvent3);

        var _super384 = _createSuper2(NavigationCancel);

        function NavigationCancel(
        /** @docsNotRequired */
        id,
        /** @docsNotRequired */
        url,
        /** @docsNotRequired */
        reason) {
          var _this791;

          _classCallCheck2(this, NavigationCancel);

          _this791 = _super384.call(this, id, url);
          _this791.reason = reason;
          return _this791;
        }
        /** @docsNotRequired */


        _createClass2(NavigationCancel, [{
          key: "toString",
          value: function toString() {
            return "NavigationCancel(id: ".concat(this.id, ", url: '").concat(this.url, "')");
          }
        }]);

        return NavigationCancel;
      }(RouterEvent);
      /**
       * An event triggered when a navigation fails due to an unexpected error.
       *
       * @see `NavigationStart`
       * @see `NavigationEnd`
       * @see `NavigationCancel`
       *
       * @publicApi
       */


      var NavigationError = /*#__PURE__*/function (_RouterEvent4) {
        _inherits2(NavigationError, _RouterEvent4);

        var _super385 = _createSuper2(NavigationError);

        function NavigationError(
        /** @docsNotRequired */
        id,
        /** @docsNotRequired */
        url,
        /** @docsNotRequired */
        error) {
          var _this792;

          _classCallCheck2(this, NavigationError);

          _this792 = _super385.call(this, id, url);
          _this792.error = error;
          return _this792;
        }
        /** @docsNotRequired */


        _createClass2(NavigationError, [{
          key: "toString",
          value: function toString() {
            return "NavigationError(id: ".concat(this.id, ", url: '").concat(this.url, "', error: ").concat(this.error, ")");
          }
        }]);

        return NavigationError;
      }(RouterEvent);
      /**
       * An event triggered when routes are recognized.
       *
       * @publicApi
       */


      var RoutesRecognized = /*#__PURE__*/function (_RouterEvent5) {
        _inherits2(RoutesRecognized, _RouterEvent5);

        var _super386 = _createSuper2(RoutesRecognized);

        function RoutesRecognized(
        /** @docsNotRequired */
        id,
        /** @docsNotRequired */
        url,
        /** @docsNotRequired */
        urlAfterRedirects,
        /** @docsNotRequired */
        state) {
          var _this793;

          _classCallCheck2(this, RoutesRecognized);

          _this793 = _super386.call(this, id, url);
          _this793.urlAfterRedirects = urlAfterRedirects;
          _this793.state = state;
          return _this793;
        }
        /** @docsNotRequired */


        _createClass2(RoutesRecognized, [{
          key: "toString",
          value: function toString() {
            return "RoutesRecognized(id: ".concat(this.id, ", url: '").concat(this.url, "', urlAfterRedirects: '").concat(this.urlAfterRedirects, "', state: ").concat(this.state, ")");
          }
        }]);

        return RoutesRecognized;
      }(RouterEvent);
      /**
       * An event triggered at the start of the Guard phase of routing.
       *
       * @see `GuardsCheckEnd`
       *
       * @publicApi
       */


      var GuardsCheckStart = /*#__PURE__*/function (_RouterEvent6) {
        _inherits2(GuardsCheckStart, _RouterEvent6);

        var _super387 = _createSuper2(GuardsCheckStart);

        function GuardsCheckStart(
        /** @docsNotRequired */
        id,
        /** @docsNotRequired */
        url,
        /** @docsNotRequired */
        urlAfterRedirects,
        /** @docsNotRequired */
        state) {
          var _this794;

          _classCallCheck2(this, GuardsCheckStart);

          _this794 = _super387.call(this, id, url);
          _this794.urlAfterRedirects = urlAfterRedirects;
          _this794.state = state;
          return _this794;
        }

        _createClass2(GuardsCheckStart, [{
          key: "toString",
          value: function toString() {
            return "GuardsCheckStart(id: ".concat(this.id, ", url: '").concat(this.url, "', urlAfterRedirects: '").concat(this.urlAfterRedirects, "', state: ").concat(this.state, ")");
          }
        }]);

        return GuardsCheckStart;
      }(RouterEvent);
      /**
       * An event triggered at the end of the Guard phase of routing.
       *
       * @see `GuardsCheckStart`
       *
       * @publicApi
       */


      var GuardsCheckEnd = /*#__PURE__*/function (_RouterEvent7) {
        _inherits2(GuardsCheckEnd, _RouterEvent7);

        var _super388 = _createSuper2(GuardsCheckEnd);

        function GuardsCheckEnd(
        /** @docsNotRequired */
        id,
        /** @docsNotRequired */
        url,
        /** @docsNotRequired */
        urlAfterRedirects,
        /** @docsNotRequired */
        state,
        /** @docsNotRequired */
        shouldActivate) {
          var _this795;

          _classCallCheck2(this, GuardsCheckEnd);

          _this795 = _super388.call(this, id, url);
          _this795.urlAfterRedirects = urlAfterRedirects;
          _this795.state = state;
          _this795.shouldActivate = shouldActivate;
          return _this795;
        }

        _createClass2(GuardsCheckEnd, [{
          key: "toString",
          value: function toString() {
            return "GuardsCheckEnd(id: ".concat(this.id, ", url: '").concat(this.url, "', urlAfterRedirects: '").concat(this.urlAfterRedirects, "', state: ").concat(this.state, ", shouldActivate: ").concat(this.shouldActivate, ")");
          }
        }]);

        return GuardsCheckEnd;
      }(RouterEvent);
      /**
       * An event triggered at the the start of the Resolve phase of routing.
       *
       * Runs in the "resolve" phase whether or not there is anything to resolve.
       * In future, may change to only run when there are things to be resolved.
       *
       * @see `ResolveEnd`
       *
       * @publicApi
       */


      var ResolveStart = /*#__PURE__*/function (_RouterEvent8) {
        _inherits2(ResolveStart, _RouterEvent8);

        var _super389 = _createSuper2(ResolveStart);

        function ResolveStart(
        /** @docsNotRequired */
        id,
        /** @docsNotRequired */
        url,
        /** @docsNotRequired */
        urlAfterRedirects,
        /** @docsNotRequired */
        state) {
          var _this796;

          _classCallCheck2(this, ResolveStart);

          _this796 = _super389.call(this, id, url);
          _this796.urlAfterRedirects = urlAfterRedirects;
          _this796.state = state;
          return _this796;
        }

        _createClass2(ResolveStart, [{
          key: "toString",
          value: function toString() {
            return "ResolveStart(id: ".concat(this.id, ", url: '").concat(this.url, "', urlAfterRedirects: '").concat(this.urlAfterRedirects, "', state: ").concat(this.state, ")");
          }
        }]);

        return ResolveStart;
      }(RouterEvent);
      /**
       * An event triggered at the end of the Resolve phase of routing.
       * @see `ResolveStart`.
       *
       * @publicApi
       */


      var ResolveEnd = /*#__PURE__*/function (_RouterEvent9) {
        _inherits2(ResolveEnd, _RouterEvent9);

        var _super390 = _createSuper2(ResolveEnd);

        function ResolveEnd(
        /** @docsNotRequired */
        id,
        /** @docsNotRequired */
        url,
        /** @docsNotRequired */
        urlAfterRedirects,
        /** @docsNotRequired */
        state) {
          var _this797;

          _classCallCheck2(this, ResolveEnd);

          _this797 = _super390.call(this, id, url);
          _this797.urlAfterRedirects = urlAfterRedirects;
          _this797.state = state;
          return _this797;
        }

        _createClass2(ResolveEnd, [{
          key: "toString",
          value: function toString() {
            return "ResolveEnd(id: ".concat(this.id, ", url: '").concat(this.url, "', urlAfterRedirects: '").concat(this.urlAfterRedirects, "', state: ").concat(this.state, ")");
          }
        }]);

        return ResolveEnd;
      }(RouterEvent);
      /**
       * An event triggered before lazy loading a route configuration.
       *
       * @see `RouteConfigLoadEnd`
       *
       * @publicApi
       */


      var RouteConfigLoadStart = /*#__PURE__*/function () {
        function RouteConfigLoadStart(
        /** @docsNotRequired */
        route) {
          _classCallCheck2(this, RouteConfigLoadStart);

          this.route = route;
        }

        _createClass2(RouteConfigLoadStart, [{
          key: "toString",
          value: function toString() {
            return "RouteConfigLoadStart(path: ".concat(this.route.path, ")");
          }
        }]);

        return RouteConfigLoadStart;
      }();
      /**
       * An event triggered when a route has been lazy loaded.
       *
       * @see `RouteConfigLoadStart`
       *
       * @publicApi
       */


      var RouteConfigLoadEnd = /*#__PURE__*/function () {
        function RouteConfigLoadEnd(
        /** @docsNotRequired */
        route) {
          _classCallCheck2(this, RouteConfigLoadEnd);

          this.route = route;
        }

        _createClass2(RouteConfigLoadEnd, [{
          key: "toString",
          value: function toString() {
            return "RouteConfigLoadEnd(path: ".concat(this.route.path, ")");
          }
        }]);

        return RouteConfigLoadEnd;
      }();
      /**
       * An event triggered at the start of the child-activation
       * part of the Resolve phase of routing.
       * @see  `ChildActivationEnd`
       * @see `ResolveStart`
       *
       * @publicApi
       */


      var ChildActivationStart = /*#__PURE__*/function () {
        function ChildActivationStart(
        /** @docsNotRequired */
        snapshot) {
          _classCallCheck2(this, ChildActivationStart);

          this.snapshot = snapshot;
        }

        _createClass2(ChildActivationStart, [{
          key: "toString",
          value: function toString() {
            var path = this.snapshot.routeConfig && this.snapshot.routeConfig.path || '';
            return "ChildActivationStart(path: '".concat(path, "')");
          }
        }]);

        return ChildActivationStart;
      }();
      /**
       * An event triggered at the end of the child-activation part
       * of the Resolve phase of routing.
       * @see `ChildActivationStart`
       * @see `ResolveStart`
       * @publicApi
       */


      var ChildActivationEnd = /*#__PURE__*/function () {
        function ChildActivationEnd(
        /** @docsNotRequired */
        snapshot) {
          _classCallCheck2(this, ChildActivationEnd);

          this.snapshot = snapshot;
        }

        _createClass2(ChildActivationEnd, [{
          key: "toString",
          value: function toString() {
            var path = this.snapshot.routeConfig && this.snapshot.routeConfig.path || '';
            return "ChildActivationEnd(path: '".concat(path, "')");
          }
        }]);

        return ChildActivationEnd;
      }();
      /**
       * An event triggered at the start of the activation part
       * of the Resolve phase of routing.
       * @see `ActivationEnd`
       * @see `ResolveStart`
       *
       * @publicApi
       */


      var ActivationStart = /*#__PURE__*/function () {
        function ActivationStart(
        /** @docsNotRequired */
        snapshot) {
          _classCallCheck2(this, ActivationStart);

          this.snapshot = snapshot;
        }

        _createClass2(ActivationStart, [{
          key: "toString",
          value: function toString() {
            var path = this.snapshot.routeConfig && this.snapshot.routeConfig.path || '';
            return "ActivationStart(path: '".concat(path, "')");
          }
        }]);

        return ActivationStart;
      }();
      /**
       * An event triggered at the end of the activation part
       * of the Resolve phase of routing.
       * @see `ActivationStart`
       * @see `ResolveStart`
       *
       * @publicApi
       */


      var ActivationEnd = /*#__PURE__*/function () {
        function ActivationEnd(
        /** @docsNotRequired */
        snapshot) {
          _classCallCheck2(this, ActivationEnd);

          this.snapshot = snapshot;
        }

        _createClass2(ActivationEnd, [{
          key: "toString",
          value: function toString() {
            var path = this.snapshot.routeConfig && this.snapshot.routeConfig.path || '';
            return "ActivationEnd(path: '".concat(path, "')");
          }
        }]);

        return ActivationEnd;
      }();
      /**
       * An event triggered by scrolling.
       *
       * @publicApi
       */


      var Scroll = /*#__PURE__*/function () {
        function Scroll(
        /** @docsNotRequired */
        routerEvent,
        /** @docsNotRequired */
        position,
        /** @docsNotRequired */
        anchor) {
          _classCallCheck2(this, Scroll);

          this.routerEvent = routerEvent;
          this.position = position;
          this.anchor = anchor;
        }

        _createClass2(Scroll, [{
          key: "toString",
          value: function toString() {
            var pos = this.position ? "".concat(this.position[0], ", ").concat(this.position[1]) : null;
            return "Scroll(anchor: '".concat(this.anchor, "', position: '").concat(pos, "')");
          }
        }]);

        return Scroll;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * The primary routing outlet.
       *
       * @publicApi
       */


      var PRIMARY_OUTLET = 'primary';

      var ParamsAsMap = /*#__PURE__*/function () {
        function ParamsAsMap(params) {
          _classCallCheck2(this, ParamsAsMap);

          this.params = params || {};
        }

        _createClass2(ParamsAsMap, [{
          key: "has",
          value: function has(name) {
            return Object.prototype.hasOwnProperty.call(this.params, name);
          }
        }, {
          key: "get",
          value: function get(name) {
            if (this.has(name)) {
              var v = this.params[name];
              return Array.isArray(v) ? v[0] : v;
            }

            return null;
          }
        }, {
          key: "getAll",
          value: function getAll(name) {
            if (this.has(name)) {
              var v = this.params[name];
              return Array.isArray(v) ? v : [v];
            }

            return [];
          }
        }, {
          key: "keys",
          get: function get() {
            return Object.keys(this.params);
          }
        }]);

        return ParamsAsMap;
      }();
      /**
       * Converts a `Params` instance to a `ParamMap`.
       * @param params The instance to convert.
       * @returns The new map instance.
       *
       * @publicApi
       */


      function convertToParamMap(params) {
        return new ParamsAsMap(params);
      }

      var NAVIGATION_CANCELING_ERROR = 'ngNavigationCancelingError';

      function navigationCancelingError(message) {
        var error = Error('NavigationCancelingError: ' + message);
        error[NAVIGATION_CANCELING_ERROR] = true;
        return error;
      }

      function isNavigationCancelingError(error) {
        return error && error[NAVIGATION_CANCELING_ERROR];
      } // Matches the route configuration (`route`) against the actual URL (`segments`).


      function defaultUrlMatcher(segments, segmentGroup, route) {
        var parts = route.path.split('/');

        if (parts.length > segments.length) {
          // The actual URL is shorter than the config, no match
          return null;
        }

        if (route.pathMatch === 'full' && (segmentGroup.hasChildren() || parts.length < segments.length)) {
          // The config is longer than the actual URL but we are looking for a full match, return null
          return null;
        }

        var posParams = {}; // Check each config part against the actual URL

        for (var index = 0; index < parts.length; index++) {
          var part = parts[index];
          var segment = segments[index];
          var isParameter = part.startsWith(':');

          if (isParameter) {
            posParams[part.substring(1)] = segment;
          } else if (part !== segment.path) {
            // The actual URL part does not match the config, no match
            return null;
          }
        }

        return {
          consumed: segments.slice(0, parts.length),
          posParams: posParams
        };
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function shallowEqualArrays(a, b) {
        if (a.length !== b.length) return false;

        for (var i = 0; i < a.length; ++i) {
          if (!shallowEqual(a[i], b[i])) return false;
        }

        return true;
      }

      function shallowEqual(a, b) {
        // Casting Object.keys return values to include `undefined` as there are some cases
        // in IE 11 where this can happen. Cannot provide a test because the behavior only
        // exists in certain circumstances in IE 11, therefore doing this cast ensures the
        // logic is correct for when this edge case is hit.
        var k1 = Object.keys(a);
        var k2 = Object.keys(b);

        if (!k1 || !k2 || k1.length != k2.length) {
          return false;
        }

        var key;

        for (var i = 0; i < k1.length; i++) {
          key = k1[i];

          if (!equalArraysOrString(a[key], b[key])) {
            return false;
          }
        }

        return true;
      }
      /**
       * Test equality for arrays of strings or a string.
       */


      function equalArraysOrString(a, b) {
        if (Array.isArray(a) && Array.isArray(b)) {
          if (a.length !== b.length) return false;

          var aSorted = _toConsumableArray(a).sort();

          var bSorted = _toConsumableArray(b).sort();

          return aSorted.every(function (val, index) {
            return bSorted[index] === val;
          });
        } else {
          return a === b;
        }
      }
      /**
       * Flattens single-level nested arrays.
       */


      function flatten(arr) {
        return Array.prototype.concat.apply([], arr);
      }
      /**
       * Return the last element of an array.
       */


      function last(a) {
        return a.length > 0 ? a[a.length - 1] : null;
      }
      /**
       * Verifys all booleans in an array are `true`.
       */


      function and(bools) {
        return !bools.some(function (v) {
          return !v;
        });
      }

      function forEach(map, callback) {
        for (var prop in map) {
          if (map.hasOwnProperty(prop)) {
            callback(map[prop], prop);
          }
        }
      }

      function waitForMap(obj, fn) {
        if (Object.keys(obj).length === 0) {
          return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])({});
        }

        var waitHead = [];
        var waitTail = [];
        var res = {};
        forEach(obj, function (a, k) {
          var mapped = fn(k, a).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(function (r) {
            return res[k] = r;
          }));

          if (k === PRIMARY_OUTLET) {
            waitHead.push(mapped);
          } else {
            waitTail.push(mapped);
          }
        }); // Closure compiler has problem with using spread operator here. So we use "Array.concat".
        // Note that we also need to cast the new promise because TypeScript cannot infer the type
        // when calling the "of" function through "Function.apply"

        return rxjs__WEBPACK_IMPORTED_MODULE_2__["of"].apply(null, waitHead.concat(waitTail)).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["concatAll"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["last"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(function () {
          return res;
        }));
      }

      function wrapIntoObservable(value) {
        if (Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵisObservable"])(value)) {
          return value;
        }

        if (Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵisPromise"])(value)) {
          // Use `Promise.resolve()` to wrap promise-like instances.
          // Required ie when a Resolver returns a AngularJS `$q` promise to correctly trigger the
          // change detection.
          return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["from"])(Promise.resolve(value));
        }

        return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(value);
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function createEmptyUrlTree() {
        return new UrlTree(new UrlSegmentGroup([], {}), {}, null);
      }

      function containsTree(container, containee, exact) {
        if (exact) {
          return equalQueryParams(container.queryParams, containee.queryParams) && equalSegmentGroups(container.root, containee.root);
        }

        return containsQueryParams(container.queryParams, containee.queryParams) && containsSegmentGroup(container.root, containee.root);
      }

      function equalQueryParams(container, containee) {
        // TODO: This does not handle array params correctly.
        return shallowEqual(container, containee);
      }

      function equalSegmentGroups(container, containee) {
        if (!equalPath(container.segments, containee.segments)) return false;
        if (container.numberOfChildren !== containee.numberOfChildren) return false;

        for (var c in containee.children) {
          if (!container.children[c]) return false;
          if (!equalSegmentGroups(container.children[c], containee.children[c])) return false;
        }

        return true;
      }

      function containsQueryParams(container, containee) {
        return Object.keys(containee).length <= Object.keys(container).length && Object.keys(containee).every(function (key) {
          return equalArraysOrString(container[key], containee[key]);
        });
      }

      function containsSegmentGroup(container, containee) {
        return containsSegmentGroupHelper(container, containee, containee.segments);
      }

      function containsSegmentGroupHelper(container, containee, containeePaths) {
        if (container.segments.length > containeePaths.length) {
          var current = container.segments.slice(0, containeePaths.length);
          if (!equalPath(current, containeePaths)) return false;
          if (containee.hasChildren()) return false;
          return true;
        } else if (container.segments.length === containeePaths.length) {
          if (!equalPath(container.segments, containeePaths)) return false;

          for (var c in containee.children) {
            if (!container.children[c]) return false;
            if (!containsSegmentGroup(container.children[c], containee.children[c])) return false;
          }

          return true;
        } else {
          var _current = containeePaths.slice(0, container.segments.length);

          var next = containeePaths.slice(container.segments.length);
          if (!equalPath(container.segments, _current)) return false;
          if (!container.children[PRIMARY_OUTLET]) return false;
          return containsSegmentGroupHelper(container.children[PRIMARY_OUTLET], containee, next);
        }
      }
      /**
       * @description
       *
       * Represents the parsed URL.
       *
       * Since a router state is a tree, and the URL is nothing but a serialized state, the URL is a
       * serialized tree.
       * UrlTree is a data structure that provides a lot of affordances in dealing with URLs
       *
       * @usageNotes
       * ### Example
       *
       * ```
       * @Component({templateUrl:'template.html'})
       * class MyComponent {
       *   constructor(router: Router) {
       *     const tree: UrlTree =
       *       router.parseUrl('/team/33/(user/victor//support:help)?debug=true#fragment');
       *     const f = tree.fragment; // return 'fragment'
       *     const q = tree.queryParams; // returns {debug: 'true'}
       *     const g: UrlSegmentGroup = tree.root.children[PRIMARY_OUTLET];
       *     const s: UrlSegment[] = g.segments; // returns 2 segments 'team' and '33'
       *     g.children[PRIMARY_OUTLET].segments; // returns 2 segments 'user' and 'victor'
       *     g.children['support'].segments; // return 1 segment 'help'
       *   }
       * }
       * ```
       *
       * @publicApi
       */


      var UrlTree = /*#__PURE__*/function () {
        /** @internal */
        function UrlTree(
        /** The root segment group of the URL tree */
        root,
        /** The query params of the URL */
        queryParams,
        /** The fragment of the URL */
        fragment) {
          _classCallCheck2(this, UrlTree);

          this.root = root;
          this.queryParams = queryParams;
          this.fragment = fragment;
        }

        _createClass2(UrlTree, [{
          key: "queryParamMap",
          get: function get() {
            if (!this._queryParamMap) {
              this._queryParamMap = convertToParamMap(this.queryParams);
            }

            return this._queryParamMap;
          }
          /** @docsNotRequired */

        }, {
          key: "toString",
          value: function toString() {
            return DEFAULT_SERIALIZER.serialize(this);
          }
        }]);

        return UrlTree;
      }();
      /**
       * @description
       *
       * Represents the parsed URL segment group.
       *
       * See `UrlTree` for more information.
       *
       * @publicApi
       */


      var UrlSegmentGroup = /*#__PURE__*/function () {
        function UrlSegmentGroup(
        /** The URL segments of this group. See `UrlSegment` for more information */
        segments,
        /** The list of children of this group */
        children) {
          var _this798 = this;

          _classCallCheck2(this, UrlSegmentGroup);

          this.segments = segments;
          this.children = children;
          /** The parent node in the url tree */

          this.parent = null;
          forEach(children, function (v, k) {
            return v.parent = _this798;
          });
        }
        /** Whether the segment has child segments */


        _createClass2(UrlSegmentGroup, [{
          key: "hasChildren",
          value: function hasChildren() {
            return this.numberOfChildren > 0;
          }
          /** Number of child segments */

        }, {
          key: "numberOfChildren",
          get: function get() {
            return Object.keys(this.children).length;
          }
          /** @docsNotRequired */

        }, {
          key: "toString",
          value: function toString() {
            return serializePaths(this);
          }
        }]);

        return UrlSegmentGroup;
      }();
      /**
       * @description
       *
       * Represents a single URL segment.
       *
       * A UrlSegment is a part of a URL between the two slashes. It contains a path and the matrix
       * parameters associated with the segment.
       *
       * @usageNotes
       * ### Example
       *
       * ```
       * @Component({templateUrl:'template.html'})
       * class MyComponent {
       *   constructor(router: Router) {
       *     const tree: UrlTree = router.parseUrl('/team;id=33');
       *     const g: UrlSegmentGroup = tree.root.children[PRIMARY_OUTLET];
       *     const s: UrlSegment[] = g.segments;
       *     s[0].path; // returns 'team'
       *     s[0].parameters; // returns {id: 33}
       *   }
       * }
       * ```
       *
       * @publicApi
       */


      var UrlSegment = /*#__PURE__*/function () {
        function UrlSegment(
        /** The path part of a URL segment */
        path,
        /** The matrix parameters associated with a segment */
        parameters) {
          _classCallCheck2(this, UrlSegment);

          this.path = path;
          this.parameters = parameters;
        }

        _createClass2(UrlSegment, [{
          key: "parameterMap",
          get: function get() {
            if (!this._parameterMap) {
              this._parameterMap = convertToParamMap(this.parameters);
            }

            return this._parameterMap;
          }
          /** @docsNotRequired */

        }, {
          key: "toString",
          value: function toString() {
            return serializePath(this);
          }
        }]);

        return UrlSegment;
      }();

      function equalSegments(as, bs) {
        return equalPath(as, bs) && as.every(function (a, i) {
          return shallowEqual(a.parameters, bs[i].parameters);
        });
      }

      function equalPath(as, bs) {
        if (as.length !== bs.length) return false;
        return as.every(function (a, i) {
          return a.path === bs[i].path;
        });
      }

      function mapChildrenIntoArray(segment, fn) {
        var res = [];
        forEach(segment.children, function (child, childOutlet) {
          if (childOutlet === PRIMARY_OUTLET) {
            res = res.concat(fn(child, childOutlet));
          }
        });
        forEach(segment.children, function (child, childOutlet) {
          if (childOutlet !== PRIMARY_OUTLET) {
            res = res.concat(fn(child, childOutlet));
          }
        });
        return res;
      }
      /**
       * @description
       *
       * Serializes and deserializes a URL string into a URL tree.
       *
       * The url serialization strategy is customizable. You can
       * make all URLs case insensitive by providing a custom UrlSerializer.
       *
       * See `DefaultUrlSerializer` for an example of a URL serializer.
       *
       * @publicApi
       */


      var UrlSerializer = function UrlSerializer() {
        _classCallCheck2(this, UrlSerializer);
      };
      /**
       * @description
       *
       * A default implementation of the `UrlSerializer`.
       *
       * Example URLs:
       *
       * ```
       * /inbox/33(popup:compose)
       * /inbox/33;open=true/messages/44
       * ```
       *
       * DefaultUrlSerializer uses parentheses to serialize secondary segments (e.g., popup:compose), the
       * colon syntax to specify the outlet, and the ';parameter=value' syntax (e.g., open=true) to
       * specify route specific parameters.
       *
       * @publicApi
       */


      var DefaultUrlSerializer = /*#__PURE__*/function () {
        function DefaultUrlSerializer() {
          _classCallCheck2(this, DefaultUrlSerializer);
        }

        _createClass2(DefaultUrlSerializer, [{
          key: "parse",
          value:
          /** Parses a url into a `UrlTree` */
          function parse(url) {
            var p = new UrlParser(url);
            return new UrlTree(p.parseRootSegment(), p.parseQueryParams(), p.parseFragment());
          }
          /** Converts a `UrlTree` into a url */

        }, {
          key: "serialize",
          value: function serialize(tree) {
            var segment = "/".concat(serializeSegment(tree.root, true));
            var query = serializeQueryParams(tree.queryParams);
            var fragment = typeof tree.fragment === "string" ? "#".concat(encodeUriFragment(tree.fragment)) : '';
            return "".concat(segment).concat(query).concat(fragment);
          }
        }]);

        return DefaultUrlSerializer;
      }();

      var DEFAULT_SERIALIZER = new DefaultUrlSerializer();

      function serializePaths(segment) {
        return segment.segments.map(function (p) {
          return serializePath(p);
        }).join('/');
      }

      function serializeSegment(segment, root) {
        if (!segment.hasChildren()) {
          return serializePaths(segment);
        }

        if (root) {
          var primary = segment.children[PRIMARY_OUTLET] ? serializeSegment(segment.children[PRIMARY_OUTLET], false) : '';
          var children = [];
          forEach(segment.children, function (v, k) {
            if (k !== PRIMARY_OUTLET) {
              children.push("".concat(k, ":").concat(serializeSegment(v, false)));
            }
          });
          return children.length > 0 ? "".concat(primary, "(").concat(children.join('//'), ")") : primary;
        } else {
          var _children = mapChildrenIntoArray(segment, function (v, k) {
            if (k === PRIMARY_OUTLET) {
              return [serializeSegment(segment.children[PRIMARY_OUTLET], false)];
            }

            return ["".concat(k, ":").concat(serializeSegment(v, false))];
          }); // use no parenthesis if the only child is a primary outlet route


          if (Object.keys(segment.children).length === 1 && segment.children[PRIMARY_OUTLET] != null) {
            return "".concat(serializePaths(segment), "/").concat(_children[0]);
          }

          return "".concat(serializePaths(segment), "/(").concat(_children.join('//'), ")");
        }
      }
      /**
       * Encodes a URI string with the default encoding. This function will only ever be called from
       * `encodeUriQuery` or `encodeUriSegment` as it's the base set of encodings to be used. We need
       * a custom encoding because encodeURIComponent is too aggressive and encodes stuff that doesn't
       * have to be encoded per https://url.spec.whatwg.org.
       */


      function encodeUriString(s) {
        return encodeURIComponent(s).replace(/%40/g, '@').replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',');
      }
      /**
       * This function should be used to encode both keys and values in a query string key/value. In
       * the following URL, you need to call encodeUriQuery on "k" and "v":
       *
       * http://www.site.org/html;mk=mv?k=v#f
       */


      function encodeUriQuery(s) {
        return encodeUriString(s).replace(/%3B/gi, ';');
      }
      /**
       * This function should be used to encode a URL fragment. In the following URL, you need to call
       * encodeUriFragment on "f":
       *
       * http://www.site.org/html;mk=mv?k=v#f
       */


      function encodeUriFragment(s) {
        return encodeURI(s);
      }
      /**
       * This function should be run on any URI segment as well as the key and value in a key/value
       * pair for matrix params. In the following URL, you need to call encodeUriSegment on "html",
       * "mk", and "mv":
       *
       * http://www.site.org/html;mk=mv?k=v#f
       */


      function encodeUriSegment(s) {
        return encodeUriString(s).replace(/\(/g, '%28').replace(/\)/g, '%29').replace(/%26/gi, '&');
      }

      function decode(s) {
        return decodeURIComponent(s);
      } // Query keys/values should have the "+" replaced first, as "+" in a query string is " ".
      // decodeURIComponent function will not decode "+" as a space.


      function decodeQuery(s) {
        return decode(s.replace(/\+/g, '%20'));
      }

      function serializePath(path) {
        return "".concat(encodeUriSegment(path.path)).concat(serializeMatrixParams(path.parameters));
      }

      function serializeMatrixParams(params) {
        return Object.keys(params).map(function (key) {
          return ";".concat(encodeUriSegment(key), "=").concat(encodeUriSegment(params[key]));
        }).join('');
      }

      function serializeQueryParams(params) {
        var strParams = Object.keys(params).map(function (name) {
          var value = params[name];
          return Array.isArray(value) ? value.map(function (v) {
            return "".concat(encodeUriQuery(name), "=").concat(encodeUriQuery(v));
          }).join('&') : "".concat(encodeUriQuery(name), "=").concat(encodeUriQuery(value));
        });
        return strParams.length ? "?".concat(strParams.join('&')) : '';
      }

      var SEGMENT_RE = /^[^\/()?;=#]+/;

      function matchSegments(str) {
        var match = str.match(SEGMENT_RE);
        return match ? match[0] : '';
      }

      var QUERY_PARAM_RE = /^[^=?&#]+/; // Return the name of the query param at the start of the string or an empty string

      function matchQueryParams(str) {
        var match = str.match(QUERY_PARAM_RE);
        return match ? match[0] : '';
      }

      var QUERY_PARAM_VALUE_RE = /^[^?&#]+/; // Return the value of the query param at the start of the string or an empty string

      function matchUrlQueryParamValue(str) {
        var match = str.match(QUERY_PARAM_VALUE_RE);
        return match ? match[0] : '';
      }

      var UrlParser = /*#__PURE__*/function () {
        function UrlParser(url) {
          _classCallCheck2(this, UrlParser);

          this.url = url;
          this.remaining = url;
        }

        _createClass2(UrlParser, [{
          key: "parseRootSegment",
          value: function parseRootSegment() {
            this.consumeOptional('/');

            if (this.remaining === '' || this.peekStartsWith('?') || this.peekStartsWith('#')) {
              return new UrlSegmentGroup([], {});
            } // The root segment group never has segments


            return new UrlSegmentGroup([], this.parseChildren());
          }
        }, {
          key: "parseQueryParams",
          value: function parseQueryParams() {
            var params = {};

            if (this.consumeOptional('?')) {
              do {
                this.parseQueryParam(params);
              } while (this.consumeOptional('&'));
            }

            return params;
          }
        }, {
          key: "parseFragment",
          value: function parseFragment() {
            return this.consumeOptional('#') ? decodeURIComponent(this.remaining) : null;
          }
        }, {
          key: "parseChildren",
          value: function parseChildren() {
            if (this.remaining === '') {
              return {};
            }

            this.consumeOptional('/');
            var segments = [];

            if (!this.peekStartsWith('(')) {
              segments.push(this.parseSegment());
            }

            while (this.peekStartsWith('/') && !this.peekStartsWith('//') && !this.peekStartsWith('/(')) {
              this.capture('/');
              segments.push(this.parseSegment());
            }

            var children = {};

            if (this.peekStartsWith('/(')) {
              this.capture('/');
              children = this.parseParens(true);
            }

            var res = {};

            if (this.peekStartsWith('(')) {
              res = this.parseParens(false);
            }

            if (segments.length > 0 || Object.keys(children).length > 0) {
              res[PRIMARY_OUTLET] = new UrlSegmentGroup(segments, children);
            }

            return res;
          } // parse a segment with its matrix parameters
          // ie `name;k1=v1;k2`

        }, {
          key: "parseSegment",
          value: function parseSegment() {
            var path = matchSegments(this.remaining);

            if (path === '' && this.peekStartsWith(';')) {
              throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining, "'."));
            }

            this.capture(path);
            return new UrlSegment(decode(path), this.parseMatrixParams());
          }
        }, {
          key: "parseMatrixParams",
          value: function parseMatrixParams() {
            var params = {};

            while (this.consumeOptional(';')) {
              this.parseParam(params);
            }

            return params;
          }
        }, {
          key: "parseParam",
          value: function parseParam(params) {
            var key = matchSegments(this.remaining);

            if (!key) {
              return;
            }

            this.capture(key);
            var value = '';

            if (this.consumeOptional('=')) {
              var valueMatch = matchSegments(this.remaining);

              if (valueMatch) {
                value = valueMatch;
                this.capture(value);
              }
            }

            params[decode(key)] = decode(value);
          } // Parse a single query parameter `name[=value]`

        }, {
          key: "parseQueryParam",
          value: function parseQueryParam(params) {
            var key = matchQueryParams(this.remaining);

            if (!key) {
              return;
            }

            this.capture(key);
            var value = '';

            if (this.consumeOptional('=')) {
              var valueMatch = matchUrlQueryParamValue(this.remaining);

              if (valueMatch) {
                value = valueMatch;
                this.capture(value);
              }
            }

            var decodedKey = decodeQuery(key);
            var decodedVal = decodeQuery(value);

            if (params.hasOwnProperty(decodedKey)) {
              // Append to existing values
              var currentVal = params[decodedKey];

              if (!Array.isArray(currentVal)) {
                currentVal = [currentVal];
                params[decodedKey] = currentVal;
              }

              currentVal.push(decodedVal);
            } else {
              // Create a new value
              params[decodedKey] = decodedVal;
            }
          } // parse `(a/b//outlet_name:c/d)`

        }, {
          key: "parseParens",
          value: function parseParens(allowPrimary) {
            var segments = {};
            this.capture('(');

            while (!this.consumeOptional(')') && this.remaining.length > 0) {
              var path = matchSegments(this.remaining);
              var next = this.remaining[path.length]; // if is is not one of these characters, then the segment was unescaped
              // or the group was not closed

              if (next !== '/' && next !== ')' && next !== ';') {
                throw new Error("Cannot parse url '".concat(this.url, "'"));
              }

              var outletName = undefined;

              if (path.indexOf(':') > -1) {
                outletName = path.substr(0, path.indexOf(':'));
                this.capture(outletName);
                this.capture(':');
              } else if (allowPrimary) {
                outletName = PRIMARY_OUTLET;
              }

              var children = this.parseChildren();
              segments[outletName] = Object.keys(children).length === 1 ? children[PRIMARY_OUTLET] : new UrlSegmentGroup([], children);
              this.consumeOptional('//');
            }

            return segments;
          }
        }, {
          key: "peekStartsWith",
          value: function peekStartsWith(str) {
            return this.remaining.startsWith(str);
          } // Consumes the prefix when it is present and returns whether it has been consumed

        }, {
          key: "consumeOptional",
          value: function consumeOptional(str) {
            if (this.peekStartsWith(str)) {
              this.remaining = this.remaining.substring(str.length);
              return true;
            }

            return false;
          }
        }, {
          key: "capture",
          value: function capture(str) {
            if (!this.consumeOptional(str)) {
              throw new Error("Expected \"".concat(str, "\"."));
            }
          }
        }]);

        return UrlParser;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var Tree = /*#__PURE__*/function () {
        function Tree(root) {
          _classCallCheck2(this, Tree);

          this._root = root;
        }

        _createClass2(Tree, [{
          key: "root",
          get: function get() {
            return this._root.value;
          }
          /**
           * @internal
           */

        }, {
          key: "parent",
          value: function parent(t) {
            var p = this.pathFromRoot(t);
            return p.length > 1 ? p[p.length - 2] : null;
          }
          /**
           * @internal
           */

        }, {
          key: "children",
          value: function children(t) {
            var n = findNode(t, this._root);
            return n ? n.children.map(function (t) {
              return t.value;
            }) : [];
          }
          /**
           * @internal
           */

        }, {
          key: "firstChild",
          value: function firstChild(t) {
            var n = findNode(t, this._root);
            return n && n.children.length > 0 ? n.children[0].value : null;
          }
          /**
           * @internal
           */

        }, {
          key: "siblings",
          value: function siblings(t) {
            var p = findPath(t, this._root);
            if (p.length < 2) return [];
            var c = p[p.length - 2].children.map(function (c) {
              return c.value;
            });
            return c.filter(function (cc) {
              return cc !== t;
            });
          }
          /**
           * @internal
           */

        }, {
          key: "pathFromRoot",
          value: function pathFromRoot(t) {
            return findPath(t, this._root).map(function (s) {
              return s.value;
            });
          }
        }]);

        return Tree;
      }(); // DFS for the node matching the value


      function findNode(value, node) {
        if (value === node.value) return node;

        var _iterator77 = _createForOfIteratorHelper(node.children),
            _step76;

        try {
          for (_iterator77.s(); !(_step76 = _iterator77.n()).done;) {
            var child = _step76.value;

            var _node2 = findNode(value, child);

            if (_node2) return _node2;
          }
        } catch (err) {
          _iterator77.e(err);
        } finally {
          _iterator77.f();
        }

        return null;
      } // Return the path to the node with the given value using DFS


      function findPath(value, node) {
        if (value === node.value) return [node];

        var _iterator78 = _createForOfIteratorHelper(node.children),
            _step77;

        try {
          for (_iterator78.s(); !(_step77 = _iterator78.n()).done;) {
            var child = _step77.value;
            var path = findPath(value, child);

            if (path.length) {
              path.unshift(node);
              return path;
            }
          }
        } catch (err) {
          _iterator78.e(err);
        } finally {
          _iterator78.f();
        }

        return [];
      }

      var TreeNode = /*#__PURE__*/function () {
        function TreeNode(value, children) {
          _classCallCheck2(this, TreeNode);

          this.value = value;
          this.children = children;
        }

        _createClass2(TreeNode, [{
          key: "toString",
          value: function toString() {
            return "TreeNode(".concat(this.value, ")");
          }
        }]);

        return TreeNode;
      }(); // Return the list of T indexed by outlet name


      function nodeChildrenAsMap(node) {
        var map = {};

        if (node) {
          node.children.forEach(function (child) {
            return map[child.value.outlet] = child;
          });
        }

        return map;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Represents the state of the router as a tree of activated routes.
       *
       * @usageNotes
       *
       * Every node in the route tree is an `ActivatedRoute` instance
       * that knows about the "consumed" URL segments, the extracted parameters,
       * and the resolved data.
       * Use the `ActivatedRoute` properties to traverse the tree from any node.
       *
       * The following fragment shows how a component gets the root node
       * of the current state to establish its own route tree:
       *
       * ```
       * @Component({templateUrl:'template.html'})
       * class MyComponent {
       *   constructor(router: Router) {
       *     const state: RouterState = router.routerState;
       *     const root: ActivatedRoute = state.root;
       *     const child = root.firstChild;
       *     const id: Observable<string> = child.params.map(p => p.id);
       *     //...
       *   }
       * }
       * ```
       *
       * @see `ActivatedRoute`
       * @see [Getting route information](guide/router#getting-route-information)
       *
       * @publicApi
       */


      var RouterState = /*#__PURE__*/function (_Tree) {
        _inherits2(RouterState, _Tree);

        var _super391 = _createSuper2(RouterState);

        /** @internal */
        function RouterState(root,
        /** The current snapshot of the router state */
        snapshot) {
          var _this799;

          _classCallCheck2(this, RouterState);

          _this799 = _super391.call(this, root);
          _this799.snapshot = snapshot;
          setRouterState(_assertThisInitialized2(_this799), root);
          return _this799;
        }

        _createClass2(RouterState, [{
          key: "toString",
          value: function toString() {
            return this.snapshot.toString();
          }
        }]);

        return RouterState;
      }(Tree);

      function createEmptyState(urlTree, rootComponent) {
        var snapshot = createEmptyStateSnapshot(urlTree, rootComponent);
        var emptyUrl = new rxjs__WEBPACK_IMPORTED_MODULE_2__["BehaviorSubject"]([new UrlSegment('', {})]);
        var emptyParams = new rxjs__WEBPACK_IMPORTED_MODULE_2__["BehaviorSubject"]({});
        var emptyData = new rxjs__WEBPACK_IMPORTED_MODULE_2__["BehaviorSubject"]({});
        var emptyQueryParams = new rxjs__WEBPACK_IMPORTED_MODULE_2__["BehaviorSubject"]({});
        var fragment = new rxjs__WEBPACK_IMPORTED_MODULE_2__["BehaviorSubject"]('');
        var activated = new ActivatedRoute(emptyUrl, emptyParams, emptyQueryParams, fragment, emptyData, PRIMARY_OUTLET, rootComponent, snapshot.root);
        activated.snapshot = snapshot.root;
        return new RouterState(new TreeNode(activated, []), snapshot);
      }

      function createEmptyStateSnapshot(urlTree, rootComponent) {
        var emptyParams = {};
        var emptyData = {};
        var emptyQueryParams = {};
        var fragment = '';
        var activated = new ActivatedRouteSnapshot([], emptyParams, emptyQueryParams, fragment, emptyData, PRIMARY_OUTLET, rootComponent, null, urlTree.root, -1, {});
        return new RouterStateSnapshot('', new TreeNode(activated, []));
      }
      /**
       * Provides access to information about a route associated with a component
       * that is loaded in an outlet.
       * Use to traverse the `RouterState` tree and extract information from nodes.
       *
       * The following example shows how to construct a component using information from a
       * currently activated route.
       *
       * {@example router/activated-route/module.ts region="activated-route"
       *     header="activated-route.component.ts"}
       *
       * @see [Getting route information](guide/router#getting-route-information)
       *
       * @publicApi
       */


      var ActivatedRoute = /*#__PURE__*/function () {
        /** @internal */
        function ActivatedRoute(
        /** An observable of the URL segments matched by this route. */
        url,
        /** An observable of the matrix parameters scoped to this route. */
        params,
        /** An observable of the query parameters shared by all the routes. */
        queryParams,
        /** An observable of the URL fragment shared by all the routes. */
        fragment,
        /** An observable of the static and resolved data of this route. */
        data,
        /** The outlet name of the route, a constant. */
        outlet,
        /** The component of the route, a constant. */
        // TODO(vsavkin): remove |string
        component, futureSnapshot) {
          _classCallCheck2(this, ActivatedRoute);

          this.url = url;
          this.params = params;
          this.queryParams = queryParams;
          this.fragment = fragment;
          this.data = data;
          this.outlet = outlet;
          this.component = component;
          this._futureSnapshot = futureSnapshot;
        }
        /** The configuration used to match this route. */


        _createClass2(ActivatedRoute, [{
          key: "routeConfig",
          get: function get() {
            return this._futureSnapshot.routeConfig;
          }
          /** The root of the router state. */

        }, {
          key: "root",
          get: function get() {
            return this._routerState.root;
          }
          /** The parent of this route in the router state tree. */

        }, {
          key: "parent",
          get: function get() {
            return this._routerState.parent(this);
          }
          /** The first child of this route in the router state tree. */

        }, {
          key: "firstChild",
          get: function get() {
            return this._routerState.firstChild(this);
          }
          /** The children of this route in the router state tree. */

        }, {
          key: "children",
          get: function get() {
            return this._routerState.children(this);
          }
          /** The path from the root of the router state tree to this route. */

        }, {
          key: "pathFromRoot",
          get: function get() {
            return this._routerState.pathFromRoot(this);
          }
          /**
           * An Observable that contains a map of the required and optional parameters
           * specific to the route.
           * The map supports retrieving single and multiple values from the same parameter.
           */

        }, {
          key: "paramMap",
          get: function get() {
            if (!this._paramMap) {
              this._paramMap = this.params.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(function (p) {
                return convertToParamMap(p);
              }));
            }

            return this._paramMap;
          }
          /**
           * An Observable that contains a map of the query parameters available to all routes.
           * The map supports retrieving single and multiple values from the query parameter.
           */

        }, {
          key: "queryParamMap",
          get: function get() {
            if (!this._queryParamMap) {
              this._queryParamMap = this.queryParams.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(function (p) {
                return convertToParamMap(p);
              }));
            }

            return this._queryParamMap;
          }
        }, {
          key: "toString",
          value: function toString() {
            return this.snapshot ? this.snapshot.toString() : "Future(".concat(this._futureSnapshot, ")");
          }
        }]);

        return ActivatedRoute;
      }();
      /**
       * Returns the inherited params, data, and resolve for a given route.
       * By default, this only inherits values up to the nearest path-less or component-less route.
       * @internal
       */


      function inheritedParamsDataResolve(route) {
        var paramsInheritanceStrategy = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'emptyOnly';
        var pathFromRoot = route.pathFromRoot;
        var inheritingStartingFrom = 0;

        if (paramsInheritanceStrategy !== 'always') {
          inheritingStartingFrom = pathFromRoot.length - 1;

          while (inheritingStartingFrom >= 1) {
            var current = pathFromRoot[inheritingStartingFrom];
            var parent = pathFromRoot[inheritingStartingFrom - 1]; // current route is an empty path => inherits its parent's params and data

            if (current.routeConfig && current.routeConfig.path === '') {
              inheritingStartingFrom--; // parent is componentless => current route should inherit its params and data
            } else if (!parent.component) {
              inheritingStartingFrom--;
            } else {
              break;
            }
          }
        }

        return flattenInherited(pathFromRoot.slice(inheritingStartingFrom));
      }
      /** @internal */


      function flattenInherited(pathFromRoot) {
        return pathFromRoot.reduce(function (res, curr) {
          var params = Object.assign(Object.assign({}, res.params), curr.params);
          var data = Object.assign(Object.assign({}, res.data), curr.data);
          var resolve = Object.assign(Object.assign({}, res.resolve), curr._resolvedData);
          return {
            params: params,
            data: data,
            resolve: resolve
          };
        }, {
          params: {},
          data: {},
          resolve: {}
        });
      }
      /**
       * @description
       *
       * Contains the information about a route associated with a component loaded in an
       * outlet at a particular moment in time. ActivatedRouteSnapshot can also be used to
       * traverse the router state tree.
       *
       * The following example initializes a component with route information extracted
       * from the snapshot of the root node at the time of creation.
       *
       * ```
       * @Component({templateUrl:'./my-component.html'})
       * class MyComponent {
       *   constructor(route: ActivatedRoute) {
       *     const id: string = route.snapshot.params.id;
       *     const url: string = route.snapshot.url.join('');
       *     const user = route.snapshot.data.user;
       *   }
       * }
       * ```
       *
       * @publicApi
       */


      var ActivatedRouteSnapshot = /*#__PURE__*/function () {
        /** @internal */
        function ActivatedRouteSnapshot(
        /** The URL segments matched by this route */
        url,
        /** The matrix parameters scoped to this route */
        params,
        /** The query parameters shared by all the routes */
        queryParams,
        /** The URL fragment shared by all the routes */
        fragment,
        /** The static and resolved data of this route */
        data,
        /** The outlet name of the route */
        outlet,
        /** The component of the route */
        component, routeConfig, urlSegment, lastPathIndex, resolve) {
          _classCallCheck2(this, ActivatedRouteSnapshot);

          this.url = url;
          this.params = params;
          this.queryParams = queryParams;
          this.fragment = fragment;
          this.data = data;
          this.outlet = outlet;
          this.component = component;
          this.routeConfig = routeConfig;
          this._urlSegment = urlSegment;
          this._lastPathIndex = lastPathIndex;
          this._resolve = resolve;
        }
        /** The root of the router state */


        _createClass2(ActivatedRouteSnapshot, [{
          key: "root",
          get: function get() {
            return this._routerState.root;
          }
          /** The parent of this route in the router state tree */

        }, {
          key: "parent",
          get: function get() {
            return this._routerState.parent(this);
          }
          /** The first child of this route in the router state tree */

        }, {
          key: "firstChild",
          get: function get() {
            return this._routerState.firstChild(this);
          }
          /** The children of this route in the router state tree */

        }, {
          key: "children",
          get: function get() {
            return this._routerState.children(this);
          }
          /** The path from the root of the router state tree to this route */

        }, {
          key: "pathFromRoot",
          get: function get() {
            return this._routerState.pathFromRoot(this);
          }
        }, {
          key: "paramMap",
          get: function get() {
            if (!this._paramMap) {
              this._paramMap = convertToParamMap(this.params);
            }

            return this._paramMap;
          }
        }, {
          key: "queryParamMap",
          get: function get() {
            if (!this._queryParamMap) {
              this._queryParamMap = convertToParamMap(this.queryParams);
            }

            return this._queryParamMap;
          }
        }, {
          key: "toString",
          value: function toString() {
            var url = this.url.map(function (segment) {
              return segment.toString();
            }).join('/');
            var matched = this.routeConfig ? this.routeConfig.path : '';
            return "Route(url:'".concat(url, "', path:'").concat(matched, "')");
          }
        }]);

        return ActivatedRouteSnapshot;
      }();
      /**
       * @description
       *
       * Represents the state of the router at a moment in time.
       *
       * This is a tree of activated route snapshots. Every node in this tree knows about
       * the "consumed" URL segments, the extracted parameters, and the resolved data.
       *
       * The following example shows how a component is initialized with information
       * from the snapshot of the root node's state at the time of creation.
       *
       * ```
       * @Component({templateUrl:'template.html'})
       * class MyComponent {
       *   constructor(router: Router) {
       *     const state: RouterState = router.routerState;
       *     const snapshot: RouterStateSnapshot = state.snapshot;
       *     const root: ActivatedRouteSnapshot = snapshot.root;
       *     const child = root.firstChild;
       *     const id: Observable<string> = child.params.map(p => p.id);
       *     //...
       *   }
       * }
       * ```
       *
       * @publicApi
       */


      var RouterStateSnapshot = /*#__PURE__*/function (_Tree2) {
        _inherits2(RouterStateSnapshot, _Tree2);

        var _super392 = _createSuper2(RouterStateSnapshot);

        /** @internal */
        function RouterStateSnapshot(
        /** The url from which this snapshot was created */
        url, root) {
          var _this800;

          _classCallCheck2(this, RouterStateSnapshot);

          _this800 = _super392.call(this, root);
          _this800.url = url;
          setRouterState(_assertThisInitialized2(_this800), root);
          return _this800;
        }

        _createClass2(RouterStateSnapshot, [{
          key: "toString",
          value: function toString() {
            return serializeNode(this._root);
          }
        }]);

        return RouterStateSnapshot;
      }(Tree);

      function setRouterState(state, node) {
        node.value._routerState = state;
        node.children.forEach(function (c) {
          return setRouterState(state, c);
        });
      }

      function serializeNode(node) {
        var c = node.children.length > 0 ? " { ".concat(node.children.map(serializeNode).join(', '), " } ") : '';
        return "".concat(node.value).concat(c);
      }
      /**
       * The expectation is that the activate route is created with the right set of parameters.
       * So we push new values into the observables only when they are not the initial values.
       * And we detect that by checking if the snapshot field is set.
       */


      function advanceActivatedRoute(route) {
        if (route.snapshot) {
          var currentSnapshot = route.snapshot;
          var nextSnapshot = route._futureSnapshot;
          route.snapshot = nextSnapshot;

          if (!shallowEqual(currentSnapshot.queryParams, nextSnapshot.queryParams)) {
            route.queryParams.next(nextSnapshot.queryParams);
          }

          if (currentSnapshot.fragment !== nextSnapshot.fragment) {
            route.fragment.next(nextSnapshot.fragment);
          }

          if (!shallowEqual(currentSnapshot.params, nextSnapshot.params)) {
            route.params.next(nextSnapshot.params);
          }

          if (!shallowEqualArrays(currentSnapshot.url, nextSnapshot.url)) {
            route.url.next(nextSnapshot.url);
          }

          if (!shallowEqual(currentSnapshot.data, nextSnapshot.data)) {
            route.data.next(nextSnapshot.data);
          }
        } else {
          route.snapshot = route._futureSnapshot; // this is for resolved data

          route.data.next(route._futureSnapshot.data);
        }
      }

      function equalParamsAndUrlSegments(a, b) {
        var equalUrlParams = shallowEqual(a.params, b.params) && equalSegments(a.url, b.url);
        var parentsMismatch = !a.parent !== !b.parent;
        return equalUrlParams && !parentsMismatch && (!a.parent || equalParamsAndUrlSegments(a.parent, b.parent));
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function createRouterState(routeReuseStrategy, curr, prevState) {
        var root = createNode(routeReuseStrategy, curr._root, prevState ? prevState._root : undefined);
        return new RouterState(root, curr);
      }

      function createNode(routeReuseStrategy, curr, prevState) {
        // reuse an activated route that is currently displayed on the screen
        if (prevState && routeReuseStrategy.shouldReuseRoute(curr.value, prevState.value.snapshot)) {
          var value = prevState.value;
          value._futureSnapshot = curr.value;
          var children = createOrReuseChildren(routeReuseStrategy, curr, prevState);
          return new TreeNode(value, children); // retrieve an activated route that is used to be displayed, but is not currently displayed
        } else {
          var detachedRouteHandle = routeReuseStrategy.retrieve(curr.value);

          if (detachedRouteHandle) {
            var _tree = detachedRouteHandle.route;
            setFutureSnapshotsOfActivatedRoutes(curr, _tree);
            return _tree;
          } else {
            var _value12 = createActivatedRoute(curr.value);

            var _children2 = curr.children.map(function (c) {
              return createNode(routeReuseStrategy, c);
            });

            return new TreeNode(_value12, _children2);
          }
        }
      }

      function setFutureSnapshotsOfActivatedRoutes(curr, result) {
        if (curr.value.routeConfig !== result.value.routeConfig) {
          throw new Error('Cannot reattach ActivatedRouteSnapshot created from a different route');
        }

        if (curr.children.length !== result.children.length) {
          throw new Error('Cannot reattach ActivatedRouteSnapshot with a different number of children');
        }

        result.value._futureSnapshot = curr.value;

        for (var i = 0; i < curr.children.length; ++i) {
          setFutureSnapshotsOfActivatedRoutes(curr.children[i], result.children[i]);
        }
      }

      function createOrReuseChildren(routeReuseStrategy, curr, prevState) {
        return curr.children.map(function (child) {
          var _iterator79 = _createForOfIteratorHelper(prevState.children),
              _step78;

          try {
            for (_iterator79.s(); !(_step78 = _iterator79.n()).done;) {
              var p = _step78.value;

              if (routeReuseStrategy.shouldReuseRoute(child.value, p.value.snapshot)) {
                return createNode(routeReuseStrategy, child, p);
              }
            }
          } catch (err) {
            _iterator79.e(err);
          } finally {
            _iterator79.f();
          }

          return createNode(routeReuseStrategy, child);
        });
      }

      function createActivatedRoute(c) {
        return new ActivatedRoute(new rxjs__WEBPACK_IMPORTED_MODULE_2__["BehaviorSubject"](c.url), new rxjs__WEBPACK_IMPORTED_MODULE_2__["BehaviorSubject"](c.params), new rxjs__WEBPACK_IMPORTED_MODULE_2__["BehaviorSubject"](c.queryParams), new rxjs__WEBPACK_IMPORTED_MODULE_2__["BehaviorSubject"](c.fragment), new rxjs__WEBPACK_IMPORTED_MODULE_2__["BehaviorSubject"](c.data), c.outlet, c.component, c);
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function _createUrlTree(route, urlTree, commands, queryParams, fragment) {
        if (commands.length === 0) {
          return tree(urlTree.root, urlTree.root, urlTree, queryParams, fragment);
        }

        var nav = computeNavigation(commands);

        if (nav.toRoot()) {
          return tree(urlTree.root, new UrlSegmentGroup([], {}), urlTree, queryParams, fragment);
        }

        var startingPosition = findStartingPosition(nav, urlTree, route);
        var segmentGroup = startingPosition.processChildren ? updateSegmentGroupChildren(startingPosition.segmentGroup, startingPosition.index, nav.commands) : updateSegmentGroup(startingPosition.segmentGroup, startingPosition.index, nav.commands);
        return tree(startingPosition.segmentGroup, segmentGroup, urlTree, queryParams, fragment);
      }

      function isMatrixParams(command) {
        return typeof command === 'object' && command != null && !command.outlets && !command.segmentPath;
      }
      /**
       * Determines if a given command has an `outlets` map. When we encounter a command
       * with an outlets k/v map, we need to apply each outlet individually to the existing segment.
       */


      function isCommandWithOutlets(command) {
        return typeof command === 'object' && command != null && command.outlets;
      }

      function tree(oldSegmentGroup, newSegmentGroup, urlTree, queryParams, fragment) {
        var qp = {};

        if (queryParams) {
          forEach(queryParams, function (value, name) {
            qp[name] = Array.isArray(value) ? value.map(function (v) {
              return "".concat(v);
            }) : "".concat(value);
          });
        }

        if (urlTree.root === oldSegmentGroup) {
          return new UrlTree(newSegmentGroup, qp, fragment);
        }

        return new UrlTree(replaceSegment(urlTree.root, oldSegmentGroup, newSegmentGroup), qp, fragment);
      }

      function replaceSegment(current, oldSegment, newSegment) {
        var children = {};
        forEach(current.children, function (c, outletName) {
          if (c === oldSegment) {
            children[outletName] = newSegment;
          } else {
            children[outletName] = replaceSegment(c, oldSegment, newSegment);
          }
        });
        return new UrlSegmentGroup(current.segments, children);
      }

      var Navigation = /*#__PURE__*/function () {
        function Navigation(isAbsolute, numberOfDoubleDots, commands) {
          _classCallCheck2(this, Navigation);

          this.isAbsolute = isAbsolute;
          this.numberOfDoubleDots = numberOfDoubleDots;
          this.commands = commands;

          if (isAbsolute && commands.length > 0 && isMatrixParams(commands[0])) {
            throw new Error('Root segment cannot have matrix parameters');
          }

          var cmdWithOutlet = commands.find(isCommandWithOutlets);

          if (cmdWithOutlet && cmdWithOutlet !== last(commands)) {
            throw new Error('{outlets:{}} has to be the last command');
          }
        }

        _createClass2(Navigation, [{
          key: "toRoot",
          value: function toRoot() {
            return this.isAbsolute && this.commands.length === 1 && this.commands[0] == '/';
          }
        }]);

        return Navigation;
      }();
      /** Transforms commands to a normalized `Navigation` */


      function computeNavigation(commands) {
        if (typeof commands[0] === 'string' && commands.length === 1 && commands[0] === '/') {
          return new Navigation(true, 0, commands);
        }

        var numberOfDoubleDots = 0;
        var isAbsolute = false;
        var res = commands.reduce(function (res, cmd, cmdIdx) {
          if (typeof cmd === 'object' && cmd != null) {
            if (cmd.outlets) {
              var outlets = {};
              forEach(cmd.outlets, function (commands, name) {
                outlets[name] = typeof commands === 'string' ? commands.split('/') : commands;
              });
              return [].concat(_toConsumableArray(res), [{
                outlets: outlets
              }]);
            }

            if (cmd.segmentPath) {
              return [].concat(_toConsumableArray(res), [cmd.segmentPath]);
            }
          }

          if (!(typeof cmd === 'string')) {
            return [].concat(_toConsumableArray(res), [cmd]);
          }

          if (cmdIdx === 0) {
            cmd.split('/').forEach(function (urlPart, partIndex) {
              if (partIndex == 0 && urlPart === '.') {// skip './a'
              } else if (partIndex == 0 && urlPart === '') {
                //  '/a'
                isAbsolute = true;
              } else if (urlPart === '..') {
                //  '../a'
                numberOfDoubleDots++;
              } else if (urlPart != '') {
                res.push(urlPart);
              }
            });
            return res;
          }

          return [].concat(_toConsumableArray(res), [cmd]);
        }, []);
        return new Navigation(isAbsolute, numberOfDoubleDots, res);
      }

      var Position = function Position(segmentGroup, processChildren, index) {
        _classCallCheck2(this, Position);

        this.segmentGroup = segmentGroup;
        this.processChildren = processChildren;
        this.index = index;
      };

      function findStartingPosition(nav, tree, route) {
        if (nav.isAbsolute) {
          return new Position(tree.root, true, 0);
        }

        if (route.snapshot._lastPathIndex === -1) {
          var segmentGroup = route.snapshot._urlSegment; // Pathless ActivatedRoute has _lastPathIndex === -1 but should not process children
          // see issue #26224, #13011, #35687
          // However, if the ActivatedRoute is the root we should process children like above.

          var processChildren = segmentGroup === tree.root;
          return new Position(segmentGroup, processChildren, 0);
        }

        var modifier = isMatrixParams(nav.commands[0]) ? 0 : 1;
        var index = route.snapshot._lastPathIndex + modifier;
        return createPositionApplyingDoubleDots(route.snapshot._urlSegment, index, nav.numberOfDoubleDots);
      }

      function createPositionApplyingDoubleDots(group, index, numberOfDoubleDots) {
        var g = group;
        var ci = index;
        var dd = numberOfDoubleDots;

        while (dd > ci) {
          dd -= ci;
          g = g.parent;

          if (!g) {
            throw new Error('Invalid number of \'../\'');
          }

          ci = g.segments.length;
        }

        return new Position(g, false, ci - dd);
      }

      function getOutlets(commands) {
        if (isCommandWithOutlets(commands[0])) {
          return commands[0].outlets;
        }

        return _defineProperty({}, PRIMARY_OUTLET, commands);
      }

      function updateSegmentGroup(segmentGroup, startIndex, commands) {
        if (!segmentGroup) {
          segmentGroup = new UrlSegmentGroup([], {});
        }

        if (segmentGroup.segments.length === 0 && segmentGroup.hasChildren()) {
          return updateSegmentGroupChildren(segmentGroup, startIndex, commands);
        }

        var m = prefixedWith(segmentGroup, startIndex, commands);
        var slicedCommands = commands.slice(m.commandIndex);

        if (m.match && m.pathIndex < segmentGroup.segments.length) {
          var g = new UrlSegmentGroup(segmentGroup.segments.slice(0, m.pathIndex), {});
          g.children[PRIMARY_OUTLET] = new UrlSegmentGroup(segmentGroup.segments.slice(m.pathIndex), segmentGroup.children);
          return updateSegmentGroupChildren(g, 0, slicedCommands);
        } else if (m.match && slicedCommands.length === 0) {
          return new UrlSegmentGroup(segmentGroup.segments, {});
        } else if (m.match && !segmentGroup.hasChildren()) {
          return createNewSegmentGroup(segmentGroup, startIndex, commands);
        } else if (m.match) {
          return updateSegmentGroupChildren(segmentGroup, 0, slicedCommands);
        } else {
          return createNewSegmentGroup(segmentGroup, startIndex, commands);
        }
      }

      function updateSegmentGroupChildren(segmentGroup, startIndex, commands) {
        if (commands.length === 0) {
          return new UrlSegmentGroup(segmentGroup.segments, {});
        } else {
          var outlets = getOutlets(commands);
          var children = {};
          forEach(outlets, function (commands, outlet) {
            if (commands !== null) {
              children[outlet] = updateSegmentGroup(segmentGroup.children[outlet], startIndex, commands);
            }
          });
          forEach(segmentGroup.children, function (child, childOutlet) {
            if (outlets[childOutlet] === undefined) {
              children[childOutlet] = child;
            }
          });
          return new UrlSegmentGroup(segmentGroup.segments, children);
        }
      }

      function prefixedWith(segmentGroup, startIndex, commands) {
        var currentCommandIndex = 0;
        var currentPathIndex = startIndex;
        var noMatch = {
          match: false,
          pathIndex: 0,
          commandIndex: 0
        };

        while (currentPathIndex < segmentGroup.segments.length) {
          if (currentCommandIndex >= commands.length) return noMatch;
          var path = segmentGroup.segments[currentPathIndex];
          var command = commands[currentCommandIndex]; // Do not try to consume command as part of the prefixing if it has outlets because it can
          // contain outlets other than the one being processed. Consuming the outlets command would
          // result in other outlets being ignored.

          if (isCommandWithOutlets(command)) {
            break;
          }

          var curr = "".concat(command);
          var next = currentCommandIndex < commands.length - 1 ? commands[currentCommandIndex + 1] : null;
          if (currentPathIndex > 0 && curr === undefined) break;

          if (curr && next && typeof next === 'object' && next.outlets === undefined) {
            if (!compare(curr, next, path)) return noMatch;
            currentCommandIndex += 2;
          } else {
            if (!compare(curr, {}, path)) return noMatch;
            currentCommandIndex++;
          }

          currentPathIndex++;
        }

        return {
          match: true,
          pathIndex: currentPathIndex,
          commandIndex: currentCommandIndex
        };
      }

      function createNewSegmentGroup(segmentGroup, startIndex, commands) {
        var paths = segmentGroup.segments.slice(0, startIndex);
        var i = 0;

        while (i < commands.length) {
          var command = commands[i];

          if (isCommandWithOutlets(command)) {
            var children = createNewSegmentChildren(command.outlets);
            return new UrlSegmentGroup(paths, children);
          } // if we start with an object literal, we need to reuse the path part from the segment


          if (i === 0 && isMatrixParams(commands[0])) {
            var p = segmentGroup.segments[startIndex];
            paths.push(new UrlSegment(p.path, commands[0]));
            i++;
            continue;
          }

          var curr = isCommandWithOutlets(command) ? command.outlets[PRIMARY_OUTLET] : "".concat(command);
          var next = i < commands.length - 1 ? commands[i + 1] : null;

          if (curr && next && isMatrixParams(next)) {
            paths.push(new UrlSegment(curr, stringify(next)));
            i += 2;
          } else {
            paths.push(new UrlSegment(curr, {}));
            i++;
          }
        }

        return new UrlSegmentGroup(paths, {});
      }

      function createNewSegmentChildren(outlets) {
        var children = {};
        forEach(outlets, function (commands, outlet) {
          if (commands !== null) {
            children[outlet] = createNewSegmentGroup(new UrlSegmentGroup([], {}), 0, commands);
          }
        });
        return children;
      }

      function stringify(params) {
        var res = {};
        forEach(params, function (v, k) {
          return res[k] = "".concat(v);
        });
        return res;
      }

      function compare(path, params, segment) {
        return path == segment.path && shallowEqual(params, segment.parameters);
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var activateRoutes = function activateRoutes(rootContexts, routeReuseStrategy, forwardEvent) {
        return Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(function (t) {
          new ActivateRoutes(routeReuseStrategy, t.targetRouterState, t.currentRouterState, forwardEvent).activate(rootContexts);
          return t;
        });
      };

      var ActivateRoutes = /*#__PURE__*/function () {
        function ActivateRoutes(routeReuseStrategy, futureState, currState, forwardEvent) {
          _classCallCheck2(this, ActivateRoutes);

          this.routeReuseStrategy = routeReuseStrategy;
          this.futureState = futureState;
          this.currState = currState;
          this.forwardEvent = forwardEvent;
        }

        _createClass2(ActivateRoutes, [{
          key: "activate",
          value: function activate(parentContexts) {
            var futureRoot = this.futureState._root;
            var currRoot = this.currState ? this.currState._root : null;
            this.deactivateChildRoutes(futureRoot, currRoot, parentContexts);
            advanceActivatedRoute(this.futureState.root);
            this.activateChildRoutes(futureRoot, currRoot, parentContexts);
          } // De-activate the child route that are not re-used for the future state

        }, {
          key: "deactivateChildRoutes",
          value: function deactivateChildRoutes(futureNode, currNode, contexts) {
            var _this801 = this;

            var children = nodeChildrenAsMap(currNode); // Recurse on the routes active in the future state to de-activate deeper children

            futureNode.children.forEach(function (futureChild) {
              var childOutletName = futureChild.value.outlet;

              _this801.deactivateRoutes(futureChild, children[childOutletName], contexts);

              delete children[childOutletName];
            }); // De-activate the routes that will not be re-used

            forEach(children, function (v, childName) {
              _this801.deactivateRouteAndItsChildren(v, contexts);
            });
          }
        }, {
          key: "deactivateRoutes",
          value: function deactivateRoutes(futureNode, currNode, parentContext) {
            var future = futureNode.value;
            var curr = currNode ? currNode.value : null;

            if (future === curr) {
              // Reusing the node, check to see if the children need to be de-activated
              if (future.component) {
                // If we have a normal route, we need to go through an outlet.
                var context = parentContext.getContext(future.outlet);

                if (context) {
                  this.deactivateChildRoutes(futureNode, currNode, context.children);
                }
              } else {
                // if we have a componentless route, we recurse but keep the same outlet map.
                this.deactivateChildRoutes(futureNode, currNode, parentContext);
              }
            } else {
              if (curr) {
                // Deactivate the current route which will not be re-used
                this.deactivateRouteAndItsChildren(currNode, parentContext);
              }
            }
          }
        }, {
          key: "deactivateRouteAndItsChildren",
          value: function deactivateRouteAndItsChildren(route, parentContexts) {
            if (this.routeReuseStrategy.shouldDetach(route.value.snapshot)) {
              this.detachAndStoreRouteSubtree(route, parentContexts);
            } else {
              this.deactivateRouteAndOutlet(route, parentContexts);
            }
          }
        }, {
          key: "detachAndStoreRouteSubtree",
          value: function detachAndStoreRouteSubtree(route, parentContexts) {
            var context = parentContexts.getContext(route.value.outlet);

            if (context && context.outlet) {
              var componentRef = context.outlet.detach();
              var contexts = context.children.onOutletDeactivated();
              this.routeReuseStrategy.store(route.value.snapshot, {
                componentRef: componentRef,
                route: route,
                contexts: contexts
              });
            }
          }
        }, {
          key: "deactivateRouteAndOutlet",
          value: function deactivateRouteAndOutlet(route, parentContexts) {
            var _this802 = this;

            var context = parentContexts.getContext(route.value.outlet);

            if (context) {
              var children = nodeChildrenAsMap(route);
              var contexts = route.value.component ? context.children : parentContexts;
              forEach(children, function (v, k) {
                return _this802.deactivateRouteAndItsChildren(v, contexts);
              });

              if (context.outlet) {
                // Destroy the component
                context.outlet.deactivate(); // Destroy the contexts for all the outlets that were in the component

                context.children.onOutletDeactivated();
              }
            }
          }
        }, {
          key: "activateChildRoutes",
          value: function activateChildRoutes(futureNode, currNode, contexts) {
            var _this803 = this;

            var children = nodeChildrenAsMap(currNode);
            futureNode.children.forEach(function (c) {
              _this803.activateRoutes(c, children[c.value.outlet], contexts);

              _this803.forwardEvent(new ActivationEnd(c.value.snapshot));
            });

            if (futureNode.children.length) {
              this.forwardEvent(new ChildActivationEnd(futureNode.value.snapshot));
            }
          }
        }, {
          key: "activateRoutes",
          value: function activateRoutes(futureNode, currNode, parentContexts) {
            var future = futureNode.value;
            var curr = currNode ? currNode.value : null;
            advanceActivatedRoute(future); // reusing the node

            if (future === curr) {
              if (future.component) {
                // If we have a normal route, we need to go through an outlet.
                var context = parentContexts.getOrCreateContext(future.outlet);
                this.activateChildRoutes(futureNode, currNode, context.children);
              } else {
                // if we have a componentless route, we recurse but keep the same outlet map.
                this.activateChildRoutes(futureNode, currNode, parentContexts);
              }
            } else {
              if (future.component) {
                // if we have a normal route, we need to place the component into the outlet and recurse.
                var _context4 = parentContexts.getOrCreateContext(future.outlet);

                if (this.routeReuseStrategy.shouldAttach(future.snapshot)) {
                  var stored = this.routeReuseStrategy.retrieve(future.snapshot);
                  this.routeReuseStrategy.store(future.snapshot, null);

                  _context4.children.onOutletReAttached(stored.contexts);

                  _context4.attachRef = stored.componentRef;
                  _context4.route = stored.route.value;

                  if (_context4.outlet) {
                    // Attach right away when the outlet has already been instantiated
                    // Otherwise attach from `RouterOutlet.ngOnInit` when it is instantiated
                    _context4.outlet.attach(stored.componentRef, stored.route.value);
                  }

                  advanceActivatedRouteNodeAndItsChildren(stored.route);
                } else {
                  var config = parentLoadedConfig(future.snapshot);
                  var cmpFactoryResolver = config ? config.module.componentFactoryResolver : null;
                  _context4.attachRef = null;
                  _context4.route = future;
                  _context4.resolver = cmpFactoryResolver;

                  if (_context4.outlet) {
                    // Activate the outlet when it has already been instantiated
                    // Otherwise it will get activated from its `ngOnInit` when instantiated
                    _context4.outlet.activateWith(future, cmpFactoryResolver);
                  }

                  this.activateChildRoutes(futureNode, null, _context4.children);
                }
              } else {
                // if we have a componentless route, we recurse but keep the same outlet map.
                this.activateChildRoutes(futureNode, null, parentContexts);
              }
            }
          }
        }]);

        return ActivateRoutes;
      }();

      function advanceActivatedRouteNodeAndItsChildren(node) {
        advanceActivatedRoute(node.value);
        node.children.forEach(advanceActivatedRouteNodeAndItsChildren);
      }

      function parentLoadedConfig(snapshot) {
        for (var s = snapshot.parent; s; s = s.parent) {
          var route = s.routeConfig;
          if (route && route._loadedConfig) return route._loadedConfig;
          if (route && route.component) return null;
        }

        return null;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var LoadedRouterConfig = function LoadedRouterConfig(routes, module) {
        _classCallCheck2(this, LoadedRouterConfig);

        this.routes = routes;
        this.module = module;
      };
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Simple function check, but generic so type inference will flow. Example:
       *
       * function product(a: number, b: number) {
       *   return a * b;
       * }
       *
       * if (isFunction<product>(fn)) {
       *   return fn(1, 2);
       * } else {
       *   throw "Must provide the `product` function";
       * }
       */


      function isFunction(v) {
        return typeof v === 'function';
      }

      function isBoolean(v) {
        return typeof v === 'boolean';
      }

      function isUrlTree(v) {
        return v instanceof UrlTree;
      }

      function isCanLoad(guard) {
        return guard && isFunction(guard.canLoad);
      }

      function isCanActivate(guard) {
        return guard && isFunction(guard.canActivate);
      }

      function isCanActivateChild(guard) {
        return guard && isFunction(guard.canActivateChild);
      }

      function isCanDeactivate(guard) {
        return guard && isFunction(guard.canDeactivate);
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var INITIAL_VALUE = Symbol('INITIAL_VALUE');

      function prioritizedGuardValue() {
        return Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["switchMap"])(function (obs) {
          return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["combineLatest"]).apply(void 0, _toConsumableArray(obs.map(function (o) {
            return o.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["take"])(1), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["startWith"])(INITIAL_VALUE));
          }))).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["scan"])(function (acc, list) {
            var isPending = false;
            return list.reduce(function (innerAcc, val, i) {
              if (innerAcc !== INITIAL_VALUE) return innerAcc; // Toggle pending flag if any values haven't been set yet

              if (val === INITIAL_VALUE) isPending = true; // Any other return values are only valid if we haven't yet hit a pending
              // call. This guarantees that in the case of a guard at the bottom of the
              // tree that returns a redirect, we will wait for the higher priority
              // guard at the top to finish before performing the redirect.

              if (!isPending) {
                // Early return when we hit a `false` value as that should always
                // cancel navigation
                if (val === false) return val;

                if (i === list.length - 1 || isUrlTree(val)) {
                  return val;
                }
              }

              return innerAcc;
            }, acc);
          }, INITIAL_VALUE), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["filter"])(function (item) {
            return item !== INITIAL_VALUE;
          }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(function (item) {
            return isUrlTree(item) ? item : item === true;
          }), //
          Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["take"])(1));
        });
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * This component is used internally within the router to be a placeholder when an empty
       * router-outlet is needed. For example, with a config such as:
       *
       * `{path: 'parent', outlet: 'nav', children: [...]}`
       *
       * In order to render, there needs to be a component on this config, which will default
       * to this `EmptyOutletComponent`.
       */


      var ɵEmptyOutletComponent = function ɵEmptyOutletComponent() {
        _classCallCheck2(this, ɵEmptyOutletComponent);
      };

      ɵEmptyOutletComponent.ɵfac = function ɵEmptyOutletComponent_Factory(t) {
        return new (t || ɵEmptyOutletComponent)();
      };

      ɵEmptyOutletComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({
        type: ɵEmptyOutletComponent,
        selectors: [["ng-component"]],
        decls: 1,
        vars: 0,
        template: function ɵEmptyOutletComponent_Template(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "router-outlet");
          }
        },
        directives: function directives() {
          return [RouterOutlet];
        },
        encapsulation: 2
      });
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](ɵEmptyOutletComponent, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
          args: [{
            template: "<router-outlet></router-outlet>"
          }]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function validateConfig(config) {
        var parentPath = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';

        // forEach doesn't iterate undefined values
        for (var i = 0; i < config.length; i++) {
          var route = config[i];
          var fullPath = getFullPath(parentPath, route);
          validateNode(route, fullPath);
        }
      }

      function validateNode(route, fullPath) {
        if (typeof ngDevMode === 'undefined' || ngDevMode) {
          if (!route) {
            throw new Error("\n      Invalid configuration of route '".concat(fullPath, "': Encountered undefined route.\n      The reason might be an extra comma.\n\n      Example:\n      const routes: Routes = [\n        { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n        { path: 'dashboard',  component: DashboardComponent },, << two commas\n        { path: 'detail/:id', component: HeroDetailComponent }\n      ];\n    "));
          }

          if (Array.isArray(route)) {
            throw new Error("Invalid configuration of route '".concat(fullPath, "': Array cannot be specified"));
          }

          if (!route.component && !route.children && !route.loadChildren && route.outlet && route.outlet !== PRIMARY_OUTLET) {
            throw new Error("Invalid configuration of route '".concat(fullPath, "': a componentless route without children or loadChildren cannot have a named outlet set"));
          }

          if (route.redirectTo && route.children) {
            throw new Error("Invalid configuration of route '".concat(fullPath, "': redirectTo and children cannot be used together"));
          }

          if (route.redirectTo && route.loadChildren) {
            throw new Error("Invalid configuration of route '".concat(fullPath, "': redirectTo and loadChildren cannot be used together"));
          }

          if (route.children && route.loadChildren) {
            throw new Error("Invalid configuration of route '".concat(fullPath, "': children and loadChildren cannot be used together"));
          }

          if (route.redirectTo && route.component) {
            throw new Error("Invalid configuration of route '".concat(fullPath, "': redirectTo and component cannot be used together"));
          }

          if (route.path && route.matcher) {
            throw new Error("Invalid configuration of route '".concat(fullPath, "': path and matcher cannot be used together"));
          }

          if (route.redirectTo === void 0 && !route.component && !route.children && !route.loadChildren) {
            throw new Error("Invalid configuration of route '".concat(fullPath, "'. One of the following must be provided: component, redirectTo, children or loadChildren"));
          }

          if (route.path === void 0 && route.matcher === void 0) {
            throw new Error("Invalid configuration of route '".concat(fullPath, "': routes must have either a path or a matcher specified"));
          }

          if (typeof route.path === 'string' && route.path.charAt(0) === '/') {
            throw new Error("Invalid configuration of route '".concat(fullPath, "': path cannot start with a slash"));
          }

          if (route.path === '' && route.redirectTo !== void 0 && route.pathMatch === void 0) {
            var exp = "The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.";
            throw new Error("Invalid configuration of route '{path: \"".concat(fullPath, "\", redirectTo: \"").concat(route.redirectTo, "\"}': please provide 'pathMatch'. ").concat(exp));
          }

          if (route.pathMatch !== void 0 && route.pathMatch !== 'full' && route.pathMatch !== 'prefix') {
            throw new Error("Invalid configuration of route '".concat(fullPath, "': pathMatch can only be set to 'prefix' or 'full'"));
          }
        }

        if (route.children) {
          validateConfig(route.children, fullPath);
        }
      }

      function getFullPath(parentPath, currentRoute) {
        if (!currentRoute) {
          return parentPath;
        }

        if (!parentPath && !currentRoute.path) {
          return '';
        } else if (parentPath && !currentRoute.path) {
          return "".concat(parentPath, "/");
        } else if (!parentPath && currentRoute.path) {
          return currentRoute.path;
        } else {
          return "".concat(parentPath, "/").concat(currentRoute.path);
        }
      }
      /**
       * Makes a copy of the config and adds any default required properties.
       */


      function standardizeConfig(r) {
        var children = r.children && r.children.map(standardizeConfig);
        var c = children ? Object.assign(Object.assign({}, r), {
          children: children
        }) : Object.assign({}, r);

        if (!c.component && (children || c.loadChildren) && c.outlet && c.outlet !== PRIMARY_OUTLET) {
          c.component = ɵEmptyOutletComponent;
        }

        return c;
      }
      /** Returns of `Map` of outlet names to the `Route`s for that outlet. */


      function groupRoutesByOutlet(routes) {
        return routes.reduce(function (map, route) {
          var routeOutlet = getOutlet(route);

          if (map.has(routeOutlet)) {
            map.get(routeOutlet).push(route);
          } else {
            map.set(routeOutlet, [route]);
          }

          return map;
        }, new Map());
      }
      /** Returns the `route.outlet` or PRIMARY_OUTLET if none exists. */


      function getOutlet(route) {
        return route.outlet || PRIMARY_OUTLET;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var NoMatch = function NoMatch(segmentGroup) {
        _classCallCheck2(this, NoMatch);

        this.segmentGroup = segmentGroup || null;
      };

      var AbsoluteRedirect = function AbsoluteRedirect(urlTree) {
        _classCallCheck2(this, AbsoluteRedirect);

        this.urlTree = urlTree;
      };

      function noMatch(segmentGroup) {
        return new rxjs__WEBPACK_IMPORTED_MODULE_2__["Observable"](function (obs) {
          return obs.error(new NoMatch(segmentGroup));
        });
      }

      function absoluteRedirect(newTree) {
        return new rxjs__WEBPACK_IMPORTED_MODULE_2__["Observable"](function (obs) {
          return obs.error(new AbsoluteRedirect(newTree));
        });
      }

      function namedOutletsRedirect(redirectTo) {
        return new rxjs__WEBPACK_IMPORTED_MODULE_2__["Observable"](function (obs) {
          return obs.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(redirectTo, "'")));
        });
      }

      function canLoadFails(route) {
        return new rxjs__WEBPACK_IMPORTED_MODULE_2__["Observable"](function (obs) {
          return obs.error(navigationCancelingError("Cannot load children because the guard of the route \"path: '".concat(route.path, "'\" returned false")));
        });
      }
      /**
       * Returns the `UrlTree` with the redirection applied.
       *
       * Lazy modules are loaded along the way.
       */


      function applyRedirects(moduleInjector, configLoader, urlSerializer, urlTree, config) {
        return new ApplyRedirects(moduleInjector, configLoader, urlSerializer, urlTree, config).apply();
      }

      var ApplyRedirects = /*#__PURE__*/function () {
        function ApplyRedirects(moduleInjector, configLoader, urlSerializer, urlTree, config) {
          _classCallCheck2(this, ApplyRedirects);

          this.configLoader = configLoader;
          this.urlSerializer = urlSerializer;
          this.urlTree = urlTree;
          this.config = config;
          this.allowRedirects = true;
          this.ngModule = moduleInjector.get(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModuleRef"]);
        }

        _createClass2(ApplyRedirects, [{
          key: "apply",
          value: function apply() {
            var _this804 = this;

            var expanded$ = this.expandSegmentGroup(this.ngModule, this.config, this.urlTree.root, PRIMARY_OUTLET);
            var urlTrees$ = expanded$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(function (rootSegmentGroup) {
              return _this804.createUrlTree(rootSegmentGroup, _this804.urlTree.queryParams, _this804.urlTree.fragment);
            }));
            return urlTrees$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(function (e) {
              if (e instanceof AbsoluteRedirect) {
                // after an absolute redirect we do not apply any more redirects!
                _this804.allowRedirects = false; // we need to run matching, so we can fetch all lazy-loaded modules

                return _this804.match(e.urlTree);
              }

              if (e instanceof NoMatch) {
                throw _this804.noMatchError(e);
              }

              throw e;
            }));
          }
        }, {
          key: "match",
          value: function match(tree) {
            var _this805 = this;

            var expanded$ = this.expandSegmentGroup(this.ngModule, this.config, tree.root, PRIMARY_OUTLET);
            var mapped$ = expanded$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(function (rootSegmentGroup) {
              return _this805.createUrlTree(rootSegmentGroup, tree.queryParams, tree.fragment);
            }));
            return mapped$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(function (e) {
              if (e instanceof NoMatch) {
                throw _this805.noMatchError(e);
              }

              throw e;
            }));
          }
        }, {
          key: "noMatchError",
          value: function noMatchError(e) {
            return new Error("Cannot match any routes. URL Segment: '".concat(e.segmentGroup, "'"));
          }
        }, {
          key: "createUrlTree",
          value: function createUrlTree(rootCandidate, queryParams, fragment) {
            var root = rootCandidate.segments.length > 0 ? new UrlSegmentGroup([], _defineProperty({}, PRIMARY_OUTLET, rootCandidate)) : rootCandidate;
            return new UrlTree(root, queryParams, fragment);
          }
        }, {
          key: "expandSegmentGroup",
          value: function expandSegmentGroup(ngModule, routes, segmentGroup, outlet) {
            if (segmentGroup.segments.length === 0 && segmentGroup.hasChildren()) {
              return this.expandChildren(ngModule, routes, segmentGroup).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(function (children) {
                return new UrlSegmentGroup([], children);
              }));
            }

            return this.expandSegment(ngModule, segmentGroup, routes, segmentGroup.segments, outlet, true);
          } // Recursively expand segment groups for all the child outlets

        }, {
          key: "expandChildren",
          value: function expandChildren(ngModule, routes, segmentGroup) {
            var _this806 = this;

            return waitForMap(segmentGroup.children, function (childOutlet, child) {
              return _this806.expandSegmentGroup(ngModule, routes, child, childOutlet);
            });
          }
        }, {
          key: "expandSegment",
          value: function expandSegment(ngModule, segmentGroup, routes, segments, outlet, allowRedirects) {
            var _this807 = this;

            // We need to expand each outlet group independently to ensure that we not only load modules
            // for routes matching the given `outlet`, but also those which will be activated because
            // their path is empty string. This can result in multiple outlets being activated at once.
            var routesByOutlet = groupRoutesByOutlet(routes);

            if (!routesByOutlet.has(outlet)) {
              routesByOutlet.set(outlet, []);
            }

            var expandRoutes = function expandRoutes(routes) {
              return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["from"])(routes).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["concatMap"])(function (r) {
                var expanded$ = _this807.expandSegmentAgainstRoute(ngModule, segmentGroup, routes, r, segments, outlet, allowRedirects);

                return expanded$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(function (e) {
                  if (e instanceof NoMatch) {
                    return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(null);
                  }

                  throw e;
                }));
              }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["first"])(function (s) {
                return s !== null;
              }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(function (e) {
                if (e instanceof rxjs__WEBPACK_IMPORTED_MODULE_2__["EmptyError"] || e.name === 'EmptyError') {
                  if (_this807.noLeftoversInUrl(segmentGroup, segments, outlet)) {
                    return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(new UrlSegmentGroup([], {}));
                  }

                  throw new NoMatch(segmentGroup);
                }

                throw e;
              }));
            };

            var expansions = Array.from(routesByOutlet.entries()).map(function (_ref91) {
              var _ref92 = _slicedToArray(_ref91, 2),
                  routeOutlet = _ref92[0],
                  routes = _ref92[1];

              var expanded = expandRoutes(routes); // Map all results from outlets we aren't activating to `null` so they can be ignored later

              return routeOutlet === outlet ? expanded : expanded.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(function () {
                return null;
              }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(function () {
                return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(null);
              }));
            });
            return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["from"])(expansions).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["combineAll"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["first"])(), // Return only the expansion for the route outlet we are trying to activate.
            Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(function (results) {
              return results.find(function (result) {
                return result !== null;
              });
            }));
          }
        }, {
          key: "noLeftoversInUrl",
          value: function noLeftoversInUrl(segmentGroup, segments, outlet) {
            return segments.length === 0 && !segmentGroup.children[outlet];
          }
        }, {
          key: "expandSegmentAgainstRoute",
          value: function expandSegmentAgainstRoute(ngModule, segmentGroup, routes, route, paths, outlet, allowRedirects) {
            // Empty string segments are special because multiple outlets can match a single path, i.e.
            // `[{path: '', component: B}, {path: '', loadChildren: () => {}, outlet: "about"}]`
            if (getOutlet(route) !== outlet && route.path !== '') {
              return noMatch(segmentGroup);
            }

            if (route.redirectTo === undefined) {
              return this.matchSegmentAgainstRoute(ngModule, segmentGroup, route, paths);
            }

            if (allowRedirects && this.allowRedirects) {
              return this.expandSegmentAgainstRouteUsingRedirect(ngModule, segmentGroup, routes, route, paths, outlet);
            }

            return noMatch(segmentGroup);
          }
        }, {
          key: "expandSegmentAgainstRouteUsingRedirect",
          value: function expandSegmentAgainstRouteUsingRedirect(ngModule, segmentGroup, routes, route, segments, outlet) {
            if (route.path === '**') {
              return this.expandWildCardWithParamsAgainstRouteUsingRedirect(ngModule, routes, route, outlet);
            }

            return this.expandRegularSegmentAgainstRouteUsingRedirect(ngModule, segmentGroup, routes, route, segments, outlet);
          }
        }, {
          key: "expandWildCardWithParamsAgainstRouteUsingRedirect",
          value: function expandWildCardWithParamsAgainstRouteUsingRedirect(ngModule, routes, route, outlet) {
            var _this808 = this;

            var newTree = this.applyRedirectCommands([], route.redirectTo, {});

            if (route.redirectTo.startsWith('/')) {
              return absoluteRedirect(newTree);
            }

            return this.lineralizeSegments(route, newTree).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])(function (newSegments) {
              var group = new UrlSegmentGroup(newSegments, {});
              return _this808.expandSegment(ngModule, group, routes, newSegments, outlet, false);
            }));
          }
        }, {
          key: "expandRegularSegmentAgainstRouteUsingRedirect",
          value: function expandRegularSegmentAgainstRouteUsingRedirect(ngModule, segmentGroup, routes, route, segments, outlet) {
            var _this809 = this;

            var _match2 = match(segmentGroup, route, segments),
                matched = _match2.matched,
                consumedSegments = _match2.consumedSegments,
                lastChild = _match2.lastChild,
                positionalParamSegments = _match2.positionalParamSegments;

            if (!matched) return noMatch(segmentGroup);
            var newTree = this.applyRedirectCommands(consumedSegments, route.redirectTo, positionalParamSegments);

            if (route.redirectTo.startsWith('/')) {
              return absoluteRedirect(newTree);
            }

            return this.lineralizeSegments(route, newTree).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])(function (newSegments) {
              return _this809.expandSegment(ngModule, segmentGroup, routes, newSegments.concat(segments.slice(lastChild)), outlet, false);
            }));
          }
        }, {
          key: "matchSegmentAgainstRoute",
          value: function matchSegmentAgainstRoute(ngModule, rawSegmentGroup, route, segments) {
            var _this810 = this;

            if (route.path === '**') {
              if (route.loadChildren) {
                return this.configLoader.load(ngModule.injector, route).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(function (cfg) {
                  route._loadedConfig = cfg;
                  return new UrlSegmentGroup(segments, {});
                }));
              }

              return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(new UrlSegmentGroup(segments, {}));
            }

            var _match3 = match(rawSegmentGroup, route, segments),
                matched = _match3.matched,
                consumedSegments = _match3.consumedSegments,
                lastChild = _match3.lastChild;

            if (!matched) return noMatch(rawSegmentGroup);
            var rawSlicedSegments = segments.slice(lastChild);
            var childConfig$ = this.getChildConfig(ngModule, route, segments);
            return childConfig$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])(function (routerConfig) {
              var childModule = routerConfig.module;
              var childConfig = routerConfig.routes;

              var _split4 = split(rawSegmentGroup, consumedSegments, rawSlicedSegments, childConfig),
                  segmentGroup = _split4.segmentGroup,
                  slicedSegments = _split4.slicedSegments;

              if (slicedSegments.length === 0 && segmentGroup.hasChildren()) {
                var _expanded$ = _this810.expandChildren(childModule, childConfig, segmentGroup);

                return _expanded$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(function (children) {
                  return new UrlSegmentGroup(consumedSegments, children);
                }));
              }

              if (childConfig.length === 0 && slicedSegments.length === 0) {
                return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(new UrlSegmentGroup(consumedSegments, {}));
              }

              var expanded$ = _this810.expandSegment(childModule, segmentGroup, childConfig, slicedSegments, PRIMARY_OUTLET, true);

              return expanded$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(function (cs) {
                return new UrlSegmentGroup(consumedSegments.concat(cs.segments), cs.children);
              }));
            }));
          }
        }, {
          key: "getChildConfig",
          value: function getChildConfig(ngModule, route, segments) {
            var _this811 = this;

            if (route.children) {
              // The children belong to the same module
              return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(new LoadedRouterConfig(route.children, ngModule));
            }

            if (route.loadChildren) {
              // lazy children belong to the loaded module
              if (route._loadedConfig !== undefined) {
                return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(route._loadedConfig);
              }

              return this.runCanLoadGuards(ngModule.injector, route, segments).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])(function (shouldLoadResult) {
                if (shouldLoadResult) {
                  return _this811.configLoader.load(ngModule.injector, route).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(function (cfg) {
                    route._loadedConfig = cfg;
                    return cfg;
                  }));
                }

                return canLoadFails(route);
              }));
            }

            return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(new LoadedRouterConfig([], ngModule));
          }
        }, {
          key: "runCanLoadGuards",
          value: function runCanLoadGuards(moduleInjector, route, segments) {
            var _this812 = this;

            var canLoad = route.canLoad;
            if (!canLoad || canLoad.length === 0) return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(true);
            var canLoadObservables = canLoad.map(function (injectionToken) {
              var guard = moduleInjector.get(injectionToken);
              var guardVal;

              if (isCanLoad(guard)) {
                guardVal = guard.canLoad(route, segments);
              } else if (isFunction(guard)) {
                guardVal = guard(route, segments);
              } else {
                throw new Error('Invalid CanLoad guard');
              }

              return wrapIntoObservable(guardVal);
            });
            return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(canLoadObservables).pipe(prioritizedGuardValue(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["tap"])(function (result) {
              if (!isUrlTree(result)) return;
              var error = navigationCancelingError("Redirecting to \"".concat(_this812.urlSerializer.serialize(result), "\""));
              error.url = result;
              throw error;
            }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(function (result) {
              return result === true;
            }));
          }
        }, {
          key: "lineralizeSegments",
          value: function lineralizeSegments(route, urlTree) {
            var res = [];
            var c = urlTree.root;

            while (true) {
              res = res.concat(c.segments);

              if (c.numberOfChildren === 0) {
                return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(res);
              }

              if (c.numberOfChildren > 1 || !c.children[PRIMARY_OUTLET]) {
                return namedOutletsRedirect(route.redirectTo);
              }

              c = c.children[PRIMARY_OUTLET];
            }
          }
        }, {
          key: "applyRedirectCommands",
          value: function applyRedirectCommands(segments, redirectTo, posParams) {
            return this.applyRedirectCreatreUrlTree(redirectTo, this.urlSerializer.parse(redirectTo), segments, posParams);
          }
        }, {
          key: "applyRedirectCreatreUrlTree",
          value: function applyRedirectCreatreUrlTree(redirectTo, urlTree, segments, posParams) {
            var newRoot = this.createSegmentGroup(redirectTo, urlTree.root, segments, posParams);
            return new UrlTree(newRoot, this.createQueryParams(urlTree.queryParams, this.urlTree.queryParams), urlTree.fragment);
          }
        }, {
          key: "createQueryParams",
          value: function createQueryParams(redirectToParams, actualParams) {
            var res = {};
            forEach(redirectToParams, function (v, k) {
              var copySourceValue = typeof v === 'string' && v.startsWith(':');

              if (copySourceValue) {
                var sourceName = v.substring(1);
                res[k] = actualParams[sourceName];
              } else {
                res[k] = v;
              }
            });
            return res;
          }
        }, {
          key: "createSegmentGroup",
          value: function createSegmentGroup(redirectTo, group, segments, posParams) {
            var _this813 = this;

            var updatedSegments = this.createSegments(redirectTo, group.segments, segments, posParams);
            var children = {};
            forEach(group.children, function (child, name) {
              children[name] = _this813.createSegmentGroup(redirectTo, child, segments, posParams);
            });
            return new UrlSegmentGroup(updatedSegments, children);
          }
        }, {
          key: "createSegments",
          value: function createSegments(redirectTo, redirectToSegments, actualSegments, posParams) {
            var _this814 = this;

            return redirectToSegments.map(function (s) {
              return s.path.startsWith(':') ? _this814.findPosParam(redirectTo, s, posParams) : _this814.findOrReturn(s, actualSegments);
            });
          }
        }, {
          key: "findPosParam",
          value: function findPosParam(redirectTo, redirectToUrlSegment, posParams) {
            var pos = posParams[redirectToUrlSegment.path.substring(1)];
            if (!pos) throw new Error("Cannot redirect to '".concat(redirectTo, "'. Cannot find '").concat(redirectToUrlSegment.path, "'."));
            return pos;
          }
        }, {
          key: "findOrReturn",
          value: function findOrReturn(redirectToUrlSegment, actualSegments) {
            var idx = 0;

            var _iterator80 = _createForOfIteratorHelper(actualSegments),
                _step79;

            try {
              for (_iterator80.s(); !(_step79 = _iterator80.n()).done;) {
                var s = _step79.value;

                if (s.path === redirectToUrlSegment.path) {
                  actualSegments.splice(idx);
                  return s;
                }

                idx++;
              }
            } catch (err) {
              _iterator80.e(err);
            } finally {
              _iterator80.f();
            }

            return redirectToUrlSegment;
          }
        }]);

        return ApplyRedirects;
      }();

      function match(segmentGroup, route, segments) {
        if (route.path === '') {
          if (route.pathMatch === 'full' && (segmentGroup.hasChildren() || segments.length > 0)) {
            return {
              matched: false,
              consumedSegments: [],
              lastChild: 0,
              positionalParamSegments: {}
            };
          }

          return {
            matched: true,
            consumedSegments: [],
            lastChild: 0,
            positionalParamSegments: {}
          };
        }

        var matcher = route.matcher || defaultUrlMatcher;
        var res = matcher(segments, segmentGroup, route);

        if (!res) {
          return {
            matched: false,
            consumedSegments: [],
            lastChild: 0,
            positionalParamSegments: {}
          };
        }

        return {
          matched: true,
          consumedSegments: res.consumed,
          lastChild: res.consumed.length,
          positionalParamSegments: res.posParams
        };
      }

      function split(segmentGroup, consumedSegments, slicedSegments, config) {
        if (slicedSegments.length > 0 && containsEmptyPathRedirectsWithNamedOutlets(segmentGroup, slicedSegments, config)) {
          var s = new UrlSegmentGroup(consumedSegments, createChildrenForEmptySegments(config, new UrlSegmentGroup(slicedSegments, segmentGroup.children)));
          return {
            segmentGroup: mergeTrivialChildren(s),
            slicedSegments: []
          };
        }

        if (slicedSegments.length === 0 && containsEmptyPathRedirects(segmentGroup, slicedSegments, config)) {
          var _s2 = new UrlSegmentGroup(segmentGroup.segments, addEmptySegmentsToChildrenIfNeeded(segmentGroup, slicedSegments, config, segmentGroup.children));

          return {
            segmentGroup: mergeTrivialChildren(_s2),
            slicedSegments: slicedSegments
          };
        }

        return {
          segmentGroup: segmentGroup,
          slicedSegments: slicedSegments
        };
      }

      function mergeTrivialChildren(s) {
        if (s.numberOfChildren === 1 && s.children[PRIMARY_OUTLET]) {
          var c = s.children[PRIMARY_OUTLET];
          return new UrlSegmentGroup(s.segments.concat(c.segments), c.children);
        }

        return s;
      }

      function addEmptySegmentsToChildrenIfNeeded(segmentGroup, slicedSegments, routes, children) {
        var res = {};

        var _iterator81 = _createForOfIteratorHelper(routes),
            _step80;

        try {
          for (_iterator81.s(); !(_step80 = _iterator81.n()).done;) {
            var r = _step80.value;

            if (isEmptyPathRedirect(segmentGroup, slicedSegments, r) && !children[getOutlet(r)]) {
              res[getOutlet(r)] = new UrlSegmentGroup([], {});
            }
          }
        } catch (err) {
          _iterator81.e(err);
        } finally {
          _iterator81.f();
        }

        return Object.assign(Object.assign({}, children), res);
      }

      function createChildrenForEmptySegments(routes, primarySegmentGroup) {
        var res = {};
        res[PRIMARY_OUTLET] = primarySegmentGroup;

        var _iterator82 = _createForOfIteratorHelper(routes),
            _step81;

        try {
          for (_iterator82.s(); !(_step81 = _iterator82.n()).done;) {
            var r = _step81.value;

            if (r.path === '' && getOutlet(r) !== PRIMARY_OUTLET) {
              res[getOutlet(r)] = new UrlSegmentGroup([], {});
            }
          }
        } catch (err) {
          _iterator82.e(err);
        } finally {
          _iterator82.f();
        }

        return res;
      }

      function containsEmptyPathRedirectsWithNamedOutlets(segmentGroup, segments, routes) {
        return routes.some(function (r) {
          return isEmptyPathRedirect(segmentGroup, segments, r) && getOutlet(r) !== PRIMARY_OUTLET;
        });
      }

      function containsEmptyPathRedirects(segmentGroup, segments, routes) {
        return routes.some(function (r) {
          return isEmptyPathRedirect(segmentGroup, segments, r);
        });
      }

      function isEmptyPathRedirect(segmentGroup, segments, r) {
        if ((segmentGroup.hasChildren() || segments.length > 0) && r.pathMatch === 'full') {
          return false;
        }

        return r.path === '' && r.redirectTo !== undefined;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function applyRedirects$1(moduleInjector, configLoader, urlSerializer, config) {
        return function (source) {
          return source.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["switchMap"])(function (t) {
            return applyRedirects(moduleInjector, configLoader, urlSerializer, t.extractedUrl, config).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(function (urlAfterRedirects) {
              return Object.assign(Object.assign({}, t), {
                urlAfterRedirects: urlAfterRedirects
              });
            }));
          }));
        };
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var CanActivate = function CanActivate(path) {
        _classCallCheck2(this, CanActivate);

        this.path = path;
        this.route = this.path[this.path.length - 1];
      };

      var CanDeactivate = function CanDeactivate(component, route) {
        _classCallCheck2(this, CanDeactivate);

        this.component = component;
        this.route = route;
      };

      function getAllRouteGuards(future, curr, parentContexts) {
        var futureRoot = future._root;
        var currRoot = curr ? curr._root : null;
        return getChildRouteGuards(futureRoot, currRoot, parentContexts, [futureRoot.value]);
      }

      function getCanActivateChild(p) {
        var canActivateChild = p.routeConfig ? p.routeConfig.canActivateChild : null;
        if (!canActivateChild || canActivateChild.length === 0) return null;
        return {
          node: p,
          guards: canActivateChild
        };
      }

      function getToken(token, snapshot, moduleInjector) {
        var config = getClosestLoadedConfig(snapshot);
        var injector = config ? config.module.injector : moduleInjector;
        return injector.get(token);
      }

      function getClosestLoadedConfig(snapshot) {
        if (!snapshot) return null;

        for (var s = snapshot.parent; s; s = s.parent) {
          var route = s.routeConfig;
          if (route && route._loadedConfig) return route._loadedConfig;
        }

        return null;
      }

      function getChildRouteGuards(futureNode, currNode, contexts, futurePath) {
        var checks = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {
          canDeactivateChecks: [],
          canActivateChecks: []
        };
        var prevChildren = nodeChildrenAsMap(currNode); // Process the children of the future route

        futureNode.children.forEach(function (c) {
          getRouteGuards(c, prevChildren[c.value.outlet], contexts, futurePath.concat([c.value]), checks);
          delete prevChildren[c.value.outlet];
        }); // Process any children left from the current route (not active for the future route)

        forEach(prevChildren, function (v, k) {
          return deactivateRouteAndItsChildren(v, contexts.getContext(k), checks);
        });
        return checks;
      }

      function getRouteGuards(futureNode, currNode, parentContexts, futurePath) {
        var checks = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {
          canDeactivateChecks: [],
          canActivateChecks: []
        };
        var future = futureNode.value;
        var curr = currNode ? currNode.value : null;
        var context = parentContexts ? parentContexts.getContext(futureNode.value.outlet) : null; // reusing the node

        if (curr && future.routeConfig === curr.routeConfig) {
          var shouldRun = shouldRunGuardsAndResolvers(curr, future, future.routeConfig.runGuardsAndResolvers);

          if (shouldRun) {
            checks.canActivateChecks.push(new CanActivate(futurePath));
          } else {
            // we need to set the data
            future.data = curr.data;
            future._resolvedData = curr._resolvedData;
          } // If we have a component, we need to go through an outlet.


          if (future.component) {
            getChildRouteGuards(futureNode, currNode, context ? context.children : null, futurePath, checks); // if we have a componentless route, we recurse but keep the same outlet map.
          } else {
            getChildRouteGuards(futureNode, currNode, parentContexts, futurePath, checks);
          }

          if (shouldRun && context && context.outlet && context.outlet.isActivated) {
            checks.canDeactivateChecks.push(new CanDeactivate(context.outlet.component, curr));
          }
        } else {
          if (curr) {
            deactivateRouteAndItsChildren(currNode, context, checks);
          }

          checks.canActivateChecks.push(new CanActivate(futurePath)); // If we have a component, we need to go through an outlet.

          if (future.component) {
            getChildRouteGuards(futureNode, null, context ? context.children : null, futurePath, checks); // if we have a componentless route, we recurse but keep the same outlet map.
          } else {
            getChildRouteGuards(futureNode, null, parentContexts, futurePath, checks);
          }
        }

        return checks;
      }

      function shouldRunGuardsAndResolvers(curr, future, mode) {
        if (typeof mode === 'function') {
          return mode(curr, future);
        }

        switch (mode) {
          case 'pathParamsChange':
            return !equalPath(curr.url, future.url);

          case 'pathParamsOrQueryParamsChange':
            return !equalPath(curr.url, future.url) || !shallowEqual(curr.queryParams, future.queryParams);

          case 'always':
            return true;

          case 'paramsOrQueryParamsChange':
            return !equalParamsAndUrlSegments(curr, future) || !shallowEqual(curr.queryParams, future.queryParams);

          case 'paramsChange':
          default:
            return !equalParamsAndUrlSegments(curr, future);
        }
      }

      function deactivateRouteAndItsChildren(route, context, checks) {
        var children = nodeChildrenAsMap(route);
        var r = route.value;
        forEach(children, function (node, childName) {
          if (!r.component) {
            deactivateRouteAndItsChildren(node, context, checks);
          } else if (context) {
            deactivateRouteAndItsChildren(node, context.children.getContext(childName), checks);
          } else {
            deactivateRouteAndItsChildren(node, null, checks);
          }
        });

        if (!r.component) {
          checks.canDeactivateChecks.push(new CanDeactivate(null, r));
        } else if (context && context.outlet && context.outlet.isActivated) {
          checks.canDeactivateChecks.push(new CanDeactivate(context.outlet.component, r));
        } else {
          checks.canDeactivateChecks.push(new CanDeactivate(null, r));
        }
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function checkGuards(moduleInjector, forwardEvent) {
        return function (source) {
          return source.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])(function (t) {
            var targetSnapshot = t.targetSnapshot,
                currentSnapshot = t.currentSnapshot,
                _t$guards = t.guards,
                canActivateChecks = _t$guards.canActivateChecks,
                canDeactivateChecks = _t$guards.canDeactivateChecks;

            if (canDeactivateChecks.length === 0 && canActivateChecks.length === 0) {
              return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(Object.assign(Object.assign({}, t), {
                guardsResult: true
              }));
            }

            return runCanDeactivateChecks(canDeactivateChecks, targetSnapshot, currentSnapshot, moduleInjector).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])(function (canDeactivate) {
              return canDeactivate && isBoolean(canDeactivate) ? runCanActivateChecks(targetSnapshot, canActivateChecks, moduleInjector, forwardEvent) : Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(canDeactivate);
            }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(function (guardsResult) {
              return Object.assign(Object.assign({}, t), {
                guardsResult: guardsResult
              });
            }));
          }));
        };
      }

      function runCanDeactivateChecks(checks, futureRSS, currRSS, moduleInjector) {
        return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["from"])(checks).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])(function (check) {
          return runCanDeactivate(check.component, check.route, currRSS, futureRSS, moduleInjector);
        }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["first"])(function (result) {
          return result !== true;
        }, true));
      }

      function runCanActivateChecks(futureSnapshot, checks, moduleInjector, forwardEvent) {
        return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["from"])(checks).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["concatMap"])(function (check) {
          return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["from"])([fireChildActivationStart(check.route.parent, forwardEvent), fireActivationStart(check.route, forwardEvent), runCanActivateChild(futureSnapshot, check.path, moduleInjector), runCanActivate(futureSnapshot, check.route, moduleInjector)]).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["concatAll"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["first"])(function (result) {
            return result !== true;
          }, true));
        }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["first"])(function (result) {
          return result !== true;
        }, true));
      }
      /**
       * This should fire off `ActivationStart` events for each route being activated at this
       * level.
       * In other words, if you're activating `a` and `b` below, `path` will contain the
       * `ActivatedRouteSnapshot`s for both and we will fire `ActivationStart` for both. Always
       * return
       * `true` so checks continue to run.
       */


      function fireActivationStart(snapshot, forwardEvent) {
        if (snapshot !== null && forwardEvent) {
          forwardEvent(new ActivationStart(snapshot));
        }

        return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(true);
      }
      /**
       * This should fire off `ChildActivationStart` events for each route being activated at this
       * level.
       * In other words, if you're activating `a` and `b` below, `path` will contain the
       * `ActivatedRouteSnapshot`s for both and we will fire `ChildActivationStart` for both. Always
       * return
       * `true` so checks continue to run.
       */


      function fireChildActivationStart(snapshot, forwardEvent) {
        if (snapshot !== null && forwardEvent) {
          forwardEvent(new ChildActivationStart(snapshot));
        }

        return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(true);
      }

      function runCanActivate(futureRSS, futureARS, moduleInjector) {
        var canActivate = futureARS.routeConfig ? futureARS.routeConfig.canActivate : null;
        if (!canActivate || canActivate.length === 0) return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(true);
        var canActivateObservables = canActivate.map(function (c) {
          return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["defer"])(function () {
            var guard = getToken(c, futureARS, moduleInjector);
            var observable;

            if (isCanActivate(guard)) {
              observable = wrapIntoObservable(guard.canActivate(futureARS, futureRSS));
            } else if (isFunction(guard)) {
              observable = wrapIntoObservable(guard(futureARS, futureRSS));
            } else {
              throw new Error('Invalid CanActivate guard');
            }

            return observable.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["first"])());
          });
        });
        return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(canActivateObservables).pipe(prioritizedGuardValue());
      }

      function runCanActivateChild(futureRSS, path, moduleInjector) {
        var futureARS = path[path.length - 1];
        var canActivateChildGuards = path.slice(0, path.length - 1).reverse().map(function (p) {
          return getCanActivateChild(p);
        }).filter(function (_) {
          return _ !== null;
        });
        var canActivateChildGuardsMapped = canActivateChildGuards.map(function (d) {
          return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["defer"])(function () {
            var guardsMapped = d.guards.map(function (c) {
              var guard = getToken(c, d.node, moduleInjector);
              var observable;

              if (isCanActivateChild(guard)) {
                observable = wrapIntoObservable(guard.canActivateChild(futureARS, futureRSS));
              } else if (isFunction(guard)) {
                observable = wrapIntoObservable(guard(futureARS, futureRSS));
              } else {
                throw new Error('Invalid CanActivateChild guard');
              }

              return observable.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["first"])());
            });
            return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(guardsMapped).pipe(prioritizedGuardValue());
          });
        });
        return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(canActivateChildGuardsMapped).pipe(prioritizedGuardValue());
      }

      function runCanDeactivate(component, currARS, currRSS, futureRSS, moduleInjector) {
        var canDeactivate = currARS && currARS.routeConfig ? currARS.routeConfig.canDeactivate : null;
        if (!canDeactivate || canDeactivate.length === 0) return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(true);
        var canDeactivateObservables = canDeactivate.map(function (c) {
          var guard = getToken(c, currARS, moduleInjector);
          var observable;

          if (isCanDeactivate(guard)) {
            observable = wrapIntoObservable(guard.canDeactivate(component, currARS, currRSS, futureRSS));
          } else if (isFunction(guard)) {
            observable = wrapIntoObservable(guard(component, currARS, currRSS, futureRSS));
          } else {
            throw new Error('Invalid CanDeactivate guard');
          }

          return observable.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["first"])());
        });
        return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(canDeactivateObservables).pipe(prioritizedGuardValue());
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var NoMatch$1 = function NoMatch$1() {
        _classCallCheck2(this, NoMatch$1);
      };

      function recognize(rootComponentType, config, urlTree, url) {
        var paramsInheritanceStrategy = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 'emptyOnly';
        var relativeLinkResolution = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 'legacy';
        return new Recognizer(rootComponentType, config, urlTree, url, paramsInheritanceStrategy, relativeLinkResolution).recognize();
      }

      var Recognizer = /*#__PURE__*/function () {
        function Recognizer(rootComponentType, config, urlTree, url, paramsInheritanceStrategy, relativeLinkResolution) {
          _classCallCheck2(this, Recognizer);

          this.rootComponentType = rootComponentType;
          this.config = config;
          this.urlTree = urlTree;
          this.url = url;
          this.paramsInheritanceStrategy = paramsInheritanceStrategy;
          this.relativeLinkResolution = relativeLinkResolution;
        }

        _createClass2(Recognizer, [{
          key: "recognize",
          value: function recognize() {
            try {
              var rootSegmentGroup = split$1(this.urlTree.root, [], [], this.config, this.relativeLinkResolution).segmentGroup;
              var children = this.processSegmentGroup(this.config, rootSegmentGroup, PRIMARY_OUTLET);
              var root = new ActivatedRouteSnapshot([], Object.freeze({}), Object.freeze(Object.assign({}, this.urlTree.queryParams)), this.urlTree.fragment, {}, PRIMARY_OUTLET, this.rootComponentType, null, this.urlTree.root, -1, {});
              var rootNode = new TreeNode(root, children);
              var routeState = new RouterStateSnapshot(this.url, rootNode);
              this.inheritParamsAndData(routeState._root);
              return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(routeState);
            } catch (e) {
              return new rxjs__WEBPACK_IMPORTED_MODULE_2__["Observable"](function (obs) {
                return obs.error(e);
              });
            }
          }
        }, {
          key: "inheritParamsAndData",
          value: function inheritParamsAndData(routeNode) {
            var _this815 = this;

            var route = routeNode.value;
            var i = inheritedParamsDataResolve(route, this.paramsInheritanceStrategy);
            route.params = Object.freeze(i.params);
            route.data = Object.freeze(i.data);
            routeNode.children.forEach(function (n) {
              return _this815.inheritParamsAndData(n);
            });
          }
        }, {
          key: "processSegmentGroup",
          value: function processSegmentGroup(config, segmentGroup, outlet) {
            if (segmentGroup.segments.length === 0 && segmentGroup.hasChildren()) {
              return this.processChildren(config, segmentGroup);
            }

            return this.processSegment(config, segmentGroup, segmentGroup.segments, outlet);
          }
        }, {
          key: "processChildren",
          value: function processChildren(config, segmentGroup) {
            var _this816 = this;

            var children = mapChildrenIntoArray(segmentGroup, function (child, childOutlet) {
              return _this816.processSegmentGroup(config, child, childOutlet);
            });
            checkOutletNameUniqueness(children);
            sortActivatedRouteSnapshots(children);
            return children;
          }
        }, {
          key: "processSegment",
          value: function processSegment(config, segmentGroup, segments, outlet) {
            var _iterator83 = _createForOfIteratorHelper(config),
                _step82;

            try {
              for (_iterator83.s(); !(_step82 = _iterator83.n()).done;) {
                var r = _step82.value;

                try {
                  return this.processSegmentAgainstRoute(r, segmentGroup, segments, outlet);
                } catch (e) {
                  if (!(e instanceof NoMatch$1)) throw e;
                }
              }
            } catch (err) {
              _iterator83.e(err);
            } finally {
              _iterator83.f();
            }

            if (this.noLeftoversInUrl(segmentGroup, segments, outlet)) {
              return [];
            }

            throw new NoMatch$1();
          }
        }, {
          key: "noLeftoversInUrl",
          value: function noLeftoversInUrl(segmentGroup, segments, outlet) {
            return segments.length === 0 && !segmentGroup.children[outlet];
          }
        }, {
          key: "processSegmentAgainstRoute",
          value: function processSegmentAgainstRoute(route, rawSegment, segments, outlet) {
            if (route.redirectTo) throw new NoMatch$1();
            if ((route.outlet || PRIMARY_OUTLET) !== outlet) throw new NoMatch$1();
            var snapshot;
            var consumedSegments = [];
            var rawSlicedSegments = [];

            if (route.path === '**') {
              var params = segments.length > 0 ? last(segments).parameters : {};
              snapshot = new ActivatedRouteSnapshot(segments, params, Object.freeze(Object.assign({}, this.urlTree.queryParams)), this.urlTree.fragment, getData(route), outlet, route.component, route, getSourceSegmentGroup(rawSegment), getPathIndexShift(rawSegment) + segments.length, getResolve(route));
            } else {
              var result = match$1(rawSegment, route, segments);
              consumedSegments = result.consumedSegments;
              rawSlicedSegments = segments.slice(result.lastChild);
              snapshot = new ActivatedRouteSnapshot(consumedSegments, result.parameters, Object.freeze(Object.assign({}, this.urlTree.queryParams)), this.urlTree.fragment, getData(route), outlet, route.component, route, getSourceSegmentGroup(rawSegment), getPathIndexShift(rawSegment) + consumedSegments.length, getResolve(route));
            }

            var childConfig = getChildConfig(route);

            var _split$ = split$1(rawSegment, consumedSegments, rawSlicedSegments, childConfig, this.relativeLinkResolution),
                segmentGroup = _split$.segmentGroup,
                slicedSegments = _split$.slicedSegments;

            if (slicedSegments.length === 0 && segmentGroup.hasChildren()) {
              var _children3 = this.processChildren(childConfig, segmentGroup);

              return [new TreeNode(snapshot, _children3)];
            }

            if (childConfig.length === 0 && slicedSegments.length === 0) {
              return [new TreeNode(snapshot, [])];
            }

            var children = this.processSegment(childConfig, segmentGroup, slicedSegments, PRIMARY_OUTLET);
            return [new TreeNode(snapshot, children)];
          }
        }]);

        return Recognizer;
      }();

      function sortActivatedRouteSnapshots(nodes) {
        nodes.sort(function (a, b) {
          if (a.value.outlet === PRIMARY_OUTLET) return -1;
          if (b.value.outlet === PRIMARY_OUTLET) return 1;
          return a.value.outlet.localeCompare(b.value.outlet);
        });
      }

      function getChildConfig(route) {
        if (route.children) {
          return route.children;
        }

        if (route.loadChildren) {
          return route._loadedConfig.routes;
        }

        return [];
      }

      function match$1(segmentGroup, route, segments) {
        if (route.path === '') {
          if (route.pathMatch === 'full' && (segmentGroup.hasChildren() || segments.length > 0)) {
            throw new NoMatch$1();
          }

          return {
            consumedSegments: [],
            lastChild: 0,
            parameters: {}
          };
        }

        var matcher = route.matcher || defaultUrlMatcher;
        var res = matcher(segments, segmentGroup, route);
        if (!res) throw new NoMatch$1();
        var posParams = {};
        forEach(res.posParams, function (v, k) {
          posParams[k] = v.path;
        });
        var parameters = res.consumed.length > 0 ? Object.assign(Object.assign({}, posParams), res.consumed[res.consumed.length - 1].parameters) : posParams;
        return {
          consumedSegments: res.consumed,
          lastChild: res.consumed.length,
          parameters: parameters
        };
      }

      function checkOutletNameUniqueness(nodes) {
        var names = {};
        nodes.forEach(function (n) {
          var routeWithSameOutletName = names[n.value.outlet];

          if (routeWithSameOutletName) {
            var p = routeWithSameOutletName.url.map(function (s) {
              return s.toString();
            }).join('/');
            var c = n.value.url.map(function (s) {
              return s.toString();
            }).join('/');
            throw new Error("Two segments cannot have the same outlet name: '".concat(p, "' and '").concat(c, "'."));
          }

          names[n.value.outlet] = n.value;
        });
      }

      function getSourceSegmentGroup(segmentGroup) {
        var s = segmentGroup;

        while (s._sourceSegment) {
          s = s._sourceSegment;
        }

        return s;
      }

      function getPathIndexShift(segmentGroup) {
        var s = segmentGroup;
        var res = s._segmentIndexShift ? s._segmentIndexShift : 0;

        while (s._sourceSegment) {
          s = s._sourceSegment;
          res += s._segmentIndexShift ? s._segmentIndexShift : 0;
        }

        return res - 1;
      }

      function split$1(segmentGroup, consumedSegments, slicedSegments, config, relativeLinkResolution) {
        if (slicedSegments.length > 0 && containsEmptyPathMatchesWithNamedOutlets(segmentGroup, slicedSegments, config)) {
          var _s3 = new UrlSegmentGroup(consumedSegments, createChildrenForEmptyPaths(segmentGroup, consumedSegments, config, new UrlSegmentGroup(slicedSegments, segmentGroup.children)));

          _s3._sourceSegment = segmentGroup;
          _s3._segmentIndexShift = consumedSegments.length;
          return {
            segmentGroup: _s3,
            slicedSegments: []
          };
        }

        if (slicedSegments.length === 0 && containsEmptyPathMatches(segmentGroup, slicedSegments, config)) {
          var _s4 = new UrlSegmentGroup(segmentGroup.segments, addEmptyPathsToChildrenIfNeeded(segmentGroup, consumedSegments, slicedSegments, config, segmentGroup.children, relativeLinkResolution));

          _s4._sourceSegment = segmentGroup;
          _s4._segmentIndexShift = consumedSegments.length;
          return {
            segmentGroup: _s4,
            slicedSegments: slicedSegments
          };
        }

        var s = new UrlSegmentGroup(segmentGroup.segments, segmentGroup.children);
        s._sourceSegment = segmentGroup;
        s._segmentIndexShift = consumedSegments.length;
        return {
          segmentGroup: s,
          slicedSegments: slicedSegments
        };
      }

      function addEmptyPathsToChildrenIfNeeded(segmentGroup, consumedSegments, slicedSegments, routes, children, relativeLinkResolution) {
        var res = {};

        var _iterator84 = _createForOfIteratorHelper(routes),
            _step83;

        try {
          for (_iterator84.s(); !(_step83 = _iterator84.n()).done;) {
            var r = _step83.value;

            if (emptyPathMatch(segmentGroup, slicedSegments, r) && !children[getOutlet$1(r)]) {
              var s = new UrlSegmentGroup([], {});
              s._sourceSegment = segmentGroup;

              if (relativeLinkResolution === 'legacy') {
                s._segmentIndexShift = segmentGroup.segments.length;
              } else {
                s._segmentIndexShift = consumedSegments.length;
              }

              res[getOutlet$1(r)] = s;
            }
          }
        } catch (err) {
          _iterator84.e(err);
        } finally {
          _iterator84.f();
        }

        return Object.assign(Object.assign({}, children), res);
      }

      function createChildrenForEmptyPaths(segmentGroup, consumedSegments, routes, primarySegment) {
        var res = {};
        res[PRIMARY_OUTLET] = primarySegment;
        primarySegment._sourceSegment = segmentGroup;
        primarySegment._segmentIndexShift = consumedSegments.length;

        var _iterator85 = _createForOfIteratorHelper(routes),
            _step84;

        try {
          for (_iterator85.s(); !(_step84 = _iterator85.n()).done;) {
            var r = _step84.value;

            if (r.path === '' && getOutlet$1(r) !== PRIMARY_OUTLET) {
              var s = new UrlSegmentGroup([], {});
              s._sourceSegment = segmentGroup;
              s._segmentIndexShift = consumedSegments.length;
              res[getOutlet$1(r)] = s;
            }
          }
        } catch (err) {
          _iterator85.e(err);
        } finally {
          _iterator85.f();
        }

        return res;
      }

      function containsEmptyPathMatchesWithNamedOutlets(segmentGroup, slicedSegments, routes) {
        return routes.some(function (r) {
          return emptyPathMatch(segmentGroup, slicedSegments, r) && getOutlet$1(r) !== PRIMARY_OUTLET;
        });
      }

      function containsEmptyPathMatches(segmentGroup, slicedSegments, routes) {
        return routes.some(function (r) {
          return emptyPathMatch(segmentGroup, slicedSegments, r);
        });
      }

      function emptyPathMatch(segmentGroup, slicedSegments, r) {
        if ((segmentGroup.hasChildren() || slicedSegments.length > 0) && r.pathMatch === 'full') {
          return false;
        }

        return r.path === '' && r.redirectTo === undefined;
      }

      function getOutlet$1(route) {
        return route.outlet || PRIMARY_OUTLET;
      }

      function getData(route) {
        return route.data || {};
      }

      function getResolve(route) {
        return route.resolve || {};
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function recognize$1(rootComponentType, config, serializer, paramsInheritanceStrategy, relativeLinkResolution) {
        return function (source) {
          return source.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])(function (t) {
            return recognize(rootComponentType, config, t.urlAfterRedirects, serializer(t.urlAfterRedirects), paramsInheritanceStrategy, relativeLinkResolution).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(function (targetSnapshot) {
              return Object.assign(Object.assign({}, t), {
                targetSnapshot: targetSnapshot
              });
            }));
          }));
        };
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function resolveData(paramsInheritanceStrategy, moduleInjector) {
        return function (source) {
          return source.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])(function (t) {
            var targetSnapshot = t.targetSnapshot,
                canActivateChecks = t.guards.canActivateChecks;

            if (!canActivateChecks.length) {
              return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(t);
            }

            var canActivateChecksResolved = 0;
            return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["from"])(canActivateChecks).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["concatMap"])(function (check) {
              return runResolve(check.route, targetSnapshot, paramsInheritanceStrategy, moduleInjector);
            }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["tap"])(function () {
              return canActivateChecksResolved++;
            }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["takeLast"])(1), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])(function (_) {
              return canActivateChecksResolved === canActivateChecks.length ? Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(t) : rxjs__WEBPACK_IMPORTED_MODULE_2__["EMPTY"];
            }));
          }));
        };
      }

      function runResolve(futureARS, futureRSS, paramsInheritanceStrategy, moduleInjector) {
        var resolve = futureARS._resolve;
        return resolveNode(resolve, futureARS, futureRSS, moduleInjector).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(function (resolvedData) {
          futureARS._resolvedData = resolvedData;
          futureARS.data = Object.assign(Object.assign({}, futureARS.data), inheritedParamsDataResolve(futureARS, paramsInheritanceStrategy).resolve);
          return null;
        }));
      }

      function resolveNode(resolve, futureARS, futureRSS, moduleInjector) {
        var keys = Object.keys(resolve);

        if (keys.length === 0) {
          return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])({});
        }

        var data = {};
        return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["from"])(keys).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])(function (key) {
          return getResolver(resolve[key], futureARS, futureRSS, moduleInjector).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["tap"])(function (value) {
            data[key] = value;
          }));
        }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["takeLast"])(1), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])(function () {
          // Ensure all resolvers returned values, otherwise don't emit any "next" and just complete
          // the chain which will cancel navigation
          if (Object.keys(data).length === keys.length) {
            return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(data);
          }

          return rxjs__WEBPACK_IMPORTED_MODULE_2__["EMPTY"];
        }));
      }

      function getResolver(injectionToken, futureARS, futureRSS, moduleInjector) {
        var resolver = getToken(injectionToken, futureARS, moduleInjector);
        return resolver.resolve ? wrapIntoObservable(resolver.resolve(futureARS, futureRSS)) : wrapIntoObservable(resolver(futureARS, futureRSS));
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Perform a side effect through a switchMap for every emission on the source Observable,
       * but return an Observable that is identical to the source. It's essentially the same as
       * the `tap` operator, but if the side effectful `next` function returns an ObservableInput,
       * it will wait before continuing with the original value.
       */


      function switchTap(next) {
        return function (source) {
          return source.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["switchMap"])(function (v) {
            var nextResult = next(v);

            if (nextResult) {
              return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["from"])(nextResult).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(function () {
                return v;
              }));
            }

            return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["from"])([v]);
          }));
        };
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @description
       *
       * Provides a way to customize when activated routes get reused.
       *
       * @publicApi
       */


      var RouteReuseStrategy = function RouteReuseStrategy() {
        _classCallCheck2(this, RouteReuseStrategy);
      };
      /**
       * @description
       *
       * This base route reuse strategy only reuses routes when the matched router configs are
       * identical. This prevents components from being destroyed and recreated
       * when just the fragment or query parameters change
       * (that is, the existing component is _reused_).
       *
       * This strategy does not store any routes for later reuse.
       *
       * Angular uses this strategy by default.
       *
       *
       * It can be used as a base class for custom route reuse strategies, i.e. you can create your own
       * class that extends the `BaseRouteReuseStrategy` one.
       * @publicApi
       */


      var BaseRouteReuseStrategy = /*#__PURE__*/function () {
        function BaseRouteReuseStrategy() {
          _classCallCheck2(this, BaseRouteReuseStrategy);
        }

        _createClass2(BaseRouteReuseStrategy, [{
          key: "shouldDetach",
          value:
          /**
           * Whether the given route should detach for later reuse.
           * Always returns false for `BaseRouteReuseStrategy`.
           * */
          function shouldDetach(route) {
            return false;
          }
          /**
           * A no-op; the route is never stored since this strategy never detaches routes for later re-use.
           */

        }, {
          key: "store",
          value: function store(route, detachedTree) {}
          /** Returns `false`, meaning the route (and its subtree) is never reattached */

        }, {
          key: "shouldAttach",
          value: function shouldAttach(route) {
            return false;
          }
          /** Returns `null` because this strategy does not store routes for later re-use. */

        }, {
          key: "retrieve",
          value: function retrieve(route) {
            return null;
          }
          /**
           * Determines if a route should be reused.
           * This strategy returns `true` when the future route config and current route config are
           * identical.
           */

        }, {
          key: "shouldReuseRoute",
          value: function shouldReuseRoute(future, curr) {
            return future.routeConfig === curr.routeConfig;
          }
        }]);

        return BaseRouteReuseStrategy;
      }();

      var DefaultRouteReuseStrategy = /*#__PURE__*/function (_BaseRouteReuseStrate) {
        _inherits2(DefaultRouteReuseStrategy, _BaseRouteReuseStrate);

        var _super393 = _createSuper2(DefaultRouteReuseStrategy);

        function DefaultRouteReuseStrategy() {
          _classCallCheck2(this, DefaultRouteReuseStrategy);

          return _super393.apply(this, arguments);
        }

        return DefaultRouteReuseStrategy;
      }(BaseRouteReuseStrategy);
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * The [DI token](guide/glossary/#di-token) for a router configuration.
       * @see `ROUTES`
       * @publicApi
       */


      var ROUTES = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["InjectionToken"]('ROUTES');

      var RouterConfigLoader = /*#__PURE__*/function () {
        function RouterConfigLoader(loader, compiler, onLoadStartListener, onLoadEndListener) {
          _classCallCheck2(this, RouterConfigLoader);

          this.loader = loader;
          this.compiler = compiler;
          this.onLoadStartListener = onLoadStartListener;
          this.onLoadEndListener = onLoadEndListener;
        }

        _createClass2(RouterConfigLoader, [{
          key: "load",
          value: function load(parentInjector, route) {
            var _this817 = this;

            if (this.onLoadStartListener) {
              this.onLoadStartListener(route);
            }

            var moduleFactory$ = this.loadModuleFactory(route.loadChildren);
            return moduleFactory$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(function (factory) {
              if (_this817.onLoadEndListener) {
                _this817.onLoadEndListener(route);
              }

              var module = factory.create(parentInjector);
              return new LoadedRouterConfig(flatten(module.injector.get(ROUTES)).map(standardizeConfig), module);
            }));
          }
        }, {
          key: "loadModuleFactory",
          value: function loadModuleFactory(loadChildren) {
            var _this818 = this;

            if (typeof loadChildren === 'string') {
              return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["from"])(this.loader.load(loadChildren));
            } else {
              return wrapIntoObservable(loadChildren()).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])(function (t) {
                if (t instanceof _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModuleFactory"]) {
                  return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(t);
                } else {
                  return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["from"])(_this818.compiler.compileModuleAsync(t));
                }
              }));
            }
          }
        }]);

        return RouterConfigLoader;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Store contextual information about a `RouterOutlet`
       *
       * @publicApi
       */


      var OutletContext = function OutletContext() {
        _classCallCheck2(this, OutletContext);

        this.outlet = null;
        this.route = null;
        this.resolver = null;
        this.children = new ChildrenOutletContexts();
        this.attachRef = null;
      };
      /**
       * Store contextual information about the children (= nested) `RouterOutlet`
       *
       * @publicApi
       */


      var ChildrenOutletContexts = /*#__PURE__*/function () {
        function ChildrenOutletContexts() {
          _classCallCheck2(this, ChildrenOutletContexts);

          // contexts for child outlets, by name.
          this.contexts = new Map();
        }
        /** Called when a `RouterOutlet` directive is instantiated */


        _createClass2(ChildrenOutletContexts, [{
          key: "onChildOutletCreated",
          value: function onChildOutletCreated(childName, outlet) {
            var context = this.getOrCreateContext(childName);
            context.outlet = outlet;
            this.contexts.set(childName, context);
          }
          /**
           * Called when a `RouterOutlet` directive is destroyed.
           * We need to keep the context as the outlet could be destroyed inside a NgIf and might be
           * re-created later.
           */

        }, {
          key: "onChildOutletDestroyed",
          value: function onChildOutletDestroyed(childName) {
            var context = this.getContext(childName);

            if (context) {
              context.outlet = null;
            }
          }
          /**
           * Called when the corresponding route is deactivated during navigation.
           * Because the component get destroyed, all children outlet are destroyed.
           */

        }, {
          key: "onOutletDeactivated",
          value: function onOutletDeactivated() {
            var contexts = this.contexts;
            this.contexts = new Map();
            return contexts;
          }
        }, {
          key: "onOutletReAttached",
          value: function onOutletReAttached(contexts) {
            this.contexts = contexts;
          }
        }, {
          key: "getOrCreateContext",
          value: function getOrCreateContext(childName) {
            var context = this.getContext(childName);

            if (!context) {
              context = new OutletContext();
              this.contexts.set(childName, context);
            }

            return context;
          }
        }, {
          key: "getContext",
          value: function getContext(childName) {
            return this.contexts.get(childName) || null;
          }
        }]);

        return ChildrenOutletContexts;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @description
       *
       * Provides a way to migrate AngularJS applications to Angular.
       *
       * @publicApi
       */


      var UrlHandlingStrategy = function UrlHandlingStrategy() {
        _classCallCheck2(this, UrlHandlingStrategy);
      };
      /**
       * @publicApi
       */


      var DefaultUrlHandlingStrategy = /*#__PURE__*/function () {
        function DefaultUrlHandlingStrategy() {
          _classCallCheck2(this, DefaultUrlHandlingStrategy);
        }

        _createClass2(DefaultUrlHandlingStrategy, [{
          key: "shouldProcessUrl",
          value: function shouldProcessUrl(url) {
            return true;
          }
        }, {
          key: "extract",
          value: function extract(url) {
            return url;
          }
        }, {
          key: "merge",
          value: function merge(newUrlPart, wholeUrl) {
            return newUrlPart;
          }
        }]);

        return DefaultUrlHandlingStrategy;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function defaultErrorHandler(error) {
        throw error;
      }

      function defaultMalformedUriErrorHandler(error, urlSerializer, url) {
        return urlSerializer.parse('/');
      }
      /**
       * @internal
       */


      function defaultRouterHook(snapshot, runExtras) {
        return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(null);
      }
      /**
       * @description
       *
       * A service that provides navigation among views and URL manipulation capabilities.
       *
       * @see `Route`.
       * @see [Routing and Navigation Guide](guide/router).
       *
       * @ngModule RouterModule
       *
       * @publicApi
       */


      var Router = /*#__PURE__*/function () {
        /**
         * Creates the router service.
         */
        // TODO: vsavkin make internal after the final is out.
        function Router(rootComponentType, urlSerializer, rootContexts, location, injector, loader, compiler, config) {
          var _this819 = this;

          _classCallCheck2(this, Router);

          this.rootComponentType = rootComponentType;
          this.urlSerializer = urlSerializer;
          this.rootContexts = rootContexts;
          this.location = location;
          this.config = config;
          this.lastSuccessfulNavigation = null;
          this.currentNavigation = null;
          /**
           * Tracks the previously seen location change from the location subscription so we can compare
           * the two latest to see if they are duplicates. See setUpLocationChangeListener.
           */

          this.lastLocationChangeInfo = null;
          this.navigationId = 0;
          this.isNgZoneEnabled = false;
          /**
           * An event stream for routing events in this NgModule.
           */

          this.events = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
          /**
           * A handler for navigation errors in this NgModule.
           */

          this.errorHandler = defaultErrorHandler;
          /**
           * A handler for errors thrown by `Router.parseUrl(url)`
           * when `url` contains an invalid character.
           * The most common case is a `%` sign
           * that's not encoded and is not part of a percent encoded sequence.
           */

          this.malformedUriErrorHandler = defaultMalformedUriErrorHandler;
          /**
           * True if at least one navigation event has occurred,
           * false otherwise.
           */

          this.navigated = false;
          this.lastSuccessfulId = -1;
          /**
           * Hooks that enable you to pause navigation,
           * either before or after the preactivation phase.
           * Used by `RouterModule`.
           *
           * @internal
           */

          this.hooks = {
            beforePreactivation: defaultRouterHook,
            afterPreactivation: defaultRouterHook
          };
          /**
           * A strategy for extracting and merging URLs.
           * Used for AngularJS to Angular migrations.
           */

          this.urlHandlingStrategy = new DefaultUrlHandlingStrategy();
          /**
           * A strategy for re-using routes.
           */

          this.routeReuseStrategy = new DefaultRouteReuseStrategy();
          /**
           * How to handle a navigation request to the current URL. One of:
           * - `'ignore'` :  The router ignores the request.
           * - `'reload'` : The router reloads the URL. Use to implement a "refresh" feature.
           */

          this.onSameUrlNavigation = 'ignore';
          /**
           * How to merge parameters, data, and resolved data from parent to child
           * routes. One of:
           *
           * - `'emptyOnly'` : Inherit parent parameters, data, and resolved data
           * for path-less or component-less routes.
           * - `'always'` : Inherit parent parameters, data, and resolved data
           * for all child routes.
           */

          this.paramsInheritanceStrategy = 'emptyOnly';
          /**
           * Determines when the router updates the browser URL.
           * By default (`"deferred"`), updates the browser URL after navigation has finished.
           * Set to `'eager'` to update the browser URL at the beginning of navigation.
           * You can choose to update early so that, if navigation fails,
           * you can show an error message with the URL that failed.
           */

          this.urlUpdateStrategy = 'deferred';
          /**
           * Enables a bug fix that corrects relative link resolution in components with empty paths.
           * @see `RouterModule`
           */

          this.relativeLinkResolution = 'corrected';

          var onLoadStart = function onLoadStart(r) {
            return _this819.triggerEvent(new RouteConfigLoadStart(r));
          };

          var onLoadEnd = function onLoadEnd(r) {
            return _this819.triggerEvent(new RouteConfigLoadEnd(r));
          };

          this.ngModule = injector.get(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModuleRef"]);
          this.console = injector.get(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵConsole"]);
          var ngZone = injector.get(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]);
          this.isNgZoneEnabled = ngZone instanceof _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"];
          this.resetConfig(config);
          this.currentUrlTree = createEmptyUrlTree();
          this.rawUrlTree = this.currentUrlTree;
          this.browserUrlTree = this.currentUrlTree;
          this.configLoader = new RouterConfigLoader(loader, compiler, onLoadStart, onLoadEnd);
          this.routerState = createEmptyState(this.currentUrlTree, this.rootComponentType);
          this.transitions = new rxjs__WEBPACK_IMPORTED_MODULE_2__["BehaviorSubject"]({
            id: 0,
            currentUrlTree: this.currentUrlTree,
            currentRawUrl: this.currentUrlTree,
            extractedUrl: this.urlHandlingStrategy.extract(this.currentUrlTree),
            urlAfterRedirects: this.urlHandlingStrategy.extract(this.currentUrlTree),
            rawUrl: this.currentUrlTree,
            extras: {},
            resolve: null,
            reject: null,
            promise: Promise.resolve(true),
            source: 'imperative',
            restoredState: null,
            currentSnapshot: this.routerState.snapshot,
            targetSnapshot: null,
            currentRouterState: this.routerState,
            targetRouterState: null,
            guards: {
              canActivateChecks: [],
              canDeactivateChecks: []
            },
            guardsResult: null
          });
          this.navigations = this.setupNavigations(this.transitions);
          this.processNavigations();
        }

        _createClass2(Router, [{
          key: "setupNavigations",
          value: function setupNavigations(transitions) {
            var _this820 = this;

            var eventsSubject = this.events;
            return transitions.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["filter"])(function (t) {
              return t.id !== 0;
            }), // Extract URL
            Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(function (t) {
              return Object.assign(Object.assign({}, t), {
                extractedUrl: _this820.urlHandlingStrategy.extract(t.rawUrl)
              });
            }), // Using switchMap so we cancel executing navigations when a new one comes in
            Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["switchMap"])(function (t) {
              var completed = false;
              var errored = false;
              return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(t).pipe( // Store the Navigation object
              Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["tap"])(function (t) {
                _this820.currentNavigation = {
                  id: t.id,
                  initialUrl: t.currentRawUrl,
                  extractedUrl: t.extractedUrl,
                  trigger: t.source,
                  extras: t.extras,
                  previousNavigation: _this820.lastSuccessfulNavigation ? Object.assign(Object.assign({}, _this820.lastSuccessfulNavigation), {
                    previousNavigation: null
                  }) : null
                };
              }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["switchMap"])(function (t) {
                var urlTransition = !_this820.navigated || t.extractedUrl.toString() !== _this820.browserUrlTree.toString();

                var processCurrentUrl = (_this820.onSameUrlNavigation === 'reload' ? true : urlTransition) && _this820.urlHandlingStrategy.shouldProcessUrl(t.rawUrl);

                if (processCurrentUrl) {
                  return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(t).pipe( // Fire NavigationStart event
                  Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["switchMap"])(function (t) {
                    var transition = _this820.transitions.getValue();

                    eventsSubject.next(new NavigationStart(t.id, _this820.serializeUrl(t.extractedUrl), t.source, t.restoredState));

                    if (transition !== _this820.transitions.getValue()) {
                      return rxjs__WEBPACK_IMPORTED_MODULE_2__["EMPTY"];
                    }

                    return [t];
                  }), // This delay is required to match old behavior that forced navigation
                  // to always be async
                  Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["switchMap"])(function (t) {
                    return Promise.resolve(t);
                  }), // ApplyRedirects
                  applyRedirects$1(_this820.ngModule.injector, _this820.configLoader, _this820.urlSerializer, _this820.config), // Update the currentNavigation
                  Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["tap"])(function (t) {
                    _this820.currentNavigation = Object.assign(Object.assign({}, _this820.currentNavigation), {
                      finalUrl: t.urlAfterRedirects
                    });
                  }), // Recognize
                  recognize$1(_this820.rootComponentType, _this820.config, function (url) {
                    return _this820.serializeUrl(url);
                  }, _this820.paramsInheritanceStrategy, _this820.relativeLinkResolution), // Update URL if in `eager` update mode
                  Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["tap"])(function (t) {
                    if (_this820.urlUpdateStrategy === 'eager') {
                      if (!t.extras.skipLocationChange) {
                        _this820.setBrowserUrl(t.urlAfterRedirects, !!t.extras.replaceUrl, t.id, t.extras.state);
                      }

                      _this820.browserUrlTree = t.urlAfterRedirects;
                    }
                  }), // Fire RoutesRecognized
                  Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["tap"])(function (t) {
                    var routesRecognized = new RoutesRecognized(t.id, _this820.serializeUrl(t.extractedUrl), _this820.serializeUrl(t.urlAfterRedirects), t.targetSnapshot);
                    eventsSubject.next(routesRecognized);
                  }));
                } else {
                  var processPreviousUrl = urlTransition && _this820.rawUrlTree && _this820.urlHandlingStrategy.shouldProcessUrl(_this820.rawUrlTree);
                  /* When the current URL shouldn't be processed, but the previous one was,
                   * we handle this "error condition" by navigating to the previously
                   * successful URL, but leaving the URL intact.*/


                  if (processPreviousUrl) {
                    var id = t.id,
                        extractedUrl = t.extractedUrl,
                        source = t.source,
                        restoredState = t.restoredState,
                        extras = t.extras;
                    var navStart = new NavigationStart(id, _this820.serializeUrl(extractedUrl), source, restoredState);
                    eventsSubject.next(navStart);
                    var targetSnapshot = createEmptyState(extractedUrl, _this820.rootComponentType).snapshot;
                    return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(Object.assign(Object.assign({}, t), {
                      targetSnapshot: targetSnapshot,
                      urlAfterRedirects: extractedUrl,
                      extras: Object.assign(Object.assign({}, extras), {
                        skipLocationChange: false,
                        replaceUrl: false
                      })
                    }));
                  } else {
                    /* When neither the current or previous URL can be processed, do nothing
                     * other than update router's internal reference to the current "settled"
                     * URL. This way the next navigation will be coming from the current URL
                     * in the browser.
                     */
                    _this820.rawUrlTree = t.rawUrl;
                    _this820.browserUrlTree = t.urlAfterRedirects;
                    t.resolve(null);
                    return rxjs__WEBPACK_IMPORTED_MODULE_2__["EMPTY"];
                  }
                }
              }), // Before Preactivation
              switchTap(function (t) {
                var targetSnapshot = t.targetSnapshot,
                    navigationId = t.id,
                    appliedUrlTree = t.extractedUrl,
                    rawUrlTree = t.rawUrl,
                    _t$extras = t.extras,
                    skipLocationChange = _t$extras.skipLocationChange,
                    replaceUrl = _t$extras.replaceUrl;
                return _this820.hooks.beforePreactivation(targetSnapshot, {
                  navigationId: navigationId,
                  appliedUrlTree: appliedUrlTree,
                  rawUrlTree: rawUrlTree,
                  skipLocationChange: !!skipLocationChange,
                  replaceUrl: !!replaceUrl
                });
              }), // --- GUARDS ---
              Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["tap"])(function (t) {
                var guardsStart = new GuardsCheckStart(t.id, _this820.serializeUrl(t.extractedUrl), _this820.serializeUrl(t.urlAfterRedirects), t.targetSnapshot);

                _this820.triggerEvent(guardsStart);
              }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(function (t) {
                return Object.assign(Object.assign({}, t), {
                  guards: getAllRouteGuards(t.targetSnapshot, t.currentSnapshot, _this820.rootContexts)
                });
              }), checkGuards(_this820.ngModule.injector, function (evt) {
                return _this820.triggerEvent(evt);
              }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["tap"])(function (t) {
                if (isUrlTree(t.guardsResult)) {
                  var error = navigationCancelingError("Redirecting to \"".concat(_this820.serializeUrl(t.guardsResult), "\""));
                  error.url = t.guardsResult;
                  throw error;
                }
              }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["tap"])(function (t) {
                var guardsEnd = new GuardsCheckEnd(t.id, _this820.serializeUrl(t.extractedUrl), _this820.serializeUrl(t.urlAfterRedirects), t.targetSnapshot, !!t.guardsResult);

                _this820.triggerEvent(guardsEnd);
              }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["filter"])(function (t) {
                if (!t.guardsResult) {
                  _this820.resetUrlToCurrentUrlTree();

                  var navCancel = new NavigationCancel(t.id, _this820.serializeUrl(t.extractedUrl), '');
                  eventsSubject.next(navCancel);
                  t.resolve(false);
                  return false;
                }

                return true;
              }), // --- RESOLVE ---
              switchTap(function (t) {
                if (t.guards.canActivateChecks.length) {
                  return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(t).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["tap"])(function (t) {
                    var resolveStart = new ResolveStart(t.id, _this820.serializeUrl(t.extractedUrl), _this820.serializeUrl(t.urlAfterRedirects), t.targetSnapshot);

                    _this820.triggerEvent(resolveStart);
                  }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["switchMap"])(function (t) {
                    var dataResolved = false;
                    return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(t).pipe(resolveData(_this820.paramsInheritanceStrategy, _this820.ngModule.injector), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["tap"])({
                      next: function next() {
                        return dataResolved = true;
                      },
                      complete: function complete() {
                        if (!dataResolved) {
                          var navCancel = new NavigationCancel(t.id, _this820.serializeUrl(t.extractedUrl), "At least one route resolver didn't emit any value.");
                          eventsSubject.next(navCancel);
                          t.resolve(false);
                        }
                      }
                    }));
                  }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["tap"])(function (t) {
                    var resolveEnd = new ResolveEnd(t.id, _this820.serializeUrl(t.extractedUrl), _this820.serializeUrl(t.urlAfterRedirects), t.targetSnapshot);

                    _this820.triggerEvent(resolveEnd);
                  }));
                }

                return undefined;
              }), // --- AFTER PREACTIVATION ---
              switchTap(function (t) {
                var targetSnapshot = t.targetSnapshot,
                    navigationId = t.id,
                    appliedUrlTree = t.extractedUrl,
                    rawUrlTree = t.rawUrl,
                    _t$extras2 = t.extras,
                    skipLocationChange = _t$extras2.skipLocationChange,
                    replaceUrl = _t$extras2.replaceUrl;
                return _this820.hooks.afterPreactivation(targetSnapshot, {
                  navigationId: navigationId,
                  appliedUrlTree: appliedUrlTree,
                  rawUrlTree: rawUrlTree,
                  skipLocationChange: !!skipLocationChange,
                  replaceUrl: !!replaceUrl
                });
              }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(function (t) {
                var targetRouterState = createRouterState(_this820.routeReuseStrategy, t.targetSnapshot, t.currentRouterState);
                return Object.assign(Object.assign({}, t), {
                  targetRouterState: targetRouterState
                });
              }),
              /* Once here, we are about to activate syncronously. The assumption is this
                 will succeed, and user code may read from the Router service. Therefore
                 before activation, we need to update router properties storing the current
                 URL and the RouterState, as well as updated the browser URL. All this should
                 happen *before* activating. */
              Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["tap"])(function (t) {
                _this820.currentUrlTree = t.urlAfterRedirects;
                _this820.rawUrlTree = _this820.urlHandlingStrategy.merge(_this820.currentUrlTree, t.rawUrl);
                _this820.routerState = t.targetRouterState;

                if (_this820.urlUpdateStrategy === 'deferred') {
                  if (!t.extras.skipLocationChange) {
                    _this820.setBrowserUrl(_this820.rawUrlTree, !!t.extras.replaceUrl, t.id, t.extras.state);
                  }

                  _this820.browserUrlTree = t.urlAfterRedirects;
                }
              }), activateRoutes(_this820.rootContexts, _this820.routeReuseStrategy, function (evt) {
                return _this820.triggerEvent(evt);
              }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["tap"])({
                next: function next() {
                  completed = true;
                },
                complete: function complete() {
                  completed = true;
                }
              }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(function () {
                /* When the navigation stream finishes either through error or success, we
                 * set the `completed` or `errored` flag. However, there are some situations
                 * where we could get here without either of those being set. For instance, a
                 * redirect during NavigationStart. Therefore, this is a catch-all to make
                 * sure the NavigationCancel
                 * event is fired when a navigation gets cancelled but not caught by other
                 * means. */
                if (!completed && !errored) {
                  // Must reset to current URL tree here to ensure history.state is set. On a
                  // fresh page load, if a new navigation comes in before a successful
                  // navigation completes, there will be nothing in
                  // history.state.navigationId. This can cause sync problems with AngularJS
                  // sync code which looks for a value here in order to determine whether or
                  // not to handle a given popstate event or to leave it to the Angualr
                  // router.
                  _this820.resetUrlToCurrentUrlTree();

                  var navCancel = new NavigationCancel(t.id, _this820.serializeUrl(t.extractedUrl), "Navigation ID ".concat(t.id, " is not equal to the current navigation id ").concat(_this820.navigationId));
                  eventsSubject.next(navCancel);
                  t.resolve(false);
                } // currentNavigation should always be reset to null here. If navigation was
                // successful, lastSuccessfulTransition will have already been set. Therefore
                // we can safely set currentNavigation to null here.


                _this820.currentNavigation = null;
              }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(function (e) {
                errored = true;
                /* This error type is issued during Redirect, and is handled as a
                 * cancellation rather than an error. */

                if (isNavigationCancelingError(e)) {
                  var redirecting = isUrlTree(e.url);

                  if (!redirecting) {
                    // Set property only if we're not redirecting. If we landed on a page and
                    // redirect to `/` route, the new navigation is going to see the `/`
                    // isn't a change from the default currentUrlTree and won't navigate.
                    // This is only applicable with initial navigation, so setting
                    // `navigated` only when not redirecting resolves this scenario.
                    _this820.navigated = true;

                    _this820.resetStateAndUrl(t.currentRouterState, t.currentUrlTree, t.rawUrl);
                  }

                  var navCancel = new NavigationCancel(t.id, _this820.serializeUrl(t.extractedUrl), e.message);
                  eventsSubject.next(navCancel); // When redirecting, we need to delay resolving the navigation
                  // promise and push it to the redirect navigation

                  if (!redirecting) {
                    t.resolve(false);
                  } else {
                    // setTimeout is required so this navigation finishes with
                    // the return EMPTY below. If it isn't allowed to finish
                    // processing, there can be multiple navigations to the same
                    // URL.
                    setTimeout(function () {
                      var mergedTree = _this820.urlHandlingStrategy.merge(e.url, _this820.rawUrlTree);

                      var extras = {
                        skipLocationChange: t.extras.skipLocationChange,
                        replaceUrl: _this820.urlUpdateStrategy === 'eager'
                      };
                      return _this820.scheduleNavigation(mergedTree, 'imperative', null, extras, {
                        resolve: t.resolve,
                        reject: t.reject,
                        promise: t.promise
                      });
                    }, 0);
                  }
                  /* All other errors should reset to the router's internal URL reference to
                   * the pre-error state. */

                } else {
                  _this820.resetStateAndUrl(t.currentRouterState, t.currentUrlTree, t.rawUrl);

                  var navError = new NavigationError(t.id, _this820.serializeUrl(t.extractedUrl), e);
                  eventsSubject.next(navError);

                  try {
                    t.resolve(_this820.errorHandler(e));
                  } catch (ee) {
                    t.reject(ee);
                  }
                }

                return rxjs__WEBPACK_IMPORTED_MODULE_2__["EMPTY"];
              })); // TODO(jasonaden): remove cast once g3 is on updated TypeScript
            }));
          }
          /**
           * @internal
           * TODO: this should be removed once the constructor of the router made internal
           */

        }, {
          key: "resetRootComponentType",
          value: function resetRootComponentType(rootComponentType) {
            this.rootComponentType = rootComponentType; // TODO: vsavkin router 4.0 should make the root component set to null
            // this will simplify the lifecycle of the router.

            this.routerState.root.component = this.rootComponentType;
          }
        }, {
          key: "getTransition",
          value: function getTransition() {
            var transition = this.transitions.value; // This value needs to be set. Other values such as extractedUrl are set on initial navigation
            // but the urlAfterRedirects may not get set if we aren't processing the new URL *and* not
            // processing the previous URL.

            transition.urlAfterRedirects = this.browserUrlTree;
            return transition;
          }
        }, {
          key: "setTransition",
          value: function setTransition(t) {
            this.transitions.next(Object.assign(Object.assign({}, this.getTransition()), t));
          }
          /**
           * Sets up the location change listener and performs the initial navigation.
           */

        }, {
          key: "initialNavigation",
          value: function initialNavigation() {
            this.setUpLocationChangeListener();

            if (this.navigationId === 0) {
              this.navigateByUrl(this.location.path(true), {
                replaceUrl: true
              });
            }
          }
          /**
           * Sets up the location change listener. This listener detects navigations triggered from outside
           * the Router (the browser back/forward buttons, for example) and schedules a corresponding Router
           * navigation so that the correct events, guards, etc. are triggered.
           */

        }, {
          key: "setUpLocationChangeListener",
          value: function setUpLocationChangeListener() {
            var _this821 = this;

            // Don't need to use Zone.wrap any more, because zone.js
            // already patch onPopState, so location change callback will
            // run into ngZone
            if (!this.locationSubscription) {
              this.locationSubscription = this.location.subscribe(function (event) {
                var currentChange = _this821.extractLocationChangeInfoFromEvent(event);

                if (_this821.shouldScheduleNavigation(_this821.lastLocationChangeInfo, currentChange)) {
                  // The `setTimeout` was added in #12160 and is likely to support Angular/AngularJS
                  // hybrid apps.
                  setTimeout(function () {
                    var source = currentChange.source,
                        state = currentChange.state,
                        urlTree = currentChange.urlTree;
                    var extras = {
                      replaceUrl: true
                    };

                    if (state) {
                      var stateCopy = Object.assign({}, state);
                      delete stateCopy.navigationId;

                      if (Object.keys(stateCopy).length !== 0) {
                        extras.state = stateCopy;
                      }
                    }

                    _this821.scheduleNavigation(urlTree, source, state, extras);
                  }, 0);
                }

                _this821.lastLocationChangeInfo = currentChange;
              });
            }
          }
          /** Extracts router-related information from a `PopStateEvent`. */

        }, {
          key: "extractLocationChangeInfoFromEvent",
          value: function extractLocationChangeInfoFromEvent(change) {
            var _a;

            return {
              source: change['type'] === 'popstate' ? 'popstate' : 'hashchange',
              urlTree: this.parseUrl(change['url']),
              // Navigations coming from Angular router have a navigationId state
              // property. When this exists, restore the state.
              state: ((_a = change.state) === null || _a === void 0 ? void 0 : _a.navigationId) ? change.state : null,
              transitionId: this.getTransition().id
            };
          }
          /**
           * Determines whether two events triggered by the Location subscription are due to the same
           * navigation. The location subscription can fire two events (popstate and hashchange) for a
           * single navigation. The second one should be ignored, that is, we should not schedule another
           * navigation in the Router.
           */

        }, {
          key: "shouldScheduleNavigation",
          value: function shouldScheduleNavigation(previous, current) {
            if (!previous) return true;
            var sameDestination = current.urlTree.toString() === previous.urlTree.toString();
            var eventsOccurredAtSameTime = current.transitionId === previous.transitionId;

            if (!eventsOccurredAtSameTime || !sameDestination) {
              return true;
            }

            if (current.source === 'hashchange' && previous.source === 'popstate' || current.source === 'popstate' && previous.source === 'hashchange') {
              return false;
            }

            return true;
          }
          /** The current URL. */

        }, {
          key: "url",
          get: function get() {
            return this.serializeUrl(this.currentUrlTree);
          }
          /** The current Navigation object if one exists */

        }, {
          key: "getCurrentNavigation",
          value: function getCurrentNavigation() {
            return this.currentNavigation;
          }
          /** @internal */

        }, {
          key: "triggerEvent",
          value: function triggerEvent(event) {
            this.events.next(event);
          }
          /**
           * Resets the route configuration used for navigation and generating links.
           *
           * @param config The route array for the new configuration.
           *
           * @usageNotes
           *
           * ```
           * router.resetConfig([
           *  { path: 'team/:id', component: TeamCmp, children: [
           *    { path: 'simple', component: SimpleCmp },
           *    { path: 'user/:name', component: UserCmp }
           *  ]}
           * ]);
           * ```
           */

        }, {
          key: "resetConfig",
          value: function resetConfig(config) {
            validateConfig(config);
            this.config = config.map(standardizeConfig);
            this.navigated = false;
            this.lastSuccessfulId = -1;
          }
          /** @nodoc */

        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            this.dispose();
          }
          /** Disposes of the router. */

        }, {
          key: "dispose",
          value: function dispose() {
            if (this.locationSubscription) {
              this.locationSubscription.unsubscribe();
              this.locationSubscription = undefined;
            }
          }
          /**
           * Appends URL segments to the current URL tree to create a new URL tree.
           *
           * @param commands An array of URL fragments with which to construct the new URL tree.
           * If the path is static, can be the literal URL string. For a dynamic path, pass an array of path
           * segments, followed by the parameters for each segment.
           * The fragments are applied to the current URL tree or the one provided  in the `relativeTo`
           * property of the options object, if supplied.
           * @param navigationExtras Options that control the navigation strategy.
           * @returns The new URL tree.
           *
           * @usageNotes
           *
           * ```
           * // create /team/33/user/11
           * router.createUrlTree(['/team', 33, 'user', 11]);
           *
           * // create /team/33;expand=true/user/11
           * router.createUrlTree(['/team', 33, {expand: true}, 'user', 11]);
           *
           * // you can collapse static segments like this (this works only with the first passed-in value):
           * router.createUrlTree(['/team/33/user', userId]);
           *
           * // If the first segment can contain slashes, and you do not want the router to split it,
           * // you can do the following:
           * router.createUrlTree([{segmentPath: '/one/two'}]);
           *
           * // create /team/33/(user/11//right:chat)
           * router.createUrlTree(['/team', 33, {outlets: {primary: 'user/11', right: 'chat'}}]);
           *
           * // remove the right secondary node
           * router.createUrlTree(['/team', 33, {outlets: {primary: 'user/11', right: null}}]);
           *
           * // assuming the current url is `/team/33/user/11` and the route points to `user/11`
           *
           * // navigate to /team/33/user/11/details
           * router.createUrlTree(['details'], {relativeTo: route});
           *
           * // navigate to /team/33/user/22
           * router.createUrlTree(['../22'], {relativeTo: route});
           *
           * // navigate to /team/44/user/22
           * router.createUrlTree(['../../team/44/user/22'], {relativeTo: route});
           * ```
           */

        }, {
          key: "createUrlTree",
          value: function createUrlTree(commands) {
            var navigationExtras = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
            var relativeTo = navigationExtras.relativeTo,
                queryParams = navigationExtras.queryParams,
                fragment = navigationExtras.fragment,
                queryParamsHandling = navigationExtras.queryParamsHandling,
                preserveFragment = navigationExtras.preserveFragment;
            var a = relativeTo || this.routerState.root;
            var f = preserveFragment ? this.currentUrlTree.fragment : fragment;
            var q = null;

            switch (queryParamsHandling) {
              case 'merge':
                q = Object.assign(Object.assign({}, this.currentUrlTree.queryParams), queryParams);
                break;

              case 'preserve':
                q = this.currentUrlTree.queryParams;
                break;

              default:
                q = queryParams || null;
            }

            if (q !== null) {
              q = this.removeEmptyProps(q);
            }

            return _createUrlTree(a, this.currentUrlTree, commands, q, f);
          }
          /**
           * Navigates to a view using an absolute route path.
           *
           * @param url An absolute path for a defined route. The function does not apply any delta to the
           *     current URL.
           * @param extras An object containing properties that modify the navigation strategy.
           *
           * @returns A Promise that resolves to 'true' when navigation succeeds,
           * to 'false' when navigation fails, or is rejected on error.
           *
           * @usageNotes
           *
           * The following calls request navigation to an absolute path.
           *
           * ```
           * router.navigateByUrl("/team/33/user/11");
           *
           * // Navigate without updating the URL
           * router.navigateByUrl("/team/33/user/11", { skipLocationChange: true });
           * ```
           *
           * @see [Routing and Navigation guide](guide/router)
           *
           */

        }, {
          key: "navigateByUrl",
          value: function navigateByUrl(url) {
            var extras = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
              skipLocationChange: false
            };

            if (typeof ngDevMode === 'undefined' || ngDevMode && this.isNgZoneEnabled && !_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"].isInAngularZone()) {
              this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");
            }

            var urlTree = isUrlTree(url) ? url : this.parseUrl(url);
            var mergedTree = this.urlHandlingStrategy.merge(urlTree, this.rawUrlTree);
            return this.scheduleNavigation(mergedTree, 'imperative', null, extras);
          }
          /**
           * Navigate based on the provided array of commands and a starting point.
           * If no starting route is provided, the navigation is absolute.
           *
           * @param commands An array of URL fragments with which to construct the target URL.
           * If the path is static, can be the literal URL string. For a dynamic path, pass an array of path
           * segments, followed by the parameters for each segment.
           * The fragments are applied to the current URL or the one provided  in the `relativeTo` property
           * of the options object, if supplied.
           * @param extras An options object that determines how the URL should be constructed or
           *     interpreted.
           *
           * @returns A Promise that resolves to `true` when navigation succeeds, to `false` when navigation
           *     fails,
           * or is rejected on error.
           *
           * @usageNotes
           *
           * The following calls request navigation to a dynamic route path relative to the current URL.
           *
           * ```
           * router.navigate(['team', 33, 'user', 11], {relativeTo: route});
           *
           * // Navigate without updating the URL, overriding the default behavior
           * router.navigate(['team', 33, 'user', 11], {relativeTo: route, skipLocationChange: true});
           * ```
           *
           * @see [Routing and Navigation guide](guide/router)
           *
           */

        }, {
          key: "navigate",
          value: function navigate(commands) {
            var extras = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
              skipLocationChange: false
            };
            validateCommands(commands);
            return this.navigateByUrl(this.createUrlTree(commands, extras), extras);
          }
          /** Serializes a `UrlTree` into a string */

        }, {
          key: "serializeUrl",
          value: function serializeUrl(url) {
            return this.urlSerializer.serialize(url);
          }
          /** Parses a string into a `UrlTree` */

        }, {
          key: "parseUrl",
          value: function parseUrl(url) {
            var urlTree;

            try {
              urlTree = this.urlSerializer.parse(url);
            } catch (e) {
              urlTree = this.malformedUriErrorHandler(e, this.urlSerializer, url);
            }

            return urlTree;
          }
          /** Returns whether the url is activated */

        }, {
          key: "isActive",
          value: function isActive(url, exact) {
            if (isUrlTree(url)) {
              return containsTree(this.currentUrlTree, url, exact);
            }

            var urlTree = this.parseUrl(url);
            return containsTree(this.currentUrlTree, urlTree, exact);
          }
        }, {
          key: "removeEmptyProps",
          value: function removeEmptyProps(params) {
            return Object.keys(params).reduce(function (result, key) {
              var value = params[key];

              if (value !== null && value !== undefined) {
                result[key] = value;
              }

              return result;
            }, {});
          }
        }, {
          key: "processNavigations",
          value: function processNavigations() {
            var _this822 = this;

            this.navigations.subscribe(function (t) {
              _this822.navigated = true;
              _this822.lastSuccessfulId = t.id;

              _this822.events.next(new NavigationEnd(t.id, _this822.serializeUrl(t.extractedUrl), _this822.serializeUrl(_this822.currentUrlTree)));

              _this822.lastSuccessfulNavigation = _this822.currentNavigation;
              _this822.currentNavigation = null;
              t.resolve(true);
            }, function (e) {
              _this822.console.warn("Unhandled Navigation Error: ");
            });
          }
        }, {
          key: "scheduleNavigation",
          value: function scheduleNavigation(rawUrl, source, restoredState, extras, priorPromise) {
            // * Imperative navigations (router.navigate) might trigger additional navigations to the same
            //   URL via a popstate event and the locationChangeListener. We should skip these duplicate
            //   navs. Duplicates may also be triggered by attempts to sync AngularJS and Angular router
            //   states.
            // * Imperative navigations can be cancelled by router guards, meaning the URL won't change. If
            //   the user follows that with a navigation using the back/forward button or manual URL change,
            //   the destination may be the same as the previous imperative attempt. We should not skip
            //   these navigations because it's a separate case from the one above -- it's not a duplicate
            //   navigation.
            var lastNavigation = this.getTransition(); // We don't want to skip duplicate successful navs if they're imperative because
            // onSameUrlNavigation could be 'reload' (so the duplicate is intended).

            var browserNavPrecededByRouterNav = source !== 'imperative' && (lastNavigation === null || lastNavigation === void 0 ? void 0 : lastNavigation.source) === 'imperative';
            var lastNavigationSucceeded = this.lastSuccessfulId === lastNavigation.id; // If the last navigation succeeded or is in flight, we can use the rawUrl as the comparison.
            // However, if it failed, we should compare to the final result (urlAfterRedirects).

            var lastNavigationUrl = lastNavigationSucceeded || this.currentNavigation ? lastNavigation.rawUrl : lastNavigation.urlAfterRedirects;
            var duplicateNav = lastNavigationUrl.toString() === rawUrl.toString();

            if (browserNavPrecededByRouterNav && duplicateNav) {
              return Promise.resolve(true); // return value is not used
            }

            var resolve;
            var reject;
            var promise;

            if (priorPromise) {
              resolve = priorPromise.resolve;
              reject = priorPromise.reject;
              promise = priorPromise.promise;
            } else {
              promise = new Promise(function (res, rej) {
                resolve = res;
                reject = rej;
              });
            }

            var id = ++this.navigationId;
            this.setTransition({
              id: id,
              source: source,
              restoredState: restoredState,
              currentUrlTree: this.currentUrlTree,
              currentRawUrl: this.rawUrlTree,
              rawUrl: rawUrl,
              extras: extras,
              resolve: resolve,
              reject: reject,
              promise: promise,
              currentSnapshot: this.routerState.snapshot,
              currentRouterState: this.routerState
            }); // Make sure that the error is propagated even though `processNavigations` catch
            // handler does not rethrow

            return promise["catch"](function (e) {
              return Promise.reject(e);
            });
          }
        }, {
          key: "setBrowserUrl",
          value: function setBrowserUrl(url, replaceUrl, id, state) {
            var path = this.urlSerializer.serialize(url);
            state = state || {};

            if (this.location.isCurrentPathEqualTo(path) || replaceUrl) {
              // TODO(jasonaden): Remove first `navigationId` and rely on `ng` namespace.
              this.location.replaceState(path, '', Object.assign(Object.assign({}, state), {
                navigationId: id
              }));
            } else {
              this.location.go(path, '', Object.assign(Object.assign({}, state), {
                navigationId: id
              }));
            }
          }
        }, {
          key: "resetStateAndUrl",
          value: function resetStateAndUrl(storedState, storedUrl, rawUrl) {
            this.routerState = storedState;
            this.currentUrlTree = storedUrl;
            this.rawUrlTree = this.urlHandlingStrategy.merge(this.currentUrlTree, rawUrl);
            this.resetUrlToCurrentUrlTree();
          }
        }, {
          key: "resetUrlToCurrentUrlTree",
          value: function resetUrlToCurrentUrlTree() {
            this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree), '', {
              navigationId: this.lastSuccessfulId
            });
          }
        }]);

        return Router;
      }();

      Router.ɵfac = function Router_Factory(t) {
        return new (t || Router)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["Type"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](UrlSerializer), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](ChildrenOutletContexts), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_0__["Location"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injector"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModuleFactoryLoader"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["Compiler"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](undefined));
      };

      Router.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
        token: Router,
        factory: Router.ɵfac
      });

      Router.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Type"]
        }, {
          type: UrlSerializer
        }, {
          type: ChildrenOutletContexts
        }, {
          type: _angular_common__WEBPACK_IMPORTED_MODULE_0__["Location"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injector"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModuleFactoryLoader"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Compiler"]
        }, {
          type: undefined
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](Router, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Type"]
          }, {
            type: UrlSerializer
          }, {
            type: ChildrenOutletContexts
          }, {
            type: _angular_common__WEBPACK_IMPORTED_MODULE_0__["Location"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injector"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModuleFactoryLoader"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Compiler"]
          }, {
            type: undefined
          }];
        }, null);
      })();

      function validateCommands(commands) {
        for (var i = 0; i < commands.length; i++) {
          var cmd = commands[i];

          if (cmd == null) {
            throw new Error("The requested path contains ".concat(cmd, " segment at index ").concat(i));
          }
        }
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @description
       *
       * When applied to an element in a template, makes that element a link
       * that initiates navigation to a route. Navigation opens one or more routed components
       * in one or more `<router-outlet>` locations on the page.
       *
       * Given a route configuration `[{ path: 'user/:name', component: UserCmp }]`,
       * the following creates a static link to the route:
       * `<a routerLink="/user/bob">link to user component</a>`
       *
       * You can use dynamic values to generate the link.
       * For a dynamic link, pass an array of path segments,
       * followed by the params for each segment.
       * For example, `['/team', teamId, 'user', userName, {details: true}]`
       * generates a link to `/team/11/user/bob;details=true`.
       *
       * Multiple static segments can be merged into one term and combined with dynamic segements.
       * For example, `['/team/11/user', userName, {details: true}]`
       *
       * The input that you provide to the link is treated as a delta to the current URL.
       * For instance, suppose the current URL is `/user/(box//aux:team)`.
       * The link `<a [routerLink]="['/user/jim']">Jim</a>` creates the URL
       * `/user/(jim//aux:team)`.
       * See {@link Router#createUrlTree createUrlTree} for more information.
       *
       * @usageNotes
       *
       * You can use absolute or relative paths in a link, set query parameters,
       * control how parameters are handled, and keep a history of navigation states.
       *
       * ### Relative link paths
       *
       * The first segment name can be prepended with `/`, `./`, or `../`.
       * * If the first segment begins with `/`, the router looks up the route from the root of the
       *   app.
       * * If the first segment begins with `./`, or doesn't begin with a slash, the router
       *   looks in the children of the current activated route.
       * * If the first segment begins with `../`, the router goes up one level in the route tree.
       *
       * ### Setting and handling query params and fragments
       *
       * The following link adds a query parameter and a fragment to the generated URL:
       *
       * ```
       * <a [routerLink]="['/user/bob']" [queryParams]="{debug: true}" fragment="education">
       *   link to user component
       * </a>
       * ```
       * By default, the directive constructs the new URL using the given query parameters.
       * The example generates the link: `/user/bob?debug=true#education`.
       *
       * You can instruct the directive to handle query parameters differently
       * by specifying the `queryParamsHandling` option in the link.
       * Allowed values are:
       *
       *  - `'merge'`: Merge the given `queryParams` into the current query params.
       *  - `'preserve'`: Preserve the current query params.
       *
       * For example:
       *
       * ```
       * <a [routerLink]="['/user/bob']" [queryParams]="{debug: true}" queryParamsHandling="merge">
       *   link to user component
       * </a>
       * ```
       *
       * See {@link UrlCreationOptions.queryParamsHandling UrlCreationOptions#queryParamsHandling}.
       *
       * ### Preserving navigation history
       *
       * You can provide a `state` value to be persisted to the browser's
       * [`History.state` property](https://developer.mozilla.org/en-US/docs/Web/API/History#Properties).
       * For example:
       *
       * ```
       * <a [routerLink]="['/user/bob']" [state]="{tracingId: 123}">
       *   link to user component
       * </a>
       * ```
       *
       * Use {@link Router.getCurrentNavigation() Router#getCurrentNavigation} to retrieve a saved
       * navigation-state value. For example, to capture the `tracingId` during the `NavigationStart`
       * event:
       *
       * ```
       * // Get NavigationStart events
       * router.events.pipe(filter(e => e instanceof NavigationStart)).subscribe(e => {
       *   const navigation = router.getCurrentNavigation();
       *   tracingService.trace({id: navigation.extras.state.tracingId});
       * });
       * ```
       *
       * @ngModule RouterModule
       *
       * @publicApi
       */


      var RouterLink = /*#__PURE__*/function () {
        function RouterLink(router, route, tabIndex, renderer, el) {
          _classCallCheck2(this, RouterLink);

          this.router = router;
          this.route = route;
          this.commands = [];
          /** @internal */

          this.onChanges = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();

          if (tabIndex == null) {
            renderer.setAttribute(el.nativeElement, 'tabindex', '0');
          }
        }
        /** @nodoc */


        _createClass2(RouterLink, [{
          key: "ngOnChanges",
          value: function ngOnChanges(changes) {
            // This is subscribed to by `RouterLinkActive` so that it knows to update when there are changes
            // to the RouterLinks it's tracking.
            this.onChanges.next(this);
          }
          /**
           * Commands to pass to {@link Router#createUrlTree Router#createUrlTree}.
           *   - **array**: commands to pass to {@link Router#createUrlTree Router#createUrlTree}.
           *   - **string**: shorthand for array of commands with just the string, i.e. `['/route']`
           *   - **null|undefined**: shorthand for an empty array of commands, i.e. `[]`
           * @see {@link Router#createUrlTree Router#createUrlTree}
           */

        }, {
          key: "routerLink",
          set: function set(commands) {
            if (commands != null) {
              this.commands = Array.isArray(commands) ? commands : [commands];
            } else {
              this.commands = [];
            }
          }
          /** @nodoc */

        }, {
          key: "onClick",
          value: function onClick() {
            var extras = {
              skipLocationChange: attrBoolValue(this.skipLocationChange),
              replaceUrl: attrBoolValue(this.replaceUrl),
              state: this.state
            };
            this.router.navigateByUrl(this.urlTree, extras);
            return true;
          }
        }, {
          key: "urlTree",
          get: function get() {
            return this.router.createUrlTree(this.commands, {
              relativeTo: this.route,
              queryParams: this.queryParams,
              fragment: this.fragment,
              queryParamsHandling: this.queryParamsHandling,
              preserveFragment: attrBoolValue(this.preserveFragment)
            });
          }
        }]);

        return RouterLink;
      }();

      RouterLink.ɵfac = function RouterLink_Factory(t) {
        return new (t || RouterLink)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](Router), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ActivatedRoute), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinjectAttribute"]('tabindex'), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["Renderer2"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]));
      };

      RouterLink.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineDirective"]({
        type: RouterLink,
        selectors: [["", "routerLink", "", 5, "a", 5, "area"]],
        hostBindings: function RouterLink_HostBindings(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function RouterLink_click_HostBindingHandler() {
              return ctx.onClick();
            });
          }
        },
        inputs: {
          routerLink: "routerLink",
          queryParams: "queryParams",
          fragment: "fragment",
          queryParamsHandling: "queryParamsHandling",
          preserveFragment: "preserveFragment",
          skipLocationChange: "skipLocationChange",
          replaceUrl: "replaceUrl",
          state: "state"
        },
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵNgOnChangesFeature"]]
      });

      RouterLink.ctorParameters = function () {
        return [{
          type: Router
        }, {
          type: ActivatedRoute
        }, {
          type: String,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Attribute"],
            args: ['tabindex']
          }]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Renderer2"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]
        }];
      };

      RouterLink.propDecorators = {
        queryParams: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
        }],
        fragment: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
        }],
        queryParamsHandling: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
        }],
        preserveFragment: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
        }],
        skipLocationChange: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
        }],
        replaceUrl: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
        }],
        state: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
        }],
        routerLink: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
        }],
        onClick: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["HostListener"],
          args: ['click']
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](RouterLink, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Directive"],
          args: [{
            selector: ':not(a):not(area)[routerLink]'
          }]
        }], function () {
          return [{
            type: Router
          }, {
            type: ActivatedRoute
          }, {
            type: String,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Attribute"],
              args: ['tabindex']
            }]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Renderer2"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]
          }];
        }, {
          routerLink: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
          }],

          /** @nodoc */
          onClick: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["HostListener"],
            args: ['click']
          }],
          queryParams: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
          }],
          fragment: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
          }],
          queryParamsHandling: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
          }],
          preserveFragment: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
          }],
          skipLocationChange: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
          }],
          replaceUrl: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
          }],
          state: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
          }]
        });
      })();
      /**
       * @description
       *
       * Lets you link to specific routes in your app.
       *
       * See `RouterLink` for more information.
       *
       * @ngModule RouterModule
       *
       * @publicApi
       */


      var RouterLinkWithHref = /*#__PURE__*/function () {
        function RouterLinkWithHref(router, route, locationStrategy) {
          var _this823 = this;

          _classCallCheck2(this, RouterLinkWithHref);

          this.router = router;
          this.route = route;
          this.locationStrategy = locationStrategy;
          this.commands = [];
          /** @internal */

          this.onChanges = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
          this.subscription = router.events.subscribe(function (s) {
            if (s instanceof NavigationEnd) {
              _this823.updateTargetUrlAndHref();
            }
          });
        }
        /**
         * Commands to pass to {@link Router#createUrlTree Router#createUrlTree}.
         *   - **array**: commands to pass to {@link Router#createUrlTree Router#createUrlTree}.
         *   - **string**: shorthand for array of commands with just the string, i.e. `['/route']`
         *   - **null|undefined**: shorthand for an empty array of commands, i.e. `[]`
         * @see {@link Router#createUrlTree Router#createUrlTree}
         */


        _createClass2(RouterLinkWithHref, [{
          key: "routerLink",
          set: function set(commands) {
            if (commands != null) {
              this.commands = Array.isArray(commands) ? commands : [commands];
            } else {
              this.commands = [];
            }
          }
          /** @nodoc */

        }, {
          key: "ngOnChanges",
          value: function ngOnChanges(changes) {
            this.updateTargetUrlAndHref();
            this.onChanges.next(this);
          }
          /** @nodoc */

        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            this.subscription.unsubscribe();
          }
          /** @nodoc */

        }, {
          key: "onClick",
          value: function onClick(button, ctrlKey, shiftKey, altKey, metaKey) {
            if (button !== 0 || ctrlKey || shiftKey || altKey || metaKey) {
              return true;
            }

            if (typeof this.target === 'string' && this.target != '_self') {
              return true;
            }

            var extras = {
              skipLocationChange: attrBoolValue(this.skipLocationChange),
              replaceUrl: attrBoolValue(this.replaceUrl),
              state: this.state
            };
            this.router.navigateByUrl(this.urlTree, extras);
            return false;
          }
        }, {
          key: "updateTargetUrlAndHref",
          value: function updateTargetUrlAndHref() {
            this.href = this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree));
          }
        }, {
          key: "urlTree",
          get: function get() {
            return this.router.createUrlTree(this.commands, {
              relativeTo: this.route,
              queryParams: this.queryParams,
              fragment: this.fragment,
              queryParamsHandling: this.queryParamsHandling,
              preserveFragment: attrBoolValue(this.preserveFragment)
            });
          }
        }]);

        return RouterLinkWithHref;
      }();

      RouterLinkWithHref.ɵfac = function RouterLinkWithHref_Factory(t) {
        return new (t || RouterLinkWithHref)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](Router), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ActivatedRoute), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_common__WEBPACK_IMPORTED_MODULE_0__["LocationStrategy"]));
      };

      RouterLinkWithHref.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineDirective"]({
        type: RouterLinkWithHref,
        selectors: [["a", "routerLink", ""], ["area", "routerLink", ""]],
        hostVars: 2,
        hostBindings: function RouterLinkWithHref_HostBindings(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function RouterLinkWithHref_click_HostBindingHandler($event) {
              return ctx.onClick($event.button, $event.ctrlKey, $event.shiftKey, $event.altKey, $event.metaKey);
            });
          }

          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵhostProperty"]("href", ctx.href, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵattribute"]("target", ctx.target);
          }
        },
        inputs: {
          routerLink: "routerLink",
          target: "target",
          queryParams: "queryParams",
          fragment: "fragment",
          queryParamsHandling: "queryParamsHandling",
          preserveFragment: "preserveFragment",
          skipLocationChange: "skipLocationChange",
          replaceUrl: "replaceUrl",
          state: "state"
        },
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵNgOnChangesFeature"]]
      });

      RouterLinkWithHref.ctorParameters = function () {
        return [{
          type: Router
        }, {
          type: ActivatedRoute
        }, {
          type: _angular_common__WEBPACK_IMPORTED_MODULE_0__["LocationStrategy"]
        }];
      };

      RouterLinkWithHref.propDecorators = {
        target: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["HostBinding"],
          args: ['attr.target']
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
        }],
        queryParams: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
        }],
        fragment: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
        }],
        queryParamsHandling: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
        }],
        preserveFragment: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
        }],
        skipLocationChange: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
        }],
        replaceUrl: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
        }],
        state: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
        }],
        href: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["HostBinding"]
        }],
        routerLink: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
        }],
        onClick: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["HostListener"],
          args: ['click', ['$event.button', '$event.ctrlKey', '$event.shiftKey', '$event.altKey', '$event.metaKey']]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](RouterLinkWithHref, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Directive"],
          args: [{
            selector: 'a[routerLink],area[routerLink]'
          }]
        }], function () {
          return [{
            type: Router
          }, {
            type: ActivatedRoute
          }, {
            type: _angular_common__WEBPACK_IMPORTED_MODULE_0__["LocationStrategy"]
          }];
        }, {
          routerLink: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
          }],

          /** @nodoc */
          onClick: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["HostListener"],
            args: ['click', ['$event.button', '$event.ctrlKey', '$event.shiftKey', '$event.altKey', '$event.metaKey']]
          }],
          href: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["HostBinding"]
          }],
          target: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["HostBinding"],
            args: ['attr.target']
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
          }],
          queryParams: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
          }],
          fragment: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
          }],
          queryParamsHandling: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
          }],
          preserveFragment: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
          }],
          skipLocationChange: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
          }],
          replaceUrl: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
          }],
          state: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
          }]
        });
      })();

      function attrBoolValue(s) {
        return s === '' || !!s;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       *
       * @description
       *
       * Tracks whether the linked route of an element is currently active, and allows you
       * to specify one or more CSS classes to add to the element when the linked route
       * is active.
       *
       * Use this directive to create a visual distinction for elements associated with an active route.
       * For example, the following code highlights the word "Bob" when the the router
       * activates the associated route:
       *
       * ```
       * <a routerLink="/user/bob" routerLinkActive="active-link">Bob</a>
       * ```
       *
       * Whenever the URL is either '/user' or '/user/bob', the "active-link" class is
       * added to the anchor tag. If the URL changes, the class is removed.
       *
       * You can set more than one class using a space-separated string or an array.
       * For example:
       *
       * ```
       * <a routerLink="/user/bob" routerLinkActive="class1 class2">Bob</a>
       * <a routerLink="/user/bob" [routerLinkActive]="['class1', 'class2']">Bob</a>
       * ```
       *
       * To add the classes only when the URL matches the link exactly, add the option `exact: true`:
       *
       * ```
       * <a routerLink="/user/bob" routerLinkActive="active-link" [routerLinkActiveOptions]="{exact:
       * true}">Bob</a>
       * ```
       *
       * To directly check the `isActive` status of the link, assign the `RouterLinkActive`
       * instance to a template variable.
       * For example, the following checks the status without assigning any CSS classes:
       *
       * ```
       * <a routerLink="/user/bob" routerLinkActive #rla="routerLinkActive">
       *   Bob {{ rla.isActive ? '(already open)' : ''}}
       * </a>
       * ```
       *
       * You can apply the `RouterLinkActive` directive to an ancestor of linked elements.
       * For example, the following sets the active-link class on the `<div>`  parent tag
       * when the URL is either '/user/jim' or '/user/bob'.
       *
       * ```
       * <div routerLinkActive="active-link" [routerLinkActiveOptions]="{exact: true}">
       *   <a routerLink="/user/jim">Jim</a>
       *   <a routerLink="/user/bob">Bob</a>
       * </div>
       * ```
       *
       * @ngModule RouterModule
       *
       * @publicApi
       */


      var RouterLinkActive = /*#__PURE__*/function () {
        function RouterLinkActive(router, element, renderer, cdr, link, linkWithHref) {
          var _this824 = this;

          _classCallCheck2(this, RouterLinkActive);

          this.router = router;
          this.element = element;
          this.renderer = renderer;
          this.cdr = cdr;
          this.link = link;
          this.linkWithHref = linkWithHref;
          this.classes = [];
          this.isActive = false;
          this.routerLinkActiveOptions = {
            exact: false
          };
          this.routerEventsSubscription = router.events.subscribe(function (s) {
            if (s instanceof NavigationEnd) {
              _this824.update();
            }
          });
        }
        /** @nodoc */


        _createClass2(RouterLinkActive, [{
          key: "ngAfterContentInit",
          value: function ngAfterContentInit() {
            var _this825 = this;

            // `of(null)` is used to force subscribe body to execute once immediately (like `startWith`).
            Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["from"])([this.links.changes, this.linksWithHrefs.changes, Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(null)]).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeAll"])()).subscribe(function (_) {
              _this825.update();

              _this825.subscribeToEachLinkOnChanges();
            });
          }
        }, {
          key: "subscribeToEachLinkOnChanges",
          value: function subscribeToEachLinkOnChanges() {
            var _this826 = this;

            var _a;

            (_a = this.linkInputChangesSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
            var allLinkChanges = [].concat(_toConsumableArray(this.links.toArray()), _toConsumableArray(this.linksWithHrefs.toArray()), [this.link, this.linkWithHref]).filter(function (link) {
              return !!link;
            }).map(function (link) {
              return link.onChanges;
            });
            this.linkInputChangesSubscription = Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["from"])(allLinkChanges).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeAll"])()).subscribe(function (link) {
              if (_this826.isActive !== _this826.isLinkActive(_this826.router)(link)) {
                _this826.update();
              }
            });
          }
        }, {
          key: "routerLinkActive",
          set: function set(data) {
            var classes = Array.isArray(data) ? data : data.split(' ');
            this.classes = classes.filter(function (c) {
              return !!c;
            });
          }
          /** @nodoc */

        }, {
          key: "ngOnChanges",
          value: function ngOnChanges(changes) {
            this.update();
          }
          /** @nodoc */

        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            var _a;

            this.routerEventsSubscription.unsubscribe();
            (_a = this.linkInputChangesSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
          }
        }, {
          key: "update",
          value: function update() {
            var _this827 = this;

            if (!this.links || !this.linksWithHrefs || !this.router.navigated) return;
            Promise.resolve().then(function () {
              var hasActiveLinks = _this827.hasActiveLinks();

              if (_this827.isActive !== hasActiveLinks) {
                _this827.isActive = hasActiveLinks;

                _this827.cdr.markForCheck();

                _this827.classes.forEach(function (c) {
                  if (hasActiveLinks) {
                    _this827.renderer.addClass(_this827.element.nativeElement, c);
                  } else {
                    _this827.renderer.removeClass(_this827.element.nativeElement, c);
                  }
                });
              }
            });
          }
        }, {
          key: "isLinkActive",
          value: function isLinkActive(router) {
            var _this828 = this;

            return function (link) {
              return router.isActive(link.urlTree, _this828.routerLinkActiveOptions.exact);
            };
          }
        }, {
          key: "hasActiveLinks",
          value: function hasActiveLinks() {
            var isActiveCheckFn = this.isLinkActive(this.router);
            return this.link && isActiveCheckFn(this.link) || this.linkWithHref && isActiveCheckFn(this.linkWithHref) || this.links.some(isActiveCheckFn) || this.linksWithHrefs.some(isActiveCheckFn);
          }
        }]);

        return RouterLinkActive;
      }();

      RouterLinkActive.ɵfac = function RouterLinkActive_Factory(t) {
        return new (t || RouterLinkActive)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](Router), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["Renderer2"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](RouterLink, 8), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](RouterLinkWithHref, 8));
      };

      RouterLinkActive.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineDirective"]({
        type: RouterLinkActive,
        selectors: [["", "routerLinkActive", ""]],
        contentQueries: function RouterLinkActive_ContentQueries(rf, ctx, dirIndex) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵcontentQuery"](dirIndex, RouterLink, true);

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵcontentQuery"](dirIndex, RouterLinkWithHref, true);
          }

          if (rf & 2) {
            var _t;

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.links = _t);
            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.linksWithHrefs = _t);
          }
        },
        inputs: {
          routerLinkActiveOptions: "routerLinkActiveOptions",
          routerLinkActive: "routerLinkActive"
        },
        exportAs: ["routerLinkActive"],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵNgOnChangesFeature"]]
      });

      RouterLinkActive.ctorParameters = function () {
        return [{
          type: Router
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Renderer2"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]
        }, {
          type: RouterLink,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
          }]
        }, {
          type: RouterLinkWithHref,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
          }]
        }];
      };

      RouterLinkActive.propDecorators = {
        links: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ContentChildren"],
          args: [RouterLink, {
            descendants: true
          }]
        }],
        linksWithHrefs: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ContentChildren"],
          args: [RouterLinkWithHref, {
            descendants: true
          }]
        }],
        routerLinkActiveOptions: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
        }],
        routerLinkActive: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](RouterLinkActive, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Directive"],
          args: [{
            selector: '[routerLinkActive]',
            exportAs: 'routerLinkActive'
          }]
        }], function () {
          return [{
            type: Router
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Renderer2"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]
          }, {
            type: RouterLink,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
            }]
          }, {
            type: RouterLinkWithHref,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
            }]
          }];
        }, {
          routerLinkActiveOptions: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
          }],
          routerLinkActive: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
          }],
          links: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ContentChildren"],
            args: [RouterLink, {
              descendants: true
            }]
          }],
          linksWithHrefs: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ContentChildren"],
            args: [RouterLinkWithHref, {
              descendants: true
            }]
          }]
        });
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @description
       *
       * Acts as a placeholder that Angular dynamically fills based on the current router state.
       *
       * Each outlet can have a unique name, determined by the optional `name` attribute.
       * The name cannot be set or changed dynamically. If not set, default value is "primary".
       *
       * ```
       * <router-outlet></router-outlet>
       * <router-outlet name='left'></router-outlet>
       * <router-outlet name='right'></router-outlet>
       * ```
       *
       * Named outlets can be the targets of secondary routes.
       * The `Route` object for a secondary route has an `outlet` property to identify the target outlet:
       *
       * `{path: <base-path>, component: <component>, outlet: <target_outlet_name>}`
       *
       * Using named outlets and secondary routes, you can target multiple outlets in
       * the same `RouterLink` directive.
       *
       * The router keeps track of separate branches in a navigation tree for each named outlet and
       * generates a representation of that tree in the URL.
       * The URL for a secondary route uses the following syntax to specify both the primary and secondary
       * routes at the same time:
       *
       * `http://base-path/primary-route-path(outlet-name:route-path)`
       *
       * A router outlet emits an activate event when a new component is instantiated,
       * and a deactivate event when a component is destroyed.
       *
       * ```
       * <router-outlet
       *   (activate)='onActivate($event)'
       *   (deactivate)='onDeactivate($event)'></router-outlet>
       * ```
       *
       * @see [Routing tutorial](guide/router-tutorial-toh#named-outlets "Example of a named
       * outlet and secondary route configuration").
       * @see `RouterLink`
       * @see `Route`
       * @ngModule RouterModule
       *
       * @publicApi
       */


      var RouterOutlet = /*#__PURE__*/function () {
        function RouterOutlet(parentContexts, location, resolver, name, changeDetector) {
          _classCallCheck2(this, RouterOutlet);

          this.parentContexts = parentContexts;
          this.location = location;
          this.resolver = resolver;
          this.changeDetector = changeDetector;
          this.activated = null;
          this._activatedRoute = null;
          this.activateEvents = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
          this.deactivateEvents = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
          this.name = name || PRIMARY_OUTLET;
          parentContexts.onChildOutletCreated(this.name, this);
        }
        /** @nodoc */


        _createClass2(RouterOutlet, [{
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            this.parentContexts.onChildOutletDestroyed(this.name);
          }
          /** @nodoc */

        }, {
          key: "ngOnInit",
          value: function ngOnInit() {
            if (!this.activated) {
              // If the outlet was not instantiated at the time the route got activated we need to populate
              // the outlet when it is initialized (ie inside a NgIf)
              var context = this.parentContexts.getContext(this.name);

              if (context && context.route) {
                if (context.attachRef) {
                  // `attachRef` is populated when there is an existing component to mount
                  this.attach(context.attachRef, context.route);
                } else {
                  // otherwise the component defined in the configuration is created
                  this.activateWith(context.route, context.resolver || null);
                }
              }
            }
          }
        }, {
          key: "isActivated",
          get: function get() {
            return !!this.activated;
          }
        }, {
          key: "component",
          get: function get() {
            if (!this.activated) throw new Error('Outlet is not activated');
            return this.activated.instance;
          }
        }, {
          key: "activatedRoute",
          get: function get() {
            if (!this.activated) throw new Error('Outlet is not activated');
            return this._activatedRoute;
          }
        }, {
          key: "activatedRouteData",
          get: function get() {
            if (this._activatedRoute) {
              return this._activatedRoute.snapshot.data;
            }

            return {};
          }
          /**
           * Called when the `RouteReuseStrategy` instructs to detach the subtree
           */

        }, {
          key: "detach",
          value: function detach() {
            if (!this.activated) throw new Error('Outlet is not activated');
            this.location.detach();
            var cmp = this.activated;
            this.activated = null;
            this._activatedRoute = null;
            return cmp;
          }
          /**
           * Called when the `RouteReuseStrategy` instructs to re-attach a previously detached subtree
           */

        }, {
          key: "attach",
          value: function attach(ref, activatedRoute) {
            this.activated = ref;
            this._activatedRoute = activatedRoute;
            this.location.insert(ref.hostView);
          }
        }, {
          key: "deactivate",
          value: function deactivate() {
            if (this.activated) {
              var c = this.component;
              this.activated.destroy();
              this.activated = null;
              this._activatedRoute = null;
              this.deactivateEvents.emit(c);
            }
          }
        }, {
          key: "activateWith",
          value: function activateWith(activatedRoute, resolver) {
            if (this.isActivated) {
              throw new Error('Cannot activate an already activated outlet');
            }

            this._activatedRoute = activatedRoute;
            var snapshot = activatedRoute._futureSnapshot;
            var component = snapshot.routeConfig.component;
            resolver = resolver || this.resolver;
            var factory = resolver.resolveComponentFactory(component);
            var childContexts = this.parentContexts.getOrCreateContext(this.name).children;
            var injector = new OutletInjector(activatedRoute, childContexts, this.location.injector);
            this.activated = this.location.createComponent(factory, this.location.length, injector); // Calling `markForCheck` to make sure we will run the change detection when the
            // `RouterOutlet` is inside a `ChangeDetectionStrategy.OnPush` component.

            this.changeDetector.markForCheck();
            this.activateEvents.emit(this.activated.instance);
          }
        }]);

        return RouterOutlet;
      }();

      RouterOutlet.ɵfac = function RouterOutlet_Factory(t) {
        return new (t || RouterOutlet)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ChildrenOutletContexts), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewContainerRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ComponentFactoryResolver"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinjectAttribute"]('name'), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]));
      };

      RouterOutlet.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineDirective"]({
        type: RouterOutlet,
        selectors: [["router-outlet"]],
        outputs: {
          activateEvents: "activate",
          deactivateEvents: "deactivate"
        },
        exportAs: ["outlet"]
      });

      RouterOutlet.ctorParameters = function () {
        return [{
          type: ChildrenOutletContexts
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewContainerRef"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ComponentFactoryResolver"]
        }, {
          type: String,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Attribute"],
            args: ['name']
          }]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]
        }];
      };

      RouterOutlet.propDecorators = {
        activateEvents: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"],
          args: ['activate']
        }],
        deactivateEvents: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"],
          args: ['deactivate']
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](RouterOutlet, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Directive"],
          args: [{
            selector: 'router-outlet',
            exportAs: 'outlet'
          }]
        }], function () {
          return [{
            type: ChildrenOutletContexts
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewContainerRef"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ComponentFactoryResolver"]
          }, {
            type: String,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Attribute"],
              args: ['name']
            }]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]
          }];
        }, {
          activateEvents: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"],
            args: ['activate']
          }],
          deactivateEvents: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"],
            args: ['deactivate']
          }]
        });
      })();

      var OutletInjector = /*#__PURE__*/function () {
        function OutletInjector(route, childContexts, parent) {
          _classCallCheck2(this, OutletInjector);

          this.route = route;
          this.childContexts = childContexts;
          this.parent = parent;
        }

        _createClass2(OutletInjector, [{
          key: "get",
          value: function get(token, notFoundValue) {
            if (token === ActivatedRoute) {
              return this.route;
            }

            if (token === ChildrenOutletContexts) {
              return this.childContexts;
            }

            return this.parent.get(token, notFoundValue);
          }
        }]);

        return OutletInjector;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @description
       *
       * Provides a preloading strategy.
       *
       * @publicApi
       */


      var PreloadingStrategy = function PreloadingStrategy() {
        _classCallCheck2(this, PreloadingStrategy);
      };
      /**
       * @description
       *
       * Provides a preloading strategy that preloads all modules as quickly as possible.
       *
       * ```
       * RouterModule.forRoot(ROUTES, {preloadingStrategy: PreloadAllModules})
       * ```
       *
       * @publicApi
       */


      var PreloadAllModules = /*#__PURE__*/function () {
        function PreloadAllModules() {
          _classCallCheck2(this, PreloadAllModules);
        }

        _createClass2(PreloadAllModules, [{
          key: "preload",
          value: function preload(route, fn) {
            return fn().pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(function () {
              return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(null);
            }));
          }
        }]);

        return PreloadAllModules;
      }();
      /**
       * @description
       *
       * Provides a preloading strategy that does not preload any modules.
       *
       * This strategy is enabled by default.
       *
       * @publicApi
       */


      var NoPreloading = /*#__PURE__*/function () {
        function NoPreloading() {
          _classCallCheck2(this, NoPreloading);
        }

        _createClass2(NoPreloading, [{
          key: "preload",
          value: function preload(route, fn) {
            return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(null);
          }
        }]);

        return NoPreloading;
      }();
      /**
       * The preloader optimistically loads all router configurations to
       * make navigations into lazily-loaded sections of the application faster.
       *
       * The preloader runs in the background. When the router bootstraps, the preloader
       * starts listening to all navigation events. After every such event, the preloader
       * will check if any configurations can be loaded lazily.
       *
       * If a route is protected by `canLoad` guards, the preloaded will not load it.
       *
       * @publicApi
       */


      var RouterPreloader = /*#__PURE__*/function () {
        function RouterPreloader(router, moduleLoader, compiler, injector, preloadingStrategy) {
          _classCallCheck2(this, RouterPreloader);

          this.router = router;
          this.injector = injector;
          this.preloadingStrategy = preloadingStrategy;

          var onStartLoad = function onStartLoad(r) {
            return router.triggerEvent(new RouteConfigLoadStart(r));
          };

          var onEndLoad = function onEndLoad(r) {
            return router.triggerEvent(new RouteConfigLoadEnd(r));
          };

          this.loader = new RouterConfigLoader(moduleLoader, compiler, onStartLoad, onEndLoad);
        }

        _createClass2(RouterPreloader, [{
          key: "setUpPreloading",
          value: function setUpPreloading() {
            var _this829 = this;

            this.subscription = this.router.events.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["filter"])(function (e) {
              return e instanceof NavigationEnd;
            }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["concatMap"])(function () {
              return _this829.preload();
            })).subscribe(function () {});
          }
        }, {
          key: "preload",
          value: function preload() {
            var ngModule = this.injector.get(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModuleRef"]);
            return this.processRoutes(ngModule, this.router.config);
          }
          /** @nodoc */

        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            if (this.subscription) {
              this.subscription.unsubscribe();
            }
          }
        }, {
          key: "processRoutes",
          value: function processRoutes(ngModule, routes) {
            var res = [];

            var _iterator86 = _createForOfIteratorHelper(routes),
                _step85;

            try {
              for (_iterator86.s(); !(_step85 = _iterator86.n()).done;) {
                var route = _step85.value;

                // we already have the config loaded, just recurse
                if (route.loadChildren && !route.canLoad && route._loadedConfig) {
                  var childConfig = route._loadedConfig;
                  res.push(this.processRoutes(childConfig.module, childConfig.routes)); // no config loaded, fetch the config
                } else if (route.loadChildren && !route.canLoad) {
                  res.push(this.preloadConfig(ngModule, route)); // recurse into children
                } else if (route.children) {
                  res.push(this.processRoutes(ngModule, route.children));
                }
              }
            } catch (err) {
              _iterator86.e(err);
            } finally {
              _iterator86.f();
            }

            return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["from"])(res).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeAll"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(function (_) {
              return void 0;
            }));
          }
        }, {
          key: "preloadConfig",
          value: function preloadConfig(ngModule, route) {
            var _this830 = this;

            return this.preloadingStrategy.preload(route, function () {
              var loaded$ = _this830.loader.load(ngModule.injector, route);

              return loaded$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])(function (config) {
                route._loadedConfig = config;
                return _this830.processRoutes(config.module, config.routes);
              }));
            });
          }
        }]);

        return RouterPreloader;
      }();

      RouterPreloader.ɵfac = function RouterPreloader_Factory(t) {
        return new (t || RouterPreloader)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](Router), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModuleFactoryLoader"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["Compiler"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injector"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](PreloadingStrategy));
      };

      RouterPreloader.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
        token: RouterPreloader,
        factory: RouterPreloader.ɵfac
      });

      RouterPreloader.ctorParameters = function () {
        return [{
          type: Router
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModuleFactoryLoader"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Compiler"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injector"]
        }, {
          type: PreloadingStrategy
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](RouterPreloader, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"]
        }], function () {
          return [{
            type: Router
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModuleFactoryLoader"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Compiler"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injector"]
          }, {
            type: PreloadingStrategy
          }];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var RouterScroller = /*#__PURE__*/function () {
        function RouterScroller(router,
        /** @docsNotRequired */
        viewportScroller) {
          var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};

          _classCallCheck2(this, RouterScroller);

          this.router = router;
          this.viewportScroller = viewportScroller;
          this.options = options;
          this.lastId = 0;
          this.lastSource = 'imperative';
          this.restoredId = 0;
          this.store = {}; // Default both options to 'disabled'

          options.scrollPositionRestoration = options.scrollPositionRestoration || 'disabled';
          options.anchorScrolling = options.anchorScrolling || 'disabled';
        }

        _createClass2(RouterScroller, [{
          key: "init",
          value: function init() {
            // we want to disable the automatic scrolling because having two places
            // responsible for scrolling results race conditions, especially given
            // that browser don't implement this behavior consistently
            if (this.options.scrollPositionRestoration !== 'disabled') {
              this.viewportScroller.setHistoryScrollRestoration('manual');
            }

            this.routerEventsSubscription = this.createScrollEvents();
            this.scrollEventsSubscription = this.consumeScrollEvents();
          }
        }, {
          key: "createScrollEvents",
          value: function createScrollEvents() {
            var _this831 = this;

            return this.router.events.subscribe(function (e) {
              if (e instanceof NavigationStart) {
                // store the scroll position of the current stable navigations.
                _this831.store[_this831.lastId] = _this831.viewportScroller.getScrollPosition();
                _this831.lastSource = e.navigationTrigger;
                _this831.restoredId = e.restoredState ? e.restoredState.navigationId : 0;
              } else if (e instanceof NavigationEnd) {
                _this831.lastId = e.id;

                _this831.scheduleScrollEvent(e, _this831.router.parseUrl(e.urlAfterRedirects).fragment);
              }
            });
          }
        }, {
          key: "consumeScrollEvents",
          value: function consumeScrollEvents() {
            var _this832 = this;

            return this.router.events.subscribe(function (e) {
              if (!(e instanceof Scroll)) return; // a popstate event. The pop state event will always ignore anchor scrolling.

              if (e.position) {
                if (_this832.options.scrollPositionRestoration === 'top') {
                  _this832.viewportScroller.scrollToPosition([0, 0]);
                } else if (_this832.options.scrollPositionRestoration === 'enabled') {
                  _this832.viewportScroller.scrollToPosition(e.position);
                } // imperative navigation "forward"

              } else {
                if (e.anchor && _this832.options.anchorScrolling === 'enabled') {
                  _this832.viewportScroller.scrollToAnchor(e.anchor);
                } else if (_this832.options.scrollPositionRestoration !== 'disabled') {
                  _this832.viewportScroller.scrollToPosition([0, 0]);
                }
              }
            });
          }
        }, {
          key: "scheduleScrollEvent",
          value: function scheduleScrollEvent(routerEvent, anchor) {
            this.router.triggerEvent(new Scroll(routerEvent, this.lastSource === 'popstate' ? this.store[this.restoredId] : null, anchor));
          }
          /** @nodoc */

        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            if (this.routerEventsSubscription) {
              this.routerEventsSubscription.unsubscribe();
            }

            if (this.scrollEventsSubscription) {
              this.scrollEventsSubscription.unsubscribe();
            }
          }
        }]);

        return RouterScroller;
      }();

      RouterScroller.ɵfac = function RouterScroller_Factory(t) {
        return new (t || RouterScroller)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](Router), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_0__["ViewportScroller"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](undefined));
      };

      RouterScroller.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
        token: RouterScroller,
        factory: RouterScroller.ɵfac
      });

      RouterScroller.ctorParameters = function () {
        return [{
          type: Router
        }, {
          type: _angular_common__WEBPACK_IMPORTED_MODULE_0__["ViewportScroller"]
        }, {
          type: undefined
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](RouterScroller, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"]
        }], function () {
          return [{
            type: Router
          }, {
            type: _angular_common__WEBPACK_IMPORTED_MODULE_0__["ViewportScroller"]
          }, {
            type: undefined
          }];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * The directives defined in the `RouterModule`.
       */


      var ROUTER_DIRECTIVES = [RouterOutlet, RouterLink, RouterLinkWithHref, RouterLinkActive, ɵEmptyOutletComponent];
      /**
       * A [DI token](guide/glossary/#di-token) for the router service.
       *
       * @publicApi
       */

      var ROUTER_CONFIGURATION = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["InjectionToken"]('ROUTER_CONFIGURATION');
      /**
       * @docsNotRequired
       */

      var ROUTER_FORROOT_GUARD = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["InjectionToken"]('ROUTER_FORROOT_GUARD');
      var ɵ0 = {
        enableTracing: false
      };
      var ROUTER_PROVIDERS = [_angular_common__WEBPACK_IMPORTED_MODULE_0__["Location"], {
        provide: UrlSerializer,
        useClass: DefaultUrlSerializer
      }, {
        provide: Router,
        useFactory: setupRouter,
        deps: [UrlSerializer, ChildrenOutletContexts, _angular_common__WEBPACK_IMPORTED_MODULE_0__["Location"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injector"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModuleFactoryLoader"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["Compiler"], ROUTES, ROUTER_CONFIGURATION, [UrlHandlingStrategy, new _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]()], [RouteReuseStrategy, new _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]()]]
      }, ChildrenOutletContexts, {
        provide: ActivatedRoute,
        useFactory: rootRoute,
        deps: [Router]
      }, {
        provide: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModuleFactoryLoader"],
        useClass: _angular_core__WEBPACK_IMPORTED_MODULE_1__["SystemJsNgModuleLoader"]
      }, RouterPreloader, NoPreloading, PreloadAllModules, {
        provide: ROUTER_CONFIGURATION,
        useValue: ɵ0
      }];

      function routerNgProbeToken() {
        return new _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgProbeToken"]('Router', Router);
      }
      /**
       * @description
       *
       * Adds directives and providers for in-app navigation among views defined in an application.
       * Use the Angular `Router` service to declaratively specify application states and manage state
       * transitions.
       *
       * You can import this NgModule multiple times, once for each lazy-loaded bundle.
       * However, only one `Router` service can be active.
       * To ensure this, there are two ways to register routes when importing this module:
       *
       * * The `forRoot()` method creates an `NgModule` that contains all the directives, the given
       * routes, and the `Router` service itself.
       * * The `forChild()` method creates an `NgModule` that contains all the directives and the given
       * routes, but does not include the `Router` service.
       *
       * @see [Routing and Navigation guide](guide/router) for an
       * overview of how the `Router` service should be used.
       *
       * @publicApi
       */


      var RouterModule = /*#__PURE__*/function () {
        // Note: We are injecting the Router so it gets created eagerly...
        function RouterModule(guard, router) {
          _classCallCheck2(this, RouterModule);
        }
        /**
         * Creates and configures a module with all the router providers and directives.
         * Optionally sets up an application listener to perform an initial navigation.
         *
         * When registering the NgModule at the root, import as follows:
         *
         * ```
         * @NgModule({
         *   imports: [RouterModule.forRoot(ROUTES)]
         * })
         * class MyNgModule {}
         * ```
         *
         * @param routes An array of `Route` objects that define the navigation paths for the application.
         * @param config An `ExtraOptions` configuration object that controls how navigation is performed.
         * @return The new `NgModule`.
         *
         */


        _createClass2(RouterModule, null, [{
          key: "forRoot",
          value: function forRoot(routes, config) {
            return {
              ngModule: RouterModule,
              providers: [ROUTER_PROVIDERS, provideRoutes(routes), {
                provide: ROUTER_FORROOT_GUARD,
                useFactory: provideForRootGuard,
                deps: [[Router, new _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"](), new _angular_core__WEBPACK_IMPORTED_MODULE_1__["SkipSelf"]()]]
              }, {
                provide: ROUTER_CONFIGURATION,
                useValue: config ? config : {}
              }, {
                provide: _angular_common__WEBPACK_IMPORTED_MODULE_0__["LocationStrategy"],
                useFactory: provideLocationStrategy,
                deps: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["PlatformLocation"], [new _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"](_angular_common__WEBPACK_IMPORTED_MODULE_0__["APP_BASE_HREF"]), new _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]()], ROUTER_CONFIGURATION]
              }, {
                provide: RouterScroller,
                useFactory: createRouterScroller,
                deps: [Router, _angular_common__WEBPACK_IMPORTED_MODULE_0__["ViewportScroller"], ROUTER_CONFIGURATION]
              }, {
                provide: PreloadingStrategy,
                useExisting: config && config.preloadingStrategy ? config.preloadingStrategy : NoPreloading
              }, {
                provide: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgProbeToken"],
                multi: true,
                useFactory: routerNgProbeToken
              }, provideRouterInitializer()]
            };
          }
          /**
           * Creates a module with all the router directives and a provider registering routes,
           * without creating a new Router service.
           * When registering for submodules and lazy-loaded submodules, create the NgModule as follows:
           *
           * ```
           * @NgModule({
           *   imports: [RouterModule.forChild(ROUTES)]
           * })
           * class MyNgModule {}
           * ```
           *
           * @param routes An array of `Route` objects that define the navigation paths for the submodule.
           * @return The new NgModule.
           *
           */

        }, {
          key: "forChild",
          value: function forChild(routes) {
            return {
              ngModule: RouterModule,
              providers: [provideRoutes(routes)]
            };
          }
        }]);

        return RouterModule;
      }();

      RouterModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineNgModule"]({
        type: RouterModule
      });
      RouterModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjector"]({
        factory: function RouterModule_Factory(t) {
          return new (t || RouterModule)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](ROUTER_FORROOT_GUARD, 8), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](Router, 8));
        }
      });

      RouterModule.ctorParameters = function () {
        return [{
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
            args: [ROUTER_FORROOT_GUARD]
          }]
        }, {
          type: Router,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
          }]
        }];
      };

      (function () {
        (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsetNgModuleScope"](RouterModule, {
          declarations: [RouterOutlet, RouterLink, RouterLinkWithHref, RouterLinkActive, ɵEmptyOutletComponent],
          exports: [RouterOutlet, RouterLink, RouterLinkWithHref, RouterLinkActive, ɵEmptyOutletComponent]
        });
      })();
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](RouterModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"],
          args: [{
            declarations: ROUTER_DIRECTIVES,
            exports: ROUTER_DIRECTIVES,
            entryComponents: [ɵEmptyOutletComponent]
          }]
        }], function () {
          return [{
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
              args: [ROUTER_FORROOT_GUARD]
            }]
          }, {
            type: Router,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
            }]
          }];
        }, null);
      })();

      function createRouterScroller(router, viewportScroller, config) {
        if (config.scrollOffset) {
          viewportScroller.setOffset(config.scrollOffset);
        }

        return new RouterScroller(router, viewportScroller, config);
      }

      function provideLocationStrategy(platformLocationStrategy, baseHref) {
        var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
        return options.useHash ? new _angular_common__WEBPACK_IMPORTED_MODULE_0__["HashLocationStrategy"](platformLocationStrategy, baseHref) : new _angular_common__WEBPACK_IMPORTED_MODULE_0__["PathLocationStrategy"](platformLocationStrategy, baseHref);
      }

      function provideForRootGuard(router) {
        if ((typeof ngDevMode === 'undefined' || ngDevMode) && router) {
          throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");
        }

        return 'guarded';
      }
      /**
       * Registers a [DI provider](guide/glossary#provider) for a set of routes.
       * @param routes The route configuration to provide.
       *
       * @usageNotes
       *
       * ```
       * @NgModule({
       *   imports: [RouterModule.forChild(ROUTES)],
       *   providers: [provideRoutes(EXTRA_ROUTES)]
       * })
       * class MyNgModule {}
       * ```
       *
       * @publicApi
       */


      function provideRoutes(routes) {
        return [{
          provide: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ANALYZE_FOR_ENTRY_COMPONENTS"],
          multi: true,
          useValue: routes
        }, {
          provide: ROUTES,
          multi: true,
          useValue: routes
        }];
      }

      function setupRouter(urlSerializer, contexts, location, injector, loader, compiler, config) {
        var opts = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : {};
        var urlHandlingStrategy = arguments.length > 8 ? arguments[8] : undefined;
        var routeReuseStrategy = arguments.length > 9 ? arguments[9] : undefined;
        var router = new Router(null, urlSerializer, contexts, location, injector, loader, compiler, flatten(config));

        if (urlHandlingStrategy) {
          router.urlHandlingStrategy = urlHandlingStrategy;
        }

        if (routeReuseStrategy) {
          router.routeReuseStrategy = routeReuseStrategy;
        }

        assignExtraOptionsToRouter(opts, router);

        if (opts.enableTracing) {
          var dom = Object(_angular_common__WEBPACK_IMPORTED_MODULE_0__["ɵgetDOM"])();
          router.events.subscribe(function (e) {
            dom.logGroup("Router Event: ".concat(e.constructor.name));
            dom.log(e.toString());
            dom.log(e);
            dom.logGroupEnd();
          });
        }

        return router;
      }

      function assignExtraOptionsToRouter(opts, router) {
        if (opts.errorHandler) {
          router.errorHandler = opts.errorHandler;
        }

        if (opts.malformedUriErrorHandler) {
          router.malformedUriErrorHandler = opts.malformedUriErrorHandler;
        }

        if (opts.onSameUrlNavigation) {
          router.onSameUrlNavigation = opts.onSameUrlNavigation;
        }

        if (opts.paramsInheritanceStrategy) {
          router.paramsInheritanceStrategy = opts.paramsInheritanceStrategy;
        }

        if (opts.relativeLinkResolution) {
          router.relativeLinkResolution = opts.relativeLinkResolution;
        }

        if (opts.urlUpdateStrategy) {
          router.urlUpdateStrategy = opts.urlUpdateStrategy;
        }
      }

      function rootRoute(router) {
        return router.routerState.root;
      }
      /**
       * Router initialization requires two steps:
       *
       * First, we start the navigation in a `APP_INITIALIZER` to block the bootstrap if
       * a resolver or a guard executes asynchronously.
       *
       * Next, we actually run activation in a `BOOTSTRAP_LISTENER`, using the
       * `afterPreactivation` hook provided by the router.
       * The router navigation starts, reaches the point when preactivation is done, and then
       * pauses. It waits for the hook to be resolved. We then resolve it only in a bootstrap listener.
       */


      var RouterInitializer = /*#__PURE__*/function () {
        function RouterInitializer(injector) {
          _classCallCheck2(this, RouterInitializer);

          this.injector = injector;
          this.initNavigation = false;
          this.resultOfPreactivationDone = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
        }

        _createClass2(RouterInitializer, [{
          key: "appInitializer",
          value: function appInitializer() {
            var _this833 = this;

            var p = this.injector.get(_angular_common__WEBPACK_IMPORTED_MODULE_0__["LOCATION_INITIALIZED"], Promise.resolve(null));
            return p.then(function () {
              var resolve = null;
              var res = new Promise(function (r) {
                return resolve = r;
              });

              var router = _this833.injector.get(Router);

              var opts = _this833.injector.get(ROUTER_CONFIGURATION);

              if (opts.initialNavigation === 'disabled') {
                router.setUpLocationChangeListener();
                resolve(true);
              } else if ( // TODO: enabled is deprecated as of v11, can be removed in v13
              opts.initialNavigation === 'enabled' || opts.initialNavigation === 'enabledBlocking') {
                router.hooks.afterPreactivation = function () {
                  // only the initial navigation should be delayed
                  if (!_this833.initNavigation) {
                    _this833.initNavigation = true;
                    resolve(true);
                    return _this833.resultOfPreactivationDone; // subsequent navigations should not be delayed
                  } else {
                    return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(null);
                  }
                };

                router.initialNavigation();
              } else {
                resolve(true);
              }

              return res;
            });
          }
        }, {
          key: "bootstrapListener",
          value: function bootstrapListener(bootstrappedComponentRef) {
            var opts = this.injector.get(ROUTER_CONFIGURATION);
            var preloader = this.injector.get(RouterPreloader);
            var routerScroller = this.injector.get(RouterScroller);
            var router = this.injector.get(Router);
            var ref = this.injector.get(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ApplicationRef"]);

            if (bootstrappedComponentRef !== ref.components[0]) {
              return;
            } // Default case


            if (opts.initialNavigation === 'enabledNonBlocking' || opts.initialNavigation === undefined) {
              router.initialNavigation();
            }

            preloader.setUpPreloading();
            routerScroller.init();
            router.resetRootComponentType(ref.componentTypes[0]);
            this.resultOfPreactivationDone.next(null);
            this.resultOfPreactivationDone.complete();
          }
        }]);

        return RouterInitializer;
      }();

      RouterInitializer.ɵfac = function RouterInitializer_Factory(t) {
        return new (t || RouterInitializer)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injector"]));
      };

      RouterInitializer.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({
        token: RouterInitializer,
        factory: RouterInitializer.ɵfac
      });

      RouterInitializer.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injector"]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](RouterInitializer, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injector"]
          }];
        }, null);
      })();

      function getAppInitializer(r) {
        return r.appInitializer.bind(r);
      }

      function getBootstrapListener(r) {
        return r.bootstrapListener.bind(r);
      }
      /**
       * A [DI token](guide/glossary/#di-token) for the router initializer that
       * is called after the app is bootstrapped.
       *
       * @publicApi
       */


      var ROUTER_INITIALIZER = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["InjectionToken"]('Router Initializer');

      function provideRouterInitializer() {
        return [RouterInitializer, {
          provide: _angular_core__WEBPACK_IMPORTED_MODULE_1__["APP_INITIALIZER"],
          multi: true,
          useFactory: getAppInitializer,
          deps: [RouterInitializer]
        }, {
          provide: ROUTER_INITIALIZER,
          useFactory: getBootstrapListener,
          deps: [RouterInitializer]
        }, {
          provide: _angular_core__WEBPACK_IMPORTED_MODULE_1__["APP_BOOTSTRAP_LISTENER"],
          multi: true,
          useExisting: ROUTER_INITIALIZER
        }];
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @publicApi
       */


      var VERSION = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["Version"]('11.0.0');
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */
      // This file only reexports content of the `src` folder. Keep it that way.

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Generated bundle index. Do not edit.
       */
      //# sourceMappingURL=router.js.map

      /***/
    },

    /***/
    "iKkX": function iKkX(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "VirtualTimeScheduler", function () {
        return VirtualTimeScheduler;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "VirtualAction", function () {
        return VirtualAction;
      });
      /* harmony import */


      var _AsyncAction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ./AsyncAction */
      "3N8a");
      /* harmony import */


      var _AsyncScheduler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ./AsyncScheduler */
      "IjjT");

      var VirtualTimeScheduler = /*#__PURE__*/function (_AsyncScheduler__WEBP3) {
        _inherits2(VirtualTimeScheduler, _AsyncScheduler__WEBP3);

        var _super394 = _createSuper2(VirtualTimeScheduler);

        function VirtualTimeScheduler() {
          var _this834;

          var SchedulerAction = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : VirtualAction;
          var maxFrames = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Number.POSITIVE_INFINITY;

          _classCallCheck2(this, VirtualTimeScheduler);

          _this834 = _super394.call(this, SchedulerAction, function () {
            return _this834.frame;
          });
          _this834.maxFrames = maxFrames;
          _this834.frame = 0;
          _this834.index = -1;
          return _this834;
        }

        _createClass2(VirtualTimeScheduler, [{
          key: "flush",
          value: function flush() {
            var actions = this.actions,
                maxFrames = this.maxFrames;
            var error, action;

            while ((action = actions[0]) && action.delay <= maxFrames) {
              actions.shift();
              this.frame = action.delay;

              if (error = action.execute(action.state, action.delay)) {
                break;
              }
            }

            if (error) {
              while (action = actions.shift()) {
                action.unsubscribe();
              }

              throw error;
            }
          }
        }]);

        return VirtualTimeScheduler;
      }(_AsyncScheduler__WEBPACK_IMPORTED_MODULE_1__["AsyncScheduler"]);

      VirtualTimeScheduler.frameTimeFactor = 10;

      var VirtualAction = /*#__PURE__*/function (_AsyncAction__WEBPACK4) {
        _inherits2(VirtualAction, _AsyncAction__WEBPACK4);

        var _super395 = _createSuper2(VirtualAction);

        function VirtualAction(scheduler, work) {
          var _this835;

          var index = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : scheduler.index += 1;

          _classCallCheck2(this, VirtualAction);

          _this835 = _super395.call(this, scheduler, work);
          _this835.scheduler = scheduler;
          _this835.work = work;
          _this835.index = index;
          _this835.active = true;
          _this835.index = scheduler.index = index;
          return _this835;
        }

        _createClass2(VirtualAction, [{
          key: "schedule",
          value: function schedule(state) {
            var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;

            if (!this.id) {
              return _get2(_getPrototypeOf2(VirtualAction.prototype), "schedule", this).call(this, state, delay);
            }

            this.active = false;
            var action = new VirtualAction(this.scheduler, this.work);
            this.add(action);
            return action.schedule(state, delay);
          }
        }, {
          key: "requestAsyncId",
          value: function requestAsyncId(scheduler, id) {
            var delay = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
            this.delay = scheduler.frame + delay;
            var actions = scheduler.actions;
            actions.push(this);
            actions.sort(VirtualAction.sortActions);
            return true;
          }
        }, {
          key: "recycleAsyncId",
          value: function recycleAsyncId(scheduler, id) {
            var delay = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
            return undefined;
          }
        }, {
          key: "_execute",
          value: function _execute(state, delay) {
            if (this.active === true) {
              return _get2(_getPrototypeOf2(VirtualAction.prototype), "_execute", this).call(this, state, delay);
            }
          }
        }], [{
          key: "sortActions",
          value: function sortActions(a, b) {
            if (a.delay === b.delay) {
              if (a.index === b.index) {
                return 0;
              } else if (a.index > b.index) {
                return 1;
              } else {
                return -1;
              }
            } else if (a.delay > b.delay) {
              return 1;
            } else {
              return -1;
            }
          }
        }]);

        return VirtualAction;
      }(_AsyncAction__WEBPACK_IMPORTED_MODULE_0__["AsyncAction"]); //# sourceMappingURL=VirtualTimeScheduler.js.map

      /***/

    },

    /***/
    "iSMj": function iSMj(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony import */


      var _lib_formatDistance_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ./_lib/formatDistance/index.js */
      "1izz");
      /* harmony import */


      var _lib_formatLong_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ./_lib/formatLong/index.js */
      "xMRN");
      /* harmony import */


      var _lib_formatRelative_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ./_lib/formatRelative/index.js */
      "0HXF");
      /* harmony import */


      var _lib_localize_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ./_lib/localize/index.js */
      "J9JN");
      /* harmony import */


      var _lib_match_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! ./_lib/match/index.js */
      "WYsD");
      /**
       * @type {Locale}
       * @category Locales
       * @summary English locale (United States).
       * @language English
       * @iso-639-2 eng
       * @author Sasha Koss [@kossnocorp]{@link https://github.com/kossnocorp}
       * @author Lesha Koss [@leshakoss]{@link https://github.com/leshakoss}
       */


      var locale = {
        code: 'en-US',
        formatDistance: _lib_formatDistance_index_js__WEBPACK_IMPORTED_MODULE_0__["default"],
        formatLong: _lib_formatLong_index_js__WEBPACK_IMPORTED_MODULE_1__["default"],
        formatRelative: _lib_formatRelative_index_js__WEBPACK_IMPORTED_MODULE_2__["default"],
        localize: _lib_localize_index_js__WEBPACK_IMPORTED_MODULE_3__["default"],
        match: _lib_match_index_js__WEBPACK_IMPORTED_MODULE_4__["default"],
        options: {
          weekStartsOn: 0
          /* Sunday */
          ,
          firstWeekContainsDate: 1
        }
      };
      /* harmony default export */

      __webpack_exports__["default"] = locale;
      /***/
    },

    /***/
    "iWuq": function iWuq(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return startOfTomorrow;
      });
      /**
       * @name startOfTomorrow
       * @category Day Helpers
       * @summary Return the start of tomorrow.
       * @pure false
       *
       * @description
       * Return the start of tomorrow.
       *
       * > ⚠️ Please note that this function is not present in the FP submodule as
       * > it uses `new Date()` internally hence impure and can't be safely curried.
       *
       * ### 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).
       *
       * @returns {Date} the start of tomorrow
       *
       * @example
       * // If today is 6 October 2014:
       * var result = startOfTomorrow()
       * //=> Tue Oct 7 2014 00:00:00
       */


      function startOfTomorrow() {
        var now = new Date();
        var year = now.getFullYear();
        var month = now.getMonth();
        var day = now.getDate();
        var date = new Date(0);
        date.setFullYear(year, month, day + 1);
        date.setHours(0, 0, 0, 0);
        return date;
      }
      /***/

    },

    /***/
    "iYuL": function iYuL(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Spanish [es]
      //! author : Julio Napurí : https://github.com/julionc
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),
            _monthsShort3 = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
            monthsParse = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i],
            monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;

        var es = moment.defineLocale('es', {
          months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
          monthsShort: function monthsShort(m, format) {
            if (!m) {
              return monthsShortDot;
            } else if (/-MMM-/.test(format)) {
              return _monthsShort3[m.month()];
            } else {
              return monthsShortDot[m.month()];
            }
          },
          monthsRegex: monthsRegex,
          monthsShortRegex: monthsRegex,
          monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
          monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
          monthsParse: monthsParse,
          longMonthsParse: monthsParse,
          shortMonthsParse: monthsParse,
          weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
          weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
          weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
          weekdaysParseExact: true,
          longDateFormat: {
            LT: 'H:mm',
            LTS: 'H:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D [de] MMMM [de] YYYY',
            LLL: 'D [de] MMMM [de] YYYY H:mm',
            LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm'
          },
          calendar: {
            sameDay: function sameDay() {
              return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
            },
            nextDay: function nextDay() {
              return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
            },
            nextWeek: function nextWeek() {
              return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
            },
            lastDay: function lastDay() {
              return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
            },
            lastWeek: function lastWeek() {
              return '[el] dddd [pasado a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
            },
            sameElse: 'L'
          },
          relativeTime: {
            future: 'en %s',
            past: 'hace %s',
            s: 'unos segundos',
            ss: '%d segundos',
            m: 'un minuto',
            mm: '%d minutos',
            h: 'una hora',
            hh: '%d horas',
            d: 'un día',
            dd: '%d días',
            w: 'una semana',
            ww: '%d semanas',
            M: 'un mes',
            MM: '%d meses',
            y: 'un año',
            yy: '%d años'
          },
          dayOfMonthOrdinalParse: /\d{1,2}º/,
          ordinal: '%dº',
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          },
          invalidDate: 'Fecha inválida'
        });
        return es;
      });
      /***/

    },

    /***/
    "itXk": function itXk(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "combineLatest", function () {
        return combineLatest;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CombineLatestOperator", function () {
        return CombineLatestOperator;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CombineLatestSubscriber", function () {
        return CombineLatestSubscriber;
      });
      /* harmony import */


      var _util_isScheduler__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../util/isScheduler */
      "z+Ro");
      /* harmony import */


      var _util_isArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../util/isArray */
      "DH7j");
      /* harmony import */


      var _OuterSubscriber__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../OuterSubscriber */
      "l7GE");
      /* harmony import */


      var _util_subscribeToResult__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../util/subscribeToResult */
      "ZUHj");
      /* harmony import */


      var _fromArray__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! ./fromArray */
      "yCtX");

      var NONE = {};

      function combineLatest() {
        for (var _len70 = arguments.length, observables = new Array(_len70), _key73 = 0; _key73 < _len70; _key73++) {
          observables[_key73] = arguments[_key73];
        }

        var resultSelector = undefined;
        var scheduler = undefined;

        if (Object(_util_isScheduler__WEBPACK_IMPORTED_MODULE_0__["isScheduler"])(observables[observables.length - 1])) {
          scheduler = observables.pop();
        }

        if (typeof observables[observables.length - 1] === 'function') {
          resultSelector = observables.pop();
        }

        if (observables.length === 1 && Object(_util_isArray__WEBPACK_IMPORTED_MODULE_1__["isArray"])(observables[0])) {
          observables = observables[0];
        }

        return Object(_fromArray__WEBPACK_IMPORTED_MODULE_4__["fromArray"])(observables, scheduler).lift(new CombineLatestOperator(resultSelector));
      }

      var CombineLatestOperator = /*#__PURE__*/function () {
        function CombineLatestOperator(resultSelector) {
          _classCallCheck2(this, CombineLatestOperator);

          this.resultSelector = resultSelector;
        }

        _createClass2(CombineLatestOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            return source.subscribe(new CombineLatestSubscriber(subscriber, this.resultSelector));
          }
        }]);

        return CombineLatestOperator;
      }();

      var CombineLatestSubscriber = /*#__PURE__*/function (_OuterSubscriber__WEB4) {
        _inherits2(CombineLatestSubscriber, _OuterSubscriber__WEB4);

        var _super396 = _createSuper2(CombineLatestSubscriber);

        function CombineLatestSubscriber(destination, resultSelector) {
          var _this836;

          _classCallCheck2(this, CombineLatestSubscriber);

          _this836 = _super396.call(this, destination);
          _this836.resultSelector = resultSelector;
          _this836.active = 0;
          _this836.values = [];
          _this836.observables = [];
          return _this836;
        }

        _createClass2(CombineLatestSubscriber, [{
          key: "_next",
          value: function _next(observable) {
            this.values.push(NONE);
            this.observables.push(observable);
          }
        }, {
          key: "_complete",
          value: function _complete() {
            var observables = this.observables;
            var len = observables.length;

            if (len === 0) {
              this.destination.complete();
            } else {
              this.active = len;
              this.toRespond = len;

              for (var i = 0; i < len; i++) {
                var observable = observables[i];
                this.add(Object(_util_subscribeToResult__WEBPACK_IMPORTED_MODULE_3__["subscribeToResult"])(this, observable, undefined, i));
              }
            }
          }
        }, {
          key: "notifyComplete",
          value: function notifyComplete(unused) {
            if ((this.active -= 1) === 0) {
              this.destination.complete();
            }
          }
        }, {
          key: "notifyNext",
          value: function notifyNext(_outerValue, innerValue, outerIndex) {
            var values = this.values;
            var oldVal = values[outerIndex];
            var toRespond = !this.toRespond ? 0 : oldVal === NONE ? --this.toRespond : this.toRespond;
            values[outerIndex] = innerValue;

            if (toRespond === 0) {
              if (this.resultSelector) {
                this._tryResultSelector(values);
              } else {
                this.destination.next(values.slice());
              }
            }
          }
        }, {
          key: "_tryResultSelector",
          value: function _tryResultSelector(values) {
            var result;

            try {
              result = this.resultSelector.apply(this, values);
            } catch (err) {
              this.destination.error(err);
              return;
            }

            this.destination.next(result);
          }
        }]);

        return CombineLatestSubscriber;
      }(_OuterSubscriber__WEBPACK_IMPORTED_MODULE_2__["OuterSubscriber"]); //# sourceMappingURL=combineLatest.js.map

      /***/

    },

    /***/
    "jG/O": function jGO(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return differenceInMinutes;
      });
      /* harmony import */


      var _differenceInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../differenceInMilliseconds/index.js */
      "Orh4");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");

      var MILLISECONDS_IN_MINUTE = 60000;
      /**
       * @name differenceInMinutes
       * @category Minute Helpers
       * @summary Get the number of minutes between the given dates.
       *
       * @description
       * Get the signed number of full (rounded towards 0) minutes between the given dates.
       *
       * ### 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 {Date|Number} dateLeft - the later date
       * @param {Date|Number} dateRight - the earlier date
       * @returns {Number} the number of minutes
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // How many minutes are between 2 July 2014 12:07:59 and 2 July 2014 12:20:00?
       * var result = differenceInMinutes(
       *   new Date(2014, 6, 2, 12, 20, 0),
       *   new Date(2014, 6, 2, 12, 7, 59)
       * )
       * //=> 12
       *
       * @example
       * // How many minutes are from 10:01:59 to 10:00:00
       * var result = differenceInMinutes(
       *   new Date(2000, 0, 1, 10, 0, 0),
       *   new Date(2000, 0, 1, 10, 1, 59)
       * )
       * //=> -1
       */

      function differenceInMinutes(dirtyDateLeft, dirtyDateRight) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(2, arguments);
        var diff = Object(_differenceInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateLeft, dirtyDateRight) / MILLISECONDS_IN_MINUTE;
        return diff > 0 ? Math.floor(diff) : Math.ceil(diff);
      }
      /***/

    },

    /***/
    "jIYg": function jIYg(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return requiredArgs;
      });

      function requiredArgs(required, args) {
        if (args.length < required) {
          throw new TypeError(required + ' argument' + (required > 1 ? 's' : '') + ' required, but only ' + args.length + ' present');
        }
      }
      /***/

    },

    /***/
    "jKzE": function jKzE(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return endOfMonth;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name endOfMonth
       * @category Month Helpers
       * @summary Return the end of a month for the given date.
       *
       * @description
       * Return the end of a month for the given date.
       * The result will be in the local timezone.
       *
       * ### 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 {Date|Number} date - the original date
       * @returns {Date} the end of a month
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // The end of a month for 2 September 2014 11:55:00:
       * var result = endOfMonth(new Date(2014, 8, 2, 11, 55, 0))
       * //=> Tue Sep 30 2014 23:59:59.999
       */


      function endOfMonth(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);
        var month = date.getMonth();
        date.setFullYear(date.getFullYear(), month + 1, 0);
        date.setHours(23, 59, 59, 999);
        return date;
      }
      /***/

    },

    /***/
    "jMqV": function jMqV(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MAT_SLIDE_TOGGLE_DEFAULT_OPTIONS", function () {
        return MAT_SLIDE_TOGGLE_DEFAULT_OPTIONS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MAT_SLIDE_TOGGLE_REQUIRED_VALIDATOR", function () {
        return MAT_SLIDE_TOGGLE_REQUIRED_VALIDATOR;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MAT_SLIDE_TOGGLE_VALUE_ACCESSOR", function () {
        return MAT_SLIDE_TOGGLE_VALUE_ACCESSOR;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatSlideToggle", function () {
        return MatSlideToggle;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatSlideToggleChange", function () {
        return MatSlideToggleChange;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatSlideToggleModule", function () {
        return MatSlideToggleModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatSlideToggleRequiredValidator", function () {
        return MatSlideToggleRequiredValidator;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "_MatSlideToggleRequiredValidatorModule", function () {
        return _MatSlideToggleRequiredValidatorModule;
      });
      /* harmony import */


      var _angular_cdk_observers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/cdk/observers */
      "9b/N");
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /* harmony import */


      var _angular_material_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! @angular/material/core */
      "UhP/");
      /* harmony import */


      var _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! @angular/cdk/a11y */
      "YEUz");
      /* harmony import */


      var _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! @angular/cdk/coercion */
      "8LU1");
      /* harmony import */


      var _angular_forms__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! @angular/forms */
      "s7LF");
      /* harmony import */


      var _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
      /*! @angular/platform-browser/animations */
      "omvX");
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** Injection token to be used to override the default options for `mat-slide-toggle`. */


      var _c0 = ["thumbContainer"];
      var _c1 = ["toggleBar"];
      var _c2 = ["input"];

      var _c3 = function _c3() {
        return {
          enterDuration: 150
        };
      };

      var _c4 = ["*"];
      var MAT_SLIDE_TOGGLE_DEFAULT_OPTIONS = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["InjectionToken"]('mat-slide-toggle-default-options', {
        providedIn: 'root',
        factory: function factory() {
          return {
            disableToggleValue: false
          };
        }
      });
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */
      // Increasing integer for generating unique ids for slide-toggle components.

      var nextUniqueId = 0;
      /** @docs-private */

      var MAT_SLIDE_TOGGLE_VALUE_ACCESSOR = {
        provide: _angular_forms__WEBPACK_IMPORTED_MODULE_5__["NG_VALUE_ACCESSOR"],
        useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["forwardRef"])(function () {
          return MatSlideToggle;
        }),
        multi: true
      };
      /** Change event object emitted by a MatSlideToggle. */

      var MatSlideToggleChange = function MatSlideToggleChange(
      /** The source MatSlideToggle of the event. */
      source,
      /** The new `checked` value of the MatSlideToggle. */
      checked) {
        _classCallCheck2(this, MatSlideToggleChange);

        this.source = source;
        this.checked = checked;
      }; // Boilerplate for applying mixins to MatSlideToggle.

      /** @docs-private */


      var MatSlideToggleBase = function MatSlideToggleBase(_elementRef) {
        _classCallCheck2(this, MatSlideToggleBase);

        this._elementRef = _elementRef;
      };

      var _MatSlideToggleMixinBase = Object(_angular_material_core__WEBPACK_IMPORTED_MODULE_2__["mixinTabIndex"])(Object(_angular_material_core__WEBPACK_IMPORTED_MODULE_2__["mixinColor"])(Object(_angular_material_core__WEBPACK_IMPORTED_MODULE_2__["mixinDisableRipple"])(Object(_angular_material_core__WEBPACK_IMPORTED_MODULE_2__["mixinDisabled"])(MatSlideToggleBase)), 'accent'));
      /** Represents a slidable "switch" toggle that can be moved between on and off. */


      var MatSlideToggle = /*#__PURE__*/function (_MatSlideToggleMixinB) {
        _inherits2(MatSlideToggle, _MatSlideToggleMixinB);

        var _super397 = _createSuper2(MatSlideToggle);

        function MatSlideToggle(elementRef, _focusMonitor, _changeDetectorRef, tabIndex, defaults, _animationMode) {
          var _this837;

          _classCallCheck2(this, MatSlideToggle);

          _this837 = _super397.call(this, elementRef);
          _this837._focusMonitor = _focusMonitor;
          _this837._changeDetectorRef = _changeDetectorRef;
          _this837.defaults = defaults;
          _this837._animationMode = _animationMode;

          _this837._onChange = function (_) {};

          _this837._onTouched = function () {};

          _this837._uniqueId = "mat-slide-toggle-".concat(++nextUniqueId);
          _this837._required = false;
          _this837._checked = false;
          /** Name value will be applied to the input element if present. */

          _this837.name = null;
          /** A unique id for the slide-toggle input. If none is supplied, it will be auto-generated. */

          _this837.id = _this837._uniqueId;
          /** Whether the label should appear after or before the slide-toggle. Defaults to 'after'. */

          _this837.labelPosition = 'after';
          /** Used to set the aria-label attribute on the underlying input element. */

          _this837.ariaLabel = null;
          /** Used to set the aria-labelledby attribute on the underlying input element. */

          _this837.ariaLabelledby = null;
          /** An event will be dispatched each time the slide-toggle changes its value. */

          _this837.change = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
          /**
           * An event will be dispatched each time the slide-toggle input is toggled.
           * This event is always emitted when the user toggles the slide toggle, but this does not mean
           * the slide toggle's value has changed.
           */

          _this837.toggleChange = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
          _this837.tabIndex = parseInt(tabIndex) || 0;
          return _this837;
        }
        /** Whether the slide-toggle is required. */


        _createClass2(MatSlideToggle, [{
          key: "required",
          get: function get() {
            return this._required;
          },
          set: function set(value) {
            this._required = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_4__["coerceBooleanProperty"])(value);
          }
          /** Whether the slide-toggle element is checked or not. */

        }, {
          key: "checked",
          get: function get() {
            return this._checked;
          },
          set: function set(value) {
            this._checked = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_4__["coerceBooleanProperty"])(value);

            this._changeDetectorRef.markForCheck();
          }
          /** Returns the unique id for the visual hidden input. */

        }, {
          key: "inputId",
          get: function get() {
            return "".concat(this.id || this._uniqueId, "-input");
          }
        }, {
          key: "ngAfterContentInit",
          value: function ngAfterContentInit() {
            var _this838 = this;

            this._focusMonitor.monitor(this._elementRef, true).subscribe(function (focusOrigin) {
              // Only forward focus manually when it was received programmatically or through the
              // keyboard. We should not do this for mouse/touch focus for two reasons:
              // 1. It can prevent clicks from landing in Chrome (see #18269).
              // 2. They're already handled by the wrapping `label` element.
              if (focusOrigin === 'keyboard' || focusOrigin === 'program') {
                _this838._inputElement.nativeElement.focus();
              } else if (!focusOrigin) {
                // When a focused element becomes disabled, the browser *immediately* fires a blur event.
                // Angular does not expect events to be raised during change detection, so any state
                // change (such as a form control's 'ng-touched') will cause a changed-after-checked
                // error. See https://github.com/angular/angular/issues/17793. To work around this,
                // we defer telling the form control it has been touched until the next tick.
                Promise.resolve().then(function () {
                  return _this838._onTouched();
                });
              }
            });
          }
        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            this._focusMonitor.stopMonitoring(this._elementRef);
          }
          /** Method being called whenever the underlying input emits a change event. */

        }, {
          key: "_onChangeEvent",
          value: function _onChangeEvent(event) {
            // We always have to stop propagation on the change event.
            // Otherwise the change event, from the input element, will bubble up and
            // emit its event object to the component's `change` output.
            event.stopPropagation();
            this.toggleChange.emit(); // When the slide toggle's config disables toggle change event by setting
            // `disableToggleValue: true`, the slide toggle's value does not change, and the
            // checked state of the underlying input needs to be changed back.

            if (this.defaults.disableToggleValue) {
              this._inputElement.nativeElement.checked = this.checked;
              return;
            } // Sync the value from the underlying input element with the component instance.


            this.checked = this._inputElement.nativeElement.checked; // Emit our custom change event only if the underlying input emitted one. This ensures that
            // there is no change event, when the checked state changes programmatically.

            this._emitChangeEvent();
          }
          /** Method being called whenever the slide-toggle has been clicked. */

        }, {
          key: "_onInputClick",
          value: function _onInputClick(event) {
            // We have to stop propagation for click events on the visual hidden input element.
            // By default, when a user clicks on a label element, a generated click event will be
            // dispatched on the associated input element. Since we are using a label element as our
            // root container, the click event on the `slide-toggle` will be executed twice.
            // The real click event will bubble up, and the generated click event also tries to bubble up.
            // This will lead to multiple click events.
            // Preventing bubbling for the second event will solve that issue.
            event.stopPropagation();
          }
          /** Implemented as part of ControlValueAccessor. */

        }, {
          key: "writeValue",
          value: function writeValue(value) {
            this.checked = !!value;
          }
          /** Implemented as part of ControlValueAccessor. */

        }, {
          key: "registerOnChange",
          value: function registerOnChange(fn) {
            this._onChange = fn;
          }
          /** Implemented as part of ControlValueAccessor. */

        }, {
          key: "registerOnTouched",
          value: function registerOnTouched(fn) {
            this._onTouched = fn;
          }
          /** Implemented as a part of ControlValueAccessor. */

        }, {
          key: "setDisabledState",
          value: function setDisabledState(isDisabled) {
            this.disabled = isDisabled;

            this._changeDetectorRef.markForCheck();
          }
          /** Focuses the slide-toggle. */

        }, {
          key: "focus",
          value: function focus(options) {
            this._focusMonitor.focusVia(this._inputElement, 'keyboard', options);
          }
          /** Toggles the checked state of the slide-toggle. */

        }, {
          key: "toggle",
          value: function toggle() {
            this.checked = !this.checked;

            this._onChange(this.checked);
          }
          /**
           * Emits a change event on the `change` output. Also notifies the FormControl about the change.
           */

        }, {
          key: "_emitChangeEvent",
          value: function _emitChangeEvent() {
            this._onChange(this.checked);

            this.change.emit(new MatSlideToggleChange(this, this.checked));
          }
          /** Method being called whenever the label text changes. */

        }, {
          key: "_onLabelTextChange",
          value: function _onLabelTextChange() {
            // Since the event of the `cdkObserveContent` directive runs outside of the zone, the
            // slide-toggle component will be only marked for check, but no actual change detection runs
            // automatically. Instead of going back into the zone in order to trigger a change detection
            // which causes *all* components to be checked (if explicitly marked or not using OnPush),
            // we only trigger an explicit change detection for the slide-toggle view and its children.
            this._changeDetectorRef.detectChanges();
          }
        }]);

        return MatSlideToggle;
      }(_MatSlideToggleMixinBase);

      MatSlideToggle.ɵfac = function MatSlideToggle_Factory(t) {
        return new (t || MatSlideToggle)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_3__["FocusMonitor"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinjectAttribute"]('tabindex'), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](MAT_SLIDE_TOGGLE_DEFAULT_OPTIONS), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_6__["ANIMATION_MODULE_TYPE"], 8));
      };

      MatSlideToggle.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({
        type: MatSlideToggle,
        selectors: [["mat-slide-toggle"]],
        viewQuery: function MatSlideToggle_Query(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](_c0, true);

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](_c1, true);

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](_c2, true);
          }

          if (rf & 2) {
            var _t;

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx._thumbEl = _t.first);
            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx._thumbBarEl = _t.first);
            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx._inputElement = _t.first);
          }
        },
        hostAttrs: [1, "mat-slide-toggle"],
        hostVars: 12,
        hostBindings: function MatSlideToggle_HostBindings(rf, ctx) {
          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵhostProperty"]("id", ctx.id);

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵattribute"]("tabindex", ctx.disabled ? null : -1)("aria-label", null)("aria-labelledby", null);

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵclassProp"]("mat-checked", ctx.checked)("mat-disabled", ctx.disabled)("mat-slide-toggle-label-before", ctx.labelPosition == "before")("_mat-animation-noopable", ctx._animationMode === "NoopAnimations");
          }
        },
        inputs: {
          disabled: "disabled",
          disableRipple: "disableRipple",
          color: "color",
          tabIndex: "tabIndex",
          name: "name",
          id: "id",
          labelPosition: "labelPosition",
          ariaLabel: ["aria-label", "ariaLabel"],
          ariaLabelledby: ["aria-labelledby", "ariaLabelledby"],
          required: "required",
          checked: "checked"
        },
        outputs: {
          change: "change",
          toggleChange: "toggleChange"
        },
        exportAs: ["matSlideToggle"],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵProvidersFeature"]([MAT_SLIDE_TOGGLE_VALUE_ACCESSOR]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵInheritDefinitionFeature"]],
        ngContentSelectors: _c4,
        decls: 16,
        vars: 18,
        consts: [[1, "mat-slide-toggle-label"], ["label", ""], [1, "mat-slide-toggle-bar"], ["toggleBar", ""], ["type", "checkbox", "role", "switch", 1, "mat-slide-toggle-input", "cdk-visually-hidden", 3, "id", "required", "tabIndex", "checked", "disabled", "change", "click"], ["input", ""], [1, "mat-slide-toggle-thumb-container"], ["thumbContainer", ""], [1, "mat-slide-toggle-thumb"], ["mat-ripple", "", 1, "mat-slide-toggle-ripple", "mat-focus-indicator", 3, "matRippleTrigger", "matRippleDisabled", "matRippleCentered", "matRippleRadius", "matRippleAnimation"], [1, "mat-ripple-element", "mat-slide-toggle-persistent-ripple"], [1, "mat-slide-toggle-content", 3, "cdkObserveContent"], ["labelContent", ""], [2, "display", "none"]],
        template: function MatSlideToggle_Template(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "label", 0, 1);

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 2, 3);

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "input", 4, 5);

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function MatSlideToggle_Template_input_change_4_listener($event) {
              return ctx._onChangeEvent($event);
            })("click", function MatSlideToggle_Template_input_click_4_listener($event) {
              return ctx._onInputClick($event);
            });

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 6, 7);

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](8, "div", 8);

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "div", 9);

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](10, "div", 10);

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "span", 11, 12);

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("cdkObserveContent", function MatSlideToggle_Template_span_cdkObserveContent_11_listener() {
              return ctx._onLabelTextChange();
            });

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "span", 13);

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](14, "\xA0");

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](15);

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
          }

          if (rf & 2) {
            var _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](1);

            var _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](12);

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵattribute"]("for", ctx.inputId);

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵclassProp"]("mat-slide-toggle-bar-no-side-margin", !_r4.textContent || !_r4.textContent.trim());

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("id", ctx.inputId)("required", ctx.required)("tabIndex", ctx.tabIndex)("checked", ctx.checked)("disabled", ctx.disabled);

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵattribute"]("name", ctx.name)("aria-checked", ctx.checked.toString())("aria-label", ctx.ariaLabel)("aria-labelledby", ctx.ariaLabelledby);

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);

            _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("matRippleTrigger", _r0)("matRippleDisabled", ctx.disableRipple || ctx.disabled)("matRippleCentered", true)("matRippleRadius", 20)("matRippleAnimation", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](17, _c3));
          }
        },
        directives: [_angular_material_core__WEBPACK_IMPORTED_MODULE_2__["MatRipple"], _angular_cdk_observers__WEBPACK_IMPORTED_MODULE_0__["CdkObserveContent"]],
        styles: [".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],
        encapsulation: 2,
        changeDetection: 0
      });

      MatSlideToggle.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]
        }, {
          type: _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_3__["FocusMonitor"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]
        }, {
          type: String,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Attribute"],
            args: ['tabindex']
          }]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
            args: [MAT_SLIDE_TOGGLE_DEFAULT_OPTIONS]
          }]
        }, {
          type: String,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
            args: [_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_6__["ANIMATION_MODULE_TYPE"]]
          }]
        }];
      };

      MatSlideToggle.propDecorators = {
        _thumbEl: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"],
          args: ['thumbContainer']
        }],
        _thumbBarEl: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"],
          args: ['toggleBar']
        }],
        name: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
        }],
        id: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
        }],
        labelPosition: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
        }],
        ariaLabel: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
          args: ['aria-label']
        }],
        ariaLabelledby: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
          args: ['aria-labelledby']
        }],
        required: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
        }],
        checked: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
        }],
        change: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
        }],
        toggleChange: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
        }],
        _inputElement: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"],
          args: ['input']
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](MatSlideToggle, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
          args: [{
            selector: 'mat-slide-toggle',
            exportAs: 'matSlideToggle',
            host: {
              'class': 'mat-slide-toggle',
              '[id]': 'id',
              // Needs to be `-1` so it can still receive programmatic focus.
              '[attr.tabindex]': 'disabled ? null : -1',
              '[attr.aria-label]': 'null',
              '[attr.aria-labelledby]': 'null',
              '[class.mat-checked]': 'checked',
              '[class.mat-disabled]': 'disabled',
              '[class.mat-slide-toggle-label-before]': 'labelPosition == "before"',
              '[class._mat-animation-noopable]': '_animationMode === "NoopAnimations"'
            },
            template: "<label [attr.for]=\"inputId\" class=\"mat-slide-toggle-label\" #label>\n  <div #toggleBar class=\"mat-slide-toggle-bar\"\n       [class.mat-slide-toggle-bar-no-side-margin]=\"!labelContent.textContent || !labelContent.textContent.trim()\">\n\n    <input #input class=\"mat-slide-toggle-input cdk-visually-hidden\" type=\"checkbox\"\n           role=\"switch\"\n           [id]=\"inputId\"\n           [required]=\"required\"\n           [tabIndex]=\"tabIndex\"\n           [checked]=\"checked\"\n           [disabled]=\"disabled\"\n           [attr.name]=\"name\"\n           [attr.aria-checked]=\"checked.toString()\"\n           [attr.aria-label]=\"ariaLabel\"\n           [attr.aria-labelledby]=\"ariaLabelledby\"\n           (change)=\"_onChangeEvent($event)\"\n           (click)=\"_onInputClick($event)\">\n\n    <div class=\"mat-slide-toggle-thumb-container\" #thumbContainer>\n      <div class=\"mat-slide-toggle-thumb\"></div>\n      <div class=\"mat-slide-toggle-ripple mat-focus-indicator\" mat-ripple\n           [matRippleTrigger]=\"label\"\n           [matRippleDisabled]=\"disableRipple || disabled\"\n           [matRippleCentered]=\"true\"\n           [matRippleRadius]=\"20\"\n           [matRippleAnimation]=\"{enterDuration: 150}\">\n\n        <div class=\"mat-ripple-element mat-slide-toggle-persistent-ripple\"></div>\n      </div>\n    </div>\n\n  </div>\n\n  <span class=\"mat-slide-toggle-content\" #labelContent (cdkObserveContent)=\"_onLabelTextChange()\">\n    <!-- Add an invisible span so JAWS can read the label -->\n    <span style=\"display:none\">&nbsp;</span>\n    <ng-content></ng-content>\n  </span>\n</label>\n",
            providers: [MAT_SLIDE_TOGGLE_VALUE_ACCESSOR],
            inputs: ['disabled', 'disableRipple', 'color', 'tabIndex'],
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None,
            changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush,
            styles: [".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"]
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]
          }, {
            type: _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_3__["FocusMonitor"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]
          }, {
            type: String,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Attribute"],
              args: ['tabindex']
            }]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
              args: [MAT_SLIDE_TOGGLE_DEFAULT_OPTIONS]
            }]
          }, {
            type: String,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
              args: [_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_6__["ANIMATION_MODULE_TYPE"]]
            }]
          }];
        }, {
          name: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
          }],
          id: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
          }],
          labelPosition: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
          }],
          ariaLabel: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
            args: ['aria-label']
          }],
          ariaLabelledby: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
            args: ['aria-labelledby']
          }],
          change: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
          }],
          toggleChange: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
          }],
          required: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
          }],
          checked: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
          }],
          _thumbEl: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"],
            args: ['thumbContainer']
          }],
          _thumbBarEl: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"],
            args: ['toggleBar']
          }],
          _inputElement: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"],
            args: ['input']
          }]
        });
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var MAT_SLIDE_TOGGLE_REQUIRED_VALIDATOR = {
        provide: _angular_forms__WEBPACK_IMPORTED_MODULE_5__["NG_VALIDATORS"],
        useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["forwardRef"])(function () {
          return MatSlideToggleRequiredValidator;
        }),
        multi: true
      };
      /**
       * Validator for Material slide-toggle components with the required attribute in a
       * template-driven form. The default validator for required form controls asserts
       * that the control value is not undefined but that is not appropriate for a slide-toggle
       * where the value is always defined.
       *
       * Required slide-toggle form controls are valid when checked.
       */

      var MatSlideToggleRequiredValidator = /*#__PURE__*/function (_angular_forms__WEBPA) {
        _inherits2(MatSlideToggleRequiredValidator, _angular_forms__WEBPA);

        var _super398 = _createSuper2(MatSlideToggleRequiredValidator);

        function MatSlideToggleRequiredValidator() {
          _classCallCheck2(this, MatSlideToggleRequiredValidator);

          return _super398.apply(this, arguments);
        }

        return MatSlideToggleRequiredValidator;
      }(_angular_forms__WEBPACK_IMPORTED_MODULE_5__["CheckboxRequiredValidator"]);

      MatSlideToggleRequiredValidator.ɵfac = function MatSlideToggleRequiredValidator_Factory(t) {
        return ɵMatSlideToggleRequiredValidator_BaseFactory(t || MatSlideToggleRequiredValidator);
      };

      MatSlideToggleRequiredValidator.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineDirective"]({
        type: MatSlideToggleRequiredValidator,
        selectors: [["mat-slide-toggle", "required", "", "formControlName", ""], ["mat-slide-toggle", "required", "", "formControl", ""], ["mat-slide-toggle", "required", "", "ngModel", ""]],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵProvidersFeature"]([MAT_SLIDE_TOGGLE_REQUIRED_VALIDATOR]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵInheritDefinitionFeature"]]
      });

      var ɵMatSlideToggleRequiredValidator_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetInheritedFactory"](MatSlideToggleRequiredValidator);
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](MatSlideToggleRequiredValidator, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Directive"],
          args: [{
            selector: "mat-slide-toggle[required][formControlName],\n             mat-slide-toggle[required][formControl], mat-slide-toggle[required][ngModel]",
            providers: [MAT_SLIDE_TOGGLE_REQUIRED_VALIDATOR]
          }]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** This module is used by both original and MDC-based slide-toggle implementations. */


      var _MatSlideToggleRequiredValidatorModule = function _MatSlideToggleRequiredValidatorModule() {
        _classCallCheck2(this, _MatSlideToggleRequiredValidatorModule);
      };

      _MatSlideToggleRequiredValidatorModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineNgModule"]({
        type: _MatSlideToggleRequiredValidatorModule
      });
      _MatSlideToggleRequiredValidatorModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjector"]({
        factory: function _MatSlideToggleRequiredValidatorModule_Factory(t) {
          return new (t || _MatSlideToggleRequiredValidatorModule)();
        }
      });

      (function () {
        (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsetNgModuleScope"](_MatSlideToggleRequiredValidatorModule, {
          declarations: [MatSlideToggleRequiredValidator],
          exports: [MatSlideToggleRequiredValidator]
        });
      })();
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](_MatSlideToggleRequiredValidatorModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"],
          args: [{
            exports: [MatSlideToggleRequiredValidator],
            declarations: [MatSlideToggleRequiredValidator]
          }]
        }], null, null);
      })();

      var MatSlideToggleModule = function MatSlideToggleModule() {
        _classCallCheck2(this, MatSlideToggleModule);
      };

      MatSlideToggleModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineNgModule"]({
        type: MatSlideToggleModule
      });
      MatSlideToggleModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjector"]({
        factory: function MatSlideToggleModule_Factory(t) {
          return new (t || MatSlideToggleModule)();
        },
        imports: [[_MatSlideToggleRequiredValidatorModule, _angular_material_core__WEBPACK_IMPORTED_MODULE_2__["MatRippleModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_2__["MatCommonModule"], _angular_cdk_observers__WEBPACK_IMPORTED_MODULE_0__["ObserversModule"]], _MatSlideToggleRequiredValidatorModule, _angular_material_core__WEBPACK_IMPORTED_MODULE_2__["MatCommonModule"]]
      });

      (function () {
        (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsetNgModuleScope"](MatSlideToggleModule, {
          declarations: function declarations() {
            return [MatSlideToggle];
          },
          imports: function imports() {
            return [_MatSlideToggleRequiredValidatorModule, _angular_material_core__WEBPACK_IMPORTED_MODULE_2__["MatRippleModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_2__["MatCommonModule"], _angular_cdk_observers__WEBPACK_IMPORTED_MODULE_0__["ObserversModule"]];
          },
          exports: function exports() {
            return [_MatSlideToggleRequiredValidatorModule, MatSlideToggle, _angular_material_core__WEBPACK_IMPORTED_MODULE_2__["MatCommonModule"]];
          }
        });
      })();
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](MatSlideToggleModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"],
          args: [{
            imports: [_MatSlideToggleRequiredValidatorModule, _angular_material_core__WEBPACK_IMPORTED_MODULE_2__["MatRippleModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_2__["MatCommonModule"], _angular_cdk_observers__WEBPACK_IMPORTED_MODULE_0__["ObserversModule"]],
            exports: [_MatSlideToggleRequiredValidatorModule, MatSlideToggle, _angular_material_core__WEBPACK_IMPORTED_MODULE_2__["MatCommonModule"]],
            declarations: [MatSlideToggle]
          }]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Generated bundle index. Do not edit.
       */
      //# sourceMappingURL=slide-toggle.js.map

      /***/

    },

    /***/
    "jO9C": function jO9C(module, exports, __webpack_require__) {
      ;

      (function (root, factory, undef) {
        if (true) {
          // CommonJS
          module.exports = exports = factory(__webpack_require__(
          /*! ./core */
          "Ib8C"), __webpack_require__(
          /*! ./cipher-core */
          "OLod"));
        } else {}
      })(this, function (CryptoJS) {
        /**
         * ISO/IEC 9797-1 Padding Method 2.
         */
        CryptoJS.pad.Iso97971 = {
          pad: function pad(data, blockSize) {
            // Add 0x80 byte
            data.concat(CryptoJS.lib.WordArray.create([0x80000000], 1)); // Zero pad the rest

            CryptoJS.pad.ZeroPadding.pad(data, blockSize);
          },
          unpad: function unpad(data) {
            // Remove zero padding
            CryptoJS.pad.ZeroPadding.unpad(data); // Remove one more byte -- the 0x80 byte

            data.sigBytes--;
          }
        };
        return CryptoJS.pad.Iso97971;
      });
      /***/

    },

    /***/
    "jUeY": function jUeY(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Greek [el]
      //! author : Aggelos Karalias : https://github.com/mehiel
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        function isFunction(input) {
          return typeof Function !== 'undefined' && input instanceof Function || Object.prototype.toString.call(input) === '[object Function]';
        }

        var el = moment.defineLocale('el', {
          monthsNominativeEl: 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split('_'),
          monthsGenitiveEl: 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split('_'),
          months: function months(momentToFormat, format) {
            if (!momentToFormat) {
              return this._monthsNominativeEl;
            } else if (typeof format === 'string' && /D/.test(format.substring(0, format.indexOf('MMMM')))) {
              // if there is a day number before 'MMMM'
              return this._monthsGenitiveEl[momentToFormat.month()];
            } else {
              return this._monthsNominativeEl[momentToFormat.month()];
            }
          },
          monthsShort: 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'),
          weekdays: 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split('_'),
          weekdaysShort: 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'),
          weekdaysMin: 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'),
          meridiem: function meridiem(hours, minutes, isLower) {
            if (hours > 11) {
              return isLower ? 'μμ' : 'ΜΜ';
            } else {
              return isLower ? 'πμ' : 'ΠΜ';
            }
          },
          isPM: function isPM(input) {
            return (input + '').toLowerCase()[0] === 'μ';
          },
          meridiemParse: /[ΠΜ]\.?Μ?\.?/i,
          longDateFormat: {
            LT: 'h:mm A',
            LTS: 'h:mm:ss A',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY h:mm A',
            LLLL: 'dddd, D MMMM YYYY h:mm A'
          },
          calendarEl: {
            sameDay: '[Σήμερα {}] LT',
            nextDay: '[Αύριο {}] LT',
            nextWeek: 'dddd [{}] LT',
            lastDay: '[Χθες {}] LT',
            lastWeek: function lastWeek() {
              switch (this.day()) {
                case 6:
                  return '[το προηγούμενο] dddd [{}] LT';

                default:
                  return '[την προηγούμενη] dddd [{}] LT';
              }
            },
            sameElse: 'L'
          },
          calendar: function calendar(key, mom) {
            var output = this._calendarEl[key],
                hours = mom && mom.hours();

            if (isFunction(output)) {
              output = output.apply(mom);
            }

            return output.replace('{}', hours % 12 === 1 ? 'στη' : 'στις');
          },
          relativeTime: {
            future: 'σε %s',
            past: '%s πριν',
            s: 'λίγα δευτερόλεπτα',
            ss: '%d δευτερόλεπτα',
            m: 'ένα λεπτό',
            mm: '%d λεπτά',
            h: 'μία ώρα',
            hh: '%d ώρες',
            d: 'μία μέρα',
            dd: '%d μέρες',
            M: 'ένας μήνας',
            MM: '%d μήνες',
            y: 'ένας χρόνος',
            yy: '%d χρόνια'
          },
          dayOfMonthOrdinalParse: /\d{1,2}η/,
          ordinal: '%dη',
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4st is the first week of the year.

          }
        });
        return el;
      });
      /***/

    },

    /***/
    "jVdC": function jVdC(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Polish [pl]
      //! author : Rafal Hirsz : https://github.com/evoL
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var monthsNominative = 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split('_'),
            monthsSubjective = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split('_'),
            monthsParse = [/^sty/i, /^lut/i, /^mar/i, /^kwi/i, /^maj/i, /^cze/i, /^lip/i, /^sie/i, /^wrz/i, /^paź/i, /^lis/i, /^gru/i];

        function plural(n) {
          return n % 10 < 5 && n % 10 > 1 && ~~(n / 10) % 10 !== 1;
        }

        function translate(number, withoutSuffix, key) {
          var result = number + ' ';

          switch (key) {
            case 'ss':
              return result + (plural(number) ? 'sekundy' : 'sekund');

            case 'm':
              return withoutSuffix ? 'minuta' : 'minutę';

            case 'mm':
              return result + (plural(number) ? 'minuty' : 'minut');

            case 'h':
              return withoutSuffix ? 'godzina' : 'godzinę';

            case 'hh':
              return result + (plural(number) ? 'godziny' : 'godzin');

            case 'ww':
              return result + (plural(number) ? 'tygodnie' : 'tygodni');

            case 'MM':
              return result + (plural(number) ? 'miesiące' : 'miesięcy');

            case 'yy':
              return result + (plural(number) ? 'lata' : 'lat');
          }
        }

        var pl = moment.defineLocale('pl', {
          months: function months(momentToFormat, format) {
            if (!momentToFormat) {
              return monthsNominative;
            } else if (/D MMMM/.test(format)) {
              return monthsSubjective[momentToFormat.month()];
            } else {
              return monthsNominative[momentToFormat.month()];
            }
          },
          monthsShort: 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'),
          monthsParse: monthsParse,
          longMonthsParse: monthsParse,
          shortMonthsParse: monthsParse,
          weekdays: 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split('_'),
          weekdaysShort: 'ndz_pon_wt_śr_czw_pt_sob'.split('_'),
          weekdaysMin: 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'),
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd, D MMMM YYYY HH:mm'
          },
          calendar: {
            sameDay: '[Dziś o] LT',
            nextDay: '[Jutro o] LT',
            nextWeek: function nextWeek() {
              switch (this.day()) {
                case 0:
                  return '[W niedzielę o] LT';

                case 2:
                  return '[We wtorek o] LT';

                case 3:
                  return '[W środę o] LT';

                case 6:
                  return '[W sobotę o] LT';

                default:
                  return '[W] dddd [o] LT';
              }
            },
            lastDay: '[Wczoraj o] LT',
            lastWeek: function lastWeek() {
              switch (this.day()) {
                case 0:
                  return '[W zeszłą niedzielę o] LT';

                case 3:
                  return '[W zeszłą środę o] LT';

                case 6:
                  return '[W zeszłą sobotę o] LT';

                default:
                  return '[W zeszły] dddd [o] LT';
              }
            },
            sameElse: 'L'
          },
          relativeTime: {
            future: 'za %s',
            past: '%s temu',
            s: 'kilka sekund',
            ss: translate,
            m: translate,
            mm: translate,
            h: translate,
            hh: translate,
            d: '1 dzień',
            dd: '%d dni',
            w: 'tydzień',
            ww: translate,
            M: 'miesiąc',
            MM: translate,
            y: 'rok',
            yy: translate
          },
          dayOfMonthOrdinalParse: /\d{1,2}\./,
          ordinal: '%d.',
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return pl;
      });
      /***/

    },

    /***/
    "jZKg": function jZKg(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "scheduleArray", function () {
        return scheduleArray;
      });
      /* harmony import */


      var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Observable */
      "HDdC");
      /* harmony import */


      var _Subscription__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../Subscription */
      "quSY");

      function scheduleArray(input, scheduler) {
        return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](function (subscriber) {
          var sub = new _Subscription__WEBPACK_IMPORTED_MODULE_1__["Subscription"]();
          var i = 0;
          sub.add(scheduler.schedule(function () {
            if (i === input.length) {
              subscriber.complete();
              return;
            }

            subscriber.next(input[i++]);

            if (!subscriber.closed) {
              sub.add(this.schedule());
            }
          }));
          return sub;
        });
      } //# sourceMappingURL=scheduleArray.js.map

      /***/

    },

    /***/
    "jZMG": function jZMG(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return isTomorrow;
      });
      /* harmony import */


      var _addDays_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../addDays/index.js */
      "9/EM");
      /* harmony import */


      var _isSameDay_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../isSameDay/index.js */
      "G6Tw");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name isTomorrow
       * @category Day Helpers
       * @summary Is the given date tomorrow?
       * @pure false
       *
       * @description
       * Is the given date tomorrow?
       *
       * > ⚠️ Please note that this function is not present in the FP submodule as
       * > it uses `Date.now()` internally hence impure and can't be safely curried.
       *
       * ### 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 {Date|Number} date - the date to check
       * @returns {Boolean} the date is tomorrow
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // If today is 6 October 2014, is 7 October 14:00:00 tomorrow?
       * var result = isTomorrow(new Date(2014, 9, 7, 14, 0))
       * //=> true
       */


      function isTomorrow(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(1, arguments);
        return Object(_isSameDay_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate, Object(_addDays_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Date.now(), 1));
      }
      /***/

    },

    /***/
    "jfSC": function jfSC(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Persian [fa]
      //! author : Ebrahim Byagowi : https://github.com/ebraminio
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var symbolMap = {
          1: '۱',
          2: '۲',
          3: '۳',
          4: '۴',
          5: '۵',
          6: '۶',
          7: '۷',
          8: '۸',
          9: '۹',
          0: '۰'
        },
            numberMap = {
          '۱': '1',
          '۲': '2',
          '۳': '3',
          '۴': '4',
          '۵': '5',
          '۶': '6',
          '۷': '7',
          '۸': '8',
          '۹': '9',
          '۰': '0'
        };
        var fa = moment.defineLocale('fa', {
          months: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),
          monthsShort: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),
          weekdays: "\u06CC\u06A9\u200C\u0634\u0646\u0628\u0647_\u062F\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200C\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067E\u0646\u062C\u200C\u0634\u0646\u0628\u0647_\u062C\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split('_'),
          weekdaysShort: "\u06CC\u06A9\u200C\u0634\u0646\u0628\u0647_\u062F\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200C\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067E\u0646\u062C\u200C\u0634\u0646\u0628\u0647_\u062C\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split('_'),
          weekdaysMin: 'ی_د_س_چ_پ_ج_ش'.split('_'),
          weekdaysParseExact: true,
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd, D MMMM YYYY HH:mm'
          },
          meridiemParse: /قبل از ظهر|بعد از ظهر/,
          isPM: function isPM(input) {
            return /بعد از ظهر/.test(input);
          },
          meridiem: function meridiem(hour, minute, isLower) {
            if (hour < 12) {
              return 'قبل از ظهر';
            } else {
              return 'بعد از ظهر';
            }
          },
          calendar: {
            sameDay: '[امروز ساعت] LT',
            nextDay: '[فردا ساعت] LT',
            nextWeek: 'dddd [ساعت] LT',
            lastDay: '[دیروز ساعت] LT',
            lastWeek: 'dddd [پیش] [ساعت] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'در %s',
            past: '%s پیش',
            s: 'چند ثانیه',
            ss: '%d ثانیه',
            m: 'یک دقیقه',
            mm: '%d دقیقه',
            h: 'یک ساعت',
            hh: '%d ساعت',
            d: 'یک روز',
            dd: '%d روز',
            M: 'یک ماه',
            MM: '%d ماه',
            y: 'یک سال',
            yy: '%d سال'
          },
          preparse: function preparse(string) {
            return string.replace(/[۰-۹]/g, function (match) {
              return numberMap[match];
            }).replace(/،/g, ',');
          },
          postformat: function postformat(string) {
            return string.replace(/\d/g, function (match) {
              return symbolMap[match];
            }).replace(/,/g, '،');
          },
          dayOfMonthOrdinalParse: /\d{1,2}م/,
          ordinal: '%dم',
          week: {
            dow: 6,
            // Saturday is the first day of the week.
            doy: 12 // The week that contains Jan 12th is the first week of the year.

          }
        });
        return fa;
      });
      /***/

    },

    /***/
    "jnO4": function jnO4(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Arabic [ar]
      //! author : Abdel Said: https://github.com/abdelsaid
      //! author : Ahmed Elkhatib
      //! author : forabi https://github.com/forabi
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var symbolMap = {
          1: '١',
          2: '٢',
          3: '٣',
          4: '٤',
          5: '٥',
          6: '٦',
          7: '٧',
          8: '٨',
          9: '٩',
          0: '٠'
        },
            numberMap = {
          '١': '1',
          '٢': '2',
          '٣': '3',
          '٤': '4',
          '٥': '5',
          '٦': '6',
          '٧': '7',
          '٨': '8',
          '٩': '9',
          '٠': '0'
        },
            pluralForm = function pluralForm(n) {
          return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;
        },
            plurals = {
          s: ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],
          m: ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],
          h: ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],
          d: ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],
          M: ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],
          y: ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']
        },
            pluralize = function pluralize(u) {
          return function (number, withoutSuffix, string, isFuture) {
            var f = pluralForm(number),
                str = plurals[u][pluralForm(number)];

            if (f === 2) {
              str = str[withoutSuffix ? 0 : 1];
            }

            return str.replace(/%d/i, number);
          };
        },
            months = ['يناير', 'فبراير', 'مارس', 'أبريل', 'مايو', 'يونيو', 'يوليو', 'أغسطس', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر'];

        var ar = moment.defineLocale('ar', {
          months: months,
          monthsShort: months,
          weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
          weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
          weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
          weekdaysParseExact: true,
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: "D/\u200FM/\u200FYYYY",
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd D MMMM YYYY HH:mm'
          },
          meridiemParse: /ص|م/,
          isPM: function isPM(input) {
            return 'م' === input;
          },
          meridiem: function meridiem(hour, minute, isLower) {
            if (hour < 12) {
              return 'ص';
            } else {
              return 'م';
            }
          },
          calendar: {
            sameDay: '[اليوم عند الساعة] LT',
            nextDay: '[غدًا عند الساعة] LT',
            nextWeek: 'dddd [عند الساعة] LT',
            lastDay: '[أمس عند الساعة] LT',
            lastWeek: 'dddd [عند الساعة] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'بعد %s',
            past: 'منذ %s',
            s: pluralize('s'),
            ss: pluralize('s'),
            m: pluralize('m'),
            mm: pluralize('m'),
            h: pluralize('h'),
            hh: pluralize('h'),
            d: pluralize('d'),
            dd: pluralize('d'),
            M: pluralize('M'),
            MM: pluralize('M'),
            y: pluralize('y'),
            yy: pluralize('y')
          },
          preparse: function preparse(string) {
            return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
              return numberMap[match];
            }).replace(/،/g, ',');
          },
          postformat: function postformat(string) {
            return string.replace(/\d/g, function (match) {
              return symbolMap[match];
            }).replace(/,/g, '،');
          },
          week: {
            dow: 6,
            // Saturday is the first day of the week.
            doy: 12 // The week that contains Jan 12th is the first week of the year.

          }
        });
        return ar;
      });
      /***/

    },

    /***/
    "jtHE": function jtHE(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ReplaySubject", function () {
        return ReplaySubject;
      });
      /* harmony import */


      var _Subject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ./Subject */
      "XNiG");
      /* harmony import */


      var _scheduler_queue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ./scheduler/queue */
      "qgXg");
      /* harmony import */


      var _Subscription__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ./Subscription */
      "quSY");
      /* harmony import */


      var _operators_observeOn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ./operators/observeOn */
      "pxpQ");
      /* harmony import */


      var _util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! ./util/ObjectUnsubscribedError */
      "9ppp");
      /* harmony import */


      var _SubjectSubscription__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! ./SubjectSubscription */
      "Ylt2");

      var ReplaySubject = /*#__PURE__*/function (_Subject__WEBPACK_IMP5) {
        _inherits2(ReplaySubject, _Subject__WEBPACK_IMP5);

        var _super399 = _createSuper2(ReplaySubject);

        function ReplaySubject() {
          var _this839;

          var bufferSize = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : Number.POSITIVE_INFINITY;
          var windowTime = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Number.POSITIVE_INFINITY;
          var scheduler = arguments.length > 2 ? arguments[2] : undefined;

          _classCallCheck2(this, ReplaySubject);

          _this839 = _super399.call(this);
          _this839.scheduler = scheduler;
          _this839._events = [];
          _this839._infiniteTimeWindow = false;
          _this839._bufferSize = bufferSize < 1 ? 1 : bufferSize;
          _this839._windowTime = windowTime < 1 ? 1 : windowTime;

          if (windowTime === Number.POSITIVE_INFINITY) {
            _this839._infiniteTimeWindow = true;
            _this839.next = _this839.nextInfiniteTimeWindow;
          } else {
            _this839.next = _this839.nextTimeWindow;
          }

          return _this839;
        }

        _createClass2(ReplaySubject, [{
          key: "nextInfiniteTimeWindow",
          value: function nextInfiniteTimeWindow(value) {
            if (!this.isStopped) {
              var _events = this._events;

              _events.push(value);

              if (_events.length > this._bufferSize) {
                _events.shift();
              }
            }

            _get2(_getPrototypeOf2(ReplaySubject.prototype), "next", this).call(this, value);
          }
        }, {
          key: "nextTimeWindow",
          value: function nextTimeWindow(value) {
            if (!this.isStopped) {
              this._events.push(new ReplayEvent(this._getNow(), value));

              this._trimBufferThenGetEvents();
            }

            _get2(_getPrototypeOf2(ReplaySubject.prototype), "next", this).call(this, value);
          }
        }, {
          key: "_subscribe",
          value: function _subscribe(subscriber) {
            var _infiniteTimeWindow = this._infiniteTimeWindow;

            var _events = _infiniteTimeWindow ? this._events : this._trimBufferThenGetEvents();

            var scheduler = this.scheduler;
            var len = _events.length;
            var subscription;

            if (this.closed) {
              throw new _util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_4__["ObjectUnsubscribedError"]();
            } else if (this.isStopped || this.hasError) {
              subscription = _Subscription__WEBPACK_IMPORTED_MODULE_2__["Subscription"].EMPTY;
            } else {
              this.observers.push(subscriber);
              subscription = new _SubjectSubscription__WEBPACK_IMPORTED_MODULE_5__["SubjectSubscription"](this, subscriber);
            }

            if (scheduler) {
              subscriber.add(subscriber = new _operators_observeOn__WEBPACK_IMPORTED_MODULE_3__["ObserveOnSubscriber"](subscriber, scheduler));
            }

            if (_infiniteTimeWindow) {
              for (var i = 0; i < len && !subscriber.closed; i++) {
                subscriber.next(_events[i]);
              }
            } else {
              for (var _i46 = 0; _i46 < len && !subscriber.closed; _i46++) {
                subscriber.next(_events[_i46].value);
              }
            }

            if (this.hasError) {
              subscriber.error(this.thrownError);
            } else if (this.isStopped) {
              subscriber.complete();
            }

            return subscription;
          }
        }, {
          key: "_getNow",
          value: function _getNow() {
            return (this.scheduler || _scheduler_queue__WEBPACK_IMPORTED_MODULE_1__["queue"]).now();
          }
        }, {
          key: "_trimBufferThenGetEvents",
          value: function _trimBufferThenGetEvents() {
            var now = this._getNow();

            var _bufferSize = this._bufferSize;
            var _windowTime = this._windowTime;
            var _events = this._events;
            var eventsCount = _events.length;
            var spliceCount = 0;

            while (spliceCount < eventsCount) {
              if (now - _events[spliceCount].time < _windowTime) {
                break;
              }

              spliceCount++;
            }

            if (eventsCount > _bufferSize) {
              spliceCount = Math.max(spliceCount, eventsCount - _bufferSize);
            }

            if (spliceCount > 0) {
              _events.splice(0, spliceCount);
            }

            return _events;
          }
        }]);

        return ReplaySubject;
      }(_Subject__WEBPACK_IMPORTED_MODULE_0__["Subject"]);

      var ReplayEvent = function ReplayEvent(time, value) {
        _classCallCheck2(this, ReplayEvent);

        this.time = time;
        this.value = value;
      }; //# sourceMappingURL=ReplaySubject.js.map

      /***/

    },

    /***/
    "kEOa": function kEOa(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Bengali [bn]
      //! author : Kaushik Gandhi : https://github.com/kaushikgandhi
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var symbolMap = {
          1: '১',
          2: '২',
          3: '৩',
          4: '৪',
          5: '৫',
          6: '৬',
          7: '৭',
          8: '৮',
          9: '৯',
          0: '০'
        },
            numberMap = {
          '১': '1',
          '২': '2',
          '৩': '3',
          '৪': '4',
          '৫': '5',
          '৬': '6',
          '৭': '7',
          '৮': '8',
          '৯': '9',
          '০': '0'
        };
        var bn = moment.defineLocale('bn', {
          months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split('_'),
          monthsShort: 'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split('_'),
          weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split('_'),
          weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
          weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'),
          longDateFormat: {
            LT: 'A h:mm সময়',
            LTS: 'A h:mm:ss সময়',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY, A h:mm সময়',
            LLLL: 'dddd, D MMMM YYYY, A h:mm সময়'
          },
          calendar: {
            sameDay: '[আজ] LT',
            nextDay: '[আগামীকাল] LT',
            nextWeek: 'dddd, LT',
            lastDay: '[গতকাল] LT',
            lastWeek: '[গত] dddd, LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: '%s পরে',
            past: '%s আগে',
            s: 'কয়েক সেকেন্ড',
            ss: '%d সেকেন্ড',
            m: 'এক মিনিট',
            mm: '%d মিনিট',
            h: 'এক ঘন্টা',
            hh: '%d ঘন্টা',
            d: 'এক দিন',
            dd: '%d দিন',
            M: 'এক মাস',
            MM: '%d মাস',
            y: 'এক বছর',
            yy: '%d বছর'
          },
          preparse: function preparse(string) {
            return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
              return numberMap[match];
            });
          },
          postformat: function postformat(string) {
            return string.replace(/\d/g, function (match) {
              return symbolMap[match];
            });
          },
          meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/,
          meridiemHour: function meridiemHour(hour, meridiem) {
            if (hour === 12) {
              hour = 0;
            }

            if (meridiem === 'রাত' && hour >= 4 || meridiem === 'দুপুর' && hour < 5 || meridiem === 'বিকাল') {
              return hour + 12;
            } else {
              return hour;
            }
          },
          meridiem: function meridiem(hour, minute, isLower) {
            if (hour < 4) {
              return 'রাত';
            } else if (hour < 10) {
              return 'সকাল';
            } else if (hour < 17) {
              return 'দুপুর';
            } else if (hour < 20) {
              return 'বিকাল';
            } else {
              return 'রাত';
            }
          },
          week: {
            dow: 0,
            // Sunday is the first day of the week.
            doy: 6 // The week that contains Jan 6th is the first week of the year.

          }
        });
        return bn;
      });
      /***/

    },

    /***/
    "kJWO": function kJWO(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "observable", function () {
        return observable;
      });

      var observable = function () {
        return typeof Symbol === 'function' && Symbol.observable || '@@observable';
      }(); //# sourceMappingURL=observable.js.map

      /***/

    },

    /***/
    "kJyz": function kJyz(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return isSameYear;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name isSameYear
       * @category Year Helpers
       * @summary Are the given dates in the same year?
       *
       * @description
       * Are the given dates in the same year?
       *
       * ### 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 {Date|Number} dateLeft - the first date to check
       * @param {Date|Number} dateRight - the second date to check
       * @returns {Boolean} the dates are in the same year
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // Are 2 September 2014 and 25 September 2014 in the same year?
       * var result = isSameYear(new Date(2014, 8, 2), new Date(2014, 8, 25))
       * //=> true
       */


      function isSameYear(dirtyDateLeft, dirtyDateRight) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(2, arguments);
        var dateLeft = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateLeft);
        var dateRight = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateRight);
        return dateLeft.getFullYear() === dateRight.getFullYear();
      }
      /***/

    },

    /***/
    "kKUf": function kKUf(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return lastDayOfMonth;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name lastDayOfMonth
       * @category Month Helpers
       * @summary Return the last day of a month for the given date.
       *
       * @description
       * Return the last day of a month for the given date.
       * The result will be in the local timezone.
       *
       * ### 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 {Date|Number} date - the original date
       * @returns {Date} the last day of a month
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // The last day of a month for 2 September 2014 11:55:00:
       * var result = lastDayOfMonth(new Date(2014, 8, 2, 11, 55, 0))
       * //=> Tue Sep 30 2014 00:00:00
       */


      function lastDayOfMonth(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);
        var month = date.getMonth();
        date.setFullYear(date.getFullYear(), month + 1, 0);
        date.setHours(0, 0, 0, 0);
        return date;
      }
      /***/

    },

    /***/
    "kKrM": function kKrM(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return getDaysInYear;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _isLeapYear_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../isLeapYear/index.js */
      "9T1D");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name getDaysInYear
       * @category Year Helpers
       * @summary Get the number of days in a year of the given date.
       *
       * @description
       * Get the number of days in a year of the given date.
       *
       * ### 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 {Date|Number} date - the given date
       * @returns {Number} the number of days in a year
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // How many days are in 2012?
       * var result = getDaysInYear(new Date(2012, 0, 1))
       * //=> 366
       */


      function getDaysInYear(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(1, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);

        if (isNaN(date)) {
          return NaN;
        }

        return Object(_isLeapYear_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(date) ? 366 : 365;
      }
      /***/

    },

    /***/
    "kMzH": function kMzH(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return getWeekOfMonth;
      });
      /* harmony import */


      var _getDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../getDate/index.js */
      "TpeJ");
      /* harmony import */


      var _getDay_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../getDay/index.js */
      "GobQ");
      /* harmony import */


      var _startOfMonth_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../startOfMonth/index.js */
      "9ig3");
      /* harmony import */


      var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../_lib/toInteger/index.js */
      "/h9T");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name getWeekOfMonth
       * @category Week Helpers
       * @summary Get the week of the month of the given date.
       *
       * @description
       * Get the week of the month of the given date.
       *
       * ### 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 {Date|Number} date - the given date
       * @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 {Number} the week of month
       * @throws {TypeError} 1 argument required
       * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6
       *
       * @example
       * // Which week of the month is 9 November 2017?
       * var result = getWeekOfMonth(new Date(2017, 10, 9))
       * //=> 2
       */


      function getWeekOfMonth(date, dirtyOptions) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_4__["default"])(1, arguments);
        var options = dirtyOptions || {};
        var locale = options.locale;
        var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn;
        var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(localeWeekStartsOn);
        var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN

        if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
          throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
        }

        var currentDayOfMonth = Object(_getDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(date);

        if (isNaN(currentDayOfMonth)) {
          return currentDayOfMonth;
        }

        var startWeekDay = Object(_getDay_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(Object(_startOfMonth_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(date));
        var lastDayOfFirstWeek = 0;

        if (startWeekDay >= weekStartsOn) {
          lastDayOfFirstWeek = weekStartsOn + 7 - startWeekDay;
        } else {
          lastDayOfFirstWeek = weekStartsOn - startWeekDay;
        }

        var weekNumber = 1;

        if (currentDayOfMonth > lastDayOfFirstWeek) {
          var remainingDaysAfterFirstWeek = currentDayOfMonth - lastDayOfFirstWeek;
          weekNumber = weekNumber + Math.ceil(remainingDaysAfterFirstWeek / 7);
        }

        return weekNumber;
      }
      /***/

    },

    /***/
    "kOpN": function kOpN(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Chinese (Taiwan) [zh-tw]
      //! author : Ben : https://github.com/ben-lin
      //! author : Chris Lam : https://github.com/hehachris
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var zhTw = moment.defineLocale('zh-tw', {
          months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
          monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
          weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
          weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
          weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'YYYY/MM/DD',
            LL: 'YYYY年M月D日',
            LLL: 'YYYY年M月D日 HH:mm',
            LLLL: 'YYYY年M月D日dddd HH:mm',
            l: 'YYYY/M/D',
            ll: 'YYYY年M月D日',
            lll: 'YYYY年M月D日 HH:mm',
            llll: 'YYYY年M月D日dddd HH:mm'
          },
          meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
          meridiemHour: function meridiemHour(hour, meridiem) {
            if (hour === 12) {
              hour = 0;
            }

            if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
              return hour;
            } else if (meridiem === '中午') {
              return hour >= 11 ? hour : hour + 12;
            } else if (meridiem === '下午' || meridiem === '晚上') {
              return hour + 12;
            }
          },
          meridiem: function meridiem(hour, minute, isLower) {
            var hm = hour * 100 + minute;

            if (hm < 600) {
              return '凌晨';
            } else if (hm < 900) {
              return '早上';
            } else if (hm < 1130) {
              return '上午';
            } else if (hm < 1230) {
              return '中午';
            } else if (hm < 1800) {
              return '下午';
            } else {
              return '晚上';
            }
          },
          calendar: {
            sameDay: '[今天] LT',
            nextDay: '[明天] LT',
            nextWeek: '[下]dddd LT',
            lastDay: '[昨天] LT',
            lastWeek: '[上]dddd LT',
            sameElse: 'L'
          },
          dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
          ordinal: function ordinal(number, period) {
            switch (period) {
              case 'd':
              case 'D':
              case 'DDD':
                return number + '日';

              case 'M':
                return number + '月';

              case 'w':
              case 'W':
                return number + '週';

              default:
                return number;
            }
          },
          relativeTime: {
            future: '%s後',
            past: '%s前',
            s: '幾秒',
            ss: '%d 秒',
            m: '1 分鐘',
            mm: '%d 分鐘',
            h: '1 小時',
            hh: '%d 小時',
            d: '1 天',
            dd: '%d 天',
            M: '1 個月',
            MM: '%d 個月',
            y: '1 年',
            yy: '%d 年'
          }
        });
        return zhTw;
      });
      /***/

    },

    /***/
    "kU1M": function kU1M(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony import */


      var _internal_operators_audit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../internal/operators/audit */
      "tnsW");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "audit", function () {
        return _internal_operators_audit__WEBPACK_IMPORTED_MODULE_0__["audit"];
      });
      /* harmony import */


      var _internal_operators_auditTime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../internal/operators/auditTime */
      "3UWI");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "auditTime", function () {
        return _internal_operators_auditTime__WEBPACK_IMPORTED_MODULE_1__["auditTime"];
      });
      /* harmony import */


      var _internal_operators_buffer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../internal/operators/buffer */
      "p9/F");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "buffer", function () {
        return _internal_operators_buffer__WEBPACK_IMPORTED_MODULE_2__["buffer"];
      });
      /* harmony import */


      var _internal_operators_bufferCount__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../internal/operators/bufferCount */
      "9M8c");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "bufferCount", function () {
        return _internal_operators_bufferCount__WEBPACK_IMPORTED_MODULE_3__["bufferCount"];
      });
      /* harmony import */


      var _internal_operators_bufferTime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! ../internal/operators/bufferTime */
      "OsX3");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "bufferTime", function () {
        return _internal_operators_bufferTime__WEBPACK_IMPORTED_MODULE_4__["bufferTime"];
      });
      /* harmony import */


      var _internal_operators_bufferToggle__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! ../internal/operators/bufferToggle */
      "FD9M");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "bufferToggle", function () {
        return _internal_operators_bufferToggle__WEBPACK_IMPORTED_MODULE_5__["bufferToggle"];
      });
      /* harmony import */


      var _internal_operators_bufferWhen__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
      /*! ../internal/operators/bufferWhen */
      "PfrF");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "bufferWhen", function () {
        return _internal_operators_bufferWhen__WEBPACK_IMPORTED_MODULE_6__["bufferWhen"];
      });
      /* harmony import */


      var _internal_operators_catchError__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
      /*! ../internal/operators/catchError */
      "JIr8");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "catchError", function () {
        return _internal_operators_catchError__WEBPACK_IMPORTED_MODULE_7__["catchError"];
      });
      /* harmony import */


      var _internal_operators_combineAll__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
      /*! ../internal/operators/combineAll */
      "7wxJ");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "combineAll", function () {
        return _internal_operators_combineAll__WEBPACK_IMPORTED_MODULE_8__["combineAll"];
      });
      /* harmony import */


      var _internal_operators_combineLatest__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
      /*! ../internal/operators/combineLatest */
      "fFD9");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "combineLatest", function () {
        return _internal_operators_combineLatest__WEBPACK_IMPORTED_MODULE_9__["combineLatest"];
      });
      /* harmony import */


      var _internal_operators_concat__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(
      /*! ../internal/operators/concat */
      "f29J");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "concat", function () {
        return _internal_operators_concat__WEBPACK_IMPORTED_MODULE_10__["concat"];
      });
      /* harmony import */


      var _internal_operators_concatAll__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(
      /*! ../internal/operators/concatAll */
      "0EUg");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "concatAll", function () {
        return _internal_operators_concatAll__WEBPACK_IMPORTED_MODULE_11__["concatAll"];
      });
      /* harmony import */


      var _internal_operators_concatMap__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(
      /*! ../internal/operators/concatMap */
      "bOdf");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "concatMap", function () {
        return _internal_operators_concatMap__WEBPACK_IMPORTED_MODULE_12__["concatMap"];
      });
      /* harmony import */


      var _internal_operators_concatMapTo__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(
      /*! ../internal/operators/concatMapTo */
      "q7zd");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "concatMapTo", function () {
        return _internal_operators_concatMapTo__WEBPACK_IMPORTED_MODULE_13__["concatMapTo"];
      });
      /* harmony import */


      var _internal_operators_count__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(
      /*! ../internal/operators/count */
      "HrJb");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "count", function () {
        return _internal_operators_count__WEBPACK_IMPORTED_MODULE_14__["count"];
      });
      /* harmony import */


      var _internal_operators_debounce__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(
      /*! ../internal/operators/debounce */
      "6eBy");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "debounce", function () {
        return _internal_operators_debounce__WEBPACK_IMPORTED_MODULE_15__["debounce"];
      });
      /* harmony import */


      var _internal_operators_debounceTime__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(
      /*! ../internal/operators/debounceTime */
      "Kj3r");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "debounceTime", function () {
        return _internal_operators_debounceTime__WEBPACK_IMPORTED_MODULE_16__["debounceTime"];
      });
      /* harmony import */


      var _internal_operators_defaultIfEmpty__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(
      /*! ../internal/operators/defaultIfEmpty */
      "xbPD");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "defaultIfEmpty", function () {
        return _internal_operators_defaultIfEmpty__WEBPACK_IMPORTED_MODULE_17__["defaultIfEmpty"];
      });
      /* harmony import */


      var _internal_operators_delay__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(
      /*! ../internal/operators/delay */
      "3E0/");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "delay", function () {
        return _internal_operators_delay__WEBPACK_IMPORTED_MODULE_18__["delay"];
      });
      /* harmony import */


      var _internal_operators_delayWhen__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(
      /*! ../internal/operators/delayWhen */
      "coGc");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "delayWhen", function () {
        return _internal_operators_delayWhen__WEBPACK_IMPORTED_MODULE_19__["delayWhen"];
      });
      /* harmony import */


      var _internal_operators_dematerialize__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(
      /*! ../internal/operators/dematerialize */
      "kgNN");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "dematerialize", function () {
        return _internal_operators_dematerialize__WEBPACK_IMPORTED_MODULE_20__["dematerialize"];
      });
      /* harmony import */


      var _internal_operators_distinct__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(
      /*! ../internal/operators/distinct */
      "02Lk");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "distinct", function () {
        return _internal_operators_distinct__WEBPACK_IMPORTED_MODULE_21__["distinct"];
      });
      /* harmony import */


      var _internal_operators_distinctUntilChanged__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(
      /*! ../internal/operators/distinctUntilChanged */
      "/uUt");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "distinctUntilChanged", function () {
        return _internal_operators_distinctUntilChanged__WEBPACK_IMPORTED_MODULE_22__["distinctUntilChanged"];
      });
      /* harmony import */


      var _internal_operators_distinctUntilKeyChanged__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(
      /*! ../internal/operators/distinctUntilKeyChanged */
      "PZkE");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "distinctUntilKeyChanged", function () {
        return _internal_operators_distinctUntilKeyChanged__WEBPACK_IMPORTED_MODULE_23__["distinctUntilKeyChanged"];
      });
      /* harmony import */


      var _internal_operators_elementAt__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(
      /*! ../internal/operators/elementAt */
      "9ihq");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "elementAt", function () {
        return _internal_operators_elementAt__WEBPACK_IMPORTED_MODULE_24__["elementAt"];
      });
      /* harmony import */


      var _internal_operators_endWith__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(
      /*! ../internal/operators/endWith */
      "0Pi8");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "endWith", function () {
        return _internal_operators_endWith__WEBPACK_IMPORTED_MODULE_25__["endWith"];
      });
      /* harmony import */


      var _internal_operators_every__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(
      /*! ../internal/operators/every */
      "Gi4w");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "every", function () {
        return _internal_operators_every__WEBPACK_IMPORTED_MODULE_26__["every"];
      });
      /* harmony import */


      var _internal_operators_exhaust__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(
      /*! ../internal/operators/exhaust */
      "zt7V");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "exhaust", function () {
        return _internal_operators_exhaust__WEBPACK_IMPORTED_MODULE_27__["exhaust"];
      });
      /* harmony import */


      var _internal_operators_exhaustMap__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(
      /*! ../internal/operators/exhaustMap */
      "XqQ8");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "exhaustMap", function () {
        return _internal_operators_exhaustMap__WEBPACK_IMPORTED_MODULE_28__["exhaustMap"];
      });
      /* harmony import */


      var _internal_operators_expand__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(
      /*! ../internal/operators/expand */
      "FQpF");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "expand", function () {
        return _internal_operators_expand__WEBPACK_IMPORTED_MODULE_29__["expand"];
      });
      /* harmony import */


      var _internal_operators_filter__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(
      /*! ../internal/operators/filter */
      "pLZG");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "filter", function () {
        return _internal_operators_filter__WEBPACK_IMPORTED_MODULE_30__["filter"];
      });
      /* harmony import */


      var _internal_operators_finalize__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(
      /*! ../internal/operators/finalize */
      "nYR2");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "finalize", function () {
        return _internal_operators_finalize__WEBPACK_IMPORTED_MODULE_31__["finalize"];
      });
      /* harmony import */


      var _internal_operators_find__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(
      /*! ../internal/operators/find */
      "cBqT");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "find", function () {
        return _internal_operators_find__WEBPACK_IMPORTED_MODULE_32__["find"];
      });
      /* harmony import */


      var _internal_operators_findIndex__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(
      /*! ../internal/operators/findIndex */
      "K7De");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "findIndex", function () {
        return _internal_operators_findIndex__WEBPACK_IMPORTED_MODULE_33__["findIndex"];
      });
      /* harmony import */


      var _internal_operators_first__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(
      /*! ../internal/operators/first */
      "SxV6");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "first", function () {
        return _internal_operators_first__WEBPACK_IMPORTED_MODULE_34__["first"];
      });
      /* harmony import */


      var _internal_operators_groupBy__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(
      /*! ../internal/operators/groupBy */
      "OQgR");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "groupBy", function () {
        return _internal_operators_groupBy__WEBPACK_IMPORTED_MODULE_35__["groupBy"];
      });
      /* harmony import */


      var _internal_operators_ignoreElements__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(
      /*! ../internal/operators/ignoreElements */
      "4A3s");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "ignoreElements", function () {
        return _internal_operators_ignoreElements__WEBPACK_IMPORTED_MODULE_36__["ignoreElements"];
      });
      /* harmony import */


      var _internal_operators_isEmpty__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(
      /*! ../internal/operators/isEmpty */
      "m2j4");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "isEmpty", function () {
        return _internal_operators_isEmpty__WEBPACK_IMPORTED_MODULE_37__["isEmpty"];
      });
      /* harmony import */


      var _internal_operators_last__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(
      /*! ../internal/operators/last */
      "NJ9Y");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "last", function () {
        return _internal_operators_last__WEBPACK_IMPORTED_MODULE_38__["last"];
      });
      /* harmony import */


      var _internal_operators_map__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(
      /*! ../internal/operators/map */
      "lJxs");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "map", function () {
        return _internal_operators_map__WEBPACK_IMPORTED_MODULE_39__["map"];
      });
      /* harmony import */


      var _internal_operators_mapTo__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(
      /*! ../internal/operators/mapTo */
      "CqXF");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "mapTo", function () {
        return _internal_operators_mapTo__WEBPACK_IMPORTED_MODULE_40__["mapTo"];
      });
      /* harmony import */


      var _internal_operators_materialize__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(
      /*! ../internal/operators/materialize */
      "dkDA");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "materialize", function () {
        return _internal_operators_materialize__WEBPACK_IMPORTED_MODULE_41__["materialize"];
      });
      /* harmony import */


      var _internal_operators_max__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(
      /*! ../internal/operators/max */
      "yI9Y");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "max", function () {
        return _internal_operators_max__WEBPACK_IMPORTED_MODULE_42__["max"];
      });
      /* harmony import */


      var _internal_operators_merge__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(
      /*! ../internal/operators/merge */
      "q92s");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "merge", function () {
        return _internal_operators_merge__WEBPACK_IMPORTED_MODULE_43__["merge"];
      });
      /* harmony import */


      var _internal_operators_mergeAll__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(
      /*! ../internal/operators/mergeAll */
      "bHdf");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "mergeAll", function () {
        return _internal_operators_mergeAll__WEBPACK_IMPORTED_MODULE_44__["mergeAll"];
      });
      /* harmony import */


      var _internal_operators_mergeMap__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(
      /*! ../internal/operators/mergeMap */
      "5+tZ");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "mergeMap", function () {
        return _internal_operators_mergeMap__WEBPACK_IMPORTED_MODULE_45__["mergeMap"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "flatMap", function () {
        return _internal_operators_mergeMap__WEBPACK_IMPORTED_MODULE_45__["flatMap"];
      });
      /* harmony import */


      var _internal_operators_mergeMapTo__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(
      /*! ../internal/operators/mergeMapTo */
      "UXbc");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "mergeMapTo", function () {
        return _internal_operators_mergeMapTo__WEBPACK_IMPORTED_MODULE_46__["mergeMapTo"];
      });
      /* harmony import */


      var _internal_operators_mergeScan__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(
      /*! ../internal/operators/mergeScan */
      "51Bx");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "mergeScan", function () {
        return _internal_operators_mergeScan__WEBPACK_IMPORTED_MODULE_47__["mergeScan"];
      });
      /* harmony import */


      var _internal_operators_min__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(
      /*! ../internal/operators/min */
      "FZB8");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "min", function () {
        return _internal_operators_min__WEBPACK_IMPORTED_MODULE_48__["min"];
      });
      /* harmony import */


      var _internal_operators_multicast__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(
      /*! ../internal/operators/multicast */
      "oB13");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "multicast", function () {
        return _internal_operators_multicast__WEBPACK_IMPORTED_MODULE_49__["multicast"];
      });
      /* harmony import */


      var _internal_operators_observeOn__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(
      /*! ../internal/operators/observeOn */
      "pxpQ");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "observeOn", function () {
        return _internal_operators_observeOn__WEBPACK_IMPORTED_MODULE_50__["observeOn"];
      });
      /* harmony import */


      var _internal_operators_onErrorResumeNext__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(
      /*! ../internal/operators/onErrorResumeNext */
      "uTdr");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "onErrorResumeNext", function () {
        return _internal_operators_onErrorResumeNext__WEBPACK_IMPORTED_MODULE_51__["onErrorResumeNext"];
      });
      /* harmony import */


      var _internal_operators_pairwise__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(
      /*! ../internal/operators/pairwise */
      "Zy1z");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "pairwise", function () {
        return _internal_operators_pairwise__WEBPACK_IMPORTED_MODULE_52__["pairwise"];
      });
      /* harmony import */


      var _internal_operators_partition__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(
      /*! ../internal/operators/partition */
      "A3iJ");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "partition", function () {
        return _internal_operators_partition__WEBPACK_IMPORTED_MODULE_53__["partition"];
      });
      /* harmony import */


      var _internal_operators_pluck__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(
      /*! ../internal/operators/pluck */
      "wO+i");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "pluck", function () {
        return _internal_operators_pluck__WEBPACK_IMPORTED_MODULE_54__["pluck"];
      });
      /* harmony import */


      var _internal_operators_publish__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(
      /*! ../internal/operators/publish */
      "NfdI");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "publish", function () {
        return _internal_operators_publish__WEBPACK_IMPORTED_MODULE_55__["publish"];
      });
      /* harmony import */


      var _internal_operators_publishBehavior__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(
      /*! ../internal/operators/publishBehavior */
      "UGaM");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "publishBehavior", function () {
        return _internal_operators_publishBehavior__WEBPACK_IMPORTED_MODULE_56__["publishBehavior"];
      });
      /* harmony import */


      var _internal_operators_publishLast__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(
      /*! ../internal/operators/publishLast */
      "qZ0a");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "publishLast", function () {
        return _internal_operators_publishLast__WEBPACK_IMPORTED_MODULE_57__["publishLast"];
      });
      /* harmony import */


      var _internal_operators_publishReplay__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(
      /*! ../internal/operators/publishReplay */
      "05l1");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "publishReplay", function () {
        return _internal_operators_publishReplay__WEBPACK_IMPORTED_MODULE_58__["publishReplay"];
      });
      /* harmony import */


      var _internal_operators_race__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(
      /*! ../internal/operators/race */
      "4f8F");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "race", function () {
        return _internal_operators_race__WEBPACK_IMPORTED_MODULE_59__["race"];
      });
      /* harmony import */


      var _internal_operators_reduce__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(
      /*! ../internal/operators/reduce */
      "128B");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "reduce", function () {
        return _internal_operators_reduce__WEBPACK_IMPORTED_MODULE_60__["reduce"];
      });
      /* harmony import */


      var _internal_operators_repeat__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(
      /*! ../internal/operators/repeat */
      "/d8p");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "repeat", function () {
        return _internal_operators_repeat__WEBPACK_IMPORTED_MODULE_61__["repeat"];
      });
      /* harmony import */


      var _internal_operators_repeatWhen__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(
      /*! ../internal/operators/repeatWhen */
      "Gqsl");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "repeatWhen", function () {
        return _internal_operators_repeatWhen__WEBPACK_IMPORTED_MODULE_62__["repeatWhen"];
      });
      /* harmony import */


      var _internal_operators_retry__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(
      /*! ../internal/operators/retry */
      "un/a");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "retry", function () {
        return _internal_operators_retry__WEBPACK_IMPORTED_MODULE_63__["retry"];
      });
      /* harmony import */


      var _internal_operators_retryWhen__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(
      /*! ../internal/operators/retryWhen */
      "MtjB");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "retryWhen", function () {
        return _internal_operators_retryWhen__WEBPACK_IMPORTED_MODULE_64__["retryWhen"];
      });
      /* harmony import */


      var _internal_operators_refCount__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(
      /*! ../internal/operators/refCount */
      "x+ZX");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "refCount", function () {
        return _internal_operators_refCount__WEBPACK_IMPORTED_MODULE_65__["refCount"];
      });
      /* harmony import */


      var _internal_operators_sample__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(
      /*! ../internal/operators/sample */
      "c6ID");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "sample", function () {
        return _internal_operators_sample__WEBPACK_IMPORTED_MODULE_66__["sample"];
      });
      /* harmony import */


      var _internal_operators_sampleTime__WEBPACK_IMPORTED_MODULE_67__ = __webpack_require__(
      /*! ../internal/operators/sampleTime */
      "1Ykd");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "sampleTime", function () {
        return _internal_operators_sampleTime__WEBPACK_IMPORTED_MODULE_67__["sampleTime"];
      });
      /* harmony import */


      var _internal_operators_scan__WEBPACK_IMPORTED_MODULE_68__ = __webpack_require__(
      /*! ../internal/operators/scan */
      "Kqap");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "scan", function () {
        return _internal_operators_scan__WEBPACK_IMPORTED_MODULE_68__["scan"];
      });
      /* harmony import */


      var _internal_operators_sequenceEqual__WEBPACK_IMPORTED_MODULE_69__ = __webpack_require__(
      /*! ../internal/operators/sequenceEqual */
      "Zyez");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "sequenceEqual", function () {
        return _internal_operators_sequenceEqual__WEBPACK_IMPORTED_MODULE_69__["sequenceEqual"];
      });
      /* harmony import */


      var _internal_operators_share__WEBPACK_IMPORTED_MODULE_70__ = __webpack_require__(
      /*! ../internal/operators/share */
      "w1tV");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "share", function () {
        return _internal_operators_share__WEBPACK_IMPORTED_MODULE_70__["share"];
      });
      /* harmony import */


      var _internal_operators_shareReplay__WEBPACK_IMPORTED_MODULE_71__ = __webpack_require__(
      /*! ../internal/operators/shareReplay */
      "UXun");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "shareReplay", function () {
        return _internal_operators_shareReplay__WEBPACK_IMPORTED_MODULE_71__["shareReplay"];
      });
      /* harmony import */


      var _internal_operators_single__WEBPACK_IMPORTED_MODULE_72__ = __webpack_require__(
      /*! ../internal/operators/single */
      "cx9U");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "single", function () {
        return _internal_operators_single__WEBPACK_IMPORTED_MODULE_72__["single"];
      });
      /* harmony import */


      var _internal_operators_skip__WEBPACK_IMPORTED_MODULE_73__ = __webpack_require__(
      /*! ../internal/operators/skip */
      "zP0r");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "skip", function () {
        return _internal_operators_skip__WEBPACK_IMPORTED_MODULE_73__["skip"];
      });
      /* harmony import */


      var _internal_operators_skipLast__WEBPACK_IMPORTED_MODULE_74__ = __webpack_require__(
      /*! ../internal/operators/skipLast */
      "kagm");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "skipLast", function () {
        return _internal_operators_skipLast__WEBPACK_IMPORTED_MODULE_74__["skipLast"];
      });
      /* harmony import */


      var _internal_operators_skipUntil__WEBPACK_IMPORTED_MODULE_75__ = __webpack_require__(
      /*! ../internal/operators/skipUntil */
      "vqkR");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "skipUntil", function () {
        return _internal_operators_skipUntil__WEBPACK_IMPORTED_MODULE_75__["skipUntil"];
      });
      /* harmony import */


      var _internal_operators_skipWhile__WEBPACK_IMPORTED_MODULE_76__ = __webpack_require__(
      /*! ../internal/operators/skipWhile */
      "32Ea");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "skipWhile", function () {
        return _internal_operators_skipWhile__WEBPACK_IMPORTED_MODULE_76__["skipWhile"];
      });
      /* harmony import */


      var _internal_operators_startWith__WEBPACK_IMPORTED_MODULE_77__ = __webpack_require__(
      /*! ../internal/operators/startWith */
      "JX91");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "startWith", function () {
        return _internal_operators_startWith__WEBPACK_IMPORTED_MODULE_77__["startWith"];
      });
      /* harmony import */


      var _internal_operators_subscribeOn__WEBPACK_IMPORTED_MODULE_78__ = __webpack_require__(
      /*! ../internal/operators/subscribeOn */
      "tf+s");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "subscribeOn", function () {
        return _internal_operators_subscribeOn__WEBPACK_IMPORTED_MODULE_78__["subscribeOn"];
      });
      /* harmony import */


      var _internal_operators_switchAll__WEBPACK_IMPORTED_MODULE_79__ = __webpack_require__(
      /*! ../internal/operators/switchAll */
      "Y6wi");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "switchAll", function () {
        return _internal_operators_switchAll__WEBPACK_IMPORTED_MODULE_79__["switchAll"];
      });
      /* harmony import */


      var _internal_operators_switchMap__WEBPACK_IMPORTED_MODULE_80__ = __webpack_require__(
      /*! ../internal/operators/switchMap */
      "eIep");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "switchMap", function () {
        return _internal_operators_switchMap__WEBPACK_IMPORTED_MODULE_80__["switchMap"];
      });
      /* harmony import */


      var _internal_operators_switchMapTo__WEBPACK_IMPORTED_MODULE_81__ = __webpack_require__(
      /*! ../internal/operators/switchMapTo */
      "aGrj");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "switchMapTo", function () {
        return _internal_operators_switchMapTo__WEBPACK_IMPORTED_MODULE_81__["switchMapTo"];
      });
      /* harmony import */


      var _internal_operators_take__WEBPACK_IMPORTED_MODULE_82__ = __webpack_require__(
      /*! ../internal/operators/take */
      "IzEk");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "take", function () {
        return _internal_operators_take__WEBPACK_IMPORTED_MODULE_82__["take"];
      });
      /* harmony import */


      var _internal_operators_takeLast__WEBPACK_IMPORTED_MODULE_83__ = __webpack_require__(
      /*! ../internal/operators/takeLast */
      "BFxc");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "takeLast", function () {
        return _internal_operators_takeLast__WEBPACK_IMPORTED_MODULE_83__["takeLast"];
      });
      /* harmony import */


      var _internal_operators_takeUntil__WEBPACK_IMPORTED_MODULE_84__ = __webpack_require__(
      /*! ../internal/operators/takeUntil */
      "1G5W");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "takeUntil", function () {
        return _internal_operators_takeUntil__WEBPACK_IMPORTED_MODULE_84__["takeUntil"];
      });
      /* harmony import */


      var _internal_operators_takeWhile__WEBPACK_IMPORTED_MODULE_85__ = __webpack_require__(
      /*! ../internal/operators/takeWhile */
      "GJmQ");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "takeWhile", function () {
        return _internal_operators_takeWhile__WEBPACK_IMPORTED_MODULE_85__["takeWhile"];
      });
      /* harmony import */


      var _internal_operators_tap__WEBPACK_IMPORTED_MODULE_86__ = __webpack_require__(
      /*! ../internal/operators/tap */
      "vkgz");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "tap", function () {
        return _internal_operators_tap__WEBPACK_IMPORTED_MODULE_86__["tap"];
      });
      /* harmony import */


      var _internal_operators_throttle__WEBPACK_IMPORTED_MODULE_87__ = __webpack_require__(
      /*! ../internal/operators/throttle */
      "yuhW");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "throttle", function () {
        return _internal_operators_throttle__WEBPACK_IMPORTED_MODULE_87__["throttle"];
      });
      /* harmony import */


      var _internal_operators_throttleTime__WEBPACK_IMPORTED_MODULE_88__ = __webpack_require__(
      /*! ../internal/operators/throttleTime */
      "gcYM");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "throttleTime", function () {
        return _internal_operators_throttleTime__WEBPACK_IMPORTED_MODULE_88__["throttleTime"];
      });
      /* harmony import */


      var _internal_operators_throwIfEmpty__WEBPACK_IMPORTED_MODULE_89__ = __webpack_require__(
      /*! ../internal/operators/throwIfEmpty */
      "XDbj");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "throwIfEmpty", function () {
        return _internal_operators_throwIfEmpty__WEBPACK_IMPORTED_MODULE_89__["throwIfEmpty"];
      });
      /* harmony import */


      var _internal_operators_timeInterval__WEBPACK_IMPORTED_MODULE_90__ = __webpack_require__(
      /*! ../internal/operators/timeInterval */
      "4hIw");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "timeInterval", function () {
        return _internal_operators_timeInterval__WEBPACK_IMPORTED_MODULE_90__["timeInterval"];
      });
      /* harmony import */


      var _internal_operators_timeout__WEBPACK_IMPORTED_MODULE_91__ = __webpack_require__(
      /*! ../internal/operators/timeout */
      "tS1D");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "timeout", function () {
        return _internal_operators_timeout__WEBPACK_IMPORTED_MODULE_91__["timeout"];
      });
      /* harmony import */


      var _internal_operators_timeoutWith__WEBPACK_IMPORTED_MODULE_92__ = __webpack_require__(
      /*! ../internal/operators/timeoutWith */
      "syX2");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "timeoutWith", function () {
        return _internal_operators_timeoutWith__WEBPACK_IMPORTED_MODULE_92__["timeoutWith"];
      });
      /* harmony import */


      var _internal_operators_timestamp__WEBPACK_IMPORTED_MODULE_93__ = __webpack_require__(
      /*! ../internal/operators/timestamp */
      "r0WS");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "timestamp", function () {
        return _internal_operators_timestamp__WEBPACK_IMPORTED_MODULE_93__["timestamp"];
      });
      /* harmony import */


      var _internal_operators_toArray__WEBPACK_IMPORTED_MODULE_94__ = __webpack_require__(
      /*! ../internal/operators/toArray */
      "IAdc");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "toArray", function () {
        return _internal_operators_toArray__WEBPACK_IMPORTED_MODULE_94__["toArray"];
      });
      /* harmony import */


      var _internal_operators_window__WEBPACK_IMPORTED_MODULE_95__ = __webpack_require__(
      /*! ../internal/operators/window */
      "mk5/");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "window", function () {
        return _internal_operators_window__WEBPACK_IMPORTED_MODULE_95__["window"];
      });
      /* harmony import */


      var _internal_operators_windowCount__WEBPACK_IMPORTED_MODULE_96__ = __webpack_require__(
      /*! ../internal/operators/windowCount */
      "lpKW");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "windowCount", function () {
        return _internal_operators_windowCount__WEBPACK_IMPORTED_MODULE_96__["windowCount"];
      });
      /* harmony import */


      var _internal_operators_windowTime__WEBPACK_IMPORTED_MODULE_97__ = __webpack_require__(
      /*! ../internal/operators/windowTime */
      "UHp3");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "windowTime", function () {
        return _internal_operators_windowTime__WEBPACK_IMPORTED_MODULE_97__["windowTime"];
      });
      /* harmony import */


      var _internal_operators_windowToggle__WEBPACK_IMPORTED_MODULE_98__ = __webpack_require__(
      /*! ../internal/operators/windowToggle */
      "sTY7");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "windowToggle", function () {
        return _internal_operators_windowToggle__WEBPACK_IMPORTED_MODULE_98__["windowToggle"];
      });
      /* harmony import */


      var _internal_operators_windowWhen__WEBPACK_IMPORTED_MODULE_99__ = __webpack_require__(
      /*! ../internal/operators/windowWhen */
      "pXlZ");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "windowWhen", function () {
        return _internal_operators_windowWhen__WEBPACK_IMPORTED_MODULE_99__["windowWhen"];
      });
      /* harmony import */


      var _internal_operators_withLatestFrom__WEBPACK_IMPORTED_MODULE_100__ = __webpack_require__(
      /*! ../internal/operators/withLatestFrom */
      "zp1y");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "withLatestFrom", function () {
        return _internal_operators_withLatestFrom__WEBPACK_IMPORTED_MODULE_100__["withLatestFrom"];
      });
      /* harmony import */


      var _internal_operators_zip__WEBPACK_IMPORTED_MODULE_101__ = __webpack_require__(
      /*! ../internal/operators/zip */
      "GjHo");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "zip", function () {
        return _internal_operators_zip__WEBPACK_IMPORTED_MODULE_101__["zip"];
      });
      /* harmony import */


      var _internal_operators_zipAll__WEBPACK_IMPORTED_MODULE_102__ = __webpack_require__(
      /*! ../internal/operators/zipAll */
      "JmF6");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "zipAll", function () {
        return _internal_operators_zipAll__WEBPACK_IMPORTED_MODULE_102__["zipAll"];
      }); //# sourceMappingURL=index.js.map

      /***/

    },

    /***/
    "kagm": function kagm(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "skipLast", function () {
        return skipLast;
      });
      /* harmony import */


      var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Subscriber */
      "7o/Q");
      /* harmony import */


      var _util_ArgumentOutOfRangeError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../util/ArgumentOutOfRangeError */
      "4I5i");

      function skipLast(count) {
        return function (source) {
          return source.lift(new SkipLastOperator(count));
        };
      }

      var SkipLastOperator = /*#__PURE__*/function () {
        function SkipLastOperator(_skipCount) {
          _classCallCheck2(this, SkipLastOperator);

          this._skipCount = _skipCount;

          if (this._skipCount < 0) {
            throw new _util_ArgumentOutOfRangeError__WEBPACK_IMPORTED_MODULE_1__["ArgumentOutOfRangeError"]();
          }
        }

        _createClass2(SkipLastOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            if (this._skipCount === 0) {
              return source.subscribe(new _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"](subscriber));
            } else {
              return source.subscribe(new SkipLastSubscriber(subscriber, this._skipCount));
            }
          }
        }]);

        return SkipLastOperator;
      }();

      var SkipLastSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_34) {
        _inherits2(SkipLastSubscriber, _Subscriber__WEBPACK_34);

        var _super400 = _createSuper2(SkipLastSubscriber);

        function SkipLastSubscriber(destination, _skipCount) {
          var _this840;

          _classCallCheck2(this, SkipLastSubscriber);

          _this840 = _super400.call(this, destination);
          _this840._skipCount = _skipCount;
          _this840._count = 0;
          _this840._ring = new Array(_skipCount);
          return _this840;
        }

        _createClass2(SkipLastSubscriber, [{
          key: "_next",
          value: function _next(value) {
            var skipCount = this._skipCount;
            var count = this._count++;

            if (count < skipCount) {
              this._ring[count] = value;
            } else {
              var currentIndex = count % skipCount;
              var ring = this._ring;
              var oldValue = ring[currentIndex];
              ring[currentIndex] = value;
              this.destination.next(oldValue);
            }
          }
        }]);

        return SkipLastSubscriber;
      }(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]); //# sourceMappingURL=skipLast.js.map

      /***/

    },

    /***/
    "kgNN": function kgNN(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "dematerialize", function () {
        return dematerialize;
      });
      /* harmony import */


      var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Subscriber */
      "7o/Q");

      function dematerialize() {
        return function dematerializeOperatorFunction(source) {
          return source.lift(new DeMaterializeOperator());
        };
      }

      var DeMaterializeOperator = /*#__PURE__*/function () {
        function DeMaterializeOperator() {
          _classCallCheck2(this, DeMaterializeOperator);
        }

        _createClass2(DeMaterializeOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            return source.subscribe(new DeMaterializeSubscriber(subscriber));
          }
        }]);

        return DeMaterializeOperator;
      }();

      var DeMaterializeSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_35) {
        _inherits2(DeMaterializeSubscriber, _Subscriber__WEBPACK_35);

        var _super401 = _createSuper2(DeMaterializeSubscriber);

        function DeMaterializeSubscriber(destination) {
          _classCallCheck2(this, DeMaterializeSubscriber);

          return _super401.call(this, destination);
        }

        _createClass2(DeMaterializeSubscriber, [{
          key: "_next",
          value: function _next(value) {
            value.observe(this.destination);
          }
        }]);

        return DeMaterializeSubscriber;
      }(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]); //# sourceMappingURL=dematerialize.js.map

      /***/

    },

    /***/
    "knTs": function knTs(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return eachWeekOfInterval;
      });
      /* harmony import */


      var _addWeeks_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../addWeeks/index.js */
      "r4sE");
      /* harmony import */


      var _startOfWeek_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../startOfWeek/index.js */
      "aetl");
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @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
       * // ]
       */


      function eachWeekOfInterval(dirtyInterval, options) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(1, arguments);
        var interval = dirtyInterval || {};
        var startDate = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(interval.start);
        var endDate = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_2__["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 startDateWeek = Object(_startOfWeek_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(startDate, options);
        var endDateWeek = Object(_startOfWeek_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(endDate, options); // Some timezones switch DST at midnight, making start of day unreliable in these timezones, 3pm is a safe bet

        startDateWeek.setHours(15);
        endDateWeek.setHours(15);
        endTime = endDateWeek.getTime();
        var weeks = [];
        var currentWeek = startDateWeek;

        while (currentWeek.getTime() <= endTime) {
          currentWeek.setHours(0);
          weeks.push(Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(currentWeek));
          currentWeek = Object(_addWeeks_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(currentWeek, 1);
          currentWeek.setHours(15);
        }

        return weeks;
      }
      /***/

    },

    /***/
    "ksg9": function ksg9(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return setDay;
      });
      /* harmony import */


      var _addDays_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../addDays/index.js */
      "9/EM");
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../_lib/toInteger/index.js */
      "/h9T");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name setDay
       * @category Weekday Helpers
       * @summary Set the day of the week to the given date.
       *
       * @description
       * Set the day of the week to the given date.
       *
       * ### 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 {Date|Number} date - the date to be changed
       * @param {Number} day - the day of the week of the new date
       * @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 new date with the day of the week set
       * @throws {TypeError} 2 arguments required
       * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6
       *
       * @example
       * // Set week day to Sunday, with the default weekStartsOn of Sunday:
       * var result = setDay(new Date(2014, 8, 1), 0)
       * //=> Sun Aug 31 2014 00:00:00
       *
       * @example
       * // Set week day to Sunday, with a weekStartsOn of Monday:
       * var result = setDay(new Date(2014, 8, 1), 0, { weekStartsOn: 1 })
       * //=> Sun Sep 07 2014 00:00:00
       */


      function setDay(dirtyDate, dirtyDay, dirtyOptions) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(2, arguments);
        var options = dirtyOptions || {};
        var locale = options.locale;
        var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn;
        var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(localeWeekStartsOn);
        var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN

        if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
          throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
        }

        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate, options);
        var day = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(dirtyDay);
        var currentDay = date.getDay();
        var remainder = day % 7;
        var dayIndex = (remainder + 7) % 7;
        var delta = 7 - weekStartsOn;
        var diff = day < 0 || day > 6 ? day - (currentDay + delta) % 7 : (dayIndex + delta) % 7 - (currentDay + delta) % 7;
        return Object(_addDays_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(date, diff, options);
      }
      /***/

    },

    /***/
    "ku8+": function ku8(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return buildLocalizeFn;
      });

      function buildLocalizeFn(args) {
        return function (dirtyIndex, dirtyOptions) {
          var options = dirtyOptions || {};
          var context = options.context ? String(options.context) : 'standalone';
          var valuesArray;

          if (context === 'formatting' && args.formattingValues) {
            var defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
            var width = options.width ? String(options.width) : defaultWidth;
            valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];
          } else {
            var _defaultWidth = args.defaultWidth;

            var _width = options.width ? String(options.width) : args.defaultWidth;

            valuesArray = args.values[_width] || args.values[_defaultWidth];
          }

          var index = args.argumentCallback ? args.argumentCallback(dirtyIndex) : dirtyIndex;
          return valuesArray[index];
        };
      }
      /***/

    },

    /***/
    "l0rg": function l0rg(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatToolbar", function () {
        return MatToolbar;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatToolbarModule", function () {
        return MatToolbarModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatToolbarRow", function () {
        return MatToolbarRow;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "throwToolbarMixedModesError", function () {
        return throwToolbarMixedModesError;
      });
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /* harmony import */


      var _angular_material_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/material/core */
      "UhP/");
      /* harmony import */


      var _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! @angular/cdk/platform */
      "SCoL");
      /* harmony import */


      var _angular_common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! @angular/common */
      "SVse");
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */
      // Boilerplate for applying mixins to MatToolbar.

      /** @docs-private */


      var _c0 = ["*", [["mat-toolbar-row"]]];
      var _c1 = ["*", "mat-toolbar-row"];

      var MatToolbarBase = function MatToolbarBase(_elementRef) {
        _classCallCheck2(this, MatToolbarBase);

        this._elementRef = _elementRef;
      };

      var _MatToolbarMixinBase = Object(_angular_material_core__WEBPACK_IMPORTED_MODULE_1__["mixinColor"])(MatToolbarBase);

      var MatToolbarRow = function MatToolbarRow() {
        _classCallCheck2(this, MatToolbarRow);
      };

      MatToolbarRow.ɵfac = function MatToolbarRow_Factory(t) {
        return new (t || MatToolbarRow)();
      };

      MatToolbarRow.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: MatToolbarRow,
        selectors: [["mat-toolbar-row"]],
        hostAttrs: [1, "mat-toolbar-row"],
        exportAs: ["matToolbarRow"]
      });
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatToolbarRow, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
          args: [{
            selector: 'mat-toolbar-row',
            exportAs: 'matToolbarRow',
            host: {
              'class': 'mat-toolbar-row'
            }
          }]
        }], null, null);
      })();

      var MatToolbar = /*#__PURE__*/function (_MatToolbarMixinBase2) {
        _inherits2(MatToolbar, _MatToolbarMixinBase2);

        var _super402 = _createSuper2(MatToolbar);

        function MatToolbar(elementRef, _platform, document) {
          var _this841;

          _classCallCheck2(this, MatToolbar);

          _this841 = _super402.call(this, elementRef);
          _this841._platform = _platform; // TODO: make the document a required param when doing breaking changes.

          _this841._document = document;
          return _this841;
        }

        _createClass2(MatToolbar, [{
          key: "ngAfterViewInit",
          value: function ngAfterViewInit() {
            var _this842 = this;

            if (this._platform.isBrowser) {
              this._checkToolbarMixedModes();

              this._toolbarRows.changes.subscribe(function () {
                return _this842._checkToolbarMixedModes();
              });
            }
          }
          /**
           * Throws an exception when developers are attempting to combine the different toolbar row modes.
           */

        }, {
          key: "_checkToolbarMixedModes",
          value: function _checkToolbarMixedModes() {
            var _this843 = this;

            if (this._toolbarRows.length && (typeof ngDevMode === 'undefined' || ngDevMode)) {
              // Check if there are any other DOM nodes that can display content but aren't inside of
              // a <mat-toolbar-row> element.
              var isCombinedUsage = Array.from(this._elementRef.nativeElement.childNodes).filter(function (node) {
                return !(node.classList && node.classList.contains('mat-toolbar-row'));
              }).filter(function (node) {
                return node.nodeType !== (_this843._document ? _this843._document.COMMENT_NODE : 8);
              }).some(function (node) {
                return !!(node.textContent && node.textContent.trim());
              });

              if (isCombinedUsage) {
                throwToolbarMixedModesError();
              }
            }
          }
        }]);

        return MatToolbar;
      }(_MatToolbarMixinBase);

      MatToolbar.ɵfac = function MatToolbar_Factory(t) {
        return new (t || MatToolbar)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__["Platform"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_common__WEBPACK_IMPORTED_MODULE_3__["DOCUMENT"]));
      };

      MatToolbar.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
        type: MatToolbar,
        selectors: [["mat-toolbar"]],
        contentQueries: function MatToolbar_ContentQueries(rf, ctx, dirIndex) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵcontentQuery"](dirIndex, MatToolbarRow, true);
          }

          if (rf & 2) {
            var _t;

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx._toolbarRows = _t);
          }
        },
        hostAttrs: [1, "mat-toolbar"],
        hostVars: 4,
        hostBindings: function MatToolbar_HostBindings(rf, ctx) {
          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("mat-toolbar-multiple-rows", ctx._toolbarRows.length > 0)("mat-toolbar-single-row", ctx._toolbarRows.length === 0);
          }
        },
        inputs: {
          color: "color"
        },
        exportAs: ["matToolbar"],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]],
        ngContentSelectors: _c1,
        decls: 2,
        vars: 0,
        template: function MatToolbar_Template(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojectionDef"](_c0);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojection"](0);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojection"](1, 1);
          }
        },
        styles: [".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],
        encapsulation: 2,
        changeDetection: 0
      });

      MatToolbar.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
        }, {
          type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__["Platform"]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [_angular_common__WEBPACK_IMPORTED_MODULE_3__["DOCUMENT"]]
          }]
        }];
      };

      MatToolbar.propDecorators = {
        _toolbarRows: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChildren"],
          args: [MatToolbarRow, {
            descendants: true
          }]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatToolbar, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
          args: [{
            selector: 'mat-toolbar',
            exportAs: 'matToolbar',
            template: "<ng-content></ng-content>\n<ng-content select=\"mat-toolbar-row\"></ng-content>\n",
            inputs: ['color'],
            host: {
              'class': 'mat-toolbar',
              '[class.mat-toolbar-multiple-rows]': '_toolbarRows.length > 0',
              '[class.mat-toolbar-single-row]': '_toolbarRows.length === 0'
            },
            changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"]
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
          }, {
            type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_2__["Platform"]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [_angular_common__WEBPACK_IMPORTED_MODULE_3__["DOCUMENT"]]
            }]
          }];
        }, {
          _toolbarRows: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChildren"],
            args: [MatToolbarRow, {
              descendants: true
            }]
          }]
        });
      })();
      /**
       * Throws an exception when attempting to combine the different toolbar row modes.
       * @docs-private
       */


      function throwToolbarMixedModesError() {
        throw Error('MatToolbar: Attempting to combine different toolbar modes. ' + 'Either specify multiple `<mat-toolbar-row>` elements explicitly or just place content ' + 'inside of a `<mat-toolbar>` for a single row.');
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var MatToolbarModule = function MatToolbarModule() {
        _classCallCheck2(this, MatToolbarModule);
      };

      MatToolbarModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
        type: MatToolbarModule
      });
      MatToolbarModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
        factory: function MatToolbarModule_Factory(t) {
          return new (t || MatToolbarModule)();
        },
        imports: [[_angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatCommonModule"]], _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatCommonModule"]]
      });

      (function () {
        (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](MatToolbarModule, {
          declarations: function declarations() {
            return [MatToolbar, MatToolbarRow];
          },
          imports: function imports() {
            return [_angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatCommonModule"]];
          },
          exports: function exports() {
            return [MatToolbar, MatToolbarRow, _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatCommonModule"]];
          }
        });
      })();
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatToolbarModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
          args: [{
            imports: [_angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatCommonModule"]],
            exports: [MatToolbar, MatToolbarRow, _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatCommonModule"]],
            declarations: [MatToolbar, MatToolbarRow]
          }]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Generated bundle index. Do not edit.
       */
      //# sourceMappingURL=toolbar.js.map

      /***/

    },

    /***/
    "l5ep": function l5ep(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Welsh [cy]
      //! author : Robert Allen : https://github.com/robgallen
      //! author : https://github.com/ryangreaves
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var cy = moment.defineLocale('cy', {
          months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split('_'),
          monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split('_'),
          weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split('_'),
          weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'),
          weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'),
          weekdaysParseExact: true,
          // time formats are the same as en-gb
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd, D MMMM YYYY HH:mm'
          },
          calendar: {
            sameDay: '[Heddiw am] LT',
            nextDay: '[Yfory am] LT',
            nextWeek: 'dddd [am] LT',
            lastDay: '[Ddoe am] LT',
            lastWeek: 'dddd [diwethaf am] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'mewn %s',
            past: '%s yn ôl',
            s: 'ychydig eiliadau',
            ss: '%d eiliad',
            m: 'munud',
            mm: '%d munud',
            h: 'awr',
            hh: '%d awr',
            d: 'diwrnod',
            dd: '%d diwrnod',
            M: 'mis',
            MM: '%d mis',
            y: 'blwyddyn',
            yy: '%d flynedd'
          },
          dayOfMonthOrdinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,
          // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh
          ordinal: function ordinal(number) {
            var b = number,
                output = '',
                lookup = ['', 'af', 'il', 'ydd', 'ydd', 'ed', 'ed', 'ed', 'fed', 'fed', 'fed', // 1af to 10fed
            'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'fed' // 11eg to 20fed
            ];

            if (b > 20) {
              if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) {
                output = 'fed'; // not 30ain, 70ain or 90ain
              } else {
                output = 'ain';
              }
            } else if (b > 0) {
              output = lookup[b];
            }

            return number + output;
          },
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return cy;
      });
      /***/

    },

    /***/
    "l5mm": function l5mm(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "interval", function () {
        return interval;
      });
      /* harmony import */


      var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Observable */
      "HDdC");
      /* harmony import */


      var _scheduler_async__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../scheduler/async */
      "D0XW");
      /* harmony import */


      var _util_isNumeric__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../util/isNumeric */
      "Y7HM");

      function interval() {
        var period = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
        var scheduler = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _scheduler_async__WEBPACK_IMPORTED_MODULE_1__["async"];

        if (!Object(_util_isNumeric__WEBPACK_IMPORTED_MODULE_2__["isNumeric"])(period) || period < 0) {
          period = 0;
        }

        if (!scheduler || typeof scheduler.schedule !== 'function') {
          scheduler = _scheduler_async__WEBPACK_IMPORTED_MODULE_1__["async"];
        }

        return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](function (subscriber) {
          subscriber.add(scheduler.schedule(dispatch, period, {
            subscriber: subscriber,
            counter: 0,
            period: period
          }));
          return subscriber;
        });
      }

      function dispatch(state) {
        var subscriber = state.subscriber,
            counter = state.counter,
            period = state.period;
        subscriber.next(counter);
        this.schedule({
          subscriber: subscriber,
          counter: counter + 1,
          period: period
        }, period);
      } //# sourceMappingURL=interval.js.map

      /***/

    },

    /***/
    "l7GE": function l7GE(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "OuterSubscriber", function () {
        return OuterSubscriber;
      });
      /* harmony import */


      var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ./Subscriber */
      "7o/Q");

      var OuterSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_36) {
        _inherits2(OuterSubscriber, _Subscriber__WEBPACK_36);

        var _super403 = _createSuper2(OuterSubscriber);

        function OuterSubscriber() {
          _classCallCheck2(this, OuterSubscriber);

          return _super403.apply(this, arguments);
        }

        _createClass2(OuterSubscriber, [{
          key: "notifyNext",
          value: function notifyNext(outerValue, innerValue, outerIndex, innerIndex, innerSub) {
            this.destination.next(innerValue);
          }
        }, {
          key: "notifyError",
          value: function notifyError(error, innerSub) {
            this.destination.error(error);
          }
        }, {
          key: "notifyComplete",
          value: function notifyComplete(innerSub) {
            this.destination.complete();
          }
        }]);

        return OuterSubscriber;
      }(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]); //# sourceMappingURL=OuterSubscriber.js.map

      /***/

    },

    /***/
    "lJxs": function lJxs(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "map", function () {
        return map;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MapOperator", function () {
        return MapOperator;
      });
      /* harmony import */


      var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Subscriber */
      "7o/Q");

      function map(project, thisArg) {
        return function mapOperation(source) {
          if (typeof project !== 'function') {
            throw new TypeError('argument is not a function. Are you looking for `mapTo()`?');
          }

          return source.lift(new MapOperator(project, thisArg));
        };
      }

      var MapOperator = /*#__PURE__*/function () {
        function MapOperator(project, thisArg) {
          _classCallCheck2(this, MapOperator);

          this.project = project;
          this.thisArg = thisArg;
        }

        _createClass2(MapOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            return source.subscribe(new MapSubscriber(subscriber, this.project, this.thisArg));
          }
        }]);

        return MapOperator;
      }();

      var MapSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_37) {
        _inherits2(MapSubscriber, _Subscriber__WEBPACK_37);

        var _super404 = _createSuper2(MapSubscriber);

        function MapSubscriber(destination, project, thisArg) {
          var _this844;

          _classCallCheck2(this, MapSubscriber);

          _this844 = _super404.call(this, destination);
          _this844.project = project;
          _this844.count = 0;
          _this844.thisArg = thisArg || _assertThisInitialized2(_this844);
          return _this844;
        }

        _createClass2(MapSubscriber, [{
          key: "_next",
          value: function _next(value) {
            var result;

            try {
              result = this.project.call(this.thisArg, value, this.count++);
            } catch (err) {
              this.destination.error(err);
              return;
            }

            this.destination.next(result);
          }
        }]);

        return MapSubscriber;
      }(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]); //# sourceMappingURL=map.js.map

      /***/

    },

    /***/
    "lPiR": function lPiR(module, exports, __webpack_require__) {
      ;

      (function (root, factory) {
        if (true) {
          // CommonJS
          module.exports = exports = factory(__webpack_require__(
          /*! ./core */
          "Ib8C"));
        } else {}
      })(this, function (CryptoJS) {
        (function (Math) {
          // Shortcuts
          var C = CryptoJS;
          var C_lib = C.lib;
          var WordArray = C_lib.WordArray;
          var Hasher = C_lib.Hasher;
          var C_algo = C.algo; // Initialization and round constants tables

          var H = [];
          var K = []; // Compute constants

          (function () {
            function isPrime(n) {
              var sqrtN = Math.sqrt(n);

              for (var factor = 2; factor <= sqrtN; factor++) {
                if (!(n % factor)) {
                  return false;
                }
              }

              return true;
            }

            function getFractionalBits(n) {
              return (n - (n | 0)) * 0x100000000 | 0;
            }

            var n = 2;
            var nPrime = 0;

            while (nPrime < 64) {
              if (isPrime(n)) {
                if (nPrime < 8) {
                  H[nPrime] = getFractionalBits(Math.pow(n, 1 / 2));
                }

                K[nPrime] = getFractionalBits(Math.pow(n, 1 / 3));
                nPrime++;
              }

              n++;
            }
          })(); // Reusable object


          var W = [];
          /**
           * SHA-256 hash algorithm.
           */

          var SHA256 = C_algo.SHA256 = Hasher.extend({
            _doReset: function _doReset() {
              this._hash = new WordArray.init(H.slice(0));
            },
            _doProcessBlock: function _doProcessBlock(M, offset) {
              // Shortcut
              var H = this._hash.words; // Working variables

              var a = H[0];
              var b = H[1];
              var c = H[2];
              var d = H[3];
              var e = H[4];
              var f = H[5];
              var g = H[6];
              var h = H[7]; // Computation

              for (var i = 0; i < 64; i++) {
                if (i < 16) {
                  W[i] = M[offset + i] | 0;
                } else {
                  var gamma0x = W[i - 15];
                  var gamma0 = (gamma0x << 25 | gamma0x >>> 7) ^ (gamma0x << 14 | gamma0x >>> 18) ^ gamma0x >>> 3;
                  var gamma1x = W[i - 2];
                  var gamma1 = (gamma1x << 15 | gamma1x >>> 17) ^ (gamma1x << 13 | gamma1x >>> 19) ^ gamma1x >>> 10;
                  W[i] = gamma0 + W[i - 7] + gamma1 + W[i - 16];
                }

                var ch = e & f ^ ~e & g;
                var maj = a & b ^ a & c ^ b & c;
                var sigma0 = (a << 30 | a >>> 2) ^ (a << 19 | a >>> 13) ^ (a << 10 | a >>> 22);
                var sigma1 = (e << 26 | e >>> 6) ^ (e << 21 | e >>> 11) ^ (e << 7 | e >>> 25);
                var t1 = h + sigma1 + ch + K[i] + W[i];
                var t2 = sigma0 + maj;
                h = g;
                g = f;
                f = e;
                e = d + t1 | 0;
                d = c;
                c = b;
                b = a;
                a = t1 + t2 | 0;
              } // Intermediate hash value


              H[0] = H[0] + a | 0;
              H[1] = H[1] + b | 0;
              H[2] = H[2] + c | 0;
              H[3] = H[3] + d | 0;
              H[4] = H[4] + e | 0;
              H[5] = H[5] + f | 0;
              H[6] = H[6] + g | 0;
              H[7] = H[7] + h | 0;
            },
            _doFinalize: function _doFinalize() {
              // Shortcuts
              var data = this._data;
              var dataWords = data.words;
              var nBitsTotal = this._nDataBytes * 8;
              var nBitsLeft = data.sigBytes * 8; // Add padding

              dataWords[nBitsLeft >>> 5] |= 0x80 << 24 - nBitsLeft % 32;
              dataWords[(nBitsLeft + 64 >>> 9 << 4) + 14] = Math.floor(nBitsTotal / 0x100000000);
              dataWords[(nBitsLeft + 64 >>> 9 << 4) + 15] = nBitsTotal;
              data.sigBytes = dataWords.length * 4; // Hash final blocks

              this._process(); // Return final computed hash


              return this._hash;
            },
            clone: function clone() {
              var clone = Hasher.clone.call(this);
              clone._hash = this._hash.clone();
              return clone;
            }
          });
          /**
           * Shortcut function to the hasher's object interface.
           *
           * @param {WordArray|string} message The message to hash.
           *
           * @return {WordArray} The hash.
           *
           * @static
           *
           * @example
           *
           *     var hash = CryptoJS.SHA256('message');
           *     var hash = CryptoJS.SHA256(wordArray);
           */

          C.SHA256 = Hasher._createHelper(SHA256);
          /**
           * Shortcut function to the HMAC's object interface.
           *
           * @param {WordArray|string} message The message to hash.
           * @param {WordArray|string} key The secret key.
           *
           * @return {WordArray} The HMAC.
           *
           * @static
           *
           * @example
           *
           *     var hmac = CryptoJS.HmacSHA256(message, key);
           */

          C.HmacSHA256 = Hasher._createHmacHelper(SHA256);
        })(Math);

        return CryptoJS.SHA256;
      });
      /***/

    },

    /***/
    "lXzo": function lXzo(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Russian [ru]
      //! author : Viktorminator : https://github.com/Viktorminator
      //! author : Menelion Elensúle : https://github.com/Oire
      //! author : Коренберг Марк : https://github.com/socketpair
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        function plural(word, num) {
          var forms = word.split('_');
          return num % 10 === 1 && num % 100 !== 11 ? forms[0] : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2];
        }

        function relativeTimeWithPlural(number, withoutSuffix, key) {
          var format = {
            ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',
            mm: withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут',
            hh: 'час_часа_часов',
            dd: 'день_дня_дней',
            ww: 'неделя_недели_недель',
            MM: 'месяц_месяца_месяцев',
            yy: 'год_года_лет'
          };

          if (key === 'm') {
            return withoutSuffix ? 'минута' : 'минуту';
          } else {
            return number + ' ' + plural(format[key], +number);
          }
        }

        var monthsParse = [/^янв/i, /^фев/i, /^мар/i, /^апр/i, /^ма[йя]/i, /^июн/i, /^июл/i, /^авг/i, /^сен/i, /^окт/i, /^ноя/i, /^дек/i]; // http://new.gramota.ru/spravka/rules/139-prop : § 103
        // Сокращения месяцев: http://new.gramota.ru/spravka/buro/search-answer?s=242637
        // CLDR data:          http://www.unicode.org/cldr/charts/28/summary/ru.html#1753

        var ru = moment.defineLocale('ru', {
          months: {
            format: 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split('_'),
            standalone: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_')
          },
          monthsShort: {
            // по CLDR именно "июл." и "июн.", но какой смысл менять букву на точку?
            format: 'янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.'.split('_'),
            standalone: 'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split('_')
          },
          weekdays: {
            standalone: 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split('_'),
            format: 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split('_'),
            isFormat: /\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/
          },
          weekdaysShort: 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
          weekdaysMin: 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
          monthsParse: monthsParse,
          longMonthsParse: monthsParse,
          shortMonthsParse: monthsParse,
          // полные названия с падежами, по три буквы, для некоторых, по 4 буквы, сокращения с точкой и без точки
          monthsRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
          // копия предыдущего
          monthsShortRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
          // полные названия с падежами
          monthsStrictRegex: /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,
          // Выражение, которое соответствует только сокращённым формам
          monthsShortStrictRegex: /^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,
          longDateFormat: {
            LT: 'H:mm',
            LTS: 'H:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'D MMMM YYYY г.',
            LLL: 'D MMMM YYYY г., H:mm',
            LLLL: 'dddd, D MMMM YYYY г., H:mm'
          },
          calendar: {
            sameDay: '[Сегодня, в] LT',
            nextDay: '[Завтра, в] LT',
            lastDay: '[Вчера, в] LT',
            nextWeek: function nextWeek(now) {
              if (now.week() !== this.week()) {
                switch (this.day()) {
                  case 0:
                    return '[В следующее] dddd, [в] LT';

                  case 1:
                  case 2:
                  case 4:
                    return '[В следующий] dddd, [в] LT';

                  case 3:
                  case 5:
                  case 6:
                    return '[В следующую] dddd, [в] LT';
                }
              } else {
                if (this.day() === 2) {
                  return '[Во] dddd, [в] LT';
                } else {
                  return '[В] dddd, [в] LT';
                }
              }
            },
            lastWeek: function lastWeek(now) {
              if (now.week() !== this.week()) {
                switch (this.day()) {
                  case 0:
                    return '[В прошлое] dddd, [в] LT';

                  case 1:
                  case 2:
                  case 4:
                    return '[В прошлый] dddd, [в] LT';

                  case 3:
                  case 5:
                  case 6:
                    return '[В прошлую] dddd, [в] LT';
                }
              } else {
                if (this.day() === 2) {
                  return '[Во] dddd, [в] LT';
                } else {
                  return '[В] dddd, [в] LT';
                }
              }
            },
            sameElse: 'L'
          },
          relativeTime: {
            future: 'через %s',
            past: '%s назад',
            s: 'несколько секунд',
            ss: relativeTimeWithPlural,
            m: relativeTimeWithPlural,
            mm: relativeTimeWithPlural,
            h: 'час',
            hh: relativeTimeWithPlural,
            d: 'день',
            dd: relativeTimeWithPlural,
            w: 'неделя',
            ww: relativeTimeWithPlural,
            M: 'месяц',
            MM: relativeTimeWithPlural,
            y: 'год',
            yy: relativeTimeWithPlural
          },
          meridiemParse: /ночи|утра|дня|вечера/i,
          isPM: function isPM(input) {
            return /^(дня|вечера)$/.test(input);
          },
          meridiem: function meridiem(hour, minute, isLower) {
            if (hour < 4) {
              return 'ночи';
            } else if (hour < 12) {
              return 'утра';
            } else if (hour < 17) {
              return 'дня';
            } else {
              return 'вечера';
            }
          },
          dayOfMonthOrdinalParse: /\d{1,2}-(й|го|я)/,
          ordinal: function ordinal(number, period) {
            switch (period) {
              case 'M':
              case 'd':
              case 'DDD':
                return number + '-й';

              case 'D':
                return number + '-го';

              case 'w':
              case 'W':
                return number + '-я';

              default:
                return number;
            }
          },
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return ru;
      });
      /***/

    },

    /***/
    "lYtQ": function lYtQ(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Mongolian [mn]
      //! author : Javkhlantugs Nyamdorj : https://github.com/javkhaanj7
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        function translate(number, withoutSuffix, key, isFuture) {
          switch (key) {
            case 's':
              return withoutSuffix ? 'хэдхэн секунд' : 'хэдхэн секундын';

            case 'ss':
              return number + (withoutSuffix ? ' секунд' : ' секундын');

            case 'm':
            case 'mm':
              return number + (withoutSuffix ? ' минут' : ' минутын');

            case 'h':
            case 'hh':
              return number + (withoutSuffix ? ' цаг' : ' цагийн');

            case 'd':
            case 'dd':
              return number + (withoutSuffix ? ' өдөр' : ' өдрийн');

            case 'M':
            case 'MM':
              return number + (withoutSuffix ? ' сар' : ' сарын');

            case 'y':
            case 'yy':
              return number + (withoutSuffix ? ' жил' : ' жилийн');

            default:
              return number;
          }
        }

        var mn = moment.defineLocale('mn', {
          months: 'Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар'.split('_'),
          monthsShort: '1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар'.split('_'),
          monthsParseExact: true,
          weekdays: 'Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба'.split('_'),
          weekdaysShort: 'Ням_Дав_Мяг_Лха_Пүр_Баа_Бям'.split('_'),
          weekdaysMin: 'Ня_Да_Мя_Лх_Пү_Ба_Бя'.split('_'),
          weekdaysParseExact: true,
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'YYYY-MM-DD',
            LL: 'YYYY оны MMMMын D',
            LLL: 'YYYY оны MMMMын D HH:mm',
            LLLL: 'dddd, YYYY оны MMMMын D HH:mm'
          },
          meridiemParse: /ҮӨ|ҮХ/i,
          isPM: function isPM(input) {
            return input === 'ҮХ';
          },
          meridiem: function meridiem(hour, minute, isLower) {
            if (hour < 12) {
              return 'ҮӨ';
            } else {
              return 'ҮХ';
            }
          },
          calendar: {
            sameDay: '[Өнөөдөр] LT',
            nextDay: '[Маргааш] LT',
            nextWeek: '[Ирэх] dddd LT',
            lastDay: '[Өчигдөр] LT',
            lastWeek: '[Өнгөрсөн] dddd LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: '%s дараа',
            past: '%s өмнө',
            s: translate,
            ss: translate,
            m: translate,
            mm: translate,
            h: translate,
            hh: translate,
            d: translate,
            dd: translate,
            M: translate,
            MM: translate,
            y: translate,
            yy: translate
          },
          dayOfMonthOrdinalParse: /\d{1,2} өдөр/,
          ordinal: function ordinal(number, period) {
            switch (period) {
              case 'd':
              case 'D':
              case 'DDD':
                return number + ' өдөр';

              default:
                return number;
            }
          }
        });
        return mn;
      });
      /***/

    },

    /***/
    "lgZR": function lgZR(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return getUTCISOWeek;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _startOfUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../startOfUTCISOWeek/index.js */
      "tpup");
      /* harmony import */


      var _startOfUTCISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../startOfUTCISOWeekYear/index.js */
      "R8/v");
      /* harmony import */


      var _requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../requiredArgs/index.js */
      "jIYg");

      var MILLISECONDS_IN_WEEK = 604800000; // This function will be a part of public API when UTC function will be implemented.
      // See issue: https://github.com/date-fns/date-fns/issues/376

      function getUTCISOWeek(dirtyDate) {
        Object(_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(1, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);
        var diff = Object(_startOfUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(date).getTime() - Object(_startOfUTCISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(date).getTime(); // Round the number of days to the nearest integer
        // because the number of milliseconds in a week is not constant
        // (e.g. it's different in the week of the daylight saving time clock shift)

        return Math.round(diff / MILLISECONDS_IN_WEEK) + 1;
      }
      /***/

    },

    /***/
    "lgnt": function lgnt(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Kyrgyz [ky]
      //! author : Chyngyz Arystan uulu : https://github.com/chyngyz
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var suffixes = {
          0: '-чү',
          1: '-чи',
          2: '-чи',
          3: '-чү',
          4: '-чү',
          5: '-чи',
          6: '-чы',
          7: '-чи',
          8: '-чи',
          9: '-чу',
          10: '-чу',
          20: '-чы',
          30: '-чу',
          40: '-чы',
          50: '-чү',
          60: '-чы',
          70: '-чи',
          80: '-чи',
          90: '-чу',
          100: '-чү'
        };
        var ky = moment.defineLocale('ky', {
          months: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_'),
          monthsShort: 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split('_'),
          weekdays: 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split('_'),
          weekdaysShort: 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'),
          weekdaysMin: 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'),
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd, D MMMM YYYY HH:mm'
          },
          calendar: {
            sameDay: '[Бүгүн саат] LT',
            nextDay: '[Эртең саат] LT',
            nextWeek: 'dddd [саат] LT',
            lastDay: '[Кечээ саат] LT',
            lastWeek: '[Өткөн аптанын] dddd [күнү] [саат] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: '%s ичинде',
            past: '%s мурун',
            s: 'бирнече секунд',
            ss: '%d секунд',
            m: 'бир мүнөт',
            mm: '%d мүнөт',
            h: 'бир саат',
            hh: '%d саат',
            d: 'бир күн',
            dd: '%d күн',
            M: 'бир ай',
            MM: '%d ай',
            y: 'бир жыл',
            yy: '%d жыл'
          },
          dayOfMonthOrdinalParse: /\d{1,2}-(чи|чы|чү|чу)/,
          ordinal: function ordinal(number) {
            var a = number % 10,
                b = number >= 100 ? 100 : null;
            return number + (suffixes[number] || suffixes[a] || suffixes[b]);
          },
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 7 // The week that contains Jan 7th is the first week of the year.

          }
        });
        return ky;
      });
      /***/

    },

    /***/
    "loYQ": function loYQ(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Bengali (Bangladesh) [bn-bd]
      //! author : Asraf Hossain Patoary : https://github.com/ashwoolford
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var symbolMap = {
          1: '১',
          2: '২',
          3: '৩',
          4: '৪',
          5: '৫',
          6: '৬',
          7: '৭',
          8: '৮',
          9: '৯',
          0: '০'
        },
            numberMap = {
          '১': '1',
          '২': '2',
          '৩': '3',
          '৪': '4',
          '৫': '5',
          '৬': '6',
          '৭': '7',
          '৮': '8',
          '৯': '9',
          '০': '0'
        };
        var bnBd = moment.defineLocale('bn-bd', {
          months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split('_'),
          monthsShort: 'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split('_'),
          weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split('_'),
          weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
          weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'),
          longDateFormat: {
            LT: 'A h:mm সময়',
            LTS: 'A h:mm:ss সময়',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY, A h:mm সময়',
            LLLL: 'dddd, D MMMM YYYY, A h:mm সময়'
          },
          calendar: {
            sameDay: '[আজ] LT',
            nextDay: '[আগামীকাল] LT',
            nextWeek: 'dddd, LT',
            lastDay: '[গতকাল] LT',
            lastWeek: '[গত] dddd, LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: '%s পরে',
            past: '%s আগে',
            s: 'কয়েক সেকেন্ড',
            ss: '%d সেকেন্ড',
            m: 'এক মিনিট',
            mm: '%d মিনিট',
            h: 'এক ঘন্টা',
            hh: '%d ঘন্টা',
            d: 'এক দিন',
            dd: '%d দিন',
            M: 'এক মাস',
            MM: '%d মাস',
            y: 'এক বছর',
            yy: '%d বছর'
          },
          preparse: function preparse(string) {
            return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
              return numberMap[match];
            });
          },
          postformat: function postformat(string) {
            return string.replace(/\d/g, function (match) {
              return symbolMap[match];
            });
          },
          meridiemParse: /রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,
          meridiemHour: function meridiemHour(hour, meridiem) {
            if (hour === 12) {
              hour = 0;
            }

            if (meridiem === 'রাত') {
              return hour < 4 ? hour : hour + 12;
            } else if (meridiem === 'ভোর') {
              return hour;
            } else if (meridiem === 'সকাল') {
              return hour;
            } else if (meridiem === 'দুপুর') {
              return hour >= 3 ? hour : hour + 12;
            } else if (meridiem === 'বিকাল') {
              return hour + 12;
            } else if (meridiem === 'সন্ধ্যা') {
              return hour + 12;
            }
          },
          meridiem: function meridiem(hour, minute, isLower) {
            if (hour < 4) {
              return 'রাত';
            } else if (hour < 6) {
              return 'ভোর';
            } else if (hour < 12) {
              return 'সকাল';
            } else if (hour < 15) {
              return 'দুপুর';
            } else if (hour < 18) {
              return 'বিকাল';
            } else if (hour < 20) {
              return 'সন্ধ্যা';
            } else {
              return 'রাত';
            }
          },
          week: {
            dow: 0,
            // Sunday is the first day of the week.
            doy: 6 // The week that contains Jan 6th is the first week of the year.

          }
        });
        return bnBd;
      });
      /***/

    },

    /***/
    "lpKW": function lpKW(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "windowCount", function () {
        return windowCount;
      });
      /* harmony import */


      var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Subscriber */
      "7o/Q");
      /* harmony import */


      var _Subject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../Subject */
      "XNiG");

      function windowCount(windowSize) {
        var startWindowEvery = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
        return function windowCountOperatorFunction(source) {
          return source.lift(new WindowCountOperator(windowSize, startWindowEvery));
        };
      }

      var WindowCountOperator = /*#__PURE__*/function () {
        function WindowCountOperator(windowSize, startWindowEvery) {
          _classCallCheck2(this, WindowCountOperator);

          this.windowSize = windowSize;
          this.startWindowEvery = startWindowEvery;
        }

        _createClass2(WindowCountOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            return source.subscribe(new WindowCountSubscriber(subscriber, this.windowSize, this.startWindowEvery));
          }
        }]);

        return WindowCountOperator;
      }();

      var WindowCountSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_38) {
        _inherits2(WindowCountSubscriber, _Subscriber__WEBPACK_38);

        var _super405 = _createSuper2(WindowCountSubscriber);

        function WindowCountSubscriber(destination, windowSize, startWindowEvery) {
          var _this845;

          _classCallCheck2(this, WindowCountSubscriber);

          _this845 = _super405.call(this, destination);
          _this845.destination = destination;
          _this845.windowSize = windowSize;
          _this845.startWindowEvery = startWindowEvery;
          _this845.windows = [new _Subject__WEBPACK_IMPORTED_MODULE_1__["Subject"]()];
          _this845.count = 0;
          destination.next(_this845.windows[0]);
          return _this845;
        }

        _createClass2(WindowCountSubscriber, [{
          key: "_next",
          value: function _next(value) {
            var startWindowEvery = this.startWindowEvery > 0 ? this.startWindowEvery : this.windowSize;
            var destination = this.destination;
            var windowSize = this.windowSize;
            var windows = this.windows;
            var len = windows.length;

            for (var i = 0; i < len && !this.closed; i++) {
              windows[i].next(value);
            }

            var c = this.count - windowSize + 1;

            if (c >= 0 && c % startWindowEvery === 0 && !this.closed) {
              windows.shift().complete();
            }

            if (++this.count % startWindowEvery === 0 && !this.closed) {
              var _window6 = new _Subject__WEBPACK_IMPORTED_MODULE_1__["Subject"]();

              windows.push(_window6);
              destination.next(_window6);
            }
          }
        }, {
          key: "_error",
          value: function _error(err) {
            var windows = this.windows;

            if (windows) {
              while (windows.length > 0 && !this.closed) {
                windows.shift().error(err);
              }
            }

            this.destination.error(err);
          }
        }, {
          key: "_complete",
          value: function _complete() {
            var windows = this.windows;

            if (windows) {
              while (windows.length > 0 && !this.closed) {
                windows.shift().complete();
              }
            }

            this.destination.complete();
          }
        }, {
          key: "_unsubscribe",
          value: function _unsubscribe() {
            this.count = 0;
            this.windows = null;
          }
        }]);

        return WindowCountSubscriber;
      }(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]); //# sourceMappingURL=windowCount.js.map

      /***/

    },

    /***/
    "lv2b": function lv2b(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return endOfToday;
      });
      /* harmony import */


      var _endOfDay_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../endOfDay/index.js */
      "piIK");
      /**
       * @name endOfToday
       * @category Day Helpers
       * @summary Return the end of today.
       * @pure false
       *
       * @description
       * Return the end of today.
       *
       * > ⚠️ Please note that this function is not present in the FP submodule as
       * > it uses `Date.now()` internally hence impure and can't be safely curried.
       *
       * ### 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).
       *
       * @returns {Date} the end of today
       *
       * @example
       * // If today is 6 October 2014:
       * var result = endOfToday()
       * //=> Mon Oct 6 2014 23:59:59.999
       */


      function endOfToday() {
        return Object(_endOfDay_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Date.now());
      }
      /***/

    },

    /***/
    "lyxo": function lyxo(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Romanian [ro]
      //! author : Vlad Gurdiga : https://github.com/gurdiga
      //! author : Valentin Agachi : https://github.com/avaly
      //! author : Emanuel Cepoi : https://github.com/cepem
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        function relativeTimeWithPlural(number, withoutSuffix, key) {
          var format = {
            ss: 'secunde',
            mm: 'minute',
            hh: 'ore',
            dd: 'zile',
            ww: 'săptămâni',
            MM: 'luni',
            yy: 'ani'
          },
              separator = ' ';

          if (number % 100 >= 20 || number >= 100 && number % 100 === 0) {
            separator = ' de ';
          }

          return number + separator + format[key];
        }

        var ro = moment.defineLocale('ro', {
          months: 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split('_'),
          monthsShort: 'ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split('_'),
          monthsParseExact: true,
          weekdays: 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'),
          weekdaysShort: 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'),
          weekdaysMin: 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'),
          longDateFormat: {
            LT: 'H:mm',
            LTS: 'H:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY H:mm',
            LLLL: 'dddd, D MMMM YYYY H:mm'
          },
          calendar: {
            sameDay: '[azi la] LT',
            nextDay: '[mâine la] LT',
            nextWeek: 'dddd [la] LT',
            lastDay: '[ieri la] LT',
            lastWeek: '[fosta] dddd [la] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'peste %s',
            past: '%s în urmă',
            s: 'câteva secunde',
            ss: relativeTimeWithPlural,
            m: 'un minut',
            mm: relativeTimeWithPlural,
            h: 'o oră',
            hh: relativeTimeWithPlural,
            d: 'o zi',
            dd: relativeTimeWithPlural,
            w: 'o săptămână',
            ww: relativeTimeWithPlural,
            M: 'o lună',
            MM: relativeTimeWithPlural,
            y: 'un an',
            yy: relativeTimeWithPlural
          },
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 7 // The week that contains Jan 7th is the first week of the year.

          }
        });
        return ro;
      });
      /***/

    },

    /***/
    "m2j4": function m2j4(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "isEmpty", function () {
        return isEmpty;
      });
      /* harmony import */


      var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Subscriber */
      "7o/Q");

      function isEmpty() {
        return function (source) {
          return source.lift(new IsEmptyOperator());
        };
      }

      var IsEmptyOperator = /*#__PURE__*/function () {
        function IsEmptyOperator() {
          _classCallCheck2(this, IsEmptyOperator);
        }

        _createClass2(IsEmptyOperator, [{
          key: "call",
          value: function call(observer, source) {
            return source.subscribe(new IsEmptySubscriber(observer));
          }
        }]);

        return IsEmptyOperator;
      }();

      var IsEmptySubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_39) {
        _inherits2(IsEmptySubscriber, _Subscriber__WEBPACK_39);

        var _super406 = _createSuper2(IsEmptySubscriber);

        function IsEmptySubscriber(destination) {
          _classCallCheck2(this, IsEmptySubscriber);

          return _super406.call(this, destination);
        }

        _createClass2(IsEmptySubscriber, [{
          key: "notifyComplete",
          value: function notifyComplete(isEmpty) {
            var destination = this.destination;
            destination.next(isEmpty);
            destination.complete();
          }
        }, {
          key: "_next",
          value: function _next(value) {
            this.notifyComplete(false);
          }
        }, {
          key: "_complete",
          value: function _complete() {
            this.notifyComplete(true);
          }
        }]);

        return IsEmptySubscriber;
      }(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]); //# sourceMappingURL=isEmpty.js.map

      /***/

    },

    /***/
    "mCNh": function mCNh(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "pipe", function () {
        return pipe;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "pipeFromArray", function () {
        return pipeFromArray;
      });
      /* harmony import */


      var _identity__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ./identity */
      "SpAZ");

      function pipe() {
        for (var _len71 = arguments.length, fns = new Array(_len71), _key74 = 0; _key74 < _len71; _key74++) {
          fns[_key74] = arguments[_key74];
        }

        return pipeFromArray(fns);
      }

      function pipeFromArray(fns) {
        if (fns.length === 0) {
          return _identity__WEBPACK_IMPORTED_MODULE_0__["identity"];
        }

        if (fns.length === 1) {
          return fns[0];
        }

        return function piped(input) {
          return fns.reduce(function (prev, fn) {
            return fn(prev);
          }, input);
        };
      } //# sourceMappingURL=pipe.js.map

      /***/

    },

    /***/
    "mGvx": function mGvx(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatDividerModuleNgFactory", function () {
        return MatDividerModuleNgFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "RenderType_MatDivider", function () {
        return RenderType_MatDivider;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "View_MatDivider_0", function () {
        return View_MatDivider_0;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "View_MatDivider_Host_0", function () {
        return View_MatDivider_Host_0;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatDividerNgFactory", function () {
        return MatDividerNgFactory;
      });
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /* harmony import */


      var _angular_material_divider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/material/divider */
      "BSbQ");
      /* harmony import */


      var _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! @angular/cdk/bidi */
      "9gLZ");
      /* harmony import */


      var _angular_material_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! @angular/material/core */
      "UhP/");
      /* harmony import */


      var _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! @angular/cdk/a11y */
      "YEUz");
      /* harmony import */


      var _angular_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! @angular/common */
      "SVse");
      /**
       * @fileoverview This file was generated by the Angular template compiler. Do not edit.
       *
       * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes,extraRequire}
       * tslint:disable
       */


      var MatDividerModuleNgFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵcmf"](_angular_material_divider__WEBPACK_IMPORTED_MODULE_1__["MatDividerModule"], [], function (_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmod"]([_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](512, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵCodegenComponentFactoryResolver"], [[8, []], [3, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"]], _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModuleRef"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_2__["BidiModule"], _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_2__["BidiModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_material_core__WEBPACK_IMPORTED_MODULE_3__["MatCommonModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_3__["MatCommonModule"], [_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_4__["HighContrastModeDetector"], [2, _angular_material_core__WEBPACK_IMPORTED_MODULE_3__["MATERIAL_SANITY_CHECKS"]], _angular_common__WEBPACK_IMPORTED_MODULE_5__["DOCUMENT"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_material_divider__WEBPACK_IMPORTED_MODULE_1__["MatDividerModule"], _angular_material_divider__WEBPACK_IMPORTED_MODULE_1__["MatDividerModule"], [])]);
      });

      var styles_MatDivider = [".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"];

      var RenderType_MatDivider = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵcrt"]({
        encapsulation: 2,
        styles: styles_MatDivider,
        data: {}
      });

      function View_MatDivider_0(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](2, [], null, null);
      }

      function View_MatDivider_Host_0(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](0, 0, null, null, 1, "mat-divider", [["class", "mat-divider"], ["role", "separator"]], [[1, "aria-orientation", 0], [2, "mat-divider-vertical", null], [2, "mat-divider-horizontal", null], [2, "mat-divider-inset", null]], null, null, View_MatDivider_0, RenderType_MatDivider)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](1, 49152, null, 0, _angular_material_divider__WEBPACK_IMPORTED_MODULE_1__["MatDivider"], [], null, null)], null, function (_ck, _v) {
          var currVal_0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1).vertical ? "vertical" : "horizontal";

          var currVal_1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1).vertical;

          var currVal_2 = !_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1).vertical;

          var currVal_3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1).inset;

          _ck(_v, 0, 0, currVal_0, currVal_1, currVal_2, currVal_3);
        });
      }

      var MatDividerNgFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵccf"]("mat-divider", _angular_material_divider__WEBPACK_IMPORTED_MODULE_1__["MatDivider"], View_MatDivider_Host_0, {
        vertical: "vertical",
        inset: "inset"
      }, {}, []);
      /***/

    },

    /***/
    "mRR+": function mRR(module, exports, __webpack_require__) {
      "use strict";
      /**
       * angular2-cookie - Implementation of Angular 1.x $cookies service to Angular 2
       * @version v1.2.6
       * @link https://github.com/salemdar/angular2-cookie#readme
       * @license MIT
       */

      var __extends = this && this.__extends || function (d, b) {
        for (var p in b) {
          if (b.hasOwnProperty(p)) d[p] = b[p];
        }

        function __() {
          this.constructor = d;
        }

        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
      };

      var __decorate = this && this.__decorate || function (decorators, target, key, desc) {
        var c = arguments.length,
            r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
            d;
        if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
          if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
        }
        return c > 3 && r && Object.defineProperty(target, key, r), r;
      };

      var __metadata = this && this.__metadata || function (k, v) {
        if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
      };

      var __param = this && this.__param || function (paramIndex, decorator) {
        return function (target, key) {
          decorator(target, key, paramIndex);
        };
      };

      var common_1 = __webpack_require__(
      /*! @angular/common */
      "SVse");

      var core_1 = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /** @private */


      var CookieOptions = function () {
        function CookieOptions(_a) {
          var _b = _a === void 0 ? {} : _a,
              path = _b.path,
              domain = _b.domain,
              expires = _b.expires,
              secure = _b.secure;

          this.path = this.isPresent(path) ? path : null;
          this.domain = this.isPresent(domain) ? domain : null;
          this.expires = this.isPresent(expires) ? expires : null;
          this.secure = this.isPresent(secure) ? secure : false;
        }

        CookieOptions.prototype.merge = function (options) {
          return new CookieOptions({
            path: this.isPresent(options) && this.isPresent(options.path) ? options.path : this.path,
            domain: this.isPresent(options) && this.isPresent(options.domain) ? options.domain : this.domain,
            expires: this.isPresent(options) && this.isPresent(options.expires) ? options.expires : this.expires,
            secure: this.isPresent(options) && this.isPresent(options.secure) ? options.secure : this.secure
          });
        };

        CookieOptions.prototype.isPresent = function (obj) {
          return obj !== undefined && obj !== null;
        };

        return CookieOptions;
      }();

      exports.CookieOptions = CookieOptions;
      /** @private */

      var BaseCookieOptions = function (_super) {
        __extends(BaseCookieOptions, _super);

        function BaseCookieOptions(baseHref) {
          _super.call(this, {
            path: baseHref || '/'
          });

          this.baseHref = baseHref;
        }

        BaseCookieOptions = __decorate([core_1.Injectable(), __param(0, core_1.Optional()), __param(0, core_1.Inject(common_1.APP_BASE_HREF)), __metadata('design:paramtypes', [String])], BaseCookieOptions);
        return BaseCookieOptions;
      }(CookieOptions);

      exports.BaseCookieOptions = BaseCookieOptions; //# sourceMappingURL=base-cookie-options.js.map

      /***/
    },

    /***/
    "mk5/": function mk5(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "window", function () {
        return window;
      });
      /* harmony import */


      var _Subject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Subject */
      "XNiG");
      /* harmony import */


      var _innerSubscribe__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../innerSubscribe */
      "zx2A");

      function window(windowBoundaries) {
        return function windowOperatorFunction(source) {
          return source.lift(new WindowOperator(windowBoundaries));
        };
      }

      var WindowOperator = /*#__PURE__*/function () {
        function WindowOperator(windowBoundaries) {
          _classCallCheck2(this, WindowOperator);

          this.windowBoundaries = windowBoundaries;
        }

        _createClass2(WindowOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            var windowSubscriber = new WindowSubscriber(subscriber);
            var sourceSubscription = source.subscribe(windowSubscriber);

            if (!sourceSubscription.closed) {
              windowSubscriber.add(Object(_innerSubscribe__WEBPACK_IMPORTED_MODULE_1__["innerSubscribe"])(this.windowBoundaries, new _innerSubscribe__WEBPACK_IMPORTED_MODULE_1__["SimpleInnerSubscriber"](windowSubscriber)));
            }

            return sourceSubscription;
          }
        }]);

        return WindowOperator;
      }();

      var WindowSubscriber = /*#__PURE__*/function (_innerSubscribe__WEBP15) {
        _inherits2(WindowSubscriber, _innerSubscribe__WEBP15);

        var _super407 = _createSuper2(WindowSubscriber);

        function WindowSubscriber(destination) {
          var _this846;

          _classCallCheck2(this, WindowSubscriber);

          _this846 = _super407.call(this, destination);
          _this846.window = new _Subject__WEBPACK_IMPORTED_MODULE_0__["Subject"]();
          destination.next(_this846.window);
          return _this846;
        }

        _createClass2(WindowSubscriber, [{
          key: "notifyNext",
          value: function notifyNext() {
            this.openWindow();
          }
        }, {
          key: "notifyError",
          value: function notifyError(error) {
            this._error(error);
          }
        }, {
          key: "notifyComplete",
          value: function notifyComplete() {
            this._complete();
          }
        }, {
          key: "_next",
          value: function _next(value) {
            this.window.next(value);
          }
        }, {
          key: "_error",
          value: function _error(err) {
            this.window.error(err);
            this.destination.error(err);
          }
        }, {
          key: "_complete",
          value: function _complete() {
            this.window.complete();
            this.destination.complete();
          }
        }, {
          key: "_unsubscribe",
          value: function _unsubscribe() {
            this.window = null;
          }
        }, {
          key: "openWindow",
          value: function openWindow() {
            var prevWindow = this.window;

            if (prevWindow) {
              prevWindow.complete();
            }

            var destination = this.destination;
            var newWindow = this.window = new _Subject__WEBPACK_IMPORTED_MODULE_0__["Subject"]();
            destination.next(newWindow);
          }
        }]);

        return WindowSubscriber;
      }(_innerSubscribe__WEBPACK_IMPORTED_MODULE_1__["SimpleOuterSubscriber"]); //# sourceMappingURL=window.js.map

      /***/

    },

    /***/
    "mlxB": function mlxB(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "isDate", function () {
        return isDate;
      });

      function isDate(value) {
        return value instanceof Date && !isNaN(+value);
      } //# sourceMappingURL=isDate.js.map

      /***/

    },

    /***/
    "moCM": function moCM(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return differenceInHours;
      });
      /* harmony import */


      var _differenceInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../differenceInMilliseconds/index.js */
      "Orh4");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");

      var MILLISECONDS_IN_HOUR = 3600000;
      /**
       * @name differenceInHours
       * @category Hour Helpers
       * @summary Get the number of hours between the given dates.
       *
       * @description
       * Get the number of hours between the given dates.
       *
       * ### 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 {Date|Number} dateLeft - the later date
       * @param {Date|Number} dateRight - the earlier date
       * @returns {Number} the number of hours
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // How many hours are between 2 July 2014 06:50:00 and 2 July 2014 19:00:00?
       * var result = differenceInHours(
       *   new Date(2014, 6, 2, 19, 0),
       *   new Date(2014, 6, 2, 6, 50)
       * )
       * //=> 12
       */

      function differenceInHours(dirtyDateLeft, dirtyDateRight) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(2, arguments);
        var diff = Object(_differenceInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateLeft, dirtyDateRight) / MILLISECONDS_IN_HOUR;
        return diff > 0 ? Math.floor(diff) : Math.ceil(diff);
      }
      /***/

    },

    /***/
    "mrSG": function mrSG(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "__extends", function () {
        return __extends;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "__assign", function () {
        return _assign;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "__rest", function () {
        return __rest;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "__decorate", function () {
        return __decorate;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "__param", function () {
        return __param;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "__metadata", function () {
        return __metadata;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "__awaiter", function () {
        return __awaiter;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "__generator", function () {
        return __generator;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "__createBinding", function () {
        return __createBinding;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "__exportStar", function () {
        return __exportStar;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "__values", function () {
        return __values;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "__read", function () {
        return __read;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "__spread", function () {
        return __spread;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "__spreadArrays", function () {
        return __spreadArrays;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "__await", function () {
        return __await;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "__asyncGenerator", function () {
        return __asyncGenerator;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "__asyncDelegator", function () {
        return __asyncDelegator;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "__asyncValues", function () {
        return __asyncValues;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "__makeTemplateObject", function () {
        return __makeTemplateObject;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "__importStar", function () {
        return __importStar;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "__importDefault", function () {
        return __importDefault;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "__classPrivateFieldGet", function () {
        return __classPrivateFieldGet;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "__classPrivateFieldSet", function () {
        return __classPrivateFieldSet;
      });
      /*! *****************************************************************************
      Copyright (c) Microsoft Corporation.
      
      Permission to use, copy, modify, and/or distribute this software for any
      purpose with or without fee is hereby granted.
      
      THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
      REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
      AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
      INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
      LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
      OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
      PERFORMANCE OF THIS SOFTWARE.
      ***************************************************************************** */

      /* global Reflect, Promise */


      var _extendStatics2 = function extendStatics(d, b) {
        _extendStatics2 = Object.setPrototypeOf || {
          __proto__: []
        } instanceof Array && function (d, b) {
          d.__proto__ = b;
        } || function (d, b) {
          for (var p in b) {
            if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
          }
        };

        return _extendStatics2(d, b);
      };

      function __extends(d, b) {
        _extendStatics2(d, b);

        function __() {
          this.constructor = d;
        }

        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
      }

      var _assign = function __assign() {
        _assign = Object.assign || function __assign(t) {
          for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];

            for (var p in s) {
              if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
            }
          }

          return t;
        };

        return _assign.apply(this, arguments);
      };

      function __rest(s, e) {
        var t = {};

        for (var p in s) {
          if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
        }

        if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
          if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
        }
        return t;
      }

      function __decorate(decorators, target, key, desc) {
        var c = arguments.length,
            r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
            d;
        if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
          if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
        }
        return c > 3 && r && Object.defineProperty(target, key, r), r;
      }

      function __param(paramIndex, decorator) {
        return function (target, key) {
          decorator(target, key, paramIndex);
        };
      }

      function __metadata(metadataKey, metadataValue) {
        if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
      }

      function __awaiter(thisArg, _arguments, P, generator) {
        function adopt(value) {
          return value instanceof P ? value : new P(function (resolve) {
            resolve(value);
          });
        }

        return new (P || (P = Promise))(function (resolve, reject) {
          function fulfilled(value) {
            try {
              step(generator.next(value));
            } catch (e) {
              reject(e);
            }
          }

          function rejected(value) {
            try {
              step(generator["throw"](value));
            } catch (e) {
              reject(e);
            }
          }

          function step(result) {
            result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
          }

          step((generator = generator.apply(thisArg, _arguments || [])).next());
        });
      }

      function __generator(thisArg, body) {
        var _ = {
          label: 0,
          sent: function sent() {
            if (t[0] & 1) throw t[1];
            return t[1];
          },
          trys: [],
          ops: []
        },
            f,
            y,
            t,
            g;
        return g = {
          next: verb(0),
          "throw": verb(1),
          "return": verb(2)
        }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
          return this;
        }), g;

        function verb(n) {
          return function (v) {
            return step([n, v]);
          };
        }

        function step(op) {
          if (f) throw new TypeError("Generator is already executing.");

          while (_) {
            try {
              if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
              if (y = 0, t) op = [op[0] & 2, t.value];

              switch (op[0]) {
                case 0:
                case 1:
                  t = op;
                  break;

                case 4:
                  _.label++;
                  return {
                    value: op[1],
                    done: false
                  };

                case 5:
                  _.label++;
                  y = op[1];
                  op = [0];
                  continue;

                case 7:
                  op = _.ops.pop();

                  _.trys.pop();

                  continue;

                default:
                  if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
                    _ = 0;
                    continue;
                  }

                  if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
                    _.label = op[1];
                    break;
                  }

                  if (op[0] === 6 && _.label < t[1]) {
                    _.label = t[1];
                    t = op;
                    break;
                  }

                  if (t && _.label < t[2]) {
                    _.label = t[2];

                    _.ops.push(op);

                    break;
                  }

                  if (t[2]) _.ops.pop();

                  _.trys.pop();

                  continue;
              }

              op = body.call(thisArg, _);
            } catch (e) {
              op = [6, e];
              y = 0;
            } finally {
              f = t = 0;
            }
          }

          if (op[0] & 5) throw op[1];
          return {
            value: op[0] ? op[1] : void 0,
            done: true
          };
        }
      }

      var __createBinding = Object.create ? function (o, m, k, k2) {
        if (k2 === undefined) k2 = k;
        Object.defineProperty(o, k2, {
          enumerable: true,
          get: function get() {
            return m[k];
          }
        });
      } : function (o, m, k, k2) {
        if (k2 === undefined) k2 = k;
        o[k2] = m[k];
      };

      function __exportStar(m, o) {
        for (var p in m) {
          if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
        }
      }

      function __values(o) {
        var s = typeof Symbol === "function" && Symbol.iterator,
            m = s && o[s],
            i = 0;
        if (m) return m.call(o);
        if (o && typeof o.length === "number") return {
          next: function next() {
            if (o && i >= o.length) o = void 0;
            return {
              value: o && o[i++],
              done: !o
            };
          }
        };
        throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
      }

      function __read(o, n) {
        var m = typeof Symbol === "function" && o[Symbol.iterator];
        if (!m) return o;
        var i = m.call(o),
            r,
            ar = [],
            e;

        try {
          while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
            ar.push(r.value);
          }
        } catch (error) {
          e = {
            error: error
          };
        } finally {
          try {
            if (r && !r.done && (m = i["return"])) m.call(i);
          } finally {
            if (e) throw e.error;
          }
        }

        return ar;
      }

      function __spread() {
        for (var ar = [], i = 0; i < arguments.length; i++) {
          ar = ar.concat(__read(arguments[i]));
        }

        return ar;
      }

      function __spreadArrays() {
        for (var s = 0, i = 0, il = arguments.length; i < il; i++) {
          s += arguments[i].length;
        }

        for (var r = Array(s), k = 0, i = 0; i < il; i++) {
          for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) {
            r[k] = a[j];
          }
        }

        return r;
      }

      ;

      function __await(v) {
        return this instanceof __await ? (this.v = v, this) : new __await(v);
      }

      function __asyncGenerator(thisArg, _arguments, generator) {
        if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
        var g = generator.apply(thisArg, _arguments || []),
            i,
            q = [];
        return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () {
          return this;
        }, i;

        function verb(n) {
          if (g[n]) i[n] = function (v) {
            return new Promise(function (a, b) {
              q.push([n, v, a, b]) > 1 || resume(n, v);
            });
          };
        }

        function resume(n, v) {
          try {
            step(g[n](v));
          } catch (e) {
            settle(q[0][3], e);
          }
        }

        function step(r) {
          r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);
        }

        function fulfill(value) {
          resume("next", value);
        }

        function reject(value) {
          resume("throw", value);
        }

        function settle(f, v) {
          if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]);
        }
      }

      function __asyncDelegator(o) {
        var i, p;
        return i = {}, verb("next"), verb("throw", function (e) {
          throw e;
        }), verb("return"), i[Symbol.iterator] = function () {
          return this;
        }, i;

        function verb(n, f) {
          i[n] = o[n] ? function (v) {
            return (p = !p) ? {
              value: __await(o[n](v)),
              done: n === "return"
            } : f ? f(v) : v;
          } : f;
        }
      }

      function __asyncValues(o) {
        if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
        var m = o[Symbol.asyncIterator],
            i;
        return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () {
          return this;
        }, i);

        function verb(n) {
          i[n] = o[n] && function (v) {
            return new Promise(function (resolve, reject) {
              v = o[n](v), settle(resolve, reject, v.done, v.value);
            });
          };
        }

        function settle(resolve, reject, d, v) {
          Promise.resolve(v).then(function (v) {
            resolve({
              value: v,
              done: d
            });
          }, reject);
        }
      }

      function __makeTemplateObject(cooked, raw) {
        if (Object.defineProperty) {
          Object.defineProperty(cooked, "raw", {
            value: raw
          });
        } else {
          cooked.raw = raw;
        }

        return cooked;
      }

      ;

      var __setModuleDefault = Object.create ? function (o, v) {
        Object.defineProperty(o, "default", {
          enumerable: true,
          value: v
        });
      } : function (o, v) {
        o["default"] = v;
      };

      function __importStar(mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) for (var k in mod) {
          if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
        }

        __setModuleDefault(result, mod);

        return result;
      }

      function __importDefault(mod) {
        return mod && mod.__esModule ? mod : {
          "default": mod
        };
      }

      function __classPrivateFieldGet(receiver, privateMap) {
        if (!privateMap.has(receiver)) {
          throw new TypeError("attempted to get private field on non-instance");
        }

        return privateMap.get(receiver);
      }

      function __classPrivateFieldSet(receiver, privateMap, value) {
        if (!privateMap.has(receiver)) {
          throw new TypeError("attempted to set private field on non-instance");
        }

        privateMap.set(receiver, value);
        return value;
      }
      /***/

    },

    /***/
    "mz7f": function mz7f(module, exports) {
      module.exports = function deepFreeze(o) {
        Object.freeze(o);
        var oIsFunction = typeof o === "function";
        var hasOwnProp = Object.prototype.hasOwnProperty;
        Object.getOwnPropertyNames(o).forEach(function (prop) {
          if (hasOwnProp.call(o, prop) && (oIsFunction ? prop !== 'caller' && prop !== 'callee' && prop !== 'arguments' : true) && o[prop] !== null && (typeof o[prop] === "object" || typeof o[prop] === "function") && !Object.isFrozen(o[prop])) {
            deepFreeze(o[prop]);
          }
        });
        return o;
      };
      /***/

    },

    /***/
    "n6bG": function n6bG(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "isFunction", function () {
        return isFunction;
      });

      function isFunction(x) {
        return typeof x === 'function';
      } //# sourceMappingURL=isFunction.js.map

      /***/

    },

    /***/
    "nQ4q": function nQ4q(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return setMonth;
      });
      /* harmony import */


      var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../_lib/toInteger/index.js */
      "/h9T");
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _getDaysInMonth_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../getDaysInMonth/index.js */
      "OuL/");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name setMonth
       * @category Month Helpers
       * @summary Set the month to the given date.
       *
       * @description
       * Set the month to the given date.
       *
       * ### 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 {Date|Number} date - the date to be changed
       * @param {Number} month - the month of the new date
       * @returns {Date} the new date with the month set
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // Set February to 1 September 2014:
       * var result = setMonth(new Date(2014, 8, 1), 1)
       * //=> Sat Feb 01 2014 00:00:00
       */


      function setMonth(dirtyDate, dirtyMonth) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(2, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate);
        var month = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyMonth);
        var year = date.getFullYear();
        var day = date.getDate();
        var dateWithDesiredMonth = new Date(0);
        dateWithDesiredMonth.setFullYear(year, month, 15);
        dateWithDesiredMonth.setHours(0, 0, 0, 0);
        var daysInMonth = Object(_getDaysInMonth_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(dateWithDesiredMonth); // Set the last day of the new month
        // if the original date was the last day of the longer month

        date.setMonth(month, Math.min(day, daysInMonth));
        return date;
      }
      /***/

    },

    /***/
    "nYR2": function nYR2(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "finalize", function () {
        return finalize;
      });
      /* harmony import */


      var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Subscriber */
      "7o/Q");
      /* harmony import */


      var _Subscription__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../Subscription */
      "quSY");

      function finalize(callback) {
        return function (source) {
          return source.lift(new FinallyOperator(callback));
        };
      }

      var FinallyOperator = /*#__PURE__*/function () {
        function FinallyOperator(callback) {
          _classCallCheck2(this, FinallyOperator);

          this.callback = callback;
        }

        _createClass2(FinallyOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            return source.subscribe(new FinallySubscriber(subscriber, this.callback));
          }
        }]);

        return FinallyOperator;
      }();

      var FinallySubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_40) {
        _inherits2(FinallySubscriber, _Subscriber__WEBPACK_40);

        var _super408 = _createSuper2(FinallySubscriber);

        function FinallySubscriber(destination, callback) {
          var _this847;

          _classCallCheck2(this, FinallySubscriber);

          _this847 = _super408.call(this, destination);

          _this847.add(new _Subscription__WEBPACK_IMPORTED_MODULE_1__["Subscription"](callback));

          return _this847;
        }

        return FinallySubscriber;
      }(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]); //# sourceMappingURL=finalize.js.map

      /***/

    },

    /***/
    "ngJS": function ngJS(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "subscribeToArray", function () {
        return subscribeToArray;
      });

      var subscribeToArray = function subscribeToArray(array) {
        return function (subscriber) {
          for (var i = 0, len = array.length; i < len && !subscriber.closed; i++) {
            subscriber.next(array[i]);
          }

          subscriber.complete();
        };
      }; //# sourceMappingURL=subscribeToArray.js.map

      /***/

    },

    /***/
    "ntJQ": function ntJQ(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatTooltipModuleNgFactory", function () {
        return MatTooltipModuleNgFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "RenderType_TooltipComponent", function () {
        return RenderType_TooltipComponent;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "View_TooltipComponent_0", function () {
        return View_TooltipComponent_0;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "View_TooltipComponent_Host_0", function () {
        return View_TooltipComponent_Host_0;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "TooltipComponentNgFactory", function () {
        return TooltipComponentNgFactory;
      });
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /* harmony import */


      var _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/material/tooltip */
      "ZFy/");
      /* harmony import */


      var _angular_cdk_observers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! @angular/cdk/observers */
      "9b/N");
      /* harmony import */


      var _angular_common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! @angular/common */
      "SVse");
      /* harmony import */


      var _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! @angular/cdk/overlay */
      "1O3W");
      /* harmony import */


      var _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! @angular/cdk/bidi */
      "9gLZ");
      /* harmony import */


      var _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
      /*! @angular/cdk/platform */
      "SCoL");
      /* harmony import */


      var _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
      /*! @angular/cdk/a11y */
      "YEUz");
      /* harmony import */


      var _angular_cdk_portal__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
      /*! @angular/cdk/portal */
      "1z/I");
      /* harmony import */


      var _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
      /*! @angular/cdk/scrolling */
      "7KAL");
      /* harmony import */


      var _angular_material_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(
      /*! @angular/material/core */
      "UhP/");
      /* harmony import */


      var _angular_cdk_layout__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(
      /*! @angular/cdk/layout */
      "HeVh");
      /**
       * @fileoverview This file was generated by the Angular template compiler. Do not edit.
       *
       * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes,extraRequire}
       * tslint:disable
       */


      var MatTooltipModuleNgFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵcmf"](_angular_material_tooltip__WEBPACK_IMPORTED_MODULE_1__["MatTooltipModule"], [], function (_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmod"]([_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](512, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵCodegenComponentFactoryResolver"], [[8, [TooltipComponentNgFactory]], [3, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"]], _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModuleRef"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](4608, _angular_cdk_observers__WEBPACK_IMPORTED_MODULE_2__["MutationObserverFactory"], _angular_cdk_observers__WEBPACK_IMPORTED_MODULE_2__["MutationObserverFactory"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](4608, _angular_common__WEBPACK_IMPORTED_MODULE_3__["NgLocalization"], _angular_common__WEBPACK_IMPORTED_MODULE_3__["NgLocaleLocalization"], [_angular_core__WEBPACK_IMPORTED_MODULE_0__["LOCALE_ID"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](4608, _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_4__["Overlay"], _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_4__["Overlay"], [_angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_4__["ScrollStrategyOptions"], _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_4__["OverlayContainer"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"], _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_4__["OverlayPositionBuilder"], _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_4__["OverlayKeyboardDispatcher"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injector"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"], _angular_common__WEBPACK_IMPORTED_MODULE_3__["DOCUMENT"], _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_5__["Directionality"], _angular_common__WEBPACK_IMPORTED_MODULE_3__["Location"], _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_4__["OverlayOutsideClickDispatcher"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](5120, _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_4__["ɵangular_material_src_cdk_overlay_overlay_a"], _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_4__["ɵangular_material_src_cdk_overlay_overlay_b"], [_angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_4__["Overlay"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](5120, _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_1__["MAT_TOOLTIP_SCROLL_STRATEGY"], _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_1__["MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY"], [_angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_4__["Overlay"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_6__["PlatformModule"], _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_6__["PlatformModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_cdk_observers__WEBPACK_IMPORTED_MODULE_2__["ObserversModule"], _angular_cdk_observers__WEBPACK_IMPORTED_MODULE_2__["ObserversModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_7__["A11yModule"], _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_7__["A11yModule"], [_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_7__["HighContrastModeDetector"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_common__WEBPACK_IMPORTED_MODULE_3__["CommonModule"], _angular_common__WEBPACK_IMPORTED_MODULE_3__["CommonModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_5__["BidiModule"], _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_5__["BidiModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_cdk_portal__WEBPACK_IMPORTED_MODULE_8__["PortalModule"], _angular_cdk_portal__WEBPACK_IMPORTED_MODULE_8__["PortalModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_9__["CdkScrollableModule"], _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_9__["CdkScrollableModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_9__["ScrollingModule"], _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_9__["ScrollingModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_4__["OverlayModule"], _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_4__["OverlayModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_material_core__WEBPACK_IMPORTED_MODULE_10__["MatCommonModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_10__["MatCommonModule"], [_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_7__["HighContrastModeDetector"], [2, _angular_material_core__WEBPACK_IMPORTED_MODULE_10__["MATERIAL_SANITY_CHECKS"]], _angular_common__WEBPACK_IMPORTED_MODULE_3__["DOCUMENT"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_1__["MatTooltipModule"], _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_1__["MatTooltipModule"], [])]);
      });

      var styles_TooltipComponent = [".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"];

      var RenderType_TooltipComponent = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵcrt"]({
        encapsulation: 2,
        styles: styles_TooltipComponent,
        data: {
          "animation": [{
            type: 7,
            name: "state",
            definitions: [{
              type: 0,
              name: "initial, void, hidden",
              styles: {
                type: 6,
                styles: {
                  opacity: 0,
                  transform: "scale(0)"
                },
                offset: null
              },
              options: undefined
            }, {
              type: 0,
              name: "visible",
              styles: {
                type: 6,
                styles: {
                  transform: "scale(1)"
                },
                offset: null
              },
              options: undefined
            }, {
              type: 1,
              expr: "* => visible",
              animation: {
                type: 4,
                styles: {
                  type: 5,
                  steps: [{
                    type: 6,
                    styles: {
                      opacity: 0,
                      transform: "scale(0)",
                      offset: 0
                    },
                    offset: null
                  }, {
                    type: 6,
                    styles: {
                      opacity: 0.5,
                      transform: "scale(0.99)",
                      offset: 0.5
                    },
                    offset: null
                  }, {
                    type: 6,
                    styles: {
                      opacity: 1,
                      transform: "scale(1)",
                      offset: 1
                    },
                    offset: null
                  }]
                },
                timings: "200ms cubic-bezier(0, 0, 0.2, 1)"
              },
              options: null
            }, {
              type: 1,
              expr: "* => hidden",
              animation: {
                type: 4,
                styles: {
                  type: 6,
                  styles: {
                    opacity: 0
                  },
                  offset: null
                },
                timings: "100ms cubic-bezier(0, 0, 0.2, 1)"
              },
              options: null
            }],
            options: {}
          }]
        }
      });

      function View_TooltipComponent_0(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](2, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](0, 0, null, null, 3, "div", [["class", "mat-tooltip"]], [[2, "mat-tooltip-handset", null], [24, "@state", 0]], [[null, "@state.start"], [null, "@state.done"]], function (_v, en, $event) {
          var ad = true;
          var _co = _v.component;

          if ("@state.start" === en) {
            var pd_0 = _co._animationStart() !== false;
            ad = pd_0 && ad;
          }

          if ("@state.done" === en) {
            var pd_1 = _co._animationDone($event) !== false;
            ad = pd_1 && ad;
          }

          return ad;
        }, null, null)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](1, 278528, null, 0, _angular_common__WEBPACK_IMPORTED_MODULE_3__["NgClass"], [_angular_core__WEBPACK_IMPORTED_MODULE_0__["IterableDiffers"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["KeyValueDiffers"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]], {
          klass: [0, "klass"],
          ngClass: [1, "ngClass"]
        }, null), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵpid"](131072, _angular_common__WEBPACK_IMPORTED_MODULE_3__["AsyncPipe"], [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"]]), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵted"](3, null, ["", ""]))], function (_ck, _v) {
          var _co = _v.component;
          var currVal_2 = "mat-tooltip";
          var currVal_3 = _co.tooltipClass;

          _ck(_v, 1, 0, currVal_2, currVal_3);
        }, function (_ck, _v) {
          var _co = _v.component;
          var tmp_0_0 = null;
          var currVal_0 = (tmp_0_0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵunv"](_v, 0, 0, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 2).transform(_co._isHandset))) == null ? null : tmp_0_0.matches;
          var currVal_1 = _co._visibility;

          _ck(_v, 0, 0, currVal_0, currVal_1);

          var currVal_4 = _co.message;

          _ck(_v, 3, 0, currVal_4);
        });
      }

      function View_TooltipComponent_Host_0(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](0, 0, null, null, 1, "mat-tooltip-component", [["aria-hidden", "true"]], [[4, "zoom", null]], [["body", "click"]], function (_v, en, $event) {
          var ad = true;

          if ("body:click" === en) {
            var pd_0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1)._handleBodyInteraction() !== false;
            ad = pd_0 && ad;
          }

          return ad;
        }, View_TooltipComponent_0, RenderType_TooltipComponent)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](1, 180224, null, 0, _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_1__["TooltipComponent"], [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"], _angular_cdk_layout__WEBPACK_IMPORTED_MODULE_11__["BreakpointObserver"]], null, null)], null, function (_ck, _v) {
          var currVal_0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1)._visibility === "visible" ? 1 : null;

          _ck(_v, 0, 0, currVal_0);
        });
      }

      var TooltipComponentNgFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵccf"]("mat-tooltip-component", _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_1__["TooltipComponent"], View_TooltipComponent_Host_0, {}, {}, []);
      /***/

    },

    /***/
    "nyYc": function nyYc(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : French [fr]
      //! author : John Fischer : https://github.com/jfroffice
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var monthsStrictRegex = /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,
            monthsShortStrictRegex = /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,
            monthsRegex = /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,
            monthsParse = [/^janv/i, /^févr/i, /^mars/i, /^avr/i, /^mai/i, /^juin/i, /^juil/i, /^août/i, /^sept/i, /^oct/i, /^nov/i, /^déc/i];
        var fr = moment.defineLocale('fr', {
          months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
          monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
          monthsRegex: monthsRegex,
          monthsShortRegex: monthsRegex,
          monthsStrictRegex: monthsStrictRegex,
          monthsShortStrictRegex: monthsShortStrictRegex,
          monthsParse: monthsParse,
          longMonthsParse: monthsParse,
          shortMonthsParse: monthsParse,
          weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
          weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
          weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
          weekdaysParseExact: true,
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd D MMMM YYYY HH:mm'
          },
          calendar: {
            sameDay: '[Aujourd’hui à] LT',
            nextDay: '[Demain à] LT',
            nextWeek: 'dddd [à] LT',
            lastDay: '[Hier à] LT',
            lastWeek: 'dddd [dernier à] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'dans %s',
            past: 'il y a %s',
            s: 'quelques secondes',
            ss: '%d secondes',
            m: 'une minute',
            mm: '%d minutes',
            h: 'une heure',
            hh: '%d heures',
            d: 'un jour',
            dd: '%d jours',
            w: 'une semaine',
            ww: '%d semaines',
            M: 'un mois',
            MM: '%d mois',
            y: 'un an',
            yy: '%d ans'
          },
          dayOfMonthOrdinalParse: /\d{1,2}(er|)/,
          ordinal: function ordinal(number, period) {
            switch (period) {
              // TODO: Return 'e' when day of month > 1. Move this case inside
              // block for masculine words below.
              // See https://github.com/moment/moment/issues/3375
              case 'D':
                return number + (number === 1 ? 'er' : '');
              // Words with masculine grammatical gender: mois, trimestre, jour

              default:
              case 'M':
              case 'Q':
              case 'DDD':
              case 'd':
                return number + (number === 1 ? 'er' : 'e');
              // Words with feminine grammatical gender: semaine

              case 'w':
              case 'W':
                return number + (number === 1 ? 're' : 'e');
            }
          },
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return fr;
      });
      /***/

    },

    /***/
    "o1bE": function o1bE(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Arabic (Algeria) [ar-dz]
      //! author : Amine Roukh: https://github.com/Amine27
      //! author : Abdel Said: https://github.com/abdelsaid
      //! author : Ahmed Elkhatib
      //! author : forabi https://github.com/forabi
      //! author : Noureddine LOUAHEDJ : https://github.com/noureddinem
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var pluralForm = function pluralForm(n) {
          return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;
        },
            plurals = {
          s: ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],
          m: ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],
          h: ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],
          d: ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],
          M: ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],
          y: ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']
        },
            pluralize = function pluralize(u) {
          return function (number, withoutSuffix, string, isFuture) {
            var f = pluralForm(number),
                str = plurals[u][pluralForm(number)];

            if (f === 2) {
              str = str[withoutSuffix ? 0 : 1];
            }

            return str.replace(/%d/i, number);
          };
        },
            months = ['جانفي', 'فيفري', 'مارس', 'أفريل', 'ماي', 'جوان', 'جويلية', 'أوت', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر'];

        var arDz = moment.defineLocale('ar-dz', {
          months: months,
          monthsShort: months,
          weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
          weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
          weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
          weekdaysParseExact: true,
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: "D/\u200FM/\u200FYYYY",
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd D MMMM YYYY HH:mm'
          },
          meridiemParse: /ص|م/,
          isPM: function isPM(input) {
            return 'م' === input;
          },
          meridiem: function meridiem(hour, minute, isLower) {
            if (hour < 12) {
              return 'ص';
            } else {
              return 'م';
            }
          },
          calendar: {
            sameDay: '[اليوم عند الساعة] LT',
            nextDay: '[غدًا عند الساعة] LT',
            nextWeek: 'dddd [عند الساعة] LT',
            lastDay: '[أمس عند الساعة] LT',
            lastWeek: 'dddd [عند الساعة] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'بعد %s',
            past: 'منذ %s',
            s: pluralize('s'),
            ss: pluralize('s'),
            m: pluralize('m'),
            mm: pluralize('m'),
            h: pluralize('h'),
            hh: pluralize('h'),
            d: pluralize('d'),
            dd: pluralize('d'),
            M: pluralize('M'),
            MM: pluralize('M'),
            y: pluralize('y'),
            yy: pluralize('y')
          },
          postformat: function postformat(string) {
            return string.replace(/,/g, '،');
          },
          week: {
            dow: 0,
            // Sunday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return arDz;
      });
      /***/

    },

    /***/
    "oADU": function oADU(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return startOfUTCWeekYear;
      });
      /* harmony import */


      var _toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toInteger/index.js */
      "/h9T");
      /* harmony import */


      var _getUTCWeekYear_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../getUTCWeekYear/index.js */
      "Szzx");
      /* harmony import */


      var _startOfUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../startOfUTCWeek/index.js */
      "1vjI");
      /* harmony import */


      var _requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../requiredArgs/index.js */
      "jIYg"); // This function will be a part of public API when UTC function will be implemented.
      // See issue: https://github.com/date-fns/date-fns/issues/376


      function startOfUTCWeekYear(dirtyDate, dirtyOptions) {
        Object(_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(1, arguments);
        var options = dirtyOptions || {};
        var locale = options.locale;
        var localeFirstWeekContainsDate = locale && locale.options && locale.options.firstWeekContainsDate;
        var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : Object(_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(localeFirstWeekContainsDate);
        var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : Object(_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(options.firstWeekContainsDate);
        var year = Object(_getUTCWeekYear_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate, dirtyOptions);
        var firstWeek = new Date(0);
        firstWeek.setUTCFullYear(year, 0, firstWeekContainsDate);
        firstWeek.setUTCHours(0, 0, 0, 0);
        var date = Object(_startOfUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(firstWeek, dirtyOptions);
        return date;
      }
      /***/

    },

    /***/
    "oB13": function oB13(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "multicast", function () {
        return multicast;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MulticastOperator", function () {
        return MulticastOperator;
      });
      /* harmony import */


      var _observable_ConnectableObservable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../observable/ConnectableObservable */
      "EQ5u");

      function multicast(subjectOrSubjectFactory, selector) {
        return function multicastOperatorFunction(source) {
          var subjectFactory;

          if (typeof subjectOrSubjectFactory === 'function') {
            subjectFactory = subjectOrSubjectFactory;
          } else {
            subjectFactory = function subjectFactory() {
              return subjectOrSubjectFactory;
            };
          }

          if (typeof selector === 'function') {
            return source.lift(new MulticastOperator(subjectFactory, selector));
          }

          var connectable = Object.create(source, _observable_ConnectableObservable__WEBPACK_IMPORTED_MODULE_0__["connectableObservableDescriptor"]);
          connectable.source = source;
          connectable.subjectFactory = subjectFactory;
          return connectable;
        };
      }

      var MulticastOperator = /*#__PURE__*/function () {
        function MulticastOperator(subjectFactory, selector) {
          _classCallCheck2(this, MulticastOperator);

          this.subjectFactory = subjectFactory;
          this.selector = selector;
        }

        _createClass2(MulticastOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            var selector = this.selector;
            var subject = this.subjectFactory();
            var subscription = selector(subject).subscribe(subscriber);
            subscription.add(source.subscribe(subject));
            return subscription;
          }
        }]);

        return MulticastOperator;
      }(); //# sourceMappingURL=multicast.js.map

      /***/

    },

    /***/
    "oRuE": function oRuE(module, exports, __webpack_require__) {
      ;

      (function (root, factory, undef) {
        if (true) {
          // CommonJS
          module.exports = exports = factory(__webpack_require__(
          /*! ./core */
          "Ib8C"), __webpack_require__(
          /*! ./cipher-core */
          "OLod"));
        } else {}
      })(this, function (CryptoJS) {
        /**
         * ISO 10126 padding strategy.
         */
        CryptoJS.pad.Iso10126 = {
          pad: function pad(data, blockSize) {
            // Shortcut
            var blockSizeBytes = blockSize * 4; // Count padding bytes

            var nPaddingBytes = blockSizeBytes - data.sigBytes % blockSizeBytes; // Pad

            data.concat(CryptoJS.lib.WordArray.random(nPaddingBytes - 1)).concat(CryptoJS.lib.WordArray.create([nPaddingBytes << 24], 1));
          },
          unpad: function unpad(data) {
            // Get number of padding bytes from last byte
            var nPaddingBytes = data.words[data.sigBytes - 1 >>> 2] & 0xff; // Remove padding

            data.sigBytes -= nPaddingBytes;
          }
        };
        return CryptoJS.pad.Iso10126;
      });
      /***/

    },

    /***/
    "oYTe": function oYTe(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return closestTo;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name closestTo
       * @category Common Helpers
       * @summary Return a date from the array closest to the given date.
       *
       * @description
       * Return a date from the array closest to the given date.
       *
       * ### 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).
       *
       * - Now, `closestTo` doesn't throw an exception
       *   when the second argument is not an array, and returns Invalid Date instead.
       *
       * @param {Date|Number} dateToCompare - the date to compare with
       * @param {Date[]|Number[]} datesArray - the array to search
       * @returns {Date} the date from the array closest to the given date
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // Which date is closer to 6 September 2015: 1 January 2000 or 1 January 2030?
       * var dateToCompare = new Date(2015, 8, 6)
       * var result = closestTo(dateToCompare, [
       *   new Date(2000, 0, 1),
       *   new Date(2030, 0, 1)
       * ])
       * //=> Tue Jan 01 2030 00:00:00
       */


      function closestTo(dirtyDateToCompare, dirtyDatesArray) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(2, arguments);
        var dateToCompare = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateToCompare);

        if (isNaN(dateToCompare)) {
          return new Date(NaN);
        }

        var timeToCompare = dateToCompare.getTime();
        var datesArray; // `dirtyDatesArray` is undefined or null

        if (dirtyDatesArray == null) {
          datesArray = []; // `dirtyDatesArray` is Array, Set or Map, or object with custom `forEach` method
        } else if (typeof dirtyDatesArray.forEach === 'function') {
          datesArray = dirtyDatesArray; // If `dirtyDatesArray` is Array-like Object, convert to Array. Otherwise, make it empty Array
        } else {
          datesArray = Array.prototype.slice.call(dirtyDatesArray);
        }

        var result;
        var minDistance;
        datesArray.forEach(function (dirtyDate) {
          var currentDate = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);

          if (isNaN(currentDate)) {
            result = new Date(NaN);
            minDistance = NaN;
            return;
          }

          var distance = Math.abs(timeToCompare - currentDate.getTime());

          if (result == null || distance < minDistance) {
            result = currentDate;
            minDistance = distance;
          }
        });
        return result;
      }
      /***/

    },

    /***/
    "odh7": function odh7(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return getUnixTime;
      });
      /* harmony import */


      var _getTime_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../getTime/index.js */
      "5wMr");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name getUnixTime
       * @category Timestamp Helpers
       * @summary Get the seconds timestamp of the given date.
       *
       * @description
       * Get the seconds timestamp of the given date.
       *
       * ### 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 {Date|Number} date - the given date
       * @returns {Number} the timestamp
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // Get the timestamp of 29 February 2012 11:45:05 CET:
       * var result = getUnixTime(new Date(2012, 1, 29, 11, 45, 5))
       * //=> 1330512305
       */


      function getUnixTime(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        return Math.floor(Object(_getTime_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate) / 1000);
      }
      /***/

    },

    /***/
    "omvX": function omvX(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ANIMATION_MODULE_TYPE", function () {
        return ANIMATION_MODULE_TYPE;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "BrowserAnimationsModule", function () {
        return BrowserAnimationsModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NoopAnimationsModule", function () {
        return NoopAnimationsModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵAnimationRenderer", function () {
        return AnimationRenderer;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵAnimationRendererFactory", function () {
        return AnimationRendererFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵBrowserAnimationBuilder", function () {
        return BrowserAnimationBuilder;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵBrowserAnimationFactory", function () {
        return BrowserAnimationFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵInjectableAnimationEngine", function () {
        return InjectableAnimationEngine;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_platform_browser_animations_animations_a", function () {
        return instantiateSupportedAnimationDriver;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_platform_browser_animations_animations_b", function () {
        return instantiateDefaultStyleNormalizer;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_platform_browser_animations_animations_c", function () {
        return instantiateRendererFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_platform_browser_animations_animations_d", function () {
        return BROWSER_ANIMATIONS_PROVIDERS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_platform_browser_animations_animations_e", function () {
        return BROWSER_NOOP_ANIMATIONS_PROVIDERS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_platform_browser_animations_animations_f", function () {
        return BaseAnimationRenderer;
      });
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /* harmony import */


      var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/platform-browser */
      "cUpR");
      /* harmony import */


      var _angular_animations__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! @angular/animations */
      "GS7A");
      /* harmony import */


      var _angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! @angular/animations/browser */
      "fDlF");
      /* harmony import */


      var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! @angular/common */
      "SVse");
      /**
       * @license Angular v11.0.0
       * (c) 2010-2020 Google LLC. https://angular.io/
       * License: MIT
       */

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var BrowserAnimationBuilder = /*#__PURE__*/function (_angular_animations__2) {
        _inherits2(BrowserAnimationBuilder, _angular_animations__2);

        var _super409 = _createSuper2(BrowserAnimationBuilder);

        function BrowserAnimationBuilder(rootRenderer, doc) {
          var _this848;

          _classCallCheck2(this, BrowserAnimationBuilder);

          _this848 = _super409.call(this);
          _this848._nextAnimationId = 0;
          var typeData = {
            id: '0',
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [],
            data: {
              animation: []
            }
          };
          _this848._renderer = rootRenderer.createRenderer(doc.body, typeData);
          return _this848;
        }

        _createClass2(BrowserAnimationBuilder, [{
          key: "build",
          value: function build(animation) {
            var id = this._nextAnimationId.toString();

            this._nextAnimationId++;
            var entry = Array.isArray(animation) ? Object(_angular_animations__WEBPACK_IMPORTED_MODULE_2__["sequence"])(animation) : animation;
            issueAnimationCommand(this._renderer, null, id, 'register', [entry]);
            return new BrowserAnimationFactory(id, this._renderer);
          }
        }]);

        return BrowserAnimationBuilder;
      }(_angular_animations__WEBPACK_IMPORTED_MODULE_2__["AnimationBuilder"]);

      BrowserAnimationBuilder.ɵfac = function BrowserAnimationBuilder_Factory(t) {
        return new (t || BrowserAnimationBuilder)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["RendererFactory2"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"]));
      };

      BrowserAnimationBuilder.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
        token: BrowserAnimationBuilder,
        factory: BrowserAnimationBuilder.ɵfac
      });

      BrowserAnimationBuilder.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["RendererFactory2"]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [_angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"]]
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](BrowserAnimationBuilder, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["RendererFactory2"]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [_angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"]]
            }]
          }];
        }, null);
      })();

      var BrowserAnimationFactory = /*#__PURE__*/function (_angular_animations__3) {
        _inherits2(BrowserAnimationFactory, _angular_animations__3);

        var _super410 = _createSuper2(BrowserAnimationFactory);

        function BrowserAnimationFactory(_id, _renderer) {
          var _this849;

          _classCallCheck2(this, BrowserAnimationFactory);

          _this849 = _super410.call(this);
          _this849._id = _id;
          _this849._renderer = _renderer;
          return _this849;
        }

        _createClass2(BrowserAnimationFactory, [{
          key: "create",
          value: function create(element, options) {
            return new RendererAnimationPlayer(this._id, element, options || {}, this._renderer);
          }
        }]);

        return BrowserAnimationFactory;
      }(_angular_animations__WEBPACK_IMPORTED_MODULE_2__["AnimationFactory"]);

      var RendererAnimationPlayer = /*#__PURE__*/function () {
        function RendererAnimationPlayer(id, element, options, _renderer) {
          _classCallCheck2(this, RendererAnimationPlayer);

          this.id = id;
          this.element = element;
          this._renderer = _renderer;
          this.parentPlayer = null;
          this._started = false;
          this.totalTime = 0;

          this._command('create', options);
        }

        _createClass2(RendererAnimationPlayer, [{
          key: "_listen",
          value: function _listen(eventName, callback) {
            return this._renderer.listen(this.element, "@@".concat(this.id, ":").concat(eventName), callback);
          }
        }, {
          key: "_command",
          value: function _command(command) {
            for (var _len72 = arguments.length, args = new Array(_len72 > 1 ? _len72 - 1 : 0), _key75 = 1; _key75 < _len72; _key75++) {
              args[_key75 - 1] = arguments[_key75];
            }

            return issueAnimationCommand(this._renderer, this.element, this.id, command, args);
          }
        }, {
          key: "onDone",
          value: function onDone(fn) {
            this._listen('done', fn);
          }
        }, {
          key: "onStart",
          value: function onStart(fn) {
            this._listen('start', fn);
          }
        }, {
          key: "onDestroy",
          value: function onDestroy(fn) {
            this._listen('destroy', fn);
          }
        }, {
          key: "init",
          value: function init() {
            this._command('init');
          }
        }, {
          key: "hasStarted",
          value: function hasStarted() {
            return this._started;
          }
        }, {
          key: "play",
          value: function play() {
            this._command('play');

            this._started = true;
          }
        }, {
          key: "pause",
          value: function pause() {
            this._command('pause');
          }
        }, {
          key: "restart",
          value: function restart() {
            this._command('restart');
          }
        }, {
          key: "finish",
          value: function finish() {
            this._command('finish');
          }
        }, {
          key: "destroy",
          value: function destroy() {
            this._command('destroy');
          }
        }, {
          key: "reset",
          value: function reset() {
            this._command('reset');
          }
        }, {
          key: "setPosition",
          value: function setPosition(p) {
            this._command('setPosition', p);
          }
        }, {
          key: "getPosition",
          value: function getPosition() {
            return 0;
          }
        }]);

        return RendererAnimationPlayer;
      }();

      function issueAnimationCommand(renderer, element, id, command, args) {
        return renderer.setProperty(element, "@@".concat(id, ":").concat(command), args);
      }

      var ANIMATION_PREFIX = '@';
      var DISABLE_ANIMATIONS_FLAG = '@.disabled';

      var AnimationRendererFactory = /*#__PURE__*/function () {
        function AnimationRendererFactory(delegate, engine, _zone) {
          _classCallCheck2(this, AnimationRendererFactory);

          this.delegate = delegate;
          this.engine = engine;
          this._zone = _zone;
          this._currentId = 0;
          this._microtaskId = 1;
          this._animationCallbacksBuffer = [];
          this._rendererCache = new Map();
          this._cdRecurDepth = 0;
          this.promise = Promise.resolve(0);

          engine.onRemovalComplete = function (element, delegate) {
            // Note: if an component element has a leave animation, and the component
            // a host leave animation, the view engine will call `removeChild` for the parent
            // component renderer as well as for the child component renderer.
            // Therefore, we need to check if we already removed the element.
            if (delegate && delegate.parentNode(element)) {
              delegate.removeChild(element.parentNode, element);
            }
          };
        }

        _createClass2(AnimationRendererFactory, [{
          key: "createRenderer",
          value: function createRenderer(hostElement, type) {
            var _this850 = this;

            var EMPTY_NAMESPACE_ID = ''; // cache the delegates to find out which cached delegate can
            // be used by which cached renderer

            var delegate = this.delegate.createRenderer(hostElement, type);

            if (!hostElement || !type || !type.data || !type.data['animation']) {
              var renderer = this._rendererCache.get(delegate);

              if (!renderer) {
                renderer = new BaseAnimationRenderer(EMPTY_NAMESPACE_ID, delegate, this.engine); // only cache this result when the base renderer is used

                this._rendererCache.set(delegate, renderer);
              }

              return renderer;
            }

            var componentId = type.id;
            var namespaceId = type.id + '-' + this._currentId;
            this._currentId++;
            this.engine.register(namespaceId, hostElement);

            var registerTrigger = function registerTrigger(trigger) {
              if (Array.isArray(trigger)) {
                trigger.forEach(registerTrigger);
              } else {
                _this850.engine.registerTrigger(componentId, namespaceId, hostElement, trigger.name, trigger);
              }
            };

            var animationTriggers = type.data['animation'];
            animationTriggers.forEach(registerTrigger);
            return new AnimationRenderer(this, namespaceId, delegate, this.engine);
          }
        }, {
          key: "begin",
          value: function begin() {
            this._cdRecurDepth++;

            if (this.delegate.begin) {
              this.delegate.begin();
            }
          }
        }, {
          key: "_scheduleCountTask",
          value: function _scheduleCountTask() {
            var _this851 = this;

            // always use promise to schedule microtask instead of use Zone
            this.promise.then(function () {
              _this851._microtaskId++;
            });
          }
          /** @internal */

        }, {
          key: "scheduleListenerCallback",
          value: function scheduleListenerCallback(count, fn, data) {
            var _this852 = this;

            if (count >= 0 && count < this._microtaskId) {
              this._zone.run(function () {
                return fn(data);
              });

              return;
            }

            if (this._animationCallbacksBuffer.length == 0) {
              Promise.resolve(null).then(function () {
                _this852._zone.run(function () {
                  _this852._animationCallbacksBuffer.forEach(function (tuple) {
                    var _tuple2 = _slicedToArray(tuple, 2),
                        fn = _tuple2[0],
                        data = _tuple2[1];

                    fn(data);
                  });

                  _this852._animationCallbacksBuffer = [];
                });
              });
            }

            this._animationCallbacksBuffer.push([fn, data]);
          }
        }, {
          key: "end",
          value: function end() {
            var _this853 = this;

            this._cdRecurDepth--; // this is to prevent animations from running twice when an inner
            // component does CD when a parent component instead has inserted it

            if (this._cdRecurDepth == 0) {
              this._zone.runOutsideAngular(function () {
                _this853._scheduleCountTask();

                _this853.engine.flush(_this853._microtaskId);
              });
            }

            if (this.delegate.end) {
              this.delegate.end();
            }
          }
        }, {
          key: "whenRenderingDone",
          value: function whenRenderingDone() {
            return this.engine.whenRenderingDone();
          }
        }]);

        return AnimationRendererFactory;
      }();

      AnimationRendererFactory.ɵfac = function AnimationRendererFactory_Factory(t) {
        return new (t || AnimationRendererFactory)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["RendererFactory2"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["ɵAnimationEngine"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"]));
      };

      AnimationRendererFactory.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
        token: AnimationRendererFactory,
        factory: AnimationRendererFactory.ɵfac
      });

      AnimationRendererFactory.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["RendererFactory2"]
        }, {
          type: _angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["ɵAnimationEngine"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](AnimationRendererFactory, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["RendererFactory2"]
          }, {
            type: _angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["ɵAnimationEngine"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"]
          }];
        }, null);
      })();

      var BaseAnimationRenderer = /*#__PURE__*/function () {
        function BaseAnimationRenderer(namespaceId, delegate, engine) {
          _classCallCheck2(this, BaseAnimationRenderer);

          this.namespaceId = namespaceId;
          this.delegate = delegate;
          this.engine = engine;
          this.destroyNode = this.delegate.destroyNode ? function (n) {
            return delegate.destroyNode(n);
          } : null;
        }

        _createClass2(BaseAnimationRenderer, [{
          key: "data",
          get: function get() {
            return this.delegate.data;
          }
        }, {
          key: "destroy",
          value: function destroy() {
            this.engine.destroy(this.namespaceId, this.delegate);
            this.delegate.destroy();
          }
        }, {
          key: "createElement",
          value: function createElement(name, namespace) {
            return this.delegate.createElement(name, namespace);
          }
        }, {
          key: "createComment",
          value: function createComment(value) {
            return this.delegate.createComment(value);
          }
        }, {
          key: "createText",
          value: function createText(value) {
            return this.delegate.createText(value);
          }
        }, {
          key: "appendChild",
          value: function appendChild(parent, newChild) {
            this.delegate.appendChild(parent, newChild);
            this.engine.onInsert(this.namespaceId, newChild, parent, false);
          }
        }, {
          key: "insertBefore",
          value: function insertBefore(parent, newChild, refChild) {
            var isMove = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
            this.delegate.insertBefore(parent, newChild, refChild); // If `isMove` true than we should animate this insert.

            this.engine.onInsert(this.namespaceId, newChild, parent, isMove);
          }
        }, {
          key: "removeChild",
          value: function removeChild(parent, oldChild, isHostElement) {
            this.engine.onRemove(this.namespaceId, oldChild, this.delegate, isHostElement);
          }
        }, {
          key: "selectRootElement",
          value: function selectRootElement(selectorOrNode, preserveContent) {
            return this.delegate.selectRootElement(selectorOrNode, preserveContent);
          }
        }, {
          key: "parentNode",
          value: function parentNode(node) {
            return this.delegate.parentNode(node);
          }
        }, {
          key: "nextSibling",
          value: function nextSibling(node) {
            return this.delegate.nextSibling(node);
          }
        }, {
          key: "setAttribute",
          value: function setAttribute(el, name, value, namespace) {
            this.delegate.setAttribute(el, name, value, namespace);
          }
        }, {
          key: "removeAttribute",
          value: function removeAttribute(el, name, namespace) {
            this.delegate.removeAttribute(el, name, namespace);
          }
        }, {
          key: "addClass",
          value: function addClass(el, name) {
            this.delegate.addClass(el, name);
          }
        }, {
          key: "removeClass",
          value: function removeClass(el, name) {
            this.delegate.removeClass(el, name);
          }
        }, {
          key: "setStyle",
          value: function setStyle(el, style, value, flags) {
            this.delegate.setStyle(el, style, value, flags);
          }
        }, {
          key: "removeStyle",
          value: function removeStyle(el, style, flags) {
            this.delegate.removeStyle(el, style, flags);
          }
        }, {
          key: "setProperty",
          value: function setProperty(el, name, value) {
            if (name.charAt(0) == ANIMATION_PREFIX && name == DISABLE_ANIMATIONS_FLAG) {
              this.disableAnimations(el, !!value);
            } else {
              this.delegate.setProperty(el, name, value);
            }
          }
        }, {
          key: "setValue",
          value: function setValue(node, value) {
            this.delegate.setValue(node, value);
          }
        }, {
          key: "listen",
          value: function listen(target, eventName, callback) {
            return this.delegate.listen(target, eventName, callback);
          }
        }, {
          key: "disableAnimations",
          value: function disableAnimations(element, value) {
            this.engine.disableAnimations(element, value);
          }
        }]);

        return BaseAnimationRenderer;
      }();

      var AnimationRenderer = /*#__PURE__*/function (_BaseAnimationRendere) {
        _inherits2(AnimationRenderer, _BaseAnimationRendere);

        var _super411 = _createSuper2(AnimationRenderer);

        function AnimationRenderer(factory, namespaceId, delegate, engine) {
          var _this854;

          _classCallCheck2(this, AnimationRenderer);

          _this854 = _super411.call(this, namespaceId, delegate, engine);
          _this854.factory = factory;
          _this854.namespaceId = namespaceId;
          return _this854;
        }

        _createClass2(AnimationRenderer, [{
          key: "setProperty",
          value: function setProperty(el, name, value) {
            if (name.charAt(0) == ANIMATION_PREFIX) {
              if (name.charAt(1) == '.' && name == DISABLE_ANIMATIONS_FLAG) {
                value = value === undefined ? true : !!value;
                this.disableAnimations(el, value);
              } else {
                this.engine.process(this.namespaceId, el, name.substr(1), value);
              }
            } else {
              this.delegate.setProperty(el, name, value);
            }
          }
        }, {
          key: "listen",
          value: function listen(target, eventName, callback) {
            var _this855 = this;

            if (eventName.charAt(0) == ANIMATION_PREFIX) {
              var element = resolveElementFromTarget(target);
              var name = eventName.substr(1);
              var phase = ''; // @listener.phase is for trigger animation callbacks
              // @@listener is for animation builder callbacks

              if (name.charAt(0) != ANIMATION_PREFIX) {
                var _parseTriggerCallback = parseTriggerCallbackName(name);

                var _parseTriggerCallback2 = _slicedToArray(_parseTriggerCallback, 2);

                name = _parseTriggerCallback2[0];
                phase = _parseTriggerCallback2[1];
              }

              return this.engine.listen(this.namespaceId, element, name, phase, function (event) {
                var countId = event['_data'] || -1;

                _this855.factory.scheduleListenerCallback(countId, callback, event);
              });
            }

            return this.delegate.listen(target, eventName, callback);
          }
        }]);

        return AnimationRenderer;
      }(BaseAnimationRenderer);

      function resolveElementFromTarget(target) {
        switch (target) {
          case 'body':
            return document.body;

          case 'document':
            return document;

          case 'window':
            return window;

          default:
            return target;
        }
      }

      function parseTriggerCallbackName(triggerName) {
        var dotIndex = triggerName.indexOf('.');
        var trigger = triggerName.substring(0, dotIndex);
        var phase = triggerName.substr(dotIndex + 1);
        return [trigger, phase];
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var InjectableAnimationEngine = /*#__PURE__*/function (_angular_animations_b) {
        _inherits2(InjectableAnimationEngine, _angular_animations_b);

        var _super412 = _createSuper2(InjectableAnimationEngine);

        function InjectableAnimationEngine(doc, driver, normalizer) {
          _classCallCheck2(this, InjectableAnimationEngine);

          return _super412.call(this, doc.body, driver, normalizer);
        }

        return InjectableAnimationEngine;
      }(_angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["ɵAnimationEngine"]);

      InjectableAnimationEngine.ɵfac = function InjectableAnimationEngine_Factory(t) {
        return new (t || InjectableAnimationEngine)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["AnimationDriver"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["ɵAnimationStyleNormalizer"]));
      };

      InjectableAnimationEngine.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
        token: InjectableAnimationEngine,
        factory: InjectableAnimationEngine.ɵfac
      });

      InjectableAnimationEngine.ctorParameters = function () {
        return [{
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [_angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"]]
          }]
        }, {
          type: _angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["AnimationDriver"]
        }, {
          type: _angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["ɵAnimationStyleNormalizer"]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](InjectableAnimationEngine, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
        }], function () {
          return [{
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [_angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"]]
            }]
          }, {
            type: _angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["AnimationDriver"]
          }, {
            type: _angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["ɵAnimationStyleNormalizer"]
          }];
        }, null);
      })();

      function instantiateSupportedAnimationDriver() {
        return Object(_angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["ɵsupportsWebAnimations"])() ? new _angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["ɵWebAnimationsDriver"]() : new _angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["ɵCssKeyframesDriver"]();
      }

      function instantiateDefaultStyleNormalizer() {
        return new _angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["ɵWebAnimationsStyleNormalizer"]();
      }

      function instantiateRendererFactory(renderer, engine, zone) {
        return new AnimationRendererFactory(renderer, engine, zone);
      }
      /**
       * @publicApi
       */


      var ANIMATION_MODULE_TYPE = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('AnimationModuleType');
      var SHARED_ANIMATION_PROVIDERS = [{
        provide: _angular_animations__WEBPACK_IMPORTED_MODULE_2__["AnimationBuilder"],
        useClass: BrowserAnimationBuilder
      }, {
        provide: _angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["ɵAnimationStyleNormalizer"],
        useFactory: instantiateDefaultStyleNormalizer
      }, {
        provide: _angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["ɵAnimationEngine"],
        useClass: InjectableAnimationEngine
      }, {
        provide: _angular_core__WEBPACK_IMPORTED_MODULE_0__["RendererFactory2"],
        useFactory: instantiateRendererFactory,
        deps: [_angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__["ɵDomRendererFactory2"], _angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["ɵAnimationEngine"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"]]
      }];
      /**
       * Separate providers from the actual module so that we can do a local modification in Google3 to
       * include them in the BrowserModule.
       */

      var BROWSER_ANIMATIONS_PROVIDERS = [{
        provide: _angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["AnimationDriver"],
        useFactory: instantiateSupportedAnimationDriver
      }, {
        provide: ANIMATION_MODULE_TYPE,
        useValue: 'BrowserAnimations'
      }].concat(SHARED_ANIMATION_PROVIDERS);
      /**
       * Separate providers from the actual module so that we can do a local modification in Google3 to
       * include them in the BrowserTestingModule.
       */

      var BROWSER_NOOP_ANIMATIONS_PROVIDERS = [{
        provide: _angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["AnimationDriver"],
        useClass: _angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["ɵNoopAnimationDriver"]
      }, {
        provide: ANIMATION_MODULE_TYPE,
        useValue: 'NoopAnimations'
      }].concat(SHARED_ANIMATION_PROVIDERS);
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Exports `BrowserModule` with additional [dependency-injection providers](guide/glossary#provider)
       * for use with animations. See [Animations](guide/animations).
       * @publicApi
       */

      var BrowserAnimationsModule = function BrowserAnimationsModule() {
        _classCallCheck2(this, BrowserAnimationsModule);
      };

      BrowserAnimationsModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
        type: BrowserAnimationsModule
      });
      BrowserAnimationsModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
        factory: function BrowserAnimationsModule_Factory(t) {
          return new (t || BrowserAnimationsModule)();
        },
        providers: BROWSER_ANIMATIONS_PROVIDERS,
        imports: [_angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__["BrowserModule"]]
      });

      (function () {
        (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](BrowserAnimationsModule, {
          exports: function exports() {
            return [_angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__["BrowserModule"]];
          }
        });
      })();
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](BrowserAnimationsModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
          args: [{
            exports: [_angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__["BrowserModule"]],
            providers: BROWSER_ANIMATIONS_PROVIDERS
          }]
        }], null, null);
      })();
      /**
       * A null player that must be imported to allow disabling of animations.
       * @publicApi
       */


      var NoopAnimationsModule = function NoopAnimationsModule() {
        _classCallCheck2(this, NoopAnimationsModule);
      };

      NoopAnimationsModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
        type: NoopAnimationsModule
      });
      NoopAnimationsModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
        factory: function NoopAnimationsModule_Factory(t) {
          return new (t || NoopAnimationsModule)();
        },
        providers: BROWSER_NOOP_ANIMATIONS_PROVIDERS,
        imports: [_angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__["BrowserModule"]]
      });

      (function () {
        (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](NoopAnimationsModule, {
          exports: function exports() {
            return [_angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__["BrowserModule"]];
          }
        });
      })();
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NoopAnimationsModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
          args: [{
            exports: [_angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__["BrowserModule"]],
            providers: BROWSER_NOOP_ANIMATIONS_PROVIDERS
          }]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Generated bundle index. Do not edit.
       */
      //# sourceMappingURL=animations.js.map

      /***/

    },

    /***/
    "p+Ro": function pRo(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return isDate;
      });
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name isDate
       * @category Common Helpers
       * @summary Is the given value a date?
       *
       * @description
       * Returns true if the given value is an instance of Date. The function works for dates transferred across iframes.
       *
       * ### 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 {*} value - the value to check
       * @returns {boolean} true if the given value is a date
       * @throws {TypeError} 1 arguments required
       *
       * @example
       * // For a valid date:
       * var result = isDate(new Date())
       * //=> true
       *
       * @example
       * // For an invalid date:
       * var result = isDate(new Date(NaN))
       * //=> true
       *
       * @example
       * // For some value:
       * var result = isDate('2014-02-31')
       * //=> false
       *
       * @example
       * // For an object:
       * var result = isDate({})
       * //=> false
       */


      function isDate(value) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(1, arguments);
        return value instanceof Date || typeof value === 'object' && Object.prototype.toString.call(value) === '[object Date]';
      }
      /***/

    },

    /***/
    "p/rL": function pRL(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Bambara [bm]
      //! author : Estelle Comment : https://github.com/estellecomment
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var bm = moment.defineLocale('bm', {
          months: 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split('_'),
          monthsShort: 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split('_'),
          weekdays: 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'),
          weekdaysShort: 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'),
          weekdaysMin: 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'),
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'MMMM [tile] D [san] YYYY',
            LLL: 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',
            LLLL: 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm'
          },
          calendar: {
            sameDay: '[Bi lɛrɛ] LT',
            nextDay: '[Sini lɛrɛ] LT',
            nextWeek: 'dddd [don lɛrɛ] LT',
            lastDay: '[Kunu lɛrɛ] LT',
            lastWeek: 'dddd [tɛmɛnen lɛrɛ] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: '%s kɔnɔ',
            past: 'a bɛ %s bɔ',
            s: 'sanga dama dama',
            ss: 'sekondi %d',
            m: 'miniti kelen',
            mm: 'miniti %d',
            h: 'lɛrɛ kelen',
            hh: 'lɛrɛ %d',
            d: 'tile kelen',
            dd: 'tile %d',
            M: 'kalo kelen',
            MM: 'kalo %d',
            y: 'san kelen',
            yy: 'san %d'
          },
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return bm;
      });
      /***/

    },

    /***/
    "p0jx": function p0jx(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return setWeekYear;
      });
      /* harmony import */


      var _differenceInCalendarDays_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../differenceInCalendarDays/index.js */
      "gXqy");
      /* harmony import */


      var _startOfWeekYear_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../startOfWeekYear/index.js */
      "qdtj");
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../_lib/toInteger/index.js */
      "/h9T");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name setWeekYear
       * @category Week-Numbering Year Helpers
       * @summary Set the local week-numbering year to the given date.
       *
       * @description
       * Set the local week-numbering year to the given date,
       * saving the week number and the weekday number.
       * The exact calculation depends on the values of
       * `options.weekStartsOn` (which is the index of the first day of the week)
       * and `options.firstWeekContainsDate` (which is the day of January, which is always in
       * the first week of the week-numbering year)
       *
       * Week numbering: https://en.wikipedia.org/wiki/Week#Week_numbering
       *
       * ### 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 {Date|Number} date - the date to be changed
       * @param {Number} weekYear - the local week-numbering year of the new date
       * @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)
       * @param {1|2|3|4|5|6|7} [options.firstWeekContainsDate=1] - the day of January, which is always in the first week of the year
       * @returns {Date} the new date with the local week-numbering year set
       * @throws {TypeError} 2 arguments required
       * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6
       * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7
       *
       * @example
       * // Set the local week-numbering year 2004 to 2 January 2010 with default options:
       * var result = setWeekYear(new Date(2010, 0, 2), 2004)
       * //=> Sat Jan 03 2004 00:00:00
       *
       * @example
       * // Set the local week-numbering year 2004 to 2 January 2010,
       * // if Monday is the first day of week
       * // and 4 January is always in the first week of the year:
       * var result = setWeekYear(new Date(2010, 0, 2), 2004, {
       *   weekStartsOn: 1,
       *   firstWeekContainsDate: 4
       * })
       * //=> Sat Jan 01 2005 00:00:00
       */


      function setWeekYear(dirtyDate, dirtyWeekYear, dirtyOptions) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_4__["default"])(2, arguments);
        var options = dirtyOptions || {};
        var locale = options.locale;
        var localeFirstWeekContainsDate = locale && locale.options && locale.options.firstWeekContainsDate;
        var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(localeFirstWeekContainsDate);
        var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(options.firstWeekContainsDate);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(dirtyDate);
        var weekYear = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(dirtyWeekYear);
        var diff = Object(_differenceInCalendarDays_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(date, Object(_startOfWeekYear_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(date, dirtyOptions));
        var firstWeek = new Date(0);
        firstWeek.setFullYear(weekYear, 0, firstWeekContainsDate);
        firstWeek.setHours(0, 0, 0, 0);
        date = Object(_startOfWeekYear_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(firstWeek, dirtyOptions);
        date.setDate(date.getDate() + diff);
        return date;
      }
      /***/

    },

    /***/
    "p9/F": function p9F(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "buffer", function () {
        return buffer;
      });
      /* harmony import */


      var _innerSubscribe__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../innerSubscribe */
      "zx2A");

      function buffer(closingNotifier) {
        return function bufferOperatorFunction(source) {
          return source.lift(new BufferOperator(closingNotifier));
        };
      }

      var BufferOperator = /*#__PURE__*/function () {
        function BufferOperator(closingNotifier) {
          _classCallCheck2(this, BufferOperator);

          this.closingNotifier = closingNotifier;
        }

        _createClass2(BufferOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            return source.subscribe(new BufferSubscriber(subscriber, this.closingNotifier));
          }
        }]);

        return BufferOperator;
      }();

      var BufferSubscriber = /*#__PURE__*/function (_innerSubscribe__WEBP16) {
        _inherits2(BufferSubscriber, _innerSubscribe__WEBP16);

        var _super413 = _createSuper2(BufferSubscriber);

        function BufferSubscriber(destination, closingNotifier) {
          var _this856;

          _classCallCheck2(this, BufferSubscriber);

          _this856 = _super413.call(this, destination);
          _this856.buffer = [];

          _this856.add(Object(_innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["innerSubscribe"])(closingNotifier, new _innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["SimpleInnerSubscriber"](_assertThisInitialized2(_this856))));

          return _this856;
        }

        _createClass2(BufferSubscriber, [{
          key: "_next",
          value: function _next(value) {
            this.buffer.push(value);
          }
        }, {
          key: "notifyNext",
          value: function notifyNext() {
            var buffer = this.buffer;
            this.buffer = [];
            this.destination.next(buffer);
          }
        }]);

        return BufferSubscriber;
      }(_innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["SimpleOuterSubscriber"]); //# sourceMappingURL=buffer.js.map

      /***/

    },

    /***/
    "pA7S": function pA7S(module, exports, __webpack_require__) {
      ;

      (function (root, factory, undef) {
        if (true) {
          // CommonJS
          module.exports = exports = factory(__webpack_require__(
          /*! ./core */
          "Ib8C"), __webpack_require__(
          /*! ./enc-base64 */
          "ETIr"), __webpack_require__(
          /*! ./md5 */
          "cv67"), __webpack_require__(
          /*! ./evpkdf */
          "K3mO"), __webpack_require__(
          /*! ./cipher-core */
          "OLod"));
        } else {}
      })(this, function (CryptoJS) {
        (function () {
          // Shortcuts
          var C = CryptoJS;
          var C_lib = C.lib;
          var WordArray = C_lib.WordArray;
          var BlockCipher = C_lib.BlockCipher;
          var C_algo = C.algo; // Permuted Choice 1 constants

          var PC1 = [57, 49, 41, 33, 25, 17, 9, 1, 58, 50, 42, 34, 26, 18, 10, 2, 59, 51, 43, 35, 27, 19, 11, 3, 60, 52, 44, 36, 63, 55, 47, 39, 31, 23, 15, 7, 62, 54, 46, 38, 30, 22, 14, 6, 61, 53, 45, 37, 29, 21, 13, 5, 28, 20, 12, 4]; // Permuted Choice 2 constants

          var PC2 = [14, 17, 11, 24, 1, 5, 3, 28, 15, 6, 21, 10, 23, 19, 12, 4, 26, 8, 16, 7, 27, 20, 13, 2, 41, 52, 31, 37, 47, 55, 30, 40, 51, 45, 33, 48, 44, 49, 39, 56, 34, 53, 46, 42, 50, 36, 29, 32]; // Cumulative bit shift constants

          var BIT_SHIFTS = [1, 2, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 23, 25, 27, 28]; // SBOXes and round permutation constants

          var SBOX_P = [{
            0x0: 0x808200,
            0x10000000: 0x8000,
            0x20000000: 0x808002,
            0x30000000: 0x2,
            0x40000000: 0x200,
            0x50000000: 0x808202,
            0x60000000: 0x800202,
            0x70000000: 0x800000,
            0x80000000: 0x202,
            0x90000000: 0x800200,
            0xa0000000: 0x8200,
            0xb0000000: 0x808000,
            0xc0000000: 0x8002,
            0xd0000000: 0x800002,
            0xe0000000: 0x0,
            0xf0000000: 0x8202,
            0x8000000: 0x0,
            0x18000000: 0x808202,
            0x28000000: 0x8202,
            0x38000000: 0x8000,
            0x48000000: 0x808200,
            0x58000000: 0x200,
            0x68000000: 0x808002,
            0x78000000: 0x2,
            0x88000000: 0x800200,
            0x98000000: 0x8200,
            0xa8000000: 0x808000,
            0xb8000000: 0x800202,
            0xc8000000: 0x800002,
            0xd8000000: 0x8002,
            0xe8000000: 0x202,
            0xf8000000: 0x800000,
            0x1: 0x8000,
            0x10000001: 0x2,
            0x20000001: 0x808200,
            0x30000001: 0x800000,
            0x40000001: 0x808002,
            0x50000001: 0x8200,
            0x60000001: 0x200,
            0x70000001: 0x800202,
            0x80000001: 0x808202,
            0x90000001: 0x808000,
            0xa0000001: 0x800002,
            0xb0000001: 0x8202,
            0xc0000001: 0x202,
            0xd0000001: 0x800200,
            0xe0000001: 0x8002,
            0xf0000001: 0x0,
            0x8000001: 0x808202,
            0x18000001: 0x808000,
            0x28000001: 0x800000,
            0x38000001: 0x200,
            0x48000001: 0x8000,
            0x58000001: 0x800002,
            0x68000001: 0x2,
            0x78000001: 0x8202,
            0x88000001: 0x8002,
            0x98000001: 0x800202,
            0xa8000001: 0x202,
            0xb8000001: 0x808200,
            0xc8000001: 0x800200,
            0xd8000001: 0x0,
            0xe8000001: 0x8200,
            0xf8000001: 0x808002
          }, {
            0x0: 0x40084010,
            0x1000000: 0x4000,
            0x2000000: 0x80000,
            0x3000000: 0x40080010,
            0x4000000: 0x40000010,
            0x5000000: 0x40084000,
            0x6000000: 0x40004000,
            0x7000000: 0x10,
            0x8000000: 0x84000,
            0x9000000: 0x40004010,
            0xa000000: 0x40000000,
            0xb000000: 0x84010,
            0xc000000: 0x80010,
            0xd000000: 0x0,
            0xe000000: 0x4010,
            0xf000000: 0x40080000,
            0x800000: 0x40004000,
            0x1800000: 0x84010,
            0x2800000: 0x10,
            0x3800000: 0x40004010,
            0x4800000: 0x40084010,
            0x5800000: 0x40000000,
            0x6800000: 0x80000,
            0x7800000: 0x40080010,
            0x8800000: 0x80010,
            0x9800000: 0x0,
            0xa800000: 0x4000,
            0xb800000: 0x40080000,
            0xc800000: 0x40000010,
            0xd800000: 0x84000,
            0xe800000: 0x40084000,
            0xf800000: 0x4010,
            0x10000000: 0x0,
            0x11000000: 0x40080010,
            0x12000000: 0x40004010,
            0x13000000: 0x40084000,
            0x14000000: 0x40080000,
            0x15000000: 0x10,
            0x16000000: 0x84010,
            0x17000000: 0x4000,
            0x18000000: 0x4010,
            0x19000000: 0x80000,
            0x1a000000: 0x80010,
            0x1b000000: 0x40000010,
            0x1c000000: 0x84000,
            0x1d000000: 0x40004000,
            0x1e000000: 0x40000000,
            0x1f000000: 0x40084010,
            0x10800000: 0x84010,
            0x11800000: 0x80000,
            0x12800000: 0x40080000,
            0x13800000: 0x4000,
            0x14800000: 0x40004000,
            0x15800000: 0x40084010,
            0x16800000: 0x10,
            0x17800000: 0x40000000,
            0x18800000: 0x40084000,
            0x19800000: 0x40000010,
            0x1a800000: 0x40004010,
            0x1b800000: 0x80010,
            0x1c800000: 0x0,
            0x1d800000: 0x4010,
            0x1e800000: 0x40080010,
            0x1f800000: 0x84000
          }, {
            0x0: 0x104,
            0x100000: 0x0,
            0x200000: 0x4000100,
            0x300000: 0x10104,
            0x400000: 0x10004,
            0x500000: 0x4000004,
            0x600000: 0x4010104,
            0x700000: 0x4010000,
            0x800000: 0x4000000,
            0x900000: 0x4010100,
            0xa00000: 0x10100,
            0xb00000: 0x4010004,
            0xc00000: 0x4000104,
            0xd00000: 0x10000,
            0xe00000: 0x4,
            0xf00000: 0x100,
            0x80000: 0x4010100,
            0x180000: 0x4010004,
            0x280000: 0x0,
            0x380000: 0x4000100,
            0x480000: 0x4000004,
            0x580000: 0x10000,
            0x680000: 0x10004,
            0x780000: 0x104,
            0x880000: 0x4,
            0x980000: 0x100,
            0xa80000: 0x4010000,
            0xb80000: 0x10104,
            0xc80000: 0x10100,
            0xd80000: 0x4000104,
            0xe80000: 0x4010104,
            0xf80000: 0x4000000,
            0x1000000: 0x4010100,
            0x1100000: 0x10004,
            0x1200000: 0x10000,
            0x1300000: 0x4000100,
            0x1400000: 0x100,
            0x1500000: 0x4010104,
            0x1600000: 0x4000004,
            0x1700000: 0x0,
            0x1800000: 0x4000104,
            0x1900000: 0x4000000,
            0x1a00000: 0x4,
            0x1b00000: 0x10100,
            0x1c00000: 0x4010000,
            0x1d00000: 0x104,
            0x1e00000: 0x10104,
            0x1f00000: 0x4010004,
            0x1080000: 0x4000000,
            0x1180000: 0x104,
            0x1280000: 0x4010100,
            0x1380000: 0x0,
            0x1480000: 0x10004,
            0x1580000: 0x4000100,
            0x1680000: 0x100,
            0x1780000: 0x4010004,
            0x1880000: 0x10000,
            0x1980000: 0x4010104,
            0x1a80000: 0x10104,
            0x1b80000: 0x4000004,
            0x1c80000: 0x4000104,
            0x1d80000: 0x4010000,
            0x1e80000: 0x4,
            0x1f80000: 0x10100
          }, {
            0x0: 0x80401000,
            0x10000: 0x80001040,
            0x20000: 0x401040,
            0x30000: 0x80400000,
            0x40000: 0x0,
            0x50000: 0x401000,
            0x60000: 0x80000040,
            0x70000: 0x400040,
            0x80000: 0x80000000,
            0x90000: 0x400000,
            0xa0000: 0x40,
            0xb0000: 0x80001000,
            0xc0000: 0x80400040,
            0xd0000: 0x1040,
            0xe0000: 0x1000,
            0xf0000: 0x80401040,
            0x8000: 0x80001040,
            0x18000: 0x40,
            0x28000: 0x80400040,
            0x38000: 0x80001000,
            0x48000: 0x401000,
            0x58000: 0x80401040,
            0x68000: 0x0,
            0x78000: 0x80400000,
            0x88000: 0x1000,
            0x98000: 0x80401000,
            0xa8000: 0x400000,
            0xb8000: 0x1040,
            0xc8000: 0x80000000,
            0xd8000: 0x400040,
            0xe8000: 0x401040,
            0xf8000: 0x80000040,
            0x100000: 0x400040,
            0x110000: 0x401000,
            0x120000: 0x80000040,
            0x130000: 0x0,
            0x140000: 0x1040,
            0x150000: 0x80400040,
            0x160000: 0x80401000,
            0x170000: 0x80001040,
            0x180000: 0x80401040,
            0x190000: 0x80000000,
            0x1a0000: 0x80400000,
            0x1b0000: 0x401040,
            0x1c0000: 0x80001000,
            0x1d0000: 0x400000,
            0x1e0000: 0x40,
            0x1f0000: 0x1000,
            0x108000: 0x80400000,
            0x118000: 0x80401040,
            0x128000: 0x0,
            0x138000: 0x401000,
            0x148000: 0x400040,
            0x158000: 0x80000000,
            0x168000: 0x80001040,
            0x178000: 0x40,
            0x188000: 0x80000040,
            0x198000: 0x1000,
            0x1a8000: 0x80001000,
            0x1b8000: 0x80400040,
            0x1c8000: 0x1040,
            0x1d8000: 0x80401000,
            0x1e8000: 0x400000,
            0x1f8000: 0x401040
          }, {
            0x0: 0x80,
            0x1000: 0x1040000,
            0x2000: 0x40000,
            0x3000: 0x20000000,
            0x4000: 0x20040080,
            0x5000: 0x1000080,
            0x6000: 0x21000080,
            0x7000: 0x40080,
            0x8000: 0x1000000,
            0x9000: 0x20040000,
            0xa000: 0x20000080,
            0xb000: 0x21040080,
            0xc000: 0x21040000,
            0xd000: 0x0,
            0xe000: 0x1040080,
            0xf000: 0x21000000,
            0x800: 0x1040080,
            0x1800: 0x21000080,
            0x2800: 0x80,
            0x3800: 0x1040000,
            0x4800: 0x40000,
            0x5800: 0x20040080,
            0x6800: 0x21040000,
            0x7800: 0x20000000,
            0x8800: 0x20040000,
            0x9800: 0x0,
            0xa800: 0x21040080,
            0xb800: 0x1000080,
            0xc800: 0x20000080,
            0xd800: 0x21000000,
            0xe800: 0x1000000,
            0xf800: 0x40080,
            0x10000: 0x40000,
            0x11000: 0x80,
            0x12000: 0x20000000,
            0x13000: 0x21000080,
            0x14000: 0x1000080,
            0x15000: 0x21040000,
            0x16000: 0x20040080,
            0x17000: 0x1000000,
            0x18000: 0x21040080,
            0x19000: 0x21000000,
            0x1a000: 0x1040000,
            0x1b000: 0x20040000,
            0x1c000: 0x40080,
            0x1d000: 0x20000080,
            0x1e000: 0x0,
            0x1f000: 0x1040080,
            0x10800: 0x21000080,
            0x11800: 0x1000000,
            0x12800: 0x1040000,
            0x13800: 0x20040080,
            0x14800: 0x20000000,
            0x15800: 0x1040080,
            0x16800: 0x80,
            0x17800: 0x21040000,
            0x18800: 0x40080,
            0x19800: 0x21040080,
            0x1a800: 0x0,
            0x1b800: 0x21000000,
            0x1c800: 0x1000080,
            0x1d800: 0x40000,
            0x1e800: 0x20040000,
            0x1f800: 0x20000080
          }, {
            0x0: 0x10000008,
            0x100: 0x2000,
            0x200: 0x10200000,
            0x300: 0x10202008,
            0x400: 0x10002000,
            0x500: 0x200000,
            0x600: 0x200008,
            0x700: 0x10000000,
            0x800: 0x0,
            0x900: 0x10002008,
            0xa00: 0x202000,
            0xb00: 0x8,
            0xc00: 0x10200008,
            0xd00: 0x202008,
            0xe00: 0x2008,
            0xf00: 0x10202000,
            0x80: 0x10200000,
            0x180: 0x10202008,
            0x280: 0x8,
            0x380: 0x200000,
            0x480: 0x202008,
            0x580: 0x10000008,
            0x680: 0x10002000,
            0x780: 0x2008,
            0x880: 0x200008,
            0x980: 0x2000,
            0xa80: 0x10002008,
            0xb80: 0x10200008,
            0xc80: 0x0,
            0xd80: 0x10202000,
            0xe80: 0x202000,
            0xf80: 0x10000000,
            0x1000: 0x10002000,
            0x1100: 0x10200008,
            0x1200: 0x10202008,
            0x1300: 0x2008,
            0x1400: 0x200000,
            0x1500: 0x10000000,
            0x1600: 0x10000008,
            0x1700: 0x202000,
            0x1800: 0x202008,
            0x1900: 0x0,
            0x1a00: 0x8,
            0x1b00: 0x10200000,
            0x1c00: 0x2000,
            0x1d00: 0x10002008,
            0x1e00: 0x10202000,
            0x1f00: 0x200008,
            0x1080: 0x8,
            0x1180: 0x202000,
            0x1280: 0x200000,
            0x1380: 0x10000008,
            0x1480: 0x10002000,
            0x1580: 0x2008,
            0x1680: 0x10202008,
            0x1780: 0x10200000,
            0x1880: 0x10202000,
            0x1980: 0x10200008,
            0x1a80: 0x2000,
            0x1b80: 0x202008,
            0x1c80: 0x200008,
            0x1d80: 0x0,
            0x1e80: 0x10000000,
            0x1f80: 0x10002008
          }, {
            0x0: 0x100000,
            0x10: 0x2000401,
            0x20: 0x400,
            0x30: 0x100401,
            0x40: 0x2100401,
            0x50: 0x0,
            0x60: 0x1,
            0x70: 0x2100001,
            0x80: 0x2000400,
            0x90: 0x100001,
            0xa0: 0x2000001,
            0xb0: 0x2100400,
            0xc0: 0x2100000,
            0xd0: 0x401,
            0xe0: 0x100400,
            0xf0: 0x2000000,
            0x8: 0x2100001,
            0x18: 0x0,
            0x28: 0x2000401,
            0x38: 0x2100400,
            0x48: 0x100000,
            0x58: 0x2000001,
            0x68: 0x2000000,
            0x78: 0x401,
            0x88: 0x100401,
            0x98: 0x2000400,
            0xa8: 0x2100000,
            0xb8: 0x100001,
            0xc8: 0x400,
            0xd8: 0x2100401,
            0xe8: 0x1,
            0xf8: 0x100400,
            0x100: 0x2000000,
            0x110: 0x100000,
            0x120: 0x2000401,
            0x130: 0x2100001,
            0x140: 0x100001,
            0x150: 0x2000400,
            0x160: 0x2100400,
            0x170: 0x100401,
            0x180: 0x401,
            0x190: 0x2100401,
            0x1a0: 0x100400,
            0x1b0: 0x1,
            0x1c0: 0x0,
            0x1d0: 0x2100000,
            0x1e0: 0x2000001,
            0x1f0: 0x400,
            0x108: 0x100400,
            0x118: 0x2000401,
            0x128: 0x2100001,
            0x138: 0x1,
            0x148: 0x2000000,
            0x158: 0x100000,
            0x168: 0x401,
            0x178: 0x2100400,
            0x188: 0x2000001,
            0x198: 0x2100000,
            0x1a8: 0x0,
            0x1b8: 0x2100401,
            0x1c8: 0x100401,
            0x1d8: 0x400,
            0x1e8: 0x2000400,
            0x1f8: 0x100001
          }, {
            0x0: 0x8000820,
            0x1: 0x20000,
            0x2: 0x8000000,
            0x3: 0x20,
            0x4: 0x20020,
            0x5: 0x8020820,
            0x6: 0x8020800,
            0x7: 0x800,
            0x8: 0x8020000,
            0x9: 0x8000800,
            0xa: 0x20800,
            0xb: 0x8020020,
            0xc: 0x820,
            0xd: 0x0,
            0xe: 0x8000020,
            0xf: 0x20820,
            0x80000000: 0x800,
            0x80000001: 0x8020820,
            0x80000002: 0x8000820,
            0x80000003: 0x8000000,
            0x80000004: 0x8020000,
            0x80000005: 0x20800,
            0x80000006: 0x20820,
            0x80000007: 0x20,
            0x80000008: 0x8000020,
            0x80000009: 0x820,
            0x8000000a: 0x20020,
            0x8000000b: 0x8020800,
            0x8000000c: 0x0,
            0x8000000d: 0x8020020,
            0x8000000e: 0x8000800,
            0x8000000f: 0x20000,
            0x10: 0x20820,
            0x11: 0x8020800,
            0x12: 0x20,
            0x13: 0x800,
            0x14: 0x8000800,
            0x15: 0x8000020,
            0x16: 0x8020020,
            0x17: 0x20000,
            0x18: 0x0,
            0x19: 0x20020,
            0x1a: 0x8020000,
            0x1b: 0x8000820,
            0x1c: 0x8020820,
            0x1d: 0x20800,
            0x1e: 0x820,
            0x1f: 0x8000000,
            0x80000010: 0x20000,
            0x80000011: 0x800,
            0x80000012: 0x8020020,
            0x80000013: 0x20820,
            0x80000014: 0x20,
            0x80000015: 0x8020000,
            0x80000016: 0x8000000,
            0x80000017: 0x8000820,
            0x80000018: 0x8020820,
            0x80000019: 0x8000020,
            0x8000001a: 0x8000800,
            0x8000001b: 0x0,
            0x8000001c: 0x20800,
            0x8000001d: 0x820,
            0x8000001e: 0x20020,
            0x8000001f: 0x8020800
          }]; // Masks that select the SBOX input

          var SBOX_MASK = [0xf8000001, 0x1f800000, 0x01f80000, 0x001f8000, 0x0001f800, 0x00001f80, 0x000001f8, 0x8000001f];
          /**
           * DES block cipher algorithm.
           */

          var DES = C_algo.DES = BlockCipher.extend({
            _doReset: function _doReset() {
              // Shortcuts
              var key = this._key;
              var keyWords = key.words; // Select 56 bits according to PC1

              var keyBits = [];

              for (var i = 0; i < 56; i++) {
                var keyBitPos = PC1[i] - 1;
                keyBits[i] = keyWords[keyBitPos >>> 5] >>> 31 - keyBitPos % 32 & 1;
              } // Assemble 16 subkeys


              var subKeys = this._subKeys = [];

              for (var nSubKey = 0; nSubKey < 16; nSubKey++) {
                // Create subkey
                var subKey = subKeys[nSubKey] = []; // Shortcut

                var bitShift = BIT_SHIFTS[nSubKey]; // Select 48 bits according to PC2

                for (var i = 0; i < 24; i++) {
                  // Select from the left 28 key bits
                  subKey[i / 6 | 0] |= keyBits[(PC2[i] - 1 + bitShift) % 28] << 31 - i % 6; // Select from the right 28 key bits

                  subKey[4 + (i / 6 | 0)] |= keyBits[28 + (PC2[i + 24] - 1 + bitShift) % 28] << 31 - i % 6;
                } // Since each subkey is applied to an expanded 32-bit input,
                // the subkey can be broken into 8 values scaled to 32-bits,
                // which allows the key to be used without expansion


                subKey[0] = subKey[0] << 1 | subKey[0] >>> 31;

                for (var i = 1; i < 7; i++) {
                  subKey[i] = subKey[i] >>> (i - 1) * 4 + 3;
                }

                subKey[7] = subKey[7] << 5 | subKey[7] >>> 27;
              } // Compute inverse subkeys


              var invSubKeys = this._invSubKeys = [];

              for (var i = 0; i < 16; i++) {
                invSubKeys[i] = subKeys[15 - i];
              }
            },
            encryptBlock: function encryptBlock(M, offset) {
              this._doCryptBlock(M, offset, this._subKeys);
            },
            decryptBlock: function decryptBlock(M, offset) {
              this._doCryptBlock(M, offset, this._invSubKeys);
            },
            _doCryptBlock: function _doCryptBlock(M, offset, subKeys) {
              // Get input
              this._lBlock = M[offset];
              this._rBlock = M[offset + 1]; // Initial permutation

              exchangeLR.call(this, 4, 0x0f0f0f0f);
              exchangeLR.call(this, 16, 0x0000ffff);
              exchangeRL.call(this, 2, 0x33333333);
              exchangeRL.call(this, 8, 0x00ff00ff);
              exchangeLR.call(this, 1, 0x55555555); // Rounds

              for (var round = 0; round < 16; round++) {
                // Shortcuts
                var subKey = subKeys[round];
                var lBlock = this._lBlock;
                var rBlock = this._rBlock; // Feistel function

                var f = 0;

                for (var i = 0; i < 8; i++) {
                  f |= SBOX_P[i][((rBlock ^ subKey[i]) & SBOX_MASK[i]) >>> 0];
                }

                this._lBlock = rBlock;
                this._rBlock = lBlock ^ f;
              } // Undo swap from last round


              var t = this._lBlock;
              this._lBlock = this._rBlock;
              this._rBlock = t; // Final permutation

              exchangeLR.call(this, 1, 0x55555555);
              exchangeRL.call(this, 8, 0x00ff00ff);
              exchangeRL.call(this, 2, 0x33333333);
              exchangeLR.call(this, 16, 0x0000ffff);
              exchangeLR.call(this, 4, 0x0f0f0f0f); // Set output

              M[offset] = this._lBlock;
              M[offset + 1] = this._rBlock;
            },
            keySize: 64 / 32,
            ivSize: 64 / 32,
            blockSize: 64 / 32
          }); // Swap bits across the left and right words

          function exchangeLR(offset, mask) {
            var t = (this._lBlock >>> offset ^ this._rBlock) & mask;
            this._rBlock ^= t;
            this._lBlock ^= t << offset;
          }

          function exchangeRL(offset, mask) {
            var t = (this._rBlock >>> offset ^ this._lBlock) & mask;
            this._lBlock ^= t;
            this._rBlock ^= t << offset;
          }
          /**
           * Shortcut functions to the cipher's object interface.
           *
           * @example
           *
           *     var ciphertext = CryptoJS.DES.encrypt(message, key, cfg);
           *     var plaintext  = CryptoJS.DES.decrypt(ciphertext, key, cfg);
           */


          C.DES = BlockCipher._createHelper(DES);
          /**
           * Triple-DES block cipher algorithm.
           */

          var TripleDES = C_algo.TripleDES = BlockCipher.extend({
            _doReset: function _doReset() {
              // Shortcuts
              var key = this._key;
              var keyWords = key.words; // Make sure the key length is valid (64, 128 or >= 192 bit)

              if (keyWords.length !== 2 && keyWords.length !== 4 && keyWords.length < 6) {
                throw new Error('Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.');
              } // Extend the key according to the keying options defined in 3DES standard


              var key1 = keyWords.slice(0, 2);
              var key2 = keyWords.length < 4 ? keyWords.slice(0, 2) : keyWords.slice(2, 4);
              var key3 = keyWords.length < 6 ? keyWords.slice(0, 2) : keyWords.slice(4, 6); // Create DES instances

              this._des1 = DES.createEncryptor(WordArray.create(key1));
              this._des2 = DES.createEncryptor(WordArray.create(key2));
              this._des3 = DES.createEncryptor(WordArray.create(key3));
            },
            encryptBlock: function encryptBlock(M, offset) {
              this._des1.encryptBlock(M, offset);

              this._des2.decryptBlock(M, offset);

              this._des3.encryptBlock(M, offset);
            },
            decryptBlock: function decryptBlock(M, offset) {
              this._des3.decryptBlock(M, offset);

              this._des2.encryptBlock(M, offset);

              this._des1.decryptBlock(M, offset);
            },
            keySize: 192 / 32,
            ivSize: 64 / 32,
            blockSize: 64 / 32
          });
          /**
           * Shortcut functions to the cipher's object interface.
           *
           * @example
           *
           *     var ciphertext = CryptoJS.TripleDES.encrypt(message, key, cfg);
           *     var plaintext  = CryptoJS.TripleDES.decrypt(ciphertext, key, cfg);
           */

          C.TripleDES = BlockCipher._createHelper(TripleDES);
        })();

        return CryptoJS.TripleDES;
      });
      /***/

    },

    /***/
    "pIWV": function pIWV(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return subISOWeekYears;
      });
      /* harmony import */


      var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../_lib/toInteger/index.js */
      "/h9T");
      /* harmony import */


      var _addISOWeekYears_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../addISOWeekYears/index.js */
      "GP2A");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name subISOWeekYears
       * @category ISO Week-Numbering Year Helpers
       * @summary Subtract the specified number of ISO week-numbering years from the given date.
       *
       * @description
       * Subtract the specified number of ISO week-numbering years from the given date.
       *
       * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
       *
       * ### 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).
       *
       * - The function was renamed from `subISOYears` to `subISOWeekYears`.
       *   "ISO week year" is short for [ISO week-numbering year](https://en.wikipedia.org/wiki/ISO_week_date).
       *   This change makes the name consistent with
       *   locale-dependent week-numbering year helpers, e.g., `setWeekYear`.
       *
       * @param {Date|Number} date - the date to be changed
       * @param {Number} amount - the amount of ISO week-numbering years to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
       * @returns {Date} the new date with the ISO week-numbering years subtracted
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // Subtract 5 ISO week-numbering years from 1 September 2014:
       * var result = subISOWeekYears(new Date(2014, 8, 1), 5)
       * //=> Mon Aug 31 2009 00:00:00
       */


      function subISOWeekYears(dirtyDate, dirtyAmount) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(2, arguments);
        var amount = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyAmount);
        return Object(_addISOWeekYears_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate, -amount);
      }
      /***/

    },

    /***/
    "pLZG": function pLZG(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "filter", function () {
        return filter;
      });
      /* harmony import */


      var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Subscriber */
      "7o/Q");

      function filter(predicate, thisArg) {
        return function filterOperatorFunction(source) {
          return source.lift(new FilterOperator(predicate, thisArg));
        };
      }

      var FilterOperator = /*#__PURE__*/function () {
        function FilterOperator(predicate, thisArg) {
          _classCallCheck2(this, FilterOperator);

          this.predicate = predicate;
          this.thisArg = thisArg;
        }

        _createClass2(FilterOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            return source.subscribe(new FilterSubscriber(subscriber, this.predicate, this.thisArg));
          }
        }]);

        return FilterOperator;
      }();

      var FilterSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_41) {
        _inherits2(FilterSubscriber, _Subscriber__WEBPACK_41);

        var _super414 = _createSuper2(FilterSubscriber);

        function FilterSubscriber(destination, predicate, thisArg) {
          var _this857;

          _classCallCheck2(this, FilterSubscriber);

          _this857 = _super414.call(this, destination);
          _this857.predicate = predicate;
          _this857.thisArg = thisArg;
          _this857.count = 0;
          return _this857;
        }

        _createClass2(FilterSubscriber, [{
          key: "_next",
          value: function _next(value) {
            var result;

            try {
              result = this.predicate.call(this.thisArg, value, this.count++);
            } catch (err) {
              this.destination.error(err);
              return;
            }

            if (result) {
              this.destination.next(value);
            }
          }
        }]);

        return FilterSubscriber;
      }(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]); //# sourceMappingURL=filter.js.map

      /***/

    },

    /***/
    "pLzU": function pLzU(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "subscribeToIterable", function () {
        return subscribeToIterable;
      });
      /* harmony import */


      var _symbol_iterator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../symbol/iterator */
      "Lhse");

      var subscribeToIterable = function subscribeToIterable(iterable) {
        return function (subscriber) {
          var iterator = iterable[_symbol_iterator__WEBPACK_IMPORTED_MODULE_0__["iterator"]]();

          do {
            var item = void 0;

            try {
              item = iterator.next();
            } catch (err) {
              subscriber.error(err);
              return subscriber;
            }

            if (item.done) {
              subscriber.complete();
              break;
            }

            subscriber.next(item.value);

            if (subscriber.closed) {
              break;
            }
          } while (true);

          if (typeof iterator["return"] === 'function') {
            subscriber.add(function () {
              if (iterator["return"]) {
                iterator["return"]();
              }
            });
          }

          return subscriber;
        };
      }; //# sourceMappingURL=subscribeToIterable.js.map

      /***/

    },

    /***/
    "pMnS": function pMnS(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "RouterModuleNgFactory", function () {
        return RouterModuleNgFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "RenderType_ɵangular_packages_router_router_l", function () {
        return RenderType_ɵangular_packages_router_router_l;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "View_ɵangular_packages_router_router_l_0", function () {
        return View_ɵangular_packages_router_router_l_0;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "View_ɵangular_packages_router_router_l_Host_0", function () {
        return View_ɵangular_packages_router_router_l_Host_0;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_router_router_lNgFactory", function () {
        return ɵangular_packages_router_router_lNgFactory;
      });
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /* harmony import */


      var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/router */
      "iInd");
      /**
       * @fileoverview This file was generated by the Angular template compiler. Do not edit.
       *
       * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes,extraRequire}
       * tslint:disable
       */


      var RouterModuleNgFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵcmf"](_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"], [], function (_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmod"]([_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](512, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵCodegenComponentFactoryResolver"], [[8, [ɵangular_packages_router_router_lNgFactory]], [3, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"]], _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModuleRef"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"], [[2, _angular_router__WEBPACK_IMPORTED_MODULE_1__["ɵangular_packages_router_router_a"]], [2, _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"]]])]);
      });

      var styles_ɵangular_packages_router_router_l = [];

      var RenderType_ɵangular_packages_router_router_l = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵcrt"]({
        encapsulation: 2,
        styles: styles_ɵangular_packages_router_router_l,
        data: {}
      });

      function View_ɵangular_packages_router_router_l_0(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](0, 16777216, null, null, 1, "router-outlet", [], null, null, null, null, null)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](1, 212992, null, 0, _angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterOutlet"], [_angular_router__WEBPACK_IMPORTED_MODULE_1__["ChildrenOutletContexts"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"], [8, null], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"]], null, null)], function (_ck, _v) {
          _ck(_v, 1, 0);
        }, null);
      }

      function View_ɵangular_packages_router_router_l_Host_0(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](0, 0, null, null, 1, "ng-component", [], null, null, null, View_ɵangular_packages_router_router_l_0, RenderType_ɵangular_packages_router_router_l)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](1, 49152, null, 0, _angular_router__WEBPACK_IMPORTED_MODULE_1__["ɵangular_packages_router_router_l"], [], null, null)], null, null);
      }

      var ɵangular_packages_router_router_lNgFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵccf"]("ng-component", _angular_router__WEBPACK_IMPORTED_MODULE_1__["ɵangular_packages_router_router_l"], View_ɵangular_packages_router_router_l_Host_0, {}, {}, []);
      /***/

    },

    /***/
    "pMoy": function pMoy(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MAT_CHECKBOX_CONTROL_VALUE_ACCESSOR", function () {
        return MAT_CHECKBOX_CONTROL_VALUE_ACCESSOR;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MAT_CHECKBOX_DEFAULT_OPTIONS", function () {
        return MAT_CHECKBOX_DEFAULT_OPTIONS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MAT_CHECKBOX_DEFAULT_OPTIONS_FACTORY", function () {
        return MAT_CHECKBOX_DEFAULT_OPTIONS_FACTORY;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MAT_CHECKBOX_REQUIRED_VALIDATOR", function () {
        return MAT_CHECKBOX_REQUIRED_VALIDATOR;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatCheckbox", function () {
        return MatCheckbox;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatCheckboxChange", function () {
        return MatCheckboxChange;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatCheckboxModule", function () {
        return MatCheckboxModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatCheckboxRequiredValidator", function () {
        return MatCheckboxRequiredValidator;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "_MatCheckboxRequiredValidatorModule", function () {
        return _MatCheckboxRequiredValidatorModule;
      });
      /* harmony import */


      var _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/cdk/a11y */
      "YEUz");
      /* harmony import */


      var _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/cdk/coercion */
      "8LU1");
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /* harmony import */


      var _angular_forms__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! @angular/forms */
      "s7LF");
      /* harmony import */


      var _angular_material_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! @angular/material/core */
      "UhP/");
      /* harmony import */


      var _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! @angular/platform-browser/animations */
      "omvX");
      /* harmony import */


      var _angular_cdk_observers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
      /*! @angular/cdk/observers */
      "9b/N");
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** Injection token to be used to override the default options for `mat-checkbox`. */


      var _c0 = ["input"];

      var _c1 = function _c1() {
        return {
          enterDuration: 150
        };
      };

      var _c2 = ["*"];
      var MAT_CHECKBOX_DEFAULT_OPTIONS = new _angular_core__WEBPACK_IMPORTED_MODULE_2__["InjectionToken"]('mat-checkbox-default-options', {
        providedIn: 'root',
        factory: MAT_CHECKBOX_DEFAULT_OPTIONS_FACTORY
      });
      /** @docs-private */

      function MAT_CHECKBOX_DEFAULT_OPTIONS_FACTORY() {
        return {
          color: 'accent',
          clickAction: 'check-indeterminate'
        };
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */
      // Increasing integer for generating unique ids for checkbox components.


      var nextUniqueId = 0;
      /**
       * Provider Expression that allows mat-checkbox to register as a ControlValueAccessor.
       * This allows it to support [(ngModel)].
       * @docs-private
       */

      var MAT_CHECKBOX_CONTROL_VALUE_ACCESSOR = {
        provide: _angular_forms__WEBPACK_IMPORTED_MODULE_3__["NG_VALUE_ACCESSOR"],
        useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["forwardRef"])(function () {
          return MatCheckbox;
        }),
        multi: true
      };
      /** Change event object emitted by MatCheckbox. */

      var MatCheckboxChange = function MatCheckboxChange() {
        _classCallCheck2(this, MatCheckboxChange);
      }; // Boilerplate for applying mixins to MatCheckbox.

      /** @docs-private */


      var MatCheckboxBase = function MatCheckboxBase(_elementRef) {
        _classCallCheck2(this, MatCheckboxBase);

        this._elementRef = _elementRef;
      };

      var _MatCheckboxMixinBase = Object(_angular_material_core__WEBPACK_IMPORTED_MODULE_4__["mixinTabIndex"])(Object(_angular_material_core__WEBPACK_IMPORTED_MODULE_4__["mixinColor"])(Object(_angular_material_core__WEBPACK_IMPORTED_MODULE_4__["mixinDisableRipple"])(Object(_angular_material_core__WEBPACK_IMPORTED_MODULE_4__["mixinDisabled"])(MatCheckboxBase))));
      /**
       * A material design checkbox component. Supports all of the functionality of an HTML5 checkbox,
       * and exposes a similar API. A MatCheckbox can be either checked, unchecked, indeterminate, or
       * disabled. Note that all additional accessibility attributes are taken care of by the component,
       * so there is no need to provide them yourself. However, if you want to omit a label and still
       * have the checkbox be accessible, you may supply an [aria-label] input.
       * See: https://material.io/design/components/selection-controls.html
       */


      var MatCheckbox = /*#__PURE__*/function (_MatCheckboxMixinBase2) {
        _inherits2(MatCheckbox, _MatCheckboxMixinBase2);

        var _super415 = _createSuper2(MatCheckbox);

        function MatCheckbox(elementRef, _changeDetectorRef, _focusMonitor, _ngZone, tabIndex, _animationMode, _options) {
          var _this858;

          _classCallCheck2(this, MatCheckbox);

          _this858 = _super415.call(this, elementRef);
          _this858._changeDetectorRef = _changeDetectorRef;
          _this858._focusMonitor = _focusMonitor;
          _this858._ngZone = _ngZone;
          _this858._animationMode = _animationMode;
          _this858._options = _options;
          /**
           * Attached to the aria-label attribute of the host element. In most cases, aria-labelledby will
           * take precedence so this may be omitted.
           */

          _this858.ariaLabel = '';
          /**
           * Users can specify the `aria-labelledby` attribute which will be forwarded to the input element
           */

          _this858.ariaLabelledby = null;
          _this858._uniqueId = "mat-checkbox-".concat(++nextUniqueId);
          /** A unique id for the checkbox input. If none is supplied, it will be auto-generated. */

          _this858.id = _this858._uniqueId;
          /** Whether the label should appear after or before the checkbox. Defaults to 'after' */

          _this858.labelPosition = 'after';
          /** Name value will be applied to the input element if present */

          _this858.name = null;
          /** Event emitted when the checkbox's `checked` value changes. */

          _this858.change = new _angular_core__WEBPACK_IMPORTED_MODULE_2__["EventEmitter"]();
          /** Event emitted when the checkbox's `indeterminate` value changes. */

          _this858.indeterminateChange = new _angular_core__WEBPACK_IMPORTED_MODULE_2__["EventEmitter"]();
          /**
           * Called when the checkbox is blurred. Needed to properly implement ControlValueAccessor.
           * @docs-private
           */

          _this858._onTouched = function () {};

          _this858._currentAnimationClass = '';
          _this858._currentCheckState = 0
          /* Init */
          ;

          _this858._controlValueAccessorChangeFn = function () {};

          _this858._checked = false;
          _this858._disabled = false;
          _this858._indeterminate = false;
          _this858._options = _this858._options || {};

          if (_this858._options.color) {
            _this858.color = _this858.defaultColor = _this858._options.color;
          }

          _this858.tabIndex = parseInt(tabIndex) || 0;
          return _this858;
        }
        /** Returns the unique id for the visual hidden input. */


        _createClass2(MatCheckbox, [{
          key: "inputId",
          get: function get() {
            return "".concat(this.id || this._uniqueId, "-input");
          }
          /** Whether the checkbox is required. */

        }, {
          key: "required",
          get: function get() {
            return this._required;
          },
          set: function set(value) {
            this._required = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_1__["coerceBooleanProperty"])(value);
          }
        }, {
          key: "ngAfterViewInit",
          value: function ngAfterViewInit() {
            var _this859 = this;

            this._focusMonitor.monitor(this._elementRef, true).subscribe(function (focusOrigin) {
              if (!focusOrigin) {
                // When a focused element becomes disabled, the browser *immediately* fires a blur event.
                // Angular does not expect events to be raised during change detection, so any state change
                // (such as a form control's 'ng-touched') will cause a changed-after-checked error.
                // See https://github.com/angular/angular/issues/17793. To work around this, we defer
                // telling the form control it has been touched until the next tick.
                Promise.resolve().then(function () {
                  _this859._onTouched();

                  _this859._changeDetectorRef.markForCheck();
                });
              }
            });

            this._syncIndeterminate(this._indeterminate);
          } // TODO: Delete next major revision.

        }, {
          key: "ngAfterViewChecked",
          value: function ngAfterViewChecked() {}
        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            this._focusMonitor.stopMonitoring(this._elementRef);
          }
          /**
           * Whether the checkbox is checked.
           */

        }, {
          key: "checked",
          get: function get() {
            return this._checked;
          },
          set: function set(value) {
            if (value != this.checked) {
              this._checked = value;

              this._changeDetectorRef.markForCheck();
            }
          }
          /**
           * Whether the checkbox is disabled. This fully overrides the implementation provided by
           * mixinDisabled, but the mixin is still required because mixinTabIndex requires it.
           */

        }, {
          key: "disabled",
          get: function get() {
            return this._disabled;
          },
          set: function set(value) {
            var newValue = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_1__["coerceBooleanProperty"])(value);

            if (newValue !== this.disabled) {
              this._disabled = newValue;

              this._changeDetectorRef.markForCheck();
            }
          }
          /**
           * Whether the checkbox is indeterminate. This is also known as "mixed" mode and can be used to
           * represent a checkbox with three states, e.g. a checkbox that represents a nested list of
           * checkable items. Note that whenever checkbox is manually clicked, indeterminate is immediately
           * set to false.
           */

        }, {
          key: "indeterminate",
          get: function get() {
            return this._indeterminate;
          },
          set: function set(value) {
            var changed = value != this._indeterminate;
            this._indeterminate = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_1__["coerceBooleanProperty"])(value);

            if (changed) {
              if (this._indeterminate) {
                this._transitionCheckState(3
                /* Indeterminate */
                );
              } else {
                this._transitionCheckState(this.checked ? 1
                /* Checked */
                : 2
                /* Unchecked */
                );
              }

              this.indeterminateChange.emit(this._indeterminate);
            }

            this._syncIndeterminate(this._indeterminate);
          }
        }, {
          key: "_isRippleDisabled",
          value: function _isRippleDisabled() {
            return this.disableRipple || this.disabled;
          }
          /** Method being called whenever the label text changes. */

        }, {
          key: "_onLabelTextChange",
          value: function _onLabelTextChange() {
            // Since the event of the `cdkObserveContent` directive runs outside of the zone, the checkbox
            // component will be only marked for check, but no actual change detection runs automatically.
            // Instead of going back into the zone in order to trigger a change detection which causes
            // *all* components to be checked (if explicitly marked or not using OnPush), we only trigger
            // an explicit change detection for the checkbox view and its children.
            this._changeDetectorRef.detectChanges();
          } // Implemented as part of ControlValueAccessor.

        }, {
          key: "writeValue",
          value: function writeValue(value) {
            this.checked = !!value;
          } // Implemented as part of ControlValueAccessor.

        }, {
          key: "registerOnChange",
          value: function registerOnChange(fn) {
            this._controlValueAccessorChangeFn = fn;
          } // Implemented as part of ControlValueAccessor.

        }, {
          key: "registerOnTouched",
          value: function registerOnTouched(fn) {
            this._onTouched = fn;
          } // Implemented as part of ControlValueAccessor.

        }, {
          key: "setDisabledState",
          value: function setDisabledState(isDisabled) {
            this.disabled = isDisabled;
          }
        }, {
          key: "_getAriaChecked",
          value: function _getAriaChecked() {
            if (this.checked) {
              return 'true';
            }

            return this.indeterminate ? 'mixed' : 'false';
          }
        }, {
          key: "_transitionCheckState",
          value: function _transitionCheckState(newState) {
            var oldState = this._currentCheckState;
            var element = this._elementRef.nativeElement;

            if (oldState === newState) {
              return;
            }

            if (this._currentAnimationClass.length > 0) {
              element.classList.remove(this._currentAnimationClass);
            }

            this._currentAnimationClass = this._getAnimationClassForCheckStateTransition(oldState, newState);
            this._currentCheckState = newState;

            if (this._currentAnimationClass.length > 0) {
              element.classList.add(this._currentAnimationClass); // Remove the animation class to avoid animation when the checkbox is moved between containers

              var animationClass = this._currentAnimationClass;

              this._ngZone.runOutsideAngular(function () {
                setTimeout(function () {
                  element.classList.remove(animationClass);
                }, 1000);
              });
            }
          }
        }, {
          key: "_emitChangeEvent",
          value: function _emitChangeEvent() {
            var event = new MatCheckboxChange();
            event.source = this;
            event.checked = this.checked;

            this._controlValueAccessorChangeFn(this.checked);

            this.change.emit(event);
          }
          /** Toggles the `checked` state of the checkbox. */

        }, {
          key: "toggle",
          value: function toggle() {
            this.checked = !this.checked;
          }
          /**
           * Event handler for checkbox input element.
           * Toggles checked state if element is not disabled.
           * Do not toggle on (change) event since IE doesn't fire change event when
           *   indeterminate checkbox is clicked.
           * @param event
           */

        }, {
          key: "_onInputClick",
          value: function _onInputClick(event) {
            var _this860 = this;

            var _a;

            var clickAction = (_a = this._options) === null || _a === void 0 ? void 0 : _a.clickAction; // We have to stop propagation for click events on the visual hidden input element.
            // By default, when a user clicks on a label element, a generated click event will be
            // dispatched on the associated input element. Since we are using a label element as our
            // root container, the click event on the `checkbox` will be executed twice.
            // The real click event will bubble up, and the generated click event also tries to bubble up.
            // This will lead to multiple click events.
            // Preventing bubbling for the second event will solve that issue.

            event.stopPropagation(); // If resetIndeterminate is false, and the current state is indeterminate, do nothing on click

            if (!this.disabled && clickAction !== 'noop') {
              // When user manually click on the checkbox, `indeterminate` is set to false.
              if (this.indeterminate && clickAction !== 'check') {
                Promise.resolve().then(function () {
                  _this860._indeterminate = false;

                  _this860.indeterminateChange.emit(_this860._indeterminate);
                });
              }

              this.toggle();

              this._transitionCheckState(this._checked ? 1
              /* Checked */
              : 2
              /* Unchecked */
              ); // Emit our custom change event if the native input emitted one.
              // It is important to only emit it, if the native input triggered one, because
              // we don't want to trigger a change event, when the `checked` variable changes for example.


              this._emitChangeEvent();
            } else if (!this.disabled && clickAction === 'noop') {
              // Reset native input when clicked with noop. The native checkbox becomes checked after
              // click, reset it to be align with `checked` value of `mat-checkbox`.
              this._inputElement.nativeElement.checked = this.checked;
              this._inputElement.nativeElement.indeterminate = this.indeterminate;
            }
          }
          /** Focuses the checkbox. */

        }, {
          key: "focus",
          value: function focus() {
            var origin = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'keyboard';
            var options = arguments.length > 1 ? arguments[1] : undefined;

            this._focusMonitor.focusVia(this._inputElement, origin, options);
          }
        }, {
          key: "_onInteractionEvent",
          value: function _onInteractionEvent(event) {
            // We always have to stop propagation on the change event.
            // Otherwise the change event, from the input element, will bubble up and
            // emit its event object to the `change` output.
            event.stopPropagation();
          }
        }, {
          key: "_getAnimationClassForCheckStateTransition",
          value: function _getAnimationClassForCheckStateTransition(oldState, newState) {
            // Don't transition if animations are disabled.
            if (this._animationMode === 'NoopAnimations') {
              return '';
            }

            var animSuffix = '';

            switch (oldState) {
              case 0
              /* Init */
              :
                // Handle edge case where user interacts with checkbox that does not have [(ngModel)] or
                // [checked] bound to it.
                if (newState === 1
                /* Checked */
                ) {
                  animSuffix = 'unchecked-checked';
                } else if (newState == 3
                /* Indeterminate */
                ) {
                  animSuffix = 'unchecked-indeterminate';
                } else {
                  return '';
                }

                break;

              case 2
              /* Unchecked */
              :
                animSuffix = newState === 1
                /* Checked */
                ? 'unchecked-checked' : 'unchecked-indeterminate';
                break;

              case 1
              /* Checked */
              :
                animSuffix = newState === 2
                /* Unchecked */
                ? 'checked-unchecked' : 'checked-indeterminate';
                break;

              case 3
              /* Indeterminate */
              :
                animSuffix = newState === 1
                /* Checked */
                ? 'indeterminate-checked' : 'indeterminate-unchecked';
                break;
            }

            return "mat-checkbox-anim-".concat(animSuffix);
          }
          /**
           * Syncs the indeterminate value with the checkbox DOM node.
           *
           * We sync `indeterminate` directly on the DOM node, because in Ivy the check for whether a
           * property is supported on an element boils down to `if (propName in element)`. Domino's
           * HTMLInputElement doesn't have an `indeterminate` property so Ivy will warn during
           * server-side rendering.
           */

        }, {
          key: "_syncIndeterminate",
          value: function _syncIndeterminate(value) {
            var nativeCheckbox = this._inputElement;

            if (nativeCheckbox) {
              nativeCheckbox.nativeElement.indeterminate = value;
            }
          }
        }]);

        return MatCheckbox;
      }(_MatCheckboxMixinBase);

      MatCheckbox.ɵfac = function MatCheckbox_Factory(t) {
        return new (t || MatCheckbox)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_2__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_2__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_0__["FocusMonitor"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_2__["NgZone"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵinjectAttribute"]('tabindex'), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_5__["ANIMATION_MODULE_TYPE"], 8), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](MAT_CHECKBOX_DEFAULT_OPTIONS, 8));
      };

      MatCheckbox.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({
        type: MatCheckbox,
        selectors: [["mat-checkbox"]],
        viewQuery: function MatCheckbox_Query(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵviewQuery"](_c0, true);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵviewQuery"](_angular_material_core__WEBPACK_IMPORTED_MODULE_4__["MatRipple"], true);
          }

          if (rf & 2) {
            var _t;

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵloadQuery"]()) && (ctx._inputElement = _t.first);
            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵloadQuery"]()) && (ctx.ripple = _t.first);
          }
        },
        hostAttrs: [1, "mat-checkbox"],
        hostVars: 12,
        hostBindings: function MatCheckbox_HostBindings(rf, ctx) {
          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵhostProperty"]("id", ctx.id);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵattribute"]("tabindex", null);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassProp"]("mat-checkbox-indeterminate", ctx.indeterminate)("mat-checkbox-checked", ctx.checked)("mat-checkbox-disabled", ctx.disabled)("mat-checkbox-label-before", ctx.labelPosition == "before")("_mat-animation-noopable", ctx._animationMode === "NoopAnimations");
          }
        },
        inputs: {
          disableRipple: "disableRipple",
          color: "color",
          tabIndex: "tabIndex",
          ariaLabel: ["aria-label", "ariaLabel"],
          ariaLabelledby: ["aria-labelledby", "ariaLabelledby"],
          id: "id",
          labelPosition: "labelPosition",
          name: "name",
          required: "required",
          checked: "checked",
          disabled: "disabled",
          indeterminate: "indeterminate",
          ariaDescribedby: ["aria-describedby", "ariaDescribedby"],
          value: "value"
        },
        outputs: {
          change: "change",
          indeterminateChange: "indeterminateChange"
        },
        exportAs: ["matCheckbox"],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵProvidersFeature"]([MAT_CHECKBOX_CONTROL_VALUE_ACCESSOR]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵInheritDefinitionFeature"]],
        ngContentSelectors: _c2,
        decls: 17,
        vars: 20,
        consts: [[1, "mat-checkbox-layout"], ["label", ""], [1, "mat-checkbox-inner-container"], ["type", "checkbox", 1, "mat-checkbox-input", "cdk-visually-hidden", 3, "id", "required", "checked", "disabled", "tabIndex", "change", "click"], ["input", ""], ["matRipple", "", 1, "mat-checkbox-ripple", "mat-focus-indicator", 3, "matRippleTrigger", "matRippleDisabled", "matRippleRadius", "matRippleCentered", "matRippleAnimation"], [1, "mat-ripple-element", "mat-checkbox-persistent-ripple"], [1, "mat-checkbox-frame"], [1, "mat-checkbox-background"], ["version", "1.1", "focusable", "false", "viewBox", "0 0 24 24", 0, "xml", "space", "preserve", 1, "mat-checkbox-checkmark"], ["fill", "none", "stroke", "white", "d", "M4.1,12.7 9,17.6 20.3,6.3", 1, "mat-checkbox-checkmark-path"], [1, "mat-checkbox-mixedmark"], [1, "mat-checkbox-label", 3, "cdkObserveContent"], ["checkboxLabel", ""], [2, "display", "none"]],
        template: function MatCheckbox_Template(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵprojectionDef"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "label", 0, 1);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 2);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "input", 3, 4);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function MatCheckbox_Template_input_change_3_listener($event) {
              return ctx._onInteractionEvent($event);
            })("click", function MatCheckbox_Template_input_click_3_listener($event) {
              return ctx._onInputClick($event);
            });

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 5);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](6, "div", 6);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](7, "div", 7);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "div", 8);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnamespaceSVG"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "svg", 9);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](10, "path", 10);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnamespaceHTML"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](11, "div", 11);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "span", 12, 13);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("cdkObserveContent", function MatCheckbox_Template_span_cdkObserveContent_12_listener() {
              return ctx._onLabelTextChange();
            });

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](14, "span", 14);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](15, "\xA0");

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵprojection"](16);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
          }

          if (rf & 2) {
            var _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵreference"](1);

            var _r2 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵreference"](13);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵattribute"]("for", ctx.inputId);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassProp"]("mat-checkbox-inner-container-no-side-margin", !_r2.textContent || !_r2.textContent.trim());

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("id", ctx.inputId)("required", ctx.required)("checked", ctx.checked)("disabled", ctx.disabled)("tabIndex", ctx.tabIndex);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵattribute"]("value", ctx.value)("name", ctx.name)("aria-label", ctx.ariaLabel || null)("aria-labelledby", ctx.ariaLabelledby)("aria-checked", ctx._getAriaChecked())("aria-describedby", ctx.ariaDescribedby);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);

            _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("matRippleTrigger", _r0)("matRippleDisabled", ctx._isRippleDisabled())("matRippleRadius", 20)("matRippleCentered", true)("matRippleAnimation", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction0"](19, _c1));
          }
        },
        directives: [_angular_material_core__WEBPACK_IMPORTED_MODULE_4__["MatRipple"], _angular_cdk_observers__WEBPACK_IMPORTED_MODULE_6__["CdkObserveContent"]],
        styles: ["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-frame{border-style:dotted}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}\n"],
        encapsulation: 2,
        changeDetection: 0
      });

      MatCheckbox.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ElementRef"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ChangeDetectorRef"]
        }, {
          type: _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_0__["FocusMonitor"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["NgZone"]
        }, {
          type: String,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Attribute"],
            args: ['tabindex']
          }]
        }, {
          type: String,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Inject"],
            args: [_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_5__["ANIMATION_MODULE_TYPE"]]
          }]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Inject"],
            args: [MAT_CHECKBOX_DEFAULT_OPTIONS]
          }]
        }];
      };

      MatCheckbox.propDecorators = {
        ariaLabel: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"],
          args: ['aria-label']
        }],
        ariaLabelledby: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"],
          args: ['aria-labelledby']
        }],
        ariaDescribedby: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"],
          args: ['aria-describedby']
        }],
        id: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
        }],
        required: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
        }],
        labelPosition: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
        }],
        name: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
        }],
        change: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Output"]
        }],
        indeterminateChange: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Output"]
        }],
        value: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
        }],
        _inputElement: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewChild"],
          args: ['input']
        }],
        ripple: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewChild"],
          args: [_angular_material_core__WEBPACK_IMPORTED_MODULE_4__["MatRipple"]]
        }],
        checked: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
        }],
        disabled: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
        }],
        indeterminate: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵsetClassMetadata"](MatCheckbox, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Component"],
          args: [{
            selector: 'mat-checkbox',
            template: "<label [attr.for]=\"inputId\" class=\"mat-checkbox-layout\" #label>\n  <div class=\"mat-checkbox-inner-container\"\n       [class.mat-checkbox-inner-container-no-side-margin]=\"!checkboxLabel.textContent || !checkboxLabel.textContent.trim()\">\n    <input #input\n           class=\"mat-checkbox-input cdk-visually-hidden\" type=\"checkbox\"\n           [id]=\"inputId\"\n           [required]=\"required\"\n           [checked]=\"checked\"\n           [attr.value]=\"value\"\n           [disabled]=\"disabled\"\n           [attr.name]=\"name\"\n           [tabIndex]=\"tabIndex\"\n           [attr.aria-label]=\"ariaLabel || null\"\n           [attr.aria-labelledby]=\"ariaLabelledby\"\n           [attr.aria-checked]=\"_getAriaChecked()\"\n           [attr.aria-describedby]=\"ariaDescribedby\"\n           (change)=\"_onInteractionEvent($event)\"\n           (click)=\"_onInputClick($event)\">\n    <div matRipple class=\"mat-checkbox-ripple mat-focus-indicator\"\n         [matRippleTrigger]=\"label\"\n         [matRippleDisabled]=\"_isRippleDisabled()\"\n         [matRippleRadius]=\"20\"\n         [matRippleCentered]=\"true\"\n         [matRippleAnimation]=\"{enterDuration: 150}\">\n      <div class=\"mat-ripple-element mat-checkbox-persistent-ripple\"></div>\n    </div>\n    <div class=\"mat-checkbox-frame\"></div>\n    <div class=\"mat-checkbox-background\">\n      <svg version=\"1.1\"\n           focusable=\"false\"\n           class=\"mat-checkbox-checkmark\"\n           viewBox=\"0 0 24 24\"\n           xml:space=\"preserve\">\n        <path class=\"mat-checkbox-checkmark-path\"\n              fill=\"none\"\n              stroke=\"white\"\n              d=\"M4.1,12.7 9,17.6 20.3,6.3\"/>\n      </svg>\n      <!-- Element for rendering the indeterminate state checkbox. -->\n      <div class=\"mat-checkbox-mixedmark\"></div>\n    </div>\n  </div>\n  <span class=\"mat-checkbox-label\" #checkboxLabel (cdkObserveContent)=\"_onLabelTextChange()\">\n    <!-- Add an invisible span so JAWS can read the label -->\n    <span style=\"display:none\">&nbsp;</span>\n    <ng-content></ng-content>\n  </span>\n</label>\n",
            exportAs: 'matCheckbox',
            host: {
              'class': 'mat-checkbox',
              '[id]': 'id',
              '[attr.tabindex]': 'null',
              '[class.mat-checkbox-indeterminate]': 'indeterminate',
              '[class.mat-checkbox-checked]': 'checked',
              '[class.mat-checkbox-disabled]': 'disabled',
              '[class.mat-checkbox-label-before]': 'labelPosition == "before"',
              '[class._mat-animation-noopable]': "_animationMode === 'NoopAnimations'"
            },
            providers: [MAT_CHECKBOX_CONTROL_VALUE_ACCESSOR],
            inputs: ['disableRipple', 'color', 'tabIndex'],
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewEncapsulation"].None,
            changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ChangeDetectionStrategy"].OnPush,
            styles: ["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-frame{border-style:dotted}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}\n"]
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ElementRef"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ChangeDetectorRef"]
          }, {
            type: _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_0__["FocusMonitor"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["NgZone"]
          }, {
            type: String,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Attribute"],
              args: ['tabindex']
            }]
          }, {
            type: String,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Inject"],
              args: [_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_5__["ANIMATION_MODULE_TYPE"]]
            }]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Inject"],
              args: [MAT_CHECKBOX_DEFAULT_OPTIONS]
            }]
          }];
        }, {
          ariaLabel: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"],
            args: ['aria-label']
          }],
          ariaLabelledby: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"],
            args: ['aria-labelledby']
          }],
          id: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
          }],
          labelPosition: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
          }],
          name: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
          }],
          change: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Output"]
          }],
          indeterminateChange: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Output"]
          }],
          required: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
          }],
          checked: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
          }],
          disabled: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
          }],
          indeterminate: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
          }],
          ariaDescribedby: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"],
            args: ['aria-describedby']
          }],
          value: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
          }],
          _inputElement: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewChild"],
            args: ['input']
          }],
          ripple: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewChild"],
            args: [_angular_material_core__WEBPACK_IMPORTED_MODULE_4__["MatRipple"]]
          }]
        });
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var MAT_CHECKBOX_REQUIRED_VALIDATOR = {
        provide: _angular_forms__WEBPACK_IMPORTED_MODULE_3__["NG_VALIDATORS"],
        useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["forwardRef"])(function () {
          return MatCheckboxRequiredValidator;
        }),
        multi: true
      };
      /**
       * Validator for Material checkbox's required attribute in template-driven checkbox.
       * Current CheckboxRequiredValidator only work with `input type=checkbox` and does not
       * work with `mat-checkbox`.
       */

      var MatCheckboxRequiredValidator = /*#__PURE__*/function (_angular_forms__WEBPA2) {
        _inherits2(MatCheckboxRequiredValidator, _angular_forms__WEBPA2);

        var _super416 = _createSuper2(MatCheckboxRequiredValidator);

        function MatCheckboxRequiredValidator() {
          _classCallCheck2(this, MatCheckboxRequiredValidator);

          return _super416.apply(this, arguments);
        }

        return MatCheckboxRequiredValidator;
      }(_angular_forms__WEBPACK_IMPORTED_MODULE_3__["CheckboxRequiredValidator"]);

      MatCheckboxRequiredValidator.ɵfac = function MatCheckboxRequiredValidator_Factory(t) {
        return ɵMatCheckboxRequiredValidator_BaseFactory(t || MatCheckboxRequiredValidator);
      };

      MatCheckboxRequiredValidator.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineDirective"]({
        type: MatCheckboxRequiredValidator,
        selectors: [["mat-checkbox", "required", "", "formControlName", ""], ["mat-checkbox", "required", "", "formControl", ""], ["mat-checkbox", "required", "", "ngModel", ""]],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵProvidersFeature"]([MAT_CHECKBOX_REQUIRED_VALIDATOR]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵInheritDefinitionFeature"]]
      });

      var ɵMatCheckboxRequiredValidator_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetInheritedFactory"](MatCheckboxRequiredValidator);
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵsetClassMetadata"](MatCheckboxRequiredValidator, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Directive"],
          args: [{
            selector: "mat-checkbox[required][formControlName],\n             mat-checkbox[required][formControl], mat-checkbox[required][ngModel]",
            providers: [MAT_CHECKBOX_REQUIRED_VALIDATOR]
          }]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** This module is used by both original and MDC-based checkbox implementations. */


      var _MatCheckboxRequiredValidatorModule = function _MatCheckboxRequiredValidatorModule() {
        _classCallCheck2(this, _MatCheckboxRequiredValidatorModule);
      };

      _MatCheckboxRequiredValidatorModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineNgModule"]({
        type: _MatCheckboxRequiredValidatorModule
      });
      _MatCheckboxRequiredValidatorModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineInjector"]({
        factory: function _MatCheckboxRequiredValidatorModule_Factory(t) {
          return new (t || _MatCheckboxRequiredValidatorModule)();
        }
      });

      (function () {
        (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsetNgModuleScope"](_MatCheckboxRequiredValidatorModule, {
          declarations: [MatCheckboxRequiredValidator],
          exports: [MatCheckboxRequiredValidator]
        });
      })();
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵsetClassMetadata"](_MatCheckboxRequiredValidatorModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["NgModule"],
          args: [{
            exports: [MatCheckboxRequiredValidator],
            declarations: [MatCheckboxRequiredValidator]
          }]
        }], null, null);
      })();

      var MatCheckboxModule = function MatCheckboxModule() {
        _classCallCheck2(this, MatCheckboxModule);
      };

      MatCheckboxModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineNgModule"]({
        type: MatCheckboxModule
      });
      MatCheckboxModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineInjector"]({
        factory: function MatCheckboxModule_Factory(t) {
          return new (t || MatCheckboxModule)();
        },
        imports: [[_angular_material_core__WEBPACK_IMPORTED_MODULE_4__["MatRippleModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_4__["MatCommonModule"], _angular_cdk_observers__WEBPACK_IMPORTED_MODULE_6__["ObserversModule"], _MatCheckboxRequiredValidatorModule], _angular_material_core__WEBPACK_IMPORTED_MODULE_4__["MatCommonModule"], _MatCheckboxRequiredValidatorModule]
      });

      (function () {
        (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsetNgModuleScope"](MatCheckboxModule, {
          declarations: function declarations() {
            return [MatCheckbox];
          },
          imports: function imports() {
            return [_angular_material_core__WEBPACK_IMPORTED_MODULE_4__["MatRippleModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_4__["MatCommonModule"], _angular_cdk_observers__WEBPACK_IMPORTED_MODULE_6__["ObserversModule"], _MatCheckboxRequiredValidatorModule];
          },
          exports: function exports() {
            return [MatCheckbox, _angular_material_core__WEBPACK_IMPORTED_MODULE_4__["MatCommonModule"], _MatCheckboxRequiredValidatorModule];
          }
        });
      })();
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵsetClassMetadata"](MatCheckboxModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["NgModule"],
          args: [{
            imports: [_angular_material_core__WEBPACK_IMPORTED_MODULE_4__["MatRippleModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_4__["MatCommonModule"], _angular_cdk_observers__WEBPACK_IMPORTED_MODULE_6__["ObserversModule"], _MatCheckboxRequiredValidatorModule],
            exports: [MatCheckbox, _angular_material_core__WEBPACK_IMPORTED_MODULE_4__["MatCommonModule"], _MatCheckboxRequiredValidatorModule],
            declarations: [MatCheckbox]
          }]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Generated bundle index. Do not edit.
       */
      //# sourceMappingURL=checkbox.js.map

      /***/

    },

    /***/
    "pR7g": function pR7g(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return setUTCISOWeek;
      });
      /* harmony import */


      var _toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toInteger/index.js */
      "/h9T");
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _getUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../getUTCISOWeek/index.js */
      "lgZR");
      /* harmony import */


      var _requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../requiredArgs/index.js */
      "jIYg"); // This function will be a part of public API when UTC function will be implemented.
      // See issue: https://github.com/date-fns/date-fns/issues/376


      function setUTCISOWeek(dirtyDate, dirtyISOWeek) {
        Object(_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(2, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate);
        var isoWeek = Object(_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyISOWeek);
        var diff = Object(_getUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(date) - isoWeek;
        date.setUTCDate(date.getUTCDate() - diff * 7);
        return date;
      }
      /***/

    },

    /***/
    "pXlZ": function pXlZ(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "windowWhen", function () {
        return windowWhen;
      });
      /* harmony import */


      var _Subject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Subject */
      "XNiG");
      /* harmony import */


      var _OuterSubscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../OuterSubscriber */
      "l7GE");
      /* harmony import */


      var _util_subscribeToResult__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../util/subscribeToResult */
      "ZUHj");

      function windowWhen(closingSelector) {
        return function windowWhenOperatorFunction(source) {
          return source.lift(new WindowOperator(closingSelector));
        };
      }

      var WindowOperator = /*#__PURE__*/function () {
        function WindowOperator(closingSelector) {
          _classCallCheck2(this, WindowOperator);

          this.closingSelector = closingSelector;
        }

        _createClass2(WindowOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            return source.subscribe(new WindowSubscriber(subscriber, this.closingSelector));
          }
        }]);

        return WindowOperator;
      }();

      var WindowSubscriber = /*#__PURE__*/function (_OuterSubscriber__WEB5) {
        _inherits2(WindowSubscriber, _OuterSubscriber__WEB5);

        var _super417 = _createSuper2(WindowSubscriber);

        function WindowSubscriber(destination, closingSelector) {
          var _this861;

          _classCallCheck2(this, WindowSubscriber);

          _this861 = _super417.call(this, destination);
          _this861.destination = destination;
          _this861.closingSelector = closingSelector;

          _this861.openWindow();

          return _this861;
        }

        _createClass2(WindowSubscriber, [{
          key: "notifyNext",
          value: function notifyNext(_outerValue, _innerValue, _outerIndex, _innerIndex, innerSub) {
            this.openWindow(innerSub);
          }
        }, {
          key: "notifyError",
          value: function notifyError(error) {
            this._error(error);
          }
        }, {
          key: "notifyComplete",
          value: function notifyComplete(innerSub) {
            this.openWindow(innerSub);
          }
        }, {
          key: "_next",
          value: function _next(value) {
            this.window.next(value);
          }
        }, {
          key: "_error",
          value: function _error(err) {
            this.window.error(err);
            this.destination.error(err);
            this.unsubscribeClosingNotification();
          }
        }, {
          key: "_complete",
          value: function _complete() {
            this.window.complete();
            this.destination.complete();
            this.unsubscribeClosingNotification();
          }
        }, {
          key: "unsubscribeClosingNotification",
          value: function unsubscribeClosingNotification() {
            if (this.closingNotification) {
              this.closingNotification.unsubscribe();
            }
          }
        }, {
          key: "openWindow",
          value: function openWindow() {
            var innerSub = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;

            if (innerSub) {
              this.remove(innerSub);
              innerSub.unsubscribe();
            }

            var prevWindow = this.window;

            if (prevWindow) {
              prevWindow.complete();
            }

            var window = this.window = new _Subject__WEBPACK_IMPORTED_MODULE_0__["Subject"]();
            this.destination.next(window);
            var closingNotifier;

            try {
              var closingSelector = this.closingSelector;
              closingNotifier = closingSelector();
            } catch (e) {
              this.destination.error(e);
              this.window.error(e);
              return;
            }

            this.add(this.closingNotification = Object(_util_subscribeToResult__WEBPACK_IMPORTED_MODULE_2__["subscribeToResult"])(this, closingNotifier));
          }
        }]);

        return WindowSubscriber;
      }(_OuterSubscriber__WEBPACK_IMPORTED_MODULE_1__["OuterSubscriber"]); //# sourceMappingURL=windowWhen.js.map

      /***/

    },

    /***/
    "phiu": function phiu(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return subMonths;
      });
      /* harmony import */


      var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../_lib/toInteger/index.js */
      "/h9T");
      /* harmony import */


      var _addMonths_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../addMonths/index.js */
      "dLU1");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name subMonths
       * @category Month Helpers
       * @summary Subtract the specified number of months from the given date.
       *
       * @description
       * Subtract the specified number of months from the given date.
       *
       * ### 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 {Date|Number} date - the date to be changed
       * @param {Number} amount - the amount of months to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
       * @returns {Date} the new date with the months subtracted
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // Subtract 5 months from 1 February 2015:
       * var result = subMonths(new Date(2015, 1, 1), 5)
       * //=> Mon Sep 01 2014 00:00:00
       */


      function subMonths(dirtyDate, dirtyAmount) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(2, arguments);
        var amount = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyAmount);
        return Object(_addMonths_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate, -amount);
      }
      /***/

    },

    /***/
    "piIK": function piIK(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return endOfDay;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name endOfDay
       * @category Day Helpers
       * @summary Return the end of a day for the given date.
       *
       * @description
       * Return the end of a day for the given date.
       * The result will be in the local timezone.
       *
       * ### 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 {Date|Number} date - the original date
       * @returns {Date} the end of a day
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // The end of a day for 2 September 2014 11:55:00:
       * var result = endOfDay(new Date(2014, 8, 2, 11, 55, 0))
       * //=> Tue Sep 02 2014 23:59:59.999
       */


      function endOfDay(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);
        date.setHours(23, 59, 59, 999);
        return date;
      }
      /***/

    },

    /***/
    "pjAE": function pjAE(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "UnsubscriptionError", function () {
        return UnsubscriptionError;
      });

      var UnsubscriptionErrorImpl = function () {
        function UnsubscriptionErrorImpl(errors) {
          Error.call(this);
          this.message = errors ? "".concat(errors.length, " errors occurred during unsubscription:\n").concat(errors.map(function (err, i) {
            return "".concat(i + 1, ") ").concat(err.toString());
          }).join('\n  ')) : '';
          this.name = 'UnsubscriptionError';
          this.errors = errors;
          return this;
        }

        UnsubscriptionErrorImpl.prototype = Object.create(Error.prototype);
        return UnsubscriptionErrorImpl;
      }();

      var UnsubscriptionError = UnsubscriptionErrorImpl; //# sourceMappingURL=UnsubscriptionError.js.map

      /***/
    },

    /***/
    "pl+E": function plE(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return setQuarter;
      });
      /* harmony import */


      var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../_lib/toInteger/index.js */
      "/h9T");
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _setMonth_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../setMonth/index.js */
      "nQ4q");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name setQuarter
       * @category Quarter Helpers
       * @summary Set the year quarter to the given date.
       *
       * @description
       * Set the year quarter to the given date.
       *
       * ### 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 {Date|Number} date - the date to be changed
       * @param {Number} quarter - the quarter of the new date
       * @returns {Date} the new date with the quarter set
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // Set the 2nd quarter to 2 July 2014:
       * var result = setQuarter(new Date(2014, 6, 2), 2)
       * //=> Wed Apr 02 2014 00:00:00
       */


      function setQuarter(dirtyDate, dirtyQuarter) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(2, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate);
        var quarter = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyQuarter);
        var oldQuarter = Math.floor(date.getMonth() / 3) + 1;
        var diff = quarter - oldQuarter;
        return Object(_setMonth_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(date, date.getMonth() + diff * 3);
      }
      /***/

    },

    /***/
    "pl0G": function pl0G(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return addMilliseconds;
      });
      /* harmony import */


      var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../_lib/toInteger/index.js */
      "/h9T");
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name addMilliseconds
       * @category Millisecond Helpers
       * @summary Add the specified number of milliseconds to the given date.
       *
       * @description
       * Add the specified number of milliseconds to the given date.
       *
       * ### 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 {Date|Number} date - the date to be changed
       * @param {Number} amount - the amount of milliseconds to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
       * @returns {Date} the new date with the milliseconds added
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // Add 750 milliseconds to 10 July 2014 12:45:30.000:
       * var result = addMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750)
       * //=> Thu Jul 10 2014 12:45:30.750
       */


      function addMilliseconds(dirtyDate, dirtyAmount) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(2, arguments);
        var timestamp = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate).getTime();
        var amount = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyAmount);
        return new Date(timestamp + amount);
      }
      /***/

    },

    /***/
    "pvlY": function pvlY(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return differenceInCalendarMonths;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name differenceInCalendarMonths
       * @category Month Helpers
       * @summary Get the number of calendar months between the given dates.
       *
       * @description
       * Get the number of calendar months between the given dates.
       *
       * ### 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 {Date|Number} dateLeft - the later date
       * @param {Date|Number} dateRight - the earlier date
       * @returns {Number} the number of calendar months
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // How many calendar months are between 31 January 2014 and 1 September 2014?
       * var result = differenceInCalendarMonths(
       *   new Date(2014, 8, 1),
       *   new Date(2014, 0, 31)
       * )
       * //=> 8
       */


      function differenceInCalendarMonths(dirtyDateLeft, dirtyDateRight) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(2, arguments);
        var dateLeft = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateLeft);
        var dateRight = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateRight);
        var yearDiff = dateLeft.getFullYear() - dateRight.getFullYear();
        var monthDiff = dateLeft.getMonth() - dateRight.getMonth();
        return yearDiff * 12 + monthDiff;
      }
      /***/

    },

    /***/
    "pxe6": function pxe6(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return getWeeksInMonth;
      });
      /* harmony import */


      var _differenceInCalendarWeeks_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../differenceInCalendarWeeks/index.js */
      "/Lp+");
      /* harmony import */


      var _lastDayOfMonth_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../lastDayOfMonth/index.js */
      "kKUf");
      /* harmony import */


      var _startOfMonth_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../startOfMonth/index.js */
      "9ig3");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name getWeeksInMonth
       * @category Week Helpers
       * @summary Get the number of calendar weeks a month spans.
       *
       * @description
       * Get the number of calendar weeks the month in the given date spans.
       *
       * ### 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 {Date|Number} date - the given date
       * @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 {Number} the number of calendar weeks
       * @throws {TypeError} 2 arguments required
       * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6
       *
       * @example
       * // How many calendar weeks does February 2015 span?
       * var result = getWeeksInMonth(new Date(2015, 1, 8))
       * //=> 4
       *
       * @example
       * // If the week starts on Monday,
       * // how many calendar weeks does July 2017 span?
       * var result = getWeeksInMonth(new Date(2017, 6, 5), { weekStartsOn: 1 })
       * //=> 6
       */


      function getWeeksInMonth(date, options) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(1, arguments);
        return Object(_differenceInCalendarWeeks_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(_lastDayOfMonth_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(date), Object(_startOfMonth_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(date), options) + 1;
      }
      /***/

    },

    /***/
    "pxpQ": function pxpQ(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "observeOn", function () {
        return observeOn;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ObserveOnOperator", function () {
        return ObserveOnOperator;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ObserveOnSubscriber", function () {
        return ObserveOnSubscriber;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ObserveOnMessage", function () {
        return ObserveOnMessage;
      });
      /* harmony import */


      var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Subscriber */
      "7o/Q");
      /* harmony import */


      var _Notification__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../Notification */
      "WMd4");

      function observeOn(scheduler) {
        var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
        return function observeOnOperatorFunction(source) {
          return source.lift(new ObserveOnOperator(scheduler, delay));
        };
      }

      var ObserveOnOperator = /*#__PURE__*/function () {
        function ObserveOnOperator(scheduler) {
          var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;

          _classCallCheck2(this, ObserveOnOperator);

          this.scheduler = scheduler;
          this.delay = delay;
        }

        _createClass2(ObserveOnOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            return source.subscribe(new ObserveOnSubscriber(subscriber, this.scheduler, this.delay));
          }
        }]);

        return ObserveOnOperator;
      }();

      var ObserveOnSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_42) {
        _inherits2(ObserveOnSubscriber, _Subscriber__WEBPACK_42);

        var _super418 = _createSuper2(ObserveOnSubscriber);

        function ObserveOnSubscriber(destination, scheduler) {
          var _this862;

          var delay = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;

          _classCallCheck2(this, ObserveOnSubscriber);

          _this862 = _super418.call(this, destination);
          _this862.scheduler = scheduler;
          _this862.delay = delay;
          return _this862;
        }

        _createClass2(ObserveOnSubscriber, [{
          key: "scheduleMessage",
          value: function scheduleMessage(notification) {
            var destination = this.destination;
            destination.add(this.scheduler.schedule(ObserveOnSubscriber.dispatch, this.delay, new ObserveOnMessage(notification, this.destination)));
          }
        }, {
          key: "_next",
          value: function _next(value) {
            this.scheduleMessage(_Notification__WEBPACK_IMPORTED_MODULE_1__["Notification"].createNext(value));
          }
        }, {
          key: "_error",
          value: function _error(err) {
            this.scheduleMessage(_Notification__WEBPACK_IMPORTED_MODULE_1__["Notification"].createError(err));
            this.unsubscribe();
          }
        }, {
          key: "_complete",
          value: function _complete() {
            this.scheduleMessage(_Notification__WEBPACK_IMPORTED_MODULE_1__["Notification"].createComplete());
            this.unsubscribe();
          }
        }], [{
          key: "dispatch",
          value: function dispatch(arg) {
            var notification = arg.notification,
                destination = arg.destination;
            notification.observe(destination);
            this.unsubscribe();
          }
        }]);

        return ObserveOnSubscriber;
      }(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]);

      var ObserveOnMessage = function ObserveOnMessage(notification, destination) {
        _classCallCheck2(this, ObserveOnMessage);

        this.notification = notification;
        this.destination = destination;
      }; //# sourceMappingURL=observeOn.js.map

      /***/

    },

    /***/
    "q7Ft": function q7Ft(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MAT_DRAWER_DEFAULT_AUTOSIZE", function () {
        return MAT_DRAWER_DEFAULT_AUTOSIZE;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MAT_DRAWER_DEFAULT_AUTOSIZE_FACTORY", function () {
        return MAT_DRAWER_DEFAULT_AUTOSIZE_FACTORY;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatDrawer", function () {
        return MatDrawer;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatDrawerContainer", function () {
        return MatDrawerContainer;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatDrawerContent", function () {
        return MatDrawerContent;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatSidenav", function () {
        return MatSidenav;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatSidenavContainer", function () {
        return MatSidenavContainer;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatSidenavContent", function () {
        return MatSidenavContent;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatSidenavModule", function () {
        return MatSidenavModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "matDrawerAnimations", function () {
        return matDrawerAnimations;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "throwMatDuplicatedDrawerError", function () {
        return throwMatDuplicatedDrawerError;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_material_src_material_sidenav_sidenav_a", function () {
        return MAT_DRAWER_CONTAINER;
      });
      /* harmony import */


      var _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/cdk/platform */
      "SCoL");
      /* harmony import */


      var _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/cdk/scrolling */
      "7KAL");
      /* harmony import */


      var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! @angular/common */
      "SVse");
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /* harmony import */


      var _angular_material_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! @angular/material/core */
      "UhP/");
      /* harmony import */


      var _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! @angular/cdk/a11y */
      "YEUz");
      /* harmony import */


      var _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
      /*! @angular/cdk/bidi */
      "9gLZ");
      /* harmony import */


      var _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
      /*! @angular/cdk/coercion */
      "8LU1");
      /* harmony import */


      var _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
      /*! @angular/cdk/keycodes */
      "Ht+U");
      /* harmony import */


      var rxjs__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
      /*! rxjs */
      "qCKp");
      /* harmony import */


      var rxjs_operators__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(
      /*! rxjs/operators */
      "kU1M");
      /* harmony import */


      var _angular_animations__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(
      /*! @angular/animations */
      "GS7A");
      /* harmony import */


      var _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(
      /*! @angular/platform-browser/animations */
      "omvX");
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Animations used by the Material drawers.
       * @docs-private
       */


      var _c0 = ["*"];

      function MatDrawerContainer_div_0_Template(rf, ctx) {
        if (rf & 1) {
          var _r3 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵgetCurrentView"]();

          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 2);

          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function MatDrawerContainer_div_0_Template_div_click_0_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r3);

            var ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();

            return ctx_r2._onBackdropClicked();
          });

          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
        }

        if (rf & 2) {
          var ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();

          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵclassProp"]("mat-drawer-shown", ctx_r0._isShowingBackdrop());
        }
      }

      function MatDrawerContainer_mat_drawer_content_3_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "mat-drawer-content");

          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵprojection"](1, 2);

          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
        }
      }

      var _c1 = [[["mat-drawer"]], [["mat-drawer-content"]], "*"];
      var _c2 = ["mat-drawer", "mat-drawer-content", "*"];

      function MatSidenavContainer_div_0_Template(rf, ctx) {
        if (rf & 1) {
          var _r3 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵgetCurrentView"]();

          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 2);

          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function MatSidenavContainer_div_0_Template_div_click_0_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r3);

            var ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();

            return ctx_r2._onBackdropClicked();
          });

          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
        }

        if (rf & 2) {
          var ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();

          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵclassProp"]("mat-drawer-shown", ctx_r0._isShowingBackdrop());
        }
      }

      function MatSidenavContainer_mat_sidenav_content_3_Template(rf, ctx) {
        if (rf & 1) {
          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "mat-sidenav-content", 3);

          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵprojection"](1, 2);

          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
        }
      }

      var _c3 = [[["mat-sidenav"]], [["mat-sidenav-content"]], "*"];
      var _c4 = ["mat-sidenav", "mat-sidenav-content", "*"];
      var _c5 = ".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n";
      var matDrawerAnimations = {
        /** Animation that slides a drawer in and out. */
        transformDrawer: Object(_angular_animations__WEBPACK_IMPORTED_MODULE_11__["trigger"])('transform', [// We remove the `transform` here completely, rather than setting it to zero, because:
        // 1. Having a transform can cause elements with ripples or an animated
        //    transform to shift around in Chrome with an RTL layout (see #10023).
        // 2. 3d transforms causes text to appear blurry on IE and Edge.
        Object(_angular_animations__WEBPACK_IMPORTED_MODULE_11__["state"])('open, open-instant', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_11__["style"])({
          'transform': 'none',
          'visibility': 'visible'
        })), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_11__["state"])('void', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_11__["style"])({
          // Avoids the shadow showing up when closed in SSR.
          'box-shadow': 'none',
          'visibility': 'hidden'
        })), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_11__["transition"])('void => open-instant', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_11__["animate"])('0ms')), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_11__["transition"])('void <=> open, open-instant => void', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_11__["animate"])('400ms cubic-bezier(0.25, 0.8, 0.25, 1)'))])
      };
      /**
       * Throws an exception when two MatDrawer are matching the same position.
       * @docs-private
       */

      function throwMatDuplicatedDrawerError(position) {
        throw Error("A drawer was already declared for 'position=\"".concat(position, "\"'"));
      }
      /** Configures whether drawers should use auto sizing by default. */


      var MAT_DRAWER_DEFAULT_AUTOSIZE = new _angular_core__WEBPACK_IMPORTED_MODULE_3__["InjectionToken"]('MAT_DRAWER_DEFAULT_AUTOSIZE', {
        providedIn: 'root',
        factory: MAT_DRAWER_DEFAULT_AUTOSIZE_FACTORY
      });
      /**
       * Used to provide a drawer container to a drawer while avoiding circular references.
       * @docs-private
       */

      var MAT_DRAWER_CONTAINER = new _angular_core__WEBPACK_IMPORTED_MODULE_3__["InjectionToken"]('MAT_DRAWER_CONTAINER');
      /** @docs-private */

      function MAT_DRAWER_DEFAULT_AUTOSIZE_FACTORY() {
        return false;
      }

      var MatDrawerContent = /*#__PURE__*/function (_angular_cdk_scrollin) {
        _inherits2(MatDrawerContent, _angular_cdk_scrollin);

        var _super419 = _createSuper2(MatDrawerContent);

        function MatDrawerContent(_changeDetectorRef, _container, elementRef, scrollDispatcher, ngZone) {
          var _this863;

          _classCallCheck2(this, MatDrawerContent);

          _this863 = _super419.call(this, elementRef, scrollDispatcher, ngZone);
          _this863._changeDetectorRef = _changeDetectorRef;
          _this863._container = _container;
          return _this863;
        }

        _createClass2(MatDrawerContent, [{
          key: "ngAfterContentInit",
          value: function ngAfterContentInit() {
            var _this864 = this;

            this._container._contentMarginChanges.subscribe(function () {
              _this864._changeDetectorRef.markForCheck();
            });
          }
        }]);

        return MatDrawerContent;
      }(_angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_1__["CdkScrollable"]);

      MatDrawerContent.ɵfac = function MatDrawerContent_Factory(t) {
        return new (t || MatDrawerContent)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](Object(_angular_core__WEBPACK_IMPORTED_MODULE_3__["forwardRef"])(function () {
          return MatDrawerContainer;
        })), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_1__["ScrollDispatcher"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["NgZone"]));
      };

      MatDrawerContent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({
        type: MatDrawerContent,
        selectors: [["mat-drawer-content"]],
        hostAttrs: [1, "mat-drawer-content"],
        hostVars: 4,
        hostBindings: function MatDrawerContent_HostBindings(rf, ctx) {
          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵstyleProp"]("margin-left", ctx._container._contentMargins.left, "px")("margin-right", ctx._container._contentMargins.right, "px");
          }
        },
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵInheritDefinitionFeature"]],
        ngContentSelectors: _c0,
        decls: 1,
        vars: 0,
        template: function MatDrawerContent_Template(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵprojectionDef"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵprojection"](0);
          }
        },
        encapsulation: 2,
        changeDetection: 0
      });

      MatDrawerContent.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ChangeDetectorRef"]
        }, {
          type: MatDrawerContainer,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"],
            args: [Object(_angular_core__WEBPACK_IMPORTED_MODULE_3__["forwardRef"])(function () {
              return MatDrawerContainer;
            })]
          }]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]
        }, {
          type: _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_1__["ScrollDispatcher"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["NgZone"]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](MatDrawerContent, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Component"],
          args: [{
            selector: 'mat-drawer-content',
            template: '<ng-content></ng-content>',
            host: {
              'class': 'mat-drawer-content',
              '[style.margin-left.px]': '_container._contentMargins.left',
              '[style.margin-right.px]': '_container._contentMargins.right'
            },
            changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ChangeDetectionStrategy"].OnPush,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewEncapsulation"].None
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ChangeDetectorRef"]
          }, {
            type: MatDrawerContainer,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"],
              args: [Object(_angular_core__WEBPACK_IMPORTED_MODULE_3__["forwardRef"])(function () {
                return MatDrawerContainer;
              })]
            }]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]
          }, {
            type: _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_1__["ScrollDispatcher"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["NgZone"]
          }];
        }, null);
      })();
      /**
       * This component corresponds to a drawer that can be opened on the drawer container.
       */


      var MatDrawer = /*#__PURE__*/function () {
        function MatDrawer(_elementRef, _focusTrapFactory, _focusMonitor, _platform, _ngZone, _doc, _container) {
          var _this865 = this;

          _classCallCheck2(this, MatDrawer);

          this._elementRef = _elementRef;
          this._focusTrapFactory = _focusTrapFactory;
          this._focusMonitor = _focusMonitor;
          this._platform = _platform;
          this._ngZone = _ngZone;
          this._doc = _doc;
          this._container = _container;
          this._elementFocusedBeforeDrawerWasOpened = null;
          /** Whether the drawer is initialized. Used for disabling the initial animation. */

          this._enableAnimations = false;
          this._position = 'start';
          this._mode = 'over';
          this._disableClose = false;
          this._opened = false;
          /** Emits whenever the drawer has started animating. */

          this._animationStarted = new rxjs__WEBPACK_IMPORTED_MODULE_9__["Subject"]();
          /** Emits whenever the drawer is done animating. */

          this._animationEnd = new rxjs__WEBPACK_IMPORTED_MODULE_9__["Subject"]();
          /** Current state of the sidenav animation. */
          // @HostBinding is used in the class as it is expected to be extended.  Since @Component decorator
          // metadata is not inherited by child classes, instead the host binding data is defined in a way
          // that can be inherited.
          // tslint:disable:no-host-decorator-in-concrete

          this._animationState = 'void';
          /** Event emitted when the drawer open state is changed. */

          this.openedChange = // Note this has to be async in order to avoid some issues with two-bindings (see #8872).
          new _angular_core__WEBPACK_IMPORTED_MODULE_3__["EventEmitter"](
          /* isAsync */
          true);
          /** Event emitted when the drawer has been opened. */

          this._openedStream = this.openedChange.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__["filter"])(function (o) {
            return o;
          }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__["map"])(function () {}));
          /** Event emitted when the drawer has started opening. */

          this.openedStart = this._animationStarted.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__["filter"])(function (e) {
            return e.fromState !== e.toState && e.toState.indexOf('open') === 0;
          }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__["mapTo"])(undefined));
          /** Event emitted when the drawer has been closed. */

          this._closedStream = this.openedChange.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__["filter"])(function (o) {
            return !o;
          }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__["map"])(function () {}));
          /** Event emitted when the drawer has started closing. */

          this.closedStart = this._animationStarted.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__["filter"])(function (e) {
            return e.fromState !== e.toState && e.toState === 'void';
          }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__["mapTo"])(undefined));
          /** Emits when the component is destroyed. */

          this._destroyed = new rxjs__WEBPACK_IMPORTED_MODULE_9__["Subject"]();
          /** Event emitted when the drawer's position changes. */
          // tslint:disable-next-line:no-output-on-prefix

          this.onPositionChanged = new _angular_core__WEBPACK_IMPORTED_MODULE_3__["EventEmitter"]();
          /**
           * An observable that emits when the drawer mode changes. This is used by the drawer container to
           * to know when to when the mode changes so it can adapt the margins on the content.
           */

          this._modeChanged = new rxjs__WEBPACK_IMPORTED_MODULE_9__["Subject"]();
          this.openedChange.subscribe(function (opened) {
            if (opened) {
              if (_this865._doc) {
                _this865._elementFocusedBeforeDrawerWasOpened = _this865._doc.activeElement;
              }

              _this865._takeFocus();
            } else if (_this865._isFocusWithinDrawer()) {
              _this865._restoreFocus();
            }
          });
          /**
           * Listen to `keydown` events outside the zone so that change detection is not run every
           * time a key is pressed. Instead we re-enter the zone only if the `ESC` key is pressed
           * and we don't have close disabled.
           */

          this._ngZone.runOutsideAngular(function () {
            Object(rxjs__WEBPACK_IMPORTED_MODULE_9__["fromEvent"])(_this865._elementRef.nativeElement, 'keydown').pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__["filter"])(function (event) {
              return event.keyCode === _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_8__["ESCAPE"] && !_this865.disableClose && !Object(_angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_8__["hasModifierKey"])(event);
            }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__["takeUntil"])(_this865._destroyed)).subscribe(function (event) {
              return _this865._ngZone.run(function () {
                _this865.close();

                event.stopPropagation();
                event.preventDefault();
              });
            });
          }); // We need a Subject with distinctUntilChanged, because the `done` event
          // fires twice on some browsers. See https://github.com/angular/angular/issues/24084


          this._animationEnd.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__["distinctUntilChanged"])(function (x, y) {
            return x.fromState === y.fromState && x.toState === y.toState;
          })).subscribe(function (event) {
            var fromState = event.fromState,
                toState = event.toState;

            if (toState.indexOf('open') === 0 && fromState === 'void' || toState === 'void' && fromState.indexOf('open') === 0) {
              _this865.openedChange.emit(_this865._opened);
            }
          });
        }
        /** The side that the drawer is attached to. */


        _createClass2(MatDrawer, [{
          key: "position",
          get: function get() {
            return this._position;
          },
          set: function set(value) {
            // Make sure we have a valid value.
            value = value === 'end' ? 'end' : 'start';

            if (value != this._position) {
              this._position = value;
              this.onPositionChanged.emit();
            }
          }
          /** Mode of the drawer; one of 'over', 'push' or 'side'. */

        }, {
          key: "mode",
          get: function get() {
            return this._mode;
          },
          set: function set(value) {
            this._mode = value;

            this._updateFocusTrapState();

            this._modeChanged.next();
          }
          /** Whether the drawer can be closed with the escape key or by clicking on the backdrop. */

        }, {
          key: "disableClose",
          get: function get() {
            return this._disableClose;
          },
          set: function set(value) {
            this._disableClose = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_7__["coerceBooleanProperty"])(value);
          }
          /**
           * Whether the drawer should focus the first focusable element automatically when opened.
           * Defaults to false in when `mode` is set to `side`, otherwise defaults to `true`. If explicitly
           * enabled, focus will be moved into the sidenav in `side` mode as well.
           */

        }, {
          key: "autoFocus",
          get: function get() {
            var value = this._autoFocus; // Note that usually we disable auto focusing in `side` mode, because we don't know how the
            // sidenav is being used, but in some cases it still makes sense to do it. If the consumer
            // explicitly enabled `autoFocus`, we take it as them always wanting to enable it.

            return value == null ? this.mode !== 'side' : value;
          },
          set: function set(value) {
            this._autoFocus = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_7__["coerceBooleanProperty"])(value);
          }
          /**
           * Whether the drawer is opened. We overload this because we trigger an event when it
           * starts or end.
           */

        }, {
          key: "opened",
          get: function get() {
            return this._opened;
          },
          set: function set(value) {
            this.toggle(Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_7__["coerceBooleanProperty"])(value));
          }
          /**
           * Moves focus into the drawer. Note that this works even if
           * the focus trap is disabled in `side` mode.
           */

        }, {
          key: "_takeFocus",
          value: function _takeFocus() {
            var _this866 = this;

            if (!this.autoFocus || !this._focusTrap) {
              return;
            }

            this._focusTrap.focusInitialElementWhenReady().then(function (hasMovedFocus) {
              // If there were no focusable elements, focus the sidenav itself so the keyboard navigation
              // still works. We need to check that `focus` is a function due to Universal.
              if (!hasMovedFocus && typeof _this866._elementRef.nativeElement.focus === 'function') {
                _this866._elementRef.nativeElement.focus();
              }
            });
          }
          /**
           * Restores focus to the element that was originally focused when the drawer opened.
           * If no element was focused at that time, the focus will be restored to the drawer.
           */

        }, {
          key: "_restoreFocus",
          value: function _restoreFocus() {
            if (!this.autoFocus) {
              return;
            } // Note that we don't check via `instanceof HTMLElement` so that we can cover SVGs as well.


            if (this._elementFocusedBeforeDrawerWasOpened) {
              this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened, this._openedVia);
            } else {
              this._elementRef.nativeElement.blur();
            }

            this._elementFocusedBeforeDrawerWasOpened = null;
            this._openedVia = null;
          }
          /** Whether focus is currently within the drawer. */

        }, {
          key: "_isFocusWithinDrawer",
          value: function _isFocusWithinDrawer() {
            var _a;

            var activeEl = (_a = this._doc) === null || _a === void 0 ? void 0 : _a.activeElement;
            return !!activeEl && this._elementRef.nativeElement.contains(activeEl);
          }
        }, {
          key: "ngAfterContentInit",
          value: function ngAfterContentInit() {
            this._focusTrap = this._focusTrapFactory.create(this._elementRef.nativeElement);

            this._updateFocusTrapState();
          }
        }, {
          key: "ngAfterContentChecked",
          value: function ngAfterContentChecked() {
            // Enable the animations after the lifecycle hooks have run, in order to avoid animating
            // drawers that are open by default. When we're on the server, we shouldn't enable the
            // animations, because we don't want the drawer to animate the first time the user sees
            // the page.
            if (this._platform.isBrowser) {
              this._enableAnimations = true;
            }
          }
        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            if (this._focusTrap) {
              this._focusTrap.destroy();
            }

            this._animationStarted.complete();

            this._animationEnd.complete();

            this._modeChanged.complete();

            this._destroyed.next();

            this._destroyed.complete();
          }
          /**
           * Open the drawer.
           * @param openedVia Whether the drawer was opened by a key press, mouse click or programmatically.
           * Used for focus management after the sidenav is closed.
           */

        }, {
          key: "open",
          value: function open(openedVia) {
            return this.toggle(true, openedVia);
          }
          /** Close the drawer. */

        }, {
          key: "close",
          value: function close() {
            return this.toggle(false);
          }
          /** Closes the drawer with context that the backdrop was clicked. */

        }, {
          key: "_closeViaBackdropClick",
          value: function _closeViaBackdropClick() {
            // If the drawer is closed upon a backdrop click, we always want to restore focus. We
            // don't need to check whether focus is currently in the drawer, as clicking on the
            // backdrop causes blurring of the active element.
            return this._setOpen(
            /* isOpen */
            false,
            /* restoreFocus */
            true);
          }
          /**
           * Toggle this drawer.
           * @param isOpen Whether the drawer should be open.
           * @param openedVia Whether the drawer was opened by a key press, mouse click or programmatically.
           * Used for focus management after the sidenav is closed.
           */

        }, {
          key: "toggle",
          value: function toggle() {
            var isOpen = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : !this.opened;
            var openedVia = arguments.length > 1 ? arguments[1] : undefined;
            // If the focus is currently inside the drawer content and we are closing the drawer,
            // restore the focus to the initially focused element (when the drawer opened).
            return this._setOpen(isOpen,
            /* restoreFocus */
            !isOpen && this._isFocusWithinDrawer(), openedVia);
          }
          /**
           * Toggles the opened state of the drawer.
           * @param isOpen Whether the drawer should open or close.
           * @param restoreFocus Whether focus should be restored on close.
           * @param openedVia Focus origin that can be optionally set when opening a drawer. The
           *   origin will be used later when focus is restored on drawer close.
           */

        }, {
          key: "_setOpen",
          value: function _setOpen(isOpen, restoreFocus) {
            var _this867 = this;

            var openedVia = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'program';
            this._opened = isOpen;

            if (isOpen) {
              this._animationState = this._enableAnimations ? 'open' : 'open-instant';
              this._openedVia = openedVia;
            } else {
              this._animationState = 'void';

              if (restoreFocus) {
                this._restoreFocus();
              }
            }

            this._updateFocusTrapState();

            return new Promise(function (resolve) {
              _this867.openedChange.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__["take"])(1)).subscribe(function (open) {
                return resolve(open ? 'open' : 'close');
              });
            });
          }
        }, {
          key: "_getWidth",
          value: function _getWidth() {
            return this._elementRef.nativeElement ? this._elementRef.nativeElement.offsetWidth || 0 : 0;
          }
          /** Updates the enabled state of the focus trap. */

        }, {
          key: "_updateFocusTrapState",
          value: function _updateFocusTrapState() {
            if (this._focusTrap) {
              // The focus trap is only enabled when the drawer is open in any mode other than side.
              this._focusTrap.enabled = this.opened && this.mode !== 'side';
            }
          } // We have to use a `HostListener` here in order to support both Ivy and ViewEngine.
          // In Ivy the `host` bindings will be merged when this class is extended, whereas in
          // ViewEngine they're overwritten.
          // TODO(crisbeto): we move this back into `host` once Ivy is turned on by default.
          // tslint:disable-next-line:no-host-decorator-in-concrete

        }, {
          key: "_animationStartListener",
          value: function _animationStartListener(event) {
            this._animationStarted.next(event);
          } // We have to use a `HostListener` here in order to support both Ivy and ViewEngine.
          // In Ivy the `host` bindings will be merged when this class is extended, whereas in
          // ViewEngine they're overwritten.
          // TODO(crisbeto): we move this back into `host` once Ivy is turned on by default.
          // tslint:disable-next-line:no-host-decorator-in-concrete

        }, {
          key: "_animationDoneListener",
          value: function _animationDoneListener(event) {
            this._animationEnd.next(event);
          }
        }]);

        return MatDrawer;
      }();

      MatDrawer.ɵfac = function MatDrawer_Factory(t) {
        return new (t || MatDrawer)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_5__["FocusTrapFactory"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_5__["FocusMonitor"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_0__["Platform"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["NgZone"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_common__WEBPACK_IMPORTED_MODULE_2__["DOCUMENT"], 8), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](MAT_DRAWER_CONTAINER, 8));
      };

      MatDrawer.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({
        type: MatDrawer,
        selectors: [["mat-drawer"]],
        hostAttrs: ["tabIndex", "-1", 1, "mat-drawer"],
        hostVars: 12,
        hostBindings: function MatDrawer_HostBindings(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵsyntheticHostListener"]("@transform.start", function MatDrawer_animation_transform_start_HostBindingHandler($event) {
              return ctx._animationStartListener($event);
            })("@transform.done", function MatDrawer_animation_transform_done_HostBindingHandler($event) {
              return ctx._animationDoneListener($event);
            });
          }

          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵattribute"]("align", null);

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵsyntheticHostProperty"]("@transform", ctx._animationState);

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵclassProp"]("mat-drawer-end", ctx.position === "end")("mat-drawer-over", ctx.mode === "over")("mat-drawer-push", ctx.mode === "push")("mat-drawer-side", ctx.mode === "side")("mat-drawer-opened", ctx.opened);
          }
        },
        inputs: {
          position: "position",
          mode: "mode",
          disableClose: "disableClose",
          autoFocus: "autoFocus",
          opened: "opened"
        },
        outputs: {
          openedChange: "openedChange",
          _openedStream: "opened",
          openedStart: "openedStart",
          _closedStream: "closed",
          closedStart: "closedStart",
          onPositionChanged: "positionChanged"
        },
        exportAs: ["matDrawer"],
        ngContentSelectors: _c0,
        decls: 2,
        vars: 0,
        consts: [[1, "mat-drawer-inner-container"]],
        template: function MatDrawer_Template(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵprojectionDef"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 0);

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵprojection"](1);

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
          }
        },
        encapsulation: 2,
        data: {
          animation: [matDrawerAnimations.transformDrawer]
        },
        changeDetection: 0
      });

      MatDrawer.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]
        }, {
          type: _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_5__["FocusTrapFactory"]
        }, {
          type: _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_5__["FocusMonitor"]
        }, {
          type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_0__["Platform"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["NgZone"]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"],
            args: [_angular_common__WEBPACK_IMPORTED_MODULE_2__["DOCUMENT"]]
          }]
        }, {
          type: MatDrawerContainer,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"],
            args: [MAT_DRAWER_CONTAINER]
          }]
        }];
      };

      MatDrawer.propDecorators = {
        position: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
        }],
        mode: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
        }],
        disableClose: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
        }],
        autoFocus: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
        }],
        opened: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
        }],
        _animationState: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["HostBinding"],
          args: ['@transform']
        }],
        openedChange: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Output"]
        }],
        _openedStream: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Output"],
          args: ['opened']
        }],
        openedStart: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Output"]
        }],
        _closedStream: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Output"],
          args: ['closed']
        }],
        closedStart: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Output"]
        }],
        onPositionChanged: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Output"],
          args: ['positionChanged']
        }],
        _animationStartListener: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["HostListener"],
          args: ['@transform.start', ['$event']]
        }],
        _animationDoneListener: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["HostListener"],
          args: ['@transform.done', ['$event']]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](MatDrawer, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Component"],
          args: [{
            selector: 'mat-drawer',
            exportAs: 'matDrawer',
            template: "<div class=\"mat-drawer-inner-container\">\r\n  <ng-content></ng-content>\r\n</div>\r\n",
            animations: [matDrawerAnimations.transformDrawer],
            host: {
              'class': 'mat-drawer',
              // must prevent the browser from aligning text based on value
              '[attr.align]': 'null',
              '[class.mat-drawer-end]': 'position === "end"',
              '[class.mat-drawer-over]': 'mode === "over"',
              '[class.mat-drawer-push]': 'mode === "push"',
              '[class.mat-drawer-side]': 'mode === "side"',
              '[class.mat-drawer-opened]': 'opened',
              'tabIndex': '-1'
            },
            changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ChangeDetectionStrategy"].OnPush,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewEncapsulation"].None
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]
          }, {
            type: _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_5__["FocusTrapFactory"]
          }, {
            type: _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_5__["FocusMonitor"]
          }, {
            type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_0__["Platform"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["NgZone"]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"],
              args: [_angular_common__WEBPACK_IMPORTED_MODULE_2__["DOCUMENT"]]
            }]
          }, {
            type: MatDrawerContainer,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"],
              args: [MAT_DRAWER_CONTAINER]
            }]
          }];
        }, {
          _animationState: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["HostBinding"],
            args: ['@transform']
          }],
          openedChange: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Output"]
          }],
          _openedStream: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Output"],
            args: ['opened']
          }],
          openedStart: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Output"]
          }],
          _closedStream: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Output"],
            args: ['closed']
          }],
          closedStart: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Output"]
          }],
          onPositionChanged: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Output"],
            args: ['positionChanged']
          }],
          position: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
          }],
          mode: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
          }],
          disableClose: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
          }],
          autoFocus: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
          }],
          opened: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
          }],
          // We have to use a `HostListener` here in order to support both Ivy and ViewEngine.
          // In Ivy the `host` bindings will be merged when this class is extended, whereas in
          // ViewEngine they're overwritten.
          // TODO(crisbeto): we move this back into `host` once Ivy is turned on by default.
          // tslint:disable-next-line:no-host-decorator-in-concrete
          _animationStartListener: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["HostListener"],
            args: ['@transform.start', ['$event']]
          }],
          // We have to use a `HostListener` here in order to support both Ivy and ViewEngine.
          // In Ivy the `host` bindings will be merged when this class is extended, whereas in
          // ViewEngine they're overwritten.
          // TODO(crisbeto): we move this back into `host` once Ivy is turned on by default.
          // tslint:disable-next-line:no-host-decorator-in-concrete
          _animationDoneListener: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["HostListener"],
            args: ['@transform.done', ['$event']]
          }]
        });
      })();
      /**
       * `<mat-drawer-container>` component.
       *
       * This is the parent component to one or two `<mat-drawer>`s that validates the state internally
       * and coordinates the backdrop and content styling.
       */


      var MatDrawerContainer = /*#__PURE__*/function () {
        function MatDrawerContainer(_dir, _element, _ngZone, _changeDetectorRef, viewportRuler) {
          var _this868 = this;

          var defaultAutosize = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : false;

          var _animationMode = arguments.length > 6 ? arguments[6] : undefined;

          _classCallCheck2(this, MatDrawerContainer);

          this._dir = _dir;
          this._element = _element;
          this._ngZone = _ngZone;
          this._changeDetectorRef = _changeDetectorRef;
          this._animationMode = _animationMode;
          /** Drawers that belong to this container. */

          this._drawers = new _angular_core__WEBPACK_IMPORTED_MODULE_3__["QueryList"]();
          /** Event emitted when the drawer backdrop is clicked. */

          this.backdropClick = new _angular_core__WEBPACK_IMPORTED_MODULE_3__["EventEmitter"]();
          /** Emits when the component is destroyed. */

          this._destroyed = new rxjs__WEBPACK_IMPORTED_MODULE_9__["Subject"]();
          /** Emits on every ngDoCheck. Used for debouncing reflows. */

          this._doCheckSubject = new rxjs__WEBPACK_IMPORTED_MODULE_9__["Subject"]();
          /**
           * Margins to be applied to the content. These are used to push / shrink the drawer content when a
           * drawer is open. We use margin rather than transform even for push mode because transform breaks
           * fixed position elements inside of the transformed element.
           */

          this._contentMargins = {
            left: null,
            right: null
          };
          this._contentMarginChanges = new rxjs__WEBPACK_IMPORTED_MODULE_9__["Subject"](); // If a `Dir` directive exists up the tree, listen direction changes
          // and update the left/right properties to point to the proper start/end.

          if (_dir) {
            _dir.change.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__["takeUntil"])(this._destroyed)).subscribe(function () {
              _this868._validateDrawers();

              _this868.updateContentMargins();
            });
          } // Since the minimum width of the sidenav depends on the viewport width,
          // we need to recompute the margins if the viewport changes.


          viewportRuler.change().pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__["takeUntil"])(this._destroyed)).subscribe(function () {
            return _this868.updateContentMargins();
          });
          this._autosize = defaultAutosize;
        }
        /** The drawer child with the `start` position. */


        _createClass2(MatDrawerContainer, [{
          key: "start",
          get: function get() {
            return this._start;
          }
          /** The drawer child with the `end` position. */

        }, {
          key: "end",
          get: function get() {
            return this._end;
          }
          /**
           * Whether to automatically resize the container whenever
           * the size of any of its drawers changes.
           *
           * **Use at your own risk!** Enabling this option can cause layout thrashing by measuring
           * the drawers on every change detection cycle. Can be configured globally via the
           * `MAT_DRAWER_DEFAULT_AUTOSIZE` token.
           */

        }, {
          key: "autosize",
          get: function get() {
            return this._autosize;
          },
          set: function set(value) {
            this._autosize = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_7__["coerceBooleanProperty"])(value);
          }
          /**
           * Whether the drawer container should have a backdrop while one of the sidenavs is open.
           * If explicitly set to `true`, the backdrop will be enabled for drawers in the `side`
           * mode as well.
           */

        }, {
          key: "hasBackdrop",
          get: function get() {
            if (this._backdropOverride == null) {
              return !this._start || this._start.mode !== 'side' || !this._end || this._end.mode !== 'side';
            }

            return this._backdropOverride;
          },
          set: function set(value) {
            this._backdropOverride = value == null ? null : Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_7__["coerceBooleanProperty"])(value);
          }
          /** Reference to the CdkScrollable instance that wraps the scrollable content. */

        }, {
          key: "scrollable",
          get: function get() {
            return this._userContent || this._content;
          }
        }, {
          key: "ngAfterContentInit",
          value: function ngAfterContentInit() {
            var _this869 = this;

            this._allDrawers.changes.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__["startWith"])(this._allDrawers), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__["takeUntil"])(this._destroyed)).subscribe(function (drawer) {
              _this869._drawers.reset(drawer.filter(function (item) {
                return !item._container || item._container === _this869;
              }));

              _this869._drawers.notifyOnChanges();
            });

            this._drawers.changes.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__["startWith"])(null)).subscribe(function () {
              _this869._validateDrawers();

              _this869._drawers.forEach(function (drawer) {
                _this869._watchDrawerToggle(drawer);

                _this869._watchDrawerPosition(drawer);

                _this869._watchDrawerMode(drawer);
              });

              if (!_this869._drawers.length || _this869._isDrawerOpen(_this869._start) || _this869._isDrawerOpen(_this869._end)) {
                _this869.updateContentMargins();
              }

              _this869._changeDetectorRef.markForCheck();
            }); // Avoid hitting the NgZone through the debounce timeout.


            this._ngZone.runOutsideAngular(function () {
              _this869._doCheckSubject.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__["debounceTime"])(10), // Arbitrary debounce time, less than a frame at 60fps
              Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__["takeUntil"])(_this869._destroyed)).subscribe(function () {
                return _this869.updateContentMargins();
              });
            });
          }
        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            this._contentMarginChanges.complete();

            this._doCheckSubject.complete();

            this._drawers.destroy();

            this._destroyed.next();

            this._destroyed.complete();
          }
          /** Calls `open` of both start and end drawers */

        }, {
          key: "open",
          value: function open() {
            this._drawers.forEach(function (drawer) {
              return drawer.open();
            });
          }
          /** Calls `close` of both start and end drawers */

        }, {
          key: "close",
          value: function close() {
            this._drawers.forEach(function (drawer) {
              return drawer.close();
            });
          }
          /**
           * Recalculates and updates the inline styles for the content. Note that this should be used
           * sparingly, because it causes a reflow.
           */

        }, {
          key: "updateContentMargins",
          value: function updateContentMargins() {
            var _this870 = this;

            // 1. For drawers in `over` mode, they don't affect the content.
            // 2. For drawers in `side` mode they should shrink the content. We do this by adding to the
            //    left margin (for left drawer) or right margin (for right the drawer).
            // 3. For drawers in `push` mode the should shift the content without resizing it. We do this by
            //    adding to the left or right margin and simultaneously subtracting the same amount of
            //    margin from the other side.
            var left = 0;
            var right = 0;

            if (this._left && this._left.opened) {
              if (this._left.mode == 'side') {
                left += this._left._getWidth();
              } else if (this._left.mode == 'push') {
                var width = this._left._getWidth();

                left += width;
                right -= width;
              }
            }

            if (this._right && this._right.opened) {
              if (this._right.mode == 'side') {
                right += this._right._getWidth();
              } else if (this._right.mode == 'push') {
                var _width2 = this._right._getWidth();

                right += _width2;
                left -= _width2;
              }
            } // If either `right` or `left` is zero, don't set a style to the element. This
            // allows users to specify a custom size via CSS class in SSR scenarios where the
            // measured widths will always be zero. Note that we reset to `null` here, rather
            // than below, in order to ensure that the types in the `if` below are consistent.


            left = left || null;
            right = right || null;

            if (left !== this._contentMargins.left || right !== this._contentMargins.right) {
              this._contentMargins = {
                left: left,
                right: right
              }; // Pull back into the NgZone since in some cases we could be outside. We need to be careful
              // to do it only when something changed, otherwise we can end up hitting the zone too often.

              this._ngZone.run(function () {
                return _this870._contentMarginChanges.next(_this870._contentMargins);
              });
            }
          }
        }, {
          key: "ngDoCheck",
          value: function ngDoCheck() {
            var _this871 = this;

            // If users opted into autosizing, do a check every change detection cycle.
            if (this._autosize && this._isPushed()) {
              // Run outside the NgZone, otherwise the debouncer will throw us into an infinite loop.
              this._ngZone.runOutsideAngular(function () {
                return _this871._doCheckSubject.next();
              });
            }
          }
          /**
           * Subscribes to drawer events in order to set a class on the main container element when the
           * drawer is open and the backdrop is visible. This ensures any overflow on the container element
           * is properly hidden.
           */

        }, {
          key: "_watchDrawerToggle",
          value: function _watchDrawerToggle(drawer) {
            var _this872 = this;

            drawer._animationStarted.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__["filter"])(function (event) {
              return event.fromState !== event.toState;
            }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__["takeUntil"])(this._drawers.changes)).subscribe(function (event) {
              // Set the transition class on the container so that the animations occur. This should not
              // be set initially because animations should only be triggered via a change in state.
              if (event.toState !== 'open-instant' && _this872._animationMode !== 'NoopAnimations') {
                _this872._element.nativeElement.classList.add('mat-drawer-transition');
              }

              _this872.updateContentMargins();

              _this872._changeDetectorRef.markForCheck();
            });

            if (drawer.mode !== 'side') {
              drawer.openedChange.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__["takeUntil"])(this._drawers.changes)).subscribe(function () {
                return _this872._setContainerClass(drawer.opened);
              });
            }
          }
          /**
           * Subscribes to drawer onPositionChanged event in order to
           * re-validate drawers when the position changes.
           */

        }, {
          key: "_watchDrawerPosition",
          value: function _watchDrawerPosition(drawer) {
            var _this873 = this;

            if (!drawer) {
              return;
            } // NOTE: We need to wait for the microtask queue to be empty before validating,
            // since both drawers may be swapping positions at the same time.


            drawer.onPositionChanged.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__["takeUntil"])(this._drawers.changes)).subscribe(function () {
              _this873._ngZone.onMicrotaskEmpty.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__["take"])(1)).subscribe(function () {
                _this873._validateDrawers();
              });
            });
          }
          /** Subscribes to changes in drawer mode so we can run change detection. */

        }, {
          key: "_watchDrawerMode",
          value: function _watchDrawerMode(drawer) {
            var _this874 = this;

            if (drawer) {
              drawer._modeChanged.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__["takeUntil"])(Object(rxjs__WEBPACK_IMPORTED_MODULE_9__["merge"])(this._drawers.changes, this._destroyed))).subscribe(function () {
                _this874.updateContentMargins();

                _this874._changeDetectorRef.markForCheck();
              });
            }
          }
          /** Toggles the 'mat-drawer-opened' class on the main 'mat-drawer-container' element. */

        }, {
          key: "_setContainerClass",
          value: function _setContainerClass(isAdd) {
            var classList = this._element.nativeElement.classList;
            var className = 'mat-drawer-container-has-open';

            if (isAdd) {
              classList.add(className);
            } else {
              classList.remove(className);
            }
          }
          /** Validate the state of the drawer children components. */

        }, {
          key: "_validateDrawers",
          value: function _validateDrawers() {
            var _this875 = this;

            this._start = this._end = null; // Ensure that we have at most one start and one end drawer.

            this._drawers.forEach(function (drawer) {
              if (drawer.position == 'end') {
                if (_this875._end != null && (typeof ngDevMode === 'undefined' || ngDevMode)) {
                  throwMatDuplicatedDrawerError('end');
                }

                _this875._end = drawer;
              } else {
                if (_this875._start != null && (typeof ngDevMode === 'undefined' || ngDevMode)) {
                  throwMatDuplicatedDrawerError('start');
                }

                _this875._start = drawer;
              }
            });

            this._right = this._left = null; // Detect if we're LTR or RTL.

            if (this._dir && this._dir.value === 'rtl') {
              this._left = this._end;
              this._right = this._start;
            } else {
              this._left = this._start;
              this._right = this._end;
            }
          }
          /** Whether the container is being pushed to the side by one of the drawers. */

        }, {
          key: "_isPushed",
          value: function _isPushed() {
            return this._isDrawerOpen(this._start) && this._start.mode != 'over' || this._isDrawerOpen(this._end) && this._end.mode != 'over';
          }
        }, {
          key: "_onBackdropClicked",
          value: function _onBackdropClicked() {
            this.backdropClick.emit();

            this._closeModalDrawersViaBackdrop();
          }
        }, {
          key: "_closeModalDrawersViaBackdrop",
          value: function _closeModalDrawersViaBackdrop() {
            var _this876 = this;

            // Close all open drawers where closing is not disabled and the mode is not `side`.
            [this._start, this._end].filter(function (drawer) {
              return drawer && !drawer.disableClose && _this876._canHaveBackdrop(drawer);
            }).forEach(function (drawer) {
              return drawer._closeViaBackdropClick();
            });
          }
        }, {
          key: "_isShowingBackdrop",
          value: function _isShowingBackdrop() {
            return this._isDrawerOpen(this._start) && this._canHaveBackdrop(this._start) || this._isDrawerOpen(this._end) && this._canHaveBackdrop(this._end);
          }
        }, {
          key: "_canHaveBackdrop",
          value: function _canHaveBackdrop(drawer) {
            return drawer.mode !== 'side' || !!this._backdropOverride;
          }
        }, {
          key: "_isDrawerOpen",
          value: function _isDrawerOpen(drawer) {
            return drawer != null && drawer.opened;
          }
        }]);

        return MatDrawerContainer;
      }();

      MatDrawerContainer.ɵfac = function MatDrawerContainer_Factory(t) {
        return new (t || MatDrawerContainer)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_6__["Directionality"], 8), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["NgZone"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_1__["ViewportRuler"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](MAT_DRAWER_DEFAULT_AUTOSIZE), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_12__["ANIMATION_MODULE_TYPE"], 8));
      };

      MatDrawerContainer.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({
        type: MatDrawerContainer,
        selectors: [["mat-drawer-container"]],
        contentQueries: function MatDrawerContainer_ContentQueries(rf, ctx, dirIndex) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵcontentQuery"](dirIndex, MatDrawerContent, true);

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵcontentQuery"](dirIndex, MatDrawer, true);
          }

          if (rf & 2) {
            var _t;

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵloadQuery"]()) && (ctx._content = _t.first);
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵloadQuery"]()) && (ctx._allDrawers = _t);
          }
        },
        viewQuery: function MatDrawerContainer_Query(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵviewQuery"](MatDrawerContent, true);
          }

          if (rf & 2) {
            var _t;

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵloadQuery"]()) && (ctx._userContent = _t.first);
          }
        },
        hostAttrs: [1, "mat-drawer-container"],
        hostVars: 2,
        hostBindings: function MatDrawerContainer_HostBindings(rf, ctx) {
          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵclassProp"]("mat-drawer-container-explicit-backdrop", ctx._backdropOverride);
          }
        },
        inputs: {
          autosize: "autosize",
          hasBackdrop: "hasBackdrop"
        },
        outputs: {
          backdropClick: "backdropClick"
        },
        exportAs: ["matDrawerContainer"],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵProvidersFeature"]([{
          provide: MAT_DRAWER_CONTAINER,
          useExisting: MatDrawerContainer
        }])],
        ngContentSelectors: _c2,
        decls: 4,
        vars: 2,
        consts: [["class", "mat-drawer-backdrop", 3, "mat-drawer-shown", "click", 4, "ngIf"], [4, "ngIf"], [1, "mat-drawer-backdrop", 3, "click"]],
        template: function MatDrawerContainer_Template(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵprojectionDef"](_c1);

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](0, MatDrawerContainer_div_0_Template, 1, 2, "div", 0);

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵprojection"](1);

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵprojection"](2, 1);

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](3, MatDrawerContainer_mat_drawer_content_3_Template, 2, 0, "mat-drawer-content", 1);
          }

          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.hasBackdrop);

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", !ctx._content);
          }
        },
        directives: [_angular_common__WEBPACK_IMPORTED_MODULE_2__["NgIf"], MatDrawerContent],
        styles: [_c5],
        encapsulation: 2,
        changeDetection: 0
      });

      MatDrawerContainer.ctorParameters = function () {
        return [{
          type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_6__["Directionality"],
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"]
          }]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["NgZone"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ChangeDetectorRef"]
        }, {
          type: _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_1__["ViewportRuler"]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"],
            args: [MAT_DRAWER_DEFAULT_AUTOSIZE]
          }]
        }, {
          type: String,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"],
            args: [_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_12__["ANIMATION_MODULE_TYPE"]]
          }]
        }];
      };

      MatDrawerContainer.propDecorators = {
        _allDrawers: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ContentChildren"],
          args: [MatDrawer, {
            // We need to use `descendants: true`, because Ivy will no longer match
            // indirect descendants if it's left as false.
            descendants: true
          }]
        }],
        _content: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ContentChild"],
          args: [MatDrawerContent]
        }],
        _userContent: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewChild"],
          args: [MatDrawerContent]
        }],
        autosize: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
        }],
        hasBackdrop: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
        }],
        backdropClick: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Output"]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](MatDrawerContainer, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Component"],
          args: [{
            selector: 'mat-drawer-container',
            exportAs: 'matDrawerContainer',
            template: "<div class=\"mat-drawer-backdrop\" (click)=\"_onBackdropClicked()\" *ngIf=\"hasBackdrop\"\n     [class.mat-drawer-shown]=\"_isShowingBackdrop()\"></div>\n\n<ng-content select=\"mat-drawer\"></ng-content>\n\n<ng-content select=\"mat-drawer-content\">\n</ng-content>\n<mat-drawer-content *ngIf=\"!_content\">\n  <ng-content></ng-content>\n</mat-drawer-content>\n",
            host: {
              'class': 'mat-drawer-container',
              '[class.mat-drawer-container-explicit-backdrop]': '_backdropOverride'
            },
            changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ChangeDetectionStrategy"].OnPush,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewEncapsulation"].None,
            providers: [{
              provide: MAT_DRAWER_CONTAINER,
              useExisting: MatDrawerContainer
            }],
            styles: [".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"]
          }]
        }], function () {
          return [{
            type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_6__["Directionality"],
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"]
            }]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["NgZone"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ChangeDetectorRef"]
          }, {
            type: _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_1__["ViewportRuler"]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"],
              args: [MAT_DRAWER_DEFAULT_AUTOSIZE]
            }]
          }, {
            type: String,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"],
              args: [_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_12__["ANIMATION_MODULE_TYPE"]]
            }]
          }];
        }, {
          backdropClick: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Output"]
          }],
          autosize: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
          }],
          hasBackdrop: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
          }],
          _allDrawers: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ContentChildren"],
            args: [MatDrawer, {
              // We need to use `descendants: true`, because Ivy will no longer match
              // indirect descendants if it's left as false.
              descendants: true
            }]
          }],
          _content: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ContentChild"],
            args: [MatDrawerContent]
          }],
          _userContent: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewChild"],
            args: [MatDrawerContent]
          }]
        });
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var MatSidenavContent = /*#__PURE__*/function (_MatDrawerContent) {
        _inherits2(MatSidenavContent, _MatDrawerContent);

        var _super420 = _createSuper2(MatSidenavContent);

        function MatSidenavContent(changeDetectorRef, container, elementRef, scrollDispatcher, ngZone) {
          _classCallCheck2(this, MatSidenavContent);

          return _super420.call(this, changeDetectorRef, container, elementRef, scrollDispatcher, ngZone);
        }

        return MatSidenavContent;
      }(MatDrawerContent);

      MatSidenavContent.ɵfac = function MatSidenavContent_Factory(t) {
        return new (t || MatSidenavContent)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](Object(_angular_core__WEBPACK_IMPORTED_MODULE_3__["forwardRef"])(function () {
          return MatSidenavContainer;
        })), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_1__["ScrollDispatcher"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["NgZone"]));
      };

      MatSidenavContent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({
        type: MatSidenavContent,
        selectors: [["mat-sidenav-content"]],
        hostAttrs: [1, "mat-drawer-content", "mat-sidenav-content"],
        hostVars: 4,
        hostBindings: function MatSidenavContent_HostBindings(rf, ctx) {
          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵstyleProp"]("margin-left", ctx._container._contentMargins.left, "px")("margin-right", ctx._container._contentMargins.right, "px");
          }
        },
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵInheritDefinitionFeature"]],
        ngContentSelectors: _c0,
        decls: 1,
        vars: 0,
        template: function MatSidenavContent_Template(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵprojectionDef"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵprojection"](0);
          }
        },
        encapsulation: 2,
        changeDetection: 0
      });

      MatSidenavContent.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ChangeDetectorRef"]
        }, {
          type: MatSidenavContainer,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"],
            args: [Object(_angular_core__WEBPACK_IMPORTED_MODULE_3__["forwardRef"])(function () {
              return MatSidenavContainer;
            })]
          }]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]
        }, {
          type: _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_1__["ScrollDispatcher"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["NgZone"]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](MatSidenavContent, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Component"],
          args: [{
            selector: 'mat-sidenav-content',
            template: '<ng-content></ng-content>',
            host: {
              'class': 'mat-drawer-content mat-sidenav-content',
              '[style.margin-left.px]': '_container._contentMargins.left',
              '[style.margin-right.px]': '_container._contentMargins.right'
            },
            changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ChangeDetectionStrategy"].OnPush,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewEncapsulation"].None
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ChangeDetectorRef"]
          }, {
            type: MatSidenavContainer,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"],
              args: [Object(_angular_core__WEBPACK_IMPORTED_MODULE_3__["forwardRef"])(function () {
                return MatSidenavContainer;
              })]
            }]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]
          }, {
            type: _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_1__["ScrollDispatcher"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["NgZone"]
          }];
        }, null);
      })();

      var MatSidenav = /*#__PURE__*/function (_MatDrawer) {
        _inherits2(MatSidenav, _MatDrawer);

        var _super421 = _createSuper2(MatSidenav);

        function MatSidenav() {
          var _this877;

          _classCallCheck2(this, MatSidenav);

          _this877 = _super421.apply(this, arguments);
          _this877._fixedInViewport = false;
          _this877._fixedTopGap = 0;
          _this877._fixedBottomGap = 0;
          return _this877;
        }
        /** Whether the sidenav is fixed in the viewport. */


        _createClass2(MatSidenav, [{
          key: "fixedInViewport",
          get: function get() {
            return this._fixedInViewport;
          },
          set: function set(value) {
            this._fixedInViewport = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_7__["coerceBooleanProperty"])(value);
          }
          /**
           * The gap between the top of the sidenav and the top of the viewport when the sidenav is in fixed
           * mode.
           */

        }, {
          key: "fixedTopGap",
          get: function get() {
            return this._fixedTopGap;
          },
          set: function set(value) {
            this._fixedTopGap = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_7__["coerceNumberProperty"])(value);
          }
          /**
           * The gap between the bottom of the sidenav and the bottom of the viewport when the sidenav is in
           * fixed mode.
           */

        }, {
          key: "fixedBottomGap",
          get: function get() {
            return this._fixedBottomGap;
          },
          set: function set(value) {
            this._fixedBottomGap = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_7__["coerceNumberProperty"])(value);
          }
        }]);

        return MatSidenav;
      }(MatDrawer);

      MatSidenav.ɵfac = function MatSidenav_Factory(t) {
        return ɵMatSidenav_BaseFactory(t || MatSidenav);
      };

      MatSidenav.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({
        type: MatSidenav,
        selectors: [["mat-sidenav"]],
        hostAttrs: ["tabIndex", "-1", 1, "mat-drawer", "mat-sidenav"],
        hostVars: 17,
        hostBindings: function MatSidenav_HostBindings(rf, ctx) {
          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵattribute"]("align", null);

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵstyleProp"]("top", ctx.fixedInViewport ? ctx.fixedTopGap : null, "px")("bottom", ctx.fixedInViewport ? ctx.fixedBottomGap : null, "px");

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵclassProp"]("mat-drawer-end", ctx.position === "end")("mat-drawer-over", ctx.mode === "over")("mat-drawer-push", ctx.mode === "push")("mat-drawer-side", ctx.mode === "side")("mat-drawer-opened", ctx.opened)("mat-sidenav-fixed", ctx.fixedInViewport);
          }
        },
        inputs: {
          fixedInViewport: "fixedInViewport",
          fixedTopGap: "fixedTopGap",
          fixedBottomGap: "fixedBottomGap"
        },
        exportAs: ["matSidenav"],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵInheritDefinitionFeature"]],
        ngContentSelectors: _c0,
        decls: 2,
        vars: 0,
        consts: [[1, "mat-drawer-inner-container"]],
        template: function MatSidenav_Template(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵprojectionDef"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 0);

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵprojection"](1);

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
          }
        },
        encapsulation: 2,
        data: {
          animation: [matDrawerAnimations.transformDrawer]
        },
        changeDetection: 0
      });
      MatSidenav.propDecorators = {
        fixedInViewport: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
        }],
        fixedTopGap: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
        }],
        fixedBottomGap: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
        }]
      };

      var ɵMatSidenav_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵgetInheritedFactory"](MatSidenav);
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](MatSidenav, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Component"],
          args: [{
            selector: 'mat-sidenav',
            exportAs: 'matSidenav',
            template: "<div class=\"mat-drawer-inner-container\">\r\n  <ng-content></ng-content>\r\n</div>\r\n",
            animations: [matDrawerAnimations.transformDrawer],
            host: {
              'class': 'mat-drawer mat-sidenav',
              'tabIndex': '-1',
              // must prevent the browser from aligning text based on value
              '[attr.align]': 'null',
              '[class.mat-drawer-end]': 'position === "end"',
              '[class.mat-drawer-over]': 'mode === "over"',
              '[class.mat-drawer-push]': 'mode === "push"',
              '[class.mat-drawer-side]': 'mode === "side"',
              '[class.mat-drawer-opened]': 'opened',
              '[class.mat-sidenav-fixed]': 'fixedInViewport',
              '[style.top.px]': 'fixedInViewport ? fixedTopGap : null',
              '[style.bottom.px]': 'fixedInViewport ? fixedBottomGap : null'
            },
            changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ChangeDetectionStrategy"].OnPush,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewEncapsulation"].None
          }]
        }], null, {
          fixedInViewport: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
          }],
          fixedTopGap: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
          }],
          fixedBottomGap: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
          }]
        });
      })();

      var MatSidenavContainer = /*#__PURE__*/function (_MatDrawerContainer) {
        _inherits2(MatSidenavContainer, _MatDrawerContainer);

        var _super422 = _createSuper2(MatSidenavContainer);

        function MatSidenavContainer() {
          _classCallCheck2(this, MatSidenavContainer);

          return _super422.apply(this, arguments);
        }

        return MatSidenavContainer;
      }(MatDrawerContainer);

      MatSidenavContainer.ɵfac = function MatSidenavContainer_Factory(t) {
        return ɵMatSidenavContainer_BaseFactory(t || MatSidenavContainer);
      };

      MatSidenavContainer.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({
        type: MatSidenavContainer,
        selectors: [["mat-sidenav-container"]],
        contentQueries: function MatSidenavContainer_ContentQueries(rf, ctx, dirIndex) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵcontentQuery"](dirIndex, MatSidenavContent, true);

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵcontentQuery"](dirIndex, MatSidenav, true);
          }

          if (rf & 2) {
            var _t;

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵloadQuery"]()) && (ctx._content = _t.first);
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵloadQuery"]()) && (ctx._allDrawers = _t);
          }
        },
        hostAttrs: [1, "mat-drawer-container", "mat-sidenav-container"],
        hostVars: 2,
        hostBindings: function MatSidenavContainer_HostBindings(rf, ctx) {
          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵclassProp"]("mat-drawer-container-explicit-backdrop", ctx._backdropOverride);
          }
        },
        exportAs: ["matSidenavContainer"],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵProvidersFeature"]([{
          provide: MAT_DRAWER_CONTAINER,
          useExisting: MatSidenavContainer
        }]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵInheritDefinitionFeature"]],
        ngContentSelectors: _c4,
        decls: 4,
        vars: 2,
        consts: [["class", "mat-drawer-backdrop", 3, "mat-drawer-shown", "click", 4, "ngIf"], ["cdkScrollable", "", 4, "ngIf"], [1, "mat-drawer-backdrop", 3, "click"], ["cdkScrollable", ""]],
        template: function MatSidenavContainer_Template(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵprojectionDef"](_c3);

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](0, MatSidenavContainer_div_0_Template, 1, 2, "div", 0);

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵprojection"](1);

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵprojection"](2, 1);

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](3, MatSidenavContainer_mat_sidenav_content_3_Template, 2, 0, "mat-sidenav-content", 1);
          }

          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.hasBackdrop);

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", !ctx._content);
          }
        },
        directives: [_angular_common__WEBPACK_IMPORTED_MODULE_2__["NgIf"], MatSidenavContent, _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_1__["CdkScrollable"]],
        styles: [_c5],
        encapsulation: 2,
        changeDetection: 0
      });
      MatSidenavContainer.propDecorators = {
        _allDrawers: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ContentChildren"],
          args: [MatSidenav, {
            // We need to use `descendants: true`, because Ivy will no longer match
            // indirect descendants if it's left as false.
            descendants: true
          }]
        }],
        _content: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ContentChild"],
          args: [MatSidenavContent]
        }]
      };

      var ɵMatSidenavContainer_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵgetInheritedFactory"](MatSidenavContainer);
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](MatSidenavContainer, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Component"],
          args: [{
            selector: 'mat-sidenav-container',
            exportAs: 'matSidenavContainer',
            template: "<div class=\"mat-drawer-backdrop\" (click)=\"_onBackdropClicked()\" *ngIf=\"hasBackdrop\"\n     [class.mat-drawer-shown]=\"_isShowingBackdrop()\"></div>\n\n<ng-content select=\"mat-sidenav\"></ng-content>\n\n<ng-content select=\"mat-sidenav-content\">\n</ng-content>\n<mat-sidenav-content *ngIf=\"!_content\" cdkScrollable>\n  <ng-content></ng-content>\n</mat-sidenav-content>\n",
            host: {
              'class': 'mat-drawer-container mat-sidenav-container',
              '[class.mat-drawer-container-explicit-backdrop]': '_backdropOverride'
            },
            changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ChangeDetectionStrategy"].OnPush,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewEncapsulation"].None,
            providers: [{
              provide: MAT_DRAWER_CONTAINER,
              useExisting: MatSidenavContainer
            }],
            styles: [".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"]
          }]
        }], null, {
          _allDrawers: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ContentChildren"],
            args: [MatSidenav, {
              // We need to use `descendants: true`, because Ivy will no longer match
              // indirect descendants if it's left as false.
              descendants: true
            }]
          }],
          _content: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ContentChild"],
            args: [MatSidenavContent]
          }]
        });
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var MatSidenavModule = function MatSidenavModule() {
        _classCallCheck2(this, MatSidenavModule);
      };

      MatSidenavModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineNgModule"]({
        type: MatSidenavModule
      });
      MatSidenavModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineInjector"]({
        factory: function MatSidenavModule_Factory(t) {
          return new (t || MatSidenavModule)();
        },
        imports: [[_angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_4__["MatCommonModule"], _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_0__["PlatformModule"], _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_1__["CdkScrollableModule"]], _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_1__["CdkScrollableModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_4__["MatCommonModule"]]
      });

      (function () {
        (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵsetNgModuleScope"](MatSidenavModule, {
          declarations: function declarations() {
            return [MatDrawer, MatDrawerContainer, MatDrawerContent, MatSidenav, MatSidenavContainer, MatSidenavContent];
          },
          imports: function imports() {
            return [_angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_4__["MatCommonModule"], _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_0__["PlatformModule"], _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_1__["CdkScrollableModule"]];
          },
          exports: function exports() {
            return [_angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_1__["CdkScrollableModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_4__["MatCommonModule"], MatDrawer, MatDrawerContainer, MatDrawerContent, MatSidenav, MatSidenavContainer, MatSidenavContent];
          }
        });
      })();
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](MatSidenavModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["NgModule"],
          args: [{
            imports: [_angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_4__["MatCommonModule"], _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_0__["PlatformModule"], _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_1__["CdkScrollableModule"]],
            exports: [_angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_1__["CdkScrollableModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_4__["MatCommonModule"], MatDrawer, MatDrawerContainer, MatDrawerContent, MatSidenav, MatSidenavContainer, MatSidenavContent],
            declarations: [MatDrawer, MatDrawerContainer, MatDrawerContent, MatSidenav, MatSidenavContainer, MatSidenavContent]
          }]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Generated bundle index. Do not edit.
       */
      //# sourceMappingURL=sidenav.js.map

      /***/

    },

    /***/
    "q7zd": function q7zd(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "concatMapTo", function () {
        return concatMapTo;
      });
      /* harmony import */


      var _concatMap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ./concatMap */
      "bOdf");

      function concatMapTo(innerObservable, resultSelector) {
        return Object(_concatMap__WEBPACK_IMPORTED_MODULE_0__["concatMap"])(function () {
          return innerObservable;
        }, resultSelector);
      } //# sourceMappingURL=concatMapTo.js.map

      /***/

    },

    /***/
    "q92s": function q92s(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "merge", function () {
        return merge;
      });
      /* harmony import */


      var _observable_merge__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../observable/merge */
      "VRyK");

      function merge() {
        for (var _len73 = arguments.length, observables = new Array(_len73), _key76 = 0; _key76 < _len73; _key76++) {
          observables[_key76] = arguments[_key76];
        }

        return function (source) {
          return source.lift.call(Object(_observable_merge__WEBPACK_IMPORTED_MODULE_0__["merge"]).apply(void 0, [source].concat(observables)));
        };
      } //# sourceMappingURL=merge.js.map

      /***/

    },

    /***/
    "qBft": function qBft(module, exports, __webpack_require__) {
      ;

      (function (root, factory, undef) {
        if (true) {
          // CommonJS
          module.exports = exports = factory(__webpack_require__(
          /*! ./core */
          "Ib8C"), __webpack_require__(
          /*! ./cipher-core */
          "OLod"));
        } else {}
      })(this, function (CryptoJS) {
        /**
         * ANSI X.923 padding strategy.
         */
        CryptoJS.pad.AnsiX923 = {
          pad: function pad(data, blockSize) {
            // Shortcuts
            var dataSigBytes = data.sigBytes;
            var blockSizeBytes = blockSize * 4; // Count padding bytes

            var nPaddingBytes = blockSizeBytes - dataSigBytes % blockSizeBytes; // Compute last byte position

            var lastBytePos = dataSigBytes + nPaddingBytes - 1; // Pad

            data.clamp();
            data.words[lastBytePos >>> 2] |= nPaddingBytes << 24 - lastBytePos % 4 * 8;
            data.sigBytes += nPaddingBytes;
          },
          unpad: function unpad(data) {
            // Get number of padding bytes from last byte
            var nPaddingBytes = data.words[data.sigBytes - 1 >>> 2] & 0xff; // Remove padding

            data.sigBytes -= nPaddingBytes;
          }
        };
        return CryptoJS.pad.Ansix923;
      });
      /***/

    },

    /***/
    "qCKp": function qCKp(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony import */


      var _internal_Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ./internal/Observable */
      "HDdC");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "Observable", function () {
        return _internal_Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"];
      });
      /* harmony import */


      var _internal_observable_ConnectableObservable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ./internal/observable/ConnectableObservable */
      "EQ5u");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "ConnectableObservable", function () {
        return _internal_observable_ConnectableObservable__WEBPACK_IMPORTED_MODULE_1__["ConnectableObservable"];
      });
      /* harmony import */


      var _internal_operators_groupBy__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ./internal/operators/groupBy */
      "OQgR");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "GroupedObservable", function () {
        return _internal_operators_groupBy__WEBPACK_IMPORTED_MODULE_2__["GroupedObservable"];
      });
      /* harmony import */


      var _internal_symbol_observable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ./internal/symbol/observable */
      "kJWO");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "observable", function () {
        return _internal_symbol_observable__WEBPACK_IMPORTED_MODULE_3__["observable"];
      });
      /* harmony import */


      var _internal_Subject__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! ./internal/Subject */
      "XNiG");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "Subject", function () {
        return _internal_Subject__WEBPACK_IMPORTED_MODULE_4__["Subject"];
      });
      /* harmony import */


      var _internal_BehaviorSubject__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! ./internal/BehaviorSubject */
      "2Vo4");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "BehaviorSubject", function () {
        return _internal_BehaviorSubject__WEBPACK_IMPORTED_MODULE_5__["BehaviorSubject"];
      });
      /* harmony import */


      var _internal_ReplaySubject__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
      /*! ./internal/ReplaySubject */
      "jtHE");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "ReplaySubject", function () {
        return _internal_ReplaySubject__WEBPACK_IMPORTED_MODULE_6__["ReplaySubject"];
      });
      /* harmony import */


      var _internal_AsyncSubject__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
      /*! ./internal/AsyncSubject */
      "NHP+");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "AsyncSubject", function () {
        return _internal_AsyncSubject__WEBPACK_IMPORTED_MODULE_7__["AsyncSubject"];
      });
      /* harmony import */


      var _internal_scheduler_asap__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
      /*! ./internal/scheduler/asap */
      "7Hc7");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "asap", function () {
        return _internal_scheduler_asap__WEBPACK_IMPORTED_MODULE_8__["asap"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "asapScheduler", function () {
        return _internal_scheduler_asap__WEBPACK_IMPORTED_MODULE_8__["asapScheduler"];
      });
      /* harmony import */


      var _internal_scheduler_async__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
      /*! ./internal/scheduler/async */
      "D0XW");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "async", function () {
        return _internal_scheduler_async__WEBPACK_IMPORTED_MODULE_9__["async"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "asyncScheduler", function () {
        return _internal_scheduler_async__WEBPACK_IMPORTED_MODULE_9__["asyncScheduler"];
      });
      /* harmony import */


      var _internal_scheduler_queue__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(
      /*! ./internal/scheduler/queue */
      "qgXg");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "queue", function () {
        return _internal_scheduler_queue__WEBPACK_IMPORTED_MODULE_10__["queue"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "queueScheduler", function () {
        return _internal_scheduler_queue__WEBPACK_IMPORTED_MODULE_10__["queueScheduler"];
      });
      /* harmony import */


      var _internal_scheduler_animationFrame__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(
      /*! ./internal/scheduler/animationFrame */
      "eNwd");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "animationFrame", function () {
        return _internal_scheduler_animationFrame__WEBPACK_IMPORTED_MODULE_11__["animationFrame"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "animationFrameScheduler", function () {
        return _internal_scheduler_animationFrame__WEBPACK_IMPORTED_MODULE_11__["animationFrameScheduler"];
      });
      /* harmony import */


      var _internal_scheduler_VirtualTimeScheduler__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(
      /*! ./internal/scheduler/VirtualTimeScheduler */
      "iKkX");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "VirtualTimeScheduler", function () {
        return _internal_scheduler_VirtualTimeScheduler__WEBPACK_IMPORTED_MODULE_12__["VirtualTimeScheduler"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "VirtualAction", function () {
        return _internal_scheduler_VirtualTimeScheduler__WEBPACK_IMPORTED_MODULE_12__["VirtualAction"];
      });
      /* harmony import */


      var _internal_Scheduler__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(
      /*! ./internal/Scheduler */
      "Y/cZ");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "Scheduler", function () {
        return _internal_Scheduler__WEBPACK_IMPORTED_MODULE_13__["Scheduler"];
      });
      /* harmony import */


      var _internal_Subscription__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(
      /*! ./internal/Subscription */
      "quSY");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "Subscription", function () {
        return _internal_Subscription__WEBPACK_IMPORTED_MODULE_14__["Subscription"];
      });
      /* harmony import */


      var _internal_Subscriber__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(
      /*! ./internal/Subscriber */
      "7o/Q");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "Subscriber", function () {
        return _internal_Subscriber__WEBPACK_IMPORTED_MODULE_15__["Subscriber"];
      });
      /* harmony import */


      var _internal_Notification__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(
      /*! ./internal/Notification */
      "WMd4");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "Notification", function () {
        return _internal_Notification__WEBPACK_IMPORTED_MODULE_16__["Notification"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "NotificationKind", function () {
        return _internal_Notification__WEBPACK_IMPORTED_MODULE_16__["NotificationKind"];
      });
      /* harmony import */


      var _internal_util_pipe__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(
      /*! ./internal/util/pipe */
      "mCNh");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "pipe", function () {
        return _internal_util_pipe__WEBPACK_IMPORTED_MODULE_17__["pipe"];
      });
      /* harmony import */


      var _internal_util_noop__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(
      /*! ./internal/util/noop */
      "KqfI");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "noop", function () {
        return _internal_util_noop__WEBPACK_IMPORTED_MODULE_18__["noop"];
      });
      /* harmony import */


      var _internal_util_identity__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(
      /*! ./internal/util/identity */
      "SpAZ");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "identity", function () {
        return _internal_util_identity__WEBPACK_IMPORTED_MODULE_19__["identity"];
      });
      /* harmony import */


      var _internal_util_isObservable__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(
      /*! ./internal/util/isObservable */
      "7+OI");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "isObservable", function () {
        return _internal_util_isObservable__WEBPACK_IMPORTED_MODULE_20__["isObservable"];
      });
      /* harmony import */


      var _internal_util_ArgumentOutOfRangeError__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(
      /*! ./internal/util/ArgumentOutOfRangeError */
      "4I5i");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "ArgumentOutOfRangeError", function () {
        return _internal_util_ArgumentOutOfRangeError__WEBPACK_IMPORTED_MODULE_21__["ArgumentOutOfRangeError"];
      });
      /* harmony import */


      var _internal_util_EmptyError__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(
      /*! ./internal/util/EmptyError */
      "sVev");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "EmptyError", function () {
        return _internal_util_EmptyError__WEBPACK_IMPORTED_MODULE_22__["EmptyError"];
      });
      /* harmony import */


      var _internal_util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(
      /*! ./internal/util/ObjectUnsubscribedError */
      "9ppp");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "ObjectUnsubscribedError", function () {
        return _internal_util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_23__["ObjectUnsubscribedError"];
      });
      /* harmony import */


      var _internal_util_UnsubscriptionError__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(
      /*! ./internal/util/UnsubscriptionError */
      "pjAE");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "UnsubscriptionError", function () {
        return _internal_util_UnsubscriptionError__WEBPACK_IMPORTED_MODULE_24__["UnsubscriptionError"];
      });
      /* harmony import */


      var _internal_util_TimeoutError__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(
      /*! ./internal/util/TimeoutError */
      "Y6u4");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "TimeoutError", function () {
        return _internal_util_TimeoutError__WEBPACK_IMPORTED_MODULE_25__["TimeoutError"];
      });
      /* harmony import */


      var _internal_observable_bindCallback__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(
      /*! ./internal/observable/bindCallback */
      "QqCr");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "bindCallback", function () {
        return _internal_observable_bindCallback__WEBPACK_IMPORTED_MODULE_26__["bindCallback"];
      });
      /* harmony import */


      var _internal_observable_bindNodeCallback__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(
      /*! ./internal/observable/bindNodeCallback */
      "4O5X");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "bindNodeCallback", function () {
        return _internal_observable_bindNodeCallback__WEBPACK_IMPORTED_MODULE_27__["bindNodeCallback"];
      });
      /* harmony import */


      var _internal_observable_combineLatest__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(
      /*! ./internal/observable/combineLatest */
      "itXk");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "combineLatest", function () {
        return _internal_observable_combineLatest__WEBPACK_IMPORTED_MODULE_28__["combineLatest"];
      });
      /* harmony import */


      var _internal_observable_concat__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(
      /*! ./internal/observable/concat */
      "GyhO");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "concat", function () {
        return _internal_observable_concat__WEBPACK_IMPORTED_MODULE_29__["concat"];
      });
      /* harmony import */


      var _internal_observable_defer__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(
      /*! ./internal/observable/defer */
      "NXyV");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "defer", function () {
        return _internal_observable_defer__WEBPACK_IMPORTED_MODULE_30__["defer"];
      });
      /* harmony import */


      var _internal_observable_empty__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(
      /*! ./internal/observable/empty */
      "EY2u");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "empty", function () {
        return _internal_observable_empty__WEBPACK_IMPORTED_MODULE_31__["empty"];
      });
      /* harmony import */


      var _internal_observable_forkJoin__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(
      /*! ./internal/observable/forkJoin */
      "cp0P");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "forkJoin", function () {
        return _internal_observable_forkJoin__WEBPACK_IMPORTED_MODULE_32__["forkJoin"];
      });
      /* harmony import */


      var _internal_observable_from__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(
      /*! ./internal/observable/from */
      "Cfvw");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "from", function () {
        return _internal_observable_from__WEBPACK_IMPORTED_MODULE_33__["from"];
      });
      /* harmony import */


      var _internal_observable_fromEvent__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(
      /*! ./internal/observable/fromEvent */
      "xgIS");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "fromEvent", function () {
        return _internal_observable_fromEvent__WEBPACK_IMPORTED_MODULE_34__["fromEvent"];
      });
      /* harmony import */


      var _internal_observable_fromEventPattern__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(
      /*! ./internal/observable/fromEventPattern */
      "04ZW");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "fromEventPattern", function () {
        return _internal_observable_fromEventPattern__WEBPACK_IMPORTED_MODULE_35__["fromEventPattern"];
      });
      /* harmony import */


      var _internal_observable_generate__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(
      /*! ./internal/observable/generate */
      "WPMC");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "generate", function () {
        return _internal_observable_generate__WEBPACK_IMPORTED_MODULE_36__["generate"];
      });
      /* harmony import */


      var _internal_observable_iif__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(
      /*! ./internal/observable/iif */
      "r0o6");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "iif", function () {
        return _internal_observable_iif__WEBPACK_IMPORTED_MODULE_37__["iif"];
      });
      /* harmony import */


      var _internal_observable_interval__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(
      /*! ./internal/observable/interval */
      "l5mm");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "interval", function () {
        return _internal_observable_interval__WEBPACK_IMPORTED_MODULE_38__["interval"];
      });
      /* harmony import */


      var _internal_observable_merge__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(
      /*! ./internal/observable/merge */
      "VRyK");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "merge", function () {
        return _internal_observable_merge__WEBPACK_IMPORTED_MODULE_39__["merge"];
      });
      /* harmony import */


      var _internal_observable_never__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(
      /*! ./internal/observable/never */
      "5yfJ");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "never", function () {
        return _internal_observable_never__WEBPACK_IMPORTED_MODULE_40__["never"];
      });
      /* harmony import */


      var _internal_observable_of__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(
      /*! ./internal/observable/of */
      "LRne");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "of", function () {
        return _internal_observable_of__WEBPACK_IMPORTED_MODULE_41__["of"];
      });
      /* harmony import */


      var _internal_observable_onErrorResumeNext__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(
      /*! ./internal/observable/onErrorResumeNext */
      "Hkhx");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "onErrorResumeNext", function () {
        return _internal_observable_onErrorResumeNext__WEBPACK_IMPORTED_MODULE_42__["onErrorResumeNext"];
      });
      /* harmony import */


      var _internal_observable_pairs__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(
      /*! ./internal/observable/pairs */
      "hKy8");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "pairs", function () {
        return _internal_observable_pairs__WEBPACK_IMPORTED_MODULE_43__["pairs"];
      });
      /* harmony import */


      var _internal_observable_partition__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(
      /*! ./internal/observable/partition */
      "2QGa");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "partition", function () {
        return _internal_observable_partition__WEBPACK_IMPORTED_MODULE_44__["partition"];
      });
      /* harmony import */


      var _internal_observable_race__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(
      /*! ./internal/observable/race */
      "Nv8m");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "race", function () {
        return _internal_observable_race__WEBPACK_IMPORTED_MODULE_45__["race"];
      });
      /* harmony import */


      var _internal_observable_range__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(
      /*! ./internal/observable/range */
      "NNCq");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "range", function () {
        return _internal_observable_range__WEBPACK_IMPORTED_MODULE_46__["range"];
      });
      /* harmony import */


      var _internal_observable_throwError__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(
      /*! ./internal/observable/throwError */
      "z6cu");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "throwError", function () {
        return _internal_observable_throwError__WEBPACK_IMPORTED_MODULE_47__["throwError"];
      });
      /* harmony import */


      var _internal_observable_timer__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(
      /*! ./internal/observable/timer */
      "PqYM");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "timer", function () {
        return _internal_observable_timer__WEBPACK_IMPORTED_MODULE_48__["timer"];
      });
      /* harmony import */


      var _internal_observable_using__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(
      /*! ./internal/observable/using */
      "Qn8I");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "using", function () {
        return _internal_observable_using__WEBPACK_IMPORTED_MODULE_49__["using"];
      });
      /* harmony import */


      var _internal_observable_zip__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(
      /*! ./internal/observable/zip */
      "1uah");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "zip", function () {
        return _internal_observable_zip__WEBPACK_IMPORTED_MODULE_50__["zip"];
      });
      /* harmony import */


      var _internal_scheduled_scheduled__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(
      /*! ./internal/scheduled/scheduled */
      "7HRe");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "scheduled", function () {
        return _internal_scheduled_scheduled__WEBPACK_IMPORTED_MODULE_51__["scheduled"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "EMPTY", function () {
        return _internal_observable_empty__WEBPACK_IMPORTED_MODULE_31__["EMPTY"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "NEVER", function () {
        return _internal_observable_never__WEBPACK_IMPORTED_MODULE_40__["NEVER"];
      });
      /* harmony import */


      var _internal_config__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(
      /*! ./internal/config */
      "2fFW");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "config", function () {
        return _internal_config__WEBPACK_IMPORTED_MODULE_52__["config"];
      }); //# sourceMappingURL=index.js.map

      /***/

    },

    /***/
    "qM6L": function qM6L(module, exports, __webpack_require__) {
      ;

      (function (root, factory) {
        if (true) {
          // CommonJS
          module.exports = exports = factory(__webpack_require__(
          /*! ./core */
          "Ib8C"));
        } else {}
      })(this, function (CryptoJS) {
        (function () {
          // Shortcuts
          var C = CryptoJS;
          var C_lib = C.lib;
          var WordArray = C_lib.WordArray;
          var C_enc = C.enc;
          /**
           * UTF-16 BE encoding strategy.
           */

          var Utf16BE = C_enc.Utf16 = C_enc.Utf16BE = {
            /**
             * Converts a word array to a UTF-16 BE string.
             *
             * @param {WordArray} wordArray The word array.
             *
             * @return {string} The UTF-16 BE string.
             *
             * @static
             *
             * @example
             *
             *     var utf16String = CryptoJS.enc.Utf16.stringify(wordArray);
             */
            stringify: function stringify(wordArray) {
              // Shortcuts
              var words = wordArray.words;
              var sigBytes = wordArray.sigBytes; // Convert

              var utf16Chars = [];

              for (var i = 0; i < sigBytes; i += 2) {
                var codePoint = words[i >>> 2] >>> 16 - i % 4 * 8 & 0xffff;
                utf16Chars.push(String.fromCharCode(codePoint));
              }

              return utf16Chars.join('');
            },

            /**
             * Converts a UTF-16 BE string to a word array.
             *
             * @param {string} utf16Str The UTF-16 BE string.
             *
             * @return {WordArray} The word array.
             *
             * @static
             *
             * @example
             *
             *     var wordArray = CryptoJS.enc.Utf16.parse(utf16String);
             */
            parse: function parse(utf16Str) {
              // Shortcut
              var utf16StrLength = utf16Str.length; // Convert

              var words = [];

              for (var i = 0; i < utf16StrLength; i++) {
                words[i >>> 1] |= utf16Str.charCodeAt(i) << 16 - i % 2 * 16;
              }

              return WordArray.create(words, utf16StrLength * 2);
            }
          };
          /**
           * UTF-16 LE encoding strategy.
           */

          C_enc.Utf16LE = {
            /**
             * Converts a word array to a UTF-16 LE string.
             *
             * @param {WordArray} wordArray The word array.
             *
             * @return {string} The UTF-16 LE string.
             *
             * @static
             *
             * @example
             *
             *     var utf16Str = CryptoJS.enc.Utf16LE.stringify(wordArray);
             */
            stringify: function stringify(wordArray) {
              // Shortcuts
              var words = wordArray.words;
              var sigBytes = wordArray.sigBytes; // Convert

              var utf16Chars = [];

              for (var i = 0; i < sigBytes; i += 2) {
                var codePoint = swapEndian(words[i >>> 2] >>> 16 - i % 4 * 8 & 0xffff);
                utf16Chars.push(String.fromCharCode(codePoint));
              }

              return utf16Chars.join('');
            },

            /**
             * Converts a UTF-16 LE string to a word array.
             *
             * @param {string} utf16Str The UTF-16 LE string.
             *
             * @return {WordArray} The word array.
             *
             * @static
             *
             * @example
             *
             *     var wordArray = CryptoJS.enc.Utf16LE.parse(utf16Str);
             */
            parse: function parse(utf16Str) {
              // Shortcut
              var utf16StrLength = utf16Str.length; // Convert

              var words = [];

              for (var i = 0; i < utf16StrLength; i++) {
                words[i >>> 1] |= swapEndian(utf16Str.charCodeAt(i) << 16 - i % 2 * 16);
              }

              return WordArray.create(words, utf16StrLength * 2);
            }
          };

          function swapEndian(word) {
            return word << 8 & 0xff00ff00 | word >>> 8 & 0x00ff00ff;
          }
        })();

        return CryptoJS.enc.Utf16;
      });
      /***/

    },

    /***/
    "qVkf": function qVkf(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return differenceInSeconds;
      });
      /* harmony import */


      var _differenceInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../differenceInMilliseconds/index.js */
      "Orh4");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name differenceInSeconds
       * @category Second Helpers
       * @summary Get the number of seconds between the given dates.
       *
       * @description
       * Get the number of seconds between the given dates.
       *
       * ### 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 {Date|Number} dateLeft - the later date
       * @param {Date|Number} dateRight - the earlier date
       * @returns {Number} the number of seconds
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // How many seconds are between
       * // 2 July 2014 12:30:07.999 and 2 July 2014 12:30:20.000?
       * var result = differenceInSeconds(
       *   new Date(2014, 6, 2, 12, 30, 20, 0),
       *   new Date(2014, 6, 2, 12, 30, 7, 999)
       * )
       * //=> 12
       */


      function differenceInSeconds(dirtyDateLeft, dirtyDateRight) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(2, arguments);
        var diff = Object(_differenceInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateLeft, dirtyDateRight) / 1000;
        return diff > 0 ? Math.floor(diff) : Math.ceil(diff);
      }
      /***/

    },

    /***/
    "qXT7": function qXT7(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "_MatMenuDirectivesModuleNgFactory", function () {
        return _MatMenuDirectivesModuleNgFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatMenuModuleNgFactory", function () {
        return MatMenuModuleNgFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "RenderType_MatMenu", function () {
        return RenderType_MatMenu;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "View_MatMenu_0", function () {
        return View_MatMenu_0;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "View_MatMenu_Host_0", function () {
        return View_MatMenu_Host_0;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatMenuNgFactory", function () {
        return MatMenuNgFactory;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "RenderType_MatMenuItem", function () {
        return RenderType_MatMenuItem;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "View_MatMenuItem_0", function () {
        return View_MatMenuItem_0;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "View_MatMenuItem_Host_0", function () {
        return View_MatMenuItem_Host_0;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatMenuItemNgFactory", function () {
        return MatMenuItemNgFactory;
      });
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /* harmony import */


      var _angular_material_menu__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/material/menu */
      "rJgo");
      /* harmony import */


      var _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! @angular/cdk/overlay */
      "1O3W");
      /* harmony import */


      var _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! @angular/cdk/bidi */
      "9gLZ");
      /* harmony import */


      var _angular_material_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! @angular/material/core */
      "UhP/");
      /* harmony import */


      var _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! @angular/cdk/a11y */
      "YEUz");
      /* harmony import */


      var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
      /*! @angular/common */
      "SVse");
      /* harmony import */


      var _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
      /*! @angular/cdk/platform */
      "SCoL");
      /* harmony import */


      var _angular_cdk_portal__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
      /*! @angular/cdk/portal */
      "1z/I");
      /* harmony import */


      var _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
      /*! @angular/cdk/scrolling */
      "7KAL");
      /* harmony import */


      var _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(
      /*! @angular/platform-browser/animations */
      "omvX");
      /**
       * @fileoverview This file was generated by the Angular template compiler. Do not edit.
       *
       * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes,extraRequire}
       * tslint:disable
       */


      var _MatMenuDirectivesModuleNgFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵcmf"](_angular_material_menu__WEBPACK_IMPORTED_MODULE_1__["_MatMenuDirectivesModule"], [], function (_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmod"]([_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](512, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵCodegenComponentFactoryResolver"], [[8, []], [3, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"]], _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModuleRef"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](5120, _angular_material_menu__WEBPACK_IMPORTED_MODULE_1__["MAT_MENU_SCROLL_STRATEGY"], _angular_material_menu__WEBPACK_IMPORTED_MODULE_1__["ɵangular_material_src_material_menu_menu_b"], [_angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_2__["Overlay"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_3__["BidiModule"], _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_3__["BidiModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_material_core__WEBPACK_IMPORTED_MODULE_4__["MatCommonModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_4__["MatCommonModule"], [_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_5__["HighContrastModeDetector"], [2, _angular_material_core__WEBPACK_IMPORTED_MODULE_4__["MATERIAL_SANITY_CHECKS"]], _angular_common__WEBPACK_IMPORTED_MODULE_6__["DOCUMENT"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_material_menu__WEBPACK_IMPORTED_MODULE_1__["_MatMenuDirectivesModule"], _angular_material_menu__WEBPACK_IMPORTED_MODULE_1__["_MatMenuDirectivesModule"], [])]);
      });

      var MatMenuModuleNgFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵcmf"](_angular_material_menu__WEBPACK_IMPORTED_MODULE_1__["MatMenuModule"], [], function (_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmod"]([_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](512, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵCodegenComponentFactoryResolver"], [[8, []], [3, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"]], _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModuleRef"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](4608, _angular_common__WEBPACK_IMPORTED_MODULE_6__["NgLocalization"], _angular_common__WEBPACK_IMPORTED_MODULE_6__["NgLocaleLocalization"], [_angular_core__WEBPACK_IMPORTED_MODULE_0__["LOCALE_ID"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](4608, _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_2__["Overlay"], _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_2__["Overlay"], [_angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_2__["ScrollStrategyOptions"], _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_2__["OverlayContainer"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"], _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_2__["OverlayPositionBuilder"], _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_2__["OverlayKeyboardDispatcher"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injector"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"], _angular_common__WEBPACK_IMPORTED_MODULE_6__["DOCUMENT"], _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_3__["Directionality"], _angular_common__WEBPACK_IMPORTED_MODULE_6__["Location"], _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_2__["OverlayOutsideClickDispatcher"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](5120, _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_2__["ɵangular_material_src_cdk_overlay_overlay_a"], _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_2__["ɵangular_material_src_cdk_overlay_overlay_b"], [_angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_2__["Overlay"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](5120, _angular_material_menu__WEBPACK_IMPORTED_MODULE_1__["MAT_MENU_SCROLL_STRATEGY"], _angular_material_menu__WEBPACK_IMPORTED_MODULE_1__["ɵangular_material_src_material_menu_menu_b"], [_angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_2__["Overlay"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_common__WEBPACK_IMPORTED_MODULE_6__["CommonModule"], _angular_common__WEBPACK_IMPORTED_MODULE_6__["CommonModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_3__["BidiModule"], _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_3__["BidiModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_material_core__WEBPACK_IMPORTED_MODULE_4__["MatCommonModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_4__["MatCommonModule"], [_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_5__["HighContrastModeDetector"], [2, _angular_material_core__WEBPACK_IMPORTED_MODULE_4__["MATERIAL_SANITY_CHECKS"]], _angular_common__WEBPACK_IMPORTED_MODULE_6__["DOCUMENT"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_7__["PlatformModule"], _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_7__["PlatformModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_material_core__WEBPACK_IMPORTED_MODULE_4__["MatRippleModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_4__["MatRippleModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_cdk_portal__WEBPACK_IMPORTED_MODULE_8__["PortalModule"], _angular_cdk_portal__WEBPACK_IMPORTED_MODULE_8__["PortalModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_9__["CdkScrollableModule"], _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_9__["CdkScrollableModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_9__["ScrollingModule"], _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_9__["ScrollingModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_2__["OverlayModule"], _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_2__["OverlayModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_material_menu__WEBPACK_IMPORTED_MODULE_1__["_MatMenuDirectivesModule"], _angular_material_menu__WEBPACK_IMPORTED_MODULE_1__["_MatMenuDirectivesModule"], []), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵmpd"](1073742336, _angular_material_menu__WEBPACK_IMPORTED_MODULE_1__["MatMenuModule"], _angular_material_menu__WEBPACK_IMPORTED_MODULE_1__["MatMenuModule"], [])]);
      });

      var styles_MatMenu = [".mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:\"\";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"];

      var RenderType_MatMenu = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵcrt"]({
        encapsulation: 2,
        styles: styles_MatMenu,
        data: {
          "animation": [{
            type: 7,
            name: "transformMenu",
            definitions: [{
              type: 0,
              name: "void",
              styles: {
                type: 6,
                styles: {
                  opacity: 0,
                  transform: "scale(0.8)"
                },
                offset: null
              },
              options: undefined
            }, {
              type: 1,
              expr: "void => enter",
              animation: {
                type: 4,
                styles: {
                  type: 6,
                  styles: {
                    opacity: 1,
                    transform: "scale(1)"
                  },
                  offset: null
                },
                timings: "120ms cubic-bezier(0, 0, 0.2, 1)"
              },
              options: null
            }, {
              type: 1,
              expr: "* => void",
              animation: {
                type: 4,
                styles: {
                  type: 6,
                  styles: {
                    opacity: 0
                  },
                  offset: null
                },
                timings: "100ms 25ms linear"
              },
              options: null
            }],
            options: {}
          }, {
            type: 7,
            name: "fadeInItems",
            definitions: [{
              type: 0,
              name: "showing",
              styles: {
                type: 6,
                styles: {
                  opacity: 1
                },
                offset: null
              },
              options: undefined
            }, {
              type: 1,
              expr: "void => *",
              animation: [{
                type: 6,
                styles: {
                  opacity: 0
                },
                offset: null
              }, {
                type: 4,
                styles: null,
                timings: "400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"
              }],
              options: null
            }],
            options: {}
          }]
        }
      });

      function View_MatMenu_1(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](0, 0, null, null, 3, "div", [["class", "mat-menu-panel"], ["role", "menu"], ["tabindex", "-1"]], [[8, "id", 0], [24, "@transformMenu", 0], [1, "aria-label", 0], [1, "aria-labelledby", 0], [1, "aria-describedby", 0]], [[null, "keydown"], [null, "click"], [null, "@transformMenu.start"], [null, "@transformMenu.done"]], function (_v, en, $event) {
          var ad = true;
          var _co = _v.component;

          if ("keydown" === en) {
            var pd_0 = _co._handleKeydown($event) !== false;
            ad = pd_0 && ad;
          }

          if ("click" === en) {
            var pd_1 = _co.closed.emit("click") !== false;
            ad = pd_1 && ad;
          }

          if ("@transformMenu.start" === en) {
            var pd_2 = _co._onAnimationStart($event) !== false;
            ad = pd_2 && ad;
          }

          if ("@transformMenu.done" === en) {
            var pd_3 = _co._onAnimationDone($event) !== false;
            ad = pd_3 && ad;
          }

          return ad;
        }, null, null)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](1, 278528, null, 0, _angular_common__WEBPACK_IMPORTED_MODULE_6__["NgClass"], [_angular_core__WEBPACK_IMPORTED_MODULE_0__["IterableDiffers"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["KeyValueDiffers"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]], {
          klass: [0, "klass"],
          ngClass: [1, "ngClass"]
        }, null), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](2, 0, null, null, 1, "div", [["class", "mat-menu-content"]], null, null, null, null, null)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵncd"](null, 0)], function (_ck, _v) {
          var _co = _v.component;
          var currVal_5 = "mat-menu-panel";
          var currVal_6 = _co._classList;

          _ck(_v, 1, 0, currVal_5, currVal_6);
        }, function (_ck, _v) {
          var _co = _v.component;
          var currVal_0 = _co.panelId;
          var currVal_1 = _co._panelAnimationState;
          var currVal_2 = _co.ariaLabel || null;
          var currVal_3 = _co.ariaLabelledby || null;
          var currVal_4 = _co.ariaDescribedby || null;

          _ck(_v, 0, 0, currVal_0, currVal_1, currVal_2, currVal_3, currVal_4);
        });
      }

      function View_MatMenu_0(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](2, [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵqud"](671088640, 1, {
          templateRef: 0
        }), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵand"](0, [[1, 2]], null, 0, null, View_MatMenu_1))], null, null);
      }

      function View_MatMenu_Host_0(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](0, 0, null, null, 5, "mat-menu", [], null, null, null, View_MatMenu_0, RenderType_MatMenu)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵprd"](6144, null, _angular_material_menu__WEBPACK_IMPORTED_MODULE_1__["MAT_MENU_PANEL"], null, [_angular_material_menu__WEBPACK_IMPORTED_MODULE_1__["MatMenu"]]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](2, 1294336, null, 3, _angular_material_menu__WEBPACK_IMPORTED_MODULE_1__["MatMenu"], [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"], _angular_material_menu__WEBPACK_IMPORTED_MODULE_1__["MAT_MENU_DEFAULT_OPTIONS"]], null, null), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵqud"](603979776, 1, {
          _allItems: 1
        }), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵqud"](603979776, 2, {
          items: 1
        }), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵqud"](603979776, 3, {
          lazyContent: 0
        })], function (_ck, _v) {
          _ck(_v, 2, 0);
        }, null);
      }

      var MatMenuNgFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵccf"]("mat-menu", _angular_material_menu__WEBPACK_IMPORTED_MODULE_1__["MatMenu"], View_MatMenu_Host_0, {
        backdropClass: "backdropClass",
        ariaLabel: "aria-label",
        ariaLabelledby: "aria-labelledby",
        ariaDescribedby: "aria-describedby",
        xPosition: "xPosition",
        yPosition: "yPosition",
        overlapTrigger: "overlapTrigger",
        hasBackdrop: "hasBackdrop",
        panelClass: "class",
        classList: "classList"
      }, {
        closed: "closed",
        close: "close"
      }, ["*"]);

      var styles_MatMenuItem = [];

      var RenderType_MatMenuItem = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵcrt"]({
        encapsulation: 2,
        styles: styles_MatMenuItem,
        data: {}
      });

      function View_MatMenuItem_0(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](2, [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵncd"](null, 0), (_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](1, 0, null, null, 1, "div", [["class", "mat-menu-ripple mat-ripple"], ["matRipple", ""]], [[2, "mat-ripple-unbounded", null]], null, null, null, null)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](2, 212992, null, 0, _angular_material_core__WEBPACK_IMPORTED_MODULE_4__["MatRipple"], [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"], _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_7__["Platform"], [2, _angular_material_core__WEBPACK_IMPORTED_MODULE_4__["MAT_RIPPLE_GLOBAL_OPTIONS"]], [2, _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_10__["ANIMATION_MODULE_TYPE"]]], {
          disabled: [0, "disabled"],
          trigger: [1, "trigger"]
        }, null)], function (_ck, _v) {
          var _co = _v.component;
          var currVal_1 = _co.disableRipple || _co.disabled;

          var currVal_2 = _co._getHostElement();

          _ck(_v, 2, 0, currVal_1, currVal_2);
        }, function (_ck, _v) {
          var currVal_0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 2).unbounded;

          _ck(_v, 1, 0, currVal_0);
        });
      }

      function View_MatMenuItem_Host_0(_l) {
        return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵvid"](0, [(_l()(), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵeld"](0, 0, null, null, 1, "div", [["class", "mat-focus-indicator"], ["mat-menu-item", ""]], [[1, "role", 0], [2, "mat-menu-item", null], [2, "mat-menu-item-highlighted", null], [2, "mat-menu-item-submenu-trigger", null], [1, "tabindex", 0], [1, "aria-disabled", 0], [1, "disabled", 0]], [[null, "click"], [null, "mouseenter"]], function (_v, en, $event) {
          var ad = true;

          if ("click" === en) {
            var pd_0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1)._checkDisabled($event) !== false;
            ad = pd_0 && ad;
          }

          if ("mouseenter" === en) {
            var pd_1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1)._handleMouseEnter() !== false;
            ad = pd_1 && ad;
          }

          return ad;
        }, View_MatMenuItem_0, RenderType_MatMenuItem)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵdid"](1, 4374528, null, 0, _angular_material_menu__WEBPACK_IMPORTED_MODULE_1__["MatMenuItem"], [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"], _angular_common__WEBPACK_IMPORTED_MODULE_6__["DOCUMENT"], _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_5__["FocusMonitor"], [2, _angular_material_menu__WEBPACK_IMPORTED_MODULE_1__["MAT_MENU_PANEL"]]], null, null)], null, function (_ck, _v) {
          var currVal_0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1).role;

          var currVal_1 = true;

          var currVal_2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1)._highlighted;

          var currVal_3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1)._triggersSubmenu;

          var currVal_4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1)._getTabIndex();

          var currVal_5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1).disabled.toString();

          var currVal_6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵnov"](_v, 1).disabled || null;

          _ck(_v, 0, 0, currVal_0, currVal_1, currVal_2, currVal_3, currVal_4, currVal_5, currVal_6);
        });
      }

      var MatMenuItemNgFactory = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵccf"]("[mat-menu-item]", _angular_material_menu__WEBPACK_IMPORTED_MODULE_1__["MatMenuItem"], View_MatMenuItem_Host_0, {
        disabled: "disabled",
        disableRipple: "disableRipple",
        role: "role"
      }, {}, ["*"]);
      /***/

    },

    /***/
    "qZ0a": function qZ0a(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "publishLast", function () {
        return publishLast;
      });
      /* harmony import */


      var _AsyncSubject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../AsyncSubject */
      "NHP+");
      /* harmony import */


      var _multicast__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ./multicast */
      "oB13");

      function publishLast() {
        return function (source) {
          return Object(_multicast__WEBPACK_IMPORTED_MODULE_1__["multicast"])(new _AsyncSubject__WEBPACK_IMPORTED_MODULE_0__["AsyncSubject"]())(source);
        };
      } //# sourceMappingURL=publishLast.js.map

      /***/

    },

    /***/
    "qdtj": function qdtj(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return startOfWeekYear;
      });
      /* harmony import */


      var _getWeekYear_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../getWeekYear/index.js */
      "7gZZ");
      /* harmony import */


      var _startOfWeek_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../startOfWeek/index.js */
      "aetl");
      /* harmony import */


      var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../_lib/toInteger/index.js */
      "/h9T");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name startOfWeekYear
       * @category Week-Numbering Year Helpers
       * @summary Return the start of a local week-numbering year for the given date.
       *
       * @description
       * Return the start of a local week-numbering year.
       * The exact calculation depends on the values of
       * `options.weekStartsOn` (which is the index of the first day of the week)
       * and `options.firstWeekContainsDate` (which is the day of January, which is always in
       * the first week of the week-numbering year)
       *
       * Week numbering: https://en.wikipedia.org/wiki/Week#Week_numbering
       *
       * ### 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 {Date|Number} date - the original date
       * @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)
       * @param {1|2|3|4|5|6|7} [options.firstWeekContainsDate=1] - the day of January, which is always in the first week of the year
       * @returns {Date} the start of a week-numbering year
       * @throws {TypeError} 1 argument required
       * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6
       * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7
       *
       * @example
       * // The start of an a week-numbering year for 2 July 2005 with default settings:
       * var result = startOfWeekYear(new Date(2005, 6, 2))
       * //=> Sun Dec 26 2004 00:00:00
       *
       * @example
       * // The start of a week-numbering year for 2 July 2005
       * // if Monday is the first day of week
       * // and 4 January is always in the first week of the year:
       * var result = startOfWeekYear(new Date(2005, 6, 2), {
       *   weekStartsOn: 1,
       *   firstWeekContainsDate: 4
       * })
       * //=> Mon Jan 03 2005 00:00:00
       */


      function startOfWeekYear(dirtyDate, dirtyOptions) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(1, arguments);
        var options = dirtyOptions || {};
        var locale = options.locale;
        var localeFirstWeekContainsDate = locale && locale.options && locale.options.firstWeekContainsDate;
        var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(localeFirstWeekContainsDate);
        var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(options.firstWeekContainsDate);
        var year = Object(_getWeekYear_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate, dirtyOptions);
        var firstWeek = new Date(0);
        firstWeek.setFullYear(year, 0, firstWeekContainsDate);
        firstWeek.setHours(0, 0, 0, 0);
        var date = Object(_startOfWeek_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(firstWeek, dirtyOptions);
        return date;
      }
      /***/

    },

    /***/
    "qgXg": function qgXg(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "queueScheduler", function () {
        return queueScheduler;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "queue", function () {
        return queue;
      });
      /* harmony import */


      var _QueueAction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ./QueueAction */
      "YuR2");
      /* harmony import */


      var _QueueScheduler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ./QueueScheduler */
      "Hh5Z");

      var queueScheduler = new _QueueScheduler__WEBPACK_IMPORTED_MODULE_1__["QueueScheduler"](_QueueAction__WEBPACK_IMPORTED_MODULE_0__["QueueAction"]);
      var queue = queueScheduler; //# sourceMappingURL=queue.js.map

      /***/
    },

    /***/
    "qh+W": function qhW(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return endOfQuarter;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name endOfQuarter
       * @category Quarter Helpers
       * @summary Return the end of a year quarter for the given date.
       *
       * @description
       * Return the end of a year quarter for the given date.
       * The result will be in the local timezone.
       *
       * ### 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 {Date|Number} date - the original date
       * @returns {Date} the end of a quarter
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // The end of a quarter for 2 September 2014 11:55:00:
       * var result = endOfQuarter(new Date(2014, 8, 2, 11, 55, 0))
       * //=> Tue Sep 30 2014 23:59:59.999
       */


      function endOfQuarter(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);
        var currentMonth = date.getMonth();
        var month = currentMonth - currentMonth % 3 + 3;
        date.setMonth(month, 0);
        date.setHours(23, 59, 59, 999);
        return date;
      }
      /***/

    },

    /***/
    "qu8F": function qu8F(module, exports, __webpack_require__) {
      ;

      (function (root, factory, undef) {
        if (true) {
          // CommonJS
          module.exports = exports = factory(__webpack_require__(
          /*! ./core */
          "Ib8C"), __webpack_require__(
          /*! ./cipher-core */
          "OLod"));
        } else {}
      })(this, function (CryptoJS) {
        /** @preserve
         * Counter block mode compatible with  Dr Brian Gladman fileenc.c
         * derived from CryptoJS.mode.CTR
         * Jan Hruby jhruby.web@gmail.com
         */
        CryptoJS.mode.CTRGladman = function () {
          var CTRGladman = CryptoJS.lib.BlockCipherMode.extend();

          function incWord(word) {
            if ((word >> 24 & 0xff) === 0xff) {
              //overflow
              var b1 = word >> 16 & 0xff;
              var b2 = word >> 8 & 0xff;
              var b3 = word & 0xff;

              if (b1 === 0xff) // overflow b1
                {
                  b1 = 0;

                  if (b2 === 0xff) {
                    b2 = 0;

                    if (b3 === 0xff) {
                      b3 = 0;
                    } else {
                      ++b3;
                    }
                  } else {
                    ++b2;
                  }
                } else {
                ++b1;
              }

              word = 0;
              word += b1 << 16;
              word += b2 << 8;
              word += b3;
            } else {
              word += 0x01 << 24;
            }

            return word;
          }

          function incCounter(counter) {
            if ((counter[0] = incWord(counter[0])) === 0) {
              // encr_data in fileenc.c from  Dr Brian Gladman's counts only with DWORD j < 8
              counter[1] = incWord(counter[1]);
            }

            return counter;
          }

          var Encryptor = CTRGladman.Encryptor = CTRGladman.extend({
            processBlock: function processBlock(words, offset) {
              // Shortcuts
              var cipher = this._cipher;
              var blockSize = cipher.blockSize;
              var iv = this._iv;
              var counter = this._counter; // Generate keystream

              if (iv) {
                counter = this._counter = iv.slice(0); // Remove IV for subsequent blocks

                this._iv = undefined;
              }

              incCounter(counter);
              var keystream = counter.slice(0);
              cipher.encryptBlock(keystream, 0); // Encrypt

              for (var i = 0; i < blockSize; i++) {
                words[offset + i] ^= keystream[i];
              }
            }
          });
          CTRGladman.Decryptor = Encryptor;
          return CTRGladman;
        }();

        return CryptoJS.mode.CTRGladman;
      });
      /***/

    },

    /***/
    "quSY": function quSY(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Subscription", function () {
        return Subscription;
      });
      /* harmony import */


      var _util_isArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ./util/isArray */
      "DH7j");
      /* harmony import */


      var _util_isObject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ./util/isObject */
      "XoHu");
      /* harmony import */


      var _util_isFunction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ./util/isFunction */
      "n6bG");
      /* harmony import */


      var _util_UnsubscriptionError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ./util/UnsubscriptionError */
      "pjAE");

      var Subscription = /*#__PURE__*/function () {
        function Subscription(unsubscribe) {
          _classCallCheck2(this, Subscription);

          this.closed = false;
          this._parentOrParents = null;
          this._subscriptions = null;

          if (unsubscribe) {
            this._ctorUnsubscribe = true;
            this._unsubscribe = unsubscribe;
          }
        }

        _createClass2(Subscription, [{
          key: "unsubscribe",
          value: function unsubscribe() {
            var errors;

            if (this.closed) {
              return;
            }

            var _parentOrParents = this._parentOrParents,
                _ctorUnsubscribe = this._ctorUnsubscribe,
                _unsubscribe = this._unsubscribe,
                _subscriptions = this._subscriptions;
            this.closed = true;
            this._parentOrParents = null;
            this._subscriptions = null;

            if (_parentOrParents instanceof Subscription) {
              _parentOrParents.remove(this);
            } else if (_parentOrParents !== null) {
              for (var index = 0; index < _parentOrParents.length; ++index) {
                var parent = _parentOrParents[index];
                parent.remove(this);
              }
            }

            if (Object(_util_isFunction__WEBPACK_IMPORTED_MODULE_2__["isFunction"])(_unsubscribe)) {
              if (_ctorUnsubscribe) {
                this._unsubscribe = undefined;
              }

              try {
                _unsubscribe.call(this);
              } catch (e) {
                errors = e instanceof _util_UnsubscriptionError__WEBPACK_IMPORTED_MODULE_3__["UnsubscriptionError"] ? flattenUnsubscriptionErrors(e.errors) : [e];
              }
            }

            if (Object(_util_isArray__WEBPACK_IMPORTED_MODULE_0__["isArray"])(_subscriptions)) {
              var _index6 = -1;

              var len = _subscriptions.length;

              while (++_index6 < len) {
                var sub = _subscriptions[_index6];

                if (Object(_util_isObject__WEBPACK_IMPORTED_MODULE_1__["isObject"])(sub)) {
                  try {
                    sub.unsubscribe();
                  } catch (e) {
                    errors = errors || [];

                    if (e instanceof _util_UnsubscriptionError__WEBPACK_IMPORTED_MODULE_3__["UnsubscriptionError"]) {
                      errors = errors.concat(flattenUnsubscriptionErrors(e.errors));
                    } else {
                      errors.push(e);
                    }
                  }
                }
              }
            }

            if (errors) {
              throw new _util_UnsubscriptionError__WEBPACK_IMPORTED_MODULE_3__["UnsubscriptionError"](errors);
            }
          }
        }, {
          key: "add",
          value: function add(teardown) {
            var subscription = teardown;

            if (!teardown) {
              return Subscription.EMPTY;
            }

            switch (typeof teardown) {
              case 'function':
                subscription = new Subscription(teardown);

              case 'object':
                if (subscription === this || subscription.closed || typeof subscription.unsubscribe !== 'function') {
                  return subscription;
                } else if (this.closed) {
                  subscription.unsubscribe();
                  return subscription;
                } else if (!(subscription instanceof Subscription)) {
                  var tmp = subscription;
                  subscription = new Subscription();
                  subscription._subscriptions = [tmp];
                }

                break;

              default:
                {
                  throw new Error('unrecognized teardown ' + teardown + ' added to Subscription.');
                }
            }

            var _subscription2 = subscription,
                _parentOrParents = _subscription2._parentOrParents;

            if (_parentOrParents === null) {
              subscription._parentOrParents = this;
            } else if (_parentOrParents instanceof Subscription) {
              if (_parentOrParents === this) {
                return subscription;
              }

              subscription._parentOrParents = [_parentOrParents, this];
            } else if (_parentOrParents.indexOf(this) === -1) {
              _parentOrParents.push(this);
            } else {
              return subscription;
            }

            var subscriptions = this._subscriptions;

            if (subscriptions === null) {
              this._subscriptions = [subscription];
            } else {
              subscriptions.push(subscription);
            }

            return subscription;
          }
        }, {
          key: "remove",
          value: function remove(subscription) {
            var subscriptions = this._subscriptions;

            if (subscriptions) {
              var subscriptionIndex = subscriptions.indexOf(subscription);

              if (subscriptionIndex !== -1) {
                subscriptions.splice(subscriptionIndex, 1);
              }
            }
          }
        }]);

        return Subscription;
      }();

      Subscription.EMPTY = function (empty) {
        empty.closed = true;
        return empty;
      }(new Subscription());

      function flattenUnsubscriptionErrors(errors) {
        return errors.reduce(function (errs, err) {
          return errs.concat(err instanceof _util_UnsubscriptionError__WEBPACK_IMPORTED_MODULE_3__["UnsubscriptionError"] ? err.errors : err);
        }, []);
      } //# sourceMappingURL=Subscription.js.map

      /***/

    },

    /***/
    "qvJo": function qvJo(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Konkani Devanagari script [gom-deva]
      //! author : The Discoverer : https://github.com/WikiDiscoverer
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        function processRelativeTime(number, withoutSuffix, key, isFuture) {
          var format = {
            s: ['थोडया सॅकंडांनी', 'थोडे सॅकंड'],
            ss: [number + ' सॅकंडांनी', number + ' सॅकंड'],
            m: ['एका मिणटान', 'एक मिनूट'],
            mm: [number + ' मिणटांनी', number + ' मिणटां'],
            h: ['एका वरान', 'एक वर'],
            hh: [number + ' वरांनी', number + ' वरां'],
            d: ['एका दिसान', 'एक दीस'],
            dd: [number + ' दिसांनी', number + ' दीस'],
            M: ['एका म्हयन्यान', 'एक म्हयनो'],
            MM: [number + ' म्हयन्यानी', number + ' म्हयने'],
            y: ['एका वर्सान', 'एक वर्स'],
            yy: [number + ' वर्सांनी', number + ' वर्सां']
          };
          return isFuture ? format[key][0] : format[key][1];
        }

        var gomDeva = moment.defineLocale('gom-deva', {
          months: {
            standalone: 'जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split('_'),
            format: 'जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या'.split('_'),
            isFormat: /MMMM(\s)+D[oD]?/
          },
          monthsShort: 'जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split('_'),
          monthsParseExact: true,
          weekdays: 'आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार'.split('_'),
          weekdaysShort: 'आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.'.split('_'),
          weekdaysMin: 'आ_सो_मं_बु_ब्रे_सु_शे'.split('_'),
          weekdaysParseExact: true,
          longDateFormat: {
            LT: 'A h:mm [वाजतां]',
            LTS: 'A h:mm:ss [वाजतां]',
            L: 'DD-MM-YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY A h:mm [वाजतां]',
            LLLL: 'dddd, MMMM Do, YYYY, A h:mm [वाजतां]',
            llll: 'ddd, D MMM YYYY, A h:mm [वाजतां]'
          },
          calendar: {
            sameDay: '[आयज] LT',
            nextDay: '[फाल्यां] LT',
            nextWeek: '[फुडलो] dddd[,] LT',
            lastDay: '[काल] LT',
            lastWeek: '[फाटलो] dddd[,] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: '%s',
            past: '%s आदीं',
            s: processRelativeTime,
            ss: processRelativeTime,
            m: processRelativeTime,
            mm: processRelativeTime,
            h: processRelativeTime,
            hh: processRelativeTime,
            d: processRelativeTime,
            dd: processRelativeTime,
            M: processRelativeTime,
            MM: processRelativeTime,
            y: processRelativeTime,
            yy: processRelativeTime
          },
          dayOfMonthOrdinalParse: /\d{1,2}(वेर)/,
          ordinal: function ordinal(number, period) {
            switch (period) {
              // the ordinal 'वेर' only applies to day of the month
              case 'D':
                return number + 'वेर';

              default:
              case 'M':
              case 'Q':
              case 'DDD':
              case 'd':
              case 'w':
              case 'W':
                return number;
            }
          },
          week: {
            dow: 0,
            // Sunday is the first day of the week
            doy: 3 // The week that contains Jan 4th is the first week of the year (7 + 0 - 4)

          },
          meridiemParse: /राती|सकाळीं|दनपारां|सांजे/,
          meridiemHour: function meridiemHour(hour, meridiem) {
            if (hour === 12) {
              hour = 0;
            }

            if (meridiem === 'राती') {
              return hour < 4 ? hour : hour + 12;
            } else if (meridiem === 'सकाळीं') {
              return hour;
            } else if (meridiem === 'दनपारां') {
              return hour > 12 ? hour : hour + 12;
            } else if (meridiem === 'सांजे') {
              return hour + 12;
            }
          },
          meridiem: function meridiem(hour, minute, isLower) {
            if (hour < 4) {
              return 'राती';
            } else if (hour < 12) {
              return 'सकाळीं';
            } else if (hour < 16) {
              return 'दनपारां';
            } else if (hour < 20) {
              return 'सांजे';
            } else {
              return 'राती';
            }
          }
        });
        return gomDeva;
      });
      /***/

    },

    /***/
    "qzLx": function qzLx(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return isSameISOWeek;
      });
      /* harmony import */


      var _isSameWeek_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../isSameWeek/index.js */
      "JO1+");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name isSameISOWeek
       * @category ISO Week Helpers
       * @summary Are the given dates in the same ISO week?
       *
       * @description
       * Are the given dates in the same ISO week?
       *
       * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
       *
       * ### 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 {Date|Number} dateLeft - the first date to check
       * @param {Date|Number} dateRight - the second date to check
       * @returns {Boolean} the dates are in the same ISO week
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // Are 1 September 2014 and 7 September 2014 in the same ISO week?
       * var result = isSameISOWeek(new Date(2014, 8, 1), new Date(2014, 8, 7))
       * //=> true
       */


      function isSameISOWeek(dirtyDateLeft, dirtyDateRight) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(2, arguments);
        return Object(_isSameWeek_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateLeft, dirtyDateRight, {
          weekStartsOn: 1
        });
      }
      /***/

    },

    /***/
    "r0WS": function r0WS(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "timestamp", function () {
        return timestamp;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Timestamp", function () {
        return Timestamp;
      });
      /* harmony import */


      var _scheduler_async__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../scheduler/async */
      "D0XW");
      /* harmony import */


      var _map__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ./map */
      "lJxs");

      function timestamp() {
        var scheduler = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _scheduler_async__WEBPACK_IMPORTED_MODULE_0__["async"];
        return Object(_map__WEBPACK_IMPORTED_MODULE_1__["map"])(function (value) {
          return new Timestamp(value, scheduler.now());
        });
      }

      var Timestamp = function Timestamp(value, timestamp) {
        _classCallCheck2(this, Timestamp);

        this.value = value;
        this.timestamp = timestamp;
      }; //# sourceMappingURL=timestamp.js.map

      /***/

    },

    /***/
    "r0o6": function r0o6(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "iif", function () {
        return iif;
      });
      /* harmony import */


      var _defer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ./defer */
      "NXyV");
      /* harmony import */


      var _empty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ./empty */
      "EY2u");

      function iif(condition) {
        var trueResult = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _empty__WEBPACK_IMPORTED_MODULE_1__["EMPTY"];
        var falseResult = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _empty__WEBPACK_IMPORTED_MODULE_1__["EMPTY"];
        return Object(_defer__WEBPACK_IMPORTED_MODULE_0__["defer"])(function () {
          return condition() ? trueResult : falseResult;
        });
      } //# sourceMappingURL=iif.js.map

      /***/

    },

    /***/
    "r4sE": function r4sE(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return addWeeks;
      });
      /* harmony import */


      var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../_lib/toInteger/index.js */
      "/h9T");
      /* harmony import */


      var _addDays_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../addDays/index.js */
      "9/EM");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name addWeeks
       * @category Week Helpers
       * @summary Add the specified number of weeks to the given date.
       *
       * @description
       * Add the specified number of week to the given date.
       *
       * ### 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 {Date|Number} date - the date to be changed
       * @param {Number} amount - the amount of weeks to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
       * @returns {Date} the new date with the weeks added
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // Add 4 weeks to 1 September 2014:
       * var result = addWeeks(new Date(2014, 8, 1), 4)
       * //=> Mon Sep 29 2014 00:00:00
       */


      function addWeeks(dirtyDate, dirtyAmount) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(2, arguments);
        var amount = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyAmount);
        var days = amount * 7;
        return Object(_addDays_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate, days);
      }
      /***/

    },

    /***/
    "rH8F": function rH8F(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return endOfHour;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name endOfHour
       * @category Hour Helpers
       * @summary Return the end of an hour for the given date.
       *
       * @description
       * Return the end of an hour for the given date.
       * The result will be in the local timezone.
       *
       * ### 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 {Date|Number} date - the original date
       * @returns {Date} the end of an hour
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // The end of an hour for 2 September 2014 11:55:00:
       * var result = endOfHour(new Date(2014, 8, 2, 11, 55))
       * //=> Tue Sep 02 2014 11:59:59.999
       */


      function endOfHour(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);
        date.setMinutes(59, 59, 999);
        return date;
      }
      /***/

    },

    /***/
    "rJgo": function rJgo(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MAT_MENU_CONTENT", function () {
        return MAT_MENU_CONTENT;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MAT_MENU_DEFAULT_OPTIONS", function () {
        return MAT_MENU_DEFAULT_OPTIONS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MAT_MENU_PANEL", function () {
        return MAT_MENU_PANEL;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MAT_MENU_SCROLL_STRATEGY", function () {
        return MAT_MENU_SCROLL_STRATEGY;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatMenu", function () {
        return MatMenu;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatMenuContent", function () {
        return MatMenuContent;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatMenuItem", function () {
        return MatMenuItem;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatMenuModule", function () {
        return MatMenuModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatMenuTrigger", function () {
        return MatMenuTrigger;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "_MatMenuBase", function () {
        return _MatMenuBase;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "_MatMenuDirectivesModule", function () {
        return _MatMenuDirectivesModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "fadeInItems", function () {
        return fadeInItems;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "matMenuAnimations", function () {
        return matMenuAnimations;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "transformMenu", function () {
        return transformMenu;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_material_src_material_menu_menu_a", function () {
        return MAT_MENU_DEFAULT_OPTIONS_FACTORY;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_material_src_material_menu_menu_b", function () {
        return MAT_MENU_SCROLL_STRATEGY_FACTORY;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_material_src_material_menu_menu_c", function () {
        return MAT_MENU_SCROLL_STRATEGY_FACTORY_PROVIDER;
      });
      /* harmony import */


      var _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/cdk/a11y */
      "YEUz");
      /* harmony import */


      var _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/cdk/coercion */
      "8LU1");
      /* harmony import */


      var _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! @angular/cdk/keycodes */
      "Ht+U");
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /* harmony import */


      var rxjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! rxjs */
      "qCKp");
      /* harmony import */


      var rxjs_operators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! rxjs/operators */
      "kU1M");
      /* harmony import */


      var _angular_animations__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
      /*! @angular/animations */
      "GS7A");
      /* harmony import */


      var _angular_cdk_portal__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
      /*! @angular/cdk/portal */
      "1z/I");
      /* harmony import */


      var _angular_common__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
      /*! @angular/common */
      "SVse");
      /* harmony import */


      var _angular_material_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
      /*! @angular/material/core */
      "UhP/");
      /* harmony import */


      var _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(
      /*! @angular/cdk/bidi */
      "9gLZ");
      /* harmony import */


      var _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(
      /*! @angular/cdk/overlay */
      "1O3W");
      /* harmony import */


      var _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(
      /*! @angular/cdk/platform */
      "SCoL");
      /* harmony import */


      var _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(
      /*! @angular/cdk/scrolling */
      "7KAL");
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Animations used by the mat-menu component.
       * Animation duration and timing values are based on:
       * https://material.io/guidelines/components/menus.html#menus-usage
       * @docs-private
       */


      var _c0 = ["mat-menu-item", ""];
      var _c1 = ["*"];

      function MatMenu_ng_template_0_Template(rf, ctx) {
        if (rf & 1) {
          var _r2 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵgetCurrentView"]();

          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 0);

          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("keydown", function MatMenu_ng_template_0_Template_div_keydown_0_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r2);

            var ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();

            return ctx_r1._handleKeydown($event);
          })("click", function MatMenu_ng_template_0_Template_div_click_0_listener() {
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r2);

            var ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();

            return ctx_r3.closed.emit("click");
          })("@transformMenu.start", function MatMenu_ng_template_0_Template_div_animation_transformMenu_start_0_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r2);

            var ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();

            return ctx_r4._onAnimationStart($event);
          })("@transformMenu.done", function MatMenu_ng_template_0_Template_div_animation_transformMenu_done_0_listener($event) {
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r2);

            var ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();

            return ctx_r5._onAnimationDone($event);
          });

          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](1, "div", 1);

          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵprojection"](2);

          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();

          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
        }

        if (rf & 2) {
          var ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();

          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("id", ctx_r0.panelId)("ngClass", ctx_r0._classList)("@transformMenu", ctx_r0._panelAnimationState);

          _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵattribute"]("aria-label", ctx_r0.ariaLabel || null)("aria-labelledby", ctx_r0.ariaLabelledby || null)("aria-describedby", ctx_r0.ariaDescribedby || null);
        }
      }

      var matMenuAnimations = {
        /**
         * This animation controls the menu panel's entry and exit from the page.
         *
         * When the menu panel is added to the DOM, it scales in and fades in its border.
         *
         * When the menu panel is removed from the DOM, it simply fades out after a brief
         * delay to display the ripple.
         */
        transformMenu: Object(_angular_animations__WEBPACK_IMPORTED_MODULE_6__["trigger"])('transformMenu', [Object(_angular_animations__WEBPACK_IMPORTED_MODULE_6__["state"])('void', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_6__["style"])({
          opacity: 0,
          transform: 'scale(0.8)'
        })), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_6__["transition"])('void => enter', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_6__["animate"])('120ms cubic-bezier(0, 0, 0.2, 1)', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_6__["style"])({
          opacity: 1,
          transform: 'scale(1)'
        }))), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_6__["transition"])('* => void', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_6__["animate"])('100ms 25ms linear', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_6__["style"])({
          opacity: 0
        })))]),

        /**
         * This animation fades in the background color and content of the menu panel
         * after its containing element is scaled in.
         */
        fadeInItems: Object(_angular_animations__WEBPACK_IMPORTED_MODULE_6__["trigger"])('fadeInItems', [// TODO(crisbeto): this is inside the `transformMenu`
        // now. Remove next time we do breaking changes.
        Object(_angular_animations__WEBPACK_IMPORTED_MODULE_6__["state"])('showing', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_6__["style"])({
          opacity: 1
        })), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_6__["transition"])('void => *', [Object(_angular_animations__WEBPACK_IMPORTED_MODULE_6__["style"])({
          opacity: 0
        }), Object(_angular_animations__WEBPACK_IMPORTED_MODULE_6__["animate"])('400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)')])])
      };
      /**
       * @deprecated
       * @breaking-change 8.0.0
       * @docs-private
       */

      var fadeInItems = matMenuAnimations.fadeInItems;
      /**
       * @deprecated
       * @breaking-change 8.0.0
       * @docs-private
       */

      var transformMenu = matMenuAnimations.transformMenu;
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Injection token that can be used to reference instances of `MatMenuContent`. It serves
       * as alternative token to the actual `MatMenuContent` class which could cause unnecessary
       * retention of the class and its directive metadata.
       */

      var MAT_MENU_CONTENT = new _angular_core__WEBPACK_IMPORTED_MODULE_3__["InjectionToken"]('MatMenuContent');
      /**
       * Menu content that will be rendered lazily once the menu is opened.
       */

      var MatMenuContent = /*#__PURE__*/function () {
        function MatMenuContent(_template, _componentFactoryResolver, _appRef, _injector, _viewContainerRef, _document, _changeDetectorRef) {
          _classCallCheck2(this, MatMenuContent);

          this._template = _template;
          this._componentFactoryResolver = _componentFactoryResolver;
          this._appRef = _appRef;
          this._injector = _injector;
          this._viewContainerRef = _viewContainerRef;
          this._document = _document;
          this._changeDetectorRef = _changeDetectorRef;
          /** Emits when the menu content has been attached. */

          this._attached = new rxjs__WEBPACK_IMPORTED_MODULE_4__["Subject"]();
        }
        /**
         * Attaches the content with a particular context.
         * @docs-private
         */


        _createClass2(MatMenuContent, [{
          key: "attach",
          value: function attach() {
            var context = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};

            if (!this._portal) {
              this._portal = new _angular_cdk_portal__WEBPACK_IMPORTED_MODULE_7__["TemplatePortal"](this._template, this._viewContainerRef);
            }

            this.detach();

            if (!this._outlet) {
              this._outlet = new _angular_cdk_portal__WEBPACK_IMPORTED_MODULE_7__["DomPortalOutlet"](this._document.createElement('div'), this._componentFactoryResolver, this._appRef, this._injector);
            }

            var element = this._template.elementRef.nativeElement; // Because we support opening the same menu from different triggers (which in turn have their
            // own `OverlayRef` panel), we have to re-insert the host element every time, otherwise we
            // risk it staying attached to a pane that's no longer in the DOM.

            element.parentNode.insertBefore(this._outlet.outletElement, element); // When `MatMenuContent` is used in an `OnPush` component, the insertion of the menu
            // content via `createEmbeddedView` does not cause the content to be seen as "dirty"
            // by Angular. This causes the `@ContentChildren` for menu items within the menu to
            // not be updated by Angular. By explicitly marking for check here, we tell Angular that
            // it needs to check for new menu items and update the `@ContentChild` in `MatMenu`.
            // @breaking-change 9.0.0 Make change detector ref required

            if (this._changeDetectorRef) {
              this._changeDetectorRef.markForCheck();
            }

            this._portal.attach(this._outlet, context);

            this._attached.next();
          }
          /**
           * Detaches the content.
           * @docs-private
           */

        }, {
          key: "detach",
          value: function detach() {
            if (this._portal.isAttached) {
              this._portal.detach();
            }
          }
        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            if (this._outlet) {
              this._outlet.dispose();
            }
          }
        }]);

        return MatMenuContent;
      }();

      MatMenuContent.ɵfac = function MatMenuContent_Factory(t) {
        return new (t || MatMenuContent)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["TemplateRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ComponentFactoryResolver"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ApplicationRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["Injector"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewContainerRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_common__WEBPACK_IMPORTED_MODULE_8__["DOCUMENT"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ChangeDetectorRef"]));
      };

      MatMenuContent.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineDirective"]({
        type: MatMenuContent,
        selectors: [["ng-template", "matMenuContent", ""]],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵProvidersFeature"]([{
          provide: MAT_MENU_CONTENT,
          useExisting: MatMenuContent
        }])]
      });

      MatMenuContent.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["TemplateRef"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ComponentFactoryResolver"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ApplicationRef"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Injector"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewContainerRef"]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"],
            args: [_angular_common__WEBPACK_IMPORTED_MODULE_8__["DOCUMENT"]]
          }]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ChangeDetectorRef"]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](MatMenuContent, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Directive"],
          args: [{
            selector: 'ng-template[matMenuContent]',
            providers: [{
              provide: MAT_MENU_CONTENT,
              useExisting: MatMenuContent
            }]
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["TemplateRef"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ComponentFactoryResolver"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ApplicationRef"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Injector"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewContainerRef"]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"],
              args: [_angular_common__WEBPACK_IMPORTED_MODULE_8__["DOCUMENT"]]
            }]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ChangeDetectorRef"]
          }];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Throws an exception for the case when menu trigger doesn't have a valid mat-menu instance
       * @docs-private
       */


      function throwMatMenuMissingError() {
        throw Error("matMenuTriggerFor: must pass in an mat-menu instance.\n\n    Example:\n      <mat-menu #menu=\"matMenu\"></mat-menu>\n      <button [matMenuTriggerFor]=\"menu\"></button>");
      }
      /**
       * Throws an exception for the case when menu's x-position value isn't valid.
       * In other words, it doesn't match 'before' or 'after'.
       * @docs-private
       */


      function throwMatMenuInvalidPositionX() {
        throw Error("xPosition value must be either 'before' or after'.\n      Example: <mat-menu xPosition=\"before\" #menu=\"matMenu\"></mat-menu>");
      }
      /**
       * Throws an exception for the case when menu's y-position value isn't valid.
       * In other words, it doesn't match 'above' or 'below'.
       * @docs-private
       */


      function throwMatMenuInvalidPositionY() {
        throw Error("yPosition value must be either 'above' or below'.\n      Example: <mat-menu yPosition=\"above\" #menu=\"matMenu\"></mat-menu>");
      }
      /**
       * Throws an exception for the case when a menu is assigned
       * to a trigger that is placed inside the same menu.
       * @docs-private
       */


      function throwMatMenuRecursiveError() {
        throw Error("matMenuTriggerFor: menu cannot contain its own trigger. Assign a menu that is " + "not a parent of the trigger or move the trigger outside of the menu.");
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Injection token used to provide the parent menu to menu-specific components.
       * @docs-private
       */


      var MAT_MENU_PANEL = new _angular_core__WEBPACK_IMPORTED_MODULE_3__["InjectionToken"]('MAT_MENU_PANEL');
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */
      // Boilerplate for applying mixins to MatMenuItem.

      /** @docs-private */

      var MatMenuItemBase = function MatMenuItemBase() {
        _classCallCheck2(this, MatMenuItemBase);
      };

      var _MatMenuItemMixinBase = Object(_angular_material_core__WEBPACK_IMPORTED_MODULE_9__["mixinDisableRipple"])(Object(_angular_material_core__WEBPACK_IMPORTED_MODULE_9__["mixinDisabled"])(MatMenuItemBase));
      /**
       * Single item inside of a `mat-menu`. Provides the menu item styling and accessibility treatment.
       */


      var MatMenuItem = /*#__PURE__*/function (_MatMenuItemMixinBase2) {
        _inherits2(MatMenuItem, _MatMenuItemMixinBase2);

        var _super423 = _createSuper2(MatMenuItem);

        function MatMenuItem(_elementRef,
        /**
         * @deprecated `_document` parameter is no longer being used and will be removed.
         * @breaking-change 12.0.0
         */
        _document, _focusMonitor, _parentMenu) {
          var _this878;

          _classCallCheck2(this, MatMenuItem);

          // @breaking-change 8.0.0 make `_focusMonitor` and `document` required params.
          _this878 = _super423.call(this);
          _this878._elementRef = _elementRef;
          _this878._focusMonitor = _focusMonitor;
          _this878._parentMenu = _parentMenu;
          /** ARIA role for the menu item. */

          _this878.role = 'menuitem';
          /** Stream that emits when the menu item is hovered. */

          _this878._hovered = new rxjs__WEBPACK_IMPORTED_MODULE_4__["Subject"]();
          /** Stream that emits when the menu item is focused. */

          _this878._focused = new rxjs__WEBPACK_IMPORTED_MODULE_4__["Subject"]();
          /** Whether the menu item is highlighted. */

          _this878._highlighted = false;
          /** Whether the menu item acts as a trigger for a sub-menu. */

          _this878._triggersSubmenu = false;

          if (_parentMenu && _parentMenu.addItem) {
            _parentMenu.addItem(_assertThisInitialized2(_this878));
          }

          return _this878;
        }
        /** Focuses the menu item. */


        _createClass2(MatMenuItem, [{
          key: "focus",
          value: function focus() {
            var origin = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'program';
            var options = arguments.length > 1 ? arguments[1] : undefined;

            if (this._focusMonitor) {
              this._focusMonitor.focusVia(this._getHostElement(), origin, options);
            } else {
              this._getHostElement().focus(options);
            }

            this._focused.next(this);
          }
        }, {
          key: "ngAfterViewInit",
          value: function ngAfterViewInit() {
            if (this._focusMonitor) {
              // Start monitoring the element so it gets the appropriate focused classes. We want
              // to show the focus style for menu items only when the focus was not caused by a
              // mouse or touch interaction.
              this._focusMonitor.monitor(this._elementRef, false);
            }
          }
        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            if (this._focusMonitor) {
              this._focusMonitor.stopMonitoring(this._elementRef);
            }

            if (this._parentMenu && this._parentMenu.removeItem) {
              this._parentMenu.removeItem(this);
            }

            this._hovered.complete();

            this._focused.complete();
          }
          /** Used to set the `tabindex`. */

        }, {
          key: "_getTabIndex",
          value: function _getTabIndex() {
            return this.disabled ? '-1' : '0';
          }
          /** Returns the host DOM element. */

        }, {
          key: "_getHostElement",
          value: function _getHostElement() {
            return this._elementRef.nativeElement;
          }
          /** Prevents the default element actions if it is disabled. */
          // We have to use a `HostListener` here in order to support both Ivy and ViewEngine.
          // In Ivy the `host` bindings will be merged when this class is extended, whereas in
          // ViewEngine they're overwritten.
          // TODO(crisbeto): we move this back into `host` once Ivy is turned on by default.
          // tslint:disable-next-line:no-host-decorator-in-concrete

        }, {
          key: "_checkDisabled",
          value: function _checkDisabled(event) {
            if (this.disabled) {
              event.preventDefault();
              event.stopPropagation();
            }
          }
          /** Emits to the hover stream. */
          // We have to use a `HostListener` here in order to support both Ivy and ViewEngine.
          // In Ivy the `host` bindings will be merged when this class is extended, whereas in
          // ViewEngine they're overwritten.
          // TODO(crisbeto): we move this back into `host` once Ivy is turned on by default.
          // tslint:disable-next-line:no-host-decorator-in-concrete

        }, {
          key: "_handleMouseEnter",
          value: function _handleMouseEnter() {
            this._hovered.next(this);
          }
          /** Gets the label to be used when determining whether the option should be focused. */

        }, {
          key: "getLabel",
          value: function getLabel() {
            var _a, _b;

            var clone = this._elementRef.nativeElement.cloneNode(true);

            var icons = clone.querySelectorAll('mat-icon, .material-icons'); // Strip away icons so they don't show up in the text.

            for (var i = 0; i < icons.length; i++) {
              var icon = icons[i];
              (_a = icon.parentNode) === null || _a === void 0 ? void 0 : _a.removeChild(icon);
            }

            return ((_b = clone.textContent) === null || _b === void 0 ? void 0 : _b.trim()) || '';
          }
        }]);

        return MatMenuItem;
      }(_MatMenuItemMixinBase);

      MatMenuItem.ɵfac = function MatMenuItem_Factory(t) {
        return new (t || MatMenuItem)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_common__WEBPACK_IMPORTED_MODULE_8__["DOCUMENT"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_0__["FocusMonitor"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](MAT_MENU_PANEL, 8));
      };

      MatMenuItem.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({
        type: MatMenuItem,
        selectors: [["", "mat-menu-item", ""]],
        hostAttrs: [1, "mat-focus-indicator"],
        hostVars: 10,
        hostBindings: function MatMenuItem_HostBindings(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function MatMenuItem_click_HostBindingHandler($event) {
              return ctx._checkDisabled($event);
            })("mouseenter", function MatMenuItem_mouseenter_HostBindingHandler() {
              return ctx._handleMouseEnter();
            });
          }

          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵattribute"]("role", ctx.role)("tabindex", ctx._getTabIndex())("aria-disabled", ctx.disabled.toString())("disabled", ctx.disabled || null);

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵclassProp"]("mat-menu-item", true)("mat-menu-item-highlighted", ctx._highlighted)("mat-menu-item-submenu-trigger", ctx._triggersSubmenu);
          }
        },
        inputs: {
          disabled: "disabled",
          disableRipple: "disableRipple",
          role: "role"
        },
        exportAs: ["matMenuItem"],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵInheritDefinitionFeature"]],
        attrs: _c0,
        ngContentSelectors: _c1,
        decls: 2,
        vars: 2,
        consts: [["matRipple", "", 1, "mat-menu-ripple", 3, "matRippleDisabled", "matRippleTrigger"]],
        template: function MatMenuItem_Template(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵprojectionDef"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵprojection"](0);

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](1, "div", 0);
          }

          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("matRippleDisabled", ctx.disableRipple || ctx.disabled)("matRippleTrigger", ctx._getHostElement());
          }
        },
        directives: [_angular_material_core__WEBPACK_IMPORTED_MODULE_9__["MatRipple"]],
        encapsulation: 2,
        changeDetection: 0
      });

      MatMenuItem.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"],
            args: [_angular_common__WEBPACK_IMPORTED_MODULE_8__["DOCUMENT"]]
          }]
        }, {
          type: _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_0__["FocusMonitor"]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"],
            args: [MAT_MENU_PANEL]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"]
          }]
        }];
      };

      MatMenuItem.propDecorators = {
        role: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
        }],
        _checkDisabled: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["HostListener"],
          args: ['click', ['$event']]
        }],
        _handleMouseEnter: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["HostListener"],
          args: ['mouseenter']
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](MatMenuItem, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Component"],
          args: [{
            selector: '[mat-menu-item]',
            exportAs: 'matMenuItem',
            inputs: ['disabled', 'disableRipple'],
            host: {
              '[attr.role]': 'role',
              '[class.mat-menu-item]': 'true',
              '[class.mat-menu-item-highlighted]': '_highlighted',
              '[class.mat-menu-item-submenu-trigger]': '_triggersSubmenu',
              '[attr.tabindex]': '_getTabIndex()',
              '[attr.aria-disabled]': 'disabled.toString()',
              '[attr.disabled]': 'disabled || null',
              'class': 'mat-focus-indicator'
            },
            changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ChangeDetectionStrategy"].OnPush,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewEncapsulation"].None,
            template: "<ng-content></ng-content>\n<div class=\"mat-menu-ripple\" matRipple\n     [matRippleDisabled]=\"disableRipple || disabled\"\n     [matRippleTrigger]=\"_getHostElement()\">\n</div>\n"
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"],
              args: [_angular_common__WEBPACK_IMPORTED_MODULE_8__["DOCUMENT"]]
            }]
          }, {
            type: _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_0__["FocusMonitor"]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"],
              args: [MAT_MENU_PANEL]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"]
            }]
          }];
        }, {
          role: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
          }],

          /** Prevents the default element actions if it is disabled. */
          // We have to use a `HostListener` here in order to support both Ivy and ViewEngine.
          // In Ivy the `host` bindings will be merged when this class is extended, whereas in
          // ViewEngine they're overwritten.
          // TODO(crisbeto): we move this back into `host` once Ivy is turned on by default.
          // tslint:disable-next-line:no-host-decorator-in-concrete
          _checkDisabled: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["HostListener"],
            args: ['click', ['$event']]
          }],

          /** Emits to the hover stream. */
          // We have to use a `HostListener` here in order to support both Ivy and ViewEngine.
          // In Ivy the `host` bindings will be merged when this class is extended, whereas in
          // ViewEngine they're overwritten.
          // TODO(crisbeto): we move this back into `host` once Ivy is turned on by default.
          // tslint:disable-next-line:no-host-decorator-in-concrete
          _handleMouseEnter: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["HostListener"],
            args: ['mouseenter']
          }]
        });
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** Injection token to be used to override the default options for `mat-menu`. */


      var MAT_MENU_DEFAULT_OPTIONS = new _angular_core__WEBPACK_IMPORTED_MODULE_3__["InjectionToken"]('mat-menu-default-options', {
        providedIn: 'root',
        factory: MAT_MENU_DEFAULT_OPTIONS_FACTORY
      });
      /** @docs-private */

      function MAT_MENU_DEFAULT_OPTIONS_FACTORY() {
        return {
          overlapTrigger: false,
          xPosition: 'after',
          yPosition: 'below',
          backdropClass: 'cdk-overlay-transparent-backdrop'
        };
      }
      /**
       * Start elevation for the menu panel.
       * @docs-private
       */


      var MAT_MENU_BASE_ELEVATION = 4;
      var menuPanelUid = 0;
      /** Base class with all of the `MatMenu` functionality. */

      var _MatMenuBase = /*#__PURE__*/function () {
        function _MatMenuBase(_elementRef, _ngZone, _defaultOptions) {
          _classCallCheck2(this, _MatMenuBase);

          this._elementRef = _elementRef;
          this._ngZone = _ngZone;
          this._defaultOptions = _defaultOptions;
          this._xPosition = this._defaultOptions.xPosition;
          this._yPosition = this._defaultOptions.yPosition;
          /** Only the direct descendant menu items. */

          this._directDescendantItems = new _angular_core__WEBPACK_IMPORTED_MODULE_3__["QueryList"]();
          /** Subscription to tab events on the menu panel */

          this._tabSubscription = rxjs__WEBPACK_IMPORTED_MODULE_4__["Subscription"].EMPTY;
          /** Config object to be passed into the menu's ngClass */

          this._classList = {};
          /** Current state of the panel animation. */

          this._panelAnimationState = 'void';
          /** Emits whenever an animation on the menu completes. */

          this._animationDone = new rxjs__WEBPACK_IMPORTED_MODULE_4__["Subject"]();
          /** Class or list of classes to be added to the overlay panel. */

          this.overlayPanelClass = this._defaultOptions.overlayPanelClass || '';
          /** Class to be added to the backdrop element. */

          this.backdropClass = this._defaultOptions.backdropClass;
          this._overlapTrigger = this._defaultOptions.overlapTrigger;
          this._hasBackdrop = this._defaultOptions.hasBackdrop;
          /** Event emitted when the menu is closed. */

          this.closed = new _angular_core__WEBPACK_IMPORTED_MODULE_3__["EventEmitter"]();
          /**
           * Event emitted when the menu is closed.
           * @deprecated Switch to `closed` instead
           * @breaking-change 8.0.0
           */

          this.close = this.closed;
          this.panelId = "mat-menu-panel-".concat(menuPanelUid++);
        }
        /** Position of the menu in the X axis. */


        _createClass2(_MatMenuBase, [{
          key: "xPosition",
          get: function get() {
            return this._xPosition;
          },
          set: function set(value) {
            if (value !== 'before' && value !== 'after' && (typeof ngDevMode === 'undefined' || ngDevMode)) {
              throwMatMenuInvalidPositionX();
            }

            this._xPosition = value;
            this.setPositionClasses();
          }
          /** Position of the menu in the Y axis. */

        }, {
          key: "yPosition",
          get: function get() {
            return this._yPosition;
          },
          set: function set(value) {
            if (value !== 'above' && value !== 'below' && (typeof ngDevMode === 'undefined' || ngDevMode)) {
              throwMatMenuInvalidPositionY();
            }

            this._yPosition = value;
            this.setPositionClasses();
          }
          /** Whether the menu should overlap its trigger. */

        }, {
          key: "overlapTrigger",
          get: function get() {
            return this._overlapTrigger;
          },
          set: function set(value) {
            this._overlapTrigger = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_1__["coerceBooleanProperty"])(value);
          }
          /** Whether the menu has a backdrop. */

        }, {
          key: "hasBackdrop",
          get: function get() {
            return this._hasBackdrop;
          },
          set: function set(value) {
            this._hasBackdrop = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_1__["coerceBooleanProperty"])(value);
          }
          /**
           * This method takes classes set on the host mat-menu element and applies them on the
           * menu template that displays in the overlay container.  Otherwise, it's difficult
           * to style the containing menu from outside the component.
           * @param classes list of class names
           */

        }, {
          key: "panelClass",
          set: function set(classes) {
            var _this879 = this;

            var previousPanelClass = this._previousPanelClass;

            if (previousPanelClass && previousPanelClass.length) {
              previousPanelClass.split(' ').forEach(function (className) {
                _this879._classList[className] = false;
              });
            }

            this._previousPanelClass = classes;

            if (classes && classes.length) {
              classes.split(' ').forEach(function (className) {
                _this879._classList[className] = true;
              });
              this._elementRef.nativeElement.className = '';
            }
          }
          /**
           * This method takes classes set on the host mat-menu element and applies them on the
           * menu template that displays in the overlay container.  Otherwise, it's difficult
           * to style the containing menu from outside the component.
           * @deprecated Use `panelClass` instead.
           * @breaking-change 8.0.0
           */

        }, {
          key: "classList",
          get: function get() {
            return this.panelClass;
          },
          set: function set(classes) {
            this.panelClass = classes;
          }
        }, {
          key: "ngOnInit",
          value: function ngOnInit() {
            this.setPositionClasses();
          }
        }, {
          key: "ngAfterContentInit",
          value: function ngAfterContentInit() {
            var _this880 = this;

            this._updateDirectDescendants();

            this._keyManager = new _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_0__["FocusKeyManager"](this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd();
            this._tabSubscription = this._keyManager.tabOut.subscribe(function () {
              return _this880.closed.emit('tab');
            }); // If a user manually (programatically) focuses a menu item, we need to reflect that focus
            // change back to the key manager. Note that we don't need to unsubscribe here because _focused
            // is internal and we know that it gets completed on destroy.

            this._directDescendantItems.changes.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["startWith"])(this._directDescendantItems), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["switchMap"])(function (items) {
              return Object(rxjs__WEBPACK_IMPORTED_MODULE_4__["merge"]).apply(void 0, _toConsumableArray(items.map(function (item) {
                return item._focused;
              })));
            })).subscribe(function (focusedItem) {
              return _this880._keyManager.updateActiveItem(focusedItem);
            });
          }
        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            this._directDescendantItems.destroy();

            this._tabSubscription.unsubscribe();

            this.closed.complete();
          }
          /** Stream that emits whenever the hovered menu item changes. */

        }, {
          key: "_hovered",
          value: function _hovered() {
            // Coerce the `changes` property because Angular types it as `Observable<any>`
            var itemChanges = this._directDescendantItems.changes;
            return itemChanges.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["startWith"])(this._directDescendantItems), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["switchMap"])(function (items) {
              return Object(rxjs__WEBPACK_IMPORTED_MODULE_4__["merge"]).apply(void 0, _toConsumableArray(items.map(function (item) {
                return item._hovered;
              })));
            }));
          }
          /*
           * Registers a menu item with the menu.
           * @docs-private
           * @deprecated No longer being used. To be removed.
           * @breaking-change 9.0.0
           */

        }, {
          key: "addItem",
          value: function addItem(_item) {}
          /**
           * Removes an item from the menu.
           * @docs-private
           * @deprecated No longer being used. To be removed.
           * @breaking-change 9.0.0
           */

        }, {
          key: "removeItem",
          value: function removeItem(_item) {}
          /** Handle a keyboard event from the menu, delegating to the appropriate action. */

        }, {
          key: "_handleKeydown",
          value: function _handleKeydown(event) {
            var keyCode = event.keyCode;
            var manager = this._keyManager;

            switch (keyCode) {
              case _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_2__["ESCAPE"]:
                if (!Object(_angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_2__["hasModifierKey"])(event)) {
                  event.preventDefault();
                  this.closed.emit('keydown');
                }

                break;

              case _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_2__["LEFT_ARROW"]:
                if (this.parentMenu && this.direction === 'ltr') {
                  this.closed.emit('keydown');
                }

                break;

              case _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_2__["RIGHT_ARROW"]:
                if (this.parentMenu && this.direction === 'rtl') {
                  this.closed.emit('keydown');
                }

                break;

              default:
                if (keyCode === _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_2__["UP_ARROW"] || keyCode === _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_2__["DOWN_ARROW"]) {
                  manager.setFocusOrigin('keyboard');
                }

                manager.onKeydown(event);
            }
          }
          /**
           * Focus the first item in the menu.
           * @param origin Action from which the focus originated. Used to set the correct styling.
           */

        }, {
          key: "focusFirstItem",
          value: function focusFirstItem() {
            var _this881 = this;

            var origin = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'program';

            // When the content is rendered lazily, it takes a bit before the items are inside the DOM.
            if (this.lazyContent) {
              this._ngZone.onStable.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["take"])(1)).subscribe(function () {
                return _this881._focusFirstItem(origin);
              });
            } else {
              this._focusFirstItem(origin);
            }
          }
          /**
           * Actual implementation that focuses the first item. Needs to be separated
           * out so we don't repeat the same logic in the public `focusFirstItem` method.
           */

        }, {
          key: "_focusFirstItem",
          value: function _focusFirstItem(origin) {
            var manager = this._keyManager;
            manager.setFocusOrigin(origin).setFirstItemActive(); // If there's no active item at this point, it means that all the items are disabled.
            // Move focus to the menu panel so keyboard events like Escape still work. Also this will
            // give _some_ feedback to screen readers.

            if (!manager.activeItem && this._directDescendantItems.length) {
              var element = this._directDescendantItems.first._getHostElement().parentElement; // Because the `mat-menu` is at the DOM insertion point, not inside the overlay, we don't
              // have a nice way of getting a hold of the menu panel. We can't use a `ViewChild` either
              // because the panel is inside an `ng-template`. We work around it by starting from one of
              // the items and walking up the DOM.


              while (element) {
                if (element.getAttribute('role') === 'menu') {
                  element.focus();
                  break;
                } else {
                  element = element.parentElement;
                }
              }
            }
          }
          /**
           * Resets the active item in the menu. This is used when the menu is opened, allowing
           * the user to start from the first option when pressing the down arrow.
           */

        }, {
          key: "resetActiveItem",
          value: function resetActiveItem() {
            this._keyManager.setActiveItem(-1);
          }
          /**
           * Sets the menu panel elevation.
           * @param depth Number of parent menus that come before the menu.
           */

        }, {
          key: "setElevation",
          value: function setElevation(depth) {
            // The elevation starts at the base and increases by one for each level.
            // Capped at 24 because that's the maximum elevation defined in the Material design spec.
            var elevation = Math.min(MAT_MENU_BASE_ELEVATION + depth, 24);
            var newElevation = "mat-elevation-z".concat(elevation);
            var customElevation = Object.keys(this._classList).find(function (c) {
              return c.startsWith('mat-elevation-z');
            });

            if (!customElevation || customElevation === this._previousElevation) {
              if (this._previousElevation) {
                this._classList[this._previousElevation] = false;
              }

              this._classList[newElevation] = true;
              this._previousElevation = newElevation;
            }
          }
          /**
           * Adds classes to the menu panel based on its position. Can be used by
           * consumers to add specific styling based on the position.
           * @param posX Position of the menu along the x axis.
           * @param posY Position of the menu along the y axis.
           * @docs-private
           */

        }, {
          key: "setPositionClasses",
          value: function setPositionClasses() {
            var posX = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.xPosition;
            var posY = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.yPosition;
            var classes = this._classList;
            classes['mat-menu-before'] = posX === 'before';
            classes['mat-menu-after'] = posX === 'after';
            classes['mat-menu-above'] = posY === 'above';
            classes['mat-menu-below'] = posY === 'below';
          }
          /** Starts the enter animation. */

        }, {
          key: "_startAnimation",
          value: function _startAnimation() {
            // @breaking-change 8.0.0 Combine with _resetAnimation.
            this._panelAnimationState = 'enter';
          }
          /** Resets the panel animation to its initial state. */

        }, {
          key: "_resetAnimation",
          value: function _resetAnimation() {
            // @breaking-change 8.0.0 Combine with _startAnimation.
            this._panelAnimationState = 'void';
          }
          /** Callback that is invoked when the panel animation completes. */

        }, {
          key: "_onAnimationDone",
          value: function _onAnimationDone(event) {
            this._animationDone.next(event);

            this._isAnimating = false;
          }
        }, {
          key: "_onAnimationStart",
          value: function _onAnimationStart(event) {
            this._isAnimating = true; // Scroll the content element to the top as soon as the animation starts. This is necessary,
            // because we move focus to the first item while it's still being animated, which can throw
            // the browser off when it determines the scroll position. Alternatively we can move focus
            // when the animation is done, however moving focus asynchronously will interrupt screen
            // readers which are in the process of reading out the menu already. We take the `element`
            // from the `event` since we can't use a `ViewChild` to access the pane.

            if (event.toState === 'enter' && this._keyManager.activeItemIndex === 0) {
              event.element.scrollTop = 0;
            }
          }
          /**
           * Sets up a stream that will keep track of any newly-added menu items and will update the list
           * of direct descendants. We collect the descendants this way, because `_allItems` can include
           * items that are part of child menus, and using a custom way of registering items is unreliable
           * when it comes to maintaining the item order.
           */

        }, {
          key: "_updateDirectDescendants",
          value: function _updateDirectDescendants() {
            var _this882 = this;

            this._allItems.changes.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["startWith"])(this._allItems)).subscribe(function (items) {
              _this882._directDescendantItems.reset(items.filter(function (item) {
                return item._parentMenu === _this882;
              }));

              _this882._directDescendantItems.notifyOnChanges();
            });
          }
        }]);

        return _MatMenuBase;
      }();

      _MatMenuBase.ɵfac = function _MatMenuBase_Factory(t) {
        return new (t || _MatMenuBase)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["NgZone"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](MAT_MENU_DEFAULT_OPTIONS));
      };

      _MatMenuBase.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineDirective"]({
        type: _MatMenuBase,
        contentQueries: function _MatMenuBase_ContentQueries(rf, ctx, dirIndex) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵcontentQuery"](dirIndex, MAT_MENU_CONTENT, true);

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵcontentQuery"](dirIndex, MatMenuItem, true);

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵcontentQuery"](dirIndex, MatMenuItem, false);
          }

          if (rf & 2) {
            var _t;

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵloadQuery"]()) && (ctx.lazyContent = _t.first);
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵloadQuery"]()) && (ctx._allItems = _t);
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵloadQuery"]()) && (ctx.items = _t);
          }
        },
        viewQuery: function _MatMenuBase_Query(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵviewQuery"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["TemplateRef"], true);
          }

          if (rf & 2) {
            var _t;

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵloadQuery"]()) && (ctx.templateRef = _t.first);
          }
        },
        inputs: {
          backdropClass: "backdropClass",
          xPosition: "xPosition",
          yPosition: "yPosition",
          overlapTrigger: "overlapTrigger",
          hasBackdrop: "hasBackdrop",
          panelClass: ["class", "panelClass"],
          classList: "classList",
          ariaLabel: ["aria-label", "ariaLabel"],
          ariaLabelledby: ["aria-labelledby", "ariaLabelledby"],
          ariaDescribedby: ["aria-describedby", "ariaDescribedby"]
        },
        outputs: {
          closed: "closed",
          close: "close"
        }
      });

      _MatMenuBase.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["NgZone"]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"],
            args: [MAT_MENU_DEFAULT_OPTIONS]
          }]
        }];
      };

      _MatMenuBase.propDecorators = {
        _allItems: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ContentChildren"],
          args: [MatMenuItem, {
            descendants: true
          }]
        }],
        backdropClass: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
        }],
        ariaLabel: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"],
          args: ['aria-label']
        }],
        ariaLabelledby: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"],
          args: ['aria-labelledby']
        }],
        ariaDescribedby: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"],
          args: ['aria-describedby']
        }],
        xPosition: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
        }],
        yPosition: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
        }],
        templateRef: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewChild"],
          args: [_angular_core__WEBPACK_IMPORTED_MODULE_3__["TemplateRef"]]
        }],
        items: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ContentChildren"],
          args: [MatMenuItem, {
            descendants: false
          }]
        }],
        lazyContent: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ContentChild"],
          args: [MAT_MENU_CONTENT]
        }],
        overlapTrigger: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
        }],
        hasBackdrop: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
        }],
        panelClass: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"],
          args: ['class']
        }],
        classList: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
        }],
        closed: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Output"]
        }],
        close: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Output"]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](_MatMenuBase, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Directive"]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["NgZone"]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"],
              args: [MAT_MENU_DEFAULT_OPTIONS]
            }]
          }];
        }, {
          backdropClass: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
          }],
          closed: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Output"]
          }],
          close: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Output"]
          }],
          xPosition: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
          }],
          yPosition: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
          }],
          overlapTrigger: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
          }],
          hasBackdrop: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
          }],
          panelClass: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"],
            args: ['class']
          }],
          classList: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
          }],
          _allItems: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ContentChildren"],
            args: [MatMenuItem, {
              descendants: true
            }]
          }],
          ariaLabel: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"],
            args: ['aria-label']
          }],
          ariaLabelledby: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"],
            args: ['aria-labelledby']
          }],
          ariaDescribedby: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"],
            args: ['aria-describedby']
          }],
          templateRef: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewChild"],
            args: [_angular_core__WEBPACK_IMPORTED_MODULE_3__["TemplateRef"]]
          }],
          items: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ContentChildren"],
            args: [MatMenuItem, {
              descendants: false
            }]
          }],
          lazyContent: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ContentChild"],
            args: [MAT_MENU_CONTENT]
          }]
        });
      })();
      /** @docs-public MatMenu */


      var MatMenu = /*#__PURE__*/function (_MatMenuBase2) {
        _inherits2(MatMenu, _MatMenuBase2);

        var _super424 = _createSuper2(MatMenu);

        function MatMenu(elementRef, ngZone, defaultOptions) {
          _classCallCheck2(this, MatMenu);

          return _super424.call(this, elementRef, ngZone, defaultOptions);
        }

        return MatMenu;
      }(_MatMenuBase);

      MatMenu.ɵfac = function MatMenu_Factory(t) {
        return new (t || MatMenu)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["NgZone"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](MAT_MENU_DEFAULT_OPTIONS));
      };

      MatMenu.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({
        type: MatMenu,
        selectors: [["mat-menu"]],
        exportAs: ["matMenu"],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵProvidersFeature"]([{
          provide: MAT_MENU_PANEL,
          useExisting: MatMenu
        }]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵInheritDefinitionFeature"]],
        ngContentSelectors: _c1,
        decls: 1,
        vars: 0,
        consts: [["tabindex", "-1", "role", "menu", 1, "mat-menu-panel", 3, "id", "ngClass", "keydown", "click"], [1, "mat-menu-content"]],
        template: function MatMenu_Template(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵprojectionDef"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](0, MatMenu_ng_template_0_Template, 3, 6, "ng-template");
          }
        },
        directives: [_angular_common__WEBPACK_IMPORTED_MODULE_8__["NgClass"]],
        styles: [".mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:\"\";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],
        encapsulation: 2,
        data: {
          animation: [matMenuAnimations.transformMenu, matMenuAnimations.fadeInItems]
        },
        changeDetection: 0
      });

      MatMenu.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["NgZone"]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"],
            args: [MAT_MENU_DEFAULT_OPTIONS]
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](MatMenu, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Component"],
          args: [{
            selector: 'mat-menu',
            template: "<ng-template>\n  <div\n    class=\"mat-menu-panel\"\n    [id]=\"panelId\"\n    [ngClass]=\"_classList\"\n    (keydown)=\"_handleKeydown($event)\"\n    (click)=\"closed.emit('click')\"\n    [@transformMenu]=\"_panelAnimationState\"\n    (@transformMenu.start)=\"_onAnimationStart($event)\"\n    (@transformMenu.done)=\"_onAnimationDone($event)\"\n    tabindex=\"-1\"\n    role=\"menu\"\n    [attr.aria-label]=\"ariaLabel || null\"\n    [attr.aria-labelledby]=\"ariaLabelledby || null\"\n    [attr.aria-describedby]=\"ariaDescribedby || null\">\n    <div class=\"mat-menu-content\">\n      <ng-content></ng-content>\n    </div>\n  </div>\n</ng-template>\n",
            changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ChangeDetectionStrategy"].OnPush,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewEncapsulation"].None,
            exportAs: 'matMenu',
            animations: [matMenuAnimations.transformMenu, matMenuAnimations.fadeInItems],
            providers: [{
              provide: MAT_MENU_PANEL,
              useExisting: MatMenu
            }],
            styles: [".mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:\"\";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"]
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["NgZone"]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"],
              args: [MAT_MENU_DEFAULT_OPTIONS]
            }]
          }];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** Injection token that determines the scroll handling while the menu is open. */


      var MAT_MENU_SCROLL_STRATEGY = new _angular_core__WEBPACK_IMPORTED_MODULE_3__["InjectionToken"]('mat-menu-scroll-strategy');
      /** @docs-private */

      function MAT_MENU_SCROLL_STRATEGY_FACTORY(overlay) {
        return function () {
          return overlay.scrollStrategies.reposition();
        };
      }
      /** @docs-private */


      var MAT_MENU_SCROLL_STRATEGY_FACTORY_PROVIDER = {
        provide: MAT_MENU_SCROLL_STRATEGY,
        deps: [_angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_11__["Overlay"]],
        useFactory: MAT_MENU_SCROLL_STRATEGY_FACTORY
      };
      /** Default top padding of the menu panel. */

      var MENU_PANEL_TOP_PADDING = 8;
      /** Options for binding a passive event listener. */

      var passiveEventListenerOptions = Object(_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_12__["normalizePassiveListenerOptions"])({
        passive: true
      }); // TODO(andrewseguin): Remove the kebab versions in favor of camelCased attribute selectors

      /** Directive applied to an element that should trigger a `mat-menu`. */

      var MatMenuTrigger = /*#__PURE__*/function () {
        function MatMenuTrigger(_overlay, _element, _viewContainerRef, scrollStrategy, parentMenu, // `MatMenuTrigger` is commonly used in combination with a `MatMenuItem`.
        // tslint:disable-next-line: lightweight-tokens
        _menuItemInstance, _dir, // TODO(crisbeto): make the _focusMonitor required when doing breaking changes.
        // @breaking-change 8.0.0
        _focusMonitor) {
          var _this883 = this;

          _classCallCheck2(this, MatMenuTrigger);

          this._overlay = _overlay;
          this._element = _element;
          this._viewContainerRef = _viewContainerRef;
          this._menuItemInstance = _menuItemInstance;
          this._dir = _dir;
          this._focusMonitor = _focusMonitor;
          this._overlayRef = null;
          this._menuOpen = false;
          this._closingActionsSubscription = rxjs__WEBPACK_IMPORTED_MODULE_4__["Subscription"].EMPTY;
          this._hoverSubscription = rxjs__WEBPACK_IMPORTED_MODULE_4__["Subscription"].EMPTY;
          this._menuCloseSubscription = rxjs__WEBPACK_IMPORTED_MODULE_4__["Subscription"].EMPTY;
          /**
           * Handles touch start events on the trigger.
           * Needs to be an arrow function so we can easily use addEventListener and removeEventListener.
           */

          this._handleTouchStart = function () {
            return _this883._openedBy = 'touch';
          }; // Tracking input type is necessary so it's possible to only auto-focus
          // the first item of the list when the menu is opened via the keyboard


          this._openedBy = null;
          /**
           * Whether focus should be restored when the menu is closed.
           * Note that disabling this option can have accessibility implications
           * and it's up to you to manage focus, if you decide to turn it off.
           */

          this.restoreFocus = true;
          /** Event emitted when the associated menu is opened. */

          this.menuOpened = new _angular_core__WEBPACK_IMPORTED_MODULE_3__["EventEmitter"]();
          /**
           * Event emitted when the associated menu is opened.
           * @deprecated Switch to `menuOpened` instead
           * @breaking-change 8.0.0
           */
          // tslint:disable-next-line:no-output-on-prefix

          this.onMenuOpen = this.menuOpened;
          /** Event emitted when the associated menu is closed. */

          this.menuClosed = new _angular_core__WEBPACK_IMPORTED_MODULE_3__["EventEmitter"]();
          /**
           * Event emitted when the associated menu is closed.
           * @deprecated Switch to `menuClosed` instead
           * @breaking-change 8.0.0
           */
          // tslint:disable-next-line:no-output-on-prefix

          this.onMenuClose = this.menuClosed;
          this._scrollStrategy = scrollStrategy;
          this._parentMaterialMenu = parentMenu instanceof _MatMenuBase ? parentMenu : undefined;

          _element.nativeElement.addEventListener('touchstart', this._handleTouchStart, passiveEventListenerOptions);

          if (_menuItemInstance) {
            _menuItemInstance._triggersSubmenu = this.triggersSubmenu();
          }
        }
        /**
         * @deprecated
         * @breaking-change 8.0.0
         */


        _createClass2(MatMenuTrigger, [{
          key: "_deprecatedMatMenuTriggerFor",
          get: function get() {
            return this.menu;
          },
          set: function set(v) {
            this.menu = v;
          }
          /** References the menu instance that the trigger is associated with. */

        }, {
          key: "menu",
          get: function get() {
            return this._menu;
          },
          set: function set(menu) {
            var _this884 = this;

            if (menu === this._menu) {
              return;
            }

            this._menu = menu;

            this._menuCloseSubscription.unsubscribe();

            if (menu) {
              if (menu === this._parentMaterialMenu && (typeof ngDevMode === 'undefined' || ngDevMode)) {
                throwMatMenuRecursiveError();
              }

              this._menuCloseSubscription = menu.close.subscribe(function (reason) {
                _this884._destroyMenu(); // If a click closed the menu, we should close the entire chain of nested menus.


                if ((reason === 'click' || reason === 'tab') && _this884._parentMaterialMenu) {
                  _this884._parentMaterialMenu.closed.emit(reason);
                }
              });
            }
          }
        }, {
          key: "ngAfterContentInit",
          value: function ngAfterContentInit() {
            this._checkMenu();

            this._handleHover();
          }
        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            if (this._overlayRef) {
              this._overlayRef.dispose();

              this._overlayRef = null;
            }

            this._element.nativeElement.removeEventListener('touchstart', this._handleTouchStart, passiveEventListenerOptions);

            this._menuCloseSubscription.unsubscribe();

            this._closingActionsSubscription.unsubscribe();

            this._hoverSubscription.unsubscribe();
          }
          /** Whether the menu is open. */

        }, {
          key: "menuOpen",
          get: function get() {
            return this._menuOpen;
          }
          /** The text direction of the containing app. */

        }, {
          key: "dir",
          get: function get() {
            return this._dir && this._dir.value === 'rtl' ? 'rtl' : 'ltr';
          }
          /** Whether the menu triggers a sub-menu or a top-level one. */

        }, {
          key: "triggersSubmenu",
          value: function triggersSubmenu() {
            return !!(this._menuItemInstance && this._parentMaterialMenu);
          }
          /** Toggles the menu between the open and closed states. */

        }, {
          key: "toggleMenu",
          value: function toggleMenu() {
            return this._menuOpen ? this.closeMenu() : this.openMenu();
          }
          /** Opens the menu. */

        }, {
          key: "openMenu",
          value: function openMenu() {
            var _this885 = this;

            if (this._menuOpen) {
              return;
            }

            this._checkMenu();

            var overlayRef = this._createOverlay();

            var overlayConfig = overlayRef.getConfig();

            this._setPosition(overlayConfig.positionStrategy);

            overlayConfig.hasBackdrop = this.menu.hasBackdrop == null ? !this.triggersSubmenu() : this.menu.hasBackdrop;
            overlayRef.attach(this._getPortal());

            if (this.menu.lazyContent) {
              this.menu.lazyContent.attach(this.menuData);
            }

            this._closingActionsSubscription = this._menuClosingActions().subscribe(function () {
              return _this885.closeMenu();
            });

            this._initMenu();

            if (this.menu instanceof _MatMenuBase) {
              this.menu._startAnimation();
            }
          }
          /** Closes the menu. */

        }, {
          key: "closeMenu",
          value: function closeMenu() {
            this.menu.close.emit();
          }
          /**
           * Focuses the menu trigger.
           * @param origin Source of the menu trigger's focus.
           */

        }, {
          key: "focus",
          value: function focus() {
            var origin = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'program';
            var options = arguments.length > 1 ? arguments[1] : undefined;

            if (this._focusMonitor) {
              this._focusMonitor.focusVia(this._element, origin, options);
            } else {
              this._element.nativeElement.focus(options);
            }
          }
          /** Closes the menu and does the necessary cleanup. */

        }, {
          key: "_destroyMenu",
          value: function _destroyMenu() {
            var _this886 = this;

            if (!this._overlayRef || !this.menuOpen) {
              return;
            }

            var menu = this.menu;

            this._closingActionsSubscription.unsubscribe();

            this._overlayRef.detach();

            this._restoreFocus();

            if (menu instanceof _MatMenuBase) {
              menu._resetAnimation();

              if (menu.lazyContent) {
                // Wait for the exit animation to finish before detaching the content.
                menu._animationDone.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["filter"])(function (event) {
                  return event.toState === 'void';
                }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["take"])(1), // Interrupt if the content got re-attached.
                Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["takeUntil"])(menu.lazyContent._attached)).subscribe({
                  next: function next() {
                    return menu.lazyContent.detach();
                  },
                  // No matter whether the content got re-attached, reset the menu.
                  complete: function complete() {
                    return _this886._setIsMenuOpen(false);
                  }
                });
              } else {
                this._setIsMenuOpen(false);
              }
            } else {
              this._setIsMenuOpen(false);

              if (menu.lazyContent) {
                menu.lazyContent.detach();
              }
            }
          }
          /**
           * This method sets the menu state to open and focuses the first item if
           * the menu was opened via the keyboard.
           */

        }, {
          key: "_initMenu",
          value: function _initMenu() {
            this.menu.parentMenu = this.triggersSubmenu() ? this._parentMaterialMenu : undefined;
            this.menu.direction = this.dir;

            this._setMenuElevation();

            this._setIsMenuOpen(true);

            this.menu.focusFirstItem(this._openedBy || 'program');
          }
          /** Updates the menu elevation based on the amount of parent menus that it has. */

        }, {
          key: "_setMenuElevation",
          value: function _setMenuElevation() {
            if (this.menu.setElevation) {
              var depth = 0;
              var parentMenu = this.menu.parentMenu;

              while (parentMenu) {
                depth++;
                parentMenu = parentMenu.parentMenu;
              }

              this.menu.setElevation(depth);
            }
          }
          /** Restores focus to the element that was focused before the menu was open. */

        }, {
          key: "_restoreFocus",
          value: function _restoreFocus() {
            // We should reset focus if the user is navigating using a keyboard or
            // if we have a top-level trigger which might cause focus to be lost
            // when clicking on the backdrop.
            if (this.restoreFocus) {
              if (!this._openedBy) {
                // Note that the focus style will show up both for `program` and
                // `keyboard` so we don't have to specify which one it is.
                this.focus();
              } else if (!this.triggersSubmenu()) {
                this.focus(this._openedBy);
              }
            }

            this._openedBy = null;
          } // set state rather than toggle to support triggers sharing a menu

        }, {
          key: "_setIsMenuOpen",
          value: function _setIsMenuOpen(isOpen) {
            this._menuOpen = isOpen;
            this._menuOpen ? this.menuOpened.emit() : this.menuClosed.emit();

            if (this.triggersSubmenu()) {
              this._menuItemInstance._highlighted = isOpen;
            }
          }
          /**
           * This method checks that a valid instance of MatMenu has been passed into
           * matMenuTriggerFor. If not, an exception is thrown.
           */

        }, {
          key: "_checkMenu",
          value: function _checkMenu() {
            if (!this.menu && (typeof ngDevMode === 'undefined' || ngDevMode)) {
              throwMatMenuMissingError();
            }
          }
          /**
           * This method creates the overlay from the provided menu's template and saves its
           * OverlayRef so that it can be attached to the DOM when openMenu is called.
           */

        }, {
          key: "_createOverlay",
          value: function _createOverlay() {
            if (!this._overlayRef) {
              var config = this._getOverlayConfig();

              this._subscribeToPositions(config.positionStrategy);

              this._overlayRef = this._overlay.create(config); // Consume the `keydownEvents` in order to prevent them from going to another overlay.
              // Ideally we'd also have our keyboard event logic in here, however doing so will
              // break anybody that may have implemented the `MatMenuPanel` themselves.

              this._overlayRef.keydownEvents().subscribe();
            }

            return this._overlayRef;
          }
          /**
           * This method builds the configuration object needed to create the overlay, the OverlayState.
           * @returns OverlayConfig
           */

        }, {
          key: "_getOverlayConfig",
          value: function _getOverlayConfig() {
            return new _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_11__["OverlayConfig"]({
              positionStrategy: this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withTransformOriginOn('.mat-menu-panel, .mat-mdc-menu-panel'),
              backdropClass: this.menu.backdropClass || 'cdk-overlay-transparent-backdrop',
              panelClass: this.menu.overlayPanelClass,
              scrollStrategy: this._scrollStrategy(),
              direction: this._dir
            });
          }
          /**
           * Listens to changes in the position of the overlay and sets the correct classes
           * on the menu based on the new position. This ensures the animation origin is always
           * correct, even if a fallback position is used for the overlay.
           */

        }, {
          key: "_subscribeToPositions",
          value: function _subscribeToPositions(position) {
            var _this887 = this;

            if (this.menu.setPositionClasses) {
              position.positionChanges.subscribe(function (change) {
                var posX = change.connectionPair.overlayX === 'start' ? 'after' : 'before';
                var posY = change.connectionPair.overlayY === 'top' ? 'below' : 'above';

                _this887.menu.setPositionClasses(posX, posY);
              });
            }
          }
          /**
           * Sets the appropriate positions on a position strategy
           * so the overlay connects with the trigger correctly.
           * @param positionStrategy Strategy whose position to update.
           */

        }, {
          key: "_setPosition",
          value: function _setPosition(positionStrategy) {
            var _ref93 = this.menu.xPosition === 'before' ? ['end', 'start'] : ['start', 'end'],
                _ref94 = _slicedToArray(_ref93, 2),
                originX = _ref94[0],
                originFallbackX = _ref94[1];

            var _ref95 = this.menu.yPosition === 'above' ? ['bottom', 'top'] : ['top', 'bottom'],
                _ref96 = _slicedToArray(_ref95, 2),
                overlayY = _ref96[0],
                overlayFallbackY = _ref96[1];

            var originY = overlayY,
                originFallbackY = overlayFallbackY;
            var overlayX = originX,
                overlayFallbackX = originFallbackX;
            var offsetY = 0;

            if (this.triggersSubmenu()) {
              // When the menu is a sub-menu, it should always align itself
              // to the edges of the trigger, instead of overlapping it.
              overlayFallbackX = originX = this.menu.xPosition === 'before' ? 'start' : 'end';
              originFallbackX = overlayX = originX === 'end' ? 'start' : 'end';
              offsetY = overlayY === 'bottom' ? MENU_PANEL_TOP_PADDING : -MENU_PANEL_TOP_PADDING;
            } else if (!this.menu.overlapTrigger) {
              originY = overlayY === 'top' ? 'bottom' : 'top';
              originFallbackY = overlayFallbackY === 'top' ? 'bottom' : 'top';
            }

            positionStrategy.withPositions([{
              originX: originX,
              originY: originY,
              overlayX: overlayX,
              overlayY: overlayY,
              offsetY: offsetY
            }, {
              originX: originFallbackX,
              originY: originY,
              overlayX: overlayFallbackX,
              overlayY: overlayY,
              offsetY: offsetY
            }, {
              originX: originX,
              originY: originFallbackY,
              overlayX: overlayX,
              overlayY: overlayFallbackY,
              offsetY: -offsetY
            }, {
              originX: originFallbackX,
              originY: originFallbackY,
              overlayX: overlayFallbackX,
              overlayY: overlayFallbackY,
              offsetY: -offsetY
            }]);
          }
          /** Returns a stream that emits whenever an action that should close the menu occurs. */

        }, {
          key: "_menuClosingActions",
          value: function _menuClosingActions() {
            var _this888 = this;

            var backdrop = this._overlayRef.backdropClick();

            var detachments = this._overlayRef.detachments();

            var parentClose = this._parentMaterialMenu ? this._parentMaterialMenu.closed : Object(rxjs__WEBPACK_IMPORTED_MODULE_4__["of"])();
            var hover = this._parentMaterialMenu ? this._parentMaterialMenu._hovered().pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["filter"])(function (active) {
              return active !== _this888._menuItemInstance;
            }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["filter"])(function () {
              return _this888._menuOpen;
            })) : Object(rxjs__WEBPACK_IMPORTED_MODULE_4__["of"])();
            return Object(rxjs__WEBPACK_IMPORTED_MODULE_4__["merge"])(backdrop, parentClose, hover, detachments);
          }
          /** Handles mouse presses on the trigger. */

        }, {
          key: "_handleMousedown",
          value: function _handleMousedown(event) {
            if (!Object(_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_0__["isFakeMousedownFromScreenReader"])(event)) {
              // Since right or middle button clicks won't trigger the `click` event,
              // we shouldn't consider the menu as opened by mouse in those cases.
              this._openedBy = event.button === 0 ? 'mouse' : null; // Since clicking on the trigger won't close the menu if it opens a sub-menu,
              // we should prevent focus from moving onto it via click to avoid the
              // highlight from lingering on the menu item.

              if (this.triggersSubmenu()) {
                event.preventDefault();
              }
            }
          }
          /** Handles key presses on the trigger. */

        }, {
          key: "_handleKeydown",
          value: function _handleKeydown(event) {
            var keyCode = event.keyCode;

            if (this.triggersSubmenu() && (keyCode === _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_2__["RIGHT_ARROW"] && this.dir === 'ltr' || keyCode === _angular_cdk_keycodes__WEBPACK_IMPORTED_MODULE_2__["LEFT_ARROW"] && this.dir === 'rtl')) {
              this.openMenu();
            }
          }
          /** Handles click events on the trigger. */

        }, {
          key: "_handleClick",
          value: function _handleClick(event) {
            if (this.triggersSubmenu()) {
              // Stop event propagation to avoid closing the parent menu.
              event.stopPropagation();
              this.openMenu();
            } else {
              this.toggleMenu();
            }
          }
          /** Handles the cases where the user hovers over the trigger. */

        }, {
          key: "_handleHover",
          value: function _handleHover() {
            var _this889 = this;

            // Subscribe to changes in the hovered item in order to toggle the panel.
            if (!this.triggersSubmenu() || !this._parentMaterialMenu) {
              return;
            }

            this._hoverSubscription = this._parentMaterialMenu._hovered() // Since we might have multiple competing triggers for the same menu (e.g. a sub-menu
            // with different data and triggers), we have to delay it by a tick to ensure that
            // it won't be closed immediately after it is opened.
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["filter"])(function (active) {
              return active === _this889._menuItemInstance && !active.disabled;
            }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["delay"])(0, rxjs__WEBPACK_IMPORTED_MODULE_4__["asapScheduler"])).subscribe(function () {
              _this889._openedBy = 'mouse'; // If the same menu is used between multiple triggers, it might still be animating
              // while the new trigger tries to re-open it. Wait for the animation to finish
              // before doing so. Also interrupt if the user moves to another item.

              if (_this889.menu instanceof _MatMenuBase && _this889.menu._isAnimating) {
                // We need the `delay(0)` here in order to avoid
                // 'changed after checked' errors in some cases. See #12194.
                _this889.menu._animationDone.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["take"])(1), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["delay"])(0, rxjs__WEBPACK_IMPORTED_MODULE_4__["asapScheduler"]), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["takeUntil"])(_this889._parentMaterialMenu._hovered())).subscribe(function () {
                  return _this889.openMenu();
                });
              } else {
                _this889.openMenu();
              }
            });
          }
          /** Gets the portal that should be attached to the overlay. */

        }, {
          key: "_getPortal",
          value: function _getPortal() {
            // Note that we can avoid this check by keeping the portal on the menu panel.
            // While it would be cleaner, we'd have to introduce another required method on
            // `MatMenuPanel`, making it harder to consume.
            if (!this._portal || this._portal.templateRef !== this.menu.templateRef) {
              this._portal = new _angular_cdk_portal__WEBPACK_IMPORTED_MODULE_7__["TemplatePortal"](this.menu.templateRef, this._viewContainerRef);
            }

            return this._portal;
          }
        }]);

        return MatMenuTrigger;
      }();

      MatMenuTrigger.ɵfac = function MatMenuTrigger_Factory(t) {
        return new (t || MatMenuTrigger)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_11__["Overlay"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewContainerRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](MAT_MENU_SCROLL_STRATEGY), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](MAT_MENU_PANEL, 8), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](MatMenuItem, 10), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_10__["Directionality"], 8), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_0__["FocusMonitor"]));
      };

      MatMenuTrigger.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineDirective"]({
        type: MatMenuTrigger,
        selectors: [["", "mat-menu-trigger-for", ""], ["", "matMenuTriggerFor", ""]],
        hostAttrs: ["aria-haspopup", "true", 1, "mat-menu-trigger"],
        hostVars: 2,
        hostBindings: function MatMenuTrigger_HostBindings(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("mousedown", function MatMenuTrigger_mousedown_HostBindingHandler($event) {
              return ctx._handleMousedown($event);
            })("keydown", function MatMenuTrigger_keydown_HostBindingHandler($event) {
              return ctx._handleKeydown($event);
            })("click", function MatMenuTrigger_click_HostBindingHandler($event) {
              return ctx._handleClick($event);
            });
          }

          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵattribute"]("aria-expanded", ctx.menuOpen || null)("aria-controls", ctx.menuOpen ? ctx.menu.panelId : null);
          }
        },
        inputs: {
          restoreFocus: ["matMenuTriggerRestoreFocus", "restoreFocus"],
          _deprecatedMatMenuTriggerFor: ["mat-menu-trigger-for", "_deprecatedMatMenuTriggerFor"],
          menu: ["matMenuTriggerFor", "menu"],
          menuData: ["matMenuTriggerData", "menuData"]
        },
        outputs: {
          menuOpened: "menuOpened",
          onMenuOpen: "onMenuOpen",
          menuClosed: "menuClosed",
          onMenuClose: "onMenuClose"
        },
        exportAs: ["matMenuTrigger"]
      });

      MatMenuTrigger.ctorParameters = function () {
        return [{
          type: _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_11__["Overlay"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewContainerRef"]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"],
            args: [MAT_MENU_SCROLL_STRATEGY]
          }]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"],
            args: [MAT_MENU_PANEL]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"]
          }]
        }, {
          type: MatMenuItem,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Self"]
          }]
        }, {
          type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_10__["Directionality"],
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"]
          }]
        }, {
          type: _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_0__["FocusMonitor"]
        }];
      };

      MatMenuTrigger.propDecorators = {
        _deprecatedMatMenuTriggerFor: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"],
          args: ['mat-menu-trigger-for']
        }],
        menu: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"],
          args: ['matMenuTriggerFor']
        }],
        menuData: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"],
          args: ['matMenuTriggerData']
        }],
        restoreFocus: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"],
          args: ['matMenuTriggerRestoreFocus']
        }],
        menuOpened: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Output"]
        }],
        onMenuOpen: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Output"]
        }],
        menuClosed: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Output"]
        }],
        onMenuClose: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Output"]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](MatMenuTrigger, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Directive"],
          args: [{
            selector: "[mat-menu-trigger-for], [matMenuTriggerFor]",
            host: {
              'class': 'mat-menu-trigger',
              'aria-haspopup': 'true',
              '[attr.aria-expanded]': 'menuOpen || null',
              '[attr.aria-controls]': 'menuOpen ? menu.panelId : null',
              '(mousedown)': '_handleMousedown($event)',
              '(keydown)': '_handleKeydown($event)',
              '(click)': '_handleClick($event)'
            },
            exportAs: 'matMenuTrigger'
          }]
        }], function () {
          return [{
            type: _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_11__["Overlay"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewContainerRef"]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"],
              args: [MAT_MENU_SCROLL_STRATEGY]
            }]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Inject"],
              args: [MAT_MENU_PANEL]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"]
            }]
          }, {
            type: MatMenuItem,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Self"]
            }]
          }, {
            type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_10__["Directionality"],
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Optional"]
            }]
          }, {
            type: _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_0__["FocusMonitor"]
          }];
        }, {
          restoreFocus: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"],
            args: ['matMenuTriggerRestoreFocus']
          }],
          menuOpened: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Output"]
          }],
          onMenuOpen: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Output"]
          }],
          menuClosed: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Output"]
          }],
          onMenuClose: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Output"]
          }],
          _deprecatedMatMenuTriggerFor: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"],
            args: ['mat-menu-trigger-for']
          }],
          menu: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"],
            args: ['matMenuTriggerFor']
          }],
          menuData: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"],
            args: ['matMenuTriggerData']
          }]
        });
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Used by both the current `MatMenuModule` and the MDC `MatMenuModule`
       * to declare the menu-related directives.
       */


      var _MatMenuDirectivesModule = function _MatMenuDirectivesModule() {
        _classCallCheck2(this, _MatMenuDirectivesModule);
      };

      _MatMenuDirectivesModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineNgModule"]({
        type: _MatMenuDirectivesModule
      });
      _MatMenuDirectivesModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineInjector"]({
        factory: function _MatMenuDirectivesModule_Factory(t) {
          return new (t || _MatMenuDirectivesModule)();
        },
        providers: [MAT_MENU_SCROLL_STRATEGY_FACTORY_PROVIDER],
        imports: [_angular_material_core__WEBPACK_IMPORTED_MODULE_9__["MatCommonModule"]]
      });

      (function () {
        (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵsetNgModuleScope"](_MatMenuDirectivesModule, {
          declarations: function declarations() {
            return [MatMenuTrigger, MatMenuContent];
          },
          exports: function exports() {
            return [MatMenuTrigger, MatMenuContent, _angular_material_core__WEBPACK_IMPORTED_MODULE_9__["MatCommonModule"]];
          }
        });
      })();
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](_MatMenuDirectivesModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["NgModule"],
          args: [{
            exports: [MatMenuTrigger, MatMenuContent, _angular_material_core__WEBPACK_IMPORTED_MODULE_9__["MatCommonModule"]],
            declarations: [MatMenuTrigger, MatMenuContent],
            providers: [MAT_MENU_SCROLL_STRATEGY_FACTORY_PROVIDER]
          }]
        }], null, null);
      })();

      var MatMenuModule = function MatMenuModule() {
        _classCallCheck2(this, MatMenuModule);
      };

      MatMenuModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineNgModule"]({
        type: MatMenuModule
      });
      MatMenuModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineInjector"]({
        factory: function MatMenuModule_Factory(t) {
          return new (t || MatMenuModule)();
        },
        providers: [MAT_MENU_SCROLL_STRATEGY_FACTORY_PROVIDER],
        imports: [[_angular_common__WEBPACK_IMPORTED_MODULE_8__["CommonModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_9__["MatCommonModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_9__["MatRippleModule"], _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_11__["OverlayModule"], _MatMenuDirectivesModule], _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_13__["CdkScrollableModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_9__["MatCommonModule"], _MatMenuDirectivesModule]
      });

      (function () {
        (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵsetNgModuleScope"](MatMenuModule, {
          declarations: function declarations() {
            return [MatMenu, MatMenuItem];
          },
          imports: function imports() {
            return [_angular_common__WEBPACK_IMPORTED_MODULE_8__["CommonModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_9__["MatCommonModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_9__["MatRippleModule"], _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_11__["OverlayModule"], _MatMenuDirectivesModule];
          },
          exports: function exports() {
            return [_angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_13__["CdkScrollableModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_9__["MatCommonModule"], MatMenu, MatMenuItem, _MatMenuDirectivesModule];
          }
        });
      })();
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](MatMenuModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["NgModule"],
          args: [{
            imports: [_angular_common__WEBPACK_IMPORTED_MODULE_8__["CommonModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_9__["MatCommonModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_9__["MatRippleModule"], _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_11__["OverlayModule"], _MatMenuDirectivesModule],
            exports: [_angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_13__["CdkScrollableModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_9__["MatCommonModule"], MatMenu, MatMenuItem, _MatMenuDirectivesModule],
            declarations: [MatMenu, MatMenuItem],
            providers: [MAT_MENU_SCROLL_STRATEGY_FACTORY_PROVIDER]
          }]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Generated bundle index. Do not edit.
       */
      //# sourceMappingURL=menu.js.map

      /***/

    },

    /***/
    "raLr": function raLr(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Ukrainian [uk]
      //! author : zemlanin : https://github.com/zemlanin
      //! Author : Menelion Elensúle : https://github.com/Oire
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        function plural(word, num) {
          var forms = word.split('_');
          return num % 10 === 1 && num % 100 !== 11 ? forms[0] : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2];
        }

        function relativeTimeWithPlural(number, withoutSuffix, key) {
          var format = {
            ss: withoutSuffix ? 'секунда_секунди_секунд' : 'секунду_секунди_секунд',
            mm: withoutSuffix ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин',
            hh: withoutSuffix ? 'година_години_годин' : 'годину_години_годин',
            dd: 'день_дні_днів',
            MM: 'місяць_місяці_місяців',
            yy: 'рік_роки_років'
          };

          if (key === 'm') {
            return withoutSuffix ? 'хвилина' : 'хвилину';
          } else if (key === 'h') {
            return withoutSuffix ? 'година' : 'годину';
          } else {
            return number + ' ' + plural(format[key], +number);
          }
        }

        function weekdaysCaseReplace(m, format) {
          var weekdays = {
            nominative: 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split('_'),
            accusative: 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split('_'),
            genitive: 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split('_')
          },
              nounCase;

          if (m === true) {
            return weekdays['nominative'].slice(1, 7).concat(weekdays['nominative'].slice(0, 1));
          }

          if (!m) {
            return weekdays['nominative'];
          }

          nounCase = /(\[[ВвУу]\]) ?dddd/.test(format) ? 'accusative' : /\[?(?:минулої|наступної)? ?\] ?dddd/.test(format) ? 'genitive' : 'nominative';
          return weekdays[nounCase][m.day()];
        }

        function processHoursFunction(str) {
          return function () {
            return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT';
          };
        }

        var uk = moment.defineLocale('uk', {
          months: {
            format: 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split('_'),
            standalone: 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split('_')
          },
          monthsShort: 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split('_'),
          weekdays: weekdaysCaseReplace,
          weekdaysShort: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
          weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'D MMMM YYYY р.',
            LLL: 'D MMMM YYYY р., HH:mm',
            LLLL: 'dddd, D MMMM YYYY р., HH:mm'
          },
          calendar: {
            sameDay: processHoursFunction('[Сьогодні '),
            nextDay: processHoursFunction('[Завтра '),
            lastDay: processHoursFunction('[Вчора '),
            nextWeek: processHoursFunction('[У] dddd ['),
            lastWeek: function lastWeek() {
              switch (this.day()) {
                case 0:
                case 3:
                case 5:
                case 6:
                  return processHoursFunction('[Минулої] dddd [').call(this);

                case 1:
                case 2:
                case 4:
                  return processHoursFunction('[Минулого] dddd [').call(this);
              }
            },
            sameElse: 'L'
          },
          relativeTime: {
            future: 'за %s',
            past: '%s тому',
            s: 'декілька секунд',
            ss: relativeTimeWithPlural,
            m: relativeTimeWithPlural,
            mm: relativeTimeWithPlural,
            h: 'годину',
            hh: relativeTimeWithPlural,
            d: 'день',
            dd: relativeTimeWithPlural,
            M: 'місяць',
            MM: relativeTimeWithPlural,
            y: 'рік',
            yy: relativeTimeWithPlural
          },
          // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason
          meridiemParse: /ночі|ранку|дня|вечора/,
          isPM: function isPM(input) {
            return /^(дня|вечора)$/.test(input);
          },
          meridiem: function meridiem(hour, minute, isLower) {
            if (hour < 4) {
              return 'ночі';
            } else if (hour < 12) {
              return 'ранку';
            } else if (hour < 17) {
              return 'дня';
            } else {
              return 'вечора';
            }
          },
          dayOfMonthOrdinalParse: /\d{1,2}-(й|го)/,
          ordinal: function ordinal(number, period) {
            switch (period) {
              case 'M':
              case 'd':
              case 'DDD':
              case 'w':
              case 'W':
                return number + '-й';

              case 'D':
                return number + '-го';

              default:
                return number;
            }
          },
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 7 // The week that contains Jan 7th is the first week of the year.

          }
        });
        return uk;
      });
      /***/

    },

    /***/
    "s+uk": function sUk(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : German (Austria) [de-at]
      //! author : lluchs : https://github.com/lluchs
      //! author: Menelion Elensúle: https://github.com/Oire
      //! author : Martin Groller : https://github.com/MadMG
      //! author : Mikolaj Dadela : https://github.com/mik01aj
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        function processRelativeTime(number, withoutSuffix, key, isFuture) {
          var format = {
            m: ['eine Minute', 'einer Minute'],
            h: ['eine Stunde', 'einer Stunde'],
            d: ['ein Tag', 'einem Tag'],
            dd: [number + ' Tage', number + ' Tagen'],
            w: ['eine Woche', 'einer Woche'],
            M: ['ein Monat', 'einem Monat'],
            MM: [number + ' Monate', number + ' Monaten'],
            y: ['ein Jahr', 'einem Jahr'],
            yy: [number + ' Jahre', number + ' Jahren']
          };
          return withoutSuffix ? format[key][0] : format[key][1];
        }

        var deAt = moment.defineLocale('de-at', {
          months: 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
          monthsShort: 'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
          monthsParseExact: true,
          weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
          weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
          weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
          weekdaysParseExact: true,
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'D. MMMM YYYY',
            LLL: 'D. MMMM YYYY HH:mm',
            LLLL: 'dddd, D. MMMM YYYY HH:mm'
          },
          calendar: {
            sameDay: '[heute um] LT [Uhr]',
            sameElse: 'L',
            nextDay: '[morgen um] LT [Uhr]',
            nextWeek: 'dddd [um] LT [Uhr]',
            lastDay: '[gestern um] LT [Uhr]',
            lastWeek: '[letzten] dddd [um] LT [Uhr]'
          },
          relativeTime: {
            future: 'in %s',
            past: 'vor %s',
            s: 'ein paar Sekunden',
            ss: '%d Sekunden',
            m: processRelativeTime,
            mm: '%d Minuten',
            h: processRelativeTime,
            hh: '%d Stunden',
            d: processRelativeTime,
            dd: processRelativeTime,
            w: processRelativeTime,
            ww: '%d Wochen',
            M: processRelativeTime,
            MM: processRelativeTime,
            y: processRelativeTime,
            yy: processRelativeTime
          },
          dayOfMonthOrdinalParse: /\d{1,2}\./,
          ordinal: '%d.',
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return deAt;
      });
      /***/

    },

    /***/
    "s+wp": function sWp(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return isSameMinute;
      });
      /* harmony import */


      var _startOfMinute_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../startOfMinute/index.js */
      "0LOL");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name isSameMinute
       * @category Minute Helpers
       * @summary Are the given dates in the same minute?
       *
       * @description
       * Are the given dates in the same minute?
       *
       * ### 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 {Date|Number} dateLeft - the first date to check
       * @param {Date|Number} dateRight - the second date to check
       * @returns {Boolean} the dates are in the same minute
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // Are 4 September 2014 06:30:00 and 4 September 2014 06:30:15
       * // in the same minute?
       * var result = isSameMinute(
       *   new Date(2014, 8, 4, 6, 30),
       *   new Date(2014, 8, 4, 6, 30, 15)
       * )
       * //=> true
       */


      function isSameMinute(dirtyDateLeft, dirtyDateRight) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(2, arguments);
        var dateLeftStartOfMinute = Object(_startOfMinute_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateLeft);
        var dateRightStartOfMinute = Object(_startOfMinute_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateRight);
        return dateLeftStartOfMinute.getTime() === dateRightStartOfMinute.getTime();
      }
      /***/

    },

    /***/
    "s2lA": function s2lA(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "STATUS", function () {
        return STATUS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "STATUS_CODE_INFO", function () {
        return STATUS_CODE_INFO;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "getStatusText", function () {
        return getStatusText;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "isSuccess", function () {
        return isSuccess;
      });

      var STATUS = {
        CONTINUE: 100,
        SWITCHING_PROTOCOLS: 101,
        OK: 200,
        CREATED: 201,
        ACCEPTED: 202,
        NON_AUTHORITATIVE_INFORMATION: 203,
        NO_CONTENT: 204,
        RESET_CONTENT: 205,
        PARTIAL_CONTENT: 206,
        MULTIPLE_CHOICES: 300,
        MOVED_PERMANTENTLY: 301,
        FOUND: 302,
        SEE_OTHER: 303,
        NOT_MODIFIED: 304,
        USE_PROXY: 305,
        TEMPORARY_REDIRECT: 307,
        BAD_REQUEST: 400,
        UNAUTHORIZED: 401,
        PAYMENT_REQUIRED: 402,
        FORBIDDEN: 403,
        NOT_FOUND: 404,
        METHOD_NOT_ALLOWED: 405,
        NOT_ACCEPTABLE: 406,
        PROXY_AUTHENTICATION_REQUIRED: 407,
        REQUEST_TIMEOUT: 408,
        CONFLICT: 409,
        GONE: 410,
        LENGTH_REQUIRED: 411,
        PRECONDITION_FAILED: 412,
        PAYLOAD_TO_LARGE: 413,
        URI_TOO_LONG: 414,
        UNSUPPORTED_MEDIA_TYPE: 415,
        RANGE_NOT_SATISFIABLE: 416,
        EXPECTATION_FAILED: 417,
        IM_A_TEAPOT: 418,
        UPGRADE_REQUIRED: 426,
        INTERNAL_SERVER_ERROR: 500,
        NOT_IMPLEMENTED: 501,
        BAD_GATEWAY: 502,
        SERVICE_UNAVAILABLE: 503,
        GATEWAY_TIMEOUT: 504,
        HTTP_VERSION_NOT_SUPPORTED: 505,
        PROCESSING: 102,
        MULTI_STATUS: 207,
        IM_USED: 226,
        PERMANENT_REDIRECT: 308,
        UNPROCESSABLE_ENTRY: 422,
        LOCKED: 423,
        FAILED_DEPENDENCY: 424,
        PRECONDITION_REQUIRED: 428,
        TOO_MANY_REQUESTS: 429,
        REQUEST_HEADER_FIELDS_TOO_LARGE: 431,
        UNAVAILABLE_FOR_LEGAL_REASONS: 451,
        VARIANT_ALSO_NEGOTIATES: 506,
        INSUFFICIENT_STORAGE: 507,
        NETWORK_AUTHENTICATION_REQUIRED: 511
      };
      /*tslint:disable:quotemark max-line-length one-line */

      var STATUS_CODE_INFO = {
        '100': {
          'code': 100,
          'text': 'Continue',
          'description': '\"The initial part of a request has been received and has not yet been rejected by the server.\"',
          'spec_title': 'RFC7231#6.2.1',
          'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.2.1'
        },
        '101': {
          'code': 101,
          'text': 'Switching Protocols',
          'description': '\"The server understands and is willing to comply with the client\'s request, via the Upgrade header field, for a change in the application protocol being used on this connection.\"',
          'spec_title': 'RFC7231#6.2.2',
          'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.2.2'
        },
        '200': {
          'code': 200,
          'text': 'OK',
          'description': '\"The request has succeeded.\"',
          'spec_title': 'RFC7231#6.3.1',
          'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.3.1'
        },
        '201': {
          'code': 201,
          'text': 'Created',
          'description': '\"The request has been fulfilled and has resulted in one or more new resources being created.\"',
          'spec_title': 'RFC7231#6.3.2',
          'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.3.2'
        },
        '202': {
          'code': 202,
          'text': 'Accepted',
          'description': '\"The request has been accepted for processing, but the processing has not been completed.\"',
          'spec_title': 'RFC7231#6.3.3',
          'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.3.3'
        },
        '203': {
          'code': 203,
          'text': 'Non-Authoritative Information',
          'description': '\"The request was successful but the enclosed payload has been modified from that of the origin server\'s 200 (OK) response by a transforming proxy.\"',
          'spec_title': 'RFC7231#6.3.4',
          'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.3.4'
        },
        '204': {
          'code': 204,
          'text': 'No Content',
          'description': '\"The server has successfully fulfilled the request and that there is no additional content to send in the response payload body.\"',
          'spec_title': 'RFC7231#6.3.5',
          'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.3.5'
        },
        '205': {
          'code': 205,
          'text': 'Reset Content',
          'description': '\"The server has fulfilled the request and desires that the user agent reset the \"document view\", which caused the request to be sent, to its original state as received from the origin server.\"',
          'spec_title': 'RFC7231#6.3.6',
          'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.3.6'
        },
        '206': {
          'code': 206,
          'text': 'Partial Content',
          'description': '\"The server is successfully fulfilling a range request for the target resource by transferring one or more parts of the selected representation that correspond to the satisfiable ranges found in the requests\'s Range header field.\"',
          'spec_title': 'RFC7233#4.1',
          'spec_href': 'http://tools.ietf.org/html/rfc7233#section-4.1'
        },
        '300': {
          'code': 300,
          'text': 'Multiple Choices',
          'description': '\"The target resource has more than one representation, each with its own more specific identifier, and information about the alternatives is being provided so that the user (or user agent) can select a preferred representation by redirecting its request to one or more of those identifiers.\"',
          'spec_title': 'RFC7231#6.4.1',
          'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.4.1'
        },
        '301': {
          'code': 301,
          'text': 'Moved Permanently',
          'description': '\"The target resource has been assigned a new permanent URI and any future references to this resource ought to use one of the enclosed URIs.\"',
          'spec_title': 'RFC7231#6.4.2',
          'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.4.2'
        },
        '302': {
          'code': 302,
          'text': 'Found',
          'description': '\"The target resource resides temporarily under a different URI.\"',
          'spec_title': 'RFC7231#6.4.3',
          'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.4.3'
        },
        '303': {
          'code': 303,
          'text': 'See Other',
          'description': '\"The server is redirecting the user agent to a different resource, as indicated by a URI in the Location header field, that is intended to provide an indirect response to the original request.\"',
          'spec_title': 'RFC7231#6.4.4',
          'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.4.4'
        },
        '304': {
          'code': 304,
          'text': 'Not Modified',
          'description': '\"A conditional GET request has been received and would have resulted in a 200 (OK) response if it were not for the fact that the condition has evaluated to false.\"',
          'spec_title': 'RFC7232#4.1',
          'spec_href': 'http://tools.ietf.org/html/rfc7232#section-4.1'
        },
        '305': {
          'code': 305,
          'text': 'Use Proxy',
          'description': '*deprecated*',
          'spec_title': 'RFC7231#6.4.5',
          'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.4.5'
        },
        '307': {
          'code': 307,
          'text': 'Temporary Redirect',
          'description': '\"The target resource resides temporarily under a different URI and the user agent MUST NOT change the request method if it performs an automatic redirection to that URI.\"',
          'spec_title': 'RFC7231#6.4.7',
          'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.4.7'
        },
        '400': {
          'code': 400,
          'text': 'Bad Request',
          'description': '\"The server cannot or will not process the request because the received syntax is invalid, nonsensical, or exceeds some limitation on what the server is willing to process.\"',
          'spec_title': 'RFC7231#6.5.1',
          'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.1'
        },
        '401': {
          'code': 401,
          'text': 'Unauthorized',
          'description': '\"The request has not been applied because it lacks valid authentication credentials for the target resource.\"',
          'spec_title': 'RFC7235#6.3.1',
          'spec_href': 'http://tools.ietf.org/html/rfc7235#section-3.1'
        },
        '402': {
          'code': 402,
          'text': 'Payment Required',
          'description': '*reserved*',
          'spec_title': 'RFC7231#6.5.2',
          'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.2'
        },
        '403': {
          'code': 403,
          'text': 'Forbidden',
          'description': '\"The server understood the request but refuses to authorize it.\"',
          'spec_title': 'RFC7231#6.5.3',
          'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.3'
        },
        '404': {
          'code': 404,
          'text': 'Not Found',
          'description': '\"The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.\"',
          'spec_title': 'RFC7231#6.5.4',
          'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.4'
        },
        '405': {
          'code': 405,
          'text': 'Method Not Allowed',
          'description': '\"The method specified in the request-line is known by the origin server but not supported by the target resource.\"',
          'spec_title': 'RFC7231#6.5.5',
          'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.5'
        },
        '406': {
          'code': 406,
          'text': 'Not Acceptable',
          'description': '\"The target resource does not have a current representation that would be acceptable to the user agent, according to the proactive negotiation header fields received in the request, and the server is unwilling to supply a default representation.\"',
          'spec_title': 'RFC7231#6.5.6',
          'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.6'
        },
        '407': {
          'code': 407,
          'text': 'Proxy Authentication Required',
          'description': '\"The client needs to authenticate itself in order to use a proxy.\"',
          'spec_title': 'RFC7231#6.3.2',
          'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.3.2'
        },
        '408': {
          'code': 408,
          'text': 'Request Timeout',
          'description': '\"The server did not receive a complete request message within the time that it was prepared to wait.\"',
          'spec_title': 'RFC7231#6.5.7',
          'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.7'
        },
        '409': {
          'code': 409,
          'text': 'Conflict',
          'description': '\"The request could not be completed due to a conflict with the current state of the resource.\"',
          'spec_title': 'RFC7231#6.5.8',
          'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.8'
        },
        '410': {
          'code': 410,
          'text': 'Gone',
          'description': '\"Access to the target resource is no longer available at the origin server and that this condition is likely to be permanent.\"',
          'spec_title': 'RFC7231#6.5.9',
          'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.9'
        },
        '411': {
          'code': 411,
          'text': 'Length Required',
          'description': '\"The server refuses to accept the request without a defined Content-Length.\"',
          'spec_title': 'RFC7231#6.5.10',
          'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.10'
        },
        '412': {
          'code': 412,
          'text': 'Precondition Failed',
          'description': '\"One or more preconditions given in the request header fields evaluated to false when tested on the server.\"',
          'spec_title': 'RFC7232#4.2',
          'spec_href': 'http://tools.ietf.org/html/rfc7232#section-4.2'
        },
        '413': {
          'code': 413,
          'text': 'Payload Too Large',
          'description': '\"The server is refusing to process a request because the request payload is larger than the server is willing or able to process.\"',
          'spec_title': 'RFC7231#6.5.11',
          'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.11'
        },
        '414': {
          'code': 414,
          'text': 'URI Too Long',
          'description': '\"The server is refusing to service the request because the request-target is longer than the server is willing to interpret.\"',
          'spec_title': 'RFC7231#6.5.12',
          'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.12'
        },
        '415': {
          'code': 415,
          'text': 'Unsupported Media Type',
          'description': '\"The origin server is refusing to service the request because the payload is in a format not supported by the target resource for this method.\"',
          'spec_title': 'RFC7231#6.5.13',
          'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.13'
        },
        '416': {
          'code': 416,
          'text': 'Range Not Satisfiable',
          'description': '\"None of the ranges in the request\'s Range header field overlap the current extent of the selected resource or that the set of ranges requested has been rejected due to invalid ranges or an excessive request of small or overlapping ranges.\"',
          'spec_title': 'RFC7233#4.4',
          'spec_href': 'http://tools.ietf.org/html/rfc7233#section-4.4'
        },
        '417': {
          'code': 417,
          'text': 'Expectation Failed',
          'description': '\"The expectation given in the request\'s Expect header field could not be met by at least one of the inbound servers.\"',
          'spec_title': 'RFC7231#6.5.14',
          'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.14'
        },
        '418': {
          'code': 418,
          'text': 'I\'m a teapot',
          'description': '\"1988 April Fools Joke. Returned by tea pots requested to brew coffee.\"',
          'spec_title': 'RFC 2324',
          'spec_href': 'https://tools.ietf.org/html/rfc2324'
        },
        '426': {
          'code': 426,
          'text': 'Upgrade Required',
          'description': '\"The server refuses to perform the request using the current protocol but might be willing to do so after the client upgrades to a different protocol.\"',
          'spec_title': 'RFC7231#6.5.15',
          'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.5.15'
        },
        '500': {
          'code': 500,
          'text': 'Internal Server Error',
          'description': '\"The server encountered an unexpected condition that prevented it from fulfilling the request.\"',
          'spec_title': 'RFC7231#6.6.1',
          'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.6.1'
        },
        '501': {
          'code': 501,
          'text': 'Not Implemented',
          'description': '\"The server does not support the functionality required to fulfill the request.\"',
          'spec_title': 'RFC7231#6.6.2',
          'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.6.2'
        },
        '502': {
          'code': 502,
          'text': 'Bad Gateway',
          'description': '\"The server, while acting as a gateway or proxy, received an invalid response from an inbound server it accessed while attempting to fulfill the request.\"',
          'spec_title': 'RFC7231#6.6.3',
          'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.6.3'
        },
        '503': {
          'code': 503,
          'text': 'Service Unavailable',
          'description': '\"The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, which will likely be alleviated after some delay.\"',
          'spec_title': 'RFC7231#6.6.4',
          'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.6.4'
        },
        '504': {
          'code': 504,
          'text': 'Gateway Time-out',
          'description': '\"The server, while acting as a gateway or proxy, did not receive a timely response from an upstream server it needed to access in order to complete the request.\"',
          'spec_title': 'RFC7231#6.6.5',
          'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.6.5'
        },
        '505': {
          'code': 505,
          'text': 'HTTP Version Not Supported',
          'description': '\"The server does not support, or refuses to support, the protocol version that was used in the request message.\"',
          'spec_title': 'RFC7231#6.6.6',
          'spec_href': 'http://tools.ietf.org/html/rfc7231#section-6.6.6'
        },
        '102': {
          'code': 102,
          'text': 'Processing',
          'description': '\"An interim response to inform the client that the server has accepted the complete request, but has not yet completed it.\"',
          'spec_title': 'RFC5218#10.1',
          'spec_href': 'http://tools.ietf.org/html/rfc2518#section-10.1'
        },
        '207': {
          'code': 207,
          'text': 'Multi-Status',
          'description': '\"Status for multiple independent operations.\"',
          'spec_title': 'RFC5218#10.2',
          'spec_href': 'http://tools.ietf.org/html/rfc2518#section-10.2'
        },
        '226': {
          'code': 226,
          'text': 'IM Used',
          'description': '\"The server has fulfilled a GET request for the resource, and the response is a representation of the result of one or more instance-manipulations applied to the current instance.\"',
          'spec_title': 'RFC3229#10.4.1',
          'spec_href': 'http://tools.ietf.org/html/rfc3229#section-10.4.1'
        },
        '308': {
          'code': 308,
          'text': 'Permanent Redirect',
          'description': '\"The target resource has been assigned a new permanent URI and any future references to this resource SHOULD use one of the returned URIs. [...] This status code is similar to 301 Moved Permanently (Section 7.3.2 of rfc7231), except that it does not allow rewriting the request method from POST to GET.\"',
          'spec_title': 'RFC7238',
          'spec_href': 'http://tools.ietf.org/html/rfc7238'
        },
        '422': {
          'code': 422,
          'text': 'Unprocessable Entity',
          'description': '\"The server understands the content type of the request entity (hence a 415(Unsupported Media Type) status code is inappropriate), and the syntax of the request entity is correct (thus a 400 (Bad Request) status code is inappropriate) but was unable to process the contained instructions.\"',
          'spec_title': 'RFC5218#10.3',
          'spec_href': 'http://tools.ietf.org/html/rfc2518#section-10.3'
        },
        '423': {
          'code': 423,
          'text': 'Locked',
          'description': '\"The source or destination resource of a method is locked.\"',
          'spec_title': 'RFC5218#10.4',
          'spec_href': 'http://tools.ietf.org/html/rfc2518#section-10.4'
        },
        '424': {
          'code': 424,
          'text': 'Failed Dependency',
          'description': '\"The method could not be performed on the resource because the requested action depended on another action and that action failed.\"',
          'spec_title': 'RFC5218#10.5',
          'spec_href': 'http://tools.ietf.org/html/rfc2518#section-10.5'
        },
        '428': {
          'code': 428,
          'text': 'Precondition Required',
          'description': '\"The origin server requires the request to be conditional.\"',
          'spec_title': 'RFC6585#3',
          'spec_href': 'http://tools.ietf.org/html/rfc6585#section-3'
        },
        '429': {
          'code': 429,
          'text': 'Too Many Requests',
          'description': '\"The user has sent too many requests in a given amount of time (\"rate limiting\").\"',
          'spec_title': 'RFC6585#4',
          'spec_href': 'http://tools.ietf.org/html/rfc6585#section-4'
        },
        '431': {
          'code': 431,
          'text': 'Request Header Fields Too Large',
          'description': '\"The server is unwilling to process the request because its header fields are too large.\"',
          'spec_title': 'RFC6585#5',
          'spec_href': 'http://tools.ietf.org/html/rfc6585#section-5'
        },
        '451': {
          'code': 451,
          'text': 'Unavailable For Legal Reasons',
          'description': '\"The server is denying access to the resource in response to a legal demand.\"',
          'spec_title': 'draft-ietf-httpbis-legally-restricted-status',
          'spec_href': 'http://tools.ietf.org/html/draft-ietf-httpbis-legally-restricted-status'
        },
        '506': {
          'code': 506,
          'text': 'Variant Also Negotiates',
          'description': '\"The server has an internal configuration error: the chosen variant resource is configured to engage in transparent content negotiation itself, and is therefore not a proper end point in the negotiation process.\"',
          'spec_title': 'RFC2295#8.1',
          'spec_href': 'http://tools.ietf.org/html/rfc2295#section-8.1'
        },
        '507': {
          'code': 507,
          'text': 'Insufficient Storage',
          'description': '\The method could not be performed on the resource because the server is unable to store the representation needed to successfully complete the request.\"',
          'spec_title': 'RFC5218#10.6',
          'spec_href': 'http://tools.ietf.org/html/rfc2518#section-10.6'
        },
        '511': {
          'code': 511,
          'text': 'Network Authentication Required',
          'description': '\"The client needs to authenticate to gain network access.\"',
          'spec_title': 'RFC6585#6',
          'spec_href': 'http://tools.ietf.org/html/rfc6585#section-6'
        }
      };
      /**
       * get the status text from StatusCode
       */

      function getStatusText(status) {
        return STATUS_CODE_INFO[status].text || 'Unknown Status';
      }
      /**
       * Returns true if the the Http Status Code is 200-299 (success)
       */


      function isSuccess(status) {
        return status >= 200 && status < 300;
      }

      ; //# sourceMappingURL=http-status-codes.js.map

      /***/
    },

    /***/
    "s7LF": function s7LF(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "AbstractControl", function () {
        return AbstractControl;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "AbstractControlDirective", function () {
        return AbstractControlDirective;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "AbstractFormGroupDirective", function () {
        return AbstractFormGroupDirective;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "COMPOSITION_BUFFER_MODE", function () {
        return COMPOSITION_BUFFER_MODE;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CheckboxControlValueAccessor", function () {
        return CheckboxControlValueAccessor;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CheckboxRequiredValidator", function () {
        return CheckboxRequiredValidator;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ControlContainer", function () {
        return ControlContainer;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "DefaultValueAccessor", function () {
        return DefaultValueAccessor;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "EmailValidator", function () {
        return EmailValidator;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "FormArray", function () {
        return FormArray;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "FormArrayName", function () {
        return FormArrayName;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "FormBuilder", function () {
        return FormBuilder;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "FormControl", function () {
        return FormControl;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "FormControlDirective", function () {
        return FormControlDirective;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "FormControlName", function () {
        return FormControlName;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "FormGroup", function () {
        return FormGroup;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "FormGroupDirective", function () {
        return FormGroupDirective;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "FormGroupName", function () {
        return FormGroupName;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "FormsModule", function () {
        return FormsModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MaxLengthValidator", function () {
        return MaxLengthValidator;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MinLengthValidator", function () {
        return MinLengthValidator;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NG_ASYNC_VALIDATORS", function () {
        return NG_ASYNC_VALIDATORS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NG_VALIDATORS", function () {
        return NG_VALIDATORS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NG_VALUE_ACCESSOR", function () {
        return NG_VALUE_ACCESSOR;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NgControl", function () {
        return NgControl;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NgControlStatus", function () {
        return NgControlStatus;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NgControlStatusGroup", function () {
        return NgControlStatusGroup;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NgForm", function () {
        return NgForm;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NgModel", function () {
        return NgModel;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NgModelGroup", function () {
        return NgModelGroup;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NgSelectOption", function () {
        return NgSelectOption;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "NumberValueAccessor", function () {
        return NumberValueAccessor;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "PatternValidator", function () {
        return PatternValidator;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "RadioControlValueAccessor", function () {
        return RadioControlValueAccessor;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "RangeValueAccessor", function () {
        return RangeValueAccessor;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ReactiveFormsModule", function () {
        return ReactiveFormsModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "RequiredValidator", function () {
        return RequiredValidator;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "SelectControlValueAccessor", function () {
        return SelectControlValueAccessor;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "SelectMultipleControlValueAccessor", function () {
        return SelectMultipleControlValueAccessor;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "VERSION", function () {
        return VERSION;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "Validators", function () {
        return Validators;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵInternalFormsSharedModule", function () {
        return ɵInternalFormsSharedModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵNgNoValidate", function () {
        return ɵNgNoValidate;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵNgSelectMultipleOption", function () {
        return ɵNgSelectMultipleOption;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_a", function () {
        return SHARED_FORM_DIRECTIVES;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_b", function () {
        return TEMPLATE_DRIVEN_DIRECTIVES;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_ba", function () {
        return CHECKBOX_REQUIRED_VALIDATOR;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_bb", function () {
        return EMAIL_VALIDATOR;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_bc", function () {
        return MIN_LENGTH_VALIDATOR;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_bd", function () {
        return MAX_LENGTH_VALIDATOR;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_be", function () {
        return PATTERN_VALIDATOR;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_c", function () {
        return REACTIVE_DRIVEN_DIRECTIVES;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_d", function () {
        return ɵInternalFormsSharedModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_e", function () {
        return CHECKBOX_VALUE_ACCESSOR;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_f", function () {
        return DEFAULT_VALUE_ACCESSOR;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_g", function () {
        return AbstractControlStatus;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_h", function () {
        return ngControlStatusHost;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_i", function () {
        return formDirectiveProvider;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_j", function () {
        return formControlBinding;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_k", function () {
        return modelGroupProvider;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_l", function () {
        return NUMBER_VALUE_ACCESSOR;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_m", function () {
        return RADIO_VALUE_ACCESSOR;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_n", function () {
        return RadioControlRegistry;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_o", function () {
        return RANGE_VALUE_ACCESSOR;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_p", function () {
        return NG_MODEL_WITH_FORM_CONTROL_WARNING;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_q", function () {
        return formControlBinding$1;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_r", function () {
        return controlNameBinding;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_s", function () {
        return formDirectiveProvider$1;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_t", function () {
        return formGroupNameProvider;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_u", function () {
        return formArrayNameProvider;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_v", function () {
        return SELECT_VALUE_ACCESSOR;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_w", function () {
        return SELECT_MULTIPLE_VALUE_ACCESSOR;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_x", function () {
        return ɵNgSelectMultipleOption;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_y", function () {
        return ɵNgNoValidate;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_z", function () {
        return REQUIRED_VALIDATOR;
      });
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /* harmony import */


      var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/common */
      "SVse");
      /* harmony import */


      var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! rxjs */
      "qCKp");
      /* harmony import */


      var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! rxjs/operators */
      "kU1M");
      /**
       * @license Angular v11.0.0
       * (c) 2010-2020 Google LLC. https://angular.io/
       * License: MIT
       */

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Used to provide a `ControlValueAccessor` for form controls.
       *
       * See `DefaultValueAccessor` for how to implement one.
       *
       * @publicApi
       */


      var NG_VALUE_ACCESSOR = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('NgValueAccessor');
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      var CHECKBOX_VALUE_ACCESSOR = {
        provide: NG_VALUE_ACCESSOR,
        useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(function () {
          return CheckboxControlValueAccessor;
        }),
        multi: true
      };
      /**
       * @description
       * A `ControlValueAccessor` for writing a value and listening to changes on a checkbox input
       * element.
       *
       * @usageNotes
       *
       * ### Using a checkbox with a reactive form.
       *
       * The following example shows how to use a checkbox with a reactive form.
       *
       * ```ts
       * const rememberLoginControl = new FormControl();
       * ```
       *
       * ```
       * <input type="checkbox" [formControl]="rememberLoginControl">
       * ```
       *
       * @ngModule ReactiveFormsModule
       * @ngModule FormsModule
       * @publicApi
       */

      var CheckboxControlValueAccessor = /*#__PURE__*/function () {
        function CheckboxControlValueAccessor(_renderer, _elementRef) {
          _classCallCheck2(this, CheckboxControlValueAccessor);

          this._renderer = _renderer;
          this._elementRef = _elementRef;
          /**
           * The registered callback function called when a change event occurs on the input element.
           * @nodoc
           */

          this.onChange = function (_) {};
          /**
           * The registered callback function called when a blur event occurs on the input element.
           * @nodoc
           */


          this.onTouched = function () {};
        }
        /**
         * Sets the "checked" property on the input element.
         * @nodoc
         */


        _createClass2(CheckboxControlValueAccessor, [{
          key: "writeValue",
          value: function writeValue(value) {
            this._renderer.setProperty(this._elementRef.nativeElement, 'checked', value);
          }
          /**
           * Registers a function called when the control value changes.
           * @nodoc
           */

        }, {
          key: "registerOnChange",
          value: function registerOnChange(fn) {
            this.onChange = fn;
          }
          /**
           * Registers a function called when the control is touched.
           * @nodoc
           */

        }, {
          key: "registerOnTouched",
          value: function registerOnTouched(fn) {
            this.onTouched = fn;
          }
          /**
           * Sets the "disabled" property on the input element.
           * @nodoc
           */

        }, {
          key: "setDisabledState",
          value: function setDisabledState(isDisabled) {
            this._renderer.setProperty(this._elementRef.nativeElement, 'disabled', isDisabled);
          }
        }]);

        return CheckboxControlValueAccessor;
      }();

      CheckboxControlValueAccessor.ɵfac = function CheckboxControlValueAccessor_Factory(t) {
        return new (t || CheckboxControlValueAccessor)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]));
      };

      CheckboxControlValueAccessor.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: CheckboxControlValueAccessor,
        selectors: [["input", "type", "checkbox", "formControlName", ""], ["input", "type", "checkbox", "formControl", ""], ["input", "type", "checkbox", "ngModel", ""]],
        hostBindings: function CheckboxControlValueAccessor_HostBindings(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function CheckboxControlValueAccessor_change_HostBindingHandler($event) {
              return ctx.onChange($event.target.checked);
            })("blur", function CheckboxControlValueAccessor_blur_HostBindingHandler() {
              return ctx.onTouched();
            });
          }
        },
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([CHECKBOX_VALUE_ACCESSOR])]
      });

      CheckboxControlValueAccessor.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](CheckboxControlValueAccessor, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
          args: [{
            selector: 'input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]',
            host: {
              '(change)': 'onChange($event.target.checked)',
              '(blur)': 'onTouched()'
            },
            providers: [CHECKBOX_VALUE_ACCESSOR]
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
          }];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var DEFAULT_VALUE_ACCESSOR = {
        provide: NG_VALUE_ACCESSOR,
        useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(function () {
          return DefaultValueAccessor;
        }),
        multi: true
      };
      /**
       * We must check whether the agent is Android because composition events
       * behave differently between iOS and Android.
       */

      function _isAndroid() {
        var userAgent = Object(_angular_common__WEBPACK_IMPORTED_MODULE_1__["ɵgetDOM"])() ? Object(_angular_common__WEBPACK_IMPORTED_MODULE_1__["ɵgetDOM"])().getUserAgent() : '';
        return /android (\d+)/.test(userAgent.toLowerCase());
      }
      /**
       * @description
       * Provide this token to control if form directives buffer IME input until
       * the "compositionend" event occurs.
       * @publicApi
       */


      var COMPOSITION_BUFFER_MODE = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('CompositionEventMode');
      /**
       * @description
       *
       * {@searchKeywords ngDefaultControl}
       *
       * The default `ControlValueAccessor` for writing a value and listening to changes on input
       * elements. The accessor is used by the `FormControlDirective`, `FormControlName`, and
       * `NgModel` directives.
       *
       * @usageNotes
       *
       * ### Using the default value accessor
       *
       * The following example shows how to use an input element that activates the default value accessor
       * (in this case, a text field).
       *
       * ```ts
       * const firstNameControl = new FormControl();
       * ```
       *
       * ```
       * <input type="text" [formControl]="firstNameControl">
       * ```
       *
       * This value accessor is used by default for `<input type="text">` and `<textarea>` elements, but
       * you could also use it for custom components that have similar behavior and do not require special
       * processing. In order to attach the default value accessor to a custom element, add the
       * `ngDefaultControl` attribute as shown below.
       *
       * ```
       * <custom-input-component ngDefaultControl [(ngModel)]="value"></custom-input-component>
       * ```
       *
       * @ngModule ReactiveFormsModule
       * @ngModule FormsModule
       * @publicApi
       */

      var DefaultValueAccessor = /*#__PURE__*/function () {
        function DefaultValueAccessor(_renderer, _elementRef, _compositionMode) {
          _classCallCheck2(this, DefaultValueAccessor);

          this._renderer = _renderer;
          this._elementRef = _elementRef;
          this._compositionMode = _compositionMode;
          /**
           * The registered callback function called when an input event occurs on the input element.
           * @nodoc
           */

          this.onChange = function (_) {};
          /**
           * The registered callback function called when a blur event occurs on the input element.
           * @nodoc
           */


          this.onTouched = function () {};
          /** Whether the user is creating a composition string (IME events). */


          this._composing = false;

          if (this._compositionMode == null) {
            this._compositionMode = !_isAndroid();
          }
        }
        /**
         * Sets the "value" property on the input element.
         * @nodoc
         */


        _createClass2(DefaultValueAccessor, [{
          key: "writeValue",
          value: function writeValue(value) {
            var normalizedValue = value == null ? '' : value;

            this._renderer.setProperty(this._elementRef.nativeElement, 'value', normalizedValue);
          }
          /**
           * Registers a function called when the control value changes.
           * @nodoc
           */

        }, {
          key: "registerOnChange",
          value: function registerOnChange(fn) {
            this.onChange = fn;
          }
          /**
           * Registers a function called when the control is touched.
           * @nodoc
           */

        }, {
          key: "registerOnTouched",
          value: function registerOnTouched(fn) {
            this.onTouched = fn;
          }
          /**
           * Sets the "disabled" property on the input element.
           * @nodoc
           */

        }, {
          key: "setDisabledState",
          value: function setDisabledState(isDisabled) {
            this._renderer.setProperty(this._elementRef.nativeElement, 'disabled', isDisabled);
          }
          /** @internal */

        }, {
          key: "_handleInput",
          value: function _handleInput(value) {
            if (!this._compositionMode || this._compositionMode && !this._composing) {
              this.onChange(value);
            }
          }
          /** @internal */

        }, {
          key: "_compositionStart",
          value: function _compositionStart() {
            this._composing = true;
          }
          /** @internal */

        }, {
          key: "_compositionEnd",
          value: function _compositionEnd(value) {
            this._composing = false;
            this._compositionMode && this.onChange(value);
          }
        }]);

        return DefaultValueAccessor;
      }();

      DefaultValueAccessor.ɵfac = function DefaultValueAccessor_Factory(t) {
        return new (t || DefaultValueAccessor)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](COMPOSITION_BUFFER_MODE, 8));
      };

      DefaultValueAccessor.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: DefaultValueAccessor,
        selectors: [["input", "formControlName", "", 3, "type", "checkbox"], ["textarea", "formControlName", ""], ["input", "formControl", "", 3, "type", "checkbox"], ["textarea", "formControl", ""], ["input", "ngModel", "", 3, "type", "checkbox"], ["textarea", "ngModel", ""], ["", "ngDefaultControl", ""]],
        hostBindings: function DefaultValueAccessor_HostBindings(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("input", function DefaultValueAccessor_input_HostBindingHandler($event) {
              return ctx._handleInput($event.target.value);
            })("blur", function DefaultValueAccessor_blur_HostBindingHandler() {
              return ctx.onTouched();
            })("compositionstart", function DefaultValueAccessor_compositionstart_HostBindingHandler() {
              return ctx._compositionStart();
            })("compositionend", function DefaultValueAccessor_compositionend_HostBindingHandler($event) {
              return ctx._compositionEnd($event.target.value);
            });
          }
        },
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([DEFAULT_VALUE_ACCESSOR])]
      });

      DefaultValueAccessor.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
        }, {
          type: Boolean,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [COMPOSITION_BUFFER_MODE]
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](DefaultValueAccessor, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
          args: [{
            selector: 'input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]',
            // TODO: vsavkin replace the above selector with the one below it once
            // https://github.com/angular/angular/issues/3011 is implemented
            // selector: '[ngModel],[formControl],[formControlName]',
            host: {
              '(input)': '$any(this)._handleInput($event.target.value)',
              '(blur)': 'onTouched()',
              '(compositionstart)': '$any(this)._compositionStart()',
              '(compositionend)': '$any(this)._compositionEnd($event.target.value)'
            },
            providers: [DEFAULT_VALUE_ACCESSOR]
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
          }, {
            type: Boolean,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [COMPOSITION_BUFFER_MODE]
            }]
          }];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function isEmptyInputValue(value) {
        // we don't check for string here so it also works with arrays
        return value == null || value.length === 0;
      }

      function hasValidLength(value) {
        // non-strict comparison is intentional, to check for both `null` and `undefined` values
        return value != null && typeof value.length === 'number';
      }
      /**
       * @description
       * An `InjectionToken` for registering additional synchronous validators used with
       * `AbstractControl`s.
       *
       * @see `NG_ASYNC_VALIDATORS`
       *
       * @usageNotes
       *
       * ### Providing a custom validator
       *
       * The following example registers a custom validator directive. Adding the validator to the
       * existing collection of validators requires the `multi: true` option.
       *
       * ```typescript
       * @Directive({
       *   selector: '[customValidator]',
       *   providers: [{provide: NG_VALIDATORS, useExisting: CustomValidatorDirective, multi: true}]
       * })
       * class CustomValidatorDirective implements Validator {
       *   validate(control: AbstractControl): ValidationErrors | null {
       *     return { 'custom': true };
       *   }
       * }
       * ```
       *
       * @publicApi
       */


      var NG_VALIDATORS = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('NgValidators');
      /**
       * @description
       * An `InjectionToken` for registering additional asynchronous validators used with
       * `AbstractControl`s.
       *
       * @see `NG_VALIDATORS`
       *
       * @publicApi
       */

      var NG_ASYNC_VALIDATORS = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('NgAsyncValidators');
      /**
       * A regular expression that matches valid e-mail addresses.
       *
       * At a high level, this regexp matches e-mail addresses of the format `local-part@tld`, where:
       * - `local-part` consists of one or more of the allowed characters (alphanumeric and some
       *   punctuation symbols).
       * - `local-part` cannot begin or end with a period (`.`).
       * - `local-part` cannot be longer than 64 characters.
       * - `tld` consists of one or more `labels` separated by periods (`.`). For example `localhost` or
       *   `foo.com`.
       * - A `label` consists of one or more of the allowed characters (alphanumeric, dashes (`-`) and
       *   periods (`.`)).
       * - A `label` cannot begin or end with a dash (`-`) or a period (`.`).
       * - A `label` cannot be longer than 63 characters.
       * - The whole address cannot be longer than 254 characters.
       *
       * ## Implementation background
       *
       * This regexp was ported over from AngularJS (see there for git history):
       * https://github.com/angular/angular.js/blob/c133ef836/src/ng/directive/input.js#L27
       * It is based on the
       * [WHATWG version](https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address) with
       * some enhancements to incorporate more RFC rules (such as rules related to domain names and the
       * lengths of different parts of the address). The main differences from the WHATWG version are:
       *   - Disallow `local-part` to begin or end with a period (`.`).
       *   - Disallow `local-part` length to exceed 64 characters.
       *   - Disallow total address length to exceed 254 characters.
       *
       * See [this commit](https://github.com/angular/angular.js/commit/f3f5cf72e) for more details.
       */

      var EMAIL_REGEXP = /^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;
      /**
       * @description
       * Provides a set of built-in validators that can be used by form controls.
       *
       * A validator is a function that processes a `FormControl` or collection of
       * controls and returns an error map or null. A null map means that validation has passed.
       *
       * @see [Form Validation](/guide/form-validation)
       *
       * @publicApi
       */

      var Validators = /*#__PURE__*/function () {
        function Validators() {
          _classCallCheck2(this, Validators);
        }

        _createClass2(Validators, null, [{
          key: "min",
          value:
          /**
           * @description
           * Validator that requires the control's value to be greater than or equal to the provided number.
           * The validator exists only as a function and not as a directive.
           *
           * @usageNotes
           *
           * ### Validate against a minimum of 3
           *
           * ```typescript
           * const control = new FormControl(2, Validators.min(3));
           *
           * console.log(control.errors); // {min: {min: 3, actual: 2}}
           * ```
           *
           * @returns A validator function that returns an error map with the
           * `min` property if the validation check fails, otherwise `null`.
           *
           * @see `updateValueAndValidity()`
           *
           */
          function min(_min) {
            return function (control) {
              if (isEmptyInputValue(control.value) || isEmptyInputValue(_min)) {
                return null; // don't validate empty values to allow optional controls
              }

              var value = parseFloat(control.value); // Controls with NaN values after parsing should be treated as not having a
              // minimum, per the HTML forms spec: https://www.w3.org/TR/html5/forms.html#attr-input-min

              return !isNaN(value) && value < _min ? {
                'min': {
                  'min': _min,
                  'actual': control.value
                }
              } : null;
            };
          }
          /**
           * @description
           * Validator that requires the control's value to be less than or equal to the provided number.
           * The validator exists only as a function and not as a directive.
           *
           * @usageNotes
           *
           * ### Validate against a maximum of 15
           *
           * ```typescript
           * const control = new FormControl(16, Validators.max(15));
           *
           * console.log(control.errors); // {max: {max: 15, actual: 16}}
           * ```
           *
           * @returns A validator function that returns an error map with the
           * `max` property if the validation check fails, otherwise `null`.
           *
           * @see `updateValueAndValidity()`
           *
           */

        }, {
          key: "max",
          value: function max(_max) {
            return function (control) {
              if (isEmptyInputValue(control.value) || isEmptyInputValue(_max)) {
                return null; // don't validate empty values to allow optional controls
              }

              var value = parseFloat(control.value); // Controls with NaN values after parsing should be treated as not having a
              // maximum, per the HTML forms spec: https://www.w3.org/TR/html5/forms.html#attr-input-max

              return !isNaN(value) && value > _max ? {
                'max': {
                  'max': _max,
                  'actual': control.value
                }
              } : null;
            };
          }
          /**
           * @description
           * Validator that requires the control have a non-empty value.
           *
           * @usageNotes
           *
           * ### Validate that the field is non-empty
           *
           * ```typescript
           * const control = new FormControl('', Validators.required);
           *
           * console.log(control.errors); // {required: true}
           * ```
           *
           * @returns An error map with the `required` property
           * if the validation check fails, otherwise `null`.
           *
           * @see `updateValueAndValidity()`
           *
           */

        }, {
          key: "required",
          value: function required(control) {
            return isEmptyInputValue(control.value) ? {
              'required': true
            } : null;
          }
          /**
           * @description
           * Validator that requires the control's value be true. This validator is commonly
           * used for required checkboxes.
           *
           * @usageNotes
           *
           * ### Validate that the field value is true
           *
           * ```typescript
           * const control = new FormControl('', Validators.requiredTrue);
           *
           * console.log(control.errors); // {required: true}
           * ```
           *
           * @returns An error map that contains the `required` property
           * set to `true` if the validation check fails, otherwise `null`.
           *
           * @see `updateValueAndValidity()`
           *
           */

        }, {
          key: "requiredTrue",
          value: function requiredTrue(control) {
            return control.value === true ? null : {
              'required': true
            };
          }
          /**
           * @description
           * Validator that requires the control's value pass an email validation test.
           *
           * Tests the value using a [regular
           * expression](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions)
           * pattern suitable for common usecases. The pattern is based on the definition of a valid email
           * address in the [WHATWG HTML
           * specification](https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address) with
           * some enhancements to incorporate more RFC rules (such as rules related to domain names and the
           * lengths of different parts of the address).
           *
           * The differences from the WHATWG version include:
           * - Disallow `local-part` (the part before the `@` symbol) to begin or end with a period (`.`).
           * - Disallow `local-part` to be longer than 64 characters.
           * - Disallow the whole address to be longer than 254 characters.
           *
           * If this pattern does not satisfy your business needs, you can use `Validators.pattern()` to
           * validate the value against a different pattern.
           *
           * @usageNotes
           *
           * ### Validate that the field matches a valid email pattern
           *
           * ```typescript
           * const control = new FormControl('bad@', Validators.email);
           *
           * console.log(control.errors); // {email: true}
           * ```
           *
           * @returns An error map with the `email` property
           * if the validation check fails, otherwise `null`.
           *
           * @see `updateValueAndValidity()`
           *
           */

        }, {
          key: "email",
          value: function email(control) {
            if (isEmptyInputValue(control.value)) {
              return null; // don't validate empty values to allow optional controls
            }

            return EMAIL_REGEXP.test(control.value) ? null : {
              'email': true
            };
          }
          /**
           * @description
           * Validator that requires the length of the control's value to be greater than or equal
           * to the provided minimum length. This validator is also provided by default if you use the
           * the HTML5 `minlength` attribute. Note that the `minLength` validator is intended to be used
           * only for types that have a numeric `length` property, such as strings or arrays. The
           * `minLength` validator logic is also not invoked for values when their `length` property is 0
           * (for example in case of an empty string or an empty array), to support optional controls. You
           * can use the standard `required` validator if empty values should not be considered valid.
           *
           * @usageNotes
           *
           * ### Validate that the field has a minimum of 3 characters
           *
           * ```typescript
           * const control = new FormControl('ng', Validators.minLength(3));
           *
           * console.log(control.errors); // {minlength: {requiredLength: 3, actualLength: 2}}
           * ```
           *
           * ```html
           * <input minlength="5">
           * ```
           *
           * @returns A validator function that returns an error map with the
           * `minlength` if the validation check fails, otherwise `null`.
           *
           * @see `updateValueAndValidity()`
           *
           */

        }, {
          key: "minLength",
          value: function minLength(_minLength) {
            return function (control) {
              if (isEmptyInputValue(control.value) || !hasValidLength(control.value)) {
                // don't validate empty values to allow optional controls
                // don't validate values without `length` property
                return null;
              }

              return control.value.length < _minLength ? {
                'minlength': {
                  'requiredLength': _minLength,
                  'actualLength': control.value.length
                }
              } : null;
            };
          }
          /**
           * @description
           * Validator that requires the length of the control's value to be less than or equal
           * to the provided maximum length. This validator is also provided by default if you use the
           * the HTML5 `maxlength` attribute. Note that the `maxLength` validator is intended to be used
           * only for types that have a numeric `length` property, such as strings or arrays.
           *
           * @usageNotes
           *
           * ### Validate that the field has maximum of 5 characters
           *
           * ```typescript
           * const control = new FormControl('Angular', Validators.maxLength(5));
           *
           * console.log(control.errors); // {maxlength: {requiredLength: 5, actualLength: 7}}
           * ```
           *
           * ```html
           * <input maxlength="5">
           * ```
           *
           * @returns A validator function that returns an error map with the
           * `maxlength` property if the validation check fails, otherwise `null`.
           *
           * @see `updateValueAndValidity()`
           *
           */

        }, {
          key: "maxLength",
          value: function maxLength(_maxLength) {
            return function (control) {
              return hasValidLength(control.value) && control.value.length > _maxLength ? {
                'maxlength': {
                  'requiredLength': _maxLength,
                  'actualLength': control.value.length
                }
              } : null;
            };
          }
          /**
           * @description
           * Validator that requires the control's value to match a regex pattern. This validator is also
           * provided by default if you use the HTML5 `pattern` attribute.
           *
           * @usageNotes
           *
           * ### Validate that the field only contains letters or spaces
           *
           * ```typescript
           * const control = new FormControl('1', Validators.pattern('[a-zA-Z ]*'));
           *
           * console.log(control.errors); // {pattern: {requiredPattern: '^[a-zA-Z ]*$', actualValue: '1'}}
           * ```
           *
           * ```html
           * <input pattern="[a-zA-Z ]*">
           * ```
           *
           * ### Pattern matching with the global or sticky flag
           *
           * `RegExp` objects created with the `g` or `y` flags that are passed into `Validators.pattern`
           * can produce different results on the same input when validations are run consecutively. This is
           * due to how the behavior of `RegExp.prototype.test` is
           * specified in [ECMA-262](https://tc39.es/ecma262/#sec-regexpbuiltinexec)
           * (`RegExp` preserves the index of the last match when the global or sticky flag is used).
           * Due to this behavior, it is recommended that when using
           * `Validators.pattern` you **do not** pass in a `RegExp` object with either the global or sticky
           * flag enabled.
           *
           * ```typescript
           * // Not recommended (since the `g` flag is used)
           * const controlOne = new FormControl('1', Validators.pattern(/foo/g));
           *
           * // Good
           * const controlTwo = new FormControl('1', Validators.pattern(/foo/));
           * ```
           *
           * @param pattern A regular expression to be used as is to test the values, or a string.
           * If a string is passed, the `^` character is prepended and the `$` character is
           * appended to the provided string (if not already present), and the resulting regular
           * expression is used to test the values.
           *
           * @returns A validator function that returns an error map with the
           * `pattern` property if the validation check fails, otherwise `null`.
           *
           * @see `updateValueAndValidity()`
           *
           */

        }, {
          key: "pattern",
          value: function pattern(_pattern) {
            if (!_pattern) return Validators.nullValidator;
            var regex;
            var regexStr;

            if (typeof _pattern === 'string') {
              regexStr = '';
              if (_pattern.charAt(0) !== '^') regexStr += '^';
              regexStr += _pattern;
              if (_pattern.charAt(_pattern.length - 1) !== '$') regexStr += '$';
              regex = new RegExp(regexStr);
            } else {
              regexStr = _pattern.toString();
              regex = _pattern;
            }

            return function (control) {
              if (isEmptyInputValue(control.value)) {
                return null; // don't validate empty values to allow optional controls
              }

              var value = control.value;
              return regex.test(value) ? null : {
                'pattern': {
                  'requiredPattern': regexStr,
                  'actualValue': value
                }
              };
            };
          }
          /**
           * @description
           * Validator that performs no operation.
           *
           * @see `updateValueAndValidity()`
           *
           */

        }, {
          key: "nullValidator",
          value: function nullValidator(control) {
            return null;
          }
        }, {
          key: "compose",
          value: function compose(validators) {
            if (!validators) return null;
            var presentValidators = validators.filter(isPresent);
            if (presentValidators.length == 0) return null;
            return function (control) {
              return mergeErrors(executeValidators(control, presentValidators));
            };
          }
          /**
           * @description
           * Compose multiple async validators into a single function that returns the union
           * of the individual error objects for the provided control.
           *
           * @returns A validator function that returns an error map with the
           * merged error objects of the async validators if the validation check fails, otherwise `null`.
           *
           * @see `updateValueAndValidity()`
           *
           */

        }, {
          key: "composeAsync",
          value: function composeAsync(validators) {
            if (!validators) return null;
            var presentValidators = validators.filter(isPresent);
            if (presentValidators.length == 0) return null;
            return function (control) {
              var observables = executeValidators(control, presentValidators).map(toObservable);
              return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["forkJoin"])(observables).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(mergeErrors));
            };
          }
        }]);

        return Validators;
      }();

      function isPresent(o) {
        return o != null;
      }

      function toObservable(r) {
        var obs = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵisPromise"])(r) ? Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["from"])(r) : r;

        if (!Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵisObservable"])(obs) && (typeof ngDevMode === 'undefined' || ngDevMode)) {
          throw new Error("Expected validator to return Promise or Observable.");
        }

        return obs;
      }

      function mergeErrors(arrayOfErrors) {
        var res = {}; // Not using Array.reduce here due to a Chrome 80 bug
        // https://bugs.chromium.org/p/chromium/issues/detail?id=1049982

        arrayOfErrors.forEach(function (errors) {
          res = errors != null ? Object.assign(Object.assign({}, res), errors) : res;
        });
        return Object.keys(res).length === 0 ? null : res;
      }

      function executeValidators(control, validators) {
        return validators.map(function (validator) {
          return validator(control);
        });
      }

      function isValidatorFn(validator) {
        return !validator.validate;
      }
      /**
       * Given the list of validators that may contain both functions as well as classes, return the list
       * of validator functions (convert validator classes into validator functions). This is needed to
       * have consistent structure in validators list before composing them.
       *
       * @param validators The set of validators that may contain validators both in plain function form
       *     as well as represented as a validator class.
       */


      function normalizeValidators(validators) {
        return validators.map(function (validator) {
          return isValidatorFn(validator) ? validator : function (c) {
            return validator.validate(c);
          };
        });
      }
      /**
       * Merges synchronous validators into a single validator function (combined using
       * `Validators.compose`).
       */


      function composeValidators(validators) {
        return validators != null ? Validators.compose(normalizeValidators(validators)) : null;
      }
      /**
       * Merges asynchronous validators into a single validator function (combined using
       * `Validators.composeAsync`).
       */


      function composeAsyncValidators(validators) {
        return validators != null ? Validators.composeAsync(normalizeValidators(validators)) : null;
      }
      /**
       * Merges raw control validators with a given directive validator and returns the combined list of
       * validators as an array.
       */


      function mergeValidators(controlValidators, dirValidator) {
        if (controlValidators === null) return [dirValidator];
        return Array.isArray(controlValidators) ? [].concat(_toConsumableArray(controlValidators), [dirValidator]) : [controlValidators, dirValidator];
      }
      /**
       * Retrieves the list of raw synchronous validators attached to a given control.
       */


      function getControlValidators(control) {
        return control._rawValidators;
      }
      /**
       * Retrieves the list of raw asynchronous validators attached to a given control.
       */


      function getControlAsyncValidators(control) {
        return control._rawAsyncValidators;
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @description
       * Base class for control directives.
       *
       * This class is only used internally in the `ReactiveFormsModule` and the `FormsModule`.
       *
       * @publicApi
       */


      var AbstractControlDirective = /*#__PURE__*/function () {
        function AbstractControlDirective() {
          _classCallCheck2(this, AbstractControlDirective);

          /**
           * Set of synchronous validators as they were provided while calling `setValidators` function.
           * @internal
           */
          this._rawValidators = [];
          /**
           * Set of asynchronous validators as they were provided while calling `setAsyncValidators`
           * function.
           * @internal
           */

          this._rawAsyncValidators = [];
        }
        /**
         * @description
         * Reports the value of the control if it is present, otherwise null.
         */


        _createClass2(AbstractControlDirective, [{
          key: "value",
          get: function get() {
            return this.control ? this.control.value : null;
          }
          /**
           * @description
           * Reports whether the control is valid. A control is considered valid if no
           * validation errors exist with the current value.
           * If the control is not present, null is returned.
           */

        }, {
          key: "valid",
          get: function get() {
            return this.control ? this.control.valid : null;
          }
          /**
           * @description
           * Reports whether the control is invalid, meaning that an error exists in the input value.
           * If the control is not present, null is returned.
           */

        }, {
          key: "invalid",
          get: function get() {
            return this.control ? this.control.invalid : null;
          }
          /**
           * @description
           * Reports whether a control is pending, meaning that that async validation is occurring and
           * errors are not yet available for the input value. If the control is not present, null is
           * returned.
           */

        }, {
          key: "pending",
          get: function get() {
            return this.control ? this.control.pending : null;
          }
          /**
           * @description
           * Reports whether the control is disabled, meaning that the control is disabled
           * in the UI and is exempt from validation checks and excluded from aggregate
           * values of ancestor controls. If the control is not present, null is returned.
           */

        }, {
          key: "disabled",
          get: function get() {
            return this.control ? this.control.disabled : null;
          }
          /**
           * @description
           * Reports whether the control is enabled, meaning that the control is included in ancestor
           * calculations of validity or value. If the control is not present, null is returned.
           */

        }, {
          key: "enabled",
          get: function get() {
            return this.control ? this.control.enabled : null;
          }
          /**
           * @description
           * Reports the control's validation errors. If the control is not present, null is returned.
           */

        }, {
          key: "errors",
          get: function get() {
            return this.control ? this.control.errors : null;
          }
          /**
           * @description
           * Reports whether the control is pristine, meaning that the user has not yet changed
           * the value in the UI. If the control is not present, null is returned.
           */

        }, {
          key: "pristine",
          get: function get() {
            return this.control ? this.control.pristine : null;
          }
          /**
           * @description
           * Reports whether the control is dirty, meaning that the user has changed
           * the value in the UI. If the control is not present, null is returned.
           */

        }, {
          key: "dirty",
          get: function get() {
            return this.control ? this.control.dirty : null;
          }
          /**
           * @description
           * Reports whether the control is touched, meaning that the user has triggered
           * a `blur` event on it. If the control is not present, null is returned.
           */

        }, {
          key: "touched",
          get: function get() {
            return this.control ? this.control.touched : null;
          }
          /**
           * @description
           * Reports the validation status of the control. Possible values include:
           * 'VALID', 'INVALID', 'DISABLED', and 'PENDING'.
           * If the control is not present, null is returned.
           */

        }, {
          key: "status",
          get: function get() {
            return this.control ? this.control.status : null;
          }
          /**
           * @description
           * Reports whether the control is untouched, meaning that the user has not yet triggered
           * a `blur` event on it. If the control is not present, null is returned.
           */

        }, {
          key: "untouched",
          get: function get() {
            return this.control ? this.control.untouched : null;
          }
          /**
           * @description
           * Returns a multicasting observable that emits a validation status whenever it is
           * calculated for the control. If the control is not present, null is returned.
           */

        }, {
          key: "statusChanges",
          get: function get() {
            return this.control ? this.control.statusChanges : null;
          }
          /**
           * @description
           * Returns a multicasting observable of value changes for the control that emits every time the
           * value of the control changes in the UI or programmatically.
           * If the control is not present, null is returned.
           */

        }, {
          key: "valueChanges",
          get: function get() {
            return this.control ? this.control.valueChanges : null;
          }
          /**
           * @description
           * Returns an array that represents the path from the top-level form to this control.
           * Each index is the string name of the control on that level.
           */

        }, {
          key: "path",
          get: function get() {
            return null;
          }
          /**
           * Sets synchronous validators for this directive.
           * @internal
           */

        }, {
          key: "_setValidators",
          value: function _setValidators(validators) {
            this._rawValidators = validators || [];
            this._composedValidatorFn = composeValidators(this._rawValidators);
          }
          /**
           * Sets asynchronous validators for this directive.
           * @internal
           */

        }, {
          key: "_setAsyncValidators",
          value: function _setAsyncValidators(validators) {
            this._rawAsyncValidators = validators || [];
            this._composedAsyncValidatorFn = composeAsyncValidators(this._rawAsyncValidators);
          }
          /**
           * @description
           * Synchronous validator function composed of all the synchronous validators registered with this
           * directive.
           */

        }, {
          key: "validator",
          get: function get() {
            return this._composedValidatorFn || null;
          }
          /**
           * @description
           * Asynchronous validator function composed of all the asynchronous validators registered with
           * this directive.
           */

        }, {
          key: "asyncValidator",
          get: function get() {
            return this._composedAsyncValidatorFn || null;
          }
          /**
           * @description
           * Resets the control with the provided value if the control is present.
           */

        }, {
          key: "reset",
          value: function reset() {
            var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;
            if (this.control) this.control.reset(value);
          }
          /**
           * @description
           * Reports whether the control with the given path has the error specified.
           *
           * @param errorCode The code of the error to check
           * @param path A list of control names that designates how to move from the current control
           * to the control that should be queried for errors.
           *
           * @usageNotes
           * For example, for the following `FormGroup`:
           *
           * ```
           * form = new FormGroup({
           *   address: new FormGroup({ street: new FormControl() })
           * });
           * ```
           *
           * The path to the 'street' control from the root form would be 'address' -> 'street'.
           *
           * It can be provided to this method in one of two formats:
           *
           * 1. An array of string control names, e.g. `['address', 'street']`
           * 1. A period-delimited list of control names in one string, e.g. `'address.street'`
           *
           * If no path is given, this method checks for the error on the current control.
           *
           * @returns whether the given error is present in the control at the given path.
           *
           * If the control is not present, false is returned.
           */

        }, {
          key: "hasError",
          value: function hasError(errorCode, path) {
            return this.control ? this.control.hasError(errorCode, path) : false;
          }
          /**
           * @description
           * Reports error data for the control with the given path.
           *
           * @param errorCode The code of the error to check
           * @param path A list of control names that designates how to move from the current control
           * to the control that should be queried for errors.
           *
           * @usageNotes
           * For example, for the following `FormGroup`:
           *
           * ```
           * form = new FormGroup({
           *   address: new FormGroup({ street: new FormControl() })
           * });
           * ```
           *
           * The path to the 'street' control from the root form would be 'address' -> 'street'.
           *
           * It can be provided to this method in one of two formats:
           *
           * 1. An array of string control names, e.g. `['address', 'street']`
           * 1. A period-delimited list of control names in one string, e.g. `'address.street'`
           *
           * @returns error data for that particular error. If the control or error is not present,
           * null is returned.
           */

        }, {
          key: "getError",
          value: function getError(errorCode, path) {
            return this.control ? this.control.getError(errorCode, path) : null;
          }
        }]);

        return AbstractControlDirective;
      }();

      AbstractControlDirective.ɵfac = function AbstractControlDirective_Factory(t) {
        return new (t || AbstractControlDirective)();
      };

      AbstractControlDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: AbstractControlDirective
      });
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @description
       * A base class for directives that contain multiple registered instances of `NgControl`.
       * Only used by the forms module.
       *
       * @publicApi
       */

      var ControlContainer = /*#__PURE__*/function (_AbstractControlDirec) {
        _inherits2(ControlContainer, _AbstractControlDirec);

        var _super425 = _createSuper2(ControlContainer);

        function ControlContainer() {
          _classCallCheck2(this, ControlContainer);

          return _super425.apply(this, arguments);
        }

        _createClass2(ControlContainer, [{
          key: "formDirective",
          get:
          /**
           * @description
           * The top-level form directive for the control.
           */
          function get() {
            return null;
          }
          /**
           * @description
           * The path to this group.
           */

        }, {
          key: "path",
          get: function get() {
            return null;
          }
        }]);

        return ControlContainer;
      }(AbstractControlDirective);

      ControlContainer.ɵfac = function ControlContainer_Factory(t) {
        return ɵControlContainer_BaseFactory(t || ControlContainer);
      };

      ControlContainer.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: ControlContainer,
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
      });

      var ɵControlContainer_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](ControlContainer);
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @description
       * A base class that all `FormControl`-based directives extend. It binds a `FormControl`
       * object to a DOM element.
       *
       * @publicApi
       */


      var NgControl = /*#__PURE__*/function (_AbstractControlDirec2) {
        _inherits2(NgControl, _AbstractControlDirec2);

        var _super426 = _createSuper2(NgControl);

        function NgControl() {
          var _this890;

          _classCallCheck2(this, NgControl);

          _this890 = _super426.apply(this, arguments);
          /**
           * @description
           * The parent form for the control.
           *
           * @internal
           */

          _this890._parent = null;
          /**
           * @description
           * The name for the control
           */

          _this890.name = null;
          /**
           * @description
           * The value accessor for the control
           */

          _this890.valueAccessor = null;
          return _this890;
        }

        return NgControl;
      }(AbstractControlDirective);
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var AbstractControlStatus = /*#__PURE__*/function () {
        function AbstractControlStatus(cd) {
          _classCallCheck2(this, AbstractControlStatus);

          this._cd = cd;
        }

        _createClass2(AbstractControlStatus, [{
          key: "ngClassUntouched",
          get: function get() {
            return this._cd.control ? this._cd.control.untouched : false;
          }
        }, {
          key: "ngClassTouched",
          get: function get() {
            return this._cd.control ? this._cd.control.touched : false;
          }
        }, {
          key: "ngClassPristine",
          get: function get() {
            return this._cd.control ? this._cd.control.pristine : false;
          }
        }, {
          key: "ngClassDirty",
          get: function get() {
            return this._cd.control ? this._cd.control.dirty : false;
          }
        }, {
          key: "ngClassValid",
          get: function get() {
            return this._cd.control ? this._cd.control.valid : false;
          }
        }, {
          key: "ngClassInvalid",
          get: function get() {
            return this._cd.control ? this._cd.control.invalid : false;
          }
        }, {
          key: "ngClassPending",
          get: function get() {
            return this._cd.control ? this._cd.control.pending : false;
          }
        }]);

        return AbstractControlStatus;
      }();

      var ngControlStatusHost = {
        '[class.ng-untouched]': 'ngClassUntouched',
        '[class.ng-touched]': 'ngClassTouched',
        '[class.ng-pristine]': 'ngClassPristine',
        '[class.ng-dirty]': 'ngClassDirty',
        '[class.ng-valid]': 'ngClassValid',
        '[class.ng-invalid]': 'ngClassInvalid',
        '[class.ng-pending]': 'ngClassPending'
      };
      /**
       * @description
       * Directive automatically applied to Angular form controls that sets CSS classes
       * based on control status.
       *
       * @usageNotes
       *
       * ### CSS classes applied
       *
       * The following classes are applied as the properties become true:
       *
       * * ng-valid
       * * ng-invalid
       * * ng-pending
       * * ng-pristine
       * * ng-dirty
       * * ng-untouched
       * * ng-touched
       *
       * @ngModule ReactiveFormsModule
       * @ngModule FormsModule
       * @publicApi
       */

      var NgControlStatus = /*#__PURE__*/function (_AbstractControlStatu) {
        _inherits2(NgControlStatus, _AbstractControlStatu);

        var _super427 = _createSuper2(NgControlStatus);

        function NgControlStatus(cd) {
          _classCallCheck2(this, NgControlStatus);

          return _super427.call(this, cd);
        }

        return NgControlStatus;
      }(AbstractControlStatus);

      NgControlStatus.ɵfac = function NgControlStatus_Factory(t) {
        return new (t || NgControlStatus)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgControl, 2));
      };

      NgControlStatus.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: NgControlStatus,
        selectors: [["", "formControlName", ""], ["", "ngModel", ""], ["", "formControl", ""]],
        hostVars: 14,
        hostBindings: function NgControlStatus_HostBindings(rf, ctx) {
          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("ng-untouched", ctx.ngClassUntouched)("ng-touched", ctx.ngClassTouched)("ng-pristine", ctx.ngClassPristine)("ng-dirty", ctx.ngClassDirty)("ng-valid", ctx.ngClassValid)("ng-invalid", ctx.ngClassInvalid)("ng-pending", ctx.ngClassPending);
          }
        },
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
      });

      NgControlStatus.ctorParameters = function () {
        return [{
          type: NgControl,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgControlStatus, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
          args: [{
            selector: '[formControlName],[ngModel],[formControl]',
            host: ngControlStatusHost
          }]
        }], function () {
          return [{
            type: NgControl,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
            }]
          }];
        }, null);
      })();
      /**
       * @description
       * Directive automatically applied to Angular form groups that sets CSS classes
       * based on control status (valid/invalid/dirty/etc).
       *
       * @see `NgControlStatus`
       *
       * @ngModule ReactiveFormsModule
       * @ngModule FormsModule
       * @publicApi
       */


      var NgControlStatusGroup = /*#__PURE__*/function (_AbstractControlStatu2) {
        _inherits2(NgControlStatusGroup, _AbstractControlStatu2);

        var _super428 = _createSuper2(NgControlStatusGroup);

        function NgControlStatusGroup(cd) {
          _classCallCheck2(this, NgControlStatusGroup);

          return _super428.call(this, cd);
        }

        return NgControlStatusGroup;
      }(AbstractControlStatus);

      NgControlStatusGroup.ɵfac = function NgControlStatusGroup_Factory(t) {
        return new (t || NgControlStatusGroup)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ControlContainer, 2));
      };

      NgControlStatusGroup.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: NgControlStatusGroup,
        selectors: [["", "formGroupName", ""], ["", "formArrayName", ""], ["", "ngModelGroup", ""], ["", "formGroup", ""], ["form", 3, "ngNoForm", ""], ["", "ngForm", ""]],
        hostVars: 14,
        hostBindings: function NgControlStatusGroup_HostBindings(rf, ctx) {
          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("ng-untouched", ctx.ngClassUntouched)("ng-touched", ctx.ngClassTouched)("ng-pristine", ctx.ngClassPristine)("ng-dirty", ctx.ngClassDirty)("ng-valid", ctx.ngClassValid)("ng-invalid", ctx.ngClassInvalid)("ng-pending", ctx.ngClassPending);
          }
        },
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
      });

      NgControlStatusGroup.ctorParameters = function () {
        return [{
          type: ControlContainer,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgControlStatusGroup, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
          args: [{
            selector: '[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]',
            host: ngControlStatusHost
          }]
        }], function () {
          return [{
            type: ControlContainer,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
            }]
          }];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Reports that a FormControl is valid, meaning that no errors exist in the input value.
       *
       * @see `status`
       */


      var VALID = 'VALID';
      /**
       * Reports that a FormControl is invalid, meaning that an error exists in the input value.
       *
       * @see `status`
       */

      var INVALID = 'INVALID';
      /**
       * Reports that a FormControl is pending, meaning that that async validation is occurring and
       * errors are not yet available for the input value.
       *
       * @see `markAsPending`
       * @see `status`
       */

      var PENDING = 'PENDING';
      /**
       * Reports that a FormControl is disabled, meaning that the control is exempt from ancestor
       * calculations of validity or value.
       *
       * @see `markAsDisabled`
       * @see `status`
       */

      var DISABLED = 'DISABLED';

      function _find(control, path, delimiter) {
        if (path == null) return null;

        if (!Array.isArray(path)) {
          path = path.split(delimiter);
        }

        if (Array.isArray(path) && path.length === 0) return null; // Not using Array.reduce here due to a Chrome 80 bug
        // https://bugs.chromium.org/p/chromium/issues/detail?id=1049982

        var controlToFind = control;
        path.forEach(function (name) {
          if (controlToFind instanceof FormGroup) {
            controlToFind = controlToFind.controls.hasOwnProperty(name) ? controlToFind.controls[name] : null;
          } else if (controlToFind instanceof FormArray) {
            controlToFind = controlToFind.at(name) || null;
          } else {
            controlToFind = null;
          }
        });
        return controlToFind;
      }
      /**
       * Gets validators from either an options object or given validators.
       */


      function pickValidators(validatorOrOpts) {
        return (isOptionsObj(validatorOrOpts) ? validatorOrOpts.validators : validatorOrOpts) || null;
      }
      /**
       * Creates validator function by combining provided validators.
       */


      function coerceToValidator(validator) {
        return Array.isArray(validator) ? composeValidators(validator) : validator || null;
      }
      /**
       * Gets async validators from either an options object or given validators.
       */


      function pickAsyncValidators(asyncValidator, validatorOrOpts) {
        return (isOptionsObj(validatorOrOpts) ? validatorOrOpts.asyncValidators : asyncValidator) || null;
      }
      /**
       * Creates async validator function by combining provided async validators.
       */


      function coerceToAsyncValidator(asyncValidator) {
        return Array.isArray(asyncValidator) ? composeAsyncValidators(asyncValidator) : asyncValidator || null;
      }

      function isOptionsObj(validatorOrOpts) {
        return validatorOrOpts != null && !Array.isArray(validatorOrOpts) && typeof validatorOrOpts === 'object';
      }
      /**
       * This is the base class for `FormControl`, `FormGroup`, and `FormArray`.
       *
       * It provides some of the shared behavior that all controls and groups of controls have, like
       * running validators, calculating status, and resetting state. It also defines the properties
       * that are shared between all sub-classes, like `value`, `valid`, and `dirty`. It shouldn't be
       * instantiated directly.
       *
       * @see [Forms Guide](/guide/forms)
       * @see [Reactive Forms Guide](/guide/reactive-forms)
       * @see [Dynamic Forms Guide](/guide/dynamic-form)
       *
       * @publicApi
       */


      var AbstractControl = /*#__PURE__*/function () {
        /**
         * Initialize the AbstractControl instance.
         *
         * @param validators The function or array of functions that is used to determine the validity of
         *     this control synchronously.
         * @param asyncValidators The function or array of functions that is used to determine validity of
         *     this control asynchronously.
         */
        function AbstractControl(validators, asyncValidators) {
          _classCallCheck2(this, AbstractControl);

          /**
           * Indicates that a control has its own pending asynchronous validation in progress.
           *
           * @internal
           */
          this._hasOwnPendingAsyncValidator = false;
          /** @internal */

          this._onCollectionChange = function () {};

          this._parent = null;
          /**
           * A control is `pristine` if the user has not yet changed
           * the value in the UI.
           *
           * @returns True if the user has not yet changed the value in the UI; compare `dirty`.
           * Programmatic changes to a control's value do not mark it dirty.
           */

          this.pristine = true;
          /**
           * True if the control is marked as `touched`.
           *
           * A control is marked `touched` once the user has triggered
           * a `blur` event on it.
           */

          this.touched = false;
          /** @internal */

          this._onDisabledChange = [];
          this._rawValidators = validators;
          this._rawAsyncValidators = asyncValidators;
          this._composedValidatorFn = coerceToValidator(this._rawValidators);
          this._composedAsyncValidatorFn = coerceToAsyncValidator(this._rawAsyncValidators);
        }
        /**
         * The function that is used to determine the validity of this control synchronously.
         */


        _createClass2(AbstractControl, [{
          key: "validator",
          get: function get() {
            return this._composedValidatorFn;
          },
          set: function set(validatorFn) {
            this._rawValidators = this._composedValidatorFn = validatorFn;
          }
          /**
           * The function that is used to determine the validity of this control asynchronously.
           */

        }, {
          key: "asyncValidator",
          get: function get() {
            return this._composedAsyncValidatorFn;
          },
          set: function set(asyncValidatorFn) {
            this._rawAsyncValidators = this._composedAsyncValidatorFn = asyncValidatorFn;
          }
          /**
           * The parent control.
           */

        }, {
          key: "parent",
          get: function get() {
            return this._parent;
          }
          /**
           * A control is `valid` when its `status` is `VALID`.
           *
           * @see {@link AbstractControl.status}
           *
           * @returns True if the control has passed all of its validation tests,
           * false otherwise.
           */

        }, {
          key: "valid",
          get: function get() {
            return this.status === VALID;
          }
          /**
           * A control is `invalid` when its `status` is `INVALID`.
           *
           * @see {@link AbstractControl.status}
           *
           * @returns True if this control has failed one or more of its validation checks,
           * false otherwise.
           */

        }, {
          key: "invalid",
          get: function get() {
            return this.status === INVALID;
          }
          /**
           * A control is `pending` when its `status` is `PENDING`.
           *
           * @see {@link AbstractControl.status}
           *
           * @returns True if this control is in the process of conducting a validation check,
           * false otherwise.
           */

        }, {
          key: "pending",
          get: function get() {
            return this.status == PENDING;
          }
          /**
           * A control is `disabled` when its `status` is `DISABLED`.
           *
           * Disabled controls are exempt from validation checks and
           * are not included in the aggregate value of their ancestor
           * controls.
           *
           * @see {@link AbstractControl.status}
           *
           * @returns True if the control is disabled, false otherwise.
           */

        }, {
          key: "disabled",
          get: function get() {
            return this.status === DISABLED;
          }
          /**
           * A control is `enabled` as long as its `status` is not `DISABLED`.
           *
           * @returns True if the control has any status other than 'DISABLED',
           * false if the status is 'DISABLED'.
           *
           * @see {@link AbstractControl.status}
           *
           */

        }, {
          key: "enabled",
          get: function get() {
            return this.status !== DISABLED;
          }
          /**
           * A control is `dirty` if the user has changed the value
           * in the UI.
           *
           * @returns True if the user has changed the value of this control in the UI; compare `pristine`.
           * Programmatic changes to a control's value do not mark it dirty.
           */

        }, {
          key: "dirty",
          get: function get() {
            return !this.pristine;
          }
          /**
           * True if the control has not been marked as touched
           *
           * A control is `untouched` if the user has not yet triggered
           * a `blur` event on it.
           */

        }, {
          key: "untouched",
          get: function get() {
            return !this.touched;
          }
          /**
           * Reports the update strategy of the `AbstractControl` (meaning
           * the event on which the control updates itself).
           * Possible values: `'change'` | `'blur'` | `'submit'`
           * Default value: `'change'`
           */

        }, {
          key: "updateOn",
          get: function get() {
            return this._updateOn ? this._updateOn : this.parent ? this.parent.updateOn : 'change';
          }
          /**
           * Sets the synchronous validators that are active on this control.  Calling
           * this overwrites any existing sync validators.
           *
           * When you add or remove a validator at run time, you must call
           * `updateValueAndValidity()` for the new validation to take effect.
           *
           */

        }, {
          key: "setValidators",
          value: function setValidators(newValidator) {
            this._rawValidators = newValidator;
            this._composedValidatorFn = coerceToValidator(newValidator);
          }
          /**
           * Sets the async validators that are active on this control. Calling this
           * overwrites any existing async validators.
           *
           * When you add or remove a validator at run time, you must call
           * `updateValueAndValidity()` for the new validation to take effect.
           *
           */

        }, {
          key: "setAsyncValidators",
          value: function setAsyncValidators(newValidator) {
            this._rawAsyncValidators = newValidator;
            this._composedAsyncValidatorFn = coerceToAsyncValidator(newValidator);
          }
          /**
           * Empties out the sync validator list.
           *
           * When you add or remove a validator at run time, you must call
           * `updateValueAndValidity()` for the new validation to take effect.
           *
           */

        }, {
          key: "clearValidators",
          value: function clearValidators() {
            this.validator = null;
          }
          /**
           * Empties out the async validator list.
           *
           * When you add or remove a validator at run time, you must call
           * `updateValueAndValidity()` for the new validation to take effect.
           *
           */

        }, {
          key: "clearAsyncValidators",
          value: function clearAsyncValidators() {
            this.asyncValidator = null;
          }
          /**
           * Marks the control as `touched`. A control is touched by focus and
           * blur events that do not change the value.
           *
           * @see `markAsUntouched()`
           * @see `markAsDirty()`
           * @see `markAsPristine()`
           *
           * @param opts Configuration options that determine how the control propagates changes
           * and emits events after marking is applied.
           * * `onlySelf`: When true, mark only this control. When false or not supplied,
           * marks all direct ancestors. Default is false.
           */

        }, {
          key: "markAsTouched",
          value: function markAsTouched() {
            var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
            this.touched = true;

            if (this._parent && !opts.onlySelf) {
              this._parent.markAsTouched(opts);
            }
          }
          /**
           * Marks the control and all its descendant controls as `touched`.
           * @see `markAsTouched()`
           */

        }, {
          key: "markAllAsTouched",
          value: function markAllAsTouched() {
            this.markAsTouched({
              onlySelf: true
            });

            this._forEachChild(function (control) {
              return control.markAllAsTouched();
            });
          }
          /**
           * Marks the control as `untouched`.
           *
           * If the control has any children, also marks all children as `untouched`
           * and recalculates the `touched` status of all parent controls.
           *
           * @see `markAsTouched()`
           * @see `markAsDirty()`
           * @see `markAsPristine()`
           *
           * @param opts Configuration options that determine how the control propagates changes
           * and emits events after the marking is applied.
           * * `onlySelf`: When true, mark only this control. When false or not supplied,
           * marks all direct ancestors. Default is false.
           */

        }, {
          key: "markAsUntouched",
          value: function markAsUntouched() {
            var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
            this.touched = false;
            this._pendingTouched = false;

            this._forEachChild(function (control) {
              control.markAsUntouched({
                onlySelf: true
              });
            });

            if (this._parent && !opts.onlySelf) {
              this._parent._updateTouched(opts);
            }
          }
          /**
           * Marks the control as `dirty`. A control becomes dirty when
           * the control's value is changed through the UI; compare `markAsTouched`.
           *
           * @see `markAsTouched()`
           * @see `markAsUntouched()`
           * @see `markAsPristine()`
           *
           * @param opts Configuration options that determine how the control propagates changes
           * and emits events after marking is applied.
           * * `onlySelf`: When true, mark only this control. When false or not supplied,
           * marks all direct ancestors. Default is false.
           */

        }, {
          key: "markAsDirty",
          value: function markAsDirty() {
            var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
            this.pristine = false;

            if (this._parent && !opts.onlySelf) {
              this._parent.markAsDirty(opts);
            }
          }
          /**
           * Marks the control as `pristine`.
           *
           * If the control has any children, marks all children as `pristine`,
           * and recalculates the `pristine` status of all parent
           * controls.
           *
           * @see `markAsTouched()`
           * @see `markAsUntouched()`
           * @see `markAsDirty()`
           *
           * @param opts Configuration options that determine how the control emits events after
           * marking is applied.
           * * `onlySelf`: When true, mark only this control. When false or not supplied,
           * marks all direct ancestors. Default is false.
           */

        }, {
          key: "markAsPristine",
          value: function markAsPristine() {
            var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
            this.pristine = true;
            this._pendingDirty = false;

            this._forEachChild(function (control) {
              control.markAsPristine({
                onlySelf: true
              });
            });

            if (this._parent && !opts.onlySelf) {
              this._parent._updatePristine(opts);
            }
          }
          /**
           * Marks the control as `pending`.
           *
           * A control is pending while the control performs async validation.
           *
           * @see {@link AbstractControl.status}
           *
           * @param opts Configuration options that determine how the control propagates changes and
           * emits events after marking is applied.
           * * `onlySelf`: When true, mark only this control. When false or not supplied,
           * marks all direct ancestors. Default is false.
           * * `emitEvent`: When true or not supplied (the default), the `statusChanges`
           * observable emits an event with the latest status the control is marked pending.
           * When false, no events are emitted.
           *
           */

        }, {
          key: "markAsPending",
          value: function markAsPending() {
            var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
            this.status = PENDING;

            if (opts.emitEvent !== false) {
              this.statusChanges.emit(this.status);
            }

            if (this._parent && !opts.onlySelf) {
              this._parent.markAsPending(opts);
            }
          }
          /**
           * Disables the control. This means the control is exempt from validation checks and
           * excluded from the aggregate value of any parent. Its status is `DISABLED`.
           *
           * If the control has children, all children are also disabled.
           *
           * @see {@link AbstractControl.status}
           *
           * @param opts Configuration options that determine how the control propagates
           * changes and emits events after the control is disabled.
           * * `onlySelf`: When true, mark only this control. When false or not supplied,
           * marks all direct ancestors. Default is false.
           * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
           * `valueChanges`
           * observables emit events with the latest status and value when the control is disabled.
           * When false, no events are emitted.
           */

        }, {
          key: "disable",
          value: function disable() {
            var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};

            // If parent has been marked artificially dirty we don't want to re-calculate the
            // parent's dirtiness based on the children.
            var skipPristineCheck = this._parentMarkedDirty(opts.onlySelf);

            this.status = DISABLED;
            this.errors = null;

            this._forEachChild(function (control) {
              control.disable(Object.assign(Object.assign({}, opts), {
                onlySelf: true
              }));
            });

            this._updateValue();

            if (opts.emitEvent !== false) {
              this.valueChanges.emit(this.value);
              this.statusChanges.emit(this.status);
            }

            this._updateAncestors(Object.assign(Object.assign({}, opts), {
              skipPristineCheck: skipPristineCheck
            }));

            this._onDisabledChange.forEach(function (changeFn) {
              return changeFn(true);
            });
          }
          /**
           * Enables the control. This means the control is included in validation checks and
           * the aggregate value of its parent. Its status recalculates based on its value and
           * its validators.
           *
           * By default, if the control has children, all children are enabled.
           *
           * @see {@link AbstractControl.status}
           *
           * @param opts Configure options that control how the control propagates changes and
           * emits events when marked as untouched
           * * `onlySelf`: When true, mark only this control. When false or not supplied,
           * marks all direct ancestors. Default is false.
           * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
           * `valueChanges`
           * observables emit events with the latest status and value when the control is enabled.
           * When false, no events are emitted.
           */

        }, {
          key: "enable",
          value: function enable() {
            var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};

            // If parent has been marked artificially dirty we don't want to re-calculate the
            // parent's dirtiness based on the children.
            var skipPristineCheck = this._parentMarkedDirty(opts.onlySelf);

            this.status = VALID;

            this._forEachChild(function (control) {
              control.enable(Object.assign(Object.assign({}, opts), {
                onlySelf: true
              }));
            });

            this.updateValueAndValidity({
              onlySelf: true,
              emitEvent: opts.emitEvent
            });

            this._updateAncestors(Object.assign(Object.assign({}, opts), {
              skipPristineCheck: skipPristineCheck
            }));

            this._onDisabledChange.forEach(function (changeFn) {
              return changeFn(false);
            });
          }
        }, {
          key: "_updateAncestors",
          value: function _updateAncestors(opts) {
            if (this._parent && !opts.onlySelf) {
              this._parent.updateValueAndValidity(opts);

              if (!opts.skipPristineCheck) {
                this._parent._updatePristine();
              }

              this._parent._updateTouched();
            }
          }
          /**
           * @param parent Sets the parent of the control
           */

        }, {
          key: "setParent",
          value: function setParent(parent) {
            this._parent = parent;
          }
          /**
           * Recalculates the value and validation status of the control.
           *
           * By default, it also updates the value and validity of its ancestors.
           *
           * @param opts Configuration options determine how the control propagates changes and emits events
           * after updates and validity checks are applied.
           * * `onlySelf`: When true, only update this control. When false or not supplied,
           * update all direct ancestors. Default is false.
           * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
           * `valueChanges`
           * observables emit events with the latest status and value when the control is updated.
           * When false, no events are emitted.
           */

        }, {
          key: "updateValueAndValidity",
          value: function updateValueAndValidity() {
            var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};

            this._setInitialStatus();

            this._updateValue();

            if (this.enabled) {
              this._cancelExistingSubscription();

              this.errors = this._runValidator();
              this.status = this._calculateStatus();

              if (this.status === VALID || this.status === PENDING) {
                this._runAsyncValidator(opts.emitEvent);
              }
            }

            if (opts.emitEvent !== false) {
              this.valueChanges.emit(this.value);
              this.statusChanges.emit(this.status);
            }

            if (this._parent && !opts.onlySelf) {
              this._parent.updateValueAndValidity(opts);
            }
          }
          /** @internal */

        }, {
          key: "_updateTreeValidity",
          value: function _updateTreeValidity() {
            var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
              emitEvent: true
            };

            this._forEachChild(function (ctrl) {
              return ctrl._updateTreeValidity(opts);
            });

            this.updateValueAndValidity({
              onlySelf: true,
              emitEvent: opts.emitEvent
            });
          }
        }, {
          key: "_setInitialStatus",
          value: function _setInitialStatus() {
            this.status = this._allControlsDisabled() ? DISABLED : VALID;
          }
        }, {
          key: "_runValidator",
          value: function _runValidator() {
            return this.validator ? this.validator(this) : null;
          }
        }, {
          key: "_runAsyncValidator",
          value: function _runAsyncValidator(emitEvent) {
            var _this891 = this;

            if (this.asyncValidator) {
              this.status = PENDING;
              this._hasOwnPendingAsyncValidator = true;
              var obs = toObservable(this.asyncValidator(this));
              this._asyncValidationSubscription = obs.subscribe(function (errors) {
                _this891._hasOwnPendingAsyncValidator = false; // This will trigger the recalculation of the validation status, which depends on
                // the state of the asynchronous validation (whether it is in progress or not). So, it is
                // necessary that we have updated the `_hasOwnPendingAsyncValidator` boolean flag first.

                _this891.setErrors(errors, {
                  emitEvent: emitEvent
                });
              });
            }
          }
        }, {
          key: "_cancelExistingSubscription",
          value: function _cancelExistingSubscription() {
            if (this._asyncValidationSubscription) {
              this._asyncValidationSubscription.unsubscribe();

              this._hasOwnPendingAsyncValidator = false;
            }
          }
          /**
           * Sets errors on a form control when running validations manually, rather than automatically.
           *
           * Calling `setErrors` also updates the validity of the parent control.
           *
           * @usageNotes
           *
           * ### Manually set the errors for a control
           *
           * ```
           * const login = new FormControl('someLogin');
           * login.setErrors({
           *   notUnique: true
           * });
           *
           * expect(login.valid).toEqual(false);
           * expect(login.errors).toEqual({ notUnique: true });
           *
           * login.setValue('someOtherLogin');
           *
           * expect(login.valid).toEqual(true);
           * ```
           */

        }, {
          key: "setErrors",
          value: function setErrors(errors) {
            var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
            this.errors = errors;

            this._updateControlsErrors(opts.emitEvent !== false);
          }
          /**
           * Retrieves a child control given the control's name or path.
           *
           * @param path A dot-delimited string or array of string/number values that define the path to the
           * control.
           *
           * @usageNotes
           * ### Retrieve a nested control
           *
           * For example, to get a `name` control nested within a `person` sub-group:
           *
           * * `this.form.get('person.name');`
           *
           * -OR-
           *
           * * `this.form.get(['person', 'name']);`
           */

        }, {
          key: "get",
          value: function get(path) {
            return _find(this, path, '.');
          }
          /**
           * @description
           * Reports error data for the control with the given path.
           *
           * @param errorCode The code of the error to check
           * @param path A list of control names that designates how to move from the current control
           * to the control that should be queried for errors.
           *
           * @usageNotes
           * For example, for the following `FormGroup`:
           *
           * ```
           * form = new FormGroup({
           *   address: new FormGroup({ street: new FormControl() })
           * });
           * ```
           *
           * The path to the 'street' control from the root form would be 'address' -> 'street'.
           *
           * It can be provided to this method in one of two formats:
           *
           * 1. An array of string control names, e.g. `['address', 'street']`
           * 1. A period-delimited list of control names in one string, e.g. `'address.street'`
           *
           * @returns error data for that particular error. If the control or error is not present,
           * null is returned.
           */

        }, {
          key: "getError",
          value: function getError(errorCode, path) {
            var control = path ? this.get(path) : this;
            return control && control.errors ? control.errors[errorCode] : null;
          }
          /**
           * @description
           * Reports whether the control with the given path has the error specified.
           *
           * @param errorCode The code of the error to check
           * @param path A list of control names that designates how to move from the current control
           * to the control that should be queried for errors.
           *
           * @usageNotes
           * For example, for the following `FormGroup`:
           *
           * ```
           * form = new FormGroup({
           *   address: new FormGroup({ street: new FormControl() })
           * });
           * ```
           *
           * The path to the 'street' control from the root form would be 'address' -> 'street'.
           *
           * It can be provided to this method in one of two formats:
           *
           * 1. An array of string control names, e.g. `['address', 'street']`
           * 1. A period-delimited list of control names in one string, e.g. `'address.street'`
           *
           * If no path is given, this method checks for the error on the current control.
           *
           * @returns whether the given error is present in the control at the given path.
           *
           * If the control is not present, false is returned.
           */

        }, {
          key: "hasError",
          value: function hasError(errorCode, path) {
            return !!this.getError(errorCode, path);
          }
          /**
           * Retrieves the top-level ancestor of this control.
           */

        }, {
          key: "root",
          get: function get() {
            var x = this;

            while (x._parent) {
              x = x._parent;
            }

            return x;
          }
          /** @internal */

        }, {
          key: "_updateControlsErrors",
          value: function _updateControlsErrors(emitEvent) {
            this.status = this._calculateStatus();

            if (emitEvent) {
              this.statusChanges.emit(this.status);
            }

            if (this._parent) {
              this._parent._updateControlsErrors(emitEvent);
            }
          }
          /** @internal */

        }, {
          key: "_initObservables",
          value: function _initObservables() {
            this.valueChanges = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
            this.statusChanges = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
          }
        }, {
          key: "_calculateStatus",
          value: function _calculateStatus() {
            if (this._allControlsDisabled()) return DISABLED;
            if (this.errors) return INVALID;
            if (this._hasOwnPendingAsyncValidator || this._anyControlsHaveStatus(PENDING)) return PENDING;
            if (this._anyControlsHaveStatus(INVALID)) return INVALID;
            return VALID;
          }
          /** @internal */

        }, {
          key: "_anyControlsHaveStatus",
          value: function _anyControlsHaveStatus(status) {
            return this._anyControls(function (control) {
              return control.status === status;
            });
          }
          /** @internal */

        }, {
          key: "_anyControlsDirty",
          value: function _anyControlsDirty() {
            return this._anyControls(function (control) {
              return control.dirty;
            });
          }
          /** @internal */

        }, {
          key: "_anyControlsTouched",
          value: function _anyControlsTouched() {
            return this._anyControls(function (control) {
              return control.touched;
            });
          }
          /** @internal */

        }, {
          key: "_updatePristine",
          value: function _updatePristine() {
            var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
            this.pristine = !this._anyControlsDirty();

            if (this._parent && !opts.onlySelf) {
              this._parent._updatePristine(opts);
            }
          }
          /** @internal */

        }, {
          key: "_updateTouched",
          value: function _updateTouched() {
            var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
            this.touched = this._anyControlsTouched();

            if (this._parent && !opts.onlySelf) {
              this._parent._updateTouched(opts);
            }
          }
          /** @internal */

        }, {
          key: "_isBoxedValue",
          value: function _isBoxedValue(formState) {
            return typeof formState === 'object' && formState !== null && Object.keys(formState).length === 2 && 'value' in formState && 'disabled' in formState;
          }
          /** @internal */

        }, {
          key: "_registerOnCollectionChange",
          value: function _registerOnCollectionChange(fn) {
            this._onCollectionChange = fn;
          }
          /** @internal */

        }, {
          key: "_setUpdateStrategy",
          value: function _setUpdateStrategy(opts) {
            if (isOptionsObj(opts) && opts.updateOn != null) {
              this._updateOn = opts.updateOn;
            }
          }
          /**
           * Check to see if parent has been marked artificially dirty.
           *
           * @internal
           */

        }, {
          key: "_parentMarkedDirty",
          value: function _parentMarkedDirty(onlySelf) {
            var parentDirty = this._parent && this._parent.dirty;
            return !onlySelf && !!parentDirty && !this._parent._anyControlsDirty();
          }
        }]);

        return AbstractControl;
      }();
      /**
       * Tracks the value and validation status of an individual form control.
       *
       * This is one of the three fundamental building blocks of Angular forms, along with
       * `FormGroup` and `FormArray`. It extends the `AbstractControl` class that
       * implements most of the base functionality for accessing the value, validation status,
       * user interactions and events. See [usage examples below](#usage-notes).
       *
       * @see `AbstractControl`
       * @see [Reactive Forms Guide](guide/reactive-forms)
       * @see [Usage Notes](#usage-notes)
       *
       * @usageNotes
       *
       * ### Initializing Form Controls
       *
       * Instantiate a `FormControl`, with an initial value.
       *
       * ```ts
       * const control = new FormControl('some value');
       * console.log(control.value);     // 'some value'
       *```
       *
       * The following example initializes the control with a form state object. The `value`
       * and `disabled` keys are required in this case.
       *
       * ```ts
       * const control = new FormControl({ value: 'n/a', disabled: true });
       * console.log(control.value);     // 'n/a'
       * console.log(control.status);    // 'DISABLED'
       * ```
       *
       * The following example initializes the control with a sync validator.
       *
       * ```ts
       * const control = new FormControl('', Validators.required);
       * console.log(control.value);      // ''
       * console.log(control.status);     // 'INVALID'
       * ```
       *
       * The following example initializes the control using an options object.
       *
       * ```ts
       * const control = new FormControl('', {
       *    validators: Validators.required,
       *    asyncValidators: myAsyncValidator
       * });
       * ```
       *
       * ### Configure the control to update on a blur event
       *
       * Set the `updateOn` option to `'blur'` to update on the blur `event`.
       *
       * ```ts
       * const control = new FormControl('', { updateOn: 'blur' });
       * ```
       *
       * ### Configure the control to update on a submit event
       *
       * Set the `updateOn` option to `'submit'` to update on a submit `event`.
       *
       * ```ts
       * const control = new FormControl('', { updateOn: 'submit' });
       * ```
       *
       * ### Reset the control back to an initial value
       *
       * You reset to a specific form state by passing through a standalone
       * value or a form state object that contains both a value and a disabled state
       * (these are the only two properties that cannot be calculated).
       *
       * ```ts
       * const control = new FormControl('Nancy');
       *
       * console.log(control.value); // 'Nancy'
       *
       * control.reset('Drew');
       *
       * console.log(control.value); // 'Drew'
       * ```
       *
       * ### Reset the control back to an initial value and disabled
       *
       * ```
       * const control = new FormControl('Nancy');
       *
       * console.log(control.value); // 'Nancy'
       * console.log(control.status); // 'VALID'
       *
       * control.reset({ value: 'Drew', disabled: true });
       *
       * console.log(control.value); // 'Drew'
       * console.log(control.status); // 'DISABLED'
       * ```
       *
       * @publicApi
       */


      var FormControl = /*#__PURE__*/function (_AbstractControl) {
        _inherits2(FormControl, _AbstractControl);

        var _super429 = _createSuper2(FormControl);

        /**
         * Creates a new `FormControl` instance.
         *
         * @param formState Initializes the control with an initial value,
         * or an object that defines the initial value and disabled state.
         *
         * @param validatorOrOpts A synchronous validator function, or an array of
         * such functions, or an `AbstractControlOptions` object that contains validation functions
         * and a validation trigger.
         *
         * @param asyncValidator A single async validator or array of async validator functions
         *
         */
        function FormControl() {
          var _this892;

          var formState = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
          var validatorOrOpts = arguments.length > 1 ? arguments[1] : undefined;
          var asyncValidator = arguments.length > 2 ? arguments[2] : undefined;

          _classCallCheck2(this, FormControl);

          _this892 = _super429.call(this, pickValidators(validatorOrOpts), pickAsyncValidators(asyncValidator, validatorOrOpts));
          /** @internal */

          _this892._onChange = [];

          _this892._applyFormState(formState);

          _this892._setUpdateStrategy(validatorOrOpts);

          _this892._initObservables();

          _this892.updateValueAndValidity({
            onlySelf: true,
            // If `asyncValidator` is present, it will trigger control status change from `PENDING` to
            // `VALID` or `INVALID`.
            // The status should be broadcasted via the `statusChanges` observable, so we set `emitEvent`
            // to `true` to allow that during the control creation process.
            emitEvent: !!asyncValidator
          });

          return _this892;
        }
        /**
         * Sets a new value for the form control.
         *
         * @param value The new value for the control.
         * @param options Configuration options that determine how the control propagates changes
         * and emits events when the value changes.
         * The configuration options are passed to the {@link AbstractControl#updateValueAndValidity
         * updateValueAndValidity} method.
         *
         * * `onlySelf`: When true, each change only affects this control, and not its parent. Default is
         * false.
         * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
         * `valueChanges`
         * observables emit events with the latest status and value when the control value is updated.
         * When false, no events are emitted.
         * * `emitModelToViewChange`: When true or not supplied  (the default), each change triggers an
         * `onChange` event to
         * update the view.
         * * `emitViewToModelChange`: When true or not supplied (the default), each change triggers an
         * `ngModelChange`
         * event to update the model.
         *
         */


        _createClass2(FormControl, [{
          key: "setValue",
          value: function setValue(value) {
            var _this893 = this;

            var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
            this.value = this._pendingValue = value;

            if (this._onChange.length && options.emitModelToViewChange !== false) {
              this._onChange.forEach(function (changeFn) {
                return changeFn(_this893.value, options.emitViewToModelChange !== false);
              });
            }

            this.updateValueAndValidity(options);
          }
          /**
           * Patches the value of a control.
           *
           * This function is functionally the same as {@link FormControl#setValue setValue} at this level.
           * It exists for symmetry with {@link FormGroup#patchValue patchValue} on `FormGroups` and
           * `FormArrays`, where it does behave differently.
           *
           * @see `setValue` for options
           */

        }, {
          key: "patchValue",
          value: function patchValue(value) {
            var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
            this.setValue(value, options);
          }
          /**
           * Resets the form control, marking it `pristine` and `untouched`, and setting
           * the value to null.
           *
           * @param formState Resets the control with an initial value,
           * or an object that defines the initial value and disabled state.
           *
           * @param options Configuration options that determine how the control propagates changes
           * and emits events after the value changes.
           *
           * * `onlySelf`: When true, each change only affects this control, and not its parent. Default is
           * false.
           * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
           * `valueChanges`
           * observables emit events with the latest status and value when the control is reset.
           * When false, no events are emitted.
           *
           */

        }, {
          key: "reset",
          value: function reset() {
            var formState = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
            var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};

            this._applyFormState(formState);

            this.markAsPristine(options);
            this.markAsUntouched(options);
            this.setValue(this.value, options);
            this._pendingChange = false;
          }
          /**
           * @internal
           */

        }, {
          key: "_updateValue",
          value: function _updateValue() {}
          /**
           * @internal
           */

        }, {
          key: "_anyControls",
          value: function _anyControls(condition) {
            return false;
          }
          /**
           * @internal
           */

        }, {
          key: "_allControlsDisabled",
          value: function _allControlsDisabled() {
            return this.disabled;
          }
          /**
           * Register a listener for change events.
           *
           * @param fn The method that is called when the value changes
           */

        }, {
          key: "registerOnChange",
          value: function registerOnChange(fn) {
            this._onChange.push(fn);
          }
          /**
           * @internal
           */

        }, {
          key: "_clearChangeFns",
          value: function _clearChangeFns() {
            this._onChange = [];
            this._onDisabledChange = [];

            this._onCollectionChange = function () {};
          }
          /**
           * Register a listener for disabled events.
           *
           * @param fn The method that is called when the disabled status changes.
           */

        }, {
          key: "registerOnDisabledChange",
          value: function registerOnDisabledChange(fn) {
            this._onDisabledChange.push(fn);
          }
          /**
           * @internal
           */

        }, {
          key: "_forEachChild",
          value: function _forEachChild(cb) {}
          /** @internal */

        }, {
          key: "_syncPendingControls",
          value: function _syncPendingControls() {
            if (this.updateOn === 'submit') {
              if (this._pendingDirty) this.markAsDirty();
              if (this._pendingTouched) this.markAsTouched();

              if (this._pendingChange) {
                this.setValue(this._pendingValue, {
                  onlySelf: true,
                  emitModelToViewChange: false
                });
                return true;
              }
            }

            return false;
          }
        }, {
          key: "_applyFormState",
          value: function _applyFormState(formState) {
            if (this._isBoxedValue(formState)) {
              this.value = this._pendingValue = formState.value;
              formState.disabled ? this.disable({
                onlySelf: true,
                emitEvent: false
              }) : this.enable({
                onlySelf: true,
                emitEvent: false
              });
            } else {
              this.value = this._pendingValue = formState;
            }
          }
        }]);

        return FormControl;
      }(AbstractControl);
      /**
       * Tracks the value and validity state of a group of `FormControl` instances.
       *
       * A `FormGroup` aggregates the values of each child `FormControl` into one object,
       * with each control name as the key.  It calculates its status by reducing the status values
       * of its children. For example, if one of the controls in a group is invalid, the entire
       * group becomes invalid.
       *
       * `FormGroup` is one of the three fundamental building blocks used to define forms in Angular,
       * along with `FormControl` and `FormArray`.
       *
       * When instantiating a `FormGroup`, pass in a collection of child controls as the first
       * argument. The key for each child registers the name for the control.
       *
       * @usageNotes
       *
       * ### Create a form group with 2 controls
       *
       * ```
       * const form = new FormGroup({
       *   first: new FormControl('Nancy', Validators.minLength(2)),
       *   last: new FormControl('Drew'),
       * });
       *
       * console.log(form.value);   // {first: 'Nancy', last; 'Drew'}
       * console.log(form.status);  // 'VALID'
       * ```
       *
       * ### Create a form group with a group-level validator
       *
       * You include group-level validators as the second arg, or group-level async
       * validators as the third arg. These come in handy when you want to perform validation
       * that considers the value of more than one child control.
       *
       * ```
       * const form = new FormGroup({
       *   password: new FormControl('', Validators.minLength(2)),
       *   passwordConfirm: new FormControl('', Validators.minLength(2)),
       * }, passwordMatchValidator);
       *
       *
       * function passwordMatchValidator(g: FormGroup) {
       *    return g.get('password').value === g.get('passwordConfirm').value
       *       ? null : {'mismatch': true};
       * }
       * ```
       *
       * Like `FormControl` instances, you choose to pass in
       * validators and async validators as part of an options object.
       *
       * ```
       * const form = new FormGroup({
       *   password: new FormControl('')
       *   passwordConfirm: new FormControl('')
       * }, { validators: passwordMatchValidator, asyncValidators: otherValidator });
       * ```
       *
       * ### Set the updateOn property for all controls in a form group
       *
       * The options object is used to set a default value for each child
       * control's `updateOn` property. If you set `updateOn` to `'blur'` at the
       * group level, all child controls default to 'blur', unless the child
       * has explicitly specified a different `updateOn` value.
       *
       * ```ts
       * const c = new FormGroup({
       *   one: new FormControl()
       * }, { updateOn: 'blur' });
       * ```
       *
       * @publicApi
       */


      var FormGroup = /*#__PURE__*/function (_AbstractControl2) {
        _inherits2(FormGroup, _AbstractControl2);

        var _super430 = _createSuper2(FormGroup);

        /**
         * Creates a new `FormGroup` instance.
         *
         * @param controls A collection of child controls. The key for each child is the name
         * under which it is registered.
         *
         * @param validatorOrOpts A synchronous validator function, or an array of
         * such functions, or an `AbstractControlOptions` object that contains validation functions
         * and a validation trigger.
         *
         * @param asyncValidator A single async validator or array of async validator functions
         *
         */
        function FormGroup(controls, validatorOrOpts, asyncValidator) {
          var _this894;

          _classCallCheck2(this, FormGroup);

          _this894 = _super430.call(this, pickValidators(validatorOrOpts), pickAsyncValidators(asyncValidator, validatorOrOpts));
          _this894.controls = controls;

          _this894._initObservables();

          _this894._setUpdateStrategy(validatorOrOpts);

          _this894._setUpControls();

          _this894.updateValueAndValidity({
            onlySelf: true,
            // If `asyncValidator` is present, it will trigger control status change from `PENDING` to
            // `VALID` or `INVALID`. The status should be broadcasted via the `statusChanges` observable,
            // so we set `emitEvent` to `true` to allow that during the control creation process.
            emitEvent: !!asyncValidator
          });

          return _this894;
        }
        /**
         * Registers a control with the group's list of controls.
         *
         * This method does not update the value or validity of the control.
         * Use {@link FormGroup#addControl addControl} instead.
         *
         * @param name The control name to register in the collection
         * @param control Provides the control for the given name
         */


        _createClass2(FormGroup, [{
          key: "registerControl",
          value: function registerControl(name, control) {
            if (this.controls[name]) return this.controls[name];
            this.controls[name] = control;
            control.setParent(this);

            control._registerOnCollectionChange(this._onCollectionChange);

            return control;
          }
          /**
           * Add a control to this group.
           *
           * This method also updates the value and validity of the control.
           *
           * @param name The control name to add to the collection
           * @param control Provides the control for the given name
           */

        }, {
          key: "addControl",
          value: function addControl(name, control) {
            this.registerControl(name, control);
            this.updateValueAndValidity();

            this._onCollectionChange();
          }
          /**
           * Remove a control from this group.
           *
           * @param name The control name to remove from the collection
           */

        }, {
          key: "removeControl",
          value: function removeControl(name) {
            if (this.controls[name]) this.controls[name]._registerOnCollectionChange(function () {});
            delete this.controls[name];
            this.updateValueAndValidity();

            this._onCollectionChange();
          }
          /**
           * Replace an existing control.
           *
           * @param name The control name to replace in the collection
           * @param control Provides the control for the given name
           */

        }, {
          key: "setControl",
          value: function setControl(name, control) {
            if (this.controls[name]) this.controls[name]._registerOnCollectionChange(function () {});
            delete this.controls[name];
            if (control) this.registerControl(name, control);
            this.updateValueAndValidity();

            this._onCollectionChange();
          }
          /**
           * Check whether there is an enabled control with the given name in the group.
           *
           * Reports false for disabled controls. If you'd like to check for existence in the group
           * only, use {@link AbstractControl#get get} instead.
           *
           * @param controlName The control name to check for existence in the collection
           *
           * @returns false for disabled controls, true otherwise.
           */

        }, {
          key: "contains",
          value: function contains(controlName) {
            return this.controls.hasOwnProperty(controlName) && this.controls[controlName].enabled;
          }
          /**
           * Sets the value of the `FormGroup`. It accepts an object that matches
           * the structure of the group, with control names as keys.
           *
           * @usageNotes
           * ### Set the complete value for the form group
           *
           * ```
           * const form = new FormGroup({
           *   first: new FormControl(),
           *   last: new FormControl()
           * });
           *
           * console.log(form.value);   // {first: null, last: null}
           *
           * form.setValue({first: 'Nancy', last: 'Drew'});
           * console.log(form.value);   // {first: 'Nancy', last: 'Drew'}
           * ```
           *
           * @throws When strict checks fail, such as setting the value of a control
           * that doesn't exist or if you exclude a value of a control that does exist.
           *
           * @param value The new value for the control that matches the structure of the group.
           * @param options Configuration options that determine how the control propagates changes
           * and emits events after the value changes.
           * The configuration options are passed to the {@link AbstractControl#updateValueAndValidity
           * updateValueAndValidity} method.
           *
           * * `onlySelf`: When true, each change only affects this control, and not its parent. Default is
           * false.
           * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
           * `valueChanges`
           * observables emit events with the latest status and value when the control value is updated.
           * When false, no events are emitted.
           */

        }, {
          key: "setValue",
          value: function setValue(value) {
            var _this895 = this;

            var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};

            this._checkAllValuesPresent(value);

            Object.keys(value).forEach(function (name) {
              _this895._throwIfControlMissing(name);

              _this895.controls[name].setValue(value[name], {
                onlySelf: true,
                emitEvent: options.emitEvent
              });
            });
            this.updateValueAndValidity(options);
          }
          /**
           * Patches the value of the `FormGroup`. It accepts an object with control
           * names as keys, and does its best to match the values to the correct controls
           * in the group.
           *
           * It accepts both super-sets and sub-sets of the group without throwing an error.
           *
           * @usageNotes
           * ### Patch the value for a form group
           *
           * ```
           * const form = new FormGroup({
           *    first: new FormControl(),
           *    last: new FormControl()
           * });
           * console.log(form.value);   // {first: null, last: null}
           *
           * form.patchValue({first: 'Nancy'});
           * console.log(form.value);   // {first: 'Nancy', last: null}
           * ```
           *
           * @param value The object that matches the structure of the group.
           * @param options Configuration options that determine how the control propagates changes and
           * emits events after the value is patched.
           * * `onlySelf`: When true, each change only affects this control and not its parent. Default is
           * true.
           * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
           * `valueChanges`
           * observables emit events with the latest status and value when the control value is updated.
           * When false, no events are emitted.
           * The configuration options are passed to the {@link AbstractControl#updateValueAndValidity
           * updateValueAndValidity} method.
           */

        }, {
          key: "patchValue",
          value: function patchValue(value) {
            var _this896 = this;

            var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
            Object.keys(value).forEach(function (name) {
              if (_this896.controls[name]) {
                _this896.controls[name].patchValue(value[name], {
                  onlySelf: true,
                  emitEvent: options.emitEvent
                });
              }
            });
            this.updateValueAndValidity(options);
          }
          /**
           * Resets the `FormGroup`, marks all descendants `pristine` and `untouched` and sets
           * the value of all descendants to null.
           *
           * You reset to a specific form state by passing in a map of states
           * that matches the structure of your form, with control names as keys. The state
           * is a standalone value or a form state object with both a value and a disabled
           * status.
           *
           * @param value Resets the control with an initial value,
           * or an object that defines the initial value and disabled state.
           *
           * @param options Configuration options that determine how the control propagates changes
           * and emits events when the group is reset.
           * * `onlySelf`: When true, each change only affects this control, and not its parent. Default is
           * false.
           * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
           * `valueChanges`
           * observables emit events with the latest status and value when the control is reset.
           * When false, no events are emitted.
           * The configuration options are passed to the {@link AbstractControl#updateValueAndValidity
           * updateValueAndValidity} method.
           *
           * @usageNotes
           *
           * ### Reset the form group values
           *
           * ```ts
           * const form = new FormGroup({
           *   first: new FormControl('first name'),
           *   last: new FormControl('last name')
           * });
           *
           * console.log(form.value);  // {first: 'first name', last: 'last name'}
           *
           * form.reset({ first: 'name', last: 'last name' });
           *
           * console.log(form.value);  // {first: 'name', last: 'last name'}
           * ```
           *
           * ### Reset the form group values and disabled status
           *
           * ```
           * const form = new FormGroup({
           *   first: new FormControl('first name'),
           *   last: new FormControl('last name')
           * });
           *
           * form.reset({
           *   first: {value: 'name', disabled: true},
           *   last: 'last'
           * });
           *
           * console.log(this.form.value);  // {first: 'name', last: 'last name'}
           * console.log(this.form.get('first').status);  // 'DISABLED'
           * ```
           */

        }, {
          key: "reset",
          value: function reset() {
            var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
            var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};

            this._forEachChild(function (control, name) {
              control.reset(value[name], {
                onlySelf: true,
                emitEvent: options.emitEvent
              });
            });

            this._updatePristine(options);

            this._updateTouched(options);

            this.updateValueAndValidity(options);
          }
          /**
           * The aggregate value of the `FormGroup`, including any disabled controls.
           *
           * Retrieves all values regardless of disabled status.
           * The `value` property is the best way to get the value of the group, because
           * it excludes disabled controls in the `FormGroup`.
           */

        }, {
          key: "getRawValue",
          value: function getRawValue() {
            return this._reduceChildren({}, function (acc, control, name) {
              acc[name] = control instanceof FormControl ? control.value : control.getRawValue();
              return acc;
            });
          }
          /** @internal */

        }, {
          key: "_syncPendingControls",
          value: function _syncPendingControls() {
            var subtreeUpdated = this._reduceChildren(false, function (updated, child) {
              return child._syncPendingControls() ? true : updated;
            });

            if (subtreeUpdated) this.updateValueAndValidity({
              onlySelf: true
            });
            return subtreeUpdated;
          }
          /** @internal */

        }, {
          key: "_throwIfControlMissing",
          value: function _throwIfControlMissing(name) {
            if (!Object.keys(this.controls).length) {
              throw new Error("\n        There are no form controls registered with this group yet. If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");
            }

            if (!this.controls[name]) {
              throw new Error("Cannot find form control with name: ".concat(name, "."));
            }
          }
          /** @internal */

        }, {
          key: "_forEachChild",
          value: function _forEachChild(cb) {
            var _this897 = this;

            Object.keys(this.controls).forEach(function (k) {
              return cb(_this897.controls[k], k);
            });
          }
          /** @internal */

        }, {
          key: "_setUpControls",
          value: function _setUpControls() {
            var _this898 = this;

            this._forEachChild(function (control) {
              control.setParent(_this898);

              control._registerOnCollectionChange(_this898._onCollectionChange);
            });
          }
          /** @internal */

        }, {
          key: "_updateValue",
          value: function _updateValue() {
            this.value = this._reduceValue();
          }
          /** @internal */

        }, {
          key: "_anyControls",
          value: function _anyControls(condition) {
            for (var _i47 = 0, _Object$keys4 = Object.keys(this.controls); _i47 < _Object$keys4.length; _i47++) {
              var controlName = _Object$keys4[_i47];
              var control = this.controls[controlName];

              if (this.contains(controlName) && condition(control)) {
                return true;
              }
            }

            return false;
          }
          /** @internal */

        }, {
          key: "_reduceValue",
          value: function _reduceValue() {
            var _this899 = this;

            return this._reduceChildren({}, function (acc, control, name) {
              if (control.enabled || _this899.disabled) {
                acc[name] = control.value;
              }

              return acc;
            });
          }
          /** @internal */

        }, {
          key: "_reduceChildren",
          value: function _reduceChildren(initValue, fn) {
            var res = initValue;

            this._forEachChild(function (control, name) {
              res = fn(res, control, name);
            });

            return res;
          }
          /** @internal */

        }, {
          key: "_allControlsDisabled",
          value: function _allControlsDisabled() {
            for (var _i48 = 0, _Object$keys5 = Object.keys(this.controls); _i48 < _Object$keys5.length; _i48++) {
              var controlName = _Object$keys5[_i48];

              if (this.controls[controlName].enabled) {
                return false;
              }
            }

            return Object.keys(this.controls).length > 0 || this.disabled;
          }
          /** @internal */

        }, {
          key: "_checkAllValuesPresent",
          value: function _checkAllValuesPresent(value) {
            this._forEachChild(function (control, name) {
              if (value[name] === undefined) {
                throw new Error("Must supply a value for form control with name: '".concat(name, "'."));
              }
            });
          }
        }]);

        return FormGroup;
      }(AbstractControl);
      /**
       * Tracks the value and validity state of an array of `FormControl`,
       * `FormGroup` or `FormArray` instances.
       *
       * A `FormArray` aggregates the values of each child `FormControl` into an array.
       * It calculates its status by reducing the status values of its children. For example, if one of
       * the controls in a `FormArray` is invalid, the entire array becomes invalid.
       *
       * `FormArray` is one of the three fundamental building blocks used to define forms in Angular,
       * along with `FormControl` and `FormGroup`.
       *
       * @usageNotes
       *
       * ### Create an array of form controls
       *
       * ```
       * const arr = new FormArray([
       *   new FormControl('Nancy', Validators.minLength(2)),
       *   new FormControl('Drew'),
       * ]);
       *
       * console.log(arr.value);   // ['Nancy', 'Drew']
       * console.log(arr.status);  // 'VALID'
       * ```
       *
       * ### Create a form array with array-level validators
       *
       * You include array-level validators and async validators. These come in handy
       * when you want to perform validation that considers the value of more than one child
       * control.
       *
       * The two types of validators are passed in separately as the second and third arg
       * respectively, or together as part of an options object.
       *
       * ```
       * const arr = new FormArray([
       *   new FormControl('Nancy'),
       *   new FormControl('Drew')
       * ], {validators: myValidator, asyncValidators: myAsyncValidator});
       * ```
       *
       * ### Set the updateOn property for all controls in a form array
       *
       * The options object is used to set a default value for each child
       * control's `updateOn` property. If you set `updateOn` to `'blur'` at the
       * array level, all child controls default to 'blur', unless the child
       * has explicitly specified a different `updateOn` value.
       *
       * ```ts
       * const arr = new FormArray([
       *    new FormControl()
       * ], {updateOn: 'blur'});
       * ```
       *
       * ### Adding or removing controls from a form array
       *
       * To change the controls in the array, use the `push`, `insert`, `removeAt` or `clear` methods
       * in `FormArray` itself. These methods ensure the controls are properly tracked in the
       * form's hierarchy. Do not modify the array of `AbstractControl`s used to instantiate
       * the `FormArray` directly, as that result in strange and unexpected behavior such
       * as broken change detection.
       *
       * @publicApi
       */


      var FormArray = /*#__PURE__*/function (_AbstractControl3) {
        _inherits2(FormArray, _AbstractControl3);

        var _super431 = _createSuper2(FormArray);

        /**
         * Creates a new `FormArray` instance.
         *
         * @param controls An array of child controls. Each child control is given an index
         * where it is registered.
         *
         * @param validatorOrOpts A synchronous validator function, or an array of
         * such functions, or an `AbstractControlOptions` object that contains validation functions
         * and a validation trigger.
         *
         * @param asyncValidator A single async validator or array of async validator functions
         *
         */
        function FormArray(controls, validatorOrOpts, asyncValidator) {
          var _this900;

          _classCallCheck2(this, FormArray);

          _this900 = _super431.call(this, pickValidators(validatorOrOpts), pickAsyncValidators(asyncValidator, validatorOrOpts));
          _this900.controls = controls;

          _this900._initObservables();

          _this900._setUpdateStrategy(validatorOrOpts);

          _this900._setUpControls();

          _this900.updateValueAndValidity({
            onlySelf: true,
            // If `asyncValidator` is present, it will trigger control status change from `PENDING` to
            // `VALID` or `INVALID`.
            // The status should be broadcasted via the `statusChanges` observable, so we set `emitEvent`
            // to `true` to allow that during the control creation process.
            emitEvent: !!asyncValidator
          });

          return _this900;
        }
        /**
         * Get the `AbstractControl` at the given `index` in the array.
         *
         * @param index Index in the array to retrieve the control
         */


        _createClass2(FormArray, [{
          key: "at",
          value: function at(index) {
            return this.controls[index];
          }
          /**
           * Insert a new `AbstractControl` at the end of the array.
           *
           * @param control Form control to be inserted
           */

        }, {
          key: "push",
          value: function push(control) {
            this.controls.push(control);

            this._registerControl(control);

            this.updateValueAndValidity();

            this._onCollectionChange();
          }
          /**
           * Insert a new `AbstractControl` at the given `index` in the array.
           *
           * @param index Index in the array to insert the control
           * @param control Form control to be inserted
           */

        }, {
          key: "insert",
          value: function insert(index, control) {
            this.controls.splice(index, 0, control);

            this._registerControl(control);

            this.updateValueAndValidity();
          }
          /**
           * Remove the control at the given `index` in the array.
           *
           * @param index Index in the array to remove the control
           */

        }, {
          key: "removeAt",
          value: function removeAt(index) {
            if (this.controls[index]) this.controls[index]._registerOnCollectionChange(function () {});
            this.controls.splice(index, 1);
            this.updateValueAndValidity();
          }
          /**
           * Replace an existing control.
           *
           * @param index Index in the array to replace the control
           * @param control The `AbstractControl` control to replace the existing control
           */

        }, {
          key: "setControl",
          value: function setControl(index, control) {
            if (this.controls[index]) this.controls[index]._registerOnCollectionChange(function () {});
            this.controls.splice(index, 1);

            if (control) {
              this.controls.splice(index, 0, control);

              this._registerControl(control);
            }

            this.updateValueAndValidity();

            this._onCollectionChange();
          }
          /**
           * Length of the control array.
           */

        }, {
          key: "length",
          get: function get() {
            return this.controls.length;
          }
          /**
           * Sets the value of the `FormArray`. It accepts an array that matches
           * the structure of the control.
           *
           * This method performs strict checks, and throws an error if you try
           * to set the value of a control that doesn't exist or if you exclude the
           * value of a control.
           *
           * @usageNotes
           * ### Set the values for the controls in the form array
           *
           * ```
           * const arr = new FormArray([
           *   new FormControl(),
           *   new FormControl()
           * ]);
           * console.log(arr.value);   // [null, null]
           *
           * arr.setValue(['Nancy', 'Drew']);
           * console.log(arr.value);   // ['Nancy', 'Drew']
           * ```
           *
           * @param value Array of values for the controls
           * @param options Configure options that determine how the control propagates changes and
           * emits events after the value changes
           *
           * * `onlySelf`: When true, each change only affects this control, and not its parent. Default
           * is false.
           * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
           * `valueChanges`
           * observables emit events with the latest status and value when the control value is updated.
           * When false, no events are emitted.
           * The configuration options are passed to the {@link AbstractControl#updateValueAndValidity
           * updateValueAndValidity} method.
           */

        }, {
          key: "setValue",
          value: function setValue(value) {
            var _this901 = this;

            var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};

            this._checkAllValuesPresent(value);

            value.forEach(function (newValue, index) {
              _this901._throwIfControlMissing(index);

              _this901.at(index).setValue(newValue, {
                onlySelf: true,
                emitEvent: options.emitEvent
              });
            });
            this.updateValueAndValidity(options);
          }
          /**
           * Patches the value of the `FormArray`. It accepts an array that matches the
           * structure of the control, and does its best to match the values to the correct
           * controls in the group.
           *
           * It accepts both super-sets and sub-sets of the array without throwing an error.
           *
           * @usageNotes
           * ### Patch the values for controls in a form array
           *
           * ```
           * const arr = new FormArray([
           *    new FormControl(),
           *    new FormControl()
           * ]);
           * console.log(arr.value);   // [null, null]
           *
           * arr.patchValue(['Nancy']);
           * console.log(arr.value);   // ['Nancy', null]
           * ```
           *
           * @param value Array of latest values for the controls
           * @param options Configure options that determine how the control propagates changes and
           * emits events after the value changes
           *
           * * `onlySelf`: When true, each change only affects this control, and not its parent. Default
           * is false.
           * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
           * `valueChanges`
           * observables emit events with the latest status and value when the control value is updated.
           * When false, no events are emitted.
           * The configuration options are passed to the {@link AbstractControl#updateValueAndValidity
           * updateValueAndValidity} method.
           */

        }, {
          key: "patchValue",
          value: function patchValue(value) {
            var _this902 = this;

            var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
            value.forEach(function (newValue, index) {
              if (_this902.at(index)) {
                _this902.at(index).patchValue(newValue, {
                  onlySelf: true,
                  emitEvent: options.emitEvent
                });
              }
            });
            this.updateValueAndValidity(options);
          }
          /**
           * Resets the `FormArray` and all descendants are marked `pristine` and `untouched`, and the
           * value of all descendants to null or null maps.
           *
           * You reset to a specific form state by passing in an array of states
           * that matches the structure of the control. The state is a standalone value
           * or a form state object with both a value and a disabled status.
           *
           * @usageNotes
           * ### Reset the values in a form array
           *
           * ```ts
           * const arr = new FormArray([
           *    new FormControl(),
           *    new FormControl()
           * ]);
           * arr.reset(['name', 'last name']);
           *
           * console.log(this.arr.value);  // ['name', 'last name']
           * ```
           *
           * ### Reset the values in a form array and the disabled status for the first control
           *
           * ```
           * this.arr.reset([
           *   {value: 'name', disabled: true},
           *   'last'
           * ]);
           *
           * console.log(this.arr.value);  // ['name', 'last name']
           * console.log(this.arr.get(0).status);  // 'DISABLED'
           * ```
           *
           * @param value Array of values for the controls
           * @param options Configure options that determine how the control propagates changes and
           * emits events after the value changes
           *
           * * `onlySelf`: When true, each change only affects this control, and not its parent. Default
           * is false.
           * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
           * `valueChanges`
           * observables emit events with the latest status and value when the control is reset.
           * When false, no events are emitted.
           * The configuration options are passed to the {@link AbstractControl#updateValueAndValidity
           * updateValueAndValidity} method.
           */

        }, {
          key: "reset",
          value: function reset() {
            var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
            var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};

            this._forEachChild(function (control, index) {
              control.reset(value[index], {
                onlySelf: true,
                emitEvent: options.emitEvent
              });
            });

            this._updatePristine(options);

            this._updateTouched(options);

            this.updateValueAndValidity(options);
          }
          /**
           * The aggregate value of the array, including any disabled controls.
           *
           * Reports all values regardless of disabled status.
           * For enabled controls only, the `value` property is the best way to get the value of the array.
           */

        }, {
          key: "getRawValue",
          value: function getRawValue() {
            return this.controls.map(function (control) {
              return control instanceof FormControl ? control.value : control.getRawValue();
            });
          }
          /**
           * Remove all controls in the `FormArray`.
           *
           * @usageNotes
           * ### Remove all elements from a FormArray
           *
           * ```ts
           * const arr = new FormArray([
           *    new FormControl(),
           *    new FormControl()
           * ]);
           * console.log(arr.length);  // 2
           *
           * arr.clear();
           * console.log(arr.length);  // 0
           * ```
           *
           * It's a simpler and more efficient alternative to removing all elements one by one:
           *
           * ```ts
           * const arr = new FormArray([
           *    new FormControl(),
           *    new FormControl()
           * ]);
           *
           * while (arr.length) {
           *    arr.removeAt(0);
           * }
           * ```
           */

        }, {
          key: "clear",
          value: function clear() {
            if (this.controls.length < 1) return;

            this._forEachChild(function (control) {
              return control._registerOnCollectionChange(function () {});
            });

            this.controls.splice(0);
            this.updateValueAndValidity();
          }
          /** @internal */

        }, {
          key: "_syncPendingControls",
          value: function _syncPendingControls() {
            var subtreeUpdated = this.controls.reduce(function (updated, child) {
              return child._syncPendingControls() ? true : updated;
            }, false);
            if (subtreeUpdated) this.updateValueAndValidity({
              onlySelf: true
            });
            return subtreeUpdated;
          }
          /** @internal */

        }, {
          key: "_throwIfControlMissing",
          value: function _throwIfControlMissing(index) {
            if (!this.controls.length) {
              throw new Error("\n        There are no form controls registered with this array yet. If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");
            }

            if (!this.at(index)) {
              throw new Error("Cannot find form control at index ".concat(index));
            }
          }
          /** @internal */

        }, {
          key: "_forEachChild",
          value: function _forEachChild(cb) {
            this.controls.forEach(function (control, index) {
              cb(control, index);
            });
          }
          /** @internal */

        }, {
          key: "_updateValue",
          value: function _updateValue() {
            var _this903 = this;

            this.value = this.controls.filter(function (control) {
              return control.enabled || _this903.disabled;
            }).map(function (control) {
              return control.value;
            });
          }
          /** @internal */

        }, {
          key: "_anyControls",
          value: function _anyControls(condition) {
            return this.controls.some(function (control) {
              return control.enabled && condition(control);
            });
          }
          /** @internal */

        }, {
          key: "_setUpControls",
          value: function _setUpControls() {
            var _this904 = this;

            this._forEachChild(function (control) {
              return _this904._registerControl(control);
            });
          }
          /** @internal */

        }, {
          key: "_checkAllValuesPresent",
          value: function _checkAllValuesPresent(value) {
            this._forEachChild(function (control, i) {
              if (value[i] === undefined) {
                throw new Error("Must supply a value for form control at index: ".concat(i, "."));
              }
            });
          }
          /** @internal */

        }, {
          key: "_allControlsDisabled",
          value: function _allControlsDisabled() {
            var _iterator87 = _createForOfIteratorHelper(this.controls),
                _step86;

            try {
              for (_iterator87.s(); !(_step86 = _iterator87.n()).done;) {
                var control = _step86.value;
                if (control.enabled) return false;
              }
            } catch (err) {
              _iterator87.e(err);
            } finally {
              _iterator87.f();
            }

            return this.controls.length > 0 || this.disabled;
          }
        }, {
          key: "_registerControl",
          value: function _registerControl(control) {
            control.setParent(this);

            control._registerOnCollectionChange(this._onCollectionChange);
          }
        }]);

        return FormArray;
      }(AbstractControl);
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var NUMBER_VALUE_ACCESSOR = {
        provide: NG_VALUE_ACCESSOR,
        useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(function () {
          return NumberValueAccessor;
        }),
        multi: true
      };
      /**
       * @description
       * The `ControlValueAccessor` for writing a number value and listening to number input changes.
       * The value accessor is used by the `FormControlDirective`, `FormControlName`, and `NgModel`
       * directives.
       *
       * @usageNotes
       *
       * ### Using a number input with a reactive form.
       *
       * The following example shows how to use a number input with a reactive form.
       *
       * ```ts
       * const totalCountControl = new FormControl();
       * ```
       *
       * ```
       * <input type="number" [formControl]="totalCountControl">
       * ```
       *
       * @ngModule ReactiveFormsModule
       * @ngModule FormsModule
       * @publicApi
       */

      var NumberValueAccessor = /*#__PURE__*/function () {
        function NumberValueAccessor(_renderer, _elementRef) {
          _classCallCheck2(this, NumberValueAccessor);

          this._renderer = _renderer;
          this._elementRef = _elementRef;
          /**
           * The registered callback function called when a change or input event occurs on the input
           * element.
           * @nodoc
           */

          this.onChange = function (_) {};
          /**
           * The registered callback function called when a blur event occurs on the input element.
           * @nodoc
           */


          this.onTouched = function () {};
        }
        /**
         * Sets the "value" property on the input element.
         * @nodoc
         */


        _createClass2(NumberValueAccessor, [{
          key: "writeValue",
          value: function writeValue(value) {
            // The value needs to be normalized for IE9, otherwise it is set to 'null' when null
            var normalizedValue = value == null ? '' : value;

            this._renderer.setProperty(this._elementRef.nativeElement, 'value', normalizedValue);
          }
          /**
           * Registers a function called when the control value changes.
           * @nodoc
           */

        }, {
          key: "registerOnChange",
          value: function registerOnChange(fn) {
            this.onChange = function (value) {
              fn(value == '' ? null : parseFloat(value));
            };
          }
          /**
           * Registers a function called when the control is touched.
           * @nodoc
           */

        }, {
          key: "registerOnTouched",
          value: function registerOnTouched(fn) {
            this.onTouched = fn;
          }
          /**
           * Sets the "disabled" property on the input element.
           * @nodoc
           */

        }, {
          key: "setDisabledState",
          value: function setDisabledState(isDisabled) {
            this._renderer.setProperty(this._elementRef.nativeElement, 'disabled', isDisabled);
          }
        }]);

        return NumberValueAccessor;
      }();

      NumberValueAccessor.ɵfac = function NumberValueAccessor_Factory(t) {
        return new (t || NumberValueAccessor)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]));
      };

      NumberValueAccessor.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: NumberValueAccessor,
        selectors: [["input", "type", "number", "formControlName", ""], ["input", "type", "number", "formControl", ""], ["input", "type", "number", "ngModel", ""]],
        hostBindings: function NumberValueAccessor_HostBindings(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("input", function NumberValueAccessor_input_HostBindingHandler($event) {
              return ctx.onChange($event.target.value);
            })("blur", function NumberValueAccessor_blur_HostBindingHandler() {
              return ctx.onTouched();
            });
          }
        },
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([NUMBER_VALUE_ACCESSOR])]
      });

      NumberValueAccessor.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NumberValueAccessor, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
          args: [{
            selector: 'input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]',
            host: {
              '(input)': 'onChange($event.target.value)',
              '(blur)': 'onTouched()'
            },
            providers: [NUMBER_VALUE_ACCESSOR]
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
          }];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var RADIO_VALUE_ACCESSOR = {
        provide: NG_VALUE_ACCESSOR,
        useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(function () {
          return RadioControlValueAccessor;
        }),
        multi: true
      };

      function throwNameError() {
        throw new Error("\n      If you define both a name and a formControlName attribute on your radio button, their values\n      must match. Ex: <input type=\"radio\" formControlName=\"food\" name=\"food\">\n    ");
      }
      /**
       * @description
       * Class used by Angular to track radio buttons. For internal use only.
       */


      var RadioControlRegistry = /*#__PURE__*/function () {
        function RadioControlRegistry() {
          _classCallCheck2(this, RadioControlRegistry);

          this._accessors = [];
        }
        /**
         * @description
         * Adds a control to the internal registry. For internal use only.
         */


        _createClass2(RadioControlRegistry, [{
          key: "add",
          value: function add(control, accessor) {
            this._accessors.push([control, accessor]);
          }
          /**
           * @description
           * Removes a control from the internal registry. For internal use only.
           */

        }, {
          key: "remove",
          value: function remove(accessor) {
            for (var i = this._accessors.length - 1; i >= 0; --i) {
              if (this._accessors[i][1] === accessor) {
                this._accessors.splice(i, 1);

                return;
              }
            }
          }
          /**
           * @description
           * Selects a radio button. For internal use only.
           */

        }, {
          key: "select",
          value: function select(accessor) {
            var _this905 = this;

            this._accessors.forEach(function (c) {
              if (_this905._isSameGroup(c, accessor) && c[1] !== accessor) {
                c[1].fireUncheck(accessor.value);
              }
            });
          }
        }, {
          key: "_isSameGroup",
          value: function _isSameGroup(controlPair, accessor) {
            if (!controlPair[0].control) return false;
            return controlPair[0]._parent === accessor._control._parent && controlPair[1].name === accessor.name;
          }
        }]);

        return RadioControlRegistry;
      }();

      RadioControlRegistry.ɵfac = function RadioControlRegistry_Factory(t) {
        return new (t || RadioControlRegistry)();
      };

      RadioControlRegistry.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
        token: RadioControlRegistry,
        factory: RadioControlRegistry.ɵfac
      });
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](RadioControlRegistry, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
        }], function () {
          return [];
        }, null);
      })();
      /**
       * @description
       * The `ControlValueAccessor` for writing radio control values and listening to radio control
       * changes. The value accessor is used by the `FormControlDirective`, `FormControlName`, and
       * `NgModel` directives.
       *
       * @usageNotes
       *
       * ### Using radio buttons with reactive form directives
       *
       * The follow example shows how to use radio buttons in a reactive form. When using radio buttons in
       * a reactive form, radio buttons in the same group should have the same `formControlName`.
       * Providing a `name` attribute is optional.
       *
       * {@example forms/ts/reactiveRadioButtons/reactive_radio_button_example.ts region='Reactive'}
       *
       * @ngModule ReactiveFormsModule
       * @ngModule FormsModule
       * @publicApi
       */


      var RadioControlValueAccessor = /*#__PURE__*/function () {
        function RadioControlValueAccessor(_renderer, _elementRef, _registry, _injector) {
          _classCallCheck2(this, RadioControlValueAccessor);

          this._renderer = _renderer;
          this._elementRef = _elementRef;
          this._registry = _registry;
          this._injector = _injector;
          /**
           * The registered callback function called when a change event occurs on the input element.
           * @nodoc
           */

          this.onChange = function () {};
          /**
           * The registered callback function called when a blur event occurs on the input element.
           * @nodoc
           */


          this.onTouched = function () {};
        }
        /** @nodoc */


        _createClass2(RadioControlValueAccessor, [{
          key: "ngOnInit",
          value: function ngOnInit() {
            this._control = this._injector.get(NgControl);

            this._checkName();

            this._registry.add(this._control, this);
          }
          /** @nodoc */

        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            this._registry.remove(this);
          }
          /**
           * Sets the "checked" property value on the radio input element.
           * @nodoc
           */

        }, {
          key: "writeValue",
          value: function writeValue(value) {
            this._state = value === this.value;

            this._renderer.setProperty(this._elementRef.nativeElement, 'checked', this._state);
          }
          /**
           * Registers a function called when the control value changes.
           * @nodoc
           */

        }, {
          key: "registerOnChange",
          value: function registerOnChange(fn) {
            var _this906 = this;

            this._fn = fn;

            this.onChange = function () {
              fn(_this906.value);

              _this906._registry.select(_this906);
            };
          }
          /**
           * Sets the "value" on the radio input element and unchecks it.
           *
           * @param value
           */

        }, {
          key: "fireUncheck",
          value: function fireUncheck(value) {
            this.writeValue(value);
          }
          /**
           * Registers a function called when the control is touched.
           * @nodoc
           */

        }, {
          key: "registerOnTouched",
          value: function registerOnTouched(fn) {
            this.onTouched = fn;
          }
          /**
           * Sets the "disabled" property on the input element.
           * @nodoc
           */

        }, {
          key: "setDisabledState",
          value: function setDisabledState(isDisabled) {
            this._renderer.setProperty(this._elementRef.nativeElement, 'disabled', isDisabled);
          }
        }, {
          key: "_checkName",
          value: function _checkName() {
            if (this.name && this.formControlName && this.name !== this.formControlName && (typeof ngDevMode === 'undefined' || ngDevMode)) {
              throwNameError();
            }

            if (!this.name && this.formControlName) this.name = this.formControlName;
          }
        }]);

        return RadioControlValueAccessor;
      }();

      RadioControlValueAccessor.ɵfac = function RadioControlValueAccessor_Factory(t) {
        return new (t || RadioControlValueAccessor)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](RadioControlRegistry), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injector"]));
      };

      RadioControlValueAccessor.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: RadioControlValueAccessor,
        selectors: [["input", "type", "radio", "formControlName", ""], ["input", "type", "radio", "formControl", ""], ["input", "type", "radio", "ngModel", ""]],
        hostBindings: function RadioControlValueAccessor_HostBindings(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function RadioControlValueAccessor_change_HostBindingHandler() {
              return ctx.onChange();
            })("blur", function RadioControlValueAccessor_blur_HostBindingHandler() {
              return ctx.onTouched();
            });
          }
        },
        inputs: {
          name: "name",
          formControlName: "formControlName",
          value: "value"
        },
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([RADIO_VALUE_ACCESSOR])]
      });

      RadioControlValueAccessor.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
        }, {
          type: RadioControlRegistry
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injector"]
        }];
      };

      RadioControlValueAccessor.propDecorators = {
        name: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }],
        formControlName: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }],
        value: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](RadioControlValueAccessor, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
          args: [{
            selector: 'input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]',
            host: {
              '(change)': 'onChange()',
              '(blur)': 'onTouched()'
            },
            providers: [RADIO_VALUE_ACCESSOR]
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
          }, {
            type: RadioControlRegistry
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injector"]
          }];
        }, {
          name: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }],
          formControlName: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }],
          value: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }]
        });
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var RANGE_VALUE_ACCESSOR = {
        provide: NG_VALUE_ACCESSOR,
        useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(function () {
          return RangeValueAccessor;
        }),
        multi: true
      };
      /**
       * @description
       * The `ControlValueAccessor` for writing a range value and listening to range input changes.
       * The value accessor is used by the `FormControlDirective`, `FormControlName`, and  `NgModel`
       * directives.
       *
       * @usageNotes
       *
       * ### Using a range input with a reactive form
       *
       * The following example shows how to use a range input with a reactive form.
       *
       * ```ts
       * const ageControl = new FormControl();
       * ```
       *
       * ```
       * <input type="range" [formControl]="ageControl">
       * ```
       *
       * @ngModule ReactiveFormsModule
       * @ngModule FormsModule
       * @publicApi
       */

      var RangeValueAccessor = /*#__PURE__*/function () {
        function RangeValueAccessor(_renderer, _elementRef) {
          _classCallCheck2(this, RangeValueAccessor);

          this._renderer = _renderer;
          this._elementRef = _elementRef;
          /**
           * The registered callback function called when a change or input event occurs on the input
           * element.
           * @nodoc
           */

          this.onChange = function (_) {};
          /**
           * The registered callback function called when a blur event occurs on the input element.
           * @nodoc
           */


          this.onTouched = function () {};
        }
        /**
         * Sets the "value" property on the input element.
         * @nodoc
         */


        _createClass2(RangeValueAccessor, [{
          key: "writeValue",
          value: function writeValue(value) {
            this._renderer.setProperty(this._elementRef.nativeElement, 'value', parseFloat(value));
          }
          /**
           * Registers a function called when the control value changes.
           * @nodoc
           */

        }, {
          key: "registerOnChange",
          value: function registerOnChange(fn) {
            this.onChange = function (value) {
              fn(value == '' ? null : parseFloat(value));
            };
          }
          /**
           * Registers a function called when the control is touched.
           * @nodoc
           */

        }, {
          key: "registerOnTouched",
          value: function registerOnTouched(fn) {
            this.onTouched = fn;
          }
          /**
           * Sets the "disabled" property on the range input element.
           * @nodoc
           */

        }, {
          key: "setDisabledState",
          value: function setDisabledState(isDisabled) {
            this._renderer.setProperty(this._elementRef.nativeElement, 'disabled', isDisabled);
          }
        }]);

        return RangeValueAccessor;
      }();

      RangeValueAccessor.ɵfac = function RangeValueAccessor_Factory(t) {
        return new (t || RangeValueAccessor)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]));
      };

      RangeValueAccessor.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: RangeValueAccessor,
        selectors: [["input", "type", "range", "formControlName", ""], ["input", "type", "range", "formControl", ""], ["input", "type", "range", "ngModel", ""]],
        hostBindings: function RangeValueAccessor_HostBindings(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function RangeValueAccessor_change_HostBindingHandler($event) {
              return ctx.onChange($event.target.value);
            })("input", function RangeValueAccessor_input_HostBindingHandler($event) {
              return ctx.onChange($event.target.value);
            })("blur", function RangeValueAccessor_blur_HostBindingHandler() {
              return ctx.onTouched();
            });
          }
        },
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([RANGE_VALUE_ACCESSOR])]
      });

      RangeValueAccessor.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](RangeValueAccessor, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
          args: [{
            selector: 'input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]',
            host: {
              '(change)': 'onChange($event.target.value)',
              '(input)': 'onChange($event.target.value)',
              '(blur)': 'onTouched()'
            },
            providers: [RANGE_VALUE_ACCESSOR]
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
          }];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var FormErrorExamples = {
        formControlName: "\n    <div [formGroup]=\"myGroup\">\n      <input formControlName=\"firstName\">\n    </div>\n\n    In your class:\n\n    this.myGroup = new FormGroup({\n       firstName: new FormControl()\n    });",
        formGroupName: "\n    <div [formGroup]=\"myGroup\">\n       <div formGroupName=\"person\">\n          <input formControlName=\"firstName\">\n       </div>\n    </div>\n\n    In your class:\n\n    this.myGroup = new FormGroup({\n       person: new FormGroup({ firstName: new FormControl() })\n    });",
        formArrayName: "\n    <div [formGroup]=\"myGroup\">\n      <div formArrayName=\"cities\">\n        <div *ngFor=\"let city of cityArray.controls; index as i\">\n          <input [formControlName]=\"i\">\n        </div>\n      </div>\n    </div>\n\n    In your class:\n\n    this.cityArray = new FormArray([new FormControl('SF')]);\n    this.myGroup = new FormGroup({\n      cities: this.cityArray\n    });",
        ngModelGroup: "\n    <form>\n       <div ngModelGroup=\"person\">\n          <input [(ngModel)]=\"person.name\" name=\"firstName\">\n       </div>\n    </form>",
        ngModelWithFormGroup: "\n    <div [formGroup]=\"myGroup\">\n       <input formControlName=\"firstName\">\n       <input [(ngModel)]=\"showMoreControls\" [ngModelOptions]=\"{standalone: true}\">\n    </div>\n  "
      };
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      var ReactiveErrors = /*#__PURE__*/function () {
        function ReactiveErrors() {
          _classCallCheck2(this, ReactiveErrors);
        }

        _createClass2(ReactiveErrors, null, [{
          key: "controlParentException",
          value: function controlParentException() {
            throw new Error("formControlName must be used with a parent formGroup directive.  You'll want to add a formGroup\n       directive and pass it an existing FormGroup instance (you can create one in your class).\n\n      Example:\n\n      ".concat(FormErrorExamples.formControlName));
          }
        }, {
          key: "ngModelGroupException",
          value: function ngModelGroupException() {
            throw new Error("formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n       that also have a \"form\" prefix: formGroupName, formArrayName, or formGroup.\n\n       Option 1:  Update the parent to be formGroupName (reactive form strategy)\n\n        ".concat(FormErrorExamples.formGroupName, "\n\n        Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n        ").concat(FormErrorExamples.ngModelGroup));
          }
        }, {
          key: "missingFormException",
          value: function missingFormException() {
            throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n       Example:\n\n       ".concat(FormErrorExamples.formControlName));
          }
        }, {
          key: "groupParentException",
          value: function groupParentException() {
            throw new Error("formGroupName must be used with a parent formGroup directive.  You'll want to add a formGroup\n      directive and pass it an existing FormGroup instance (you can create one in your class).\n\n      Example:\n\n      ".concat(FormErrorExamples.formGroupName));
          }
        }, {
          key: "arrayParentException",
          value: function arrayParentException() {
            throw new Error("formArrayName must be used with a parent formGroup directive.  You'll want to add a formGroup\n       directive and pass it an existing FormGroup instance (you can create one in your class).\n\n        Example:\n\n        ".concat(FormErrorExamples.formArrayName));
          }
        }, {
          key: "disabledAttrWarning",
          value: function disabledAttrWarning() {
            console.warn("\n      It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n      when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n      you. We recommend using this approach to avoid 'changed after checked' errors.\n\n      Example:\n      form = new FormGroup({\n        first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n        last: new FormControl('Drew', Validators.required)\n      });\n    ");
          }
        }, {
          key: "ngModelWarning",
          value: function ngModelWarning(directiveName) {
            console.warn("\n    It looks like you're using ngModel on the same form field as ".concat(directiveName, ".\n    Support for using the ngModel input property and ngModelChange event with\n    reactive form directives has been deprecated in Angular v6 and will be removed\n    in a future version of Angular.\n\n    For more information on this, see our API docs here:\n    https://angular.io/api/forms/").concat(directiveName === 'formControl' ? 'FormControlDirective' : 'FormControlName', "#use-with-ngmodel\n    "));
          }
        }]);

        return ReactiveErrors;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var SELECT_VALUE_ACCESSOR = {
        provide: NG_VALUE_ACCESSOR,
        useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(function () {
          return SelectControlValueAccessor;
        }),
        multi: true
      };

      function _buildValueString(id, value) {
        if (id == null) return "".concat(value);
        if (value && typeof value === 'object') value = 'Object';
        return "".concat(id, ": ").concat(value).slice(0, 50);
      }

      function _extractId(valueString) {
        return valueString.split(':')[0];
      }
      /**
       * @description
       * The `ControlValueAccessor` for writing select control values and listening to select control
       * changes. The value accessor is used by the `FormControlDirective`, `FormControlName`, and
       * `NgModel` directives.
       *
       * @usageNotes
       *
       * ### Using select controls in a reactive form
       *
       * The following examples show how to use a select control in a reactive form.
       *
       * {@example forms/ts/reactiveSelectControl/reactive_select_control_example.ts region='Component'}
       *
       * ### Using select controls in a template-driven form
       *
       * To use a select in a template-driven form, simply add an `ngModel` and a `name`
       * attribute to the main `<select>` tag.
       *
       * {@example forms/ts/selectControl/select_control_example.ts region='Component'}
       *
       * ### Customizing option selection
       *
       * Angular uses object identity to select option. It's possible for the identities of items
       * to change while the data does not. This can happen, for example, if the items are produced
       * from an RPC to the server, and that RPC is re-run. Even if the data hasn't changed, the
       * second response will produce objects with different identities.
       *
       * To customize the default option comparison algorithm, `<select>` supports `compareWith` input.
       * `compareWith` takes a **function** which has two arguments: `option1` and `option2`.
       * If `compareWith` is given, Angular selects option by the return value of the function.
       *
       * ```ts
       * const selectedCountriesControl = new FormControl();
       * ```
       *
       * ```
       * <select [compareWith]="compareFn"  [formControl]="selectedCountriesControl">
       *     <option *ngFor="let country of countries" [ngValue]="country">
       *         {{country.name}}
       *     </option>
       * </select>
       *
       * compareFn(c1: Country, c2: Country): boolean {
       *     return c1 && c2 ? c1.id === c2.id : c1 === c2;
       * }
       * ```
       *
       * **Note:** We listen to the 'change' event because 'input' events aren't fired
       * for selects in Firefox and IE:
       * https://bugzilla.mozilla.org/show_bug.cgi?id=1024350
       * https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/4660045/
       *
       * @ngModule ReactiveFormsModule
       * @ngModule FormsModule
       * @publicApi
       */


      var SelectControlValueAccessor = /*#__PURE__*/function () {
        function SelectControlValueAccessor(_renderer, _elementRef) {
          _classCallCheck2(this, SelectControlValueAccessor);

          this._renderer = _renderer;
          this._elementRef = _elementRef;
          /** @internal */

          this._optionMap = new Map();
          /** @internal */

          this._idCounter = 0;
          /**
           * The registered callback function called when a change event occurs on the input element.
           * @nodoc
           */

          this.onChange = function (_) {};
          /**
           * The registered callback function called when a blur event occurs on the input element.
           * @nodoc
           */


          this.onTouched = function () {};

          this._compareWith = Object.is;
        }
        /**
         * @description
         * Tracks the option comparison algorithm for tracking identities when
         * checking for changes.
         */


        _createClass2(SelectControlValueAccessor, [{
          key: "compareWith",
          set: function set(fn) {
            if (typeof fn !== 'function' && (typeof ngDevMode === 'undefined' || ngDevMode)) {
              throw new Error("compareWith must be a function, but received ".concat(JSON.stringify(fn)));
            }

            this._compareWith = fn;
          }
          /**
           * Sets the "value" property on the input element. The "selectedIndex"
           * property is also set if an ID is provided on the option element.
           * @nodoc
           */

        }, {
          key: "writeValue",
          value: function writeValue(value) {
            this.value = value;

            var id = this._getOptionId(value);

            if (id == null) {
              this._renderer.setProperty(this._elementRef.nativeElement, 'selectedIndex', -1);
            }

            var valueString = _buildValueString(id, value);

            this._renderer.setProperty(this._elementRef.nativeElement, 'value', valueString);
          }
          /**
           * Registers a function called when the control value changes.
           * @nodoc
           */

        }, {
          key: "registerOnChange",
          value: function registerOnChange(fn) {
            var _this907 = this;

            this.onChange = function (valueString) {
              _this907.value = _this907._getOptionValue(valueString);
              fn(_this907.value);
            };
          }
          /**
           * Registers a function called when the control is touched.
           * @nodoc
           */

        }, {
          key: "registerOnTouched",
          value: function registerOnTouched(fn) {
            this.onTouched = fn;
          }
          /**
           * Sets the "disabled" property on the select input element.
           * @nodoc
           */

        }, {
          key: "setDisabledState",
          value: function setDisabledState(isDisabled) {
            this._renderer.setProperty(this._elementRef.nativeElement, 'disabled', isDisabled);
          }
          /** @internal */

        }, {
          key: "_registerOption",
          value: function _registerOption() {
            return (this._idCounter++).toString();
          }
          /** @internal */

        }, {
          key: "_getOptionId",
          value: function _getOptionId(value) {
            for (var _i49 = 0, _Array$from = Array.from(this._optionMap.keys()); _i49 < _Array$from.length; _i49++) {
              var id = _Array$from[_i49];
              if (this._compareWith(this._optionMap.get(id), value)) return id;
            }

            return null;
          }
          /** @internal */

        }, {
          key: "_getOptionValue",
          value: function _getOptionValue(valueString) {
            var id = _extractId(valueString);

            return this._optionMap.has(id) ? this._optionMap.get(id) : valueString;
          }
        }]);

        return SelectControlValueAccessor;
      }();

      SelectControlValueAccessor.ɵfac = function SelectControlValueAccessor_Factory(t) {
        return new (t || SelectControlValueAccessor)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]));
      };

      SelectControlValueAccessor.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: SelectControlValueAccessor,
        selectors: [["select", "formControlName", "", 3, "multiple", ""], ["select", "formControl", "", 3, "multiple", ""], ["select", "ngModel", "", 3, "multiple", ""]],
        hostBindings: function SelectControlValueAccessor_HostBindings(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function SelectControlValueAccessor_change_HostBindingHandler($event) {
              return ctx.onChange($event.target.value);
            })("blur", function SelectControlValueAccessor_blur_HostBindingHandler() {
              return ctx.onTouched();
            });
          }
        },
        inputs: {
          compareWith: "compareWith"
        },
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([SELECT_VALUE_ACCESSOR])]
      });

      SelectControlValueAccessor.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
        }];
      };

      SelectControlValueAccessor.propDecorators = {
        compareWith: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](SelectControlValueAccessor, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
          args: [{
            selector: 'select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]',
            host: {
              '(change)': 'onChange($event.target.value)',
              '(blur)': 'onTouched()'
            },
            providers: [SELECT_VALUE_ACCESSOR]
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
          }];
        }, {
          compareWith: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }]
        });
      })();
      /**
       * @description
       * Marks `<option>` as dynamic, so Angular can be notified when options change.
       *
       * @see `SelectControlValueAccessor`
       *
       * @ngModule ReactiveFormsModule
       * @ngModule FormsModule
       * @publicApi
       */


      var NgSelectOption = /*#__PURE__*/function () {
        function NgSelectOption(_element, _renderer, _select) {
          _classCallCheck2(this, NgSelectOption);

          this._element = _element;
          this._renderer = _renderer;
          this._select = _select;
          if (this._select) this.id = this._select._registerOption();
        }
        /**
         * @description
         * Tracks the value bound to the option element. Unlike the value binding,
         * ngValue supports binding to objects.
         */


        _createClass2(NgSelectOption, [{
          key: "ngValue",
          set: function set(value) {
            if (this._select == null) return;

            this._select._optionMap.set(this.id, value);

            this._setElementValue(_buildValueString(this.id, value));

            this._select.writeValue(this._select.value);
          }
          /**
           * @description
           * Tracks simple string values bound to the option element.
           * For objects, use the `ngValue` input binding.
           */

        }, {
          key: "value",
          set: function set(value) {
            this._setElementValue(value);

            if (this._select) this._select.writeValue(this._select.value);
          }
          /** @internal */

        }, {
          key: "_setElementValue",
          value: function _setElementValue(value) {
            this._renderer.setProperty(this._element.nativeElement, 'value', value);
          }
          /** @nodoc */

        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            if (this._select) {
              this._select._optionMap["delete"](this.id);

              this._select.writeValue(this._select.value);
            }
          }
        }]);

        return NgSelectOption;
      }();

      NgSelectOption.ɵfac = function NgSelectOption_Factory(t) {
        return new (t || NgSelectOption)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](SelectControlValueAccessor, 9));
      };

      NgSelectOption.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: NgSelectOption,
        selectors: [["option"]],
        inputs: {
          ngValue: "ngValue",
          value: "value"
        }
      });

      NgSelectOption.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]
        }, {
          type: SelectControlValueAccessor,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Host"]
          }]
        }];
      };

      NgSelectOption.propDecorators = {
        ngValue: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
          args: ['ngValue']
        }],
        value: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
          args: ['value']
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgSelectOption, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
          args: [{
            selector: 'option'
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]
          }, {
            type: SelectControlValueAccessor,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Host"]
            }]
          }];
        }, {
          ngValue: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
            args: ['ngValue']
          }],
          value: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
            args: ['value']
          }]
        });
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var SELECT_MULTIPLE_VALUE_ACCESSOR = {
        provide: NG_VALUE_ACCESSOR,
        useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(function () {
          return SelectMultipleControlValueAccessor;
        }),
        multi: true
      };

      function _buildValueString$1(id, value) {
        if (id == null) return "".concat(value);
        if (typeof value === 'string') value = "'".concat(value, "'");
        if (value && typeof value === 'object') value = 'Object';
        return "".concat(id, ": ").concat(value).slice(0, 50);
      }

      function _extractId$1(valueString) {
        return valueString.split(':')[0];
      }
      /** Mock interface for HTMLCollection */


      var HTMLCollection = function HTMLCollection() {
        _classCallCheck2(this, HTMLCollection);
      };
      /**
       * @description
       * The `ControlValueAccessor` for writing multi-select control values and listening to multi-select
       * control changes. The value accessor is used by the `FormControlDirective`, `FormControlName`, and
       * `NgModel` directives.
       *
       * @see `SelectControlValueAccessor`
       *
       * @usageNotes
       *
       * ### Using a multi-select control
       *
       * The follow example shows you how to use a multi-select control with a reactive form.
       *
       * ```ts
       * const countryControl = new FormControl();
       * ```
       *
       * ```
       * <select multiple name="countries" [formControl]="countryControl">
       *   <option *ngFor="let country of countries" [ngValue]="country">
       *     {{ country.name }}
       *   </option>
       * </select>
       * ```
       *
       * ### Customizing option selection
       *
       * To customize the default option comparison algorithm, `<select>` supports `compareWith` input.
       * See the `SelectControlValueAccessor` for usage.
       *
       * @ngModule ReactiveFormsModule
       * @ngModule FormsModule
       * @publicApi
       */


      var SelectMultipleControlValueAccessor = /*#__PURE__*/function () {
        function SelectMultipleControlValueAccessor(_renderer, _elementRef) {
          _classCallCheck2(this, SelectMultipleControlValueAccessor);

          this._renderer = _renderer;
          this._elementRef = _elementRef;
          /** @internal */

          this._optionMap = new Map();
          /** @internal */

          this._idCounter = 0;
          /**
           * The registered callback function called when a change event occurs on the input element.
           * @nodoc
           */

          this.onChange = function (_) {};
          /**
           * The registered callback function called when a blur event occurs on the input element.
           * @nodoc
           */


          this.onTouched = function () {};

          this._compareWith = Object.is;
        }
        /**
         * @description
         * Tracks the option comparison algorithm for tracking identities when
         * checking for changes.
         */


        _createClass2(SelectMultipleControlValueAccessor, [{
          key: "compareWith",
          set: function set(fn) {
            if (typeof fn !== 'function' && (typeof ngDevMode === 'undefined' || ngDevMode)) {
              throw new Error("compareWith must be a function, but received ".concat(JSON.stringify(fn)));
            }

            this._compareWith = fn;
          }
          /**
           * Sets the "value" property on one or of more of the select's options.
           * @nodoc
           */

        }, {
          key: "writeValue",
          value: function writeValue(value) {
            var _this908 = this;

            this.value = value;
            var optionSelectedStateSetter;

            if (Array.isArray(value)) {
              // convert values to ids
              var ids = value.map(function (v) {
                return _this908._getOptionId(v);
              });

              optionSelectedStateSetter = function optionSelectedStateSetter(opt, o) {
                opt._setSelected(ids.indexOf(o.toString()) > -1);
              };
            } else {
              optionSelectedStateSetter = function optionSelectedStateSetter(opt, o) {
                opt._setSelected(false);
              };
            }

            this._optionMap.forEach(optionSelectedStateSetter);
          }
          /**
           * Registers a function called when the control value changes
           * and writes an array of the selected options.
           * @nodoc
           */

        }, {
          key: "registerOnChange",
          value: function registerOnChange(fn) {
            var _this909 = this;

            this.onChange = function (_) {
              var selected = [];

              if (_.selectedOptions !== undefined) {
                var options = _.selectedOptions;

                for (var i = 0; i < options.length; i++) {
                  var opt = options.item(i);

                  var val = _this909._getOptionValue(opt.value);

                  selected.push(val);
                }
              } // Degrade on IE
              else {
                var _options3 = _.options;

                for (var _i50 = 0; _i50 < _options3.length; _i50++) {
                  var _opt = _options3.item(_i50);

                  if (_opt.selected) {
                    var _val = _this909._getOptionValue(_opt.value);

                    selected.push(_val);
                  }
                }
              }

              _this909.value = selected;
              fn(selected);
            };
          }
          /**
           * Registers a function called when the control is touched.
           * @nodoc
           */

        }, {
          key: "registerOnTouched",
          value: function registerOnTouched(fn) {
            this.onTouched = fn;
          }
          /**
           * Sets the "disabled" property on the select input element.
           * @nodoc
           */

        }, {
          key: "setDisabledState",
          value: function setDisabledState(isDisabled) {
            this._renderer.setProperty(this._elementRef.nativeElement, 'disabled', isDisabled);
          }
          /** @internal */

        }, {
          key: "_registerOption",
          value: function _registerOption(value) {
            var id = (this._idCounter++).toString();

            this._optionMap.set(id, value);

            return id;
          }
          /** @internal */

        }, {
          key: "_getOptionId",
          value: function _getOptionId(value) {
            for (var _i51 = 0, _Array$from2 = Array.from(this._optionMap.keys()); _i51 < _Array$from2.length; _i51++) {
              var id = _Array$from2[_i51];
              if (this._compareWith(this._optionMap.get(id)._value, value)) return id;
            }

            return null;
          }
          /** @internal */

        }, {
          key: "_getOptionValue",
          value: function _getOptionValue(valueString) {
            var id = _extractId$1(valueString);

            return this._optionMap.has(id) ? this._optionMap.get(id)._value : valueString;
          }
        }]);

        return SelectMultipleControlValueAccessor;
      }();

      SelectMultipleControlValueAccessor.ɵfac = function SelectMultipleControlValueAccessor_Factory(t) {
        return new (t || SelectMultipleControlValueAccessor)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]));
      };

      SelectMultipleControlValueAccessor.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: SelectMultipleControlValueAccessor,
        selectors: [["select", "multiple", "", "formControlName", ""], ["select", "multiple", "", "formControl", ""], ["select", "multiple", "", "ngModel", ""]],
        hostBindings: function SelectMultipleControlValueAccessor_HostBindings(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function SelectMultipleControlValueAccessor_change_HostBindingHandler($event) {
              return ctx.onChange($event.target);
            })("blur", function SelectMultipleControlValueAccessor_blur_HostBindingHandler() {
              return ctx.onTouched();
            });
          }
        },
        inputs: {
          compareWith: "compareWith"
        },
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([SELECT_MULTIPLE_VALUE_ACCESSOR])]
      });

      SelectMultipleControlValueAccessor.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
        }];
      };

      SelectMultipleControlValueAccessor.propDecorators = {
        compareWith: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](SelectMultipleControlValueAccessor, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
          args: [{
            selector: 'select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]',
            host: {
              '(change)': 'onChange($event.target)',
              '(blur)': 'onTouched()'
            },
            providers: [SELECT_MULTIPLE_VALUE_ACCESSOR]
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
          }];
        }, {
          compareWith: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }]
        });
      })();
      /**
       * @description
       * Marks `<option>` as dynamic, so Angular can be notified when options change.
       *
       * @see `SelectMultipleControlValueAccessor`
       *
       * @ngModule ReactiveFormsModule
       * @ngModule FormsModule
       * @publicApi
       */


      var ɵNgSelectMultipleOption = /*#__PURE__*/function () {
        function ɵNgSelectMultipleOption(_element, _renderer, _select) {
          _classCallCheck2(this, ɵNgSelectMultipleOption);

          this._element = _element;
          this._renderer = _renderer;
          this._select = _select;

          if (this._select) {
            this.id = this._select._registerOption(this);
          }
        }
        /**
         * @description
         * Tracks the value bound to the option element. Unlike the value binding,
         * ngValue supports binding to objects.
         */


        _createClass2(ɵNgSelectMultipleOption, [{
          key: "ngValue",
          set: function set(value) {
            if (this._select == null) return;
            this._value = value;

            this._setElementValue(_buildValueString$1(this.id, value));

            this._select.writeValue(this._select.value);
          }
          /**
           * @description
           * Tracks simple string values bound to the option element.
           * For objects, use the `ngValue` input binding.
           */

        }, {
          key: "value",
          set: function set(value) {
            if (this._select) {
              this._value = value;

              this._setElementValue(_buildValueString$1(this.id, value));

              this._select.writeValue(this._select.value);
            } else {
              this._setElementValue(value);
            }
          }
          /** @internal */

        }, {
          key: "_setElementValue",
          value: function _setElementValue(value) {
            this._renderer.setProperty(this._element.nativeElement, 'value', value);
          }
          /** @internal */

        }, {
          key: "_setSelected",
          value: function _setSelected(selected) {
            this._renderer.setProperty(this._element.nativeElement, 'selected', selected);
          }
          /** @nodoc */

        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            if (this._select) {
              this._select._optionMap["delete"](this.id);

              this._select.writeValue(this._select.value);
            }
          }
        }]);

        return ɵNgSelectMultipleOption;
      }();

      ɵNgSelectMultipleOption.ɵfac = function ɵNgSelectMultipleOption_Factory(t) {
        return new (t || ɵNgSelectMultipleOption)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](SelectMultipleControlValueAccessor, 9));
      };

      ɵNgSelectMultipleOption.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: ɵNgSelectMultipleOption,
        selectors: [["option"]],
        inputs: {
          ngValue: "ngValue",
          value: "value"
        }
      });

      ɵNgSelectMultipleOption.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]
        }, {
          type: SelectMultipleControlValueAccessor,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Host"]
          }]
        }];
      };

      ɵNgSelectMultipleOption.propDecorators = {
        ngValue: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
          args: ['ngValue']
        }],
        value: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
          args: ['value']
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ɵNgSelectMultipleOption, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
          args: [{
            selector: 'option'
          }]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]
          }, {
            type: SelectMultipleControlValueAccessor,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Host"]
            }]
          }];
        }, {
          ngValue: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
            args: ['ngValue']
          }],
          value: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
            args: ['value']
          }]
        });
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function controlPath(name, parent) {
        return [].concat(_toConsumableArray(parent.path), [name]);
      }

      function setUpControl(control, dir) {
        if (typeof ngDevMode === 'undefined' || ngDevMode) {
          if (!control) _throwError(dir, 'Cannot find control with');
          if (!dir.valueAccessor) _throwError(dir, 'No value accessor for form control with');
        }

        setUpValidators(control, dir,
        /* handleOnValidatorChange */
        true);
        dir.valueAccessor.writeValue(control.value);
        setUpViewChangePipeline(control, dir);
        setUpModelChangePipeline(control, dir);
        setUpBlurPipeline(control, dir);

        if (dir.valueAccessor.setDisabledState) {
          control.registerOnDisabledChange(function (isDisabled) {
            dir.valueAccessor.setDisabledState(isDisabled);
          });
        }
      }

      function cleanUpControl(control, dir) {
        var noop = function noop() {
          if (typeof ngDevMode === 'undefined' || ngDevMode) {
            _noControlError(dir);
          }
        };

        dir.valueAccessor.registerOnChange(noop);
        dir.valueAccessor.registerOnTouched(noop);
        cleanUpValidators(control, dir,
        /* handleOnValidatorChange */
        true);
        if (control) control._clearChangeFns();
      }

      function registerOnValidatorChange(validators, onChange) {
        validators.forEach(function (validator) {
          if (validator.registerOnValidatorChange) validator.registerOnValidatorChange(onChange);
        });
      }
      /**
       * Sets up sync and async directive validators on provided form control.
       * This function merges validators from the directive into the validators of the control.
       *
       * @param control Form control where directive validators should be setup.
       * @param dir Directive instance that contains validators to be setup.
       * @param handleOnValidatorChange Flag that determines whether directive validators should be setup
       *     to handle validator input change.
       */


      function setUpValidators(control, dir, handleOnValidatorChange) {
        var validators = getControlValidators(control);

        if (dir.validator !== null) {
          control.setValidators(mergeValidators(validators, dir.validator));
        } else if (typeof validators === 'function') {
          // If sync validators are represented by a single validator function, we force the
          // `Validators.compose` call to happen by executing the `setValidators` function with
          // an array that contains that function. We need this to avoid possible discrepancies in
          // validators behavior, so sync validators are always processed by the `Validators.compose`.
          // Note: we should consider moving this logic inside the `setValidators` function itself, so we
          // have consistent behavior on AbstractControl API level. The same applies to the async
          // validators logic below.
          control.setValidators([validators]);
        }

        var asyncValidators = getControlAsyncValidators(control);

        if (dir.asyncValidator !== null) {
          control.setAsyncValidators(mergeValidators(asyncValidators, dir.asyncValidator));
        } else if (typeof asyncValidators === 'function') {
          control.setAsyncValidators([asyncValidators]);
        } // Re-run validation when validator binding changes, e.g. minlength=3 -> minlength=4


        if (handleOnValidatorChange) {
          var onValidatorChange = function onValidatorChange() {
            return control.updateValueAndValidity();
          };

          registerOnValidatorChange(dir._rawValidators, onValidatorChange);
          registerOnValidatorChange(dir._rawAsyncValidators, onValidatorChange);
        }
      }
      /**
       * Cleans up sync and async directive validators on provided form control.
       * This function reverts the setup performed by the `setUpValidators` function, i.e.
       * removes directive-specific validators from a given control instance.
       *
       * @param control Form control from where directive validators should be removed.
       * @param dir Directive instance that contains validators to be removed.
       * @param handleOnValidatorChange Flag that determines whether directive validators should also be
       *     cleaned up to stop handling validator input change (if previously configured to do so).
       */


      function cleanUpValidators(control, dir, handleOnValidatorChange) {
        if (control !== null) {
          if (dir.validator !== null) {
            var validators = getControlValidators(control);

            if (Array.isArray(validators) && validators.length > 0) {
              // Filter out directive validator function.
              control.setValidators(validators.filter(function (validator) {
                return validator !== dir.validator;
              }));
            }
          }

          if (dir.asyncValidator !== null) {
            var asyncValidators = getControlAsyncValidators(control);

            if (Array.isArray(asyncValidators) && asyncValidators.length > 0) {
              // Filter out directive async validator function.
              control.setAsyncValidators(asyncValidators.filter(function (asyncValidator) {
                return asyncValidator !== dir.asyncValidator;
              }));
            }
          }
        }

        if (handleOnValidatorChange) {
          // Clear onValidatorChange callbacks by providing a noop function.
          var noop = function noop() {};

          registerOnValidatorChange(dir._rawValidators, noop);
          registerOnValidatorChange(dir._rawAsyncValidators, noop);
        }
      }

      function setUpViewChangePipeline(control, dir) {
        dir.valueAccessor.registerOnChange(function (newValue) {
          control._pendingValue = newValue;
          control._pendingChange = true;
          control._pendingDirty = true;
          if (control.updateOn === 'change') updateControl(control, dir);
        });
      }

      function setUpBlurPipeline(control, dir) {
        dir.valueAccessor.registerOnTouched(function () {
          control._pendingTouched = true;
          if (control.updateOn === 'blur' && control._pendingChange) updateControl(control, dir);
          if (control.updateOn !== 'submit') control.markAsTouched();
        });
      }

      function updateControl(control, dir) {
        if (control._pendingDirty) control.markAsDirty();
        control.setValue(control._pendingValue, {
          emitModelToViewChange: false
        });
        dir.viewToModelUpdate(control._pendingValue);
        control._pendingChange = false;
      }

      function setUpModelChangePipeline(control, dir) {
        control.registerOnChange(function (newValue, emitModelEvent) {
          // control -> view
          dir.valueAccessor.writeValue(newValue); // control -> ngModel

          if (emitModelEvent) dir.viewToModelUpdate(newValue);
        });
      }

      function setUpFormContainer(control, dir) {
        if (control == null && (typeof ngDevMode === 'undefined' || ngDevMode)) _throwError(dir, 'Cannot find control with');
        setUpValidators(control, dir,
        /* handleOnValidatorChange */
        false);
      }

      function _noControlError(dir) {
        return _throwError(dir, 'There is no FormControl instance attached to form control element with');
      }

      function _throwError(dir, message) {
        var messageEnd;

        if (dir.path.length > 1) {
          messageEnd = "path: '".concat(dir.path.join(' -> '), "'");
        } else if (dir.path[0]) {
          messageEnd = "name: '".concat(dir.path, "'");
        } else {
          messageEnd = 'unspecified name attribute';
        }

        throw new Error("".concat(message, " ").concat(messageEnd));
      }

      function isPropertyUpdated(changes, viewModel) {
        if (!changes.hasOwnProperty('model')) return false;
        var change = changes['model'];
        if (change.isFirstChange()) return true;
        return !Object.is(viewModel, change.currentValue);
      }

      var BUILTIN_ACCESSORS = [CheckboxControlValueAccessor, RangeValueAccessor, NumberValueAccessor, SelectControlValueAccessor, SelectMultipleControlValueAccessor, RadioControlValueAccessor];

      function isBuiltInAccessor(valueAccessor) {
        return BUILTIN_ACCESSORS.some(function (a) {
          return valueAccessor.constructor === a;
        });
      }

      function syncPendingControls(form, directives) {
        form._syncPendingControls();

        directives.forEach(function (dir) {
          var control = dir.control;

          if (control.updateOn === 'submit' && control._pendingChange) {
            dir.viewToModelUpdate(control._pendingValue);
            control._pendingChange = false;
          }
        });
      } // TODO: vsavkin remove it once https://github.com/angular/angular/issues/3011 is implemented


      function selectValueAccessor(dir, valueAccessors) {
        if (!valueAccessors) return null;
        if (!Array.isArray(valueAccessors) && (typeof ngDevMode === 'undefined' || ngDevMode)) _throwError(dir, 'Value accessor was not provided as an array for form control with');
        var defaultAccessor = undefined;
        var builtinAccessor = undefined;
        var customAccessor = undefined;
        valueAccessors.forEach(function (v) {
          if (v.constructor === DefaultValueAccessor) {
            defaultAccessor = v;
          } else if (isBuiltInAccessor(v)) {
            if (builtinAccessor && (typeof ngDevMode === 'undefined' || ngDevMode)) _throwError(dir, 'More than one built-in value accessor matches form control with');
            builtinAccessor = v;
          } else {
            if (customAccessor && (typeof ngDevMode === 'undefined' || ngDevMode)) _throwError(dir, 'More than one custom value accessor matches form control with');
            customAccessor = v;
          }
        });
        if (customAccessor) return customAccessor;
        if (builtinAccessor) return builtinAccessor;
        if (defaultAccessor) return defaultAccessor;

        if (typeof ngDevMode === 'undefined' || ngDevMode) {
          _throwError(dir, 'No valid value accessor for form control with');
        }

        return null;
      }

      function removeDir(list, el) {
        var index = list.indexOf(el);
        if (index > -1) list.splice(index, 1);
      } // TODO(kara): remove after deprecation period


      function _ngModelWarning(name, type, instance, warningConfig) {
        if (!Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["isDevMode"])() || warningConfig === 'never') return;

        if ((warningConfig === null || warningConfig === 'once') && !type._ngModelWarningSentOnce || warningConfig === 'always' && !instance._ngModelWarningSent) {
          if (typeof ngDevMode === 'undefined' || ngDevMode) {
            ReactiveErrors.ngModelWarning(name);
          }

          type._ngModelWarningSentOnce = true;
          instance._ngModelWarningSent = true;
        }
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var formDirectiveProvider = {
        provide: ControlContainer,
        useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(function () {
          return NgForm;
        })
      };

      var ɵ0 = function ɵ0() {
        return Promise.resolve(null);
      };

      var resolvedPromise = ɵ0();
      /**
       * @description
       * Creates a top-level `FormGroup` instance and binds it to a form
       * to track aggregate form value and validation status.
       *
       * As soon as you import the `FormsModule`, this directive becomes active by default on
       * all `<form>` tags.  You don't need to add a special selector.
       *
       * You optionally export the directive into a local template variable using `ngForm` as the key
       * (ex: `#myForm="ngForm"`). This is optional, but useful.  Many properties from the underlying
       * `FormGroup` instance are duplicated on the directive itself, so a reference to it
       * gives you access to the aggregate value and validity status of the form, as well as
       * user interaction properties like `dirty` and `touched`.
       *
       * To register child controls with the form, use `NgModel` with a `name`
       * attribute. You may use `NgModelGroup` to create sub-groups within the form.
       *
       * If necessary, listen to the directive's `ngSubmit` event to be notified when the user has
       * triggered a form submission. The `ngSubmit` event emits the original form
       * submission event.
       *
       * In template driven forms, all `<form>` tags are automatically tagged as `NgForm`.
       * To import the `FormsModule` but skip its usage in some forms,
       * for example, to use native HTML5 validation, add the `ngNoForm` and the `<form>`
       * tags won't create an `NgForm` directive. In reactive forms, using `ngNoForm` is
       * unnecessary because the `<form>` tags are inert. In that case, you would
       * refrain from using the `formGroup` directive.
       *
       * @usageNotes
       *
       * ### Listening for form submission
       *
       * The following example shows how to capture the form values from the "ngSubmit" event.
       *
       * {@example forms/ts/simpleForm/simple_form_example.ts region='Component'}
       *
       * ### Setting the update options
       *
       * The following example shows you how to change the "updateOn" option from its default using
       * ngFormOptions.
       *
       * ```html
       * <form [ngFormOptions]="{updateOn: 'blur'}">
       *    <input name="one" ngModel>  <!-- this ngModel will update on blur -->
       * </form>
       * ```
       *
       * ### Native DOM validation UI
       *
       * In order to prevent the native DOM form validation UI from interfering with Angular's form
       * validation, Angular automatically adds the `novalidate` attribute on any `<form>` whenever
       * `FormModule` or `ReactiveFormModule` are imported into the application.
       * If you want to explicitly enable native DOM validation UI with Angular forms, you can add the
       * `ngNativeValidate` attribute to the `<form>` element:
       *
       * ```html
       * <form ngNativeValidate>
       *   ...
       * </form>
       * ```
       *
       * @ngModule FormsModule
       * @publicApi
       */

      var NgForm = /*#__PURE__*/function (_ControlContainer) {
        _inherits2(NgForm, _ControlContainer);

        var _super432 = _createSuper2(NgForm);

        function NgForm(validators, asyncValidators) {
          var _this910;

          _classCallCheck2(this, NgForm);

          _this910 = _super432.call(this);
          /**
           * @description
           * Returns whether the form submission has been triggered.
           */

          _this910.submitted = false;
          _this910._directives = [];
          /**
           * @description
           * Event emitter for the "ngSubmit" event
           */

          _this910.ngSubmit = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
          _this910.form = new FormGroup({}, composeValidators(validators), composeAsyncValidators(asyncValidators));
          return _this910;
        }
        /** @nodoc */


        _createClass2(NgForm, [{
          key: "ngAfterViewInit",
          value: function ngAfterViewInit() {
            this._setUpdateStrategy();
          }
          /**
           * @description
           * The directive instance.
           */

        }, {
          key: "formDirective",
          get: function get() {
            return this;
          }
          /**
           * @description
           * The internal `FormGroup` instance.
           */

        }, {
          key: "control",
          get: function get() {
            return this.form;
          }
          /**
           * @description
           * Returns an array representing the path to this group. Because this directive
           * always lives at the top level of a form, it is always an empty array.
           */

        }, {
          key: "path",
          get: function get() {
            return [];
          }
          /**
           * @description
           * Returns a map of the controls in this group.
           */

        }, {
          key: "controls",
          get: function get() {
            return this.form.controls;
          }
          /**
           * @description
           * Method that sets up the control directive in this group, re-calculates its value
           * and validity, and adds the instance to the internal list of directives.
           *
           * @param dir The `NgModel` directive instance.
           */

        }, {
          key: "addControl",
          value: function addControl(dir) {
            var _this911 = this;

            resolvedPromise.then(function () {
              var container = _this911._findContainer(dir.path);

              dir.control = container.registerControl(dir.name, dir.control);
              setUpControl(dir.control, dir);
              dir.control.updateValueAndValidity({
                emitEvent: false
              });

              _this911._directives.push(dir);
            });
          }
          /**
           * @description
           * Retrieves the `FormControl` instance from the provided `NgModel` directive.
           *
           * @param dir The `NgModel` directive instance.
           */

        }, {
          key: "getControl",
          value: function getControl(dir) {
            return this.form.get(dir.path);
          }
          /**
           * @description
           * Removes the `NgModel` instance from the internal list of directives
           *
           * @param dir The `NgModel` directive instance.
           */

        }, {
          key: "removeControl",
          value: function removeControl(dir) {
            var _this912 = this;

            resolvedPromise.then(function () {
              var container = _this912._findContainer(dir.path);

              if (container) {
                container.removeControl(dir.name);
              }

              removeDir(_this912._directives, dir);
            });
          }
          /**
           * @description
           * Adds a new `NgModelGroup` directive instance to the form.
           *
           * @param dir The `NgModelGroup` directive instance.
           */

        }, {
          key: "addFormGroup",
          value: function addFormGroup(dir) {
            var _this913 = this;

            resolvedPromise.then(function () {
              var container = _this913._findContainer(dir.path);

              var group = new FormGroup({});
              setUpFormContainer(group, dir);
              container.registerControl(dir.name, group);
              group.updateValueAndValidity({
                emitEvent: false
              });
            });
          }
          /**
           * @description
           * Removes the `NgModelGroup` directive instance from the form.
           *
           * @param dir The `NgModelGroup` directive instance.
           */

        }, {
          key: "removeFormGroup",
          value: function removeFormGroup(dir) {
            var _this914 = this;

            resolvedPromise.then(function () {
              var container = _this914._findContainer(dir.path);

              if (container) {
                container.removeControl(dir.name);
              }
            });
          }
          /**
           * @description
           * Retrieves the `FormGroup` for a provided `NgModelGroup` directive instance
           *
           * @param dir The `NgModelGroup` directive instance.
           */

        }, {
          key: "getFormGroup",
          value: function getFormGroup(dir) {
            return this.form.get(dir.path);
          }
          /**
           * Sets the new value for the provided `NgControl` directive.
           *
           * @param dir The `NgControl` directive instance.
           * @param value The new value for the directive's control.
           */

        }, {
          key: "updateModel",
          value: function updateModel(dir, value) {
            var _this915 = this;

            resolvedPromise.then(function () {
              var ctrl = _this915.form.get(dir.path);

              ctrl.setValue(value);
            });
          }
          /**
           * @description
           * Sets the value for this `FormGroup`.
           *
           * @param value The new value
           */

        }, {
          key: "setValue",
          value: function setValue(value) {
            this.control.setValue(value);
          }
          /**
           * @description
           * Method called when the "submit" event is triggered on the form.
           * Triggers the `ngSubmit` emitter to emit the "submit" event as its payload.
           *
           * @param $event The "submit" event object
           */

        }, {
          key: "onSubmit",
          value: function onSubmit($event) {
            this.submitted = true;
            syncPendingControls(this.form, this._directives);
            this.ngSubmit.emit($event);
            return false;
          }
          /**
           * @description
           * Method called when the "reset" event is triggered on the form.
           */

        }, {
          key: "onReset",
          value: function onReset() {
            this.resetForm();
          }
          /**
           * @description
           * Resets the form to an initial value and resets its submitted status.
           *
           * @param value The new value for the form.
           */

        }, {
          key: "resetForm",
          value: function resetForm() {
            var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;
            this.form.reset(value);
            this.submitted = false;
          }
        }, {
          key: "_setUpdateStrategy",
          value: function _setUpdateStrategy() {
            if (this.options && this.options.updateOn != null) {
              this.form._updateOn = this.options.updateOn;
            }
          }
          /** @internal */

        }, {
          key: "_findContainer",
          value: function _findContainer(path) {
            path.pop();
            return path.length ? this.form.get(path) : this.form;
          }
        }]);

        return NgForm;
      }(ControlContainer);

      NgForm.ɵfac = function NgForm_Factory(t) {
        return new (t || NgForm)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_VALIDATORS, 10), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_ASYNC_VALIDATORS, 10));
      };

      NgForm.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: NgForm,
        selectors: [["form", 3, "ngNoForm", "", 3, "formGroup", ""], ["ng-form"], ["", "ngForm", ""]],
        hostBindings: function NgForm_HostBindings(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("submit", function NgForm_submit_HostBindingHandler($event) {
              return ctx.onSubmit($event);
            })("reset", function NgForm_reset_HostBindingHandler() {
              return ctx.onReset();
            });
          }
        },
        inputs: {
          options: ["ngFormOptions", "options"]
        },
        outputs: {
          ngSubmit: "ngSubmit"
        },
        exportAs: ["ngForm"],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([formDirectiveProvider]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
      });

      NgForm.ctorParameters = function () {
        return [{
          type: Array,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [NG_VALIDATORS]
          }]
        }, {
          type: Array,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [NG_ASYNC_VALIDATORS]
          }]
        }];
      };

      NgForm.propDecorators = {
        options: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
          args: ['ngFormOptions']
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgForm, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
          args: [{
            selector: 'form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]',
            providers: [formDirectiveProvider],
            host: {
              '(submit)': 'onSubmit($event)',
              '(reset)': 'onReset()'
            },
            outputs: ['ngSubmit'],
            exportAs: 'ngForm'
          }]
        }], function () {
          return [{
            type: Array,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [NG_VALIDATORS]
            }]
          }, {
            type: Array,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [NG_ASYNC_VALIDATORS]
            }]
          }];
        }, {
          options: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
            args: ['ngFormOptions']
          }]
        });
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @description
       * A base class for code shared between the `NgModelGroup` and `FormGroupName` directives.
       *
       * @publicApi
       */


      var AbstractFormGroupDirective = /*#__PURE__*/function (_ControlContainer2) {
        _inherits2(AbstractFormGroupDirective, _ControlContainer2);

        var _super433 = _createSuper2(AbstractFormGroupDirective);

        function AbstractFormGroupDirective() {
          _classCallCheck2(this, AbstractFormGroupDirective);

          return _super433.apply(this, arguments);
        }

        _createClass2(AbstractFormGroupDirective, [{
          key: "ngOnInit",
          value:
          /** @nodoc */
          function ngOnInit() {
            this._checkParentType(); // Register the group with its parent group.


            this.formDirective.addFormGroup(this);
          }
          /** @nodoc */

        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            if (this.formDirective) {
              // Remove the group from its parent group.
              this.formDirective.removeFormGroup(this);
            }
          }
          /**
           * @description
           * The `FormGroup` bound to this directive.
           */

        }, {
          key: "control",
          get: function get() {
            return this.formDirective.getFormGroup(this);
          }
          /**
           * @description
           * The path to this group from the top-level directive.
           */

        }, {
          key: "path",
          get: function get() {
            return controlPath(this.name == null ? this.name : this.name.toString(), this._parent);
          }
          /**
           * @description
           * The top-level directive for this group if present, otherwise null.
           */

        }, {
          key: "formDirective",
          get: function get() {
            return this._parent ? this._parent.formDirective : null;
          }
          /** @internal */

        }, {
          key: "_checkParentType",
          value: function _checkParentType() {}
        }]);

        return AbstractFormGroupDirective;
      }(ControlContainer);

      AbstractFormGroupDirective.ɵfac = function AbstractFormGroupDirective_Factory(t) {
        return ɵAbstractFormGroupDirective_BaseFactory(t || AbstractFormGroupDirective);
      };

      AbstractFormGroupDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: AbstractFormGroupDirective,
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
      });

      var ɵAbstractFormGroupDirective_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](AbstractFormGroupDirective);
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](AbstractFormGroupDirective, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var TemplateDrivenErrors = /*#__PURE__*/function () {
        function TemplateDrivenErrors() {
          _classCallCheck2(this, TemplateDrivenErrors);
        }

        _createClass2(TemplateDrivenErrors, null, [{
          key: "modelParentException",
          value: function modelParentException() {
            throw new Error("\n      ngModel cannot be used to register form controls with a parent formGroup directive.  Try using\n      formGroup's partner directive \"formControlName\" instead.  Example:\n\n      ".concat(FormErrorExamples.formControlName, "\n\n      Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n      Example:\n\n      ").concat(FormErrorExamples.ngModelWithFormGroup));
          }
        }, {
          key: "formGroupNameException",
          value: function formGroupNameException() {
            throw new Error("\n      ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n      Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n      ".concat(FormErrorExamples.formGroupName, "\n\n      Option 2:  Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n      ").concat(FormErrorExamples.ngModelGroup));
          }
        }, {
          key: "missingNameException",
          value: function missingNameException() {
            throw new Error("If ngModel is used within a form tag, either the name attribute must be set or the form\n      control must be defined as 'standalone' in ngModelOptions.\n\n      Example 1: <input [(ngModel)]=\"person.firstName\" name=\"first\">\n      Example 2: <input [(ngModel)]=\"person.firstName\" [ngModelOptions]=\"{standalone: true}\">");
          }
        }, {
          key: "modelGroupParentException",
          value: function modelGroupParentException() {
            throw new Error("\n      ngModelGroup cannot be used with a parent formGroup directive.\n\n      Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n      ".concat(FormErrorExamples.formGroupName, "\n\n      Option 2:  Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n      ").concat(FormErrorExamples.ngModelGroup));
          }
        }]);

        return TemplateDrivenErrors;
      }();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var modelGroupProvider = {
        provide: ControlContainer,
        useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(function () {
          return NgModelGroup;
        })
      };
      /**
       * @description
       * Creates and binds a `FormGroup` instance to a DOM element.
       *
       * This directive can only be used as a child of `NgForm` (within `<form>` tags).
       *
       * Use this directive to validate a sub-group of your form separately from the
       * rest of your form, or if some values in your domain model make more sense
       * to consume together in a nested object.
       *
       * Provide a name for the sub-group and it will become the key
       * for the sub-group in the form's full value. If you need direct access, export the directive into
       * a local template variable using `ngModelGroup` (ex: `#myGroup="ngModelGroup"`).
       *
       * @usageNotes
       *
       * ### Consuming controls in a grouping
       *
       * The following example shows you how to combine controls together in a sub-group
       * of the form.
       *
       * {@example forms/ts/ngModelGroup/ng_model_group_example.ts region='Component'}
       *
       * @ngModule FormsModule
       * @publicApi
       */

      var NgModelGroup = /*#__PURE__*/function (_AbstractFormGroupDir) {
        _inherits2(NgModelGroup, _AbstractFormGroupDir);

        var _super434 = _createSuper2(NgModelGroup);

        function NgModelGroup(parent, validators, asyncValidators) {
          var _this916;

          _classCallCheck2(this, NgModelGroup);

          _this916 = _super434.call(this);
          _this916._parent = parent;

          _this916._setValidators(validators);

          _this916._setAsyncValidators(asyncValidators);

          return _this916;
        }
        /** @internal */


        _createClass2(NgModelGroup, [{
          key: "_checkParentType",
          value: function _checkParentType() {
            if (!(this._parent instanceof NgModelGroup) && !(this._parent instanceof NgForm) && (typeof ngDevMode === 'undefined' || ngDevMode)) {
              TemplateDrivenErrors.modelGroupParentException();
            }
          }
        }]);

        return NgModelGroup;
      }(AbstractFormGroupDirective);

      NgModelGroup.ɵfac = function NgModelGroup_Factory(t) {
        return new (t || NgModelGroup)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ControlContainer, 5), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_VALIDATORS, 10), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_ASYNC_VALIDATORS, 10));
      };

      NgModelGroup.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: NgModelGroup,
        selectors: [["", "ngModelGroup", ""]],
        inputs: {
          name: ["ngModelGroup", "name"]
        },
        exportAs: ["ngModelGroup"],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([modelGroupProvider]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
      });

      NgModelGroup.ctorParameters = function () {
        return [{
          type: ControlContainer,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Host"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["SkipSelf"]
          }]
        }, {
          type: Array,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [NG_VALIDATORS]
          }]
        }, {
          type: Array,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [NG_ASYNC_VALIDATORS]
          }]
        }];
      };

      NgModelGroup.propDecorators = {
        name: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
          args: ['ngModelGroup']
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgModelGroup, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
          args: [{
            selector: '[ngModelGroup]',
            providers: [modelGroupProvider],
            exportAs: 'ngModelGroup'
          }]
        }], function () {
          return [{
            type: ControlContainer,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Host"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["SkipSelf"]
            }]
          }, {
            type: Array,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [NG_VALIDATORS]
            }]
          }, {
            type: Array,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [NG_ASYNC_VALIDATORS]
            }]
          }];
        }, {
          name: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
            args: ['ngModelGroup']
          }]
        });
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var formControlBinding = {
        provide: NgControl,
        useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(function () {
          return NgModel;
        })
      };

      var ɵ0$1 = function ɵ0$1() {
        return Promise.resolve(null);
      };
      /**
       * `ngModel` forces an additional change detection run when its inputs change:
       * E.g.:
       * ```
       * <div>{{myModel.valid}}</div>
       * <input [(ngModel)]="myValue" #myModel="ngModel">
       * ```
       * I.e. `ngModel` can export itself on the element and then be used in the template.
       * Normally, this would result in expressions before the `input` that use the exported directive
       * to have an old value as they have been
       * dirty checked before. As this is a very common case for `ngModel`, we added this second change
       * detection run.
       *
       * Notes:
       * - this is just one extra run no matter how many `ngModel`s have been changed.
       * - this is a general problem when using `exportAs` for directives!
       */


      var resolvedPromise$1 = ɵ0$1();
      /**
       * @description
       * Creates a `FormControl` instance from a domain model and binds it
       * to a form control element.
       *
       * The `FormControl` instance tracks the value, user interaction, and
       * validation status of the control and keeps the view synced with the model. If used
       * within a parent form, the directive also registers itself with the form as a child
       * control.
       *
       * This directive is used by itself or as part of a larger form. Use the
       * `ngModel` selector to activate it.
       *
       * It accepts a domain model as an optional `Input`. If you have a one-way binding
       * to `ngModel` with `[]` syntax, changing the domain model's value in the component
       * class sets the value in the view. If you have a two-way binding with `[()]` syntax
       * (also known as 'banana-in-a-box syntax'), the value in the UI always syncs back to
       * the domain model in your class.
       *
       * To inspect the properties of the associated `FormControl` (like the validity state),
       * export the directive into a local template variable using `ngModel` as the key (ex:
       * `#myVar="ngModel"`). You can then access the control using the directive's `control` property.
       * However, the most commonly used properties (like `valid` and `dirty`) also exist on the control
       * for direct access. See a full list of properties directly available in
       * `AbstractControlDirective`.
       *
       * @see `RadioControlValueAccessor`
       * @see `SelectControlValueAccessor`
       *
       * @usageNotes
       *
       * ### Using ngModel on a standalone control
       *
       * The following examples show a simple standalone control using `ngModel`:
       *
       * {@example forms/ts/simpleNgModel/simple_ng_model_example.ts region='Component'}
       *
       * When using the `ngModel` within `<form>` tags, you'll also need to supply a `name` attribute
       * so that the control can be registered with the parent form under that name.
       *
       * In the context of a parent form, it's often unnecessary to include one-way or two-way binding,
       * as the parent form syncs the value for you. You access its properties by exporting it into a
       * local template variable using `ngForm` such as (`#f="ngForm"`). Use the variable where
       * needed on form submission.
       *
       * If you do need to populate initial values into your form, using a one-way binding for
       * `ngModel` tends to be sufficient as long as you use the exported form's value rather
       * than the domain model's value on submit.
       *
       * ### Using ngModel within a form
       *
       * The following example shows controls using `ngModel` within a form:
       *
       * {@example forms/ts/simpleForm/simple_form_example.ts region='Component'}
       *
       * ### Using a standalone ngModel within a group
       *
       * The following example shows you how to use a standalone ngModel control
       * within a form. This controls the display of the form, but doesn't contain form data.
       *
       * ```html
       * <form>
       *   <input name="login" ngModel placeholder="Login">
       *   <input type="checkbox" ngModel [ngModelOptions]="{standalone: true}"> Show more options?
       * </form>
       * <!-- form value: {login: ''} -->
       * ```
       *
       * ### Setting the ngModel `name` attribute through options
       *
       * The following example shows you an alternate way to set the name attribute. Here,
       * an attribute identified as name is used within a custom form control component. To still be able
       * to specify the NgModel's name, you must specify it using the `ngModelOptions` input instead.
       *
       * ```html
       * <form>
       *   <my-custom-form-control name="Nancy" ngModel [ngModelOptions]="{name: 'user'}">
       *   </my-custom-form-control>
       * </form>
       * <!-- form value: {user: ''} -->
       * ```
       *
       * @ngModule FormsModule
       * @publicApi
       */

      var NgModel = /*#__PURE__*/function (_NgControl) {
        _inherits2(NgModel, _NgControl);

        var _super435 = _createSuper2(NgModel);

        function NgModel(parent, validators, asyncValidators, valueAccessors) {
          var _this917;

          _classCallCheck2(this, NgModel);

          _this917 = _super435.call(this);
          _this917.control = new FormControl();
          /** @internal */

          _this917._registered = false;
          /**
           * @description
           * Event emitter for producing the `ngModelChange` event after
           * the view model updates.
           */

          _this917.update = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
          _this917._parent = parent;

          _this917._setValidators(validators);

          _this917._setAsyncValidators(asyncValidators);

          _this917.valueAccessor = selectValueAccessor(_assertThisInitialized2(_this917), valueAccessors);
          return _this917;
        }
        /** @nodoc */


        _createClass2(NgModel, [{
          key: "ngOnChanges",
          value: function ngOnChanges(changes) {
            this._checkForErrors();

            if (!this._registered) this._setUpControl();

            if ('isDisabled' in changes) {
              this._updateDisabled(changes);
            }

            if (isPropertyUpdated(changes, this.viewModel)) {
              this._updateValue(this.model);

              this.viewModel = this.model;
            }
          }
          /** @nodoc */

        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            this.formDirective && this.formDirective.removeControl(this);
          }
          /**
           * @description
           * Returns an array that represents the path from the top-level form to this control.
           * Each index is the string name of the control on that level.
           */

        }, {
          key: "path",
          get: function get() {
            return this._parent ? controlPath(this.name, this._parent) : [this.name];
          }
          /**
           * @description
           * The top-level directive for this control if present, otherwise null.
           */

        }, {
          key: "formDirective",
          get: function get() {
            return this._parent ? this._parent.formDirective : null;
          }
          /**
           * @description
           * Sets the new value for the view model and emits an `ngModelChange` event.
           *
           * @param newValue The new value emitted by `ngModelChange`.
           */

        }, {
          key: "viewToModelUpdate",
          value: function viewToModelUpdate(newValue) {
            this.viewModel = newValue;
            this.update.emit(newValue);
          }
        }, {
          key: "_setUpControl",
          value: function _setUpControl() {
            this._setUpdateStrategy();

            this._isStandalone() ? this._setUpStandalone() : this.formDirective.addControl(this);
            this._registered = true;
          }
        }, {
          key: "_setUpdateStrategy",
          value: function _setUpdateStrategy() {
            if (this.options && this.options.updateOn != null) {
              this.control._updateOn = this.options.updateOn;
            }
          }
        }, {
          key: "_isStandalone",
          value: function _isStandalone() {
            return !this._parent || !!(this.options && this.options.standalone);
          }
        }, {
          key: "_setUpStandalone",
          value: function _setUpStandalone() {
            setUpControl(this.control, this);
            this.control.updateValueAndValidity({
              emitEvent: false
            });
          }
        }, {
          key: "_checkForErrors",
          value: function _checkForErrors() {
            if (!this._isStandalone()) {
              this._checkParentType();
            }

            this._checkName();
          }
        }, {
          key: "_checkParentType",
          value: function _checkParentType() {
            if (typeof ngDevMode === 'undefined' || ngDevMode) {
              if (!(this._parent instanceof NgModelGroup) && this._parent instanceof AbstractFormGroupDirective) {
                TemplateDrivenErrors.formGroupNameException();
              } else if (!(this._parent instanceof NgModelGroup) && !(this._parent instanceof NgForm)) {
                TemplateDrivenErrors.modelParentException();
              }
            }
          }
        }, {
          key: "_checkName",
          value: function _checkName() {
            if (this.options && this.options.name) this.name = this.options.name;

            if (!this._isStandalone() && !this.name && (typeof ngDevMode === 'undefined' || ngDevMode)) {
              TemplateDrivenErrors.missingNameException();
            }
          }
        }, {
          key: "_updateValue",
          value: function _updateValue(value) {
            var _this918 = this;

            resolvedPromise$1.then(function () {
              _this918.control.setValue(value, {
                emitViewToModelChange: false
              });
            });
          }
        }, {
          key: "_updateDisabled",
          value: function _updateDisabled(changes) {
            var _this919 = this;

            var disabledValue = changes['isDisabled'].currentValue;
            var isDisabled = disabledValue === '' || disabledValue && disabledValue !== 'false';
            resolvedPromise$1.then(function () {
              if (isDisabled && !_this919.control.disabled) {
                _this919.control.disable();
              } else if (!isDisabled && _this919.control.disabled) {
                _this919.control.enable();
              }
            });
          }
        }]);

        return NgModel;
      }(NgControl);

      NgModel.ɵfac = function NgModel_Factory(t) {
        return new (t || NgModel)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ControlContainer, 9), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_VALIDATORS, 10), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_ASYNC_VALIDATORS, 10), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_VALUE_ACCESSOR, 10));
      };

      NgModel.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: NgModel,
        selectors: [["", "ngModel", "", 3, "formControlName", "", 3, "formControl", ""]],
        inputs: {
          name: "name",
          isDisabled: ["disabled", "isDisabled"],
          model: ["ngModel", "model"],
          options: ["ngModelOptions", "options"]
        },
        outputs: {
          update: "ngModelChange"
        },
        exportAs: ["ngModel"],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([formControlBinding]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]]
      });

      NgModel.ctorParameters = function () {
        return [{
          type: ControlContainer,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Host"]
          }]
        }, {
          type: Array,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [NG_VALIDATORS]
          }]
        }, {
          type: Array,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [NG_ASYNC_VALIDATORS]
          }]
        }, {
          type: Array,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [NG_VALUE_ACCESSOR]
          }]
        }];
      };

      NgModel.propDecorators = {
        name: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }],
        isDisabled: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
          args: ['disabled']
        }],
        model: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
          args: ['ngModel']
        }],
        options: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
          args: ['ngModelOptions']
        }],
        update: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"],
          args: ['ngModelChange']
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgModel, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
          args: [{
            selector: '[ngModel]:not([formControlName]):not([formControl])',
            providers: [formControlBinding],
            exportAs: 'ngModel'
          }]
        }], function () {
          return [{
            type: ControlContainer,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Host"]
            }]
          }, {
            type: Array,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [NG_VALIDATORS]
            }]
          }, {
            type: Array,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [NG_ASYNC_VALIDATORS]
            }]
          }, {
            type: Array,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [NG_VALUE_ACCESSOR]
            }]
          }];
        }, {
          update: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"],
            args: ['ngModelChange']
          }],
          name: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }],
          isDisabled: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
            args: ['disabled']
          }],
          model: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
            args: ['ngModel']
          }],
          options: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
            args: ['ngModelOptions']
          }]
        });
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @description
       *
       * Adds `novalidate` attribute to all forms by default.
       *
       * `novalidate` is used to disable browser's native form validation.
       *
       * If you want to use native validation with Angular forms, just add `ngNativeValidate` attribute:
       *
       * ```
       * <form ngNativeValidate></form>
       * ```
       *
       * @publicApi
       * @ngModule ReactiveFormsModule
       * @ngModule FormsModule
       */


      var ɵNgNoValidate = function ɵNgNoValidate() {
        _classCallCheck2(this, ɵNgNoValidate);
      };

      ɵNgNoValidate.ɵfac = function ɵNgNoValidate_Factory(t) {
        return new (t || ɵNgNoValidate)();
      };

      ɵNgNoValidate.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: ɵNgNoValidate,
        selectors: [["form", 3, "ngNoForm", "", 3, "ngNativeValidate", ""]],
        hostAttrs: ["novalidate", ""]
      });
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ɵNgNoValidate, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
          args: [{
            selector: 'form:not([ngNoForm]):not([ngNativeValidate])',
            host: {
              'novalidate': ''
            }
          }]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Token to provide to turn off the ngModel warning on formControl and formControlName.
       */


      var NG_MODEL_WITH_FORM_CONTROL_WARNING = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('NgModelWithFormControlWarning');
      var formControlBinding$1 = {
        provide: NgControl,
        useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(function () {
          return FormControlDirective;
        })
      };
      /**
       * @description
       * Synchronizes a standalone `FormControl` instance to a form control element.
       *
       * Note that support for using the `ngModel` input property and `ngModelChange` event with reactive
       * form directives was deprecated in Angular v6 and is scheduled for removal in
       * a future version of Angular.
       * For details, see [Deprecated features](guide/deprecations#ngmodel-with-reactive-forms).
       *
       * @see [Reactive Forms Guide](guide/reactive-forms)
       * @see `FormControl`
       * @see `AbstractControl`
       *
       * @usageNotes
       *
       * The following example shows how to register a standalone control and set its value.
       *
       * {@example forms/ts/simpleFormControl/simple_form_control_example.ts region='Component'}
       *
       * @ngModule ReactiveFormsModule
       * @publicApi
       */

      var FormControlDirective = /*#__PURE__*/function (_NgControl2) {
        _inherits2(FormControlDirective, _NgControl2);

        var _super436 = _createSuper2(FormControlDirective);

        function FormControlDirective(validators, asyncValidators, valueAccessors, _ngModelWarningConfig) {
          var _this920;

          _classCallCheck2(this, FormControlDirective);

          _this920 = _super436.call(this);
          _this920._ngModelWarningConfig = _ngModelWarningConfig;
          /** @deprecated as of v6 */

          _this920.update = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
          /**
           * @description
           * Instance property used to track whether an ngModel warning has been sent out for this
           * particular `FormControlDirective` instance. Used to support warning config of "always".
           *
           * @internal
           */

          _this920._ngModelWarningSent = false;

          _this920._setValidators(validators);

          _this920._setAsyncValidators(asyncValidators);

          _this920.valueAccessor = selectValueAccessor(_assertThisInitialized2(_this920), valueAccessors);
          return _this920;
        }
        /**
         * @description
         * Triggers a warning in dev mode that this input should not be used with reactive forms.
         */


        _createClass2(FormControlDirective, [{
          key: "isDisabled",
          set: function set(isDisabled) {
            if (typeof ngDevMode === 'undefined' || ngDevMode) {
              ReactiveErrors.disabledAttrWarning();
            }
          }
          /** @nodoc */

        }, {
          key: "ngOnChanges",
          value: function ngOnChanges(changes) {
            if (this._isControlChanged(changes)) {
              setUpControl(this.form, this);

              if (this.control.disabled && this.valueAccessor.setDisabledState) {
                this.valueAccessor.setDisabledState(true);
              }

              this.form.updateValueAndValidity({
                emitEvent: false
              });
            }

            if (isPropertyUpdated(changes, this.viewModel)) {
              _ngModelWarning('formControl', FormControlDirective, this, this._ngModelWarningConfig);

              this.form.setValue(this.model);
              this.viewModel = this.model;
            }
          }
          /**
           * @description
           * Returns an array that represents the path from the top-level form to this control.
           * Each index is the string name of the control on that level.
           */

        }, {
          key: "path",
          get: function get() {
            return [];
          }
          /**
           * @description
           * The `FormControl` bound to this directive.
           */

        }, {
          key: "control",
          get: function get() {
            return this.form;
          }
          /**
           * @description
           * Sets the new value for the view model and emits an `ngModelChange` event.
           *
           * @param newValue The new value for the view model.
           */

        }, {
          key: "viewToModelUpdate",
          value: function viewToModelUpdate(newValue) {
            this.viewModel = newValue;
            this.update.emit(newValue);
          }
        }, {
          key: "_isControlChanged",
          value: function _isControlChanged(changes) {
            return changes.hasOwnProperty('form');
          }
        }]);

        return FormControlDirective;
      }(NgControl);

      FormControlDirective.ɵfac = function FormControlDirective_Factory(t) {
        return new (t || FormControlDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_VALIDATORS, 10), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_ASYNC_VALIDATORS, 10), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_VALUE_ACCESSOR, 10), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_MODEL_WITH_FORM_CONTROL_WARNING, 8));
      };

      FormControlDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: FormControlDirective,
        selectors: [["", "formControl", ""]],
        inputs: {
          isDisabled: ["disabled", "isDisabled"],
          form: ["formControl", "form"],
          model: ["ngModel", "model"]
        },
        outputs: {
          update: "ngModelChange"
        },
        exportAs: ["ngForm"],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([formControlBinding$1]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]]
      });
      /**
       * @description
       * Static property used to track whether any ngModel warnings have been sent across
       * all instances of FormControlDirective. Used to support warning config of "once".
       *
       * @internal
       */

      FormControlDirective._ngModelWarningSentOnce = false;

      FormControlDirective.ctorParameters = function () {
        return [{
          type: Array,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [NG_VALIDATORS]
          }]
        }, {
          type: Array,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [NG_ASYNC_VALIDATORS]
          }]
        }, {
          type: Array,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [NG_VALUE_ACCESSOR]
          }]
        }, {
          type: String,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [NG_MODEL_WITH_FORM_CONTROL_WARNING]
          }]
        }];
      };

      FormControlDirective.propDecorators = {
        form: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
          args: ['formControl']
        }],
        isDisabled: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
          args: ['disabled']
        }],
        model: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
          args: ['ngModel']
        }],
        update: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"],
          args: ['ngModelChange']
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](FormControlDirective, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
          args: [{
            selector: '[formControl]',
            providers: [formControlBinding$1],
            exportAs: 'ngForm'
          }]
        }], function () {
          return [{
            type: Array,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [NG_VALIDATORS]
            }]
          }, {
            type: Array,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [NG_ASYNC_VALIDATORS]
            }]
          }, {
            type: Array,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [NG_VALUE_ACCESSOR]
            }]
          }, {
            type: String,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [NG_MODEL_WITH_FORM_CONTROL_WARNING]
            }]
          }];
        }, {
          update: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"],
            args: ['ngModelChange']
          }],
          isDisabled: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
            args: ['disabled']
          }],
          form: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
            args: ['formControl']
          }],
          model: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
            args: ['ngModel']
          }]
        });
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var formDirectiveProvider$1 = {
        provide: ControlContainer,
        useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(function () {
          return FormGroupDirective;
        })
      };
      /**
       * @description
       *
       * Binds an existing `FormGroup` to a DOM element.
       *
       * This directive accepts an existing `FormGroup` instance. It will then use this
       * `FormGroup` instance to match any child `FormControl`, `FormGroup`,
       * and `FormArray` instances to child `FormControlName`, `FormGroupName`,
       * and `FormArrayName` directives.
       *
       * @see [Reactive Forms Guide](guide/reactive-forms)
       * @see `AbstractControl`
       *
       * ### Register Form Group
       *
       * The following example registers a `FormGroup` with first name and last name controls,
       * and listens for the *ngSubmit* event when the button is clicked.
       *
       * {@example forms/ts/simpleFormGroup/simple_form_group_example.ts region='Component'}
       *
       * @ngModule ReactiveFormsModule
       * @publicApi
       */

      var FormGroupDirective = /*#__PURE__*/function (_ControlContainer3) {
        _inherits2(FormGroupDirective, _ControlContainer3);

        var _super437 = _createSuper2(FormGroupDirective);

        function FormGroupDirective(validators, asyncValidators) {
          var _this921;

          _classCallCheck2(this, FormGroupDirective);

          _this921 = _super437.call(this);
          _this921.validators = validators;
          _this921.asyncValidators = asyncValidators;
          /**
           * @description
           * Reports whether the form submission has been triggered.
           */

          _this921.submitted = false;
          /**
           * @description
           * Tracks the list of added `FormControlName` instances
           */

          _this921.directives = [];
          /**
           * @description
           * Tracks the `FormGroup` bound to this directive.
           */

          _this921.form = null;
          /**
           * @description
           * Emits an event when the form submission has been triggered.
           */

          _this921.ngSubmit = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();

          _this921._setValidators(validators);

          _this921._setAsyncValidators(asyncValidators);

          return _this921;
        }
        /** @nodoc */


        _createClass2(FormGroupDirective, [{
          key: "ngOnChanges",
          value: function ngOnChanges(changes) {
            this._checkFormPresent();

            if (changes.hasOwnProperty('form')) {
              this._updateValidators();

              this._updateDomValue();

              this._updateRegistrations();

              this._oldForm = this.form;
            }
          }
          /**
           * @description
           * Returns this directive's instance.
           */

        }, {
          key: "formDirective",
          get: function get() {
            return this;
          }
          /**
           * @description
           * Returns the `FormGroup` bound to this directive.
           */

        }, {
          key: "control",
          get: function get() {
            return this.form;
          }
          /**
           * @description
           * Returns an array representing the path to this group. Because this directive
           * always lives at the top level of a form, it always an empty array.
           */

        }, {
          key: "path",
          get: function get() {
            return [];
          }
          /**
           * @description
           * Method that sets up the control directive in this group, re-calculates its value
           * and validity, and adds the instance to the internal list of directives.
           *
           * @param dir The `FormControlName` directive instance.
           */

        }, {
          key: "addControl",
          value: function addControl(dir) {
            var ctrl = this.form.get(dir.path);
            setUpControl(ctrl, dir);
            ctrl.updateValueAndValidity({
              emitEvent: false
            });
            this.directives.push(dir);
            return ctrl;
          }
          /**
           * @description
           * Retrieves the `FormControl` instance from the provided `FormControlName` directive
           *
           * @param dir The `FormControlName` directive instance.
           */

        }, {
          key: "getControl",
          value: function getControl(dir) {
            return this.form.get(dir.path);
          }
          /**
           * @description
           * Removes the `FormControlName` instance from the internal list of directives
           *
           * @param dir The `FormControlName` directive instance.
           */

        }, {
          key: "removeControl",
          value: function removeControl(dir) {
            removeDir(this.directives, dir);
          }
          /**
           * Adds a new `FormGroupName` directive instance to the form.
           *
           * @param dir The `FormGroupName` directive instance.
           */

        }, {
          key: "addFormGroup",
          value: function addFormGroup(dir) {
            var ctrl = this.form.get(dir.path);
            setUpFormContainer(ctrl, dir);
            ctrl.updateValueAndValidity({
              emitEvent: false
            });
          }
          /**
           * No-op method to remove the form group.
           *
           * @param dir The `FormGroupName` directive instance.
           */

        }, {
          key: "removeFormGroup",
          value: function removeFormGroup(dir) {}
          /**
           * @description
           * Retrieves the `FormGroup` for a provided `FormGroupName` directive instance
           *
           * @param dir The `FormGroupName` directive instance.
           */

        }, {
          key: "getFormGroup",
          value: function getFormGroup(dir) {
            return this.form.get(dir.path);
          }
          /**
           * Adds a new `FormArrayName` directive instance to the form.
           *
           * @param dir The `FormArrayName` directive instance.
           */

        }, {
          key: "addFormArray",
          value: function addFormArray(dir) {
            var ctrl = this.form.get(dir.path);
            setUpFormContainer(ctrl, dir);
            ctrl.updateValueAndValidity({
              emitEvent: false
            });
          }
          /**
           * No-op method to remove the form array.
           *
           * @param dir The `FormArrayName` directive instance.
           */

        }, {
          key: "removeFormArray",
          value: function removeFormArray(dir) {}
          /**
           * @description
           * Retrieves the `FormArray` for a provided `FormArrayName` directive instance.
           *
           * @param dir The `FormArrayName` directive instance.
           */

        }, {
          key: "getFormArray",
          value: function getFormArray(dir) {
            return this.form.get(dir.path);
          }
          /**
           * Sets the new value for the provided `FormControlName` directive.
           *
           * @param dir The `FormControlName` directive instance.
           * @param value The new value for the directive's control.
           */

        }, {
          key: "updateModel",
          value: function updateModel(dir, value) {
            var ctrl = this.form.get(dir.path);
            ctrl.setValue(value);
          }
          /**
           * @description
           * Method called with the "submit" event is triggered on the form.
           * Triggers the `ngSubmit` emitter to emit the "submit" event as its payload.
           *
           * @param $event The "submit" event object
           */

        }, {
          key: "onSubmit",
          value: function onSubmit($event) {
            this.submitted = true;
            syncPendingControls(this.form, this.directives);
            this.ngSubmit.emit($event);
            return false;
          }
          /**
           * @description
           * Method called when the "reset" event is triggered on the form.
           */

        }, {
          key: "onReset",
          value: function onReset() {
            this.resetForm();
          }
          /**
           * @description
           * Resets the form to an initial value and resets its submitted status.
           *
           * @param value The new value for the form.
           */

        }, {
          key: "resetForm",
          value: function resetForm() {
            var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;
            this.form.reset(value);
            this.submitted = false;
          }
          /** @internal */

        }, {
          key: "_updateDomValue",
          value: function _updateDomValue() {
            var _this922 = this;

            this.directives.forEach(function (dir) {
              var newCtrl = _this922.form.get(dir.path);

              if (dir.control !== newCtrl) {
                // Note: the value of the `dir.control` may not be defined, for example when it's a first
                // `FormControl` that is added to a `FormGroup` instance (via `addControl` call).
                cleanUpControl(dir.control || null, dir);
                if (newCtrl) setUpControl(newCtrl, dir);
                dir.control = newCtrl;
              }
            });

            this.form._updateTreeValidity({
              emitEvent: false
            });
          }
        }, {
          key: "_updateRegistrations",
          value: function _updateRegistrations() {
            var _this923 = this;

            this.form._registerOnCollectionChange(function () {
              return _this923._updateDomValue();
            });

            if (this._oldForm) {
              this._oldForm._registerOnCollectionChange(function () {});
            }
          }
        }, {
          key: "_updateValidators",
          value: function _updateValidators() {
            setUpValidators(this.form, this,
            /* handleOnValidatorChange */
            false);

            if (this._oldForm) {
              cleanUpValidators(this._oldForm, this,
              /* handleOnValidatorChange */
              false);
            }
          }
        }, {
          key: "_checkFormPresent",
          value: function _checkFormPresent() {
            if (!this.form && (typeof ngDevMode === 'undefined' || ngDevMode)) {
              ReactiveErrors.missingFormException();
            }
          }
        }]);

        return FormGroupDirective;
      }(ControlContainer);

      FormGroupDirective.ɵfac = function FormGroupDirective_Factory(t) {
        return new (t || FormGroupDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_VALIDATORS, 10), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_ASYNC_VALIDATORS, 10));
      };

      FormGroupDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: FormGroupDirective,
        selectors: [["", "formGroup", ""]],
        hostBindings: function FormGroupDirective_HostBindings(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("submit", function FormGroupDirective_submit_HostBindingHandler($event) {
              return ctx.onSubmit($event);
            })("reset", function FormGroupDirective_reset_HostBindingHandler() {
              return ctx.onReset();
            });
          }
        },
        inputs: {
          form: ["formGroup", "form"]
        },
        outputs: {
          ngSubmit: "ngSubmit"
        },
        exportAs: ["ngForm"],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([formDirectiveProvider$1]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]]
      });

      FormGroupDirective.ctorParameters = function () {
        return [{
          type: Array,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [NG_VALIDATORS]
          }]
        }, {
          type: Array,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [NG_ASYNC_VALIDATORS]
          }]
        }];
      };

      FormGroupDirective.propDecorators = {
        form: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
          args: ['formGroup']
        }],
        ngSubmit: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](FormGroupDirective, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
          args: [{
            selector: '[formGroup]',
            providers: [formDirectiveProvider$1],
            host: {
              '(submit)': 'onSubmit($event)',
              '(reset)': 'onReset()'
            },
            exportAs: 'ngForm'
          }]
        }], function () {
          return [{
            type: Array,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [NG_VALIDATORS]
            }]
          }, {
            type: Array,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [NG_ASYNC_VALIDATORS]
            }]
          }];
        }, {
          form: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
            args: ['formGroup']
          }],
          ngSubmit: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
          }]
        });
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var formGroupNameProvider = {
        provide: ControlContainer,
        useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(function () {
          return FormGroupName;
        })
      };
      /**
       * @description
       *
       * Syncs a nested `FormGroup` to a DOM element.
       *
       * This directive can only be used with a parent `FormGroupDirective`.
       *
       * It accepts the string name of the nested `FormGroup` to link, and
       * looks for a `FormGroup` registered with that name in the parent
       * `FormGroup` instance you passed into `FormGroupDirective`.
       *
       * Use nested form groups to validate a sub-group of a
       * form separately from the rest or to group the values of certain
       * controls into their own nested object.
       *
       * @see [Reactive Forms Guide](guide/reactive-forms)
       *
       * @usageNotes
       *
       * ### Access the group by name
       *
       * The following example uses the {@link AbstractControl#get get} method to access the
       * associated `FormGroup`
       *
       * ```ts
       *   this.form.get('name');
       * ```
       *
       * ### Access individual controls in the group
       *
       * The following example uses the {@link AbstractControl#get get} method to access
       * individual controls within the group using dot syntax.
       *
       * ```ts
       *   this.form.get('name.first');
       * ```
       *
       * ### Register a nested `FormGroup`.
       *
       * The following example registers a nested *name* `FormGroup` within an existing `FormGroup`,
       * and provides methods to retrieve the nested `FormGroup` and individual controls.
       *
       * {@example forms/ts/nestedFormGroup/nested_form_group_example.ts region='Component'}
       *
       * @ngModule ReactiveFormsModule
       * @publicApi
       */

      var FormGroupName = /*#__PURE__*/function (_AbstractFormGroupDir2) {
        _inherits2(FormGroupName, _AbstractFormGroupDir2);

        var _super438 = _createSuper2(FormGroupName);

        function FormGroupName(parent, validators, asyncValidators) {
          var _this924;

          _classCallCheck2(this, FormGroupName);

          _this924 = _super438.call(this);
          _this924._parent = parent;

          _this924._setValidators(validators);

          _this924._setAsyncValidators(asyncValidators);

          return _this924;
        }
        /** @internal */


        _createClass2(FormGroupName, [{
          key: "_checkParentType",
          value: function _checkParentType() {
            if (_hasInvalidParent(this._parent) && (typeof ngDevMode === 'undefined' || ngDevMode)) {
              ReactiveErrors.groupParentException();
            }
          }
        }]);

        return FormGroupName;
      }(AbstractFormGroupDirective);

      FormGroupName.ɵfac = function FormGroupName_Factory(t) {
        return new (t || FormGroupName)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ControlContainer, 13), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_VALIDATORS, 10), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_ASYNC_VALIDATORS, 10));
      };

      FormGroupName.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: FormGroupName,
        selectors: [["", "formGroupName", ""]],
        inputs: {
          name: ["formGroupName", "name"]
        },
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([formGroupNameProvider]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
      });

      FormGroupName.ctorParameters = function () {
        return [{
          type: ControlContainer,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Host"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["SkipSelf"]
          }]
        }, {
          type: Array,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [NG_VALIDATORS]
          }]
        }, {
          type: Array,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [NG_ASYNC_VALIDATORS]
          }]
        }];
      };

      FormGroupName.propDecorators = {
        name: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
          args: ['formGroupName']
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](FormGroupName, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
          args: [{
            selector: '[formGroupName]',
            providers: [formGroupNameProvider]
          }]
        }], function () {
          return [{
            type: ControlContainer,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Host"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["SkipSelf"]
            }]
          }, {
            type: Array,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [NG_VALIDATORS]
            }]
          }, {
            type: Array,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [NG_ASYNC_VALIDATORS]
            }]
          }];
        }, {
          name: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
            args: ['formGroupName']
          }]
        });
      })();

      var formArrayNameProvider = {
        provide: ControlContainer,
        useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(function () {
          return FormArrayName;
        })
      };
      /**
       * @description
       *
       * Syncs a nested `FormArray` to a DOM element.
       *
       * This directive is designed to be used with a parent `FormGroupDirective` (selector:
       * `[formGroup]`).
       *
       * It accepts the string name of the nested `FormArray` you want to link, and
       * will look for a `FormArray` registered with that name in the parent
       * `FormGroup` instance you passed into `FormGroupDirective`.
       *
       * @see [Reactive Forms Guide](guide/reactive-forms)
       * @see `AbstractControl`
       *
       * @usageNotes
       *
       * ### Example
       *
       * {@example forms/ts/nestedFormArray/nested_form_array_example.ts region='Component'}
       *
       * @ngModule ReactiveFormsModule
       * @publicApi
       */

      var FormArrayName = /*#__PURE__*/function (_ControlContainer4) {
        _inherits2(FormArrayName, _ControlContainer4);

        var _super439 = _createSuper2(FormArrayName);

        function FormArrayName(parent, validators, asyncValidators) {
          var _this925;

          _classCallCheck2(this, FormArrayName);

          _this925 = _super439.call(this);
          _this925._parent = parent;

          _this925._setValidators(validators);

          _this925._setAsyncValidators(asyncValidators);

          return _this925;
        }
        /**
         * A lifecycle method called when the directive's inputs are initialized. For internal use only.
         * @throws If the directive does not have a valid parent.
         * @nodoc
         */


        _createClass2(FormArrayName, [{
          key: "ngOnInit",
          value: function ngOnInit() {
            this._checkParentType();

            this.formDirective.addFormArray(this);
          }
          /**
           * A lifecycle method called before the directive's instance is destroyed. For internal use only.
           * @nodoc
           */

        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            if (this.formDirective) {
              this.formDirective.removeFormArray(this);
            }
          }
          /**
           * @description
           * The `FormArray` bound to this directive.
           */

        }, {
          key: "control",
          get: function get() {
            return this.formDirective.getFormArray(this);
          }
          /**
           * @description
           * The top-level directive for this group if present, otherwise null.
           */

        }, {
          key: "formDirective",
          get: function get() {
            return this._parent ? this._parent.formDirective : null;
          }
          /**
           * @description
           * Returns an array that represents the path from the top-level form to this control.
           * Each index is the string name of the control on that level.
           */

        }, {
          key: "path",
          get: function get() {
            return controlPath(this.name == null ? this.name : this.name.toString(), this._parent);
          }
        }, {
          key: "_checkParentType",
          value: function _checkParentType() {
            if (_hasInvalidParent(this._parent) && (typeof ngDevMode === 'undefined' || ngDevMode)) {
              ReactiveErrors.arrayParentException();
            }
          }
        }]);

        return FormArrayName;
      }(ControlContainer);

      FormArrayName.ɵfac = function FormArrayName_Factory(t) {
        return new (t || FormArrayName)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ControlContainer, 13), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_VALIDATORS, 10), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_ASYNC_VALIDATORS, 10));
      };

      FormArrayName.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: FormArrayName,
        selectors: [["", "formArrayName", ""]],
        inputs: {
          name: ["formArrayName", "name"]
        },
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([formArrayNameProvider]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
      });

      FormArrayName.ctorParameters = function () {
        return [{
          type: ControlContainer,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Host"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["SkipSelf"]
          }]
        }, {
          type: Array,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [NG_VALIDATORS]
          }]
        }, {
          type: Array,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [NG_ASYNC_VALIDATORS]
          }]
        }];
      };

      FormArrayName.propDecorators = {
        name: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
          args: ['formArrayName']
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](FormArrayName, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
          args: [{
            selector: '[formArrayName]',
            providers: [formArrayNameProvider]
          }]
        }], function () {
          return [{
            type: ControlContainer,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Host"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["SkipSelf"]
            }]
          }, {
            type: Array,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [NG_VALIDATORS]
            }]
          }, {
            type: Array,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [NG_ASYNC_VALIDATORS]
            }]
          }];
        }, {
          name: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
            args: ['formArrayName']
          }]
        });
      })();

      function _hasInvalidParent(parent) {
        return !(parent instanceof FormGroupName) && !(parent instanceof FormGroupDirective) && !(parent instanceof FormArrayName);
      }
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var controlNameBinding = {
        provide: NgControl,
        useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(function () {
          return FormControlName;
        })
      };
      /**
       * @description
       * Syncs a `FormControl` in an existing `FormGroup` to a form control
       * element by name.
       *
       * @see [Reactive Forms Guide](guide/reactive-forms)
       * @see `FormControl`
       * @see `AbstractControl`
       *
       * @usageNotes
       *
       * ### Register `FormControl` within a group
       *
       * The following example shows how to register multiple form controls within a form group
       * and set their value.
       *
       * {@example forms/ts/simpleFormGroup/simple_form_group_example.ts region='Component'}
       *
       * To see `formControlName` examples with different form control types, see:
       *
       * * Radio buttons: `RadioControlValueAccessor`
       * * Selects: `SelectControlValueAccessor`
       *
       * ### Use with ngModel is deprecated
       *
       * Support for using the `ngModel` input property and `ngModelChange` event with reactive
       * form directives has been deprecated in Angular v6 and is scheduled for removal in
       * a future version of Angular.
       *
       * For details, see [Deprecated features](guide/deprecations#ngmodel-with-reactive-forms).
       *
       * @ngModule ReactiveFormsModule
       * @publicApi
       */

      var FormControlName = /*#__PURE__*/function (_NgControl3) {
        _inherits2(FormControlName, _NgControl3);

        var _super440 = _createSuper2(FormControlName);

        function FormControlName(parent, validators, asyncValidators, valueAccessors, _ngModelWarningConfig) {
          var _this926;

          _classCallCheck2(this, FormControlName);

          _this926 = _super440.call(this);
          _this926._ngModelWarningConfig = _ngModelWarningConfig;
          _this926._added = false;
          /** @deprecated as of v6 */

          _this926.update = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
          /**
           * @description
           * Instance property used to track whether an ngModel warning has been sent out for this
           * particular FormControlName instance. Used to support warning config of "always".
           *
           * @internal
           */

          _this926._ngModelWarningSent = false;
          _this926._parent = parent;

          _this926._setValidators(validators);

          _this926._setAsyncValidators(asyncValidators);

          _this926.valueAccessor = selectValueAccessor(_assertThisInitialized2(_this926), valueAccessors);
          return _this926;
        }
        /**
         * @description
         * Triggers a warning in dev mode that this input should not be used with reactive forms.
         */


        _createClass2(FormControlName, [{
          key: "isDisabled",
          set: function set(isDisabled) {
            if (typeof ngDevMode === 'undefined' || ngDevMode) {
              ReactiveErrors.disabledAttrWarning();
            }
          }
          /** @nodoc */

        }, {
          key: "ngOnChanges",
          value: function ngOnChanges(changes) {
            if (!this._added) this._setUpControl();

            if (isPropertyUpdated(changes, this.viewModel)) {
              _ngModelWarning('formControlName', FormControlName, this, this._ngModelWarningConfig);

              this.viewModel = this.model;
              this.formDirective.updateModel(this, this.model);
            }
          }
          /** @nodoc */

        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            if (this.formDirective) {
              this.formDirective.removeControl(this);
            }
          }
          /**
           * @description
           * Sets the new value for the view model and emits an `ngModelChange` event.
           *
           * @param newValue The new value for the view model.
           */

        }, {
          key: "viewToModelUpdate",
          value: function viewToModelUpdate(newValue) {
            this.viewModel = newValue;
            this.update.emit(newValue);
          }
          /**
           * @description
           * Returns an array that represents the path from the top-level form to this control.
           * Each index is the string name of the control on that level.
           */

        }, {
          key: "path",
          get: function get() {
            return controlPath(this.name == null ? this.name : this.name.toString(), this._parent);
          }
          /**
           * @description
           * The top-level directive for this group if present, otherwise null.
           */

        }, {
          key: "formDirective",
          get: function get() {
            return this._parent ? this._parent.formDirective : null;
          }
        }, {
          key: "_checkParentType",
          value: function _checkParentType() {
            if (typeof ngDevMode === 'undefined' || ngDevMode) {
              if (!(this._parent instanceof FormGroupName) && this._parent instanceof AbstractFormGroupDirective) {
                ReactiveErrors.ngModelGroupException();
              } else if (!(this._parent instanceof FormGroupName) && !(this._parent instanceof FormGroupDirective) && !(this._parent instanceof FormArrayName)) {
                ReactiveErrors.controlParentException();
              }
            }
          }
        }, {
          key: "_setUpControl",
          value: function _setUpControl() {
            this._checkParentType();

            this.control = this.formDirective.addControl(this);

            if (this.control.disabled && this.valueAccessor.setDisabledState) {
              this.valueAccessor.setDisabledState(true);
            }

            this._added = true;
          }
        }]);

        return FormControlName;
      }(NgControl);

      FormControlName.ɵfac = function FormControlName_Factory(t) {
        return new (t || FormControlName)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ControlContainer, 13), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_VALIDATORS, 10), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_ASYNC_VALIDATORS, 10), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_VALUE_ACCESSOR, 10), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_MODEL_WITH_FORM_CONTROL_WARNING, 8));
      };

      FormControlName.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: FormControlName,
        selectors: [["", "formControlName", ""]],
        inputs: {
          isDisabled: ["disabled", "isDisabled"],
          name: ["formControlName", "name"],
          model: ["ngModel", "model"]
        },
        outputs: {
          update: "ngModelChange"
        },
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([controlNameBinding]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]]
      });
      /**
       * @description
       * Static property used to track whether any ngModel warnings have been sent across
       * all instances of FormControlName. Used to support warning config of "once".
       *
       * @internal
       */

      FormControlName._ngModelWarningSentOnce = false;

      FormControlName.ctorParameters = function () {
        return [{
          type: ControlContainer,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Host"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["SkipSelf"]
          }]
        }, {
          type: Array,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [NG_VALIDATORS]
          }]
        }, {
          type: Array,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [NG_ASYNC_VALIDATORS]
          }]
        }, {
          type: Array,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [NG_VALUE_ACCESSOR]
          }]
        }, {
          type: String,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [NG_MODEL_WITH_FORM_CONTROL_WARNING]
          }]
        }];
      };

      FormControlName.propDecorators = {
        name: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
          args: ['formControlName']
        }],
        isDisabled: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
          args: ['disabled']
        }],
        model: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
          args: ['ngModel']
        }],
        update: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"],
          args: ['ngModelChange']
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](FormControlName, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
          args: [{
            selector: '[formControlName]',
            providers: [controlNameBinding]
          }]
        }], function () {
          return [{
            type: ControlContainer,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Host"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["SkipSelf"]
            }]
          }, {
            type: Array,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [NG_VALIDATORS]
            }]
          }, {
            type: Array,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [NG_ASYNC_VALIDATORS]
            }]
          }, {
            type: Array,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [NG_VALUE_ACCESSOR]
            }]
          }, {
            type: String,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [NG_MODEL_WITH_FORM_CONTROL_WARNING]
            }]
          }];
        }, {
          update: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"],
            args: ['ngModelChange']
          }],
          isDisabled: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
            args: ['disabled']
          }],
          name: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
            args: ['formControlName']
          }],
          model: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
            args: ['ngModel']
          }]
        });
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @description
       * Provider which adds `RequiredValidator` to the `NG_VALIDATORS` multi-provider list.
       */


      var REQUIRED_VALIDATOR = {
        provide: NG_VALIDATORS,
        useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(function () {
          return RequiredValidator;
        }),
        multi: true
      };
      /**
       * @description
       * Provider which adds `CheckboxRequiredValidator` to the `NG_VALIDATORS` multi-provider list.
       */

      var CHECKBOX_REQUIRED_VALIDATOR = {
        provide: NG_VALIDATORS,
        useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(function () {
          return CheckboxRequiredValidator;
        }),
        multi: true
      };
      /**
       * @description
       * A directive that adds the `required` validator to any controls marked with the
       * `required` attribute. The directive is provided with the `NG_VALIDATORS` multi-provider list.
       *
       * @see [Form Validation](guide/form-validation)
       *
       * @usageNotes
       *
       * ### Adding a required validator using template-driven forms
       *
       * ```
       * <input name="fullName" ngModel required>
       * ```
       *
       * @ngModule FormsModule
       * @ngModule ReactiveFormsModule
       * @publicApi
       */

      var RequiredValidator = /*#__PURE__*/function () {
        function RequiredValidator() {
          _classCallCheck2(this, RequiredValidator);

          this._required = false;
        }
        /**
         * @description
         * Tracks changes to the required attribute bound to this directive.
         */


        _createClass2(RequiredValidator, [{
          key: "required",
          get: function get() {
            return this._required;
          },
          set: function set(value) {
            this._required = value != null && value !== false && "".concat(value) !== 'false';
            if (this._onChange) this._onChange();
          }
          /**
           * Method that validates whether the control is empty.
           * Returns the validation result if enabled, otherwise null.
           * @nodoc
           */

        }, {
          key: "validate",
          value: function validate(control) {
            return this.required ? Validators.required(control) : null;
          }
          /**
           * Registers a callback function to call when the validator inputs change.
           * @nodoc
           */

        }, {
          key: "registerOnValidatorChange",
          value: function registerOnValidatorChange(fn) {
            this._onChange = fn;
          }
        }]);

        return RequiredValidator;
      }();

      RequiredValidator.ɵfac = function RequiredValidator_Factory(t) {
        return new (t || RequiredValidator)();
      };

      RequiredValidator.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: RequiredValidator,
        selectors: [["", "required", "", "formControlName", "", 3, "type", "checkbox"], ["", "required", "", "formControl", "", 3, "type", "checkbox"], ["", "required", "", "ngModel", "", 3, "type", "checkbox"]],
        hostVars: 1,
        hostBindings: function RequiredValidator_HostBindings(rf, ctx) {
          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("required", ctx.required ? "" : null);
          }
        },
        inputs: {
          required: "required"
        },
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([REQUIRED_VALIDATOR])]
      });
      RequiredValidator.propDecorators = {
        required: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](RequiredValidator, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
          args: [{
            selector: ':not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]',
            providers: [REQUIRED_VALIDATOR],
            host: {
              '[attr.required]': 'required ? "" : null'
            }
          }]
        }], function () {
          return [];
        }, {
          required: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }]
        });
      })();
      /**
       * A Directive that adds the `required` validator to checkbox controls marked with the
       * `required` attribute. The directive is provided with the `NG_VALIDATORS` multi-provider list.
       *
       * @see [Form Validation](guide/form-validation)
       *
       * @usageNotes
       *
       * ### Adding a required checkbox validator using template-driven forms
       *
       * The following example shows how to add a checkbox required validator to an input attached to an
       * ngModel binding.
       *
       * ```
       * <input type="checkbox" name="active" ngModel required>
       * ```
       *
       * @publicApi
       * @ngModule FormsModule
       * @ngModule ReactiveFormsModule
       */


      var CheckboxRequiredValidator = /*#__PURE__*/function (_RequiredValidator) {
        _inherits2(CheckboxRequiredValidator, _RequiredValidator);

        var _super441 = _createSuper2(CheckboxRequiredValidator);

        function CheckboxRequiredValidator() {
          _classCallCheck2(this, CheckboxRequiredValidator);

          return _super441.apply(this, arguments);
        }

        _createClass2(CheckboxRequiredValidator, [{
          key: "validate",
          value:
          /**
           * Method that validates whether or not the checkbox has been checked.
           * Returns the validation result if enabled, otherwise null.
           * @nodoc
           */
          function validate(control) {
            return this.required ? Validators.requiredTrue(control) : null;
          }
        }]);

        return CheckboxRequiredValidator;
      }(RequiredValidator);

      CheckboxRequiredValidator.ɵfac = function CheckboxRequiredValidator_Factory(t) {
        return ɵCheckboxRequiredValidator_BaseFactory(t || CheckboxRequiredValidator);
      };

      CheckboxRequiredValidator.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: CheckboxRequiredValidator,
        selectors: [["input", "type", "checkbox", "required", "", "formControlName", ""], ["input", "type", "checkbox", "required", "", "formControl", ""], ["input", "type", "checkbox", "required", "", "ngModel", ""]],
        hostVars: 1,
        hostBindings: function CheckboxRequiredValidator_HostBindings(rf, ctx) {
          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("required", ctx.required ? "" : null);
          }
        },
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([CHECKBOX_REQUIRED_VALIDATOR]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
      });

      var ɵCheckboxRequiredValidator_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](CheckboxRequiredValidator);
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](CheckboxRequiredValidator, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
          args: [{
            selector: 'input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]',
            providers: [CHECKBOX_REQUIRED_VALIDATOR],
            host: {
              '[attr.required]': 'required ? "" : null'
            }
          }]
        }], null, null);
      })();
      /**
       * @description
       * Provider which adds `EmailValidator` to the `NG_VALIDATORS` multi-provider list.
       */


      var EMAIL_VALIDATOR = {
        provide: NG_VALIDATORS,
        useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(function () {
          return EmailValidator;
        }),
        multi: true
      };
      /**
       * A directive that adds the `email` validator to controls marked with the
       * `email` attribute. The directive is provided with the `NG_VALIDATORS` multi-provider list.
       *
       * @see [Form Validation](guide/form-validation)
       *
       * @usageNotes
       *
       * ### Adding an email validator
       *
       * The following example shows how to add an email validator to an input attached to an ngModel
       * binding.
       *
       * ```
       * <input type="email" name="email" ngModel email>
       * <input type="email" name="email" ngModel email="true">
       * <input type="email" name="email" ngModel [email]="true">
       * ```
       *
       * @publicApi
       * @ngModule FormsModule
       * @ngModule ReactiveFormsModule
       */

      var EmailValidator = /*#__PURE__*/function () {
        function EmailValidator() {
          _classCallCheck2(this, EmailValidator);

          this._enabled = false;
        }
        /**
         * @description
         * Tracks changes to the email attribute bound to this directive.
         */


        _createClass2(EmailValidator, [{
          key: "email",
          set: function set(value) {
            this._enabled = value === '' || value === true || value === 'true';
            if (this._onChange) this._onChange();
          }
          /**
           * Method that validates whether an email address is valid.
           * Returns the validation result if enabled, otherwise null.
           * @nodoc
           */

        }, {
          key: "validate",
          value: function validate(control) {
            return this._enabled ? Validators.email(control) : null;
          }
          /**
           * Registers a callback function to call when the validator inputs change.
           * @nodoc
           */

        }, {
          key: "registerOnValidatorChange",
          value: function registerOnValidatorChange(fn) {
            this._onChange = fn;
          }
        }]);

        return EmailValidator;
      }();

      EmailValidator.ɵfac = function EmailValidator_Factory(t) {
        return new (t || EmailValidator)();
      };

      EmailValidator.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: EmailValidator,
        selectors: [["", "email", "", "formControlName", ""], ["", "email", "", "formControl", ""], ["", "email", "", "ngModel", ""]],
        inputs: {
          email: "email"
        },
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([EMAIL_VALIDATOR])]
      });
      EmailValidator.propDecorators = {
        email: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](EmailValidator, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
          args: [{
            selector: '[email][formControlName],[email][formControl],[email][ngModel]',
            providers: [EMAIL_VALIDATOR]
          }]
        }], function () {
          return [];
        }, {
          email: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }]
        });
      })();
      /**
       * @description
       * Provider which adds `MinLengthValidator` to the `NG_VALIDATORS` multi-provider list.
       */


      var MIN_LENGTH_VALIDATOR = {
        provide: NG_VALIDATORS,
        useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(function () {
          return MinLengthValidator;
        }),
        multi: true
      };
      /**
       * A directive that adds minimum length validation to controls marked with the
       * `minlength` attribute. The directive is provided with the `NG_VALIDATORS` multi-provider list.
       *
       * @see [Form Validation](guide/form-validation)
       *
       * @usageNotes
       *
       * ### Adding a minimum length validator
       *
       * The following example shows how to add a minimum length validator to an input attached to an
       * ngModel binding.
       *
       * ```html
       * <input name="firstName" ngModel minlength="4">
       * ```
       *
       * @ngModule ReactiveFormsModule
       * @ngModule FormsModule
       * @publicApi
       */

      var MinLengthValidator = /*#__PURE__*/function () {
        function MinLengthValidator() {
          _classCallCheck2(this, MinLengthValidator);

          this._validator = Validators.nullValidator;
        }
        /** @nodoc */


        _createClass2(MinLengthValidator, [{
          key: "ngOnChanges",
          value: function ngOnChanges(changes) {
            if ('minlength' in changes) {
              this._createValidator();

              if (this._onChange) this._onChange();
            }
          }
          /**
           * Method that validates whether the value meets a minimum length requirement.
           * Returns the validation result if enabled, otherwise null.
           * @nodoc
           */

        }, {
          key: "validate",
          value: function validate(control) {
            return this.minlength == null ? null : this._validator(control);
          }
          /**
           * Registers a callback function to call when the validator inputs change.
           * @nodoc
           */

        }, {
          key: "registerOnValidatorChange",
          value: function registerOnValidatorChange(fn) {
            this._onChange = fn;
          }
        }, {
          key: "_createValidator",
          value: function _createValidator() {
            this._validator = Validators.minLength(typeof this.minlength === 'number' ? this.minlength : parseInt(this.minlength, 10));
          }
        }]);

        return MinLengthValidator;
      }();

      MinLengthValidator.ɵfac = function MinLengthValidator_Factory(t) {
        return new (t || MinLengthValidator)();
      };

      MinLengthValidator.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: MinLengthValidator,
        selectors: [["", "minlength", "", "formControlName", ""], ["", "minlength", "", "formControl", ""], ["", "minlength", "", "ngModel", ""]],
        hostVars: 1,
        hostBindings: function MinLengthValidator_HostBindings(rf, ctx) {
          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("minlength", ctx.minlength ? ctx.minlength : null);
          }
        },
        inputs: {
          minlength: "minlength"
        },
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([MIN_LENGTH_VALIDATOR]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]]
      });
      MinLengthValidator.propDecorators = {
        minlength: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MinLengthValidator, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
          args: [{
            selector: '[minlength][formControlName],[minlength][formControl],[minlength][ngModel]',
            providers: [MIN_LENGTH_VALIDATOR],
            host: {
              '[attr.minlength]': 'minlength ? minlength : null'
            }
          }]
        }], function () {
          return [];
        }, {
          minlength: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }]
        });
      })();
      /**
       * @description
       * Provider which adds `MaxLengthValidator` to the `NG_VALIDATORS` multi-provider list.
       */


      var MAX_LENGTH_VALIDATOR = {
        provide: NG_VALIDATORS,
        useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(function () {
          return MaxLengthValidator;
        }),
        multi: true
      };
      /**
       * A directive that adds max length validation to controls marked with the
       * `maxlength` attribute. The directive is provided with the `NG_VALIDATORS` multi-provider list.
       *
       * @see [Form Validation](guide/form-validation)
       *
       * @usageNotes
       *
       * ### Adding a maximum length validator
       *
       * The following example shows how to add a maximum length validator to an input attached to an
       * ngModel binding.
       *
       * ```html
       * <input name="firstName" ngModel maxlength="25">
       * ```
       *
       * @ngModule ReactiveFormsModule
       * @ngModule FormsModule
       * @publicApi
       */

      var MaxLengthValidator = /*#__PURE__*/function () {
        function MaxLengthValidator() {
          _classCallCheck2(this, MaxLengthValidator);

          this._validator = Validators.nullValidator;
        }
        /** @nodoc */


        _createClass2(MaxLengthValidator, [{
          key: "ngOnChanges",
          value: function ngOnChanges(changes) {
            if ('maxlength' in changes) {
              this._createValidator();

              if (this._onChange) this._onChange();
            }
          }
          /**
           * Method that validates whether the value exceeds the maximum length requirement.
           * @nodoc
           */

        }, {
          key: "validate",
          value: function validate(control) {
            return this.maxlength != null ? this._validator(control) : null;
          }
          /**
           * Registers a callback function to call when the validator inputs change.
           * @nodoc
           */

        }, {
          key: "registerOnValidatorChange",
          value: function registerOnValidatorChange(fn) {
            this._onChange = fn;
          }
        }, {
          key: "_createValidator",
          value: function _createValidator() {
            this._validator = Validators.maxLength(typeof this.maxlength === 'number' ? this.maxlength : parseInt(this.maxlength, 10));
          }
        }]);

        return MaxLengthValidator;
      }();

      MaxLengthValidator.ɵfac = function MaxLengthValidator_Factory(t) {
        return new (t || MaxLengthValidator)();
      };

      MaxLengthValidator.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: MaxLengthValidator,
        selectors: [["", "maxlength", "", "formControlName", ""], ["", "maxlength", "", "formControl", ""], ["", "maxlength", "", "ngModel", ""]],
        hostVars: 1,
        hostBindings: function MaxLengthValidator_HostBindings(rf, ctx) {
          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("maxlength", ctx.maxlength ? ctx.maxlength : null);
          }
        },
        inputs: {
          maxlength: "maxlength"
        },
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([MAX_LENGTH_VALIDATOR]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]]
      });
      MaxLengthValidator.propDecorators = {
        maxlength: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MaxLengthValidator, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
          args: [{
            selector: '[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]',
            providers: [MAX_LENGTH_VALIDATOR],
            host: {
              '[attr.maxlength]': 'maxlength ? maxlength : null'
            }
          }]
        }], function () {
          return [];
        }, {
          maxlength: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }]
        });
      })();
      /**
       * @description
       * Provider which adds `PatternValidator` to the `NG_VALIDATORS` multi-provider list.
       */


      var PATTERN_VALIDATOR = {
        provide: NG_VALIDATORS,
        useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(function () {
          return PatternValidator;
        }),
        multi: true
      };
      /**
       * @description
       * A directive that adds regex pattern validation to controls marked with the
       * `pattern` attribute. The regex must match the entire control value.
       * The directive is provided with the `NG_VALIDATORS` multi-provider list.
       *
       * @see [Form Validation](guide/form-validation)
       *
       * @usageNotes
       *
       * ### Adding a pattern validator
       *
       * The following example shows how to add a pattern validator to an input attached to an
       * ngModel binding.
       *
       * ```html
       * <input name="firstName" ngModel pattern="[a-zA-Z ]*">
       * ```
       *
       * @ngModule ReactiveFormsModule
       * @ngModule FormsModule
       * @publicApi
       */

      var PatternValidator = /*#__PURE__*/function () {
        function PatternValidator() {
          _classCallCheck2(this, PatternValidator);

          this._validator = Validators.nullValidator;
        }
        /** @nodoc */


        _createClass2(PatternValidator, [{
          key: "ngOnChanges",
          value: function ngOnChanges(changes) {
            if ('pattern' in changes) {
              this._createValidator();

              if (this._onChange) this._onChange();
            }
          }
          /**
           * Method that validates whether the value matches the the pattern requirement.
           * @nodoc
           */

        }, {
          key: "validate",
          value: function validate(control) {
            return this._validator(control);
          }
          /**
           * Registers a callback function to call when the validator inputs change.
           * @nodoc
           */

        }, {
          key: "registerOnValidatorChange",
          value: function registerOnValidatorChange(fn) {
            this._onChange = fn;
          }
        }, {
          key: "_createValidator",
          value: function _createValidator() {
            this._validator = Validators.pattern(this.pattern);
          }
        }]);

        return PatternValidator;
      }();

      PatternValidator.ɵfac = function PatternValidator_Factory(t) {
        return new (t || PatternValidator)();
      };

      PatternValidator.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: PatternValidator,
        selectors: [["", "pattern", "", "formControlName", ""], ["", "pattern", "", "formControl", ""], ["", "pattern", "", "ngModel", ""]],
        hostVars: 1,
        hostBindings: function PatternValidator_HostBindings(rf, ctx) {
          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("pattern", ctx.pattern ? ctx.pattern : null);
          }
        },
        inputs: {
          pattern: "pattern"
        },
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([PATTERN_VALIDATOR]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]]
      });
      PatternValidator.propDecorators = {
        pattern: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](PatternValidator, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
          args: [{
            selector: '[pattern][formControlName],[pattern][formControl],[pattern][ngModel]',
            providers: [PATTERN_VALIDATOR],
            host: {
              '[attr.pattern]': 'pattern ? pattern : null'
            }
          }]
        }], function () {
          return [];
        }, {
          pattern: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }]
        });
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var SHARED_FORM_DIRECTIVES = [ɵNgNoValidate, NgSelectOption, ɵNgSelectMultipleOption, DefaultValueAccessor, NumberValueAccessor, RangeValueAccessor, CheckboxControlValueAccessor, SelectControlValueAccessor, SelectMultipleControlValueAccessor, RadioControlValueAccessor, NgControlStatus, NgControlStatusGroup, RequiredValidator, MinLengthValidator, MaxLengthValidator, PatternValidator, CheckboxRequiredValidator, EmailValidator];
      var TEMPLATE_DRIVEN_DIRECTIVES = [NgModel, NgModelGroup, NgForm];
      var REACTIVE_DRIVEN_DIRECTIVES = [FormControlDirective, FormGroupDirective, FormControlName, FormGroupName, FormArrayName];
      /**
       * Internal module used for sharing directives between FormsModule and ReactiveFormsModule
       */

      var ɵInternalFormsSharedModule = function ɵInternalFormsSharedModule() {
        _classCallCheck2(this, ɵInternalFormsSharedModule);
      };

      ɵInternalFormsSharedModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
        type: ɵInternalFormsSharedModule
      });
      ɵInternalFormsSharedModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
        factory: function ɵInternalFormsSharedModule_Factory(t) {
          return new (t || ɵInternalFormsSharedModule)();
        }
      });

      (function () {
        (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](ɵInternalFormsSharedModule, {
          declarations: [ɵNgNoValidate, NgSelectOption, ɵNgSelectMultipleOption, DefaultValueAccessor, NumberValueAccessor, RangeValueAccessor, CheckboxControlValueAccessor, SelectControlValueAccessor, SelectMultipleControlValueAccessor, RadioControlValueAccessor, NgControlStatus, NgControlStatusGroup, RequiredValidator, MinLengthValidator, MaxLengthValidator, PatternValidator, CheckboxRequiredValidator, EmailValidator],
          exports: [ɵNgNoValidate, NgSelectOption, ɵNgSelectMultipleOption, DefaultValueAccessor, NumberValueAccessor, RangeValueAccessor, CheckboxControlValueAccessor, SelectControlValueAccessor, SelectMultipleControlValueAccessor, RadioControlValueAccessor, NgControlStatus, NgControlStatusGroup, RequiredValidator, MinLengthValidator, MaxLengthValidator, PatternValidator, CheckboxRequiredValidator, EmailValidator]
        });
      })();
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ɵInternalFormsSharedModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
          args: [{
            declarations: SHARED_FORM_DIRECTIVES,
            exports: SHARED_FORM_DIRECTIVES
          }]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      function isAbstractControlOptions(options) {
        return options.asyncValidators !== undefined || options.validators !== undefined || options.updateOn !== undefined;
      }
      /**
       * @description
       * Creates an `AbstractControl` from a user-specified configuration.
       *
       * The `FormBuilder` provides syntactic sugar that shortens creating instances of a `FormControl`,
       * `FormGroup`, or `FormArray`. It reduces the amount of boilerplate needed to build complex
       * forms.
       *
       * @see [Reactive Forms Guide](/guide/reactive-forms)
       *
       * @publicApi
       */


      var FormBuilder = /*#__PURE__*/function () {
        function FormBuilder() {
          _classCallCheck2(this, FormBuilder);
        }

        _createClass2(FormBuilder, [{
          key: "group",
          value:
          /**
           * @description
           * Construct a new `FormGroup` instance.
           *
           * @param controlsConfig A collection of child controls. The key for each child is the name
           * under which it is registered.
           *
           * @param options Configuration options object for the `FormGroup`. The object can
           * have two shapes:
           *
           * 1) `AbstractControlOptions` object (preferred), which consists of:
           * * `validators`: A synchronous validator function, or an array of validator functions
           * * `asyncValidators`: A single async validator or array of async validator functions
           * * `updateOn`: The event upon which the control should be updated (options: 'change' | 'blur' |
           * submit')
           *
           * 2) Legacy configuration object, which consists of:
           * * `validator`: A synchronous validator function, or an array of validator functions
           * * `asyncValidator`: A single async validator or array of async validator functions
           *
           */
          function group(controlsConfig) {
            var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;

            var controls = this._reduceControls(controlsConfig);

            var validators = null;
            var asyncValidators = null;
            var updateOn = undefined;

            if (options != null) {
              if (isAbstractControlOptions(options)) {
                // `options` are `AbstractControlOptions`
                validators = options.validators != null ? options.validators : null;
                asyncValidators = options.asyncValidators != null ? options.asyncValidators : null;
                updateOn = options.updateOn != null ? options.updateOn : undefined;
              } else {
                // `options` are legacy form group options
                validators = options['validator'] != null ? options['validator'] : null;
                asyncValidators = options['asyncValidator'] != null ? options['asyncValidator'] : null;
              }
            }

            return new FormGroup(controls, {
              asyncValidators: asyncValidators,
              updateOn: updateOn,
              validators: validators
            });
          }
          /**
           * @description
           * Construct a new `FormControl` with the given state, validators and options.
           *
           * @param formState Initializes the control with an initial state value, or
           * with an object that contains both a value and a disabled status.
           *
           * @param validatorOrOpts A synchronous validator function, or an array of
           * such functions, or an `AbstractControlOptions` object that contains
           * validation functions and a validation trigger.
           *
           * @param asyncValidator A single async validator or array of async validator
           * functions.
           *
           * @usageNotes
           *
           * ### Initialize a control as disabled
           *
           * The following example returns a control with an initial value in a disabled state.
           *
           * <code-example path="forms/ts/formBuilder/form_builder_example.ts" region="disabled-control">
           * </code-example>
           */

        }, {
          key: "control",
          value: function control(formState, validatorOrOpts, asyncValidator) {
            return new FormControl(formState, validatorOrOpts, asyncValidator);
          }
          /**
           * Constructs a new `FormArray` from the given array of configurations,
           * validators and options.
           *
           * @param controlsConfig An array of child controls or control configs. Each
           * child control is given an index when it is registered.
           *
           * @param validatorOrOpts A synchronous validator function, or an array of
           * such functions, or an `AbstractControlOptions` object that contains
           * validation functions and a validation trigger.
           *
           * @param asyncValidator A single async validator or array of async validator
           * functions.
           */

        }, {
          key: "array",
          value: function array(controlsConfig, validatorOrOpts, asyncValidator) {
            var _this927 = this;

            var controls = controlsConfig.map(function (c) {
              return _this927._createControl(c);
            });
            return new FormArray(controls, validatorOrOpts, asyncValidator);
          }
          /** @internal */

        }, {
          key: "_reduceControls",
          value: function _reduceControls(controlsConfig) {
            var _this928 = this;

            var controls = {};
            Object.keys(controlsConfig).forEach(function (controlName) {
              controls[controlName] = _this928._createControl(controlsConfig[controlName]);
            });
            return controls;
          }
          /** @internal */

        }, {
          key: "_createControl",
          value: function _createControl(controlConfig) {
            if (controlConfig instanceof FormControl || controlConfig instanceof FormGroup || controlConfig instanceof FormArray) {
              return controlConfig;
            } else if (Array.isArray(controlConfig)) {
              var value = controlConfig[0];
              var validator = controlConfig.length > 1 ? controlConfig[1] : null;
              var asyncValidator = controlConfig.length > 2 ? controlConfig[2] : null;
              return this.control(value, validator, asyncValidator);
            } else {
              return this.control(controlConfig);
            }
          }
        }]);

        return FormBuilder;
      }();

      FormBuilder.ɵfac = function FormBuilder_Factory(t) {
        return new (t || FormBuilder)();
      };

      FormBuilder.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
        token: FormBuilder,
        factory: FormBuilder.ɵfac
      });
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](FormBuilder, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @publicApi
       */


      var VERSION = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["Version"]('11.0.0');
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Exports the required providers and directives for template-driven forms,
       * making them available for import by NgModules that import this module.
       *
       * @see [Forms Overview](/guide/forms-overview)
       * @see [Template-driven Forms Guide](/guide/forms)
       *
       * @publicApi
       */

      var FormsModule = function FormsModule() {
        _classCallCheck2(this, FormsModule);
      };

      FormsModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
        type: FormsModule
      });
      FormsModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
        factory: function FormsModule_Factory(t) {
          return new (t || FormsModule)();
        },
        providers: [RadioControlRegistry],
        imports: [ɵInternalFormsSharedModule]
      });

      (function () {
        (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](FormsModule, {
          declarations: [NgModel, NgModelGroup, NgForm],
          exports: [ɵInternalFormsSharedModule, NgModel, NgModelGroup, NgForm]
        });
      })();
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](FormsModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
          args: [{
            declarations: TEMPLATE_DRIVEN_DIRECTIVES,
            providers: [RadioControlRegistry],
            exports: [ɵInternalFormsSharedModule, TEMPLATE_DRIVEN_DIRECTIVES]
          }]
        }], null, null);
      })();
      /**
       * Exports the required infrastructure and directives for reactive forms,
       * making them available for import by NgModules that import this module.
       *
       * @see [Forms Overview](guide/forms-overview)
       * @see [Reactive Forms Guide](guide/reactive-forms)
       *
       * @publicApi
       */


      var ReactiveFormsModule = /*#__PURE__*/function () {
        function ReactiveFormsModule() {
          _classCallCheck2(this, ReactiveFormsModule);
        }

        _createClass2(ReactiveFormsModule, null, [{
          key: "withConfig",
          value:
          /**
           * @description
           * Provides options for configuring the reactive forms module.
           *
           * @param opts An object of configuration options
           * * `warnOnNgModelWithFormControl` Configures when to emit a warning when an `ngModel`
           * binding is used with reactive form directives.
           */
          function withConfig(opts) {
            return {
              ngModule: ReactiveFormsModule,
              providers: [{
                provide: NG_MODEL_WITH_FORM_CONTROL_WARNING,
                useValue: opts.warnOnNgModelWithFormControl
              }]
            };
          }
        }]);

        return ReactiveFormsModule;
      }();

      ReactiveFormsModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
        type: ReactiveFormsModule
      });
      ReactiveFormsModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
        factory: function ReactiveFormsModule_Factory(t) {
          return new (t || ReactiveFormsModule)();
        },
        providers: [FormBuilder, RadioControlRegistry],
        imports: [ɵInternalFormsSharedModule]
      });

      (function () {
        (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](ReactiveFormsModule, {
          declarations: [FormControlDirective, FormGroupDirective, FormControlName, FormGroupName, FormArrayName],
          exports: [ɵInternalFormsSharedModule, FormControlDirective, FormGroupDirective, FormControlName, FormGroupName, FormArrayName]
        });
      })();
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ReactiveFormsModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
          args: [{
            declarations: [REACTIVE_DRIVEN_DIRECTIVES],
            providers: [FormBuilder, RadioControlRegistry],
            exports: [ɵInternalFormsSharedModule, REACTIVE_DRIVEN_DIRECTIVES]
          }]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */
      // This file only reexports content of the `src` folder. Keep it that way.

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Generated bundle index. Do not edit.
       */
      //# sourceMappingURL=forms.js.map

      /***/

    },

    /***/
    "sBI4": function sBI4(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return getISOWeek;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _startOfISOWeek_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../startOfISOWeek/index.js */
      "1dmy");
      /* harmony import */


      var _startOfISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../startOfISOWeekYear/index.js */
      "0f5V");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");

      var MILLISECONDS_IN_WEEK = 604800000;
      /**
       * @name getISOWeek
       * @category ISO Week Helpers
       * @summary Get the ISO week of the given date.
       *
       * @description
       * Get the ISO week of the given date.
       *
       * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
       *
       * ### 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 {Date|Number} date - the given date
       * @returns {Number} the ISO week
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // Which week of the ISO-week numbering year is 2 January 2005?
       * var result = getISOWeek(new Date(2005, 0, 2))
       * //=> 53
       */

      function getISOWeek(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(1, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);
        var diff = Object(_startOfISOWeek_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(date).getTime() - Object(_startOfISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(date).getTime(); // Round the number of days to the nearest integer
        // because the number of milliseconds in a week is not constant
        // (e.g. it's different in the week of the daylight saving time clock shift)

        return Math.round(diff / MILLISECONDS_IN_WEEK) + 1;
      }
      /***/

    },

    /***/
    "sTY7": function sTY7(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "windowToggle", function () {
        return windowToggle;
      });
      /* harmony import */


      var _Subject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Subject */
      "XNiG");
      /* harmony import */


      var _Subscription__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../Subscription */
      "quSY");
      /* harmony import */


      var _OuterSubscriber__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../OuterSubscriber */
      "l7GE");
      /* harmony import */


      var _util_subscribeToResult__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../util/subscribeToResult */
      "ZUHj");

      function windowToggle(openings, closingSelector) {
        return function (source) {
          return source.lift(new WindowToggleOperator(openings, closingSelector));
        };
      }

      var WindowToggleOperator = /*#__PURE__*/function () {
        function WindowToggleOperator(openings, closingSelector) {
          _classCallCheck2(this, WindowToggleOperator);

          this.openings = openings;
          this.closingSelector = closingSelector;
        }

        _createClass2(WindowToggleOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            return source.subscribe(new WindowToggleSubscriber(subscriber, this.openings, this.closingSelector));
          }
        }]);

        return WindowToggleOperator;
      }();

      var WindowToggleSubscriber = /*#__PURE__*/function (_OuterSubscriber__WEB6) {
        _inherits2(WindowToggleSubscriber, _OuterSubscriber__WEB6);

        var _super442 = _createSuper2(WindowToggleSubscriber);

        function WindowToggleSubscriber(destination, openings, closingSelector) {
          var _this929;

          _classCallCheck2(this, WindowToggleSubscriber);

          _this929 = _super442.call(this, destination);
          _this929.openings = openings;
          _this929.closingSelector = closingSelector;
          _this929.contexts = [];

          _this929.add(_this929.openSubscription = Object(_util_subscribeToResult__WEBPACK_IMPORTED_MODULE_3__["subscribeToResult"])(_assertThisInitialized2(_this929), openings, openings));

          return _this929;
        }

        _createClass2(WindowToggleSubscriber, [{
          key: "_next",
          value: function _next(value) {
            var contexts = this.contexts;

            if (contexts) {
              var len = contexts.length;

              for (var i = 0; i < len; i++) {
                contexts[i].window.next(value);
              }
            }
          }
        }, {
          key: "_error",
          value: function _error(err) {
            var contexts = this.contexts;
            this.contexts = null;

            if (contexts) {
              var len = contexts.length;
              var index = -1;

              while (++index < len) {
                var context = contexts[index];
                context.window.error(err);
                context.subscription.unsubscribe();
              }
            }

            _get2(_getPrototypeOf2(WindowToggleSubscriber.prototype), "_error", this).call(this, err);
          }
        }, {
          key: "_complete",
          value: function _complete() {
            var contexts = this.contexts;
            this.contexts = null;

            if (contexts) {
              var len = contexts.length;
              var index = -1;

              while (++index < len) {
                var context = contexts[index];
                context.window.complete();
                context.subscription.unsubscribe();
              }
            }

            _get2(_getPrototypeOf2(WindowToggleSubscriber.prototype), "_complete", this).call(this);
          }
        }, {
          key: "_unsubscribe",
          value: function _unsubscribe() {
            var contexts = this.contexts;
            this.contexts = null;

            if (contexts) {
              var len = contexts.length;
              var index = -1;

              while (++index < len) {
                var context = contexts[index];
                context.window.unsubscribe();
                context.subscription.unsubscribe();
              }
            }
          }
        }, {
          key: "notifyNext",
          value: function notifyNext(outerValue, innerValue, outerIndex, innerIndex, innerSub) {
            if (outerValue === this.openings) {
              var closingNotifier;

              try {
                var closingSelector = this.closingSelector;
                closingNotifier = closingSelector(innerValue);
              } catch (e) {
                return this.error(e);
              }

              var _window7 = new _Subject__WEBPACK_IMPORTED_MODULE_0__["Subject"]();

              var subscription = new _Subscription__WEBPACK_IMPORTED_MODULE_1__["Subscription"]();
              var context = {
                window: _window7,
                subscription: subscription
              };
              this.contexts.push(context);
              var innerSubscription = Object(_util_subscribeToResult__WEBPACK_IMPORTED_MODULE_3__["subscribeToResult"])(this, closingNotifier, context);

              if (innerSubscription.closed) {
                this.closeWindow(this.contexts.length - 1);
              } else {
                innerSubscription.context = context;
                subscription.add(innerSubscription);
              }

              this.destination.next(_window7);
            } else {
              this.closeWindow(this.contexts.indexOf(outerValue));
            }
          }
        }, {
          key: "notifyError",
          value: function notifyError(err) {
            this.error(err);
          }
        }, {
          key: "notifyComplete",
          value: function notifyComplete(inner) {
            if (inner !== this.openSubscription) {
              this.closeWindow(this.contexts.indexOf(inner.context));
            }
          }
        }, {
          key: "closeWindow",
          value: function closeWindow(index) {
            if (index === -1) {
              return;
            }

            var contexts = this.contexts;
            var context = contexts[index];
            var window = context.window,
                subscription = context.subscription;
            contexts.splice(index, 1);
            window.complete();
            subscription.unsubscribe();
          }
        }]);

        return WindowToggleSubscriber;
      }(_OuterSubscriber__WEBPACK_IMPORTED_MODULE_2__["OuterSubscriber"]); //# sourceMappingURL=windowToggle.js.map

      /***/

    },

    /***/
    "sVev": function sVev(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "EmptyError", function () {
        return EmptyError;
      });

      var EmptyErrorImpl = function () {
        function EmptyErrorImpl() {
          Error.call(this);
          this.message = 'no elements in sequence';
          this.name = 'EmptyError';
          return this;
        }

        EmptyErrorImpl.prototype = Object.create(Error.prototype);
        return EmptyErrorImpl;
      }();

      var EmptyError = EmptyErrorImpl; //# sourceMappingURL=EmptyError.js.map

      /***/
    },

    /***/
    "sWYD": function sWYD(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return format;
      });
      /* harmony import */


      var _isValid_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../isValid/index.js */
      "Se/U");
      /* harmony import */


      var _locale_en_US_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../locale/en-US/index.js */
      "iSMj");
      /* harmony import */


      var _subMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../subMilliseconds/index.js */
      "g9KO");
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_format_formatters_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! ../_lib/format/formatters/index.js */
      "DG9o");
      /* harmony import */


      var _lib_format_longFormatters_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! ../_lib/format/longFormatters/index.js */
      "Ib5w");
      /* harmony import */


      var _lib_getTimezoneOffsetInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
      /*! ../_lib/getTimezoneOffsetInMilliseconds/index.js */
      "JCDJ");
      /* harmony import */


      var _lib_protectedTokens_index_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
      /*! ../_lib/protectedTokens/index.js */
      "3REe");
      /* harmony import */


      var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
      /*! ../_lib/toInteger/index.js */
      "/h9T");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg"); // This RegExp consists of three parts separated by `|`:
      // - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token
      //   (one of the certain letters followed by `o`)
      // - (\w)\1* matches any sequences of the same letter
      // - '' matches two quote characters in a row
      // - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('),
      //   except a single quote symbol, which ends the sequence.
      //   Two quote characters do not end the sequence.
      //   If there is no matching single quote
      //   then the sequence will continue until the end of the string.
      // - . matches any single character unmatched by previous parts of the RegExps


      var formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g; // This RegExp catches symbols escaped by quotes, and also
      // sequences of symbols P, p, and the combinations like `PPPPPPPppppp`

      var longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;
      var escapedStringRegExp = /^'([^]*?)'?$/;
      var doubleQuoteRegExp = /''/g;
      var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
      /**
       * @name format
       * @category Common Helpers
       * @summary Format the date.
       *
       * @description
       * Return the formatted date string in the given format. The result may vary by locale.
       *
       * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries.
       * > See: https://git.io/fxCyr
       *
       * The characters wrapped between two single quotes characters (') are escaped.
       * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.
       * (see the last example)
       *
       * Format of the string is based on Unicode Technical Standard #35:
       * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
       * with a few additions (see note 7 below the table).
       *
       * Accepted patterns:
       * | Unit                            | Pattern | Result examples                   | Notes |
       * |---------------------------------|---------|-----------------------------------|-------|
       * | Era                             | G..GGG  | AD, BC                            |       |
       * |                                 | GGGG    | Anno Domini, Before Christ        | 2     |
       * |                                 | GGGGG   | A, B                              |       |
       * | Calendar year                   | y       | 44, 1, 1900, 2017                 | 5     |
       * |                                 | yo      | 44th, 1st, 0th, 17th              | 5,7   |
       * |                                 | yy      | 44, 01, 00, 17                    | 5     |
       * |                                 | yyy     | 044, 001, 1900, 2017              | 5     |
       * |                                 | yyyy    | 0044, 0001, 1900, 2017            | 5     |
       * |                                 | yyyyy   | ...                               | 3,5   |
       * | Local week-numbering year       | Y       | 44, 1, 1900, 2017                 | 5     |
       * |                                 | Yo      | 44th, 1st, 1900th, 2017th         | 5,7   |
       * |                                 | YY      | 44, 01, 00, 17                    | 5,8   |
       * |                                 | YYY     | 044, 001, 1900, 2017              | 5     |
       * |                                 | YYYY    | 0044, 0001, 1900, 2017            | 5,8   |
       * |                                 | YYYYY   | ...                               | 3,5   |
       * | ISO week-numbering year         | R       | -43, 0, 1, 1900, 2017             | 5,7   |
       * |                                 | RR      | -43, 00, 01, 1900, 2017           | 5,7   |
       * |                                 | RRR     | -043, 000, 001, 1900, 2017        | 5,7   |
       * |                                 | RRRR    | -0043, 0000, 0001, 1900, 2017     | 5,7   |
       * |                                 | RRRRR   | ...                               | 3,5,7 |
       * | Extended year                   | u       | -43, 0, 1, 1900, 2017             | 5     |
       * |                                 | uu      | -43, 01, 1900, 2017               | 5     |
       * |                                 | uuu     | -043, 001, 1900, 2017             | 5     |
       * |                                 | uuuu    | -0043, 0001, 1900, 2017           | 5     |
       * |                                 | uuuuu   | ...                               | 3,5   |
       * | Quarter (formatting)            | Q       | 1, 2, 3, 4                        |       |
       * |                                 | Qo      | 1st, 2nd, 3rd, 4th                | 7     |
       * |                                 | QQ      | 01, 02, 03, 04                    |       |
       * |                                 | QQQ     | Q1, Q2, Q3, Q4                    |       |
       * |                                 | QQQQ    | 1st quarter, 2nd quarter, ...     | 2     |
       * |                                 | QQQQQ   | 1, 2, 3, 4                        | 4     |
       * | Quarter (stand-alone)           | q       | 1, 2, 3, 4                        |       |
       * |                                 | qo      | 1st, 2nd, 3rd, 4th                | 7     |
       * |                                 | qq      | 01, 02, 03, 04                    |       |
       * |                                 | qqq     | Q1, Q2, Q3, Q4                    |       |
       * |                                 | qqqq    | 1st quarter, 2nd quarter, ...     | 2     |
       * |                                 | qqqqq   | 1, 2, 3, 4                        | 4     |
       * | Month (formatting)              | M       | 1, 2, ..., 12                     |       |
       * |                                 | Mo      | 1st, 2nd, ..., 12th               | 7     |
       * |                                 | MM      | 01, 02, ..., 12                   |       |
       * |                                 | MMM     | Jan, Feb, ..., Dec                |       |
       * |                                 | MMMM    | January, February, ..., December  | 2     |
       * |                                 | MMMMM   | J, F, ..., D                      |       |
       * | Month (stand-alone)             | L       | 1, 2, ..., 12                     |       |
       * |                                 | Lo      | 1st, 2nd, ..., 12th               | 7     |
       * |                                 | LL      | 01, 02, ..., 12                   |       |
       * |                                 | LLL     | Jan, Feb, ..., Dec                |       |
       * |                                 | LLLL    | January, February, ..., December  | 2     |
       * |                                 | LLLLL   | J, F, ..., D                      |       |
       * | Local week of year              | w       | 1, 2, ..., 53                     |       |
       * |                                 | wo      | 1st, 2nd, ..., 53th               | 7     |
       * |                                 | ww      | 01, 02, ..., 53                   |       |
       * | ISO week of year                | I       | 1, 2, ..., 53                     | 7     |
       * |                                 | Io      | 1st, 2nd, ..., 53th               | 7     |
       * |                                 | II      | 01, 02, ..., 53                   | 7     |
       * | Day of month                    | d       | 1, 2, ..., 31                     |       |
       * |                                 | do      | 1st, 2nd, ..., 31st               | 7     |
       * |                                 | dd      | 01, 02, ..., 31                   |       |
       * | Day of year                     | D       | 1, 2, ..., 365, 366               | 9     |
       * |                                 | Do      | 1st, 2nd, ..., 365th, 366th       | 7     |
       * |                                 | DD      | 01, 02, ..., 365, 366             | 9     |
       * |                                 | DDD     | 001, 002, ..., 365, 366           |       |
       * |                                 | DDDD    | ...                               | 3     |
       * | Day of week (formatting)        | E..EEE  | Mon, Tue, Wed, ..., Sun           |       |
       * |                                 | EEEE    | Monday, Tuesday, ..., Sunday      | 2     |
       * |                                 | EEEEE   | M, T, W, T, F, S, S               |       |
       * |                                 | EEEEEE  | Mo, Tu, We, Th, Fr, Su, Sa        |       |
       * | ISO day of week (formatting)    | i       | 1, 2, 3, ..., 7                   | 7     |
       * |                                 | io      | 1st, 2nd, ..., 7th                | 7     |
       * |                                 | ii      | 01, 02, ..., 07                   | 7     |
       * |                                 | iii     | Mon, Tue, Wed, ..., Sun           | 7     |
       * |                                 | iiii    | Monday, Tuesday, ..., Sunday      | 2,7   |
       * |                                 | iiiii   | M, T, W, T, F, S, S               | 7     |
       * |                                 | iiiiii  | Mo, Tu, We, Th, Fr, Su, Sa        | 7     |
       * | Local day of week (formatting)  | e       | 2, 3, 4, ..., 1                   |       |
       * |                                 | eo      | 2nd, 3rd, ..., 1st                | 7     |
       * |                                 | ee      | 02, 03, ..., 01                   |       |
       * |                                 | eee     | Mon, Tue, Wed, ..., Sun           |       |
       * |                                 | eeee    | Monday, Tuesday, ..., Sunday      | 2     |
       * |                                 | eeeee   | M, T, W, T, F, S, S               |       |
       * |                                 | eeeeee  | Mo, Tu, We, Th, Fr, Su, Sa        |       |
       * | Local day of week (stand-alone) | c       | 2, 3, 4, ..., 1                   |       |
       * |                                 | co      | 2nd, 3rd, ..., 1st                | 7     |
       * |                                 | cc      | 02, 03, ..., 01                   |       |
       * |                                 | ccc     | Mon, Tue, Wed, ..., Sun           |       |
       * |                                 | cccc    | Monday, Tuesday, ..., Sunday      | 2     |
       * |                                 | ccccc   | M, T, W, T, F, S, S               |       |
       * |                                 | cccccc  | Mo, Tu, We, Th, Fr, Su, Sa        |       |
       * | AM, PM                          | a..aaa  | AM, PM                            |       |
       * |                                 | aaaa    | a.m., p.m.                        | 2     |
       * |                                 | aaaaa   | a, p                              |       |
       * | AM, PM, noon, midnight          | b..bbb  | AM, PM, noon, midnight            |       |
       * |                                 | bbbb    | a.m., p.m., noon, midnight        | 2     |
       * |                                 | bbbbb   | a, p, n, mi                       |       |
       * | Flexible day period             | B..BBB  | at night, in the morning, ...     |       |
       * |                                 | BBBB    | at night, in the morning, ...     | 2     |
       * |                                 | BBBBB   | at night, in the morning, ...     |       |
       * | Hour [1-12]                     | h       | 1, 2, ..., 11, 12                 |       |
       * |                                 | ho      | 1st, 2nd, ..., 11th, 12th         | 7     |
       * |                                 | hh      | 01, 02, ..., 11, 12               |       |
       * | Hour [0-23]                     | H       | 0, 1, 2, ..., 23                  |       |
       * |                                 | Ho      | 0th, 1st, 2nd, ..., 23rd          | 7     |
       * |                                 | HH      | 00, 01, 02, ..., 23               |       |
       * | Hour [0-11]                     | K       | 1, 2, ..., 11, 0                  |       |
       * |                                 | Ko      | 1st, 2nd, ..., 11th, 0th          | 7     |
       * |                                 | KK      | 01, 02, ..., 11, 00               |       |
       * | Hour [1-24]                     | k       | 24, 1, 2, ..., 23                 |       |
       * |                                 | ko      | 24th, 1st, 2nd, ..., 23rd         | 7     |
       * |                                 | kk      | 24, 01, 02, ..., 23               |       |
       * | Minute                          | m       | 0, 1, ..., 59                     |       |
       * |                                 | mo      | 0th, 1st, ..., 59th               | 7     |
       * |                                 | mm      | 00, 01, ..., 59                   |       |
       * | Second                          | s       | 0, 1, ..., 59                     |       |
       * |                                 | so      | 0th, 1st, ..., 59th               | 7     |
       * |                                 | ss      | 00, 01, ..., 59                   |       |
       * | Fraction of second              | S       | 0, 1, ..., 9                      |       |
       * |                                 | SS      | 00, 01, ..., 99                   |       |
       * |                                 | SSS     | 000, 0001, ..., 999               |       |
       * |                                 | SSSS    | ...                               | 3     |
       * | Timezone (ISO-8601 w/ Z)        | X       | -08, +0530, Z                     |       |
       * |                                 | XX      | -0800, +0530, Z                   |       |
       * |                                 | XXX     | -08:00, +05:30, Z                 |       |
       * |                                 | XXXX    | -0800, +0530, Z, +123456          | 2     |
       * |                                 | XXXXX   | -08:00, +05:30, Z, +12:34:56      |       |
       * | Timezone (ISO-8601 w/o Z)       | x       | -08, +0530, +00                   |       |
       * |                                 | xx      | -0800, +0530, +0000               |       |
       * |                                 | xxx     | -08:00, +05:30, +00:00            | 2     |
       * |                                 | xxxx    | -0800, +0530, +0000, +123456      |       |
       * |                                 | xxxxx   | -08:00, +05:30, +00:00, +12:34:56 |       |
       * | Timezone (GMT)                  | O...OOO | GMT-8, GMT+5:30, GMT+0            |       |
       * |                                 | OOOO    | GMT-08:00, GMT+05:30, GMT+00:00   | 2     |
       * | Timezone (specific non-locat.)  | z...zzz | GMT-8, GMT+5:30, GMT+0            | 6     |
       * |                                 | zzzz    | GMT-08:00, GMT+05:30, GMT+00:00   | 2,6   |
       * | Seconds timestamp               | t       | 512969520                         | 7     |
       * |                                 | tt      | ...                               | 3,7   |
       * | Milliseconds timestamp          | T       | 512969520900                      | 7     |
       * |                                 | TT      | ...                               | 3,7   |
       * | Long localized date             | P       | 05/29/1453                        | 7     |
       * |                                 | PP      | May 29, 1453                      | 7     |
       * |                                 | PPP     | May 29th, 1453                    | 7     |
       * |                                 | PPPP    | Sunday, May 29th, 1453            | 2,7   |
       * | Long localized time             | p       | 12:00 AM                          | 7     |
       * |                                 | pp      | 12:00:00 AM                       | 7     |
       * |                                 | ppp     | 12:00:00 AM GMT+2                 | 7     |
       * |                                 | pppp    | 12:00:00 AM GMT+02:00             | 2,7   |
       * | Combination of date and time    | Pp      | 05/29/1453, 12:00 AM              | 7     |
       * |                                 | PPpp    | May 29, 1453, 12:00:00 AM         | 7     |
       * |                                 | PPPppp  | May 29th, 1453 at ...             | 7     |
       * |                                 | PPPPpppp| Sunday, May 29th, 1453 at ...     | 2,7   |
       * Notes:
       * 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale
       *    are the same as "stand-alone" units, but are different in some languages.
       *    "Formatting" units are declined according to the rules of the language
       *    in the context of a date. "Stand-alone" units are always nominative singular:
       *
       *    `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'`
       *
       *    `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'`
       *
       * 2. Any sequence of the identical letters is a pattern, unless it is escaped by
       *    the single quote characters (see below).
       *    If the sequence is longer than listed in table (e.g. `EEEEEEEEEEE`)
       *    the output will be the same as default pattern for this unit, usually
       *    the longest one (in case of ISO weekdays, `EEEE`). Default patterns for units
       *    are marked with "2" in the last column of the table.
       *
       *    `format(new Date(2017, 10, 6), 'MMM') //=> 'Nov'`
       *
       *    `format(new Date(2017, 10, 6), 'MMMM') //=> 'November'`
       *
       *    `format(new Date(2017, 10, 6), 'MMMMM') //=> 'N'`
       *
       *    `format(new Date(2017, 10, 6), 'MMMMMM') //=> 'November'`
       *
       *    `format(new Date(2017, 10, 6), 'MMMMMMM') //=> 'November'`
       *
       * 3. Some patterns could be unlimited length (such as `yyyyyyyy`).
       *    The output will be padded with zeros to match the length of the pattern.
       *
       *    `format(new Date(2017, 10, 6), 'yyyyyyyy') //=> '00002017'`
       *
       * 4. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales.
       *    These tokens represent the shortest form of the quarter.
       *
       * 5. The main difference between `y` and `u` patterns are B.C. years:
       *
       *    | Year | `y` | `u` |
       *    |------|-----|-----|
       *    | AC 1 |   1 |   1 |
       *    | BC 1 |   1 |   0 |
       *    | BC 2 |   2 |  -1 |
       *
       *    Also `yy` always returns the last two digits of a year,
       *    while `uu` pads single digit years to 2 characters and returns other years unchanged:
       *
       *    | Year | `yy` | `uu` |
       *    |------|------|------|
       *    | 1    |   01 |   01 |
       *    | 14   |   14 |   14 |
       *    | 376  |   76 |  376 |
       *    | 1453 |   53 | 1453 |
       *
       *    The same difference is true for local and ISO week-numbering years (`Y` and `R`),
       *    except local week-numbering years are dependent on `options.weekStartsOn`
       *    and `options.firstWeekContainsDate` (compare [getISOWeekYear]{@link https://date-fns.org/docs/getISOWeekYear}
       *    and [getWeekYear]{@link https://date-fns.org/docs/getWeekYear}).
       *
       * 6. Specific non-location timezones are currently unavailable in `date-fns`,
       *    so right now these tokens fall back to GMT timezones.
       *
       * 7. These patterns are not in the Unicode Technical Standard #35:
       *    - `i`: ISO day of week
       *    - `I`: ISO week of year
       *    - `R`: ISO week-numbering year
       *    - `t`: seconds timestamp
       *    - `T`: milliseconds timestamp
       *    - `o`: ordinal number modifier
       *    - `P`: long localized date
       *    - `p`: long localized time
       *
       * 8. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.
       *    You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://git.io/fxCyr
       *
       * 9. `D` and `DD` tokens represent days of the year but they are ofthen confused with days of the month.
       *    You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://git.io/fxCyr
       *
       * ### 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).
       *
       * - The second argument is now required for the sake of explicitness.
       *
       *   ```javascript
       *   // Before v2.0.0
       *   format(new Date(2016, 0, 1))
       *
       *   // v2.0.0 onward
       *   format(new Date(2016, 0, 1), "yyyy-MM-dd'T'HH:mm:ss.SSSxxx")
       *   ```
       *
       * - New format string API for `format` function
       *   which is based on [Unicode Technical Standard #35](https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table).
       *   See [this post](https://blog.date-fns.org/post/unicode-tokens-in-date-fns-v2-sreatyki91jg) for more details.
       *
       * - Characters are now escaped using single quote symbols (`'`) instead of square brackets.
       *
       * @param {Date|Number} date - the original date
       * @param {String} format - the string of tokens
       * @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)
       * @param {Number} [options.firstWeekContainsDate=1] - the day of January, which is
       * @param {Boolean} [options.useAdditionalWeekYearTokens=false] - if true, allows usage of the week-numbering year tokens `YY` and `YYYY`;
       *   see: https://git.io/fxCyr
       * @param {Boolean} [options.useAdditionalDayOfYearTokens=false] - if true, allows usage of the day of year tokens `D` and `DD`;
       *   see: https://git.io/fxCyr
       * @returns {String} the formatted date string
       * @throws {TypeError} 2 arguments required
       * @throws {RangeError} `date` must not be Invalid Date
       * @throws {RangeError} `options.locale` must contain `localize` property
       * @throws {RangeError} `options.locale` must contain `formatLong` property
       * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6
       * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7
       * @throws {RangeError} use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://git.io/fxCyr
       * @throws {RangeError} use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://git.io/fxCyr
       * @throws {RangeError} use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://git.io/fxCyr
       * @throws {RangeError} use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://git.io/fxCyr
       * @throws {RangeError} format string contains an unescaped latin alphabet character
       *
       * @example
       * // Represent 11 February 2014 in middle-endian format:
       * var result = format(new Date(2014, 1, 11), 'MM/dd/yyyy')
       * //=> '02/11/2014'
       *
       * @example
       * // Represent 2 July 2014 in Esperanto:
       * import { eoLocale } from 'date-fns/locale/eo'
       * var result = format(new Date(2014, 6, 2), "do 'de' MMMM yyyy", {
       *   locale: eoLocale
       * })
       * //=> '2-a de julio 2014'
       *
       * @example
       * // Escape string by single quote characters:
       * var result = format(new Date(2014, 6, 2, 15), "h 'o''clock'")
       * //=> "3 o'clock"
       */

      function format(dirtyDate, dirtyFormatStr, dirtyOptions) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_9__["default"])(2, arguments);
        var formatStr = String(dirtyFormatStr);
        var options = dirtyOptions || {};
        var locale = options.locale || _locale_en_US_index_js__WEBPACK_IMPORTED_MODULE_1__["default"];
        var localeFirstWeekContainsDate = locale.options && locale.options.firstWeekContainsDate;
        var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_8__["default"])(localeFirstWeekContainsDate);
        var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_8__["default"])(options.firstWeekContainsDate); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN

        if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
          throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');
        }

        var localeWeekStartsOn = locale.options && locale.options.weekStartsOn;
        var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_8__["default"])(localeWeekStartsOn);
        var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_8__["default"])(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN

        if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
          throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
        }

        if (!locale.localize) {
          throw new RangeError('locale must contain localize property');
        }

        if (!locale.formatLong) {
          throw new RangeError('locale must contain formatLong property');
        }

        var originalDate = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(dirtyDate);

        if (!Object(_isValid_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(originalDate)) {
          throw new RangeError('Invalid time value');
        } // Convert the date in system timezone to the same date in UTC+00:00 timezone.
        // This ensures that when UTC functions will be implemented, locales will be compatible with them.
        // See an issue about UTC functions: https://github.com/date-fns/date-fns/issues/376


        var timezoneOffset = Object(_lib_getTimezoneOffsetInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_6__["default"])(originalDate);
        var utcDate = Object(_subMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(originalDate, timezoneOffset);
        var formatterOptions = {
          firstWeekContainsDate: firstWeekContainsDate,
          weekStartsOn: weekStartsOn,
          locale: locale,
          _originalDate: originalDate
        };
        var result = formatStr.match(longFormattingTokensRegExp).map(function (substring) {
          var firstCharacter = substring[0];

          if (firstCharacter === 'p' || firstCharacter === 'P') {
            var longFormatter = _lib_format_longFormatters_index_js__WEBPACK_IMPORTED_MODULE_5__["default"][firstCharacter];
            return longFormatter(substring, locale.formatLong, formatterOptions);
          }

          return substring;
        }).join('').match(formattingTokensRegExp).map(function (substring) {
          // Replace two single quote characters with one single quote character
          if (substring === "''") {
            return "'";
          }

          var firstCharacter = substring[0];

          if (firstCharacter === "'") {
            return cleanEscapedString(substring);
          }

          var formatter = _lib_format_formatters_index_js__WEBPACK_IMPORTED_MODULE_4__["default"][firstCharacter];

          if (formatter) {
            if (!options.useAdditionalWeekYearTokens && Object(_lib_protectedTokens_index_js__WEBPACK_IMPORTED_MODULE_7__["isProtectedWeekYearToken"])(substring)) {
              Object(_lib_protectedTokens_index_js__WEBPACK_IMPORTED_MODULE_7__["throwProtectedError"])(substring, dirtyFormatStr, dirtyDate);
            }

            if (!options.useAdditionalDayOfYearTokens && Object(_lib_protectedTokens_index_js__WEBPACK_IMPORTED_MODULE_7__["isProtectedDayOfYearToken"])(substring)) {
              Object(_lib_protectedTokens_index_js__WEBPACK_IMPORTED_MODULE_7__["throwProtectedError"])(substring, dirtyFormatStr, dirtyDate);
            }

            return formatter(utcDate, substring, locale.localize, formatterOptions);
          }

          if (firstCharacter.match(unescapedLatinCharacterRegExp)) {
            throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`');
          }

          return substring;
        }).join('');
        return result;
      }

      function cleanEscapedString(input) {
        return input.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp, "'");
      }
      /***/

    },

    /***/
    "sdC+": function sdC(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return subYears;
      });
      /* harmony import */


      var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../_lib/toInteger/index.js */
      "/h9T");
      /* harmony import */


      var _addYears_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../addYears/index.js */
      "zbbA");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name subYears
       * @category Year Helpers
       * @summary Subtract the specified number of years from the given date.
       *
       * @description
       * Subtract the specified number of years from the given date.
       *
       * ### 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 {Date|Number} date - the date to be changed
       * @param {Number} amount - the amount of years to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
       * @returns {Date} the new date with the years subtracted
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // Subtract 5 years from 1 September 2014:
       * var result = subYears(new Date(2014, 8, 1), 5)
       * //=> Tue Sep 01 2009 00:00:00
       */


      function subYears(dirtyDate, dirtyAmount) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(2, arguments);
        var amount = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyAmount);
        return Object(_addYears_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate, -amount);
      }
      /***/

    },

    /***/
    "sp3z": function sp3z(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Lao [lo]
      //! author : Ryan Hart : https://github.com/ryanhart2
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var lo = moment.defineLocale('lo', {
          months: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),
          monthsShort: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),
          weekdays: 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
          weekdaysShort: 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
          weekdaysMin: 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'),
          weekdaysParseExact: true,
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'ວັນdddd D MMMM YYYY HH:mm'
          },
          meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/,
          isPM: function isPM(input) {
            return input === 'ຕອນແລງ';
          },
          meridiem: function meridiem(hour, minute, isLower) {
            if (hour < 12) {
              return 'ຕອນເຊົ້າ';
            } else {
              return 'ຕອນແລງ';
            }
          },
          calendar: {
            sameDay: '[ມື້ນີ້ເວລາ] LT',
            nextDay: '[ມື້ອື່ນເວລາ] LT',
            nextWeek: '[ວັນ]dddd[ໜ້າເວລາ] LT',
            lastDay: '[ມື້ວານນີ້ເວລາ] LT',
            lastWeek: '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'ອີກ %s',
            past: '%sຜ່ານມາ',
            s: 'ບໍ່ເທົ່າໃດວິນາທີ',
            ss: '%d ວິນາທີ',
            m: '1 ນາທີ',
            mm: '%d ນາທີ',
            h: '1 ຊົ່ວໂມງ',
            hh: '%d ຊົ່ວໂມງ',
            d: '1 ມື້',
            dd: '%d ມື້',
            M: '1 ເດືອນ',
            MM: '%d ເດືອນ',
            y: '1 ປີ',
            yy: '%d ປີ'
          },
          dayOfMonthOrdinalParse: /(ທີ່)\d{1,2}/,
          ordinal: function ordinal(number) {
            return 'ທີ່' + number;
          }
        });
        return lo;
      });
      /***/

    },

    /***/
    "syX2": function syX2(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "timeoutWith", function () {
        return timeoutWith;
      });
      /* harmony import */


      var _scheduler_async__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../scheduler/async */
      "D0XW");
      /* harmony import */


      var _util_isDate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../util/isDate */
      "mlxB");
      /* harmony import */


      var _innerSubscribe__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../innerSubscribe */
      "zx2A");

      function timeoutWith(due, withObservable) {
        var scheduler = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _scheduler_async__WEBPACK_IMPORTED_MODULE_0__["async"];
        return function (source) {
          var absoluteTimeout = Object(_util_isDate__WEBPACK_IMPORTED_MODULE_1__["isDate"])(due);
          var waitFor = absoluteTimeout ? +due - scheduler.now() : Math.abs(due);
          return source.lift(new TimeoutWithOperator(waitFor, absoluteTimeout, withObservable, scheduler));
        };
      }

      var TimeoutWithOperator = /*#__PURE__*/function () {
        function TimeoutWithOperator(waitFor, absoluteTimeout, withObservable, scheduler) {
          _classCallCheck2(this, TimeoutWithOperator);

          this.waitFor = waitFor;
          this.absoluteTimeout = absoluteTimeout;
          this.withObservable = withObservable;
          this.scheduler = scheduler;
        }

        _createClass2(TimeoutWithOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            return source.subscribe(new TimeoutWithSubscriber(subscriber, this.absoluteTimeout, this.waitFor, this.withObservable, this.scheduler));
          }
        }]);

        return TimeoutWithOperator;
      }();

      var TimeoutWithSubscriber = /*#__PURE__*/function (_innerSubscribe__WEBP17) {
        _inherits2(TimeoutWithSubscriber, _innerSubscribe__WEBP17);

        var _super443 = _createSuper2(TimeoutWithSubscriber);

        function TimeoutWithSubscriber(destination, absoluteTimeout, waitFor, withObservable, scheduler) {
          var _this930;

          _classCallCheck2(this, TimeoutWithSubscriber);

          _this930 = _super443.call(this, destination);
          _this930.absoluteTimeout = absoluteTimeout;
          _this930.waitFor = waitFor;
          _this930.withObservable = withObservable;
          _this930.scheduler = scheduler;

          _this930.scheduleTimeout();

          return _this930;
        }

        _createClass2(TimeoutWithSubscriber, [{
          key: "scheduleTimeout",
          value: function scheduleTimeout() {
            var action = this.action;

            if (action) {
              this.action = action.schedule(this, this.waitFor);
            } else {
              this.add(this.action = this.scheduler.schedule(TimeoutWithSubscriber.dispatchTimeout, this.waitFor, this));
            }
          }
        }, {
          key: "_next",
          value: function _next(value) {
            if (!this.absoluteTimeout) {
              this.scheduleTimeout();
            }

            _get2(_getPrototypeOf2(TimeoutWithSubscriber.prototype), "_next", this).call(this, value);
          }
        }, {
          key: "_unsubscribe",
          value: function _unsubscribe() {
            this.action = undefined;
            this.scheduler = null;
            this.withObservable = null;
          }
        }], [{
          key: "dispatchTimeout",
          value: function dispatchTimeout(subscriber) {
            var withObservable = subscriber.withObservable;

            subscriber._unsubscribeAndRecycle();

            subscriber.add(Object(_innerSubscribe__WEBPACK_IMPORTED_MODULE_2__["innerSubscribe"])(withObservable, new _innerSubscribe__WEBPACK_IMPORTED_MODULE_2__["SimpleInnerSubscriber"](subscriber)));
          }
        }]);

        return TimeoutWithSubscriber;
      }(_innerSubscribe__WEBPACK_IMPORTED_MODULE_2__["SimpleOuterSubscriber"]); //# sourceMappingURL=timeoutWith.js.map

      /***/

    },

    /***/
    "t+mt": function tMt(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : English (Singapore) [en-sg]
      //! author : Matthew Castrillon-Madrigal : https://github.com/techdimension
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var enSg = moment.defineLocale('en-sg', {
          months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
          monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
          weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
          weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
          weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd, D MMMM YYYY HH:mm'
          },
          calendar: {
            sameDay: '[Today at] LT',
            nextDay: '[Tomorrow at] LT',
            nextWeek: 'dddd [at] LT',
            lastDay: '[Yesterday at] LT',
            lastWeek: '[Last] dddd [at] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'in %s',
            past: '%s ago',
            s: 'a few seconds',
            ss: '%d seconds',
            m: 'a minute',
            mm: '%d minutes',
            h: 'an hour',
            hh: '%d hours',
            d: 'a day',
            dd: '%d days',
            M: 'a month',
            MM: '%d months',
            y: 'a year',
            yy: '%d years'
          },
          dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
          ordinal: function ordinal(number) {
            var b = number % 10,
                output = ~~(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';
            return number + output;
          },
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return enSg;
      });
      /***/

    },

    /***/
    "t/UT": function tUT(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /*!
       * perfect-scrollbar v1.5.0
       * Copyright 2020 Hyunje Jun, MDBootstrap and Contributors
       * Licensed under MIT
       */


      function get(element) {
        return getComputedStyle(element);
      }

      function set(element, obj) {
        for (var key in obj) {
          var val = obj[key];

          if (typeof val === 'number') {
            val = val + "px";
          }

          element.style[key] = val;
        }

        return element;
      }

      function div(className) {
        var div = document.createElement('div');
        div.className = className;
        return div;
      }

      var elMatches = typeof Element !== 'undefined' && (Element.prototype.matches || Element.prototype.webkitMatchesSelector || Element.prototype.mozMatchesSelector || Element.prototype.msMatchesSelector);

      function matches(element, query) {
        if (!elMatches) {
          throw new Error('No element matching method supported');
        }

        return elMatches.call(element, query);
      }

      function remove(element) {
        if (element.remove) {
          element.remove();
        } else {
          if (element.parentNode) {
            element.parentNode.removeChild(element);
          }
        }
      }

      function queryChildren(element, selector) {
        return Array.prototype.filter.call(element.children, function (child) {
          return matches(child, selector);
        });
      }

      var cls = {
        main: 'ps',
        rtl: 'ps__rtl',
        element: {
          thumb: function thumb(x) {
            return "ps__thumb-" + x;
          },
          rail: function rail(x) {
            return "ps__rail-" + x;
          },
          consuming: 'ps__child--consume'
        },
        state: {
          focus: 'ps--focus',
          clicking: 'ps--clicking',
          active: function active(x) {
            return "ps--active-" + x;
          },
          scrolling: function scrolling(x) {
            return "ps--scrolling-" + x;
          }
        }
      };
      /*
       * Helper methods
       */

      var scrollingClassTimeout = {
        x: null,
        y: null
      };

      function addScrollingClass(i, x) {
        var classList = i.element.classList;
        var className = cls.state.scrolling(x);

        if (classList.contains(className)) {
          clearTimeout(scrollingClassTimeout[x]);
        } else {
          classList.add(className);
        }
      }

      function removeScrollingClass(i, x) {
        scrollingClassTimeout[x] = setTimeout(function () {
          return i.isAlive && i.element.classList.remove(cls.state.scrolling(x));
        }, i.settings.scrollingThreshold);
      }

      function setScrollingClassInstantly(i, x) {
        addScrollingClass(i, x);
        removeScrollingClass(i, x);
      }

      var EventElement = function EventElement(element) {
        this.element = element;
        this.handlers = {};
      };

      var prototypeAccessors = {
        isEmpty: {
          configurable: true
        }
      };

      EventElement.prototype.bind = function bind(eventName, handler) {
        if (typeof this.handlers[eventName] === 'undefined') {
          this.handlers[eventName] = [];
        }

        this.handlers[eventName].push(handler);
        this.element.addEventListener(eventName, handler, false);
      };

      EventElement.prototype.unbind = function unbind(eventName, target) {
        var this$1 = this;
        this.handlers[eventName] = this.handlers[eventName].filter(function (handler) {
          if (target && handler !== target) {
            return true;
          }

          this$1.element.removeEventListener(eventName, handler, false);
          return false;
        });
      };

      EventElement.prototype.unbindAll = function unbindAll() {
        for (var name in this.handlers) {
          this.unbind(name);
        }
      };

      prototypeAccessors.isEmpty.get = function () {
        var this$1 = this;
        return Object.keys(this.handlers).every(function (key) {
          return this$1.handlers[key].length === 0;
        });
      };

      Object.defineProperties(EventElement.prototype, prototypeAccessors);

      var EventManager = function EventManager() {
        this.eventElements = [];
      };

      EventManager.prototype.eventElement = function eventElement(element) {
        var ee = this.eventElements.filter(function (ee) {
          return ee.element === element;
        })[0];

        if (!ee) {
          ee = new EventElement(element);
          this.eventElements.push(ee);
        }

        return ee;
      };

      EventManager.prototype.bind = function bind(element, eventName, handler) {
        this.eventElement(element).bind(eventName, handler);
      };

      EventManager.prototype.unbind = function unbind(element, eventName, handler) {
        var ee = this.eventElement(element);
        ee.unbind(eventName, handler);

        if (ee.isEmpty) {
          // remove
          this.eventElements.splice(this.eventElements.indexOf(ee), 1);
        }
      };

      EventManager.prototype.unbindAll = function unbindAll() {
        this.eventElements.forEach(function (e) {
          return e.unbindAll();
        });
        this.eventElements = [];
      };

      EventManager.prototype.once = function once(element, eventName, handler) {
        var ee = this.eventElement(element);

        var onceHandler = function onceHandler(evt) {
          ee.unbind(eventName, onceHandler);
          handler(evt);
        };

        ee.bind(eventName, onceHandler);
      };

      function createEvent(name) {
        if (typeof window.CustomEvent === 'function') {
          return new CustomEvent(name);
        } else {
          var evt = document.createEvent('CustomEvent');
          evt.initCustomEvent(name, false, false, undefined);
          return evt;
        }
      }

      function processScrollDiff(i, axis, diff, useScrollingClass, forceFireReachEvent) {
        if (useScrollingClass === void 0) useScrollingClass = true;
        if (forceFireReachEvent === void 0) forceFireReachEvent = false;
        var fields;

        if (axis === 'top') {
          fields = ['contentHeight', 'containerHeight', 'scrollTop', 'y', 'up', 'down'];
        } else if (axis === 'left') {
          fields = ['contentWidth', 'containerWidth', 'scrollLeft', 'x', 'left', 'right'];
        } else {
          throw new Error('A proper axis should be provided');
        }

        processScrollDiff$1(i, diff, fields, useScrollingClass, forceFireReachEvent);
      }

      function processScrollDiff$1(i, diff, ref, useScrollingClass, forceFireReachEvent) {
        var contentHeight = ref[0];
        var containerHeight = ref[1];
        var scrollTop = ref[2];
        var y = ref[3];
        var up = ref[4];
        var down = ref[5];
        if (useScrollingClass === void 0) useScrollingClass = true;
        if (forceFireReachEvent === void 0) forceFireReachEvent = false;
        var element = i.element; // reset reach

        i.reach[y] = null; // 1 for subpixel rounding

        if (element[scrollTop] < 1) {
          i.reach[y] = 'start';
        } // 1 for subpixel rounding


        if (element[scrollTop] > i[contentHeight] - i[containerHeight] - 1) {
          i.reach[y] = 'end';
        }

        if (diff) {
          element.dispatchEvent(createEvent("ps-scroll-" + y));

          if (diff < 0) {
            element.dispatchEvent(createEvent("ps-scroll-" + up));
          } else if (diff > 0) {
            element.dispatchEvent(createEvent("ps-scroll-" + down));
          }

          if (useScrollingClass) {
            setScrollingClassInstantly(i, y);
          }
        }

        if (i.reach[y] && (diff || forceFireReachEvent)) {
          element.dispatchEvent(createEvent("ps-" + y + "-reach-" + i.reach[y]));
        }
      }

      function toInt(x) {
        return parseInt(x, 10) || 0;
      }

      function isEditable(el) {
        return matches(el, 'input,[contenteditable]') || matches(el, 'select,[contenteditable]') || matches(el, 'textarea,[contenteditable]') || matches(el, 'button,[contenteditable]');
      }

      function outerWidth(element) {
        var styles = get(element);
        return toInt(styles.width) + toInt(styles.paddingLeft) + toInt(styles.paddingRight) + toInt(styles.borderLeftWidth) + toInt(styles.borderRightWidth);
      }

      var env = {
        isWebKit: typeof document !== 'undefined' && 'WebkitAppearance' in document.documentElement.style,
        supportsTouch: typeof window !== 'undefined' && ('ontouchstart' in window || 'maxTouchPoints' in window.navigator && window.navigator.maxTouchPoints > 0 || window.DocumentTouch && document instanceof window.DocumentTouch),
        supportsIePointer: typeof navigator !== 'undefined' && navigator.msMaxTouchPoints,
        isChrome: typeof navigator !== 'undefined' && /Chrome/i.test(navigator && navigator.userAgent)
      };

      function updateGeometry(i) {
        var element = i.element;
        var roundedScrollTop = Math.floor(element.scrollTop);
        var rect = element.getBoundingClientRect();
        i.containerWidth = Math.ceil(rect.width);
        i.containerHeight = Math.ceil(rect.height);
        i.contentWidth = element.scrollWidth;
        i.contentHeight = element.scrollHeight;

        if (!element.contains(i.scrollbarXRail)) {
          // clean up and append
          queryChildren(element, cls.element.rail('x')).forEach(function (el) {
            return remove(el);
          });
          element.appendChild(i.scrollbarXRail);
        }

        if (!element.contains(i.scrollbarYRail)) {
          // clean up and append
          queryChildren(element, cls.element.rail('y')).forEach(function (el) {
            return remove(el);
          });
          element.appendChild(i.scrollbarYRail);
        }

        if (!i.settings.suppressScrollX && i.containerWidth + i.settings.scrollXMarginOffset < i.contentWidth) {
          i.scrollbarXActive = true;
          i.railXWidth = i.containerWidth - i.railXMarginWidth;
          i.railXRatio = i.containerWidth / i.railXWidth;
          i.scrollbarXWidth = getThumbSize(i, toInt(i.railXWidth * i.containerWidth / i.contentWidth));
          i.scrollbarXLeft = toInt((i.negativeScrollAdjustment + element.scrollLeft) * (i.railXWidth - i.scrollbarXWidth) / (i.contentWidth - i.containerWidth));
        } else {
          i.scrollbarXActive = false;
        }

        if (!i.settings.suppressScrollY && i.containerHeight + i.settings.scrollYMarginOffset < i.contentHeight) {
          i.scrollbarYActive = true;
          i.railYHeight = i.containerHeight - i.railYMarginHeight;
          i.railYRatio = i.containerHeight / i.railYHeight;
          i.scrollbarYHeight = getThumbSize(i, toInt(i.railYHeight * i.containerHeight / i.contentHeight));
          i.scrollbarYTop = toInt(roundedScrollTop * (i.railYHeight - i.scrollbarYHeight) / (i.contentHeight - i.containerHeight));
        } else {
          i.scrollbarYActive = false;
        }

        if (i.scrollbarXLeft >= i.railXWidth - i.scrollbarXWidth) {
          i.scrollbarXLeft = i.railXWidth - i.scrollbarXWidth;
        }

        if (i.scrollbarYTop >= i.railYHeight - i.scrollbarYHeight) {
          i.scrollbarYTop = i.railYHeight - i.scrollbarYHeight;
        }

        updateCss(element, i);

        if (i.scrollbarXActive) {
          element.classList.add(cls.state.active('x'));
        } else {
          element.classList.remove(cls.state.active('x'));
          i.scrollbarXWidth = 0;
          i.scrollbarXLeft = 0;
          element.scrollLeft = i.isRtl === true ? i.contentWidth : 0;
        }

        if (i.scrollbarYActive) {
          element.classList.add(cls.state.active('y'));
        } else {
          element.classList.remove(cls.state.active('y'));
          i.scrollbarYHeight = 0;
          i.scrollbarYTop = 0;
          element.scrollTop = 0;
        }
      }

      function getThumbSize(i, thumbSize) {
        if (i.settings.minScrollbarLength) {
          thumbSize = Math.max(thumbSize, i.settings.minScrollbarLength);
        }

        if (i.settings.maxScrollbarLength) {
          thumbSize = Math.min(thumbSize, i.settings.maxScrollbarLength);
        }

        return thumbSize;
      }

      function updateCss(element, i) {
        var xRailOffset = {
          width: i.railXWidth
        };
        var roundedScrollTop = Math.floor(element.scrollTop);

        if (i.isRtl) {
          xRailOffset.left = i.negativeScrollAdjustment + element.scrollLeft + i.containerWidth - i.contentWidth;
        } else {
          xRailOffset.left = element.scrollLeft;
        }

        if (i.isScrollbarXUsingBottom) {
          xRailOffset.bottom = i.scrollbarXBottom - roundedScrollTop;
        } else {
          xRailOffset.top = i.scrollbarXTop + roundedScrollTop;
        }

        set(i.scrollbarXRail, xRailOffset);
        var yRailOffset = {
          top: roundedScrollTop,
          height: i.railYHeight
        };

        if (i.isScrollbarYUsingRight) {
          if (i.isRtl) {
            yRailOffset.right = i.contentWidth - (i.negativeScrollAdjustment + element.scrollLeft) - i.scrollbarYRight - i.scrollbarYOuterWidth - 9;
          } else {
            yRailOffset.right = i.scrollbarYRight - element.scrollLeft;
          }
        } else {
          if (i.isRtl) {
            yRailOffset.left = i.negativeScrollAdjustment + element.scrollLeft + i.containerWidth * 2 - i.contentWidth - i.scrollbarYLeft - i.scrollbarYOuterWidth;
          } else {
            yRailOffset.left = i.scrollbarYLeft + element.scrollLeft;
          }
        }

        set(i.scrollbarYRail, yRailOffset);
        set(i.scrollbarX, {
          left: i.scrollbarXLeft,
          width: i.scrollbarXWidth - i.railBorderXWidth
        });
        set(i.scrollbarY, {
          top: i.scrollbarYTop,
          height: i.scrollbarYHeight - i.railBorderYWidth
        });
      }

      function clickRail(i) {
        var element = i.element;
        i.event.bind(i.scrollbarY, 'mousedown', function (e) {
          return e.stopPropagation();
        });
        i.event.bind(i.scrollbarYRail, 'mousedown', function (e) {
          var positionTop = e.pageY - window.pageYOffset - i.scrollbarYRail.getBoundingClientRect().top;
          var direction = positionTop > i.scrollbarYTop ? 1 : -1;
          i.element.scrollTop += direction * i.containerHeight;
          updateGeometry(i);
          e.stopPropagation();
        });
        i.event.bind(i.scrollbarX, 'mousedown', function (e) {
          return e.stopPropagation();
        });
        i.event.bind(i.scrollbarXRail, 'mousedown', function (e) {
          var positionLeft = e.pageX - window.pageXOffset - i.scrollbarXRail.getBoundingClientRect().left;
          var direction = positionLeft > i.scrollbarXLeft ? 1 : -1;
          i.element.scrollLeft += direction * i.containerWidth;
          updateGeometry(i);
          e.stopPropagation();
        });
      }

      function dragThumb(i) {
        bindMouseScrollHandler(i, ['containerWidth', 'contentWidth', 'pageX', 'railXWidth', 'scrollbarX', 'scrollbarXWidth', 'scrollLeft', 'x', 'scrollbarXRail']);
        bindMouseScrollHandler(i, ['containerHeight', 'contentHeight', 'pageY', 'railYHeight', 'scrollbarY', 'scrollbarYHeight', 'scrollTop', 'y', 'scrollbarYRail']);
      }

      function bindMouseScrollHandler(i, ref) {
        var containerHeight = ref[0];
        var contentHeight = ref[1];
        var pageY = ref[2];
        var railYHeight = ref[3];
        var scrollbarY = ref[4];
        var scrollbarYHeight = ref[5];
        var scrollTop = ref[6];
        var y = ref[7];
        var scrollbarYRail = ref[8];
        var element = i.element;
        var startingScrollTop = null;
        var startingMousePageY = null;
        var scrollBy = null;

        function mouseMoveHandler(e) {
          if (e.touches && e.touches[0]) {
            e[pageY] = e.touches[0].pageY;
          }

          element[scrollTop] = startingScrollTop + scrollBy * (e[pageY] - startingMousePageY);
          addScrollingClass(i, y);
          updateGeometry(i);
          e.stopPropagation();
          e.preventDefault();
        }

        function mouseUpHandler() {
          removeScrollingClass(i, y);
          i[scrollbarYRail].classList.remove(cls.state.clicking);
          i.event.unbind(i.ownerDocument, 'mousemove', mouseMoveHandler);
        }

        function bindMoves(e, touchMode) {
          startingScrollTop = element[scrollTop];

          if (touchMode && e.touches) {
            e[pageY] = e.touches[0].pageY;
          }

          startingMousePageY = e[pageY];
          scrollBy = (i[contentHeight] - i[containerHeight]) / (i[railYHeight] - i[scrollbarYHeight]);

          if (!touchMode) {
            i.event.bind(i.ownerDocument, 'mousemove', mouseMoveHandler);
            i.event.once(i.ownerDocument, 'mouseup', mouseUpHandler);
            e.preventDefault();
          } else {
            i.event.bind(i.ownerDocument, 'touchmove', mouseMoveHandler);
          }

          i[scrollbarYRail].classList.add(cls.state.clicking);
          e.stopPropagation();
        }

        i.event.bind(i[scrollbarY], 'mousedown', function (e) {
          bindMoves(e);
        });
        i.event.bind(i[scrollbarY], 'touchstart', function (e) {
          bindMoves(e, true);
        });
      }

      function keyboard(i) {
        var element = i.element;

        var elementHovered = function elementHovered() {
          return matches(element, ':hover');
        };

        var scrollbarFocused = function scrollbarFocused() {
          return matches(i.scrollbarX, ':focus') || matches(i.scrollbarY, ':focus');
        };

        function shouldPreventDefault(deltaX, deltaY) {
          var scrollTop = Math.floor(element.scrollTop);

          if (deltaX === 0) {
            if (!i.scrollbarYActive) {
              return false;
            }

            if (scrollTop === 0 && deltaY > 0 || scrollTop >= i.contentHeight - i.containerHeight && deltaY < 0) {
              return !i.settings.wheelPropagation;
            }
          }

          var scrollLeft = element.scrollLeft;

          if (deltaY === 0) {
            if (!i.scrollbarXActive) {
              return false;
            }

            if (scrollLeft === 0 && deltaX < 0 || scrollLeft >= i.contentWidth - i.containerWidth && deltaX > 0) {
              return !i.settings.wheelPropagation;
            }
          }

          return true;
        }

        i.event.bind(i.ownerDocument, 'keydown', function (e) {
          if (e.isDefaultPrevented && e.isDefaultPrevented() || e.defaultPrevented) {
            return;
          }

          if (!elementHovered() && !scrollbarFocused()) {
            return;
          }

          var activeElement = document.activeElement ? document.activeElement : i.ownerDocument.activeElement;

          if (activeElement) {
            if (activeElement.tagName === 'IFRAME') {
              activeElement = activeElement.contentDocument.activeElement;
            } else {
              // go deeper if element is a webcomponent
              while (activeElement.shadowRoot) {
                activeElement = activeElement.shadowRoot.activeElement;
              }
            }

            if (isEditable(activeElement)) {
              return;
            }
          }

          var deltaX = 0;
          var deltaY = 0;

          switch (e.which) {
            case 37:
              // left
              if (e.metaKey) {
                deltaX = -i.contentWidth;
              } else if (e.altKey) {
                deltaX = -i.containerWidth;
              } else {
                deltaX = -30;
              }

              break;

            case 38:
              // up
              if (e.metaKey) {
                deltaY = i.contentHeight;
              } else if (e.altKey) {
                deltaY = i.containerHeight;
              } else {
                deltaY = 30;
              }

              break;

            case 39:
              // right
              if (e.metaKey) {
                deltaX = i.contentWidth;
              } else if (e.altKey) {
                deltaX = i.containerWidth;
              } else {
                deltaX = 30;
              }

              break;

            case 40:
              // down
              if (e.metaKey) {
                deltaY = -i.contentHeight;
              } else if (e.altKey) {
                deltaY = -i.containerHeight;
              } else {
                deltaY = -30;
              }

              break;

            case 32:
              // space bar
              if (e.shiftKey) {
                deltaY = i.containerHeight;
              } else {
                deltaY = -i.containerHeight;
              }

              break;

            case 33:
              // page up
              deltaY = i.containerHeight;
              break;

            case 34:
              // page down
              deltaY = -i.containerHeight;
              break;

            case 36:
              // home
              deltaY = i.contentHeight;
              break;

            case 35:
              // end
              deltaY = -i.contentHeight;
              break;

            default:
              return;
          }

          if (i.settings.suppressScrollX && deltaX !== 0) {
            return;
          }

          if (i.settings.suppressScrollY && deltaY !== 0) {
            return;
          }

          element.scrollTop -= deltaY;
          element.scrollLeft += deltaX;
          updateGeometry(i);

          if (shouldPreventDefault(deltaX, deltaY)) {
            e.preventDefault();
          }
        });
      }

      function wheel(i) {
        var element = i.element;

        function shouldPreventDefault(deltaX, deltaY) {
          var roundedScrollTop = Math.floor(element.scrollTop);
          var isTop = element.scrollTop === 0;
          var isBottom = roundedScrollTop + element.offsetHeight === element.scrollHeight;
          var isLeft = element.scrollLeft === 0;
          var isRight = element.scrollLeft + element.offsetWidth === element.scrollWidth;
          var hitsBound; // pick axis with primary direction

          if (Math.abs(deltaY) > Math.abs(deltaX)) {
            hitsBound = isTop || isBottom;
          } else {
            hitsBound = isLeft || isRight;
          }

          return hitsBound ? !i.settings.wheelPropagation : true;
        }

        function getDeltaFromEvent(e) {
          var deltaX = e.deltaX;
          var deltaY = -1 * e.deltaY;

          if (typeof deltaX === 'undefined' || typeof deltaY === 'undefined') {
            // OS X Safari
            deltaX = -1 * e.wheelDeltaX / 6;
            deltaY = e.wheelDeltaY / 6;
          }

          if (e.deltaMode && e.deltaMode === 1) {
            // Firefox in deltaMode 1: Line scrolling
            deltaX *= 10;
            deltaY *= 10;
          }

          if (deltaX !== deltaX && deltaY !== deltaY
          /* NaN checks */
          ) {
            // IE in some mouse drivers
            deltaX = 0;
            deltaY = e.wheelDelta;
          }

          if (e.shiftKey) {
            // reverse axis with shift key
            return [-deltaY, -deltaX];
          }

          return [deltaX, deltaY];
        }

        function shouldBeConsumedByChild(target, deltaX, deltaY) {
          // FIXME: this is a workaround for <select> issue in FF and IE #571
          if (!env.isWebKit && element.querySelector('select:focus')) {
            return true;
          }

          if (!element.contains(target)) {
            return false;
          }

          var cursor = target;

          while (cursor && cursor !== element) {
            if (cursor.classList.contains(cls.element.consuming)) {
              return true;
            }

            var style = get(cursor); // if deltaY && vertical scrollable

            if (deltaY && style.overflowY.match(/(scroll|auto)/)) {
              var maxScrollTop = cursor.scrollHeight - cursor.clientHeight;

              if (maxScrollTop > 0) {
                if (cursor.scrollTop > 0 && deltaY < 0 || cursor.scrollTop < maxScrollTop && deltaY > 0) {
                  return true;
                }
              }
            } // if deltaX && horizontal scrollable


            if (deltaX && style.overflowX.match(/(scroll|auto)/)) {
              var maxScrollLeft = cursor.scrollWidth - cursor.clientWidth;

              if (maxScrollLeft > 0) {
                if (cursor.scrollLeft > 0 && deltaX < 0 || cursor.scrollLeft < maxScrollLeft && deltaX > 0) {
                  return true;
                }
              }
            }

            cursor = cursor.parentNode;
          }

          return false;
        }

        function mousewheelHandler(e) {
          var ref = getDeltaFromEvent(e);
          var deltaX = ref[0];
          var deltaY = ref[1];

          if (shouldBeConsumedByChild(e.target, deltaX, deltaY)) {
            return;
          }

          var shouldPrevent = false;

          if (!i.settings.useBothWheelAxes) {
            // deltaX will only be used for horizontal scrolling and deltaY will
            // only be used for vertical scrolling - this is the default
            element.scrollTop -= deltaY * i.settings.wheelSpeed;
            element.scrollLeft += deltaX * i.settings.wheelSpeed;
          } else if (i.scrollbarYActive && !i.scrollbarXActive) {
            // only vertical scrollbar is active and useBothWheelAxes option is
            // active, so let's scroll vertical bar using both mouse wheel axes
            if (deltaY) {
              element.scrollTop -= deltaY * i.settings.wheelSpeed;
            } else {
              element.scrollTop += deltaX * i.settings.wheelSpeed;
            }

            shouldPrevent = true;
          } else if (i.scrollbarXActive && !i.scrollbarYActive) {
            // useBothWheelAxes and only horizontal bar is active, so use both
            // wheel axes for horizontal bar
            if (deltaX) {
              element.scrollLeft += deltaX * i.settings.wheelSpeed;
            } else {
              element.scrollLeft -= deltaY * i.settings.wheelSpeed;
            }

            shouldPrevent = true;
          }

          updateGeometry(i);
          shouldPrevent = shouldPrevent || shouldPreventDefault(deltaX, deltaY);

          if (shouldPrevent && !e.ctrlKey) {
            e.stopPropagation();
            e.preventDefault();
          }
        }

        if (typeof window.onwheel !== 'undefined') {
          i.event.bind(element, 'wheel', mousewheelHandler);
        } else if (typeof window.onmousewheel !== 'undefined') {
          i.event.bind(element, 'mousewheel', mousewheelHandler);
        }
      }

      function touch(i) {
        if (!env.supportsTouch && !env.supportsIePointer) {
          return;
        }

        var element = i.element;

        function shouldPrevent(deltaX, deltaY) {
          var scrollTop = Math.floor(element.scrollTop);
          var scrollLeft = element.scrollLeft;
          var magnitudeX = Math.abs(deltaX);
          var magnitudeY = Math.abs(deltaY);

          if (magnitudeY > magnitudeX) {
            // user is perhaps trying to swipe up/down the page
            if (deltaY < 0 && scrollTop === i.contentHeight - i.containerHeight || deltaY > 0 && scrollTop === 0) {
              // set prevent for mobile Chrome refresh
              return window.scrollY === 0 && deltaY > 0 && env.isChrome;
            }
          } else if (magnitudeX > magnitudeY) {
            // user is perhaps trying to swipe left/right across the page
            if (deltaX < 0 && scrollLeft === i.contentWidth - i.containerWidth || deltaX > 0 && scrollLeft === 0) {
              return true;
            }
          }

          return true;
        }

        function applyTouchMove(differenceX, differenceY) {
          element.scrollTop -= differenceY;
          element.scrollLeft -= differenceX;
          updateGeometry(i);
        }

        var startOffset = {};
        var startTime = 0;
        var speed = {};
        var easingLoop = null;

        function getTouch(e) {
          if (e.targetTouches) {
            return e.targetTouches[0];
          } else {
            // Maybe IE pointer
            return e;
          }
        }

        function shouldHandle(e) {
          if (e.pointerType && e.pointerType === 'pen' && e.buttons === 0) {
            return false;
          }

          if (e.targetTouches && e.targetTouches.length === 1) {
            return true;
          }

          if (e.pointerType && e.pointerType !== 'mouse' && e.pointerType !== e.MSPOINTER_TYPE_MOUSE) {
            return true;
          }

          return false;
        }

        function touchStart(e) {
          if (!shouldHandle(e)) {
            return;
          }

          var touch = getTouch(e);
          startOffset.pageX = touch.pageX;
          startOffset.pageY = touch.pageY;
          startTime = new Date().getTime();

          if (easingLoop !== null) {
            clearInterval(easingLoop);
          }
        }

        function shouldBeConsumedByChild(target, deltaX, deltaY) {
          if (!element.contains(target)) {
            return false;
          }

          var cursor = target;

          while (cursor && cursor !== element) {
            if (cursor.classList.contains(cls.element.consuming)) {
              return true;
            }

            var style = get(cursor); // if deltaY && vertical scrollable

            if (deltaY && style.overflowY.match(/(scroll|auto)/)) {
              var maxScrollTop = cursor.scrollHeight - cursor.clientHeight;

              if (maxScrollTop > 0) {
                if (cursor.scrollTop > 0 && deltaY < 0 || cursor.scrollTop < maxScrollTop && deltaY > 0) {
                  return true;
                }
              }
            } // if deltaX && horizontal scrollable


            if (deltaX && style.overflowX.match(/(scroll|auto)/)) {
              var maxScrollLeft = cursor.scrollWidth - cursor.clientWidth;

              if (maxScrollLeft > 0) {
                if (cursor.scrollLeft > 0 && deltaX < 0 || cursor.scrollLeft < maxScrollLeft && deltaX > 0) {
                  return true;
                }
              }
            }

            cursor = cursor.parentNode;
          }

          return false;
        }

        function touchMove(e) {
          if (shouldHandle(e)) {
            var touch = getTouch(e);
            var currentOffset = {
              pageX: touch.pageX,
              pageY: touch.pageY
            };
            var differenceX = currentOffset.pageX - startOffset.pageX;
            var differenceY = currentOffset.pageY - startOffset.pageY;

            if (shouldBeConsumedByChild(e.target, differenceX, differenceY)) {
              return;
            }

            applyTouchMove(differenceX, differenceY);
            startOffset = currentOffset;
            var currentTime = new Date().getTime();
            var timeGap = currentTime - startTime;

            if (timeGap > 0) {
              speed.x = differenceX / timeGap;
              speed.y = differenceY / timeGap;
              startTime = currentTime;
            }

            if (shouldPrevent(differenceX, differenceY)) {
              e.preventDefault();
            }
          }
        }

        function touchEnd() {
          if (i.settings.swipeEasing) {
            clearInterval(easingLoop);
            easingLoop = setInterval(function () {
              if (i.isInitialized) {
                clearInterval(easingLoop);
                return;
              }

              if (!speed.x && !speed.y) {
                clearInterval(easingLoop);
                return;
              }

              if (Math.abs(speed.x) < 0.01 && Math.abs(speed.y) < 0.01) {
                clearInterval(easingLoop);
                return;
              }

              applyTouchMove(speed.x * 30, speed.y * 30);
              speed.x *= 0.8;
              speed.y *= 0.8;
            }, 10);
          }
        }

        if (env.supportsTouch) {
          i.event.bind(element, 'touchstart', touchStart);
          i.event.bind(element, 'touchmove', touchMove);
          i.event.bind(element, 'touchend', touchEnd);
        } else if (env.supportsIePointer) {
          if (window.PointerEvent) {
            i.event.bind(element, 'pointerdown', touchStart);
            i.event.bind(element, 'pointermove', touchMove);
            i.event.bind(element, 'pointerup', touchEnd);
          } else if (window.MSPointerEvent) {
            i.event.bind(element, 'MSPointerDown', touchStart);
            i.event.bind(element, 'MSPointerMove', touchMove);
            i.event.bind(element, 'MSPointerUp', touchEnd);
          }
        }
      }

      var defaultSettings = function defaultSettings() {
        return {
          handlers: ['click-rail', 'drag-thumb', 'keyboard', 'wheel', 'touch'],
          maxScrollbarLength: null,
          minScrollbarLength: null,
          scrollingThreshold: 1000,
          scrollXMarginOffset: 0,
          scrollYMarginOffset: 0,
          suppressScrollX: false,
          suppressScrollY: false,
          swipeEasing: true,
          useBothWheelAxes: false,
          wheelPropagation: true,
          wheelSpeed: 1
        };
      };

      var handlers = {
        'click-rail': clickRail,
        'drag-thumb': dragThumb,
        keyboard: keyboard,
        wheel: wheel,
        touch: touch
      };

      var PerfectScrollbar = function PerfectScrollbar(element, userSettings) {
        var this$1 = this;
        if (userSettings === void 0) userSettings = {};

        if (typeof element === 'string') {
          element = document.querySelector(element);
        }

        if (!element || !element.nodeName) {
          throw new Error('no element is specified to initialize PerfectScrollbar');
        }

        this.element = element;
        element.classList.add(cls.main);
        this.settings = defaultSettings();

        for (var key in userSettings) {
          this.settings[key] = userSettings[key];
        }

        this.containerWidth = null;
        this.containerHeight = null;
        this.contentWidth = null;
        this.contentHeight = null;

        var focus = function focus() {
          return element.classList.add(cls.state.focus);
        };

        var blur = function blur() {
          return element.classList.remove(cls.state.focus);
        };

        this.isRtl = get(element).direction === 'rtl';

        if (this.isRtl === true) {
          element.classList.add(cls.rtl);
        }

        this.isNegativeScroll = function () {
          var originalScrollLeft = element.scrollLeft;
          var result = null;
          element.scrollLeft = -1;
          result = element.scrollLeft < 0;
          element.scrollLeft = originalScrollLeft;
          return result;
        }();

        this.negativeScrollAdjustment = this.isNegativeScroll ? element.scrollWidth - element.clientWidth : 0;
        this.event = new EventManager();
        this.ownerDocument = element.ownerDocument || document;
        this.scrollbarXRail = div(cls.element.rail('x'));
        element.appendChild(this.scrollbarXRail);
        this.scrollbarX = div(cls.element.thumb('x'));
        this.scrollbarXRail.appendChild(this.scrollbarX);
        this.scrollbarX.setAttribute('tabindex', 0);
        this.event.bind(this.scrollbarX, 'focus', focus);
        this.event.bind(this.scrollbarX, 'blur', blur);
        this.scrollbarXActive = null;
        this.scrollbarXWidth = null;
        this.scrollbarXLeft = null;
        var railXStyle = get(this.scrollbarXRail);
        this.scrollbarXBottom = parseInt(railXStyle.bottom, 10);

        if (isNaN(this.scrollbarXBottom)) {
          this.isScrollbarXUsingBottom = false;
          this.scrollbarXTop = toInt(railXStyle.top);
        } else {
          this.isScrollbarXUsingBottom = true;
        }

        this.railBorderXWidth = toInt(railXStyle.borderLeftWidth) + toInt(railXStyle.borderRightWidth); // Set rail to display:block to calculate margins

        set(this.scrollbarXRail, {
          display: 'block'
        });
        this.railXMarginWidth = toInt(railXStyle.marginLeft) + toInt(railXStyle.marginRight);
        set(this.scrollbarXRail, {
          display: ''
        });
        this.railXWidth = null;
        this.railXRatio = null;
        this.scrollbarYRail = div(cls.element.rail('y'));
        element.appendChild(this.scrollbarYRail);
        this.scrollbarY = div(cls.element.thumb('y'));
        this.scrollbarYRail.appendChild(this.scrollbarY);
        this.scrollbarY.setAttribute('tabindex', 0);
        this.event.bind(this.scrollbarY, 'focus', focus);
        this.event.bind(this.scrollbarY, 'blur', blur);
        this.scrollbarYActive = null;
        this.scrollbarYHeight = null;
        this.scrollbarYTop = null;
        var railYStyle = get(this.scrollbarYRail);
        this.scrollbarYRight = parseInt(railYStyle.right, 10);

        if (isNaN(this.scrollbarYRight)) {
          this.isScrollbarYUsingRight = false;
          this.scrollbarYLeft = toInt(railYStyle.left);
        } else {
          this.isScrollbarYUsingRight = true;
        }

        this.scrollbarYOuterWidth = this.isRtl ? outerWidth(this.scrollbarY) : null;
        this.railBorderYWidth = toInt(railYStyle.borderTopWidth) + toInt(railYStyle.borderBottomWidth);
        set(this.scrollbarYRail, {
          display: 'block'
        });
        this.railYMarginHeight = toInt(railYStyle.marginTop) + toInt(railYStyle.marginBottom);
        set(this.scrollbarYRail, {
          display: ''
        });
        this.railYHeight = null;
        this.railYRatio = null;
        this.reach = {
          x: element.scrollLeft <= 0 ? 'start' : element.scrollLeft >= this.contentWidth - this.containerWidth ? 'end' : null,
          y: element.scrollTop <= 0 ? 'start' : element.scrollTop >= this.contentHeight - this.containerHeight ? 'end' : null
        };
        this.isAlive = true;
        this.settings.handlers.forEach(function (handlerName) {
          return handlers[handlerName](this$1);
        });
        this.lastScrollTop = Math.floor(element.scrollTop); // for onScroll only

        this.lastScrollLeft = element.scrollLeft; // for onScroll only

        this.event.bind(this.element, 'scroll', function (e) {
          return this$1.onScroll(e);
        });
        updateGeometry(this);
      };

      PerfectScrollbar.prototype.update = function update() {
        if (!this.isAlive) {
          return;
        } // Recalcuate negative scrollLeft adjustment


        this.negativeScrollAdjustment = this.isNegativeScroll ? this.element.scrollWidth - this.element.clientWidth : 0; // Recalculate rail margins

        set(this.scrollbarXRail, {
          display: 'block'
        });
        set(this.scrollbarYRail, {
          display: 'block'
        });
        this.railXMarginWidth = toInt(get(this.scrollbarXRail).marginLeft) + toInt(get(this.scrollbarXRail).marginRight);
        this.railYMarginHeight = toInt(get(this.scrollbarYRail).marginTop) + toInt(get(this.scrollbarYRail).marginBottom); // Hide scrollbars not to affect scrollWidth and scrollHeight

        set(this.scrollbarXRail, {
          display: 'none'
        });
        set(this.scrollbarYRail, {
          display: 'none'
        });
        updateGeometry(this);
        processScrollDiff(this, 'top', 0, false, true);
        processScrollDiff(this, 'left', 0, false, true);
        set(this.scrollbarXRail, {
          display: ''
        });
        set(this.scrollbarYRail, {
          display: ''
        });
      };

      PerfectScrollbar.prototype.onScroll = function onScroll(e) {
        if (!this.isAlive) {
          return;
        }

        updateGeometry(this);
        processScrollDiff(this, 'top', this.element.scrollTop - this.lastScrollTop);
        processScrollDiff(this, 'left', this.element.scrollLeft - this.lastScrollLeft);
        this.lastScrollTop = Math.floor(this.element.scrollTop);
        this.lastScrollLeft = this.element.scrollLeft;
      };

      PerfectScrollbar.prototype.destroy = function destroy() {
        if (!this.isAlive) {
          return;
        }

        this.event.unbindAll();
        remove(this.scrollbarX);
        remove(this.scrollbarY);
        remove(this.scrollbarXRail);
        remove(this.scrollbarYRail);
        this.removePsClasses(); // unset elements

        this.element = null;
        this.scrollbarX = null;
        this.scrollbarY = null;
        this.scrollbarXRail = null;
        this.scrollbarYRail = null;
        this.isAlive = false;
      };

      PerfectScrollbar.prototype.removePsClasses = function removePsClasses() {
        this.element.className = this.element.className.split(' ').filter(function (name) {
          return !name.match(/^ps([-_].+|)$/);
        }).join(' ');
      };
      /* harmony default export */


      __webpack_exports__["default"] = PerfectScrollbar; //# sourceMappingURL=perfect-scrollbar.esm.js.map

      /***/
    },

    /***/
    "tGlX": function tGlX(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : German [de]
      //! author : lluchs : https://github.com/lluchs
      //! author: Menelion Elensúle: https://github.com/Oire
      //! author : Mikolaj Dadela : https://github.com/mik01aj
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        function processRelativeTime(number, withoutSuffix, key, isFuture) {
          var format = {
            m: ['eine Minute', 'einer Minute'],
            h: ['eine Stunde', 'einer Stunde'],
            d: ['ein Tag', 'einem Tag'],
            dd: [number + ' Tage', number + ' Tagen'],
            w: ['eine Woche', 'einer Woche'],
            M: ['ein Monat', 'einem Monat'],
            MM: [number + ' Monate', number + ' Monaten'],
            y: ['ein Jahr', 'einem Jahr'],
            yy: [number + ' Jahre', number + ' Jahren']
          };
          return withoutSuffix ? format[key][0] : format[key][1];
        }

        var de = moment.defineLocale('de', {
          months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
          monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
          monthsParseExact: true,
          weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
          weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
          weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
          weekdaysParseExact: true,
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'D. MMMM YYYY',
            LLL: 'D. MMMM YYYY HH:mm',
            LLLL: 'dddd, D. MMMM YYYY HH:mm'
          },
          calendar: {
            sameDay: '[heute um] LT [Uhr]',
            sameElse: 'L',
            nextDay: '[morgen um] LT [Uhr]',
            nextWeek: 'dddd [um] LT [Uhr]',
            lastDay: '[gestern um] LT [Uhr]',
            lastWeek: '[letzten] dddd [um] LT [Uhr]'
          },
          relativeTime: {
            future: 'in %s',
            past: 'vor %s',
            s: 'ein paar Sekunden',
            ss: '%d Sekunden',
            m: processRelativeTime,
            mm: '%d Minuten',
            h: processRelativeTime,
            hh: '%d Stunden',
            d: processRelativeTime,
            dd: processRelativeTime,
            w: processRelativeTime,
            ww: '%d Wochen',
            M: processRelativeTime,
            MM: processRelativeTime,
            y: processRelativeTime,
            yy: processRelativeTime
          },
          dayOfMonthOrdinalParse: /\d{1,2}\./,
          ordinal: '%d.',
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return de;
      });
      /***/

    },

    /***/
    "tS1D": function tS1D(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "timeout", function () {
        return timeout;
      });
      /* harmony import */


      var _scheduler_async__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../scheduler/async */
      "D0XW");
      /* harmony import */


      var _util_TimeoutError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../util/TimeoutError */
      "Y6u4");
      /* harmony import */


      var _timeoutWith__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ./timeoutWith */
      "syX2");
      /* harmony import */


      var _observable_throwError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../observable/throwError */
      "z6cu");

      function timeout(due) {
        var scheduler = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _scheduler_async__WEBPACK_IMPORTED_MODULE_0__["async"];
        return Object(_timeoutWith__WEBPACK_IMPORTED_MODULE_2__["timeoutWith"])(due, Object(_observable_throwError__WEBPACK_IMPORTED_MODULE_3__["throwError"])(new _util_TimeoutError__WEBPACK_IMPORTED_MODULE_1__["TimeoutError"]()), scheduler);
      } //# sourceMappingURL=timeout.js.map

      /***/

    },

    /***/
    "tSIP": function tSIP(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return setDate;
      });
      /* harmony import */


      var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../_lib/toInteger/index.js */
      "/h9T");
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name setDate
       * @category Day Helpers
       * @summary Set the day of the month to the given date.
       *
       * @description
       * Set the day of the month to the given date.
       *
       * ### 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 {Date|Number} date - the date to be changed
       * @param {Number} dayOfMonth - the day of the month of the new date
       * @returns {Date} the new date with the day of the month set
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // Set the 30th day of the month to 1 September 2014:
       * var result = setDate(new Date(2014, 8, 1), 30)
       * //=> Tue Sep 30 2014 00:00:00
       */


      function setDate(dirtyDate, dirtyDayOfMonth) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(2, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate);
        var dayOfMonth = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDayOfMonth);
        date.setDate(dayOfMonth);
        return date;
      }
      /***/

    },

    /***/
    "tT3J": function tT3J(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Central Atlas Tamazight Latin [tzm-latn]
      //! author : Abdel Said : https://github.com/abdelsaid
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var tzmLatn = moment.defineLocale('tzm-latn', {
          months: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
          monthsShort: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
          weekdays: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
          weekdaysShort: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
          weekdaysMin: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd D MMMM YYYY HH:mm'
          },
          calendar: {
            sameDay: '[asdkh g] LT',
            nextDay: '[aska g] LT',
            nextWeek: 'dddd [g] LT',
            lastDay: '[assant g] LT',
            lastWeek: 'dddd [g] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'dadkh s yan %s',
            past: 'yan %s',
            s: 'imik',
            ss: '%d imik',
            m: 'minuḍ',
            mm: '%d minuḍ',
            h: 'saɛa',
            hh: '%d tassaɛin',
            d: 'ass',
            dd: '%d ossan',
            M: 'ayowr',
            MM: '%d iyyirn',
            y: 'asgas',
            yy: '%d isgasn'
          },
          week: {
            dow: 6,
            // Saturday is the first day of the week.
            doy: 12 // The week that contains Jan 12th is the first week of the year.

          }
        });
        return tzmLatn;
      });
      /***/

    },

    /***/
    "tUCv": function tUCv(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Javanese [jv]
      //! author : Rony Lantip : https://github.com/lantip
      //! reference: http://jv.wikipedia.org/wiki/Basa_Jawa
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var jv = moment.defineLocale('jv', {
          months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split('_'),
          monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'),
          weekdays: 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'),
          weekdaysShort: 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'),
          weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'),
          longDateFormat: {
            LT: 'HH.mm',
            LTS: 'HH.mm.ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY [pukul] HH.mm',
            LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm'
          },
          meridiemParse: /enjing|siyang|sonten|ndalu/,
          meridiemHour: function meridiemHour(hour, meridiem) {
            if (hour === 12) {
              hour = 0;
            }

            if (meridiem === 'enjing') {
              return hour;
            } else if (meridiem === 'siyang') {
              return hour >= 11 ? hour : hour + 12;
            } else if (meridiem === 'sonten' || meridiem === 'ndalu') {
              return hour + 12;
            }
          },
          meridiem: function meridiem(hours, minutes, isLower) {
            if (hours < 11) {
              return 'enjing';
            } else if (hours < 15) {
              return 'siyang';
            } else if (hours < 19) {
              return 'sonten';
            } else {
              return 'ndalu';
            }
          },
          calendar: {
            sameDay: '[Dinten puniko pukul] LT',
            nextDay: '[Mbenjang pukul] LT',
            nextWeek: 'dddd [pukul] LT',
            lastDay: '[Kala wingi pukul] LT',
            lastWeek: 'dddd [kepengker pukul] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'wonten ing %s',
            past: '%s ingkang kepengker',
            s: 'sawetawis detik',
            ss: '%d detik',
            m: 'setunggal menit',
            mm: '%d menit',
            h: 'setunggal jam',
            hh: '%d jam',
            d: 'sedinten',
            dd: '%d dinten',
            M: 'sewulan',
            MM: '%d wulan',
            y: 'setaun',
            yy: '%d taun'
          },
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 7 // The week that contains Jan 7th is the first week of the year.

          }
        });
        return jv;
      });
      /***/

    },

    /***/
    "tbfe": function tbfe(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Spanish (Mexico) [es-mx]
      //! author : JC Franco : https://github.com/jcfranco
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),
            _monthsShort4 = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
            monthsParse = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i],
            monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;

        var esMx = moment.defineLocale('es-mx', {
          months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
          monthsShort: function monthsShort(m, format) {
            if (!m) {
              return monthsShortDot;
            } else if (/-MMM-/.test(format)) {
              return _monthsShort4[m.month()];
            } else {
              return monthsShortDot[m.month()];
            }
          },
          monthsRegex: monthsRegex,
          monthsShortRegex: monthsRegex,
          monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
          monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
          monthsParse: monthsParse,
          longMonthsParse: monthsParse,
          shortMonthsParse: monthsParse,
          weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
          weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
          weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
          weekdaysParseExact: true,
          longDateFormat: {
            LT: 'H:mm',
            LTS: 'H:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D [de] MMMM [de] YYYY',
            LLL: 'D [de] MMMM [de] YYYY H:mm',
            LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm'
          },
          calendar: {
            sameDay: function sameDay() {
              return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
            },
            nextDay: function nextDay() {
              return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
            },
            nextWeek: function nextWeek() {
              return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
            },
            lastDay: function lastDay() {
              return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
            },
            lastWeek: function lastWeek() {
              return '[el] dddd [pasado a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
            },
            sameElse: 'L'
          },
          relativeTime: {
            future: 'en %s',
            past: 'hace %s',
            s: 'unos segundos',
            ss: '%d segundos',
            m: 'un minuto',
            mm: '%d minutos',
            h: 'una hora',
            hh: '%d horas',
            d: 'un día',
            dd: '%d días',
            w: 'una semana',
            ww: '%d semanas',
            M: 'un mes',
            MM: '%d meses',
            y: 'un año',
            yy: '%d años'
          },
          dayOfMonthOrdinalParse: /\d{1,2}º/,
          ordinal: '%dº',
          week: {
            dow: 0,
            // Sunday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          },
          invalidDate: 'Fecha inválida'
        });
        return esMx;
      });
      /***/

    },

    /***/
    "tf+s": function tfS(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "subscribeOn", function () {
        return subscribeOn;
      });
      /* harmony import */


      var _observable_SubscribeOnObservable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../observable/SubscribeOnObservable */
      "O4y0");

      function subscribeOn(scheduler) {
        var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
        return function subscribeOnOperatorFunction(source) {
          return source.lift(new SubscribeOnOperator(scheduler, delay));
        };
      }

      var SubscribeOnOperator = /*#__PURE__*/function () {
        function SubscribeOnOperator(scheduler, delay) {
          _classCallCheck2(this, SubscribeOnOperator);

          this.scheduler = scheduler;
          this.delay = delay;
        }

        _createClass2(SubscribeOnOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            return new _observable_SubscribeOnObservable__WEBPACK_IMPORTED_MODULE_0__["SubscribeOnObservable"](source, this.delay, this.scheduler).subscribe(subscriber);
          }
        }]);

        return SubscribeOnOperator;
      }(); //# sourceMappingURL=subscribeOn.js.map

      /***/

    },

    /***/
    "tfX3": function tfX3(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return addQuarters;
      });
      /* harmony import */


      var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../_lib/toInteger/index.js */
      "/h9T");
      /* harmony import */


      var _addMonths_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../addMonths/index.js */
      "dLU1");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name addQuarters
       * @category Quarter Helpers
       * @summary Add the specified number of year quarters to the given date.
       *
       * @description
       * Add the specified number of year quarters to the given date.
       *
       * ### 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 {Date|Number} date - the date to be changed
       * @param {Number} amount - the amount of quarters to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
       * @returns {Date} the new date with the quarters added
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // Add 1 quarter to 1 September 2014:
       * var result = addQuarters(new Date(2014, 8, 1), 1)
       * //=> Mon Dec 01 2014 00:00:00
       */


      function addQuarters(dirtyDate, dirtyAmount) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(2, arguments);
        var amount = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyAmount);
        var months = amount * 3;
        return Object(_addMonths_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate, months);
      }
      /***/

    },

    /***/
    "tiw6": function tiw6(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return getOverlappingDaysInIntervals;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");

      var MILLISECONDS_IN_DAY = 24 * 60 * 60 * 1000;
      /**
       * @name getOverlappingDaysInIntervals
       * @category Interval Helpers
       * @summary Get the number of days that overlap in two time intervals
       *
       * @description
       * Get the number of days that overlap in two time intervals
       *
       * ### 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).
       *
       * - The function was renamed from `getOverlappingDaysInRanges` to `getOverlappingDaysInIntervals`.
       *   This change was made to mirror the use of the word "interval" in standard ISO 8601:2004 terminology:
       *
       *   ```
       *   2.1.3
       *   time interval
       *   part of the time axis limited by two instants
       *   ```
       *
       *   Also, this function now accepts an object with `start` and `end` properties
       *   instead of two arguments as an interval.
       *   This function now throws `RangeError` if the start of the interval is after its end
       *   or if any date in the interval is `Invalid Date`.
       *
       *   ```javascript
       *   // Before v2.0.0
       *
       *   getOverlappingDaysInRanges(
       *     new Date(2014, 0, 10), new Date(2014, 0, 20),
       *     new Date(2014, 0, 17), new Date(2014, 0, 21)
       *   )
       *
       *   // v2.0.0 onward
       *
       *   getOverlappingDaysInIntervals(
       *     { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) },
       *     { start: new Date(2014, 0, 17), end: new Date(2014, 0, 21) }
       *   )
       *   ```
       *
       * @param {Interval} intervalLeft - the first interval to compare. See [Interval]{@link docs/Interval}
       * @param {Interval} intervalRight - the second interval to compare. See [Interval]{@link docs/Interval}
       * @returns {Number} the number of days that overlap in two time intervals
       * @throws {TypeError} 2 arguments required
       * @throws {RangeError} The start of an interval cannot be after its end
       * @throws {RangeError} Date in interval cannot be `Invalid Date`
       *
       * @example
       * // For overlapping time intervals adds 1 for each started overlapping day:
       * getOverlappingDaysInIntervals(
       *   { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) },
       *   { start: new Date(2014, 0, 17), end: new Date(2014, 0, 21) }
       * )
       * //=> 3
       *
       * @example
       * // For non-overlapping time intervals returns 0:
       * getOverlappingDaysInIntervals(
       *   { start: new Date(2014, 0, 10), end: new Date(2014, 0, 20) },
       *   { start: new Date(2014, 0, 21), end: new Date(2014, 0, 22) }
       * )
       * //=> 0
       */

      function getOverlappingDaysInIntervals(dirtyIntervalLeft, dirtyIntervalRight) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(2, arguments);
        var intervalLeft = dirtyIntervalLeft || {};
        var intervalRight = dirtyIntervalRight || {};
        var leftStartTime = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(intervalLeft.start).getTime();
        var leftEndTime = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(intervalLeft.end).getTime();
        var rightStartTime = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(intervalRight.start).getTime();
        var rightEndTime = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(intervalRight.end).getTime(); // Throw an exception if start date is after end date or if any date is `Invalid Date`

        if (!(leftStartTime <= leftEndTime && rightStartTime <= rightEndTime)) {
          throw new RangeError('Invalid interval');
        }

        var isOverlapping = leftStartTime < rightEndTime && rightStartTime < leftEndTime;

        if (!isOverlapping) {
          return 0;
        }

        var overlapStartDate = rightStartTime < leftStartTime ? leftStartTime : rightStartTime;
        var overlapEndDate = rightEndTime > leftEndTime ? leftEndTime : rightEndTime;
        var differenceInMs = overlapEndDate - overlapStartDate;
        return Math.ceil(differenceInMs / MILLISECONDS_IN_DAY);
      }
      /***/

    },

    /***/
    "tnsW": function tnsW(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "audit", function () {
        return audit;
      });
      /* harmony import */


      var _innerSubscribe__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../innerSubscribe */
      "zx2A");

      function audit(durationSelector) {
        return function auditOperatorFunction(source) {
          return source.lift(new AuditOperator(durationSelector));
        };
      }

      var AuditOperator = /*#__PURE__*/function () {
        function AuditOperator(durationSelector) {
          _classCallCheck2(this, AuditOperator);

          this.durationSelector = durationSelector;
        }

        _createClass2(AuditOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            return source.subscribe(new AuditSubscriber(subscriber, this.durationSelector));
          }
        }]);

        return AuditOperator;
      }();

      var AuditSubscriber = /*#__PURE__*/function (_innerSubscribe__WEBP18) {
        _inherits2(AuditSubscriber, _innerSubscribe__WEBP18);

        var _super444 = _createSuper2(AuditSubscriber);

        function AuditSubscriber(destination, durationSelector) {
          var _this931;

          _classCallCheck2(this, AuditSubscriber);

          _this931 = _super444.call(this, destination);
          _this931.durationSelector = durationSelector;
          _this931.hasValue = false;
          return _this931;
        }

        _createClass2(AuditSubscriber, [{
          key: "_next",
          value: function _next(value) {
            this.value = value;
            this.hasValue = true;

            if (!this.throttled) {
              var duration;

              try {
                var durationSelector = this.durationSelector;
                duration = durationSelector(value);
              } catch (err) {
                return this.destination.error(err);
              }

              var innerSubscription = Object(_innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["innerSubscribe"])(duration, new _innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["SimpleInnerSubscriber"](this));

              if (!innerSubscription || innerSubscription.closed) {
                this.clearThrottle();
              } else {
                this.add(this.throttled = innerSubscription);
              }
            }
          }
        }, {
          key: "clearThrottle",
          value: function clearThrottle() {
            var value = this.value,
                hasValue = this.hasValue,
                throttled = this.throttled;

            if (throttled) {
              this.remove(throttled);
              this.throttled = undefined;
              throttled.unsubscribe();
            }

            if (hasValue) {
              this.value = undefined;
              this.hasValue = false;
              this.destination.next(value);
            }
          }
        }, {
          key: "notifyNext",
          value: function notifyNext() {
            this.clearThrottle();
          }
        }, {
          key: "notifyComplete",
          value: function notifyComplete() {
            this.clearThrottle();
          }
        }]);

        return AuditSubscriber;
      }(_innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["SimpleOuterSubscriber"]); //# sourceMappingURL=audit.js.map

      /***/

    },

    /***/
    "tpup": function tpup(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return startOfUTCISOWeek;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../requiredArgs/index.js */
      "jIYg"); // This function will be a part of public API when UTC function will be implemented.
      // See issue: https://github.com/date-fns/date-fns/issues/376


      function startOfUTCISOWeek(dirtyDate) {
        Object(_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        var weekStartsOn = 1;
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);
        var day = date.getUTCDay();
        var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
        date.setUTCDate(date.getUTCDate() - diff);
        date.setUTCHours(0, 0, 0, 0);
        return date;
      }
      /***/

    },

    /***/
    "u/yc": function uYc(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return isThisMonth;
      });
      /* harmony import */


      var _isSameMonth_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../isSameMonth/index.js */
      "WIjQ");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name isThisMonth
       * @category Month Helpers
       * @summary Is the given date in the same month as the current date?
       * @pure false
       *
       * @description
       * Is the given date in the same month as the current date?
       *
       * > ⚠️ Please note that this function is not present in the FP submodule as
       * > it uses `Date.now()` internally hence impure and can't be safely curried.
       *
       * ### 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 {Date|Number} date - the date to check
       * @returns {Boolean} the date is in this month
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // If today is 25 September 2014, is 15 September 2014 in this month?
       * var result = isThisMonth(new Date(2014, 8, 15))
       * //=> true
       */


      function isThisMonth(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        return Object(_isSameMonth_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Date.now(), dirtyDate);
      }
      /***/

    },

    /***/
    "u3GI": function u3GI(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : German (Switzerland) [de-ch]
      //! author : sschueller : https://github.com/sschueller
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        function processRelativeTime(number, withoutSuffix, key, isFuture) {
          var format = {
            m: ['eine Minute', 'einer Minute'],
            h: ['eine Stunde', 'einer Stunde'],
            d: ['ein Tag', 'einem Tag'],
            dd: [number + ' Tage', number + ' Tagen'],
            w: ['eine Woche', 'einer Woche'],
            M: ['ein Monat', 'einem Monat'],
            MM: [number + ' Monate', number + ' Monaten'],
            y: ['ein Jahr', 'einem Jahr'],
            yy: [number + ' Jahre', number + ' Jahren']
          };
          return withoutSuffix ? format[key][0] : format[key][1];
        }

        var deCh = moment.defineLocale('de-ch', {
          months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
          monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
          monthsParseExact: true,
          weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
          weekdaysShort: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
          weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
          weekdaysParseExact: true,
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'D. MMMM YYYY',
            LLL: 'D. MMMM YYYY HH:mm',
            LLLL: 'dddd, D. MMMM YYYY HH:mm'
          },
          calendar: {
            sameDay: '[heute um] LT [Uhr]',
            sameElse: 'L',
            nextDay: '[morgen um] LT [Uhr]',
            nextWeek: 'dddd [um] LT [Uhr]',
            lastDay: '[gestern um] LT [Uhr]',
            lastWeek: '[letzten] dddd [um] LT [Uhr]'
          },
          relativeTime: {
            future: 'in %s',
            past: 'vor %s',
            s: 'ein paar Sekunden',
            ss: '%d Sekunden',
            m: processRelativeTime,
            mm: '%d Minuten',
            h: processRelativeTime,
            hh: '%d Stunden',
            d: processRelativeTime,
            dd: processRelativeTime,
            w: processRelativeTime,
            ww: '%d Wochen',
            M: processRelativeTime,
            MM: processRelativeTime,
            y: processRelativeTime,
            yy: processRelativeTime
          },
          dayOfMonthOrdinalParse: /\d{1,2}\./,
          ordinal: '%d.',
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return deCh;
      });
      /***/

    },

    /***/
    "u9T3": function u9T3(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "VERSION", function () {
        return VERSION;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "FlexLayoutModule", function () {
        return FlexLayoutModule;
      });
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /* harmony import */


      var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/common */
      "SVse");
      /* harmony import */


      var _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! @angular/flex-layout/core */
      "/q54");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "ɵMatchMedia", function () {
        return _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["ɵMatchMedia"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "ɵMockMatchMedia", function () {
        return _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["ɵMockMatchMedia"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "ɵMockMatchMediaProvider", function () {
        return _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["ɵMockMatchMediaProvider"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "CoreModule", function () {
        return _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["CoreModule"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "removeStyles", function () {
        return _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["removeStyles"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "BROWSER_PROVIDER", function () {
        return _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["BROWSER_PROVIDER"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "CLASS_NAME", function () {
        return _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["CLASS_NAME"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "MediaChange", function () {
        return _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["MediaChange"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "StylesheetMap", function () {
        return _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["StylesheetMap"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "DEFAULT_CONFIG", function () {
        return _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["DEFAULT_CONFIG"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "LAYOUT_CONFIG", function () {
        return _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["LAYOUT_CONFIG"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "SERVER_TOKEN", function () {
        return _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["SERVER_TOKEN"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "BREAKPOINT", function () {
        return _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["BREAKPOINT"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "mergeAlias", function () {
        return _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["mergeAlias"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "BaseDirective2", function () {
        return _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["BaseDirective2"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "DEFAULT_BREAKPOINTS", function () {
        return _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["DEFAULT_BREAKPOINTS"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "ScreenTypes", function () {
        return _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["ScreenTypes"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "ORIENTATION_BREAKPOINTS", function () {
        return _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["ORIENTATION_BREAKPOINTS"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "BreakPointRegistry", function () {
        return _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["BreakPointRegistry"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "BREAKPOINTS", function () {
        return _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["BREAKPOINTS"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "MediaObserver", function () {
        return _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["MediaObserver"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "MediaTrigger", function () {
        return _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["MediaTrigger"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "sortDescendingPriority", function () {
        return _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["sortDescendingPriority"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "sortAscendingPriority", function () {
        return _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["sortAscendingPriority"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "coerceArray", function () {
        return _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["coerceArray"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "StyleUtils", function () {
        return _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["StyleUtils"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "StyleBuilder", function () {
        return _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["StyleBuilder"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "validateBasis", function () {
        return _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["validateBasis"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "MediaMarshaller", function () {
        return _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["MediaMarshaller"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "BREAKPOINT_PRINT", function () {
        return _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["BREAKPOINT_PRINT"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "PrintHook", function () {
        return _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["PrintHook"];
      });
      /* harmony import */


      var _angular_flex_layout_extended__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! @angular/flex-layout/extended */
      "ura0");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "ExtendedModule", function () {
        return _angular_flex_layout_extended__WEBPACK_IMPORTED_MODULE_3__["ExtendedModule"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "ClassDirective", function () {
        return _angular_flex_layout_extended__WEBPACK_IMPORTED_MODULE_3__["ClassDirective"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "DefaultClassDirective", function () {
        return _angular_flex_layout_extended__WEBPACK_IMPORTED_MODULE_3__["DefaultClassDirective"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "ImgSrcStyleBuilder", function () {
        return _angular_flex_layout_extended__WEBPACK_IMPORTED_MODULE_3__["ImgSrcStyleBuilder"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "ImgSrcDirective", function () {
        return _angular_flex_layout_extended__WEBPACK_IMPORTED_MODULE_3__["ImgSrcDirective"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "DefaultImgSrcDirective", function () {
        return _angular_flex_layout_extended__WEBPACK_IMPORTED_MODULE_3__["DefaultImgSrcDirective"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "ShowHideStyleBuilder", function () {
        return _angular_flex_layout_extended__WEBPACK_IMPORTED_MODULE_3__["ShowHideStyleBuilder"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "ShowHideDirective", function () {
        return _angular_flex_layout_extended__WEBPACK_IMPORTED_MODULE_3__["ShowHideDirective"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "DefaultShowHideDirective", function () {
        return _angular_flex_layout_extended__WEBPACK_IMPORTED_MODULE_3__["DefaultShowHideDirective"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "StyleDirective", function () {
        return _angular_flex_layout_extended__WEBPACK_IMPORTED_MODULE_3__["StyleDirective"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "DefaultStyleDirective", function () {
        return _angular_flex_layout_extended__WEBPACK_IMPORTED_MODULE_3__["DefaultStyleDirective"];
      });
      /* harmony import */


      var _angular_flex_layout_flex__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! @angular/flex-layout/flex */
      "VDRc");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "FlexModule", function () {
        return _angular_flex_layout_flex__WEBPACK_IMPORTED_MODULE_4__["FlexModule"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "FlexStyleBuilder", function () {
        return _angular_flex_layout_flex__WEBPACK_IMPORTED_MODULE_4__["FlexStyleBuilder"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "FlexDirective", function () {
        return _angular_flex_layout_flex__WEBPACK_IMPORTED_MODULE_4__["FlexDirective"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "DefaultFlexDirective", function () {
        return _angular_flex_layout_flex__WEBPACK_IMPORTED_MODULE_4__["DefaultFlexDirective"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "FlexAlignStyleBuilder", function () {
        return _angular_flex_layout_flex__WEBPACK_IMPORTED_MODULE_4__["FlexAlignStyleBuilder"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "FlexAlignDirective", function () {
        return _angular_flex_layout_flex__WEBPACK_IMPORTED_MODULE_4__["FlexAlignDirective"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "DefaultFlexAlignDirective", function () {
        return _angular_flex_layout_flex__WEBPACK_IMPORTED_MODULE_4__["DefaultFlexAlignDirective"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "FlexFillStyleBuilder", function () {
        return _angular_flex_layout_flex__WEBPACK_IMPORTED_MODULE_4__["FlexFillStyleBuilder"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "FlexFillDirective", function () {
        return _angular_flex_layout_flex__WEBPACK_IMPORTED_MODULE_4__["FlexFillDirective"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "FlexOffsetStyleBuilder", function () {
        return _angular_flex_layout_flex__WEBPACK_IMPORTED_MODULE_4__["FlexOffsetStyleBuilder"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "FlexOffsetDirective", function () {
        return _angular_flex_layout_flex__WEBPACK_IMPORTED_MODULE_4__["FlexOffsetDirective"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "DefaultFlexOffsetDirective", function () {
        return _angular_flex_layout_flex__WEBPACK_IMPORTED_MODULE_4__["DefaultFlexOffsetDirective"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "FlexOrderStyleBuilder", function () {
        return _angular_flex_layout_flex__WEBPACK_IMPORTED_MODULE_4__["FlexOrderStyleBuilder"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "FlexOrderDirective", function () {
        return _angular_flex_layout_flex__WEBPACK_IMPORTED_MODULE_4__["FlexOrderDirective"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "DefaultFlexOrderDirective", function () {
        return _angular_flex_layout_flex__WEBPACK_IMPORTED_MODULE_4__["DefaultFlexOrderDirective"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "LayoutStyleBuilder", function () {
        return _angular_flex_layout_flex__WEBPACK_IMPORTED_MODULE_4__["LayoutStyleBuilder"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "LayoutDirective", function () {
        return _angular_flex_layout_flex__WEBPACK_IMPORTED_MODULE_4__["LayoutDirective"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "DefaultLayoutDirective", function () {
        return _angular_flex_layout_flex__WEBPACK_IMPORTED_MODULE_4__["DefaultLayoutDirective"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "LayoutAlignStyleBuilder", function () {
        return _angular_flex_layout_flex__WEBPACK_IMPORTED_MODULE_4__["LayoutAlignStyleBuilder"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "LayoutAlignDirective", function () {
        return _angular_flex_layout_flex__WEBPACK_IMPORTED_MODULE_4__["LayoutAlignDirective"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "DefaultLayoutAlignDirective", function () {
        return _angular_flex_layout_flex__WEBPACK_IMPORTED_MODULE_4__["DefaultLayoutAlignDirective"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "LayoutGapStyleBuilder", function () {
        return _angular_flex_layout_flex__WEBPACK_IMPORTED_MODULE_4__["LayoutGapStyleBuilder"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "LayoutGapDirective", function () {
        return _angular_flex_layout_flex__WEBPACK_IMPORTED_MODULE_4__["LayoutGapDirective"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "DefaultLayoutGapDirective", function () {
        return _angular_flex_layout_flex__WEBPACK_IMPORTED_MODULE_4__["DefaultLayoutGapDirective"];
      });
      /* harmony import */


      var _angular_flex_layout_grid__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! @angular/flex-layout/grid */
      "Nhcz");
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privatef", function () {
        return _angular_flex_layout_grid__WEBPACK_IMPORTED_MODULE_5__["ɵgrid_privatef"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privatee", function () {
        return _angular_flex_layout_grid__WEBPACK_IMPORTED_MODULE_5__["ɵgrid_privatee"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privated", function () {
        return _angular_flex_layout_grid__WEBPACK_IMPORTED_MODULE_5__["ɵgrid_privated"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privatei", function () {
        return _angular_flex_layout_grid__WEBPACK_IMPORTED_MODULE_5__["ɵgrid_privatei"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privateh", function () {
        return _angular_flex_layout_grid__WEBPACK_IMPORTED_MODULE_5__["ɵgrid_privateh"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privateg", function () {
        return _angular_flex_layout_grid__WEBPACK_IMPORTED_MODULE_5__["ɵgrid_privateg"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privatel", function () {
        return _angular_flex_layout_grid__WEBPACK_IMPORTED_MODULE_5__["ɵgrid_privatel"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privatek", function () {
        return _angular_flex_layout_grid__WEBPACK_IMPORTED_MODULE_5__["ɵgrid_privatek"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privatej", function () {
        return _angular_flex_layout_grid__WEBPACK_IMPORTED_MODULE_5__["ɵgrid_privatej"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privateo", function () {
        return _angular_flex_layout_grid__WEBPACK_IMPORTED_MODULE_5__["ɵgrid_privateo"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privaten", function () {
        return _angular_flex_layout_grid__WEBPACK_IMPORTED_MODULE_5__["ɵgrid_privaten"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privatem", function () {
        return _angular_flex_layout_grid__WEBPACK_IMPORTED_MODULE_5__["ɵgrid_privatem"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privater", function () {
        return _angular_flex_layout_grid__WEBPACK_IMPORTED_MODULE_5__["ɵgrid_privater"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privateq", function () {
        return _angular_flex_layout_grid__WEBPACK_IMPORTED_MODULE_5__["ɵgrid_privateq"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privatep", function () {
        return _angular_flex_layout_grid__WEBPACK_IMPORTED_MODULE_5__["ɵgrid_privatep"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privateu", function () {
        return _angular_flex_layout_grid__WEBPACK_IMPORTED_MODULE_5__["ɵgrid_privateu"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privatet", function () {
        return _angular_flex_layout_grid__WEBPACK_IMPORTED_MODULE_5__["ɵgrid_privatet"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privates", function () {
        return _angular_flex_layout_grid__WEBPACK_IMPORTED_MODULE_5__["ɵgrid_privates"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privatex", function () {
        return _angular_flex_layout_grid__WEBPACK_IMPORTED_MODULE_5__["ɵgrid_privatex"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privatew", function () {
        return _angular_flex_layout_grid__WEBPACK_IMPORTED_MODULE_5__["ɵgrid_privatew"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privatev", function () {
        return _angular_flex_layout_grid__WEBPACK_IMPORTED_MODULE_5__["ɵgrid_privatev"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privateba", function () {
        return _angular_flex_layout_grid__WEBPACK_IMPORTED_MODULE_5__["ɵgrid_privateba"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privatez", function () {
        return _angular_flex_layout_grid__WEBPACK_IMPORTED_MODULE_5__["ɵgrid_privatez"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privatey", function () {
        return _angular_flex_layout_grid__WEBPACK_IMPORTED_MODULE_5__["ɵgrid_privatey"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privatec", function () {
        return _angular_flex_layout_grid__WEBPACK_IMPORTED_MODULE_5__["ɵgrid_privatec"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privateb", function () {
        return _angular_flex_layout_grid__WEBPACK_IMPORTED_MODULE_5__["ɵgrid_privateb"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privatea", function () {
        return _angular_flex_layout_grid__WEBPACK_IMPORTED_MODULE_5__["ɵgrid_privatea"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privatebd", function () {
        return _angular_flex_layout_grid__WEBPACK_IMPORTED_MODULE_5__["ɵgrid_privatebd"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privatebc", function () {
        return _angular_flex_layout_grid__WEBPACK_IMPORTED_MODULE_5__["ɵgrid_privatebc"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privatebb", function () {
        return _angular_flex_layout_grid__WEBPACK_IMPORTED_MODULE_5__["ɵgrid_privatebb"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privatebg", function () {
        return _angular_flex_layout_grid__WEBPACK_IMPORTED_MODULE_5__["ɵgrid_privatebg"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privatebf", function () {
        return _angular_flex_layout_grid__WEBPACK_IMPORTED_MODULE_5__["ɵgrid_privatebf"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "ɵgrid_privatebe", function () {
        return _angular_flex_layout_grid__WEBPACK_IMPORTED_MODULE_5__["ɵgrid_privatebe"];
      });
      /* harmony reexport (safe) */


      __webpack_require__.d(__webpack_exports__, "GridModule", function () {
        return _angular_flex_layout_grid__WEBPACK_IMPORTED_MODULE_5__["GridModule"];
      });
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @fileoverview added by tsickle
       * Generated from: version.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * Current version of Angular Flex-Layout.
       * @type {?}
       */


      var VERSION = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["Version"]('10.0.0-beta.32');
      /**
       * @fileoverview added by tsickle
       * Generated from: module.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * FlexLayoutModule -- the main import for all utilities in the Angular Layout library
       * * Will automatically provide Flex, Grid, and Extended modules for use in the application
       * * Can be configured using the static withConfig method, options viewable on the Wiki's
       *   Configuration page
       */

      var FlexLayoutModule =
      /** @class */
      function () {
        /**
         * FlexLayoutModule -- the main import for all utilities in the Angular Layout library
         * * Will automatically provide Flex, Grid, and Extended modules for use in the application
         * * Can be configured using the static withConfig method, options viewable on the Wiki's
         *   Configuration page
         */
        var FlexLayoutModule = /*#__PURE__*/function () {
          /**
           * @param {?} serverModuleLoaded
           * @param {?} platformId
           */
          function FlexLayoutModule(serverModuleLoaded, platformId) {
            _classCallCheck2(this, FlexLayoutModule);

            if (Object(_angular_common__WEBPACK_IMPORTED_MODULE_1__["isPlatformServer"])(platformId) && !serverModuleLoaded) {
              console.warn('Warning: Flex Layout loaded on the server without FlexLayoutServerModule');
            }
          }
          /**
           * Initialize the FlexLayoutModule with a set of config options,
           * which sets the corresponding tokens accordingly
           * @param {?} configOptions
           * @param {?=} breakpoints
           * @return {?}
           */


          _createClass2(FlexLayoutModule, null, [{
            key: "withConfig",
            value: function withConfig(configOptions) {
              var breakpoints = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
              return {
                ngModule: FlexLayoutModule,
                providers: configOptions.serverLoaded ? [{
                  provide: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["LAYOUT_CONFIG"],
                  useValue: Object.assign(Object.assign({}, _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["DEFAULT_CONFIG"]), configOptions)
                }, {
                  provide: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["BREAKPOINT"],
                  useValue: breakpoints,
                  multi: true
                }, {
                  provide: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["SERVER_TOKEN"],
                  useValue: true
                }] : [{
                  provide: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["LAYOUT_CONFIG"],
                  useValue: Object.assign(Object.assign({}, _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["DEFAULT_CONFIG"]), configOptions)
                }, {
                  provide: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["BREAKPOINT"],
                  useValue: breakpoints,
                  multi: true
                }]
              };
            }
          }]);

          return FlexLayoutModule;
        }();

        FlexLayoutModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
          type: FlexLayoutModule
        });
        FlexLayoutModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
          factory: function FlexLayoutModule_Factory(t) {
            return new (t || FlexLayoutModule)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["SERVER_TOKEN"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["PLATFORM_ID"]));
          },
          imports: [[_angular_flex_layout_flex__WEBPACK_IMPORTED_MODULE_4__["FlexModule"], _angular_flex_layout_extended__WEBPACK_IMPORTED_MODULE_3__["ExtendedModule"], _angular_flex_layout_grid__WEBPACK_IMPORTED_MODULE_5__["GridModule"]], _angular_flex_layout_flex__WEBPACK_IMPORTED_MODULE_4__["FlexModule"], _angular_flex_layout_extended__WEBPACK_IMPORTED_MODULE_3__["ExtendedModule"], _angular_flex_layout_grid__WEBPACK_IMPORTED_MODULE_5__["GridModule"]]
        });
        /** @nocollapse */

        FlexLayoutModule.ctorParameters = function () {
          return [{
            type: Boolean,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["SERVER_TOKEN"]]
            }]
          }, {
            type: Object,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["PLATFORM_ID"]]
            }]
          }];
        };

        (function () {
          (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](FlexLayoutModule, {
            imports: function imports() {
              return [_angular_flex_layout_flex__WEBPACK_IMPORTED_MODULE_4__["FlexModule"], _angular_flex_layout_extended__WEBPACK_IMPORTED_MODULE_3__["ExtendedModule"], _angular_flex_layout_grid__WEBPACK_IMPORTED_MODULE_5__["GridModule"]];
            },
            exports: function exports() {
              return [_angular_flex_layout_flex__WEBPACK_IMPORTED_MODULE_4__["FlexModule"], _angular_flex_layout_extended__WEBPACK_IMPORTED_MODULE_3__["ExtendedModule"], _angular_flex_layout_grid__WEBPACK_IMPORTED_MODULE_5__["GridModule"]];
            }
          });
        })();
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](FlexLayoutModule, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
            args: [{
              imports: [_angular_flex_layout_flex__WEBPACK_IMPORTED_MODULE_4__["FlexModule"], _angular_flex_layout_extended__WEBPACK_IMPORTED_MODULE_3__["ExtendedModule"], _angular_flex_layout_grid__WEBPACK_IMPORTED_MODULE_5__["GridModule"]],
              exports: [_angular_flex_layout_flex__WEBPACK_IMPORTED_MODULE_4__["FlexModule"], _angular_flex_layout_extended__WEBPACK_IMPORTED_MODULE_3__["ExtendedModule"], _angular_flex_layout_grid__WEBPACK_IMPORTED_MODULE_5__["GridModule"]]
            }]
          }], function () {
            return [{
              type: Boolean,
              decorators: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
                args: [_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["SERVER_TOKEN"]]
              }]
            }, {
              type: Object,
              decorators: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
                args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["PLATFORM_ID"]]
              }]
            }];
          }, null);
        })();

        return FlexLayoutModule;
      }();
      /**
       * @fileoverview added by tsickle
       * Generated from: public-api.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * @fileoverview added by tsickle
       * Generated from: index.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */
      //# sourceMappingURL=flex-layout.js.map

      /***/

    },

    /***/
    "uEye": function uEye(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Nynorsk [nn]
      //! authors : https://github.com/mechuwind
      //!           Stephen Ramthun : https://github.com/stephenramthun
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var nn = moment.defineLocale('nn', {
          months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
          monthsShort: 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),
          monthsParseExact: true,
          weekdays: 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'),
          weekdaysShort: 'su._må._ty._on._to._fr._lau.'.split('_'),
          weekdaysMin: 'su_må_ty_on_to_fr_la'.split('_'),
          weekdaysParseExact: true,
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'D. MMMM YYYY',
            LLL: 'D. MMMM YYYY [kl.] H:mm',
            LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm'
          },
          calendar: {
            sameDay: '[I dag klokka] LT',
            nextDay: '[I morgon klokka] LT',
            nextWeek: 'dddd [klokka] LT',
            lastDay: '[I går klokka] LT',
            lastWeek: '[Føregåande] dddd [klokka] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'om %s',
            past: '%s sidan',
            s: 'nokre sekund',
            ss: '%d sekund',
            m: 'eit minutt',
            mm: '%d minutt',
            h: 'ein time',
            hh: '%d timar',
            d: 'ein dag',
            dd: '%d dagar',
            w: 'ei veke',
            ww: '%d veker',
            M: 'ein månad',
            MM: '%d månader',
            y: 'eit år',
            yy: '%d år'
          },
          dayOfMonthOrdinalParse: /\d{1,2}\./,
          ordinal: '%d.',
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return nn;
      });
      /***/

    },

    /***/
    "uGsb": function uGsb(module, exports, __webpack_require__) {
      ;

      (function (root, factory, undef) {
        if (true) {
          // CommonJS
          module.exports = exports = factory(__webpack_require__(
          /*! ./core */
          "Ib8C"), __webpack_require__(
          /*! ./x64-core */
          "MlIO"), __webpack_require__(
          /*! ./sha512 */
          "1uat"));
        } else {}
      })(this, function (CryptoJS) {
        (function () {
          // Shortcuts
          var C = CryptoJS;
          var C_x64 = C.x64;
          var X64Word = C_x64.Word;
          var X64WordArray = C_x64.WordArray;
          var C_algo = C.algo;
          var SHA512 = C_algo.SHA512;
          /**
           * SHA-384 hash algorithm.
           */

          var SHA384 = C_algo.SHA384 = SHA512.extend({
            _doReset: function _doReset() {
              this._hash = new X64WordArray.init([new X64Word.init(0xcbbb9d5d, 0xc1059ed8), new X64Word.init(0x629a292a, 0x367cd507), new X64Word.init(0x9159015a, 0x3070dd17), new X64Word.init(0x152fecd8, 0xf70e5939), new X64Word.init(0x67332667, 0xffc00b31), new X64Word.init(0x8eb44a87, 0x68581511), new X64Word.init(0xdb0c2e0d, 0x64f98fa7), new X64Word.init(0x47b5481d, 0xbefa4fa4)]);
            },
            _doFinalize: function _doFinalize() {
              var hash = SHA512._doFinalize.call(this);

              hash.sigBytes -= 16;
              return hash;
            }
          });
          /**
           * Shortcut function to the hasher's object interface.
           *
           * @param {WordArray|string} message The message to hash.
           *
           * @return {WordArray} The hash.
           *
           * @static
           *
           * @example
           *
           *     var hash = CryptoJS.SHA384('message');
           *     var hash = CryptoJS.SHA384(wordArray);
           */

          C.SHA384 = SHA512._createHelper(SHA384);
          /**
           * Shortcut function to the HMAC's object interface.
           *
           * @param {WordArray|string} message The message to hash.
           * @param {WordArray|string} key The secret key.
           *
           * @return {WordArray} The HMAC.
           *
           * @static
           *
           * @example
           *
           *     var hmac = CryptoJS.HmacSHA384(message, key);
           */

          C.HmacSHA384 = SHA512._createHmacHelper(SHA384);
        })();

        return CryptoJS.SHA384;
      });
      /***/

    },

    /***/
    "uGxW": function uGxW(module, exports, __webpack_require__) {
      ;

      (function (root, factory, undef) {
        if (true) {
          // CommonJS
          module.exports = exports = factory(__webpack_require__(
          /*! ./core */
          "Ib8C"), __webpack_require__(
          /*! ./cipher-core */
          "OLod"));
        } else {}
      })(this, function (CryptoJS) {
        /**
         * A noop padding strategy.
         */
        CryptoJS.pad.NoPadding = {
          pad: function pad() {},
          unpad: function unpad() {}
        };
        return CryptoJS.pad.NoPadding;
      });
      /***/

    },

    /***/
    "uTdr": function uTdr(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "onErrorResumeNext", function () {
        return onErrorResumeNext;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "onErrorResumeNextStatic", function () {
        return onErrorResumeNextStatic;
      });
      /* harmony import */


      var _observable_from__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../observable/from */
      "Cfvw");
      /* harmony import */


      var _util_isArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../util/isArray */
      "DH7j");
      /* harmony import */


      var _innerSubscribe__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../innerSubscribe */
      "zx2A");

      function onErrorResumeNext() {
        for (var _len74 = arguments.length, nextSources = new Array(_len74), _key77 = 0; _key77 < _len74; _key77++) {
          nextSources[_key77] = arguments[_key77];
        }

        if (nextSources.length === 1 && Object(_util_isArray__WEBPACK_IMPORTED_MODULE_1__["isArray"])(nextSources[0])) {
          nextSources = nextSources[0];
        }

        return function (source) {
          return source.lift(new OnErrorResumeNextOperator(nextSources));
        };
      }

      function onErrorResumeNextStatic() {
        for (var _len75 = arguments.length, nextSources = new Array(_len75), _key78 = 0; _key78 < _len75; _key78++) {
          nextSources[_key78] = arguments[_key78];
        }

        var source = undefined;

        if (nextSources.length === 1 && Object(_util_isArray__WEBPACK_IMPORTED_MODULE_1__["isArray"])(nextSources[0])) {
          nextSources = nextSources[0];
        }

        source = nextSources.shift();
        return Object(_observable_from__WEBPACK_IMPORTED_MODULE_0__["from"])(source).lift(new OnErrorResumeNextOperator(nextSources));
      }

      var OnErrorResumeNextOperator = /*#__PURE__*/function () {
        function OnErrorResumeNextOperator(nextSources) {
          _classCallCheck2(this, OnErrorResumeNextOperator);

          this.nextSources = nextSources;
        }

        _createClass2(OnErrorResumeNextOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            return source.subscribe(new OnErrorResumeNextSubscriber(subscriber, this.nextSources));
          }
        }]);

        return OnErrorResumeNextOperator;
      }();

      var OnErrorResumeNextSubscriber = /*#__PURE__*/function (_innerSubscribe__WEBP19) {
        _inherits2(OnErrorResumeNextSubscriber, _innerSubscribe__WEBP19);

        var _super445 = _createSuper2(OnErrorResumeNextSubscriber);

        function OnErrorResumeNextSubscriber(destination, nextSources) {
          var _this932;

          _classCallCheck2(this, OnErrorResumeNextSubscriber);

          _this932 = _super445.call(this, destination);
          _this932.destination = destination;
          _this932.nextSources = nextSources;
          return _this932;
        }

        _createClass2(OnErrorResumeNextSubscriber, [{
          key: "notifyError",
          value: function notifyError() {
            this.subscribeToNextSource();
          }
        }, {
          key: "notifyComplete",
          value: function notifyComplete() {
            this.subscribeToNextSource();
          }
        }, {
          key: "_error",
          value: function _error(err) {
            this.subscribeToNextSource();
            this.unsubscribe();
          }
        }, {
          key: "_complete",
          value: function _complete() {
            this.subscribeToNextSource();
            this.unsubscribe();
          }
        }, {
          key: "subscribeToNextSource",
          value: function subscribeToNextSource() {
            var next = this.nextSources.shift();

            if (!!next) {
              var innerSubscriber = new _innerSubscribe__WEBPACK_IMPORTED_MODULE_2__["SimpleInnerSubscriber"](this);
              var destination = this.destination;
              destination.add(innerSubscriber);
              var innerSubscription = Object(_innerSubscribe__WEBPACK_IMPORTED_MODULE_2__["innerSubscribe"])(next, innerSubscriber);

              if (innerSubscription !== innerSubscriber) {
                destination.add(innerSubscription);
              }
            } else {
              this.destination.complete();
            }
          }
        }]);

        return OnErrorResumeNextSubscriber;
      }(_innerSubscribe__WEBPACK_IMPORTED_MODULE_2__["SimpleOuterSubscriber"]); //# sourceMappingURL=onErrorResumeNext.js.map

      /***/

    },

    /***/
    "uXwI": function uXwI(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Latvian [lv]
      //! author : Kristaps Karlsons : https://github.com/skakri
      //! author : Jānis Elmeris : https://github.com/JanisE
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var units = {
          ss: 'sekundes_sekundēm_sekunde_sekundes'.split('_'),
          m: 'minūtes_minūtēm_minūte_minūtes'.split('_'),
          mm: 'minūtes_minūtēm_minūte_minūtes'.split('_'),
          h: 'stundas_stundām_stunda_stundas'.split('_'),
          hh: 'stundas_stundām_stunda_stundas'.split('_'),
          d: 'dienas_dienām_diena_dienas'.split('_'),
          dd: 'dienas_dienām_diena_dienas'.split('_'),
          M: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
          MM: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
          y: 'gada_gadiem_gads_gadi'.split('_'),
          yy: 'gada_gadiem_gads_gadi'.split('_')
        };
        /**
         * @param withoutSuffix boolean true = a length of time; false = before/after a period of time.
         */

        function format(forms, number, withoutSuffix) {
          if (withoutSuffix) {
            // E.g. "21 minūte", "3 minūtes".
            return number % 10 === 1 && number % 100 !== 11 ? forms[2] : forms[3];
          } else {
            // E.g. "21 minūtes" as in "pēc 21 minūtes".
            // E.g. "3 minūtēm" as in "pēc 3 minūtēm".
            return number % 10 === 1 && number % 100 !== 11 ? forms[0] : forms[1];
          }
        }

        function relativeTimeWithPlural(number, withoutSuffix, key) {
          return number + ' ' + format(units[key], number, withoutSuffix);
        }

        function relativeTimeWithSingular(number, withoutSuffix, key) {
          return format(units[key], number, withoutSuffix);
        }

        function relativeSeconds(number, withoutSuffix) {
          return withoutSuffix ? 'dažas sekundes' : 'dažām sekundēm';
        }

        var lv = moment.defineLocale('lv', {
          months: 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split('_'),
          monthsShort: 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'),
          weekdays: 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split('_'),
          weekdaysShort: 'Sv_P_O_T_C_Pk_S'.split('_'),
          weekdaysMin: 'Sv_P_O_T_C_Pk_S'.split('_'),
          weekdaysParseExact: true,
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD.MM.YYYY.',
            LL: 'YYYY. [gada] D. MMMM',
            LLL: 'YYYY. [gada] D. MMMM, HH:mm',
            LLLL: 'YYYY. [gada] D. MMMM, dddd, HH:mm'
          },
          calendar: {
            sameDay: '[Šodien pulksten] LT',
            nextDay: '[Rīt pulksten] LT',
            nextWeek: 'dddd [pulksten] LT',
            lastDay: '[Vakar pulksten] LT',
            lastWeek: '[Pagājušā] dddd [pulksten] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'pēc %s',
            past: 'pirms %s',
            s: relativeSeconds,
            ss: relativeTimeWithPlural,
            m: relativeTimeWithSingular,
            mm: relativeTimeWithPlural,
            h: relativeTimeWithSingular,
            hh: relativeTimeWithPlural,
            d: relativeTimeWithSingular,
            dd: relativeTimeWithPlural,
            M: relativeTimeWithSingular,
            MM: relativeTimeWithPlural,
            y: relativeTimeWithSingular,
            yy: relativeTimeWithPlural
          },
          dayOfMonthOrdinalParse: /\d{1,2}\./,
          ordinal: '%d.',
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return lv;
      });
      /***/

    },

    /***/
    "uh5Q": function uh5Q(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return isFuture;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name isFuture
       * @category Common Helpers
       * @summary Is the given date in the future?
       * @pure false
       *
       * @description
       * Is the given date in the future?
       *
       * > ⚠️ Please note that this function is not present in the FP submodule as
       * > it uses `Date.now()` internally hence impure and can't be safely curried.
       *
       * ### 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 {Date|Number} date - the date to check
       * @returns {Boolean} the date is in the future
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // If today is 6 October 2014, is 31 December 2014 in the future?
       * var result = isFuture(new Date(2014, 11, 31))
       * //=> true
       */


      function isFuture(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        return Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate).getTime() > Date.now();
      }
      /***/

    },

    /***/
    "un/a": function unA(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "retry", function () {
        return retry;
      });
      /* harmony import */


      var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Subscriber */
      "7o/Q");

      function retry() {
        var count = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1;
        return function (source) {
          return source.lift(new RetryOperator(count, source));
        };
      }

      var RetryOperator = /*#__PURE__*/function () {
        function RetryOperator(count, source) {
          _classCallCheck2(this, RetryOperator);

          this.count = count;
          this.source = source;
        }

        _createClass2(RetryOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            return source.subscribe(new RetrySubscriber(subscriber, this.count, this.source));
          }
        }]);

        return RetryOperator;
      }();

      var RetrySubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_43) {
        _inherits2(RetrySubscriber, _Subscriber__WEBPACK_43);

        var _super446 = _createSuper2(RetrySubscriber);

        function RetrySubscriber(destination, count, source) {
          var _this933;

          _classCallCheck2(this, RetrySubscriber);

          _this933 = _super446.call(this, destination);
          _this933.count = count;
          _this933.source = source;
          return _this933;
        }

        _createClass2(RetrySubscriber, [{
          key: "error",
          value: function error(err) {
            if (!this.isStopped) {
              var source = this.source,
                  count = this.count;

              if (count === 0) {
                return _get2(_getPrototypeOf2(RetrySubscriber.prototype), "error", this).call(this, err);
              } else if (count > -1) {
                this.count = count - 1;
              }

              source.subscribe(this._unsubscribeAndRecycle());
            }
          }
        }]);

        return RetrySubscriber;
      }(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]); //# sourceMappingURL=retry.js.map

      /***/

    },

    /***/
    "ura0": function ura0(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ExtendedModule", function () {
        return ExtendedModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ClassDirective", function () {
        return ClassDirective;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "DefaultClassDirective", function () {
        return DefaultClassDirective;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ImgSrcStyleBuilder", function () {
        return ImgSrcStyleBuilder;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ImgSrcDirective", function () {
        return ImgSrcDirective;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "DefaultImgSrcDirective", function () {
        return DefaultImgSrcDirective;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ShowHideStyleBuilder", function () {
        return ShowHideStyleBuilder;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ShowHideDirective", function () {
        return ShowHideDirective;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "DefaultShowHideDirective", function () {
        return DefaultShowHideDirective;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "StyleDirective", function () {
        return StyleDirective;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "DefaultStyleDirective", function () {
        return DefaultStyleDirective;
      });
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /* harmony import */


      var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/common */
      "SVse");
      /* harmony import */


      var _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! @angular/flex-layout/core */
      "/q54");
      /* harmony import */


      var _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! @angular/cdk/coercion */
      "8LU1");
      /* harmony import */


      var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! rxjs/operators */
      "kU1M");
      /* harmony import */


      var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! @angular/platform-browser */
      "cUpR");
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @fileoverview added by tsickle
       * Generated from: extended/img-src/img-src.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */


      var ImgSrcStyleBuilder =
      /** @class */
      function () {
        var ImgSrcStyleBuilder = /*#__PURE__*/function (_angular_flex_layout_39) {
          _inherits2(ImgSrcStyleBuilder, _angular_flex_layout_39);

          var _super447 = _createSuper2(ImgSrcStyleBuilder);

          function ImgSrcStyleBuilder() {
            _classCallCheck2(this, ImgSrcStyleBuilder);

            return _super447.apply(this, arguments);
          }

          _createClass2(ImgSrcStyleBuilder, [{
            key: "buildStyles",
            value:
            /**
             * @param {?} url
             * @return {?}
             */
            function buildStyles(url) {
              return {
                'content': url ? "url(".concat(url, ")") : ''
              };
            }
          }]);

          return ImgSrcStyleBuilder;
        }(_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["StyleBuilder"]);

        ImgSrcStyleBuilder.ɵfac = function ImgSrcStyleBuilder_Factory(t) {
          return ɵImgSrcStyleBuilder_BaseFactory(t || ImgSrcStyleBuilder);
        };
        /** @nocollapse */


        ImgSrcStyleBuilder.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({
          factory: function ImgSrcStyleBuilder_Factory() {
            return new ImgSrcStyleBuilder();
          },
          token: ImgSrcStyleBuilder,
          providedIn: "root"
        });

        var ɵImgSrcStyleBuilder_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](ImgSrcStyleBuilder);
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ImgSrcStyleBuilder, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
            args: [{
              providedIn: 'root'
            }]
          }], null, null);
        })();

        return ImgSrcStyleBuilder;
      }();

      var ImgSrcDirective =
      /** @class */
      function () {
        var ImgSrcDirective = /*#__PURE__*/function (_angular_flex_layout_40) {
          _inherits2(ImgSrcDirective, _angular_flex_layout_40);

          var _super448 = _createSuper2(ImgSrcDirective);

          /**
           * @param {?} elementRef
           * @param {?} styleBuilder
           * @param {?} styler
           * @param {?} marshal
           * @param {?} platformId
           * @param {?} serverModuleLoaded
           */
          function ImgSrcDirective(elementRef, styleBuilder, styler, marshal, platformId, serverModuleLoaded) {
            var _this934;

            _classCallCheck2(this, ImgSrcDirective);

            _this934 = _super448.call(this, elementRef, styleBuilder, styler, marshal);
            _this934.platformId = platformId;
            _this934.serverModuleLoaded = serverModuleLoaded;
            _this934.DIRECTIVE_KEY = 'img-src';
            _this934.defaultSrc = '';
            _this934.styleCache = imgSrcCache;

            _this934.init();

            _this934.setValue(_this934.nativeElement.getAttribute('src') || '', '');

            if (Object(_angular_common__WEBPACK_IMPORTED_MODULE_1__["isPlatformServer"])(_this934.platformId) && _this934.serverModuleLoaded) {
              _this934.nativeElement.setAttribute('src', '');
            }

            return _this934;
          }
          /**
           * @param {?} val
           * @return {?}
           */


          _createClass2(ImgSrcDirective, [{
            key: "src",
            set: function set(val) {
              this.defaultSrc = val;
              this.setValue(this.defaultSrc, '');
            }
            /**
             * Use the [responsively] activated input value to update
             * the host img src attribute or assign a default `img.src=''`
             * if the src has not been defined.
             *
             * Do nothing to standard `<img src="">` usages, only when responsive
             * keys are present do we actually call `setAttribute()`
             * @protected
             * @param {?=} value
             * @return {?}
             */

          }, {
            key: "updateWithValue",
            value: function updateWithValue(value) {
              /** @type {?} */
              var url = value || this.defaultSrc;

              if (Object(_angular_common__WEBPACK_IMPORTED_MODULE_1__["isPlatformServer"])(this.platformId) && this.serverModuleLoaded) {
                this.addStyles(url);
              } else {
                this.nativeElement.setAttribute('src', url);
              }
            }
          }]);

          return ImgSrcDirective;
        }(_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["BaseDirective2"]);

        ImgSrcDirective.ɵfac = function ImgSrcDirective_Factory(t) {
          return new (t || ImgSrcDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ImgSrcStyleBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["StyleUtils"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["MediaMarshaller"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["PLATFORM_ID"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["SERVER_TOKEN"]));
        };

        ImgSrcDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
          type: ImgSrcDirective,
          inputs: {
            src: "src"
          },
          features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
        });
        /** @nocollapse */

        ImgSrcDirective.ctorParameters = function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
          }, {
            type: ImgSrcStyleBuilder
          }, {
            type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["StyleUtils"]
          }, {
            type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["MediaMarshaller"]
          }, {
            type: Object,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["PLATFORM_ID"]]
            }]
          }, {
            type: Boolean,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["SERVER_TOKEN"]]
            }]
          }];
        };

        ImgSrcDirective.propDecorators = {
          src: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
            args: ['src']
          }]
        };
        /*@__PURE__*/

        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ImgSrcDirective, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"]
          }], function () {
            return [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
            }, {
              type: ImgSrcStyleBuilder
            }, {
              type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["StyleUtils"]
            }, {
              type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["MediaMarshaller"]
            }, {
              type: Object,
              decorators: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
                args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["PLATFORM_ID"]]
              }]
            }, {
              type: Boolean,
              decorators: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
                args: [_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["SERVER_TOKEN"]]
              }]
            }];
          }, {
            src: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
              args: ['src']
            }]
          });
        })();

        return ImgSrcDirective;
      }();
      /** @type {?} */


      var imgSrcCache = new Map();
      /** @type {?} */

      var inputs = ['src.xs', 'src.sm', 'src.md', 'src.lg', 'src.xl', 'src.lt-sm', 'src.lt-md', 'src.lt-lg', 'src.lt-xl', 'src.gt-xs', 'src.gt-sm', 'src.gt-md', 'src.gt-lg'];
      /** @type {?} */

      var selector = "\n  img[src.xs],    img[src.sm],    img[src.md],    img[src.lg],   img[src.xl],\n  img[src.lt-sm], img[src.lt-md], img[src.lt-lg], img[src.lt-xl],\n  img[src.gt-xs], img[src.gt-sm], img[src.gt-md], img[src.gt-lg]\n";
      /**
       * This directive provides a responsive API for the HTML <img> 'src' attribute
       * and will update the img.src property upon each responsive activation.
       *
       * e.g.
       *      <img src="defaultScene.jpg" src.xs="mobileScene.jpg"></img>
       *
       * @see https://css-tricks.com/responsive-images-youre-just-changing-resolutions-use-src/
       */

      var DefaultImgSrcDirective =
      /** @class */
      function () {
        /**
         * This directive provides a responsive API for the HTML <img> 'src' attribute
         * and will update the img.src property upon each responsive activation.
         *
         * e.g.
         *      <img src="defaultScene.jpg" src.xs="mobileScene.jpg"></img>
         *
         * @see https://css-tricks.com/responsive-images-youre-just-changing-resolutions-use-src/
         */
        var DefaultImgSrcDirective = /*#__PURE__*/function (_ImgSrcDirective) {
          _inherits2(DefaultImgSrcDirective, _ImgSrcDirective);

          var _super449 = _createSuper2(DefaultImgSrcDirective);

          function DefaultImgSrcDirective() {
            var _this935;

            _classCallCheck2(this, DefaultImgSrcDirective);

            _this935 = _super449.apply(this, arguments);
            _this935.inputs = inputs;
            return _this935;
          }

          return DefaultImgSrcDirective;
        }(ImgSrcDirective);

        DefaultImgSrcDirective.ɵfac = function DefaultImgSrcDirective_Factory(t) {
          return ɵDefaultImgSrcDirective_BaseFactory(t || DefaultImgSrcDirective);
        };

        DefaultImgSrcDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
          type: DefaultImgSrcDirective,
          selectors: [["img", "src.xs", ""], ["img", "src.sm", ""], ["img", "src.md", ""], ["img", "src.lg", ""], ["img", "src.xl", ""], ["img", "src.lt-sm", ""], ["img", "src.lt-md", ""], ["img", "src.lt-lg", ""], ["img", "src.lt-xl", ""], ["img", "src.gt-xs", ""], ["img", "src.gt-sm", ""], ["img", "src.gt-md", ""], ["img", "src.gt-lg", ""]],
          inputs: {
            "src.xs": "src.xs",
            "src.sm": "src.sm",
            "src.md": "src.md",
            "src.lg": "src.lg",
            "src.xl": "src.xl",
            "src.lt-sm": "src.lt-sm",
            "src.lt-md": "src.lt-md",
            "src.lt-lg": "src.lt-lg",
            "src.lt-xl": "src.lt-xl",
            "src.gt-xs": "src.gt-xs",
            "src.gt-sm": "src.gt-sm",
            "src.gt-md": "src.gt-md",
            "src.gt-lg": "src.gt-lg"
          },
          features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
        });

        var ɵDefaultImgSrcDirective_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](DefaultImgSrcDirective);
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](DefaultImgSrcDirective, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
            args: [{
              selector: selector,
              inputs: inputs
            }]
          }], null, null);
        })();

        return DefaultImgSrcDirective;
      }();
      /**
       * @fileoverview added by tsickle
       * Generated from: extended/class/class.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */


      var ClassDirective =
      /** @class */
      function () {
        var ClassDirective = /*#__PURE__*/function (_angular_flex_layout_41) {
          _inherits2(ClassDirective, _angular_flex_layout_41);

          var _super450 = _createSuper2(ClassDirective);

          /**
           * @param {?} elementRef
           * @param {?} styler
           * @param {?} marshal
           * @param {?} iterableDiffers
           * @param {?} keyValueDiffers
           * @param {?} renderer2
           * @param {?} ngClassInstance
           */
          function ClassDirective(elementRef, styler, marshal, iterableDiffers, keyValueDiffers, renderer2, ngClassInstance) {
            var _this936;

            _classCallCheck2(this, ClassDirective);

            _this936 = _super450.call(this, elementRef, null, styler, marshal);
            _this936.ngClassInstance = ngClassInstance;
            _this936.DIRECTIVE_KEY = 'ngClass';

            if (!_this936.ngClassInstance) {
              // Create an instance NgClass Directive instance only if `ngClass=""` has NOT been defined on
              // the same host element; since the responsive variations may be defined...
              _this936.ngClassInstance = new _angular_common__WEBPACK_IMPORTED_MODULE_1__["NgClass"](iterableDiffers, keyValueDiffers, elementRef, renderer2);
            }

            _this936.init();

            _this936.setValue('', '');

            return _this936;
          }
          /**
           * Capture class assignments so we cache the default classes
           * which are merged with activated styles and used as fallbacks.
           * @param {?} val
           * @return {?}
           */


          _createClass2(ClassDirective, [{
            key: "klass",
            set: function set(val) {
              this.ngClassInstance.klass = val;
              this.setValue(val, '');
            }
            /**
             * @protected
             * @param {?} value
             * @return {?}
             */

          }, {
            key: "updateWithValue",
            value: function updateWithValue(value) {
              this.ngClassInstance.ngClass = value;
              this.ngClassInstance.ngDoCheck();
            } // ******************************************************************
            // Lifecycle Hooks
            // ******************************************************************

            /**
             * For ChangeDetectionStrategy.onPush and ngOnChanges() updates
             * @return {?}
             */

          }, {
            key: "ngDoCheck",
            value: function ngDoCheck() {
              this.ngClassInstance.ngDoCheck();
            }
          }]);

          return ClassDirective;
        }(_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["BaseDirective2"]);

        ClassDirective.ɵfac = function ClassDirective_Factory(t) {
          return new (t || ClassDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["StyleUtils"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["MediaMarshaller"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["IterableDiffers"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["KeyValueDiffers"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_common__WEBPACK_IMPORTED_MODULE_1__["NgClass"], 10));
        };

        ClassDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
          type: ClassDirective,
          inputs: {
            klass: ["class", "klass"]
          },
          features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
        });
        /** @nocollapse */

        ClassDirective.ctorParameters = function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
          }, {
            type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["StyleUtils"]
          }, {
            type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["MediaMarshaller"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["IterableDiffers"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["KeyValueDiffers"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]
          }, {
            type: _angular_common__WEBPACK_IMPORTED_MODULE_1__["NgClass"],
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
            }]
          }];
        };

        ClassDirective.propDecorators = {
          klass: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
            args: ['class']
          }]
        };
        /*@__PURE__*/

        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ClassDirective, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"]
          }], function () {
            return [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
            }, {
              type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["StyleUtils"]
            }, {
              type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["MediaMarshaller"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["IterableDiffers"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["KeyValueDiffers"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]
            }, {
              type: _angular_common__WEBPACK_IMPORTED_MODULE_1__["NgClass"],
              decorators: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
              }]
            }];
          }, {
            klass: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
              args: ['class']
            }]
          });
        })();

        return ClassDirective;
      }();
      /** @type {?} */


      var inputs$1 = ['ngClass', 'ngClass.xs', 'ngClass.sm', 'ngClass.md', 'ngClass.lg', 'ngClass.xl', 'ngClass.lt-sm', 'ngClass.lt-md', 'ngClass.lt-lg', 'ngClass.lt-xl', 'ngClass.gt-xs', 'ngClass.gt-sm', 'ngClass.gt-md', 'ngClass.gt-lg'];
      /** @type {?} */

      var selector$1 = "\n  [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl],\n  [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl],\n  [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]\n";
      /**
       * Directive to add responsive support for ngClass.
       * This maintains the core functionality of 'ngClass' and adds responsive API
       * Note: this class is a no-op when rendered on the server
       */

      var DefaultClassDirective =
      /** @class */
      function () {
        /**
         * Directive to add responsive support for ngClass.
         * This maintains the core functionality of 'ngClass' and adds responsive API
         * Note: this class is a no-op when rendered on the server
         */
        var DefaultClassDirective = /*#__PURE__*/function (_ClassDirective) {
          _inherits2(DefaultClassDirective, _ClassDirective);

          var _super451 = _createSuper2(DefaultClassDirective);

          function DefaultClassDirective() {
            var _this937;

            _classCallCheck2(this, DefaultClassDirective);

            _this937 = _super451.apply(this, arguments);
            _this937.inputs = inputs$1;
            return _this937;
          }

          return DefaultClassDirective;
        }(ClassDirective);

        DefaultClassDirective.ɵfac = function DefaultClassDirective_Factory(t) {
          return ɵDefaultClassDirective_BaseFactory(t || DefaultClassDirective);
        };

        DefaultClassDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
          type: DefaultClassDirective,
          selectors: [["", "ngClass", ""], ["", "ngClass.xs", ""], ["", "ngClass.sm", ""], ["", "ngClass.md", ""], ["", "ngClass.lg", ""], ["", "ngClass.xl", ""], ["", "ngClass.lt-sm", ""], ["", "ngClass.lt-md", ""], ["", "ngClass.lt-lg", ""], ["", "ngClass.lt-xl", ""], ["", "ngClass.gt-xs", ""], ["", "ngClass.gt-sm", ""], ["", "ngClass.gt-md", ""], ["", "ngClass.gt-lg", ""]],
          inputs: {
            ngClass: "ngClass",
            "ngClass.xs": "ngClass.xs",
            "ngClass.sm": "ngClass.sm",
            "ngClass.md": "ngClass.md",
            "ngClass.lg": "ngClass.lg",
            "ngClass.xl": "ngClass.xl",
            "ngClass.lt-sm": "ngClass.lt-sm",
            "ngClass.lt-md": "ngClass.lt-md",
            "ngClass.lt-lg": "ngClass.lt-lg",
            "ngClass.lt-xl": "ngClass.lt-xl",
            "ngClass.gt-xs": "ngClass.gt-xs",
            "ngClass.gt-sm": "ngClass.gt-sm",
            "ngClass.gt-md": "ngClass.gt-md",
            "ngClass.gt-lg": "ngClass.gt-lg"
          },
          features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
        });

        var ɵDefaultClassDirective_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](DefaultClassDirective);
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](DefaultClassDirective, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
            args: [{
              selector: selector$1,
              inputs: inputs$1
            }]
          }], null, null);
        })();

        return DefaultClassDirective;
      }();
      /**
       * @fileoverview added by tsickle
       * Generated from: extended/show-hide/show-hide.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */


      var ShowHideStyleBuilder =
      /** @class */
      function () {
        var ShowHideStyleBuilder = /*#__PURE__*/function (_angular_flex_layout_42) {
          _inherits2(ShowHideStyleBuilder, _angular_flex_layout_42);

          var _super452 = _createSuper2(ShowHideStyleBuilder);

          function ShowHideStyleBuilder() {
            _classCallCheck2(this, ShowHideStyleBuilder);

            return _super452.apply(this, arguments);
          }

          _createClass2(ShowHideStyleBuilder, [{
            key: "buildStyles",
            value:
            /**
             * @param {?} show
             * @param {?} parent
             * @return {?}
             */
            function buildStyles(show, parent) {
              /** @type {?} */
              var shouldShow = show === 'true';
              return {
                'display': shouldShow ? parent.display || (parent.isServer ? 'initial' : '') : 'none'
              };
            }
          }]);

          return ShowHideStyleBuilder;
        }(_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["StyleBuilder"]);

        ShowHideStyleBuilder.ɵfac = function ShowHideStyleBuilder_Factory(t) {
          return ɵShowHideStyleBuilder_BaseFactory(t || ShowHideStyleBuilder);
        };
        /** @nocollapse */


        ShowHideStyleBuilder.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({
          factory: function ShowHideStyleBuilder_Factory() {
            return new ShowHideStyleBuilder();
          },
          token: ShowHideStyleBuilder,
          providedIn: "root"
        });

        var ɵShowHideStyleBuilder_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](ShowHideStyleBuilder);
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ShowHideStyleBuilder, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
            args: [{
              providedIn: 'root'
            }]
          }], null, null);
        })();

        return ShowHideStyleBuilder;
      }();

      var ShowHideDirective =
      /** @class */
      function () {
        var ShowHideDirective = /*#__PURE__*/function (_angular_flex_layout_43) {
          _inherits2(ShowHideDirective, _angular_flex_layout_43);

          var _super453 = _createSuper2(ShowHideDirective);

          /**
           * @param {?} elementRef
           * @param {?} styleBuilder
           * @param {?} styler
           * @param {?} marshal
           * @param {?} layoutConfig
           * @param {?} platformId
           * @param {?} serverModuleLoaded
           */
          function ShowHideDirective(elementRef, styleBuilder, styler, marshal, layoutConfig, platformId, serverModuleLoaded) {
            var _this938;

            _classCallCheck2(this, ShowHideDirective);

            _this938 = _super453.call(this, elementRef, styleBuilder, styler, marshal);
            _this938.layoutConfig = layoutConfig;
            _this938.platformId = platformId;
            _this938.serverModuleLoaded = serverModuleLoaded;
            _this938.DIRECTIVE_KEY = 'show-hide';
            /**
             * Original DOM Element CSS display style
             */

            _this938.display = '';
            _this938.hasLayout = false;
            _this938.hasFlexChild = false;
            return _this938;
          } // *********************************************
          // Lifecycle Methods
          // *********************************************

          /**
           * @return {?}
           */


          _createClass2(ShowHideDirective, [{
            key: "ngAfterViewInit",
            value: function ngAfterViewInit() {
              this.trackExtraTriggers();
              /** @type {?} */

              var children = Array.from(this.nativeElement.children);

              for (var i = 0; i < children.length; i++) {
                if (this.marshal.hasValue(children[i], 'flex')) {
                  this.hasFlexChild = true;
                  break;
                }
              }

              if (DISPLAY_MAP.has(this.nativeElement)) {
                this.display = DISPLAY_MAP.get(this.nativeElement);
              } else {
                this.display = this.getDisplayStyle();
                DISPLAY_MAP.set(this.nativeElement, this.display);
              }

              this.init(); // set the default to show unless explicitly overridden

              /** @type {?} */

              var defaultValue = this.marshal.getValue(this.nativeElement, this.DIRECTIVE_KEY, '');

              if (defaultValue === undefined || defaultValue === '') {
                this.setValue(true, '');
              } else {
                this.triggerUpdate();
              }
            }
            /**
             * On changes to any \@Input properties...
             * Default to use the non-responsive Input value ('fxShow')
             * Then conditionally override with the mq-activated Input's current value
             * @param {?} changes
             * @return {?}
             */

          }, {
            key: "ngOnChanges",
            value: function ngOnChanges(changes) {
              var _this939 = this;

              Object.keys(changes).forEach(
              /**
              * @param {?} key
              * @return {?}
              */
              function (key) {
                if (_this939.inputs.indexOf(key) !== -1) {
                  /** @type {?} */
                  var inputKey = key.split('.');
                  /** @type {?} */

                  var bp = inputKey.slice(1).join('.');
                  /** @type {?} */

                  var inputValue = changes[key].currentValue;
                  /** @type {?} */

                  var shouldShow = inputValue !== '' ? inputValue !== 0 ? Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_3__["coerceBooleanProperty"])(inputValue) : false : true;

                  if (inputKey[0] === 'fxHide') {
                    shouldShow = !shouldShow;
                  }

                  _this939.setValue(shouldShow, bp);
                }
              });
            } // *********************************************
            // Protected methods
            // *********************************************

            /**
             *  Watch for these extra triggers to update fxShow, fxHide stylings
             * @protected
             * @return {?}
             */

          }, {
            key: "trackExtraTriggers",
            value: function trackExtraTriggers() {
              var _this940 = this;

              this.hasLayout = this.marshal.hasValue(this.nativeElement, 'layout');
              ['layout', 'layout-align'].forEach(
              /**
              * @param {?} key
              * @return {?}
              */
              function (key) {
                _this940.marshal.trackValue(_this940.nativeElement, key).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["takeUntil"])(_this940.destroySubject)).subscribe(_this940.triggerUpdate.bind(_this940));
              });
            }
            /**
             * Override accessor to the current HTMLElement's `display` style
             * Note: Show/Hide will not change the display to 'flex' but will set it to 'block'
             * unless it was already explicitly specified inline or in a CSS stylesheet.
             * @protected
             * @return {?}
             */

          }, {
            key: "getDisplayStyle",
            value: function getDisplayStyle() {
              return this.hasLayout || this.hasFlexChild && this.layoutConfig.addFlexToParent ? 'flex' : this.styler.lookupStyle(this.nativeElement, 'display', true);
            }
            /**
             * Validate the visibility value and then update the host's inline display style
             * @protected
             * @param {?=} value
             * @return {?}
             */

          }, {
            key: "updateWithValue",
            value: function updateWithValue() {
              var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;

              if (value === '') {
                return;
              }
              /** @type {?} */


              var isServer = Object(_angular_common__WEBPACK_IMPORTED_MODULE_1__["isPlatformServer"])(this.platformId);
              this.addStyles(value ? 'true' : 'false', {
                display: this.display,
                isServer: isServer
              });

              if (isServer && this.serverModuleLoaded) {
                this.nativeElement.style.setProperty('display', '');
              }

              this.marshal.triggerUpdate(this.parentElement, 'layout-gap');
            }
          }]);

          return ShowHideDirective;
        }(_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["BaseDirective2"]);

        ShowHideDirective.ɵfac = function ShowHideDirective_Factory(t) {
          return new (t || ShowHideDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ShowHideStyleBuilder), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["StyleUtils"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["MediaMarshaller"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["LAYOUT_CONFIG"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["PLATFORM_ID"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["SERVER_TOKEN"]));
        };

        ShowHideDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
          type: ShowHideDirective,
          features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]]
        });
        /** @nocollapse */

        ShowHideDirective.ctorParameters = function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
          }, {
            type: ShowHideStyleBuilder
          }, {
            type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["StyleUtils"]
          }, {
            type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["MediaMarshaller"]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["LAYOUT_CONFIG"]]
            }]
          }, {
            type: Object,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["PLATFORM_ID"]]
            }]
          }, {
            type: Boolean,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["SERVER_TOKEN"]]
            }]
          }];
        };
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ShowHideDirective, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"]
          }], function () {
            return [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
            }, {
              type: ShowHideStyleBuilder
            }, {
              type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["StyleUtils"]
            }, {
              type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["MediaMarshaller"]
            }, {
              type: undefined,
              decorators: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
                args: [_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["LAYOUT_CONFIG"]]
              }]
            }, {
              type: Object,
              decorators: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
                args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["PLATFORM_ID"]]
              }]
            }, {
              type: Boolean,
              decorators: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
                args: [_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["SERVER_TOKEN"]]
              }]
            }];
          }, null);
        })();

        return ShowHideDirective;
      }();
      /** @type {?} */


      var DISPLAY_MAP = new WeakMap();
      /** @type {?} */

      var inputs$2 = ['fxShow', 'fxShow.print', 'fxShow.xs', 'fxShow.sm', 'fxShow.md', 'fxShow.lg', 'fxShow.xl', 'fxShow.lt-sm', 'fxShow.lt-md', 'fxShow.lt-lg', 'fxShow.lt-xl', 'fxShow.gt-xs', 'fxShow.gt-sm', 'fxShow.gt-md', 'fxShow.gt-lg', 'fxHide', 'fxHide.print', 'fxHide.xs', 'fxHide.sm', 'fxHide.md', 'fxHide.lg', 'fxHide.xl', 'fxHide.lt-sm', 'fxHide.lt-md', 'fxHide.lt-lg', 'fxHide.lt-xl', 'fxHide.gt-xs', 'fxHide.gt-sm', 'fxHide.gt-md', 'fxHide.gt-lg'];
      /** @type {?} */

      var selector$2 = "\n  [fxShow], [fxShow.print],\n  [fxShow.xs], [fxShow.sm], [fxShow.md], [fxShow.lg], [fxShow.xl],\n  [fxShow.lt-sm], [fxShow.lt-md], [fxShow.lt-lg], [fxShow.lt-xl],\n  [fxShow.gt-xs], [fxShow.gt-sm], [fxShow.gt-md], [fxShow.gt-lg],\n  [fxHide], [fxHide.print],\n  [fxHide.xs], [fxHide.sm], [fxHide.md], [fxHide.lg], [fxHide.xl],\n  [fxHide.lt-sm], [fxHide.lt-md], [fxHide.lt-lg], [fxHide.lt-xl],\n  [fxHide.gt-xs], [fxHide.gt-sm], [fxHide.gt-md], [fxHide.gt-lg]\n";
      /**
       * 'show' Layout API directive
       */

      var DefaultShowHideDirective =
      /** @class */
      function () {
        /**
         * 'show' Layout API directive
         */
        var DefaultShowHideDirective = /*#__PURE__*/function (_ShowHideDirective) {
          _inherits2(DefaultShowHideDirective, _ShowHideDirective);

          var _super454 = _createSuper2(DefaultShowHideDirective);

          function DefaultShowHideDirective() {
            var _this941;

            _classCallCheck2(this, DefaultShowHideDirective);

            _this941 = _super454.apply(this, arguments);
            _this941.inputs = inputs$2;
            return _this941;
          }

          return DefaultShowHideDirective;
        }(ShowHideDirective);

        DefaultShowHideDirective.ɵfac = function DefaultShowHideDirective_Factory(t) {
          return ɵDefaultShowHideDirective_BaseFactory(t || DefaultShowHideDirective);
        };

        DefaultShowHideDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
          type: DefaultShowHideDirective,
          selectors: [["", "fxShow", ""], ["", "fxShow.print", ""], ["", "fxShow.xs", ""], ["", "fxShow.sm", ""], ["", "fxShow.md", ""], ["", "fxShow.lg", ""], ["", "fxShow.xl", ""], ["", "fxShow.lt-sm", ""], ["", "fxShow.lt-md", ""], ["", "fxShow.lt-lg", ""], ["", "fxShow.lt-xl", ""], ["", "fxShow.gt-xs", ""], ["", "fxShow.gt-sm", ""], ["", "fxShow.gt-md", ""], ["", "fxShow.gt-lg", ""], ["", "fxHide", ""], ["", "fxHide.print", ""], ["", "fxHide.xs", ""], ["", "fxHide.sm", ""], ["", "fxHide.md", ""], ["", "fxHide.lg", ""], ["", "fxHide.xl", ""], ["", "fxHide.lt-sm", ""], ["", "fxHide.lt-md", ""], ["", "fxHide.lt-lg", ""], ["", "fxHide.lt-xl", ""], ["", "fxHide.gt-xs", ""], ["", "fxHide.gt-sm", ""], ["", "fxHide.gt-md", ""], ["", "fxHide.gt-lg", ""]],
          inputs: {
            fxShow: "fxShow",
            "fxShow.print": "fxShow.print",
            "fxShow.xs": "fxShow.xs",
            "fxShow.sm": "fxShow.sm",
            "fxShow.md": "fxShow.md",
            "fxShow.lg": "fxShow.lg",
            "fxShow.xl": "fxShow.xl",
            "fxShow.lt-sm": "fxShow.lt-sm",
            "fxShow.lt-md": "fxShow.lt-md",
            "fxShow.lt-lg": "fxShow.lt-lg",
            "fxShow.lt-xl": "fxShow.lt-xl",
            "fxShow.gt-xs": "fxShow.gt-xs",
            "fxShow.gt-sm": "fxShow.gt-sm",
            "fxShow.gt-md": "fxShow.gt-md",
            "fxShow.gt-lg": "fxShow.gt-lg",
            fxHide: "fxHide",
            "fxHide.print": "fxHide.print",
            "fxHide.xs": "fxHide.xs",
            "fxHide.sm": "fxHide.sm",
            "fxHide.md": "fxHide.md",
            "fxHide.lg": "fxHide.lg",
            "fxHide.xl": "fxHide.xl",
            "fxHide.lt-sm": "fxHide.lt-sm",
            "fxHide.lt-md": "fxHide.lt-md",
            "fxHide.lt-lg": "fxHide.lt-lg",
            "fxHide.lt-xl": "fxHide.lt-xl",
            "fxHide.gt-xs": "fxHide.gt-xs",
            "fxHide.gt-sm": "fxHide.gt-sm",
            "fxHide.gt-md": "fxHide.gt-md",
            "fxHide.gt-lg": "fxHide.gt-lg"
          },
          features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
        });

        var ɵDefaultShowHideDirective_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](DefaultShowHideDirective);
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](DefaultShowHideDirective, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
            args: [{
              selector: selector$2,
              inputs: inputs$2
            }]
          }], null, null);
        })();

        return DefaultShowHideDirective;
      }();
      /**
       * @fileoverview added by tsickle
       * Generated from: extended/style/style-transforms.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * NgStyle allowed inputs
       */


      var NgStyleKeyValue =
      /**
       * @param {?} key
       * @param {?} value
       * @param {?=} noQuotes
       */
      function NgStyleKeyValue(key, value) {
        var noQuotes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;

        _classCallCheck2(this, NgStyleKeyValue);

        this.key = key;
        this.value = value;
        this.key = noQuotes ? key.replace(/['"]/g, '').trim() : key.trim();
        this.value = noQuotes ? value.replace(/['"]/g, '').trim() : value.trim();
        this.value = this.value.replace(/;/, '');
      };
      /**
       * @param {?} target
       * @return {?}
       */


      function getType(target) {
        /** @type {?} */
        var what = typeof target;

        if (what === 'object') {
          return target.constructor === Array ? 'array' : target.constructor === Set ? 'set' : 'object';
        }

        return what;
      }
      /**
       * Split string of key:value pairs into Array of k-v pairs
       * e.g.  'key:value; key:value; key:value;' -> ['key:value',...]
       * @param {?} source
       * @param {?=} delimiter
       * @return {?}
       */


      function buildRawList(source) {
        var delimiter = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ';';
        return String(source).trim().split(delimiter).map(
        /**
        * @param {?} val
        * @return {?}
        */
        function (val) {
          return val.trim();
        }).filter(
        /**
        * @param {?} val
        * @return {?}
        */
        function (val) {
          return val !== '';
        });
      }
      /**
       * Convert array of key:value strings to a iterable map object
       * @param {?} styles
       * @param {?=} sanitize
       * @return {?}
       */


      function buildMapFromList(styles, sanitize) {
        /** @type {?} */
        var sanitizeValue =
        /**
        * @param {?} it
        * @return {?}
        */
        function sanitizeValue(it) {
          if (sanitize) {
            it.value = sanitize(it.value);
          }

          return it;
        };

        return styles.map(stringToKeyValue).filter(
        /**
        * @param {?} entry
        * @return {?}
        */
        function (entry) {
          return !!entry;
        }).map(sanitizeValue).reduce(keyValuesToMap, {});
      }
      /**
       * Convert Set<string> or raw Object to an iterable NgStyleMap
       * @param {?} source
       * @param {?=} sanitize
       * @return {?}
       */


      function buildMapFromSet(source, sanitize) {
        /** @type {?} */
        var list = [];

        if (getType(source) === 'set') {
          source.forEach(
          /**
          * @param {?} entry
          * @return {?}
          */
          function (entry) {
            return list.push(entry);
          });
        } else {
          Object.keys(source).forEach(
          /**
          * @param {?} key
          * @return {?}
          */
          function (key) {
            list.push("".concat(key, ":").concat(source[key]));
          });
        }

        return buildMapFromList(list, sanitize);
      }
      /**
       * Convert 'key:value' -> [key, value]
       * @param {?} it
       * @return {?}
       */


      function stringToKeyValue(it) {
        var _it$split = it.split(':'),
            _it$split2 = _toArray(_it$split),
            key = _it$split2[0],
            vals = _it$split2.slice(1);

        return new NgStyleKeyValue(key, vals.join(':'));
      }
      /**
       * Convert [ [key,value] ] -> { key : value }
       * @param {?} map
       * @param {?} entry
       * @return {?}
       */


      function keyValuesToMap(map, entry) {
        if (!!entry.key) {
          map[entry.key] = entry.value;
        }

        return map;
      }
      /**
       * @fileoverview added by tsickle
       * Generated from: extended/style/style.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */


      var StyleDirective =
      /** @class */
      function () {
        var StyleDirective = /*#__PURE__*/function (_angular_flex_layout_44) {
          _inherits2(StyleDirective, _angular_flex_layout_44);

          var _super455 = _createSuper2(StyleDirective);

          /**
           * @param {?} elementRef
           * @param {?} styler
           * @param {?} marshal
           * @param {?} sanitizer
           * @param {?} differs
           * @param {?} renderer2
           * @param {?} ngStyleInstance
           * @param {?} serverLoaded
           * @param {?} platformId
           */
          function StyleDirective(elementRef, styler, marshal, sanitizer, differs, renderer2, ngStyleInstance, serverLoaded, platformId) {
            var _this942;

            _classCallCheck2(this, StyleDirective);

            _this942 = _super455.call(this, elementRef, null, styler, marshal);
            _this942.sanitizer = sanitizer;
            _this942.ngStyleInstance = ngStyleInstance;
            _this942.DIRECTIVE_KEY = 'ngStyle';

            if (!_this942.ngStyleInstance) {
              // Create an instance NgStyle Directive instance only if `ngStyle=""` has NOT been
              // defined on the same host element; since the responsive variations may be defined...
              _this942.ngStyleInstance = new _angular_common__WEBPACK_IMPORTED_MODULE_1__["NgStyle"](elementRef, differs, renderer2);
            }

            _this942.init();
            /** @type {?} */


            var styles = _this942.nativeElement.getAttribute('style') || '';
            _this942.fallbackStyles = _this942.buildStyleMap(styles);
            _this942.isServer = serverLoaded && Object(_angular_common__WEBPACK_IMPORTED_MODULE_1__["isPlatformServer"])(platformId);
            return _this942;
          }
          /**
           * Add generated styles
           * @protected
           * @param {?} value
           * @return {?}
           */


          _createClass2(StyleDirective, [{
            key: "updateWithValue",
            value: function updateWithValue(value) {
              /** @type {?} */
              var styles = this.buildStyleMap(value);
              this.ngStyleInstance.ngStyle = Object.assign(Object.assign({}, this.fallbackStyles), styles);

              if (this.isServer) {
                this.applyStyleToElement(styles);
              }

              this.ngStyleInstance.ngDoCheck();
            }
            /**
             * Remove generated styles
             * @protected
             * @return {?}
             */

          }, {
            key: "clearStyles",
            value: function clearStyles() {
              this.ngStyleInstance.ngStyle = this.fallbackStyles;
              this.ngStyleInstance.ngDoCheck();
            }
            /**
             * Convert raw strings to ngStyleMap; which is required by ngStyle
             * NOTE: Raw string key-value pairs MUST be delimited by `;`
             *       Comma-delimiters are not supported due to complexities of
             *       possible style values such as `rgba(x,x,x,x)` and others
             * @protected
             * @param {?} styles
             * @return {?}
             */

          }, {
            key: "buildStyleMap",
            value: function buildStyleMap(styles) {
              var _this943 = this;

              // Always safe-guard (aka sanitize) style property values

              /** @type {?} */
              var sanitizer =
              /**
              * @param {?} val
              * @return {?}
              */
              function sanitizer(val) {
                return _this943.sanitizer.sanitize(_angular_core__WEBPACK_IMPORTED_MODULE_0__["SecurityContext"].STYLE, val) || '';
              };

              if (styles) {
                switch (getType(styles)) {
                  case 'string':
                    return buildMapFromList$1(buildRawList(styles), sanitizer);

                  case 'array':
                    return buildMapFromList$1(styles, sanitizer);

                  case 'set':
                    return buildMapFromSet(styles, sanitizer);

                  default:
                    return buildMapFromSet(styles, sanitizer);
                }
              }

              return {};
            } // ******************************************************************
            // Lifecycle Hooks
            // ******************************************************************

            /**
             * For ChangeDetectionStrategy.onPush and ngOnChanges() updates
             * @return {?}
             */

          }, {
            key: "ngDoCheck",
            value: function ngDoCheck() {
              this.ngStyleInstance.ngDoCheck();
            }
          }]);

          return StyleDirective;
        }(_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["BaseDirective2"]);

        StyleDirective.ɵfac = function StyleDirective_Factory(t) {
          return new (t || StyleDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["StyleUtils"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["MediaMarshaller"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_platform_browser__WEBPACK_IMPORTED_MODULE_5__["DomSanitizer"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["KeyValueDiffers"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_common__WEBPACK_IMPORTED_MODULE_1__["NgStyle"], 10), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["SERVER_TOKEN"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["PLATFORM_ID"]));
        };

        StyleDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
          type: StyleDirective,
          features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
        });
        /** @nocollapse */

        StyleDirective.ctorParameters = function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
          }, {
            type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["StyleUtils"]
          }, {
            type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["MediaMarshaller"]
          }, {
            type: _angular_platform_browser__WEBPACK_IMPORTED_MODULE_5__["DomSanitizer"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["KeyValueDiffers"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]
          }, {
            type: _angular_common__WEBPACK_IMPORTED_MODULE_1__["NgStyle"],
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
            }]
          }, {
            type: Boolean,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["SERVER_TOKEN"]]
            }]
          }, {
            type: Object,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["PLATFORM_ID"]]
            }]
          }];
        };
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](StyleDirective, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"]
          }], function () {
            return [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
            }, {
              type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["StyleUtils"]
            }, {
              type: _angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["MediaMarshaller"]
            }, {
              type: _angular_platform_browser__WEBPACK_IMPORTED_MODULE_5__["DomSanitizer"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["KeyValueDiffers"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]
            }, {
              type: _angular_common__WEBPACK_IMPORTED_MODULE_1__["NgStyle"],
              decorators: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
              }, {
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
              }]
            }, {
              type: Boolean,
              decorators: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
                args: [_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["SERVER_TOKEN"]]
              }]
            }, {
              type: Object,
              decorators: [{
                type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
                args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["PLATFORM_ID"]]
              }]
            }];
          }, null);
        })();

        return StyleDirective;
      }();
      /** @type {?} */


      var inputs$3 = ['ngStyle', 'ngStyle.xs', 'ngStyle.sm', 'ngStyle.md', 'ngStyle.lg', 'ngStyle.xl', 'ngStyle.lt-sm', 'ngStyle.lt-md', 'ngStyle.lt-lg', 'ngStyle.lt-xl', 'ngStyle.gt-xs', 'ngStyle.gt-sm', 'ngStyle.gt-md', 'ngStyle.gt-lg'];
      /** @type {?} */

      var selector$3 = "\n  [ngStyle],\n  [ngStyle.xs], [ngStyle.sm], [ngStyle.md], [ngStyle.lg], [ngStyle.xl],\n  [ngStyle.lt-sm], [ngStyle.lt-md], [ngStyle.lt-lg], [ngStyle.lt-xl],\n  [ngStyle.gt-xs], [ngStyle.gt-sm], [ngStyle.gt-md], [ngStyle.gt-lg]\n";
      /**
       * Directive to add responsive support for ngStyle.
       *
       */

      var DefaultStyleDirective =
      /** @class */
      function () {
        /**
         * Directive to add responsive support for ngStyle.
         *
         */
        var DefaultStyleDirective = /*#__PURE__*/function (_StyleDirective) {
          _inherits2(DefaultStyleDirective, _StyleDirective);

          var _super456 = _createSuper2(DefaultStyleDirective);

          function DefaultStyleDirective() {
            var _this944;

            _classCallCheck2(this, DefaultStyleDirective);

            _this944 = _super456.apply(this, arguments);
            _this944.inputs = inputs$3;
            return _this944;
          }

          return DefaultStyleDirective;
        }(StyleDirective);

        DefaultStyleDirective.ɵfac = function DefaultStyleDirective_Factory(t) {
          return ɵDefaultStyleDirective_BaseFactory(t || DefaultStyleDirective);
        };

        DefaultStyleDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
          type: DefaultStyleDirective,
          selectors: [["", "ngStyle", ""], ["", "ngStyle.xs", ""], ["", "ngStyle.sm", ""], ["", "ngStyle.md", ""], ["", "ngStyle.lg", ""], ["", "ngStyle.xl", ""], ["", "ngStyle.lt-sm", ""], ["", "ngStyle.lt-md", ""], ["", "ngStyle.lt-lg", ""], ["", "ngStyle.lt-xl", ""], ["", "ngStyle.gt-xs", ""], ["", "ngStyle.gt-sm", ""], ["", "ngStyle.gt-md", ""], ["", "ngStyle.gt-lg", ""]],
          inputs: {
            ngStyle: "ngStyle",
            "ngStyle.xs": "ngStyle.xs",
            "ngStyle.sm": "ngStyle.sm",
            "ngStyle.md": "ngStyle.md",
            "ngStyle.lg": "ngStyle.lg",
            "ngStyle.xl": "ngStyle.xl",
            "ngStyle.lt-sm": "ngStyle.lt-sm",
            "ngStyle.lt-md": "ngStyle.lt-md",
            "ngStyle.lt-lg": "ngStyle.lt-lg",
            "ngStyle.lt-xl": "ngStyle.lt-xl",
            "ngStyle.gt-xs": "ngStyle.gt-xs",
            "ngStyle.gt-sm": "ngStyle.gt-sm",
            "ngStyle.gt-md": "ngStyle.gt-md",
            "ngStyle.gt-lg": "ngStyle.gt-lg"
          },
          features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
        });

        var ɵDefaultStyleDirective_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](DefaultStyleDirective);
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](DefaultStyleDirective, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
            args: [{
              selector: selector$3,
              inputs: inputs$3
            }]
          }], null, null);
        })();

        return DefaultStyleDirective;
      }();
      /**
       * Build a styles map from a list of styles, while sanitizing bad values first
       * @param {?} styles
       * @param {?=} sanitize
       * @return {?}
       */


      function buildMapFromList$1(styles, sanitize) {
        /** @type {?} */
        var sanitizeValue =
        /**
        * @param {?} it
        * @return {?}
        */
        function sanitizeValue(it) {
          if (sanitize) {
            it.value = sanitize(it.value);
          }

          return it;
        };

        return styles.map(stringToKeyValue).filter(
        /**
        * @param {?} entry
        * @return {?}
        */
        function (entry) {
          return !!entry;
        }).map(sanitizeValue).reduce(keyValuesToMap, {});
      }
      /**
       * @fileoverview added by tsickle
       * Generated from: extended/module.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /** @type {?} */


      var ALL_DIRECTIVES = [DefaultShowHideDirective, DefaultClassDirective, DefaultStyleDirective, DefaultImgSrcDirective];
      /**
       * *****************************************************************
       * Define module for the Extended API
       * *****************************************************************
       */

      var ExtendedModule =
      /** @class */
      function () {
        /**
         * *****************************************************************
         * Define module for the Extended API
         * *****************************************************************
         */
        var ExtendedModule = function ExtendedModule() {
          _classCallCheck2(this, ExtendedModule);
        };

        ExtendedModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
          type: ExtendedModule
        });
        ExtendedModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
          factory: function ExtendedModule_Factory(t) {
            return new (t || ExtendedModule)();
          },
          imports: [[_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["CoreModule"]]]
        });

        (function () {
          (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](ExtendedModule, {
            declarations: function declarations() {
              return [DefaultShowHideDirective, DefaultClassDirective, DefaultStyleDirective, DefaultImgSrcDirective];
            },
            imports: function imports() {
              return [_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["CoreModule"]];
            },
            exports: function exports() {
              return [DefaultShowHideDirective, DefaultClassDirective, DefaultStyleDirective, DefaultImgSrcDirective];
            }
          });
        })();
        /*@__PURE__*/


        (function () {
          _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ExtendedModule, [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
            args: [{
              imports: [_angular_flex_layout_core__WEBPACK_IMPORTED_MODULE_2__["CoreModule"]],
              declarations: [].concat(ALL_DIRECTIVES),
              exports: [].concat(ALL_DIRECTIVES)
            }]
          }], null, null);
        })();

        return ExtendedModule;
      }();
      /**
       * @fileoverview added by tsickle
       * Generated from: extended/public-api.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */

      /**
       * @fileoverview added by tsickle
       * Generated from: extended/index.ts
       * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
       */
      //# sourceMappingURL=extended.js.map

      /***/

    },

    /***/
    "vAQ4": function vAQ4(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return differenceInISOWeekYears;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _differenceInCalendarISOWeekYears_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../differenceInCalendarISOWeekYears/index.js */
      "3zlk");
      /* harmony import */


      var _compareAsc_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../compareAsc/index.js */
      "JhOC");
      /* harmony import */


      var _subISOWeekYears_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../subISOWeekYears/index.js */
      "pIWV");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name differenceInISOWeekYears
       * @category ISO Week-Numbering Year Helpers
       * @summary Get the number of full ISO week-numbering years between the given dates.
       *
       * @description
       * Get the number of full ISO week-numbering years between the given dates.
       *
       * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date
       *
       * ### 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).
       *
       * - The function was renamed from `differenceInISOYears` to `differenceInISOWeekYears`.
       *   "ISO week year" is short for [ISO week-numbering year](https://en.wikipedia.org/wiki/ISO_week_date).
       *   This change makes the name consistent with
       *   locale-dependent week-numbering year helpers, e.g., `addWeekYears`.
       *
       * @param {Date|Number} dateLeft - the later date
       * @param {Date|Number} dateRight - the earlier date
       * @returns {Number} the number of full ISO week-numbering years
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // How many full ISO week-numbering years are between 1 January 2010 and 1 January 2012?
       * var result = differenceInISOWeekYears(
       *   new Date(2012, 0, 1),
       *   new Date(2010, 0, 1)
       * )
       * //=> 1
       */


      function differenceInISOWeekYears(dirtyDateLeft, dirtyDateRight) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_4__["default"])(2, arguments);
        var dateLeft = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateLeft);
        var dateRight = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateRight);
        var sign = Object(_compareAsc_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(dateLeft, dateRight);
        var difference = Math.abs(Object(_differenceInCalendarISOWeekYears_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dateLeft, dateRight));
        dateLeft = Object(_subISOWeekYears_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(dateLeft, sign * difference); // Math.abs(diff in full ISO years - diff in calendar ISO years) === 1
        // if last calendar ISO year is not full
        // If so, result must be decreased by 1 in absolute value

        var isLastISOWeekYearNotFull = Object(_compareAsc_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(dateLeft, dateRight) === -sign;
        var result = sign * (difference - isLastISOWeekYearNotFull); // Prevent negative zero

        return result === 0 ? 0 : result;
      }
      /***/

    },

    /***/
    "vHCX": function vHCX(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return startOfQuarter;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name startOfQuarter
       * @category Quarter Helpers
       * @summary Return the start of a year quarter for the given date.
       *
       * @description
       * Return the start of a year quarter for the given date.
       * The result will be in the local timezone.
       *
       * ### 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 {Date|Number} date - the original date
       * @returns {Date} the start of a quarter
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // The start of a quarter for 2 September 2014 11:55:00:
       * var result = startOfQuarter(new Date(2014, 8, 2, 11, 55, 0))
       * //=> Tue Jul 01 2014 00:00:00
       */


      function startOfQuarter(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);
        var currentMonth = date.getMonth();
        var month = currentMonth - currentMonth % 3;
        date.setMonth(month, 1);
        date.setHours(0, 0, 0, 0);
        return date;
      }
      /***/

    },

    /***/
    "vRX4": function vRX4(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return buildMatchPatternFn;
      });

      function buildMatchPatternFn(args) {
        return function (dirtyString, dirtyOptions) {
          var string = String(dirtyString);
          var options = dirtyOptions || {};
          var matchResult = string.match(args.matchPattern);

          if (!matchResult) {
            return null;
          }

          var matchedString = matchResult[0];
          var parseResult = string.match(args.parsePattern);

          if (!parseResult) {
            return null;
          }

          var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];
          value = options.valueCallback ? options.valueCallback(value) : value;
          return {
            value: value,
            rest: string.slice(matchedString.length)
          };
        };
      }
      /***/

    },

    /***/
    "vkgz": function vkgz(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "tap", function () {
        return tap;
      });
      /* harmony import */


      var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Subscriber */
      "7o/Q");
      /* harmony import */


      var _util_noop__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../util/noop */
      "KqfI");
      /* harmony import */


      var _util_isFunction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../util/isFunction */
      "n6bG");

      function tap(nextOrObserver, error, complete) {
        return function tapOperatorFunction(source) {
          return source.lift(new DoOperator(nextOrObserver, error, complete));
        };
      }

      var DoOperator = /*#__PURE__*/function () {
        function DoOperator(nextOrObserver, error, complete) {
          _classCallCheck2(this, DoOperator);

          this.nextOrObserver = nextOrObserver;
          this.error = error;
          this.complete = complete;
        }

        _createClass2(DoOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            return source.subscribe(new TapSubscriber(subscriber, this.nextOrObserver, this.error, this.complete));
          }
        }]);

        return DoOperator;
      }();

      var TapSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_44) {
        _inherits2(TapSubscriber, _Subscriber__WEBPACK_44);

        var _super457 = _createSuper2(TapSubscriber);

        function TapSubscriber(destination, observerOrNext, error, complete) {
          var _this945;

          _classCallCheck2(this, TapSubscriber);

          _this945 = _super457.call(this, destination);
          _this945._tapNext = _util_noop__WEBPACK_IMPORTED_MODULE_1__["noop"];
          _this945._tapError = _util_noop__WEBPACK_IMPORTED_MODULE_1__["noop"];
          _this945._tapComplete = _util_noop__WEBPACK_IMPORTED_MODULE_1__["noop"];
          _this945._tapError = error || _util_noop__WEBPACK_IMPORTED_MODULE_1__["noop"];
          _this945._tapComplete = complete || _util_noop__WEBPACK_IMPORTED_MODULE_1__["noop"];

          if (Object(_util_isFunction__WEBPACK_IMPORTED_MODULE_2__["isFunction"])(observerOrNext)) {
            _this945._context = _assertThisInitialized2(_this945);
            _this945._tapNext = observerOrNext;
          } else if (observerOrNext) {
            _this945._context = observerOrNext;
            _this945._tapNext = observerOrNext.next || _util_noop__WEBPACK_IMPORTED_MODULE_1__["noop"];
            _this945._tapError = observerOrNext.error || _util_noop__WEBPACK_IMPORTED_MODULE_1__["noop"];
            _this945._tapComplete = observerOrNext.complete || _util_noop__WEBPACK_IMPORTED_MODULE_1__["noop"];
          }

          return _this945;
        }

        _createClass2(TapSubscriber, [{
          key: "_next",
          value: function _next(value) {
            try {
              this._tapNext.call(this._context, value);
            } catch (err) {
              this.destination.error(err);
              return;
            }

            this.destination.next(value);
          }
        }, {
          key: "_error",
          value: function _error(err) {
            try {
              this._tapError.call(this._context, err);
            } catch (err) {
              this.destination.error(err);
              return;
            }

            this.destination.error(err);
          }
        }, {
          key: "_complete",
          value: function _complete() {
            try {
              this._tapComplete.call(this._context);
            } catch (err) {
              this.destination.error(err);
              return;
            }

            return this.destination.complete();
          }
        }]);

        return TapSubscriber;
      }(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]); //# sourceMappingURL=tap.js.map

      /***/

    },

    /***/
    "vqkR": function vqkR(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "skipUntil", function () {
        return skipUntil;
      });
      /* harmony import */


      var _innerSubscribe__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../innerSubscribe */
      "zx2A");

      function skipUntil(notifier) {
        return function (source) {
          return source.lift(new SkipUntilOperator(notifier));
        };
      }

      var SkipUntilOperator = /*#__PURE__*/function () {
        function SkipUntilOperator(notifier) {
          _classCallCheck2(this, SkipUntilOperator);

          this.notifier = notifier;
        }

        _createClass2(SkipUntilOperator, [{
          key: "call",
          value: function call(destination, source) {
            return source.subscribe(new SkipUntilSubscriber(destination, this.notifier));
          }
        }]);

        return SkipUntilOperator;
      }();

      var SkipUntilSubscriber = /*#__PURE__*/function (_innerSubscribe__WEBP20) {
        _inherits2(SkipUntilSubscriber, _innerSubscribe__WEBP20);

        var _super458 = _createSuper2(SkipUntilSubscriber);

        function SkipUntilSubscriber(destination, notifier) {
          var _this946;

          _classCallCheck2(this, SkipUntilSubscriber);

          _this946 = _super458.call(this, destination);
          _this946.hasValue = false;
          var innerSubscriber = new _innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["SimpleInnerSubscriber"](_assertThisInitialized2(_this946));

          _this946.add(innerSubscriber);

          _this946.innerSubscription = innerSubscriber;
          var innerSubscription = Object(_innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["innerSubscribe"])(notifier, innerSubscriber);

          if (innerSubscription !== innerSubscriber) {
            _this946.add(innerSubscription);

            _this946.innerSubscription = innerSubscription;
          }

          return _this946;
        }

        _createClass2(SkipUntilSubscriber, [{
          key: "_next",
          value: function _next(value) {
            if (this.hasValue) {
              _get2(_getPrototypeOf2(SkipUntilSubscriber.prototype), "_next", this).call(this, value);
            }
          }
        }, {
          key: "notifyNext",
          value: function notifyNext() {
            this.hasValue = true;

            if (this.innerSubscription) {
              this.innerSubscription.unsubscribe();
            }
          }
        }, {
          key: "notifyComplete",
          value: function notifyComplete() {}
        }]);

        return SkipUntilSubscriber;
      }(_innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["SimpleOuterSubscriber"]); //# sourceMappingURL=skipUntil.js.map

      /***/

    },

    /***/
    "w1tV": function w1tV(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "share", function () {
        return share;
      });
      /* harmony import */


      var _multicast__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ./multicast */
      "oB13");
      /* harmony import */


      var _refCount__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ./refCount */
      "x+ZX");
      /* harmony import */


      var _Subject__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../Subject */
      "XNiG");

      function shareSubjectFactory() {
        return new _Subject__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
      }

      function share() {
        return function (source) {
          return Object(_refCount__WEBPACK_IMPORTED_MODULE_1__["refCount"])()(Object(_multicast__WEBPACK_IMPORTED_MODULE_0__["multicast"])(shareSubjectFactory)(source));
        };
      } //# sourceMappingURL=share.js.map

      /***/

    },

    /***/
    "w3Pf": function w3Pf(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return isThisQuarter;
      });
      /* harmony import */


      var _isSameQuarter_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../isSameQuarter/index.js */
      "TGAR");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name isThisQuarter
       * @category Quarter Helpers
       * @summary Is the given date in the same quarter as the current date?
       * @pure false
       *
       * @description
       * Is the given date in the same quarter as the current date?
       *
       * > ⚠️ Please note that this function is not present in the FP submodule as
       * > it uses `Date.now()` internally hence impure and can't be safely curried.
       *
       * ### 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 {Date|Number} date - the date to check
       * @returns {Boolean} the date is in this quarter
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // If today is 25 September 2014, is 2 July 2014 in this quarter?
       * var result = isThisQuarter(new Date(2014, 6, 2))
       * //=> true
       */


      function isThisQuarter(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        return Object(_isSameQuarter_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Date.now(), dirtyDate);
      }
      /***/

    },

    /***/
    "w3qX": function w3qX(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "maxTime", function () {
        return maxTime;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "minTime", function () {
        return minTime;
      });
      /**
       *  Maximum allowed time.
       *  @constant
       *  @type {number}
       *  @default
       */


      var maxTime = Math.pow(10, 8) * 24 * 60 * 60 * 1000;
      /**
       *  Minimum allowed time.
       *  @constant
       *  @type {number}
       *  @default
       */

      var minTime = -maxTime;
      /***/
    },

    /***/
    "w7YG": function w7YG(module, exports, __webpack_require__) {
      ;

      (function (root, factory, undef) {
        if (true) {
          // CommonJS
          module.exports = exports = factory(__webpack_require__(
          /*! ./core */
          "Ib8C"), __webpack_require__(
          /*! ./enc-base64 */
          "ETIr"), __webpack_require__(
          /*! ./md5 */
          "cv67"), __webpack_require__(
          /*! ./evpkdf */
          "K3mO"), __webpack_require__(
          /*! ./cipher-core */
          "OLod"));
        } else {}
      })(this, function (CryptoJS) {
        (function () {
          // Shortcuts
          var C = CryptoJS;
          var C_lib = C.lib;
          var StreamCipher = C_lib.StreamCipher;
          var C_algo = C.algo;
          /**
           * RC4 stream cipher algorithm.
           */

          var RC4 = C_algo.RC4 = StreamCipher.extend({
            _doReset: function _doReset() {
              // Shortcuts
              var key = this._key;
              var keyWords = key.words;
              var keySigBytes = key.sigBytes; // Init sbox

              var S = this._S = [];

              for (var i = 0; i < 256; i++) {
                S[i] = i;
              } // Key setup


              for (var i = 0, j = 0; i < 256; i++) {
                var keyByteIndex = i % keySigBytes;
                var keyByte = keyWords[keyByteIndex >>> 2] >>> 24 - keyByteIndex % 4 * 8 & 0xff;
                j = (j + S[i] + keyByte) % 256; // Swap

                var t = S[i];
                S[i] = S[j];
                S[j] = t;
              } // Counters


              this._i = this._j = 0;
            },
            _doProcessBlock: function _doProcessBlock(M, offset) {
              M[offset] ^= generateKeystreamWord.call(this);
            },
            keySize: 256 / 32,
            ivSize: 0
          });

          function generateKeystreamWord() {
            // Shortcuts
            var S = this._S;
            var i = this._i;
            var j = this._j; // Generate keystream word

            var keystreamWord = 0;

            for (var n = 0; n < 4; n++) {
              i = (i + 1) % 256;
              j = (j + S[i]) % 256; // Swap

              var t = S[i];
              S[i] = S[j];
              S[j] = t;
              keystreamWord |= S[(S[i] + S[j]) % 256] << 24 - n * 8;
            } // Update counters


            this._i = i;
            this._j = j;
            return keystreamWord;
          }
          /**
           * Shortcut functions to the cipher's object interface.
           *
           * @example
           *
           *     var ciphertext = CryptoJS.RC4.encrypt(message, key, cfg);
           *     var plaintext  = CryptoJS.RC4.decrypt(ciphertext, key, cfg);
           */


          C.RC4 = StreamCipher._createHelper(RC4);
          /**
           * Modified RC4 stream cipher algorithm.
           */

          var RC4Drop = C_algo.RC4Drop = RC4.extend({
            /**
             * Configuration options.
             *
             * @property {number} drop The number of keystream words to drop. Default 192
             */
            cfg: RC4.cfg.extend({
              drop: 192
            }),
            _doReset: function _doReset() {
              RC4._doReset.call(this); // Drop


              for (var i = this.cfg.drop; i > 0; i--) {
                generateKeystreamWord.call(this);
              }
            }
          });
          /**
           * Shortcut functions to the cipher's object interface.
           *
           * @example
           *
           *     var ciphertext = CryptoJS.RC4Drop.encrypt(message, key, cfg);
           *     var plaintext  = CryptoJS.RC4Drop.decrypt(ciphertext, key, cfg);
           */

          C.RC4Drop = StreamCipher._createHelper(RC4Drop);
        })();

        return CryptoJS.RC4;
      });
      /***/

    },

    /***/
    "wK6H": function wK6H(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return isFirstDayOfMonth;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name isFirstDayOfMonth
       * @category Month Helpers
       * @summary Is the given date the first day of a month?
       *
       * @description
       * Is the given date the first day of a month?
       *
       * ### 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 {Date|Number} date - the date to check
       * @returns {Boolean} the date is the first day of a month
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // Is 1 September 2014 the first day of a month?
       * var result = isFirstDayOfMonth(new Date(2014, 8, 1))
       * //=> true
       */


      function isFirstDayOfMonth(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        return Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate).getDate() === 1;
      }
      /***/

    },

    /***/
    "wO+i": function wOI(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "pluck", function () {
        return pluck;
      });
      /* harmony import */


      var _map__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ./map */
      "lJxs");

      function pluck() {
        for (var _len76 = arguments.length, properties = new Array(_len76), _key79 = 0; _key79 < _len76; _key79++) {
          properties[_key79] = arguments[_key79];
        }

        var length = properties.length;

        if (length === 0) {
          throw new Error('list of properties cannot be empty.');
        }

        return function (source) {
          return Object(_map__WEBPACK_IMPORTED_MODULE_0__["map"])(plucker(properties, length))(source);
        };
      }

      function plucker(props, length) {
        var mapper = function mapper(x) {
          var currentProp = x;

          for (var i = 0; i < length; i++) {
            var p = currentProp != null ? currentProp[props[i]] : undefined;

            if (p !== void 0) {
              currentProp = p;
            } else {
              return undefined;
            }
          }

          return currentProp;
        };

        return mapper;
      } //# sourceMappingURL=pluck.js.map

      /***/

    },

    /***/
    "wQk9": function wQk9(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Central Atlas Tamazight [tzm]
      //! author : Abdel Said : https://github.com/abdelsaid
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var tzm = moment.defineLocale('tzm', {
          months: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
          monthsShort: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
          weekdays: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
          weekdaysShort: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
          weekdaysMin: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd D MMMM YYYY HH:mm'
          },
          calendar: {
            sameDay: '[ⴰⵙⴷⵅ ⴴ] LT',
            nextDay: '[ⴰⵙⴽⴰ ⴴ] LT',
            nextWeek: 'dddd [ⴴ] LT',
            lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT',
            lastWeek: 'dddd [ⴴ] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s',
            past: 'ⵢⴰⵏ %s',
            s: 'ⵉⵎⵉⴽ',
            ss: '%d ⵉⵎⵉⴽ',
            m: 'ⵎⵉⵏⵓⴺ',
            mm: '%d ⵎⵉⵏⵓⴺ',
            h: 'ⵙⴰⵄⴰ',
            hh: '%d ⵜⴰⵙⵙⴰⵄⵉⵏ',
            d: 'ⴰⵙⵙ',
            dd: '%d oⵙⵙⴰⵏ',
            M: 'ⴰⵢoⵓⵔ',
            MM: '%d ⵉⵢⵢⵉⵔⵏ',
            y: 'ⴰⵙⴳⴰⵙ',
            yy: '%d ⵉⵙⴳⴰⵙⵏ'
          },
          week: {
            dow: 6,
            // Saturday is the first day of the week.
            doy: 12 // The week that contains Jan 12th is the first week of the year.

          }
        });
        return tzm;
      });
      /***/

    },

    /***/
    "wQoA": function wQoA(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return lastDayOfYear;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name lastDayOfYear
       * @category Year Helpers
       * @summary Return the last day of a year for the given date.
       *
       * @description
       * Return the last day of a year for the given date.
       * The result will be in the local timezone.
       *
       * ### 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 {Date|Number} date - the original date
       * @returns {Date} the last day of a year
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // The last day of a year for 2 September 2014 11:55:00:
       * var result = lastDayOfYear(new Date(2014, 8, 2, 11, 55, 00))
       * //=> Wed Dec 31 2014 00:00:00
       */


      function lastDayOfYear(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);
        var year = date.getFullYear();
        date.setFullYear(year + 1, 0, 0);
        date.setHours(0, 0, 0, 0);
        return date;
      }
      /***/

    },

    /***/
    "wTf+": function wTf(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return isMonday;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name isMonday
       * @category Weekday Helpers
       * @summary Is the given date Monday?
       *
       * @description
       * Is the given date Monday?
       *
       * ### 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 {Date|Number} date - the date to check
       * @returns {Boolean} the date is Monday
       * @throws {TypeError} 1 argument required
       *
       * @example
       * // Is 22 September 2014 Monday?
       * var result = isMonday(new Date(2014, 8, 22))
       * //=> true
       */


      function isMonday(dirtyDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments);
        return Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate).getDay() === 1;
      }
      /***/

    },

    /***/
    "wXd3": function wXd3(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return setSeconds;
      });
      /* harmony import */


      var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../_lib/toInteger/index.js */
      "/h9T");
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name setSeconds
       * @category Second Helpers
       * @summary Set the seconds to the given date.
       *
       * @description
       * Set the seconds to the given date.
       *
       * ### 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 {Date|Number} date - the date to be changed
       * @param {Number} seconds - the seconds of the new date
       * @returns {Date} the new date with the seconds set
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // Set 45 seconds to 1 September 2014 11:30:40:
       * var result = setSeconds(new Date(2014, 8, 1, 11, 30, 40), 45)
       * //=> Mon Sep 01 2014 11:30:45
       */


      function setSeconds(dirtyDate, dirtySeconds) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(2, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate);
        var seconds = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtySeconds);
        date.setSeconds(seconds);
        return date;
      }
      /***/

    },

    /***/
    "wZgz": function wZgz(module, exports, __webpack_require__) {
      ;

      (function (root, factory, undef) {
        if (true) {
          // CommonJS
          module.exports = exports = factory(__webpack_require__(
          /*! ./core */
          "Ib8C"), __webpack_require__(
          /*! ./enc-base64 */
          "ETIr"), __webpack_require__(
          /*! ./md5 */
          "cv67"), __webpack_require__(
          /*! ./evpkdf */
          "K3mO"), __webpack_require__(
          /*! ./cipher-core */
          "OLod"));
        } else {}
      })(this, function (CryptoJS) {
        (function () {
          // Shortcuts
          var C = CryptoJS;
          var C_lib = C.lib;
          var BlockCipher = C_lib.BlockCipher;
          var C_algo = C.algo; // Lookup tables

          var SBOX = [];
          var INV_SBOX = [];
          var SUB_MIX_0 = [];
          var SUB_MIX_1 = [];
          var SUB_MIX_2 = [];
          var SUB_MIX_3 = [];
          var INV_SUB_MIX_0 = [];
          var INV_SUB_MIX_1 = [];
          var INV_SUB_MIX_2 = [];
          var INV_SUB_MIX_3 = []; // Compute lookup tables

          (function () {
            // Compute double table
            var d = [];

            for (var i = 0; i < 256; i++) {
              if (i < 128) {
                d[i] = i << 1;
              } else {
                d[i] = i << 1 ^ 0x11b;
              }
            } // Walk GF(2^8)


            var x = 0;
            var xi = 0;

            for (var i = 0; i < 256; i++) {
              // Compute sbox
              var sx = xi ^ xi << 1 ^ xi << 2 ^ xi << 3 ^ xi << 4;
              sx = sx >>> 8 ^ sx & 0xff ^ 0x63;
              SBOX[x] = sx;
              INV_SBOX[sx] = x; // Compute multiplication

              var x2 = d[x];
              var x4 = d[x2];
              var x8 = d[x4]; // Compute sub bytes, mix columns tables

              var t = d[sx] * 0x101 ^ sx * 0x1010100;
              SUB_MIX_0[x] = t << 24 | t >>> 8;
              SUB_MIX_1[x] = t << 16 | t >>> 16;
              SUB_MIX_2[x] = t << 8 | t >>> 24;
              SUB_MIX_3[x] = t; // Compute inv sub bytes, inv mix columns tables

              var t = x8 * 0x1010101 ^ x4 * 0x10001 ^ x2 * 0x101 ^ x * 0x1010100;
              INV_SUB_MIX_0[sx] = t << 24 | t >>> 8;
              INV_SUB_MIX_1[sx] = t << 16 | t >>> 16;
              INV_SUB_MIX_2[sx] = t << 8 | t >>> 24;
              INV_SUB_MIX_3[sx] = t; // Compute next counter

              if (!x) {
                x = xi = 1;
              } else {
                x = x2 ^ d[d[d[x8 ^ x2]]];
                xi ^= d[d[xi]];
              }
            }
          })(); // Precomputed Rcon lookup


          var RCON = [0x00, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36];
          /**
           * AES block cipher algorithm.
           */

          var AES = C_algo.AES = BlockCipher.extend({
            _doReset: function _doReset() {
              var t; // Skip reset of nRounds has been set before and key did not change

              if (this._nRounds && this._keyPriorReset === this._key) {
                return;
              } // Shortcuts


              var key = this._keyPriorReset = this._key;
              var keyWords = key.words;
              var keySize = key.sigBytes / 4; // Compute number of rounds

              var nRounds = this._nRounds = keySize + 6; // Compute number of key schedule rows

              var ksRows = (nRounds + 1) * 4; // Compute key schedule

              var keySchedule = this._keySchedule = [];

              for (var ksRow = 0; ksRow < ksRows; ksRow++) {
                if (ksRow < keySize) {
                  keySchedule[ksRow] = keyWords[ksRow];
                } else {
                  t = keySchedule[ksRow - 1];

                  if (!(ksRow % keySize)) {
                    // Rot word
                    t = t << 8 | t >>> 24; // Sub word

                    t = SBOX[t >>> 24] << 24 | SBOX[t >>> 16 & 0xff] << 16 | SBOX[t >>> 8 & 0xff] << 8 | SBOX[t & 0xff]; // Mix Rcon

                    t ^= RCON[ksRow / keySize | 0] << 24;
                  } else if (keySize > 6 && ksRow % keySize == 4) {
                    // Sub word
                    t = SBOX[t >>> 24] << 24 | SBOX[t >>> 16 & 0xff] << 16 | SBOX[t >>> 8 & 0xff] << 8 | SBOX[t & 0xff];
                  }

                  keySchedule[ksRow] = keySchedule[ksRow - keySize] ^ t;
                }
              } // Compute inv key schedule


              var invKeySchedule = this._invKeySchedule = [];

              for (var invKsRow = 0; invKsRow < ksRows; invKsRow++) {
                var ksRow = ksRows - invKsRow;

                if (invKsRow % 4) {
                  var t = keySchedule[ksRow];
                } else {
                  var t = keySchedule[ksRow - 4];
                }

                if (invKsRow < 4 || ksRow <= 4) {
                  invKeySchedule[invKsRow] = t;
                } else {
                  invKeySchedule[invKsRow] = INV_SUB_MIX_0[SBOX[t >>> 24]] ^ INV_SUB_MIX_1[SBOX[t >>> 16 & 0xff]] ^ INV_SUB_MIX_2[SBOX[t >>> 8 & 0xff]] ^ INV_SUB_MIX_3[SBOX[t & 0xff]];
                }
              }
            },
            encryptBlock: function encryptBlock(M, offset) {
              this._doCryptBlock(M, offset, this._keySchedule, SUB_MIX_0, SUB_MIX_1, SUB_MIX_2, SUB_MIX_3, SBOX);
            },
            decryptBlock: function decryptBlock(M, offset) {
              // Swap 2nd and 4th rows
              var t = M[offset + 1];
              M[offset + 1] = M[offset + 3];
              M[offset + 3] = t;

              this._doCryptBlock(M, offset, this._invKeySchedule, INV_SUB_MIX_0, INV_SUB_MIX_1, INV_SUB_MIX_2, INV_SUB_MIX_3, INV_SBOX); // Inv swap 2nd and 4th rows


              var t = M[offset + 1];
              M[offset + 1] = M[offset + 3];
              M[offset + 3] = t;
            },
            _doCryptBlock: function _doCryptBlock(M, offset, keySchedule, SUB_MIX_0, SUB_MIX_1, SUB_MIX_2, SUB_MIX_3, SBOX) {
              // Shortcut
              var nRounds = this._nRounds; // Get input, add round key

              var s0 = M[offset] ^ keySchedule[0];
              var s1 = M[offset + 1] ^ keySchedule[1];
              var s2 = M[offset + 2] ^ keySchedule[2];
              var s3 = M[offset + 3] ^ keySchedule[3]; // Key schedule row counter

              var ksRow = 4; // Rounds

              for (var round = 1; round < nRounds; round++) {
                // Shift rows, sub bytes, mix columns, add round key
                var t0 = SUB_MIX_0[s0 >>> 24] ^ SUB_MIX_1[s1 >>> 16 & 0xff] ^ SUB_MIX_2[s2 >>> 8 & 0xff] ^ SUB_MIX_3[s3 & 0xff] ^ keySchedule[ksRow++];
                var t1 = SUB_MIX_0[s1 >>> 24] ^ SUB_MIX_1[s2 >>> 16 & 0xff] ^ SUB_MIX_2[s3 >>> 8 & 0xff] ^ SUB_MIX_3[s0 & 0xff] ^ keySchedule[ksRow++];
                var t2 = SUB_MIX_0[s2 >>> 24] ^ SUB_MIX_1[s3 >>> 16 & 0xff] ^ SUB_MIX_2[s0 >>> 8 & 0xff] ^ SUB_MIX_3[s1 & 0xff] ^ keySchedule[ksRow++];
                var t3 = SUB_MIX_0[s3 >>> 24] ^ SUB_MIX_1[s0 >>> 16 & 0xff] ^ SUB_MIX_2[s1 >>> 8 & 0xff] ^ SUB_MIX_3[s2 & 0xff] ^ keySchedule[ksRow++]; // Update state

                s0 = t0;
                s1 = t1;
                s2 = t2;
                s3 = t3;
              } // Shift rows, sub bytes, add round key


              var t0 = (SBOX[s0 >>> 24] << 24 | SBOX[s1 >>> 16 & 0xff] << 16 | SBOX[s2 >>> 8 & 0xff] << 8 | SBOX[s3 & 0xff]) ^ keySchedule[ksRow++];
              var t1 = (SBOX[s1 >>> 24] << 24 | SBOX[s2 >>> 16 & 0xff] << 16 | SBOX[s3 >>> 8 & 0xff] << 8 | SBOX[s0 & 0xff]) ^ keySchedule[ksRow++];
              var t2 = (SBOX[s2 >>> 24] << 24 | SBOX[s3 >>> 16 & 0xff] << 16 | SBOX[s0 >>> 8 & 0xff] << 8 | SBOX[s1 & 0xff]) ^ keySchedule[ksRow++];
              var t3 = (SBOX[s3 >>> 24] << 24 | SBOX[s0 >>> 16 & 0xff] << 16 | SBOX[s1 >>> 8 & 0xff] << 8 | SBOX[s2 & 0xff]) ^ keySchedule[ksRow++]; // Set output

              M[offset] = t0;
              M[offset + 1] = t1;
              M[offset + 2] = t2;
              M[offset + 3] = t3;
            },
            keySize: 256 / 32
          });
          /**
           * Shortcut functions to the cipher's object interface.
           *
           * @example
           *
           *     var ciphertext = CryptoJS.AES.encrypt(message, key, cfg);
           *     var plaintext  = CryptoJS.AES.decrypt(ciphertext, key, cfg);
           */

          C.AES = BlockCipher._createHelper(AES);
        })();

        return CryptoJS.AES;
      });
      /***/

    },

    /***/
    "wbyO": function wbyO(module, exports, __webpack_require__) {
      ;

      (function (root, factory) {
        if (true) {
          // CommonJS
          module.exports = exports = factory(__webpack_require__(
          /*! ./core */
          "Ib8C"));
        } else {}
      })(this, function (CryptoJS) {
        (function () {
          // Shortcuts
          var C = CryptoJS;
          var C_lib = C.lib;
          var WordArray = C_lib.WordArray;
          var C_enc = C.enc;
          /**
           * Base64url encoding strategy.
           */

          var Base64url = C_enc.Base64url = {
            /**
             * Converts a word array to a Base64url string.
             *
             * @param {WordArray} wordArray The word array.
             *
             * @param {boolean} urlSafe Whether to use url safe
             *
             * @return {string} The Base64url string.
             *
             * @static
             *
             * @example
             *
             *     var base64String = CryptoJS.enc.Base64url.stringify(wordArray);
             */
            stringify: function stringify(wordArray) {
              var urlSafe = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
              // Shortcuts
              var words = wordArray.words;
              var sigBytes = wordArray.sigBytes;
              var map = urlSafe ? this._safe_map : this._map; // Clamp excess bits

              wordArray.clamp(); // Convert

              var base64Chars = [];

              for (var i = 0; i < sigBytes; i += 3) {
                var byte1 = words[i >>> 2] >>> 24 - i % 4 * 8 & 0xff;
                var byte2 = words[i + 1 >>> 2] >>> 24 - (i + 1) % 4 * 8 & 0xff;
                var byte3 = words[i + 2 >>> 2] >>> 24 - (i + 2) % 4 * 8 & 0xff;
                var triplet = byte1 << 16 | byte2 << 8 | byte3;

                for (var j = 0; j < 4 && i + j * 0.75 < sigBytes; j++) {
                  base64Chars.push(map.charAt(triplet >>> 6 * (3 - j) & 0x3f));
                }
              } // Add padding


              var paddingChar = map.charAt(64);

              if (paddingChar) {
                while (base64Chars.length % 4) {
                  base64Chars.push(paddingChar);
                }
              }

              return base64Chars.join('');
            },

            /**
             * Converts a Base64url string to a word array.
             *
             * @param {string} base64Str The Base64url string.
             *
             * @param {boolean} urlSafe Whether to use url safe
             *
             * @return {WordArray} The word array.
             *
             * @static
             *
             * @example
             *
             *     var wordArray = CryptoJS.enc.Base64url.parse(base64String);
             */
            parse: function parse(base64Str) {
              var urlSafe = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
              // Shortcuts
              var base64StrLength = base64Str.length;
              var map = urlSafe ? this._safe_map : this._map;
              var reverseMap = this._reverseMap;

              if (!reverseMap) {
                reverseMap = this._reverseMap = [];

                for (var j = 0; j < map.length; j++) {
                  reverseMap[map.charCodeAt(j)] = j;
                }
              } // Ignore padding


              var paddingChar = map.charAt(64);

              if (paddingChar) {
                var paddingIndex = base64Str.indexOf(paddingChar);

                if (paddingIndex !== -1) {
                  base64StrLength = paddingIndex;
                }
              } // Convert


              return parseLoop(base64Str, base64StrLength, reverseMap);
            },
            _map: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=',
            _safe_map: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_'
          };

          function parseLoop(base64Str, base64StrLength, reverseMap) {
            var words = [];
            var nBytes = 0;

            for (var i = 0; i < base64StrLength; i++) {
              if (i % 4) {
                var bits1 = reverseMap[base64Str.charCodeAt(i - 1)] << i % 4 * 2;
                var bits2 = reverseMap[base64Str.charCodeAt(i)] >>> 6 - i % 4 * 2;
                var bitsCombined = bits1 | bits2;
                words[nBytes >>> 2] |= bitsCombined << 24 - nBytes % 4 * 8;
                nBytes++;
              }
            }

            return WordArray.create(words, nBytes);
          }
        })();

        return CryptoJS.enc.Base64url;
      });
      /***/

    },

    /***/
    "wd/R": function wdR(module, exports, __webpack_require__) {
      /* WEBPACK VAR INJECTION */
      (function (module) {
        var require; //! moment.js
        //! version : 2.29.1
        //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
        //! license : MIT
        //! momentjs.com


        ;

        (function (global, factory) {
          true ? module.exports = factory() : undefined;
        })(this, function () {
          'use strict';

          var hookCallback;

          function hooks() {
            return hookCallback.apply(null, arguments);
          } // This is done to register the method called with moment()
          // without creating circular dependencies.


          function setHookCallback(callback) {
            hookCallback = callback;
          }

          function isArray(input) {
            return input instanceof Array || Object.prototype.toString.call(input) === '[object Array]';
          }

          function isObject(input) {
            // IE8 will treat undefined and null as object if it wasn't for
            // input != null
            return input != null && Object.prototype.toString.call(input) === '[object Object]';
          }

          function hasOwnProp(a, b) {
            return Object.prototype.hasOwnProperty.call(a, b);
          }

          function isObjectEmpty(obj) {
            if (Object.getOwnPropertyNames) {
              return Object.getOwnPropertyNames(obj).length === 0;
            } else {
              var k;

              for (k in obj) {
                if (hasOwnProp(obj, k)) {
                  return false;
                }
              }

              return true;
            }
          }

          function isUndefined(input) {
            return input === void 0;
          }

          function isNumber(input) {
            return typeof input === 'number' || Object.prototype.toString.call(input) === '[object Number]';
          }

          function isDate(input) {
            return input instanceof Date || Object.prototype.toString.call(input) === '[object Date]';
          }

          function map(arr, fn) {
            var res = [],
                i;

            for (i = 0; i < arr.length; ++i) {
              res.push(fn(arr[i], i));
            }

            return res;
          }

          function extend(a, b) {
            for (var i in b) {
              if (hasOwnProp(b, i)) {
                a[i] = b[i];
              }
            }

            if (hasOwnProp(b, 'toString')) {
              a.toString = b.toString;
            }

            if (hasOwnProp(b, 'valueOf')) {
              a.valueOf = b.valueOf;
            }

            return a;
          }

          function createUTC(input, format, locale, strict) {
            return createLocalOrUTC(input, format, locale, strict, true).utc();
          }

          function defaultParsingFlags() {
            // We need to deep clone this object.
            return {
              empty: false,
              unusedTokens: [],
              unusedInput: [],
              overflow: -2,
              charsLeftOver: 0,
              nullInput: false,
              invalidEra: null,
              invalidMonth: null,
              invalidFormat: false,
              userInvalidated: false,
              iso: false,
              parsedDateParts: [],
              era: null,
              meridiem: null,
              rfc2822: false,
              weekdayMismatch: false
            };
          }

          function getParsingFlags(m) {
            if (m._pf == null) {
              m._pf = defaultParsingFlags();
            }

            return m._pf;
          }

          var some;

          if (Array.prototype.some) {
            some = Array.prototype.some;
          } else {
            some = function some(fun) {
              var t = Object(this),
                  len = t.length >>> 0,
                  i;

              for (i = 0; i < len; i++) {
                if (i in t && fun.call(this, t[i], i, t)) {
                  return true;
                }
              }

              return false;
            };
          }

          function isValid(m) {
            if (m._isValid == null) {
              var flags = getParsingFlags(m),
                  parsedParts = some.call(flags.parsedDateParts, function (i) {
                return i != null;
              }),
                  isNowValid = !isNaN(m._d.getTime()) && flags.overflow < 0 && !flags.empty && !flags.invalidEra && !flags.invalidMonth && !flags.invalidWeekday && !flags.weekdayMismatch && !flags.nullInput && !flags.invalidFormat && !flags.userInvalidated && (!flags.meridiem || flags.meridiem && parsedParts);

              if (m._strict) {
                isNowValid = isNowValid && flags.charsLeftOver === 0 && flags.unusedTokens.length === 0 && flags.bigHour === undefined;
              }

              if (Object.isFrozen == null || !Object.isFrozen(m)) {
                m._isValid = isNowValid;
              } else {
                return isNowValid;
              }
            }

            return m._isValid;
          }

          function createInvalid(flags) {
            var m = createUTC(NaN);

            if (flags != null) {
              extend(getParsingFlags(m), flags);
            } else {
              getParsingFlags(m).userInvalidated = true;
            }

            return m;
          } // Plugins that add properties should also add the key here (null value),
          // so we can properly clone ourselves.


          var momentProperties = hooks.momentProperties = [],
              updateInProgress = false;

          function copyConfig(to, from) {
            var i, prop, val;

            if (!isUndefined(from._isAMomentObject)) {
              to._isAMomentObject = from._isAMomentObject;
            }

            if (!isUndefined(from._i)) {
              to._i = from._i;
            }

            if (!isUndefined(from._f)) {
              to._f = from._f;
            }

            if (!isUndefined(from._l)) {
              to._l = from._l;
            }

            if (!isUndefined(from._strict)) {
              to._strict = from._strict;
            }

            if (!isUndefined(from._tzm)) {
              to._tzm = from._tzm;
            }

            if (!isUndefined(from._isUTC)) {
              to._isUTC = from._isUTC;
            }

            if (!isUndefined(from._offset)) {
              to._offset = from._offset;
            }

            if (!isUndefined(from._pf)) {
              to._pf = getParsingFlags(from);
            }

            if (!isUndefined(from._locale)) {
              to._locale = from._locale;
            }

            if (momentProperties.length > 0) {
              for (i = 0; i < momentProperties.length; i++) {
                prop = momentProperties[i];
                val = from[prop];

                if (!isUndefined(val)) {
                  to[prop] = val;
                }
              }
            }

            return to;
          } // Moment prototype object


          function Moment(config) {
            copyConfig(this, config);
            this._d = new Date(config._d != null ? config._d.getTime() : NaN);

            if (!this.isValid()) {
              this._d = new Date(NaN);
            } // Prevent infinite loop in case updateOffset creates new moment
            // objects.


            if (updateInProgress === false) {
              updateInProgress = true;
              hooks.updateOffset(this);
              updateInProgress = false;
            }
          }

          function isMoment(obj) {
            return obj instanceof Moment || obj != null && obj._isAMomentObject != null;
          }

          function warn(msg) {
            if (hooks.suppressDeprecationWarnings === false && typeof console !== 'undefined' && console.warn) {
              console.warn('Deprecation warning: ' + msg);
            }
          }

          function deprecate(msg, fn) {
            var firstTime = true;
            return extend(function () {
              if (hooks.deprecationHandler != null) {
                hooks.deprecationHandler(null, msg);
              }

              if (firstTime) {
                var args = [],
                    arg,
                    i,
                    key;

                for (i = 0; i < arguments.length; i++) {
                  arg = '';

                  if (typeof arguments[i] === 'object') {
                    arg += '\n[' + i + '] ';

                    for (key in arguments[0]) {
                      if (hasOwnProp(arguments[0], key)) {
                        arg += key + ': ' + arguments[0][key] + ', ';
                      }
                    }

                    arg = arg.slice(0, -2); // Remove trailing comma and space
                  } else {
                    arg = arguments[i];
                  }

                  args.push(arg);
                }

                warn(msg + '\nArguments: ' + Array.prototype.slice.call(args).join('') + '\n' + new Error().stack);
                firstTime = false;
              }

              return fn.apply(this, arguments);
            }, fn);
          }

          var deprecations = {};

          function deprecateSimple(name, msg) {
            if (hooks.deprecationHandler != null) {
              hooks.deprecationHandler(name, msg);
            }

            if (!deprecations[name]) {
              warn(msg);
              deprecations[name] = true;
            }
          }

          hooks.suppressDeprecationWarnings = false;
          hooks.deprecationHandler = null;

          function isFunction(input) {
            return typeof Function !== 'undefined' && input instanceof Function || Object.prototype.toString.call(input) === '[object Function]';
          }

          function set(config) {
            var prop, i;

            for (i in config) {
              if (hasOwnProp(config, i)) {
                prop = config[i];

                if (isFunction(prop)) {
                  this[i] = prop;
                } else {
                  this['_' + i] = prop;
                }
              }
            }

            this._config = config; // Lenient ordinal parsing accepts just a number in addition to
            // number + (possibly) stuff coming from _dayOfMonthOrdinalParse.
            // TODO: Remove "ordinalParse" fallback in next major release.

            this._dayOfMonthOrdinalParseLenient = new RegExp((this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + '|' + /\d{1,2}/.source);
          }

          function mergeConfigs(parentConfig, childConfig) {
            var res = extend({}, parentConfig),
                prop;

            for (prop in childConfig) {
              if (hasOwnProp(childConfig, prop)) {
                if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) {
                  res[prop] = {};
                  extend(res[prop], parentConfig[prop]);
                  extend(res[prop], childConfig[prop]);
                } else if (childConfig[prop] != null) {
                  res[prop] = childConfig[prop];
                } else {
                  delete res[prop];
                }
              }
            }

            for (prop in parentConfig) {
              if (hasOwnProp(parentConfig, prop) && !hasOwnProp(childConfig, prop) && isObject(parentConfig[prop])) {
                // make sure changes to properties don't modify parent config
                res[prop] = extend({}, res[prop]);
              }
            }

            return res;
          }

          function Locale(config) {
            if (config != null) {
              this.set(config);
            }
          }

          var keys;

          if (Object.keys) {
            keys = Object.keys;
          } else {
            keys = function keys(obj) {
              var i,
                  res = [];

              for (i in obj) {
                if (hasOwnProp(obj, i)) {
                  res.push(i);
                }
              }

              return res;
            };
          }

          var defaultCalendar = {
            sameDay: '[Today at] LT',
            nextDay: '[Tomorrow at] LT',
            nextWeek: 'dddd [at] LT',
            lastDay: '[Yesterday at] LT',
            lastWeek: '[Last] dddd [at] LT',
            sameElse: 'L'
          };

          function calendar(key, mom, now) {
            var output = this._calendar[key] || this._calendar['sameElse'];
            return isFunction(output) ? output.call(mom, now) : output;
          }

          function zeroFill(number, targetLength, forceSign) {
            var absNumber = '' + Math.abs(number),
                zerosToFill = targetLength - absNumber.length,
                sign = number >= 0;
            return (sign ? forceSign ? '+' : '' : '-') + Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) + absNumber;
          }

          var formattingTokens = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,
              localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,
              formatFunctions = {},
              formatTokenFunctions = {}; // token:    'M'
          // padded:   ['MM', 2]
          // ordinal:  'Mo'
          // callback: function () { this.month() + 1 }

          function addFormatToken(token, padded, ordinal, callback) {
            var func = callback;

            if (typeof callback === 'string') {
              func = function func() {
                return this[callback]();
              };
            }

            if (token) {
              formatTokenFunctions[token] = func;
            }

            if (padded) {
              formatTokenFunctions[padded[0]] = function () {
                return zeroFill(func.apply(this, arguments), padded[1], padded[2]);
              };
            }

            if (ordinal) {
              formatTokenFunctions[ordinal] = function () {
                return this.localeData().ordinal(func.apply(this, arguments), token);
              };
            }
          }

          function removeFormattingTokens(input) {
            if (input.match(/\[[\s\S]/)) {
              return input.replace(/^\[|\]$/g, '');
            }

            return input.replace(/\\/g, '');
          }

          function makeFormatFunction(format) {
            var array = format.match(formattingTokens),
                i,
                length;

            for (i = 0, length = array.length; i < length; i++) {
              if (formatTokenFunctions[array[i]]) {
                array[i] = formatTokenFunctions[array[i]];
              } else {
                array[i] = removeFormattingTokens(array[i]);
              }
            }

            return function (mom) {
              var output = '',
                  i;

              for (i = 0; i < length; i++) {
                output += isFunction(array[i]) ? array[i].call(mom, format) : array[i];
              }

              return output;
            };
          } // format date using native date object


          function formatMoment(m, format) {
            if (!m.isValid()) {
              return m.localeData().invalidDate();
            }

            format = expandFormat(format, m.localeData());
            formatFunctions[format] = formatFunctions[format] || makeFormatFunction(format);
            return formatFunctions[format](m);
          }

          function expandFormat(format, locale) {
            var i = 5;

            function replaceLongDateFormatTokens(input) {
              return locale.longDateFormat(input) || input;
            }

            localFormattingTokens.lastIndex = 0;

            while (i >= 0 && localFormattingTokens.test(format)) {
              format = format.replace(localFormattingTokens, replaceLongDateFormatTokens);
              localFormattingTokens.lastIndex = 0;
              i -= 1;
            }

            return format;
          }

          var defaultLongDateFormat = {
            LTS: 'h:mm:ss A',
            LT: 'h:mm A',
            L: 'MM/DD/YYYY',
            LL: 'MMMM D, YYYY',
            LLL: 'MMMM D, YYYY h:mm A',
            LLLL: 'dddd, MMMM D, YYYY h:mm A'
          };

          function longDateFormat(key) {
            var format = this._longDateFormat[key],
                formatUpper = this._longDateFormat[key.toUpperCase()];

            if (format || !formatUpper) {
              return format;
            }

            this._longDateFormat[key] = formatUpper.match(formattingTokens).map(function (tok) {
              if (tok === 'MMMM' || tok === 'MM' || tok === 'DD' || tok === 'dddd') {
                return tok.slice(1);
              }

              return tok;
            }).join('');
            return this._longDateFormat[key];
          }

          var defaultInvalidDate = 'Invalid date';

          function invalidDate() {
            return this._invalidDate;
          }

          var defaultOrdinal = '%d',
              defaultDayOfMonthOrdinalParse = /\d{1,2}/;

          function ordinal(number) {
            return this._ordinal.replace('%d', number);
          }

          var defaultRelativeTime = {
            future: 'in %s',
            past: '%s ago',
            s: 'a few seconds',
            ss: '%d seconds',
            m: 'a minute',
            mm: '%d minutes',
            h: 'an hour',
            hh: '%d hours',
            d: 'a day',
            dd: '%d days',
            w: 'a week',
            ww: '%d weeks',
            M: 'a month',
            MM: '%d months',
            y: 'a year',
            yy: '%d years'
          };

          function relativeTime(number, withoutSuffix, string, isFuture) {
            var output = this._relativeTime[string];
            return isFunction(output) ? output(number, withoutSuffix, string, isFuture) : output.replace(/%d/i, number);
          }

          function pastFuture(diff, output) {
            var format = this._relativeTime[diff > 0 ? 'future' : 'past'];
            return isFunction(format) ? format(output) : format.replace(/%s/i, output);
          }

          var aliases = {};

          function addUnitAlias(unit, shorthand) {
            var lowerCase = unit.toLowerCase();
            aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit;
          }

          function normalizeUnits(units) {
            return typeof units === 'string' ? aliases[units] || aliases[units.toLowerCase()] : undefined;
          }

          function normalizeObjectUnits(inputObject) {
            var normalizedInput = {},
                normalizedProp,
                prop;

            for (prop in inputObject) {
              if (hasOwnProp(inputObject, prop)) {
                normalizedProp = normalizeUnits(prop);

                if (normalizedProp) {
                  normalizedInput[normalizedProp] = inputObject[prop];
                }
              }
            }

            return normalizedInput;
          }

          var priorities = {};

          function addUnitPriority(unit, priority) {
            priorities[unit] = priority;
          }

          function getPrioritizedUnits(unitsObj) {
            var units = [],
                u;

            for (u in unitsObj) {
              if (hasOwnProp(unitsObj, u)) {
                units.push({
                  unit: u,
                  priority: priorities[u]
                });
              }
            }

            units.sort(function (a, b) {
              return a.priority - b.priority;
            });
            return units;
          }

          function isLeapYear(year) {
            return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0;
          }

          function absFloor(number) {
            if (number < 0) {
              // -0 -> 0
              return Math.ceil(number) || 0;
            } else {
              return Math.floor(number);
            }
          }

          function toInt(argumentForCoercion) {
            var coercedNumber = +argumentForCoercion,
                value = 0;

            if (coercedNumber !== 0 && isFinite(coercedNumber)) {
              value = absFloor(coercedNumber);
            }

            return value;
          }

          function makeGetSet(unit, keepTime) {
            return function (value) {
              if (value != null) {
                set$1(this, unit, value);
                hooks.updateOffset(this, keepTime);
                return this;
              } else {
                return get(this, unit);
              }
            };
          }

          function get(mom, unit) {
            return mom.isValid() ? mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]() : NaN;
          }

          function set$1(mom, unit, value) {
            if (mom.isValid() && !isNaN(value)) {
              if (unit === 'FullYear' && isLeapYear(mom.year()) && mom.month() === 1 && mom.date() === 29) {
                value = toInt(value);

                mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value, mom.month(), daysInMonth(value, mom.month()));
              } else {
                mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value);
              }
            }
          } // MOMENTS


          function stringGet(units) {
            units = normalizeUnits(units);

            if (isFunction(this[units])) {
              return this[units]();
            }

            return this;
          }

          function stringSet(units, value) {
            if (typeof units === 'object') {
              units = normalizeObjectUnits(units);
              var prioritized = getPrioritizedUnits(units),
                  i;

              for (i = 0; i < prioritized.length; i++) {
                this[prioritized[i].unit](units[prioritized[i].unit]);
              }
            } else {
              units = normalizeUnits(units);

              if (isFunction(this[units])) {
                return this[units](value);
              }
            }

            return this;
          }

          var match1 = /\d/,
              //       0 - 9
          match2 = /\d\d/,
              //      00 - 99
          match3 = /\d{3}/,
              //     000 - 999
          match4 = /\d{4}/,
              //    0000 - 9999
          match6 = /[+-]?\d{6}/,
              // -999999 - 999999
          match1to2 = /\d\d?/,
              //       0 - 99
          match3to4 = /\d\d\d\d?/,
              //     999 - 9999
          match5to6 = /\d\d\d\d\d\d?/,
              //   99999 - 999999
          match1to3 = /\d{1,3}/,
              //       0 - 999
          match1to4 = /\d{1,4}/,
              //       0 - 9999
          match1to6 = /[+-]?\d{1,6}/,
              // -999999 - 999999
          matchUnsigned = /\d+/,
              //       0 - inf
          matchSigned = /[+-]?\d+/,
              //    -inf - inf
          matchOffset = /Z|[+-]\d\d:?\d\d/gi,
              // +00:00 -00:00 +0000 -0000 or Z
          matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi,
              // +00 -00 +00:00 -00:00 +0000 -0000 or Z
          matchTimestamp = /[+-]?\d+(\.\d{1,3})?/,
              // 123456789 123456789.123
          // any word (or two) characters or numbers including two/three word month in arabic.
          // includes scottish gaelic two word and hyphenated months
          matchWord = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,
              regexes;
          regexes = {};

          function addRegexToken(token, regex, strictRegex) {
            regexes[token] = isFunction(regex) ? regex : function (isStrict, localeData) {
              return isStrict && strictRegex ? strictRegex : regex;
            };
          }

          function getParseRegexForToken(token, config) {
            if (!hasOwnProp(regexes, token)) {
              return new RegExp(unescapeFormat(token));
            }

            return regexes[token](config._strict, config._locale);
          } // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript


          function unescapeFormat(s) {
            return regexEscape(s.replace('\\', '').replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function (matched, p1, p2, p3, p4) {
              return p1 || p2 || p3 || p4;
            }));
          }

          function regexEscape(s) {
            return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
          }

          var tokens = {};

          function addParseToken(token, callback) {
            var i,
                func = callback;

            if (typeof token === 'string') {
              token = [token];
            }

            if (isNumber(callback)) {
              func = function func(input, array) {
                array[callback] = toInt(input);
              };
            }

            for (i = 0; i < token.length; i++) {
              tokens[token[i]] = func;
            }
          }

          function addWeekParseToken(token, callback) {
            addParseToken(token, function (input, array, config, token) {
              config._w = config._w || {};
              callback(input, config._w, config, token);
            });
          }

          function addTimeToArrayFromToken(token, input, config) {
            if (input != null && hasOwnProp(tokens, token)) {
              tokens[token](input, config._a, config, token);
            }
          }

          var YEAR = 0,
              MONTH = 1,
              DATE = 2,
              HOUR = 3,
              MINUTE = 4,
              SECOND = 5,
              MILLISECOND = 6,
              WEEK = 7,
              WEEKDAY = 8;

          function mod(n, x) {
            return (n % x + x) % x;
          }

          var indexOf;

          if (Array.prototype.indexOf) {
            indexOf = Array.prototype.indexOf;
          } else {
            indexOf = function indexOf(o) {
              // I know
              var i;

              for (i = 0; i < this.length; ++i) {
                if (this[i] === o) {
                  return i;
                }
              }

              return -1;
            };
          }

          function daysInMonth(year, month) {
            if (isNaN(year) || isNaN(month)) {
              return NaN;
            }

            var modMonth = mod(month, 12);
            year += (month - modMonth) / 12;
            return modMonth === 1 ? isLeapYear(year) ? 29 : 28 : 31 - modMonth % 7 % 2;
          } // FORMATTING


          addFormatToken('M', ['MM', 2], 'Mo', function () {
            return this.month() + 1;
          });
          addFormatToken('MMM', 0, 0, function (format) {
            return this.localeData().monthsShort(this, format);
          });
          addFormatToken('MMMM', 0, 0, function (format) {
            return this.localeData().months(this, format);
          }); // ALIASES

          addUnitAlias('month', 'M'); // PRIORITY

          addUnitPriority('month', 8); // PARSING

          addRegexToken('M', match1to2);
          addRegexToken('MM', match1to2, match2);
          addRegexToken('MMM', function (isStrict, locale) {
            return locale.monthsShortRegex(isStrict);
          });
          addRegexToken('MMMM', function (isStrict, locale) {
            return locale.monthsRegex(isStrict);
          });
          addParseToken(['M', 'MM'], function (input, array) {
            array[MONTH] = toInt(input) - 1;
          });
          addParseToken(['MMM', 'MMMM'], function (input, array, config, token) {
            var month = config._locale.monthsParse(input, token, config._strict); // if we didn't find a month name, mark the date as invalid.


            if (month != null) {
              array[MONTH] = month;
            } else {
              getParsingFlags(config).invalidMonth = input;
            }
          }); // LOCALES

          var defaultLocaleMonths = 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
              defaultLocaleMonthsShort = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
              MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,
              defaultMonthsShortRegex = matchWord,
              defaultMonthsRegex = matchWord;

          function localeMonths(m, format) {
            if (!m) {
              return isArray(this._months) ? this._months : this._months['standalone'];
            }

            return isArray(this._months) ? this._months[m.month()] : this._months[(this._months.isFormat || MONTHS_IN_FORMAT).test(format) ? 'format' : 'standalone'][m.month()];
          }

          function localeMonthsShort(m, format) {
            if (!m) {
              return isArray(this._monthsShort) ? this._monthsShort : this._monthsShort['standalone'];
            }

            return isArray(this._monthsShort) ? this._monthsShort[m.month()] : this._monthsShort[MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone'][m.month()];
          }

          function handleStrictParse(monthName, format, strict) {
            var i,
                ii,
                mom,
                llc = monthName.toLocaleLowerCase();

            if (!this._monthsParse) {
              // this is not used
              this._monthsParse = [];
              this._longMonthsParse = [];
              this._shortMonthsParse = [];

              for (i = 0; i < 12; ++i) {
                mom = createUTC([2000, i]);
                this._shortMonthsParse[i] = this.monthsShort(mom, '').toLocaleLowerCase();
                this._longMonthsParse[i] = this.months(mom, '').toLocaleLowerCase();
              }
            }

            if (strict) {
              if (format === 'MMM') {
                ii = indexOf.call(this._shortMonthsParse, llc);
                return ii !== -1 ? ii : null;
              } else {
                ii = indexOf.call(this._longMonthsParse, llc);
                return ii !== -1 ? ii : null;
              }
            } else {
              if (format === 'MMM') {
                ii = indexOf.call(this._shortMonthsParse, llc);

                if (ii !== -1) {
                  return ii;
                }

                ii = indexOf.call(this._longMonthsParse, llc);
                return ii !== -1 ? ii : null;
              } else {
                ii = indexOf.call(this._longMonthsParse, llc);

                if (ii !== -1) {
                  return ii;
                }

                ii = indexOf.call(this._shortMonthsParse, llc);
                return ii !== -1 ? ii : null;
              }
            }
          }

          function localeMonthsParse(monthName, format, strict) {
            var i, mom, regex;

            if (this._monthsParseExact) {
              return handleStrictParse.call(this, monthName, format, strict);
            }

            if (!this._monthsParse) {
              this._monthsParse = [];
              this._longMonthsParse = [];
              this._shortMonthsParse = [];
            } // TODO: add sorting
            // Sorting makes sure if one month (or abbr) is a prefix of another
            // see sorting in computeMonthsParse


            for (i = 0; i < 12; i++) {
              // make the regex if we don't have it already
              mom = createUTC([2000, i]);

              if (strict && !this._longMonthsParse[i]) {
                this._longMonthsParse[i] = new RegExp('^' + this.months(mom, '').replace('.', '') + '$', 'i');
                this._shortMonthsParse[i] = new RegExp('^' + this.monthsShort(mom, '').replace('.', '') + '$', 'i');
              }

              if (!strict && !this._monthsParse[i]) {
                regex = '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, '');
                this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i');
              } // test the regex


              if (strict && format === 'MMMM' && this._longMonthsParse[i].test(monthName)) {
                return i;
              } else if (strict && format === 'MMM' && this._shortMonthsParse[i].test(monthName)) {
                return i;
              } else if (!strict && this._monthsParse[i].test(monthName)) {
                return i;
              }
            }
          } // MOMENTS


          function setMonth(mom, value) {
            var dayOfMonth;

            if (!mom.isValid()) {
              // No op
              return mom;
            }

            if (typeof value === 'string') {
              if (/^\d+$/.test(value)) {
                value = toInt(value);
              } else {
                value = mom.localeData().monthsParse(value); // TODO: Another silent failure?

                if (!isNumber(value)) {
                  return mom;
                }
              }
            }

            dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value));

            mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth);

            return mom;
          }

          function getSetMonth(value) {
            if (value != null) {
              setMonth(this, value);
              hooks.updateOffset(this, true);
              return this;
            } else {
              return get(this, 'Month');
            }
          }

          function getDaysInMonth() {
            return daysInMonth(this.year(), this.month());
          }

          function monthsShortRegex(isStrict) {
            if (this._monthsParseExact) {
              if (!hasOwnProp(this, '_monthsRegex')) {
                computeMonthsParse.call(this);
              }

              if (isStrict) {
                return this._monthsShortStrictRegex;
              } else {
                return this._monthsShortRegex;
              }
            } else {
              if (!hasOwnProp(this, '_monthsShortRegex')) {
                this._monthsShortRegex = defaultMonthsShortRegex;
              }

              return this._monthsShortStrictRegex && isStrict ? this._monthsShortStrictRegex : this._monthsShortRegex;
            }
          }

          function monthsRegex(isStrict) {
            if (this._monthsParseExact) {
              if (!hasOwnProp(this, '_monthsRegex')) {
                computeMonthsParse.call(this);
              }

              if (isStrict) {
                return this._monthsStrictRegex;
              } else {
                return this._monthsRegex;
              }
            } else {
              if (!hasOwnProp(this, '_monthsRegex')) {
                this._monthsRegex = defaultMonthsRegex;
              }

              return this._monthsStrictRegex && isStrict ? this._monthsStrictRegex : this._monthsRegex;
            }
          }

          function computeMonthsParse() {
            function cmpLenRev(a, b) {
              return b.length - a.length;
            }

            var shortPieces = [],
                longPieces = [],
                mixedPieces = [],
                i,
                mom;

            for (i = 0; i < 12; i++) {
              // make the regex if we don't have it already
              mom = createUTC([2000, i]);
              shortPieces.push(this.monthsShort(mom, ''));
              longPieces.push(this.months(mom, ''));
              mixedPieces.push(this.months(mom, ''));
              mixedPieces.push(this.monthsShort(mom, ''));
            } // Sorting makes sure if one month (or abbr) is a prefix of another it
            // will match the longer piece.


            shortPieces.sort(cmpLenRev);
            longPieces.sort(cmpLenRev);
            mixedPieces.sort(cmpLenRev);

            for (i = 0; i < 12; i++) {
              shortPieces[i] = regexEscape(shortPieces[i]);
              longPieces[i] = regexEscape(longPieces[i]);
            }

            for (i = 0; i < 24; i++) {
              mixedPieces[i] = regexEscape(mixedPieces[i]);
            }

            this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
            this._monthsShortRegex = this._monthsRegex;
            this._monthsStrictRegex = new RegExp('^(' + longPieces.join('|') + ')', 'i');
            this._monthsShortStrictRegex = new RegExp('^(' + shortPieces.join('|') + ')', 'i');
          } // FORMATTING


          addFormatToken('Y', 0, 0, function () {
            var y = this.year();
            return y <= 9999 ? zeroFill(y, 4) : '+' + y;
          });
          addFormatToken(0, ['YY', 2], 0, function () {
            return this.year() % 100;
          });
          addFormatToken(0, ['YYYY', 4], 0, 'year');
          addFormatToken(0, ['YYYYY', 5], 0, 'year');
          addFormatToken(0, ['YYYYYY', 6, true], 0, 'year'); // ALIASES

          addUnitAlias('year', 'y'); // PRIORITIES

          addUnitPriority('year', 1); // PARSING

          addRegexToken('Y', matchSigned);
          addRegexToken('YY', match1to2, match2);
          addRegexToken('YYYY', match1to4, match4);
          addRegexToken('YYYYY', match1to6, match6);
          addRegexToken('YYYYYY', match1to6, match6);
          addParseToken(['YYYYY', 'YYYYYY'], YEAR);
          addParseToken('YYYY', function (input, array) {
            array[YEAR] = input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);
          });
          addParseToken('YY', function (input, array) {
            array[YEAR] = hooks.parseTwoDigitYear(input);
          });
          addParseToken('Y', function (input, array) {
            array[YEAR] = parseInt(input, 10);
          }); // HELPERS

          function daysInYear(year) {
            return isLeapYear(year) ? 366 : 365;
          } // HOOKS


          hooks.parseTwoDigitYear = function (input) {
            return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);
          }; // MOMENTS


          var getSetYear = makeGetSet('FullYear', true);

          function getIsLeapYear() {
            return isLeapYear(this.year());
          }

          function createDate(y, m, d, h, M, s, ms) {
            // can't just apply() to create a date:
            // https://stackoverflow.com/q/181348
            var date; // the date constructor remaps years 0-99 to 1900-1999

            if (y < 100 && y >= 0) {
              // preserve leap years using a full 400 year cycle, then reset
              date = new Date(y + 400, m, d, h, M, s, ms);

              if (isFinite(date.getFullYear())) {
                date.setFullYear(y);
              }
            } else {
              date = new Date(y, m, d, h, M, s, ms);
            }

            return date;
          }

          function createUTCDate(y) {
            var date, args; // the Date.UTC function remaps years 0-99 to 1900-1999

            if (y < 100 && y >= 0) {
              args = Array.prototype.slice.call(arguments); // preserve leap years using a full 400 year cycle, then reset

              args[0] = y + 400;
              date = new Date(Date.UTC.apply(null, args));

              if (isFinite(date.getUTCFullYear())) {
                date.setUTCFullYear(y);
              }
            } else {
              date = new Date(Date.UTC.apply(null, arguments));
            }

            return date;
          } // start-of-first-week - start-of-year


          function firstWeekOffset(year, dow, doy) {
            var // first-week day -- which january is always in the first week (4 for iso, 1 for other)
            fwd = 7 + dow - doy,
                // first-week day local weekday -- which local weekday is fwd
            fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7;
            return -fwdlw + fwd - 1;
          } // https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday


          function dayOfYearFromWeeks(year, week, weekday, dow, doy) {
            var localWeekday = (7 + weekday - dow) % 7,
                weekOffset = firstWeekOffset(year, dow, doy),
                dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset,
                resYear,
                resDayOfYear;

            if (dayOfYear <= 0) {
              resYear = year - 1;
              resDayOfYear = daysInYear(resYear) + dayOfYear;
            } else if (dayOfYear > daysInYear(year)) {
              resYear = year + 1;
              resDayOfYear = dayOfYear - daysInYear(year);
            } else {
              resYear = year;
              resDayOfYear = dayOfYear;
            }

            return {
              year: resYear,
              dayOfYear: resDayOfYear
            };
          }

          function weekOfYear(mom, dow, doy) {
            var weekOffset = firstWeekOffset(mom.year(), dow, doy),
                week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1,
                resWeek,
                resYear;

            if (week < 1) {
              resYear = mom.year() - 1;
              resWeek = week + weeksInYear(resYear, dow, doy);
            } else if (week > weeksInYear(mom.year(), dow, doy)) {
              resWeek = week - weeksInYear(mom.year(), dow, doy);
              resYear = mom.year() + 1;
            } else {
              resYear = mom.year();
              resWeek = week;
            }

            return {
              week: resWeek,
              year: resYear
            };
          }

          function weeksInYear(year, dow, doy) {
            var weekOffset = firstWeekOffset(year, dow, doy),
                weekOffsetNext = firstWeekOffset(year + 1, dow, doy);
            return (daysInYear(year) - weekOffset + weekOffsetNext) / 7;
          } // FORMATTING


          addFormatToken('w', ['ww', 2], 'wo', 'week');
          addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek'); // ALIASES

          addUnitAlias('week', 'w');
          addUnitAlias('isoWeek', 'W'); // PRIORITIES

          addUnitPriority('week', 5);
          addUnitPriority('isoWeek', 5); // PARSING

          addRegexToken('w', match1to2);
          addRegexToken('ww', match1to2, match2);
          addRegexToken('W', match1to2);
          addRegexToken('WW', match1to2, match2);
          addWeekParseToken(['w', 'ww', 'W', 'WW'], function (input, week, config, token) {
            week[token.substr(0, 1)] = toInt(input);
          }); // HELPERS
          // LOCALES

          function localeWeek(mom) {
            return weekOfYear(mom, this._week.dow, this._week.doy).week;
          }

          var defaultLocaleWeek = {
            dow: 0,
            // Sunday is the first day of the week.
            doy: 6 // The week that contains Jan 6th is the first week of the year.

          };

          function localeFirstDayOfWeek() {
            return this._week.dow;
          }

          function localeFirstDayOfYear() {
            return this._week.doy;
          } // MOMENTS


          function getSetWeek(input) {
            var week = this.localeData().week(this);
            return input == null ? week : this.add((input - week) * 7, 'd');
          }

          function getSetISOWeek(input) {
            var week = weekOfYear(this, 1, 4).week;
            return input == null ? week : this.add((input - week) * 7, 'd');
          } // FORMATTING


          addFormatToken('d', 0, 'do', 'day');
          addFormatToken('dd', 0, 0, function (format) {
            return this.localeData().weekdaysMin(this, format);
          });
          addFormatToken('ddd', 0, 0, function (format) {
            return this.localeData().weekdaysShort(this, format);
          });
          addFormatToken('dddd', 0, 0, function (format) {
            return this.localeData().weekdays(this, format);
          });
          addFormatToken('e', 0, 0, 'weekday');
          addFormatToken('E', 0, 0, 'isoWeekday'); // ALIASES

          addUnitAlias('day', 'd');
          addUnitAlias('weekday', 'e');
          addUnitAlias('isoWeekday', 'E'); // PRIORITY

          addUnitPriority('day', 11);
          addUnitPriority('weekday', 11);
          addUnitPriority('isoWeekday', 11); // PARSING

          addRegexToken('d', match1to2);
          addRegexToken('e', match1to2);
          addRegexToken('E', match1to2);
          addRegexToken('dd', function (isStrict, locale) {
            return locale.weekdaysMinRegex(isStrict);
          });
          addRegexToken('ddd', function (isStrict, locale) {
            return locale.weekdaysShortRegex(isStrict);
          });
          addRegexToken('dddd', function (isStrict, locale) {
            return locale.weekdaysRegex(isStrict);
          });
          addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) {
            var weekday = config._locale.weekdaysParse(input, token, config._strict); // if we didn't get a weekday name, mark the date as invalid


            if (weekday != null) {
              week.d = weekday;
            } else {
              getParsingFlags(config).invalidWeekday = input;
            }
          });
          addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) {
            week[token] = toInt(input);
          }); // HELPERS

          function parseWeekday(input, locale) {
            if (typeof input !== 'string') {
              return input;
            }

            if (!isNaN(input)) {
              return parseInt(input, 10);
            }

            input = locale.weekdaysParse(input);

            if (typeof input === 'number') {
              return input;
            }

            return null;
          }

          function parseIsoWeekday(input, locale) {
            if (typeof input === 'string') {
              return locale.weekdaysParse(input) % 7 || 7;
            }

            return isNaN(input) ? null : input;
          } // LOCALES


          function shiftWeekdays(ws, n) {
            return ws.slice(n, 7).concat(ws.slice(0, n));
          }

          var defaultLocaleWeekdays = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
              defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
              defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
              defaultWeekdaysRegex = matchWord,
              defaultWeekdaysShortRegex = matchWord,
              defaultWeekdaysMinRegex = matchWord;

          function localeWeekdays(m, format) {
            var weekdays = isArray(this._weekdays) ? this._weekdays : this._weekdays[m && m !== true && this._weekdays.isFormat.test(format) ? 'format' : 'standalone'];
            return m === true ? shiftWeekdays(weekdays, this._week.dow) : m ? weekdays[m.day()] : weekdays;
          }

          function localeWeekdaysShort(m) {
            return m === true ? shiftWeekdays(this._weekdaysShort, this._week.dow) : m ? this._weekdaysShort[m.day()] : this._weekdaysShort;
          }

          function localeWeekdaysMin(m) {
            return m === true ? shiftWeekdays(this._weekdaysMin, this._week.dow) : m ? this._weekdaysMin[m.day()] : this._weekdaysMin;
          }

          function handleStrictParse$1(weekdayName, format, strict) {
            var i,
                ii,
                mom,
                llc = weekdayName.toLocaleLowerCase();

            if (!this._weekdaysParse) {
              this._weekdaysParse = [];
              this._shortWeekdaysParse = [];
              this._minWeekdaysParse = [];

              for (i = 0; i < 7; ++i) {
                mom = createUTC([2000, 1]).day(i);
                this._minWeekdaysParse[i] = this.weekdaysMin(mom, '').toLocaleLowerCase();
                this._shortWeekdaysParse[i] = this.weekdaysShort(mom, '').toLocaleLowerCase();
                this._weekdaysParse[i] = this.weekdays(mom, '').toLocaleLowerCase();
              }
            }

            if (strict) {
              if (format === 'dddd') {
                ii = indexOf.call(this._weekdaysParse, llc);
                return ii !== -1 ? ii : null;
              } else if (format === 'ddd') {
                ii = indexOf.call(this._shortWeekdaysParse, llc);
                return ii !== -1 ? ii : null;
              } else {
                ii = indexOf.call(this._minWeekdaysParse, llc);
                return ii !== -1 ? ii : null;
              }
            } else {
              if (format === 'dddd') {
                ii = indexOf.call(this._weekdaysParse, llc);

                if (ii !== -1) {
                  return ii;
                }

                ii = indexOf.call(this._shortWeekdaysParse, llc);

                if (ii !== -1) {
                  return ii;
                }

                ii = indexOf.call(this._minWeekdaysParse, llc);
                return ii !== -1 ? ii : null;
              } else if (format === 'ddd') {
                ii = indexOf.call(this._shortWeekdaysParse, llc);

                if (ii !== -1) {
                  return ii;
                }

                ii = indexOf.call(this._weekdaysParse, llc);

                if (ii !== -1) {
                  return ii;
                }

                ii = indexOf.call(this._minWeekdaysParse, llc);
                return ii !== -1 ? ii : null;
              } else {
                ii = indexOf.call(this._minWeekdaysParse, llc);

                if (ii !== -1) {
                  return ii;
                }

                ii = indexOf.call(this._weekdaysParse, llc);

                if (ii !== -1) {
                  return ii;
                }

                ii = indexOf.call(this._shortWeekdaysParse, llc);
                return ii !== -1 ? ii : null;
              }
            }
          }

          function localeWeekdaysParse(weekdayName, format, strict) {
            var i, mom, regex;

            if (this._weekdaysParseExact) {
              return handleStrictParse$1.call(this, weekdayName, format, strict);
            }

            if (!this._weekdaysParse) {
              this._weekdaysParse = [];
              this._minWeekdaysParse = [];
              this._shortWeekdaysParse = [];
              this._fullWeekdaysParse = [];
            }

            for (i = 0; i < 7; i++) {
              // make the regex if we don't have it already
              mom = createUTC([2000, 1]).day(i);

              if (strict && !this._fullWeekdaysParse[i]) {
                this._fullWeekdaysParse[i] = new RegExp('^' + this.weekdays(mom, '').replace('.', '\\.?') + '$', 'i');
                this._shortWeekdaysParse[i] = new RegExp('^' + this.weekdaysShort(mom, '').replace('.', '\\.?') + '$', 'i');
                this._minWeekdaysParse[i] = new RegExp('^' + this.weekdaysMin(mom, '').replace('.', '\\.?') + '$', 'i');
              }

              if (!this._weekdaysParse[i]) {
                regex = '^' + this.weekdays(mom, '') + '|^' + this.weekdaysShort(mom, '') + '|^' + this.weekdaysMin(mom, '');
                this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i');
              } // test the regex


              if (strict && format === 'dddd' && this._fullWeekdaysParse[i].test(weekdayName)) {
                return i;
              } else if (strict && format === 'ddd' && this._shortWeekdaysParse[i].test(weekdayName)) {
                return i;
              } else if (strict && format === 'dd' && this._minWeekdaysParse[i].test(weekdayName)) {
                return i;
              } else if (!strict && this._weekdaysParse[i].test(weekdayName)) {
                return i;
              }
            }
          } // MOMENTS


          function getSetDayOfWeek(input) {
            if (!this.isValid()) {
              return input != null ? this : NaN;
            }

            var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay();

            if (input != null) {
              input = parseWeekday(input, this.localeData());
              return this.add(input - day, 'd');
            } else {
              return day;
            }
          }

          function getSetLocaleDayOfWeek(input) {
            if (!this.isValid()) {
              return input != null ? this : NaN;
            }

            var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;
            return input == null ? weekday : this.add(input - weekday, 'd');
          }

          function getSetISODayOfWeek(input) {
            if (!this.isValid()) {
              return input != null ? this : NaN;
            } // behaves the same as moment#day except
            // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)
            // as a setter, sunday should belong to the previous week.


            if (input != null) {
              var weekday = parseIsoWeekday(input, this.localeData());
              return this.day(this.day() % 7 ? weekday : weekday - 7);
            } else {
              return this.day() || 7;
            }
          }

          function weekdaysRegex(isStrict) {
            if (this._weekdaysParseExact) {
              if (!hasOwnProp(this, '_weekdaysRegex')) {
                computeWeekdaysParse.call(this);
              }

              if (isStrict) {
                return this._weekdaysStrictRegex;
              } else {
                return this._weekdaysRegex;
              }
            } else {
              if (!hasOwnProp(this, '_weekdaysRegex')) {
                this._weekdaysRegex = defaultWeekdaysRegex;
              }

              return this._weekdaysStrictRegex && isStrict ? this._weekdaysStrictRegex : this._weekdaysRegex;
            }
          }

          function weekdaysShortRegex(isStrict) {
            if (this._weekdaysParseExact) {
              if (!hasOwnProp(this, '_weekdaysRegex')) {
                computeWeekdaysParse.call(this);
              }

              if (isStrict) {
                return this._weekdaysShortStrictRegex;
              } else {
                return this._weekdaysShortRegex;
              }
            } else {
              if (!hasOwnProp(this, '_weekdaysShortRegex')) {
                this._weekdaysShortRegex = defaultWeekdaysShortRegex;
              }

              return this._weekdaysShortStrictRegex && isStrict ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex;
            }
          }

          function weekdaysMinRegex(isStrict) {
            if (this._weekdaysParseExact) {
              if (!hasOwnProp(this, '_weekdaysRegex')) {
                computeWeekdaysParse.call(this);
              }

              if (isStrict) {
                return this._weekdaysMinStrictRegex;
              } else {
                return this._weekdaysMinRegex;
              }
            } else {
              if (!hasOwnProp(this, '_weekdaysMinRegex')) {
                this._weekdaysMinRegex = defaultWeekdaysMinRegex;
              }

              return this._weekdaysMinStrictRegex && isStrict ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex;
            }
          }

          function computeWeekdaysParse() {
            function cmpLenRev(a, b) {
              return b.length - a.length;
            }

            var minPieces = [],
                shortPieces = [],
                longPieces = [],
                mixedPieces = [],
                i,
                mom,
                minp,
                shortp,
                longp;

            for (i = 0; i < 7; i++) {
              // make the regex if we don't have it already
              mom = createUTC([2000, 1]).day(i);
              minp = regexEscape(this.weekdaysMin(mom, ''));
              shortp = regexEscape(this.weekdaysShort(mom, ''));
              longp = regexEscape(this.weekdays(mom, ''));
              minPieces.push(minp);
              shortPieces.push(shortp);
              longPieces.push(longp);
              mixedPieces.push(minp);
              mixedPieces.push(shortp);
              mixedPieces.push(longp);
            } // Sorting makes sure if one weekday (or abbr) is a prefix of another it
            // will match the longer piece.


            minPieces.sort(cmpLenRev);
            shortPieces.sort(cmpLenRev);
            longPieces.sort(cmpLenRev);
            mixedPieces.sort(cmpLenRev);
            this._weekdaysRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
            this._weekdaysShortRegex = this._weekdaysRegex;
            this._weekdaysMinRegex = this._weekdaysRegex;
            this._weekdaysStrictRegex = new RegExp('^(' + longPieces.join('|') + ')', 'i');
            this._weekdaysShortStrictRegex = new RegExp('^(' + shortPieces.join('|') + ')', 'i');
            this._weekdaysMinStrictRegex = new RegExp('^(' + minPieces.join('|') + ')', 'i');
          } // FORMATTING


          function hFormat() {
            return this.hours() % 12 || 12;
          }

          function kFormat() {
            return this.hours() || 24;
          }

          addFormatToken('H', ['HH', 2], 0, 'hour');
          addFormatToken('h', ['hh', 2], 0, hFormat);
          addFormatToken('k', ['kk', 2], 0, kFormat);
          addFormatToken('hmm', 0, 0, function () {
            return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2);
          });
          addFormatToken('hmmss', 0, 0, function () {
            return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2) + zeroFill(this.seconds(), 2);
          });
          addFormatToken('Hmm', 0, 0, function () {
            return '' + this.hours() + zeroFill(this.minutes(), 2);
          });
          addFormatToken('Hmmss', 0, 0, function () {
            return '' + this.hours() + zeroFill(this.minutes(), 2) + zeroFill(this.seconds(), 2);
          });

          function meridiem(token, lowercase) {
            addFormatToken(token, 0, 0, function () {
              return this.localeData().meridiem(this.hours(), this.minutes(), lowercase);
            });
          }

          meridiem('a', true);
          meridiem('A', false); // ALIASES

          addUnitAlias('hour', 'h'); // PRIORITY

          addUnitPriority('hour', 13); // PARSING

          function matchMeridiem(isStrict, locale) {
            return locale._meridiemParse;
          }

          addRegexToken('a', matchMeridiem);
          addRegexToken('A', matchMeridiem);
          addRegexToken('H', match1to2);
          addRegexToken('h', match1to2);
          addRegexToken('k', match1to2);
          addRegexToken('HH', match1to2, match2);
          addRegexToken('hh', match1to2, match2);
          addRegexToken('kk', match1to2, match2);
          addRegexToken('hmm', match3to4);
          addRegexToken('hmmss', match5to6);
          addRegexToken('Hmm', match3to4);
          addRegexToken('Hmmss', match5to6);
          addParseToken(['H', 'HH'], HOUR);
          addParseToken(['k', 'kk'], function (input, array, config) {
            var kInput = toInt(input);
            array[HOUR] = kInput === 24 ? 0 : kInput;
          });
          addParseToken(['a', 'A'], function (input, array, config) {
            config._isPm = config._locale.isPM(input);
            config._meridiem = input;
          });
          addParseToken(['h', 'hh'], function (input, array, config) {
            array[HOUR] = toInt(input);
            getParsingFlags(config).bigHour = true;
          });
          addParseToken('hmm', function (input, array, config) {
            var pos = input.length - 2;
            array[HOUR] = toInt(input.substr(0, pos));
            array[MINUTE] = toInt(input.substr(pos));
            getParsingFlags(config).bigHour = true;
          });
          addParseToken('hmmss', function (input, array, config) {
            var pos1 = input.length - 4,
                pos2 = input.length - 2;
            array[HOUR] = toInt(input.substr(0, pos1));
            array[MINUTE] = toInt(input.substr(pos1, 2));
            array[SECOND] = toInt(input.substr(pos2));
            getParsingFlags(config).bigHour = true;
          });
          addParseToken('Hmm', function (input, array, config) {
            var pos = input.length - 2;
            array[HOUR] = toInt(input.substr(0, pos));
            array[MINUTE] = toInt(input.substr(pos));
          });
          addParseToken('Hmmss', function (input, array, config) {
            var pos1 = input.length - 4,
                pos2 = input.length - 2;
            array[HOUR] = toInt(input.substr(0, pos1));
            array[MINUTE] = toInt(input.substr(pos1, 2));
            array[SECOND] = toInt(input.substr(pos2));
          }); // LOCALES

          function localeIsPM(input) {
            // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays
            // Using charAt should be more compatible.
            return (input + '').toLowerCase().charAt(0) === 'p';
          }

          var defaultLocaleMeridiemParse = /[ap]\.?m?\.?/i,
              // Setting the hour should keep the time, because the user explicitly
          // specified which hour they want. So trying to maintain the same hour (in
          // a new timezone) makes sense. Adding/subtracting hours does not follow
          // this rule.
          getSetHour = makeGetSet('Hours', true);

          function localeMeridiem(hours, minutes, isLower) {
            if (hours > 11) {
              return isLower ? 'pm' : 'PM';
            } else {
              return isLower ? 'am' : 'AM';
            }
          }

          var baseConfig = {
            calendar: defaultCalendar,
            longDateFormat: defaultLongDateFormat,
            invalidDate: defaultInvalidDate,
            ordinal: defaultOrdinal,
            dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse,
            relativeTime: defaultRelativeTime,
            months: defaultLocaleMonths,
            monthsShort: defaultLocaleMonthsShort,
            week: defaultLocaleWeek,
            weekdays: defaultLocaleWeekdays,
            weekdaysMin: defaultLocaleWeekdaysMin,
            weekdaysShort: defaultLocaleWeekdaysShort,
            meridiemParse: defaultLocaleMeridiemParse
          }; // internal storage for locale config files

          var locales = {},
              localeFamilies = {},
              globalLocale;

          function commonPrefix(arr1, arr2) {
            var i,
                minl = Math.min(arr1.length, arr2.length);

            for (i = 0; i < minl; i += 1) {
              if (arr1[i] !== arr2[i]) {
                return i;
              }
            }

            return minl;
          }

          function normalizeLocale(key) {
            return key ? key.toLowerCase().replace('_', '-') : key;
          } // pick the locale from the array
          // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each
          // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root


          function chooseLocale(names) {
            var i = 0,
                j,
                next,
                locale,
                split;

            while (i < names.length) {
              split = normalizeLocale(names[i]).split('-');
              j = split.length;
              next = normalizeLocale(names[i + 1]);
              next = next ? next.split('-') : null;

              while (j > 0) {
                locale = loadLocale(split.slice(0, j).join('-'));

                if (locale) {
                  return locale;
                }

                if (next && next.length >= j && commonPrefix(split, next) >= j - 1) {
                  //the next array item is better than a shallower substring of this one
                  break;
                }

                j--;
              }

              i++;
            }

            return globalLocale;
          }

          function loadLocale(name) {
            var oldLocale = null,
                aliasedRequire; // TODO: Find a better way to register and load all the locales in Node

            if (locales[name] === undefined && typeof module !== 'undefined' && module && module.exports) {
              try {
                oldLocale = globalLocale._abbr;
                aliasedRequire = require;

                __webpack_require__("RnhZ")("./" + name);

                getSetGlobalLocale(oldLocale);
              } catch (e) {
                // mark as not found to avoid repeating expensive file require call causing high CPU
                // when trying to find en-US, en_US, en-us for every format call
                locales[name] = null; // null means not found
              }
            }

            return locales[name];
          } // This function will load locale and then set the global locale.  If
          // no arguments are passed in, it will simply return the current global
          // locale key.


          function getSetGlobalLocale(key, values) {
            var data;

            if (key) {
              if (isUndefined(values)) {
                data = getLocale(key);
              } else {
                data = defineLocale(key, values);
              }

              if (data) {
                // moment.duration._locale = moment._locale = data;
                globalLocale = data;
              } else {
                if (typeof console !== 'undefined' && console.warn) {
                  //warn user if arguments are passed but the locale could not be set
                  console.warn('Locale ' + key + ' not found. Did you forget to load it?');
                }
              }
            }

            return globalLocale._abbr;
          }

          function defineLocale(name, config) {
            if (config !== null) {
              var locale,
                  parentConfig = baseConfig;
              config.abbr = name;

              if (locales[name] != null) {
                deprecateSimple('defineLocaleOverride', 'use moment.updateLocale(localeName, config) to change ' + 'an existing locale. moment.defineLocale(localeName, ' + 'config) should only be used for creating a new locale ' + 'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.');
                parentConfig = locales[name]._config;
              } else if (config.parentLocale != null) {
                if (locales[config.parentLocale] != null) {
                  parentConfig = locales[config.parentLocale]._config;
                } else {
                  locale = loadLocale(config.parentLocale);

                  if (locale != null) {
                    parentConfig = locale._config;
                  } else {
                    if (!localeFamilies[config.parentLocale]) {
                      localeFamilies[config.parentLocale] = [];
                    }

                    localeFamilies[config.parentLocale].push({
                      name: name,
                      config: config
                    });
                    return null;
                  }
                }
              }

              locales[name] = new Locale(mergeConfigs(parentConfig, config));

              if (localeFamilies[name]) {
                localeFamilies[name].forEach(function (x) {
                  defineLocale(x.name, x.config);
                });
              } // backwards compat for now: also set the locale
              // make sure we set the locale AFTER all child locales have been
              // created, so we won't end up with the child locale set.


              getSetGlobalLocale(name);
              return locales[name];
            } else {
              // useful for testing
              delete locales[name];
              return null;
            }
          }

          function updateLocale(name, config) {
            if (config != null) {
              var locale,
                  tmpLocale,
                  parentConfig = baseConfig;

              if (locales[name] != null && locales[name].parentLocale != null) {
                // Update existing child locale in-place to avoid memory-leaks
                locales[name].set(mergeConfigs(locales[name]._config, config));
              } else {
                // MERGE
                tmpLocale = loadLocale(name);

                if (tmpLocale != null) {
                  parentConfig = tmpLocale._config;
                }

                config = mergeConfigs(parentConfig, config);

                if (tmpLocale == null) {
                  // updateLocale is called for creating a new locale
                  // Set abbr so it will have a name (getters return
                  // undefined otherwise).
                  config.abbr = name;
                }

                locale = new Locale(config);
                locale.parentLocale = locales[name];
                locales[name] = locale;
              } // backwards compat for now: also set the locale


              getSetGlobalLocale(name);
            } else {
              // pass null for config to unupdate, useful for tests
              if (locales[name] != null) {
                if (locales[name].parentLocale != null) {
                  locales[name] = locales[name].parentLocale;

                  if (name === getSetGlobalLocale()) {
                    getSetGlobalLocale(name);
                  }
                } else if (locales[name] != null) {
                  delete locales[name];
                }
              }
            }

            return locales[name];
          } // returns locale data


          function getLocale(key) {
            var locale;

            if (key && key._locale && key._locale._abbr) {
              key = key._locale._abbr;
            }

            if (!key) {
              return globalLocale;
            }

            if (!isArray(key)) {
              //short-circuit everything else
              locale = loadLocale(key);

              if (locale) {
                return locale;
              }

              key = [key];
            }

            return chooseLocale(key);
          }

          function listLocales() {
            return keys(locales);
          }

          function checkOverflow(m) {
            var overflow,
                a = m._a;

            if (a && getParsingFlags(m).overflow === -2) {
              overflow = a[MONTH] < 0 || a[MONTH] > 11 ? MONTH : a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH]) ? DATE : a[HOUR] < 0 || a[HOUR] > 24 || a[HOUR] === 24 && (a[MINUTE] !== 0 || a[SECOND] !== 0 || a[MILLISECOND] !== 0) ? HOUR : a[MINUTE] < 0 || a[MINUTE] > 59 ? MINUTE : a[SECOND] < 0 || a[SECOND] > 59 ? SECOND : a[MILLISECOND] < 0 || a[MILLISECOND] > 999 ? MILLISECOND : -1;

              if (getParsingFlags(m)._overflowDayOfYear && (overflow < YEAR || overflow > DATE)) {
                overflow = DATE;
              }

              if (getParsingFlags(m)._overflowWeeks && overflow === -1) {
                overflow = WEEK;
              }

              if (getParsingFlags(m)._overflowWeekday && overflow === -1) {
                overflow = WEEKDAY;
              }

              getParsingFlags(m).overflow = overflow;
            }

            return m;
          } // iso 8601 regex
          // 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)


          var extendedIsoRegex = /^\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)?)?$/,
              basicIsoRegex = /^\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)?)?$/,
              tzRegex = /Z|[+-]\d\d(?::?\d\d)?/,
              isoDates = [['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/], ['YYYY-MM-DD', /\d{4}-\d\d-\d\d/], ['GGGG-[W]WW-E', /\d{4}-W\d\d-\d/], ['GGGG-[W]WW', /\d{4}-W\d\d/, false], ['YYYY-DDD', /\d{4}-\d{3}/], ['YYYY-MM', /\d{4}-\d\d/, false], ['YYYYYYMMDD', /[+-]\d{10}/], ['YYYYMMDD', /\d{8}/], ['GGGG[W]WWE', /\d{4}W\d{3}/], ['GGGG[W]WW', /\d{4}W\d{2}/, false], ['YYYYDDD', /\d{7}/], ['YYYYMM', /\d{6}/, false], ['YYYY', /\d{4}/, false]],
              // iso time formats and regexes
          isoTimes = [['HH:mm:ss.SSSS', /\d\d:\d\d:\d\d\.\d+/], ['HH:mm:ss,SSSS', /\d\d:\d\d:\d\d,\d+/], ['HH:mm:ss', /\d\d:\d\d:\d\d/], ['HH:mm', /\d\d:\d\d/], ['HHmmss.SSSS', /\d\d\d\d\d\d\.\d+/], ['HHmmss,SSSS', /\d\d\d\d\d\d,\d+/], ['HHmmss', /\d\d\d\d\d\d/], ['HHmm', /\d\d\d\d/], ['HH', /\d\d/]],
              aspNetJsonRegex = /^\/?Date\((-?\d+)/i,
              // RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3
          rfc2822 = /^(?:(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}))$/,
              obsOffsets = {
            UT: 0,
            GMT: 0,
            EDT: -4 * 60,
            EST: -5 * 60,
            CDT: -5 * 60,
            CST: -6 * 60,
            MDT: -6 * 60,
            MST: -7 * 60,
            PDT: -7 * 60,
            PST: -8 * 60
          }; // date from iso format

          function configFromISO(config) {
            var i,
                l,
                string = config._i,
                match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string),
                allowTime,
                dateFormat,
                timeFormat,
                tzFormat;

            if (match) {
              getParsingFlags(config).iso = true;

              for (i = 0, l = isoDates.length; i < l; i++) {
                if (isoDates[i][1].exec(match[1])) {
                  dateFormat = isoDates[i][0];
                  allowTime = isoDates[i][2] !== false;
                  break;
                }
              }

              if (dateFormat == null) {
                config._isValid = false;
                return;
              }

              if (match[3]) {
                for (i = 0, l = isoTimes.length; i < l; i++) {
                  if (isoTimes[i][1].exec(match[3])) {
                    // match[2] should be 'T' or space
                    timeFormat = (match[2] || ' ') + isoTimes[i][0];
                    break;
                  }
                }

                if (timeFormat == null) {
                  config._isValid = false;
                  return;
                }
              }

              if (!allowTime && timeFormat != null) {
                config._isValid = false;
                return;
              }

              if (match[4]) {
                if (tzRegex.exec(match[4])) {
                  tzFormat = 'Z';
                } else {
                  config._isValid = false;
                  return;
                }
              }

              config._f = dateFormat + (timeFormat || '') + (tzFormat || '');
              configFromStringAndFormat(config);
            } else {
              config._isValid = false;
            }
          }

          function extractFromRFC2822Strings(yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr) {
            var result = [untruncateYear(yearStr), defaultLocaleMonthsShort.indexOf(monthStr), parseInt(dayStr, 10), parseInt(hourStr, 10), parseInt(minuteStr, 10)];

            if (secondStr) {
              result.push(parseInt(secondStr, 10));
            }

            return result;
          }

          function untruncateYear(yearStr) {
            var year = parseInt(yearStr, 10);

            if (year <= 49) {
              return 2000 + year;
            } else if (year <= 999) {
              return 1900 + year;
            }

            return year;
          }

          function preprocessRFC2822(s) {
            // Remove comments and folding whitespace and replace multiple-spaces with a single space
            return s.replace(/\([^)]*\)|[\n\t]/g, ' ').replace(/(\s\s+)/g, ' ').replace(/^\s\s*/, '').replace(/\s\s*$/, '');
          }

          function checkWeekday(weekdayStr, parsedInput, config) {
            if (weekdayStr) {
              // TODO: Replace the vanilla JS Date object with an independent day-of-week check.
              var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr),
                  weekdayActual = new Date(parsedInput[0], parsedInput[1], parsedInput[2]).getDay();

              if (weekdayProvided !== weekdayActual) {
                getParsingFlags(config).weekdayMismatch = true;
                config._isValid = false;
                return false;
              }
            }

            return true;
          }

          function calculateOffset(obsOffset, militaryOffset, numOffset) {
            if (obsOffset) {
              return obsOffsets[obsOffset];
            } else if (militaryOffset) {
              // the only allowed military tz is Z
              return 0;
            } else {
              var hm = parseInt(numOffset, 10),
                  m = hm % 100,
                  h = (hm - m) / 100;
              return h * 60 + m;
            }
          } // date and time from ref 2822 format


          function configFromRFC2822(config) {
            var match = rfc2822.exec(preprocessRFC2822(config._i)),
                parsedArray;

            if (match) {
              parsedArray = extractFromRFC2822Strings(match[4], match[3], match[2], match[5], match[6], match[7]);

              if (!checkWeekday(match[1], parsedArray, config)) {
                return;
              }

              config._a = parsedArray;
              config._tzm = calculateOffset(match[8], match[9], match[10]);
              config._d = createUTCDate.apply(null, config._a);

              config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);

              getParsingFlags(config).rfc2822 = true;
            } else {
              config._isValid = false;
            }
          } // date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict


          function configFromString(config) {
            var matched = aspNetJsonRegex.exec(config._i);

            if (matched !== null) {
              config._d = new Date(+matched[1]);
              return;
            }

            configFromISO(config);

            if (config._isValid === false) {
              delete config._isValid;
            } else {
              return;
            }

            configFromRFC2822(config);

            if (config._isValid === false) {
              delete config._isValid;
            } else {
              return;
            }

            if (config._strict) {
              config._isValid = false;
            } else {
              // Final attempt, use Input Fallback
              hooks.createFromInputFallback(config);
            }
          }

          hooks.createFromInputFallback = deprecate('value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ' + 'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are ' + 'discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.', function (config) {
            config._d = new Date(config._i + (config._useUTC ? ' UTC' : ''));
          }); // Pick the first defined of two or three arguments.

          function defaults(a, b, c) {
            if (a != null) {
              return a;
            }

            if (b != null) {
              return b;
            }

            return c;
          }

          function currentDateArray(config) {
            // hooks is actually the exported moment object
            var nowValue = new Date(hooks.now());

            if (config._useUTC) {
              return [nowValue.getUTCFullYear(), nowValue.getUTCMonth(), nowValue.getUTCDate()];
            }

            return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()];
          } // convert an array to a date.
          // the array should mirror the parameters below
          // note: all values past the year are optional and will default to the lowest possible value.
          // [year, month, day , hour, minute, second, millisecond]


          function configFromArray(config) {
            var i,
                date,
                input = [],
                currentDate,
                expectedWeekday,
                yearToUse;

            if (config._d) {
              return;
            }

            currentDate = currentDateArray(config); //compute day of the year from weeks and weekdays

            if (config._w && config._a[DATE] == null && config._a[MONTH] == null) {
              dayOfYearFromWeekInfo(config);
            } //if the day of the year is set, figure out what it is


            if (config._dayOfYear != null) {
              yearToUse = defaults(config._a[YEAR], currentDate[YEAR]);

              if (config._dayOfYear > daysInYear(yearToUse) || config._dayOfYear === 0) {
                getParsingFlags(config)._overflowDayOfYear = true;
              }

              date = createUTCDate(yearToUse, 0, config._dayOfYear);
              config._a[MONTH] = date.getUTCMonth();
              config._a[DATE] = date.getUTCDate();
            } // Default to current date.
            // * if no year, month, day of month are given, default to today
            // * if day of month is given, default month and year
            // * if month is given, default only year
            // * if year is given, don't default anything


            for (i = 0; i < 3 && config._a[i] == null; ++i) {
              config._a[i] = input[i] = currentDate[i];
            } // Zero out whatever was not defaulted, including time


            for (; i < 7; i++) {
              config._a[i] = input[i] = config._a[i] == null ? i === 2 ? 1 : 0 : config._a[i];
            } // Check for 24:00:00.000


            if (config._a[HOUR] === 24 && config._a[MINUTE] === 0 && config._a[SECOND] === 0 && config._a[MILLISECOND] === 0) {
              config._nextDay = true;
              config._a[HOUR] = 0;
            }

            config._d = (config._useUTC ? createUTCDate : createDate).apply(null, input);
            expectedWeekday = config._useUTC ? config._d.getUTCDay() : config._d.getDay(); // Apply timezone offset from input. The actual utcOffset can be changed
            // with parseZone.

            if (config._tzm != null) {
              config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
            }

            if (config._nextDay) {
              config._a[HOUR] = 24;
            } // check for mismatching day of week


            if (config._w && typeof config._w.d !== 'undefined' && config._w.d !== expectedWeekday) {
              getParsingFlags(config).weekdayMismatch = true;
            }
          }

          function dayOfYearFromWeekInfo(config) {
            var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow, curWeek;
            w = config._w;

            if (w.GG != null || w.W != null || w.E != null) {
              dow = 1;
              doy = 4; // TODO: We need to take the current isoWeekYear, but that depends on
              // how we interpret now (local, utc, fixed offset). So create
              // a now version of current config (take local/utc/offset flags, and
              // create now).

              weekYear = defaults(w.GG, config._a[YEAR], weekOfYear(createLocal(), 1, 4).year);
              week = defaults(w.W, 1);
              weekday = defaults(w.E, 1);

              if (weekday < 1 || weekday > 7) {
                weekdayOverflow = true;
              }
            } else {
              dow = config._locale._week.dow;
              doy = config._locale._week.doy;
              curWeek = weekOfYear(createLocal(), dow, doy);
              weekYear = defaults(w.gg, config._a[YEAR], curWeek.year); // Default to current week.

              week = defaults(w.w, curWeek.week);

              if (w.d != null) {
                // weekday -- low day numbers are considered next week
                weekday = w.d;

                if (weekday < 0 || weekday > 6) {
                  weekdayOverflow = true;
                }
              } else if (w.e != null) {
                // local weekday -- counting starts from beginning of week
                weekday = w.e + dow;

                if (w.e < 0 || w.e > 6) {
                  weekdayOverflow = true;
                }
              } else {
                // default to beginning of week
                weekday = dow;
              }
            }

            if (week < 1 || week > weeksInYear(weekYear, dow, doy)) {
              getParsingFlags(config)._overflowWeeks = true;
            } else if (weekdayOverflow != null) {
              getParsingFlags(config)._overflowWeekday = true;
            } else {
              temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy);
              config._a[YEAR] = temp.year;
              config._dayOfYear = temp.dayOfYear;
            }
          } // constant that refers to the ISO standard


          hooks.ISO_8601 = function () {}; // constant that refers to the RFC 2822 form


          hooks.RFC_2822 = function () {}; // date from string and format string


          function configFromStringAndFormat(config) {
            // TODO: Move this to another part of the creation flow to prevent circular deps
            if (config._f === hooks.ISO_8601) {
              configFromISO(config);
              return;
            }

            if (config._f === hooks.RFC_2822) {
              configFromRFC2822(config);
              return;
            }

            config._a = [];
            getParsingFlags(config).empty = true; // This array is used to make a Date, either with `new Date` or `Date.UTC`

            var string = '' + config._i,
                i,
                parsedInput,
                tokens,
                token,
                skipped,
                stringLength = string.length,
                totalParsedInputLength = 0,
                era;
            tokens = expandFormat(config._f, config._locale).match(formattingTokens) || [];

            for (i = 0; i < tokens.length; i++) {
              token = tokens[i];
              parsedInput = (string.match(getParseRegexForToken(token, config)) || [])[0];

              if (parsedInput) {
                skipped = string.substr(0, string.indexOf(parsedInput));

                if (skipped.length > 0) {
                  getParsingFlags(config).unusedInput.push(skipped);
                }

                string = string.slice(string.indexOf(parsedInput) + parsedInput.length);
                totalParsedInputLength += parsedInput.length;
              } // don't parse if it's not a known token


              if (formatTokenFunctions[token]) {
                if (parsedInput) {
                  getParsingFlags(config).empty = false;
                } else {
                  getParsingFlags(config).unusedTokens.push(token);
                }

                addTimeToArrayFromToken(token, parsedInput, config);
              } else if (config._strict && !parsedInput) {
                getParsingFlags(config).unusedTokens.push(token);
              }
            } // add remaining unparsed input length to the string


            getParsingFlags(config).charsLeftOver = stringLength - totalParsedInputLength;

            if (string.length > 0) {
              getParsingFlags(config).unusedInput.push(string);
            } // clear _12h flag if hour is <= 12


            if (config._a[HOUR] <= 12 && getParsingFlags(config).bigHour === true && config._a[HOUR] > 0) {
              getParsingFlags(config).bigHour = undefined;
            }

            getParsingFlags(config).parsedDateParts = config._a.slice(0);
            getParsingFlags(config).meridiem = config._meridiem; // handle meridiem

            config._a[HOUR] = meridiemFixWrap(config._locale, config._a[HOUR], config._meridiem); // handle era

            era = getParsingFlags(config).era;

            if (era !== null) {
              config._a[YEAR] = config._locale.erasConvertYear(era, config._a[YEAR]);
            }

            configFromArray(config);
            checkOverflow(config);
          }

          function meridiemFixWrap(locale, hour, meridiem) {
            var isPm;

            if (meridiem == null) {
              // nothing to do
              return hour;
            }

            if (locale.meridiemHour != null) {
              return locale.meridiemHour(hour, meridiem);
            } else if (locale.isPM != null) {
              // Fallback
              isPm = locale.isPM(meridiem);

              if (isPm && hour < 12) {
                hour += 12;
              }

              if (!isPm && hour === 12) {
                hour = 0;
              }

              return hour;
            } else {
              // this is not supposed to happen
              return hour;
            }
          } // date from string and array of format strings


          function configFromStringAndArray(config) {
            var tempConfig,
                bestMoment,
                scoreToBeat,
                i,
                currentScore,
                validFormatFound,
                bestFormatIsValid = false;

            if (config._f.length === 0) {
              getParsingFlags(config).invalidFormat = true;
              config._d = new Date(NaN);
              return;
            }

            for (i = 0; i < config._f.length; i++) {
              currentScore = 0;
              validFormatFound = false;
              tempConfig = copyConfig({}, config);

              if (config._useUTC != null) {
                tempConfig._useUTC = config._useUTC;
              }

              tempConfig._f = config._f[i];
              configFromStringAndFormat(tempConfig);

              if (isValid(tempConfig)) {
                validFormatFound = true;
              } // if there is any input that was not parsed add a penalty for that format


              currentScore += getParsingFlags(tempConfig).charsLeftOver; //or tokens

              currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10;
              getParsingFlags(tempConfig).score = currentScore;

              if (!bestFormatIsValid) {
                if (scoreToBeat == null || currentScore < scoreToBeat || validFormatFound) {
                  scoreToBeat = currentScore;
                  bestMoment = tempConfig;

                  if (validFormatFound) {
                    bestFormatIsValid = true;
                  }
                }
              } else {
                if (currentScore < scoreToBeat) {
                  scoreToBeat = currentScore;
                  bestMoment = tempConfig;
                }
              }
            }

            extend(config, bestMoment || tempConfig);
          }

          function configFromObject(config) {
            if (config._d) {
              return;
            }

            var i = normalizeObjectUnits(config._i),
                dayOrDate = i.day === undefined ? i.date : i.day;
            config._a = map([i.year, i.month, dayOrDate, i.hour, i.minute, i.second, i.millisecond], function (obj) {
              return obj && parseInt(obj, 10);
            });
            configFromArray(config);
          }

          function createFromConfig(config) {
            var res = new Moment(checkOverflow(prepareConfig(config)));

            if (res._nextDay) {
              // Adding is smart enough around DST
              res.add(1, 'd');
              res._nextDay = undefined;
            }

            return res;
          }

          function prepareConfig(config) {
            var input = config._i,
                format = config._f;
            config._locale = config._locale || getLocale(config._l);

            if (input === null || format === undefined && input === '') {
              return createInvalid({
                nullInput: true
              });
            }

            if (typeof input === 'string') {
              config._i = input = config._locale.preparse(input);
            }

            if (isMoment(input)) {
              return new Moment(checkOverflow(input));
            } else if (isDate(input)) {
              config._d = input;
            } else if (isArray(format)) {
              configFromStringAndArray(config);
            } else if (format) {
              configFromStringAndFormat(config);
            } else {
              configFromInput(config);
            }

            if (!isValid(config)) {
              config._d = null;
            }

            return config;
          }

          function configFromInput(config) {
            var input = config._i;

            if (isUndefined(input)) {
              config._d = new Date(hooks.now());
            } else if (isDate(input)) {
              config._d = new Date(input.valueOf());
            } else if (typeof input === 'string') {
              configFromString(config);
            } else if (isArray(input)) {
              config._a = map(input.slice(0), function (obj) {
                return parseInt(obj, 10);
              });
              configFromArray(config);
            } else if (isObject(input)) {
              configFromObject(config);
            } else if (isNumber(input)) {
              // from milliseconds
              config._d = new Date(input);
            } else {
              hooks.createFromInputFallback(config);
            }
          }

          function createLocalOrUTC(input, format, locale, strict, isUTC) {
            var c = {};

            if (format === true || format === false) {
              strict = format;
              format = undefined;
            }

            if (locale === true || locale === false) {
              strict = locale;
              locale = undefined;
            }

            if (isObject(input) && isObjectEmpty(input) || isArray(input) && input.length === 0) {
              input = undefined;
            } // object construction must be done this way.
            // https://github.com/moment/moment/issues/1423


            c._isAMomentObject = true;
            c._useUTC = c._isUTC = isUTC;
            c._l = locale;
            c._i = input;
            c._f = format;
            c._strict = strict;
            return createFromConfig(c);
          }

          function createLocal(input, format, locale, strict) {
            return createLocalOrUTC(input, format, locale, strict, false);
          }

          var prototypeMin = deprecate('moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/', function () {
            var other = createLocal.apply(null, arguments);

            if (this.isValid() && other.isValid()) {
              return other < this ? this : other;
            } else {
              return createInvalid();
            }
          }),
              prototypeMax = deprecate('moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/', function () {
            var other = createLocal.apply(null, arguments);

            if (this.isValid() && other.isValid()) {
              return other > this ? this : other;
            } else {
              return createInvalid();
            }
          }); // Pick a moment m from moments so that m[fn](other) is true for all
          // other. This relies on the function fn to be transitive.
          //
          // moments should either be an array of moment objects or an array, whose
          // first element is an array of moment objects.

          function pickBy(fn, moments) {
            var res, i;

            if (moments.length === 1 && isArray(moments[0])) {
              moments = moments[0];
            }

            if (!moments.length) {
              return createLocal();
            }

            res = moments[0];

            for (i = 1; i < moments.length; ++i) {
              if (!moments[i].isValid() || moments[i][fn](res)) {
                res = moments[i];
              }
            }

            return res;
          } // TODO: Use [].sort instead?


          function min() {
            var args = [].slice.call(arguments, 0);
            return pickBy('isBefore', args);
          }

          function max() {
            var args = [].slice.call(arguments, 0);
            return pickBy('isAfter', args);
          }

          var now = function now() {
            return Date.now ? Date.now() : +new Date();
          };

          var ordering = ['year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', 'millisecond'];

          function isDurationValid(m) {
            var key,
                unitHasDecimal = false,
                i;

            for (key in m) {
              if (hasOwnProp(m, key) && !(indexOf.call(ordering, key) !== -1 && (m[key] == null || !isNaN(m[key])))) {
                return false;
              }
            }

            for (i = 0; i < ordering.length; ++i) {
              if (m[ordering[i]]) {
                if (unitHasDecimal) {
                  return false; // only allow non-integers for smallest unit
                }

                if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) {
                  unitHasDecimal = true;
                }
              }
            }

            return true;
          }

          function isValid$1() {
            return this._isValid;
          }

          function createInvalid$1() {
            return createDuration(NaN);
          }

          function Duration(duration) {
            var normalizedInput = normalizeObjectUnits(duration),
                years = normalizedInput.year || 0,
                quarters = normalizedInput.quarter || 0,
                months = normalizedInput.month || 0,
                weeks = normalizedInput.week || normalizedInput.isoWeek || 0,
                days = normalizedInput.day || 0,
                hours = normalizedInput.hour || 0,
                minutes = normalizedInput.minute || 0,
                seconds = normalizedInput.second || 0,
                milliseconds = normalizedInput.millisecond || 0;
            this._isValid = isDurationValid(normalizedInput); // representation for dateAddRemove

            this._milliseconds = +milliseconds + seconds * 1e3 + // 1000
            minutes * 6e4 + // 1000 * 60
            hours * 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978
            // Because of dateAddRemove treats 24 hours as different from a
            // day when working around DST, we need to store them separately

            this._days = +days + weeks * 7; // It is impossible to translate months into days without knowing
            // which months you are are talking about, so we have to store
            // it separately.

            this._months = +months + quarters * 3 + years * 12;
            this._data = {};
            this._locale = getLocale();

            this._bubble();
          }

          function isDuration(obj) {
            return obj instanceof Duration;
          }

          function absRound(number) {
            if (number < 0) {
              return Math.round(-1 * number) * -1;
            } else {
              return Math.round(number);
            }
          } // compare two arrays, return the number of differences


          function compareArrays(array1, array2, dontConvert) {
            var len = Math.min(array1.length, array2.length),
                lengthDiff = Math.abs(array1.length - array2.length),
                diffs = 0,
                i;

            for (i = 0; i < len; i++) {
              if (dontConvert && array1[i] !== array2[i] || !dontConvert && toInt(array1[i]) !== toInt(array2[i])) {
                diffs++;
              }
            }

            return diffs + lengthDiff;
          } // FORMATTING


          function offset(token, separator) {
            addFormatToken(token, 0, 0, function () {
              var offset = this.utcOffset(),
                  sign = '+';

              if (offset < 0) {
                offset = -offset;
                sign = '-';
              }

              return sign + zeroFill(~~(offset / 60), 2) + separator + zeroFill(~~offset % 60, 2);
            });
          }

          offset('Z', ':');
          offset('ZZ', ''); // PARSING

          addRegexToken('Z', matchShortOffset);
          addRegexToken('ZZ', matchShortOffset);
          addParseToken(['Z', 'ZZ'], function (input, array, config) {
            config._useUTC = true;
            config._tzm = offsetFromString(matchShortOffset, input);
          }); // HELPERS
          // timezone chunker
          // '+10:00' > ['10',  '00']
          // '-1530'  > ['-15', '30']

          var chunkOffset = /([\+\-]|\d\d)/gi;

          function offsetFromString(matcher, string) {
            var matches = (string || '').match(matcher),
                chunk,
                parts,
                minutes;

            if (matches === null) {
              return null;
            }

            chunk = matches[matches.length - 1] || [];
            parts = (chunk + '').match(chunkOffset) || ['-', 0, 0];
            minutes = +(parts[1] * 60) + toInt(parts[2]);
            return minutes === 0 ? 0 : parts[0] === '+' ? minutes : -minutes;
          } // Return a moment from input, that is local/utc/zone equivalent to model.


          function cloneWithOffset(input, model) {
            var res, diff;

            if (model._isUTC) {
              res = model.clone();
              diff = (isMoment(input) || isDate(input) ? input.valueOf() : createLocal(input).valueOf()) - res.valueOf(); // Use low-level api, because this fn is low-level api.

              res._d.setTime(res._d.valueOf() + diff);

              hooks.updateOffset(res, false);
              return res;
            } else {
              return createLocal(input).local();
            }
          }

          function getDateOffset(m) {
            // On Firefox.24 Date#getTimezoneOffset returns a floating point.
            // https://github.com/moment/moment/pull/1871
            return -Math.round(m._d.getTimezoneOffset());
          } // HOOKS
          // This function will be called whenever a moment is mutated.
          // It is intended to keep the offset in sync with the timezone.


          hooks.updateOffset = function () {}; // MOMENTS
          // keepLocalTime = true means only change the timezone, without
          // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->
          // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset
          // +0200, so we adjust the time as needed, to be valid.
          //
          // Keeping the time actually adds/subtracts (one hour)
          // from the actual represented time. That is why we call updateOffset
          // a second time. In case it wants us to change the offset again
          // _changeInProgress == true case, then we have to adjust, because
          // there is no such time in the given timezone.


          function getSetOffset(input, keepLocalTime, keepMinutes) {
            var offset = this._offset || 0,
                localAdjust;

            if (!this.isValid()) {
              return input != null ? this : NaN;
            }

            if (input != null) {
              if (typeof input === 'string') {
                input = offsetFromString(matchShortOffset, input);

                if (input === null) {
                  return this;
                }
              } else if (Math.abs(input) < 16 && !keepMinutes) {
                input = input * 60;
              }

              if (!this._isUTC && keepLocalTime) {
                localAdjust = getDateOffset(this);
              }

              this._offset = input;
              this._isUTC = true;

              if (localAdjust != null) {
                this.add(localAdjust, 'm');
              }

              if (offset !== input) {
                if (!keepLocalTime || this._changeInProgress) {
                  addSubtract(this, createDuration(input - offset, 'm'), 1, false);
                } else if (!this._changeInProgress) {
                  this._changeInProgress = true;
                  hooks.updateOffset(this, true);
                  this._changeInProgress = null;
                }
              }

              return this;
            } else {
              return this._isUTC ? offset : getDateOffset(this);
            }
          }

          function getSetZone(input, keepLocalTime) {
            if (input != null) {
              if (typeof input !== 'string') {
                input = -input;
              }

              this.utcOffset(input, keepLocalTime);
              return this;
            } else {
              return -this.utcOffset();
            }
          }

          function setOffsetToUTC(keepLocalTime) {
            return this.utcOffset(0, keepLocalTime);
          }

          function setOffsetToLocal(keepLocalTime) {
            if (this._isUTC) {
              this.utcOffset(0, keepLocalTime);
              this._isUTC = false;

              if (keepLocalTime) {
                this.subtract(getDateOffset(this), 'm');
              }
            }

            return this;
          }

          function setOffsetToParsedOffset() {
            if (this._tzm != null) {
              this.utcOffset(this._tzm, false, true);
            } else if (typeof this._i === 'string') {
              var tZone = offsetFromString(matchOffset, this._i);

              if (tZone != null) {
                this.utcOffset(tZone);
              } else {
                this.utcOffset(0, true);
              }
            }

            return this;
          }

          function hasAlignedHourOffset(input) {
            if (!this.isValid()) {
              return false;
            }

            input = input ? createLocal(input).utcOffset() : 0;
            return (this.utcOffset() - input) % 60 === 0;
          }

          function isDaylightSavingTime() {
            return this.utcOffset() > this.clone().month(0).utcOffset() || this.utcOffset() > this.clone().month(5).utcOffset();
          }

          function isDaylightSavingTimeShifted() {
            if (!isUndefined(this._isDSTShifted)) {
              return this._isDSTShifted;
            }

            var c = {},
                other;
            copyConfig(c, this);
            c = prepareConfig(c);

            if (c._a) {
              other = c._isUTC ? createUTC(c._a) : createLocal(c._a);
              this._isDSTShifted = this.isValid() && compareArrays(c._a, other.toArray()) > 0;
            } else {
              this._isDSTShifted = false;
            }

            return this._isDSTShifted;
          }

          function isLocal() {
            return this.isValid() ? !this._isUTC : false;
          }

          function isUtcOffset() {
            return this.isValid() ? this._isUTC : false;
          }

          function isUtc() {
            return this.isValid() ? this._isUTC && this._offset === 0 : false;
          } // ASP.NET json date format regex


          var aspNetRegex = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,
              // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
          // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
          // and further modified to allow for strings containing both week and day
          isoRegex = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;

          function createDuration(input, key) {
            var duration = input,
                // matching against regexp is expensive, do it on demand
            match = null,
                sign,
                ret,
                diffRes;

            if (isDuration(input)) {
              duration = {
                ms: input._milliseconds,
                d: input._days,
                M: input._months
              };
            } else if (isNumber(input) || !isNaN(+input)) {
              duration = {};

              if (key) {
                duration[key] = +input;
              } else {
                duration.milliseconds = +input;
              }
            } else if (match = aspNetRegex.exec(input)) {
              sign = match[1] === '-' ? -1 : 1;
              duration = {
                y: 0,
                d: toInt(match[DATE]) * sign,
                h: toInt(match[HOUR]) * sign,
                m: toInt(match[MINUTE]) * sign,
                s: toInt(match[SECOND]) * sign,
                ms: toInt(absRound(match[MILLISECOND] * 1000)) * sign // the millisecond decimal point is included in the match

              };
            } else if (match = isoRegex.exec(input)) {
              sign = match[1] === '-' ? -1 : 1;
              duration = {
                y: parseIso(match[2], sign),
                M: parseIso(match[3], sign),
                w: parseIso(match[4], sign),
                d: parseIso(match[5], sign),
                h: parseIso(match[6], sign),
                m: parseIso(match[7], sign),
                s: parseIso(match[8], sign)
              };
            } else if (duration == null) {
              // checks for null or undefined
              duration = {};
            } else if (typeof duration === 'object' && ('from' in duration || 'to' in duration)) {
              diffRes = momentsDifference(createLocal(duration.from), createLocal(duration.to));
              duration = {};
              duration.ms = diffRes.milliseconds;
              duration.M = diffRes.months;
            }

            ret = new Duration(duration);

            if (isDuration(input) && hasOwnProp(input, '_locale')) {
              ret._locale = input._locale;
            }

            if (isDuration(input) && hasOwnProp(input, '_isValid')) {
              ret._isValid = input._isValid;
            }

            return ret;
          }

          createDuration.fn = Duration.prototype;
          createDuration.invalid = createInvalid$1;

          function parseIso(inp, sign) {
            // We'd normally use ~~inp for this, but unfortunately it also
            // converts floats to ints.
            // inp may be undefined, so careful calling replace on it.
            var res = inp && parseFloat(inp.replace(',', '.')); // apply sign while we're at it

            return (isNaN(res) ? 0 : res) * sign;
          }

          function positiveMomentsDifference(base, other) {
            var res = {};
            res.months = other.month() - base.month() + (other.year() - base.year()) * 12;

            if (base.clone().add(res.months, 'M').isAfter(other)) {
              --res.months;
            }

            res.milliseconds = +other - +base.clone().add(res.months, 'M');
            return res;
          }

          function momentsDifference(base, other) {
            var res;

            if (!(base.isValid() && other.isValid())) {
              return {
                milliseconds: 0,
                months: 0
              };
            }

            other = cloneWithOffset(other, base);

            if (base.isBefore(other)) {
              res = positiveMomentsDifference(base, other);
            } else {
              res = positiveMomentsDifference(other, base);
              res.milliseconds = -res.milliseconds;
              res.months = -res.months;
            }

            return res;
          } // TODO: remove 'name' arg after deprecation is removed


          function createAdder(direction, name) {
            return function (val, period) {
              var dur, tmp; //invert the arguments, but complain about it

              if (period !== null && !isNaN(+period)) {
                deprecateSimple(name, 'moment().' + name + '(period, number) is deprecated. Please use moment().' + name + '(number, period). ' + 'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.');
                tmp = val;
                val = period;
                period = tmp;
              }

              dur = createDuration(val, period);
              addSubtract(this, dur, direction);
              return this;
            };
          }

          function addSubtract(mom, duration, isAdding, updateOffset) {
            var milliseconds = duration._milliseconds,
                days = absRound(duration._days),
                months = absRound(duration._months);

            if (!mom.isValid()) {
              // No op
              return;
            }

            updateOffset = updateOffset == null ? true : updateOffset;

            if (months) {
              setMonth(mom, get(mom, 'Month') + months * isAdding);
            }

            if (days) {
              set$1(mom, 'Date', get(mom, 'Date') + days * isAdding);
            }

            if (milliseconds) {
              mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding);
            }

            if (updateOffset) {
              hooks.updateOffset(mom, days || months);
            }
          }

          var add = createAdder(1, 'add'),
              subtract = createAdder(-1, 'subtract');

          function isString(input) {
            return typeof input === 'string' || input instanceof String;
          } // type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined


          function isMomentInput(input) {
            return isMoment(input) || isDate(input) || isString(input) || isNumber(input) || isNumberOrStringArray(input) || isMomentInputObject(input) || input === null || input === undefined;
          }

          function isMomentInputObject(input) {
            var objectTest = isObject(input) && !isObjectEmpty(input),
                propertyTest = false,
                properties = ['years', 'year', 'y', 'months', 'month', 'M', 'days', 'day', 'd', 'dates', 'date', 'D', 'hours', 'hour', 'h', 'minutes', 'minute', 'm', 'seconds', 'second', 's', 'milliseconds', 'millisecond', 'ms'],
                i,
                property;

            for (i = 0; i < properties.length; i += 1) {
              property = properties[i];
              propertyTest = propertyTest || hasOwnProp(input, property);
            }

            return objectTest && propertyTest;
          }

          function isNumberOrStringArray(input) {
            var arrayTest = isArray(input),
                dataTypeTest = false;

            if (arrayTest) {
              dataTypeTest = input.filter(function (item) {
                return !isNumber(item) && isString(input);
              }).length === 0;
            }

            return arrayTest && dataTypeTest;
          }

          function isCalendarSpec(input) {
            var objectTest = isObject(input) && !isObjectEmpty(input),
                propertyTest = false,
                properties = ['sameDay', 'nextDay', 'lastDay', 'nextWeek', 'lastWeek', 'sameElse'],
                i,
                property;

            for (i = 0; i < properties.length; i += 1) {
              property = properties[i];
              propertyTest = propertyTest || hasOwnProp(input, property);
            }

            return objectTest && propertyTest;
          }

          function getCalendarFormat(myMoment, now) {
            var diff = myMoment.diff(now, 'days', true);
            return diff < -6 ? 'sameElse' : diff < -1 ? 'lastWeek' : diff < 0 ? 'lastDay' : diff < 1 ? 'sameDay' : diff < 2 ? 'nextDay' : diff < 7 ? 'nextWeek' : 'sameElse';
          }

          function calendar$1(time, formats) {
            // Support for single parameter, formats only overload to the calendar function
            if (arguments.length === 1) {
              if (!arguments[0]) {
                time = undefined;
                formats = undefined;
              } else if (isMomentInput(arguments[0])) {
                time = arguments[0];
                formats = undefined;
              } else if (isCalendarSpec(arguments[0])) {
                formats = arguments[0];
                time = undefined;
              }
            } // We want to compare the start of today, vs this.
            // Getting start-of-today depends on whether we're local/utc/offset or not.


            var now = time || createLocal(),
                sod = cloneWithOffset(now, this).startOf('day'),
                format = hooks.calendarFormat(this, sod) || 'sameElse',
                output = formats && (isFunction(formats[format]) ? formats[format].call(this, now) : formats[format]);
            return this.format(output || this.localeData().calendar(format, this, createLocal(now)));
          }

          function clone() {
            return new Moment(this);
          }

          function isAfter(input, units) {
            var localInput = isMoment(input) ? input : createLocal(input);

            if (!(this.isValid() && localInput.isValid())) {
              return false;
            }

            units = normalizeUnits(units) || 'millisecond';

            if (units === 'millisecond') {
              return this.valueOf() > localInput.valueOf();
            } else {
              return localInput.valueOf() < this.clone().startOf(units).valueOf();
            }
          }

          function isBefore(input, units) {
            var localInput = isMoment(input) ? input : createLocal(input);

            if (!(this.isValid() && localInput.isValid())) {
              return false;
            }

            units = normalizeUnits(units) || 'millisecond';

            if (units === 'millisecond') {
              return this.valueOf() < localInput.valueOf();
            } else {
              return this.clone().endOf(units).valueOf() < localInput.valueOf();
            }
          }

          function isBetween(from, to, units, inclusivity) {
            var localFrom = isMoment(from) ? from : createLocal(from),
                localTo = isMoment(to) ? to : createLocal(to);

            if (!(this.isValid() && localFrom.isValid() && localTo.isValid())) {
              return false;
            }

            inclusivity = inclusivity || '()';
            return (inclusivity[0] === '(' ? this.isAfter(localFrom, units) : !this.isBefore(localFrom, units)) && (inclusivity[1] === ')' ? this.isBefore(localTo, units) : !this.isAfter(localTo, units));
          }

          function isSame(input, units) {
            var localInput = isMoment(input) ? input : createLocal(input),
                inputMs;

            if (!(this.isValid() && localInput.isValid())) {
              return false;
            }

            units = normalizeUnits(units) || 'millisecond';

            if (units === 'millisecond') {
              return this.valueOf() === localInput.valueOf();
            } else {
              inputMs = localInput.valueOf();
              return this.clone().startOf(units).valueOf() <= inputMs && inputMs <= this.clone().endOf(units).valueOf();
            }
          }

          function isSameOrAfter(input, units) {
            return this.isSame(input, units) || this.isAfter(input, units);
          }

          function isSameOrBefore(input, units) {
            return this.isSame(input, units) || this.isBefore(input, units);
          }

          function diff(input, units, asFloat) {
            var that, zoneDelta, output;

            if (!this.isValid()) {
              return NaN;
            }

            that = cloneWithOffset(input, this);

            if (!that.isValid()) {
              return NaN;
            }

            zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4;
            units = normalizeUnits(units);

            switch (units) {
              case 'year':
                output = monthDiff(this, that) / 12;
                break;

              case 'month':
                output = monthDiff(this, that);
                break;

              case 'quarter':
                output = monthDiff(this, that) / 3;
                break;

              case 'second':
                output = (this - that) / 1e3;
                break;
              // 1000

              case 'minute':
                output = (this - that) / 6e4;
                break;
              // 1000 * 60

              case 'hour':
                output = (this - that) / 36e5;
                break;
              // 1000 * 60 * 60

              case 'day':
                output = (this - that - zoneDelta) / 864e5;
                break;
              // 1000 * 60 * 60 * 24, negate dst

              case 'week':
                output = (this - that - zoneDelta) / 6048e5;
                break;
              // 1000 * 60 * 60 * 24 * 7, negate dst

              default:
                output = this - that;
            }

            return asFloat ? output : absFloor(output);
          }

          function monthDiff(a, b) {
            if (a.date() < b.date()) {
              // end-of-month calculations work correct when the start month has more
              // days than the end month.
              return -monthDiff(b, a);
            } // difference in months


            var wholeMonthDiff = (b.year() - a.year()) * 12 + (b.month() - a.month()),
                // b is in (anchor - 1 month, anchor + 1 month)
            anchor = a.clone().add(wholeMonthDiff, 'months'),
                anchor2,
                adjust;

            if (b - anchor < 0) {
              anchor2 = a.clone().add(wholeMonthDiff - 1, 'months'); // linear across the month

              adjust = (b - anchor) / (anchor - anchor2);
            } else {
              anchor2 = a.clone().add(wholeMonthDiff + 1, 'months'); // linear across the month

              adjust = (b - anchor) / (anchor2 - anchor);
            } //check for negative zero, return zero if negative zero


            return -(wholeMonthDiff + adjust) || 0;
          }

          hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ';
          hooks.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]';

          function toString() {
            return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');
          }

          function toISOString(keepOffset) {
            if (!this.isValid()) {
              return null;
            }

            var utc = keepOffset !== true,
                m = utc ? this.clone().utc() : this;

            if (m.year() < 0 || m.year() > 9999) {
              return formatMoment(m, utc ? 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ');
            }

            if (isFunction(Date.prototype.toISOString)) {
              // native implementation is ~50x faster, use it when we can
              if (utc) {
                return this.toDate().toISOString();
              } else {
                return new Date(this.valueOf() + this.utcOffset() * 60 * 1000).toISOString().replace('Z', formatMoment(m, 'Z'));
              }
            }

            return formatMoment(m, utc ? 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYY-MM-DD[T]HH:mm:ss.SSSZ');
          }
          /**
           * Return a human readable representation of a moment that can
           * also be evaluated to get a new moment which is the same
           *
           * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects
           */


          function inspect() {
            if (!this.isValid()) {
              return 'moment.invalid(/* ' + this._i + ' */)';
            }

            var func = 'moment',
                zone = '',
                prefix,
                year,
                datetime,
                suffix;

            if (!this.isLocal()) {
              func = this.utcOffset() === 0 ? 'moment.utc' : 'moment.parseZone';
              zone = 'Z';
            }

            prefix = '[' + func + '("]';
            year = 0 <= this.year() && this.year() <= 9999 ? 'YYYY' : 'YYYYYY';
            datetime = '-MM-DD[T]HH:mm:ss.SSS';
            suffix = zone + '[")]';
            return this.format(prefix + year + datetime + suffix);
          }

          function format(inputString) {
            if (!inputString) {
              inputString = this.isUtc() ? hooks.defaultFormatUtc : hooks.defaultFormat;
            }

            var output = formatMoment(this, inputString);
            return this.localeData().postformat(output);
          }

          function from(time, withoutSuffix) {
            if (this.isValid() && (isMoment(time) && time.isValid() || createLocal(time).isValid())) {
              return createDuration({
                to: this,
                from: time
              }).locale(this.locale()).humanize(!withoutSuffix);
            } else {
              return this.localeData().invalidDate();
            }
          }

          function fromNow(withoutSuffix) {
            return this.from(createLocal(), withoutSuffix);
          }

          function to(time, withoutSuffix) {
            if (this.isValid() && (isMoment(time) && time.isValid() || createLocal(time).isValid())) {
              return createDuration({
                from: this,
                to: time
              }).locale(this.locale()).humanize(!withoutSuffix);
            } else {
              return this.localeData().invalidDate();
            }
          }

          function toNow(withoutSuffix) {
            return this.to(createLocal(), withoutSuffix);
          } // If passed a locale key, it will set the locale for this
          // instance.  Otherwise, it will return the locale configuration
          // variables for this instance.


          function locale(key) {
            var newLocaleData;

            if (key === undefined) {
              return this._locale._abbr;
            } else {
              newLocaleData = getLocale(key);

              if (newLocaleData != null) {
                this._locale = newLocaleData;
              }

              return this;
            }
          }

          var lang = deprecate('moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.', function (key) {
            if (key === undefined) {
              return this.localeData();
            } else {
              return this.locale(key);
            }
          });

          function localeData() {
            return this._locale;
          }

          var MS_PER_SECOND = 1000,
              MS_PER_MINUTE = 60 * MS_PER_SECOND,
              MS_PER_HOUR = 60 * MS_PER_MINUTE,
              MS_PER_400_YEARS = (365 * 400 + 97) * 24 * MS_PER_HOUR; // actual modulo - handles negative numbers (for dates before 1970):

          function mod$1(dividend, divisor) {
            return (dividend % divisor + divisor) % divisor;
          }

          function localStartOfDate(y, m, d) {
            // the date constructor remaps years 0-99 to 1900-1999
            if (y < 100 && y >= 0) {
              // preserve leap years using a full 400 year cycle, then reset
              return new Date(y + 400, m, d) - MS_PER_400_YEARS;
            } else {
              return new Date(y, m, d).valueOf();
            }
          }

          function utcStartOfDate(y, m, d) {
            // Date.UTC remaps years 0-99 to 1900-1999
            if (y < 100 && y >= 0) {
              // preserve leap years using a full 400 year cycle, then reset
              return Date.UTC(y + 400, m, d) - MS_PER_400_YEARS;
            } else {
              return Date.UTC(y, m, d);
            }
          }

          function startOf(units) {
            var time, startOfDate;
            units = normalizeUnits(units);

            if (units === undefined || units === 'millisecond' || !this.isValid()) {
              return this;
            }

            startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;

            switch (units) {
              case 'year':
                time = startOfDate(this.year(), 0, 1);
                break;

              case 'quarter':
                time = startOfDate(this.year(), this.month() - this.month() % 3, 1);
                break;

              case 'month':
                time = startOfDate(this.year(), this.month(), 1);
                break;

              case 'week':
                time = startOfDate(this.year(), this.month(), this.date() - this.weekday());
                break;

              case 'isoWeek':
                time = startOfDate(this.year(), this.month(), this.date() - (this.isoWeekday() - 1));
                break;

              case 'day':
              case 'date':
                time = startOfDate(this.year(), this.month(), this.date());
                break;

              case 'hour':
                time = this._d.valueOf();
                time -= mod$1(time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE), MS_PER_HOUR);
                break;

              case 'minute':
                time = this._d.valueOf();
                time -= mod$1(time, MS_PER_MINUTE);
                break;

              case 'second':
                time = this._d.valueOf();
                time -= mod$1(time, MS_PER_SECOND);
                break;
            }

            this._d.setTime(time);

            hooks.updateOffset(this, true);
            return this;
          }

          function endOf(units) {
            var time, startOfDate;
            units = normalizeUnits(units);

            if (units === undefined || units === 'millisecond' || !this.isValid()) {
              return this;
            }

            startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;

            switch (units) {
              case 'year':
                time = startOfDate(this.year() + 1, 0, 1) - 1;
                break;

              case 'quarter':
                time = startOfDate(this.year(), this.month() - this.month() % 3 + 3, 1) - 1;
                break;

              case 'month':
                time = startOfDate(this.year(), this.month() + 1, 1) - 1;
                break;

              case 'week':
                time = startOfDate(this.year(), this.month(), this.date() - this.weekday() + 7) - 1;
                break;

              case 'isoWeek':
                time = startOfDate(this.year(), this.month(), this.date() - (this.isoWeekday() - 1) + 7) - 1;
                break;

              case 'day':
              case 'date':
                time = startOfDate(this.year(), this.month(), this.date() + 1) - 1;
                break;

              case 'hour':
                time = this._d.valueOf();
                time += MS_PER_HOUR - mod$1(time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE), MS_PER_HOUR) - 1;
                break;

              case 'minute':
                time = this._d.valueOf();
                time += MS_PER_MINUTE - mod$1(time, MS_PER_MINUTE) - 1;
                break;

              case 'second':
                time = this._d.valueOf();
                time += MS_PER_SECOND - mod$1(time, MS_PER_SECOND) - 1;
                break;
            }

            this._d.setTime(time);

            hooks.updateOffset(this, true);
            return this;
          }

          function valueOf() {
            return this._d.valueOf() - (this._offset || 0) * 60000;
          }

          function unix() {
            return Math.floor(this.valueOf() / 1000);
          }

          function toDate() {
            return new Date(this.valueOf());
          }

          function toArray() {
            var m = this;
            return [m.year(), m.month(), m.date(), m.hour(), m.minute(), m.second(), m.millisecond()];
          }

          function toObject() {
            var m = this;
            return {
              years: m.year(),
              months: m.month(),
              date: m.date(),
              hours: m.hours(),
              minutes: m.minutes(),
              seconds: m.seconds(),
              milliseconds: m.milliseconds()
            };
          }

          function toJSON() {
            // new Date(NaN).toJSON() === null
            return this.isValid() ? this.toISOString() : null;
          }

          function isValid$2() {
            return isValid(this);
          }

          function parsingFlags() {
            return extend({}, getParsingFlags(this));
          }

          function invalidAt() {
            return getParsingFlags(this).overflow;
          }

          function creationData() {
            return {
              input: this._i,
              format: this._f,
              locale: this._locale,
              isUTC: this._isUTC,
              strict: this._strict
            };
          }

          addFormatToken('N', 0, 0, 'eraAbbr');
          addFormatToken('NN', 0, 0, 'eraAbbr');
          addFormatToken('NNN', 0, 0, 'eraAbbr');
          addFormatToken('NNNN', 0, 0, 'eraName');
          addFormatToken('NNNNN', 0, 0, 'eraNarrow');
          addFormatToken('y', ['y', 1], 'yo', 'eraYear');
          addFormatToken('y', ['yy', 2], 0, 'eraYear');
          addFormatToken('y', ['yyy', 3], 0, 'eraYear');
          addFormatToken('y', ['yyyy', 4], 0, 'eraYear');
          addRegexToken('N', matchEraAbbr);
          addRegexToken('NN', matchEraAbbr);
          addRegexToken('NNN', matchEraAbbr);
          addRegexToken('NNNN', matchEraName);
          addRegexToken('NNNNN', matchEraNarrow);
          addParseToken(['N', 'NN', 'NNN', 'NNNN', 'NNNNN'], function (input, array, config, token) {
            var era = config._locale.erasParse(input, token, config._strict);

            if (era) {
              getParsingFlags(config).era = era;
            } else {
              getParsingFlags(config).invalidEra = input;
            }
          });
          addRegexToken('y', matchUnsigned);
          addRegexToken('yy', matchUnsigned);
          addRegexToken('yyy', matchUnsigned);
          addRegexToken('yyyy', matchUnsigned);
          addRegexToken('yo', matchEraYearOrdinal);
          addParseToken(['y', 'yy', 'yyy', 'yyyy'], YEAR);
          addParseToken(['yo'], function (input, array, config, token) {
            var match;

            if (config._locale._eraYearOrdinalRegex) {
              match = input.match(config._locale._eraYearOrdinalRegex);
            }

            if (config._locale.eraYearOrdinalParse) {
              array[YEAR] = config._locale.eraYearOrdinalParse(input, match);
            } else {
              array[YEAR] = parseInt(input, 10);
            }
          });

          function localeEras(m, format) {
            var i,
                l,
                date,
                eras = this._eras || getLocale('en')._eras;

            for (i = 0, l = eras.length; i < l; ++i) {
              switch (typeof eras[i].since) {
                case 'string':
                  // truncate time
                  date = hooks(eras[i].since).startOf('day');
                  eras[i].since = date.valueOf();
                  break;
              }

              switch (typeof eras[i].until) {
                case 'undefined':
                  eras[i].until = +Infinity;
                  break;

                case 'string':
                  // truncate time
                  date = hooks(eras[i].until).startOf('day').valueOf();
                  eras[i].until = date.valueOf();
                  break;
              }
            }

            return eras;
          }

          function localeErasParse(eraName, format, strict) {
            var i,
                l,
                eras = this.eras(),
                name,
                abbr,
                narrow;
            eraName = eraName.toUpperCase();

            for (i = 0, l = eras.length; i < l; ++i) {
              name = eras[i].name.toUpperCase();
              abbr = eras[i].abbr.toUpperCase();
              narrow = eras[i].narrow.toUpperCase();

              if (strict) {
                switch (format) {
                  case 'N':
                  case 'NN':
                  case 'NNN':
                    if (abbr === eraName) {
                      return eras[i];
                    }

                    break;

                  case 'NNNN':
                    if (name === eraName) {
                      return eras[i];
                    }

                    break;

                  case 'NNNNN':
                    if (narrow === eraName) {
                      return eras[i];
                    }

                    break;
                }
              } else if ([name, abbr, narrow].indexOf(eraName) >= 0) {
                return eras[i];
              }
            }
          }

          function localeErasConvertYear(era, year) {
            var dir = era.since <= era.until ? +1 : -1;

            if (year === undefined) {
              return hooks(era.since).year();
            } else {
              return hooks(era.since).year() + (year - era.offset) * dir;
            }
          }

          function getEraName() {
            var i,
                l,
                val,
                eras = this.localeData().eras();

            for (i = 0, l = eras.length; i < l; ++i) {
              // truncate time
              val = this.clone().startOf('day').valueOf();

              if (eras[i].since <= val && val <= eras[i].until) {
                return eras[i].name;
              }

              if (eras[i].until <= val && val <= eras[i].since) {
                return eras[i].name;
              }
            }

            return '';
          }

          function getEraNarrow() {
            var i,
                l,
                val,
                eras = this.localeData().eras();

            for (i = 0, l = eras.length; i < l; ++i) {
              // truncate time
              val = this.clone().startOf('day').valueOf();

              if (eras[i].since <= val && val <= eras[i].until) {
                return eras[i].narrow;
              }

              if (eras[i].until <= val && val <= eras[i].since) {
                return eras[i].narrow;
              }
            }

            return '';
          }

          function getEraAbbr() {
            var i,
                l,
                val,
                eras = this.localeData().eras();

            for (i = 0, l = eras.length; i < l; ++i) {
              // truncate time
              val = this.clone().startOf('day').valueOf();

              if (eras[i].since <= val && val <= eras[i].until) {
                return eras[i].abbr;
              }

              if (eras[i].until <= val && val <= eras[i].since) {
                return eras[i].abbr;
              }
            }

            return '';
          }

          function getEraYear() {
            var i,
                l,
                dir,
                val,
                eras = this.localeData().eras();

            for (i = 0, l = eras.length; i < l; ++i) {
              dir = eras[i].since <= eras[i].until ? +1 : -1; // truncate time

              val = this.clone().startOf('day').valueOf();

              if (eras[i].since <= val && val <= eras[i].until || eras[i].until <= val && val <= eras[i].since) {
                return (this.year() - hooks(eras[i].since).year()) * dir + eras[i].offset;
              }
            }

            return this.year();
          }

          function erasNameRegex(isStrict) {
            if (!hasOwnProp(this, '_erasNameRegex')) {
              computeErasParse.call(this);
            }

            return isStrict ? this._erasNameRegex : this._erasRegex;
          }

          function erasAbbrRegex(isStrict) {
            if (!hasOwnProp(this, '_erasAbbrRegex')) {
              computeErasParse.call(this);
            }

            return isStrict ? this._erasAbbrRegex : this._erasRegex;
          }

          function erasNarrowRegex(isStrict) {
            if (!hasOwnProp(this, '_erasNarrowRegex')) {
              computeErasParse.call(this);
            }

            return isStrict ? this._erasNarrowRegex : this._erasRegex;
          }

          function matchEraAbbr(isStrict, locale) {
            return locale.erasAbbrRegex(isStrict);
          }

          function matchEraName(isStrict, locale) {
            return locale.erasNameRegex(isStrict);
          }

          function matchEraNarrow(isStrict, locale) {
            return locale.erasNarrowRegex(isStrict);
          }

          function matchEraYearOrdinal(isStrict, locale) {
            return locale._eraYearOrdinalRegex || matchUnsigned;
          }

          function computeErasParse() {
            var abbrPieces = [],
                namePieces = [],
                narrowPieces = [],
                mixedPieces = [],
                i,
                l,
                eras = this.eras();

            for (i = 0, l = eras.length; i < l; ++i) {
              namePieces.push(regexEscape(eras[i].name));
              abbrPieces.push(regexEscape(eras[i].abbr));
              narrowPieces.push(regexEscape(eras[i].narrow));
              mixedPieces.push(regexEscape(eras[i].name));
              mixedPieces.push(regexEscape(eras[i].abbr));
              mixedPieces.push(regexEscape(eras[i].narrow));
            }

            this._erasRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
            this._erasNameRegex = new RegExp('^(' + namePieces.join('|') + ')', 'i');
            this._erasAbbrRegex = new RegExp('^(' + abbrPieces.join('|') + ')', 'i');
            this._erasNarrowRegex = new RegExp('^(' + narrowPieces.join('|') + ')', 'i');
          } // FORMATTING


          addFormatToken(0, ['gg', 2], 0, function () {
            return this.weekYear() % 100;
          });
          addFormatToken(0, ['GG', 2], 0, function () {
            return this.isoWeekYear() % 100;
          });

          function addWeekYearFormatToken(token, getter) {
            addFormatToken(0, [token, token.length], 0, getter);
          }

          addWeekYearFormatToken('gggg', 'weekYear');
          addWeekYearFormatToken('ggggg', 'weekYear');
          addWeekYearFormatToken('GGGG', 'isoWeekYear');
          addWeekYearFormatToken('GGGGG', 'isoWeekYear'); // ALIASES

          addUnitAlias('weekYear', 'gg');
          addUnitAlias('isoWeekYear', 'GG'); // PRIORITY

          addUnitPriority('weekYear', 1);
          addUnitPriority('isoWeekYear', 1); // PARSING

          addRegexToken('G', matchSigned);
          addRegexToken('g', matchSigned);
          addRegexToken('GG', match1to2, match2);
          addRegexToken('gg', match1to2, match2);
          addRegexToken('GGGG', match1to4, match4);
          addRegexToken('gggg', match1to4, match4);
          addRegexToken('GGGGG', match1to6, match6);
          addRegexToken('ggggg', match1to6, match6);
          addWeekParseToken(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function (input, week, config, token) {
            week[token.substr(0, 2)] = toInt(input);
          });
          addWeekParseToken(['gg', 'GG'], function (input, week, config, token) {
            week[token] = hooks.parseTwoDigitYear(input);
          }); // MOMENTS

          function getSetWeekYear(input) {
            return getSetWeekYearHelper.call(this, input, this.week(), this.weekday(), this.localeData()._week.dow, this.localeData()._week.doy);
          }

          function getSetISOWeekYear(input) {
            return getSetWeekYearHelper.call(this, input, this.isoWeek(), this.isoWeekday(), 1, 4);
          }

          function getISOWeeksInYear() {
            return weeksInYear(this.year(), 1, 4);
          }

          function getISOWeeksInISOWeekYear() {
            return weeksInYear(this.isoWeekYear(), 1, 4);
          }

          function getWeeksInYear() {
            var weekInfo = this.localeData()._week;

            return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy);
          }

          function getWeeksInWeekYear() {
            var weekInfo = this.localeData()._week;

            return weeksInYear(this.weekYear(), weekInfo.dow, weekInfo.doy);
          }

          function getSetWeekYearHelper(input, week, weekday, dow, doy) {
            var weeksTarget;

            if (input == null) {
              return weekOfYear(this, dow, doy).year;
            } else {
              weeksTarget = weeksInYear(input, dow, doy);

              if (week > weeksTarget) {
                week = weeksTarget;
              }

              return setWeekAll.call(this, input, week, weekday, dow, doy);
            }
          }

          function setWeekAll(weekYear, week, weekday, dow, doy) {
            var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy),
                date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear);
            this.year(date.getUTCFullYear());
            this.month(date.getUTCMonth());
            this.date(date.getUTCDate());
            return this;
          } // FORMATTING


          addFormatToken('Q', 0, 'Qo', 'quarter'); // ALIASES

          addUnitAlias('quarter', 'Q'); // PRIORITY

          addUnitPriority('quarter', 7); // PARSING

          addRegexToken('Q', match1);
          addParseToken('Q', function (input, array) {
            array[MONTH] = (toInt(input) - 1) * 3;
          }); // MOMENTS

          function getSetQuarter(input) {
            return input == null ? Math.ceil((this.month() + 1) / 3) : this.month((input - 1) * 3 + this.month() % 3);
          } // FORMATTING


          addFormatToken('D', ['DD', 2], 'Do', 'date'); // ALIASES

          addUnitAlias('date', 'D'); // PRIORITY

          addUnitPriority('date', 9); // PARSING

          addRegexToken('D', match1to2);
          addRegexToken('DD', match1to2, match2);
          addRegexToken('Do', function (isStrict, locale) {
            // TODO: Remove "ordinalParse" fallback in next major release.
            return isStrict ? locale._dayOfMonthOrdinalParse || locale._ordinalParse : locale._dayOfMonthOrdinalParseLenient;
          });
          addParseToken(['D', 'DD'], DATE);
          addParseToken('Do', function (input, array) {
            array[DATE] = toInt(input.match(match1to2)[0]);
          }); // MOMENTS

          var getSetDayOfMonth = makeGetSet('Date', true); // FORMATTING

          addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear'); // ALIASES

          addUnitAlias('dayOfYear', 'DDD'); // PRIORITY

          addUnitPriority('dayOfYear', 4); // PARSING

          addRegexToken('DDD', match1to3);
          addRegexToken('DDDD', match3);
          addParseToken(['DDD', 'DDDD'], function (input, array, config) {
            config._dayOfYear = toInt(input);
          }); // HELPERS
          // MOMENTS

          function getSetDayOfYear(input) {
            var dayOfYear = Math.round((this.clone().startOf('day') - this.clone().startOf('year')) / 864e5) + 1;
            return input == null ? dayOfYear : this.add(input - dayOfYear, 'd');
          } // FORMATTING


          addFormatToken('m', ['mm', 2], 0, 'minute'); // ALIASES

          addUnitAlias('minute', 'm'); // PRIORITY

          addUnitPriority('minute', 14); // PARSING

          addRegexToken('m', match1to2);
          addRegexToken('mm', match1to2, match2);
          addParseToken(['m', 'mm'], MINUTE); // MOMENTS

          var getSetMinute = makeGetSet('Minutes', false); // FORMATTING

          addFormatToken('s', ['ss', 2], 0, 'second'); // ALIASES

          addUnitAlias('second', 's'); // PRIORITY

          addUnitPriority('second', 15); // PARSING

          addRegexToken('s', match1to2);
          addRegexToken('ss', match1to2, match2);
          addParseToken(['s', 'ss'], SECOND); // MOMENTS

          var getSetSecond = makeGetSet('Seconds', false); // FORMATTING

          addFormatToken('S', 0, 0, function () {
            return ~~(this.millisecond() / 100);
          });
          addFormatToken(0, ['SS', 2], 0, function () {
            return ~~(this.millisecond() / 10);
          });
          addFormatToken(0, ['SSS', 3], 0, 'millisecond');
          addFormatToken(0, ['SSSS', 4], 0, function () {
            return this.millisecond() * 10;
          });
          addFormatToken(0, ['SSSSS', 5], 0, function () {
            return this.millisecond() * 100;
          });
          addFormatToken(0, ['SSSSSS', 6], 0, function () {
            return this.millisecond() * 1000;
          });
          addFormatToken(0, ['SSSSSSS', 7], 0, function () {
            return this.millisecond() * 10000;
          });
          addFormatToken(0, ['SSSSSSSS', 8], 0, function () {
            return this.millisecond() * 100000;
          });
          addFormatToken(0, ['SSSSSSSSS', 9], 0, function () {
            return this.millisecond() * 1000000;
          }); // ALIASES

          addUnitAlias('millisecond', 'ms'); // PRIORITY

          addUnitPriority('millisecond', 16); // PARSING

          addRegexToken('S', match1to3, match1);
          addRegexToken('SS', match1to3, match2);
          addRegexToken('SSS', match1to3, match3);
          var token, getSetMillisecond;

          for (token = 'SSSS'; token.length <= 9; token += 'S') {
            addRegexToken(token, matchUnsigned);
          }

          function parseMs(input, array) {
            array[MILLISECOND] = toInt(('0.' + input) * 1000);
          }

          for (token = 'S'; token.length <= 9; token += 'S') {
            addParseToken(token, parseMs);
          }

          getSetMillisecond = makeGetSet('Milliseconds', false); // FORMATTING

          addFormatToken('z', 0, 0, 'zoneAbbr');
          addFormatToken('zz', 0, 0, 'zoneName'); // MOMENTS

          function getZoneAbbr() {
            return this._isUTC ? 'UTC' : '';
          }

          function getZoneName() {
            return this._isUTC ? 'Coordinated Universal Time' : '';
          }

          var proto = Moment.prototype;
          proto.add = add;
          proto.calendar = calendar$1;
          proto.clone = clone;
          proto.diff = diff;
          proto.endOf = endOf;
          proto.format = format;
          proto.from = from;
          proto.fromNow = fromNow;
          proto.to = to;
          proto.toNow = toNow;
          proto.get = stringGet;
          proto.invalidAt = invalidAt;
          proto.isAfter = isAfter;
          proto.isBefore = isBefore;
          proto.isBetween = isBetween;
          proto.isSame = isSame;
          proto.isSameOrAfter = isSameOrAfter;
          proto.isSameOrBefore = isSameOrBefore;
          proto.isValid = isValid$2;
          proto.lang = lang;
          proto.locale = locale;
          proto.localeData = localeData;
          proto.max = prototypeMax;
          proto.min = prototypeMin;
          proto.parsingFlags = parsingFlags;
          proto.set = stringSet;
          proto.startOf = startOf;
          proto.subtract = subtract;
          proto.toArray = toArray;
          proto.toObject = toObject;
          proto.toDate = toDate;
          proto.toISOString = toISOString;
          proto.inspect = inspect;

          if (typeof Symbol !== 'undefined' && Symbol["for"] != null) {
            proto[Symbol["for"]('nodejs.util.inspect.custom')] = function () {
              return 'Moment<' + this.format() + '>';
            };
          }

          proto.toJSON = toJSON;
          proto.toString = toString;
          proto.unix = unix;
          proto.valueOf = valueOf;
          proto.creationData = creationData;
          proto.eraName = getEraName;
          proto.eraNarrow = getEraNarrow;
          proto.eraAbbr = getEraAbbr;
          proto.eraYear = getEraYear;
          proto.year = getSetYear;
          proto.isLeapYear = getIsLeapYear;
          proto.weekYear = getSetWeekYear;
          proto.isoWeekYear = getSetISOWeekYear;
          proto.quarter = proto.quarters = getSetQuarter;
          proto.month = getSetMonth;
          proto.daysInMonth = getDaysInMonth;
          proto.week = proto.weeks = getSetWeek;
          proto.isoWeek = proto.isoWeeks = getSetISOWeek;
          proto.weeksInYear = getWeeksInYear;
          proto.weeksInWeekYear = getWeeksInWeekYear;
          proto.isoWeeksInYear = getISOWeeksInYear;
          proto.isoWeeksInISOWeekYear = getISOWeeksInISOWeekYear;
          proto.date = getSetDayOfMonth;
          proto.day = proto.days = getSetDayOfWeek;
          proto.weekday = getSetLocaleDayOfWeek;
          proto.isoWeekday = getSetISODayOfWeek;
          proto.dayOfYear = getSetDayOfYear;
          proto.hour = proto.hours = getSetHour;
          proto.minute = proto.minutes = getSetMinute;
          proto.second = proto.seconds = getSetSecond;
          proto.millisecond = proto.milliseconds = getSetMillisecond;
          proto.utcOffset = getSetOffset;
          proto.utc = setOffsetToUTC;
          proto.local = setOffsetToLocal;
          proto.parseZone = setOffsetToParsedOffset;
          proto.hasAlignedHourOffset = hasAlignedHourOffset;
          proto.isDST = isDaylightSavingTime;
          proto.isLocal = isLocal;
          proto.isUtcOffset = isUtcOffset;
          proto.isUtc = isUtc;
          proto.isUTC = isUtc;
          proto.zoneAbbr = getZoneAbbr;
          proto.zoneName = getZoneName;
          proto.dates = deprecate('dates accessor is deprecated. Use date instead.', getSetDayOfMonth);
          proto.months = deprecate('months accessor is deprecated. Use month instead', getSetMonth);
          proto.years = deprecate('years accessor is deprecated. Use year instead', getSetYear);
          proto.zone = deprecate('moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/', getSetZone);
          proto.isDSTShifted = deprecate('isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information', isDaylightSavingTimeShifted);

          function createUnix(input) {
            return createLocal(input * 1000);
          }

          function createInZone() {
            return createLocal.apply(null, arguments).parseZone();
          }

          function preParsePostFormat(string) {
            return string;
          }

          var proto$1 = Locale.prototype;
          proto$1.calendar = calendar;
          proto$1.longDateFormat = longDateFormat;
          proto$1.invalidDate = invalidDate;
          proto$1.ordinal = ordinal;
          proto$1.preparse = preParsePostFormat;
          proto$1.postformat = preParsePostFormat;
          proto$1.relativeTime = relativeTime;
          proto$1.pastFuture = pastFuture;
          proto$1.set = set;
          proto$1.eras = localeEras;
          proto$1.erasParse = localeErasParse;
          proto$1.erasConvertYear = localeErasConvertYear;
          proto$1.erasAbbrRegex = erasAbbrRegex;
          proto$1.erasNameRegex = erasNameRegex;
          proto$1.erasNarrowRegex = erasNarrowRegex;
          proto$1.months = localeMonths;
          proto$1.monthsShort = localeMonthsShort;
          proto$1.monthsParse = localeMonthsParse;
          proto$1.monthsRegex = monthsRegex;
          proto$1.monthsShortRegex = monthsShortRegex;
          proto$1.week = localeWeek;
          proto$1.firstDayOfYear = localeFirstDayOfYear;
          proto$1.firstDayOfWeek = localeFirstDayOfWeek;
          proto$1.weekdays = localeWeekdays;
          proto$1.weekdaysMin = localeWeekdaysMin;
          proto$1.weekdaysShort = localeWeekdaysShort;
          proto$1.weekdaysParse = localeWeekdaysParse;
          proto$1.weekdaysRegex = weekdaysRegex;
          proto$1.weekdaysShortRegex = weekdaysShortRegex;
          proto$1.weekdaysMinRegex = weekdaysMinRegex;
          proto$1.isPM = localeIsPM;
          proto$1.meridiem = localeMeridiem;

          function get$1(format, index, field, setter) {
            var locale = getLocale(),
                utc = createUTC().set(setter, index);
            return locale[field](utc, format);
          }

          function listMonthsImpl(format, index, field) {
            if (isNumber(format)) {
              index = format;
              format = undefined;
            }

            format = format || '';

            if (index != null) {
              return get$1(format, index, field, 'month');
            }

            var i,
                out = [];

            for (i = 0; i < 12; i++) {
              out[i] = get$1(format, i, field, 'month');
            }

            return out;
          } // ()
          // (5)
          // (fmt, 5)
          // (fmt)
          // (true)
          // (true, 5)
          // (true, fmt, 5)
          // (true, fmt)


          function listWeekdaysImpl(localeSorted, format, index, field) {
            if (typeof localeSorted === 'boolean') {
              if (isNumber(format)) {
                index = format;
                format = undefined;
              }

              format = format || '';
            } else {
              format = localeSorted;
              index = format;
              localeSorted = false;

              if (isNumber(format)) {
                index = format;
                format = undefined;
              }

              format = format || '';
            }

            var locale = getLocale(),
                shift = localeSorted ? locale._week.dow : 0,
                i,
                out = [];

            if (index != null) {
              return get$1(format, (index + shift) % 7, field, 'day');
            }

            for (i = 0; i < 7; i++) {
              out[i] = get$1(format, (i + shift) % 7, field, 'day');
            }

            return out;
          }

          function listMonths(format, index) {
            return listMonthsImpl(format, index, 'months');
          }

          function listMonthsShort(format, index) {
            return listMonthsImpl(format, index, 'monthsShort');
          }

          function listWeekdays(localeSorted, format, index) {
            return listWeekdaysImpl(localeSorted, format, index, 'weekdays');
          }

          function listWeekdaysShort(localeSorted, format, index) {
            return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort');
          }

          function listWeekdaysMin(localeSorted, format, index) {
            return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin');
          }

          getSetGlobalLocale('en', {
            eras: [{
              since: '0001-01-01',
              until: +Infinity,
              offset: 1,
              name: 'Anno Domini',
              narrow: 'AD',
              abbr: 'AD'
            }, {
              since: '0000-12-31',
              until: -Infinity,
              offset: 1,
              name: 'Before Christ',
              narrow: 'BC',
              abbr: 'BC'
            }],
            dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
            ordinal: function ordinal(number) {
              var b = number % 10,
                  output = toInt(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';
              return number + output;
            }
          }); // Side effect imports

          hooks.lang = deprecate('moment.lang is deprecated. Use moment.locale instead.', getSetGlobalLocale);
          hooks.langData = deprecate('moment.langData is deprecated. Use moment.localeData instead.', getLocale);
          var mathAbs = Math.abs;

          function abs() {
            var data = this._data;
            this._milliseconds = mathAbs(this._milliseconds);
            this._days = mathAbs(this._days);
            this._months = mathAbs(this._months);
            data.milliseconds = mathAbs(data.milliseconds);
            data.seconds = mathAbs(data.seconds);
            data.minutes = mathAbs(data.minutes);
            data.hours = mathAbs(data.hours);
            data.months = mathAbs(data.months);
            data.years = mathAbs(data.years);
            return this;
          }

          function addSubtract$1(duration, input, value, direction) {
            var other = createDuration(input, value);
            duration._milliseconds += direction * other._milliseconds;
            duration._days += direction * other._days;
            duration._months += direction * other._months;
            return duration._bubble();
          } // supports only 2.0-style add(1, 's') or add(duration)


          function add$1(input, value) {
            return addSubtract$1(this, input, value, 1);
          } // supports only 2.0-style subtract(1, 's') or subtract(duration)


          function subtract$1(input, value) {
            return addSubtract$1(this, input, value, -1);
          }

          function absCeil(number) {
            if (number < 0) {
              return Math.floor(number);
            } else {
              return Math.ceil(number);
            }
          }

          function bubble() {
            var milliseconds = this._milliseconds,
                days = this._days,
                months = this._months,
                data = this._data,
                seconds,
                minutes,
                hours,
                years,
                monthsFromDays; // if we have a mix of positive and negative values, bubble down first
            // check: https://github.com/moment/moment/issues/2166

            if (!(milliseconds >= 0 && days >= 0 && months >= 0 || milliseconds <= 0 && days <= 0 && months <= 0)) {
              milliseconds += absCeil(monthsToDays(months) + days) * 864e5;
              days = 0;
              months = 0;
            } // The following code bubbles up values, see the tests for
            // examples of what that means.


            data.milliseconds = milliseconds % 1000;
            seconds = absFloor(milliseconds / 1000);
            data.seconds = seconds % 60;
            minutes = absFloor(seconds / 60);
            data.minutes = minutes % 60;
            hours = absFloor(minutes / 60);
            data.hours = hours % 24;
            days += absFloor(hours / 24); // convert days to months

            monthsFromDays = absFloor(daysToMonths(days));
            months += monthsFromDays;
            days -= absCeil(monthsToDays(monthsFromDays)); // 12 months -> 1 year

            years = absFloor(months / 12);
            months %= 12;
            data.days = days;
            data.months = months;
            data.years = years;
            return this;
          }

          function daysToMonths(days) {
            // 400 years have 146097 days (taking into account leap year rules)
            // 400 years have 12 months === 4800
            return days * 4800 / 146097;
          }

          function monthsToDays(months) {
            // the reverse of daysToMonths
            return months * 146097 / 4800;
          }

          function as(units) {
            if (!this.isValid()) {
              return NaN;
            }

            var days,
                months,
                milliseconds = this._milliseconds;
            units = normalizeUnits(units);

            if (units === 'month' || units === 'quarter' || units === 'year') {
              days = this._days + milliseconds / 864e5;
              months = this._months + daysToMonths(days);

              switch (units) {
                case 'month':
                  return months;

                case 'quarter':
                  return months / 3;

                case 'year':
                  return months / 12;
              }
            } else {
              // handle milliseconds separately because of floating point math errors (issue #1867)
              days = this._days + Math.round(monthsToDays(this._months));

              switch (units) {
                case 'week':
                  return days / 7 + milliseconds / 6048e5;

                case 'day':
                  return days + milliseconds / 864e5;

                case 'hour':
                  return days * 24 + milliseconds / 36e5;

                case 'minute':
                  return days * 1440 + milliseconds / 6e4;

                case 'second':
                  return days * 86400 + milliseconds / 1000;
                // Math.floor prevents floating point math errors here

                case 'millisecond':
                  return Math.floor(days * 864e5) + milliseconds;

                default:
                  throw new Error('Unknown unit ' + units);
              }
            }
          } // TODO: Use this.as('ms')?


          function valueOf$1() {
            if (!this.isValid()) {
              return NaN;
            }

            return this._milliseconds + this._days * 864e5 + this._months % 12 * 2592e6 + toInt(this._months / 12) * 31536e6;
          }

          function makeAs(alias) {
            return function () {
              return this.as(alias);
            };
          }

          var asMilliseconds = makeAs('ms'),
              asSeconds = makeAs('s'),
              asMinutes = makeAs('m'),
              asHours = makeAs('h'),
              asDays = makeAs('d'),
              asWeeks = makeAs('w'),
              asMonths = makeAs('M'),
              asQuarters = makeAs('Q'),
              asYears = makeAs('y');

          function clone$1() {
            return createDuration(this);
          }

          function get$2(units) {
            units = normalizeUnits(units);
            return this.isValid() ? this[units + 's']() : NaN;
          }

          function makeGetter(name) {
            return function () {
              return this.isValid() ? this._data[name] : NaN;
            };
          }

          var milliseconds = makeGetter('milliseconds'),
              seconds = makeGetter('seconds'),
              minutes = makeGetter('minutes'),
              hours = makeGetter('hours'),
              days = makeGetter('days'),
              months = makeGetter('months'),
              years = makeGetter('years');

          function weeks() {
            return absFloor(this.days() / 7);
          }

          var round = Math.round,
              thresholds = {
            ss: 44,
            // a few seconds to seconds
            s: 45,
            // seconds to minute
            m: 45,
            // minutes to hour
            h: 22,
            // hours to day
            d: 26,
            // days to month/week
            w: null,
            // weeks to month
            M: 11 // months to year

          }; // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize

          function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {
            return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture);
          }

          function relativeTime$1(posNegDuration, withoutSuffix, thresholds, locale) {
            var duration = createDuration(posNegDuration).abs(),
                seconds = round(duration.as('s')),
                minutes = round(duration.as('m')),
                hours = round(duration.as('h')),
                days = round(duration.as('d')),
                months = round(duration.as('M')),
                weeks = round(duration.as('w')),
                years = round(duration.as('y')),
                a = seconds <= thresholds.ss && ['s', seconds] || seconds < thresholds.s && ['ss', seconds] || minutes <= 1 && ['m'] || minutes < thresholds.m && ['mm', minutes] || hours <= 1 && ['h'] || hours < thresholds.h && ['hh', hours] || days <= 1 && ['d'] || days < thresholds.d && ['dd', days];

            if (thresholds.w != null) {
              a = a || weeks <= 1 && ['w'] || weeks < thresholds.w && ['ww', weeks];
            }

            a = a || months <= 1 && ['M'] || months < thresholds.M && ['MM', months] || years <= 1 && ['y'] || ['yy', years];
            a[2] = withoutSuffix;
            a[3] = +posNegDuration > 0;
            a[4] = locale;
            return substituteTimeAgo.apply(null, a);
          } // This function allows you to set the rounding function for relative time strings


          function getSetRelativeTimeRounding(roundingFunction) {
            if (roundingFunction === undefined) {
              return round;
            }

            if (typeof roundingFunction === 'function') {
              round = roundingFunction;
              return true;
            }

            return false;
          } // This function allows you to set a threshold for relative time strings


          function getSetRelativeTimeThreshold(threshold, limit) {
            if (thresholds[threshold] === undefined) {
              return false;
            }

            if (limit === undefined) {
              return thresholds[threshold];
            }

            thresholds[threshold] = limit;

            if (threshold === 's') {
              thresholds.ss = limit - 1;
            }

            return true;
          }

          function humanize(argWithSuffix, argThresholds) {
            if (!this.isValid()) {
              return this.localeData().invalidDate();
            }

            var withSuffix = false,
                th = thresholds,
                locale,
                output;

            if (typeof argWithSuffix === 'object') {
              argThresholds = argWithSuffix;
              argWithSuffix = false;
            }

            if (typeof argWithSuffix === 'boolean') {
              withSuffix = argWithSuffix;
            }

            if (typeof argThresholds === 'object') {
              th = Object.assign({}, thresholds, argThresholds);

              if (argThresholds.s != null && argThresholds.ss == null) {
                th.ss = argThresholds.s - 1;
              }
            }

            locale = this.localeData();
            output = relativeTime$1(this, !withSuffix, th, locale);

            if (withSuffix) {
              output = locale.pastFuture(+this, output);
            }

            return locale.postformat(output);
          }

          var abs$1 = Math.abs;

          function sign(x) {
            return (x > 0) - (x < 0) || +x;
          }

          function toISOString$1() {
            // for ISO strings we do not use the normal bubbling rules:
            //  * milliseconds bubble up until they become hours
            //  * days do not bubble at all
            //  * months bubble up until they become years
            // This is because there is no context-free conversion between hours and days
            // (think of clock changes)
            // and also not between days and months (28-31 days per month)
            if (!this.isValid()) {
              return this.localeData().invalidDate();
            }

            var seconds = abs$1(this._milliseconds) / 1000,
                days = abs$1(this._days),
                months = abs$1(this._months),
                minutes,
                hours,
                years,
                s,
                total = this.asSeconds(),
                totalSign,
                ymSign,
                daysSign,
                hmsSign;

            if (!total) {
              // this is the same as C#'s (Noda) and python (isodate)...
              // but not other JS (goog.date)
              return 'P0D';
            } // 3600 seconds -> 60 minutes -> 1 hour


            minutes = absFloor(seconds / 60);
            hours = absFloor(minutes / 60);
            seconds %= 60;
            minutes %= 60; // 12 months -> 1 year

            years = absFloor(months / 12);
            months %= 12; // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js

            s = seconds ? seconds.toFixed(3).replace(/\.?0+$/, '') : '';
            totalSign = total < 0 ? '-' : '';
            ymSign = sign(this._months) !== sign(total) ? '-' : '';
            daysSign = sign(this._days) !== sign(total) ? '-' : '';
            hmsSign = sign(this._milliseconds) !== sign(total) ? '-' : '';
            return totalSign + 'P' + (years ? ymSign + years + 'Y' : '') + (months ? ymSign + months + 'M' : '') + (days ? daysSign + days + 'D' : '') + (hours || minutes || seconds ? 'T' : '') + (hours ? hmsSign + hours + 'H' : '') + (minutes ? hmsSign + minutes + 'M' : '') + (seconds ? hmsSign + s + 'S' : '');
          }

          var proto$2 = Duration.prototype;
          proto$2.isValid = isValid$1;
          proto$2.abs = abs;
          proto$2.add = add$1;
          proto$2.subtract = subtract$1;
          proto$2.as = as;
          proto$2.asMilliseconds = asMilliseconds;
          proto$2.asSeconds = asSeconds;
          proto$2.asMinutes = asMinutes;
          proto$2.asHours = asHours;
          proto$2.asDays = asDays;
          proto$2.asWeeks = asWeeks;
          proto$2.asMonths = asMonths;
          proto$2.asQuarters = asQuarters;
          proto$2.asYears = asYears;
          proto$2.valueOf = valueOf$1;
          proto$2._bubble = bubble;
          proto$2.clone = clone$1;
          proto$2.get = get$2;
          proto$2.milliseconds = milliseconds;
          proto$2.seconds = seconds;
          proto$2.minutes = minutes;
          proto$2.hours = hours;
          proto$2.days = days;
          proto$2.weeks = weeks;
          proto$2.months = months;
          proto$2.years = years;
          proto$2.humanize = humanize;
          proto$2.toISOString = toISOString$1;
          proto$2.toString = toISOString$1;
          proto$2.toJSON = toISOString$1;
          proto$2.locale = locale;
          proto$2.localeData = localeData;
          proto$2.toIsoString = deprecate('toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)', toISOString$1);
          proto$2.lang = lang; // FORMATTING

          addFormatToken('X', 0, 0, 'unix');
          addFormatToken('x', 0, 0, 'valueOf'); // PARSING

          addRegexToken('x', matchSigned);
          addRegexToken('X', matchTimestamp);
          addParseToken('X', function (input, array, config) {
            config._d = new Date(parseFloat(input) * 1000);
          });
          addParseToken('x', function (input, array, config) {
            config._d = new Date(toInt(input));
          }); //! moment.js

          hooks.version = '2.29.1';
          setHookCallback(createLocal);
          hooks.fn = proto;
          hooks.min = min;
          hooks.max = max;
          hooks.now = now;
          hooks.utc = createUTC;
          hooks.unix = createUnix;
          hooks.months = listMonths;
          hooks.isDate = isDate;
          hooks.locale = getSetGlobalLocale;
          hooks.invalid = createInvalid;
          hooks.duration = createDuration;
          hooks.isMoment = isMoment;
          hooks.weekdays = listWeekdays;
          hooks.parseZone = createInZone;
          hooks.localeData = getLocale;
          hooks.isDuration = isDuration;
          hooks.monthsShort = listMonthsShort;
          hooks.weekdaysMin = listWeekdaysMin;
          hooks.defineLocale = defineLocale;
          hooks.updateLocale = updateLocale;
          hooks.locales = listLocales;
          hooks.weekdaysShort = listWeekdaysShort;
          hooks.normalizeUnits = normalizeUnits;
          hooks.relativeTimeRounding = getSetRelativeTimeRounding;
          hooks.relativeTimeThreshold = getSetRelativeTimeThreshold;
          hooks.calendarFormat = getCalendarFormat;
          hooks.prototype = proto; // currently HTML5 input type only supports 24-hour formats

          hooks.HTML5_FMT = {
            DATETIME_LOCAL: 'YYYY-MM-DDTHH:mm',
            // <input type="datetime-local" />
            DATETIME_LOCAL_SECONDS: 'YYYY-MM-DDTHH:mm:ss',
            // <input type="datetime-local" step="1" />
            DATETIME_LOCAL_MS: 'YYYY-MM-DDTHH:mm:ss.SSS',
            // <input type="datetime-local" step="0.001" />
            DATE: 'YYYY-MM-DD',
            // <input type="date" />
            TIME: 'HH:mm',
            // <input type="time" />
            TIME_SECONDS: 'HH:mm:ss',
            // <input type="time" step="1" />
            TIME_MS: 'HH:mm:ss.SSS',
            // <input type="time" step="0.001" />
            WEEK: 'GGGG-[W]WW',
            // <input type="week" />
            MONTH: 'YYYY-MM' // <input type="month" />

          };
          return hooks;
        });
        /* WEBPACK VAR INJECTION */

      }).call(this, __webpack_require__(
      /*! ./../webpack/buildin/module.js */
      "YuTi")(module));
      /***/
    },

    /***/
    "wigk": function wigk(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return closestIndexTo;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name closestIndexTo
       * @category Common Helpers
       * @summary Return an index of the closest date from the array comparing to the given date.
       *
       * @description
       * Return an index of the closest date from the array comparing to the given date.
       *
       * ### 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).
       *
       * - Now, `closestIndexTo` doesn't throw an exception
       *   when the second argument is not an array, and returns Invalid Date instead.
       *
       * @param {Date|Number} dateToCompare - the date to compare with
       * @param {Date[]|Number[]} datesArray - the array to search
       * @returns {Number} an index of the date closest to the given date
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // Which date is closer to 6 September 2015?
       * var dateToCompare = new Date(2015, 8, 6)
       * var datesArray = [
       *   new Date(2015, 0, 1),
       *   new Date(2016, 0, 1),
       *   new Date(2017, 0, 1)
       * ]
       * var result = closestIndexTo(dateToCompare, datesArray)
       * //=> 1
       */


      function closestIndexTo(dirtyDateToCompare, dirtyDatesArray) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(2, arguments);
        var dateToCompare = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateToCompare);

        if (isNaN(dateToCompare)) {
          return NaN;
        }

        var timeToCompare = dateToCompare.getTime();
        var datesArray; // `dirtyDatesArray` is undefined or null

        if (dirtyDatesArray == null) {
          datesArray = []; // `dirtyDatesArray` is Array, Set or Map, or object with custom `forEach` method
        } else if (typeof dirtyDatesArray.forEach === 'function') {
          datesArray = dirtyDatesArray; // If `dirtyDatesArray` is Array-like Object, convert to Array. Otherwise, make it empty Array
        } else {
          datesArray = Array.prototype.slice.call(dirtyDatesArray);
        }

        var result;
        var minDistance;
        datesArray.forEach(function (dirtyDate, index) {
          var currentDate = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate);

          if (isNaN(currentDate)) {
            result = NaN;
            minDistance = NaN;
            return;
          }

          var distance = Math.abs(timeToCompare - currentDate.getTime());

          if (result == null || distance < minDistance) {
            result = index;
            minDistance = distance;
          }
        });
        return result;
      }
      /***/

    },

    /***/
    "wzM+": function wzM(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return buildMatchFn;
      });

      function buildMatchFn(args) {
        return function (dirtyString, dirtyOptions) {
          var string = String(dirtyString);
          var options = dirtyOptions || {};
          var width = options.width;
          var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth];
          var matchResult = string.match(matchPattern);

          if (!matchResult) {
            return null;
          }

          var matchedString = matchResult[0];
          var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth];
          var value;

          if (Object.prototype.toString.call(parsePatterns) === '[object Array]') {
            value = findIndex(parsePatterns, function (pattern) {
              return pattern.test(matchedString);
            });
          } else {
            value = findKey(parsePatterns, function (pattern) {
              return pattern.test(matchedString);
            });
          }

          value = args.valueCallback ? args.valueCallback(value) : value;
          value = options.valueCallback ? options.valueCallback(value) : value;
          return {
            value: value,
            rest: string.slice(matchedString.length)
          };
        };
      }

      function findKey(object, predicate) {
        for (var key in object) {
          if (object.hasOwnProperty(key) && predicate(object[key])) {
            return key;
          }
        }
      }

      function findIndex(array, predicate) {
        for (var key = 0; key < array.length; key++) {
          if (predicate(array[key])) {
            return key;
          }
        }
      }
      /***/

    },

    /***/
    "x+ZX": function xZX(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "refCount", function () {
        return refCount;
      });
      /* harmony import */


      var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Subscriber */
      "7o/Q");

      function refCount() {
        return function refCountOperatorFunction(source) {
          return source.lift(new RefCountOperator(source));
        };
      }

      var RefCountOperator = /*#__PURE__*/function () {
        function RefCountOperator(connectable) {
          _classCallCheck2(this, RefCountOperator);

          this.connectable = connectable;
        }

        _createClass2(RefCountOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            var connectable = this.connectable;
            connectable._refCount++;
            var refCounter = new RefCountSubscriber(subscriber, connectable);
            var subscription = source.subscribe(refCounter);

            if (!refCounter.closed) {
              refCounter.connection = connectable.connect();
            }

            return subscription;
          }
        }]);

        return RefCountOperator;
      }();

      var RefCountSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_45) {
        _inherits2(RefCountSubscriber, _Subscriber__WEBPACK_45);

        var _super459 = _createSuper2(RefCountSubscriber);

        function RefCountSubscriber(destination, connectable) {
          var _this947;

          _classCallCheck2(this, RefCountSubscriber);

          _this947 = _super459.call(this, destination);
          _this947.connectable = connectable;
          return _this947;
        }

        _createClass2(RefCountSubscriber, [{
          key: "_unsubscribe",
          value: function _unsubscribe() {
            var connectable = this.connectable;

            if (!connectable) {
              this.connection = null;
              return;
            }

            this.connectable = null;
            var refCount = connectable._refCount;

            if (refCount <= 0) {
              this.connection = null;
              return;
            }

            connectable._refCount = refCount - 1;

            if (refCount > 1) {
              this.connection = null;
              return;
            }

            var connection = this.connection;
            var sharedConnection = connectable._connection;
            this.connection = null;

            if (sharedConnection && (!connection || sharedConnection === connection)) {
              sharedConnection.unsubscribe();
            }
          }
        }]);

        return RefCountSubscriber;
      }(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]); //# sourceMappingURL=refCount.js.map

      /***/

    },

    /***/
    "x6pH": function x6pH(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Hebrew [he]
      //! author : Tomer Cohen : https://github.com/tomer
      //! author : Moshe Simantov : https://github.com/DevelopmentIL
      //! author : Tal Ater : https://github.com/TalAter
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var he = moment.defineLocale('he', {
          months: 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split('_'),
          monthsShort: 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split('_'),
          weekdays: 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'),
          weekdaysShort: 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'),
          weekdaysMin: 'א_ב_ג_ד_ה_ו_ש'.split('_'),
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D [ב]MMMM YYYY',
            LLL: 'D [ב]MMMM YYYY HH:mm',
            LLLL: 'dddd, D [ב]MMMM YYYY HH:mm',
            l: 'D/M/YYYY',
            ll: 'D MMM YYYY',
            lll: 'D MMM YYYY HH:mm',
            llll: 'ddd, D MMM YYYY HH:mm'
          },
          calendar: {
            sameDay: '[היום ב־]LT',
            nextDay: '[מחר ב־]LT',
            nextWeek: 'dddd [בשעה] LT',
            lastDay: '[אתמול ב־]LT',
            lastWeek: '[ביום] dddd [האחרון בשעה] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'בעוד %s',
            past: 'לפני %s',
            s: 'מספר שניות',
            ss: '%d שניות',
            m: 'דקה',
            mm: '%d דקות',
            h: 'שעה',
            hh: function hh(number) {
              if (number === 2) {
                return 'שעתיים';
              }

              return number + ' שעות';
            },
            d: 'יום',
            dd: function dd(number) {
              if (number === 2) {
                return 'יומיים';
              }

              return number + ' ימים';
            },
            M: 'חודש',
            MM: function MM(number) {
              if (number === 2) {
                return 'חודשיים';
              }

              return number + ' חודשים';
            },
            y: 'שנה',
            yy: function yy(number) {
              if (number === 2) {
                return 'שנתיים';
              } else if (number % 10 === 0 && number !== 10) {
                return number + ' שנה';
              }

              return number + ' שנים';
            }
          },
          meridiemParse: /אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,
          isPM: function isPM(input) {
            return /^(אחה"צ|אחרי הצהריים|בערב)$/.test(input);
          },
          meridiem: function meridiem(hour, minute, isLower) {
            if (hour < 5) {
              return 'לפנות בוקר';
            } else if (hour < 10) {
              return 'בבוקר';
            } else if (hour < 12) {
              return isLower ? 'לפנה"צ' : 'לפני הצהריים';
            } else if (hour < 18) {
              return isLower ? 'אחה"צ' : 'אחרי הצהריים';
            } else {
              return 'בערב';
            }
          }
        });
        return he;
      });
      /***/

    },

    /***/
    "xMRN": function xMRN(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony import */


      var _lib_buildFormatLongFn_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../../../_lib/buildFormatLongFn/index.js */
      "zMQz");

      var dateFormats = {
        full: 'EEEE, MMMM do, y',
        "long": 'MMMM do, y',
        medium: 'MMM d, y',
        "short": 'MM/dd/yyyy'
      };
      var timeFormats = {
        full: 'h:mm:ss a zzzz',
        "long": 'h:mm:ss a z',
        medium: 'h:mm:ss a',
        "short": 'h:mm a'
      };
      var dateTimeFormats = {
        full: "{{date}} 'at' {{time}}",
        "long": "{{date}} 'at' {{time}}",
        medium: '{{date}}, {{time}}',
        "short": '{{date}}, {{time}}'
      };
      var formatLong = {
        date: Object(_lib_buildFormatLongFn_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])({
          formats: dateFormats,
          defaultWidth: 'full'
        }),
        time: Object(_lib_buildFormatLongFn_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])({
          formats: timeFormats,
          defaultWidth: 'full'
        }),
        dateTime: Object(_lib_buildFormatLongFn_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])({
          formats: dateTimeFormats,
          defaultWidth: 'full'
        })
      };
      /* harmony default export */

      __webpack_exports__["default"] = formatLong;
      /***/
    },

    /***/
    "xbPD": function xbPD(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "defaultIfEmpty", function () {
        return defaultIfEmpty;
      });
      /* harmony import */


      var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Subscriber */
      "7o/Q");

      function defaultIfEmpty() {
        var defaultValue = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
        return function (source) {
          return source.lift(new DefaultIfEmptyOperator(defaultValue));
        };
      }

      var DefaultIfEmptyOperator = /*#__PURE__*/function () {
        function DefaultIfEmptyOperator(defaultValue) {
          _classCallCheck2(this, DefaultIfEmptyOperator);

          this.defaultValue = defaultValue;
        }

        _createClass2(DefaultIfEmptyOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            return source.subscribe(new DefaultIfEmptySubscriber(subscriber, this.defaultValue));
          }
        }]);

        return DefaultIfEmptyOperator;
      }();

      var DefaultIfEmptySubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_46) {
        _inherits2(DefaultIfEmptySubscriber, _Subscriber__WEBPACK_46);

        var _super460 = _createSuper2(DefaultIfEmptySubscriber);

        function DefaultIfEmptySubscriber(destination, defaultValue) {
          var _this948;

          _classCallCheck2(this, DefaultIfEmptySubscriber);

          _this948 = _super460.call(this, destination);
          _this948.defaultValue = defaultValue;
          _this948.isEmpty = true;
          return _this948;
        }

        _createClass2(DefaultIfEmptySubscriber, [{
          key: "_next",
          value: function _next(value) {
            this.isEmpty = false;
            this.destination.next(value);
          }
        }, {
          key: "_complete",
          value: function _complete() {
            if (this.isEmpty) {
              this.destination.next(this.defaultValue);
            }

            this.destination.complete();
          }
        }]);

        return DefaultIfEmptySubscriber;
      }(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]); //# sourceMappingURL=defaultIfEmpty.js.map

      /***/

    },

    /***/
    "xgIS": function xgIS(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "fromEvent", function () {
        return fromEvent;
      });
      /* harmony import */


      var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Observable */
      "HDdC");
      /* harmony import */


      var _util_isArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../util/isArray */
      "DH7j");
      /* harmony import */


      var _util_isFunction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../util/isFunction */
      "n6bG");
      /* harmony import */


      var _operators_map__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../operators/map */
      "lJxs");

      var toString = function () {
        return Object.prototype.toString;
      }();

      function fromEvent(target, eventName, options, resultSelector) {
        if (Object(_util_isFunction__WEBPACK_IMPORTED_MODULE_2__["isFunction"])(options)) {
          resultSelector = options;
          options = undefined;
        }

        if (resultSelector) {
          return fromEvent(target, eventName, options).pipe(Object(_operators_map__WEBPACK_IMPORTED_MODULE_3__["map"])(function (args) {
            return Object(_util_isArray__WEBPACK_IMPORTED_MODULE_1__["isArray"])(args) ? resultSelector.apply(void 0, _toConsumableArray(args)) : resultSelector(args);
          }));
        }

        return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](function (subscriber) {
          function handler(e) {
            if (arguments.length > 1) {
              subscriber.next(Array.prototype.slice.call(arguments));
            } else {
              subscriber.next(e);
            }
          }

          setupSubscription(target, eventName, handler, subscriber, options);
        });
      }

      function setupSubscription(sourceObj, eventName, handler, subscriber, options) {
        var unsubscribe;

        if (isEventTarget(sourceObj)) {
          var source = sourceObj;
          sourceObj.addEventListener(eventName, handler, options);

          unsubscribe = function unsubscribe() {
            return source.removeEventListener(eventName, handler, options);
          };
        } else if (isJQueryStyleEventEmitter(sourceObj)) {
          var _source = sourceObj;
          sourceObj.on(eventName, handler);

          unsubscribe = function unsubscribe() {
            return _source.off(eventName, handler);
          };
        } else if (isNodeStyleEventEmitter(sourceObj)) {
          var _source2 = sourceObj;
          sourceObj.addListener(eventName, handler);

          unsubscribe = function unsubscribe() {
            return _source2.removeListener(eventName, handler);
          };
        } else if (sourceObj && sourceObj.length) {
          for (var i = 0, len = sourceObj.length; i < len; i++) {
            setupSubscription(sourceObj[i], eventName, handler, subscriber, options);
          }
        } else {
          throw new TypeError('Invalid event target');
        }

        subscriber.add(unsubscribe);
      }

      function isNodeStyleEventEmitter(sourceObj) {
        return sourceObj && typeof sourceObj.addListener === 'function' && typeof sourceObj.removeListener === 'function';
      }

      function isJQueryStyleEventEmitter(sourceObj) {
        return sourceObj && typeof sourceObj.on === 'function' && typeof sourceObj.off === 'function';
      }

      function isEventTarget(sourceObj) {
        return sourceObj && typeof sourceObj.addEventListener === 'function' && typeof sourceObj.removeEventListener === 'function';
      } //# sourceMappingURL=fromEvent.js.map

      /***/

    },

    /***/
    "xiNX": function xiNX(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return setUTCWeek;
      });
      /* harmony import */


      var _toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toInteger/index.js */
      "/h9T");
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _getUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../getUTCWeek/index.js */
      "ErpD");
      /* harmony import */


      var _requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! ../requiredArgs/index.js */
      "jIYg"); // This function will be a part of public API when UTC function will be implemented.
      // See issue: https://github.com/date-fns/date-fns/issues/376


      function setUTCWeek(dirtyDate, dirtyWeek, options) {
        Object(_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(2, arguments);
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate);
        var week = Object(_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyWeek);
        var diff = Object(_getUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(date, options) - week;
        date.setUTCDate(date.getUTCDate() - diff * 7);
        return date;
      }
      /***/

    },

    /***/
    "xz+E": function xzE(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "VERSION", function () {
        return VERSION;
      });
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /** Current version of the Angular Component Development Kit. */


      var VERSION = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["Version"]('11.0.0');
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */
      //# sourceMappingURL=cdk.js.map

      /***/
    },

    /***/
    "yCtX": function yCtX(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "fromArray", function () {
        return fromArray;
      });
      /* harmony import */


      var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Observable */
      "HDdC");
      /* harmony import */


      var _util_subscribeToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../util/subscribeToArray */
      "ngJS");
      /* harmony import */


      var _scheduled_scheduleArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../scheduled/scheduleArray */
      "jZKg");

      function fromArray(input, scheduler) {
        if (!scheduler) {
          return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](Object(_util_subscribeToArray__WEBPACK_IMPORTED_MODULE_1__["subscribeToArray"])(input));
        } else {
          return Object(_scheduled_scheduleArray__WEBPACK_IMPORTED_MODULE_2__["scheduleArray"])(input, scheduler);
        }
      } //# sourceMappingURL=fromArray.js.map

      /***/

    },

    /***/
    "yI9Y": function yI9Y(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "max", function () {
        return max;
      });
      /* harmony import */


      var _reduce__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ./reduce */
      "128B");

      function max(comparer) {
        var max = typeof comparer === 'function' ? function (x, y) {
          return comparer(x, y) > 0 ? x : y;
        } : function (x, y) {
          return x > y ? x : y;
        };
        return Object(_reduce__WEBPACK_IMPORTED_MODULE_0__["reduce"])(max);
      } //# sourceMappingURL=max.js.map

      /***/

    },

    /***/
    "yPMs": function yPMs(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Albanian [sq]
      //! author : Flakërim Ismani : https://github.com/flakerimi
      //! author : Menelion Elensúle : https://github.com/Oire
      //! author : Oerd Cukalla : https://github.com/oerd
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var sq = moment.defineLocale('sq', {
          months: 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split('_'),
          monthsShort: 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'),
          weekdays: 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split('_'),
          weekdaysShort: 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'),
          weekdaysMin: 'D_H_Ma_Më_E_P_Sh'.split('_'),
          weekdaysParseExact: true,
          meridiemParse: /PD|MD/,
          isPM: function isPM(input) {
            return input.charAt(0) === 'M';
          },
          meridiem: function meridiem(hours, minutes, isLower) {
            return hours < 12 ? 'PD' : 'MD';
          },
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD/MM/YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd, D MMMM YYYY HH:mm'
          },
          calendar: {
            sameDay: '[Sot në] LT',
            nextDay: '[Nesër në] LT',
            nextWeek: 'dddd [në] LT',
            lastDay: '[Dje në] LT',
            lastWeek: 'dddd [e kaluar në] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'në %s',
            past: '%s më parë',
            s: 'disa sekonda',
            ss: '%d sekonda',
            m: 'një minutë',
            mm: '%d minuta',
            h: 'një orë',
            hh: '%d orë',
            d: 'një ditë',
            dd: '%d ditë',
            M: 'një muaj',
            MM: '%d muaj',
            y: 'një vit',
            yy: '%d vite'
          },
          dayOfMonthOrdinalParse: /\d{1,2}\./,
          ordinal: '%d.',
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return sq;
      });
      /***/

    },

    /***/
    "yuhW": function yuhW(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "defaultThrottleConfig", function () {
        return defaultThrottleConfig;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "throttle", function () {
        return throttle;
      });
      /* harmony import */


      var _innerSubscribe__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../innerSubscribe */
      "zx2A");

      var defaultThrottleConfig = {
        leading: true,
        trailing: false
      };

      function throttle(durationSelector) {
        var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultThrottleConfig;
        return function (source) {
          return source.lift(new ThrottleOperator(durationSelector, !!config.leading, !!config.trailing));
        };
      }

      var ThrottleOperator = /*#__PURE__*/function () {
        function ThrottleOperator(durationSelector, leading, trailing) {
          _classCallCheck2(this, ThrottleOperator);

          this.durationSelector = durationSelector;
          this.leading = leading;
          this.trailing = trailing;
        }

        _createClass2(ThrottleOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            return source.subscribe(new ThrottleSubscriber(subscriber, this.durationSelector, this.leading, this.trailing));
          }
        }]);

        return ThrottleOperator;
      }();

      var ThrottleSubscriber = /*#__PURE__*/function (_innerSubscribe__WEBP21) {
        _inherits2(ThrottleSubscriber, _innerSubscribe__WEBP21);

        var _super461 = _createSuper2(ThrottleSubscriber);

        function ThrottleSubscriber(destination, durationSelector, _leading, _trailing) {
          var _this949;

          _classCallCheck2(this, ThrottleSubscriber);

          _this949 = _super461.call(this, destination);
          _this949.destination = destination;
          _this949.durationSelector = durationSelector;
          _this949._leading = _leading;
          _this949._trailing = _trailing;
          _this949._hasValue = false;
          return _this949;
        }

        _createClass2(ThrottleSubscriber, [{
          key: "_next",
          value: function _next(value) {
            this._hasValue = true;
            this._sendValue = value;

            if (!this._throttled) {
              if (this._leading) {
                this.send();
              } else {
                this.throttle(value);
              }
            }
          }
        }, {
          key: "send",
          value: function send() {
            var _hasValue = this._hasValue,
                _sendValue = this._sendValue;

            if (_hasValue) {
              this.destination.next(_sendValue);
              this.throttle(_sendValue);
            }

            this._hasValue = false;
            this._sendValue = undefined;
          }
        }, {
          key: "throttle",
          value: function throttle(value) {
            var duration = this.tryDurationSelector(value);

            if (!!duration) {
              this.add(this._throttled = Object(_innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["innerSubscribe"])(duration, new _innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["SimpleInnerSubscriber"](this)));
            }
          }
        }, {
          key: "tryDurationSelector",
          value: function tryDurationSelector(value) {
            try {
              return this.durationSelector(value);
            } catch (err) {
              this.destination.error(err);
              return null;
            }
          }
        }, {
          key: "throttlingDone",
          value: function throttlingDone() {
            var _throttled = this._throttled,
                _trailing = this._trailing;

            if (_throttled) {
              _throttled.unsubscribe();
            }

            this._throttled = undefined;

            if (_trailing) {
              this.send();
            }
          }
        }, {
          key: "notifyNext",
          value: function notifyNext() {
            this.throttlingDone();
          }
        }, {
          key: "notifyComplete",
          value: function notifyComplete() {
            this.throttlingDone();
          }
        }]);

        return ThrottleSubscriber;
      }(_innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["SimpleOuterSubscriber"]); //# sourceMappingURL=throttle.js.map

      /***/

    },

    /***/
    "yzsd": function yzsd(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return isSameHour;
      });
      /* harmony import */


      var _startOfHour_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../startOfHour/index.js */
      "CxvL");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name isSameHour
       * @category Hour Helpers
       * @summary Are the given dates in the same hour?
       *
       * @description
       * Are the given dates in the same hour?
       *
       * ### 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 {Date|Number} dateLeft - the first date to check
       * @param {Date|Number} dateRight - the second date to check
       * @returns {Boolean} the dates are in the same hour
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // Are 4 September 2014 06:00:00 and 4 September 06:30:00 in the same hour?
       * var result = isSameHour(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 6, 30))
       * //=> true
       */


      function isSameHour(dirtyDateLeft, dirtyDateRight) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(2, arguments);
        var dateLeftStartOfHour = Object(_startOfHour_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateLeft);
        var dateRightStartOfHour = Object(_startOfHour_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateRight);
        return dateLeftStartOfHour.getTime() === dateRightStartOfHour.getTime();
      }
      /***/

    },

    /***/
    "z+Ro": function zRo(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "isScheduler", function () {
        return isScheduler;
      });

      function isScheduler(value) {
        return value && typeof value.schedule === 'function';
      } //# sourceMappingURL=isScheduler.js.map

      /***/

    },

    /***/
    "z1FC": function z1FC(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Talossan [tzl]
      //! author : Robin van der Vliet : https://github.com/robin0van0der0v
      //! author : Iustì Canun
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration
        // After the year there should be a slash and the amount of years since December 26, 1979 in Roman numerals.
        // This is currently too difficult (maybe even impossible) to add.

        var tzl = moment.defineLocale('tzl', {
          months: 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split('_'),
          monthsShort: 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'),
          weekdays: 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'),
          weekdaysShort: 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'),
          weekdaysMin: 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'),
          longDateFormat: {
            LT: 'HH.mm',
            LTS: 'HH.mm.ss',
            L: 'DD.MM.YYYY',
            LL: 'D. MMMM [dallas] YYYY',
            LLL: 'D. MMMM [dallas] YYYY HH.mm',
            LLLL: 'dddd, [li] D. MMMM [dallas] YYYY HH.mm'
          },
          meridiemParse: /d\'o|d\'a/i,
          isPM: function isPM(input) {
            return "d'o" === input.toLowerCase();
          },
          meridiem: function meridiem(hours, minutes, isLower) {
            if (hours > 11) {
              return isLower ? "d'o" : "D'O";
            } else {
              return isLower ? "d'a" : "D'A";
            }
          },
          calendar: {
            sameDay: '[oxhi à] LT',
            nextDay: '[demà à] LT',
            nextWeek: 'dddd [à] LT',
            lastDay: '[ieiri à] LT',
            lastWeek: '[sür el] dddd [lasteu à] LT',
            sameElse: 'L'
          },
          relativeTime: {
            future: 'osprei %s',
            past: 'ja%s',
            s: processRelativeTime,
            ss: processRelativeTime,
            m: processRelativeTime,
            mm: processRelativeTime,
            h: processRelativeTime,
            hh: processRelativeTime,
            d: processRelativeTime,
            dd: processRelativeTime,
            M: processRelativeTime,
            MM: processRelativeTime,
            y: processRelativeTime,
            yy: processRelativeTime
          },
          dayOfMonthOrdinalParse: /\d{1,2}\./,
          ordinal: '%d.',
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });

        function processRelativeTime(number, withoutSuffix, key, isFuture) {
          var format = {
            s: ['viensas secunds', "'iensas secunds"],
            ss: [number + ' secunds', '' + number + ' secunds'],
            m: ["'n míut", "'iens míut"],
            mm: [number + ' míuts', '' + number + ' míuts'],
            h: ["'n þora", "'iensa þora"],
            hh: [number + ' þoras', '' + number + ' þoras'],
            d: ["'n ziua", "'iensa ziua"],
            dd: [number + ' ziuas', '' + number + ' ziuas'],
            M: ["'n mes", "'iens mes"],
            MM: [number + ' mesen', '' + number + ' mesen'],
            y: ["'n ar", "'iens ar"],
            yy: [number + ' ars', '' + number + ' ars']
          };
          return isFuture ? format[key][0] : withoutSuffix ? format[key][0] : format[key][1];
        }

        return tzl;
      });
      /***/

    },

    /***/
    "z3Vd": function z3Vd(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Klingon [tlh]
      //! author : Dominika Kruk : https://github.com/amaranthrose
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var numbersNouns = 'pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut'.split('_');

        function translateFuture(output) {
          var time = output;
          time = output.indexOf('jaj') !== -1 ? time.slice(0, -3) + 'leS' : output.indexOf('jar') !== -1 ? time.slice(0, -3) + 'waQ' : output.indexOf('DIS') !== -1 ? time.slice(0, -3) + 'nem' : time + ' pIq';
          return time;
        }

        function translatePast(output) {
          var time = output;
          time = output.indexOf('jaj') !== -1 ? time.slice(0, -3) + 'Hu’' : output.indexOf('jar') !== -1 ? time.slice(0, -3) + 'wen' : output.indexOf('DIS') !== -1 ? time.slice(0, -3) + 'ben' : time + ' ret';
          return time;
        }

        function translate(number, withoutSuffix, string, isFuture) {
          var numberNoun = numberAsNoun(number);

          switch (string) {
            case 'ss':
              return numberNoun + ' lup';

            case 'mm':
              return numberNoun + ' tup';

            case 'hh':
              return numberNoun + ' rep';

            case 'dd':
              return numberNoun + ' jaj';

            case 'MM':
              return numberNoun + ' jar';

            case 'yy':
              return numberNoun + ' DIS';
          }
        }

        function numberAsNoun(number) {
          var hundred = Math.floor(number % 1000 / 100),
              ten = Math.floor(number % 100 / 10),
              one = number % 10,
              word = '';

          if (hundred > 0) {
            word += numbersNouns[hundred] + 'vatlh';
          }

          if (ten > 0) {
            word += (word !== '' ? ' ' : '') + numbersNouns[ten] + 'maH';
          }

          if (one > 0) {
            word += (word !== '' ? ' ' : '') + numbersNouns[one];
          }

          return word === '' ? 'pagh' : word;
        }

        var tlh = moment.defineLocale('tlh', {
          months: 'tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’'.split('_'),
          monthsShort: 'jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’'.split('_'),
          monthsParseExact: true,
          weekdays: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
          weekdaysShort: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
          weekdaysMin: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
          longDateFormat: {
            LT: 'HH:mm',
            LTS: 'HH:mm:ss',
            L: 'DD.MM.YYYY',
            LL: 'D MMMM YYYY',
            LLL: 'D MMMM YYYY HH:mm',
            LLLL: 'dddd, D MMMM YYYY HH:mm'
          },
          calendar: {
            sameDay: '[DaHjaj] LT',
            nextDay: '[wa’leS] LT',
            nextWeek: 'LLL',
            lastDay: '[wa’Hu’] LT',
            lastWeek: 'LLL',
            sameElse: 'L'
          },
          relativeTime: {
            future: translateFuture,
            past: translatePast,
            s: 'puS lup',
            ss: translate,
            m: 'wa’ tup',
            mm: translate,
            h: 'wa’ rep',
            hh: translate,
            d: 'wa’ jaj',
            dd: translate,
            M: 'wa’ jar',
            MM: translate,
            y: 'wa’ DIS',
            yy: translate
          },
          dayOfMonthOrdinalParse: /\d{1,2}\./,
          ordinal: '%d.',
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 4 // The week that contains Jan 4th is the first week of the year.

          }
        });
        return tlh;
      });
      /***/

    },

    /***/
    "z4EA": function z4EA(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "CookieService", function () {
        return CookieService;
      });
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /* harmony import */


      var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/common */
      "SVse"); // This service is based on the `ng2-cookies` package which sadly is not a service and does


      var CookieService = /*#__PURE__*/function () {
        function CookieService( // The type `Document` may not be used here. Although a fix is on its way,
        // we will go with `any` for now to support Angular 2.4.x projects.
        // Issue: https://github.com/angular/angular/issues/12631
        // Fix: https://github.com/angular/angular/pull/14894
        document, // Get the `PLATFORM_ID` so we can check if we're in a browser.
        platformId) {
          _classCallCheck2(this, CookieService);

          this.document = document;
          this.platformId = platformId;
          this.documentIsAccessible = Object(_angular_common__WEBPACK_IMPORTED_MODULE_1__["isPlatformBrowser"])(this.platformId);
        }
        /**
         * @param name Cookie name
         * @returns boolean - whether cookie with specified name exists
         */


        _createClass2(CookieService, [{
          key: "check",
          value: function check(name) {
            if (!this.documentIsAccessible) {
              return false;
            }

            name = encodeURIComponent(name);
            var regExp = this.getCookieRegExp(name);
            var exists = regExp.test(this.document.cookie);
            return exists;
          }
          /**
           * @param name Cookie name
           * @returns property value
           */

        }, {
          key: "get",
          value: function get(name) {
            if (this.documentIsAccessible && this.check(name)) {
              name = encodeURIComponent(name);
              var regExp = this.getCookieRegExp(name);
              var result = regExp.exec(this.document.cookie);
              return this.safeDecodeURIComponent(result[1]);
            } else {
              return '';
            }
          }
          /**
           * @returns all the cookies in json
           */

        }, {
          key: "getAll",
          value: function getAll() {
            var _this950 = this;

            if (!this.documentIsAccessible) {
              return {};
            }

            var cookies = {};
            var document = this.document;

            if (document.cookie && document.cookie !== '') {
              document.cookie.split(';').forEach(function (currentCookie) {
                var _currentCookie$split = currentCookie.split('='),
                    _currentCookie$split2 = _slicedToArray(_currentCookie$split, 2),
                    cookieName = _currentCookie$split2[0],
                    cookieValue = _currentCookie$split2[1];

                cookies[_this950.safeDecodeURIComponent(cookieName.replace(/^ /, ''))] = _this950.safeDecodeURIComponent(cookieValue);
              });
            }

            return cookies;
          }
        }, {
          key: "set",
          value: function set(name, value, expiresOrOptions, path, domain, secure, sameSite) {
            if (!this.documentIsAccessible) {
              return;
            }

            if (typeof expiresOrOptions === 'number' || expiresOrOptions instanceof Date || path || domain || secure || sameSite) {
              var optionsBody = {
                expires: expiresOrOptions,
                path: path,
                domain: domain,
                secure: secure,
                sameSite: sameSite ? sameSite : 'Lax'
              };
              this.set(name, value, optionsBody);
              return;
            }

            var cookieString = encodeURIComponent(name) + '=' + encodeURIComponent(value) + ';';
            var options = expiresOrOptions ? expiresOrOptions : {};

            if (options.expires) {
              if (typeof options.expires === 'number') {
                var dateExpires = new Date(new Date().getTime() + options.expires * 1000 * 60 * 60 * 24);
                cookieString += 'expires=' + dateExpires.toUTCString() + ';';
              } else {
                cookieString += 'expires=' + options.expires.toUTCString() + ';';
              }
            }

            if (options.path) {
              cookieString += 'path=' + options.path + ';';
            }

            if (options.domain) {
              cookieString += 'domain=' + options.domain + ';';
            }

            if (options.secure === false && options.sameSite === 'None') {
              options.secure = true;
              console.warn("[ngx-cookie-service] Cookie ".concat(name, " was forced with secure flag because sameSite=None.") + "More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130");
            }

            if (options.secure) {
              cookieString += 'secure;';
            }

            if (!options.sameSite) {
              options.sameSite = 'Lax';
            }

            cookieString += 'sameSite=' + options.sameSite + ';';
            this.document.cookie = cookieString;
          }
          /**
           * @param name   Cookie name
           * @param path   Cookie path
           * @param domain Cookie domain
           */

        }, {
          key: "delete",
          value: function _delete(name, path, domain, secure) {
            var sameSite = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 'Lax';

            if (!this.documentIsAccessible) {
              return;
            }

            var expiresDate = new Date('Thu, 01 Jan 1970 00:00:01 GMT');
            this.set(name, '', {
              expires: expiresDate,
              path: path,
              domain: domain,
              secure: secure,
              sameSite: sameSite
            });
          }
          /**
           * @param path   Cookie path
           * @param domain Cookie domain
           */

        }, {
          key: "deleteAll",
          value: function deleteAll(path, domain, secure) {
            var sameSite = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'Lax';

            if (!this.documentIsAccessible) {
              return;
            }

            var cookies = this.getAll();

            for (var cookieName in cookies) {
              if (cookies.hasOwnProperty(cookieName)) {
                this["delete"](cookieName, path, domain, secure, sameSite);
              }
            }
          }
          /**
           * @param name Cookie name
           * @returns property RegExp
           */

        }, {
          key: "getCookieRegExp",
          value: function getCookieRegExp(name) {
            var escapedName = name.replace(/([\[\]\{\}\(\)\|\=\;\+\?\,\.\*\^\$])/gi, '\\$1');
            return new RegExp('(?:^' + escapedName + '|;\\s*' + escapedName + ')=(.*?)(?:;|$)', 'g');
          }
        }, {
          key: "safeDecodeURIComponent",
          value: function safeDecodeURIComponent(encodedURIComponent) {
            try {
              return decodeURIComponent(encodedURIComponent);
            } catch (_a) {
              // probably it is not uri encoded. return as is
              return encodedURIComponent;
            }
          }
        }]);

        return CookieService;
      }();

      CookieService.ɵfac = function CookieService_Factory(t) {
        return new (t || CookieService)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["PLATFORM_ID"]));
      };

      CookieService.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({
        factory: function CookieService_Factory() {
          return new CookieService(Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"]), Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(_angular_core__WEBPACK_IMPORTED_MODULE_0__["PLATFORM_ID"]));
        },
        token: CookieService,
        providedIn: "root"
      });

      CookieService.ctorParameters = function () {
        return [{
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"]]
          }]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"],
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["PLATFORM_ID"]]
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](CookieService, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
          args: [{
            providedIn: 'root'
          }]
        }], function () {
          return [{
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"]]
            }]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"],
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["PLATFORM_ID"]]
            }]
          }];
        }, null);
      })();
      /*
       * Public API Surface of ngx-cookie-service
       */

      /**
       * Generated bundle index. Do not edit.
       */
      //# sourceMappingURL=ngx-cookie-service.js.map

      /***/

    },

    /***/
    "z6cu": function z6cu(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "throwError", function () {
        return throwError;
      });
      /* harmony import */


      var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Observable */
      "HDdC");

      function throwError(error, scheduler) {
        if (!scheduler) {
          return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](function (subscriber) {
            return subscriber.error(error);
          });
        } else {
          return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](function (subscriber) {
            return scheduler.schedule(dispatch, 0, {
              error: error,
              subscriber: subscriber
            });
          });
        }
      }

      function dispatch(_ref97) {
        var error = _ref97.error,
            subscriber = _ref97.subscriber;
        subscriber.error(error);
      } //# sourceMappingURL=throwError.js.map

      /***/

    },

    /***/
    "zHMj": function zHMj(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return isEqual;
      });
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name isEqual
       * @category Common Helpers
       * @summary Are the given dates equal?
       *
       * @description
       * Are the given dates equal?
       *
       * ### 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 {Date|Number} dateLeft - the first date to compare
       * @param {Date|Number} dateRight - the second date to compare
       * @returns {Boolean} the dates are equal
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // Are 2 July 2014 06:30:45.000 and 2 July 2014 06:30:45.500 equal?
       * var result = isEqual(
       *   new Date(2014, 6, 2, 6, 30, 45, 0),
       *   new Date(2014, 6, 2, 6, 30, 45, 500)
       * )
       * //=> false
       */


      function isEqual(dirtyLeftDate, dirtyRightDate) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(2, arguments);
        var dateLeft = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyLeftDate);
        var dateRight = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyRightDate);
        return dateLeft.getTime() === dateRight.getTime();
      }
      /***/

    },

    /***/
    "zMQz": function zMQz(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return buildFormatLongFn;
      });

      function buildFormatLongFn(args) {
        return function (dirtyOptions) {
          var options = dirtyOptions || {};
          var width = options.width ? String(options.width) : args.defaultWidth;
          var format = args.formats[width] || args.formats[args.defaultWidth];
          return format;
        };
      }
      /***/

    },

    /***/
    "zP0r": function zP0r(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "skip", function () {
        return skip;
      });
      /* harmony import */


      var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../Subscriber */
      "7o/Q");

      function skip(count) {
        return function (source) {
          return source.lift(new SkipOperator(count));
        };
      }

      var SkipOperator = /*#__PURE__*/function () {
        function SkipOperator(total) {
          _classCallCheck2(this, SkipOperator);

          this.total = total;
        }

        _createClass2(SkipOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            return source.subscribe(new SkipSubscriber(subscriber, this.total));
          }
        }]);

        return SkipOperator;
      }();

      var SkipSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_47) {
        _inherits2(SkipSubscriber, _Subscriber__WEBPACK_47);

        var _super462 = _createSuper2(SkipSubscriber);

        function SkipSubscriber(destination, total) {
          var _this951;

          _classCallCheck2(this, SkipSubscriber);

          _this951 = _super462.call(this, destination);
          _this951.total = total;
          _this951.count = 0;
          return _this951;
        }

        _createClass2(SkipSubscriber, [{
          key: "_next",
          value: function _next(x) {
            if (++this.count > this.total) {
              this.destination.next(x);
            }
          }
        }]);

        return SkipSubscriber;
      }(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]); //# sourceMappingURL=skip.js.map

      /***/

    },

    /***/
    "zQhy": function zQhy(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MAT_RADIO_DEFAULT_OPTIONS", function () {
        return MAT_RADIO_DEFAULT_OPTIONS;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MAT_RADIO_DEFAULT_OPTIONS_FACTORY", function () {
        return MAT_RADIO_DEFAULT_OPTIONS_FACTORY;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MAT_RADIO_GROUP", function () {
        return MAT_RADIO_GROUP;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MAT_RADIO_GROUP_CONTROL_VALUE_ACCESSOR", function () {
        return MAT_RADIO_GROUP_CONTROL_VALUE_ACCESSOR;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatRadioButton", function () {
        return MatRadioButton;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatRadioChange", function () {
        return MatRadioChange;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatRadioGroup", function () {
        return MatRadioGroup;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "MatRadioModule", function () {
        return MatRadioModule;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "_MatRadioButtonBase", function () {
        return _MatRadioButtonBase;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "_MatRadioGroupBase", function () {
        return _MatRadioGroupBase;
      });
      /* harmony import */


      var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! @angular/core */
      "8Y7J");
      /* harmony import */


      var _angular_material_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! @angular/material/core */
      "UhP/");
      /* harmony import */


      var _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! @angular/cdk/a11y */
      "YEUz");
      /* harmony import */


      var _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
      /*! @angular/cdk/coercion */
      "8LU1");
      /* harmony import */


      var _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
      /*! @angular/cdk/collections */
      "CtHx");
      /* harmony import */


      var _angular_forms__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
      /*! @angular/forms */
      "s7LF");
      /* harmony import */


      var _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
      /*! @angular/platform-browser/animations */
      "omvX");
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var _c0 = ["input"];

      var _c1 = function _c1() {
        return {
          enterDuration: 150
        };
      };

      var _c2 = ["*"];
      var MAT_RADIO_DEFAULT_OPTIONS = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('mat-radio-default-options', {
        providedIn: 'root',
        factory: MAT_RADIO_DEFAULT_OPTIONS_FACTORY
      });

      function MAT_RADIO_DEFAULT_OPTIONS_FACTORY() {
        return {
          color: 'accent'
        };
      } // Increasing integer for generating unique ids for radio components.


      var nextUniqueId = 0;
      /**
       * Provider Expression that allows mat-radio-group to register as a ControlValueAccessor. This
       * allows it to support [(ngModel)] and ngControl.
       * @docs-private
       */

      var MAT_RADIO_GROUP_CONTROL_VALUE_ACCESSOR = {
        provide: _angular_forms__WEBPACK_IMPORTED_MODULE_5__["NG_VALUE_ACCESSOR"],
        useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(function () {
          return MatRadioGroup;
        }),
        multi: true
      };
      /** Change event object emitted by MatRadio and MatRadioGroup. */

      var MatRadioChange = function MatRadioChange(
      /** The MatRadioButton that emits the change event. */
      source,
      /** The value of the MatRadioButton. */
      value) {
        _classCallCheck2(this, MatRadioChange);

        this.source = source;
        this.value = value;
      };
      /**
       * Injection token that can be used to inject instances of `MatRadioGroup`. It serves as
       * alternative token to the actual `MatRadioGroup` class which could cause unnecessary
       * retention of the class and its component metadata.
       */


      var MAT_RADIO_GROUP = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('MatRadioGroup');
      /**
       * Base class with all of the `MatRadioGroup` functionality.
       * @docs-private
       */

      var _MatRadioGroupBase = /*#__PURE__*/function () {
        function _MatRadioGroupBase(_changeDetector) {
          _classCallCheck2(this, _MatRadioGroupBase);

          this._changeDetector = _changeDetector;
          /** Selected value for the radio group. */

          this._value = null;
          /** The HTML name attribute applied to radio buttons in this group. */

          this._name = "mat-radio-group-".concat(nextUniqueId++);
          /** The currently selected radio button. Should match value. */

          this._selected = null;
          /** Whether the `value` has been set to its initial value. */

          this._isInitialized = false;
          /** Whether the labels should appear after or before the radio-buttons. Defaults to 'after' */

          this._labelPosition = 'after';
          /** Whether the radio group is disabled. */

          this._disabled = false;
          /** Whether the radio group is required. */

          this._required = false;
          /** The method to be called in order to update ngModel */

          this._controlValueAccessorChangeFn = function () {};
          /**
           * onTouch function registered via registerOnTouch (ControlValueAccessor).
           * @docs-private
           */


          this.onTouched = function () {};
          /**
           * Event emitted when the group value changes.
           * Change events are only emitted when the value changes due to user interaction with
           * a radio button (the same behavior as `<input type-"radio">`).
           */


          this.change = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        }
        /** Name of the radio button group. All radio buttons inside this group will use this name. */


        _createClass2(_MatRadioGroupBase, [{
          key: "name",
          get: function get() {
            return this._name;
          },
          set: function set(value) {
            this._name = value;

            this._updateRadioButtonNames();
          }
          /** Whether the labels should appear after or before the radio-buttons. Defaults to 'after' */

        }, {
          key: "labelPosition",
          get: function get() {
            return this._labelPosition;
          },
          set: function set(v) {
            this._labelPosition = v === 'before' ? 'before' : 'after';

            this._markRadiosForCheck();
          }
          /**
           * Value for the radio-group. Should equal the value of the selected radio button if there is
           * a corresponding radio button with a matching value. If there is not such a corresponding
           * radio button, this value persists to be applied in case a new radio button is added with a
           * matching value.
           */

        }, {
          key: "value",
          get: function get() {
            return this._value;
          },
          set: function set(newValue) {
            if (this._value !== newValue) {
              // Set this before proceeding to ensure no circular loop occurs with selection.
              this._value = newValue;

              this._updateSelectedRadioFromValue();

              this._checkSelectedRadioButton();
            }
          }
        }, {
          key: "_checkSelectedRadioButton",
          value: function _checkSelectedRadioButton() {
            if (this._selected && !this._selected.checked) {
              this._selected.checked = true;
            }
          }
          /**
           * The currently selected radio button. If set to a new radio button, the radio group value
           * will be updated to match the new selected button.
           */

        }, {
          key: "selected",
          get: function get() {
            return this._selected;
          },
          set: function set(selected) {
            this._selected = selected;
            this.value = selected ? selected.value : null;

            this._checkSelectedRadioButton();
          }
          /** Whether the radio group is disabled */

        }, {
          key: "disabled",
          get: function get() {
            return this._disabled;
          },
          set: function set(value) {
            this._disabled = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_3__["coerceBooleanProperty"])(value);

            this._markRadiosForCheck();
          }
          /** Whether the radio group is required */

        }, {
          key: "required",
          get: function get() {
            return this._required;
          },
          set: function set(value) {
            this._required = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_3__["coerceBooleanProperty"])(value);

            this._markRadiosForCheck();
          }
          /**
           * Initialize properties once content children are available.
           * This allows us to propagate relevant attributes to associated buttons.
           */

        }, {
          key: "ngAfterContentInit",
          value: function ngAfterContentInit() {
            // Mark this component as initialized in AfterContentInit because the initial value can
            // possibly be set by NgModel on MatRadioGroup, and it is possible that the OnInit of the
            // NgModel occurs *after* the OnInit of the MatRadioGroup.
            this._isInitialized = true;
          }
          /**
           * Mark this group as being "touched" (for ngModel). Meant to be called by the contained
           * radio buttons upon their blur.
           */

        }, {
          key: "_touch",
          value: function _touch() {
            if (this.onTouched) {
              this.onTouched();
            }
          }
        }, {
          key: "_updateRadioButtonNames",
          value: function _updateRadioButtonNames() {
            var _this952 = this;

            if (this._radios) {
              this._radios.forEach(function (radio) {
                radio.name = _this952.name;

                radio._markForCheck();
              });
            }
          }
          /** Updates the `selected` radio button from the internal _value state. */

        }, {
          key: "_updateSelectedRadioFromValue",
          value: function _updateSelectedRadioFromValue() {
            var _this953 = this;

            // If the value already matches the selected radio, do nothing.
            var isAlreadySelected = this._selected !== null && this._selected.value === this._value;

            if (this._radios && !isAlreadySelected) {
              this._selected = null;

              this._radios.forEach(function (radio) {
                radio.checked = _this953.value === radio.value;

                if (radio.checked) {
                  _this953._selected = radio;
                }
              });
            }
          }
          /** Dispatch change event with current selection and group value. */

        }, {
          key: "_emitChangeEvent",
          value: function _emitChangeEvent() {
            if (this._isInitialized) {
              this.change.emit(new MatRadioChange(this._selected, this._value));
            }
          }
        }, {
          key: "_markRadiosForCheck",
          value: function _markRadiosForCheck() {
            if (this._radios) {
              this._radios.forEach(function (radio) {
                return radio._markForCheck();
              });
            }
          }
          /**
           * Sets the model value. Implemented as part of ControlValueAccessor.
           * @param value
           */

        }, {
          key: "writeValue",
          value: function writeValue(value) {
            this.value = value;

            this._changeDetector.markForCheck();
          }
          /**
           * Registers a callback to be triggered when the model value changes.
           * Implemented as part of ControlValueAccessor.
           * @param fn Callback to be registered.
           */

        }, {
          key: "registerOnChange",
          value: function registerOnChange(fn) {
            this._controlValueAccessorChangeFn = fn;
          }
          /**
           * Registers a callback to be triggered when the control is touched.
           * Implemented as part of ControlValueAccessor.
           * @param fn Callback to be registered.
           */

        }, {
          key: "registerOnTouched",
          value: function registerOnTouched(fn) {
            this.onTouched = fn;
          }
          /**
           * Sets the disabled state of the control. Implemented as a part of ControlValueAccessor.
           * @param isDisabled Whether the control should be disabled.
           */

        }, {
          key: "setDisabledState",
          value: function setDisabledState(isDisabled) {
            this.disabled = isDisabled;

            this._changeDetector.markForCheck();
          }
        }]);

        return _MatRadioGroupBase;
      }();

      _MatRadioGroupBase.ɵfac = function _MatRadioGroupBase_Factory(t) {
        return new (t || _MatRadioGroupBase)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"]));
      };

      _MatRadioGroupBase.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: _MatRadioGroupBase,
        inputs: {
          name: "name",
          labelPosition: "labelPosition",
          value: "value",
          selected: "selected",
          disabled: "disabled",
          required: "required",
          color: "color"
        },
        outputs: {
          change: "change"
        }
      });

      _MatRadioGroupBase.ctorParameters = function () {
        return [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"]
        }];
      };

      _MatRadioGroupBase.propDecorators = {
        change: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
        }],
        color: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }],
        name: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }],
        labelPosition: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }],
        value: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }],
        selected: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }],
        disabled: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }],
        required: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](_MatRadioGroupBase, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"]
        }], function () {
          return [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"]
          }];
        }, {
          change: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
          }],
          name: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }],
          labelPosition: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }],
          value: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }],
          selected: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }],
          disabled: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }],
          required: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }],
          color: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }]
        });
      })();
      /**
       * A group of radio buttons. May contain one or more `<mat-radio-button>` elements.
       */


      var MatRadioGroup = /*#__PURE__*/function (_MatRadioGroupBase2) {
        _inherits2(MatRadioGroup, _MatRadioGroupBase2);

        var _super463 = _createSuper2(MatRadioGroup);

        function MatRadioGroup() {
          _classCallCheck2(this, MatRadioGroup);

          return _super463.apply(this, arguments);
        }

        return MatRadioGroup;
      }(_MatRadioGroupBase);

      MatRadioGroup.ɵfac = function MatRadioGroup_Factory(t) {
        return ɵMatRadioGroup_BaseFactory(t || MatRadioGroup);
      };

      MatRadioGroup.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: MatRadioGroup,
        selectors: [["mat-radio-group"]],
        contentQueries: function MatRadioGroup_ContentQueries(rf, ctx, dirIndex) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵcontentQuery"](dirIndex, MatRadioButton, true);
          }

          if (rf & 2) {
            var _t;

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx._radios = _t);
          }
        },
        hostAttrs: ["role", "radiogroup", 1, "mat-radio-group"],
        exportAs: ["matRadioGroup"],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([MAT_RADIO_GROUP_CONTROL_VALUE_ACCESSOR, {
          provide: MAT_RADIO_GROUP,
          useExisting: MatRadioGroup
        }]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
      });
      MatRadioGroup.propDecorators = {
        _radios: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChildren"],
          args: [Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(function () {
            return MatRadioButton;
          }), {
            descendants: true
          }]
        }]
      };

      var ɵMatRadioGroup_BaseFactory = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](MatRadioGroup);
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatRadioGroup, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
          args: [{
            selector: 'mat-radio-group',
            exportAs: 'matRadioGroup',
            providers: [MAT_RADIO_GROUP_CONTROL_VALUE_ACCESSOR, {
              provide: MAT_RADIO_GROUP,
              useExisting: MatRadioGroup
            }],
            host: {
              'role': 'radiogroup',
              'class': 'mat-radio-group'
            }
          }]
        }], null, {
          _radios: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChildren"],
            args: [Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(function () {
              return MatRadioButton;
            }), {
              descendants: true
            }]
          }]
        });
      })(); // Boilerplate for applying mixins to MatRadioButton.

      /** @docs-private */


      var MatRadioButtonBase = function MatRadioButtonBase(_elementRef) {
        _classCallCheck2(this, MatRadioButtonBase);

        this._elementRef = _elementRef;
      }; // As per Material design specifications the selection control radio should use the accent color
      // palette by default. https://material.io/guidelines/components/selection-controls.html


      var _MatRadioButtonMixinBase = Object(_angular_material_core__WEBPACK_IMPORTED_MODULE_1__["mixinDisableRipple"])(Object(_angular_material_core__WEBPACK_IMPORTED_MODULE_1__["mixinTabIndex"])(MatRadioButtonBase));
      /**
       * Base class with all of the `MatRadioButton` functionality.
       * @docs-private
       */


      var _MatRadioButtonBase = /*#__PURE__*/function (_MatRadioButtonMixinB) {
        _inherits2(_MatRadioButtonBase, _MatRadioButtonMixinB);

        var _super464 = _createSuper2(_MatRadioButtonBase);

        function _MatRadioButtonBase(radioGroup, elementRef, _changeDetector, _focusMonitor, _radioDispatcher, _animationMode, _providerOverride, tabIndex) {
          var _this954;

          _classCallCheck2(this, _MatRadioButtonBase);

          _this954 = _super464.call(this, elementRef);
          _this954._changeDetector = _changeDetector;
          _this954._focusMonitor = _focusMonitor;
          _this954._radioDispatcher = _radioDispatcher;
          _this954._animationMode = _animationMode;
          _this954._providerOverride = _providerOverride;
          _this954._uniqueId = "mat-radio-".concat(++nextUniqueId);
          /** The unique ID for the radio button. */

          _this954.id = _this954._uniqueId;
          /**
           * Event emitted when the checked state of this radio button changes.
           * Change events are only emitted when the value changes due to user interaction with
           * the radio button (the same behavior as `<input type-"radio">`).
           */

          _this954.change = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
          /** Whether this radio is checked. */

          _this954._checked = false;
          /** Value assigned to this radio. */

          _this954._value = null;
          /** Unregister function for _radioDispatcher */

          _this954._removeUniqueSelectionListener = function () {}; // Assertions. Ideally these should be stripped out by the compiler.
          // TODO(jelbourn): Assert that there's no name binding AND a parent radio group.


          _this954.radioGroup = radioGroup;

          if (tabIndex) {
            _this954.tabIndex = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_3__["coerceNumberProperty"])(tabIndex, 0);
          }

          _this954._removeUniqueSelectionListener = _radioDispatcher.listen(function (id, name) {
            if (id !== _this954.id && name === _this954.name) {
              _this954.checked = false;
            }
          });
          return _this954;
        }
        /** Whether this radio button is checked. */


        _createClass2(_MatRadioButtonBase, [{
          key: "checked",
          get: function get() {
            return this._checked;
          },
          set: function set(value) {
            var newCheckedState = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_3__["coerceBooleanProperty"])(value);

            if (this._checked !== newCheckedState) {
              this._checked = newCheckedState;

              if (newCheckedState && this.radioGroup && this.radioGroup.value !== this.value) {
                this.radioGroup.selected = this;
              } else if (!newCheckedState && this.radioGroup && this.radioGroup.value === this.value) {
                // When unchecking the selected radio button, update the selected radio
                // property on the group.
                this.radioGroup.selected = null;
              }

              if (newCheckedState) {
                // Notify all radio buttons with the same name to un-check.
                this._radioDispatcher.notify(this.id, this.name);
              }

              this._changeDetector.markForCheck();
            }
          }
          /** The value of this radio button. */

        }, {
          key: "value",
          get: function get() {
            return this._value;
          },
          set: function set(value) {
            if (this._value !== value) {
              this._value = value;

              if (this.radioGroup !== null) {
                if (!this.checked) {
                  // Update checked when the value changed to match the radio group's value
                  this.checked = this.radioGroup.value === value;
                }

                if (this.checked) {
                  this.radioGroup.selected = this;
                }
              }
            }
          }
          /** Whether the label should appear after or before the radio button. Defaults to 'after' */

        }, {
          key: "labelPosition",
          get: function get() {
            return this._labelPosition || this.radioGroup && this.radioGroup.labelPosition || 'after';
          },
          set: function set(value) {
            this._labelPosition = value;
          }
          /** Whether the radio button is disabled. */

        }, {
          key: "disabled",
          get: function get() {
            return this._disabled || this.radioGroup !== null && this.radioGroup.disabled;
          },
          set: function set(value) {
            this._setDisabled(Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_3__["coerceBooleanProperty"])(value));
          }
          /** Whether the radio button is required. */

        }, {
          key: "required",
          get: function get() {
            return this._required || this.radioGroup && this.radioGroup.required;
          },
          set: function set(value) {
            this._required = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_3__["coerceBooleanProperty"])(value);
          }
          /** Theme color of the radio button. */

        }, {
          key: "color",
          get: function get() {
            return this._color || this.radioGroup && this.radioGroup.color || this._providerOverride && this._providerOverride.color || 'accent';
          },
          set: function set(newValue) {
            this._color = newValue;
          }
          /** ID of the native input element inside `<mat-radio-button>` */

        }, {
          key: "inputId",
          get: function get() {
            return "".concat(this.id || this._uniqueId, "-input");
          }
          /** Focuses the radio button. */

        }, {
          key: "focus",
          value: function focus(options) {
            this._focusMonitor.focusVia(this._inputElement, 'keyboard', options);
          }
          /**
           * Marks the radio button as needing checking for change detection.
           * This method is exposed because the parent radio group will directly
           * update bound properties of the radio button.
           */

        }, {
          key: "_markForCheck",
          value: function _markForCheck() {
            // When group value changes, the button will not be notified. Use `markForCheck` to explicit
            // update radio button's status
            this._changeDetector.markForCheck();
          }
        }, {
          key: "ngOnInit",
          value: function ngOnInit() {
            if (this.radioGroup) {
              // If the radio is inside a radio group, determine if it should be checked
              this.checked = this.radioGroup.value === this._value; // Copy name from parent radio group

              this.name = this.radioGroup.name;
            }
          }
        }, {
          key: "ngAfterViewInit",
          value: function ngAfterViewInit() {
            var _this955 = this;

            this._focusMonitor.monitor(this._elementRef, true).subscribe(function (focusOrigin) {
              if (!focusOrigin && _this955.radioGroup) {
                _this955.radioGroup._touch();
              }
            });
          }
        }, {
          key: "ngOnDestroy",
          value: function ngOnDestroy() {
            this._focusMonitor.stopMonitoring(this._elementRef);

            this._removeUniqueSelectionListener();
          }
          /** Dispatch change event with current value. */

        }, {
          key: "_emitChangeEvent",
          value: function _emitChangeEvent() {
            this.change.emit(new MatRadioChange(this, this._value));
          }
        }, {
          key: "_isRippleDisabled",
          value: function _isRippleDisabled() {
            return this.disableRipple || this.disabled;
          }
        }, {
          key: "_onInputClick",
          value: function _onInputClick(event) {
            // We have to stop propagation for click events on the visual hidden input element.
            // By default, when a user clicks on a label element, a generated click event will be
            // dispatched on the associated input element. Since we are using a label element as our
            // root container, the click event on the `radio-button` will be executed twice.
            // The real click event will bubble up, and the generated click event also tries to bubble up.
            // This will lead to multiple click events.
            // Preventing bubbling for the second event will solve that issue.
            event.stopPropagation();
          }
          /**
           * Triggered when the radio button received a click or the input recognized any change.
           * Clicking on a label element, will trigger a change event on the associated input.
           */

        }, {
          key: "_onInputChange",
          value: function _onInputChange(event) {
            // We always have to stop propagation on the change event.
            // Otherwise the change event, from the input element, will bubble up and
            // emit its event object to the `change` output.
            event.stopPropagation();
            var groupValueChanged = this.radioGroup && this.value !== this.radioGroup.value;
            this.checked = true;

            this._emitChangeEvent();

            if (this.radioGroup) {
              this.radioGroup._controlValueAccessorChangeFn(this.value);

              if (groupValueChanged) {
                this.radioGroup._emitChangeEvent();
              }
            }
          }
          /** Sets the disabled state and marks for check if a change occurred. */

        }, {
          key: "_setDisabled",
          value: function _setDisabled(value) {
            if (this._disabled !== value) {
              this._disabled = value;

              this._changeDetector.markForCheck();
            }
          }
        }]);

        return _MatRadioButtonBase;
      }(_MatRadioButtonMixinBase);

      _MatRadioButtonBase.ɵfac = function _MatRadioButtonBase_Factory(t) {
        return new (t || _MatRadioButtonBase)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_MatRadioGroupBase), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_2__["FocusMonitor"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_cdk_collections__WEBPACK_IMPORTED_MODULE_4__["UniqueSelectionDispatcher"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](String), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](undefined), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](String));
      };

      _MatRadioButtonBase.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
        type: _MatRadioButtonBase,
        viewQuery: function _MatRadioButtonBase_Query(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵviewQuery"](_c0, true);
          }

          if (rf & 2) {
            var _t;

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx._inputElement = _t.first);
          }
        },
        inputs: {
          id: "id",
          checked: "checked",
          value: "value",
          labelPosition: "labelPosition",
          disabled: "disabled",
          required: "required",
          color: "color",
          name: "name",
          ariaLabel: ["aria-label", "ariaLabel"],
          ariaLabelledby: ["aria-labelledby", "ariaLabelledby"],
          ariaDescribedby: ["aria-describedby", "ariaDescribedby"]
        },
        outputs: {
          change: "change"
        },
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]]
      });

      _MatRadioButtonBase.ctorParameters = function () {
        return [{
          type: _MatRadioGroupBase
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"]
        }, {
          type: _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_2__["FocusMonitor"]
        }, {
          type: _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_4__["UniqueSelectionDispatcher"]
        }, {
          type: String
        }, {
          type: undefined
        }, {
          type: String
        }];
      };

      _MatRadioButtonBase.propDecorators = {
        id: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }],
        name: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }],
        ariaLabel: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
          args: ['aria-label']
        }],
        ariaLabelledby: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
          args: ['aria-labelledby']
        }],
        ariaDescribedby: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
          args: ['aria-describedby']
        }],
        checked: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }],
        value: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }],
        labelPosition: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }],
        disabled: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }],
        required: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }],
        color: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
        }],
        change: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
        }],
        _inputElement: [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"],
          args: ['input']
        }]
      };
      /*@__PURE__*/

      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](_MatRadioButtonBase, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"]
        }], function () {
          return [{
            type: _MatRadioGroupBase
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"]
          }, {
            type: _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_2__["FocusMonitor"]
          }, {
            type: _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_4__["UniqueSelectionDispatcher"]
          }, {
            type: String
          }, {
            type: undefined
          }, {
            type: String
          }];
        }, {
          id: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }],
          change: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
          }],
          checked: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }],
          value: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }],
          labelPosition: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }],
          disabled: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }],
          required: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }],
          color: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }],
          name: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
          }],
          ariaLabel: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
            args: ['aria-label']
          }],
          ariaLabelledby: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
            args: ['aria-labelledby']
          }],
          ariaDescribedby: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
            args: ['aria-describedby']
          }],
          _inputElement: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"],
            args: ['input']
          }]
        });
      })();
      /**
       * A Material design radio-button. Typically placed inside of `<mat-radio-group>` elements.
       */


      var MatRadioButton = /*#__PURE__*/function (_MatRadioButtonBase2) {
        _inherits2(MatRadioButton, _MatRadioButtonBase2);

        var _super465 = _createSuper2(MatRadioButton);

        function MatRadioButton(radioGroup, elementRef, changeDetector, focusMonitor, radioDispatcher, animationMode, providerOverride, tabIndex) {
          _classCallCheck2(this, MatRadioButton);

          return _super465.call(this, radioGroup, elementRef, changeDetector, focusMonitor, radioDispatcher, animationMode, providerOverride, tabIndex);
        }

        return MatRadioButton;
      }(_MatRadioButtonBase);

      MatRadioButton.ɵfac = function MatRadioButton_Factory(t) {
        return new (t || MatRadioButton)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](MAT_RADIO_GROUP, 8), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_2__["FocusMonitor"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_cdk_collections__WEBPACK_IMPORTED_MODULE_4__["UniqueSelectionDispatcher"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_6__["ANIMATION_MODULE_TYPE"], 8), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](MAT_RADIO_DEFAULT_OPTIONS, 8), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinjectAttribute"]('tabindex'));
      };

      MatRadioButton.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({
        type: MatRadioButton,
        selectors: [["mat-radio-button"]],
        hostAttrs: [1, "mat-radio-button"],
        hostVars: 17,
        hostBindings: function MatRadioButton_HostBindings(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("focus", function MatRadioButton_focus_HostBindingHandler() {
              return ctx._inputElement.nativeElement.focus();
            });
          }

          if (rf & 2) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("tabindex", -1)("id", ctx.id)("aria-label", null)("aria-labelledby", null)("aria-describedby", null);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("mat-radio-checked", ctx.checked)("mat-radio-disabled", ctx.disabled)("_mat-animation-noopable", ctx._animationMode === "NoopAnimations")("mat-primary", ctx.color === "primary")("mat-accent", ctx.color === "accent")("mat-warn", ctx.color === "warn");
          }
        },
        inputs: {
          disableRipple: "disableRipple",
          tabIndex: "tabIndex"
        },
        exportAs: ["matRadioButton"],
        features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]],
        ngContentSelectors: _c2,
        decls: 13,
        vars: 19,
        consts: [[1, "mat-radio-label"], ["label", ""], [1, "mat-radio-container"], [1, "mat-radio-outer-circle"], [1, "mat-radio-inner-circle"], ["type", "radio", 1, "mat-radio-input", "cdk-visually-hidden", 3, "id", "checked", "disabled", "tabIndex", "required", "change", "click"], ["input", ""], ["mat-ripple", "", 1, "mat-radio-ripple", "mat-focus-indicator", 3, "matRippleTrigger", "matRippleDisabled", "matRippleCentered", "matRippleRadius", "matRippleAnimation"], [1, "mat-ripple-element", "mat-radio-persistent-ripple"], [1, "mat-radio-label-content"], [2, "display", "none"]],
        template: function MatRadioButton_Template(rf, ctx) {
          if (rf & 1) {
            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojectionDef"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "label", 0, 1);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 2);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "div", 3);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "div", 4);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "input", 5, 6);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function MatRadioButton_Template_input_change_5_listener($event) {
              return ctx._onInputChange($event);
            })("click", function MatRadioButton_Template_input_click_5_listener($event) {
              return ctx._onInputClick($event);
            });

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 7);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](8, "div", 8);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 9);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "span", 10);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, "\xA0");

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojection"](12);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
          }

          if (rf & 2) {
            var _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](1);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("for", ctx.inputId);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("id", ctx.inputId)("checked", ctx.checked)("disabled", ctx.disabled)("tabIndex", ctx.tabIndex)("required", ctx.required);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("name", ctx.name)("value", ctx.value)("aria-label", ctx.ariaLabel)("aria-labelledby", ctx.ariaLabelledby)("aria-describedby", ctx.ariaDescribedby);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("matRippleTrigger", _r0)("matRippleDisabled", ctx._isRippleDisabled())("matRippleCentered", true)("matRippleRadius", 20)("matRippleAnimation", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](18, _c1));

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);

            _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("mat-radio-label-before", ctx.labelPosition == "before");
          }
        },
        directives: [_angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatRipple"]],
        styles: [".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;height:20px;left:0;position:absolute;top:0;transition:transform ease 280ms,background-color ease 280ms;width:20px;transform:scale(0.001)}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5)}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],
        encapsulation: 2,
        changeDetection: 0
      });

      MatRadioButton.ctorParameters = function () {
        return [{
          type: MatRadioGroup,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [MAT_RADIO_GROUP]
          }]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
        }, {
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"]
        }, {
          type: _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_2__["FocusMonitor"]
        }, {
          type: _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_4__["UniqueSelectionDispatcher"]
        }, {
          type: String,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_6__["ANIMATION_MODULE_TYPE"]]
          }]
        }, {
          type: undefined,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
            args: [MAT_RADIO_DEFAULT_OPTIONS]
          }]
        }, {
          type: String,
          decorators: [{
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Attribute"],
            args: ['tabindex']
          }]
        }];
      };
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatRadioButton, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
          args: [{
            selector: 'mat-radio-button',
            template: "<!-- TODO(jelbourn): render the radio on either side of the content -->\n<!-- TODO(mtlin): Evaluate trade-offs of using native radio vs. cost of additional bindings. -->\n<label [attr.for]=\"inputId\" class=\"mat-radio-label\" #label>\n  <!-- The actual 'radio' part of the control. -->\n  <div class=\"mat-radio-container\">\n    <div class=\"mat-radio-outer-circle\"></div>\n    <div class=\"mat-radio-inner-circle\"></div>\n    <input #input class=\"mat-radio-input cdk-visually-hidden\" type=\"radio\"\n        [id]=\"inputId\"\n        [checked]=\"checked\"\n        [disabled]=\"disabled\"\n        [tabIndex]=\"tabIndex\"\n        [attr.name]=\"name\"\n        [attr.value]=\"value\"\n        [required]=\"required\"\n        [attr.aria-label]=\"ariaLabel\"\n        [attr.aria-labelledby]=\"ariaLabelledby\"\n        [attr.aria-describedby]=\"ariaDescribedby\"\n        (change)=\"_onInputChange($event)\"\n        (click)=\"_onInputClick($event)\">\n\n    <!-- The ripple comes after the input so that we can target it with a CSS\n         sibling selector when the input is focused. -->\n    <div mat-ripple class=\"mat-radio-ripple mat-focus-indicator\"\n         [matRippleTrigger]=\"label\"\n         [matRippleDisabled]=\"_isRippleDisabled()\"\n         [matRippleCentered]=\"true\"\n         [matRippleRadius]=\"20\"\n         [matRippleAnimation]=\"{enterDuration: 150}\">\n\n      <div class=\"mat-ripple-element mat-radio-persistent-ripple\"></div>\n    </div>\n  </div>\n\n  <!-- The label content for radio control. -->\n  <div class=\"mat-radio-label-content\" [class.mat-radio-label-before]=\"labelPosition == 'before'\">\n    <!-- Add an invisible span so JAWS can read the label -->\n    <span style=\"display:none\">&nbsp;</span>\n    <ng-content></ng-content>\n  </div>\n</label>\n",
            inputs: ['disableRipple', 'tabIndex'],
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            exportAs: 'matRadioButton',
            host: {
              'class': 'mat-radio-button',
              '[class.mat-radio-checked]': 'checked',
              '[class.mat-radio-disabled]': 'disabled',
              '[class._mat-animation-noopable]': '_animationMode === "NoopAnimations"',
              '[class.mat-primary]': 'color === "primary"',
              '[class.mat-accent]': 'color === "accent"',
              '[class.mat-warn]': 'color === "warn"',
              // Needs to be -1 so the `focus` event still fires.
              '[attr.tabindex]': '-1',
              '[attr.id]': 'id',
              '[attr.aria-label]': 'null',
              '[attr.aria-labelledby]': 'null',
              '[attr.aria-describedby]': 'null',
              // Note: under normal conditions focus shouldn't land on this element, however it may be
              // programmatically set, for example inside of a focus trap, in this case we want to forward
              // the focus to the native element.
              '(focus)': '_inputElement.nativeElement.focus()'
            },
            changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush,
            styles: [".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;height:20px;left:0;position:absolute;top:0;transition:transform ease 280ms,background-color ease 280ms;width:20px;transform:scale(0.001)}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5)}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"]
          }]
        }], function () {
          return [{
            type: MatRadioGroup,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [MAT_RADIO_GROUP]
            }]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]
          }, {
            type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"]
          }, {
            type: _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_2__["FocusMonitor"]
          }, {
            type: _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_4__["UniqueSelectionDispatcher"]
          }, {
            type: String,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_6__["ANIMATION_MODULE_TYPE"]]
            }]
          }, {
            type: undefined,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
            }, {
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
              args: [MAT_RADIO_DEFAULT_OPTIONS]
            }]
          }, {
            type: String,
            decorators: [{
              type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Attribute"],
              args: ['tabindex']
            }]
          }];
        }, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */


      var MatRadioModule = function MatRadioModule() {
        _classCallCheck2(this, MatRadioModule);
      };

      MatRadioModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
        type: MatRadioModule
      });
      MatRadioModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({
        factory: function MatRadioModule_Factory(t) {
          return new (t || MatRadioModule)();
        },
        imports: [[_angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatRippleModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatCommonModule"]], _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatCommonModule"]]
      });

      (function () {
        (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](MatRadioModule, {
          declarations: function declarations() {
            return [MatRadioGroup, MatRadioButton];
          },
          imports: function imports() {
            return [_angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatRippleModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatCommonModule"]];
          },
          exports: function exports() {
            return [MatRadioGroup, MatRadioButton, _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatCommonModule"]];
          }
        });
      })();
      /*@__PURE__*/


      (function () {
        _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MatRadioModule, [{
          type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
          args: [{
            imports: [_angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatRippleModule"], _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatCommonModule"]],
            exports: [MatRadioGroup, MatRadioButton, _angular_material_core__WEBPACK_IMPORTED_MODULE_1__["MatCommonModule"]],
            declarations: [MatRadioGroup, MatRadioButton]
          }]
        }], null, null);
      })();
      /**
       * @license
       * Copyright Google LLC All Rights Reserved.
       *
       * Use of this source code is governed by an MIT-style license that can be
       * found in the LICENSE file at https://angular.io/license
       */

      /**
       * Generated bundle index. Do not edit.
       */
      //# sourceMappingURL=radio.js.map

      /***/

    },

    /***/
    "zWh8": function zWh8(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return setUTCISODay;
      });
      /* harmony import */


      var _toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../toInteger/index.js */
      "/h9T");
      /* harmony import */


      var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../../toDate/index.js */
      "/Tr7");
      /* harmony import */


      var _requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../requiredArgs/index.js */
      "jIYg"); // This function will be a part of public API when UTC function will be implemented.
      // See issue: https://github.com/date-fns/date-fns/issues/376


      function setUTCISODay(dirtyDate, dirtyDay) {
        Object(_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(2, arguments);
        var day = Object(_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDay);

        if (day % 7 === 0) {
          day = day - 7;
        }

        var weekStartsOn = 1;
        var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate);
        var currentDay = date.getUTCDay();
        var remainder = day % 7;
        var dayIndex = (remainder + 7) % 7;
        var diff = (dayIndex < weekStartsOn ? 7 : 0) + day - currentDay;
        date.setUTCDate(date.getUTCDate() + diff);
        return date;
      }
      /***/

    },

    /***/
    "zbbA": function zbbA(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "default", function () {
        return addYears;
      });
      /* harmony import */


      var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../_lib/toInteger/index.js */
      "/h9T");
      /* harmony import */


      var _addMonths_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../addMonths/index.js */
      "dLU1");
      /* harmony import */


      var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ../_lib/requiredArgs/index.js */
      "jIYg");
      /**
       * @name addYears
       * @category Year Helpers
       * @summary Add the specified number of years to the given date.
       *
       * @description
       * Add the specified number of years to the given date.
       *
       * ### 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 {Date|Number} date - the date to be changed
       * @param {Number} amount - the amount of years to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
       * @returns {Date} the new date with the years added
       * @throws {TypeError} 2 arguments required
       *
       * @example
       * // Add 5 years to 1 September 2014:
       * var result = addYears(new Date(2014, 8, 1), 5)
       * //=> Sun Sep 01 2019 00:00:00
       */


      function addYears(dirtyDate, dirtyAmount) {
        Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(2, arguments);
        var amount = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyAmount);
        return Object(_addMonths_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate, amount * 12);
      }
      /***/

    },

    /***/
    "znLP": function znLP(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "AnimationFrameScheduler", function () {
        return AnimationFrameScheduler;
      });
      /* harmony import */


      var _AsyncScheduler__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ./AsyncScheduler */
      "IjjT");

      var AnimationFrameScheduler = /*#__PURE__*/function (_AsyncScheduler__WEBP4) {
        _inherits2(AnimationFrameScheduler, _AsyncScheduler__WEBP4);

        var _super466 = _createSuper2(AnimationFrameScheduler);

        function AnimationFrameScheduler() {
          _classCallCheck2(this, AnimationFrameScheduler);

          return _super466.apply(this, arguments);
        }

        _createClass2(AnimationFrameScheduler, [{
          key: "flush",
          value: function flush(action) {
            this.active = true;
            this.scheduled = undefined;
            var actions = this.actions;
            var error;
            var index = -1;
            var count = actions.length;
            action = action || actions.shift();

            do {
              if (error = action.execute(action.state, action.delay)) {
                break;
              }
            } while (++index < count && (action = actions.shift()));

            this.active = false;

            if (error) {
              while (++index < count && (action = actions.shift())) {
                action.unsubscribe();
              }

              throw error;
            }
          }
        }]);

        return AnimationFrameScheduler;
      }(_AsyncScheduler__WEBPACK_IMPORTED_MODULE_0__["AsyncScheduler"]); //# sourceMappingURL=AnimationFrameScheduler.js.map

      /***/

    },

    /***/
    "zp1y": function zp1y(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "withLatestFrom", function () {
        return withLatestFrom;
      });
      /* harmony import */


      var _OuterSubscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../OuterSubscriber */
      "l7GE");
      /* harmony import */


      var _util_subscribeToResult__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ../util/subscribeToResult */
      "ZUHj");

      function withLatestFrom() {
        for (var _len77 = arguments.length, args = new Array(_len77), _key80 = 0; _key80 < _len77; _key80++) {
          args[_key80] = arguments[_key80];
        }

        return function (source) {
          var project;

          if (typeof args[args.length - 1] === 'function') {
            project = args.pop();
          }

          var observables = args;
          return source.lift(new WithLatestFromOperator(observables, project));
        };
      }

      var WithLatestFromOperator = /*#__PURE__*/function () {
        function WithLatestFromOperator(observables, project) {
          _classCallCheck2(this, WithLatestFromOperator);

          this.observables = observables;
          this.project = project;
        }

        _createClass2(WithLatestFromOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            return source.subscribe(new WithLatestFromSubscriber(subscriber, this.observables, this.project));
          }
        }]);

        return WithLatestFromOperator;
      }();

      var WithLatestFromSubscriber = /*#__PURE__*/function (_OuterSubscriber__WEB7) {
        _inherits2(WithLatestFromSubscriber, _OuterSubscriber__WEB7);

        var _super467 = _createSuper2(WithLatestFromSubscriber);

        function WithLatestFromSubscriber(destination, observables, project) {
          var _this956;

          _classCallCheck2(this, WithLatestFromSubscriber);

          _this956 = _super467.call(this, destination);
          _this956.observables = observables;
          _this956.project = project;
          _this956.toRespond = [];
          var len = observables.length;
          _this956.values = new Array(len);

          for (var i = 0; i < len; i++) {
            _this956.toRespond.push(i);
          }

          for (var _i52 = 0; _i52 < len; _i52++) {
            var observable = observables[_i52];

            _this956.add(Object(_util_subscribeToResult__WEBPACK_IMPORTED_MODULE_1__["subscribeToResult"])(_assertThisInitialized2(_this956), observable, undefined, _i52));
          }

          return _this956;
        }

        _createClass2(WithLatestFromSubscriber, [{
          key: "notifyNext",
          value: function notifyNext(_outerValue, innerValue, outerIndex) {
            this.values[outerIndex] = innerValue;
            var toRespond = this.toRespond;

            if (toRespond.length > 0) {
              var found = toRespond.indexOf(outerIndex);

              if (found !== -1) {
                toRespond.splice(found, 1);
              }
            }
          }
        }, {
          key: "notifyComplete",
          value: function notifyComplete() {}
        }, {
          key: "_next",
          value: function _next(value) {
            if (this.toRespond.length === 0) {
              var args = [value].concat(_toConsumableArray(this.values));

              if (this.project) {
                this._tryProject(args);
              } else {
                this.destination.next(args);
              }
            }
          }
        }, {
          key: "_tryProject",
          value: function _tryProject(args) {
            var result;

            try {
              result = this.project.apply(this, args);
            } catch (err) {
              this.destination.error(err);
              return;
            }

            this.destination.next(result);
          }
        }]);

        return WithLatestFromSubscriber;
      }(_OuterSubscriber__WEBPACK_IMPORTED_MODULE_0__["OuterSubscriber"]); //# sourceMappingURL=withLatestFrom.js.map

      /***/

    },

    /***/
    "zt7V": function zt7V(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "exhaust", function () {
        return exhaust;
      });
      /* harmony import */


      var _innerSubscribe__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ../innerSubscribe */
      "zx2A");

      function exhaust() {
        return function (source) {
          return source.lift(new SwitchFirstOperator());
        };
      }

      var SwitchFirstOperator = /*#__PURE__*/function () {
        function SwitchFirstOperator() {
          _classCallCheck2(this, SwitchFirstOperator);
        }

        _createClass2(SwitchFirstOperator, [{
          key: "call",
          value: function call(subscriber, source) {
            return source.subscribe(new SwitchFirstSubscriber(subscriber));
          }
        }]);

        return SwitchFirstOperator;
      }();

      var SwitchFirstSubscriber = /*#__PURE__*/function (_innerSubscribe__WEBP22) {
        _inherits2(SwitchFirstSubscriber, _innerSubscribe__WEBP22);

        var _super468 = _createSuper2(SwitchFirstSubscriber);

        function SwitchFirstSubscriber(destination) {
          var _this957;

          _classCallCheck2(this, SwitchFirstSubscriber);

          _this957 = _super468.call(this, destination);
          _this957.hasCompleted = false;
          _this957.hasSubscription = false;
          return _this957;
        }

        _createClass2(SwitchFirstSubscriber, [{
          key: "_next",
          value: function _next(value) {
            if (!this.hasSubscription) {
              this.hasSubscription = true;
              this.add(Object(_innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["innerSubscribe"])(value, new _innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["SimpleInnerSubscriber"](this)));
            }
          }
        }, {
          key: "_complete",
          value: function _complete() {
            this.hasCompleted = true;

            if (!this.hasSubscription) {
              this.destination.complete();
            }
          }
        }, {
          key: "notifyComplete",
          value: function notifyComplete() {
            this.hasSubscription = false;

            if (this.hasCompleted) {
              this.destination.complete();
            }
          }
        }]);

        return SwitchFirstSubscriber;
      }(_innerSubscribe__WEBPACK_IMPORTED_MODULE_0__["SimpleOuterSubscriber"]); //# sourceMappingURL=exhaust.js.map

      /***/

    },

    /***/
    "zx2A": function zx2A(module, __webpack_exports__, __webpack_require__) {
      "use strict";

      __webpack_require__.r(__webpack_exports__);
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "SimpleInnerSubscriber", function () {
        return SimpleInnerSubscriber;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ComplexInnerSubscriber", function () {
        return ComplexInnerSubscriber;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "SimpleOuterSubscriber", function () {
        return SimpleOuterSubscriber;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "ComplexOuterSubscriber", function () {
        return ComplexOuterSubscriber;
      });
      /* harmony export (binding) */


      __webpack_require__.d(__webpack_exports__, "innerSubscribe", function () {
        return innerSubscribe;
      });
      /* harmony import */


      var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
      /*! ./Subscriber */
      "7o/Q");
      /* harmony import */


      var _Observable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
      /*! ./Observable */
      "HDdC");
      /* harmony import */


      var _util_subscribeTo__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
      /*! ./util/subscribeTo */
      "SeVD");

      var SimpleInnerSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_48) {
        _inherits2(SimpleInnerSubscriber, _Subscriber__WEBPACK_48);

        var _super469 = _createSuper2(SimpleInnerSubscriber);

        function SimpleInnerSubscriber(parent) {
          var _this958;

          _classCallCheck2(this, SimpleInnerSubscriber);

          _this958 = _super469.call(this);
          _this958.parent = parent;
          return _this958;
        }

        _createClass2(SimpleInnerSubscriber, [{
          key: "_next",
          value: function _next(value) {
            this.parent.notifyNext(value);
          }
        }, {
          key: "_error",
          value: function _error(error) {
            this.parent.notifyError(error);
            this.unsubscribe();
          }
        }, {
          key: "_complete",
          value: function _complete() {
            this.parent.notifyComplete();
            this.unsubscribe();
          }
        }]);

        return SimpleInnerSubscriber;
      }(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]);

      var ComplexInnerSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_49) {
        _inherits2(ComplexInnerSubscriber, _Subscriber__WEBPACK_49);

        var _super470 = _createSuper2(ComplexInnerSubscriber);

        function ComplexInnerSubscriber(parent, outerValue, outerIndex) {
          var _this959;

          _classCallCheck2(this, ComplexInnerSubscriber);

          _this959 = _super470.call(this);
          _this959.parent = parent;
          _this959.outerValue = outerValue;
          _this959.outerIndex = outerIndex;
          return _this959;
        }

        _createClass2(ComplexInnerSubscriber, [{
          key: "_next",
          value: function _next(value) {
            this.parent.notifyNext(this.outerValue, value, this.outerIndex, this);
          }
        }, {
          key: "_error",
          value: function _error(error) {
            this.parent.notifyError(error);
            this.unsubscribe();
          }
        }, {
          key: "_complete",
          value: function _complete() {
            this.parent.notifyComplete(this);
            this.unsubscribe();
          }
        }]);

        return ComplexInnerSubscriber;
      }(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]);

      var SimpleOuterSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_50) {
        _inherits2(SimpleOuterSubscriber, _Subscriber__WEBPACK_50);

        var _super471 = _createSuper2(SimpleOuterSubscriber);

        function SimpleOuterSubscriber() {
          _classCallCheck2(this, SimpleOuterSubscriber);

          return _super471.apply(this, arguments);
        }

        _createClass2(SimpleOuterSubscriber, [{
          key: "notifyNext",
          value: function notifyNext(innerValue) {
            this.destination.next(innerValue);
          }
        }, {
          key: "notifyError",
          value: function notifyError(err) {
            this.destination.error(err);
          }
        }, {
          key: "notifyComplete",
          value: function notifyComplete() {
            this.destination.complete();
          }
        }]);

        return SimpleOuterSubscriber;
      }(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]);

      var ComplexOuterSubscriber = /*#__PURE__*/function (_Subscriber__WEBPACK_51) {
        _inherits2(ComplexOuterSubscriber, _Subscriber__WEBPACK_51);

        var _super472 = _createSuper2(ComplexOuterSubscriber);

        function ComplexOuterSubscriber() {
          _classCallCheck2(this, ComplexOuterSubscriber);

          return _super472.apply(this, arguments);
        }

        _createClass2(ComplexOuterSubscriber, [{
          key: "notifyNext",
          value: function notifyNext(_outerValue, innerValue, _outerIndex, _innerSub) {
            this.destination.next(innerValue);
          }
        }, {
          key: "notifyError",
          value: function notifyError(error) {
            this.destination.error(error);
          }
        }, {
          key: "notifyComplete",
          value: function notifyComplete(_innerSub) {
            this.destination.complete();
          }
        }]);

        return ComplexOuterSubscriber;
      }(_Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]);

      function innerSubscribe(result, innerSubscriber) {
        if (innerSubscriber.closed) {
          return undefined;
        }

        if (result instanceof _Observable__WEBPACK_IMPORTED_MODULE_1__["Observable"]) {
          return result.subscribe(innerSubscriber);
        }

        return Object(_util_subscribeTo__WEBPACK_IMPORTED_MODULE_2__["subscribeTo"])(result)(innerSubscriber);
      } //# sourceMappingURL=innerSubscribe.js.map

      /***/

    },

    /***/
    "zx6S": function zx6S(module, exports, __webpack_require__) {
      //! moment.js locale configuration
      //! locale : Serbian [sr]
      //! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
      //! author : Stefan Crnjaković <stefan@hotmail.rs> : https://github.com/crnjakovic
      ;

      (function (global, factory) {
        true ? factory(__webpack_require__(
        /*! ../moment */
        "wd/R")) : undefined;
      })(this, function (moment) {
        'use strict'; //! moment.js locale configuration

        var translator = {
          words: {
            //Different grammatical cases
            ss: ['sekunda', 'sekunde', 'sekundi'],
            m: ['jedan minut', 'jedne minute'],
            mm: ['minut', 'minute', 'minuta'],
            h: ['jedan sat', 'jednog sata'],
            hh: ['sat', 'sata', 'sati'],
            dd: ['dan', 'dana', 'dana'],
            MM: ['mesec', 'meseca', 'meseci'],
            yy: ['godina', 'godine', 'godina']
          },
          correctGrammaticalCase: function correctGrammaticalCase(number, wordKey) {
            return number === 1 ? wordKey[0] : number >= 2 && number <= 4 ? wordKey[1] : wordKey[2];
          },
          translate: function translate(number, withoutSuffix, key) {
            var wordKey = translator.words[key];

            if (key.length === 1) {
              return withoutSuffix ? wordKey[0] : wordKey[1];
            } else {
              return number + ' ' + translator.correctGrammaticalCase(number, wordKey);
            }
          }
        };
        var sr = moment.defineLocale('sr', {
          months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'),
          monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),
          monthsParseExact: true,
          weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split('_'),
          weekdaysShort: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'),
          weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
          weekdaysParseExact: true,
          longDateFormat: {
            LT: 'H:mm',
            LTS: 'H:mm:ss',
            L: 'D. M. YYYY.',
            LL: 'D. MMMM YYYY.',
            LLL: 'D. MMMM YYYY. H:mm',
            LLLL: 'dddd, D. MMMM YYYY. H:mm'
          },
          calendar: {
            sameDay: '[danas u] LT',
            nextDay: '[sutra u] LT',
            nextWeek: function nextWeek() {
              switch (this.day()) {
                case 0:
                  return '[u] [nedelju] [u] LT';

                case 3:
                  return '[u] [sredu] [u] LT';

                case 6:
                  return '[u] [subotu] [u] LT';

                case 1:
                case 2:
                case 4:
                case 5:
                  return '[u] dddd [u] LT';
              }
            },
            lastDay: '[juče u] LT',
            lastWeek: function lastWeek() {
              var lastWeekDays = ['[prošle] [nedelje] [u] LT', '[prošlog] [ponedeljka] [u] LT', '[prošlog] [utorka] [u] LT', '[prošle] [srede] [u] LT', '[prošlog] [četvrtka] [u] LT', '[prošlog] [petka] [u] LT', '[prošle] [subote] [u] LT'];
              return lastWeekDays[this.day()];
            },
            sameElse: 'L'
          },
          relativeTime: {
            future: 'za %s',
            past: 'pre %s',
            s: 'nekoliko sekundi',
            ss: translator.translate,
            m: translator.translate,
            mm: translator.translate,
            h: translator.translate,
            hh: translator.translate,
            d: 'dan',
            dd: translator.translate,
            M: 'mesec',
            MM: translator.translate,
            y: 'godinu',
            yy: translator.translate
          },
          dayOfMonthOrdinalParse: /\d{1,2}\./,
          ordinal: '%d.',
          week: {
            dow: 1,
            // Monday is the first day of the week.
            doy: 7 // The week that contains Jan 7th is the first week of the year.

          }
        });
        return sr;
      });
      /***/

    }
  }]);
})();
//# sourceMappingURL=vendor-es5.447e72674e399fbecf07.js.map